@salesforce/lds-adapters-industries-eri 1.214.2 → 1.216.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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$1 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -41,10 +41,13 @@ function untrustedIsObject(untrusted) {
|
|
|
41
41
|
function areRequiredParametersPresent(config, configPropertyNames) {
|
|
42
42
|
return configPropertyNames.parameters.required.every(req => req in config);
|
|
43
43
|
}
|
|
44
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
44
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
45
45
|
return {
|
|
46
46
|
name,
|
|
47
47
|
required,
|
|
48
|
+
resourceType,
|
|
49
|
+
typeCheckShape,
|
|
50
|
+
isArrayShape,
|
|
48
51
|
coerceFn,
|
|
49
52
|
};
|
|
50
53
|
}
|
|
@@ -409,17 +412,10 @@ function createResourceRequest(config) {
|
|
|
409
412
|
|
|
410
413
|
const adapterName = 'getERIDigest';
|
|
411
414
|
const getERIDigest_ConfigPropertyMetadata = [
|
|
412
|
-
generateParamConfigMetadata('eriDigestInput', true),
|
|
415
|
+
generateParamConfigMetadata('eriDigestInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
413
416
|
];
|
|
414
417
|
const getERIDigest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getERIDigest_ConfigPropertyMetadata);
|
|
415
|
-
|
|
416
|
-
const resourceParams = {
|
|
417
|
-
body: {
|
|
418
|
-
eriDigestInput: config.eriDigestInput
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
return resourceParams;
|
|
422
|
-
}
|
|
418
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(getERIDigest_ConfigPropertyMetadata);
|
|
423
419
|
function typeCheckConfig(untrustedConfig) {
|
|
424
420
|
const config = {};
|
|
425
421
|
const untrustedConfig_eriDigestInput = untrustedConfig.eriDigestInput;
|
|
@@ -57,6 +57,6 @@ export declare const snapshotRefreshOptions: {
|
|
|
57
57
|
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
58
|
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
59
|
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
-
export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
61
|
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
62
|
export declare const keyPrefix = "eri";
|
|
@@ -9,7 +9,7 @@ export declare const getERIDigest_ConfigPropertyNames: adapter$45$utils_AdapterV
|
|
|
9
9
|
export interface GetERIDigestConfig {
|
|
10
10
|
eriDigestInput: types_ERIDigestInputRepresentation_ERIDigestInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetERIDigestConfig) => resources_postConnectEriDigest_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetERIDigestConfig>): adapter$45$utils_Untrusted<GetERIDigestConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetERIDigestConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetERIDigestConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ERIDigestOutputRepresentation_ERIDigestOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ERIDigestOutputRepresentation_ERIDigestOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ERIDigestOutputRepresentation_ERIDigestOutputRepresentation, any>>;
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
16
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
16
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$1 } from 'force/luvioEngine';
|
|
17
17
|
|
|
18
18
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
19
19
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -50,10 +50,13 @@ function untrustedIsObject(untrusted) {
|
|
|
50
50
|
function areRequiredParametersPresent(config, configPropertyNames) {
|
|
51
51
|
return configPropertyNames.parameters.required.every(req => req in config);
|
|
52
52
|
}
|
|
53
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
53
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
54
54
|
return {
|
|
55
55
|
name,
|
|
56
56
|
required,
|
|
57
|
+
resourceType,
|
|
58
|
+
typeCheckShape,
|
|
59
|
+
isArrayShape,
|
|
57
60
|
coerceFn,
|
|
58
61
|
};
|
|
59
62
|
}
|
|
@@ -418,17 +421,10 @@ function createResourceRequest(config) {
|
|
|
418
421
|
|
|
419
422
|
const adapterName = 'getERIDigest';
|
|
420
423
|
const getERIDigest_ConfigPropertyMetadata = [
|
|
421
|
-
generateParamConfigMetadata('eriDigestInput', true),
|
|
424
|
+
generateParamConfigMetadata('eriDigestInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
422
425
|
];
|
|
423
426
|
const getERIDigest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getERIDigest_ConfigPropertyMetadata);
|
|
424
|
-
|
|
425
|
-
const resourceParams = {
|
|
426
|
-
body: {
|
|
427
|
-
eriDigestInput: config.eriDigestInput
|
|
428
|
-
}
|
|
429
|
-
};
|
|
430
|
-
return resourceParams;
|
|
431
|
-
}
|
|
427
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(getERIDigest_ConfigPropertyMetadata);
|
|
432
428
|
function typeCheckConfig(untrustedConfig) {
|
|
433
429
|
const config = {};
|
|
434
430
|
const untrustedConfig_eriDigestInput = untrustedConfig.eriDigestInput;
|
|
@@ -498,4 +494,4 @@ withDefaultLuvio((luvio) => {
|
|
|
498
494
|
});
|
|
499
495
|
|
|
500
496
|
export { getERIDigest };
|
|
501
|
-
// version: 1.
|
|
497
|
+
// version: 1.216.0-1d57d45fe
|