@salesforce/lds-adapters-cdp-byoc 1.354.0-dev16 → 1.354.0-dev18
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 +360 -202
- package/dist/es/es2018/types/src/generated/adapters/getCustomCodeExecution.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getSsotDataCustomCodeExecutionsByCustomCodeExecutionIdAndCustomCodeNameOrId.d.ts +16 -0
- package/package.json +3 -3
- package/sfdc/index.js +546 -380
- package/src/raml/api.raml +17 -0
- package/src/raml/luvio.raml +6 -2
|
@@ -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;
|
|
@@ -136,7 +136,7 @@ function validate$5(obj, path = 'CdpUserRepresentation') {
|
|
|
136
136
|
})();
|
|
137
137
|
return v_error === undefined ? null : v_error;
|
|
138
138
|
}
|
|
139
|
-
const select$
|
|
139
|
+
const select$c = function CdpUserRepresentationSelect() {
|
|
140
140
|
return {
|
|
141
141
|
kind: 'Fragment',
|
|
142
142
|
version: VERSION$5,
|
|
@@ -317,21 +317,21 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
317
317
|
})();
|
|
318
318
|
return v_error === undefined ? null : v_error;
|
|
319
319
|
}
|
|
320
|
-
const RepresentationType$
|
|
321
|
-
function keyBuilder$
|
|
322
|
-
return keyPrefix + '::' + RepresentationType$
|
|
320
|
+
const RepresentationType$4 = 'CustomCodeDeploymentRepresentation';
|
|
321
|
+
function keyBuilder$b(luvio, config) {
|
|
322
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
323
323
|
}
|
|
324
324
|
function keyBuilderFromType(luvio, object) {
|
|
325
325
|
const keyParams = {
|
|
326
326
|
id: object.id
|
|
327
327
|
};
|
|
328
|
-
return keyBuilder$
|
|
328
|
+
return keyBuilder$b(luvio, keyParams);
|
|
329
329
|
}
|
|
330
|
-
function normalize$
|
|
330
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
331
331
|
return input;
|
|
332
332
|
}
|
|
333
|
-
const select$
|
|
334
|
-
const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$
|
|
333
|
+
const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
334
|
+
const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$c();
|
|
335
335
|
return {
|
|
336
336
|
kind: 'Fragment',
|
|
337
337
|
version: VERSION$4,
|
|
@@ -582,7 +582,7 @@ function equals$4(existing, incoming) {
|
|
|
582
582
|
}
|
|
583
583
|
return true;
|
|
584
584
|
}
|
|
585
|
-
const ingest$
|
|
585
|
+
const ingest$4 = function CustomCodeDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
586
586
|
if (process.env.NODE_ENV !== 'production') {
|
|
587
587
|
const validateError = validate$4(input);
|
|
588
588
|
if (validateError !== null) {
|
|
@@ -591,32 +591,32 @@ const ingest$3 = function CustomCodeDeploymentRepresentationIngest(input, path,
|
|
|
591
591
|
}
|
|
592
592
|
const key = keyBuilderFromType(luvio, input);
|
|
593
593
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
594
|
-
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);
|
|
595
595
|
return createLink(key);
|
|
596
596
|
};
|
|
597
|
-
function getTypeCacheKeys$
|
|
597
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
598
598
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
599
599
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
600
600
|
rootKeySet.set(rootKey, {
|
|
601
601
|
namespace: keyPrefix,
|
|
602
|
-
representationName: RepresentationType$
|
|
602
|
+
representationName: RepresentationType$4,
|
|
603
603
|
mergeable: false
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
606
|
|
|
607
|
-
function select$
|
|
608
|
-
return select$
|
|
607
|
+
function select$a(luvio, params) {
|
|
608
|
+
return select$b();
|
|
609
609
|
}
|
|
610
|
-
function getResponseCacheKeys$
|
|
611
|
-
getTypeCacheKeys$
|
|
610
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
611
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
612
612
|
}
|
|
613
|
-
function ingestSuccess$
|
|
613
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
614
614
|
const { body } = response;
|
|
615
615
|
const key = keyBuilderFromType(luvio, body);
|
|
616
|
-
luvio.storeIngest(key, ingest$
|
|
616
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
617
617
|
const snapshot = luvio.storeLookup({
|
|
618
618
|
recordId: key,
|
|
619
|
-
node: select$
|
|
619
|
+
node: select$a(),
|
|
620
620
|
variables: {},
|
|
621
621
|
});
|
|
622
622
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -627,7 +627,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
627
627
|
deepFreeze(snapshot.data);
|
|
628
628
|
return snapshot;
|
|
629
629
|
}
|
|
630
|
-
function createResourceRequest$
|
|
630
|
+
function createResourceRequest$7(config) {
|
|
631
631
|
const headers = {};
|
|
632
632
|
return {
|
|
633
633
|
baseUri: '/services/data/v64.0',
|
|
@@ -641,7 +641,7 @@ function createResourceRequest$6(config) {
|
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
-
const adapterName$
|
|
644
|
+
const adapterName$7 = 'createCustomCodeDeployment';
|
|
645
645
|
const createCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
646
646
|
generateParamConfigMetadata('codeType', false, 2 /* Body */, 0 /* String */),
|
|
647
647
|
generateParamConfigMetadata('functionInvokeOptions', false, 2 /* Body */, 0 /* String */, true),
|
|
@@ -654,11 +654,11 @@ const createCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
|
654
654
|
generateParamConfigMetadata('parameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
655
655
|
generateParamConfigMetadata('version', true, 2 /* Body */, 0 /* String */),
|
|
656
656
|
];
|
|
657
|
-
const createCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
658
|
-
const createResourceParams$
|
|
659
|
-
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) {
|
|
660
660
|
const config = {};
|
|
661
|
-
typeCheckConfig$
|
|
661
|
+
typeCheckConfig$8(untrustedConfig, config, createCustomCodeDeployment_ConfigPropertyMetadata);
|
|
662
662
|
const untrustedConfig_parameters = untrustedConfig.parameters;
|
|
663
663
|
if (untrustedIsObject(untrustedConfig_parameters)) {
|
|
664
664
|
const untrustedConfig_parameters_object = {};
|
|
@@ -678,30 +678,30 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
678
678
|
}
|
|
679
679
|
return config;
|
|
680
680
|
}
|
|
681
|
-
function validateAdapterConfig$
|
|
681
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
682
682
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
683
683
|
return null;
|
|
684
684
|
}
|
|
685
685
|
if (process.env.NODE_ENV !== 'production') {
|
|
686
686
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
687
687
|
}
|
|
688
|
-
const config = typeCheckConfig$
|
|
688
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
689
689
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
690
690
|
return null;
|
|
691
691
|
}
|
|
692
692
|
return config;
|
|
693
693
|
}
|
|
694
|
-
function buildNetworkSnapshot$
|
|
695
|
-
const resourceParams = createResourceParams$
|
|
696
|
-
const request = createResourceRequest$
|
|
694
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
695
|
+
const resourceParams = createResourceParams$7(config);
|
|
696
|
+
const request = createResourceRequest$7(resourceParams);
|
|
697
697
|
return luvio.dispatchResourceRequest(request, options)
|
|
698
698
|
.then((response) => {
|
|
699
699
|
return luvio.handleSuccessResponse(() => {
|
|
700
|
-
const snapshot = ingestSuccess$
|
|
700
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
701
701
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
702
702
|
}, () => {
|
|
703
703
|
const cache = new StoreKeyMap();
|
|
704
|
-
getResponseCacheKeys$
|
|
704
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
705
705
|
return cache;
|
|
706
706
|
});
|
|
707
707
|
}, (response) => {
|
|
@@ -711,12 +711,12 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
711
711
|
}
|
|
712
712
|
const createCustomCodeDeploymentAdapterFactory = (luvio) => {
|
|
713
713
|
return function createCustomCodeDeployment(untrustedConfig) {
|
|
714
|
-
const config = validateAdapterConfig$
|
|
714
|
+
const config = validateAdapterConfig$7(untrustedConfig, createCustomCodeDeployment_ConfigPropertyNames);
|
|
715
715
|
// Invalid or incomplete config
|
|
716
716
|
if (config === null) {
|
|
717
717
|
throw new Error('Invalid config for "createCustomCodeDeployment"');
|
|
718
718
|
}
|
|
719
|
-
return buildNetworkSnapshot$
|
|
719
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
720
720
|
};
|
|
721
721
|
};
|
|
722
722
|
|
|
@@ -758,14 +758,14 @@ function validate$3(obj, path = 'CustomCodeDeploymentCollectionRepresentation')
|
|
|
758
758
|
})();
|
|
759
759
|
return v_error === undefined ? null : v_error;
|
|
760
760
|
}
|
|
761
|
-
const RepresentationType$
|
|
762
|
-
function normalize$
|
|
761
|
+
const RepresentationType$3 = 'CustomCodeDeploymentCollectionRepresentation';
|
|
762
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
763
763
|
const input_customCodeDeployments = input.customCodeDeployments;
|
|
764
764
|
const input_customCodeDeployments_id = path.fullPath + '__customCodeDeployments';
|
|
765
765
|
for (let i = 0; i < input_customCodeDeployments.length; i++) {
|
|
766
766
|
const input_customCodeDeployments_item = input_customCodeDeployments[i];
|
|
767
767
|
let input_customCodeDeployments_item_id = input_customCodeDeployments_id + '__' + i;
|
|
768
|
-
input_customCodeDeployments[i] = ingest$
|
|
768
|
+
input_customCodeDeployments[i] = ingest$4(input_customCodeDeployments_item, {
|
|
769
769
|
fullPath: input_customCodeDeployments_item_id,
|
|
770
770
|
propertyName: i,
|
|
771
771
|
parent: {
|
|
@@ -778,7 +778,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
778
778
|
}
|
|
779
779
|
return input;
|
|
780
780
|
}
|
|
781
|
-
const select$
|
|
781
|
+
const select$9 = function CustomCodeDeploymentCollectionRepresentationSelect() {
|
|
782
782
|
return {
|
|
783
783
|
kind: 'Fragment',
|
|
784
784
|
version: VERSION$3,
|
|
@@ -792,7 +792,7 @@ const select$8 = function CustomCodeDeploymentCollectionRepresentationSelect() {
|
|
|
792
792
|
name: 'customCodeDeployments',
|
|
793
793
|
kind: 'Link',
|
|
794
794
|
plural: true,
|
|
795
|
-
fragment: select$
|
|
795
|
+
fragment: select$b()
|
|
796
796
|
},
|
|
797
797
|
{
|
|
798
798
|
name: 'nextPageUrl',
|
|
@@ -842,7 +842,7 @@ function equals$3(existing, incoming) {
|
|
|
842
842
|
}
|
|
843
843
|
return true;
|
|
844
844
|
}
|
|
845
|
-
const ingest$
|
|
845
|
+
const ingest$3 = function CustomCodeDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
846
846
|
if (process.env.NODE_ENV !== 'production') {
|
|
847
847
|
const validateError = validate$3(input);
|
|
848
848
|
if (validateError !== null) {
|
|
@@ -851,39 +851,39 @@ const ingest$2 = function CustomCodeDeploymentCollectionRepresentationIngest(inp
|
|
|
851
851
|
}
|
|
852
852
|
const key = path.fullPath;
|
|
853
853
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
854
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
854
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "byoc", VERSION$3, RepresentationType$3, equals$3);
|
|
855
855
|
return createLink(key);
|
|
856
856
|
};
|
|
857
|
-
function getTypeCacheKeys$
|
|
857
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
858
858
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
859
859
|
const rootKey = fullPathFactory();
|
|
860
860
|
rootKeySet.set(rootKey, {
|
|
861
861
|
namespace: keyPrefix,
|
|
862
|
-
representationName: RepresentationType$
|
|
862
|
+
representationName: RepresentationType$3,
|
|
863
863
|
mergeable: false
|
|
864
864
|
});
|
|
865
865
|
const input_customCodeDeployments_length = input.customCodeDeployments.length;
|
|
866
866
|
for (let i = 0; i < input_customCodeDeployments_length; i++) {
|
|
867
|
-
getTypeCacheKeys$
|
|
867
|
+
getTypeCacheKeys$4(rootKeySet, luvio, input.customCodeDeployments[i]);
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
function select$
|
|
872
|
-
return select$
|
|
871
|
+
function select$8(luvio, params) {
|
|
872
|
+
return select$9();
|
|
873
873
|
}
|
|
874
|
-
function keyBuilder$
|
|
874
|
+
function keyBuilder$a(luvio, params) {
|
|
875
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 + ')';
|
|
876
876
|
}
|
|
877
|
-
function getResponseCacheKeys$
|
|
878
|
-
getTypeCacheKeys$
|
|
877
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
878
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
879
879
|
}
|
|
880
|
-
function ingestSuccess$
|
|
880
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
881
881
|
const { body } = response;
|
|
882
|
-
const key = keyBuilder$
|
|
883
|
-
luvio.storeIngest(key, ingest$
|
|
882
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
883
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
884
884
|
const snapshot = luvio.storeLookup({
|
|
885
885
|
recordId: key,
|
|
886
|
-
node: select$
|
|
886
|
+
node: select$8(),
|
|
887
887
|
variables: {},
|
|
888
888
|
}, snapshotRefresh);
|
|
889
889
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -894,13 +894,13 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
894
894
|
deepFreeze(snapshot.data);
|
|
895
895
|
return snapshot;
|
|
896
896
|
}
|
|
897
|
-
function ingestError$
|
|
898
|
-
const key = keyBuilder$
|
|
897
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
898
|
+
const key = keyBuilder$a(luvio, params);
|
|
899
899
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
900
900
|
luvio.storeIngestError(key, errorSnapshot);
|
|
901
901
|
return errorSnapshot;
|
|
902
902
|
}
|
|
903
|
-
function createResourceRequest$
|
|
903
|
+
function createResourceRequest$6(config) {
|
|
904
904
|
const headers = {};
|
|
905
905
|
return {
|
|
906
906
|
baseUri: '/services/data/v64.0',
|
|
@@ -914,7 +914,7 @@ function createResourceRequest$5(config) {
|
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
916
|
|
|
917
|
-
const adapterName$
|
|
917
|
+
const adapterName$6 = 'getCustomCodeDeployments';
|
|
918
918
|
const getCustomCodeDeployments_ConfigPropertyMetadata = [
|
|
919
919
|
generateParamConfigMetadata('codeType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
920
920
|
generateParamConfigMetadata('deploymentStatus', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -923,106 +923,106 @@ const getCustomCodeDeployments_ConfigPropertyMetadata = [
|
|
|
923
923
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
924
924
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
925
925
|
];
|
|
926
|
-
const getCustomCodeDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
927
|
-
const createResourceParams$
|
|
928
|
-
function keyBuilder$
|
|
929
|
-
const resourceParams = createResourceParams$
|
|
930
|
-
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);
|
|
931
931
|
}
|
|
932
|
-
function typeCheckConfig$
|
|
932
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
933
933
|
const config = {};
|
|
934
|
-
typeCheckConfig$
|
|
934
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeDeployments_ConfigPropertyMetadata);
|
|
935
935
|
return config;
|
|
936
936
|
}
|
|
937
|
-
function validateAdapterConfig$
|
|
937
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
938
938
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
939
939
|
return null;
|
|
940
940
|
}
|
|
941
941
|
if (process.env.NODE_ENV !== 'production') {
|
|
942
942
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
943
943
|
}
|
|
944
|
-
const config = typeCheckConfig$
|
|
944
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
945
945
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
946
946
|
return null;
|
|
947
947
|
}
|
|
948
948
|
return config;
|
|
949
949
|
}
|
|
950
|
-
function adapterFragment$
|
|
951
|
-
createResourceParams$
|
|
952
|
-
return select$
|
|
950
|
+
function adapterFragment$4(luvio, config) {
|
|
951
|
+
createResourceParams$6(config);
|
|
952
|
+
return select$8();
|
|
953
953
|
}
|
|
954
|
-
function onFetchResponseSuccess$
|
|
955
|
-
const snapshot = ingestSuccess$
|
|
954
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
955
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
956
956
|
config,
|
|
957
|
-
resolve: () => buildNetworkSnapshot$
|
|
957
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
958
958
|
});
|
|
959
959
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
960
960
|
}
|
|
961
|
-
function onFetchResponseError$
|
|
962
|
-
const snapshot = ingestError$
|
|
961
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
962
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
963
963
|
config,
|
|
964
|
-
resolve: () => buildNetworkSnapshot$
|
|
964
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
965
965
|
});
|
|
966
966
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
967
967
|
}
|
|
968
|
-
function buildNetworkSnapshot$
|
|
969
|
-
const resourceParams = createResourceParams$
|
|
970
|
-
const request = createResourceRequest$
|
|
968
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
969
|
+
const resourceParams = createResourceParams$6(config);
|
|
970
|
+
const request = createResourceRequest$6(resourceParams);
|
|
971
971
|
return luvio.dispatchResourceRequest(request, options)
|
|
972
972
|
.then((response) => {
|
|
973
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
973
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
974
974
|
const cache = new StoreKeyMap();
|
|
975
|
-
getResponseCacheKeys$
|
|
975
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
976
976
|
return cache;
|
|
977
977
|
});
|
|
978
978
|
}, (response) => {
|
|
979
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
979
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
980
980
|
});
|
|
981
981
|
}
|
|
982
|
-
function buildNetworkSnapshotCachePolicy$
|
|
983
|
-
return buildNetworkSnapshotCachePolicy$
|
|
982
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
983
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
984
984
|
}
|
|
985
|
-
function buildCachedSnapshotCachePolicy$
|
|
985
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
986
986
|
const { luvio, config } = context;
|
|
987
987
|
const selector = {
|
|
988
|
-
recordId: keyBuilder$
|
|
989
|
-
node: adapterFragment$
|
|
988
|
+
recordId: keyBuilder$9(luvio, config),
|
|
989
|
+
node: adapterFragment$4(luvio, config),
|
|
990
990
|
variables: {},
|
|
991
991
|
};
|
|
992
992
|
const cacheSnapshot = storeLookup(selector, {
|
|
993
993
|
config,
|
|
994
|
-
resolve: () => buildNetworkSnapshot$
|
|
994
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
995
995
|
});
|
|
996
996
|
return cacheSnapshot;
|
|
997
997
|
}
|
|
998
998
|
const getCustomCodeDeploymentsAdapterFactory = (luvio) => function byoc__getCustomCodeDeployments(untrustedConfig, requestContext) {
|
|
999
|
-
const config = validateAdapterConfig$
|
|
999
|
+
const config = validateAdapterConfig$6(untrustedConfig, getCustomCodeDeployments_ConfigPropertyNames);
|
|
1000
1000
|
// Invalid or incomplete config
|
|
1001
1001
|
if (config === null) {
|
|
1002
1002
|
return null;
|
|
1003
1003
|
}
|
|
1004
1004
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1005
|
-
buildCachedSnapshotCachePolicy$
|
|
1005
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
1006
1006
|
};
|
|
1007
1007
|
|
|
1008
|
-
function keyBuilder$
|
|
1009
|
-
return keyBuilder$
|
|
1008
|
+
function keyBuilder$8(luvio, params) {
|
|
1009
|
+
return keyBuilder$b(luvio, {
|
|
1010
1010
|
id: params.urlParams.customCodeNameOrId
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
1013
|
-
function getResponseCacheKeys$
|
|
1014
|
-
const key = keyBuilder$
|
|
1013
|
+
function getResponseCacheKeys$5(cacheKeyMap, luvio, resourceParams) {
|
|
1014
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
1015
1015
|
cacheKeyMap.set(key, {
|
|
1016
1016
|
namespace: keyPrefix,
|
|
1017
|
-
representationName: RepresentationType$
|
|
1017
|
+
representationName: RepresentationType$4,
|
|
1018
1018
|
mergeable: false
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
1021
1021
|
function evictSuccess(luvio, resourceParams) {
|
|
1022
|
-
const key = keyBuilder$
|
|
1022
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
1023
1023
|
luvio.storeEvict(key);
|
|
1024
1024
|
}
|
|
1025
|
-
function createResourceRequest$
|
|
1025
|
+
function createResourceRequest$5(config) {
|
|
1026
1026
|
const headers = {};
|
|
1027
1027
|
return {
|
|
1028
1028
|
baseUri: '/services/data/v64.0',
|
|
@@ -1036,33 +1036,33 @@ function createResourceRequest$4(config) {
|
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
|
-
const adapterName$
|
|
1039
|
+
const adapterName$5 = 'deleteCustomCodeDeployment';
|
|
1040
1040
|
const deleteCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
1041
1041
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1042
1042
|
];
|
|
1043
|
-
const deleteCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1044
|
-
const createResourceParams$
|
|
1045
|
-
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) {
|
|
1046
1046
|
const config = {};
|
|
1047
|
-
typeCheckConfig$
|
|
1047
|
+
typeCheckConfig$8(untrustedConfig, config, deleteCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1048
1048
|
return config;
|
|
1049
1049
|
}
|
|
1050
|
-
function validateAdapterConfig$
|
|
1050
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
1051
1051
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1052
1052
|
return null;
|
|
1053
1053
|
}
|
|
1054
1054
|
if (process.env.NODE_ENV !== 'production') {
|
|
1055
1055
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1056
1056
|
}
|
|
1057
|
-
const config = typeCheckConfig$
|
|
1057
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
1058
1058
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1059
1059
|
return null;
|
|
1060
1060
|
}
|
|
1061
1061
|
return config;
|
|
1062
1062
|
}
|
|
1063
|
-
function buildNetworkSnapshot$
|
|
1064
|
-
const resourceParams = createResourceParams$
|
|
1065
|
-
const request = createResourceRequest$
|
|
1063
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
1064
|
+
const resourceParams = createResourceParams$5(config);
|
|
1065
|
+
const request = createResourceRequest$5(resourceParams);
|
|
1066
1066
|
return luvio.dispatchResourceRequest(request, options)
|
|
1067
1067
|
.then(() => {
|
|
1068
1068
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -1070,7 +1070,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1070
1070
|
return luvio.storeBroadcast();
|
|
1071
1071
|
}, () => {
|
|
1072
1072
|
const cache = new StoreKeyMap();
|
|
1073
|
-
getResponseCacheKeys$
|
|
1073
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams);
|
|
1074
1074
|
return cache;
|
|
1075
1075
|
});
|
|
1076
1076
|
}, (response) => {
|
|
@@ -1080,33 +1080,33 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
const deleteCustomCodeDeploymentAdapterFactory = (luvio) => {
|
|
1082
1082
|
return function byocdeleteCustomCodeDeployment(untrustedConfig) {
|
|
1083
|
-
const config = validateAdapterConfig$
|
|
1083
|
+
const config = validateAdapterConfig$5(untrustedConfig, deleteCustomCodeDeployment_ConfigPropertyNames);
|
|
1084
1084
|
// Invalid or incomplete config
|
|
1085
1085
|
if (config === null) {
|
|
1086
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
1086
|
+
throw new Error(`Invalid config for "${adapterName$5}"`);
|
|
1087
1087
|
}
|
|
1088
|
-
return buildNetworkSnapshot$
|
|
1088
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
1089
1089
|
};
|
|
1090
1090
|
};
|
|
1091
1091
|
|
|
1092
|
-
function select$
|
|
1093
|
-
return select$
|
|
1092
|
+
function select$7(luvio, params) {
|
|
1093
|
+
return select$b();
|
|
1094
1094
|
}
|
|
1095
|
-
function keyBuilder$
|
|
1096
|
-
return keyBuilder$
|
|
1095
|
+
function keyBuilder$7(luvio, params) {
|
|
1096
|
+
return keyBuilder$b(luvio, {
|
|
1097
1097
|
id: params.urlParams.customCodeNameOrId
|
|
1098
1098
|
});
|
|
1099
1099
|
}
|
|
1100
|
-
function getResponseCacheKeys$
|
|
1101
|
-
getTypeCacheKeys$
|
|
1100
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1101
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1102
1102
|
}
|
|
1103
|
-
function ingestSuccess$
|
|
1103
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
1104
1104
|
const { body } = response;
|
|
1105
|
-
const key = keyBuilder$
|
|
1106
|
-
luvio.storeIngest(key, ingest$
|
|
1105
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
1106
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1107
1107
|
const snapshot = luvio.storeLookup({
|
|
1108
1108
|
recordId: key,
|
|
1109
|
-
node: select$
|
|
1109
|
+
node: select$7(),
|
|
1110
1110
|
variables: {},
|
|
1111
1111
|
}, snapshotRefresh);
|
|
1112
1112
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1117,13 +1117,13 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1117
1117
|
deepFreeze(snapshot.data);
|
|
1118
1118
|
return snapshot;
|
|
1119
1119
|
}
|
|
1120
|
-
function ingestError$
|
|
1121
|
-
const key = keyBuilder$
|
|
1120
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
1121
|
+
const key = keyBuilder$7(luvio, params);
|
|
1122
1122
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1123
1123
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1124
1124
|
return errorSnapshot;
|
|
1125
1125
|
}
|
|
1126
|
-
function createResourceRequest$
|
|
1126
|
+
function createResourceRequest$4(config) {
|
|
1127
1127
|
const headers = {};
|
|
1128
1128
|
return {
|
|
1129
1129
|
baseUri: '/services/data/v64.0',
|
|
@@ -1137,105 +1137,105 @@ function createResourceRequest$3(config) {
|
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
|
-
const adapterName$
|
|
1140
|
+
const adapterName$4 = 'getCustomCodeDeployment';
|
|
1141
1141
|
const getCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
1142
1142
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1143
1143
|
];
|
|
1144
|
-
const getCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1145
|
-
const createResourceParams$
|
|
1146
|
-
function keyBuilder$
|
|
1147
|
-
const resourceParams = createResourceParams$
|
|
1148
|
-
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);
|
|
1149
1149
|
}
|
|
1150
|
-
function typeCheckConfig$
|
|
1150
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1151
1151
|
const config = {};
|
|
1152
|
-
typeCheckConfig$
|
|
1152
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1153
1153
|
return config;
|
|
1154
1154
|
}
|
|
1155
|
-
function validateAdapterConfig$
|
|
1155
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1156
1156
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1157
1157
|
return null;
|
|
1158
1158
|
}
|
|
1159
1159
|
if (process.env.NODE_ENV !== 'production') {
|
|
1160
1160
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1161
1161
|
}
|
|
1162
|
-
const config = typeCheckConfig$
|
|
1162
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1163
1163
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1164
1164
|
return null;
|
|
1165
1165
|
}
|
|
1166
1166
|
return config;
|
|
1167
1167
|
}
|
|
1168
|
-
function adapterFragment$
|
|
1169
|
-
createResourceParams$
|
|
1170
|
-
return select$
|
|
1168
|
+
function adapterFragment$3(luvio, config) {
|
|
1169
|
+
createResourceParams$4(config);
|
|
1170
|
+
return select$7();
|
|
1171
1171
|
}
|
|
1172
|
-
function onFetchResponseSuccess$
|
|
1173
|
-
const snapshot = ingestSuccess$
|
|
1172
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
1173
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
1174
1174
|
config,
|
|
1175
|
-
resolve: () => buildNetworkSnapshot$
|
|
1175
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1176
1176
|
});
|
|
1177
1177
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1178
1178
|
}
|
|
1179
|
-
function onFetchResponseError$
|
|
1180
|
-
const snapshot = ingestError$
|
|
1179
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
1180
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
1181
1181
|
config,
|
|
1182
|
-
resolve: () => buildNetworkSnapshot$
|
|
1182
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1183
1183
|
});
|
|
1184
1184
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1185
1185
|
}
|
|
1186
|
-
function buildNetworkSnapshot$
|
|
1187
|
-
const resourceParams = createResourceParams$
|
|
1188
|
-
const request = createResourceRequest$
|
|
1186
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1187
|
+
const resourceParams = createResourceParams$4(config);
|
|
1188
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1189
1189
|
return luvio.dispatchResourceRequest(request, options)
|
|
1190
1190
|
.then((response) => {
|
|
1191
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1191
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
1192
1192
|
const cache = new StoreKeyMap();
|
|
1193
|
-
getResponseCacheKeys$
|
|
1193
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1194
1194
|
return cache;
|
|
1195
1195
|
});
|
|
1196
1196
|
}, (response) => {
|
|
1197
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1197
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
1198
1198
|
});
|
|
1199
1199
|
}
|
|
1200
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1201
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1200
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1201
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
1202
1202
|
}
|
|
1203
|
-
function buildCachedSnapshotCachePolicy$
|
|
1203
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1204
1204
|
const { luvio, config } = context;
|
|
1205
1205
|
const selector = {
|
|
1206
|
-
recordId: keyBuilder$
|
|
1207
|
-
node: adapterFragment$
|
|
1206
|
+
recordId: keyBuilder$6(luvio, config),
|
|
1207
|
+
node: adapterFragment$3(luvio, config),
|
|
1208
1208
|
variables: {},
|
|
1209
1209
|
};
|
|
1210
1210
|
const cacheSnapshot = storeLookup(selector, {
|
|
1211
1211
|
config,
|
|
1212
|
-
resolve: () => buildNetworkSnapshot$
|
|
1212
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1213
1213
|
});
|
|
1214
1214
|
return cacheSnapshot;
|
|
1215
1215
|
}
|
|
1216
1216
|
const getCustomCodeDeploymentAdapterFactory = (luvio) => function byoc__getCustomCodeDeployment(untrustedConfig, requestContext) {
|
|
1217
|
-
const config = validateAdapterConfig$
|
|
1217
|
+
const config = validateAdapterConfig$4(untrustedConfig, getCustomCodeDeployment_ConfigPropertyNames);
|
|
1218
1218
|
// Invalid or incomplete config
|
|
1219
1219
|
if (config === null) {
|
|
1220
1220
|
return null;
|
|
1221
1221
|
}
|
|
1222
1222
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1223
|
-
buildCachedSnapshotCachePolicy$
|
|
1223
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1224
1224
|
};
|
|
1225
1225
|
|
|
1226
|
-
function select$
|
|
1227
|
-
return select$
|
|
1226
|
+
function select$6(luvio, params) {
|
|
1227
|
+
return select$b();
|
|
1228
1228
|
}
|
|
1229
|
-
function getResponseCacheKeys$
|
|
1230
|
-
getTypeCacheKeys$
|
|
1229
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1230
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1231
1231
|
}
|
|
1232
|
-
function ingestSuccess$
|
|
1232
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
1233
1233
|
const { body } = response;
|
|
1234
1234
|
const key = keyBuilderFromType(luvio, body);
|
|
1235
|
-
luvio.storeIngest(key, ingest$
|
|
1235
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1236
1236
|
const snapshot = luvio.storeLookup({
|
|
1237
1237
|
recordId: key,
|
|
1238
|
-
node: select$
|
|
1238
|
+
node: select$6(),
|
|
1239
1239
|
variables: {},
|
|
1240
1240
|
});
|
|
1241
1241
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1246,7 +1246,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
1246
1246
|
deepFreeze(snapshot.data);
|
|
1247
1247
|
return snapshot;
|
|
1248
1248
|
}
|
|
1249
|
-
function createResourceRequest$
|
|
1249
|
+
function createResourceRequest$3(config) {
|
|
1250
1250
|
const headers = {};
|
|
1251
1251
|
return {
|
|
1252
1252
|
baseUri: '/services/data/v64.0',
|
|
@@ -1260,7 +1260,7 @@ function createResourceRequest$2(config) {
|
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
1262
|
|
|
1263
|
-
const adapterName$
|
|
1263
|
+
const adapterName$3 = 'updateCustomCodeDeployment';
|
|
1264
1264
|
const updateCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
1265
1265
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1266
1266
|
generateParamConfigMetadata('computeType', false, 2 /* Body */, 0 /* String */),
|
|
@@ -1269,37 +1269,37 @@ const updateCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
|
1269
1269
|
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
1270
1270
|
generateParamConfigMetadata('version', false, 2 /* Body */, 0 /* String */),
|
|
1271
1271
|
];
|
|
1272
|
-
const updateCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1273
|
-
const createResourceParams$
|
|
1274
|
-
function typeCheckConfig$
|
|
1272
|
+
const updateCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updateCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1273
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(updateCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1274
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
1275
1275
|
const config = {};
|
|
1276
|
-
typeCheckConfig$
|
|
1276
|
+
typeCheckConfig$8(untrustedConfig, config, updateCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1277
1277
|
return config;
|
|
1278
1278
|
}
|
|
1279
|
-
function validateAdapterConfig$
|
|
1279
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
1280
1280
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1281
1281
|
return null;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (process.env.NODE_ENV !== 'production') {
|
|
1284
1284
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1285
1285
|
}
|
|
1286
|
-
const config = typeCheckConfig$
|
|
1286
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
1287
1287
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1288
1288
|
return null;
|
|
1289
1289
|
}
|
|
1290
1290
|
return config;
|
|
1291
1291
|
}
|
|
1292
|
-
function buildNetworkSnapshot$
|
|
1293
|
-
const resourceParams = createResourceParams$
|
|
1294
|
-
const request = createResourceRequest$
|
|
1292
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
1293
|
+
const resourceParams = createResourceParams$3(config);
|
|
1294
|
+
const request = createResourceRequest$3(resourceParams);
|
|
1295
1295
|
return luvio.dispatchResourceRequest(request, options)
|
|
1296
1296
|
.then((response) => {
|
|
1297
1297
|
return luvio.handleSuccessResponse(() => {
|
|
1298
|
-
const snapshot = ingestSuccess$
|
|
1298
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
1299
1299
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1300
1300
|
}, () => {
|
|
1301
1301
|
const cache = new StoreKeyMap();
|
|
1302
|
-
getResponseCacheKeys$
|
|
1302
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
1303
1303
|
return cache;
|
|
1304
1304
|
});
|
|
1305
1305
|
}, (response) => {
|
|
@@ -1309,12 +1309,12 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
const updateCustomCodeDeploymentAdapterFactory = (luvio) => {
|
|
1311
1311
|
return function updateCustomCodeDeployment(untrustedConfig) {
|
|
1312
|
-
const config = validateAdapterConfig$
|
|
1312
|
+
const config = validateAdapterConfig$3(untrustedConfig, updateCustomCodeDeployment_ConfigPropertyNames);
|
|
1313
1313
|
// Invalid or incomplete config
|
|
1314
1314
|
if (config === null) {
|
|
1315
1315
|
throw new Error('Invalid config for "updateCustomCodeDeployment"');
|
|
1316
1316
|
}
|
|
1317
|
-
return buildNetworkSnapshot$
|
|
1317
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
1318
1318
|
};
|
|
1319
1319
|
};
|
|
1320
1320
|
|
|
@@ -1381,7 +1381,11 @@ function validate$2(obj, path = 'CustomCodeExecutionBaseRepresentation') {
|
|
|
1381
1381
|
})();
|
|
1382
1382
|
return v_error === undefined ? null : v_error;
|
|
1383
1383
|
}
|
|
1384
|
-
const
|
|
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() {
|
|
1385
1389
|
return {
|
|
1386
1390
|
kind: 'Fragment',
|
|
1387
1391
|
version: VERSION$2,
|
|
@@ -1501,6 +1505,27 @@ function equals$2(existing, incoming) {
|
|
|
1501
1505
|
}
|
|
1502
1506
|
return true;
|
|
1503
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
|
+
}
|
|
1504
1529
|
|
|
1505
1530
|
const VERSION$1 = "eff3ca61ebb18d80a094043be3f81c07";
|
|
1506
1531
|
function validate$1(obj, path = 'CustomCodeExecutionCollectionRepresentation') {
|
|
@@ -1551,8 +1576,8 @@ const RepresentationType$1 = 'CustomCodeExecutionCollectionRepresentation';
|
|
|
1551
1576
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1552
1577
|
return input;
|
|
1553
1578
|
}
|
|
1554
|
-
const select$
|
|
1555
|
-
const { selections: CustomCodeExecutionBaseRepresentation__selections, opaque: CustomCodeExecutionBaseRepresentation__opaque, } = select$
|
|
1579
|
+
const select$4 = function CustomCodeExecutionCollectionRepresentationSelect() {
|
|
1580
|
+
const { selections: CustomCodeExecutionBaseRepresentation__selections, opaque: CustomCodeExecutionBaseRepresentation__opaque, } = select$5();
|
|
1556
1581
|
return {
|
|
1557
1582
|
kind: 'Fragment',
|
|
1558
1583
|
version: VERSION$1,
|
|
@@ -1656,19 +1681,153 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1656
1681
|
});
|
|
1657
1682
|
}
|
|
1658
1683
|
|
|
1659
|
-
function select$
|
|
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);
|
|
1660
1762
|
return select$3();
|
|
1661
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
|
+
}
|
|
1662
1821
|
function keyBuilder$3(luvio, params) {
|
|
1663
|
-
return keyPrefix + '::
|
|
1822
|
+
return keyPrefix + '::CustomCodeExecutionBaseRepresentation:(' + 'customCodeExecutionId:' + params.urlParams.customCodeExecutionId + ',' + 'customCodeNameOrId:' + params.urlParams.customCodeNameOrId + ')';
|
|
1664
1823
|
}
|
|
1665
1824
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1666
|
-
getTypeCacheKeys$
|
|
1825
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1667
1826
|
}
|
|
1668
1827
|
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
1669
1828
|
const { body } = response;
|
|
1670
1829
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
1671
|
-
luvio.storeIngest(key, ingest$
|
|
1830
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1672
1831
|
const snapshot = luvio.storeLookup({
|
|
1673
1832
|
recordId: key,
|
|
1674
1833
|
node: select$2(),
|
|
@@ -1692,31 +1851,30 @@ function createResourceRequest$1(config) {
|
|
|
1692
1851
|
const headers = {};
|
|
1693
1852
|
return {
|
|
1694
1853
|
baseUri: '/services/data/v64.0',
|
|
1695
|
-
basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '/executions',
|
|
1854
|
+
basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '/executions/' + config.urlParams.customCodeExecutionId + '',
|
|
1696
1855
|
method: 'get',
|
|
1697
1856
|
body: null,
|
|
1698
1857
|
urlParams: config.urlParams,
|
|
1699
|
-
queryParams:
|
|
1858
|
+
queryParams: {},
|
|
1700
1859
|
headers,
|
|
1701
1860
|
priority: 'normal',
|
|
1702
1861
|
};
|
|
1703
1862
|
}
|
|
1704
1863
|
|
|
1705
|
-
const adapterName$1 = '
|
|
1706
|
-
const
|
|
1864
|
+
const adapterName$1 = 'getCustomCodeExecution';
|
|
1865
|
+
const getCustomCodeExecution_ConfigPropertyMetadata = [
|
|
1866
|
+
generateParamConfigMetadata('customCodeExecutionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1707
1867
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1708
|
-
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1709
|
-
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1710
1868
|
];
|
|
1711
|
-
const
|
|
1712
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
1869
|
+
const getCustomCodeExecution_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCustomCodeExecution_ConfigPropertyMetadata);
|
|
1870
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(getCustomCodeExecution_ConfigPropertyMetadata);
|
|
1713
1871
|
function keyBuilder$2(luvio, config) {
|
|
1714
1872
|
const resourceParams = createResourceParams$1(config);
|
|
1715
1873
|
return keyBuilder$3(luvio, resourceParams);
|
|
1716
1874
|
}
|
|
1717
1875
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1718
1876
|
const config = {};
|
|
1719
|
-
typeCheckConfig$
|
|
1877
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeExecution_ConfigPropertyMetadata);
|
|
1720
1878
|
return config;
|
|
1721
1879
|
}
|
|
1722
1880
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1765,7 +1923,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1765
1923
|
});
|
|
1766
1924
|
}
|
|
1767
1925
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1768
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1926
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1769
1927
|
}
|
|
1770
1928
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1771
1929
|
const { luvio, config } = context;
|
|
@@ -1780,8 +1938,8 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
1780
1938
|
});
|
|
1781
1939
|
return cacheSnapshot;
|
|
1782
1940
|
}
|
|
1783
|
-
const
|
|
1784
|
-
const config = validateAdapterConfig$1(untrustedConfig,
|
|
1941
|
+
const getCustomCodeExecutionAdapterFactory = (luvio) => function byoc__getCustomCodeExecution(untrustedConfig, requestContext) {
|
|
1942
|
+
const config = validateAdapterConfig$1(untrustedConfig, getCustomCodeExecution_ConfigPropertyNames);
|
|
1785
1943
|
// Invalid or incomplete config
|
|
1786
1944
|
if (config === null) {
|
|
1787
1945
|
return null;
|
|
@@ -1903,14 +2061,14 @@ const getCustomCodeExecutionLogs_ConfigPropertyMetadata = [
|
|
|
1903
2061
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1904
2062
|
];
|
|
1905
2063
|
const getCustomCodeExecutionLogs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getCustomCodeExecutionLogs_ConfigPropertyMetadata);
|
|
1906
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2064
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$8(getCustomCodeExecutionLogs_ConfigPropertyMetadata);
|
|
1907
2065
|
function keyBuilder(luvio, config) {
|
|
1908
2066
|
const resourceParams = createResourceParams(config);
|
|
1909
2067
|
return keyBuilder$1(luvio, resourceParams);
|
|
1910
2068
|
}
|
|
1911
2069
|
function typeCheckConfig(untrustedConfig) {
|
|
1912
2070
|
const config = {};
|
|
1913
|
-
typeCheckConfig$
|
|
2071
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeExecutionLogs_ConfigPropertyMetadata);
|
|
1914
2072
|
return config;
|
|
1915
2073
|
}
|
|
1916
2074
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1959,7 +2117,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1959
2117
|
});
|
|
1960
2118
|
}
|
|
1961
2119
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1962
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2120
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1963
2121
|
}
|
|
1964
2122
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1965
2123
|
const { luvio, config } = context;
|
|
@@ -1984,4 +2142,4 @@ const getCustomCodeExecutionLogsAdapterFactory = (luvio) => function byoc__getCu
|
|
|
1984
2142
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1985
2143
|
};
|
|
1986
2144
|
|
|
1987
|
-
export { createCustomCodeDeploymentAdapterFactory, deleteCustomCodeDeploymentAdapterFactory, getCustomCodeDeploymentAdapterFactory, getCustomCodeDeploymentsAdapterFactory, getCustomCodeExecutionLogsAdapterFactory, getCustomCodeExecutionsAdapterFactory, updateCustomCodeDeploymentAdapterFactory };
|
|
2145
|
+
export { createCustomCodeDeploymentAdapterFactory, deleteCustomCodeDeploymentAdapterFactory, getCustomCodeDeploymentAdapterFactory, getCustomCodeDeploymentsAdapterFactory, getCustomCodeExecutionAdapterFactory, getCustomCodeExecutionLogsAdapterFactory, getCustomCodeExecutionsAdapterFactory, updateCustomCodeDeploymentAdapterFactory };
|