@salesforce/lds-adapters-sales-people-api 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
|
}
|
|
@@ -467,26 +470,17 @@ function createResourceRequest(config) {
|
|
|
467
470
|
|
|
468
471
|
const adapterName = 'getParsedSignatureData';
|
|
469
472
|
const getParsedSignatureData_ConfigPropertyMetadata = [
|
|
470
|
-
generateParamConfigMetadata('emailAddresses', false),
|
|
473
|
+
generateParamConfigMetadata('emailAddresses', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
471
474
|
];
|
|
472
475
|
const getParsedSignatureData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getParsedSignatureData_ConfigPropertyMetadata);
|
|
473
|
-
|
|
474
|
-
const resourceParams = {
|
|
475
|
-
queryParams: {
|
|
476
|
-
emailAddresses: config.emailAddresses
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
return resourceParams;
|
|
480
|
-
}
|
|
476
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(getParsedSignatureData_ConfigPropertyMetadata);
|
|
481
477
|
function keyBuilder(luvio, config) {
|
|
482
478
|
const resourceParams = createResourceParams(config);
|
|
483
479
|
return keyBuilder$1(luvio, resourceParams);
|
|
484
480
|
}
|
|
485
481
|
function typeCheckConfig(untrustedConfig) {
|
|
486
482
|
const config = {};
|
|
487
|
-
|
|
488
|
-
emailAddresses: 0 /* String */,
|
|
489
|
-
});
|
|
483
|
+
typeCheckConfig$1(untrustedConfig, config, getParsedSignatureData_ConfigPropertyMetadata);
|
|
490
484
|
return config;
|
|
491
485
|
}
|
|
492
486
|
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 = "people-api";
|
|
@@ -8,7 +8,7 @@ export declare const getParsedSignatureData_ConfigPropertyNames: adapter$45$util
|
|
|
8
8
|
export interface GetParsedSignatureDataConfig {
|
|
9
9
|
emailAddresses?: Array<string>;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetParsedSignatureDataConfig) => resources_getPeople_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetParsedSignatureDataConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetParsedSignatureDataConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetParsedSignatureDataConfig>): adapter$45$utils_Untrusted<GetParsedSignatureDataConfig>;
|
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
|
}
|
|
@@ -477,26 +480,17 @@ function createResourceRequest(config) {
|
|
|
477
480
|
|
|
478
481
|
const adapterName = 'getParsedSignatureData';
|
|
479
482
|
const getParsedSignatureData_ConfigPropertyMetadata = [
|
|
480
|
-
generateParamConfigMetadata('emailAddresses', false),
|
|
483
|
+
generateParamConfigMetadata('emailAddresses', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
481
484
|
];
|
|
482
485
|
const getParsedSignatureData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getParsedSignatureData_ConfigPropertyMetadata);
|
|
483
|
-
|
|
484
|
-
const resourceParams = {
|
|
485
|
-
queryParams: {
|
|
486
|
-
emailAddresses: config.emailAddresses
|
|
487
|
-
}
|
|
488
|
-
};
|
|
489
|
-
return resourceParams;
|
|
490
|
-
}
|
|
486
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(getParsedSignatureData_ConfigPropertyMetadata);
|
|
491
487
|
function keyBuilder(luvio, config) {
|
|
492
488
|
const resourceParams = createResourceParams(config);
|
|
493
489
|
return keyBuilder$1(luvio, resourceParams);
|
|
494
490
|
}
|
|
495
491
|
function typeCheckConfig(untrustedConfig) {
|
|
496
492
|
const config = {};
|
|
497
|
-
|
|
498
|
-
emailAddresses: 0 /* String */,
|
|
499
|
-
});
|
|
493
|
+
typeCheckConfig$1(untrustedConfig, config, getParsedSignatureData_ConfigPropertyMetadata);
|
|
500
494
|
return config;
|
|
501
495
|
}
|
|
502
496
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -592,4 +586,4 @@ withDefaultLuvio((luvio) => {
|
|
|
592
586
|
});
|
|
593
587
|
|
|
594
588
|
export { getParsedSignatureData, getParsedSignatureData_imperative };
|
|
595
|
-
// version: 1.
|
|
589
|
+
// version: 1.216.0-1d57d45fe
|