From 6030c77791fc2438815981f9222695ea2c631694 Mon Sep 17 00:00:00 2001 From: Nikhil Prasad Date: Fri, 3 Jan 2025 15:01:18 +0530 Subject: [PATCH] =?UTF-8?q?modified=20readme=20of=20[DocumentIntelligence]?= =?UTF-8?q?=20wrong=20import=20of=20AnalyzeOper=E2=80=A6=20(#32412)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …ationOutput. changes in changelog, samples and release note for GA 1.0.0 #32326 ### Packages impacted by this PR Azure Documentintelligence ### Issues associated with this PR Fixed wrong import of AnalyzeOperationOutput ### Describe the problem that is addressed by this PR Previously in the readme of Azure DocumentIntelligence (formerly FormRecognizer) REST client library for JavaScript in Continue creating the poller from initial response section the import of AnalyzeOperationOutput was wrongly added as AnalyzeResultOperationOutput in 3 counts that has been modified. ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? It was the only simple solution ### Are there test cases added in this PR? _(If not, why?)_ No just modified readme to update documentation of wrong import ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --- .../ai-document-intelligence-rest/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/README.md b/sdk/documentintelligence/ai-document-intelligence-rest/README.md index fd0b172320a5..35c55db9cbfb 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/README.md +++ b/sdk/documentintelligence/ai-document-intelligence-rest/README.md @@ -128,7 +128,7 @@ Continue creating the poller from initial response ```ts import { getLongRunningPoller, - AnalyzeResultOperationOutput, + AnalyzeOperationOutput, isUnexpected, } from "@azure-rest/ai-document-intelligence"; @@ -136,7 +136,7 @@ if (isUnexpected(initialResponse)) { throw initialResponse.body.error; } const poller = getLongRunningPoller(client, initialResponse); -const result = (await poller.pollUntilDone()).body as AnalyzeResultOperationOutput; +const result = (await poller.pollUntilDone()).body as AnalyzeOperationOutput; console.log(result); // { // status: 'succeeded', @@ -365,7 +365,7 @@ if (isUnexpected(initialResponse)) { const poller = getLongRunningPoller(client, initialResponse, { ...testPollingOptions }); -const result = (await poller.pollUntilDone()).body as AnalyzeResultOperationOutput; +const result = (await poller.pollUntilDone()).body as AnalyzeOperationOutput; const figures = result.analyzeResult?.figures; assert.isArray(figures); assert.isNotEmpty(figures?.[0]);