From 4a6052129fa0b5f6969a343576578db681377684 Mon Sep 17 00:00:00 2001 From: Nikhil Prasad Date: Fri, 3 Jan 2025 12:09:42 +0530 Subject: [PATCH] modified readme of [DocumentIntelligence] wrong import of AnalyzeOperationOutput. changes in changelog, samples and release note for GA 1.0.0 #32326 --- .../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]);