@salesforce/lds-adapters-platform-data-seed 0.1.0-dev1
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/LICENSE.txt +82 -0
- package/dist/es/es2018/platform-data-seed.js +3388 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/generateData.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/adapters/getAuthCallbackStatus.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataSeedRequestStatus.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataSeedStatus.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/adapters/getDownloadPreSignedUrl.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/adapters/getOrgEntities.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/adapters/getOrgEntitiesDetails.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/adapters/getSalesforceOrgDetails.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/getUploadPreSignedUrl.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/adapters/loadDataToTargetOrg.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/adapters/migrateData.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +11 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/resources/getPlatformDataSeedV1DataSeedRequest.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedAuthCallbackStatusByCallback_id.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedFetchSalesforceEntities.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedFetchSalesforceObjectMetadata.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedGenerate.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedGeneratePresignedDownloadUrlByRequest_idAndFile_type.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedGeneratePresignedUploadUrl.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedLoadByDataseed_request_id.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedMigrate.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedOrgDetails.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postPlatformDataSeedV1DataSeedRequestByRequest_id.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/AuthCallbackStatusRepresentation.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/DataSeedRequestObjectRepresentation.d.ts +64 -0
- package/dist/es/es2018/types/src/generated/types/DataSeedRequestStatusOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/DataSeedStatusErrorRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DataSeedStatusOutputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/EntitiesDetailsInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/EntitiesDetailsOutputRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/EntitiesOutputRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/EntityDetailsChildResponseObject.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EntityDetailsFieldsResponseObject.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/EntityDetailsParentResponseObject.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/EntityDetailsResponseObject.d.ts +58 -0
- package/dist/es/es2018/types/src/generated/types/EntityResponseObject.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/LoadDataInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/MigrateDataInputRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/MigrateDataOutputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/OrgDetailsErrorRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/OrgDetailsObjectRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/OrgDetailsRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/OrgEntitiesInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/PicklistValueObject.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/PreSignedDownloadUrlResultRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/PreSignedUrlBadErrorRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/PreSignedUrlInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/PreSignedUrlResultRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/PreSignedUrlServerErrorRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +3455 -0
- package/src/raml/api.raml +898 -0
- package/src/raml/luvio.raml +84 -0
package/sfdc/index.js
ADDED
|
@@ -0,0 +1,3455 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* ATTENTION!
|
|
9
|
+
* THIS IS A GENERATED FILE FROM https://github.com/salesforce-experience-platform-emu/lds-lightning-platform
|
|
10
|
+
* If you would like to contribute to LDS, please follow the steps outlined in the git repo.
|
|
11
|
+
* Any changes made to this file in p4 will be automatically overwritten.
|
|
12
|
+
* *******************************************************************************************
|
|
13
|
+
*/
|
|
14
|
+
/* proxy-compat-disable */
|
|
15
|
+
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
|
+
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$b, typeCheckConfig as typeCheckConfig$b, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from 'force/luvioEngine';
|
|
18
|
+
|
|
19
|
+
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
|
+
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
21
|
+
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
|
+
/**
|
|
23
|
+
* Validates an adapter config is well-formed.
|
|
24
|
+
* @param config The config to validate.
|
|
25
|
+
* @param adapter The adapter validation configuration.
|
|
26
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
27
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
28
|
+
*/
|
|
29
|
+
function validateConfig(config, adapter, oneOf) {
|
|
30
|
+
const { displayName } = adapter;
|
|
31
|
+
const { required, optional, unsupported } = adapter.parameters;
|
|
32
|
+
if (config === undefined ||
|
|
33
|
+
required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
|
|
34
|
+
throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
|
|
35
|
+
}
|
|
36
|
+
if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
|
|
37
|
+
throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
|
|
38
|
+
}
|
|
39
|
+
if (unsupported !== undefined &&
|
|
40
|
+
unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
|
|
41
|
+
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
42
|
+
}
|
|
43
|
+
const supported = required.concat(optional);
|
|
44
|
+
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
45
|
+
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function untrustedIsObject(untrusted) {
|
|
49
|
+
return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
|
|
50
|
+
}
|
|
51
|
+
function areRequiredParametersPresent(config, configPropertyNames) {
|
|
52
|
+
return configPropertyNames.parameters.required.every(req => req in config);
|
|
53
|
+
}
|
|
54
|
+
const snapshotRefreshOptions = {
|
|
55
|
+
overrides: {
|
|
56
|
+
headers: {
|
|
57
|
+
'Cache-Control': 'no-cache',
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
62
|
+
return {
|
|
63
|
+
name,
|
|
64
|
+
required,
|
|
65
|
+
resourceType,
|
|
66
|
+
typeCheckShape,
|
|
67
|
+
isArrayShape,
|
|
68
|
+
coerceFn,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
72
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
73
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
74
|
+
return {
|
|
75
|
+
displayName,
|
|
76
|
+
parameters: {
|
|
77
|
+
required,
|
|
78
|
+
optional,
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
const keyPrefix = 'data-seed';
|
|
83
|
+
|
|
84
|
+
const { isArray: ArrayIsArray } = Array;
|
|
85
|
+
function equalsArray(a, b, equalsItem) {
|
|
86
|
+
const aLength = a.length;
|
|
87
|
+
const bLength = b.length;
|
|
88
|
+
if (aLength !== bLength) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
for (let i = 0; i < aLength; i++) {
|
|
92
|
+
if (equalsItem(a[i], b[i]) === false) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
function createLink(ref) {
|
|
99
|
+
return {
|
|
100
|
+
__ref: serializeStructuredKey(ref),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const TTL$7 = 200;
|
|
105
|
+
const VERSION$g = "c30968fc6807765eaa0ac390bf21f4b6";
|
|
106
|
+
function validate$g(obj, path = 'MigrateDataOutputRepresentation') {
|
|
107
|
+
const v_error = (() => {
|
|
108
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
110
|
+
}
|
|
111
|
+
const obj_correlation_id = obj.correlation_id;
|
|
112
|
+
const path_correlation_id = path + '.correlation_id';
|
|
113
|
+
if (typeof obj_correlation_id !== 'string') {
|
|
114
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlation_id + '" (at "' + path_correlation_id + '")');
|
|
115
|
+
}
|
|
116
|
+
const obj_request_id = obj.request_id;
|
|
117
|
+
const path_request_id = path + '.request_id';
|
|
118
|
+
if (typeof obj_request_id !== 'string') {
|
|
119
|
+
return new TypeError('Expected "string" but received "' + typeof obj_request_id + '" (at "' + path_request_id + '")');
|
|
120
|
+
}
|
|
121
|
+
const obj_response = obj.response;
|
|
122
|
+
const path_response = path + '.response';
|
|
123
|
+
if (typeof obj_response !== 'string') {
|
|
124
|
+
return new TypeError('Expected "string" but received "' + typeof obj_response + '" (at "' + path_response + '")');
|
|
125
|
+
}
|
|
126
|
+
})();
|
|
127
|
+
return v_error === undefined ? null : v_error;
|
|
128
|
+
}
|
|
129
|
+
const RepresentationType$8 = 'MigrateDataOutputRepresentation';
|
|
130
|
+
function keyBuilder$9(luvio, config) {
|
|
131
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.request_id;
|
|
132
|
+
}
|
|
133
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
134
|
+
const keyParams = {
|
|
135
|
+
request_id: object.request_id
|
|
136
|
+
};
|
|
137
|
+
return keyBuilder$9(luvio, keyParams);
|
|
138
|
+
}
|
|
139
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
140
|
+
return input;
|
|
141
|
+
}
|
|
142
|
+
const select$r = function MigrateDataOutputRepresentationSelect() {
|
|
143
|
+
return {
|
|
144
|
+
kind: 'Fragment',
|
|
145
|
+
version: VERSION$g,
|
|
146
|
+
private: [],
|
|
147
|
+
selections: [
|
|
148
|
+
{
|
|
149
|
+
name: 'correlation_id',
|
|
150
|
+
kind: 'Scalar'
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'request_id',
|
|
154
|
+
kind: 'Scalar'
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'response',
|
|
158
|
+
kind: 'Scalar'
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
function equals$g(existing, incoming) {
|
|
164
|
+
const existing_correlation_id = existing.correlation_id;
|
|
165
|
+
const incoming_correlation_id = incoming.correlation_id;
|
|
166
|
+
if (!(existing_correlation_id === incoming_correlation_id)) {
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
const existing_request_id = existing.request_id;
|
|
170
|
+
const incoming_request_id = incoming.request_id;
|
|
171
|
+
if (!(existing_request_id === incoming_request_id)) {
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
const existing_response = existing.response;
|
|
175
|
+
const incoming_response = incoming.response;
|
|
176
|
+
if (!(existing_response === incoming_response)) {
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
return true;
|
|
180
|
+
}
|
|
181
|
+
const ingest$8 = function MigrateDataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
182
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
183
|
+
const validateError = validate$g(input);
|
|
184
|
+
if (validateError !== null) {
|
|
185
|
+
throw validateError;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
189
|
+
const ttlToUse = TTL$7;
|
|
190
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "data-seed", VERSION$g, RepresentationType$8, equals$g);
|
|
191
|
+
return createLink(key);
|
|
192
|
+
};
|
|
193
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
194
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
195
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
196
|
+
rootKeySet.set(rootKey, {
|
|
197
|
+
namespace: keyPrefix,
|
|
198
|
+
representationName: RepresentationType$8,
|
|
199
|
+
mergeable: false
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function select$q(luvio, params) {
|
|
204
|
+
return select$r();
|
|
205
|
+
}
|
|
206
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
207
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
208
|
+
}
|
|
209
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
210
|
+
const { body } = response;
|
|
211
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
212
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
213
|
+
const snapshot = luvio.storeLookup({
|
|
214
|
+
recordId: key,
|
|
215
|
+
node: select$q(),
|
|
216
|
+
variables: {},
|
|
217
|
+
});
|
|
218
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
219
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
220
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
deepFreeze(snapshot.data);
|
|
224
|
+
return snapshot;
|
|
225
|
+
}
|
|
226
|
+
function createResourceRequest$a(config) {
|
|
227
|
+
const headers = {};
|
|
228
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
229
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
230
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
231
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
232
|
+
return {
|
|
233
|
+
baseUri: 'api.salesforce.com',
|
|
234
|
+
basePath: '/platform/data-seed/v1/data-seed-generate',
|
|
235
|
+
method: 'post',
|
|
236
|
+
body: config.body,
|
|
237
|
+
urlParams: {},
|
|
238
|
+
queryParams: {},
|
|
239
|
+
headers,
|
|
240
|
+
priority: 'normal',
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
const adapterName$a = 'generateData';
|
|
245
|
+
const generateData_ConfigPropertyMetadata = [
|
|
246
|
+
generateParamConfigMetadata('source_instance_url', true, 2 /* Body */, 0 /* String */),
|
|
247
|
+
generateParamConfigMetadata('source_access_token', true, 2 /* Body */, 0 /* String */),
|
|
248
|
+
generateParamConfigMetadata('target_instance_url', true, 2 /* Body */, 0 /* String */),
|
|
249
|
+
generateParamConfigMetadata('target_access_token', true, 2 /* Body */, 0 /* String */),
|
|
250
|
+
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
251
|
+
generateParamConfigMetadata('desc', true, 2 /* Body */, 0 /* String */),
|
|
252
|
+
generateParamConfigMetadata('config', true, 2 /* Body */, 0 /* String */),
|
|
253
|
+
generateParamConfigMetadata('mode', true, 2 /* Body */, 0 /* String */),
|
|
254
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
255
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
256
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
257
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
258
|
+
];
|
|
259
|
+
const generateData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, generateData_ConfigPropertyMetadata);
|
|
260
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(generateData_ConfigPropertyMetadata);
|
|
261
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
262
|
+
const config = {};
|
|
263
|
+
typeCheckConfig$b(untrustedConfig, config, generateData_ConfigPropertyMetadata);
|
|
264
|
+
return config;
|
|
265
|
+
}
|
|
266
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
267
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
271
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
272
|
+
}
|
|
273
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
274
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
return config;
|
|
278
|
+
}
|
|
279
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
280
|
+
const resourceParams = createResourceParams$a(config);
|
|
281
|
+
const request = createResourceRequest$a(resourceParams);
|
|
282
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
283
|
+
.then((response) => {
|
|
284
|
+
return luvio.handleSuccessResponse(() => {
|
|
285
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
286
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
287
|
+
}, () => {
|
|
288
|
+
const cache = new StoreKeyMap();
|
|
289
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
290
|
+
return cache;
|
|
291
|
+
});
|
|
292
|
+
}, (response) => {
|
|
293
|
+
deepFreeze(response);
|
|
294
|
+
throw response;
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
const generateDataAdapterFactory = (luvio) => {
|
|
298
|
+
return function generateData(untrustedConfig) {
|
|
299
|
+
const config = validateAdapterConfig$a(untrustedConfig, generateData_ConfigPropertyNames);
|
|
300
|
+
// Invalid or incomplete config
|
|
301
|
+
if (config === null) {
|
|
302
|
+
throw new Error('Invalid config for "generateData"');
|
|
303
|
+
}
|
|
304
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
const TTL$6 = 200;
|
|
309
|
+
const VERSION$f = "6dd0d28fef32df67c362e907a7004fd4";
|
|
310
|
+
function validate$f(obj, path = 'AuthCallbackStatusRepresentation') {
|
|
311
|
+
const v_error = (() => {
|
|
312
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
313
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
314
|
+
}
|
|
315
|
+
const obj_access_token = obj.access_token;
|
|
316
|
+
const path_access_token = path + '.access_token';
|
|
317
|
+
if (typeof obj_access_token !== 'string') {
|
|
318
|
+
return new TypeError('Expected "string" but received "' + typeof obj_access_token + '" (at "' + path_access_token + '")');
|
|
319
|
+
}
|
|
320
|
+
const obj_auth_code = obj.auth_code;
|
|
321
|
+
const path_auth_code = path + '.auth_code';
|
|
322
|
+
if (typeof obj_auth_code !== 'string') {
|
|
323
|
+
return new TypeError('Expected "string" but received "' + typeof obj_auth_code + '" (at "' + path_auth_code + '")');
|
|
324
|
+
}
|
|
325
|
+
const obj_callback_id = obj.callback_id;
|
|
326
|
+
const path_callback_id = path + '.callback_id';
|
|
327
|
+
if (typeof obj_callback_id !== 'string') {
|
|
328
|
+
return new TypeError('Expected "string" but received "' + typeof obj_callback_id + '" (at "' + path_callback_id + '")');
|
|
329
|
+
}
|
|
330
|
+
const obj_correlation_id = obj.correlation_id;
|
|
331
|
+
const path_correlation_id = path + '.correlation_id';
|
|
332
|
+
if (typeof obj_correlation_id !== 'string') {
|
|
333
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlation_id + '" (at "' + path_correlation_id + '")');
|
|
334
|
+
}
|
|
335
|
+
const obj_org_url = obj.org_url;
|
|
336
|
+
const path_org_url = path + '.org_url';
|
|
337
|
+
if (typeof obj_org_url !== 'string') {
|
|
338
|
+
return new TypeError('Expected "string" but received "' + typeof obj_org_url + '" (at "' + path_org_url + '")');
|
|
339
|
+
}
|
|
340
|
+
const obj_organization_id = obj.organization_id;
|
|
341
|
+
const path_organization_id = path + '.organization_id';
|
|
342
|
+
if (typeof obj_organization_id !== 'string') {
|
|
343
|
+
return new TypeError('Expected "string" but received "' + typeof obj_organization_id + '" (at "' + path_organization_id + '")');
|
|
344
|
+
}
|
|
345
|
+
})();
|
|
346
|
+
return v_error === undefined ? null : v_error;
|
|
347
|
+
}
|
|
348
|
+
const RepresentationType$7 = 'AuthCallbackStatusRepresentation';
|
|
349
|
+
function keyBuilder$8(luvio, config) {
|
|
350
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.correlation_id;
|
|
351
|
+
}
|
|
352
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
353
|
+
const keyParams = {
|
|
354
|
+
correlation_id: object.correlation_id
|
|
355
|
+
};
|
|
356
|
+
return keyBuilder$8(luvio, keyParams);
|
|
357
|
+
}
|
|
358
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
359
|
+
return input;
|
|
360
|
+
}
|
|
361
|
+
const select$p = function AuthCallbackStatusRepresentationSelect() {
|
|
362
|
+
return {
|
|
363
|
+
kind: 'Fragment',
|
|
364
|
+
version: VERSION$f,
|
|
365
|
+
private: [],
|
|
366
|
+
selections: [
|
|
367
|
+
{
|
|
368
|
+
name: 'access_token',
|
|
369
|
+
kind: 'Scalar'
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
name: 'auth_code',
|
|
373
|
+
kind: 'Scalar'
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
name: 'callback_id',
|
|
377
|
+
kind: 'Scalar'
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: 'correlation_id',
|
|
381
|
+
kind: 'Scalar'
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
name: 'org_url',
|
|
385
|
+
kind: 'Scalar'
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: 'organization_id',
|
|
389
|
+
kind: 'Scalar'
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
function equals$f(existing, incoming) {
|
|
395
|
+
const existing_access_token = existing.access_token;
|
|
396
|
+
const incoming_access_token = incoming.access_token;
|
|
397
|
+
if (!(existing_access_token === incoming_access_token)) {
|
|
398
|
+
return false;
|
|
399
|
+
}
|
|
400
|
+
const existing_auth_code = existing.auth_code;
|
|
401
|
+
const incoming_auth_code = incoming.auth_code;
|
|
402
|
+
if (!(existing_auth_code === incoming_auth_code)) {
|
|
403
|
+
return false;
|
|
404
|
+
}
|
|
405
|
+
const existing_callback_id = existing.callback_id;
|
|
406
|
+
const incoming_callback_id = incoming.callback_id;
|
|
407
|
+
if (!(existing_callback_id === incoming_callback_id)) {
|
|
408
|
+
return false;
|
|
409
|
+
}
|
|
410
|
+
const existing_correlation_id = existing.correlation_id;
|
|
411
|
+
const incoming_correlation_id = incoming.correlation_id;
|
|
412
|
+
if (!(existing_correlation_id === incoming_correlation_id)) {
|
|
413
|
+
return false;
|
|
414
|
+
}
|
|
415
|
+
const existing_org_url = existing.org_url;
|
|
416
|
+
const incoming_org_url = incoming.org_url;
|
|
417
|
+
if (!(existing_org_url === incoming_org_url)) {
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
420
|
+
const existing_organization_id = existing.organization_id;
|
|
421
|
+
const incoming_organization_id = incoming.organization_id;
|
|
422
|
+
if (!(existing_organization_id === incoming_organization_id)) {
|
|
423
|
+
return false;
|
|
424
|
+
}
|
|
425
|
+
return true;
|
|
426
|
+
}
|
|
427
|
+
const ingest$7 = function AuthCallbackStatusRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
428
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
429
|
+
const validateError = validate$f(input);
|
|
430
|
+
if (validateError !== null) {
|
|
431
|
+
throw validateError;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
const key = keyBuilderFromType$6(luvio, input);
|
|
435
|
+
const ttlToUse = TTL$6;
|
|
436
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "data-seed", VERSION$f, RepresentationType$7, equals$f);
|
|
437
|
+
return createLink(key);
|
|
438
|
+
};
|
|
439
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
440
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
441
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
442
|
+
rootKeySet.set(rootKey, {
|
|
443
|
+
namespace: keyPrefix,
|
|
444
|
+
representationName: RepresentationType$7,
|
|
445
|
+
mergeable: false
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
function select$o(luvio, params) {
|
|
450
|
+
return select$p();
|
|
451
|
+
}
|
|
452
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
453
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
454
|
+
}
|
|
455
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
456
|
+
const { body } = response;
|
|
457
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
458
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
459
|
+
const snapshot = luvio.storeLookup({
|
|
460
|
+
recordId: key,
|
|
461
|
+
node: select$o(),
|
|
462
|
+
variables: {},
|
|
463
|
+
});
|
|
464
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
465
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
466
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
deepFreeze(snapshot.data);
|
|
470
|
+
return snapshot;
|
|
471
|
+
}
|
|
472
|
+
function createResourceRequest$9(config) {
|
|
473
|
+
const headers = {};
|
|
474
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
475
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
476
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
477
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
478
|
+
return {
|
|
479
|
+
baseUri: 'api.salesforce.com',
|
|
480
|
+
basePath: '/platform/data-seed/v1/data-seed-auth-callback-status/' + config.urlParams.callback_id + '',
|
|
481
|
+
method: 'post',
|
|
482
|
+
body: null,
|
|
483
|
+
urlParams: config.urlParams,
|
|
484
|
+
queryParams: {},
|
|
485
|
+
headers,
|
|
486
|
+
priority: 'normal',
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
const adapterName$9 = 'getAuthCallbackStatus';
|
|
491
|
+
const getAuthCallbackStatus_ConfigPropertyMetadata = [
|
|
492
|
+
generateParamConfigMetadata('callback_id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
493
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
494
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
495
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
496
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
497
|
+
];
|
|
498
|
+
const getAuthCallbackStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getAuthCallbackStatus_ConfigPropertyMetadata);
|
|
499
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(getAuthCallbackStatus_ConfigPropertyMetadata);
|
|
500
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
501
|
+
const config = {};
|
|
502
|
+
typeCheckConfig$b(untrustedConfig, config, getAuthCallbackStatus_ConfigPropertyMetadata);
|
|
503
|
+
return config;
|
|
504
|
+
}
|
|
505
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
506
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
507
|
+
return null;
|
|
508
|
+
}
|
|
509
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
510
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
511
|
+
}
|
|
512
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
513
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
514
|
+
return null;
|
|
515
|
+
}
|
|
516
|
+
return config;
|
|
517
|
+
}
|
|
518
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
519
|
+
const resourceParams = createResourceParams$9(config);
|
|
520
|
+
const request = createResourceRequest$9(resourceParams);
|
|
521
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
522
|
+
.then((response) => {
|
|
523
|
+
return luvio.handleSuccessResponse(() => {
|
|
524
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
525
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
526
|
+
}, () => {
|
|
527
|
+
const cache = new StoreKeyMap();
|
|
528
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
529
|
+
return cache;
|
|
530
|
+
});
|
|
531
|
+
}, (response) => {
|
|
532
|
+
deepFreeze(response);
|
|
533
|
+
throw response;
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
const getAuthCallbackStatusAdapterFactory = (luvio) => {
|
|
537
|
+
return function getAuthCallbackStatus(untrustedConfig) {
|
|
538
|
+
const config = validateAdapterConfig$9(untrustedConfig, getAuthCallbackStatus_ConfigPropertyNames);
|
|
539
|
+
// Invalid or incomplete config
|
|
540
|
+
if (config === null) {
|
|
541
|
+
throw new Error('Invalid config for "getAuthCallbackStatus"');
|
|
542
|
+
}
|
|
543
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
const VERSION$e = "c99b6467d047bac3cc770bcf35963899";
|
|
548
|
+
function validate$e(obj, path = 'DataSeedRequestObjectRepresentation') {
|
|
549
|
+
const v_error = (() => {
|
|
550
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
551
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
552
|
+
}
|
|
553
|
+
const obj_created_by = obj.created_by;
|
|
554
|
+
const path_created_by = path + '.created_by';
|
|
555
|
+
if (typeof obj_created_by !== 'string') {
|
|
556
|
+
return new TypeError('Expected "string" but received "' + typeof obj_created_by + '" (at "' + path_created_by + '")');
|
|
557
|
+
}
|
|
558
|
+
const obj_description = obj.description;
|
|
559
|
+
const path_description = path + '.description';
|
|
560
|
+
if (typeof obj_description !== 'string') {
|
|
561
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
562
|
+
}
|
|
563
|
+
const obj_execution_end_time = obj.execution_end_time;
|
|
564
|
+
const path_execution_end_time = path + '.execution_end_time';
|
|
565
|
+
if (typeof obj_execution_end_time !== 'string') {
|
|
566
|
+
return new TypeError('Expected "string" but received "' + typeof obj_execution_end_time + '" (at "' + path_execution_end_time + '")');
|
|
567
|
+
}
|
|
568
|
+
const obj_execution_start_time = obj.execution_start_time;
|
|
569
|
+
const path_execution_start_time = path + '.execution_start_time';
|
|
570
|
+
if (typeof obj_execution_start_time !== 'string') {
|
|
571
|
+
return new TypeError('Expected "string" but received "' + typeof obj_execution_start_time + '" (at "' + path_execution_start_time + '")');
|
|
572
|
+
}
|
|
573
|
+
const obj_job_type = obj.job_type;
|
|
574
|
+
const path_job_type = path + '.job_type';
|
|
575
|
+
if (typeof obj_job_type !== 'string') {
|
|
576
|
+
return new TypeError('Expected "string" but received "' + typeof obj_job_type + '" (at "' + path_job_type + '")');
|
|
577
|
+
}
|
|
578
|
+
const obj_log_text = obj.log_text;
|
|
579
|
+
const path_log_text = path + '.log_text';
|
|
580
|
+
if (typeof obj_log_text !== 'string') {
|
|
581
|
+
return new TypeError('Expected "string" but received "' + typeof obj_log_text + '" (at "' + path_log_text + '")');
|
|
582
|
+
}
|
|
583
|
+
const obj_name = obj.name;
|
|
584
|
+
const path_name = path + '.name';
|
|
585
|
+
if (typeof obj_name !== 'string') {
|
|
586
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
587
|
+
}
|
|
588
|
+
const obj_organization_id = obj.organization_id;
|
|
589
|
+
const path_organization_id = path + '.organization_id';
|
|
590
|
+
if (typeof obj_organization_id !== 'string') {
|
|
591
|
+
return new TypeError('Expected "string" but received "' + typeof obj_organization_id + '" (at "' + path_organization_id + '")');
|
|
592
|
+
}
|
|
593
|
+
const obj_request_id = obj.request_id;
|
|
594
|
+
const path_request_id = path + '.request_id';
|
|
595
|
+
if (typeof obj_request_id !== 'string') {
|
|
596
|
+
return new TypeError('Expected "string" but received "' + typeof obj_request_id + '" (at "' + path_request_id + '")');
|
|
597
|
+
}
|
|
598
|
+
const obj_source_organization_id = obj.source_organization_id;
|
|
599
|
+
const path_source_organization_id = path + '.source_organization_id';
|
|
600
|
+
if (typeof obj_source_organization_id !== 'string') {
|
|
601
|
+
return new TypeError('Expected "string" but received "' + typeof obj_source_organization_id + '" (at "' + path_source_organization_id + '")');
|
|
602
|
+
}
|
|
603
|
+
const obj_status = obj.status;
|
|
604
|
+
const path_status = path + '.status';
|
|
605
|
+
if (typeof obj_status !== 'string') {
|
|
606
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
607
|
+
}
|
|
608
|
+
const obj_step = obj.step;
|
|
609
|
+
const path_step = path + '.step';
|
|
610
|
+
if (typeof obj_step !== 'string') {
|
|
611
|
+
return new TypeError('Expected "string" but received "' + typeof obj_step + '" (at "' + path_step + '")');
|
|
612
|
+
}
|
|
613
|
+
const obj_target_organization_id = obj.target_organization_id;
|
|
614
|
+
const path_target_organization_id = path + '.target_organization_id';
|
|
615
|
+
if (typeof obj_target_organization_id !== 'string') {
|
|
616
|
+
return new TypeError('Expected "string" but received "' + typeof obj_target_organization_id + '" (at "' + path_target_organization_id + '")');
|
|
617
|
+
}
|
|
618
|
+
})();
|
|
619
|
+
return v_error === undefined ? null : v_error;
|
|
620
|
+
}
|
|
621
|
+
const select$n = function DataSeedRequestObjectRepresentationSelect() {
|
|
622
|
+
return {
|
|
623
|
+
kind: 'Fragment',
|
|
624
|
+
version: VERSION$e,
|
|
625
|
+
private: [],
|
|
626
|
+
selections: [
|
|
627
|
+
{
|
|
628
|
+
name: 'created_by',
|
|
629
|
+
kind: 'Scalar'
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
name: 'description',
|
|
633
|
+
kind: 'Scalar'
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
name: 'execution_end_time',
|
|
637
|
+
kind: 'Scalar'
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
name: 'execution_start_time',
|
|
641
|
+
kind: 'Scalar'
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
name: 'job_type',
|
|
645
|
+
kind: 'Scalar'
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
name: 'log_text',
|
|
649
|
+
kind: 'Scalar'
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
name: 'name',
|
|
653
|
+
kind: 'Scalar'
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
name: 'organization_id',
|
|
657
|
+
kind: 'Scalar'
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
name: 'request_id',
|
|
661
|
+
kind: 'Scalar'
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
name: 'source_organization_id',
|
|
665
|
+
kind: 'Scalar'
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
name: 'status',
|
|
669
|
+
kind: 'Scalar'
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
name: 'step',
|
|
673
|
+
kind: 'Scalar'
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
name: 'target_organization_id',
|
|
677
|
+
kind: 'Scalar'
|
|
678
|
+
}
|
|
679
|
+
]
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
function equals$e(existing, incoming) {
|
|
683
|
+
const existing_created_by = existing.created_by;
|
|
684
|
+
const incoming_created_by = incoming.created_by;
|
|
685
|
+
if (!(existing_created_by === incoming_created_by)) {
|
|
686
|
+
return false;
|
|
687
|
+
}
|
|
688
|
+
const existing_description = existing.description;
|
|
689
|
+
const incoming_description = incoming.description;
|
|
690
|
+
if (!(existing_description === incoming_description)) {
|
|
691
|
+
return false;
|
|
692
|
+
}
|
|
693
|
+
const existing_execution_end_time = existing.execution_end_time;
|
|
694
|
+
const incoming_execution_end_time = incoming.execution_end_time;
|
|
695
|
+
if (!(existing_execution_end_time === incoming_execution_end_time)) {
|
|
696
|
+
return false;
|
|
697
|
+
}
|
|
698
|
+
const existing_execution_start_time = existing.execution_start_time;
|
|
699
|
+
const incoming_execution_start_time = incoming.execution_start_time;
|
|
700
|
+
if (!(existing_execution_start_time === incoming_execution_start_time)) {
|
|
701
|
+
return false;
|
|
702
|
+
}
|
|
703
|
+
const existing_job_type = existing.job_type;
|
|
704
|
+
const incoming_job_type = incoming.job_type;
|
|
705
|
+
if (!(existing_job_type === incoming_job_type)) {
|
|
706
|
+
return false;
|
|
707
|
+
}
|
|
708
|
+
const existing_log_text = existing.log_text;
|
|
709
|
+
const incoming_log_text = incoming.log_text;
|
|
710
|
+
if (!(existing_log_text === incoming_log_text)) {
|
|
711
|
+
return false;
|
|
712
|
+
}
|
|
713
|
+
const existing_name = existing.name;
|
|
714
|
+
const incoming_name = incoming.name;
|
|
715
|
+
if (!(existing_name === incoming_name)) {
|
|
716
|
+
return false;
|
|
717
|
+
}
|
|
718
|
+
const existing_organization_id = existing.organization_id;
|
|
719
|
+
const incoming_organization_id = incoming.organization_id;
|
|
720
|
+
if (!(existing_organization_id === incoming_organization_id)) {
|
|
721
|
+
return false;
|
|
722
|
+
}
|
|
723
|
+
const existing_request_id = existing.request_id;
|
|
724
|
+
const incoming_request_id = incoming.request_id;
|
|
725
|
+
if (!(existing_request_id === incoming_request_id)) {
|
|
726
|
+
return false;
|
|
727
|
+
}
|
|
728
|
+
const existing_source_organization_id = existing.source_organization_id;
|
|
729
|
+
const incoming_source_organization_id = incoming.source_organization_id;
|
|
730
|
+
if (!(existing_source_organization_id === incoming_source_organization_id)) {
|
|
731
|
+
return false;
|
|
732
|
+
}
|
|
733
|
+
const existing_status = existing.status;
|
|
734
|
+
const incoming_status = incoming.status;
|
|
735
|
+
if (!(existing_status === incoming_status)) {
|
|
736
|
+
return false;
|
|
737
|
+
}
|
|
738
|
+
const existing_step = existing.step;
|
|
739
|
+
const incoming_step = incoming.step;
|
|
740
|
+
if (!(existing_step === incoming_step)) {
|
|
741
|
+
return false;
|
|
742
|
+
}
|
|
743
|
+
const existing_target_organization_id = existing.target_organization_id;
|
|
744
|
+
const incoming_target_organization_id = incoming.target_organization_id;
|
|
745
|
+
if (!(existing_target_organization_id === incoming_target_organization_id)) {
|
|
746
|
+
return false;
|
|
747
|
+
}
|
|
748
|
+
return true;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
const TTL$5 = 200;
|
|
752
|
+
const VERSION$d = "7fb1a6b558a60e18929e558f8d902ab3";
|
|
753
|
+
function validate$d(obj, path = 'DataSeedRequestStatusOutputRepresentation') {
|
|
754
|
+
const v_error = (() => {
|
|
755
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
756
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
757
|
+
}
|
|
758
|
+
const obj_correlation_id = obj.correlation_id;
|
|
759
|
+
const path_correlation_id = path + '.correlation_id';
|
|
760
|
+
if (typeof obj_correlation_id !== 'string') {
|
|
761
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlation_id + '" (at "' + path_correlation_id + '")');
|
|
762
|
+
}
|
|
763
|
+
const obj_data = obj.data;
|
|
764
|
+
const path_data = path + '.data';
|
|
765
|
+
const referencepath_dataValidationError = validate$e(obj_data, path_data);
|
|
766
|
+
if (referencepath_dataValidationError !== null) {
|
|
767
|
+
let message = 'Object doesn\'t match DataSeedRequestObjectRepresentation (at "' + path_data + '")\n';
|
|
768
|
+
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
769
|
+
return new TypeError(message);
|
|
770
|
+
}
|
|
771
|
+
})();
|
|
772
|
+
return v_error === undefined ? null : v_error;
|
|
773
|
+
}
|
|
774
|
+
const RepresentationType$6 = 'DataSeedRequestStatusOutputRepresentation';
|
|
775
|
+
function keyBuilder$7(luvio, config) {
|
|
776
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.correlation_id;
|
|
777
|
+
}
|
|
778
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
779
|
+
const keyParams = {
|
|
780
|
+
correlation_id: object.correlation_id
|
|
781
|
+
};
|
|
782
|
+
return keyBuilder$7(luvio, keyParams);
|
|
783
|
+
}
|
|
784
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
785
|
+
return input;
|
|
786
|
+
}
|
|
787
|
+
const select$m = function DataSeedRequestStatusOutputRepresentationSelect() {
|
|
788
|
+
const { selections: DataSeedRequestObjectRepresentation__selections, opaque: DataSeedRequestObjectRepresentation__opaque, } = select$n();
|
|
789
|
+
return {
|
|
790
|
+
kind: 'Fragment',
|
|
791
|
+
version: VERSION$d,
|
|
792
|
+
private: [],
|
|
793
|
+
selections: [
|
|
794
|
+
{
|
|
795
|
+
name: 'correlation_id',
|
|
796
|
+
kind: 'Scalar'
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
name: 'data',
|
|
800
|
+
kind: 'Object',
|
|
801
|
+
selections: DataSeedRequestObjectRepresentation__selections
|
|
802
|
+
}
|
|
803
|
+
]
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
function equals$d(existing, incoming) {
|
|
807
|
+
const existing_correlation_id = existing.correlation_id;
|
|
808
|
+
const incoming_correlation_id = incoming.correlation_id;
|
|
809
|
+
if (!(existing_correlation_id === incoming_correlation_id)) {
|
|
810
|
+
return false;
|
|
811
|
+
}
|
|
812
|
+
const existing_data = existing.data;
|
|
813
|
+
const incoming_data = incoming.data;
|
|
814
|
+
if (!(equals$e(existing_data, incoming_data))) {
|
|
815
|
+
return false;
|
|
816
|
+
}
|
|
817
|
+
return true;
|
|
818
|
+
}
|
|
819
|
+
const ingest$6 = function DataSeedRequestStatusOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
820
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
821
|
+
const validateError = validate$d(input);
|
|
822
|
+
if (validateError !== null) {
|
|
823
|
+
throw validateError;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
827
|
+
const ttlToUse = TTL$5;
|
|
828
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "data-seed", VERSION$d, RepresentationType$6, equals$d);
|
|
829
|
+
return createLink(key);
|
|
830
|
+
};
|
|
831
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
832
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
833
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
834
|
+
rootKeySet.set(rootKey, {
|
|
835
|
+
namespace: keyPrefix,
|
|
836
|
+
representationName: RepresentationType$6,
|
|
837
|
+
mergeable: false
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
function select$l(luvio, params) {
|
|
842
|
+
return select$m();
|
|
843
|
+
}
|
|
844
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
845
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
846
|
+
}
|
|
847
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
848
|
+
const { body } = response;
|
|
849
|
+
const key = keyBuilderFromType$5(luvio, body);
|
|
850
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
851
|
+
const snapshot = luvio.storeLookup({
|
|
852
|
+
recordId: key,
|
|
853
|
+
node: select$l(),
|
|
854
|
+
variables: {},
|
|
855
|
+
});
|
|
856
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
857
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
858
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
deepFreeze(snapshot.data);
|
|
862
|
+
return snapshot;
|
|
863
|
+
}
|
|
864
|
+
function createResourceRequest$8(config) {
|
|
865
|
+
const headers = {};
|
|
866
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
867
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
868
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
869
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
870
|
+
return {
|
|
871
|
+
baseUri: 'api.salesforce.com',
|
|
872
|
+
basePath: '/platform/data-seed/v1/data-seed-request/' + config.urlParams.request_id + '',
|
|
873
|
+
method: 'post',
|
|
874
|
+
body: null,
|
|
875
|
+
urlParams: config.urlParams,
|
|
876
|
+
queryParams: {},
|
|
877
|
+
headers,
|
|
878
|
+
priority: 'normal',
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
const adapterName$8 = 'getDataSeedRequestStatus';
|
|
883
|
+
const getDataSeedRequestStatus_ConfigPropertyMetadata = [
|
|
884
|
+
generateParamConfigMetadata('request_id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
885
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
886
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
887
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
888
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
889
|
+
];
|
|
890
|
+
const getDataSeedRequestStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getDataSeedRequestStatus_ConfigPropertyMetadata);
|
|
891
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(getDataSeedRequestStatus_ConfigPropertyMetadata);
|
|
892
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
893
|
+
const config = {};
|
|
894
|
+
typeCheckConfig$b(untrustedConfig, config, getDataSeedRequestStatus_ConfigPropertyMetadata);
|
|
895
|
+
return config;
|
|
896
|
+
}
|
|
897
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
898
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
899
|
+
return null;
|
|
900
|
+
}
|
|
901
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
902
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
903
|
+
}
|
|
904
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
905
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
906
|
+
return null;
|
|
907
|
+
}
|
|
908
|
+
return config;
|
|
909
|
+
}
|
|
910
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
911
|
+
const resourceParams = createResourceParams$8(config);
|
|
912
|
+
const request = createResourceRequest$8(resourceParams);
|
|
913
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
914
|
+
.then((response) => {
|
|
915
|
+
return luvio.handleSuccessResponse(() => {
|
|
916
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
917
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
918
|
+
}, () => {
|
|
919
|
+
const cache = new StoreKeyMap();
|
|
920
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
921
|
+
return cache;
|
|
922
|
+
});
|
|
923
|
+
}, (response) => {
|
|
924
|
+
deepFreeze(response);
|
|
925
|
+
throw response;
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
const getDataSeedRequestStatusAdapterFactory = (luvio) => {
|
|
929
|
+
return function getDataSeedRequestStatus(untrustedConfig) {
|
|
930
|
+
const config = validateAdapterConfig$8(untrustedConfig, getDataSeedRequestStatus_ConfigPropertyNames);
|
|
931
|
+
// Invalid or incomplete config
|
|
932
|
+
if (config === null) {
|
|
933
|
+
throw new Error('Invalid config for "getDataSeedRequestStatus"');
|
|
934
|
+
}
|
|
935
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
const VERSION$c = "732685344ea5e037b5b3da3c38ad04eb";
|
|
940
|
+
function validate$c(obj, path = 'DataSeedStatusOutputRepresentation') {
|
|
941
|
+
const v_error = (() => {
|
|
942
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
943
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
944
|
+
}
|
|
945
|
+
const obj_correlation_id = obj.correlation_id;
|
|
946
|
+
const path_correlation_id = path + '.correlation_id';
|
|
947
|
+
if (typeof obj_correlation_id !== 'string') {
|
|
948
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlation_id + '" (at "' + path_correlation_id + '")');
|
|
949
|
+
}
|
|
950
|
+
const obj_data = obj.data;
|
|
951
|
+
const path_data = path + '.data';
|
|
952
|
+
if (!ArrayIsArray(obj_data)) {
|
|
953
|
+
return new TypeError('Expected "array" but received "' + typeof obj_data + '" (at "' + path_data + '")');
|
|
954
|
+
}
|
|
955
|
+
for (let i = 0; i < obj_data.length; i++) {
|
|
956
|
+
const obj_data_item = obj_data[i];
|
|
957
|
+
const path_data_item = path_data + '[' + i + ']';
|
|
958
|
+
const referencepath_data_itemValidationError = validate$e(obj_data_item, path_data_item);
|
|
959
|
+
if (referencepath_data_itemValidationError !== null) {
|
|
960
|
+
let message = 'Object doesn\'t match DataSeedRequestObjectRepresentation (at "' + path_data_item + '")\n';
|
|
961
|
+
message += referencepath_data_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
962
|
+
return new TypeError(message);
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
})();
|
|
966
|
+
return v_error === undefined ? null : v_error;
|
|
967
|
+
}
|
|
968
|
+
const RepresentationType$5 = 'DataSeedStatusOutputRepresentation';
|
|
969
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
970
|
+
return input;
|
|
971
|
+
}
|
|
972
|
+
const select$k = function DataSeedStatusOutputRepresentationSelect() {
|
|
973
|
+
const { selections: DataSeedRequestObjectRepresentation__selections, opaque: DataSeedRequestObjectRepresentation__opaque, } = select$n();
|
|
974
|
+
return {
|
|
975
|
+
kind: 'Fragment',
|
|
976
|
+
version: VERSION$c,
|
|
977
|
+
private: [],
|
|
978
|
+
selections: [
|
|
979
|
+
{
|
|
980
|
+
name: 'correlation_id',
|
|
981
|
+
kind: 'Scalar'
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
name: 'data',
|
|
985
|
+
kind: 'Object',
|
|
986
|
+
plural: true,
|
|
987
|
+
selections: DataSeedRequestObjectRepresentation__selections
|
|
988
|
+
}
|
|
989
|
+
]
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
function equals$c(existing, incoming) {
|
|
993
|
+
const existing_correlation_id = existing.correlation_id;
|
|
994
|
+
const incoming_correlation_id = incoming.correlation_id;
|
|
995
|
+
if (!(existing_correlation_id === incoming_correlation_id)) {
|
|
996
|
+
return false;
|
|
997
|
+
}
|
|
998
|
+
const existing_data = existing.data;
|
|
999
|
+
const incoming_data = incoming.data;
|
|
1000
|
+
const equals_data_items = equalsArray(existing_data, incoming_data, (existing_data_item, incoming_data_item) => {
|
|
1001
|
+
if (!(equals$e(existing_data_item, incoming_data_item))) {
|
|
1002
|
+
return false;
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
if (equals_data_items === false) {
|
|
1006
|
+
return false;
|
|
1007
|
+
}
|
|
1008
|
+
return true;
|
|
1009
|
+
}
|
|
1010
|
+
const ingest$5 = function DataSeedStatusOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1011
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1012
|
+
const validateError = validate$c(input);
|
|
1013
|
+
if (validateError !== null) {
|
|
1014
|
+
throw validateError;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
const key = path.fullPath;
|
|
1018
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1019
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "data-seed", VERSION$c, RepresentationType$5, equals$c);
|
|
1020
|
+
return createLink(key);
|
|
1021
|
+
};
|
|
1022
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
1023
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1024
|
+
const rootKey = fullPathFactory();
|
|
1025
|
+
rootKeySet.set(rootKey, {
|
|
1026
|
+
namespace: keyPrefix,
|
|
1027
|
+
representationName: RepresentationType$5,
|
|
1028
|
+
mergeable: false
|
|
1029
|
+
});
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
function select$j(luvio, params) {
|
|
1033
|
+
return select$k();
|
|
1034
|
+
}
|
|
1035
|
+
function keyBuilder$6(luvio, params) {
|
|
1036
|
+
return keyPrefix + '::DataSeedStatusOutputRepresentation:(' + 'xClientTraceId:' + params.headers.xClientTraceId + ',' + 'xSalesforceRegion:' + params.headers.xSalesforceRegion + ',' + 'orgUrl:' + params.headers.orgUrl + ',' + 'accessToken:' + params.headers.accessToken + ')';
|
|
1037
|
+
}
|
|
1038
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
1039
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
1040
|
+
}
|
|
1041
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
1042
|
+
const { body } = response;
|
|
1043
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
1044
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
1045
|
+
const snapshot = luvio.storeLookup({
|
|
1046
|
+
recordId: key,
|
|
1047
|
+
node: select$j(),
|
|
1048
|
+
variables: {},
|
|
1049
|
+
}, snapshotRefresh);
|
|
1050
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1051
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1052
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
deepFreeze(snapshot.data);
|
|
1056
|
+
return snapshot;
|
|
1057
|
+
}
|
|
1058
|
+
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
1059
|
+
const key = keyBuilder$6(luvio, params);
|
|
1060
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1061
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
1062
|
+
return errorSnapshot;
|
|
1063
|
+
}
|
|
1064
|
+
function createResourceRequest$7(config) {
|
|
1065
|
+
const headers = {};
|
|
1066
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
1067
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
1068
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
1069
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
1070
|
+
return {
|
|
1071
|
+
baseUri: 'api.salesforce.com',
|
|
1072
|
+
basePath: '/platform/data-seed/v1/data-seed-request',
|
|
1073
|
+
method: 'get',
|
|
1074
|
+
body: null,
|
|
1075
|
+
urlParams: {},
|
|
1076
|
+
queryParams: {},
|
|
1077
|
+
headers,
|
|
1078
|
+
priority: 'normal',
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
const adapterName$7 = 'getDataSeedStatus';
|
|
1083
|
+
const getDataSeedStatus_ConfigPropertyMetadata = [
|
|
1084
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
1085
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
1086
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
1087
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
1088
|
+
];
|
|
1089
|
+
const getDataSeedStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getDataSeedStatus_ConfigPropertyMetadata);
|
|
1090
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(getDataSeedStatus_ConfigPropertyMetadata);
|
|
1091
|
+
function keyBuilder$5(luvio, config) {
|
|
1092
|
+
const resourceParams = createResourceParams$7(config);
|
|
1093
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
1094
|
+
}
|
|
1095
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
1096
|
+
const config = {};
|
|
1097
|
+
typeCheckConfig$b(untrustedConfig, config, getDataSeedStatus_ConfigPropertyMetadata);
|
|
1098
|
+
return config;
|
|
1099
|
+
}
|
|
1100
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
1101
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1102
|
+
return null;
|
|
1103
|
+
}
|
|
1104
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1105
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1106
|
+
}
|
|
1107
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
1108
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1109
|
+
return null;
|
|
1110
|
+
}
|
|
1111
|
+
return config;
|
|
1112
|
+
}
|
|
1113
|
+
function adapterFragment(luvio, config) {
|
|
1114
|
+
createResourceParams$7(config);
|
|
1115
|
+
return select$j();
|
|
1116
|
+
}
|
|
1117
|
+
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
1118
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
1119
|
+
config,
|
|
1120
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1121
|
+
});
|
|
1122
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1123
|
+
}
|
|
1124
|
+
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
1125
|
+
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
1126
|
+
config,
|
|
1127
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1128
|
+
});
|
|
1129
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1130
|
+
}
|
|
1131
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
1132
|
+
const resourceParams = createResourceParams$7(config);
|
|
1133
|
+
const request = createResourceRequest$7(resourceParams);
|
|
1134
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1135
|
+
.then((response) => {
|
|
1136
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
1137
|
+
const cache = new StoreKeyMap();
|
|
1138
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
1139
|
+
return cache;
|
|
1140
|
+
});
|
|
1141
|
+
}, (response) => {
|
|
1142
|
+
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1146
|
+
return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
1147
|
+
}
|
|
1148
|
+
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1149
|
+
const { luvio, config } = context;
|
|
1150
|
+
const selector = {
|
|
1151
|
+
recordId: keyBuilder$5(luvio, config),
|
|
1152
|
+
node: adapterFragment(luvio, config),
|
|
1153
|
+
variables: {},
|
|
1154
|
+
};
|
|
1155
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1156
|
+
config,
|
|
1157
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1158
|
+
});
|
|
1159
|
+
return cacheSnapshot;
|
|
1160
|
+
}
|
|
1161
|
+
const getDataSeedStatusAdapterFactory = (luvio) => function dataSeed__getDataSeedStatus(untrustedConfig, requestContext) {
|
|
1162
|
+
const config = validateAdapterConfig$7(untrustedConfig, getDataSeedStatus_ConfigPropertyNames);
|
|
1163
|
+
// Invalid or incomplete config
|
|
1164
|
+
if (config === null) {
|
|
1165
|
+
return null;
|
|
1166
|
+
}
|
|
1167
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1168
|
+
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
const TTL$4 = 200;
|
|
1172
|
+
const VERSION$b = "fb30035fb4e1163f7b85f84bc6799870";
|
|
1173
|
+
function validate$b(obj, path = 'PreSignedDownloadUrlResultRepresentation') {
|
|
1174
|
+
const v_error = (() => {
|
|
1175
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1176
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1177
|
+
}
|
|
1178
|
+
const obj_correlation_id = obj.correlation_id;
|
|
1179
|
+
const path_correlation_id = path + '.correlation_id';
|
|
1180
|
+
if (typeof obj_correlation_id !== 'string') {
|
|
1181
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlation_id + '" (at "' + path_correlation_id + '")');
|
|
1182
|
+
}
|
|
1183
|
+
const obj_url = obj.url;
|
|
1184
|
+
const path_url = path + '.url';
|
|
1185
|
+
if (typeof obj_url !== 'string') {
|
|
1186
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
1187
|
+
}
|
|
1188
|
+
})();
|
|
1189
|
+
return v_error === undefined ? null : v_error;
|
|
1190
|
+
}
|
|
1191
|
+
const RepresentationType$4 = 'PreSignedDownloadUrlResultRepresentation';
|
|
1192
|
+
function keyBuilder$4(luvio, config) {
|
|
1193
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.correlation_id;
|
|
1194
|
+
}
|
|
1195
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
1196
|
+
const keyParams = {
|
|
1197
|
+
correlation_id: object.correlation_id
|
|
1198
|
+
};
|
|
1199
|
+
return keyBuilder$4(luvio, keyParams);
|
|
1200
|
+
}
|
|
1201
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
1202
|
+
return input;
|
|
1203
|
+
}
|
|
1204
|
+
const select$i = function PreSignedDownloadUrlResultRepresentationSelect() {
|
|
1205
|
+
return {
|
|
1206
|
+
kind: 'Fragment',
|
|
1207
|
+
version: VERSION$b,
|
|
1208
|
+
private: [],
|
|
1209
|
+
selections: [
|
|
1210
|
+
{
|
|
1211
|
+
name: 'correlation_id',
|
|
1212
|
+
kind: 'Scalar'
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
name: 'url',
|
|
1216
|
+
kind: 'Scalar'
|
|
1217
|
+
}
|
|
1218
|
+
]
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
1221
|
+
function equals$b(existing, incoming) {
|
|
1222
|
+
const existing_correlation_id = existing.correlation_id;
|
|
1223
|
+
const incoming_correlation_id = incoming.correlation_id;
|
|
1224
|
+
if (!(existing_correlation_id === incoming_correlation_id)) {
|
|
1225
|
+
return false;
|
|
1226
|
+
}
|
|
1227
|
+
const existing_url = existing.url;
|
|
1228
|
+
const incoming_url = incoming.url;
|
|
1229
|
+
if (!(existing_url === incoming_url)) {
|
|
1230
|
+
return false;
|
|
1231
|
+
}
|
|
1232
|
+
return true;
|
|
1233
|
+
}
|
|
1234
|
+
const ingest$4 = function PreSignedDownloadUrlResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1235
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1236
|
+
const validateError = validate$b(input);
|
|
1237
|
+
if (validateError !== null) {
|
|
1238
|
+
throw validateError;
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
1242
|
+
const ttlToUse = TTL$4;
|
|
1243
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "data-seed", VERSION$b, RepresentationType$4, equals$b);
|
|
1244
|
+
return createLink(key);
|
|
1245
|
+
};
|
|
1246
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
1247
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1248
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
1249
|
+
rootKeySet.set(rootKey, {
|
|
1250
|
+
namespace: keyPrefix,
|
|
1251
|
+
representationName: RepresentationType$4,
|
|
1252
|
+
mergeable: false
|
|
1253
|
+
});
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
function select$h(luvio, params) {
|
|
1257
|
+
return select$i();
|
|
1258
|
+
}
|
|
1259
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
1260
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1261
|
+
}
|
|
1262
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
1263
|
+
const { body } = response;
|
|
1264
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
1265
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1266
|
+
const snapshot = luvio.storeLookup({
|
|
1267
|
+
recordId: key,
|
|
1268
|
+
node: select$h(),
|
|
1269
|
+
variables: {},
|
|
1270
|
+
});
|
|
1271
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1272
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1273
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
deepFreeze(snapshot.data);
|
|
1277
|
+
return snapshot;
|
|
1278
|
+
}
|
|
1279
|
+
function createResourceRequest$6(config) {
|
|
1280
|
+
const headers = {};
|
|
1281
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
1282
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
1283
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
1284
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
1285
|
+
return {
|
|
1286
|
+
baseUri: 'api.salesforce.com',
|
|
1287
|
+
basePath: '/platform/data-seed/v1/data-seed-generate-presigned-download-url/' + config.urlParams.file_type + '/' + config.urlParams.request_id + '',
|
|
1288
|
+
method: 'post',
|
|
1289
|
+
body: null,
|
|
1290
|
+
urlParams: config.urlParams,
|
|
1291
|
+
queryParams: {},
|
|
1292
|
+
headers,
|
|
1293
|
+
priority: 'normal',
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
const adapterName$6 = 'getDownloadPreSignedUrl';
|
|
1298
|
+
const getDownloadPreSignedUrl_ConfigPropertyMetadata = [
|
|
1299
|
+
generateParamConfigMetadata('request_id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1300
|
+
generateParamConfigMetadata('file_type', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1301
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
1302
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
1303
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
1304
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
1305
|
+
];
|
|
1306
|
+
const getDownloadPreSignedUrl_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDownloadPreSignedUrl_ConfigPropertyMetadata);
|
|
1307
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(getDownloadPreSignedUrl_ConfigPropertyMetadata);
|
|
1308
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
1309
|
+
const config = {};
|
|
1310
|
+
typeCheckConfig$b(untrustedConfig, config, getDownloadPreSignedUrl_ConfigPropertyMetadata);
|
|
1311
|
+
return config;
|
|
1312
|
+
}
|
|
1313
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
1314
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1315
|
+
return null;
|
|
1316
|
+
}
|
|
1317
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1318
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1319
|
+
}
|
|
1320
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
1321
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1322
|
+
return null;
|
|
1323
|
+
}
|
|
1324
|
+
return config;
|
|
1325
|
+
}
|
|
1326
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
1327
|
+
const resourceParams = createResourceParams$6(config);
|
|
1328
|
+
const request = createResourceRequest$6(resourceParams);
|
|
1329
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1330
|
+
.then((response) => {
|
|
1331
|
+
return luvio.handleSuccessResponse(() => {
|
|
1332
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
1333
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1334
|
+
}, () => {
|
|
1335
|
+
const cache = new StoreKeyMap();
|
|
1336
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
1337
|
+
return cache;
|
|
1338
|
+
});
|
|
1339
|
+
}, (response) => {
|
|
1340
|
+
deepFreeze(response);
|
|
1341
|
+
throw response;
|
|
1342
|
+
});
|
|
1343
|
+
}
|
|
1344
|
+
const getDownloadPreSignedUrlAdapterFactory = (luvio) => {
|
|
1345
|
+
return function getDownloadPreSignedUrl(untrustedConfig) {
|
|
1346
|
+
const config = validateAdapterConfig$6(untrustedConfig, getDownloadPreSignedUrl_ConfigPropertyNames);
|
|
1347
|
+
// Invalid or incomplete config
|
|
1348
|
+
if (config === null) {
|
|
1349
|
+
throw new Error('Invalid config for "getDownloadPreSignedUrl"');
|
|
1350
|
+
}
|
|
1351
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
1352
|
+
};
|
|
1353
|
+
};
|
|
1354
|
+
|
|
1355
|
+
const VERSION$a = "d05acb56ab5bac9800fbedd0ee17a85b";
|
|
1356
|
+
function validate$a(obj, path = 'EntityResponseObject') {
|
|
1357
|
+
const v_error = (() => {
|
|
1358
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1359
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1360
|
+
}
|
|
1361
|
+
const obj_objectAPIName = obj.objectAPIName;
|
|
1362
|
+
const path_objectAPIName = path + '.objectAPIName';
|
|
1363
|
+
if (typeof obj_objectAPIName !== 'string') {
|
|
1364
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectAPIName + '" (at "' + path_objectAPIName + '")');
|
|
1365
|
+
}
|
|
1366
|
+
const obj_objectName = obj.objectName;
|
|
1367
|
+
const path_objectName = path + '.objectName';
|
|
1368
|
+
if (typeof obj_objectName !== 'string') {
|
|
1369
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
1370
|
+
}
|
|
1371
|
+
const obj_type = obj.type;
|
|
1372
|
+
const path_type = path + '.type';
|
|
1373
|
+
if (typeof obj_type !== 'string') {
|
|
1374
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1375
|
+
}
|
|
1376
|
+
})();
|
|
1377
|
+
return v_error === undefined ? null : v_error;
|
|
1378
|
+
}
|
|
1379
|
+
const select$g = function EntityResponseObjectSelect() {
|
|
1380
|
+
return {
|
|
1381
|
+
kind: 'Fragment',
|
|
1382
|
+
version: VERSION$a,
|
|
1383
|
+
private: [],
|
|
1384
|
+
selections: [
|
|
1385
|
+
{
|
|
1386
|
+
name: 'objectAPIName',
|
|
1387
|
+
kind: 'Scalar'
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
name: 'objectName',
|
|
1391
|
+
kind: 'Scalar'
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
name: 'type',
|
|
1395
|
+
kind: 'Scalar'
|
|
1396
|
+
}
|
|
1397
|
+
]
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
function equals$a(existing, incoming) {
|
|
1401
|
+
const existing_objectAPIName = existing.objectAPIName;
|
|
1402
|
+
const incoming_objectAPIName = incoming.objectAPIName;
|
|
1403
|
+
if (!(existing_objectAPIName === incoming_objectAPIName)) {
|
|
1404
|
+
return false;
|
|
1405
|
+
}
|
|
1406
|
+
const existing_objectName = existing.objectName;
|
|
1407
|
+
const incoming_objectName = incoming.objectName;
|
|
1408
|
+
if (!(existing_objectName === incoming_objectName)) {
|
|
1409
|
+
return false;
|
|
1410
|
+
}
|
|
1411
|
+
const existing_type = existing.type;
|
|
1412
|
+
const incoming_type = incoming.type;
|
|
1413
|
+
if (!(existing_type === incoming_type)) {
|
|
1414
|
+
return false;
|
|
1415
|
+
}
|
|
1416
|
+
return true;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
const TTL$3 = 1000;
|
|
1420
|
+
const VERSION$9 = "d6223d7170b81572755f7276496527ee";
|
|
1421
|
+
function validate$9(obj, path = 'EntitiesOutputRepresentation') {
|
|
1422
|
+
const v_error = (() => {
|
|
1423
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1424
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1425
|
+
}
|
|
1426
|
+
const obj_correlation_id = obj.correlation_id;
|
|
1427
|
+
const path_correlation_id = path + '.correlation_id';
|
|
1428
|
+
if (typeof obj_correlation_id !== 'string') {
|
|
1429
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlation_id + '" (at "' + path_correlation_id + '")');
|
|
1430
|
+
}
|
|
1431
|
+
const obj_entities = obj.entities;
|
|
1432
|
+
const path_entities = path + '.entities';
|
|
1433
|
+
if (!ArrayIsArray(obj_entities)) {
|
|
1434
|
+
return new TypeError('Expected "array" but received "' + typeof obj_entities + '" (at "' + path_entities + '")');
|
|
1435
|
+
}
|
|
1436
|
+
for (let i = 0; i < obj_entities.length; i++) {
|
|
1437
|
+
const obj_entities_item = obj_entities[i];
|
|
1438
|
+
const path_entities_item = path_entities + '[' + i + ']';
|
|
1439
|
+
const referencepath_entities_itemValidationError = validate$a(obj_entities_item, path_entities_item);
|
|
1440
|
+
if (referencepath_entities_itemValidationError !== null) {
|
|
1441
|
+
let message = 'Object doesn\'t match EntityResponseObject (at "' + path_entities_item + '")\n';
|
|
1442
|
+
message += referencepath_entities_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1443
|
+
return new TypeError(message);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
})();
|
|
1447
|
+
return v_error === undefined ? null : v_error;
|
|
1448
|
+
}
|
|
1449
|
+
const RepresentationType$3 = 'EntitiesOutputRepresentation';
|
|
1450
|
+
function keyBuilder$3(luvio, config) {
|
|
1451
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.correlation_id;
|
|
1452
|
+
}
|
|
1453
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
1454
|
+
const keyParams = {
|
|
1455
|
+
correlation_id: object.correlation_id
|
|
1456
|
+
};
|
|
1457
|
+
return keyBuilder$3(luvio, keyParams);
|
|
1458
|
+
}
|
|
1459
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1460
|
+
return input;
|
|
1461
|
+
}
|
|
1462
|
+
const select$f = function EntitiesOutputRepresentationSelect() {
|
|
1463
|
+
const { selections: EntityResponseObject__selections, opaque: EntityResponseObject__opaque, } = select$g();
|
|
1464
|
+
return {
|
|
1465
|
+
kind: 'Fragment',
|
|
1466
|
+
version: VERSION$9,
|
|
1467
|
+
private: [],
|
|
1468
|
+
selections: [
|
|
1469
|
+
{
|
|
1470
|
+
name: 'correlation_id',
|
|
1471
|
+
kind: 'Scalar'
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
name: 'entities',
|
|
1475
|
+
kind: 'Object',
|
|
1476
|
+
plural: true,
|
|
1477
|
+
selections: EntityResponseObject__selections
|
|
1478
|
+
}
|
|
1479
|
+
]
|
|
1480
|
+
};
|
|
1481
|
+
};
|
|
1482
|
+
function equals$9(existing, incoming) {
|
|
1483
|
+
const existing_correlation_id = existing.correlation_id;
|
|
1484
|
+
const incoming_correlation_id = incoming.correlation_id;
|
|
1485
|
+
if (!(existing_correlation_id === incoming_correlation_id)) {
|
|
1486
|
+
return false;
|
|
1487
|
+
}
|
|
1488
|
+
const existing_entities = existing.entities;
|
|
1489
|
+
const incoming_entities = incoming.entities;
|
|
1490
|
+
const equals_entities_items = equalsArray(existing_entities, incoming_entities, (existing_entities_item, incoming_entities_item) => {
|
|
1491
|
+
if (!(equals$a(existing_entities_item, incoming_entities_item))) {
|
|
1492
|
+
return false;
|
|
1493
|
+
}
|
|
1494
|
+
});
|
|
1495
|
+
if (equals_entities_items === false) {
|
|
1496
|
+
return false;
|
|
1497
|
+
}
|
|
1498
|
+
return true;
|
|
1499
|
+
}
|
|
1500
|
+
const ingest$3 = function EntitiesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1501
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1502
|
+
const validateError = validate$9(input);
|
|
1503
|
+
if (validateError !== null) {
|
|
1504
|
+
throw validateError;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
1508
|
+
const ttlToUse = TTL$3;
|
|
1509
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "data-seed", VERSION$9, RepresentationType$3, equals$9);
|
|
1510
|
+
return createLink(key);
|
|
1511
|
+
};
|
|
1512
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
1513
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1514
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1515
|
+
rootKeySet.set(rootKey, {
|
|
1516
|
+
namespace: keyPrefix,
|
|
1517
|
+
representationName: RepresentationType$3,
|
|
1518
|
+
mergeable: false
|
|
1519
|
+
});
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
function select$e(luvio, params) {
|
|
1523
|
+
return select$f();
|
|
1524
|
+
}
|
|
1525
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1526
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1527
|
+
}
|
|
1528
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
1529
|
+
const { body } = response;
|
|
1530
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
1531
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
1532
|
+
const snapshot = luvio.storeLookup({
|
|
1533
|
+
recordId: key,
|
|
1534
|
+
node: select$e(),
|
|
1535
|
+
variables: {},
|
|
1536
|
+
});
|
|
1537
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1538
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1539
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
deepFreeze(snapshot.data);
|
|
1543
|
+
return snapshot;
|
|
1544
|
+
}
|
|
1545
|
+
function createResourceRequest$5(config) {
|
|
1546
|
+
const headers = {};
|
|
1547
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
1548
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
1549
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
1550
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
1551
|
+
return {
|
|
1552
|
+
baseUri: 'api.salesforce.com',
|
|
1553
|
+
basePath: '/platform/data-seed/v1/data-seed-fetch-salesforce-entities',
|
|
1554
|
+
method: 'post',
|
|
1555
|
+
body: config.body,
|
|
1556
|
+
urlParams: {},
|
|
1557
|
+
queryParams: {},
|
|
1558
|
+
headers,
|
|
1559
|
+
priority: 'normal',
|
|
1560
|
+
};
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
const adapterName$5 = 'getOrgEntities';
|
|
1564
|
+
const getOrgEntities_ConfigPropertyMetadata = [
|
|
1565
|
+
generateParamConfigMetadata('source_instance_url', true, 2 /* Body */, 0 /* String */),
|
|
1566
|
+
generateParamConfigMetadata('source_access_token', true, 2 /* Body */, 0 /* String */),
|
|
1567
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
1568
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
1569
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
1570
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
1571
|
+
];
|
|
1572
|
+
const getOrgEntities_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getOrgEntities_ConfigPropertyMetadata);
|
|
1573
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getOrgEntities_ConfigPropertyMetadata);
|
|
1574
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
1575
|
+
const config = {};
|
|
1576
|
+
typeCheckConfig$b(untrustedConfig, config, getOrgEntities_ConfigPropertyMetadata);
|
|
1577
|
+
return config;
|
|
1578
|
+
}
|
|
1579
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
1580
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1581
|
+
return null;
|
|
1582
|
+
}
|
|
1583
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1584
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1585
|
+
}
|
|
1586
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
1587
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1588
|
+
return null;
|
|
1589
|
+
}
|
|
1590
|
+
return config;
|
|
1591
|
+
}
|
|
1592
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
1593
|
+
const resourceParams = createResourceParams$5(config);
|
|
1594
|
+
const request = createResourceRequest$5(resourceParams);
|
|
1595
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1596
|
+
.then((response) => {
|
|
1597
|
+
return luvio.handleSuccessResponse(() => {
|
|
1598
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
1599
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1600
|
+
}, () => {
|
|
1601
|
+
const cache = new StoreKeyMap();
|
|
1602
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
1603
|
+
return cache;
|
|
1604
|
+
});
|
|
1605
|
+
}, (response) => {
|
|
1606
|
+
deepFreeze(response);
|
|
1607
|
+
throw response;
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
const getOrgEntitiesAdapterFactory = (luvio) => {
|
|
1611
|
+
return function getOrgEntities(untrustedConfig) {
|
|
1612
|
+
const config = validateAdapterConfig$5(untrustedConfig, getOrgEntities_ConfigPropertyNames);
|
|
1613
|
+
// Invalid or incomplete config
|
|
1614
|
+
if (config === null) {
|
|
1615
|
+
throw new Error('Invalid config for "getOrgEntities"');
|
|
1616
|
+
}
|
|
1617
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
1618
|
+
};
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
const VERSION$8 = "6c7162c1ac0af13e0958aba84495c152";
|
|
1622
|
+
function validate$8(obj, path = 'EntityDetailsChildResponseObject') {
|
|
1623
|
+
const v_error = (() => {
|
|
1624
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1625
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1626
|
+
}
|
|
1627
|
+
if (obj.childObjectLabel !== undefined) {
|
|
1628
|
+
const obj_childObjectLabel = obj.childObjectLabel;
|
|
1629
|
+
const path_childObjectLabel = path + '.childObjectLabel';
|
|
1630
|
+
if (typeof obj_childObjectLabel !== 'string') {
|
|
1631
|
+
return new TypeError('Expected "string" but received "' + typeof obj_childObjectLabel + '" (at "' + path_childObjectLabel + '")');
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
if (obj.childObjectName !== undefined) {
|
|
1635
|
+
const obj_childObjectName = obj.childObjectName;
|
|
1636
|
+
const path_childObjectName = path + '.childObjectName';
|
|
1637
|
+
if (typeof obj_childObjectName !== 'string') {
|
|
1638
|
+
return new TypeError('Expected "string" but received "' + typeof obj_childObjectName + '" (at "' + path_childObjectName + '")');
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
if (obj.childObjectRelationshipField !== undefined) {
|
|
1642
|
+
const obj_childObjectRelationshipField = obj.childObjectRelationshipField;
|
|
1643
|
+
const path_childObjectRelationshipField = path + '.childObjectRelationshipField';
|
|
1644
|
+
if (typeof obj_childObjectRelationshipField !== 'string') {
|
|
1645
|
+
return new TypeError('Expected "string" but received "' + typeof obj_childObjectRelationshipField + '" (at "' + path_childObjectRelationshipField + '")');
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
if (obj.childObjectType !== undefined) {
|
|
1649
|
+
const obj_childObjectType = obj.childObjectType;
|
|
1650
|
+
const path_childObjectType = path + '.childObjectType';
|
|
1651
|
+
if (typeof obj_childObjectType !== 'string') {
|
|
1652
|
+
return new TypeError('Expected "string" but received "' + typeof obj_childObjectType + '" (at "' + path_childObjectType + '")');
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
})();
|
|
1656
|
+
return v_error === undefined ? null : v_error;
|
|
1657
|
+
}
|
|
1658
|
+
const select$d = function EntityDetailsChildResponseObjectSelect() {
|
|
1659
|
+
return {
|
|
1660
|
+
kind: 'Fragment',
|
|
1661
|
+
version: VERSION$8,
|
|
1662
|
+
private: [],
|
|
1663
|
+
selections: [
|
|
1664
|
+
{
|
|
1665
|
+
name: 'childObjectLabel',
|
|
1666
|
+
kind: 'Scalar',
|
|
1667
|
+
required: false
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
name: 'childObjectName',
|
|
1671
|
+
kind: 'Scalar',
|
|
1672
|
+
required: false
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
name: 'childObjectRelationshipField',
|
|
1676
|
+
kind: 'Scalar',
|
|
1677
|
+
required: false
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
name: 'childObjectType',
|
|
1681
|
+
kind: 'Scalar',
|
|
1682
|
+
required: false
|
|
1683
|
+
}
|
|
1684
|
+
]
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
1687
|
+
function equals$8(existing, incoming) {
|
|
1688
|
+
const existing_childObjectLabel = existing.childObjectLabel;
|
|
1689
|
+
const incoming_childObjectLabel = incoming.childObjectLabel;
|
|
1690
|
+
// if at least one of these optionals is defined
|
|
1691
|
+
if (existing_childObjectLabel !== undefined || incoming_childObjectLabel !== undefined) {
|
|
1692
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1693
|
+
// not equal
|
|
1694
|
+
if (existing_childObjectLabel === undefined || incoming_childObjectLabel === undefined) {
|
|
1695
|
+
return false;
|
|
1696
|
+
}
|
|
1697
|
+
if (!(existing_childObjectLabel === incoming_childObjectLabel)) {
|
|
1698
|
+
return false;
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
const existing_childObjectName = existing.childObjectName;
|
|
1702
|
+
const incoming_childObjectName = incoming.childObjectName;
|
|
1703
|
+
// if at least one of these optionals is defined
|
|
1704
|
+
if (existing_childObjectName !== undefined || incoming_childObjectName !== undefined) {
|
|
1705
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1706
|
+
// not equal
|
|
1707
|
+
if (existing_childObjectName === undefined || incoming_childObjectName === undefined) {
|
|
1708
|
+
return false;
|
|
1709
|
+
}
|
|
1710
|
+
if (!(existing_childObjectName === incoming_childObjectName)) {
|
|
1711
|
+
return false;
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
const existing_childObjectRelationshipField = existing.childObjectRelationshipField;
|
|
1715
|
+
const incoming_childObjectRelationshipField = incoming.childObjectRelationshipField;
|
|
1716
|
+
// if at least one of these optionals is defined
|
|
1717
|
+
if (existing_childObjectRelationshipField !== undefined || incoming_childObjectRelationshipField !== undefined) {
|
|
1718
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1719
|
+
// not equal
|
|
1720
|
+
if (existing_childObjectRelationshipField === undefined || incoming_childObjectRelationshipField === undefined) {
|
|
1721
|
+
return false;
|
|
1722
|
+
}
|
|
1723
|
+
if (!(existing_childObjectRelationshipField === incoming_childObjectRelationshipField)) {
|
|
1724
|
+
return false;
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
const existing_childObjectType = existing.childObjectType;
|
|
1728
|
+
const incoming_childObjectType = incoming.childObjectType;
|
|
1729
|
+
// if at least one of these optionals is defined
|
|
1730
|
+
if (existing_childObjectType !== undefined || incoming_childObjectType !== undefined) {
|
|
1731
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1732
|
+
// not equal
|
|
1733
|
+
if (existing_childObjectType === undefined || incoming_childObjectType === undefined) {
|
|
1734
|
+
return false;
|
|
1735
|
+
}
|
|
1736
|
+
if (!(existing_childObjectType === incoming_childObjectType)) {
|
|
1737
|
+
return false;
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
return true;
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
const VERSION$7 = "5b5a2be5ae5b9604c6e5fb7d904e3275";
|
|
1744
|
+
function validate$7(obj, path = 'PicklistValueObject') {
|
|
1745
|
+
const v_error = (() => {
|
|
1746
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1747
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1748
|
+
}
|
|
1749
|
+
if (obj.active !== undefined) {
|
|
1750
|
+
const obj_active = obj.active;
|
|
1751
|
+
const path_active = path + '.active';
|
|
1752
|
+
if (typeof obj_active !== 'boolean') {
|
|
1753
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_active + '" (at "' + path_active + '")');
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
if (obj.defaultValue !== undefined) {
|
|
1757
|
+
const obj_defaultValue = obj.defaultValue;
|
|
1758
|
+
const path_defaultValue = path + '.defaultValue';
|
|
1759
|
+
if (typeof obj_defaultValue !== 'boolean') {
|
|
1760
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
if (obj.label !== undefined) {
|
|
1764
|
+
const obj_label = obj.label;
|
|
1765
|
+
const path_label = path + '.label';
|
|
1766
|
+
let obj_label_union0 = null;
|
|
1767
|
+
const obj_label_union0_error = (() => {
|
|
1768
|
+
if (typeof obj_label !== 'string') {
|
|
1769
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1770
|
+
}
|
|
1771
|
+
})();
|
|
1772
|
+
if (obj_label_union0_error != null) {
|
|
1773
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
1774
|
+
}
|
|
1775
|
+
let obj_label_union1 = null;
|
|
1776
|
+
const obj_label_union1_error = (() => {
|
|
1777
|
+
if (obj_label !== null) {
|
|
1778
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1779
|
+
}
|
|
1780
|
+
})();
|
|
1781
|
+
if (obj_label_union1_error != null) {
|
|
1782
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
1783
|
+
}
|
|
1784
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
1785
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
1786
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1787
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1788
|
+
return new TypeError(message);
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
if (obj.validFor !== undefined) {
|
|
1792
|
+
const obj_validFor = obj.validFor;
|
|
1793
|
+
const path_validFor = path + '.validFor';
|
|
1794
|
+
let obj_validFor_union0 = null;
|
|
1795
|
+
const obj_validFor_union0_error = (() => {
|
|
1796
|
+
if (typeof obj_validFor !== 'string') {
|
|
1797
|
+
return new TypeError('Expected "string" but received "' + typeof obj_validFor + '" (at "' + path_validFor + '")');
|
|
1798
|
+
}
|
|
1799
|
+
})();
|
|
1800
|
+
if (obj_validFor_union0_error != null) {
|
|
1801
|
+
obj_validFor_union0 = obj_validFor_union0_error.message;
|
|
1802
|
+
}
|
|
1803
|
+
let obj_validFor_union1 = null;
|
|
1804
|
+
const obj_validFor_union1_error = (() => {
|
|
1805
|
+
if (obj_validFor !== null) {
|
|
1806
|
+
return new TypeError('Expected "null" but received "' + typeof obj_validFor + '" (at "' + path_validFor + '")');
|
|
1807
|
+
}
|
|
1808
|
+
})();
|
|
1809
|
+
if (obj_validFor_union1_error != null) {
|
|
1810
|
+
obj_validFor_union1 = obj_validFor_union1_error.message;
|
|
1811
|
+
}
|
|
1812
|
+
if (obj_validFor_union0 && obj_validFor_union1) {
|
|
1813
|
+
let message = 'Object doesn\'t match union (at "' + path_validFor + '")';
|
|
1814
|
+
message += '\n' + obj_validFor_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1815
|
+
message += '\n' + obj_validFor_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1816
|
+
return new TypeError(message);
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
if (obj.value !== undefined) {
|
|
1820
|
+
const obj_value = obj.value;
|
|
1821
|
+
const path_value = path + '.value';
|
|
1822
|
+
let obj_value_union0 = null;
|
|
1823
|
+
const obj_value_union0_error = (() => {
|
|
1824
|
+
if (typeof obj_value !== 'string') {
|
|
1825
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
1826
|
+
}
|
|
1827
|
+
})();
|
|
1828
|
+
if (obj_value_union0_error != null) {
|
|
1829
|
+
obj_value_union0 = obj_value_union0_error.message;
|
|
1830
|
+
}
|
|
1831
|
+
let obj_value_union1 = null;
|
|
1832
|
+
const obj_value_union1_error = (() => {
|
|
1833
|
+
if (obj_value !== null) {
|
|
1834
|
+
return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
1835
|
+
}
|
|
1836
|
+
})();
|
|
1837
|
+
if (obj_value_union1_error != null) {
|
|
1838
|
+
obj_value_union1 = obj_value_union1_error.message;
|
|
1839
|
+
}
|
|
1840
|
+
if (obj_value_union0 && obj_value_union1) {
|
|
1841
|
+
let message = 'Object doesn\'t match union (at "' + path_value + '")';
|
|
1842
|
+
message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1843
|
+
message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1844
|
+
return new TypeError(message);
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
})();
|
|
1848
|
+
return v_error === undefined ? null : v_error;
|
|
1849
|
+
}
|
|
1850
|
+
const select$c = function PicklistValueObjectSelect() {
|
|
1851
|
+
return {
|
|
1852
|
+
kind: 'Fragment',
|
|
1853
|
+
version: VERSION$7,
|
|
1854
|
+
private: [],
|
|
1855
|
+
selections: [
|
|
1856
|
+
{
|
|
1857
|
+
name: 'active',
|
|
1858
|
+
kind: 'Scalar',
|
|
1859
|
+
required: false
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
name: 'defaultValue',
|
|
1863
|
+
kind: 'Scalar',
|
|
1864
|
+
required: false
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
name: 'label',
|
|
1868
|
+
kind: 'Scalar',
|
|
1869
|
+
required: false
|
|
1870
|
+
},
|
|
1871
|
+
{
|
|
1872
|
+
name: 'validFor',
|
|
1873
|
+
kind: 'Scalar',
|
|
1874
|
+
required: false
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
name: 'value',
|
|
1878
|
+
kind: 'Scalar',
|
|
1879
|
+
required: false
|
|
1880
|
+
}
|
|
1881
|
+
]
|
|
1882
|
+
};
|
|
1883
|
+
};
|
|
1884
|
+
function equals$7(existing, incoming) {
|
|
1885
|
+
const existing_active = existing.active;
|
|
1886
|
+
const incoming_active = incoming.active;
|
|
1887
|
+
// if at least one of these optionals is defined
|
|
1888
|
+
if (existing_active !== undefined || incoming_active !== undefined) {
|
|
1889
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1890
|
+
// not equal
|
|
1891
|
+
if (existing_active === undefined || incoming_active === undefined) {
|
|
1892
|
+
return false;
|
|
1893
|
+
}
|
|
1894
|
+
if (!(existing_active === incoming_active)) {
|
|
1895
|
+
return false;
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
const existing_defaultValue = existing.defaultValue;
|
|
1899
|
+
const incoming_defaultValue = incoming.defaultValue;
|
|
1900
|
+
// if at least one of these optionals is defined
|
|
1901
|
+
if (existing_defaultValue !== undefined || incoming_defaultValue !== undefined) {
|
|
1902
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1903
|
+
// not equal
|
|
1904
|
+
if (existing_defaultValue === undefined || incoming_defaultValue === undefined) {
|
|
1905
|
+
return false;
|
|
1906
|
+
}
|
|
1907
|
+
if (!(existing_defaultValue === incoming_defaultValue)) {
|
|
1908
|
+
return false;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
const existing_label = existing.label;
|
|
1912
|
+
const incoming_label = incoming.label;
|
|
1913
|
+
// if at least one of these optionals is defined
|
|
1914
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
1915
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1916
|
+
// not equal
|
|
1917
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
1918
|
+
return false;
|
|
1919
|
+
}
|
|
1920
|
+
if (!(existing_label === incoming_label)) {
|
|
1921
|
+
return false;
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
const existing_validFor = existing.validFor;
|
|
1925
|
+
const incoming_validFor = incoming.validFor;
|
|
1926
|
+
// if at least one of these optionals is defined
|
|
1927
|
+
if (existing_validFor !== undefined || incoming_validFor !== undefined) {
|
|
1928
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1929
|
+
// not equal
|
|
1930
|
+
if (existing_validFor === undefined || incoming_validFor === undefined) {
|
|
1931
|
+
return false;
|
|
1932
|
+
}
|
|
1933
|
+
if (!(existing_validFor === incoming_validFor)) {
|
|
1934
|
+
return false;
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
const existing_value = existing.value;
|
|
1938
|
+
const incoming_value = incoming.value;
|
|
1939
|
+
// if at least one of these optionals is defined
|
|
1940
|
+
if (existing_value !== undefined || incoming_value !== undefined) {
|
|
1941
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1942
|
+
// not equal
|
|
1943
|
+
if (existing_value === undefined || incoming_value === undefined) {
|
|
1944
|
+
return false;
|
|
1945
|
+
}
|
|
1946
|
+
if (!(existing_value === incoming_value)) {
|
|
1947
|
+
return false;
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
return true;
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
const VERSION$6 = "f2ffbd5716e4948a457fe4b976613f2c";
|
|
1954
|
+
function validate$6(obj, path = 'EntityDetailsFieldsResponseObject') {
|
|
1955
|
+
const v_error = (() => {
|
|
1956
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1957
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1958
|
+
}
|
|
1959
|
+
if (obj.dataType !== undefined) {
|
|
1960
|
+
const obj_dataType = obj.dataType;
|
|
1961
|
+
const path_dataType = path + '.dataType';
|
|
1962
|
+
if (typeof obj_dataType !== 'string') {
|
|
1963
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
if (obj.fieldLabel !== undefined) {
|
|
1967
|
+
const obj_fieldLabel = obj.fieldLabel;
|
|
1968
|
+
const path_fieldLabel = path + '.fieldLabel';
|
|
1969
|
+
if (typeof obj_fieldLabel !== 'string') {
|
|
1970
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldLabel + '" (at "' + path_fieldLabel + '")');
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
if (obj.fieldName !== undefined) {
|
|
1974
|
+
const obj_fieldName = obj.fieldName;
|
|
1975
|
+
const path_fieldName = path + '.fieldName';
|
|
1976
|
+
if (typeof obj_fieldName !== 'string') {
|
|
1977
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
if (obj.picklistValues !== undefined) {
|
|
1981
|
+
const obj_picklistValues = obj.picklistValues;
|
|
1982
|
+
const path_picklistValues = path + '.picklistValues';
|
|
1983
|
+
if (!ArrayIsArray(obj_picklistValues)) {
|
|
1984
|
+
return new TypeError('Expected "array" but received "' + typeof obj_picklistValues + '" (at "' + path_picklistValues + '")');
|
|
1985
|
+
}
|
|
1986
|
+
for (let i = 0; i < obj_picklistValues.length; i++) {
|
|
1987
|
+
const obj_picklistValues_item = obj_picklistValues[i];
|
|
1988
|
+
const path_picklistValues_item = path_picklistValues + '[' + i + ']';
|
|
1989
|
+
const referencepath_picklistValues_itemValidationError = validate$7(obj_picklistValues_item, path_picklistValues_item);
|
|
1990
|
+
if (referencepath_picklistValues_itemValidationError !== null) {
|
|
1991
|
+
let message = 'Object doesn\'t match PicklistValueObject (at "' + path_picklistValues_item + '")\n';
|
|
1992
|
+
message += referencepath_picklistValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1993
|
+
return new TypeError(message);
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
})();
|
|
1998
|
+
return v_error === undefined ? null : v_error;
|
|
1999
|
+
}
|
|
2000
|
+
const select$b = function EntityDetailsFieldsResponseObjectSelect() {
|
|
2001
|
+
const { selections: PicklistValueObject__selections, opaque: PicklistValueObject__opaque, } = select$c();
|
|
2002
|
+
return {
|
|
2003
|
+
kind: 'Fragment',
|
|
2004
|
+
version: VERSION$6,
|
|
2005
|
+
private: [],
|
|
2006
|
+
selections: [
|
|
2007
|
+
{
|
|
2008
|
+
name: 'dataType',
|
|
2009
|
+
kind: 'Scalar',
|
|
2010
|
+
required: false
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
name: 'fieldLabel',
|
|
2014
|
+
kind: 'Scalar',
|
|
2015
|
+
required: false
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
name: 'fieldName',
|
|
2019
|
+
kind: 'Scalar',
|
|
2020
|
+
required: false
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
name: 'picklistValues',
|
|
2024
|
+
kind: 'Object',
|
|
2025
|
+
plural: true,
|
|
2026
|
+
selections: PicklistValueObject__selections,
|
|
2027
|
+
required: false
|
|
2028
|
+
}
|
|
2029
|
+
]
|
|
2030
|
+
};
|
|
2031
|
+
};
|
|
2032
|
+
function equals$6(existing, incoming) {
|
|
2033
|
+
const existing_dataType = existing.dataType;
|
|
2034
|
+
const incoming_dataType = incoming.dataType;
|
|
2035
|
+
// if at least one of these optionals is defined
|
|
2036
|
+
if (existing_dataType !== undefined || incoming_dataType !== undefined) {
|
|
2037
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2038
|
+
// not equal
|
|
2039
|
+
if (existing_dataType === undefined || incoming_dataType === undefined) {
|
|
2040
|
+
return false;
|
|
2041
|
+
}
|
|
2042
|
+
if (!(existing_dataType === incoming_dataType)) {
|
|
2043
|
+
return false;
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
const existing_fieldLabel = existing.fieldLabel;
|
|
2047
|
+
const incoming_fieldLabel = incoming.fieldLabel;
|
|
2048
|
+
// if at least one of these optionals is defined
|
|
2049
|
+
if (existing_fieldLabel !== undefined || incoming_fieldLabel !== undefined) {
|
|
2050
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2051
|
+
// not equal
|
|
2052
|
+
if (existing_fieldLabel === undefined || incoming_fieldLabel === undefined) {
|
|
2053
|
+
return false;
|
|
2054
|
+
}
|
|
2055
|
+
if (!(existing_fieldLabel === incoming_fieldLabel)) {
|
|
2056
|
+
return false;
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
const existing_fieldName = existing.fieldName;
|
|
2060
|
+
const incoming_fieldName = incoming.fieldName;
|
|
2061
|
+
// if at least one of these optionals is defined
|
|
2062
|
+
if (existing_fieldName !== undefined || incoming_fieldName !== undefined) {
|
|
2063
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2064
|
+
// not equal
|
|
2065
|
+
if (existing_fieldName === undefined || incoming_fieldName === undefined) {
|
|
2066
|
+
return false;
|
|
2067
|
+
}
|
|
2068
|
+
if (!(existing_fieldName === incoming_fieldName)) {
|
|
2069
|
+
return false;
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
const existing_picklistValues = existing.picklistValues;
|
|
2073
|
+
const incoming_picklistValues = incoming.picklistValues;
|
|
2074
|
+
// if at least one of these optionals is defined
|
|
2075
|
+
if (existing_picklistValues !== undefined || incoming_picklistValues !== undefined) {
|
|
2076
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2077
|
+
// not equal
|
|
2078
|
+
if (existing_picklistValues === undefined || incoming_picklistValues === undefined) {
|
|
2079
|
+
return false;
|
|
2080
|
+
}
|
|
2081
|
+
const equals_picklistValues_items = equalsArray(existing_picklistValues, incoming_picklistValues, (existing_picklistValues_item, incoming_picklistValues_item) => {
|
|
2082
|
+
if (!(equals$7(existing_picklistValues_item, incoming_picklistValues_item))) {
|
|
2083
|
+
return false;
|
|
2084
|
+
}
|
|
2085
|
+
});
|
|
2086
|
+
if (equals_picklistValues_items === false) {
|
|
2087
|
+
return false;
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
return true;
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
const VERSION$5 = "3dd8c4b72e4601c0424788df244ee841";
|
|
2094
|
+
function validate$5(obj, path = 'EntityDetailsParentResponseObject') {
|
|
2095
|
+
const v_error = (() => {
|
|
2096
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2097
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2098
|
+
}
|
|
2099
|
+
if (obj.parentObjectLabel !== undefined) {
|
|
2100
|
+
const obj_parentObjectLabel = obj.parentObjectLabel;
|
|
2101
|
+
const path_parentObjectLabel = path + '.parentObjectLabel';
|
|
2102
|
+
if (typeof obj_parentObjectLabel !== 'string') {
|
|
2103
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentObjectLabel + '" (at "' + path_parentObjectLabel + '")');
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
if (obj.parentObjectName !== undefined) {
|
|
2107
|
+
const obj_parentObjectName = obj.parentObjectName;
|
|
2108
|
+
const path_parentObjectName = path + '.parentObjectName';
|
|
2109
|
+
if (typeof obj_parentObjectName !== 'string') {
|
|
2110
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentObjectName + '" (at "' + path_parentObjectName + '")');
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
if (obj.parentObjectRelationshipField !== undefined) {
|
|
2114
|
+
const obj_parentObjectRelationshipField = obj.parentObjectRelationshipField;
|
|
2115
|
+
const path_parentObjectRelationshipField = path + '.parentObjectRelationshipField';
|
|
2116
|
+
if (typeof obj_parentObjectRelationshipField !== 'string') {
|
|
2117
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentObjectRelationshipField + '" (at "' + path_parentObjectRelationshipField + '")');
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
if (obj.parentObjectType !== undefined) {
|
|
2121
|
+
const obj_parentObjectType = obj.parentObjectType;
|
|
2122
|
+
const path_parentObjectType = path + '.parentObjectType';
|
|
2123
|
+
if (typeof obj_parentObjectType !== 'string') {
|
|
2124
|
+
return new TypeError('Expected "string" but received "' + typeof obj_parentObjectType + '" (at "' + path_parentObjectType + '")');
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
})();
|
|
2128
|
+
return v_error === undefined ? null : v_error;
|
|
2129
|
+
}
|
|
2130
|
+
const select$a = function EntityDetailsParentResponseObjectSelect() {
|
|
2131
|
+
return {
|
|
2132
|
+
kind: 'Fragment',
|
|
2133
|
+
version: VERSION$5,
|
|
2134
|
+
private: [],
|
|
2135
|
+
selections: [
|
|
2136
|
+
{
|
|
2137
|
+
name: 'parentObjectLabel',
|
|
2138
|
+
kind: 'Scalar',
|
|
2139
|
+
required: false
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
name: 'parentObjectName',
|
|
2143
|
+
kind: 'Scalar',
|
|
2144
|
+
required: false
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
name: 'parentObjectRelationshipField',
|
|
2148
|
+
kind: 'Scalar',
|
|
2149
|
+
required: false
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
name: 'parentObjectType',
|
|
2153
|
+
kind: 'Scalar',
|
|
2154
|
+
required: false
|
|
2155
|
+
}
|
|
2156
|
+
]
|
|
2157
|
+
};
|
|
2158
|
+
};
|
|
2159
|
+
function equals$5(existing, incoming) {
|
|
2160
|
+
const existing_parentObjectLabel = existing.parentObjectLabel;
|
|
2161
|
+
const incoming_parentObjectLabel = incoming.parentObjectLabel;
|
|
2162
|
+
// if at least one of these optionals is defined
|
|
2163
|
+
if (existing_parentObjectLabel !== undefined || incoming_parentObjectLabel !== undefined) {
|
|
2164
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2165
|
+
// not equal
|
|
2166
|
+
if (existing_parentObjectLabel === undefined || incoming_parentObjectLabel === undefined) {
|
|
2167
|
+
return false;
|
|
2168
|
+
}
|
|
2169
|
+
if (!(existing_parentObjectLabel === incoming_parentObjectLabel)) {
|
|
2170
|
+
return false;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
const existing_parentObjectName = existing.parentObjectName;
|
|
2174
|
+
const incoming_parentObjectName = incoming.parentObjectName;
|
|
2175
|
+
// if at least one of these optionals is defined
|
|
2176
|
+
if (existing_parentObjectName !== undefined || incoming_parentObjectName !== undefined) {
|
|
2177
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2178
|
+
// not equal
|
|
2179
|
+
if (existing_parentObjectName === undefined || incoming_parentObjectName === undefined) {
|
|
2180
|
+
return false;
|
|
2181
|
+
}
|
|
2182
|
+
if (!(existing_parentObjectName === incoming_parentObjectName)) {
|
|
2183
|
+
return false;
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
const existing_parentObjectRelationshipField = existing.parentObjectRelationshipField;
|
|
2187
|
+
const incoming_parentObjectRelationshipField = incoming.parentObjectRelationshipField;
|
|
2188
|
+
// if at least one of these optionals is defined
|
|
2189
|
+
if (existing_parentObjectRelationshipField !== undefined || incoming_parentObjectRelationshipField !== undefined) {
|
|
2190
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2191
|
+
// not equal
|
|
2192
|
+
if (existing_parentObjectRelationshipField === undefined || incoming_parentObjectRelationshipField === undefined) {
|
|
2193
|
+
return false;
|
|
2194
|
+
}
|
|
2195
|
+
if (!(existing_parentObjectRelationshipField === incoming_parentObjectRelationshipField)) {
|
|
2196
|
+
return false;
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
const existing_parentObjectType = existing.parentObjectType;
|
|
2200
|
+
const incoming_parentObjectType = incoming.parentObjectType;
|
|
2201
|
+
// if at least one of these optionals is defined
|
|
2202
|
+
if (existing_parentObjectType !== undefined || incoming_parentObjectType !== undefined) {
|
|
2203
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2204
|
+
// not equal
|
|
2205
|
+
if (existing_parentObjectType === undefined || incoming_parentObjectType === undefined) {
|
|
2206
|
+
return false;
|
|
2207
|
+
}
|
|
2208
|
+
if (!(existing_parentObjectType === incoming_parentObjectType)) {
|
|
2209
|
+
return false;
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
return true;
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
const VERSION$4 = "4eaabf520fc0b3fac32a0883f2c0e055";
|
|
2216
|
+
function validate$4(obj, path = 'EntityDetailsResponseObject') {
|
|
2217
|
+
const v_error = (() => {
|
|
2218
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2219
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2220
|
+
}
|
|
2221
|
+
if (obj.childRelationships !== undefined) {
|
|
2222
|
+
const obj_childRelationships = obj.childRelationships;
|
|
2223
|
+
const path_childRelationships = path + '.childRelationships';
|
|
2224
|
+
if (!ArrayIsArray(obj_childRelationships)) {
|
|
2225
|
+
return new TypeError('Expected "array" but received "' + typeof obj_childRelationships + '" (at "' + path_childRelationships + '")');
|
|
2226
|
+
}
|
|
2227
|
+
for (let i = 0; i < obj_childRelationships.length; i++) {
|
|
2228
|
+
const obj_childRelationships_item = obj_childRelationships[i];
|
|
2229
|
+
const path_childRelationships_item = path_childRelationships + '[' + i + ']';
|
|
2230
|
+
const referencepath_childRelationships_itemValidationError = validate$8(obj_childRelationships_item, path_childRelationships_item);
|
|
2231
|
+
if (referencepath_childRelationships_itemValidationError !== null) {
|
|
2232
|
+
let message = 'Object doesn\'t match EntityDetailsChildResponseObject (at "' + path_childRelationships_item + '")\n';
|
|
2233
|
+
message += referencepath_childRelationships_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2234
|
+
return new TypeError(message);
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
if (obj.error !== undefined) {
|
|
2239
|
+
const obj_error = obj.error;
|
|
2240
|
+
const path_error = path + '.error';
|
|
2241
|
+
if (typeof obj_error !== 'string') {
|
|
2242
|
+
return new TypeError('Expected "string" but received "' + typeof obj_error + '" (at "' + path_error + '")');
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
if (obj.fields !== undefined) {
|
|
2246
|
+
const obj_fields = obj.fields;
|
|
2247
|
+
const path_fields = path + '.fields';
|
|
2248
|
+
if (!ArrayIsArray(obj_fields)) {
|
|
2249
|
+
return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
2250
|
+
}
|
|
2251
|
+
for (let i = 0; i < obj_fields.length; i++) {
|
|
2252
|
+
const obj_fields_item = obj_fields[i];
|
|
2253
|
+
const path_fields_item = path_fields + '[' + i + ']';
|
|
2254
|
+
const referencepath_fields_itemValidationError = validate$6(obj_fields_item, path_fields_item);
|
|
2255
|
+
if (referencepath_fields_itemValidationError !== null) {
|
|
2256
|
+
let message = 'Object doesn\'t match EntityDetailsFieldsResponseObject (at "' + path_fields_item + '")\n';
|
|
2257
|
+
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2258
|
+
return new TypeError(message);
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
if (obj.objectAPIName !== undefined) {
|
|
2263
|
+
const obj_objectAPIName = obj.objectAPIName;
|
|
2264
|
+
const path_objectAPIName = path + '.objectAPIName';
|
|
2265
|
+
if (typeof obj_objectAPIName !== 'string') {
|
|
2266
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectAPIName + '" (at "' + path_objectAPIName + '")');
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
if (obj.objectIcon !== undefined) {
|
|
2270
|
+
const obj_objectIcon = obj.objectIcon;
|
|
2271
|
+
const path_objectIcon = path + '.objectIcon';
|
|
2272
|
+
if (typeof obj_objectIcon !== 'string') {
|
|
2273
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectIcon + '" (at "' + path_objectIcon + '")');
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
if (obj.objectLabel !== undefined) {
|
|
2277
|
+
const obj_objectLabel = obj.objectLabel;
|
|
2278
|
+
const path_objectLabel = path + '.objectLabel';
|
|
2279
|
+
if (typeof obj_objectLabel !== 'string') {
|
|
2280
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectLabel + '" (at "' + path_objectLabel + '")');
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
if (obj.objectName !== undefined) {
|
|
2284
|
+
const obj_objectName = obj.objectName;
|
|
2285
|
+
const path_objectName = path + '.objectName';
|
|
2286
|
+
if (typeof obj_objectName !== 'string') {
|
|
2287
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
if (obj.parentRelationships !== undefined) {
|
|
2291
|
+
const obj_parentRelationships = obj.parentRelationships;
|
|
2292
|
+
const path_parentRelationships = path + '.parentRelationships';
|
|
2293
|
+
if (!ArrayIsArray(obj_parentRelationships)) {
|
|
2294
|
+
return new TypeError('Expected "array" but received "' + typeof obj_parentRelationships + '" (at "' + path_parentRelationships + '")');
|
|
2295
|
+
}
|
|
2296
|
+
for (let i = 0; i < obj_parentRelationships.length; i++) {
|
|
2297
|
+
const obj_parentRelationships_item = obj_parentRelationships[i];
|
|
2298
|
+
const path_parentRelationships_item = path_parentRelationships + '[' + i + ']';
|
|
2299
|
+
const referencepath_parentRelationships_itemValidationError = validate$5(obj_parentRelationships_item, path_parentRelationships_item);
|
|
2300
|
+
if (referencepath_parentRelationships_itemValidationError !== null) {
|
|
2301
|
+
let message = 'Object doesn\'t match EntityDetailsParentResponseObject (at "' + path_parentRelationships_item + '")\n';
|
|
2302
|
+
message += referencepath_parentRelationships_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2303
|
+
return new TypeError(message);
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
if (obj.recordCount !== undefined) {
|
|
2308
|
+
const obj_recordCount = obj.recordCount;
|
|
2309
|
+
const path_recordCount = path + '.recordCount';
|
|
2310
|
+
if (typeof obj_recordCount !== 'number') {
|
|
2311
|
+
return new TypeError('Expected "number" but received "' + typeof obj_recordCount + '" (at "' + path_recordCount + '")');
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
if (obj.type !== undefined) {
|
|
2315
|
+
const obj_type = obj.type;
|
|
2316
|
+
const path_type = path + '.type';
|
|
2317
|
+
if (typeof obj_type !== 'string') {
|
|
2318
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
})();
|
|
2322
|
+
return v_error === undefined ? null : v_error;
|
|
2323
|
+
}
|
|
2324
|
+
const select$9 = function EntityDetailsResponseObjectSelect() {
|
|
2325
|
+
const { selections: EntityDetailsChildResponseObject__selections, opaque: EntityDetailsChildResponseObject__opaque, } = select$d();
|
|
2326
|
+
const { selections: EntityDetailsFieldsResponseObject__selections, opaque: EntityDetailsFieldsResponseObject__opaque, } = select$b();
|
|
2327
|
+
const { selections: EntityDetailsParentResponseObject__selections, opaque: EntityDetailsParentResponseObject__opaque, } = select$a();
|
|
2328
|
+
return {
|
|
2329
|
+
kind: 'Fragment',
|
|
2330
|
+
version: VERSION$4,
|
|
2331
|
+
private: [],
|
|
2332
|
+
selections: [
|
|
2333
|
+
{
|
|
2334
|
+
name: 'childRelationships',
|
|
2335
|
+
kind: 'Object',
|
|
2336
|
+
plural: true,
|
|
2337
|
+
selections: EntityDetailsChildResponseObject__selections,
|
|
2338
|
+
required: false
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
name: 'error',
|
|
2342
|
+
kind: 'Scalar',
|
|
2343
|
+
required: false
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
name: 'fields',
|
|
2347
|
+
kind: 'Object',
|
|
2348
|
+
plural: true,
|
|
2349
|
+
selections: EntityDetailsFieldsResponseObject__selections,
|
|
2350
|
+
required: false
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
name: 'objectAPIName',
|
|
2354
|
+
kind: 'Scalar',
|
|
2355
|
+
required: false
|
|
2356
|
+
},
|
|
2357
|
+
{
|
|
2358
|
+
name: 'objectIcon',
|
|
2359
|
+
kind: 'Scalar',
|
|
2360
|
+
required: false
|
|
2361
|
+
},
|
|
2362
|
+
{
|
|
2363
|
+
name: 'objectLabel',
|
|
2364
|
+
kind: 'Scalar',
|
|
2365
|
+
required: false
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
name: 'objectName',
|
|
2369
|
+
kind: 'Scalar',
|
|
2370
|
+
required: false
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
name: 'parentRelationships',
|
|
2374
|
+
kind: 'Object',
|
|
2375
|
+
plural: true,
|
|
2376
|
+
selections: EntityDetailsParentResponseObject__selections,
|
|
2377
|
+
required: false
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
name: 'recordCount',
|
|
2381
|
+
kind: 'Scalar',
|
|
2382
|
+
required: false
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
name: 'type',
|
|
2386
|
+
kind: 'Scalar',
|
|
2387
|
+
required: false
|
|
2388
|
+
}
|
|
2389
|
+
]
|
|
2390
|
+
};
|
|
2391
|
+
};
|
|
2392
|
+
function equals$4(existing, incoming) {
|
|
2393
|
+
const existing_recordCount = existing.recordCount;
|
|
2394
|
+
const incoming_recordCount = incoming.recordCount;
|
|
2395
|
+
// if at least one of these optionals is defined
|
|
2396
|
+
if (existing_recordCount !== undefined || incoming_recordCount !== undefined) {
|
|
2397
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2398
|
+
// not equal
|
|
2399
|
+
if (existing_recordCount === undefined || incoming_recordCount === undefined) {
|
|
2400
|
+
return false;
|
|
2401
|
+
}
|
|
2402
|
+
if (!(existing_recordCount === incoming_recordCount)) {
|
|
2403
|
+
return false;
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
const existing_error = existing.error;
|
|
2407
|
+
const incoming_error = incoming.error;
|
|
2408
|
+
// if at least one of these optionals is defined
|
|
2409
|
+
if (existing_error !== undefined || incoming_error !== undefined) {
|
|
2410
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2411
|
+
// not equal
|
|
2412
|
+
if (existing_error === undefined || incoming_error === undefined) {
|
|
2413
|
+
return false;
|
|
2414
|
+
}
|
|
2415
|
+
if (!(existing_error === incoming_error)) {
|
|
2416
|
+
return false;
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
const existing_objectAPIName = existing.objectAPIName;
|
|
2420
|
+
const incoming_objectAPIName = incoming.objectAPIName;
|
|
2421
|
+
// if at least one of these optionals is defined
|
|
2422
|
+
if (existing_objectAPIName !== undefined || incoming_objectAPIName !== undefined) {
|
|
2423
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2424
|
+
// not equal
|
|
2425
|
+
if (existing_objectAPIName === undefined || incoming_objectAPIName === undefined) {
|
|
2426
|
+
return false;
|
|
2427
|
+
}
|
|
2428
|
+
if (!(existing_objectAPIName === incoming_objectAPIName)) {
|
|
2429
|
+
return false;
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
const existing_objectIcon = existing.objectIcon;
|
|
2433
|
+
const incoming_objectIcon = incoming.objectIcon;
|
|
2434
|
+
// if at least one of these optionals is defined
|
|
2435
|
+
if (existing_objectIcon !== undefined || incoming_objectIcon !== undefined) {
|
|
2436
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2437
|
+
// not equal
|
|
2438
|
+
if (existing_objectIcon === undefined || incoming_objectIcon === undefined) {
|
|
2439
|
+
return false;
|
|
2440
|
+
}
|
|
2441
|
+
if (!(existing_objectIcon === incoming_objectIcon)) {
|
|
2442
|
+
return false;
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
const existing_objectLabel = existing.objectLabel;
|
|
2446
|
+
const incoming_objectLabel = incoming.objectLabel;
|
|
2447
|
+
// if at least one of these optionals is defined
|
|
2448
|
+
if (existing_objectLabel !== undefined || incoming_objectLabel !== undefined) {
|
|
2449
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2450
|
+
// not equal
|
|
2451
|
+
if (existing_objectLabel === undefined || incoming_objectLabel === undefined) {
|
|
2452
|
+
return false;
|
|
2453
|
+
}
|
|
2454
|
+
if (!(existing_objectLabel === incoming_objectLabel)) {
|
|
2455
|
+
return false;
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
const existing_objectName = existing.objectName;
|
|
2459
|
+
const incoming_objectName = incoming.objectName;
|
|
2460
|
+
// if at least one of these optionals is defined
|
|
2461
|
+
if (existing_objectName !== undefined || incoming_objectName !== undefined) {
|
|
2462
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2463
|
+
// not equal
|
|
2464
|
+
if (existing_objectName === undefined || incoming_objectName === undefined) {
|
|
2465
|
+
return false;
|
|
2466
|
+
}
|
|
2467
|
+
if (!(existing_objectName === incoming_objectName)) {
|
|
2468
|
+
return false;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
const existing_type = existing.type;
|
|
2472
|
+
const incoming_type = incoming.type;
|
|
2473
|
+
// if at least one of these optionals is defined
|
|
2474
|
+
if (existing_type !== undefined || incoming_type !== undefined) {
|
|
2475
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2476
|
+
// not equal
|
|
2477
|
+
if (existing_type === undefined || incoming_type === undefined) {
|
|
2478
|
+
return false;
|
|
2479
|
+
}
|
|
2480
|
+
if (!(existing_type === incoming_type)) {
|
|
2481
|
+
return false;
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
const existing_childRelationships = existing.childRelationships;
|
|
2485
|
+
const incoming_childRelationships = incoming.childRelationships;
|
|
2486
|
+
// if at least one of these optionals is defined
|
|
2487
|
+
if (existing_childRelationships !== undefined || incoming_childRelationships !== undefined) {
|
|
2488
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2489
|
+
// not equal
|
|
2490
|
+
if (existing_childRelationships === undefined || incoming_childRelationships === undefined) {
|
|
2491
|
+
return false;
|
|
2492
|
+
}
|
|
2493
|
+
const equals_childRelationships_items = equalsArray(existing_childRelationships, incoming_childRelationships, (existing_childRelationships_item, incoming_childRelationships_item) => {
|
|
2494
|
+
if (!(equals$8(existing_childRelationships_item, incoming_childRelationships_item))) {
|
|
2495
|
+
return false;
|
|
2496
|
+
}
|
|
2497
|
+
});
|
|
2498
|
+
if (equals_childRelationships_items === false) {
|
|
2499
|
+
return false;
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
const existing_fields = existing.fields;
|
|
2503
|
+
const incoming_fields = incoming.fields;
|
|
2504
|
+
// if at least one of these optionals is defined
|
|
2505
|
+
if (existing_fields !== undefined || incoming_fields !== undefined) {
|
|
2506
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2507
|
+
// not equal
|
|
2508
|
+
if (existing_fields === undefined || incoming_fields === undefined) {
|
|
2509
|
+
return false;
|
|
2510
|
+
}
|
|
2511
|
+
const equals_fields_items = equalsArray(existing_fields, incoming_fields, (existing_fields_item, incoming_fields_item) => {
|
|
2512
|
+
if (!(equals$6(existing_fields_item, incoming_fields_item))) {
|
|
2513
|
+
return false;
|
|
2514
|
+
}
|
|
2515
|
+
});
|
|
2516
|
+
if (equals_fields_items === false) {
|
|
2517
|
+
return false;
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
const existing_parentRelationships = existing.parentRelationships;
|
|
2521
|
+
const incoming_parentRelationships = incoming.parentRelationships;
|
|
2522
|
+
// if at least one of these optionals is defined
|
|
2523
|
+
if (existing_parentRelationships !== undefined || incoming_parentRelationships !== undefined) {
|
|
2524
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2525
|
+
// not equal
|
|
2526
|
+
if (existing_parentRelationships === undefined || incoming_parentRelationships === undefined) {
|
|
2527
|
+
return false;
|
|
2528
|
+
}
|
|
2529
|
+
const equals_parentRelationships_items = equalsArray(existing_parentRelationships, incoming_parentRelationships, (existing_parentRelationships_item, incoming_parentRelationships_item) => {
|
|
2530
|
+
if (!(equals$5(existing_parentRelationships_item, incoming_parentRelationships_item))) {
|
|
2531
|
+
return false;
|
|
2532
|
+
}
|
|
2533
|
+
});
|
|
2534
|
+
if (equals_parentRelationships_items === false) {
|
|
2535
|
+
return false;
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
return true;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
const TTL$2 = 200;
|
|
2542
|
+
const VERSION$3 = "cc4b04e3cbff7dbd4546fac85637cd5b";
|
|
2543
|
+
function validate$3(obj, path = 'EntitiesDetailsOutputRepresentation') {
|
|
2544
|
+
const v_error = (() => {
|
|
2545
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2546
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2547
|
+
}
|
|
2548
|
+
const obj_correlation_id = obj.correlation_id;
|
|
2549
|
+
const path_correlation_id = path + '.correlation_id';
|
|
2550
|
+
if (typeof obj_correlation_id !== 'string') {
|
|
2551
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlation_id + '" (at "' + path_correlation_id + '")');
|
|
2552
|
+
}
|
|
2553
|
+
const obj_metadata = obj.metadata;
|
|
2554
|
+
const path_metadata = path + '.metadata';
|
|
2555
|
+
if (!ArrayIsArray(obj_metadata)) {
|
|
2556
|
+
return new TypeError('Expected "array" but received "' + typeof obj_metadata + '" (at "' + path_metadata + '")');
|
|
2557
|
+
}
|
|
2558
|
+
for (let i = 0; i < obj_metadata.length; i++) {
|
|
2559
|
+
const obj_metadata_item = obj_metadata[i];
|
|
2560
|
+
const path_metadata_item = path_metadata + '[' + i + ']';
|
|
2561
|
+
const referencepath_metadata_itemValidationError = validate$4(obj_metadata_item, path_metadata_item);
|
|
2562
|
+
if (referencepath_metadata_itemValidationError !== null) {
|
|
2563
|
+
let message = 'Object doesn\'t match EntityDetailsResponseObject (at "' + path_metadata_item + '")\n';
|
|
2564
|
+
message += referencepath_metadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2565
|
+
return new TypeError(message);
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
})();
|
|
2569
|
+
return v_error === undefined ? null : v_error;
|
|
2570
|
+
}
|
|
2571
|
+
const RepresentationType$2 = 'EntitiesDetailsOutputRepresentation';
|
|
2572
|
+
function keyBuilder$2(luvio, config) {
|
|
2573
|
+
return keyPrefix + '::' + RepresentationType$2 + ':' + config.correlation_id;
|
|
2574
|
+
}
|
|
2575
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
2576
|
+
const keyParams = {
|
|
2577
|
+
correlation_id: object.correlation_id
|
|
2578
|
+
};
|
|
2579
|
+
return keyBuilder$2(luvio, keyParams);
|
|
2580
|
+
}
|
|
2581
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
2582
|
+
return input;
|
|
2583
|
+
}
|
|
2584
|
+
const select$8 = function EntitiesDetailsOutputRepresentationSelect() {
|
|
2585
|
+
const { selections: EntityDetailsResponseObject__selections, opaque: EntityDetailsResponseObject__opaque, } = select$9();
|
|
2586
|
+
return {
|
|
2587
|
+
kind: 'Fragment',
|
|
2588
|
+
version: VERSION$3,
|
|
2589
|
+
private: [],
|
|
2590
|
+
selections: [
|
|
2591
|
+
{
|
|
2592
|
+
name: 'correlation_id',
|
|
2593
|
+
kind: 'Scalar'
|
|
2594
|
+
},
|
|
2595
|
+
{
|
|
2596
|
+
name: 'metadata',
|
|
2597
|
+
kind: 'Object',
|
|
2598
|
+
plural: true,
|
|
2599
|
+
selections: EntityDetailsResponseObject__selections
|
|
2600
|
+
}
|
|
2601
|
+
]
|
|
2602
|
+
};
|
|
2603
|
+
};
|
|
2604
|
+
function equals$3(existing, incoming) {
|
|
2605
|
+
const existing_correlation_id = existing.correlation_id;
|
|
2606
|
+
const incoming_correlation_id = incoming.correlation_id;
|
|
2607
|
+
if (!(existing_correlation_id === incoming_correlation_id)) {
|
|
2608
|
+
return false;
|
|
2609
|
+
}
|
|
2610
|
+
const existing_metadata = existing.metadata;
|
|
2611
|
+
const incoming_metadata = incoming.metadata;
|
|
2612
|
+
const equals_metadata_items = equalsArray(existing_metadata, incoming_metadata, (existing_metadata_item, incoming_metadata_item) => {
|
|
2613
|
+
if (!(equals$4(existing_metadata_item, incoming_metadata_item))) {
|
|
2614
|
+
return false;
|
|
2615
|
+
}
|
|
2616
|
+
});
|
|
2617
|
+
if (equals_metadata_items === false) {
|
|
2618
|
+
return false;
|
|
2619
|
+
}
|
|
2620
|
+
return true;
|
|
2621
|
+
}
|
|
2622
|
+
const ingest$2 = function EntitiesDetailsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2623
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2624
|
+
const validateError = validate$3(input);
|
|
2625
|
+
if (validateError !== null) {
|
|
2626
|
+
throw validateError;
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
2630
|
+
const ttlToUse = TTL$2;
|
|
2631
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "data-seed", VERSION$3, RepresentationType$2, equals$3);
|
|
2632
|
+
return createLink(key);
|
|
2633
|
+
};
|
|
2634
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
2635
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2636
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
2637
|
+
rootKeySet.set(rootKey, {
|
|
2638
|
+
namespace: keyPrefix,
|
|
2639
|
+
representationName: RepresentationType$2,
|
|
2640
|
+
mergeable: false
|
|
2641
|
+
});
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
function select$7(luvio, params) {
|
|
2645
|
+
return select$8();
|
|
2646
|
+
}
|
|
2647
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
2648
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
2649
|
+
}
|
|
2650
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
2651
|
+
const { body } = response;
|
|
2652
|
+
const key = keyBuilderFromType$2(luvio, body);
|
|
2653
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
2654
|
+
const snapshot = luvio.storeLookup({
|
|
2655
|
+
recordId: key,
|
|
2656
|
+
node: select$7(),
|
|
2657
|
+
variables: {},
|
|
2658
|
+
});
|
|
2659
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2660
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2661
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
deepFreeze(snapshot.data);
|
|
2665
|
+
return snapshot;
|
|
2666
|
+
}
|
|
2667
|
+
function createResourceRequest$4(config) {
|
|
2668
|
+
const headers = {};
|
|
2669
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
2670
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
2671
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
2672
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
2673
|
+
return {
|
|
2674
|
+
baseUri: 'api.salesforce.com',
|
|
2675
|
+
basePath: '/platform/data-seed/v1/data-seed-fetch-salesforce-object-metadata',
|
|
2676
|
+
method: 'post',
|
|
2677
|
+
body: config.body,
|
|
2678
|
+
urlParams: {},
|
|
2679
|
+
queryParams: {},
|
|
2680
|
+
headers,
|
|
2681
|
+
priority: 'normal',
|
|
2682
|
+
};
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
const adapterName$4 = 'getOrgEntitiesDetails';
|
|
2686
|
+
const getOrgEntitiesDetails_ConfigPropertyMetadata = [
|
|
2687
|
+
generateParamConfigMetadata('source_instance_url', true, 2 /* Body */, 0 /* String */),
|
|
2688
|
+
generateParamConfigMetadata('source_access_token', true, 2 /* Body */, 0 /* String */),
|
|
2689
|
+
generateParamConfigMetadata('object_names', true, 2 /* Body */, 0 /* String */, true),
|
|
2690
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
2691
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
2692
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
2693
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
2694
|
+
];
|
|
2695
|
+
const getOrgEntitiesDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getOrgEntitiesDetails_ConfigPropertyMetadata);
|
|
2696
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getOrgEntitiesDetails_ConfigPropertyMetadata);
|
|
2697
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
2698
|
+
const config = {};
|
|
2699
|
+
typeCheckConfig$b(untrustedConfig, config, getOrgEntitiesDetails_ConfigPropertyMetadata);
|
|
2700
|
+
return config;
|
|
2701
|
+
}
|
|
2702
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
2703
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2704
|
+
return null;
|
|
2705
|
+
}
|
|
2706
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2707
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2708
|
+
}
|
|
2709
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
2710
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2711
|
+
return null;
|
|
2712
|
+
}
|
|
2713
|
+
return config;
|
|
2714
|
+
}
|
|
2715
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
2716
|
+
const resourceParams = createResourceParams$4(config);
|
|
2717
|
+
const request = createResourceRequest$4(resourceParams);
|
|
2718
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2719
|
+
.then((response) => {
|
|
2720
|
+
return luvio.handleSuccessResponse(() => {
|
|
2721
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
2722
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2723
|
+
}, () => {
|
|
2724
|
+
const cache = new StoreKeyMap();
|
|
2725
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
2726
|
+
return cache;
|
|
2727
|
+
});
|
|
2728
|
+
}, (response) => {
|
|
2729
|
+
deepFreeze(response);
|
|
2730
|
+
throw response;
|
|
2731
|
+
});
|
|
2732
|
+
}
|
|
2733
|
+
const getOrgEntitiesDetailsAdapterFactory = (luvio) => {
|
|
2734
|
+
return function getOrgEntitiesDetails(untrustedConfig) {
|
|
2735
|
+
const config = validateAdapterConfig$4(untrustedConfig, getOrgEntitiesDetails_ConfigPropertyNames);
|
|
2736
|
+
// Invalid or incomplete config
|
|
2737
|
+
if (config === null) {
|
|
2738
|
+
throw new Error('Invalid config for "getOrgEntitiesDetails"');
|
|
2739
|
+
}
|
|
2740
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
2741
|
+
};
|
|
2742
|
+
};
|
|
2743
|
+
|
|
2744
|
+
const VERSION$2 = "91bdd9d579d56d9865521dbe25c21894";
|
|
2745
|
+
function validate$2(obj, path = 'OrgDetailsObjectRepresentation') {
|
|
2746
|
+
const v_error = (() => {
|
|
2747
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2748
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2749
|
+
}
|
|
2750
|
+
const obj_is_sandbox = obj.is_sandbox;
|
|
2751
|
+
const path_is_sandbox = path + '.is_sandbox';
|
|
2752
|
+
if (typeof obj_is_sandbox !== 'boolean') {
|
|
2753
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_is_sandbox + '" (at "' + path_is_sandbox + '")');
|
|
2754
|
+
}
|
|
2755
|
+
const obj_org_id = obj.org_id;
|
|
2756
|
+
const path_org_id = path + '.org_id';
|
|
2757
|
+
if (typeof obj_org_id !== 'string') {
|
|
2758
|
+
return new TypeError('Expected "string" but received "' + typeof obj_org_id + '" (at "' + path_org_id + '")');
|
|
2759
|
+
}
|
|
2760
|
+
const obj_org_name = obj.org_name;
|
|
2761
|
+
const path_org_name = path + '.org_name';
|
|
2762
|
+
if (typeof obj_org_name !== 'string') {
|
|
2763
|
+
return new TypeError('Expected "string" but received "' + typeof obj_org_name + '" (at "' + path_org_name + '")');
|
|
2764
|
+
}
|
|
2765
|
+
const obj_organization_type = obj.organization_type;
|
|
2766
|
+
const path_organization_type = path + '.organization_type';
|
|
2767
|
+
if (typeof obj_organization_type !== 'string') {
|
|
2768
|
+
return new TypeError('Expected "string" but received "' + typeof obj_organization_type + '" (at "' + path_organization_type + '")');
|
|
2769
|
+
}
|
|
2770
|
+
})();
|
|
2771
|
+
return v_error === undefined ? null : v_error;
|
|
2772
|
+
}
|
|
2773
|
+
const select$6 = function OrgDetailsObjectRepresentationSelect() {
|
|
2774
|
+
return {
|
|
2775
|
+
kind: 'Fragment',
|
|
2776
|
+
version: VERSION$2,
|
|
2777
|
+
private: [],
|
|
2778
|
+
selections: [
|
|
2779
|
+
{
|
|
2780
|
+
name: 'is_sandbox',
|
|
2781
|
+
kind: 'Scalar'
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
name: 'org_id',
|
|
2785
|
+
kind: 'Scalar'
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
name: 'org_name',
|
|
2789
|
+
kind: 'Scalar'
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
name: 'organization_type',
|
|
2793
|
+
kind: 'Scalar'
|
|
2794
|
+
}
|
|
2795
|
+
]
|
|
2796
|
+
};
|
|
2797
|
+
};
|
|
2798
|
+
function equals$2(existing, incoming) {
|
|
2799
|
+
const existing_is_sandbox = existing.is_sandbox;
|
|
2800
|
+
const incoming_is_sandbox = incoming.is_sandbox;
|
|
2801
|
+
if (!(existing_is_sandbox === incoming_is_sandbox)) {
|
|
2802
|
+
return false;
|
|
2803
|
+
}
|
|
2804
|
+
const existing_org_id = existing.org_id;
|
|
2805
|
+
const incoming_org_id = incoming.org_id;
|
|
2806
|
+
if (!(existing_org_id === incoming_org_id)) {
|
|
2807
|
+
return false;
|
|
2808
|
+
}
|
|
2809
|
+
const existing_org_name = existing.org_name;
|
|
2810
|
+
const incoming_org_name = incoming.org_name;
|
|
2811
|
+
if (!(existing_org_name === incoming_org_name)) {
|
|
2812
|
+
return false;
|
|
2813
|
+
}
|
|
2814
|
+
const existing_organization_type = existing.organization_type;
|
|
2815
|
+
const incoming_organization_type = incoming.organization_type;
|
|
2816
|
+
if (!(existing_organization_type === incoming_organization_type)) {
|
|
2817
|
+
return false;
|
|
2818
|
+
}
|
|
2819
|
+
return true;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
const TTL$1 = 200;
|
|
2823
|
+
const VERSION$1 = "50d597a0f1636efc71ac02a6c9abc436";
|
|
2824
|
+
function validate$1(obj, path = 'OrgDetailsRepresentation') {
|
|
2825
|
+
const v_error = (() => {
|
|
2826
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2827
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2828
|
+
}
|
|
2829
|
+
const obj_correlation_id = obj.correlation_id;
|
|
2830
|
+
const path_correlation_id = path + '.correlation_id';
|
|
2831
|
+
if (typeof obj_correlation_id !== 'string') {
|
|
2832
|
+
return new TypeError('Expected "string" but received "' + typeof obj_correlation_id + '" (at "' + path_correlation_id + '")');
|
|
2833
|
+
}
|
|
2834
|
+
const obj_org_details = obj.org_details;
|
|
2835
|
+
const path_org_details = path + '.org_details';
|
|
2836
|
+
const referencepath_org_detailsValidationError = validate$2(obj_org_details, path_org_details);
|
|
2837
|
+
if (referencepath_org_detailsValidationError !== null) {
|
|
2838
|
+
let message = 'Object doesn\'t match OrgDetailsObjectRepresentation (at "' + path_org_details + '")\n';
|
|
2839
|
+
message += referencepath_org_detailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2840
|
+
return new TypeError(message);
|
|
2841
|
+
}
|
|
2842
|
+
})();
|
|
2843
|
+
return v_error === undefined ? null : v_error;
|
|
2844
|
+
}
|
|
2845
|
+
const RepresentationType$1 = 'OrgDetailsRepresentation';
|
|
2846
|
+
function keyBuilder$1(luvio, config) {
|
|
2847
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + config.correlation_id;
|
|
2848
|
+
}
|
|
2849
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
2850
|
+
const keyParams = {
|
|
2851
|
+
correlation_id: object.correlation_id
|
|
2852
|
+
};
|
|
2853
|
+
return keyBuilder$1(luvio, keyParams);
|
|
2854
|
+
}
|
|
2855
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
2856
|
+
return input;
|
|
2857
|
+
}
|
|
2858
|
+
const select$5 = function OrgDetailsRepresentationSelect() {
|
|
2859
|
+
const { selections: OrgDetailsObjectRepresentation__selections, opaque: OrgDetailsObjectRepresentation__opaque, } = select$6();
|
|
2860
|
+
return {
|
|
2861
|
+
kind: 'Fragment',
|
|
2862
|
+
version: VERSION$1,
|
|
2863
|
+
private: [],
|
|
2864
|
+
selections: [
|
|
2865
|
+
{
|
|
2866
|
+
name: 'correlation_id',
|
|
2867
|
+
kind: 'Scalar'
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
name: 'org_details',
|
|
2871
|
+
kind: 'Object',
|
|
2872
|
+
selections: OrgDetailsObjectRepresentation__selections
|
|
2873
|
+
}
|
|
2874
|
+
]
|
|
2875
|
+
};
|
|
2876
|
+
};
|
|
2877
|
+
function equals$1(existing, incoming) {
|
|
2878
|
+
const existing_correlation_id = existing.correlation_id;
|
|
2879
|
+
const incoming_correlation_id = incoming.correlation_id;
|
|
2880
|
+
if (!(existing_correlation_id === incoming_correlation_id)) {
|
|
2881
|
+
return false;
|
|
2882
|
+
}
|
|
2883
|
+
const existing_org_details = existing.org_details;
|
|
2884
|
+
const incoming_org_details = incoming.org_details;
|
|
2885
|
+
if (!(equals$2(existing_org_details, incoming_org_details))) {
|
|
2886
|
+
return false;
|
|
2887
|
+
}
|
|
2888
|
+
return true;
|
|
2889
|
+
}
|
|
2890
|
+
const ingest$1 = function OrgDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2891
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2892
|
+
const validateError = validate$1(input);
|
|
2893
|
+
if (validateError !== null) {
|
|
2894
|
+
throw validateError;
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
2898
|
+
const ttlToUse = TTL$1;
|
|
2899
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "data-seed", VERSION$1, RepresentationType$1, equals$1);
|
|
2900
|
+
return createLink(key);
|
|
2901
|
+
};
|
|
2902
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
2903
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2904
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
2905
|
+
rootKeySet.set(rootKey, {
|
|
2906
|
+
namespace: keyPrefix,
|
|
2907
|
+
representationName: RepresentationType$1,
|
|
2908
|
+
mergeable: false
|
|
2909
|
+
});
|
|
2910
|
+
}
|
|
2911
|
+
|
|
2912
|
+
function select$4(luvio, params) {
|
|
2913
|
+
return select$5();
|
|
2914
|
+
}
|
|
2915
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
2916
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
2917
|
+
}
|
|
2918
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
2919
|
+
const { body } = response;
|
|
2920
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
2921
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
2922
|
+
const snapshot = luvio.storeLookup({
|
|
2923
|
+
recordId: key,
|
|
2924
|
+
node: select$4(),
|
|
2925
|
+
variables: {},
|
|
2926
|
+
});
|
|
2927
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2928
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2929
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
deepFreeze(snapshot.data);
|
|
2933
|
+
return snapshot;
|
|
2934
|
+
}
|
|
2935
|
+
function createResourceRequest$3(config) {
|
|
2936
|
+
const headers = {};
|
|
2937
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
2938
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
2939
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
2940
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
2941
|
+
return {
|
|
2942
|
+
baseUri: 'api.salesforce.com',
|
|
2943
|
+
basePath: '/platform/data-seed/v1/data-seed-org-details',
|
|
2944
|
+
method: 'post',
|
|
2945
|
+
body: null,
|
|
2946
|
+
urlParams: {},
|
|
2947
|
+
queryParams: {},
|
|
2948
|
+
headers,
|
|
2949
|
+
priority: 'normal',
|
|
2950
|
+
};
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
const adapterName$3 = 'getSalesforceOrgDetails';
|
|
2954
|
+
const getSalesforceOrgDetails_ConfigPropertyMetadata = [
|
|
2955
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
2956
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
2957
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
2958
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
2959
|
+
];
|
|
2960
|
+
const getSalesforceOrgDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSalesforceOrgDetails_ConfigPropertyMetadata);
|
|
2961
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(getSalesforceOrgDetails_ConfigPropertyMetadata);
|
|
2962
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
2963
|
+
const config = {};
|
|
2964
|
+
typeCheckConfig$b(untrustedConfig, config, getSalesforceOrgDetails_ConfigPropertyMetadata);
|
|
2965
|
+
return config;
|
|
2966
|
+
}
|
|
2967
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
2968
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2969
|
+
return null;
|
|
2970
|
+
}
|
|
2971
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2972
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2973
|
+
}
|
|
2974
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
2975
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2976
|
+
return null;
|
|
2977
|
+
}
|
|
2978
|
+
return config;
|
|
2979
|
+
}
|
|
2980
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
2981
|
+
const resourceParams = createResourceParams$3(config);
|
|
2982
|
+
const request = createResourceRequest$3(resourceParams);
|
|
2983
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2984
|
+
.then((response) => {
|
|
2985
|
+
return luvio.handleSuccessResponse(() => {
|
|
2986
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
2987
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2988
|
+
}, () => {
|
|
2989
|
+
const cache = new StoreKeyMap();
|
|
2990
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
2991
|
+
return cache;
|
|
2992
|
+
});
|
|
2993
|
+
}, (response) => {
|
|
2994
|
+
deepFreeze(response);
|
|
2995
|
+
throw response;
|
|
2996
|
+
});
|
|
2997
|
+
}
|
|
2998
|
+
const getSalesforceOrgDetailsAdapterFactory = (luvio) => {
|
|
2999
|
+
return function getSalesforceOrgDetails(untrustedConfig) {
|
|
3000
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSalesforceOrgDetails_ConfigPropertyNames);
|
|
3001
|
+
// Invalid or incomplete config
|
|
3002
|
+
if (config === null) {
|
|
3003
|
+
throw new Error('Invalid config for "getSalesforceOrgDetails"');
|
|
3004
|
+
}
|
|
3005
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
3006
|
+
};
|
|
3007
|
+
};
|
|
3008
|
+
|
|
3009
|
+
const TTL = 300000;
|
|
3010
|
+
const VERSION = "578e9dba5d8078135d4027313a51d7dc";
|
|
3011
|
+
function validate(obj, path = 'PreSignedUrlResultRepresentation') {
|
|
3012
|
+
const v_error = (() => {
|
|
3013
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3014
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3015
|
+
}
|
|
3016
|
+
const obj_s3_unique_id = obj.s3_unique_id;
|
|
3017
|
+
const path_s3_unique_id = path + '.s3_unique_id';
|
|
3018
|
+
if (typeof obj_s3_unique_id !== 'string') {
|
|
3019
|
+
return new TypeError('Expected "string" but received "' + typeof obj_s3_unique_id + '" (at "' + path_s3_unique_id + '")');
|
|
3020
|
+
}
|
|
3021
|
+
const obj_url = obj.url;
|
|
3022
|
+
const path_url = path + '.url';
|
|
3023
|
+
if (typeof obj_url !== 'string') {
|
|
3024
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
3025
|
+
}
|
|
3026
|
+
})();
|
|
3027
|
+
return v_error === undefined ? null : v_error;
|
|
3028
|
+
}
|
|
3029
|
+
const RepresentationType = 'PreSignedUrlResultRepresentation';
|
|
3030
|
+
function keyBuilder(luvio, config) {
|
|
3031
|
+
return keyPrefix + '::' + RepresentationType + ':' + config.s3_unique_id;
|
|
3032
|
+
}
|
|
3033
|
+
function keyBuilderFromType(luvio, object) {
|
|
3034
|
+
const keyParams = {
|
|
3035
|
+
s3_unique_id: object.s3_unique_id
|
|
3036
|
+
};
|
|
3037
|
+
return keyBuilder(luvio, keyParams);
|
|
3038
|
+
}
|
|
3039
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
3040
|
+
return input;
|
|
3041
|
+
}
|
|
3042
|
+
const select$3 = function PreSignedUrlResultRepresentationSelect() {
|
|
3043
|
+
return {
|
|
3044
|
+
kind: 'Fragment',
|
|
3045
|
+
version: VERSION,
|
|
3046
|
+
private: [],
|
|
3047
|
+
selections: [
|
|
3048
|
+
{
|
|
3049
|
+
name: 's3_unique_id',
|
|
3050
|
+
kind: 'Scalar'
|
|
3051
|
+
},
|
|
3052
|
+
{
|
|
3053
|
+
name: 'url',
|
|
3054
|
+
kind: 'Scalar'
|
|
3055
|
+
}
|
|
3056
|
+
]
|
|
3057
|
+
};
|
|
3058
|
+
};
|
|
3059
|
+
function equals(existing, incoming) {
|
|
3060
|
+
const existing_s3_unique_id = existing.s3_unique_id;
|
|
3061
|
+
const incoming_s3_unique_id = incoming.s3_unique_id;
|
|
3062
|
+
if (!(existing_s3_unique_id === incoming_s3_unique_id)) {
|
|
3063
|
+
return false;
|
|
3064
|
+
}
|
|
3065
|
+
const existing_url = existing.url;
|
|
3066
|
+
const incoming_url = incoming.url;
|
|
3067
|
+
if (!(existing_url === incoming_url)) {
|
|
3068
|
+
return false;
|
|
3069
|
+
}
|
|
3070
|
+
return true;
|
|
3071
|
+
}
|
|
3072
|
+
const ingest = function PreSignedUrlResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3073
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3074
|
+
const validateError = validate(input);
|
|
3075
|
+
if (validateError !== null) {
|
|
3076
|
+
throw validateError;
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
const key = keyBuilderFromType(luvio, input);
|
|
3080
|
+
const ttlToUse = TTL;
|
|
3081
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "data-seed", VERSION, RepresentationType, equals);
|
|
3082
|
+
return createLink(key);
|
|
3083
|
+
};
|
|
3084
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
3085
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3086
|
+
const rootKey = keyBuilderFromType(luvio, input);
|
|
3087
|
+
rootKeySet.set(rootKey, {
|
|
3088
|
+
namespace: keyPrefix,
|
|
3089
|
+
representationName: RepresentationType,
|
|
3090
|
+
mergeable: false
|
|
3091
|
+
});
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
function select$2(luvio, params) {
|
|
3095
|
+
return select$3();
|
|
3096
|
+
}
|
|
3097
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
3098
|
+
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
3099
|
+
}
|
|
3100
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
3101
|
+
const { body } = response;
|
|
3102
|
+
const key = keyBuilderFromType(luvio, body);
|
|
3103
|
+
luvio.storeIngest(key, ingest, body);
|
|
3104
|
+
const snapshot = luvio.storeLookup({
|
|
3105
|
+
recordId: key,
|
|
3106
|
+
node: select$2(),
|
|
3107
|
+
variables: {},
|
|
3108
|
+
});
|
|
3109
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3110
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3111
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
deepFreeze(snapshot.data);
|
|
3115
|
+
return snapshot;
|
|
3116
|
+
}
|
|
3117
|
+
function createResourceRequest$2(config) {
|
|
3118
|
+
const headers = {};
|
|
3119
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
3120
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
3121
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
3122
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
3123
|
+
return {
|
|
3124
|
+
baseUri: 'api.salesforce.com',
|
|
3125
|
+
basePath: '/platform/data-seed/v1/data-seed-generate-presigned-upload-url',
|
|
3126
|
+
method: 'post',
|
|
3127
|
+
body: config.body,
|
|
3128
|
+
urlParams: {},
|
|
3129
|
+
queryParams: {},
|
|
3130
|
+
headers,
|
|
3131
|
+
priority: 'normal',
|
|
3132
|
+
};
|
|
3133
|
+
}
|
|
3134
|
+
|
|
3135
|
+
const adapterName$2 = 'getUploadPreSignedUrl';
|
|
3136
|
+
const getUploadPreSignedUrl_ConfigPropertyMetadata = [
|
|
3137
|
+
generateParamConfigMetadata('file_name', true, 2 /* Body */, 0 /* String */),
|
|
3138
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
3139
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
3140
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
3141
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
3142
|
+
];
|
|
3143
|
+
const getUploadPreSignedUrl_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getUploadPreSignedUrl_ConfigPropertyMetadata);
|
|
3144
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getUploadPreSignedUrl_ConfigPropertyMetadata);
|
|
3145
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
3146
|
+
const config = {};
|
|
3147
|
+
typeCheckConfig$b(untrustedConfig, config, getUploadPreSignedUrl_ConfigPropertyMetadata);
|
|
3148
|
+
return config;
|
|
3149
|
+
}
|
|
3150
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
3151
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3152
|
+
return null;
|
|
3153
|
+
}
|
|
3154
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3155
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3156
|
+
}
|
|
3157
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
3158
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3159
|
+
return null;
|
|
3160
|
+
}
|
|
3161
|
+
return config;
|
|
3162
|
+
}
|
|
3163
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
3164
|
+
const resourceParams = createResourceParams$2(config);
|
|
3165
|
+
const request = createResourceRequest$2(resourceParams);
|
|
3166
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3167
|
+
.then((response) => {
|
|
3168
|
+
return luvio.handleSuccessResponse(() => {
|
|
3169
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
3170
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3171
|
+
}, () => {
|
|
3172
|
+
const cache = new StoreKeyMap();
|
|
3173
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
3174
|
+
return cache;
|
|
3175
|
+
});
|
|
3176
|
+
}, (response) => {
|
|
3177
|
+
deepFreeze(response);
|
|
3178
|
+
throw response;
|
|
3179
|
+
});
|
|
3180
|
+
}
|
|
3181
|
+
const getUploadPreSignedUrlAdapterFactory = (luvio) => {
|
|
3182
|
+
return function getUploadPreSignedUrl(untrustedConfig) {
|
|
3183
|
+
const config = validateAdapterConfig$2(untrustedConfig, getUploadPreSignedUrl_ConfigPropertyNames);
|
|
3184
|
+
// Invalid or incomplete config
|
|
3185
|
+
if (config === null) {
|
|
3186
|
+
throw new Error('Invalid config for "getUploadPreSignedUrl"');
|
|
3187
|
+
}
|
|
3188
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
3189
|
+
};
|
|
3190
|
+
};
|
|
3191
|
+
|
|
3192
|
+
function select$1(luvio, params) {
|
|
3193
|
+
return select$r();
|
|
3194
|
+
}
|
|
3195
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
3196
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
3197
|
+
}
|
|
3198
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
3199
|
+
const { body } = response;
|
|
3200
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
3201
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3202
|
+
const snapshot = luvio.storeLookup({
|
|
3203
|
+
recordId: key,
|
|
3204
|
+
node: select$1(),
|
|
3205
|
+
variables: {},
|
|
3206
|
+
});
|
|
3207
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3208
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3209
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
deepFreeze(snapshot.data);
|
|
3213
|
+
return snapshot;
|
|
3214
|
+
}
|
|
3215
|
+
function createResourceRequest$1(config) {
|
|
3216
|
+
const headers = {};
|
|
3217
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
3218
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
3219
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
3220
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
3221
|
+
return {
|
|
3222
|
+
baseUri: 'api.salesforce.com',
|
|
3223
|
+
basePath: '/platform/data-seed/v1/data-seed-load/' + config.urlParams.dataseed_request_id + '',
|
|
3224
|
+
method: 'post',
|
|
3225
|
+
body: config.body,
|
|
3226
|
+
urlParams: config.urlParams,
|
|
3227
|
+
queryParams: {},
|
|
3228
|
+
headers,
|
|
3229
|
+
priority: 'normal',
|
|
3230
|
+
};
|
|
3231
|
+
}
|
|
3232
|
+
|
|
3233
|
+
const adapterName$1 = 'loadDataToTargetOrg';
|
|
3234
|
+
const loadDataToTargetOrg_ConfigPropertyMetadata = [
|
|
3235
|
+
generateParamConfigMetadata('dataseed_request_id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3236
|
+
generateParamConfigMetadata('target_instance_url', true, 2 /* Body */, 0 /* String */),
|
|
3237
|
+
generateParamConfigMetadata('target_access_token', true, 2 /* Body */, 0 /* String */),
|
|
3238
|
+
generateParamConfigMetadata('operation_type', false, 2 /* Body */, 0 /* String */),
|
|
3239
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
3240
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
3241
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
3242
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
3243
|
+
];
|
|
3244
|
+
const loadDataToTargetOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, loadDataToTargetOrg_ConfigPropertyMetadata);
|
|
3245
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(loadDataToTargetOrg_ConfigPropertyMetadata);
|
|
3246
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
3247
|
+
const config = {};
|
|
3248
|
+
typeCheckConfig$b(untrustedConfig, config, loadDataToTargetOrg_ConfigPropertyMetadata);
|
|
3249
|
+
return config;
|
|
3250
|
+
}
|
|
3251
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
3252
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3253
|
+
return null;
|
|
3254
|
+
}
|
|
3255
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3256
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3257
|
+
}
|
|
3258
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
3259
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3260
|
+
return null;
|
|
3261
|
+
}
|
|
3262
|
+
return config;
|
|
3263
|
+
}
|
|
3264
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
3265
|
+
const resourceParams = createResourceParams$1(config);
|
|
3266
|
+
const request = createResourceRequest$1(resourceParams);
|
|
3267
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3268
|
+
.then((response) => {
|
|
3269
|
+
return luvio.handleSuccessResponse(() => {
|
|
3270
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
3271
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3272
|
+
}, () => {
|
|
3273
|
+
const cache = new StoreKeyMap();
|
|
3274
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
3275
|
+
return cache;
|
|
3276
|
+
});
|
|
3277
|
+
}, (response) => {
|
|
3278
|
+
deepFreeze(response);
|
|
3279
|
+
throw response;
|
|
3280
|
+
});
|
|
3281
|
+
}
|
|
3282
|
+
const loadDataToTargetOrgAdapterFactory = (luvio) => {
|
|
3283
|
+
return function loadDataToTargetOrg(untrustedConfig) {
|
|
3284
|
+
const config = validateAdapterConfig$1(untrustedConfig, loadDataToTargetOrg_ConfigPropertyNames);
|
|
3285
|
+
// Invalid or incomplete config
|
|
3286
|
+
if (config === null) {
|
|
3287
|
+
throw new Error('Invalid config for "loadDataToTargetOrg"');
|
|
3288
|
+
}
|
|
3289
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
3290
|
+
};
|
|
3291
|
+
};
|
|
3292
|
+
|
|
3293
|
+
function select(luvio, params) {
|
|
3294
|
+
return select$r();
|
|
3295
|
+
}
|
|
3296
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
3297
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
3298
|
+
}
|
|
3299
|
+
function ingestSuccess(luvio, resourceParams, response) {
|
|
3300
|
+
const { body } = response;
|
|
3301
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
3302
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3303
|
+
const snapshot = luvio.storeLookup({
|
|
3304
|
+
recordId: key,
|
|
3305
|
+
node: select(),
|
|
3306
|
+
variables: {},
|
|
3307
|
+
});
|
|
3308
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3309
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3310
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3311
|
+
}
|
|
3312
|
+
}
|
|
3313
|
+
deepFreeze(snapshot.data);
|
|
3314
|
+
return snapshot;
|
|
3315
|
+
}
|
|
3316
|
+
function createResourceRequest(config) {
|
|
3317
|
+
const headers = {};
|
|
3318
|
+
headers['x-client-trace-id'] = config.headers.xClientTraceId;
|
|
3319
|
+
headers['x-salesforce-region'] = config.headers.xSalesforceRegion;
|
|
3320
|
+
headers['Org-Url'] = config.headers.orgUrl;
|
|
3321
|
+
headers['Access-Token'] = config.headers.accessToken;
|
|
3322
|
+
return {
|
|
3323
|
+
baseUri: 'api.salesforce.com',
|
|
3324
|
+
basePath: '/platform/data-seed/v1/data-seed-migrate',
|
|
3325
|
+
method: 'post',
|
|
3326
|
+
body: config.body,
|
|
3327
|
+
urlParams: {},
|
|
3328
|
+
queryParams: {},
|
|
3329
|
+
headers,
|
|
3330
|
+
priority: 'normal',
|
|
3331
|
+
};
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
const adapterName = 'migrateData';
|
|
3335
|
+
const migrateData_ConfigPropertyMetadata = [
|
|
3336
|
+
generateParamConfigMetadata('source_instance_url', true, 2 /* Body */, 0 /* String */),
|
|
3337
|
+
generateParamConfigMetadata('source_access_token', true, 2 /* Body */, 0 /* String */),
|
|
3338
|
+
generateParamConfigMetadata('target_instance_url', true, 2 /* Body */, 0 /* String */),
|
|
3339
|
+
generateParamConfigMetadata('target_access_token', true, 2 /* Body */, 0 /* String */),
|
|
3340
|
+
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
3341
|
+
generateParamConfigMetadata('desc', true, 2 /* Body */, 0 /* String */),
|
|
3342
|
+
generateParamConfigMetadata('config', true, 2 /* Body */, 0 /* String */),
|
|
3343
|
+
generateParamConfigMetadata('mode', true, 2 /* Body */, 0 /* String */),
|
|
3344
|
+
generateParamConfigMetadata('xClientTraceId', true, 3 /* Header */, 0 /* String */),
|
|
3345
|
+
generateParamConfigMetadata('xSalesforceRegion', true, 3 /* Header */, 0 /* String */),
|
|
3346
|
+
generateParamConfigMetadata('orgUrl', true, 3 /* Header */, 0 /* String */),
|
|
3347
|
+
generateParamConfigMetadata('accessToken', true, 3 /* Header */, 0 /* String */),
|
|
3348
|
+
];
|
|
3349
|
+
const migrateData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, migrateData_ConfigPropertyMetadata);
|
|
3350
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$b(migrateData_ConfigPropertyMetadata);
|
|
3351
|
+
function typeCheckConfig(untrustedConfig) {
|
|
3352
|
+
const config = {};
|
|
3353
|
+
typeCheckConfig$b(untrustedConfig, config, migrateData_ConfigPropertyMetadata);
|
|
3354
|
+
return config;
|
|
3355
|
+
}
|
|
3356
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
3357
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3358
|
+
return null;
|
|
3359
|
+
}
|
|
3360
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3361
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3362
|
+
}
|
|
3363
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
3364
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3365
|
+
return null;
|
|
3366
|
+
}
|
|
3367
|
+
return config;
|
|
3368
|
+
}
|
|
3369
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
3370
|
+
const resourceParams = createResourceParams(config);
|
|
3371
|
+
const request = createResourceRequest(resourceParams);
|
|
3372
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3373
|
+
.then((response) => {
|
|
3374
|
+
return luvio.handleSuccessResponse(() => {
|
|
3375
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response);
|
|
3376
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3377
|
+
}, () => {
|
|
3378
|
+
const cache = new StoreKeyMap();
|
|
3379
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
3380
|
+
return cache;
|
|
3381
|
+
});
|
|
3382
|
+
}, (response) => {
|
|
3383
|
+
deepFreeze(response);
|
|
3384
|
+
throw response;
|
|
3385
|
+
});
|
|
3386
|
+
}
|
|
3387
|
+
const migrateDataAdapterFactory = (luvio) => {
|
|
3388
|
+
return function migrateData(untrustedConfig) {
|
|
3389
|
+
const config = validateAdapterConfig(untrustedConfig, migrateData_ConfigPropertyNames);
|
|
3390
|
+
// Invalid or incomplete config
|
|
3391
|
+
if (config === null) {
|
|
3392
|
+
throw new Error('Invalid config for "migrateData"');
|
|
3393
|
+
}
|
|
3394
|
+
return buildNetworkSnapshot(luvio, config);
|
|
3395
|
+
};
|
|
3396
|
+
};
|
|
3397
|
+
|
|
3398
|
+
let generateData;
|
|
3399
|
+
let getAuthCallbackStatus;
|
|
3400
|
+
let getDataSeedRequestStatus;
|
|
3401
|
+
let getDataSeedStatus;
|
|
3402
|
+
let getDownloadPreSignedUrl;
|
|
3403
|
+
let getOrgEntities;
|
|
3404
|
+
let getOrgEntitiesDetails;
|
|
3405
|
+
let getSalesforceOrgDetails;
|
|
3406
|
+
let getUploadPreSignedUrl;
|
|
3407
|
+
let loadDataToTargetOrg;
|
|
3408
|
+
let migrateData;
|
|
3409
|
+
// Imperative GET Adapters
|
|
3410
|
+
let getDataSeedStatus_imperative;
|
|
3411
|
+
const getDataSeedStatusMetadata = { apiFamily: 'dataseed', name: 'getDataSeedStatus' };
|
|
3412
|
+
// Notify Update Available
|
|
3413
|
+
function bindExportsTo(luvio) {
|
|
3414
|
+
// LDS Adapters
|
|
3415
|
+
const getDataSeedStatus_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataSeedStatus', getDataSeedStatusAdapterFactory), getDataSeedStatusMetadata);
|
|
3416
|
+
function unwrapSnapshotData(factory) {
|
|
3417
|
+
const adapter = factory(luvio);
|
|
3418
|
+
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
3419
|
+
}
|
|
3420
|
+
return {
|
|
3421
|
+
generateData: unwrapSnapshotData(generateDataAdapterFactory),
|
|
3422
|
+
getAuthCallbackStatus: unwrapSnapshotData(getAuthCallbackStatusAdapterFactory),
|
|
3423
|
+
getDataSeedRequestStatus: unwrapSnapshotData(getDataSeedRequestStatusAdapterFactory),
|
|
3424
|
+
getDataSeedStatus: createWireAdapterConstructor(luvio, getDataSeedStatus_ldsAdapter, getDataSeedStatusMetadata),
|
|
3425
|
+
getDownloadPreSignedUrl: unwrapSnapshotData(getDownloadPreSignedUrlAdapterFactory),
|
|
3426
|
+
getOrgEntities: unwrapSnapshotData(getOrgEntitiesAdapterFactory),
|
|
3427
|
+
getOrgEntitiesDetails: unwrapSnapshotData(getOrgEntitiesDetailsAdapterFactory),
|
|
3428
|
+
getSalesforceOrgDetails: unwrapSnapshotData(getSalesforceOrgDetailsAdapterFactory),
|
|
3429
|
+
getUploadPreSignedUrl: unwrapSnapshotData(getUploadPreSignedUrlAdapterFactory),
|
|
3430
|
+
loadDataToTargetOrg: unwrapSnapshotData(loadDataToTargetOrgAdapterFactory),
|
|
3431
|
+
migrateData: unwrapSnapshotData(migrateDataAdapterFactory),
|
|
3432
|
+
// Imperative GET Adapters
|
|
3433
|
+
getDataSeedStatus_imperative: createImperativeAdapter(luvio, getDataSeedStatus_ldsAdapter, getDataSeedStatusMetadata),
|
|
3434
|
+
// Notify Update Availables
|
|
3435
|
+
};
|
|
3436
|
+
}
|
|
3437
|
+
withDefaultLuvio((luvio) => {
|
|
3438
|
+
({
|
|
3439
|
+
generateData,
|
|
3440
|
+
getAuthCallbackStatus,
|
|
3441
|
+
getDataSeedRequestStatus,
|
|
3442
|
+
getDataSeedStatus,
|
|
3443
|
+
getDownloadPreSignedUrl,
|
|
3444
|
+
getOrgEntities,
|
|
3445
|
+
getOrgEntitiesDetails,
|
|
3446
|
+
getSalesforceOrgDetails,
|
|
3447
|
+
getUploadPreSignedUrl,
|
|
3448
|
+
loadDataToTargetOrg,
|
|
3449
|
+
migrateData,
|
|
3450
|
+
getDataSeedStatus_imperative,
|
|
3451
|
+
} = bindExportsTo(luvio));
|
|
3452
|
+
});
|
|
3453
|
+
|
|
3454
|
+
export { generateData, getAuthCallbackStatus, getDataSeedRequestStatus, getDataSeedStatus, getDataSeedStatus_imperative, getDownloadPreSignedUrl, getOrgEntities, getOrgEntitiesDetails, getSalesforceOrgDetails, getUploadPreSignedUrl, loadDataToTargetOrg, migrateData };
|
|
3455
|
+
// version: 0.1.0-dev1-c978a7b010
|