@azure/ai-language-text 1.0.1-alpha.20221014.1 → 1.1.0-alpha.20221101.3
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/README.md +132 -17
- package/dist/index.js +1725 -312
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +1 -1
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +2 -2
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +454 -0
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +1170 -287
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/models/parameters.js +1 -1
- package/dist-esm/src/generated/models/parameters.js.map +1 -1
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models.js +11 -0
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/textAnalysisClient.js +3 -2
- package/dist-esm/src/textAnalysisClient.js.map +1 -1
- package/dist-esm/src/transforms.js +24 -3
- package/dist-esm/src/transforms.js.map +1 -1
- package/package.json +1 -1
- package/types/ai-language-text.d.ts +1222 -5
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,8CAA8C,CAAC;AAEtF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,8CAA8C,CAAC;AAEtF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,oBAAoB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * The default AAD permissions scope for Cognitive Services.\n * @internal\n */\nexport const DEFAULT_COGNITIVE_SCOPE = \"https://cognitiveservices.azure.com/.default\";\n\n/**\n * @internal\n */\nexport const SDK_VERSION = \"1.1.0-beta.1\";\n\n/**\n * @internal\n */\nexport const clientName = \"TextAnalysisClient\";\n"]}
|
@@ -30,7 +30,7 @@ export class GeneratedClient extends coreClient.ServiceClient {
|
|
30
30
|
const defaults = {
|
31
31
|
requestContentType: "application/json; charset=utf-8"
|
32
32
|
};
|
33
|
-
const packageDetails = `azsdk-js-ai-language-text/1.0.1`;
|
33
|
+
const packageDetails = `azsdk-js-ai-language-text/1.1.0-beta.1`;
|
34
34
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
35
35
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
36
36
|
: `${packageDetails}`;
|
@@ -57,7 +57,7 @@ export class GeneratedClient extends coreClient.ServiceClient {
|
|
57
57
|
// Parameter assignments
|
58
58
|
this.endpoint = endpoint;
|
59
59
|
// Assigning values to Constant parameters
|
60
|
-
this.apiVersion = options.apiVersion || "2022-
|
60
|
+
this.apiVersion = options.apiVersion || "2022-10-01-preview";
|
61
61
|
this.analyzeText = new AnalyzeTextImpl(this);
|
62
62
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
63
63
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAM9D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAA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,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EAAE,oBAAoB;IAC1B,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport { AnalyzeTextImpl } from \"./operations\";\nimport { AnalyzeText } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n GeneratedClientOptionalParams,\n AnalyzeActionUnion,\n AnalyzeOptionalParams,\n AnalyzeResponse,\n AnalyzeTextJobsInput,\n AnalyzeBatchOptionalParams,\n AnalyzeBatchResponse\n} from \"./models\";\n\n/** @internal */\nexport class GeneratedClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the GeneratedClient class.\n * @param endpoint Supported Cognitive Services endpoint (e.g.,\n * https://<resource-name>.api.cognitiveservices.azure.com).\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: GeneratedClientOptionalParams) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: GeneratedClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-ai-language-text/1.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint ?? options.baseUri ?? \"{Endpoint}/language\"\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n }\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2022-05-01\";\n this.analyzeText = new AnalyzeTextImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Submit a collection of text documents for analysis. Specify a single unique task to be executed\n * immediately.\n * @param body Collection of documents to analyze and a single task to execute.\n * @param options The options parameters.\n */\n analyze(\n body: AnalyzeActionUnion,\n options?: AnalyzeOptionalParams\n ): Promise<AnalyzeResponse> {\n return this.sendOperationRequest({ body, options }, analyzeOperationSpec);\n }\n\n /**\n * Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed\n * as a long-running operation.\n * @param body Collection of documents to analyze and one or more tasks to execute.\n * @param options The options parameters.\n */\n analyzeBatch(\n body: AnalyzeTextJobsInput,\n options?: AnalyzeBatchOptionalParams\n ): Promise<AnalyzeBatchResponse> {\n return this.sendOperationRequest(\n { body, options },\n analyzeBatchOperationSpec\n );\n }\n\n analyzeText: AnalyzeText;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst analyzeOperationSpec: coreClient.OperationSpec = {\n path: \"/:analyze-text\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AnalyzeTextTaskResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion, Parameters.includeStatistics],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst analyzeBatchOperationSpec: coreClient.OperationSpec = {\n path: \"/analyze-text/jobs\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n headersMapper: Mappers.GeneratedClientAnalyzeBatchHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
|
1
|
+
{"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAM9D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAW5C,gBAAgB;AAChB,MAAM,OAAO,eAAgB,SAAQ,UAAU,CAAC,aAAa;IAI3D;;;;;OAKG;IACH,YAAY,QAAgB,EAAE,OAAuC;;QACnE,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAkC;YAC9C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,wCAAwC,CAAC;QAChE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,qBAAqB,GACt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AS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,IAAI;IAC5B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACtE,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EAAE,oBAAoB;IAC1B,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,kCAAkC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport { AnalyzeTextImpl } from \"./operations\";\nimport { AnalyzeText } from \"./operationsInterfaces\";\nimport * as Parameters from \"./models/parameters\";\nimport * as Mappers from \"./models/mappers\";\nimport {\n GeneratedClientOptionalParams,\n AnalyzeActionUnion,\n AnalyzeOptionalParams,\n AnalyzeResponse,\n AnalyzeTextJobsInput,\n AnalyzeBatchOptionalParams,\n AnalyzeBatchResponse\n} from \"./models\";\n\n/** @internal */\nexport class GeneratedClient extends coreClient.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the GeneratedClient class.\n * @param endpoint Supported Cognitive Services endpoint (e.g.,\n * https://<resource-name>.api.cognitiveservices.azure.com).\n * @param options The parameter options\n */\n constructor(endpoint: string, options?: GeneratedClientOptionalParams) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: GeneratedClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-ai-language-text/1.1.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint ?? options.baseUri ?? \"{Endpoint}/language\"\n };\n super(optionsWithDefaults);\n\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n if (!bearerTokenAuthenticationPolicyFound) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n scopes: `${optionsWithDefaults.baseUri}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n }\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2022-10-01-preview\";\n this.analyzeText = new AnalyzeTextImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * Submit a collection of text documents for analysis. Specify a single unique task to be executed\n * immediately.\n * @param body Collection of documents to analyze and a single task to execute.\n * @param options The options parameters.\n */\n analyze(\n body: AnalyzeActionUnion,\n options?: AnalyzeOptionalParams\n ): Promise<AnalyzeResponse> {\n return this.sendOperationRequest({ body, options }, analyzeOperationSpec);\n }\n\n /**\n * Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed\n * as a long-running operation.\n * @param body Collection of documents to analyze and one or more tasks to execute.\n * @param options The options parameters.\n */\n analyzeBatch(\n body: AnalyzeTextJobsInput,\n options?: AnalyzeBatchOptionalParams\n ): Promise<AnalyzeBatchResponse> {\n return this.sendOperationRequest(\n { body, options },\n analyzeBatchOperationSpec\n );\n }\n\n analyzeText: AnalyzeText;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst analyzeOperationSpec: coreClient.OperationSpec = {\n path: \"/:analyze-text\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AnalyzeTextTaskResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion, Parameters.includeStatistics],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\nconst analyzeBatchOperationSpec: coreClient.OperationSpec = {\n path: \"/analyze-text/jobs\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n headersMapper: Mappers.GeneratedClientAnalyzeBatchHeaders\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer\n};\n"]}
|
@@ -20,6 +20,8 @@ export var KnownAnalyzeTextTaskKind;
|
|
20
20
|
KnownAnalyzeTextTaskKind["LanguageDetection"] = "LanguageDetection";
|
21
21
|
/** EntityLinking */
|
22
22
|
KnownAnalyzeTextTaskKind["EntityLinking"] = "EntityLinking";
|
23
|
+
/** DynamicClassification */
|
24
|
+
KnownAnalyzeTextTaskKind["DynamicClassification"] = "DynamicClassification";
|
23
25
|
})(KnownAnalyzeTextTaskKind || (KnownAnalyzeTextTaskKind = {}));
|
24
26
|
/** Known values of {@link AnalyzeTextTaskResultsKind} that the service accepts. */
|
25
27
|
export var KnownAnalyzeTextTaskResultsKind;
|
@@ -36,6 +38,8 @@ export var KnownAnalyzeTextTaskResultsKind;
|
|
36
38
|
KnownAnalyzeTextTaskResultsKind["LanguageDetectionResults"] = "LanguageDetectionResults";
|
37
39
|
/** EntityLinkingResults */
|
38
40
|
KnownAnalyzeTextTaskResultsKind["EntityLinkingResults"] = "EntityLinkingResults";
|
41
|
+
/** DynamicClassificationResults */
|
42
|
+
KnownAnalyzeTextTaskResultsKind["DynamicClassificationResults"] = "DynamicClassificationResults";
|
39
43
|
})(KnownAnalyzeTextTaskResultsKind || (KnownAnalyzeTextTaskResultsKind = {}));
|
40
44
|
/** Known values of {@link ErrorCode} that the service accepts. */
|
41
45
|
export var KnownErrorCode;
|
@@ -124,12 +128,16 @@ export var KnownAnalyzeTextLROTaskKind;
|
|
124
128
|
KnownAnalyzeTextLROTaskKind["EntityLinking"] = "EntityLinking";
|
125
129
|
/** Healthcare */
|
126
130
|
KnownAnalyzeTextLROTaskKind["Healthcare"] = "Healthcare";
|
131
|
+
/** ExtractiveSummarization */
|
132
|
+
KnownAnalyzeTextLROTaskKind["ExtractiveSummarization"] = "ExtractiveSummarization";
|
127
133
|
/** CustomEntityRecognition */
|
128
134
|
KnownAnalyzeTextLROTaskKind["CustomEntityRecognition"] = "CustomEntityRecognition";
|
129
135
|
/** CustomSingleLabelClassification */
|
130
136
|
KnownAnalyzeTextLROTaskKind["CustomSingleLabelClassification"] = "CustomSingleLabelClassification";
|
131
137
|
/** CustomMultiLabelClassification */
|
132
138
|
KnownAnalyzeTextLROTaskKind["CustomMultiLabelClassification"] = "CustomMultiLabelClassification";
|
139
|
+
/** AbstractiveSummarization */
|
140
|
+
KnownAnalyzeTextLROTaskKind["AbstractiveSummarization"] = "AbstractiveSummarization";
|
133
141
|
})(KnownAnalyzeTextLROTaskKind || (KnownAnalyzeTextLROTaskKind = {}));
|
134
142
|
/** Known values of {@link OperationStatus} that the service accepts. */
|
135
143
|
export var KnownOperationStatus;
|
@@ -164,12 +172,16 @@ export var KnownAnalyzeTextLROResultsKind;
|
|
164
172
|
KnownAnalyzeTextLROResultsKind["EntityLinkingLROResults"] = "EntityLinkingLROResults";
|
165
173
|
/** HealthcareLROResults */
|
166
174
|
KnownAnalyzeTextLROResultsKind["HealthcareLROResults"] = "HealthcareLROResults";
|
175
|
+
/** ExtractiveSummarizationLROResults */
|
176
|
+
KnownAnalyzeTextLROResultsKind["ExtractiveSummarizationLROResults"] = "ExtractiveSummarizationLROResults";
|
167
177
|
/** CustomEntityRecognitionLROResults */
|
168
178
|
KnownAnalyzeTextLROResultsKind["CustomEntityRecognitionLROResults"] = "CustomEntityRecognitionLROResults";
|
169
179
|
/** CustomSingleLabelClassificationLROResults */
|
170
180
|
KnownAnalyzeTextLROResultsKind["CustomSingleLabelClassificationLROResults"] = "CustomSingleLabelClassificationLROResults";
|
171
181
|
/** CustomMultiLabelClassificationLROResults */
|
172
182
|
KnownAnalyzeTextLROResultsKind["CustomMultiLabelClassificationLROResults"] = "CustomMultiLabelClassificationLROResults";
|
183
|
+
/** AbstractiveSummarizationLROResults */
|
184
|
+
KnownAnalyzeTextLROResultsKind["AbstractiveSummarizationLROResults"] = "AbstractiveSummarizationLROResults";
|
173
185
|
})(KnownAnalyzeTextLROResultsKind || (KnownAnalyzeTextLROResultsKind = {}));
|
174
186
|
/** Known values of {@link State} that the service accepts. */
|
175
187
|
export var KnownState;
|
@@ -555,6 +567,48 @@ export var KnownPiiEntityCategory;
|
|
555
567
|
/** Default */
|
556
568
|
KnownPiiEntityCategory["Default"] = "Default";
|
557
569
|
})(KnownPiiEntityCategory || (KnownPiiEntityCategory = {}));
|
570
|
+
/** Known values of {@link ClassificationType} that the service accepts. */
|
571
|
+
export var KnownClassificationType;
|
572
|
+
(function (KnownClassificationType) {
|
573
|
+
/** Single */
|
574
|
+
KnownClassificationType["Single"] = "Single";
|
575
|
+
/** Multi */
|
576
|
+
KnownClassificationType["Multi"] = "Multi";
|
577
|
+
})(KnownClassificationType || (KnownClassificationType = {}));
|
578
|
+
/** Known values of {@link ResolutionKind} that the service accepts. */
|
579
|
+
export var KnownResolutionKind;
|
580
|
+
(function (KnownResolutionKind) {
|
581
|
+
/** BooleanResolution */
|
582
|
+
KnownResolutionKind["BooleanResolution"] = "BooleanResolution";
|
583
|
+
/** DateTimeResolution */
|
584
|
+
KnownResolutionKind["DateTimeResolution"] = "DateTimeResolution";
|
585
|
+
/** NumberResolution */
|
586
|
+
KnownResolutionKind["NumberResolution"] = "NumberResolution";
|
587
|
+
/** OrdinalResolution */
|
588
|
+
KnownResolutionKind["OrdinalResolution"] = "OrdinalResolution";
|
589
|
+
/** SpeedResolution */
|
590
|
+
KnownResolutionKind["SpeedResolution"] = "SpeedResolution";
|
591
|
+
/** WeightResolution */
|
592
|
+
KnownResolutionKind["WeightResolution"] = "WeightResolution";
|
593
|
+
/** LengthResolution */
|
594
|
+
KnownResolutionKind["LengthResolution"] = "LengthResolution";
|
595
|
+
/** VolumeResolution */
|
596
|
+
KnownResolutionKind["VolumeResolution"] = "VolumeResolution";
|
597
|
+
/** AreaResolution */
|
598
|
+
KnownResolutionKind["AreaResolution"] = "AreaResolution";
|
599
|
+
/** AgeResolution */
|
600
|
+
KnownResolutionKind["AgeResolution"] = "AgeResolution";
|
601
|
+
/** InformationResolution */
|
602
|
+
KnownResolutionKind["InformationResolution"] = "InformationResolution";
|
603
|
+
/** TemperatureResolution */
|
604
|
+
KnownResolutionKind["TemperatureResolution"] = "TemperatureResolution";
|
605
|
+
/** CurrencyResolution */
|
606
|
+
KnownResolutionKind["CurrencyResolution"] = "CurrencyResolution";
|
607
|
+
/** NumericRangeResolution */
|
608
|
+
KnownResolutionKind["NumericRangeResolution"] = "NumericRangeResolution";
|
609
|
+
/** TemporalSpanResolution */
|
610
|
+
KnownResolutionKind["TemporalSpanResolution"] = "TemporalSpanResolution";
|
611
|
+
})(KnownResolutionKind || (KnownResolutionKind = {}));
|
558
612
|
/** Known values of {@link WarningCode} that the service accepts. */
|
559
613
|
export var KnownWarningCode;
|
560
614
|
(function (KnownWarningCode) {
|
@@ -563,6 +617,40 @@ export var KnownWarningCode;
|
|
563
617
|
/** DocumentTruncated */
|
564
618
|
KnownWarningCode["DocumentTruncated"] = "DocumentTruncated";
|
565
619
|
})(KnownWarningCode || (KnownWarningCode = {}));
|
620
|
+
/** Known values of {@link ScriptKind} that the service accepts. */
|
621
|
+
export var KnownScriptKind;
|
622
|
+
(function (KnownScriptKind) {
|
623
|
+
/** Latin */
|
624
|
+
KnownScriptKind["Latin"] = "Latin";
|
625
|
+
})(KnownScriptKind || (KnownScriptKind = {}));
|
626
|
+
/** Known values of {@link FhirVersion} that the service accepts. */
|
627
|
+
export var KnownFhirVersion;
|
628
|
+
(function (KnownFhirVersion) {
|
629
|
+
/** Four01 */
|
630
|
+
KnownFhirVersion["Four01"] = "4.0.1";
|
631
|
+
})(KnownFhirVersion || (KnownFhirVersion = {}));
|
632
|
+
/** Known values of {@link DocumentType} that the service accepts. */
|
633
|
+
export var KnownDocumentType;
|
634
|
+
(function (KnownDocumentType) {
|
635
|
+
/** None */
|
636
|
+
KnownDocumentType["None"] = "None";
|
637
|
+
/** ClinicalTrial */
|
638
|
+
KnownDocumentType["ClinicalTrial"] = "ClinicalTrial";
|
639
|
+
/** DischargeSummary */
|
640
|
+
KnownDocumentType["DischargeSummary"] = "DischargeSummary";
|
641
|
+
/** ProgressNote */
|
642
|
+
KnownDocumentType["ProgressNote"] = "ProgressNote";
|
643
|
+
/** HistoryAndPhysical */
|
644
|
+
KnownDocumentType["HistoryAndPhysical"] = "HistoryAndPhysical";
|
645
|
+
/** Consult */
|
646
|
+
KnownDocumentType["Consult"] = "Consult";
|
647
|
+
/** Imaging */
|
648
|
+
KnownDocumentType["Imaging"] = "Imaging";
|
649
|
+
/** Pathology */
|
650
|
+
KnownDocumentType["Pathology"] = "Pathology";
|
651
|
+
/** ProcedureNote */
|
652
|
+
KnownDocumentType["ProcedureNote"] = "ProcedureNote";
|
653
|
+
})(KnownDocumentType || (KnownDocumentType = {}));
|
566
654
|
/** Known values of {@link HealthcareEntityCategory} that the service accepts. */
|
567
655
|
export var KnownHealthcareEntityCategory;
|
568
656
|
(function (KnownHealthcareEntityCategory) {
|
@@ -665,4 +753,370 @@ export var KnownRelationType;
|
|
665
753
|
/** ValueOfExamination */
|
666
754
|
KnownRelationType["ValueOfExamination"] = "ValueOfExamination";
|
667
755
|
})(KnownRelationType || (KnownRelationType = {}));
|
756
|
+
/** Known values of {@link ExtractiveSummarizationOrderingCriteria} that the service accepts. */
|
757
|
+
export var KnownExtractiveSummarizationOrderingCriteria;
|
758
|
+
(function (KnownExtractiveSummarizationOrderingCriteria) {
|
759
|
+
/** Indicates that results should be sorted in order of appearance in the text. */
|
760
|
+
KnownExtractiveSummarizationOrderingCriteria["Offset"] = "Offset";
|
761
|
+
/** Indicates that results should be sorted in order of importance (i.e. rank score) according to the model. */
|
762
|
+
KnownExtractiveSummarizationOrderingCriteria["Rank"] = "Rank";
|
763
|
+
})(KnownExtractiveSummarizationOrderingCriteria || (KnownExtractiveSummarizationOrderingCriteria = {}));
|
764
|
+
/** Known values of {@link AgeUnit} that the service accepts. */
|
765
|
+
export var KnownAgeUnit;
|
766
|
+
(function (KnownAgeUnit) {
|
767
|
+
/** Unspecified */
|
768
|
+
KnownAgeUnit["Unspecified"] = "Unspecified";
|
769
|
+
/** Year */
|
770
|
+
KnownAgeUnit["Year"] = "Year";
|
771
|
+
/** Month */
|
772
|
+
KnownAgeUnit["Month"] = "Month";
|
773
|
+
/** Week */
|
774
|
+
KnownAgeUnit["Week"] = "Week";
|
775
|
+
/** Day */
|
776
|
+
KnownAgeUnit["Day"] = "Day";
|
777
|
+
})(KnownAgeUnit || (KnownAgeUnit = {}));
|
778
|
+
/** Known values of {@link VolumeUnit} that the service accepts. */
|
779
|
+
export var KnownVolumeUnit;
|
780
|
+
(function (KnownVolumeUnit) {
|
781
|
+
/** Unspecified */
|
782
|
+
KnownVolumeUnit["Unspecified"] = "Unspecified";
|
783
|
+
/** CubicMeter */
|
784
|
+
KnownVolumeUnit["CubicMeter"] = "CubicMeter";
|
785
|
+
/** CubicCentimeter */
|
786
|
+
KnownVolumeUnit["CubicCentimeter"] = "CubicCentimeter";
|
787
|
+
/** CubicMillimeter */
|
788
|
+
KnownVolumeUnit["CubicMillimeter"] = "CubicMillimeter";
|
789
|
+
/** Hectoliter */
|
790
|
+
KnownVolumeUnit["Hectoliter"] = "Hectoliter";
|
791
|
+
/** Decaliter */
|
792
|
+
KnownVolumeUnit["Decaliter"] = "Decaliter";
|
793
|
+
/** Liter */
|
794
|
+
KnownVolumeUnit["Liter"] = "Liter";
|
795
|
+
/** Centiliter */
|
796
|
+
KnownVolumeUnit["Centiliter"] = "Centiliter";
|
797
|
+
/** Milliliter */
|
798
|
+
KnownVolumeUnit["Milliliter"] = "Milliliter";
|
799
|
+
/** CubicYard */
|
800
|
+
KnownVolumeUnit["CubicYard"] = "CubicYard";
|
801
|
+
/** CubicInch */
|
802
|
+
KnownVolumeUnit["CubicInch"] = "CubicInch";
|
803
|
+
/** CubicFoot */
|
804
|
+
KnownVolumeUnit["CubicFoot"] = "CubicFoot";
|
805
|
+
/** CubicMile */
|
806
|
+
KnownVolumeUnit["CubicMile"] = "CubicMile";
|
807
|
+
/** FluidOunce */
|
808
|
+
KnownVolumeUnit["FluidOunce"] = "FluidOunce";
|
809
|
+
/** Teaspoon */
|
810
|
+
KnownVolumeUnit["Teaspoon"] = "Teaspoon";
|
811
|
+
/** Tablespoon */
|
812
|
+
KnownVolumeUnit["Tablespoon"] = "Tablespoon";
|
813
|
+
/** Pint */
|
814
|
+
KnownVolumeUnit["Pint"] = "Pint";
|
815
|
+
/** Quart */
|
816
|
+
KnownVolumeUnit["Quart"] = "Quart";
|
817
|
+
/** Cup */
|
818
|
+
KnownVolumeUnit["Cup"] = "Cup";
|
819
|
+
/** Gill */
|
820
|
+
KnownVolumeUnit["Gill"] = "Gill";
|
821
|
+
/** Pinch */
|
822
|
+
KnownVolumeUnit["Pinch"] = "Pinch";
|
823
|
+
/** FluidDram */
|
824
|
+
KnownVolumeUnit["FluidDram"] = "FluidDram";
|
825
|
+
/** Barrel */
|
826
|
+
KnownVolumeUnit["Barrel"] = "Barrel";
|
827
|
+
/** Minim */
|
828
|
+
KnownVolumeUnit["Minim"] = "Minim";
|
829
|
+
/** Cord */
|
830
|
+
KnownVolumeUnit["Cord"] = "Cord";
|
831
|
+
/** Peck */
|
832
|
+
KnownVolumeUnit["Peck"] = "Peck";
|
833
|
+
/** Bushel */
|
834
|
+
KnownVolumeUnit["Bushel"] = "Bushel";
|
835
|
+
/** Hogshead */
|
836
|
+
KnownVolumeUnit["Hogshead"] = "Hogshead";
|
837
|
+
})(KnownVolumeUnit || (KnownVolumeUnit = {}));
|
838
|
+
/** Known values of {@link SpeedUnit} that the service accepts. */
|
839
|
+
export var KnownSpeedUnit;
|
840
|
+
(function (KnownSpeedUnit) {
|
841
|
+
/** Unspecified */
|
842
|
+
KnownSpeedUnit["Unspecified"] = "Unspecified";
|
843
|
+
/** MetersPerSecond */
|
844
|
+
KnownSpeedUnit["MetersPerSecond"] = "MetersPerSecond";
|
845
|
+
/** KilometersPerHour */
|
846
|
+
KnownSpeedUnit["KilometersPerHour"] = "KilometersPerHour";
|
847
|
+
/** KilometersPerMinute */
|
848
|
+
KnownSpeedUnit["KilometersPerMinute"] = "KilometersPerMinute";
|
849
|
+
/** KilometersPerSecond */
|
850
|
+
KnownSpeedUnit["KilometersPerSecond"] = "KilometersPerSecond";
|
851
|
+
/** MilesPerHour */
|
852
|
+
KnownSpeedUnit["MilesPerHour"] = "MilesPerHour";
|
853
|
+
/** Knot */
|
854
|
+
KnownSpeedUnit["Knot"] = "Knot";
|
855
|
+
/** FootPerSecond */
|
856
|
+
KnownSpeedUnit["FootPerSecond"] = "FootPerSecond";
|
857
|
+
/** FootPerMinute */
|
858
|
+
KnownSpeedUnit["FootPerMinute"] = "FootPerMinute";
|
859
|
+
/** YardsPerMinute */
|
860
|
+
KnownSpeedUnit["YardsPerMinute"] = "YardsPerMinute";
|
861
|
+
/** YardsPerSecond */
|
862
|
+
KnownSpeedUnit["YardsPerSecond"] = "YardsPerSecond";
|
863
|
+
/** MetersPerMillisecond */
|
864
|
+
KnownSpeedUnit["MetersPerMillisecond"] = "MetersPerMillisecond";
|
865
|
+
/** CentimetersPerMillisecond */
|
866
|
+
KnownSpeedUnit["CentimetersPerMillisecond"] = "CentimetersPerMillisecond";
|
867
|
+
/** KilometersPerMillisecond */
|
868
|
+
KnownSpeedUnit["KilometersPerMillisecond"] = "KilometersPerMillisecond";
|
869
|
+
})(KnownSpeedUnit || (KnownSpeedUnit = {}));
|
870
|
+
/** Known values of {@link AreaUnit} that the service accepts. */
|
871
|
+
export var KnownAreaUnit;
|
872
|
+
(function (KnownAreaUnit) {
|
873
|
+
/** Unspecified */
|
874
|
+
KnownAreaUnit["Unspecified"] = "Unspecified";
|
875
|
+
/** SquareKilometer */
|
876
|
+
KnownAreaUnit["SquareKilometer"] = "SquareKilometer";
|
877
|
+
/** SquareHectometer */
|
878
|
+
KnownAreaUnit["SquareHectometer"] = "SquareHectometer";
|
879
|
+
/** SquareDecameter */
|
880
|
+
KnownAreaUnit["SquareDecameter"] = "SquareDecameter";
|
881
|
+
/** SquareDecimeter */
|
882
|
+
KnownAreaUnit["SquareDecimeter"] = "SquareDecimeter";
|
883
|
+
/** SquareMeter */
|
884
|
+
KnownAreaUnit["SquareMeter"] = "SquareMeter";
|
885
|
+
/** SquareCentimeter */
|
886
|
+
KnownAreaUnit["SquareCentimeter"] = "SquareCentimeter";
|
887
|
+
/** SquareMillimeter */
|
888
|
+
KnownAreaUnit["SquareMillimeter"] = "SquareMillimeter";
|
889
|
+
/** SquareInch */
|
890
|
+
KnownAreaUnit["SquareInch"] = "SquareInch";
|
891
|
+
/** SquareFoot */
|
892
|
+
KnownAreaUnit["SquareFoot"] = "SquareFoot";
|
893
|
+
/** SquareMile */
|
894
|
+
KnownAreaUnit["SquareMile"] = "SquareMile";
|
895
|
+
/** SquareYard */
|
896
|
+
KnownAreaUnit["SquareYard"] = "SquareYard";
|
897
|
+
/** Acre */
|
898
|
+
KnownAreaUnit["Acre"] = "Acre";
|
899
|
+
})(KnownAreaUnit || (KnownAreaUnit = {}));
|
900
|
+
/** Known values of {@link LengthUnit} that the service accepts. */
|
901
|
+
export var KnownLengthUnit;
|
902
|
+
(function (KnownLengthUnit) {
|
903
|
+
/** Unspecified */
|
904
|
+
KnownLengthUnit["Unspecified"] = "Unspecified";
|
905
|
+
/** Kilometer */
|
906
|
+
KnownLengthUnit["Kilometer"] = "Kilometer";
|
907
|
+
/** Hectometer */
|
908
|
+
KnownLengthUnit["Hectometer"] = "Hectometer";
|
909
|
+
/** Decameter */
|
910
|
+
KnownLengthUnit["Decameter"] = "Decameter";
|
911
|
+
/** Meter */
|
912
|
+
KnownLengthUnit["Meter"] = "Meter";
|
913
|
+
/** Decimeter */
|
914
|
+
KnownLengthUnit["Decimeter"] = "Decimeter";
|
915
|
+
/** Centimeter */
|
916
|
+
KnownLengthUnit["Centimeter"] = "Centimeter";
|
917
|
+
/** Millimeter */
|
918
|
+
KnownLengthUnit["Millimeter"] = "Millimeter";
|
919
|
+
/** Micrometer */
|
920
|
+
KnownLengthUnit["Micrometer"] = "Micrometer";
|
921
|
+
/** Nanometer */
|
922
|
+
KnownLengthUnit["Nanometer"] = "Nanometer";
|
923
|
+
/** Picometer */
|
924
|
+
KnownLengthUnit["Picometer"] = "Picometer";
|
925
|
+
/** Mile */
|
926
|
+
KnownLengthUnit["Mile"] = "Mile";
|
927
|
+
/** Yard */
|
928
|
+
KnownLengthUnit["Yard"] = "Yard";
|
929
|
+
/** Inch */
|
930
|
+
KnownLengthUnit["Inch"] = "Inch";
|
931
|
+
/** Foot */
|
932
|
+
KnownLengthUnit["Foot"] = "Foot";
|
933
|
+
/** LightYear */
|
934
|
+
KnownLengthUnit["LightYear"] = "LightYear";
|
935
|
+
/** Pt */
|
936
|
+
KnownLengthUnit["Pt"] = "Pt";
|
937
|
+
})(KnownLengthUnit || (KnownLengthUnit = {}));
|
938
|
+
/** Known values of {@link InformationUnit} that the service accepts. */
|
939
|
+
export var KnownInformationUnit;
|
940
|
+
(function (KnownInformationUnit) {
|
941
|
+
/** Unspecified */
|
942
|
+
KnownInformationUnit["Unspecified"] = "Unspecified";
|
943
|
+
/** Bit */
|
944
|
+
KnownInformationUnit["Bit"] = "Bit";
|
945
|
+
/** Kilobit */
|
946
|
+
KnownInformationUnit["Kilobit"] = "Kilobit";
|
947
|
+
/** Megabit */
|
948
|
+
KnownInformationUnit["Megabit"] = "Megabit";
|
949
|
+
/** Gigabit */
|
950
|
+
KnownInformationUnit["Gigabit"] = "Gigabit";
|
951
|
+
/** Terabit */
|
952
|
+
KnownInformationUnit["Terabit"] = "Terabit";
|
953
|
+
/** Petabit */
|
954
|
+
KnownInformationUnit["Petabit"] = "Petabit";
|
955
|
+
/** Byte */
|
956
|
+
KnownInformationUnit["Byte"] = "Byte";
|
957
|
+
/** Kilobyte */
|
958
|
+
KnownInformationUnit["Kilobyte"] = "Kilobyte";
|
959
|
+
/** Megabyte */
|
960
|
+
KnownInformationUnit["Megabyte"] = "Megabyte";
|
961
|
+
/** Gigabyte */
|
962
|
+
KnownInformationUnit["Gigabyte"] = "Gigabyte";
|
963
|
+
/** Terabyte */
|
964
|
+
KnownInformationUnit["Terabyte"] = "Terabyte";
|
965
|
+
/** Petabyte */
|
966
|
+
KnownInformationUnit["Petabyte"] = "Petabyte";
|
967
|
+
})(KnownInformationUnit || (KnownInformationUnit = {}));
|
968
|
+
/** Known values of {@link TemperatureUnit} that the service accepts. */
|
969
|
+
export var KnownTemperatureUnit;
|
970
|
+
(function (KnownTemperatureUnit) {
|
971
|
+
/** Unspecified */
|
972
|
+
KnownTemperatureUnit["Unspecified"] = "Unspecified";
|
973
|
+
/** Fahrenheit */
|
974
|
+
KnownTemperatureUnit["Fahrenheit"] = "Fahrenheit";
|
975
|
+
/** Kelvin */
|
976
|
+
KnownTemperatureUnit["Kelvin"] = "Kelvin";
|
977
|
+
/** Rankine */
|
978
|
+
KnownTemperatureUnit["Rankine"] = "Rankine";
|
979
|
+
/** Celsius */
|
980
|
+
KnownTemperatureUnit["Celsius"] = "Celsius";
|
981
|
+
})(KnownTemperatureUnit || (KnownTemperatureUnit = {}));
|
982
|
+
/** Known values of {@link WeightUnit} that the service accepts. */
|
983
|
+
export var KnownWeightUnit;
|
984
|
+
(function (KnownWeightUnit) {
|
985
|
+
/** Unspecified */
|
986
|
+
KnownWeightUnit["Unspecified"] = "Unspecified";
|
987
|
+
/** Kilogram */
|
988
|
+
KnownWeightUnit["Kilogram"] = "Kilogram";
|
989
|
+
/** Gram */
|
990
|
+
KnownWeightUnit["Gram"] = "Gram";
|
991
|
+
/** Milligram */
|
992
|
+
KnownWeightUnit["Milligram"] = "Milligram";
|
993
|
+
/** Gallon */
|
994
|
+
KnownWeightUnit["Gallon"] = "Gallon";
|
995
|
+
/** MetricTon */
|
996
|
+
KnownWeightUnit["MetricTon"] = "MetricTon";
|
997
|
+
/** Ton */
|
998
|
+
KnownWeightUnit["Ton"] = "Ton";
|
999
|
+
/** Pound */
|
1000
|
+
KnownWeightUnit["Pound"] = "Pound";
|
1001
|
+
/** Ounce */
|
1002
|
+
KnownWeightUnit["Ounce"] = "Ounce";
|
1003
|
+
/** Grain */
|
1004
|
+
KnownWeightUnit["Grain"] = "Grain";
|
1005
|
+
/** PennyWeight */
|
1006
|
+
KnownWeightUnit["PennyWeight"] = "PennyWeight";
|
1007
|
+
/** LongTonBritish */
|
1008
|
+
KnownWeightUnit["LongTonBritish"] = "LongTonBritish";
|
1009
|
+
/** ShortTonUS */
|
1010
|
+
KnownWeightUnit["ShortTonUS"] = "ShortTonUS";
|
1011
|
+
/** ShortHundredWeightUS */
|
1012
|
+
KnownWeightUnit["ShortHundredWeightUS"] = "ShortHundredWeightUS";
|
1013
|
+
/** Stone */
|
1014
|
+
KnownWeightUnit["Stone"] = "Stone";
|
1015
|
+
/** Dram */
|
1016
|
+
KnownWeightUnit["Dram"] = "Dram";
|
1017
|
+
})(KnownWeightUnit || (KnownWeightUnit = {}));
|
1018
|
+
/** Known values of {@link DateTimeSubKind} that the service accepts. */
|
1019
|
+
export var KnownDateTimeSubKind;
|
1020
|
+
(function (KnownDateTimeSubKind) {
|
1021
|
+
/** Time */
|
1022
|
+
KnownDateTimeSubKind["Time"] = "Time";
|
1023
|
+
/** Date */
|
1024
|
+
KnownDateTimeSubKind["Date"] = "Date";
|
1025
|
+
/** DateTime */
|
1026
|
+
KnownDateTimeSubKind["DateTime"] = "DateTime";
|
1027
|
+
/** Duration */
|
1028
|
+
KnownDateTimeSubKind["Duration"] = "Duration";
|
1029
|
+
/** Set */
|
1030
|
+
KnownDateTimeSubKind["Set"] = "Set";
|
1031
|
+
})(KnownDateTimeSubKind || (KnownDateTimeSubKind = {}));
|
1032
|
+
/** Known values of {@link TemporalModifier} that the service accepts. */
|
1033
|
+
export var KnownTemporalModifier;
|
1034
|
+
(function (KnownTemporalModifier) {
|
1035
|
+
/** AfterApprox */
|
1036
|
+
KnownTemporalModifier["AfterApprox"] = "AfterApprox";
|
1037
|
+
/** Before */
|
1038
|
+
KnownTemporalModifier["Before"] = "Before";
|
1039
|
+
/** BeforeStart */
|
1040
|
+
KnownTemporalModifier["BeforeStart"] = "BeforeStart";
|
1041
|
+
/** Approx */
|
1042
|
+
KnownTemporalModifier["Approx"] = "Approx";
|
1043
|
+
/** ReferenceUndefined */
|
1044
|
+
KnownTemporalModifier["ReferenceUndefined"] = "ReferenceUndefined";
|
1045
|
+
/** SinceEnd */
|
1046
|
+
KnownTemporalModifier["SinceEnd"] = "SinceEnd";
|
1047
|
+
/** AfterMid */
|
1048
|
+
KnownTemporalModifier["AfterMid"] = "AfterMid";
|
1049
|
+
/** Start */
|
1050
|
+
KnownTemporalModifier["Start"] = "Start";
|
1051
|
+
/** After */
|
1052
|
+
KnownTemporalModifier["After"] = "After";
|
1053
|
+
/** BeforeEnd */
|
1054
|
+
KnownTemporalModifier["BeforeEnd"] = "BeforeEnd";
|
1055
|
+
/** Until */
|
1056
|
+
KnownTemporalModifier["Until"] = "Until";
|
1057
|
+
/** End */
|
1058
|
+
KnownTemporalModifier["End"] = "End";
|
1059
|
+
/** Less */
|
1060
|
+
KnownTemporalModifier["Less"] = "Less";
|
1061
|
+
/** Since */
|
1062
|
+
KnownTemporalModifier["Since"] = "Since";
|
1063
|
+
/** AfterStart */
|
1064
|
+
KnownTemporalModifier["AfterStart"] = "AfterStart";
|
1065
|
+
/** BeforeApprox */
|
1066
|
+
KnownTemporalModifier["BeforeApprox"] = "BeforeApprox";
|
1067
|
+
/** Mid */
|
1068
|
+
KnownTemporalModifier["Mid"] = "Mid";
|
1069
|
+
/** More */
|
1070
|
+
KnownTemporalModifier["More"] = "More";
|
1071
|
+
})(KnownTemporalModifier || (KnownTemporalModifier = {}));
|
1072
|
+
/** Known values of {@link NumberKind} that the service accepts. */
|
1073
|
+
export var KnownNumberKind;
|
1074
|
+
(function (KnownNumberKind) {
|
1075
|
+
/** Integer */
|
1076
|
+
KnownNumberKind["Integer"] = "Integer";
|
1077
|
+
/** Decimal */
|
1078
|
+
KnownNumberKind["Decimal"] = "Decimal";
|
1079
|
+
/** Power */
|
1080
|
+
KnownNumberKind["Power"] = "Power";
|
1081
|
+
/** Fraction */
|
1082
|
+
KnownNumberKind["Fraction"] = "Fraction";
|
1083
|
+
/** Percent */
|
1084
|
+
KnownNumberKind["Percent"] = "Percent";
|
1085
|
+
/** Unspecified */
|
1086
|
+
KnownNumberKind["Unspecified"] = "Unspecified";
|
1087
|
+
})(KnownNumberKind || (KnownNumberKind = {}));
|
1088
|
+
/** Known values of {@link RelativeTo} that the service accepts. */
|
1089
|
+
export var KnownRelativeTo;
|
1090
|
+
(function (KnownRelativeTo) {
|
1091
|
+
/** Current */
|
1092
|
+
KnownRelativeTo["Current"] = "Current";
|
1093
|
+
/** End */
|
1094
|
+
KnownRelativeTo["End"] = "End";
|
1095
|
+
/** Start */
|
1096
|
+
KnownRelativeTo["Start"] = "Start";
|
1097
|
+
})(KnownRelativeTo || (KnownRelativeTo = {}));
|
1098
|
+
/** Known values of {@link RangeKind} that the service accepts. */
|
1099
|
+
export var KnownRangeKind;
|
1100
|
+
(function (KnownRangeKind) {
|
1101
|
+
/** Number */
|
1102
|
+
KnownRangeKind["Number"] = "Number";
|
1103
|
+
/** Speed */
|
1104
|
+
KnownRangeKind["Speed"] = "Speed";
|
1105
|
+
/** Weight */
|
1106
|
+
KnownRangeKind["Weight"] = "Weight";
|
1107
|
+
/** Length */
|
1108
|
+
KnownRangeKind["Length"] = "Length";
|
1109
|
+
/** Volume */
|
1110
|
+
KnownRangeKind["Volume"] = "Volume";
|
1111
|
+
/** Area */
|
1112
|
+
KnownRangeKind["Area"] = "Area";
|
1113
|
+
/** Age */
|
1114
|
+
KnownRangeKind["Age"] = "Age";
|
1115
|
+
/** Information */
|
1116
|
+
KnownRangeKind["Information"] = "Information";
|
1117
|
+
/** Temperature */
|
1118
|
+
KnownRangeKind["Temperature"] = "Temperature";
|
1119
|
+
/** Currency */
|
1120
|
+
KnownRangeKind["Currency"] = "Currency";
|
1121
|
+
})(KnownRangeKind || (KnownRangeKind = {}));
|
668
1122
|
//# sourceMappingURL=index.js.map
|