@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.
- package/README.md +35 -632
- package/dist/index.js +363 -1256
- 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 +3 -3
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +48 -438
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +153 -741
- 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/lro.js +24 -8
- package/dist-esm/src/lro.js.map +1 -1
- package/dist-esm/src/models.js +0 -9
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/textAnalysisClient.js +2 -2
- package/dist-esm/src/textAnalysisClient.js.map +1 -1
- package/dist-esm/src/transforms.js +114 -22
- package/dist-esm/src/transforms.js.map +1 -1
- package/dist-esm/src/util.js +15 -0
- package/dist-esm/src/util.js.map +1 -1
- package/package.json +9 -6
- package/types/ai-language-text.d.ts +86 -982
package/dist/index.js
CHANGED
@@ -41,7 +41,7 @@ const DEFAULT_COGNITIVE_SCOPE = "https://cognitiveservices.azure.com/.default";
|
|
41
41
|
/**
|
42
42
|
* @internal
|
43
43
|
*/
|
44
|
-
const SDK_VERSION = "1.1.0
|
44
|
+
const SDK_VERSION = "1.1.0";
|
45
45
|
/**
|
46
46
|
* @internal
|
47
47
|
*/
|
@@ -166,6 +166,21 @@ function getOperationOptions(options) {
|
|
166
166
|
rest,
|
167
167
|
};
|
168
168
|
}
|
169
|
+
/**
|
170
|
+
*
|
171
|
+
* @param error - error with the target in the JSON error pointer format "#/items/0
|
172
|
+
* @returns number: the position of the task with error
|
173
|
+
*/
|
174
|
+
function extractErrorPointerIndex(error) {
|
175
|
+
if (!error.target) {
|
176
|
+
throw new Error("Unexpected response from service - no target present");
|
177
|
+
}
|
178
|
+
const position = parseInt(error.target.split("/").pop());
|
179
|
+
if (isNaN(position)) {
|
180
|
+
throw new Error(`Unexpected response from service - action pointer "${error.target}" is not a valid action pointer.`);
|
181
|
+
}
|
182
|
+
return position;
|
183
|
+
}
|
169
184
|
|
170
185
|
/*
|
171
186
|
* Copyright (c) Microsoft Corporation.
|
@@ -330,12 +345,6 @@ const AnalyzeTextJobsInput = {
|
|
330
345
|
name: "String"
|
331
346
|
}
|
332
347
|
},
|
333
|
-
defaultLanguage: {
|
334
|
-
serializedName: "defaultLanguage",
|
335
|
-
type: {
|
336
|
-
name: "String"
|
337
|
-
}
|
338
|
-
},
|
339
348
|
analysisInput: {
|
340
349
|
serializedName: "analysisInput",
|
341
350
|
type: {
|
@@ -591,7 +600,6 @@ const TextDocumentBatchStatistics = {
|
|
591
600
|
type: {
|
592
601
|
name: "Composite",
|
593
602
|
className: "TextDocumentBatchStatistics",
|
594
|
-
additionalProperties: { type: { name: "Object" } },
|
595
603
|
modelProperties: {
|
596
604
|
documentCount: {
|
597
605
|
serializedName: "documentsCount",
|
@@ -751,26 +759,6 @@ const DocumentError = {
|
|
751
759
|
}
|
752
760
|
}
|
753
761
|
};
|
754
|
-
const BaseResolution = {
|
755
|
-
type: {
|
756
|
-
name: "Composite",
|
757
|
-
className: "BaseResolution",
|
758
|
-
uberParent: "BaseResolution",
|
759
|
-
polymorphicDiscriminator: {
|
760
|
-
serializedName: "resolutionKind",
|
761
|
-
clientName: "resolutionKind"
|
762
|
-
},
|
763
|
-
modelProperties: {
|
764
|
-
resolutionKind: {
|
765
|
-
serializedName: "resolutionKind",
|
766
|
-
required: true,
|
767
|
-
type: {
|
768
|
-
name: "String"
|
769
|
-
}
|
770
|
-
}
|
771
|
-
}
|
772
|
-
}
|
773
|
-
};
|
774
762
|
const Entity = {
|
775
763
|
type: {
|
776
764
|
name: "Composite",
|
@@ -899,56 +887,6 @@ const TextDocumentStatistics = {
|
|
899
887
|
}
|
900
888
|
}
|
901
889
|
};
|
902
|
-
const DocumentDetectedLanguage = {
|
903
|
-
type: {
|
904
|
-
name: "Composite",
|
905
|
-
className: "DocumentDetectedLanguage",
|
906
|
-
modelProperties: {
|
907
|
-
detectedLanguage: {
|
908
|
-
serializedName: "detectedLanguage",
|
909
|
-
type: {
|
910
|
-
name: "Composite",
|
911
|
-
className: "DetectedLanguage"
|
912
|
-
}
|
913
|
-
}
|
914
|
-
}
|
915
|
-
}
|
916
|
-
};
|
917
|
-
const DetectedLanguage = {
|
918
|
-
type: {
|
919
|
-
name: "Composite",
|
920
|
-
className: "DetectedLanguage",
|
921
|
-
modelProperties: {
|
922
|
-
name: {
|
923
|
-
serializedName: "name",
|
924
|
-
required: true,
|
925
|
-
type: {
|
926
|
-
name: "String"
|
927
|
-
}
|
928
|
-
},
|
929
|
-
iso6391Name: {
|
930
|
-
serializedName: "iso6391Name",
|
931
|
-
required: true,
|
932
|
-
type: {
|
933
|
-
name: "String"
|
934
|
-
}
|
935
|
-
},
|
936
|
-
confidenceScore: {
|
937
|
-
serializedName: "confidenceScore",
|
938
|
-
required: true,
|
939
|
-
type: {
|
940
|
-
name: "Number"
|
941
|
-
}
|
942
|
-
},
|
943
|
-
script: {
|
944
|
-
serializedName: "script",
|
945
|
-
type: {
|
946
|
-
name: "String"
|
947
|
-
}
|
948
|
-
}
|
949
|
-
}
|
950
|
-
}
|
951
|
-
};
|
952
890
|
const ClassificationCategory = {
|
953
891
|
type: {
|
954
892
|
name: "Composite",
|
@@ -1158,20 +1096,6 @@ const HealthcareRelationEntity = {
|
|
1158
1096
|
}
|
1159
1097
|
}
|
1160
1098
|
};
|
1161
|
-
const DocumentDetectedLanguageString = {
|
1162
|
-
type: {
|
1163
|
-
name: "Composite",
|
1164
|
-
className: "DocumentDetectedLanguageString",
|
1165
|
-
modelProperties: {
|
1166
|
-
detectedLanguage: {
|
1167
|
-
serializedName: "detectedLanguage",
|
1168
|
-
type: {
|
1169
|
-
name: "String"
|
1170
|
-
}
|
1171
|
-
}
|
1172
|
-
}
|
1173
|
-
}
|
1174
|
-
};
|
1175
1099
|
const PreBuiltResult = {
|
1176
1100
|
type: {
|
1177
1101
|
name: "Composite",
|
@@ -1185,7 +1109,7 @@ const PreBuiltResult = {
|
|
1185
1109
|
element: {
|
1186
1110
|
type: {
|
1187
1111
|
name: "Composite",
|
1188
|
-
className: "
|
1112
|
+
className: "DocumentError"
|
1189
1113
|
}
|
1190
1114
|
}
|
1191
1115
|
}
|
@@ -1207,28 +1131,6 @@ const PreBuiltResult = {
|
|
1207
1131
|
}
|
1208
1132
|
}
|
1209
1133
|
};
|
1210
|
-
const InputError = {
|
1211
|
-
type: {
|
1212
|
-
name: "Composite",
|
1213
|
-
className: "InputError",
|
1214
|
-
modelProperties: {
|
1215
|
-
id: {
|
1216
|
-
serializedName: "id",
|
1217
|
-
required: true,
|
1218
|
-
type: {
|
1219
|
-
name: "String"
|
1220
|
-
}
|
1221
|
-
},
|
1222
|
-
error: {
|
1223
|
-
serializedName: "error",
|
1224
|
-
type: {
|
1225
|
-
name: "Composite",
|
1226
|
-
className: "ErrorModel"
|
1227
|
-
}
|
1228
|
-
}
|
1229
|
-
}
|
1230
|
-
}
|
1231
|
-
};
|
1232
1134
|
const SentimentConfidenceScores = {
|
1233
1135
|
type: {
|
1234
1136
|
name: "Composite",
|
@@ -1576,21 +1478,6 @@ const Match = {
|
|
1576
1478
|
}
|
1577
1479
|
}
|
1578
1480
|
};
|
1579
|
-
const QuantityResolution = {
|
1580
|
-
type: {
|
1581
|
-
name: "Composite",
|
1582
|
-
className: "QuantityResolution",
|
1583
|
-
modelProperties: {
|
1584
|
-
value: {
|
1585
|
-
serializedName: "value",
|
1586
|
-
required: true,
|
1587
|
-
type: {
|
1588
|
-
name: "Number"
|
1589
|
-
}
|
1590
|
-
}
|
1591
|
-
}
|
1592
|
-
}
|
1593
|
-
};
|
1594
1481
|
const SummarySentence = {
|
1595
1482
|
type: {
|
1596
1483
|
name: "Composite",
|
@@ -1627,6 +1514,35 @@ const SummarySentence = {
|
|
1627
1514
|
}
|
1628
1515
|
}
|
1629
1516
|
};
|
1517
|
+
const DetectedLanguage = {
|
1518
|
+
type: {
|
1519
|
+
name: "Composite",
|
1520
|
+
className: "DetectedLanguage",
|
1521
|
+
modelProperties: {
|
1522
|
+
name: {
|
1523
|
+
serializedName: "name",
|
1524
|
+
required: true,
|
1525
|
+
type: {
|
1526
|
+
name: "String"
|
1527
|
+
}
|
1528
|
+
},
|
1529
|
+
iso6391Name: {
|
1530
|
+
serializedName: "iso6391Name",
|
1531
|
+
required: true,
|
1532
|
+
type: {
|
1533
|
+
name: "String"
|
1534
|
+
}
|
1535
|
+
},
|
1536
|
+
confidenceScore: {
|
1537
|
+
serializedName: "confidenceScore",
|
1538
|
+
required: true,
|
1539
|
+
type: {
|
1540
|
+
name: "Number"
|
1541
|
+
}
|
1542
|
+
}
|
1543
|
+
}
|
1544
|
+
}
|
1545
|
+
};
|
1630
1546
|
const Pagination = {
|
1631
1547
|
type: {
|
1632
1548
|
name: "Composite",
|
@@ -1641,12 +1557,32 @@ const Pagination = {
|
|
1641
1557
|
}
|
1642
1558
|
}
|
1643
1559
|
};
|
1560
|
+
const JobErrors = {
|
1561
|
+
type: {
|
1562
|
+
name: "Composite",
|
1563
|
+
className: "JobErrors",
|
1564
|
+
modelProperties: {
|
1565
|
+
errors: {
|
1566
|
+
serializedName: "errors",
|
1567
|
+
type: {
|
1568
|
+
name: "Sequence",
|
1569
|
+
element: {
|
1570
|
+
type: {
|
1571
|
+
name: "Composite",
|
1572
|
+
className: "ErrorModel"
|
1573
|
+
}
|
1574
|
+
}
|
1575
|
+
}
|
1576
|
+
}
|
1577
|
+
}
|
1578
|
+
}
|
1579
|
+
};
|
1644
1580
|
const AbstractiveSummarizationTaskParametersBase = {
|
1645
1581
|
type: {
|
1646
1582
|
name: "Composite",
|
1647
1583
|
className: "AbstractiveSummarizationTaskParametersBase",
|
1648
1584
|
modelProperties: {
|
1649
|
-
|
1585
|
+
sentenceCount: {
|
1650
1586
|
serializedName: "sentenceCount",
|
1651
1587
|
type: {
|
1652
1588
|
name: "Number"
|
@@ -1675,7 +1611,7 @@ const AbstractiveSummarizationResultBase = {
|
|
1675
1611
|
element: {
|
1676
1612
|
type: {
|
1677
1613
|
name: "Composite",
|
1678
|
-
className: "
|
1614
|
+
className: "AbstractiveSummaryDocumentResult"
|
1679
1615
|
}
|
1680
1616
|
}
|
1681
1617
|
}
|
@@ -1697,6 +1633,7 @@ const AbstractiveSummary = {
|
|
1697
1633
|
},
|
1698
1634
|
contexts: {
|
1699
1635
|
serializedName: "contexts",
|
1636
|
+
required: true,
|
1700
1637
|
type: {
|
1701
1638
|
name: "Sequence",
|
1702
1639
|
element: {
|
@@ -1864,28 +1801,6 @@ const AnalyzeTextSentimentAnalysisInput = {
|
|
1864
1801
|
} })
|
1865
1802
|
}
|
1866
1803
|
};
|
1867
|
-
const AnalyzeTextDynamicClassificationInput = {
|
1868
|
-
serializedName: "DynamicClassification",
|
1869
|
-
type: {
|
1870
|
-
name: "Composite",
|
1871
|
-
className: "AnalyzeTextDynamicClassificationInput",
|
1872
|
-
uberParent: "AnalyzeAction",
|
1873
|
-
polymorphicDiscriminator: AnalyzeAction.type.polymorphicDiscriminator,
|
1874
|
-
modelProperties: Object.assign(Object.assign({}, AnalyzeAction.type.modelProperties), { analysisInput: {
|
1875
|
-
serializedName: "analysisInput",
|
1876
|
-
type: {
|
1877
|
-
name: "Composite",
|
1878
|
-
className: "MultiLanguageAnalysisInput"
|
1879
|
-
}
|
1880
|
-
}, parameters: {
|
1881
|
-
serializedName: "parameters",
|
1882
|
-
type: {
|
1883
|
-
name: "Composite",
|
1884
|
-
className: "DynamicClassificationAction"
|
1885
|
-
}
|
1886
|
-
} })
|
1887
|
-
}
|
1888
|
-
};
|
1889
1804
|
const SentimentTaskResult = {
|
1890
1805
|
serializedName: "SentimentAnalysisResults",
|
1891
1806
|
type: {
|
@@ -1982,22 +1897,6 @@ const LanguageDetectionTaskResult = {
|
|
1982
1897
|
} })
|
1983
1898
|
}
|
1984
1899
|
};
|
1985
|
-
const DynamicClassificationTaskResult = {
|
1986
|
-
serializedName: "DynamicClassificationResults",
|
1987
|
-
type: {
|
1988
|
-
name: "Composite",
|
1989
|
-
className: "DynamicClassificationTaskResult",
|
1990
|
-
uberParent: "AnalyzeTextTaskResult",
|
1991
|
-
polymorphicDiscriminator: AnalyzeTextTaskResult.type.polymorphicDiscriminator,
|
1992
|
-
modelProperties: Object.assign(Object.assign({}, AnalyzeTextTaskResult.type.modelProperties), { results: {
|
1993
|
-
serializedName: "results",
|
1994
|
-
type: {
|
1995
|
-
name: "Composite",
|
1996
|
-
className: "DynamicClassificationResult"
|
1997
|
-
}
|
1998
|
-
} })
|
1999
|
-
}
|
2000
|
-
};
|
2001
1900
|
const AnalyzeBatchAction = {
|
2002
1901
|
serializedName: "AnalyzeBatchAction",
|
2003
1902
|
type: {
|
@@ -2031,487 +1930,113 @@ const AnalyzeTextLROResult = {
|
|
2031
1930
|
serializedName: "kind",
|
2032
1931
|
required: true,
|
2033
1932
|
type: {
|
2034
|
-
name: "String"
|
2035
|
-
}
|
2036
|
-
} })
|
2037
|
-
}
|
2038
|
-
};
|
2039
|
-
const AnalyzeTextJobState = {
|
2040
|
-
type: {
|
2041
|
-
name: "Composite",
|
2042
|
-
className: "AnalyzeTextJobState",
|
2043
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, JobState.type.modelProperties), TasksState.type.modelProperties), AnalyzeTextJobStatistics.type.modelProperties)
|
2044
|
-
}
|
2045
|
-
};
|
2046
|
-
const DocumentRequestStatistics = {
|
2047
|
-
type: {
|
2048
|
-
name: "Composite",
|
2049
|
-
className: "DocumentRequestStatistics",
|
2050
|
-
additionalProperties: { type: { name: "Object" } },
|
2051
|
-
modelProperties: Object.assign(Object.assign({}, TextDocumentBatchStatistics.type.modelProperties), { documentsCount: {
|
2052
|
-
serializedName: "documentsCount",
|
2053
|
-
required: true,
|
2054
|
-
type: {
|
2055
|
-
name: "Number"
|
2056
|
-
}
|
2057
|
-
}, validDocumentsCount: {
|
2058
|
-
serializedName: "validDocumentsCount",
|
2059
|
-
required: true,
|
2060
|
-
type: {
|
2061
|
-
name: "Number"
|
2062
|
-
}
|
2063
|
-
}, erroneousDocumentsCount: {
|
2064
|
-
serializedName: "erroneousDocumentsCount",
|
2065
|
-
required: true,
|
2066
|
-
type: {
|
2067
|
-
name: "Number"
|
2068
|
-
}
|
2069
|
-
} })
|
2070
|
-
}
|
2071
|
-
};
|
2072
|
-
const ActionPrebuilt = {
|
2073
|
-
type: {
|
2074
|
-
name: "Composite",
|
2075
|
-
className: "ActionPrebuilt",
|
2076
|
-
modelProperties: Object.assign(Object.assign({}, ActionCommon.type.modelProperties), { modelVersion: {
|
2077
|
-
defaultValue: "latest",
|
2078
|
-
serializedName: "modelVersion",
|
2079
|
-
type: {
|
2080
|
-
name: "String"
|
2081
|
-
}
|
2082
|
-
} })
|
2083
|
-
}
|
2084
|
-
};
|
2085
|
-
const ActionCustom = {
|
2086
|
-
type: {
|
2087
|
-
name: "Composite",
|
2088
|
-
className: "ActionCustom",
|
2089
|
-
modelProperties: Object.assign(Object.assign({}, ActionCommon.type.modelProperties), { projectName: {
|
2090
|
-
serializedName: "projectName",
|
2091
|
-
required: true,
|
2092
|
-
type: {
|
2093
|
-
name: "String"
|
2094
|
-
}
|
2095
|
-
}, deploymentName: {
|
2096
|
-
serializedName: "deploymentName",
|
2097
|
-
required: true,
|
2098
|
-
type: {
|
2099
|
-
name: "String"
|
2100
|
-
}
|
2101
|
-
} })
|
2102
|
-
}
|
2103
|
-
};
|
2104
|
-
const CustomEntitiesResult = {
|
2105
|
-
type: {
|
2106
|
-
name: "Composite",
|
2107
|
-
className: "CustomEntitiesResult",
|
2108
|
-
modelProperties: Object.assign(Object.assign({}, CustomResult.type.modelProperties), { documents: {
|
2109
|
-
serializedName: "documents",
|
2110
|
-
required: true,
|
2111
|
-
type: {
|
2112
|
-
name: "Sequence",
|
2113
|
-
element: {
|
2114
|
-
type: {
|
2115
|
-
name: "Composite",
|
2116
|
-
className: "CustomEntitiesResultDocumentsItem"
|
2117
|
-
}
|
2118
|
-
}
|
2119
|
-
}
|
2120
|
-
} })
|
2121
|
-
}
|
2122
|
-
};
|
2123
|
-
const CustomLabelClassificationResult = {
|
2124
|
-
type: {
|
2125
|
-
name: "Composite",
|
2126
|
-
className: "CustomLabelClassificationResult",
|
2127
|
-
modelProperties: Object.assign(Object.assign({}, CustomResult.type.modelProperties), { documents: {
|
2128
|
-
serializedName: "documents",
|
2129
|
-
required: true,
|
2130
|
-
type: {
|
2131
|
-
name: "Sequence",
|
2132
|
-
element: {
|
2133
|
-
type: {
|
2134
|
-
name: "Composite",
|
2135
|
-
className: "CustomLabelClassificationResultDocumentsItem"
|
2136
|
-
}
|
2137
|
-
}
|
2138
|
-
}
|
2139
|
-
} })
|
2140
|
-
}
|
2141
|
-
};
|
2142
|
-
const AgeResolution = {
|
2143
|
-
serializedName: "AgeResolution",
|
2144
|
-
type: {
|
2145
|
-
name: "Composite",
|
2146
|
-
className: "AgeResolution",
|
2147
|
-
uberParent: "BaseResolution",
|
2148
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2149
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
|
2150
|
-
serializedName: "unit",
|
2151
|
-
required: true,
|
2152
|
-
type: {
|
2153
|
-
name: "String"
|
2154
|
-
}
|
2155
|
-
} })
|
2156
|
-
}
|
2157
|
-
};
|
2158
|
-
const VolumeResolution = {
|
2159
|
-
serializedName: "VolumeResolution",
|
2160
|
-
type: {
|
2161
|
-
name: "Composite",
|
2162
|
-
className: "VolumeResolution",
|
2163
|
-
uberParent: "BaseResolution",
|
2164
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2165
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
|
2166
|
-
serializedName: "unit",
|
2167
|
-
required: true,
|
2168
|
-
type: {
|
2169
|
-
name: "String"
|
2170
|
-
}
|
2171
|
-
} })
|
2172
|
-
}
|
2173
|
-
};
|
2174
|
-
const SpeedResolution = {
|
2175
|
-
serializedName: "SpeedResolution",
|
2176
|
-
type: {
|
2177
|
-
name: "Composite",
|
2178
|
-
className: "SpeedResolution",
|
2179
|
-
uberParent: "BaseResolution",
|
2180
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2181
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
|
2182
|
-
serializedName: "unit",
|
2183
|
-
required: true,
|
2184
|
-
type: {
|
2185
|
-
name: "String"
|
2186
|
-
}
|
2187
|
-
} })
|
2188
|
-
}
|
2189
|
-
};
|
2190
|
-
const AreaResolution = {
|
2191
|
-
serializedName: "AreaResolution",
|
2192
|
-
type: {
|
2193
|
-
name: "Composite",
|
2194
|
-
className: "AreaResolution",
|
2195
|
-
uberParent: "BaseResolution",
|
2196
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2197
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
|
2198
|
-
serializedName: "unit",
|
2199
|
-
required: true,
|
2200
|
-
type: {
|
2201
|
-
name: "String"
|
2202
|
-
}
|
2203
|
-
} })
|
2204
|
-
}
|
2205
|
-
};
|
2206
|
-
const LengthResolution = {
|
2207
|
-
serializedName: "LengthResolution",
|
2208
|
-
type: {
|
2209
|
-
name: "Composite",
|
2210
|
-
className: "LengthResolution",
|
2211
|
-
uberParent: "BaseResolution",
|
2212
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2213
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
|
2214
|
-
serializedName: "unit",
|
2215
|
-
required: true,
|
2216
|
-
type: {
|
2217
|
-
name: "String"
|
2218
|
-
}
|
2219
|
-
} })
|
2220
|
-
}
|
2221
|
-
};
|
2222
|
-
const InformationResolution = {
|
2223
|
-
serializedName: "InformationResolution",
|
2224
|
-
type: {
|
2225
|
-
name: "Composite",
|
2226
|
-
className: "InformationResolution",
|
2227
|
-
uberParent: "BaseResolution",
|
2228
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2229
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
|
2230
|
-
serializedName: "unit",
|
2231
|
-
required: true,
|
2232
|
-
type: {
|
2233
|
-
name: "String"
|
2234
|
-
}
|
2235
|
-
} })
|
2236
|
-
}
|
2237
|
-
};
|
2238
|
-
const TemperatureResolution = {
|
2239
|
-
serializedName: "TemperatureResolution",
|
2240
|
-
type: {
|
2241
|
-
name: "Composite",
|
2242
|
-
className: "TemperatureResolution",
|
2243
|
-
uberParent: "BaseResolution",
|
2244
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2245
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
|
2246
|
-
serializedName: "unit",
|
2247
|
-
required: true,
|
2248
|
-
type: {
|
2249
|
-
name: "String"
|
2250
|
-
}
|
2251
|
-
} })
|
2252
|
-
}
|
2253
|
-
};
|
2254
|
-
const WeightResolution = {
|
2255
|
-
serializedName: "WeightResolution",
|
2256
|
-
type: {
|
2257
|
-
name: "Composite",
|
2258
|
-
className: "WeightResolution",
|
2259
|
-
uberParent: "BaseResolution",
|
2260
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2261
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
|
2262
|
-
serializedName: "unit",
|
2263
|
-
required: true,
|
2264
|
-
type: {
|
2265
|
-
name: "String"
|
2266
|
-
}
|
2267
|
-
} })
|
2268
|
-
}
|
2269
|
-
};
|
2270
|
-
const CurrencyResolution = {
|
2271
|
-
serializedName: "CurrencyResolution",
|
2272
|
-
type: {
|
2273
|
-
name: "Composite",
|
2274
|
-
className: "CurrencyResolution",
|
2275
|
-
uberParent: "BaseResolution",
|
2276
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2277
|
-
modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { iso4217: {
|
2278
|
-
serializedName: "iso4217",
|
2279
|
-
type: {
|
2280
|
-
name: "String"
|
2281
|
-
}
|
2282
|
-
}, unit: {
|
2283
|
-
serializedName: "unit",
|
2284
|
-
required: true,
|
2285
|
-
type: {
|
2286
|
-
name: "String"
|
2287
|
-
}
|
2288
|
-
} })
|
2289
|
-
}
|
2290
|
-
};
|
2291
|
-
const BooleanResolution = {
|
2292
|
-
serializedName: "BooleanResolution",
|
2293
|
-
type: {
|
2294
|
-
name: "Composite",
|
2295
|
-
className: "BooleanResolution",
|
2296
|
-
uberParent: "BaseResolution",
|
2297
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2298
|
-
modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { value: {
|
2299
|
-
serializedName: "value",
|
2300
|
-
required: true,
|
2301
|
-
type: {
|
2302
|
-
name: "Boolean"
|
2303
|
-
}
|
2304
|
-
} })
|
2305
|
-
}
|
2306
|
-
};
|
2307
|
-
const DateTimeResolution = {
|
2308
|
-
serializedName: "DateTimeResolution",
|
2309
|
-
type: {
|
2310
|
-
name: "Composite",
|
2311
|
-
className: "DateTimeResolution",
|
2312
|
-
uberParent: "BaseResolution",
|
2313
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2314
|
-
modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { timex: {
|
2315
|
-
serializedName: "timex",
|
2316
|
-
required: true,
|
2317
|
-
type: {
|
2318
|
-
name: "String"
|
2319
|
-
}
|
2320
|
-
}, dateTimeSubKind: {
|
2321
|
-
serializedName: "dateTimeSubKind",
|
2322
|
-
required: true,
|
2323
|
-
type: {
|
2324
|
-
name: "String"
|
2325
|
-
}
|
2326
|
-
}, value: {
|
2327
|
-
serializedName: "value",
|
2328
|
-
required: true,
|
2329
|
-
type: {
|
2330
|
-
name: "String"
|
2331
|
-
}
|
2332
|
-
}, modifier: {
|
2333
|
-
serializedName: "modifier",
|
2334
|
-
type: {
|
2335
|
-
name: "String"
|
2336
|
-
}
|
2337
|
-
} })
|
2338
|
-
}
|
2339
|
-
};
|
2340
|
-
const NumberResolution = {
|
2341
|
-
serializedName: "NumberResolution",
|
2342
|
-
type: {
|
2343
|
-
name: "Composite",
|
2344
|
-
className: "NumberResolution",
|
2345
|
-
uberParent: "BaseResolution",
|
2346
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2347
|
-
modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { numberKind: {
|
2348
|
-
serializedName: "numberKind",
|
2349
|
-
required: true,
|
2350
|
-
type: {
|
2351
|
-
name: "String"
|
2352
|
-
}
|
2353
|
-
}, value: {
|
2354
|
-
serializedName: "value",
|
2355
|
-
required: true,
|
2356
|
-
type: {
|
2357
|
-
name: "Number"
|
1933
|
+
name: "String"
|
2358
1934
|
}
|
2359
1935
|
} })
|
2360
1936
|
}
|
2361
1937
|
};
|
2362
|
-
const
|
2363
|
-
serializedName: "OrdinalResolution",
|
1938
|
+
const AnalyzeTextJobState = {
|
2364
1939
|
type: {
|
2365
1940
|
name: "Composite",
|
2366
|
-
className: "
|
2367
|
-
|
2368
|
-
polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
|
2369
|
-
modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { offset: {
|
2370
|
-
serializedName: "offset",
|
2371
|
-
required: true,
|
2372
|
-
type: {
|
2373
|
-
name: "String"
|
2374
|
-
}
|
2375
|
-
}, relativeTo: {
|
2376
|
-
serializedName: "relativeTo",
|
2377
|
-
required: true,
|
2378
|
-
type: {
|
2379
|
-
name: "String"
|
2380
|
-
}
|
2381
|
-
}, value: {
|
2382
|
-
serializedName: "value",
|
2383
|
-
required: true,
|
2384
|
-
type: {
|
2385
|
-
name: "String"
|
2386
|
-
}
|
2387
|
-
} })
|
1941
|
+
className: "AnalyzeTextJobState",
|
1942
|
+
modelProperties: Object.assign(Object.assign(Object.assign({}, JobState.type.modelProperties), TasksState.type.modelProperties), AnalyzeTextJobStatistics.type.modelProperties)
|
2388
1943
|
}
|
2389
1944
|
};
|
2390
|
-
const
|
2391
|
-
serializedName: "TemporalSpanResolution",
|
1945
|
+
const ActionPrebuilt = {
|
2392
1946
|
type: {
|
2393
1947
|
name: "Composite",
|
2394
|
-
className: "
|
2395
|
-
|
2396
|
-
|
2397
|
-
|
2398
|
-
serializedName: "begin",
|
2399
|
-
type: {
|
2400
|
-
name: "String"
|
2401
|
-
}
|
2402
|
-
}, end: {
|
2403
|
-
serializedName: "end",
|
2404
|
-
type: {
|
2405
|
-
name: "String"
|
2406
|
-
}
|
2407
|
-
}, duration: {
|
2408
|
-
serializedName: "duration",
|
2409
|
-
type: {
|
2410
|
-
name: "String"
|
2411
|
-
}
|
2412
|
-
}, modifier: {
|
2413
|
-
serializedName: "modifier",
|
2414
|
-
type: {
|
2415
|
-
name: "String"
|
2416
|
-
}
|
2417
|
-
}, timex: {
|
2418
|
-
serializedName: "timex",
|
1948
|
+
className: "ActionPrebuilt",
|
1949
|
+
modelProperties: Object.assign(Object.assign({}, ActionCommon.type.modelProperties), { modelVersion: {
|
1950
|
+
defaultValue: "latest",
|
1951
|
+
serializedName: "modelVersion",
|
2419
1952
|
type: {
|
2420
1953
|
name: "String"
|
2421
1954
|
}
|
2422
1955
|
} })
|
2423
1956
|
}
|
2424
1957
|
};
|
2425
|
-
const
|
2426
|
-
serializedName: "NumericRangeResolution",
|
1958
|
+
const ActionCustom = {
|
2427
1959
|
type: {
|
2428
1960
|
name: "Composite",
|
2429
|
-
className: "
|
2430
|
-
|
2431
|
-
|
2432
|
-
modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { rangeKind: {
|
2433
|
-
serializedName: "rangeKind",
|
1961
|
+
className: "ActionCustom",
|
1962
|
+
modelProperties: Object.assign(Object.assign({}, ActionCommon.type.modelProperties), { projectName: {
|
1963
|
+
serializedName: "projectName",
|
2434
1964
|
required: true,
|
2435
1965
|
type: {
|
2436
1966
|
name: "String"
|
2437
1967
|
}
|
2438
|
-
},
|
2439
|
-
serializedName: "
|
2440
|
-
required: true,
|
2441
|
-
type: {
|
2442
|
-
name: "Number"
|
2443
|
-
}
|
2444
|
-
}, maximum: {
|
2445
|
-
serializedName: "maximum",
|
1968
|
+
}, deploymentName: {
|
1969
|
+
serializedName: "deploymentName",
|
2446
1970
|
required: true,
|
2447
1971
|
type: {
|
2448
|
-
name: "
|
1972
|
+
name: "String"
|
2449
1973
|
}
|
2450
1974
|
} })
|
2451
1975
|
}
|
2452
1976
|
};
|
2453
|
-
const
|
1977
|
+
const CustomEntitiesResult = {
|
2454
1978
|
type: {
|
2455
1979
|
name: "Composite",
|
2456
|
-
className: "
|
2457
|
-
modelProperties: Object.assign(Object.assign({},
|
2458
|
-
serializedName: "
|
1980
|
+
className: "CustomEntitiesResult",
|
1981
|
+
modelProperties: Object.assign(Object.assign({}, CustomResult.type.modelProperties), { documents: {
|
1982
|
+
serializedName: "documents",
|
1983
|
+
required: true,
|
2459
1984
|
type: {
|
2460
1985
|
name: "Sequence",
|
2461
1986
|
element: {
|
2462
1987
|
type: {
|
2463
1988
|
name: "Composite",
|
2464
|
-
className: "
|
1989
|
+
className: "CustomEntitiesResultDocumentsItem"
|
2465
1990
|
}
|
2466
1991
|
}
|
2467
1992
|
}
|
2468
1993
|
} })
|
2469
1994
|
}
|
2470
1995
|
};
|
2471
|
-
const
|
1996
|
+
const CustomLabelClassificationResult = {
|
2472
1997
|
type: {
|
2473
1998
|
name: "Composite",
|
2474
|
-
className: "
|
2475
|
-
modelProperties: Object.assign(Object.assign({},
|
2476
|
-
serializedName: "
|
1999
|
+
className: "CustomLabelClassificationResult",
|
2000
|
+
modelProperties: Object.assign(Object.assign({}, CustomResult.type.modelProperties), { documents: {
|
2001
|
+
serializedName: "documents",
|
2477
2002
|
required: true,
|
2478
2003
|
type: {
|
2479
2004
|
name: "Sequence",
|
2480
2005
|
element: {
|
2481
2006
|
type: {
|
2482
2007
|
name: "Composite",
|
2483
|
-
className: "
|
2008
|
+
className: "CustomLabelClassificationResultDocumentsItem"
|
2484
2009
|
}
|
2485
2010
|
}
|
2486
2011
|
}
|
2487
2012
|
} })
|
2488
2013
|
}
|
2489
2014
|
};
|
2490
|
-
const
|
2015
|
+
const EntitiesDocumentResult = {
|
2491
2016
|
type: {
|
2492
2017
|
name: "Composite",
|
2493
|
-
className: "
|
2494
|
-
modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), {
|
2495
|
-
serializedName: "
|
2018
|
+
className: "EntitiesDocumentResult",
|
2019
|
+
modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { entities: {
|
2020
|
+
serializedName: "entities",
|
2496
2021
|
required: true,
|
2497
2022
|
type: {
|
2498
2023
|
name: "Sequence",
|
2499
2024
|
element: {
|
2500
2025
|
type: {
|
2501
2026
|
name: "Composite",
|
2502
|
-
className: "
|
2027
|
+
className: "Entity"
|
2503
2028
|
}
|
2504
2029
|
}
|
2505
2030
|
}
|
2506
2031
|
} })
|
2507
2032
|
}
|
2508
2033
|
};
|
2509
|
-
const
|
2034
|
+
const ClassificationDocumentResult = {
|
2510
2035
|
type: {
|
2511
2036
|
name: "Composite",
|
2512
|
-
className: "
|
2037
|
+
className: "ClassificationDocumentResult",
|
2513
2038
|
modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { classifications: {
|
2514
|
-
serializedName: "
|
2039
|
+
serializedName: "class",
|
2515
2040
|
required: true,
|
2516
2041
|
type: {
|
2517
2042
|
name: "Sequence",
|
@@ -2553,12 +2078,6 @@ const HealthcareEntitiesDocumentResult = {
|
|
2553
2078
|
}
|
2554
2079
|
}
|
2555
2080
|
}
|
2556
|
-
}, fhirBundle: {
|
2557
|
-
serializedName: "fhirBundle",
|
2558
|
-
type: {
|
2559
|
-
name: "Dictionary",
|
2560
|
-
value: { type: { name: "any" } }
|
2561
|
-
}
|
2562
2081
|
} })
|
2563
2082
|
}
|
2564
2083
|
};
|
@@ -2707,76 +2226,6 @@ const AbstractiveSummaryDocumentResult = {
|
|
2707
2226
|
} })
|
2708
2227
|
}
|
2709
2228
|
};
|
2710
|
-
const CustomEntitiesResultDocumentsItem = {
|
2711
|
-
type: {
|
2712
|
-
name: "Composite",
|
2713
|
-
className: "CustomEntitiesResultDocumentsItem",
|
2714
|
-
modelProperties: Object.assign(Object.assign({}, EntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2715
|
-
}
|
2716
|
-
};
|
2717
|
-
const CustomLabelClassificationResultDocumentsItem = {
|
2718
|
-
type: {
|
2719
|
-
name: "Composite",
|
2720
|
-
className: "CustomLabelClassificationResultDocumentsItem",
|
2721
|
-
modelProperties: Object.assign(Object.assign({}, ClassificationDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2722
|
-
}
|
2723
|
-
};
|
2724
|
-
const SentimentResponseDocumentsItem = {
|
2725
|
-
type: {
|
2726
|
-
name: "Composite",
|
2727
|
-
className: "SentimentResponseDocumentsItem",
|
2728
|
-
modelProperties: Object.assign(Object.assign({}, SentimentDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2729
|
-
}
|
2730
|
-
};
|
2731
|
-
const EntitiesResultWithDetectedLanguage = {
|
2732
|
-
type: {
|
2733
|
-
name: "Composite",
|
2734
|
-
className: "EntitiesResultWithDetectedLanguage",
|
2735
|
-
modelProperties: Object.assign(Object.assign({}, EntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2736
|
-
}
|
2737
|
-
};
|
2738
|
-
const EntityLinkingResultWithDetectedLanguage = {
|
2739
|
-
type: {
|
2740
|
-
name: "Composite",
|
2741
|
-
className: "EntityLinkingResultWithDetectedLanguage",
|
2742
|
-
modelProperties: Object.assign(Object.assign({}, LinkedEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2743
|
-
}
|
2744
|
-
};
|
2745
|
-
const PIIResultWithDetectedLanguage = {
|
2746
|
-
type: {
|
2747
|
-
name: "Composite",
|
2748
|
-
className: "PIIResultWithDetectedLanguage",
|
2749
|
-
modelProperties: Object.assign(Object.assign({}, PiiEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2750
|
-
}
|
2751
|
-
};
|
2752
|
-
const ExtractedSummaryDocumentResultWithDetectedLanguage = {
|
2753
|
-
type: {
|
2754
|
-
name: "Composite",
|
2755
|
-
className: "ExtractedSummaryDocumentResultWithDetectedLanguage",
|
2756
|
-
modelProperties: Object.assign(Object.assign({}, ExtractedSummaryDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2757
|
-
}
|
2758
|
-
};
|
2759
|
-
const KeyPhraseResultDocumentsItem = {
|
2760
|
-
type: {
|
2761
|
-
name: "Composite",
|
2762
|
-
className: "KeyPhraseResultDocumentsItem",
|
2763
|
-
modelProperties: Object.assign(Object.assign({}, KeyPhrasesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2764
|
-
}
|
2765
|
-
};
|
2766
|
-
const AbstractiveSummaryDocumentResultWithDetectedLanguage = {
|
2767
|
-
type: {
|
2768
|
-
name: "Composite",
|
2769
|
-
className: "AbstractiveSummaryDocumentResultWithDetectedLanguage",
|
2770
|
-
modelProperties: Object.assign(Object.assign({}, AbstractiveSummaryDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
|
2771
|
-
}
|
2772
|
-
};
|
2773
|
-
const HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage = {
|
2774
|
-
type: {
|
2775
|
-
name: "Composite",
|
2776
|
-
className: "HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage",
|
2777
|
-
modelProperties: Object.assign(Object.assign({}, HealthcareEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguageString.type.modelProperties)
|
2778
|
-
}
|
2779
|
-
};
|
2780
2229
|
const HealthcareResult = {
|
2781
2230
|
type: {
|
2782
2231
|
name: "Composite",
|
@@ -2789,7 +2238,7 @@ const HealthcareResult = {
|
|
2789
2238
|
element: {
|
2790
2239
|
type: {
|
2791
2240
|
name: "Composite",
|
2792
|
-
className: "
|
2241
|
+
className: "HealthcareResultDocumentsItem"
|
2793
2242
|
}
|
2794
2243
|
}
|
2795
2244
|
}
|
@@ -2827,7 +2276,7 @@ const EntitiesResult = {
|
|
2827
2276
|
element: {
|
2828
2277
|
type: {
|
2829
2278
|
name: "Composite",
|
2830
|
-
className: "
|
2279
|
+
className: "EntitiesResultDocumentsItem"
|
2831
2280
|
}
|
2832
2281
|
}
|
2833
2282
|
}
|
@@ -2846,7 +2295,7 @@ const EntityLinkingResult = {
|
|
2846
2295
|
element: {
|
2847
2296
|
type: {
|
2848
2297
|
name: "Composite",
|
2849
|
-
className: "
|
2298
|
+
className: "EntityLinkingResultDocumentsItem"
|
2850
2299
|
}
|
2851
2300
|
}
|
2852
2301
|
}
|
@@ -2865,7 +2314,7 @@ const PiiResult = {
|
|
2865
2314
|
element: {
|
2866
2315
|
type: {
|
2867
2316
|
name: "Composite",
|
2868
|
-
className: "
|
2317
|
+
className: "PiiResultDocumentsItem"
|
2869
2318
|
}
|
2870
2319
|
}
|
2871
2320
|
}
|
@@ -2884,7 +2333,7 @@ const ExtractiveSummarizationResult = {
|
|
2884
2333
|
element: {
|
2885
2334
|
type: {
|
2886
2335
|
name: "Composite",
|
2887
|
-
className: "
|
2336
|
+
className: "ExtractedSummaryDocumentResult"
|
2888
2337
|
}
|
2889
2338
|
}
|
2890
2339
|
}
|
@@ -2929,25 +2378,6 @@ const LanguageDetectionResult = {
|
|
2929
2378
|
} })
|
2930
2379
|
}
|
2931
2380
|
};
|
2932
|
-
const DynamicClassificationResult = {
|
2933
|
-
type: {
|
2934
|
-
name: "Composite",
|
2935
|
-
className: "DynamicClassificationResult",
|
2936
|
-
modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
|
2937
|
-
serializedName: "documents",
|
2938
|
-
required: true,
|
2939
|
-
type: {
|
2940
|
-
name: "Sequence",
|
2941
|
-
element: {
|
2942
|
-
type: {
|
2943
|
-
name: "Composite",
|
2944
|
-
className: "DynamicClassificationResultDocumentsItem"
|
2945
|
-
}
|
2946
|
-
}
|
2947
|
-
}
|
2948
|
-
} })
|
2949
|
-
}
|
2950
|
-
};
|
2951
2381
|
const AbstractiveSummarizationResult = {
|
2952
2382
|
type: {
|
2953
2383
|
name: "Composite",
|
@@ -3405,45 +2835,11 @@ const SentimentAnalysisAction = {
|
|
3405
2835
|
} })
|
3406
2836
|
}
|
3407
2837
|
};
|
3408
|
-
const DynamicClassificationAction = {
|
3409
|
-
type: {
|
3410
|
-
name: "Composite",
|
3411
|
-
className: "DynamicClassificationAction",
|
3412
|
-
modelProperties: Object.assign(Object.assign({}, ActionPrebuilt.type.modelProperties), { classificationType: {
|
3413
|
-
defaultValue: "Multi",
|
3414
|
-
serializedName: "classificationType",
|
3415
|
-
type: {
|
3416
|
-
name: "String"
|
3417
|
-
}
|
3418
|
-
}, categories: {
|
3419
|
-
serializedName: "categories",
|
3420
|
-
required: true,
|
3421
|
-
type: {
|
3422
|
-
name: "Sequence",
|
3423
|
-
element: {
|
3424
|
-
type: {
|
3425
|
-
name: "String"
|
3426
|
-
}
|
3427
|
-
}
|
3428
|
-
}
|
3429
|
-
} })
|
3430
|
-
}
|
3431
|
-
};
|
3432
2838
|
const HealthcareAction = {
|
3433
2839
|
type: {
|
3434
2840
|
name: "Composite",
|
3435
2841
|
className: "HealthcareAction",
|
3436
|
-
modelProperties: Object.assign(Object.assign({}, ActionPrebuilt.type.modelProperties), {
|
3437
|
-
serializedName: "fhirVersion",
|
3438
|
-
type: {
|
3439
|
-
name: "String"
|
3440
|
-
}
|
3441
|
-
}, documentType: {
|
3442
|
-
serializedName: "documentType",
|
3443
|
-
type: {
|
3444
|
-
name: "String"
|
3445
|
-
}
|
3446
|
-
}, stringIndexType: {
|
2842
|
+
modelProperties: Object.assign(Object.assign({}, ActionPrebuilt.type.modelProperties), { stringIndexType: {
|
3447
2843
|
defaultValue: "Utf16CodeUnit",
|
3448
2844
|
serializedName: "stringIndexType",
|
3449
2845
|
type: {
|
@@ -3504,11 +2900,60 @@ const CustomMultiLabelClassificationAction = {
|
|
3504
2900
|
modelProperties: Object.assign({}, ActionCustom.type.modelProperties)
|
3505
2901
|
}
|
3506
2902
|
};
|
3507
|
-
const
|
2903
|
+
const CustomEntitiesResultDocumentsItem = {
|
2904
|
+
type: {
|
2905
|
+
name: "Composite",
|
2906
|
+
className: "CustomEntitiesResultDocumentsItem",
|
2907
|
+
modelProperties: Object.assign({}, EntitiesDocumentResult.type.modelProperties)
|
2908
|
+
}
|
2909
|
+
};
|
2910
|
+
const EntitiesResultDocumentsItem = {
|
2911
|
+
type: {
|
2912
|
+
name: "Composite",
|
2913
|
+
className: "EntitiesResultDocumentsItem",
|
2914
|
+
modelProperties: Object.assign({}, EntitiesDocumentResult.type.modelProperties)
|
2915
|
+
}
|
2916
|
+
};
|
2917
|
+
const CustomLabelClassificationResultDocumentsItem = {
|
2918
|
+
type: {
|
2919
|
+
name: "Composite",
|
2920
|
+
className: "CustomLabelClassificationResultDocumentsItem",
|
2921
|
+
modelProperties: Object.assign({}, ClassificationDocumentResult.type.modelProperties)
|
2922
|
+
}
|
2923
|
+
};
|
2924
|
+
const HealthcareResultDocumentsItem = {
|
2925
|
+
type: {
|
2926
|
+
name: "Composite",
|
2927
|
+
className: "HealthcareResultDocumentsItem",
|
2928
|
+
modelProperties: Object.assign({}, HealthcareEntitiesDocumentResult.type.modelProperties)
|
2929
|
+
}
|
2930
|
+
};
|
2931
|
+
const SentimentResponseDocumentsItem = {
|
2932
|
+
type: {
|
2933
|
+
name: "Composite",
|
2934
|
+
className: "SentimentResponseDocumentsItem",
|
2935
|
+
modelProperties: Object.assign({}, SentimentDocumentResult.type.modelProperties)
|
2936
|
+
}
|
2937
|
+
};
|
2938
|
+
const EntityLinkingResultDocumentsItem = {
|
2939
|
+
type: {
|
2940
|
+
name: "Composite",
|
2941
|
+
className: "EntityLinkingResultDocumentsItem",
|
2942
|
+
modelProperties: Object.assign({}, LinkedEntitiesDocumentResult.type.modelProperties)
|
2943
|
+
}
|
2944
|
+
};
|
2945
|
+
const PiiResultDocumentsItem = {
|
2946
|
+
type: {
|
2947
|
+
name: "Composite",
|
2948
|
+
className: "PiiResultDocumentsItem",
|
2949
|
+
modelProperties: Object.assign({}, PiiEntitiesDocumentResult.type.modelProperties)
|
2950
|
+
}
|
2951
|
+
};
|
2952
|
+
const KeyPhraseResultDocumentsItem = {
|
3508
2953
|
type: {
|
3509
2954
|
name: "Composite",
|
3510
|
-
className: "
|
3511
|
-
modelProperties: Object.assign({},
|
2955
|
+
className: "KeyPhraseResultDocumentsItem",
|
2956
|
+
modelProperties: Object.assign({}, KeyPhrasesDocumentResult.type.modelProperties)
|
3512
2957
|
}
|
3513
2958
|
};
|
3514
2959
|
const GeneratedClientAnalyzeBatchHeaders = {
|
@@ -3542,38 +2987,20 @@ const AnalyzeTextCancelJobHeaders = {
|
|
3542
2987
|
let discriminators = {
|
3543
2988
|
AnalyzeAction: AnalyzeAction,
|
3544
2989
|
AnalyzeTextTaskResult: AnalyzeTextTaskResult,
|
3545
|
-
BaseResolution: BaseResolution,
|
3546
2990
|
"AnalyzeAction.EntityLinking": AnalyzeTextEntityLinkingInput,
|
3547
2991
|
"AnalyzeAction.EntityRecognition": AnalyzeTextEntityRecognitionInput,
|
3548
2992
|
"AnalyzeAction.KeyPhraseExtraction": AnalyzeTextKeyPhraseExtractionInput,
|
3549
2993
|
"AnalyzeAction.PiiEntityRecognition": AnalyzeTextPiiEntitiesRecognitionInput,
|
3550
2994
|
"AnalyzeAction.LanguageDetection": AnalyzeTextLanguageDetectionInput,
|
3551
2995
|
"AnalyzeAction.SentimentAnalysis": AnalyzeTextSentimentAnalysisInput,
|
3552
|
-
"AnalyzeAction.DynamicClassification": AnalyzeTextDynamicClassificationInput,
|
3553
2996
|
"AnalyzeTextTaskResult.SentimentAnalysisResults": SentimentTaskResult,
|
3554
2997
|
"AnalyzeTextTaskResult.EntityRecognitionResults": EntitiesTaskResult,
|
3555
2998
|
"AnalyzeTextTaskResult.EntityLinkingResults": EntityLinkingTaskResult,
|
3556
2999
|
"AnalyzeTextTaskResult.PiiEntityRecognitionResults": PiiTaskResult,
|
3557
3000
|
"AnalyzeTextTaskResult.KeyPhraseExtractionResults": KeyPhraseTaskResult,
|
3558
3001
|
"AnalyzeTextTaskResult.LanguageDetectionResults": LanguageDetectionTaskResult,
|
3559
|
-
"AnalyzeTextTaskResult.DynamicClassificationResults": DynamicClassificationTaskResult,
|
3560
3002
|
"BatchActionState.AnalyzeBatchAction": AnalyzeBatchAction,
|
3561
3003
|
"TaskState.AnalyzeTextLROResult": AnalyzeTextLROResult,
|
3562
|
-
"BaseResolution.AgeResolution": AgeResolution,
|
3563
|
-
"BaseResolution.VolumeResolution": VolumeResolution,
|
3564
|
-
"BaseResolution.SpeedResolution": SpeedResolution,
|
3565
|
-
"BaseResolution.AreaResolution": AreaResolution,
|
3566
|
-
"BaseResolution.LengthResolution": LengthResolution,
|
3567
|
-
"BaseResolution.InformationResolution": InformationResolution,
|
3568
|
-
"BaseResolution.TemperatureResolution": TemperatureResolution,
|
3569
|
-
"BaseResolution.WeightResolution": WeightResolution,
|
3570
|
-
"BaseResolution.CurrencyResolution": CurrencyResolution,
|
3571
|
-
"BaseResolution.BooleanResolution": BooleanResolution,
|
3572
|
-
"BaseResolution.DateTimeResolution": DateTimeResolution,
|
3573
|
-
"BaseResolution.NumberResolution": NumberResolution,
|
3574
|
-
"BaseResolution.OrdinalResolution": OrdinalResolution,
|
3575
|
-
"BaseResolution.TemporalSpanResolution": TemporalSpanResolution,
|
3576
|
-
"BaseResolution.NumericRangeResolution": NumericRangeResolution,
|
3577
3004
|
"AnalyzeBatchAction.CustomEntityRecognition": CustomEntitiesLROTask,
|
3578
3005
|
"AnalyzeBatchAction.CustomSingleLabelClassification": CustomSingleLabelClassificationLROTask,
|
3579
3006
|
"AnalyzeBatchAction.CustomMultiLabelClassification": CustomMultiLabelClassificationLROTask,
|
@@ -3620,22 +3047,17 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3620
3047
|
ActionCommon: ActionCommon,
|
3621
3048
|
CustomResult: CustomResult,
|
3622
3049
|
DocumentError: DocumentError,
|
3623
|
-
BaseResolution: BaseResolution,
|
3624
3050
|
Entity: Entity,
|
3625
3051
|
DocumentResult: DocumentResult,
|
3626
3052
|
DocumentWarning: DocumentWarning,
|
3627
3053
|
TextDocumentStatistics: TextDocumentStatistics,
|
3628
|
-
DocumentDetectedLanguage: DocumentDetectedLanguage,
|
3629
|
-
DetectedLanguage: DetectedLanguage,
|
3630
3054
|
ClassificationCategory: ClassificationCategory,
|
3631
3055
|
HealthcareEntity: HealthcareEntity,
|
3632
3056
|
HealthcareAssertion: HealthcareAssertion,
|
3633
3057
|
EntityDataSource: EntityDataSource,
|
3634
3058
|
HealthcareRelation: HealthcareRelation,
|
3635
3059
|
HealthcareRelationEntity: HealthcareRelationEntity,
|
3636
|
-
DocumentDetectedLanguageString: DocumentDetectedLanguageString,
|
3637
3060
|
PreBuiltResult: PreBuiltResult,
|
3638
|
-
InputError: InputError,
|
3639
3061
|
SentimentConfidenceScores: SentimentConfidenceScores,
|
3640
3062
|
SentenceSentiment: SentenceSentiment,
|
3641
3063
|
SentenceTarget: SentenceTarget,
|
@@ -3644,9 +3066,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3644
3066
|
AssessmentSentiment: AssessmentSentiment,
|
3645
3067
|
LinkedEntity: LinkedEntity,
|
3646
3068
|
Match: Match,
|
3647
|
-
QuantityResolution: QuantityResolution,
|
3648
3069
|
SummarySentence: SummarySentence,
|
3070
|
+
DetectedLanguage: DetectedLanguage,
|
3649
3071
|
Pagination: Pagination,
|
3072
|
+
JobErrors: JobErrors,
|
3650
3073
|
AbstractiveSummarizationTaskParametersBase: AbstractiveSummarizationTaskParametersBase,
|
3651
3074
|
AbstractiveSummarizationResultBase: AbstractiveSummarizationResultBase,
|
3652
3075
|
AbstractiveSummary: AbstractiveSummary,
|
@@ -3657,41 +3080,21 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3657
3080
|
AnalyzeTextPiiEntitiesRecognitionInput: AnalyzeTextPiiEntitiesRecognitionInput,
|
3658
3081
|
AnalyzeTextLanguageDetectionInput: AnalyzeTextLanguageDetectionInput,
|
3659
3082
|
AnalyzeTextSentimentAnalysisInput: AnalyzeTextSentimentAnalysisInput,
|
3660
|
-
AnalyzeTextDynamicClassificationInput: AnalyzeTextDynamicClassificationInput,
|
3661
3083
|
SentimentTaskResult: SentimentTaskResult,
|
3662
3084
|
EntitiesTaskResult: EntitiesTaskResult,
|
3663
3085
|
EntityLinkingTaskResult: EntityLinkingTaskResult,
|
3664
3086
|
PiiTaskResult: PiiTaskResult,
|
3665
3087
|
KeyPhraseTaskResult: KeyPhraseTaskResult,
|
3666
3088
|
LanguageDetectionTaskResult: LanguageDetectionTaskResult,
|
3667
|
-
DynamicClassificationTaskResult: DynamicClassificationTaskResult,
|
3668
3089
|
AnalyzeBatchAction: AnalyzeBatchAction,
|
3669
3090
|
AnalyzeTextLROResult: AnalyzeTextLROResult,
|
3670
3091
|
AnalyzeTextJobState: AnalyzeTextJobState,
|
3671
|
-
DocumentRequestStatistics: DocumentRequestStatistics,
|
3672
3092
|
ActionPrebuilt: ActionPrebuilt,
|
3673
3093
|
ActionCustom: ActionCustom,
|
3674
3094
|
CustomEntitiesResult: CustomEntitiesResult,
|
3675
3095
|
CustomLabelClassificationResult: CustomLabelClassificationResult,
|
3676
|
-
AgeResolution: AgeResolution,
|
3677
|
-
VolumeResolution: VolumeResolution,
|
3678
|
-
SpeedResolution: SpeedResolution,
|
3679
|
-
AreaResolution: AreaResolution,
|
3680
|
-
LengthResolution: LengthResolution,
|
3681
|
-
InformationResolution: InformationResolution,
|
3682
|
-
TemperatureResolution: TemperatureResolution,
|
3683
|
-
WeightResolution: WeightResolution,
|
3684
|
-
CurrencyResolution: CurrencyResolution,
|
3685
|
-
BooleanResolution: BooleanResolution,
|
3686
|
-
DateTimeResolution: DateTimeResolution,
|
3687
|
-
NumberResolution: NumberResolution,
|
3688
|
-
OrdinalResolution: OrdinalResolution,
|
3689
|
-
TemporalSpanResolution: TemporalSpanResolution,
|
3690
|
-
NumericRangeResolution: NumericRangeResolution,
|
3691
|
-
EntityWithResolution: EntityWithResolution,
|
3692
3096
|
EntitiesDocumentResult: EntitiesDocumentResult,
|
3693
3097
|
ClassificationDocumentResult: ClassificationDocumentResult,
|
3694
|
-
DynamicClassificationDocumentResult: DynamicClassificationDocumentResult,
|
3695
3098
|
HealthcareEntitiesDocumentResult: HealthcareEntitiesDocumentResult,
|
3696
3099
|
SentimentDocumentResult: SentimentDocumentResult,
|
3697
3100
|
LinkedEntitiesDocumentResult: LinkedEntitiesDocumentResult,
|
@@ -3700,16 +3103,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3700
3103
|
KeyPhrasesDocumentResult: KeyPhrasesDocumentResult,
|
3701
3104
|
LanguageDetectionDocumentResult: LanguageDetectionDocumentResult,
|
3702
3105
|
AbstractiveSummaryDocumentResult: AbstractiveSummaryDocumentResult,
|
3703
|
-
CustomEntitiesResultDocumentsItem: CustomEntitiesResultDocumentsItem,
|
3704
|
-
CustomLabelClassificationResultDocumentsItem: CustomLabelClassificationResultDocumentsItem,
|
3705
|
-
SentimentResponseDocumentsItem: SentimentResponseDocumentsItem,
|
3706
|
-
EntitiesResultWithDetectedLanguage: EntitiesResultWithDetectedLanguage,
|
3707
|
-
EntityLinkingResultWithDetectedLanguage: EntityLinkingResultWithDetectedLanguage,
|
3708
|
-
PIIResultWithDetectedLanguage: PIIResultWithDetectedLanguage,
|
3709
|
-
ExtractedSummaryDocumentResultWithDetectedLanguage: ExtractedSummaryDocumentResultWithDetectedLanguage,
|
3710
|
-
KeyPhraseResultDocumentsItem: KeyPhraseResultDocumentsItem,
|
3711
|
-
AbstractiveSummaryDocumentResultWithDetectedLanguage: AbstractiveSummaryDocumentResultWithDetectedLanguage,
|
3712
|
-
HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage: HealthcareEntitiesDocumentResultWithDocumentDetectedLanguage,
|
3713
3106
|
HealthcareResult: HealthcareResult,
|
3714
3107
|
SentimentResponse: SentimentResponse,
|
3715
3108
|
EntitiesResult: EntitiesResult,
|
@@ -3718,7 +3111,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3718
3111
|
ExtractiveSummarizationResult: ExtractiveSummarizationResult,
|
3719
3112
|
KeyPhraseResult: KeyPhraseResult,
|
3720
3113
|
LanguageDetectionResult: LanguageDetectionResult,
|
3721
|
-
DynamicClassificationResult: DynamicClassificationResult,
|
3722
3114
|
AbstractiveSummarizationResult: AbstractiveSummarizationResult,
|
3723
3115
|
AbstractiveSummarizationAction: AbstractiveSummarizationAction,
|
3724
3116
|
CustomEntitiesLROTask: CustomEntitiesLROTask,
|
@@ -3749,13 +3141,19 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
3749
3141
|
PiiEntityRecognitionAction: PiiEntityRecognitionAction,
|
3750
3142
|
LanguageDetectionAction: LanguageDetectionAction,
|
3751
3143
|
SentimentAnalysisAction: SentimentAnalysisAction,
|
3752
|
-
DynamicClassificationAction: DynamicClassificationAction,
|
3753
3144
|
HealthcareAction: HealthcareAction,
|
3754
3145
|
ExtractiveSummarizationAction: ExtractiveSummarizationAction,
|
3755
3146
|
CustomEntityRecognitionAction: CustomEntityRecognitionAction,
|
3756
3147
|
CustomSingleLabelClassificationAction: CustomSingleLabelClassificationAction,
|
3757
3148
|
CustomMultiLabelClassificationAction: CustomMultiLabelClassificationAction,
|
3758
|
-
|
3149
|
+
CustomEntitiesResultDocumentsItem: CustomEntitiesResultDocumentsItem,
|
3150
|
+
EntitiesResultDocumentsItem: EntitiesResultDocumentsItem,
|
3151
|
+
CustomLabelClassificationResultDocumentsItem: CustomLabelClassificationResultDocumentsItem,
|
3152
|
+
HealthcareResultDocumentsItem: HealthcareResultDocumentsItem,
|
3153
|
+
SentimentResponseDocumentsItem: SentimentResponseDocumentsItem,
|
3154
|
+
EntityLinkingResultDocumentsItem: EntityLinkingResultDocumentsItem,
|
3155
|
+
PiiResultDocumentsItem: PiiResultDocumentsItem,
|
3156
|
+
KeyPhraseResultDocumentsItem: KeyPhraseResultDocumentsItem,
|
3759
3157
|
GeneratedClientAnalyzeBatchHeaders: GeneratedClientAnalyzeBatchHeaders,
|
3760
3158
|
AnalyzeTextCancelJobHeaders: AnalyzeTextCancelJobHeaders,
|
3761
3159
|
discriminators: discriminators
|
@@ -3808,7 +3206,7 @@ const endpoint = {
|
|
3808
3206
|
const apiVersion = {
|
3809
3207
|
parameterPath: "apiVersion",
|
3810
3208
|
mapper: {
|
3811
|
-
defaultValue: "
|
3209
|
+
defaultValue: "2023-04-01",
|
3812
3210
|
isConstant: true,
|
3813
3211
|
serializedName: "api-version",
|
3814
3212
|
type: {
|
@@ -3910,9 +3308,6 @@ function toSentimentAnalysisResult(docIds, results) {
|
|
3910
3308
|
},
|
3911
3309
|
});
|
3912
3310
|
}
|
3913
|
-
function toDynamicClassificationResult(docIds, results) {
|
3914
|
-
return transformDocumentResults(docIds, results);
|
3915
|
-
}
|
3916
3311
|
/**
|
3917
3312
|
* Converts a sentence sentiment object returned by the service to another that
|
3918
3313
|
* is user-friendly.
|
@@ -3991,9 +3386,6 @@ function transformActionResult(actionName, docIds, response) {
|
|
3991
3386
|
case "LanguageDetectionResults": {
|
3992
3387
|
return toLanguageDetectionResult(docIds, response.results);
|
3993
3388
|
}
|
3994
|
-
case "DynamicClassificationResults": {
|
3995
|
-
return toDynamicClassificationResult(docIds, response.results);
|
3996
|
-
}
|
3997
3389
|
default: {
|
3998
3390
|
const __exhaust = response;
|
3999
3391
|
throw new Error(`Unsupported results kind: ${__exhaust} for an action of type ${actionName}`);
|
@@ -4067,83 +3459,181 @@ function toHealthcareResult(docIds, results) {
|
|
4067
3459
|
}
|
4068
3460
|
return transformDocumentResults(docIds, results, {
|
4069
3461
|
processSuccess: (_a) => {
|
4070
|
-
var { entities, relations
|
3462
|
+
var { entities, relations } = _a, rest = tslib.__rest(_a, ["entities", "relations"]);
|
4071
3463
|
const newEntities = entities.map(makeHealthcareEntity);
|
4072
|
-
return Object.assign(
|
3464
|
+
return Object.assign({ entities: newEntities, entityRelations: relations.map(makeHealthcareRelation(newEntities)) }, rest);
|
4073
3465
|
},
|
4074
3466
|
});
|
4075
3467
|
}
|
4076
3468
|
/**
|
4077
3469
|
* @internal
|
4078
3470
|
*/
|
4079
|
-
function transformAnalyzeBatchResults(docIds, response = []) {
|
4080
|
-
|
4081
|
-
|
4082
|
-
|
3471
|
+
function transformAnalyzeBatchResults(docIds, response = [], errors = []) {
|
3472
|
+
const errorMap = toIndexErrorMap(errors);
|
3473
|
+
return response.map((actionData, idx) => {
|
3474
|
+
const { lastUpdateDateTime: completedOn, actionName, kind: resultKind } = actionData;
|
3475
|
+
const error = errorMap.get(idx);
|
3476
|
+
switch (resultKind) {
|
4083
3477
|
case "SentimentAnalysisLROResults": {
|
3478
|
+
const kind = "SentimentAnalysis";
|
3479
|
+
if (actionData.status === "failed") {
|
3480
|
+
return returnErrorTask(kind, error, completedOn);
|
3481
|
+
}
|
4084
3482
|
const { results } = actionData;
|
4085
3483
|
const { modelVersion, statistics } = results;
|
4086
|
-
return Object.assign(Object.assign(Object.assign({ kind
|
3484
|
+
return Object.assign(Object.assign(Object.assign({ kind, results: toSentimentAnalysisResult(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { modelVersion });
|
4087
3485
|
}
|
4088
3486
|
case "EntityRecognitionLROResults": {
|
3487
|
+
const kind = "EntityRecognition";
|
3488
|
+
if (actionData.status === "failed") {
|
3489
|
+
return returnErrorTask(kind, error, completedOn);
|
3490
|
+
}
|
4089
3491
|
const { results } = actionData;
|
4090
3492
|
const { modelVersion, statistics } = results;
|
4091
3493
|
return Object.assign(Object.assign(Object.assign({ kind: "EntityRecognition", results: toEntityRecognitionResult(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { modelVersion });
|
4092
3494
|
}
|
4093
3495
|
case "PiiEntityRecognitionLROResults": {
|
3496
|
+
const kind = "PiiEntityRecognition";
|
3497
|
+
if (actionData.status === "failed") {
|
3498
|
+
return returnErrorTask(kind, error, completedOn);
|
3499
|
+
}
|
4094
3500
|
const { results } = actionData;
|
4095
3501
|
const { modelVersion, statistics } = results;
|
4096
|
-
return Object.assign(Object.assign(Object.assign({ kind
|
3502
|
+
return Object.assign(Object.assign(Object.assign({ kind, results: toPiiEntityRecognitionResult(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { modelVersion });
|
4097
3503
|
}
|
4098
3504
|
case "KeyPhraseExtractionLROResults": {
|
3505
|
+
const kind = "KeyPhraseExtraction";
|
3506
|
+
if (actionData.status === "failed") {
|
3507
|
+
return returnErrorTask(kind, error, completedOn);
|
3508
|
+
}
|
4099
3509
|
const { results } = actionData;
|
4100
3510
|
const { modelVersion, statistics } = results;
|
4101
|
-
return Object.assign(Object.assign(Object.assign({ kind
|
3511
|
+
return Object.assign(Object.assign(Object.assign({ kind, results: toKeyPhraseExtractionResult(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { modelVersion });
|
4102
3512
|
}
|
4103
3513
|
case "EntityLinkingLROResults": {
|
3514
|
+
const kind = "EntityLinking";
|
3515
|
+
if (actionData.status === "failed") {
|
3516
|
+
return returnErrorTask(kind, error, completedOn);
|
3517
|
+
}
|
4104
3518
|
const { results } = actionData;
|
4105
3519
|
const { modelVersion, statistics } = results;
|
4106
|
-
return Object.assign(Object.assign(Object.assign({ kind
|
3520
|
+
return Object.assign(Object.assign(Object.assign({ kind, results: toEntityLinkingResult(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { modelVersion });
|
4107
3521
|
}
|
4108
3522
|
case "HealthcareLROResults": {
|
3523
|
+
const kind = "Healthcare";
|
3524
|
+
if (actionData.status === "failed") {
|
3525
|
+
return returnErrorTask(kind, error, completedOn);
|
3526
|
+
}
|
4109
3527
|
const { results } = actionData;
|
4110
3528
|
const { modelVersion, statistics } = results;
|
4111
|
-
return Object.assign(Object.assign(Object.assign({ kind
|
3529
|
+
return Object.assign(Object.assign(Object.assign({ kind, results: toHealthcareResult(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { modelVersion });
|
4112
3530
|
}
|
4113
3531
|
case "CustomEntityRecognitionLROResults": {
|
3532
|
+
const kind = "CustomEntityRecognition";
|
3533
|
+
if (actionData.status === "failed") {
|
3534
|
+
return returnErrorCustomTask(kind, error, completedOn);
|
3535
|
+
}
|
4114
3536
|
const { results } = actionData;
|
4115
3537
|
const { deploymentName, projectName, statistics } = results;
|
4116
|
-
return Object.assign(Object.assign(Object.assign({ kind
|
3538
|
+
return Object.assign(Object.assign(Object.assign({ kind, results: transformDocumentResults(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { deploymentName,
|
4117
3539
|
projectName });
|
4118
3540
|
}
|
4119
3541
|
case "CustomSingleLabelClassificationLROResults": {
|
3542
|
+
const kind = "CustomSingleLabelClassification";
|
3543
|
+
if (actionData.status === "failed") {
|
3544
|
+
return returnErrorCustomTask(kind, error, completedOn);
|
3545
|
+
}
|
4120
3546
|
const { results } = actionData;
|
4121
3547
|
const { deploymentName, projectName, statistics } = results;
|
4122
|
-
return Object.assign(Object.assign(Object.assign({ kind
|
3548
|
+
return Object.assign(Object.assign(Object.assign({ kind, results: transformDocumentResults(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { deploymentName,
|
4123
3549
|
projectName });
|
4124
3550
|
}
|
4125
3551
|
case "CustomMultiLabelClassificationLROResults": {
|
3552
|
+
const kind = "CustomMultiLabelClassification";
|
3553
|
+
if (actionData.status === "failed") {
|
3554
|
+
return returnErrorCustomTask(kind, error, completedOn);
|
3555
|
+
}
|
4126
3556
|
const { results } = actionData;
|
4127
3557
|
const { deploymentName, projectName, statistics } = results;
|
4128
|
-
return Object.assign(Object.assign(Object.assign({ kind
|
3558
|
+
return Object.assign(Object.assign(Object.assign({ kind, results: transformDocumentResults(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { deploymentName,
|
4129
3559
|
projectName });
|
4130
3560
|
}
|
4131
3561
|
case "ExtractiveSummarizationLROResults": {
|
3562
|
+
const kind = "ExtractiveSummarization";
|
3563
|
+
if (actionData.status === "failed") {
|
3564
|
+
return returnErrorTask(kind, error, completedOn);
|
3565
|
+
}
|
4132
3566
|
const { results } = actionData;
|
4133
3567
|
const { modelVersion, statistics } = results;
|
4134
3568
|
return Object.assign(Object.assign(Object.assign({ kind: "ExtractiveSummarization", results: transformDocumentResults(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { modelVersion });
|
4135
3569
|
}
|
4136
3570
|
case "AbstractiveSummarizationLROResults": {
|
3571
|
+
const kind = "AbstractiveSummarization";
|
3572
|
+
if (actionData.status === "failed") {
|
3573
|
+
return returnErrorTask(kind, error, completedOn);
|
3574
|
+
}
|
4137
3575
|
const { results } = actionData;
|
4138
3576
|
const { modelVersion, statistics } = results;
|
4139
3577
|
return Object.assign(Object.assign(Object.assign({ kind: "AbstractiveSummarization", results: transformDocumentResults(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { modelVersion });
|
4140
3578
|
}
|
4141
3579
|
default: {
|
4142
|
-
throw new Error(`Unsupported results kind: ${
|
3580
|
+
throw new Error(`Unsupported results kind: ${resultKind}`);
|
4143
3581
|
}
|
4144
3582
|
}
|
4145
3583
|
});
|
4146
3584
|
}
|
3585
|
+
/**
|
3586
|
+
* @internal
|
3587
|
+
* Transform a list of error into index and error Map
|
3588
|
+
*/
|
3589
|
+
function toIndexErrorMap(errors) {
|
3590
|
+
const errorMap = new Map();
|
3591
|
+
for (const error of errors) {
|
3592
|
+
const position = extractErrorPointerIndex(error);
|
3593
|
+
const errorWithoutTarget = tslib.__rest(error, ["target"]);
|
3594
|
+
errorMap.set(position, toTextAnalysisError(errorWithoutTarget));
|
3595
|
+
}
|
3596
|
+
return errorMap;
|
3597
|
+
}
|
3598
|
+
/**
|
3599
|
+
* Return the error for non-custom task
|
3600
|
+
*
|
3601
|
+
* @param kind - non custom task kind
|
3602
|
+
* @param error - error returned from the service
|
3603
|
+
* @param failedOn - the LastUpdateDateTime from the service
|
3604
|
+
* @returns - AnalyzeBatchResult with error
|
3605
|
+
*/
|
3606
|
+
function returnErrorTask(kind, error, failedOn) {
|
3607
|
+
if (!error) {
|
3608
|
+
throw new Error("Unexpected response from service - no errors for missing action results.");
|
3609
|
+
}
|
3610
|
+
return {
|
3611
|
+
kind,
|
3612
|
+
modelVersion: "",
|
3613
|
+
failedOn,
|
3614
|
+
error,
|
3615
|
+
};
|
3616
|
+
}
|
3617
|
+
/**
|
3618
|
+
* Return the error for non-custom task
|
3619
|
+
*
|
3620
|
+
* @param kind - non custom task kind
|
3621
|
+
* @param error - error returned from the service
|
3622
|
+
* @param failedOn - the LastUpdateDateTime from the service
|
3623
|
+
* @returns AnalyzeBatchResult for custom task with error
|
3624
|
+
*/
|
3625
|
+
function returnErrorCustomTask(kind, error, failedOn) {
|
3626
|
+
if (!error) {
|
3627
|
+
throw new Error("Unexpected response from service - no errors for missing action results.");
|
3628
|
+
}
|
3629
|
+
return {
|
3630
|
+
kind,
|
3631
|
+
projectName: "",
|
3632
|
+
deploymentName: "",
|
3633
|
+
failedOn,
|
3634
|
+
error,
|
3635
|
+
};
|
3636
|
+
}
|
4147
3637
|
|
4148
3638
|
// Copyright (c) Microsoft Corporation.
|
4149
3639
|
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
@@ -4161,13 +3651,24 @@ const jobStatusOperationSpec$1 = {
|
|
4161
3651
|
queryParameters: [top, skip, includeStatistics],
|
4162
3652
|
serializer: serializer$2,
|
4163
3653
|
};
|
3654
|
+
function addOnResponse(options, cb) {
|
3655
|
+
return Object.assign(Object.assign({}, options), { onResponse: (rawResponse, response, error) => {
|
3656
|
+
var _a;
|
3657
|
+
cb(rawResponse, response, error);
|
3658
|
+
(_a = options.onResponse) === null || _a === void 0 ? void 0 : _a.call(options, rawResponse, response, error);
|
3659
|
+
} });
|
3660
|
+
}
|
3661
|
+
function logWarnHeader(rawResponse) {
|
3662
|
+
const warnHeader = rawResponse.headers.get("warn-text");
|
3663
|
+
if (warnHeader) {
|
3664
|
+
warnHeader.split(";").map((x) => logger.warning(x));
|
3665
|
+
}
|
3666
|
+
}
|
4164
3667
|
async function getRawResponse(getResponse, options) {
|
4165
|
-
const { onResponse } = options || {};
|
4166
3668
|
let rawResponse;
|
4167
|
-
const flatResponse = await getResponse(
|
4168
|
-
|
4169
|
-
|
4170
|
-
} }));
|
3669
|
+
const flatResponse = await getResponse(addOnResponse(options, (response) => {
|
3670
|
+
rawResponse = response;
|
3671
|
+
}));
|
4171
3672
|
return {
|
4172
3673
|
flatResponse,
|
4173
3674
|
rawResponse: {
|
@@ -4190,7 +3691,12 @@ function createSendPollRequest(settings) {
|
|
4190
3691
|
return async (path) => {
|
4191
3692
|
return throwError(sendRequest({
|
4192
3693
|
client,
|
4193
|
-
opOptions: options,
|
3694
|
+
opOptions: addOnResponse(options, (_, response) => {
|
3695
|
+
const castResponse = response;
|
3696
|
+
if (castResponse.status.toLowerCase() === "partiallysucceeded") {
|
3697
|
+
castResponse.status = "succeeded";
|
3698
|
+
}
|
3699
|
+
}),
|
4194
3700
|
path,
|
4195
3701
|
spanStr,
|
4196
3702
|
spec: jobStatusOperationSpec$1,
|
@@ -4205,7 +3711,7 @@ function createAnalyzeBatchLro(settings) {
|
|
4205
3711
|
const { client, commonOptions, documents, initialRequestOptions, pollRequestOptions, tasks, tracing, } = settings;
|
4206
3712
|
return {
|
4207
3713
|
async sendInitialRequest() {
|
4208
|
-
return tracing.withSpan(`${clientName}.beginAnalyzeBatch`, Object.assign(Object.assign({}, commonOptions), initialRequestOptions), async (finalOptions) => throwError(getRawResponse((paramOptions) => client.analyzeBatch({
|
3714
|
+
return tracing.withSpan(`${clientName}.beginAnalyzeBatch`, addOnResponse(Object.assign(Object.assign({}, commonOptions), initialRequestOptions), logWarnHeader), async (finalOptions) => throwError(getRawResponse((paramOptions) => client.analyzeBatch({
|
4209
3715
|
tasks,
|
4210
3716
|
analysisInput: {
|
4211
3717
|
documents,
|
@@ -4273,7 +3779,7 @@ function processAnalyzeResult(options) {
|
|
4273
3779
|
});
|
4274
3780
|
const flatResponse = response.flatResponse;
|
4275
3781
|
return {
|
4276
|
-
page: transformAnalyzeBatchResults(docIds, flatResponse.tasks.items),
|
3782
|
+
page: transformAnalyzeBatchResults(docIds, flatResponse.tasks.items, flatResponse.errors),
|
4277
3783
|
nextPageLink: flatResponse.nextLink,
|
4278
3784
|
};
|
4279
3785
|
},
|
@@ -4414,18 +3920,18 @@ class GeneratedClient extends coreClient__namespace.ServiceClient {
|
|
4414
3920
|
const defaults = {
|
4415
3921
|
requestContentType: "application/json; charset=utf-8"
|
4416
3922
|
};
|
4417
|
-
const packageDetails = `azsdk-js-ai-language-text/1.1.0
|
3923
|
+
const packageDetails = `azsdk-js-ai-language-text/1.1.0`;
|
4418
3924
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
4419
3925
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
4420
3926
|
: `${packageDetails}`;
|
4421
3927
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
4422
3928
|
userAgentPrefix
|
4423
|
-
},
|
3929
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{Endpoint}/language" });
|
4424
3930
|
super(optionsWithDefaults);
|
4425
3931
|
// Parameter assignments
|
4426
3932
|
this.endpoint = endpoint;
|
4427
3933
|
// Assigning values to Constant parameters
|
4428
|
-
this.apiVersion = options.apiVersion || "
|
3934
|
+
this.apiVersion = options.apiVersion || "2023-04-01";
|
4429
3935
|
this.analyzeText = new AnalyzeTextImpl(this);
|
4430
3936
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
4431
3937
|
}
|
@@ -4639,8 +4145,8 @@ class TextAnalysisClient {
|
|
4639
4145
|
throw new Error("'documents' must be a non-empty array");
|
4640
4146
|
}
|
4641
4147
|
if (isStringArray(documents)) {
|
4642
|
-
const
|
4643
|
-
realInputs = convertToTextDocumentInput(documents,
|
4148
|
+
const languageCode = (_a = languageOrOptions) !== null && _a !== void 0 ? _a : this.defaultLanguage;
|
4149
|
+
realInputs = convertToTextDocumentInput(documents, languageCode);
|
4644
4150
|
realOptions = options;
|
4645
4151
|
}
|
4646
4152
|
else {
|
@@ -4750,8 +4256,6 @@ var KnownAnalyzeTextTaskKind;
|
|
4750
4256
|
KnownAnalyzeTextTaskKind["LanguageDetection"] = "LanguageDetection";
|
4751
4257
|
/** EntityLinking */
|
4752
4258
|
KnownAnalyzeTextTaskKind["EntityLinking"] = "EntityLinking";
|
4753
|
-
/** DynamicClassification */
|
4754
|
-
KnownAnalyzeTextTaskKind["DynamicClassification"] = "DynamicClassification";
|
4755
4259
|
})(KnownAnalyzeTextTaskKind || (KnownAnalyzeTextTaskKind = {}));
|
4756
4260
|
/** Known values of {@link AnalyzeTextTaskResultsKind} that the service accepts. */
|
4757
4261
|
var KnownAnalyzeTextTaskResultsKind;
|
@@ -4768,8 +4272,6 @@ var KnownAnalyzeTextTaskResultsKind;
|
|
4768
4272
|
KnownAnalyzeTextTaskResultsKind["LanguageDetectionResults"] = "LanguageDetectionResults";
|
4769
4273
|
/** EntityLinkingResults */
|
4770
4274
|
KnownAnalyzeTextTaskResultsKind["EntityLinkingResults"] = "EntityLinkingResults";
|
4771
|
-
/** DynamicClassificationResults */
|
4772
|
-
KnownAnalyzeTextTaskResultsKind["DynamicClassificationResults"] = "DynamicClassificationResults";
|
4773
4275
|
})(KnownAnalyzeTextTaskResultsKind || (KnownAnalyzeTextTaskResultsKind = {}));
|
4774
4276
|
/** Known values of {@link ErrorCode} that the service accepts. */
|
4775
4277
|
exports.KnownErrorCode = void 0;
|
@@ -5297,48 +4799,6 @@ exports.KnownPiiEntityCategory = void 0;
|
|
5297
4799
|
/** Default */
|
5298
4800
|
KnownPiiEntityCategory["Default"] = "Default";
|
5299
4801
|
})(exports.KnownPiiEntityCategory || (exports.KnownPiiEntityCategory = {}));
|
5300
|
-
/** Known values of {@link ClassificationType} that the service accepts. */
|
5301
|
-
exports.KnownClassificationType = void 0;
|
5302
|
-
(function (KnownClassificationType) {
|
5303
|
-
/** Single */
|
5304
|
-
KnownClassificationType["Single"] = "Single";
|
5305
|
-
/** Multi */
|
5306
|
-
KnownClassificationType["Multi"] = "Multi";
|
5307
|
-
})(exports.KnownClassificationType || (exports.KnownClassificationType = {}));
|
5308
|
-
/** Known values of {@link ResolutionKind} that the service accepts. */
|
5309
|
-
exports.KnownResolutionKind = void 0;
|
5310
|
-
(function (KnownResolutionKind) {
|
5311
|
-
/** BooleanResolution */
|
5312
|
-
KnownResolutionKind["BooleanResolution"] = "BooleanResolution";
|
5313
|
-
/** DateTimeResolution */
|
5314
|
-
KnownResolutionKind["DateTimeResolution"] = "DateTimeResolution";
|
5315
|
-
/** NumberResolution */
|
5316
|
-
KnownResolutionKind["NumberResolution"] = "NumberResolution";
|
5317
|
-
/** OrdinalResolution */
|
5318
|
-
KnownResolutionKind["OrdinalResolution"] = "OrdinalResolution";
|
5319
|
-
/** SpeedResolution */
|
5320
|
-
KnownResolutionKind["SpeedResolution"] = "SpeedResolution";
|
5321
|
-
/** WeightResolution */
|
5322
|
-
KnownResolutionKind["WeightResolution"] = "WeightResolution";
|
5323
|
-
/** LengthResolution */
|
5324
|
-
KnownResolutionKind["LengthResolution"] = "LengthResolution";
|
5325
|
-
/** VolumeResolution */
|
5326
|
-
KnownResolutionKind["VolumeResolution"] = "VolumeResolution";
|
5327
|
-
/** AreaResolution */
|
5328
|
-
KnownResolutionKind["AreaResolution"] = "AreaResolution";
|
5329
|
-
/** AgeResolution */
|
5330
|
-
KnownResolutionKind["AgeResolution"] = "AgeResolution";
|
5331
|
-
/** InformationResolution */
|
5332
|
-
KnownResolutionKind["InformationResolution"] = "InformationResolution";
|
5333
|
-
/** TemperatureResolution */
|
5334
|
-
KnownResolutionKind["TemperatureResolution"] = "TemperatureResolution";
|
5335
|
-
/** CurrencyResolution */
|
5336
|
-
KnownResolutionKind["CurrencyResolution"] = "CurrencyResolution";
|
5337
|
-
/** NumericRangeResolution */
|
5338
|
-
KnownResolutionKind["NumericRangeResolution"] = "NumericRangeResolution";
|
5339
|
-
/** TemporalSpanResolution */
|
5340
|
-
KnownResolutionKind["TemporalSpanResolution"] = "TemporalSpanResolution";
|
5341
|
-
})(exports.KnownResolutionKind || (exports.KnownResolutionKind = {}));
|
5342
4802
|
/** Known values of {@link WarningCode} that the service accepts. */
|
5343
4803
|
var KnownWarningCode;
|
5344
4804
|
(function (KnownWarningCode) {
|
@@ -5347,40 +4807,6 @@ var KnownWarningCode;
|
|
5347
4807
|
/** DocumentTruncated */
|
5348
4808
|
KnownWarningCode["DocumentTruncated"] = "DocumentTruncated";
|
5349
4809
|
})(KnownWarningCode || (KnownWarningCode = {}));
|
5350
|
-
/** Known values of {@link ScriptKind} that the service accepts. */
|
5351
|
-
exports.KnownScriptKind = void 0;
|
5352
|
-
(function (KnownScriptKind) {
|
5353
|
-
/** Latin */
|
5354
|
-
KnownScriptKind["Latin"] = "Latin";
|
5355
|
-
})(exports.KnownScriptKind || (exports.KnownScriptKind = {}));
|
5356
|
-
/** Known values of {@link FhirVersion} that the service accepts. */
|
5357
|
-
var KnownFhirVersion;
|
5358
|
-
(function (KnownFhirVersion) {
|
5359
|
-
/** Four01 */
|
5360
|
-
KnownFhirVersion["Four01"] = "4.0.1";
|
5361
|
-
})(KnownFhirVersion || (KnownFhirVersion = {}));
|
5362
|
-
/** Known values of {@link HealthcareDocumentType} that the service accepts. */
|
5363
|
-
exports.KnownHealthcareDocumentType = void 0;
|
5364
|
-
(function (KnownHealthcareDocumentType) {
|
5365
|
-
/** None */
|
5366
|
-
KnownHealthcareDocumentType["None"] = "None";
|
5367
|
-
/** ClinicalTrial */
|
5368
|
-
KnownHealthcareDocumentType["ClinicalTrial"] = "ClinicalTrial";
|
5369
|
-
/** DischargeSummary */
|
5370
|
-
KnownHealthcareDocumentType["DischargeSummary"] = "DischargeSummary";
|
5371
|
-
/** ProgressNote */
|
5372
|
-
KnownHealthcareDocumentType["ProgressNote"] = "ProgressNote";
|
5373
|
-
/** HistoryAndPhysical */
|
5374
|
-
KnownHealthcareDocumentType["HistoryAndPhysical"] = "HistoryAndPhysical";
|
5375
|
-
/** Consult */
|
5376
|
-
KnownHealthcareDocumentType["Consult"] = "Consult";
|
5377
|
-
/** Imaging */
|
5378
|
-
KnownHealthcareDocumentType["Imaging"] = "Imaging";
|
5379
|
-
/** Pathology */
|
5380
|
-
KnownHealthcareDocumentType["Pathology"] = "Pathology";
|
5381
|
-
/** ProcedureNote */
|
5382
|
-
KnownHealthcareDocumentType["ProcedureNote"] = "ProcedureNote";
|
5383
|
-
})(exports.KnownHealthcareDocumentType || (exports.KnownHealthcareDocumentType = {}));
|
5384
4810
|
/** Known values of {@link HealthcareEntityCategory} that the service accepts. */
|
5385
4811
|
exports.KnownHealthcareEntityCategory = void 0;
|
5386
4812
|
(function (KnownHealthcareEntityCategory) {
|
@@ -5390,6 +4816,8 @@ exports.KnownHealthcareEntityCategory = void 0;
|
|
5390
4816
|
KnownHealthcareEntityCategory["Age"] = "Age";
|
5391
4817
|
/** Gender */
|
5392
4818
|
KnownHealthcareEntityCategory["Gender"] = "Gender";
|
4819
|
+
/** Ethnicity */
|
4820
|
+
KnownHealthcareEntityCategory["Ethnicity"] = "Ethnicity";
|
5393
4821
|
/** ExaminationName */
|
5394
4822
|
KnownHealthcareEntityCategory["ExaminationName"] = "ExaminationName";
|
5395
4823
|
/** Date */
|
@@ -5406,10 +4834,16 @@ exports.KnownHealthcareEntityCategory = void 0;
|
|
5406
4834
|
KnownHealthcareEntityCategory["RelationalOperator"] = "RelationalOperator";
|
5407
4835
|
/** Time */
|
5408
4836
|
KnownHealthcareEntityCategory["Time"] = "Time";
|
4837
|
+
/** Course */
|
4838
|
+
KnownHealthcareEntityCategory["Course"] = "Course";
|
5409
4839
|
/** GeneOrProtein */
|
5410
4840
|
KnownHealthcareEntityCategory["GeneOrProtein"] = "GeneOrProtein";
|
5411
4841
|
/** Variant */
|
5412
4842
|
KnownHealthcareEntityCategory["Variant"] = "Variant";
|
4843
|
+
/** Expression */
|
4844
|
+
KnownHealthcareEntityCategory["Expression"] = "Expression";
|
4845
|
+
/** MutationType */
|
4846
|
+
KnownHealthcareEntityCategory["MutationType"] = "MutationType";
|
5413
4847
|
/** AdministrativeEvent */
|
5414
4848
|
KnownHealthcareEntityCategory["AdministrativeEvent"] = "AdministrativeEvent";
|
5415
4849
|
/** CareEnvironment */
|
@@ -5422,6 +4856,8 @@ exports.KnownHealthcareEntityCategory = void 0;
|
|
5422
4856
|
KnownHealthcareEntityCategory["SymptomOrSign"] = "SymptomOrSign";
|
5423
4857
|
/** ConditionQualifier */
|
5424
4858
|
KnownHealthcareEntityCategory["ConditionQualifier"] = "ConditionQualifier";
|
4859
|
+
/** ConditionScale */
|
4860
|
+
KnownHealthcareEntityCategory["ConditionScale"] = "ConditionScale";
|
5425
4861
|
/** MedicationClass */
|
5426
4862
|
KnownHealthcareEntityCategory["MedicationClass"] = "MedicationClass";
|
5427
4863
|
/** MedicationName */
|
@@ -5436,12 +4872,34 @@ exports.KnownHealthcareEntityCategory = void 0;
|
|
5436
4872
|
KnownHealthcareEntityCategory["FamilyRelation"] = "FamilyRelation";
|
5437
4873
|
/** TreatmentName */
|
5438
4874
|
KnownHealthcareEntityCategory["TreatmentName"] = "TreatmentName";
|
4875
|
+
/** Allergen */
|
4876
|
+
KnownHealthcareEntityCategory["Allergen"] = "Allergen";
|
4877
|
+
/** Employment */
|
4878
|
+
KnownHealthcareEntityCategory["Employment"] = "Employment";
|
4879
|
+
/** LivingStatus */
|
4880
|
+
KnownHealthcareEntityCategory["LivingStatus"] = "LivingStatus";
|
4881
|
+
/** SubstanceUse */
|
4882
|
+
KnownHealthcareEntityCategory["SubstanceUse"] = "SubstanceUse";
|
4883
|
+
/** SubstanceUseAmount */
|
4884
|
+
KnownHealthcareEntityCategory["SubstanceUseAmount"] = "SubstanceUseAmount";
|
5439
4885
|
})(exports.KnownHealthcareEntityCategory || (exports.KnownHealthcareEntityCategory = {}));
|
5440
4886
|
/** Known values of {@link RelationType} that the service accepts. */
|
5441
4887
|
exports.KnownRelationType = void 0;
|
5442
4888
|
(function (KnownRelationType) {
|
5443
4889
|
/** Abbreviation */
|
5444
4890
|
KnownRelationType["Abbreviation"] = "Abbreviation";
|
4891
|
+
/** BodySiteOfCondition */
|
4892
|
+
KnownRelationType["BodySiteOfCondition"] = "BodySiteOfCondition";
|
4893
|
+
/** BodySiteOfTreatment */
|
4894
|
+
KnownRelationType["BodySiteOfTreatment"] = "BodySiteOfTreatment";
|
4895
|
+
/** CourseOfCondition */
|
4896
|
+
KnownRelationType["CourseOfCondition"] = "CourseOfCondition";
|
4897
|
+
/** CourseOfExamination */
|
4898
|
+
KnownRelationType["CourseOfExamination"] = "CourseOfExamination";
|
4899
|
+
/** CourseOfMedication */
|
4900
|
+
KnownRelationType["CourseOfMedication"] = "CourseOfMedication";
|
4901
|
+
/** CourseOfTreatment */
|
4902
|
+
KnownRelationType["CourseOfTreatment"] = "CourseOfTreatment";
|
5445
4903
|
/** DirectionOfBodyStructure */
|
5446
4904
|
KnownRelationType["DirectionOfBodyStructure"] = "DirectionOfBodyStructure";
|
5447
4905
|
/** DirectionOfCondition */
|
@@ -5452,18 +4910,32 @@ exports.KnownRelationType = void 0;
|
|
5452
4910
|
KnownRelationType["DirectionOfTreatment"] = "DirectionOfTreatment";
|
5453
4911
|
/** DosageOfMedication */
|
5454
4912
|
KnownRelationType["DosageOfMedication"] = "DosageOfMedication";
|
4913
|
+
/** ExaminationFindsCondition */
|
4914
|
+
KnownRelationType["ExaminationFindsCondition"] = "ExaminationFindsCondition";
|
4915
|
+
/** ExpressionOfGene */
|
4916
|
+
KnownRelationType["ExpressionOfGene"] = "ExpressionOfGene";
|
4917
|
+
/** ExpressionOfVariant */
|
4918
|
+
KnownRelationType["ExpressionOfVariant"] = "ExpressionOfVariant";
|
5455
4919
|
/** FormOfMedication */
|
5456
4920
|
KnownRelationType["FormOfMedication"] = "FormOfMedication";
|
4921
|
+
/** FrequencyOfCondition */
|
4922
|
+
KnownRelationType["FrequencyOfCondition"] = "FrequencyOfCondition";
|
5457
4923
|
/** FrequencyOfMedication */
|
5458
4924
|
KnownRelationType["FrequencyOfMedication"] = "FrequencyOfMedication";
|
5459
4925
|
/** FrequencyOfTreatment */
|
5460
4926
|
KnownRelationType["FrequencyOfTreatment"] = "FrequencyOfTreatment";
|
4927
|
+
/** MutationTypeOfGene */
|
4928
|
+
KnownRelationType["MutationTypeOfGene"] = "MutationTypeOfGene";
|
4929
|
+
/** MutationTypeOfVariant */
|
4930
|
+
KnownRelationType["MutationTypeOfVariant"] = "MutationTypeOfVariant";
|
5461
4931
|
/** QualifierOfCondition */
|
5462
4932
|
KnownRelationType["QualifierOfCondition"] = "QualifierOfCondition";
|
5463
4933
|
/** RelationOfExamination */
|
5464
4934
|
KnownRelationType["RelationOfExamination"] = "RelationOfExamination";
|
5465
4935
|
/** RouteOfMedication */
|
5466
4936
|
KnownRelationType["RouteOfMedication"] = "RouteOfMedication";
|
4937
|
+
/** ScaleOfCondition */
|
4938
|
+
KnownRelationType["ScaleOfCondition"] = "ScaleOfCondition";
|
5467
4939
|
/** TimeOfCondition */
|
5468
4940
|
KnownRelationType["TimeOfCondition"] = "TimeOfCondition";
|
5469
4941
|
/** TimeOfEvent */
|
@@ -5482,365 +4954,9 @@ exports.KnownRelationType = void 0;
|
|
5482
4954
|
KnownRelationType["ValueOfCondition"] = "ValueOfCondition";
|
5483
4955
|
/** ValueOfExamination */
|
5484
4956
|
KnownRelationType["ValueOfExamination"] = "ValueOfExamination";
|
4957
|
+
/** VariantOfGene */
|
4958
|
+
KnownRelationType["VariantOfGene"] = "VariantOfGene";
|
5485
4959
|
})(exports.KnownRelationType || (exports.KnownRelationType = {}));
|
5486
|
-
/** Known values of {@link AgeUnit} that the service accepts. */
|
5487
|
-
exports.KnownAgeUnit = void 0;
|
5488
|
-
(function (KnownAgeUnit) {
|
5489
|
-
/** Unspecified */
|
5490
|
-
KnownAgeUnit["Unspecified"] = "Unspecified";
|
5491
|
-
/** Year */
|
5492
|
-
KnownAgeUnit["Year"] = "Year";
|
5493
|
-
/** Month */
|
5494
|
-
KnownAgeUnit["Month"] = "Month";
|
5495
|
-
/** Week */
|
5496
|
-
KnownAgeUnit["Week"] = "Week";
|
5497
|
-
/** Day */
|
5498
|
-
KnownAgeUnit["Day"] = "Day";
|
5499
|
-
})(exports.KnownAgeUnit || (exports.KnownAgeUnit = {}));
|
5500
|
-
/** Known values of {@link VolumeUnit} that the service accepts. */
|
5501
|
-
exports.KnownVolumeUnit = void 0;
|
5502
|
-
(function (KnownVolumeUnit) {
|
5503
|
-
/** Unspecified */
|
5504
|
-
KnownVolumeUnit["Unspecified"] = "Unspecified";
|
5505
|
-
/** CubicMeter */
|
5506
|
-
KnownVolumeUnit["CubicMeter"] = "CubicMeter";
|
5507
|
-
/** CubicCentimeter */
|
5508
|
-
KnownVolumeUnit["CubicCentimeter"] = "CubicCentimeter";
|
5509
|
-
/** CubicMillimeter */
|
5510
|
-
KnownVolumeUnit["CubicMillimeter"] = "CubicMillimeter";
|
5511
|
-
/** Hectoliter */
|
5512
|
-
KnownVolumeUnit["Hectoliter"] = "Hectoliter";
|
5513
|
-
/** Decaliter */
|
5514
|
-
KnownVolumeUnit["Decaliter"] = "Decaliter";
|
5515
|
-
/** Liter */
|
5516
|
-
KnownVolumeUnit["Liter"] = "Liter";
|
5517
|
-
/** Centiliter */
|
5518
|
-
KnownVolumeUnit["Centiliter"] = "Centiliter";
|
5519
|
-
/** Milliliter */
|
5520
|
-
KnownVolumeUnit["Milliliter"] = "Milliliter";
|
5521
|
-
/** CubicYard */
|
5522
|
-
KnownVolumeUnit["CubicYard"] = "CubicYard";
|
5523
|
-
/** CubicInch */
|
5524
|
-
KnownVolumeUnit["CubicInch"] = "CubicInch";
|
5525
|
-
/** CubicFoot */
|
5526
|
-
KnownVolumeUnit["CubicFoot"] = "CubicFoot";
|
5527
|
-
/** CubicMile */
|
5528
|
-
KnownVolumeUnit["CubicMile"] = "CubicMile";
|
5529
|
-
/** FluidOunce */
|
5530
|
-
KnownVolumeUnit["FluidOunce"] = "FluidOunce";
|
5531
|
-
/** Teaspoon */
|
5532
|
-
KnownVolumeUnit["Teaspoon"] = "Teaspoon";
|
5533
|
-
/** Tablespoon */
|
5534
|
-
KnownVolumeUnit["Tablespoon"] = "Tablespoon";
|
5535
|
-
/** Pint */
|
5536
|
-
KnownVolumeUnit["Pint"] = "Pint";
|
5537
|
-
/** Quart */
|
5538
|
-
KnownVolumeUnit["Quart"] = "Quart";
|
5539
|
-
/** Cup */
|
5540
|
-
KnownVolumeUnit["Cup"] = "Cup";
|
5541
|
-
/** Gill */
|
5542
|
-
KnownVolumeUnit["Gill"] = "Gill";
|
5543
|
-
/** Pinch */
|
5544
|
-
KnownVolumeUnit["Pinch"] = "Pinch";
|
5545
|
-
/** FluidDram */
|
5546
|
-
KnownVolumeUnit["FluidDram"] = "FluidDram";
|
5547
|
-
/** Barrel */
|
5548
|
-
KnownVolumeUnit["Barrel"] = "Barrel";
|
5549
|
-
/** Minim */
|
5550
|
-
KnownVolumeUnit["Minim"] = "Minim";
|
5551
|
-
/** Cord */
|
5552
|
-
KnownVolumeUnit["Cord"] = "Cord";
|
5553
|
-
/** Peck */
|
5554
|
-
KnownVolumeUnit["Peck"] = "Peck";
|
5555
|
-
/** Bushel */
|
5556
|
-
KnownVolumeUnit["Bushel"] = "Bushel";
|
5557
|
-
/** Hogshead */
|
5558
|
-
KnownVolumeUnit["Hogshead"] = "Hogshead";
|
5559
|
-
})(exports.KnownVolumeUnit || (exports.KnownVolumeUnit = {}));
|
5560
|
-
/** Known values of {@link SpeedUnit} that the service accepts. */
|
5561
|
-
exports.KnownSpeedUnit = void 0;
|
5562
|
-
(function (KnownSpeedUnit) {
|
5563
|
-
/** Unspecified */
|
5564
|
-
KnownSpeedUnit["Unspecified"] = "Unspecified";
|
5565
|
-
/** MeterPerSecond */
|
5566
|
-
KnownSpeedUnit["MeterPerSecond"] = "MeterPerSecond";
|
5567
|
-
/** KilometerPerHour */
|
5568
|
-
KnownSpeedUnit["KilometerPerHour"] = "KilometerPerHour";
|
5569
|
-
/** KilometerPerMinute */
|
5570
|
-
KnownSpeedUnit["KilometerPerMinute"] = "KilometerPerMinute";
|
5571
|
-
/** KilometerPerSecond */
|
5572
|
-
KnownSpeedUnit["KilometerPerSecond"] = "KilometerPerSecond";
|
5573
|
-
/** MilePerHour */
|
5574
|
-
KnownSpeedUnit["MilePerHour"] = "MilePerHour";
|
5575
|
-
/** Knot */
|
5576
|
-
KnownSpeedUnit["Knot"] = "Knot";
|
5577
|
-
/** FootPerSecond */
|
5578
|
-
KnownSpeedUnit["FootPerSecond"] = "FootPerSecond";
|
5579
|
-
/** FootPerMinute */
|
5580
|
-
KnownSpeedUnit["FootPerMinute"] = "FootPerMinute";
|
5581
|
-
/** YardPerMinute */
|
5582
|
-
KnownSpeedUnit["YardPerMinute"] = "YardPerMinute";
|
5583
|
-
/** YardPerSecond */
|
5584
|
-
KnownSpeedUnit["YardPerSecond"] = "YardPerSecond";
|
5585
|
-
/** MeterPerMillisecond */
|
5586
|
-
KnownSpeedUnit["MeterPerMillisecond"] = "MeterPerMillisecond";
|
5587
|
-
/** CentimeterPerMillisecond */
|
5588
|
-
KnownSpeedUnit["CentimeterPerMillisecond"] = "CentimeterPerMillisecond";
|
5589
|
-
/** KilometerPerMillisecond */
|
5590
|
-
KnownSpeedUnit["KilometerPerMillisecond"] = "KilometerPerMillisecond";
|
5591
|
-
})(exports.KnownSpeedUnit || (exports.KnownSpeedUnit = {}));
|
5592
|
-
/** Known values of {@link AreaUnit} that the service accepts. */
|
5593
|
-
exports.KnownAreaUnit = void 0;
|
5594
|
-
(function (KnownAreaUnit) {
|
5595
|
-
/** Unspecified */
|
5596
|
-
KnownAreaUnit["Unspecified"] = "Unspecified";
|
5597
|
-
/** SquareKilometer */
|
5598
|
-
KnownAreaUnit["SquareKilometer"] = "SquareKilometer";
|
5599
|
-
/** SquareHectometer */
|
5600
|
-
KnownAreaUnit["SquareHectometer"] = "SquareHectometer";
|
5601
|
-
/** SquareDecameter */
|
5602
|
-
KnownAreaUnit["SquareDecameter"] = "SquareDecameter";
|
5603
|
-
/** SquareDecimeter */
|
5604
|
-
KnownAreaUnit["SquareDecimeter"] = "SquareDecimeter";
|
5605
|
-
/** SquareMeter */
|
5606
|
-
KnownAreaUnit["SquareMeter"] = "SquareMeter";
|
5607
|
-
/** SquareCentimeter */
|
5608
|
-
KnownAreaUnit["SquareCentimeter"] = "SquareCentimeter";
|
5609
|
-
/** SquareMillimeter */
|
5610
|
-
KnownAreaUnit["SquareMillimeter"] = "SquareMillimeter";
|
5611
|
-
/** SquareInch */
|
5612
|
-
KnownAreaUnit["SquareInch"] = "SquareInch";
|
5613
|
-
/** SquareFoot */
|
5614
|
-
KnownAreaUnit["SquareFoot"] = "SquareFoot";
|
5615
|
-
/** SquareMile */
|
5616
|
-
KnownAreaUnit["SquareMile"] = "SquareMile";
|
5617
|
-
/** SquareYard */
|
5618
|
-
KnownAreaUnit["SquareYard"] = "SquareYard";
|
5619
|
-
/** Acre */
|
5620
|
-
KnownAreaUnit["Acre"] = "Acre";
|
5621
|
-
})(exports.KnownAreaUnit || (exports.KnownAreaUnit = {}));
|
5622
|
-
/** Known values of {@link LengthUnit} that the service accepts. */
|
5623
|
-
exports.KnownLengthUnit = void 0;
|
5624
|
-
(function (KnownLengthUnit) {
|
5625
|
-
/** Unspecified */
|
5626
|
-
KnownLengthUnit["Unspecified"] = "Unspecified";
|
5627
|
-
/** Kilometer */
|
5628
|
-
KnownLengthUnit["Kilometer"] = "Kilometer";
|
5629
|
-
/** Hectometer */
|
5630
|
-
KnownLengthUnit["Hectometer"] = "Hectometer";
|
5631
|
-
/** Decameter */
|
5632
|
-
KnownLengthUnit["Decameter"] = "Decameter";
|
5633
|
-
/** Meter */
|
5634
|
-
KnownLengthUnit["Meter"] = "Meter";
|
5635
|
-
/** Decimeter */
|
5636
|
-
KnownLengthUnit["Decimeter"] = "Decimeter";
|
5637
|
-
/** Centimeter */
|
5638
|
-
KnownLengthUnit["Centimeter"] = "Centimeter";
|
5639
|
-
/** Millimeter */
|
5640
|
-
KnownLengthUnit["Millimeter"] = "Millimeter";
|
5641
|
-
/** Micrometer */
|
5642
|
-
KnownLengthUnit["Micrometer"] = "Micrometer";
|
5643
|
-
/** Nanometer */
|
5644
|
-
KnownLengthUnit["Nanometer"] = "Nanometer";
|
5645
|
-
/** Picometer */
|
5646
|
-
KnownLengthUnit["Picometer"] = "Picometer";
|
5647
|
-
/** Mile */
|
5648
|
-
KnownLengthUnit["Mile"] = "Mile";
|
5649
|
-
/** Yard */
|
5650
|
-
KnownLengthUnit["Yard"] = "Yard";
|
5651
|
-
/** Inch */
|
5652
|
-
KnownLengthUnit["Inch"] = "Inch";
|
5653
|
-
/** Foot */
|
5654
|
-
KnownLengthUnit["Foot"] = "Foot";
|
5655
|
-
/** LightYear */
|
5656
|
-
KnownLengthUnit["LightYear"] = "LightYear";
|
5657
|
-
/** Pt */
|
5658
|
-
KnownLengthUnit["Pt"] = "Pt";
|
5659
|
-
})(exports.KnownLengthUnit || (exports.KnownLengthUnit = {}));
|
5660
|
-
/** Known values of {@link InformationUnit} that the service accepts. */
|
5661
|
-
exports.KnownInformationUnit = void 0;
|
5662
|
-
(function (KnownInformationUnit) {
|
5663
|
-
/** Unspecified */
|
5664
|
-
KnownInformationUnit["Unspecified"] = "Unspecified";
|
5665
|
-
/** Bit */
|
5666
|
-
KnownInformationUnit["Bit"] = "Bit";
|
5667
|
-
/** Kilobit */
|
5668
|
-
KnownInformationUnit["Kilobit"] = "Kilobit";
|
5669
|
-
/** Megabit */
|
5670
|
-
KnownInformationUnit["Megabit"] = "Megabit";
|
5671
|
-
/** Gigabit */
|
5672
|
-
KnownInformationUnit["Gigabit"] = "Gigabit";
|
5673
|
-
/** Terabit */
|
5674
|
-
KnownInformationUnit["Terabit"] = "Terabit";
|
5675
|
-
/** Petabit */
|
5676
|
-
KnownInformationUnit["Petabit"] = "Petabit";
|
5677
|
-
/** Byte */
|
5678
|
-
KnownInformationUnit["Byte"] = "Byte";
|
5679
|
-
/** Kilobyte */
|
5680
|
-
KnownInformationUnit["Kilobyte"] = "Kilobyte";
|
5681
|
-
/** Megabyte */
|
5682
|
-
KnownInformationUnit["Megabyte"] = "Megabyte";
|
5683
|
-
/** Gigabyte */
|
5684
|
-
KnownInformationUnit["Gigabyte"] = "Gigabyte";
|
5685
|
-
/** Terabyte */
|
5686
|
-
KnownInformationUnit["Terabyte"] = "Terabyte";
|
5687
|
-
/** Petabyte */
|
5688
|
-
KnownInformationUnit["Petabyte"] = "Petabyte";
|
5689
|
-
})(exports.KnownInformationUnit || (exports.KnownInformationUnit = {}));
|
5690
|
-
/** Known values of {@link TemperatureUnit} that the service accepts. */
|
5691
|
-
exports.KnownTemperatureUnit = void 0;
|
5692
|
-
(function (KnownTemperatureUnit) {
|
5693
|
-
/** Unspecified */
|
5694
|
-
KnownTemperatureUnit["Unspecified"] = "Unspecified";
|
5695
|
-
/** Fahrenheit */
|
5696
|
-
KnownTemperatureUnit["Fahrenheit"] = "Fahrenheit";
|
5697
|
-
/** Kelvin */
|
5698
|
-
KnownTemperatureUnit["Kelvin"] = "Kelvin";
|
5699
|
-
/** Rankine */
|
5700
|
-
KnownTemperatureUnit["Rankine"] = "Rankine";
|
5701
|
-
/** Celsius */
|
5702
|
-
KnownTemperatureUnit["Celsius"] = "Celsius";
|
5703
|
-
})(exports.KnownTemperatureUnit || (exports.KnownTemperatureUnit = {}));
|
5704
|
-
/** Known values of {@link WeightUnit} that the service accepts. */
|
5705
|
-
exports.KnownWeightUnit = void 0;
|
5706
|
-
(function (KnownWeightUnit) {
|
5707
|
-
/** Unspecified */
|
5708
|
-
KnownWeightUnit["Unspecified"] = "Unspecified";
|
5709
|
-
/** Kilogram */
|
5710
|
-
KnownWeightUnit["Kilogram"] = "Kilogram";
|
5711
|
-
/** Gram */
|
5712
|
-
KnownWeightUnit["Gram"] = "Gram";
|
5713
|
-
/** Milligram */
|
5714
|
-
KnownWeightUnit["Milligram"] = "Milligram";
|
5715
|
-
/** Gallon */
|
5716
|
-
KnownWeightUnit["Gallon"] = "Gallon";
|
5717
|
-
/** MetricTon */
|
5718
|
-
KnownWeightUnit["MetricTon"] = "MetricTon";
|
5719
|
-
/** Ton */
|
5720
|
-
KnownWeightUnit["Ton"] = "Ton";
|
5721
|
-
/** Pound */
|
5722
|
-
KnownWeightUnit["Pound"] = "Pound";
|
5723
|
-
/** Ounce */
|
5724
|
-
KnownWeightUnit["Ounce"] = "Ounce";
|
5725
|
-
/** Grain */
|
5726
|
-
KnownWeightUnit["Grain"] = "Grain";
|
5727
|
-
/** PennyWeight */
|
5728
|
-
KnownWeightUnit["PennyWeight"] = "PennyWeight";
|
5729
|
-
/** LongTonBritish */
|
5730
|
-
KnownWeightUnit["LongTonBritish"] = "LongTonBritish";
|
5731
|
-
/** ShortTonUS */
|
5732
|
-
KnownWeightUnit["ShortTonUS"] = "ShortTonUS";
|
5733
|
-
/** ShortHundredWeightUS */
|
5734
|
-
KnownWeightUnit["ShortHundredWeightUS"] = "ShortHundredWeightUS";
|
5735
|
-
/** Stone */
|
5736
|
-
KnownWeightUnit["Stone"] = "Stone";
|
5737
|
-
/** Dram */
|
5738
|
-
KnownWeightUnit["Dram"] = "Dram";
|
5739
|
-
})(exports.KnownWeightUnit || (exports.KnownWeightUnit = {}));
|
5740
|
-
/** Known values of {@link DateTimeSubKind} that the service accepts. */
|
5741
|
-
exports.KnownDateTimeSubKind = void 0;
|
5742
|
-
(function (KnownDateTimeSubKind) {
|
5743
|
-
/** Time */
|
5744
|
-
KnownDateTimeSubKind["Time"] = "Time";
|
5745
|
-
/** Date */
|
5746
|
-
KnownDateTimeSubKind["Date"] = "Date";
|
5747
|
-
/** DateTime */
|
5748
|
-
KnownDateTimeSubKind["DateTime"] = "DateTime";
|
5749
|
-
/** Duration */
|
5750
|
-
KnownDateTimeSubKind["Duration"] = "Duration";
|
5751
|
-
/** Set */
|
5752
|
-
KnownDateTimeSubKind["Set"] = "Set";
|
5753
|
-
})(exports.KnownDateTimeSubKind || (exports.KnownDateTimeSubKind = {}));
|
5754
|
-
/** Known values of {@link TemporalModifier} that the service accepts. */
|
5755
|
-
exports.KnownTemporalModifier = void 0;
|
5756
|
-
(function (KnownTemporalModifier) {
|
5757
|
-
/** AfterApprox */
|
5758
|
-
KnownTemporalModifier["AfterApprox"] = "AfterApprox";
|
5759
|
-
/** Before */
|
5760
|
-
KnownTemporalModifier["Before"] = "Before";
|
5761
|
-
/** BeforeStart */
|
5762
|
-
KnownTemporalModifier["BeforeStart"] = "BeforeStart";
|
5763
|
-
/** Approx */
|
5764
|
-
KnownTemporalModifier["Approx"] = "Approx";
|
5765
|
-
/** ReferenceUndefined */
|
5766
|
-
KnownTemporalModifier["ReferenceUndefined"] = "ReferenceUndefined";
|
5767
|
-
/** SinceEnd */
|
5768
|
-
KnownTemporalModifier["SinceEnd"] = "SinceEnd";
|
5769
|
-
/** AfterMid */
|
5770
|
-
KnownTemporalModifier["AfterMid"] = "AfterMid";
|
5771
|
-
/** Start */
|
5772
|
-
KnownTemporalModifier["Start"] = "Start";
|
5773
|
-
/** After */
|
5774
|
-
KnownTemporalModifier["After"] = "After";
|
5775
|
-
/** BeforeEnd */
|
5776
|
-
KnownTemporalModifier["BeforeEnd"] = "BeforeEnd";
|
5777
|
-
/** Until */
|
5778
|
-
KnownTemporalModifier["Until"] = "Until";
|
5779
|
-
/** End */
|
5780
|
-
KnownTemporalModifier["End"] = "End";
|
5781
|
-
/** Less */
|
5782
|
-
KnownTemporalModifier["Less"] = "Less";
|
5783
|
-
/** Since */
|
5784
|
-
KnownTemporalModifier["Since"] = "Since";
|
5785
|
-
/** AfterStart */
|
5786
|
-
KnownTemporalModifier["AfterStart"] = "AfterStart";
|
5787
|
-
/** BeforeApprox */
|
5788
|
-
KnownTemporalModifier["BeforeApprox"] = "BeforeApprox";
|
5789
|
-
/** Mid */
|
5790
|
-
KnownTemporalModifier["Mid"] = "Mid";
|
5791
|
-
/** More */
|
5792
|
-
KnownTemporalModifier["More"] = "More";
|
5793
|
-
})(exports.KnownTemporalModifier || (exports.KnownTemporalModifier = {}));
|
5794
|
-
/** Known values of {@link NumberKind} that the service accepts. */
|
5795
|
-
exports.KnownNumberKind = void 0;
|
5796
|
-
(function (KnownNumberKind) {
|
5797
|
-
/** Integer */
|
5798
|
-
KnownNumberKind["Integer"] = "Integer";
|
5799
|
-
/** Decimal */
|
5800
|
-
KnownNumberKind["Decimal"] = "Decimal";
|
5801
|
-
/** Power */
|
5802
|
-
KnownNumberKind["Power"] = "Power";
|
5803
|
-
/** Fraction */
|
5804
|
-
KnownNumberKind["Fraction"] = "Fraction";
|
5805
|
-
/** Percent */
|
5806
|
-
KnownNumberKind["Percent"] = "Percent";
|
5807
|
-
/** Unspecified */
|
5808
|
-
KnownNumberKind["Unspecified"] = "Unspecified";
|
5809
|
-
})(exports.KnownNumberKind || (exports.KnownNumberKind = {}));
|
5810
|
-
/** Known values of {@link RelativeTo} that the service accepts. */
|
5811
|
-
exports.KnownRelativeTo = void 0;
|
5812
|
-
(function (KnownRelativeTo) {
|
5813
|
-
/** Current */
|
5814
|
-
KnownRelativeTo["Current"] = "Current";
|
5815
|
-
/** End */
|
5816
|
-
KnownRelativeTo["End"] = "End";
|
5817
|
-
/** Start */
|
5818
|
-
KnownRelativeTo["Start"] = "Start";
|
5819
|
-
})(exports.KnownRelativeTo || (exports.KnownRelativeTo = {}));
|
5820
|
-
/** Known values of {@link RangeKind} that the service accepts. */
|
5821
|
-
exports.KnownRangeKind = void 0;
|
5822
|
-
(function (KnownRangeKind) {
|
5823
|
-
/** Number */
|
5824
|
-
KnownRangeKind["Number"] = "Number";
|
5825
|
-
/** Speed */
|
5826
|
-
KnownRangeKind["Speed"] = "Speed";
|
5827
|
-
/** Weight */
|
5828
|
-
KnownRangeKind["Weight"] = "Weight";
|
5829
|
-
/** Length */
|
5830
|
-
KnownRangeKind["Length"] = "Length";
|
5831
|
-
/** Volume */
|
5832
|
-
KnownRangeKind["Volume"] = "Volume";
|
5833
|
-
/** Area */
|
5834
|
-
KnownRangeKind["Area"] = "Area";
|
5835
|
-
/** Age */
|
5836
|
-
KnownRangeKind["Age"] = "Age";
|
5837
|
-
/** Information */
|
5838
|
-
KnownRangeKind["Information"] = "Information";
|
5839
|
-
/** Temperature */
|
5840
|
-
KnownRangeKind["Temperature"] = "Temperature";
|
5841
|
-
/** Currency */
|
5842
|
-
KnownRangeKind["Currency"] = "Currency";
|
5843
|
-
})(exports.KnownRangeKind || (exports.KnownRangeKind = {}));
|
5844
4960
|
/** Known values of {@link ExtractiveSummarizationOrderingCriteria} that the service accepts. */
|
5845
4961
|
exports.KnownExtractiveSummarizationOrderingCriteria = void 0;
|
5846
4962
|
(function (KnownExtractiveSummarizationOrderingCriteria) {
|
@@ -5861,7 +4977,6 @@ const AnalyzeActionNames = {
|
|
5861
4977
|
PiiEntityRecognition: "PiiEntityRecognition",
|
5862
4978
|
LanguageDetection: "LanguageDetection",
|
5863
4979
|
SentimentAnalysis: "SentimentAnalysis",
|
5864
|
-
DynamicClassification: "DynamicClassification",
|
5865
4980
|
};
|
5866
4981
|
/**
|
5867
4982
|
* Type of actions supported by the {@link TextAnalysisClient.beginAnalyzeBatch} method.
|
@@ -5879,14 +4994,6 @@ const AnalyzeBatchActionNames = {
|
|
5879
4994
|
CustomSingleLabelClassification: "CustomSingleLabelClassification",
|
5880
4995
|
CustomMultiLabelClassification: "CustomMultiLabelClassification",
|
5881
4996
|
};
|
5882
|
-
/**
|
5883
|
-
* Known values of the {@link HealthcareAction.fhirVersion} parameter.
|
5884
|
-
*/
|
5885
|
-
exports.KnownFhirVersion = void 0;
|
5886
|
-
(function (KnownFhirVersion) {
|
5887
|
-
/** 4.0.1 */
|
5888
|
-
KnownFhirVersion["4.0.1"] = "4.0.1";
|
5889
|
-
})(exports.KnownFhirVersion || (exports.KnownFhirVersion = {}));
|
5890
4997
|
/**
|
5891
4998
|
* Enum of possible error codes of a {@link TextAnalysisError}.
|
5892
4999
|
*/
|