@salesforce/lds-adapters-cdp-document-processing 1.354.0-dev7 → 1.354.0-dev9
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 +12 -0
- package/dist/es/es2018/types/src/generated/adapters/createIdpConfiguration.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingConfigurations.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/IdpConfigurationInputRepresentation.d.ts +9 -1
- package/package.json +3 -3
- package/sfdc/index.js +13 -1
- package/src/raml/api.raml +7 -0
|
@@ -808,6 +808,7 @@ const createIdpConfiguration_ConfigPropertyMetadata = [
|
|
|
808
808
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
809
809
|
generateParamConfigMetadata('mlModel', true, 2 /* Body */, 0 /* String */),
|
|
810
810
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
811
|
+
generateParamConfigMetadata('configMetadata', true, 2 /* Body */, 4 /* Unsupported */),
|
|
811
812
|
generateParamConfigMetadata('schemaConfig', true, 2 /* Body */, 0 /* String */),
|
|
812
813
|
];
|
|
813
814
|
const createIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createIdpConfiguration_ConfigPropertyMetadata);
|
|
@@ -833,6 +834,17 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
833
834
|
config.fileConfig = untrustedConfig_fileConfig_object;
|
|
834
835
|
}
|
|
835
836
|
}
|
|
837
|
+
const untrustedConfig_configMetadata = untrustedConfig.configMetadata;
|
|
838
|
+
if (untrustedIsObject(untrustedConfig_configMetadata)) {
|
|
839
|
+
const untrustedConfig_configMetadata_object = {};
|
|
840
|
+
const untrustedConfig_configMetadata_builderType = untrustedConfig_configMetadata.builderType;
|
|
841
|
+
if (typeof untrustedConfig_configMetadata_builderType === 'string') {
|
|
842
|
+
untrustedConfig_configMetadata_object.builderType = untrustedConfig_configMetadata_builderType;
|
|
843
|
+
}
|
|
844
|
+
if (untrustedConfig_configMetadata_object !== undefined && Object.keys(untrustedConfig_configMetadata_object).length >= 0) {
|
|
845
|
+
config.configMetadata = untrustedConfig_configMetadata_object;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
836
848
|
return config;
|
|
837
849
|
}
|
|
838
850
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -14,6 +14,9 @@ export interface CreateIdpConfigurationConfig {
|
|
|
14
14
|
label: string;
|
|
15
15
|
mlModel: string;
|
|
16
16
|
name: string;
|
|
17
|
+
configMetadata: {
|
|
18
|
+
builderType: string;
|
|
19
|
+
};
|
|
17
20
|
schemaConfig: string;
|
|
18
21
|
}
|
|
19
22
|
export declare const createResourceParams: (config: CreateIdpConfigurationConfig) => resources_postSsotDocumentProcessingConfigurations_ResourceRequestConfig;
|
|
@@ -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 = "0fea29f364be93018445c1bf179d4d70";
|
|
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: IdpConfigurationInputRepresentation, existing: IdpConfigurationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IdpConfigurationInputRepresentationNormalized;
|
|
@@ -17,6 +17,11 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
17
|
export interface IdpConfigurationInputRepresentationNormalized {
|
|
18
18
|
/** Activated/Deactivated */
|
|
19
19
|
activationStatus: string;
|
|
20
|
+
/** A map of custom key-value pairs serialized as JSON */
|
|
21
|
+
configMetadata: {
|
|
22
|
+
/** Source of idp config creation */
|
|
23
|
+
builderType: string;
|
|
24
|
+
};
|
|
20
25
|
/** The description of the IDP configuration to be created */
|
|
21
26
|
description: string;
|
|
22
27
|
/** The specs for the file types supported by the IDP process to be created */
|
|
@@ -41,6 +46,9 @@ export interface IdpConfigurationInputRepresentationNormalized {
|
|
|
41
46
|
*/
|
|
42
47
|
export interface IdpConfigurationInputRepresentation {
|
|
43
48
|
activationStatus: string;
|
|
49
|
+
configMetadata: {
|
|
50
|
+
builderType: string;
|
|
51
|
+
};
|
|
44
52
|
description: string;
|
|
45
53
|
fileConfig: {
|
|
46
54
|
fileTypes: Array<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-document-processing",
|
|
3
|
-
"version": "1.354.0-
|
|
3
|
+
"version": "1.354.0-dev9",
|
|
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.354.0-
|
|
45
|
+
"@salesforce/lds-bindings": "^1.354.0-dev9"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.354.0-
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.354.0-dev9"
|
|
49
49
|
},
|
|
50
50
|
"nx": {
|
|
51
51
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -303,6 +303,7 @@ const createIdpConfiguration_ConfigPropertyMetadata = [
|
|
|
303
303
|
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
304
304
|
generateParamConfigMetadata('mlModel', true, 2 /* Body */, 0 /* String */),
|
|
305
305
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
306
|
+
generateParamConfigMetadata('configMetadata', true, 2 /* Body */, 4 /* Unsupported */),
|
|
306
307
|
generateParamConfigMetadata('schemaConfig', true, 2 /* Body */, 0 /* String */),
|
|
307
308
|
];
|
|
308
309
|
const createIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createIdpConfiguration_ConfigPropertyMetadata);
|
|
@@ -328,6 +329,17 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
328
329
|
config.fileConfig = untrustedConfig_fileConfig_object;
|
|
329
330
|
}
|
|
330
331
|
}
|
|
332
|
+
const untrustedConfig_configMetadata = untrustedConfig.configMetadata;
|
|
333
|
+
if (untrustedIsObject(untrustedConfig_configMetadata)) {
|
|
334
|
+
const untrustedConfig_configMetadata_object = {};
|
|
335
|
+
const untrustedConfig_configMetadata_builderType = untrustedConfig_configMetadata.builderType;
|
|
336
|
+
if (typeof untrustedConfig_configMetadata_builderType === 'string') {
|
|
337
|
+
untrustedConfig_configMetadata_object.builderType = untrustedConfig_configMetadata_builderType;
|
|
338
|
+
}
|
|
339
|
+
if (untrustedConfig_configMetadata_object !== undefined && Object.keys(untrustedConfig_configMetadata_object).length >= 0) {
|
|
340
|
+
config.configMetadata = untrustedConfig_configMetadata_object;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
331
343
|
return config;
|
|
332
344
|
}
|
|
333
345
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -2167,4 +2179,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2167
2179
|
});
|
|
2168
2180
|
|
|
2169
2181
|
export { createIdpConfiguration, deleteIdpConfiguration, extractDataUsingIdpConfiguration, extractDataUsingIdpConfiguration_imperative, generateIdpConfigurationSchema, getIdpConfiguration, getIdpConfigurationNotifyChange, getIdpConfiguration_imperative, getIdpConfigurations, getIdpConfigurations_imperative, getIdpGlobalConfig, getIdpGlobalConfig_imperative, updateIdpConfiguration };
|
|
2170
|
-
// version: 1.354.0-
|
|
2182
|
+
// version: 1.354.0-dev9-c4f5ca8212
|
package/src/raml/api.raml
CHANGED
|
@@ -197,6 +197,13 @@ types:
|
|
|
197
197
|
name:
|
|
198
198
|
description: The API name of the IDP configuration to be created
|
|
199
199
|
type: string
|
|
200
|
+
configMetadata:
|
|
201
|
+
description: A map of custom key-value pairs serialized as JSON
|
|
202
|
+
type: object
|
|
203
|
+
properties:
|
|
204
|
+
builderType:
|
|
205
|
+
description: Source of idp config creation
|
|
206
|
+
type: string
|
|
200
207
|
schemaConfig:
|
|
201
208
|
description: The schema of the data to be extracted
|
|
202
209
|
type: string
|