@azure/ai-language-text 1.1.0-alpha.20230418.2 → 1.1.0-alpha.20230615.5

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.
@@ -8,7 +8,7 @@ export const DEFAULT_COGNITIVE_SCOPE = "https://cognitiveservices.azure.com/.def
8
8
  /**
9
9
  * @internal
10
10
  */
11
- export const SDK_VERSION = "1.1.0-beta.3";
11
+ export const SDK_VERSION = "1.1.0";
12
12
  /**
13
13
  * @internal
14
14
  */
@@ -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,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.3\";\n\n/**\n * @internal\n */\nexport const clientName = \"TextAnalysisClient\";\n"]}
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,OAAO,CAAC;AAEnC;;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\";\n\n/**\n * @internal\n */\nexport const clientName = \"TextAnalysisClient\";\n"]}
@@ -29,7 +29,7 @@ export class GeneratedClient extends coreClient.ServiceClient {
29
29
  const defaults = {
30
30
  requestContentType: "application/json; charset=utf-8"
31
31
  };
32
- const packageDetails = `azsdk-js-ai-language-text/1.1.0-beta.3`;
32
+ const packageDetails = `azsdk-js-ai-language-text/1.1.0`;
33
33
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
34
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
35
  : `${packageDetails}`;
@@ -40,7 +40,7 @@ export class GeneratedClient extends coreClient.ServiceClient {
40
40
  // Parameter assignments
41
41
  this.endpoint = endpoint;
42
42
  // Assigning values to Constant parameters
43
- this.apiVersion = options.apiVersion || "2022-10-01-preview";
43
+ this.apiVersion = options.apiVersion || "2023-04-01";
44
44
  this.analyzeText = new AnalyzeTextImpl(this);
45
45
  this.addCustomApiVersionPolicy(options.apiVersion);
46
46
  }
@@ -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;AAMjD,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,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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 {\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.3`;\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 endpoint: options.endpoint ?? options.baseUri ?? \"{Endpoint}/language\"\n };\n super(optionsWithDefaults);\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"]}
1
+ {"version":3,"file":"generatedClient.js","sourceRoot":"","sources":["../../../src/generated/generatedClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAA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,CAAC;CAGF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,gBAAgB;IACtB,UAAU,EAAE,MAAM;IAClB,SAAS,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 {\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`;\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 endpoint: options.endpoint ?? options.baseUri ?? \"{Endpoint}/language\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2023-04-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"]}
@@ -563,40 +563,6 @@ export var KnownPiiEntityCategory;
563
563
  /** Default */
564
564
  KnownPiiEntityCategory["Default"] = "Default";
565
565
  })(KnownPiiEntityCategory || (KnownPiiEntityCategory = {}));
566
- /** Known values of {@link ResolutionKind} that the service accepts. */
567
- export var KnownResolutionKind;
568
- (function (KnownResolutionKind) {
569
- /** BooleanResolution */
570
- KnownResolutionKind["BooleanResolution"] = "BooleanResolution";
571
- /** DateTimeResolution */
572
- KnownResolutionKind["DateTimeResolution"] = "DateTimeResolution";
573
- /** NumberResolution */
574
- KnownResolutionKind["NumberResolution"] = "NumberResolution";
575
- /** OrdinalResolution */
576
- KnownResolutionKind["OrdinalResolution"] = "OrdinalResolution";
577
- /** SpeedResolution */
578
- KnownResolutionKind["SpeedResolution"] = "SpeedResolution";
579
- /** WeightResolution */
580
- KnownResolutionKind["WeightResolution"] = "WeightResolution";
581
- /** LengthResolution */
582
- KnownResolutionKind["LengthResolution"] = "LengthResolution";
583
- /** VolumeResolution */
584
- KnownResolutionKind["VolumeResolution"] = "VolumeResolution";
585
- /** AreaResolution */
586
- KnownResolutionKind["AreaResolution"] = "AreaResolution";
587
- /** AgeResolution */
588
- KnownResolutionKind["AgeResolution"] = "AgeResolution";
589
- /** InformationResolution */
590
- KnownResolutionKind["InformationResolution"] = "InformationResolution";
591
- /** TemperatureResolution */
592
- KnownResolutionKind["TemperatureResolution"] = "TemperatureResolution";
593
- /** CurrencyResolution */
594
- KnownResolutionKind["CurrencyResolution"] = "CurrencyResolution";
595
- /** NumericRangeResolution */
596
- KnownResolutionKind["NumericRangeResolution"] = "NumericRangeResolution";
597
- /** TemporalSpanResolution */
598
- KnownResolutionKind["TemporalSpanResolution"] = "TemporalSpanResolution";
599
- })(KnownResolutionKind || (KnownResolutionKind = {}));
600
566
  /** Known values of {@link WarningCode} that the service accepts. */
601
567
  export var KnownWarningCode;
602
568
  (function (KnownWarningCode) {
@@ -605,40 +571,6 @@ export var KnownWarningCode;
605
571
  /** DocumentTruncated */
606
572
  KnownWarningCode["DocumentTruncated"] = "DocumentTruncated";
607
573
  })(KnownWarningCode || (KnownWarningCode = {}));
608
- /** Known values of {@link ScriptKind} that the service accepts. */
609
- export var KnownScriptKind;
610
- (function (KnownScriptKind) {
611
- /** Latin */
612
- KnownScriptKind["Latin"] = "Latin";
613
- })(KnownScriptKind || (KnownScriptKind = {}));
614
- /** Known values of {@link FhirVersion} that the service accepts. */
615
- export var KnownFhirVersion;
616
- (function (KnownFhirVersion) {
617
- /** Four01 */
618
- KnownFhirVersion["Four01"] = "4.0.1";
619
- })(KnownFhirVersion || (KnownFhirVersion = {}));
620
- /** Known values of {@link HealthcareDocumentType} that the service accepts. */
621
- export var KnownHealthcareDocumentType;
622
- (function (KnownHealthcareDocumentType) {
623
- /** None */
624
- KnownHealthcareDocumentType["None"] = "None";
625
- /** ClinicalTrial */
626
- KnownHealthcareDocumentType["ClinicalTrial"] = "ClinicalTrial";
627
- /** DischargeSummary */
628
- KnownHealthcareDocumentType["DischargeSummary"] = "DischargeSummary";
629
- /** ProgressNote */
630
- KnownHealthcareDocumentType["ProgressNote"] = "ProgressNote";
631
- /** HistoryAndPhysical */
632
- KnownHealthcareDocumentType["HistoryAndPhysical"] = "HistoryAndPhysical";
633
- /** Consult */
634
- KnownHealthcareDocumentType["Consult"] = "Consult";
635
- /** Imaging */
636
- KnownHealthcareDocumentType["Imaging"] = "Imaging";
637
- /** Pathology */
638
- KnownHealthcareDocumentType["Pathology"] = "Pathology";
639
- /** ProcedureNote */
640
- KnownHealthcareDocumentType["ProcedureNote"] = "ProcedureNote";
641
- })(KnownHealthcareDocumentType || (KnownHealthcareDocumentType = {}));
642
574
  /** Known values of {@link HealthcareEntityCategory} that the service accepts. */
643
575
  export var KnownHealthcareEntityCategory;
644
576
  (function (KnownHealthcareEntityCategory) {
@@ -648,6 +580,8 @@ export var KnownHealthcareEntityCategory;
648
580
  KnownHealthcareEntityCategory["Age"] = "Age";
649
581
  /** Gender */
650
582
  KnownHealthcareEntityCategory["Gender"] = "Gender";
583
+ /** Ethnicity */
584
+ KnownHealthcareEntityCategory["Ethnicity"] = "Ethnicity";
651
585
  /** ExaminationName */
652
586
  KnownHealthcareEntityCategory["ExaminationName"] = "ExaminationName";
653
587
  /** Date */
@@ -664,10 +598,16 @@ export var KnownHealthcareEntityCategory;
664
598
  KnownHealthcareEntityCategory["RelationalOperator"] = "RelationalOperator";
665
599
  /** Time */
666
600
  KnownHealthcareEntityCategory["Time"] = "Time";
601
+ /** Course */
602
+ KnownHealthcareEntityCategory["Course"] = "Course";
667
603
  /** GeneOrProtein */
668
604
  KnownHealthcareEntityCategory["GeneOrProtein"] = "GeneOrProtein";
669
605
  /** Variant */
670
606
  KnownHealthcareEntityCategory["Variant"] = "Variant";
607
+ /** Expression */
608
+ KnownHealthcareEntityCategory["Expression"] = "Expression";
609
+ /** MutationType */
610
+ KnownHealthcareEntityCategory["MutationType"] = "MutationType";
671
611
  /** AdministrativeEvent */
672
612
  KnownHealthcareEntityCategory["AdministrativeEvent"] = "AdministrativeEvent";
673
613
  /** CareEnvironment */
@@ -680,6 +620,8 @@ export var KnownHealthcareEntityCategory;
680
620
  KnownHealthcareEntityCategory["SymptomOrSign"] = "SymptomOrSign";
681
621
  /** ConditionQualifier */
682
622
  KnownHealthcareEntityCategory["ConditionQualifier"] = "ConditionQualifier";
623
+ /** ConditionScale */
624
+ KnownHealthcareEntityCategory["ConditionScale"] = "ConditionScale";
683
625
  /** MedicationClass */
684
626
  KnownHealthcareEntityCategory["MedicationClass"] = "MedicationClass";
685
627
  /** MedicationName */
@@ -694,12 +636,34 @@ export var KnownHealthcareEntityCategory;
694
636
  KnownHealthcareEntityCategory["FamilyRelation"] = "FamilyRelation";
695
637
  /** TreatmentName */
696
638
  KnownHealthcareEntityCategory["TreatmentName"] = "TreatmentName";
639
+ /** Allergen */
640
+ KnownHealthcareEntityCategory["Allergen"] = "Allergen";
641
+ /** Employment */
642
+ KnownHealthcareEntityCategory["Employment"] = "Employment";
643
+ /** LivingStatus */
644
+ KnownHealthcareEntityCategory["LivingStatus"] = "LivingStatus";
645
+ /** SubstanceUse */
646
+ KnownHealthcareEntityCategory["SubstanceUse"] = "SubstanceUse";
647
+ /** SubstanceUseAmount */
648
+ KnownHealthcareEntityCategory["SubstanceUseAmount"] = "SubstanceUseAmount";
697
649
  })(KnownHealthcareEntityCategory || (KnownHealthcareEntityCategory = {}));
698
650
  /** Known values of {@link RelationType} that the service accepts. */
699
651
  export var KnownRelationType;
700
652
  (function (KnownRelationType) {
701
653
  /** Abbreviation */
702
654
  KnownRelationType["Abbreviation"] = "Abbreviation";
655
+ /** BodySiteOfCondition */
656
+ KnownRelationType["BodySiteOfCondition"] = "BodySiteOfCondition";
657
+ /** BodySiteOfTreatment */
658
+ KnownRelationType["BodySiteOfTreatment"] = "BodySiteOfTreatment";
659
+ /** CourseOfCondition */
660
+ KnownRelationType["CourseOfCondition"] = "CourseOfCondition";
661
+ /** CourseOfExamination */
662
+ KnownRelationType["CourseOfExamination"] = "CourseOfExamination";
663
+ /** CourseOfMedication */
664
+ KnownRelationType["CourseOfMedication"] = "CourseOfMedication";
665
+ /** CourseOfTreatment */
666
+ KnownRelationType["CourseOfTreatment"] = "CourseOfTreatment";
703
667
  /** DirectionOfBodyStructure */
704
668
  KnownRelationType["DirectionOfBodyStructure"] = "DirectionOfBodyStructure";
705
669
  /** DirectionOfCondition */
@@ -710,18 +674,32 @@ export var KnownRelationType;
710
674
  KnownRelationType["DirectionOfTreatment"] = "DirectionOfTreatment";
711
675
  /** DosageOfMedication */
712
676
  KnownRelationType["DosageOfMedication"] = "DosageOfMedication";
677
+ /** ExaminationFindsCondition */
678
+ KnownRelationType["ExaminationFindsCondition"] = "ExaminationFindsCondition";
679
+ /** ExpressionOfGene */
680
+ KnownRelationType["ExpressionOfGene"] = "ExpressionOfGene";
681
+ /** ExpressionOfVariant */
682
+ KnownRelationType["ExpressionOfVariant"] = "ExpressionOfVariant";
713
683
  /** FormOfMedication */
714
684
  KnownRelationType["FormOfMedication"] = "FormOfMedication";
685
+ /** FrequencyOfCondition */
686
+ KnownRelationType["FrequencyOfCondition"] = "FrequencyOfCondition";
715
687
  /** FrequencyOfMedication */
716
688
  KnownRelationType["FrequencyOfMedication"] = "FrequencyOfMedication";
717
689
  /** FrequencyOfTreatment */
718
690
  KnownRelationType["FrequencyOfTreatment"] = "FrequencyOfTreatment";
691
+ /** MutationTypeOfGene */
692
+ KnownRelationType["MutationTypeOfGene"] = "MutationTypeOfGene";
693
+ /** MutationTypeOfVariant */
694
+ KnownRelationType["MutationTypeOfVariant"] = "MutationTypeOfVariant";
719
695
  /** QualifierOfCondition */
720
696
  KnownRelationType["QualifierOfCondition"] = "QualifierOfCondition";
721
697
  /** RelationOfExamination */
722
698
  KnownRelationType["RelationOfExamination"] = "RelationOfExamination";
723
699
  /** RouteOfMedication */
724
700
  KnownRelationType["RouteOfMedication"] = "RouteOfMedication";
701
+ /** ScaleOfCondition */
702
+ KnownRelationType["ScaleOfCondition"] = "ScaleOfCondition";
725
703
  /** TimeOfCondition */
726
704
  KnownRelationType["TimeOfCondition"] = "TimeOfCondition";
727
705
  /** TimeOfEvent */
@@ -740,365 +718,9 @@ export var KnownRelationType;
740
718
  KnownRelationType["ValueOfCondition"] = "ValueOfCondition";
741
719
  /** ValueOfExamination */
742
720
  KnownRelationType["ValueOfExamination"] = "ValueOfExamination";
721
+ /** VariantOfGene */
722
+ KnownRelationType["VariantOfGene"] = "VariantOfGene";
743
723
  })(KnownRelationType || (KnownRelationType = {}));
744
- /** Known values of {@link AgeUnit} that the service accepts. */
745
- export var KnownAgeUnit;
746
- (function (KnownAgeUnit) {
747
- /** Unspecified */
748
- KnownAgeUnit["Unspecified"] = "Unspecified";
749
- /** Year */
750
- KnownAgeUnit["Year"] = "Year";
751
- /** Month */
752
- KnownAgeUnit["Month"] = "Month";
753
- /** Week */
754
- KnownAgeUnit["Week"] = "Week";
755
- /** Day */
756
- KnownAgeUnit["Day"] = "Day";
757
- })(KnownAgeUnit || (KnownAgeUnit = {}));
758
- /** Known values of {@link VolumeUnit} that the service accepts. */
759
- export var KnownVolumeUnit;
760
- (function (KnownVolumeUnit) {
761
- /** Unspecified */
762
- KnownVolumeUnit["Unspecified"] = "Unspecified";
763
- /** CubicMeter */
764
- KnownVolumeUnit["CubicMeter"] = "CubicMeter";
765
- /** CubicCentimeter */
766
- KnownVolumeUnit["CubicCentimeter"] = "CubicCentimeter";
767
- /** CubicMillimeter */
768
- KnownVolumeUnit["CubicMillimeter"] = "CubicMillimeter";
769
- /** Hectoliter */
770
- KnownVolumeUnit["Hectoliter"] = "Hectoliter";
771
- /** Decaliter */
772
- KnownVolumeUnit["Decaliter"] = "Decaliter";
773
- /** Liter */
774
- KnownVolumeUnit["Liter"] = "Liter";
775
- /** Centiliter */
776
- KnownVolumeUnit["Centiliter"] = "Centiliter";
777
- /** Milliliter */
778
- KnownVolumeUnit["Milliliter"] = "Milliliter";
779
- /** CubicYard */
780
- KnownVolumeUnit["CubicYard"] = "CubicYard";
781
- /** CubicInch */
782
- KnownVolumeUnit["CubicInch"] = "CubicInch";
783
- /** CubicFoot */
784
- KnownVolumeUnit["CubicFoot"] = "CubicFoot";
785
- /** CubicMile */
786
- KnownVolumeUnit["CubicMile"] = "CubicMile";
787
- /** FluidOunce */
788
- KnownVolumeUnit["FluidOunce"] = "FluidOunce";
789
- /** Teaspoon */
790
- KnownVolumeUnit["Teaspoon"] = "Teaspoon";
791
- /** Tablespoon */
792
- KnownVolumeUnit["Tablespoon"] = "Tablespoon";
793
- /** Pint */
794
- KnownVolumeUnit["Pint"] = "Pint";
795
- /** Quart */
796
- KnownVolumeUnit["Quart"] = "Quart";
797
- /** Cup */
798
- KnownVolumeUnit["Cup"] = "Cup";
799
- /** Gill */
800
- KnownVolumeUnit["Gill"] = "Gill";
801
- /** Pinch */
802
- KnownVolumeUnit["Pinch"] = "Pinch";
803
- /** FluidDram */
804
- KnownVolumeUnit["FluidDram"] = "FluidDram";
805
- /** Barrel */
806
- KnownVolumeUnit["Barrel"] = "Barrel";
807
- /** Minim */
808
- KnownVolumeUnit["Minim"] = "Minim";
809
- /** Cord */
810
- KnownVolumeUnit["Cord"] = "Cord";
811
- /** Peck */
812
- KnownVolumeUnit["Peck"] = "Peck";
813
- /** Bushel */
814
- KnownVolumeUnit["Bushel"] = "Bushel";
815
- /** Hogshead */
816
- KnownVolumeUnit["Hogshead"] = "Hogshead";
817
- })(KnownVolumeUnit || (KnownVolumeUnit = {}));
818
- /** Known values of {@link SpeedUnit} that the service accepts. */
819
- export var KnownSpeedUnit;
820
- (function (KnownSpeedUnit) {
821
- /** Unspecified */
822
- KnownSpeedUnit["Unspecified"] = "Unspecified";
823
- /** MeterPerSecond */
824
- KnownSpeedUnit["MeterPerSecond"] = "MeterPerSecond";
825
- /** KilometerPerHour */
826
- KnownSpeedUnit["KilometerPerHour"] = "KilometerPerHour";
827
- /** KilometerPerMinute */
828
- KnownSpeedUnit["KilometerPerMinute"] = "KilometerPerMinute";
829
- /** KilometerPerSecond */
830
- KnownSpeedUnit["KilometerPerSecond"] = "KilometerPerSecond";
831
- /** MilePerHour */
832
- KnownSpeedUnit["MilePerHour"] = "MilePerHour";
833
- /** Knot */
834
- KnownSpeedUnit["Knot"] = "Knot";
835
- /** FootPerSecond */
836
- KnownSpeedUnit["FootPerSecond"] = "FootPerSecond";
837
- /** FootPerMinute */
838
- KnownSpeedUnit["FootPerMinute"] = "FootPerMinute";
839
- /** YardPerMinute */
840
- KnownSpeedUnit["YardPerMinute"] = "YardPerMinute";
841
- /** YardPerSecond */
842
- KnownSpeedUnit["YardPerSecond"] = "YardPerSecond";
843
- /** MeterPerMillisecond */
844
- KnownSpeedUnit["MeterPerMillisecond"] = "MeterPerMillisecond";
845
- /** CentimeterPerMillisecond */
846
- KnownSpeedUnit["CentimeterPerMillisecond"] = "CentimeterPerMillisecond";
847
- /** KilometerPerMillisecond */
848
- KnownSpeedUnit["KilometerPerMillisecond"] = "KilometerPerMillisecond";
849
- })(KnownSpeedUnit || (KnownSpeedUnit = {}));
850
- /** Known values of {@link AreaUnit} that the service accepts. */
851
- export var KnownAreaUnit;
852
- (function (KnownAreaUnit) {
853
- /** Unspecified */
854
- KnownAreaUnit["Unspecified"] = "Unspecified";
855
- /** SquareKilometer */
856
- KnownAreaUnit["SquareKilometer"] = "SquareKilometer";
857
- /** SquareHectometer */
858
- KnownAreaUnit["SquareHectometer"] = "SquareHectometer";
859
- /** SquareDecameter */
860
- KnownAreaUnit["SquareDecameter"] = "SquareDecameter";
861
- /** SquareDecimeter */
862
- KnownAreaUnit["SquareDecimeter"] = "SquareDecimeter";
863
- /** SquareMeter */
864
- KnownAreaUnit["SquareMeter"] = "SquareMeter";
865
- /** SquareCentimeter */
866
- KnownAreaUnit["SquareCentimeter"] = "SquareCentimeter";
867
- /** SquareMillimeter */
868
- KnownAreaUnit["SquareMillimeter"] = "SquareMillimeter";
869
- /** SquareInch */
870
- KnownAreaUnit["SquareInch"] = "SquareInch";
871
- /** SquareFoot */
872
- KnownAreaUnit["SquareFoot"] = "SquareFoot";
873
- /** SquareMile */
874
- KnownAreaUnit["SquareMile"] = "SquareMile";
875
- /** SquareYard */
876
- KnownAreaUnit["SquareYard"] = "SquareYard";
877
- /** Acre */
878
- KnownAreaUnit["Acre"] = "Acre";
879
- })(KnownAreaUnit || (KnownAreaUnit = {}));
880
- /** Known values of {@link LengthUnit} that the service accepts. */
881
- export var KnownLengthUnit;
882
- (function (KnownLengthUnit) {
883
- /** Unspecified */
884
- KnownLengthUnit["Unspecified"] = "Unspecified";
885
- /** Kilometer */
886
- KnownLengthUnit["Kilometer"] = "Kilometer";
887
- /** Hectometer */
888
- KnownLengthUnit["Hectometer"] = "Hectometer";
889
- /** Decameter */
890
- KnownLengthUnit["Decameter"] = "Decameter";
891
- /** Meter */
892
- KnownLengthUnit["Meter"] = "Meter";
893
- /** Decimeter */
894
- KnownLengthUnit["Decimeter"] = "Decimeter";
895
- /** Centimeter */
896
- KnownLengthUnit["Centimeter"] = "Centimeter";
897
- /** Millimeter */
898
- KnownLengthUnit["Millimeter"] = "Millimeter";
899
- /** Micrometer */
900
- KnownLengthUnit["Micrometer"] = "Micrometer";
901
- /** Nanometer */
902
- KnownLengthUnit["Nanometer"] = "Nanometer";
903
- /** Picometer */
904
- KnownLengthUnit["Picometer"] = "Picometer";
905
- /** Mile */
906
- KnownLengthUnit["Mile"] = "Mile";
907
- /** Yard */
908
- KnownLengthUnit["Yard"] = "Yard";
909
- /** Inch */
910
- KnownLengthUnit["Inch"] = "Inch";
911
- /** Foot */
912
- KnownLengthUnit["Foot"] = "Foot";
913
- /** LightYear */
914
- KnownLengthUnit["LightYear"] = "LightYear";
915
- /** Pt */
916
- KnownLengthUnit["Pt"] = "Pt";
917
- })(KnownLengthUnit || (KnownLengthUnit = {}));
918
- /** Known values of {@link InformationUnit} that the service accepts. */
919
- export var KnownInformationUnit;
920
- (function (KnownInformationUnit) {
921
- /** Unspecified */
922
- KnownInformationUnit["Unspecified"] = "Unspecified";
923
- /** Bit */
924
- KnownInformationUnit["Bit"] = "Bit";
925
- /** Kilobit */
926
- KnownInformationUnit["Kilobit"] = "Kilobit";
927
- /** Megabit */
928
- KnownInformationUnit["Megabit"] = "Megabit";
929
- /** Gigabit */
930
- KnownInformationUnit["Gigabit"] = "Gigabit";
931
- /** Terabit */
932
- KnownInformationUnit["Terabit"] = "Terabit";
933
- /** Petabit */
934
- KnownInformationUnit["Petabit"] = "Petabit";
935
- /** Byte */
936
- KnownInformationUnit["Byte"] = "Byte";
937
- /** Kilobyte */
938
- KnownInformationUnit["Kilobyte"] = "Kilobyte";
939
- /** Megabyte */
940
- KnownInformationUnit["Megabyte"] = "Megabyte";
941
- /** Gigabyte */
942
- KnownInformationUnit["Gigabyte"] = "Gigabyte";
943
- /** Terabyte */
944
- KnownInformationUnit["Terabyte"] = "Terabyte";
945
- /** Petabyte */
946
- KnownInformationUnit["Petabyte"] = "Petabyte";
947
- })(KnownInformationUnit || (KnownInformationUnit = {}));
948
- /** Known values of {@link TemperatureUnit} that the service accepts. */
949
- export var KnownTemperatureUnit;
950
- (function (KnownTemperatureUnit) {
951
- /** Unspecified */
952
- KnownTemperatureUnit["Unspecified"] = "Unspecified";
953
- /** Fahrenheit */
954
- KnownTemperatureUnit["Fahrenheit"] = "Fahrenheit";
955
- /** Kelvin */
956
- KnownTemperatureUnit["Kelvin"] = "Kelvin";
957
- /** Rankine */
958
- KnownTemperatureUnit["Rankine"] = "Rankine";
959
- /** Celsius */
960
- KnownTemperatureUnit["Celsius"] = "Celsius";
961
- })(KnownTemperatureUnit || (KnownTemperatureUnit = {}));
962
- /** Known values of {@link WeightUnit} that the service accepts. */
963
- export var KnownWeightUnit;
964
- (function (KnownWeightUnit) {
965
- /** Unspecified */
966
- KnownWeightUnit["Unspecified"] = "Unspecified";
967
- /** Kilogram */
968
- KnownWeightUnit["Kilogram"] = "Kilogram";
969
- /** Gram */
970
- KnownWeightUnit["Gram"] = "Gram";
971
- /** Milligram */
972
- KnownWeightUnit["Milligram"] = "Milligram";
973
- /** Gallon */
974
- KnownWeightUnit["Gallon"] = "Gallon";
975
- /** MetricTon */
976
- KnownWeightUnit["MetricTon"] = "MetricTon";
977
- /** Ton */
978
- KnownWeightUnit["Ton"] = "Ton";
979
- /** Pound */
980
- KnownWeightUnit["Pound"] = "Pound";
981
- /** Ounce */
982
- KnownWeightUnit["Ounce"] = "Ounce";
983
- /** Grain */
984
- KnownWeightUnit["Grain"] = "Grain";
985
- /** PennyWeight */
986
- KnownWeightUnit["PennyWeight"] = "PennyWeight";
987
- /** LongTonBritish */
988
- KnownWeightUnit["LongTonBritish"] = "LongTonBritish";
989
- /** ShortTonUS */
990
- KnownWeightUnit["ShortTonUS"] = "ShortTonUS";
991
- /** ShortHundredWeightUS */
992
- KnownWeightUnit["ShortHundredWeightUS"] = "ShortHundredWeightUS";
993
- /** Stone */
994
- KnownWeightUnit["Stone"] = "Stone";
995
- /** Dram */
996
- KnownWeightUnit["Dram"] = "Dram";
997
- })(KnownWeightUnit || (KnownWeightUnit = {}));
998
- /** Known values of {@link DateTimeSubKind} that the service accepts. */
999
- export var KnownDateTimeSubKind;
1000
- (function (KnownDateTimeSubKind) {
1001
- /** Time */
1002
- KnownDateTimeSubKind["Time"] = "Time";
1003
- /** Date */
1004
- KnownDateTimeSubKind["Date"] = "Date";
1005
- /** DateTime */
1006
- KnownDateTimeSubKind["DateTime"] = "DateTime";
1007
- /** Duration */
1008
- KnownDateTimeSubKind["Duration"] = "Duration";
1009
- /** Set */
1010
- KnownDateTimeSubKind["Set"] = "Set";
1011
- })(KnownDateTimeSubKind || (KnownDateTimeSubKind = {}));
1012
- /** Known values of {@link TemporalModifier} that the service accepts. */
1013
- export var KnownTemporalModifier;
1014
- (function (KnownTemporalModifier) {
1015
- /** AfterApprox */
1016
- KnownTemporalModifier["AfterApprox"] = "AfterApprox";
1017
- /** Before */
1018
- KnownTemporalModifier["Before"] = "Before";
1019
- /** BeforeStart */
1020
- KnownTemporalModifier["BeforeStart"] = "BeforeStart";
1021
- /** Approx */
1022
- KnownTemporalModifier["Approx"] = "Approx";
1023
- /** ReferenceUndefined */
1024
- KnownTemporalModifier["ReferenceUndefined"] = "ReferenceUndefined";
1025
- /** SinceEnd */
1026
- KnownTemporalModifier["SinceEnd"] = "SinceEnd";
1027
- /** AfterMid */
1028
- KnownTemporalModifier["AfterMid"] = "AfterMid";
1029
- /** Start */
1030
- KnownTemporalModifier["Start"] = "Start";
1031
- /** After */
1032
- KnownTemporalModifier["After"] = "After";
1033
- /** BeforeEnd */
1034
- KnownTemporalModifier["BeforeEnd"] = "BeforeEnd";
1035
- /** Until */
1036
- KnownTemporalModifier["Until"] = "Until";
1037
- /** End */
1038
- KnownTemporalModifier["End"] = "End";
1039
- /** Less */
1040
- KnownTemporalModifier["Less"] = "Less";
1041
- /** Since */
1042
- KnownTemporalModifier["Since"] = "Since";
1043
- /** AfterStart */
1044
- KnownTemporalModifier["AfterStart"] = "AfterStart";
1045
- /** BeforeApprox */
1046
- KnownTemporalModifier["BeforeApprox"] = "BeforeApprox";
1047
- /** Mid */
1048
- KnownTemporalModifier["Mid"] = "Mid";
1049
- /** More */
1050
- KnownTemporalModifier["More"] = "More";
1051
- })(KnownTemporalModifier || (KnownTemporalModifier = {}));
1052
- /** Known values of {@link NumberKind} that the service accepts. */
1053
- export var KnownNumberKind;
1054
- (function (KnownNumberKind) {
1055
- /** Integer */
1056
- KnownNumberKind["Integer"] = "Integer";
1057
- /** Decimal */
1058
- KnownNumberKind["Decimal"] = "Decimal";
1059
- /** Power */
1060
- KnownNumberKind["Power"] = "Power";
1061
- /** Fraction */
1062
- KnownNumberKind["Fraction"] = "Fraction";
1063
- /** Percent */
1064
- KnownNumberKind["Percent"] = "Percent";
1065
- /** Unspecified */
1066
- KnownNumberKind["Unspecified"] = "Unspecified";
1067
- })(KnownNumberKind || (KnownNumberKind = {}));
1068
- /** Known values of {@link RelativeTo} that the service accepts. */
1069
- export var KnownRelativeTo;
1070
- (function (KnownRelativeTo) {
1071
- /** Current */
1072
- KnownRelativeTo["Current"] = "Current";
1073
- /** End */
1074
- KnownRelativeTo["End"] = "End";
1075
- /** Start */
1076
- KnownRelativeTo["Start"] = "Start";
1077
- })(KnownRelativeTo || (KnownRelativeTo = {}));
1078
- /** Known values of {@link RangeKind} that the service accepts. */
1079
- export var KnownRangeKind;
1080
- (function (KnownRangeKind) {
1081
- /** Number */
1082
- KnownRangeKind["Number"] = "Number";
1083
- /** Speed */
1084
- KnownRangeKind["Speed"] = "Speed";
1085
- /** Weight */
1086
- KnownRangeKind["Weight"] = "Weight";
1087
- /** Length */
1088
- KnownRangeKind["Length"] = "Length";
1089
- /** Volume */
1090
- KnownRangeKind["Volume"] = "Volume";
1091
- /** Area */
1092
- KnownRangeKind["Area"] = "Area";
1093
- /** Age */
1094
- KnownRangeKind["Age"] = "Age";
1095
- /** Information */
1096
- KnownRangeKind["Information"] = "Information";
1097
- /** Temperature */
1098
- KnownRangeKind["Temperature"] = "Temperature";
1099
- /** Currency */
1100
- KnownRangeKind["Currency"] = "Currency";
1101
- })(KnownRangeKind || (KnownRangeKind = {}));
1102
724
  /** Known values of {@link ExtractiveSummarizationOrderingCriteria} that the service accepts. */
1103
725
  export var KnownExtractiveSummarizationOrderingCriteria;
1104
726
  (function (KnownExtractiveSummarizationOrderingCriteria) {