@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.
- package/dist/es/es2018/industries-filebased-dataimport.js +620 -351
- package/dist/es/es2018/types/src/generated/adapters/getAllSobjects.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectIndustriesFileBasedDataImportsEntities.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/ObjectInfoDirectoryEntryRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/ObjectInfoDirectoryRepresentation.d.ts +33 -0
- package/package.json +4 -4
- package/sfdc/index.js +421 -144
- package/src/raml/api.raml +59 -0
- package/src/raml/luvio.raml +6 -0
package/sfdc/index.js
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$c, typeCheckConfig as typeCheckConfig$c, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
|
-
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
20
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
21
21
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
22
|
/**
|
|
23
23
|
* Validates an adapter config is well-formed.
|
|
@@ -41,7 +41,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
41
41
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
42
42
|
}
|
|
43
43
|
const supported = required.concat(optional);
|
|
44
|
-
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
44
|
+
if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
|
|
45
45
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -81,7 +81,9 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
81
81
|
}
|
|
82
82
|
const keyPrefix = 'fileBased-dataimport';
|
|
83
83
|
|
|
84
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
84
85
|
const { isArray: ArrayIsArray } = Array;
|
|
86
|
+
const { stringify: JSONStringify } = JSON;
|
|
85
87
|
function equalsArray(a, b, equalsItem) {
|
|
86
88
|
const aLength = a.length;
|
|
87
89
|
const bLength = b.length;
|
|
@@ -101,8 +103,8 @@ function createLink(ref) {
|
|
|
101
103
|
};
|
|
102
104
|
}
|
|
103
105
|
|
|
104
|
-
const VERSION$
|
|
105
|
-
function validate$
|
|
106
|
+
const VERSION$c = "3124b7013ab7c908e4590d64fe411ce3";
|
|
107
|
+
function validate$g(obj, path = 'FileBasedDataImportRepresentation') {
|
|
106
108
|
const v_error = (() => {
|
|
107
109
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
110
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -366,23 +368,23 @@ function validate$e(obj, path = 'FileBasedDataImportRepresentation') {
|
|
|
366
368
|
})();
|
|
367
369
|
return v_error === undefined ? null : v_error;
|
|
368
370
|
}
|
|
369
|
-
const RepresentationType$
|
|
370
|
-
function keyBuilder$
|
|
371
|
-
return keyPrefix + '::' + RepresentationType$
|
|
371
|
+
const RepresentationType$7 = 'FileBasedDataImportRepresentation';
|
|
372
|
+
function keyBuilder$g(luvio, config) {
|
|
373
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
|
|
372
374
|
}
|
|
373
375
|
function keyBuilderFromType$1(luvio, object) {
|
|
374
376
|
const keyParams = {
|
|
375
377
|
id: object.id
|
|
376
378
|
};
|
|
377
|
-
return keyBuilder$
|
|
379
|
+
return keyBuilder$g(luvio, keyParams);
|
|
378
380
|
}
|
|
379
|
-
function normalize$
|
|
381
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
380
382
|
return input;
|
|
381
383
|
}
|
|
382
|
-
const select$
|
|
384
|
+
const select$n = function FileBasedDataImportRepresentationSelect() {
|
|
383
385
|
return {
|
|
384
386
|
kind: 'Fragment',
|
|
385
|
-
version: VERSION$
|
|
387
|
+
version: VERSION$c,
|
|
386
388
|
private: [],
|
|
387
389
|
selections: [
|
|
388
390
|
{
|
|
@@ -468,7 +470,7 @@ const select$l = function FileBasedDataImportRepresentationSelect() {
|
|
|
468
470
|
]
|
|
469
471
|
};
|
|
470
472
|
};
|
|
471
|
-
function equals$
|
|
473
|
+
function equals$c(existing, incoming) {
|
|
472
474
|
const existing_failedRecordsCount = existing.failedRecordsCount;
|
|
473
475
|
const incoming_failedRecordsCount = incoming.failedRecordsCount;
|
|
474
476
|
// if at least one of these optionals is defined
|
|
@@ -652,41 +654,41 @@ function equals$b(existing, incoming) {
|
|
|
652
654
|
}
|
|
653
655
|
return true;
|
|
654
656
|
}
|
|
655
|
-
const ingest$
|
|
657
|
+
const ingest$7 = function FileBasedDataImportRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
656
658
|
if (process.env.NODE_ENV !== 'production') {
|
|
657
|
-
const validateError = validate$
|
|
659
|
+
const validateError = validate$g(input);
|
|
658
660
|
if (validateError !== null) {
|
|
659
661
|
throw validateError;
|
|
660
662
|
}
|
|
661
663
|
}
|
|
662
664
|
const key = keyBuilderFromType$1(luvio, input);
|
|
663
665
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300;
|
|
664
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
666
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "fileBased-dataimport", VERSION$c, RepresentationType$7, equals$c);
|
|
665
667
|
return createLink(key);
|
|
666
668
|
};
|
|
667
|
-
function getTypeCacheKeys$
|
|
669
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
668
670
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
669
671
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
670
672
|
rootKeySet.set(rootKey, {
|
|
671
673
|
namespace: keyPrefix,
|
|
672
|
-
representationName: RepresentationType$
|
|
674
|
+
representationName: RepresentationType$7,
|
|
673
675
|
mergeable: false
|
|
674
676
|
});
|
|
675
677
|
}
|
|
676
678
|
|
|
677
|
-
function select$
|
|
678
|
-
return select$
|
|
679
|
+
function select$m(luvio, params) {
|
|
680
|
+
return select$n();
|
|
679
681
|
}
|
|
680
|
-
function getResponseCacheKeys$
|
|
681
|
-
getTypeCacheKeys$
|
|
682
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
683
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
682
684
|
}
|
|
683
|
-
function ingestSuccess$
|
|
685
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
684
686
|
const { body } = response;
|
|
685
687
|
const key = keyBuilderFromType$1(luvio, body);
|
|
686
|
-
luvio.storeIngest(key, ingest$
|
|
688
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
687
689
|
const snapshot = luvio.storeLookup({
|
|
688
690
|
recordId: key,
|
|
689
|
-
node: select$
|
|
691
|
+
node: select$m(),
|
|
690
692
|
variables: {},
|
|
691
693
|
});
|
|
692
694
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -697,7 +699,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
697
699
|
deepFreeze(snapshot.data);
|
|
698
700
|
return snapshot;
|
|
699
701
|
}
|
|
700
|
-
function createResourceRequest$
|
|
702
|
+
function createResourceRequest$b(config) {
|
|
701
703
|
const headers = {};
|
|
702
704
|
return {
|
|
703
705
|
baseUri: '/services/data/v60.0',
|
|
@@ -711,7 +713,7 @@ function createResourceRequest$a(config) {
|
|
|
711
713
|
};
|
|
712
714
|
}
|
|
713
715
|
|
|
714
|
-
const adapterName$
|
|
716
|
+
const adapterName$b = 'createFileBasedDataImport';
|
|
715
717
|
const createFileBasedDataImport_ConfigPropertyMetadata = [
|
|
716
718
|
generateParamConfigMetadata('failedRecordContentDoc', false, 2 /* Body */, 0 /* String */),
|
|
717
719
|
generateParamConfigMetadata('failedRecordCount', false, 2 /* Body */, 3 /* Integer */),
|
|
@@ -729,37 +731,37 @@ const createFileBasedDataImport_ConfigPropertyMetadata = [
|
|
|
729
731
|
generateParamConfigMetadata('unprocessedRecordContentDoc', false, 2 /* Body */, 0 /* String */),
|
|
730
732
|
generateParamConfigMetadata('unprocessedRecordCount', false, 2 /* Body */, 3 /* Integer */),
|
|
731
733
|
];
|
|
732
|
-
const createFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
733
|
-
const createResourceParams$
|
|
734
|
-
function typeCheckConfig$
|
|
734
|
+
const createFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createFileBasedDataImport_ConfigPropertyMetadata);
|
|
735
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(createFileBasedDataImport_ConfigPropertyMetadata);
|
|
736
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
735
737
|
const config = {};
|
|
736
|
-
typeCheckConfig$
|
|
738
|
+
typeCheckConfig$c(untrustedConfig, config, createFileBasedDataImport_ConfigPropertyMetadata);
|
|
737
739
|
return config;
|
|
738
740
|
}
|
|
739
|
-
function validateAdapterConfig$
|
|
741
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
740
742
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
741
743
|
return null;
|
|
742
744
|
}
|
|
743
745
|
if (process.env.NODE_ENV !== 'production') {
|
|
744
746
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
745
747
|
}
|
|
746
|
-
const config = typeCheckConfig$
|
|
748
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
747
749
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
748
750
|
return null;
|
|
749
751
|
}
|
|
750
752
|
return config;
|
|
751
753
|
}
|
|
752
|
-
function buildNetworkSnapshot$
|
|
753
|
-
const resourceParams = createResourceParams$
|
|
754
|
-
const request = createResourceRequest$
|
|
754
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
755
|
+
const resourceParams = createResourceParams$b(config);
|
|
756
|
+
const request = createResourceRequest$b(resourceParams);
|
|
755
757
|
return luvio.dispatchResourceRequest(request, options)
|
|
756
758
|
.then((response) => {
|
|
757
759
|
return luvio.handleSuccessResponse(() => {
|
|
758
|
-
const snapshot = ingestSuccess$
|
|
760
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
759
761
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
760
762
|
}, () => {
|
|
761
763
|
const cache = new StoreKeyMap();
|
|
762
|
-
getResponseCacheKeys$
|
|
764
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
763
765
|
return cache;
|
|
764
766
|
});
|
|
765
767
|
}, (response) => {
|
|
@@ -769,33 +771,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
769
771
|
}
|
|
770
772
|
const createFileBasedDataImportAdapterFactory = (luvio) => {
|
|
771
773
|
return function createFileBasedDataImport(untrustedConfig) {
|
|
772
|
-
const config = validateAdapterConfig$
|
|
774
|
+
const config = validateAdapterConfig$b(untrustedConfig, createFileBasedDataImport_ConfigPropertyNames);
|
|
773
775
|
// Invalid or incomplete config
|
|
774
776
|
if (config === null) {
|
|
775
777
|
throw new Error('Invalid config for "createFileBasedDataImport"');
|
|
776
778
|
}
|
|
777
|
-
return buildNetworkSnapshot$
|
|
779
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
778
780
|
};
|
|
779
781
|
};
|
|
780
782
|
|
|
781
|
-
function keyBuilder$
|
|
782
|
-
return keyBuilder$
|
|
783
|
+
function keyBuilder$f(luvio, params) {
|
|
784
|
+
return keyBuilder$g(luvio, {
|
|
783
785
|
id: params.urlParams.fileBasedImportId
|
|
784
786
|
});
|
|
785
787
|
}
|
|
786
|
-
function getResponseCacheKeys$
|
|
787
|
-
const key = keyBuilder$
|
|
788
|
+
function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
|
|
789
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
788
790
|
cacheKeyMap.set(key, {
|
|
789
791
|
namespace: keyPrefix,
|
|
790
|
-
representationName: RepresentationType$
|
|
792
|
+
representationName: RepresentationType$7,
|
|
791
793
|
mergeable: false
|
|
792
794
|
});
|
|
793
795
|
}
|
|
794
796
|
function evictSuccess(luvio, resourceParams) {
|
|
795
|
-
const key = keyBuilder$
|
|
797
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
796
798
|
luvio.storeEvict(key);
|
|
797
799
|
}
|
|
798
|
-
function createResourceRequest$
|
|
800
|
+
function createResourceRequest$a(config) {
|
|
799
801
|
const headers = {};
|
|
800
802
|
return {
|
|
801
803
|
baseUri: '/services/data/v60.0',
|
|
@@ -809,33 +811,33 @@ function createResourceRequest$9(config) {
|
|
|
809
811
|
};
|
|
810
812
|
}
|
|
811
813
|
|
|
812
|
-
const adapterName$
|
|
814
|
+
const adapterName$a = 'deleteFileBasedDataImport';
|
|
813
815
|
const deleteFileBasedDataImport_ConfigPropertyMetadata = [
|
|
814
816
|
generateParamConfigMetadata('fileBasedImportId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
815
817
|
];
|
|
816
|
-
const deleteFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
817
|
-
const createResourceParams$
|
|
818
|
-
function typeCheckConfig$
|
|
818
|
+
const deleteFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteFileBasedDataImport_ConfigPropertyMetadata);
|
|
819
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(deleteFileBasedDataImport_ConfigPropertyMetadata);
|
|
820
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
819
821
|
const config = {};
|
|
820
|
-
typeCheckConfig$
|
|
822
|
+
typeCheckConfig$c(untrustedConfig, config, deleteFileBasedDataImport_ConfigPropertyMetadata);
|
|
821
823
|
return config;
|
|
822
824
|
}
|
|
823
|
-
function validateAdapterConfig$
|
|
825
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
824
826
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
825
827
|
return null;
|
|
826
828
|
}
|
|
827
829
|
if (process.env.NODE_ENV !== 'production') {
|
|
828
830
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
829
831
|
}
|
|
830
|
-
const config = typeCheckConfig$
|
|
832
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
831
833
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
832
834
|
return null;
|
|
833
835
|
}
|
|
834
836
|
return config;
|
|
835
837
|
}
|
|
836
|
-
function buildNetworkSnapshot$
|
|
837
|
-
const resourceParams = createResourceParams$
|
|
838
|
-
const request = createResourceRequest$
|
|
838
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
839
|
+
const resourceParams = createResourceParams$a(config);
|
|
840
|
+
const request = createResourceRequest$a(resourceParams);
|
|
839
841
|
return luvio.dispatchResourceRequest(request, options)
|
|
840
842
|
.then(() => {
|
|
841
843
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -843,7 +845,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
843
845
|
return luvio.storeBroadcast();
|
|
844
846
|
}, () => {
|
|
845
847
|
const cache = new StoreKeyMap();
|
|
846
|
-
getResponseCacheKeys$
|
|
848
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams);
|
|
847
849
|
return cache;
|
|
848
850
|
});
|
|
849
851
|
}, (response) => {
|
|
@@ -853,17 +855,17 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
853
855
|
}
|
|
854
856
|
const deleteFileBasedDataImportAdapterFactory = (luvio) => {
|
|
855
857
|
return function fileBasedDataimportdeleteFileBasedDataImport(untrustedConfig) {
|
|
856
|
-
const config = validateAdapterConfig$
|
|
858
|
+
const config = validateAdapterConfig$a(untrustedConfig, deleteFileBasedDataImport_ConfigPropertyNames);
|
|
857
859
|
// Invalid or incomplete config
|
|
858
860
|
if (config === null) {
|
|
859
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
861
|
+
throw new Error(`Invalid config for "${adapterName$a}"`);
|
|
860
862
|
}
|
|
861
|
-
return buildNetworkSnapshot$
|
|
863
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
862
864
|
};
|
|
863
865
|
};
|
|
864
866
|
|
|
865
|
-
const VERSION$
|
|
866
|
-
function validate$
|
|
867
|
+
const VERSION$b = "79cbc962b5b6429d024e384c92f23cda";
|
|
868
|
+
function validate$f(obj, path = 'ReferenceFieldInfo') {
|
|
867
869
|
const v_error = (() => {
|
|
868
870
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
869
871
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -881,10 +883,10 @@ function validate$d(obj, path = 'ReferenceFieldInfo') {
|
|
|
881
883
|
})();
|
|
882
884
|
return v_error === undefined ? null : v_error;
|
|
883
885
|
}
|
|
884
|
-
const select$
|
|
886
|
+
const select$l = function ReferenceFieldInfoSelect() {
|
|
885
887
|
return {
|
|
886
888
|
kind: 'Fragment',
|
|
887
|
-
version: VERSION$
|
|
889
|
+
version: VERSION$b,
|
|
888
890
|
private: [],
|
|
889
891
|
selections: [
|
|
890
892
|
{
|
|
@@ -898,7 +900,7 @@ const select$j = function ReferenceFieldInfoSelect() {
|
|
|
898
900
|
]
|
|
899
901
|
};
|
|
900
902
|
};
|
|
901
|
-
function equals$
|
|
903
|
+
function equals$b(existing, incoming) {
|
|
902
904
|
const existing_fieldLabel = existing.fieldLabel;
|
|
903
905
|
const incoming_fieldLabel = incoming.fieldLabel;
|
|
904
906
|
if (!(existing_fieldLabel === incoming_fieldLabel)) {
|
|
@@ -912,8 +914,8 @@ function equals$a(existing, incoming) {
|
|
|
912
914
|
return true;
|
|
913
915
|
}
|
|
914
916
|
|
|
915
|
-
const VERSION$
|
|
916
|
-
function validate$
|
|
917
|
+
const VERSION$a = "b3d49ed32b6dfdd7e4f99ef7e3629860";
|
|
918
|
+
function validate$e(obj, path = 'ReferenceEntityInfo') {
|
|
917
919
|
const v_error = (() => {
|
|
918
920
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
919
921
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -936,7 +938,7 @@ function validate$c(obj, path = 'ReferenceEntityInfo') {
|
|
|
936
938
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
937
939
|
const obj_fields_item = obj_fields[i];
|
|
938
940
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
939
|
-
const referencepath_fields_itemValidationError = validate$
|
|
941
|
+
const referencepath_fields_itemValidationError = validate$f(obj_fields_item, path_fields_item);
|
|
940
942
|
if (referencepath_fields_itemValidationError !== null) {
|
|
941
943
|
let message = 'Object doesn\'t match ReferenceFieldInfo (at "' + path_fields_item + '")\n';
|
|
942
944
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -946,11 +948,11 @@ function validate$c(obj, path = 'ReferenceEntityInfo') {
|
|
|
946
948
|
})();
|
|
947
949
|
return v_error === undefined ? null : v_error;
|
|
948
950
|
}
|
|
949
|
-
const select$
|
|
950
|
-
const { selections: ReferenceFieldInfo__selections, opaque: ReferenceFieldInfo__opaque, } = select$
|
|
951
|
+
const select$k = function ReferenceEntityInfoSelect() {
|
|
952
|
+
const { selections: ReferenceFieldInfo__selections, opaque: ReferenceFieldInfo__opaque, } = select$l();
|
|
951
953
|
return {
|
|
952
954
|
kind: 'Fragment',
|
|
953
|
-
version: VERSION$
|
|
955
|
+
version: VERSION$a,
|
|
954
956
|
private: [],
|
|
955
957
|
selections: [
|
|
956
958
|
{
|
|
@@ -970,7 +972,7 @@ const select$i = function ReferenceEntityInfoSelect() {
|
|
|
970
972
|
]
|
|
971
973
|
};
|
|
972
974
|
};
|
|
973
|
-
function equals$
|
|
975
|
+
function equals$a(existing, incoming) {
|
|
974
976
|
const existing_entityLabel = existing.entityLabel;
|
|
975
977
|
const incoming_entityLabel = incoming.entityLabel;
|
|
976
978
|
if (!(existing_entityLabel === incoming_entityLabel)) {
|
|
@@ -984,7 +986,7 @@ function equals$9(existing, incoming) {
|
|
|
984
986
|
const existing_fields = existing.fields;
|
|
985
987
|
const incoming_fields = incoming.fields;
|
|
986
988
|
const equals_fields_items = equalsArray(existing_fields, incoming_fields, (existing_fields_item, incoming_fields_item) => {
|
|
987
|
-
if (!(equals$
|
|
989
|
+
if (!(equals$b(existing_fields_item, incoming_fields_item))) {
|
|
988
990
|
return false;
|
|
989
991
|
}
|
|
990
992
|
});
|
|
@@ -994,8 +996,8 @@ function equals$9(existing, incoming) {
|
|
|
994
996
|
return true;
|
|
995
997
|
}
|
|
996
998
|
|
|
997
|
-
const VERSION$
|
|
998
|
-
function validate$
|
|
999
|
+
const VERSION$9 = "d025efb11c01b8dbb85eeae1ab377c2a";
|
|
1000
|
+
function validate$d(obj, path = 'FieldInfoRepresentation') {
|
|
999
1001
|
const v_error = (() => {
|
|
1000
1002
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1001
1003
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1072,7 +1074,7 @@ function validate$b(obj, path = 'FieldInfoRepresentation') {
|
|
|
1072
1074
|
for (let i = 0; i < obj_referenceTo.length; i++) {
|
|
1073
1075
|
const obj_referenceTo_item = obj_referenceTo[i];
|
|
1074
1076
|
const path_referenceTo_item = path_referenceTo + '[' + i + ']';
|
|
1075
|
-
const referencepath_referenceTo_itemValidationError = validate$
|
|
1077
|
+
const referencepath_referenceTo_itemValidationError = validate$e(obj_referenceTo_item, path_referenceTo_item);
|
|
1076
1078
|
if (referencepath_referenceTo_itemValidationError !== null) {
|
|
1077
1079
|
let message = 'Object doesn\'t match ReferenceEntityInfo (at "' + path_referenceTo_item + '")\n';
|
|
1078
1080
|
message += referencepath_referenceTo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1118,11 +1120,11 @@ function validate$b(obj, path = 'FieldInfoRepresentation') {
|
|
|
1118
1120
|
})();
|
|
1119
1121
|
return v_error === undefined ? null : v_error;
|
|
1120
1122
|
}
|
|
1121
|
-
const select$
|
|
1122
|
-
const { selections: ReferenceEntityInfo__selections, opaque: ReferenceEntityInfo__opaque, } = select$
|
|
1123
|
+
const select$j = function FieldInfoRepresentationSelect() {
|
|
1124
|
+
const { selections: ReferenceEntityInfo__selections, opaque: ReferenceEntityInfo__opaque, } = select$k();
|
|
1123
1125
|
return {
|
|
1124
1126
|
kind: 'Fragment',
|
|
1125
|
-
version: VERSION$
|
|
1127
|
+
version: VERSION$9,
|
|
1126
1128
|
private: [],
|
|
1127
1129
|
selections: [
|
|
1128
1130
|
{
|
|
@@ -1205,7 +1207,7 @@ const select$h = function FieldInfoRepresentationSelect() {
|
|
|
1205
1207
|
]
|
|
1206
1208
|
};
|
|
1207
1209
|
};
|
|
1208
|
-
function equals$
|
|
1210
|
+
function equals$9(existing, incoming) {
|
|
1209
1211
|
const existing_createable = existing.createable;
|
|
1210
1212
|
const incoming_createable = incoming.createable;
|
|
1211
1213
|
// if at least one of these optionals is defined
|
|
@@ -1398,7 +1400,7 @@ function equals$8(existing, incoming) {
|
|
|
1398
1400
|
return false;
|
|
1399
1401
|
}
|
|
1400
1402
|
const equals_referenceTo_items = equalsArray(existing_referenceTo, incoming_referenceTo, (existing_referenceTo_item, incoming_referenceTo_item) => {
|
|
1401
|
-
if (!(equals$
|
|
1403
|
+
if (!(equals$a(existing_referenceTo_item, incoming_referenceTo_item))) {
|
|
1402
1404
|
return false;
|
|
1403
1405
|
}
|
|
1404
1406
|
});
|
|
@@ -1409,8 +1411,8 @@ function equals$8(existing, incoming) {
|
|
|
1409
1411
|
return true;
|
|
1410
1412
|
}
|
|
1411
1413
|
|
|
1412
|
-
const VERSION$
|
|
1413
|
-
function validate$
|
|
1414
|
+
const VERSION$8 = "fb84569fbdb1214096f70e7d0a82aa88";
|
|
1415
|
+
function validate$c(obj, path = 'FieldInfoOutputRepresentation') {
|
|
1414
1416
|
const v_error = (() => {
|
|
1415
1417
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1416
1418
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1424,7 +1426,7 @@ function validate$a(obj, path = 'FieldInfoOutputRepresentation') {
|
|
|
1424
1426
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
1425
1427
|
const obj_fields_item = obj_fields[i];
|
|
1426
1428
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
1427
|
-
const referencepath_fields_itemValidationError = validate$
|
|
1429
|
+
const referencepath_fields_itemValidationError = validate$d(obj_fields_item, path_fields_item);
|
|
1428
1430
|
if (referencepath_fields_itemValidationError !== null) {
|
|
1429
1431
|
let message = 'Object doesn\'t match FieldInfoRepresentation (at "' + path_fields_item + '")\n';
|
|
1430
1432
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1435,15 +1437,15 @@ function validate$a(obj, path = 'FieldInfoOutputRepresentation') {
|
|
|
1435
1437
|
})();
|
|
1436
1438
|
return v_error === undefined ? null : v_error;
|
|
1437
1439
|
}
|
|
1438
|
-
const RepresentationType$
|
|
1439
|
-
function normalize$
|
|
1440
|
+
const RepresentationType$6 = 'FieldInfoOutputRepresentation';
|
|
1441
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
1440
1442
|
return input;
|
|
1441
1443
|
}
|
|
1442
|
-
const select$
|
|
1443
|
-
const { selections: FieldInfoRepresentation__selections, opaque: FieldInfoRepresentation__opaque, } = select$
|
|
1444
|
+
const select$i = function FieldInfoOutputRepresentationSelect() {
|
|
1445
|
+
const { selections: FieldInfoRepresentation__selections, opaque: FieldInfoRepresentation__opaque, } = select$j();
|
|
1444
1446
|
return {
|
|
1445
1447
|
kind: 'Fragment',
|
|
1446
|
-
version: VERSION$
|
|
1448
|
+
version: VERSION$8,
|
|
1447
1449
|
private: [],
|
|
1448
1450
|
selections: [
|
|
1449
1451
|
{
|
|
@@ -1456,7 +1458,7 @@ const select$g = function FieldInfoOutputRepresentationSelect() {
|
|
|
1456
1458
|
]
|
|
1457
1459
|
};
|
|
1458
1460
|
};
|
|
1459
|
-
function equals$
|
|
1461
|
+
function equals$8(existing, incoming) {
|
|
1460
1462
|
const existing_fields = existing.fields;
|
|
1461
1463
|
const incoming_fields = incoming.fields;
|
|
1462
1464
|
// if at least one of these optionals is defined
|
|
@@ -1467,7 +1469,7 @@ function equals$7(existing, incoming) {
|
|
|
1467
1469
|
return false;
|
|
1468
1470
|
}
|
|
1469
1471
|
const equals_fields_items = equalsArray(existing_fields, incoming_fields, (existing_fields_item, incoming_fields_item) => {
|
|
1470
|
-
if (!(equals$
|
|
1472
|
+
if (!(equals$9(existing_fields_item, incoming_fields_item))) {
|
|
1471
1473
|
return false;
|
|
1472
1474
|
}
|
|
1473
1475
|
});
|
|
@@ -1477,7 +1479,275 @@ function equals$7(existing, incoming) {
|
|
|
1477
1479
|
}
|
|
1478
1480
|
return true;
|
|
1479
1481
|
}
|
|
1480
|
-
const ingest$
|
|
1482
|
+
const ingest$6 = function FieldInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1483
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1484
|
+
const validateError = validate$c(input);
|
|
1485
|
+
if (validateError !== null) {
|
|
1486
|
+
throw validateError;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
const key = path.fullPath;
|
|
1490
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 300;
|
|
1491
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "fileBased-dataimport", VERSION$8, RepresentationType$6, equals$8);
|
|
1492
|
+
return createLink(key);
|
|
1493
|
+
};
|
|
1494
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
1495
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1496
|
+
const rootKey = fullPathFactory();
|
|
1497
|
+
rootKeySet.set(rootKey, {
|
|
1498
|
+
namespace: keyPrefix,
|
|
1499
|
+
representationName: RepresentationType$6,
|
|
1500
|
+
mergeable: false
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
function select$h(luvio, params) {
|
|
1505
|
+
return select$i();
|
|
1506
|
+
}
|
|
1507
|
+
function keyBuilder$e(luvio, params) {
|
|
1508
|
+
return keyPrefix + '::FieldInfoOutputRepresentation:(' + 'batchSize:' + params.queryParams.batchSize + ',' + 'fieldName:' + params.queryParams.fieldName + ',' + 'startOffset:' + params.queryParams.startOffset + ',' + 'entityApiName:' + params.urlParams.entityApiName + ')';
|
|
1509
|
+
}
|
|
1510
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
1511
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
|
|
1512
|
+
}
|
|
1513
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
1514
|
+
const { body } = response;
|
|
1515
|
+
const key = keyBuilder$e(luvio, resourceParams);
|
|
1516
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
1517
|
+
const snapshot = luvio.storeLookup({
|
|
1518
|
+
recordId: key,
|
|
1519
|
+
node: select$h(),
|
|
1520
|
+
variables: {},
|
|
1521
|
+
}, snapshotRefresh);
|
|
1522
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1523
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1524
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
deepFreeze(snapshot.data);
|
|
1528
|
+
return snapshot;
|
|
1529
|
+
}
|
|
1530
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
1531
|
+
const key = keyBuilder$e(luvio, params);
|
|
1532
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1533
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
1534
|
+
return errorSnapshot;
|
|
1535
|
+
}
|
|
1536
|
+
function createResourceRequest$9(config) {
|
|
1537
|
+
const headers = {};
|
|
1538
|
+
return {
|
|
1539
|
+
baseUri: '/services/data/v60.0',
|
|
1540
|
+
basePath: '/connect/industries/fileBasedDataImports/entities/' + config.urlParams.entityApiName + '/fields',
|
|
1541
|
+
method: 'get',
|
|
1542
|
+
body: null,
|
|
1543
|
+
urlParams: config.urlParams,
|
|
1544
|
+
queryParams: config.queryParams,
|
|
1545
|
+
headers,
|
|
1546
|
+
priority: 'normal',
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
const adapterName$9 = 'getAllFields';
|
|
1551
|
+
const getAllFields_ConfigPropertyMetadata = [
|
|
1552
|
+
generateParamConfigMetadata('entityApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1553
|
+
generateParamConfigMetadata('batchSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1554
|
+
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1555
|
+
generateParamConfigMetadata('startOffset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1556
|
+
];
|
|
1557
|
+
const getAllFields_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getAllFields_ConfigPropertyMetadata);
|
|
1558
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(getAllFields_ConfigPropertyMetadata);
|
|
1559
|
+
function keyBuilder$d(luvio, config) {
|
|
1560
|
+
const resourceParams = createResourceParams$9(config);
|
|
1561
|
+
return keyBuilder$e(luvio, resourceParams);
|
|
1562
|
+
}
|
|
1563
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1564
|
+
const config = {};
|
|
1565
|
+
typeCheckConfig$c(untrustedConfig, config, getAllFields_ConfigPropertyMetadata);
|
|
1566
|
+
return config;
|
|
1567
|
+
}
|
|
1568
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1569
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1570
|
+
return null;
|
|
1571
|
+
}
|
|
1572
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1573
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1574
|
+
}
|
|
1575
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1576
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1577
|
+
return null;
|
|
1578
|
+
}
|
|
1579
|
+
return config;
|
|
1580
|
+
}
|
|
1581
|
+
function adapterFragment$6(luvio, config) {
|
|
1582
|
+
createResourceParams$9(config);
|
|
1583
|
+
return select$h();
|
|
1584
|
+
}
|
|
1585
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
1586
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
1587
|
+
config,
|
|
1588
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1589
|
+
});
|
|
1590
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1591
|
+
}
|
|
1592
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
1593
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
1594
|
+
config,
|
|
1595
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1596
|
+
});
|
|
1597
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1598
|
+
}
|
|
1599
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
1600
|
+
const resourceParams = createResourceParams$9(config);
|
|
1601
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1602
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1603
|
+
.then((response) => {
|
|
1604
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
1605
|
+
const cache = new StoreKeyMap();
|
|
1606
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
1607
|
+
return cache;
|
|
1608
|
+
});
|
|
1609
|
+
}, (response) => {
|
|
1610
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
1614
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
1615
|
+
}
|
|
1616
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
1617
|
+
const { luvio, config } = context;
|
|
1618
|
+
const selector = {
|
|
1619
|
+
recordId: keyBuilder$d(luvio, config),
|
|
1620
|
+
node: adapterFragment$6(luvio, config),
|
|
1621
|
+
variables: {},
|
|
1622
|
+
};
|
|
1623
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1624
|
+
config,
|
|
1625
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1626
|
+
});
|
|
1627
|
+
return cacheSnapshot;
|
|
1628
|
+
}
|
|
1629
|
+
const getAllFieldsAdapterFactory = (luvio) => function fileBasedDataimport__getAllFields(untrustedConfig, requestContext) {
|
|
1630
|
+
const config = validateAdapterConfig$9(untrustedConfig, getAllFields_ConfigPropertyNames);
|
|
1631
|
+
// Invalid or incomplete config
|
|
1632
|
+
if (config === null) {
|
|
1633
|
+
return null;
|
|
1634
|
+
}
|
|
1635
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1636
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
function validate$b(obj, path = 'ObjectInfoDirectoryEntryRepresentation') {
|
|
1640
|
+
const v_error = (() => {
|
|
1641
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1642
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1643
|
+
}
|
|
1644
|
+
const obj_apiName = obj.apiName;
|
|
1645
|
+
const path_apiName = path + '.apiName';
|
|
1646
|
+
if (typeof obj_apiName !== 'string') {
|
|
1647
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
1648
|
+
}
|
|
1649
|
+
const obj_keyPrefix = obj.keyPrefix;
|
|
1650
|
+
const path_keyPrefix = path + '.keyPrefix';
|
|
1651
|
+
let obj_keyPrefix_union0 = null;
|
|
1652
|
+
const obj_keyPrefix_union0_error = (() => {
|
|
1653
|
+
if (typeof obj_keyPrefix !== 'string') {
|
|
1654
|
+
return new TypeError('Expected "string" but received "' + typeof obj_keyPrefix + '" (at "' + path_keyPrefix + '")');
|
|
1655
|
+
}
|
|
1656
|
+
})();
|
|
1657
|
+
if (obj_keyPrefix_union0_error != null) {
|
|
1658
|
+
obj_keyPrefix_union0 = obj_keyPrefix_union0_error.message;
|
|
1659
|
+
}
|
|
1660
|
+
let obj_keyPrefix_union1 = null;
|
|
1661
|
+
const obj_keyPrefix_union1_error = (() => {
|
|
1662
|
+
if (obj_keyPrefix !== null) {
|
|
1663
|
+
return new TypeError('Expected "null" but received "' + typeof obj_keyPrefix + '" (at "' + path_keyPrefix + '")');
|
|
1664
|
+
}
|
|
1665
|
+
})();
|
|
1666
|
+
if (obj_keyPrefix_union1_error != null) {
|
|
1667
|
+
obj_keyPrefix_union1 = obj_keyPrefix_union1_error.message;
|
|
1668
|
+
}
|
|
1669
|
+
if (obj_keyPrefix_union0 && obj_keyPrefix_union1) {
|
|
1670
|
+
let message = 'Object doesn\'t match union (at "' + path_keyPrefix + '")';
|
|
1671
|
+
message += '\n' + obj_keyPrefix_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1672
|
+
message += '\n' + obj_keyPrefix_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1673
|
+
return new TypeError(message);
|
|
1674
|
+
}
|
|
1675
|
+
const obj_label = obj.label;
|
|
1676
|
+
const path_label = path + '.label';
|
|
1677
|
+
if (typeof obj_label !== 'string') {
|
|
1678
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1679
|
+
}
|
|
1680
|
+
const obj_labelPlural = obj.labelPlural;
|
|
1681
|
+
const path_labelPlural = path + '.labelPlural';
|
|
1682
|
+
if (typeof obj_labelPlural !== 'string') {
|
|
1683
|
+
return new TypeError('Expected "string" but received "' + typeof obj_labelPlural + '" (at "' + path_labelPlural + '")');
|
|
1684
|
+
}
|
|
1685
|
+
const obj_nameFields = obj.nameFields;
|
|
1686
|
+
const path_nameFields = path + '.nameFields';
|
|
1687
|
+
if (!ArrayIsArray(obj_nameFields)) {
|
|
1688
|
+
return new TypeError('Expected "array" but received "' + typeof obj_nameFields + '" (at "' + path_nameFields + '")');
|
|
1689
|
+
}
|
|
1690
|
+
for (let i = 0; i < obj_nameFields.length; i++) {
|
|
1691
|
+
const obj_nameFields_item = obj_nameFields[i];
|
|
1692
|
+
const path_nameFields_item = path_nameFields + '[' + i + ']';
|
|
1693
|
+
if (typeof obj_nameFields_item !== 'string') {
|
|
1694
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nameFields_item + '" (at "' + path_nameFields_item + '")');
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
const obj_objectInfoUrl = obj.objectInfoUrl;
|
|
1698
|
+
const path_objectInfoUrl = path + '.objectInfoUrl';
|
|
1699
|
+
if (typeof obj_objectInfoUrl !== 'string') {
|
|
1700
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectInfoUrl + '" (at "' + path_objectInfoUrl + '")');
|
|
1701
|
+
}
|
|
1702
|
+
})();
|
|
1703
|
+
return v_error === undefined ? null : v_error;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
const VERSION$7 = "c040e955efdc64a496f748f728dcbe5f";
|
|
1707
|
+
function validate$a(obj, path = 'ObjectInfoDirectoryRepresentation') {
|
|
1708
|
+
const v_error = (() => {
|
|
1709
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1710
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1711
|
+
}
|
|
1712
|
+
const obj_objects = obj.objects;
|
|
1713
|
+
const path_objects = path + '.objects';
|
|
1714
|
+
if (typeof obj_objects !== 'object' || ArrayIsArray(obj_objects) || obj_objects === null) {
|
|
1715
|
+
return new TypeError('Expected "object" but received "' + typeof obj_objects + '" (at "' + path_objects + '")');
|
|
1716
|
+
}
|
|
1717
|
+
const obj_objects_keys = ObjectKeys(obj_objects);
|
|
1718
|
+
for (let i = 0; i < obj_objects_keys.length; i++) {
|
|
1719
|
+
const key = obj_objects_keys[i];
|
|
1720
|
+
const obj_objects_prop = obj_objects[key];
|
|
1721
|
+
const path_objects_prop = path_objects + '["' + key + '"]';
|
|
1722
|
+
const referencepath_objects_propValidationError = validate$b(obj_objects_prop, path_objects_prop);
|
|
1723
|
+
if (referencepath_objects_propValidationError !== null) {
|
|
1724
|
+
let message = 'Object doesn\'t match ObjectInfoDirectoryEntryRepresentation (at "' + path_objects_prop + '")\n';
|
|
1725
|
+
message += referencepath_objects_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1726
|
+
return new TypeError(message);
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
})();
|
|
1730
|
+
return v_error === undefined ? null : v_error;
|
|
1731
|
+
}
|
|
1732
|
+
const RepresentationType$5 = 'ObjectInfoDirectoryRepresentation';
|
|
1733
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
1734
|
+
return input;
|
|
1735
|
+
}
|
|
1736
|
+
const select$g = function ObjectInfoDirectoryRepresentationSelect() {
|
|
1737
|
+
return {
|
|
1738
|
+
kind: 'Fragment',
|
|
1739
|
+
version: VERSION$7,
|
|
1740
|
+
private: [],
|
|
1741
|
+
opaque: true
|
|
1742
|
+
};
|
|
1743
|
+
};
|
|
1744
|
+
function equals$7(existing, incoming) {
|
|
1745
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1746
|
+
return false;
|
|
1747
|
+
}
|
|
1748
|
+
return true;
|
|
1749
|
+
}
|
|
1750
|
+
const ingest$5 = function ObjectInfoDirectoryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1481
1751
|
if (process.env.NODE_ENV !== 'production') {
|
|
1482
1752
|
const validateError = validate$a(input);
|
|
1483
1753
|
if (validateError !== null) {
|
|
@@ -1503,7 +1773,7 @@ function select$f(luvio, params) {
|
|
|
1503
1773
|
return select$g();
|
|
1504
1774
|
}
|
|
1505
1775
|
function keyBuilder$c(luvio, params) {
|
|
1506
|
-
return keyPrefix + '::
|
|
1776
|
+
return keyPrefix + '::ObjectInfoDirectoryRepresentation:(' + 'batchSize:' + params.queryParams.batchSize + ',' + 'searchText:' + params.queryParams.searchText + ',' + 'startOffset:' + params.queryParams.startOffset + ')';
|
|
1507
1777
|
}
|
|
1508
1778
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1509
1779
|
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
|
|
@@ -1535,32 +1805,31 @@ function createResourceRequest$8(config) {
|
|
|
1535
1805
|
const headers = {};
|
|
1536
1806
|
return {
|
|
1537
1807
|
baseUri: '/services/data/v60.0',
|
|
1538
|
-
basePath: '/connect/industries/fileBasedDataImports/entities
|
|
1808
|
+
basePath: '/connect/industries/fileBasedDataImports/entities',
|
|
1539
1809
|
method: 'get',
|
|
1540
1810
|
body: null,
|
|
1541
|
-
urlParams:
|
|
1811
|
+
urlParams: {},
|
|
1542
1812
|
queryParams: config.queryParams,
|
|
1543
1813
|
headers,
|
|
1544
1814
|
priority: 'normal',
|
|
1545
1815
|
};
|
|
1546
1816
|
}
|
|
1547
1817
|
|
|
1548
|
-
const adapterName$8 = '
|
|
1549
|
-
const
|
|
1550
|
-
generateParamConfigMetadata('entityApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1818
|
+
const adapterName$8 = 'getAllSobjects';
|
|
1819
|
+
const getAllSobjects_ConfigPropertyMetadata = [
|
|
1551
1820
|
generateParamConfigMetadata('batchSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1552
|
-
generateParamConfigMetadata('
|
|
1821
|
+
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1553
1822
|
generateParamConfigMetadata('startOffset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1554
1823
|
];
|
|
1555
|
-
const
|
|
1556
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
1824
|
+
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getAllSobjects_ConfigPropertyMetadata);
|
|
1825
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(getAllSobjects_ConfigPropertyMetadata);
|
|
1557
1826
|
function keyBuilder$b(luvio, config) {
|
|
1558
1827
|
const resourceParams = createResourceParams$8(config);
|
|
1559
1828
|
return keyBuilder$c(luvio, resourceParams);
|
|
1560
1829
|
}
|
|
1561
1830
|
function typeCheckConfig$8(untrustedConfig) {
|
|
1562
1831
|
const config = {};
|
|
1563
|
-
typeCheckConfig$
|
|
1832
|
+
typeCheckConfig$c(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
|
|
1564
1833
|
return config;
|
|
1565
1834
|
}
|
|
1566
1835
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -1609,7 +1878,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1609
1878
|
});
|
|
1610
1879
|
}
|
|
1611
1880
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
1612
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1881
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
1613
1882
|
}
|
|
1614
1883
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
1615
1884
|
const { luvio, config } = context;
|
|
@@ -1624,8 +1893,8 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
1624
1893
|
});
|
|
1625
1894
|
return cacheSnapshot;
|
|
1626
1895
|
}
|
|
1627
|
-
const
|
|
1628
|
-
const config = validateAdapterConfig$8(untrustedConfig,
|
|
1896
|
+
const getAllSobjectsAdapterFactory = (luvio) => function fileBasedDataimport__getAllSobjects(untrustedConfig, requestContext) {
|
|
1897
|
+
const config = validateAdapterConfig$8(untrustedConfig, getAllSobjects_ConfigPropertyNames);
|
|
1629
1898
|
// Invalid or incomplete config
|
|
1630
1899
|
if (config === null) {
|
|
1631
1900
|
return null;
|
|
@@ -1678,7 +1947,7 @@ function validate$9(obj, path = 'CsvMappingRepresentation') {
|
|
|
1678
1947
|
const path_mappedEntityColumn = path + '.mappedEntityColumn';
|
|
1679
1948
|
let obj_mappedEntityColumn_union0 = null;
|
|
1680
1949
|
const obj_mappedEntityColumn_union0_error = (() => {
|
|
1681
|
-
const referencepath_mappedEntityColumnValidationError = validate$
|
|
1950
|
+
const referencepath_mappedEntityColumnValidationError = validate$d(obj_mappedEntityColumn, path_mappedEntityColumn);
|
|
1682
1951
|
if (referencepath_mappedEntityColumnValidationError !== null) {
|
|
1683
1952
|
let message = 'Object doesn\'t match FieldInfoRepresentation (at "' + path_mappedEntityColumn + '")\n';
|
|
1684
1953
|
message += referencepath_mappedEntityColumnValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1736,7 +2005,7 @@ function validate$9(obj, path = 'CsvMappingRepresentation') {
|
|
|
1736
2005
|
return v_error === undefined ? null : v_error;
|
|
1737
2006
|
}
|
|
1738
2007
|
const select$e = function CsvMappingRepresentationSelect() {
|
|
1739
|
-
const { selections: FieldInfoRepresentation__selections, opaque: FieldInfoRepresentation__opaque, } = select$
|
|
2008
|
+
const { selections: FieldInfoRepresentation__selections, opaque: FieldInfoRepresentation__opaque, } = select$j();
|
|
1740
2009
|
return {
|
|
1741
2010
|
kind: 'Fragment',
|
|
1742
2011
|
version: VERSION$6,
|
|
@@ -1797,7 +2066,7 @@ function equals$6(existing, incoming) {
|
|
|
1797
2066
|
if (!(existing_mappedEntityColumn === incoming_mappedEntityColumn
|
|
1798
2067
|
|| (existing_mappedEntityColumn != null &&
|
|
1799
2068
|
incoming_mappedEntityColumn != null &&
|
|
1800
|
-
equals$
|
|
2069
|
+
equals$9(existing_mappedEntityColumn, incoming_mappedEntityColumn)))) {
|
|
1801
2070
|
return false;
|
|
1802
2071
|
}
|
|
1803
2072
|
}
|
|
@@ -1950,14 +2219,14 @@ const getCsvAutoMap_ConfigPropertyMetadata = [
|
|
|
1950
2219
|
generateParamConfigMetadata('entityApiName', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1951
2220
|
];
|
|
1952
2221
|
const getCsvAutoMap_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCsvAutoMap_ConfigPropertyMetadata);
|
|
1953
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
2222
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getCsvAutoMap_ConfigPropertyMetadata);
|
|
1954
2223
|
function keyBuilder$9(luvio, config) {
|
|
1955
2224
|
const resourceParams = createResourceParams$7(config);
|
|
1956
2225
|
return keyBuilder$a(luvio, resourceParams);
|
|
1957
2226
|
}
|
|
1958
2227
|
function typeCheckConfig$7(untrustedConfig) {
|
|
1959
2228
|
const config = {};
|
|
1960
|
-
typeCheckConfig$
|
|
2229
|
+
typeCheckConfig$c(untrustedConfig, config, getCsvAutoMap_ConfigPropertyMetadata);
|
|
1961
2230
|
return config;
|
|
1962
2231
|
}
|
|
1963
2232
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -2006,7 +2275,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
2006
2275
|
});
|
|
2007
2276
|
}
|
|
2008
2277
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2009
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2278
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
2010
2279
|
}
|
|
2011
2280
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
2012
2281
|
const { luvio, config } = context;
|
|
@@ -2230,14 +2499,14 @@ const getCsvPreviewData_ConfigPropertyMetadata = [
|
|
|
2230
2499
|
generateParamConfigMetadata('numberOfRows', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2231
2500
|
];
|
|
2232
2501
|
const getCsvPreviewData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getCsvPreviewData_ConfigPropertyMetadata);
|
|
2233
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
2502
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(getCsvPreviewData_ConfigPropertyMetadata);
|
|
2234
2503
|
function keyBuilder$7(luvio, config) {
|
|
2235
2504
|
const resourceParams = createResourceParams$6(config);
|
|
2236
2505
|
return keyBuilder$8(luvio, resourceParams);
|
|
2237
2506
|
}
|
|
2238
2507
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2239
2508
|
const config = {};
|
|
2240
|
-
typeCheckConfig$
|
|
2509
|
+
typeCheckConfig$c(untrustedConfig, config, getCsvPreviewData_ConfigPropertyMetadata);
|
|
2241
2510
|
return config;
|
|
2242
2511
|
}
|
|
2243
2512
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -2286,7 +2555,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
2286
2555
|
});
|
|
2287
2556
|
}
|
|
2288
2557
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2289
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2558
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
2290
2559
|
}
|
|
2291
2560
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2292
2561
|
const { luvio, config } = context;
|
|
@@ -2503,7 +2772,7 @@ function createResourceRequest$5(config) {
|
|
|
2503
2772
|
const adapterName$5 = 'getDPEDefinitions';
|
|
2504
2773
|
const getDPEDefinitions_ConfigPropertyMetadata = [];
|
|
2505
2774
|
const getDPEDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getDPEDefinitions_ConfigPropertyMetadata);
|
|
2506
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
2775
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getDPEDefinitions_ConfigPropertyMetadata);
|
|
2507
2776
|
function keyBuilder$5(luvio, config) {
|
|
2508
2777
|
createResourceParams$5(config);
|
|
2509
2778
|
return keyBuilder$6();
|
|
@@ -2558,7 +2827,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
2558
2827
|
});
|
|
2559
2828
|
}
|
|
2560
2829
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
2561
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2830
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
2562
2831
|
}
|
|
2563
2832
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2564
2833
|
const { luvio, config } = context;
|
|
@@ -2584,20 +2853,20 @@ const getDPEDefinitionsAdapterFactory = (luvio) => function fileBasedDataimport_
|
|
|
2584
2853
|
};
|
|
2585
2854
|
|
|
2586
2855
|
function select$6(luvio, params) {
|
|
2587
|
-
return select$
|
|
2856
|
+
return select$n();
|
|
2588
2857
|
}
|
|
2589
2858
|
function keyBuilder$4(luvio, params) {
|
|
2590
|
-
return keyBuilder$
|
|
2859
|
+
return keyBuilder$g(luvio, {
|
|
2591
2860
|
id: params.urlParams.fileBasedImportId
|
|
2592
2861
|
});
|
|
2593
2862
|
}
|
|
2594
2863
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
2595
|
-
getTypeCacheKeys$
|
|
2864
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
2596
2865
|
}
|
|
2597
2866
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
2598
2867
|
const { body } = response;
|
|
2599
2868
|
const key = keyBuilder$4(luvio, resourceParams);
|
|
2600
|
-
luvio.storeIngest(key, ingest$
|
|
2869
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
2601
2870
|
const snapshot = luvio.storeLookup({
|
|
2602
2871
|
recordId: key,
|
|
2603
2872
|
node: select$6(),
|
|
@@ -2643,14 +2912,14 @@ const getFileBasedDataImportById_ConfigPropertyMetadata = [
|
|
|
2643
2912
|
generateParamConfigMetadata('fileBasedImportId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2644
2913
|
];
|
|
2645
2914
|
const getFileBasedDataImportById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getFileBasedDataImportById_ConfigPropertyMetadata);
|
|
2646
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
2915
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getFileBasedDataImportById_ConfigPropertyMetadata);
|
|
2647
2916
|
function keyBuilder$3(luvio, config) {
|
|
2648
2917
|
const resourceParams = createResourceParams$4(config);
|
|
2649
2918
|
return keyBuilder$4(luvio, resourceParams);
|
|
2650
2919
|
}
|
|
2651
2920
|
function typeCheckConfig$4(untrustedConfig) {
|
|
2652
2921
|
const config = {};
|
|
2653
|
-
typeCheckConfig$
|
|
2922
|
+
typeCheckConfig$c(untrustedConfig, config, getFileBasedDataImportById_ConfigPropertyMetadata);
|
|
2654
2923
|
return config;
|
|
2655
2924
|
}
|
|
2656
2925
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -2699,7 +2968,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
2699
2968
|
});
|
|
2700
2969
|
}
|
|
2701
2970
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2702
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2971
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
2703
2972
|
}
|
|
2704
2973
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2705
2974
|
const { luvio, config } = context;
|
|
@@ -2725,7 +2994,7 @@ const getFileBasedDataImportByIdAdapterFactory = (luvio) => function fileBasedDa
|
|
|
2725
2994
|
};
|
|
2726
2995
|
const notifyChangeFactory = (luvio, options) => {
|
|
2727
2996
|
return function getConnectIndustriesFileBasedDataImportsByFileBasedImportIdNotifyChange(configs) {
|
|
2728
|
-
const keys = configs.map(c => keyBuilder$
|
|
2997
|
+
const keys = configs.map(c => keyBuilder$g(luvio, c));
|
|
2729
2998
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
2730
2999
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
2731
3000
|
const { key, record: val } = entries[i];
|
|
@@ -2734,11 +3003,11 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
2734
3003
|
.then((response) => {
|
|
2735
3004
|
return luvio.handleSuccessResponse(() => {
|
|
2736
3005
|
const { body } = response;
|
|
2737
|
-
luvio.storeIngest(key, ingest$
|
|
3006
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
2738
3007
|
return luvio.storeBroadcast();
|
|
2739
3008
|
}, () => {
|
|
2740
3009
|
const cache = new StoreKeyMap();
|
|
2741
|
-
getTypeCacheKeys$
|
|
3010
|
+
getTypeCacheKeys$7(cache, luvio, response.body);
|
|
2742
3011
|
return cache;
|
|
2743
3012
|
});
|
|
2744
3013
|
}, (error) => {
|
|
@@ -2791,7 +3060,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
2791
3060
|
for (let i = 0; i < input_fileBasedDataImportRepresentations.length; i++) {
|
|
2792
3061
|
const input_fileBasedDataImportRepresentations_item = input_fileBasedDataImportRepresentations[i];
|
|
2793
3062
|
let input_fileBasedDataImportRepresentations_item_id = input_fileBasedDataImportRepresentations_id + '__' + i;
|
|
2794
|
-
input_fileBasedDataImportRepresentations[i] = ingest$
|
|
3063
|
+
input_fileBasedDataImportRepresentations[i] = ingest$7(input_fileBasedDataImportRepresentations_item, {
|
|
2795
3064
|
fullPath: input_fileBasedDataImportRepresentations_item_id,
|
|
2796
3065
|
propertyName: i,
|
|
2797
3066
|
parent: {
|
|
@@ -2816,7 +3085,7 @@ const select$5 = function FileBasedDataImportByUserResultRepresentationSelect()
|
|
|
2816
3085
|
kind: 'Link',
|
|
2817
3086
|
plural: true,
|
|
2818
3087
|
required: false,
|
|
2819
|
-
fragment: select$
|
|
3088
|
+
fragment: select$n()
|
|
2820
3089
|
},
|
|
2821
3090
|
{
|
|
2822
3091
|
name: 'isAdminUser',
|
|
@@ -2883,7 +3152,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2883
3152
|
if (input.fileBasedDataImportRepresentations !== undefined) {
|
|
2884
3153
|
const input_fileBasedDataImportRepresentations_length = input.fileBasedDataImportRepresentations.length;
|
|
2885
3154
|
for (let i = 0; i < input_fileBasedDataImportRepresentations_length; i++) {
|
|
2886
|
-
getTypeCacheKeys$
|
|
3155
|
+
getTypeCacheKeys$7(rootKeySet, luvio, input.fileBasedDataImportRepresentations[i]);
|
|
2887
3156
|
}
|
|
2888
3157
|
}
|
|
2889
3158
|
}
|
|
@@ -2937,7 +3206,7 @@ function createResourceRequest$3(config) {
|
|
|
2937
3206
|
const adapterName$3 = 'getFileBasedDataImports';
|
|
2938
3207
|
const getFileBasedDataImports_ConfigPropertyMetadata = [];
|
|
2939
3208
|
const getFileBasedDataImports_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getFileBasedDataImports_ConfigPropertyMetadata);
|
|
2940
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
3209
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getFileBasedDataImports_ConfigPropertyMetadata);
|
|
2941
3210
|
function keyBuilder$1(luvio, config) {
|
|
2942
3211
|
createResourceParams$3(config);
|
|
2943
3212
|
return keyBuilder$2();
|
|
@@ -2992,7 +3261,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
2992
3261
|
});
|
|
2993
3262
|
}
|
|
2994
3263
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2995
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3264
|
+
return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
2996
3265
|
}
|
|
2997
3266
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2998
3267
|
const { luvio, config } = context;
|
|
@@ -3269,10 +3538,10 @@ const startAdvanceImport_ConfigPropertyMetadata = [
|
|
|
3269
3538
|
generateParamConfigMetadata('targetContext', true, 2 /* Body */, 0 /* String */),
|
|
3270
3539
|
];
|
|
3271
3540
|
const startAdvanceImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, startAdvanceImport_ConfigPropertyMetadata);
|
|
3272
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
3541
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(startAdvanceImport_ConfigPropertyMetadata);
|
|
3273
3542
|
function typeCheckConfig$2(untrustedConfig) {
|
|
3274
3543
|
const config = {};
|
|
3275
|
-
typeCheckConfig$
|
|
3544
|
+
typeCheckConfig$c(untrustedConfig, config, startAdvanceImport_ConfigPropertyMetadata);
|
|
3276
3545
|
const untrustedConfig_options = untrustedConfig.options;
|
|
3277
3546
|
const referenceImportOptionsInputRepresentationValidationError = validate$1(untrustedConfig_options);
|
|
3278
3547
|
if (referenceImportOptionsInputRepresentationValidationError === null) {
|
|
@@ -3366,10 +3635,10 @@ const startSimpleImport_ConfigPropertyMetadata = [
|
|
|
3366
3635
|
generateParamConfigMetadata('targetContext', true, 2 /* Body */, 0 /* String */),
|
|
3367
3636
|
];
|
|
3368
3637
|
const startSimpleImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, startSimpleImport_ConfigPropertyMetadata);
|
|
3369
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
3638
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(startSimpleImport_ConfigPropertyMetadata);
|
|
3370
3639
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3371
3640
|
const config = {};
|
|
3372
|
-
typeCheckConfig$
|
|
3641
|
+
typeCheckConfig$c(untrustedConfig, config, startSimpleImport_ConfigPropertyMetadata);
|
|
3373
3642
|
const untrustedConfig_options = untrustedConfig.options;
|
|
3374
3643
|
const referenceImportOptionsInputRepresentationValidationError = validate$1(untrustedConfig_options);
|
|
3375
3644
|
if (referenceImportOptionsInputRepresentationValidationError === null) {
|
|
@@ -3420,15 +3689,15 @@ const startSimpleImportAdapterFactory = (luvio) => {
|
|
|
3420
3689
|
};
|
|
3421
3690
|
|
|
3422
3691
|
function select(luvio, params) {
|
|
3423
|
-
return select$
|
|
3692
|
+
return select$n();
|
|
3424
3693
|
}
|
|
3425
3694
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
3426
|
-
getTypeCacheKeys$
|
|
3695
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
3427
3696
|
}
|
|
3428
3697
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
3429
3698
|
const { body } = response;
|
|
3430
3699
|
const key = keyBuilderFromType$1(luvio, body);
|
|
3431
|
-
luvio.storeIngest(key, ingest$
|
|
3700
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
3432
3701
|
const snapshot = luvio.storeLookup({
|
|
3433
3702
|
recordId: key,
|
|
3434
3703
|
node: select(),
|
|
@@ -3475,10 +3744,10 @@ const updateFileBasedDataImport_ConfigPropertyMetadata = [
|
|
|
3475
3744
|
generateParamConfigMetadata('unprocessedRecordCount', false, 2 /* Body */, 3 /* Integer */),
|
|
3476
3745
|
];
|
|
3477
3746
|
const updateFileBasedDataImport_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateFileBasedDataImport_ConfigPropertyMetadata);
|
|
3478
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
3747
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$c(updateFileBasedDataImport_ConfigPropertyMetadata);
|
|
3479
3748
|
function typeCheckConfig(untrustedConfig) {
|
|
3480
3749
|
const config = {};
|
|
3481
|
-
typeCheckConfig$
|
|
3750
|
+
typeCheckConfig$c(untrustedConfig, config, updateFileBasedDataImport_ConfigPropertyMetadata);
|
|
3482
3751
|
return config;
|
|
3483
3752
|
}
|
|
3484
3753
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -3526,6 +3795,7 @@ const updateFileBasedDataImportAdapterFactory = (luvio) => {
|
|
|
3526
3795
|
let createFileBasedDataImport;
|
|
3527
3796
|
let deleteFileBasedDataImport;
|
|
3528
3797
|
let getAllFields;
|
|
3798
|
+
let getAllSobjects;
|
|
3529
3799
|
let getCsvAutoMap;
|
|
3530
3800
|
let getCsvPreviewData;
|
|
3531
3801
|
let getDPEDefinitions;
|
|
@@ -3537,12 +3807,14 @@ let startSimpleImport;
|
|
|
3537
3807
|
let updateFileBasedDataImport;
|
|
3538
3808
|
// Imperative GET Adapters
|
|
3539
3809
|
let getAllFields_imperative;
|
|
3810
|
+
let getAllSobjects_imperative;
|
|
3540
3811
|
let getCsvAutoMap_imperative;
|
|
3541
3812
|
let getCsvPreviewData_imperative;
|
|
3542
3813
|
let getDPEDefinitions_imperative;
|
|
3543
3814
|
let getFileBasedDataImportById_imperative;
|
|
3544
3815
|
let getFileBasedDataImports_imperative;
|
|
3545
3816
|
const getAllFieldsMetadata = { apiFamily: 'fileBaseddataimport', name: 'getAllFields' };
|
|
3817
|
+
const getAllSobjectsMetadata = { apiFamily: 'fileBaseddataimport', name: 'getAllSobjects' };
|
|
3546
3818
|
const getCsvAutoMapMetadata = { apiFamily: 'fileBaseddataimport', name: 'getCsvAutoMap' };
|
|
3547
3819
|
const getCsvPreviewDataMetadata = { apiFamily: 'fileBaseddataimport', name: 'getCsvPreviewData' };
|
|
3548
3820
|
const getDPEDefinitionsMetadata = { apiFamily: 'fileBaseddataimport', name: 'getDPEDefinitions' };
|
|
@@ -3551,6 +3823,7 @@ const getFileBasedDataImportsMetadata = { apiFamily: 'fileBaseddataimport', name
|
|
|
3551
3823
|
function bindExportsTo(luvio) {
|
|
3552
3824
|
// LDS Adapters
|
|
3553
3825
|
const getAllFields_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllFields', getAllFieldsAdapterFactory), getAllFieldsMetadata);
|
|
3826
|
+
const getAllSobjects_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllSobjects', getAllSobjectsAdapterFactory), getAllSobjectsMetadata);
|
|
3554
3827
|
const getCsvAutoMap_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCsvAutoMap', getCsvAutoMapAdapterFactory), getCsvAutoMapMetadata);
|
|
3555
3828
|
const getCsvPreviewData_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCsvPreviewData', getCsvPreviewDataAdapterFactory), getCsvPreviewDataMetadata);
|
|
3556
3829
|
const getDPEDefinitions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDPEDefinitions', getDPEDefinitionsAdapterFactory), getDPEDefinitionsMetadata);
|
|
@@ -3562,8 +3835,9 @@ function bindExportsTo(luvio) {
|
|
|
3562
3835
|
}
|
|
3563
3836
|
return {
|
|
3564
3837
|
createFileBasedDataImport: unwrapSnapshotData(createFileBasedDataImportAdapterFactory),
|
|
3565
|
-
deleteFileBasedDataImport: createLDSAdapter(luvio, adapterName$
|
|
3838
|
+
deleteFileBasedDataImport: createLDSAdapter(luvio, adapterName$a, deleteFileBasedDataImportAdapterFactory),
|
|
3566
3839
|
getAllFields: createWireAdapterConstructor(luvio, getAllFields_ldsAdapter, getAllFieldsMetadata),
|
|
3840
|
+
getAllSobjects: createWireAdapterConstructor(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
|
|
3567
3841
|
getCsvAutoMap: createWireAdapterConstructor(luvio, getCsvAutoMap_ldsAdapter, getCsvAutoMapMetadata),
|
|
3568
3842
|
getCsvPreviewData: createWireAdapterConstructor(luvio, getCsvPreviewData_ldsAdapter, getCsvPreviewDataMetadata),
|
|
3569
3843
|
getDPEDefinitions: createWireAdapterConstructor(luvio, getDPEDefinitions_ldsAdapter, getDPEDefinitionsMetadata),
|
|
@@ -3575,6 +3849,7 @@ function bindExportsTo(luvio) {
|
|
|
3575
3849
|
updateFileBasedDataImport: unwrapSnapshotData(updateFileBasedDataImportAdapterFactory),
|
|
3576
3850
|
// Imperative GET Adapters
|
|
3577
3851
|
getAllFields_imperative: createImperativeAdapter(luvio, getAllFields_ldsAdapter, getAllFieldsMetadata),
|
|
3852
|
+
getAllSobjects_imperative: createImperativeAdapter(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
|
|
3578
3853
|
getCsvAutoMap_imperative: createImperativeAdapter(luvio, getCsvAutoMap_ldsAdapter, getCsvAutoMapMetadata),
|
|
3579
3854
|
getCsvPreviewData_imperative: createImperativeAdapter(luvio, getCsvPreviewData_ldsAdapter, getCsvPreviewDataMetadata),
|
|
3580
3855
|
getDPEDefinitions_imperative: createImperativeAdapter(luvio, getDPEDefinitions_ldsAdapter, getDPEDefinitionsMetadata),
|
|
@@ -3587,6 +3862,7 @@ withDefaultLuvio((luvio) => {
|
|
|
3587
3862
|
createFileBasedDataImport,
|
|
3588
3863
|
deleteFileBasedDataImport,
|
|
3589
3864
|
getAllFields,
|
|
3865
|
+
getAllSobjects,
|
|
3590
3866
|
getCsvAutoMap,
|
|
3591
3867
|
getCsvPreviewData,
|
|
3592
3868
|
getDPEDefinitions,
|
|
@@ -3597,6 +3873,7 @@ withDefaultLuvio((luvio) => {
|
|
|
3597
3873
|
startSimpleImport,
|
|
3598
3874
|
updateFileBasedDataImport,
|
|
3599
3875
|
getAllFields_imperative,
|
|
3876
|
+
getAllSobjects_imperative,
|
|
3600
3877
|
getCsvAutoMap_imperative,
|
|
3601
3878
|
getCsvPreviewData_imperative,
|
|
3602
3879
|
getDPEDefinitions_imperative,
|
|
@@ -3605,5 +3882,5 @@ withDefaultLuvio((luvio) => {
|
|
|
3605
3882
|
} = bindExportsTo(luvio));
|
|
3606
3883
|
});
|
|
3607
3884
|
|
|
3608
|
-
export { createFileBasedDataImport, deleteFileBasedDataImport, getAllFields, getAllFields_imperative, getCsvAutoMap, getCsvAutoMap_imperative, getCsvPreviewData, getCsvPreviewData_imperative, getDPEDefinitions, getDPEDefinitions_imperative, getFileBasedDataImportById, getFileBasedDataImportByIdNotifyChange, getFileBasedDataImportById_imperative, getFileBasedDataImports, getFileBasedDataImports_imperative, startAdvanceImport, startSimpleImport, updateFileBasedDataImport };
|
|
3609
|
-
// version: 1.
|
|
3885
|
+
export { createFileBasedDataImport, deleteFileBasedDataImport, getAllFields, getAllFields_imperative, getAllSobjects, getAllSobjects_imperative, getCsvAutoMap, getCsvAutoMap_imperative, getCsvPreviewData, getCsvPreviewData_imperative, getDPEDefinitions, getDPEDefinitions_imperative, getFileBasedDataImportById, getFileBasedDataImportByIdNotifyChange, getFileBasedDataImportById_imperative, getFileBasedDataImports, getFileBasedDataImports_imperative, startAdvanceImport, startSimpleImport, updateFileBasedDataImport };
|
|
3886
|
+
// version: 1.259.0-54a7811b5
|