@salesforce/lds-adapters-platform-external-connectivity 1.334.0 → 1.335.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 +1030 -529
- package/dist/es/es2018/types/src/generated/adapters/getInvocableActions.d.ts +27 -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/getExternalConnectivityInvocableActions.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/ExternalConnectivityInvocableActionInfoRepresentation.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/ExternalConnectivityInvocableActionListRepresentation.d.ts +39 -0
- package/package.json +3 -3
- package/sfdc/index.js +937 -424
- package/src/raml/api.raml +49 -1
- package/src/raml/luvio.raml +12 -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$6, StoreKeyMap, createResourceParams as createResourceParams$b, typeCheckConfig as typeCheckConfig$b } 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$j(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$h(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$b = 500;
|
|
130
|
+
const VERSION$c = "3e461ecbd697039c1881e691a2ee7bef";
|
|
131
|
+
function validate$i(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$g(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$j(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$g(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$c = 'ExternalConnectivityConnectorRepresentation';
|
|
200
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
201
201
|
return input;
|
|
202
202
|
}
|
|
203
|
-
const select$
|
|
203
|
+
const select$n = function ExternalConnectivityConnectorRepresentationSelect() {
|
|
204
204
|
return {
|
|
205
205
|
kind: 'Fragment',
|
|
206
|
-
version: VERSION$
|
|
206
|
+
version: VERSION$c,
|
|
207
207
|
private: [],
|
|
208
208
|
opaque: true
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
|
-
function equals$
|
|
211
|
+
function equals$c(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$c = function ExternalConnectivityConnectorRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
218
218
|
if (process.env.NODE_ENV !== 'production') {
|
|
219
|
-
const validateError = validate$
|
|
219
|
+
const validateError = validate$i(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$b;
|
|
226
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "external-connectivity", VERSION$c, RepresentationType$c, equals$c);
|
|
227
227
|
return createLink(key);
|
|
228
228
|
};
|
|
229
|
-
function getTypeCacheKeys$
|
|
229
|
+
function getTypeCacheKeys$c(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$c,
|
|
235
235
|
mergeable: false
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
const VERSION$
|
|
240
|
-
function validate$
|
|
239
|
+
const VERSION$b = "89d2327df1e3dc86e80db8de5afc6ad8";
|
|
240
|
+
function validate$h(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$f(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$b = 'ExternalConnectivityConnectionRepresentation';
|
|
341
|
+
function normalize$b(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$c(input_externalConnectorMetadata, {
|
|
345
345
|
fullPath: input_externalConnectorMetadata_id,
|
|
346
346
|
propertyName: 'externalConnectorMetadata',
|
|
347
347
|
parent: {
|
|
@@ -353,10 +353,10 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
353
353
|
}, luvio, store, timestamp);
|
|
354
354
|
return input;
|
|
355
355
|
}
|
|
356
|
-
const select$
|
|
356
|
+
const select$m = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
357
357
|
return {
|
|
358
358
|
kind: 'Fragment',
|
|
359
|
-
version: VERSION$
|
|
359
|
+
version: VERSION$b,
|
|
360
360
|
private: [],
|
|
361
361
|
selections: [
|
|
362
362
|
{
|
|
@@ -382,7 +382,7 @@ const select$j = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
|
382
382
|
{
|
|
383
383
|
name: 'externalConnectorMetadata',
|
|
384
384
|
kind: 'Link',
|
|
385
|
-
fragment: select$
|
|
385
|
+
fragment: select$n()
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
388
|
name: 'lastModifiedBy',
|
|
@@ -403,7 +403,7 @@ const select$j = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
|
403
403
|
]
|
|
404
404
|
};
|
|
405
405
|
};
|
|
406
|
-
function equals$
|
|
406
|
+
function equals$b(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$9(existing, incoming) {
|
|
|
456
456
|
}
|
|
457
457
|
return true;
|
|
458
458
|
}
|
|
459
|
-
const ingest$
|
|
459
|
+
const ingest$b = function ExternalConnectivityConnectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
460
460
|
if (process.env.NODE_ENV !== 'production') {
|
|
461
|
-
const validateError = validate$
|
|
461
|
+
const validateError = validate$h(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$b, "external-connectivity", VERSION$b, RepresentationType$b, equals$b);
|
|
469
469
|
return createLink(key);
|
|
470
470
|
};
|
|
471
|
-
function getTypeCacheKeys$
|
|
471
|
+
function getTypeCacheKeys$b(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$b,
|
|
477
477
|
mergeable: false
|
|
478
478
|
});
|
|
479
|
-
getTypeCacheKeys$
|
|
479
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.externalConnectorMetadata, () => rootKey + "__" + "externalConnectorMetadata");
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
-
const TTL$
|
|
483
|
-
const VERSION$
|
|
484
|
-
function validate$
|
|
482
|
+
const TTL$a = 500;
|
|
483
|
+
const VERSION$a = "20bb37f8c88f1dd513107a5128a6f4a5";
|
|
484
|
+
function validate$g(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$e(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$a = 'ExternalConnectivityConnectionListRepresentation';
|
|
505
|
+
function normalize$a(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$b(input_connections_item, {
|
|
512
512
|
fullPath: input_connections_item_id,
|
|
513
513
|
propertyName: i,
|
|
514
514
|
parent: {
|
|
@@ -521,22 +521,22 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
521
521
|
}
|
|
522
522
|
return input;
|
|
523
523
|
}
|
|
524
|
-
const select$
|
|
524
|
+
const select$l = function ExternalConnectivityConnectionListRepresentationSelect() {
|
|
525
525
|
return {
|
|
526
526
|
kind: 'Fragment',
|
|
527
|
-
version: VERSION$
|
|
527
|
+
version: VERSION$a,
|
|
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$m()
|
|
535
535
|
}
|
|
536
536
|
]
|
|
537
537
|
};
|
|
538
538
|
};
|
|
539
|
-
function equals$
|
|
539
|
+
function equals$a(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$8(existing, incoming) {
|
|
|
549
549
|
}
|
|
550
550
|
return true;
|
|
551
551
|
}
|
|
552
|
-
const ingest$
|
|
552
|
+
const ingest$a = function ExternalConnectivityConnectionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
553
553
|
if (process.env.NODE_ENV !== 'production') {
|
|
554
|
-
const validateError = validate$
|
|
554
|
+
const validateError = validate$g(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$a;
|
|
561
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "external-connectivity", VERSION$a, RepresentationType$a, equals$a);
|
|
562
562
|
return createLink(key);
|
|
563
563
|
};
|
|
564
|
-
function getTypeCacheKeys$
|
|
564
|
+
function getTypeCacheKeys$a(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$a,
|
|
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$b(rootKeySet, luvio, input.connections[i], () => '');
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
function select$
|
|
579
|
-
return select$
|
|
578
|
+
function select$k(luvio, params) {
|
|
579
|
+
return select$l();
|
|
580
580
|
}
|
|
581
|
-
function keyBuilder$
|
|
581
|
+
function keyBuilder$g(luvio, params) {
|
|
582
582
|
return keyPrefix + '::ExternalConnectivityConnectionListRepresentation:(' + ')';
|
|
583
583
|
}
|
|
584
|
-
function getResponseCacheKeys$
|
|
585
|
-
getTypeCacheKeys$
|
|
584
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
585
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$g());
|
|
586
586
|
}
|
|
587
|
-
function ingestSuccess$
|
|
587
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
588
588
|
const { body } = response;
|
|
589
|
-
const key = keyBuilder$
|
|
590
|
-
luvio.storeIngest(key, ingest$
|
|
589
|
+
const key = keyBuilder$g();
|
|
590
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
591
591
|
const snapshot = luvio.storeLookup({
|
|
592
592
|
recordId: key,
|
|
593
|
-
node: select$
|
|
593
|
+
node: select$k(),
|
|
594
594
|
variables: {},
|
|
595
595
|
}, snapshotRefresh);
|
|
596
596
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -601,22 +601,22 @@ function ingestSuccess$9(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$5(luvio, params, error, snapshotRefresh) {
|
|
605
|
+
const key = keyBuilder$g();
|
|
606
606
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
607
607
|
const storeMetadataParams = {
|
|
608
|
-
ttl: TTL$
|
|
608
|
+
ttl: TTL$a,
|
|
609
609
|
namespace: keyPrefix,
|
|
610
|
-
version: VERSION$
|
|
611
|
-
representationName: RepresentationType$
|
|
610
|
+
version: VERSION$a,
|
|
611
|
+
representationName: RepresentationType$a
|
|
612
612
|
};
|
|
613
613
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
614
614
|
return errorSnapshot;
|
|
615
615
|
}
|
|
616
|
-
function createResourceRequest$
|
|
616
|
+
function createResourceRequest$a(config) {
|
|
617
617
|
const headers = {};
|
|
618
618
|
return {
|
|
619
|
-
baseUri: '/services/data/
|
|
619
|
+
baseUri: '/services/data/v64.0',
|
|
620
620
|
basePath: '/external-connectivity/connections',
|
|
621
621
|
method: 'get',
|
|
622
622
|
body: null,
|
|
@@ -627,90 +627,90 @@ function createResourceRequest$9(config) {
|
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
const adapterName$
|
|
630
|
+
const adapterName$a = '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$a, getConnections_ConfigPropertyMetadata);
|
|
633
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(getConnections_ConfigPropertyMetadata);
|
|
634
|
+
function keyBuilder$f(luvio, config) {
|
|
635
|
+
createResourceParams$a(config);
|
|
636
|
+
return keyBuilder$g();
|
|
637
637
|
}
|
|
638
|
-
function typeCheckConfig$
|
|
638
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
639
639
|
const config = {};
|
|
640
640
|
return config;
|
|
641
641
|
}
|
|
642
|
-
function validateAdapterConfig$
|
|
642
|
+
function validateAdapterConfig$a(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$a();
|
|
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$5(luvio, config) {
|
|
656
|
+
createResourceParams$a(config);
|
|
657
|
+
return select$k();
|
|
658
658
|
}
|
|
659
|
-
function onFetchResponseSuccess$
|
|
660
|
-
const snapshot = ingestSuccess$
|
|
659
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
660
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
661
661
|
config,
|
|
662
|
-
resolve: () => buildNetworkSnapshot$
|
|
662
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
663
663
|
});
|
|
664
664
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
665
665
|
}
|
|
666
|
-
function onFetchResponseError$
|
|
667
|
-
const snapshot = ingestError$
|
|
666
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
667
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
668
668
|
config,
|
|
669
|
-
resolve: () => buildNetworkSnapshot$
|
|
669
|
+
resolve: () => buildNetworkSnapshot$a(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$a(luvio, config, options) {
|
|
674
|
+
const resourceParams = createResourceParams$a(config);
|
|
675
|
+
const request = createResourceRequest$a();
|
|
676
676
|
return luvio.dispatchResourceRequest(request, options)
|
|
677
677
|
.then((response) => {
|
|
678
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
678
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
679
679
|
const cache = new StoreKeyMap();
|
|
680
|
-
getResponseCacheKeys$
|
|
680
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
681
681
|
return cache;
|
|
682
682
|
});
|
|
683
683
|
}, (response) => {
|
|
684
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
684
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
function buildNetworkSnapshotCachePolicy$
|
|
688
|
-
return buildNetworkSnapshotCachePolicy$
|
|
687
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
688
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
689
689
|
}
|
|
690
|
-
function buildCachedSnapshotCachePolicy$
|
|
690
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
691
691
|
const { luvio, config } = context;
|
|
692
692
|
const selector = {
|
|
693
|
-
recordId: keyBuilder$
|
|
694
|
-
node: adapterFragment$
|
|
693
|
+
recordId: keyBuilder$f(luvio, config),
|
|
694
|
+
node: adapterFragment$5(luvio, config),
|
|
695
695
|
variables: {},
|
|
696
696
|
};
|
|
697
697
|
const cacheSnapshot = storeLookup(selector, {
|
|
698
698
|
config,
|
|
699
|
-
resolve: () => buildNetworkSnapshot$
|
|
699
|
+
resolve: () => buildNetworkSnapshot$a(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$a(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$5, buildNetworkSnapshotCachePolicy$5);
|
|
711
711
|
};
|
|
712
712
|
|
|
713
|
-
function validate$
|
|
713
|
+
function validate$f(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$d(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$9 = 500;
|
|
740
|
+
const VERSION$9 = "139e6c6cae3db78f5efabb1639252ac2";
|
|
741
|
+
function validate$e(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$c(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$9 = 'ExternalConnectivityConnectionCreatedRepresentation';
|
|
755
|
+
function keyBuilder$e(luvio, config) {
|
|
756
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.developerName;
|
|
757
757
|
}
|
|
758
|
-
function keyBuilderFromType$
|
|
758
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
759
759
|
const keyParams = {
|
|
760
760
|
developerName: object.developerName
|
|
761
761
|
};
|
|
762
|
-
return keyBuilder$
|
|
762
|
+
return keyBuilder$e(luvio, keyParams);
|
|
763
763
|
}
|
|
764
|
-
function normalize$
|
|
764
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
765
765
|
return input;
|
|
766
766
|
}
|
|
767
|
-
const select$
|
|
767
|
+
const select$j = function ExternalConnectivityConnectionCreatedRepresentationSelect() {
|
|
768
768
|
return {
|
|
769
769
|
kind: 'Fragment',
|
|
770
|
-
version: VERSION$
|
|
770
|
+
version: VERSION$9,
|
|
771
771
|
private: [],
|
|
772
772
|
selections: [
|
|
773
773
|
{
|
|
@@ -777,7 +777,7 @@ const select$g = function ExternalConnectivityConnectionCreatedRepresentationSel
|
|
|
777
777
|
]
|
|
778
778
|
};
|
|
779
779
|
};
|
|
780
|
-
function equals$
|
|
780
|
+
function equals$9(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$7(existing, incoming) {
|
|
|
785
785
|
}
|
|
786
786
|
return true;
|
|
787
787
|
}
|
|
788
|
-
const ingest$
|
|
788
|
+
const ingest$9 = function ExternalConnectivityConnectionCreatedRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
789
789
|
if (process.env.NODE_ENV !== 'production') {
|
|
790
|
-
const validateError = validate$
|
|
790
|
+
const validateError = validate$e(input);
|
|
791
791
|
if (validateError !== null) {
|
|
792
792
|
throw validateError;
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
const key = keyBuilderFromType$
|
|
796
|
-
const ttlToUse = TTL$
|
|
797
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
795
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
796
|
+
const ttlToUse = TTL$9;
|
|
797
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "external-connectivity", VERSION$9, RepresentationType$9, equals$9);
|
|
798
798
|
return createLink(key);
|
|
799
799
|
};
|
|
800
|
-
function getTypeCacheKeys$
|
|
800
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
801
801
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
802
|
-
const rootKey = keyBuilderFromType$
|
|
802
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
803
803
|
rootKeySet.set(rootKey, {
|
|
804
804
|
namespace: keyPrefix,
|
|
805
|
-
representationName: RepresentationType$
|
|
805
|
+
representationName: RepresentationType$9,
|
|
806
806
|
mergeable: false
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
-
function select$
|
|
811
|
-
return select$
|
|
810
|
+
function select$i(luvio, params) {
|
|
811
|
+
return select$j();
|
|
812
812
|
}
|
|
813
|
-
function getResponseCacheKeys$
|
|
814
|
-
getTypeCacheKeys$
|
|
813
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
814
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
815
815
|
}
|
|
816
|
-
function ingestSuccess$
|
|
816
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
817
817
|
const { body } = response;
|
|
818
|
-
const key = keyBuilderFromType$
|
|
819
|
-
luvio.storeIngest(key, ingest$
|
|
818
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
819
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
820
820
|
const snapshot = luvio.storeLookup({
|
|
821
821
|
recordId: key,
|
|
822
|
-
node: select$
|
|
822
|
+
node: select$i(),
|
|
823
823
|
variables: {},
|
|
824
824
|
});
|
|
825
825
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -830,10 +830,10 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
830
830
|
deepFreeze(snapshot.data);
|
|
831
831
|
return snapshot;
|
|
832
832
|
}
|
|
833
|
-
function createResourceRequest$
|
|
833
|
+
function createResourceRequest$9(config) {
|
|
834
834
|
const headers = {};
|
|
835
835
|
return {
|
|
836
|
-
baseUri: '/services/data/
|
|
836
|
+
baseUri: '/services/data/v64.0',
|
|
837
837
|
basePath: '/external-connectivity/connections',
|
|
838
838
|
method: 'post',
|
|
839
839
|
body: config.body,
|
|
@@ -844,49 +844,49 @@ function createResourceRequest$8(config) {
|
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
846
|
|
|
847
|
-
const adapterName$
|
|
847
|
+
const adapterName$9 = '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$9, createConnection_ConfigPropertyMetadata);
|
|
855
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(createConnection_ConfigPropertyMetadata);
|
|
856
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
857
857
|
const config = {};
|
|
858
|
-
typeCheckConfig$
|
|
858
|
+
typeCheckConfig$b(untrustedConfig, config, createConnection_ConfigPropertyMetadata);
|
|
859
859
|
const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
|
|
860
|
-
const referenceAuthenticationTypeInputRepresentationValidationError = validate$
|
|
860
|
+
const referenceAuthenticationTypeInputRepresentationValidationError = validate$f(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$9(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$9(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$9(luvio, config, options) {
|
|
880
|
+
const resourceParams = createResourceParams$9(config);
|
|
881
|
+
const request = createResourceRequest$9(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$9(luvio, resourceParams, response);
|
|
886
886
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
887
887
|
}, () => {
|
|
888
888
|
const cache = new StoreKeyMap();
|
|
889
|
-
getResponseCacheKeys$
|
|
889
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
890
890
|
return cache;
|
|
891
891
|
});
|
|
892
892
|
}, (response) => {
|
|
@@ -896,18 +896,18 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
896
896
|
}
|
|
897
897
|
const createConnectionAdapterFactory = (luvio) => {
|
|
898
898
|
return function createConnection(untrustedConfig) {
|
|
899
|
-
const config = validateAdapterConfig$
|
|
899
|
+
const config = validateAdapterConfig$9(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$9(luvio, config);
|
|
905
905
|
};
|
|
906
906
|
};
|
|
907
907
|
|
|
908
|
-
const TTL$
|
|
909
|
-
const VERSION$
|
|
910
|
-
function validate$
|
|
908
|
+
const TTL$8 = 500;
|
|
909
|
+
const VERSION$8 = "2f8128d7e2e433bc604c71441fa6fc50";
|
|
910
|
+
function validate$d(obj, path = 'ExternalConnectivityConnectionEditDeleteResultRepresentation') {
|
|
911
911
|
const v_error = (() => {
|
|
912
912
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
913
913
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -972,23 +972,23 @@ function validate$b(obj, path = 'ExternalConnectivityConnectionEditDeleteResultR
|
|
|
972
972
|
})();
|
|
973
973
|
return v_error === undefined ? null : v_error;
|
|
974
974
|
}
|
|
975
|
-
const RepresentationType$
|
|
976
|
-
function keyBuilder$
|
|
977
|
-
return keyPrefix + '::' + RepresentationType$
|
|
975
|
+
const RepresentationType$8 = 'ExternalConnectivityConnectionEditDeleteResultRepresentation';
|
|
976
|
+
function keyBuilder$d(luvio, config) {
|
|
977
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.developerName;
|
|
978
978
|
}
|
|
979
|
-
function keyBuilderFromType$
|
|
979
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
980
980
|
const keyParams = {
|
|
981
981
|
developerName: object.developerName
|
|
982
982
|
};
|
|
983
|
-
return keyBuilder$
|
|
983
|
+
return keyBuilder$d(luvio, keyParams);
|
|
984
984
|
}
|
|
985
|
-
function normalize$
|
|
985
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
986
986
|
return input;
|
|
987
987
|
}
|
|
988
|
-
const select$
|
|
988
|
+
const select$h = function ExternalConnectivityConnectionEditDeleteResultRepresentationSelect() {
|
|
989
989
|
return {
|
|
990
990
|
kind: 'Fragment',
|
|
991
|
-
version: VERSION$
|
|
991
|
+
version: VERSION$8,
|
|
992
992
|
private: [],
|
|
993
993
|
selections: [
|
|
994
994
|
{
|
|
@@ -1006,7 +1006,7 @@ const select$e = function ExternalConnectivityConnectionEditDeleteResultRepresen
|
|
|
1006
1006
|
]
|
|
1007
1007
|
};
|
|
1008
1008
|
};
|
|
1009
|
-
function equals$
|
|
1009
|
+
function equals$8(existing, incoming) {
|
|
1010
1010
|
const existing_developerName = existing.developerName;
|
|
1011
1011
|
const incoming_developerName = incoming.developerName;
|
|
1012
1012
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -1024,41 +1024,41 @@ function equals$6(existing, incoming) {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
return true;
|
|
1026
1026
|
}
|
|
1027
|
-
const ingest$
|
|
1027
|
+
const ingest$8 = function ExternalConnectivityConnectionEditDeleteResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1028
1028
|
if (process.env.NODE_ENV !== 'production') {
|
|
1029
|
-
const validateError = validate$
|
|
1029
|
+
const validateError = validate$d(input);
|
|
1030
1030
|
if (validateError !== null) {
|
|
1031
1031
|
throw validateError;
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
|
-
const key = keyBuilderFromType$
|
|
1035
|
-
const ttlToUse = TTL$
|
|
1036
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1034
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
1035
|
+
const ttlToUse = TTL$8;
|
|
1036
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "external-connectivity", VERSION$8, RepresentationType$8, equals$8);
|
|
1037
1037
|
return createLink(key);
|
|
1038
1038
|
};
|
|
1039
|
-
function getTypeCacheKeys$
|
|
1039
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
1040
1040
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1041
|
-
const rootKey = keyBuilderFromType$
|
|
1041
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1042
1042
|
rootKeySet.set(rootKey, {
|
|
1043
1043
|
namespace: keyPrefix,
|
|
1044
|
-
representationName: RepresentationType$
|
|
1044
|
+
representationName: RepresentationType$8,
|
|
1045
1045
|
mergeable: false
|
|
1046
1046
|
});
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
|
-
function select$
|
|
1050
|
-
return select$
|
|
1049
|
+
function select$g(luvio, params) {
|
|
1050
|
+
return select$h();
|
|
1051
1051
|
}
|
|
1052
|
-
function getResponseCacheKeys$
|
|
1053
|
-
getTypeCacheKeys$
|
|
1052
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1053
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
1054
1054
|
}
|
|
1055
|
-
function ingestSuccess$
|
|
1055
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
1056
1056
|
const { body } = response;
|
|
1057
|
-
const key = keyBuilderFromType$
|
|
1058
|
-
luvio.storeIngest(key, ingest$
|
|
1057
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
1058
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
1059
1059
|
const snapshot = luvio.storeLookup({
|
|
1060
1060
|
recordId: key,
|
|
1061
|
-
node: select$
|
|
1061
|
+
node: select$g(),
|
|
1062
1062
|
variables: {},
|
|
1063
1063
|
});
|
|
1064
1064
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1069,10 +1069,10 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
1069
1069
|
deepFreeze(snapshot.data);
|
|
1070
1070
|
return snapshot;
|
|
1071
1071
|
}
|
|
1072
|
-
function createResourceRequest$
|
|
1072
|
+
function createResourceRequest$8(config) {
|
|
1073
1073
|
const headers = {};
|
|
1074
1074
|
return {
|
|
1075
|
-
baseUri: '/services/data/
|
|
1075
|
+
baseUri: '/services/data/v64.0',
|
|
1076
1076
|
basePath: '/external-connectivity/connections/delete/' + config.urlParams.connectionDeveloperName + '',
|
|
1077
1077
|
method: 'post',
|
|
1078
1078
|
body: null,
|
|
@@ -1083,41 +1083,41 @@ function createResourceRequest$7(config) {
|
|
|
1083
1083
|
};
|
|
1084
1084
|
}
|
|
1085
1085
|
|
|
1086
|
-
const adapterName$
|
|
1086
|
+
const adapterName$8 = 'deleteConnection';
|
|
1087
1087
|
const deleteConnection_ConfigPropertyMetadata = [
|
|
1088
1088
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1089
1089
|
];
|
|
1090
|
-
const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1091
|
-
const createResourceParams$
|
|
1092
|
-
function typeCheckConfig$
|
|
1090
|
+
const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteConnection_ConfigPropertyMetadata);
|
|
1091
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(deleteConnection_ConfigPropertyMetadata);
|
|
1092
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
1093
1093
|
const config = {};
|
|
1094
|
-
typeCheckConfig$
|
|
1094
|
+
typeCheckConfig$b(untrustedConfig, config, deleteConnection_ConfigPropertyMetadata);
|
|
1095
1095
|
return config;
|
|
1096
1096
|
}
|
|
1097
|
-
function validateAdapterConfig$
|
|
1097
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
1098
1098
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1099
1099
|
return null;
|
|
1100
1100
|
}
|
|
1101
1101
|
if (process.env.NODE_ENV !== 'production') {
|
|
1102
1102
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1103
1103
|
}
|
|
1104
|
-
const config = typeCheckConfig$
|
|
1104
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
1105
1105
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1106
1106
|
return null;
|
|
1107
1107
|
}
|
|
1108
1108
|
return config;
|
|
1109
1109
|
}
|
|
1110
|
-
function buildNetworkSnapshot$
|
|
1111
|
-
const resourceParams = createResourceParams$
|
|
1112
|
-
const request = createResourceRequest$
|
|
1110
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
1111
|
+
const resourceParams = createResourceParams$8(config);
|
|
1112
|
+
const request = createResourceRequest$8(resourceParams);
|
|
1113
1113
|
return luvio.dispatchResourceRequest(request, options)
|
|
1114
1114
|
.then((response) => {
|
|
1115
1115
|
return luvio.handleSuccessResponse(() => {
|
|
1116
|
-
const snapshot = ingestSuccess$
|
|
1116
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
1117
1117
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1118
1118
|
}, () => {
|
|
1119
1119
|
const cache = new StoreKeyMap();
|
|
1120
|
-
getResponseCacheKeys$
|
|
1120
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
1121
1121
|
return cache;
|
|
1122
1122
|
});
|
|
1123
1123
|
}, (response) => {
|
|
@@ -1127,16 +1127,16 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
const deleteConnectionAdapterFactory = (luvio) => {
|
|
1129
1129
|
return function deleteConnection(untrustedConfig) {
|
|
1130
|
-
const config = validateAdapterConfig$
|
|
1130
|
+
const config = validateAdapterConfig$8(untrustedConfig, deleteConnection_ConfigPropertyNames);
|
|
1131
1131
|
// Invalid or incomplete config
|
|
1132
1132
|
if (config === null) {
|
|
1133
1133
|
throw new Error('Invalid config for "deleteConnection"');
|
|
1134
1134
|
}
|
|
1135
|
-
return buildNetworkSnapshot$
|
|
1135
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
1136
1136
|
};
|
|
1137
1137
|
};
|
|
1138
1138
|
|
|
1139
|
-
function validate$
|
|
1139
|
+
function validate$c(obj, path = 'AuthenticationParameterDefinitionRepresentation') {
|
|
1140
1140
|
const v_error = (() => {
|
|
1141
1141
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1142
1142
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1206,14 +1206,14 @@ function validate$a(obj, path = 'AuthenticationParameterDefinitionRepresentation
|
|
|
1206
1206
|
return v_error === undefined ? null : v_error;
|
|
1207
1207
|
}
|
|
1208
1208
|
|
|
1209
|
-
function validate$
|
|
1209
|
+
function validate$b(obj, path = 'AuthenticationParameterRepresentation') {
|
|
1210
1210
|
const v_error = (() => {
|
|
1211
1211
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1212
1212
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1213
1213
|
}
|
|
1214
1214
|
const obj_authenticationParameterDefinition = obj.authenticationParameterDefinition;
|
|
1215
1215
|
const path_authenticationParameterDefinition = path + '.authenticationParameterDefinition';
|
|
1216
|
-
const referencepath_authenticationParameterDefinitionValidationError = validate$
|
|
1216
|
+
const referencepath_authenticationParameterDefinitionValidationError = validate$c(obj_authenticationParameterDefinition, path_authenticationParameterDefinition);
|
|
1217
1217
|
if (referencepath_authenticationParameterDefinitionValidationError !== null) {
|
|
1218
1218
|
let message = 'Object doesn\'t match AuthenticationParameterDefinitionRepresentation (at "' + path_authenticationParameterDefinition + '")\n';
|
|
1219
1219
|
message += referencepath_authenticationParameterDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1228,7 +1228,7 @@ function validate$9(obj, path = 'AuthenticationParameterRepresentation') {
|
|
|
1228
1228
|
return v_error === undefined ? null : v_error;
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
|
-
function validate$
|
|
1231
|
+
function validate$a(obj, path = 'AuthenticationTypeRepresentation') {
|
|
1232
1232
|
const v_error = (() => {
|
|
1233
1233
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1234
1234
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1241,7 +1241,7 @@ function validate$8(obj, path = 'AuthenticationTypeRepresentation') {
|
|
|
1241
1241
|
for (let i = 0; i < obj_authenticationParameters.length; i++) {
|
|
1242
1242
|
const obj_authenticationParameters_item = obj_authenticationParameters[i];
|
|
1243
1243
|
const path_authenticationParameters_item = path_authenticationParameters + '[' + i + ']';
|
|
1244
|
-
const referencepath_authenticationParameters_itemValidationError = validate$
|
|
1244
|
+
const referencepath_authenticationParameters_itemValidationError = validate$b(obj_authenticationParameters_item, path_authenticationParameters_item);
|
|
1245
1245
|
if (referencepath_authenticationParameters_itemValidationError !== null) {
|
|
1246
1246
|
let message = 'Object doesn\'t match AuthenticationParameterRepresentation (at "' + path_authenticationParameters_item + '")\n';
|
|
1247
1247
|
message += referencepath_authenticationParameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1257,16 +1257,16 @@ function validate$8(obj, path = 'AuthenticationTypeRepresentation') {
|
|
|
1257
1257
|
return v_error === undefined ? null : v_error;
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
|
-
const TTL$
|
|
1261
|
-
const VERSION$
|
|
1262
|
-
function validate$
|
|
1260
|
+
const TTL$7 = 500;
|
|
1261
|
+
const VERSION$7 = "7ca6b78397dd8632eba2e72a10134d04";
|
|
1262
|
+
function validate$9(obj, path = 'ExternalConnectivityConnectionDetailsRepresentation') {
|
|
1263
1263
|
const v_error = (() => {
|
|
1264
1264
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1265
1265
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1266
1266
|
}
|
|
1267
1267
|
const obj_authenticationType = obj.authenticationType;
|
|
1268
1268
|
const path_authenticationType = path + '.authenticationType';
|
|
1269
|
-
const referencepath_authenticationTypeValidationError = validate$
|
|
1269
|
+
const referencepath_authenticationTypeValidationError = validate$a(obj_authenticationType, path_authenticationType);
|
|
1270
1270
|
if (referencepath_authenticationTypeValidationError !== null) {
|
|
1271
1271
|
let message = 'Object doesn\'t match AuthenticationTypeRepresentation (at "' + path_authenticationType + '")\n';
|
|
1272
1272
|
message += referencepath_authenticationTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1320,7 +1320,7 @@ function validate$7(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
1320
1320
|
}
|
|
1321
1321
|
const obj_externalConnectorMetadata = obj.externalConnectorMetadata;
|
|
1322
1322
|
const path_externalConnectorMetadata = path + '.externalConnectorMetadata';
|
|
1323
|
-
const referencepath_externalConnectorMetadataValidationError = validate$
|
|
1323
|
+
const referencepath_externalConnectorMetadataValidationError = validate$i(obj_externalConnectorMetadata, path_externalConnectorMetadata);
|
|
1324
1324
|
if (referencepath_externalConnectorMetadataValidationError !== null) {
|
|
1325
1325
|
let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_externalConnectorMetadata + '")\n';
|
|
1326
1326
|
message += referencepath_externalConnectorMetadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1370,62 +1370,62 @@ function validate$7(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
1370
1370
|
})();
|
|
1371
1371
|
return v_error === undefined ? null : v_error;
|
|
1372
1372
|
}
|
|
1373
|
-
const RepresentationType$
|
|
1374
|
-
function normalize$
|
|
1373
|
+
const RepresentationType$7 = 'ExternalConnectivityConnectionDetailsRepresentation';
|
|
1374
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1375
1375
|
return input;
|
|
1376
1376
|
}
|
|
1377
|
-
const select$
|
|
1377
|
+
const select$f = function ExternalConnectivityConnectionDetailsRepresentationSelect() {
|
|
1378
1378
|
return {
|
|
1379
1379
|
kind: 'Fragment',
|
|
1380
|
-
version: VERSION$
|
|
1380
|
+
version: VERSION$7,
|
|
1381
1381
|
private: [],
|
|
1382
1382
|
opaque: true
|
|
1383
1383
|
};
|
|
1384
1384
|
};
|
|
1385
|
-
function equals$
|
|
1385
|
+
function equals$7(existing, incoming) {
|
|
1386
1386
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1387
1387
|
return false;
|
|
1388
1388
|
}
|
|
1389
1389
|
return true;
|
|
1390
1390
|
}
|
|
1391
|
-
const ingest$
|
|
1391
|
+
const ingest$7 = function ExternalConnectivityConnectionDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1392
1392
|
if (process.env.NODE_ENV !== 'production') {
|
|
1393
|
-
const validateError = validate$
|
|
1393
|
+
const validateError = validate$9(input);
|
|
1394
1394
|
if (validateError !== null) {
|
|
1395
1395
|
throw validateError;
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
const key = path.fullPath;
|
|
1399
|
-
const ttlToUse = TTL$
|
|
1400
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1399
|
+
const ttlToUse = TTL$7;
|
|
1400
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "external-connectivity", VERSION$7, RepresentationType$7, equals$7);
|
|
1401
1401
|
return createLink(key);
|
|
1402
1402
|
};
|
|
1403
|
-
function getTypeCacheKeys$
|
|
1403
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
1404
1404
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1405
1405
|
const rootKey = fullPathFactory();
|
|
1406
1406
|
rootKeySet.set(rootKey, {
|
|
1407
1407
|
namespace: keyPrefix,
|
|
1408
|
-
representationName: RepresentationType$
|
|
1408
|
+
representationName: RepresentationType$7,
|
|
1409
1409
|
mergeable: false
|
|
1410
1410
|
});
|
|
1411
1411
|
}
|
|
1412
1412
|
|
|
1413
|
-
function select$
|
|
1414
|
-
return select$
|
|
1413
|
+
function select$e(luvio, params) {
|
|
1414
|
+
return select$f();
|
|
1415
1415
|
}
|
|
1416
|
-
function keyBuilder$
|
|
1416
|
+
function keyBuilder$c(luvio, params) {
|
|
1417
1417
|
return keyPrefix + '::ExternalConnectivityConnectionDetailsRepresentation:(' + 'connectionDeveloperName:' + params.urlParams.connectionDeveloperName + ')';
|
|
1418
1418
|
}
|
|
1419
|
-
function getResponseCacheKeys$
|
|
1420
|
-
getTypeCacheKeys$
|
|
1419
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
1420
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
|
|
1421
1421
|
}
|
|
1422
|
-
function ingestSuccess$
|
|
1422
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
1423
1423
|
const { body } = response;
|
|
1424
|
-
const key = keyBuilder$
|
|
1425
|
-
luvio.storeIngest(key, ingest$
|
|
1424
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
1425
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
1426
1426
|
const snapshot = luvio.storeLookup({
|
|
1427
1427
|
recordId: key,
|
|
1428
|
-
node: select$
|
|
1428
|
+
node: select$e(),
|
|
1429
1429
|
variables: {},
|
|
1430
1430
|
}, snapshotRefresh);
|
|
1431
1431
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1436,22 +1436,22 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1436
1436
|
deepFreeze(snapshot.data);
|
|
1437
1437
|
return snapshot;
|
|
1438
1438
|
}
|
|
1439
|
-
function ingestError$
|
|
1440
|
-
const key = keyBuilder$
|
|
1439
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
1440
|
+
const key = keyBuilder$c(luvio, params);
|
|
1441
1441
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1442
1442
|
const storeMetadataParams = {
|
|
1443
|
-
ttl: TTL$
|
|
1443
|
+
ttl: TTL$7,
|
|
1444
1444
|
namespace: keyPrefix,
|
|
1445
|
-
version: VERSION$
|
|
1446
|
-
representationName: RepresentationType$
|
|
1445
|
+
version: VERSION$7,
|
|
1446
|
+
representationName: RepresentationType$7
|
|
1447
1447
|
};
|
|
1448
1448
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1449
1449
|
return errorSnapshot;
|
|
1450
1450
|
}
|
|
1451
|
-
function createResourceRequest$
|
|
1451
|
+
function createResourceRequest$7(config) {
|
|
1452
1452
|
const headers = {};
|
|
1453
1453
|
return {
|
|
1454
|
-
baseUri: '/services/data/
|
|
1454
|
+
baseUri: '/services/data/v64.0',
|
|
1455
1455
|
basePath: '/external-connectivity/connections/' + config.urlParams.connectionDeveloperName + '',
|
|
1456
1456
|
method: 'get',
|
|
1457
1457
|
body: null,
|
|
@@ -1462,105 +1462,105 @@ function createResourceRequest$6(config) {
|
|
|
1462
1462
|
};
|
|
1463
1463
|
}
|
|
1464
1464
|
|
|
1465
|
-
const adapterName$
|
|
1465
|
+
const adapterName$7 = 'getConnectionDetails';
|
|
1466
1466
|
const getConnectionDetails_ConfigPropertyMetadata = [
|
|
1467
1467
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1468
1468
|
];
|
|
1469
|
-
const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1470
|
-
const createResourceParams$
|
|
1471
|
-
function keyBuilder$
|
|
1472
|
-
const resourceParams = createResourceParams$
|
|
1473
|
-
return keyBuilder$
|
|
1469
|
+
const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getConnectionDetails_ConfigPropertyMetadata);
|
|
1470
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(getConnectionDetails_ConfigPropertyMetadata);
|
|
1471
|
+
function keyBuilder$b(luvio, config) {
|
|
1472
|
+
const resourceParams = createResourceParams$7(config);
|
|
1473
|
+
return keyBuilder$c(luvio, resourceParams);
|
|
1474
1474
|
}
|
|
1475
|
-
function typeCheckConfig$
|
|
1475
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
1476
1476
|
const config = {};
|
|
1477
|
-
typeCheckConfig$
|
|
1477
|
+
typeCheckConfig$b(untrustedConfig, config, getConnectionDetails_ConfigPropertyMetadata);
|
|
1478
1478
|
return config;
|
|
1479
1479
|
}
|
|
1480
|
-
function validateAdapterConfig$
|
|
1480
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
1481
1481
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1482
1482
|
return null;
|
|
1483
1483
|
}
|
|
1484
1484
|
if (process.env.NODE_ENV !== 'production') {
|
|
1485
1485
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1486
1486
|
}
|
|
1487
|
-
const config = typeCheckConfig$
|
|
1487
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
1488
1488
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1489
1489
|
return null;
|
|
1490
1490
|
}
|
|
1491
1491
|
return config;
|
|
1492
1492
|
}
|
|
1493
|
-
function adapterFragment$
|
|
1494
|
-
createResourceParams$
|
|
1495
|
-
return select$
|
|
1493
|
+
function adapterFragment$4(luvio, config) {
|
|
1494
|
+
createResourceParams$7(config);
|
|
1495
|
+
return select$e();
|
|
1496
1496
|
}
|
|
1497
|
-
function onFetchResponseSuccess$
|
|
1498
|
-
const snapshot = ingestSuccess$
|
|
1497
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
1498
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
1499
1499
|
config,
|
|
1500
|
-
resolve: () => buildNetworkSnapshot$
|
|
1500
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1501
1501
|
});
|
|
1502
1502
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1503
1503
|
}
|
|
1504
|
-
function onFetchResponseError$
|
|
1505
|
-
const snapshot = ingestError$
|
|
1504
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
1505
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
1506
1506
|
config,
|
|
1507
|
-
resolve: () => buildNetworkSnapshot$
|
|
1507
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1508
1508
|
});
|
|
1509
1509
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1510
1510
|
}
|
|
1511
|
-
function buildNetworkSnapshot$
|
|
1512
|
-
const resourceParams = createResourceParams$
|
|
1513
|
-
const request = createResourceRequest$
|
|
1511
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
1512
|
+
const resourceParams = createResourceParams$7(config);
|
|
1513
|
+
const request = createResourceRequest$7(resourceParams);
|
|
1514
1514
|
return luvio.dispatchResourceRequest(request, options)
|
|
1515
1515
|
.then((response) => {
|
|
1516
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1516
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
1517
1517
|
const cache = new StoreKeyMap();
|
|
1518
|
-
getResponseCacheKeys$
|
|
1518
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
1519
1519
|
return cache;
|
|
1520
1520
|
});
|
|
1521
1521
|
}, (response) => {
|
|
1522
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1522
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
1523
1523
|
});
|
|
1524
1524
|
}
|
|
1525
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1526
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1525
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
1526
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
1527
1527
|
}
|
|
1528
|
-
function buildCachedSnapshotCachePolicy$
|
|
1528
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
1529
1529
|
const { luvio, config } = context;
|
|
1530
1530
|
const selector = {
|
|
1531
|
-
recordId: keyBuilder$
|
|
1532
|
-
node: adapterFragment$
|
|
1531
|
+
recordId: keyBuilder$b(luvio, config),
|
|
1532
|
+
node: adapterFragment$4(luvio, config),
|
|
1533
1533
|
variables: {},
|
|
1534
1534
|
};
|
|
1535
1535
|
const cacheSnapshot = storeLookup(selector, {
|
|
1536
1536
|
config,
|
|
1537
|
-
resolve: () => buildNetworkSnapshot$
|
|
1537
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
1538
1538
|
});
|
|
1539
1539
|
return cacheSnapshot;
|
|
1540
1540
|
}
|
|
1541
1541
|
const getConnectionDetailsAdapterFactory = (luvio) => function externalConnectivity__getConnectionDetails(untrustedConfig, requestContext) {
|
|
1542
|
-
const config = validateAdapterConfig$
|
|
1542
|
+
const config = validateAdapterConfig$7(untrustedConfig, getConnectionDetails_ConfigPropertyNames);
|
|
1543
1543
|
// Invalid or incomplete config
|
|
1544
1544
|
if (config === null) {
|
|
1545
1545
|
return null;
|
|
1546
1546
|
}
|
|
1547
1547
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1548
|
-
buildCachedSnapshotCachePolicy$
|
|
1548
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
1549
1549
|
};
|
|
1550
1550
|
|
|
1551
|
-
function select$
|
|
1552
|
-
return select$
|
|
1551
|
+
function select$d(luvio, params) {
|
|
1552
|
+
return select$h();
|
|
1553
1553
|
}
|
|
1554
|
-
function getResponseCacheKeys$
|
|
1555
|
-
getTypeCacheKeys$
|
|
1554
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
1555
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
1556
1556
|
}
|
|
1557
|
-
function ingestSuccess$
|
|
1557
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
1558
1558
|
const { body } = response;
|
|
1559
|
-
const key = keyBuilderFromType$
|
|
1560
|
-
luvio.storeIngest(key, ingest$
|
|
1559
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
1560
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
1561
1561
|
const snapshot = luvio.storeLookup({
|
|
1562
1562
|
recordId: key,
|
|
1563
|
-
node: select$
|
|
1563
|
+
node: select$d(),
|
|
1564
1564
|
variables: {},
|
|
1565
1565
|
});
|
|
1566
1566
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1571,10 +1571,10 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
1571
1571
|
deepFreeze(snapshot.data);
|
|
1572
1572
|
return snapshot;
|
|
1573
1573
|
}
|
|
1574
|
-
function createResourceRequest$
|
|
1574
|
+
function createResourceRequest$6(config) {
|
|
1575
1575
|
const headers = {};
|
|
1576
1576
|
return {
|
|
1577
|
-
baseUri: '/services/data/
|
|
1577
|
+
baseUri: '/services/data/v64.0',
|
|
1578
1578
|
basePath: '/external-connectivity/connections/' + config.urlParams.connectionDeveloperName + '',
|
|
1579
1579
|
method: 'put',
|
|
1580
1580
|
body: config.body,
|
|
@@ -1585,7 +1585,7 @@ function createResourceRequest$5(config) {
|
|
|
1585
1585
|
};
|
|
1586
1586
|
}
|
|
1587
1587
|
|
|
1588
|
-
const adapterName$
|
|
1588
|
+
const adapterName$6 = 'updateConnection';
|
|
1589
1589
|
const updateConnection_ConfigPropertyMetadata = [
|
|
1590
1590
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1591
1591
|
generateParamConfigMetadata('authenticationTypeInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -1593,42 +1593,42 @@ const updateConnection_ConfigPropertyMetadata = [
|
|
|
1593
1593
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
1594
1594
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
1595
1595
|
];
|
|
1596
|
-
const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1597
|
-
const createResourceParams$
|
|
1598
|
-
function typeCheckConfig$
|
|
1596
|
+
const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updateConnection_ConfigPropertyMetadata);
|
|
1597
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(updateConnection_ConfigPropertyMetadata);
|
|
1598
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
1599
1599
|
const config = {};
|
|
1600
|
-
typeCheckConfig$
|
|
1600
|
+
typeCheckConfig$b(untrustedConfig, config, updateConnection_ConfigPropertyMetadata);
|
|
1601
1601
|
const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
|
|
1602
|
-
const referenceAuthenticationTypeInputRepresentationValidationError = validate$
|
|
1602
|
+
const referenceAuthenticationTypeInputRepresentationValidationError = validate$f(untrustedConfig_authenticationTypeInput);
|
|
1603
1603
|
if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
|
|
1604
1604
|
config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
|
|
1605
1605
|
}
|
|
1606
1606
|
return config;
|
|
1607
1607
|
}
|
|
1608
|
-
function validateAdapterConfig$
|
|
1608
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
1609
1609
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1610
1610
|
return null;
|
|
1611
1611
|
}
|
|
1612
1612
|
if (process.env.NODE_ENV !== 'production') {
|
|
1613
1613
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1614
1614
|
}
|
|
1615
|
-
const config = typeCheckConfig$
|
|
1615
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
1616
1616
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1617
1617
|
return null;
|
|
1618
1618
|
}
|
|
1619
1619
|
return config;
|
|
1620
1620
|
}
|
|
1621
|
-
function buildNetworkSnapshot$
|
|
1622
|
-
const resourceParams = createResourceParams$
|
|
1623
|
-
const request = createResourceRequest$
|
|
1621
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
1622
|
+
const resourceParams = createResourceParams$6(config);
|
|
1623
|
+
const request = createResourceRequest$6(resourceParams);
|
|
1624
1624
|
return luvio.dispatchResourceRequest(request, options)
|
|
1625
1625
|
.then((response) => {
|
|
1626
1626
|
return luvio.handleSuccessResponse(() => {
|
|
1627
|
-
const snapshot = ingestSuccess$
|
|
1627
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
1628
1628
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1629
1629
|
}, () => {
|
|
1630
1630
|
const cache = new StoreKeyMap();
|
|
1631
|
-
getResponseCacheKeys$
|
|
1631
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
1632
1632
|
return cache;
|
|
1633
1633
|
});
|
|
1634
1634
|
}, (response) => {
|
|
@@ -1638,18 +1638,18 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
const updateConnectionAdapterFactory = (luvio) => {
|
|
1640
1640
|
return function updateConnection(untrustedConfig) {
|
|
1641
|
-
const config = validateAdapterConfig$
|
|
1641
|
+
const config = validateAdapterConfig$6(untrustedConfig, updateConnection_ConfigPropertyNames);
|
|
1642
1642
|
// Invalid or incomplete config
|
|
1643
1643
|
if (config === null) {
|
|
1644
1644
|
throw new Error('Invalid config for "updateConnection"');
|
|
1645
1645
|
}
|
|
1646
|
-
return buildNetworkSnapshot$
|
|
1646
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
1647
1647
|
};
|
|
1648
1648
|
};
|
|
1649
1649
|
|
|
1650
|
-
const TTL$
|
|
1651
|
-
const VERSION$
|
|
1652
|
-
function validate$
|
|
1650
|
+
const TTL$6 = 500;
|
|
1651
|
+
const VERSION$6 = "71ffbcde2884f7332ea29ce2c9344e8d";
|
|
1652
|
+
function validate$8(obj, path = 'ExternalConnectivityConnectionRefreshMetadataOutputRepresentation') {
|
|
1653
1653
|
const v_error = (() => {
|
|
1654
1654
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1655
1655
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1674,68 +1674,68 @@ function validate$6(obj, path = 'ExternalConnectivityConnectionRefreshMetadataOu
|
|
|
1674
1674
|
})();
|
|
1675
1675
|
return v_error === undefined ? null : v_error;
|
|
1676
1676
|
}
|
|
1677
|
-
const RepresentationType$
|
|
1678
|
-
function keyBuilder$
|
|
1679
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1677
|
+
const RepresentationType$6 = 'ExternalConnectivityConnectionRefreshMetadataOutputRepresentation';
|
|
1678
|
+
function keyBuilder$a(luvio, config) {
|
|
1679
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.connectionName;
|
|
1680
1680
|
}
|
|
1681
|
-
function keyBuilderFromType$
|
|
1681
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
1682
1682
|
const keyParams = {
|
|
1683
1683
|
connectionName: object.connectionName
|
|
1684
1684
|
};
|
|
1685
|
-
return keyBuilder$
|
|
1685
|
+
return keyBuilder$a(luvio, keyParams);
|
|
1686
1686
|
}
|
|
1687
|
-
function normalize$
|
|
1687
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
1688
1688
|
return input;
|
|
1689
1689
|
}
|
|
1690
|
-
const select$
|
|
1690
|
+
const select$c = function ExternalConnectivityConnectionRefreshMetadataOutputRepresentationSelect() {
|
|
1691
1691
|
return {
|
|
1692
1692
|
kind: 'Fragment',
|
|
1693
|
-
version: VERSION$
|
|
1693
|
+
version: VERSION$6,
|
|
1694
1694
|
private: [],
|
|
1695
1695
|
opaque: true
|
|
1696
1696
|
};
|
|
1697
1697
|
};
|
|
1698
|
-
function equals$
|
|
1698
|
+
function equals$6(existing, incoming) {
|
|
1699
1699
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1700
1700
|
return false;
|
|
1701
1701
|
}
|
|
1702
1702
|
return true;
|
|
1703
1703
|
}
|
|
1704
|
-
const ingest$
|
|
1704
|
+
const ingest$6 = function ExternalConnectivityConnectionRefreshMetadataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1705
1705
|
if (process.env.NODE_ENV !== 'production') {
|
|
1706
|
-
const validateError = validate$
|
|
1706
|
+
const validateError = validate$8(input);
|
|
1707
1707
|
if (validateError !== null) {
|
|
1708
1708
|
throw validateError;
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
|
-
const key = keyBuilderFromType$
|
|
1712
|
-
const ttlToUse = TTL$
|
|
1713
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1711
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
1712
|
+
const ttlToUse = TTL$6;
|
|
1713
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "external-connectivity", VERSION$6, RepresentationType$6, equals$6);
|
|
1714
1714
|
return createLink(key);
|
|
1715
1715
|
};
|
|
1716
|
-
function getTypeCacheKeys$
|
|
1716
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
1717
1717
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1718
|
-
const rootKey = keyBuilderFromType$
|
|
1718
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
1719
1719
|
rootKeySet.set(rootKey, {
|
|
1720
1720
|
namespace: keyPrefix,
|
|
1721
|
-
representationName: RepresentationType$
|
|
1721
|
+
representationName: RepresentationType$6,
|
|
1722
1722
|
mergeable: false
|
|
1723
1723
|
});
|
|
1724
1724
|
}
|
|
1725
1725
|
|
|
1726
|
-
function select$
|
|
1727
|
-
return select$
|
|
1726
|
+
function select$b(luvio, params) {
|
|
1727
|
+
return select$c();
|
|
1728
1728
|
}
|
|
1729
|
-
function getResponseCacheKeys$
|
|
1730
|
-
getTypeCacheKeys$
|
|
1729
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
1730
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
1731
1731
|
}
|
|
1732
|
-
function ingestSuccess$
|
|
1732
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
1733
1733
|
const { body } = response;
|
|
1734
|
-
const key = keyBuilderFromType$
|
|
1735
|
-
luvio.storeIngest(key, ingest$
|
|
1734
|
+
const key = keyBuilderFromType$2(luvio, body);
|
|
1735
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
1736
1736
|
const snapshot = luvio.storeLookup({
|
|
1737
1737
|
recordId: key,
|
|
1738
|
-
node: select$
|
|
1738
|
+
node: select$b(),
|
|
1739
1739
|
variables: {},
|
|
1740
1740
|
});
|
|
1741
1741
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1746,10 +1746,10 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
1746
1746
|
deepFreeze(snapshot.data);
|
|
1747
1747
|
return snapshot;
|
|
1748
1748
|
}
|
|
1749
|
-
function createResourceRequest$
|
|
1749
|
+
function createResourceRequest$5(config) {
|
|
1750
1750
|
const headers = {};
|
|
1751
1751
|
return {
|
|
1752
|
-
baseUri: '/services/data/
|
|
1752
|
+
baseUri: '/services/data/v64.0',
|
|
1753
1753
|
basePath: '/external-connectivity/connections/' + config.urlParams.connectionDeveloperName + '/refresh-metadata',
|
|
1754
1754
|
method: 'post',
|
|
1755
1755
|
body: config.body,
|
|
@@ -1760,42 +1760,42 @@ function createResourceRequest$4(config) {
|
|
|
1760
1760
|
};
|
|
1761
1761
|
}
|
|
1762
1762
|
|
|
1763
|
-
const adapterName$
|
|
1763
|
+
const adapterName$5 = 'refreshMetadata';
|
|
1764
1764
|
const refreshMetadata_ConfigPropertyMetadata = [
|
|
1765
1765
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1766
1766
|
generateParamConfigMetadata('apexClassNames', true, 2 /* Body */, 0 /* String */, true),
|
|
1767
1767
|
];
|
|
1768
|
-
const refreshMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1769
|
-
const createResourceParams$
|
|
1770
|
-
function typeCheckConfig$
|
|
1768
|
+
const refreshMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, refreshMetadata_ConfigPropertyMetadata);
|
|
1769
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(refreshMetadata_ConfigPropertyMetadata);
|
|
1770
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
1771
1771
|
const config = {};
|
|
1772
|
-
typeCheckConfig$
|
|
1772
|
+
typeCheckConfig$b(untrustedConfig, config, refreshMetadata_ConfigPropertyMetadata);
|
|
1773
1773
|
return config;
|
|
1774
1774
|
}
|
|
1775
|
-
function validateAdapterConfig$
|
|
1775
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
1776
1776
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1777
1777
|
return null;
|
|
1778
1778
|
}
|
|
1779
1779
|
if (process.env.NODE_ENV !== 'production') {
|
|
1780
1780
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1781
1781
|
}
|
|
1782
|
-
const config = typeCheckConfig$
|
|
1782
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
1783
1783
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1784
1784
|
return null;
|
|
1785
1785
|
}
|
|
1786
1786
|
return config;
|
|
1787
1787
|
}
|
|
1788
|
-
function buildNetworkSnapshot$
|
|
1789
|
-
const resourceParams = createResourceParams$
|
|
1790
|
-
const request = createResourceRequest$
|
|
1788
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
1789
|
+
const resourceParams = createResourceParams$5(config);
|
|
1790
|
+
const request = createResourceRequest$5(resourceParams);
|
|
1791
1791
|
return luvio.dispatchResourceRequest(request, options)
|
|
1792
1792
|
.then((response) => {
|
|
1793
1793
|
return luvio.handleSuccessResponse(() => {
|
|
1794
|
-
const snapshot = ingestSuccess$
|
|
1794
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
1795
1795
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1796
1796
|
}, () => {
|
|
1797
1797
|
const cache = new StoreKeyMap();
|
|
1798
|
-
getResponseCacheKeys$
|
|
1798
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
1799
1799
|
return cache;
|
|
1800
1800
|
});
|
|
1801
1801
|
}, (response) => {
|
|
@@ -1805,18 +1805,18 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
const refreshMetadataAdapterFactory = (luvio) => {
|
|
1807
1807
|
return function refreshMetadata(untrustedConfig) {
|
|
1808
|
-
const config = validateAdapterConfig$
|
|
1808
|
+
const config = validateAdapterConfig$5(untrustedConfig, refreshMetadata_ConfigPropertyNames);
|
|
1809
1809
|
// Invalid or incomplete config
|
|
1810
1810
|
if (config === null) {
|
|
1811
1811
|
throw new Error('Invalid config for "refreshMetadata"');
|
|
1812
1812
|
}
|
|
1813
|
-
return buildNetworkSnapshot$
|
|
1813
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
1814
1814
|
};
|
|
1815
1815
|
};
|
|
1816
1816
|
|
|
1817
|
-
const TTL$
|
|
1818
|
-
const VERSION$
|
|
1819
|
-
function validate$
|
|
1817
|
+
const TTL$5 = 500;
|
|
1818
|
+
const VERSION$5 = "586c10aa43f3608962cdfc83e38d3157";
|
|
1819
|
+
function validate$7(obj, path = 'ExternalConnectivityConnectionTestResultRepresentation') {
|
|
1820
1820
|
const v_error = (() => {
|
|
1821
1821
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1822
1822
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1891,23 +1891,23 @@ function validate$5(obj, path = 'ExternalConnectivityConnectionTestResultReprese
|
|
|
1891
1891
|
})();
|
|
1892
1892
|
return v_error === undefined ? null : v_error;
|
|
1893
1893
|
}
|
|
1894
|
-
const RepresentationType$
|
|
1895
|
-
function keyBuilder$
|
|
1896
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1894
|
+
const RepresentationType$5 = 'ExternalConnectivityConnectionTestResultRepresentation';
|
|
1895
|
+
function keyBuilder$9(luvio, config) {
|
|
1896
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.developerName;
|
|
1897
1897
|
}
|
|
1898
|
-
function keyBuilderFromType(luvio, object) {
|
|
1898
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
1899
1899
|
const keyParams = {
|
|
1900
1900
|
developerName: object.developerName
|
|
1901
1901
|
};
|
|
1902
|
-
return keyBuilder$
|
|
1902
|
+
return keyBuilder$9(luvio, keyParams);
|
|
1903
1903
|
}
|
|
1904
|
-
function normalize$
|
|
1904
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
1905
1905
|
return input;
|
|
1906
1906
|
}
|
|
1907
|
-
const select$
|
|
1907
|
+
const select$a = function ExternalConnectivityConnectionTestResultRepresentationSelect() {
|
|
1908
1908
|
return {
|
|
1909
1909
|
kind: 'Fragment',
|
|
1910
|
-
version: VERSION$
|
|
1910
|
+
version: VERSION$5,
|
|
1911
1911
|
private: [],
|
|
1912
1912
|
selections: [
|
|
1913
1913
|
{
|
|
@@ -1933,7 +1933,7 @@ const select$7 = function ExternalConnectivityConnectionTestResultRepresentation
|
|
|
1933
1933
|
]
|
|
1934
1934
|
};
|
|
1935
1935
|
};
|
|
1936
|
-
function equals$
|
|
1936
|
+
function equals$5(existing, incoming) {
|
|
1937
1937
|
const existing_established = existing.established;
|
|
1938
1938
|
const incoming_established = incoming.established;
|
|
1939
1939
|
if (!(existing_established === incoming_established)) {
|
|
@@ -1961,41 +1961,41 @@ function equals$3(existing, incoming) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
return true;
|
|
1963
1963
|
}
|
|
1964
|
-
const ingest$
|
|
1964
|
+
const ingest$5 = function ExternalConnectivityConnectionTestResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1965
1965
|
if (process.env.NODE_ENV !== 'production') {
|
|
1966
|
-
const validateError = validate$
|
|
1966
|
+
const validateError = validate$7(input);
|
|
1967
1967
|
if (validateError !== null) {
|
|
1968
1968
|
throw validateError;
|
|
1969
1969
|
}
|
|
1970
1970
|
}
|
|
1971
|
-
const key = keyBuilderFromType(luvio, input);
|
|
1972
|
-
const ttlToUse = TTL$
|
|
1973
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1971
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
1972
|
+
const ttlToUse = TTL$5;
|
|
1973
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "external-connectivity", VERSION$5, RepresentationType$5, equals$5);
|
|
1974
1974
|
return createLink(key);
|
|
1975
1975
|
};
|
|
1976
|
-
function getTypeCacheKeys$
|
|
1976
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
1977
1977
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1978
|
-
const rootKey = keyBuilderFromType(luvio, input);
|
|
1978
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
1979
1979
|
rootKeySet.set(rootKey, {
|
|
1980
1980
|
namespace: keyPrefix,
|
|
1981
|
-
representationName: RepresentationType$
|
|
1981
|
+
representationName: RepresentationType$5,
|
|
1982
1982
|
mergeable: false
|
|
1983
1983
|
});
|
|
1984
1984
|
}
|
|
1985
1985
|
|
|
1986
|
-
function select$
|
|
1987
|
-
return select$
|
|
1986
|
+
function select$9(luvio, params) {
|
|
1987
|
+
return select$a();
|
|
1988
1988
|
}
|
|
1989
|
-
function getResponseCacheKeys$
|
|
1990
|
-
getTypeCacheKeys$
|
|
1989
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1990
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
1991
1991
|
}
|
|
1992
|
-
function ingestSuccess$
|
|
1992
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
1993
1993
|
const { body } = response;
|
|
1994
|
-
const key = keyBuilderFromType(luvio, body);
|
|
1995
|
-
luvio.storeIngest(key, ingest$
|
|
1994
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
1995
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
1996
1996
|
const snapshot = luvio.storeLookup({
|
|
1997
1997
|
recordId: key,
|
|
1998
|
-
node: select$
|
|
1998
|
+
node: select$9(),
|
|
1999
1999
|
variables: {},
|
|
2000
2000
|
});
|
|
2001
2001
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2006,10 +2006,10 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
2006
2006
|
deepFreeze(snapshot.data);
|
|
2007
2007
|
return snapshot;
|
|
2008
2008
|
}
|
|
2009
|
-
function createResourceRequest$
|
|
2009
|
+
function createResourceRequest$4(config) {
|
|
2010
2010
|
const headers = {};
|
|
2011
2011
|
return {
|
|
2012
|
-
baseUri: '/services/data/
|
|
2012
|
+
baseUri: '/services/data/v64.0',
|
|
2013
2013
|
basePath: '/external-connectivity/connections/' + config.urlParams.connectionDeveloperName + '/test',
|
|
2014
2014
|
method: 'post',
|
|
2015
2015
|
body: null,
|
|
@@ -2020,41 +2020,41 @@ function createResourceRequest$3(config) {
|
|
|
2020
2020
|
};
|
|
2021
2021
|
}
|
|
2022
2022
|
|
|
2023
|
-
const adapterName$
|
|
2023
|
+
const adapterName$4 = 'testConnection';
|
|
2024
2024
|
const testConnection_ConfigPropertyMetadata = [
|
|
2025
2025
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2026
2026
|
];
|
|
2027
|
-
const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2028
|
-
const createResourceParams$
|
|
2029
|
-
function typeCheckConfig$
|
|
2027
|
+
const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, testConnection_ConfigPropertyMetadata);
|
|
2028
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(testConnection_ConfigPropertyMetadata);
|
|
2029
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
2030
2030
|
const config = {};
|
|
2031
|
-
typeCheckConfig$
|
|
2031
|
+
typeCheckConfig$b(untrustedConfig, config, testConnection_ConfigPropertyMetadata);
|
|
2032
2032
|
return config;
|
|
2033
2033
|
}
|
|
2034
|
-
function validateAdapterConfig$
|
|
2034
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
2035
2035
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2036
2036
|
return null;
|
|
2037
2037
|
}
|
|
2038
2038
|
if (process.env.NODE_ENV !== 'production') {
|
|
2039
2039
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2040
2040
|
}
|
|
2041
|
-
const config = typeCheckConfig$
|
|
2041
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
2042
2042
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2043
2043
|
return null;
|
|
2044
2044
|
}
|
|
2045
2045
|
return config;
|
|
2046
2046
|
}
|
|
2047
|
-
function buildNetworkSnapshot$
|
|
2048
|
-
const resourceParams = createResourceParams$
|
|
2049
|
-
const request = createResourceRequest$
|
|
2047
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
2048
|
+
const resourceParams = createResourceParams$4(config);
|
|
2049
|
+
const request = createResourceRequest$4(resourceParams);
|
|
2050
2050
|
return luvio.dispatchResourceRequest(request, options)
|
|
2051
2051
|
.then((response) => {
|
|
2052
2052
|
return luvio.handleSuccessResponse(() => {
|
|
2053
|
-
const snapshot = ingestSuccess$
|
|
2053
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
2054
2054
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2055
2055
|
}, () => {
|
|
2056
2056
|
const cache = new StoreKeyMap();
|
|
2057
|
-
getResponseCacheKeys$
|
|
2057
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
2058
2058
|
return cache;
|
|
2059
2059
|
});
|
|
2060
2060
|
}, (response) => {
|
|
@@ -2064,18 +2064,18 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
2064
2064
|
}
|
|
2065
2065
|
const testConnectionAdapterFactory = (luvio) => {
|
|
2066
2066
|
return function testConnection(untrustedConfig) {
|
|
2067
|
-
const config = validateAdapterConfig$
|
|
2067
|
+
const config = validateAdapterConfig$4(untrustedConfig, testConnection_ConfigPropertyNames);
|
|
2068
2068
|
// Invalid or incomplete config
|
|
2069
2069
|
if (config === null) {
|
|
2070
2070
|
throw new Error('Invalid config for "testConnection"');
|
|
2071
2071
|
}
|
|
2072
|
-
return buildNetworkSnapshot$
|
|
2072
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
2073
2073
|
};
|
|
2074
2074
|
};
|
|
2075
2075
|
|
|
2076
|
-
const TTL$
|
|
2077
|
-
const VERSION$
|
|
2078
|
-
function validate$
|
|
2076
|
+
const TTL$4 = 500;
|
|
2077
|
+
const VERSION$4 = "e0e363c96027e368a8c2c44580411d53";
|
|
2078
|
+
function validate$6(obj, path = 'ExternalConnectivityConnectorListRepresentation') {
|
|
2079
2079
|
const v_error = (() => {
|
|
2080
2080
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2081
2081
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2088,7 +2088,7 @@ function validate$4(obj, path = 'ExternalConnectivityConnectorListRepresentation
|
|
|
2088
2088
|
for (let i = 0; i < obj_connectors.length; i++) {
|
|
2089
2089
|
const obj_connectors_item = obj_connectors[i];
|
|
2090
2090
|
const path_connectors_item = path_connectors + '[' + i + ']';
|
|
2091
|
-
const referencepath_connectors_itemValidationError = validate$
|
|
2091
|
+
const referencepath_connectors_itemValidationError = validate$i(obj_connectors_item, path_connectors_item);
|
|
2092
2092
|
if (referencepath_connectors_itemValidationError !== null) {
|
|
2093
2093
|
let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_connectors_item + '")\n';
|
|
2094
2094
|
message += referencepath_connectors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2098,62 +2098,62 @@ function validate$4(obj, path = 'ExternalConnectivityConnectorListRepresentation
|
|
|
2098
2098
|
})();
|
|
2099
2099
|
return v_error === undefined ? null : v_error;
|
|
2100
2100
|
}
|
|
2101
|
-
const RepresentationType$
|
|
2102
|
-
function normalize$
|
|
2101
|
+
const RepresentationType$4 = 'ExternalConnectivityConnectorListRepresentation';
|
|
2102
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
2103
2103
|
return input;
|
|
2104
2104
|
}
|
|
2105
|
-
const select$
|
|
2105
|
+
const select$8 = function ExternalConnectivityConnectorListRepresentationSelect() {
|
|
2106
2106
|
return {
|
|
2107
2107
|
kind: 'Fragment',
|
|
2108
|
-
version: VERSION$
|
|
2108
|
+
version: VERSION$4,
|
|
2109
2109
|
private: [],
|
|
2110
2110
|
opaque: true
|
|
2111
2111
|
};
|
|
2112
2112
|
};
|
|
2113
|
-
function equals$
|
|
2113
|
+
function equals$4(existing, incoming) {
|
|
2114
2114
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2115
2115
|
return false;
|
|
2116
2116
|
}
|
|
2117
2117
|
return true;
|
|
2118
2118
|
}
|
|
2119
|
-
const ingest$
|
|
2119
|
+
const ingest$4 = function ExternalConnectivityConnectorListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2120
2120
|
if (process.env.NODE_ENV !== 'production') {
|
|
2121
|
-
const validateError = validate$
|
|
2121
|
+
const validateError = validate$6(input);
|
|
2122
2122
|
if (validateError !== null) {
|
|
2123
2123
|
throw validateError;
|
|
2124
2124
|
}
|
|
2125
2125
|
}
|
|
2126
2126
|
const key = path.fullPath;
|
|
2127
|
-
const ttlToUse = TTL$
|
|
2128
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2127
|
+
const ttlToUse = TTL$4;
|
|
2128
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "external-connectivity", VERSION$4, RepresentationType$4, equals$4);
|
|
2129
2129
|
return createLink(key);
|
|
2130
2130
|
};
|
|
2131
|
-
function getTypeCacheKeys$
|
|
2131
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
2132
2132
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2133
2133
|
const rootKey = fullPathFactory();
|
|
2134
2134
|
rootKeySet.set(rootKey, {
|
|
2135
2135
|
namespace: keyPrefix,
|
|
2136
|
-
representationName: RepresentationType$
|
|
2136
|
+
representationName: RepresentationType$4,
|
|
2137
2137
|
mergeable: false
|
|
2138
2138
|
});
|
|
2139
2139
|
}
|
|
2140
2140
|
|
|
2141
|
-
function select$
|
|
2142
|
-
return select$
|
|
2141
|
+
function select$7(luvio, params) {
|
|
2142
|
+
return select$8();
|
|
2143
2143
|
}
|
|
2144
|
-
function keyBuilder$
|
|
2144
|
+
function keyBuilder$8(luvio, params) {
|
|
2145
2145
|
return keyPrefix + '::ExternalConnectivityConnectorListRepresentation:(' + ')';
|
|
2146
2146
|
}
|
|
2147
|
-
function getResponseCacheKeys$
|
|
2148
|
-
getTypeCacheKeys$
|
|
2147
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
2148
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$8());
|
|
2149
2149
|
}
|
|
2150
|
-
function ingestSuccess$
|
|
2150
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
2151
2151
|
const { body } = response;
|
|
2152
|
-
const key = keyBuilder$
|
|
2153
|
-
luvio.storeIngest(key, ingest$
|
|
2152
|
+
const key = keyBuilder$8();
|
|
2153
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
2154
2154
|
const snapshot = luvio.storeLookup({
|
|
2155
2155
|
recordId: key,
|
|
2156
|
-
node: select$
|
|
2156
|
+
node: select$7(),
|
|
2157
2157
|
variables: {},
|
|
2158
2158
|
}, snapshotRefresh);
|
|
2159
2159
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2164,22 +2164,22 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2164
2164
|
deepFreeze(snapshot.data);
|
|
2165
2165
|
return snapshot;
|
|
2166
2166
|
}
|
|
2167
|
-
function ingestError$
|
|
2168
|
-
const key = keyBuilder$
|
|
2167
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
2168
|
+
const key = keyBuilder$8();
|
|
2169
2169
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2170
2170
|
const storeMetadataParams = {
|
|
2171
|
-
ttl: TTL$
|
|
2171
|
+
ttl: TTL$4,
|
|
2172
2172
|
namespace: keyPrefix,
|
|
2173
|
-
version: VERSION$
|
|
2174
|
-
representationName: RepresentationType$
|
|
2173
|
+
version: VERSION$4,
|
|
2174
|
+
representationName: RepresentationType$4
|
|
2175
2175
|
};
|
|
2176
2176
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2177
2177
|
return errorSnapshot;
|
|
2178
2178
|
}
|
|
2179
|
-
function createResourceRequest$
|
|
2179
|
+
function createResourceRequest$3(config) {
|
|
2180
2180
|
const headers = {};
|
|
2181
2181
|
return {
|
|
2182
|
-
baseUri: '/services/data/
|
|
2182
|
+
baseUri: '/services/data/v64.0',
|
|
2183
2183
|
basePath: '/external-connectivity/connectors',
|
|
2184
2184
|
method: 'get',
|
|
2185
2185
|
body: null,
|
|
@@ -2190,90 +2190,90 @@ function createResourceRequest$2(config) {
|
|
|
2190
2190
|
};
|
|
2191
2191
|
}
|
|
2192
2192
|
|
|
2193
|
-
const adapterName$
|
|
2193
|
+
const adapterName$3 = 'getConnectors';
|
|
2194
2194
|
const getConnectors_ConfigPropertyMetadata = [];
|
|
2195
|
-
const getConnectors_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2196
|
-
const createResourceParams$
|
|
2197
|
-
function keyBuilder$
|
|
2198
|
-
createResourceParams$
|
|
2199
|
-
return keyBuilder$
|
|
2195
|
+
const getConnectors_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getConnectors_ConfigPropertyMetadata);
|
|
2196
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(getConnectors_ConfigPropertyMetadata);
|
|
2197
|
+
function keyBuilder$7(luvio, config) {
|
|
2198
|
+
createResourceParams$3(config);
|
|
2199
|
+
return keyBuilder$8();
|
|
2200
2200
|
}
|
|
2201
|
-
function typeCheckConfig$
|
|
2201
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
2202
2202
|
const config = {};
|
|
2203
2203
|
return config;
|
|
2204
2204
|
}
|
|
2205
|
-
function validateAdapterConfig$
|
|
2205
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
2206
2206
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2207
2207
|
return null;
|
|
2208
2208
|
}
|
|
2209
2209
|
if (process.env.NODE_ENV !== 'production') {
|
|
2210
2210
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2211
2211
|
}
|
|
2212
|
-
const config = typeCheckConfig$
|
|
2212
|
+
const config = typeCheckConfig$3();
|
|
2213
2213
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2214
2214
|
return null;
|
|
2215
2215
|
}
|
|
2216
2216
|
return config;
|
|
2217
2217
|
}
|
|
2218
|
-
function adapterFragment$
|
|
2219
|
-
createResourceParams$
|
|
2220
|
-
return select$
|
|
2218
|
+
function adapterFragment$3(luvio, config) {
|
|
2219
|
+
createResourceParams$3(config);
|
|
2220
|
+
return select$7();
|
|
2221
2221
|
}
|
|
2222
|
-
function onFetchResponseSuccess$
|
|
2223
|
-
const snapshot = ingestSuccess$
|
|
2222
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
2223
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
2224
2224
|
config,
|
|
2225
|
-
resolve: () => buildNetworkSnapshot$
|
|
2225
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
2226
2226
|
});
|
|
2227
2227
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2228
2228
|
}
|
|
2229
|
-
function onFetchResponseError$
|
|
2230
|
-
const snapshot = ingestError$
|
|
2229
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
2230
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
2231
2231
|
config,
|
|
2232
|
-
resolve: () => buildNetworkSnapshot$
|
|
2232
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
2233
2233
|
});
|
|
2234
2234
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2235
2235
|
}
|
|
2236
|
-
function buildNetworkSnapshot$
|
|
2237
|
-
const resourceParams = createResourceParams$
|
|
2238
|
-
const request = createResourceRequest$
|
|
2236
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
2237
|
+
const resourceParams = createResourceParams$3(config);
|
|
2238
|
+
const request = createResourceRequest$3();
|
|
2239
2239
|
return luvio.dispatchResourceRequest(request, options)
|
|
2240
2240
|
.then((response) => {
|
|
2241
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2241
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
2242
2242
|
const cache = new StoreKeyMap();
|
|
2243
|
-
getResponseCacheKeys$
|
|
2243
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
2244
2244
|
return cache;
|
|
2245
2245
|
});
|
|
2246
2246
|
}, (response) => {
|
|
2247
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2247
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
2248
2248
|
});
|
|
2249
2249
|
}
|
|
2250
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2251
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2250
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2251
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
2252
2252
|
}
|
|
2253
|
-
function buildCachedSnapshotCachePolicy$
|
|
2253
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2254
2254
|
const { luvio, config } = context;
|
|
2255
2255
|
const selector = {
|
|
2256
|
-
recordId: keyBuilder$
|
|
2257
|
-
node: adapterFragment$
|
|
2256
|
+
recordId: keyBuilder$7(luvio, config),
|
|
2257
|
+
node: adapterFragment$3(luvio, config),
|
|
2258
2258
|
variables: {},
|
|
2259
2259
|
};
|
|
2260
2260
|
const cacheSnapshot = storeLookup(selector, {
|
|
2261
2261
|
config,
|
|
2262
|
-
resolve: () => buildNetworkSnapshot$
|
|
2262
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
2263
2263
|
});
|
|
2264
2264
|
return cacheSnapshot;
|
|
2265
2265
|
}
|
|
2266
2266
|
const getConnectorsAdapterFactory = (luvio) => function externalConnectivity__getConnectors(untrustedConfig, requestContext) {
|
|
2267
|
-
const config = validateAdapterConfig$
|
|
2267
|
+
const config = validateAdapterConfig$3(untrustedConfig, getConnectors_ConfigPropertyNames);
|
|
2268
2268
|
// Invalid or incomplete config
|
|
2269
2269
|
if (config === null) {
|
|
2270
2270
|
return null;
|
|
2271
2271
|
}
|
|
2272
2272
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2273
|
-
buildCachedSnapshotCachePolicy$
|
|
2273
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
2274
2274
|
};
|
|
2275
2275
|
|
|
2276
|
-
function validate$
|
|
2276
|
+
function validate$5(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
|
|
2277
2277
|
const v_error = (() => {
|
|
2278
2278
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2279
2279
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2286,7 +2286,7 @@ function validate$3(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
|
|
|
2286
2286
|
for (let i = 0; i < obj_authenticationParameterDefinitions.length; i++) {
|
|
2287
2287
|
const obj_authenticationParameterDefinitions_item = obj_authenticationParameterDefinitions[i];
|
|
2288
2288
|
const path_authenticationParameterDefinitions_item = path_authenticationParameterDefinitions + '[' + i + ']';
|
|
2289
|
-
const referencepath_authenticationParameterDefinitions_itemValidationError = validate$
|
|
2289
|
+
const referencepath_authenticationParameterDefinitions_itemValidationError = validate$c(obj_authenticationParameterDefinitions_item, path_authenticationParameterDefinitions_item);
|
|
2290
2290
|
if (referencepath_authenticationParameterDefinitions_itemValidationError !== null) {
|
|
2291
2291
|
let message = 'Object doesn\'t match AuthenticationParameterDefinitionRepresentation (at "' + path_authenticationParameterDefinitions_item + '")\n';
|
|
2292
2292
|
message += referencepath_authenticationParameterDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2302,9 +2302,9 @@ function validate$3(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
|
|
|
2302
2302
|
return v_error === undefined ? null : v_error;
|
|
2303
2303
|
}
|
|
2304
2304
|
|
|
2305
|
-
const TTL$
|
|
2306
|
-
const VERSION$
|
|
2307
|
-
function validate$
|
|
2305
|
+
const TTL$3 = 500;
|
|
2306
|
+
const VERSION$3 = "f8847a262a47a2a68d458483f2a60a07";
|
|
2307
|
+
function validate$4(obj, path = 'ExternalConnectivityConnectorDetailsRepresentation') {
|
|
2308
2308
|
const v_error = (() => {
|
|
2309
2309
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2310
2310
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2332,7 +2332,7 @@ function validate$2(obj, path = 'ExternalConnectivityConnectorDetailsRepresentat
|
|
|
2332
2332
|
for (let i = 0; i < obj_iconMetadata.length; i++) {
|
|
2333
2333
|
const obj_iconMetadata_item = obj_iconMetadata[i];
|
|
2334
2334
|
const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
|
|
2335
|
-
const referencepath_iconMetadata_itemValidationError = validate$
|
|
2335
|
+
const referencepath_iconMetadata_itemValidationError = validate$j(obj_iconMetadata_item, path_iconMetadata_item);
|
|
2336
2336
|
if (referencepath_iconMetadata_itemValidationError !== null) {
|
|
2337
2337
|
let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
|
|
2338
2338
|
message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2367,7 +2367,7 @@ function validate$2(obj, path = 'ExternalConnectivityConnectorDetailsRepresentat
|
|
|
2367
2367
|
for (let i = 0; i < obj_supportedAuthenticationTypes.length; i++) {
|
|
2368
2368
|
const obj_supportedAuthenticationTypes_item = obj_supportedAuthenticationTypes[i];
|
|
2369
2369
|
const path_supportedAuthenticationTypes_item = path_supportedAuthenticationTypes + '[' + i + ']';
|
|
2370
|
-
const referencepath_supportedAuthenticationTypes_itemValidationError = validate$
|
|
2370
|
+
const referencepath_supportedAuthenticationTypes_itemValidationError = validate$5(obj_supportedAuthenticationTypes_item, path_supportedAuthenticationTypes_item);
|
|
2371
2371
|
if (referencepath_supportedAuthenticationTypes_itemValidationError !== null) {
|
|
2372
2372
|
let message = 'Object doesn\'t match AuthenticationTypeDefinitionRepresentation (at "' + path_supportedAuthenticationTypes_item + '")\n';
|
|
2373
2373
|
message += referencepath_supportedAuthenticationTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2387,62 +2387,62 @@ function validate$2(obj, path = 'ExternalConnectivityConnectorDetailsRepresentat
|
|
|
2387
2387
|
})();
|
|
2388
2388
|
return v_error === undefined ? null : v_error;
|
|
2389
2389
|
}
|
|
2390
|
-
const RepresentationType$
|
|
2391
|
-
function normalize$
|
|
2390
|
+
const RepresentationType$3 = 'ExternalConnectivityConnectorDetailsRepresentation';
|
|
2391
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
2392
2392
|
return input;
|
|
2393
2393
|
}
|
|
2394
|
-
const select$
|
|
2394
|
+
const select$6 = function ExternalConnectivityConnectorDetailsRepresentationSelect() {
|
|
2395
2395
|
return {
|
|
2396
2396
|
kind: 'Fragment',
|
|
2397
|
-
version: VERSION$
|
|
2397
|
+
version: VERSION$3,
|
|
2398
2398
|
private: [],
|
|
2399
2399
|
opaque: true
|
|
2400
2400
|
};
|
|
2401
2401
|
};
|
|
2402
|
-
function equals$
|
|
2402
|
+
function equals$3(existing, incoming) {
|
|
2403
2403
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2404
2404
|
return false;
|
|
2405
2405
|
}
|
|
2406
2406
|
return true;
|
|
2407
2407
|
}
|
|
2408
|
-
const ingest$
|
|
2408
|
+
const ingest$3 = function ExternalConnectivityConnectorDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2409
2409
|
if (process.env.NODE_ENV !== 'production') {
|
|
2410
|
-
const validateError = validate$
|
|
2410
|
+
const validateError = validate$4(input);
|
|
2411
2411
|
if (validateError !== null) {
|
|
2412
2412
|
throw validateError;
|
|
2413
2413
|
}
|
|
2414
2414
|
}
|
|
2415
2415
|
const key = path.fullPath;
|
|
2416
|
-
const ttlToUse = TTL$
|
|
2417
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2416
|
+
const ttlToUse = TTL$3;
|
|
2417
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "external-connectivity", VERSION$3, RepresentationType$3, equals$3);
|
|
2418
2418
|
return createLink(key);
|
|
2419
2419
|
};
|
|
2420
|
-
function getTypeCacheKeys$
|
|
2420
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
2421
2421
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2422
2422
|
const rootKey = fullPathFactory();
|
|
2423
2423
|
rootKeySet.set(rootKey, {
|
|
2424
2424
|
namespace: keyPrefix,
|
|
2425
|
-
representationName: RepresentationType$
|
|
2425
|
+
representationName: RepresentationType$3,
|
|
2426
2426
|
mergeable: false
|
|
2427
2427
|
});
|
|
2428
2428
|
}
|
|
2429
2429
|
|
|
2430
|
-
function select$
|
|
2431
|
-
return select$
|
|
2430
|
+
function select$5(luvio, params) {
|
|
2431
|
+
return select$6();
|
|
2432
2432
|
}
|
|
2433
|
-
function keyBuilder$
|
|
2433
|
+
function keyBuilder$6(luvio, params) {
|
|
2434
2434
|
return keyPrefix + '::ExternalConnectivityConnectorDetailsRepresentation:(' + 'connectorDeveloperName:' + params.urlParams.connectorDeveloperName + ')';
|
|
2435
2435
|
}
|
|
2436
|
-
function getResponseCacheKeys$
|
|
2437
|
-
getTypeCacheKeys$
|
|
2436
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
2437
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
2438
2438
|
}
|
|
2439
|
-
function ingestSuccess$
|
|
2439
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
2440
2440
|
const { body } = response;
|
|
2441
|
-
const key = keyBuilder$
|
|
2442
|
-
luvio.storeIngest(key, ingest$
|
|
2441
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
2442
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
2443
2443
|
const snapshot = luvio.storeLookup({
|
|
2444
2444
|
recordId: key,
|
|
2445
|
-
node: select$
|
|
2445
|
+
node: select$5(),
|
|
2446
2446
|
variables: {},
|
|
2447
2447
|
}, snapshotRefresh);
|
|
2448
2448
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2453,22 +2453,22 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2453
2453
|
deepFreeze(snapshot.data);
|
|
2454
2454
|
return snapshot;
|
|
2455
2455
|
}
|
|
2456
|
-
function ingestError$
|
|
2457
|
-
const key = keyBuilder$
|
|
2456
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
2457
|
+
const key = keyBuilder$6(luvio, params);
|
|
2458
2458
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2459
2459
|
const storeMetadataParams = {
|
|
2460
|
-
ttl: TTL$
|
|
2460
|
+
ttl: TTL$3,
|
|
2461
2461
|
namespace: keyPrefix,
|
|
2462
|
-
version: VERSION$
|
|
2463
|
-
representationName: RepresentationType$
|
|
2462
|
+
version: VERSION$3,
|
|
2463
|
+
representationName: RepresentationType$3
|
|
2464
2464
|
};
|
|
2465
2465
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2466
2466
|
return errorSnapshot;
|
|
2467
2467
|
}
|
|
2468
|
-
function createResourceRequest$
|
|
2468
|
+
function createResourceRequest$2(config) {
|
|
2469
2469
|
const headers = {};
|
|
2470
2470
|
return {
|
|
2471
|
-
baseUri: '/services/data/
|
|
2471
|
+
baseUri: '/services/data/v64.0',
|
|
2472
2472
|
basePath: '/external-connectivity/connectors/' + config.urlParams.connectorDeveloperName + '',
|
|
2473
2473
|
method: 'get',
|
|
2474
2474
|
body: null,
|
|
@@ -2479,93 +2479,93 @@ function createResourceRequest$1(config) {
|
|
|
2479
2479
|
};
|
|
2480
2480
|
}
|
|
2481
2481
|
|
|
2482
|
-
const adapterName$
|
|
2482
|
+
const adapterName$2 = 'getConnectorDetails';
|
|
2483
2483
|
const getConnectorDetails_ConfigPropertyMetadata = [
|
|
2484
2484
|
generateParamConfigMetadata('connectorDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2485
2485
|
];
|
|
2486
|
-
const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2487
|
-
const createResourceParams$
|
|
2488
|
-
function keyBuilder$
|
|
2489
|
-
const resourceParams = createResourceParams$
|
|
2490
|
-
return keyBuilder$
|
|
2486
|
+
const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getConnectorDetails_ConfigPropertyMetadata);
|
|
2487
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getConnectorDetails_ConfigPropertyMetadata);
|
|
2488
|
+
function keyBuilder$5(luvio, config) {
|
|
2489
|
+
const resourceParams = createResourceParams$2(config);
|
|
2490
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
2491
2491
|
}
|
|
2492
|
-
function typeCheckConfig$
|
|
2492
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
2493
2493
|
const config = {};
|
|
2494
|
-
typeCheckConfig$
|
|
2494
|
+
typeCheckConfig$b(untrustedConfig, config, getConnectorDetails_ConfigPropertyMetadata);
|
|
2495
2495
|
return config;
|
|
2496
2496
|
}
|
|
2497
|
-
function validateAdapterConfig$
|
|
2497
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
2498
2498
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2499
2499
|
return null;
|
|
2500
2500
|
}
|
|
2501
2501
|
if (process.env.NODE_ENV !== 'production') {
|
|
2502
2502
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2503
2503
|
}
|
|
2504
|
-
const config = typeCheckConfig$
|
|
2504
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
2505
2505
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2506
2506
|
return null;
|
|
2507
2507
|
}
|
|
2508
2508
|
return config;
|
|
2509
2509
|
}
|
|
2510
|
-
function adapterFragment$
|
|
2511
|
-
createResourceParams$
|
|
2512
|
-
return select$
|
|
2510
|
+
function adapterFragment$2(luvio, config) {
|
|
2511
|
+
createResourceParams$2(config);
|
|
2512
|
+
return select$5();
|
|
2513
2513
|
}
|
|
2514
|
-
function onFetchResponseSuccess$
|
|
2515
|
-
const snapshot = ingestSuccess$
|
|
2514
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
2515
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
2516
2516
|
config,
|
|
2517
|
-
resolve: () => buildNetworkSnapshot$
|
|
2517
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
2518
2518
|
});
|
|
2519
2519
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2520
2520
|
}
|
|
2521
|
-
function onFetchResponseError$
|
|
2522
|
-
const snapshot = ingestError$
|
|
2521
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
2522
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
2523
2523
|
config,
|
|
2524
|
-
resolve: () => buildNetworkSnapshot$
|
|
2524
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
2525
2525
|
});
|
|
2526
2526
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2527
2527
|
}
|
|
2528
|
-
function buildNetworkSnapshot$
|
|
2529
|
-
const resourceParams = createResourceParams$
|
|
2530
|
-
const request = createResourceRequest$
|
|
2528
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
2529
|
+
const resourceParams = createResourceParams$2(config);
|
|
2530
|
+
const request = createResourceRequest$2(resourceParams);
|
|
2531
2531
|
return luvio.dispatchResourceRequest(request, options)
|
|
2532
2532
|
.then((response) => {
|
|
2533
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2533
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
2534
2534
|
const cache = new StoreKeyMap();
|
|
2535
|
-
getResponseCacheKeys$
|
|
2535
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
2536
2536
|
return cache;
|
|
2537
2537
|
});
|
|
2538
2538
|
}, (response) => {
|
|
2539
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2539
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
2540
2540
|
});
|
|
2541
2541
|
}
|
|
2542
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2543
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2542
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
2543
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
2544
2544
|
}
|
|
2545
|
-
function buildCachedSnapshotCachePolicy$
|
|
2545
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2546
2546
|
const { luvio, config } = context;
|
|
2547
2547
|
const selector = {
|
|
2548
|
-
recordId: keyBuilder$
|
|
2549
|
-
node: adapterFragment$
|
|
2548
|
+
recordId: keyBuilder$5(luvio, config),
|
|
2549
|
+
node: adapterFragment$2(luvio, config),
|
|
2550
2550
|
variables: {},
|
|
2551
2551
|
};
|
|
2552
2552
|
const cacheSnapshot = storeLookup(selector, {
|
|
2553
2553
|
config,
|
|
2554
|
-
resolve: () => buildNetworkSnapshot$
|
|
2554
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
2555
2555
|
});
|
|
2556
2556
|
return cacheSnapshot;
|
|
2557
2557
|
}
|
|
2558
2558
|
const getConnectorDetailsAdapterFactory = (luvio) => function externalConnectivity__getConnectorDetails(untrustedConfig, requestContext) {
|
|
2559
|
-
const config = validateAdapterConfig$
|
|
2559
|
+
const config = validateAdapterConfig$2(untrustedConfig, getConnectorDetails_ConfigPropertyNames);
|
|
2560
2560
|
// Invalid or incomplete config
|
|
2561
2561
|
if (config === null) {
|
|
2562
2562
|
return null;
|
|
2563
2563
|
}
|
|
2564
2564
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2565
|
-
buildCachedSnapshotCachePolicy$
|
|
2565
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
2566
2566
|
};
|
|
2567
2567
|
|
|
2568
|
-
function validate$
|
|
2568
|
+
function validate$3(obj, path = 'IcStandardExternalIdentityProviderRepresentation') {
|
|
2569
2569
|
const v_error = (() => {
|
|
2570
2570
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2571
2571
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2594,9 +2594,9 @@ function validate$1(obj, path = 'IcStandardExternalIdentityProviderRepresentatio
|
|
|
2594
2594
|
return v_error === undefined ? null : v_error;
|
|
2595
2595
|
}
|
|
2596
2596
|
|
|
2597
|
-
const TTL = 500;
|
|
2598
|
-
const VERSION = "72f95c35be550092433b2acd2f914899";
|
|
2599
|
-
function validate(obj, path = 'IcStandardExternalIdentityProviderListRepresentation') {
|
|
2597
|
+
const TTL$2 = 500;
|
|
2598
|
+
const VERSION$2 = "72f95c35be550092433b2acd2f914899";
|
|
2599
|
+
function validate$2(obj, path = 'IcStandardExternalIdentityProviderListRepresentation') {
|
|
2600
2600
|
const v_error = (() => {
|
|
2601
2601
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2602
2602
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2609,7 +2609,7 @@ function validate(obj, path = 'IcStandardExternalIdentityProviderListRepresentat
|
|
|
2609
2609
|
for (let i = 0; i < obj_identityProviderRepresentationList.length; i++) {
|
|
2610
2610
|
const obj_identityProviderRepresentationList_item = obj_identityProviderRepresentationList[i];
|
|
2611
2611
|
const path_identityProviderRepresentationList_item = path_identityProviderRepresentationList + '[' + i + ']';
|
|
2612
|
-
const referencepath_identityProviderRepresentationList_itemValidationError = validate$
|
|
2612
|
+
const referencepath_identityProviderRepresentationList_itemValidationError = validate$3(obj_identityProviderRepresentationList_item, path_identityProviderRepresentationList_item);
|
|
2613
2613
|
if (referencepath_identityProviderRepresentationList_itemValidationError !== null) {
|
|
2614
2614
|
let message = 'Object doesn\'t match IcStandardExternalIdentityProviderRepresentation (at "' + path_identityProviderRepresentationList_item + '")\n';
|
|
2615
2615
|
message += referencepath_identityProviderRepresentationList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2619,34 +2619,532 @@ function validate(obj, path = 'IcStandardExternalIdentityProviderListRepresentat
|
|
|
2619
2619
|
})();
|
|
2620
2620
|
return v_error === undefined ? null : v_error;
|
|
2621
2621
|
}
|
|
2622
|
-
const RepresentationType = 'IcStandardExternalIdentityProviderListRepresentation';
|
|
2623
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
2622
|
+
const RepresentationType$2 = 'IcStandardExternalIdentityProviderListRepresentation';
|
|
2623
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
2624
2624
|
return input;
|
|
2625
2625
|
}
|
|
2626
|
-
const select$
|
|
2626
|
+
const select$4 = function IcStandardExternalIdentityProviderListRepresentationSelect() {
|
|
2627
2627
|
return {
|
|
2628
2628
|
kind: 'Fragment',
|
|
2629
|
-
version: VERSION,
|
|
2629
|
+
version: VERSION$2,
|
|
2630
2630
|
private: [],
|
|
2631
2631
|
opaque: true
|
|
2632
2632
|
};
|
|
2633
2633
|
};
|
|
2634
|
-
function equals(existing, incoming) {
|
|
2634
|
+
function equals$2(existing, incoming) {
|
|
2635
2635
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2636
2636
|
return false;
|
|
2637
2637
|
}
|
|
2638
2638
|
return true;
|
|
2639
2639
|
}
|
|
2640
|
-
const ingest = function IcStandardExternalIdentityProviderListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2640
|
+
const ingest$2 = function IcStandardExternalIdentityProviderListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2641
2641
|
if (process.env.NODE_ENV !== 'production') {
|
|
2642
|
-
const validateError = validate(input);
|
|
2642
|
+
const validateError = validate$2(input);
|
|
2643
2643
|
if (validateError !== null) {
|
|
2644
2644
|
throw validateError;
|
|
2645
2645
|
}
|
|
2646
2646
|
}
|
|
2647
2647
|
const key = path.fullPath;
|
|
2648
|
-
const ttlToUse = TTL;
|
|
2649
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "external-connectivity", VERSION, RepresentationType, equals);
|
|
2648
|
+
const ttlToUse = TTL$2;
|
|
2649
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "external-connectivity", VERSION$2, RepresentationType$2, equals$2);
|
|
2650
|
+
return createLink(key);
|
|
2651
|
+
};
|
|
2652
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
2653
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2654
|
+
const rootKey = fullPathFactory();
|
|
2655
|
+
rootKeySet.set(rootKey, {
|
|
2656
|
+
namespace: keyPrefix,
|
|
2657
|
+
representationName: RepresentationType$2,
|
|
2658
|
+
mergeable: false
|
|
2659
|
+
});
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
function select$3(luvio, params) {
|
|
2663
|
+
return select$4();
|
|
2664
|
+
}
|
|
2665
|
+
function keyBuilder$4(luvio, params) {
|
|
2666
|
+
return keyPrefix + '::IcStandardExternalIdentityProviderListRepresentation:(' + 'version:' + params.queryParams.version + ',' + 'connectorType:' + params.urlParams.connectorType + ')';
|
|
2667
|
+
}
|
|
2668
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
2669
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
|
|
2670
|
+
}
|
|
2671
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
2672
|
+
const { body } = response;
|
|
2673
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
2674
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
2675
|
+
const snapshot = luvio.storeLookup({
|
|
2676
|
+
recordId: key,
|
|
2677
|
+
node: select$3(),
|
|
2678
|
+
variables: {},
|
|
2679
|
+
}, snapshotRefresh);
|
|
2680
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2681
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2682
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
deepFreeze(snapshot.data);
|
|
2686
|
+
return snapshot;
|
|
2687
|
+
}
|
|
2688
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
2689
|
+
const key = keyBuilder$4(luvio, params);
|
|
2690
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2691
|
+
const storeMetadataParams = {
|
|
2692
|
+
ttl: TTL$2,
|
|
2693
|
+
namespace: keyPrefix,
|
|
2694
|
+
version: VERSION$2,
|
|
2695
|
+
representationName: RepresentationType$2
|
|
2696
|
+
};
|
|
2697
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2698
|
+
return errorSnapshot;
|
|
2699
|
+
}
|
|
2700
|
+
function createResourceRequest$1(config) {
|
|
2701
|
+
const headers = {};
|
|
2702
|
+
return {
|
|
2703
|
+
baseUri: '/services/data/v64.0',
|
|
2704
|
+
basePath: '/external-connectivity/' + config.urlParams.connectorType + '/spa-mapping',
|
|
2705
|
+
method: 'get',
|
|
2706
|
+
body: null,
|
|
2707
|
+
urlParams: config.urlParams,
|
|
2708
|
+
queryParams: config.queryParams,
|
|
2709
|
+
headers,
|
|
2710
|
+
priority: 'normal',
|
|
2711
|
+
};
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
const adapterName$1 = 'getExternalIdentityProviders';
|
|
2715
|
+
const getExternalIdentityProviders_ConfigPropertyMetadata = [
|
|
2716
|
+
generateParamConfigMetadata('connectorType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2717
|
+
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2718
|
+
];
|
|
2719
|
+
const getExternalIdentityProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
2720
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
2721
|
+
function keyBuilder$3(luvio, config) {
|
|
2722
|
+
const resourceParams = createResourceParams$1(config);
|
|
2723
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
2724
|
+
}
|
|
2725
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
2726
|
+
const config = {};
|
|
2727
|
+
typeCheckConfig$b(untrustedConfig, config, getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
2728
|
+
return config;
|
|
2729
|
+
}
|
|
2730
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
2731
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2732
|
+
return null;
|
|
2733
|
+
}
|
|
2734
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2735
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2736
|
+
}
|
|
2737
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
2738
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2739
|
+
return null;
|
|
2740
|
+
}
|
|
2741
|
+
return config;
|
|
2742
|
+
}
|
|
2743
|
+
function adapterFragment$1(luvio, config) {
|
|
2744
|
+
createResourceParams$1(config);
|
|
2745
|
+
return select$3();
|
|
2746
|
+
}
|
|
2747
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
2748
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
2749
|
+
config,
|
|
2750
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
2751
|
+
});
|
|
2752
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2753
|
+
}
|
|
2754
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
2755
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
2756
|
+
config,
|
|
2757
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
2758
|
+
});
|
|
2759
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2760
|
+
}
|
|
2761
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
2762
|
+
const resourceParams = createResourceParams$1(config);
|
|
2763
|
+
const request = createResourceRequest$1(resourceParams);
|
|
2764
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2765
|
+
.then((response) => {
|
|
2766
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
2767
|
+
const cache = new StoreKeyMap();
|
|
2768
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
2769
|
+
return cache;
|
|
2770
|
+
});
|
|
2771
|
+
}, (response) => {
|
|
2772
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
2773
|
+
});
|
|
2774
|
+
}
|
|
2775
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2776
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
2777
|
+
}
|
|
2778
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2779
|
+
const { luvio, config } = context;
|
|
2780
|
+
const selector = {
|
|
2781
|
+
recordId: keyBuilder$3(luvio, config),
|
|
2782
|
+
node: adapterFragment$1(luvio, config),
|
|
2783
|
+
variables: {},
|
|
2784
|
+
};
|
|
2785
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
2786
|
+
config,
|
|
2787
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
2788
|
+
});
|
|
2789
|
+
return cacheSnapshot;
|
|
2790
|
+
}
|
|
2791
|
+
const getExternalIdentityProvidersAdapterFactory = (luvio) => function externalConnectivity__getExternalIdentityProviders(untrustedConfig, requestContext) {
|
|
2792
|
+
const config = validateAdapterConfig$1(untrustedConfig, getExternalIdentityProviders_ConfigPropertyNames);
|
|
2793
|
+
// Invalid or incomplete config
|
|
2794
|
+
if (config === null) {
|
|
2795
|
+
return null;
|
|
2796
|
+
}
|
|
2797
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2798
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
2799
|
+
};
|
|
2800
|
+
|
|
2801
|
+
const TTL$1 = 500;
|
|
2802
|
+
const VERSION$1 = "0b4a79a624550132fa06fd5506437efb";
|
|
2803
|
+
function validate$1(obj, path = 'ExternalConnectivityInvocableActionInfoRepresentation') {
|
|
2804
|
+
const v_error = (() => {
|
|
2805
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2806
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2807
|
+
}
|
|
2808
|
+
const obj_category = obj.category;
|
|
2809
|
+
const path_category = path + '.category';
|
|
2810
|
+
let obj_category_union0 = null;
|
|
2811
|
+
const obj_category_union0_error = (() => {
|
|
2812
|
+
if (typeof obj_category !== 'string') {
|
|
2813
|
+
return new TypeError('Expected "string" but received "' + typeof obj_category + '" (at "' + path_category + '")');
|
|
2814
|
+
}
|
|
2815
|
+
})();
|
|
2816
|
+
if (obj_category_union0_error != null) {
|
|
2817
|
+
obj_category_union0 = obj_category_union0_error.message;
|
|
2818
|
+
}
|
|
2819
|
+
let obj_category_union1 = null;
|
|
2820
|
+
const obj_category_union1_error = (() => {
|
|
2821
|
+
if (obj_category !== null) {
|
|
2822
|
+
return new TypeError('Expected "null" but received "' + typeof obj_category + '" (at "' + path_category + '")');
|
|
2823
|
+
}
|
|
2824
|
+
})();
|
|
2825
|
+
if (obj_category_union1_error != null) {
|
|
2826
|
+
obj_category_union1 = obj_category_union1_error.message;
|
|
2827
|
+
}
|
|
2828
|
+
if (obj_category_union0 && obj_category_union1) {
|
|
2829
|
+
let message = 'Object doesn\'t match union (at "' + path_category + '")';
|
|
2830
|
+
message += '\n' + obj_category_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2831
|
+
message += '\n' + obj_category_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2832
|
+
return new TypeError(message);
|
|
2833
|
+
}
|
|
2834
|
+
const obj_description = obj.description;
|
|
2835
|
+
const path_description = path + '.description';
|
|
2836
|
+
let obj_description_union0 = null;
|
|
2837
|
+
const obj_description_union0_error = (() => {
|
|
2838
|
+
if (typeof obj_description !== 'string') {
|
|
2839
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2840
|
+
}
|
|
2841
|
+
})();
|
|
2842
|
+
if (obj_description_union0_error != null) {
|
|
2843
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
2844
|
+
}
|
|
2845
|
+
let obj_description_union1 = null;
|
|
2846
|
+
const obj_description_union1_error = (() => {
|
|
2847
|
+
if (obj_description !== null) {
|
|
2848
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2849
|
+
}
|
|
2850
|
+
})();
|
|
2851
|
+
if (obj_description_union1_error != null) {
|
|
2852
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
2853
|
+
}
|
|
2854
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
2855
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
2856
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2857
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2858
|
+
return new TypeError(message);
|
|
2859
|
+
}
|
|
2860
|
+
const obj_durableId = obj.durableId;
|
|
2861
|
+
const path_durableId = path + '.durableId';
|
|
2862
|
+
let obj_durableId_union0 = null;
|
|
2863
|
+
const obj_durableId_union0_error = (() => {
|
|
2864
|
+
if (typeof obj_durableId !== 'string') {
|
|
2865
|
+
return new TypeError('Expected "string" but received "' + typeof obj_durableId + '" (at "' + path_durableId + '")');
|
|
2866
|
+
}
|
|
2867
|
+
})();
|
|
2868
|
+
if (obj_durableId_union0_error != null) {
|
|
2869
|
+
obj_durableId_union0 = obj_durableId_union0_error.message;
|
|
2870
|
+
}
|
|
2871
|
+
let obj_durableId_union1 = null;
|
|
2872
|
+
const obj_durableId_union1_error = (() => {
|
|
2873
|
+
if (obj_durableId !== null) {
|
|
2874
|
+
return new TypeError('Expected "null" but received "' + typeof obj_durableId + '" (at "' + path_durableId + '")');
|
|
2875
|
+
}
|
|
2876
|
+
})();
|
|
2877
|
+
if (obj_durableId_union1_error != null) {
|
|
2878
|
+
obj_durableId_union1 = obj_durableId_union1_error.message;
|
|
2879
|
+
}
|
|
2880
|
+
if (obj_durableId_union0 && obj_durableId_union1) {
|
|
2881
|
+
let message = 'Object doesn\'t match union (at "' + path_durableId + '")';
|
|
2882
|
+
message += '\n' + obj_durableId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2883
|
+
message += '\n' + obj_durableId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2884
|
+
return new TypeError(message);
|
|
2885
|
+
}
|
|
2886
|
+
const obj_label = obj.label;
|
|
2887
|
+
const path_label = path + '.label';
|
|
2888
|
+
let obj_label_union0 = null;
|
|
2889
|
+
const obj_label_union0_error = (() => {
|
|
2890
|
+
if (typeof obj_label !== 'string') {
|
|
2891
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2892
|
+
}
|
|
2893
|
+
})();
|
|
2894
|
+
if (obj_label_union0_error != null) {
|
|
2895
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
2896
|
+
}
|
|
2897
|
+
let obj_label_union1 = null;
|
|
2898
|
+
const obj_label_union1_error = (() => {
|
|
2899
|
+
if (obj_label !== null) {
|
|
2900
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2901
|
+
}
|
|
2902
|
+
})();
|
|
2903
|
+
if (obj_label_union1_error != null) {
|
|
2904
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
2905
|
+
}
|
|
2906
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
2907
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
2908
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2909
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2910
|
+
return new TypeError(message);
|
|
2911
|
+
}
|
|
2912
|
+
const obj_name = obj.name;
|
|
2913
|
+
const path_name = path + '.name';
|
|
2914
|
+
let obj_name_union0 = null;
|
|
2915
|
+
const obj_name_union0_error = (() => {
|
|
2916
|
+
if (typeof obj_name !== 'string') {
|
|
2917
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2918
|
+
}
|
|
2919
|
+
})();
|
|
2920
|
+
if (obj_name_union0_error != null) {
|
|
2921
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
2922
|
+
}
|
|
2923
|
+
let obj_name_union1 = null;
|
|
2924
|
+
const obj_name_union1_error = (() => {
|
|
2925
|
+
if (obj_name !== null) {
|
|
2926
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2927
|
+
}
|
|
2928
|
+
})();
|
|
2929
|
+
if (obj_name_union1_error != null) {
|
|
2930
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
2931
|
+
}
|
|
2932
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
2933
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
2934
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2935
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2936
|
+
return new TypeError(message);
|
|
2937
|
+
}
|
|
2938
|
+
const obj_type = obj.type;
|
|
2939
|
+
const path_type = path + '.type';
|
|
2940
|
+
let obj_type_union0 = null;
|
|
2941
|
+
const obj_type_union0_error = (() => {
|
|
2942
|
+
if (typeof obj_type !== 'string') {
|
|
2943
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
2944
|
+
}
|
|
2945
|
+
})();
|
|
2946
|
+
if (obj_type_union0_error != null) {
|
|
2947
|
+
obj_type_union0 = obj_type_union0_error.message;
|
|
2948
|
+
}
|
|
2949
|
+
let obj_type_union1 = null;
|
|
2950
|
+
const obj_type_union1_error = (() => {
|
|
2951
|
+
if (obj_type !== null) {
|
|
2952
|
+
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
2953
|
+
}
|
|
2954
|
+
})();
|
|
2955
|
+
if (obj_type_union1_error != null) {
|
|
2956
|
+
obj_type_union1 = obj_type_union1_error.message;
|
|
2957
|
+
}
|
|
2958
|
+
if (obj_type_union0 && obj_type_union1) {
|
|
2959
|
+
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
2960
|
+
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2961
|
+
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2962
|
+
return new TypeError(message);
|
|
2963
|
+
}
|
|
2964
|
+
})();
|
|
2965
|
+
return v_error === undefined ? null : v_error;
|
|
2966
|
+
}
|
|
2967
|
+
const RepresentationType$1 = 'ExternalConnectivityInvocableActionInfoRepresentation';
|
|
2968
|
+
function keyBuilder$2(luvio, config) {
|
|
2969
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + (config.name === null ? '' : config.name);
|
|
2970
|
+
}
|
|
2971
|
+
function keyBuilderFromType(luvio, object) {
|
|
2972
|
+
const keyParams = {
|
|
2973
|
+
name: object.name
|
|
2974
|
+
};
|
|
2975
|
+
return keyBuilder$2(luvio, keyParams);
|
|
2976
|
+
}
|
|
2977
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
2978
|
+
return input;
|
|
2979
|
+
}
|
|
2980
|
+
const select$2 = function ExternalConnectivityInvocableActionInfoRepresentationSelect() {
|
|
2981
|
+
return {
|
|
2982
|
+
kind: 'Fragment',
|
|
2983
|
+
version: VERSION$1,
|
|
2984
|
+
private: [],
|
|
2985
|
+
selections: [
|
|
2986
|
+
{
|
|
2987
|
+
name: 'category',
|
|
2988
|
+
kind: 'Scalar'
|
|
2989
|
+
},
|
|
2990
|
+
{
|
|
2991
|
+
name: 'description',
|
|
2992
|
+
kind: 'Scalar'
|
|
2993
|
+
},
|
|
2994
|
+
{
|
|
2995
|
+
name: 'durableId',
|
|
2996
|
+
kind: 'Scalar'
|
|
2997
|
+
},
|
|
2998
|
+
{
|
|
2999
|
+
name: 'label',
|
|
3000
|
+
kind: 'Scalar'
|
|
3001
|
+
},
|
|
3002
|
+
{
|
|
3003
|
+
name: 'name',
|
|
3004
|
+
kind: 'Scalar'
|
|
3005
|
+
},
|
|
3006
|
+
{
|
|
3007
|
+
name: 'type',
|
|
3008
|
+
kind: 'Scalar'
|
|
3009
|
+
}
|
|
3010
|
+
]
|
|
3011
|
+
};
|
|
3012
|
+
};
|
|
3013
|
+
function equals$1(existing, incoming) {
|
|
3014
|
+
const existing_category = existing.category;
|
|
3015
|
+
const incoming_category = incoming.category;
|
|
3016
|
+
if (!(existing_category === incoming_category)) {
|
|
3017
|
+
return false;
|
|
3018
|
+
}
|
|
3019
|
+
const existing_description = existing.description;
|
|
3020
|
+
const incoming_description = incoming.description;
|
|
3021
|
+
if (!(existing_description === incoming_description)) {
|
|
3022
|
+
return false;
|
|
3023
|
+
}
|
|
3024
|
+
const existing_durableId = existing.durableId;
|
|
3025
|
+
const incoming_durableId = incoming.durableId;
|
|
3026
|
+
if (!(existing_durableId === incoming_durableId)) {
|
|
3027
|
+
return false;
|
|
3028
|
+
}
|
|
3029
|
+
const existing_label = existing.label;
|
|
3030
|
+
const incoming_label = incoming.label;
|
|
3031
|
+
if (!(existing_label === incoming_label)) {
|
|
3032
|
+
return false;
|
|
3033
|
+
}
|
|
3034
|
+
const existing_name = existing.name;
|
|
3035
|
+
const incoming_name = incoming.name;
|
|
3036
|
+
if (!(existing_name === incoming_name)) {
|
|
3037
|
+
return false;
|
|
3038
|
+
}
|
|
3039
|
+
const existing_type = existing.type;
|
|
3040
|
+
const incoming_type = incoming.type;
|
|
3041
|
+
if (!(existing_type === incoming_type)) {
|
|
3042
|
+
return false;
|
|
3043
|
+
}
|
|
3044
|
+
return true;
|
|
3045
|
+
}
|
|
3046
|
+
const ingest$1 = function ExternalConnectivityInvocableActionInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3047
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3048
|
+
const validateError = validate$1(input);
|
|
3049
|
+
if (validateError !== null) {
|
|
3050
|
+
throw validateError;
|
|
3051
|
+
}
|
|
3052
|
+
}
|
|
3053
|
+
const key = keyBuilderFromType(luvio, input);
|
|
3054
|
+
const ttlToUse = TTL$1;
|
|
3055
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "external-connectivity", VERSION$1, RepresentationType$1, equals$1);
|
|
3056
|
+
return createLink(key);
|
|
3057
|
+
};
|
|
3058
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
3059
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3060
|
+
const rootKey = keyBuilderFromType(luvio, input);
|
|
3061
|
+
rootKeySet.set(rootKey, {
|
|
3062
|
+
namespace: keyPrefix,
|
|
3063
|
+
representationName: RepresentationType$1,
|
|
3064
|
+
mergeable: false
|
|
3065
|
+
});
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
const TTL = 500;
|
|
3069
|
+
const VERSION = "4dfa2e248d8028a0432ca833b2ddb964";
|
|
3070
|
+
function validate(obj, path = 'ExternalConnectivityInvocableActionListRepresentation') {
|
|
3071
|
+
const v_error = (() => {
|
|
3072
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3073
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3074
|
+
}
|
|
3075
|
+
const obj_invocableActions = obj.invocableActions;
|
|
3076
|
+
const path_invocableActions = path + '.invocableActions';
|
|
3077
|
+
if (!ArrayIsArray(obj_invocableActions)) {
|
|
3078
|
+
return new TypeError('Expected "array" but received "' + typeof obj_invocableActions + '" (at "' + path_invocableActions + '")');
|
|
3079
|
+
}
|
|
3080
|
+
for (let i = 0; i < obj_invocableActions.length; i++) {
|
|
3081
|
+
const obj_invocableActions_item = obj_invocableActions[i];
|
|
3082
|
+
const path_invocableActions_item = path_invocableActions + '[' + i + ']';
|
|
3083
|
+
if (typeof obj_invocableActions_item !== 'object') {
|
|
3084
|
+
return new TypeError('Expected "object" but received "' + typeof obj_invocableActions_item + '" (at "' + path_invocableActions_item + '")');
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
})();
|
|
3088
|
+
return v_error === undefined ? null : v_error;
|
|
3089
|
+
}
|
|
3090
|
+
const RepresentationType = 'ExternalConnectivityInvocableActionListRepresentation';
|
|
3091
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
3092
|
+
const input_invocableActions = input.invocableActions;
|
|
3093
|
+
const input_invocableActions_id = path.fullPath + '__invocableActions';
|
|
3094
|
+
for (let i = 0; i < input_invocableActions.length; i++) {
|
|
3095
|
+
const input_invocableActions_item = input_invocableActions[i];
|
|
3096
|
+
let input_invocableActions_item_id = input_invocableActions_id + '__' + i;
|
|
3097
|
+
input_invocableActions[i] = ingest$1(input_invocableActions_item, {
|
|
3098
|
+
fullPath: input_invocableActions_item_id,
|
|
3099
|
+
propertyName: i,
|
|
3100
|
+
parent: {
|
|
3101
|
+
data: input,
|
|
3102
|
+
key: path.fullPath,
|
|
3103
|
+
existing: existing,
|
|
3104
|
+
},
|
|
3105
|
+
ttl: path.ttl
|
|
3106
|
+
}, luvio, store, timestamp);
|
|
3107
|
+
}
|
|
3108
|
+
return input;
|
|
3109
|
+
}
|
|
3110
|
+
const select$1 = function ExternalConnectivityInvocableActionListRepresentationSelect() {
|
|
3111
|
+
return {
|
|
3112
|
+
kind: 'Fragment',
|
|
3113
|
+
version: VERSION,
|
|
3114
|
+
private: [],
|
|
3115
|
+
selections: [
|
|
3116
|
+
{
|
|
3117
|
+
name: 'invocableActions',
|
|
3118
|
+
kind: 'Link',
|
|
3119
|
+
plural: true,
|
|
3120
|
+
fragment: select$2()
|
|
3121
|
+
}
|
|
3122
|
+
]
|
|
3123
|
+
};
|
|
3124
|
+
};
|
|
3125
|
+
function equals(existing, incoming) {
|
|
3126
|
+
const existing_invocableActions = existing.invocableActions;
|
|
3127
|
+
const incoming_invocableActions = incoming.invocableActions;
|
|
3128
|
+
const equals_invocableActions_items = equalsArray(existing_invocableActions, incoming_invocableActions, (existing_invocableActions_item, incoming_invocableActions_item) => {
|
|
3129
|
+
if (!(existing_invocableActions_item.__ref === incoming_invocableActions_item.__ref)) {
|
|
3130
|
+
return false;
|
|
3131
|
+
}
|
|
3132
|
+
});
|
|
3133
|
+
if (equals_invocableActions_items === false) {
|
|
3134
|
+
return false;
|
|
3135
|
+
}
|
|
3136
|
+
return true;
|
|
3137
|
+
}
|
|
3138
|
+
const ingest = function ExternalConnectivityInvocableActionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3139
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3140
|
+
const validateError = validate(input);
|
|
3141
|
+
if (validateError !== null) {
|
|
3142
|
+
throw validateError;
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
3145
|
+
const key = path.fullPath;
|
|
3146
|
+
const ttlToUse = TTL;
|
|
3147
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "external-connectivity", VERSION, RepresentationType, equals);
|
|
2650
3148
|
return createLink(key);
|
|
2651
3149
|
};
|
|
2652
3150
|
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2657,13 +3155,17 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2657
3155
|
representationName: RepresentationType,
|
|
2658
3156
|
mergeable: false
|
|
2659
3157
|
});
|
|
3158
|
+
const input_invocableActions_length = input.invocableActions.length;
|
|
3159
|
+
for (let i = 0; i < input_invocableActions_length; i++) {
|
|
3160
|
+
getTypeCacheKeys$1(rootKeySet, luvio, input.invocableActions[i]);
|
|
3161
|
+
}
|
|
2660
3162
|
}
|
|
2661
3163
|
|
|
2662
3164
|
function select(luvio, params) {
|
|
2663
3165
|
return select$1();
|
|
2664
3166
|
}
|
|
2665
3167
|
function keyBuilder$1(luvio, params) {
|
|
2666
|
-
return keyPrefix + '::
|
|
3168
|
+
return keyPrefix + '::ExternalConnectivityInvocableActionListRepresentation:(' + 'invocableActionTypes:' + params.queryParams.invocableActionTypes + ')';
|
|
2667
3169
|
}
|
|
2668
3170
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
2669
3171
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -2700,31 +3202,30 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
2700
3202
|
function createResourceRequest(config) {
|
|
2701
3203
|
const headers = {};
|
|
2702
3204
|
return {
|
|
2703
|
-
baseUri: '/services/data/
|
|
2704
|
-
basePath: '/external-connectivity/
|
|
3205
|
+
baseUri: '/services/data/v64.0',
|
|
3206
|
+
basePath: '/external-connectivity/invocable-actions',
|
|
2705
3207
|
method: 'get',
|
|
2706
3208
|
body: null,
|
|
2707
|
-
urlParams:
|
|
3209
|
+
urlParams: {},
|
|
2708
3210
|
queryParams: config.queryParams,
|
|
2709
3211
|
headers,
|
|
2710
3212
|
priority: 'normal',
|
|
2711
3213
|
};
|
|
2712
3214
|
}
|
|
2713
3215
|
|
|
2714
|
-
const adapterName = '
|
|
2715
|
-
const
|
|
2716
|
-
generateParamConfigMetadata('
|
|
2717
|
-
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3216
|
+
const adapterName = 'getInvocableActions';
|
|
3217
|
+
const getInvocableActions_ConfigPropertyMetadata = [
|
|
3218
|
+
generateParamConfigMetadata('invocableActionTypes', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2718
3219
|
];
|
|
2719
|
-
const
|
|
2720
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
3220
|
+
const getInvocableActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getInvocableActions_ConfigPropertyMetadata);
|
|
3221
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$b(getInvocableActions_ConfigPropertyMetadata);
|
|
2721
3222
|
function keyBuilder(luvio, config) {
|
|
2722
3223
|
const resourceParams = createResourceParams(config);
|
|
2723
3224
|
return keyBuilder$1(luvio, resourceParams);
|
|
2724
3225
|
}
|
|
2725
3226
|
function typeCheckConfig(untrustedConfig) {
|
|
2726
3227
|
const config = {};
|
|
2727
|
-
typeCheckConfig$
|
|
3228
|
+
typeCheckConfig$b(untrustedConfig, config, getInvocableActions_ConfigPropertyMetadata);
|
|
2728
3229
|
return config;
|
|
2729
3230
|
}
|
|
2730
3231
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2773,7 +3274,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2773
3274
|
});
|
|
2774
3275
|
}
|
|
2775
3276
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2776
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3277
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
2777
3278
|
}
|
|
2778
3279
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2779
3280
|
const { luvio, config } = context;
|
|
@@ -2788,8 +3289,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
2788
3289
|
});
|
|
2789
3290
|
return cacheSnapshot;
|
|
2790
3291
|
}
|
|
2791
|
-
const
|
|
2792
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
3292
|
+
const getInvocableActionsAdapterFactory = (luvio) => function externalConnectivity__getInvocableActions(untrustedConfig, requestContext) {
|
|
3293
|
+
const config = validateAdapterConfig(untrustedConfig, getInvocableActions_ConfigPropertyNames);
|
|
2793
3294
|
// Invalid or incomplete config
|
|
2794
3295
|
if (config === null) {
|
|
2795
3296
|
return null;
|
|
@@ -2798,4 +3299,4 @@ const getExternalIdentityProvidersAdapterFactory = (luvio) => function externalC
|
|
|
2798
3299
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
2799
3300
|
};
|
|
2800
3301
|
|
|
2801
|
-
export { createConnectionAdapterFactory, deleteConnectionAdapterFactory, getConnectionDetailsAdapterFactory, getConnectionsAdapterFactory, getConnectorDetailsAdapterFactory, getConnectorsAdapterFactory, getExternalIdentityProvidersAdapterFactory, refreshMetadataAdapterFactory, testConnectionAdapterFactory, updateConnectionAdapterFactory };
|
|
3302
|
+
export { createConnectionAdapterFactory, deleteConnectionAdapterFactory, getConnectionDetailsAdapterFactory, getConnectionsAdapterFactory, getConnectorDetailsAdapterFactory, getConnectorsAdapterFactory, getExternalIdentityProvidersAdapterFactory, getInvocableActionsAdapterFactory, refreshMetadataAdapterFactory, testConnectionAdapterFactory, updateConnectionAdapterFactory };
|