@salesforce/lds-adapters-cdp-document-processing 1.356.0 → 1.358.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.
|
@@ -506,7 +506,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
506
506
|
function createResourceRequest$5(config) {
|
|
507
507
|
const headers = {};
|
|
508
508
|
return {
|
|
509
|
-
baseUri: '/services/data/
|
|
509
|
+
baseUri: '/services/data/v65.0',
|
|
510
510
|
basePath: '/ssot/document-processing/configurations',
|
|
511
511
|
method: 'get',
|
|
512
512
|
body: null,
|
|
@@ -608,53 +608,119 @@ const getIdpConfigurationsAdapterFactory = (luvio) => function documentProcessin
|
|
|
608
608
|
};
|
|
609
609
|
|
|
610
610
|
const TTL$2 = 500;
|
|
611
|
-
const VERSION$3 = "
|
|
611
|
+
const VERSION$3 = "8bf201cc7509ac5c7e3db70eba261ab8";
|
|
612
612
|
function validate$5(obj, path = 'IdpConfigurationDetailsRepresentation') {
|
|
613
613
|
const v_error = (() => {
|
|
614
614
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
615
615
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
616
616
|
}
|
|
617
|
+
const obj_createdBy = obj.createdBy;
|
|
618
|
+
const path_createdBy = path + '.createdBy';
|
|
619
|
+
if (obj_createdBy === undefined) {
|
|
620
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
|
|
621
|
+
}
|
|
622
|
+
const obj_createdDate = obj.createdDate;
|
|
623
|
+
const path_createdDate = path + '.createdDate';
|
|
624
|
+
if (typeof obj_createdDate !== 'string') {
|
|
625
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
626
|
+
}
|
|
627
|
+
const obj_description = obj.description;
|
|
628
|
+
const path_description = path + '.description';
|
|
629
|
+
if (obj_description === undefined) {
|
|
630
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
631
|
+
}
|
|
632
|
+
const obj_id = obj.id;
|
|
633
|
+
const path_id = path + '.id';
|
|
634
|
+
if (typeof obj_id !== 'string') {
|
|
635
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
636
|
+
}
|
|
637
|
+
const obj_label = obj.label;
|
|
638
|
+
const path_label = path + '.label';
|
|
639
|
+
if (typeof obj_label !== 'string') {
|
|
640
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
641
|
+
}
|
|
642
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
643
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
644
|
+
if (obj_lastModifiedBy === undefined) {
|
|
645
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_lastModifiedBy + '" (at "' + path_lastModifiedBy + '")');
|
|
646
|
+
}
|
|
647
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
648
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
649
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
650
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
651
|
+
}
|
|
652
|
+
const obj_mlModel = obj.mlModel;
|
|
653
|
+
const path_mlModel = path + '.mlModel';
|
|
654
|
+
let obj_mlModel_union0 = null;
|
|
655
|
+
const obj_mlModel_union0_error = (() => {
|
|
656
|
+
if (typeof obj_mlModel !== 'string') {
|
|
657
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mlModel + '" (at "' + path_mlModel + '")');
|
|
658
|
+
}
|
|
659
|
+
})();
|
|
660
|
+
if (obj_mlModel_union0_error != null) {
|
|
661
|
+
obj_mlModel_union0 = obj_mlModel_union0_error.message;
|
|
662
|
+
}
|
|
663
|
+
let obj_mlModel_union1 = null;
|
|
664
|
+
const obj_mlModel_union1_error = (() => {
|
|
665
|
+
if (obj_mlModel !== null) {
|
|
666
|
+
return new TypeError('Expected "null" but received "' + typeof obj_mlModel + '" (at "' + path_mlModel + '")');
|
|
667
|
+
}
|
|
668
|
+
})();
|
|
669
|
+
if (obj_mlModel_union1_error != null) {
|
|
670
|
+
obj_mlModel_union1 = obj_mlModel_union1_error.message;
|
|
671
|
+
}
|
|
672
|
+
if (obj_mlModel_union0 && obj_mlModel_union1) {
|
|
673
|
+
let message = 'Object doesn\'t match union (at "' + path_mlModel + '")';
|
|
674
|
+
message += '\n' + obj_mlModel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
675
|
+
message += '\n' + obj_mlModel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
676
|
+
return new TypeError(message);
|
|
677
|
+
}
|
|
617
678
|
const obj_name = obj.name;
|
|
618
679
|
const path_name = path + '.name';
|
|
619
680
|
if (typeof obj_name !== 'string') {
|
|
620
681
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
621
682
|
}
|
|
622
|
-
const
|
|
623
|
-
const
|
|
624
|
-
let
|
|
625
|
-
const
|
|
626
|
-
if (typeof
|
|
627
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
683
|
+
const obj_runtimeStatus = obj.runtimeStatus;
|
|
684
|
+
const path_runtimeStatus = path + '.runtimeStatus';
|
|
685
|
+
let obj_runtimeStatus_union0 = null;
|
|
686
|
+
const obj_runtimeStatus_union0_error = (() => {
|
|
687
|
+
if (typeof obj_runtimeStatus !== 'string') {
|
|
688
|
+
return new TypeError('Expected "string" but received "' + typeof obj_runtimeStatus + '" (at "' + path_runtimeStatus + '")');
|
|
628
689
|
}
|
|
629
690
|
})();
|
|
630
|
-
if (
|
|
631
|
-
|
|
691
|
+
if (obj_runtimeStatus_union0_error != null) {
|
|
692
|
+
obj_runtimeStatus_union0 = obj_runtimeStatus_union0_error.message;
|
|
632
693
|
}
|
|
633
|
-
let
|
|
634
|
-
const
|
|
635
|
-
if (
|
|
636
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
694
|
+
let obj_runtimeStatus_union1 = null;
|
|
695
|
+
const obj_runtimeStatus_union1_error = (() => {
|
|
696
|
+
if (obj_runtimeStatus !== null) {
|
|
697
|
+
return new TypeError('Expected "null" but received "' + typeof obj_runtimeStatus + '" (at "' + path_runtimeStatus + '")');
|
|
637
698
|
}
|
|
638
699
|
})();
|
|
639
|
-
if (
|
|
640
|
-
|
|
700
|
+
if (obj_runtimeStatus_union1_error != null) {
|
|
701
|
+
obj_runtimeStatus_union1 = obj_runtimeStatus_union1_error.message;
|
|
641
702
|
}
|
|
642
|
-
if (
|
|
643
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
644
|
-
message += '\n' +
|
|
645
|
-
message += '\n' +
|
|
703
|
+
if (obj_runtimeStatus_union0 && obj_runtimeStatus_union1) {
|
|
704
|
+
let message = 'Object doesn\'t match union (at "' + path_runtimeStatus + '")';
|
|
705
|
+
message += '\n' + obj_runtimeStatus_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
706
|
+
message += '\n' + obj_runtimeStatus_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
646
707
|
return new TypeError(message);
|
|
647
708
|
}
|
|
709
|
+
const obj_schemaConfig = obj.schemaConfig;
|
|
710
|
+
const path_schemaConfig = path + '.schemaConfig';
|
|
711
|
+
if (typeof obj_schemaConfig !== 'string') {
|
|
712
|
+
return new TypeError('Expected "string" but received "' + typeof obj_schemaConfig + '" (at "' + path_schemaConfig + '")');
|
|
713
|
+
}
|
|
648
714
|
})();
|
|
649
715
|
return v_error === undefined ? null : v_error;
|
|
650
716
|
}
|
|
651
717
|
const RepresentationType$3 = 'IdpConfigurationDetailsRepresentation';
|
|
652
718
|
function keyBuilder$7(luvio, config) {
|
|
653
|
-
return keyPrefix + '::' + RepresentationType$3 + ':' + config.
|
|
719
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
|
|
654
720
|
}
|
|
655
721
|
function keyBuilderFromType(luvio, object) {
|
|
656
722
|
const keyParams = {
|
|
657
|
-
|
|
723
|
+
id: object.id
|
|
658
724
|
};
|
|
659
725
|
return keyBuilder$7(luvio, keyParams);
|
|
660
726
|
}
|
|
@@ -666,27 +732,11 @@ const select$7 = function IdpConfigurationDetailsRepresentationSelect() {
|
|
|
666
732
|
kind: 'Fragment',
|
|
667
733
|
version: VERSION$3,
|
|
668
734
|
private: [],
|
|
669
|
-
|
|
670
|
-
{
|
|
671
|
-
name: 'name',
|
|
672
|
-
kind: 'Scalar'
|
|
673
|
-
},
|
|
674
|
-
{
|
|
675
|
-
name: 'schemaConfig',
|
|
676
|
-
kind: 'Scalar'
|
|
677
|
-
}
|
|
678
|
-
]
|
|
735
|
+
opaque: true
|
|
679
736
|
};
|
|
680
737
|
};
|
|
681
738
|
function equals$3(existing, incoming) {
|
|
682
|
-
|
|
683
|
-
const incoming_name = incoming.name;
|
|
684
|
-
if (!(existing_name === incoming_name)) {
|
|
685
|
-
return false;
|
|
686
|
-
}
|
|
687
|
-
const existing_schemaConfig = existing.schemaConfig;
|
|
688
|
-
const incoming_schemaConfig = incoming.schemaConfig;
|
|
689
|
-
if (!(existing_schemaConfig === incoming_schemaConfig)) {
|
|
739
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
690
740
|
return false;
|
|
691
741
|
}
|
|
692
742
|
return true;
|
|
@@ -739,7 +789,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
739
789
|
function createResourceRequest$4(config) {
|
|
740
790
|
const headers = {};
|
|
741
791
|
return {
|
|
742
|
-
baseUri: '/services/data/
|
|
792
|
+
baseUri: '/services/data/v65.0',
|
|
743
793
|
basePath: '/ssot/document-processing/configurations',
|
|
744
794
|
method: 'post',
|
|
745
795
|
body: config.body,
|
|
@@ -829,7 +879,7 @@ const createIdpConfigurationAdapterFactory = (luvio) => {
|
|
|
829
879
|
|
|
830
880
|
function keyBuilder$6(luvio, params) {
|
|
831
881
|
return keyBuilder$7(luvio, {
|
|
832
|
-
|
|
882
|
+
id: params.urlParams.idOrApiName
|
|
833
883
|
});
|
|
834
884
|
}
|
|
835
885
|
function getResponseCacheKeys$3(cacheKeyMap, luvio, resourceParams) {
|
|
@@ -847,7 +897,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
847
897
|
function createResourceRequest$3(config) {
|
|
848
898
|
const headers = {};
|
|
849
899
|
return {
|
|
850
|
-
baseUri: '/services/data/
|
|
900
|
+
baseUri: '/services/data/v65.0',
|
|
851
901
|
basePath: '/ssot/document-processing/configurations/' + config.urlParams.idOrApiName + '',
|
|
852
902
|
method: 'delete',
|
|
853
903
|
body: null,
|
|
@@ -916,7 +966,7 @@ function select$5(luvio, params) {
|
|
|
916
966
|
}
|
|
917
967
|
function keyBuilder$5(luvio, params) {
|
|
918
968
|
return keyBuilder$7(luvio, {
|
|
919
|
-
|
|
969
|
+
id: params.urlParams.idOrApiName
|
|
920
970
|
});
|
|
921
971
|
}
|
|
922
972
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -954,7 +1004,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
954
1004
|
function createResourceRequest$2(config) {
|
|
955
1005
|
const headers = {};
|
|
956
1006
|
return {
|
|
957
|
-
baseUri: '/services/data/
|
|
1007
|
+
baseUri: '/services/data/v65.0',
|
|
958
1008
|
basePath: '/ssot/document-processing/configurations/' + config.urlParams.idOrApiName + '',
|
|
959
1009
|
method: 'get',
|
|
960
1010
|
body: null,
|
|
@@ -1240,7 +1290,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
1240
1290
|
function createResourceRequest$1(config) {
|
|
1241
1291
|
const headers = {};
|
|
1242
1292
|
return {
|
|
1243
|
-
baseUri: '/services/data/
|
|
1293
|
+
baseUri: '/services/data/v65.0',
|
|
1244
1294
|
basePath: '/ssot/document-processing/global-config',
|
|
1245
1295
|
method: 'get',
|
|
1246
1296
|
body: null,
|
|
@@ -1551,7 +1601,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
1551
1601
|
function createResourceRequest(config) {
|
|
1552
1602
|
const headers = {};
|
|
1553
1603
|
return {
|
|
1554
|
-
baseUri: '/services/data/
|
|
1604
|
+
baseUri: '/services/data/v65.0',
|
|
1555
1605
|
basePath: '/ssot/document-processing/actions/extract-data',
|
|
1556
1606
|
method: 'post',
|
|
1557
1607
|
body: config.body,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
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,
|
|
1
|
+
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
2
|
export declare const TTL = 500;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "8bf201cc7509ac5c7e3db70eba261ab8";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
-
|
|
7
|
+
id: string;
|
|
8
8
|
}
|
|
9
9
|
export type IdpConfigurationDetailsRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
10
|
export type PartialIdpConfigurationDetailsRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
@@ -13,7 +13,7 @@ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio,
|
|
|
13
13
|
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: IdpConfigurationDetailsRepresentation): string;
|
|
14
14
|
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: IdpConfigurationDetailsRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function normalize(input: IdpConfigurationDetailsRepresentation, existing: IdpConfigurationDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpConfigurationDetailsRepresentationNormalized;
|
|
16
|
-
export declare const select: () => $64$
|
|
16
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
17
17
|
export declare function equals(existing: IdpConfigurationDetailsRepresentationNormalized, incoming: IdpConfigurationDetailsRepresentationNormalized): boolean;
|
|
18
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
19
|
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: IdpConfigurationDetailsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
@@ -21,21 +21,48 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
21
21
|
* Idp Configuration Details Representation
|
|
22
22
|
*
|
|
23
23
|
* Keys:
|
|
24
|
-
*
|
|
24
|
+
* id (string): id
|
|
25
25
|
*/
|
|
26
26
|
export interface IdpConfigurationDetailsRepresentationNormalized {
|
|
27
|
-
/**
|
|
27
|
+
/** Created by */
|
|
28
|
+
createdBy: unknown;
|
|
29
|
+
/** Created date */
|
|
30
|
+
createdDate: string;
|
|
31
|
+
/** description of config */
|
|
32
|
+
description: unknown;
|
|
33
|
+
/** The 18 character ID of the asset */
|
|
34
|
+
id: string;
|
|
35
|
+
/** Label of the asset */
|
|
36
|
+
label: string;
|
|
37
|
+
/** Last modified by */
|
|
38
|
+
lastModifiedBy: unknown;
|
|
39
|
+
/** Last modified date */
|
|
40
|
+
lastModifiedDate: string;
|
|
41
|
+
/** fileConfig */
|
|
42
|
+
mlModel: string | null;
|
|
43
|
+
/** Name of the asset */
|
|
28
44
|
name: string;
|
|
45
|
+
/** fileConfig */
|
|
46
|
+
runtimeStatus: string | null;
|
|
29
47
|
/** The schema of the data to be extracted */
|
|
30
|
-
schemaConfig: string
|
|
48
|
+
schemaConfig: string;
|
|
31
49
|
}
|
|
32
50
|
/**
|
|
33
51
|
* Idp Configuration Details Representation
|
|
34
52
|
*
|
|
35
53
|
* Keys:
|
|
36
|
-
*
|
|
54
|
+
* id (string): id
|
|
37
55
|
*/
|
|
38
56
|
export interface IdpConfigurationDetailsRepresentation {
|
|
57
|
+
createdBy: unknown;
|
|
58
|
+
createdDate: string;
|
|
59
|
+
description: unknown;
|
|
60
|
+
id: string;
|
|
61
|
+
label: string;
|
|
62
|
+
lastModifiedBy: unknown;
|
|
63
|
+
lastModifiedDate: string;
|
|
64
|
+
mlModel: string | null;
|
|
39
65
|
name: string;
|
|
40
|
-
|
|
66
|
+
runtimeStatus: string | null;
|
|
67
|
+
schemaConfig: string;
|
|
41
68
|
}
|
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.358.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.358.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.358.0"
|
|
49
49
|
},
|
|
50
50
|
"nx": {
|
|
51
51
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -103,53 +103,119 @@ function createLink(ref) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
const TTL$4 = 500;
|
|
106
|
-
const VERSION$4 = "
|
|
106
|
+
const VERSION$4 = "8bf201cc7509ac5c7e3db70eba261ab8";
|
|
107
107
|
function validate$a(obj, path = 'IdpConfigurationDetailsRepresentation') {
|
|
108
108
|
const v_error = (() => {
|
|
109
109
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
110
110
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
111
111
|
}
|
|
112
|
+
const obj_createdBy = obj.createdBy;
|
|
113
|
+
const path_createdBy = path + '.createdBy';
|
|
114
|
+
if (obj_createdBy === undefined) {
|
|
115
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
|
|
116
|
+
}
|
|
117
|
+
const obj_createdDate = obj.createdDate;
|
|
118
|
+
const path_createdDate = path + '.createdDate';
|
|
119
|
+
if (typeof obj_createdDate !== 'string') {
|
|
120
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
121
|
+
}
|
|
122
|
+
const obj_description = obj.description;
|
|
123
|
+
const path_description = path + '.description';
|
|
124
|
+
if (obj_description === undefined) {
|
|
125
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
126
|
+
}
|
|
127
|
+
const obj_id = obj.id;
|
|
128
|
+
const path_id = path + '.id';
|
|
129
|
+
if (typeof obj_id !== 'string') {
|
|
130
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
131
|
+
}
|
|
132
|
+
const obj_label = obj.label;
|
|
133
|
+
const path_label = path + '.label';
|
|
134
|
+
if (typeof obj_label !== 'string') {
|
|
135
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
136
|
+
}
|
|
137
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
138
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
139
|
+
if (obj_lastModifiedBy === undefined) {
|
|
140
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_lastModifiedBy + '" (at "' + path_lastModifiedBy + '")');
|
|
141
|
+
}
|
|
142
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
143
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
144
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
145
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
146
|
+
}
|
|
147
|
+
const obj_mlModel = obj.mlModel;
|
|
148
|
+
const path_mlModel = path + '.mlModel';
|
|
149
|
+
let obj_mlModel_union0 = null;
|
|
150
|
+
const obj_mlModel_union0_error = (() => {
|
|
151
|
+
if (typeof obj_mlModel !== 'string') {
|
|
152
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mlModel + '" (at "' + path_mlModel + '")');
|
|
153
|
+
}
|
|
154
|
+
})();
|
|
155
|
+
if (obj_mlModel_union0_error != null) {
|
|
156
|
+
obj_mlModel_union0 = obj_mlModel_union0_error.message;
|
|
157
|
+
}
|
|
158
|
+
let obj_mlModel_union1 = null;
|
|
159
|
+
const obj_mlModel_union1_error = (() => {
|
|
160
|
+
if (obj_mlModel !== null) {
|
|
161
|
+
return new TypeError('Expected "null" but received "' + typeof obj_mlModel + '" (at "' + path_mlModel + '")');
|
|
162
|
+
}
|
|
163
|
+
})();
|
|
164
|
+
if (obj_mlModel_union1_error != null) {
|
|
165
|
+
obj_mlModel_union1 = obj_mlModel_union1_error.message;
|
|
166
|
+
}
|
|
167
|
+
if (obj_mlModel_union0 && obj_mlModel_union1) {
|
|
168
|
+
let message = 'Object doesn\'t match union (at "' + path_mlModel + '")';
|
|
169
|
+
message += '\n' + obj_mlModel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
170
|
+
message += '\n' + obj_mlModel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
171
|
+
return new TypeError(message);
|
|
172
|
+
}
|
|
112
173
|
const obj_name = obj.name;
|
|
113
174
|
const path_name = path + '.name';
|
|
114
175
|
if (typeof obj_name !== 'string') {
|
|
115
176
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
116
177
|
}
|
|
117
|
-
const
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
const
|
|
121
|
-
if (typeof
|
|
122
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
178
|
+
const obj_runtimeStatus = obj.runtimeStatus;
|
|
179
|
+
const path_runtimeStatus = path + '.runtimeStatus';
|
|
180
|
+
let obj_runtimeStatus_union0 = null;
|
|
181
|
+
const obj_runtimeStatus_union0_error = (() => {
|
|
182
|
+
if (typeof obj_runtimeStatus !== 'string') {
|
|
183
|
+
return new TypeError('Expected "string" but received "' + typeof obj_runtimeStatus + '" (at "' + path_runtimeStatus + '")');
|
|
123
184
|
}
|
|
124
185
|
})();
|
|
125
|
-
if (
|
|
126
|
-
|
|
186
|
+
if (obj_runtimeStatus_union0_error != null) {
|
|
187
|
+
obj_runtimeStatus_union0 = obj_runtimeStatus_union0_error.message;
|
|
127
188
|
}
|
|
128
|
-
let
|
|
129
|
-
const
|
|
130
|
-
if (
|
|
131
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
189
|
+
let obj_runtimeStatus_union1 = null;
|
|
190
|
+
const obj_runtimeStatus_union1_error = (() => {
|
|
191
|
+
if (obj_runtimeStatus !== null) {
|
|
192
|
+
return new TypeError('Expected "null" but received "' + typeof obj_runtimeStatus + '" (at "' + path_runtimeStatus + '")');
|
|
132
193
|
}
|
|
133
194
|
})();
|
|
134
|
-
if (
|
|
135
|
-
|
|
195
|
+
if (obj_runtimeStatus_union1_error != null) {
|
|
196
|
+
obj_runtimeStatus_union1 = obj_runtimeStatus_union1_error.message;
|
|
136
197
|
}
|
|
137
|
-
if (
|
|
138
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
139
|
-
message += '\n' +
|
|
140
|
-
message += '\n' +
|
|
198
|
+
if (obj_runtimeStatus_union0 && obj_runtimeStatus_union1) {
|
|
199
|
+
let message = 'Object doesn\'t match union (at "' + path_runtimeStatus + '")';
|
|
200
|
+
message += '\n' + obj_runtimeStatus_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
201
|
+
message += '\n' + obj_runtimeStatus_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
141
202
|
return new TypeError(message);
|
|
142
203
|
}
|
|
204
|
+
const obj_schemaConfig = obj.schemaConfig;
|
|
205
|
+
const path_schemaConfig = path + '.schemaConfig';
|
|
206
|
+
if (typeof obj_schemaConfig !== 'string') {
|
|
207
|
+
return new TypeError('Expected "string" but received "' + typeof obj_schemaConfig + '" (at "' + path_schemaConfig + '")');
|
|
208
|
+
}
|
|
143
209
|
})();
|
|
144
210
|
return v_error === undefined ? null : v_error;
|
|
145
211
|
}
|
|
146
212
|
const RepresentationType$4 = 'IdpConfigurationDetailsRepresentation';
|
|
147
213
|
function keyBuilder$9(luvio, config) {
|
|
148
|
-
return keyPrefix + '::' + RepresentationType$4 + ':' + config.
|
|
214
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
149
215
|
}
|
|
150
216
|
function keyBuilderFromType(luvio, object) {
|
|
151
217
|
const keyParams = {
|
|
152
|
-
|
|
218
|
+
id: object.id
|
|
153
219
|
};
|
|
154
220
|
return keyBuilder$9(luvio, keyParams);
|
|
155
221
|
}
|
|
@@ -161,27 +227,11 @@ const select$9 = function IdpConfigurationDetailsRepresentationSelect() {
|
|
|
161
227
|
kind: 'Fragment',
|
|
162
228
|
version: VERSION$4,
|
|
163
229
|
private: [],
|
|
164
|
-
|
|
165
|
-
{
|
|
166
|
-
name: 'name',
|
|
167
|
-
kind: 'Scalar'
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: 'schemaConfig',
|
|
171
|
-
kind: 'Scalar'
|
|
172
|
-
}
|
|
173
|
-
]
|
|
230
|
+
opaque: true
|
|
174
231
|
};
|
|
175
232
|
};
|
|
176
233
|
function equals$8(existing, incoming) {
|
|
177
|
-
|
|
178
|
-
const incoming_name = incoming.name;
|
|
179
|
-
if (!(existing_name === incoming_name)) {
|
|
180
|
-
return false;
|
|
181
|
-
}
|
|
182
|
-
const existing_schemaConfig = existing.schemaConfig;
|
|
183
|
-
const incoming_schemaConfig = incoming.schemaConfig;
|
|
184
|
-
if (!(existing_schemaConfig === incoming_schemaConfig)) {
|
|
234
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
185
235
|
return false;
|
|
186
236
|
}
|
|
187
237
|
return true;
|
|
@@ -234,7 +284,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
234
284
|
function createResourceRequest$5(config) {
|
|
235
285
|
const headers = {};
|
|
236
286
|
return {
|
|
237
|
-
baseUri: '/services/data/
|
|
287
|
+
baseUri: '/services/data/v65.0',
|
|
238
288
|
basePath: '/ssot/document-processing/configurations',
|
|
239
289
|
method: 'post',
|
|
240
290
|
body: config.body,
|
|
@@ -324,7 +374,7 @@ const createIdpConfigurationAdapterFactory = (luvio) => {
|
|
|
324
374
|
|
|
325
375
|
function keyBuilder$8(luvio, params) {
|
|
326
376
|
return keyBuilder$9(luvio, {
|
|
327
|
-
|
|
377
|
+
id: params.urlParams.idOrApiName
|
|
328
378
|
});
|
|
329
379
|
}
|
|
330
380
|
function getResponseCacheKeys$4(cacheKeyMap, luvio, resourceParams) {
|
|
@@ -342,7 +392,7 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
342
392
|
function createResourceRequest$4(config) {
|
|
343
393
|
const headers = {};
|
|
344
394
|
return {
|
|
345
|
-
baseUri: '/services/data/
|
|
395
|
+
baseUri: '/services/data/v65.0',
|
|
346
396
|
basePath: '/ssot/document-processing/configurations/' + config.urlParams.idOrApiName + '',
|
|
347
397
|
method: 'delete',
|
|
348
398
|
body: null,
|
|
@@ -623,7 +673,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
623
673
|
function createResourceRequest$3(config) {
|
|
624
674
|
const headers = {};
|
|
625
675
|
return {
|
|
626
|
-
baseUri: '/services/data/
|
|
676
|
+
baseUri: '/services/data/v65.0',
|
|
627
677
|
basePath: '/ssot/document-processing/actions/extract-data',
|
|
628
678
|
method: 'post',
|
|
629
679
|
body: config.body,
|
|
@@ -745,7 +795,7 @@ function select$4(luvio, params) {
|
|
|
745
795
|
}
|
|
746
796
|
function keyBuilder$5(luvio, params) {
|
|
747
797
|
return keyBuilder$9(luvio, {
|
|
748
|
-
|
|
798
|
+
id: params.urlParams.idOrApiName
|
|
749
799
|
});
|
|
750
800
|
}
|
|
751
801
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -783,7 +833,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
783
833
|
function createResourceRequest$2(config) {
|
|
784
834
|
const headers = {};
|
|
785
835
|
return {
|
|
786
|
-
baseUri: '/services/data/
|
|
836
|
+
baseUri: '/services/data/v65.0',
|
|
787
837
|
basePath: '/ssot/document-processing/configurations/' + config.urlParams.idOrApiName + '',
|
|
788
838
|
method: 'get',
|
|
789
839
|
body: null,
|
|
@@ -797,7 +847,7 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
797
847
|
const config = {
|
|
798
848
|
urlParams: {},
|
|
799
849
|
};
|
|
800
|
-
config.urlParams.idOrApiName = representation.
|
|
850
|
+
config.urlParams.idOrApiName = representation.id;
|
|
801
851
|
return createResourceRequest$2(config);
|
|
802
852
|
}
|
|
803
853
|
|
|
@@ -1335,7 +1385,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
1335
1385
|
function createResourceRequest$1(config) {
|
|
1336
1386
|
const headers = {};
|
|
1337
1387
|
return {
|
|
1338
|
-
baseUri: '/services/data/
|
|
1388
|
+
baseUri: '/services/data/v65.0',
|
|
1339
1389
|
basePath: '/ssot/document-processing/configurations',
|
|
1340
1390
|
method: 'get',
|
|
1341
1391
|
body: null,
|
|
@@ -1625,7 +1675,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
1625
1675
|
function createResourceRequest(config) {
|
|
1626
1676
|
const headers = {};
|
|
1627
1677
|
return {
|
|
1628
|
-
baseUri: '/services/data/
|
|
1678
|
+
baseUri: '/services/data/v65.0',
|
|
1629
1679
|
basePath: '/ssot/document-processing/global-config',
|
|
1630
1680
|
method: 'get',
|
|
1631
1681
|
body: null,
|
|
@@ -1795,4 +1845,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1795
1845
|
});
|
|
1796
1846
|
|
|
1797
1847
|
export { createIdpConfiguration, deleteIdpConfiguration, extractDataUsingIdpConfiguration, extractDataUsingIdpConfiguration_imperative, getIdpConfiguration, getIdpConfigurationNotifyChange, getIdpConfiguration_imperative, getIdpConfigurations, getIdpConfigurations_imperative, getIdpGlobalConfig, getIdpGlobalConfig_imperative };
|
|
1798
|
-
// version: 1.
|
|
1848
|
+
// version: 1.358.0-abc73971a1
|
package/src/raml/api.raml
CHANGED
|
@@ -6,7 +6,7 @@ version: '64.0'
|
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
9
|
-
baseUri: /services/data/
|
|
9
|
+
baseUri: /services/data/v65.0
|
|
10
10
|
securitySchemes:
|
|
11
11
|
OAuth2:
|
|
12
12
|
type: OAuth 2.0
|
|
@@ -134,10 +134,37 @@ types:
|
|
|
134
134
|
properties:
|
|
135
135
|
schemaConfig:
|
|
136
136
|
description: The schema of the data to be extracted
|
|
137
|
-
type: string
|
|
137
|
+
type: string
|
|
138
|
+
createdBy:
|
|
139
|
+
description: Created by
|
|
140
|
+
type: any
|
|
141
|
+
createdDate:
|
|
142
|
+
description: Created date
|
|
143
|
+
type: string
|
|
144
|
+
id:
|
|
145
|
+
description: The 18 character ID of the asset
|
|
146
|
+
type: string
|
|
147
|
+
label:
|
|
148
|
+
description: Label of the asset
|
|
149
|
+
type: string
|
|
150
|
+
lastModifiedBy:
|
|
151
|
+
description: Last modified by
|
|
152
|
+
type: any
|
|
153
|
+
lastModifiedDate:
|
|
154
|
+
description: Last modified date
|
|
155
|
+
type: string
|
|
138
156
|
name:
|
|
139
|
-
description:
|
|
157
|
+
description: Name of the asset
|
|
140
158
|
type: string
|
|
159
|
+
description:
|
|
160
|
+
description: description of config
|
|
161
|
+
type: any
|
|
162
|
+
mlModel:
|
|
163
|
+
description: fileConfig
|
|
164
|
+
type: string | nil
|
|
165
|
+
runtimeStatus:
|
|
166
|
+
description: fileConfig
|
|
167
|
+
type: string | nil
|
|
141
168
|
IdpConfigurationInputRepresentation:
|
|
142
169
|
description: The input representation for Idp Configuration
|
|
143
170
|
type: object
|
|
@@ -349,6 +376,7 @@ types:
|
|
|
349
376
|
type: IdpConfigurationDetailsRepresentation
|
|
350
377
|
uriParameters:
|
|
351
378
|
idOrApiName:
|
|
379
|
+
description: Document processing Config ID
|
|
352
380
|
type: string
|
|
353
381
|
required: true
|
|
354
382
|
/global-config:
|
package/src/raml/luvio.raml
CHANGED
|
@@ -42,8 +42,9 @@ types:
|
|
|
42
42
|
|
|
43
43
|
IdpConfigurationDetailsRepresentation:
|
|
44
44
|
(luvio.ttl): 500
|
|
45
|
+
(luvio.opaque): true
|
|
45
46
|
(luvio.key):
|
|
46
|
-
|
|
47
|
+
id: id
|
|
47
48
|
|
|
48
49
|
IdpExtractDataInputRepresentation:
|
|
49
50
|
(luvio.ttl): 500
|
|
@@ -70,13 +71,13 @@ types:
|
|
|
70
71
|
(luvio.adapter):
|
|
71
72
|
name: deleteIdpConfiguration
|
|
72
73
|
(luvio.key):
|
|
73
|
-
|
|
74
|
+
id: urlParams.idOrApiName
|
|
74
75
|
|
|
75
76
|
get:
|
|
76
77
|
(luvio.adapter):
|
|
77
78
|
name: getIdpConfiguration
|
|
78
79
|
(luvio.key):
|
|
79
|
-
|
|
80
|
+
id: urlParams.idOrApiName
|
|
80
81
|
|
|
81
82
|
/global-config:
|
|
82
83
|
get:
|