@azure/ai-language-text 1.1.0-beta.1 → 1.1.0

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.1";
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.1\";\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,18 +29,18 @@ 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.1`;
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}`;
36
36
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
37
37
  userAgentPrefix
38
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{Endpoint}/language" });
38
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{Endpoint}/language" });
39
39
  super(optionsWithDefaults);
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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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-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 // 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,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,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,iCAAiC,CAAC;QACzD,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,QAAQ,EAAE,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,qBAAqB,GACvE,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI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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"]}
@@ -20,8 +20,6 @@ export var KnownAnalyzeTextTaskKind;
20
20
  KnownAnalyzeTextTaskKind["LanguageDetection"] = "LanguageDetection";
21
21
  /** EntityLinking */
22
22
  KnownAnalyzeTextTaskKind["EntityLinking"] = "EntityLinking";
23
- /** DynamicClassification */
24
- KnownAnalyzeTextTaskKind["DynamicClassification"] = "DynamicClassification";
25
23
  })(KnownAnalyzeTextTaskKind || (KnownAnalyzeTextTaskKind = {}));
26
24
  /** Known values of {@link AnalyzeTextTaskResultsKind} that the service accepts. */
27
25
  export var KnownAnalyzeTextTaskResultsKind;
@@ -38,8 +36,6 @@ export var KnownAnalyzeTextTaskResultsKind;
38
36
  KnownAnalyzeTextTaskResultsKind["LanguageDetectionResults"] = "LanguageDetectionResults";
39
37
  /** EntityLinkingResults */
40
38
  KnownAnalyzeTextTaskResultsKind["EntityLinkingResults"] = "EntityLinkingResults";
41
- /** DynamicClassificationResults */
42
- KnownAnalyzeTextTaskResultsKind["DynamicClassificationResults"] = "DynamicClassificationResults";
43
39
  })(KnownAnalyzeTextTaskResultsKind || (KnownAnalyzeTextTaskResultsKind = {}));
44
40
  /** Known values of {@link ErrorCode} that the service accepts. */
45
41
  export var KnownErrorCode;
@@ -567,48 +563,6 @@ export var KnownPiiEntityCategory;
567
563
  /** Default */
568
564
  KnownPiiEntityCategory["Default"] = "Default";
569
565
  })(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 = {}));
612
566
  /** Known values of {@link WarningCode} that the service accepts. */
613
567
  export var KnownWarningCode;
614
568
  (function (KnownWarningCode) {
@@ -617,40 +571,6 @@ export var KnownWarningCode;
617
571
  /** DocumentTruncated */
618
572
  KnownWarningCode["DocumentTruncated"] = "DocumentTruncated";
619
573
  })(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 HealthcareDocumentType} that the service accepts. */
633
- export var KnownHealthcareDocumentType;
634
- (function (KnownHealthcareDocumentType) {
635
- /** None */
636
- KnownHealthcareDocumentType["None"] = "None";
637
- /** ClinicalTrial */
638
- KnownHealthcareDocumentType["ClinicalTrial"] = "ClinicalTrial";
639
- /** DischargeSummary */
640
- KnownHealthcareDocumentType["DischargeSummary"] = "DischargeSummary";
641
- /** ProgressNote */
642
- KnownHealthcareDocumentType["ProgressNote"] = "ProgressNote";
643
- /** HistoryAndPhysical */
644
- KnownHealthcareDocumentType["HistoryAndPhysical"] = "HistoryAndPhysical";
645
- /** Consult */
646
- KnownHealthcareDocumentType["Consult"] = "Consult";
647
- /** Imaging */
648
- KnownHealthcareDocumentType["Imaging"] = "Imaging";
649
- /** Pathology */
650
- KnownHealthcareDocumentType["Pathology"] = "Pathology";
651
- /** ProcedureNote */
652
- KnownHealthcareDocumentType["ProcedureNote"] = "ProcedureNote";
653
- })(KnownHealthcareDocumentType || (KnownHealthcareDocumentType = {}));
654
574
  /** Known values of {@link HealthcareEntityCategory} that the service accepts. */
655
575
  export var KnownHealthcareEntityCategory;
656
576
  (function (KnownHealthcareEntityCategory) {
@@ -660,6 +580,8 @@ export var KnownHealthcareEntityCategory;
660
580
  KnownHealthcareEntityCategory["Age"] = "Age";
661
581
  /** Gender */
662
582
  KnownHealthcareEntityCategory["Gender"] = "Gender";
583
+ /** Ethnicity */
584
+ KnownHealthcareEntityCategory["Ethnicity"] = "Ethnicity";
663
585
  /** ExaminationName */
664
586
  KnownHealthcareEntityCategory["ExaminationName"] = "ExaminationName";
665
587
  /** Date */
@@ -676,10 +598,16 @@ export var KnownHealthcareEntityCategory;
676
598
  KnownHealthcareEntityCategory["RelationalOperator"] = "RelationalOperator";
677
599
  /** Time */
678
600
  KnownHealthcareEntityCategory["Time"] = "Time";
601
+ /** Course */
602
+ KnownHealthcareEntityCategory["Course"] = "Course";
679
603
  /** GeneOrProtein */
680
604
  KnownHealthcareEntityCategory["GeneOrProtein"] = "GeneOrProtein";
681
605
  /** Variant */
682
606
  KnownHealthcareEntityCategory["Variant"] = "Variant";
607
+ /** Expression */
608
+ KnownHealthcareEntityCategory["Expression"] = "Expression";
609
+ /** MutationType */
610
+ KnownHealthcareEntityCategory["MutationType"] = "MutationType";
683
611
  /** AdministrativeEvent */
684
612
  KnownHealthcareEntityCategory["AdministrativeEvent"] = "AdministrativeEvent";
685
613
  /** CareEnvironment */
@@ -692,6 +620,8 @@ export var KnownHealthcareEntityCategory;
692
620
  KnownHealthcareEntityCategory["SymptomOrSign"] = "SymptomOrSign";
693
621
  /** ConditionQualifier */
694
622
  KnownHealthcareEntityCategory["ConditionQualifier"] = "ConditionQualifier";
623
+ /** ConditionScale */
624
+ KnownHealthcareEntityCategory["ConditionScale"] = "ConditionScale";
695
625
  /** MedicationClass */
696
626
  KnownHealthcareEntityCategory["MedicationClass"] = "MedicationClass";
697
627
  /** MedicationName */
@@ -706,12 +636,34 @@ export var KnownHealthcareEntityCategory;
706
636
  KnownHealthcareEntityCategory["FamilyRelation"] = "FamilyRelation";
707
637
  /** TreatmentName */
708
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";
709
649
  })(KnownHealthcareEntityCategory || (KnownHealthcareEntityCategory = {}));
710
650
  /** Known values of {@link RelationType} that the service accepts. */
711
651
  export var KnownRelationType;
712
652
  (function (KnownRelationType) {
713
653
  /** Abbreviation */
714
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";
715
667
  /** DirectionOfBodyStructure */
716
668
  KnownRelationType["DirectionOfBodyStructure"] = "DirectionOfBodyStructure";
717
669
  /** DirectionOfCondition */
@@ -722,18 +674,32 @@ export var KnownRelationType;
722
674
  KnownRelationType["DirectionOfTreatment"] = "DirectionOfTreatment";
723
675
  /** DosageOfMedication */
724
676
  KnownRelationType["DosageOfMedication"] = "DosageOfMedication";
677
+ /** ExaminationFindsCondition */
678
+ KnownRelationType["ExaminationFindsCondition"] = "ExaminationFindsCondition";
679
+ /** ExpressionOfGene */
680
+ KnownRelationType["ExpressionOfGene"] = "ExpressionOfGene";
681
+ /** ExpressionOfVariant */
682
+ KnownRelationType["ExpressionOfVariant"] = "ExpressionOfVariant";
725
683
  /** FormOfMedication */
726
684
  KnownRelationType["FormOfMedication"] = "FormOfMedication";
685
+ /** FrequencyOfCondition */
686
+ KnownRelationType["FrequencyOfCondition"] = "FrequencyOfCondition";
727
687
  /** FrequencyOfMedication */
728
688
  KnownRelationType["FrequencyOfMedication"] = "FrequencyOfMedication";
729
689
  /** FrequencyOfTreatment */
730
690
  KnownRelationType["FrequencyOfTreatment"] = "FrequencyOfTreatment";
691
+ /** MutationTypeOfGene */
692
+ KnownRelationType["MutationTypeOfGene"] = "MutationTypeOfGene";
693
+ /** MutationTypeOfVariant */
694
+ KnownRelationType["MutationTypeOfVariant"] = "MutationTypeOfVariant";
731
695
  /** QualifierOfCondition */
732
696
  KnownRelationType["QualifierOfCondition"] = "QualifierOfCondition";
733
697
  /** RelationOfExamination */
734
698
  KnownRelationType["RelationOfExamination"] = "RelationOfExamination";
735
699
  /** RouteOfMedication */
736
700
  KnownRelationType["RouteOfMedication"] = "RouteOfMedication";
701
+ /** ScaleOfCondition */
702
+ KnownRelationType["ScaleOfCondition"] = "ScaleOfCondition";
737
703
  /** TimeOfCondition */
738
704
  KnownRelationType["TimeOfCondition"] = "TimeOfCondition";
739
705
  /** TimeOfEvent */
@@ -752,365 +718,9 @@ export var KnownRelationType;
752
718
  KnownRelationType["ValueOfCondition"] = "ValueOfCondition";
753
719
  /** ValueOfExamination */
754
720
  KnownRelationType["ValueOfExamination"] = "ValueOfExamination";
721
+ /** VariantOfGene */
722
+ KnownRelationType["VariantOfGene"] = "VariantOfGene";
755
723
  })(KnownRelationType || (KnownRelationType = {}));
756
- /** Known values of {@link AgeUnit} that the service accepts. */
757
- export var KnownAgeUnit;
758
- (function (KnownAgeUnit) {
759
- /** Unspecified */
760
- KnownAgeUnit["Unspecified"] = "Unspecified";
761
- /** Year */
762
- KnownAgeUnit["Year"] = "Year";
763
- /** Month */
764
- KnownAgeUnit["Month"] = "Month";
765
- /** Week */
766
- KnownAgeUnit["Week"] = "Week";
767
- /** Day */
768
- KnownAgeUnit["Day"] = "Day";
769
- })(KnownAgeUnit || (KnownAgeUnit = {}));
770
- /** Known values of {@link VolumeUnit} that the service accepts. */
771
- export var KnownVolumeUnit;
772
- (function (KnownVolumeUnit) {
773
- /** Unspecified */
774
- KnownVolumeUnit["Unspecified"] = "Unspecified";
775
- /** CubicMeter */
776
- KnownVolumeUnit["CubicMeter"] = "CubicMeter";
777
- /** CubicCentimeter */
778
- KnownVolumeUnit["CubicCentimeter"] = "CubicCentimeter";
779
- /** CubicMillimeter */
780
- KnownVolumeUnit["CubicMillimeter"] = "CubicMillimeter";
781
- /** Hectoliter */
782
- KnownVolumeUnit["Hectoliter"] = "Hectoliter";
783
- /** Decaliter */
784
- KnownVolumeUnit["Decaliter"] = "Decaliter";
785
- /** Liter */
786
- KnownVolumeUnit["Liter"] = "Liter";
787
- /** Centiliter */
788
- KnownVolumeUnit["Centiliter"] = "Centiliter";
789
- /** Milliliter */
790
- KnownVolumeUnit["Milliliter"] = "Milliliter";
791
- /** CubicYard */
792
- KnownVolumeUnit["CubicYard"] = "CubicYard";
793
- /** CubicInch */
794
- KnownVolumeUnit["CubicInch"] = "CubicInch";
795
- /** CubicFoot */
796
- KnownVolumeUnit["CubicFoot"] = "CubicFoot";
797
- /** CubicMile */
798
- KnownVolumeUnit["CubicMile"] = "CubicMile";
799
- /** FluidOunce */
800
- KnownVolumeUnit["FluidOunce"] = "FluidOunce";
801
- /** Teaspoon */
802
- KnownVolumeUnit["Teaspoon"] = "Teaspoon";
803
- /** Tablespoon */
804
- KnownVolumeUnit["Tablespoon"] = "Tablespoon";
805
- /** Pint */
806
- KnownVolumeUnit["Pint"] = "Pint";
807
- /** Quart */
808
- KnownVolumeUnit["Quart"] = "Quart";
809
- /** Cup */
810
- KnownVolumeUnit["Cup"] = "Cup";
811
- /** Gill */
812
- KnownVolumeUnit["Gill"] = "Gill";
813
- /** Pinch */
814
- KnownVolumeUnit["Pinch"] = "Pinch";
815
- /** FluidDram */
816
- KnownVolumeUnit["FluidDram"] = "FluidDram";
817
- /** Barrel */
818
- KnownVolumeUnit["Barrel"] = "Barrel";
819
- /** Minim */
820
- KnownVolumeUnit["Minim"] = "Minim";
821
- /** Cord */
822
- KnownVolumeUnit["Cord"] = "Cord";
823
- /** Peck */
824
- KnownVolumeUnit["Peck"] = "Peck";
825
- /** Bushel */
826
- KnownVolumeUnit["Bushel"] = "Bushel";
827
- /** Hogshead */
828
- KnownVolumeUnit["Hogshead"] = "Hogshead";
829
- })(KnownVolumeUnit || (KnownVolumeUnit = {}));
830
- /** Known values of {@link SpeedUnit} that the service accepts. */
831
- export var KnownSpeedUnit;
832
- (function (KnownSpeedUnit) {
833
- /** Unspecified */
834
- KnownSpeedUnit["Unspecified"] = "Unspecified";
835
- /** MeterPerSecond */
836
- KnownSpeedUnit["MeterPerSecond"] = "MeterPerSecond";
837
- /** KilometerPerHour */
838
- KnownSpeedUnit["KilometerPerHour"] = "KilometerPerHour";
839
- /** KilometerPerMinute */
840
- KnownSpeedUnit["KilometerPerMinute"] = "KilometerPerMinute";
841
- /** KilometerPerSecond */
842
- KnownSpeedUnit["KilometerPerSecond"] = "KilometerPerSecond";
843
- /** MilePerHour */
844
- KnownSpeedUnit["MilePerHour"] = "MilePerHour";
845
- /** Knot */
846
- KnownSpeedUnit["Knot"] = "Knot";
847
- /** FootPerSecond */
848
- KnownSpeedUnit["FootPerSecond"] = "FootPerSecond";
849
- /** FootPerMinute */
850
- KnownSpeedUnit["FootPerMinute"] = "FootPerMinute";
851
- /** YardPerMinute */
852
- KnownSpeedUnit["YardPerMinute"] = "YardPerMinute";
853
- /** YardPerSecond */
854
- KnownSpeedUnit["YardPerSecond"] = "YardPerSecond";
855
- /** MeterPerMillisecond */
856
- KnownSpeedUnit["MeterPerMillisecond"] = "MeterPerMillisecond";
857
- /** CentimeterPerMillisecond */
858
- KnownSpeedUnit["CentimeterPerMillisecond"] = "CentimeterPerMillisecond";
859
- /** KilometerPerMillisecond */
860
- KnownSpeedUnit["KilometerPerMillisecond"] = "KilometerPerMillisecond";
861
- })(KnownSpeedUnit || (KnownSpeedUnit = {}));
862
- /** Known values of {@link AreaUnit} that the service accepts. */
863
- export var KnownAreaUnit;
864
- (function (KnownAreaUnit) {
865
- /** Unspecified */
866
- KnownAreaUnit["Unspecified"] = "Unspecified";
867
- /** SquareKilometer */
868
- KnownAreaUnit["SquareKilometer"] = "SquareKilometer";
869
- /** SquareHectometer */
870
- KnownAreaUnit["SquareHectometer"] = "SquareHectometer";
871
- /** SquareDecameter */
872
- KnownAreaUnit["SquareDecameter"] = "SquareDecameter";
873
- /** SquareDecimeter */
874
- KnownAreaUnit["SquareDecimeter"] = "SquareDecimeter";
875
- /** SquareMeter */
876
- KnownAreaUnit["SquareMeter"] = "SquareMeter";
877
- /** SquareCentimeter */
878
- KnownAreaUnit["SquareCentimeter"] = "SquareCentimeter";
879
- /** SquareMillimeter */
880
- KnownAreaUnit["SquareMillimeter"] = "SquareMillimeter";
881
- /** SquareInch */
882
- KnownAreaUnit["SquareInch"] = "SquareInch";
883
- /** SquareFoot */
884
- KnownAreaUnit["SquareFoot"] = "SquareFoot";
885
- /** SquareMile */
886
- KnownAreaUnit["SquareMile"] = "SquareMile";
887
- /** SquareYard */
888
- KnownAreaUnit["SquareYard"] = "SquareYard";
889
- /** Acre */
890
- KnownAreaUnit["Acre"] = "Acre";
891
- })(KnownAreaUnit || (KnownAreaUnit = {}));
892
- /** Known values of {@link LengthUnit} that the service accepts. */
893
- export var KnownLengthUnit;
894
- (function (KnownLengthUnit) {
895
- /** Unspecified */
896
- KnownLengthUnit["Unspecified"] = "Unspecified";
897
- /** Kilometer */
898
- KnownLengthUnit["Kilometer"] = "Kilometer";
899
- /** Hectometer */
900
- KnownLengthUnit["Hectometer"] = "Hectometer";
901
- /** Decameter */
902
- KnownLengthUnit["Decameter"] = "Decameter";
903
- /** Meter */
904
- KnownLengthUnit["Meter"] = "Meter";
905
- /** Decimeter */
906
- KnownLengthUnit["Decimeter"] = "Decimeter";
907
- /** Centimeter */
908
- KnownLengthUnit["Centimeter"] = "Centimeter";
909
- /** Millimeter */
910
- KnownLengthUnit["Millimeter"] = "Millimeter";
911
- /** Micrometer */
912
- KnownLengthUnit["Micrometer"] = "Micrometer";
913
- /** Nanometer */
914
- KnownLengthUnit["Nanometer"] = "Nanometer";
915
- /** Picometer */
916
- KnownLengthUnit["Picometer"] = "Picometer";
917
- /** Mile */
918
- KnownLengthUnit["Mile"] = "Mile";
919
- /** Yard */
920
- KnownLengthUnit["Yard"] = "Yard";
921
- /** Inch */
922
- KnownLengthUnit["Inch"] = "Inch";
923
- /** Foot */
924
- KnownLengthUnit["Foot"] = "Foot";
925
- /** LightYear */
926
- KnownLengthUnit["LightYear"] = "LightYear";
927
- /** Pt */
928
- KnownLengthUnit["Pt"] = "Pt";
929
- })(KnownLengthUnit || (KnownLengthUnit = {}));
930
- /** Known values of {@link InformationUnit} that the service accepts. */
931
- export var KnownInformationUnit;
932
- (function (KnownInformationUnit) {
933
- /** Unspecified */
934
- KnownInformationUnit["Unspecified"] = "Unspecified";
935
- /** Bit */
936
- KnownInformationUnit["Bit"] = "Bit";
937
- /** Kilobit */
938
- KnownInformationUnit["Kilobit"] = "Kilobit";
939
- /** Megabit */
940
- KnownInformationUnit["Megabit"] = "Megabit";
941
- /** Gigabit */
942
- KnownInformationUnit["Gigabit"] = "Gigabit";
943
- /** Terabit */
944
- KnownInformationUnit["Terabit"] = "Terabit";
945
- /** Petabit */
946
- KnownInformationUnit["Petabit"] = "Petabit";
947
- /** Byte */
948
- KnownInformationUnit["Byte"] = "Byte";
949
- /** Kilobyte */
950
- KnownInformationUnit["Kilobyte"] = "Kilobyte";
951
- /** Megabyte */
952
- KnownInformationUnit["Megabyte"] = "Megabyte";
953
- /** Gigabyte */
954
- KnownInformationUnit["Gigabyte"] = "Gigabyte";
955
- /** Terabyte */
956
- KnownInformationUnit["Terabyte"] = "Terabyte";
957
- /** Petabyte */
958
- KnownInformationUnit["Petabyte"] = "Petabyte";
959
- })(KnownInformationUnit || (KnownInformationUnit = {}));
960
- /** Known values of {@link TemperatureUnit} that the service accepts. */
961
- export var KnownTemperatureUnit;
962
- (function (KnownTemperatureUnit) {
963
- /** Unspecified */
964
- KnownTemperatureUnit["Unspecified"] = "Unspecified";
965
- /** Fahrenheit */
966
- KnownTemperatureUnit["Fahrenheit"] = "Fahrenheit";
967
- /** Kelvin */
968
- KnownTemperatureUnit["Kelvin"] = "Kelvin";
969
- /** Rankine */
970
- KnownTemperatureUnit["Rankine"] = "Rankine";
971
- /** Celsius */
972
- KnownTemperatureUnit["Celsius"] = "Celsius";
973
- })(KnownTemperatureUnit || (KnownTemperatureUnit = {}));
974
- /** Known values of {@link WeightUnit} that the service accepts. */
975
- export var KnownWeightUnit;
976
- (function (KnownWeightUnit) {
977
- /** Unspecified */
978
- KnownWeightUnit["Unspecified"] = "Unspecified";
979
- /** Kilogram */
980
- KnownWeightUnit["Kilogram"] = "Kilogram";
981
- /** Gram */
982
- KnownWeightUnit["Gram"] = "Gram";
983
- /** Milligram */
984
- KnownWeightUnit["Milligram"] = "Milligram";
985
- /** Gallon */
986
- KnownWeightUnit["Gallon"] = "Gallon";
987
- /** MetricTon */
988
- KnownWeightUnit["MetricTon"] = "MetricTon";
989
- /** Ton */
990
- KnownWeightUnit["Ton"] = "Ton";
991
- /** Pound */
992
- KnownWeightUnit["Pound"] = "Pound";
993
- /** Ounce */
994
- KnownWeightUnit["Ounce"] = "Ounce";
995
- /** Grain */
996
- KnownWeightUnit["Grain"] = "Grain";
997
- /** PennyWeight */
998
- KnownWeightUnit["PennyWeight"] = "PennyWeight";
999
- /** LongTonBritish */
1000
- KnownWeightUnit["LongTonBritish"] = "LongTonBritish";
1001
- /** ShortTonUS */
1002
- KnownWeightUnit["ShortTonUS"] = "ShortTonUS";
1003
- /** ShortHundredWeightUS */
1004
- KnownWeightUnit["ShortHundredWeightUS"] = "ShortHundredWeightUS";
1005
- /** Stone */
1006
- KnownWeightUnit["Stone"] = "Stone";
1007
- /** Dram */
1008
- KnownWeightUnit["Dram"] = "Dram";
1009
- })(KnownWeightUnit || (KnownWeightUnit = {}));
1010
- /** Known values of {@link DateTimeSubKind} that the service accepts. */
1011
- export var KnownDateTimeSubKind;
1012
- (function (KnownDateTimeSubKind) {
1013
- /** Time */
1014
- KnownDateTimeSubKind["Time"] = "Time";
1015
- /** Date */
1016
- KnownDateTimeSubKind["Date"] = "Date";
1017
- /** DateTime */
1018
- KnownDateTimeSubKind["DateTime"] = "DateTime";
1019
- /** Duration */
1020
- KnownDateTimeSubKind["Duration"] = "Duration";
1021
- /** Set */
1022
- KnownDateTimeSubKind["Set"] = "Set";
1023
- })(KnownDateTimeSubKind || (KnownDateTimeSubKind = {}));
1024
- /** Known values of {@link TemporalModifier} that the service accepts. */
1025
- export var KnownTemporalModifier;
1026
- (function (KnownTemporalModifier) {
1027
- /** AfterApprox */
1028
- KnownTemporalModifier["AfterApprox"] = "AfterApprox";
1029
- /** Before */
1030
- KnownTemporalModifier["Before"] = "Before";
1031
- /** BeforeStart */
1032
- KnownTemporalModifier["BeforeStart"] = "BeforeStart";
1033
- /** Approx */
1034
- KnownTemporalModifier["Approx"] = "Approx";
1035
- /** ReferenceUndefined */
1036
- KnownTemporalModifier["ReferenceUndefined"] = "ReferenceUndefined";
1037
- /** SinceEnd */
1038
- KnownTemporalModifier["SinceEnd"] = "SinceEnd";
1039
- /** AfterMid */
1040
- KnownTemporalModifier["AfterMid"] = "AfterMid";
1041
- /** Start */
1042
- KnownTemporalModifier["Start"] = "Start";
1043
- /** After */
1044
- KnownTemporalModifier["After"] = "After";
1045
- /** BeforeEnd */
1046
- KnownTemporalModifier["BeforeEnd"] = "BeforeEnd";
1047
- /** Until */
1048
- KnownTemporalModifier["Until"] = "Until";
1049
- /** End */
1050
- KnownTemporalModifier["End"] = "End";
1051
- /** Less */
1052
- KnownTemporalModifier["Less"] = "Less";
1053
- /** Since */
1054
- KnownTemporalModifier["Since"] = "Since";
1055
- /** AfterStart */
1056
- KnownTemporalModifier["AfterStart"] = "AfterStart";
1057
- /** BeforeApprox */
1058
- KnownTemporalModifier["BeforeApprox"] = "BeforeApprox";
1059
- /** Mid */
1060
- KnownTemporalModifier["Mid"] = "Mid";
1061
- /** More */
1062
- KnownTemporalModifier["More"] = "More";
1063
- })(KnownTemporalModifier || (KnownTemporalModifier = {}));
1064
- /** Known values of {@link NumberKind} that the service accepts. */
1065
- export var KnownNumberKind;
1066
- (function (KnownNumberKind) {
1067
- /** Integer */
1068
- KnownNumberKind["Integer"] = "Integer";
1069
- /** Decimal */
1070
- KnownNumberKind["Decimal"] = "Decimal";
1071
- /** Power */
1072
- KnownNumberKind["Power"] = "Power";
1073
- /** Fraction */
1074
- KnownNumberKind["Fraction"] = "Fraction";
1075
- /** Percent */
1076
- KnownNumberKind["Percent"] = "Percent";
1077
- /** Unspecified */
1078
- KnownNumberKind["Unspecified"] = "Unspecified";
1079
- })(KnownNumberKind || (KnownNumberKind = {}));
1080
- /** Known values of {@link RelativeTo} that the service accepts. */
1081
- export var KnownRelativeTo;
1082
- (function (KnownRelativeTo) {
1083
- /** Current */
1084
- KnownRelativeTo["Current"] = "Current";
1085
- /** End */
1086
- KnownRelativeTo["End"] = "End";
1087
- /** Start */
1088
- KnownRelativeTo["Start"] = "Start";
1089
- })(KnownRelativeTo || (KnownRelativeTo = {}));
1090
- /** Known values of {@link RangeKind} that the service accepts. */
1091
- export var KnownRangeKind;
1092
- (function (KnownRangeKind) {
1093
- /** Number */
1094
- KnownRangeKind["Number"] = "Number";
1095
- /** Speed */
1096
- KnownRangeKind["Speed"] = "Speed";
1097
- /** Weight */
1098
- KnownRangeKind["Weight"] = "Weight";
1099
- /** Length */
1100
- KnownRangeKind["Length"] = "Length";
1101
- /** Volume */
1102
- KnownRangeKind["Volume"] = "Volume";
1103
- /** Area */
1104
- KnownRangeKind["Area"] = "Area";
1105
- /** Age */
1106
- KnownRangeKind["Age"] = "Age";
1107
- /** Information */
1108
- KnownRangeKind["Information"] = "Information";
1109
- /** Temperature */
1110
- KnownRangeKind["Temperature"] = "Temperature";
1111
- /** Currency */
1112
- KnownRangeKind["Currency"] = "Currency";
1113
- })(KnownRangeKind || (KnownRangeKind = {}));
1114
724
  /** Known values of {@link ExtractiveSummarizationOrderingCriteria} that the service accepts. */
1115
725
  export var KnownExtractiveSummarizationOrderingCriteria;
1116
726
  (function (KnownExtractiveSummarizationOrderingCriteria) {