@azure/ai-language-text 1.1.0-alpha.20221101.3 → 1.1.0-alpha.20221104.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +131 -150
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +0 -17
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +13 -13
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +98 -114
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/textAnalysisClient.js.map +1 -1
- package/dist-esm/src/transforms.js +16 -2
- package/dist-esm/src/transforms.js.map +1 -1
- package/package.json +1 -1
- package/types/ai-language-text.d.ts +52 -55
@@ -27,8 +27,6 @@ export declare interface AbstractiveSummarizationAction {
|
|
27
27
|
* The default is the JavaScript's default which is "Utf16CodeUnit".
|
28
28
|
*/
|
29
29
|
stringIndexType?: StringIndexType;
|
30
|
-
/** Control the phrases to be used in the summary. */
|
31
|
-
phraseControls?: PhraseControl[];
|
32
30
|
}
|
33
31
|
|
34
32
|
/** Options for an abstractive summarization batch action. */
|
@@ -356,11 +354,11 @@ export declare interface BatchActionState<Kind extends AnalyzeBatchActionName> {
|
|
356
354
|
/**
|
357
355
|
* The state of a succeeded batched action.
|
358
356
|
*/
|
359
|
-
export declare interface BatchActionSuccessResult<T
|
357
|
+
export declare interface BatchActionSuccessResult<T, Kind extends AnalyzeBatchActionName> extends BatchActionState<Kind> {
|
360
358
|
/**
|
361
359
|
* The list of document results.
|
362
360
|
*/
|
363
|
-
readonly results: T[];
|
361
|
+
readonly results: WithDetectedLanguage<T>[];
|
364
362
|
/**
|
365
363
|
* When this action was completed by the service.
|
366
364
|
*/
|
@@ -606,23 +604,6 @@ export declare interface DocumentDetectedLanguage {
|
|
606
604
|
/** Defines values for DocumentSentimentLabel. */
|
607
605
|
export declare type DocumentSentimentLabel = "positive" | "neutral" | "negative" | "mixed";
|
608
606
|
|
609
|
-
/**
|
610
|
-
* Defines values for DocumentType. \
|
611
|
-
* {@link KnownDocumentType} can be used interchangeably with DocumentType,
|
612
|
-
* this enum contains the known values that the service supports.
|
613
|
-
* ### Known values supported by the service
|
614
|
-
* **None** \
|
615
|
-
* **ClinicalTrial** \
|
616
|
-
* **DischargeSummary** \
|
617
|
-
* **ProgressNote** \
|
618
|
-
* **HistoryAndPhysical** \
|
619
|
-
* **Consult** \
|
620
|
-
* **Imaging** \
|
621
|
-
* **Pathology** \
|
622
|
-
* **ProcedureNote**
|
623
|
-
*/
|
624
|
-
export declare type DocumentType = string;
|
625
|
-
|
626
607
|
/** Represents a warning encountered while processing a document. */
|
627
608
|
export declare interface DocumentWarning {
|
628
609
|
/** Error code. */
|
@@ -859,7 +840,7 @@ export declare interface HealthcareAction extends ActionPrebuilt {
|
|
859
840
|
/** The FHIR Spec version that the result will use to format the fhirBundle. For additional information see https://www.hl7.org/fhir/overview.html. */
|
860
841
|
fhirVersion?: FhirVersion;
|
861
842
|
/** Document type that can be provided as input for Fhir Documents. Expect to have fhirVersion provided when used. Behavior of using None enum is the same as not using the documentType parameter. */
|
862
|
-
documentType?:
|
843
|
+
documentType?: HealthcareDocumentType;
|
863
844
|
/**
|
864
845
|
* Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
|
865
846
|
*
|
@@ -891,6 +872,23 @@ export declare interface HealthcareBatchAction extends AnalyzeBatchActionCommon,
|
|
891
872
|
*/
|
892
873
|
export declare type HealthcareBatchResult = ActionMetadata & BatchActionResult<HealthcareResult, "Healthcare">;
|
893
874
|
|
875
|
+
/**
|
876
|
+
* Defines values for HealthcareDocumentType. \
|
877
|
+
* {@link KnownHealthcareDocumentType} can be used interchangeably with HealthcareDocumentType,
|
878
|
+
* this enum contains the known values that the service supports.
|
879
|
+
* ### Known values supported by the service
|
880
|
+
* **None** \
|
881
|
+
* **ClinicalTrial** \
|
882
|
+
* **DischargeSummary** \
|
883
|
+
* **ProgressNote** \
|
884
|
+
* **HistoryAndPhysical** \
|
885
|
+
* **Consult** \
|
886
|
+
* **Imaging** \
|
887
|
+
* **Pathology** \
|
888
|
+
* **ProcedureNote**
|
889
|
+
*/
|
890
|
+
export declare type HealthcareDocumentType = string;
|
891
|
+
|
894
892
|
/**
|
895
893
|
* A healthcare entity represented as a node in a directed graph where the edges are
|
896
894
|
* a particular type of relationship between the source and target nodes.
|
@@ -1177,28 +1175,6 @@ export declare enum KnownDateTimeSubKind {
|
|
1177
1175
|
Set = "Set"
|
1178
1176
|
}
|
1179
1177
|
|
1180
|
-
/** Known values of {@link DocumentType} that the service accepts. */
|
1181
|
-
export declare enum KnownDocumentType {
|
1182
|
-
/** None */
|
1183
|
-
None = "None",
|
1184
|
-
/** ClinicalTrial */
|
1185
|
-
ClinicalTrial = "ClinicalTrial",
|
1186
|
-
/** DischargeSummary */
|
1187
|
-
DischargeSummary = "DischargeSummary",
|
1188
|
-
/** ProgressNote */
|
1189
|
-
ProgressNote = "ProgressNote",
|
1190
|
-
/** HistoryAndPhysical */
|
1191
|
-
HistoryAndPhysical = "HistoryAndPhysical",
|
1192
|
-
/** Consult */
|
1193
|
-
Consult = "Consult",
|
1194
|
-
/** Imaging */
|
1195
|
-
Imaging = "Imaging",
|
1196
|
-
/** Pathology */
|
1197
|
-
Pathology = "Pathology",
|
1198
|
-
/** ProcedureNote */
|
1199
|
-
ProcedureNote = "ProcedureNote"
|
1200
|
-
}
|
1201
|
-
|
1202
1178
|
/** Known values of {@link ErrorCode} that the service accepts. */
|
1203
1179
|
export declare enum KnownErrorCode {
|
1204
1180
|
/** InvalidRequest */
|
@@ -1255,6 +1231,28 @@ export declare enum KnownFhirVersion {
|
|
1255
1231
|
"4.0.1" = "4.0.1"
|
1256
1232
|
}
|
1257
1233
|
|
1234
|
+
/** Known values of {@link HealthcareDocumentType} that the service accepts. */
|
1235
|
+
export declare enum KnownHealthcareDocumentType {
|
1236
|
+
/** None */
|
1237
|
+
None = "None",
|
1238
|
+
/** ClinicalTrial */
|
1239
|
+
ClinicalTrial = "ClinicalTrial",
|
1240
|
+
/** DischargeSummary */
|
1241
|
+
DischargeSummary = "DischargeSummary",
|
1242
|
+
/** ProgressNote */
|
1243
|
+
ProgressNote = "ProgressNote",
|
1244
|
+
/** HistoryAndPhysical */
|
1245
|
+
HistoryAndPhysical = "HistoryAndPhysical",
|
1246
|
+
/** Consult */
|
1247
|
+
Consult = "Consult",
|
1248
|
+
/** Imaging */
|
1249
|
+
Imaging = "Imaging",
|
1250
|
+
/** Pathology */
|
1251
|
+
Pathology = "Pathology",
|
1252
|
+
/** ProcedureNote */
|
1253
|
+
ProcedureNote = "ProcedureNote"
|
1254
|
+
}
|
1255
|
+
|
1258
1256
|
/** Known values of {@link HealthcareEntityCategory} that the service accepts. */
|
1259
1257
|
export declare enum KnownHealthcareEntityCategory {
|
1260
1258
|
/** BodyStructure */
|
@@ -2299,17 +2297,6 @@ export declare interface OrdinalResolution extends BaseResolution {
|
|
2299
2297
|
*/
|
2300
2298
|
export declare type PagedAnalyzeBatchResult = PagedAsyncIterableIterator<AnalyzeBatchResult>;
|
2301
2299
|
|
2302
|
-
/** Control the phrases to be used in the summary. */
|
2303
|
-
export declare interface PhraseControl {
|
2304
|
-
/** The target phrase to control. */
|
2305
|
-
targetPhrase: string;
|
2306
|
-
/** The strategy to use in phrase control. */
|
2307
|
-
strategy: PhraseControlStrategy;
|
2308
|
-
}
|
2309
|
-
|
2310
|
-
/** Defines values for PhraseControlStrategy. */
|
2311
|
-
export declare type PhraseControlStrategy = "encourage" | "discourage" | "disallow";
|
2312
|
-
|
2313
2300
|
/**
|
2314
2301
|
* Defines values for PiiEntityCategory. \
|
2315
2302
|
* {@link KnownPiiEntityCategory} can be used interchangeably with PiiEntityCategory,
|
@@ -2917,6 +2904,8 @@ export declare interface TemporalSpanResolution extends BaseResolution {
|
|
2917
2904
|
duration?: string;
|
2918
2905
|
/** An optional modifier of a date/time instance. */
|
2919
2906
|
modifier?: TemporalModifier;
|
2907
|
+
/** An optional triplet containing the beginning, the end, and the duration all stated as ISO 8601 formatted strings. */
|
2908
|
+
timex?: string;
|
2920
2909
|
}
|
2921
2910
|
|
2922
2911
|
/**
|
@@ -3606,4 +3595,12 @@ export declare interface WeightResolution extends BaseResolution, QuantityResolu
|
|
3606
3595
|
*/
|
3607
3596
|
export declare type WeightUnit = string;
|
3608
3597
|
|
3598
|
+
/**
|
3599
|
+
* Document results with potentially automatically detected language.
|
3600
|
+
*/
|
3601
|
+
export declare type WithDetectedLanguage<T> = T & DocumentDetectedLanguage & {
|
3602
|
+
/** Indicates whether the default language hint was used */
|
3603
|
+
isLanguageDefaulted?: boolean;
|
3604
|
+
};
|
3605
|
+
|
3609
3606
|
export { }
|