Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.

Repository from Github https://github.comAzure/azure-sdk-for-jsRepository from Github https://github.comAzure/azure-sdk-for-js

AnalyzeResultOperationOutput deprecated

SebastianBodza opened this issue · comments

Type of issue

Typo

Description

According to the Doc Intelligence SDK and the Changelog:

- `AnalyzeResultOperationOutput` to `AnalyzeOperationOutput`

The AnalyzeResultOperationOutput is deprecated for AnalyzeOperationOutput. In the documentation the examples still use the old type naming:

import {
  getLongRunningPoller,
  AnalyzeResultOperationOutput,
  isUnexpected,
} from "@azure-rest/ai-document-intelligence";

if (isUnexpected(initialResponse)) {
  throw initialResponse.body.error;
}
const poller = getLongRunningPoller(client, initialResponse);
const result = (await poller.pollUntilDone()).body as AnalyzeResultOperationOutput;
console.log(result);
// {
//   status: 'succeeded',
//   createdDateTime: '2023-11-10T13:31:31Z',
//   lastUpdatedDateTime: '2023-11-10T13:31:34Z',
//   analyzeResult: {
//     apiVersion: '2023-10-31-preview',
//     .
//     .
//     .
//     contentFormat: 'text'
//   }
// }

Page URL

https://learn.microsoft.com/de-de/javascript/api/overview/azure/ai-document-intelligence-rest-readme?view=azure-node-latest

Content source URL

https://github.com/MicrosoftDocs/azure-docs-sdk-node/blob/main/docs-ref-services/latest/ai-document-intelligence-rest-readme.md

Document Version Independent Id

c7f369bf-dfcb-b4c0-22cc-b9a45ef50c3f

Article author

@azure-sdk

Metadata

  • ID: 61da34d2-7ddf-b283-ba13-472ef0665f59
  • PlatformId: c94a96ad-5db0-2deb-f77e-fa9a1dff974d
  • Service: documentintelligence