@salesforce/lds-adapters-industries-filebased-dataimport 1.258.0 → 1.259.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,10 +4,10 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, StoreKeyMap, createResourceParams as createResourceParams$b, typeCheckConfig as typeCheckConfig$b } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7, StoreKeyMap, createResourceParams as createResourceParams$c, typeCheckConfig as typeCheckConfig$c } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
- const { keys: ObjectKeys, create: ObjectCreate } = Object;
10
+ const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
11
11
  const { isArray: ArrayIsArray$1 } = Array;
12
12
  /**
13
13
  * Validates an adapter config is well-formed.
@@ -31,7 +31,7 @@ function validateConfig(config, adapter, oneOf) {
31
31
  throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
32
32
  }
33
33
  const supported = required.concat(optional);
34
- if (ObjectKeys(config).some(key => !supported.includes(key))) {
34
+ if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
35
35
  throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
36
36
  }
37
37
  }
@@ -71,7 +71,9 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
71
71
  }
72
72
  const keyPrefix = 'fileBased-dataimport';
73
73
 
74
+ const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
74
75
  const { isArray: ArrayIsArray } = Array;
76
+ const { stringify: JSONStringify } = JSON;
75
77
  function equalsArray(a, b, equalsItem) {
76
78
  const aLength = a.length;
77
79
  const bLength = b.length;
@@ -91,8 +93,8 @@ function createLink(ref) {
91
93
  };
92
94
  }
93
95
 
94
- const VERSION$b = "3124b7013ab7c908e4590d64fe411ce3";
95
- function validate$e(obj, path = 'FileBasedDataImportRepresentation') {
96
+ const VERSION$c = "3124b7013ab7c908e4590d64fe411ce3";
97
+ function validate$g(obj, path = 'FileBasedDataImportRepresentation') {
96
98
  const v_error = (() => {
97
99
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
100
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -356,23 +358,23 @@ function validate$e(obj, path = 'FileBasedDataImportRepresentation') {
356
358
  })();
357
359
  return v_error === undefined ? null : v_error;
358
360
  }
359
- const RepresentationType$6 = 'FileBasedDataImportRepresentation';
360
- function keyBuilder$e(luvio, config) {
361
- return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
361
+ const RepresentationType$7 = 'FileBasedDataImportRepresentation';
362
+ function keyBuilder$g(luvio, config) {
363
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
362
364
  }
363
365
  function keyBuilderFromType$1(luvio, object) {
364
366
  const keyParams = {
365
367
  id: object.id
366
368
  };
367
- return keyBuilder$e(luvio, keyParams);
369
+ return keyBuilder$g(luvio, keyParams);
368
370
  }
369
- function normalize$6(input, existing, path, luvio, store, timestamp) {
371
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
370
372
  return input;
371
373
  }
372
- const select$l = function FileBasedDataImportRepresentationSelect() {
374
+ const select$n = function FileBasedDataImportRepresentationSelect() {
373
375
  return {
374
376
  kind: 'Fragment',
375
- version: VERSION$b,
377
+ version: VERSION$c,
376
378
  private: [],
377
379
  selections: [
378
380
  {
@@ -458,7 +460,7 @@ const select$l = function FileBasedDataImportRepresentationSelect() {
458
460
  ]
459
461
  };
460
462
  };
461
- function equals$b(existing, incoming) {
463
+ function equals$c(existing, incoming) {
462
464
  const existing_failedRecordsCount = existing.failedRecordsCount;
463
465
  const incoming_failedRecordsCount = incoming.failedRecordsCount;
464
466
  // if at least one of these optionals is defined
@@ -642,30 +644,30 @@ function equals$b(existing, incoming) {
642
644
  }
643
645
  return true;
644
646
  }
645
- const ingest$6 = function FileBasedDataImportRepresentationIngest(input, path, luvio, store, timestamp) {
647
+ const ingest$7 = function FileBasedDataImportRepresentationIngest(input, path, luvio, store, timestamp) {
646
648
  if (process.env.NODE_ENV !== 'production') {
647
- const validateError = validate$e(input);
649
+ const validateError = validate$g(input);
648
650
  if (validateError !== null) {
649
651
  throw validateError;
650
652
  }
651
653
  }
652
654
  const key = keyBuilderFromType$1(luvio, input);
653
655
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300;
654
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "fileBased-dataimport", VERSION$b, RepresentationType$6, equals$b);
656
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "fileBased-dataimport", VERSION$c, RepresentationType$7, equals$c);
655
657
  return createLink(key);
656
658
  };
657
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
659
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
658
660
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
659
661
  const rootKey = keyBuilderFromType$1(luvio, input);
660
662
  rootKeySet.set(rootKey, {
661
663
  namespace: keyPrefix,
662
- representationName: RepresentationType$6,
664
+ representationName: RepresentationType$7,
663
665
  mergeable: false
664
666
  });
665
667
  }
666
668
 
667
- const VERSION$a = "5ba99358bf109c24644c99238f9a172c";
668
- function validate$d(obj, path = 'FileBasedDataImportByUserResultRepresentation') {
669
+ const VERSION$b = "5ba99358bf109c24644c99238f9a172c";
670
+ function validate$f(obj, path = 'FileBasedDataImportByUserResultRepresentation') {
669
671
  const v_error = (() => {
670
672
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
671
673
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -694,15 +696,15 @@ function validate$d(obj, path = 'FileBasedDataImportByUserResultRepresentation')
694
696
  })();
695
697
  return v_error === undefined ? null : v_error;
696
698
  }
697
- const RepresentationType$5 = 'FileBasedDataImportByUserResultRepresentation';
698
- function normalize$5(input, existing, path, luvio, store, timestamp) {
699
+ const RepresentationType$6 = 'FileBasedDataImportByUserResultRepresentation';
700
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
699
701
  const input_fileBasedDataImportRepresentations = input.fileBasedDataImportRepresentations;
700
702
  const input_fileBasedDataImportRepresentations_id = path.fullPath + '__fileBasedDataImportRepresentations';
701
703
  if (input_fileBasedDataImportRepresentations !== undefined) {
702
704
  for (let i = 0; i < input_fileBasedDataImportRepresentations.length; i++) {
703
705
  const input_fileBasedDataImportRepresentations_item = input_fileBasedDataImportRepresentations[i];
704
706
  let input_fileBasedDataImportRepresentations_item_id = input_fileBasedDataImportRepresentations_id + '__' + i;
705
- input_fileBasedDataImportRepresentations[i] = ingest$6(input_fileBasedDataImportRepresentations_item, {
707
+ input_fileBasedDataImportRepresentations[i] = ingest$7(input_fileBasedDataImportRepresentations_item, {
706
708
  fullPath: input_fileBasedDataImportRepresentations_item_id,
707
709
  propertyName: i,
708
710
  parent: {
@@ -716,10 +718,10 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
716
718
  }
717
719
  return input;
718
720
  }
719
- const select$k = function FileBasedDataImportByUserResultRepresentationSelect() {
721
+ const select$m = function FileBasedDataImportByUserResultRepresentationSelect() {
720
722
  return {
721
723
  kind: 'Fragment',
722
- version: VERSION$a,
724
+ version: VERSION$b,
723
725
  private: [],
724
726
  selections: [
725
727
  {
@@ -727,7 +729,7 @@ const select$k = function FileBasedDataImportByUserResultRepresentationSelect()
727
729
  kind: 'Link',
728
730
  plural: true,
729
731
  required: false,
730
- fragment: select$l()
732
+ fragment: select$n()
731
733
  },
732
734
  {
733
735
  name: 'isAdminUser',
@@ -737,7 +739,7 @@ const select$k = function FileBasedDataImportByUserResultRepresentationSelect()
737
739
  ]
738
740
  };
739
741
  };
740
- function equals$a(existing, incoming) {
742
+ function equals$b(existing, incoming) {
741
743
  const existing_isAdminUser = existing.isAdminUser;
742
744
  const incoming_isAdminUser = incoming.isAdminUser;
743
745
  // if at least one of these optionals is defined
@@ -771,50 +773,50 @@ function equals$a(existing, incoming) {
771
773
  }
772
774
  return true;
773
775
  }
774
- const ingest$5 = function FileBasedDataImportByUserResultRepresentationIngest(input, path, luvio, store, timestamp) {
776
+ const ingest$6 = function FileBasedDataImportByUserResultRepresentationIngest(input, path, luvio, store, timestamp) {
775
777
  if (process.env.NODE_ENV !== 'production') {
776
- const validateError = validate$d(input);
778
+ const validateError = validate$f(input);
777
779
  if (validateError !== null) {
778
780
  throw validateError;
779
781
  }
780
782
  }
781
783
  const key = path.fullPath;
782
784
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300;
783
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "fileBased-dataimport", VERSION$a, RepresentationType$5, equals$a);
785
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "fileBased-dataimport", VERSION$b, RepresentationType$6, equals$b);
784
786
  return createLink(key);
785
787
  };
786
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
788
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
787
789
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
788
790
  const rootKey = fullPathFactory();
789
791
  rootKeySet.set(rootKey, {
790
792
  namespace: keyPrefix,
791
- representationName: RepresentationType$5,
793
+ representationName: RepresentationType$6,
792
794
  mergeable: false
793
795
  });
794
796
  if (input.fileBasedDataImportRepresentations !== undefined) {
795
797
  const input_fileBasedDataImportRepresentations_length = input.fileBasedDataImportRepresentations.length;
796
798
  for (let i = 0; i < input_fileBasedDataImportRepresentations_length; i++) {
797
- getTypeCacheKeys$6(rootKeySet, luvio, input.fileBasedDataImportRepresentations[i]);
799
+ getTypeCacheKeys$7(rootKeySet, luvio, input.fileBasedDataImportRepresentations[i]);
798
800
  }
799
801
  }
800
802
  }
801
803
 
802
- function select$j(luvio, params) {
803
- return select$k();
804
+ function select$l(luvio, params) {
805
+ return select$m();
804
806
  }
805
- function keyBuilder$d(luvio, params) {
807
+ function keyBuilder$f(luvio, params) {
806
808
  return keyPrefix + '::FileBasedDataImportByUserResultRepresentation:(' + ')';
807
809
  }
808
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
809
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$d());
810
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
811
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$f());
810
812
  }
811
- function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
813
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
812
814
  const { body } = response;
813
- const key = keyBuilder$d();
814
- luvio.storeIngest(key, ingest$5, body);
815
+ const key = keyBuilder$f();
816
+ luvio.storeIngest(key, ingest$6, body);
815
817
  const snapshot = luvio.storeLookup({
816
818
  recordId: key,
817
- node: select$j(),
819
+ node: select$l(),
818
820
  variables: {},
819
821
  }, snapshotRefresh);
820
822
  if (process.env.NODE_ENV !== 'production') {
@@ -825,13 +827,13 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
825
827
  deepFreeze(snapshot.data);
826
828
  return snapshot;
827
829
  }
828
- function ingestError$5(luvio, params, error, snapshotRefresh) {
829
- const key = keyBuilder$d();
830
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
831
+ const key = keyBuilder$f();
830
832
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
831
833
  luvio.storeIngestError(key, errorSnapshot);
832
834
  return errorSnapshot;
833
835
  }
834
- function createResourceRequest$a(config) {
836
+ function createResourceRequest$b(config) {
835
837
  const headers = {};
836
838
  return {
837
839
  baseUri: '/services/data/v60.0',
@@ -845,102 +847,102 @@ function createResourceRequest$a(config) {
845
847
  };
846
848
  }
847
849
 
848
- const adapterName$a = 'getFileBasedDataImports';
850
+ const adapterName$b = 'getFileBasedDataImports';
849
851
  const getFileBasedDataImports_ConfigPropertyMetadata = [];
850
- const getFileBasedDataImports_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getFileBasedDataImports_ConfigPropertyMetadata);
851
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(getFileBasedDataImports_ConfigPropertyMetadata);
852
- function keyBuilder$c(luvio, config) {
853
- createResourceParams$a(config);
854
- return keyBuilder$d();
852
+ const getFileBasedDataImports_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getFileBasedDataImports_ConfigPropertyMetadata);
853
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(getFileBasedDataImports_ConfigPropertyMetadata);
854
+ function keyBuilder$e(luvio, config) {
855
+ createResourceParams$b(config);
856
+ return keyBuilder$f();
855
857
  }
856
- function typeCheckConfig$a(untrustedConfig) {
858
+ function typeCheckConfig$b(untrustedConfig) {
857
859
  const config = {};
858
860
  return config;
859
861
  }
860
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
862
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
861
863
  if (!untrustedIsObject(untrustedConfig)) {
862
864
  return null;
863
865
  }
864
866
  if (process.env.NODE_ENV !== 'production') {
865
867
  validateConfig(untrustedConfig, configPropertyNames);
866
868
  }
867
- const config = typeCheckConfig$a();
869
+ const config = typeCheckConfig$b();
868
870
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
869
871
  return null;
870
872
  }
871
873
  return config;
872
874
  }
873
- function adapterFragment$5(luvio, config) {
874
- createResourceParams$a(config);
875
- return select$j();
875
+ function adapterFragment$6(luvio, config) {
876
+ createResourceParams$b(config);
877
+ return select$l();
876
878
  }
877
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
878
- const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
879
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
880
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
879
881
  config,
880
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
882
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
881
883
  });
882
884
  return luvio.storeBroadcast().then(() => snapshot);
883
885
  }
884
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
885
- const snapshot = ingestError$5(luvio, resourceParams, response, {
886
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
887
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
886
888
  config,
887
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
889
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
888
890
  });
889
891
  return luvio.storeBroadcast().then(() => snapshot);
890
892
  }
891
- function buildNetworkSnapshot$a(luvio, config, options) {
892
- const resourceParams = createResourceParams$a(config);
893
- const request = createResourceRequest$a();
893
+ function buildNetworkSnapshot$b(luvio, config, options) {
894
+ const resourceParams = createResourceParams$b(config);
895
+ const request = createResourceRequest$b();
894
896
  return luvio.dispatchResourceRequest(request, options)
895
897
  .then((response) => {
896
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
898
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
897
899
  const cache = new StoreKeyMap();
898
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
900
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
899
901
  return cache;
900
902
  });
901
903
  }, (response) => {
902
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
904
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
903
905
  });
904
906
  }
905
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
906
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
907
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
908
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
907
909
  }
908
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
910
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
909
911
  const { luvio, config } = context;
910
912
  const selector = {
911
- recordId: keyBuilder$c(luvio, config),
912
- node: adapterFragment$5(luvio, config),
913
+ recordId: keyBuilder$e(luvio, config),
914
+ node: adapterFragment$6(luvio, config),
913
915
  variables: {},
914
916
  };
915
917
  const cacheSnapshot = storeLookup(selector, {
916
918
  config,
917
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
919
+ resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
918
920
  });
919
921
  return cacheSnapshot;
920
922
  }
921
923
  const getFileBasedDataImportsAdapterFactory = (luvio) => function fileBasedDataimport__getFileBasedDataImports(untrustedConfig, requestContext) {
922
- const config = validateAdapterConfig$a(untrustedConfig, getFileBasedDataImports_ConfigPropertyNames);
924
+ const config = validateAdapterConfig$b(untrustedConfig, getFileBasedDataImports_ConfigPropertyNames);
923
925
  // Invalid or incomplete config
924
926
  if (config === null) {
925
927
  return null;
926
928
  }
927
929
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
928
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
930
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
929
931
  };
930
932
 
931
- function select$i(luvio, params) {
932
- return select$l();
933
+ function select$k(luvio, params) {
934
+ return select$n();
933
935
  }
934
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
935
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
936
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
937
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
936
938
  }
937
- function ingestSuccess$8(luvio, resourceParams, response) {
939
+ function ingestSuccess$9(luvio, resourceParams, response) {
938
940
  const { body } = response;
939
941
  const key = keyBuilderFromType$1(luvio, body);
940
- luvio.storeIngest(key, ingest$6, body);
942
+ luvio.storeIngest(key, ingest$7, body);
941
943
  const snapshot = luvio.storeLookup({
942
944
  recordId: key,
943
- node: select$i(),
945
+ node: select$k(),
944
946
  variables: {},
945
947
  });
946
948
  if (process.env.NODE_ENV !== 'production') {
@@ -951,7 +953,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
951
953
  deepFreeze(snapshot.data);
952
954
  return snapshot;
953
955
  }
954
- function createResourceRequest$9(config) {
956
+ function createResourceRequest$a(config) {
955
957
  const headers = {};
956
958
  return {
957
959
  baseUri: '/services/data/v60.0',
@@ -965,7 +967,7 @@ function createResourceRequest$9(config) {
965
967
  };
966
968
  }
967
969
 
968
- const adapterName$9 = 'createFileBasedDataImport';
970
+ const adapterName$a = 'createFileBasedDataImport';
969
971
  const createFileBasedDataImport_ConfigPropertyMetadata = [
970
972
  generateParamConfigMetadata('failedRecordContentDoc', false, 2 /* Body */, 0 /* String */),
971
973
  generateParamConfigMetadata('failedRecordCount', false, 2 /* Body */, 3 /* Integer */),
@@ -983,37 +985,37 @@ const createFileBasedDataImport_ConfigPropertyMetadata = [
983
985
  generateParamConfigMetadata('unprocessedRecordContentDoc', false, 2 /* Body */, 0 /* String */),
984
986
  generateParamConfigMetadata('unprocessedRecordCount', false, 2 /* Body */, 3 /* Integer */),
985
987
  ];
986
- const createFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createFileBasedDataImport_ConfigPropertyMetadata);
987
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(createFileBasedDataImport_ConfigPropertyMetadata);
988
- function typeCheckConfig$9(untrustedConfig) {
988
+ const createFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createFileBasedDataImport_ConfigPropertyMetadata);
989
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(createFileBasedDataImport_ConfigPropertyMetadata);
990
+ function typeCheckConfig$a(untrustedConfig) {
989
991
  const config = {};
990
- typeCheckConfig$b(untrustedConfig, config, createFileBasedDataImport_ConfigPropertyMetadata);
992
+ typeCheckConfig$c(untrustedConfig, config, createFileBasedDataImport_ConfigPropertyMetadata);
991
993
  return config;
992
994
  }
993
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
995
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
994
996
  if (!untrustedIsObject(untrustedConfig)) {
995
997
  return null;
996
998
  }
997
999
  if (process.env.NODE_ENV !== 'production') {
998
1000
  validateConfig(untrustedConfig, configPropertyNames);
999
1001
  }
1000
- const config = typeCheckConfig$9(untrustedConfig);
1002
+ const config = typeCheckConfig$a(untrustedConfig);
1001
1003
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1002
1004
  return null;
1003
1005
  }
1004
1006
  return config;
1005
1007
  }
1006
- function buildNetworkSnapshot$9(luvio, config, options) {
1007
- const resourceParams = createResourceParams$9(config);
1008
- const request = createResourceRequest$9(resourceParams);
1008
+ function buildNetworkSnapshot$a(luvio, config, options) {
1009
+ const resourceParams = createResourceParams$a(config);
1010
+ const request = createResourceRequest$a(resourceParams);
1009
1011
  return luvio.dispatchResourceRequest(request, options)
1010
1012
  .then((response) => {
1011
1013
  return luvio.handleSuccessResponse(() => {
1012
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1014
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
1013
1015
  return luvio.storeBroadcast().then(() => snapshot);
1014
1016
  }, () => {
1015
1017
  const cache = new StoreKeyMap();
1016
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1018
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1017
1019
  return cache;
1018
1020
  });
1019
1021
  }, (response) => {
@@ -1023,16 +1025,16 @@ function buildNetworkSnapshot$9(luvio, config, options) {
1023
1025
  }
1024
1026
  const createFileBasedDataImportAdapterFactory = (luvio) => {
1025
1027
  return function createFileBasedDataImport(untrustedConfig) {
1026
- const config = validateAdapterConfig$9(untrustedConfig, createFileBasedDataImport_ConfigPropertyNames);
1028
+ const config = validateAdapterConfig$a(untrustedConfig, createFileBasedDataImport_ConfigPropertyNames);
1027
1029
  // Invalid or incomplete config
1028
1030
  if (config === null) {
1029
1031
  throw new Error('Invalid config for "createFileBasedDataImport"');
1030
1032
  }
1031
- return buildNetworkSnapshot$9(luvio, config);
1033
+ return buildNetworkSnapshot$a(luvio, config);
1032
1034
  };
1033
1035
  };
1034
1036
 
1035
- function validate$c(obj, path = 'FieldConfigurationInputRepresentation') {
1037
+ function validate$e(obj, path = 'FieldConfigurationInputRepresentation') {
1036
1038
  const v_error = (() => {
1037
1039
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1038
1040
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1076,7 +1078,7 @@ function validate$c(obj, path = 'FieldConfigurationInputRepresentation') {
1076
1078
  return v_error === undefined ? null : v_error;
1077
1079
  }
1078
1080
 
1079
- function validate$b(obj, path = 'ImportOperationInputRepresentation') {
1081
+ function validate$d(obj, path = 'ImportOperationInputRepresentation') {
1080
1082
  const v_error = (() => {
1081
1083
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1082
1084
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1106,7 +1108,7 @@ function validate$b(obj, path = 'ImportOperationInputRepresentation') {
1106
1108
  return v_error === undefined ? null : v_error;
1107
1109
  }
1108
1110
 
1109
- function validate$a(obj, path = 'ImportOptionsInputRepresentation') {
1111
+ function validate$c(obj, path = 'ImportOptionsInputRepresentation') {
1110
1112
  const v_error = (() => {
1111
1113
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1112
1114
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1134,7 +1136,7 @@ function validate$a(obj, path = 'ImportOptionsInputRepresentation') {
1134
1136
  for (let i = 0; i < obj_fieldConfigurations.length; i++) {
1135
1137
  const obj_fieldConfigurations_item = obj_fieldConfigurations[i];
1136
1138
  const path_fieldConfigurations_item = path_fieldConfigurations + '[' + i + ']';
1137
- const referencepath_fieldConfigurations_itemValidationError = validate$c(obj_fieldConfigurations_item, path_fieldConfigurations_item);
1139
+ const referencepath_fieldConfigurations_itemValidationError = validate$e(obj_fieldConfigurations_item, path_fieldConfigurations_item);
1138
1140
  if (referencepath_fieldConfigurations_itemValidationError !== null) {
1139
1141
  let message = 'Object doesn\'t match FieldConfigurationInputRepresentation (at "' + path_fieldConfigurations_item + '")\n';
1140
1142
  message += referencepath_fieldConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1145,7 +1147,7 @@ function validate$a(obj, path = 'ImportOptionsInputRepresentation') {
1145
1147
  if (obj.operation !== undefined) {
1146
1148
  const obj_operation = obj.operation;
1147
1149
  const path_operation = path + '.operation';
1148
- const referencepath_operationValidationError = validate$b(obj_operation, path_operation);
1150
+ const referencepath_operationValidationError = validate$d(obj_operation, path_operation);
1149
1151
  if (referencepath_operationValidationError !== null) {
1150
1152
  let message = 'Object doesn\'t match ImportOperationInputRepresentation (at "' + path_operation + '")\n';
1151
1153
  message += referencepath_operationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1156,8 +1158,8 @@ function validate$a(obj, path = 'ImportOptionsInputRepresentation') {
1156
1158
  return v_error === undefined ? null : v_error;
1157
1159
  }
1158
1160
 
1159
- const VERSION$9 = "0f74d1482de21ff21d94491b9f9b869a";
1160
- function validate$9(obj, path = 'FileImportOutputRepresentation') {
1161
+ const VERSION$a = "0f74d1482de21ff21d94491b9f9b869a";
1162
+ function validate$b(obj, path = 'FileImportOutputRepresentation') {
1161
1163
  const v_error = (() => {
1162
1164
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1163
1165
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1175,23 +1177,23 @@ function validate$9(obj, path = 'FileImportOutputRepresentation') {
1175
1177
  })();
1176
1178
  return v_error === undefined ? null : v_error;
1177
1179
  }
1178
- const RepresentationType$4 = 'FileImportOutputRepresentation';
1179
- function keyBuilder$b(luvio, config) {
1180
- return keyPrefix + '::' + RepresentationType$4 + ':' + config.statusCode;
1180
+ const RepresentationType$5 = 'FileImportOutputRepresentation';
1181
+ function keyBuilder$d(luvio, config) {
1182
+ return keyPrefix + '::' + RepresentationType$5 + ':' + config.statusCode;
1181
1183
  }
1182
1184
  function keyBuilderFromType(luvio, object) {
1183
1185
  const keyParams = {
1184
1186
  statusCode: object.statusCode
1185
1187
  };
1186
- return keyBuilder$b(luvio, keyParams);
1188
+ return keyBuilder$d(luvio, keyParams);
1187
1189
  }
1188
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1190
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1189
1191
  return input;
1190
1192
  }
1191
- const select$h = function FileImportOutputRepresentationSelect() {
1193
+ const select$j = function FileImportOutputRepresentationSelect() {
1192
1194
  return {
1193
1195
  kind: 'Fragment',
1194
- version: VERSION$9,
1196
+ version: VERSION$a,
1195
1197
  private: [],
1196
1198
  selections: [
1197
1199
  {
@@ -1205,7 +1207,7 @@ const select$h = function FileImportOutputRepresentationSelect() {
1205
1207
  ]
1206
1208
  };
1207
1209
  };
1208
- function equals$9(existing, incoming) {
1210
+ function equals$a(existing, incoming) {
1209
1211
  const existing_statusCode = existing.statusCode;
1210
1212
  const incoming_statusCode = incoming.statusCode;
1211
1213
  if (!(existing_statusCode === incoming_statusCode)) {
@@ -1218,41 +1220,41 @@ function equals$9(existing, incoming) {
1218
1220
  }
1219
1221
  return true;
1220
1222
  }
1221
- const ingest$4 = function FileImportOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1223
+ const ingest$5 = function FileImportOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1222
1224
  if (process.env.NODE_ENV !== 'production') {
1223
- const validateError = validate$9(input);
1225
+ const validateError = validate$b(input);
1224
1226
  if (validateError !== null) {
1225
1227
  throw validateError;
1226
1228
  }
1227
1229
  }
1228
1230
  const key = keyBuilderFromType(luvio, input);
1229
1231
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300;
1230
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "fileBased-dataimport", VERSION$9, RepresentationType$4, equals$9);
1232
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "fileBased-dataimport", VERSION$a, RepresentationType$5, equals$a);
1231
1233
  return createLink(key);
1232
1234
  };
1233
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1235
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1234
1236
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1235
1237
  const rootKey = keyBuilderFromType(luvio, input);
1236
1238
  rootKeySet.set(rootKey, {
1237
1239
  namespace: keyPrefix,
1238
- representationName: RepresentationType$4,
1240
+ representationName: RepresentationType$5,
1239
1241
  mergeable: false
1240
1242
  });
1241
1243
  }
1242
1244
 
1243
- function select$g(luvio, params) {
1244
- return select$h();
1245
+ function select$i(luvio, params) {
1246
+ return select$j();
1245
1247
  }
1246
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1247
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
1248
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1249
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
1248
1250
  }
1249
- function ingestSuccess$7(luvio, resourceParams, response) {
1251
+ function ingestSuccess$8(luvio, resourceParams, response) {
1250
1252
  const { body } = response;
1251
1253
  const key = keyBuilderFromType(luvio, body);
1252
- luvio.storeIngest(key, ingest$4, body);
1254
+ luvio.storeIngest(key, ingest$5, body);
1253
1255
  const snapshot = luvio.storeLookup({
1254
1256
  recordId: key,
1255
- node: select$g(),
1257
+ node: select$i(),
1256
1258
  variables: {},
1257
1259
  });
1258
1260
  if (process.env.NODE_ENV !== 'production') {
@@ -1263,7 +1265,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
1263
1265
  deepFreeze(snapshot.data);
1264
1266
  return snapshot;
1265
1267
  }
1266
- function createResourceRequest$8(config) {
1268
+ function createResourceRequest$9(config) {
1267
1269
  const headers = {};
1268
1270
  return {
1269
1271
  baseUri: '/services/data/v60.0',
@@ -1277,48 +1279,48 @@ function createResourceRequest$8(config) {
1277
1279
  };
1278
1280
  }
1279
1281
 
1280
- const adapterName$8 = 'startAdvanceImport';
1282
+ const adapterName$9 = 'startAdvanceImport';
1281
1283
  const startAdvanceImport_ConfigPropertyMetadata = [
1282
1284
  generateParamConfigMetadata('importReferenceId', true, 2 /* Body */, 0 /* String */),
1283
1285
  generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
1284
1286
  generateParamConfigMetadata('targetContext', true, 2 /* Body */, 0 /* String */),
1285
1287
  ];
1286
- const startAdvanceImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, startAdvanceImport_ConfigPropertyMetadata);
1287
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(startAdvanceImport_ConfigPropertyMetadata);
1288
- function typeCheckConfig$8(untrustedConfig) {
1288
+ const startAdvanceImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, startAdvanceImport_ConfigPropertyMetadata);
1289
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(startAdvanceImport_ConfigPropertyMetadata);
1290
+ function typeCheckConfig$9(untrustedConfig) {
1289
1291
  const config = {};
1290
- typeCheckConfig$b(untrustedConfig, config, startAdvanceImport_ConfigPropertyMetadata);
1292
+ typeCheckConfig$c(untrustedConfig, config, startAdvanceImport_ConfigPropertyMetadata);
1291
1293
  const untrustedConfig_options = untrustedConfig.options;
1292
- const referenceImportOptionsInputRepresentationValidationError = validate$a(untrustedConfig_options);
1294
+ const referenceImportOptionsInputRepresentationValidationError = validate$c(untrustedConfig_options);
1293
1295
  if (referenceImportOptionsInputRepresentationValidationError === null) {
1294
1296
  config.options = untrustedConfig_options;
1295
1297
  }
1296
1298
  return config;
1297
1299
  }
1298
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1300
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1299
1301
  if (!untrustedIsObject(untrustedConfig)) {
1300
1302
  return null;
1301
1303
  }
1302
1304
  if (process.env.NODE_ENV !== 'production') {
1303
1305
  validateConfig(untrustedConfig, configPropertyNames);
1304
1306
  }
1305
- const config = typeCheckConfig$8(untrustedConfig);
1307
+ const config = typeCheckConfig$9(untrustedConfig);
1306
1308
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1307
1309
  return null;
1308
1310
  }
1309
1311
  return config;
1310
1312
  }
1311
- function buildNetworkSnapshot$8(luvio, config, options) {
1312
- const resourceParams = createResourceParams$8(config);
1313
- const request = createResourceRequest$8(resourceParams);
1313
+ function buildNetworkSnapshot$9(luvio, config, options) {
1314
+ const resourceParams = createResourceParams$9(config);
1315
+ const request = createResourceRequest$9(resourceParams);
1314
1316
  return luvio.dispatchResourceRequest(request, options)
1315
1317
  .then((response) => {
1316
1318
  return luvio.handleSuccessResponse(() => {
1317
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1319
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1318
1320
  return luvio.storeBroadcast().then(() => snapshot);
1319
1321
  }, () => {
1320
1322
  const cache = new StoreKeyMap();
1321
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1323
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1322
1324
  return cache;
1323
1325
  });
1324
1326
  }, (response) => {
@@ -1328,28 +1330,28 @@ function buildNetworkSnapshot$8(luvio, config, options) {
1328
1330
  }
1329
1331
  const startAdvanceImportAdapterFactory = (luvio) => {
1330
1332
  return function startAdvanceImport(untrustedConfig) {
1331
- const config = validateAdapterConfig$8(untrustedConfig, startAdvanceImport_ConfigPropertyNames);
1333
+ const config = validateAdapterConfig$9(untrustedConfig, startAdvanceImport_ConfigPropertyNames);
1332
1334
  // Invalid or incomplete config
1333
1335
  if (config === null) {
1334
1336
  throw new Error('Invalid config for "startAdvanceImport"');
1335
1337
  }
1336
- return buildNetworkSnapshot$8(luvio, config);
1338
+ return buildNetworkSnapshot$9(luvio, config);
1337
1339
  };
1338
1340
  };
1339
1341
 
1340
- function select$f(luvio, params) {
1341
- return select$h();
1342
+ function select$h(luvio, params) {
1343
+ return select$j();
1342
1344
  }
1343
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1344
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
1345
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1346
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
1345
1347
  }
1346
- function ingestSuccess$6(luvio, resourceParams, response) {
1348
+ function ingestSuccess$7(luvio, resourceParams, response) {
1347
1349
  const { body } = response;
1348
1350
  const key = keyBuilderFromType(luvio, body);
1349
- luvio.storeIngest(key, ingest$4, body);
1351
+ luvio.storeIngest(key, ingest$5, body);
1350
1352
  const snapshot = luvio.storeLookup({
1351
1353
  recordId: key,
1352
- node: select$f(),
1354
+ node: select$h(),
1353
1355
  variables: {},
1354
1356
  });
1355
1357
  if (process.env.NODE_ENV !== 'production') {
@@ -1360,7 +1362,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
1360
1362
  deepFreeze(snapshot.data);
1361
1363
  return snapshot;
1362
1364
  }
1363
- function createResourceRequest$7(config) {
1365
+ function createResourceRequest$8(config) {
1364
1366
  const headers = {};
1365
1367
  return {
1366
1368
  baseUri: '/services/data/v60.0',
@@ -1374,48 +1376,48 @@ function createResourceRequest$7(config) {
1374
1376
  };
1375
1377
  }
1376
1378
 
1377
- const adapterName$7 = 'startSimpleImport';
1379
+ const adapterName$8 = 'startSimpleImport';
1378
1380
  const startSimpleImport_ConfigPropertyMetadata = [
1379
1381
  generateParamConfigMetadata('importReferenceId', true, 2 /* Body */, 0 /* String */),
1380
1382
  generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
1381
1383
  generateParamConfigMetadata('targetContext', true, 2 /* Body */, 0 /* String */),
1382
1384
  ];
1383
- const startSimpleImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, startSimpleImport_ConfigPropertyMetadata);
1384
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(startSimpleImport_ConfigPropertyMetadata);
1385
- function typeCheckConfig$7(untrustedConfig) {
1385
+ const startSimpleImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, startSimpleImport_ConfigPropertyMetadata);
1386
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(startSimpleImport_ConfigPropertyMetadata);
1387
+ function typeCheckConfig$8(untrustedConfig) {
1386
1388
  const config = {};
1387
- typeCheckConfig$b(untrustedConfig, config, startSimpleImport_ConfigPropertyMetadata);
1389
+ typeCheckConfig$c(untrustedConfig, config, startSimpleImport_ConfigPropertyMetadata);
1388
1390
  const untrustedConfig_options = untrustedConfig.options;
1389
- const referenceImportOptionsInputRepresentationValidationError = validate$a(untrustedConfig_options);
1391
+ const referenceImportOptionsInputRepresentationValidationError = validate$c(untrustedConfig_options);
1390
1392
  if (referenceImportOptionsInputRepresentationValidationError === null) {
1391
1393
  config.options = untrustedConfig_options;
1392
1394
  }
1393
1395
  return config;
1394
1396
  }
1395
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1397
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1396
1398
  if (!untrustedIsObject(untrustedConfig)) {
1397
1399
  return null;
1398
1400
  }
1399
1401
  if (process.env.NODE_ENV !== 'production') {
1400
1402
  validateConfig(untrustedConfig, configPropertyNames);
1401
1403
  }
1402
- const config = typeCheckConfig$7(untrustedConfig);
1404
+ const config = typeCheckConfig$8(untrustedConfig);
1403
1405
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1404
1406
  return null;
1405
1407
  }
1406
1408
  return config;
1407
1409
  }
1408
- function buildNetworkSnapshot$7(luvio, config, options) {
1409
- const resourceParams = createResourceParams$7(config);
1410
- const request = createResourceRequest$7(resourceParams);
1410
+ function buildNetworkSnapshot$8(luvio, config, options) {
1411
+ const resourceParams = createResourceParams$8(config);
1412
+ const request = createResourceRequest$8(resourceParams);
1411
1413
  return luvio.dispatchResourceRequest(request, options)
1412
1414
  .then((response) => {
1413
1415
  return luvio.handleSuccessResponse(() => {
1414
- const snapshot = ingestSuccess$6(luvio, resourceParams, response);
1416
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1415
1417
  return luvio.storeBroadcast().then(() => snapshot);
1416
1418
  }, () => {
1417
1419
  const cache = new StoreKeyMap();
1418
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1420
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1419
1421
  return cache;
1420
1422
  });
1421
1423
  }, (response) => {
@@ -1425,33 +1427,33 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1425
1427
  }
1426
1428
  const startSimpleImportAdapterFactory = (luvio) => {
1427
1429
  return function startSimpleImport(untrustedConfig) {
1428
- const config = validateAdapterConfig$7(untrustedConfig, startSimpleImport_ConfigPropertyNames);
1430
+ const config = validateAdapterConfig$8(untrustedConfig, startSimpleImport_ConfigPropertyNames);
1429
1431
  // Invalid or incomplete config
1430
1432
  if (config === null) {
1431
1433
  throw new Error('Invalid config for "startSimpleImport"');
1432
1434
  }
1433
- return buildNetworkSnapshot$7(luvio, config);
1435
+ return buildNetworkSnapshot$8(luvio, config);
1434
1436
  };
1435
1437
  };
1436
1438
 
1437
- function keyBuilder$a(luvio, params) {
1438
- return keyBuilder$e(luvio, {
1439
+ function keyBuilder$c(luvio, params) {
1440
+ return keyBuilder$g(luvio, {
1439
1441
  id: params.urlParams.fileBasedImportId
1440
1442
  });
1441
1443
  }
1442
- function getResponseCacheKeys$6(cacheKeyMap, luvio, resourceParams) {
1443
- const key = keyBuilder$a(luvio, resourceParams);
1444
+ function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
1445
+ const key = keyBuilder$c(luvio, resourceParams);
1444
1446
  cacheKeyMap.set(key, {
1445
1447
  namespace: keyPrefix,
1446
- representationName: RepresentationType$6,
1448
+ representationName: RepresentationType$7,
1447
1449
  mergeable: false
1448
1450
  });
1449
1451
  }
1450
1452
  function evictSuccess(luvio, resourceParams) {
1451
- const key = keyBuilder$a(luvio, resourceParams);
1453
+ const key = keyBuilder$c(luvio, resourceParams);
1452
1454
  luvio.storeEvict(key);
1453
1455
  }
1454
- function createResourceRequest$6(config) {
1456
+ function createResourceRequest$7(config) {
1455
1457
  const headers = {};
1456
1458
  return {
1457
1459
  baseUri: '/services/data/v60.0',
@@ -1465,33 +1467,33 @@ function createResourceRequest$6(config) {
1465
1467
  };
1466
1468
  }
1467
1469
 
1468
- const adapterName$6 = 'deleteFileBasedDataImport';
1470
+ const adapterName$7 = 'deleteFileBasedDataImport';
1469
1471
  const deleteFileBasedDataImport_ConfigPropertyMetadata = [
1470
1472
  generateParamConfigMetadata('fileBasedImportId', true, 0 /* UrlParameter */, 0 /* String */),
1471
1473
  ];
1472
- const deleteFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, deleteFileBasedDataImport_ConfigPropertyMetadata);
1473
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(deleteFileBasedDataImport_ConfigPropertyMetadata);
1474
- function typeCheckConfig$6(untrustedConfig) {
1474
+ const deleteFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteFileBasedDataImport_ConfigPropertyMetadata);
1475
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(deleteFileBasedDataImport_ConfigPropertyMetadata);
1476
+ function typeCheckConfig$7(untrustedConfig) {
1475
1477
  const config = {};
1476
- typeCheckConfig$b(untrustedConfig, config, deleteFileBasedDataImport_ConfigPropertyMetadata);
1478
+ typeCheckConfig$c(untrustedConfig, config, deleteFileBasedDataImport_ConfigPropertyMetadata);
1477
1479
  return config;
1478
1480
  }
1479
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1481
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1480
1482
  if (!untrustedIsObject(untrustedConfig)) {
1481
1483
  return null;
1482
1484
  }
1483
1485
  if (process.env.NODE_ENV !== 'production') {
1484
1486
  validateConfig(untrustedConfig, configPropertyNames);
1485
1487
  }
1486
- const config = typeCheckConfig$6(untrustedConfig);
1488
+ const config = typeCheckConfig$7(untrustedConfig);
1487
1489
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1488
1490
  return null;
1489
1491
  }
1490
1492
  return config;
1491
1493
  }
1492
- function buildNetworkSnapshot$6(luvio, config, options) {
1493
- const resourceParams = createResourceParams$6(config);
1494
- const request = createResourceRequest$6(resourceParams);
1494
+ function buildNetworkSnapshot$7(luvio, config, options) {
1495
+ const resourceParams = createResourceParams$7(config);
1496
+ const request = createResourceRequest$7(resourceParams);
1495
1497
  return luvio.dispatchResourceRequest(request, options)
1496
1498
  .then(() => {
1497
1499
  return luvio.handleSuccessResponse(() => {
@@ -1499,7 +1501,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
1499
1501
  return luvio.storeBroadcast();
1500
1502
  }, () => {
1501
1503
  const cache = new StoreKeyMap();
1502
- getResponseCacheKeys$6(cache, luvio, resourceParams);
1504
+ getResponseCacheKeys$7(cache, luvio, resourceParams);
1503
1505
  return cache;
1504
1506
  });
1505
1507
  }, (response) => {
@@ -1509,33 +1511,33 @@ function buildNetworkSnapshot$6(luvio, config, options) {
1509
1511
  }
1510
1512
  const deleteFileBasedDataImportAdapterFactory = (luvio) => {
1511
1513
  return function fileBasedDataimportdeleteFileBasedDataImport(untrustedConfig) {
1512
- const config = validateAdapterConfig$6(untrustedConfig, deleteFileBasedDataImport_ConfigPropertyNames);
1514
+ const config = validateAdapterConfig$7(untrustedConfig, deleteFileBasedDataImport_ConfigPropertyNames);
1513
1515
  // Invalid or incomplete config
1514
1516
  if (config === null) {
1515
- throw new Error(`Invalid config for "${adapterName$6}"`);
1517
+ throw new Error(`Invalid config for "${adapterName$7}"`);
1516
1518
  }
1517
- return buildNetworkSnapshot$6(luvio, config);
1519
+ return buildNetworkSnapshot$7(luvio, config);
1518
1520
  };
1519
1521
  };
1520
1522
 
1521
- function select$e(luvio, params) {
1522
- return select$l();
1523
+ function select$g(luvio, params) {
1524
+ return select$n();
1523
1525
  }
1524
- function keyBuilder$9(luvio, params) {
1525
- return keyBuilder$e(luvio, {
1526
+ function keyBuilder$b(luvio, params) {
1527
+ return keyBuilder$g(luvio, {
1526
1528
  id: params.urlParams.fileBasedImportId
1527
1529
  });
1528
1530
  }
1529
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1530
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
1531
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1532
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1531
1533
  }
1532
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1534
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1533
1535
  const { body } = response;
1534
- const key = keyBuilder$9(luvio, resourceParams);
1535
- luvio.storeIngest(key, ingest$6, body);
1536
+ const key = keyBuilder$b(luvio, resourceParams);
1537
+ luvio.storeIngest(key, ingest$7, body);
1536
1538
  const snapshot = luvio.storeLookup({
1537
1539
  recordId: key,
1538
- node: select$e(),
1540
+ node: select$g(),
1539
1541
  variables: {},
1540
1542
  }, snapshotRefresh);
1541
1543
  if (process.env.NODE_ENV !== 'production') {
@@ -1546,13 +1548,13 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1546
1548
  deepFreeze(snapshot.data);
1547
1549
  return snapshot;
1548
1550
  }
1549
- function ingestError$4(luvio, params, error, snapshotRefresh) {
1550
- const key = keyBuilder$9(luvio, params);
1551
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
1552
+ const key = keyBuilder$b(luvio, params);
1551
1553
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1552
1554
  luvio.storeIngestError(key, errorSnapshot);
1553
1555
  return errorSnapshot;
1554
1556
  }
1555
- function createResourceRequest$5(config) {
1557
+ function createResourceRequest$6(config) {
1556
1558
  const headers = {};
1557
1559
  return {
1558
1560
  baseUri: '/services/data/v60.0',
@@ -1566,105 +1568,105 @@ function createResourceRequest$5(config) {
1566
1568
  };
1567
1569
  }
1568
1570
 
1569
- const adapterName$5 = 'getFileBasedDataImportById';
1571
+ const adapterName$6 = 'getFileBasedDataImportById';
1570
1572
  const getFileBasedDataImportById_ConfigPropertyMetadata = [
1571
1573
  generateParamConfigMetadata('fileBasedImportId', true, 0 /* UrlParameter */, 0 /* String */),
1572
1574
  ];
1573
- const getFileBasedDataImportById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getFileBasedDataImportById_ConfigPropertyMetadata);
1574
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getFileBasedDataImportById_ConfigPropertyMetadata);
1575
- function keyBuilder$8(luvio, config) {
1576
- const resourceParams = createResourceParams$5(config);
1577
- return keyBuilder$9(luvio, resourceParams);
1575
+ const getFileBasedDataImportById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getFileBasedDataImportById_ConfigPropertyMetadata);
1576
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getFileBasedDataImportById_ConfigPropertyMetadata);
1577
+ function keyBuilder$a(luvio, config) {
1578
+ const resourceParams = createResourceParams$6(config);
1579
+ return keyBuilder$b(luvio, resourceParams);
1578
1580
  }
1579
- function typeCheckConfig$5(untrustedConfig) {
1581
+ function typeCheckConfig$6(untrustedConfig) {
1580
1582
  const config = {};
1581
- typeCheckConfig$b(untrustedConfig, config, getFileBasedDataImportById_ConfigPropertyMetadata);
1583
+ typeCheckConfig$c(untrustedConfig, config, getFileBasedDataImportById_ConfigPropertyMetadata);
1582
1584
  return config;
1583
1585
  }
1584
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1586
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1585
1587
  if (!untrustedIsObject(untrustedConfig)) {
1586
1588
  return null;
1587
1589
  }
1588
1590
  if (process.env.NODE_ENV !== 'production') {
1589
1591
  validateConfig(untrustedConfig, configPropertyNames);
1590
1592
  }
1591
- const config = typeCheckConfig$5(untrustedConfig);
1593
+ const config = typeCheckConfig$6(untrustedConfig);
1592
1594
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1593
1595
  return null;
1594
1596
  }
1595
1597
  return config;
1596
1598
  }
1597
- function adapterFragment$4(luvio, config) {
1598
- createResourceParams$5(config);
1599
- return select$e();
1599
+ function adapterFragment$5(luvio, config) {
1600
+ createResourceParams$6(config);
1601
+ return select$g();
1600
1602
  }
1601
- function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1602
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
1603
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
1604
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1603
1605
  config,
1604
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1606
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1605
1607
  });
1606
1608
  return luvio.storeBroadcast().then(() => snapshot);
1607
1609
  }
1608
- function onFetchResponseError$4(luvio, config, resourceParams, response) {
1609
- const snapshot = ingestError$4(luvio, resourceParams, response, {
1610
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
1611
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
1610
1612
  config,
1611
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1613
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1612
1614
  });
1613
1615
  return luvio.storeBroadcast().then(() => snapshot);
1614
1616
  }
1615
- function buildNetworkSnapshot$5(luvio, config, options) {
1616
- const resourceParams = createResourceParams$5(config);
1617
- const request = createResourceRequest$5(resourceParams);
1617
+ function buildNetworkSnapshot$6(luvio, config, options) {
1618
+ const resourceParams = createResourceParams$6(config);
1619
+ const request = createResourceRequest$6(resourceParams);
1618
1620
  return luvio.dispatchResourceRequest(request, options)
1619
1621
  .then((response) => {
1620
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
1622
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
1621
1623
  const cache = new StoreKeyMap();
1622
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1624
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1623
1625
  return cache;
1624
1626
  });
1625
1627
  }, (response) => {
1626
- return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
1628
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
1627
1629
  });
1628
1630
  }
1629
- function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
1630
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
1631
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
1632
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1631
1633
  }
1632
- function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1634
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
1633
1635
  const { luvio, config } = context;
1634
1636
  const selector = {
1635
- recordId: keyBuilder$8(luvio, config),
1636
- node: adapterFragment$4(luvio, config),
1637
+ recordId: keyBuilder$a(luvio, config),
1638
+ node: adapterFragment$5(luvio, config),
1637
1639
  variables: {},
1638
1640
  };
1639
1641
  const cacheSnapshot = storeLookup(selector, {
1640
1642
  config,
1641
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1643
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1642
1644
  });
1643
1645
  return cacheSnapshot;
1644
1646
  }
1645
1647
  const getFileBasedDataImportByIdAdapterFactory = (luvio) => function fileBasedDataimport__getFileBasedDataImportById(untrustedConfig, requestContext) {
1646
- const config = validateAdapterConfig$5(untrustedConfig, getFileBasedDataImportById_ConfigPropertyNames);
1648
+ const config = validateAdapterConfig$6(untrustedConfig, getFileBasedDataImportById_ConfigPropertyNames);
1647
1649
  // Invalid or incomplete config
1648
1650
  if (config === null) {
1649
1651
  return null;
1650
1652
  }
1651
1653
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1652
- buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
1654
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
1653
1655
  };
1654
1656
 
1655
- function select$d(luvio, params) {
1656
- return select$l();
1657
+ function select$f(luvio, params) {
1658
+ return select$n();
1657
1659
  }
1658
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1659
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
1660
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1661
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1660
1662
  }
1661
- function ingestSuccess$4(luvio, resourceParams, response) {
1663
+ function ingestSuccess$5(luvio, resourceParams, response) {
1662
1664
  const { body } = response;
1663
1665
  const key = keyBuilderFromType$1(luvio, body);
1664
- luvio.storeIngest(key, ingest$6, body);
1666
+ luvio.storeIngest(key, ingest$7, body);
1665
1667
  const snapshot = luvio.storeLookup({
1666
1668
  recordId: key,
1667
- node: select$d(),
1669
+ node: select$f(),
1668
1670
  variables: {},
1669
1671
  });
1670
1672
  if (process.env.NODE_ENV !== 'production') {
@@ -1675,7 +1677,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
1675
1677
  deepFreeze(snapshot.data);
1676
1678
  return snapshot;
1677
1679
  }
1678
- function createResourceRequest$4(config) {
1680
+ function createResourceRequest$5(config) {
1679
1681
  const headers = {};
1680
1682
  return {
1681
1683
  baseUri: '/services/data/v60.0',
@@ -1689,7 +1691,7 @@ function createResourceRequest$4(config) {
1689
1691
  };
1690
1692
  }
1691
1693
 
1692
- const adapterName$4 = 'updateFileBasedDataImport';
1694
+ const adapterName$5 = 'updateFileBasedDataImport';
1693
1695
  const updateFileBasedDataImport_ConfigPropertyMetadata = [
1694
1696
  generateParamConfigMetadata('fileBasedImportId', true, 0 /* UrlParameter */, 0 /* String */),
1695
1697
  generateParamConfigMetadata('failedRecordContentDoc', false, 2 /* Body */, 0 /* String */),
@@ -1707,37 +1709,37 @@ const updateFileBasedDataImport_ConfigPropertyMetadata = [
1707
1709
  generateParamConfigMetadata('unprocessedRecordContentDoc', false, 2 /* Body */, 0 /* String */),
1708
1710
  generateParamConfigMetadata('unprocessedRecordCount', false, 2 /* Body */, 3 /* Integer */),
1709
1711
  ];
1710
- const updateFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateFileBasedDataImport_ConfigPropertyMetadata);
1711
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(updateFileBasedDataImport_ConfigPropertyMetadata);
1712
- function typeCheckConfig$4(untrustedConfig) {
1712
+ const updateFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateFileBasedDataImport_ConfigPropertyMetadata);
1713
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(updateFileBasedDataImport_ConfigPropertyMetadata);
1714
+ function typeCheckConfig$5(untrustedConfig) {
1713
1715
  const config = {};
1714
- typeCheckConfig$b(untrustedConfig, config, updateFileBasedDataImport_ConfigPropertyMetadata);
1716
+ typeCheckConfig$c(untrustedConfig, config, updateFileBasedDataImport_ConfigPropertyMetadata);
1715
1717
  return config;
1716
1718
  }
1717
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1719
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1718
1720
  if (!untrustedIsObject(untrustedConfig)) {
1719
1721
  return null;
1720
1722
  }
1721
1723
  if (process.env.NODE_ENV !== 'production') {
1722
1724
  validateConfig(untrustedConfig, configPropertyNames);
1723
1725
  }
1724
- const config = typeCheckConfig$4(untrustedConfig);
1726
+ const config = typeCheckConfig$5(untrustedConfig);
1725
1727
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1726
1728
  return null;
1727
1729
  }
1728
1730
  return config;
1729
1731
  }
1730
- function buildNetworkSnapshot$4(luvio, config, options) {
1731
- const resourceParams = createResourceParams$4(config);
1732
- const request = createResourceRequest$4(resourceParams);
1732
+ function buildNetworkSnapshot$5(luvio, config, options) {
1733
+ const resourceParams = createResourceParams$5(config);
1734
+ const request = createResourceRequest$5(resourceParams);
1733
1735
  return luvio.dispatchResourceRequest(request, options)
1734
1736
  .then((response) => {
1735
1737
  return luvio.handleSuccessResponse(() => {
1736
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
1738
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
1737
1739
  return luvio.storeBroadcast().then(() => snapshot);
1738
1740
  }, () => {
1739
1741
  const cache = new StoreKeyMap();
1740
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1742
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1741
1743
  return cache;
1742
1744
  });
1743
1745
  }, (response) => {
@@ -1747,17 +1749,17 @@ function buildNetworkSnapshot$4(luvio, config, options) {
1747
1749
  }
1748
1750
  const updateFileBasedDataImportAdapterFactory = (luvio) => {
1749
1751
  return function updateFileBasedDataImport(untrustedConfig) {
1750
- const config = validateAdapterConfig$4(untrustedConfig, updateFileBasedDataImport_ConfigPropertyNames);
1752
+ const config = validateAdapterConfig$5(untrustedConfig, updateFileBasedDataImport_ConfigPropertyNames);
1751
1753
  // Invalid or incomplete config
1752
1754
  if (config === null) {
1753
1755
  throw new Error('Invalid config for "updateFileBasedDataImport"');
1754
1756
  }
1755
- return buildNetworkSnapshot$4(luvio, config);
1757
+ return buildNetworkSnapshot$5(luvio, config);
1756
1758
  };
1757
1759
  };
1758
1760
 
1759
- const VERSION$8 = "3f89a0e0e670920259887253d71fcaf0";
1760
- function validate$8(obj, path = 'CsvPreviewOutputRepresentation') {
1761
+ const VERSION$9 = "3f89a0e0e670920259887253d71fcaf0";
1762
+ function validate$a(obj, path = 'CsvPreviewOutputRepresentation') {
1761
1763
  const v_error = (() => {
1762
1764
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1763
1765
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1819,14 +1821,14 @@ function validate$8(obj, path = 'CsvPreviewOutputRepresentation') {
1819
1821
  })();
1820
1822
  return v_error === undefined ? null : v_error;
1821
1823
  }
1822
- const RepresentationType$3 = 'CsvPreviewOutputRepresentation';
1823
- function normalize$3(input, existing, path, luvio, store, timestamp) {
1824
+ const RepresentationType$4 = 'CsvPreviewOutputRepresentation';
1825
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
1824
1826
  return input;
1825
1827
  }
1826
- const select$c = function CsvPreviewOutputRepresentationSelect() {
1828
+ const select$e = function CsvPreviewOutputRepresentationSelect() {
1827
1829
  return {
1828
1830
  kind: 'Fragment',
1829
- version: VERSION$8,
1831
+ version: VERSION$9,
1830
1832
  private: [],
1831
1833
  selections: [
1832
1834
  {
@@ -1843,7 +1845,7 @@ const select$c = function CsvPreviewOutputRepresentationSelect() {
1843
1845
  ]
1844
1846
  };
1845
1847
  };
1846
- function equals$8(existing, incoming) {
1848
+ function equals$9(existing, incoming) {
1847
1849
  const existing_headers = existing.headers;
1848
1850
  const incoming_headers = incoming.headers;
1849
1851
  const equals_headers_items = equalsArray(existing_headers, incoming_headers, (existing_headers_item, incoming_headers_item) => {
@@ -1879,44 +1881,44 @@ function equals$8(existing, incoming) {
1879
1881
  }
1880
1882
  return true;
1881
1883
  }
1882
- const ingest$3 = function CsvPreviewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1884
+ const ingest$4 = function CsvPreviewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1883
1885
  if (process.env.NODE_ENV !== 'production') {
1884
- const validateError = validate$8(input);
1886
+ const validateError = validate$a(input);
1885
1887
  if (validateError !== null) {
1886
1888
  throw validateError;
1887
1889
  }
1888
1890
  }
1889
1891
  const key = path.fullPath;
1890
1892
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300;
1891
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "fileBased-dataimport", VERSION$8, RepresentationType$3, equals$8);
1893
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "fileBased-dataimport", VERSION$9, RepresentationType$4, equals$9);
1892
1894
  return createLink(key);
1893
1895
  };
1894
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1896
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1895
1897
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1896
1898
  const rootKey = fullPathFactory();
1897
1899
  rootKeySet.set(rootKey, {
1898
1900
  namespace: keyPrefix,
1899
- representationName: RepresentationType$3,
1901
+ representationName: RepresentationType$4,
1900
1902
  mergeable: false
1901
1903
  });
1902
1904
  }
1903
1905
 
1904
- function select$b(luvio, params) {
1905
- return select$c();
1906
+ function select$d(luvio, params) {
1907
+ return select$e();
1906
1908
  }
1907
- function keyBuilder$7(luvio, params) {
1909
+ function keyBuilder$9(luvio, params) {
1908
1910
  return keyPrefix + '::CsvPreviewOutputRepresentation:(' + 'delimiter:' + params.queryParams.delimiter + ',' + 'endOfLine:' + params.queryParams.endOfLine + ',' + 'numberOfRows:' + params.queryParams.numberOfRows + ',' + 'fileBasedImportId:' + params.urlParams.fileBasedImportId + ')';
1909
1911
  }
1910
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1911
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
1912
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1913
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
1912
1914
  }
1913
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
1915
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1914
1916
  const { body } = response;
1915
- const key = keyBuilder$7(luvio, resourceParams);
1916
- luvio.storeIngest(key, ingest$3, body);
1917
+ const key = keyBuilder$9(luvio, resourceParams);
1918
+ luvio.storeIngest(key, ingest$4, body);
1917
1919
  const snapshot = luvio.storeLookup({
1918
1920
  recordId: key,
1919
- node: select$b(),
1921
+ node: select$d(),
1920
1922
  variables: {},
1921
1923
  }, snapshotRefresh);
1922
1924
  if (process.env.NODE_ENV !== 'production') {
@@ -1927,13 +1929,13 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
1927
1929
  deepFreeze(snapshot.data);
1928
1930
  return snapshot;
1929
1931
  }
1930
- function ingestError$3(luvio, params, error, snapshotRefresh) {
1931
- const key = keyBuilder$7(luvio, params);
1932
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
1933
+ const key = keyBuilder$9(luvio, params);
1932
1934
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1933
1935
  luvio.storeIngestError(key, errorSnapshot);
1934
1936
  return errorSnapshot;
1935
1937
  }
1936
- function createResourceRequest$3(config) {
1938
+ function createResourceRequest$4(config) {
1937
1939
  const headers = {};
1938
1940
  return {
1939
1941
  baseUri: '/services/data/v60.0',
@@ -1947,97 +1949,97 @@ function createResourceRequest$3(config) {
1947
1949
  };
1948
1950
  }
1949
1951
 
1950
- const adapterName$3 = 'getCsvPreviewData';
1952
+ const adapterName$4 = 'getCsvPreviewData';
1951
1953
  const getCsvPreviewData_ConfigPropertyMetadata = [
1952
1954
  generateParamConfigMetadata('fileBasedImportId', true, 0 /* UrlParameter */, 0 /* String */),
1953
1955
  generateParamConfigMetadata('delimiter', false, 1 /* QueryParameter */, 0 /* String */),
1954
1956
  generateParamConfigMetadata('endOfLine', false, 1 /* QueryParameter */, 0 /* String */),
1955
1957
  generateParamConfigMetadata('numberOfRows', false, 1 /* QueryParameter */, 3 /* Integer */),
1956
1958
  ];
1957
- const getCsvPreviewData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getCsvPreviewData_ConfigPropertyMetadata);
1958
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(getCsvPreviewData_ConfigPropertyMetadata);
1959
- function keyBuilder$6(luvio, config) {
1960
- const resourceParams = createResourceParams$3(config);
1961
- return keyBuilder$7(luvio, resourceParams);
1959
+ const getCsvPreviewData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getCsvPreviewData_ConfigPropertyMetadata);
1960
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getCsvPreviewData_ConfigPropertyMetadata);
1961
+ function keyBuilder$8(luvio, config) {
1962
+ const resourceParams = createResourceParams$4(config);
1963
+ return keyBuilder$9(luvio, resourceParams);
1962
1964
  }
1963
- function typeCheckConfig$3(untrustedConfig) {
1965
+ function typeCheckConfig$4(untrustedConfig) {
1964
1966
  const config = {};
1965
- typeCheckConfig$b(untrustedConfig, config, getCsvPreviewData_ConfigPropertyMetadata);
1967
+ typeCheckConfig$c(untrustedConfig, config, getCsvPreviewData_ConfigPropertyMetadata);
1966
1968
  return config;
1967
1969
  }
1968
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1970
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1969
1971
  if (!untrustedIsObject(untrustedConfig)) {
1970
1972
  return null;
1971
1973
  }
1972
1974
  if (process.env.NODE_ENV !== 'production') {
1973
1975
  validateConfig(untrustedConfig, configPropertyNames);
1974
1976
  }
1975
- const config = typeCheckConfig$3(untrustedConfig);
1977
+ const config = typeCheckConfig$4(untrustedConfig);
1976
1978
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1977
1979
  return null;
1978
1980
  }
1979
1981
  return config;
1980
1982
  }
1981
- function adapterFragment$3(luvio, config) {
1982
- createResourceParams$3(config);
1983
- return select$b();
1983
+ function adapterFragment$4(luvio, config) {
1984
+ createResourceParams$4(config);
1985
+ return select$d();
1984
1986
  }
1985
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
1986
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
1987
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1988
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
1987
1989
  config,
1988
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1990
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1989
1991
  });
1990
1992
  return luvio.storeBroadcast().then(() => snapshot);
1991
1993
  }
1992
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
1993
- const snapshot = ingestError$3(luvio, resourceParams, response, {
1994
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
1995
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
1994
1996
  config,
1995
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1997
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1996
1998
  });
1997
1999
  return luvio.storeBroadcast().then(() => snapshot);
1998
2000
  }
1999
- function buildNetworkSnapshot$3(luvio, config, options) {
2000
- const resourceParams = createResourceParams$3(config);
2001
- const request = createResourceRequest$3(resourceParams);
2001
+ function buildNetworkSnapshot$4(luvio, config, options) {
2002
+ const resourceParams = createResourceParams$4(config);
2003
+ const request = createResourceRequest$4(resourceParams);
2002
2004
  return luvio.dispatchResourceRequest(request, options)
2003
2005
  .then((response) => {
2004
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2006
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
2005
2007
  const cache = new StoreKeyMap();
2006
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2008
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2007
2009
  return cache;
2008
2010
  });
2009
2011
  }, (response) => {
2010
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2012
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
2011
2013
  });
2012
2014
  }
2013
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2014
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2015
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2016
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2015
2017
  }
2016
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2018
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2017
2019
  const { luvio, config } = context;
2018
2020
  const selector = {
2019
- recordId: keyBuilder$6(luvio, config),
2020
- node: adapterFragment$3(luvio, config),
2021
+ recordId: keyBuilder$8(luvio, config),
2022
+ node: adapterFragment$4(luvio, config),
2021
2023
  variables: {},
2022
2024
  };
2023
2025
  const cacheSnapshot = storeLookup(selector, {
2024
2026
  config,
2025
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2027
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2026
2028
  });
2027
2029
  return cacheSnapshot;
2028
2030
  }
2029
2031
  const getCsvPreviewDataAdapterFactory = (luvio) => function fileBasedDataimport__getCsvPreviewData(untrustedConfig, requestContext) {
2030
- const config = validateAdapterConfig$3(untrustedConfig, getCsvPreviewData_ConfigPropertyNames);
2032
+ const config = validateAdapterConfig$4(untrustedConfig, getCsvPreviewData_ConfigPropertyNames);
2031
2033
  // Invalid or incomplete config
2032
2034
  if (config === null) {
2033
2035
  return null;
2034
2036
  }
2035
2037
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2036
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2038
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
2037
2039
  };
2038
2040
 
2039
- const VERSION$7 = "4ec3aa5aac6556898543c214a1630f30";
2040
- function validate$7(obj, path = 'DPEDefinitionRepresentation') {
2041
+ const VERSION$8 = "4ec3aa5aac6556898543c214a1630f30";
2042
+ function validate$9(obj, path = 'DPEDefinitionRepresentation') {
2041
2043
  const v_error = (() => {
2042
2044
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2043
2045
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2060,10 +2062,10 @@ function validate$7(obj, path = 'DPEDefinitionRepresentation') {
2060
2062
  })();
2061
2063
  return v_error === undefined ? null : v_error;
2062
2064
  }
2063
- const select$a = function DPEDefinitionRepresentationSelect() {
2065
+ const select$c = function DPEDefinitionRepresentationSelect() {
2064
2066
  return {
2065
2067
  kind: 'Fragment',
2066
- version: VERSION$7,
2068
+ version: VERSION$8,
2067
2069
  private: [],
2068
2070
  selections: [
2069
2071
  {
@@ -2081,7 +2083,7 @@ const select$a = function DPEDefinitionRepresentationSelect() {
2081
2083
  ]
2082
2084
  };
2083
2085
  };
2084
- function equals$7(existing, incoming) {
2086
+ function equals$8(existing, incoming) {
2085
2087
  const existing_id = existing.id;
2086
2088
  const incoming_id = incoming.id;
2087
2089
  if (!(existing_id === incoming_id)) {
@@ -2100,8 +2102,8 @@ function equals$7(existing, incoming) {
2100
2102
  return true;
2101
2103
  }
2102
2104
 
2103
- const VERSION$6 = "11962640986f27c1e05a2a2c80f391fb";
2104
- function validate$6(obj, path = 'DPEDefinitionOutputRepresentation') {
2105
+ const VERSION$7 = "11962640986f27c1e05a2a2c80f391fb";
2106
+ function validate$8(obj, path = 'DPEDefinitionOutputRepresentation') {
2105
2107
  const v_error = (() => {
2106
2108
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2107
2109
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2114,7 +2116,7 @@ function validate$6(obj, path = 'DPEDefinitionOutputRepresentation') {
2114
2116
  for (let i = 0; i < obj_dpeDefinitions.length; i++) {
2115
2117
  const obj_dpeDefinitions_item = obj_dpeDefinitions[i];
2116
2118
  const path_dpeDefinitions_item = path_dpeDefinitions + '[' + i + ']';
2117
- const referencepath_dpeDefinitions_itemValidationError = validate$7(obj_dpeDefinitions_item, path_dpeDefinitions_item);
2119
+ const referencepath_dpeDefinitions_itemValidationError = validate$9(obj_dpeDefinitions_item, path_dpeDefinitions_item);
2118
2120
  if (referencepath_dpeDefinitions_itemValidationError !== null) {
2119
2121
  let message = 'Object doesn\'t match DPEDefinitionRepresentation (at "' + path_dpeDefinitions_item + '")\n';
2120
2122
  message += referencepath_dpeDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2124,15 +2126,15 @@ function validate$6(obj, path = 'DPEDefinitionOutputRepresentation') {
2124
2126
  })();
2125
2127
  return v_error === undefined ? null : v_error;
2126
2128
  }
2127
- const RepresentationType$2 = 'DPEDefinitionOutputRepresentation';
2128
- function normalize$2(input, existing, path, luvio, store, timestamp) {
2129
+ const RepresentationType$3 = 'DPEDefinitionOutputRepresentation';
2130
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
2129
2131
  return input;
2130
2132
  }
2131
- const select$9 = function DPEDefinitionOutputRepresentationSelect() {
2132
- const { selections: DPEDefinitionRepresentation__selections, opaque: DPEDefinitionRepresentation__opaque, } = select$a();
2133
+ const select$b = function DPEDefinitionOutputRepresentationSelect() {
2134
+ const { selections: DPEDefinitionRepresentation__selections, opaque: DPEDefinitionRepresentation__opaque, } = select$c();
2133
2135
  return {
2134
2136
  kind: 'Fragment',
2135
- version: VERSION$6,
2137
+ version: VERSION$7,
2136
2138
  private: [],
2137
2139
  selections: [
2138
2140
  {
@@ -2144,11 +2146,11 @@ const select$9 = function DPEDefinitionOutputRepresentationSelect() {
2144
2146
  ]
2145
2147
  };
2146
2148
  };
2147
- function equals$6(existing, incoming) {
2149
+ function equals$7(existing, incoming) {
2148
2150
  const existing_dpeDefinitions = existing.dpeDefinitions;
2149
2151
  const incoming_dpeDefinitions = incoming.dpeDefinitions;
2150
2152
  const equals_dpeDefinitions_items = equalsArray(existing_dpeDefinitions, incoming_dpeDefinitions, (existing_dpeDefinitions_item, incoming_dpeDefinitions_item) => {
2151
- if (!(equals$7(existing_dpeDefinitions_item, incoming_dpeDefinitions_item))) {
2153
+ if (!(equals$8(existing_dpeDefinitions_item, incoming_dpeDefinitions_item))) {
2152
2154
  return false;
2153
2155
  }
2154
2156
  });
@@ -2157,7 +2159,269 @@ function equals$6(existing, incoming) {
2157
2159
  }
2158
2160
  return true;
2159
2161
  }
2160
- const ingest$2 = function DPEDefinitionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2162
+ const ingest$3 = function DPEDefinitionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2163
+ if (process.env.NODE_ENV !== 'production') {
2164
+ const validateError = validate$8(input);
2165
+ if (validateError !== null) {
2166
+ throw validateError;
2167
+ }
2168
+ }
2169
+ const key = path.fullPath;
2170
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 300;
2171
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "fileBased-dataimport", VERSION$7, RepresentationType$3, equals$7);
2172
+ return createLink(key);
2173
+ };
2174
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2175
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2176
+ const rootKey = fullPathFactory();
2177
+ rootKeySet.set(rootKey, {
2178
+ namespace: keyPrefix,
2179
+ representationName: RepresentationType$3,
2180
+ mergeable: false
2181
+ });
2182
+ }
2183
+
2184
+ function select$a(luvio, params) {
2185
+ return select$b();
2186
+ }
2187
+ function keyBuilder$7(luvio, params) {
2188
+ return keyPrefix + '::DPEDefinitionOutputRepresentation:(' + ')';
2189
+ }
2190
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2191
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7());
2192
+ }
2193
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2194
+ const { body } = response;
2195
+ const key = keyBuilder$7();
2196
+ luvio.storeIngest(key, ingest$3, body);
2197
+ const snapshot = luvio.storeLookup({
2198
+ recordId: key,
2199
+ node: select$a(),
2200
+ variables: {},
2201
+ }, snapshotRefresh);
2202
+ if (process.env.NODE_ENV !== 'production') {
2203
+ if (snapshot.state !== 'Fulfilled') {
2204
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2205
+ }
2206
+ }
2207
+ deepFreeze(snapshot.data);
2208
+ return snapshot;
2209
+ }
2210
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
2211
+ const key = keyBuilder$7();
2212
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2213
+ luvio.storeIngestError(key, errorSnapshot);
2214
+ return errorSnapshot;
2215
+ }
2216
+ function createResourceRequest$3(config) {
2217
+ const headers = {};
2218
+ return {
2219
+ baseUri: '/services/data/v60.0',
2220
+ basePath: '/connect/industries/fileBasedDataImports/dpeDefinitions',
2221
+ method: 'get',
2222
+ body: null,
2223
+ urlParams: {},
2224
+ queryParams: {},
2225
+ headers,
2226
+ priority: 'normal',
2227
+ };
2228
+ }
2229
+
2230
+ const adapterName$3 = 'getDPEDefinitions';
2231
+ const getDPEDefinitions_ConfigPropertyMetadata = [];
2232
+ const getDPEDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDPEDefinitions_ConfigPropertyMetadata);
2233
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getDPEDefinitions_ConfigPropertyMetadata);
2234
+ function keyBuilder$6(luvio, config) {
2235
+ createResourceParams$3(config);
2236
+ return keyBuilder$7();
2237
+ }
2238
+ function typeCheckConfig$3(untrustedConfig) {
2239
+ const config = {};
2240
+ return config;
2241
+ }
2242
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2243
+ if (!untrustedIsObject(untrustedConfig)) {
2244
+ return null;
2245
+ }
2246
+ if (process.env.NODE_ENV !== 'production') {
2247
+ validateConfig(untrustedConfig, configPropertyNames);
2248
+ }
2249
+ const config = typeCheckConfig$3();
2250
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2251
+ return null;
2252
+ }
2253
+ return config;
2254
+ }
2255
+ function adapterFragment$3(luvio, config) {
2256
+ createResourceParams$3(config);
2257
+ return select$a();
2258
+ }
2259
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2260
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
2261
+ config,
2262
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2263
+ });
2264
+ return luvio.storeBroadcast().then(() => snapshot);
2265
+ }
2266
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
2267
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
2268
+ config,
2269
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2270
+ });
2271
+ return luvio.storeBroadcast().then(() => snapshot);
2272
+ }
2273
+ function buildNetworkSnapshot$3(luvio, config, options) {
2274
+ const resourceParams = createResourceParams$3(config);
2275
+ const request = createResourceRequest$3();
2276
+ return luvio.dispatchResourceRequest(request, options)
2277
+ .then((response) => {
2278
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2279
+ const cache = new StoreKeyMap();
2280
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2281
+ return cache;
2282
+ });
2283
+ }, (response) => {
2284
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2285
+ });
2286
+ }
2287
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2288
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2289
+ }
2290
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2291
+ const { luvio, config } = context;
2292
+ const selector = {
2293
+ recordId: keyBuilder$6(luvio, config),
2294
+ node: adapterFragment$3(luvio, config),
2295
+ variables: {},
2296
+ };
2297
+ const cacheSnapshot = storeLookup(selector, {
2298
+ config,
2299
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2300
+ });
2301
+ return cacheSnapshot;
2302
+ }
2303
+ const getDPEDefinitionsAdapterFactory = (luvio) => function fileBasedDataimport__getDPEDefinitions(untrustedConfig, requestContext) {
2304
+ const config = validateAdapterConfig$3(untrustedConfig, getDPEDefinitions_ConfigPropertyNames);
2305
+ // Invalid or incomplete config
2306
+ if (config === null) {
2307
+ return null;
2308
+ }
2309
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2310
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2311
+ };
2312
+
2313
+ function validate$7(obj, path = 'ObjectInfoDirectoryEntryRepresentation') {
2314
+ const v_error = (() => {
2315
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2316
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2317
+ }
2318
+ const obj_apiName = obj.apiName;
2319
+ const path_apiName = path + '.apiName';
2320
+ if (typeof obj_apiName !== 'string') {
2321
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
2322
+ }
2323
+ const obj_keyPrefix = obj.keyPrefix;
2324
+ const path_keyPrefix = path + '.keyPrefix';
2325
+ let obj_keyPrefix_union0 = null;
2326
+ const obj_keyPrefix_union0_error = (() => {
2327
+ if (typeof obj_keyPrefix !== 'string') {
2328
+ return new TypeError('Expected "string" but received "' + typeof obj_keyPrefix + '" (at "' + path_keyPrefix + '")');
2329
+ }
2330
+ })();
2331
+ if (obj_keyPrefix_union0_error != null) {
2332
+ obj_keyPrefix_union0 = obj_keyPrefix_union0_error.message;
2333
+ }
2334
+ let obj_keyPrefix_union1 = null;
2335
+ const obj_keyPrefix_union1_error = (() => {
2336
+ if (obj_keyPrefix !== null) {
2337
+ return new TypeError('Expected "null" but received "' + typeof obj_keyPrefix + '" (at "' + path_keyPrefix + '")');
2338
+ }
2339
+ })();
2340
+ if (obj_keyPrefix_union1_error != null) {
2341
+ obj_keyPrefix_union1 = obj_keyPrefix_union1_error.message;
2342
+ }
2343
+ if (obj_keyPrefix_union0 && obj_keyPrefix_union1) {
2344
+ let message = 'Object doesn\'t match union (at "' + path_keyPrefix + '")';
2345
+ message += '\n' + obj_keyPrefix_union0.split('\n').map((line) => '\t' + line).join('\n');
2346
+ message += '\n' + obj_keyPrefix_union1.split('\n').map((line) => '\t' + line).join('\n');
2347
+ return new TypeError(message);
2348
+ }
2349
+ const obj_label = obj.label;
2350
+ const path_label = path + '.label';
2351
+ if (typeof obj_label !== 'string') {
2352
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2353
+ }
2354
+ const obj_labelPlural = obj.labelPlural;
2355
+ const path_labelPlural = path + '.labelPlural';
2356
+ if (typeof obj_labelPlural !== 'string') {
2357
+ return new TypeError('Expected "string" but received "' + typeof obj_labelPlural + '" (at "' + path_labelPlural + '")');
2358
+ }
2359
+ const obj_nameFields = obj.nameFields;
2360
+ const path_nameFields = path + '.nameFields';
2361
+ if (!ArrayIsArray(obj_nameFields)) {
2362
+ return new TypeError('Expected "array" but received "' + typeof obj_nameFields + '" (at "' + path_nameFields + '")');
2363
+ }
2364
+ for (let i = 0; i < obj_nameFields.length; i++) {
2365
+ const obj_nameFields_item = obj_nameFields[i];
2366
+ const path_nameFields_item = path_nameFields + '[' + i + ']';
2367
+ if (typeof obj_nameFields_item !== 'string') {
2368
+ return new TypeError('Expected "string" but received "' + typeof obj_nameFields_item + '" (at "' + path_nameFields_item + '")');
2369
+ }
2370
+ }
2371
+ const obj_objectInfoUrl = obj.objectInfoUrl;
2372
+ const path_objectInfoUrl = path + '.objectInfoUrl';
2373
+ if (typeof obj_objectInfoUrl !== 'string') {
2374
+ return new TypeError('Expected "string" but received "' + typeof obj_objectInfoUrl + '" (at "' + path_objectInfoUrl + '")');
2375
+ }
2376
+ })();
2377
+ return v_error === undefined ? null : v_error;
2378
+ }
2379
+
2380
+ const VERSION$6 = "c040e955efdc64a496f748f728dcbe5f";
2381
+ function validate$6(obj, path = 'ObjectInfoDirectoryRepresentation') {
2382
+ const v_error = (() => {
2383
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2384
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2385
+ }
2386
+ const obj_objects = obj.objects;
2387
+ const path_objects = path + '.objects';
2388
+ if (typeof obj_objects !== 'object' || ArrayIsArray(obj_objects) || obj_objects === null) {
2389
+ return new TypeError('Expected "object" but received "' + typeof obj_objects + '" (at "' + path_objects + '")');
2390
+ }
2391
+ const obj_objects_keys = ObjectKeys(obj_objects);
2392
+ for (let i = 0; i < obj_objects_keys.length; i++) {
2393
+ const key = obj_objects_keys[i];
2394
+ const obj_objects_prop = obj_objects[key];
2395
+ const path_objects_prop = path_objects + '["' + key + '"]';
2396
+ const referencepath_objects_propValidationError = validate$7(obj_objects_prop, path_objects_prop);
2397
+ if (referencepath_objects_propValidationError !== null) {
2398
+ let message = 'Object doesn\'t match ObjectInfoDirectoryEntryRepresentation (at "' + path_objects_prop + '")\n';
2399
+ message += referencepath_objects_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2400
+ return new TypeError(message);
2401
+ }
2402
+ }
2403
+ })();
2404
+ return v_error === undefined ? null : v_error;
2405
+ }
2406
+ const RepresentationType$2 = 'ObjectInfoDirectoryRepresentation';
2407
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
2408
+ return input;
2409
+ }
2410
+ const select$9 = function ObjectInfoDirectoryRepresentationSelect() {
2411
+ return {
2412
+ kind: 'Fragment',
2413
+ version: VERSION$6,
2414
+ private: [],
2415
+ opaque: true
2416
+ };
2417
+ };
2418
+ function equals$6(existing, incoming) {
2419
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2420
+ return false;
2421
+ }
2422
+ return true;
2423
+ }
2424
+ const ingest$2 = function ObjectInfoDirectoryRepresentationIngest(input, path, luvio, store, timestamp) {
2161
2425
  if (process.env.NODE_ENV !== 'production') {
2162
2426
  const validateError = validate$6(input);
2163
2427
  if (validateError !== null) {
@@ -2183,14 +2447,14 @@ function select$8(luvio, params) {
2183
2447
  return select$9();
2184
2448
  }
2185
2449
  function keyBuilder$5(luvio, params) {
2186
- return keyPrefix + '::DPEDefinitionOutputRepresentation:(' + ')';
2450
+ return keyPrefix + '::ObjectInfoDirectoryRepresentation:(' + 'batchSize:' + params.queryParams.batchSize + ',' + 'searchText:' + params.queryParams.searchText + ',' + 'startOffset:' + params.queryParams.startOffset + ')';
2187
2451
  }
2188
2452
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
2189
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5());
2453
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
2190
2454
  }
2191
2455
  function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2192
2456
  const { body } = response;
2193
- const key = keyBuilder$5();
2457
+ const key = keyBuilder$5(luvio, resourceParams);
2194
2458
  luvio.storeIngest(key, ingest$2, body);
2195
2459
  const snapshot = luvio.storeLookup({
2196
2460
  recordId: key,
@@ -2206,7 +2470,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
2206
2470
  return snapshot;
2207
2471
  }
2208
2472
  function ingestError$2(luvio, params, error, snapshotRefresh) {
2209
- const key = keyBuilder$5();
2473
+ const key = keyBuilder$5(luvio, params);
2210
2474
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2211
2475
  luvio.storeIngestError(key, errorSnapshot);
2212
2476
  return errorSnapshot;
@@ -2215,26 +2479,31 @@ function createResourceRequest$2(config) {
2215
2479
  const headers = {};
2216
2480
  return {
2217
2481
  baseUri: '/services/data/v60.0',
2218
- basePath: '/connect/industries/fileBasedDataImports/dpeDefinitions',
2482
+ basePath: '/connect/industries/fileBasedDataImports/entities',
2219
2483
  method: 'get',
2220
2484
  body: null,
2221
2485
  urlParams: {},
2222
- queryParams: {},
2486
+ queryParams: config.queryParams,
2223
2487
  headers,
2224
2488
  priority: 'normal',
2225
2489
  };
2226
2490
  }
2227
2491
 
2228
- const adapterName$2 = 'getDPEDefinitions';
2229
- const getDPEDefinitions_ConfigPropertyMetadata = [];
2230
- const getDPEDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDPEDefinitions_ConfigPropertyMetadata);
2231
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getDPEDefinitions_ConfigPropertyMetadata);
2492
+ const adapterName$2 = 'getAllSobjects';
2493
+ const getAllSobjects_ConfigPropertyMetadata = [
2494
+ generateParamConfigMetadata('batchSize', false, 1 /* QueryParameter */, 3 /* Integer */),
2495
+ generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
2496
+ generateParamConfigMetadata('startOffset', false, 1 /* QueryParameter */, 3 /* Integer */),
2497
+ ];
2498
+ const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getAllSobjects_ConfigPropertyMetadata);
2499
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(getAllSobjects_ConfigPropertyMetadata);
2232
2500
  function keyBuilder$4(luvio, config) {
2233
- createResourceParams$2(config);
2234
- return keyBuilder$5();
2501
+ const resourceParams = createResourceParams$2(config);
2502
+ return keyBuilder$5(luvio, resourceParams);
2235
2503
  }
2236
2504
  function typeCheckConfig$2(untrustedConfig) {
2237
2505
  const config = {};
2506
+ typeCheckConfig$c(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
2238
2507
  return config;
2239
2508
  }
2240
2509
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -2244,7 +2513,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
2244
2513
  if (process.env.NODE_ENV !== 'production') {
2245
2514
  validateConfig(untrustedConfig, configPropertyNames);
2246
2515
  }
2247
- const config = typeCheckConfig$2();
2516
+ const config = typeCheckConfig$2(untrustedConfig);
2248
2517
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2249
2518
  return null;
2250
2519
  }
@@ -2270,7 +2539,7 @@ function onFetchResponseError$2(luvio, config, resourceParams, response) {
2270
2539
  }
2271
2540
  function buildNetworkSnapshot$2(luvio, config, options) {
2272
2541
  const resourceParams = createResourceParams$2(config);
2273
- const request = createResourceRequest$2();
2542
+ const request = createResourceRequest$2(resourceParams);
2274
2543
  return luvio.dispatchResourceRequest(request, options)
2275
2544
  .then((response) => {
2276
2545
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
@@ -2283,7 +2552,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
2283
2552
  });
2284
2553
  }
2285
2554
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2286
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2555
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2287
2556
  }
2288
2557
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2289
2558
  const { luvio, config } = context;
@@ -2298,8 +2567,8 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2298
2567
  });
2299
2568
  return cacheSnapshot;
2300
2569
  }
2301
- const getDPEDefinitionsAdapterFactory = (luvio) => function fileBasedDataimport__getDPEDefinitions(untrustedConfig, requestContext) {
2302
- const config = validateAdapterConfig$2(untrustedConfig, getDPEDefinitions_ConfigPropertyNames);
2570
+ const getAllSobjectsAdapterFactory = (luvio) => function fileBasedDataimport__getAllSobjects(untrustedConfig, requestContext) {
2571
+ const config = validateAdapterConfig$2(untrustedConfig, getAllSobjects_ConfigPropertyNames);
2303
2572
  // Invalid or incomplete config
2304
2573
  if (config === null) {
2305
2574
  return null;
@@ -2999,14 +3268,14 @@ const getAllFields_ConfigPropertyMetadata = [
2999
3268
  generateParamConfigMetadata('startOffset', false, 1 /* QueryParameter */, 3 /* Integer */),
3000
3269
  ];
3001
3270
  const getAllFields_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAllFields_ConfigPropertyMetadata);
3002
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(getAllFields_ConfigPropertyMetadata);
3271
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getAllFields_ConfigPropertyMetadata);
3003
3272
  function keyBuilder$2(luvio, config) {
3004
3273
  const resourceParams = createResourceParams$1(config);
3005
3274
  return keyBuilder$3(luvio, resourceParams);
3006
3275
  }
3007
3276
  function typeCheckConfig$1(untrustedConfig) {
3008
3277
  const config = {};
3009
- typeCheckConfig$b(untrustedConfig, config, getAllFields_ConfigPropertyMetadata);
3278
+ typeCheckConfig$c(untrustedConfig, config, getAllFields_ConfigPropertyMetadata);
3010
3279
  return config;
3011
3280
  }
3012
3281
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -3055,7 +3324,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3055
3324
  });
3056
3325
  }
3057
3326
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3058
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3327
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3059
3328
  }
3060
3329
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3061
3330
  const { luvio, config } = context;
@@ -3396,14 +3665,14 @@ const getCsvAutoMap_ConfigPropertyMetadata = [
3396
3665
  generateParamConfigMetadata('entityApiName', true, 1 /* QueryParameter */, 0 /* String */),
3397
3666
  ];
3398
3667
  const getCsvAutoMap_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getCsvAutoMap_ConfigPropertyMetadata);
3399
- const createResourceParams = /*#__PURE__*/ createResourceParams$b(getCsvAutoMap_ConfigPropertyMetadata);
3668
+ const createResourceParams = /*#__PURE__*/ createResourceParams$c(getCsvAutoMap_ConfigPropertyMetadata);
3400
3669
  function keyBuilder(luvio, config) {
3401
3670
  const resourceParams = createResourceParams(config);
3402
3671
  return keyBuilder$1(luvio, resourceParams);
3403
3672
  }
3404
3673
  function typeCheckConfig(untrustedConfig) {
3405
3674
  const config = {};
3406
- typeCheckConfig$b(untrustedConfig, config, getCsvAutoMap_ConfigPropertyMetadata);
3675
+ typeCheckConfig$c(untrustedConfig, config, getCsvAutoMap_ConfigPropertyMetadata);
3407
3676
  return config;
3408
3677
  }
3409
3678
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -3452,7 +3721,7 @@ function buildNetworkSnapshot(luvio, config, options) {
3452
3721
  });
3453
3722
  }
3454
3723
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3455
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3724
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3456
3725
  }
3457
3726
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3458
3727
  const { luvio, config } = context;
@@ -3477,4 +3746,4 @@ const getCsvAutoMapAdapterFactory = (luvio) => function fileBasedDataimport__get
3477
3746
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3478
3747
  };
3479
3748
 
3480
- export { createFileBasedDataImportAdapterFactory, deleteFileBasedDataImportAdapterFactory, getAllFieldsAdapterFactory, getCsvAutoMapAdapterFactory, getCsvPreviewDataAdapterFactory, getDPEDefinitionsAdapterFactory, getFileBasedDataImportByIdAdapterFactory, getFileBasedDataImportsAdapterFactory, startAdvanceImportAdapterFactory, startSimpleImportAdapterFactory, updateFileBasedDataImportAdapterFactory };
3749
+ export { createFileBasedDataImportAdapterFactory, deleteFileBasedDataImportAdapterFactory, getAllFieldsAdapterFactory, getAllSobjectsAdapterFactory, getCsvAutoMapAdapterFactory, getCsvPreviewDataAdapterFactory, getDPEDefinitionsAdapterFactory, getFileBasedDataImportByIdAdapterFactory, getFileBasedDataImportsAdapterFactory, startAdvanceImportAdapterFactory, startSimpleImportAdapterFactory, updateFileBasedDataImportAdapterFactory };