@salesforce/lds-adapters-platform-external-connectivity 1.404.0-dev2 → 1.404.0-dev21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-external-connectivity.js +671 -215
- package/dist/es/es2018/types/src/generated/adapters/createConnection.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/adapters/getNamedCredentialConfig.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/updateConnection.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getExternalConnectivityConnectionsNamedCredentialsByNamedCredentialName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postExternalConnectivityConnections.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/putExternalConnectivityConnectionsByConnectionDeveloperName.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/ExternalConnectivityConnectionInputRepresentation.d.ts +13 -3
- package/dist/es/es2018/types/src/generated/types/ExternalConnectivityGetNamedCredentialResultRepresentation.d.ts +53 -0
- package/package.json +3 -3
- package/sfdc/index.js +1243 -775
- package/src/raml/api.raml +58 -0
- package/src/raml/luvio.raml +8 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$d, typeCheckConfig as typeCheckConfig$d, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -103,7 +103,7 @@ function createLink(ref) {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
function validate$
|
|
106
|
+
function validate$o(obj, path = 'AuthenticationTypeInputRepresentation') {
|
|
107
107
|
const v_error = (() => {
|
|
108
108
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
109
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -129,9 +129,9 @@ function validate$n(obj, path = 'AuthenticationTypeInputRepresentation') {
|
|
|
129
129
|
return v_error === undefined ? null : v_error;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
const TTL$
|
|
133
|
-
const VERSION$
|
|
134
|
-
function validate$
|
|
132
|
+
const TTL$d = 500;
|
|
133
|
+
const VERSION$e = "139e6c6cae3db78f5efabb1639252ac2";
|
|
134
|
+
function validate$n(obj, path = 'ExternalConnectivityConnectionCreatedRepresentation') {
|
|
135
135
|
const v_error = (() => {
|
|
136
136
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
137
137
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -144,23 +144,23 @@ function validate$m(obj, path = 'ExternalConnectivityConnectionCreatedRepresenta
|
|
|
144
144
|
})();
|
|
145
145
|
return v_error === undefined ? null : v_error;
|
|
146
146
|
}
|
|
147
|
-
const RepresentationType$
|
|
148
|
-
function keyBuilder$
|
|
149
|
-
return keyPrefix + '::' + RepresentationType$
|
|
147
|
+
const RepresentationType$e = 'ExternalConnectivityConnectionCreatedRepresentation';
|
|
148
|
+
function keyBuilder$l(luvio, config) {
|
|
149
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.developerName;
|
|
150
150
|
}
|
|
151
151
|
function keyBuilderFromType$5(luvio, object) {
|
|
152
152
|
const keyParams = {
|
|
153
153
|
developerName: object.developerName
|
|
154
154
|
};
|
|
155
|
-
return keyBuilder$
|
|
155
|
+
return keyBuilder$l(luvio, keyParams);
|
|
156
156
|
}
|
|
157
|
-
function normalize$
|
|
157
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
158
158
|
return input;
|
|
159
159
|
}
|
|
160
|
-
const select$
|
|
160
|
+
const select$r = function ExternalConnectivityConnectionCreatedRepresentationSelect() {
|
|
161
161
|
return {
|
|
162
162
|
kind: 'Fragment',
|
|
163
|
-
version: VERSION$
|
|
163
|
+
version: VERSION$e,
|
|
164
164
|
private: [],
|
|
165
165
|
selections: [
|
|
166
166
|
{
|
|
@@ -170,7 +170,7 @@ const select$p = function ExternalConnectivityConnectionCreatedRepresentationSel
|
|
|
170
170
|
]
|
|
171
171
|
};
|
|
172
172
|
};
|
|
173
|
-
function equals$
|
|
173
|
+
function equals$e(existing, incoming) {
|
|
174
174
|
const existing_developerName = existing.developerName;
|
|
175
175
|
const incoming_developerName = incoming.developerName;
|
|
176
176
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -178,41 +178,41 @@ function equals$d(existing, incoming) {
|
|
|
178
178
|
}
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
|
-
const ingest$
|
|
181
|
+
const ingest$e = function ExternalConnectivityConnectionCreatedRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
182
182
|
if (process.env.NODE_ENV !== 'production') {
|
|
183
|
-
const validateError = validate$
|
|
183
|
+
const validateError = validate$n(input);
|
|
184
184
|
if (validateError !== null) {
|
|
185
185
|
throw validateError;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
const key = keyBuilderFromType$5(luvio, input);
|
|
189
|
-
const ttlToUse = TTL$
|
|
190
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
189
|
+
const ttlToUse = TTL$d;
|
|
190
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "external-connectivity", VERSION$e, RepresentationType$e, equals$e);
|
|
191
191
|
return createLink(key);
|
|
192
192
|
};
|
|
193
|
-
function getTypeCacheKeys$
|
|
193
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
194
194
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
195
195
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
196
196
|
rootKeySet.set(rootKey, {
|
|
197
197
|
namespace: keyPrefix,
|
|
198
|
-
representationName: RepresentationType$
|
|
198
|
+
representationName: RepresentationType$e,
|
|
199
199
|
mergeable: false
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
function select$
|
|
204
|
-
return select$
|
|
203
|
+
function select$q(luvio, params) {
|
|
204
|
+
return select$r();
|
|
205
205
|
}
|
|
206
|
-
function getResponseCacheKeys$
|
|
207
|
-
getTypeCacheKeys$
|
|
206
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
207
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
208
208
|
}
|
|
209
|
-
function ingestSuccess$
|
|
209
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
210
210
|
const { body } = response;
|
|
211
211
|
const key = keyBuilderFromType$5(luvio, body);
|
|
212
|
-
luvio.storeIngest(key, ingest$
|
|
212
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
213
213
|
const snapshot = luvio.storeLookup({
|
|
214
214
|
recordId: key,
|
|
215
|
-
node: select$
|
|
215
|
+
node: select$q(),
|
|
216
216
|
variables: {},
|
|
217
217
|
});
|
|
218
218
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -223,7 +223,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
223
223
|
deepFreeze(snapshot.data);
|
|
224
224
|
return snapshot;
|
|
225
225
|
}
|
|
226
|
-
function createResourceRequest$
|
|
226
|
+
function createResourceRequest$c(config) {
|
|
227
227
|
const headers = {};
|
|
228
228
|
return {
|
|
229
229
|
baseUri: '/services/data/v66.0',
|
|
@@ -237,21 +237,23 @@ function createResourceRequest$b(config) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
const adapterName$
|
|
240
|
+
const adapterName$c = 'createConnection';
|
|
241
241
|
const createConnection_ConfigPropertyMetadata = [
|
|
242
|
-
generateParamConfigMetadata('authenticationTypeInput',
|
|
242
|
+
generateParamConfigMetadata('authenticationTypeInput', false, 2 /* Body */, 4 /* Unsupported */),
|
|
243
243
|
generateParamConfigMetadata('agentActionEnabled', false, 2 /* Body */, 4 /* Unsupported */),
|
|
244
244
|
generateParamConfigMetadata('connectorDeveloperName', true, 2 /* Body */, 0 /* String */),
|
|
245
245
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
246
246
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
247
|
+
generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
|
|
248
|
+
generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
247
249
|
];
|
|
248
|
-
const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
249
|
-
const createResourceParams$
|
|
250
|
-
function typeCheckConfig$
|
|
250
|
+
const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createConnection_ConfigPropertyMetadata);
|
|
251
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(createConnection_ConfigPropertyMetadata);
|
|
252
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
251
253
|
const config = {};
|
|
252
|
-
typeCheckConfig$
|
|
254
|
+
typeCheckConfig$d(untrustedConfig, config, createConnection_ConfigPropertyMetadata);
|
|
253
255
|
const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
|
|
254
|
-
const referenceAuthenticationTypeInputRepresentationValidationError = validate$
|
|
256
|
+
const referenceAuthenticationTypeInputRepresentationValidationError = validate$o(untrustedConfig_authenticationTypeInput);
|
|
255
257
|
if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
|
|
256
258
|
config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
|
|
257
259
|
}
|
|
@@ -262,32 +264,47 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
262
264
|
if (untrustedConfig_agentActionEnabled === null) {
|
|
263
265
|
config.agentActionEnabled = untrustedConfig_agentActionEnabled;
|
|
264
266
|
}
|
|
267
|
+
const untrustedConfig_connectionParameters = untrustedConfig.connectionParameters;
|
|
268
|
+
if (untrustedIsObject(untrustedConfig_connectionParameters)) {
|
|
269
|
+
const untrustedConfig_connectionParameters_object = {};
|
|
270
|
+
const untrustedConfig_connectionParameters_keys = Object.keys(untrustedConfig_connectionParameters);
|
|
271
|
+
for (let i = 0, arrayLength = untrustedConfig_connectionParameters_keys.length; i < arrayLength; i++) {
|
|
272
|
+
const key = untrustedConfig_connectionParameters_keys[i];
|
|
273
|
+
const untrustedConfig_connectionParameters_prop = untrustedConfig_connectionParameters[key];
|
|
274
|
+
if (untrustedConfig_connectionParameters_object !== undefined) {
|
|
275
|
+
untrustedConfig_connectionParameters_object[key] = untrustedConfig_connectionParameters_prop;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
if (untrustedConfig_connectionParameters_object !== undefined && Object.keys(untrustedConfig_connectionParameters_object).length >= 0) {
|
|
279
|
+
config.connectionParameters = untrustedConfig_connectionParameters_object;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
265
282
|
return config;
|
|
266
283
|
}
|
|
267
|
-
function validateAdapterConfig$
|
|
284
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
268
285
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
269
286
|
return null;
|
|
270
287
|
}
|
|
271
288
|
if (process.env.NODE_ENV !== 'production') {
|
|
272
289
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
273
290
|
}
|
|
274
|
-
const config = typeCheckConfig$
|
|
291
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
275
292
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
276
293
|
return null;
|
|
277
294
|
}
|
|
278
295
|
return config;
|
|
279
296
|
}
|
|
280
|
-
function buildNetworkSnapshot$
|
|
281
|
-
const resourceParams = createResourceParams$
|
|
282
|
-
const request = createResourceRequest$
|
|
297
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
298
|
+
const resourceParams = createResourceParams$c(config);
|
|
299
|
+
const request = createResourceRequest$c(resourceParams);
|
|
283
300
|
return luvio.dispatchResourceRequest(request, options)
|
|
284
301
|
.then((response) => {
|
|
285
302
|
return luvio.handleSuccessResponse(() => {
|
|
286
|
-
const snapshot = ingestSuccess$
|
|
303
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
287
304
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
288
305
|
}, () => {
|
|
289
306
|
const cache = new StoreKeyMap();
|
|
290
|
-
getResponseCacheKeys$
|
|
307
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
291
308
|
return cache;
|
|
292
309
|
});
|
|
293
310
|
}, (response) => {
|
|
@@ -297,18 +314,18 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
297
314
|
}
|
|
298
315
|
const createConnectionAdapterFactory = (luvio) => {
|
|
299
316
|
return function createConnection(untrustedConfig) {
|
|
300
|
-
const config = validateAdapterConfig$
|
|
317
|
+
const config = validateAdapterConfig$c(untrustedConfig, createConnection_ConfigPropertyNames);
|
|
301
318
|
// Invalid or incomplete config
|
|
302
319
|
if (config === null) {
|
|
303
320
|
throw new Error('Invalid config for "createConnection"');
|
|
304
321
|
}
|
|
305
|
-
return buildNetworkSnapshot$
|
|
322
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
306
323
|
};
|
|
307
324
|
};
|
|
308
325
|
|
|
309
|
-
const TTL$
|
|
310
|
-
const VERSION$
|
|
311
|
-
function validate$
|
|
326
|
+
const TTL$c = 500;
|
|
327
|
+
const VERSION$d = "2f8128d7e2e433bc604c71441fa6fc50";
|
|
328
|
+
function validate$m(obj, path = 'ExternalConnectivityConnectionEditDeleteResultRepresentation') {
|
|
312
329
|
const v_error = (() => {
|
|
313
330
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
314
331
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -373,23 +390,23 @@ function validate$l(obj, path = 'ExternalConnectivityConnectionEditDeleteResultR
|
|
|
373
390
|
})();
|
|
374
391
|
return v_error === undefined ? null : v_error;
|
|
375
392
|
}
|
|
376
|
-
const RepresentationType$
|
|
377
|
-
function keyBuilder$
|
|
378
|
-
return keyPrefix + '::' + RepresentationType$
|
|
393
|
+
const RepresentationType$d = 'ExternalConnectivityConnectionEditDeleteResultRepresentation';
|
|
394
|
+
function keyBuilder$k(luvio, config) {
|
|
395
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.developerName;
|
|
379
396
|
}
|
|
380
397
|
function keyBuilderFromType$4(luvio, object) {
|
|
381
398
|
const keyParams = {
|
|
382
399
|
developerName: object.developerName
|
|
383
400
|
};
|
|
384
|
-
return keyBuilder$
|
|
401
|
+
return keyBuilder$k(luvio, keyParams);
|
|
385
402
|
}
|
|
386
|
-
function normalize$
|
|
403
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
387
404
|
return input;
|
|
388
405
|
}
|
|
389
|
-
const select$
|
|
406
|
+
const select$p = function ExternalConnectivityConnectionEditDeleteResultRepresentationSelect() {
|
|
390
407
|
return {
|
|
391
408
|
kind: 'Fragment',
|
|
392
|
-
version: VERSION$
|
|
409
|
+
version: VERSION$d,
|
|
393
410
|
private: [],
|
|
394
411
|
selections: [
|
|
395
412
|
{
|
|
@@ -407,7 +424,7 @@ const select$n = function ExternalConnectivityConnectionEditDeleteResultRepresen
|
|
|
407
424
|
]
|
|
408
425
|
};
|
|
409
426
|
};
|
|
410
|
-
function equals$
|
|
427
|
+
function equals$d(existing, incoming) {
|
|
411
428
|
const existing_developerName = existing.developerName;
|
|
412
429
|
const incoming_developerName = incoming.developerName;
|
|
413
430
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -425,41 +442,41 @@ function equals$c(existing, incoming) {
|
|
|
425
442
|
}
|
|
426
443
|
return true;
|
|
427
444
|
}
|
|
428
|
-
const ingest$
|
|
445
|
+
const ingest$d = function ExternalConnectivityConnectionEditDeleteResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
429
446
|
if (process.env.NODE_ENV !== 'production') {
|
|
430
|
-
const validateError = validate$
|
|
447
|
+
const validateError = validate$m(input);
|
|
431
448
|
if (validateError !== null) {
|
|
432
449
|
throw validateError;
|
|
433
450
|
}
|
|
434
451
|
}
|
|
435
452
|
const key = keyBuilderFromType$4(luvio, input);
|
|
436
|
-
const ttlToUse = TTL$
|
|
437
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
453
|
+
const ttlToUse = TTL$c;
|
|
454
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "external-connectivity", VERSION$d, RepresentationType$d, equals$d);
|
|
438
455
|
return createLink(key);
|
|
439
456
|
};
|
|
440
|
-
function getTypeCacheKeys$
|
|
457
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
441
458
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
442
459
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
443
460
|
rootKeySet.set(rootKey, {
|
|
444
461
|
namespace: keyPrefix,
|
|
445
|
-
representationName: RepresentationType$
|
|
462
|
+
representationName: RepresentationType$d,
|
|
446
463
|
mergeable: false
|
|
447
464
|
});
|
|
448
465
|
}
|
|
449
466
|
|
|
450
|
-
function select$
|
|
451
|
-
return select$
|
|
467
|
+
function select$o(luvio, params) {
|
|
468
|
+
return select$p();
|
|
452
469
|
}
|
|
453
|
-
function getResponseCacheKeys$
|
|
454
|
-
getTypeCacheKeys$
|
|
470
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
471
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
455
472
|
}
|
|
456
|
-
function ingestSuccess$
|
|
473
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
457
474
|
const { body } = response;
|
|
458
475
|
const key = keyBuilderFromType$4(luvio, body);
|
|
459
|
-
luvio.storeIngest(key, ingest$
|
|
476
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
460
477
|
const snapshot = luvio.storeLookup({
|
|
461
478
|
recordId: key,
|
|
462
|
-
node: select$
|
|
479
|
+
node: select$o(),
|
|
463
480
|
variables: {},
|
|
464
481
|
});
|
|
465
482
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -470,7 +487,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
470
487
|
deepFreeze(snapshot.data);
|
|
471
488
|
return snapshot;
|
|
472
489
|
}
|
|
473
|
-
function createResourceRequest$
|
|
490
|
+
function createResourceRequest$b(config) {
|
|
474
491
|
const headers = {};
|
|
475
492
|
return {
|
|
476
493
|
baseUri: '/services/data/v66.0',
|
|
@@ -484,41 +501,41 @@ function createResourceRequest$a(config) {
|
|
|
484
501
|
};
|
|
485
502
|
}
|
|
486
503
|
|
|
487
|
-
const adapterName$
|
|
504
|
+
const adapterName$b = 'deleteConnection';
|
|
488
505
|
const deleteConnection_ConfigPropertyMetadata = [
|
|
489
506
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
490
507
|
];
|
|
491
|
-
const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
492
|
-
const createResourceParams$
|
|
493
|
-
function typeCheckConfig$
|
|
508
|
+
const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deleteConnection_ConfigPropertyMetadata);
|
|
509
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(deleteConnection_ConfigPropertyMetadata);
|
|
510
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
494
511
|
const config = {};
|
|
495
|
-
typeCheckConfig$
|
|
512
|
+
typeCheckConfig$d(untrustedConfig, config, deleteConnection_ConfigPropertyMetadata);
|
|
496
513
|
return config;
|
|
497
514
|
}
|
|
498
|
-
function validateAdapterConfig$
|
|
515
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
499
516
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
500
517
|
return null;
|
|
501
518
|
}
|
|
502
519
|
if (process.env.NODE_ENV !== 'production') {
|
|
503
520
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
504
521
|
}
|
|
505
|
-
const config = typeCheckConfig$
|
|
522
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
506
523
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
507
524
|
return null;
|
|
508
525
|
}
|
|
509
526
|
return config;
|
|
510
527
|
}
|
|
511
|
-
function buildNetworkSnapshot$
|
|
512
|
-
const resourceParams = createResourceParams$
|
|
513
|
-
const request = createResourceRequest$
|
|
528
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
529
|
+
const resourceParams = createResourceParams$b(config);
|
|
530
|
+
const request = createResourceRequest$b(resourceParams);
|
|
514
531
|
return luvio.dispatchResourceRequest(request, options)
|
|
515
532
|
.then((response) => {
|
|
516
533
|
return luvio.handleSuccessResponse(() => {
|
|
517
|
-
const snapshot = ingestSuccess$
|
|
534
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
518
535
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
519
536
|
}, () => {
|
|
520
537
|
const cache = new StoreKeyMap();
|
|
521
|
-
getResponseCacheKeys$
|
|
538
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
522
539
|
return cache;
|
|
523
540
|
});
|
|
524
541
|
}, (response) => {
|
|
@@ -528,16 +545,16 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
528
545
|
}
|
|
529
546
|
const deleteConnectionAdapterFactory = (luvio) => {
|
|
530
547
|
return function deleteConnection(untrustedConfig) {
|
|
531
|
-
const config = validateAdapterConfig$
|
|
548
|
+
const config = validateAdapterConfig$b(untrustedConfig, deleteConnection_ConfigPropertyNames);
|
|
532
549
|
// Invalid or incomplete config
|
|
533
550
|
if (config === null) {
|
|
534
551
|
throw new Error('Invalid config for "deleteConnection"');
|
|
535
552
|
}
|
|
536
|
-
return buildNetworkSnapshot$
|
|
553
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
537
554
|
};
|
|
538
555
|
};
|
|
539
556
|
|
|
540
|
-
function validate$
|
|
557
|
+
function validate$l(obj, path = 'AuthenticationParameterDefinitionRepresentation') {
|
|
541
558
|
const v_error = (() => {
|
|
542
559
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
543
560
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -607,14 +624,14 @@ function validate$k(obj, path = 'AuthenticationParameterDefinitionRepresentation
|
|
|
607
624
|
return v_error === undefined ? null : v_error;
|
|
608
625
|
}
|
|
609
626
|
|
|
610
|
-
function validate$
|
|
627
|
+
function validate$k(obj, path = 'AuthenticationParameterRepresentation') {
|
|
611
628
|
const v_error = (() => {
|
|
612
629
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
613
630
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
614
631
|
}
|
|
615
632
|
const obj_authenticationParameterDefinition = obj.authenticationParameterDefinition;
|
|
616
633
|
const path_authenticationParameterDefinition = path + '.authenticationParameterDefinition';
|
|
617
|
-
const referencepath_authenticationParameterDefinitionValidationError = validate$
|
|
634
|
+
const referencepath_authenticationParameterDefinitionValidationError = validate$l(obj_authenticationParameterDefinition, path_authenticationParameterDefinition);
|
|
618
635
|
if (referencepath_authenticationParameterDefinitionValidationError !== null) {
|
|
619
636
|
let message = 'Object doesn\'t match AuthenticationParameterDefinitionRepresentation (at "' + path_authenticationParameterDefinition + '")\n';
|
|
620
637
|
message += referencepath_authenticationParameterDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -629,7 +646,7 @@ function validate$j(obj, path = 'AuthenticationParameterRepresentation') {
|
|
|
629
646
|
return v_error === undefined ? null : v_error;
|
|
630
647
|
}
|
|
631
648
|
|
|
632
|
-
function validate$
|
|
649
|
+
function validate$j(obj, path = 'AuthenticationTypeRepresentation') {
|
|
633
650
|
const v_error = (() => {
|
|
634
651
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
635
652
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -642,7 +659,7 @@ function validate$i(obj, path = 'AuthenticationTypeRepresentation') {
|
|
|
642
659
|
for (let i = 0; i < obj_authenticationParameters.length; i++) {
|
|
643
660
|
const obj_authenticationParameters_item = obj_authenticationParameters[i];
|
|
644
661
|
const path_authenticationParameters_item = path_authenticationParameters + '[' + i + ']';
|
|
645
|
-
const referencepath_authenticationParameters_itemValidationError = validate$
|
|
662
|
+
const referencepath_authenticationParameters_itemValidationError = validate$k(obj_authenticationParameters_item, path_authenticationParameters_item);
|
|
646
663
|
if (referencepath_authenticationParameters_itemValidationError !== null) {
|
|
647
664
|
let message = 'Object doesn\'t match AuthenticationParameterRepresentation (at "' + path_authenticationParameters_item + '")\n';
|
|
648
665
|
message += referencepath_authenticationParameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -658,7 +675,7 @@ function validate$i(obj, path = 'AuthenticationTypeRepresentation') {
|
|
|
658
675
|
return v_error === undefined ? null : v_error;
|
|
659
676
|
}
|
|
660
677
|
|
|
661
|
-
function validate$
|
|
678
|
+
function validate$i(obj, path = 'ConnectorIconMetadataRepresentation') {
|
|
662
679
|
const v_error = (() => {
|
|
663
680
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
664
681
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -682,9 +699,9 @@ function validate$h(obj, path = 'ConnectorIconMetadataRepresentation') {
|
|
|
682
699
|
return v_error === undefined ? null : v_error;
|
|
683
700
|
}
|
|
684
701
|
|
|
685
|
-
const TTL$
|
|
686
|
-
const VERSION$
|
|
687
|
-
function validate$
|
|
702
|
+
const TTL$b = 500;
|
|
703
|
+
const VERSION$c = "3e461ecbd697039c1881e691a2ee7bef";
|
|
704
|
+
function validate$h(obj, path = 'ExternalConnectivityConnectorRepresentation') {
|
|
688
705
|
const v_error = (() => {
|
|
689
706
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
690
707
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -712,7 +729,7 @@ function validate$g(obj, path = 'ExternalConnectivityConnectorRepresentation') {
|
|
|
712
729
|
for (let i = 0; i < obj_iconMetadata.length; i++) {
|
|
713
730
|
const obj_iconMetadata_item = obj_iconMetadata[i];
|
|
714
731
|
const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
|
|
715
|
-
const referencepath_iconMetadata_itemValidationError = validate$
|
|
732
|
+
const referencepath_iconMetadata_itemValidationError = validate$i(obj_iconMetadata_item, path_iconMetadata_item);
|
|
716
733
|
if (referencepath_iconMetadata_itemValidationError !== null) {
|
|
717
734
|
let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
|
|
718
735
|
message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -752,49 +769,49 @@ function validate$g(obj, path = 'ExternalConnectivityConnectorRepresentation') {
|
|
|
752
769
|
})();
|
|
753
770
|
return v_error === undefined ? null : v_error;
|
|
754
771
|
}
|
|
755
|
-
const RepresentationType$
|
|
756
|
-
function normalize$
|
|
772
|
+
const RepresentationType$c = 'ExternalConnectivityConnectorRepresentation';
|
|
773
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
757
774
|
return input;
|
|
758
775
|
}
|
|
759
|
-
const select$
|
|
776
|
+
const select$n = function ExternalConnectivityConnectorRepresentationSelect() {
|
|
760
777
|
return {
|
|
761
778
|
kind: 'Fragment',
|
|
762
|
-
version: VERSION$
|
|
779
|
+
version: VERSION$c,
|
|
763
780
|
private: [],
|
|
764
781
|
opaque: true
|
|
765
782
|
};
|
|
766
783
|
};
|
|
767
|
-
function equals$
|
|
784
|
+
function equals$c(existing, incoming) {
|
|
768
785
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
769
786
|
return false;
|
|
770
787
|
}
|
|
771
788
|
return true;
|
|
772
789
|
}
|
|
773
|
-
const ingest$
|
|
790
|
+
const ingest$c = function ExternalConnectivityConnectorRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
774
791
|
if (process.env.NODE_ENV !== 'production') {
|
|
775
|
-
const validateError = validate$
|
|
792
|
+
const validateError = validate$h(input);
|
|
776
793
|
if (validateError !== null) {
|
|
777
794
|
throw validateError;
|
|
778
795
|
}
|
|
779
796
|
}
|
|
780
797
|
const key = path.fullPath;
|
|
781
|
-
const ttlToUse = TTL$
|
|
782
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
798
|
+
const ttlToUse = TTL$b;
|
|
799
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "external-connectivity", VERSION$c, RepresentationType$c, equals$c);
|
|
783
800
|
return createLink(key);
|
|
784
801
|
};
|
|
785
|
-
function getTypeCacheKeys$
|
|
802
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
786
803
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
787
804
|
const rootKey = fullPathFactory();
|
|
788
805
|
rootKeySet.set(rootKey, {
|
|
789
806
|
namespace: keyPrefix,
|
|
790
|
-
representationName: RepresentationType$
|
|
807
|
+
representationName: RepresentationType$c,
|
|
791
808
|
mergeable: false
|
|
792
809
|
});
|
|
793
810
|
}
|
|
794
811
|
|
|
795
|
-
const TTL$
|
|
796
|
-
const VERSION$
|
|
797
|
-
function validate$
|
|
812
|
+
const TTL$a = 500;
|
|
813
|
+
const VERSION$b = "f4779ee578433586f3d374d1dbf4cf6a";
|
|
814
|
+
function validate$g(obj, path = 'ExternalConnectivityConnectionDetailsRepresentation') {
|
|
798
815
|
const v_error = (() => {
|
|
799
816
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
800
817
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -829,7 +846,7 @@ function validate$f(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
829
846
|
}
|
|
830
847
|
const obj_authenticationType = obj.authenticationType;
|
|
831
848
|
const path_authenticationType = path + '.authenticationType';
|
|
832
|
-
const referencepath_authenticationTypeValidationError = validate$
|
|
849
|
+
const referencepath_authenticationTypeValidationError = validate$j(obj_authenticationType, path_authenticationType);
|
|
833
850
|
if (referencepath_authenticationTypeValidationError !== null) {
|
|
834
851
|
let message = 'Object doesn\'t match AuthenticationTypeRepresentation (at "' + path_authenticationType + '")\n';
|
|
835
852
|
message += referencepath_authenticationTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -888,7 +905,7 @@ function validate$f(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
888
905
|
}
|
|
889
906
|
const obj_externalConnectorMetadata = obj.externalConnectorMetadata;
|
|
890
907
|
const path_externalConnectorMetadata = path + '.externalConnectorMetadata';
|
|
891
|
-
const referencepath_externalConnectorMetadataValidationError = validate$
|
|
908
|
+
const referencepath_externalConnectorMetadataValidationError = validate$h(obj_externalConnectorMetadata, path_externalConnectorMetadata);
|
|
892
909
|
if (referencepath_externalConnectorMetadataValidationError !== null) {
|
|
893
910
|
let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_externalConnectorMetadata + '")\n';
|
|
894
911
|
message += referencepath_externalConnectorMetadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -943,62 +960,62 @@ function validate$f(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
943
960
|
})();
|
|
944
961
|
return v_error === undefined ? null : v_error;
|
|
945
962
|
}
|
|
946
|
-
const RepresentationType$
|
|
947
|
-
function normalize$
|
|
963
|
+
const RepresentationType$b = 'ExternalConnectivityConnectionDetailsRepresentation';
|
|
964
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
948
965
|
return input;
|
|
949
966
|
}
|
|
950
|
-
const select$
|
|
967
|
+
const select$m = function ExternalConnectivityConnectionDetailsRepresentationSelect() {
|
|
951
968
|
return {
|
|
952
969
|
kind: 'Fragment',
|
|
953
|
-
version: VERSION$
|
|
970
|
+
version: VERSION$b,
|
|
954
971
|
private: [],
|
|
955
972
|
opaque: true
|
|
956
973
|
};
|
|
957
974
|
};
|
|
958
|
-
function equals$
|
|
975
|
+
function equals$b(existing, incoming) {
|
|
959
976
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
960
977
|
return false;
|
|
961
978
|
}
|
|
962
979
|
return true;
|
|
963
980
|
}
|
|
964
|
-
const ingest$
|
|
981
|
+
const ingest$b = function ExternalConnectivityConnectionDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
965
982
|
if (process.env.NODE_ENV !== 'production') {
|
|
966
|
-
const validateError = validate$
|
|
983
|
+
const validateError = validate$g(input);
|
|
967
984
|
if (validateError !== null) {
|
|
968
985
|
throw validateError;
|
|
969
986
|
}
|
|
970
987
|
}
|
|
971
988
|
const key = path.fullPath;
|
|
972
|
-
const ttlToUse = TTL$
|
|
973
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
989
|
+
const ttlToUse = TTL$a;
|
|
990
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "external-connectivity", VERSION$b, RepresentationType$b, equals$b);
|
|
974
991
|
return createLink(key);
|
|
975
992
|
};
|
|
976
|
-
function getTypeCacheKeys$
|
|
993
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
977
994
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
978
995
|
const rootKey = fullPathFactory();
|
|
979
996
|
rootKeySet.set(rootKey, {
|
|
980
997
|
namespace: keyPrefix,
|
|
981
|
-
representationName: RepresentationType$
|
|
998
|
+
representationName: RepresentationType$b,
|
|
982
999
|
mergeable: false
|
|
983
1000
|
});
|
|
984
1001
|
}
|
|
985
1002
|
|
|
986
|
-
function select$
|
|
987
|
-
return select$
|
|
1003
|
+
function select$l(luvio, params) {
|
|
1004
|
+
return select$m();
|
|
988
1005
|
}
|
|
989
|
-
function keyBuilder$
|
|
1006
|
+
function keyBuilder$j(luvio, params) {
|
|
990
1007
|
return keyPrefix + '::ExternalConnectivityConnectionDetailsRepresentation:(' + 'connectionDeveloperName:' + params.urlParams.connectionDeveloperName + ')';
|
|
991
1008
|
}
|
|
992
|
-
function getResponseCacheKeys$
|
|
993
|
-
getTypeCacheKeys$
|
|
1009
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
1010
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
994
1011
|
}
|
|
995
|
-
function ingestSuccess$
|
|
1012
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
996
1013
|
const { body } = response;
|
|
997
|
-
const key = keyBuilder$
|
|
998
|
-
luvio.storeIngest(key, ingest$
|
|
1014
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
1015
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
999
1016
|
const snapshot = luvio.storeLookup({
|
|
1000
1017
|
recordId: key,
|
|
1001
|
-
node: select$
|
|
1018
|
+
node: select$l(),
|
|
1002
1019
|
variables: {},
|
|
1003
1020
|
}, snapshotRefresh);
|
|
1004
1021
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1009,19 +1026,19 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1009
1026
|
deepFreeze(snapshot.data);
|
|
1010
1027
|
return snapshot;
|
|
1011
1028
|
}
|
|
1012
|
-
function ingestError$
|
|
1013
|
-
const key = keyBuilder$
|
|
1029
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
1030
|
+
const key = keyBuilder$j(luvio, params);
|
|
1014
1031
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1015
1032
|
const storeMetadataParams = {
|
|
1016
|
-
ttl: TTL$
|
|
1033
|
+
ttl: TTL$a,
|
|
1017
1034
|
namespace: keyPrefix,
|
|
1018
|
-
version: VERSION$
|
|
1019
|
-
representationName: RepresentationType$
|
|
1035
|
+
version: VERSION$b,
|
|
1036
|
+
representationName: RepresentationType$b
|
|
1020
1037
|
};
|
|
1021
1038
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1022
1039
|
return errorSnapshot;
|
|
1023
1040
|
}
|
|
1024
|
-
function createResourceRequest$
|
|
1041
|
+
function createResourceRequest$a(config) {
|
|
1025
1042
|
const headers = {};
|
|
1026
1043
|
return {
|
|
1027
1044
|
baseUri: '/services/data/v66.0',
|
|
@@ -1035,94 +1052,94 @@ function createResourceRequest$9(config) {
|
|
|
1035
1052
|
};
|
|
1036
1053
|
}
|
|
1037
1054
|
|
|
1038
|
-
const adapterName$
|
|
1055
|
+
const adapterName$a = 'getConnectionDetails';
|
|
1039
1056
|
const getConnectionDetails_ConfigPropertyMetadata = [
|
|
1040
1057
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1041
1058
|
];
|
|
1042
|
-
const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1043
|
-
const createResourceParams$
|
|
1044
|
-
function keyBuilder$
|
|
1045
|
-
const resourceParams = createResourceParams$
|
|
1046
|
-
return keyBuilder$
|
|
1059
|
+
const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getConnectionDetails_ConfigPropertyMetadata);
|
|
1060
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(getConnectionDetails_ConfigPropertyMetadata);
|
|
1061
|
+
function keyBuilder$i(luvio, config) {
|
|
1062
|
+
const resourceParams = createResourceParams$a(config);
|
|
1063
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
1047
1064
|
}
|
|
1048
|
-
function typeCheckConfig$
|
|
1065
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
1049
1066
|
const config = {};
|
|
1050
|
-
typeCheckConfig$
|
|
1067
|
+
typeCheckConfig$d(untrustedConfig, config, getConnectionDetails_ConfigPropertyMetadata);
|
|
1051
1068
|
return config;
|
|
1052
1069
|
}
|
|
1053
|
-
function validateAdapterConfig$
|
|
1070
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
1054
1071
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1055
1072
|
return null;
|
|
1056
1073
|
}
|
|
1057
1074
|
if (process.env.NODE_ENV !== 'production') {
|
|
1058
1075
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1059
1076
|
}
|
|
1060
|
-
const config = typeCheckConfig$
|
|
1077
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
1061
1078
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1062
1079
|
return null;
|
|
1063
1080
|
}
|
|
1064
1081
|
return config;
|
|
1065
1082
|
}
|
|
1066
|
-
function adapterFragment$
|
|
1067
|
-
createResourceParams$
|
|
1068
|
-
return select$
|
|
1083
|
+
function adapterFragment$7(luvio, config) {
|
|
1084
|
+
createResourceParams$a(config);
|
|
1085
|
+
return select$l();
|
|
1069
1086
|
}
|
|
1070
|
-
function onFetchResponseSuccess$
|
|
1071
|
-
const snapshot = ingestSuccess$
|
|
1087
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
1088
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
1072
1089
|
config,
|
|
1073
|
-
resolve: () => buildNetworkSnapshot$
|
|
1090
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
1074
1091
|
});
|
|
1075
1092
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1076
1093
|
}
|
|
1077
|
-
function onFetchResponseError$
|
|
1078
|
-
const snapshot = ingestError$
|
|
1094
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
1095
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
1079
1096
|
config,
|
|
1080
|
-
resolve: () => buildNetworkSnapshot$
|
|
1097
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
1081
1098
|
});
|
|
1082
1099
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1083
1100
|
}
|
|
1084
|
-
function buildNetworkSnapshot$
|
|
1085
|
-
const resourceParams = createResourceParams$
|
|
1086
|
-
const request = createResourceRequest$
|
|
1101
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
1102
|
+
const resourceParams = createResourceParams$a(config);
|
|
1103
|
+
const request = createResourceRequest$a(resourceParams);
|
|
1087
1104
|
return luvio.dispatchResourceRequest(request, options)
|
|
1088
1105
|
.then((response) => {
|
|
1089
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1106
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
1090
1107
|
const cache = new StoreKeyMap();
|
|
1091
|
-
getResponseCacheKeys$
|
|
1108
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
1092
1109
|
return cache;
|
|
1093
1110
|
});
|
|
1094
1111
|
}, (response) => {
|
|
1095
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1112
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
1096
1113
|
});
|
|
1097
1114
|
}
|
|
1098
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1099
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1115
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
1116
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
1100
1117
|
}
|
|
1101
|
-
function buildCachedSnapshotCachePolicy$
|
|
1118
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
1102
1119
|
const { luvio, config } = context;
|
|
1103
1120
|
const selector = {
|
|
1104
|
-
recordId: keyBuilder$
|
|
1105
|
-
node: adapterFragment$
|
|
1121
|
+
recordId: keyBuilder$i(luvio, config),
|
|
1122
|
+
node: adapterFragment$7(luvio, config),
|
|
1106
1123
|
variables: {},
|
|
1107
1124
|
};
|
|
1108
1125
|
const cacheSnapshot = storeLookup(selector, {
|
|
1109
1126
|
config,
|
|
1110
|
-
resolve: () => buildNetworkSnapshot$
|
|
1127
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
1111
1128
|
});
|
|
1112
1129
|
return cacheSnapshot;
|
|
1113
1130
|
}
|
|
1114
1131
|
const getConnectionDetailsAdapterFactory = (luvio) => function externalConnectivity__getConnectionDetails(untrustedConfig, requestContext) {
|
|
1115
|
-
const config = validateAdapterConfig$
|
|
1132
|
+
const config = validateAdapterConfig$a(untrustedConfig, getConnectionDetails_ConfigPropertyNames);
|
|
1116
1133
|
// Invalid or incomplete config
|
|
1117
1134
|
if (config === null) {
|
|
1118
1135
|
return null;
|
|
1119
1136
|
}
|
|
1120
1137
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1121
|
-
buildCachedSnapshotCachePolicy$
|
|
1138
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
1122
1139
|
};
|
|
1123
1140
|
|
|
1124
|
-
const VERSION$
|
|
1125
|
-
function validate$
|
|
1141
|
+
const VERSION$a = "f2e2de246b96fc1a5010041fc74f4401";
|
|
1142
|
+
function validate$f(obj, path = 'ExternalConnectivityConnectionRepresentation') {
|
|
1126
1143
|
const v_error = (() => {
|
|
1127
1144
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1128
1145
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1260,11 +1277,11 @@ function validate$e(obj, path = 'ExternalConnectivityConnectionRepresentation')
|
|
|
1260
1277
|
})();
|
|
1261
1278
|
return v_error === undefined ? null : v_error;
|
|
1262
1279
|
}
|
|
1263
|
-
const RepresentationType$
|
|
1264
|
-
function normalize$
|
|
1280
|
+
const RepresentationType$a = 'ExternalConnectivityConnectionRepresentation';
|
|
1281
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
1265
1282
|
const input_externalConnectorMetadata = input.externalConnectorMetadata;
|
|
1266
1283
|
const input_externalConnectorMetadata_id = path.fullPath + '__externalConnectorMetadata';
|
|
1267
|
-
input.externalConnectorMetadata = ingest$
|
|
1284
|
+
input.externalConnectorMetadata = ingest$c(input_externalConnectorMetadata, {
|
|
1268
1285
|
fullPath: input_externalConnectorMetadata_id,
|
|
1269
1286
|
propertyName: 'externalConnectorMetadata',
|
|
1270
1287
|
parent: {
|
|
@@ -1276,10 +1293,10 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
1276
1293
|
}, luvio, store, timestamp);
|
|
1277
1294
|
return input;
|
|
1278
1295
|
}
|
|
1279
|
-
const select$
|
|
1296
|
+
const select$k = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
1280
1297
|
return {
|
|
1281
1298
|
kind: 'Fragment',
|
|
1282
|
-
version: VERSION$
|
|
1299
|
+
version: VERSION$a,
|
|
1283
1300
|
private: [],
|
|
1284
1301
|
selections: [
|
|
1285
1302
|
{
|
|
@@ -1314,7 +1331,7 @@ const select$i = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
|
1314
1331
|
{
|
|
1315
1332
|
name: 'externalConnectorMetadata',
|
|
1316
1333
|
kind: 'Link',
|
|
1317
|
-
fragment: select$
|
|
1334
|
+
fragment: select$n()
|
|
1318
1335
|
},
|
|
1319
1336
|
{
|
|
1320
1337
|
name: 'lastModifiedBy',
|
|
@@ -1339,7 +1356,7 @@ const select$i = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
|
1339
1356
|
]
|
|
1340
1357
|
};
|
|
1341
1358
|
};
|
|
1342
|
-
function equals$
|
|
1359
|
+
function equals$a(existing, incoming) {
|
|
1343
1360
|
const existing_established = existing.established;
|
|
1344
1361
|
const incoming_established = incoming.established;
|
|
1345
1362
|
if (!(existing_established === incoming_established)) {
|
|
@@ -1415,32 +1432,32 @@ function equals$9(existing, incoming) {
|
|
|
1415
1432
|
}
|
|
1416
1433
|
return true;
|
|
1417
1434
|
}
|
|
1418
|
-
const ingest$
|
|
1435
|
+
const ingest$a = function ExternalConnectivityConnectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1419
1436
|
if (process.env.NODE_ENV !== 'production') {
|
|
1420
|
-
const validateError = validate$
|
|
1437
|
+
const validateError = validate$f(input);
|
|
1421
1438
|
if (validateError !== null) {
|
|
1422
1439
|
throw validateError;
|
|
1423
1440
|
}
|
|
1424
1441
|
}
|
|
1425
1442
|
const key = path.fullPath;
|
|
1426
1443
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
|
|
1427
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1444
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "external-connectivity", VERSION$a, RepresentationType$a, equals$a);
|
|
1428
1445
|
return createLink(key);
|
|
1429
1446
|
};
|
|
1430
|
-
function getTypeCacheKeys$
|
|
1447
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
1431
1448
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1432
1449
|
const rootKey = fullPathFactory();
|
|
1433
1450
|
rootKeySet.set(rootKey, {
|
|
1434
1451
|
namespace: keyPrefix,
|
|
1435
|
-
representationName: RepresentationType$
|
|
1452
|
+
representationName: RepresentationType$a,
|
|
1436
1453
|
mergeable: false
|
|
1437
1454
|
});
|
|
1438
|
-
getTypeCacheKeys$
|
|
1455
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.externalConnectorMetadata, () => rootKey + "__" + "externalConnectorMetadata");
|
|
1439
1456
|
}
|
|
1440
1457
|
|
|
1441
|
-
const TTL$
|
|
1442
|
-
const VERSION$
|
|
1443
|
-
function validate$
|
|
1458
|
+
const TTL$9 = 500;
|
|
1459
|
+
const VERSION$9 = "b5d13b1fd1ba9a2eccd69af50a915654";
|
|
1460
|
+
function validate$e(obj, path = 'ExternalConnectivityConnectionListRepresentation') {
|
|
1444
1461
|
const v_error = (() => {
|
|
1445
1462
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1446
1463
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1486,23 +1503,23 @@ function validate$d(obj, path = 'ExternalConnectivityConnectionListRepresentatio
|
|
|
1486
1503
|
})();
|
|
1487
1504
|
return v_error === undefined ? null : v_error;
|
|
1488
1505
|
}
|
|
1489
|
-
const RepresentationType$
|
|
1490
|
-
function keyBuilder$
|
|
1491
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1506
|
+
const RepresentationType$9 = 'ExternalConnectivityConnectionListRepresentation';
|
|
1507
|
+
function keyBuilder$h(luvio, config) {
|
|
1508
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + (config.connectorDeveloperName === null ? '' : config.connectorDeveloperName);
|
|
1492
1509
|
}
|
|
1493
1510
|
function keyBuilderFromType$3(luvio, object) {
|
|
1494
1511
|
const keyParams = {
|
|
1495
1512
|
connectorDeveloperName: object.connectorDeveloperName
|
|
1496
1513
|
};
|
|
1497
|
-
return keyBuilder$
|
|
1514
|
+
return keyBuilder$h(luvio, keyParams);
|
|
1498
1515
|
}
|
|
1499
|
-
function normalize$
|
|
1516
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1500
1517
|
const input_connections = input.connections;
|
|
1501
1518
|
const input_connections_id = path.fullPath + '__connections';
|
|
1502
1519
|
for (let i = 0; i < input_connections.length; i++) {
|
|
1503
1520
|
const input_connections_item = input_connections[i];
|
|
1504
1521
|
let input_connections_item_id = input_connections_id + '__' + i;
|
|
1505
|
-
input_connections[i] = ingest$
|
|
1522
|
+
input_connections[i] = ingest$a(input_connections_item, {
|
|
1506
1523
|
fullPath: input_connections_item_id,
|
|
1507
1524
|
propertyName: i,
|
|
1508
1525
|
parent: {
|
|
@@ -1515,17 +1532,17 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
1515
1532
|
}
|
|
1516
1533
|
return input;
|
|
1517
1534
|
}
|
|
1518
|
-
const select$
|
|
1535
|
+
const select$j = function ExternalConnectivityConnectionListRepresentationSelect() {
|
|
1519
1536
|
return {
|
|
1520
1537
|
kind: 'Fragment',
|
|
1521
|
-
version: VERSION$
|
|
1538
|
+
version: VERSION$9,
|
|
1522
1539
|
private: [],
|
|
1523
1540
|
selections: [
|
|
1524
1541
|
{
|
|
1525
1542
|
name: 'connections',
|
|
1526
1543
|
kind: 'Link',
|
|
1527
1544
|
plural: true,
|
|
1528
|
-
fragment: select$
|
|
1545
|
+
fragment: select$k()
|
|
1529
1546
|
},
|
|
1530
1547
|
{
|
|
1531
1548
|
name: 'connectorDeveloperName',
|
|
@@ -1534,7 +1551,7 @@ const select$h = function ExternalConnectivityConnectionListRepresentationSelect
|
|
|
1534
1551
|
]
|
|
1535
1552
|
};
|
|
1536
1553
|
};
|
|
1537
|
-
function equals$
|
|
1554
|
+
function equals$9(existing, incoming) {
|
|
1538
1555
|
const existing_connections = existing.connections;
|
|
1539
1556
|
const incoming_connections = incoming.connections;
|
|
1540
1557
|
const equals_connections_items = equalsArray(existing_connections, incoming_connections, (existing_connections_item, incoming_connections_item) => {
|
|
@@ -1552,29 +1569,29 @@ function equals$8(existing, incoming) {
|
|
|
1552
1569
|
}
|
|
1553
1570
|
return true;
|
|
1554
1571
|
}
|
|
1555
|
-
const ingest$
|
|
1572
|
+
const ingest$9 = function ExternalConnectivityConnectionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1556
1573
|
if (process.env.NODE_ENV !== 'production') {
|
|
1557
|
-
const validateError = validate$
|
|
1574
|
+
const validateError = validate$e(input);
|
|
1558
1575
|
if (validateError !== null) {
|
|
1559
1576
|
throw validateError;
|
|
1560
1577
|
}
|
|
1561
1578
|
}
|
|
1562
1579
|
const key = keyBuilderFromType$3(luvio, input);
|
|
1563
|
-
const ttlToUse = TTL$
|
|
1564
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1580
|
+
const ttlToUse = TTL$9;
|
|
1581
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "external-connectivity", VERSION$9, RepresentationType$9, equals$9);
|
|
1565
1582
|
return createLink(key);
|
|
1566
1583
|
};
|
|
1567
|
-
function getTypeCacheKeys$
|
|
1584
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
1568
1585
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1569
1586
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1570
1587
|
rootKeySet.set(rootKey, {
|
|
1571
1588
|
namespace: keyPrefix,
|
|
1572
|
-
representationName: RepresentationType$
|
|
1589
|
+
representationName: RepresentationType$9,
|
|
1573
1590
|
mergeable: false
|
|
1574
1591
|
});
|
|
1575
1592
|
const input_connections_length = input.connections.length;
|
|
1576
1593
|
for (let i = 0; i < input_connections_length; i++) {
|
|
1577
|
-
getTypeCacheKeys$
|
|
1594
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.connections[i], () => '');
|
|
1578
1595
|
}
|
|
1579
1596
|
}
|
|
1580
1597
|
const notifyUpdateAvailableFactory = (luvio) => {
|
|
@@ -1587,29 +1604,29 @@ const notifyUpdateAvailableFactory = (luvio) => {
|
|
|
1587
1604
|
}
|
|
1588
1605
|
});
|
|
1589
1606
|
}
|
|
1590
|
-
const keys = configs.map(c => keyBuilder$
|
|
1607
|
+
const keys = configs.map(c => keyBuilder$h(luvio, c));
|
|
1591
1608
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
1592
1609
|
};
|
|
1593
1610
|
};
|
|
1594
1611
|
|
|
1595
|
-
function select$
|
|
1596
|
-
return select$
|
|
1612
|
+
function select$i(luvio, params) {
|
|
1613
|
+
return select$j();
|
|
1597
1614
|
}
|
|
1598
|
-
function keyBuilder$
|
|
1599
|
-
return keyBuilder$
|
|
1615
|
+
function keyBuilder$g(luvio, params) {
|
|
1616
|
+
return keyBuilder$h(luvio, {
|
|
1600
1617
|
connectorDeveloperName: params.queryParams.connectorDeveloperName || ''
|
|
1601
1618
|
});
|
|
1602
1619
|
}
|
|
1603
|
-
function getResponseCacheKeys$
|
|
1604
|
-
getTypeCacheKeys$
|
|
1620
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
1621
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
1605
1622
|
}
|
|
1606
|
-
function ingestSuccess$
|
|
1623
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
1607
1624
|
const { body } = response;
|
|
1608
|
-
const key = keyBuilder$
|
|
1609
|
-
luvio.storeIngest(key, ingest$
|
|
1625
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
1626
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
1610
1627
|
const snapshot = luvio.storeLookup({
|
|
1611
1628
|
recordId: key,
|
|
1612
|
-
node: select$
|
|
1629
|
+
node: select$i(),
|
|
1613
1630
|
variables: {},
|
|
1614
1631
|
}, snapshotRefresh);
|
|
1615
1632
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1620,19 +1637,19 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1620
1637
|
deepFreeze(snapshot.data);
|
|
1621
1638
|
return snapshot;
|
|
1622
1639
|
}
|
|
1623
|
-
function ingestError$
|
|
1624
|
-
const key = keyBuilder$
|
|
1640
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
1641
|
+
const key = keyBuilder$g(luvio, params);
|
|
1625
1642
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1626
1643
|
const storeMetadataParams = {
|
|
1627
|
-
ttl: TTL$
|
|
1644
|
+
ttl: TTL$9,
|
|
1628
1645
|
namespace: keyPrefix,
|
|
1629
|
-
version: VERSION$
|
|
1630
|
-
representationName: RepresentationType$
|
|
1646
|
+
version: VERSION$9,
|
|
1647
|
+
representationName: RepresentationType$9
|
|
1631
1648
|
};
|
|
1632
1649
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1633
1650
|
return errorSnapshot;
|
|
1634
1651
|
}
|
|
1635
|
-
function createResourceRequest$
|
|
1652
|
+
function createResourceRequest$9(config) {
|
|
1636
1653
|
const headers = {};
|
|
1637
1654
|
return {
|
|
1638
1655
|
baseUri: '/services/data/v66.0',
|
|
@@ -1646,93 +1663,93 @@ function createResourceRequest$8(config) {
|
|
|
1646
1663
|
};
|
|
1647
1664
|
}
|
|
1648
1665
|
|
|
1649
|
-
const adapterName$
|
|
1666
|
+
const adapterName$9 = 'getConnections';
|
|
1650
1667
|
const getConnections_ConfigPropertyMetadata = [
|
|
1651
1668
|
generateParamConfigMetadata('connectorDeveloperName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1652
1669
|
];
|
|
1653
|
-
const getConnections_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1654
|
-
const createResourceParams$
|
|
1655
|
-
function keyBuilder$
|
|
1656
|
-
const resourceParams = createResourceParams$
|
|
1657
|
-
return keyBuilder$
|
|
1670
|
+
const getConnections_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getConnections_ConfigPropertyMetadata);
|
|
1671
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(getConnections_ConfigPropertyMetadata);
|
|
1672
|
+
function keyBuilder$f(luvio, config) {
|
|
1673
|
+
const resourceParams = createResourceParams$9(config);
|
|
1674
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
1658
1675
|
}
|
|
1659
|
-
function typeCheckConfig$
|
|
1676
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1660
1677
|
const config = {};
|
|
1661
|
-
typeCheckConfig$
|
|
1678
|
+
typeCheckConfig$d(untrustedConfig, config, getConnections_ConfigPropertyMetadata);
|
|
1662
1679
|
return config;
|
|
1663
1680
|
}
|
|
1664
|
-
function validateAdapterConfig$
|
|
1681
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1665
1682
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1666
1683
|
return null;
|
|
1667
1684
|
}
|
|
1668
1685
|
if (process.env.NODE_ENV !== 'production') {
|
|
1669
1686
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1670
1687
|
}
|
|
1671
|
-
const config = typeCheckConfig$
|
|
1688
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1672
1689
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1673
1690
|
return null;
|
|
1674
1691
|
}
|
|
1675
1692
|
return config;
|
|
1676
1693
|
}
|
|
1677
|
-
function adapterFragment$
|
|
1678
|
-
createResourceParams$
|
|
1679
|
-
return select$
|
|
1694
|
+
function adapterFragment$6(luvio, config) {
|
|
1695
|
+
createResourceParams$9(config);
|
|
1696
|
+
return select$i();
|
|
1680
1697
|
}
|
|
1681
|
-
function onFetchResponseSuccess$
|
|
1682
|
-
const snapshot = ingestSuccess$
|
|
1698
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
1699
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
1683
1700
|
config,
|
|
1684
|
-
resolve: () => buildNetworkSnapshot$
|
|
1701
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1685
1702
|
});
|
|
1686
1703
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1687
1704
|
}
|
|
1688
|
-
function onFetchResponseError$
|
|
1689
|
-
const snapshot = ingestError$
|
|
1705
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
1706
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
1690
1707
|
config,
|
|
1691
|
-
resolve: () => buildNetworkSnapshot$
|
|
1708
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1692
1709
|
});
|
|
1693
1710
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1694
1711
|
}
|
|
1695
|
-
function buildNetworkSnapshot$
|
|
1696
|
-
const resourceParams = createResourceParams$
|
|
1697
|
-
const request = createResourceRequest$
|
|
1712
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
1713
|
+
const resourceParams = createResourceParams$9(config);
|
|
1714
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1698
1715
|
return luvio.dispatchResourceRequest(request, options)
|
|
1699
1716
|
.then((response) => {
|
|
1700
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1717
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
1701
1718
|
const cache = new StoreKeyMap();
|
|
1702
|
-
getResponseCacheKeys$
|
|
1719
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
1703
1720
|
return cache;
|
|
1704
1721
|
});
|
|
1705
1722
|
}, (response) => {
|
|
1706
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1723
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
1707
1724
|
});
|
|
1708
1725
|
}
|
|
1709
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1710
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1726
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
1727
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
1711
1728
|
}
|
|
1712
|
-
function buildCachedSnapshotCachePolicy$
|
|
1729
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
1713
1730
|
const { luvio, config } = context;
|
|
1714
1731
|
const selector = {
|
|
1715
|
-
recordId: keyBuilder$
|
|
1716
|
-
node: adapterFragment$
|
|
1732
|
+
recordId: keyBuilder$f(luvio, config),
|
|
1733
|
+
node: adapterFragment$6(luvio, config),
|
|
1717
1734
|
variables: {},
|
|
1718
1735
|
};
|
|
1719
1736
|
const cacheSnapshot = storeLookup(selector, {
|
|
1720
1737
|
config,
|
|
1721
|
-
resolve: () => buildNetworkSnapshot$
|
|
1738
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1722
1739
|
});
|
|
1723
1740
|
return cacheSnapshot;
|
|
1724
1741
|
}
|
|
1725
1742
|
const getConnectionsAdapterFactory = (luvio) => function externalConnectivity__getConnections(untrustedConfig, requestContext) {
|
|
1726
|
-
const config = validateAdapterConfig$
|
|
1743
|
+
const config = validateAdapterConfig$9(untrustedConfig, getConnections_ConfigPropertyNames);
|
|
1727
1744
|
// Invalid or incomplete config
|
|
1728
1745
|
if (config === null) {
|
|
1729
1746
|
return null;
|
|
1730
1747
|
}
|
|
1731
1748
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1732
|
-
buildCachedSnapshotCachePolicy$
|
|
1749
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
1733
1750
|
};
|
|
1734
1751
|
|
|
1735
|
-
function validate$
|
|
1752
|
+
function validate$d(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
|
|
1736
1753
|
const v_error = (() => {
|
|
1737
1754
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1738
1755
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1745,7 +1762,7 @@ function validate$c(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
|
|
|
1745
1762
|
for (let i = 0; i < obj_authenticationParameterDefinitions.length; i++) {
|
|
1746
1763
|
const obj_authenticationParameterDefinitions_item = obj_authenticationParameterDefinitions[i];
|
|
1747
1764
|
const path_authenticationParameterDefinitions_item = path_authenticationParameterDefinitions + '[' + i + ']';
|
|
1748
|
-
const referencepath_authenticationParameterDefinitions_itemValidationError = validate$
|
|
1765
|
+
const referencepath_authenticationParameterDefinitions_itemValidationError = validate$l(obj_authenticationParameterDefinitions_item, path_authenticationParameterDefinitions_item);
|
|
1749
1766
|
if (referencepath_authenticationParameterDefinitions_itemValidationError !== null) {
|
|
1750
1767
|
let message = 'Object doesn\'t match AuthenticationParameterDefinitionRepresentation (at "' + path_authenticationParameterDefinitions_item + '")\n';
|
|
1751
1768
|
message += referencepath_authenticationParameterDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1761,9 +1778,9 @@ function validate$c(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
|
|
|
1761
1778
|
return v_error === undefined ? null : v_error;
|
|
1762
1779
|
}
|
|
1763
1780
|
|
|
1764
|
-
const TTL$
|
|
1765
|
-
const VERSION$
|
|
1766
|
-
function validate$
|
|
1781
|
+
const TTL$8 = 500;
|
|
1782
|
+
const VERSION$8 = "f8847a262a47a2a68d458483f2a60a07";
|
|
1783
|
+
function validate$c(obj, path = 'ExternalConnectivityConnectorDetailsRepresentation') {
|
|
1767
1784
|
const v_error = (() => {
|
|
1768
1785
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1769
1786
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1791,7 +1808,7 @@ function validate$b(obj, path = 'ExternalConnectivityConnectorDetailsRepresentat
|
|
|
1791
1808
|
for (let i = 0; i < obj_iconMetadata.length; i++) {
|
|
1792
1809
|
const obj_iconMetadata_item = obj_iconMetadata[i];
|
|
1793
1810
|
const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
|
|
1794
|
-
const referencepath_iconMetadata_itemValidationError = validate$
|
|
1811
|
+
const referencepath_iconMetadata_itemValidationError = validate$i(obj_iconMetadata_item, path_iconMetadata_item);
|
|
1795
1812
|
if (referencepath_iconMetadata_itemValidationError !== null) {
|
|
1796
1813
|
let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
|
|
1797
1814
|
message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1826,7 +1843,7 @@ function validate$b(obj, path = 'ExternalConnectivityConnectorDetailsRepresentat
|
|
|
1826
1843
|
for (let i = 0; i < obj_supportedAuthenticationTypes.length; i++) {
|
|
1827
1844
|
const obj_supportedAuthenticationTypes_item = obj_supportedAuthenticationTypes[i];
|
|
1828
1845
|
const path_supportedAuthenticationTypes_item = path_supportedAuthenticationTypes + '[' + i + ']';
|
|
1829
|
-
const referencepath_supportedAuthenticationTypes_itemValidationError = validate$
|
|
1846
|
+
const referencepath_supportedAuthenticationTypes_itemValidationError = validate$d(obj_supportedAuthenticationTypes_item, path_supportedAuthenticationTypes_item);
|
|
1830
1847
|
if (referencepath_supportedAuthenticationTypes_itemValidationError !== null) {
|
|
1831
1848
|
let message = 'Object doesn\'t match AuthenticationTypeDefinitionRepresentation (at "' + path_supportedAuthenticationTypes_item + '")\n';
|
|
1832
1849
|
message += referencepath_supportedAuthenticationTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1846,62 +1863,62 @@ function validate$b(obj, path = 'ExternalConnectivityConnectorDetailsRepresentat
|
|
|
1846
1863
|
})();
|
|
1847
1864
|
return v_error === undefined ? null : v_error;
|
|
1848
1865
|
}
|
|
1849
|
-
const RepresentationType$
|
|
1850
|
-
function normalize$
|
|
1866
|
+
const RepresentationType$8 = 'ExternalConnectivityConnectorDetailsRepresentation';
|
|
1867
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
1851
1868
|
return input;
|
|
1852
1869
|
}
|
|
1853
|
-
const select$
|
|
1870
|
+
const select$h = function ExternalConnectivityConnectorDetailsRepresentationSelect() {
|
|
1854
1871
|
return {
|
|
1855
1872
|
kind: 'Fragment',
|
|
1856
|
-
version: VERSION$
|
|
1873
|
+
version: VERSION$8,
|
|
1857
1874
|
private: [],
|
|
1858
1875
|
opaque: true
|
|
1859
1876
|
};
|
|
1860
1877
|
};
|
|
1861
|
-
function equals$
|
|
1878
|
+
function equals$8(existing, incoming) {
|
|
1862
1879
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1863
1880
|
return false;
|
|
1864
1881
|
}
|
|
1865
1882
|
return true;
|
|
1866
1883
|
}
|
|
1867
|
-
const ingest$
|
|
1884
|
+
const ingest$8 = function ExternalConnectivityConnectorDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1868
1885
|
if (process.env.NODE_ENV !== 'production') {
|
|
1869
|
-
const validateError = validate$
|
|
1886
|
+
const validateError = validate$c(input);
|
|
1870
1887
|
if (validateError !== null) {
|
|
1871
1888
|
throw validateError;
|
|
1872
1889
|
}
|
|
1873
1890
|
}
|
|
1874
1891
|
const key = path.fullPath;
|
|
1875
|
-
const ttlToUse = TTL$
|
|
1876
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1892
|
+
const ttlToUse = TTL$8;
|
|
1893
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "external-connectivity", VERSION$8, RepresentationType$8, equals$8);
|
|
1877
1894
|
return createLink(key);
|
|
1878
1895
|
};
|
|
1879
|
-
function getTypeCacheKeys$
|
|
1896
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
1880
1897
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1881
1898
|
const rootKey = fullPathFactory();
|
|
1882
1899
|
rootKeySet.set(rootKey, {
|
|
1883
1900
|
namespace: keyPrefix,
|
|
1884
|
-
representationName: RepresentationType$
|
|
1901
|
+
representationName: RepresentationType$8,
|
|
1885
1902
|
mergeable: false
|
|
1886
1903
|
});
|
|
1887
1904
|
}
|
|
1888
1905
|
|
|
1889
|
-
function select$
|
|
1890
|
-
return select$
|
|
1906
|
+
function select$g(luvio, params) {
|
|
1907
|
+
return select$h();
|
|
1891
1908
|
}
|
|
1892
|
-
function keyBuilder$
|
|
1909
|
+
function keyBuilder$e(luvio, params) {
|
|
1893
1910
|
return keyPrefix + '::ExternalConnectivityConnectorDetailsRepresentation:(' + 'connectorDeveloperName:' + params.urlParams.connectorDeveloperName + ')';
|
|
1894
1911
|
}
|
|
1895
|
-
function getResponseCacheKeys$
|
|
1896
|
-
getTypeCacheKeys$
|
|
1912
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1913
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
|
|
1897
1914
|
}
|
|
1898
|
-
function ingestSuccess$
|
|
1915
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
1899
1916
|
const { body } = response;
|
|
1900
|
-
const key = keyBuilder$
|
|
1901
|
-
luvio.storeIngest(key, ingest$
|
|
1917
|
+
const key = keyBuilder$e(luvio, resourceParams);
|
|
1918
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
1902
1919
|
const snapshot = luvio.storeLookup({
|
|
1903
1920
|
recordId: key,
|
|
1904
|
-
node: select$
|
|
1921
|
+
node: select$g(),
|
|
1905
1922
|
variables: {},
|
|
1906
1923
|
}, snapshotRefresh);
|
|
1907
1924
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1912,19 +1929,19 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1912
1929
|
deepFreeze(snapshot.data);
|
|
1913
1930
|
return snapshot;
|
|
1914
1931
|
}
|
|
1915
|
-
function ingestError$
|
|
1916
|
-
const key = keyBuilder$
|
|
1932
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
1933
|
+
const key = keyBuilder$e(luvio, params);
|
|
1917
1934
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1918
1935
|
const storeMetadataParams = {
|
|
1919
|
-
ttl: TTL$
|
|
1936
|
+
ttl: TTL$8,
|
|
1920
1937
|
namespace: keyPrefix,
|
|
1921
|
-
version: VERSION$
|
|
1922
|
-
representationName: RepresentationType$
|
|
1938
|
+
version: VERSION$8,
|
|
1939
|
+
representationName: RepresentationType$8
|
|
1923
1940
|
};
|
|
1924
1941
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1925
1942
|
return errorSnapshot;
|
|
1926
1943
|
}
|
|
1927
|
-
function createResourceRequest$
|
|
1944
|
+
function createResourceRequest$8(config) {
|
|
1928
1945
|
const headers = {};
|
|
1929
1946
|
return {
|
|
1930
1947
|
baseUri: '/services/data/v66.0',
|
|
@@ -1938,95 +1955,95 @@ function createResourceRequest$7(config) {
|
|
|
1938
1955
|
};
|
|
1939
1956
|
}
|
|
1940
1957
|
|
|
1941
|
-
const adapterName$
|
|
1958
|
+
const adapterName$8 = 'getConnectorDetails';
|
|
1942
1959
|
const getConnectorDetails_ConfigPropertyMetadata = [
|
|
1943
1960
|
generateParamConfigMetadata('connectorDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1944
1961
|
];
|
|
1945
|
-
const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1946
|
-
const createResourceParams$
|
|
1947
|
-
function keyBuilder$
|
|
1948
|
-
const resourceParams = createResourceParams$
|
|
1949
|
-
return keyBuilder$
|
|
1962
|
+
const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getConnectorDetails_ConfigPropertyMetadata);
|
|
1963
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(getConnectorDetails_ConfigPropertyMetadata);
|
|
1964
|
+
function keyBuilder$d(luvio, config) {
|
|
1965
|
+
const resourceParams = createResourceParams$8(config);
|
|
1966
|
+
return keyBuilder$e(luvio, resourceParams);
|
|
1950
1967
|
}
|
|
1951
|
-
function typeCheckConfig$
|
|
1968
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
1952
1969
|
const config = {};
|
|
1953
|
-
typeCheckConfig$
|
|
1970
|
+
typeCheckConfig$d(untrustedConfig, config, getConnectorDetails_ConfigPropertyMetadata);
|
|
1954
1971
|
return config;
|
|
1955
1972
|
}
|
|
1956
|
-
function validateAdapterConfig$
|
|
1973
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
1957
1974
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1958
1975
|
return null;
|
|
1959
1976
|
}
|
|
1960
1977
|
if (process.env.NODE_ENV !== 'production') {
|
|
1961
1978
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1962
1979
|
}
|
|
1963
|
-
const config = typeCheckConfig$
|
|
1980
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
1964
1981
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1965
1982
|
return null;
|
|
1966
1983
|
}
|
|
1967
1984
|
return config;
|
|
1968
1985
|
}
|
|
1969
|
-
function adapterFragment$
|
|
1970
|
-
createResourceParams$
|
|
1971
|
-
return select$
|
|
1986
|
+
function adapterFragment$5(luvio, config) {
|
|
1987
|
+
createResourceParams$8(config);
|
|
1988
|
+
return select$g();
|
|
1972
1989
|
}
|
|
1973
|
-
function onFetchResponseSuccess$
|
|
1974
|
-
const snapshot = ingestSuccess$
|
|
1990
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
1991
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
1975
1992
|
config,
|
|
1976
|
-
resolve: () => buildNetworkSnapshot$
|
|
1993
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
1977
1994
|
});
|
|
1978
1995
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1979
1996
|
}
|
|
1980
|
-
function onFetchResponseError$
|
|
1981
|
-
const snapshot = ingestError$
|
|
1997
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
1998
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
1982
1999
|
config,
|
|
1983
|
-
resolve: () => buildNetworkSnapshot$
|
|
2000
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
1984
2001
|
});
|
|
1985
2002
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1986
2003
|
}
|
|
1987
|
-
function buildNetworkSnapshot$
|
|
1988
|
-
const resourceParams = createResourceParams$
|
|
1989
|
-
const request = createResourceRequest$
|
|
2004
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
2005
|
+
const resourceParams = createResourceParams$8(config);
|
|
2006
|
+
const request = createResourceRequest$8(resourceParams);
|
|
1990
2007
|
return luvio.dispatchResourceRequest(request, options)
|
|
1991
2008
|
.then((response) => {
|
|
1992
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2009
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
1993
2010
|
const cache = new StoreKeyMap();
|
|
1994
|
-
getResponseCacheKeys$
|
|
2011
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
1995
2012
|
return cache;
|
|
1996
2013
|
});
|
|
1997
2014
|
}, (response) => {
|
|
1998
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2015
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
1999
2016
|
});
|
|
2000
2017
|
}
|
|
2001
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2002
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2018
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
2019
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
2003
2020
|
}
|
|
2004
|
-
function buildCachedSnapshotCachePolicy$
|
|
2021
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
2005
2022
|
const { luvio, config } = context;
|
|
2006
2023
|
const selector = {
|
|
2007
|
-
recordId: keyBuilder$
|
|
2008
|
-
node: adapterFragment$
|
|
2024
|
+
recordId: keyBuilder$d(luvio, config),
|
|
2025
|
+
node: adapterFragment$5(luvio, config),
|
|
2009
2026
|
variables: {},
|
|
2010
2027
|
};
|
|
2011
2028
|
const cacheSnapshot = storeLookup(selector, {
|
|
2012
2029
|
config,
|
|
2013
|
-
resolve: () => buildNetworkSnapshot$
|
|
2030
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2014
2031
|
});
|
|
2015
2032
|
return cacheSnapshot;
|
|
2016
2033
|
}
|
|
2017
2034
|
const getConnectorDetailsAdapterFactory = (luvio) => function externalConnectivity__getConnectorDetails(untrustedConfig, requestContext) {
|
|
2018
|
-
const config = validateAdapterConfig$
|
|
2035
|
+
const config = validateAdapterConfig$8(untrustedConfig, getConnectorDetails_ConfigPropertyNames);
|
|
2019
2036
|
// Invalid or incomplete config
|
|
2020
2037
|
if (config === null) {
|
|
2021
2038
|
return null;
|
|
2022
2039
|
}
|
|
2023
2040
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2024
|
-
buildCachedSnapshotCachePolicy$
|
|
2041
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
2025
2042
|
};
|
|
2026
2043
|
|
|
2027
|
-
const TTL$
|
|
2028
|
-
const VERSION$
|
|
2029
|
-
function validate$
|
|
2044
|
+
const TTL$7 = 500;
|
|
2045
|
+
const VERSION$7 = "e0e363c96027e368a8c2c44580411d53";
|
|
2046
|
+
function validate$b(obj, path = 'ExternalConnectivityConnectorListRepresentation') {
|
|
2030
2047
|
const v_error = (() => {
|
|
2031
2048
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2032
2049
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2039,7 +2056,7 @@ function validate$a(obj, path = 'ExternalConnectivityConnectorListRepresentation
|
|
|
2039
2056
|
for (let i = 0; i < obj_connectors.length; i++) {
|
|
2040
2057
|
const obj_connectors_item = obj_connectors[i];
|
|
2041
2058
|
const path_connectors_item = path_connectors + '[' + i + ']';
|
|
2042
|
-
const referencepath_connectors_itemValidationError = validate$
|
|
2059
|
+
const referencepath_connectors_itemValidationError = validate$h(obj_connectors_item, path_connectors_item);
|
|
2043
2060
|
if (referencepath_connectors_itemValidationError !== null) {
|
|
2044
2061
|
let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_connectors_item + '")\n';
|
|
2045
2062
|
message += referencepath_connectors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2049,62 +2066,62 @@ function validate$a(obj, path = 'ExternalConnectivityConnectorListRepresentation
|
|
|
2049
2066
|
})();
|
|
2050
2067
|
return v_error === undefined ? null : v_error;
|
|
2051
2068
|
}
|
|
2052
|
-
const RepresentationType$
|
|
2053
|
-
function normalize$
|
|
2069
|
+
const RepresentationType$7 = 'ExternalConnectivityConnectorListRepresentation';
|
|
2070
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
2054
2071
|
return input;
|
|
2055
2072
|
}
|
|
2056
|
-
const select$
|
|
2073
|
+
const select$f = function ExternalConnectivityConnectorListRepresentationSelect() {
|
|
2057
2074
|
return {
|
|
2058
2075
|
kind: 'Fragment',
|
|
2059
|
-
version: VERSION$
|
|
2076
|
+
version: VERSION$7,
|
|
2060
2077
|
private: [],
|
|
2061
2078
|
opaque: true
|
|
2062
2079
|
};
|
|
2063
2080
|
};
|
|
2064
|
-
function equals$
|
|
2081
|
+
function equals$7(existing, incoming) {
|
|
2065
2082
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2066
2083
|
return false;
|
|
2067
2084
|
}
|
|
2068
2085
|
return true;
|
|
2069
2086
|
}
|
|
2070
|
-
const ingest$
|
|
2087
|
+
const ingest$7 = function ExternalConnectivityConnectorListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2071
2088
|
if (process.env.NODE_ENV !== 'production') {
|
|
2072
|
-
const validateError = validate$
|
|
2089
|
+
const validateError = validate$b(input);
|
|
2073
2090
|
if (validateError !== null) {
|
|
2074
2091
|
throw validateError;
|
|
2075
2092
|
}
|
|
2076
2093
|
}
|
|
2077
2094
|
const key = path.fullPath;
|
|
2078
|
-
const ttlToUse = TTL$
|
|
2079
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2095
|
+
const ttlToUse = TTL$7;
|
|
2096
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "external-connectivity", VERSION$7, RepresentationType$7, equals$7);
|
|
2080
2097
|
return createLink(key);
|
|
2081
2098
|
};
|
|
2082
|
-
function getTypeCacheKeys$
|
|
2099
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
2083
2100
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2084
2101
|
const rootKey = fullPathFactory();
|
|
2085
2102
|
rootKeySet.set(rootKey, {
|
|
2086
2103
|
namespace: keyPrefix,
|
|
2087
|
-
representationName: RepresentationType$
|
|
2104
|
+
representationName: RepresentationType$7,
|
|
2088
2105
|
mergeable: false
|
|
2089
2106
|
});
|
|
2090
2107
|
}
|
|
2091
2108
|
|
|
2092
|
-
function select$
|
|
2093
|
-
return select$
|
|
2109
|
+
function select$e(luvio, params) {
|
|
2110
|
+
return select$f();
|
|
2094
2111
|
}
|
|
2095
|
-
function keyBuilder$
|
|
2112
|
+
function keyBuilder$c(luvio, params) {
|
|
2096
2113
|
return keyPrefix + '::ExternalConnectivityConnectorListRepresentation:(' + ')';
|
|
2097
2114
|
}
|
|
2098
|
-
function getResponseCacheKeys$
|
|
2099
|
-
getTypeCacheKeys$
|
|
2115
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
2116
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$c());
|
|
2100
2117
|
}
|
|
2101
|
-
function ingestSuccess$
|
|
2118
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
2102
2119
|
const { body } = response;
|
|
2103
|
-
const key = keyBuilder$
|
|
2104
|
-
luvio.storeIngest(key, ingest$
|
|
2120
|
+
const key = keyBuilder$c();
|
|
2121
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
2105
2122
|
const snapshot = luvio.storeLookup({
|
|
2106
2123
|
recordId: key,
|
|
2107
|
-
node: select$
|
|
2124
|
+
node: select$e(),
|
|
2108
2125
|
variables: {},
|
|
2109
2126
|
}, snapshotRefresh);
|
|
2110
2127
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2115,19 +2132,19 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2115
2132
|
deepFreeze(snapshot.data);
|
|
2116
2133
|
return snapshot;
|
|
2117
2134
|
}
|
|
2118
|
-
function ingestError$
|
|
2119
|
-
const key = keyBuilder$
|
|
2135
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
2136
|
+
const key = keyBuilder$c();
|
|
2120
2137
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2121
2138
|
const storeMetadataParams = {
|
|
2122
|
-
ttl: TTL$
|
|
2139
|
+
ttl: TTL$7,
|
|
2123
2140
|
namespace: keyPrefix,
|
|
2124
|
-
version: VERSION$
|
|
2125
|
-
representationName: RepresentationType$
|
|
2141
|
+
version: VERSION$7,
|
|
2142
|
+
representationName: RepresentationType$7
|
|
2126
2143
|
};
|
|
2127
2144
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2128
2145
|
return errorSnapshot;
|
|
2129
2146
|
}
|
|
2130
|
-
function createResourceRequest$
|
|
2147
|
+
function createResourceRequest$7(config) {
|
|
2131
2148
|
const headers = {};
|
|
2132
2149
|
return {
|
|
2133
2150
|
baseUri: '/services/data/v66.0',
|
|
@@ -2141,90 +2158,90 @@ function createResourceRequest$6(config) {
|
|
|
2141
2158
|
};
|
|
2142
2159
|
}
|
|
2143
2160
|
|
|
2144
|
-
const adapterName$
|
|
2161
|
+
const adapterName$7 = 'getConnectors';
|
|
2145
2162
|
const getConnectors_ConfigPropertyMetadata = [];
|
|
2146
|
-
const getConnectors_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2147
|
-
const createResourceParams$
|
|
2148
|
-
function keyBuilder$
|
|
2149
|
-
createResourceParams$
|
|
2150
|
-
return keyBuilder$
|
|
2163
|
+
const getConnectors_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getConnectors_ConfigPropertyMetadata);
|
|
2164
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(getConnectors_ConfigPropertyMetadata);
|
|
2165
|
+
function keyBuilder$b(luvio, config) {
|
|
2166
|
+
createResourceParams$7(config);
|
|
2167
|
+
return keyBuilder$c();
|
|
2151
2168
|
}
|
|
2152
|
-
function typeCheckConfig$
|
|
2169
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
2153
2170
|
const config = {};
|
|
2154
2171
|
return config;
|
|
2155
2172
|
}
|
|
2156
|
-
function validateAdapterConfig$
|
|
2173
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
2157
2174
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2158
2175
|
return null;
|
|
2159
2176
|
}
|
|
2160
2177
|
if (process.env.NODE_ENV !== 'production') {
|
|
2161
2178
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2162
2179
|
}
|
|
2163
|
-
const config = typeCheckConfig$
|
|
2180
|
+
const config = typeCheckConfig$7();
|
|
2164
2181
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2165
2182
|
return null;
|
|
2166
2183
|
}
|
|
2167
2184
|
return config;
|
|
2168
2185
|
}
|
|
2169
|
-
function adapterFragment$
|
|
2170
|
-
createResourceParams$
|
|
2171
|
-
return select$
|
|
2186
|
+
function adapterFragment$4(luvio, config) {
|
|
2187
|
+
createResourceParams$7(config);
|
|
2188
|
+
return select$e();
|
|
2172
2189
|
}
|
|
2173
|
-
function onFetchResponseSuccess$
|
|
2174
|
-
const snapshot = ingestSuccess$
|
|
2190
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
2191
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
2175
2192
|
config,
|
|
2176
|
-
resolve: () => buildNetworkSnapshot$
|
|
2193
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
2177
2194
|
});
|
|
2178
2195
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2179
2196
|
}
|
|
2180
|
-
function onFetchResponseError$
|
|
2181
|
-
const snapshot = ingestError$
|
|
2197
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
2198
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
2182
2199
|
config,
|
|
2183
|
-
resolve: () => buildNetworkSnapshot$
|
|
2200
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
2184
2201
|
});
|
|
2185
2202
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2186
2203
|
}
|
|
2187
|
-
function buildNetworkSnapshot$
|
|
2188
|
-
const resourceParams = createResourceParams$
|
|
2189
|
-
const request = createResourceRequest$
|
|
2204
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
2205
|
+
const resourceParams = createResourceParams$7(config);
|
|
2206
|
+
const request = createResourceRequest$7();
|
|
2190
2207
|
return luvio.dispatchResourceRequest(request, options)
|
|
2191
2208
|
.then((response) => {
|
|
2192
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2209
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
2193
2210
|
const cache = new StoreKeyMap();
|
|
2194
|
-
getResponseCacheKeys$
|
|
2211
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
2195
2212
|
return cache;
|
|
2196
2213
|
});
|
|
2197
2214
|
}, (response) => {
|
|
2198
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2215
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
2199
2216
|
});
|
|
2200
2217
|
}
|
|
2201
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2202
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2218
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2219
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
2203
2220
|
}
|
|
2204
|
-
function buildCachedSnapshotCachePolicy$
|
|
2221
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
2205
2222
|
const { luvio, config } = context;
|
|
2206
2223
|
const selector = {
|
|
2207
|
-
recordId: keyBuilder$
|
|
2208
|
-
node: adapterFragment$
|
|
2224
|
+
recordId: keyBuilder$b(luvio, config),
|
|
2225
|
+
node: adapterFragment$4(luvio, config),
|
|
2209
2226
|
variables: {},
|
|
2210
2227
|
};
|
|
2211
2228
|
const cacheSnapshot = storeLookup(selector, {
|
|
2212
2229
|
config,
|
|
2213
|
-
resolve: () => buildNetworkSnapshot$
|
|
2230
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
2214
2231
|
});
|
|
2215
2232
|
return cacheSnapshot;
|
|
2216
2233
|
}
|
|
2217
2234
|
const getConnectorsAdapterFactory = (luvio) => function externalConnectivity__getConnectors(untrustedConfig, requestContext) {
|
|
2218
|
-
const config = validateAdapterConfig$
|
|
2235
|
+
const config = validateAdapterConfig$7(untrustedConfig, getConnectors_ConfigPropertyNames);
|
|
2219
2236
|
// Invalid or incomplete config
|
|
2220
2237
|
if (config === null) {
|
|
2221
2238
|
return null;
|
|
2222
2239
|
}
|
|
2223
2240
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2224
|
-
buildCachedSnapshotCachePolicy$
|
|
2241
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
2225
2242
|
};
|
|
2226
2243
|
|
|
2227
|
-
function validate$
|
|
2244
|
+
function validate$a(obj, path = 'ExternalConnectivityConnectionReferencedFlowsDefinitionRepresentation') {
|
|
2228
2245
|
const v_error = (() => {
|
|
2229
2246
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2230
2247
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2396,7 +2413,7 @@ function validate$9(obj, path = 'ExternalConnectivityConnectionReferencedFlowsDe
|
|
|
2396
2413
|
return v_error === undefined ? null : v_error;
|
|
2397
2414
|
}
|
|
2398
2415
|
|
|
2399
|
-
function validate$
|
|
2416
|
+
function validate$9(obj, path = 'ExternalConnectivityConnectionFlowsGroupedByApiNameRepresentation') {
|
|
2400
2417
|
const v_error = (() => {
|
|
2401
2418
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2402
2419
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2435,7 +2452,7 @@ function validate$8(obj, path = 'ExternalConnectivityConnectionFlowsGroupedByApi
|
|
|
2435
2452
|
for (let i = 0; i < obj_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation.length; i++) {
|
|
2436
2453
|
const obj_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation_item = obj_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation[i];
|
|
2437
2454
|
const path_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation_item = path_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation + '[' + i + ']';
|
|
2438
|
-
const referencepath_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation_itemValidationError = validate$
|
|
2455
|
+
const referencepath_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation_itemValidationError = validate$a(obj_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation_item, path_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation_item);
|
|
2439
2456
|
if (referencepath_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation_itemValidationError !== null) {
|
|
2440
2457
|
let message = 'Object doesn\'t match ExternalConnectivityConnectionReferencedFlowsDefinitionRepresentation (at "' + path_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation_item + '")\n';
|
|
2441
2458
|
message += referencepath_externalConnectivityConnectionReferencedFlowsDefinitionRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2446,9 +2463,9 @@ function validate$8(obj, path = 'ExternalConnectivityConnectionFlowsGroupedByApi
|
|
|
2446
2463
|
return v_error === undefined ? null : v_error;
|
|
2447
2464
|
}
|
|
2448
2465
|
|
|
2449
|
-
const TTL$
|
|
2450
|
-
const VERSION$
|
|
2451
|
-
function validate$
|
|
2466
|
+
const TTL$6 = 500;
|
|
2467
|
+
const VERSION$6 = "820abb05d9fdc457563c221e32216e97";
|
|
2468
|
+
function validate$8(obj, path = 'ExternalConnectivityConnectionReferencedFlowsRepresentation') {
|
|
2452
2469
|
const v_error = (() => {
|
|
2453
2470
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2454
2471
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2487,7 +2504,7 @@ function validate$7(obj, path = 'ExternalConnectivityConnectionReferencedFlowsRe
|
|
|
2487
2504
|
for (let i = 0; i < obj_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation.length; i++) {
|
|
2488
2505
|
const obj_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation_item = obj_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation[i];
|
|
2489
2506
|
const path_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation_item = path_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation + '[' + i + ']';
|
|
2490
|
-
const referencepath_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation_itemValidationError = validate$
|
|
2507
|
+
const referencepath_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation_itemValidationError = validate$9(obj_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation_item, path_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation_item);
|
|
2491
2508
|
if (referencepath_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation_itemValidationError !== null) {
|
|
2492
2509
|
let message = 'Object doesn\'t match ExternalConnectivityConnectionFlowsGroupedByApiNameRepresentation (at "' + path_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation_item + '")\n';
|
|
2493
2510
|
message += referencepath_externalConnectivityConnectionFlowsGroupedByApiNameRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2497,62 +2514,62 @@ function validate$7(obj, path = 'ExternalConnectivityConnectionReferencedFlowsRe
|
|
|
2497
2514
|
})();
|
|
2498
2515
|
return v_error === undefined ? null : v_error;
|
|
2499
2516
|
}
|
|
2500
|
-
const RepresentationType$
|
|
2501
|
-
function normalize$
|
|
2517
|
+
const RepresentationType$6 = 'ExternalConnectivityConnectionReferencedFlowsRepresentation';
|
|
2518
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
2502
2519
|
return input;
|
|
2503
2520
|
}
|
|
2504
|
-
const select$
|
|
2521
|
+
const select$d = function ExternalConnectivityConnectionReferencedFlowsRepresentationSelect() {
|
|
2505
2522
|
return {
|
|
2506
2523
|
kind: 'Fragment',
|
|
2507
|
-
version: VERSION$
|
|
2524
|
+
version: VERSION$6,
|
|
2508
2525
|
private: [],
|
|
2509
2526
|
opaque: true
|
|
2510
2527
|
};
|
|
2511
2528
|
};
|
|
2512
|
-
function equals$
|
|
2529
|
+
function equals$6(existing, incoming) {
|
|
2513
2530
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2514
2531
|
return false;
|
|
2515
2532
|
}
|
|
2516
2533
|
return true;
|
|
2517
2534
|
}
|
|
2518
|
-
const ingest$
|
|
2535
|
+
const ingest$6 = function ExternalConnectivityConnectionReferencedFlowsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2519
2536
|
if (process.env.NODE_ENV !== 'production') {
|
|
2520
|
-
const validateError = validate$
|
|
2537
|
+
const validateError = validate$8(input);
|
|
2521
2538
|
if (validateError !== null) {
|
|
2522
2539
|
throw validateError;
|
|
2523
2540
|
}
|
|
2524
2541
|
}
|
|
2525
2542
|
const key = path.fullPath;
|
|
2526
|
-
const ttlToUse = TTL$
|
|
2527
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2543
|
+
const ttlToUse = TTL$6;
|
|
2544
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "external-connectivity", VERSION$6, RepresentationType$6, equals$6);
|
|
2528
2545
|
return createLink(key);
|
|
2529
2546
|
};
|
|
2530
|
-
function getTypeCacheKeys$
|
|
2547
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
2531
2548
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2532
2549
|
const rootKey = fullPathFactory();
|
|
2533
2550
|
rootKeySet.set(rootKey, {
|
|
2534
2551
|
namespace: keyPrefix,
|
|
2535
|
-
representationName: RepresentationType$
|
|
2552
|
+
representationName: RepresentationType$6,
|
|
2536
2553
|
mergeable: false
|
|
2537
2554
|
});
|
|
2538
2555
|
}
|
|
2539
2556
|
|
|
2540
|
-
function select$
|
|
2541
|
-
return select$
|
|
2557
|
+
function select$c(luvio, params) {
|
|
2558
|
+
return select$d();
|
|
2542
2559
|
}
|
|
2543
|
-
function keyBuilder$
|
|
2560
|
+
function keyBuilder$a(luvio, params) {
|
|
2544
2561
|
return keyPrefix + '::ExternalConnectivityConnectionReferencedFlowsRepresentation:(' + 'connectionDeveloperName:' + params.urlParams.connectionDeveloperName + ')';
|
|
2545
2562
|
}
|
|
2546
|
-
function getResponseCacheKeys$
|
|
2547
|
-
getTypeCacheKeys$
|
|
2563
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
2564
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
2548
2565
|
}
|
|
2549
|
-
function ingestSuccess$
|
|
2566
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
2550
2567
|
const { body } = response;
|
|
2551
|
-
const key = keyBuilder$
|
|
2552
|
-
luvio.storeIngest(key, ingest$
|
|
2568
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
2569
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
2553
2570
|
const snapshot = luvio.storeLookup({
|
|
2554
2571
|
recordId: key,
|
|
2555
|
-
node: select$
|
|
2572
|
+
node: select$c(),
|
|
2556
2573
|
variables: {},
|
|
2557
2574
|
}, snapshotRefresh);
|
|
2558
2575
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2563,19 +2580,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2563
2580
|
deepFreeze(snapshot.data);
|
|
2564
2581
|
return snapshot;
|
|
2565
2582
|
}
|
|
2566
|
-
function ingestError$
|
|
2567
|
-
const key = keyBuilder$
|
|
2583
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
2584
|
+
const key = keyBuilder$a(luvio, params);
|
|
2568
2585
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2569
2586
|
const storeMetadataParams = {
|
|
2570
|
-
ttl: TTL$
|
|
2587
|
+
ttl: TTL$6,
|
|
2571
2588
|
namespace: keyPrefix,
|
|
2572
|
-
version: VERSION$
|
|
2573
|
-
representationName: RepresentationType$
|
|
2589
|
+
version: VERSION$6,
|
|
2590
|
+
representationName: RepresentationType$6
|
|
2574
2591
|
};
|
|
2575
2592
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2576
2593
|
return errorSnapshot;
|
|
2577
2594
|
}
|
|
2578
|
-
function createResourceRequest$
|
|
2595
|
+
function createResourceRequest$6(config) {
|
|
2579
2596
|
const headers = {};
|
|
2580
2597
|
return {
|
|
2581
2598
|
baseUri: '/services/data/v66.0',
|
|
@@ -2589,93 +2606,93 @@ function createResourceRequest$5(config) {
|
|
|
2589
2606
|
};
|
|
2590
2607
|
}
|
|
2591
2608
|
|
|
2592
|
-
const adapterName$
|
|
2609
|
+
const adapterName$6 = 'getExternalConnectivityConnectionReferencedFlows';
|
|
2593
2610
|
const getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata = [
|
|
2594
2611
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2595
2612
|
];
|
|
2596
|
-
const getExternalConnectivityConnectionReferencedFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2597
|
-
const createResourceParams$
|
|
2598
|
-
function keyBuilder$
|
|
2599
|
-
const resourceParams = createResourceParams$
|
|
2600
|
-
return keyBuilder$
|
|
2613
|
+
const getExternalConnectivityConnectionReferencedFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata);
|
|
2614
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata);
|
|
2615
|
+
function keyBuilder$9(luvio, config) {
|
|
2616
|
+
const resourceParams = createResourceParams$6(config);
|
|
2617
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
2601
2618
|
}
|
|
2602
|
-
function typeCheckConfig$
|
|
2619
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
2603
2620
|
const config = {};
|
|
2604
|
-
typeCheckConfig$
|
|
2621
|
+
typeCheckConfig$d(untrustedConfig, config, getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata);
|
|
2605
2622
|
return config;
|
|
2606
2623
|
}
|
|
2607
|
-
function validateAdapterConfig$
|
|
2624
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
2608
2625
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2609
2626
|
return null;
|
|
2610
2627
|
}
|
|
2611
2628
|
if (process.env.NODE_ENV !== 'production') {
|
|
2612
2629
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2613
2630
|
}
|
|
2614
|
-
const config = typeCheckConfig$
|
|
2631
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
2615
2632
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2616
2633
|
return null;
|
|
2617
2634
|
}
|
|
2618
2635
|
return config;
|
|
2619
2636
|
}
|
|
2620
|
-
function adapterFragment$
|
|
2621
|
-
createResourceParams$
|
|
2622
|
-
return select$
|
|
2637
|
+
function adapterFragment$3(luvio, config) {
|
|
2638
|
+
createResourceParams$6(config);
|
|
2639
|
+
return select$c();
|
|
2623
2640
|
}
|
|
2624
|
-
function onFetchResponseSuccess$
|
|
2625
|
-
const snapshot = ingestSuccess$
|
|
2641
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
2642
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
2626
2643
|
config,
|
|
2627
|
-
resolve: () => buildNetworkSnapshot$
|
|
2644
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2628
2645
|
});
|
|
2629
2646
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2630
2647
|
}
|
|
2631
|
-
function onFetchResponseError$
|
|
2632
|
-
const snapshot = ingestError$
|
|
2648
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
2649
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
2633
2650
|
config,
|
|
2634
|
-
resolve: () => buildNetworkSnapshot$
|
|
2651
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2635
2652
|
});
|
|
2636
2653
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2637
2654
|
}
|
|
2638
|
-
function buildNetworkSnapshot$
|
|
2639
|
-
const resourceParams = createResourceParams$
|
|
2640
|
-
const request = createResourceRequest$
|
|
2655
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
2656
|
+
const resourceParams = createResourceParams$6(config);
|
|
2657
|
+
const request = createResourceRequest$6(resourceParams);
|
|
2641
2658
|
return luvio.dispatchResourceRequest(request, options)
|
|
2642
2659
|
.then((response) => {
|
|
2643
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2660
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
2644
2661
|
const cache = new StoreKeyMap();
|
|
2645
|
-
getResponseCacheKeys$
|
|
2662
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
2646
2663
|
return cache;
|
|
2647
2664
|
});
|
|
2648
2665
|
}, (response) => {
|
|
2649
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2666
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
2650
2667
|
});
|
|
2651
2668
|
}
|
|
2652
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2653
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2669
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2670
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
2654
2671
|
}
|
|
2655
|
-
function buildCachedSnapshotCachePolicy$
|
|
2672
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2656
2673
|
const { luvio, config } = context;
|
|
2657
2674
|
const selector = {
|
|
2658
|
-
recordId: keyBuilder$
|
|
2659
|
-
node: adapterFragment$
|
|
2675
|
+
recordId: keyBuilder$9(luvio, config),
|
|
2676
|
+
node: adapterFragment$3(luvio, config),
|
|
2660
2677
|
variables: {},
|
|
2661
2678
|
};
|
|
2662
2679
|
const cacheSnapshot = storeLookup(selector, {
|
|
2663
2680
|
config,
|
|
2664
|
-
resolve: () => buildNetworkSnapshot$
|
|
2681
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
2665
2682
|
});
|
|
2666
2683
|
return cacheSnapshot;
|
|
2667
2684
|
}
|
|
2668
2685
|
const getExternalConnectivityConnectionReferencedFlowsAdapterFactory = (luvio) => function externalConnectivity__getExternalConnectivityConnectionReferencedFlows(untrustedConfig, requestContext) {
|
|
2669
|
-
const config = validateAdapterConfig$
|
|
2686
|
+
const config = validateAdapterConfig$6(untrustedConfig, getExternalConnectivityConnectionReferencedFlows_ConfigPropertyNames);
|
|
2670
2687
|
// Invalid or incomplete config
|
|
2671
2688
|
if (config === null) {
|
|
2672
2689
|
return null;
|
|
2673
2690
|
}
|
|
2674
2691
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2675
|
-
buildCachedSnapshotCachePolicy$
|
|
2692
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
2676
2693
|
};
|
|
2677
2694
|
|
|
2678
|
-
function validate$
|
|
2695
|
+
function validate$7(obj, path = 'IcStandardExternalIdentityProviderRepresentation') {
|
|
2679
2696
|
const v_error = (() => {
|
|
2680
2697
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2681
2698
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2704,9 +2721,9 @@ function validate$6(obj, path = 'IcStandardExternalIdentityProviderRepresentatio
|
|
|
2704
2721
|
return v_error === undefined ? null : v_error;
|
|
2705
2722
|
}
|
|
2706
2723
|
|
|
2707
|
-
const TTL$
|
|
2708
|
-
const VERSION$
|
|
2709
|
-
function validate$
|
|
2724
|
+
const TTL$5 = 500;
|
|
2725
|
+
const VERSION$5 = "72f95c35be550092433b2acd2f914899";
|
|
2726
|
+
function validate$6(obj, path = 'IcStandardExternalIdentityProviderListRepresentation') {
|
|
2710
2727
|
const v_error = (() => {
|
|
2711
2728
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2712
2729
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2719,7 +2736,7 @@ function validate$5(obj, path = 'IcStandardExternalIdentityProviderListRepresent
|
|
|
2719
2736
|
for (let i = 0; i < obj_identityProviderRepresentationList.length; i++) {
|
|
2720
2737
|
const obj_identityProviderRepresentationList_item = obj_identityProviderRepresentationList[i];
|
|
2721
2738
|
const path_identityProviderRepresentationList_item = path_identityProviderRepresentationList + '[' + i + ']';
|
|
2722
|
-
const referencepath_identityProviderRepresentationList_itemValidationError = validate$
|
|
2739
|
+
const referencepath_identityProviderRepresentationList_itemValidationError = validate$7(obj_identityProviderRepresentationList_item, path_identityProviderRepresentationList_item);
|
|
2723
2740
|
if (referencepath_identityProviderRepresentationList_itemValidationError !== null) {
|
|
2724
2741
|
let message = 'Object doesn\'t match IcStandardExternalIdentityProviderRepresentation (at "' + path_identityProviderRepresentationList_item + '")\n';
|
|
2725
2742
|
message += referencepath_identityProviderRepresentationList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2729,62 +2746,62 @@ function validate$5(obj, path = 'IcStandardExternalIdentityProviderListRepresent
|
|
|
2729
2746
|
})();
|
|
2730
2747
|
return v_error === undefined ? null : v_error;
|
|
2731
2748
|
}
|
|
2732
|
-
const RepresentationType$
|
|
2733
|
-
function normalize$
|
|
2749
|
+
const RepresentationType$5 = 'IcStandardExternalIdentityProviderListRepresentation';
|
|
2750
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
2734
2751
|
return input;
|
|
2735
2752
|
}
|
|
2736
|
-
const select$
|
|
2753
|
+
const select$b = function IcStandardExternalIdentityProviderListRepresentationSelect() {
|
|
2737
2754
|
return {
|
|
2738
2755
|
kind: 'Fragment',
|
|
2739
|
-
version: VERSION$
|
|
2756
|
+
version: VERSION$5,
|
|
2740
2757
|
private: [],
|
|
2741
2758
|
opaque: true
|
|
2742
2759
|
};
|
|
2743
2760
|
};
|
|
2744
|
-
function equals$
|
|
2761
|
+
function equals$5(existing, incoming) {
|
|
2745
2762
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2746
2763
|
return false;
|
|
2747
2764
|
}
|
|
2748
2765
|
return true;
|
|
2749
2766
|
}
|
|
2750
|
-
const ingest$
|
|
2767
|
+
const ingest$5 = function IcStandardExternalIdentityProviderListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2751
2768
|
if (process.env.NODE_ENV !== 'production') {
|
|
2752
|
-
const validateError = validate$
|
|
2769
|
+
const validateError = validate$6(input);
|
|
2753
2770
|
if (validateError !== null) {
|
|
2754
2771
|
throw validateError;
|
|
2755
2772
|
}
|
|
2756
2773
|
}
|
|
2757
2774
|
const key = path.fullPath;
|
|
2758
|
-
const ttlToUse = TTL$
|
|
2759
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2775
|
+
const ttlToUse = TTL$5;
|
|
2776
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "external-connectivity", VERSION$5, RepresentationType$5, equals$5);
|
|
2760
2777
|
return createLink(key);
|
|
2761
2778
|
};
|
|
2762
|
-
function getTypeCacheKeys$
|
|
2779
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
2763
2780
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2764
2781
|
const rootKey = fullPathFactory();
|
|
2765
2782
|
rootKeySet.set(rootKey, {
|
|
2766
2783
|
namespace: keyPrefix,
|
|
2767
|
-
representationName: RepresentationType$
|
|
2784
|
+
representationName: RepresentationType$5,
|
|
2768
2785
|
mergeable: false
|
|
2769
2786
|
});
|
|
2770
2787
|
}
|
|
2771
2788
|
|
|
2772
|
-
function select$
|
|
2773
|
-
return select$
|
|
2789
|
+
function select$a(luvio, params) {
|
|
2790
|
+
return select$b();
|
|
2774
2791
|
}
|
|
2775
|
-
function keyBuilder$
|
|
2792
|
+
function keyBuilder$8(luvio, params) {
|
|
2776
2793
|
return keyPrefix + '::IcStandardExternalIdentityProviderListRepresentation:(' + 'version:' + params.queryParams.version + ',' + 'connectorType:' + params.urlParams.connectorType + ')';
|
|
2777
2794
|
}
|
|
2778
|
-
function getResponseCacheKeys$
|
|
2779
|
-
getTypeCacheKeys$
|
|
2795
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
2796
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
2780
2797
|
}
|
|
2781
|
-
function ingestSuccess$
|
|
2798
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
2782
2799
|
const { body } = response;
|
|
2783
|
-
const key = keyBuilder$
|
|
2784
|
-
luvio.storeIngest(key, ingest$
|
|
2800
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
2801
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
2785
2802
|
const snapshot = luvio.storeLookup({
|
|
2786
2803
|
recordId: key,
|
|
2787
|
-
node: select$
|
|
2804
|
+
node: select$a(),
|
|
2788
2805
|
variables: {},
|
|
2789
2806
|
}, snapshotRefresh);
|
|
2790
2807
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2795,19 +2812,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2795
2812
|
deepFreeze(snapshot.data);
|
|
2796
2813
|
return snapshot;
|
|
2797
2814
|
}
|
|
2798
|
-
function ingestError$
|
|
2799
|
-
const key = keyBuilder$
|
|
2815
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
2816
|
+
const key = keyBuilder$8(luvio, params);
|
|
2800
2817
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2801
2818
|
const storeMetadataParams = {
|
|
2802
|
-
ttl: TTL$
|
|
2819
|
+
ttl: TTL$5,
|
|
2803
2820
|
namespace: keyPrefix,
|
|
2804
|
-
version: VERSION$
|
|
2805
|
-
representationName: RepresentationType$
|
|
2821
|
+
version: VERSION$5,
|
|
2822
|
+
representationName: RepresentationType$5
|
|
2806
2823
|
};
|
|
2807
2824
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2808
2825
|
return errorSnapshot;
|
|
2809
2826
|
}
|
|
2810
|
-
function createResourceRequest$
|
|
2827
|
+
function createResourceRequest$5(config) {
|
|
2811
2828
|
const headers = {};
|
|
2812
2829
|
return {
|
|
2813
2830
|
baseUri: '/services/data/v66.0',
|
|
@@ -2821,96 +2838,96 @@ function createResourceRequest$4(config) {
|
|
|
2821
2838
|
};
|
|
2822
2839
|
}
|
|
2823
2840
|
|
|
2824
|
-
const adapterName$
|
|
2841
|
+
const adapterName$5 = 'getExternalIdentityProviders';
|
|
2825
2842
|
const getExternalIdentityProviders_ConfigPropertyMetadata = [
|
|
2826
2843
|
generateParamConfigMetadata('connectorType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2827
2844
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2828
2845
|
];
|
|
2829
|
-
const getExternalIdentityProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2830
|
-
const createResourceParams$
|
|
2831
|
-
function keyBuilder$
|
|
2832
|
-
const resourceParams = createResourceParams$
|
|
2833
|
-
return keyBuilder$
|
|
2846
|
+
const getExternalIdentityProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
2847
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
2848
|
+
function keyBuilder$7(luvio, config) {
|
|
2849
|
+
const resourceParams = createResourceParams$5(config);
|
|
2850
|
+
return keyBuilder$8(luvio, resourceParams);
|
|
2834
2851
|
}
|
|
2835
|
-
function typeCheckConfig$
|
|
2852
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
2836
2853
|
const config = {};
|
|
2837
|
-
typeCheckConfig$
|
|
2854
|
+
typeCheckConfig$d(untrustedConfig, config, getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
2838
2855
|
return config;
|
|
2839
2856
|
}
|
|
2840
|
-
function validateAdapterConfig$
|
|
2857
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
2841
2858
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2842
2859
|
return null;
|
|
2843
2860
|
}
|
|
2844
2861
|
if (process.env.NODE_ENV !== 'production') {
|
|
2845
2862
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2846
2863
|
}
|
|
2847
|
-
const config = typeCheckConfig$
|
|
2864
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
2848
2865
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2849
2866
|
return null;
|
|
2850
2867
|
}
|
|
2851
2868
|
return config;
|
|
2852
2869
|
}
|
|
2853
|
-
function adapterFragment$
|
|
2854
|
-
createResourceParams$
|
|
2855
|
-
return select$
|
|
2870
|
+
function adapterFragment$2(luvio, config) {
|
|
2871
|
+
createResourceParams$5(config);
|
|
2872
|
+
return select$a();
|
|
2856
2873
|
}
|
|
2857
|
-
function onFetchResponseSuccess$
|
|
2858
|
-
const snapshot = ingestSuccess$
|
|
2874
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
2875
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
2859
2876
|
config,
|
|
2860
|
-
resolve: () => buildNetworkSnapshot$
|
|
2877
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2861
2878
|
});
|
|
2862
2879
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2863
2880
|
}
|
|
2864
|
-
function onFetchResponseError$
|
|
2865
|
-
const snapshot = ingestError$
|
|
2881
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
2882
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
2866
2883
|
config,
|
|
2867
|
-
resolve: () => buildNetworkSnapshot$
|
|
2884
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2868
2885
|
});
|
|
2869
2886
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2870
2887
|
}
|
|
2871
|
-
function buildNetworkSnapshot$
|
|
2872
|
-
const resourceParams = createResourceParams$
|
|
2873
|
-
const request = createResourceRequest$
|
|
2888
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
2889
|
+
const resourceParams = createResourceParams$5(config);
|
|
2890
|
+
const request = createResourceRequest$5(resourceParams);
|
|
2874
2891
|
return luvio.dispatchResourceRequest(request, options)
|
|
2875
2892
|
.then((response) => {
|
|
2876
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2893
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
2877
2894
|
const cache = new StoreKeyMap();
|
|
2878
|
-
getResponseCacheKeys$
|
|
2895
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
2879
2896
|
return cache;
|
|
2880
2897
|
});
|
|
2881
2898
|
}, (response) => {
|
|
2882
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2899
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
2883
2900
|
});
|
|
2884
2901
|
}
|
|
2885
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2886
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2902
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
2903
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
2887
2904
|
}
|
|
2888
|
-
function buildCachedSnapshotCachePolicy$
|
|
2905
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2889
2906
|
const { luvio, config } = context;
|
|
2890
2907
|
const selector = {
|
|
2891
|
-
recordId: keyBuilder$
|
|
2892
|
-
node: adapterFragment$
|
|
2908
|
+
recordId: keyBuilder$7(luvio, config),
|
|
2909
|
+
node: adapterFragment$2(luvio, config),
|
|
2893
2910
|
variables: {},
|
|
2894
2911
|
};
|
|
2895
2912
|
const cacheSnapshot = storeLookup(selector, {
|
|
2896
2913
|
config,
|
|
2897
|
-
resolve: () => buildNetworkSnapshot$
|
|
2914
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
2898
2915
|
});
|
|
2899
2916
|
return cacheSnapshot;
|
|
2900
2917
|
}
|
|
2901
2918
|
const getExternalIdentityProvidersAdapterFactory = (luvio) => function externalConnectivity__getExternalIdentityProviders(untrustedConfig, requestContext) {
|
|
2902
|
-
const config = validateAdapterConfig$
|
|
2919
|
+
const config = validateAdapterConfig$5(untrustedConfig, getExternalIdentityProviders_ConfigPropertyNames);
|
|
2903
2920
|
// Invalid or incomplete config
|
|
2904
2921
|
if (config === null) {
|
|
2905
2922
|
return null;
|
|
2906
2923
|
}
|
|
2907
2924
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2908
|
-
buildCachedSnapshotCachePolicy$
|
|
2925
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
2909
2926
|
};
|
|
2910
2927
|
|
|
2911
|
-
const TTL$
|
|
2912
|
-
const VERSION$
|
|
2913
|
-
function validate$
|
|
2928
|
+
const TTL$4 = 500;
|
|
2929
|
+
const VERSION$4 = "0b4a79a624550132fa06fd5506437efb";
|
|
2930
|
+
function validate$5(obj, path = 'ExternalConnectivityInvocableActionInfoRepresentation') {
|
|
2914
2931
|
const v_error = (() => {
|
|
2915
2932
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2916
2933
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2932,65 +2949,618 @@ function validate$4(obj, path = 'ExternalConnectivityInvocableActionInfoRepresen
|
|
|
2932
2949
|
return new TypeError('Expected "null" but received "' + typeof obj_category + '" (at "' + path_category + '")');
|
|
2933
2950
|
}
|
|
2934
2951
|
})();
|
|
2935
|
-
if (obj_category_union1_error != null) {
|
|
2936
|
-
obj_category_union1 = obj_category_union1_error.message;
|
|
2952
|
+
if (obj_category_union1_error != null) {
|
|
2953
|
+
obj_category_union1 = obj_category_union1_error.message;
|
|
2954
|
+
}
|
|
2955
|
+
if (obj_category_union0 && obj_category_union1) {
|
|
2956
|
+
let message = 'Object doesn\'t match union (at "' + path_category + '")';
|
|
2957
|
+
message += '\n' + obj_category_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2958
|
+
message += '\n' + obj_category_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2959
|
+
return new TypeError(message);
|
|
2960
|
+
}
|
|
2961
|
+
const obj_description = obj.description;
|
|
2962
|
+
const path_description = path + '.description';
|
|
2963
|
+
let obj_description_union0 = null;
|
|
2964
|
+
const obj_description_union0_error = (() => {
|
|
2965
|
+
if (typeof obj_description !== 'string') {
|
|
2966
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2967
|
+
}
|
|
2968
|
+
})();
|
|
2969
|
+
if (obj_description_union0_error != null) {
|
|
2970
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
2971
|
+
}
|
|
2972
|
+
let obj_description_union1 = null;
|
|
2973
|
+
const obj_description_union1_error = (() => {
|
|
2974
|
+
if (obj_description !== null) {
|
|
2975
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2976
|
+
}
|
|
2977
|
+
})();
|
|
2978
|
+
if (obj_description_union1_error != null) {
|
|
2979
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
2980
|
+
}
|
|
2981
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
2982
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
2983
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2984
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2985
|
+
return new TypeError(message);
|
|
2986
|
+
}
|
|
2987
|
+
const obj_durableId = obj.durableId;
|
|
2988
|
+
const path_durableId = path + '.durableId';
|
|
2989
|
+
let obj_durableId_union0 = null;
|
|
2990
|
+
const obj_durableId_union0_error = (() => {
|
|
2991
|
+
if (typeof obj_durableId !== 'string') {
|
|
2992
|
+
return new TypeError('Expected "string" but received "' + typeof obj_durableId + '" (at "' + path_durableId + '")');
|
|
2993
|
+
}
|
|
2994
|
+
})();
|
|
2995
|
+
if (obj_durableId_union0_error != null) {
|
|
2996
|
+
obj_durableId_union0 = obj_durableId_union0_error.message;
|
|
2997
|
+
}
|
|
2998
|
+
let obj_durableId_union1 = null;
|
|
2999
|
+
const obj_durableId_union1_error = (() => {
|
|
3000
|
+
if (obj_durableId !== null) {
|
|
3001
|
+
return new TypeError('Expected "null" but received "' + typeof obj_durableId + '" (at "' + path_durableId + '")');
|
|
3002
|
+
}
|
|
3003
|
+
})();
|
|
3004
|
+
if (obj_durableId_union1_error != null) {
|
|
3005
|
+
obj_durableId_union1 = obj_durableId_union1_error.message;
|
|
3006
|
+
}
|
|
3007
|
+
if (obj_durableId_union0 && obj_durableId_union1) {
|
|
3008
|
+
let message = 'Object doesn\'t match union (at "' + path_durableId + '")';
|
|
3009
|
+
message += '\n' + obj_durableId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3010
|
+
message += '\n' + obj_durableId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3011
|
+
return new TypeError(message);
|
|
3012
|
+
}
|
|
3013
|
+
const obj_label = obj.label;
|
|
3014
|
+
const path_label = path + '.label';
|
|
3015
|
+
let obj_label_union0 = null;
|
|
3016
|
+
const obj_label_union0_error = (() => {
|
|
3017
|
+
if (typeof obj_label !== 'string') {
|
|
3018
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3019
|
+
}
|
|
3020
|
+
})();
|
|
3021
|
+
if (obj_label_union0_error != null) {
|
|
3022
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
3023
|
+
}
|
|
3024
|
+
let obj_label_union1 = null;
|
|
3025
|
+
const obj_label_union1_error = (() => {
|
|
3026
|
+
if (obj_label !== null) {
|
|
3027
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3028
|
+
}
|
|
3029
|
+
})();
|
|
3030
|
+
if (obj_label_union1_error != null) {
|
|
3031
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
3032
|
+
}
|
|
3033
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
3034
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
3035
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3036
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3037
|
+
return new TypeError(message);
|
|
3038
|
+
}
|
|
3039
|
+
const obj_name = obj.name;
|
|
3040
|
+
const path_name = path + '.name';
|
|
3041
|
+
let obj_name_union0 = null;
|
|
3042
|
+
const obj_name_union0_error = (() => {
|
|
3043
|
+
if (typeof obj_name !== 'string') {
|
|
3044
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3045
|
+
}
|
|
3046
|
+
})();
|
|
3047
|
+
if (obj_name_union0_error != null) {
|
|
3048
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
3049
|
+
}
|
|
3050
|
+
let obj_name_union1 = null;
|
|
3051
|
+
const obj_name_union1_error = (() => {
|
|
3052
|
+
if (obj_name !== null) {
|
|
3053
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3054
|
+
}
|
|
3055
|
+
})();
|
|
3056
|
+
if (obj_name_union1_error != null) {
|
|
3057
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
3058
|
+
}
|
|
3059
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
3060
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
3061
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3062
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3063
|
+
return new TypeError(message);
|
|
3064
|
+
}
|
|
3065
|
+
const obj_type = obj.type;
|
|
3066
|
+
const path_type = path + '.type';
|
|
3067
|
+
let obj_type_union0 = null;
|
|
3068
|
+
const obj_type_union0_error = (() => {
|
|
3069
|
+
if (typeof obj_type !== 'string') {
|
|
3070
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3071
|
+
}
|
|
3072
|
+
})();
|
|
3073
|
+
if (obj_type_union0_error != null) {
|
|
3074
|
+
obj_type_union0 = obj_type_union0_error.message;
|
|
3075
|
+
}
|
|
3076
|
+
let obj_type_union1 = null;
|
|
3077
|
+
const obj_type_union1_error = (() => {
|
|
3078
|
+
if (obj_type !== null) {
|
|
3079
|
+
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3080
|
+
}
|
|
3081
|
+
})();
|
|
3082
|
+
if (obj_type_union1_error != null) {
|
|
3083
|
+
obj_type_union1 = obj_type_union1_error.message;
|
|
3084
|
+
}
|
|
3085
|
+
if (obj_type_union0 && obj_type_union1) {
|
|
3086
|
+
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
3087
|
+
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3088
|
+
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3089
|
+
return new TypeError(message);
|
|
3090
|
+
}
|
|
3091
|
+
})();
|
|
3092
|
+
return v_error === undefined ? null : v_error;
|
|
3093
|
+
}
|
|
3094
|
+
const RepresentationType$4 = 'ExternalConnectivityInvocableActionInfoRepresentation';
|
|
3095
|
+
function keyBuilder$6(luvio, config) {
|
|
3096
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + (config.name === null ? '' : config.name);
|
|
3097
|
+
}
|
|
3098
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
3099
|
+
const keyParams = {
|
|
3100
|
+
name: object.name
|
|
3101
|
+
};
|
|
3102
|
+
return keyBuilder$6(luvio, keyParams);
|
|
3103
|
+
}
|
|
3104
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
3105
|
+
return input;
|
|
3106
|
+
}
|
|
3107
|
+
const select$9 = function ExternalConnectivityInvocableActionInfoRepresentationSelect() {
|
|
3108
|
+
return {
|
|
3109
|
+
kind: 'Fragment',
|
|
3110
|
+
version: VERSION$4,
|
|
3111
|
+
private: [],
|
|
3112
|
+
selections: [
|
|
3113
|
+
{
|
|
3114
|
+
name: 'category',
|
|
3115
|
+
kind: 'Scalar'
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
name: 'description',
|
|
3119
|
+
kind: 'Scalar'
|
|
3120
|
+
},
|
|
3121
|
+
{
|
|
3122
|
+
name: 'durableId',
|
|
3123
|
+
kind: 'Scalar'
|
|
3124
|
+
},
|
|
3125
|
+
{
|
|
3126
|
+
name: 'label',
|
|
3127
|
+
kind: 'Scalar'
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
name: 'name',
|
|
3131
|
+
kind: 'Scalar'
|
|
3132
|
+
},
|
|
3133
|
+
{
|
|
3134
|
+
name: 'type',
|
|
3135
|
+
kind: 'Scalar'
|
|
3136
|
+
}
|
|
3137
|
+
]
|
|
3138
|
+
};
|
|
3139
|
+
};
|
|
3140
|
+
function equals$4(existing, incoming) {
|
|
3141
|
+
const existing_category = existing.category;
|
|
3142
|
+
const incoming_category = incoming.category;
|
|
3143
|
+
if (!(existing_category === incoming_category)) {
|
|
3144
|
+
return false;
|
|
3145
|
+
}
|
|
3146
|
+
const existing_description = existing.description;
|
|
3147
|
+
const incoming_description = incoming.description;
|
|
3148
|
+
if (!(existing_description === incoming_description)) {
|
|
3149
|
+
return false;
|
|
3150
|
+
}
|
|
3151
|
+
const existing_durableId = existing.durableId;
|
|
3152
|
+
const incoming_durableId = incoming.durableId;
|
|
3153
|
+
if (!(existing_durableId === incoming_durableId)) {
|
|
3154
|
+
return false;
|
|
3155
|
+
}
|
|
3156
|
+
const existing_label = existing.label;
|
|
3157
|
+
const incoming_label = incoming.label;
|
|
3158
|
+
if (!(existing_label === incoming_label)) {
|
|
3159
|
+
return false;
|
|
3160
|
+
}
|
|
3161
|
+
const existing_name = existing.name;
|
|
3162
|
+
const incoming_name = incoming.name;
|
|
3163
|
+
if (!(existing_name === incoming_name)) {
|
|
3164
|
+
return false;
|
|
3165
|
+
}
|
|
3166
|
+
const existing_type = existing.type;
|
|
3167
|
+
const incoming_type = incoming.type;
|
|
3168
|
+
if (!(existing_type === incoming_type)) {
|
|
3169
|
+
return false;
|
|
3170
|
+
}
|
|
3171
|
+
return true;
|
|
3172
|
+
}
|
|
3173
|
+
const ingest$4 = function ExternalConnectivityInvocableActionInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3174
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3175
|
+
const validateError = validate$5(input);
|
|
3176
|
+
if (validateError !== null) {
|
|
3177
|
+
throw validateError;
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
3181
|
+
const ttlToUse = TTL$4;
|
|
3182
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "external-connectivity", VERSION$4, RepresentationType$4, equals$4);
|
|
3183
|
+
return createLink(key);
|
|
3184
|
+
};
|
|
3185
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
3186
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3187
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
3188
|
+
rootKeySet.set(rootKey, {
|
|
3189
|
+
namespace: keyPrefix,
|
|
3190
|
+
representationName: RepresentationType$4,
|
|
3191
|
+
mergeable: false
|
|
3192
|
+
});
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
const TTL$3 = 500;
|
|
3196
|
+
const VERSION$3 = "4dfa2e248d8028a0432ca833b2ddb964";
|
|
3197
|
+
function validate$4(obj, path = 'ExternalConnectivityInvocableActionListRepresentation') {
|
|
3198
|
+
const v_error = (() => {
|
|
3199
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3200
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3201
|
+
}
|
|
3202
|
+
const obj_invocableActions = obj.invocableActions;
|
|
3203
|
+
const path_invocableActions = path + '.invocableActions';
|
|
3204
|
+
if (!ArrayIsArray(obj_invocableActions)) {
|
|
3205
|
+
return new TypeError('Expected "array" but received "' + typeof obj_invocableActions + '" (at "' + path_invocableActions + '")');
|
|
3206
|
+
}
|
|
3207
|
+
for (let i = 0; i < obj_invocableActions.length; i++) {
|
|
3208
|
+
const obj_invocableActions_item = obj_invocableActions[i];
|
|
3209
|
+
const path_invocableActions_item = path_invocableActions + '[' + i + ']';
|
|
3210
|
+
if (typeof obj_invocableActions_item !== 'object' || Array.isArray(obj_invocableActions_item)) {
|
|
3211
|
+
return new TypeError('Expected "object" but received "' + typeof obj_invocableActions_item + '" (at "' + path_invocableActions_item + '")');
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
})();
|
|
3215
|
+
return v_error === undefined ? null : v_error;
|
|
3216
|
+
}
|
|
3217
|
+
const RepresentationType$3 = 'ExternalConnectivityInvocableActionListRepresentation';
|
|
3218
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
3219
|
+
const input_invocableActions = input.invocableActions;
|
|
3220
|
+
const input_invocableActions_id = path.fullPath + '__invocableActions';
|
|
3221
|
+
for (let i = 0; i < input_invocableActions.length; i++) {
|
|
3222
|
+
const input_invocableActions_item = input_invocableActions[i];
|
|
3223
|
+
let input_invocableActions_item_id = input_invocableActions_id + '__' + i;
|
|
3224
|
+
input_invocableActions[i] = ingest$4(input_invocableActions_item, {
|
|
3225
|
+
fullPath: input_invocableActions_item_id,
|
|
3226
|
+
propertyName: i,
|
|
3227
|
+
parent: {
|
|
3228
|
+
data: input,
|
|
3229
|
+
key: path.fullPath,
|
|
3230
|
+
existing: existing,
|
|
3231
|
+
},
|
|
3232
|
+
ttl: path.ttl
|
|
3233
|
+
}, luvio, store, timestamp);
|
|
3234
|
+
}
|
|
3235
|
+
return input;
|
|
3236
|
+
}
|
|
3237
|
+
const select$8 = function ExternalConnectivityInvocableActionListRepresentationSelect() {
|
|
3238
|
+
return {
|
|
3239
|
+
kind: 'Fragment',
|
|
3240
|
+
version: VERSION$3,
|
|
3241
|
+
private: [],
|
|
3242
|
+
selections: [
|
|
3243
|
+
{
|
|
3244
|
+
name: 'invocableActions',
|
|
3245
|
+
kind: 'Link',
|
|
3246
|
+
plural: true,
|
|
3247
|
+
fragment: select$9()
|
|
3248
|
+
}
|
|
3249
|
+
]
|
|
3250
|
+
};
|
|
3251
|
+
};
|
|
3252
|
+
function equals$3(existing, incoming) {
|
|
3253
|
+
const existing_invocableActions = existing.invocableActions;
|
|
3254
|
+
const incoming_invocableActions = incoming.invocableActions;
|
|
3255
|
+
const equals_invocableActions_items = equalsArray(existing_invocableActions, incoming_invocableActions, (existing_invocableActions_item, incoming_invocableActions_item) => {
|
|
3256
|
+
if (!(existing_invocableActions_item.__ref === incoming_invocableActions_item.__ref)) {
|
|
3257
|
+
return false;
|
|
3258
|
+
}
|
|
3259
|
+
});
|
|
3260
|
+
if (equals_invocableActions_items === false) {
|
|
3261
|
+
return false;
|
|
3262
|
+
}
|
|
3263
|
+
return true;
|
|
3264
|
+
}
|
|
3265
|
+
const ingest$3 = function ExternalConnectivityInvocableActionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3266
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3267
|
+
const validateError = validate$4(input);
|
|
3268
|
+
if (validateError !== null) {
|
|
3269
|
+
throw validateError;
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
const key = path.fullPath;
|
|
3273
|
+
const ttlToUse = TTL$3;
|
|
3274
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "external-connectivity", VERSION$3, RepresentationType$3, equals$3);
|
|
3275
|
+
return createLink(key);
|
|
3276
|
+
};
|
|
3277
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
3278
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3279
|
+
const rootKey = fullPathFactory();
|
|
3280
|
+
rootKeySet.set(rootKey, {
|
|
3281
|
+
namespace: keyPrefix,
|
|
3282
|
+
representationName: RepresentationType$3,
|
|
3283
|
+
mergeable: false
|
|
3284
|
+
});
|
|
3285
|
+
const input_invocableActions_length = input.invocableActions.length;
|
|
3286
|
+
for (let i = 0; i < input_invocableActions_length; i++) {
|
|
3287
|
+
getTypeCacheKeys$4(rootKeySet, luvio, input.invocableActions[i]);
|
|
3288
|
+
}
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
function select$7(luvio, params) {
|
|
3292
|
+
return select$8();
|
|
3293
|
+
}
|
|
3294
|
+
function keyBuilder$5(luvio, params) {
|
|
3295
|
+
return keyPrefix + '::ExternalConnectivityInvocableActionListRepresentation:(' + 'invocableActionTypes:' + params.queryParams.invocableActionTypes + ')';
|
|
3296
|
+
}
|
|
3297
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
3298
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
3299
|
+
}
|
|
3300
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
3301
|
+
const { body } = response;
|
|
3302
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
3303
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
3304
|
+
const snapshot = luvio.storeLookup({
|
|
3305
|
+
recordId: key,
|
|
3306
|
+
node: select$7(),
|
|
3307
|
+
variables: {},
|
|
3308
|
+
}, snapshotRefresh);
|
|
3309
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3310
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3311
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
deepFreeze(snapshot.data);
|
|
3315
|
+
return snapshot;
|
|
3316
|
+
}
|
|
3317
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
3318
|
+
const key = keyBuilder$5(luvio, params);
|
|
3319
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3320
|
+
const storeMetadataParams = {
|
|
3321
|
+
ttl: TTL$3,
|
|
3322
|
+
namespace: keyPrefix,
|
|
3323
|
+
version: VERSION$3,
|
|
3324
|
+
representationName: RepresentationType$3
|
|
3325
|
+
};
|
|
3326
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
3327
|
+
return errorSnapshot;
|
|
3328
|
+
}
|
|
3329
|
+
function createResourceRequest$4(config) {
|
|
3330
|
+
const headers = {};
|
|
3331
|
+
return {
|
|
3332
|
+
baseUri: '/services/data/v66.0',
|
|
3333
|
+
basePath: '/external-connectivity/invocable-actions',
|
|
3334
|
+
method: 'get',
|
|
3335
|
+
body: null,
|
|
3336
|
+
urlParams: {},
|
|
3337
|
+
queryParams: config.queryParams,
|
|
3338
|
+
headers,
|
|
3339
|
+
priority: 'normal',
|
|
3340
|
+
};
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3343
|
+
const adapterName$4 = 'getInvocableActions';
|
|
3344
|
+
const getInvocableActions_ConfigPropertyMetadata = [
|
|
3345
|
+
generateParamConfigMetadata('invocableActionTypes', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3346
|
+
];
|
|
3347
|
+
const getInvocableActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getInvocableActions_ConfigPropertyMetadata);
|
|
3348
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(getInvocableActions_ConfigPropertyMetadata);
|
|
3349
|
+
function keyBuilder$4(luvio, config) {
|
|
3350
|
+
const resourceParams = createResourceParams$4(config);
|
|
3351
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
3352
|
+
}
|
|
3353
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
3354
|
+
const config = {};
|
|
3355
|
+
typeCheckConfig$d(untrustedConfig, config, getInvocableActions_ConfigPropertyMetadata);
|
|
3356
|
+
return config;
|
|
3357
|
+
}
|
|
3358
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
3359
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3360
|
+
return null;
|
|
3361
|
+
}
|
|
3362
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3363
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3364
|
+
}
|
|
3365
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
3366
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3367
|
+
return null;
|
|
3368
|
+
}
|
|
3369
|
+
return config;
|
|
3370
|
+
}
|
|
3371
|
+
function adapterFragment$1(luvio, config) {
|
|
3372
|
+
createResourceParams$4(config);
|
|
3373
|
+
return select$7();
|
|
3374
|
+
}
|
|
3375
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
3376
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
3377
|
+
config,
|
|
3378
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
3379
|
+
});
|
|
3380
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3381
|
+
}
|
|
3382
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
3383
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
3384
|
+
config,
|
|
3385
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
3386
|
+
});
|
|
3387
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3388
|
+
}
|
|
3389
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
3390
|
+
const resourceParams = createResourceParams$4(config);
|
|
3391
|
+
const request = createResourceRequest$4(resourceParams);
|
|
3392
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3393
|
+
.then((response) => {
|
|
3394
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
3395
|
+
const cache = new StoreKeyMap();
|
|
3396
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
3397
|
+
return cache;
|
|
3398
|
+
});
|
|
3399
|
+
}, (response) => {
|
|
3400
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
3401
|
+
});
|
|
3402
|
+
}
|
|
3403
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
3404
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
3405
|
+
}
|
|
3406
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
3407
|
+
const { luvio, config } = context;
|
|
3408
|
+
const selector = {
|
|
3409
|
+
recordId: keyBuilder$4(luvio, config),
|
|
3410
|
+
node: adapterFragment$1(luvio, config),
|
|
3411
|
+
variables: {},
|
|
3412
|
+
};
|
|
3413
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
3414
|
+
config,
|
|
3415
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
3416
|
+
});
|
|
3417
|
+
return cacheSnapshot;
|
|
3418
|
+
}
|
|
3419
|
+
const getInvocableActionsAdapterFactory = (luvio) => function externalConnectivity__getInvocableActions(untrustedConfig, requestContext) {
|
|
3420
|
+
const config = validateAdapterConfig$4(untrustedConfig, getInvocableActions_ConfigPropertyNames);
|
|
3421
|
+
// Invalid or incomplete config
|
|
3422
|
+
if (config === null) {
|
|
3423
|
+
return null;
|
|
3424
|
+
}
|
|
3425
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3426
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
3427
|
+
};
|
|
3428
|
+
|
|
3429
|
+
const TTL$2 = 500;
|
|
3430
|
+
const VERSION$2 = "c36b48fc8c9e4c961cfdf9533fb78bec";
|
|
3431
|
+
function validate$3(obj, path = 'ExternalConnectivityGetNamedCredentialResultRepresentation') {
|
|
3432
|
+
const v_error = (() => {
|
|
3433
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3434
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3435
|
+
}
|
|
3436
|
+
const obj_authenticationProtocol = obj.authenticationProtocol;
|
|
3437
|
+
const path_authenticationProtocol = path + '.authenticationProtocol';
|
|
3438
|
+
let obj_authenticationProtocol_union0 = null;
|
|
3439
|
+
const obj_authenticationProtocol_union0_error = (() => {
|
|
3440
|
+
if (typeof obj_authenticationProtocol !== 'string') {
|
|
3441
|
+
return new TypeError('Expected "string" but received "' + typeof obj_authenticationProtocol + '" (at "' + path_authenticationProtocol + '")');
|
|
3442
|
+
}
|
|
3443
|
+
})();
|
|
3444
|
+
if (obj_authenticationProtocol_union0_error != null) {
|
|
3445
|
+
obj_authenticationProtocol_union0 = obj_authenticationProtocol_union0_error.message;
|
|
3446
|
+
}
|
|
3447
|
+
let obj_authenticationProtocol_union1 = null;
|
|
3448
|
+
const obj_authenticationProtocol_union1_error = (() => {
|
|
3449
|
+
if (obj_authenticationProtocol !== null) {
|
|
3450
|
+
return new TypeError('Expected "null" but received "' + typeof obj_authenticationProtocol + '" (at "' + path_authenticationProtocol + '")');
|
|
3451
|
+
}
|
|
3452
|
+
})();
|
|
3453
|
+
if (obj_authenticationProtocol_union1_error != null) {
|
|
3454
|
+
obj_authenticationProtocol_union1 = obj_authenticationProtocol_union1_error.message;
|
|
3455
|
+
}
|
|
3456
|
+
if (obj_authenticationProtocol_union0 && obj_authenticationProtocol_union1) {
|
|
3457
|
+
let message = 'Object doesn\'t match union (at "' + path_authenticationProtocol + '")';
|
|
3458
|
+
message += '\n' + obj_authenticationProtocol_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3459
|
+
message += '\n' + obj_authenticationProtocol_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3460
|
+
return new TypeError(message);
|
|
3461
|
+
}
|
|
3462
|
+
const obj_description = obj.description;
|
|
3463
|
+
const path_description = path + '.description';
|
|
3464
|
+
let obj_description_union0 = null;
|
|
3465
|
+
const obj_description_union0_error = (() => {
|
|
3466
|
+
if (typeof obj_description !== 'string') {
|
|
3467
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
3468
|
+
}
|
|
3469
|
+
})();
|
|
3470
|
+
if (obj_description_union0_error != null) {
|
|
3471
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
3472
|
+
}
|
|
3473
|
+
let obj_description_union1 = null;
|
|
3474
|
+
const obj_description_union1_error = (() => {
|
|
3475
|
+
if (obj_description !== null) {
|
|
3476
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
3477
|
+
}
|
|
3478
|
+
})();
|
|
3479
|
+
if (obj_description_union1_error != null) {
|
|
3480
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
3481
|
+
}
|
|
3482
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
3483
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
3484
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3485
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3486
|
+
return new TypeError(message);
|
|
3487
|
+
}
|
|
3488
|
+
const obj_errorMessage = obj.errorMessage;
|
|
3489
|
+
const path_errorMessage = path + '.errorMessage';
|
|
3490
|
+
let obj_errorMessage_union0 = null;
|
|
3491
|
+
const obj_errorMessage_union0_error = (() => {
|
|
3492
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
3493
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
3494
|
+
}
|
|
3495
|
+
})();
|
|
3496
|
+
if (obj_errorMessage_union0_error != null) {
|
|
3497
|
+
obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
|
|
3498
|
+
}
|
|
3499
|
+
let obj_errorMessage_union1 = null;
|
|
3500
|
+
const obj_errorMessage_union1_error = (() => {
|
|
3501
|
+
if (obj_errorMessage !== null) {
|
|
3502
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
3503
|
+
}
|
|
3504
|
+
})();
|
|
3505
|
+
if (obj_errorMessage_union1_error != null) {
|
|
3506
|
+
obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
|
|
2937
3507
|
}
|
|
2938
|
-
if (
|
|
2939
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
2940
|
-
message += '\n' +
|
|
2941
|
-
message += '\n' +
|
|
3508
|
+
if (obj_errorMessage_union0 && obj_errorMessage_union1) {
|
|
3509
|
+
let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
|
|
3510
|
+
message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3511
|
+
message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2942
3512
|
return new TypeError(message);
|
|
2943
3513
|
}
|
|
2944
|
-
const
|
|
2945
|
-
const
|
|
2946
|
-
let
|
|
2947
|
-
const
|
|
2948
|
-
if (typeof
|
|
2949
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
3514
|
+
const obj_externalCredentialLabel = obj.externalCredentialLabel;
|
|
3515
|
+
const path_externalCredentialLabel = path + '.externalCredentialLabel';
|
|
3516
|
+
let obj_externalCredentialLabel_union0 = null;
|
|
3517
|
+
const obj_externalCredentialLabel_union0_error = (() => {
|
|
3518
|
+
if (typeof obj_externalCredentialLabel !== 'string') {
|
|
3519
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalCredentialLabel + '" (at "' + path_externalCredentialLabel + '")');
|
|
2950
3520
|
}
|
|
2951
3521
|
})();
|
|
2952
|
-
if (
|
|
2953
|
-
|
|
3522
|
+
if (obj_externalCredentialLabel_union0_error != null) {
|
|
3523
|
+
obj_externalCredentialLabel_union0 = obj_externalCredentialLabel_union0_error.message;
|
|
2954
3524
|
}
|
|
2955
|
-
let
|
|
2956
|
-
const
|
|
2957
|
-
if (
|
|
2958
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
3525
|
+
let obj_externalCredentialLabel_union1 = null;
|
|
3526
|
+
const obj_externalCredentialLabel_union1_error = (() => {
|
|
3527
|
+
if (obj_externalCredentialLabel !== null) {
|
|
3528
|
+
return new TypeError('Expected "null" but received "' + typeof obj_externalCredentialLabel + '" (at "' + path_externalCredentialLabel + '")');
|
|
2959
3529
|
}
|
|
2960
3530
|
})();
|
|
2961
|
-
if (
|
|
2962
|
-
|
|
3531
|
+
if (obj_externalCredentialLabel_union1_error != null) {
|
|
3532
|
+
obj_externalCredentialLabel_union1 = obj_externalCredentialLabel_union1_error.message;
|
|
2963
3533
|
}
|
|
2964
|
-
if (
|
|
2965
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
2966
|
-
message += '\n' +
|
|
2967
|
-
message += '\n' +
|
|
3534
|
+
if (obj_externalCredentialLabel_union0 && obj_externalCredentialLabel_union1) {
|
|
3535
|
+
let message = 'Object doesn\'t match union (at "' + path_externalCredentialLabel + '")';
|
|
3536
|
+
message += '\n' + obj_externalCredentialLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3537
|
+
message += '\n' + obj_externalCredentialLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2968
3538
|
return new TypeError(message);
|
|
2969
3539
|
}
|
|
2970
|
-
const
|
|
2971
|
-
const
|
|
2972
|
-
let
|
|
2973
|
-
const
|
|
2974
|
-
if (typeof
|
|
2975
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
3540
|
+
const obj_identityProvider = obj.identityProvider;
|
|
3541
|
+
const path_identityProvider = path + '.identityProvider';
|
|
3542
|
+
let obj_identityProvider_union0 = null;
|
|
3543
|
+
const obj_identityProvider_union0_error = (() => {
|
|
3544
|
+
if (typeof obj_identityProvider !== 'string') {
|
|
3545
|
+
return new TypeError('Expected "string" but received "' + typeof obj_identityProvider + '" (at "' + path_identityProvider + '")');
|
|
2976
3546
|
}
|
|
2977
3547
|
})();
|
|
2978
|
-
if (
|
|
2979
|
-
|
|
3548
|
+
if (obj_identityProvider_union0_error != null) {
|
|
3549
|
+
obj_identityProvider_union0 = obj_identityProvider_union0_error.message;
|
|
2980
3550
|
}
|
|
2981
|
-
let
|
|
2982
|
-
const
|
|
2983
|
-
if (
|
|
2984
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
3551
|
+
let obj_identityProvider_union1 = null;
|
|
3552
|
+
const obj_identityProvider_union1_error = (() => {
|
|
3553
|
+
if (obj_identityProvider !== null) {
|
|
3554
|
+
return new TypeError('Expected "null" but received "' + typeof obj_identityProvider + '" (at "' + path_identityProvider + '")');
|
|
2985
3555
|
}
|
|
2986
3556
|
})();
|
|
2987
|
-
if (
|
|
2988
|
-
|
|
3557
|
+
if (obj_identityProvider_union1_error != null) {
|
|
3558
|
+
obj_identityProvider_union1 = obj_identityProvider_union1_error.message;
|
|
2989
3559
|
}
|
|
2990
|
-
if (
|
|
2991
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
2992
|
-
message += '\n' +
|
|
2993
|
-
message += '\n' +
|
|
3560
|
+
if (obj_identityProvider_union0 && obj_identityProvider_union1) {
|
|
3561
|
+
let message = 'Object doesn\'t match union (at "' + path_identityProvider + '")';
|
|
3562
|
+
message += '\n' + obj_identityProvider_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3563
|
+
message += '\n' + obj_identityProvider_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2994
3564
|
return new TypeError(message);
|
|
2995
3565
|
}
|
|
2996
3566
|
const obj_label = obj.label;
|
|
@@ -3019,233 +3589,106 @@ function validate$4(obj, path = 'ExternalConnectivityInvocableActionInfoRepresen
|
|
|
3019
3589
|
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3020
3590
|
return new TypeError(message);
|
|
3021
3591
|
}
|
|
3022
|
-
const
|
|
3023
|
-
const
|
|
3024
|
-
let
|
|
3025
|
-
const
|
|
3026
|
-
if (typeof
|
|
3027
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
3592
|
+
const obj_namedCredentialName = obj.namedCredentialName;
|
|
3593
|
+
const path_namedCredentialName = path + '.namedCredentialName';
|
|
3594
|
+
let obj_namedCredentialName_union0 = null;
|
|
3595
|
+
const obj_namedCredentialName_union0_error = (() => {
|
|
3596
|
+
if (typeof obj_namedCredentialName !== 'string') {
|
|
3597
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namedCredentialName + '" (at "' + path_namedCredentialName + '")');
|
|
3028
3598
|
}
|
|
3029
3599
|
})();
|
|
3030
|
-
if (
|
|
3031
|
-
|
|
3600
|
+
if (obj_namedCredentialName_union0_error != null) {
|
|
3601
|
+
obj_namedCredentialName_union0 = obj_namedCredentialName_union0_error.message;
|
|
3032
3602
|
}
|
|
3033
|
-
let
|
|
3034
|
-
const
|
|
3035
|
-
if (
|
|
3036
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
3603
|
+
let obj_namedCredentialName_union1 = null;
|
|
3604
|
+
const obj_namedCredentialName_union1_error = (() => {
|
|
3605
|
+
if (obj_namedCredentialName !== null) {
|
|
3606
|
+
return new TypeError('Expected "null" but received "' + typeof obj_namedCredentialName + '" (at "' + path_namedCredentialName + '")');
|
|
3037
3607
|
}
|
|
3038
3608
|
})();
|
|
3039
|
-
if (
|
|
3040
|
-
|
|
3609
|
+
if (obj_namedCredentialName_union1_error != null) {
|
|
3610
|
+
obj_namedCredentialName_union1 = obj_namedCredentialName_union1_error.message;
|
|
3041
3611
|
}
|
|
3042
|
-
if (
|
|
3043
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
3044
|
-
message += '\n' +
|
|
3045
|
-
message += '\n' +
|
|
3612
|
+
if (obj_namedCredentialName_union0 && obj_namedCredentialName_union1) {
|
|
3613
|
+
let message = 'Object doesn\'t match union (at "' + path_namedCredentialName + '")';
|
|
3614
|
+
message += '\n' + obj_namedCredentialName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3615
|
+
message += '\n' + obj_namedCredentialName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3046
3616
|
return new TypeError(message);
|
|
3047
3617
|
}
|
|
3048
|
-
const
|
|
3049
|
-
const
|
|
3050
|
-
let
|
|
3051
|
-
const
|
|
3052
|
-
if (typeof
|
|
3053
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
3618
|
+
const obj_ncType = obj.ncType;
|
|
3619
|
+
const path_ncType = path + '.ncType';
|
|
3620
|
+
let obj_ncType_union0 = null;
|
|
3621
|
+
const obj_ncType_union0_error = (() => {
|
|
3622
|
+
if (typeof obj_ncType !== 'string') {
|
|
3623
|
+
return new TypeError('Expected "string" but received "' + typeof obj_ncType + '" (at "' + path_ncType + '")');
|
|
3054
3624
|
}
|
|
3055
3625
|
})();
|
|
3056
|
-
if (
|
|
3057
|
-
|
|
3626
|
+
if (obj_ncType_union0_error != null) {
|
|
3627
|
+
obj_ncType_union0 = obj_ncType_union0_error.message;
|
|
3058
3628
|
}
|
|
3059
|
-
let
|
|
3060
|
-
const
|
|
3061
|
-
if (
|
|
3062
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
3629
|
+
let obj_ncType_union1 = null;
|
|
3630
|
+
const obj_ncType_union1_error = (() => {
|
|
3631
|
+
if (obj_ncType !== null) {
|
|
3632
|
+
return new TypeError('Expected "null" but received "' + typeof obj_ncType + '" (at "' + path_ncType + '")');
|
|
3063
3633
|
}
|
|
3064
3634
|
})();
|
|
3065
|
-
if (
|
|
3066
|
-
|
|
3635
|
+
if (obj_ncType_union1_error != null) {
|
|
3636
|
+
obj_ncType_union1 = obj_ncType_union1_error.message;
|
|
3067
3637
|
}
|
|
3068
|
-
if (
|
|
3069
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
3070
|
-
message += '\n' +
|
|
3071
|
-
message += '\n' +
|
|
3638
|
+
if (obj_ncType_union0 && obj_ncType_union1) {
|
|
3639
|
+
let message = 'Object doesn\'t match union (at "' + path_ncType + '")';
|
|
3640
|
+
message += '\n' + obj_ncType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3641
|
+
message += '\n' + obj_ncType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3072
3642
|
return new TypeError(message);
|
|
3073
3643
|
}
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
const
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
}
|
|
3081
|
-
function keyBuilderFromType$2(luvio, object) {
|
|
3082
|
-
const keyParams = {
|
|
3083
|
-
name: object.name
|
|
3084
|
-
};
|
|
3085
|
-
return keyBuilder$4(luvio, keyParams);
|
|
3086
|
-
}
|
|
3087
|
-
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
3088
|
-
return input;
|
|
3089
|
-
}
|
|
3090
|
-
const select$7 = function ExternalConnectivityInvocableActionInfoRepresentationSelect() {
|
|
3091
|
-
return {
|
|
3092
|
-
kind: 'Fragment',
|
|
3093
|
-
version: VERSION$3,
|
|
3094
|
-
private: [],
|
|
3095
|
-
selections: [
|
|
3096
|
-
{
|
|
3097
|
-
name: 'category',
|
|
3098
|
-
kind: 'Scalar'
|
|
3099
|
-
},
|
|
3100
|
-
{
|
|
3101
|
-
name: 'description',
|
|
3102
|
-
kind: 'Scalar'
|
|
3103
|
-
},
|
|
3104
|
-
{
|
|
3105
|
-
name: 'durableId',
|
|
3106
|
-
kind: 'Scalar'
|
|
3107
|
-
},
|
|
3108
|
-
{
|
|
3109
|
-
name: 'label',
|
|
3110
|
-
kind: 'Scalar'
|
|
3111
|
-
},
|
|
3112
|
-
{
|
|
3113
|
-
name: 'name',
|
|
3114
|
-
kind: 'Scalar'
|
|
3115
|
-
},
|
|
3116
|
-
{
|
|
3117
|
-
name: 'type',
|
|
3118
|
-
kind: 'Scalar'
|
|
3644
|
+
const obj_principalName = obj.principalName;
|
|
3645
|
+
const path_principalName = path + '.principalName';
|
|
3646
|
+
let obj_principalName_union0 = null;
|
|
3647
|
+
const obj_principalName_union0_error = (() => {
|
|
3648
|
+
if (typeof obj_principalName !== 'string') {
|
|
3649
|
+
return new TypeError('Expected "string" but received "' + typeof obj_principalName + '" (at "' + path_principalName + '")');
|
|
3119
3650
|
}
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
function equals$3(existing, incoming) {
|
|
3124
|
-
const existing_category = existing.category;
|
|
3125
|
-
const incoming_category = incoming.category;
|
|
3126
|
-
if (!(existing_category === incoming_category)) {
|
|
3127
|
-
return false;
|
|
3128
|
-
}
|
|
3129
|
-
const existing_description = existing.description;
|
|
3130
|
-
const incoming_description = incoming.description;
|
|
3131
|
-
if (!(existing_description === incoming_description)) {
|
|
3132
|
-
return false;
|
|
3133
|
-
}
|
|
3134
|
-
const existing_durableId = existing.durableId;
|
|
3135
|
-
const incoming_durableId = incoming.durableId;
|
|
3136
|
-
if (!(existing_durableId === incoming_durableId)) {
|
|
3137
|
-
return false;
|
|
3138
|
-
}
|
|
3139
|
-
const existing_label = existing.label;
|
|
3140
|
-
const incoming_label = incoming.label;
|
|
3141
|
-
if (!(existing_label === incoming_label)) {
|
|
3142
|
-
return false;
|
|
3143
|
-
}
|
|
3144
|
-
const existing_name = existing.name;
|
|
3145
|
-
const incoming_name = incoming.name;
|
|
3146
|
-
if (!(existing_name === incoming_name)) {
|
|
3147
|
-
return false;
|
|
3148
|
-
}
|
|
3149
|
-
const existing_type = existing.type;
|
|
3150
|
-
const incoming_type = incoming.type;
|
|
3151
|
-
if (!(existing_type === incoming_type)) {
|
|
3152
|
-
return false;
|
|
3153
|
-
}
|
|
3154
|
-
return true;
|
|
3155
|
-
}
|
|
3156
|
-
const ingest$3 = function ExternalConnectivityInvocableActionInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3157
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
3158
|
-
const validateError = validate$4(input);
|
|
3159
|
-
if (validateError !== null) {
|
|
3160
|
-
throw validateError;
|
|
3161
|
-
}
|
|
3162
|
-
}
|
|
3163
|
-
const key = keyBuilderFromType$2(luvio, input);
|
|
3164
|
-
const ttlToUse = TTL$3;
|
|
3165
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "external-connectivity", VERSION$3, RepresentationType$3, equals$3);
|
|
3166
|
-
return createLink(key);
|
|
3167
|
-
};
|
|
3168
|
-
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
3169
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3170
|
-
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
3171
|
-
rootKeySet.set(rootKey, {
|
|
3172
|
-
namespace: keyPrefix,
|
|
3173
|
-
representationName: RepresentationType$3,
|
|
3174
|
-
mergeable: false
|
|
3175
|
-
});
|
|
3176
|
-
}
|
|
3177
|
-
|
|
3178
|
-
const TTL$2 = 500;
|
|
3179
|
-
const VERSION$2 = "4dfa2e248d8028a0432ca833b2ddb964";
|
|
3180
|
-
function validate$3(obj, path = 'ExternalConnectivityInvocableActionListRepresentation') {
|
|
3181
|
-
const v_error = (() => {
|
|
3182
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3183
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3184
|
-
}
|
|
3185
|
-
const obj_invocableActions = obj.invocableActions;
|
|
3186
|
-
const path_invocableActions = path + '.invocableActions';
|
|
3187
|
-
if (!ArrayIsArray(obj_invocableActions)) {
|
|
3188
|
-
return new TypeError('Expected "array" but received "' + typeof obj_invocableActions + '" (at "' + path_invocableActions + '")');
|
|
3651
|
+
})();
|
|
3652
|
+
if (obj_principalName_union0_error != null) {
|
|
3653
|
+
obj_principalName_union0 = obj_principalName_union0_error.message;
|
|
3189
3654
|
}
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
return new TypeError('Expected "object" but received "' + typeof obj_invocableActions_item + '" (at "' + path_invocableActions_item + '")');
|
|
3655
|
+
let obj_principalName_union1 = null;
|
|
3656
|
+
const obj_principalName_union1_error = (() => {
|
|
3657
|
+
if (obj_principalName !== null) {
|
|
3658
|
+
return new TypeError('Expected "null" but received "' + typeof obj_principalName + '" (at "' + path_principalName + '")');
|
|
3195
3659
|
}
|
|
3660
|
+
})();
|
|
3661
|
+
if (obj_principalName_union1_error != null) {
|
|
3662
|
+
obj_principalName_union1 = obj_principalName_union1_error.message;
|
|
3663
|
+
}
|
|
3664
|
+
if (obj_principalName_union0 && obj_principalName_union1) {
|
|
3665
|
+
let message = 'Object doesn\'t match union (at "' + path_principalName + '")';
|
|
3666
|
+
message += '\n' + obj_principalName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3667
|
+
message += '\n' + obj_principalName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3668
|
+
return new TypeError(message);
|
|
3196
3669
|
}
|
|
3197
3670
|
})();
|
|
3198
3671
|
return v_error === undefined ? null : v_error;
|
|
3199
3672
|
}
|
|
3200
|
-
const RepresentationType$2 = '
|
|
3673
|
+
const RepresentationType$2 = 'ExternalConnectivityGetNamedCredentialResultRepresentation';
|
|
3201
3674
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
3202
|
-
const input_invocableActions = input.invocableActions;
|
|
3203
|
-
const input_invocableActions_id = path.fullPath + '__invocableActions';
|
|
3204
|
-
for (let i = 0; i < input_invocableActions.length; i++) {
|
|
3205
|
-
const input_invocableActions_item = input_invocableActions[i];
|
|
3206
|
-
let input_invocableActions_item_id = input_invocableActions_id + '__' + i;
|
|
3207
|
-
input_invocableActions[i] = ingest$3(input_invocableActions_item, {
|
|
3208
|
-
fullPath: input_invocableActions_item_id,
|
|
3209
|
-
propertyName: i,
|
|
3210
|
-
parent: {
|
|
3211
|
-
data: input,
|
|
3212
|
-
key: path.fullPath,
|
|
3213
|
-
existing: existing,
|
|
3214
|
-
},
|
|
3215
|
-
ttl: path.ttl
|
|
3216
|
-
}, luvio, store, timestamp);
|
|
3217
|
-
}
|
|
3218
3675
|
return input;
|
|
3219
3676
|
}
|
|
3220
|
-
const select$6 = function
|
|
3677
|
+
const select$6 = function ExternalConnectivityGetNamedCredentialResultRepresentationSelect() {
|
|
3221
3678
|
return {
|
|
3222
3679
|
kind: 'Fragment',
|
|
3223
3680
|
version: VERSION$2,
|
|
3224
3681
|
private: [],
|
|
3225
|
-
|
|
3226
|
-
{
|
|
3227
|
-
name: 'invocableActions',
|
|
3228
|
-
kind: 'Link',
|
|
3229
|
-
plural: true,
|
|
3230
|
-
fragment: select$7()
|
|
3231
|
-
}
|
|
3232
|
-
]
|
|
3682
|
+
opaque: true
|
|
3233
3683
|
};
|
|
3234
3684
|
};
|
|
3235
3685
|
function equals$2(existing, incoming) {
|
|
3236
|
-
|
|
3237
|
-
const incoming_invocableActions = incoming.invocableActions;
|
|
3238
|
-
const equals_invocableActions_items = equalsArray(existing_invocableActions, incoming_invocableActions, (existing_invocableActions_item, incoming_invocableActions_item) => {
|
|
3239
|
-
if (!(existing_invocableActions_item.__ref === incoming_invocableActions_item.__ref)) {
|
|
3240
|
-
return false;
|
|
3241
|
-
}
|
|
3242
|
-
});
|
|
3243
|
-
if (equals_invocableActions_items === false) {
|
|
3686
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3244
3687
|
return false;
|
|
3245
3688
|
}
|
|
3246
3689
|
return true;
|
|
3247
3690
|
}
|
|
3248
|
-
const ingest$2 = function
|
|
3691
|
+
const ingest$2 = function ExternalConnectivityGetNamedCredentialResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3249
3692
|
if (process.env.NODE_ENV !== 'production') {
|
|
3250
3693
|
const validateError = validate$3(input);
|
|
3251
3694
|
if (validateError !== null) {
|
|
@@ -3265,17 +3708,13 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3265
3708
|
representationName: RepresentationType$2,
|
|
3266
3709
|
mergeable: false
|
|
3267
3710
|
});
|
|
3268
|
-
const input_invocableActions_length = input.invocableActions.length;
|
|
3269
|
-
for (let i = 0; i < input_invocableActions_length; i++) {
|
|
3270
|
-
getTypeCacheKeys$3(rootKeySet, luvio, input.invocableActions[i]);
|
|
3271
|
-
}
|
|
3272
3711
|
}
|
|
3273
3712
|
|
|
3274
3713
|
function select$5(luvio, params) {
|
|
3275
3714
|
return select$6();
|
|
3276
3715
|
}
|
|
3277
3716
|
function keyBuilder$3(luvio, params) {
|
|
3278
|
-
return keyPrefix + '::
|
|
3717
|
+
return keyPrefix + '::ExternalConnectivityGetNamedCredentialResultRepresentation:(' + 'namedCredentialName:' + params.urlParams.namedCredentialName + ')';
|
|
3279
3718
|
}
|
|
3280
3719
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
3281
3720
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
@@ -3313,29 +3752,29 @@ function createResourceRequest$3(config) {
|
|
|
3313
3752
|
const headers = {};
|
|
3314
3753
|
return {
|
|
3315
3754
|
baseUri: '/services/data/v66.0',
|
|
3316
|
-
basePath: '/external-connectivity/
|
|
3755
|
+
basePath: '/external-connectivity/connections/named-credentials/' + config.urlParams.namedCredentialName + '',
|
|
3317
3756
|
method: 'get',
|
|
3318
3757
|
body: null,
|
|
3319
|
-
urlParams:
|
|
3320
|
-
queryParams:
|
|
3758
|
+
urlParams: config.urlParams,
|
|
3759
|
+
queryParams: {},
|
|
3321
3760
|
headers,
|
|
3322
3761
|
priority: 'normal',
|
|
3323
3762
|
};
|
|
3324
3763
|
}
|
|
3325
3764
|
|
|
3326
|
-
const adapterName$3 = '
|
|
3327
|
-
const
|
|
3328
|
-
generateParamConfigMetadata('
|
|
3765
|
+
const adapterName$3 = 'getNamedCredentialConfig';
|
|
3766
|
+
const getNamedCredentialConfig_ConfigPropertyMetadata = [
|
|
3767
|
+
generateParamConfigMetadata('namedCredentialName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3329
3768
|
];
|
|
3330
|
-
const
|
|
3331
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
3769
|
+
const getNamedCredentialConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getNamedCredentialConfig_ConfigPropertyMetadata);
|
|
3770
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(getNamedCredentialConfig_ConfigPropertyMetadata);
|
|
3332
3771
|
function keyBuilder$2(luvio, config) {
|
|
3333
3772
|
const resourceParams = createResourceParams$3(config);
|
|
3334
3773
|
return keyBuilder$3(luvio, resourceParams);
|
|
3335
3774
|
}
|
|
3336
3775
|
function typeCheckConfig$3(untrustedConfig) {
|
|
3337
3776
|
const config = {};
|
|
3338
|
-
typeCheckConfig$
|
|
3777
|
+
typeCheckConfig$d(untrustedConfig, config, getNamedCredentialConfig_ConfigPropertyMetadata);
|
|
3339
3778
|
return config;
|
|
3340
3779
|
}
|
|
3341
3780
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -3384,7 +3823,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
3384
3823
|
});
|
|
3385
3824
|
}
|
|
3386
3825
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
3387
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3826
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
3388
3827
|
}
|
|
3389
3828
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
3390
3829
|
const { luvio, config } = context;
|
|
@@ -3399,8 +3838,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
3399
3838
|
});
|
|
3400
3839
|
return cacheSnapshot;
|
|
3401
3840
|
}
|
|
3402
|
-
const
|
|
3403
|
-
const config = validateAdapterConfig$3(untrustedConfig,
|
|
3841
|
+
const getNamedCredentialConfigAdapterFactory = (luvio) => function externalConnectivity__getNamedCredentialConfig(untrustedConfig, requestContext) {
|
|
3842
|
+
const config = validateAdapterConfig$3(untrustedConfig, getNamedCredentialConfig_ConfigPropertyNames);
|
|
3404
3843
|
// Invalid or incomplete config
|
|
3405
3844
|
if (config === null) {
|
|
3406
3845
|
return null;
|
|
@@ -3557,10 +3996,10 @@ const refreshMetadata_ConfigPropertyMetadata = [
|
|
|
3557
3996
|
generateParamConfigMetadata('typeProviderRequestParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3558
3997
|
];
|
|
3559
3998
|
const refreshMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, refreshMetadata_ConfigPropertyMetadata);
|
|
3560
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
3999
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(refreshMetadata_ConfigPropertyMetadata);
|
|
3561
4000
|
function typeCheckConfig$2(untrustedConfig) {
|
|
3562
4001
|
const config = {};
|
|
3563
|
-
typeCheckConfig$
|
|
4002
|
+
typeCheckConfig$d(untrustedConfig, config, refreshMetadata_ConfigPropertyMetadata);
|
|
3564
4003
|
const untrustedConfig_typeProviderRequestParameters = untrustedConfig.typeProviderRequestParameters;
|
|
3565
4004
|
if (ArrayIsArray$1(untrustedConfig_typeProviderRequestParameters)) {
|
|
3566
4005
|
const untrustedConfig_typeProviderRequestParameters_array = [];
|
|
@@ -3828,10 +4267,10 @@ const testConnection_ConfigPropertyMetadata = [
|
|
|
3828
4267
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3829
4268
|
];
|
|
3830
4269
|
const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, testConnection_ConfigPropertyMetadata);
|
|
3831
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
4270
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(testConnection_ConfigPropertyMetadata);
|
|
3832
4271
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3833
4272
|
const config = {};
|
|
3834
|
-
typeCheckConfig$
|
|
4273
|
+
typeCheckConfig$d(untrustedConfig, config, testConnection_ConfigPropertyMetadata);
|
|
3835
4274
|
return config;
|
|
3836
4275
|
}
|
|
3837
4276
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -3877,15 +4316,15 @@ const testConnectionAdapterFactory = (luvio) => {
|
|
|
3877
4316
|
};
|
|
3878
4317
|
|
|
3879
4318
|
function select(luvio, params) {
|
|
3880
|
-
return select$
|
|
4319
|
+
return select$p();
|
|
3881
4320
|
}
|
|
3882
4321
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
3883
|
-
getTypeCacheKeys$
|
|
4322
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
3884
4323
|
}
|
|
3885
4324
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
3886
4325
|
const { body } = response;
|
|
3887
4326
|
const key = keyBuilderFromType$4(luvio, body);
|
|
3888
|
-
luvio.storeIngest(key, ingest$
|
|
4327
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
3889
4328
|
const snapshot = luvio.storeLookup({
|
|
3890
4329
|
recordId: key,
|
|
3891
4330
|
node: select(),
|
|
@@ -3916,19 +4355,21 @@ function createResourceRequest(config) {
|
|
|
3916
4355
|
const adapterName = 'updateConnection';
|
|
3917
4356
|
const updateConnection_ConfigPropertyMetadata = [
|
|
3918
4357
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3919
|
-
generateParamConfigMetadata('authenticationTypeInput',
|
|
4358
|
+
generateParamConfigMetadata('authenticationTypeInput', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3920
4359
|
generateParamConfigMetadata('agentActionEnabled', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3921
4360
|
generateParamConfigMetadata('connectorDeveloperName', true, 2 /* Body */, 0 /* String */),
|
|
3922
4361
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
3923
4362
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
4363
|
+
generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
|
|
4364
|
+
generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3924
4365
|
];
|
|
3925
4366
|
const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateConnection_ConfigPropertyMetadata);
|
|
3926
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4367
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$d(updateConnection_ConfigPropertyMetadata);
|
|
3927
4368
|
function typeCheckConfig(untrustedConfig) {
|
|
3928
4369
|
const config = {};
|
|
3929
|
-
typeCheckConfig$
|
|
4370
|
+
typeCheckConfig$d(untrustedConfig, config, updateConnection_ConfigPropertyMetadata);
|
|
3930
4371
|
const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
|
|
3931
|
-
const referenceAuthenticationTypeInputRepresentationValidationError = validate$
|
|
4372
|
+
const referenceAuthenticationTypeInputRepresentationValidationError = validate$o(untrustedConfig_authenticationTypeInput);
|
|
3932
4373
|
if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
|
|
3933
4374
|
config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
|
|
3934
4375
|
}
|
|
@@ -3939,6 +4380,21 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
3939
4380
|
if (untrustedConfig_agentActionEnabled === null) {
|
|
3940
4381
|
config.agentActionEnabled = untrustedConfig_agentActionEnabled;
|
|
3941
4382
|
}
|
|
4383
|
+
const untrustedConfig_connectionParameters = untrustedConfig.connectionParameters;
|
|
4384
|
+
if (untrustedIsObject(untrustedConfig_connectionParameters)) {
|
|
4385
|
+
const untrustedConfig_connectionParameters_object = {};
|
|
4386
|
+
const untrustedConfig_connectionParameters_keys = Object.keys(untrustedConfig_connectionParameters);
|
|
4387
|
+
for (let i = 0, arrayLength = untrustedConfig_connectionParameters_keys.length; i < arrayLength; i++) {
|
|
4388
|
+
const key = untrustedConfig_connectionParameters_keys[i];
|
|
4389
|
+
const untrustedConfig_connectionParameters_prop = untrustedConfig_connectionParameters[key];
|
|
4390
|
+
if (untrustedConfig_connectionParameters_object !== undefined) {
|
|
4391
|
+
untrustedConfig_connectionParameters_object[key] = untrustedConfig_connectionParameters_prop;
|
|
4392
|
+
}
|
|
4393
|
+
}
|
|
4394
|
+
if (untrustedConfig_connectionParameters_object !== undefined && Object.keys(untrustedConfig_connectionParameters_object).length >= 0) {
|
|
4395
|
+
config.connectionParameters = untrustedConfig_connectionParameters_object;
|
|
4396
|
+
}
|
|
4397
|
+
}
|
|
3942
4398
|
return config;
|
|
3943
4399
|
}
|
|
3944
4400
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -3992,6 +4448,7 @@ let getConnectors;
|
|
|
3992
4448
|
let getExternalConnectivityConnectionReferencedFlows;
|
|
3993
4449
|
let getExternalIdentityProviders;
|
|
3994
4450
|
let getInvocableActions;
|
|
4451
|
+
let getNamedCredentialConfig;
|
|
3995
4452
|
let refreshMetadata;
|
|
3996
4453
|
let testConnection;
|
|
3997
4454
|
let updateConnection;
|
|
@@ -4003,6 +4460,7 @@ let getConnectors_imperative;
|
|
|
4003
4460
|
let getExternalConnectivityConnectionReferencedFlows_imperative;
|
|
4004
4461
|
let getExternalIdentityProviders_imperative;
|
|
4005
4462
|
let getInvocableActions_imperative;
|
|
4463
|
+
let getNamedCredentialConfig_imperative;
|
|
4006
4464
|
const getConnectionDetailsMetadata = {
|
|
4007
4465
|
apiFamily: 'externalconnectivity',
|
|
4008
4466
|
name: 'getConnectionDetails',
|
|
@@ -4038,6 +4496,11 @@ const getInvocableActionsMetadata = {
|
|
|
4038
4496
|
name: 'getInvocableActions',
|
|
4039
4497
|
ttl: 500,
|
|
4040
4498
|
};
|
|
4499
|
+
const getNamedCredentialConfigMetadata = {
|
|
4500
|
+
apiFamily: 'externalconnectivity',
|
|
4501
|
+
name: 'getNamedCredentialConfig',
|
|
4502
|
+
ttl: 500,
|
|
4503
|
+
};
|
|
4041
4504
|
// Notify Update Available
|
|
4042
4505
|
let notifyConnectionListUpdateAvailable;
|
|
4043
4506
|
function bindExportsTo(luvio) {
|
|
@@ -4049,6 +4512,7 @@ function bindExportsTo(luvio) {
|
|
|
4049
4512
|
const getExternalConnectivityConnectionReferencedFlows_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getExternalConnectivityConnectionReferencedFlows', getExternalConnectivityConnectionReferencedFlowsAdapterFactory), getExternalConnectivityConnectionReferencedFlowsMetadata);
|
|
4050
4513
|
const getExternalIdentityProviders_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getExternalIdentityProviders', getExternalIdentityProvidersAdapterFactory), getExternalIdentityProvidersMetadata);
|
|
4051
4514
|
const getInvocableActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getInvocableActions', getInvocableActionsAdapterFactory), getInvocableActionsMetadata);
|
|
4515
|
+
const getNamedCredentialConfig_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getNamedCredentialConfig', getNamedCredentialConfigAdapterFactory), getNamedCredentialConfigMetadata);
|
|
4052
4516
|
function unwrapSnapshotData(factory) {
|
|
4053
4517
|
const adapter = factory(luvio);
|
|
4054
4518
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
@@ -4063,6 +4527,7 @@ function bindExportsTo(luvio) {
|
|
|
4063
4527
|
getExternalConnectivityConnectionReferencedFlows: createWireAdapterConstructor(luvio, getExternalConnectivityConnectionReferencedFlows_ldsAdapter, getExternalConnectivityConnectionReferencedFlowsMetadata),
|
|
4064
4528
|
getExternalIdentityProviders: createWireAdapterConstructor(luvio, getExternalIdentityProviders_ldsAdapter, getExternalIdentityProvidersMetadata),
|
|
4065
4529
|
getInvocableActions: createWireAdapterConstructor(luvio, getInvocableActions_ldsAdapter, getInvocableActionsMetadata),
|
|
4530
|
+
getNamedCredentialConfig: createWireAdapterConstructor(luvio, getNamedCredentialConfig_ldsAdapter, getNamedCredentialConfigMetadata),
|
|
4066
4531
|
refreshMetadata: unwrapSnapshotData(refreshMetadataAdapterFactory),
|
|
4067
4532
|
testConnection: unwrapSnapshotData(testConnectionAdapterFactory),
|
|
4068
4533
|
updateConnection: unwrapSnapshotData(updateConnectionAdapterFactory),
|
|
@@ -4074,6 +4539,7 @@ function bindExportsTo(luvio) {
|
|
|
4074
4539
|
getExternalConnectivityConnectionReferencedFlows_imperative: createImperativeAdapter(luvio, getExternalConnectivityConnectionReferencedFlows_ldsAdapter, getExternalConnectivityConnectionReferencedFlowsMetadata),
|
|
4075
4540
|
getExternalIdentityProviders_imperative: createImperativeAdapter(luvio, getExternalIdentityProviders_ldsAdapter, getExternalIdentityProvidersMetadata),
|
|
4076
4541
|
getInvocableActions_imperative: createImperativeAdapter(luvio, getInvocableActions_ldsAdapter, getInvocableActionsMetadata),
|
|
4542
|
+
getNamedCredentialConfig_imperative: createImperativeAdapter(luvio, getNamedCredentialConfig_ldsAdapter, getNamedCredentialConfigMetadata),
|
|
4077
4543
|
// Notify Update Availables
|
|
4078
4544
|
notifyConnectionListUpdateAvailable: createLDSAdapter(luvio, 'notifyConnectionListUpdateAvailable', notifyUpdateAvailableFactory),
|
|
4079
4545
|
};
|
|
@@ -4089,6 +4555,7 @@ withDefaultLuvio((luvio) => {
|
|
|
4089
4555
|
getExternalConnectivityConnectionReferencedFlows,
|
|
4090
4556
|
getExternalIdentityProviders,
|
|
4091
4557
|
getInvocableActions,
|
|
4558
|
+
getNamedCredentialConfig,
|
|
4092
4559
|
refreshMetadata,
|
|
4093
4560
|
testConnection,
|
|
4094
4561
|
updateConnection,
|
|
@@ -4099,9 +4566,10 @@ withDefaultLuvio((luvio) => {
|
|
|
4099
4566
|
getExternalConnectivityConnectionReferencedFlows_imperative,
|
|
4100
4567
|
getExternalIdentityProviders_imperative,
|
|
4101
4568
|
getInvocableActions_imperative,
|
|
4569
|
+
getNamedCredentialConfig_imperative,
|
|
4102
4570
|
notifyConnectionListUpdateAvailable,
|
|
4103
4571
|
} = bindExportsTo(luvio));
|
|
4104
4572
|
});
|
|
4105
4573
|
|
|
4106
|
-
export { createConnection, deleteConnection, getConnectionDetails, getConnectionDetails_imperative, getConnections, getConnections_imperative, getConnectorDetails, getConnectorDetails_imperative, getConnectors, getConnectors_imperative, getExternalConnectivityConnectionReferencedFlows, getExternalConnectivityConnectionReferencedFlows_imperative, getExternalIdentityProviders, getExternalIdentityProviders_imperative, getInvocableActions, getInvocableActions_imperative, notifyConnectionListUpdateAvailable, refreshMetadata, testConnection, updateConnection };
|
|
4107
|
-
// version: 1.404.0-
|
|
4574
|
+
export { createConnection, deleteConnection, getConnectionDetails, getConnectionDetails_imperative, getConnections, getConnections_imperative, getConnectorDetails, getConnectorDetails_imperative, getConnectors, getConnectors_imperative, getExternalConnectivityConnectionReferencedFlows, getExternalConnectivityConnectionReferencedFlows_imperative, getExternalIdentityProviders, getExternalIdentityProviders_imperative, getInvocableActions, getInvocableActions_imperative, getNamedCredentialConfig, getNamedCredentialConfig_imperative, notifyConnectionListUpdateAvailable, refreshMetadata, testConnection, updateConnection };
|
|
4575
|
+
// version: 1.404.0-dev21-d72def2492
|