oci-aidocument 2.49.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/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/aiservicedocument-waiter.d.ts +29 -0
- package/lib/aiservicedocument-waiter.js +45 -0
- package/lib/aiservicedocument-waiter.js.map +1 -0
- package/lib/client.d.ts +102 -0
- package/lib/client.js +341 -0
- package/lib/client.js.map +1 -0
- package/lib/model/analyze-document-result.d.ts +63 -0
- package/lib/model/analyze-document-result.js +97 -0
- package/lib/model/analyze-document-result.js.map +1 -0
- package/lib/model/bounding-polygon.d.ts +28 -0
- package/lib/model/bounding-polygon.js +61 -0
- package/lib/model/bounding-polygon.js.map +1 -0
- package/lib/model/cell.d.ts +43 -0
- package/lib/model/cell.js +57 -0
- package/lib/model/cell.js.map +1 -0
- package/lib/model/create-processor-job-details.d.ts +33 -0
- package/lib/model/create-processor-job-details.js +69 -0
- package/lib/model/create-processor-job-details.js.map +1 -0
- package/lib/model/detected-document-type.d.ts +29 -0
- package/lib/model/detected-document-type.js +29 -0
- package/lib/model/detected-document-type.js.map +1 -0
- package/lib/model/detected-language.d.ts +29 -0
- package/lib/model/detected-language.js +29 -0
- package/lib/model/detected-language.js.map +1 -0
- package/lib/model/dimensions.d.ts +42 -0
- package/lib/model/dimensions.js +39 -0
- package/lib/model/dimensions.js.map +1 -0
- package/lib/model/document-classification-feature.d.ts +28 -0
- package/lib/model/document-classification-feature.js +54 -0
- package/lib/model/document-classification-feature.js.map +1 -0
- package/lib/model/document-feature.d.ts +22 -0
- package/lib/model/document-feature.js +84 -0
- package/lib/model/document-feature.js.map +1 -0
- package/lib/model/document-field.d.ts +40 -0
- package/lib/model/document-field.js +75 -0
- package/lib/model/document-field.js.map +1 -0
- package/lib/model/document-key-value-extraction-feature.d.ts +24 -0
- package/lib/model/document-key-value-extraction-feature.js +54 -0
- package/lib/model/document-key-value-extraction-feature.js.map +1 -0
- package/lib/model/document-language-classification-feature.d.ts +28 -0
- package/lib/model/document-language-classification-feature.js +54 -0
- package/lib/model/document-language-classification-feature.js.map +1 -0
- package/lib/model/document-metadata.d.ts +29 -0
- package/lib/model/document-metadata.js +29 -0
- package/lib/model/document-metadata.js.map +1 -0
- package/lib/model/document-table-extraction-feature.d.ts +24 -0
- package/lib/model/document-table-extraction-feature.js +54 -0
- package/lib/model/document-table-extraction-feature.js.map +1 -0
- package/lib/model/document-text-extraction-feature.d.ts +28 -0
- package/lib/model/document-text-extraction-feature.js +54 -0
- package/lib/model/document-text-extraction-feature.js.map +1 -0
- package/lib/model/document-type.d.ts +36 -0
- package/lib/model/document-type.js +47 -0
- package/lib/model/document-type.js.map +1 -0
- package/lib/model/field-label.d.ts +29 -0
- package/lib/model/field-label.js +29 -0
- package/lib/model/field-label.js.map +1 -0
- package/lib/model/field-name.d.ts +35 -0
- package/lib/model/field-name.js +57 -0
- package/lib/model/field-name.js.map +1 -0
- package/lib/model/field-value.d.ts +36 -0
- package/lib/model/field-value.js +100 -0
- package/lib/model/field-value.js.map +1 -0
- package/lib/model/general-processor-config.d.ts +40 -0
- package/lib/model/general-processor-config.js +66 -0
- package/lib/model/general-processor-config.js.map +1 -0
- package/lib/model/index.d.ts +96 -0
- package/lib/model/index.js +119 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/inline-document-content.d.ts +28 -0
- package/lib/model/inline-document-content.js +52 -0
- package/lib/model/inline-document-content.js.map +1 -0
- package/lib/model/input-location.d.ts +22 -0
- package/lib/model/input-location.js +72 -0
- package/lib/model/input-location.js.map +1 -0
- package/lib/model/line.d.ts +35 -0
- package/lib/model/line.js +57 -0
- package/lib/model/line.js.map +1 -0
- package/lib/model/normalized-vertex.d.ts +32 -0
- package/lib/model/normalized-vertex.js +29 -0
- package/lib/model/normalized-vertex.js.map +1 -0
- package/lib/model/object-location.d.ts +33 -0
- package/lib/model/object-location.js +29 -0
- package/lib/model/object-location.js.map +1 -0
- package/lib/model/object-storage-locations.d.ts +28 -0
- package/lib/model/object-storage-locations.js +64 -0
- package/lib/model/object-storage-locations.js.map +1 -0
- package/lib/model/output-location.d.ts +33 -0
- package/lib/model/output-location.js +29 -0
- package/lib/model/output-location.js.map +1 -0
- package/lib/model/page.d.ts +51 -0
- package/lib/model/page.js +115 -0
- package/lib/model/page.js.map +1 -0
- package/lib/model/processing-error.d.ts +29 -0
- package/lib/model/processing-error.js +29 -0
- package/lib/model/processing-error.js.map +1 -0
- package/lib/model/processor-config.d.ts +22 -0
- package/lib/model/processor-config.js +68 -0
- package/lib/model/processor-config.js.map +1 -0
- package/lib/model/processor-job.d.ts +83 -0
- package/lib/model/processor-job.js +93 -0
- package/lib/model/processor-job.js.map +1 -0
- package/lib/model/processor-type.d.ts +27 -0
- package/lib/model/processor-type.js +38 -0
- package/lib/model/processor-type.js.map +1 -0
- package/lib/model/table-row.d.ts +26 -0
- package/lib/model/table-row.js +61 -0
- package/lib/model/table-row.js.map +1 -0
- package/lib/model/table.d.ts +47 -0
- package/lib/model/table.js +87 -0
- package/lib/model/table.js.map +1 -0
- package/lib/model/value-array.d.ts +25 -0
- package/lib/model/value-array.js +62 -0
- package/lib/model/value-array.js.map +1 -0
- package/lib/model/value-date.d.ts +28 -0
- package/lib/model/value-date.js +50 -0
- package/lib/model/value-date.js.map +1 -0
- package/lib/model/value-integer.d.ts +28 -0
- package/lib/model/value-integer.js +50 -0
- package/lib/model/value-integer.js.map +1 -0
- package/lib/model/value-number.d.ts +28 -0
- package/lib/model/value-number.js +50 -0
- package/lib/model/value-number.js.map +1 -0
- package/lib/model/value-phone-number.d.ts +28 -0
- package/lib/model/value-phone-number.js +52 -0
- package/lib/model/value-phone-number.js.map +1 -0
- package/lib/model/value-string.d.ts +28 -0
- package/lib/model/value-string.js +50 -0
- package/lib/model/value-string.js.map +1 -0
- package/lib/model/value-time.d.ts +28 -0
- package/lib/model/value-time.js +50 -0
- package/lib/model/value-time.js.map +1 -0
- package/lib/model/word.d.ts +31 -0
- package/lib/model/word.js +57 -0
- package/lib/model/word.js.map +1 -0
- package/lib/request/cancel-processor-job-request.d.ts +35 -0
- package/lib/request/cancel-processor-job-request.js +15 -0
- package/lib/request/cancel-processor-job-request.js.map +1 -0
- package/lib/request/create-processor-job-request.d.ts +36 -0
- package/lib/request/create-processor-job-request.js +15 -0
- package/lib/request/create-processor-job-request.js.map +1 -0
- package/lib/request/get-processor-job-request.d.ts +26 -0
- package/lib/request/get-processor-job-request.js +15 -0
- package/lib/request/get-processor-job-request.js.map +1 -0
- package/lib/request/index.d.ts +18 -0
- package/lib/request/index.js +15 -0
- package/lib/request/index.js.map +1 -0
- package/lib/response/cancel-processor-job-response.d.ts +20 -0
- package/lib/response/cancel-processor-job-response.js +15 -0
- package/lib/response/cancel-processor-job-response.js.map +1 -0
- package/lib/response/create-processor-job-response.d.ts +30 -0
- package/lib/response/create-processor-job-response.js +15 -0
- package/lib/response/create-processor-job-response.js.map +1 -0
- package/lib/response/get-processor-job-response.d.ts +30 -0
- package/lib/response/get-processor-job-response.js +15 -0
- package/lib/response/get-processor-job-response.js.map +1 -0
- package/lib/response/index.d.ts +18 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/package.json +29 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.DocumentFeature = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
const common = require("oci-common");
|
|
37
|
+
var DocumentFeature;
|
|
38
|
+
(function (DocumentFeature) {
|
|
39
|
+
function getJsonObj(obj) {
|
|
40
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
41
|
+
if (obj && "featureType" in obj && obj.featureType) {
|
|
42
|
+
switch (obj.featureType) {
|
|
43
|
+
case "DOCUMENT_CLASSIFICATION":
|
|
44
|
+
return model.DocumentClassificationFeature.getJsonObj(jsonObj, true);
|
|
45
|
+
case "KEY_VALUE_EXTRACTION":
|
|
46
|
+
return model.DocumentKeyValueExtractionFeature.getJsonObj(jsonObj, true);
|
|
47
|
+
case "LANGUAGE_CLASSIFICATION":
|
|
48
|
+
return model.DocumentLanguageClassificationFeature.getJsonObj(jsonObj, true);
|
|
49
|
+
case "TEXT_EXTRACTION":
|
|
50
|
+
return model.DocumentTextExtractionFeature.getJsonObj(jsonObj, true);
|
|
51
|
+
case "TABLE_EXTRACTION":
|
|
52
|
+
return model.DocumentTableExtractionFeature.getJsonObj(jsonObj, true);
|
|
53
|
+
default:
|
|
54
|
+
if (common.LOG.logger)
|
|
55
|
+
common.LOG.logger.info(`Unknown value for: ${obj.featureType}`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return jsonObj;
|
|
59
|
+
}
|
|
60
|
+
DocumentFeature.getJsonObj = getJsonObj;
|
|
61
|
+
function getDeserializedJsonObj(obj) {
|
|
62
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
63
|
+
if (obj && "featureType" in obj && obj.featureType) {
|
|
64
|
+
switch (obj.featureType) {
|
|
65
|
+
case "DOCUMENT_CLASSIFICATION":
|
|
66
|
+
return model.DocumentClassificationFeature.getDeserializedJsonObj(jsonObj, true);
|
|
67
|
+
case "KEY_VALUE_EXTRACTION":
|
|
68
|
+
return model.DocumentKeyValueExtractionFeature.getDeserializedJsonObj(jsonObj, true);
|
|
69
|
+
case "LANGUAGE_CLASSIFICATION":
|
|
70
|
+
return model.DocumentLanguageClassificationFeature.getDeserializedJsonObj(jsonObj, true);
|
|
71
|
+
case "TEXT_EXTRACTION":
|
|
72
|
+
return model.DocumentTextExtractionFeature.getDeserializedJsonObj(jsonObj, true);
|
|
73
|
+
case "TABLE_EXTRACTION":
|
|
74
|
+
return model.DocumentTableExtractionFeature.getDeserializedJsonObj(jsonObj, true);
|
|
75
|
+
default:
|
|
76
|
+
if (common.LOG.logger)
|
|
77
|
+
common.LOG.logger.info(`Unknown value for: ${obj.featureType}`);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return jsonObj;
|
|
81
|
+
}
|
|
82
|
+
DocumentFeature.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
83
|
+
})(DocumentFeature = exports.DocumentFeature || (exports.DocumentFeature = {}));
|
|
84
|
+
//# sourceMappingURL=document-feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-feature.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,eAAe,CAyE/B;AAzED,WAAiB,eAAe;IAC9B,SAAgB,UAAU,CAAC,GAAoB;QAC7C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,aAAa,IAAI,GAAG,IAAI,GAAG,CAAC,WAAW,EAAE;YAClD,QAAQ,GAAG,CAAC,WAAW,EAAE;gBACvB,KAAK,yBAAyB;oBAC5B,OAAO,KAAK,CAAC,6BAA6B,CAAC,UAAU,CACL,OAAQ,EACtD,IAAI,CACL,CAAC;gBACJ,KAAK,sBAAsB;oBACzB,OAAO,KAAK,CAAC,iCAAiC,CAAC,UAAU,CACL,OAAQ,EAC1D,IAAI,CACL,CAAC;gBACJ,KAAK,yBAAyB;oBAC5B,OAAO,KAAK,CAAC,qCAAqC,CAAC,UAAU,CACL,OAAQ,EAC9D,IAAI,CACL,CAAC;gBACJ,KAAK,iBAAiB;oBACpB,OAAO,KAAK,CAAC,6BAA6B,CAAC,UAAU,CACL,OAAQ,EACtD,IAAI,CACL,CAAC;gBACJ,KAAK,kBAAkB;oBACrB,OAAO,KAAK,CAAC,8BAA8B,CAAC,UAAU,CACL,OAAQ,EACvD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;aAC1F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAnCe,0BAAU,aAmCzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAoB;QACzD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,aAAa,IAAI,GAAG,IAAI,GAAG,CAAC,WAAW,EAAE;YAClD,QAAQ,GAAG,CAAC,WAAW,EAAE;gBACvB,KAAK,yBAAyB;oBAC5B,OAAO,KAAK,CAAC,6BAA6B,CAAC,sBAAsB,CACjB,OAAQ,EACtD,IAAI,CACL,CAAC;gBACJ,KAAK,sBAAsB;oBACzB,OAAO,KAAK,CAAC,iCAAiC,CAAC,sBAAsB,CACjB,OAAQ,EAC1D,IAAI,CACL,CAAC;gBACJ,KAAK,yBAAyB;oBAC5B,OAAO,KAAK,CAAC,qCAAqC,CAAC,sBAAsB,CACjB,OAAQ,EAC9D,IAAI,CACL,CAAC;gBACJ,KAAK,iBAAiB;oBACpB,OAAO,KAAK,CAAC,6BAA6B,CAAC,sBAAsB,CACjB,OAAQ,EACtD,IAAI,CACL,CAAC;gBACJ,KAAK,kBAAkB;oBACrB,OAAO,KAAK,CAAC,8BAA8B,CAAC,sBAAsB,CACjB,OAAQ,EACvD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;aAC1F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAnCe,sCAAsB,yBAmCrC,CAAA;AACH,CAAC,EAzEgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAyE/B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Form field.
|
|
16
|
+
*/
|
|
17
|
+
export interface DocumentField {
|
|
18
|
+
/**
|
|
19
|
+
* The field type.
|
|
20
|
+
*/
|
|
21
|
+
"fieldType": DocumentField.FieldType;
|
|
22
|
+
"fieldLabel"?: model.FieldLabel;
|
|
23
|
+
"fieldName"?: model.FieldName;
|
|
24
|
+
"fieldValue": model.ValueTime | model.ValueInteger | model.ValueDate | model.ValueNumber | model.ValueString | model.ValuePhoneNumber | model.ValueArray;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace DocumentField {
|
|
27
|
+
enum FieldType {
|
|
28
|
+
LineItemGroup = "LINE_ITEM_GROUP",
|
|
29
|
+
LineItem = "LINE_ITEM",
|
|
30
|
+
LineItemField = "LINE_ITEM_FIELD",
|
|
31
|
+
KeyValue = "KEY_VALUE",
|
|
32
|
+
/**
|
|
33
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
34
|
+
* version of the SDK.
|
|
35
|
+
*/
|
|
36
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
37
|
+
}
|
|
38
|
+
function getJsonObj(obj: DocumentField): object;
|
|
39
|
+
function getDeserializedJsonObj(obj: DocumentField): object;
|
|
40
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.DocumentField = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var DocumentField;
|
|
37
|
+
(function (DocumentField) {
|
|
38
|
+
let FieldType;
|
|
39
|
+
(function (FieldType) {
|
|
40
|
+
FieldType["LineItemGroup"] = "LINE_ITEM_GROUP";
|
|
41
|
+
FieldType["LineItem"] = "LINE_ITEM";
|
|
42
|
+
FieldType["LineItemField"] = "LINE_ITEM_FIELD";
|
|
43
|
+
FieldType["KeyValue"] = "KEY_VALUE";
|
|
44
|
+
/**
|
|
45
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
46
|
+
* version of the SDK.
|
|
47
|
+
*/
|
|
48
|
+
FieldType["UnknownValue"] = "UNKNOWN_VALUE";
|
|
49
|
+
})(FieldType = DocumentField.FieldType || (DocumentField.FieldType = {}));
|
|
50
|
+
function getJsonObj(obj) {
|
|
51
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
52
|
+
"fieldLabel": obj.fieldLabel ? model.FieldLabel.getJsonObj(obj.fieldLabel) : undefined,
|
|
53
|
+
"fieldName": obj.fieldName ? model.FieldName.getJsonObj(obj.fieldName) : undefined,
|
|
54
|
+
"fieldValue": obj.fieldValue ? model.FieldValue.getJsonObj(obj.fieldValue) : undefined
|
|
55
|
+
});
|
|
56
|
+
return jsonObj;
|
|
57
|
+
}
|
|
58
|
+
DocumentField.getJsonObj = getJsonObj;
|
|
59
|
+
function getDeserializedJsonObj(obj) {
|
|
60
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
61
|
+
"fieldLabel": obj.fieldLabel
|
|
62
|
+
? model.FieldLabel.getDeserializedJsonObj(obj.fieldLabel)
|
|
63
|
+
: undefined,
|
|
64
|
+
"fieldName": obj.fieldName
|
|
65
|
+
? model.FieldName.getDeserializedJsonObj(obj.fieldName)
|
|
66
|
+
: undefined,
|
|
67
|
+
"fieldValue": obj.fieldValue
|
|
68
|
+
? model.FieldValue.getDeserializedJsonObj(obj.fieldValue)
|
|
69
|
+
: undefined
|
|
70
|
+
});
|
|
71
|
+
return jsonObj;
|
|
72
|
+
}
|
|
73
|
+
DocumentField.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
74
|
+
})(DocumentField = exports.DocumentField || (exports.DocumentField = {}));
|
|
75
|
+
//# sourceMappingURL=document-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-field.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-field.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAuBlC,IAAiB,aAAa,CA2C7B;AA3CD,WAAiB,aAAa;IAC5B,IAAY,SAUX;IAVD,WAAY,SAAS;QACnB,8CAAiC,CAAA;QACjC,mCAAsB,CAAA;QACtB,8CAAiC,CAAA;QACjC,mCAAsB,CAAA;QACtB;;;WAGG;QACH,2CAA8B,CAAA;IAChC,CAAC,EAVW,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAUpB;IAED,SAAgB,UAAU,CAAC,GAAkB;QAC3C,MAAM,OAAO,mCACR,GAAG,GACH;YACD,YAAY,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS;YACtF,WAAW,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YAClF,YAAY,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS;SACvF,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,wBAAU,aAWzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAkB;QACvD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,YAAY,EAAE,GAAG,CAAC,UAAU;gBAC1B,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,GAAG,CAAC,UAAU,CAAC;gBACzD,CAAC,CAAC,SAAS;YACb,WAAW,EAAE,GAAG,CAAC,SAAS;gBACxB,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,GAAG,CAAC,SAAS,CAAC;gBACvD,CAAC,CAAC,SAAS;YACb,YAAY,EAAE,GAAG,CAAC,UAAU;gBAC1B,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,GAAG,CAAC,UAAU,CAAC;gBACzD,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAjBe,oCAAsB,yBAiBrC,CAAA;AACH,CAAC,EA3CgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QA2C7B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Extracting form fields.
|
|
16
|
+
*/
|
|
17
|
+
export interface DocumentKeyValueExtractionFeature extends model.DocumentFeature {
|
|
18
|
+
"featureType": string;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace DocumentKeyValueExtractionFeature {
|
|
21
|
+
function getJsonObj(obj: DocumentKeyValueExtractionFeature, isParentJsonObj?: boolean): object;
|
|
22
|
+
const featureType = "KEY_VALUE_EXTRACTION";
|
|
23
|
+
function getDeserializedJsonObj(obj: DocumentKeyValueExtractionFeature, isParentJsonObj?: boolean): object;
|
|
24
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.DocumentKeyValueExtractionFeature = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var DocumentKeyValueExtractionFeature;
|
|
37
|
+
(function (DocumentKeyValueExtractionFeature) {
|
|
38
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
40
|
+
? obj
|
|
41
|
+
: model.DocumentFeature.getJsonObj(obj))), {});
|
|
42
|
+
return jsonObj;
|
|
43
|
+
}
|
|
44
|
+
DocumentKeyValueExtractionFeature.getJsonObj = getJsonObj;
|
|
45
|
+
DocumentKeyValueExtractionFeature.featureType = "KEY_VALUE_EXTRACTION";
|
|
46
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
47
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
48
|
+
? obj
|
|
49
|
+
: model.DocumentFeature.getDeserializedJsonObj(obj))), {});
|
|
50
|
+
return jsonObj;
|
|
51
|
+
}
|
|
52
|
+
DocumentKeyValueExtractionFeature.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
53
|
+
})(DocumentKeyValueExtractionFeature = exports.DocumentKeyValueExtractionFeature || (exports.DocumentKeyValueExtractionFeature = {}));
|
|
54
|
+
//# sourceMappingURL=document-key-value-extraction-feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-key-value-extraction-feature.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-key-value-extraction-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAUlC,IAAiB,iCAAiC,CA4BjD;AA5BD,WAAiB,iCAAiC;IAChD,SAAgB,UAAU,CACxB,GAAsC,EACtC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAAuC,CAAC,GAC9E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,4CAAU,aAYzB,CAAA;IACY,6CAAW,GAAG,sBAAsB,CAAC;IAClD,SAAgB,sBAAsB,CACpC,GAAsC,EACtC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAuC,CAAC,GAC1F,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,wDAAsB,yBAYrC,CAAA;AACH,CAAC,EA5BgB,iCAAiC,GAAjC,yCAAiC,KAAjC,yCAAiC,QA4BjD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Detecting the language of the document.
|
|
16
|
+
*/
|
|
17
|
+
export interface DocumentLanguageClassificationFeature extends model.DocumentFeature {
|
|
18
|
+
/**
|
|
19
|
+
* The maximum number of results to return. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
20
|
+
*/
|
|
21
|
+
"maxResults"?: number;
|
|
22
|
+
"featureType": string;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace DocumentLanguageClassificationFeature {
|
|
25
|
+
function getJsonObj(obj: DocumentLanguageClassificationFeature, isParentJsonObj?: boolean): object;
|
|
26
|
+
const featureType = "LANGUAGE_CLASSIFICATION";
|
|
27
|
+
function getDeserializedJsonObj(obj: DocumentLanguageClassificationFeature, isParentJsonObj?: boolean): object;
|
|
28
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.DocumentLanguageClassificationFeature = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var DocumentLanguageClassificationFeature;
|
|
37
|
+
(function (DocumentLanguageClassificationFeature) {
|
|
38
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
40
|
+
? obj
|
|
41
|
+
: model.DocumentFeature.getJsonObj(obj))), {});
|
|
42
|
+
return jsonObj;
|
|
43
|
+
}
|
|
44
|
+
DocumentLanguageClassificationFeature.getJsonObj = getJsonObj;
|
|
45
|
+
DocumentLanguageClassificationFeature.featureType = "LANGUAGE_CLASSIFICATION";
|
|
46
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
47
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
48
|
+
? obj
|
|
49
|
+
: model.DocumentFeature.getDeserializedJsonObj(obj))), {});
|
|
50
|
+
return jsonObj;
|
|
51
|
+
}
|
|
52
|
+
DocumentLanguageClassificationFeature.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
53
|
+
})(DocumentLanguageClassificationFeature = exports.DocumentLanguageClassificationFeature || (exports.DocumentLanguageClassificationFeature = {}));
|
|
54
|
+
//# sourceMappingURL=document-language-classification-feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-language-classification-feature.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-language-classification-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAelC,IAAiB,qCAAqC,CA8BrD;AA9BD,WAAiB,qCAAqC;IACpD,SAAgB,UAAU,CACxB,GAA0C,EAC1C,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAA2C,CAAC,GAClF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,gDAAU,aAYzB,CAAA;IACY,iDAAW,GAAG,yBAAyB,CAAC;IACrD,SAAgB,sBAAsB,CACpC,GAA0C,EAC1C,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAC3C,GAAG,CACsC,CAAC,GAC7C,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,4DAAsB,yBAcrC,CAAA;AACH,CAAC,EA9BgB,qCAAqC,GAArC,6CAAqC,KAArC,6CAAqC,QA8BrD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* The document information.
|
|
15
|
+
*/
|
|
16
|
+
export interface DocumentMetadata {
|
|
17
|
+
/**
|
|
18
|
+
* Teh number of pages in the document. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
19
|
+
*/
|
|
20
|
+
"pageCount": number;
|
|
21
|
+
/**
|
|
22
|
+
* The result data format.
|
|
23
|
+
*/
|
|
24
|
+
"mimeType": string;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace DocumentMetadata {
|
|
27
|
+
function getJsonObj(obj: DocumentMetadata): object;
|
|
28
|
+
function getDeserializedJsonObj(obj: DocumentMetadata): object;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DocumentMetadata = void 0;
|
|
16
|
+
var DocumentMetadata;
|
|
17
|
+
(function (DocumentMetadata) {
|
|
18
|
+
function getJsonObj(obj) {
|
|
19
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
20
|
+
return jsonObj;
|
|
21
|
+
}
|
|
22
|
+
DocumentMetadata.getJsonObj = getJsonObj;
|
|
23
|
+
function getDeserializedJsonObj(obj) {
|
|
24
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
25
|
+
return jsonObj;
|
|
26
|
+
}
|
|
27
|
+
DocumentMetadata.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
28
|
+
})(DocumentMetadata = exports.DocumentMetadata || (exports.DocumentMetadata = {}));
|
|
29
|
+
//# sourceMappingURL=document-metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-metadata.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-metadata.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAmBH,IAAiB,gBAAgB,CAWhC;AAXD,WAAiB,gBAAgB;IAC/B,SAAgB,UAAU,CAAC,GAAqB;QAC9C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,2BAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAqB;QAC1D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,uCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAWhC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Detecting and extracting data in tables.
|
|
16
|
+
*/
|
|
17
|
+
export interface DocumentTableExtractionFeature extends model.DocumentFeature {
|
|
18
|
+
"featureType": string;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace DocumentTableExtractionFeature {
|
|
21
|
+
function getJsonObj(obj: DocumentTableExtractionFeature, isParentJsonObj?: boolean): object;
|
|
22
|
+
const featureType = "TABLE_EXTRACTION";
|
|
23
|
+
function getDeserializedJsonObj(obj: DocumentTableExtractionFeature, isParentJsonObj?: boolean): object;
|
|
24
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.DocumentTableExtractionFeature = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var DocumentTableExtractionFeature;
|
|
37
|
+
(function (DocumentTableExtractionFeature) {
|
|
38
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
40
|
+
? obj
|
|
41
|
+
: model.DocumentFeature.getJsonObj(obj))), {});
|
|
42
|
+
return jsonObj;
|
|
43
|
+
}
|
|
44
|
+
DocumentTableExtractionFeature.getJsonObj = getJsonObj;
|
|
45
|
+
DocumentTableExtractionFeature.featureType = "TABLE_EXTRACTION";
|
|
46
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
47
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
48
|
+
? obj
|
|
49
|
+
: model.DocumentFeature.getDeserializedJsonObj(obj))), {});
|
|
50
|
+
return jsonObj;
|
|
51
|
+
}
|
|
52
|
+
DocumentTableExtractionFeature.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
53
|
+
})(DocumentTableExtractionFeature = exports.DocumentTableExtractionFeature || (exports.DocumentTableExtractionFeature = {}));
|
|
54
|
+
//# sourceMappingURL=document-table-extraction-feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-table-extraction-feature.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-table-extraction-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAUlC,IAAiB,8BAA8B,CA4B9C;AA5BD,WAAiB,8BAA8B;IAC7C,SAAgB,UAAU,CACxB,GAAmC,EACnC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAAoC,CAAC,GAC3E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,yCAAU,aAYzB,CAAA;IACY,0CAAW,GAAG,kBAAkB,CAAC;IAC9C,SAAgB,sBAAsB,CACpC,GAAmC,EACnC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAoC,CAAC,GACvF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,qDAAsB,yBAYrC,CAAA;AACH,CAAC,EA5BgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QA4B9C"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document Understanding API
|
|
3
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
4
|
+
* OpenAPI spec version: 20221109
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Text recognition
|
|
16
|
+
*/
|
|
17
|
+
export interface DocumentTextExtractionFeature extends model.DocumentFeature {
|
|
18
|
+
/**
|
|
19
|
+
* Whether or not to generate a searchable PDF file.
|
|
20
|
+
*/
|
|
21
|
+
"generateSearchablePdf"?: boolean;
|
|
22
|
+
"featureType": string;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace DocumentTextExtractionFeature {
|
|
25
|
+
function getJsonObj(obj: DocumentTextExtractionFeature, isParentJsonObj?: boolean): object;
|
|
26
|
+
const featureType = "TEXT_EXTRACTION";
|
|
27
|
+
function getDeserializedJsonObj(obj: DocumentTextExtractionFeature, isParentJsonObj?: boolean): object;
|
|
28
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Document Understanding API
|
|
4
|
+
* Document AI helps customers perform various analysis on their documents. If a customer has lots of documents, they can process them in batch using asynchronous API endpoints.
|
|
5
|
+
* OpenAPI spec version: 20221109
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.DocumentTextExtractionFeature = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var DocumentTextExtractionFeature;
|
|
37
|
+
(function (DocumentTextExtractionFeature) {
|
|
38
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
40
|
+
? obj
|
|
41
|
+
: model.DocumentFeature.getJsonObj(obj))), {});
|
|
42
|
+
return jsonObj;
|
|
43
|
+
}
|
|
44
|
+
DocumentTextExtractionFeature.getJsonObj = getJsonObj;
|
|
45
|
+
DocumentTextExtractionFeature.featureType = "TEXT_EXTRACTION";
|
|
46
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
47
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
48
|
+
? obj
|
|
49
|
+
: model.DocumentFeature.getDeserializedJsonObj(obj))), {});
|
|
50
|
+
return jsonObj;
|
|
51
|
+
}
|
|
52
|
+
DocumentTextExtractionFeature.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
53
|
+
})(DocumentTextExtractionFeature = exports.DocumentTextExtractionFeature || (exports.DocumentTextExtractionFeature = {}));
|
|
54
|
+
//# sourceMappingURL=document-text-extraction-feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-text-extraction-feature.js","sourceRoot":"","sources":["../../../../../lib/aidocument/lib/model/document-text-extraction-feature.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAelC,IAAiB,6BAA6B,CA4B7C;AA5BD,WAAiB,6BAA6B;IAC5C,SAAgB,UAAU,CACxB,GAAkC,EAClC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAAmC,CAAC,GAC1E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,wCAAU,aAYzB,CAAA;IACY,yCAAW,GAAG,iBAAiB,CAAC;IAC7C,SAAgB,sBAAsB,CACpC,GAAkC,EAClC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAmC,CAAC,GACtF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,oDAAsB,yBAYrC,CAAA;AACH,CAAC,EA5BgB,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QA4B7C"}
|