@salesforce/lds-adapters-platform-lightning-cards 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, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$1, StoreKeyMap, createResourceParams as createResourceParams$1 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -48,10 +48,13 @@ const snapshotRefreshOptions = {
|
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
51
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
52
52
|
return {
|
|
53
53
|
name,
|
|
54
54
|
required,
|
|
55
|
+
resourceType,
|
|
56
|
+
typeCheckShape,
|
|
57
|
+
isArrayShape,
|
|
55
58
|
coerceFn,
|
|
56
59
|
};
|
|
57
60
|
}
|
|
@@ -286,26 +289,17 @@ function createResourceRequest(config) {
|
|
|
286
289
|
|
|
287
290
|
const adapterName = 'getActivationData';
|
|
288
291
|
const getActivationData_ConfigPropertyMetadata = [
|
|
289
|
-
generateParamConfigMetadata('flexiPageId', true),
|
|
292
|
+
generateParamConfigMetadata('flexiPageId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
290
293
|
];
|
|
291
294
|
const getActivationData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getActivationData_ConfigPropertyMetadata);
|
|
292
|
-
|
|
293
|
-
const resourceParams = {
|
|
294
|
-
urlParams: {
|
|
295
|
-
flexiPageId: config.flexiPageId
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
return resourceParams;
|
|
299
|
-
}
|
|
295
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(getActivationData_ConfigPropertyMetadata);
|
|
300
296
|
function keyBuilder(luvio, config) {
|
|
301
297
|
const resourceParams = createResourceParams(config);
|
|
302
298
|
return keyBuilder$1(luvio, resourceParams);
|
|
303
299
|
}
|
|
304
300
|
function typeCheckConfig(untrustedConfig) {
|
|
305
301
|
const config = {};
|
|
306
|
-
|
|
307
|
-
flexiPageId: 0 /* String */,
|
|
308
|
-
});
|
|
302
|
+
typeCheckConfig$1(untrustedConfig, config, getActivationData_ConfigPropertyMetadata);
|
|
309
303
|
return config;
|
|
310
304
|
}
|
|
311
305
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -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 = "LightningCards";
|
|
@@ -8,7 +8,7 @@ export declare const getActivationData_ConfigPropertyNames: adapter$45$utils_Ada
|
|
|
8
8
|
export interface GetActivationDataConfig {
|
|
9
9
|
flexiPageId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetActivationDataConfig) => resources_getConnectLightningcardsActivationdataByFlexiPageId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetActivationDataConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetActivationDataConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetActivationDataConfig>): adapter$45$utils_Untrusted<GetActivationDataConfig>;
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$1, StoreKeyMap, createResourceParams as createResourceParams$1 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -58,10 +58,13 @@ const snapshotRefreshOptions = {
|
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
61
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
62
62
|
return {
|
|
63
63
|
name,
|
|
64
64
|
required,
|
|
65
|
+
resourceType,
|
|
66
|
+
typeCheckShape,
|
|
67
|
+
isArrayShape,
|
|
65
68
|
coerceFn,
|
|
66
69
|
};
|
|
67
70
|
}
|
|
@@ -296,26 +299,17 @@ function createResourceRequest(config) {
|
|
|
296
299
|
|
|
297
300
|
const adapterName = 'getActivationData';
|
|
298
301
|
const getActivationData_ConfigPropertyMetadata = [
|
|
299
|
-
generateParamConfigMetadata('flexiPageId', true),
|
|
302
|
+
generateParamConfigMetadata('flexiPageId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
300
303
|
];
|
|
301
304
|
const getActivationData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getActivationData_ConfigPropertyMetadata);
|
|
302
|
-
|
|
303
|
-
const resourceParams = {
|
|
304
|
-
urlParams: {
|
|
305
|
-
flexiPageId: config.flexiPageId
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
return resourceParams;
|
|
309
|
-
}
|
|
305
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(getActivationData_ConfigPropertyMetadata);
|
|
310
306
|
function keyBuilder(luvio, config) {
|
|
311
307
|
const resourceParams = createResourceParams(config);
|
|
312
308
|
return keyBuilder$1(luvio, resourceParams);
|
|
313
309
|
}
|
|
314
310
|
function typeCheckConfig(untrustedConfig) {
|
|
315
311
|
const config = {};
|
|
316
|
-
|
|
317
|
-
flexiPageId: 0 /* String */,
|
|
318
|
-
});
|
|
312
|
+
typeCheckConfig$1(untrustedConfig, config, getActivationData_ConfigPropertyMetadata);
|
|
319
313
|
return config;
|
|
320
314
|
}
|
|
321
315
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -411,4 +405,4 @@ withDefaultLuvio((luvio) => {
|
|
|
411
405
|
});
|
|
412
406
|
|
|
413
407
|
export { getActivationData, getActivationData_imperative };
|
|
414
|
-
// version: 1.
|
|
408
|
+
// version: 1.216.0-1d57d45fe
|