@salesforce/lds-adapters-industries-actionplan 1.213.0 → 1.213.2

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, deepFreeze, typeCheckScalars, StoreKeyMap } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckScalars, StoreKeyMap } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -48,6 +48,24 @@ const snapshotRefreshOptions = {
48
48
  },
49
49
  }
50
50
  };
51
+ function generateParamConfigMetadata(name, required, coerceFn) {
52
+ return {
53
+ name,
54
+ required,
55
+ coerceFn,
56
+ };
57
+ }
58
+ function buildAdapterValidationConfig(displayName, paramsMeta) {
59
+ const required = paramsMeta.filter(p => p.required).map(p => p.name);
60
+ const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
61
+ return {
62
+ displayName,
63
+ parameters: {
64
+ required,
65
+ optional,
66
+ }
67
+ };
68
+ }
51
69
  const keyPrefix = 'ActionPlan';
52
70
 
53
71
  const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
@@ -160,26 +178,8 @@ const ingest$2 = function ActionPlansWrapperOutputRepresentationIngest(input, pa
160
178
  }
161
179
  }
162
180
  const key = path.fullPath;
163
- const existingRecord = store.readEntry(key);
164
181
  const ttlToUse = TTL$2;
165
- let incomingRecord = normalize$2(input, store.readEntry(key), {
166
- fullPath: key,
167
- parent: path.parent,
168
- propertyName: path.propertyName,
169
- ttl: ttlToUse
170
- });
171
- if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
172
- luvio.storePublish(key, incomingRecord);
173
- }
174
- {
175
- const storeMetadataParams = {
176
- ttl: ttlToUse,
177
- namespace: "ActionPlan",
178
- version: VERSION$2,
179
- representationName: RepresentationType$2,
180
- };
181
- luvio.publishStoreMetadata(key, storeMetadataParams);
182
- }
182
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "ActionPlan", VERSION$2, RepresentationType$2, equals$2);
183
183
  return createLink(key);
184
184
  };
185
185
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -244,13 +244,15 @@ function createResourceRequest$2(config) {
244
244
  };
245
245
  }
246
246
 
247
- const getActionPlans_ConfigPropertyNames = {
248
- displayName: 'getActionPlans',
249
- parameters: {
250
- required: [],
251
- optional: ['actionPlanType', 'limit', 'order', 'orderingParam', 'targetId']
252
- }
253
- };
247
+ const adapterName$2 = 'getActionPlans';
248
+ const getActionPlans_ConfigPropertyMetadata = [
249
+ generateParamConfigMetadata('actionPlanType', false),
250
+ generateParamConfigMetadata('limit', false),
251
+ generateParamConfigMetadata('order', false),
252
+ generateParamConfigMetadata('orderingParam', false),
253
+ generateParamConfigMetadata('targetId', false),
254
+ ];
255
+ const getActionPlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getActionPlans_ConfigPropertyMetadata);
254
256
  function createResourceParams$2(config) {
255
257
  const resourceParams = {
256
258
  queryParams: {
@@ -320,21 +322,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
320
322
  });
321
323
  }
322
324
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
323
- const { luvio, config } = context;
324
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
325
- const dispatchOptions = {
326
- resourceRequestContext: {
327
- requestCorrelator,
328
- luvioRequestMethod: undefined,
329
- },
330
- eventObservers
331
- };
332
- if (networkPriority !== 'normal') {
333
- dispatchOptions.overrides = {
334
- priority: networkPriority
335
- };
336
- }
337
- return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
325
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
338
326
  }
339
327
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
340
328
  const { luvio, config } = context;
@@ -583,26 +571,8 @@ const ingest$1 = function ActionPlanItemsWrapperRepresentationIngest(input, path
583
571
  }
584
572
  }
585
573
  const key = path.fullPath;
586
- const existingRecord = store.readEntry(key);
587
574
  const ttlToUse = TTL$1;
588
- let incomingRecord = normalize$1(input, store.readEntry(key), {
589
- fullPath: key,
590
- parent: path.parent,
591
- propertyName: path.propertyName,
592
- ttl: ttlToUse
593
- });
594
- if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
595
- luvio.storePublish(key, incomingRecord);
596
- }
597
- {
598
- const storeMetadataParams = {
599
- ttl: ttlToUse,
600
- namespace: "ActionPlan",
601
- version: VERSION$1,
602
- representationName: RepresentationType$1,
603
- };
604
- luvio.publishStoreMetadata(key, storeMetadataParams);
605
- }
575
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "ActionPlan", VERSION$1, RepresentationType$1, equals$1);
606
576
  return createLink(key);
607
577
  };
608
578
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -667,13 +637,12 @@ function createResourceRequest$1(config) {
667
637
  };
668
638
  }
669
639
 
670
- const getActionPlanItems_ConfigPropertyNames = {
671
- displayName: 'getActionPlanItems',
672
- parameters: {
673
- required: ['actionPlanId'],
674
- optional: ['limit']
675
- }
676
- };
640
+ const adapterName$1 = 'getActionPlanItems';
641
+ const getActionPlanItems_ConfigPropertyMetadata = [
642
+ generateParamConfigMetadata('actionPlanId', true),
643
+ generateParamConfigMetadata('limit', false),
644
+ ];
645
+ const getActionPlanItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getActionPlanItems_ConfigPropertyMetadata);
677
646
  function createResourceParams$1(config) {
678
647
  const resourceParams = {
679
648
  urlParams: {
@@ -743,21 +712,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
743
712
  });
744
713
  }
745
714
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
746
- const { luvio, config } = context;
747
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
748
- const dispatchOptions = {
749
- resourceRequestContext: {
750
- requestCorrelator,
751
- luvioRequestMethod: undefined,
752
- },
753
- eventObservers
754
- };
755
- if (networkPriority !== 'normal') {
756
- dispatchOptions.overrides = {
757
- priority: networkPriority
758
- };
759
- }
760
- return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
715
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
761
716
  }
762
717
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
763
718
  const { luvio, config } = context;
@@ -883,26 +838,8 @@ const ingest = function ActionPlanStatusInfoOutputRepresentationIngest(input, pa
883
838
  }
884
839
  }
885
840
  const key = path.fullPath;
886
- const existingRecord = store.readEntry(key);
887
841
  const ttlToUse = TTL;
888
- let incomingRecord = normalize(input, store.readEntry(key), {
889
- fullPath: key,
890
- parent: path.parent,
891
- propertyName: path.propertyName,
892
- ttl: ttlToUse
893
- });
894
- if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
895
- luvio.storePublish(key, incomingRecord);
896
- }
897
- {
898
- const storeMetadataParams = {
899
- ttl: ttlToUse,
900
- namespace: "ActionPlan",
901
- version: VERSION,
902
- representationName: RepresentationType,
903
- };
904
- luvio.publishStoreMetadata(key, storeMetadataParams);
905
- }
842
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "ActionPlan", VERSION, RepresentationType, equals);
906
843
  return createLink(key);
907
844
  };
908
845
  function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
@@ -967,13 +904,11 @@ function createResourceRequest(config) {
967
904
  };
968
905
  }
969
906
 
970
- const getActionPlanStatusInfo_ConfigPropertyNames = {
971
- displayName: 'getActionPlanStatusInfo',
972
- parameters: {
973
- required: ['actionPlanId'],
974
- optional: []
975
- }
976
- };
907
+ const adapterName = 'getActionPlanStatusInfo';
908
+ const getActionPlanStatusInfo_ConfigPropertyMetadata = [
909
+ generateParamConfigMetadata('actionPlanId', true),
910
+ ];
911
+ const getActionPlanStatusInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getActionPlanStatusInfo_ConfigPropertyMetadata);
977
912
  function createResourceParams(config) {
978
913
  const resourceParams = {
979
914
  urlParams: {
@@ -1039,21 +974,7 @@ function buildNetworkSnapshot(luvio, config, options) {
1039
974
  });
1040
975
  }
1041
976
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1042
- const { luvio, config } = context;
1043
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1044
- const dispatchOptions = {
1045
- resourceRequestContext: {
1046
- requestCorrelator,
1047
- luvioRequestMethod: undefined,
1048
- },
1049
- eventObservers
1050
- };
1051
- if (networkPriority !== 'normal') {
1052
- dispatchOptions.overrides = {
1053
- priority: networkPriority
1054
- };
1055
- }
1056
- return buildNetworkSnapshot(luvio, config, dispatchOptions);
977
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1057
978
  }
1058
979
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1059
980
  const { luvio, config } = context;
@@ -1,4 +1,4 @@
1
- import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
2
2
  export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
3
  declare const ObjectKeys: {
4
4
  (o: object): string[];
@@ -57,4 +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;
61
+ export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
60
62
  export declare const keyPrefix = "ActionPlan";
@@ -1,8 +1,9 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
2
3
  import { ResourceRequestConfig as resources_getConnectActionPlanActionPlanItemsByActionPlanId_ResourceRequestConfig } from '../resources/getConnectActionPlanActionPlanItemsByActionPlanId';
3
- import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
4
  import { ActionPlanItemsWrapperRepresentation as types_ActionPlanItemsWrapperRepresentation_ActionPlanItemsWrapperRepresentation } from '../types/ActionPlanItemsWrapperRepresentation';
5
5
  export declare const adapterName = "getActionPlanItems";
6
+ export declare const getActionPlanItems_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
6
7
  export declare const getActionPlanItems_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
8
  export interface GetActionPlanItemsConfig {
8
9
  actionPlanId: string;
@@ -1,8 +1,9 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
2
3
  import { ResourceRequestConfig as resources_getConnectActionPlanStatusInfoByActionPlanId_ResourceRequestConfig } from '../resources/getConnectActionPlanStatusInfoByActionPlanId';
3
- import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
4
  import { ActionPlanStatusInfoOutputRepresentation as types_ActionPlanStatusInfoOutputRepresentation_ActionPlanStatusInfoOutputRepresentation } from '../types/ActionPlanStatusInfoOutputRepresentation';
5
5
  export declare const adapterName = "getActionPlanStatusInfo";
6
+ export declare const getActionPlanStatusInfo_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
6
7
  export declare const getActionPlanStatusInfo_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
8
  export interface GetActionPlanStatusInfoConfig {
8
9
  actionPlanId: string;
@@ -1,8 +1,9 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
2
3
  import { ResourceRequestConfig as resources_getConnectActionPlan_ResourceRequestConfig } from '../resources/getConnectActionPlan';
3
- import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
4
  import { ActionPlansWrapperOutputRepresentation as types_ActionPlansWrapperOutputRepresentation_ActionPlansWrapperOutputRepresentation } from '../types/ActionPlansWrapperOutputRepresentation';
5
5
  export declare const adapterName = "getActionPlans";
6
+ export declare const getActionPlans_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
6
7
  export declare const getActionPlans_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
8
  export interface GetActionPlansConfig {
8
9
  actionPlanType?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-actionplan",
3
- "version": "1.213.0",
3
+ "version": "1.213.2",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/es/es2018/industries-actionplan.js",
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, deepFreeze, typeCheckScalars, StoreKeyMap } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckScalars, StoreKeyMap } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -58,6 +58,24 @@ const snapshotRefreshOptions = {
58
58
  },
59
59
  }
60
60
  };
61
+ function generateParamConfigMetadata(name, required, coerceFn) {
62
+ return {
63
+ name,
64
+ required,
65
+ coerceFn,
66
+ };
67
+ }
68
+ function buildAdapterValidationConfig(displayName, paramsMeta) {
69
+ const required = paramsMeta.filter(p => p.required).map(p => p.name);
70
+ const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
71
+ return {
72
+ displayName,
73
+ parameters: {
74
+ required,
75
+ optional,
76
+ }
77
+ };
78
+ }
61
79
  const keyPrefix = 'ActionPlan';
62
80
 
63
81
  const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
@@ -293,26 +311,8 @@ const ingest$2 = function ActionPlanItemsWrapperRepresentationIngest(input, path
293
311
  }
294
312
  }
295
313
  const key = path.fullPath;
296
- const existingRecord = store.readEntry(key);
297
314
  const ttlToUse = TTL$2;
298
- let incomingRecord = normalize$2(input, store.readEntry(key), {
299
- fullPath: key,
300
- parent: path.parent,
301
- propertyName: path.propertyName,
302
- ttl: ttlToUse
303
- });
304
- if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
305
- luvio.storePublish(key, incomingRecord);
306
- }
307
- {
308
- const storeMetadataParams = {
309
- ttl: ttlToUse,
310
- namespace: "ActionPlan",
311
- version: VERSION$2,
312
- representationName: RepresentationType$2,
313
- };
314
- luvio.publishStoreMetadata(key, storeMetadataParams);
315
- }
315
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "ActionPlan", VERSION$2, RepresentationType$2, equals$2);
316
316
  return createLink(key);
317
317
  };
318
318
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -377,13 +377,12 @@ function createResourceRequest$2(config) {
377
377
  };
378
378
  }
379
379
 
380
- const getActionPlanItems_ConfigPropertyNames = {
381
- displayName: 'getActionPlanItems',
382
- parameters: {
383
- required: ['actionPlanId'],
384
- optional: ['limit']
385
- }
386
- };
380
+ const adapterName$2 = 'getActionPlanItems';
381
+ const getActionPlanItems_ConfigPropertyMetadata = [
382
+ generateParamConfigMetadata('actionPlanId', true),
383
+ generateParamConfigMetadata('limit', false),
384
+ ];
385
+ const getActionPlanItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getActionPlanItems_ConfigPropertyMetadata);
387
386
  function createResourceParams$2(config) {
388
387
  const resourceParams = {
389
388
  urlParams: {
@@ -453,21 +452,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
453
452
  });
454
453
  }
455
454
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
456
- const { luvio, config } = context;
457
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
458
- const dispatchOptions = {
459
- resourceRequestContext: {
460
- requestCorrelator,
461
- luvioRequestMethod: undefined,
462
- },
463
- eventObservers
464
- };
465
- if (networkPriority !== 'normal') {
466
- dispatchOptions.overrides = {
467
- priority: networkPriority
468
- };
469
- }
470
- return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
455
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
471
456
  }
472
457
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
473
458
  const { luvio, config } = context;
@@ -593,26 +578,8 @@ const ingest$1 = function ActionPlanStatusInfoOutputRepresentationIngest(input,
593
578
  }
594
579
  }
595
580
  const key = path.fullPath;
596
- const existingRecord = store.readEntry(key);
597
581
  const ttlToUse = TTL$1;
598
- let incomingRecord = normalize$1(input, store.readEntry(key), {
599
- fullPath: key,
600
- parent: path.parent,
601
- propertyName: path.propertyName,
602
- ttl: ttlToUse
603
- });
604
- if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
605
- luvio.storePublish(key, incomingRecord);
606
- }
607
- {
608
- const storeMetadataParams = {
609
- ttl: ttlToUse,
610
- namespace: "ActionPlan",
611
- version: VERSION$1,
612
- representationName: RepresentationType$1,
613
- };
614
- luvio.publishStoreMetadata(key, storeMetadataParams);
615
- }
582
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "ActionPlan", VERSION$1, RepresentationType$1, equals$1);
616
583
  return createLink(key);
617
584
  };
618
585
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -677,13 +644,11 @@ function createResourceRequest$1(config) {
677
644
  };
678
645
  }
679
646
 
680
- const getActionPlanStatusInfo_ConfigPropertyNames = {
681
- displayName: 'getActionPlanStatusInfo',
682
- parameters: {
683
- required: ['actionPlanId'],
684
- optional: []
685
- }
686
- };
647
+ const adapterName$1 = 'getActionPlanStatusInfo';
648
+ const getActionPlanStatusInfo_ConfigPropertyMetadata = [
649
+ generateParamConfigMetadata('actionPlanId', true),
650
+ ];
651
+ const getActionPlanStatusInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getActionPlanStatusInfo_ConfigPropertyMetadata);
687
652
  function createResourceParams$1(config) {
688
653
  const resourceParams = {
689
654
  urlParams: {
@@ -749,21 +714,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
749
714
  });
750
715
  }
751
716
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
752
- const { luvio, config } = context;
753
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
754
- const dispatchOptions = {
755
- resourceRequestContext: {
756
- requestCorrelator,
757
- luvioRequestMethod: undefined,
758
- },
759
- eventObservers
760
- };
761
- if (networkPriority !== 'normal') {
762
- dispatchOptions.overrides = {
763
- priority: networkPriority
764
- };
765
- }
766
- return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
717
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
767
718
  }
768
719
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
769
720
  const { luvio, config } = context;
@@ -889,26 +840,8 @@ const ingest = function ActionPlansWrapperOutputRepresentationIngest(input, path
889
840
  }
890
841
  }
891
842
  const key = path.fullPath;
892
- const existingRecord = store.readEntry(key);
893
843
  const ttlToUse = TTL;
894
- let incomingRecord = normalize(input, store.readEntry(key), {
895
- fullPath: key,
896
- parent: path.parent,
897
- propertyName: path.propertyName,
898
- ttl: ttlToUse
899
- });
900
- if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
901
- luvio.storePublish(key, incomingRecord);
902
- }
903
- {
904
- const storeMetadataParams = {
905
- ttl: ttlToUse,
906
- namespace: "ActionPlan",
907
- version: VERSION,
908
- representationName: RepresentationType,
909
- };
910
- luvio.publishStoreMetadata(key, storeMetadataParams);
911
- }
844
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "ActionPlan", VERSION, RepresentationType, equals);
912
845
  return createLink(key);
913
846
  };
914
847
  function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
@@ -973,13 +906,15 @@ function createResourceRequest(config) {
973
906
  };
974
907
  }
975
908
 
976
- const getActionPlans_ConfigPropertyNames = {
977
- displayName: 'getActionPlans',
978
- parameters: {
979
- required: [],
980
- optional: ['actionPlanType', 'limit', 'order', 'orderingParam', 'targetId']
981
- }
982
- };
909
+ const adapterName = 'getActionPlans';
910
+ const getActionPlans_ConfigPropertyMetadata = [
911
+ generateParamConfigMetadata('actionPlanType', false),
912
+ generateParamConfigMetadata('limit', false),
913
+ generateParamConfigMetadata('order', false),
914
+ generateParamConfigMetadata('orderingParam', false),
915
+ generateParamConfigMetadata('targetId', false),
916
+ ];
917
+ const getActionPlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getActionPlans_ConfigPropertyMetadata);
983
918
  function createResourceParams(config) {
984
919
  const resourceParams = {
985
920
  queryParams: {
@@ -1049,21 +984,7 @@ function buildNetworkSnapshot(luvio, config, options) {
1049
984
  });
1050
985
  }
1051
986
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1052
- const { luvio, config } = context;
1053
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1054
- const dispatchOptions = {
1055
- resourceRequestContext: {
1056
- requestCorrelator,
1057
- luvioRequestMethod: undefined,
1058
- },
1059
- eventObservers
1060
- };
1061
- if (networkPriority !== 'normal') {
1062
- dispatchOptions.overrides = {
1063
- priority: networkPriority
1064
- };
1065
- }
1066
- return buildNetworkSnapshot(luvio, config, dispatchOptions);
987
+ return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1067
988
  }
1068
989
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1069
990
  const { luvio, config } = context;
@@ -1126,4 +1047,4 @@ withDefaultLuvio((luvio) => {
1126
1047
  });
1127
1048
 
1128
1049
  export { getActionPlanItems, getActionPlanItems_imperative, getActionPlanStatusInfo, getActionPlanStatusInfo_imperative, getActionPlans, getActionPlans_imperative };
1129
- // version: 1.213.0-951602080
1050
+ // version: 1.213.2-1eb996209