@salesforce/lds-adapters-industries-decisiontable 1.280.0 → 1.282.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/industries-decisiontable.js +602 -25
- package/dist/es/es2018/types/src/generated/adapters/getDecisionTableTemplate.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getDecisionTableTemplateList.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectBusinessRulesDecisionTableTemplates.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectBusinessRulesDecisionTableTemplatesByTemplateName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableTemplateDefinitionOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableTemplateOutputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/DecisionTableTemplatesListOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ErrorOutputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/ErrorParametersOutputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/ErrorTargetsOutputRepresentation.d.ts +32 -0
- package/package.json +3 -3
- package/sfdc/index.js +631 -27
- package/src/raml/api.raml +129 -0
- package/src/raml/luvio.raml +26 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -89,7 +89,7 @@ function createLink(ref) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
function validate$
|
|
92
|
+
function validate$9(obj, path = 'DecisionTableParameterOutputRepresentation') {
|
|
93
93
|
const v_error = (() => {
|
|
94
94
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
95
95
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -189,7 +189,7 @@ function validate$3(obj, path = 'DecisionTableParameterOutputRepresentation') {
|
|
|
189
189
|
return v_error === undefined ? null : v_error;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
function validate$
|
|
192
|
+
function validate$8(obj, path = 'DecisionTableSourceCriteriaOutputRepresentation') {
|
|
193
193
|
const v_error = (() => {
|
|
194
194
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
195
195
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -233,7 +233,7 @@ function validate$2(obj, path = 'DecisionTableSourceCriteriaOutputRepresentation
|
|
|
233
233
|
return v_error === undefined ? null : v_error;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
function validate$
|
|
236
|
+
function validate$7(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
|
|
237
237
|
const v_error = (() => {
|
|
238
238
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
239
239
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -295,7 +295,7 @@ function validate$1(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
|
|
|
295
295
|
for (let i = 0; i < obj_parameters.length; i++) {
|
|
296
296
|
const obj_parameters_item = obj_parameters[i];
|
|
297
297
|
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
298
|
-
const referencepath_parameters_itemValidationError = validate$
|
|
298
|
+
const referencepath_parameters_itemValidationError = validate$9(obj_parameters_item, path_parameters_item);
|
|
299
299
|
if (referencepath_parameters_itemValidationError !== null) {
|
|
300
300
|
let message = 'Object doesn\'t match DecisionTableParameterOutputRepresentation (at "' + path_parameters_item + '")\n';
|
|
301
301
|
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -317,7 +317,7 @@ function validate$1(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
|
|
|
317
317
|
for (let i = 0; i < obj_sourceCriteria.length; i++) {
|
|
318
318
|
const obj_sourceCriteria_item = obj_sourceCriteria[i];
|
|
319
319
|
const path_sourceCriteria_item = path_sourceCriteria + '[' + i + ']';
|
|
320
|
-
const referencepath_sourceCriteria_itemValidationError = validate$
|
|
320
|
+
const referencepath_sourceCriteria_itemValidationError = validate$8(obj_sourceCriteria_item, path_sourceCriteria_item);
|
|
321
321
|
if (referencepath_sourceCriteria_itemValidationError !== null) {
|
|
322
322
|
let message = 'Object doesn\'t match DecisionTableSourceCriteriaOutputRepresentation (at "' + path_sourceCriteria_item + '")\n';
|
|
323
323
|
message += referencepath_sourceCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -363,9 +363,9 @@ function validate$1(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
|
|
|
363
363
|
return v_error === undefined ? null : v_error;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
const TTL = 1000;
|
|
367
|
-
const VERSION = "21435364536c593ed8b8972af7d154d5";
|
|
368
|
-
function validate(obj, path = 'DecisionTableOutputRepresentation') {
|
|
366
|
+
const TTL$2 = 1000;
|
|
367
|
+
const VERSION$2 = "21435364536c593ed8b8972af7d154d5";
|
|
368
|
+
function validate$6(obj, path = 'DecisionTableOutputRepresentation') {
|
|
369
369
|
const v_error = (() => {
|
|
370
370
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
371
371
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -379,7 +379,7 @@ function validate(obj, path = 'DecisionTableOutputRepresentation') {
|
|
|
379
379
|
}
|
|
380
380
|
const obj_decisionTable = obj.decisionTable;
|
|
381
381
|
const path_decisionTable = path + '.decisionTable';
|
|
382
|
-
const referencepath_decisionTableValidationError = validate$
|
|
382
|
+
const referencepath_decisionTableValidationError = validate$7(obj_decisionTable, path_decisionTable);
|
|
383
383
|
if (referencepath_decisionTableValidationError !== null) {
|
|
384
384
|
let message = 'Object doesn\'t match DecisionTableDefinitionOutputRepresentation (at "' + path_decisionTable + '")\n';
|
|
385
385
|
message += referencepath_decisionTableValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -402,11 +402,588 @@ function validate(obj, path = 'DecisionTableOutputRepresentation') {
|
|
|
402
402
|
})();
|
|
403
403
|
return v_error === undefined ? null : v_error;
|
|
404
404
|
}
|
|
405
|
-
const RepresentationType = 'DecisionTableOutputRepresentation';
|
|
405
|
+
const RepresentationType$2 = 'DecisionTableOutputRepresentation';
|
|
406
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
407
|
+
return input;
|
|
408
|
+
}
|
|
409
|
+
const select$5 = function DecisionTableOutputRepresentationSelect() {
|
|
410
|
+
return {
|
|
411
|
+
kind: 'Fragment',
|
|
412
|
+
version: VERSION$2,
|
|
413
|
+
private: [],
|
|
414
|
+
opaque: true
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
function equals$2(existing, incoming) {
|
|
418
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
419
|
+
return false;
|
|
420
|
+
}
|
|
421
|
+
return true;
|
|
422
|
+
}
|
|
423
|
+
const ingest$2 = function DecisionTableOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
424
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
425
|
+
const validateError = validate$6(input);
|
|
426
|
+
if (validateError !== null) {
|
|
427
|
+
throw validateError;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
const key = path.fullPath;
|
|
431
|
+
const ttlToUse = TTL$2;
|
|
432
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "DecisionTable", VERSION$2, RepresentationType$2, equals$2);
|
|
433
|
+
return createLink(key);
|
|
434
|
+
};
|
|
435
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
436
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
437
|
+
const rootKey = fullPathFactory();
|
|
438
|
+
rootKeySet.set(rootKey, {
|
|
439
|
+
namespace: keyPrefix,
|
|
440
|
+
representationName: RepresentationType$2,
|
|
441
|
+
mergeable: false
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
function select$4(luvio, params) {
|
|
446
|
+
return select$5();
|
|
447
|
+
}
|
|
448
|
+
function keyBuilder$5(luvio, params) {
|
|
449
|
+
return keyPrefix + '::DecisionTableOutputRepresentation:(' + 'decisionTableId:' + params.urlParams.decisionTableId + ')';
|
|
450
|
+
}
|
|
451
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
452
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
453
|
+
}
|
|
454
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
455
|
+
const { body } = response;
|
|
456
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
457
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
458
|
+
const snapshot = luvio.storeLookup({
|
|
459
|
+
recordId: key,
|
|
460
|
+
node: select$4(),
|
|
461
|
+
variables: {},
|
|
462
|
+
}, snapshotRefresh);
|
|
463
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
464
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
465
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
deepFreeze(snapshot.data);
|
|
469
|
+
return snapshot;
|
|
470
|
+
}
|
|
471
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
472
|
+
const key = keyBuilder$5(luvio, params);
|
|
473
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
474
|
+
const storeMetadataParams = {
|
|
475
|
+
ttl: TTL$2,
|
|
476
|
+
namespace: keyPrefix,
|
|
477
|
+
version: VERSION$2,
|
|
478
|
+
representationName: RepresentationType$2
|
|
479
|
+
};
|
|
480
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
481
|
+
return errorSnapshot;
|
|
482
|
+
}
|
|
483
|
+
function createResourceRequest$2(config) {
|
|
484
|
+
const headers = {};
|
|
485
|
+
return {
|
|
486
|
+
baseUri: '/services/data/v61.0',
|
|
487
|
+
basePath: '/connect/business-rules/decision-table/definitions/' + config.urlParams.decisionTableId + '',
|
|
488
|
+
method: 'get',
|
|
489
|
+
body: null,
|
|
490
|
+
urlParams: config.urlParams,
|
|
491
|
+
queryParams: {},
|
|
492
|
+
headers,
|
|
493
|
+
priority: 'normal',
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
const adapterName$2 = 'getDecisionTable';
|
|
498
|
+
const getDecisionTable_ConfigPropertyMetadata = [
|
|
499
|
+
generateParamConfigMetadata('decisionTableId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
500
|
+
];
|
|
501
|
+
const getDecisionTable_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDecisionTable_ConfigPropertyMetadata);
|
|
502
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getDecisionTable_ConfigPropertyMetadata);
|
|
503
|
+
function keyBuilder$4(luvio, config) {
|
|
504
|
+
const resourceParams = createResourceParams$2(config);
|
|
505
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
506
|
+
}
|
|
507
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
508
|
+
const config = {};
|
|
509
|
+
typeCheckConfig$3(untrustedConfig, config, getDecisionTable_ConfigPropertyMetadata);
|
|
510
|
+
return config;
|
|
511
|
+
}
|
|
512
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
513
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
514
|
+
return null;
|
|
515
|
+
}
|
|
516
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
517
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
518
|
+
}
|
|
519
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
520
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
521
|
+
return null;
|
|
522
|
+
}
|
|
523
|
+
return config;
|
|
524
|
+
}
|
|
525
|
+
function adapterFragment$2(luvio, config) {
|
|
526
|
+
createResourceParams$2(config);
|
|
527
|
+
return select$4();
|
|
528
|
+
}
|
|
529
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
530
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
531
|
+
config,
|
|
532
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
533
|
+
});
|
|
534
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
535
|
+
}
|
|
536
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
537
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
538
|
+
config,
|
|
539
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
540
|
+
});
|
|
541
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
542
|
+
}
|
|
543
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
544
|
+
const resourceParams = createResourceParams$2(config);
|
|
545
|
+
const request = createResourceRequest$2(resourceParams);
|
|
546
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
547
|
+
.then((response) => {
|
|
548
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
549
|
+
const cache = new StoreKeyMap();
|
|
550
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
551
|
+
return cache;
|
|
552
|
+
});
|
|
553
|
+
}, (response) => {
|
|
554
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
558
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
559
|
+
}
|
|
560
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
561
|
+
const { luvio, config } = context;
|
|
562
|
+
const selector = {
|
|
563
|
+
recordId: keyBuilder$4(luvio, config),
|
|
564
|
+
node: adapterFragment$2(luvio, config),
|
|
565
|
+
variables: {},
|
|
566
|
+
};
|
|
567
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
568
|
+
config,
|
|
569
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
570
|
+
});
|
|
571
|
+
return cacheSnapshot;
|
|
572
|
+
}
|
|
573
|
+
const getDecisionTableAdapterFactory = (luvio) => function DecisionTable__getDecisionTable(untrustedConfig, requestContext) {
|
|
574
|
+
const config = validateAdapterConfig$2(untrustedConfig, getDecisionTable_ConfigPropertyNames);
|
|
575
|
+
// Invalid or incomplete config
|
|
576
|
+
if (config === null) {
|
|
577
|
+
return null;
|
|
578
|
+
}
|
|
579
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
580
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
function validate$5(obj, path = 'DecisionTableTemplateOutputRepresentation') {
|
|
584
|
+
const v_error = (() => {
|
|
585
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
586
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
587
|
+
}
|
|
588
|
+
if (obj.location !== undefined) {
|
|
589
|
+
const obj_location = obj.location;
|
|
590
|
+
const path_location = path + '.location';
|
|
591
|
+
if (typeof obj_location !== 'string') {
|
|
592
|
+
return new TypeError('Expected "string" but received "' + typeof obj_location + '" (at "' + path_location + '")');
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
if (obj.templateName !== undefined) {
|
|
596
|
+
const obj_templateName = obj.templateName;
|
|
597
|
+
const path_templateName = path + '.templateName';
|
|
598
|
+
if (typeof obj_templateName !== 'string') {
|
|
599
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateName + '" (at "' + path_templateName + '")');
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
if (obj.usageType !== undefined) {
|
|
603
|
+
const obj_usageType = obj.usageType;
|
|
604
|
+
const path_usageType = path + '.usageType';
|
|
605
|
+
if (typeof obj_usageType !== 'string') {
|
|
606
|
+
return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
})();
|
|
610
|
+
return v_error === undefined ? null : v_error;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
function validate$4(obj, path = 'ErrorParametersOutputRepresentation') {
|
|
614
|
+
const v_error = (() => {
|
|
615
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
616
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
617
|
+
}
|
|
618
|
+
if (obj.name !== undefined) {
|
|
619
|
+
const obj_name = obj.name;
|
|
620
|
+
const path_name = path + '.name';
|
|
621
|
+
if (typeof obj_name !== 'string') {
|
|
622
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
if (obj.value !== undefined) {
|
|
626
|
+
const obj_value = obj.value;
|
|
627
|
+
const path_value = path + '.value';
|
|
628
|
+
if (typeof obj_value !== 'string') {
|
|
629
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
})();
|
|
633
|
+
return v_error === undefined ? null : v_error;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
function validate$3(obj, path = 'ErrorTargetsOutputRepresentation') {
|
|
637
|
+
const v_error = (() => {
|
|
638
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
639
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
640
|
+
}
|
|
641
|
+
if (obj.reference !== undefined) {
|
|
642
|
+
const obj_reference = obj.reference;
|
|
643
|
+
const path_reference = path + '.reference';
|
|
644
|
+
if (typeof obj_reference !== 'string') {
|
|
645
|
+
return new TypeError('Expected "string" but received "' + typeof obj_reference + '" (at "' + path_reference + '")');
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
if (obj.type !== undefined) {
|
|
649
|
+
const obj_type = obj.type;
|
|
650
|
+
const path_type = path + '.type';
|
|
651
|
+
if (typeof obj_type !== 'string') {
|
|
652
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
})();
|
|
656
|
+
return v_error === undefined ? null : v_error;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
function validate$2(obj, path = 'ErrorOutputRepresentation') {
|
|
660
|
+
const v_error = (() => {
|
|
661
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
662
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
663
|
+
}
|
|
664
|
+
if (obj.errorCode !== undefined) {
|
|
665
|
+
const obj_errorCode = obj.errorCode;
|
|
666
|
+
const path_errorCode = path + '.errorCode';
|
|
667
|
+
if (typeof obj_errorCode !== 'string') {
|
|
668
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
if (obj.message !== undefined) {
|
|
672
|
+
const obj_message = obj.message;
|
|
673
|
+
const path_message = path + '.message';
|
|
674
|
+
if (typeof obj_message !== 'string') {
|
|
675
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
if (obj.messageCode !== undefined) {
|
|
679
|
+
const obj_messageCode = obj.messageCode;
|
|
680
|
+
const path_messageCode = path + '.messageCode';
|
|
681
|
+
if (typeof obj_messageCode !== 'string') {
|
|
682
|
+
return new TypeError('Expected "string" but received "' + typeof obj_messageCode + '" (at "' + path_messageCode + '")');
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
if (obj.parameters !== undefined) {
|
|
686
|
+
const obj_parameters = obj.parameters;
|
|
687
|
+
const path_parameters = path + '.parameters';
|
|
688
|
+
if (!ArrayIsArray(obj_parameters)) {
|
|
689
|
+
return new TypeError('Expected "array" but received "' + typeof obj_parameters + '" (at "' + path_parameters + '")');
|
|
690
|
+
}
|
|
691
|
+
for (let i = 0; i < obj_parameters.length; i++) {
|
|
692
|
+
const obj_parameters_item = obj_parameters[i];
|
|
693
|
+
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
694
|
+
const referencepath_parameters_itemValidationError = validate$4(obj_parameters_item, path_parameters_item);
|
|
695
|
+
if (referencepath_parameters_itemValidationError !== null) {
|
|
696
|
+
let message = 'Object doesn\'t match ErrorParametersOutputRepresentation (at "' + path_parameters_item + '")\n';
|
|
697
|
+
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
698
|
+
return new TypeError(message);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
if (obj.targets !== undefined) {
|
|
703
|
+
const obj_targets = obj.targets;
|
|
704
|
+
const path_targets = path + '.targets';
|
|
705
|
+
if (!ArrayIsArray(obj_targets)) {
|
|
706
|
+
return new TypeError('Expected "array" but received "' + typeof obj_targets + '" (at "' + path_targets + '")');
|
|
707
|
+
}
|
|
708
|
+
for (let i = 0; i < obj_targets.length; i++) {
|
|
709
|
+
const obj_targets_item = obj_targets[i];
|
|
710
|
+
const path_targets_item = path_targets + '[' + i + ']';
|
|
711
|
+
const referencepath_targets_itemValidationError = validate$3(obj_targets_item, path_targets_item);
|
|
712
|
+
if (referencepath_targets_itemValidationError !== null) {
|
|
713
|
+
let message = 'Object doesn\'t match ErrorTargetsOutputRepresentation (at "' + path_targets_item + '")\n';
|
|
714
|
+
message += referencepath_targets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
715
|
+
return new TypeError(message);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
})();
|
|
720
|
+
return v_error === undefined ? null : v_error;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
const TTL$1 = 1000;
|
|
724
|
+
const VERSION$1 = "a2891bd122ab9f728d5937bf70b9f600";
|
|
725
|
+
function validate$1(obj, path = 'DecisionTableTemplatesListOutputRepresentation') {
|
|
726
|
+
const v_error = (() => {
|
|
727
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
728
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
729
|
+
}
|
|
730
|
+
if (obj.decisionTableTemplates !== undefined) {
|
|
731
|
+
const obj_decisionTableTemplates = obj.decisionTableTemplates;
|
|
732
|
+
const path_decisionTableTemplates = path + '.decisionTableTemplates';
|
|
733
|
+
if (!ArrayIsArray(obj_decisionTableTemplates)) {
|
|
734
|
+
return new TypeError('Expected "array" but received "' + typeof obj_decisionTableTemplates + '" (at "' + path_decisionTableTemplates + '")');
|
|
735
|
+
}
|
|
736
|
+
for (let i = 0; i < obj_decisionTableTemplates.length; i++) {
|
|
737
|
+
const obj_decisionTableTemplates_item = obj_decisionTableTemplates[i];
|
|
738
|
+
const path_decisionTableTemplates_item = path_decisionTableTemplates + '[' + i + ']';
|
|
739
|
+
const referencepath_decisionTableTemplates_itemValidationError = validate$5(obj_decisionTableTemplates_item, path_decisionTableTemplates_item);
|
|
740
|
+
if (referencepath_decisionTableTemplates_itemValidationError !== null) {
|
|
741
|
+
let message = 'Object doesn\'t match DecisionTableTemplateOutputRepresentation (at "' + path_decisionTableTemplates_item + '")\n';
|
|
742
|
+
message += referencepath_decisionTableTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
743
|
+
return new TypeError(message);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
if (obj.errors !== undefined) {
|
|
748
|
+
const obj_errors = obj.errors;
|
|
749
|
+
const path_errors = path + '.errors';
|
|
750
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
751
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
752
|
+
}
|
|
753
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
754
|
+
const obj_errors_item = obj_errors[i];
|
|
755
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
756
|
+
const referencepath_errors_itemValidationError = validate$2(obj_errors_item, path_errors_item);
|
|
757
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
758
|
+
let message = 'Object doesn\'t match ErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
759
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
760
|
+
return new TypeError(message);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
})();
|
|
765
|
+
return v_error === undefined ? null : v_error;
|
|
766
|
+
}
|
|
767
|
+
const RepresentationType$1 = 'DecisionTableTemplatesListOutputRepresentation';
|
|
768
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
769
|
+
return input;
|
|
770
|
+
}
|
|
771
|
+
const select$3 = function DecisionTableTemplatesListOutputRepresentationSelect() {
|
|
772
|
+
return {
|
|
773
|
+
kind: 'Fragment',
|
|
774
|
+
version: VERSION$1,
|
|
775
|
+
private: [],
|
|
776
|
+
opaque: true
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
function equals$1(existing, incoming) {
|
|
780
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
781
|
+
return false;
|
|
782
|
+
}
|
|
783
|
+
return true;
|
|
784
|
+
}
|
|
785
|
+
const ingest$1 = function DecisionTableTemplatesListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
786
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
787
|
+
const validateError = validate$1(input);
|
|
788
|
+
if (validateError !== null) {
|
|
789
|
+
throw validateError;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
const key = path.fullPath;
|
|
793
|
+
const ttlToUse = TTL$1;
|
|
794
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "DecisionTable", VERSION$1, RepresentationType$1, equals$1);
|
|
795
|
+
return createLink(key);
|
|
796
|
+
};
|
|
797
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
798
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
799
|
+
const rootKey = fullPathFactory();
|
|
800
|
+
rootKeySet.set(rootKey, {
|
|
801
|
+
namespace: keyPrefix,
|
|
802
|
+
representationName: RepresentationType$1,
|
|
803
|
+
mergeable: false
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
function select$2(luvio, params) {
|
|
808
|
+
return select$3();
|
|
809
|
+
}
|
|
810
|
+
function keyBuilder$3(luvio, params) {
|
|
811
|
+
return keyPrefix + '::DecisionTableTemplatesListOutputRepresentation:(' + 'usageType:' + params.queryParams.usageType + ')';
|
|
812
|
+
}
|
|
813
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
814
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
815
|
+
}
|
|
816
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
817
|
+
const { body } = response;
|
|
818
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
819
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
820
|
+
const snapshot = luvio.storeLookup({
|
|
821
|
+
recordId: key,
|
|
822
|
+
node: select$2(),
|
|
823
|
+
variables: {},
|
|
824
|
+
}, snapshotRefresh);
|
|
825
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
826
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
827
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
deepFreeze(snapshot.data);
|
|
831
|
+
return snapshot;
|
|
832
|
+
}
|
|
833
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
834
|
+
const key = keyBuilder$3(luvio, params);
|
|
835
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
836
|
+
const storeMetadataParams = {
|
|
837
|
+
ttl: TTL$1,
|
|
838
|
+
namespace: keyPrefix,
|
|
839
|
+
version: VERSION$1,
|
|
840
|
+
representationName: RepresentationType$1
|
|
841
|
+
};
|
|
842
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
843
|
+
return errorSnapshot;
|
|
844
|
+
}
|
|
845
|
+
function createResourceRequest$1(config) {
|
|
846
|
+
const headers = {};
|
|
847
|
+
return {
|
|
848
|
+
baseUri: '/services/data/v61.0',
|
|
849
|
+
basePath: '/connect/business-rules/decision-table/templates',
|
|
850
|
+
method: 'get',
|
|
851
|
+
body: null,
|
|
852
|
+
urlParams: {},
|
|
853
|
+
queryParams: config.queryParams,
|
|
854
|
+
headers,
|
|
855
|
+
priority: 'normal',
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
const adapterName$1 = 'getDecisionTableTemplate';
|
|
860
|
+
const getDecisionTableTemplate_ConfigPropertyMetadata = [
|
|
861
|
+
generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
862
|
+
];
|
|
863
|
+
const getDecisionTableTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDecisionTableTemplate_ConfigPropertyMetadata);
|
|
864
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getDecisionTableTemplate_ConfigPropertyMetadata);
|
|
865
|
+
function keyBuilder$2(luvio, config) {
|
|
866
|
+
const resourceParams = createResourceParams$1(config);
|
|
867
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
868
|
+
}
|
|
869
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
870
|
+
const config = {};
|
|
871
|
+
typeCheckConfig$3(untrustedConfig, config, getDecisionTableTemplate_ConfigPropertyMetadata);
|
|
872
|
+
return config;
|
|
873
|
+
}
|
|
874
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
875
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
876
|
+
return null;
|
|
877
|
+
}
|
|
878
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
879
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
880
|
+
}
|
|
881
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
882
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
883
|
+
return null;
|
|
884
|
+
}
|
|
885
|
+
return config;
|
|
886
|
+
}
|
|
887
|
+
function adapterFragment$1(luvio, config) {
|
|
888
|
+
createResourceParams$1(config);
|
|
889
|
+
return select$2();
|
|
890
|
+
}
|
|
891
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
892
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
893
|
+
config,
|
|
894
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
895
|
+
});
|
|
896
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
897
|
+
}
|
|
898
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
899
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
900
|
+
config,
|
|
901
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
902
|
+
});
|
|
903
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
904
|
+
}
|
|
905
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
906
|
+
const resourceParams = createResourceParams$1(config);
|
|
907
|
+
const request = createResourceRequest$1(resourceParams);
|
|
908
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
909
|
+
.then((response) => {
|
|
910
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
911
|
+
const cache = new StoreKeyMap();
|
|
912
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
913
|
+
return cache;
|
|
914
|
+
});
|
|
915
|
+
}, (response) => {
|
|
916
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
920
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
921
|
+
}
|
|
922
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
923
|
+
const { luvio, config } = context;
|
|
924
|
+
const selector = {
|
|
925
|
+
recordId: keyBuilder$2(luvio, config),
|
|
926
|
+
node: adapterFragment$1(luvio, config),
|
|
927
|
+
variables: {},
|
|
928
|
+
};
|
|
929
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
930
|
+
config,
|
|
931
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
932
|
+
});
|
|
933
|
+
return cacheSnapshot;
|
|
934
|
+
}
|
|
935
|
+
const getDecisionTableTemplateAdapterFactory = (luvio) => function DecisionTable__getDecisionTableTemplate(untrustedConfig, requestContext) {
|
|
936
|
+
const config = validateAdapterConfig$1(untrustedConfig, getDecisionTableTemplate_ConfigPropertyNames);
|
|
937
|
+
// Invalid or incomplete config
|
|
938
|
+
if (config === null) {
|
|
939
|
+
return null;
|
|
940
|
+
}
|
|
941
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
942
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
const TTL = 1000;
|
|
946
|
+
const VERSION = "9a106f486843ccdb3e85594fb33ef97f";
|
|
947
|
+
function validate(obj, path = 'DecisionTableTemplateDefinitionOutputRepresentation') {
|
|
948
|
+
const v_error = (() => {
|
|
949
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
950
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
951
|
+
}
|
|
952
|
+
if (obj.decisionTableTemplate !== undefined) {
|
|
953
|
+
const obj_decisionTableTemplate = obj.decisionTableTemplate;
|
|
954
|
+
const path_decisionTableTemplate = path + '.decisionTableTemplate';
|
|
955
|
+
const referencepath_decisionTableTemplateValidationError = validate$7(obj_decisionTableTemplate, path_decisionTableTemplate);
|
|
956
|
+
if (referencepath_decisionTableTemplateValidationError !== null) {
|
|
957
|
+
let message = 'Object doesn\'t match DecisionTableDefinitionOutputRepresentation (at "' + path_decisionTableTemplate + '")\n';
|
|
958
|
+
message += referencepath_decisionTableTemplateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
959
|
+
return new TypeError(message);
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
if (obj.errors !== undefined) {
|
|
963
|
+
const obj_errors = obj.errors;
|
|
964
|
+
const path_errors = path + '.errors';
|
|
965
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
966
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
967
|
+
}
|
|
968
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
969
|
+
const obj_errors_item = obj_errors[i];
|
|
970
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
971
|
+
const referencepath_errors_itemValidationError = validate$2(obj_errors_item, path_errors_item);
|
|
972
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
973
|
+
let message = 'Object doesn\'t match ErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
974
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
975
|
+
return new TypeError(message);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
})();
|
|
980
|
+
return v_error === undefined ? null : v_error;
|
|
981
|
+
}
|
|
982
|
+
const RepresentationType = 'DecisionTableTemplateDefinitionOutputRepresentation';
|
|
406
983
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
407
984
|
return input;
|
|
408
985
|
}
|
|
409
|
-
const select$1 = function
|
|
986
|
+
const select$1 = function DecisionTableTemplateDefinitionOutputRepresentationSelect() {
|
|
410
987
|
return {
|
|
411
988
|
kind: 'Fragment',
|
|
412
989
|
version: VERSION,
|
|
@@ -420,7 +997,7 @@ function equals(existing, incoming) {
|
|
|
420
997
|
}
|
|
421
998
|
return true;
|
|
422
999
|
}
|
|
423
|
-
const ingest = function
|
|
1000
|
+
const ingest = function DecisionTableTemplateDefinitionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
424
1001
|
if (process.env.NODE_ENV !== 'production') {
|
|
425
1002
|
const validateError = validate(input);
|
|
426
1003
|
if (validateError !== null) {
|
|
@@ -446,7 +1023,7 @@ function select(luvio, params) {
|
|
|
446
1023
|
return select$1();
|
|
447
1024
|
}
|
|
448
1025
|
function keyBuilder$1(luvio, params) {
|
|
449
|
-
return keyPrefix + '::
|
|
1026
|
+
return keyPrefix + '::DecisionTableTemplateDefinitionOutputRepresentation:(' + 'templateName:' + params.urlParams.templateName + ')';
|
|
450
1027
|
}
|
|
451
1028
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
452
1029
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -484,7 +1061,7 @@ function createResourceRequest(config) {
|
|
|
484
1061
|
const headers = {};
|
|
485
1062
|
return {
|
|
486
1063
|
baseUri: '/services/data/v61.0',
|
|
487
|
-
basePath: '/connect/business-rules/decision-table/
|
|
1064
|
+
basePath: '/connect/business-rules/decision-table/templates/' + config.urlParams.templateName + '',
|
|
488
1065
|
method: 'get',
|
|
489
1066
|
body: null,
|
|
490
1067
|
urlParams: config.urlParams,
|
|
@@ -494,19 +1071,19 @@ function createResourceRequest(config) {
|
|
|
494
1071
|
};
|
|
495
1072
|
}
|
|
496
1073
|
|
|
497
|
-
const adapterName = '
|
|
498
|
-
const
|
|
499
|
-
generateParamConfigMetadata('
|
|
1074
|
+
const adapterName = 'getDecisionTableTemplateList';
|
|
1075
|
+
const getDecisionTableTemplateList_ConfigPropertyMetadata = [
|
|
1076
|
+
generateParamConfigMetadata('templateName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
500
1077
|
];
|
|
501
|
-
const
|
|
502
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1078
|
+
const getDecisionTableTemplateList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDecisionTableTemplateList_ConfigPropertyMetadata);
|
|
1079
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(getDecisionTableTemplateList_ConfigPropertyMetadata);
|
|
503
1080
|
function keyBuilder(luvio, config) {
|
|
504
1081
|
const resourceParams = createResourceParams(config);
|
|
505
1082
|
return keyBuilder$1(luvio, resourceParams);
|
|
506
1083
|
}
|
|
507
1084
|
function typeCheckConfig(untrustedConfig) {
|
|
508
1085
|
const config = {};
|
|
509
|
-
typeCheckConfig$
|
|
1086
|
+
typeCheckConfig$3(untrustedConfig, config, getDecisionTableTemplateList_ConfigPropertyMetadata);
|
|
510
1087
|
return config;
|
|
511
1088
|
}
|
|
512
1089
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -555,7 +1132,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
555
1132
|
});
|
|
556
1133
|
}
|
|
557
1134
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
558
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1135
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
559
1136
|
}
|
|
560
1137
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
561
1138
|
const { luvio, config } = context;
|
|
@@ -570,8 +1147,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
570
1147
|
});
|
|
571
1148
|
return cacheSnapshot;
|
|
572
1149
|
}
|
|
573
|
-
const
|
|
574
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
1150
|
+
const getDecisionTableTemplateListAdapterFactory = (luvio) => function DecisionTable__getDecisionTableTemplateList(untrustedConfig, requestContext) {
|
|
1151
|
+
const config = validateAdapterConfig(untrustedConfig, getDecisionTableTemplateList_ConfigPropertyNames);
|
|
575
1152
|
// Invalid or incomplete config
|
|
576
1153
|
if (config === null) {
|
|
577
1154
|
return null;
|
|
@@ -581,28 +1158,55 @@ const getDecisionTableAdapterFactory = (luvio) => function DecisionTable__getDec
|
|
|
581
1158
|
};
|
|
582
1159
|
|
|
583
1160
|
let getDecisionTable;
|
|
1161
|
+
let getDecisionTableTemplate;
|
|
1162
|
+
let getDecisionTableTemplateList;
|
|
584
1163
|
// Imperative GET Adapters
|
|
585
1164
|
let getDecisionTable_imperative;
|
|
1165
|
+
let getDecisionTableTemplate_imperative;
|
|
1166
|
+
let getDecisionTableTemplateList_imperative;
|
|
586
1167
|
// Adapter Metadata
|
|
587
1168
|
const getDecisionTableMetadata = {
|
|
588
1169
|
apiFamily: 'DecisionTable',
|
|
589
1170
|
name: 'getDecisionTable',
|
|
590
1171
|
ttl: 1000,
|
|
591
1172
|
};
|
|
1173
|
+
const getDecisionTableTemplateMetadata = {
|
|
1174
|
+
apiFamily: 'DecisionTable',
|
|
1175
|
+
name: 'getDecisionTableTemplate',
|
|
1176
|
+
ttl: 1000,
|
|
1177
|
+
};
|
|
1178
|
+
const getDecisionTableTemplateListMetadata = {
|
|
1179
|
+
apiFamily: 'DecisionTable',
|
|
1180
|
+
name: 'getDecisionTableTemplateList',
|
|
1181
|
+
ttl: 1000,
|
|
1182
|
+
};
|
|
592
1183
|
// Notify Update Available
|
|
593
1184
|
function bindExportsTo(luvio) {
|
|
594
1185
|
// LDS Adapters
|
|
595
1186
|
const getDecisionTable_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDecisionTable', getDecisionTableAdapterFactory), getDecisionTableMetadata);
|
|
1187
|
+
const getDecisionTableTemplate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDecisionTableTemplate', getDecisionTableTemplateAdapterFactory), getDecisionTableTemplateMetadata);
|
|
1188
|
+
const getDecisionTableTemplateList_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDecisionTableTemplateList', getDecisionTableTemplateListAdapterFactory), getDecisionTableTemplateListMetadata);
|
|
596
1189
|
return {
|
|
597
1190
|
getDecisionTable: createWireAdapterConstructor(luvio, getDecisionTable_ldsAdapter, getDecisionTableMetadata),
|
|
1191
|
+
getDecisionTableTemplate: createWireAdapterConstructor(luvio, getDecisionTableTemplate_ldsAdapter, getDecisionTableTemplateMetadata),
|
|
1192
|
+
getDecisionTableTemplateList: createWireAdapterConstructor(luvio, getDecisionTableTemplateList_ldsAdapter, getDecisionTableTemplateListMetadata),
|
|
598
1193
|
// Imperative GET Adapters
|
|
599
1194
|
getDecisionTable_imperative: createImperativeAdapter(luvio, getDecisionTable_ldsAdapter, getDecisionTableMetadata),
|
|
1195
|
+
getDecisionTableTemplate_imperative: createImperativeAdapter(luvio, getDecisionTableTemplate_ldsAdapter, getDecisionTableTemplateMetadata),
|
|
1196
|
+
getDecisionTableTemplateList_imperative: createImperativeAdapter(luvio, getDecisionTableTemplateList_ldsAdapter, getDecisionTableTemplateListMetadata),
|
|
600
1197
|
// Notify Update Availables
|
|
601
1198
|
};
|
|
602
1199
|
}
|
|
603
1200
|
withDefaultLuvio((luvio) => {
|
|
604
|
-
({
|
|
1201
|
+
({
|
|
1202
|
+
getDecisionTable,
|
|
1203
|
+
getDecisionTableTemplate,
|
|
1204
|
+
getDecisionTableTemplateList,
|
|
1205
|
+
getDecisionTable_imperative,
|
|
1206
|
+
getDecisionTableTemplate_imperative,
|
|
1207
|
+
getDecisionTableTemplateList_imperative,
|
|
1208
|
+
} = bindExportsTo(luvio));
|
|
605
1209
|
});
|
|
606
1210
|
|
|
607
|
-
export { getDecisionTable, getDecisionTable_imperative };
|
|
608
|
-
// version: 1.
|
|
1211
|
+
export { getDecisionTable, getDecisionTableTemplate, getDecisionTableTemplateList, getDecisionTableTemplateList_imperative, getDecisionTableTemplate_imperative, getDecisionTable_imperative };
|
|
1212
|
+
// version: 1.282.0-dd2e9831c
|