@salesforce/lds-adapters-cdp-byoc 1.354.0-dev2 → 1.354.0-dev20
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/cdp-byoc.js +1039 -209
- package/dist/es/es2018/types/src/generated/adapters/createCustomCodeDeployment.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getCustomCodeDeployments.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/adapters/getCustomCodeExecution.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getCustomCodeExecutionLogs.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getCustomCodeExecutions.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/updateCustomCodeDeployment.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/resources/getSsotDataCustomCode.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotDataCustomCodeExecutionsByCustomCodeExecutionIdAndCustomCodeNameOrId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotDataCustomCodeExecutionsByCustomCodeNameOrId.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotDataCustomCodeExecutionsLogsByCustomCodeExecutionIdAndCustomCodeNameOrId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/patchSsotDataCustomCodeByCustomCodeNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDataCustomCode.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/CustomCodeDeploymentInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/CustomCodeDeploymentRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/CustomCodeExecutionBaseRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/CustomCodeExecutionCollectionRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/CustomCodeExecutionLogRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/CustomCodePatchInputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +1108 -251
- package/src/raml/api.raml +167 -2
- package/src/raml/luvio.raml +14 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$8, typeCheckConfig as typeCheckConfig$8, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -73,6 +73,7 @@ const keyPrefix = 'byoc';
|
|
|
73
73
|
|
|
74
74
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
75
75
|
const { isArray: ArrayIsArray } = Array;
|
|
76
|
+
const { stringify: JSONStringify } = JSON;
|
|
76
77
|
function equalsArray(a, b, equalsItem) {
|
|
77
78
|
const aLength = a.length;
|
|
78
79
|
const bLength = b.length;
|
|
@@ -111,8 +112,8 @@ function createLink(ref) {
|
|
|
111
112
|
};
|
|
112
113
|
}
|
|
113
114
|
|
|
114
|
-
const VERSION$
|
|
115
|
-
function validate$
|
|
115
|
+
const VERSION$5 = "2fe1bfd9fd1c6a94767d2ea000d6d318";
|
|
116
|
+
function validate$5(obj, path = 'CdpUserRepresentation') {
|
|
116
117
|
const v_error = (() => {
|
|
117
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
118
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -135,10 +136,10 @@ function validate$2(obj, path = 'CdpUserRepresentation') {
|
|
|
135
136
|
})();
|
|
136
137
|
return v_error === undefined ? null : v_error;
|
|
137
138
|
}
|
|
138
|
-
const select$
|
|
139
|
+
const select$c = function CdpUserRepresentationSelect() {
|
|
139
140
|
return {
|
|
140
141
|
kind: 'Fragment',
|
|
141
|
-
version: VERSION$
|
|
142
|
+
version: VERSION$5,
|
|
142
143
|
private: [],
|
|
143
144
|
selections: [
|
|
144
145
|
{
|
|
@@ -156,7 +157,7 @@ const select$6 = function CdpUserRepresentationSelect() {
|
|
|
156
157
|
]
|
|
157
158
|
};
|
|
158
159
|
};
|
|
159
|
-
function equals$
|
|
160
|
+
function equals$5(existing, incoming) {
|
|
160
161
|
const existing_id = existing.id;
|
|
161
162
|
const incoming_id = incoming.id;
|
|
162
163
|
if (!(existing_id === incoming_id)) {
|
|
@@ -175,8 +176,8 @@ function equals$2(existing, incoming) {
|
|
|
175
176
|
return true;
|
|
176
177
|
}
|
|
177
178
|
|
|
178
|
-
const VERSION$
|
|
179
|
-
function validate$
|
|
179
|
+
const VERSION$4 = "3a8185ac626c1463f8bf0540517ef2e2";
|
|
180
|
+
function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
180
181
|
const v_error = (() => {
|
|
181
182
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
182
183
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -193,7 +194,7 @@ function validate$1(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
193
194
|
}
|
|
194
195
|
const obj_createdBy = obj.createdBy;
|
|
195
196
|
const path_createdBy = path + '.createdBy';
|
|
196
|
-
const referencepath_createdByValidationError = validate$
|
|
197
|
+
const referencepath_createdByValidationError = validate$5(obj_createdBy, path_createdBy);
|
|
197
198
|
if (referencepath_createdByValidationError !== null) {
|
|
198
199
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
|
|
199
200
|
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -261,7 +262,7 @@ function validate$1(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
261
262
|
}
|
|
262
263
|
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
263
264
|
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
264
|
-
const referencepath_lastModifiedByValidationError = validate$
|
|
265
|
+
const referencepath_lastModifiedByValidationError = validate$5(obj_lastModifiedBy, path_lastModifiedBy);
|
|
265
266
|
if (referencepath_lastModifiedByValidationError !== null) {
|
|
266
267
|
let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
267
268
|
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -294,8 +295,8 @@ function validate$1(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
294
295
|
const key = obj_parameters_keys[i];
|
|
295
296
|
const obj_parameters_prop = obj_parameters[key];
|
|
296
297
|
const path_parameters_prop = path_parameters + '["' + key + '"]';
|
|
297
|
-
if (
|
|
298
|
-
return new TypeError('Expected "
|
|
298
|
+
if (obj_parameters_prop === undefined) {
|
|
299
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_parameters_prop + '" (at "' + path_parameters_prop + '")');
|
|
299
300
|
}
|
|
300
301
|
}
|
|
301
302
|
const obj_status = obj.status;
|
|
@@ -316,24 +317,24 @@ function validate$1(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
316
317
|
})();
|
|
317
318
|
return v_error === undefined ? null : v_error;
|
|
318
319
|
}
|
|
319
|
-
const RepresentationType$
|
|
320
|
-
function keyBuilder$
|
|
321
|
-
return keyPrefix + '::' + RepresentationType$
|
|
320
|
+
const RepresentationType$4 = 'CustomCodeDeploymentRepresentation';
|
|
321
|
+
function keyBuilder$b(luvio, config) {
|
|
322
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
322
323
|
}
|
|
323
324
|
function keyBuilderFromType(luvio, object) {
|
|
324
325
|
const keyParams = {
|
|
325
326
|
id: object.id
|
|
326
327
|
};
|
|
327
|
-
return keyBuilder$
|
|
328
|
+
return keyBuilder$b(luvio, keyParams);
|
|
328
329
|
}
|
|
329
|
-
function normalize$
|
|
330
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
330
331
|
return input;
|
|
331
332
|
}
|
|
332
|
-
const select$
|
|
333
|
-
const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$
|
|
333
|
+
const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
334
|
+
const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$c();
|
|
334
335
|
return {
|
|
335
336
|
kind: 'Fragment',
|
|
336
|
-
version: VERSION$
|
|
337
|
+
version: VERSION$4,
|
|
337
338
|
private: [],
|
|
338
339
|
selections: [
|
|
339
340
|
{
|
|
@@ -410,8 +411,8 @@ const select$5 = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
410
411
|
},
|
|
411
412
|
{
|
|
412
413
|
name: 'parameters',
|
|
413
|
-
kind: '
|
|
414
|
-
|
|
414
|
+
kind: 'Object',
|
|
415
|
+
// any
|
|
415
416
|
},
|
|
416
417
|
{
|
|
417
418
|
name: 'status',
|
|
@@ -428,7 +429,7 @@ const select$5 = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
428
429
|
]
|
|
429
430
|
};
|
|
430
431
|
};
|
|
431
|
-
function equals$
|
|
432
|
+
function equals$4(existing, incoming) {
|
|
432
433
|
const existing_deploymentFailureCode = existing.deploymentFailureCode;
|
|
433
434
|
const incoming_deploymentFailureCode = incoming.deploymentFailureCode;
|
|
434
435
|
// if at least one of these optionals is defined
|
|
@@ -543,7 +544,7 @@ function equals$1(existing, incoming) {
|
|
|
543
544
|
}
|
|
544
545
|
const existing_createdBy = existing.createdBy;
|
|
545
546
|
const incoming_createdBy = incoming.createdBy;
|
|
546
|
-
if (!(equals$
|
|
547
|
+
if (!(equals$5(existing_createdBy, incoming_createdBy))) {
|
|
547
548
|
return false;
|
|
548
549
|
}
|
|
549
550
|
const existing_functionInvokeOptions = existing.functionInvokeOptions;
|
|
@@ -566,13 +567,13 @@ function equals$1(existing, incoming) {
|
|
|
566
567
|
}
|
|
567
568
|
const existing_lastModifiedBy = existing.lastModifiedBy;
|
|
568
569
|
const incoming_lastModifiedBy = incoming.lastModifiedBy;
|
|
569
|
-
if (!(equals$
|
|
570
|
+
if (!(equals$5(existing_lastModifiedBy, incoming_lastModifiedBy))) {
|
|
570
571
|
return false;
|
|
571
572
|
}
|
|
572
573
|
const existing_parameters = existing.parameters;
|
|
573
574
|
const incoming_parameters = incoming.parameters;
|
|
574
575
|
const equals_parameters_props = equalsObject(existing_parameters, incoming_parameters, (existing_parameters_prop, incoming_parameters_prop) => {
|
|
575
|
-
if (
|
|
576
|
+
if (JSONStringify(incoming_parameters_prop) !== JSONStringify(existing_parameters_prop)) {
|
|
576
577
|
return false;
|
|
577
578
|
}
|
|
578
579
|
});
|
|
@@ -581,41 +582,41 @@ function equals$1(existing, incoming) {
|
|
|
581
582
|
}
|
|
582
583
|
return true;
|
|
583
584
|
}
|
|
584
|
-
const ingest$
|
|
585
|
+
const ingest$4 = function CustomCodeDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
585
586
|
if (process.env.NODE_ENV !== 'production') {
|
|
586
|
-
const validateError = validate$
|
|
587
|
+
const validateError = validate$4(input);
|
|
587
588
|
if (validateError !== null) {
|
|
588
589
|
throw validateError;
|
|
589
590
|
}
|
|
590
591
|
}
|
|
591
592
|
const key = keyBuilderFromType(luvio, input);
|
|
592
593
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
593
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
594
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "byoc", VERSION$4, RepresentationType$4, equals$4);
|
|
594
595
|
return createLink(key);
|
|
595
596
|
};
|
|
596
|
-
function getTypeCacheKeys$
|
|
597
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
597
598
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
598
599
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
599
600
|
rootKeySet.set(rootKey, {
|
|
600
601
|
namespace: keyPrefix,
|
|
601
|
-
representationName: RepresentationType$
|
|
602
|
+
representationName: RepresentationType$4,
|
|
602
603
|
mergeable: false
|
|
603
604
|
});
|
|
604
605
|
}
|
|
605
606
|
|
|
606
|
-
function select$
|
|
607
|
-
return select$
|
|
607
|
+
function select$a(luvio, params) {
|
|
608
|
+
return select$b();
|
|
608
609
|
}
|
|
609
|
-
function getResponseCacheKeys$
|
|
610
|
-
getTypeCacheKeys$
|
|
610
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
611
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
611
612
|
}
|
|
612
|
-
function ingestSuccess$
|
|
613
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
613
614
|
const { body } = response;
|
|
614
615
|
const key = keyBuilderFromType(luvio, body);
|
|
615
|
-
luvio.storeIngest(key, ingest$
|
|
616
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
616
617
|
const snapshot = luvio.storeLookup({
|
|
617
618
|
recordId: key,
|
|
618
|
-
node: select$
|
|
619
|
+
node: select$a(),
|
|
619
620
|
variables: {},
|
|
620
621
|
});
|
|
621
622
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -626,10 +627,10 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
626
627
|
deepFreeze(snapshot.data);
|
|
627
628
|
return snapshot;
|
|
628
629
|
}
|
|
629
|
-
function createResourceRequest$
|
|
630
|
+
function createResourceRequest$7(config) {
|
|
630
631
|
const headers = {};
|
|
631
632
|
return {
|
|
632
|
-
baseUri: '/services/data/
|
|
633
|
+
baseUri: '/services/data/v64.0',
|
|
633
634
|
basePath: '/ssot/data-custom-code',
|
|
634
635
|
method: 'post',
|
|
635
636
|
body: config.body,
|
|
@@ -640,9 +641,10 @@ function createResourceRequest$4(config) {
|
|
|
640
641
|
};
|
|
641
642
|
}
|
|
642
643
|
|
|
643
|
-
const adapterName$
|
|
644
|
+
const adapterName$7 = 'createCustomCodeDeployment';
|
|
644
645
|
const createCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
645
646
|
generateParamConfigMetadata('codeType', false, 2 /* Body */, 0 /* String */),
|
|
647
|
+
generateParamConfigMetadata('functionInvokeOptions', false, 2 /* Body */, 0 /* String */, true),
|
|
646
648
|
generateParamConfigMetadata('computeType', true, 2 /* Body */, 0 /* String */),
|
|
647
649
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
648
650
|
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
@@ -652,11 +654,11 @@ const createCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
|
652
654
|
generateParamConfigMetadata('parameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
653
655
|
generateParamConfigMetadata('version', true, 2 /* Body */, 0 /* String */),
|
|
654
656
|
];
|
|
655
|
-
const createCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
656
|
-
const createResourceParams$
|
|
657
|
-
function typeCheckConfig$
|
|
657
|
+
const createCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createCustomCodeDeployment_ConfigPropertyMetadata);
|
|
658
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(createCustomCodeDeployment_ConfigPropertyMetadata);
|
|
659
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
658
660
|
const config = {};
|
|
659
|
-
typeCheckConfig$
|
|
661
|
+
typeCheckConfig$8(untrustedConfig, config, createCustomCodeDeployment_ConfigPropertyMetadata);
|
|
660
662
|
const untrustedConfig_parameters = untrustedConfig.parameters;
|
|
661
663
|
if (untrustedIsObject(untrustedConfig_parameters)) {
|
|
662
664
|
const untrustedConfig_parameters_object = {};
|
|
@@ -676,30 +678,30 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
676
678
|
}
|
|
677
679
|
return config;
|
|
678
680
|
}
|
|
679
|
-
function validateAdapterConfig$
|
|
681
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
680
682
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
681
683
|
return null;
|
|
682
684
|
}
|
|
683
685
|
if (process.env.NODE_ENV !== 'production') {
|
|
684
686
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
685
687
|
}
|
|
686
|
-
const config = typeCheckConfig$
|
|
688
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
687
689
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
688
690
|
return null;
|
|
689
691
|
}
|
|
690
692
|
return config;
|
|
691
693
|
}
|
|
692
|
-
function buildNetworkSnapshot$
|
|
693
|
-
const resourceParams = createResourceParams$
|
|
694
|
-
const request = createResourceRequest$
|
|
694
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
695
|
+
const resourceParams = createResourceParams$7(config);
|
|
696
|
+
const request = createResourceRequest$7(resourceParams);
|
|
695
697
|
return luvio.dispatchResourceRequest(request, options)
|
|
696
698
|
.then((response) => {
|
|
697
699
|
return luvio.handleSuccessResponse(() => {
|
|
698
|
-
const snapshot = ingestSuccess$
|
|
700
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
699
701
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
700
702
|
}, () => {
|
|
701
703
|
const cache = new StoreKeyMap();
|
|
702
|
-
getResponseCacheKeys$
|
|
704
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
703
705
|
return cache;
|
|
704
706
|
});
|
|
705
707
|
}, (response) => {
|
|
@@ -709,17 +711,17 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
709
711
|
}
|
|
710
712
|
const createCustomCodeDeploymentAdapterFactory = (luvio) => {
|
|
711
713
|
return function createCustomCodeDeployment(untrustedConfig) {
|
|
712
|
-
const config = validateAdapterConfig$
|
|
714
|
+
const config = validateAdapterConfig$7(untrustedConfig, createCustomCodeDeployment_ConfigPropertyNames);
|
|
713
715
|
// Invalid or incomplete config
|
|
714
716
|
if (config === null) {
|
|
715
717
|
throw new Error('Invalid config for "createCustomCodeDeployment"');
|
|
716
718
|
}
|
|
717
|
-
return buildNetworkSnapshot$
|
|
719
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
718
720
|
};
|
|
719
721
|
};
|
|
720
722
|
|
|
721
|
-
const VERSION = "3d9a814ca87df7e7c79c5d385c146820";
|
|
722
|
-
function validate(obj, path = 'CustomCodeDeploymentCollectionRepresentation') {
|
|
723
|
+
const VERSION$3 = "3d9a814ca87df7e7c79c5d385c146820";
|
|
724
|
+
function validate$3(obj, path = 'CustomCodeDeploymentCollectionRepresentation') {
|
|
723
725
|
const v_error = (() => {
|
|
724
726
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
725
727
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -756,14 +758,14 @@ function validate(obj, path = 'CustomCodeDeploymentCollectionRepresentation') {
|
|
|
756
758
|
})();
|
|
757
759
|
return v_error === undefined ? null : v_error;
|
|
758
760
|
}
|
|
759
|
-
const RepresentationType = 'CustomCodeDeploymentCollectionRepresentation';
|
|
760
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
761
|
+
const RepresentationType$3 = 'CustomCodeDeploymentCollectionRepresentation';
|
|
762
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
761
763
|
const input_customCodeDeployments = input.customCodeDeployments;
|
|
762
764
|
const input_customCodeDeployments_id = path.fullPath + '__customCodeDeployments';
|
|
763
765
|
for (let i = 0; i < input_customCodeDeployments.length; i++) {
|
|
764
766
|
const input_customCodeDeployments_item = input_customCodeDeployments[i];
|
|
765
767
|
let input_customCodeDeployments_item_id = input_customCodeDeployments_id + '__' + i;
|
|
766
|
-
input_customCodeDeployments[i] = ingest$
|
|
768
|
+
input_customCodeDeployments[i] = ingest$4(input_customCodeDeployments_item, {
|
|
767
769
|
fullPath: input_customCodeDeployments_item_id,
|
|
768
770
|
propertyName: i,
|
|
769
771
|
parent: {
|
|
@@ -776,10 +778,10 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
776
778
|
}
|
|
777
779
|
return input;
|
|
778
780
|
}
|
|
779
|
-
const select$
|
|
781
|
+
const select$9 = function CustomCodeDeploymentCollectionRepresentationSelect() {
|
|
780
782
|
return {
|
|
781
783
|
kind: 'Fragment',
|
|
782
|
-
version: VERSION,
|
|
784
|
+
version: VERSION$3,
|
|
783
785
|
private: [],
|
|
784
786
|
selections: [
|
|
785
787
|
{
|
|
@@ -790,7 +792,7 @@ const select$3 = function CustomCodeDeploymentCollectionRepresentationSelect() {
|
|
|
790
792
|
name: 'customCodeDeployments',
|
|
791
793
|
kind: 'Link',
|
|
792
794
|
plural: true,
|
|
793
|
-
fragment: select$
|
|
795
|
+
fragment: select$b()
|
|
794
796
|
},
|
|
795
797
|
{
|
|
796
798
|
name: 'nextPageUrl',
|
|
@@ -804,7 +806,7 @@ const select$3 = function CustomCodeDeploymentCollectionRepresentationSelect() {
|
|
|
804
806
|
]
|
|
805
807
|
};
|
|
806
808
|
};
|
|
807
|
-
function equals(existing, incoming) {
|
|
809
|
+
function equals$3(existing, incoming) {
|
|
808
810
|
const existing_totalSize = existing.totalSize;
|
|
809
811
|
const incoming_totalSize = incoming.totalSize;
|
|
810
812
|
if (!(existing_totalSize === incoming_totalSize)) {
|
|
@@ -840,48 +842,48 @@ function equals(existing, incoming) {
|
|
|
840
842
|
}
|
|
841
843
|
return true;
|
|
842
844
|
}
|
|
843
|
-
const ingest = function CustomCodeDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
845
|
+
const ingest$3 = function CustomCodeDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
844
846
|
if (process.env.NODE_ENV !== 'production') {
|
|
845
|
-
const validateError = validate(input);
|
|
847
|
+
const validateError = validate$3(input);
|
|
846
848
|
if (validateError !== null) {
|
|
847
849
|
throw validateError;
|
|
848
850
|
}
|
|
849
851
|
}
|
|
850
852
|
const key = path.fullPath;
|
|
851
853
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
852
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "byoc", VERSION, RepresentationType, equals);
|
|
854
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "byoc", VERSION$3, RepresentationType$3, equals$3);
|
|
853
855
|
return createLink(key);
|
|
854
856
|
};
|
|
855
|
-
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
857
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
856
858
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
857
859
|
const rootKey = fullPathFactory();
|
|
858
860
|
rootKeySet.set(rootKey, {
|
|
859
861
|
namespace: keyPrefix,
|
|
860
|
-
representationName: RepresentationType,
|
|
862
|
+
representationName: RepresentationType$3,
|
|
861
863
|
mergeable: false
|
|
862
864
|
});
|
|
863
865
|
const input_customCodeDeployments_length = input.customCodeDeployments.length;
|
|
864
866
|
for (let i = 0; i < input_customCodeDeployments_length; i++) {
|
|
865
|
-
getTypeCacheKeys$
|
|
867
|
+
getTypeCacheKeys$4(rootKeySet, luvio, input.customCodeDeployments[i]);
|
|
866
868
|
}
|
|
867
869
|
}
|
|
868
870
|
|
|
869
|
-
function select$
|
|
870
|
-
return select$
|
|
871
|
+
function select$8(luvio, params) {
|
|
872
|
+
return select$9();
|
|
871
873
|
}
|
|
872
|
-
function keyBuilder$
|
|
873
|
-
return keyPrefix + '::CustomCodeDeploymentCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
|
|
874
|
+
function keyBuilder$a(luvio, params) {
|
|
875
|
+
return keyPrefix + '::CustomCodeDeploymentCollectionRepresentation:(' + 'codeType:' + params.queryParams.codeType + ',' + 'deploymentStatus:' + params.queryParams.deploymentStatus + ',' + 'label:' + params.queryParams.label + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
|
|
874
876
|
}
|
|
875
|
-
function getResponseCacheKeys$
|
|
876
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$
|
|
877
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
878
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
877
879
|
}
|
|
878
|
-
function ingestSuccess$
|
|
880
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
879
881
|
const { body } = response;
|
|
880
|
-
const key = keyBuilder$
|
|
881
|
-
luvio.storeIngest(key, ingest, body);
|
|
882
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
883
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
882
884
|
const snapshot = luvio.storeLookup({
|
|
883
885
|
recordId: key,
|
|
884
|
-
node: select$
|
|
886
|
+
node: select$8(),
|
|
885
887
|
variables: {},
|
|
886
888
|
}, snapshotRefresh);
|
|
887
889
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -892,16 +894,16 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
892
894
|
deepFreeze(snapshot.data);
|
|
893
895
|
return snapshot;
|
|
894
896
|
}
|
|
895
|
-
function ingestError$
|
|
896
|
-
const key = keyBuilder$
|
|
897
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
898
|
+
const key = keyBuilder$a(luvio, params);
|
|
897
899
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
898
900
|
luvio.storeIngestError(key, errorSnapshot);
|
|
899
901
|
return errorSnapshot;
|
|
900
902
|
}
|
|
901
|
-
function createResourceRequest$
|
|
903
|
+
function createResourceRequest$6(config) {
|
|
902
904
|
const headers = {};
|
|
903
905
|
return {
|
|
904
|
-
baseUri: '/services/data/
|
|
906
|
+
baseUri: '/services/data/v64.0',
|
|
905
907
|
basePath: '/ssot/data-custom-code',
|
|
906
908
|
method: 'get',
|
|
907
909
|
body: null,
|
|
@@ -912,115 +914,118 @@ function createResourceRequest$3(config) {
|
|
|
912
914
|
};
|
|
913
915
|
}
|
|
914
916
|
|
|
915
|
-
const adapterName$
|
|
917
|
+
const adapterName$6 = 'getCustomCodeDeployments';
|
|
916
918
|
const getCustomCodeDeployments_ConfigPropertyMetadata = [
|
|
919
|
+
generateParamConfigMetadata('codeType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
920
|
+
generateParamConfigMetadata('deploymentStatus', false, 1 /* QueryParameter */, 0 /* String */),
|
|
921
|
+
generateParamConfigMetadata('label', false, 1 /* QueryParameter */, 0 /* String */),
|
|
917
922
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
918
923
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
919
924
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
920
925
|
];
|
|
921
|
-
const getCustomCodeDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
922
|
-
const createResourceParams$
|
|
923
|
-
function keyBuilder$
|
|
924
|
-
const resourceParams = createResourceParams$
|
|
925
|
-
return keyBuilder$
|
|
926
|
+
const getCustomCodeDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getCustomCodeDeployments_ConfigPropertyMetadata);
|
|
927
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(getCustomCodeDeployments_ConfigPropertyMetadata);
|
|
928
|
+
function keyBuilder$9(luvio, config) {
|
|
929
|
+
const resourceParams = createResourceParams$6(config);
|
|
930
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
926
931
|
}
|
|
927
|
-
function typeCheckConfig$
|
|
932
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
928
933
|
const config = {};
|
|
929
|
-
typeCheckConfig$
|
|
934
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeDeployments_ConfigPropertyMetadata);
|
|
930
935
|
return config;
|
|
931
936
|
}
|
|
932
|
-
function validateAdapterConfig$
|
|
937
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
933
938
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
934
939
|
return null;
|
|
935
940
|
}
|
|
936
941
|
if (process.env.NODE_ENV !== 'production') {
|
|
937
942
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
938
943
|
}
|
|
939
|
-
const config = typeCheckConfig$
|
|
944
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
940
945
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
941
946
|
return null;
|
|
942
947
|
}
|
|
943
948
|
return config;
|
|
944
949
|
}
|
|
945
|
-
function adapterFragment$
|
|
946
|
-
createResourceParams$
|
|
947
|
-
return select$
|
|
950
|
+
function adapterFragment$4(luvio, config) {
|
|
951
|
+
createResourceParams$6(config);
|
|
952
|
+
return select$8();
|
|
948
953
|
}
|
|
949
|
-
function onFetchResponseSuccess$
|
|
950
|
-
const snapshot = ingestSuccess$
|
|
954
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
955
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
951
956
|
config,
|
|
952
|
-
resolve: () => buildNetworkSnapshot$
|
|
957
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
953
958
|
});
|
|
954
959
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
955
960
|
}
|
|
956
|
-
function onFetchResponseError$
|
|
957
|
-
const snapshot = ingestError$
|
|
961
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
962
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
958
963
|
config,
|
|
959
|
-
resolve: () => buildNetworkSnapshot$
|
|
964
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
960
965
|
});
|
|
961
966
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
962
967
|
}
|
|
963
|
-
function buildNetworkSnapshot$
|
|
964
|
-
const resourceParams = createResourceParams$
|
|
965
|
-
const request = createResourceRequest$
|
|
968
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
969
|
+
const resourceParams = createResourceParams$6(config);
|
|
970
|
+
const request = createResourceRequest$6(resourceParams);
|
|
966
971
|
return luvio.dispatchResourceRequest(request, options)
|
|
967
972
|
.then((response) => {
|
|
968
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
973
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
969
974
|
const cache = new StoreKeyMap();
|
|
970
|
-
getResponseCacheKeys$
|
|
975
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
971
976
|
return cache;
|
|
972
977
|
});
|
|
973
978
|
}, (response) => {
|
|
974
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
979
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
975
980
|
});
|
|
976
981
|
}
|
|
977
|
-
function buildNetworkSnapshotCachePolicy$
|
|
978
|
-
return buildNetworkSnapshotCachePolicy$
|
|
982
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
983
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
979
984
|
}
|
|
980
|
-
function buildCachedSnapshotCachePolicy$
|
|
985
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
981
986
|
const { luvio, config } = context;
|
|
982
987
|
const selector = {
|
|
983
|
-
recordId: keyBuilder$
|
|
984
|
-
node: adapterFragment$
|
|
988
|
+
recordId: keyBuilder$9(luvio, config),
|
|
989
|
+
node: adapterFragment$4(luvio, config),
|
|
985
990
|
variables: {},
|
|
986
991
|
};
|
|
987
992
|
const cacheSnapshot = storeLookup(selector, {
|
|
988
993
|
config,
|
|
989
|
-
resolve: () => buildNetworkSnapshot$
|
|
994
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
990
995
|
});
|
|
991
996
|
return cacheSnapshot;
|
|
992
997
|
}
|
|
993
998
|
const getCustomCodeDeploymentsAdapterFactory = (luvio) => function byoc__getCustomCodeDeployments(untrustedConfig, requestContext) {
|
|
994
|
-
const config = validateAdapterConfig$
|
|
999
|
+
const config = validateAdapterConfig$6(untrustedConfig, getCustomCodeDeployments_ConfigPropertyNames);
|
|
995
1000
|
// Invalid or incomplete config
|
|
996
1001
|
if (config === null) {
|
|
997
1002
|
return null;
|
|
998
1003
|
}
|
|
999
1004
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1000
|
-
buildCachedSnapshotCachePolicy$
|
|
1005
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
1001
1006
|
};
|
|
1002
1007
|
|
|
1003
|
-
function keyBuilder$
|
|
1004
|
-
return keyBuilder$
|
|
1008
|
+
function keyBuilder$8(luvio, params) {
|
|
1009
|
+
return keyBuilder$b(luvio, {
|
|
1005
1010
|
id: params.urlParams.customCodeNameOrId
|
|
1006
1011
|
});
|
|
1007
1012
|
}
|
|
1008
|
-
function getResponseCacheKeys$
|
|
1009
|
-
const key = keyBuilder$
|
|
1013
|
+
function getResponseCacheKeys$5(cacheKeyMap, luvio, resourceParams) {
|
|
1014
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
1010
1015
|
cacheKeyMap.set(key, {
|
|
1011
1016
|
namespace: keyPrefix,
|
|
1012
|
-
representationName: RepresentationType$
|
|
1017
|
+
representationName: RepresentationType$4,
|
|
1013
1018
|
mergeable: false
|
|
1014
1019
|
});
|
|
1015
1020
|
}
|
|
1016
1021
|
function evictSuccess(luvio, resourceParams) {
|
|
1017
|
-
const key = keyBuilder$
|
|
1022
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
1018
1023
|
luvio.storeEvict(key);
|
|
1019
1024
|
}
|
|
1020
|
-
function createResourceRequest$
|
|
1025
|
+
function createResourceRequest$5(config) {
|
|
1021
1026
|
const headers = {};
|
|
1022
1027
|
return {
|
|
1023
|
-
baseUri: '/services/data/
|
|
1028
|
+
baseUri: '/services/data/v64.0',
|
|
1024
1029
|
basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '',
|
|
1025
1030
|
method: 'delete',
|
|
1026
1031
|
body: null,
|
|
@@ -1031,33 +1036,33 @@ function createResourceRequest$2(config) {
|
|
|
1031
1036
|
};
|
|
1032
1037
|
}
|
|
1033
1038
|
|
|
1034
|
-
const adapterName$
|
|
1039
|
+
const adapterName$5 = 'deleteCustomCodeDeployment';
|
|
1035
1040
|
const deleteCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
1036
1041
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1037
1042
|
];
|
|
1038
|
-
const deleteCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1039
|
-
const createResourceParams$
|
|
1040
|
-
function typeCheckConfig$
|
|
1043
|
+
const deleteCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1044
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(deleteCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1045
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
1041
1046
|
const config = {};
|
|
1042
|
-
typeCheckConfig$
|
|
1047
|
+
typeCheckConfig$8(untrustedConfig, config, deleteCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1043
1048
|
return config;
|
|
1044
1049
|
}
|
|
1045
|
-
function validateAdapterConfig$
|
|
1050
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
1046
1051
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1047
1052
|
return null;
|
|
1048
1053
|
}
|
|
1049
1054
|
if (process.env.NODE_ENV !== 'production') {
|
|
1050
1055
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1051
1056
|
}
|
|
1052
|
-
const config = typeCheckConfig$
|
|
1057
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
1053
1058
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1054
1059
|
return null;
|
|
1055
1060
|
}
|
|
1056
1061
|
return config;
|
|
1057
1062
|
}
|
|
1058
|
-
function buildNetworkSnapshot$
|
|
1059
|
-
const resourceParams = createResourceParams$
|
|
1060
|
-
const request = createResourceRequest$
|
|
1063
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
1064
|
+
const resourceParams = createResourceParams$5(config);
|
|
1065
|
+
const request = createResourceRequest$5(resourceParams);
|
|
1061
1066
|
return luvio.dispatchResourceRequest(request, options)
|
|
1062
1067
|
.then(() => {
|
|
1063
1068
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -1065,7 +1070,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1065
1070
|
return luvio.storeBroadcast();
|
|
1066
1071
|
}, () => {
|
|
1067
1072
|
const cache = new StoreKeyMap();
|
|
1068
|
-
getResponseCacheKeys$
|
|
1073
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams);
|
|
1069
1074
|
return cache;
|
|
1070
1075
|
});
|
|
1071
1076
|
}, (response) => {
|
|
@@ -1075,33 +1080,33 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1075
1080
|
}
|
|
1076
1081
|
const deleteCustomCodeDeploymentAdapterFactory = (luvio) => {
|
|
1077
1082
|
return function byocdeleteCustomCodeDeployment(untrustedConfig) {
|
|
1078
|
-
const config = validateAdapterConfig$
|
|
1083
|
+
const config = validateAdapterConfig$5(untrustedConfig, deleteCustomCodeDeployment_ConfigPropertyNames);
|
|
1079
1084
|
// Invalid or incomplete config
|
|
1080
1085
|
if (config === null) {
|
|
1081
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
1086
|
+
throw new Error(`Invalid config for "${adapterName$5}"`);
|
|
1082
1087
|
}
|
|
1083
|
-
return buildNetworkSnapshot$
|
|
1088
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
1084
1089
|
};
|
|
1085
1090
|
};
|
|
1086
1091
|
|
|
1087
|
-
function select$
|
|
1088
|
-
return select$
|
|
1092
|
+
function select$7(luvio, params) {
|
|
1093
|
+
return select$b();
|
|
1089
1094
|
}
|
|
1090
|
-
function keyBuilder$
|
|
1091
|
-
return keyBuilder$
|
|
1095
|
+
function keyBuilder$7(luvio, params) {
|
|
1096
|
+
return keyBuilder$b(luvio, {
|
|
1092
1097
|
id: params.urlParams.customCodeNameOrId
|
|
1093
1098
|
});
|
|
1094
1099
|
}
|
|
1095
|
-
function getResponseCacheKeys$
|
|
1096
|
-
getTypeCacheKeys$
|
|
1100
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1101
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1097
1102
|
}
|
|
1098
|
-
function ingestSuccess$
|
|
1103
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
1099
1104
|
const { body } = response;
|
|
1100
|
-
const key = keyBuilder$
|
|
1101
|
-
luvio.storeIngest(key, ingest$
|
|
1105
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
1106
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1102
1107
|
const snapshot = luvio.storeLookup({
|
|
1103
1108
|
recordId: key,
|
|
1104
|
-
node: select$
|
|
1109
|
+
node: select$7(),
|
|
1105
1110
|
variables: {},
|
|
1106
1111
|
}, snapshotRefresh);
|
|
1107
1112
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1112,16 +1117,16 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1112
1117
|
deepFreeze(snapshot.data);
|
|
1113
1118
|
return snapshot;
|
|
1114
1119
|
}
|
|
1115
|
-
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
1116
|
-
const key = keyBuilder$
|
|
1120
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
1121
|
+
const key = keyBuilder$7(luvio, params);
|
|
1117
1122
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1118
1123
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1119
1124
|
return errorSnapshot;
|
|
1120
1125
|
}
|
|
1121
|
-
function createResourceRequest$
|
|
1126
|
+
function createResourceRequest$4(config) {
|
|
1122
1127
|
const headers = {};
|
|
1123
1128
|
return {
|
|
1124
|
-
baseUri: '/services/data/
|
|
1129
|
+
baseUri: '/services/data/v64.0',
|
|
1125
1130
|
basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '',
|
|
1126
1131
|
method: 'get',
|
|
1127
1132
|
body: null,
|
|
@@ -1132,105 +1137,105 @@ function createResourceRequest$1(config) {
|
|
|
1132
1137
|
};
|
|
1133
1138
|
}
|
|
1134
1139
|
|
|
1135
|
-
const adapterName$
|
|
1140
|
+
const adapterName$4 = 'getCustomCodeDeployment';
|
|
1136
1141
|
const getCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
1137
1142
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1138
1143
|
];
|
|
1139
|
-
const getCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1140
|
-
const createResourceParams$
|
|
1141
|
-
function keyBuilder(luvio, config) {
|
|
1142
|
-
const resourceParams = createResourceParams$
|
|
1143
|
-
return keyBuilder$
|
|
1144
|
+
const getCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1145
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1146
|
+
function keyBuilder$6(luvio, config) {
|
|
1147
|
+
const resourceParams = createResourceParams$4(config);
|
|
1148
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
1144
1149
|
}
|
|
1145
|
-
function typeCheckConfig$
|
|
1150
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1146
1151
|
const config = {};
|
|
1147
|
-
typeCheckConfig$
|
|
1152
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1148
1153
|
return config;
|
|
1149
1154
|
}
|
|
1150
|
-
function validateAdapterConfig$
|
|
1155
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1151
1156
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1152
1157
|
return null;
|
|
1153
1158
|
}
|
|
1154
1159
|
if (process.env.NODE_ENV !== 'production') {
|
|
1155
1160
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1156
1161
|
}
|
|
1157
|
-
const config = typeCheckConfig$
|
|
1162
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1158
1163
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1159
1164
|
return null;
|
|
1160
1165
|
}
|
|
1161
1166
|
return config;
|
|
1162
1167
|
}
|
|
1163
|
-
function adapterFragment(luvio, config) {
|
|
1164
|
-
createResourceParams$
|
|
1165
|
-
return select$
|
|
1168
|
+
function adapterFragment$3(luvio, config) {
|
|
1169
|
+
createResourceParams$4(config);
|
|
1170
|
+
return select$7();
|
|
1166
1171
|
}
|
|
1167
|
-
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
1168
|
-
const snapshot = ingestSuccess$
|
|
1172
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
1173
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
1169
1174
|
config,
|
|
1170
|
-
resolve: () => buildNetworkSnapshot$
|
|
1175
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1171
1176
|
});
|
|
1172
1177
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1173
1178
|
}
|
|
1174
|
-
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
1175
|
-
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
1179
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
1180
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
1176
1181
|
config,
|
|
1177
|
-
resolve: () => buildNetworkSnapshot$
|
|
1182
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1178
1183
|
});
|
|
1179
1184
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1180
1185
|
}
|
|
1181
|
-
function buildNetworkSnapshot$
|
|
1182
|
-
const resourceParams = createResourceParams$
|
|
1183
|
-
const request = createResourceRequest$
|
|
1186
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1187
|
+
const resourceParams = createResourceParams$4(config);
|
|
1188
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1184
1189
|
return luvio.dispatchResourceRequest(request, options)
|
|
1185
1190
|
.then((response) => {
|
|
1186
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
1191
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
1187
1192
|
const cache = new StoreKeyMap();
|
|
1188
|
-
getResponseCacheKeys$
|
|
1193
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1189
1194
|
return cache;
|
|
1190
1195
|
});
|
|
1191
1196
|
}, (response) => {
|
|
1192
|
-
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
1197
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
1193
1198
|
});
|
|
1194
1199
|
}
|
|
1195
|
-
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1196
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1200
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1201
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
1197
1202
|
}
|
|
1198
|
-
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1203
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1199
1204
|
const { luvio, config } = context;
|
|
1200
1205
|
const selector = {
|
|
1201
|
-
recordId: keyBuilder(luvio, config),
|
|
1202
|
-
node: adapterFragment(luvio, config),
|
|
1206
|
+
recordId: keyBuilder$6(luvio, config),
|
|
1207
|
+
node: adapterFragment$3(luvio, config),
|
|
1203
1208
|
variables: {},
|
|
1204
1209
|
};
|
|
1205
1210
|
const cacheSnapshot = storeLookup(selector, {
|
|
1206
1211
|
config,
|
|
1207
|
-
resolve: () => buildNetworkSnapshot$
|
|
1212
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1208
1213
|
});
|
|
1209
1214
|
return cacheSnapshot;
|
|
1210
1215
|
}
|
|
1211
1216
|
const getCustomCodeDeploymentAdapterFactory = (luvio) => function byoc__getCustomCodeDeployment(untrustedConfig, requestContext) {
|
|
1212
|
-
const config = validateAdapterConfig$
|
|
1217
|
+
const config = validateAdapterConfig$4(untrustedConfig, getCustomCodeDeployment_ConfigPropertyNames);
|
|
1213
1218
|
// Invalid or incomplete config
|
|
1214
1219
|
if (config === null) {
|
|
1215
1220
|
return null;
|
|
1216
1221
|
}
|
|
1217
1222
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1218
|
-
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1223
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1219
1224
|
};
|
|
1220
1225
|
|
|
1221
|
-
function select(luvio, params) {
|
|
1222
|
-
return select$
|
|
1226
|
+
function select$6(luvio, params) {
|
|
1227
|
+
return select$b();
|
|
1223
1228
|
}
|
|
1224
|
-
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1225
|
-
getTypeCacheKeys$
|
|
1229
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1230
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1226
1231
|
}
|
|
1227
|
-
function ingestSuccess(luvio, resourceParams, response) {
|
|
1232
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
1228
1233
|
const { body } = response;
|
|
1229
1234
|
const key = keyBuilderFromType(luvio, body);
|
|
1230
|
-
luvio.storeIngest(key, ingest$
|
|
1235
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1231
1236
|
const snapshot = luvio.storeLookup({
|
|
1232
1237
|
recordId: key,
|
|
1233
|
-
node: select(),
|
|
1238
|
+
node: select$6(),
|
|
1234
1239
|
variables: {},
|
|
1235
1240
|
});
|
|
1236
1241
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1241,10 +1246,10 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
1241
1246
|
deepFreeze(snapshot.data);
|
|
1242
1247
|
return snapshot;
|
|
1243
1248
|
}
|
|
1244
|
-
function createResourceRequest(config) {
|
|
1249
|
+
function createResourceRequest$3(config) {
|
|
1245
1250
|
const headers = {};
|
|
1246
1251
|
return {
|
|
1247
|
-
baseUri: '/services/data/
|
|
1252
|
+
baseUri: '/services/data/v64.0',
|
|
1248
1253
|
basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '',
|
|
1249
1254
|
method: 'patch',
|
|
1250
1255
|
body: config.body,
|
|
@@ -1255,45 +1260,46 @@ function createResourceRequest(config) {
|
|
|
1255
1260
|
};
|
|
1256
1261
|
}
|
|
1257
1262
|
|
|
1258
|
-
const adapterName = 'updateCustomCodeDeployment';
|
|
1263
|
+
const adapterName$3 = 'updateCustomCodeDeployment';
|
|
1259
1264
|
const updateCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
1260
1265
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1261
1266
|
generateParamConfigMetadata('computeType', false, 2 /* Body */, 0 /* String */),
|
|
1267
|
+
generateParamConfigMetadata('functionInvokeOptions', false, 2 /* Body */, 0 /* String */, true),
|
|
1262
1268
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
1263
1269
|
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
1264
1270
|
generateParamConfigMetadata('version', false, 2 /* Body */, 0 /* String */),
|
|
1265
1271
|
];
|
|
1266
|
-
const updateCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1267
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1268
|
-
function typeCheckConfig(untrustedConfig) {
|
|
1272
|
+
const updateCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updateCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1273
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(updateCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1274
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
1269
1275
|
const config = {};
|
|
1270
|
-
typeCheckConfig$
|
|
1276
|
+
typeCheckConfig$8(untrustedConfig, config, updateCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1271
1277
|
return config;
|
|
1272
1278
|
}
|
|
1273
|
-
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
1279
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
1274
1280
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1275
1281
|
return null;
|
|
1276
1282
|
}
|
|
1277
1283
|
if (process.env.NODE_ENV !== 'production') {
|
|
1278
1284
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1279
1285
|
}
|
|
1280
|
-
const config = typeCheckConfig(untrustedConfig);
|
|
1286
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
1281
1287
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1282
1288
|
return null;
|
|
1283
1289
|
}
|
|
1284
1290
|
return config;
|
|
1285
1291
|
}
|
|
1286
|
-
function buildNetworkSnapshot(luvio, config, options) {
|
|
1287
|
-
const resourceParams = createResourceParams(config);
|
|
1288
|
-
const request = createResourceRequest(resourceParams);
|
|
1292
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
1293
|
+
const resourceParams = createResourceParams$3(config);
|
|
1294
|
+
const request = createResourceRequest$3(resourceParams);
|
|
1289
1295
|
return luvio.dispatchResourceRequest(request, options)
|
|
1290
1296
|
.then((response) => {
|
|
1291
1297
|
return luvio.handleSuccessResponse(() => {
|
|
1292
|
-
const snapshot = ingestSuccess(luvio, resourceParams, response);
|
|
1298
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
1293
1299
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1294
1300
|
}, () => {
|
|
1295
1301
|
const cache = new StoreKeyMap();
|
|
1296
|
-
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
1302
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
1297
1303
|
return cache;
|
|
1298
1304
|
});
|
|
1299
1305
|
}, (response) => {
|
|
@@ -1303,13 +1309,837 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1303
1309
|
}
|
|
1304
1310
|
const updateCustomCodeDeploymentAdapterFactory = (luvio) => {
|
|
1305
1311
|
return function updateCustomCodeDeployment(untrustedConfig) {
|
|
1306
|
-
const config = validateAdapterConfig(untrustedConfig, updateCustomCodeDeployment_ConfigPropertyNames);
|
|
1312
|
+
const config = validateAdapterConfig$3(untrustedConfig, updateCustomCodeDeployment_ConfigPropertyNames);
|
|
1307
1313
|
// Invalid or incomplete config
|
|
1308
1314
|
if (config === null) {
|
|
1309
1315
|
throw new Error('Invalid config for "updateCustomCodeDeployment"');
|
|
1310
1316
|
}
|
|
1311
|
-
return buildNetworkSnapshot(luvio, config);
|
|
1317
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
1318
|
+
};
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
const VERSION$2 = "16ba4e83f3e94d331bcbdba6f3d301b9";
|
|
1322
|
+
function validate$2(obj, path = 'CustomCodeExecutionBaseRepresentation') {
|
|
1323
|
+
const v_error = (() => {
|
|
1324
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1325
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1326
|
+
}
|
|
1327
|
+
const obj_durationInSeconds = obj.durationInSeconds;
|
|
1328
|
+
const path_durationInSeconds = path + '.durationInSeconds';
|
|
1329
|
+
if (typeof obj_durationInSeconds !== 'number' || (typeof obj_durationInSeconds === 'number' && Math.floor(obj_durationInSeconds) !== obj_durationInSeconds)) {
|
|
1330
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_durationInSeconds + '" (at "' + path_durationInSeconds + '")');
|
|
1331
|
+
}
|
|
1332
|
+
const obj_endTime = obj.endTime;
|
|
1333
|
+
const path_endTime = path + '.endTime';
|
|
1334
|
+
if (typeof obj_endTime !== 'string') {
|
|
1335
|
+
return new TypeError('Expected "string" but received "' + typeof obj_endTime + '" (at "' + path_endTime + '")');
|
|
1336
|
+
}
|
|
1337
|
+
if (obj.errorCode !== undefined) {
|
|
1338
|
+
const obj_errorCode = obj.errorCode;
|
|
1339
|
+
const path_errorCode = path + '.errorCode';
|
|
1340
|
+
if (typeof obj_errorCode !== 'number' || (typeof obj_errorCode === 'number' && Math.floor(obj_errorCode) !== obj_errorCode)) {
|
|
1341
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
if (obj.errorMessage !== undefined) {
|
|
1345
|
+
const obj_errorMessage = obj.errorMessage;
|
|
1346
|
+
const path_errorMessage = path + '.errorMessage';
|
|
1347
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
1348
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
const obj_id = obj.id;
|
|
1352
|
+
const path_id = path + '.id';
|
|
1353
|
+
if (typeof obj_id !== 'string') {
|
|
1354
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1355
|
+
}
|
|
1356
|
+
const obj_rowsRead = obj.rowsRead;
|
|
1357
|
+
const path_rowsRead = path + '.rowsRead';
|
|
1358
|
+
if (typeof obj_rowsRead !== 'number' || (typeof obj_rowsRead === 'number' && Math.floor(obj_rowsRead) !== obj_rowsRead)) {
|
|
1359
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_rowsRead + '" (at "' + path_rowsRead + '")');
|
|
1360
|
+
}
|
|
1361
|
+
const obj_rowsWritten = obj.rowsWritten;
|
|
1362
|
+
const path_rowsWritten = path + '.rowsWritten';
|
|
1363
|
+
if (typeof obj_rowsWritten !== 'number' || (typeof obj_rowsWritten === 'number' && Math.floor(obj_rowsWritten) !== obj_rowsWritten)) {
|
|
1364
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_rowsWritten + '" (at "' + path_rowsWritten + '")');
|
|
1365
|
+
}
|
|
1366
|
+
const obj_startTime = obj.startTime;
|
|
1367
|
+
const path_startTime = path + '.startTime';
|
|
1368
|
+
if (typeof obj_startTime !== 'string') {
|
|
1369
|
+
return new TypeError('Expected "string" but received "' + typeof obj_startTime + '" (at "' + path_startTime + '")');
|
|
1370
|
+
}
|
|
1371
|
+
const obj_status = obj.status;
|
|
1372
|
+
const path_status = path + '.status';
|
|
1373
|
+
if (typeof obj_status !== 'string') {
|
|
1374
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1375
|
+
}
|
|
1376
|
+
const obj_submittedTime = obj.submittedTime;
|
|
1377
|
+
const path_submittedTime = path + '.submittedTime';
|
|
1378
|
+
if (typeof obj_submittedTime !== 'string') {
|
|
1379
|
+
return new TypeError('Expected "string" but received "' + typeof obj_submittedTime + '" (at "' + path_submittedTime + '")');
|
|
1380
|
+
}
|
|
1381
|
+
})();
|
|
1382
|
+
return v_error === undefined ? null : v_error;
|
|
1383
|
+
}
|
|
1384
|
+
const RepresentationType$2 = 'CustomCodeExecutionBaseRepresentation';
|
|
1385
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1386
|
+
return input;
|
|
1387
|
+
}
|
|
1388
|
+
const select$5 = function CustomCodeExecutionBaseRepresentationSelect() {
|
|
1389
|
+
return {
|
|
1390
|
+
kind: 'Fragment',
|
|
1391
|
+
version: VERSION$2,
|
|
1392
|
+
private: [],
|
|
1393
|
+
selections: [
|
|
1394
|
+
{
|
|
1395
|
+
name: 'durationInSeconds',
|
|
1396
|
+
kind: 'Scalar'
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
name: 'endTime',
|
|
1400
|
+
kind: 'Scalar'
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
name: 'errorCode',
|
|
1404
|
+
kind: 'Scalar',
|
|
1405
|
+
required: false
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
name: 'errorMessage',
|
|
1409
|
+
kind: 'Scalar',
|
|
1410
|
+
required: false
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
name: 'id',
|
|
1414
|
+
kind: 'Scalar'
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
name: 'rowsRead',
|
|
1418
|
+
kind: 'Scalar'
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
name: 'rowsWritten',
|
|
1422
|
+
kind: 'Scalar'
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
name: 'startTime',
|
|
1426
|
+
kind: 'Scalar'
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
name: 'status',
|
|
1430
|
+
kind: 'Scalar'
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
name: 'submittedTime',
|
|
1434
|
+
kind: 'Scalar'
|
|
1435
|
+
}
|
|
1436
|
+
]
|
|
1312
1437
|
};
|
|
1313
1438
|
};
|
|
1439
|
+
function equals$2(existing, incoming) {
|
|
1440
|
+
const existing_durationInSeconds = existing.durationInSeconds;
|
|
1441
|
+
const incoming_durationInSeconds = incoming.durationInSeconds;
|
|
1442
|
+
if (!(existing_durationInSeconds === incoming_durationInSeconds)) {
|
|
1443
|
+
return false;
|
|
1444
|
+
}
|
|
1445
|
+
const existing_errorCode = existing.errorCode;
|
|
1446
|
+
const incoming_errorCode = incoming.errorCode;
|
|
1447
|
+
// if at least one of these optionals is defined
|
|
1448
|
+
if (existing_errorCode !== undefined || incoming_errorCode !== undefined) {
|
|
1449
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1450
|
+
// not equal
|
|
1451
|
+
if (existing_errorCode === undefined || incoming_errorCode === undefined) {
|
|
1452
|
+
return false;
|
|
1453
|
+
}
|
|
1454
|
+
if (!(existing_errorCode === incoming_errorCode)) {
|
|
1455
|
+
return false;
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
const existing_rowsRead = existing.rowsRead;
|
|
1459
|
+
const incoming_rowsRead = incoming.rowsRead;
|
|
1460
|
+
if (!(existing_rowsRead === incoming_rowsRead)) {
|
|
1461
|
+
return false;
|
|
1462
|
+
}
|
|
1463
|
+
const existing_rowsWritten = existing.rowsWritten;
|
|
1464
|
+
const incoming_rowsWritten = incoming.rowsWritten;
|
|
1465
|
+
if (!(existing_rowsWritten === incoming_rowsWritten)) {
|
|
1466
|
+
return false;
|
|
1467
|
+
}
|
|
1468
|
+
const existing_endTime = existing.endTime;
|
|
1469
|
+
const incoming_endTime = incoming.endTime;
|
|
1470
|
+
if (!(existing_endTime === incoming_endTime)) {
|
|
1471
|
+
return false;
|
|
1472
|
+
}
|
|
1473
|
+
const existing_errorMessage = existing.errorMessage;
|
|
1474
|
+
const incoming_errorMessage = incoming.errorMessage;
|
|
1475
|
+
// if at least one of these optionals is defined
|
|
1476
|
+
if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
|
|
1477
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1478
|
+
// not equal
|
|
1479
|
+
if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
|
|
1480
|
+
return false;
|
|
1481
|
+
}
|
|
1482
|
+
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
1483
|
+
return false;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
const existing_id = existing.id;
|
|
1487
|
+
const incoming_id = incoming.id;
|
|
1488
|
+
if (!(existing_id === incoming_id)) {
|
|
1489
|
+
return false;
|
|
1490
|
+
}
|
|
1491
|
+
const existing_startTime = existing.startTime;
|
|
1492
|
+
const incoming_startTime = incoming.startTime;
|
|
1493
|
+
if (!(existing_startTime === incoming_startTime)) {
|
|
1494
|
+
return false;
|
|
1495
|
+
}
|
|
1496
|
+
const existing_status = existing.status;
|
|
1497
|
+
const incoming_status = incoming.status;
|
|
1498
|
+
if (!(existing_status === incoming_status)) {
|
|
1499
|
+
return false;
|
|
1500
|
+
}
|
|
1501
|
+
const existing_submittedTime = existing.submittedTime;
|
|
1502
|
+
const incoming_submittedTime = incoming.submittedTime;
|
|
1503
|
+
if (!(existing_submittedTime === incoming_submittedTime)) {
|
|
1504
|
+
return false;
|
|
1505
|
+
}
|
|
1506
|
+
return true;
|
|
1507
|
+
}
|
|
1508
|
+
const ingest$2 = function CustomCodeExecutionBaseRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1509
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1510
|
+
const validateError = validate$2(input);
|
|
1511
|
+
if (validateError !== null) {
|
|
1512
|
+
throw validateError;
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
const key = path.fullPath;
|
|
1516
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1517
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "byoc", VERSION$2, RepresentationType$2, equals$2);
|
|
1518
|
+
return createLink(key);
|
|
1519
|
+
};
|
|
1520
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
1521
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1522
|
+
const rootKey = fullPathFactory();
|
|
1523
|
+
rootKeySet.set(rootKey, {
|
|
1524
|
+
namespace: keyPrefix,
|
|
1525
|
+
representationName: RepresentationType$2,
|
|
1526
|
+
mergeable: false
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
const VERSION$1 = "eff3ca61ebb18d80a094043be3f81c07";
|
|
1531
|
+
function validate$1(obj, path = 'CustomCodeExecutionCollectionRepresentation') {
|
|
1532
|
+
const v_error = (() => {
|
|
1533
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1534
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1535
|
+
}
|
|
1536
|
+
if (obj.currentPageUrl !== undefined) {
|
|
1537
|
+
const obj_currentPageUrl = obj.currentPageUrl;
|
|
1538
|
+
const path_currentPageUrl = path + '.currentPageUrl';
|
|
1539
|
+
if (typeof obj_currentPageUrl !== 'string') {
|
|
1540
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
const obj_executions = obj.executions;
|
|
1544
|
+
const path_executions = path + '.executions';
|
|
1545
|
+
if (!ArrayIsArray(obj_executions)) {
|
|
1546
|
+
return new TypeError('Expected "array" but received "' + typeof obj_executions + '" (at "' + path_executions + '")');
|
|
1547
|
+
}
|
|
1548
|
+
for (let i = 0; i < obj_executions.length; i++) {
|
|
1549
|
+
const obj_executions_item = obj_executions[i];
|
|
1550
|
+
const path_executions_item = path_executions + '[' + i + ']';
|
|
1551
|
+
const referencepath_executions_itemValidationError = validate$2(obj_executions_item, path_executions_item);
|
|
1552
|
+
if (referencepath_executions_itemValidationError !== null) {
|
|
1553
|
+
let message = 'Object doesn\'t match CustomCodeExecutionBaseRepresentation (at "' + path_executions_item + '")\n';
|
|
1554
|
+
message += referencepath_executions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1555
|
+
return new TypeError(message);
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
if (obj.nextPageUrl !== undefined) {
|
|
1559
|
+
const obj_nextPageUrl = obj.nextPageUrl;
|
|
1560
|
+
const path_nextPageUrl = path + '.nextPageUrl';
|
|
1561
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
1562
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
if (obj.totalSize !== undefined) {
|
|
1566
|
+
const obj_totalSize = obj.totalSize;
|
|
1567
|
+
const path_totalSize = path + '.totalSize';
|
|
1568
|
+
if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
|
|
1569
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
})();
|
|
1573
|
+
return v_error === undefined ? null : v_error;
|
|
1574
|
+
}
|
|
1575
|
+
const RepresentationType$1 = 'CustomCodeExecutionCollectionRepresentation';
|
|
1576
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1577
|
+
return input;
|
|
1578
|
+
}
|
|
1579
|
+
const select$4 = function CustomCodeExecutionCollectionRepresentationSelect() {
|
|
1580
|
+
const { selections: CustomCodeExecutionBaseRepresentation__selections, opaque: CustomCodeExecutionBaseRepresentation__opaque, } = select$5();
|
|
1581
|
+
return {
|
|
1582
|
+
kind: 'Fragment',
|
|
1583
|
+
version: VERSION$1,
|
|
1584
|
+
private: [],
|
|
1585
|
+
selections: [
|
|
1586
|
+
{
|
|
1587
|
+
name: 'currentPageUrl',
|
|
1588
|
+
kind: 'Scalar',
|
|
1589
|
+
required: false
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
name: 'executions',
|
|
1593
|
+
kind: 'Object',
|
|
1594
|
+
plural: true,
|
|
1595
|
+
selections: CustomCodeExecutionBaseRepresentation__selections
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
name: 'nextPageUrl',
|
|
1599
|
+
kind: 'Scalar',
|
|
1600
|
+
required: false
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
name: 'totalSize',
|
|
1604
|
+
kind: 'Scalar',
|
|
1605
|
+
required: false
|
|
1606
|
+
}
|
|
1607
|
+
]
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
function equals$1(existing, incoming) {
|
|
1611
|
+
const existing_totalSize = existing.totalSize;
|
|
1612
|
+
const incoming_totalSize = incoming.totalSize;
|
|
1613
|
+
// if at least one of these optionals is defined
|
|
1614
|
+
if (existing_totalSize !== undefined || incoming_totalSize !== undefined) {
|
|
1615
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1616
|
+
// not equal
|
|
1617
|
+
if (existing_totalSize === undefined || incoming_totalSize === undefined) {
|
|
1618
|
+
return false;
|
|
1619
|
+
}
|
|
1620
|
+
if (!(existing_totalSize === incoming_totalSize)) {
|
|
1621
|
+
return false;
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
const existing_currentPageUrl = existing.currentPageUrl;
|
|
1625
|
+
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
1626
|
+
// if at least one of these optionals is defined
|
|
1627
|
+
if (existing_currentPageUrl !== undefined || incoming_currentPageUrl !== undefined) {
|
|
1628
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1629
|
+
// not equal
|
|
1630
|
+
if (existing_currentPageUrl === undefined || incoming_currentPageUrl === undefined) {
|
|
1631
|
+
return false;
|
|
1632
|
+
}
|
|
1633
|
+
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
1634
|
+
return false;
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
const existing_nextPageUrl = existing.nextPageUrl;
|
|
1638
|
+
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
1639
|
+
// if at least one of these optionals is defined
|
|
1640
|
+
if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
|
|
1641
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1642
|
+
// not equal
|
|
1643
|
+
if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
|
|
1644
|
+
return false;
|
|
1645
|
+
}
|
|
1646
|
+
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
1647
|
+
return false;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
const existing_executions = existing.executions;
|
|
1651
|
+
const incoming_executions = incoming.executions;
|
|
1652
|
+
const equals_executions_items = equalsArray(existing_executions, incoming_executions, (existing_executions_item, incoming_executions_item) => {
|
|
1653
|
+
if (!(equals$2(existing_executions_item, incoming_executions_item))) {
|
|
1654
|
+
return false;
|
|
1655
|
+
}
|
|
1656
|
+
});
|
|
1657
|
+
if (equals_executions_items === false) {
|
|
1658
|
+
return false;
|
|
1659
|
+
}
|
|
1660
|
+
return true;
|
|
1661
|
+
}
|
|
1662
|
+
const ingest$1 = function CustomCodeExecutionCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1663
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1664
|
+
const validateError = validate$1(input);
|
|
1665
|
+
if (validateError !== null) {
|
|
1666
|
+
throw validateError;
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
const key = path.fullPath;
|
|
1670
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1671
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "byoc", VERSION$1, RepresentationType$1, equals$1);
|
|
1672
|
+
return createLink(key);
|
|
1673
|
+
};
|
|
1674
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1675
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1676
|
+
const rootKey = fullPathFactory();
|
|
1677
|
+
rootKeySet.set(rootKey, {
|
|
1678
|
+
namespace: keyPrefix,
|
|
1679
|
+
representationName: RepresentationType$1,
|
|
1680
|
+
mergeable: false
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
function select$3(luvio, params) {
|
|
1685
|
+
return select$4();
|
|
1686
|
+
}
|
|
1687
|
+
function keyBuilder$5(luvio, params) {
|
|
1688
|
+
return keyPrefix + '::CustomCodeExecutionCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'customCodeNameOrId:' + params.urlParams.customCodeNameOrId + ')';
|
|
1689
|
+
}
|
|
1690
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1691
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
1692
|
+
}
|
|
1693
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1694
|
+
const { body } = response;
|
|
1695
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
1696
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1697
|
+
const snapshot = luvio.storeLookup({
|
|
1698
|
+
recordId: key,
|
|
1699
|
+
node: select$3(),
|
|
1700
|
+
variables: {},
|
|
1701
|
+
}, snapshotRefresh);
|
|
1702
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1703
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1704
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
deepFreeze(snapshot.data);
|
|
1708
|
+
return snapshot;
|
|
1709
|
+
}
|
|
1710
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1711
|
+
const key = keyBuilder$5(luvio, params);
|
|
1712
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1713
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
1714
|
+
return errorSnapshot;
|
|
1715
|
+
}
|
|
1716
|
+
function createResourceRequest$2(config) {
|
|
1717
|
+
const headers = {};
|
|
1718
|
+
return {
|
|
1719
|
+
baseUri: '/services/data/v64.0',
|
|
1720
|
+
basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '/executions',
|
|
1721
|
+
method: 'get',
|
|
1722
|
+
body: null,
|
|
1723
|
+
urlParams: config.urlParams,
|
|
1724
|
+
queryParams: config.queryParams,
|
|
1725
|
+
headers,
|
|
1726
|
+
priority: 'normal',
|
|
1727
|
+
};
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
const adapterName$2 = 'getCustomCodeExecutions';
|
|
1731
|
+
const getCustomCodeExecutions_ConfigPropertyMetadata = [
|
|
1732
|
+
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1733
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1734
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1735
|
+
];
|
|
1736
|
+
const getCustomCodeExecutions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getCustomCodeExecutions_ConfigPropertyMetadata);
|
|
1737
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(getCustomCodeExecutions_ConfigPropertyMetadata);
|
|
1738
|
+
function keyBuilder$4(luvio, config) {
|
|
1739
|
+
const resourceParams = createResourceParams$2(config);
|
|
1740
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
1741
|
+
}
|
|
1742
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
1743
|
+
const config = {};
|
|
1744
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeExecutions_ConfigPropertyMetadata);
|
|
1745
|
+
return config;
|
|
1746
|
+
}
|
|
1747
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
1748
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1749
|
+
return null;
|
|
1750
|
+
}
|
|
1751
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1752
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1753
|
+
}
|
|
1754
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
1755
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1756
|
+
return null;
|
|
1757
|
+
}
|
|
1758
|
+
return config;
|
|
1759
|
+
}
|
|
1760
|
+
function adapterFragment$2(luvio, config) {
|
|
1761
|
+
createResourceParams$2(config);
|
|
1762
|
+
return select$3();
|
|
1763
|
+
}
|
|
1764
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1765
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
1766
|
+
config,
|
|
1767
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1768
|
+
});
|
|
1769
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1770
|
+
}
|
|
1771
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
1772
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
1773
|
+
config,
|
|
1774
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1775
|
+
});
|
|
1776
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1777
|
+
}
|
|
1778
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
1779
|
+
const resourceParams = createResourceParams$2(config);
|
|
1780
|
+
const request = createResourceRequest$2(resourceParams);
|
|
1781
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1782
|
+
.then((response) => {
|
|
1783
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
1784
|
+
const cache = new StoreKeyMap();
|
|
1785
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1786
|
+
return cache;
|
|
1787
|
+
});
|
|
1788
|
+
}, (response) => {
|
|
1789
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
1790
|
+
});
|
|
1791
|
+
}
|
|
1792
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1793
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
1794
|
+
}
|
|
1795
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1796
|
+
const { luvio, config } = context;
|
|
1797
|
+
const selector = {
|
|
1798
|
+
recordId: keyBuilder$4(luvio, config),
|
|
1799
|
+
node: adapterFragment$2(luvio, config),
|
|
1800
|
+
variables: {},
|
|
1801
|
+
};
|
|
1802
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1803
|
+
config,
|
|
1804
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1805
|
+
});
|
|
1806
|
+
return cacheSnapshot;
|
|
1807
|
+
}
|
|
1808
|
+
const getCustomCodeExecutionsAdapterFactory = (luvio) => function byoc__getCustomCodeExecutions(untrustedConfig, requestContext) {
|
|
1809
|
+
const config = validateAdapterConfig$2(untrustedConfig, getCustomCodeExecutions_ConfigPropertyNames);
|
|
1810
|
+
// Invalid or incomplete config
|
|
1811
|
+
if (config === null) {
|
|
1812
|
+
return null;
|
|
1813
|
+
}
|
|
1814
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1815
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
function select$2(luvio, params) {
|
|
1819
|
+
return select$5();
|
|
1820
|
+
}
|
|
1821
|
+
function keyBuilder$3(luvio, params) {
|
|
1822
|
+
return keyPrefix + '::CustomCodeExecutionBaseRepresentation:(' + 'customCodeExecutionId:' + params.urlParams.customCodeExecutionId + ',' + 'customCodeNameOrId:' + params.urlParams.customCodeNameOrId + ')';
|
|
1823
|
+
}
|
|
1824
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1825
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1826
|
+
}
|
|
1827
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
1828
|
+
const { body } = response;
|
|
1829
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
1830
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1831
|
+
const snapshot = luvio.storeLookup({
|
|
1832
|
+
recordId: key,
|
|
1833
|
+
node: select$2(),
|
|
1834
|
+
variables: {},
|
|
1835
|
+
}, snapshotRefresh);
|
|
1836
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1837
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1838
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
deepFreeze(snapshot.data);
|
|
1842
|
+
return snapshot;
|
|
1843
|
+
}
|
|
1844
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
1845
|
+
const key = keyBuilder$3(luvio, params);
|
|
1846
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1847
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
1848
|
+
return errorSnapshot;
|
|
1849
|
+
}
|
|
1850
|
+
function createResourceRequest$1(config) {
|
|
1851
|
+
const headers = {};
|
|
1852
|
+
return {
|
|
1853
|
+
baseUri: '/services/data/v64.0',
|
|
1854
|
+
basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '/executions/' + config.urlParams.customCodeExecutionId + '',
|
|
1855
|
+
method: 'get',
|
|
1856
|
+
body: null,
|
|
1857
|
+
urlParams: config.urlParams,
|
|
1858
|
+
queryParams: {},
|
|
1859
|
+
headers,
|
|
1860
|
+
priority: 'normal',
|
|
1861
|
+
};
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
const adapterName$1 = 'getCustomCodeExecution';
|
|
1865
|
+
const getCustomCodeExecution_ConfigPropertyMetadata = [
|
|
1866
|
+
generateParamConfigMetadata('customCodeExecutionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1867
|
+
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1868
|
+
];
|
|
1869
|
+
const getCustomCodeExecution_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCustomCodeExecution_ConfigPropertyMetadata);
|
|
1870
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(getCustomCodeExecution_ConfigPropertyMetadata);
|
|
1871
|
+
function keyBuilder$2(luvio, config) {
|
|
1872
|
+
const resourceParams = createResourceParams$1(config);
|
|
1873
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
1874
|
+
}
|
|
1875
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
1876
|
+
const config = {};
|
|
1877
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeExecution_ConfigPropertyMetadata);
|
|
1878
|
+
return config;
|
|
1879
|
+
}
|
|
1880
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
1881
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1882
|
+
return null;
|
|
1883
|
+
}
|
|
1884
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1885
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1886
|
+
}
|
|
1887
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
1888
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1889
|
+
return null;
|
|
1890
|
+
}
|
|
1891
|
+
return config;
|
|
1892
|
+
}
|
|
1893
|
+
function adapterFragment$1(luvio, config) {
|
|
1894
|
+
createResourceParams$1(config);
|
|
1895
|
+
return select$2();
|
|
1896
|
+
}
|
|
1897
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1898
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
1899
|
+
config,
|
|
1900
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1901
|
+
});
|
|
1902
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1903
|
+
}
|
|
1904
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1905
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1906
|
+
config,
|
|
1907
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1908
|
+
});
|
|
1909
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1910
|
+
}
|
|
1911
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
1912
|
+
const resourceParams = createResourceParams$1(config);
|
|
1913
|
+
const request = createResourceRequest$1(resourceParams);
|
|
1914
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1915
|
+
.then((response) => {
|
|
1916
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1917
|
+
const cache = new StoreKeyMap();
|
|
1918
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1919
|
+
return cache;
|
|
1920
|
+
});
|
|
1921
|
+
}, (response) => {
|
|
1922
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
1923
|
+
});
|
|
1924
|
+
}
|
|
1925
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1926
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1927
|
+
}
|
|
1928
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1929
|
+
const { luvio, config } = context;
|
|
1930
|
+
const selector = {
|
|
1931
|
+
recordId: keyBuilder$2(luvio, config),
|
|
1932
|
+
node: adapterFragment$1(luvio, config),
|
|
1933
|
+
variables: {},
|
|
1934
|
+
};
|
|
1935
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1936
|
+
config,
|
|
1937
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1938
|
+
});
|
|
1939
|
+
return cacheSnapshot;
|
|
1940
|
+
}
|
|
1941
|
+
const getCustomCodeExecutionAdapterFactory = (luvio) => function byoc__getCustomCodeExecution(untrustedConfig, requestContext) {
|
|
1942
|
+
const config = validateAdapterConfig$1(untrustedConfig, getCustomCodeExecution_ConfigPropertyNames);
|
|
1943
|
+
// Invalid or incomplete config
|
|
1944
|
+
if (config === null) {
|
|
1945
|
+
return null;
|
|
1946
|
+
}
|
|
1947
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1948
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
const VERSION = "67e4b6c0a2163a4de44249f2a2dc7bd0";
|
|
1952
|
+
function validate(obj, path = 'CustomCodeExecutionLogRepresentation') {
|
|
1953
|
+
const v_error = (() => {
|
|
1954
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1955
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1956
|
+
}
|
|
1957
|
+
const obj_downloadUrl = obj.downloadUrl;
|
|
1958
|
+
const path_downloadUrl = path + '.downloadUrl';
|
|
1959
|
+
if (typeof obj_downloadUrl !== 'string') {
|
|
1960
|
+
return new TypeError('Expected "string" but received "' + typeof obj_downloadUrl + '" (at "' + path_downloadUrl + '")');
|
|
1961
|
+
}
|
|
1962
|
+
})();
|
|
1963
|
+
return v_error === undefined ? null : v_error;
|
|
1964
|
+
}
|
|
1965
|
+
const RepresentationType = 'CustomCodeExecutionLogRepresentation';
|
|
1966
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1967
|
+
return input;
|
|
1968
|
+
}
|
|
1969
|
+
const select$1 = function CustomCodeExecutionLogRepresentationSelect() {
|
|
1970
|
+
return {
|
|
1971
|
+
kind: 'Fragment',
|
|
1972
|
+
version: VERSION,
|
|
1973
|
+
private: [],
|
|
1974
|
+
selections: [
|
|
1975
|
+
{
|
|
1976
|
+
name: 'downloadUrl',
|
|
1977
|
+
kind: 'Scalar'
|
|
1978
|
+
}
|
|
1979
|
+
]
|
|
1980
|
+
};
|
|
1981
|
+
};
|
|
1982
|
+
function equals(existing, incoming) {
|
|
1983
|
+
const existing_downloadUrl = existing.downloadUrl;
|
|
1984
|
+
const incoming_downloadUrl = incoming.downloadUrl;
|
|
1985
|
+
if (!(existing_downloadUrl === incoming_downloadUrl)) {
|
|
1986
|
+
return false;
|
|
1987
|
+
}
|
|
1988
|
+
return true;
|
|
1989
|
+
}
|
|
1990
|
+
const ingest = function CustomCodeExecutionLogRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1991
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1992
|
+
const validateError = validate(input);
|
|
1993
|
+
if (validateError !== null) {
|
|
1994
|
+
throw validateError;
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
const key = path.fullPath;
|
|
1998
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1999
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "byoc", VERSION, RepresentationType, equals);
|
|
2000
|
+
return createLink(key);
|
|
2001
|
+
};
|
|
2002
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
2003
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2004
|
+
const rootKey = fullPathFactory();
|
|
2005
|
+
rootKeySet.set(rootKey, {
|
|
2006
|
+
namespace: keyPrefix,
|
|
2007
|
+
representationName: RepresentationType,
|
|
2008
|
+
mergeable: false
|
|
2009
|
+
});
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
function select(luvio, params) {
|
|
2013
|
+
return select$1();
|
|
2014
|
+
}
|
|
2015
|
+
function keyBuilder$1(luvio, params) {
|
|
2016
|
+
return keyPrefix + '::CustomCodeExecutionLogRepresentation:(' + 'customCodeExecutionId:' + params.urlParams.customCodeExecutionId + ',' + 'customCodeNameOrId:' + params.urlParams.customCodeNameOrId + ')';
|
|
2017
|
+
}
|
|
2018
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2019
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
2020
|
+
}
|
|
2021
|
+
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
2022
|
+
const { body } = response;
|
|
2023
|
+
const key = keyBuilder$1(luvio, resourceParams);
|
|
2024
|
+
luvio.storeIngest(key, ingest, body);
|
|
2025
|
+
const snapshot = luvio.storeLookup({
|
|
2026
|
+
recordId: key,
|
|
2027
|
+
node: select(),
|
|
2028
|
+
variables: {},
|
|
2029
|
+
}, snapshotRefresh);
|
|
2030
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2031
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2032
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
deepFreeze(snapshot.data);
|
|
2036
|
+
return snapshot;
|
|
2037
|
+
}
|
|
2038
|
+
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
2039
|
+
const key = keyBuilder$1(luvio, params);
|
|
2040
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2041
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
2042
|
+
return errorSnapshot;
|
|
2043
|
+
}
|
|
2044
|
+
function createResourceRequest(config) {
|
|
2045
|
+
const headers = {};
|
|
2046
|
+
return {
|
|
2047
|
+
baseUri: '/services/data/v64.0',
|
|
2048
|
+
basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '/executions/' + config.urlParams.customCodeExecutionId + '/logs',
|
|
2049
|
+
method: 'get',
|
|
2050
|
+
body: null,
|
|
2051
|
+
urlParams: config.urlParams,
|
|
2052
|
+
queryParams: {},
|
|
2053
|
+
headers,
|
|
2054
|
+
priority: 'normal',
|
|
2055
|
+
};
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
const adapterName = 'getCustomCodeExecutionLogs';
|
|
2059
|
+
const getCustomCodeExecutionLogs_ConfigPropertyMetadata = [
|
|
2060
|
+
generateParamConfigMetadata('customCodeExecutionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2061
|
+
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2062
|
+
];
|
|
2063
|
+
const getCustomCodeExecutionLogs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getCustomCodeExecutionLogs_ConfigPropertyMetadata);
|
|
2064
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$8(getCustomCodeExecutionLogs_ConfigPropertyMetadata);
|
|
2065
|
+
function keyBuilder(luvio, config) {
|
|
2066
|
+
const resourceParams = createResourceParams(config);
|
|
2067
|
+
return keyBuilder$1(luvio, resourceParams);
|
|
2068
|
+
}
|
|
2069
|
+
function typeCheckConfig(untrustedConfig) {
|
|
2070
|
+
const config = {};
|
|
2071
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeExecutionLogs_ConfigPropertyMetadata);
|
|
2072
|
+
return config;
|
|
2073
|
+
}
|
|
2074
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
2075
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2076
|
+
return null;
|
|
2077
|
+
}
|
|
2078
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2079
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2080
|
+
}
|
|
2081
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
2082
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2083
|
+
return null;
|
|
2084
|
+
}
|
|
2085
|
+
return config;
|
|
2086
|
+
}
|
|
2087
|
+
function adapterFragment(luvio, config) {
|
|
2088
|
+
createResourceParams(config);
|
|
2089
|
+
return select();
|
|
2090
|
+
}
|
|
2091
|
+
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
2092
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response, {
|
|
2093
|
+
config,
|
|
2094
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
2095
|
+
});
|
|
2096
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2097
|
+
}
|
|
2098
|
+
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
2099
|
+
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
2100
|
+
config,
|
|
2101
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
2102
|
+
});
|
|
2103
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2104
|
+
}
|
|
2105
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
2106
|
+
const resourceParams = createResourceParams(config);
|
|
2107
|
+
const request = createResourceRequest(resourceParams);
|
|
2108
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2109
|
+
.then((response) => {
|
|
2110
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
2111
|
+
const cache = new StoreKeyMap();
|
|
2112
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
2113
|
+
return cache;
|
|
2114
|
+
});
|
|
2115
|
+
}, (response) => {
|
|
2116
|
+
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
2117
|
+
});
|
|
2118
|
+
}
|
|
2119
|
+
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2120
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
2121
|
+
}
|
|
2122
|
+
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2123
|
+
const { luvio, config } = context;
|
|
2124
|
+
const selector = {
|
|
2125
|
+
recordId: keyBuilder(luvio, config),
|
|
2126
|
+
node: adapterFragment(luvio, config),
|
|
2127
|
+
variables: {},
|
|
2128
|
+
};
|
|
2129
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
2130
|
+
config,
|
|
2131
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
2132
|
+
});
|
|
2133
|
+
return cacheSnapshot;
|
|
2134
|
+
}
|
|
2135
|
+
const getCustomCodeExecutionLogsAdapterFactory = (luvio) => function byoc__getCustomCodeExecutionLogs(untrustedConfig, requestContext) {
|
|
2136
|
+
const config = validateAdapterConfig(untrustedConfig, getCustomCodeExecutionLogs_ConfigPropertyNames);
|
|
2137
|
+
// Invalid or incomplete config
|
|
2138
|
+
if (config === null) {
|
|
2139
|
+
return null;
|
|
2140
|
+
}
|
|
2141
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2142
|
+
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
2143
|
+
};
|
|
1314
2144
|
|
|
1315
|
-
export { createCustomCodeDeploymentAdapterFactory, deleteCustomCodeDeploymentAdapterFactory, getCustomCodeDeploymentAdapterFactory, getCustomCodeDeploymentsAdapterFactory, updateCustomCodeDeploymentAdapterFactory };
|
|
2145
|
+
export { createCustomCodeDeploymentAdapterFactory, deleteCustomCodeDeploymentAdapterFactory, getCustomCodeDeploymentAdapterFactory, getCustomCodeDeploymentsAdapterFactory, getCustomCodeExecutionAdapterFactory, getCustomCodeExecutionLogsAdapterFactory, getCustomCodeExecutionsAdapterFactory, updateCustomCodeDeploymentAdapterFactory };
|