@salesforce/lds-adapters-industries-rule-builder 1.129.1 → 1.130.8

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.
Files changed (32) hide show
  1. package/dist/es/es2018/industries-rule-builder.js +1410 -11
  2. package/dist/es/es2018/types/src/generated/adapters/createExpressionSet.d.ts +15 -0
  3. package/dist/es/es2018/types/src/generated/adapters/deleteExpressionSet.d.ts +13 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getExpressionSet.d.ts +27 -0
  5. package/dist/es/es2018/types/src/generated/adapters/updateExpressionSet.d.ts +16 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -1
  8. package/dist/es/es2018/types/src/generated/resources/deleteConnectBusinessRulesExpressionSetByExpressionSetId.d.ts +12 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectBusinessRulesExpressionSetByExpressionSetId.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/resources/patchConnectBusinessRulesExpressionSetByExpressionSetId.d.ts +16 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectBusinessRulesExpressionSet.d.ts +13 -0
  12. package/dist/es/es2018/types/src/generated/types/ContextDefinitionOutputRepresentation.d.ts +32 -0
  13. package/dist/es/es2018/types/src/generated/types/ExpressionSetAdvancedConditionStepOutputRepresentation.d.ts +36 -0
  14. package/dist/es/es2018/types/src/generated/types/ExpressionSetAggregationStepOutputRepresentation.d.ts +35 -0
  15. package/dist/es/es2018/types/src/generated/types/ExpressionSetAssignmentStepOutputRepresentation.d.ts +32 -0
  16. package/dist/es/es2018/types/src/generated/types/ExpressionSetConditionCriteriaOutputRepresentation.d.ts +41 -0
  17. package/dist/es/es2018/types/src/generated/types/ExpressionSetConditionExpressionStepOutputRepresentation.d.ts +32 -0
  18. package/dist/es/es2018/types/src/generated/types/ExpressionSetCustomElementParameterOutputRepresentation.d.ts +38 -0
  19. package/dist/es/es2018/types/src/generated/types/ExpressionSetCustomElementStepOutputRepresentation.d.ts +30 -0
  20. package/dist/es/es2018/types/src/generated/types/ExpressionSetErrorRepresentation.d.ts +29 -0
  21. package/dist/es/es2018/types/src/generated/types/ExpressionSetInputRepresentation.d.ts +44 -0
  22. package/dist/es/es2018/types/src/generated/types/ExpressionSetInputWrapperRepresentation.d.ts +29 -0
  23. package/dist/es/es2018/types/src/generated/types/ExpressionSetLookupTableStepOutputRepresentation.d.ts +32 -0
  24. package/dist/es/es2018/types/src/generated/types/ExpressionSetOutputRepresentation.d.ts +63 -0
  25. package/dist/es/es2018/types/src/generated/types/ExpressionSetSubExpressionStepOutputRepresentation.d.ts +29 -0
  26. package/dist/es/es2018/types/src/generated/types/ExpressionSetVersionOutputRepresentation.d.ts +64 -0
  27. package/dist/es/es2018/types/src/generated/types/ExpressionSetVersionStepOutputRepresentation.d.ts +90 -0
  28. package/dist/es/es2018/types/src/generated/types/ExpressionSetVersionVariableOutputRepresentation.d.ts +65 -0
  29. package/package.json +1 -1
  30. package/sfdc/index.js +2083 -627
  31. package/src/raml/api.raml +548 -0
  32. package/src/raml/luvio.raml +23 -0
@@ -53,20 +53,20 @@ const keyPrefix = 'interaction';
53
53
  const { freeze: ObjectFreeze, keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
54
54
  const { isArray: ArrayIsArray } = Array;
55
55
  const { stringify: JSONStringify } = JSON;
56
- function deepFreeze$N(value) {
56
+ function deepFreeze$10(value) {
57
57
  // No need to freeze primitives
58
58
  if (typeof value !== 'object' || value === null) {
59
59
  return;
60
60
  }
61
61
  if (ArrayIsArray(value)) {
62
62
  for (let i = 0, len = value.length; i < len; i += 1) {
63
- deepFreeze$N(value[i]);
63
+ deepFreeze$10(value[i]);
64
64
  }
65
65
  }
66
66
  else {
67
67
  const keys = ObjectKeys(value);
68
68
  for (let i = 0, len = keys.length; i < len; i += 1) {
69
- deepFreeze$N(value[keys[i]]);
69
+ deepFreeze$10(value[keys[i]]);
70
70
  }
71
71
  }
72
72
  ObjectFreeze(value);
@@ -77,6 +77,1405 @@ function createLink(ref) {
77
77
  };
78
78
  }
79
79
 
80
+ function validate$1e(obj, path = 'ExpressionSetInputRepresentation') {
81
+ const v_error = (() => {
82
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
83
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
84
+ }
85
+ const obj_apiName = obj.apiName;
86
+ const path_apiName = path + '.apiName';
87
+ if (typeof obj_apiName !== 'string') {
88
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
89
+ }
90
+ if (obj.contextDefinitions !== undefined) {
91
+ const obj_contextDefinitions = obj.contextDefinitions;
92
+ const path_contextDefinitions = path + '.contextDefinitions';
93
+ if (!ArrayIsArray(obj_contextDefinitions)) {
94
+ return new TypeError('Expected "array" but received "' + typeof obj_contextDefinitions + '" (at "' + path_contextDefinitions + '")');
95
+ }
96
+ for (let i = 0; i < obj_contextDefinitions.length; i++) {
97
+ const obj_contextDefinitions_item = obj_contextDefinitions[i];
98
+ const path_contextDefinitions_item = path_contextDefinitions + '[' + i + ']';
99
+ if (typeof obj_contextDefinitions_item !== 'object' || ArrayIsArray(obj_contextDefinitions_item) || obj_contextDefinitions_item === null) {
100
+ return new TypeError('Expected "object" but received "' + typeof obj_contextDefinitions_item + '" (at "' + path_contextDefinitions_item + '")');
101
+ }
102
+ }
103
+ }
104
+ if (obj.description !== undefined) {
105
+ const obj_description = obj.description;
106
+ const path_description = path + '.description';
107
+ if (typeof obj_description !== 'string') {
108
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
109
+ }
110
+ }
111
+ const obj_name = obj.name;
112
+ const path_name = path + '.name';
113
+ if (typeof obj_name !== 'string') {
114
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
115
+ }
116
+ const obj_usageType = obj.usageType;
117
+ const path_usageType = path + '.usageType';
118
+ if (typeof obj_usageType !== 'string') {
119
+ return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
120
+ }
121
+ if (obj.versions !== undefined) {
122
+ const obj_versions = obj.versions;
123
+ const path_versions = path + '.versions';
124
+ if (!ArrayIsArray(obj_versions)) {
125
+ return new TypeError('Expected "array" but received "' + typeof obj_versions + '" (at "' + path_versions + '")');
126
+ }
127
+ for (let i = 0; i < obj_versions.length; i++) {
128
+ const obj_versions_item = obj_versions[i];
129
+ const path_versions_item = path_versions + '[' + i + ']';
130
+ if (typeof obj_versions_item !== 'object' || ArrayIsArray(obj_versions_item) || obj_versions_item === null) {
131
+ return new TypeError('Expected "object" but received "' + typeof obj_versions_item + '" (at "' + path_versions_item + '")');
132
+ }
133
+ }
134
+ }
135
+ })();
136
+ return v_error === undefined ? null : v_error;
137
+ }
138
+
139
+ function validate$1d(obj, path = 'ContextDefinitionOutputRepresentation') {
140
+ const v_error = (() => {
141
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
142
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
143
+ }
144
+ const obj_id = obj.id;
145
+ const path_id = path + '.id';
146
+ if (typeof obj_id !== 'string') {
147
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
148
+ }
149
+ const obj_name = obj.name;
150
+ const path_name = path + '.name';
151
+ if (typeof obj_name !== 'string') {
152
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
153
+ }
154
+ })();
155
+ return v_error === undefined ? null : v_error;
156
+ }
157
+ function deepFreeze$$(input) {
158
+ ObjectFreeze(input);
159
+ }
160
+
161
+ function validate$1c(obj, path = 'ExpressionSetErrorRepresentation') {
162
+ const v_error = (() => {
163
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
164
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
165
+ }
166
+ const obj_message = obj.message;
167
+ const path_message = path + '.message';
168
+ if (typeof obj_message !== 'string') {
169
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
170
+ }
171
+ })();
172
+ return v_error === undefined ? null : v_error;
173
+ }
174
+ function deepFreeze$_(input) {
175
+ ObjectFreeze(input);
176
+ }
177
+
178
+ function validate$1b(obj, path = 'ExpressionSetConditionCriteriaOutputRepresentation') {
179
+ const v_error = (() => {
180
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
181
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
182
+ }
183
+ const obj_operator = obj.operator;
184
+ const path_operator = path + '.operator';
185
+ if (typeof obj_operator !== 'string') {
186
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
187
+ }
188
+ const obj_sequenceNumber = obj.sequenceNumber;
189
+ const path_sequenceNumber = path + '.sequenceNumber';
190
+ if (typeof obj_sequenceNumber !== 'number' || (typeof obj_sequenceNumber === 'number' && Math.floor(obj_sequenceNumber) !== obj_sequenceNumber)) {
191
+ return new TypeError('Expected "integer" but received "' + typeof obj_sequenceNumber + '" (at "' + path_sequenceNumber + '")');
192
+ }
193
+ const obj_sourceFieldName = obj.sourceFieldName;
194
+ const path_sourceFieldName = path + '.sourceFieldName';
195
+ if (typeof obj_sourceFieldName !== 'string') {
196
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceFieldName + '" (at "' + path_sourceFieldName + '")');
197
+ }
198
+ const obj_value = obj.value;
199
+ const path_value = path + '.value';
200
+ if (typeof obj_value !== 'string') {
201
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
202
+ }
203
+ const obj_valueType = obj.valueType;
204
+ const path_valueType = path + '.valueType';
205
+ if (typeof obj_valueType !== 'string') {
206
+ return new TypeError('Expected "string" but received "' + typeof obj_valueType + '" (at "' + path_valueType + '")');
207
+ }
208
+ })();
209
+ return v_error === undefined ? null : v_error;
210
+ }
211
+ function deepFreeze$Z(input) {
212
+ ObjectFreeze(input);
213
+ }
214
+
215
+ function validate$1a(obj, path = 'ExpressionSetAdvancedConditionStepOutputRepresentation') {
216
+ const v_error = (() => {
217
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
218
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
219
+ }
220
+ const obj_conditionLogic = obj.conditionLogic;
221
+ const path_conditionLogic = path + '.conditionLogic';
222
+ if (typeof obj_conditionLogic !== 'string') {
223
+ return new TypeError('Expected "string" but received "' + typeof obj_conditionLogic + '" (at "' + path_conditionLogic + '")');
224
+ }
225
+ const obj_criteria = obj.criteria;
226
+ const path_criteria = path + '.criteria';
227
+ if (!ArrayIsArray(obj_criteria)) {
228
+ return new TypeError('Expected "array" but received "' + typeof obj_criteria + '" (at "' + path_criteria + '")');
229
+ }
230
+ for (let i = 0; i < obj_criteria.length; i++) {
231
+ const obj_criteria_item = obj_criteria[i];
232
+ const path_criteria_item = path_criteria + '[' + i + ']';
233
+ const referencepath_criteria_itemValidationError = validate$1b(obj_criteria_item, path_criteria_item);
234
+ if (referencepath_criteria_itemValidationError !== null) {
235
+ let message = 'Object doesn\'t match ExpressionSetConditionCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
236
+ message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
237
+ return new TypeError(message);
238
+ }
239
+ }
240
+ const obj_resultParameter = obj.resultParameter;
241
+ const path_resultParameter = path + '.resultParameter';
242
+ if (typeof obj_resultParameter !== 'string') {
243
+ return new TypeError('Expected "string" but received "' + typeof obj_resultParameter + '" (at "' + path_resultParameter + '")');
244
+ }
245
+ })();
246
+ return v_error === undefined ? null : v_error;
247
+ }
248
+ function deepFreeze$Y(input) {
249
+ const input_criteria = input.criteria;
250
+ for (let i = 0; i < input_criteria.length; i++) {
251
+ const input_criteria_item = input_criteria[i];
252
+ deepFreeze$Z(input_criteria_item);
253
+ }
254
+ ObjectFreeze(input_criteria);
255
+ ObjectFreeze(input);
256
+ }
257
+
258
+ function validate$19(obj, path = 'ExpressionSetAggregationStepOutputRepresentation') {
259
+ const v_error = (() => {
260
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
261
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
262
+ }
263
+ const obj_aggergatedParameter = obj.aggergatedParameter;
264
+ const path_aggergatedParameter = path + '.aggergatedParameter';
265
+ if (typeof obj_aggergatedParameter !== 'string') {
266
+ return new TypeError('Expected "string" but received "' + typeof obj_aggergatedParameter + '" (at "' + path_aggergatedParameter + '")');
267
+ }
268
+ const obj_aggregateFunction = obj.aggregateFunction;
269
+ const path_aggregateFunction = path + '.aggregateFunction';
270
+ if (typeof obj_aggregateFunction !== 'string') {
271
+ return new TypeError('Expected "string" but received "' + typeof obj_aggregateFunction + '" (at "' + path_aggregateFunction + '")');
272
+ }
273
+ const obj_expression = obj.expression;
274
+ const path_expression = path + '.expression';
275
+ if (typeof obj_expression !== 'string') {
276
+ return new TypeError('Expected "string" but received "' + typeof obj_expression + '" (at "' + path_expression + '")');
277
+ }
278
+ })();
279
+ return v_error === undefined ? null : v_error;
280
+ }
281
+ function deepFreeze$X(input) {
282
+ ObjectFreeze(input);
283
+ }
284
+
285
+ function validate$18(obj, path = 'ExpressionSetAssignmentStepOutputRepresentation') {
286
+ const v_error = (() => {
287
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
288
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
289
+ }
290
+ const obj_assignedParameter = obj.assignedParameter;
291
+ const path_assignedParameter = path + '.assignedParameter';
292
+ if (typeof obj_assignedParameter !== 'string') {
293
+ return new TypeError('Expected "string" but received "' + typeof obj_assignedParameter + '" (at "' + path_assignedParameter + '")');
294
+ }
295
+ const obj_expression = obj.expression;
296
+ const path_expression = path + '.expression';
297
+ if (typeof obj_expression !== 'string') {
298
+ return new TypeError('Expected "string" but received "' + typeof obj_expression + '" (at "' + path_expression + '")');
299
+ }
300
+ })();
301
+ return v_error === undefined ? null : v_error;
302
+ }
303
+ function deepFreeze$W(input) {
304
+ ObjectFreeze(input);
305
+ }
306
+
307
+ function validate$17(obj, path = 'ExpressionSetConditionExpressionStepOutputRepresentation') {
308
+ const v_error = (() => {
309
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
310
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
311
+ }
312
+ const obj_expression = obj.expression;
313
+ const path_expression = path + '.expression';
314
+ if (typeof obj_expression !== 'string') {
315
+ return new TypeError('Expected "string" but received "' + typeof obj_expression + '" (at "' + path_expression + '")');
316
+ }
317
+ const obj_resultParameter = obj.resultParameter;
318
+ const path_resultParameter = path + '.resultParameter';
319
+ if (typeof obj_resultParameter !== 'string') {
320
+ return new TypeError('Expected "string" but received "' + typeof obj_resultParameter + '" (at "' + path_resultParameter + '")');
321
+ }
322
+ })();
323
+ return v_error === undefined ? null : v_error;
324
+ }
325
+ function deepFreeze$V(input) {
326
+ ObjectFreeze(input);
327
+ }
328
+
329
+ function validate$16(obj, path = 'ExpressionSetCustomElementParameterOutputRepresentation') {
330
+ const v_error = (() => {
331
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
332
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
333
+ }
334
+ const obj_input = obj.input;
335
+ const path_input = path + '.input';
336
+ if (typeof obj_input !== 'boolean') {
337
+ return new TypeError('Expected "boolean" but received "' + typeof obj_input + '" (at "' + path_input + '")');
338
+ }
339
+ const obj_name = obj.name;
340
+ const path_name = path + '.name';
341
+ if (typeof obj_name !== 'string') {
342
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
343
+ }
344
+ const obj_output = obj.output;
345
+ const path_output = path + '.output';
346
+ if (typeof obj_output !== 'boolean') {
347
+ return new TypeError('Expected "boolean" but received "' + typeof obj_output + '" (at "' + path_output + '")');
348
+ }
349
+ const obj_value = obj.value;
350
+ const path_value = path + '.value';
351
+ if (typeof obj_value !== 'string') {
352
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
353
+ }
354
+ })();
355
+ return v_error === undefined ? null : v_error;
356
+ }
357
+ function deepFreeze$U(input) {
358
+ ObjectFreeze(input);
359
+ }
360
+
361
+ function validate$15(obj, path = 'ExpressionSetCustomElementStepOutputRepresentation') {
362
+ const v_error = (() => {
363
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
364
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
365
+ }
366
+ const obj_parameters = obj.parameters;
367
+ const path_parameters = path + '.parameters';
368
+ if (!ArrayIsArray(obj_parameters)) {
369
+ return new TypeError('Expected "array" but received "' + typeof obj_parameters + '" (at "' + path_parameters + '")');
370
+ }
371
+ for (let i = 0; i < obj_parameters.length; i++) {
372
+ const obj_parameters_item = obj_parameters[i];
373
+ const path_parameters_item = path_parameters + '[' + i + ']';
374
+ const referencepath_parameters_itemValidationError = validate$16(obj_parameters_item, path_parameters_item);
375
+ if (referencepath_parameters_itemValidationError !== null) {
376
+ let message = 'Object doesn\'t match ExpressionSetCustomElementParameterOutputRepresentation (at "' + path_parameters_item + '")\n';
377
+ message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
378
+ return new TypeError(message);
379
+ }
380
+ }
381
+ })();
382
+ return v_error === undefined ? null : v_error;
383
+ }
384
+ function deepFreeze$T(input) {
385
+ const input_parameters = input.parameters;
386
+ for (let i = 0; i < input_parameters.length; i++) {
387
+ const input_parameters_item = input_parameters[i];
388
+ deepFreeze$U(input_parameters_item);
389
+ }
390
+ ObjectFreeze(input_parameters);
391
+ ObjectFreeze(input);
392
+ }
393
+
394
+ function validate$14(obj, path = 'ExpressionSetLookupTableStepOutputRepresentation') {
395
+ const v_error = (() => {
396
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
397
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
398
+ }
399
+ const obj_lookupTableName = obj.lookupTableName;
400
+ const path_lookupTableName = path + '.lookupTableName';
401
+ if (typeof obj_lookupTableName !== 'string') {
402
+ return new TypeError('Expected "string" but received "' + typeof obj_lookupTableName + '" (at "' + path_lookupTableName + '")');
403
+ }
404
+ const obj_type = obj.type;
405
+ const path_type = path + '.type';
406
+ if (typeof obj_type !== 'string') {
407
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
408
+ }
409
+ })();
410
+ return v_error === undefined ? null : v_error;
411
+ }
412
+ function deepFreeze$S(input) {
413
+ ObjectFreeze(input);
414
+ }
415
+
416
+ function validate$13(obj, path = 'ExpressionSetSubExpressionStepOutputRepresentation') {
417
+ const v_error = (() => {
418
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
419
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
420
+ }
421
+ const obj_expressionSet = obj.expressionSet;
422
+ const path_expressionSet = path + '.expressionSet';
423
+ if (typeof obj_expressionSet !== 'string') {
424
+ return new TypeError('Expected "string" but received "' + typeof obj_expressionSet + '" (at "' + path_expressionSet + '")');
425
+ }
426
+ })();
427
+ return v_error === undefined ? null : v_error;
428
+ }
429
+ function deepFreeze$R(input) {
430
+ ObjectFreeze(input);
431
+ }
432
+
433
+ function validate$12(obj, path = 'ExpressionSetVersionStepOutputRepresentation') {
434
+ const v_error = (() => {
435
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
436
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
437
+ }
438
+ if (obj.actionType !== undefined) {
439
+ const obj_actionType = obj.actionType;
440
+ const path_actionType = path + '.actionType';
441
+ if (typeof obj_actionType !== 'string') {
442
+ return new TypeError('Expected "string" but received "' + typeof obj_actionType + '" (at "' + path_actionType + '")');
443
+ }
444
+ }
445
+ if (obj.advancedCondition !== undefined) {
446
+ const obj_advancedCondition = obj.advancedCondition;
447
+ const path_advancedCondition = path + '.advancedCondition';
448
+ const referencepath_advancedConditionValidationError = validate$1a(obj_advancedCondition, path_advancedCondition);
449
+ if (referencepath_advancedConditionValidationError !== null) {
450
+ let message = 'Object doesn\'t match ExpressionSetAdvancedConditionStepOutputRepresentation (at "' + path_advancedCondition + '")\n';
451
+ message += referencepath_advancedConditionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
452
+ return new TypeError(message);
453
+ }
454
+ }
455
+ if (obj.aggregation !== undefined) {
456
+ const obj_aggregation = obj.aggregation;
457
+ const path_aggregation = path + '.aggregation';
458
+ const referencepath_aggregationValidationError = validate$19(obj_aggregation, path_aggregation);
459
+ if (referencepath_aggregationValidationError !== null) {
460
+ let message = 'Object doesn\'t match ExpressionSetAggregationStepOutputRepresentation (at "' + path_aggregation + '")\n';
461
+ message += referencepath_aggregationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
462
+ return new TypeError(message);
463
+ }
464
+ }
465
+ if (obj.assignment !== undefined) {
466
+ const obj_assignment = obj.assignment;
467
+ const path_assignment = path + '.assignment';
468
+ const referencepath_assignmentValidationError = validate$18(obj_assignment, path_assignment);
469
+ if (referencepath_assignmentValidationError !== null) {
470
+ let message = 'Object doesn\'t match ExpressionSetAssignmentStepOutputRepresentation (at "' + path_assignment + '")\n';
471
+ message += referencepath_assignmentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
472
+ return new TypeError(message);
473
+ }
474
+ }
475
+ if (obj.conditionExpression !== undefined) {
476
+ const obj_conditionExpression = obj.conditionExpression;
477
+ const path_conditionExpression = path + '.conditionExpression';
478
+ const referencepath_conditionExpressionValidationError = validate$17(obj_conditionExpression, path_conditionExpression);
479
+ if (referencepath_conditionExpressionValidationError !== null) {
480
+ let message = 'Object doesn\'t match ExpressionSetConditionExpressionStepOutputRepresentation (at "' + path_conditionExpression + '")\n';
481
+ message += referencepath_conditionExpressionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
482
+ return new TypeError(message);
483
+ }
484
+ }
485
+ if (obj.customElement !== undefined) {
486
+ const obj_customElement = obj.customElement;
487
+ const path_customElement = path + '.customElement';
488
+ const referencepath_customElementValidationError = validate$15(obj_customElement, path_customElement);
489
+ if (referencepath_customElementValidationError !== null) {
490
+ let message = 'Object doesn\'t match ExpressionSetCustomElementStepOutputRepresentation (at "' + path_customElement + '")\n';
491
+ message += referencepath_customElementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
492
+ return new TypeError(message);
493
+ }
494
+ }
495
+ if (obj.description !== undefined) {
496
+ const obj_description = obj.description;
497
+ const path_description = path + '.description';
498
+ if (typeof obj_description !== 'string') {
499
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
500
+ }
501
+ }
502
+ if (obj.failedExplainerTemplate !== undefined) {
503
+ const obj_failedExplainerTemplate = obj.failedExplainerTemplate;
504
+ const path_failedExplainerTemplate = path + '.failedExplainerTemplate';
505
+ if (typeof obj_failedExplainerTemplate !== 'string') {
506
+ return new TypeError('Expected "string" but received "' + typeof obj_failedExplainerTemplate + '" (at "' + path_failedExplainerTemplate + '")');
507
+ }
508
+ }
509
+ if (obj.lookupTable !== undefined) {
510
+ const obj_lookupTable = obj.lookupTable;
511
+ const path_lookupTable = path + '.lookupTable';
512
+ const referencepath_lookupTableValidationError = validate$14(obj_lookupTable, path_lookupTable);
513
+ if (referencepath_lookupTableValidationError !== null) {
514
+ let message = 'Object doesn\'t match ExpressionSetLookupTableStepOutputRepresentation (at "' + path_lookupTable + '")\n';
515
+ message += referencepath_lookupTableValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
516
+ return new TypeError(message);
517
+ }
518
+ }
519
+ const obj_name = obj.name;
520
+ const path_name = path + '.name';
521
+ if (typeof obj_name !== 'string') {
522
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
523
+ }
524
+ if (obj.parentStep !== undefined) {
525
+ const obj_parentStep = obj.parentStep;
526
+ const path_parentStep = path + '.parentStep';
527
+ if (typeof obj_parentStep !== 'string') {
528
+ return new TypeError('Expected "string" but received "' + typeof obj_parentStep + '" (at "' + path_parentStep + '")');
529
+ }
530
+ }
531
+ if (obj.passedExplainerTemplate !== undefined) {
532
+ const obj_passedExplainerTemplate = obj.passedExplainerTemplate;
533
+ const path_passedExplainerTemplate = path + '.passedExplainerTemplate';
534
+ if (typeof obj_passedExplainerTemplate !== 'string') {
535
+ return new TypeError('Expected "string" but received "' + typeof obj_passedExplainerTemplate + '" (at "' + path_passedExplainerTemplate + '")');
536
+ }
537
+ }
538
+ if (obj.resultIncluded !== undefined) {
539
+ const obj_resultIncluded = obj.resultIncluded;
540
+ const path_resultIncluded = path + '.resultIncluded';
541
+ if (typeof obj_resultIncluded !== 'boolean') {
542
+ return new TypeError('Expected "boolean" but received "' + typeof obj_resultIncluded + '" (at "' + path_resultIncluded + '")');
543
+ }
544
+ }
545
+ const obj_sequenceNumber = obj.sequenceNumber;
546
+ const path_sequenceNumber = path + '.sequenceNumber';
547
+ if (typeof obj_sequenceNumber !== 'number' || (typeof obj_sequenceNumber === 'number' && Math.floor(obj_sequenceNumber) !== obj_sequenceNumber)) {
548
+ return new TypeError('Expected "integer" but received "' + typeof obj_sequenceNumber + '" (at "' + path_sequenceNumber + '")');
549
+ }
550
+ if (obj.shouldExposeConditionDetails !== undefined) {
551
+ const obj_shouldExposeConditionDetails = obj.shouldExposeConditionDetails;
552
+ const path_shouldExposeConditionDetails = path + '.shouldExposeConditionDetails';
553
+ if (typeof obj_shouldExposeConditionDetails !== 'boolean') {
554
+ return new TypeError('Expected "boolean" but received "' + typeof obj_shouldExposeConditionDetails + '" (at "' + path_shouldExposeConditionDetails + '")');
555
+ }
556
+ }
557
+ if (obj.shouldExposeExecPathMsgOnly !== undefined) {
558
+ const obj_shouldExposeExecPathMsgOnly = obj.shouldExposeExecPathMsgOnly;
559
+ const path_shouldExposeExecPathMsgOnly = path + '.shouldExposeExecPathMsgOnly';
560
+ if (typeof obj_shouldExposeExecPathMsgOnly !== 'boolean') {
561
+ return new TypeError('Expected "boolean" but received "' + typeof obj_shouldExposeExecPathMsgOnly + '" (at "' + path_shouldExposeExecPathMsgOnly + '")');
562
+ }
563
+ }
564
+ if (obj.shouldShowExplExternally !== undefined) {
565
+ const obj_shouldShowExplExternally = obj.shouldShowExplExternally;
566
+ const path_shouldShowExplExternally = path + '.shouldShowExplExternally';
567
+ if (typeof obj_shouldShowExplExternally !== 'boolean') {
568
+ return new TypeError('Expected "boolean" but received "' + typeof obj_shouldShowExplExternally + '" (at "' + path_shouldShowExplExternally + '")');
569
+ }
570
+ }
571
+ const obj_stepType = obj.stepType;
572
+ const path_stepType = path + '.stepType';
573
+ if (typeof obj_stepType !== 'string') {
574
+ return new TypeError('Expected "string" but received "' + typeof obj_stepType + '" (at "' + path_stepType + '")');
575
+ }
576
+ if (obj.subExpression !== undefined) {
577
+ const obj_subExpression = obj.subExpression;
578
+ const path_subExpression = path + '.subExpression';
579
+ const referencepath_subExpressionValidationError = validate$13(obj_subExpression, path_subExpression);
580
+ if (referencepath_subExpressionValidationError !== null) {
581
+ let message = 'Object doesn\'t match ExpressionSetSubExpressionStepOutputRepresentation (at "' + path_subExpression + '")\n';
582
+ message += referencepath_subExpressionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
583
+ return new TypeError(message);
584
+ }
585
+ }
586
+ })();
587
+ return v_error === undefined ? null : v_error;
588
+ }
589
+ function deepFreeze$Q(input) {
590
+ const input_advancedCondition = input.advancedCondition;
591
+ if (input_advancedCondition !== undefined) {
592
+ deepFreeze$Y(input_advancedCondition);
593
+ }
594
+ const input_aggregation = input.aggregation;
595
+ if (input_aggregation !== undefined) {
596
+ deepFreeze$X(input_aggregation);
597
+ }
598
+ const input_assignment = input.assignment;
599
+ if (input_assignment !== undefined) {
600
+ deepFreeze$W(input_assignment);
601
+ }
602
+ const input_conditionExpression = input.conditionExpression;
603
+ if (input_conditionExpression !== undefined) {
604
+ deepFreeze$V(input_conditionExpression);
605
+ }
606
+ const input_customElement = input.customElement;
607
+ if (input_customElement !== undefined) {
608
+ deepFreeze$T(input_customElement);
609
+ }
610
+ const input_lookupTable = input.lookupTable;
611
+ if (input_lookupTable !== undefined) {
612
+ deepFreeze$S(input_lookupTable);
613
+ }
614
+ const input_subExpression = input.subExpression;
615
+ if (input_subExpression !== undefined) {
616
+ deepFreeze$R(input_subExpression);
617
+ }
618
+ ObjectFreeze(input);
619
+ }
620
+
621
+ function validate$11(obj, path = 'ExpressionSetVersionVariableOutputRepresentation') {
622
+ const v_error = (() => {
623
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
624
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
625
+ }
626
+ if (obj.collection !== undefined) {
627
+ const obj_collection = obj.collection;
628
+ const path_collection = path + '.collection';
629
+ if (typeof obj_collection !== 'boolean') {
630
+ return new TypeError('Expected "boolean" but received "' + typeof obj_collection + '" (at "' + path_collection + '")');
631
+ }
632
+ }
633
+ const obj_dataType = obj.dataType;
634
+ const path_dataType = path + '.dataType';
635
+ if (typeof obj_dataType !== 'string') {
636
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
637
+ }
638
+ if (obj.decimalPlaces !== undefined) {
639
+ const obj_decimalPlaces = obj.decimalPlaces;
640
+ const path_decimalPlaces = path + '.decimalPlaces';
641
+ if (typeof obj_decimalPlaces !== 'number' || (typeof obj_decimalPlaces === 'number' && Math.floor(obj_decimalPlaces) !== obj_decimalPlaces)) {
642
+ return new TypeError('Expected "integer" but received "' + typeof obj_decimalPlaces + '" (at "' + path_decimalPlaces + '")');
643
+ }
644
+ }
645
+ if (obj.description !== undefined) {
646
+ const obj_description = obj.description;
647
+ const path_description = path + '.description';
648
+ if (typeof obj_description !== 'string') {
649
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
650
+ }
651
+ }
652
+ if (obj.input !== undefined) {
653
+ const obj_input = obj.input;
654
+ const path_input = path + '.input';
655
+ if (typeof obj_input !== 'boolean') {
656
+ return new TypeError('Expected "boolean" but received "' + typeof obj_input + '" (at "' + path_input + '")');
657
+ }
658
+ }
659
+ if (obj.lookupName !== undefined) {
660
+ const obj_lookupName = obj.lookupName;
661
+ const path_lookupName = path + '.lookupName';
662
+ if (typeof obj_lookupName !== 'string') {
663
+ return new TypeError('Expected "string" but received "' + typeof obj_lookupName + '" (at "' + path_lookupName + '")');
664
+ }
665
+ }
666
+ if (obj.lookupType !== undefined) {
667
+ const obj_lookupType = obj.lookupType;
668
+ const path_lookupType = path + '.lookupType';
669
+ if (typeof obj_lookupType !== 'string') {
670
+ return new TypeError('Expected "string" but received "' + typeof obj_lookupType + '" (at "' + path_lookupType + '")');
671
+ }
672
+ }
673
+ const obj_name = obj.name;
674
+ const path_name = path + '.name';
675
+ if (typeof obj_name !== 'string') {
676
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
677
+ }
678
+ if (obj.objectName !== undefined) {
679
+ const obj_objectName = obj.objectName;
680
+ const path_objectName = path + '.objectName';
681
+ if (typeof obj_objectName !== 'string') {
682
+ return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
683
+ }
684
+ }
685
+ if (obj.output !== undefined) {
686
+ const obj_output = obj.output;
687
+ const path_output = path + '.output';
688
+ if (typeof obj_output !== 'boolean') {
689
+ return new TypeError('Expected "boolean" but received "' + typeof obj_output + '" (at "' + path_output + '")');
690
+ }
691
+ }
692
+ if (obj.resultStep !== undefined) {
693
+ const obj_resultStep = obj.resultStep;
694
+ const path_resultStep = path + '.resultStep';
695
+ if (typeof obj_resultStep !== 'string') {
696
+ return new TypeError('Expected "string" but received "' + typeof obj_resultStep + '" (at "' + path_resultStep + '")');
697
+ }
698
+ }
699
+ const obj_type = obj.type;
700
+ const path_type = path + '.type';
701
+ if (typeof obj_type !== 'string') {
702
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
703
+ }
704
+ if (obj.value !== undefined) {
705
+ const obj_value = obj.value;
706
+ const path_value = path + '.value';
707
+ if (typeof obj_value !== 'string') {
708
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
709
+ }
710
+ }
711
+ })();
712
+ return v_error === undefined ? null : v_error;
713
+ }
714
+ function deepFreeze$P(input) {
715
+ ObjectFreeze(input);
716
+ }
717
+
718
+ function validate$10(obj, path = 'ExpressionSetVersionOutputRepresentation') {
719
+ const v_error = (() => {
720
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
721
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
722
+ }
723
+ const obj_apiName = obj.apiName;
724
+ const path_apiName = path + '.apiName';
725
+ if (typeof obj_apiName !== 'string') {
726
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
727
+ }
728
+ if (obj.description !== undefined) {
729
+ const obj_description = obj.description;
730
+ const path_description = path + '.description';
731
+ if (typeof obj_description !== 'string') {
732
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
733
+ }
734
+ }
735
+ const obj_enabled = obj.enabled;
736
+ const path_enabled = path + '.enabled';
737
+ if (typeof obj_enabled !== 'boolean') {
738
+ return new TypeError('Expected "boolean" but received "' + typeof obj_enabled + '" (at "' + path_enabled + '")');
739
+ }
740
+ if (obj.endDate !== undefined) {
741
+ const obj_endDate = obj.endDate;
742
+ const path_endDate = path + '.endDate';
743
+ if (typeof obj_endDate !== 'string') {
744
+ return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
745
+ }
746
+ }
747
+ if (obj.id !== undefined) {
748
+ const obj_id = obj.id;
749
+ const path_id = path + '.id';
750
+ if (typeof obj_id !== 'string') {
751
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
752
+ }
753
+ }
754
+ const obj_name = obj.name;
755
+ const path_name = path + '.name';
756
+ if (typeof obj_name !== 'string') {
757
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
758
+ }
759
+ if (obj.rank !== undefined) {
760
+ const obj_rank = obj.rank;
761
+ const path_rank = path + '.rank';
762
+ if (typeof obj_rank !== 'number' || (typeof obj_rank === 'number' && Math.floor(obj_rank) !== obj_rank)) {
763
+ return new TypeError('Expected "integer" but received "' + typeof obj_rank + '" (at "' + path_rank + '")');
764
+ }
765
+ }
766
+ if (obj.showExplExternally !== undefined) {
767
+ const obj_showExplExternally = obj.showExplExternally;
768
+ const path_showExplExternally = path + '.showExplExternally';
769
+ if (typeof obj_showExplExternally !== 'boolean') {
770
+ return new TypeError('Expected "boolean" but received "' + typeof obj_showExplExternally + '" (at "' + path_showExplExternally + '")');
771
+ }
772
+ }
773
+ const obj_startDate = obj.startDate;
774
+ const path_startDate = path + '.startDate';
775
+ if (typeof obj_startDate !== 'string') {
776
+ return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
777
+ }
778
+ if (obj.steps !== undefined) {
779
+ const obj_steps = obj.steps;
780
+ const path_steps = path + '.steps';
781
+ if (!ArrayIsArray(obj_steps)) {
782
+ return new TypeError('Expected "array" but received "' + typeof obj_steps + '" (at "' + path_steps + '")');
783
+ }
784
+ for (let i = 0; i < obj_steps.length; i++) {
785
+ const obj_steps_item = obj_steps[i];
786
+ const path_steps_item = path_steps + '[' + i + ']';
787
+ const referencepath_steps_itemValidationError = validate$12(obj_steps_item, path_steps_item);
788
+ if (referencepath_steps_itemValidationError !== null) {
789
+ let message = 'Object doesn\'t match ExpressionSetVersionStepOutputRepresentation (at "' + path_steps_item + '")\n';
790
+ message += referencepath_steps_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
791
+ return new TypeError(message);
792
+ }
793
+ }
794
+ }
795
+ if (obj.variables !== undefined) {
796
+ const obj_variables = obj.variables;
797
+ const path_variables = path + '.variables';
798
+ if (!ArrayIsArray(obj_variables)) {
799
+ return new TypeError('Expected "array" but received "' + typeof obj_variables + '" (at "' + path_variables + '")');
800
+ }
801
+ for (let i = 0; i < obj_variables.length; i++) {
802
+ const obj_variables_item = obj_variables[i];
803
+ const path_variables_item = path_variables + '[' + i + ']';
804
+ const referencepath_variables_itemValidationError = validate$11(obj_variables_item, path_variables_item);
805
+ if (referencepath_variables_itemValidationError !== null) {
806
+ let message = 'Object doesn\'t match ExpressionSetVersionVariableOutputRepresentation (at "' + path_variables_item + '")\n';
807
+ message += referencepath_variables_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
808
+ return new TypeError(message);
809
+ }
810
+ }
811
+ }
812
+ const obj_versionNumber = obj.versionNumber;
813
+ const path_versionNumber = path + '.versionNumber';
814
+ if (typeof obj_versionNumber !== 'number' || (typeof obj_versionNumber === 'number' && Math.floor(obj_versionNumber) !== obj_versionNumber)) {
815
+ return new TypeError('Expected "integer" but received "' + typeof obj_versionNumber + '" (at "' + path_versionNumber + '")');
816
+ }
817
+ })();
818
+ return v_error === undefined ? null : v_error;
819
+ }
820
+ function deepFreeze$O(input) {
821
+ const input_steps = input.steps;
822
+ if (input_steps !== undefined) {
823
+ for (let i = 0; i < input_steps.length; i++) {
824
+ const input_steps_item = input_steps[i];
825
+ deepFreeze$Q(input_steps_item);
826
+ }
827
+ ObjectFreeze(input_steps);
828
+ }
829
+ const input_variables = input.variables;
830
+ if (input_variables !== undefined) {
831
+ for (let i = 0; i < input_variables.length; i++) {
832
+ const input_variables_item = input_variables[i];
833
+ deepFreeze$P(input_variables_item);
834
+ }
835
+ ObjectFreeze(input_variables);
836
+ }
837
+ ObjectFreeze(input);
838
+ }
839
+
840
+ const TTL$h = 1000;
841
+ const VERSION$j = "88bb3e9e4ffc6387ba261f9780501cb9";
842
+ function validate$$(obj, path = 'ExpressionSetOutputRepresentation') {
843
+ const v_error = (() => {
844
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
845
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
846
+ }
847
+ if (obj.apiName !== undefined) {
848
+ const obj_apiName = obj.apiName;
849
+ const path_apiName = path + '.apiName';
850
+ if (typeof obj_apiName !== 'string') {
851
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
852
+ }
853
+ }
854
+ if (obj.contextDefinitions !== undefined) {
855
+ const obj_contextDefinitions = obj.contextDefinitions;
856
+ const path_contextDefinitions = path + '.contextDefinitions';
857
+ if (!ArrayIsArray(obj_contextDefinitions)) {
858
+ return new TypeError('Expected "array" but received "' + typeof obj_contextDefinitions + '" (at "' + path_contextDefinitions + '")');
859
+ }
860
+ for (let i = 0; i < obj_contextDefinitions.length; i++) {
861
+ const obj_contextDefinitions_item = obj_contextDefinitions[i];
862
+ const path_contextDefinitions_item = path_contextDefinitions + '[' + i + ']';
863
+ const referencepath_contextDefinitions_itemValidationError = validate$1d(obj_contextDefinitions_item, path_contextDefinitions_item);
864
+ if (referencepath_contextDefinitions_itemValidationError !== null) {
865
+ let message = 'Object doesn\'t match ContextDefinitionOutputRepresentation (at "' + path_contextDefinitions_item + '")\n';
866
+ message += referencepath_contextDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
867
+ return new TypeError(message);
868
+ }
869
+ }
870
+ }
871
+ if (obj.description !== undefined) {
872
+ const obj_description = obj.description;
873
+ const path_description = path + '.description';
874
+ if (typeof obj_description !== 'string') {
875
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
876
+ }
877
+ }
878
+ if (obj.error !== undefined) {
879
+ const obj_error = obj.error;
880
+ const path_error = path + '.error';
881
+ const referencepath_errorValidationError = validate$1c(obj_error, path_error);
882
+ if (referencepath_errorValidationError !== null) {
883
+ let message = 'Object doesn\'t match ExpressionSetErrorRepresentation (at "' + path_error + '")\n';
884
+ message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
885
+ return new TypeError(message);
886
+ }
887
+ }
888
+ const obj_id = obj.id;
889
+ const path_id = path + '.id';
890
+ if (typeof obj_id !== 'string') {
891
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
892
+ }
893
+ if (obj.name !== undefined) {
894
+ const obj_name = obj.name;
895
+ const path_name = path + '.name';
896
+ if (typeof obj_name !== 'string') {
897
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
898
+ }
899
+ }
900
+ if (obj.usageType !== undefined) {
901
+ const obj_usageType = obj.usageType;
902
+ const path_usageType = path + '.usageType';
903
+ if (typeof obj_usageType !== 'string') {
904
+ return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
905
+ }
906
+ }
907
+ if (obj.versions !== undefined) {
908
+ const obj_versions = obj.versions;
909
+ const path_versions = path + '.versions';
910
+ if (!ArrayIsArray(obj_versions)) {
911
+ return new TypeError('Expected "array" but received "' + typeof obj_versions + '" (at "' + path_versions + '")');
912
+ }
913
+ for (let i = 0; i < obj_versions.length; i++) {
914
+ const obj_versions_item = obj_versions[i];
915
+ const path_versions_item = path_versions + '[' + i + ']';
916
+ const referencepath_versions_itemValidationError = validate$10(obj_versions_item, path_versions_item);
917
+ if (referencepath_versions_itemValidationError !== null) {
918
+ let message = 'Object doesn\'t match ExpressionSetVersionOutputRepresentation (at "' + path_versions_item + '")\n';
919
+ message += referencepath_versions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
920
+ return new TypeError(message);
921
+ }
922
+ }
923
+ }
924
+ })();
925
+ return v_error === undefined ? null : v_error;
926
+ }
927
+ const RepresentationType$j = 'ExpressionSetOutputRepresentation';
928
+ function keyBuilder$D(luvio, config) {
929
+ return keyPrefix + '::' + RepresentationType$j + ':' + config.id;
930
+ }
931
+ function keyBuilderFromType$6(luvio, object) {
932
+ const keyParams = {
933
+ id: object.id
934
+ };
935
+ return keyBuilder$D(luvio, keyParams);
936
+ }
937
+ function normalize$j(input, existing, path, luvio, store, timestamp) {
938
+ return input;
939
+ }
940
+ const select$H = function ExpressionSetOutputRepresentationSelect() {
941
+ return {
942
+ kind: 'Fragment',
943
+ version: VERSION$j,
944
+ private: [],
945
+ opaque: true
946
+ };
947
+ };
948
+ function equals$j(existing, incoming) {
949
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
950
+ return false;
951
+ }
952
+ return true;
953
+ }
954
+ function deepFreeze$N(input) {
955
+ const input_contextDefinitions = input.contextDefinitions;
956
+ if (input_contextDefinitions !== undefined) {
957
+ for (let i = 0; i < input_contextDefinitions.length; i++) {
958
+ const input_contextDefinitions_item = input_contextDefinitions[i];
959
+ deepFreeze$$(input_contextDefinitions_item);
960
+ }
961
+ ObjectFreeze(input_contextDefinitions);
962
+ }
963
+ const input_error = input.error;
964
+ if (input_error !== undefined) {
965
+ deepFreeze$_(input_error);
966
+ }
967
+ const input_versions = input.versions;
968
+ if (input_versions !== undefined) {
969
+ for (let i = 0; i < input_versions.length; i++) {
970
+ const input_versions_item = input_versions[i];
971
+ deepFreeze$O(input_versions_item);
972
+ }
973
+ ObjectFreeze(input_versions);
974
+ }
975
+ ObjectFreeze(input);
976
+ }
977
+ const ingest$j = function ExpressionSetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
978
+ if (process.env.NODE_ENV !== 'production') {
979
+ const validateError = validate$$(input);
980
+ if (validateError !== null) {
981
+ throw validateError;
982
+ }
983
+ }
984
+ const key = keyBuilderFromType$6(luvio, input);
985
+ const existingRecord = store.readEntry(key);
986
+ const ttlToUse = TTL$h;
987
+ let incomingRecord = normalize$j(input, store.readEntry(key), {
988
+ fullPath: key,
989
+ parent: path.parent,
990
+ propertyName: path.propertyName,
991
+ ttl: ttlToUse
992
+ });
993
+ deepFreeze$N(input);
994
+ if (existingRecord === undefined || equals$j(existingRecord, incomingRecord) === false) {
995
+ luvio.storePublish(key, incomingRecord);
996
+ }
997
+ {
998
+ const storeMetadataParams = {
999
+ ttl: ttlToUse,
1000
+ namespace: "interaction",
1001
+ version: VERSION$j,
1002
+ representationName: RepresentationType$j,
1003
+ };
1004
+ luvio.publishStoreMetadata(key, storeMetadataParams);
1005
+ }
1006
+ return createLink(key);
1007
+ };
1008
+ function getTypeCacheKeys$j(luvio, input, fullPathFactory) {
1009
+ const rootKeySet = new StoreKeyMap();
1010
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1011
+ const rootKey = keyBuilderFromType$6(luvio, input);
1012
+ rootKeySet.set(rootKey, {
1013
+ namespace: keyPrefix,
1014
+ representationName: RepresentationType$j,
1015
+ mergeable: false
1016
+ });
1017
+ return rootKeySet;
1018
+ }
1019
+
1020
+ function select$G(luvio, params) {
1021
+ return select$H();
1022
+ }
1023
+ function getResponseCacheKeys$o(luvio, resourceParams, response) {
1024
+ return getTypeCacheKeys$j(luvio, response);
1025
+ }
1026
+ function ingestSuccess$n(luvio, resourceParams, response) {
1027
+ const { body } = response;
1028
+ const key = keyBuilderFromType$6(luvio, body);
1029
+ luvio.storeIngest(key, ingest$j, body);
1030
+ const snapshot = luvio.storeLookup({
1031
+ recordId: key,
1032
+ node: select$G(),
1033
+ variables: {},
1034
+ });
1035
+ if (process.env.NODE_ENV !== 'production') {
1036
+ if (snapshot.state !== 'Fulfilled') {
1037
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1038
+ }
1039
+ }
1040
+ return snapshot;
1041
+ }
1042
+ function createResourceRequest$o(config) {
1043
+ const headers = {};
1044
+ return {
1045
+ baseUri: '/services/data/v58.0',
1046
+ basePath: '/connect/business-rules/expression-set',
1047
+ method: 'post',
1048
+ body: config.body,
1049
+ urlParams: {},
1050
+ queryParams: {},
1051
+ headers,
1052
+ priority: 'normal',
1053
+ };
1054
+ }
1055
+
1056
+ const createExpressionSet_ConfigPropertyNames = {
1057
+ displayName: 'createExpressionSet',
1058
+ parameters: {
1059
+ required: ['esInputRepresentationObject'],
1060
+ optional: []
1061
+ }
1062
+ };
1063
+ function createResourceParams$o(config) {
1064
+ const resourceParams = {
1065
+ body: {
1066
+ esInputRepresentationObject: config.esInputRepresentationObject
1067
+ }
1068
+ };
1069
+ return resourceParams;
1070
+ }
1071
+ function typeCheckConfig$o(untrustedConfig) {
1072
+ const config = {};
1073
+ const untrustedConfig_esInputRepresentationObject = untrustedConfig.esInputRepresentationObject;
1074
+ const referenceExpressionSetInputRepresentationValidationError = validate$1e(untrustedConfig_esInputRepresentationObject);
1075
+ if (referenceExpressionSetInputRepresentationValidationError === null) {
1076
+ config.esInputRepresentationObject = untrustedConfig_esInputRepresentationObject;
1077
+ }
1078
+ return config;
1079
+ }
1080
+ function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
1081
+ if (!untrustedIsObject(untrustedConfig)) {
1082
+ return null;
1083
+ }
1084
+ if (process.env.NODE_ENV !== 'production') {
1085
+ validateConfig(untrustedConfig, configPropertyNames);
1086
+ }
1087
+ const config = typeCheckConfig$o(untrustedConfig);
1088
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1089
+ return null;
1090
+ }
1091
+ return config;
1092
+ }
1093
+ function buildNetworkSnapshot$o(luvio, config, options) {
1094
+ const resourceParams = createResourceParams$o(config);
1095
+ const request = createResourceRequest$o(resourceParams);
1096
+ return luvio.dispatchResourceRequest(request, options)
1097
+ .then((response) => {
1098
+ return luvio.handleSuccessResponse(() => {
1099
+ const snapshot = ingestSuccess$n(luvio, resourceParams, response);
1100
+ return luvio.storeBroadcast().then(() => snapshot);
1101
+ }, () => getResponseCacheKeys$o(luvio, resourceParams, response.body));
1102
+ }, (response) => {
1103
+ deepFreeze$10(response);
1104
+ throw response;
1105
+ });
1106
+ }
1107
+ const createExpressionSetAdapterFactory = (luvio) => {
1108
+ return function createExpressionSet(untrustedConfig) {
1109
+ const config = validateAdapterConfig$o(untrustedConfig, createExpressionSet_ConfigPropertyNames);
1110
+ // Invalid or incomplete config
1111
+ if (config === null) {
1112
+ throw new Error('Invalid config for "createExpressionSet"');
1113
+ }
1114
+ return buildNetworkSnapshot$o(luvio, config);
1115
+ };
1116
+ };
1117
+
1118
+ function keyBuilder$C(luvio, params) {
1119
+ return keyBuilder$D(luvio, {
1120
+ id: params.urlParams.expressionSetId
1121
+ });
1122
+ }
1123
+ function getResponseCacheKeys$n(luvio, resourceParams) {
1124
+ const key = keyBuilder$C(luvio, resourceParams);
1125
+ const cacheKeyMap = new StoreKeyMap();
1126
+ cacheKeyMap.set(key, {
1127
+ namespace: keyPrefix,
1128
+ representationName: RepresentationType$j,
1129
+ mergeable: false
1130
+ });
1131
+ return cacheKeyMap;
1132
+ }
1133
+ function evictSuccess(luvio, resourceParams) {
1134
+ const key = keyBuilder$C(luvio, resourceParams);
1135
+ luvio.storeEvict(key);
1136
+ }
1137
+ function createResourceRequest$n(config) {
1138
+ const headers = {};
1139
+ return {
1140
+ baseUri: '/services/data/v58.0',
1141
+ basePath: '/connect/business-rules/expression-set/' + config.urlParams.expressionSetId + '',
1142
+ method: 'delete',
1143
+ body: null,
1144
+ urlParams: config.urlParams,
1145
+ queryParams: {},
1146
+ headers,
1147
+ priority: 'normal',
1148
+ };
1149
+ }
1150
+
1151
+ const adapterName = 'deleteExpressionSet';
1152
+ const deleteExpressionSet_ConfigPropertyNames = {
1153
+ displayName: 'deleteExpressionSet',
1154
+ parameters: {
1155
+ required: ['expressionSetId'],
1156
+ optional: []
1157
+ }
1158
+ };
1159
+ function createResourceParams$n(config) {
1160
+ const resourceParams = {
1161
+ urlParams: {
1162
+ expressionSetId: config.expressionSetId
1163
+ }
1164
+ };
1165
+ return resourceParams;
1166
+ }
1167
+ function typeCheckConfig$n(untrustedConfig) {
1168
+ const config = {};
1169
+ const untrustedConfig_expressionSetId = untrustedConfig.expressionSetId;
1170
+ if (typeof untrustedConfig_expressionSetId === 'string') {
1171
+ config.expressionSetId = untrustedConfig_expressionSetId;
1172
+ }
1173
+ return config;
1174
+ }
1175
+ function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
1176
+ if (!untrustedIsObject(untrustedConfig)) {
1177
+ return null;
1178
+ }
1179
+ if (process.env.NODE_ENV !== 'production') {
1180
+ validateConfig(untrustedConfig, configPropertyNames);
1181
+ }
1182
+ const config = typeCheckConfig$n(untrustedConfig);
1183
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1184
+ return null;
1185
+ }
1186
+ return config;
1187
+ }
1188
+ function buildNetworkSnapshot$n(luvio, config, options) {
1189
+ const resourceParams = createResourceParams$n(config);
1190
+ const request = createResourceRequest$n(resourceParams);
1191
+ return luvio.dispatchResourceRequest(request, options)
1192
+ .then(() => {
1193
+ return luvio.handleSuccessResponse(() => {
1194
+ evictSuccess(luvio, resourceParams);
1195
+ return luvio.storeBroadcast();
1196
+ }, () => getResponseCacheKeys$n(luvio, resourceParams));
1197
+ }, (response) => {
1198
+ deepFreeze$10(response);
1199
+ throw response;
1200
+ });
1201
+ }
1202
+ const deleteExpressionSetAdapterFactory = (luvio) => {
1203
+ return function interactiondeleteExpressionSet(untrustedConfig) {
1204
+ const config = validateAdapterConfig$n(untrustedConfig, deleteExpressionSet_ConfigPropertyNames);
1205
+ // Invalid or incomplete config
1206
+ if (config === null) {
1207
+ throw new Error(`Invalid config for "${adapterName}"`);
1208
+ }
1209
+ return buildNetworkSnapshot$n(luvio, config);
1210
+ };
1211
+ };
1212
+
1213
+ function select$F(luvio, params) {
1214
+ return select$H();
1215
+ }
1216
+ function keyBuilder$B(luvio, params) {
1217
+ return keyBuilder$D(luvio, {
1218
+ id: params.urlParams.expressionSetId
1219
+ });
1220
+ }
1221
+ function getResponseCacheKeys$m(luvio, resourceParams, response) {
1222
+ return getTypeCacheKeys$j(luvio, response);
1223
+ }
1224
+ function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
1225
+ const { body } = response;
1226
+ const key = keyBuilder$B(luvio, resourceParams);
1227
+ luvio.storeIngest(key, ingest$j, body);
1228
+ const snapshot = luvio.storeLookup({
1229
+ recordId: key,
1230
+ node: select$F(),
1231
+ variables: {},
1232
+ }, snapshotRefresh);
1233
+ if (process.env.NODE_ENV !== 'production') {
1234
+ if (snapshot.state !== 'Fulfilled') {
1235
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1236
+ }
1237
+ }
1238
+ return snapshot;
1239
+ }
1240
+ function ingestError$f(luvio, params, error, snapshotRefresh) {
1241
+ const key = keyBuilder$B(luvio, params);
1242
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1243
+ const storeMetadataParams = {
1244
+ ttl: TTL$h,
1245
+ namespace: keyPrefix,
1246
+ version: VERSION$j,
1247
+ representationName: RepresentationType$j
1248
+ };
1249
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1250
+ return errorSnapshot;
1251
+ }
1252
+ function createResourceRequest$m(config) {
1253
+ const headers = {};
1254
+ return {
1255
+ baseUri: '/services/data/v58.0',
1256
+ basePath: '/connect/business-rules/expression-set/' + config.urlParams.expressionSetId + '',
1257
+ method: 'get',
1258
+ body: null,
1259
+ urlParams: config.urlParams,
1260
+ queryParams: {},
1261
+ headers,
1262
+ priority: 'normal',
1263
+ };
1264
+ }
1265
+
1266
+ const getExpressionSet_ConfigPropertyNames = {
1267
+ displayName: 'getExpressionSet',
1268
+ parameters: {
1269
+ required: ['expressionSetId'],
1270
+ optional: []
1271
+ }
1272
+ };
1273
+ function createResourceParams$m(config) {
1274
+ const resourceParams = {
1275
+ urlParams: {
1276
+ expressionSetId: config.expressionSetId
1277
+ }
1278
+ };
1279
+ return resourceParams;
1280
+ }
1281
+ function keyBuilder$A(luvio, config) {
1282
+ const resourceParams = createResourceParams$m(config);
1283
+ return keyBuilder$B(luvio, resourceParams);
1284
+ }
1285
+ function typeCheckConfig$m(untrustedConfig) {
1286
+ const config = {};
1287
+ const untrustedConfig_expressionSetId = untrustedConfig.expressionSetId;
1288
+ if (typeof untrustedConfig_expressionSetId === 'string') {
1289
+ config.expressionSetId = untrustedConfig_expressionSetId;
1290
+ }
1291
+ return config;
1292
+ }
1293
+ function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
1294
+ if (!untrustedIsObject(untrustedConfig)) {
1295
+ return null;
1296
+ }
1297
+ if (process.env.NODE_ENV !== 'production') {
1298
+ validateConfig(untrustedConfig, configPropertyNames);
1299
+ }
1300
+ const config = typeCheckConfig$m(untrustedConfig);
1301
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1302
+ return null;
1303
+ }
1304
+ return config;
1305
+ }
1306
+ function adapterFragment$f(luvio, config) {
1307
+ createResourceParams$m(config);
1308
+ return select$F();
1309
+ }
1310
+ function onFetchResponseSuccess$f(luvio, config, resourceParams, response) {
1311
+ const snapshot = ingestSuccess$m(luvio, resourceParams, response, {
1312
+ config,
1313
+ resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
1314
+ });
1315
+ return luvio.storeBroadcast().then(() => snapshot);
1316
+ }
1317
+ function onFetchResponseError$f(luvio, config, resourceParams, response) {
1318
+ const snapshot = ingestError$f(luvio, resourceParams, response, {
1319
+ config,
1320
+ resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
1321
+ });
1322
+ return luvio.storeBroadcast().then(() => snapshot);
1323
+ }
1324
+ function buildNetworkSnapshot$m(luvio, config, options) {
1325
+ const resourceParams = createResourceParams$m(config);
1326
+ const request = createResourceRequest$m(resourceParams);
1327
+ return luvio.dispatchResourceRequest(request, options)
1328
+ .then((response) => {
1329
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$f(luvio, config, resourceParams, response), () => getResponseCacheKeys$m(luvio, resourceParams, response.body));
1330
+ }, (response) => {
1331
+ return luvio.handleErrorResponse(() => onFetchResponseError$f(luvio, config, resourceParams, response));
1332
+ });
1333
+ }
1334
+ function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
1335
+ const { luvio, config } = context;
1336
+ const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1337
+ const dispatchOptions = {
1338
+ resourceRequestContext: {
1339
+ requestCorrelator,
1340
+ luvioRequestMethod: undefined,
1341
+ },
1342
+ eventObservers
1343
+ };
1344
+ if (networkPriority !== 'normal') {
1345
+ dispatchOptions.overrides = {
1346
+ priority: networkPriority
1347
+ };
1348
+ }
1349
+ return buildNetworkSnapshot$m(luvio, config, dispatchOptions);
1350
+ }
1351
+ function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
1352
+ const { luvio, config } = context;
1353
+ const selector = {
1354
+ recordId: keyBuilder$A(luvio, config),
1355
+ node: adapterFragment$f(luvio, config),
1356
+ variables: {},
1357
+ };
1358
+ const cacheSnapshot = storeLookup(selector, {
1359
+ config,
1360
+ resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
1361
+ });
1362
+ return cacheSnapshot;
1363
+ }
1364
+ const getExpressionSetAdapterFactory = (luvio) => function interaction__getExpressionSet(untrustedConfig, requestContext) {
1365
+ const config = validateAdapterConfig$m(untrustedConfig, getExpressionSet_ConfigPropertyNames);
1366
+ // Invalid or incomplete config
1367
+ if (config === null) {
1368
+ return null;
1369
+ }
1370
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1371
+ buildCachedSnapshotCachePolicy$f, buildNetworkSnapshotCachePolicy$f);
1372
+ };
1373
+
1374
+ function select$E(luvio, params) {
1375
+ return select$H();
1376
+ }
1377
+ function getResponseCacheKeys$l(luvio, resourceParams, response) {
1378
+ return getTypeCacheKeys$j(luvio, response);
1379
+ }
1380
+ function ingestSuccess$l(luvio, resourceParams, response) {
1381
+ const { body } = response;
1382
+ const key = keyBuilderFromType$6(luvio, body);
1383
+ luvio.storeIngest(key, ingest$j, body);
1384
+ const snapshot = luvio.storeLookup({
1385
+ recordId: key,
1386
+ node: select$E(),
1387
+ variables: {},
1388
+ });
1389
+ if (process.env.NODE_ENV !== 'production') {
1390
+ if (snapshot.state !== 'Fulfilled') {
1391
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1392
+ }
1393
+ }
1394
+ return snapshot;
1395
+ }
1396
+ function createResourceRequest$l(config) {
1397
+ const headers = {};
1398
+ return {
1399
+ baseUri: '/services/data/v58.0',
1400
+ basePath: '/connect/business-rules/expression-set/' + config.urlParams.expressionSetId + '',
1401
+ method: 'patch',
1402
+ body: config.body,
1403
+ urlParams: config.urlParams,
1404
+ queryParams: {},
1405
+ headers,
1406
+ priority: 'normal',
1407
+ };
1408
+ }
1409
+
1410
+ const updateExpressionSet_ConfigPropertyNames = {
1411
+ displayName: 'updateExpressionSet',
1412
+ parameters: {
1413
+ required: ['expressionSetId', 'esInputRepresentationObject'],
1414
+ optional: []
1415
+ }
1416
+ };
1417
+ function createResourceParams$l(config) {
1418
+ const resourceParams = {
1419
+ urlParams: {
1420
+ expressionSetId: config.expressionSetId
1421
+ },
1422
+ body: {
1423
+ esInputRepresentationObject: config.esInputRepresentationObject
1424
+ }
1425
+ };
1426
+ return resourceParams;
1427
+ }
1428
+ function typeCheckConfig$l(untrustedConfig) {
1429
+ const config = {};
1430
+ const untrustedConfig_expressionSetId = untrustedConfig.expressionSetId;
1431
+ if (typeof untrustedConfig_expressionSetId === 'string') {
1432
+ config.expressionSetId = untrustedConfig_expressionSetId;
1433
+ }
1434
+ const untrustedConfig_esInputRepresentationObject = untrustedConfig.esInputRepresentationObject;
1435
+ const referenceExpressionSetInputRepresentationValidationError = validate$1e(untrustedConfig_esInputRepresentationObject);
1436
+ if (referenceExpressionSetInputRepresentationValidationError === null) {
1437
+ config.esInputRepresentationObject = untrustedConfig_esInputRepresentationObject;
1438
+ }
1439
+ return config;
1440
+ }
1441
+ function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
1442
+ if (!untrustedIsObject(untrustedConfig)) {
1443
+ return null;
1444
+ }
1445
+ if (process.env.NODE_ENV !== 'production') {
1446
+ validateConfig(untrustedConfig, configPropertyNames);
1447
+ }
1448
+ const config = typeCheckConfig$l(untrustedConfig);
1449
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1450
+ return null;
1451
+ }
1452
+ return config;
1453
+ }
1454
+ function buildNetworkSnapshot$l(luvio, config, options) {
1455
+ const resourceParams = createResourceParams$l(config);
1456
+ const request = createResourceRequest$l(resourceParams);
1457
+ return luvio.dispatchResourceRequest(request, options)
1458
+ .then((response) => {
1459
+ return luvio.handleSuccessResponse(() => {
1460
+ const snapshot = ingestSuccess$l(luvio, resourceParams, response);
1461
+ return luvio.storeBroadcast().then(() => snapshot);
1462
+ }, () => getResponseCacheKeys$l(luvio, resourceParams, response.body));
1463
+ }, (response) => {
1464
+ deepFreeze$10(response);
1465
+ throw response;
1466
+ });
1467
+ }
1468
+ const updateExpressionSetAdapterFactory = (luvio) => {
1469
+ return function updateExpressionSet(untrustedConfig) {
1470
+ const config = validateAdapterConfig$l(untrustedConfig, updateExpressionSet_ConfigPropertyNames);
1471
+ // Invalid or incomplete config
1472
+ if (config === null) {
1473
+ throw new Error('Invalid config for "updateExpressionSet"');
1474
+ }
1475
+ return buildNetworkSnapshot$l(luvio, config);
1476
+ };
1477
+ };
1478
+
80
1479
  function validate$_(obj, path = 'ExplainabilityLogDetailRepresentation') {
81
1480
  const v_error = (() => {
82
1481
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1121,7 +2520,7 @@ function deepFreeze$H(input) {
1121
2520
  for (let i = 0; i < input_variableMap_length; i++) {
1122
2521
  const key = input_variableMap_keys[i];
1123
2522
  const input_variableMap_prop = input_variableMap[key];
1124
- deepFreeze$N(input_variableMap_prop);
2523
+ deepFreeze$10(input_variableMap_prop);
1125
2524
  }
1126
2525
  ObjectFreeze(input_variableMap);
1127
2526
  }
@@ -1822,7 +3221,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
1822
3221
  return luvio.storeBroadcast().then(() => snapshot);
1823
3222
  }, () => getResponseCacheKeys$h(luvio, resourceParams, response.body));
1824
3223
  }, (response) => {
1825
- deepFreeze$N(response);
3224
+ deepFreeze$10(response);
1826
3225
  throw response;
1827
3226
  });
1828
3227
  }
@@ -4052,7 +5451,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
4052
5451
  return luvio.storeBroadcast().then(() => snapshot);
4053
5452
  }, () => getResponseCacheKeys$d(luvio, resourceParams, response.body));
4054
5453
  }, (response) => {
4055
- deepFreeze$N(response);
5454
+ deepFreeze$10(response);
4056
5455
  throw response;
4057
5456
  });
4058
5457
  }
@@ -4425,7 +5824,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
4425
5824
  return luvio.storeBroadcast().then(() => snapshot);
4426
5825
  }, () => getResponseCacheKeys$b(luvio, resourceParams, response.body));
4427
5826
  }, (response) => {
4428
- deepFreeze$N(response);
5827
+ deepFreeze$10(response);
4429
5828
  throw response;
4430
5829
  });
4431
5830
  }
@@ -5341,7 +6740,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
5341
6740
  return luvio.storeBroadcast().then(() => snapshot);
5342
6741
  }, () => getResponseCacheKeys$8(luvio, resourceParams, response.body));
5343
6742
  }, (response) => {
5344
- deepFreeze$N(response);
6743
+ deepFreeze$10(response);
5345
6744
  throw response;
5346
6745
  });
5347
6746
  }
@@ -7759,7 +9158,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
7759
9158
  return luvio.storeBroadcast().then(() => snapshot);
7760
9159
  }, () => getResponseCacheKeys$1(luvio, resourceParams, response.body));
7761
9160
  }, (response) => {
7762
- deepFreeze$N(response);
9161
+ deepFreeze$10(response);
7763
9162
  throw response;
7764
9163
  });
7765
9164
  }
@@ -7864,7 +9263,7 @@ function buildNetworkSnapshot(luvio, config, options) {
7864
9263
  return luvio.storeBroadcast().then(() => snapshot);
7865
9264
  }, () => getResponseCacheKeys(luvio, resourceParams, response.body));
7866
9265
  }, (response) => {
7867
- deepFreeze$N(response);
9266
+ deepFreeze$10(response);
7868
9267
  throw response;
7869
9268
  });
7870
9269
  }
@@ -7879,4 +9278,4 @@ const updateAliasFieldAdapterFactory = (luvio) => {
7879
9278
  };
7880
9279
  };
7881
9280
 
7882
- export { activateCalcProcedureVersionAdapterFactory, createObjectAliasAdapterFactory, getBusinessKnowledgeModelAdapterFactory, getCalcProcDetailsAdapterFactory, getCalcProcVersionDetailsAdapterFactory, getDecisionMatrixDetailsAdapterFactory, getDecisionTableDetailsAdapterFactory, getExplainabilityLogsAdapterFactory, getExpressionSetAliasMetaInfoAdapterFactory, getMessageTemplateDetailAdapterFactory, getProcessTypeAdapterFactory, getSimulationInputVariablesAdapterFactory, getUsageTypesAdapterFactory, postCalcProcVersionDetailsAdapterFactory, postInvokeExpressionSetAdapterFactory, searchCalculationProcedureAdapterFactory, searchDecisionMatrixByNameAdapterFactory, searchDecisionTableByNameAdapterFactory, searchMessageTemplatesAdapterFactory, simulateEvaluationServiceAdapterFactory, updateAliasFieldAdapterFactory };
9281
+ 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 };