@salesforce/lds-adapters-cdp-byoc 1.354.0-dev16 → 1.354.0-dev17
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
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$8, typeCheckConfig as typeCheckConfig$8, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -146,7 +146,7 @@ function validate$5(obj, path = 'CdpUserRepresentation') {
|
|
|
146
146
|
})();
|
|
147
147
|
return v_error === undefined ? null : v_error;
|
|
148
148
|
}
|
|
149
|
-
const select$
|
|
149
|
+
const select$c = function CdpUserRepresentationSelect() {
|
|
150
150
|
return {
|
|
151
151
|
kind: 'Fragment',
|
|
152
152
|
version: VERSION$5,
|
|
@@ -327,21 +327,21 @@ function validate$4(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
327
327
|
})();
|
|
328
328
|
return v_error === undefined ? null : v_error;
|
|
329
329
|
}
|
|
330
|
-
const RepresentationType$
|
|
331
|
-
function keyBuilder$
|
|
332
|
-
return keyPrefix + '::' + RepresentationType$
|
|
330
|
+
const RepresentationType$4 = 'CustomCodeDeploymentRepresentation';
|
|
331
|
+
function keyBuilder$b(luvio, config) {
|
|
332
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
333
333
|
}
|
|
334
334
|
function keyBuilderFromType(luvio, object) {
|
|
335
335
|
const keyParams = {
|
|
336
336
|
id: object.id
|
|
337
337
|
};
|
|
338
|
-
return keyBuilder$
|
|
338
|
+
return keyBuilder$b(luvio, keyParams);
|
|
339
339
|
}
|
|
340
|
-
function normalize$
|
|
340
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
341
341
|
return input;
|
|
342
342
|
}
|
|
343
|
-
const select$
|
|
344
|
-
const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$
|
|
343
|
+
const select$b = function CustomCodeDeploymentRepresentationSelect() {
|
|
344
|
+
const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$c();
|
|
345
345
|
return {
|
|
346
346
|
kind: 'Fragment',
|
|
347
347
|
version: VERSION$4,
|
|
@@ -592,7 +592,7 @@ function equals$4(existing, incoming) {
|
|
|
592
592
|
}
|
|
593
593
|
return true;
|
|
594
594
|
}
|
|
595
|
-
const ingest$
|
|
595
|
+
const ingest$4 = function CustomCodeDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
596
596
|
if (process.env.NODE_ENV !== 'production') {
|
|
597
597
|
const validateError = validate$4(input);
|
|
598
598
|
if (validateError !== null) {
|
|
@@ -601,32 +601,32 @@ const ingest$3 = function CustomCodeDeploymentRepresentationIngest(input, path,
|
|
|
601
601
|
}
|
|
602
602
|
const key = keyBuilderFromType(luvio, input);
|
|
603
603
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
604
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
604
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "byoc", VERSION$4, RepresentationType$4, equals$4);
|
|
605
605
|
return createLink(key);
|
|
606
606
|
};
|
|
607
|
-
function getTypeCacheKeys$
|
|
607
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
608
608
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
609
609
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
610
610
|
rootKeySet.set(rootKey, {
|
|
611
611
|
namespace: keyPrefix,
|
|
612
|
-
representationName: RepresentationType$
|
|
612
|
+
representationName: RepresentationType$4,
|
|
613
613
|
mergeable: false
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
-
function select$
|
|
618
|
-
return select$
|
|
617
|
+
function select$a(luvio, params) {
|
|
618
|
+
return select$b();
|
|
619
619
|
}
|
|
620
|
-
function getResponseCacheKeys$
|
|
621
|
-
getTypeCacheKeys$
|
|
620
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
621
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
622
622
|
}
|
|
623
|
-
function ingestSuccess$
|
|
623
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
624
624
|
const { body } = response;
|
|
625
625
|
const key = keyBuilderFromType(luvio, body);
|
|
626
|
-
luvio.storeIngest(key, ingest$
|
|
626
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
627
627
|
const snapshot = luvio.storeLookup({
|
|
628
628
|
recordId: key,
|
|
629
|
-
node: select$
|
|
629
|
+
node: select$a(),
|
|
630
630
|
variables: {},
|
|
631
631
|
});
|
|
632
632
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -637,7 +637,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
637
637
|
deepFreeze(snapshot.data);
|
|
638
638
|
return snapshot;
|
|
639
639
|
}
|
|
640
|
-
function createResourceRequest$
|
|
640
|
+
function createResourceRequest$7(config) {
|
|
641
641
|
const headers = {};
|
|
642
642
|
return {
|
|
643
643
|
baseUri: '/services/data/v64.0',
|
|
@@ -651,7 +651,7 @@ function createResourceRequest$6(config) {
|
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
653
|
|
|
654
|
-
const adapterName$
|
|
654
|
+
const adapterName$7 = 'createCustomCodeDeployment';
|
|
655
655
|
const createCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
656
656
|
generateParamConfigMetadata('codeType', false, 2 /* Body */, 0 /* String */),
|
|
657
657
|
generateParamConfigMetadata('functionInvokeOptions', false, 2 /* Body */, 0 /* String */, true),
|
|
@@ -664,11 +664,11 @@ const createCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
|
664
664
|
generateParamConfigMetadata('parameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
665
665
|
generateParamConfigMetadata('version', true, 2 /* Body */, 0 /* String */),
|
|
666
666
|
];
|
|
667
|
-
const createCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
668
|
-
const createResourceParams$
|
|
669
|
-
function typeCheckConfig$
|
|
667
|
+
const createCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createCustomCodeDeployment_ConfigPropertyMetadata);
|
|
668
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(createCustomCodeDeployment_ConfigPropertyMetadata);
|
|
669
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
670
670
|
const config = {};
|
|
671
|
-
typeCheckConfig$
|
|
671
|
+
typeCheckConfig$8(untrustedConfig, config, createCustomCodeDeployment_ConfigPropertyMetadata);
|
|
672
672
|
const untrustedConfig_parameters = untrustedConfig.parameters;
|
|
673
673
|
if (untrustedIsObject(untrustedConfig_parameters)) {
|
|
674
674
|
const untrustedConfig_parameters_object = {};
|
|
@@ -688,30 +688,30 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
688
688
|
}
|
|
689
689
|
return config;
|
|
690
690
|
}
|
|
691
|
-
function validateAdapterConfig$
|
|
691
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
692
692
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
693
693
|
return null;
|
|
694
694
|
}
|
|
695
695
|
if (process.env.NODE_ENV !== 'production') {
|
|
696
696
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
697
697
|
}
|
|
698
|
-
const config = typeCheckConfig$
|
|
698
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
699
699
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
700
700
|
return null;
|
|
701
701
|
}
|
|
702
702
|
return config;
|
|
703
703
|
}
|
|
704
|
-
function buildNetworkSnapshot$
|
|
705
|
-
const resourceParams = createResourceParams$
|
|
706
|
-
const request = createResourceRequest$
|
|
704
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
705
|
+
const resourceParams = createResourceParams$7(config);
|
|
706
|
+
const request = createResourceRequest$7(resourceParams);
|
|
707
707
|
return luvio.dispatchResourceRequest(request, options)
|
|
708
708
|
.then((response) => {
|
|
709
709
|
return luvio.handleSuccessResponse(() => {
|
|
710
|
-
const snapshot = ingestSuccess$
|
|
710
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
711
711
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
712
712
|
}, () => {
|
|
713
713
|
const cache = new StoreKeyMap();
|
|
714
|
-
getResponseCacheKeys$
|
|
714
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
715
715
|
return cache;
|
|
716
716
|
});
|
|
717
717
|
}, (response) => {
|
|
@@ -721,33 +721,33 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
721
721
|
}
|
|
722
722
|
const createCustomCodeDeploymentAdapterFactory = (luvio) => {
|
|
723
723
|
return function createCustomCodeDeployment(untrustedConfig) {
|
|
724
|
-
const config = validateAdapterConfig$
|
|
724
|
+
const config = validateAdapterConfig$7(untrustedConfig, createCustomCodeDeployment_ConfigPropertyNames);
|
|
725
725
|
// Invalid or incomplete config
|
|
726
726
|
if (config === null) {
|
|
727
727
|
throw new Error('Invalid config for "createCustomCodeDeployment"');
|
|
728
728
|
}
|
|
729
|
-
return buildNetworkSnapshot$
|
|
729
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
730
730
|
};
|
|
731
731
|
};
|
|
732
732
|
|
|
733
|
-
function keyBuilder$
|
|
734
|
-
return keyBuilder$
|
|
733
|
+
function keyBuilder$a(luvio, params) {
|
|
734
|
+
return keyBuilder$b(luvio, {
|
|
735
735
|
id: params.urlParams.customCodeNameOrId
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
|
-
function getResponseCacheKeys$
|
|
739
|
-
const key = keyBuilder$
|
|
738
|
+
function getResponseCacheKeys$6(cacheKeyMap, luvio, resourceParams) {
|
|
739
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
740
740
|
cacheKeyMap.set(key, {
|
|
741
741
|
namespace: keyPrefix,
|
|
742
|
-
representationName: RepresentationType$
|
|
742
|
+
representationName: RepresentationType$4,
|
|
743
743
|
mergeable: false
|
|
744
744
|
});
|
|
745
745
|
}
|
|
746
746
|
function evictSuccess(luvio, resourceParams) {
|
|
747
|
-
const key = keyBuilder$
|
|
747
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
748
748
|
luvio.storeEvict(key);
|
|
749
749
|
}
|
|
750
|
-
function createResourceRequest$
|
|
750
|
+
function createResourceRequest$6(config) {
|
|
751
751
|
const headers = {};
|
|
752
752
|
return {
|
|
753
753
|
baseUri: '/services/data/v64.0',
|
|
@@ -761,33 +761,33 @@ function createResourceRequest$5(config) {
|
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
763
|
|
|
764
|
-
const adapterName$
|
|
764
|
+
const adapterName$6 = 'deleteCustomCodeDeployment';
|
|
765
765
|
const deleteCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
766
766
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
767
767
|
];
|
|
768
|
-
const deleteCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
769
|
-
const createResourceParams$
|
|
770
|
-
function typeCheckConfig$
|
|
768
|
+
const deleteCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, deleteCustomCodeDeployment_ConfigPropertyMetadata);
|
|
769
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(deleteCustomCodeDeployment_ConfigPropertyMetadata);
|
|
770
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
771
771
|
const config = {};
|
|
772
|
-
typeCheckConfig$
|
|
772
|
+
typeCheckConfig$8(untrustedConfig, config, deleteCustomCodeDeployment_ConfigPropertyMetadata);
|
|
773
773
|
return config;
|
|
774
774
|
}
|
|
775
|
-
function validateAdapterConfig$
|
|
775
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
776
776
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
777
777
|
return null;
|
|
778
778
|
}
|
|
779
779
|
if (process.env.NODE_ENV !== 'production') {
|
|
780
780
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
781
781
|
}
|
|
782
|
-
const config = typeCheckConfig$
|
|
782
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
783
783
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
784
784
|
return null;
|
|
785
785
|
}
|
|
786
786
|
return config;
|
|
787
787
|
}
|
|
788
|
-
function buildNetworkSnapshot$
|
|
789
|
-
const resourceParams = createResourceParams$
|
|
790
|
-
const request = createResourceRequest$
|
|
788
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
789
|
+
const resourceParams = createResourceParams$6(config);
|
|
790
|
+
const request = createResourceRequest$6(resourceParams);
|
|
791
791
|
return luvio.dispatchResourceRequest(request, options)
|
|
792
792
|
.then(() => {
|
|
793
793
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -795,7 +795,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
795
795
|
return luvio.storeBroadcast();
|
|
796
796
|
}, () => {
|
|
797
797
|
const cache = new StoreKeyMap();
|
|
798
|
-
getResponseCacheKeys$
|
|
798
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams);
|
|
799
799
|
return cache;
|
|
800
800
|
});
|
|
801
801
|
}, (response) => {
|
|
@@ -805,33 +805,33 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
805
805
|
}
|
|
806
806
|
const deleteCustomCodeDeploymentAdapterFactory = (luvio) => {
|
|
807
807
|
return function byocdeleteCustomCodeDeployment(untrustedConfig) {
|
|
808
|
-
const config = validateAdapterConfig$
|
|
808
|
+
const config = validateAdapterConfig$6(untrustedConfig, deleteCustomCodeDeployment_ConfigPropertyNames);
|
|
809
809
|
// Invalid or incomplete config
|
|
810
810
|
if (config === null) {
|
|
811
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
811
|
+
throw new Error(`Invalid config for "${adapterName$6}"`);
|
|
812
812
|
}
|
|
813
|
-
return buildNetworkSnapshot$
|
|
813
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
814
814
|
};
|
|
815
815
|
};
|
|
816
816
|
|
|
817
|
-
function select$
|
|
818
|
-
return select$
|
|
817
|
+
function select$9(luvio, params) {
|
|
818
|
+
return select$b();
|
|
819
819
|
}
|
|
820
|
-
function keyBuilder$
|
|
821
|
-
return keyBuilder$
|
|
820
|
+
function keyBuilder$9(luvio, params) {
|
|
821
|
+
return keyBuilder$b(luvio, {
|
|
822
822
|
id: params.urlParams.customCodeNameOrId
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
-
function getResponseCacheKeys$
|
|
826
|
-
getTypeCacheKeys$
|
|
825
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
826
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
827
827
|
}
|
|
828
|
-
function ingestSuccess$
|
|
828
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
829
829
|
const { body } = response;
|
|
830
|
-
const key = keyBuilder$
|
|
831
|
-
luvio.storeIngest(key, ingest$
|
|
830
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
831
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
832
832
|
const snapshot = luvio.storeLookup({
|
|
833
833
|
recordId: key,
|
|
834
|
-
node: select$
|
|
834
|
+
node: select$9(),
|
|
835
835
|
variables: {},
|
|
836
836
|
}, snapshotRefresh);
|
|
837
837
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -842,13 +842,13 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
842
842
|
deepFreeze(snapshot.data);
|
|
843
843
|
return snapshot;
|
|
844
844
|
}
|
|
845
|
-
function ingestError$
|
|
846
|
-
const key = keyBuilder$
|
|
845
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
846
|
+
const key = keyBuilder$9(luvio, params);
|
|
847
847
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
848
848
|
luvio.storeIngestError(key, errorSnapshot);
|
|
849
849
|
return errorSnapshot;
|
|
850
850
|
}
|
|
851
|
-
function createResourceRequest$
|
|
851
|
+
function createResourceRequest$5(config) {
|
|
852
852
|
const headers = {};
|
|
853
853
|
return {
|
|
854
854
|
baseUri: '/services/data/v64.0',
|
|
@@ -866,97 +866,97 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
866
866
|
urlParams: {},
|
|
867
867
|
};
|
|
868
868
|
config.urlParams.customCodeNameOrId = representation.id;
|
|
869
|
-
return createResourceRequest$
|
|
869
|
+
return createResourceRequest$5(config);
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
-
const adapterName$
|
|
872
|
+
const adapterName$5 = 'getCustomCodeDeployment';
|
|
873
873
|
const getCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
874
874
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
875
875
|
];
|
|
876
|
-
const getCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
877
|
-
const createResourceParams$
|
|
878
|
-
function keyBuilder$
|
|
879
|
-
const resourceParams = createResourceParams$
|
|
880
|
-
return keyBuilder$
|
|
876
|
+
const getCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCustomCodeDeployment_ConfigPropertyMetadata);
|
|
877
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getCustomCodeDeployment_ConfigPropertyMetadata);
|
|
878
|
+
function keyBuilder$8(luvio, config) {
|
|
879
|
+
const resourceParams = createResourceParams$5(config);
|
|
880
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
881
881
|
}
|
|
882
|
-
function typeCheckConfig$
|
|
882
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
883
883
|
const config = {};
|
|
884
|
-
typeCheckConfig$
|
|
884
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeDeployment_ConfigPropertyMetadata);
|
|
885
885
|
return config;
|
|
886
886
|
}
|
|
887
|
-
function validateAdapterConfig$
|
|
887
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
888
888
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
889
889
|
return null;
|
|
890
890
|
}
|
|
891
891
|
if (process.env.NODE_ENV !== 'production') {
|
|
892
892
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
893
893
|
}
|
|
894
|
-
const config = typeCheckConfig$
|
|
894
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
895
895
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
896
896
|
return null;
|
|
897
897
|
}
|
|
898
898
|
return config;
|
|
899
899
|
}
|
|
900
|
-
function adapterFragment$
|
|
901
|
-
createResourceParams$
|
|
902
|
-
return select$
|
|
900
|
+
function adapterFragment$4(luvio, config) {
|
|
901
|
+
createResourceParams$5(config);
|
|
902
|
+
return select$9();
|
|
903
903
|
}
|
|
904
|
-
function onFetchResponseSuccess$
|
|
905
|
-
const snapshot = ingestSuccess$
|
|
904
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
905
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
906
906
|
config,
|
|
907
|
-
resolve: () => buildNetworkSnapshot$
|
|
907
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
908
908
|
});
|
|
909
909
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
910
910
|
}
|
|
911
|
-
function onFetchResponseError$
|
|
912
|
-
const snapshot = ingestError$
|
|
911
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
912
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
913
913
|
config,
|
|
914
|
-
resolve: () => buildNetworkSnapshot$
|
|
914
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
915
915
|
});
|
|
916
916
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
917
917
|
}
|
|
918
|
-
function buildNetworkSnapshot$
|
|
919
|
-
const resourceParams = createResourceParams$
|
|
920
|
-
const request = createResourceRequest$
|
|
918
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
919
|
+
const resourceParams = createResourceParams$5(config);
|
|
920
|
+
const request = createResourceRequest$5(resourceParams);
|
|
921
921
|
return luvio.dispatchResourceRequest(request, options)
|
|
922
922
|
.then((response) => {
|
|
923
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
923
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
924
924
|
const cache = new StoreKeyMap();
|
|
925
|
-
getResponseCacheKeys$
|
|
925
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
926
926
|
return cache;
|
|
927
927
|
});
|
|
928
928
|
}, (response) => {
|
|
929
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
929
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
930
930
|
});
|
|
931
931
|
}
|
|
932
|
-
function buildNetworkSnapshotCachePolicy$
|
|
933
|
-
return buildNetworkSnapshotCachePolicy$
|
|
932
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
933
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
934
934
|
}
|
|
935
|
-
function buildCachedSnapshotCachePolicy$
|
|
935
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
936
936
|
const { luvio, config } = context;
|
|
937
937
|
const selector = {
|
|
938
|
-
recordId: keyBuilder$
|
|
939
|
-
node: adapterFragment$
|
|
938
|
+
recordId: keyBuilder$8(luvio, config),
|
|
939
|
+
node: adapterFragment$4(luvio, config),
|
|
940
940
|
variables: {},
|
|
941
941
|
};
|
|
942
942
|
const cacheSnapshot = storeLookup(selector, {
|
|
943
943
|
config,
|
|
944
|
-
resolve: () => buildNetworkSnapshot$
|
|
944
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
945
945
|
});
|
|
946
946
|
return cacheSnapshot;
|
|
947
947
|
}
|
|
948
948
|
const getCustomCodeDeploymentAdapterFactory = (luvio) => function byoc__getCustomCodeDeployment(untrustedConfig, requestContext) {
|
|
949
|
-
const config = validateAdapterConfig$
|
|
949
|
+
const config = validateAdapterConfig$5(untrustedConfig, getCustomCodeDeployment_ConfigPropertyNames);
|
|
950
950
|
// Invalid or incomplete config
|
|
951
951
|
if (config === null) {
|
|
952
952
|
return null;
|
|
953
953
|
}
|
|
954
954
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
955
|
-
buildCachedSnapshotCachePolicy$
|
|
955
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
956
956
|
};
|
|
957
957
|
const notifyChangeFactory = (luvio, options) => {
|
|
958
958
|
return function getSsotDataCustomCodeByCustomCodeNameOrIdNotifyChange(configs) {
|
|
959
|
-
const keys = configs.map(c => keyBuilder$
|
|
959
|
+
const keys = configs.map(c => keyBuilder$b(luvio, c));
|
|
960
960
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
961
961
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
962
962
|
const { key, record: val } = entries[i];
|
|
@@ -965,11 +965,11 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
965
965
|
.then((response) => {
|
|
966
966
|
return luvio.handleSuccessResponse(() => {
|
|
967
967
|
const { body } = response;
|
|
968
|
-
luvio.storeIngest(key, ingest$
|
|
968
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
969
969
|
return luvio.storeBroadcast();
|
|
970
970
|
}, () => {
|
|
971
971
|
const cache = new StoreKeyMap();
|
|
972
|
-
getTypeCacheKeys$
|
|
972
|
+
getTypeCacheKeys$4(cache, luvio, response.body);
|
|
973
973
|
return cache;
|
|
974
974
|
});
|
|
975
975
|
}, (error) => {
|
|
@@ -1022,14 +1022,14 @@ function validate$3(obj, path = 'CustomCodeDeploymentCollectionRepresentation')
|
|
|
1022
1022
|
})();
|
|
1023
1023
|
return v_error === undefined ? null : v_error;
|
|
1024
1024
|
}
|
|
1025
|
-
const RepresentationType$
|
|
1026
|
-
function normalize$
|
|
1025
|
+
const RepresentationType$3 = 'CustomCodeDeploymentCollectionRepresentation';
|
|
1026
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1027
1027
|
const input_customCodeDeployments = input.customCodeDeployments;
|
|
1028
1028
|
const input_customCodeDeployments_id = path.fullPath + '__customCodeDeployments';
|
|
1029
1029
|
for (let i = 0; i < input_customCodeDeployments.length; i++) {
|
|
1030
1030
|
const input_customCodeDeployments_item = input_customCodeDeployments[i];
|
|
1031
1031
|
let input_customCodeDeployments_item_id = input_customCodeDeployments_id + '__' + i;
|
|
1032
|
-
input_customCodeDeployments[i] = ingest$
|
|
1032
|
+
input_customCodeDeployments[i] = ingest$4(input_customCodeDeployments_item, {
|
|
1033
1033
|
fullPath: input_customCodeDeployments_item_id,
|
|
1034
1034
|
propertyName: i,
|
|
1035
1035
|
parent: {
|
|
@@ -1042,7 +1042,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return input;
|
|
1044
1044
|
}
|
|
1045
|
-
const select$
|
|
1045
|
+
const select$8 = function CustomCodeDeploymentCollectionRepresentationSelect() {
|
|
1046
1046
|
return {
|
|
1047
1047
|
kind: 'Fragment',
|
|
1048
1048
|
version: VERSION$3,
|
|
@@ -1056,7 +1056,7 @@ const select$7 = function CustomCodeDeploymentCollectionRepresentationSelect() {
|
|
|
1056
1056
|
name: 'customCodeDeployments',
|
|
1057
1057
|
kind: 'Link',
|
|
1058
1058
|
plural: true,
|
|
1059
|
-
fragment: select$
|
|
1059
|
+
fragment: select$b()
|
|
1060
1060
|
},
|
|
1061
1061
|
{
|
|
1062
1062
|
name: 'nextPageUrl',
|
|
@@ -1106,7 +1106,7 @@ function equals$3(existing, incoming) {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
return true;
|
|
1108
1108
|
}
|
|
1109
|
-
const ingest$
|
|
1109
|
+
const ingest$3 = function CustomCodeDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1110
1110
|
if (process.env.NODE_ENV !== 'production') {
|
|
1111
1111
|
const validateError = validate$3(input);
|
|
1112
1112
|
if (validateError !== null) {
|
|
@@ -1115,39 +1115,39 @@ const ingest$2 = function CustomCodeDeploymentCollectionRepresentationIngest(inp
|
|
|
1115
1115
|
}
|
|
1116
1116
|
const key = path.fullPath;
|
|
1117
1117
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1118
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1118
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "byoc", VERSION$3, RepresentationType$3, equals$3);
|
|
1119
1119
|
return createLink(key);
|
|
1120
1120
|
};
|
|
1121
|
-
function getTypeCacheKeys$
|
|
1121
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
1122
1122
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1123
1123
|
const rootKey = fullPathFactory();
|
|
1124
1124
|
rootKeySet.set(rootKey, {
|
|
1125
1125
|
namespace: keyPrefix,
|
|
1126
|
-
representationName: RepresentationType$
|
|
1126
|
+
representationName: RepresentationType$3,
|
|
1127
1127
|
mergeable: false
|
|
1128
1128
|
});
|
|
1129
1129
|
const input_customCodeDeployments_length = input.customCodeDeployments.length;
|
|
1130
1130
|
for (let i = 0; i < input_customCodeDeployments_length; i++) {
|
|
1131
|
-
getTypeCacheKeys$
|
|
1131
|
+
getTypeCacheKeys$4(rootKeySet, luvio, input.customCodeDeployments[i]);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
|
|
1135
|
-
function select$
|
|
1136
|
-
return select$
|
|
1135
|
+
function select$7(luvio, params) {
|
|
1136
|
+
return select$8();
|
|
1137
1137
|
}
|
|
1138
|
-
function keyBuilder$
|
|
1138
|
+
function keyBuilder$7(luvio, params) {
|
|
1139
1139
|
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 + ')';
|
|
1140
1140
|
}
|
|
1141
|
-
function getResponseCacheKeys$
|
|
1142
|
-
getTypeCacheKeys$
|
|
1141
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1142
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
1143
1143
|
}
|
|
1144
|
-
function ingestSuccess$
|
|
1144
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
1145
1145
|
const { body } = response;
|
|
1146
|
-
const key = keyBuilder$
|
|
1147
|
-
luvio.storeIngest(key, ingest$
|
|
1146
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
1147
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
1148
1148
|
const snapshot = luvio.storeLookup({
|
|
1149
1149
|
recordId: key,
|
|
1150
|
-
node: select$
|
|
1150
|
+
node: select$7(),
|
|
1151
1151
|
variables: {},
|
|
1152
1152
|
}, snapshotRefresh);
|
|
1153
1153
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1158,13 +1158,13 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1158
1158
|
deepFreeze(snapshot.data);
|
|
1159
1159
|
return snapshot;
|
|
1160
1160
|
}
|
|
1161
|
-
function ingestError$
|
|
1162
|
-
const key = keyBuilder$
|
|
1161
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
1162
|
+
const key = keyBuilder$7(luvio, params);
|
|
1163
1163
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1164
1164
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1165
1165
|
return errorSnapshot;
|
|
1166
1166
|
}
|
|
1167
|
-
function createResourceRequest$
|
|
1167
|
+
function createResourceRequest$4(config) {
|
|
1168
1168
|
const headers = {};
|
|
1169
1169
|
return {
|
|
1170
1170
|
baseUri: '/services/data/v64.0',
|
|
@@ -1178,7 +1178,7 @@ function createResourceRequest$3(config) {
|
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
1180
|
|
|
1181
|
-
const adapterName$
|
|
1181
|
+
const adapterName$4 = 'getCustomCodeDeployments';
|
|
1182
1182
|
const getCustomCodeDeployments_ConfigPropertyMetadata = [
|
|
1183
1183
|
generateParamConfigMetadata('codeType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1184
1184
|
generateParamConfigMetadata('deploymentStatus', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -1187,122 +1187,464 @@ const getCustomCodeDeployments_ConfigPropertyMetadata = [
|
|
|
1187
1187
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1188
1188
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1189
1189
|
];
|
|
1190
|
-
const getCustomCodeDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1191
|
-
const createResourceParams$
|
|
1192
|
-
function keyBuilder$
|
|
1193
|
-
const resourceParams = createResourceParams$
|
|
1194
|
-
return keyBuilder$
|
|
1190
|
+
const getCustomCodeDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCustomCodeDeployments_ConfigPropertyMetadata);
|
|
1191
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getCustomCodeDeployments_ConfigPropertyMetadata);
|
|
1192
|
+
function keyBuilder$6(luvio, config) {
|
|
1193
|
+
const resourceParams = createResourceParams$4(config);
|
|
1194
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
1195
1195
|
}
|
|
1196
|
-
function typeCheckConfig$
|
|
1196
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1197
1197
|
const config = {};
|
|
1198
|
-
typeCheckConfig$
|
|
1198
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeDeployments_ConfigPropertyMetadata);
|
|
1199
1199
|
return config;
|
|
1200
1200
|
}
|
|
1201
|
-
function validateAdapterConfig$
|
|
1201
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1202
1202
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1203
1203
|
return null;
|
|
1204
1204
|
}
|
|
1205
1205
|
if (process.env.NODE_ENV !== 'production') {
|
|
1206
1206
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1207
1207
|
}
|
|
1208
|
-
const config = typeCheckConfig$
|
|
1208
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1209
1209
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1210
1210
|
return null;
|
|
1211
1211
|
}
|
|
1212
1212
|
return config;
|
|
1213
1213
|
}
|
|
1214
|
-
function adapterFragment$
|
|
1215
|
-
createResourceParams$
|
|
1216
|
-
return select$
|
|
1214
|
+
function adapterFragment$3(luvio, config) {
|
|
1215
|
+
createResourceParams$4(config);
|
|
1216
|
+
return select$7();
|
|
1217
1217
|
}
|
|
1218
|
-
function onFetchResponseSuccess$
|
|
1219
|
-
const snapshot = ingestSuccess$
|
|
1218
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
1219
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
1220
1220
|
config,
|
|
1221
|
-
resolve: () => buildNetworkSnapshot$
|
|
1221
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1222
1222
|
});
|
|
1223
1223
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1224
1224
|
}
|
|
1225
|
-
function onFetchResponseError$
|
|
1226
|
-
const snapshot = ingestError$
|
|
1225
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
1226
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
1227
1227
|
config,
|
|
1228
|
-
resolve: () => buildNetworkSnapshot$
|
|
1228
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1229
1229
|
});
|
|
1230
1230
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1231
1231
|
}
|
|
1232
|
-
function buildNetworkSnapshot$
|
|
1233
|
-
const resourceParams = createResourceParams$
|
|
1234
|
-
const request = createResourceRequest$
|
|
1232
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1233
|
+
const resourceParams = createResourceParams$4(config);
|
|
1234
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1235
1235
|
return luvio.dispatchResourceRequest(request, options)
|
|
1236
1236
|
.then((response) => {
|
|
1237
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1237
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
1238
1238
|
const cache = new StoreKeyMap();
|
|
1239
|
-
getResponseCacheKeys$
|
|
1239
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1240
1240
|
return cache;
|
|
1241
1241
|
});
|
|
1242
1242
|
}, (response) => {
|
|
1243
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1243
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
1244
1244
|
});
|
|
1245
1245
|
}
|
|
1246
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1247
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1246
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1247
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
1248
1248
|
}
|
|
1249
|
-
function buildCachedSnapshotCachePolicy$
|
|
1249
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1250
1250
|
const { luvio, config } = context;
|
|
1251
1251
|
const selector = {
|
|
1252
|
-
recordId: keyBuilder$
|
|
1253
|
-
node: adapterFragment$
|
|
1252
|
+
recordId: keyBuilder$6(luvio, config),
|
|
1253
|
+
node: adapterFragment$3(luvio, config),
|
|
1254
1254
|
variables: {},
|
|
1255
1255
|
};
|
|
1256
1256
|
const cacheSnapshot = storeLookup(selector, {
|
|
1257
1257
|
config,
|
|
1258
|
-
resolve: () => buildNetworkSnapshot$
|
|
1258
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1259
1259
|
});
|
|
1260
1260
|
return cacheSnapshot;
|
|
1261
1261
|
}
|
|
1262
1262
|
const getCustomCodeDeploymentsAdapterFactory = (luvio) => function byoc__getCustomCodeDeployments(untrustedConfig, requestContext) {
|
|
1263
|
-
const config = validateAdapterConfig$
|
|
1263
|
+
const config = validateAdapterConfig$4(untrustedConfig, getCustomCodeDeployments_ConfigPropertyNames);
|
|
1264
1264
|
// Invalid or incomplete config
|
|
1265
1265
|
if (config === null) {
|
|
1266
1266
|
return null;
|
|
1267
1267
|
}
|
|
1268
1268
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1269
|
-
buildCachedSnapshotCachePolicy$
|
|
1269
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1270
1270
|
};
|
|
1271
1271
|
|
|
1272
|
-
const VERSION$2 = "
|
|
1273
|
-
function validate$2(obj, path = '
|
|
1272
|
+
const VERSION$2 = "16ba4e83f3e94d331bcbdba6f3d301b9";
|
|
1273
|
+
function validate$2(obj, path = 'CustomCodeExecutionBaseRepresentation') {
|
|
1274
1274
|
const v_error = (() => {
|
|
1275
1275
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1276
1276
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1277
1277
|
}
|
|
1278
|
-
const
|
|
1279
|
-
const
|
|
1280
|
-
if (typeof
|
|
1281
|
-
return new TypeError('Expected "
|
|
1278
|
+
const obj_durationInSeconds = obj.durationInSeconds;
|
|
1279
|
+
const path_durationInSeconds = path + '.durationInSeconds';
|
|
1280
|
+
if (typeof obj_durationInSeconds !== 'number' || (typeof obj_durationInSeconds === 'number' && Math.floor(obj_durationInSeconds) !== obj_durationInSeconds)) {
|
|
1281
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_durationInSeconds + '" (at "' + path_durationInSeconds + '")');
|
|
1282
|
+
}
|
|
1283
|
+
const obj_endTime = obj.endTime;
|
|
1284
|
+
const path_endTime = path + '.endTime';
|
|
1285
|
+
if (typeof obj_endTime !== 'string') {
|
|
1286
|
+
return new TypeError('Expected "string" but received "' + typeof obj_endTime + '" (at "' + path_endTime + '")');
|
|
1287
|
+
}
|
|
1288
|
+
if (obj.errorCode !== undefined) {
|
|
1289
|
+
const obj_errorCode = obj.errorCode;
|
|
1290
|
+
const path_errorCode = path + '.errorCode';
|
|
1291
|
+
if (typeof obj_errorCode !== 'number' || (typeof obj_errorCode === 'number' && Math.floor(obj_errorCode) !== obj_errorCode)) {
|
|
1292
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
if (obj.errorMessage !== undefined) {
|
|
1296
|
+
const obj_errorMessage = obj.errorMessage;
|
|
1297
|
+
const path_errorMessage = path + '.errorMessage';
|
|
1298
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
1299
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
const obj_id = obj.id;
|
|
1303
|
+
const path_id = path + '.id';
|
|
1304
|
+
if (typeof obj_id !== 'string') {
|
|
1305
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1306
|
+
}
|
|
1307
|
+
const obj_rowsRead = obj.rowsRead;
|
|
1308
|
+
const path_rowsRead = path + '.rowsRead';
|
|
1309
|
+
if (typeof obj_rowsRead !== 'number' || (typeof obj_rowsRead === 'number' && Math.floor(obj_rowsRead) !== obj_rowsRead)) {
|
|
1310
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_rowsRead + '" (at "' + path_rowsRead + '")');
|
|
1311
|
+
}
|
|
1312
|
+
const obj_rowsWritten = obj.rowsWritten;
|
|
1313
|
+
const path_rowsWritten = path + '.rowsWritten';
|
|
1314
|
+
if (typeof obj_rowsWritten !== 'number' || (typeof obj_rowsWritten === 'number' && Math.floor(obj_rowsWritten) !== obj_rowsWritten)) {
|
|
1315
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_rowsWritten + '" (at "' + path_rowsWritten + '")');
|
|
1316
|
+
}
|
|
1317
|
+
const obj_startTime = obj.startTime;
|
|
1318
|
+
const path_startTime = path + '.startTime';
|
|
1319
|
+
if (typeof obj_startTime !== 'string') {
|
|
1320
|
+
return new TypeError('Expected "string" but received "' + typeof obj_startTime + '" (at "' + path_startTime + '")');
|
|
1321
|
+
}
|
|
1322
|
+
const obj_status = obj.status;
|
|
1323
|
+
const path_status = path + '.status';
|
|
1324
|
+
if (typeof obj_status !== 'string') {
|
|
1325
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1326
|
+
}
|
|
1327
|
+
const obj_submittedTime = obj.submittedTime;
|
|
1328
|
+
const path_submittedTime = path + '.submittedTime';
|
|
1329
|
+
if (typeof obj_submittedTime !== 'string') {
|
|
1330
|
+
return new TypeError('Expected "string" but received "' + typeof obj_submittedTime + '" (at "' + path_submittedTime + '")');
|
|
1282
1331
|
}
|
|
1283
1332
|
})();
|
|
1284
1333
|
return v_error === undefined ? null : v_error;
|
|
1285
1334
|
}
|
|
1286
|
-
const RepresentationType$
|
|
1287
|
-
function normalize$
|
|
1335
|
+
const RepresentationType$2 = 'CustomCodeExecutionBaseRepresentation';
|
|
1336
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1288
1337
|
return input;
|
|
1289
1338
|
}
|
|
1290
|
-
const select$
|
|
1339
|
+
const select$6 = function CustomCodeExecutionBaseRepresentationSelect() {
|
|
1291
1340
|
return {
|
|
1292
1341
|
kind: 'Fragment',
|
|
1293
1342
|
version: VERSION$2,
|
|
1294
1343
|
private: [],
|
|
1295
1344
|
selections: [
|
|
1296
1345
|
{
|
|
1297
|
-
name: '
|
|
1346
|
+
name: 'durationInSeconds',
|
|
1347
|
+
kind: 'Scalar'
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
name: 'endTime',
|
|
1351
|
+
kind: 'Scalar'
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
name: 'errorCode',
|
|
1355
|
+
kind: 'Scalar',
|
|
1356
|
+
required: false
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
name: 'errorMessage',
|
|
1360
|
+
kind: 'Scalar',
|
|
1361
|
+
required: false
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
name: 'id',
|
|
1365
|
+
kind: 'Scalar'
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
name: 'rowsRead',
|
|
1369
|
+
kind: 'Scalar'
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
name: 'rowsWritten',
|
|
1373
|
+
kind: 'Scalar'
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
name: 'startTime',
|
|
1377
|
+
kind: 'Scalar'
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
name: 'status',
|
|
1381
|
+
kind: 'Scalar'
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
name: 'submittedTime',
|
|
1298
1385
|
kind: 'Scalar'
|
|
1299
1386
|
}
|
|
1300
1387
|
]
|
|
1301
1388
|
};
|
|
1302
1389
|
};
|
|
1303
1390
|
function equals$2(existing, incoming) {
|
|
1304
|
-
const
|
|
1305
|
-
const
|
|
1391
|
+
const existing_durationInSeconds = existing.durationInSeconds;
|
|
1392
|
+
const incoming_durationInSeconds = incoming.durationInSeconds;
|
|
1393
|
+
if (!(existing_durationInSeconds === incoming_durationInSeconds)) {
|
|
1394
|
+
return false;
|
|
1395
|
+
}
|
|
1396
|
+
const existing_errorCode = existing.errorCode;
|
|
1397
|
+
const incoming_errorCode = incoming.errorCode;
|
|
1398
|
+
// if at least one of these optionals is defined
|
|
1399
|
+
if (existing_errorCode !== undefined || incoming_errorCode !== undefined) {
|
|
1400
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1401
|
+
// not equal
|
|
1402
|
+
if (existing_errorCode === undefined || incoming_errorCode === undefined) {
|
|
1403
|
+
return false;
|
|
1404
|
+
}
|
|
1405
|
+
if (!(existing_errorCode === incoming_errorCode)) {
|
|
1406
|
+
return false;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
const existing_rowsRead = existing.rowsRead;
|
|
1410
|
+
const incoming_rowsRead = incoming.rowsRead;
|
|
1411
|
+
if (!(existing_rowsRead === incoming_rowsRead)) {
|
|
1412
|
+
return false;
|
|
1413
|
+
}
|
|
1414
|
+
const existing_rowsWritten = existing.rowsWritten;
|
|
1415
|
+
const incoming_rowsWritten = incoming.rowsWritten;
|
|
1416
|
+
if (!(existing_rowsWritten === incoming_rowsWritten)) {
|
|
1417
|
+
return false;
|
|
1418
|
+
}
|
|
1419
|
+
const existing_endTime = existing.endTime;
|
|
1420
|
+
const incoming_endTime = incoming.endTime;
|
|
1421
|
+
if (!(existing_endTime === incoming_endTime)) {
|
|
1422
|
+
return false;
|
|
1423
|
+
}
|
|
1424
|
+
const existing_errorMessage = existing.errorMessage;
|
|
1425
|
+
const incoming_errorMessage = incoming.errorMessage;
|
|
1426
|
+
// if at least one of these optionals is defined
|
|
1427
|
+
if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
|
|
1428
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1429
|
+
// not equal
|
|
1430
|
+
if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
|
|
1431
|
+
return false;
|
|
1432
|
+
}
|
|
1433
|
+
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
1434
|
+
return false;
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
const existing_id = existing.id;
|
|
1438
|
+
const incoming_id = incoming.id;
|
|
1439
|
+
if (!(existing_id === incoming_id)) {
|
|
1440
|
+
return false;
|
|
1441
|
+
}
|
|
1442
|
+
const existing_startTime = existing.startTime;
|
|
1443
|
+
const incoming_startTime = incoming.startTime;
|
|
1444
|
+
if (!(existing_startTime === incoming_startTime)) {
|
|
1445
|
+
return false;
|
|
1446
|
+
}
|
|
1447
|
+
const existing_status = existing.status;
|
|
1448
|
+
const incoming_status = incoming.status;
|
|
1449
|
+
if (!(existing_status === incoming_status)) {
|
|
1450
|
+
return false;
|
|
1451
|
+
}
|
|
1452
|
+
const existing_submittedTime = existing.submittedTime;
|
|
1453
|
+
const incoming_submittedTime = incoming.submittedTime;
|
|
1454
|
+
if (!(existing_submittedTime === incoming_submittedTime)) {
|
|
1455
|
+
return false;
|
|
1456
|
+
}
|
|
1457
|
+
return true;
|
|
1458
|
+
}
|
|
1459
|
+
const ingest$2 = function CustomCodeExecutionBaseRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1460
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1461
|
+
const validateError = validate$2(input);
|
|
1462
|
+
if (validateError !== null) {
|
|
1463
|
+
throw validateError;
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
const key = path.fullPath;
|
|
1467
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1468
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "byoc", VERSION$2, RepresentationType$2, equals$2);
|
|
1469
|
+
return createLink(key);
|
|
1470
|
+
};
|
|
1471
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
1472
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1473
|
+
const rootKey = fullPathFactory();
|
|
1474
|
+
rootKeySet.set(rootKey, {
|
|
1475
|
+
namespace: keyPrefix,
|
|
1476
|
+
representationName: RepresentationType$2,
|
|
1477
|
+
mergeable: false
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
function select$5(luvio, params) {
|
|
1482
|
+
return select$6();
|
|
1483
|
+
}
|
|
1484
|
+
function keyBuilder$5(luvio, params) {
|
|
1485
|
+
return keyPrefix + '::CustomCodeExecutionBaseRepresentation:(' + 'customCodeExecutionId:' + params.urlParams.customCodeExecutionId + ',' + 'customCodeNameOrId:' + params.urlParams.customCodeNameOrId + ')';
|
|
1486
|
+
}
|
|
1487
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1488
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
1489
|
+
}
|
|
1490
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
1491
|
+
const { body } = response;
|
|
1492
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
1493
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1494
|
+
const snapshot = luvio.storeLookup({
|
|
1495
|
+
recordId: key,
|
|
1496
|
+
node: select$5(),
|
|
1497
|
+
variables: {},
|
|
1498
|
+
}, snapshotRefresh);
|
|
1499
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1500
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1501
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
deepFreeze(snapshot.data);
|
|
1505
|
+
return snapshot;
|
|
1506
|
+
}
|
|
1507
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1508
|
+
const key = keyBuilder$5(luvio, params);
|
|
1509
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1510
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
1511
|
+
return errorSnapshot;
|
|
1512
|
+
}
|
|
1513
|
+
function createResourceRequest$3(config) {
|
|
1514
|
+
const headers = {};
|
|
1515
|
+
return {
|
|
1516
|
+
baseUri: '/services/data/v64.0',
|
|
1517
|
+
basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '/executions/' + config.urlParams.customCodeExecutionId + '',
|
|
1518
|
+
method: 'get',
|
|
1519
|
+
body: null,
|
|
1520
|
+
urlParams: config.urlParams,
|
|
1521
|
+
queryParams: {},
|
|
1522
|
+
headers,
|
|
1523
|
+
priority: 'normal',
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
const adapterName$3 = 'getCustomCodeExecution';
|
|
1528
|
+
const getCustomCodeExecution_ConfigPropertyMetadata = [
|
|
1529
|
+
generateParamConfigMetadata('customCodeExecutionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1530
|
+
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1531
|
+
];
|
|
1532
|
+
const getCustomCodeExecution_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getCustomCodeExecution_ConfigPropertyMetadata);
|
|
1533
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(getCustomCodeExecution_ConfigPropertyMetadata);
|
|
1534
|
+
function keyBuilder$4(luvio, config) {
|
|
1535
|
+
const resourceParams = createResourceParams$3(config);
|
|
1536
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
1537
|
+
}
|
|
1538
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
1539
|
+
const config = {};
|
|
1540
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeExecution_ConfigPropertyMetadata);
|
|
1541
|
+
return config;
|
|
1542
|
+
}
|
|
1543
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
1544
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1545
|
+
return null;
|
|
1546
|
+
}
|
|
1547
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1548
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1549
|
+
}
|
|
1550
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
1551
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1552
|
+
return null;
|
|
1553
|
+
}
|
|
1554
|
+
return config;
|
|
1555
|
+
}
|
|
1556
|
+
function adapterFragment$2(luvio, config) {
|
|
1557
|
+
createResourceParams$3(config);
|
|
1558
|
+
return select$5();
|
|
1559
|
+
}
|
|
1560
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1561
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
1562
|
+
config,
|
|
1563
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
1564
|
+
});
|
|
1565
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1566
|
+
}
|
|
1567
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
1568
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
1569
|
+
config,
|
|
1570
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
1571
|
+
});
|
|
1572
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1573
|
+
}
|
|
1574
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
1575
|
+
const resourceParams = createResourceParams$3(config);
|
|
1576
|
+
const request = createResourceRequest$3(resourceParams);
|
|
1577
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1578
|
+
.then((response) => {
|
|
1579
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
1580
|
+
const cache = new StoreKeyMap();
|
|
1581
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
1582
|
+
return cache;
|
|
1583
|
+
});
|
|
1584
|
+
}, (response) => {
|
|
1585
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
1586
|
+
});
|
|
1587
|
+
}
|
|
1588
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1589
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
1590
|
+
}
|
|
1591
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1592
|
+
const { luvio, config } = context;
|
|
1593
|
+
const selector = {
|
|
1594
|
+
recordId: keyBuilder$4(luvio, config),
|
|
1595
|
+
node: adapterFragment$2(luvio, config),
|
|
1596
|
+
variables: {},
|
|
1597
|
+
};
|
|
1598
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1599
|
+
config,
|
|
1600
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
1601
|
+
});
|
|
1602
|
+
return cacheSnapshot;
|
|
1603
|
+
}
|
|
1604
|
+
const getCustomCodeExecutionAdapterFactory = (luvio) => function byoc__getCustomCodeExecution(untrustedConfig, requestContext) {
|
|
1605
|
+
const config = validateAdapterConfig$3(untrustedConfig, getCustomCodeExecution_ConfigPropertyNames);
|
|
1606
|
+
// Invalid or incomplete config
|
|
1607
|
+
if (config === null) {
|
|
1608
|
+
return null;
|
|
1609
|
+
}
|
|
1610
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1611
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1612
|
+
};
|
|
1613
|
+
|
|
1614
|
+
const VERSION$1 = "67e4b6c0a2163a4de44249f2a2dc7bd0";
|
|
1615
|
+
function validate$1(obj, path = 'CustomCodeExecutionLogRepresentation') {
|
|
1616
|
+
const v_error = (() => {
|
|
1617
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1618
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1619
|
+
}
|
|
1620
|
+
const obj_downloadUrl = obj.downloadUrl;
|
|
1621
|
+
const path_downloadUrl = path + '.downloadUrl';
|
|
1622
|
+
if (typeof obj_downloadUrl !== 'string') {
|
|
1623
|
+
return new TypeError('Expected "string" but received "' + typeof obj_downloadUrl + '" (at "' + path_downloadUrl + '")');
|
|
1624
|
+
}
|
|
1625
|
+
})();
|
|
1626
|
+
return v_error === undefined ? null : v_error;
|
|
1627
|
+
}
|
|
1628
|
+
const RepresentationType$1 = 'CustomCodeExecutionLogRepresentation';
|
|
1629
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1630
|
+
return input;
|
|
1631
|
+
}
|
|
1632
|
+
const select$4 = function CustomCodeExecutionLogRepresentationSelect() {
|
|
1633
|
+
return {
|
|
1634
|
+
kind: 'Fragment',
|
|
1635
|
+
version: VERSION$1,
|
|
1636
|
+
private: [],
|
|
1637
|
+
selections: [
|
|
1638
|
+
{
|
|
1639
|
+
name: 'downloadUrl',
|
|
1640
|
+
kind: 'Scalar'
|
|
1641
|
+
}
|
|
1642
|
+
]
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
function equals$1(existing, incoming) {
|
|
1646
|
+
const existing_downloadUrl = existing.downloadUrl;
|
|
1647
|
+
const incoming_downloadUrl = incoming.downloadUrl;
|
|
1306
1648
|
if (!(existing_downloadUrl === incoming_downloadUrl)) {
|
|
1307
1649
|
return false;
|
|
1308
1650
|
}
|
|
@@ -1310,14 +1652,14 @@ function equals$2(existing, incoming) {
|
|
|
1310
1652
|
}
|
|
1311
1653
|
const ingest$1 = function CustomCodeExecutionLogRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1312
1654
|
if (process.env.NODE_ENV !== 'production') {
|
|
1313
|
-
const validateError = validate$
|
|
1655
|
+
const validateError = validate$1(input);
|
|
1314
1656
|
if (validateError !== null) {
|
|
1315
1657
|
throw validateError;
|
|
1316
1658
|
}
|
|
1317
1659
|
}
|
|
1318
1660
|
const key = path.fullPath;
|
|
1319
1661
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1320
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "byoc", VERSION$
|
|
1662
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "byoc", VERSION$1, RepresentationType$1, equals$1);
|
|
1321
1663
|
return createLink(key);
|
|
1322
1664
|
};
|
|
1323
1665
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1330,8 +1672,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1330
1672
|
});
|
|
1331
1673
|
}
|
|
1332
1674
|
|
|
1333
|
-
function select$
|
|
1334
|
-
return select$
|
|
1675
|
+
function select$3(luvio, params) {
|
|
1676
|
+
return select$4();
|
|
1335
1677
|
}
|
|
1336
1678
|
function keyBuilder$3(luvio, params) {
|
|
1337
1679
|
return keyPrefix + '::CustomCodeExecutionLogRepresentation:(' + 'customCodeExecutionId:' + params.urlParams.customCodeExecutionId + ',' + 'customCodeNameOrId:' + params.urlParams.customCodeNameOrId + ')';
|
|
@@ -1345,7 +1687,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1345
1687
|
luvio.storeIngest(key, ingest$1, body);
|
|
1346
1688
|
const snapshot = luvio.storeLookup({
|
|
1347
1689
|
recordId: key,
|
|
1348
|
-
node: select$
|
|
1690
|
+
node: select$3(),
|
|
1349
1691
|
variables: {},
|
|
1350
1692
|
}, snapshotRefresh);
|
|
1351
1693
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1382,14 +1724,14 @@ const getCustomCodeExecutionLogs_ConfigPropertyMetadata = [
|
|
|
1382
1724
|
generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1383
1725
|
];
|
|
1384
1726
|
const getCustomCodeExecutionLogs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getCustomCodeExecutionLogs_ConfigPropertyMetadata);
|
|
1385
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
1727
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(getCustomCodeExecutionLogs_ConfigPropertyMetadata);
|
|
1386
1728
|
function keyBuilder$2(luvio, config) {
|
|
1387
1729
|
const resourceParams = createResourceParams$2(config);
|
|
1388
1730
|
return keyBuilder$3(luvio, resourceParams);
|
|
1389
1731
|
}
|
|
1390
1732
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1391
1733
|
const config = {};
|
|
1392
|
-
typeCheckConfig$
|
|
1734
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeExecutionLogs_ConfigPropertyMetadata);
|
|
1393
1735
|
return config;
|
|
1394
1736
|
}
|
|
1395
1737
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1407,7 +1749,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
1407
1749
|
}
|
|
1408
1750
|
function adapterFragment$1(luvio, config) {
|
|
1409
1751
|
createResourceParams$2(config);
|
|
1410
|
-
return select$
|
|
1752
|
+
return select$3();
|
|
1411
1753
|
}
|
|
1412
1754
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1413
1755
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
@@ -1438,7 +1780,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1438
1780
|
});
|
|
1439
1781
|
}
|
|
1440
1782
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1441
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1783
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
1442
1784
|
}
|
|
1443
1785
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1444
1786
|
const { luvio, config } = context;
|
|
@@ -1463,190 +1805,6 @@ const getCustomCodeExecutionLogsAdapterFactory = (luvio) => function byoc__getCu
|
|
|
1463
1805
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1464
1806
|
};
|
|
1465
1807
|
|
|
1466
|
-
const VERSION$1 = "16ba4e83f3e94d331bcbdba6f3d301b9";
|
|
1467
|
-
function validate$1(obj, path = 'CustomCodeExecutionBaseRepresentation') {
|
|
1468
|
-
const v_error = (() => {
|
|
1469
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1470
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1471
|
-
}
|
|
1472
|
-
const obj_durationInSeconds = obj.durationInSeconds;
|
|
1473
|
-
const path_durationInSeconds = path + '.durationInSeconds';
|
|
1474
|
-
if (typeof obj_durationInSeconds !== 'number' || (typeof obj_durationInSeconds === 'number' && Math.floor(obj_durationInSeconds) !== obj_durationInSeconds)) {
|
|
1475
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_durationInSeconds + '" (at "' + path_durationInSeconds + '")');
|
|
1476
|
-
}
|
|
1477
|
-
const obj_endTime = obj.endTime;
|
|
1478
|
-
const path_endTime = path + '.endTime';
|
|
1479
|
-
if (typeof obj_endTime !== 'string') {
|
|
1480
|
-
return new TypeError('Expected "string" but received "' + typeof obj_endTime + '" (at "' + path_endTime + '")');
|
|
1481
|
-
}
|
|
1482
|
-
if (obj.errorCode !== undefined) {
|
|
1483
|
-
const obj_errorCode = obj.errorCode;
|
|
1484
|
-
const path_errorCode = path + '.errorCode';
|
|
1485
|
-
if (typeof obj_errorCode !== 'number' || (typeof obj_errorCode === 'number' && Math.floor(obj_errorCode) !== obj_errorCode)) {
|
|
1486
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
if (obj.errorMessage !== undefined) {
|
|
1490
|
-
const obj_errorMessage = obj.errorMessage;
|
|
1491
|
-
const path_errorMessage = path + '.errorMessage';
|
|
1492
|
-
if (typeof obj_errorMessage !== 'string') {
|
|
1493
|
-
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
const obj_id = obj.id;
|
|
1497
|
-
const path_id = path + '.id';
|
|
1498
|
-
if (typeof obj_id !== 'string') {
|
|
1499
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1500
|
-
}
|
|
1501
|
-
const obj_rowsRead = obj.rowsRead;
|
|
1502
|
-
const path_rowsRead = path + '.rowsRead';
|
|
1503
|
-
if (typeof obj_rowsRead !== 'number' || (typeof obj_rowsRead === 'number' && Math.floor(obj_rowsRead) !== obj_rowsRead)) {
|
|
1504
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_rowsRead + '" (at "' + path_rowsRead + '")');
|
|
1505
|
-
}
|
|
1506
|
-
const obj_rowsWritten = obj.rowsWritten;
|
|
1507
|
-
const path_rowsWritten = path + '.rowsWritten';
|
|
1508
|
-
if (typeof obj_rowsWritten !== 'number' || (typeof obj_rowsWritten === 'number' && Math.floor(obj_rowsWritten) !== obj_rowsWritten)) {
|
|
1509
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_rowsWritten + '" (at "' + path_rowsWritten + '")');
|
|
1510
|
-
}
|
|
1511
|
-
const obj_startTime = obj.startTime;
|
|
1512
|
-
const path_startTime = path + '.startTime';
|
|
1513
|
-
if (typeof obj_startTime !== 'string') {
|
|
1514
|
-
return new TypeError('Expected "string" but received "' + typeof obj_startTime + '" (at "' + path_startTime + '")');
|
|
1515
|
-
}
|
|
1516
|
-
const obj_status = obj.status;
|
|
1517
|
-
const path_status = path + '.status';
|
|
1518
|
-
if (typeof obj_status !== 'string') {
|
|
1519
|
-
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1520
|
-
}
|
|
1521
|
-
const obj_submittedTime = obj.submittedTime;
|
|
1522
|
-
const path_submittedTime = path + '.submittedTime';
|
|
1523
|
-
if (typeof obj_submittedTime !== 'string') {
|
|
1524
|
-
return new TypeError('Expected "string" but received "' + typeof obj_submittedTime + '" (at "' + path_submittedTime + '")');
|
|
1525
|
-
}
|
|
1526
|
-
})();
|
|
1527
|
-
return v_error === undefined ? null : v_error;
|
|
1528
|
-
}
|
|
1529
|
-
const select$3 = function CustomCodeExecutionBaseRepresentationSelect() {
|
|
1530
|
-
return {
|
|
1531
|
-
kind: 'Fragment',
|
|
1532
|
-
version: VERSION$1,
|
|
1533
|
-
private: [],
|
|
1534
|
-
selections: [
|
|
1535
|
-
{
|
|
1536
|
-
name: 'durationInSeconds',
|
|
1537
|
-
kind: 'Scalar'
|
|
1538
|
-
},
|
|
1539
|
-
{
|
|
1540
|
-
name: 'endTime',
|
|
1541
|
-
kind: 'Scalar'
|
|
1542
|
-
},
|
|
1543
|
-
{
|
|
1544
|
-
name: 'errorCode',
|
|
1545
|
-
kind: 'Scalar',
|
|
1546
|
-
required: false
|
|
1547
|
-
},
|
|
1548
|
-
{
|
|
1549
|
-
name: 'errorMessage',
|
|
1550
|
-
kind: 'Scalar',
|
|
1551
|
-
required: false
|
|
1552
|
-
},
|
|
1553
|
-
{
|
|
1554
|
-
name: 'id',
|
|
1555
|
-
kind: 'Scalar'
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
name: 'rowsRead',
|
|
1559
|
-
kind: 'Scalar'
|
|
1560
|
-
},
|
|
1561
|
-
{
|
|
1562
|
-
name: 'rowsWritten',
|
|
1563
|
-
kind: 'Scalar'
|
|
1564
|
-
},
|
|
1565
|
-
{
|
|
1566
|
-
name: 'startTime',
|
|
1567
|
-
kind: 'Scalar'
|
|
1568
|
-
},
|
|
1569
|
-
{
|
|
1570
|
-
name: 'status',
|
|
1571
|
-
kind: 'Scalar'
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
name: 'submittedTime',
|
|
1575
|
-
kind: 'Scalar'
|
|
1576
|
-
}
|
|
1577
|
-
]
|
|
1578
|
-
};
|
|
1579
|
-
};
|
|
1580
|
-
function equals$1(existing, incoming) {
|
|
1581
|
-
const existing_durationInSeconds = existing.durationInSeconds;
|
|
1582
|
-
const incoming_durationInSeconds = incoming.durationInSeconds;
|
|
1583
|
-
if (!(existing_durationInSeconds === incoming_durationInSeconds)) {
|
|
1584
|
-
return false;
|
|
1585
|
-
}
|
|
1586
|
-
const existing_errorCode = existing.errorCode;
|
|
1587
|
-
const incoming_errorCode = incoming.errorCode;
|
|
1588
|
-
// if at least one of these optionals is defined
|
|
1589
|
-
if (existing_errorCode !== undefined || incoming_errorCode !== undefined) {
|
|
1590
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
1591
|
-
// not equal
|
|
1592
|
-
if (existing_errorCode === undefined || incoming_errorCode === undefined) {
|
|
1593
|
-
return false;
|
|
1594
|
-
}
|
|
1595
|
-
if (!(existing_errorCode === incoming_errorCode)) {
|
|
1596
|
-
return false;
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1599
|
-
const existing_rowsRead = existing.rowsRead;
|
|
1600
|
-
const incoming_rowsRead = incoming.rowsRead;
|
|
1601
|
-
if (!(existing_rowsRead === incoming_rowsRead)) {
|
|
1602
|
-
return false;
|
|
1603
|
-
}
|
|
1604
|
-
const existing_rowsWritten = existing.rowsWritten;
|
|
1605
|
-
const incoming_rowsWritten = incoming.rowsWritten;
|
|
1606
|
-
if (!(existing_rowsWritten === incoming_rowsWritten)) {
|
|
1607
|
-
return false;
|
|
1608
|
-
}
|
|
1609
|
-
const existing_endTime = existing.endTime;
|
|
1610
|
-
const incoming_endTime = incoming.endTime;
|
|
1611
|
-
if (!(existing_endTime === incoming_endTime)) {
|
|
1612
|
-
return false;
|
|
1613
|
-
}
|
|
1614
|
-
const existing_errorMessage = existing.errorMessage;
|
|
1615
|
-
const incoming_errorMessage = incoming.errorMessage;
|
|
1616
|
-
// if at least one of these optionals is defined
|
|
1617
|
-
if (existing_errorMessage !== undefined || incoming_errorMessage !== undefined) {
|
|
1618
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
1619
|
-
// not equal
|
|
1620
|
-
if (existing_errorMessage === undefined || incoming_errorMessage === undefined) {
|
|
1621
|
-
return false;
|
|
1622
|
-
}
|
|
1623
|
-
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
1624
|
-
return false;
|
|
1625
|
-
}
|
|
1626
|
-
}
|
|
1627
|
-
const existing_id = existing.id;
|
|
1628
|
-
const incoming_id = incoming.id;
|
|
1629
|
-
if (!(existing_id === incoming_id)) {
|
|
1630
|
-
return false;
|
|
1631
|
-
}
|
|
1632
|
-
const existing_startTime = existing.startTime;
|
|
1633
|
-
const incoming_startTime = incoming.startTime;
|
|
1634
|
-
if (!(existing_startTime === incoming_startTime)) {
|
|
1635
|
-
return false;
|
|
1636
|
-
}
|
|
1637
|
-
const existing_status = existing.status;
|
|
1638
|
-
const incoming_status = incoming.status;
|
|
1639
|
-
if (!(existing_status === incoming_status)) {
|
|
1640
|
-
return false;
|
|
1641
|
-
}
|
|
1642
|
-
const existing_submittedTime = existing.submittedTime;
|
|
1643
|
-
const incoming_submittedTime = incoming.submittedTime;
|
|
1644
|
-
if (!(existing_submittedTime === incoming_submittedTime)) {
|
|
1645
|
-
return false;
|
|
1646
|
-
}
|
|
1647
|
-
return true;
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
1808
|
const VERSION = "eff3ca61ebb18d80a094043be3f81c07";
|
|
1651
1809
|
function validate(obj, path = 'CustomCodeExecutionCollectionRepresentation') {
|
|
1652
1810
|
const v_error = (() => {
|
|
@@ -1668,7 +1826,7 @@ function validate(obj, path = 'CustomCodeExecutionCollectionRepresentation') {
|
|
|
1668
1826
|
for (let i = 0; i < obj_executions.length; i++) {
|
|
1669
1827
|
const obj_executions_item = obj_executions[i];
|
|
1670
1828
|
const path_executions_item = path_executions + '[' + i + ']';
|
|
1671
|
-
const referencepath_executions_itemValidationError = validate$
|
|
1829
|
+
const referencepath_executions_itemValidationError = validate$2(obj_executions_item, path_executions_item);
|
|
1672
1830
|
if (referencepath_executions_itemValidationError !== null) {
|
|
1673
1831
|
let message = 'Object doesn\'t match CustomCodeExecutionBaseRepresentation (at "' + path_executions_item + '")\n';
|
|
1674
1832
|
message += referencepath_executions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1697,7 +1855,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
1697
1855
|
return input;
|
|
1698
1856
|
}
|
|
1699
1857
|
const select$2 = function CustomCodeExecutionCollectionRepresentationSelect() {
|
|
1700
|
-
const { selections: CustomCodeExecutionBaseRepresentation__selections, opaque: CustomCodeExecutionBaseRepresentation__opaque, } = select$
|
|
1858
|
+
const { selections: CustomCodeExecutionBaseRepresentation__selections, opaque: CustomCodeExecutionBaseRepresentation__opaque, } = select$6();
|
|
1701
1859
|
return {
|
|
1702
1860
|
kind: 'Fragment',
|
|
1703
1861
|
version: VERSION,
|
|
@@ -1770,7 +1928,7 @@ function equals(existing, incoming) {
|
|
|
1770
1928
|
const existing_executions = existing.executions;
|
|
1771
1929
|
const incoming_executions = incoming.executions;
|
|
1772
1930
|
const equals_executions_items = equalsArray(existing_executions, incoming_executions, (existing_executions_item, incoming_executions_item) => {
|
|
1773
|
-
if (!(equals$
|
|
1931
|
+
if (!(equals$2(existing_executions_item, incoming_executions_item))) {
|
|
1774
1932
|
return false;
|
|
1775
1933
|
}
|
|
1776
1934
|
});
|
|
@@ -1854,14 +2012,14 @@ const getCustomCodeExecutions_ConfigPropertyMetadata = [
|
|
|
1854
2012
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1855
2013
|
];
|
|
1856
2014
|
const getCustomCodeExecutions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCustomCodeExecutions_ConfigPropertyMetadata);
|
|
1857
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
2015
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(getCustomCodeExecutions_ConfigPropertyMetadata);
|
|
1858
2016
|
function keyBuilder(luvio, config) {
|
|
1859
2017
|
const resourceParams = createResourceParams$1(config);
|
|
1860
2018
|
return keyBuilder$1(luvio, resourceParams);
|
|
1861
2019
|
}
|
|
1862
2020
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1863
2021
|
const config = {};
|
|
1864
|
-
typeCheckConfig$
|
|
2022
|
+
typeCheckConfig$8(untrustedConfig, config, getCustomCodeExecutions_ConfigPropertyMetadata);
|
|
1865
2023
|
return config;
|
|
1866
2024
|
}
|
|
1867
2025
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1910,7 +2068,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1910
2068
|
});
|
|
1911
2069
|
}
|
|
1912
2070
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1913
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2071
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1914
2072
|
}
|
|
1915
2073
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1916
2074
|
const { luvio, config } = context;
|
|
@@ -1936,15 +2094,15 @@ const getCustomCodeExecutionsAdapterFactory = (luvio) => function byoc__getCusto
|
|
|
1936
2094
|
};
|
|
1937
2095
|
|
|
1938
2096
|
function select(luvio, params) {
|
|
1939
|
-
return select$
|
|
2097
|
+
return select$b();
|
|
1940
2098
|
}
|
|
1941
2099
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1942
|
-
getTypeCacheKeys$
|
|
2100
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1943
2101
|
}
|
|
1944
2102
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
1945
2103
|
const { body } = response;
|
|
1946
2104
|
const key = keyBuilderFromType(luvio, body);
|
|
1947
|
-
luvio.storeIngest(key, ingest$
|
|
2105
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1948
2106
|
const snapshot = luvio.storeLookup({
|
|
1949
2107
|
recordId: key,
|
|
1950
2108
|
node: select(),
|
|
@@ -1982,10 +2140,10 @@ const updateCustomCodeDeployment_ConfigPropertyMetadata = [
|
|
|
1982
2140
|
generateParamConfigMetadata('version', false, 2 /* Body */, 0 /* String */),
|
|
1983
2141
|
];
|
|
1984
2142
|
const updateCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1985
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2143
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1986
2144
|
function typeCheckConfig(untrustedConfig) {
|
|
1987
2145
|
const config = {};
|
|
1988
|
-
typeCheckConfig$
|
|
2146
|
+
typeCheckConfig$8(untrustedConfig, config, updateCustomCodeDeployment_ConfigPropertyMetadata);
|
|
1989
2147
|
return config;
|
|
1990
2148
|
}
|
|
1991
2149
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2035,16 +2193,19 @@ let deleteCustomCodeDeployment;
|
|
|
2035
2193
|
let getCustomCodeDeployment;
|
|
2036
2194
|
let getCustomCodeDeploymentNotifyChange;
|
|
2037
2195
|
let getCustomCodeDeployments;
|
|
2196
|
+
let getCustomCodeExecution;
|
|
2038
2197
|
let getCustomCodeExecutionLogs;
|
|
2039
2198
|
let getCustomCodeExecutions;
|
|
2040
2199
|
let updateCustomCodeDeployment;
|
|
2041
2200
|
// Imperative GET Adapters
|
|
2042
2201
|
let getCustomCodeDeployment_imperative;
|
|
2043
2202
|
let getCustomCodeDeployments_imperative;
|
|
2203
|
+
let getCustomCodeExecution_imperative;
|
|
2044
2204
|
let getCustomCodeExecutionLogs_imperative;
|
|
2045
2205
|
let getCustomCodeExecutions_imperative;
|
|
2046
2206
|
const getCustomCodeDeploymentMetadata = { apiFamily: 'byoc', name: 'getCustomCodeDeployment' };
|
|
2047
2207
|
const getCustomCodeDeploymentsMetadata = { apiFamily: 'byoc', name: 'getCustomCodeDeployments' };
|
|
2208
|
+
const getCustomCodeExecutionMetadata = { apiFamily: 'byoc', name: 'getCustomCodeExecution' };
|
|
2048
2209
|
const getCustomCodeExecutionLogsMetadata = {
|
|
2049
2210
|
apiFamily: 'byoc',
|
|
2050
2211
|
name: 'getCustomCodeExecutionLogs',
|
|
@@ -2055,6 +2216,7 @@ function bindExportsTo(luvio) {
|
|
|
2055
2216
|
// LDS Adapters
|
|
2056
2217
|
const getCustomCodeDeployment_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCustomCodeDeployment', getCustomCodeDeploymentAdapterFactory), getCustomCodeDeploymentMetadata);
|
|
2057
2218
|
const getCustomCodeDeployments_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCustomCodeDeployments', getCustomCodeDeploymentsAdapterFactory), getCustomCodeDeploymentsMetadata);
|
|
2219
|
+
const getCustomCodeExecution_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCustomCodeExecution', getCustomCodeExecutionAdapterFactory), getCustomCodeExecutionMetadata);
|
|
2058
2220
|
const getCustomCodeExecutionLogs_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCustomCodeExecutionLogs', getCustomCodeExecutionLogsAdapterFactory), getCustomCodeExecutionLogsMetadata);
|
|
2059
2221
|
const getCustomCodeExecutions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCustomCodeExecutions', getCustomCodeExecutionsAdapterFactory), getCustomCodeExecutionsMetadata);
|
|
2060
2222
|
function unwrapSnapshotData(factory) {
|
|
@@ -2063,16 +2225,18 @@ function bindExportsTo(luvio) {
|
|
|
2063
2225
|
}
|
|
2064
2226
|
return {
|
|
2065
2227
|
createCustomCodeDeployment: unwrapSnapshotData(createCustomCodeDeploymentAdapterFactory),
|
|
2066
|
-
deleteCustomCodeDeployment: createLDSAdapter(luvio, adapterName$
|
|
2228
|
+
deleteCustomCodeDeployment: createLDSAdapter(luvio, adapterName$6, deleteCustomCodeDeploymentAdapterFactory),
|
|
2067
2229
|
getCustomCodeDeployment: createWireAdapterConstructor(luvio, getCustomCodeDeployment_ldsAdapter, getCustomCodeDeploymentMetadata),
|
|
2068
2230
|
getCustomCodeDeploymentNotifyChange: createLDSAdapter(luvio, 'getCustomCodeDeploymentNotifyChange', notifyChangeFactory),
|
|
2069
2231
|
getCustomCodeDeployments: createWireAdapterConstructor(luvio, getCustomCodeDeployments_ldsAdapter, getCustomCodeDeploymentsMetadata),
|
|
2232
|
+
getCustomCodeExecution: createWireAdapterConstructor(luvio, getCustomCodeExecution_ldsAdapter, getCustomCodeExecutionMetadata),
|
|
2070
2233
|
getCustomCodeExecutionLogs: createWireAdapterConstructor(luvio, getCustomCodeExecutionLogs_ldsAdapter, getCustomCodeExecutionLogsMetadata),
|
|
2071
2234
|
getCustomCodeExecutions: createWireAdapterConstructor(luvio, getCustomCodeExecutions_ldsAdapter, getCustomCodeExecutionsMetadata),
|
|
2072
2235
|
updateCustomCodeDeployment: unwrapSnapshotData(updateCustomCodeDeploymentAdapterFactory),
|
|
2073
2236
|
// Imperative GET Adapters
|
|
2074
2237
|
getCustomCodeDeployment_imperative: createImperativeAdapter(luvio, getCustomCodeDeployment_ldsAdapter, getCustomCodeDeploymentMetadata),
|
|
2075
2238
|
getCustomCodeDeployments_imperative: createImperativeAdapter(luvio, getCustomCodeDeployments_ldsAdapter, getCustomCodeDeploymentsMetadata),
|
|
2239
|
+
getCustomCodeExecution_imperative: createImperativeAdapter(luvio, getCustomCodeExecution_ldsAdapter, getCustomCodeExecutionMetadata),
|
|
2076
2240
|
getCustomCodeExecutionLogs_imperative: createImperativeAdapter(luvio, getCustomCodeExecutionLogs_ldsAdapter, getCustomCodeExecutionLogsMetadata),
|
|
2077
2241
|
getCustomCodeExecutions_imperative: createImperativeAdapter(luvio, getCustomCodeExecutions_ldsAdapter, getCustomCodeExecutionsMetadata),
|
|
2078
2242
|
// Notify Update Availables
|
|
@@ -2085,15 +2249,17 @@ withDefaultLuvio((luvio) => {
|
|
|
2085
2249
|
getCustomCodeDeployment,
|
|
2086
2250
|
getCustomCodeDeploymentNotifyChange,
|
|
2087
2251
|
getCustomCodeDeployments,
|
|
2252
|
+
getCustomCodeExecution,
|
|
2088
2253
|
getCustomCodeExecutionLogs,
|
|
2089
2254
|
getCustomCodeExecutions,
|
|
2090
2255
|
updateCustomCodeDeployment,
|
|
2091
2256
|
getCustomCodeDeployment_imperative,
|
|
2092
2257
|
getCustomCodeDeployments_imperative,
|
|
2258
|
+
getCustomCodeExecution_imperative,
|
|
2093
2259
|
getCustomCodeExecutionLogs_imperative,
|
|
2094
2260
|
getCustomCodeExecutions_imperative,
|
|
2095
2261
|
} = bindExportsTo(luvio));
|
|
2096
2262
|
});
|
|
2097
2263
|
|
|
2098
|
-
export { createCustomCodeDeployment, deleteCustomCodeDeployment, getCustomCodeDeployment, getCustomCodeDeploymentNotifyChange, getCustomCodeDeployment_imperative, getCustomCodeDeployments, getCustomCodeDeployments_imperative, getCustomCodeExecutionLogs, getCustomCodeExecutionLogs_imperative, getCustomCodeExecutions, getCustomCodeExecutions_imperative, updateCustomCodeDeployment };
|
|
2099
|
-
// version: 1.354.0-
|
|
2264
|
+
export { createCustomCodeDeployment, deleteCustomCodeDeployment, getCustomCodeDeployment, getCustomCodeDeploymentNotifyChange, getCustomCodeDeployment_imperative, getCustomCodeDeployments, getCustomCodeDeployments_imperative, getCustomCodeExecution, getCustomCodeExecutionLogs, getCustomCodeExecutionLogs_imperative, getCustomCodeExecution_imperative, getCustomCodeExecutions, getCustomCodeExecutions_imperative, updateCustomCodeDeployment };
|
|
2265
|
+
// version: 1.354.0-dev17-0989532028
|