@salesforce/lds-adapters-industries-actionplan 1.279.0 → 1.280.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$3, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -80,6 +80,344 @@ function createLink(ref) {
80
80
  };
81
81
  }
82
82
 
83
+ function validate$g(obj, path = 'ActionPlanTemplateItemValuesLabelOutputRepresentation') {
84
+ const v_error = (() => {
85
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
86
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
87
+ }
88
+ const obj_itemEntityFieldName = obj.itemEntityFieldName;
89
+ const path_itemEntityFieldName = path + '.itemEntityFieldName';
90
+ if (typeof obj_itemEntityFieldName !== 'string') {
91
+ return new TypeError('Expected "string" but received "' + typeof obj_itemEntityFieldName + '" (at "' + path_itemEntityFieldName + '")');
92
+ }
93
+ const obj_label = obj.label;
94
+ const path_label = path + '.label';
95
+ if (typeof obj_label !== 'string') {
96
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
97
+ }
98
+ const obj_valueFormula = obj.valueFormula;
99
+ const path_valueFormula = path + '.valueFormula';
100
+ if (typeof obj_valueFormula !== 'string') {
101
+ return new TypeError('Expected "string" but received "' + typeof obj_valueFormula + '" (at "' + path_valueFormula + '")');
102
+ }
103
+ const obj_valueLiteral = obj.valueLiteral;
104
+ const path_valueLiteral = path + '.valueLiteral';
105
+ if (typeof obj_valueLiteral !== 'string') {
106
+ return new TypeError('Expected "string" but received "' + typeof obj_valueLiteral + '" (at "' + path_valueLiteral + '")');
107
+ }
108
+ })();
109
+ return v_error === undefined ? null : v_error;
110
+ }
111
+
112
+ function validate$f(obj, path = 'ActionPlanTemplateDCIItemsLabelOutputRepresentation') {
113
+ const v_error = (() => {
114
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
115
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
116
+ }
117
+ const obj_isRequired = obj.isRequired;
118
+ const path_isRequired = path + '.isRequired';
119
+ if (typeof obj_isRequired !== 'boolean') {
120
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isRequired + '" (at "' + path_isRequired + '")');
121
+ }
122
+ const obj_itemValues = obj.itemValues;
123
+ const path_itemValues = path + '.itemValues';
124
+ if (!ArrayIsArray(obj_itemValues)) {
125
+ return new TypeError('Expected "array" but received "' + typeof obj_itemValues + '" (at "' + path_itemValues + '")');
126
+ }
127
+ for (let i = 0; i < obj_itemValues.length; i++) {
128
+ const obj_itemValues_item = obj_itemValues[i];
129
+ const path_itemValues_item = path_itemValues + '[' + i + ']';
130
+ const referencepath_itemValues_itemValidationError = validate$g(obj_itemValues_item, path_itemValues_item);
131
+ if (referencepath_itemValues_itemValidationError !== null) {
132
+ let message = 'Object doesn\'t match ActionPlanTemplateItemValuesLabelOutputRepresentation (at "' + path_itemValues_item + '")\n';
133
+ message += referencepath_itemValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
134
+ return new TypeError(message);
135
+ }
136
+ }
137
+ })();
138
+ return v_error === undefined ? null : v_error;
139
+ }
140
+
141
+ function validate$e(obj, path = 'ActionPlanTemplateTaskItemsLabelOutputRepresentation') {
142
+ const v_error = (() => {
143
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
144
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
145
+ }
146
+ const obj_assignedToUserName = obj.assignedToUserName;
147
+ const path_assignedToUserName = path + '.assignedToUserName';
148
+ if (typeof obj_assignedToUserName !== 'string') {
149
+ return new TypeError('Expected "string" but received "' + typeof obj_assignedToUserName + '" (at "' + path_assignedToUserName + '")');
150
+ }
151
+ const obj_isRequired = obj.isRequired;
152
+ const path_isRequired = path + '.isRequired';
153
+ if (typeof obj_isRequired !== 'boolean') {
154
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isRequired + '" (at "' + path_isRequired + '")');
155
+ }
156
+ const obj_itemValues = obj.itemValues;
157
+ const path_itemValues = path + '.itemValues';
158
+ if (!ArrayIsArray(obj_itemValues)) {
159
+ return new TypeError('Expected "array" but received "' + typeof obj_itemValues + '" (at "' + path_itemValues + '")');
160
+ }
161
+ for (let i = 0; i < obj_itemValues.length; i++) {
162
+ const obj_itemValues_item = obj_itemValues[i];
163
+ const path_itemValues_item = path_itemValues + '[' + i + ']';
164
+ const referencepath_itemValues_itemValidationError = validate$g(obj_itemValues_item, path_itemValues_item);
165
+ if (referencepath_itemValues_itemValidationError !== null) {
166
+ let message = 'Object doesn\'t match ActionPlanTemplateItemValuesLabelOutputRepresentation (at "' + path_itemValues_item + '")\n';
167
+ message += referencepath_itemValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
168
+ return new TypeError(message);
169
+ }
170
+ }
171
+ const obj_prerequisiteTasks = obj.prerequisiteTasks;
172
+ const path_prerequisiteTasks = path + '.prerequisiteTasks';
173
+ if (!ArrayIsArray(obj_prerequisiteTasks)) {
174
+ return new TypeError('Expected "array" but received "' + typeof obj_prerequisiteTasks + '" (at "' + path_prerequisiteTasks + '")');
175
+ }
176
+ for (let i = 0; i < obj_prerequisiteTasks.length; i++) {
177
+ const obj_prerequisiteTasks_item = obj_prerequisiteTasks[i];
178
+ const path_prerequisiteTasks_item = path_prerequisiteTasks + '[' + i + ']';
179
+ if (typeof obj_prerequisiteTasks_item !== 'string') {
180
+ return new TypeError('Expected "string" but received "' + typeof obj_prerequisiteTasks_item + '" (at "' + path_prerequisiteTasks_item + '")');
181
+ }
182
+ }
183
+ })();
184
+ return v_error === undefined ? null : v_error;
185
+ }
186
+
187
+ const TTL$3 = 1000;
188
+ const VERSION$3 = "4f6f438a7b73f894719fb4030ffe1ac0";
189
+ function validate$d(obj, path = 'ActionPlanTemplateItemsLabelOutputRepresentation') {
190
+ const v_error = (() => {
191
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
192
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
193
+ }
194
+ const obj_actionPlanTemplateName = obj.actionPlanTemplateName;
195
+ const path_actionPlanTemplateName = path + '.actionPlanTemplateName';
196
+ if (typeof obj_actionPlanTemplateName !== 'string') {
197
+ return new TypeError('Expected "string" but received "' + typeof obj_actionPlanTemplateName + '" (at "' + path_actionPlanTemplateName + '")');
198
+ }
199
+ const obj_createdByUserName = obj.createdByUserName;
200
+ const path_createdByUserName = path + '.createdByUserName';
201
+ if (typeof obj_createdByUserName !== 'string') {
202
+ return new TypeError('Expected "string" but received "' + typeof obj_createdByUserName + '" (at "' + path_createdByUserName + '")');
203
+ }
204
+ const obj_dciItemList = obj.dciItemList;
205
+ const path_dciItemList = path + '.dciItemList';
206
+ if (!ArrayIsArray(obj_dciItemList)) {
207
+ return new TypeError('Expected "array" but received "' + typeof obj_dciItemList + '" (at "' + path_dciItemList + '")');
208
+ }
209
+ for (let i = 0; i < obj_dciItemList.length; i++) {
210
+ const obj_dciItemList_item = obj_dciItemList[i];
211
+ const path_dciItemList_item = path_dciItemList + '[' + i + ']';
212
+ const referencepath_dciItemList_itemValidationError = validate$f(obj_dciItemList_item, path_dciItemList_item);
213
+ if (referencepath_dciItemList_itemValidationError !== null) {
214
+ let message = 'Object doesn\'t match ActionPlanTemplateDCIItemsLabelOutputRepresentation (at "' + path_dciItemList_item + '")\n';
215
+ message += referencepath_dciItemList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
216
+ return new TypeError(message);
217
+ }
218
+ }
219
+ const obj_isCreateAdhocItemsAllowed = obj.isCreateAdhocItemsAllowed;
220
+ const path_isCreateAdhocItemsAllowed = path + '.isCreateAdhocItemsAllowed';
221
+ if (typeof obj_isCreateAdhocItemsAllowed !== 'boolean') {
222
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isCreateAdhocItemsAllowed + '" (at "' + path_isCreateAdhocItemsAllowed + '")');
223
+ }
224
+ const obj_taskItemList = obj.taskItemList;
225
+ const path_taskItemList = path + '.taskItemList';
226
+ if (!ArrayIsArray(obj_taskItemList)) {
227
+ return new TypeError('Expected "array" but received "' + typeof obj_taskItemList + '" (at "' + path_taskItemList + '")');
228
+ }
229
+ for (let i = 0; i < obj_taskItemList.length; i++) {
230
+ const obj_taskItemList_item = obj_taskItemList[i];
231
+ const path_taskItemList_item = path_taskItemList + '[' + i + ']';
232
+ const referencepath_taskItemList_itemValidationError = validate$e(obj_taskItemList_item, path_taskItemList_item);
233
+ if (referencepath_taskItemList_itemValidationError !== null) {
234
+ let message = 'Object doesn\'t match ActionPlanTemplateTaskItemsLabelOutputRepresentation (at "' + path_taskItemList_item + '")\n';
235
+ message += referencepath_taskItemList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
236
+ return new TypeError(message);
237
+ }
238
+ }
239
+ })();
240
+ return v_error === undefined ? null : v_error;
241
+ }
242
+ const RepresentationType$3 = 'ActionPlanTemplateItemsLabelOutputRepresentation';
243
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
244
+ return input;
245
+ }
246
+ const select$7 = function ActionPlanTemplateItemsLabelOutputRepresentationSelect() {
247
+ return {
248
+ kind: 'Fragment',
249
+ version: VERSION$3,
250
+ private: [],
251
+ opaque: true
252
+ };
253
+ };
254
+ function equals$3(existing, incoming) {
255
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
256
+ return false;
257
+ }
258
+ return true;
259
+ }
260
+ const ingest$3 = function ActionPlanTemplateItemsLabelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
261
+ if (process.env.NODE_ENV !== 'production') {
262
+ const validateError = validate$d(input);
263
+ if (validateError !== null) {
264
+ throw validateError;
265
+ }
266
+ }
267
+ const key = path.fullPath;
268
+ const ttlToUse = TTL$3;
269
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ActionPlan", VERSION$3, RepresentationType$3, equals$3);
270
+ return createLink(key);
271
+ };
272
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
273
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
274
+ const rootKey = fullPathFactory();
275
+ rootKeySet.set(rootKey, {
276
+ namespace: keyPrefix,
277
+ representationName: RepresentationType$3,
278
+ mergeable: false
279
+ });
280
+ }
281
+
282
+ function select$6(luvio, params) {
283
+ return select$7();
284
+ }
285
+ function keyBuilder$7(luvio, params) {
286
+ return keyPrefix + '::ActionPlanTemplateItemsLabelOutputRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'actionPlanTemplateVersionId:' + params.urlParams.actionPlanTemplateVersionId + ')';
287
+ }
288
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
289
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
290
+ }
291
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
292
+ const { body } = response;
293
+ const key = keyBuilder$7(luvio, resourceParams);
294
+ luvio.storeIngest(key, ingest$3, body);
295
+ const snapshot = luvio.storeLookup({
296
+ recordId: key,
297
+ node: select$6(),
298
+ variables: {},
299
+ }, snapshotRefresh);
300
+ if (process.env.NODE_ENV !== 'production') {
301
+ if (snapshot.state !== 'Fulfilled') {
302
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
303
+ }
304
+ }
305
+ deepFreeze(snapshot.data);
306
+ return snapshot;
307
+ }
308
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
309
+ const key = keyBuilder$7(luvio, params);
310
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
311
+ const storeMetadataParams = {
312
+ ttl: TTL$3,
313
+ namespace: keyPrefix,
314
+ version: VERSION$3,
315
+ representationName: RepresentationType$3
316
+ };
317
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
318
+ return errorSnapshot;
319
+ }
320
+ function createResourceRequest$3(config) {
321
+ const headers = {};
322
+ return {
323
+ baseUri: '/services/data/v61.0',
324
+ basePath: '/connect/action-plan-template-version/' + config.urlParams.actionPlanTemplateVersionId + '',
325
+ method: 'get',
326
+ body: null,
327
+ urlParams: config.urlParams,
328
+ queryParams: config.queryParams,
329
+ headers,
330
+ priority: 'normal',
331
+ };
332
+ }
333
+
334
+ const adapterName$3 = 'getActionPlanTemplateItemsLabel';
335
+ const getActionPlanTemplateItemsLabel_ConfigPropertyMetadata = [
336
+ generateParamConfigMetadata('actionPlanTemplateVersionId', true, 0 /* UrlParameter */, 0 /* String */),
337
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
338
+ ];
339
+ const getActionPlanTemplateItemsLabel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getActionPlanTemplateItemsLabel_ConfigPropertyMetadata);
340
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getActionPlanTemplateItemsLabel_ConfigPropertyMetadata);
341
+ function keyBuilder$6(luvio, config) {
342
+ const resourceParams = createResourceParams$3(config);
343
+ return keyBuilder$7(luvio, resourceParams);
344
+ }
345
+ function typeCheckConfig$3(untrustedConfig) {
346
+ const config = {};
347
+ typeCheckConfig$4(untrustedConfig, config, getActionPlanTemplateItemsLabel_ConfigPropertyMetadata);
348
+ return config;
349
+ }
350
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
351
+ if (!untrustedIsObject(untrustedConfig)) {
352
+ return null;
353
+ }
354
+ if (process.env.NODE_ENV !== 'production') {
355
+ validateConfig(untrustedConfig, configPropertyNames);
356
+ }
357
+ const config = typeCheckConfig$3(untrustedConfig);
358
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
359
+ return null;
360
+ }
361
+ return config;
362
+ }
363
+ function adapterFragment$3(luvio, config) {
364
+ createResourceParams$3(config);
365
+ return select$6();
366
+ }
367
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
368
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
369
+ config,
370
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
371
+ });
372
+ return luvio.storeBroadcast().then(() => snapshot);
373
+ }
374
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
375
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
376
+ config,
377
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
378
+ });
379
+ return luvio.storeBroadcast().then(() => snapshot);
380
+ }
381
+ function buildNetworkSnapshot$3(luvio, config, options) {
382
+ const resourceParams = createResourceParams$3(config);
383
+ const request = createResourceRequest$3(resourceParams);
384
+ return luvio.dispatchResourceRequest(request, options)
385
+ .then((response) => {
386
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
387
+ const cache = new StoreKeyMap();
388
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
389
+ return cache;
390
+ });
391
+ }, (response) => {
392
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
393
+ });
394
+ }
395
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
396
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
397
+ }
398
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
399
+ const { luvio, config } = context;
400
+ const selector = {
401
+ recordId: keyBuilder$6(luvio, config),
402
+ node: adapterFragment$3(luvio, config),
403
+ variables: {},
404
+ };
405
+ const cacheSnapshot = storeLookup(selector, {
406
+ config,
407
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
408
+ });
409
+ return cacheSnapshot;
410
+ }
411
+ const getActionPlanTemplateItemsLabelAdapterFactory = (luvio) => function ActionPlan__getActionPlanTemplateItemsLabel(untrustedConfig, requestContext) {
412
+ const config = validateAdapterConfig$3(untrustedConfig, getActionPlanTemplateItemsLabel_ConfigPropertyNames);
413
+ // Invalid or incomplete config
414
+ if (config === null) {
415
+ return null;
416
+ }
417
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
418
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
419
+ };
420
+
83
421
  function validate$c(obj, path = 'ActionPlanRepresentation') {
84
422
  const v_error = (() => {
85
423
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -256,14 +594,14 @@ const getActionPlans_ConfigPropertyMetadata = [
256
594
  generateParamConfigMetadata('targetId', false, 1 /* QueryParameter */, 0 /* String */),
257
595
  ];
258
596
  const getActionPlans_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getActionPlans_ConfigPropertyMetadata);
259
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getActionPlans_ConfigPropertyMetadata);
597
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getActionPlans_ConfigPropertyMetadata);
260
598
  function keyBuilder$4(luvio, config) {
261
599
  const resourceParams = createResourceParams$2(config);
262
600
  return keyBuilder$5(luvio, resourceParams);
263
601
  }
264
602
  function typeCheckConfig$2(untrustedConfig) {
265
603
  const config = {};
266
- typeCheckConfig$3(untrustedConfig, config, getActionPlans_ConfigPropertyMetadata);
604
+ typeCheckConfig$4(untrustedConfig, config, getActionPlans_ConfigPropertyMetadata);
267
605
  return config;
268
606
  }
269
607
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -312,7 +650,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
312
650
  });
313
651
  }
314
652
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
315
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
653
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
316
654
  }
317
655
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
318
656
  const { luvio, config } = context;
@@ -633,14 +971,14 @@ const getActionPlanItems_ConfigPropertyMetadata = [
633
971
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
634
972
  ];
635
973
  const getActionPlanItems_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getActionPlanItems_ConfigPropertyMetadata);
636
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getActionPlanItems_ConfigPropertyMetadata);
974
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getActionPlanItems_ConfigPropertyMetadata);
637
975
  function keyBuilder$2(luvio, config) {
638
976
  const resourceParams = createResourceParams$1(config);
639
977
  return keyBuilder$3(luvio, resourceParams);
640
978
  }
641
979
  function typeCheckConfig$1(untrustedConfig) {
642
980
  const config = {};
643
- typeCheckConfig$3(untrustedConfig, config, getActionPlanItems_ConfigPropertyMetadata);
981
+ typeCheckConfig$4(untrustedConfig, config, getActionPlanItems_ConfigPropertyMetadata);
644
982
  return config;
645
983
  }
646
984
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -689,7 +1027,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
689
1027
  });
690
1028
  }
691
1029
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
692
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1030
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
693
1031
  }
694
1032
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
695
1033
  const { luvio, config } = context;
@@ -886,14 +1224,14 @@ const getActionPlanStatusInfo_ConfigPropertyMetadata = [
886
1224
  generateParamConfigMetadata('actionPlanId', true, 0 /* UrlParameter */, 0 /* String */),
887
1225
  ];
888
1226
  const getActionPlanStatusInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getActionPlanStatusInfo_ConfigPropertyMetadata);
889
- const createResourceParams = /*#__PURE__*/ createResourceParams$3(getActionPlanStatusInfo_ConfigPropertyMetadata);
1227
+ const createResourceParams = /*#__PURE__*/ createResourceParams$4(getActionPlanStatusInfo_ConfigPropertyMetadata);
890
1228
  function keyBuilder(luvio, config) {
891
1229
  const resourceParams = createResourceParams(config);
892
1230
  return keyBuilder$1(luvio, resourceParams);
893
1231
  }
894
1232
  function typeCheckConfig(untrustedConfig) {
895
1233
  const config = {};
896
- typeCheckConfig$3(untrustedConfig, config, getActionPlanStatusInfo_ConfigPropertyMetadata);
1234
+ typeCheckConfig$4(untrustedConfig, config, getActionPlanStatusInfo_ConfigPropertyMetadata);
897
1235
  return config;
898
1236
  }
899
1237
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -942,7 +1280,7 @@ function buildNetworkSnapshot(luvio, config, options) {
942
1280
  });
943
1281
  }
944
1282
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
945
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1283
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
946
1284
  }
947
1285
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
948
1286
  const { luvio, config } = context;
@@ -967,4 +1305,4 @@ const getActionPlanStatusInfoAdapterFactory = (luvio) => function ActionPlan__ge
967
1305
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
968
1306
  };
969
1307
 
970
- export { getActionPlanItemsAdapterFactory, getActionPlanStatusInfoAdapterFactory, getActionPlansAdapterFactory };
1308
+ export { getActionPlanItemsAdapterFactory, getActionPlanStatusInfoAdapterFactory, getActionPlanTemplateItemsLabelAdapterFactory, getActionPlansAdapterFactory };
@@ -0,0 +1,28 @@
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';
3
+ import { ResourceRequestConfig as resources_getConnectActionPlanTemplateVersionByActionPlanTemplateVersionId_ResourceRequestConfig } from '../resources/getConnectActionPlanTemplateVersionByActionPlanTemplateVersionId';
4
+ import { ActionPlanTemplateItemsLabelOutputRepresentation as types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation } from '../types/ActionPlanTemplateItemsLabelOutputRepresentation';
5
+ export declare const adapterName = "getActionPlanTemplateItemsLabel";
6
+ export declare const getActionPlanTemplateItemsLabel_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getActionPlanTemplateItemsLabel_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetActionPlanTemplateItemsLabelConfig {
9
+ actionPlanTemplateVersionId: string;
10
+ limit?: number;
11
+ }
12
+ export declare const createResourceParams: (config: GetActionPlanTemplateItemsLabelConfig) => resources_getConnectActionPlanTemplateVersionByActionPlanTemplateVersionId_ResourceRequestConfig;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetActionPlanTemplateItemsLabelConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetActionPlanTemplateItemsLabelConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetActionPlanTemplateItemsLabelConfig>): adapter$45$utils_Untrusted<GetActionPlanTemplateItemsLabelConfig>;
16
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetActionPlanTemplateItemsLabelConfig | null;
17
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetActionPlanTemplateItemsLabelConfig): $64$luvio_engine_Fragment;
18
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetActionPlanTemplateItemsLabelConfig): $64$luvio_engine_Snapshot<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation, any>;
19
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetActionPlanTemplateItemsLabelConfig, resourceParams: resources_getConnectActionPlanTemplateVersionByActionPlanTemplateVersionId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation, any>>;
20
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetActionPlanTemplateItemsLabelConfig, resourceParams: resources_getConnectActionPlanTemplateVersionByActionPlanTemplateVersionId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
21
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetActionPlanTemplateItemsLabelConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation, any>>;
22
+ export type BuildSnapshotContext = {
23
+ luvio: $64$luvio_engine_Luvio;
24
+ config: GetActionPlanTemplateItemsLabelConfig;
25
+ };
26
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation, any>>;
27
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation>): $64$luvio_engine_Snapshot<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation, any>;
28
+ export declare const getActionPlanTemplateItemsLabelAdapterFactory: $64$luvio_engine_AdapterFactory<GetActionPlanTemplateItemsLabelConfig, types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation>;
@@ -1,3 +1,4 @@
1
+ export { getActionPlanTemplateItemsLabelAdapterFactory } from '../adapters/getActionPlanTemplateItemsLabel';
1
2
  export { getActionPlansAdapterFactory } from '../adapters/getActionPlans';
2
3
  export { getActionPlanItemsAdapterFactory } from '../adapters/getActionPlanItems';
3
4
  export { getActionPlanStatusInfoAdapterFactory } from '../adapters/getActionPlanStatusInfo';
@@ -1,7 +1,9 @@
1
1
  declare let getActionPlanItems: any;
2
2
  declare let getActionPlanStatusInfo: any;
3
+ declare let getActionPlanTemplateItemsLabel: any;
3
4
  declare let getActionPlans: any;
4
5
  declare let getActionPlanItems_imperative: any;
5
6
  declare let getActionPlanStatusInfo_imperative: any;
7
+ declare let getActionPlanTemplateItemsLabel_imperative: any;
6
8
  declare let getActionPlans_imperative: any;
7
- export { getActionPlanItems, getActionPlanStatusInfo, getActionPlans, getActionPlanItems_imperative, getActionPlanStatusInfo_imperative, getActionPlans_imperative, };
9
+ export { getActionPlanItems, getActionPlanStatusInfo, getActionPlanTemplateItemsLabel, getActionPlans, getActionPlanItems_imperative, getActionPlanStatusInfo_imperative, getActionPlanTemplateItemsLabel_imperative, getActionPlans_imperative, };
@@ -0,0 +1,18 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { ActionPlanTemplateItemsLabelOutputRepresentation as types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation } from '../types/ActionPlanTemplateItemsLabelOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ actionPlanTemplateVersionId: string;
6
+ };
7
+ queryParams: {
8
+ limit?: number;
9
+ };
10
+ }
11
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation): void;
15
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation, any>;
16
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ActionPlanTemplateItemsLabelOutputRepresentation_ActionPlanTemplateItemsLabelOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
17
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
+ export default createResourceRequest;
@@ -0,0 +1,32 @@
1
+ import { ActionPlanTemplateItemValuesLabelOutputRepresentation as ActionPlanTemplateItemValuesLabelOutputRepresentation_ActionPlanTemplateItemValuesLabelOutputRepresentation } from './ActionPlanTemplateItemValuesLabelOutputRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "61eeabc69078307eac62edc1a3a366ea";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ActionPlanTemplateDCIItemsLabelOutputRepresentation, existing: ActionPlanTemplateDCIItemsLabelOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanTemplateDCIItemsLabelOutputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ActionPlanTemplateDCIItemsLabelOutputRepresentationNormalized, incoming: ActionPlanTemplateDCIItemsLabelOutputRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ActionPlanTemplateDCIItemsLabelOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Representation of Action Plans Template DCI Items
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ActionPlanTemplateDCIItemsLabelOutputRepresentationNormalized {
18
+ /** Item is required or not */
19
+ isRequired: boolean;
20
+ /** List of item values */
21
+ itemValues: Array<ActionPlanTemplateItemValuesLabelOutputRepresentation_ActionPlanTemplateItemValuesLabelOutputRepresentation>;
22
+ }
23
+ /**
24
+ * Representation of Action Plans Template DCI Items
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface ActionPlanTemplateDCIItemsLabelOutputRepresentation {
30
+ isRequired: boolean;
31
+ itemValues: Array<ActionPlanTemplateItemValuesLabelOutputRepresentation_ActionPlanTemplateItemValuesLabelOutputRepresentation>;
32
+ }
@@ -0,0 +1,37 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "9bc61778ae7559872758ff6422dc347b";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ActionPlanTemplateItemValuesLabelOutputRepresentation, existing: ActionPlanTemplateItemValuesLabelOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanTemplateItemValuesLabelOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ActionPlanTemplateItemValuesLabelOutputRepresentationNormalized, incoming: ActionPlanTemplateItemValuesLabelOutputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ActionPlanTemplateItemValuesLabelOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Representation of Action Plans Template Item Values
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ActionPlanTemplateItemValuesLabelOutputRepresentationNormalized {
17
+ /** The item entity type */
18
+ itemEntityFieldName: string;
19
+ /** Item label */
20
+ label: string;
21
+ /** The item value formula */
22
+ valueFormula: string;
23
+ /** The item value literal */
24
+ valueLiteral: string;
25
+ }
26
+ /**
27
+ * Representation of Action Plans Template Item Values
28
+ *
29
+ * Keys:
30
+ * (none)
31
+ */
32
+ export interface ActionPlanTemplateItemValuesLabelOutputRepresentation {
33
+ itemEntityFieldName: string;
34
+ label: string;
35
+ valueFormula: string;
36
+ valueLiteral: string;
37
+ }
@@ -0,0 +1,43 @@
1
+ import { ActionPlanTemplateDCIItemsLabelOutputRepresentation as ActionPlanTemplateDCIItemsLabelOutputRepresentation_ActionPlanTemplateDCIItemsLabelOutputRepresentation } from './ActionPlanTemplateDCIItemsLabelOutputRepresentation';
2
+ import { ActionPlanTemplateTaskItemsLabelOutputRepresentation as ActionPlanTemplateTaskItemsLabelOutputRepresentation_ActionPlanTemplateTaskItemsLabelOutputRepresentation } from './ActionPlanTemplateTaskItemsLabelOutputRepresentation';
3
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const TTL = 1000;
5
+ export declare const VERSION = "4f6f438a7b73f894719fb4030ffe1ac0";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export declare function normalize(input: ActionPlanTemplateItemsLabelOutputRepresentation, existing: ActionPlanTemplateItemsLabelOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanTemplateItemsLabelOutputRepresentationNormalized;
9
+ export declare const select: () => $64$luvio_engine_BaseFragment;
10
+ export declare function equals(existing: ActionPlanTemplateItemsLabelOutputRepresentationNormalized, incoming: ActionPlanTemplateItemsLabelOutputRepresentationNormalized): boolean;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ActionPlanTemplateItemsLabelOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
13
+ /**
14
+ * Representation of Action Plans Template Items
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface ActionPlanTemplateItemsLabelOutputRepresentationNormalized {
20
+ /** actionPlanTemplateName description */
21
+ actionPlanTemplateName: string;
22
+ /** Item assigned to user name */
23
+ createdByUserName: string;
24
+ /** List of dci */
25
+ dciItemList: Array<ActionPlanTemplateDCIItemsLabelOutputRepresentation_ActionPlanTemplateDCIItemsLabelOutputRepresentation>;
26
+ /** isCreateAdhocItemsAllowed description */
27
+ isCreateAdhocItemsAllowed: boolean;
28
+ /** List of all task items */
29
+ taskItemList: Array<ActionPlanTemplateTaskItemsLabelOutputRepresentation_ActionPlanTemplateTaskItemsLabelOutputRepresentation>;
30
+ }
31
+ /**
32
+ * Representation of Action Plans Template Items
33
+ *
34
+ * Keys:
35
+ * (none)
36
+ */
37
+ export interface ActionPlanTemplateItemsLabelOutputRepresentation {
38
+ actionPlanTemplateName: string;
39
+ createdByUserName: string;
40
+ dciItemList: Array<ActionPlanTemplateDCIItemsLabelOutputRepresentation_ActionPlanTemplateDCIItemsLabelOutputRepresentation>;
41
+ isCreateAdhocItemsAllowed: boolean;
42
+ taskItemList: Array<ActionPlanTemplateTaskItemsLabelOutputRepresentation_ActionPlanTemplateTaskItemsLabelOutputRepresentation>;
43
+ }