@salesforce/lds-adapters-cdp-byoc 1.332.0-dev20 → 1.332.0-dev21

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/sfdc/index.js CHANGED
@@ -12,8 +12,9 @@
12
12
  * *******************************************************************************************
13
13
  */
14
14
  /* proxy-compat-disable */
15
+ import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
15
16
  import { withDefaultLuvio } from 'force/ldsEngine';
16
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$1, typeCheckConfig as typeCheckConfig$1 } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$5, typeCheckConfig as typeCheckConfig$5, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2 } from 'force/luvioEngine';
17
18
 
18
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
19
20
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -50,6 +51,13 @@ function untrustedIsObject(untrusted) {
50
51
  function areRequiredParametersPresent(config, configPropertyNames) {
51
52
  return configPropertyNames.parameters.required.every(req => req in config);
52
53
  }
54
+ const snapshotRefreshOptions = {
55
+ overrides: {
56
+ headers: {
57
+ 'Cache-Control': 'no-cache',
58
+ },
59
+ }
60
+ };
53
61
  function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
54
62
  return {
55
63
  name,
@@ -113,8 +121,8 @@ function createLink(ref) {
113
121
  };
114
122
  }
115
123
 
116
- const VERSION$1 = "2fe1bfd9fd1c6a94767d2ea000d6d318";
117
- function validate$1(obj, path = 'CdpUserRepresentation') {
124
+ const VERSION$2 = "2fe1bfd9fd1c6a94767d2ea000d6d318";
125
+ function validate$2(obj, path = 'CdpUserRepresentation') {
118
126
  const v_error = (() => {
119
127
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
120
128
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -137,10 +145,10 @@ function validate$1(obj, path = 'CdpUserRepresentation') {
137
145
  })();
138
146
  return v_error === undefined ? null : v_error;
139
147
  }
140
- const select$2 = function CdpUserRepresentationSelect() {
148
+ const select$6 = function CdpUserRepresentationSelect() {
141
149
  return {
142
150
  kind: 'Fragment',
143
- version: VERSION$1,
151
+ version: VERSION$2,
144
152
  private: [],
145
153
  selections: [
146
154
  {
@@ -158,7 +166,7 @@ const select$2 = function CdpUserRepresentationSelect() {
158
166
  ]
159
167
  };
160
168
  };
161
- function equals$1(existing, incoming) {
169
+ function equals$2(existing, incoming) {
162
170
  const existing_id = existing.id;
163
171
  const incoming_id = incoming.id;
164
172
  if (!(existing_id === incoming_id)) {
@@ -177,8 +185,8 @@ function equals$1(existing, incoming) {
177
185
  return true;
178
186
  }
179
187
 
180
- const VERSION = "bc7c21323d31a68bdc0ef7484dc4fa2b";
181
- function validate(obj, path = 'CustomCodeDeploymentRepresentation') {
188
+ const VERSION$1 = "bc7c21323d31a68bdc0ef7484dc4fa2b";
189
+ function validate$1(obj, path = 'CustomCodeDeploymentRepresentation') {
182
190
  const v_error = (() => {
183
191
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
184
192
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -195,7 +203,7 @@ function validate(obj, path = 'CustomCodeDeploymentRepresentation') {
195
203
  }
196
204
  const obj_createdBy = obj.createdBy;
197
205
  const path_createdBy = path + '.createdBy';
198
- const referencepath_createdByValidationError = validate$1(obj_createdBy, path_createdBy);
206
+ const referencepath_createdByValidationError = validate$2(obj_createdBy, path_createdBy);
199
207
  if (referencepath_createdByValidationError !== null) {
200
208
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_createdBy + '")\n';
201
209
  message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -263,7 +271,7 @@ function validate(obj, path = 'CustomCodeDeploymentRepresentation') {
263
271
  }
264
272
  const obj_lastModifiedBy = obj.lastModifiedBy;
265
273
  const path_lastModifiedBy = path + '.lastModifiedBy';
266
- const referencepath_lastModifiedByValidationError = validate$1(obj_lastModifiedBy, path_lastModifiedBy);
274
+ const referencepath_lastModifiedByValidationError = validate$2(obj_lastModifiedBy, path_lastModifiedBy);
267
275
  if (referencepath_lastModifiedByValidationError !== null) {
268
276
  let message = 'Object doesn\'t match CdpUserRepresentation (at "' + path_lastModifiedBy + '")\n';
269
277
  message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -318,24 +326,24 @@ function validate(obj, path = 'CustomCodeDeploymentRepresentation') {
318
326
  })();
319
327
  return v_error === undefined ? null : v_error;
320
328
  }
321
- const RepresentationType = 'CustomCodeDeploymentRepresentation';
322
- function keyBuilder(luvio, config) {
323
- return keyPrefix + '::' + RepresentationType + ':' + config.id;
329
+ const RepresentationType$1 = 'CustomCodeDeploymentRepresentation';
330
+ function keyBuilder$5(luvio, config) {
331
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
324
332
  }
325
333
  function keyBuilderFromType(luvio, object) {
326
334
  const keyParams = {
327
335
  id: object.id
328
336
  };
329
- return keyBuilder(luvio, keyParams);
337
+ return keyBuilder$5(luvio, keyParams);
330
338
  }
331
- function normalize(input, existing, path, luvio, store, timestamp) {
339
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
332
340
  return input;
333
341
  }
334
- const select$1 = function CustomCodeDeploymentRepresentationSelect() {
335
- const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$2();
342
+ const select$5 = function CustomCodeDeploymentRepresentationSelect() {
343
+ const { selections: CdpUserRepresentation__selections, opaque: CdpUserRepresentation__opaque, } = select$6();
336
344
  return {
337
345
  kind: 'Fragment',
338
- version: VERSION,
346
+ version: VERSION$1,
339
347
  private: [],
340
348
  selections: [
341
349
  {
@@ -430,7 +438,7 @@ const select$1 = function CustomCodeDeploymentRepresentationSelect() {
430
438
  ]
431
439
  };
432
440
  };
433
- function equals(existing, incoming) {
441
+ function equals$1(existing, incoming) {
434
442
  const existing_deploymentFailureCode = existing.deploymentFailureCode;
435
443
  const incoming_deploymentFailureCode = incoming.deploymentFailureCode;
436
444
  // if at least one of these optionals is defined
@@ -545,7 +553,7 @@ function equals(existing, incoming) {
545
553
  }
546
554
  const existing_createdBy = existing.createdBy;
547
555
  const incoming_createdBy = incoming.createdBy;
548
- if (!(equals$1(existing_createdBy, incoming_createdBy))) {
556
+ if (!(equals$2(existing_createdBy, incoming_createdBy))) {
549
557
  return false;
550
558
  }
551
559
  const existing_functionInvokeOptions = existing.functionInvokeOptions;
@@ -568,7 +576,7 @@ function equals(existing, incoming) {
568
576
  }
569
577
  const existing_lastModifiedBy = existing.lastModifiedBy;
570
578
  const incoming_lastModifiedBy = incoming.lastModifiedBy;
571
- if (!(equals$1(existing_lastModifiedBy, incoming_lastModifiedBy))) {
579
+ if (!(equals$2(existing_lastModifiedBy, incoming_lastModifiedBy))) {
572
580
  return false;
573
581
  }
574
582
  const existing_parameters = existing.parameters;
@@ -583,41 +591,41 @@ function equals(existing, incoming) {
583
591
  }
584
592
  return true;
585
593
  }
586
- const ingest = function CustomCodeDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
594
+ const ingest$1 = function CustomCodeDeploymentRepresentationIngest(input, path, luvio, store, timestamp) {
587
595
  if (process.env.NODE_ENV !== 'production') {
588
- const validateError = validate(input);
596
+ const validateError = validate$1(input);
589
597
  if (validateError !== null) {
590
598
  throw validateError;
591
599
  }
592
600
  }
593
601
  const key = keyBuilderFromType(luvio, input);
594
602
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
595
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "byoc", VERSION, RepresentationType, equals);
603
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "byoc", VERSION$1, RepresentationType$1, equals$1);
596
604
  return createLink(key);
597
605
  };
598
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
606
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
599
607
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
600
608
  const rootKey = keyBuilderFromType(luvio, input);
601
609
  rootKeySet.set(rootKey, {
602
610
  namespace: keyPrefix,
603
- representationName: RepresentationType,
611
+ representationName: RepresentationType$1,
604
612
  mergeable: false
605
613
  });
606
614
  }
607
615
 
608
- function select(luvio, params) {
609
- return select$1();
616
+ function select$4(luvio, params) {
617
+ return select$5();
610
618
  }
611
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
612
- getTypeCacheKeys(storeKeyMap, luvio, response);
619
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
620
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
613
621
  }
614
- function ingestSuccess(luvio, resourceParams, response) {
622
+ function ingestSuccess$3(luvio, resourceParams, response) {
615
623
  const { body } = response;
616
624
  const key = keyBuilderFromType(luvio, body);
617
- luvio.storeIngest(key, ingest, body);
625
+ luvio.storeIngest(key, ingest$1, body);
618
626
  const snapshot = luvio.storeLookup({
619
627
  recordId: key,
620
- node: select(),
628
+ node: select$4(),
621
629
  variables: {},
622
630
  });
623
631
  if (process.env.NODE_ENV !== 'production') {
@@ -628,7 +636,7 @@ function ingestSuccess(luvio, resourceParams, response) {
628
636
  deepFreeze(snapshot.data);
629
637
  return snapshot;
630
638
  }
631
- function createResourceRequest(config) {
639
+ function createResourceRequest$4(config) {
632
640
  const headers = {};
633
641
  return {
634
642
  baseUri: '/services/data/v63.0',
@@ -642,7 +650,7 @@ function createResourceRequest(config) {
642
650
  };
643
651
  }
644
652
 
645
- const adapterName = 'createCustomCodeDeployment';
653
+ const adapterName$4 = 'createCustomCodeDeployment';
646
654
  const createCustomCodeDeployment_ConfigPropertyMetadata = [
647
655
  generateParamConfigMetadata('codeType', false, 2 /* Body */, 0 /* String */),
648
656
  generateParamConfigMetadata('computeType', true, 2 /* Body */, 0 /* String */),
@@ -654,11 +662,11 @@ const createCustomCodeDeployment_ConfigPropertyMetadata = [
654
662
  generateParamConfigMetadata('parameters', false, 2 /* Body */, 4 /* Unsupported */),
655
663
  generateParamConfigMetadata('version', true, 2 /* Body */, 0 /* String */),
656
664
  ];
657
- const createCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createCustomCodeDeployment_ConfigPropertyMetadata);
658
- const createResourceParams = /*#__PURE__*/ createResourceParams$1(createCustomCodeDeployment_ConfigPropertyMetadata);
659
- function typeCheckConfig(untrustedConfig) {
665
+ const createCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createCustomCodeDeployment_ConfigPropertyMetadata);
666
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(createCustomCodeDeployment_ConfigPropertyMetadata);
667
+ function typeCheckConfig$4(untrustedConfig) {
660
668
  const config = {};
661
- typeCheckConfig$1(untrustedConfig, config, createCustomCodeDeployment_ConfigPropertyMetadata);
669
+ typeCheckConfig$5(untrustedConfig, config, createCustomCodeDeployment_ConfigPropertyMetadata);
662
670
  const untrustedConfig_parameters = untrustedConfig.parameters;
663
671
  if (untrustedIsObject(untrustedConfig_parameters)) {
664
672
  const untrustedConfig_parameters_object = {};
@@ -678,6 +686,636 @@ function typeCheckConfig(untrustedConfig) {
678
686
  }
679
687
  return config;
680
688
  }
689
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
690
+ if (!untrustedIsObject(untrustedConfig)) {
691
+ return null;
692
+ }
693
+ if (process.env.NODE_ENV !== 'production') {
694
+ validateConfig(untrustedConfig, configPropertyNames);
695
+ }
696
+ const config = typeCheckConfig$4(untrustedConfig);
697
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
698
+ return null;
699
+ }
700
+ return config;
701
+ }
702
+ function buildNetworkSnapshot$4(luvio, config, options) {
703
+ const resourceParams = createResourceParams$4(config);
704
+ const request = createResourceRequest$4(resourceParams);
705
+ return luvio.dispatchResourceRequest(request, options)
706
+ .then((response) => {
707
+ return luvio.handleSuccessResponse(() => {
708
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
709
+ return luvio.storeBroadcast().then(() => snapshot);
710
+ }, () => {
711
+ const cache = new StoreKeyMap();
712
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
713
+ return cache;
714
+ });
715
+ }, (response) => {
716
+ deepFreeze(response);
717
+ throw response;
718
+ });
719
+ }
720
+ const createCustomCodeDeploymentAdapterFactory = (luvio) => {
721
+ return function createCustomCodeDeployment(untrustedConfig) {
722
+ const config = validateAdapterConfig$4(untrustedConfig, createCustomCodeDeployment_ConfigPropertyNames);
723
+ // Invalid or incomplete config
724
+ if (config === null) {
725
+ throw new Error('Invalid config for "createCustomCodeDeployment"');
726
+ }
727
+ return buildNetworkSnapshot$4(luvio, config);
728
+ };
729
+ };
730
+
731
+ function keyBuilder$4(luvio, params) {
732
+ return keyBuilder$5(luvio, {
733
+ id: params.urlParams.customCodeNameOrId
734
+ });
735
+ }
736
+ function getResponseCacheKeys$3(cacheKeyMap, luvio, resourceParams) {
737
+ const key = keyBuilder$4(luvio, resourceParams);
738
+ cacheKeyMap.set(key, {
739
+ namespace: keyPrefix,
740
+ representationName: RepresentationType$1,
741
+ mergeable: false
742
+ });
743
+ }
744
+ function evictSuccess(luvio, resourceParams) {
745
+ const key = keyBuilder$4(luvio, resourceParams);
746
+ luvio.storeEvict(key);
747
+ }
748
+ function createResourceRequest$3(config) {
749
+ const headers = {};
750
+ return {
751
+ baseUri: '/services/data/v63.0',
752
+ basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '',
753
+ method: 'delete',
754
+ body: null,
755
+ urlParams: config.urlParams,
756
+ queryParams: {},
757
+ headers,
758
+ priority: 'normal',
759
+ };
760
+ }
761
+
762
+ const adapterName$3 = 'deleteCustomCodeDeployment';
763
+ const deleteCustomCodeDeployment_ConfigPropertyMetadata = [
764
+ generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
765
+ ];
766
+ const deleteCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, deleteCustomCodeDeployment_ConfigPropertyMetadata);
767
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(deleteCustomCodeDeployment_ConfigPropertyMetadata);
768
+ function typeCheckConfig$3(untrustedConfig) {
769
+ const config = {};
770
+ typeCheckConfig$5(untrustedConfig, config, deleteCustomCodeDeployment_ConfigPropertyMetadata);
771
+ return config;
772
+ }
773
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
774
+ if (!untrustedIsObject(untrustedConfig)) {
775
+ return null;
776
+ }
777
+ if (process.env.NODE_ENV !== 'production') {
778
+ validateConfig(untrustedConfig, configPropertyNames);
779
+ }
780
+ const config = typeCheckConfig$3(untrustedConfig);
781
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
782
+ return null;
783
+ }
784
+ return config;
785
+ }
786
+ function buildNetworkSnapshot$3(luvio, config, options) {
787
+ const resourceParams = createResourceParams$3(config);
788
+ const request = createResourceRequest$3(resourceParams);
789
+ return luvio.dispatchResourceRequest(request, options)
790
+ .then(() => {
791
+ return luvio.handleSuccessResponse(() => {
792
+ evictSuccess(luvio, resourceParams);
793
+ return luvio.storeBroadcast();
794
+ }, () => {
795
+ const cache = new StoreKeyMap();
796
+ getResponseCacheKeys$3(cache, luvio, resourceParams);
797
+ return cache;
798
+ });
799
+ }, (response) => {
800
+ deepFreeze(response);
801
+ throw response;
802
+ });
803
+ }
804
+ const deleteCustomCodeDeploymentAdapterFactory = (luvio) => {
805
+ return function byocdeleteCustomCodeDeployment(untrustedConfig) {
806
+ const config = validateAdapterConfig$3(untrustedConfig, deleteCustomCodeDeployment_ConfigPropertyNames);
807
+ // Invalid or incomplete config
808
+ if (config === null) {
809
+ throw new Error(`Invalid config for "${adapterName$3}"`);
810
+ }
811
+ return buildNetworkSnapshot$3(luvio, config);
812
+ };
813
+ };
814
+
815
+ function select$3(luvio, params) {
816
+ return select$5();
817
+ }
818
+ function keyBuilder$3(luvio, params) {
819
+ return keyBuilder$5(luvio, {
820
+ id: params.urlParams.customCodeNameOrId
821
+ });
822
+ }
823
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
824
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
825
+ }
826
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
827
+ const { body } = response;
828
+ const key = keyBuilder$3(luvio, resourceParams);
829
+ luvio.storeIngest(key, ingest$1, body);
830
+ const snapshot = luvio.storeLookup({
831
+ recordId: key,
832
+ node: select$3(),
833
+ variables: {},
834
+ }, snapshotRefresh);
835
+ if (process.env.NODE_ENV !== 'production') {
836
+ if (snapshot.state !== 'Fulfilled') {
837
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
838
+ }
839
+ }
840
+ deepFreeze(snapshot.data);
841
+ return snapshot;
842
+ }
843
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
844
+ const key = keyBuilder$3(luvio, params);
845
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
846
+ luvio.storeIngestError(key, errorSnapshot);
847
+ return errorSnapshot;
848
+ }
849
+ function createResourceRequest$2(config) {
850
+ const headers = {};
851
+ return {
852
+ baseUri: '/services/data/v63.0',
853
+ basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '',
854
+ method: 'get',
855
+ body: null,
856
+ urlParams: config.urlParams,
857
+ queryParams: {},
858
+ headers,
859
+ priority: 'normal',
860
+ };
861
+ }
862
+ function createResourceRequestFromRepresentation(representation) {
863
+ const config = {
864
+ urlParams: {},
865
+ };
866
+ config.urlParams.customCodeNameOrId = representation.id;
867
+ return createResourceRequest$2(config);
868
+ }
869
+
870
+ const adapterName$2 = 'getCustomCodeDeployment';
871
+ const getCustomCodeDeployment_ConfigPropertyMetadata = [
872
+ generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
873
+ ];
874
+ const getCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getCustomCodeDeployment_ConfigPropertyMetadata);
875
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getCustomCodeDeployment_ConfigPropertyMetadata);
876
+ function keyBuilder$2(luvio, config) {
877
+ const resourceParams = createResourceParams$2(config);
878
+ return keyBuilder$3(luvio, resourceParams);
879
+ }
880
+ function typeCheckConfig$2(untrustedConfig) {
881
+ const config = {};
882
+ typeCheckConfig$5(untrustedConfig, config, getCustomCodeDeployment_ConfigPropertyMetadata);
883
+ return config;
884
+ }
885
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
886
+ if (!untrustedIsObject(untrustedConfig)) {
887
+ return null;
888
+ }
889
+ if (process.env.NODE_ENV !== 'production') {
890
+ validateConfig(untrustedConfig, configPropertyNames);
891
+ }
892
+ const config = typeCheckConfig$2(untrustedConfig);
893
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
894
+ return null;
895
+ }
896
+ return config;
897
+ }
898
+ function adapterFragment$1(luvio, config) {
899
+ createResourceParams$2(config);
900
+ return select$3();
901
+ }
902
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
903
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
904
+ config,
905
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
906
+ });
907
+ return luvio.storeBroadcast().then(() => snapshot);
908
+ }
909
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
910
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
911
+ config,
912
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
913
+ });
914
+ return luvio.storeBroadcast().then(() => snapshot);
915
+ }
916
+ function buildNetworkSnapshot$2(luvio, config, options) {
917
+ const resourceParams = createResourceParams$2(config);
918
+ const request = createResourceRequest$2(resourceParams);
919
+ return luvio.dispatchResourceRequest(request, options)
920
+ .then((response) => {
921
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
922
+ const cache = new StoreKeyMap();
923
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
924
+ return cache;
925
+ });
926
+ }, (response) => {
927
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
928
+ });
929
+ }
930
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
931
+ return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
932
+ }
933
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
934
+ const { luvio, config } = context;
935
+ const selector = {
936
+ recordId: keyBuilder$2(luvio, config),
937
+ node: adapterFragment$1(luvio, config),
938
+ variables: {},
939
+ };
940
+ const cacheSnapshot = storeLookup(selector, {
941
+ config,
942
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
943
+ });
944
+ return cacheSnapshot;
945
+ }
946
+ const getCustomCodeDeploymentAdapterFactory = (luvio) => function byoc__getCustomCodeDeployment(untrustedConfig, requestContext) {
947
+ const config = validateAdapterConfig$2(untrustedConfig, getCustomCodeDeployment_ConfigPropertyNames);
948
+ // Invalid or incomplete config
949
+ if (config === null) {
950
+ return null;
951
+ }
952
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
953
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
954
+ };
955
+ const notifyChangeFactory = (luvio, options) => {
956
+ return function getSsotDataCustomCodeByCustomCodeNameOrIdNotifyChange(configs) {
957
+ const keys = configs.map(c => keyBuilder$5(luvio, c));
958
+ luvio.getNotifyChangeStoreEntries(keys).then(entries => {
959
+ for (let i = 0, len = entries.length; i < len; i++) {
960
+ const { key, record: val } = entries[i];
961
+ const refreshRequest = createResourceRequestFromRepresentation(val);
962
+ luvio.dispatchResourceRequest(refreshRequest, options)
963
+ .then((response) => {
964
+ return luvio.handleSuccessResponse(() => {
965
+ const { body } = response;
966
+ luvio.storeIngest(key, ingest$1, body);
967
+ return luvio.storeBroadcast();
968
+ }, () => {
969
+ const cache = new StoreKeyMap();
970
+ getTypeCacheKeys$1(cache, luvio, response.body);
971
+ return cache;
972
+ });
973
+ }, (error) => {
974
+ return luvio.handleErrorResponse(() => {
975
+ const errorSnapshot = luvio.errorSnapshot(error);
976
+ luvio.storeIngestError(key, errorSnapshot, undefined);
977
+ return luvio.storeBroadcast().then(() => errorSnapshot);
978
+ });
979
+ });
980
+ }
981
+ });
982
+ };
983
+ };
984
+
985
+ const VERSION = "3d9a814ca87df7e7c79c5d385c146820";
986
+ function validate(obj, path = 'CustomCodeDeploymentCollectionRepresentation') {
987
+ const v_error = (() => {
988
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
989
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
990
+ }
991
+ const obj_currentPageUrl = obj.currentPageUrl;
992
+ const path_currentPageUrl = path + '.currentPageUrl';
993
+ if (typeof obj_currentPageUrl !== 'string') {
994
+ return new TypeError('Expected "string" but received "' + typeof obj_currentPageUrl + '" (at "' + path_currentPageUrl + '")');
995
+ }
996
+ const obj_customCodeDeployments = obj.customCodeDeployments;
997
+ const path_customCodeDeployments = path + '.customCodeDeployments';
998
+ if (!ArrayIsArray(obj_customCodeDeployments)) {
999
+ return new TypeError('Expected "array" but received "' + typeof obj_customCodeDeployments + '" (at "' + path_customCodeDeployments + '")');
1000
+ }
1001
+ for (let i = 0; i < obj_customCodeDeployments.length; i++) {
1002
+ const obj_customCodeDeployments_item = obj_customCodeDeployments[i];
1003
+ const path_customCodeDeployments_item = path_customCodeDeployments + '[' + i + ']';
1004
+ if (typeof obj_customCodeDeployments_item !== 'object') {
1005
+ return new TypeError('Expected "object" but received "' + typeof obj_customCodeDeployments_item + '" (at "' + path_customCodeDeployments_item + '")');
1006
+ }
1007
+ }
1008
+ if (obj.nextPageUrl !== undefined) {
1009
+ const obj_nextPageUrl = obj.nextPageUrl;
1010
+ const path_nextPageUrl = path + '.nextPageUrl';
1011
+ if (typeof obj_nextPageUrl !== 'string') {
1012
+ return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
1013
+ }
1014
+ }
1015
+ const obj_totalSize = obj.totalSize;
1016
+ const path_totalSize = path + '.totalSize';
1017
+ if (typeof obj_totalSize !== 'number' || (typeof obj_totalSize === 'number' && Math.floor(obj_totalSize) !== obj_totalSize)) {
1018
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalSize + '" (at "' + path_totalSize + '")');
1019
+ }
1020
+ })();
1021
+ return v_error === undefined ? null : v_error;
1022
+ }
1023
+ const RepresentationType = 'CustomCodeDeploymentCollectionRepresentation';
1024
+ function normalize(input, existing, path, luvio, store, timestamp) {
1025
+ const input_customCodeDeployments = input.customCodeDeployments;
1026
+ const input_customCodeDeployments_id = path.fullPath + '__customCodeDeployments';
1027
+ for (let i = 0; i < input_customCodeDeployments.length; i++) {
1028
+ const input_customCodeDeployments_item = input_customCodeDeployments[i];
1029
+ let input_customCodeDeployments_item_id = input_customCodeDeployments_id + '__' + i;
1030
+ input_customCodeDeployments[i] = ingest$1(input_customCodeDeployments_item, {
1031
+ fullPath: input_customCodeDeployments_item_id,
1032
+ propertyName: i,
1033
+ parent: {
1034
+ data: input,
1035
+ key: path.fullPath,
1036
+ existing: existing,
1037
+ },
1038
+ ttl: path.ttl
1039
+ }, luvio, store, timestamp);
1040
+ }
1041
+ return input;
1042
+ }
1043
+ const select$2 = function CustomCodeDeploymentCollectionRepresentationSelect() {
1044
+ return {
1045
+ kind: 'Fragment',
1046
+ version: VERSION,
1047
+ private: [],
1048
+ selections: [
1049
+ {
1050
+ name: 'currentPageUrl',
1051
+ kind: 'Scalar'
1052
+ },
1053
+ {
1054
+ name: 'customCodeDeployments',
1055
+ kind: 'Link',
1056
+ plural: true,
1057
+ fragment: select$5()
1058
+ },
1059
+ {
1060
+ name: 'nextPageUrl',
1061
+ kind: 'Scalar',
1062
+ required: false
1063
+ },
1064
+ {
1065
+ name: 'totalSize',
1066
+ kind: 'Scalar'
1067
+ }
1068
+ ]
1069
+ };
1070
+ };
1071
+ function equals(existing, incoming) {
1072
+ const existing_totalSize = existing.totalSize;
1073
+ const incoming_totalSize = incoming.totalSize;
1074
+ if (!(existing_totalSize === incoming_totalSize)) {
1075
+ return false;
1076
+ }
1077
+ const existing_currentPageUrl = existing.currentPageUrl;
1078
+ const incoming_currentPageUrl = incoming.currentPageUrl;
1079
+ if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
1080
+ return false;
1081
+ }
1082
+ const existing_nextPageUrl = existing.nextPageUrl;
1083
+ const incoming_nextPageUrl = incoming.nextPageUrl;
1084
+ // if at least one of these optionals is defined
1085
+ if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
1086
+ // if one of these is not defined we know the other is defined and therefore
1087
+ // not equal
1088
+ if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
1089
+ return false;
1090
+ }
1091
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
1092
+ return false;
1093
+ }
1094
+ }
1095
+ const existing_customCodeDeployments = existing.customCodeDeployments;
1096
+ const incoming_customCodeDeployments = incoming.customCodeDeployments;
1097
+ const equals_customCodeDeployments_items = equalsArray(existing_customCodeDeployments, incoming_customCodeDeployments, (existing_customCodeDeployments_item, incoming_customCodeDeployments_item) => {
1098
+ if (!(existing_customCodeDeployments_item.__ref === incoming_customCodeDeployments_item.__ref)) {
1099
+ return false;
1100
+ }
1101
+ });
1102
+ if (equals_customCodeDeployments_items === false) {
1103
+ return false;
1104
+ }
1105
+ return true;
1106
+ }
1107
+ const ingest = function CustomCodeDeploymentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1108
+ if (process.env.NODE_ENV !== 'production') {
1109
+ const validateError = validate(input);
1110
+ if (validateError !== null) {
1111
+ throw validateError;
1112
+ }
1113
+ }
1114
+ const key = path.fullPath;
1115
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1116
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "byoc", VERSION, RepresentationType, equals);
1117
+ return createLink(key);
1118
+ };
1119
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1120
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1121
+ const rootKey = fullPathFactory();
1122
+ rootKeySet.set(rootKey, {
1123
+ namespace: keyPrefix,
1124
+ representationName: RepresentationType,
1125
+ mergeable: false
1126
+ });
1127
+ const input_customCodeDeployments_length = input.customCodeDeployments.length;
1128
+ for (let i = 0; i < input_customCodeDeployments_length; i++) {
1129
+ getTypeCacheKeys$1(rootKeySet, luvio, input.customCodeDeployments[i]);
1130
+ }
1131
+ }
1132
+
1133
+ function select$1(luvio, params) {
1134
+ return select$2();
1135
+ }
1136
+ function keyBuilder$1(luvio, params) {
1137
+ return keyPrefix + '::CustomCodeDeploymentCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ')';
1138
+ }
1139
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1140
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
1141
+ }
1142
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1143
+ const { body } = response;
1144
+ const key = keyBuilder$1(luvio, resourceParams);
1145
+ luvio.storeIngest(key, ingest, body);
1146
+ const snapshot = luvio.storeLookup({
1147
+ recordId: key,
1148
+ node: select$1(),
1149
+ variables: {},
1150
+ }, snapshotRefresh);
1151
+ if (process.env.NODE_ENV !== 'production') {
1152
+ if (snapshot.state !== 'Fulfilled') {
1153
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1154
+ }
1155
+ }
1156
+ deepFreeze(snapshot.data);
1157
+ return snapshot;
1158
+ }
1159
+ function ingestError(luvio, params, error, snapshotRefresh) {
1160
+ const key = keyBuilder$1(luvio, params);
1161
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1162
+ luvio.storeIngestError(key, errorSnapshot);
1163
+ return errorSnapshot;
1164
+ }
1165
+ function createResourceRequest$1(config) {
1166
+ const headers = {};
1167
+ return {
1168
+ baseUri: '/services/data/v63.0',
1169
+ basePath: '/ssot/data-custom-code',
1170
+ method: 'get',
1171
+ body: null,
1172
+ urlParams: {},
1173
+ queryParams: config.queryParams,
1174
+ headers,
1175
+ priority: 'normal',
1176
+ };
1177
+ }
1178
+
1179
+ const adapterName$1 = 'getCustomCodeDeployments';
1180
+ const getCustomCodeDeployments_ConfigPropertyMetadata = [
1181
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1182
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1183
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
1184
+ ];
1185
+ const getCustomCodeDeployments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getCustomCodeDeployments_ConfigPropertyMetadata);
1186
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(getCustomCodeDeployments_ConfigPropertyMetadata);
1187
+ function keyBuilder(luvio, config) {
1188
+ const resourceParams = createResourceParams$1(config);
1189
+ return keyBuilder$1(luvio, resourceParams);
1190
+ }
1191
+ function typeCheckConfig$1(untrustedConfig) {
1192
+ const config = {};
1193
+ typeCheckConfig$5(untrustedConfig, config, getCustomCodeDeployments_ConfigPropertyMetadata);
1194
+ return config;
1195
+ }
1196
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1197
+ if (!untrustedIsObject(untrustedConfig)) {
1198
+ return null;
1199
+ }
1200
+ if (process.env.NODE_ENV !== 'production') {
1201
+ validateConfig(untrustedConfig, configPropertyNames);
1202
+ }
1203
+ const config = typeCheckConfig$1(untrustedConfig);
1204
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1205
+ return null;
1206
+ }
1207
+ return config;
1208
+ }
1209
+ function adapterFragment(luvio, config) {
1210
+ createResourceParams$1(config);
1211
+ return select$1();
1212
+ }
1213
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1214
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1215
+ config,
1216
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1217
+ });
1218
+ return luvio.storeBroadcast().then(() => snapshot);
1219
+ }
1220
+ function onFetchResponseError(luvio, config, resourceParams, response) {
1221
+ const snapshot = ingestError(luvio, resourceParams, response, {
1222
+ config,
1223
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1224
+ });
1225
+ return luvio.storeBroadcast().then(() => snapshot);
1226
+ }
1227
+ function buildNetworkSnapshot$1(luvio, config, options) {
1228
+ const resourceParams = createResourceParams$1(config);
1229
+ const request = createResourceRequest$1(resourceParams);
1230
+ return luvio.dispatchResourceRequest(request, options)
1231
+ .then((response) => {
1232
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1233
+ const cache = new StoreKeyMap();
1234
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1235
+ return cache;
1236
+ });
1237
+ }, (response) => {
1238
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1239
+ });
1240
+ }
1241
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1242
+ return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1243
+ }
1244
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1245
+ const { luvio, config } = context;
1246
+ const selector = {
1247
+ recordId: keyBuilder(luvio, config),
1248
+ node: adapterFragment(luvio, config),
1249
+ variables: {},
1250
+ };
1251
+ const cacheSnapshot = storeLookup(selector, {
1252
+ config,
1253
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1254
+ });
1255
+ return cacheSnapshot;
1256
+ }
1257
+ const getCustomCodeDeploymentsAdapterFactory = (luvio) => function byoc__getCustomCodeDeployments(untrustedConfig, requestContext) {
1258
+ const config = validateAdapterConfig$1(untrustedConfig, getCustomCodeDeployments_ConfigPropertyNames);
1259
+ // Invalid or incomplete config
1260
+ if (config === null) {
1261
+ return null;
1262
+ }
1263
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1264
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1265
+ };
1266
+
1267
+ function select(luvio, params) {
1268
+ return select$5();
1269
+ }
1270
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1271
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
1272
+ }
1273
+ function ingestSuccess(luvio, resourceParams, response) {
1274
+ const { body } = response;
1275
+ const key = keyBuilderFromType(luvio, body);
1276
+ luvio.storeIngest(key, ingest$1, body);
1277
+ const snapshot = luvio.storeLookup({
1278
+ recordId: key,
1279
+ node: select(),
1280
+ variables: {},
1281
+ });
1282
+ if (process.env.NODE_ENV !== 'production') {
1283
+ if (snapshot.state !== 'Fulfilled') {
1284
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1285
+ }
1286
+ }
1287
+ deepFreeze(snapshot.data);
1288
+ return snapshot;
1289
+ }
1290
+ function createResourceRequest(config) {
1291
+ const headers = {};
1292
+ return {
1293
+ baseUri: '/services/data/v63.0',
1294
+ basePath: '/ssot/data-custom-code/' + config.urlParams.customCodeNameOrId + '',
1295
+ method: 'patch',
1296
+ body: config.body,
1297
+ urlParams: config.urlParams,
1298
+ queryParams: {},
1299
+ headers,
1300
+ priority: 'normal',
1301
+ };
1302
+ }
1303
+
1304
+ const adapterName = 'updateCustomCodeDeployment';
1305
+ const updateCustomCodeDeployment_ConfigPropertyMetadata = [
1306
+ generateParamConfigMetadata('customCodeNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
1307
+ generateParamConfigMetadata('computeType', false, 2 /* Body */, 0 /* String */),
1308
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
1309
+ generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
1310
+ generateParamConfigMetadata('version', false, 2 /* Body */, 0 /* String */),
1311
+ ];
1312
+ const updateCustomCodeDeployment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateCustomCodeDeployment_ConfigPropertyMetadata);
1313
+ const createResourceParams = /*#__PURE__*/ createResourceParams$5(updateCustomCodeDeployment_ConfigPropertyMetadata);
1314
+ function typeCheckConfig(untrustedConfig) {
1315
+ const config = {};
1316
+ typeCheckConfig$5(untrustedConfig, config, updateCustomCodeDeployment_ConfigPropertyMetadata);
1317
+ return config;
1318
+ }
681
1319
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
682
1320
  if (!untrustedIsObject(untrustedConfig)) {
683
1321
  return null;
@@ -709,34 +1347,62 @@ function buildNetworkSnapshot(luvio, config, options) {
709
1347
  throw response;
710
1348
  });
711
1349
  }
712
- const createCustomCodeDeploymentAdapterFactory = (luvio) => {
713
- return function createCustomCodeDeployment(untrustedConfig) {
714
- const config = validateAdapterConfig(untrustedConfig, createCustomCodeDeployment_ConfigPropertyNames);
1350
+ const updateCustomCodeDeploymentAdapterFactory = (luvio) => {
1351
+ return function updateCustomCodeDeployment(untrustedConfig) {
1352
+ const config = validateAdapterConfig(untrustedConfig, updateCustomCodeDeployment_ConfigPropertyNames);
715
1353
  // Invalid or incomplete config
716
1354
  if (config === null) {
717
- throw new Error('Invalid config for "createCustomCodeDeployment"');
1355
+ throw new Error('Invalid config for "updateCustomCodeDeployment"');
718
1356
  }
719
1357
  return buildNetworkSnapshot(luvio, config);
720
1358
  };
721
1359
  };
722
1360
 
723
1361
  let createCustomCodeDeployment;
1362
+ let deleteCustomCodeDeployment;
1363
+ let getCustomCodeDeployment;
1364
+ let getCustomCodeDeploymentNotifyChange;
1365
+ let getCustomCodeDeployments;
1366
+ let updateCustomCodeDeployment;
1367
+ // Imperative GET Adapters
1368
+ let getCustomCodeDeployment_imperative;
1369
+ let getCustomCodeDeployments_imperative;
1370
+ const getCustomCodeDeploymentMetadata = { apiFamily: 'byoc', name: 'getCustomCodeDeployment' };
1371
+ const getCustomCodeDeploymentsMetadata = { apiFamily: 'byoc', name: 'getCustomCodeDeployments' };
724
1372
  // Notify Update Available
725
1373
  function bindExportsTo(luvio) {
726
1374
  // LDS Adapters
1375
+ const getCustomCodeDeployment_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCustomCodeDeployment', getCustomCodeDeploymentAdapterFactory), getCustomCodeDeploymentMetadata);
1376
+ const getCustomCodeDeployments_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCustomCodeDeployments', getCustomCodeDeploymentsAdapterFactory), getCustomCodeDeploymentsMetadata);
727
1377
  function unwrapSnapshotData(factory) {
728
1378
  const adapter = factory(luvio);
729
1379
  return (config) => adapter(config).then((snapshot) => snapshot.data);
730
1380
  }
731
1381
  return {
732
1382
  createCustomCodeDeployment: unwrapSnapshotData(createCustomCodeDeploymentAdapterFactory),
1383
+ deleteCustomCodeDeployment: createLDSAdapter(luvio, adapterName$3, deleteCustomCodeDeploymentAdapterFactory),
1384
+ getCustomCodeDeployment: createWireAdapterConstructor(luvio, getCustomCodeDeployment_ldsAdapter, getCustomCodeDeploymentMetadata),
1385
+ getCustomCodeDeploymentNotifyChange: createLDSAdapter(luvio, 'getCustomCodeDeploymentNotifyChange', notifyChangeFactory),
1386
+ getCustomCodeDeployments: createWireAdapterConstructor(luvio, getCustomCodeDeployments_ldsAdapter, getCustomCodeDeploymentsMetadata),
1387
+ updateCustomCodeDeployment: unwrapSnapshotData(updateCustomCodeDeploymentAdapterFactory),
733
1388
  // Imperative GET Adapters
1389
+ getCustomCodeDeployment_imperative: createImperativeAdapter(luvio, getCustomCodeDeployment_ldsAdapter, getCustomCodeDeploymentMetadata),
1390
+ getCustomCodeDeployments_imperative: createImperativeAdapter(luvio, getCustomCodeDeployments_ldsAdapter, getCustomCodeDeploymentsMetadata),
734
1391
  // Notify Update Availables
735
1392
  };
736
1393
  }
737
1394
  withDefaultLuvio((luvio) => {
738
- ({ createCustomCodeDeployment } = bindExportsTo(luvio));
1395
+ ({
1396
+ createCustomCodeDeployment,
1397
+ deleteCustomCodeDeployment,
1398
+ getCustomCodeDeployment,
1399
+ getCustomCodeDeploymentNotifyChange,
1400
+ getCustomCodeDeployments,
1401
+ updateCustomCodeDeployment,
1402
+ getCustomCodeDeployment_imperative,
1403
+ getCustomCodeDeployments_imperative,
1404
+ } = bindExportsTo(luvio));
739
1405
  });
740
1406
 
741
- export { createCustomCodeDeployment };
742
- // version: 1.332.0-dev20-8600de247a
1407
+ export { createCustomCodeDeployment, deleteCustomCodeDeployment, getCustomCodeDeployment, getCustomCodeDeploymentNotifyChange, getCustomCodeDeployment_imperative, getCustomCodeDeployments, getCustomCodeDeployments_imperative, updateCustomCodeDeployment };
1408
+ // version: 1.332.0-dev21-cc02503f9d