@salesforce/lds-adapters-cdp-document-processing 1.423.0 → 1.425.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/dist/es/es2018/cdp-document-processing.js +153 -18
- package/dist/es/es2018/types/src/generated/adapters/createIdpConfiguration.d.ts +6 -2
- package/dist/es/es2018/types/src/generated/adapters/generateIdpConfigurationSchema.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/updateIdpConfiguration.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/patchSsotDocumentProcessingConfigurationsByIdOrApiName.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingActionsGenerateSchema.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingConfigurations.d.ts +6 -2
- package/dist/es/es2018/types/src/generated/types/ExtractedDloEntryRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/ExtractedDloFieldRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/IdpConfigurationDetailsRepresentation.d.ts +9 -1
- package/dist/es/es2018/types/src/generated/types/IdpConfigurationInputRepresentation.d.ts +13 -5
- package/dist/es/es2018/types/src/generated/types/IdpConfigurationPatchInputRepresentation.d.ts +9 -1
- package/package.json +3 -3
- package/sfdc/index.js +144 -9
- package/src/raml/api.raml +62 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$8, StoreKeyMap, createResourceParams as createResourceParams$8 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
|
-
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
10
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
11
11
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
12
|
/**
|
|
13
13
|
* Validates an adapter config is well-formed.
|
|
@@ -31,7 +31,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
31
31
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
32
32
|
}
|
|
33
33
|
const supported = required.concat(optional);
|
|
34
|
-
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
34
|
+
if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
|
|
35
35
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -71,6 +71,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
71
71
|
}
|
|
72
72
|
const keyPrefix = 'document-processing';
|
|
73
73
|
|
|
74
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
74
75
|
const { isArray: ArrayIsArray } = Array;
|
|
75
76
|
const { stringify: JSONStringify } = JSON;
|
|
76
77
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -93,7 +94,7 @@ function createLink(ref) {
|
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
const TTL$5 = 500;
|
|
96
|
-
function validate$
|
|
97
|
+
function validate$e(obj, path = 'CdpPaginatedResponseBaseRepresentation') {
|
|
97
98
|
const v_error = (() => {
|
|
98
99
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
100
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -165,7 +166,7 @@ function equals$9(existing, incoming) {
|
|
|
165
166
|
return true;
|
|
166
167
|
}
|
|
167
168
|
|
|
168
|
-
function validate$
|
|
169
|
+
function validate$d(obj, path = 'CdpAssetBaseRepresentation') {
|
|
169
170
|
const v_error = (() => {
|
|
170
171
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
171
172
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -257,8 +258,8 @@ function equals$8(existing, incoming) {
|
|
|
257
258
|
return true;
|
|
258
259
|
}
|
|
259
260
|
|
|
260
|
-
function validate$
|
|
261
|
-
const validateCdpAssetBaseRepresentation_validateError = validate$
|
|
261
|
+
function validate$c(obj, path = 'IdpConfigurationBaseRepresentation') {
|
|
262
|
+
const validateCdpAssetBaseRepresentation_validateError = validate$d(obj, path);
|
|
262
263
|
if (validateCdpAssetBaseRepresentation_validateError !== null) {
|
|
263
264
|
return validateCdpAssetBaseRepresentation_validateError;
|
|
264
265
|
}
|
|
@@ -367,8 +368,8 @@ function equals$7(existing, incoming) {
|
|
|
367
368
|
return true;
|
|
368
369
|
}
|
|
369
370
|
|
|
370
|
-
function validate$
|
|
371
|
-
const validateIdpConfigurationBaseRepresentation_validateError = validate$
|
|
371
|
+
function validate$b(obj, path = 'IdpConfigurationRepresentation') {
|
|
372
|
+
const validateIdpConfigurationBaseRepresentation_validateError = validate$c(obj, path);
|
|
372
373
|
if (validateIdpConfigurationBaseRepresentation_validateError !== null) {
|
|
373
374
|
return validateIdpConfigurationBaseRepresentation_validateError;
|
|
374
375
|
}
|
|
@@ -388,8 +389,8 @@ function equals$6(existing, incoming) {
|
|
|
388
389
|
|
|
389
390
|
const TTL$4 = 500;
|
|
390
391
|
const VERSION$5 = "def7e7ee61e636c86d017097ba5ad643";
|
|
391
|
-
function validate$
|
|
392
|
-
const validateCdpPaginatedResponseBaseRepresentation_validateError = validate$
|
|
392
|
+
function validate$a(obj, path = 'IdpConfigurationsCollectionRepresentation') {
|
|
393
|
+
const validateCdpPaginatedResponseBaseRepresentation_validateError = validate$e(obj, path);
|
|
393
394
|
if (validateCdpPaginatedResponseBaseRepresentation_validateError !== null) {
|
|
394
395
|
return validateCdpPaginatedResponseBaseRepresentation_validateError;
|
|
395
396
|
}
|
|
@@ -405,7 +406,7 @@ function validate$8(obj, path = 'IdpConfigurationsCollectionRepresentation') {
|
|
|
405
406
|
for (let i = 0; i < obj_configurations.length; i++) {
|
|
406
407
|
const obj_configurations_item = obj_configurations[i];
|
|
407
408
|
const path_configurations_item = path_configurations + '[' + i + ']';
|
|
408
|
-
const referencepath_configurations_itemValidationError = validate$
|
|
409
|
+
const referencepath_configurations_itemValidationError = validate$b(obj_configurations_item, path_configurations_item);
|
|
409
410
|
if (referencepath_configurations_itemValidationError !== null) {
|
|
410
411
|
let message = 'Object doesn\'t match IdpConfigurationRepresentation (at "' + path_configurations_item + '")\n';
|
|
411
412
|
message += referencepath_configurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -445,7 +446,7 @@ function equals$5(existing, incoming) {
|
|
|
445
446
|
}
|
|
446
447
|
const ingest$5 = function IdpConfigurationsCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
447
448
|
if (process.env.NODE_ENV !== 'production') {
|
|
448
|
-
const validateError = validate$
|
|
449
|
+
const validateError = validate$a(input);
|
|
449
450
|
if (validateError !== null) {
|
|
450
451
|
throw validateError;
|
|
451
452
|
}
|
|
@@ -607,8 +608,78 @@ const getIdpConfigurationsAdapterFactory = (luvio) => function documentProcessin
|
|
|
607
608
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
608
609
|
};
|
|
609
610
|
|
|
611
|
+
function validate$9(obj, path = 'ExtractedDloFieldRepresentation') {
|
|
612
|
+
const v_error = (() => {
|
|
613
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
614
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
615
|
+
}
|
|
616
|
+
const obj_dataType = obj.dataType;
|
|
617
|
+
const path_dataType = path + '.dataType';
|
|
618
|
+
if (typeof obj_dataType !== 'string') {
|
|
619
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
620
|
+
}
|
|
621
|
+
const obj_label = obj.label;
|
|
622
|
+
const path_label = path + '.label';
|
|
623
|
+
if (typeof obj_label !== 'string') {
|
|
624
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
625
|
+
}
|
|
626
|
+
const obj_name = obj.name;
|
|
627
|
+
const path_name = path + '.name';
|
|
628
|
+
if (typeof obj_name !== 'string') {
|
|
629
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
630
|
+
}
|
|
631
|
+
})();
|
|
632
|
+
return v_error === undefined ? null : v_error;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
function validate$8(obj, path = 'ExtractedDloEntryRepresentation') {
|
|
636
|
+
const v_error = (() => {
|
|
637
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
638
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
639
|
+
}
|
|
640
|
+
const obj_category = obj.category;
|
|
641
|
+
const path_category = path + '.category';
|
|
642
|
+
if (typeof obj_category !== 'string') {
|
|
643
|
+
return new TypeError('Expected "string" but received "' + typeof obj_category + '" (at "' + path_category + '")');
|
|
644
|
+
}
|
|
645
|
+
const obj_eventDateFieldName = obj.eventDateFieldName;
|
|
646
|
+
const path_eventDateFieldName = path + '.eventDateFieldName';
|
|
647
|
+
if (typeof obj_eventDateFieldName !== 'string') {
|
|
648
|
+
return new TypeError('Expected "string" but received "' + typeof obj_eventDateFieldName + '" (at "' + path_eventDateFieldName + '")');
|
|
649
|
+
}
|
|
650
|
+
const obj_fields = obj.fields;
|
|
651
|
+
const path_fields = path + '.fields';
|
|
652
|
+
if (typeof obj_fields !== 'object' || ArrayIsArray(obj_fields) || obj_fields === null) {
|
|
653
|
+
return new TypeError('Expected "object" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
654
|
+
}
|
|
655
|
+
const obj_fields_keys = ObjectKeys(obj_fields);
|
|
656
|
+
for (let i = 0; i < obj_fields_keys.length; i++) {
|
|
657
|
+
const key = obj_fields_keys[i];
|
|
658
|
+
const obj_fields_prop = obj_fields[key];
|
|
659
|
+
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
660
|
+
const referencepath_fields_propValidationError = validate$9(obj_fields_prop, path_fields_prop);
|
|
661
|
+
if (referencepath_fields_propValidationError !== null) {
|
|
662
|
+
let message = 'Object doesn\'t match ExtractedDloFieldRepresentation (at "' + path_fields_prop + '")\n';
|
|
663
|
+
message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
664
|
+
return new TypeError(message);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
const obj_label = obj.label;
|
|
668
|
+
const path_label = path + '.label';
|
|
669
|
+
if (typeof obj_label !== 'string') {
|
|
670
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
671
|
+
}
|
|
672
|
+
const obj_name = obj.name;
|
|
673
|
+
const path_name = path + '.name';
|
|
674
|
+
if (typeof obj_name !== 'string') {
|
|
675
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
676
|
+
}
|
|
677
|
+
})();
|
|
678
|
+
return v_error === undefined ? null : v_error;
|
|
679
|
+
}
|
|
680
|
+
|
|
610
681
|
const TTL$3 = 500;
|
|
611
|
-
const VERSION$4 = "
|
|
682
|
+
const VERSION$4 = "d7311c72679ab89db02ce698b828ee84";
|
|
612
683
|
function validate$7(obj, path = 'IdpConfigurationDetailsRepresentation') {
|
|
613
684
|
const v_error = (() => {
|
|
614
685
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -629,6 +700,25 @@ function validate$7(obj, path = 'IdpConfigurationDetailsRepresentation') {
|
|
|
629
700
|
if (obj_description === undefined) {
|
|
630
701
|
return new TypeError('Expected "defined" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
631
702
|
}
|
|
703
|
+
if (obj.extractedDloConfig !== undefined) {
|
|
704
|
+
const obj_extractedDloConfig = obj.extractedDloConfig;
|
|
705
|
+
const path_extractedDloConfig = path + '.extractedDloConfig';
|
|
706
|
+
if (typeof obj_extractedDloConfig !== 'object' || ArrayIsArray(obj_extractedDloConfig) || obj_extractedDloConfig === null) {
|
|
707
|
+
return new TypeError('Expected "object" but received "' + typeof obj_extractedDloConfig + '" (at "' + path_extractedDloConfig + '")');
|
|
708
|
+
}
|
|
709
|
+
const obj_extractedDloConfig_keys = ObjectKeys(obj_extractedDloConfig);
|
|
710
|
+
for (let i = 0; i < obj_extractedDloConfig_keys.length; i++) {
|
|
711
|
+
const key = obj_extractedDloConfig_keys[i];
|
|
712
|
+
const obj_extractedDloConfig_prop = obj_extractedDloConfig[key];
|
|
713
|
+
const path_extractedDloConfig_prop = path_extractedDloConfig + '["' + key + '"]';
|
|
714
|
+
const referencepath_extractedDloConfig_propValidationError = validate$8(obj_extractedDloConfig_prop, path_extractedDloConfig_prop);
|
|
715
|
+
if (referencepath_extractedDloConfig_propValidationError !== null) {
|
|
716
|
+
let message = 'Object doesn\'t match ExtractedDloEntryRepresentation (at "' + path_extractedDloConfig_prop + '")\n';
|
|
717
|
+
message += referencepath_extractedDloConfig_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
718
|
+
return new TypeError(message);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
632
722
|
const obj_id = obj.id;
|
|
633
723
|
const path_id = path + '.id';
|
|
634
724
|
if (typeof obj_id !== 'string') {
|
|
@@ -815,7 +905,8 @@ const createIdpConfiguration_ConfigPropertyMetadata = [
|
|
|
815
905
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
816
906
|
generateParamConfigMetadata('mlModel', true, 2 /* Body */, 0 /* String */),
|
|
817
907
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
818
|
-
generateParamConfigMetadata('configMetadata',
|
|
908
|
+
generateParamConfigMetadata('configMetadata', false, 2 /* Body */, 4 /* Unsupported */),
|
|
909
|
+
generateParamConfigMetadata('extractedDloConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
819
910
|
generateParamConfigMetadata('schemaConfig', true, 2 /* Body */, 0 /* String */),
|
|
820
911
|
generateParamConfigMetadata('sourceDmoDeveloperName', false, 2 /* Body */, 0 /* String */),
|
|
821
912
|
];
|
|
@@ -845,14 +936,38 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
845
936
|
const untrustedConfig_configMetadata = untrustedConfig.configMetadata;
|
|
846
937
|
if (untrustedIsObject(untrustedConfig_configMetadata)) {
|
|
847
938
|
const untrustedConfig_configMetadata_object = {};
|
|
848
|
-
const
|
|
849
|
-
|
|
850
|
-
|
|
939
|
+
const untrustedConfig_configMetadata_keys = Object.keys(untrustedConfig_configMetadata);
|
|
940
|
+
for (let i = 0, arrayLength = untrustedConfig_configMetadata_keys.length; i < arrayLength; i++) {
|
|
941
|
+
const key = untrustedConfig_configMetadata_keys[i];
|
|
942
|
+
const untrustedConfig_configMetadata_prop = untrustedConfig_configMetadata[key];
|
|
943
|
+
if (typeof untrustedConfig_configMetadata_prop === 'string') {
|
|
944
|
+
if (untrustedConfig_configMetadata_object !== undefined) {
|
|
945
|
+
untrustedConfig_configMetadata_object[key] = untrustedConfig_configMetadata_prop;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
851
948
|
}
|
|
852
949
|
if (untrustedConfig_configMetadata_object !== undefined && Object.keys(untrustedConfig_configMetadata_object).length >= 0) {
|
|
853
950
|
config.configMetadata = untrustedConfig_configMetadata_object;
|
|
854
951
|
}
|
|
855
952
|
}
|
|
953
|
+
const untrustedConfig_extractedDloConfig = untrustedConfig.extractedDloConfig;
|
|
954
|
+
if (untrustedIsObject(untrustedConfig_extractedDloConfig)) {
|
|
955
|
+
const untrustedConfig_extractedDloConfig_object = {};
|
|
956
|
+
const untrustedConfig_extractedDloConfig_keys = Object.keys(untrustedConfig_extractedDloConfig);
|
|
957
|
+
for (let i = 0, arrayLength = untrustedConfig_extractedDloConfig_keys.length; i < arrayLength; i++) {
|
|
958
|
+
const key = untrustedConfig_extractedDloConfig_keys[i];
|
|
959
|
+
const untrustedConfig_extractedDloConfig_prop = untrustedConfig_extractedDloConfig[key];
|
|
960
|
+
const referenceExtractedDloEntryRepresentationValidationError = validate$8(untrustedConfig_extractedDloConfig_prop);
|
|
961
|
+
if (referenceExtractedDloEntryRepresentationValidationError === null) {
|
|
962
|
+
if (untrustedConfig_extractedDloConfig_object !== undefined) {
|
|
963
|
+
untrustedConfig_extractedDloConfig_object[key] = untrustedConfig_extractedDloConfig_prop;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
if (untrustedConfig_extractedDloConfig_object !== undefined && Object.keys(untrustedConfig_extractedDloConfig_object).length >= 0) {
|
|
968
|
+
config.extractedDloConfig = untrustedConfig_extractedDloConfig_object;
|
|
969
|
+
}
|
|
970
|
+
}
|
|
856
971
|
return config;
|
|
857
972
|
}
|
|
858
973
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -1165,6 +1280,7 @@ const updateIdpConfiguration_ConfigPropertyMetadata = [
|
|
|
1165
1280
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1166
1281
|
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
1167
1282
|
generateParamConfigMetadata('mlModel', false, 2 /* Body */, 0 /* String */),
|
|
1283
|
+
generateParamConfigMetadata('extractedDloConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1168
1284
|
generateParamConfigMetadata('schemaConfig', false, 2 /* Body */, 0 /* String */),
|
|
1169
1285
|
generateParamConfigMetadata('sourceDmoDeveloperName', false, 2 /* Body */, 0 /* String */),
|
|
1170
1286
|
];
|
|
@@ -1173,6 +1289,24 @@ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(updateIdpCon
|
|
|
1173
1289
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1174
1290
|
const config = {};
|
|
1175
1291
|
typeCheckConfig$8(untrustedConfig, config, updateIdpConfiguration_ConfigPropertyMetadata);
|
|
1292
|
+
const untrustedConfig_extractedDloConfig = untrustedConfig.extractedDloConfig;
|
|
1293
|
+
if (untrustedIsObject(untrustedConfig_extractedDloConfig)) {
|
|
1294
|
+
const untrustedConfig_extractedDloConfig_object = {};
|
|
1295
|
+
const untrustedConfig_extractedDloConfig_keys = Object.keys(untrustedConfig_extractedDloConfig);
|
|
1296
|
+
for (let i = 0, arrayLength = untrustedConfig_extractedDloConfig_keys.length; i < arrayLength; i++) {
|
|
1297
|
+
const key = untrustedConfig_extractedDloConfig_keys[i];
|
|
1298
|
+
const untrustedConfig_extractedDloConfig_prop = untrustedConfig_extractedDloConfig[key];
|
|
1299
|
+
const referenceExtractedDloEntryRepresentationValidationError = validate$8(untrustedConfig_extractedDloConfig_prop);
|
|
1300
|
+
if (referenceExtractedDloEntryRepresentationValidationError === null) {
|
|
1301
|
+
if (untrustedConfig_extractedDloConfig_object !== undefined) {
|
|
1302
|
+
untrustedConfig_extractedDloConfig_object[key] = untrustedConfig_extractedDloConfig_prop;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
if (untrustedConfig_extractedDloConfig_object !== undefined && Object.keys(untrustedConfig_extractedDloConfig_object).length >= 0) {
|
|
1307
|
+
config.extractedDloConfig = untrustedConfig_extractedDloConfig_object;
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1176
1310
|
return config;
|
|
1177
1311
|
}
|
|
1178
1312
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -1651,7 +1785,7 @@ function createResourceRequest$1(config) {
|
|
|
1651
1785
|
method: 'post',
|
|
1652
1786
|
body: config.body,
|
|
1653
1787
|
urlParams: {},
|
|
1654
|
-
queryParams:
|
|
1788
|
+
queryParams: config.queryParams,
|
|
1655
1789
|
headers,
|
|
1656
1790
|
priority: 'normal',
|
|
1657
1791
|
};
|
|
@@ -1659,6 +1793,7 @@ function createResourceRequest$1(config) {
|
|
|
1659
1793
|
|
|
1660
1794
|
const adapterName$1 = 'generateIdpConfigurationSchema';
|
|
1661
1795
|
const generateIdpConfigurationSchema_ConfigPropertyMetadata = [
|
|
1796
|
+
generateParamConfigMetadata('idpClientPartnerId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1662
1797
|
generateParamConfigMetadata('files', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1663
1798
|
generateParamConfigMetadata('mlModel', true, 2 /* Body */, 0 /* String */),
|
|
1664
1799
|
];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ExtractedDloEntryRepresentation as types_ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation } from '../types/ExtractedDloEntryRepresentation';
|
|
3
4
|
import { ResourceRequestConfig as resources_postSsotDocumentProcessingConfigurations_ResourceRequestConfig } from '../resources/postSsotDocumentProcessingConfigurations';
|
|
4
5
|
import { IdpConfigurationDetailsRepresentation as types_IdpConfigurationDetailsRepresentation_IdpConfigurationDetailsRepresentation } from '../types/IdpConfigurationDetailsRepresentation';
|
|
5
6
|
export declare const adapterName = "createIdpConfiguration";
|
|
@@ -14,8 +15,11 @@ export interface CreateIdpConfigurationConfig {
|
|
|
14
15
|
label: string;
|
|
15
16
|
mlModel: string;
|
|
16
17
|
name: string;
|
|
17
|
-
configMetadata
|
|
18
|
-
|
|
18
|
+
configMetadata?: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
extractedDloConfig?: {
|
|
22
|
+
[key: string]: types_ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation;
|
|
19
23
|
};
|
|
20
24
|
schemaConfig: string;
|
|
21
25
|
sourceDmoDeveloperName?: string;
|
|
@@ -7,6 +7,7 @@ export declare const adapterName = "generateIdpConfigurationSchema";
|
|
|
7
7
|
export declare const generateIdpConfigurationSchema_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
8
|
export declare const generateIdpConfigurationSchema_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
9
|
export interface GenerateIdpConfigurationSchemaConfig {
|
|
10
|
+
idpClientPartnerId?: string;
|
|
10
11
|
files: Array<types_IdpGenerateSchemaFileInputRepresentation_IdpGenerateSchemaFileInputRepresentation>;
|
|
11
12
|
mlModel: string;
|
|
12
13
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ExtractedDloEntryRepresentation as types_ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation } from '../types/ExtractedDloEntryRepresentation';
|
|
3
4
|
import { ResourceRequestConfig as resources_patchSsotDocumentProcessingConfigurationsByIdOrApiName_ResourceRequestConfig } from '../resources/patchSsotDocumentProcessingConfigurationsByIdOrApiName';
|
|
4
5
|
import { IdpConfigurationDetailsRepresentation as types_IdpConfigurationDetailsRepresentation_IdpConfigurationDetailsRepresentation } from '../types/IdpConfigurationDetailsRepresentation';
|
|
5
6
|
export declare const adapterName = "updateIdpConfiguration";
|
|
@@ -11,6 +12,9 @@ export interface UpdateIdpConfigurationConfig {
|
|
|
11
12
|
description?: string;
|
|
12
13
|
label?: string;
|
|
13
14
|
mlModel?: string;
|
|
15
|
+
extractedDloConfig?: {
|
|
16
|
+
[key: string]: types_ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation;
|
|
17
|
+
};
|
|
14
18
|
schemaConfig?: string;
|
|
15
19
|
sourceDmoDeveloperName?: string;
|
|
16
20
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ExtractedDloEntryRepresentation as types_ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation } from '../types/ExtractedDloEntryRepresentation';
|
|
1
2
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
3
|
import { IdpConfigurationDetailsRepresentation as types_IdpConfigurationDetailsRepresentation_IdpConfigurationDetailsRepresentation } from '../types/IdpConfigurationDetailsRepresentation';
|
|
3
4
|
export interface ResourceRequestConfig {
|
|
@@ -9,6 +10,9 @@ export interface ResourceRequestConfig {
|
|
|
9
10
|
description?: string;
|
|
10
11
|
label?: string;
|
|
11
12
|
mlModel?: string;
|
|
13
|
+
extractedDloConfig?: {
|
|
14
|
+
[key: string]: types_ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation;
|
|
15
|
+
};
|
|
12
16
|
schemaConfig?: string;
|
|
13
17
|
sourceDmoDeveloperName?: string;
|
|
14
18
|
};
|
|
@@ -2,6 +2,9 @@ import { IdpGenerateSchemaFileInputRepresentation as types_IdpGenerateSchemaFile
|
|
|
2
2
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
3
3
|
import { IdpGeneratedSchemaRepresentation as types_IdpGeneratedSchemaRepresentation_IdpGeneratedSchemaRepresentation } from '../types/IdpGeneratedSchemaRepresentation';
|
|
4
4
|
export interface ResourceRequestConfig {
|
|
5
|
+
queryParams: {
|
|
6
|
+
idpClientPartnerId?: string;
|
|
7
|
+
};
|
|
5
8
|
body: {
|
|
6
9
|
files: Array<types_IdpGenerateSchemaFileInputRepresentation_IdpGenerateSchemaFileInputRepresentation>;
|
|
7
10
|
mlModel: string;
|
package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingConfigurations.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ExtractedDloEntryRepresentation as types_ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation } from '../types/ExtractedDloEntryRepresentation';
|
|
1
2
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
3
|
import { IdpConfigurationDetailsRepresentation as types_IdpConfigurationDetailsRepresentation_IdpConfigurationDetailsRepresentation } from '../types/IdpConfigurationDetailsRepresentation';
|
|
3
4
|
export interface ResourceRequestConfig {
|
|
@@ -10,8 +11,11 @@ export interface ResourceRequestConfig {
|
|
|
10
11
|
label: string;
|
|
11
12
|
mlModel: string;
|
|
12
13
|
name: string;
|
|
13
|
-
configMetadata
|
|
14
|
-
|
|
14
|
+
configMetadata?: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
extractedDloConfig?: {
|
|
18
|
+
[key: string]: types_ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation;
|
|
15
19
|
};
|
|
16
20
|
schemaConfig: string;
|
|
17
21
|
sourceDmoDeveloperName?: string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ExtractedDloFieldRepresentation as ExtractedDloFieldRepresentation_ExtractedDloFieldRepresentation } from './ExtractedDloFieldRepresentation';
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "39d75bd839b424ae4b6689ba6e37f0fa";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: ExtractedDloEntryRepresentation, existing: ExtractedDloEntryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExtractedDloEntryRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: ExtractedDloEntryRepresentationNormalized, incoming: ExtractedDloEntryRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExtractedDloEntryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* A single DLO entry in extractedDloConfig (e.g. sales_invoices). Top-level keys under extractedDloConfig are dynamic.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface ExtractedDloEntryRepresentationNormalized {
|
|
18
|
+
/** The category of the DLO (e.g. Engagement) */
|
|
19
|
+
category: string;
|
|
20
|
+
/** The API name of the event date field (e.g. InvoiceDate__c) */
|
|
21
|
+
eventDateFieldName: string;
|
|
22
|
+
/** Map of field keys to field definitions. Keys are dynamic (e.g. invoice_date, product) */
|
|
23
|
+
fields: {
|
|
24
|
+
[key: string]: ExtractedDloFieldRepresentation_ExtractedDloFieldRepresentation;
|
|
25
|
+
};
|
|
26
|
+
/** The display label of the DLO (e.g. Sales Invoices) */
|
|
27
|
+
label: string;
|
|
28
|
+
/** The API name of the DLO (e.g. SalesInvoices__dll) */
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A single DLO entry in extractedDloConfig (e.g. sales_invoices). Top-level keys under extractedDloConfig are dynamic.
|
|
33
|
+
*
|
|
34
|
+
* Keys:
|
|
35
|
+
* (none)
|
|
36
|
+
*/
|
|
37
|
+
export interface ExtractedDloEntryRepresentation {
|
|
38
|
+
category: string;
|
|
39
|
+
eventDateFieldName: string;
|
|
40
|
+
fields: {
|
|
41
|
+
[key: string]: ExtractedDloFieldRepresentation_ExtractedDloFieldRepresentation;
|
|
42
|
+
};
|
|
43
|
+
label: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "e789d1c0a9e121a4ac15e0556fc824e4";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ExtractedDloFieldRepresentation, existing: ExtractedDloFieldRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExtractedDloFieldRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ExtractedDloFieldRepresentationNormalized, incoming: ExtractedDloFieldRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExtractedDloFieldRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* A single field in an extracted DLO (e.g. invoice_date, product). Keys under fields are dynamic.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ExtractedDloFieldRepresentationNormalized {
|
|
17
|
+
/** The data type of the field (e.g. Date, Text) */
|
|
18
|
+
dataType: string;
|
|
19
|
+
/** The display label of the field (e.g. Invoice Date) */
|
|
20
|
+
label: string;
|
|
21
|
+
/** The API name of the field (e.g. InvoiceDate__c) */
|
|
22
|
+
name: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A single field in an extracted DLO (e.g. invoice_date, product). Keys under fields are dynamic.
|
|
26
|
+
*
|
|
27
|
+
* Keys:
|
|
28
|
+
* (none)
|
|
29
|
+
*/
|
|
30
|
+
export interface ExtractedDloFieldRepresentation {
|
|
31
|
+
dataType: string;
|
|
32
|
+
label: string;
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ExtractedDloEntryRepresentation as ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation } from './ExtractedDloEntryRepresentation';
|
|
1
2
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
3
|
export declare const TTL = 500;
|
|
3
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "d7311c72679ab89db02ce698b828ee84";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
7
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -30,6 +31,10 @@ export interface IdpConfigurationDetailsRepresentationNormalized {
|
|
|
30
31
|
createdDate: string;
|
|
31
32
|
/** description of config */
|
|
32
33
|
description: unknown;
|
|
34
|
+
/** Map of extracted DLO (Data Layout Object) configuration. Keys are dynamic (e.g. sales_invoices); each value is a DLO entry with name, label, category, eventDateFieldName, and fields. Aligns with Data 360 Connect API createDocumentAIConfiguration. */
|
|
35
|
+
extractedDloConfig?: {
|
|
36
|
+
[key: string]: ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation;
|
|
37
|
+
};
|
|
33
38
|
/** The 18 character ID of the asset */
|
|
34
39
|
id: string;
|
|
35
40
|
/** Label of the asset */
|
|
@@ -59,6 +64,9 @@ export interface IdpConfigurationDetailsRepresentation {
|
|
|
59
64
|
createdBy: unknown;
|
|
60
65
|
createdDate: string;
|
|
61
66
|
description: unknown;
|
|
67
|
+
extractedDloConfig?: {
|
|
68
|
+
[key: string]: ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation;
|
|
69
|
+
};
|
|
62
70
|
id: string;
|
|
63
71
|
label: string;
|
|
64
72
|
lastModifiedBy: unknown;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ExtractedDloEntryRepresentation as ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation } from './ExtractedDloEntryRepresentation';
|
|
1
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
3
|
export declare const TTL = 500;
|
|
3
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "557564cd4a37a4086aecd45a7c178226";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
7
|
export declare function normalize(input: IdpConfigurationInputRepresentation, existing: IdpConfigurationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpConfigurationInputRepresentationNormalized;
|
|
@@ -18,12 +19,16 @@ export interface IdpConfigurationInputRepresentationNormalized {
|
|
|
18
19
|
/** Activated/Deactivated/Draft */
|
|
19
20
|
activationStatus: string;
|
|
20
21
|
/** A map of custom key-value pairs serialized as JSON */
|
|
21
|
-
configMetadata
|
|
22
|
+
configMetadata?: {
|
|
22
23
|
/** Source of idp config creation */
|
|
23
|
-
|
|
24
|
+
[key: string]: string;
|
|
24
25
|
};
|
|
25
26
|
/** The description of the IDP configuration to be created */
|
|
26
27
|
description: string;
|
|
28
|
+
/** Map of extracted DLO (Data Layout Object) configuration. Keys are dynamic (e.g. sales_invoices); each value is a DLO entry with name, label, category, eventDateFieldName, and fields. Aligns with Data 360 Connect API createDocumentAIConfiguration. */
|
|
29
|
+
extractedDloConfig?: {
|
|
30
|
+
[key: string]: ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation;
|
|
31
|
+
};
|
|
27
32
|
/** The specs for the file types supported by the IDP process to be created */
|
|
28
33
|
fileConfig: {
|
|
29
34
|
/** List of file formats that are supported by the IDP process to be created */
|
|
@@ -48,10 +53,13 @@ export interface IdpConfigurationInputRepresentationNormalized {
|
|
|
48
53
|
*/
|
|
49
54
|
export interface IdpConfigurationInputRepresentation {
|
|
50
55
|
activationStatus: string;
|
|
51
|
-
configMetadata
|
|
52
|
-
|
|
56
|
+
configMetadata?: {
|
|
57
|
+
[key: string]: string;
|
|
53
58
|
};
|
|
54
59
|
description: string;
|
|
60
|
+
extractedDloConfig?: {
|
|
61
|
+
[key: string]: ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation;
|
|
62
|
+
};
|
|
55
63
|
fileConfig: {
|
|
56
64
|
fileTypes: Array<string>;
|
|
57
65
|
};
|
package/dist/es/es2018/types/src/generated/types/IdpConfigurationPatchInputRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ExtractedDloEntryRepresentation as ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation } from './ExtractedDloEntryRepresentation';
|
|
1
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
3
|
export declare const TTL = 500;
|
|
3
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "b7d260c6149b520bc790ae0fcdde71f5";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
7
|
export declare function normalize(input: IdpConfigurationPatchInputRepresentation, existing: IdpConfigurationPatchInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpConfigurationPatchInputRepresentationNormalized;
|
|
@@ -19,6 +20,10 @@ export interface IdpConfigurationPatchInputRepresentationNormalized {
|
|
|
19
20
|
activationStatus?: string;
|
|
20
21
|
/** The updated description of the IDP configuration to be created */
|
|
21
22
|
description?: string;
|
|
23
|
+
/** Map of extracted DLO (Data Layout Object) configuration. Keys are dynamic (e.g. sales_invoices); each value is a DLO entry with name, label, category, eventDateFieldName, and fields. Aligns with Data 360 Connect API createDocumentAIConfiguration. */
|
|
24
|
+
extractedDloConfig?: {
|
|
25
|
+
[key: string]: ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation;
|
|
26
|
+
};
|
|
22
27
|
/** The updated label of the IDP configuration to be created */
|
|
23
28
|
label?: string;
|
|
24
29
|
/** The ML model used to extract the unstructured data */
|
|
@@ -37,6 +42,9 @@ export interface IdpConfigurationPatchInputRepresentationNormalized {
|
|
|
37
42
|
export interface IdpConfigurationPatchInputRepresentation {
|
|
38
43
|
activationStatus?: string;
|
|
39
44
|
description?: string;
|
|
45
|
+
extractedDloConfig?: {
|
|
46
|
+
[key: string]: ExtractedDloEntryRepresentation_ExtractedDloEntryRepresentation;
|
|
47
|
+
};
|
|
40
48
|
label?: string;
|
|
41
49
|
mlModel?: string;
|
|
42
50
|
schemaConfig?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-document-processing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.425.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/cdp-document-processing.js",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"test:unit:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@salesforce/lds-bindings": "^1.
|
|
45
|
+
"@salesforce/lds-bindings": "^1.425.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.425.0"
|
|
49
49
|
},
|
|
50
50
|
"nx": {
|
|
51
51
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { withDefaultLuvio } from 'force/ldsEngine';
|
|
|
17
17
|
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$8, typeCheckConfig as typeCheckConfig$8, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
|
-
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
20
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
21
21
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
22
|
/**
|
|
23
23
|
* Validates an adapter config is well-formed.
|
|
@@ -41,7 +41,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
41
41
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
42
42
|
}
|
|
43
43
|
const supported = required.concat(optional);
|
|
44
|
-
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
44
|
+
if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
|
|
45
45
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -81,6 +81,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
81
81
|
}
|
|
82
82
|
const keyPrefix = 'document-processing';
|
|
83
83
|
|
|
84
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
84
85
|
const { isArray: ArrayIsArray } = Array;
|
|
85
86
|
const { stringify: JSONStringify } = JSON;
|
|
86
87
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -102,8 +103,78 @@ function createLink(ref) {
|
|
|
102
103
|
};
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
function validate$e(obj, path = 'ExtractedDloFieldRepresentation') {
|
|
107
|
+
const v_error = (() => {
|
|
108
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
110
|
+
}
|
|
111
|
+
const obj_dataType = obj.dataType;
|
|
112
|
+
const path_dataType = path + '.dataType';
|
|
113
|
+
if (typeof obj_dataType !== 'string') {
|
|
114
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
115
|
+
}
|
|
116
|
+
const obj_label = obj.label;
|
|
117
|
+
const path_label = path + '.label';
|
|
118
|
+
if (typeof obj_label !== 'string') {
|
|
119
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
120
|
+
}
|
|
121
|
+
const obj_name = obj.name;
|
|
122
|
+
const path_name = path + '.name';
|
|
123
|
+
if (typeof obj_name !== 'string') {
|
|
124
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
125
|
+
}
|
|
126
|
+
})();
|
|
127
|
+
return v_error === undefined ? null : v_error;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function validate$d(obj, path = 'ExtractedDloEntryRepresentation') {
|
|
131
|
+
const v_error = (() => {
|
|
132
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
133
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
134
|
+
}
|
|
135
|
+
const obj_category = obj.category;
|
|
136
|
+
const path_category = path + '.category';
|
|
137
|
+
if (typeof obj_category !== 'string') {
|
|
138
|
+
return new TypeError('Expected "string" but received "' + typeof obj_category + '" (at "' + path_category + '")');
|
|
139
|
+
}
|
|
140
|
+
const obj_eventDateFieldName = obj.eventDateFieldName;
|
|
141
|
+
const path_eventDateFieldName = path + '.eventDateFieldName';
|
|
142
|
+
if (typeof obj_eventDateFieldName !== 'string') {
|
|
143
|
+
return new TypeError('Expected "string" but received "' + typeof obj_eventDateFieldName + '" (at "' + path_eventDateFieldName + '")');
|
|
144
|
+
}
|
|
145
|
+
const obj_fields = obj.fields;
|
|
146
|
+
const path_fields = path + '.fields';
|
|
147
|
+
if (typeof obj_fields !== 'object' || ArrayIsArray(obj_fields) || obj_fields === null) {
|
|
148
|
+
return new TypeError('Expected "object" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
149
|
+
}
|
|
150
|
+
const obj_fields_keys = ObjectKeys(obj_fields);
|
|
151
|
+
for (let i = 0; i < obj_fields_keys.length; i++) {
|
|
152
|
+
const key = obj_fields_keys[i];
|
|
153
|
+
const obj_fields_prop = obj_fields[key];
|
|
154
|
+
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
155
|
+
const referencepath_fields_propValidationError = validate$e(obj_fields_prop, path_fields_prop);
|
|
156
|
+
if (referencepath_fields_propValidationError !== null) {
|
|
157
|
+
let message = 'Object doesn\'t match ExtractedDloFieldRepresentation (at "' + path_fields_prop + '")\n';
|
|
158
|
+
message += referencepath_fields_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
159
|
+
return new TypeError(message);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const obj_label = obj.label;
|
|
163
|
+
const path_label = path + '.label';
|
|
164
|
+
if (typeof obj_label !== 'string') {
|
|
165
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
166
|
+
}
|
|
167
|
+
const obj_name = obj.name;
|
|
168
|
+
const path_name = path + '.name';
|
|
169
|
+
if (typeof obj_name !== 'string') {
|
|
170
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
171
|
+
}
|
|
172
|
+
})();
|
|
173
|
+
return v_error === undefined ? null : v_error;
|
|
174
|
+
}
|
|
175
|
+
|
|
105
176
|
const TTL$5 = 500;
|
|
106
|
-
const VERSION$5 = "
|
|
177
|
+
const VERSION$5 = "d7311c72679ab89db02ce698b828ee84";
|
|
107
178
|
function validate$c(obj, path = 'IdpConfigurationDetailsRepresentation') {
|
|
108
179
|
const v_error = (() => {
|
|
109
180
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -124,6 +195,25 @@ function validate$c(obj, path = 'IdpConfigurationDetailsRepresentation') {
|
|
|
124
195
|
if (obj_description === undefined) {
|
|
125
196
|
return new TypeError('Expected "defined" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
126
197
|
}
|
|
198
|
+
if (obj.extractedDloConfig !== undefined) {
|
|
199
|
+
const obj_extractedDloConfig = obj.extractedDloConfig;
|
|
200
|
+
const path_extractedDloConfig = path + '.extractedDloConfig';
|
|
201
|
+
if (typeof obj_extractedDloConfig !== 'object' || ArrayIsArray(obj_extractedDloConfig) || obj_extractedDloConfig === null) {
|
|
202
|
+
return new TypeError('Expected "object" but received "' + typeof obj_extractedDloConfig + '" (at "' + path_extractedDloConfig + '")');
|
|
203
|
+
}
|
|
204
|
+
const obj_extractedDloConfig_keys = ObjectKeys(obj_extractedDloConfig);
|
|
205
|
+
for (let i = 0; i < obj_extractedDloConfig_keys.length; i++) {
|
|
206
|
+
const key = obj_extractedDloConfig_keys[i];
|
|
207
|
+
const obj_extractedDloConfig_prop = obj_extractedDloConfig[key];
|
|
208
|
+
const path_extractedDloConfig_prop = path_extractedDloConfig + '["' + key + '"]';
|
|
209
|
+
const referencepath_extractedDloConfig_propValidationError = validate$d(obj_extractedDloConfig_prop, path_extractedDloConfig_prop);
|
|
210
|
+
if (referencepath_extractedDloConfig_propValidationError !== null) {
|
|
211
|
+
let message = 'Object doesn\'t match ExtractedDloEntryRepresentation (at "' + path_extractedDloConfig_prop + '")\n';
|
|
212
|
+
message += referencepath_extractedDloConfig_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
213
|
+
return new TypeError(message);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
127
217
|
const obj_id = obj.id;
|
|
128
218
|
const path_id = path + '.id';
|
|
129
219
|
if (typeof obj_id !== 'string') {
|
|
@@ -310,7 +400,8 @@ const createIdpConfiguration_ConfigPropertyMetadata = [
|
|
|
310
400
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
311
401
|
generateParamConfigMetadata('mlModel', true, 2 /* Body */, 0 /* String */),
|
|
312
402
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
313
|
-
generateParamConfigMetadata('configMetadata',
|
|
403
|
+
generateParamConfigMetadata('configMetadata', false, 2 /* Body */, 4 /* Unsupported */),
|
|
404
|
+
generateParamConfigMetadata('extractedDloConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
314
405
|
generateParamConfigMetadata('schemaConfig', true, 2 /* Body */, 0 /* String */),
|
|
315
406
|
generateParamConfigMetadata('sourceDmoDeveloperName', false, 2 /* Body */, 0 /* String */),
|
|
316
407
|
];
|
|
@@ -340,14 +431,38 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
340
431
|
const untrustedConfig_configMetadata = untrustedConfig.configMetadata;
|
|
341
432
|
if (untrustedIsObject(untrustedConfig_configMetadata)) {
|
|
342
433
|
const untrustedConfig_configMetadata_object = {};
|
|
343
|
-
const
|
|
344
|
-
|
|
345
|
-
|
|
434
|
+
const untrustedConfig_configMetadata_keys = Object.keys(untrustedConfig_configMetadata);
|
|
435
|
+
for (let i = 0, arrayLength = untrustedConfig_configMetadata_keys.length; i < arrayLength; i++) {
|
|
436
|
+
const key = untrustedConfig_configMetadata_keys[i];
|
|
437
|
+
const untrustedConfig_configMetadata_prop = untrustedConfig_configMetadata[key];
|
|
438
|
+
if (typeof untrustedConfig_configMetadata_prop === 'string') {
|
|
439
|
+
if (untrustedConfig_configMetadata_object !== undefined) {
|
|
440
|
+
untrustedConfig_configMetadata_object[key] = untrustedConfig_configMetadata_prop;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
346
443
|
}
|
|
347
444
|
if (untrustedConfig_configMetadata_object !== undefined && Object.keys(untrustedConfig_configMetadata_object).length >= 0) {
|
|
348
445
|
config.configMetadata = untrustedConfig_configMetadata_object;
|
|
349
446
|
}
|
|
350
447
|
}
|
|
448
|
+
const untrustedConfig_extractedDloConfig = untrustedConfig.extractedDloConfig;
|
|
449
|
+
if (untrustedIsObject(untrustedConfig_extractedDloConfig)) {
|
|
450
|
+
const untrustedConfig_extractedDloConfig_object = {};
|
|
451
|
+
const untrustedConfig_extractedDloConfig_keys = Object.keys(untrustedConfig_extractedDloConfig);
|
|
452
|
+
for (let i = 0, arrayLength = untrustedConfig_extractedDloConfig_keys.length; i < arrayLength; i++) {
|
|
453
|
+
const key = untrustedConfig_extractedDloConfig_keys[i];
|
|
454
|
+
const untrustedConfig_extractedDloConfig_prop = untrustedConfig_extractedDloConfig[key];
|
|
455
|
+
const referenceExtractedDloEntryRepresentationValidationError = validate$d(untrustedConfig_extractedDloConfig_prop);
|
|
456
|
+
if (referenceExtractedDloEntryRepresentationValidationError === null) {
|
|
457
|
+
if (untrustedConfig_extractedDloConfig_object !== undefined) {
|
|
458
|
+
untrustedConfig_extractedDloConfig_object[key] = untrustedConfig_extractedDloConfig_prop;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
if (untrustedConfig_extractedDloConfig_object !== undefined && Object.keys(untrustedConfig_extractedDloConfig_object).length >= 0) {
|
|
463
|
+
config.extractedDloConfig = untrustedConfig_extractedDloConfig_object;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
351
466
|
return config;
|
|
352
467
|
}
|
|
353
468
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -964,7 +1079,7 @@ function createResourceRequest$4(config) {
|
|
|
964
1079
|
method: 'post',
|
|
965
1080
|
body: config.body,
|
|
966
1081
|
urlParams: {},
|
|
967
|
-
queryParams:
|
|
1082
|
+
queryParams: config.queryParams,
|
|
968
1083
|
headers,
|
|
969
1084
|
priority: 'normal',
|
|
970
1085
|
};
|
|
@@ -972,6 +1087,7 @@ function createResourceRequest$4(config) {
|
|
|
972
1087
|
|
|
973
1088
|
const adapterName$4 = 'generateIdpConfigurationSchema';
|
|
974
1089
|
const generateIdpConfigurationSchema_ConfigPropertyMetadata = [
|
|
1090
|
+
generateParamConfigMetadata('idpClientPartnerId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
975
1091
|
generateParamConfigMetadata('files', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
976
1092
|
generateParamConfigMetadata('mlModel', true, 2 /* Body */, 0 /* String */),
|
|
977
1093
|
];
|
|
@@ -2059,6 +2175,7 @@ const updateIdpConfiguration_ConfigPropertyMetadata = [
|
|
|
2059
2175
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
2060
2176
|
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
2061
2177
|
generateParamConfigMetadata('mlModel', false, 2 /* Body */, 0 /* String */),
|
|
2178
|
+
generateParamConfigMetadata('extractedDloConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2062
2179
|
generateParamConfigMetadata('schemaConfig', false, 2 /* Body */, 0 /* String */),
|
|
2063
2180
|
generateParamConfigMetadata('sourceDmoDeveloperName', false, 2 /* Body */, 0 /* String */),
|
|
2064
2181
|
];
|
|
@@ -2067,6 +2184,24 @@ const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateIdpConfi
|
|
|
2067
2184
|
function typeCheckConfig(untrustedConfig) {
|
|
2068
2185
|
const config = {};
|
|
2069
2186
|
typeCheckConfig$8(untrustedConfig, config, updateIdpConfiguration_ConfigPropertyMetadata);
|
|
2187
|
+
const untrustedConfig_extractedDloConfig = untrustedConfig.extractedDloConfig;
|
|
2188
|
+
if (untrustedIsObject(untrustedConfig_extractedDloConfig)) {
|
|
2189
|
+
const untrustedConfig_extractedDloConfig_object = {};
|
|
2190
|
+
const untrustedConfig_extractedDloConfig_keys = Object.keys(untrustedConfig_extractedDloConfig);
|
|
2191
|
+
for (let i = 0, arrayLength = untrustedConfig_extractedDloConfig_keys.length; i < arrayLength; i++) {
|
|
2192
|
+
const key = untrustedConfig_extractedDloConfig_keys[i];
|
|
2193
|
+
const untrustedConfig_extractedDloConfig_prop = untrustedConfig_extractedDloConfig[key];
|
|
2194
|
+
const referenceExtractedDloEntryRepresentationValidationError = validate$d(untrustedConfig_extractedDloConfig_prop);
|
|
2195
|
+
if (referenceExtractedDloEntryRepresentationValidationError === null) {
|
|
2196
|
+
if (untrustedConfig_extractedDloConfig_object !== undefined) {
|
|
2197
|
+
untrustedConfig_extractedDloConfig_object[key] = untrustedConfig_extractedDloConfig_prop;
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
if (untrustedConfig_extractedDloConfig_object !== undefined && Object.keys(untrustedConfig_extractedDloConfig_object).length >= 0) {
|
|
2202
|
+
config.extractedDloConfig = untrustedConfig_extractedDloConfig_object;
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2070
2205
|
return config;
|
|
2071
2206
|
}
|
|
2072
2207
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2193,4 +2328,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2193
2328
|
});
|
|
2194
2329
|
|
|
2195
2330
|
export { createIdpConfiguration, deleteIdpConfiguration, extractDataUsingIdpConfiguration, extractDataUsingIdpConfiguration_imperative, generateIdpConfigurationSchema, getIdpConfiguration, getIdpConfigurationNotifyChange, getIdpConfiguration_imperative, getIdpConfigurations, getIdpConfigurations_imperative, getIdpGlobalConfig, getIdpGlobalConfig_imperative, updateIdpConfiguration };
|
|
2196
|
-
// version: 1.
|
|
2331
|
+
// version: 1.425.0-7665d4cffc
|
package/src/raml/api.raml
CHANGED
|
@@ -170,6 +170,13 @@ types:
|
|
|
170
170
|
runtimeStatus:
|
|
171
171
|
description: fileConfig
|
|
172
172
|
type: string | nil
|
|
173
|
+
extractedDloConfig:
|
|
174
|
+
description: Map of extracted DLO (Data Layout Object) configuration. Keys are dynamic (e.g. sales_invoices); each value is a DLO entry with name, label, category, eventDateFieldName, and fields. Aligns with Data 360 Connect API createDocumentAIConfiguration.
|
|
175
|
+
type: object
|
|
176
|
+
required: false
|
|
177
|
+
properties:
|
|
178
|
+
//:
|
|
179
|
+
type: ExtractedDloEntryRepresentation
|
|
173
180
|
IdpConfigurationInputRepresentation:
|
|
174
181
|
description: The input representation for Idp Configuration
|
|
175
182
|
type: object
|
|
@@ -206,10 +213,18 @@ types:
|
|
|
206
213
|
configMetadata:
|
|
207
214
|
description: A map of custom key-value pairs serialized as JSON
|
|
208
215
|
type: object
|
|
216
|
+
required: false
|
|
209
217
|
properties:
|
|
210
|
-
|
|
218
|
+
//:
|
|
211
219
|
description: Source of idp config creation
|
|
212
220
|
type: string
|
|
221
|
+
extractedDloConfig:
|
|
222
|
+
description: Map of extracted DLO (Data Layout Object) configuration. Keys are dynamic (e.g. sales_invoices); each value is a DLO entry with name, label, category, eventDateFieldName, and fields. Aligns with Data 360 Connect API createDocumentAIConfiguration.
|
|
223
|
+
type: object
|
|
224
|
+
required: false
|
|
225
|
+
properties:
|
|
226
|
+
//:
|
|
227
|
+
type: ExtractedDloEntryRepresentation
|
|
213
228
|
schemaConfig:
|
|
214
229
|
description: The schema of the data to be extracted
|
|
215
230
|
type: string
|
|
@@ -241,6 +256,13 @@ types:
|
|
|
241
256
|
description: The ML model used to extract the unstructured data
|
|
242
257
|
type: string
|
|
243
258
|
required: false
|
|
259
|
+
extractedDloConfig:
|
|
260
|
+
description: Map of extracted DLO (Data Layout Object) configuration. Keys are dynamic (e.g. sales_invoices); each value is a DLO entry with name, label, category, eventDateFieldName, and fields. Aligns with Data 360 Connect API createDocumentAIConfiguration.
|
|
261
|
+
type: object
|
|
262
|
+
required: false
|
|
263
|
+
properties:
|
|
264
|
+
//:
|
|
265
|
+
type: ExtractedDloEntryRepresentation
|
|
244
266
|
schemaConfig:
|
|
245
267
|
description: The schema of the data to be extracted
|
|
246
268
|
type: string
|
|
@@ -325,6 +347,41 @@ types:
|
|
|
325
347
|
status:
|
|
326
348
|
description: E.g. ENABLED, DISABLED
|
|
327
349
|
type: string
|
|
350
|
+
ExtractedDloFieldRepresentation:
|
|
351
|
+
description: A single field in an extracted DLO (e.g. invoice_date, product). Keys under fields are dynamic.
|
|
352
|
+
type: object
|
|
353
|
+
properties:
|
|
354
|
+
name:
|
|
355
|
+
description: The API name of the field (e.g. InvoiceDate__c)
|
|
356
|
+
type: string
|
|
357
|
+
label:
|
|
358
|
+
description: The display label of the field (e.g. Invoice Date)
|
|
359
|
+
type: string
|
|
360
|
+
dataType:
|
|
361
|
+
description: The data type of the field (e.g. Date, Text)
|
|
362
|
+
type: string
|
|
363
|
+
ExtractedDloEntryRepresentation:
|
|
364
|
+
description: A single DLO entry in extractedDloConfig (e.g. sales_invoices). Top-level keys under extractedDloConfig are dynamic.
|
|
365
|
+
type: object
|
|
366
|
+
properties:
|
|
367
|
+
name:
|
|
368
|
+
description: The API name of the DLO (e.g. SalesInvoices__dll)
|
|
369
|
+
type: string
|
|
370
|
+
label:
|
|
371
|
+
description: The display label of the DLO (e.g. Sales Invoices)
|
|
372
|
+
type: string
|
|
373
|
+
category:
|
|
374
|
+
description: The category of the DLO (e.g. Engagement)
|
|
375
|
+
type: string
|
|
376
|
+
eventDateFieldName:
|
|
377
|
+
description: The API name of the event date field (e.g. InvoiceDate__c)
|
|
378
|
+
type: string
|
|
379
|
+
fields:
|
|
380
|
+
description: Map of field keys to field definitions. Keys are dynamic (e.g. invoice_date, product)
|
|
381
|
+
type: object
|
|
382
|
+
properties:
|
|
383
|
+
//:
|
|
384
|
+
type: ExtractedDloFieldRepresentation
|
|
328
385
|
IdpGenerateSchemaFileInputRepresentation:
|
|
329
386
|
description: The generate schema file input representation for Idp Configuration
|
|
330
387
|
type: object
|
|
@@ -495,6 +552,10 @@ types:
|
|
|
495
552
|
application/json:
|
|
496
553
|
type: IdpGenerateSchemaInputRepresentation
|
|
497
554
|
(oas-body-name): generateIdpConfigurationSchema
|
|
555
|
+
queryParameters:
|
|
556
|
+
idpClientPartnerId:
|
|
557
|
+
type: string
|
|
558
|
+
required: false
|
|
498
559
|
/actions/extract-data:
|
|
499
560
|
post:
|
|
500
561
|
displayName: extractDataUsingIdpConfiguration
|