@salesforce/lds-adapters-industries-actionplan 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.
- package/dist/es/es2018/industries-actionplan.js +19 -51
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getActionPlanItems.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getActionPlanStatusInfo.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getActionPlans.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +20 -52
|
@@ -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$3,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = 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
|
}
|
|
@@ -246,34 +249,21 @@ function createResourceRequest$2(config) {
|
|
|
246
249
|
|
|
247
250
|
const adapterName$2 = 'getActionPlans';
|
|
248
251
|
const getActionPlans_ConfigPropertyMetadata = [
|
|
249
|
-
generateParamConfigMetadata('actionPlanType', false),
|
|
250
|
-
generateParamConfigMetadata('limit', false),
|
|
251
|
-
generateParamConfigMetadata('order', false),
|
|
252
|
-
generateParamConfigMetadata('orderingParam', false),
|
|
253
|
-
generateParamConfigMetadata('targetId', false),
|
|
252
|
+
generateParamConfigMetadata('actionPlanType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
253
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
254
|
+
generateParamConfigMetadata('order', false, 1 /* QueryParameter */, 0 /* String */),
|
|
255
|
+
generateParamConfigMetadata('orderingParam', false, 1 /* QueryParameter */, 0 /* String */),
|
|
256
|
+
generateParamConfigMetadata('targetId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
254
257
|
];
|
|
255
258
|
const getActionPlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getActionPlans_ConfigPropertyMetadata);
|
|
256
|
-
|
|
257
|
-
const resourceParams = {
|
|
258
|
-
queryParams: {
|
|
259
|
-
actionPlanType: config.actionPlanType, limit: config.limit, order: config.order, orderingParam: config.orderingParam, targetId: config.targetId
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
return resourceParams;
|
|
263
|
-
}
|
|
259
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getActionPlans_ConfigPropertyMetadata);
|
|
264
260
|
function keyBuilder$4(luvio, config) {
|
|
265
261
|
const resourceParams = createResourceParams$2(config);
|
|
266
262
|
return keyBuilder$5(luvio, resourceParams);
|
|
267
263
|
}
|
|
268
264
|
function typeCheckConfig$2(untrustedConfig) {
|
|
269
265
|
const config = {};
|
|
270
|
-
|
|
271
|
-
actionPlanType: 0 /* String */,
|
|
272
|
-
limit: 3 /* Integer */,
|
|
273
|
-
order: 0 /* String */,
|
|
274
|
-
orderingParam: 0 /* String */,
|
|
275
|
-
targetId: 0 /* String */,
|
|
276
|
-
});
|
|
266
|
+
typeCheckConfig$3(untrustedConfig, config, getActionPlans_ConfigPropertyMetadata);
|
|
277
267
|
return config;
|
|
278
268
|
}
|
|
279
269
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -639,31 +629,18 @@ function createResourceRequest$1(config) {
|
|
|
639
629
|
|
|
640
630
|
const adapterName$1 = 'getActionPlanItems';
|
|
641
631
|
const getActionPlanItems_ConfigPropertyMetadata = [
|
|
642
|
-
generateParamConfigMetadata('actionPlanId', true),
|
|
643
|
-
generateParamConfigMetadata('limit', false),
|
|
632
|
+
generateParamConfigMetadata('actionPlanId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
633
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
644
634
|
];
|
|
645
635
|
const getActionPlanItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getActionPlanItems_ConfigPropertyMetadata);
|
|
646
|
-
|
|
647
|
-
const resourceParams = {
|
|
648
|
-
urlParams: {
|
|
649
|
-
actionPlanId: config.actionPlanId
|
|
650
|
-
},
|
|
651
|
-
queryParams: {
|
|
652
|
-
limit: config.limit
|
|
653
|
-
}
|
|
654
|
-
};
|
|
655
|
-
return resourceParams;
|
|
656
|
-
}
|
|
636
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getActionPlanItems_ConfigPropertyMetadata);
|
|
657
637
|
function keyBuilder$2(luvio, config) {
|
|
658
638
|
const resourceParams = createResourceParams$1(config);
|
|
659
639
|
return keyBuilder$3(luvio, resourceParams);
|
|
660
640
|
}
|
|
661
641
|
function typeCheckConfig$1(untrustedConfig) {
|
|
662
642
|
const config = {};
|
|
663
|
-
|
|
664
|
-
actionPlanId: 0 /* String */,
|
|
665
|
-
limit: 3 /* Integer */,
|
|
666
|
-
});
|
|
643
|
+
typeCheckConfig$3(untrustedConfig, config, getActionPlanItems_ConfigPropertyMetadata);
|
|
667
644
|
return config;
|
|
668
645
|
}
|
|
669
646
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -906,26 +883,17 @@ function createResourceRequest(config) {
|
|
|
906
883
|
|
|
907
884
|
const adapterName = 'getActionPlanStatusInfo';
|
|
908
885
|
const getActionPlanStatusInfo_ConfigPropertyMetadata = [
|
|
909
|
-
generateParamConfigMetadata('actionPlanId', true),
|
|
886
|
+
generateParamConfigMetadata('actionPlanId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
910
887
|
];
|
|
911
888
|
const getActionPlanStatusInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getActionPlanStatusInfo_ConfigPropertyMetadata);
|
|
912
|
-
|
|
913
|
-
const resourceParams = {
|
|
914
|
-
urlParams: {
|
|
915
|
-
actionPlanId: config.actionPlanId
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
return resourceParams;
|
|
919
|
-
}
|
|
889
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(getActionPlanStatusInfo_ConfigPropertyMetadata);
|
|
920
890
|
function keyBuilder(luvio, config) {
|
|
921
891
|
const resourceParams = createResourceParams(config);
|
|
922
892
|
return keyBuilder$1(luvio, resourceParams);
|
|
923
893
|
}
|
|
924
894
|
function typeCheckConfig(untrustedConfig) {
|
|
925
895
|
const config = {};
|
|
926
|
-
|
|
927
|
-
actionPlanId: 0 /* String */,
|
|
928
|
-
});
|
|
896
|
+
typeCheckConfig$3(untrustedConfig, config, getActionPlanStatusInfo_ConfigPropertyMetadata);
|
|
929
897
|
return config;
|
|
930
898
|
}
|
|
931
899
|
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 = "ActionPlan";
|
|
@@ -9,7 +9,7 @@ export interface GetActionPlanItemsConfig {
|
|
|
9
9
|
actionPlanId: string;
|
|
10
10
|
limit?: number;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetActionPlanItemsConfig) => resources_getConnectActionPlanActionPlanItemsByActionPlanId_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetActionPlanItemsConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetActionPlanItemsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetActionPlanItemsConfig>): adapter$45$utils_Untrusted<GetActionPlanItemsConfig>;
|
|
@@ -8,7 +8,7 @@ export declare const getActionPlanStatusInfo_ConfigPropertyNames: adapter$45$uti
|
|
|
8
8
|
export interface GetActionPlanStatusInfoConfig {
|
|
9
9
|
actionPlanId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: GetActionPlanStatusInfoConfig) => resources_getConnectActionPlanStatusInfoByActionPlanId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetActionPlanStatusInfoConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetActionPlanStatusInfoConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetActionPlanStatusInfoConfig>): adapter$45$utils_Untrusted<GetActionPlanStatusInfoConfig>;
|
|
@@ -12,7 +12,7 @@ export interface GetActionPlansConfig {
|
|
|
12
12
|
orderingParam?: string;
|
|
13
13
|
targetId?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare
|
|
15
|
+
export declare const createResourceParams: (config: GetActionPlansConfig) => resources_getConnectActionPlan_ResourceRequestConfig;
|
|
16
16
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetActionPlansConfig): string;
|
|
17
17
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetActionPlansConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
18
18
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetActionPlansConfig>): adapter$45$utils_Untrusted<GetActionPlansConfig>;
|
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$3,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = 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
|
}
|
|
@@ -379,31 +382,18 @@ function createResourceRequest$2(config) {
|
|
|
379
382
|
|
|
380
383
|
const adapterName$2 = 'getActionPlanItems';
|
|
381
384
|
const getActionPlanItems_ConfigPropertyMetadata = [
|
|
382
|
-
generateParamConfigMetadata('actionPlanId', true),
|
|
383
|
-
generateParamConfigMetadata('limit', false),
|
|
385
|
+
generateParamConfigMetadata('actionPlanId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
386
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
384
387
|
];
|
|
385
388
|
const getActionPlanItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getActionPlanItems_ConfigPropertyMetadata);
|
|
386
|
-
|
|
387
|
-
const resourceParams = {
|
|
388
|
-
urlParams: {
|
|
389
|
-
actionPlanId: config.actionPlanId
|
|
390
|
-
},
|
|
391
|
-
queryParams: {
|
|
392
|
-
limit: config.limit
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
return resourceParams;
|
|
396
|
-
}
|
|
389
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getActionPlanItems_ConfigPropertyMetadata);
|
|
397
390
|
function keyBuilder$4(luvio, config) {
|
|
398
391
|
const resourceParams = createResourceParams$2(config);
|
|
399
392
|
return keyBuilder$5(luvio, resourceParams);
|
|
400
393
|
}
|
|
401
394
|
function typeCheckConfig$2(untrustedConfig) {
|
|
402
395
|
const config = {};
|
|
403
|
-
|
|
404
|
-
actionPlanId: 0 /* String */,
|
|
405
|
-
limit: 3 /* Integer */,
|
|
406
|
-
});
|
|
396
|
+
typeCheckConfig$3(untrustedConfig, config, getActionPlanItems_ConfigPropertyMetadata);
|
|
407
397
|
return config;
|
|
408
398
|
}
|
|
409
399
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -646,26 +636,17 @@ function createResourceRequest$1(config) {
|
|
|
646
636
|
|
|
647
637
|
const adapterName$1 = 'getActionPlanStatusInfo';
|
|
648
638
|
const getActionPlanStatusInfo_ConfigPropertyMetadata = [
|
|
649
|
-
generateParamConfigMetadata('actionPlanId', true),
|
|
639
|
+
generateParamConfigMetadata('actionPlanId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
650
640
|
];
|
|
651
641
|
const getActionPlanStatusInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getActionPlanStatusInfo_ConfigPropertyMetadata);
|
|
652
|
-
|
|
653
|
-
const resourceParams = {
|
|
654
|
-
urlParams: {
|
|
655
|
-
actionPlanId: config.actionPlanId
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
|
-
return resourceParams;
|
|
659
|
-
}
|
|
642
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getActionPlanStatusInfo_ConfigPropertyMetadata);
|
|
660
643
|
function keyBuilder$2(luvio, config) {
|
|
661
644
|
const resourceParams = createResourceParams$1(config);
|
|
662
645
|
return keyBuilder$3(luvio, resourceParams);
|
|
663
646
|
}
|
|
664
647
|
function typeCheckConfig$1(untrustedConfig) {
|
|
665
648
|
const config = {};
|
|
666
|
-
|
|
667
|
-
actionPlanId: 0 /* String */,
|
|
668
|
-
});
|
|
649
|
+
typeCheckConfig$3(untrustedConfig, config, getActionPlanStatusInfo_ConfigPropertyMetadata);
|
|
669
650
|
return config;
|
|
670
651
|
}
|
|
671
652
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -908,34 +889,21 @@ function createResourceRequest(config) {
|
|
|
908
889
|
|
|
909
890
|
const adapterName = 'getActionPlans';
|
|
910
891
|
const getActionPlans_ConfigPropertyMetadata = [
|
|
911
|
-
generateParamConfigMetadata('actionPlanType', false),
|
|
912
|
-
generateParamConfigMetadata('limit', false),
|
|
913
|
-
generateParamConfigMetadata('order', false),
|
|
914
|
-
generateParamConfigMetadata('orderingParam', false),
|
|
915
|
-
generateParamConfigMetadata('targetId', false),
|
|
892
|
+
generateParamConfigMetadata('actionPlanType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
893
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
894
|
+
generateParamConfigMetadata('order', false, 1 /* QueryParameter */, 0 /* String */),
|
|
895
|
+
generateParamConfigMetadata('orderingParam', false, 1 /* QueryParameter */, 0 /* String */),
|
|
896
|
+
generateParamConfigMetadata('targetId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
916
897
|
];
|
|
917
898
|
const getActionPlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getActionPlans_ConfigPropertyMetadata);
|
|
918
|
-
|
|
919
|
-
const resourceParams = {
|
|
920
|
-
queryParams: {
|
|
921
|
-
actionPlanType: config.actionPlanType, limit: config.limit, order: config.order, orderingParam: config.orderingParam, targetId: config.targetId
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
return resourceParams;
|
|
925
|
-
}
|
|
899
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(getActionPlans_ConfigPropertyMetadata);
|
|
926
900
|
function keyBuilder(luvio, config) {
|
|
927
901
|
const resourceParams = createResourceParams(config);
|
|
928
902
|
return keyBuilder$1(luvio, resourceParams);
|
|
929
903
|
}
|
|
930
904
|
function typeCheckConfig(untrustedConfig) {
|
|
931
905
|
const config = {};
|
|
932
|
-
|
|
933
|
-
actionPlanType: 0 /* String */,
|
|
934
|
-
limit: 3 /* Integer */,
|
|
935
|
-
order: 0 /* String */,
|
|
936
|
-
orderingParam: 0 /* String */,
|
|
937
|
-
targetId: 0 /* String */,
|
|
938
|
-
});
|
|
906
|
+
typeCheckConfig$3(untrustedConfig, config, getActionPlans_ConfigPropertyMetadata);
|
|
939
907
|
return config;
|
|
940
908
|
}
|
|
941
909
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1047,4 +1015,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1047
1015
|
});
|
|
1048
1016
|
|
|
1049
1017
|
export { getActionPlanItems, getActionPlanItems_imperative, getActionPlanStatusInfo, getActionPlanStatusInfo_imperative, getActionPlans, getActionPlans_imperative };
|
|
1050
|
-
// version: 1.
|
|
1018
|
+
// version: 1.216.0-1d57d45fe
|