@salesforce/lds-adapters-industries-rule-builder 1.153.0 → 1.155.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.
@@ -53,13 +53,26 @@ const keyPrefix = 'interaction';
53
53
  const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
54
54
  const { isArray: ArrayIsArray } = Array;
55
55
  const { stringify: JSONStringify } = JSON;
56
+ function equalsArray(a, b, equalsItem) {
57
+ const aLength = a.length;
58
+ const bLength = b.length;
59
+ if (aLength !== bLength) {
60
+ return false;
61
+ }
62
+ for (let i = 0; i < aLength; i++) {
63
+ if (equalsItem(a[i], b[i]) === false) {
64
+ return false;
65
+ }
66
+ }
67
+ return true;
68
+ }
56
69
  function createLink(ref) {
57
70
  return {
58
71
  __ref: serializeStructuredKey(ref),
59
72
  };
60
73
  }
61
74
 
62
- function validate$1e(obj, path = 'ExpressionSetInputRepresentation') {
75
+ function validate$1g(obj, path = 'ExpressionSetInputRepresentation') {
63
76
  const v_error = (() => {
64
77
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
65
78
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -118,7 +131,7 @@ function validate$1e(obj, path = 'ExpressionSetInputRepresentation') {
118
131
  return v_error === undefined ? null : v_error;
119
132
  }
120
133
 
121
- function validate$1d(obj, path = 'ContextDefinitionOutputRepresentation') {
134
+ function validate$1f(obj, path = 'ContextDefinitionOutputRepresentation') {
122
135
  const v_error = (() => {
123
136
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
124
137
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -137,7 +150,7 @@ function validate$1d(obj, path = 'ContextDefinitionOutputRepresentation') {
137
150
  return v_error === undefined ? null : v_error;
138
151
  }
139
152
 
140
- function validate$1c(obj, path = 'ExpressionSetErrorRepresentation') {
153
+ function validate$1e(obj, path = 'ExpressionSetErrorRepresentation') {
141
154
  const v_error = (() => {
142
155
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
143
156
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -151,7 +164,7 @@ function validate$1c(obj, path = 'ExpressionSetErrorRepresentation') {
151
164
  return v_error === undefined ? null : v_error;
152
165
  }
153
166
 
154
- function validate$1b(obj, path = 'ExpressionSetConditionCriteriaOutputRepresentation') {
167
+ function validate$1d(obj, path = 'ExpressionSetConditionCriteriaOutputRepresentation') {
155
168
  const v_error = (() => {
156
169
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
157
170
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -185,7 +198,7 @@ function validate$1b(obj, path = 'ExpressionSetConditionCriteriaOutputRepresenta
185
198
  return v_error === undefined ? null : v_error;
186
199
  }
187
200
 
188
- function validate$1a(obj, path = 'ExpressionSetAdvancedConditionStepOutputRepresentation') {
201
+ function validate$1c(obj, path = 'ExpressionSetAdvancedConditionStepOutputRepresentation') {
189
202
  const v_error = (() => {
190
203
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
191
204
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -203,7 +216,7 @@ function validate$1a(obj, path = 'ExpressionSetAdvancedConditionStepOutputRepres
203
216
  for (let i = 0; i < obj_criteria.length; i++) {
204
217
  const obj_criteria_item = obj_criteria[i];
205
218
  const path_criteria_item = path_criteria + '[' + i + ']';
206
- const referencepath_criteria_itemValidationError = validate$1b(obj_criteria_item, path_criteria_item);
219
+ const referencepath_criteria_itemValidationError = validate$1d(obj_criteria_item, path_criteria_item);
207
220
  if (referencepath_criteria_itemValidationError !== null) {
208
221
  let message = 'Object doesn\'t match ExpressionSetConditionCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
209
222
  message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -219,7 +232,7 @@ function validate$1a(obj, path = 'ExpressionSetAdvancedConditionStepOutputRepres
219
232
  return v_error === undefined ? null : v_error;
220
233
  }
221
234
 
222
- function validate$19(obj, path = 'ExpressionSetAggregationStepOutputRepresentation') {
235
+ function validate$1b(obj, path = 'ExpressionSetAggregationStepOutputRepresentation') {
223
236
  const v_error = (() => {
224
237
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
225
238
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -243,7 +256,7 @@ function validate$19(obj, path = 'ExpressionSetAggregationStepOutputRepresentati
243
256
  return v_error === undefined ? null : v_error;
244
257
  }
245
258
 
246
- function validate$18(obj, path = 'ExpressionSetAssignmentStepOutputRepresentation') {
259
+ function validate$1a(obj, path = 'ExpressionSetAssignmentStepOutputRepresentation') {
247
260
  const v_error = (() => {
248
261
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
249
262
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -262,7 +275,7 @@ function validate$18(obj, path = 'ExpressionSetAssignmentStepOutputRepresentatio
262
275
  return v_error === undefined ? null : v_error;
263
276
  }
264
277
 
265
- function validate$17(obj, path = 'ExpressionSetConditionExpressionStepOutputRepresentation') {
278
+ function validate$19(obj, path = 'ExpressionSetConditionExpressionStepOutputRepresentation') {
266
279
  const v_error = (() => {
267
280
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
268
281
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -281,7 +294,7 @@ function validate$17(obj, path = 'ExpressionSetConditionExpressionStepOutputRepr
281
294
  return v_error === undefined ? null : v_error;
282
295
  }
283
296
 
284
- function validate$16(obj, path = 'ExpressionSetCustomElementParameterOutputRepresentation') {
297
+ function validate$18(obj, path = 'ExpressionSetCustomElementParameterOutputRepresentation') {
285
298
  const v_error = (() => {
286
299
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
287
300
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -310,7 +323,7 @@ function validate$16(obj, path = 'ExpressionSetCustomElementParameterOutputRepre
310
323
  return v_error === undefined ? null : v_error;
311
324
  }
312
325
 
313
- function validate$15(obj, path = 'ExpressionSetCustomElementStepOutputRepresentation') {
326
+ function validate$17(obj, path = 'ExpressionSetCustomElementStepOutputRepresentation') {
314
327
  const v_error = (() => {
315
328
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
316
329
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -323,7 +336,7 @@ function validate$15(obj, path = 'ExpressionSetCustomElementStepOutputRepresenta
323
336
  for (let i = 0; i < obj_parameters.length; i++) {
324
337
  const obj_parameters_item = obj_parameters[i];
325
338
  const path_parameters_item = path_parameters + '[' + i + ']';
326
- const referencepath_parameters_itemValidationError = validate$16(obj_parameters_item, path_parameters_item);
339
+ const referencepath_parameters_itemValidationError = validate$18(obj_parameters_item, path_parameters_item);
327
340
  if (referencepath_parameters_itemValidationError !== null) {
328
341
  let message = 'Object doesn\'t match ExpressionSetCustomElementParameterOutputRepresentation (at "' + path_parameters_item + '")\n';
329
342
  message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -334,7 +347,7 @@ function validate$15(obj, path = 'ExpressionSetCustomElementStepOutputRepresenta
334
347
  return v_error === undefined ? null : v_error;
335
348
  }
336
349
 
337
- function validate$14(obj, path = 'ExpressionSetLookupTableStepOutputRepresentation') {
350
+ function validate$16(obj, path = 'ExpressionSetLookupTableStepOutputRepresentation') {
338
351
  const v_error = (() => {
339
352
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
340
353
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -353,7 +366,7 @@ function validate$14(obj, path = 'ExpressionSetLookupTableStepOutputRepresentati
353
366
  return v_error === undefined ? null : v_error;
354
367
  }
355
368
 
356
- function validate$13(obj, path = 'ExpressionSetSubExpressionStepOutputRepresentation') {
369
+ function validate$15(obj, path = 'ExpressionSetSubExpressionStepOutputRepresentation') {
357
370
  const v_error = (() => {
358
371
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
359
372
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -367,7 +380,7 @@ function validate$13(obj, path = 'ExpressionSetSubExpressionStepOutputRepresenta
367
380
  return v_error === undefined ? null : v_error;
368
381
  }
369
382
 
370
- function validate$12(obj, path = 'ExpressionSetVersionStepOutputRepresentation') {
383
+ function validate$14(obj, path = 'ExpressionSetVersionStepOutputRepresentation') {
371
384
  const v_error = (() => {
372
385
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
373
386
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -382,7 +395,7 @@ function validate$12(obj, path = 'ExpressionSetVersionStepOutputRepresentation')
382
395
  if (obj.advancedCondition !== undefined) {
383
396
  const obj_advancedCondition = obj.advancedCondition;
384
397
  const path_advancedCondition = path + '.advancedCondition';
385
- const referencepath_advancedConditionValidationError = validate$1a(obj_advancedCondition, path_advancedCondition);
398
+ const referencepath_advancedConditionValidationError = validate$1c(obj_advancedCondition, path_advancedCondition);
386
399
  if (referencepath_advancedConditionValidationError !== null) {
387
400
  let message = 'Object doesn\'t match ExpressionSetAdvancedConditionStepOutputRepresentation (at "' + path_advancedCondition + '")\n';
388
401
  message += referencepath_advancedConditionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -392,7 +405,7 @@ function validate$12(obj, path = 'ExpressionSetVersionStepOutputRepresentation')
392
405
  if (obj.aggregation !== undefined) {
393
406
  const obj_aggregation = obj.aggregation;
394
407
  const path_aggregation = path + '.aggregation';
395
- const referencepath_aggregationValidationError = validate$19(obj_aggregation, path_aggregation);
408
+ const referencepath_aggregationValidationError = validate$1b(obj_aggregation, path_aggregation);
396
409
  if (referencepath_aggregationValidationError !== null) {
397
410
  let message = 'Object doesn\'t match ExpressionSetAggregationStepOutputRepresentation (at "' + path_aggregation + '")\n';
398
411
  message += referencepath_aggregationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -402,7 +415,7 @@ function validate$12(obj, path = 'ExpressionSetVersionStepOutputRepresentation')
402
415
  if (obj.assignment !== undefined) {
403
416
  const obj_assignment = obj.assignment;
404
417
  const path_assignment = path + '.assignment';
405
- const referencepath_assignmentValidationError = validate$18(obj_assignment, path_assignment);
418
+ const referencepath_assignmentValidationError = validate$1a(obj_assignment, path_assignment);
406
419
  if (referencepath_assignmentValidationError !== null) {
407
420
  let message = 'Object doesn\'t match ExpressionSetAssignmentStepOutputRepresentation (at "' + path_assignment + '")\n';
408
421
  message += referencepath_assignmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -412,7 +425,7 @@ function validate$12(obj, path = 'ExpressionSetVersionStepOutputRepresentation')
412
425
  if (obj.conditionExpression !== undefined) {
413
426
  const obj_conditionExpression = obj.conditionExpression;
414
427
  const path_conditionExpression = path + '.conditionExpression';
415
- const referencepath_conditionExpressionValidationError = validate$17(obj_conditionExpression, path_conditionExpression);
428
+ const referencepath_conditionExpressionValidationError = validate$19(obj_conditionExpression, path_conditionExpression);
416
429
  if (referencepath_conditionExpressionValidationError !== null) {
417
430
  let message = 'Object doesn\'t match ExpressionSetConditionExpressionStepOutputRepresentation (at "' + path_conditionExpression + '")\n';
418
431
  message += referencepath_conditionExpressionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -422,7 +435,7 @@ function validate$12(obj, path = 'ExpressionSetVersionStepOutputRepresentation')
422
435
  if (obj.customElement !== undefined) {
423
436
  const obj_customElement = obj.customElement;
424
437
  const path_customElement = path + '.customElement';
425
- const referencepath_customElementValidationError = validate$15(obj_customElement, path_customElement);
438
+ const referencepath_customElementValidationError = validate$17(obj_customElement, path_customElement);
426
439
  if (referencepath_customElementValidationError !== null) {
427
440
  let message = 'Object doesn\'t match ExpressionSetCustomElementStepOutputRepresentation (at "' + path_customElement + '")\n';
428
441
  message += referencepath_customElementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -446,7 +459,7 @@ function validate$12(obj, path = 'ExpressionSetVersionStepOutputRepresentation')
446
459
  if (obj.lookupTable !== undefined) {
447
460
  const obj_lookupTable = obj.lookupTable;
448
461
  const path_lookupTable = path + '.lookupTable';
449
- const referencepath_lookupTableValidationError = validate$14(obj_lookupTable, path_lookupTable);
462
+ const referencepath_lookupTableValidationError = validate$16(obj_lookupTable, path_lookupTable);
450
463
  if (referencepath_lookupTableValidationError !== null) {
451
464
  let message = 'Object doesn\'t match ExpressionSetLookupTableStepOutputRepresentation (at "' + path_lookupTable + '")\n';
452
465
  message += referencepath_lookupTableValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -513,7 +526,7 @@ function validate$12(obj, path = 'ExpressionSetVersionStepOutputRepresentation')
513
526
  if (obj.subExpression !== undefined) {
514
527
  const obj_subExpression = obj.subExpression;
515
528
  const path_subExpression = path + '.subExpression';
516
- const referencepath_subExpressionValidationError = validate$13(obj_subExpression, path_subExpression);
529
+ const referencepath_subExpressionValidationError = validate$15(obj_subExpression, path_subExpression);
517
530
  if (referencepath_subExpressionValidationError !== null) {
518
531
  let message = 'Object doesn\'t match ExpressionSetSubExpressionStepOutputRepresentation (at "' + path_subExpression + '")\n';
519
532
  message += referencepath_subExpressionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -524,7 +537,7 @@ function validate$12(obj, path = 'ExpressionSetVersionStepOutputRepresentation')
524
537
  return v_error === undefined ? null : v_error;
525
538
  }
526
539
 
527
- function validate$11(obj, path = 'ExpressionSetVersionVariableOutputRepresentation') {
540
+ function validate$13(obj, path = 'ExpressionSetVersionVariableOutputRepresentation') {
528
541
  const v_error = (() => {
529
542
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
530
543
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -618,7 +631,7 @@ function validate$11(obj, path = 'ExpressionSetVersionVariableOutputRepresentati
618
631
  return v_error === undefined ? null : v_error;
619
632
  }
620
633
 
621
- function validate$10(obj, path = 'ExpressionSetVersionOutputRepresentation') {
634
+ function validate$12(obj, path = 'ExpressionSetVersionOutputRepresentation') {
622
635
  const v_error = (() => {
623
636
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
624
637
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -687,7 +700,7 @@ function validate$10(obj, path = 'ExpressionSetVersionOutputRepresentation') {
687
700
  for (let i = 0; i < obj_steps.length; i++) {
688
701
  const obj_steps_item = obj_steps[i];
689
702
  const path_steps_item = path_steps + '[' + i + ']';
690
- const referencepath_steps_itemValidationError = validate$12(obj_steps_item, path_steps_item);
703
+ const referencepath_steps_itemValidationError = validate$14(obj_steps_item, path_steps_item);
691
704
  if (referencepath_steps_itemValidationError !== null) {
692
705
  let message = 'Object doesn\'t match ExpressionSetVersionStepOutputRepresentation (at "' + path_steps_item + '")\n';
693
706
  message += referencepath_steps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -704,7 +717,7 @@ function validate$10(obj, path = 'ExpressionSetVersionOutputRepresentation') {
704
717
  for (let i = 0; i < obj_variables.length; i++) {
705
718
  const obj_variables_item = obj_variables[i];
706
719
  const path_variables_item = path_variables + '[' + i + ']';
707
- const referencepath_variables_itemValidationError = validate$11(obj_variables_item, path_variables_item);
720
+ const referencepath_variables_itemValidationError = validate$13(obj_variables_item, path_variables_item);
708
721
  if (referencepath_variables_itemValidationError !== null) {
709
722
  let message = 'Object doesn\'t match ExpressionSetVersionVariableOutputRepresentation (at "' + path_variables_item + '")\n';
710
723
  message += referencepath_variables_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -722,8 +735,8 @@ function validate$10(obj, path = 'ExpressionSetVersionOutputRepresentation') {
722
735
  }
723
736
 
724
737
  const TTL$h = 1000;
725
- const VERSION$j = "88bb3e9e4ffc6387ba261f9780501cb9";
726
- function validate$$(obj, path = 'ExpressionSetOutputRepresentation') {
738
+ const VERSION$l = "88bb3e9e4ffc6387ba261f9780501cb9";
739
+ function validate$11(obj, path = 'ExpressionSetOutputRepresentation') {
727
740
  const v_error = (() => {
728
741
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
729
742
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -744,7 +757,7 @@ function validate$$(obj, path = 'ExpressionSetOutputRepresentation') {
744
757
  for (let i = 0; i < obj_contextDefinitions.length; i++) {
745
758
  const obj_contextDefinitions_item = obj_contextDefinitions[i];
746
759
  const path_contextDefinitions_item = path_contextDefinitions + '[' + i + ']';
747
- const referencepath_contextDefinitions_itemValidationError = validate$1d(obj_contextDefinitions_item, path_contextDefinitions_item);
760
+ const referencepath_contextDefinitions_itemValidationError = validate$1f(obj_contextDefinitions_item, path_contextDefinitions_item);
748
761
  if (referencepath_contextDefinitions_itemValidationError !== null) {
749
762
  let message = 'Object doesn\'t match ContextDefinitionOutputRepresentation (at "' + path_contextDefinitions_item + '")\n';
750
763
  message += referencepath_contextDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -762,7 +775,7 @@ function validate$$(obj, path = 'ExpressionSetOutputRepresentation') {
762
775
  if (obj.error !== undefined) {
763
776
  const obj_error = obj.error;
764
777
  const path_error = path + '.error';
765
- const referencepath_errorValidationError = validate$1c(obj_error, path_error);
778
+ const referencepath_errorValidationError = validate$1e(obj_error, path_error);
766
779
  if (referencepath_errorValidationError !== null) {
767
780
  let message = 'Object doesn\'t match ExpressionSetErrorRepresentation (at "' + path_error + '")\n';
768
781
  message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -797,7 +810,7 @@ function validate$$(obj, path = 'ExpressionSetOutputRepresentation') {
797
810
  for (let i = 0; i < obj_versions.length; i++) {
798
811
  const obj_versions_item = obj_versions[i];
799
812
  const path_versions_item = path_versions + '[' + i + ']';
800
- const referencepath_versions_itemValidationError = validate$10(obj_versions_item, path_versions_item);
813
+ const referencepath_versions_itemValidationError = validate$12(obj_versions_item, path_versions_item);
801
814
  if (referencepath_versions_itemValidationError !== null) {
802
815
  let message = 'Object doesn\'t match ExpressionSetVersionOutputRepresentation (at "' + path_versions_item + '")\n';
803
816
  message += referencepath_versions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -808,36 +821,36 @@ function validate$$(obj, path = 'ExpressionSetOutputRepresentation') {
808
821
  })();
809
822
  return v_error === undefined ? null : v_error;
810
823
  }
811
- const RepresentationType$j = 'ExpressionSetOutputRepresentation';
812
- function keyBuilder$D(luvio, config) {
813
- return keyPrefix + '::' + RepresentationType$j + ':' + config.id;
824
+ const RepresentationType$k = 'ExpressionSetOutputRepresentation';
825
+ function keyBuilder$F(luvio, config) {
826
+ return keyPrefix + '::' + RepresentationType$k + ':' + config.id;
814
827
  }
815
828
  function keyBuilderFromType$6(luvio, object) {
816
829
  const keyParams = {
817
830
  id: object.id
818
831
  };
819
- return keyBuilder$D(luvio, keyParams);
832
+ return keyBuilder$F(luvio, keyParams);
820
833
  }
821
- function normalize$j(input, existing, path, luvio, store, timestamp) {
834
+ function normalize$k(input, existing, path, luvio, store, timestamp) {
822
835
  return input;
823
836
  }
824
- const select$H = function ExpressionSetOutputRepresentationSelect() {
837
+ const select$K = function ExpressionSetOutputRepresentationSelect() {
825
838
  return {
826
839
  kind: 'Fragment',
827
- version: VERSION$j,
840
+ version: VERSION$l,
828
841
  private: [],
829
842
  opaque: true
830
843
  };
831
844
  };
832
- function equals$j(existing, incoming) {
845
+ function equals$l(existing, incoming) {
833
846
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
834
847
  return false;
835
848
  }
836
849
  return true;
837
850
  }
838
- const ingest$j = function ExpressionSetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
851
+ const ingest$k = function ExpressionSetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
839
852
  if (process.env.NODE_ENV !== 'production') {
840
- const validateError = validate$$(input);
853
+ const validateError = validate$11(input);
841
854
  if (validateError !== null) {
842
855
  throw validateError;
843
856
  }
@@ -845,51 +858,51 @@ const ingest$j = function ExpressionSetOutputRepresentationIngest(input, path, l
845
858
  const key = keyBuilderFromType$6(luvio, input);
846
859
  const existingRecord = store.readEntry(key);
847
860
  const ttlToUse = TTL$h;
848
- let incomingRecord = normalize$j(input, store.readEntry(key), {
861
+ let incomingRecord = normalize$k(input, store.readEntry(key), {
849
862
  fullPath: key,
850
863
  parent: path.parent,
851
864
  propertyName: path.propertyName,
852
865
  ttl: ttlToUse
853
866
  });
854
- if (existingRecord === undefined || equals$j(existingRecord, incomingRecord) === false) {
867
+ if (existingRecord === undefined || equals$l(existingRecord, incomingRecord) === false) {
855
868
  luvio.storePublish(key, incomingRecord);
856
869
  }
857
870
  {
858
871
  const storeMetadataParams = {
859
872
  ttl: ttlToUse,
860
873
  namespace: "interaction",
861
- version: VERSION$j,
862
- representationName: RepresentationType$j,
874
+ version: VERSION$l,
875
+ representationName: RepresentationType$k,
863
876
  };
864
877
  luvio.publishStoreMetadata(key, storeMetadataParams);
865
878
  }
866
879
  return createLink(key);
867
880
  };
868
- function getTypeCacheKeys$j(luvio, input, fullPathFactory) {
881
+ function getTypeCacheKeys$k(luvio, input, fullPathFactory) {
869
882
  const rootKeySet = new StoreKeyMap();
870
883
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
871
884
  const rootKey = keyBuilderFromType$6(luvio, input);
872
885
  rootKeySet.set(rootKey, {
873
886
  namespace: keyPrefix,
874
- representationName: RepresentationType$j,
887
+ representationName: RepresentationType$k,
875
888
  mergeable: false
876
889
  });
877
890
  return rootKeySet;
878
891
  }
879
892
 
880
- function select$G(luvio, params) {
881
- return select$H();
893
+ function select$J(luvio, params) {
894
+ return select$K();
882
895
  }
883
- function getResponseCacheKeys$o(luvio, resourceParams, response) {
884
- return getTypeCacheKeys$j(luvio, response);
896
+ function getResponseCacheKeys$p(luvio, resourceParams, response) {
897
+ return getTypeCacheKeys$k(luvio, response);
885
898
  }
886
- function ingestSuccess$n(luvio, resourceParams, response) {
899
+ function ingestSuccess$o(luvio, resourceParams, response) {
887
900
  const { body } = response;
888
901
  const key = keyBuilderFromType$6(luvio, body);
889
- luvio.storeIngest(key, ingest$j, body);
902
+ luvio.storeIngest(key, ingest$k, body);
890
903
  const snapshot = luvio.storeLookup({
891
904
  recordId: key,
892
- node: select$G(),
905
+ node: select$J(),
893
906
  variables: {},
894
907
  });
895
908
  if (process.env.NODE_ENV !== 'production') {
@@ -900,7 +913,7 @@ function ingestSuccess$n(luvio, resourceParams, response) {
900
913
  deepFreeze(snapshot.data);
901
914
  return snapshot;
902
915
  }
903
- function createResourceRequest$o(config) {
916
+ function createResourceRequest$p(config) {
904
917
  const headers = {};
905
918
  return {
906
919
  baseUri: '/services/data/v59.0',
@@ -921,7 +934,7 @@ const createExpressionSet_ConfigPropertyNames = {
921
934
  optional: []
922
935
  }
923
936
  };
924
- function createResourceParams$o(config) {
937
+ function createResourceParams$p(config) {
925
938
  const resourceParams = {
926
939
  body: {
927
940
  esInputRepresentationObject: config.esInputRepresentationObject
@@ -929,37 +942,37 @@ function createResourceParams$o(config) {
929
942
  };
930
943
  return resourceParams;
931
944
  }
932
- function typeCheckConfig$o(untrustedConfig) {
945
+ function typeCheckConfig$p(untrustedConfig) {
933
946
  const config = {};
934
947
  const untrustedConfig_esInputRepresentationObject = untrustedConfig.esInputRepresentationObject;
935
- const referenceExpressionSetInputRepresentationValidationError = validate$1e(untrustedConfig_esInputRepresentationObject);
948
+ const referenceExpressionSetInputRepresentationValidationError = validate$1g(untrustedConfig_esInputRepresentationObject);
936
949
  if (referenceExpressionSetInputRepresentationValidationError === null) {
937
950
  config.esInputRepresentationObject = untrustedConfig_esInputRepresentationObject;
938
951
  }
939
952
  return config;
940
953
  }
941
- function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
954
+ function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
942
955
  if (!untrustedIsObject(untrustedConfig)) {
943
956
  return null;
944
957
  }
945
958
  if (process.env.NODE_ENV !== 'production') {
946
959
  validateConfig(untrustedConfig, configPropertyNames);
947
960
  }
948
- const config = typeCheckConfig$o(untrustedConfig);
961
+ const config = typeCheckConfig$p(untrustedConfig);
949
962
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
950
963
  return null;
951
964
  }
952
965
  return config;
953
966
  }
954
- function buildNetworkSnapshot$o(luvio, config, options) {
955
- const resourceParams = createResourceParams$o(config);
956
- const request = createResourceRequest$o(resourceParams);
967
+ function buildNetworkSnapshot$p(luvio, config, options) {
968
+ const resourceParams = createResourceParams$p(config);
969
+ const request = createResourceRequest$p(resourceParams);
957
970
  return luvio.dispatchResourceRequest(request, options)
958
971
  .then((response) => {
959
972
  return luvio.handleSuccessResponse(() => {
960
- const snapshot = ingestSuccess$n(luvio, resourceParams, response);
973
+ const snapshot = ingestSuccess$o(luvio, resourceParams, response);
961
974
  return luvio.storeBroadcast().then(() => snapshot);
962
- }, () => getResponseCacheKeys$o(luvio, resourceParams, response.body));
975
+ }, () => getResponseCacheKeys$p(luvio, resourceParams, response.body));
963
976
  }, (response) => {
964
977
  deepFreeze(response);
965
978
  throw response;
@@ -967,35 +980,35 @@ function buildNetworkSnapshot$o(luvio, config, options) {
967
980
  }
968
981
  const createExpressionSetAdapterFactory = (luvio) => {
969
982
  return function createExpressionSet(untrustedConfig) {
970
- const config = validateAdapterConfig$o(untrustedConfig, createExpressionSet_ConfigPropertyNames);
983
+ const config = validateAdapterConfig$p(untrustedConfig, createExpressionSet_ConfigPropertyNames);
971
984
  // Invalid or incomplete config
972
985
  if (config === null) {
973
986
  throw new Error('Invalid config for "createExpressionSet"');
974
987
  }
975
- return buildNetworkSnapshot$o(luvio, config);
988
+ return buildNetworkSnapshot$p(luvio, config);
976
989
  };
977
990
  };
978
991
 
979
- function keyBuilder$C(luvio, params) {
980
- return keyBuilder$D(luvio, {
992
+ function keyBuilder$E(luvio, params) {
993
+ return keyBuilder$F(luvio, {
981
994
  id: params.urlParams.expressionSetId
982
995
  });
983
996
  }
984
- function getResponseCacheKeys$n(luvio, resourceParams) {
985
- const key = keyBuilder$C(luvio, resourceParams);
997
+ function getResponseCacheKeys$o(luvio, resourceParams) {
998
+ const key = keyBuilder$E(luvio, resourceParams);
986
999
  const cacheKeyMap = new StoreKeyMap();
987
1000
  cacheKeyMap.set(key, {
988
1001
  namespace: keyPrefix,
989
- representationName: RepresentationType$j,
1002
+ representationName: RepresentationType$k,
990
1003
  mergeable: false
991
1004
  });
992
1005
  return cacheKeyMap;
993
1006
  }
994
1007
  function evictSuccess(luvio, resourceParams) {
995
- const key = keyBuilder$C(luvio, resourceParams);
1008
+ const key = keyBuilder$E(luvio, resourceParams);
996
1009
  luvio.storeEvict(key);
997
1010
  }
998
- function createResourceRequest$n(config) {
1011
+ function createResourceRequest$o(config) {
999
1012
  const headers = {};
1000
1013
  return {
1001
1014
  baseUri: '/services/data/v59.0',
@@ -1017,7 +1030,7 @@ const deleteExpressionSet_ConfigPropertyNames = {
1017
1030
  optional: []
1018
1031
  }
1019
1032
  };
1020
- function createResourceParams$n(config) {
1033
+ function createResourceParams$o(config) {
1021
1034
  const resourceParams = {
1022
1035
  urlParams: {
1023
1036
  expressionSetId: config.expressionSetId
@@ -1025,7 +1038,7 @@ function createResourceParams$n(config) {
1025
1038
  };
1026
1039
  return resourceParams;
1027
1040
  }
1028
- function typeCheckConfig$n(untrustedConfig) {
1041
+ function typeCheckConfig$o(untrustedConfig) {
1029
1042
  const config = {};
1030
1043
  const untrustedConfig_expressionSetId = untrustedConfig.expressionSetId;
1031
1044
  if (typeof untrustedConfig_expressionSetId === 'string') {
@@ -1033,28 +1046,28 @@ function typeCheckConfig$n(untrustedConfig) {
1033
1046
  }
1034
1047
  return config;
1035
1048
  }
1036
- function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
1049
+ function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
1037
1050
  if (!untrustedIsObject(untrustedConfig)) {
1038
1051
  return null;
1039
1052
  }
1040
1053
  if (process.env.NODE_ENV !== 'production') {
1041
1054
  validateConfig(untrustedConfig, configPropertyNames);
1042
1055
  }
1043
- const config = typeCheckConfig$n(untrustedConfig);
1056
+ const config = typeCheckConfig$o(untrustedConfig);
1044
1057
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1045
1058
  return null;
1046
1059
  }
1047
1060
  return config;
1048
1061
  }
1049
- function buildNetworkSnapshot$n(luvio, config, options) {
1050
- const resourceParams = createResourceParams$n(config);
1051
- const request = createResourceRequest$n(resourceParams);
1062
+ function buildNetworkSnapshot$o(luvio, config, options) {
1063
+ const resourceParams = createResourceParams$o(config);
1064
+ const request = createResourceRequest$o(resourceParams);
1052
1065
  return luvio.dispatchResourceRequest(request, options)
1053
1066
  .then(() => {
1054
1067
  return luvio.handleSuccessResponse(() => {
1055
1068
  evictSuccess(luvio, resourceParams);
1056
1069
  return luvio.storeBroadcast();
1057
- }, () => getResponseCacheKeys$n(luvio, resourceParams));
1070
+ }, () => getResponseCacheKeys$o(luvio, resourceParams));
1058
1071
  }, (response) => {
1059
1072
  deepFreeze(response);
1060
1073
  throw response;
@@ -1062,33 +1075,33 @@ function buildNetworkSnapshot$n(luvio, config, options) {
1062
1075
  }
1063
1076
  const deleteExpressionSetAdapterFactory = (luvio) => {
1064
1077
  return function interactiondeleteExpressionSet(untrustedConfig) {
1065
- const config = validateAdapterConfig$n(untrustedConfig, deleteExpressionSet_ConfigPropertyNames);
1078
+ const config = validateAdapterConfig$o(untrustedConfig, deleteExpressionSet_ConfigPropertyNames);
1066
1079
  // Invalid or incomplete config
1067
1080
  if (config === null) {
1068
1081
  throw new Error(`Invalid config for "${adapterName}"`);
1069
1082
  }
1070
- return buildNetworkSnapshot$n(luvio, config);
1083
+ return buildNetworkSnapshot$o(luvio, config);
1071
1084
  };
1072
1085
  };
1073
1086
 
1074
- function select$F(luvio, params) {
1075
- return select$H();
1087
+ function select$I(luvio, params) {
1088
+ return select$K();
1076
1089
  }
1077
- function keyBuilder$B(luvio, params) {
1078
- return keyBuilder$D(luvio, {
1090
+ function keyBuilder$D(luvio, params) {
1091
+ return keyBuilder$F(luvio, {
1079
1092
  id: params.urlParams.expressionSetId
1080
1093
  });
1081
1094
  }
1082
- function getResponseCacheKeys$m(luvio, resourceParams, response) {
1083
- return getTypeCacheKeys$j(luvio, response);
1095
+ function getResponseCacheKeys$n(luvio, resourceParams, response) {
1096
+ return getTypeCacheKeys$k(luvio, response);
1084
1097
  }
1085
- function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
1098
+ function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
1086
1099
  const { body } = response;
1087
- const key = keyBuilder$B(luvio, resourceParams);
1088
- luvio.storeIngest(key, ingest$j, body);
1100
+ const key = keyBuilder$D(luvio, resourceParams);
1101
+ luvio.storeIngest(key, ingest$k, body);
1089
1102
  const snapshot = luvio.storeLookup({
1090
1103
  recordId: key,
1091
- node: select$F(),
1104
+ node: select$I(),
1092
1105
  variables: {},
1093
1106
  }, snapshotRefresh);
1094
1107
  if (process.env.NODE_ENV !== 'production') {
@@ -1099,19 +1112,19 @@ function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
1099
1112
  deepFreeze(snapshot.data);
1100
1113
  return snapshot;
1101
1114
  }
1102
- function ingestError$f(luvio, params, error, snapshotRefresh) {
1103
- const key = keyBuilder$B(luvio, params);
1115
+ function ingestError$g(luvio, params, error, snapshotRefresh) {
1116
+ const key = keyBuilder$D(luvio, params);
1104
1117
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1105
1118
  const storeMetadataParams = {
1106
1119
  ttl: TTL$h,
1107
1120
  namespace: keyPrefix,
1108
- version: VERSION$j,
1109
- representationName: RepresentationType$j
1121
+ version: VERSION$l,
1122
+ representationName: RepresentationType$k
1110
1123
  };
1111
1124
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1112
1125
  return errorSnapshot;
1113
1126
  }
1114
- function createResourceRequest$m(config) {
1127
+ function createResourceRequest$n(config) {
1115
1128
  const headers = {};
1116
1129
  return {
1117
1130
  baseUri: '/services/data/v59.0',
@@ -1132,7 +1145,7 @@ const getExpressionSet_ConfigPropertyNames = {
1132
1145
  optional: []
1133
1146
  }
1134
1147
  };
1135
- function createResourceParams$m(config) {
1148
+ function createResourceParams$n(config) {
1136
1149
  const resourceParams = {
1137
1150
  urlParams: {
1138
1151
  expressionSetId: config.expressionSetId
@@ -1140,11 +1153,11 @@ function createResourceParams$m(config) {
1140
1153
  };
1141
1154
  return resourceParams;
1142
1155
  }
1143
- function keyBuilder$A(luvio, config) {
1144
- const resourceParams = createResourceParams$m(config);
1145
- return keyBuilder$B(luvio, resourceParams);
1156
+ function keyBuilder$C(luvio, config) {
1157
+ const resourceParams = createResourceParams$n(config);
1158
+ return keyBuilder$D(luvio, resourceParams);
1146
1159
  }
1147
- function typeCheckConfig$m(untrustedConfig) {
1160
+ function typeCheckConfig$n(untrustedConfig) {
1148
1161
  const config = {};
1149
1162
  const untrustedConfig_expressionSetId = untrustedConfig.expressionSetId;
1150
1163
  if (typeof untrustedConfig_expressionSetId === 'string') {
@@ -1152,48 +1165,48 @@ function typeCheckConfig$m(untrustedConfig) {
1152
1165
  }
1153
1166
  return config;
1154
1167
  }
1155
- function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
1168
+ function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
1156
1169
  if (!untrustedIsObject(untrustedConfig)) {
1157
1170
  return null;
1158
1171
  }
1159
1172
  if (process.env.NODE_ENV !== 'production') {
1160
1173
  validateConfig(untrustedConfig, configPropertyNames);
1161
1174
  }
1162
- const config = typeCheckConfig$m(untrustedConfig);
1175
+ const config = typeCheckConfig$n(untrustedConfig);
1163
1176
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1164
1177
  return null;
1165
1178
  }
1166
1179
  return config;
1167
1180
  }
1168
- function adapterFragment$f(luvio, config) {
1169
- createResourceParams$m(config);
1170
- return select$F();
1181
+ function adapterFragment$g(luvio, config) {
1182
+ createResourceParams$n(config);
1183
+ return select$I();
1171
1184
  }
1172
- function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
1173
- const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
1185
+ function onFetchResponseSuccess$g(luvio, config, resourceParams, response) {
1186
+ const snapshot = ingestSuccess$n(luvio, resourceParams, response, {
1174
1187
  config,
1175
- resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
1188
+ resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
1176
1189
  });
1177
1190
  return luvio.storeBroadcast().then(() => snapshot);
1178
1191
  }
1179
- function onFetchResponseError$f(luvio, config, resourceParams, response) {
1180
- const snapshot = ingestError$f(luvio, resourceParams, response, {
1192
+ function onFetchResponseError$g(luvio, config, resourceParams, response) {
1193
+ const snapshot = ingestError$g(luvio, resourceParams, response, {
1181
1194
  config,
1182
- resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
1195
+ resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
1183
1196
  });
1184
1197
  return luvio.storeBroadcast().then(() => snapshot);
1185
1198
  }
1186
- function buildNetworkSnapshot$m(luvio, config, options) {
1187
- const resourceParams = createResourceParams$m(config);
1188
- const request = createResourceRequest$m(resourceParams);
1199
+ function buildNetworkSnapshot$n(luvio, config, options) {
1200
+ const resourceParams = createResourceParams$n(config);
1201
+ const request = createResourceRequest$n(resourceParams);
1189
1202
  return luvio.dispatchResourceRequest(request, options)
1190
1203
  .then((response) => {
1191
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => getResponseCacheKeys$m(luvio, resourceParams, response.body));
1204
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$g(luvio, config, resourceParams, response), () => getResponseCacheKeys$n(luvio, resourceParams, response.body));
1192
1205
  }, (response) => {
1193
- return luvio.handleErrorResponse(() => onFetchResponseError$f(luvio, config, resourceParams, response));
1206
+ return luvio.handleErrorResponse(() => onFetchResponseError$g(luvio, config, resourceParams, response));
1194
1207
  });
1195
1208
  }
1196
- function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
1209
+ function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
1197
1210
  const { luvio, config } = context;
1198
1211
  const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1199
1212
  const dispatchOptions = {
@@ -1208,44 +1221,44 @@ function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext
1208
1221
  priority: networkPriority
1209
1222
  };
1210
1223
  }
1211
- return buildNetworkSnapshot$m(luvio, config, dispatchOptions);
1224
+ return buildNetworkSnapshot$n(luvio, config, dispatchOptions);
1212
1225
  }
1213
- function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
1226
+ function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
1214
1227
  const { luvio, config } = context;
1215
1228
  const selector = {
1216
- recordId: keyBuilder$A(luvio, config),
1217
- node: adapterFragment$f(luvio, config),
1229
+ recordId: keyBuilder$C(luvio, config),
1230
+ node: adapterFragment$g(luvio, config),
1218
1231
  variables: {},
1219
1232
  };
1220
1233
  const cacheSnapshot = storeLookup(selector, {
1221
1234
  config,
1222
- resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
1235
+ resolve: () => buildNetworkSnapshot$n(luvio, config, snapshotRefreshOptions)
1223
1236
  });
1224
1237
  return cacheSnapshot;
1225
1238
  }
1226
1239
  const getExpressionSetAdapterFactory = (luvio) => function interaction__getExpressionSet(untrustedConfig, requestContext) {
1227
- const config = validateAdapterConfig$m(untrustedConfig, getExpressionSet_ConfigPropertyNames);
1240
+ const config = validateAdapterConfig$n(untrustedConfig, getExpressionSet_ConfigPropertyNames);
1228
1241
  // Invalid or incomplete config
1229
1242
  if (config === null) {
1230
1243
  return null;
1231
1244
  }
1232
1245
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1233
- buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
1246
+ buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
1234
1247
  };
1235
1248
 
1236
- function select$E(luvio, params) {
1237
- return select$H();
1249
+ function select$H(luvio, params) {
1250
+ return select$K();
1238
1251
  }
1239
- function getResponseCacheKeys$l(luvio, resourceParams, response) {
1240
- return getTypeCacheKeys$j(luvio, response);
1252
+ function getResponseCacheKeys$m(luvio, resourceParams, response) {
1253
+ return getTypeCacheKeys$k(luvio, response);
1241
1254
  }
1242
- function ingestSuccess$l(luvio, resourceParams, response) {
1255
+ function ingestSuccess$m(luvio, resourceParams, response) {
1243
1256
  const { body } = response;
1244
1257
  const key = keyBuilderFromType$6(luvio, body);
1245
- luvio.storeIngest(key, ingest$j, body);
1258
+ luvio.storeIngest(key, ingest$k, body);
1246
1259
  const snapshot = luvio.storeLookup({
1247
1260
  recordId: key,
1248
- node: select$E(),
1261
+ node: select$H(),
1249
1262
  variables: {},
1250
1263
  });
1251
1264
  if (process.env.NODE_ENV !== 'production') {
@@ -1256,7 +1269,7 @@ function ingestSuccess$l(luvio, resourceParams, response) {
1256
1269
  deepFreeze(snapshot.data);
1257
1270
  return snapshot;
1258
1271
  }
1259
- function createResourceRequest$l(config) {
1272
+ function createResourceRequest$m(config) {
1260
1273
  const headers = {};
1261
1274
  return {
1262
1275
  baseUri: '/services/data/v59.0',
@@ -1277,7 +1290,7 @@ const updateExpressionSet_ConfigPropertyNames = {
1277
1290
  optional: []
1278
1291
  }
1279
1292
  };
1280
- function createResourceParams$l(config) {
1293
+ function createResourceParams$m(config) {
1281
1294
  const resourceParams = {
1282
1295
  urlParams: {
1283
1296
  expressionSetId: config.expressionSetId
@@ -1288,41 +1301,41 @@ function createResourceParams$l(config) {
1288
1301
  };
1289
1302
  return resourceParams;
1290
1303
  }
1291
- function typeCheckConfig$l(untrustedConfig) {
1304
+ function typeCheckConfig$m(untrustedConfig) {
1292
1305
  const config = {};
1293
1306
  const untrustedConfig_expressionSetId = untrustedConfig.expressionSetId;
1294
1307
  if (typeof untrustedConfig_expressionSetId === 'string') {
1295
1308
  config.expressionSetId = untrustedConfig_expressionSetId;
1296
1309
  }
1297
1310
  const untrustedConfig_esInputRepresentationObject = untrustedConfig.esInputRepresentationObject;
1298
- const referenceExpressionSetInputRepresentationValidationError = validate$1e(untrustedConfig_esInputRepresentationObject);
1311
+ const referenceExpressionSetInputRepresentationValidationError = validate$1g(untrustedConfig_esInputRepresentationObject);
1299
1312
  if (referenceExpressionSetInputRepresentationValidationError === null) {
1300
1313
  config.esInputRepresentationObject = untrustedConfig_esInputRepresentationObject;
1301
1314
  }
1302
1315
  return config;
1303
1316
  }
1304
- function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
1317
+ function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
1305
1318
  if (!untrustedIsObject(untrustedConfig)) {
1306
1319
  return null;
1307
1320
  }
1308
1321
  if (process.env.NODE_ENV !== 'production') {
1309
1322
  validateConfig(untrustedConfig, configPropertyNames);
1310
1323
  }
1311
- const config = typeCheckConfig$l(untrustedConfig);
1324
+ const config = typeCheckConfig$m(untrustedConfig);
1312
1325
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1313
1326
  return null;
1314
1327
  }
1315
1328
  return config;
1316
1329
  }
1317
- function buildNetworkSnapshot$l(luvio, config, options) {
1318
- const resourceParams = createResourceParams$l(config);
1319
- const request = createResourceRequest$l(resourceParams);
1330
+ function buildNetworkSnapshot$m(luvio, config, options) {
1331
+ const resourceParams = createResourceParams$m(config);
1332
+ const request = createResourceRequest$m(resourceParams);
1320
1333
  return luvio.dispatchResourceRequest(request, options)
1321
1334
  .then((response) => {
1322
1335
  return luvio.handleSuccessResponse(() => {
1323
- const snapshot = ingestSuccess$l(luvio, resourceParams, response);
1336
+ const snapshot = ingestSuccess$m(luvio, resourceParams, response);
1324
1337
  return luvio.storeBroadcast().then(() => snapshot);
1325
- }, () => getResponseCacheKeys$l(luvio, resourceParams, response.body));
1338
+ }, () => getResponseCacheKeys$m(luvio, resourceParams, response.body));
1326
1339
  }, (response) => {
1327
1340
  deepFreeze(response);
1328
1341
  throw response;
@@ -1330,16 +1343,16 @@ function buildNetworkSnapshot$l(luvio, config, options) {
1330
1343
  }
1331
1344
  const updateExpressionSetAdapterFactory = (luvio) => {
1332
1345
  return function updateExpressionSet(untrustedConfig) {
1333
- const config = validateAdapterConfig$l(untrustedConfig, updateExpressionSet_ConfigPropertyNames);
1346
+ const config = validateAdapterConfig$m(untrustedConfig, updateExpressionSet_ConfigPropertyNames);
1334
1347
  // Invalid or incomplete config
1335
1348
  if (config === null) {
1336
1349
  throw new Error('Invalid config for "updateExpressionSet"');
1337
1350
  }
1338
- return buildNetworkSnapshot$l(luvio, config);
1351
+ return buildNetworkSnapshot$m(luvio, config);
1339
1352
  };
1340
1353
  };
1341
1354
 
1342
- function validate$_(obj, path = 'ExplainabilityLogDetailRepresentation') {
1355
+ function validate$10(obj, path = 'ExplainabilityLogDetailRepresentation') {
1343
1356
  const v_error = (() => {
1344
1357
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1345
1358
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1384,8 +1397,8 @@ function validate$_(obj, path = 'ExplainabilityLogDetailRepresentation') {
1384
1397
  }
1385
1398
 
1386
1399
  const TTL$g = 1000;
1387
- const VERSION$i = "a19c476d3ef5342579944b7b486b76aa";
1388
- function validate$Z(obj, path = 'ExplainabilityLogsRepresentation') {
1400
+ const VERSION$k = "a19c476d3ef5342579944b7b486b76aa";
1401
+ function validate$$(obj, path = 'ExplainabilityLogsRepresentation') {
1389
1402
  const v_error = (() => {
1390
1403
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1391
1404
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1398,7 +1411,7 @@ function validate$Z(obj, path = 'ExplainabilityLogsRepresentation') {
1398
1411
  for (let i = 0; i < obj_actionLogs.length; i++) {
1399
1412
  const obj_actionLogs_item = obj_actionLogs[i];
1400
1413
  const path_actionLogs_item = path_actionLogs + '[' + i + ']';
1401
- const referencepath_actionLogs_itemValidationError = validate$_(obj_actionLogs_item, path_actionLogs_item);
1414
+ const referencepath_actionLogs_itemValidationError = validate$10(obj_actionLogs_item, path_actionLogs_item);
1402
1415
  if (referencepath_actionLogs_itemValidationError !== null) {
1403
1416
  let message = 'Object doesn\'t match ExplainabilityLogDetailRepresentation (at "' + path_actionLogs_item + '")\n';
1404
1417
  message += referencepath_actionLogs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1415,27 +1428,27 @@ function validate$Z(obj, path = 'ExplainabilityLogsRepresentation') {
1415
1428
  })();
1416
1429
  return v_error === undefined ? null : v_error;
1417
1430
  }
1418
- const RepresentationType$i = 'ExplainabilityLogsRepresentation';
1419
- function normalize$i(input, existing, path, luvio, store, timestamp) {
1431
+ const RepresentationType$j = 'ExplainabilityLogsRepresentation';
1432
+ function normalize$j(input, existing, path, luvio, store, timestamp) {
1420
1433
  return input;
1421
1434
  }
1422
- const select$D = function ExplainabilityLogsRepresentationSelect() {
1435
+ const select$G = function ExplainabilityLogsRepresentationSelect() {
1423
1436
  return {
1424
1437
  kind: 'Fragment',
1425
- version: VERSION$i,
1438
+ version: VERSION$k,
1426
1439
  private: [],
1427
1440
  opaque: true
1428
1441
  };
1429
1442
  };
1430
- function equals$i(existing, incoming) {
1443
+ function equals$k(existing, incoming) {
1431
1444
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1432
1445
  return false;
1433
1446
  }
1434
1447
  return true;
1435
1448
  }
1436
- const ingest$i = function ExplainabilityLogsRepresentationIngest(input, path, luvio, store, timestamp) {
1449
+ const ingest$j = function ExplainabilityLogsRepresentationIngest(input, path, luvio, store, timestamp) {
1437
1450
  if (process.env.NODE_ENV !== 'production') {
1438
- const validateError = validate$Z(input);
1451
+ const validateError = validate$$(input);
1439
1452
  if (validateError !== null) {
1440
1453
  throw validateError;
1441
1454
  }
@@ -1443,54 +1456,54 @@ const ingest$i = function ExplainabilityLogsRepresentationIngest(input, path, lu
1443
1456
  const key = path.fullPath;
1444
1457
  const existingRecord = store.readEntry(key);
1445
1458
  const ttlToUse = TTL$g;
1446
- let incomingRecord = normalize$i(input, store.readEntry(key), {
1459
+ let incomingRecord = normalize$j(input, store.readEntry(key), {
1447
1460
  fullPath: key,
1448
1461
  parent: path.parent,
1449
1462
  propertyName: path.propertyName,
1450
1463
  ttl: ttlToUse
1451
1464
  });
1452
- if (existingRecord === undefined || equals$i(existingRecord, incomingRecord) === false) {
1465
+ if (existingRecord === undefined || equals$k(existingRecord, incomingRecord) === false) {
1453
1466
  luvio.storePublish(key, incomingRecord);
1454
1467
  }
1455
1468
  {
1456
1469
  const storeMetadataParams = {
1457
1470
  ttl: ttlToUse,
1458
1471
  namespace: "interaction",
1459
- version: VERSION$i,
1460
- representationName: RepresentationType$i,
1472
+ version: VERSION$k,
1473
+ representationName: RepresentationType$j,
1461
1474
  };
1462
1475
  luvio.publishStoreMetadata(key, storeMetadataParams);
1463
1476
  }
1464
1477
  return createLink(key);
1465
1478
  };
1466
- function getTypeCacheKeys$i(luvio, input, fullPathFactory) {
1479
+ function getTypeCacheKeys$j(luvio, input, fullPathFactory) {
1467
1480
  const rootKeySet = new StoreKeyMap();
1468
1481
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1469
1482
  const rootKey = fullPathFactory();
1470
1483
  rootKeySet.set(rootKey, {
1471
1484
  namespace: keyPrefix,
1472
- representationName: RepresentationType$i,
1485
+ representationName: RepresentationType$j,
1473
1486
  mergeable: false
1474
1487
  });
1475
1488
  return rootKeySet;
1476
1489
  }
1477
1490
 
1478
- function select$C(luvio, params) {
1479
- return select$D();
1491
+ function select$F(luvio, params) {
1492
+ return select$G();
1480
1493
  }
1481
- function keyBuilder$z(luvio, params) {
1494
+ function keyBuilder$B(luvio, params) {
1482
1495
  return keyPrefix + '::ExplainabilityLogsRepresentation:(' + 'actionContextCode:' + params.queryParams.actionContextCode + ',' + 'applicationSubType:' + params.queryParams.applicationSubType + ',' + 'applicationType:' + params.queryParams.applicationType + ',' + 'createdAfter:' + params.queryParams.createdAfter + ',' + 'createdBefore:' + params.queryParams.createdBefore + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'processType:' + params.queryParams.processType + ',' + 'queryMore:' + params.queryParams.queryMore + ')';
1483
1496
  }
1484
- function getResponseCacheKeys$k(luvio, resourceParams, response) {
1485
- return getTypeCacheKeys$i(luvio, response, () => keyBuilder$z(luvio, resourceParams));
1497
+ function getResponseCacheKeys$l(luvio, resourceParams, response) {
1498
+ return getTypeCacheKeys$j(luvio, response, () => keyBuilder$B(luvio, resourceParams));
1486
1499
  }
1487
- function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
1500
+ function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
1488
1501
  const { body } = response;
1489
- const key = keyBuilder$z(luvio, resourceParams);
1490
- luvio.storeIngest(key, ingest$i, body);
1502
+ const key = keyBuilder$B(luvio, resourceParams);
1503
+ luvio.storeIngest(key, ingest$j, body);
1491
1504
  const snapshot = luvio.storeLookup({
1492
1505
  recordId: key,
1493
- node: select$C(),
1506
+ node: select$F(),
1494
1507
  variables: {},
1495
1508
  }, snapshotRefresh);
1496
1509
  if (process.env.NODE_ENV !== 'production') {
@@ -1501,19 +1514,19 @@ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
1501
1514
  deepFreeze(snapshot.data);
1502
1515
  return snapshot;
1503
1516
  }
1504
- function ingestError$e(luvio, params, error, snapshotRefresh) {
1505
- const key = keyBuilder$z(luvio, params);
1517
+ function ingestError$f(luvio, params, error, snapshotRefresh) {
1518
+ const key = keyBuilder$B(luvio, params);
1506
1519
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1507
1520
  const storeMetadataParams = {
1508
1521
  ttl: TTL$g,
1509
1522
  namespace: keyPrefix,
1510
- version: VERSION$i,
1511
- representationName: RepresentationType$i
1523
+ version: VERSION$k,
1524
+ representationName: RepresentationType$j
1512
1525
  };
1513
1526
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1514
1527
  return errorSnapshot;
1515
1528
  }
1516
- function createResourceRequest$k(config) {
1529
+ function createResourceRequest$l(config) {
1517
1530
  const headers = {};
1518
1531
  return {
1519
1532
  baseUri: '/services/data/v59.0',
@@ -1534,7 +1547,7 @@ const getExplainabilityLogs_ConfigPropertyNames = {
1534
1547
  optional: ['actionContextCode', 'applicationSubType', 'applicationType', 'createdAfter', 'createdBefore', 'pageSize', 'processType', 'queryMore']
1535
1548
  }
1536
1549
  };
1537
- function createResourceParams$k(config) {
1550
+ function createResourceParams$l(config) {
1538
1551
  const resourceParams = {
1539
1552
  queryParams: {
1540
1553
  actionContextCode: config.actionContextCode, applicationSubType: config.applicationSubType, applicationType: config.applicationType, createdAfter: config.createdAfter, createdBefore: config.createdBefore, pageSize: config.pageSize, processType: config.processType, queryMore: config.queryMore
@@ -1542,11 +1555,11 @@ function createResourceParams$k(config) {
1542
1555
  };
1543
1556
  return resourceParams;
1544
1557
  }
1545
- function keyBuilder$y(luvio, config) {
1546
- const resourceParams = createResourceParams$k(config);
1547
- return keyBuilder$z(luvio, resourceParams);
1558
+ function keyBuilder$A(luvio, config) {
1559
+ const resourceParams = createResourceParams$l(config);
1560
+ return keyBuilder$B(luvio, resourceParams);
1548
1561
  }
1549
- function typeCheckConfig$k(untrustedConfig) {
1562
+ function typeCheckConfig$l(untrustedConfig) {
1550
1563
  const config = {};
1551
1564
  const untrustedConfig_actionContextCode = untrustedConfig.actionContextCode;
1552
1565
  if (typeof untrustedConfig_actionContextCode === 'string') {
@@ -1582,48 +1595,48 @@ function typeCheckConfig$k(untrustedConfig) {
1582
1595
  }
1583
1596
  return config;
1584
1597
  }
1585
- function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
1598
+ function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
1586
1599
  if (!untrustedIsObject(untrustedConfig)) {
1587
1600
  return null;
1588
1601
  }
1589
1602
  if (process.env.NODE_ENV !== 'production') {
1590
1603
  validateConfig(untrustedConfig, configPropertyNames);
1591
1604
  }
1592
- const config = typeCheckConfig$k(untrustedConfig);
1605
+ const config = typeCheckConfig$l(untrustedConfig);
1593
1606
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1594
1607
  return null;
1595
1608
  }
1596
1609
  return config;
1597
1610
  }
1598
- function adapterFragment$e(luvio, config) {
1599
- createResourceParams$k(config);
1600
- return select$C();
1611
+ function adapterFragment$f(luvio, config) {
1612
+ createResourceParams$l(config);
1613
+ return select$F();
1601
1614
  }
1602
- function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
1603
- const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
1615
+ function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
1616
+ const snapshot = ingestSuccess$l(luvio, resourceParams, response, {
1604
1617
  config,
1605
- resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
1618
+ resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
1606
1619
  });
1607
1620
  return luvio.storeBroadcast().then(() => snapshot);
1608
1621
  }
1609
- function onFetchResponseError$e(luvio, config, resourceParams, response) {
1610
- const snapshot = ingestError$e(luvio, resourceParams, response, {
1622
+ function onFetchResponseError$f(luvio, config, resourceParams, response) {
1623
+ const snapshot = ingestError$f(luvio, resourceParams, response, {
1611
1624
  config,
1612
- resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
1625
+ resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
1613
1626
  });
1614
1627
  return luvio.storeBroadcast().then(() => snapshot);
1615
1628
  }
1616
- function buildNetworkSnapshot$k(luvio, config, options) {
1617
- const resourceParams = createResourceParams$k(config);
1618
- const request = createResourceRequest$k(resourceParams);
1629
+ function buildNetworkSnapshot$l(luvio, config, options) {
1630
+ const resourceParams = createResourceParams$l(config);
1631
+ const request = createResourceRequest$l(resourceParams);
1619
1632
  return luvio.dispatchResourceRequest(request, options)
1620
1633
  .then((response) => {
1621
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => getResponseCacheKeys$k(luvio, resourceParams, response.body));
1634
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => getResponseCacheKeys$l(luvio, resourceParams, response.body));
1622
1635
  }, (response) => {
1623
- return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
1636
+ return luvio.handleErrorResponse(() => onFetchResponseError$f(luvio, config, resourceParams, response));
1624
1637
  });
1625
1638
  }
1626
- function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
1639
+ function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
1627
1640
  const { luvio, config } = context;
1628
1641
  const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1629
1642
  const dispatchOptions = {
@@ -1638,34 +1651,34 @@ function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext
1638
1651
  priority: networkPriority
1639
1652
  };
1640
1653
  }
1641
- return buildNetworkSnapshot$k(luvio, config, dispatchOptions);
1654
+ return buildNetworkSnapshot$l(luvio, config, dispatchOptions);
1642
1655
  }
1643
- function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
1656
+ function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
1644
1657
  const { luvio, config } = context;
1645
1658
  const selector = {
1646
- recordId: keyBuilder$y(luvio, config),
1647
- node: adapterFragment$e(luvio, config),
1659
+ recordId: keyBuilder$A(luvio, config),
1660
+ node: adapterFragment$f(luvio, config),
1648
1661
  variables: {},
1649
1662
  };
1650
1663
  const cacheSnapshot = storeLookup(selector, {
1651
1664
  config,
1652
- resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
1665
+ resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
1653
1666
  });
1654
1667
  return cacheSnapshot;
1655
1668
  }
1656
1669
  const getExplainabilityLogsAdapterFactory = (luvio) => function interaction__getExplainabilityLogs(untrustedConfig, requestContext) {
1657
- const config = validateAdapterConfig$k(untrustedConfig, getExplainabilityLogs_ConfigPropertyNames);
1670
+ const config = validateAdapterConfig$l(untrustedConfig, getExplainabilityLogs_ConfigPropertyNames);
1658
1671
  // Invalid or incomplete config
1659
1672
  if (config === null) {
1660
1673
  return null;
1661
1674
  }
1662
1675
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1663
- buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
1676
+ buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
1664
1677
  };
1665
1678
 
1666
1679
  const TTL$f = 1000;
1667
- const VERSION$h = "09e3f9c772ddaa5f22206be0a82ec33c";
1668
- function validate$Y(obj, path = 'MessageTemplateDetailOutputRepresentation') {
1680
+ const VERSION$j = "09e3f9c772ddaa5f22206be0a82ec33c";
1681
+ function validate$_(obj, path = 'MessageTemplateDetailOutputRepresentation') {
1669
1682
  const v_error = (() => {
1670
1683
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1671
1684
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1703,27 +1716,27 @@ function validate$Y(obj, path = 'MessageTemplateDetailOutputRepresentation') {
1703
1716
  })();
1704
1717
  return v_error === undefined ? null : v_error;
1705
1718
  }
1706
- const RepresentationType$h = 'MessageTemplateDetailOutputRepresentation';
1707
- function normalize$h(input, existing, path, luvio, store, timestamp) {
1719
+ const RepresentationType$i = 'MessageTemplateDetailOutputRepresentation';
1720
+ function normalize$i(input, existing, path, luvio, store, timestamp) {
1708
1721
  return input;
1709
1722
  }
1710
- const select$B = function MessageTemplateDetailOutputRepresentationSelect() {
1723
+ const select$E = function MessageTemplateDetailOutputRepresentationSelect() {
1711
1724
  return {
1712
1725
  kind: 'Fragment',
1713
- version: VERSION$h,
1726
+ version: VERSION$j,
1714
1727
  private: [],
1715
1728
  opaque: true
1716
1729
  };
1717
1730
  };
1718
- function equals$h(existing, incoming) {
1731
+ function equals$j(existing, incoming) {
1719
1732
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1720
1733
  return false;
1721
1734
  }
1722
1735
  return true;
1723
1736
  }
1724
- const ingest$h = function MessageTemplateDetailOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1737
+ const ingest$i = function MessageTemplateDetailOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1725
1738
  if (process.env.NODE_ENV !== 'production') {
1726
- const validateError = validate$Y(input);
1739
+ const validateError = validate$_(input);
1727
1740
  if (validateError !== null) {
1728
1741
  throw validateError;
1729
1742
  }
@@ -1731,41 +1744,41 @@ const ingest$h = function MessageTemplateDetailOutputRepresentationIngest(input,
1731
1744
  const key = path.fullPath;
1732
1745
  const existingRecord = store.readEntry(key);
1733
1746
  const ttlToUse = TTL$f;
1734
- let incomingRecord = normalize$h(input, store.readEntry(key), {
1747
+ let incomingRecord = normalize$i(input, store.readEntry(key), {
1735
1748
  fullPath: key,
1736
1749
  parent: path.parent,
1737
1750
  propertyName: path.propertyName,
1738
1751
  ttl: ttlToUse
1739
1752
  });
1740
- if (existingRecord === undefined || equals$h(existingRecord, incomingRecord) === false) {
1753
+ if (existingRecord === undefined || equals$j(existingRecord, incomingRecord) === false) {
1741
1754
  luvio.storePublish(key, incomingRecord);
1742
1755
  }
1743
1756
  {
1744
1757
  const storeMetadataParams = {
1745
1758
  ttl: ttlToUse,
1746
1759
  namespace: "interaction",
1747
- version: VERSION$h,
1748
- representationName: RepresentationType$h,
1760
+ version: VERSION$j,
1761
+ representationName: RepresentationType$i,
1749
1762
  };
1750
1763
  luvio.publishStoreMetadata(key, storeMetadataParams);
1751
1764
  }
1752
1765
  return createLink(key);
1753
1766
  };
1754
- function getTypeCacheKeys$h(luvio, input, fullPathFactory) {
1767
+ function getTypeCacheKeys$i(luvio, input, fullPathFactory) {
1755
1768
  const rootKeySet = new StoreKeyMap();
1756
1769
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1757
1770
  const rootKey = fullPathFactory();
1758
1771
  rootKeySet.set(rootKey, {
1759
1772
  namespace: keyPrefix,
1760
- representationName: RepresentationType$h,
1773
+ representationName: RepresentationType$i,
1761
1774
  mergeable: false
1762
1775
  });
1763
1776
  return rootKeySet;
1764
1777
  }
1765
1778
 
1766
1779
  const TTL$e = 1000;
1767
- const VERSION$g = "a8f4885c8fb2e0fab5adbd235fe02fd2";
1768
- function validate$X(obj, path = 'MessageTemplatesListOutputRepresentation') {
1780
+ const VERSION$i = "a8f4885c8fb2e0fab5adbd235fe02fd2";
1781
+ function validate$Z(obj, path = 'MessageTemplatesListOutputRepresentation') {
1769
1782
  const v_error = (() => {
1770
1783
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1771
1784
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1800,7 +1813,7 @@ function validate$X(obj, path = 'MessageTemplatesListOutputRepresentation') {
1800
1813
  for (let i = 0; i < obj_messageTemplates.length; i++) {
1801
1814
  const obj_messageTemplates_item = obj_messageTemplates[i];
1802
1815
  const path_messageTemplates_item = path_messageTemplates + '[' + i + ']';
1803
- const referencepath_messageTemplates_itemValidationError = validate$Y(obj_messageTemplates_item, path_messageTemplates_item);
1816
+ const referencepath_messageTemplates_itemValidationError = validate$_(obj_messageTemplates_item, path_messageTemplates_item);
1804
1817
  if (referencepath_messageTemplates_itemValidationError !== null) {
1805
1818
  let message = 'Object doesn\'t match MessageTemplateDetailOutputRepresentation (at "' + path_messageTemplates_item + '")\n';
1806
1819
  message += referencepath_messageTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1811,27 +1824,27 @@ function validate$X(obj, path = 'MessageTemplatesListOutputRepresentation') {
1811
1824
  })();
1812
1825
  return v_error === undefined ? null : v_error;
1813
1826
  }
1814
- const RepresentationType$g = 'MessageTemplatesListOutputRepresentation';
1815
- function normalize$g(input, existing, path, luvio, store, timestamp) {
1827
+ const RepresentationType$h = 'MessageTemplatesListOutputRepresentation';
1828
+ function normalize$h(input, existing, path, luvio, store, timestamp) {
1816
1829
  return input;
1817
1830
  }
1818
- const select$A = function MessageTemplatesListOutputRepresentationSelect() {
1831
+ const select$D = function MessageTemplatesListOutputRepresentationSelect() {
1819
1832
  return {
1820
1833
  kind: 'Fragment',
1821
- version: VERSION$g,
1834
+ version: VERSION$i,
1822
1835
  private: [],
1823
1836
  opaque: true
1824
1837
  };
1825
1838
  };
1826
- function equals$g(existing, incoming) {
1839
+ function equals$i(existing, incoming) {
1827
1840
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1828
1841
  return false;
1829
1842
  }
1830
1843
  return true;
1831
1844
  }
1832
- const ingest$g = function MessageTemplatesListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1845
+ const ingest$h = function MessageTemplatesListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1833
1846
  if (process.env.NODE_ENV !== 'production') {
1834
- const validateError = validate$X(input);
1847
+ const validateError = validate$Z(input);
1835
1848
  if (validateError !== null) {
1836
1849
  throw validateError;
1837
1850
  }
@@ -1839,54 +1852,54 @@ const ingest$g = function MessageTemplatesListOutputRepresentationIngest(input,
1839
1852
  const key = path.fullPath;
1840
1853
  const existingRecord = store.readEntry(key);
1841
1854
  const ttlToUse = TTL$e;
1842
- let incomingRecord = normalize$g(input, store.readEntry(key), {
1855
+ let incomingRecord = normalize$h(input, store.readEntry(key), {
1843
1856
  fullPath: key,
1844
1857
  parent: path.parent,
1845
1858
  propertyName: path.propertyName,
1846
1859
  ttl: ttlToUse
1847
1860
  });
1848
- if (existingRecord === undefined || equals$g(existingRecord, incomingRecord) === false) {
1861
+ if (existingRecord === undefined || equals$i(existingRecord, incomingRecord) === false) {
1849
1862
  luvio.storePublish(key, incomingRecord);
1850
1863
  }
1851
1864
  {
1852
1865
  const storeMetadataParams = {
1853
1866
  ttl: ttlToUse,
1854
1867
  namespace: "interaction",
1855
- version: VERSION$g,
1856
- representationName: RepresentationType$g,
1868
+ version: VERSION$i,
1869
+ representationName: RepresentationType$h,
1857
1870
  };
1858
1871
  luvio.publishStoreMetadata(key, storeMetadataParams);
1859
1872
  }
1860
1873
  return createLink(key);
1861
1874
  };
1862
- function getTypeCacheKeys$g(luvio, input, fullPathFactory) {
1875
+ function getTypeCacheKeys$h(luvio, input, fullPathFactory) {
1863
1876
  const rootKeySet = new StoreKeyMap();
1864
1877
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1865
1878
  const rootKey = fullPathFactory();
1866
1879
  rootKeySet.set(rootKey, {
1867
1880
  namespace: keyPrefix,
1868
- representationName: RepresentationType$g,
1881
+ representationName: RepresentationType$h,
1869
1882
  mergeable: false
1870
1883
  });
1871
1884
  return rootKeySet;
1872
1885
  }
1873
1886
 
1874
- function select$z(luvio, params) {
1875
- return select$A();
1887
+ function select$C(luvio, params) {
1888
+ return select$D();
1876
1889
  }
1877
- function keyBuilder$x(luvio, params) {
1890
+ function keyBuilder$z(luvio, params) {
1878
1891
  return keyPrefix + '::MessageTemplatesListOutputRepresentation:(' + 'isDefault:' + params.queryParams.isDefault + ',' + 'messageType:' + params.queryParams.messageType + ',' + 'searchKey:' + params.queryParams.searchKey + ',' + 'stepType:' + params.queryParams.stepType + ')';
1879
1892
  }
1880
- function getResponseCacheKeys$j(luvio, resourceParams, response) {
1881
- return getTypeCacheKeys$g(luvio, response, () => keyBuilder$x(luvio, resourceParams));
1893
+ function getResponseCacheKeys$k(luvio, resourceParams, response) {
1894
+ return getTypeCacheKeys$h(luvio, response, () => keyBuilder$z(luvio, resourceParams));
1882
1895
  }
1883
- function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
1896
+ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
1884
1897
  const { body } = response;
1885
- const key = keyBuilder$x(luvio, resourceParams);
1886
- luvio.storeIngest(key, ingest$g, body);
1898
+ const key = keyBuilder$z(luvio, resourceParams);
1899
+ luvio.storeIngest(key, ingest$h, body);
1887
1900
  const snapshot = luvio.storeLookup({
1888
1901
  recordId: key,
1889
- node: select$z(),
1902
+ node: select$C(),
1890
1903
  variables: {},
1891
1904
  }, snapshotRefresh);
1892
1905
  if (process.env.NODE_ENV !== 'production') {
@@ -1897,19 +1910,19 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
1897
1910
  deepFreeze(snapshot.data);
1898
1911
  return snapshot;
1899
1912
  }
1900
- function ingestError$d(luvio, params, error, snapshotRefresh) {
1901
- const key = keyBuilder$x(luvio, params);
1913
+ function ingestError$e(luvio, params, error, snapshotRefresh) {
1914
+ const key = keyBuilder$z(luvio, params);
1902
1915
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1903
1916
  const storeMetadataParams = {
1904
1917
  ttl: TTL$e,
1905
1918
  namespace: keyPrefix,
1906
- version: VERSION$g,
1907
- representationName: RepresentationType$g
1919
+ version: VERSION$i,
1920
+ representationName: RepresentationType$h
1908
1921
  };
1909
1922
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1910
1923
  return errorSnapshot;
1911
1924
  }
1912
- function createResourceRequest$j(config) {
1925
+ function createResourceRequest$k(config) {
1913
1926
  const headers = {};
1914
1927
  return {
1915
1928
  baseUri: '/services/data/v59.0',
@@ -1930,7 +1943,7 @@ const searchMessageTemplates_ConfigPropertyNames = {
1930
1943
  optional: ['isDefault', 'messageType', 'searchKey', 'stepType']
1931
1944
  }
1932
1945
  };
1933
- function createResourceParams$j(config) {
1946
+ function createResourceParams$k(config) {
1934
1947
  const resourceParams = {
1935
1948
  queryParams: {
1936
1949
  isDefault: config.isDefault, messageType: config.messageType, searchKey: config.searchKey, stepType: config.stepType
@@ -1938,11 +1951,11 @@ function createResourceParams$j(config) {
1938
1951
  };
1939
1952
  return resourceParams;
1940
1953
  }
1941
- function keyBuilder$w(luvio, config) {
1942
- const resourceParams = createResourceParams$j(config);
1943
- return keyBuilder$x(luvio, resourceParams);
1954
+ function keyBuilder$y(luvio, config) {
1955
+ const resourceParams = createResourceParams$k(config);
1956
+ return keyBuilder$z(luvio, resourceParams);
1944
1957
  }
1945
- function typeCheckConfig$j(untrustedConfig) {
1958
+ function typeCheckConfig$k(untrustedConfig) {
1946
1959
  const config = {};
1947
1960
  const untrustedConfig_isDefault = untrustedConfig.isDefault;
1948
1961
  if (typeof untrustedConfig_isDefault === 'boolean') {
@@ -1962,48 +1975,48 @@ function typeCheckConfig$j(untrustedConfig) {
1962
1975
  }
1963
1976
  return config;
1964
1977
  }
1965
- function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
1978
+ function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
1966
1979
  if (!untrustedIsObject(untrustedConfig)) {
1967
1980
  return null;
1968
1981
  }
1969
1982
  if (process.env.NODE_ENV !== 'production') {
1970
1983
  validateConfig(untrustedConfig, configPropertyNames);
1971
1984
  }
1972
- const config = typeCheckConfig$j(untrustedConfig);
1985
+ const config = typeCheckConfig$k(untrustedConfig);
1973
1986
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1974
1987
  return null;
1975
1988
  }
1976
1989
  return config;
1977
1990
  }
1978
- function adapterFragment$d(luvio, config) {
1979
- createResourceParams$j(config);
1980
- return select$z();
1991
+ function adapterFragment$e(luvio, config) {
1992
+ createResourceParams$k(config);
1993
+ return select$C();
1981
1994
  }
1982
- function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
1983
- const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
1995
+ function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
1996
+ const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
1984
1997
  config,
1985
- resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
1998
+ resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
1986
1999
  });
1987
2000
  return luvio.storeBroadcast().then(() => snapshot);
1988
2001
  }
1989
- function onFetchResponseError$d(luvio, config, resourceParams, response) {
1990
- const snapshot = ingestError$d(luvio, resourceParams, response, {
2002
+ function onFetchResponseError$e(luvio, config, resourceParams, response) {
2003
+ const snapshot = ingestError$e(luvio, resourceParams, response, {
1991
2004
  config,
1992
- resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
2005
+ resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
1993
2006
  });
1994
2007
  return luvio.storeBroadcast().then(() => snapshot);
1995
2008
  }
1996
- function buildNetworkSnapshot$j(luvio, config, options) {
1997
- const resourceParams = createResourceParams$j(config);
1998
- const request = createResourceRequest$j(resourceParams);
2009
+ function buildNetworkSnapshot$k(luvio, config, options) {
2010
+ const resourceParams = createResourceParams$k(config);
2011
+ const request = createResourceRequest$k(resourceParams);
1999
2012
  return luvio.dispatchResourceRequest(request, options)
2000
2013
  .then((response) => {
2001
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => getResponseCacheKeys$j(luvio, resourceParams, response.body));
2014
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => getResponseCacheKeys$k(luvio, resourceParams, response.body));
2002
2015
  }, (response) => {
2003
- return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
2016
+ return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
2004
2017
  });
2005
2018
  }
2006
- function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
2019
+ function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
2007
2020
  const { luvio, config } = context;
2008
2021
  const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
2009
2022
  const dispatchOptions = {
@@ -2018,47 +2031,47 @@ function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext
2018
2031
  priority: networkPriority
2019
2032
  };
2020
2033
  }
2021
- return buildNetworkSnapshot$j(luvio, config, dispatchOptions);
2034
+ return buildNetworkSnapshot$k(luvio, config, dispatchOptions);
2022
2035
  }
2023
- function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
2036
+ function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
2024
2037
  const { luvio, config } = context;
2025
2038
  const selector = {
2026
- recordId: keyBuilder$w(luvio, config),
2027
- node: adapterFragment$d(luvio, config),
2039
+ recordId: keyBuilder$y(luvio, config),
2040
+ node: adapterFragment$e(luvio, config),
2028
2041
  variables: {},
2029
2042
  };
2030
2043
  const cacheSnapshot = storeLookup(selector, {
2031
2044
  config,
2032
- resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
2045
+ resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
2033
2046
  });
2034
2047
  return cacheSnapshot;
2035
2048
  }
2036
2049
  const searchMessageTemplatesAdapterFactory = (luvio) => function interaction__searchMessageTemplates(untrustedConfig, requestContext) {
2037
- const config = validateAdapterConfig$j(untrustedConfig, searchMessageTemplates_ConfigPropertyNames);
2050
+ const config = validateAdapterConfig$k(untrustedConfig, searchMessageTemplates_ConfigPropertyNames);
2038
2051
  // Invalid or incomplete config
2039
2052
  if (config === null) {
2040
2053
  return null;
2041
2054
  }
2042
2055
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2043
- buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
2056
+ buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
2044
2057
  };
2045
2058
 
2046
- function select$y(luvio, params) {
2047
- return select$B();
2059
+ function select$B(luvio, params) {
2060
+ return select$E();
2048
2061
  }
2049
- function keyBuilder$v(luvio, params) {
2062
+ function keyBuilder$x(luvio, params) {
2050
2063
  return keyPrefix + '::MessageTemplateDetailOutputRepresentation:(' + 'messageTemplateId:' + params.urlParams.messageTemplateId + ')';
2051
2064
  }
2052
- function getResponseCacheKeys$i(luvio, resourceParams, response) {
2053
- return getTypeCacheKeys$h(luvio, response, () => keyBuilder$v(luvio, resourceParams));
2065
+ function getResponseCacheKeys$j(luvio, resourceParams, response) {
2066
+ return getTypeCacheKeys$i(luvio, response, () => keyBuilder$x(luvio, resourceParams));
2054
2067
  }
2055
- function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
2068
+ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
2056
2069
  const { body } = response;
2057
- const key = keyBuilder$v(luvio, resourceParams);
2058
- luvio.storeIngest(key, ingest$h, body);
2070
+ const key = keyBuilder$x(luvio, resourceParams);
2071
+ luvio.storeIngest(key, ingest$i, body);
2059
2072
  const snapshot = luvio.storeLookup({
2060
2073
  recordId: key,
2061
- node: select$y(),
2074
+ node: select$B(),
2062
2075
  variables: {},
2063
2076
  }, snapshotRefresh);
2064
2077
  if (process.env.NODE_ENV !== 'production') {
@@ -2069,19 +2082,19 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
2069
2082
  deepFreeze(snapshot.data);
2070
2083
  return snapshot;
2071
2084
  }
2072
- function ingestError$c(luvio, params, error, snapshotRefresh) {
2073
- const key = keyBuilder$v(luvio, params);
2085
+ function ingestError$d(luvio, params, error, snapshotRefresh) {
2086
+ const key = keyBuilder$x(luvio, params);
2074
2087
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2075
2088
  const storeMetadataParams = {
2076
2089
  ttl: TTL$f,
2077
2090
  namespace: keyPrefix,
2078
- version: VERSION$h,
2079
- representationName: RepresentationType$h
2091
+ version: VERSION$j,
2092
+ representationName: RepresentationType$i
2080
2093
  };
2081
2094
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2082
2095
  return errorSnapshot;
2083
2096
  }
2084
- function createResourceRequest$i(config) {
2097
+ function createResourceRequest$j(config) {
2085
2098
  const headers = {};
2086
2099
  return {
2087
2100
  baseUri: '/services/data/v59.0',
@@ -2102,7 +2115,7 @@ const getMessageTemplateDetail_ConfigPropertyNames = {
2102
2115
  optional: []
2103
2116
  }
2104
2117
  };
2105
- function createResourceParams$i(config) {
2118
+ function createResourceParams$j(config) {
2106
2119
  const resourceParams = {
2107
2120
  urlParams: {
2108
2121
  messageTemplateId: config.messageTemplateId
@@ -2110,11 +2123,11 @@ function createResourceParams$i(config) {
2110
2123
  };
2111
2124
  return resourceParams;
2112
2125
  }
2113
- function keyBuilder$u(luvio, config) {
2114
- const resourceParams = createResourceParams$i(config);
2115
- return keyBuilder$v(luvio, resourceParams);
2126
+ function keyBuilder$w(luvio, config) {
2127
+ const resourceParams = createResourceParams$j(config);
2128
+ return keyBuilder$x(luvio, resourceParams);
2116
2129
  }
2117
- function typeCheckConfig$i(untrustedConfig) {
2130
+ function typeCheckConfig$j(untrustedConfig) {
2118
2131
  const config = {};
2119
2132
  const untrustedConfig_messageTemplateId = untrustedConfig.messageTemplateId;
2120
2133
  if (typeof untrustedConfig_messageTemplateId === 'string') {
@@ -2122,48 +2135,48 @@ function typeCheckConfig$i(untrustedConfig) {
2122
2135
  }
2123
2136
  return config;
2124
2137
  }
2125
- function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
2138
+ function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
2126
2139
  if (!untrustedIsObject(untrustedConfig)) {
2127
2140
  return null;
2128
2141
  }
2129
2142
  if (process.env.NODE_ENV !== 'production') {
2130
2143
  validateConfig(untrustedConfig, configPropertyNames);
2131
2144
  }
2132
- const config = typeCheckConfig$i(untrustedConfig);
2145
+ const config = typeCheckConfig$j(untrustedConfig);
2133
2146
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2134
2147
  return null;
2135
2148
  }
2136
2149
  return config;
2137
2150
  }
2138
- function adapterFragment$c(luvio, config) {
2139
- createResourceParams$i(config);
2140
- return select$y();
2151
+ function adapterFragment$d(luvio, config) {
2152
+ createResourceParams$j(config);
2153
+ return select$B();
2141
2154
  }
2142
- function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
2143
- const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
2155
+ function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
2156
+ const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
2144
2157
  config,
2145
- resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
2158
+ resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
2146
2159
  });
2147
2160
  return luvio.storeBroadcast().then(() => snapshot);
2148
2161
  }
2149
- function onFetchResponseError$c(luvio, config, resourceParams, response) {
2150
- const snapshot = ingestError$c(luvio, resourceParams, response, {
2162
+ function onFetchResponseError$d(luvio, config, resourceParams, response) {
2163
+ const snapshot = ingestError$d(luvio, resourceParams, response, {
2151
2164
  config,
2152
- resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
2165
+ resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
2153
2166
  });
2154
2167
  return luvio.storeBroadcast().then(() => snapshot);
2155
2168
  }
2156
- function buildNetworkSnapshot$i(luvio, config, options) {
2157
- const resourceParams = createResourceParams$i(config);
2158
- const request = createResourceRequest$i(resourceParams);
2169
+ function buildNetworkSnapshot$j(luvio, config, options) {
2170
+ const resourceParams = createResourceParams$j(config);
2171
+ const request = createResourceRequest$j(resourceParams);
2159
2172
  return luvio.dispatchResourceRequest(request, options)
2160
2173
  .then((response) => {
2161
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => getResponseCacheKeys$i(luvio, resourceParams, response.body));
2174
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => getResponseCacheKeys$j(luvio, resourceParams, response.body));
2162
2175
  }, (response) => {
2163
- return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
2176
+ return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
2164
2177
  });
2165
2178
  }
2166
- function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
2179
+ function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
2167
2180
  const { luvio, config } = context;
2168
2181
  const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
2169
2182
  const dispatchOptions = {
@@ -2178,32 +2191,32 @@ function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext
2178
2191
  priority: networkPriority
2179
2192
  };
2180
2193
  }
2181
- return buildNetworkSnapshot$i(luvio, config, dispatchOptions);
2194
+ return buildNetworkSnapshot$j(luvio, config, dispatchOptions);
2182
2195
  }
2183
- function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
2196
+ function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
2184
2197
  const { luvio, config } = context;
2185
2198
  const selector = {
2186
- recordId: keyBuilder$u(luvio, config),
2187
- node: adapterFragment$c(luvio, config),
2199
+ recordId: keyBuilder$w(luvio, config),
2200
+ node: adapterFragment$d(luvio, config),
2188
2201
  variables: {},
2189
2202
  };
2190
2203
  const cacheSnapshot = storeLookup(selector, {
2191
2204
  config,
2192
- resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
2205
+ resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
2193
2206
  });
2194
2207
  return cacheSnapshot;
2195
2208
  }
2196
2209
  const getMessageTemplateDetailAdapterFactory = (luvio) => function interaction__getMessageTemplateDetail(untrustedConfig, requestContext) {
2197
- const config = validateAdapterConfig$i(untrustedConfig, getMessageTemplateDetail_ConfigPropertyNames);
2210
+ const config = validateAdapterConfig$j(untrustedConfig, getMessageTemplateDetail_ConfigPropertyNames);
2198
2211
  // Invalid or incomplete config
2199
2212
  if (config === null) {
2200
2213
  return null;
2201
2214
  }
2202
2215
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2203
- buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
2216
+ buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
2204
2217
  };
2205
2218
 
2206
- function validate$W(obj, path = 'OptionsRepresentation') {
2219
+ function validate$Y(obj, path = 'OptionsRepresentation') {
2207
2220
  const v_error = (() => {
2208
2221
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2209
2222
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2265,7 +2278,7 @@ function validate$W(obj, path = 'OptionsRepresentation') {
2265
2278
  return v_error === undefined ? null : v_error;
2266
2279
  }
2267
2280
 
2268
- function validate$V(obj, path = 'BusinessRulesInputRepresentation') {
2281
+ function validate$X(obj, path = 'BusinessRulesInputRepresentation') {
2269
2282
  const v_error = (() => {
2270
2283
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2271
2284
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2293,7 +2306,7 @@ function validate$V(obj, path = 'BusinessRulesInputRepresentation') {
2293
2306
  }
2294
2307
  const obj_options = obj.options;
2295
2308
  const path_options = path + '.options';
2296
- const referencepath_optionsValidationError = validate$W(obj_options, path_options);
2309
+ const referencepath_optionsValidationError = validate$Y(obj_options, path_options);
2297
2310
  if (referencepath_optionsValidationError !== null) {
2298
2311
  let message = 'Object doesn\'t match OptionsRepresentation (at "' + path_options + '")\n';
2299
2312
  message += referencepath_optionsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2303,7 +2316,7 @@ function validate$V(obj, path = 'BusinessRulesInputRepresentation') {
2303
2316
  return v_error === undefined ? null : v_error;
2304
2317
  }
2305
2318
 
2306
- function validate$U(obj, path = 'ErrorResultRepresentation') {
2319
+ function validate$W(obj, path = 'ErrorResultRepresentation') {
2307
2320
  const v_error = (() => {
2308
2321
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2309
2322
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2322,7 +2335,7 @@ function validate$U(obj, path = 'ErrorResultRepresentation') {
2322
2335
  return v_error === undefined ? null : v_error;
2323
2336
  }
2324
2337
 
2325
- function validate$T(obj, path = 'VariableMapOutputRepresentation') {
2338
+ function validate$V(obj, path = 'VariableMapOutputRepresentation') {
2326
2339
  const v_error = (() => {
2327
2340
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2328
2341
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2347,7 +2360,7 @@ function validate$T(obj, path = 'VariableMapOutputRepresentation') {
2347
2360
  return v_error === undefined ? null : v_error;
2348
2361
  }
2349
2362
 
2350
- function validate$S(obj, path = 'BusinessRuleAggregationResultsOutputRepresentation') {
2363
+ function validate$U(obj, path = 'BusinessRuleAggregationResultsOutputRepresentation') {
2351
2364
  const v_error = (() => {
2352
2365
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2353
2366
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2355,7 +2368,7 @@ function validate$S(obj, path = 'BusinessRuleAggregationResultsOutputRepresentat
2355
2368
  if (obj.error !== undefined) {
2356
2369
  const obj_error = obj.error;
2357
2370
  const path_error = path + '.error';
2358
- const referencepath_errorValidationError = validate$U(obj_error, path_error);
2371
+ const referencepath_errorValidationError = validate$W(obj_error, path_error);
2359
2372
  if (referencepath_errorValidationError !== null) {
2360
2373
  let message = 'Object doesn\'t match ErrorResultRepresentation (at "' + path_error + '")\n';
2361
2374
  message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2364,7 +2377,7 @@ function validate$S(obj, path = 'BusinessRuleAggregationResultsOutputRepresentat
2364
2377
  }
2365
2378
  const obj_results = obj.results;
2366
2379
  const path_results = path + '.results';
2367
- const referencepath_resultsValidationError = validate$T(obj_results, path_results);
2380
+ const referencepath_resultsValidationError = validate$V(obj_results, path_results);
2368
2381
  if (referencepath_resultsValidationError !== null) {
2369
2382
  let message = 'Object doesn\'t match VariableMapOutputRepresentation (at "' + path_results + '")\n';
2370
2383
  message += referencepath_resultsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2374,7 +2387,7 @@ function validate$S(obj, path = 'BusinessRuleAggregationResultsOutputRepresentat
2374
2387
  return v_error === undefined ? null : v_error;
2375
2388
  }
2376
2389
 
2377
- function validate$R(obj, path = 'RuleResultRepresentation') {
2390
+ function validate$T(obj, path = 'RuleResultRepresentation') {
2378
2391
  const v_error = (() => {
2379
2392
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2380
2393
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2382,7 +2395,7 @@ function validate$R(obj, path = 'RuleResultRepresentation') {
2382
2395
  if (obj.error !== undefined) {
2383
2396
  const obj_error = obj.error;
2384
2397
  const path_error = path + '.error';
2385
- const referencepath_errorValidationError = validate$U(obj_error, path_error);
2398
+ const referencepath_errorValidationError = validate$W(obj_error, path_error);
2386
2399
  if (referencepath_errorValidationError !== null) {
2387
2400
  let message = 'Object doesn\'t match ErrorResultRepresentation (at "' + path_error + '")\n';
2388
2401
  message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2391,7 +2404,7 @@ function validate$R(obj, path = 'RuleResultRepresentation') {
2391
2404
  }
2392
2405
  const obj_results = obj.results;
2393
2406
  const path_results = path + '.results';
2394
- const referencepath_resultsValidationError = validate$T(obj_results, path_results);
2407
+ const referencepath_resultsValidationError = validate$V(obj_results, path_results);
2395
2408
  if (referencepath_resultsValidationError !== null) {
2396
2409
  let message = 'Object doesn\'t match VariableMapOutputRepresentation (at "' + path_results + '")\n';
2397
2410
  message += referencepath_resultsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2400,7 +2413,7 @@ function validate$R(obj, path = 'RuleResultRepresentation') {
2400
2413
  if (obj.variables !== undefined) {
2401
2414
  const obj_variables = obj.variables;
2402
2415
  const path_variables = path + '.variables';
2403
- const referencepath_variablesValidationError = validate$T(obj_variables, path_variables);
2416
+ const referencepath_variablesValidationError = validate$V(obj_variables, path_variables);
2404
2417
  if (referencepath_variablesValidationError !== null) {
2405
2418
  let message = 'Object doesn\'t match VariableMapOutputRepresentation (at "' + path_variables + '")\n';
2406
2419
  message += referencepath_variablesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2411,7 +2424,7 @@ function validate$R(obj, path = 'RuleResultRepresentation') {
2411
2424
  return v_error === undefined ? null : v_error;
2412
2425
  }
2413
2426
 
2414
- function validate$Q(obj, path = 'SimulationErrorOutputRepresentation') {
2427
+ function validate$S(obj, path = 'SimulationErrorOutputRepresentation') {
2415
2428
  const v_error = (() => {
2416
2429
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2417
2430
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2435,7 +2448,7 @@ function validate$Q(obj, path = 'SimulationErrorOutputRepresentation') {
2435
2448
  return v_error === undefined ? null : v_error;
2436
2449
  }
2437
2450
 
2438
- function validate$P(obj, path = 'SimulationVariableOutputRepresentation') {
2451
+ function validate$R(obj, path = 'SimulationVariableOutputRepresentation') {
2439
2452
  const v_error = (() => {
2440
2453
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2441
2454
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2459,7 +2472,7 @@ function validate$P(obj, path = 'SimulationVariableOutputRepresentation') {
2459
2472
  return v_error === undefined ? null : v_error;
2460
2473
  }
2461
2474
 
2462
- function validate$O(obj, path = 'SimulationStepAdditionalInfoOutputRepresentation') {
2475
+ function validate$Q(obj, path = 'SimulationStepAdditionalInfoOutputRepresentation') {
2463
2476
  const v_error = (() => {
2464
2477
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2465
2478
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2483,7 +2496,7 @@ function validate$O(obj, path = 'SimulationStepAdditionalInfoOutputRepresentatio
2483
2496
  return v_error === undefined ? null : v_error;
2484
2497
  }
2485
2498
 
2486
- function validate$N(obj, path = 'SimulationStepExplainabilityMessageOutputRepresentation') {
2499
+ function validate$P(obj, path = 'SimulationStepExplainabilityMessageOutputRepresentation') {
2487
2500
  const v_error = (() => {
2488
2501
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2489
2502
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2512,7 +2525,7 @@ function validate$N(obj, path = 'SimulationStepExplainabilityMessageOutputRepres
2512
2525
  return v_error === undefined ? null : v_error;
2513
2526
  }
2514
2527
 
2515
- function validate$M(obj, path = 'SimulationStepResultOutputRepresentation') {
2528
+ function validate$O(obj, path = 'SimulationStepResultOutputRepresentation') {
2516
2529
  const v_error = (() => {
2517
2530
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2518
2531
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2520,7 +2533,7 @@ function validate$M(obj, path = 'SimulationStepResultOutputRepresentation') {
2520
2533
  if (obj.additionalInfo !== undefined) {
2521
2534
  const obj_additionalInfo = obj.additionalInfo;
2522
2535
  const path_additionalInfo = path + '.additionalInfo';
2523
- const referencepath_additionalInfoValidationError = validate$O(obj_additionalInfo, path_additionalInfo);
2536
+ const referencepath_additionalInfoValidationError = validate$Q(obj_additionalInfo, path_additionalInfo);
2524
2537
  if (referencepath_additionalInfoValidationError !== null) {
2525
2538
  let message = 'Object doesn\'t match SimulationStepAdditionalInfoOutputRepresentation (at "' + path_additionalInfo + '")\n';
2526
2539
  message += referencepath_additionalInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2530,7 +2543,7 @@ function validate$M(obj, path = 'SimulationStepResultOutputRepresentation') {
2530
2543
  if (obj.explainabilityMessage !== undefined) {
2531
2544
  const obj_explainabilityMessage = obj.explainabilityMessage;
2532
2545
  const path_explainabilityMessage = path + '.explainabilityMessage';
2533
- const referencepath_explainabilityMessageValidationError = validate$N(obj_explainabilityMessage, path_explainabilityMessage);
2546
+ const referencepath_explainabilityMessageValidationError = validate$P(obj_explainabilityMessage, path_explainabilityMessage);
2534
2547
  if (referencepath_explainabilityMessageValidationError !== null) {
2535
2548
  let message = 'Object doesn\'t match SimulationStepExplainabilityMessageOutputRepresentation (at "' + path_explainabilityMessage + '")\n';
2536
2549
  message += referencepath_explainabilityMessageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2568,7 +2581,7 @@ function validate$M(obj, path = 'SimulationStepResultOutputRepresentation') {
2568
2581
  for (let i = 0; i < obj_stepInputs.length; i++) {
2569
2582
  const obj_stepInputs_item = obj_stepInputs[i];
2570
2583
  const path_stepInputs_item = path_stepInputs + '[' + i + ']';
2571
- const referencepath_stepInputs_itemValidationError = validate$P(obj_stepInputs_item, path_stepInputs_item);
2584
+ const referencepath_stepInputs_itemValidationError = validate$R(obj_stepInputs_item, path_stepInputs_item);
2572
2585
  if (referencepath_stepInputs_itemValidationError !== null) {
2573
2586
  let message = 'Object doesn\'t match SimulationVariableOutputRepresentation (at "' + path_stepInputs_item + '")\n';
2574
2587
  message += referencepath_stepInputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2583,7 +2596,7 @@ function validate$M(obj, path = 'SimulationStepResultOutputRepresentation') {
2583
2596
  for (let i = 0; i < obj_stepResults.length; i++) {
2584
2597
  const obj_stepResults_item = obj_stepResults[i];
2585
2598
  const path_stepResults_item = path_stepResults + '[' + i + ']';
2586
- const referencepath_stepResults_itemValidationError = validate$P(obj_stepResults_item, path_stepResults_item);
2599
+ const referencepath_stepResults_itemValidationError = validate$R(obj_stepResults_item, path_stepResults_item);
2587
2600
  if (referencepath_stepResults_itemValidationError !== null) {
2588
2601
  let message = 'Object doesn\'t match SimulationVariableOutputRepresentation (at "' + path_stepResults_item + '")\n';
2589
2602
  message += referencepath_stepResults_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2594,8 +2607,8 @@ function validate$M(obj, path = 'SimulationStepResultOutputRepresentation') {
2594
2607
  return v_error === undefined ? null : v_error;
2595
2608
  }
2596
2609
 
2597
- const VERSION$f = "b6e6be6071f0e62f16a15d9d2bfcab9e";
2598
- function validate$L(obj, path = 'SimulationEvalServiceOutputRepresentation') {
2610
+ const VERSION$h = "b6e6be6071f0e62f16a15d9d2bfcab9e";
2611
+ function validate$N(obj, path = 'SimulationEvalServiceOutputRepresentation') {
2599
2612
  const v_error = (() => {
2600
2613
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2601
2614
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2603,7 +2616,7 @@ function validate$L(obj, path = 'SimulationEvalServiceOutputRepresentation') {
2603
2616
  if (obj.error !== undefined) {
2604
2617
  const obj_error = obj.error;
2605
2618
  const path_error = path + '.error';
2606
- const referencepath_errorValidationError = validate$Q(obj_error, path_error);
2619
+ const referencepath_errorValidationError = validate$S(obj_error, path_error);
2607
2620
  if (referencepath_errorValidationError !== null) {
2608
2621
  let message = 'Object doesn\'t match SimulationErrorOutputRepresentation (at "' + path_error + '")\n';
2609
2622
  message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2621,193 +2634,631 @@ function validate$L(obj, path = 'SimulationEvalServiceOutputRepresentation') {
2621
2634
  if (!ArrayIsArray(obj_simulationResults)) {
2622
2635
  return new TypeError('Expected "array" but received "' + typeof obj_simulationResults + '" (at "' + path_simulationResults + '")');
2623
2636
  }
2624
- for (let i = 0; i < obj_simulationResults.length; i++) {
2625
- const obj_simulationResults_item = obj_simulationResults[i];
2626
- const path_simulationResults_item = path_simulationResults + '[' + i + ']';
2627
- const referencepath_simulationResults_itemValidationError = validate$P(obj_simulationResults_item, path_simulationResults_item);
2628
- if (referencepath_simulationResults_itemValidationError !== null) {
2629
- let message = 'Object doesn\'t match SimulationVariableOutputRepresentation (at "' + path_simulationResults_item + '")\n';
2630
- message += referencepath_simulationResults_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2631
- return new TypeError(message);
2632
- }
2637
+ for (let i = 0; i < obj_simulationResults.length; i++) {
2638
+ const obj_simulationResults_item = obj_simulationResults[i];
2639
+ const path_simulationResults_item = path_simulationResults + '[' + i + ']';
2640
+ const referencepath_simulationResults_itemValidationError = validate$R(obj_simulationResults_item, path_simulationResults_item);
2641
+ if (referencepath_simulationResults_itemValidationError !== null) {
2642
+ let message = 'Object doesn\'t match SimulationVariableOutputRepresentation (at "' + path_simulationResults_item + '")\n';
2643
+ message += referencepath_simulationResults_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2644
+ return new TypeError(message);
2645
+ }
2646
+ }
2647
+ }
2648
+ if (obj.simulationStepResults !== undefined) {
2649
+ const obj_simulationStepResults = obj.simulationStepResults;
2650
+ const path_simulationStepResults = path + '.simulationStepResults';
2651
+ if (typeof obj_simulationStepResults !== 'object' || ArrayIsArray(obj_simulationStepResults) || obj_simulationStepResults === null) {
2652
+ return new TypeError('Expected "object" but received "' + typeof obj_simulationStepResults + '" (at "' + path_simulationStepResults + '")');
2653
+ }
2654
+ const obj_simulationStepResults_keys = ObjectKeys(obj_simulationStepResults);
2655
+ for (let i = 0; i < obj_simulationStepResults_keys.length; i++) {
2656
+ const key = obj_simulationStepResults_keys[i];
2657
+ const obj_simulationStepResults_prop = obj_simulationStepResults[key];
2658
+ const path_simulationStepResults_prop = path_simulationStepResults + '["' + key + '"]';
2659
+ const referencepath_simulationStepResults_propValidationError = validate$O(obj_simulationStepResults_prop, path_simulationStepResults_prop);
2660
+ if (referencepath_simulationStepResults_propValidationError !== null) {
2661
+ let message = 'Object doesn\'t match SimulationStepResultOutputRepresentation (at "' + path_simulationStepResults_prop + '")\n';
2662
+ message += referencepath_simulationStepResults_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2663
+ return new TypeError(message);
2664
+ }
2665
+ }
2666
+ }
2667
+ })();
2668
+ return v_error === undefined ? null : v_error;
2669
+ }
2670
+ const RepresentationType$g = 'SimulationEvalServiceOutputRepresentation';
2671
+ function keyBuilder$v(luvio, config) {
2672
+ return keyPrefix + '::' + RepresentationType$g + ':' + config.id;
2673
+ }
2674
+ function keyBuilderFromType$5(luvio, object) {
2675
+ const keyParams = {
2676
+ id: object.executionId
2677
+ };
2678
+ return keyBuilder$v(luvio, keyParams);
2679
+ }
2680
+ function normalize$g(input, existing, path, luvio, store, timestamp) {
2681
+ return input;
2682
+ }
2683
+ const select$A = function SimulationEvalServiceOutputRepresentationSelect() {
2684
+ return {
2685
+ kind: 'Fragment',
2686
+ version: VERSION$h,
2687
+ private: [],
2688
+ opaque: true
2689
+ };
2690
+ };
2691
+ function equals$h(existing, incoming) {
2692
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2693
+ return false;
2694
+ }
2695
+ return true;
2696
+ }
2697
+ const ingest$g = function SimulationEvalServiceOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2698
+ if (process.env.NODE_ENV !== 'production') {
2699
+ const validateError = validate$N(input);
2700
+ if (validateError !== null) {
2701
+ throw validateError;
2702
+ }
2703
+ }
2704
+ const key = keyBuilderFromType$5(luvio, input);
2705
+ const existingRecord = store.readEntry(key);
2706
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2707
+ let incomingRecord = normalize$g(input, store.readEntry(key), {
2708
+ fullPath: key,
2709
+ parent: path.parent,
2710
+ propertyName: path.propertyName,
2711
+ ttl: ttlToUse
2712
+ });
2713
+ if (existingRecord === undefined || equals$h(existingRecord, incomingRecord) === false) {
2714
+ luvio.storePublish(key, incomingRecord);
2715
+ }
2716
+ if (ttlToUse !== undefined) {
2717
+ const storeMetadataParams = {
2718
+ ttl: ttlToUse,
2719
+ namespace: "interaction",
2720
+ version: VERSION$h,
2721
+ representationName: RepresentationType$g,
2722
+ };
2723
+ luvio.publishStoreMetadata(key, storeMetadataParams);
2724
+ }
2725
+ return createLink(key);
2726
+ };
2727
+ function getTypeCacheKeys$g(luvio, input, fullPathFactory) {
2728
+ const rootKeySet = new StoreKeyMap();
2729
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2730
+ const rootKey = keyBuilderFromType$5(luvio, input);
2731
+ rootKeySet.set(rootKey, {
2732
+ namespace: keyPrefix,
2733
+ representationName: RepresentationType$g,
2734
+ mergeable: false
2735
+ });
2736
+ return rootKeySet;
2737
+ }
2738
+
2739
+ const TTL$d = 1000;
2740
+ const VERSION$g = "7501ca5cb7aefb69a735722a53057d1d";
2741
+ function validate$M(obj, path = 'BusinessRulesResultRepresentation') {
2742
+ const v_error = (() => {
2743
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2744
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2745
+ }
2746
+ const obj_aggregationResults = obj.aggregationResults;
2747
+ const path_aggregationResults = path + '.aggregationResults';
2748
+ const referencepath_aggregationResultsValidationError = validate$U(obj_aggregationResults, path_aggregationResults);
2749
+ if (referencepath_aggregationResultsValidationError !== null) {
2750
+ let message = 'Object doesn\'t match BusinessRuleAggregationResultsOutputRepresentation (at "' + path_aggregationResults + '")\n';
2751
+ message += referencepath_aggregationResultsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2752
+ return new TypeError(message);
2753
+ }
2754
+ const obj_executionId = obj.executionId;
2755
+ const path_executionId = path + '.executionId';
2756
+ if (typeof obj_executionId !== 'string') {
2757
+ return new TypeError('Expected "string" but received "' + typeof obj_executionId + '" (at "' + path_executionId + '")');
2758
+ }
2759
+ const obj_outputs = obj.outputs;
2760
+ const path_outputs = path + '.outputs';
2761
+ if (!ArrayIsArray(obj_outputs)) {
2762
+ return new TypeError('Expected "array" but received "' + typeof obj_outputs + '" (at "' + path_outputs + '")');
2763
+ }
2764
+ for (let i = 0; i < obj_outputs.length; i++) {
2765
+ const obj_outputs_item = obj_outputs[i];
2766
+ const path_outputs_item = path_outputs + '[' + i + ']';
2767
+ const referencepath_outputs_itemValidationError = validate$T(obj_outputs_item, path_outputs_item);
2768
+ if (referencepath_outputs_itemValidationError !== null) {
2769
+ let message = 'Object doesn\'t match RuleResultRepresentation (at "' + path_outputs_item + '")\n';
2770
+ message += referencepath_outputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2771
+ return new TypeError(message);
2772
+ }
2773
+ }
2774
+ if (obj.simulationResult !== undefined) {
2775
+ const obj_simulationResult = obj.simulationResult;
2776
+ const path_simulationResult = path + '.simulationResult';
2777
+ const referencepath_simulationResultValidationError = validate$N(obj_simulationResult, path_simulationResult);
2778
+ if (referencepath_simulationResultValidationError !== null) {
2779
+ let message = 'Object doesn\'t match SimulationEvalServiceOutputRepresentation (at "' + path_simulationResult + '")\n';
2780
+ message += referencepath_simulationResultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2781
+ return new TypeError(message);
2782
+ }
2783
+ }
2784
+ })();
2785
+ return v_error === undefined ? null : v_error;
2786
+ }
2787
+ const RepresentationType$f = 'BusinessRulesResultRepresentation';
2788
+ function keyBuilder$u(luvio, config) {
2789
+ return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
2790
+ }
2791
+ function keyBuilderFromType$4(luvio, object) {
2792
+ const keyParams = {
2793
+ id: object.executionId
2794
+ };
2795
+ return keyBuilder$u(luvio, keyParams);
2796
+ }
2797
+ function normalize$f(input, existing, path, luvio, store, timestamp) {
2798
+ return input;
2799
+ }
2800
+ const select$z = function BusinessRulesResultRepresentationSelect() {
2801
+ return {
2802
+ kind: 'Fragment',
2803
+ version: VERSION$g,
2804
+ private: [],
2805
+ opaque: true
2806
+ };
2807
+ };
2808
+ function equals$g(existing, incoming) {
2809
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2810
+ return false;
2811
+ }
2812
+ return true;
2813
+ }
2814
+ const ingest$f = function BusinessRulesResultRepresentationIngest(input, path, luvio, store, timestamp) {
2815
+ if (process.env.NODE_ENV !== 'production') {
2816
+ const validateError = validate$M(input);
2817
+ if (validateError !== null) {
2818
+ throw validateError;
2819
+ }
2820
+ }
2821
+ const key = keyBuilderFromType$4(luvio, input);
2822
+ const existingRecord = store.readEntry(key);
2823
+ const ttlToUse = TTL$d;
2824
+ let incomingRecord = normalize$f(input, store.readEntry(key), {
2825
+ fullPath: key,
2826
+ parent: path.parent,
2827
+ propertyName: path.propertyName,
2828
+ ttl: ttlToUse
2829
+ });
2830
+ if (existingRecord === undefined || equals$g(existingRecord, incomingRecord) === false) {
2831
+ luvio.storePublish(key, incomingRecord);
2832
+ }
2833
+ {
2834
+ const storeMetadataParams = {
2835
+ ttl: ttlToUse,
2836
+ namespace: "interaction",
2837
+ version: VERSION$g,
2838
+ representationName: RepresentationType$f,
2839
+ };
2840
+ luvio.publishStoreMetadata(key, storeMetadataParams);
2841
+ }
2842
+ return createLink(key);
2843
+ };
2844
+ function getTypeCacheKeys$f(luvio, input, fullPathFactory) {
2845
+ const rootKeySet = new StoreKeyMap();
2846
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2847
+ const rootKey = keyBuilderFromType$4(luvio, input);
2848
+ rootKeySet.set(rootKey, {
2849
+ namespace: keyPrefix,
2850
+ representationName: RepresentationType$f,
2851
+ mergeable: false
2852
+ });
2853
+ return rootKeySet;
2854
+ }
2855
+
2856
+ function select$y(luvio, params) {
2857
+ return select$z();
2858
+ }
2859
+ function getResponseCacheKeys$i(luvio, resourceParams, response) {
2860
+ return getTypeCacheKeys$f(luvio, response);
2861
+ }
2862
+ function ingestSuccess$i(luvio, resourceParams, response) {
2863
+ const { body } = response;
2864
+ const key = keyBuilderFromType$4(luvio, body);
2865
+ luvio.storeIngest(key, ingest$f, body);
2866
+ const snapshot = luvio.storeLookup({
2867
+ recordId: key,
2868
+ node: select$y(),
2869
+ variables: {},
2870
+ });
2871
+ if (process.env.NODE_ENV !== 'production') {
2872
+ if (snapshot.state !== 'Fulfilled') {
2873
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2874
+ }
2875
+ }
2876
+ deepFreeze(snapshot.data);
2877
+ return snapshot;
2878
+ }
2879
+ function createResourceRequest$i(config) {
2880
+ const headers = {};
2881
+ return {
2882
+ baseUri: '/services/data/v59.0',
2883
+ basePath: '/connect/business-rules/expressionSet/' + config.urlParams.expressionSetName + '',
2884
+ method: 'post',
2885
+ body: config.body,
2886
+ urlParams: config.urlParams,
2887
+ queryParams: {},
2888
+ headers,
2889
+ priority: 'normal',
2890
+ };
2891
+ }
2892
+
2893
+ const postInvokeExpressionSet_ConfigPropertyNames = {
2894
+ displayName: 'postInvokeExpressionSet',
2895
+ parameters: {
2896
+ required: ['expressionSetName', 'ruleInput'],
2897
+ optional: []
2898
+ }
2899
+ };
2900
+ function createResourceParams$i(config) {
2901
+ const resourceParams = {
2902
+ urlParams: {
2903
+ expressionSetName: config.expressionSetName
2904
+ },
2905
+ body: {
2906
+ ruleInput: config.ruleInput
2907
+ }
2908
+ };
2909
+ return resourceParams;
2910
+ }
2911
+ function typeCheckConfig$i(untrustedConfig) {
2912
+ const config = {};
2913
+ const untrustedConfig_expressionSetName = untrustedConfig.expressionSetName;
2914
+ if (typeof untrustedConfig_expressionSetName === 'string') {
2915
+ config.expressionSetName = untrustedConfig_expressionSetName;
2916
+ }
2917
+ const untrustedConfig_ruleInput = untrustedConfig.ruleInput;
2918
+ const referenceBusinessRulesInputRepresentationValidationError = validate$X(untrustedConfig_ruleInput);
2919
+ if (referenceBusinessRulesInputRepresentationValidationError === null) {
2920
+ config.ruleInput = untrustedConfig_ruleInput;
2921
+ }
2922
+ return config;
2923
+ }
2924
+ function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
2925
+ if (!untrustedIsObject(untrustedConfig)) {
2926
+ return null;
2927
+ }
2928
+ if (process.env.NODE_ENV !== 'production') {
2929
+ validateConfig(untrustedConfig, configPropertyNames);
2930
+ }
2931
+ const config = typeCheckConfig$i(untrustedConfig);
2932
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2933
+ return null;
2934
+ }
2935
+ return config;
2936
+ }
2937
+ function buildNetworkSnapshot$i(luvio, config, options) {
2938
+ const resourceParams = createResourceParams$i(config);
2939
+ const request = createResourceRequest$i(resourceParams);
2940
+ return luvio.dispatchResourceRequest(request, options)
2941
+ .then((response) => {
2942
+ return luvio.handleSuccessResponse(() => {
2943
+ const snapshot = ingestSuccess$i(luvio, resourceParams, response);
2944
+ return luvio.storeBroadcast().then(() => snapshot);
2945
+ }, () => getResponseCacheKeys$i(luvio, resourceParams, response.body));
2946
+ }, (response) => {
2947
+ deepFreeze(response);
2948
+ throw response;
2949
+ });
2950
+ }
2951
+ const postInvokeExpressionSetAdapterFactory = (luvio) => {
2952
+ return function postInvokeExpressionSet(untrustedConfig) {
2953
+ const config = validateAdapterConfig$i(untrustedConfig, postInvokeExpressionSet_ConfigPropertyNames);
2954
+ // Invalid or incomplete config
2955
+ if (config === null) {
2956
+ throw new Error('Invalid config for "postInvokeExpressionSet"');
2957
+ }
2958
+ return buildNetworkSnapshot$i(luvio, config);
2959
+ };
2960
+ };
2961
+
2962
+ const VERSION$f = "193518feb63f612b21dccfb389d45d77";
2963
+ function validate$L(obj, path = 'LookupTableDetailsRepresentation') {
2964
+ const v_error = (() => {
2965
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2966
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2967
+ }
2968
+ if (obj.description !== undefined) {
2969
+ const obj_description = obj.description;
2970
+ const path_description = path + '.description';
2971
+ if (typeof obj_description !== 'string') {
2972
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2973
+ }
2974
+ }
2975
+ if (obj.id !== undefined) {
2976
+ const obj_id = obj.id;
2977
+ const path_id = path + '.id';
2978
+ if (typeof obj_id !== 'string') {
2979
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2980
+ }
2981
+ }
2982
+ if (obj.lookupTableDefinitionId !== undefined) {
2983
+ const obj_lookupTableDefinitionId = obj.lookupTableDefinitionId;
2984
+ const path_lookupTableDefinitionId = path + '.lookupTableDefinitionId';
2985
+ if (typeof obj_lookupTableDefinitionId !== 'string') {
2986
+ return new TypeError('Expected "string" but received "' + typeof obj_lookupTableDefinitionId + '" (at "' + path_lookupTableDefinitionId + '")');
2633
2987
  }
2634
2988
  }
2635
- if (obj.simulationStepResults !== undefined) {
2636
- const obj_simulationStepResults = obj.simulationStepResults;
2637
- const path_simulationStepResults = path + '.simulationStepResults';
2638
- if (typeof obj_simulationStepResults !== 'object' || ArrayIsArray(obj_simulationStepResults) || obj_simulationStepResults === null) {
2639
- return new TypeError('Expected "object" but received "' + typeof obj_simulationStepResults + '" (at "' + path_simulationStepResults + '")');
2989
+ if (obj.lookupTableType !== undefined) {
2990
+ const obj_lookupTableType = obj.lookupTableType;
2991
+ const path_lookupTableType = path + '.lookupTableType';
2992
+ if (typeof obj_lookupTableType !== 'string') {
2993
+ return new TypeError('Expected "string" but received "' + typeof obj_lookupTableType + '" (at "' + path_lookupTableType + '")');
2640
2994
  }
2641
- const obj_simulationStepResults_keys = ObjectKeys(obj_simulationStepResults);
2642
- for (let i = 0; i < obj_simulationStepResults_keys.length; i++) {
2643
- const key = obj_simulationStepResults_keys[i];
2644
- const obj_simulationStepResults_prop = obj_simulationStepResults[key];
2645
- const path_simulationStepResults_prop = path_simulationStepResults + '["' + key + '"]';
2646
- const referencepath_simulationStepResults_propValidationError = validate$M(obj_simulationStepResults_prop, path_simulationStepResults_prop);
2647
- if (referencepath_simulationStepResults_propValidationError !== null) {
2648
- let message = 'Object doesn\'t match SimulationStepResultOutputRepresentation (at "' + path_simulationStepResults_prop + '")\n';
2649
- message += referencepath_simulationStepResults_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2650
- return new TypeError(message);
2651
- }
2995
+ }
2996
+ if (obj.name !== undefined) {
2997
+ const obj_name = obj.name;
2998
+ const path_name = path + '.name';
2999
+ if (typeof obj_name !== 'string') {
3000
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2652
3001
  }
2653
3002
  }
2654
3003
  })();
2655
3004
  return v_error === undefined ? null : v_error;
2656
3005
  }
2657
- const RepresentationType$f = 'SimulationEvalServiceOutputRepresentation';
2658
- function keyBuilder$t(luvio, config) {
2659
- return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
2660
- }
2661
- function keyBuilderFromType$5(luvio, object) {
2662
- const keyParams = {
2663
- id: object.executionId
2664
- };
2665
- return keyBuilder$t(luvio, keyParams);
2666
- }
2667
- function normalize$f(input, existing, path, luvio, store, timestamp) {
2668
- return input;
2669
- }
2670
- const select$x = function SimulationEvalServiceOutputRepresentationSelect() {
3006
+ const select$x = function LookupTableDetailsRepresentationSelect() {
2671
3007
  return {
2672
3008
  kind: 'Fragment',
2673
3009
  version: VERSION$f,
2674
3010
  private: [],
2675
- opaque: true
3011
+ selections: [
3012
+ {
3013
+ name: 'description',
3014
+ kind: 'Scalar',
3015
+ required: false
3016
+ },
3017
+ {
3018
+ name: 'id',
3019
+ kind: 'Scalar',
3020
+ required: false
3021
+ },
3022
+ {
3023
+ name: 'lookupTableDefinitionId',
3024
+ kind: 'Scalar',
3025
+ required: false
3026
+ },
3027
+ {
3028
+ name: 'lookupTableType',
3029
+ kind: 'Scalar',
3030
+ required: false
3031
+ },
3032
+ {
3033
+ name: 'name',
3034
+ kind: 'Scalar',
3035
+ required: false
3036
+ }
3037
+ ]
2676
3038
  };
2677
3039
  };
2678
3040
  function equals$f(existing, incoming) {
2679
- if (JSONStringify(incoming) !== JSONStringify(existing)) {
2680
- return false;
2681
- }
2682
- return true;
2683
- }
2684
- const ingest$f = function SimulationEvalServiceOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2685
- if (process.env.NODE_ENV !== 'production') {
2686
- const validateError = validate$L(input);
2687
- if (validateError !== null) {
2688
- throw validateError;
3041
+ const existing_description = existing.description;
3042
+ const incoming_description = incoming.description;
3043
+ // if at least one of these optionals is defined
3044
+ if (existing_description !== undefined || incoming_description !== undefined) {
3045
+ // if one of these is not defined we know the other is defined and therefore
3046
+ // not equal
3047
+ if (existing_description === undefined || incoming_description === undefined) {
3048
+ return false;
3049
+ }
3050
+ if (!(existing_description === incoming_description)) {
3051
+ return false;
3052
+ }
3053
+ }
3054
+ const existing_id = existing.id;
3055
+ const incoming_id = incoming.id;
3056
+ // if at least one of these optionals is defined
3057
+ if (existing_id !== undefined || incoming_id !== undefined) {
3058
+ // if one of these is not defined we know the other is defined and therefore
3059
+ // not equal
3060
+ if (existing_id === undefined || incoming_id === undefined) {
3061
+ return false;
3062
+ }
3063
+ if (!(existing_id === incoming_id)) {
3064
+ return false;
3065
+ }
3066
+ }
3067
+ const existing_lookupTableDefinitionId = existing.lookupTableDefinitionId;
3068
+ const incoming_lookupTableDefinitionId = incoming.lookupTableDefinitionId;
3069
+ // if at least one of these optionals is defined
3070
+ if (existing_lookupTableDefinitionId !== undefined || incoming_lookupTableDefinitionId !== undefined) {
3071
+ // if one of these is not defined we know the other is defined and therefore
3072
+ // not equal
3073
+ if (existing_lookupTableDefinitionId === undefined || incoming_lookupTableDefinitionId === undefined) {
3074
+ return false;
3075
+ }
3076
+ if (!(existing_lookupTableDefinitionId === incoming_lookupTableDefinitionId)) {
3077
+ return false;
3078
+ }
3079
+ }
3080
+ const existing_lookupTableType = existing.lookupTableType;
3081
+ const incoming_lookupTableType = incoming.lookupTableType;
3082
+ // if at least one of these optionals is defined
3083
+ if (existing_lookupTableType !== undefined || incoming_lookupTableType !== undefined) {
3084
+ // if one of these is not defined we know the other is defined and therefore
3085
+ // not equal
3086
+ if (existing_lookupTableType === undefined || incoming_lookupTableType === undefined) {
3087
+ return false;
3088
+ }
3089
+ if (!(existing_lookupTableType === incoming_lookupTableType)) {
3090
+ return false;
3091
+ }
3092
+ }
3093
+ const existing_name = existing.name;
3094
+ const incoming_name = incoming.name;
3095
+ // if at least one of these optionals is defined
3096
+ if (existing_name !== undefined || incoming_name !== undefined) {
3097
+ // if one of these is not defined we know the other is defined and therefore
3098
+ // not equal
3099
+ if (existing_name === undefined || incoming_name === undefined) {
3100
+ return false;
3101
+ }
3102
+ if (!(existing_name === incoming_name)) {
3103
+ return false;
2689
3104
  }
2690
3105
  }
2691
- const key = keyBuilderFromType$5(luvio, input);
2692
- const existingRecord = store.readEntry(key);
2693
- const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2694
- let incomingRecord = normalize$f(input, store.readEntry(key), {
2695
- fullPath: key,
2696
- parent: path.parent,
2697
- propertyName: path.propertyName,
2698
- ttl: ttlToUse
2699
- });
2700
- if (existingRecord === undefined || equals$f(existingRecord, incomingRecord) === false) {
2701
- luvio.storePublish(key, incomingRecord);
2702
- }
2703
- if (ttlToUse !== undefined) {
2704
- const storeMetadataParams = {
2705
- ttl: ttlToUse,
2706
- namespace: "interaction",
2707
- version: VERSION$f,
2708
- representationName: RepresentationType$f,
2709
- };
2710
- luvio.publishStoreMetadata(key, storeMetadataParams);
2711
- }
2712
- return createLink(key);
2713
- };
2714
- function getTypeCacheKeys$f(luvio, input, fullPathFactory) {
2715
- const rootKeySet = new StoreKeyMap();
2716
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2717
- const rootKey = keyBuilderFromType$5(luvio, input);
2718
- rootKeySet.set(rootKey, {
2719
- namespace: keyPrefix,
2720
- representationName: RepresentationType$f,
2721
- mergeable: false
2722
- });
2723
- return rootKeySet;
3106
+ return true;
2724
3107
  }
2725
3108
 
2726
- const TTL$d = 1000;
2727
- const VERSION$e = "7501ca5cb7aefb69a735722a53057d1d";
2728
- function validate$K(obj, path = 'BusinessRulesResultRepresentation') {
3109
+ const VERSION$e = "03c53b63e678a9860b164df4df6fe7a4";
3110
+ function validate$K(obj, path = 'LookupTablesResultListRepresentation') {
2729
3111
  const v_error = (() => {
2730
3112
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2731
3113
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2732
3114
  }
2733
- const obj_aggregationResults = obj.aggregationResults;
2734
- const path_aggregationResults = path + '.aggregationResults';
2735
- const referencepath_aggregationResultsValidationError = validate$S(obj_aggregationResults, path_aggregationResults);
2736
- if (referencepath_aggregationResultsValidationError !== null) {
2737
- let message = 'Object doesn\'t match BusinessRuleAggregationResultsOutputRepresentation (at "' + path_aggregationResults + '")\n';
2738
- message += referencepath_aggregationResultsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2739
- return new TypeError(message);
2740
- }
2741
- const obj_executionId = obj.executionId;
2742
- const path_executionId = path + '.executionId';
2743
- if (typeof obj_executionId !== 'string') {
2744
- return new TypeError('Expected "string" but received "' + typeof obj_executionId + '" (at "' + path_executionId + '")');
3115
+ if (obj.code !== undefined) {
3116
+ const obj_code = obj.code;
3117
+ const path_code = path + '.code';
3118
+ if (typeof obj_code !== 'string') {
3119
+ return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
3120
+ }
2745
3121
  }
2746
- const obj_outputs = obj.outputs;
2747
- const path_outputs = path + '.outputs';
2748
- if (!ArrayIsArray(obj_outputs)) {
2749
- return new TypeError('Expected "array" but received "' + typeof obj_outputs + '" (at "' + path_outputs + '")');
3122
+ if (obj.isSuccess !== undefined) {
3123
+ const obj_isSuccess = obj.isSuccess;
3124
+ const path_isSuccess = path + '.isSuccess';
3125
+ if (typeof obj_isSuccess !== 'boolean') {
3126
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
3127
+ }
2750
3128
  }
2751
- for (let i = 0; i < obj_outputs.length; i++) {
2752
- const obj_outputs_item = obj_outputs[i];
2753
- const path_outputs_item = path_outputs + '[' + i + ']';
2754
- const referencepath_outputs_itemValidationError = validate$R(obj_outputs_item, path_outputs_item);
2755
- if (referencepath_outputs_itemValidationError !== null) {
2756
- let message = 'Object doesn\'t match RuleResultRepresentation (at "' + path_outputs_item + '")\n';
2757
- message += referencepath_outputs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2758
- return new TypeError(message);
3129
+ if (obj.lookupTables !== undefined) {
3130
+ const obj_lookupTables = obj.lookupTables;
3131
+ const path_lookupTables = path + '.lookupTables';
3132
+ if (!ArrayIsArray(obj_lookupTables)) {
3133
+ return new TypeError('Expected "array" but received "' + typeof obj_lookupTables + '" (at "' + path_lookupTables + '")');
3134
+ }
3135
+ for (let i = 0; i < obj_lookupTables.length; i++) {
3136
+ const obj_lookupTables_item = obj_lookupTables[i];
3137
+ const path_lookupTables_item = path_lookupTables + '[' + i + ']';
3138
+ const referencepath_lookupTables_itemValidationError = validate$L(obj_lookupTables_item, path_lookupTables_item);
3139
+ if (referencepath_lookupTables_itemValidationError !== null) {
3140
+ let message = 'Object doesn\'t match LookupTableDetailsRepresentation (at "' + path_lookupTables_item + '")\n';
3141
+ message += referencepath_lookupTables_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
3142
+ return new TypeError(message);
3143
+ }
2759
3144
  }
2760
3145
  }
2761
- if (obj.simulationResult !== undefined) {
2762
- const obj_simulationResult = obj.simulationResult;
2763
- const path_simulationResult = path + '.simulationResult';
2764
- const referencepath_simulationResultValidationError = validate$L(obj_simulationResult, path_simulationResult);
2765
- if (referencepath_simulationResultValidationError !== null) {
2766
- let message = 'Object doesn\'t match SimulationEvalServiceOutputRepresentation (at "' + path_simulationResult + '")\n';
2767
- message += referencepath_simulationResultValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2768
- return new TypeError(message);
3146
+ if (obj.message !== undefined) {
3147
+ const obj_message = obj.message;
3148
+ const path_message = path + '.message';
3149
+ if (typeof obj_message !== 'string') {
3150
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
2769
3151
  }
2770
3152
  }
2771
3153
  })();
2772
3154
  return v_error === undefined ? null : v_error;
2773
3155
  }
2774
- const RepresentationType$e = 'BusinessRulesResultRepresentation';
2775
- function keyBuilder$s(luvio, config) {
2776
- return keyPrefix + '::' + RepresentationType$e + ':' + config.id;
2777
- }
2778
- function keyBuilderFromType$4(luvio, object) {
2779
- const keyParams = {
2780
- id: object.executionId
2781
- };
2782
- return keyBuilder$s(luvio, keyParams);
2783
- }
3156
+ const RepresentationType$e = 'LookupTablesResultListRepresentation';
2784
3157
  function normalize$e(input, existing, path, luvio, store, timestamp) {
2785
3158
  return input;
2786
3159
  }
2787
- const select$w = function BusinessRulesResultRepresentationSelect() {
3160
+ const select$w = function LookupTablesResultListRepresentationSelect() {
3161
+ const { selections: LookupTableDetailsRepresentation__selections, opaque: LookupTableDetailsRepresentation__opaque, } = select$x();
2788
3162
  return {
2789
3163
  kind: 'Fragment',
2790
3164
  version: VERSION$e,
2791
3165
  private: [],
2792
- opaque: true
3166
+ selections: [
3167
+ {
3168
+ name: 'code',
3169
+ kind: 'Scalar',
3170
+ required: false
3171
+ },
3172
+ {
3173
+ name: 'isSuccess',
3174
+ kind: 'Scalar',
3175
+ required: false
3176
+ },
3177
+ {
3178
+ name: 'lookupTables',
3179
+ kind: 'Object',
3180
+ plural: true,
3181
+ selections: LookupTableDetailsRepresentation__selections,
3182
+ required: false
3183
+ },
3184
+ {
3185
+ name: 'message',
3186
+ kind: 'Scalar',
3187
+ required: false
3188
+ }
3189
+ ]
2793
3190
  };
2794
3191
  };
2795
3192
  function equals$e(existing, incoming) {
2796
- if (JSONStringify(incoming) !== JSONStringify(existing)) {
2797
- return false;
3193
+ const existing_isSuccess = existing.isSuccess;
3194
+ const incoming_isSuccess = incoming.isSuccess;
3195
+ // if at least one of these optionals is defined
3196
+ if (existing_isSuccess !== undefined || incoming_isSuccess !== undefined) {
3197
+ // if one of these is not defined we know the other is defined and therefore
3198
+ // not equal
3199
+ if (existing_isSuccess === undefined || incoming_isSuccess === undefined) {
3200
+ return false;
3201
+ }
3202
+ if (!(existing_isSuccess === incoming_isSuccess)) {
3203
+ return false;
3204
+ }
3205
+ }
3206
+ const existing_code = existing.code;
3207
+ const incoming_code = incoming.code;
3208
+ // if at least one of these optionals is defined
3209
+ if (existing_code !== undefined || incoming_code !== undefined) {
3210
+ // if one of these is not defined we know the other is defined and therefore
3211
+ // not equal
3212
+ if (existing_code === undefined || incoming_code === undefined) {
3213
+ return false;
3214
+ }
3215
+ if (!(existing_code === incoming_code)) {
3216
+ return false;
3217
+ }
3218
+ }
3219
+ const existing_message = existing.message;
3220
+ const incoming_message = incoming.message;
3221
+ // if at least one of these optionals is defined
3222
+ if (existing_message !== undefined || incoming_message !== undefined) {
3223
+ // if one of these is not defined we know the other is defined and therefore
3224
+ // not equal
3225
+ if (existing_message === undefined || incoming_message === undefined) {
3226
+ return false;
3227
+ }
3228
+ if (!(existing_message === incoming_message)) {
3229
+ return false;
3230
+ }
3231
+ }
3232
+ const existing_lookupTables = existing.lookupTables;
3233
+ const incoming_lookupTables = incoming.lookupTables;
3234
+ // if at least one of these optionals is defined
3235
+ if (existing_lookupTables !== undefined || incoming_lookupTables !== undefined) {
3236
+ // if one of these is not defined we know the other is defined and therefore
3237
+ // not equal
3238
+ if (existing_lookupTables === undefined || incoming_lookupTables === undefined) {
3239
+ return false;
3240
+ }
3241
+ const equals_lookupTables_items = equalsArray(existing_lookupTables, incoming_lookupTables, (existing_lookupTables_item, incoming_lookupTables_item) => {
3242
+ if (!(equals$f(existing_lookupTables_item, incoming_lookupTables_item))) {
3243
+ return false;
3244
+ }
3245
+ });
3246
+ if (equals_lookupTables_items === false) {
3247
+ return false;
3248
+ }
2798
3249
  }
2799
3250
  return true;
2800
3251
  }
2801
- const ingest$e = function BusinessRulesResultRepresentationIngest(input, path, luvio, store, timestamp) {
3252
+ const ingest$e = function LookupTablesResultListRepresentationIngest(input, path, luvio, store, timestamp) {
2802
3253
  if (process.env.NODE_ENV !== 'production') {
2803
3254
  const validateError = validate$K(input);
2804
3255
  if (validateError !== null) {
2805
3256
  throw validateError;
2806
3257
  }
2807
3258
  }
2808
- const key = keyBuilderFromType$4(luvio, input);
3259
+ const key = path.fullPath;
2809
3260
  const existingRecord = store.readEntry(key);
2810
- const ttlToUse = TTL$d;
3261
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2811
3262
  let incomingRecord = normalize$e(input, store.readEntry(key), {
2812
3263
  fullPath: key,
2813
3264
  parent: path.parent,
@@ -2817,7 +3268,7 @@ const ingest$e = function BusinessRulesResultRepresentationIngest(input, path, l
2817
3268
  if (existingRecord === undefined || equals$e(existingRecord, incomingRecord) === false) {
2818
3269
  luvio.storePublish(key, incomingRecord);
2819
3270
  }
2820
- {
3271
+ if (ttlToUse !== undefined) {
2821
3272
  const storeMetadataParams = {
2822
3273
  ttl: ttlToUse,
2823
3274
  namespace: "interaction",
@@ -2831,7 +3282,7 @@ const ingest$e = function BusinessRulesResultRepresentationIngest(input, path, l
2831
3282
  function getTypeCacheKeys$e(luvio, input, fullPathFactory) {
2832
3283
  const rootKeySet = new StoreKeyMap();
2833
3284
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2834
- const rootKey = keyBuilderFromType$4(luvio, input);
3285
+ const rootKey = fullPathFactory();
2835
3286
  rootKeySet.set(rootKey, {
2836
3287
  namespace: keyPrefix,
2837
3288
  representationName: RepresentationType$e,
@@ -2843,18 +3294,21 @@ function getTypeCacheKeys$e(luvio, input, fullPathFactory) {
2843
3294
  function select$v(luvio, params) {
2844
3295
  return select$w();
2845
3296
  }
3297
+ function keyBuilder$t(luvio, params) {
3298
+ return keyPrefix + '::LookupTablesResultListRepresentation:(' + 'lookupTypes:' + params.queryParams.lookupTypes + ',' + 'searchKey:' + params.queryParams.searchKey + ',' + 'usageType:' + params.queryParams.usageType + ')';
3299
+ }
2846
3300
  function getResponseCacheKeys$h(luvio, resourceParams, response) {
2847
- return getTypeCacheKeys$e(luvio, response);
3301
+ return getTypeCacheKeys$e(luvio, response, () => keyBuilder$t(luvio, resourceParams));
2848
3302
  }
2849
- function ingestSuccess$h(luvio, resourceParams, response) {
3303
+ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
2850
3304
  const { body } = response;
2851
- const key = keyBuilderFromType$4(luvio, body);
3305
+ const key = keyBuilder$t(luvio, resourceParams);
2852
3306
  luvio.storeIngest(key, ingest$e, body);
2853
3307
  const snapshot = luvio.storeLookup({
2854
3308
  recordId: key,
2855
3309
  node: select$v(),
2856
3310
  variables: {},
2857
- });
3311
+ }, snapshotRefresh);
2858
3312
  if (process.env.NODE_ENV !== 'production') {
2859
3313
  if (snapshot.state !== 'Fulfilled') {
2860
3314
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
@@ -2863,48 +3317,65 @@ function ingestSuccess$h(luvio, resourceParams, response) {
2863
3317
  deepFreeze(snapshot.data);
2864
3318
  return snapshot;
2865
3319
  }
3320
+ function ingestError$c(luvio, params, error, snapshotRefresh) {
3321
+ const key = keyBuilder$t(luvio, params);
3322
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3323
+ luvio.storeIngestError(key, errorSnapshot);
3324
+ return errorSnapshot;
3325
+ }
2866
3326
  function createResourceRequest$h(config) {
2867
3327
  const headers = {};
2868
3328
  return {
2869
3329
  baseUri: '/services/data/v59.0',
2870
- basePath: '/connect/business-rules/expressionSet/' + config.urlParams.expressionSetName + '',
2871
- method: 'post',
2872
- body: config.body,
2873
- urlParams: config.urlParams,
2874
- queryParams: {},
3330
+ basePath: '/connect/business-rules/lookup-tables',
3331
+ method: 'get',
3332
+ body: null,
3333
+ urlParams: {},
3334
+ queryParams: config.queryParams,
2875
3335
  headers,
2876
3336
  priority: 'normal',
2877
3337
  };
2878
3338
  }
2879
3339
 
2880
- const postInvokeExpressionSet_ConfigPropertyNames = {
2881
- displayName: 'postInvokeExpressionSet',
3340
+ const getLookupTables_ConfigPropertyNames = {
3341
+ displayName: 'getLookupTables',
2882
3342
  parameters: {
2883
- required: ['expressionSetName', 'ruleInput'],
2884
- optional: []
3343
+ required: ['searchKey', 'usageType'],
3344
+ optional: ['lookupTypes']
2885
3345
  }
2886
3346
  };
2887
3347
  function createResourceParams$h(config) {
2888
3348
  const resourceParams = {
2889
- urlParams: {
2890
- expressionSetName: config.expressionSetName
2891
- },
2892
- body: {
2893
- ruleInput: config.ruleInput
3349
+ queryParams: {
3350
+ lookupTypes: config.lookupTypes, searchKey: config.searchKey, usageType: config.usageType
2894
3351
  }
2895
3352
  };
2896
3353
  return resourceParams;
2897
3354
  }
3355
+ function keyBuilder$s(luvio, config) {
3356
+ const resourceParams = createResourceParams$h(config);
3357
+ return keyBuilder$t(luvio, resourceParams);
3358
+ }
2898
3359
  function typeCheckConfig$h(untrustedConfig) {
2899
3360
  const config = {};
2900
- const untrustedConfig_expressionSetName = untrustedConfig.expressionSetName;
2901
- if (typeof untrustedConfig_expressionSetName === 'string') {
2902
- config.expressionSetName = untrustedConfig_expressionSetName;
3361
+ const untrustedConfig_lookupTypes = untrustedConfig.lookupTypes;
3362
+ if (ArrayIsArray$1(untrustedConfig_lookupTypes)) {
3363
+ const untrustedConfig_lookupTypes_array = [];
3364
+ for (let i = 0, arrayLength = untrustedConfig_lookupTypes.length; i < arrayLength; i++) {
3365
+ const untrustedConfig_lookupTypes_item = untrustedConfig_lookupTypes[i];
3366
+ if (typeof untrustedConfig_lookupTypes_item === 'string') {
3367
+ untrustedConfig_lookupTypes_array.push(untrustedConfig_lookupTypes_item);
3368
+ }
3369
+ }
3370
+ config.lookupTypes = untrustedConfig_lookupTypes_array;
2903
3371
  }
2904
- const untrustedConfig_ruleInput = untrustedConfig.ruleInput;
2905
- const referenceBusinessRulesInputRepresentationValidationError = validate$V(untrustedConfig_ruleInput);
2906
- if (referenceBusinessRulesInputRepresentationValidationError === null) {
2907
- config.ruleInput = untrustedConfig_ruleInput;
3372
+ const untrustedConfig_searchKey = untrustedConfig.searchKey;
3373
+ if (typeof untrustedConfig_searchKey === 'string') {
3374
+ config.searchKey = untrustedConfig_searchKey;
3375
+ }
3376
+ const untrustedConfig_usageType = untrustedConfig.usageType;
3377
+ if (typeof untrustedConfig_usageType === 'string') {
3378
+ config.usageType = untrustedConfig_usageType;
2908
3379
  }
2909
3380
  return config;
2910
3381
  }
@@ -2921,29 +3392,72 @@ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
2921
3392
  }
2922
3393
  return config;
2923
3394
  }
3395
+ function adapterFragment$c(luvio, config) {
3396
+ createResourceParams$h(config);
3397
+ return select$v();
3398
+ }
3399
+ function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
3400
+ const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
3401
+ config,
3402
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
3403
+ });
3404
+ return luvio.storeBroadcast().then(() => snapshot);
3405
+ }
3406
+ function onFetchResponseError$c(luvio, config, resourceParams, response) {
3407
+ const snapshot = ingestError$c(luvio, resourceParams, response, {
3408
+ config,
3409
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
3410
+ });
3411
+ return luvio.storeBroadcast().then(() => snapshot);
3412
+ }
2924
3413
  function buildNetworkSnapshot$h(luvio, config, options) {
2925
3414
  const resourceParams = createResourceParams$h(config);
2926
3415
  const request = createResourceRequest$h(resourceParams);
2927
3416
  return luvio.dispatchResourceRequest(request, options)
2928
3417
  .then((response) => {
2929
- return luvio.handleSuccessResponse(() => {
2930
- const snapshot = ingestSuccess$h(luvio, resourceParams, response);
2931
- return luvio.storeBroadcast().then(() => snapshot);
2932
- }, () => getResponseCacheKeys$h(luvio, resourceParams, response.body));
3418
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => getResponseCacheKeys$h(luvio, resourceParams, response.body));
2933
3419
  }, (response) => {
2934
- deepFreeze(response);
2935
- throw response;
3420
+ return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
2936
3421
  });
2937
3422
  }
2938
- const postInvokeExpressionSetAdapterFactory = (luvio) => {
2939
- return function postInvokeExpressionSet(untrustedConfig) {
2940
- const config = validateAdapterConfig$h(untrustedConfig, postInvokeExpressionSet_ConfigPropertyNames);
2941
- // Invalid or incomplete config
2942
- if (config === null) {
2943
- throw new Error('Invalid config for "postInvokeExpressionSet"');
2944
- }
2945
- return buildNetworkSnapshot$h(luvio, config);
3423
+ function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
3424
+ const { luvio, config } = context;
3425
+ const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
3426
+ const dispatchOptions = {
3427
+ resourceRequestContext: {
3428
+ requestCorrelator,
3429
+ luvioRequestMethod: undefined,
3430
+ },
3431
+ eventObservers
3432
+ };
3433
+ if (networkPriority !== 'normal') {
3434
+ dispatchOptions.overrides = {
3435
+ priority: networkPriority
3436
+ };
3437
+ }
3438
+ return buildNetworkSnapshot$h(luvio, config, dispatchOptions);
3439
+ }
3440
+ function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
3441
+ const { luvio, config } = context;
3442
+ const selector = {
3443
+ recordId: keyBuilder$s(luvio, config),
3444
+ node: adapterFragment$c(luvio, config),
3445
+ variables: {},
2946
3446
  };
3447
+ const cacheSnapshot = storeLookup(selector, {
3448
+ config,
3449
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
3450
+ });
3451
+ return cacheSnapshot;
3452
+ }
3453
+ const getLookupTablesAdapterFactory = (luvio) => function interaction__getLookupTables(untrustedConfig, requestContext) {
3454
+ const config = validateAdapterConfig$h(untrustedConfig, getLookupTables_ConfigPropertyNames);
3455
+ // Invalid or incomplete config
3456
+ if (config === null) {
3457
+ return null;
3458
+ }
3459
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3460
+ buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
2947
3461
  };
2948
3462
 
2949
3463
  function validate$J(obj, path = 'DecisionTableBasicRepresentation') {
@@ -6186,15 +6700,15 @@ function validate$g(obj, path = 'SimulationEvalServiceInputRepresentation') {
6186
6700
  }
6187
6701
 
6188
6702
  function select$f(luvio, params) {
6189
- return select$x();
6703
+ return select$A();
6190
6704
  }
6191
6705
  function getResponseCacheKeys$8(luvio, resourceParams, response) {
6192
- return getTypeCacheKeys$f(luvio, response);
6706
+ return getTypeCacheKeys$g(luvio, response);
6193
6707
  }
6194
6708
  function ingestSuccess$8(luvio, resourceParams, response) {
6195
6709
  const { body } = response;
6196
6710
  const key = keyBuilderFromType$5(luvio, body);
6197
- luvio.storeIngest(key, ingest$f, body);
6711
+ luvio.storeIngest(key, ingest$g, body);
6198
6712
  const snapshot = luvio.storeLookup({
6199
6713
  recordId: key,
6200
6714
  node: select$f(),
@@ -8671,4 +9185,4 @@ const updateAliasFieldAdapterFactory = (luvio) => {
8671
9185
  };
8672
9186
  };
8673
9187
 
8674
- export { activateCalcProcedureVersionAdapterFactory, createExpressionSetAdapterFactory, createObjectAliasAdapterFactory, deleteExpressionSetAdapterFactory, getBusinessKnowledgeModelAdapterFactory, getCalcProcDetailsAdapterFactory, getCalcProcVersionDetailsAdapterFactory, getDecisionMatrixDetailsAdapterFactory, getDecisionTableDetailsAdapterFactory, getExplainabilityLogsAdapterFactory, getExpressionSetAdapterFactory, getExpressionSetAliasMetaInfoAdapterFactory, getMessageTemplateDetailAdapterFactory, getProcessTypeAdapterFactory, getSimulationInputVariablesAdapterFactory, getUsageTypesAdapterFactory, postCalcProcVersionDetailsAdapterFactory, postInvokeExpressionSetAdapterFactory, searchCalculationProcedureAdapterFactory, searchDecisionMatrixByNameAdapterFactory, searchDecisionTableByNameAdapterFactory, searchMessageTemplatesAdapterFactory, simulateEvaluationServiceAdapterFactory, updateAliasFieldAdapterFactory, updateExpressionSetAdapterFactory };
9188
+ export { activateCalcProcedureVersionAdapterFactory, createExpressionSetAdapterFactory, createObjectAliasAdapterFactory, deleteExpressionSetAdapterFactory, getBusinessKnowledgeModelAdapterFactory, getCalcProcDetailsAdapterFactory, getCalcProcVersionDetailsAdapterFactory, getDecisionMatrixDetailsAdapterFactory, getDecisionTableDetailsAdapterFactory, getExplainabilityLogsAdapterFactory, getExpressionSetAdapterFactory, getExpressionSetAliasMetaInfoAdapterFactory, getLookupTablesAdapterFactory, getMessageTemplateDetailAdapterFactory, getProcessTypeAdapterFactory, getSimulationInputVariablesAdapterFactory, getUsageTypesAdapterFactory, postCalcProcVersionDetailsAdapterFactory, postInvokeExpressionSetAdapterFactory, searchCalculationProcedureAdapterFactory, searchDecisionMatrixByNameAdapterFactory, searchDecisionTableByNameAdapterFactory, searchMessageTemplatesAdapterFactory, simulateEvaluationServiceAdapterFactory, updateAliasFieldAdapterFactory, updateExpressionSetAdapterFactory };