@azure/ai-text-analytics 5.2.0-alpha.20220303.1 → 5.2.0-alpha.20220322.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -5061,20 +5061,6 @@ class AnalyzeLro {
|
|
|
5061
5061
|
return sendGetRequest(this.client, analyzeStatusOperationSpec, "AnalyzeStatus", Object.assign(Object.assign({}, this.baseOptions), this.pollOptions), path);
|
|
5062
5062
|
}
|
|
5063
5063
|
}
|
|
5064
|
-
/**
|
|
5065
|
-
* @internal
|
|
5066
|
-
*/
|
|
5067
|
-
function isAnalyzeDone(response) {
|
|
5068
|
-
const castResponse = response;
|
|
5069
|
-
switch (castResponse.status) {
|
|
5070
|
-
case "notStarted":
|
|
5071
|
-
case "running":
|
|
5072
|
-
return false;
|
|
5073
|
-
default: {
|
|
5074
|
-
return true;
|
|
5075
|
-
}
|
|
5076
|
-
}
|
|
5077
|
-
}
|
|
5078
5064
|
/**
|
|
5079
5065
|
* @internal
|
|
5080
5066
|
*/
|
|
@@ -5449,7 +5435,6 @@ class TextAnalyticsClient {
|
|
|
5449
5435
|
tracingOptions,
|
|
5450
5436
|
includeStatistics,
|
|
5451
5437
|
}),
|
|
5452
|
-
isDone: isAnalyzeDone,
|
|
5453
5438
|
updateState: updateAnalyzeState,
|
|
5454
5439
|
});
|
|
5455
5440
|
await poller.poll();
|