@salesforce/lds-adapters-cdp-document-processing 1.404.0-dev2 → 1.404.0-dev5
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 +6 -2
- package/dist/es/es2018/types/src/generated/adapters/extractDataUsingIdpConfiguration.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/adapters/updateIdpConfiguration.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/patchSsotDocumentProcessingConfigurationsByIdOrApiName.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingActionsExtractData.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/types/IdpConfigurationBaseRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/IdpConfigurationInputRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/IdpConfigurationPatchInputRepresentation.d.ts +8 -2
- package/package.json +3 -3
- package/sfdc/index.js +7 -3
- package/src/raml/api.raml +22 -3
|
@@ -1156,6 +1156,8 @@ const updateIdpConfiguration_ConfigPropertyMetadata = [
|
|
|
1156
1156
|
generateParamConfigMetadata('activationStatus', false, 2 /* Body */, 0 /* String */),
|
|
1157
1157
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1158
1158
|
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
1159
|
+
generateParamConfigMetadata('mlModel', false, 2 /* Body */, 0 /* String */),
|
|
1160
|
+
generateParamConfigMetadata('schemaConfig', false, 2 /* Body */, 0 /* String */),
|
|
1159
1161
|
];
|
|
1160
1162
|
const updateIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updateIdpConfiguration_ConfigPropertyMetadata);
|
|
1161
1163
|
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(updateIdpConfiguration_ConfigPropertyMetadata);
|
|
@@ -1892,7 +1894,7 @@ function select(luvio, params) {
|
|
|
1892
1894
|
return select$1();
|
|
1893
1895
|
}
|
|
1894
1896
|
function keyBuilder$1(luvio, params) {
|
|
1895
|
-
return keyPrefix + '::IdpExtractedDataRepresentation:(' + '[' + params.body.files.map(element => 'files.fileId:' + element.fileId).join(',') + ']' + '::' + 'mlModel:' + params.body.mlModel + '::' + 'schemaConfig:' + params.body.schemaConfig + ')';
|
|
1897
|
+
return keyPrefix + '::IdpExtractedDataRepresentation:(' + 'extractDataWithConfidenceScore:' + params.queryParams.extractDataWithConfidenceScore + ',' + 'htmlEncode:' + params.queryParams.htmlEncode + ',' + '[' + params.body.files.map(element => 'files.fileId:' + element.fileId).join(',') + ']' + '::' + 'mlModel:' + params.body.mlModel + '::' + 'schemaConfig:' + params.body.schemaConfig + ')';
|
|
1896
1898
|
}
|
|
1897
1899
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1898
1900
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -1934,7 +1936,7 @@ function createResourceRequest(config) {
|
|
|
1934
1936
|
method: 'post',
|
|
1935
1937
|
body: config.body,
|
|
1936
1938
|
urlParams: {},
|
|
1937
|
-
queryParams:
|
|
1939
|
+
queryParams: config.queryParams,
|
|
1938
1940
|
headers,
|
|
1939
1941
|
priority: 'normal',
|
|
1940
1942
|
};
|
|
@@ -1942,6 +1944,8 @@ function createResourceRequest(config) {
|
|
|
1942
1944
|
|
|
1943
1945
|
const adapterName = 'extractDataUsingIdpConfiguration';
|
|
1944
1946
|
const extractDataUsingIdpConfiguration_ConfigPropertyMetadata = [
|
|
1947
|
+
generateParamConfigMetadata('extractDataWithConfidenceScore', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1948
|
+
generateParamConfigMetadata('htmlEncode', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1945
1949
|
generateParamConfigMetadata('files', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1946
1950
|
generateParamConfigMetadata('mlModel', true, 2 /* Body */, 0 /* String */),
|
|
1947
1951
|
generateParamConfigMetadata('schemaConfig', true, 2 /* Body */, 0 /* String */),
|
|
@@ -6,6 +6,8 @@ export declare const adapterName = "extractDataUsingIdpConfiguration";
|
|
|
6
6
|
export declare const extractDataUsingIdpConfiguration_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const extractDataUsingIdpConfiguration_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface ExtractDataUsingIdpConfigurationConfig {
|
|
9
|
+
extractDataWithConfidenceScore?: boolean;
|
|
10
|
+
htmlEncode?: boolean;
|
|
9
11
|
files: Array<{
|
|
10
12
|
fileId: string;
|
|
11
13
|
}>;
|
|
@@ -10,6 +10,8 @@ export interface UpdateIdpConfigurationConfig {
|
|
|
10
10
|
activationStatus?: string;
|
|
11
11
|
description?: string;
|
|
12
12
|
label?: string;
|
|
13
|
+
mlModel?: string;
|
|
14
|
+
schemaConfig?: string;
|
|
13
15
|
}
|
|
14
16
|
export declare const createResourceParams: (config: UpdateIdpConfigurationConfig) => resources_patchSsotDocumentProcessingConfigurationsByIdOrApiName_ResourceRequestConfig;
|
|
15
17
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateIdpConfigurationConfig>): adapter$45$utils_Untrusted<UpdateIdpConfigurationConfig>;
|
|
@@ -8,6 +8,8 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
activationStatus?: string;
|
|
9
9
|
description?: string;
|
|
10
10
|
label?: string;
|
|
11
|
+
mlModel?: string;
|
|
12
|
+
schemaConfig?: string;
|
|
11
13
|
};
|
|
12
14
|
}
|
|
13
15
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
2
|
import { IdpExtractedDataRepresentation as types_IdpExtractedDataRepresentation_IdpExtractedDataRepresentation } from '../types/IdpExtractedDataRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
extractDataWithConfidenceScore?: boolean;
|
|
6
|
+
htmlEncode?: boolean;
|
|
7
|
+
};
|
|
4
8
|
body: {
|
|
5
9
|
files: Array<{
|
|
6
10
|
fileId: string;
|
|
@@ -15,7 +15,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface IdpConfigurationBaseRepresentationNormalized extends CdpAssetBaseRepresentation_CdpAssetBaseRepresentation {
|
|
18
|
-
/** IDP Configuration Activation Status (Activated - Deactivated) */
|
|
18
|
+
/** IDP Configuration Activation Status (Activated - Deactivated - Draft) */
|
|
19
19
|
activationStatus: string;
|
|
20
20
|
/** IDP Configuration Data Space */
|
|
21
21
|
dataspace: unknown;
|
|
@@ -15,7 +15,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface IdpConfigurationInputRepresentationNormalized {
|
|
18
|
-
/** Activated/Deactivated */
|
|
18
|
+
/** Activated/Deactivated/Draft */
|
|
19
19
|
activationStatus: string;
|
|
20
20
|
/** A map of custom key-value pairs serialized as JSON */
|
|
21
21
|
configMetadata: {
|
package/dist/es/es2018/types/src/generated/types/IdpConfigurationPatchInputRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
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
2
|
export declare const TTL = 500;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "e845a44d5bb63698f56ef4781a365527";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
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;
|
|
@@ -15,12 +15,16 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface IdpConfigurationPatchInputRepresentationNormalized {
|
|
18
|
-
/** The updated activation status - Activated/Deactivated */
|
|
18
|
+
/** The updated activation status - Activated/Deactivated/Draft */
|
|
19
19
|
activationStatus?: string;
|
|
20
20
|
/** The updated description of the IDP configuration to be created */
|
|
21
21
|
description?: string;
|
|
22
22
|
/** The updated label of the IDP configuration to be created */
|
|
23
23
|
label?: string;
|
|
24
|
+
/** The ML model used to extract the unstructured data */
|
|
25
|
+
mlModel?: string;
|
|
26
|
+
/** The schema of the data to be extracted */
|
|
27
|
+
schemaConfig?: string;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* The update input representation for Idp Configuration
|
|
@@ -32,4 +36,6 @@ export interface IdpConfigurationPatchInputRepresentation {
|
|
|
32
36
|
activationStatus?: string;
|
|
33
37
|
description?: string;
|
|
34
38
|
label?: string;
|
|
39
|
+
mlModel?: string;
|
|
40
|
+
schemaConfig?: string;
|
|
35
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-document-processing",
|
|
3
|
-
"version": "1.404.0-
|
|
3
|
+
"version": "1.404.0-dev5",
|
|
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.404.0-
|
|
45
|
+
"@salesforce/lds-bindings": "^1.404.0-dev5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.404.0-
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.404.0-dev5"
|
|
49
49
|
},
|
|
50
50
|
"nx": {
|
|
51
51
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -648,7 +648,7 @@ function select$8(luvio, params) {
|
|
|
648
648
|
return select$9();
|
|
649
649
|
}
|
|
650
650
|
function keyBuilder$8(luvio, params) {
|
|
651
|
-
return keyPrefix + '::IdpExtractedDataRepresentation:(' + '[' + params.body.files.map(element => 'files.fileId:' + element.fileId).join(',') + ']' + '::' + 'mlModel:' + params.body.mlModel + '::' + 'schemaConfig:' + params.body.schemaConfig + ')';
|
|
651
|
+
return keyPrefix + '::IdpExtractedDataRepresentation:(' + 'extractDataWithConfidenceScore:' + params.queryParams.extractDataWithConfidenceScore + ',' + 'htmlEncode:' + params.queryParams.htmlEncode + ',' + '[' + params.body.files.map(element => 'files.fileId:' + element.fileId).join(',') + ']' + '::' + 'mlModel:' + params.body.mlModel + '::' + 'schemaConfig:' + params.body.schemaConfig + ')';
|
|
652
652
|
}
|
|
653
653
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
654
654
|
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
@@ -690,7 +690,7 @@ function createResourceRequest$5(config) {
|
|
|
690
690
|
method: 'post',
|
|
691
691
|
body: config.body,
|
|
692
692
|
urlParams: {},
|
|
693
|
-
queryParams:
|
|
693
|
+
queryParams: config.queryParams,
|
|
694
694
|
headers,
|
|
695
695
|
priority: 'normal',
|
|
696
696
|
};
|
|
@@ -698,6 +698,8 @@ function createResourceRequest$5(config) {
|
|
|
698
698
|
|
|
699
699
|
const adapterName$5 = 'extractDataUsingIdpConfiguration';
|
|
700
700
|
const extractDataUsingIdpConfiguration_ConfigPropertyMetadata = [
|
|
701
|
+
generateParamConfigMetadata('extractDataWithConfidenceScore', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
702
|
+
generateParamConfigMetadata('htmlEncode', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
701
703
|
generateParamConfigMetadata('files', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
702
704
|
generateParamConfigMetadata('mlModel', true, 2 /* Body */, 0 /* String */),
|
|
703
705
|
generateParamConfigMetadata('schemaConfig', true, 2 /* Body */, 0 /* String */),
|
|
@@ -2047,6 +2049,8 @@ const updateIdpConfiguration_ConfigPropertyMetadata = [
|
|
|
2047
2049
|
generateParamConfigMetadata('activationStatus', false, 2 /* Body */, 0 /* String */),
|
|
2048
2050
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
2049
2051
|
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
2052
|
+
generateParamConfigMetadata('mlModel', false, 2 /* Body */, 0 /* String */),
|
|
2053
|
+
generateParamConfigMetadata('schemaConfig', false, 2 /* Body */, 0 /* String */),
|
|
2050
2054
|
];
|
|
2051
2055
|
const updateIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateIdpConfiguration_ConfigPropertyMetadata);
|
|
2052
2056
|
const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateIdpConfiguration_ConfigPropertyMetadata);
|
|
@@ -2179,4 +2183,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2179
2183
|
});
|
|
2180
2184
|
|
|
2181
2185
|
export { createIdpConfiguration, deleteIdpConfiguration, extractDataUsingIdpConfiguration, extractDataUsingIdpConfiguration_imperative, generateIdpConfigurationSchema, getIdpConfiguration, getIdpConfigurationNotifyChange, getIdpConfiguration_imperative, getIdpConfigurations, getIdpConfigurations_imperative, getIdpGlobalConfig, getIdpGlobalConfig_imperative, updateIdpConfiguration };
|
|
2182
|
-
// version: 1.404.0-
|
|
2186
|
+
// version: 1.404.0-dev5-38a59c52aa
|
package/src/raml/api.raml
CHANGED
|
@@ -87,11 +87,12 @@ types:
|
|
|
87
87
|
discriminator: version
|
|
88
88
|
properties:
|
|
89
89
|
activationStatus:
|
|
90
|
-
description: IDP Configuration Activation Status (Activated - Deactivated)
|
|
90
|
+
description: IDP Configuration Activation Status (Activated - Deactivated - Draft)
|
|
91
91
|
type: string
|
|
92
92
|
enum:
|
|
93
93
|
- Activated
|
|
94
94
|
- Deactivated
|
|
95
|
+
- Draft
|
|
95
96
|
dataspace:
|
|
96
97
|
description: IDP Configuration Data Space
|
|
97
98
|
type: any
|
|
@@ -170,11 +171,12 @@ types:
|
|
|
170
171
|
type: object
|
|
171
172
|
properties:
|
|
172
173
|
activationStatus:
|
|
173
|
-
description: Activated/Deactivated
|
|
174
|
+
description: Activated/Deactivated/Draft
|
|
174
175
|
type: string
|
|
175
176
|
enum:
|
|
176
177
|
- Activated
|
|
177
178
|
- Deactivated
|
|
179
|
+
- Draft
|
|
178
180
|
description:
|
|
179
181
|
description: The description of the IDP configuration to be created
|
|
180
182
|
type: string
|
|
@@ -212,11 +214,12 @@ types:
|
|
|
212
214
|
type: object
|
|
213
215
|
properties:
|
|
214
216
|
activationStatus:
|
|
215
|
-
description: The updated activation status - Activated/Deactivated
|
|
217
|
+
description: The updated activation status - Activated/Deactivated/Draft
|
|
216
218
|
type: string
|
|
217
219
|
enum:
|
|
218
220
|
- Activated
|
|
219
221
|
- Deactivated
|
|
222
|
+
- Draft
|
|
220
223
|
required: false
|
|
221
224
|
description:
|
|
222
225
|
description: The updated description of the IDP configuration to be created
|
|
@@ -226,6 +229,14 @@ types:
|
|
|
226
229
|
description: The updated label of the IDP configuration to be created
|
|
227
230
|
type: string
|
|
228
231
|
required: false
|
|
232
|
+
mlModel:
|
|
233
|
+
description: The ML model used to extract the unstructured data
|
|
234
|
+
type: string
|
|
235
|
+
required: false
|
|
236
|
+
schemaConfig:
|
|
237
|
+
description: The schema of the data to be extracted
|
|
238
|
+
type: string
|
|
239
|
+
required: false
|
|
229
240
|
IdpConfigurationRepresentation:
|
|
230
241
|
description: Idp Configuration Representation
|
|
231
242
|
type: IdpConfigurationBaseRepresentation
|
|
@@ -387,6 +398,7 @@ types:
|
|
|
387
398
|
enum:
|
|
388
399
|
- Activated
|
|
389
400
|
- Deactivated
|
|
401
|
+
- Draft
|
|
390
402
|
limit:
|
|
391
403
|
type: integer
|
|
392
404
|
required: false
|
|
@@ -485,3 +497,10 @@ types:
|
|
|
485
497
|
application/json:
|
|
486
498
|
type: IdpExtractDataInputRepresentation
|
|
487
499
|
(oas-body-name): extractDataUsingIdpConfiguration
|
|
500
|
+
queryParameters:
|
|
501
|
+
extractDataWithConfidenceScore:
|
|
502
|
+
type: boolean
|
|
503
|
+
required: false
|
|
504
|
+
htmlEncode:
|
|
505
|
+
type: boolean
|
|
506
|
+
required: false
|