@azure/ai-text-analytics 5.1.2-alpha.20260303.1 → 5.1.2-alpha.20260306.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.
Files changed (32) hide show
  1. package/dist/commonjs/analyzeActionsResult.js +5 -0
  2. package/dist/commonjs/analyzeHealthcareEntitiesResult.js +5 -0
  3. package/dist/commonjs/analyzeSentimentResult.js +5 -0
  4. package/dist/commonjs/analyzeSentimentResultArray.js +4 -0
  5. package/dist/commonjs/azureKeyCredentialPolicy.js +4 -0
  6. package/dist/commonjs/constants.js +4 -0
  7. package/dist/commonjs/detectLanguageResult.js +5 -0
  8. package/dist/commonjs/detectLanguageResultArray.js +4 -0
  9. package/dist/commonjs/extractKeyPhrasesResult.js +5 -0
  10. package/dist/commonjs/extractKeyPhrasesResultArray.js +4 -0
  11. package/dist/commonjs/generated/generatedClient.js +4 -0
  12. package/dist/commonjs/generated/index.js +5 -0
  13. package/dist/commonjs/generated/models/index.js +11 -0
  14. package/dist/commonjs/generated/models/mappers.js +84 -0
  15. package/dist/commonjs/generated/models/parameters.js +21 -0
  16. package/dist/commonjs/index.js +9 -0
  17. package/dist/commonjs/logger.js +4 -0
  18. package/dist/commonjs/lro/analyze/operation.js +4 -0
  19. package/dist/commonjs/lro/analyze/poller.js +4 -0
  20. package/dist/commonjs/lro/health/operation.js +4 -0
  21. package/dist/commonjs/lro/health/poller.js +4 -0
  22. package/dist/commonjs/lro/poller.js +5 -0
  23. package/dist/commonjs/recognizeCategorizedEntitiesResult.js +5 -0
  24. package/dist/commonjs/recognizeCategorizedEntitiesResultArray.js +4 -0
  25. package/dist/commonjs/recognizeLinkedEntitiesResult.js +5 -0
  26. package/dist/commonjs/recognizeLinkedEntitiesResultArray.js +4 -0
  27. package/dist/commonjs/recognizePiiEntitiesResult.js +5 -0
  28. package/dist/commonjs/recognizePiiEntitiesResultArray.js +4 -0
  29. package/dist/commonjs/textAnalyticsClient.js +5 -0
  30. package/dist/commonjs/textAnalyticsResult.js +8 -0
  31. package/dist/commonjs/util.js +17 -0
  32. package/package.json +5 -5
@@ -167,3 +167,8 @@ function createAnalyzeActionsResult(response, documents) {
167
167
  )
168
168
  };
169
169
  }
170
+ // Annotate the CommonJS export names for ESM import in node:
171
+ 0 && (module.exports = {
172
+ createAnalyzeActionsResult,
173
+ parseActionError
174
+ });
@@ -62,3 +62,8 @@ function makeHealthcareEntitiesResult(document) {
62
62
  function makeHealthcareEntitiesErrorResult(id, error) {
63
63
  return (0, import_textAnalyticsResult.makeTextAnalyticsErrorResult)(id, error);
64
64
  }
65
+ // Annotate the CommonJS export names for ESM import in node:
66
+ 0 && (module.exports = {
67
+ makeHealthcareEntitiesErrorResult,
68
+ makeHealthcareEntitiesResult
69
+ });
@@ -73,3 +73,8 @@ function convertTargetRelationToAssessmentSentiment(targetRelation, result) {
73
73
  throw new Error(`Pointer "${assessmentPtr}" is not a valid Assessment pointer`);
74
74
  }
75
75
  }
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ makeAnalyzeSentimentErrorResult,
79
+ makeAnalyzeSentimentResult
80
+ });
@@ -30,3 +30,7 @@ function makeAnalyzeSentimentResultArray(input, response) {
30
30
  import_analyzeSentimentResult.makeAnalyzeSentimentErrorResult
31
31
  );
32
32
  }
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ makeAnalyzeSentimentResultArray
36
+ });
@@ -31,3 +31,7 @@ function textAnalyticsAzureKeyCredentialPolicy(credential) {
31
31
  }
32
32
  };
33
33
  }
34
+ // Annotate the CommonJS export names for ESM import in node:
35
+ 0 && (module.exports = {
36
+ textAnalyticsAzureKeyCredentialPolicy
37
+ });
@@ -21,3 +21,7 @@ __export(constants_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(constants_exports);
23
23
  const SDK_VERSION = "5.1.2";
24
+ // Annotate the CommonJS export names for ESM import in node:
25
+ 0 && (module.exports = {
26
+ SDK_VERSION
27
+ });
@@ -32,3 +32,8 @@ function makeDetectLanguageResult(response) {
32
32
  function makeDetectLanguageErrorResult(id, error) {
33
33
  return (0, import_textAnalyticsResult.makeTextAnalyticsErrorResult)(id, error);
34
34
  }
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ makeDetectLanguageErrorResult,
38
+ makeDetectLanguageResult
39
+ });
@@ -30,3 +30,7 @@ function makeDetectLanguageResultArray(input, response) {
30
30
  import_detectLanguageResult.makeDetectLanguageErrorResult
31
31
  );
32
32
  }
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ makeDetectLanguageResultArray
36
+ });
@@ -32,3 +32,8 @@ function makeExtractKeyPhrasesResult(result) {
32
32
  function makeExtractKeyPhrasesErrorResult(id, error) {
33
33
  return (0, import_textAnalyticsResult.makeTextAnalyticsErrorResult)(id, error);
34
34
  }
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ makeExtractKeyPhrasesErrorResult,
38
+ makeExtractKeyPhrasesResult
39
+ });
@@ -30,3 +30,7 @@ function makeExtractKeyPhrasesResultArray(input, response) {
30
30
  import_extractKeyPhrasesResult.makeExtractKeyPhrasesErrorResult
31
31
  );
32
32
  }
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ makeExtractKeyPhrasesResultArray
36
+ });
@@ -466,3 +466,7 @@ const sentimentOperationSpec = {
466
466
  mediaType: "json",
467
467
  serializer
468
468
  };
469
+ // Annotate the CommonJS export names for ESM import in node:
470
+ 0 && (module.exports = {
471
+ GeneratedClient
472
+ });
@@ -23,3 +23,8 @@ __export(generated_exports, {
23
23
  module.exports = __toCommonJS(generated_exports);
24
24
  __reExport(generated_exports, require("./models/index.js"), module.exports);
25
25
  var import_generatedClient = require("./generatedClient.js");
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ GeneratedClient,
29
+ ...require("./models/index.js")
30
+ });
@@ -292,3 +292,14 @@ var KnownRelationType = /* @__PURE__ */ ((KnownRelationType2) => {
292
292
  KnownRelationType2["ValueOfExamination"] = "ValueOfExamination";
293
293
  return KnownRelationType2;
294
294
  })(KnownRelationType || {});
295
+ // Annotate the CommonJS export names for ESM import in node:
296
+ 0 && (module.exports = {
297
+ KnownErrorCodeValue,
298
+ KnownHealthcareEntityCategory,
299
+ KnownInnerErrorCodeValue,
300
+ KnownPiiCategory,
301
+ KnownPiiTaskParametersDomain,
302
+ KnownRelationType,
303
+ KnownStringIndexType,
304
+ KnownWarningCode
305
+ });
@@ -2563,3 +2563,87 @@ const GeneratedClientHealthHeaders = {
2563
2563
  }
2564
2564
  }
2565
2565
  };
2566
+ // Annotate the CommonJS export names for ESM import in node:
2567
+ 0 && (module.exports = {
2568
+ AnalysisInput,
2569
+ AnalyzeBatchInput,
2570
+ AnalyzeJobDisplayName,
2571
+ AnalyzeJobErrorsAndStatistics,
2572
+ AnalyzeJobMetadata,
2573
+ AnalyzeJobState,
2574
+ DetectLanguageInput,
2575
+ DetectedLanguage,
2576
+ DocumentEntities,
2577
+ DocumentError,
2578
+ DocumentHealthcareEntities,
2579
+ DocumentKeyPhrases,
2580
+ DocumentLanguage,
2581
+ DocumentLinkedEntities,
2582
+ DocumentSentiment,
2583
+ EntitiesResult,
2584
+ EntitiesTask,
2585
+ EntitiesTaskParameters,
2586
+ EntitiesTaskResult,
2587
+ Entity,
2588
+ EntityLinkingResult,
2589
+ EntityLinkingTask,
2590
+ EntityLinkingTaskParameters,
2591
+ EntityLinkingTaskResult,
2592
+ ErrorResponse,
2593
+ GeneratedClientAnalyzeHeaders,
2594
+ GeneratedClientCancelHealthJobHeaders,
2595
+ GeneratedClientHealthHeaders,
2596
+ HealthcareAssertion,
2597
+ HealthcareEntity,
2598
+ HealthcareEntityLink,
2599
+ HealthcareEntityProperties,
2600
+ HealthcareJobState,
2601
+ HealthcareLinkingProperties,
2602
+ HealthcareRelation,
2603
+ HealthcareRelationEntity,
2604
+ HealthcareResult,
2605
+ HealthcareTaskResult,
2606
+ InnerError,
2607
+ JobDescriptor,
2608
+ JobManifest,
2609
+ JobManifestTasks,
2610
+ JobMetadata,
2611
+ KeyPhraseResult,
2612
+ KeyPhraseTaskResult,
2613
+ KeyPhrasesTask,
2614
+ KeyPhrasesTaskParameters,
2615
+ LanguageBatchInput,
2616
+ LanguageResult,
2617
+ LinkedEntity,
2618
+ Match,
2619
+ MultiLanguageBatchInput,
2620
+ Pagination,
2621
+ PiiDocumentEntities,
2622
+ PiiResult,
2623
+ PiiTask,
2624
+ PiiTaskParameters,
2625
+ PiiTaskResult,
2626
+ SentenceAssessment,
2627
+ SentenceSentiment,
2628
+ SentenceTarget,
2629
+ SentimentAnalysisTask,
2630
+ SentimentAnalysisTaskParameters,
2631
+ SentimentConfidenceScores,
2632
+ SentimentResponse,
2633
+ SentimentTaskResult,
2634
+ TargetConfidenceScoreLabel,
2635
+ TargetRelation,
2636
+ TaskState,
2637
+ TasksState,
2638
+ TasksStateTasks,
2639
+ TasksStateTasksEntityLinkingTasksItem,
2640
+ TasksStateTasksEntityRecognitionPiiTasksItem,
2641
+ TasksStateTasksEntityRecognitionTasksItem,
2642
+ TasksStateTasksKeyPhraseExtractionTasksItem,
2643
+ TasksStateTasksSentimentAnalysisTasksItem,
2644
+ TextAnalyticsError,
2645
+ TextAnalyticsWarning,
2646
+ TextDocumentBatchStatistics,
2647
+ TextDocumentInput,
2648
+ TextDocumentStatistics
2649
+ });
@@ -214,3 +214,24 @@ const opinionMining = {
214
214
  }
215
215
  }
216
216
  };
217
+ // Annotate the CommonJS export names for ESM import in node:
218
+ 0 && (module.exports = {
219
+ accept,
220
+ apiVersion,
221
+ body,
222
+ contentType,
223
+ domain,
224
+ endpoint,
225
+ includeStatistics,
226
+ input,
227
+ input1,
228
+ jobId,
229
+ jobId1,
230
+ loggingOptOut,
231
+ modelVersion,
232
+ opinionMining,
233
+ piiCategories,
234
+ skip,
235
+ stringIndexType,
236
+ top
237
+ });
@@ -28,3 +28,12 @@ module.exports = __toCommonJS(src_exports);
28
28
  var import_core_auth = require("@azure/core-auth");
29
29
  var import_textAnalyticsClient = require("./textAnalyticsClient.js");
30
30
  var import_models = require("./generated/models/index.js");
31
+ // Annotate the CommonJS export names for ESM import in node:
32
+ 0 && (module.exports = {
33
+ AzureKeyCredential,
34
+ KnownHealthcareEntityCategory,
35
+ KnownInnerErrorCodeValue,
36
+ KnownWarningCode,
37
+ PiiEntityDomain,
38
+ TextAnalyticsClient
39
+ });
@@ -22,3 +22,7 @@ __export(logger_exports, {
22
22
  module.exports = __toCommonJS(logger_exports);
23
23
  var import_logger = require("@azure/logger");
24
24
  const logger = (0, import_logger.createClientLogger)("ai-text-analytics");
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ logger
28
+ });
@@ -191,3 +191,7 @@ class BeginAnalyzeActionsPollerOperation extends import_poller.AnalysisPollOpera
191
191
  return this;
192
192
  }
193
193
  }
194
+ // Annotate the CommonJS export names for ESM import in node:
195
+ 0 && (module.exports = {
196
+ BeginAnalyzeActionsPollerOperation
197
+ });
@@ -54,3 +54,7 @@ class BeginAnalyzeActionsPoller extends import_poller.AnalysisPoller {
54
54
  return (0, import_util.delay)(this.updateIntervalInMs);
55
55
  }
56
56
  }
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ BeginAnalyzeActionsPoller
60
+ });
@@ -206,3 +206,7 @@ class BeginAnalyzeHealthcarePollerOperation extends import_poller.AnalysisPollOp
206
206
  return this;
207
207
  }
208
208
  }
209
+ // Annotate the CommonJS export names for ESM import in node:
210
+ 0 && (module.exports = {
211
+ BeginAnalyzeHealthcarePollerOperation
212
+ });
@@ -45,3 +45,7 @@ class BeginAnalyzeHealthcarePoller extends import_poller.AnalysisPoller {
45
45
  return (0, import_util.delay)(this.updateIntervalInMs);
46
46
  }
47
47
  }
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ BeginAnalyzeHealthcarePoller
51
+ });
@@ -48,3 +48,8 @@ class AnalysisPollOperation {
48
48
  });
49
49
  }
50
50
  }
51
+ // Annotate the CommonJS export names for ESM import in node:
52
+ 0 && (module.exports = {
53
+ AnalysisPollOperation,
54
+ AnalysisPoller
55
+ });
@@ -32,3 +32,8 @@ function makeRecognizeCategorizedEntitiesResult(result) {
32
32
  function makeRecognizeCategorizedEntitiesErrorResult(id, error) {
33
33
  return (0, import_textAnalyticsResult.makeTextAnalyticsErrorResult)(id, error);
34
34
  }
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ makeRecognizeCategorizedEntitiesErrorResult,
38
+ makeRecognizeCategorizedEntitiesResult
39
+ });
@@ -30,3 +30,7 @@ function makeRecognizeCategorizedEntitiesResultArray(input, response) {
30
30
  import_recognizeCategorizedEntitiesResult.makeRecognizeCategorizedEntitiesErrorResult
31
31
  );
32
32
  }
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ makeRecognizeCategorizedEntitiesResultArray
36
+ });
@@ -32,3 +32,8 @@ function makeRecognizeLinkedEntitiesResult(result) {
32
32
  function makeRecognizeLinkedEntitiesErrorResult(id, error) {
33
33
  return (0, import_textAnalyticsResult.makeTextAnalyticsErrorResult)(id, error);
34
34
  }
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ makeRecognizeLinkedEntitiesErrorResult,
38
+ makeRecognizeLinkedEntitiesResult
39
+ });
@@ -30,3 +30,7 @@ function makeRecognizeLinkedEntitiesResultArray(input, response) {
30
30
  import_recognizeLinkedEntitiesResult.makeRecognizeLinkedEntitiesErrorResult
31
31
  );
32
32
  }
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ makeRecognizeLinkedEntitiesResultArray
36
+ });
@@ -33,3 +33,8 @@ function makeRecognizePiiEntitiesResult(document) {
33
33
  function makeRecognizePiiEntitiesErrorResult(id, error) {
34
34
  return (0, import_textAnalyticsResult.makeTextAnalyticsErrorResult)(id, error);
35
35
  }
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ makeRecognizePiiEntitiesErrorResult,
39
+ makeRecognizePiiEntitiesResult
40
+ });
@@ -30,3 +30,7 @@ function makeRecognizePiiEntitiesResultArray(input, response) {
30
30
  import_recognizePiiEntitiesResult.makeRecognizePiiEntitiesErrorResult
31
31
  );
32
32
  }
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ makeRecognizePiiEntitiesResultArray
36
+ });
@@ -430,3 +430,8 @@ function makeGeneratedRecognizeLinkingEntitiesOptions(params) {
430
430
  stringIndexType: (0, import_util.setStrEncodingParamValue)(params.stringIndexType)
431
431
  };
432
432
  }
433
+ // Annotate the CommonJS export names for ESM import in node:
434
+ 0 && (module.exports = {
435
+ PiiEntityDomain,
436
+ TextAnalyticsClient
437
+ });
@@ -67,3 +67,11 @@ function combineSuccessfulAndErroneousDocumentsWithStatisticsAndModelVersion(inp
67
67
  modelVersion: response.modelVersion
68
68
  });
69
69
  }
70
+ // Annotate the CommonJS export names for ESM import in node:
71
+ 0 && (module.exports = {
72
+ combineSuccessfulAndErroneousDocumentsWithStatisticsAndModelVersion,
73
+ intoTextAnalyticsError,
74
+ makeTextAnalyticsErrorResult,
75
+ makeTextAnalyticsSuccessResult,
76
+ processAndCombineSuccessfulAndErroneousDocuments
77
+ });
@@ -170,3 +170,20 @@ function delay(timeInMs) {
170
170
  function compose(fn1, fn2) {
171
171
  return (value) => fn2(fn1(value));
172
172
  }
173
+ // Annotate the CommonJS export names for ESM import in node:
174
+ 0 && (module.exports = {
175
+ addParamsToTask,
176
+ addStrEncodingParam,
177
+ compose,
178
+ delay,
179
+ getOperationId,
180
+ nextLinkToTopAndSkip,
181
+ parseAssessmentIndex,
182
+ parseHealthcareEntityIndex,
183
+ setCategoriesFilter,
184
+ setOpinionMining,
185
+ setStrEncodingParam,
186
+ setStrEncodingParamValue,
187
+ sortResponseIdObjects,
188
+ throwError
189
+ });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "An isomorphic client library for the Azure Text Analytics service.",
6
- "version": "5.1.2-alpha.20260303.1",
6
+ "version": "5.1.2-alpha.20260306.1",
7
7
  "keywords": [
8
8
  "node",
9
9
  "azure",
@@ -65,7 +65,7 @@
65
65
  "@azure/core-client": ">=1.10.2-alpha <1.10.2-alphb",
66
66
  "@azure/core-lro": "^2.7.2",
67
67
  "@azure/core-paging": ">=1.6.3-alpha <1.6.3-alphb",
68
- "@azure/core-rest-pipeline": ">=1.23.0-alpha <1.23.0-alphb",
68
+ "@azure/core-rest-pipeline": ">=1.23.1-alpha <1.23.1-alphb",
69
69
  "@azure/core-tracing": ">=1.3.2-alpha <1.3.2-alphb",
70
70
  "@azure/logger": ">=1.3.1-alpha <1.3.1-alphb",
71
71
  "tslib": "^2.8.1"
@@ -84,10 +84,10 @@
84
84
  "rimraf": "^6.1.0",
85
85
  "typescript": "~5.9.3",
86
86
  "vitest": "^4.0.8",
87
- "@azure-tools/test-recorder": "^4.1.1",
88
- "@azure/eslint-plugin-azure-sdk": "^3.0.0",
89
87
  "@azure-tools/test-credential": "^2.1.2",
90
- "@azure/dev-tool": "^1.0.0"
88
+ "@azure-tools/test-recorder": "^4.1.1",
89
+ "@azure/dev-tool": "^1.0.0",
90
+ "@azure/eslint-plugin-azure-sdk": "^3.0.0"
91
91
  },
92
92
  "type": "module",
93
93
  "exports": {