@salesforce/lds-adapters-platform-external-connectivity 1.315.0 → 1.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-external-connectivity.js +620 -392
- package/dist/es/es2018/types/src/generated/adapters/getExternalIdentityProviders.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getExternalConnectivitySpaMappingByConnectorType.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/IcStandardExternalIdentityProviderListRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/IcStandardExternalIdentityProviderRepresentation.d.ts +35 -0
- package/package.json +3 -3
- package/sfdc/index.js +561 -321
- package/src/raml/api.raml +43 -0
- package/src/raml/luvio.raml +11 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap, createResourceParams as createResourceParams$9, typeCheckConfig as typeCheckConfig$9 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
function validate$
|
|
95
|
+
function validate$g(obj, path = 'ConnectorIconMetadataRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -126,9 +126,9 @@ function validate$e(obj, path = 'ConnectorIconMetadataRepresentation') {
|
|
|
126
126
|
return v_error === undefined ? null : v_error;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
const TTL$
|
|
130
|
-
const VERSION$
|
|
131
|
-
function validate$
|
|
129
|
+
const TTL$8 = 500;
|
|
130
|
+
const VERSION$9 = "3e461ecbd697039c1881e691a2ee7bef";
|
|
131
|
+
function validate$f(obj, path = 'ExternalConnectivityConnectorRepresentation') {
|
|
132
132
|
const v_error = (() => {
|
|
133
133
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
134
134
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -156,7 +156,7 @@ function validate$d(obj, path = 'ExternalConnectivityConnectorRepresentation') {
|
|
|
156
156
|
for (let i = 0; i < obj_iconMetadata.length; i++) {
|
|
157
157
|
const obj_iconMetadata_item = obj_iconMetadata[i];
|
|
158
158
|
const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
|
|
159
|
-
const referencepath_iconMetadata_itemValidationError = validate$
|
|
159
|
+
const referencepath_iconMetadata_itemValidationError = validate$g(obj_iconMetadata_item, path_iconMetadata_item);
|
|
160
160
|
if (referencepath_iconMetadata_itemValidationError !== null) {
|
|
161
161
|
let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
|
|
162
162
|
message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -196,48 +196,48 @@ function validate$d(obj, path = 'ExternalConnectivityConnectorRepresentation') {
|
|
|
196
196
|
})();
|
|
197
197
|
return v_error === undefined ? null : v_error;
|
|
198
198
|
}
|
|
199
|
-
const RepresentationType$
|
|
200
|
-
function normalize$
|
|
199
|
+
const RepresentationType$9 = 'ExternalConnectivityConnectorRepresentation';
|
|
200
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
201
201
|
return input;
|
|
202
202
|
}
|
|
203
|
-
const select$
|
|
203
|
+
const select$i = function ExternalConnectivityConnectorRepresentationSelect() {
|
|
204
204
|
return {
|
|
205
205
|
kind: 'Fragment',
|
|
206
|
-
version: VERSION$
|
|
206
|
+
version: VERSION$9,
|
|
207
207
|
private: [],
|
|
208
208
|
opaque: true
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
|
-
function equals$
|
|
211
|
+
function equals$9(existing, incoming) {
|
|
212
212
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
213
213
|
return false;
|
|
214
214
|
}
|
|
215
215
|
return true;
|
|
216
216
|
}
|
|
217
|
-
const ingest$
|
|
217
|
+
const ingest$9 = function ExternalConnectivityConnectorRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
218
218
|
if (process.env.NODE_ENV !== 'production') {
|
|
219
|
-
const validateError = validate$
|
|
219
|
+
const validateError = validate$f(input);
|
|
220
220
|
if (validateError !== null) {
|
|
221
221
|
throw validateError;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
const key = path.fullPath;
|
|
225
|
-
const ttlToUse = TTL$
|
|
226
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
225
|
+
const ttlToUse = TTL$8;
|
|
226
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "external-connectivity", VERSION$9, RepresentationType$9, equals$9);
|
|
227
227
|
return createLink(key);
|
|
228
228
|
};
|
|
229
|
-
function getTypeCacheKeys$
|
|
229
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
230
230
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
231
231
|
const rootKey = fullPathFactory();
|
|
232
232
|
rootKeySet.set(rootKey, {
|
|
233
233
|
namespace: keyPrefix,
|
|
234
|
-
representationName: RepresentationType$
|
|
234
|
+
representationName: RepresentationType$9,
|
|
235
235
|
mergeable: false
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
const VERSION$
|
|
240
|
-
function validate$
|
|
239
|
+
const VERSION$8 = "89d2327df1e3dc86e80db8de5afc6ad8";
|
|
240
|
+
function validate$e(obj, path = 'ExternalConnectivityConnectionRepresentation') {
|
|
241
241
|
const v_error = (() => {
|
|
242
242
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
243
243
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -337,11 +337,11 @@ function validate$c(obj, path = 'ExternalConnectivityConnectionRepresentation')
|
|
|
337
337
|
})();
|
|
338
338
|
return v_error === undefined ? null : v_error;
|
|
339
339
|
}
|
|
340
|
-
const RepresentationType$
|
|
341
|
-
function normalize$
|
|
340
|
+
const RepresentationType$8 = 'ExternalConnectivityConnectionRepresentation';
|
|
341
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
342
342
|
const input_externalConnectorMetadata = input.externalConnectorMetadata;
|
|
343
343
|
const input_externalConnectorMetadata_id = path.fullPath + '__externalConnectorMetadata';
|
|
344
|
-
input.externalConnectorMetadata = ingest$
|
|
344
|
+
input.externalConnectorMetadata = ingest$9(input_externalConnectorMetadata, {
|
|
345
345
|
fullPath: input_externalConnectorMetadata_id,
|
|
346
346
|
propertyName: 'externalConnectorMetadata',
|
|
347
347
|
parent: {
|
|
@@ -353,10 +353,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
353
353
|
}, luvio, store, timestamp);
|
|
354
354
|
return input;
|
|
355
355
|
}
|
|
356
|
-
const select$
|
|
356
|
+
const select$h = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
357
357
|
return {
|
|
358
358
|
kind: 'Fragment',
|
|
359
|
-
version: VERSION$
|
|
359
|
+
version: VERSION$8,
|
|
360
360
|
private: [],
|
|
361
361
|
selections: [
|
|
362
362
|
{
|
|
@@ -382,7 +382,7 @@ const select$f = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
|
382
382
|
{
|
|
383
383
|
name: 'externalConnectorMetadata',
|
|
384
384
|
kind: 'Link',
|
|
385
|
-
fragment: select$
|
|
385
|
+
fragment: select$i()
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
388
|
name: 'lastModifiedBy',
|
|
@@ -403,7 +403,7 @@ const select$f = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
|
403
403
|
]
|
|
404
404
|
};
|
|
405
405
|
};
|
|
406
|
-
function equals$
|
|
406
|
+
function equals$8(existing, incoming) {
|
|
407
407
|
const existing_established = existing.established;
|
|
408
408
|
const incoming_established = incoming.established;
|
|
409
409
|
if (!(existing_established === incoming_established)) {
|
|
@@ -456,32 +456,32 @@ function equals$7(existing, incoming) {
|
|
|
456
456
|
}
|
|
457
457
|
return true;
|
|
458
458
|
}
|
|
459
|
-
const ingest$
|
|
459
|
+
const ingest$8 = function ExternalConnectivityConnectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
460
460
|
if (process.env.NODE_ENV !== 'production') {
|
|
461
|
-
const validateError = validate$
|
|
461
|
+
const validateError = validate$e(input);
|
|
462
462
|
if (validateError !== null) {
|
|
463
463
|
throw validateError;
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
const key = path.fullPath;
|
|
467
467
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
|
|
468
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
468
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "external-connectivity", VERSION$8, RepresentationType$8, equals$8);
|
|
469
469
|
return createLink(key);
|
|
470
470
|
};
|
|
471
|
-
function getTypeCacheKeys$
|
|
471
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
472
472
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
473
473
|
const rootKey = fullPathFactory();
|
|
474
474
|
rootKeySet.set(rootKey, {
|
|
475
475
|
namespace: keyPrefix,
|
|
476
|
-
representationName: RepresentationType$
|
|
476
|
+
representationName: RepresentationType$8,
|
|
477
477
|
mergeable: false
|
|
478
478
|
});
|
|
479
|
-
getTypeCacheKeys$
|
|
479
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.externalConnectorMetadata, () => rootKey + "__" + "externalConnectorMetadata");
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
-
const TTL$
|
|
483
|
-
const VERSION$
|
|
484
|
-
function validate$
|
|
482
|
+
const TTL$7 = 500;
|
|
483
|
+
const VERSION$7 = "20bb37f8c88f1dd513107a5128a6f4a5";
|
|
484
|
+
function validate$d(obj, path = 'ExternalConnectivityConnectionListRepresentation') {
|
|
485
485
|
const v_error = (() => {
|
|
486
486
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
487
487
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -501,14 +501,14 @@ function validate$b(obj, path = 'ExternalConnectivityConnectionListRepresentatio
|
|
|
501
501
|
})();
|
|
502
502
|
return v_error === undefined ? null : v_error;
|
|
503
503
|
}
|
|
504
|
-
const RepresentationType$
|
|
505
|
-
function normalize$
|
|
504
|
+
const RepresentationType$7 = 'ExternalConnectivityConnectionListRepresentation';
|
|
505
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
506
506
|
const input_connections = input.connections;
|
|
507
507
|
const input_connections_id = path.fullPath + '__connections';
|
|
508
508
|
for (let i = 0; i < input_connections.length; i++) {
|
|
509
509
|
const input_connections_item = input_connections[i];
|
|
510
510
|
let input_connections_item_id = input_connections_id + '__' + i;
|
|
511
|
-
input_connections[i] = ingest$
|
|
511
|
+
input_connections[i] = ingest$8(input_connections_item, {
|
|
512
512
|
fullPath: input_connections_item_id,
|
|
513
513
|
propertyName: i,
|
|
514
514
|
parent: {
|
|
@@ -521,22 +521,22 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
521
521
|
}
|
|
522
522
|
return input;
|
|
523
523
|
}
|
|
524
|
-
const select$
|
|
524
|
+
const select$g = function ExternalConnectivityConnectionListRepresentationSelect() {
|
|
525
525
|
return {
|
|
526
526
|
kind: 'Fragment',
|
|
527
|
-
version: VERSION$
|
|
527
|
+
version: VERSION$7,
|
|
528
528
|
private: [],
|
|
529
529
|
selections: [
|
|
530
530
|
{
|
|
531
531
|
name: 'connections',
|
|
532
532
|
kind: 'Link',
|
|
533
533
|
plural: true,
|
|
534
|
-
fragment: select$
|
|
534
|
+
fragment: select$h()
|
|
535
535
|
}
|
|
536
536
|
]
|
|
537
537
|
};
|
|
538
538
|
};
|
|
539
|
-
function equals$
|
|
539
|
+
function equals$7(existing, incoming) {
|
|
540
540
|
const existing_connections = existing.connections;
|
|
541
541
|
const incoming_connections = incoming.connections;
|
|
542
542
|
const equals_connections_items = equalsArray(existing_connections, incoming_connections, (existing_connections_item, incoming_connections_item) => {
|
|
@@ -549,48 +549,48 @@ function equals$6(existing, incoming) {
|
|
|
549
549
|
}
|
|
550
550
|
return true;
|
|
551
551
|
}
|
|
552
|
-
const ingest$
|
|
552
|
+
const ingest$7 = function ExternalConnectivityConnectionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
553
553
|
if (process.env.NODE_ENV !== 'production') {
|
|
554
|
-
const validateError = validate$
|
|
554
|
+
const validateError = validate$d(input);
|
|
555
555
|
if (validateError !== null) {
|
|
556
556
|
throw validateError;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
const key = path.fullPath;
|
|
560
|
-
const ttlToUse = TTL$
|
|
561
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
560
|
+
const ttlToUse = TTL$7;
|
|
561
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "external-connectivity", VERSION$7, RepresentationType$7, equals$7);
|
|
562
562
|
return createLink(key);
|
|
563
563
|
};
|
|
564
|
-
function getTypeCacheKeys$
|
|
564
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
565
565
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
566
566
|
const rootKey = fullPathFactory();
|
|
567
567
|
rootKeySet.set(rootKey, {
|
|
568
568
|
namespace: keyPrefix,
|
|
569
|
-
representationName: RepresentationType$
|
|
569
|
+
representationName: RepresentationType$7,
|
|
570
570
|
mergeable: false
|
|
571
571
|
});
|
|
572
572
|
const input_connections_length = input.connections.length;
|
|
573
573
|
for (let i = 0; i < input_connections_length; i++) {
|
|
574
|
-
getTypeCacheKeys$
|
|
574
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.connections[i], () => '');
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
function select$
|
|
579
|
-
return select$
|
|
578
|
+
function select$f(luvio, params) {
|
|
579
|
+
return select$g();
|
|
580
580
|
}
|
|
581
|
-
function keyBuilder$
|
|
581
|
+
function keyBuilder$c(luvio, params) {
|
|
582
582
|
return keyPrefix + '::ExternalConnectivityConnectionListRepresentation:(' + ')';
|
|
583
583
|
}
|
|
584
|
-
function getResponseCacheKeys$
|
|
585
|
-
getTypeCacheKeys$
|
|
584
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
585
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$c());
|
|
586
586
|
}
|
|
587
|
-
function ingestSuccess$
|
|
587
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
588
588
|
const { body } = response;
|
|
589
|
-
const key = keyBuilder$
|
|
590
|
-
luvio.storeIngest(key, ingest$
|
|
589
|
+
const key = keyBuilder$c();
|
|
590
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
591
591
|
const snapshot = luvio.storeLookup({
|
|
592
592
|
recordId: key,
|
|
593
|
-
node: select$
|
|
593
|
+
node: select$f(),
|
|
594
594
|
variables: {},
|
|
595
595
|
}, snapshotRefresh);
|
|
596
596
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -601,19 +601,19 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
601
601
|
deepFreeze(snapshot.data);
|
|
602
602
|
return snapshot;
|
|
603
603
|
}
|
|
604
|
-
function ingestError$
|
|
605
|
-
const key = keyBuilder$
|
|
604
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
605
|
+
const key = keyBuilder$c();
|
|
606
606
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
607
607
|
const storeMetadataParams = {
|
|
608
|
-
ttl: TTL$
|
|
608
|
+
ttl: TTL$7,
|
|
609
609
|
namespace: keyPrefix,
|
|
610
|
-
version: VERSION$
|
|
611
|
-
representationName: RepresentationType$
|
|
610
|
+
version: VERSION$7,
|
|
611
|
+
representationName: RepresentationType$7
|
|
612
612
|
};
|
|
613
613
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
614
614
|
return errorSnapshot;
|
|
615
615
|
}
|
|
616
|
-
function createResourceRequest$
|
|
616
|
+
function createResourceRequest$8(config) {
|
|
617
617
|
const headers = {};
|
|
618
618
|
return {
|
|
619
619
|
baseUri: '/services/data/v63.0',
|
|
@@ -627,90 +627,90 @@ function createResourceRequest$7(config) {
|
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
const adapterName$
|
|
630
|
+
const adapterName$8 = 'getConnections';
|
|
631
631
|
const getConnections_ConfigPropertyMetadata = [];
|
|
632
|
-
const getConnections_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
633
|
-
const createResourceParams$
|
|
634
|
-
function keyBuilder$
|
|
635
|
-
createResourceParams$
|
|
636
|
-
return keyBuilder$
|
|
632
|
+
const getConnections_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getConnections_ConfigPropertyMetadata);
|
|
633
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(getConnections_ConfigPropertyMetadata);
|
|
634
|
+
function keyBuilder$b(luvio, config) {
|
|
635
|
+
createResourceParams$8(config);
|
|
636
|
+
return keyBuilder$c();
|
|
637
637
|
}
|
|
638
|
-
function typeCheckConfig$
|
|
638
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
639
639
|
const config = {};
|
|
640
640
|
return config;
|
|
641
641
|
}
|
|
642
|
-
function validateAdapterConfig$
|
|
642
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
643
643
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
644
644
|
return null;
|
|
645
645
|
}
|
|
646
646
|
if (process.env.NODE_ENV !== 'production') {
|
|
647
647
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
648
648
|
}
|
|
649
|
-
const config = typeCheckConfig$
|
|
649
|
+
const config = typeCheckConfig$8();
|
|
650
650
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
651
651
|
return null;
|
|
652
652
|
}
|
|
653
653
|
return config;
|
|
654
654
|
}
|
|
655
|
-
function adapterFragment$
|
|
656
|
-
createResourceParams$
|
|
657
|
-
return select$
|
|
655
|
+
function adapterFragment$4(luvio, config) {
|
|
656
|
+
createResourceParams$8(config);
|
|
657
|
+
return select$f();
|
|
658
658
|
}
|
|
659
|
-
function onFetchResponseSuccess$
|
|
660
|
-
const snapshot = ingestSuccess$
|
|
659
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
660
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
661
661
|
config,
|
|
662
|
-
resolve: () => buildNetworkSnapshot$
|
|
662
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
663
663
|
});
|
|
664
664
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
665
665
|
}
|
|
666
|
-
function onFetchResponseError$
|
|
667
|
-
const snapshot = ingestError$
|
|
666
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
667
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
668
668
|
config,
|
|
669
|
-
resolve: () => buildNetworkSnapshot$
|
|
669
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
670
670
|
});
|
|
671
671
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
672
672
|
}
|
|
673
|
-
function buildNetworkSnapshot$
|
|
674
|
-
const resourceParams = createResourceParams$
|
|
675
|
-
const request = createResourceRequest$
|
|
673
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
674
|
+
const resourceParams = createResourceParams$8(config);
|
|
675
|
+
const request = createResourceRequest$8();
|
|
676
676
|
return luvio.dispatchResourceRequest(request, options)
|
|
677
677
|
.then((response) => {
|
|
678
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
678
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
679
679
|
const cache = new StoreKeyMap();
|
|
680
|
-
getResponseCacheKeys$
|
|
680
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
681
681
|
return cache;
|
|
682
682
|
});
|
|
683
683
|
}, (response) => {
|
|
684
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
684
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
function buildNetworkSnapshotCachePolicy$
|
|
688
|
-
return buildNetworkSnapshotCachePolicy$
|
|
687
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
688
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
689
689
|
}
|
|
690
|
-
function buildCachedSnapshotCachePolicy$
|
|
690
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
691
691
|
const { luvio, config } = context;
|
|
692
692
|
const selector = {
|
|
693
|
-
recordId: keyBuilder$
|
|
694
|
-
node: adapterFragment$
|
|
693
|
+
recordId: keyBuilder$b(luvio, config),
|
|
694
|
+
node: adapterFragment$4(luvio, config),
|
|
695
695
|
variables: {},
|
|
696
696
|
};
|
|
697
697
|
const cacheSnapshot = storeLookup(selector, {
|
|
698
698
|
config,
|
|
699
|
-
resolve: () => buildNetworkSnapshot$
|
|
699
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
700
700
|
});
|
|
701
701
|
return cacheSnapshot;
|
|
702
702
|
}
|
|
703
703
|
const getConnectionsAdapterFactory = (luvio) => function externalConnectivity__getConnections(untrustedConfig, requestContext) {
|
|
704
|
-
const config = validateAdapterConfig$
|
|
704
|
+
const config = validateAdapterConfig$8(untrustedConfig, getConnections_ConfigPropertyNames);
|
|
705
705
|
// Invalid or incomplete config
|
|
706
706
|
if (config === null) {
|
|
707
707
|
return null;
|
|
708
708
|
}
|
|
709
709
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
710
|
-
buildCachedSnapshotCachePolicy$
|
|
710
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
711
711
|
};
|
|
712
712
|
|
|
713
|
-
function validate$
|
|
713
|
+
function validate$c(obj, path = 'AuthenticationTypeInputRepresentation') {
|
|
714
714
|
const v_error = (() => {
|
|
715
715
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
716
716
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -736,9 +736,9 @@ function validate$a(obj, path = 'AuthenticationTypeInputRepresentation') {
|
|
|
736
736
|
return v_error === undefined ? null : v_error;
|
|
737
737
|
}
|
|
738
738
|
|
|
739
|
-
const TTL$
|
|
740
|
-
const VERSION$
|
|
741
|
-
function validate$
|
|
739
|
+
const TTL$6 = 500;
|
|
740
|
+
const VERSION$6 = "139e6c6cae3db78f5efabb1639252ac2";
|
|
741
|
+
function validate$b(obj, path = 'ExternalConnectivityConnectionCreatedRepresentation') {
|
|
742
742
|
const v_error = (() => {
|
|
743
743
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
744
744
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -751,23 +751,23 @@ function validate$9(obj, path = 'ExternalConnectivityConnectionCreatedRepresenta
|
|
|
751
751
|
})();
|
|
752
752
|
return v_error === undefined ? null : v_error;
|
|
753
753
|
}
|
|
754
|
-
const RepresentationType$
|
|
755
|
-
function keyBuilder$
|
|
756
|
-
return keyPrefix + '::' + RepresentationType$
|
|
754
|
+
const RepresentationType$6 = 'ExternalConnectivityConnectionCreatedRepresentation';
|
|
755
|
+
function keyBuilder$a(luvio, config) {
|
|
756
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.developerName;
|
|
757
757
|
}
|
|
758
758
|
function keyBuilderFromType$2(luvio, object) {
|
|
759
759
|
const keyParams = {
|
|
760
760
|
developerName: object.developerName
|
|
761
761
|
};
|
|
762
|
-
return keyBuilder$
|
|
762
|
+
return keyBuilder$a(luvio, keyParams);
|
|
763
763
|
}
|
|
764
|
-
function normalize$
|
|
764
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
765
765
|
return input;
|
|
766
766
|
}
|
|
767
|
-
const select$
|
|
767
|
+
const select$e = function ExternalConnectivityConnectionCreatedRepresentationSelect() {
|
|
768
768
|
return {
|
|
769
769
|
kind: 'Fragment',
|
|
770
|
-
version: VERSION$
|
|
770
|
+
version: VERSION$6,
|
|
771
771
|
private: [],
|
|
772
772
|
selections: [
|
|
773
773
|
{
|
|
@@ -777,7 +777,7 @@ const select$c = function ExternalConnectivityConnectionCreatedRepresentationSel
|
|
|
777
777
|
]
|
|
778
778
|
};
|
|
779
779
|
};
|
|
780
|
-
function equals$
|
|
780
|
+
function equals$6(existing, incoming) {
|
|
781
781
|
const existing_developerName = existing.developerName;
|
|
782
782
|
const incoming_developerName = incoming.developerName;
|
|
783
783
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -785,41 +785,41 @@ function equals$5(existing, incoming) {
|
|
|
785
785
|
}
|
|
786
786
|
return true;
|
|
787
787
|
}
|
|
788
|
-
const ingest$
|
|
788
|
+
const ingest$6 = function ExternalConnectivityConnectionCreatedRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
789
789
|
if (process.env.NODE_ENV !== 'production') {
|
|
790
|
-
const validateError = validate$
|
|
790
|
+
const validateError = validate$b(input);
|
|
791
791
|
if (validateError !== null) {
|
|
792
792
|
throw validateError;
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
const key = keyBuilderFromType$2(luvio, input);
|
|
796
|
-
const ttlToUse = TTL$
|
|
797
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
796
|
+
const ttlToUse = TTL$6;
|
|
797
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "external-connectivity", VERSION$6, RepresentationType$6, equals$6);
|
|
798
798
|
return createLink(key);
|
|
799
799
|
};
|
|
800
|
-
function getTypeCacheKeys$
|
|
800
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
801
801
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
802
802
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
803
803
|
rootKeySet.set(rootKey, {
|
|
804
804
|
namespace: keyPrefix,
|
|
805
|
-
representationName: RepresentationType$
|
|
805
|
+
representationName: RepresentationType$6,
|
|
806
806
|
mergeable: false
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
-
function select$
|
|
811
|
-
return select$
|
|
810
|
+
function select$d(luvio, params) {
|
|
811
|
+
return select$e();
|
|
812
812
|
}
|
|
813
|
-
function getResponseCacheKeys$
|
|
814
|
-
getTypeCacheKeys$
|
|
813
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
814
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
815
815
|
}
|
|
816
|
-
function ingestSuccess$
|
|
816
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
817
817
|
const { body } = response;
|
|
818
818
|
const key = keyBuilderFromType$2(luvio, body);
|
|
819
|
-
luvio.storeIngest(key, ingest$
|
|
819
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
820
820
|
const snapshot = luvio.storeLookup({
|
|
821
821
|
recordId: key,
|
|
822
|
-
node: select$
|
|
822
|
+
node: select$d(),
|
|
823
823
|
variables: {},
|
|
824
824
|
});
|
|
825
825
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -830,7 +830,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
830
830
|
deepFreeze(snapshot.data);
|
|
831
831
|
return snapshot;
|
|
832
832
|
}
|
|
833
|
-
function createResourceRequest$
|
|
833
|
+
function createResourceRequest$7(config) {
|
|
834
834
|
const headers = {};
|
|
835
835
|
return {
|
|
836
836
|
baseUri: '/services/data/v63.0',
|
|
@@ -844,49 +844,49 @@ function createResourceRequest$6(config) {
|
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
846
|
|
|
847
|
-
const adapterName$
|
|
847
|
+
const adapterName$7 = 'createConnection';
|
|
848
848
|
const createConnection_ConfigPropertyMetadata = [
|
|
849
849
|
generateParamConfigMetadata('authenticationTypeInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
850
850
|
generateParamConfigMetadata('connectorDeveloperName', true, 2 /* Body */, 0 /* String */),
|
|
851
851
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
852
852
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
853
853
|
];
|
|
854
|
-
const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
855
|
-
const createResourceParams$
|
|
856
|
-
function typeCheckConfig$
|
|
854
|
+
const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createConnection_ConfigPropertyMetadata);
|
|
855
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(createConnection_ConfigPropertyMetadata);
|
|
856
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
857
857
|
const config = {};
|
|
858
|
-
typeCheckConfig$
|
|
858
|
+
typeCheckConfig$9(untrustedConfig, config, createConnection_ConfigPropertyMetadata);
|
|
859
859
|
const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
|
|
860
|
-
const referenceAuthenticationTypeInputRepresentationValidationError = validate$
|
|
860
|
+
const referenceAuthenticationTypeInputRepresentationValidationError = validate$c(untrustedConfig_authenticationTypeInput);
|
|
861
861
|
if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
|
|
862
862
|
config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
|
|
863
863
|
}
|
|
864
864
|
return config;
|
|
865
865
|
}
|
|
866
|
-
function validateAdapterConfig$
|
|
866
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
867
867
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
868
868
|
return null;
|
|
869
869
|
}
|
|
870
870
|
if (process.env.NODE_ENV !== 'production') {
|
|
871
871
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
872
872
|
}
|
|
873
|
-
const config = typeCheckConfig$
|
|
873
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
874
874
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
875
875
|
return null;
|
|
876
876
|
}
|
|
877
877
|
return config;
|
|
878
878
|
}
|
|
879
|
-
function buildNetworkSnapshot$
|
|
880
|
-
const resourceParams = createResourceParams$
|
|
881
|
-
const request = createResourceRequest$
|
|
879
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
880
|
+
const resourceParams = createResourceParams$7(config);
|
|
881
|
+
const request = createResourceRequest$7(resourceParams);
|
|
882
882
|
return luvio.dispatchResourceRequest(request, options)
|
|
883
883
|
.then((response) => {
|
|
884
884
|
return luvio.handleSuccessResponse(() => {
|
|
885
|
-
const snapshot = ingestSuccess$
|
|
885
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
886
886
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
887
887
|
}, () => {
|
|
888
888
|
const cache = new StoreKeyMap();
|
|
889
|
-
getResponseCacheKeys$
|
|
889
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
890
890
|
return cache;
|
|
891
891
|
});
|
|
892
892
|
}, (response) => {
|
|
@@ -896,16 +896,16 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
896
896
|
}
|
|
897
897
|
const createConnectionAdapterFactory = (luvio) => {
|
|
898
898
|
return function createConnection(untrustedConfig) {
|
|
899
|
-
const config = validateAdapterConfig$
|
|
899
|
+
const config = validateAdapterConfig$7(untrustedConfig, createConnection_ConfigPropertyNames);
|
|
900
900
|
// Invalid or incomplete config
|
|
901
901
|
if (config === null) {
|
|
902
902
|
throw new Error('Invalid config for "createConnection"');
|
|
903
903
|
}
|
|
904
|
-
return buildNetworkSnapshot$
|
|
904
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
905
905
|
};
|
|
906
906
|
};
|
|
907
907
|
|
|
908
|
-
function validate$
|
|
908
|
+
function validate$a(obj, path = 'AuthenticationParameterDefinitionRepresentation') {
|
|
909
909
|
const v_error = (() => {
|
|
910
910
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
911
911
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -949,14 +949,14 @@ function validate$8(obj, path = 'AuthenticationParameterDefinitionRepresentation
|
|
|
949
949
|
return v_error === undefined ? null : v_error;
|
|
950
950
|
}
|
|
951
951
|
|
|
952
|
-
function validate$
|
|
952
|
+
function validate$9(obj, path = 'AuthenticationParameterRepresentation') {
|
|
953
953
|
const v_error = (() => {
|
|
954
954
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
955
955
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
956
956
|
}
|
|
957
957
|
const obj_authenticationParameterDefinition = obj.authenticationParameterDefinition;
|
|
958
958
|
const path_authenticationParameterDefinition = path + '.authenticationParameterDefinition';
|
|
959
|
-
const referencepath_authenticationParameterDefinitionValidationError = validate$
|
|
959
|
+
const referencepath_authenticationParameterDefinitionValidationError = validate$a(obj_authenticationParameterDefinition, path_authenticationParameterDefinition);
|
|
960
960
|
if (referencepath_authenticationParameterDefinitionValidationError !== null) {
|
|
961
961
|
let message = 'Object doesn\'t match AuthenticationParameterDefinitionRepresentation (at "' + path_authenticationParameterDefinition + '")\n';
|
|
962
962
|
message += referencepath_authenticationParameterDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -971,7 +971,7 @@ function validate$7(obj, path = 'AuthenticationParameterRepresentation') {
|
|
|
971
971
|
return v_error === undefined ? null : v_error;
|
|
972
972
|
}
|
|
973
973
|
|
|
974
|
-
function validate$
|
|
974
|
+
function validate$8(obj, path = 'AuthenticationTypeRepresentation') {
|
|
975
975
|
const v_error = (() => {
|
|
976
976
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
977
977
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -984,7 +984,7 @@ function validate$6(obj, path = 'AuthenticationTypeRepresentation') {
|
|
|
984
984
|
for (let i = 0; i < obj_authenticationParameters.length; i++) {
|
|
985
985
|
const obj_authenticationParameters_item = obj_authenticationParameters[i];
|
|
986
986
|
const path_authenticationParameters_item = path_authenticationParameters + '[' + i + ']';
|
|
987
|
-
const referencepath_authenticationParameters_itemValidationError = validate$
|
|
987
|
+
const referencepath_authenticationParameters_itemValidationError = validate$9(obj_authenticationParameters_item, path_authenticationParameters_item);
|
|
988
988
|
if (referencepath_authenticationParameters_itemValidationError !== null) {
|
|
989
989
|
let message = 'Object doesn\'t match AuthenticationParameterRepresentation (at "' + path_authenticationParameters_item + '")\n';
|
|
990
990
|
message += referencepath_authenticationParameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1000,16 +1000,16 @@ function validate$6(obj, path = 'AuthenticationTypeRepresentation') {
|
|
|
1000
1000
|
return v_error === undefined ? null : v_error;
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
|
-
const TTL$
|
|
1004
|
-
const VERSION$
|
|
1005
|
-
function validate$
|
|
1003
|
+
const TTL$5 = 500;
|
|
1004
|
+
const VERSION$5 = "7ca6b78397dd8632eba2e72a10134d04";
|
|
1005
|
+
function validate$7(obj, path = 'ExternalConnectivityConnectionDetailsRepresentation') {
|
|
1006
1006
|
const v_error = (() => {
|
|
1007
1007
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1008
1008
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1009
1009
|
}
|
|
1010
1010
|
const obj_authenticationType = obj.authenticationType;
|
|
1011
1011
|
const path_authenticationType = path + '.authenticationType';
|
|
1012
|
-
const referencepath_authenticationTypeValidationError = validate$
|
|
1012
|
+
const referencepath_authenticationTypeValidationError = validate$8(obj_authenticationType, path_authenticationType);
|
|
1013
1013
|
if (referencepath_authenticationTypeValidationError !== null) {
|
|
1014
1014
|
let message = 'Object doesn\'t match AuthenticationTypeRepresentation (at "' + path_authenticationType + '")\n';
|
|
1015
1015
|
message += referencepath_authenticationTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1063,7 +1063,7 @@ function validate$5(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
1063
1063
|
}
|
|
1064
1064
|
const obj_externalConnectorMetadata = obj.externalConnectorMetadata;
|
|
1065
1065
|
const path_externalConnectorMetadata = path + '.externalConnectorMetadata';
|
|
1066
|
-
const referencepath_externalConnectorMetadataValidationError = validate$
|
|
1066
|
+
const referencepath_externalConnectorMetadataValidationError = validate$f(obj_externalConnectorMetadata, path_externalConnectorMetadata);
|
|
1067
1067
|
if (referencepath_externalConnectorMetadataValidationError !== null) {
|
|
1068
1068
|
let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_externalConnectorMetadata + '")\n';
|
|
1069
1069
|
message += referencepath_externalConnectorMetadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1113,62 +1113,62 @@ function validate$5(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
1113
1113
|
})();
|
|
1114
1114
|
return v_error === undefined ? null : v_error;
|
|
1115
1115
|
}
|
|
1116
|
-
const RepresentationType$
|
|
1117
|
-
function normalize$
|
|
1116
|
+
const RepresentationType$5 = 'ExternalConnectivityConnectionDetailsRepresentation';
|
|
1117
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
1118
1118
|
return input;
|
|
1119
1119
|
}
|
|
1120
|
-
const select$
|
|
1120
|
+
const select$c = function ExternalConnectivityConnectionDetailsRepresentationSelect() {
|
|
1121
1121
|
return {
|
|
1122
1122
|
kind: 'Fragment',
|
|
1123
|
-
version: VERSION$
|
|
1123
|
+
version: VERSION$5,
|
|
1124
1124
|
private: [],
|
|
1125
1125
|
opaque: true
|
|
1126
1126
|
};
|
|
1127
1127
|
};
|
|
1128
|
-
function equals$
|
|
1128
|
+
function equals$5(existing, incoming) {
|
|
1129
1129
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1130
1130
|
return false;
|
|
1131
1131
|
}
|
|
1132
1132
|
return true;
|
|
1133
1133
|
}
|
|
1134
|
-
const ingest$
|
|
1134
|
+
const ingest$5 = function ExternalConnectivityConnectionDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1135
1135
|
if (process.env.NODE_ENV !== 'production') {
|
|
1136
|
-
const validateError = validate$
|
|
1136
|
+
const validateError = validate$7(input);
|
|
1137
1137
|
if (validateError !== null) {
|
|
1138
1138
|
throw validateError;
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
1141
|
const key = path.fullPath;
|
|
1142
|
-
const ttlToUse = TTL$
|
|
1143
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1142
|
+
const ttlToUse = TTL$5;
|
|
1143
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "external-connectivity", VERSION$5, RepresentationType$5, equals$5);
|
|
1144
1144
|
return createLink(key);
|
|
1145
1145
|
};
|
|
1146
|
-
function getTypeCacheKeys$
|
|
1146
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
1147
1147
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1148
1148
|
const rootKey = fullPathFactory();
|
|
1149
1149
|
rootKeySet.set(rootKey, {
|
|
1150
1150
|
namespace: keyPrefix,
|
|
1151
|
-
representationName: RepresentationType$
|
|
1151
|
+
representationName: RepresentationType$5,
|
|
1152
1152
|
mergeable: false
|
|
1153
1153
|
});
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
|
-
function select$
|
|
1157
|
-
return select$
|
|
1156
|
+
function select$b(luvio, params) {
|
|
1157
|
+
return select$c();
|
|
1158
1158
|
}
|
|
1159
|
-
function keyBuilder$
|
|
1159
|
+
function keyBuilder$9(luvio, params) {
|
|
1160
1160
|
return keyPrefix + '::ExternalConnectivityConnectionDetailsRepresentation:(' + 'connectionDeveloperName:' + params.urlParams.connectionDeveloperName + ')';
|
|
1161
1161
|
}
|
|
1162
|
-
function getResponseCacheKeys$
|
|
1163
|
-
getTypeCacheKeys$
|
|
1162
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
1163
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
1164
1164
|
}
|
|
1165
|
-
function ingestSuccess$
|
|
1165
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
1166
1166
|
const { body } = response;
|
|
1167
|
-
const key = keyBuilder$
|
|
1168
|
-
luvio.storeIngest(key, ingest$
|
|
1167
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
1168
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
1169
1169
|
const snapshot = luvio.storeLookup({
|
|
1170
1170
|
recordId: key,
|
|
1171
|
-
node: select$
|
|
1171
|
+
node: select$b(),
|
|
1172
1172
|
variables: {},
|
|
1173
1173
|
}, snapshotRefresh);
|
|
1174
1174
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1179,19 +1179,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1179
1179
|
deepFreeze(snapshot.data);
|
|
1180
1180
|
return snapshot;
|
|
1181
1181
|
}
|
|
1182
|
-
function ingestError$
|
|
1183
|
-
const key = keyBuilder$
|
|
1182
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
1183
|
+
const key = keyBuilder$9(luvio, params);
|
|
1184
1184
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1185
1185
|
const storeMetadataParams = {
|
|
1186
|
-
ttl: TTL$
|
|
1186
|
+
ttl: TTL$5,
|
|
1187
1187
|
namespace: keyPrefix,
|
|
1188
|
-
version: VERSION$
|
|
1189
|
-
representationName: RepresentationType$
|
|
1188
|
+
version: VERSION$5,
|
|
1189
|
+
representationName: RepresentationType$5
|
|
1190
1190
|
};
|
|
1191
1191
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1192
1192
|
return errorSnapshot;
|
|
1193
1193
|
}
|
|
1194
|
-
function createResourceRequest$
|
|
1194
|
+
function createResourceRequest$6(config) {
|
|
1195
1195
|
const headers = {};
|
|
1196
1196
|
return {
|
|
1197
1197
|
baseUri: '/services/data/v63.0',
|
|
@@ -1205,95 +1205,95 @@ function createResourceRequest$5(config) {
|
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
|
-
const adapterName$
|
|
1208
|
+
const adapterName$6 = 'getConnectionDetails';
|
|
1209
1209
|
const getConnectionDetails_ConfigPropertyMetadata = [
|
|
1210
1210
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1211
1211
|
];
|
|
1212
|
-
const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1213
|
-
const createResourceParams$
|
|
1214
|
-
function keyBuilder$
|
|
1215
|
-
const resourceParams = createResourceParams$
|
|
1216
|
-
return keyBuilder$
|
|
1212
|
+
const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getConnectionDetails_ConfigPropertyMetadata);
|
|
1213
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(getConnectionDetails_ConfigPropertyMetadata);
|
|
1214
|
+
function keyBuilder$8(luvio, config) {
|
|
1215
|
+
const resourceParams = createResourceParams$6(config);
|
|
1216
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
1217
1217
|
}
|
|
1218
|
-
function typeCheckConfig$
|
|
1218
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
1219
1219
|
const config = {};
|
|
1220
|
-
typeCheckConfig$
|
|
1220
|
+
typeCheckConfig$9(untrustedConfig, config, getConnectionDetails_ConfigPropertyMetadata);
|
|
1221
1221
|
return config;
|
|
1222
1222
|
}
|
|
1223
|
-
function validateAdapterConfig$
|
|
1223
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
1224
1224
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1225
1225
|
return null;
|
|
1226
1226
|
}
|
|
1227
1227
|
if (process.env.NODE_ENV !== 'production') {
|
|
1228
1228
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1229
1229
|
}
|
|
1230
|
-
const config = typeCheckConfig$
|
|
1230
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
1231
1231
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1232
1232
|
return null;
|
|
1233
1233
|
}
|
|
1234
1234
|
return config;
|
|
1235
1235
|
}
|
|
1236
|
-
function adapterFragment$
|
|
1237
|
-
createResourceParams$
|
|
1238
|
-
return select$
|
|
1236
|
+
function adapterFragment$3(luvio, config) {
|
|
1237
|
+
createResourceParams$6(config);
|
|
1238
|
+
return select$b();
|
|
1239
1239
|
}
|
|
1240
|
-
function onFetchResponseSuccess$
|
|
1241
|
-
const snapshot = ingestSuccess$
|
|
1240
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
1241
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
1242
1242
|
config,
|
|
1243
|
-
resolve: () => buildNetworkSnapshot$
|
|
1243
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1244
1244
|
});
|
|
1245
1245
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1246
1246
|
}
|
|
1247
|
-
function onFetchResponseError$
|
|
1248
|
-
const snapshot = ingestError$
|
|
1247
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
1248
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
1249
1249
|
config,
|
|
1250
|
-
resolve: () => buildNetworkSnapshot$
|
|
1250
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1251
1251
|
});
|
|
1252
1252
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1253
1253
|
}
|
|
1254
|
-
function buildNetworkSnapshot$
|
|
1255
|
-
const resourceParams = createResourceParams$
|
|
1256
|
-
const request = createResourceRequest$
|
|
1254
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
1255
|
+
const resourceParams = createResourceParams$6(config);
|
|
1256
|
+
const request = createResourceRequest$6(resourceParams);
|
|
1257
1257
|
return luvio.dispatchResourceRequest(request, options)
|
|
1258
1258
|
.then((response) => {
|
|
1259
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1259
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
1260
1260
|
const cache = new StoreKeyMap();
|
|
1261
|
-
getResponseCacheKeys$
|
|
1261
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
1262
1262
|
return cache;
|
|
1263
1263
|
});
|
|
1264
1264
|
}, (response) => {
|
|
1265
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1265
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1269
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1268
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1269
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
1270
1270
|
}
|
|
1271
|
-
function buildCachedSnapshotCachePolicy$
|
|
1271
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1272
1272
|
const { luvio, config } = context;
|
|
1273
1273
|
const selector = {
|
|
1274
|
-
recordId: keyBuilder$
|
|
1275
|
-
node: adapterFragment$
|
|
1274
|
+
recordId: keyBuilder$8(luvio, config),
|
|
1275
|
+
node: adapterFragment$3(luvio, config),
|
|
1276
1276
|
variables: {},
|
|
1277
1277
|
};
|
|
1278
1278
|
const cacheSnapshot = storeLookup(selector, {
|
|
1279
1279
|
config,
|
|
1280
|
-
resolve: () => buildNetworkSnapshot$
|
|
1280
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
1281
1281
|
});
|
|
1282
1282
|
return cacheSnapshot;
|
|
1283
1283
|
}
|
|
1284
1284
|
const getConnectionDetailsAdapterFactory = (luvio) => function externalConnectivity__getConnectionDetails(untrustedConfig, requestContext) {
|
|
1285
|
-
const config = validateAdapterConfig$
|
|
1285
|
+
const config = validateAdapterConfig$6(untrustedConfig, getConnectionDetails_ConfigPropertyNames);
|
|
1286
1286
|
// Invalid or incomplete config
|
|
1287
1287
|
if (config === null) {
|
|
1288
1288
|
return null;
|
|
1289
1289
|
}
|
|
1290
1290
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1291
|
-
buildCachedSnapshotCachePolicy$
|
|
1291
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1292
1292
|
};
|
|
1293
1293
|
|
|
1294
|
-
const TTL$
|
|
1295
|
-
const VERSION$
|
|
1296
|
-
function validate$
|
|
1294
|
+
const TTL$4 = 500;
|
|
1295
|
+
const VERSION$4 = "2f8128d7e2e433bc604c71441fa6fc50";
|
|
1296
|
+
function validate$6(obj, path = 'ExternalConnectivityConnectionEditDeleteResultRepresentation') {
|
|
1297
1297
|
const v_error = (() => {
|
|
1298
1298
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1299
1299
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1358,23 +1358,23 @@ function validate$4(obj, path = 'ExternalConnectivityConnectionEditDeleteResultR
|
|
|
1358
1358
|
})();
|
|
1359
1359
|
return v_error === undefined ? null : v_error;
|
|
1360
1360
|
}
|
|
1361
|
-
const RepresentationType$
|
|
1362
|
-
function keyBuilder$
|
|
1363
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1361
|
+
const RepresentationType$4 = 'ExternalConnectivityConnectionEditDeleteResultRepresentation';
|
|
1362
|
+
function keyBuilder$7(luvio, config) {
|
|
1363
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.developerName;
|
|
1364
1364
|
}
|
|
1365
1365
|
function keyBuilderFromType$1(luvio, object) {
|
|
1366
1366
|
const keyParams = {
|
|
1367
1367
|
developerName: object.developerName
|
|
1368
1368
|
};
|
|
1369
|
-
return keyBuilder$
|
|
1369
|
+
return keyBuilder$7(luvio, keyParams);
|
|
1370
1370
|
}
|
|
1371
|
-
function normalize$
|
|
1371
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
1372
1372
|
return input;
|
|
1373
1373
|
}
|
|
1374
|
-
const select$
|
|
1374
|
+
const select$a = function ExternalConnectivityConnectionEditDeleteResultRepresentationSelect() {
|
|
1375
1375
|
return {
|
|
1376
1376
|
kind: 'Fragment',
|
|
1377
|
-
version: VERSION$
|
|
1377
|
+
version: VERSION$4,
|
|
1378
1378
|
private: [],
|
|
1379
1379
|
selections: [
|
|
1380
1380
|
{
|
|
@@ -1392,7 +1392,7 @@ const select$8 = function ExternalConnectivityConnectionEditDeleteResultRepresen
|
|
|
1392
1392
|
]
|
|
1393
1393
|
};
|
|
1394
1394
|
};
|
|
1395
|
-
function equals$
|
|
1395
|
+
function equals$4(existing, incoming) {
|
|
1396
1396
|
const existing_developerName = existing.developerName;
|
|
1397
1397
|
const incoming_developerName = incoming.developerName;
|
|
1398
1398
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -1410,41 +1410,41 @@ function equals$3(existing, incoming) {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
return true;
|
|
1412
1412
|
}
|
|
1413
|
-
const ingest$
|
|
1413
|
+
const ingest$4 = function ExternalConnectivityConnectionEditDeleteResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1414
1414
|
if (process.env.NODE_ENV !== 'production') {
|
|
1415
|
-
const validateError = validate$
|
|
1415
|
+
const validateError = validate$6(input);
|
|
1416
1416
|
if (validateError !== null) {
|
|
1417
1417
|
throw validateError;
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
const key = keyBuilderFromType$1(luvio, input);
|
|
1421
|
-
const ttlToUse = TTL$
|
|
1422
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1421
|
+
const ttlToUse = TTL$4;
|
|
1422
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "external-connectivity", VERSION$4, RepresentationType$4, equals$4);
|
|
1423
1423
|
return createLink(key);
|
|
1424
1424
|
};
|
|
1425
|
-
function getTypeCacheKeys$
|
|
1425
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
1426
1426
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1427
1427
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
1428
1428
|
rootKeySet.set(rootKey, {
|
|
1429
1429
|
namespace: keyPrefix,
|
|
1430
|
-
representationName: RepresentationType$
|
|
1430
|
+
representationName: RepresentationType$4,
|
|
1431
1431
|
mergeable: false
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
1434
1434
|
|
|
1435
|
-
function select$
|
|
1436
|
-
return select$
|
|
1435
|
+
function select$9(luvio, params) {
|
|
1436
|
+
return select$a();
|
|
1437
1437
|
}
|
|
1438
|
-
function getResponseCacheKeys$
|
|
1439
|
-
getTypeCacheKeys$
|
|
1438
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1439
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1440
1440
|
}
|
|
1441
|
-
function ingestSuccess$
|
|
1441
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
1442
1442
|
const { body } = response;
|
|
1443
1443
|
const key = keyBuilderFromType$1(luvio, body);
|
|
1444
|
-
luvio.storeIngest(key, ingest$
|
|
1444
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1445
1445
|
const snapshot = luvio.storeLookup({
|
|
1446
1446
|
recordId: key,
|
|
1447
|
-
node: select$
|
|
1447
|
+
node: select$9(),
|
|
1448
1448
|
variables: {},
|
|
1449
1449
|
});
|
|
1450
1450
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1455,7 +1455,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
1455
1455
|
deepFreeze(snapshot.data);
|
|
1456
1456
|
return snapshot;
|
|
1457
1457
|
}
|
|
1458
|
-
function createResourceRequest$
|
|
1458
|
+
function createResourceRequest$5(config) {
|
|
1459
1459
|
const headers = {};
|
|
1460
1460
|
return {
|
|
1461
1461
|
baseUri: '/services/data/v63.0',
|
|
@@ -1469,7 +1469,7 @@ function createResourceRequest$4(config) {
|
|
|
1469
1469
|
};
|
|
1470
1470
|
}
|
|
1471
1471
|
|
|
1472
|
-
const adapterName$
|
|
1472
|
+
const adapterName$5 = 'updateConnection';
|
|
1473
1473
|
const updateConnection_ConfigPropertyMetadata = [
|
|
1474
1474
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1475
1475
|
generateParamConfigMetadata('authenticationTypeInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -1477,42 +1477,42 @@ const updateConnection_ConfigPropertyMetadata = [
|
|
|
1477
1477
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
1478
1478
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
1479
1479
|
];
|
|
1480
|
-
const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1481
|
-
const createResourceParams$
|
|
1482
|
-
function typeCheckConfig$
|
|
1480
|
+
const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateConnection_ConfigPropertyMetadata);
|
|
1481
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(updateConnection_ConfigPropertyMetadata);
|
|
1482
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
1483
1483
|
const config = {};
|
|
1484
|
-
typeCheckConfig$
|
|
1484
|
+
typeCheckConfig$9(untrustedConfig, config, updateConnection_ConfigPropertyMetadata);
|
|
1485
1485
|
const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
|
|
1486
|
-
const referenceAuthenticationTypeInputRepresentationValidationError = validate$
|
|
1486
|
+
const referenceAuthenticationTypeInputRepresentationValidationError = validate$c(untrustedConfig_authenticationTypeInput);
|
|
1487
1487
|
if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
|
|
1488
1488
|
config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
|
|
1489
1489
|
}
|
|
1490
1490
|
return config;
|
|
1491
1491
|
}
|
|
1492
|
-
function validateAdapterConfig$
|
|
1492
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
1493
1493
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1494
1494
|
return null;
|
|
1495
1495
|
}
|
|
1496
1496
|
if (process.env.NODE_ENV !== 'production') {
|
|
1497
1497
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1498
1498
|
}
|
|
1499
|
-
const config = typeCheckConfig$
|
|
1499
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
1500
1500
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1501
1501
|
return null;
|
|
1502
1502
|
}
|
|
1503
1503
|
return config;
|
|
1504
1504
|
}
|
|
1505
|
-
function buildNetworkSnapshot$
|
|
1506
|
-
const resourceParams = createResourceParams$
|
|
1507
|
-
const request = createResourceRequest$
|
|
1505
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
1506
|
+
const resourceParams = createResourceParams$5(config);
|
|
1507
|
+
const request = createResourceRequest$5(resourceParams);
|
|
1508
1508
|
return luvio.dispatchResourceRequest(request, options)
|
|
1509
1509
|
.then((response) => {
|
|
1510
1510
|
return luvio.handleSuccessResponse(() => {
|
|
1511
|
-
const snapshot = ingestSuccess$
|
|
1511
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
1512
1512
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1513
1513
|
}, () => {
|
|
1514
1514
|
const cache = new StoreKeyMap();
|
|
1515
|
-
getResponseCacheKeys$
|
|
1515
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
1516
1516
|
return cache;
|
|
1517
1517
|
});
|
|
1518
1518
|
}, (response) => {
|
|
@@ -1522,28 +1522,28 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
const updateConnectionAdapterFactory = (luvio) => {
|
|
1524
1524
|
return function updateConnection(untrustedConfig) {
|
|
1525
|
-
const config = validateAdapterConfig$
|
|
1525
|
+
const config = validateAdapterConfig$5(untrustedConfig, updateConnection_ConfigPropertyNames);
|
|
1526
1526
|
// Invalid or incomplete config
|
|
1527
1527
|
if (config === null) {
|
|
1528
1528
|
throw new Error('Invalid config for "updateConnection"');
|
|
1529
1529
|
}
|
|
1530
|
-
return buildNetworkSnapshot$
|
|
1530
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
1531
1531
|
};
|
|
1532
1532
|
};
|
|
1533
1533
|
|
|
1534
|
-
function select$
|
|
1535
|
-
return select$
|
|
1534
|
+
function select$8(luvio, params) {
|
|
1535
|
+
return select$a();
|
|
1536
1536
|
}
|
|
1537
|
-
function getResponseCacheKeys$
|
|
1538
|
-
getTypeCacheKeys$
|
|
1537
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1538
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1539
1539
|
}
|
|
1540
|
-
function ingestSuccess$
|
|
1540
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
1541
1541
|
const { body } = response;
|
|
1542
1542
|
const key = keyBuilderFromType$1(luvio, body);
|
|
1543
|
-
luvio.storeIngest(key, ingest$
|
|
1543
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1544
1544
|
const snapshot = luvio.storeLookup({
|
|
1545
1545
|
recordId: key,
|
|
1546
|
-
node: select$
|
|
1546
|
+
node: select$8(),
|
|
1547
1547
|
variables: {},
|
|
1548
1548
|
});
|
|
1549
1549
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1554,7 +1554,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
1554
1554
|
deepFreeze(snapshot.data);
|
|
1555
1555
|
return snapshot;
|
|
1556
1556
|
}
|
|
1557
|
-
function createResourceRequest$
|
|
1557
|
+
function createResourceRequest$4(config) {
|
|
1558
1558
|
const headers = {};
|
|
1559
1559
|
return {
|
|
1560
1560
|
baseUri: '/services/data/v63.0',
|
|
@@ -1568,41 +1568,41 @@ function createResourceRequest$3(config) {
|
|
|
1568
1568
|
};
|
|
1569
1569
|
}
|
|
1570
1570
|
|
|
1571
|
-
const adapterName$
|
|
1571
|
+
const adapterName$4 = 'deleteConnection';
|
|
1572
1572
|
const deleteConnection_ConfigPropertyMetadata = [
|
|
1573
1573
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1574
1574
|
];
|
|
1575
|
-
const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1576
|
-
const createResourceParams$
|
|
1577
|
-
function typeCheckConfig$
|
|
1575
|
+
const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteConnection_ConfigPropertyMetadata);
|
|
1576
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(deleteConnection_ConfigPropertyMetadata);
|
|
1577
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1578
1578
|
const config = {};
|
|
1579
|
-
typeCheckConfig$
|
|
1579
|
+
typeCheckConfig$9(untrustedConfig, config, deleteConnection_ConfigPropertyMetadata);
|
|
1580
1580
|
return config;
|
|
1581
1581
|
}
|
|
1582
|
-
function validateAdapterConfig$
|
|
1582
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1583
1583
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1584
1584
|
return null;
|
|
1585
1585
|
}
|
|
1586
1586
|
if (process.env.NODE_ENV !== 'production') {
|
|
1587
1587
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1588
1588
|
}
|
|
1589
|
-
const config = typeCheckConfig$
|
|
1589
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1590
1590
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1591
1591
|
return null;
|
|
1592
1592
|
}
|
|
1593
1593
|
return config;
|
|
1594
1594
|
}
|
|
1595
|
-
function buildNetworkSnapshot$
|
|
1596
|
-
const resourceParams = createResourceParams$
|
|
1597
|
-
const request = createResourceRequest$
|
|
1595
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1596
|
+
const resourceParams = createResourceParams$4(config);
|
|
1597
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1598
1598
|
return luvio.dispatchResourceRequest(request, options)
|
|
1599
1599
|
.then((response) => {
|
|
1600
1600
|
return luvio.handleSuccessResponse(() => {
|
|
1601
|
-
const snapshot = ingestSuccess$
|
|
1601
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
1602
1602
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1603
1603
|
}, () => {
|
|
1604
1604
|
const cache = new StoreKeyMap();
|
|
1605
|
-
getResponseCacheKeys$
|
|
1605
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1606
1606
|
return cache;
|
|
1607
1607
|
});
|
|
1608
1608
|
}, (response) => {
|
|
@@ -1612,18 +1612,18 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
const deleteConnectionAdapterFactory = (luvio) => {
|
|
1614
1614
|
return function deleteConnection(untrustedConfig) {
|
|
1615
|
-
const config = validateAdapterConfig$
|
|
1615
|
+
const config = validateAdapterConfig$4(untrustedConfig, deleteConnection_ConfigPropertyNames);
|
|
1616
1616
|
// Invalid or incomplete config
|
|
1617
1617
|
if (config === null) {
|
|
1618
1618
|
throw new Error('Invalid config for "deleteConnection"');
|
|
1619
1619
|
}
|
|
1620
|
-
return buildNetworkSnapshot$
|
|
1620
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
1621
1621
|
};
|
|
1622
1622
|
};
|
|
1623
1623
|
|
|
1624
|
-
const TTL$
|
|
1625
|
-
const VERSION$
|
|
1626
|
-
function validate$
|
|
1624
|
+
const TTL$3 = 500;
|
|
1625
|
+
const VERSION$3 = "586c10aa43f3608962cdfc83e38d3157";
|
|
1626
|
+
function validate$5(obj, path = 'ExternalConnectivityConnectionTestResultRepresentation') {
|
|
1627
1627
|
const v_error = (() => {
|
|
1628
1628
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1629
1629
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1698,23 +1698,23 @@ function validate$3(obj, path = 'ExternalConnectivityConnectionTestResultReprese
|
|
|
1698
1698
|
})();
|
|
1699
1699
|
return v_error === undefined ? null : v_error;
|
|
1700
1700
|
}
|
|
1701
|
-
const RepresentationType$
|
|
1702
|
-
function keyBuilder$
|
|
1703
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1701
|
+
const RepresentationType$3 = 'ExternalConnectivityConnectionTestResultRepresentation';
|
|
1702
|
+
function keyBuilder$6(luvio, config) {
|
|
1703
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.developerName;
|
|
1704
1704
|
}
|
|
1705
1705
|
function keyBuilderFromType(luvio, object) {
|
|
1706
1706
|
const keyParams = {
|
|
1707
1707
|
developerName: object.developerName
|
|
1708
1708
|
};
|
|
1709
|
-
return keyBuilder$
|
|
1709
|
+
return keyBuilder$6(luvio, keyParams);
|
|
1710
1710
|
}
|
|
1711
|
-
function normalize$
|
|
1711
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1712
1712
|
return input;
|
|
1713
1713
|
}
|
|
1714
|
-
const select$
|
|
1714
|
+
const select$7 = function ExternalConnectivityConnectionTestResultRepresentationSelect() {
|
|
1715
1715
|
return {
|
|
1716
1716
|
kind: 'Fragment',
|
|
1717
|
-
version: VERSION$
|
|
1717
|
+
version: VERSION$3,
|
|
1718
1718
|
private: [],
|
|
1719
1719
|
selections: [
|
|
1720
1720
|
{
|
|
@@ -1740,7 +1740,7 @@ const select$5 = function ExternalConnectivityConnectionTestResultRepresentation
|
|
|
1740
1740
|
]
|
|
1741
1741
|
};
|
|
1742
1742
|
};
|
|
1743
|
-
function equals$
|
|
1743
|
+
function equals$3(existing, incoming) {
|
|
1744
1744
|
const existing_established = existing.established;
|
|
1745
1745
|
const incoming_established = incoming.established;
|
|
1746
1746
|
if (!(existing_established === incoming_established)) {
|
|
@@ -1768,41 +1768,41 @@ function equals$2(existing, incoming) {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
return true;
|
|
1770
1770
|
}
|
|
1771
|
-
const ingest$
|
|
1771
|
+
const ingest$3 = function ExternalConnectivityConnectionTestResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1772
1772
|
if (process.env.NODE_ENV !== 'production') {
|
|
1773
|
-
const validateError = validate$
|
|
1773
|
+
const validateError = validate$5(input);
|
|
1774
1774
|
if (validateError !== null) {
|
|
1775
1775
|
throw validateError;
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
1778
|
const key = keyBuilderFromType(luvio, input);
|
|
1779
|
-
const ttlToUse = TTL$
|
|
1780
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1779
|
+
const ttlToUse = TTL$3;
|
|
1780
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "external-connectivity", VERSION$3, RepresentationType$3, equals$3);
|
|
1781
1781
|
return createLink(key);
|
|
1782
1782
|
};
|
|
1783
|
-
function getTypeCacheKeys$
|
|
1783
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
1784
1784
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1785
1785
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
1786
1786
|
rootKeySet.set(rootKey, {
|
|
1787
1787
|
namespace: keyPrefix,
|
|
1788
|
-
representationName: RepresentationType$
|
|
1788
|
+
representationName: RepresentationType$3,
|
|
1789
1789
|
mergeable: false
|
|
1790
1790
|
});
|
|
1791
1791
|
}
|
|
1792
1792
|
|
|
1793
|
-
function select$
|
|
1794
|
-
return select$
|
|
1793
|
+
function select$6(luvio, params) {
|
|
1794
|
+
return select$7();
|
|
1795
1795
|
}
|
|
1796
|
-
function getResponseCacheKeys$
|
|
1797
|
-
getTypeCacheKeys$
|
|
1796
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1797
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1798
1798
|
}
|
|
1799
|
-
function ingestSuccess$
|
|
1799
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
1800
1800
|
const { body } = response;
|
|
1801
1801
|
const key = keyBuilderFromType(luvio, body);
|
|
1802
|
-
luvio.storeIngest(key, ingest$
|
|
1802
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
1803
1803
|
const snapshot = luvio.storeLookup({
|
|
1804
1804
|
recordId: key,
|
|
1805
|
-
node: select$
|
|
1805
|
+
node: select$6(),
|
|
1806
1806
|
variables: {},
|
|
1807
1807
|
});
|
|
1808
1808
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1813,7 +1813,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
1813
1813
|
deepFreeze(snapshot.data);
|
|
1814
1814
|
return snapshot;
|
|
1815
1815
|
}
|
|
1816
|
-
function createResourceRequest$
|
|
1816
|
+
function createResourceRequest$3(config) {
|
|
1817
1817
|
const headers = {};
|
|
1818
1818
|
return {
|
|
1819
1819
|
baseUri: '/services/data/v63.0',
|
|
@@ -1827,41 +1827,41 @@ function createResourceRequest$2(config) {
|
|
|
1827
1827
|
};
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
|
-
const adapterName$
|
|
1830
|
+
const adapterName$3 = 'testConnection';
|
|
1831
1831
|
const testConnection_ConfigPropertyMetadata = [
|
|
1832
1832
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1833
1833
|
];
|
|
1834
|
-
const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1835
|
-
const createResourceParams$
|
|
1836
|
-
function typeCheckConfig$
|
|
1834
|
+
const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, testConnection_ConfigPropertyMetadata);
|
|
1835
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(testConnection_ConfigPropertyMetadata);
|
|
1836
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
1837
1837
|
const config = {};
|
|
1838
|
-
typeCheckConfig$
|
|
1838
|
+
typeCheckConfig$9(untrustedConfig, config, testConnection_ConfigPropertyMetadata);
|
|
1839
1839
|
return config;
|
|
1840
1840
|
}
|
|
1841
|
-
function validateAdapterConfig$
|
|
1841
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
1842
1842
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1843
1843
|
return null;
|
|
1844
1844
|
}
|
|
1845
1845
|
if (process.env.NODE_ENV !== 'production') {
|
|
1846
1846
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1847
1847
|
}
|
|
1848
|
-
const config = typeCheckConfig$
|
|
1848
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
1849
1849
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1850
1850
|
return null;
|
|
1851
1851
|
}
|
|
1852
1852
|
return config;
|
|
1853
1853
|
}
|
|
1854
|
-
function buildNetworkSnapshot$
|
|
1855
|
-
const resourceParams = createResourceParams$
|
|
1856
|
-
const request = createResourceRequest$
|
|
1854
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
1855
|
+
const resourceParams = createResourceParams$3(config);
|
|
1856
|
+
const request = createResourceRequest$3(resourceParams);
|
|
1857
1857
|
return luvio.dispatchResourceRequest(request, options)
|
|
1858
1858
|
.then((response) => {
|
|
1859
1859
|
return luvio.handleSuccessResponse(() => {
|
|
1860
|
-
const snapshot = ingestSuccess$
|
|
1860
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
1861
1861
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1862
1862
|
}, () => {
|
|
1863
1863
|
const cache = new StoreKeyMap();
|
|
1864
|
-
getResponseCacheKeys$
|
|
1864
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
1865
1865
|
return cache;
|
|
1866
1866
|
});
|
|
1867
1867
|
}, (response) => {
|
|
@@ -1871,18 +1871,18 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
const testConnectionAdapterFactory = (luvio) => {
|
|
1873
1873
|
return function testConnection(untrustedConfig) {
|
|
1874
|
-
const config = validateAdapterConfig$
|
|
1874
|
+
const config = validateAdapterConfig$3(untrustedConfig, testConnection_ConfigPropertyNames);
|
|
1875
1875
|
// Invalid or incomplete config
|
|
1876
1876
|
if (config === null) {
|
|
1877
1877
|
throw new Error('Invalid config for "testConnection"');
|
|
1878
1878
|
}
|
|
1879
|
-
return buildNetworkSnapshot$
|
|
1879
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
1880
1880
|
};
|
|
1881
1881
|
};
|
|
1882
1882
|
|
|
1883
|
-
const TTL$
|
|
1884
|
-
const VERSION$
|
|
1885
|
-
function validate$
|
|
1883
|
+
const TTL$2 = 500;
|
|
1884
|
+
const VERSION$2 = "e0e363c96027e368a8c2c44580411d53";
|
|
1885
|
+
function validate$4(obj, path = 'ExternalConnectivityConnectorListRepresentation') {
|
|
1886
1886
|
const v_error = (() => {
|
|
1887
1887
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1888
1888
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1895,7 +1895,7 @@ function validate$2(obj, path = 'ExternalConnectivityConnectorListRepresentation
|
|
|
1895
1895
|
for (let i = 0; i < obj_connectors.length; i++) {
|
|
1896
1896
|
const obj_connectors_item = obj_connectors[i];
|
|
1897
1897
|
const path_connectors_item = path_connectors + '[' + i + ']';
|
|
1898
|
-
const referencepath_connectors_itemValidationError = validate$
|
|
1898
|
+
const referencepath_connectors_itemValidationError = validate$f(obj_connectors_item, path_connectors_item);
|
|
1899
1899
|
if (referencepath_connectors_itemValidationError !== null) {
|
|
1900
1900
|
let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_connectors_item + '")\n';
|
|
1901
1901
|
message += referencepath_connectors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1905,62 +1905,62 @@ function validate$2(obj, path = 'ExternalConnectivityConnectorListRepresentation
|
|
|
1905
1905
|
})();
|
|
1906
1906
|
return v_error === undefined ? null : v_error;
|
|
1907
1907
|
}
|
|
1908
|
-
const RepresentationType$
|
|
1909
|
-
function normalize$
|
|
1908
|
+
const RepresentationType$2 = 'ExternalConnectivityConnectorListRepresentation';
|
|
1909
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1910
1910
|
return input;
|
|
1911
1911
|
}
|
|
1912
|
-
const select$
|
|
1912
|
+
const select$5 = function ExternalConnectivityConnectorListRepresentationSelect() {
|
|
1913
1913
|
return {
|
|
1914
1914
|
kind: 'Fragment',
|
|
1915
|
-
version: VERSION$
|
|
1915
|
+
version: VERSION$2,
|
|
1916
1916
|
private: [],
|
|
1917
1917
|
opaque: true
|
|
1918
1918
|
};
|
|
1919
1919
|
};
|
|
1920
|
-
function equals$
|
|
1920
|
+
function equals$2(existing, incoming) {
|
|
1921
1921
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1922
1922
|
return false;
|
|
1923
1923
|
}
|
|
1924
1924
|
return true;
|
|
1925
1925
|
}
|
|
1926
|
-
const ingest$
|
|
1926
|
+
const ingest$2 = function ExternalConnectivityConnectorListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1927
1927
|
if (process.env.NODE_ENV !== 'production') {
|
|
1928
|
-
const validateError = validate$
|
|
1928
|
+
const validateError = validate$4(input);
|
|
1929
1929
|
if (validateError !== null) {
|
|
1930
1930
|
throw validateError;
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
1933
1933
|
const key = path.fullPath;
|
|
1934
|
-
const ttlToUse = TTL$
|
|
1935
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1934
|
+
const ttlToUse = TTL$2;
|
|
1935
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "external-connectivity", VERSION$2, RepresentationType$2, equals$2);
|
|
1936
1936
|
return createLink(key);
|
|
1937
1937
|
};
|
|
1938
|
-
function getTypeCacheKeys$
|
|
1938
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
1939
1939
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1940
1940
|
const rootKey = fullPathFactory();
|
|
1941
1941
|
rootKeySet.set(rootKey, {
|
|
1942
1942
|
namespace: keyPrefix,
|
|
1943
|
-
representationName: RepresentationType$
|
|
1943
|
+
representationName: RepresentationType$2,
|
|
1944
1944
|
mergeable: false
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
1947
|
|
|
1948
|
-
function select$
|
|
1949
|
-
return select$
|
|
1948
|
+
function select$4(luvio, params) {
|
|
1949
|
+
return select$5();
|
|
1950
1950
|
}
|
|
1951
|
-
function keyBuilder$
|
|
1951
|
+
function keyBuilder$5(luvio, params) {
|
|
1952
1952
|
return keyPrefix + '::ExternalConnectivityConnectorListRepresentation:(' + ')';
|
|
1953
1953
|
}
|
|
1954
|
-
function getResponseCacheKeys$
|
|
1955
|
-
getTypeCacheKeys$
|
|
1954
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1955
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5());
|
|
1956
1956
|
}
|
|
1957
|
-
function ingestSuccess$
|
|
1957
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1958
1958
|
const { body } = response;
|
|
1959
|
-
const key = keyBuilder$
|
|
1960
|
-
luvio.storeIngest(key, ingest$
|
|
1959
|
+
const key = keyBuilder$5();
|
|
1960
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1961
1961
|
const snapshot = luvio.storeLookup({
|
|
1962
1962
|
recordId: key,
|
|
1963
|
-
node: select$
|
|
1963
|
+
node: select$4(),
|
|
1964
1964
|
variables: {},
|
|
1965
1965
|
}, snapshotRefresh);
|
|
1966
1966
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1971,19 +1971,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1971
1971
|
deepFreeze(snapshot.data);
|
|
1972
1972
|
return snapshot;
|
|
1973
1973
|
}
|
|
1974
|
-
function ingestError$
|
|
1975
|
-
const key = keyBuilder$
|
|
1974
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1975
|
+
const key = keyBuilder$5();
|
|
1976
1976
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1977
1977
|
const storeMetadataParams = {
|
|
1978
|
-
ttl: TTL$
|
|
1978
|
+
ttl: TTL$2,
|
|
1979
1979
|
namespace: keyPrefix,
|
|
1980
|
-
version: VERSION$
|
|
1981
|
-
representationName: RepresentationType$
|
|
1980
|
+
version: VERSION$2,
|
|
1981
|
+
representationName: RepresentationType$2
|
|
1982
1982
|
};
|
|
1983
1983
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1984
1984
|
return errorSnapshot;
|
|
1985
1985
|
}
|
|
1986
|
-
function createResourceRequest$
|
|
1986
|
+
function createResourceRequest$2(config) {
|
|
1987
1987
|
const headers = {};
|
|
1988
1988
|
return {
|
|
1989
1989
|
baseUri: '/services/data/v63.0',
|
|
@@ -1997,90 +1997,90 @@ function createResourceRequest$1(config) {
|
|
|
1997
1997
|
};
|
|
1998
1998
|
}
|
|
1999
1999
|
|
|
2000
|
-
const adapterName$
|
|
2000
|
+
const adapterName$2 = 'getConnectors';
|
|
2001
2001
|
const getConnectors_ConfigPropertyMetadata = [];
|
|
2002
|
-
const getConnectors_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2003
|
-
const createResourceParams$
|
|
2004
|
-
function keyBuilder$
|
|
2005
|
-
createResourceParams$
|
|
2006
|
-
return keyBuilder$
|
|
2002
|
+
const getConnectors_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getConnectors_ConfigPropertyMetadata);
|
|
2003
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(getConnectors_ConfigPropertyMetadata);
|
|
2004
|
+
function keyBuilder$4(luvio, config) {
|
|
2005
|
+
createResourceParams$2(config);
|
|
2006
|
+
return keyBuilder$5();
|
|
2007
2007
|
}
|
|
2008
|
-
function typeCheckConfig$
|
|
2008
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
2009
2009
|
const config = {};
|
|
2010
2010
|
return config;
|
|
2011
2011
|
}
|
|
2012
|
-
function validateAdapterConfig$
|
|
2012
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
2013
2013
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2014
2014
|
return null;
|
|
2015
2015
|
}
|
|
2016
2016
|
if (process.env.NODE_ENV !== 'production') {
|
|
2017
2017
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2018
2018
|
}
|
|
2019
|
-
const config = typeCheckConfig$
|
|
2019
|
+
const config = typeCheckConfig$2();
|
|
2020
2020
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2021
2021
|
return null;
|
|
2022
2022
|
}
|
|
2023
2023
|
return config;
|
|
2024
2024
|
}
|
|
2025
|
-
function adapterFragment$
|
|
2026
|
-
createResourceParams$
|
|
2027
|
-
return select$
|
|
2025
|
+
function adapterFragment$2(luvio, config) {
|
|
2026
|
+
createResourceParams$2(config);
|
|
2027
|
+
return select$4();
|
|
2028
2028
|
}
|
|
2029
|
-
function onFetchResponseSuccess$
|
|
2030
|
-
const snapshot = ingestSuccess$
|
|
2029
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
2030
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
2031
2031
|
config,
|
|
2032
|
-
resolve: () => buildNetworkSnapshot$
|
|
2032
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
2033
2033
|
});
|
|
2034
2034
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2035
2035
|
}
|
|
2036
|
-
function onFetchResponseError$
|
|
2037
|
-
const snapshot = ingestError$
|
|
2036
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
2037
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
2038
2038
|
config,
|
|
2039
|
-
resolve: () => buildNetworkSnapshot$
|
|
2039
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
2040
2040
|
});
|
|
2041
2041
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2042
2042
|
}
|
|
2043
|
-
function buildNetworkSnapshot$
|
|
2044
|
-
const resourceParams = createResourceParams$
|
|
2045
|
-
const request = createResourceRequest$
|
|
2043
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
2044
|
+
const resourceParams = createResourceParams$2(config);
|
|
2045
|
+
const request = createResourceRequest$2();
|
|
2046
2046
|
return luvio.dispatchResourceRequest(request, options)
|
|
2047
2047
|
.then((response) => {
|
|
2048
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2048
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
2049
2049
|
const cache = new StoreKeyMap();
|
|
2050
|
-
getResponseCacheKeys$
|
|
2050
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
2051
2051
|
return cache;
|
|
2052
2052
|
});
|
|
2053
2053
|
}, (response) => {
|
|
2054
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2054
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
2055
2055
|
});
|
|
2056
2056
|
}
|
|
2057
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2058
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2057
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
2058
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
2059
2059
|
}
|
|
2060
|
-
function buildCachedSnapshotCachePolicy$
|
|
2060
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2061
2061
|
const { luvio, config } = context;
|
|
2062
2062
|
const selector = {
|
|
2063
|
-
recordId: keyBuilder$
|
|
2064
|
-
node: adapterFragment$
|
|
2063
|
+
recordId: keyBuilder$4(luvio, config),
|
|
2064
|
+
node: adapterFragment$2(luvio, config),
|
|
2065
2065
|
variables: {},
|
|
2066
2066
|
};
|
|
2067
2067
|
const cacheSnapshot = storeLookup(selector, {
|
|
2068
2068
|
config,
|
|
2069
|
-
resolve: () => buildNetworkSnapshot$
|
|
2069
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
2070
2070
|
});
|
|
2071
2071
|
return cacheSnapshot;
|
|
2072
2072
|
}
|
|
2073
2073
|
const getConnectorsAdapterFactory = (luvio) => function externalConnectivity__getConnectors(untrustedConfig, requestContext) {
|
|
2074
|
-
const config = validateAdapterConfig$
|
|
2074
|
+
const config = validateAdapterConfig$2(untrustedConfig, getConnectors_ConfigPropertyNames);
|
|
2075
2075
|
// Invalid or incomplete config
|
|
2076
2076
|
if (config === null) {
|
|
2077
2077
|
return null;
|
|
2078
2078
|
}
|
|
2079
2079
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2080
|
-
buildCachedSnapshotCachePolicy$
|
|
2080
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
2081
2081
|
};
|
|
2082
2082
|
|
|
2083
|
-
function validate$
|
|
2083
|
+
function validate$3(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
|
|
2084
2084
|
const v_error = (() => {
|
|
2085
2085
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2086
2086
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2093,7 +2093,7 @@ function validate$1(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
|
|
|
2093
2093
|
for (let i = 0; i < obj_authenticationParameterDefinitions.length; i++) {
|
|
2094
2094
|
const obj_authenticationParameterDefinitions_item = obj_authenticationParameterDefinitions[i];
|
|
2095
2095
|
const path_authenticationParameterDefinitions_item = path_authenticationParameterDefinitions + '[' + i + ']';
|
|
2096
|
-
const referencepath_authenticationParameterDefinitions_itemValidationError = validate$
|
|
2096
|
+
const referencepath_authenticationParameterDefinitions_itemValidationError = validate$a(obj_authenticationParameterDefinitions_item, path_authenticationParameterDefinitions_item);
|
|
2097
2097
|
if (referencepath_authenticationParameterDefinitions_itemValidationError !== null) {
|
|
2098
2098
|
let message = 'Object doesn\'t match AuthenticationParameterDefinitionRepresentation (at "' + path_authenticationParameterDefinitions_item + '")\n';
|
|
2099
2099
|
message += referencepath_authenticationParameterDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2109,9 +2109,9 @@ function validate$1(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
|
|
|
2109
2109
|
return v_error === undefined ? null : v_error;
|
|
2110
2110
|
}
|
|
2111
2111
|
|
|
2112
|
-
const TTL = 500;
|
|
2113
|
-
const VERSION = "f8847a262a47a2a68d458483f2a60a07";
|
|
2114
|
-
function validate(obj, path = 'ExternalConnectivityConnectorDetailsRepresentation') {
|
|
2112
|
+
const TTL$1 = 500;
|
|
2113
|
+
const VERSION$1 = "f8847a262a47a2a68d458483f2a60a07";
|
|
2114
|
+
function validate$2(obj, path = 'ExternalConnectivityConnectorDetailsRepresentation') {
|
|
2115
2115
|
const v_error = (() => {
|
|
2116
2116
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2117
2117
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2139,7 +2139,7 @@ function validate(obj, path = 'ExternalConnectivityConnectorDetailsRepresentatio
|
|
|
2139
2139
|
for (let i = 0; i < obj_iconMetadata.length; i++) {
|
|
2140
2140
|
const obj_iconMetadata_item = obj_iconMetadata[i];
|
|
2141
2141
|
const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
|
|
2142
|
-
const referencepath_iconMetadata_itemValidationError = validate$
|
|
2142
|
+
const referencepath_iconMetadata_itemValidationError = validate$g(obj_iconMetadata_item, path_iconMetadata_item);
|
|
2143
2143
|
if (referencepath_iconMetadata_itemValidationError !== null) {
|
|
2144
2144
|
let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
|
|
2145
2145
|
message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2174,7 +2174,7 @@ function validate(obj, path = 'ExternalConnectivityConnectorDetailsRepresentatio
|
|
|
2174
2174
|
for (let i = 0; i < obj_supportedAuthenticationTypes.length; i++) {
|
|
2175
2175
|
const obj_supportedAuthenticationTypes_item = obj_supportedAuthenticationTypes[i];
|
|
2176
2176
|
const path_supportedAuthenticationTypes_item = path_supportedAuthenticationTypes + '[' + i + ']';
|
|
2177
|
-
const referencepath_supportedAuthenticationTypes_itemValidationError = validate$
|
|
2177
|
+
const referencepath_supportedAuthenticationTypes_itemValidationError = validate$3(obj_supportedAuthenticationTypes_item, path_supportedAuthenticationTypes_item);
|
|
2178
2178
|
if (referencepath_supportedAuthenticationTypes_itemValidationError !== null) {
|
|
2179
2179
|
let message = 'Object doesn\'t match AuthenticationTypeDefinitionRepresentation (at "' + path_supportedAuthenticationTypes_item + '")\n';
|
|
2180
2180
|
message += referencepath_supportedAuthenticationTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2194,11 +2194,238 @@ function validate(obj, path = 'ExternalConnectivityConnectorDetailsRepresentatio
|
|
|
2194
2194
|
})();
|
|
2195
2195
|
return v_error === undefined ? null : v_error;
|
|
2196
2196
|
}
|
|
2197
|
-
const RepresentationType = 'ExternalConnectivityConnectorDetailsRepresentation';
|
|
2197
|
+
const RepresentationType$1 = 'ExternalConnectivityConnectorDetailsRepresentation';
|
|
2198
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
2199
|
+
return input;
|
|
2200
|
+
}
|
|
2201
|
+
const select$3 = function ExternalConnectivityConnectorDetailsRepresentationSelect() {
|
|
2202
|
+
return {
|
|
2203
|
+
kind: 'Fragment',
|
|
2204
|
+
version: VERSION$1,
|
|
2205
|
+
private: [],
|
|
2206
|
+
opaque: true
|
|
2207
|
+
};
|
|
2208
|
+
};
|
|
2209
|
+
function equals$1(existing, incoming) {
|
|
2210
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2211
|
+
return false;
|
|
2212
|
+
}
|
|
2213
|
+
return true;
|
|
2214
|
+
}
|
|
2215
|
+
const ingest$1 = function ExternalConnectivityConnectorDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2216
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2217
|
+
const validateError = validate$2(input);
|
|
2218
|
+
if (validateError !== null) {
|
|
2219
|
+
throw validateError;
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
const key = path.fullPath;
|
|
2223
|
+
const ttlToUse = TTL$1;
|
|
2224
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "external-connectivity", VERSION$1, RepresentationType$1, equals$1);
|
|
2225
|
+
return createLink(key);
|
|
2226
|
+
};
|
|
2227
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
2228
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2229
|
+
const rootKey = fullPathFactory();
|
|
2230
|
+
rootKeySet.set(rootKey, {
|
|
2231
|
+
namespace: keyPrefix,
|
|
2232
|
+
representationName: RepresentationType$1,
|
|
2233
|
+
mergeable: false
|
|
2234
|
+
});
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
function select$2(luvio, params) {
|
|
2238
|
+
return select$3();
|
|
2239
|
+
}
|
|
2240
|
+
function keyBuilder$3(luvio, params) {
|
|
2241
|
+
return keyPrefix + '::ExternalConnectivityConnectorDetailsRepresentation:(' + 'connectorDeveloperName:' + params.urlParams.connectorDeveloperName + ')';
|
|
2242
|
+
}
|
|
2243
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
2244
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
2245
|
+
}
|
|
2246
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
2247
|
+
const { body } = response;
|
|
2248
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
2249
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
2250
|
+
const snapshot = luvio.storeLookup({
|
|
2251
|
+
recordId: key,
|
|
2252
|
+
node: select$2(),
|
|
2253
|
+
variables: {},
|
|
2254
|
+
}, snapshotRefresh);
|
|
2255
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2256
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2257
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
deepFreeze(snapshot.data);
|
|
2261
|
+
return snapshot;
|
|
2262
|
+
}
|
|
2263
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
2264
|
+
const key = keyBuilder$3(luvio, params);
|
|
2265
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2266
|
+
const storeMetadataParams = {
|
|
2267
|
+
ttl: TTL$1,
|
|
2268
|
+
namespace: keyPrefix,
|
|
2269
|
+
version: VERSION$1,
|
|
2270
|
+
representationName: RepresentationType$1
|
|
2271
|
+
};
|
|
2272
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2273
|
+
return errorSnapshot;
|
|
2274
|
+
}
|
|
2275
|
+
function createResourceRequest$1(config) {
|
|
2276
|
+
const headers = {};
|
|
2277
|
+
return {
|
|
2278
|
+
baseUri: '/services/data/v63.0',
|
|
2279
|
+
basePath: '/external-connectivity/connectors/' + config.urlParams.connectorDeveloperName + '',
|
|
2280
|
+
method: 'get',
|
|
2281
|
+
body: null,
|
|
2282
|
+
urlParams: config.urlParams,
|
|
2283
|
+
queryParams: {},
|
|
2284
|
+
headers,
|
|
2285
|
+
priority: 'normal',
|
|
2286
|
+
};
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
const adapterName$1 = 'getConnectorDetails';
|
|
2290
|
+
const getConnectorDetails_ConfigPropertyMetadata = [
|
|
2291
|
+
generateParamConfigMetadata('connectorDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2292
|
+
];
|
|
2293
|
+
const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getConnectorDetails_ConfigPropertyMetadata);
|
|
2294
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(getConnectorDetails_ConfigPropertyMetadata);
|
|
2295
|
+
function keyBuilder$2(luvio, config) {
|
|
2296
|
+
const resourceParams = createResourceParams$1(config);
|
|
2297
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
2298
|
+
}
|
|
2299
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
2300
|
+
const config = {};
|
|
2301
|
+
typeCheckConfig$9(untrustedConfig, config, getConnectorDetails_ConfigPropertyMetadata);
|
|
2302
|
+
return config;
|
|
2303
|
+
}
|
|
2304
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
2305
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2306
|
+
return null;
|
|
2307
|
+
}
|
|
2308
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2309
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2310
|
+
}
|
|
2311
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
2312
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2313
|
+
return null;
|
|
2314
|
+
}
|
|
2315
|
+
return config;
|
|
2316
|
+
}
|
|
2317
|
+
function adapterFragment$1(luvio, config) {
|
|
2318
|
+
createResourceParams$1(config);
|
|
2319
|
+
return select$2();
|
|
2320
|
+
}
|
|
2321
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
2322
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
2323
|
+
config,
|
|
2324
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
2325
|
+
});
|
|
2326
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2327
|
+
}
|
|
2328
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
2329
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
2330
|
+
config,
|
|
2331
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
2332
|
+
});
|
|
2333
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2334
|
+
}
|
|
2335
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
2336
|
+
const resourceParams = createResourceParams$1(config);
|
|
2337
|
+
const request = createResourceRequest$1(resourceParams);
|
|
2338
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2339
|
+
.then((response) => {
|
|
2340
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
2341
|
+
const cache = new StoreKeyMap();
|
|
2342
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
2343
|
+
return cache;
|
|
2344
|
+
});
|
|
2345
|
+
}, (response) => {
|
|
2346
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
2347
|
+
});
|
|
2348
|
+
}
|
|
2349
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2350
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
2351
|
+
}
|
|
2352
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2353
|
+
const { luvio, config } = context;
|
|
2354
|
+
const selector = {
|
|
2355
|
+
recordId: keyBuilder$2(luvio, config),
|
|
2356
|
+
node: adapterFragment$1(luvio, config),
|
|
2357
|
+
variables: {},
|
|
2358
|
+
};
|
|
2359
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
2360
|
+
config,
|
|
2361
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
2362
|
+
});
|
|
2363
|
+
return cacheSnapshot;
|
|
2364
|
+
}
|
|
2365
|
+
const getConnectorDetailsAdapterFactory = (luvio) => function externalConnectivity__getConnectorDetails(untrustedConfig, requestContext) {
|
|
2366
|
+
const config = validateAdapterConfig$1(untrustedConfig, getConnectorDetails_ConfigPropertyNames);
|
|
2367
|
+
// Invalid or incomplete config
|
|
2368
|
+
if (config === null) {
|
|
2369
|
+
return null;
|
|
2370
|
+
}
|
|
2371
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2372
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
2373
|
+
};
|
|
2374
|
+
|
|
2375
|
+
function validate$1(obj, path = 'IcStandardExternalIdentityProviderRepresentation') {
|
|
2376
|
+
const v_error = (() => {
|
|
2377
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2378
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2379
|
+
}
|
|
2380
|
+
const obj_environment = obj.environment;
|
|
2381
|
+
const path_environment = path + '.environment';
|
|
2382
|
+
if (typeof obj_environment !== 'string') {
|
|
2383
|
+
return new TypeError('Expected "string" but received "' + typeof obj_environment + '" (at "' + path_environment + '")');
|
|
2384
|
+
}
|
|
2385
|
+
const obj_fullName = obj.fullName;
|
|
2386
|
+
const path_fullName = path + '.fullName';
|
|
2387
|
+
if (typeof obj_fullName !== 'string') {
|
|
2388
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fullName + '" (at "' + path_fullName + '")');
|
|
2389
|
+
}
|
|
2390
|
+
const obj_label = obj.label;
|
|
2391
|
+
const path_label = path + '.label';
|
|
2392
|
+
if (typeof obj_label !== 'string') {
|
|
2393
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2394
|
+
}
|
|
2395
|
+
})();
|
|
2396
|
+
return v_error === undefined ? null : v_error;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
const TTL = 500;
|
|
2400
|
+
const VERSION = "72f95c35be550092433b2acd2f914899";
|
|
2401
|
+
function validate(obj, path = 'IcStandardExternalIdentityProviderListRepresentation') {
|
|
2402
|
+
const v_error = (() => {
|
|
2403
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2404
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2405
|
+
}
|
|
2406
|
+
const obj_identityProviderRepresentationList = obj.identityProviderRepresentationList;
|
|
2407
|
+
const path_identityProviderRepresentationList = path + '.identityProviderRepresentationList';
|
|
2408
|
+
if (!ArrayIsArray(obj_identityProviderRepresentationList)) {
|
|
2409
|
+
return new TypeError('Expected "array" but received "' + typeof obj_identityProviderRepresentationList + '" (at "' + path_identityProviderRepresentationList + '")');
|
|
2410
|
+
}
|
|
2411
|
+
for (let i = 0; i < obj_identityProviderRepresentationList.length; i++) {
|
|
2412
|
+
const obj_identityProviderRepresentationList_item = obj_identityProviderRepresentationList[i];
|
|
2413
|
+
const path_identityProviderRepresentationList_item = path_identityProviderRepresentationList + '[' + i + ']';
|
|
2414
|
+
const referencepath_identityProviderRepresentationList_itemValidationError = validate$1(obj_identityProviderRepresentationList_item, path_identityProviderRepresentationList_item);
|
|
2415
|
+
if (referencepath_identityProviderRepresentationList_itemValidationError !== null) {
|
|
2416
|
+
let message = 'Object doesn\'t match IcStandardExternalIdentityProviderRepresentation (at "' + path_identityProviderRepresentationList_item + '")\n';
|
|
2417
|
+
message += referencepath_identityProviderRepresentationList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2418
|
+
return new TypeError(message);
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2421
|
+
})();
|
|
2422
|
+
return v_error === undefined ? null : v_error;
|
|
2423
|
+
}
|
|
2424
|
+
const RepresentationType = 'IcStandardExternalIdentityProviderListRepresentation';
|
|
2198
2425
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
2199
2426
|
return input;
|
|
2200
2427
|
}
|
|
2201
|
-
const select$1 = function
|
|
2428
|
+
const select$1 = function IcStandardExternalIdentityProviderListRepresentationSelect() {
|
|
2202
2429
|
return {
|
|
2203
2430
|
kind: 'Fragment',
|
|
2204
2431
|
version: VERSION,
|
|
@@ -2212,7 +2439,7 @@ function equals(existing, incoming) {
|
|
|
2212
2439
|
}
|
|
2213
2440
|
return true;
|
|
2214
2441
|
}
|
|
2215
|
-
const ingest = function
|
|
2442
|
+
const ingest = function IcStandardExternalIdentityProviderListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2216
2443
|
if (process.env.NODE_ENV !== 'production') {
|
|
2217
2444
|
const validateError = validate(input);
|
|
2218
2445
|
if (validateError !== null) {
|
|
@@ -2238,7 +2465,7 @@ function select(luvio, params) {
|
|
|
2238
2465
|
return select$1();
|
|
2239
2466
|
}
|
|
2240
2467
|
function keyBuilder$1(luvio, params) {
|
|
2241
|
-
return keyPrefix + '::
|
|
2468
|
+
return keyPrefix + '::IcStandardExternalIdentityProviderListRepresentation:(' + 'version:' + params.queryParams.version + ',' + 'connectorType:' + params.urlParams.connectorType + ')';
|
|
2242
2469
|
}
|
|
2243
2470
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2244
2471
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -2276,29 +2503,30 @@ function createResourceRequest(config) {
|
|
|
2276
2503
|
const headers = {};
|
|
2277
2504
|
return {
|
|
2278
2505
|
baseUri: '/services/data/v63.0',
|
|
2279
|
-
basePath: '/external-connectivity/
|
|
2506
|
+
basePath: '/external-connectivity/' + config.urlParams.connectorType + '/spa-mapping',
|
|
2280
2507
|
method: 'get',
|
|
2281
2508
|
body: null,
|
|
2282
2509
|
urlParams: config.urlParams,
|
|
2283
|
-
queryParams:
|
|
2510
|
+
queryParams: config.queryParams,
|
|
2284
2511
|
headers,
|
|
2285
2512
|
priority: 'normal',
|
|
2286
2513
|
};
|
|
2287
2514
|
}
|
|
2288
2515
|
|
|
2289
|
-
const adapterName = '
|
|
2290
|
-
const
|
|
2291
|
-
generateParamConfigMetadata('
|
|
2516
|
+
const adapterName = 'getExternalIdentityProviders';
|
|
2517
|
+
const getExternalIdentityProviders_ConfigPropertyMetadata = [
|
|
2518
|
+
generateParamConfigMetadata('connectorType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2519
|
+
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2292
2520
|
];
|
|
2293
|
-
const
|
|
2294
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2521
|
+
const getExternalIdentityProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
2522
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$9(getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
2295
2523
|
function keyBuilder(luvio, config) {
|
|
2296
2524
|
const resourceParams = createResourceParams(config);
|
|
2297
2525
|
return keyBuilder$1(luvio, resourceParams);
|
|
2298
2526
|
}
|
|
2299
2527
|
function typeCheckConfig(untrustedConfig) {
|
|
2300
2528
|
const config = {};
|
|
2301
|
-
typeCheckConfig$
|
|
2529
|
+
typeCheckConfig$9(untrustedConfig, config, getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
2302
2530
|
return config;
|
|
2303
2531
|
}
|
|
2304
2532
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2347,7 +2575,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2347
2575
|
});
|
|
2348
2576
|
}
|
|
2349
2577
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2350
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2578
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
2351
2579
|
}
|
|
2352
2580
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2353
2581
|
const { luvio, config } = context;
|
|
@@ -2362,8 +2590,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
2362
2590
|
});
|
|
2363
2591
|
return cacheSnapshot;
|
|
2364
2592
|
}
|
|
2365
|
-
const
|
|
2366
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
2593
|
+
const getExternalIdentityProvidersAdapterFactory = (luvio) => function externalConnectivity__getExternalIdentityProviders(untrustedConfig, requestContext) {
|
|
2594
|
+
const config = validateAdapterConfig(untrustedConfig, getExternalIdentityProviders_ConfigPropertyNames);
|
|
2367
2595
|
// Invalid or incomplete config
|
|
2368
2596
|
if (config === null) {
|
|
2369
2597
|
return null;
|
|
@@ -2372,4 +2600,4 @@ const getConnectorDetailsAdapterFactory = (luvio) => function externalConnectivi
|
|
|
2372
2600
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
2373
2601
|
};
|
|
2374
2602
|
|
|
2375
|
-
export { createConnectionAdapterFactory, deleteConnectionAdapterFactory, getConnectionDetailsAdapterFactory, getConnectionsAdapterFactory, getConnectorDetailsAdapterFactory, getConnectorsAdapterFactory, testConnectionAdapterFactory, updateConnectionAdapterFactory };
|
|
2603
|
+
export { createConnectionAdapterFactory, deleteConnectionAdapterFactory, getConnectionDetailsAdapterFactory, getConnectionsAdapterFactory, getConnectorDetailsAdapterFactory, getConnectorsAdapterFactory, getExternalIdentityProvidersAdapterFactory, testConnectionAdapterFactory, updateConnectionAdapterFactory };
|