@salesforce/lds-adapters-platform-external-connectivity 1.415.0 → 1.416.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 +635 -213
- package/dist/es/es2018/types/src/generated/adapters/getNamedCredentialConfig.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/getExternalConnectivityConnectionsNamedCredentialsByNamedCredentialName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/ExternalConnectivityGetNamedCredentialResultRepresentation.d.ts +53 -0
- package/package.json +3 -3
- package/sfdc/index.js +1183 -749
- package/src/raml/api.raml +46 -0
- package/src/raml/luvio.raml +8 -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$8, typeCheckConfig as typeCheckConfig$d, StoreKeyMap, createResourceParams as createResourceParams$d } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$
|
|
96
|
+
function validate$o(obj, path = 'ConnectorIconMetadataRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -117,9 +117,9 @@ function validate$n(obj, path = 'ConnectorIconMetadataRepresentation') {
|
|
|
117
117
|
return v_error === undefined ? null : v_error;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
const TTL$
|
|
121
|
-
const VERSION$
|
|
122
|
-
function validate$
|
|
120
|
+
const TTL$d = 500;
|
|
121
|
+
const VERSION$e = "3e461ecbd697039c1881e691a2ee7bef";
|
|
122
|
+
function validate$n(obj, path = 'ExternalConnectivityConnectorRepresentation') {
|
|
123
123
|
const v_error = (() => {
|
|
124
124
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
125
125
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -147,7 +147,7 @@ function validate$m(obj, path = 'ExternalConnectivityConnectorRepresentation') {
|
|
|
147
147
|
for (let i = 0; i < obj_iconMetadata.length; i++) {
|
|
148
148
|
const obj_iconMetadata_item = obj_iconMetadata[i];
|
|
149
149
|
const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
|
|
150
|
-
const referencepath_iconMetadata_itemValidationError = validate$
|
|
150
|
+
const referencepath_iconMetadata_itemValidationError = validate$o(obj_iconMetadata_item, path_iconMetadata_item);
|
|
151
151
|
if (referencepath_iconMetadata_itemValidationError !== null) {
|
|
152
152
|
let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
|
|
153
153
|
message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -187,48 +187,48 @@ function validate$m(obj, path = 'ExternalConnectivityConnectorRepresentation') {
|
|
|
187
187
|
})();
|
|
188
188
|
return v_error === undefined ? null : v_error;
|
|
189
189
|
}
|
|
190
|
-
const RepresentationType$
|
|
191
|
-
function normalize$
|
|
190
|
+
const RepresentationType$e = 'ExternalConnectivityConnectorRepresentation';
|
|
191
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
192
192
|
return input;
|
|
193
193
|
}
|
|
194
|
-
const select$
|
|
194
|
+
const select$r = function ExternalConnectivityConnectorRepresentationSelect() {
|
|
195
195
|
return {
|
|
196
196
|
kind: 'Fragment',
|
|
197
|
-
version: VERSION$
|
|
197
|
+
version: VERSION$e,
|
|
198
198
|
private: [],
|
|
199
199
|
opaque: true
|
|
200
200
|
};
|
|
201
201
|
};
|
|
202
|
-
function equals$
|
|
202
|
+
function equals$e(existing, incoming) {
|
|
203
203
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
204
204
|
return false;
|
|
205
205
|
}
|
|
206
206
|
return true;
|
|
207
207
|
}
|
|
208
|
-
const ingest$
|
|
208
|
+
const ingest$e = function ExternalConnectivityConnectorRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
209
209
|
if (process.env.NODE_ENV !== 'production') {
|
|
210
|
-
const validateError = validate$
|
|
210
|
+
const validateError = validate$n(input);
|
|
211
211
|
if (validateError !== null) {
|
|
212
212
|
throw validateError;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
const key = path.fullPath;
|
|
216
|
-
const ttlToUse = TTL$
|
|
217
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
216
|
+
const ttlToUse = TTL$d;
|
|
217
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "external-connectivity", VERSION$e, RepresentationType$e, equals$e);
|
|
218
218
|
return createLink(key);
|
|
219
219
|
};
|
|
220
|
-
function getTypeCacheKeys$
|
|
220
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
221
221
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
222
222
|
const rootKey = fullPathFactory();
|
|
223
223
|
rootKeySet.set(rootKey, {
|
|
224
224
|
namespace: keyPrefix,
|
|
225
|
-
representationName: RepresentationType$
|
|
225
|
+
representationName: RepresentationType$e,
|
|
226
226
|
mergeable: false
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
const VERSION$
|
|
231
|
-
function validate$
|
|
230
|
+
const VERSION$d = "f2e2de246b96fc1a5010041fc74f4401";
|
|
231
|
+
function validate$m(obj, path = 'ExternalConnectivityConnectionRepresentation') {
|
|
232
232
|
const v_error = (() => {
|
|
233
233
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
234
234
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -366,11 +366,11 @@ function validate$l(obj, path = 'ExternalConnectivityConnectionRepresentation')
|
|
|
366
366
|
})();
|
|
367
367
|
return v_error === undefined ? null : v_error;
|
|
368
368
|
}
|
|
369
|
-
const RepresentationType$
|
|
370
|
-
function normalize$
|
|
369
|
+
const RepresentationType$d = 'ExternalConnectivityConnectionRepresentation';
|
|
370
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
371
371
|
const input_externalConnectorMetadata = input.externalConnectorMetadata;
|
|
372
372
|
const input_externalConnectorMetadata_id = path.fullPath + '__externalConnectorMetadata';
|
|
373
|
-
input.externalConnectorMetadata = ingest$
|
|
373
|
+
input.externalConnectorMetadata = ingest$e(input_externalConnectorMetadata, {
|
|
374
374
|
fullPath: input_externalConnectorMetadata_id,
|
|
375
375
|
propertyName: 'externalConnectorMetadata',
|
|
376
376
|
parent: {
|
|
@@ -382,10 +382,10 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
382
382
|
}, luvio, store, timestamp);
|
|
383
383
|
return input;
|
|
384
384
|
}
|
|
385
|
-
const select$
|
|
385
|
+
const select$q = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
386
386
|
return {
|
|
387
387
|
kind: 'Fragment',
|
|
388
|
-
version: VERSION$
|
|
388
|
+
version: VERSION$d,
|
|
389
389
|
private: [],
|
|
390
390
|
selections: [
|
|
391
391
|
{
|
|
@@ -420,7 +420,7 @@ const select$o = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
|
420
420
|
{
|
|
421
421
|
name: 'externalConnectorMetadata',
|
|
422
422
|
kind: 'Link',
|
|
423
|
-
fragment: select$
|
|
423
|
+
fragment: select$r()
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
name: 'lastModifiedBy',
|
|
@@ -445,7 +445,7 @@ const select$o = function ExternalConnectivityConnectionRepresentationSelect() {
|
|
|
445
445
|
]
|
|
446
446
|
};
|
|
447
447
|
};
|
|
448
|
-
function equals$
|
|
448
|
+
function equals$d(existing, incoming) {
|
|
449
449
|
const existing_established = existing.established;
|
|
450
450
|
const incoming_established = incoming.established;
|
|
451
451
|
if (!(existing_established === incoming_established)) {
|
|
@@ -521,32 +521,32 @@ function equals$c(existing, incoming) {
|
|
|
521
521
|
}
|
|
522
522
|
return true;
|
|
523
523
|
}
|
|
524
|
-
const ingest$
|
|
524
|
+
const ingest$d = function ExternalConnectivityConnectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
525
525
|
if (process.env.NODE_ENV !== 'production') {
|
|
526
|
-
const validateError = validate$
|
|
526
|
+
const validateError = validate$m(input);
|
|
527
527
|
if (validateError !== null) {
|
|
528
528
|
throw validateError;
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
const key = path.fullPath;
|
|
532
532
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
|
|
533
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
533
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "external-connectivity", VERSION$d, RepresentationType$d, equals$d);
|
|
534
534
|
return createLink(key);
|
|
535
535
|
};
|
|
536
|
-
function getTypeCacheKeys$
|
|
536
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
537
537
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
538
538
|
const rootKey = fullPathFactory();
|
|
539
539
|
rootKeySet.set(rootKey, {
|
|
540
540
|
namespace: keyPrefix,
|
|
541
|
-
representationName: RepresentationType$
|
|
541
|
+
representationName: RepresentationType$d,
|
|
542
542
|
mergeable: false
|
|
543
543
|
});
|
|
544
|
-
getTypeCacheKeys$
|
|
544
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.externalConnectorMetadata, () => rootKey + "__" + "externalConnectorMetadata");
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
const TTL$
|
|
548
|
-
const VERSION$
|
|
549
|
-
function validate$
|
|
547
|
+
const TTL$c = 500;
|
|
548
|
+
const VERSION$c = "b5d13b1fd1ba9a2eccd69af50a915654";
|
|
549
|
+
function validate$l(obj, path = 'ExternalConnectivityConnectionListRepresentation') {
|
|
550
550
|
const v_error = (() => {
|
|
551
551
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
552
552
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -592,23 +592,23 @@ function validate$k(obj, path = 'ExternalConnectivityConnectionListRepresentatio
|
|
|
592
592
|
})();
|
|
593
593
|
return v_error === undefined ? null : v_error;
|
|
594
594
|
}
|
|
595
|
-
const RepresentationType$
|
|
596
|
-
function keyBuilder$
|
|
597
|
-
return keyPrefix + '::' + RepresentationType$
|
|
595
|
+
const RepresentationType$c = 'ExternalConnectivityConnectionListRepresentation';
|
|
596
|
+
function keyBuilder$l(luvio, config) {
|
|
597
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + (config.connectorDeveloperName === null ? '' : config.connectorDeveloperName);
|
|
598
598
|
}
|
|
599
599
|
function keyBuilderFromType$5(luvio, object) {
|
|
600
600
|
const keyParams = {
|
|
601
601
|
connectorDeveloperName: object.connectorDeveloperName
|
|
602
602
|
};
|
|
603
|
-
return keyBuilder$
|
|
603
|
+
return keyBuilder$l(luvio, keyParams);
|
|
604
604
|
}
|
|
605
|
-
function normalize$
|
|
605
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
606
606
|
const input_connections = input.connections;
|
|
607
607
|
const input_connections_id = path.fullPath + '__connections';
|
|
608
608
|
for (let i = 0; i < input_connections.length; i++) {
|
|
609
609
|
const input_connections_item = input_connections[i];
|
|
610
610
|
let input_connections_item_id = input_connections_id + '__' + i;
|
|
611
|
-
input_connections[i] = ingest$
|
|
611
|
+
input_connections[i] = ingest$d(input_connections_item, {
|
|
612
612
|
fullPath: input_connections_item_id,
|
|
613
613
|
propertyName: i,
|
|
614
614
|
parent: {
|
|
@@ -621,17 +621,17 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
621
621
|
}
|
|
622
622
|
return input;
|
|
623
623
|
}
|
|
624
|
-
const select$
|
|
624
|
+
const select$p = function ExternalConnectivityConnectionListRepresentationSelect() {
|
|
625
625
|
return {
|
|
626
626
|
kind: 'Fragment',
|
|
627
|
-
version: VERSION$
|
|
627
|
+
version: VERSION$c,
|
|
628
628
|
private: [],
|
|
629
629
|
selections: [
|
|
630
630
|
{
|
|
631
631
|
name: 'connections',
|
|
632
632
|
kind: 'Link',
|
|
633
633
|
plural: true,
|
|
634
|
-
fragment: select$
|
|
634
|
+
fragment: select$q()
|
|
635
635
|
},
|
|
636
636
|
{
|
|
637
637
|
name: 'connectorDeveloperName',
|
|
@@ -640,7 +640,7 @@ const select$n = function ExternalConnectivityConnectionListRepresentationSelect
|
|
|
640
640
|
]
|
|
641
641
|
};
|
|
642
642
|
};
|
|
643
|
-
function equals$
|
|
643
|
+
function equals$c(existing, incoming) {
|
|
644
644
|
const existing_connections = existing.connections;
|
|
645
645
|
const incoming_connections = incoming.connections;
|
|
646
646
|
const equals_connections_items = equalsArray(existing_connections, incoming_connections, (existing_connections_item, incoming_connections_item) => {
|
|
@@ -658,29 +658,29 @@ function equals$b(existing, incoming) {
|
|
|
658
658
|
}
|
|
659
659
|
return true;
|
|
660
660
|
}
|
|
661
|
-
const ingest$
|
|
661
|
+
const ingest$c = function ExternalConnectivityConnectionListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
662
662
|
if (process.env.NODE_ENV !== 'production') {
|
|
663
|
-
const validateError = validate$
|
|
663
|
+
const validateError = validate$l(input);
|
|
664
664
|
if (validateError !== null) {
|
|
665
665
|
throw validateError;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
const key = keyBuilderFromType$5(luvio, input);
|
|
669
|
-
const ttlToUse = TTL$
|
|
670
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
669
|
+
const ttlToUse = TTL$c;
|
|
670
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "external-connectivity", VERSION$c, RepresentationType$c, equals$c);
|
|
671
671
|
return createLink(key);
|
|
672
672
|
};
|
|
673
|
-
function getTypeCacheKeys$
|
|
673
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
674
674
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
675
675
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
676
676
|
rootKeySet.set(rootKey, {
|
|
677
677
|
namespace: keyPrefix,
|
|
678
|
-
representationName: RepresentationType$
|
|
678
|
+
representationName: RepresentationType$c,
|
|
679
679
|
mergeable: false
|
|
680
680
|
});
|
|
681
681
|
const input_connections_length = input.connections.length;
|
|
682
682
|
for (let i = 0; i < input_connections_length; i++) {
|
|
683
|
-
getTypeCacheKeys$
|
|
683
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.connections[i], () => '');
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
const notifyUpdateAvailableFactory = (luvio) => {
|
|
@@ -693,29 +693,29 @@ const notifyUpdateAvailableFactory = (luvio) => {
|
|
|
693
693
|
}
|
|
694
694
|
});
|
|
695
695
|
}
|
|
696
|
-
const keys = configs.map(c => keyBuilder$
|
|
696
|
+
const keys = configs.map(c => keyBuilder$l(luvio, c));
|
|
697
697
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
698
698
|
};
|
|
699
699
|
};
|
|
700
700
|
|
|
701
|
-
function select$
|
|
702
|
-
return select$
|
|
701
|
+
function select$o(luvio, params) {
|
|
702
|
+
return select$p();
|
|
703
703
|
}
|
|
704
|
-
function keyBuilder$
|
|
705
|
-
return keyBuilder$
|
|
704
|
+
function keyBuilder$k(luvio, params) {
|
|
705
|
+
return keyBuilder$l(luvio, {
|
|
706
706
|
connectorDeveloperName: params.queryParams.connectorDeveloperName || ''
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
|
-
function getResponseCacheKeys$
|
|
710
|
-
getTypeCacheKeys$
|
|
709
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
710
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
711
711
|
}
|
|
712
|
-
function ingestSuccess$
|
|
712
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
713
713
|
const { body } = response;
|
|
714
|
-
const key = keyBuilder$
|
|
715
|
-
luvio.storeIngest(key, ingest$
|
|
714
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
715
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
716
716
|
const snapshot = luvio.storeLookup({
|
|
717
717
|
recordId: key,
|
|
718
|
-
node: select$
|
|
718
|
+
node: select$o(),
|
|
719
719
|
variables: {},
|
|
720
720
|
}, snapshotRefresh);
|
|
721
721
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -726,19 +726,19 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
726
726
|
deepFreeze(snapshot.data);
|
|
727
727
|
return snapshot;
|
|
728
728
|
}
|
|
729
|
-
function ingestError$
|
|
730
|
-
const key = keyBuilder$
|
|
729
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
730
|
+
const key = keyBuilder$k(luvio, params);
|
|
731
731
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
732
732
|
const storeMetadataParams = {
|
|
733
|
-
ttl: TTL$
|
|
733
|
+
ttl: TTL$c,
|
|
734
734
|
namespace: keyPrefix,
|
|
735
|
-
version: VERSION$
|
|
736
|
-
representationName: RepresentationType$
|
|
735
|
+
version: VERSION$c,
|
|
736
|
+
representationName: RepresentationType$c
|
|
737
737
|
};
|
|
738
738
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
739
739
|
return errorSnapshot;
|
|
740
740
|
}
|
|
741
|
-
function createResourceRequest$
|
|
741
|
+
function createResourceRequest$c(config) {
|
|
742
742
|
const headers = {};
|
|
743
743
|
return {
|
|
744
744
|
baseUri: '/services/data/v67.0',
|
|
@@ -752,93 +752,93 @@ function createResourceRequest$b(config) {
|
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
754
|
|
|
755
|
-
const adapterName$
|
|
755
|
+
const adapterName$c = 'getConnections';
|
|
756
756
|
const getConnections_ConfigPropertyMetadata = [
|
|
757
757
|
generateParamConfigMetadata('connectorDeveloperName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
758
758
|
];
|
|
759
|
-
const getConnections_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
760
|
-
const createResourceParams$
|
|
761
|
-
function keyBuilder$
|
|
762
|
-
const resourceParams = createResourceParams$
|
|
763
|
-
return keyBuilder$
|
|
759
|
+
const getConnections_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getConnections_ConfigPropertyMetadata);
|
|
760
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(getConnections_ConfigPropertyMetadata);
|
|
761
|
+
function keyBuilder$j(luvio, config) {
|
|
762
|
+
const resourceParams = createResourceParams$c(config);
|
|
763
|
+
return keyBuilder$k(luvio, resourceParams);
|
|
764
764
|
}
|
|
765
|
-
function typeCheckConfig$
|
|
765
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
766
766
|
const config = {};
|
|
767
|
-
typeCheckConfig$
|
|
767
|
+
typeCheckConfig$d(untrustedConfig, config, getConnections_ConfigPropertyMetadata);
|
|
768
768
|
return config;
|
|
769
769
|
}
|
|
770
|
-
function validateAdapterConfig$
|
|
770
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
771
771
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
772
772
|
return null;
|
|
773
773
|
}
|
|
774
774
|
if (process.env.NODE_ENV !== 'production') {
|
|
775
775
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
776
776
|
}
|
|
777
|
-
const config = typeCheckConfig$
|
|
777
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
778
778
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
779
779
|
return null;
|
|
780
780
|
}
|
|
781
781
|
return config;
|
|
782
782
|
}
|
|
783
|
-
function adapterFragment$
|
|
784
|
-
createResourceParams$
|
|
785
|
-
return select$
|
|
783
|
+
function adapterFragment$7(luvio, config) {
|
|
784
|
+
createResourceParams$c(config);
|
|
785
|
+
return select$o();
|
|
786
786
|
}
|
|
787
|
-
function onFetchResponseSuccess$
|
|
788
|
-
const snapshot = ingestSuccess$
|
|
787
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
788
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
789
789
|
config,
|
|
790
|
-
resolve: () => buildNetworkSnapshot$
|
|
790
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
791
791
|
});
|
|
792
792
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
793
793
|
}
|
|
794
|
-
function onFetchResponseError$
|
|
795
|
-
const snapshot = ingestError$
|
|
794
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
795
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
796
796
|
config,
|
|
797
|
-
resolve: () => buildNetworkSnapshot$
|
|
797
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
798
798
|
});
|
|
799
799
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
800
800
|
}
|
|
801
|
-
function buildNetworkSnapshot$
|
|
802
|
-
const resourceParams = createResourceParams$
|
|
803
|
-
const request = createResourceRequest$
|
|
801
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
802
|
+
const resourceParams = createResourceParams$c(config);
|
|
803
|
+
const request = createResourceRequest$c(resourceParams);
|
|
804
804
|
return luvio.dispatchResourceRequest(request, options)
|
|
805
805
|
.then((response) => {
|
|
806
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
806
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
807
807
|
const cache = new StoreKeyMap();
|
|
808
|
-
getResponseCacheKeys$
|
|
808
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
809
809
|
return cache;
|
|
810
810
|
});
|
|
811
811
|
}, (response) => {
|
|
812
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
812
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
|
-
function buildNetworkSnapshotCachePolicy$
|
|
816
|
-
return buildNetworkSnapshotCachePolicy$
|
|
815
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
816
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
817
817
|
}
|
|
818
|
-
function buildCachedSnapshotCachePolicy$
|
|
818
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
819
819
|
const { luvio, config } = context;
|
|
820
820
|
const selector = {
|
|
821
|
-
recordId: keyBuilder$
|
|
822
|
-
node: adapterFragment$
|
|
821
|
+
recordId: keyBuilder$j(luvio, config),
|
|
822
|
+
node: adapterFragment$7(luvio, config),
|
|
823
823
|
variables: {},
|
|
824
824
|
};
|
|
825
825
|
const cacheSnapshot = storeLookup(selector, {
|
|
826
826
|
config,
|
|
827
|
-
resolve: () => buildNetworkSnapshot$
|
|
827
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
828
828
|
});
|
|
829
829
|
return cacheSnapshot;
|
|
830
830
|
}
|
|
831
831
|
const getConnectionsAdapterFactory = (luvio) => function externalConnectivity__getConnections(untrustedConfig, requestContext) {
|
|
832
|
-
const config = validateAdapterConfig$
|
|
832
|
+
const config = validateAdapterConfig$c(untrustedConfig, getConnections_ConfigPropertyNames);
|
|
833
833
|
// Invalid or incomplete config
|
|
834
834
|
if (config === null) {
|
|
835
835
|
return null;
|
|
836
836
|
}
|
|
837
837
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
838
|
-
buildCachedSnapshotCachePolicy$
|
|
838
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
839
839
|
};
|
|
840
840
|
|
|
841
|
-
function validate$
|
|
841
|
+
function validate$k(obj, path = 'AuthenticationTypeInputRepresentation') {
|
|
842
842
|
const v_error = (() => {
|
|
843
843
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
844
844
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -864,9 +864,9 @@ function validate$j(obj, path = 'AuthenticationTypeInputRepresentation') {
|
|
|
864
864
|
return v_error === undefined ? null : v_error;
|
|
865
865
|
}
|
|
866
866
|
|
|
867
|
-
const TTL$
|
|
868
|
-
const VERSION$
|
|
869
|
-
function validate$
|
|
867
|
+
const TTL$b = 500;
|
|
868
|
+
const VERSION$b = "139e6c6cae3db78f5efabb1639252ac2";
|
|
869
|
+
function validate$j(obj, path = 'ExternalConnectivityConnectionCreatedRepresentation') {
|
|
870
870
|
const v_error = (() => {
|
|
871
871
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
872
872
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -879,23 +879,23 @@ function validate$i(obj, path = 'ExternalConnectivityConnectionCreatedRepresenta
|
|
|
879
879
|
})();
|
|
880
880
|
return v_error === undefined ? null : v_error;
|
|
881
881
|
}
|
|
882
|
-
const RepresentationType$
|
|
883
|
-
function keyBuilder$
|
|
884
|
-
return keyPrefix + '::' + RepresentationType$
|
|
882
|
+
const RepresentationType$b = 'ExternalConnectivityConnectionCreatedRepresentation';
|
|
883
|
+
function keyBuilder$i(luvio, config) {
|
|
884
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.developerName;
|
|
885
885
|
}
|
|
886
886
|
function keyBuilderFromType$4(luvio, object) {
|
|
887
887
|
const keyParams = {
|
|
888
888
|
developerName: object.developerName
|
|
889
889
|
};
|
|
890
|
-
return keyBuilder$
|
|
890
|
+
return keyBuilder$i(luvio, keyParams);
|
|
891
891
|
}
|
|
892
|
-
function normalize$
|
|
892
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
893
893
|
return input;
|
|
894
894
|
}
|
|
895
|
-
const select$
|
|
895
|
+
const select$n = function ExternalConnectivityConnectionCreatedRepresentationSelect() {
|
|
896
896
|
return {
|
|
897
897
|
kind: 'Fragment',
|
|
898
|
-
version: VERSION$
|
|
898
|
+
version: VERSION$b,
|
|
899
899
|
private: [],
|
|
900
900
|
selections: [
|
|
901
901
|
{
|
|
@@ -905,7 +905,7 @@ const select$l = function ExternalConnectivityConnectionCreatedRepresentationSel
|
|
|
905
905
|
]
|
|
906
906
|
};
|
|
907
907
|
};
|
|
908
|
-
function equals$
|
|
908
|
+
function equals$b(existing, incoming) {
|
|
909
909
|
const existing_developerName = existing.developerName;
|
|
910
910
|
const incoming_developerName = incoming.developerName;
|
|
911
911
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -913,41 +913,41 @@ function equals$a(existing, incoming) {
|
|
|
913
913
|
}
|
|
914
914
|
return true;
|
|
915
915
|
}
|
|
916
|
-
const ingest$
|
|
916
|
+
const ingest$b = function ExternalConnectivityConnectionCreatedRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
917
917
|
if (process.env.NODE_ENV !== 'production') {
|
|
918
|
-
const validateError = validate$
|
|
918
|
+
const validateError = validate$j(input);
|
|
919
919
|
if (validateError !== null) {
|
|
920
920
|
throw validateError;
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
const key = keyBuilderFromType$4(luvio, input);
|
|
924
|
-
const ttlToUse = TTL$
|
|
925
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
924
|
+
const ttlToUse = TTL$b;
|
|
925
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "external-connectivity", VERSION$b, RepresentationType$b, equals$b);
|
|
926
926
|
return createLink(key);
|
|
927
927
|
};
|
|
928
|
-
function getTypeCacheKeys$
|
|
928
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
929
929
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
930
930
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
931
931
|
rootKeySet.set(rootKey, {
|
|
932
932
|
namespace: keyPrefix,
|
|
933
|
-
representationName: RepresentationType$
|
|
933
|
+
representationName: RepresentationType$b,
|
|
934
934
|
mergeable: false
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
937
|
|
|
938
|
-
function select$
|
|
939
|
-
return select$
|
|
938
|
+
function select$m(luvio, params) {
|
|
939
|
+
return select$n();
|
|
940
940
|
}
|
|
941
|
-
function getResponseCacheKeys$
|
|
942
|
-
getTypeCacheKeys$
|
|
941
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
942
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
943
943
|
}
|
|
944
|
-
function ingestSuccess$
|
|
944
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
945
945
|
const { body } = response;
|
|
946
946
|
const key = keyBuilderFromType$4(luvio, body);
|
|
947
|
-
luvio.storeIngest(key, ingest$
|
|
947
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
948
948
|
const snapshot = luvio.storeLookup({
|
|
949
949
|
recordId: key,
|
|
950
|
-
node: select$
|
|
950
|
+
node: select$m(),
|
|
951
951
|
variables: {},
|
|
952
952
|
});
|
|
953
953
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -958,7 +958,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
958
958
|
deepFreeze(snapshot.data);
|
|
959
959
|
return snapshot;
|
|
960
960
|
}
|
|
961
|
-
function createResourceRequest$
|
|
961
|
+
function createResourceRequest$b(config) {
|
|
962
962
|
const headers = {};
|
|
963
963
|
return {
|
|
964
964
|
baseUri: '/services/data/v67.0',
|
|
@@ -972,7 +972,7 @@ function createResourceRequest$a(config) {
|
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
-
const adapterName$
|
|
975
|
+
const adapterName$b = 'createConnection';
|
|
976
976
|
const createConnection_ConfigPropertyMetadata = [
|
|
977
977
|
generateParamConfigMetadata('authenticationTypeInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
978
978
|
generateParamConfigMetadata('agentActionEnabled', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -980,13 +980,13 @@ const createConnection_ConfigPropertyMetadata = [
|
|
|
980
980
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
981
981
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
982
982
|
];
|
|
983
|
-
const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
984
|
-
const createResourceParams$
|
|
985
|
-
function typeCheckConfig$
|
|
983
|
+
const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createConnection_ConfigPropertyMetadata);
|
|
984
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(createConnection_ConfigPropertyMetadata);
|
|
985
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
986
986
|
const config = {};
|
|
987
|
-
typeCheckConfig$
|
|
987
|
+
typeCheckConfig$d(untrustedConfig, config, createConnection_ConfigPropertyMetadata);
|
|
988
988
|
const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
|
|
989
|
-
const referenceAuthenticationTypeInputRepresentationValidationError = validate$
|
|
989
|
+
const referenceAuthenticationTypeInputRepresentationValidationError = validate$k(untrustedConfig_authenticationTypeInput);
|
|
990
990
|
if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
|
|
991
991
|
config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
|
|
992
992
|
}
|
|
@@ -999,30 +999,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
999
999
|
}
|
|
1000
1000
|
return config;
|
|
1001
1001
|
}
|
|
1002
|
-
function validateAdapterConfig$
|
|
1002
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
1003
1003
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1004
1004
|
return null;
|
|
1005
1005
|
}
|
|
1006
1006
|
if (process.env.NODE_ENV !== 'production') {
|
|
1007
1007
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1008
1008
|
}
|
|
1009
|
-
const config = typeCheckConfig$
|
|
1009
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
1010
1010
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1011
1011
|
return null;
|
|
1012
1012
|
}
|
|
1013
1013
|
return config;
|
|
1014
1014
|
}
|
|
1015
|
-
function buildNetworkSnapshot$
|
|
1016
|
-
const resourceParams = createResourceParams$
|
|
1017
|
-
const request = createResourceRequest$
|
|
1015
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
1016
|
+
const resourceParams = createResourceParams$b(config);
|
|
1017
|
+
const request = createResourceRequest$b(resourceParams);
|
|
1018
1018
|
return luvio.dispatchResourceRequest(request, options)
|
|
1019
1019
|
.then((response) => {
|
|
1020
1020
|
return luvio.handleSuccessResponse(() => {
|
|
1021
|
-
const snapshot = ingestSuccess$
|
|
1021
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
1022
1022
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1023
1023
|
}, () => {
|
|
1024
1024
|
const cache = new StoreKeyMap();
|
|
1025
|
-
getResponseCacheKeys$
|
|
1025
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
1026
1026
|
return cache;
|
|
1027
1027
|
});
|
|
1028
1028
|
}, (response) => {
|
|
@@ -1032,18 +1032,18 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
const createConnectionAdapterFactory = (luvio) => {
|
|
1034
1034
|
return function createConnection(untrustedConfig) {
|
|
1035
|
-
const config = validateAdapterConfig$
|
|
1035
|
+
const config = validateAdapterConfig$b(untrustedConfig, createConnection_ConfigPropertyNames);
|
|
1036
1036
|
// Invalid or incomplete config
|
|
1037
1037
|
if (config === null) {
|
|
1038
1038
|
throw new Error('Invalid config for "createConnection"');
|
|
1039
1039
|
}
|
|
1040
|
-
return buildNetworkSnapshot$
|
|
1040
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
1041
1041
|
};
|
|
1042
1042
|
};
|
|
1043
1043
|
|
|
1044
|
-
const TTL$
|
|
1045
|
-
const VERSION$
|
|
1046
|
-
function validate$
|
|
1044
|
+
const TTL$a = 500;
|
|
1045
|
+
const VERSION$a = "2f8128d7e2e433bc604c71441fa6fc50";
|
|
1046
|
+
function validate$i(obj, path = 'ExternalConnectivityConnectionEditDeleteResultRepresentation') {
|
|
1047
1047
|
const v_error = (() => {
|
|
1048
1048
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1049
1049
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1108,23 +1108,23 @@ function validate$h(obj, path = 'ExternalConnectivityConnectionEditDeleteResultR
|
|
|
1108
1108
|
})();
|
|
1109
1109
|
return v_error === undefined ? null : v_error;
|
|
1110
1110
|
}
|
|
1111
|
-
const RepresentationType$
|
|
1112
|
-
function keyBuilder$
|
|
1113
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1111
|
+
const RepresentationType$a = 'ExternalConnectivityConnectionEditDeleteResultRepresentation';
|
|
1112
|
+
function keyBuilder$h(luvio, config) {
|
|
1113
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.developerName;
|
|
1114
1114
|
}
|
|
1115
1115
|
function keyBuilderFromType$3(luvio, object) {
|
|
1116
1116
|
const keyParams = {
|
|
1117
1117
|
developerName: object.developerName
|
|
1118
1118
|
};
|
|
1119
|
-
return keyBuilder$
|
|
1119
|
+
return keyBuilder$h(luvio, keyParams);
|
|
1120
1120
|
}
|
|
1121
|
-
function normalize$
|
|
1121
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
1122
1122
|
return input;
|
|
1123
1123
|
}
|
|
1124
|
-
const select$
|
|
1124
|
+
const select$l = function ExternalConnectivityConnectionEditDeleteResultRepresentationSelect() {
|
|
1125
1125
|
return {
|
|
1126
1126
|
kind: 'Fragment',
|
|
1127
|
-
version: VERSION$
|
|
1127
|
+
version: VERSION$a,
|
|
1128
1128
|
private: [],
|
|
1129
1129
|
selections: [
|
|
1130
1130
|
{
|
|
@@ -1142,7 +1142,7 @@ const select$j = function ExternalConnectivityConnectionEditDeleteResultRepresen
|
|
|
1142
1142
|
]
|
|
1143
1143
|
};
|
|
1144
1144
|
};
|
|
1145
|
-
function equals$
|
|
1145
|
+
function equals$a(existing, incoming) {
|
|
1146
1146
|
const existing_developerName = existing.developerName;
|
|
1147
1147
|
const incoming_developerName = incoming.developerName;
|
|
1148
1148
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -1160,41 +1160,41 @@ function equals$9(existing, incoming) {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
return true;
|
|
1162
1162
|
}
|
|
1163
|
-
const ingest$
|
|
1163
|
+
const ingest$a = function ExternalConnectivityConnectionEditDeleteResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1164
1164
|
if (process.env.NODE_ENV !== 'production') {
|
|
1165
|
-
const validateError = validate$
|
|
1165
|
+
const validateError = validate$i(input);
|
|
1166
1166
|
if (validateError !== null) {
|
|
1167
1167
|
throw validateError;
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
const key = keyBuilderFromType$3(luvio, input);
|
|
1171
|
-
const ttlToUse = TTL$
|
|
1172
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1171
|
+
const ttlToUse = TTL$a;
|
|
1172
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "external-connectivity", VERSION$a, RepresentationType$a, equals$a);
|
|
1173
1173
|
return createLink(key);
|
|
1174
1174
|
};
|
|
1175
|
-
function getTypeCacheKeys$
|
|
1175
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
1176
1176
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1177
1177
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1178
1178
|
rootKeySet.set(rootKey, {
|
|
1179
1179
|
namespace: keyPrefix,
|
|
1180
|
-
representationName: RepresentationType$
|
|
1180
|
+
representationName: RepresentationType$a,
|
|
1181
1181
|
mergeable: false
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
|
-
function select$
|
|
1186
|
-
return select$
|
|
1185
|
+
function select$k(luvio, params) {
|
|
1186
|
+
return select$l();
|
|
1187
1187
|
}
|
|
1188
|
-
function getResponseCacheKeys$
|
|
1189
|
-
getTypeCacheKeys$
|
|
1188
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
1189
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1190
1190
|
}
|
|
1191
|
-
function ingestSuccess$
|
|
1191
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
1192
1192
|
const { body } = response;
|
|
1193
1193
|
const key = keyBuilderFromType$3(luvio, body);
|
|
1194
|
-
luvio.storeIngest(key, ingest$
|
|
1194
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1195
1195
|
const snapshot = luvio.storeLookup({
|
|
1196
1196
|
recordId: key,
|
|
1197
|
-
node: select$
|
|
1197
|
+
node: select$k(),
|
|
1198
1198
|
variables: {},
|
|
1199
1199
|
});
|
|
1200
1200
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1205,7 +1205,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
1205
1205
|
deepFreeze(snapshot.data);
|
|
1206
1206
|
return snapshot;
|
|
1207
1207
|
}
|
|
1208
|
-
function createResourceRequest$
|
|
1208
|
+
function createResourceRequest$a(config) {
|
|
1209
1209
|
const headers = {};
|
|
1210
1210
|
return {
|
|
1211
1211
|
baseUri: '/services/data/v67.0',
|
|
@@ -1219,41 +1219,41 @@ function createResourceRequest$9(config) {
|
|
|
1219
1219
|
};
|
|
1220
1220
|
}
|
|
1221
1221
|
|
|
1222
|
-
const adapterName$
|
|
1222
|
+
const adapterName$a = 'deleteConnection';
|
|
1223
1223
|
const deleteConnection_ConfigPropertyMetadata = [
|
|
1224
1224
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1225
1225
|
];
|
|
1226
|
-
const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1227
|
-
const createResourceParams$
|
|
1228
|
-
function typeCheckConfig$
|
|
1226
|
+
const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteConnection_ConfigPropertyMetadata);
|
|
1227
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(deleteConnection_ConfigPropertyMetadata);
|
|
1228
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
1229
1229
|
const config = {};
|
|
1230
|
-
typeCheckConfig$
|
|
1230
|
+
typeCheckConfig$d(untrustedConfig, config, deleteConnection_ConfigPropertyMetadata);
|
|
1231
1231
|
return config;
|
|
1232
1232
|
}
|
|
1233
|
-
function validateAdapterConfig$
|
|
1233
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
1234
1234
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1235
1235
|
return null;
|
|
1236
1236
|
}
|
|
1237
1237
|
if (process.env.NODE_ENV !== 'production') {
|
|
1238
1238
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1239
1239
|
}
|
|
1240
|
-
const config = typeCheckConfig$
|
|
1240
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
1241
1241
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1242
1242
|
return null;
|
|
1243
1243
|
}
|
|
1244
1244
|
return config;
|
|
1245
1245
|
}
|
|
1246
|
-
function buildNetworkSnapshot$
|
|
1247
|
-
const resourceParams = createResourceParams$
|
|
1248
|
-
const request = createResourceRequest$
|
|
1246
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
1247
|
+
const resourceParams = createResourceParams$a(config);
|
|
1248
|
+
const request = createResourceRequest$a(resourceParams);
|
|
1249
1249
|
return luvio.dispatchResourceRequest(request, options)
|
|
1250
1250
|
.then((response) => {
|
|
1251
1251
|
return luvio.handleSuccessResponse(() => {
|
|
1252
|
-
const snapshot = ingestSuccess$
|
|
1252
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
1253
1253
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1254
1254
|
}, () => {
|
|
1255
1255
|
const cache = new StoreKeyMap();
|
|
1256
|
-
getResponseCacheKeys$
|
|
1256
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
1257
1257
|
return cache;
|
|
1258
1258
|
});
|
|
1259
1259
|
}, (response) => {
|
|
@@ -1263,15 +1263,437 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
const deleteConnectionAdapterFactory = (luvio) => {
|
|
1265
1265
|
return function deleteConnection(untrustedConfig) {
|
|
1266
|
-
const config = validateAdapterConfig$
|
|
1266
|
+
const config = validateAdapterConfig$a(untrustedConfig, deleteConnection_ConfigPropertyNames);
|
|
1267
1267
|
// Invalid or incomplete config
|
|
1268
1268
|
if (config === null) {
|
|
1269
1269
|
throw new Error('Invalid config for "deleteConnection"');
|
|
1270
1270
|
}
|
|
1271
|
-
return buildNetworkSnapshot$
|
|
1271
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
1272
1272
|
};
|
|
1273
1273
|
};
|
|
1274
1274
|
|
|
1275
|
+
const TTL$9 = 500;
|
|
1276
|
+
const VERSION$9 = "c36b48fc8c9e4c961cfdf9533fb78bec";
|
|
1277
|
+
function validate$h(obj, path = 'ExternalConnectivityGetNamedCredentialResultRepresentation') {
|
|
1278
|
+
const v_error = (() => {
|
|
1279
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1280
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1281
|
+
}
|
|
1282
|
+
const obj_authenticationProtocol = obj.authenticationProtocol;
|
|
1283
|
+
const path_authenticationProtocol = path + '.authenticationProtocol';
|
|
1284
|
+
let obj_authenticationProtocol_union0 = null;
|
|
1285
|
+
const obj_authenticationProtocol_union0_error = (() => {
|
|
1286
|
+
if (typeof obj_authenticationProtocol !== 'string') {
|
|
1287
|
+
return new TypeError('Expected "string" but received "' + typeof obj_authenticationProtocol + '" (at "' + path_authenticationProtocol + '")');
|
|
1288
|
+
}
|
|
1289
|
+
})();
|
|
1290
|
+
if (obj_authenticationProtocol_union0_error != null) {
|
|
1291
|
+
obj_authenticationProtocol_union0 = obj_authenticationProtocol_union0_error.message;
|
|
1292
|
+
}
|
|
1293
|
+
let obj_authenticationProtocol_union1 = null;
|
|
1294
|
+
const obj_authenticationProtocol_union1_error = (() => {
|
|
1295
|
+
if (obj_authenticationProtocol !== null) {
|
|
1296
|
+
return new TypeError('Expected "null" but received "' + typeof obj_authenticationProtocol + '" (at "' + path_authenticationProtocol + '")');
|
|
1297
|
+
}
|
|
1298
|
+
})();
|
|
1299
|
+
if (obj_authenticationProtocol_union1_error != null) {
|
|
1300
|
+
obj_authenticationProtocol_union1 = obj_authenticationProtocol_union1_error.message;
|
|
1301
|
+
}
|
|
1302
|
+
if (obj_authenticationProtocol_union0 && obj_authenticationProtocol_union1) {
|
|
1303
|
+
let message = 'Object doesn\'t match union (at "' + path_authenticationProtocol + '")';
|
|
1304
|
+
message += '\n' + obj_authenticationProtocol_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1305
|
+
message += '\n' + obj_authenticationProtocol_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1306
|
+
return new TypeError(message);
|
|
1307
|
+
}
|
|
1308
|
+
const obj_description = obj.description;
|
|
1309
|
+
const path_description = path + '.description';
|
|
1310
|
+
let obj_description_union0 = null;
|
|
1311
|
+
const obj_description_union0_error = (() => {
|
|
1312
|
+
if (typeof obj_description !== 'string') {
|
|
1313
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1314
|
+
}
|
|
1315
|
+
})();
|
|
1316
|
+
if (obj_description_union0_error != null) {
|
|
1317
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
1318
|
+
}
|
|
1319
|
+
let obj_description_union1 = null;
|
|
1320
|
+
const obj_description_union1_error = (() => {
|
|
1321
|
+
if (obj_description !== null) {
|
|
1322
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1323
|
+
}
|
|
1324
|
+
})();
|
|
1325
|
+
if (obj_description_union1_error != null) {
|
|
1326
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
1327
|
+
}
|
|
1328
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
1329
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
1330
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1331
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1332
|
+
return new TypeError(message);
|
|
1333
|
+
}
|
|
1334
|
+
const obj_errorMessage = obj.errorMessage;
|
|
1335
|
+
const path_errorMessage = path + '.errorMessage';
|
|
1336
|
+
let obj_errorMessage_union0 = null;
|
|
1337
|
+
const obj_errorMessage_union0_error = (() => {
|
|
1338
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
1339
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1340
|
+
}
|
|
1341
|
+
})();
|
|
1342
|
+
if (obj_errorMessage_union0_error != null) {
|
|
1343
|
+
obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
|
|
1344
|
+
}
|
|
1345
|
+
let obj_errorMessage_union1 = null;
|
|
1346
|
+
const obj_errorMessage_union1_error = (() => {
|
|
1347
|
+
if (obj_errorMessage !== null) {
|
|
1348
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1349
|
+
}
|
|
1350
|
+
})();
|
|
1351
|
+
if (obj_errorMessage_union1_error != null) {
|
|
1352
|
+
obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
|
|
1353
|
+
}
|
|
1354
|
+
if (obj_errorMessage_union0 && obj_errorMessage_union1) {
|
|
1355
|
+
let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
|
|
1356
|
+
message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1357
|
+
message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1358
|
+
return new TypeError(message);
|
|
1359
|
+
}
|
|
1360
|
+
const obj_externalCredentialLabel = obj.externalCredentialLabel;
|
|
1361
|
+
const path_externalCredentialLabel = path + '.externalCredentialLabel';
|
|
1362
|
+
let obj_externalCredentialLabel_union0 = null;
|
|
1363
|
+
const obj_externalCredentialLabel_union0_error = (() => {
|
|
1364
|
+
if (typeof obj_externalCredentialLabel !== 'string') {
|
|
1365
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalCredentialLabel + '" (at "' + path_externalCredentialLabel + '")');
|
|
1366
|
+
}
|
|
1367
|
+
})();
|
|
1368
|
+
if (obj_externalCredentialLabel_union0_error != null) {
|
|
1369
|
+
obj_externalCredentialLabel_union0 = obj_externalCredentialLabel_union0_error.message;
|
|
1370
|
+
}
|
|
1371
|
+
let obj_externalCredentialLabel_union1 = null;
|
|
1372
|
+
const obj_externalCredentialLabel_union1_error = (() => {
|
|
1373
|
+
if (obj_externalCredentialLabel !== null) {
|
|
1374
|
+
return new TypeError('Expected "null" but received "' + typeof obj_externalCredentialLabel + '" (at "' + path_externalCredentialLabel + '")');
|
|
1375
|
+
}
|
|
1376
|
+
})();
|
|
1377
|
+
if (obj_externalCredentialLabel_union1_error != null) {
|
|
1378
|
+
obj_externalCredentialLabel_union1 = obj_externalCredentialLabel_union1_error.message;
|
|
1379
|
+
}
|
|
1380
|
+
if (obj_externalCredentialLabel_union0 && obj_externalCredentialLabel_union1) {
|
|
1381
|
+
let message = 'Object doesn\'t match union (at "' + path_externalCredentialLabel + '")';
|
|
1382
|
+
message += '\n' + obj_externalCredentialLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1383
|
+
message += '\n' + obj_externalCredentialLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1384
|
+
return new TypeError(message);
|
|
1385
|
+
}
|
|
1386
|
+
const obj_identityProvider = obj.identityProvider;
|
|
1387
|
+
const path_identityProvider = path + '.identityProvider';
|
|
1388
|
+
let obj_identityProvider_union0 = null;
|
|
1389
|
+
const obj_identityProvider_union0_error = (() => {
|
|
1390
|
+
if (typeof obj_identityProvider !== 'string') {
|
|
1391
|
+
return new TypeError('Expected "string" but received "' + typeof obj_identityProvider + '" (at "' + path_identityProvider + '")');
|
|
1392
|
+
}
|
|
1393
|
+
})();
|
|
1394
|
+
if (obj_identityProvider_union0_error != null) {
|
|
1395
|
+
obj_identityProvider_union0 = obj_identityProvider_union0_error.message;
|
|
1396
|
+
}
|
|
1397
|
+
let obj_identityProvider_union1 = null;
|
|
1398
|
+
const obj_identityProvider_union1_error = (() => {
|
|
1399
|
+
if (obj_identityProvider !== null) {
|
|
1400
|
+
return new TypeError('Expected "null" but received "' + typeof obj_identityProvider + '" (at "' + path_identityProvider + '")');
|
|
1401
|
+
}
|
|
1402
|
+
})();
|
|
1403
|
+
if (obj_identityProvider_union1_error != null) {
|
|
1404
|
+
obj_identityProvider_union1 = obj_identityProvider_union1_error.message;
|
|
1405
|
+
}
|
|
1406
|
+
if (obj_identityProvider_union0 && obj_identityProvider_union1) {
|
|
1407
|
+
let message = 'Object doesn\'t match union (at "' + path_identityProvider + '")';
|
|
1408
|
+
message += '\n' + obj_identityProvider_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1409
|
+
message += '\n' + obj_identityProvider_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1410
|
+
return new TypeError(message);
|
|
1411
|
+
}
|
|
1412
|
+
const obj_label = obj.label;
|
|
1413
|
+
const path_label = path + '.label';
|
|
1414
|
+
let obj_label_union0 = null;
|
|
1415
|
+
const obj_label_union0_error = (() => {
|
|
1416
|
+
if (typeof obj_label !== 'string') {
|
|
1417
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1418
|
+
}
|
|
1419
|
+
})();
|
|
1420
|
+
if (obj_label_union0_error != null) {
|
|
1421
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
1422
|
+
}
|
|
1423
|
+
let obj_label_union1 = null;
|
|
1424
|
+
const obj_label_union1_error = (() => {
|
|
1425
|
+
if (obj_label !== null) {
|
|
1426
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1427
|
+
}
|
|
1428
|
+
})();
|
|
1429
|
+
if (obj_label_union1_error != null) {
|
|
1430
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
1431
|
+
}
|
|
1432
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
1433
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
1434
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1435
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1436
|
+
return new TypeError(message);
|
|
1437
|
+
}
|
|
1438
|
+
const obj_namedCredentialName = obj.namedCredentialName;
|
|
1439
|
+
const path_namedCredentialName = path + '.namedCredentialName';
|
|
1440
|
+
let obj_namedCredentialName_union0 = null;
|
|
1441
|
+
const obj_namedCredentialName_union0_error = (() => {
|
|
1442
|
+
if (typeof obj_namedCredentialName !== 'string') {
|
|
1443
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namedCredentialName + '" (at "' + path_namedCredentialName + '")');
|
|
1444
|
+
}
|
|
1445
|
+
})();
|
|
1446
|
+
if (obj_namedCredentialName_union0_error != null) {
|
|
1447
|
+
obj_namedCredentialName_union0 = obj_namedCredentialName_union0_error.message;
|
|
1448
|
+
}
|
|
1449
|
+
let obj_namedCredentialName_union1 = null;
|
|
1450
|
+
const obj_namedCredentialName_union1_error = (() => {
|
|
1451
|
+
if (obj_namedCredentialName !== null) {
|
|
1452
|
+
return new TypeError('Expected "null" but received "' + typeof obj_namedCredentialName + '" (at "' + path_namedCredentialName + '")');
|
|
1453
|
+
}
|
|
1454
|
+
})();
|
|
1455
|
+
if (obj_namedCredentialName_union1_error != null) {
|
|
1456
|
+
obj_namedCredentialName_union1 = obj_namedCredentialName_union1_error.message;
|
|
1457
|
+
}
|
|
1458
|
+
if (obj_namedCredentialName_union0 && obj_namedCredentialName_union1) {
|
|
1459
|
+
let message = 'Object doesn\'t match union (at "' + path_namedCredentialName + '")';
|
|
1460
|
+
message += '\n' + obj_namedCredentialName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1461
|
+
message += '\n' + obj_namedCredentialName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1462
|
+
return new TypeError(message);
|
|
1463
|
+
}
|
|
1464
|
+
const obj_ncType = obj.ncType;
|
|
1465
|
+
const path_ncType = path + '.ncType';
|
|
1466
|
+
let obj_ncType_union0 = null;
|
|
1467
|
+
const obj_ncType_union0_error = (() => {
|
|
1468
|
+
if (typeof obj_ncType !== 'string') {
|
|
1469
|
+
return new TypeError('Expected "string" but received "' + typeof obj_ncType + '" (at "' + path_ncType + '")');
|
|
1470
|
+
}
|
|
1471
|
+
})();
|
|
1472
|
+
if (obj_ncType_union0_error != null) {
|
|
1473
|
+
obj_ncType_union0 = obj_ncType_union0_error.message;
|
|
1474
|
+
}
|
|
1475
|
+
let obj_ncType_union1 = null;
|
|
1476
|
+
const obj_ncType_union1_error = (() => {
|
|
1477
|
+
if (obj_ncType !== null) {
|
|
1478
|
+
return new TypeError('Expected "null" but received "' + typeof obj_ncType + '" (at "' + path_ncType + '")');
|
|
1479
|
+
}
|
|
1480
|
+
})();
|
|
1481
|
+
if (obj_ncType_union1_error != null) {
|
|
1482
|
+
obj_ncType_union1 = obj_ncType_union1_error.message;
|
|
1483
|
+
}
|
|
1484
|
+
if (obj_ncType_union0 && obj_ncType_union1) {
|
|
1485
|
+
let message = 'Object doesn\'t match union (at "' + path_ncType + '")';
|
|
1486
|
+
message += '\n' + obj_ncType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1487
|
+
message += '\n' + obj_ncType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1488
|
+
return new TypeError(message);
|
|
1489
|
+
}
|
|
1490
|
+
const obj_principalName = obj.principalName;
|
|
1491
|
+
const path_principalName = path + '.principalName';
|
|
1492
|
+
let obj_principalName_union0 = null;
|
|
1493
|
+
const obj_principalName_union0_error = (() => {
|
|
1494
|
+
if (typeof obj_principalName !== 'string') {
|
|
1495
|
+
return new TypeError('Expected "string" but received "' + typeof obj_principalName + '" (at "' + path_principalName + '")');
|
|
1496
|
+
}
|
|
1497
|
+
})();
|
|
1498
|
+
if (obj_principalName_union0_error != null) {
|
|
1499
|
+
obj_principalName_union0 = obj_principalName_union0_error.message;
|
|
1500
|
+
}
|
|
1501
|
+
let obj_principalName_union1 = null;
|
|
1502
|
+
const obj_principalName_union1_error = (() => {
|
|
1503
|
+
if (obj_principalName !== null) {
|
|
1504
|
+
return new TypeError('Expected "null" but received "' + typeof obj_principalName + '" (at "' + path_principalName + '")');
|
|
1505
|
+
}
|
|
1506
|
+
})();
|
|
1507
|
+
if (obj_principalName_union1_error != null) {
|
|
1508
|
+
obj_principalName_union1 = obj_principalName_union1_error.message;
|
|
1509
|
+
}
|
|
1510
|
+
if (obj_principalName_union0 && obj_principalName_union1) {
|
|
1511
|
+
let message = 'Object doesn\'t match union (at "' + path_principalName + '")';
|
|
1512
|
+
message += '\n' + obj_principalName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1513
|
+
message += '\n' + obj_principalName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1514
|
+
return new TypeError(message);
|
|
1515
|
+
}
|
|
1516
|
+
})();
|
|
1517
|
+
return v_error === undefined ? null : v_error;
|
|
1518
|
+
}
|
|
1519
|
+
const RepresentationType$9 = 'ExternalConnectivityGetNamedCredentialResultRepresentation';
|
|
1520
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1521
|
+
return input;
|
|
1522
|
+
}
|
|
1523
|
+
const select$j = function ExternalConnectivityGetNamedCredentialResultRepresentationSelect() {
|
|
1524
|
+
return {
|
|
1525
|
+
kind: 'Fragment',
|
|
1526
|
+
version: VERSION$9,
|
|
1527
|
+
private: [],
|
|
1528
|
+
opaque: true
|
|
1529
|
+
};
|
|
1530
|
+
};
|
|
1531
|
+
function equals$9(existing, incoming) {
|
|
1532
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1533
|
+
return false;
|
|
1534
|
+
}
|
|
1535
|
+
return true;
|
|
1536
|
+
}
|
|
1537
|
+
const ingest$9 = function ExternalConnectivityGetNamedCredentialResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1538
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1539
|
+
const validateError = validate$h(input);
|
|
1540
|
+
if (validateError !== null) {
|
|
1541
|
+
throw validateError;
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
const key = path.fullPath;
|
|
1545
|
+
const ttlToUse = TTL$9;
|
|
1546
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "external-connectivity", VERSION$9, RepresentationType$9, equals$9);
|
|
1547
|
+
return createLink(key);
|
|
1548
|
+
};
|
|
1549
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
1550
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1551
|
+
const rootKey = fullPathFactory();
|
|
1552
|
+
rootKeySet.set(rootKey, {
|
|
1553
|
+
namespace: keyPrefix,
|
|
1554
|
+
representationName: RepresentationType$9,
|
|
1555
|
+
mergeable: false
|
|
1556
|
+
});
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
function select$i(luvio, params) {
|
|
1560
|
+
return select$j();
|
|
1561
|
+
}
|
|
1562
|
+
function keyBuilder$g(luvio, params) {
|
|
1563
|
+
return keyPrefix + '::ExternalConnectivityGetNamedCredentialResultRepresentation:(' + 'namedCredentialName:' + params.urlParams.namedCredentialName + ')';
|
|
1564
|
+
}
|
|
1565
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
1566
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
1567
|
+
}
|
|
1568
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
1569
|
+
const { body } = response;
|
|
1570
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
1571
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
1572
|
+
const snapshot = luvio.storeLookup({
|
|
1573
|
+
recordId: key,
|
|
1574
|
+
node: select$i(),
|
|
1575
|
+
variables: {},
|
|
1576
|
+
}, snapshotRefresh);
|
|
1577
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1578
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1579
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
deepFreeze(snapshot.data);
|
|
1583
|
+
return snapshot;
|
|
1584
|
+
}
|
|
1585
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
1586
|
+
const key = keyBuilder$g(luvio, params);
|
|
1587
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1588
|
+
const storeMetadataParams = {
|
|
1589
|
+
ttl: TTL$9,
|
|
1590
|
+
namespace: keyPrefix,
|
|
1591
|
+
version: VERSION$9,
|
|
1592
|
+
representationName: RepresentationType$9
|
|
1593
|
+
};
|
|
1594
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1595
|
+
return errorSnapshot;
|
|
1596
|
+
}
|
|
1597
|
+
function createResourceRequest$9(config) {
|
|
1598
|
+
const headers = {};
|
|
1599
|
+
return {
|
|
1600
|
+
baseUri: '/services/data/v67.0',
|
|
1601
|
+
basePath: '/external-connectivity/connections/named-credentials/' + config.urlParams.namedCredentialName + '',
|
|
1602
|
+
method: 'get',
|
|
1603
|
+
body: null,
|
|
1604
|
+
urlParams: config.urlParams,
|
|
1605
|
+
queryParams: {},
|
|
1606
|
+
headers,
|
|
1607
|
+
priority: 'normal',
|
|
1608
|
+
};
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
const adapterName$9 = 'getNamedCredentialConfig';
|
|
1612
|
+
const getNamedCredentialConfig_ConfigPropertyMetadata = [
|
|
1613
|
+
generateParamConfigMetadata('namedCredentialName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1614
|
+
];
|
|
1615
|
+
const getNamedCredentialConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getNamedCredentialConfig_ConfigPropertyMetadata);
|
|
1616
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(getNamedCredentialConfig_ConfigPropertyMetadata);
|
|
1617
|
+
function keyBuilder$f(luvio, config) {
|
|
1618
|
+
const resourceParams = createResourceParams$9(config);
|
|
1619
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
1620
|
+
}
|
|
1621
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1622
|
+
const config = {};
|
|
1623
|
+
typeCheckConfig$d(untrustedConfig, config, getNamedCredentialConfig_ConfigPropertyMetadata);
|
|
1624
|
+
return config;
|
|
1625
|
+
}
|
|
1626
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1627
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1628
|
+
return null;
|
|
1629
|
+
}
|
|
1630
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1631
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1632
|
+
}
|
|
1633
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1634
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1635
|
+
return null;
|
|
1636
|
+
}
|
|
1637
|
+
return config;
|
|
1638
|
+
}
|
|
1639
|
+
function adapterFragment$6(luvio, config) {
|
|
1640
|
+
createResourceParams$9(config);
|
|
1641
|
+
return select$i();
|
|
1642
|
+
}
|
|
1643
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
1644
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
1645
|
+
config,
|
|
1646
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1647
|
+
});
|
|
1648
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1649
|
+
}
|
|
1650
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
1651
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
1652
|
+
config,
|
|
1653
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1654
|
+
});
|
|
1655
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1656
|
+
}
|
|
1657
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
1658
|
+
const resourceParams = createResourceParams$9(config);
|
|
1659
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1660
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1661
|
+
.then((response) => {
|
|
1662
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
1663
|
+
const cache = new StoreKeyMap();
|
|
1664
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
1665
|
+
return cache;
|
|
1666
|
+
});
|
|
1667
|
+
}, (response) => {
|
|
1668
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1671
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
1672
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
1673
|
+
}
|
|
1674
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
1675
|
+
const { luvio, config } = context;
|
|
1676
|
+
const selector = {
|
|
1677
|
+
recordId: keyBuilder$f(luvio, config),
|
|
1678
|
+
node: adapterFragment$6(luvio, config),
|
|
1679
|
+
variables: {},
|
|
1680
|
+
};
|
|
1681
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1682
|
+
config,
|
|
1683
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1684
|
+
});
|
|
1685
|
+
return cacheSnapshot;
|
|
1686
|
+
}
|
|
1687
|
+
const getNamedCredentialConfigAdapterFactory = (luvio) => function externalConnectivity__getNamedCredentialConfig(untrustedConfig, requestContext) {
|
|
1688
|
+
const config = validateAdapterConfig$9(untrustedConfig, getNamedCredentialConfig_ConfigPropertyNames);
|
|
1689
|
+
// Invalid or incomplete config
|
|
1690
|
+
if (config === null) {
|
|
1691
|
+
return null;
|
|
1692
|
+
}
|
|
1693
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1694
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
1695
|
+
};
|
|
1696
|
+
|
|
1275
1697
|
function validate$g(obj, path = 'AuthenticationParameterDefinitionRepresentation') {
|
|
1276
1698
|
const v_error = (() => {
|
|
1277
1699
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1525,7 +1947,7 @@ function validate$d(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
1525
1947
|
}
|
|
1526
1948
|
const obj_externalConnectorMetadata = obj.externalConnectorMetadata;
|
|
1527
1949
|
const path_externalConnectorMetadata = path + '.externalConnectorMetadata';
|
|
1528
|
-
const referencepath_externalConnectorMetadataValidationError = validate$
|
|
1950
|
+
const referencepath_externalConnectorMetadataValidationError = validate$n(obj_externalConnectorMetadata, path_externalConnectorMetadata);
|
|
1529
1951
|
if (referencepath_externalConnectorMetadataValidationError !== null) {
|
|
1530
1952
|
let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_externalConnectorMetadata + '")\n';
|
|
1531
1953
|
message += referencepath_externalConnectorMetadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1677,14 +2099,14 @@ const getConnectionDetails_ConfigPropertyMetadata = [
|
|
|
1677
2099
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1678
2100
|
];
|
|
1679
2101
|
const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getConnectionDetails_ConfigPropertyMetadata);
|
|
1680
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
2102
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(getConnectionDetails_ConfigPropertyMetadata);
|
|
1681
2103
|
function keyBuilder$d(luvio, config) {
|
|
1682
2104
|
const resourceParams = createResourceParams$8(config);
|
|
1683
2105
|
return keyBuilder$e(luvio, resourceParams);
|
|
1684
2106
|
}
|
|
1685
2107
|
function typeCheckConfig$8(untrustedConfig) {
|
|
1686
2108
|
const config = {};
|
|
1687
|
-
typeCheckConfig$
|
|
2109
|
+
typeCheckConfig$d(untrustedConfig, config, getConnectionDetails_ConfigPropertyMetadata);
|
|
1688
2110
|
return config;
|
|
1689
2111
|
}
|
|
1690
2112
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -1733,7 +2155,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1733
2155
|
});
|
|
1734
2156
|
}
|
|
1735
2157
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
1736
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2158
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
1737
2159
|
}
|
|
1738
2160
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
1739
2161
|
const { luvio, config } = context;
|
|
@@ -1759,15 +2181,15 @@ const getConnectionDetailsAdapterFactory = (luvio) => function externalConnectiv
|
|
|
1759
2181
|
};
|
|
1760
2182
|
|
|
1761
2183
|
function select$f(luvio, params) {
|
|
1762
|
-
return select$
|
|
2184
|
+
return select$l();
|
|
1763
2185
|
}
|
|
1764
2186
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
1765
|
-
getTypeCacheKeys$
|
|
2187
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1766
2188
|
}
|
|
1767
2189
|
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
1768
2190
|
const { body } = response;
|
|
1769
2191
|
const key = keyBuilderFromType$3(luvio, body);
|
|
1770
|
-
luvio.storeIngest(key, ingest$
|
|
2192
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1771
2193
|
const snapshot = luvio.storeLookup({
|
|
1772
2194
|
recordId: key,
|
|
1773
2195
|
node: select$f(),
|
|
@@ -1805,12 +2227,12 @@ const updateConnection_ConfigPropertyMetadata = [
|
|
|
1805
2227
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
1806
2228
|
];
|
|
1807
2229
|
const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateConnection_ConfigPropertyMetadata);
|
|
1808
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
2230
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(updateConnection_ConfigPropertyMetadata);
|
|
1809
2231
|
function typeCheckConfig$7(untrustedConfig) {
|
|
1810
2232
|
const config = {};
|
|
1811
|
-
typeCheckConfig$
|
|
2233
|
+
typeCheckConfig$d(untrustedConfig, config, updateConnection_ConfigPropertyMetadata);
|
|
1812
2234
|
const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
|
|
1813
|
-
const referenceAuthenticationTypeInputRepresentationValidationError = validate$
|
|
2235
|
+
const referenceAuthenticationTypeInputRepresentationValidationError = validate$k(untrustedConfig_authenticationTypeInput);
|
|
1814
2236
|
if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
|
|
1815
2237
|
config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
|
|
1816
2238
|
}
|
|
@@ -2235,14 +2657,14 @@ const getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata =
|
|
|
2235
2657
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2236
2658
|
];
|
|
2237
2659
|
const getExternalConnectivityConnectionReferencedFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata);
|
|
2238
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
2660
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata);
|
|
2239
2661
|
function keyBuilder$b(luvio, config) {
|
|
2240
2662
|
const resourceParams = createResourceParams$6(config);
|
|
2241
2663
|
return keyBuilder$c(luvio, resourceParams);
|
|
2242
2664
|
}
|
|
2243
2665
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2244
2666
|
const config = {};
|
|
2245
|
-
typeCheckConfig$
|
|
2667
|
+
typeCheckConfig$d(untrustedConfig, config, getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata);
|
|
2246
2668
|
return config;
|
|
2247
2669
|
}
|
|
2248
2670
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -2291,7 +2713,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
2291
2713
|
});
|
|
2292
2714
|
}
|
|
2293
2715
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2294
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2716
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
2295
2717
|
}
|
|
2296
2718
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
2297
2719
|
const { luvio, config } = context;
|
|
@@ -2464,10 +2886,10 @@ const refreshMetadata_ConfigPropertyMetadata = [
|
|
|
2464
2886
|
generateParamConfigMetadata('typeProviderRequestParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2465
2887
|
];
|
|
2466
2888
|
const refreshMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, refreshMetadata_ConfigPropertyMetadata);
|
|
2467
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
2889
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(refreshMetadata_ConfigPropertyMetadata);
|
|
2468
2890
|
function typeCheckConfig$5(untrustedConfig) {
|
|
2469
2891
|
const config = {};
|
|
2470
|
-
typeCheckConfig$
|
|
2892
|
+
typeCheckConfig$d(untrustedConfig, config, refreshMetadata_ConfigPropertyMetadata);
|
|
2471
2893
|
const untrustedConfig_typeProviderRequestParameters = untrustedConfig.typeProviderRequestParameters;
|
|
2472
2894
|
if (ArrayIsArray$1(untrustedConfig_typeProviderRequestParameters)) {
|
|
2473
2895
|
const untrustedConfig_typeProviderRequestParameters_array = [];
|
|
@@ -2735,10 +3157,10 @@ const testConnection_ConfigPropertyMetadata = [
|
|
|
2735
3157
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2736
3158
|
];
|
|
2737
3159
|
const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, testConnection_ConfigPropertyMetadata);
|
|
2738
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
3160
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(testConnection_ConfigPropertyMetadata);
|
|
2739
3161
|
function typeCheckConfig$4(untrustedConfig) {
|
|
2740
3162
|
const config = {};
|
|
2741
|
-
typeCheckConfig$
|
|
3163
|
+
typeCheckConfig$d(untrustedConfig, config, testConnection_ConfigPropertyMetadata);
|
|
2742
3164
|
return config;
|
|
2743
3165
|
}
|
|
2744
3166
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -2798,7 +3220,7 @@ function validate$6(obj, path = 'ExternalConnectivityConnectorListRepresentation
|
|
|
2798
3220
|
for (let i = 0; i < obj_connectors.length; i++) {
|
|
2799
3221
|
const obj_connectors_item = obj_connectors[i];
|
|
2800
3222
|
const path_connectors_item = path_connectors + '[' + i + ']';
|
|
2801
|
-
const referencepath_connectors_itemValidationError = validate$
|
|
3223
|
+
const referencepath_connectors_itemValidationError = validate$n(obj_connectors_item, path_connectors_item);
|
|
2802
3224
|
if (referencepath_connectors_itemValidationError !== null) {
|
|
2803
3225
|
let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_connectors_item + '")\n';
|
|
2804
3226
|
message += referencepath_connectors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2903,7 +3325,7 @@ function createResourceRequest$3(config) {
|
|
|
2903
3325
|
const adapterName$3 = 'getConnectors';
|
|
2904
3326
|
const getConnectors_ConfigPropertyMetadata = [];
|
|
2905
3327
|
const getConnectors_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getConnectors_ConfigPropertyMetadata);
|
|
2906
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
3328
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(getConnectors_ConfigPropertyMetadata);
|
|
2907
3329
|
function keyBuilder$7(luvio, config) {
|
|
2908
3330
|
createResourceParams$3(config);
|
|
2909
3331
|
return keyBuilder$8();
|
|
@@ -2958,7 +3380,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
2958
3380
|
});
|
|
2959
3381
|
}
|
|
2960
3382
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2961
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3383
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
2962
3384
|
}
|
|
2963
3385
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2964
3386
|
const { luvio, config } = context;
|
|
@@ -3042,7 +3464,7 @@ function validate$4(obj, path = 'ExternalConnectivityConnectorDetailsRepresentat
|
|
|
3042
3464
|
for (let i = 0; i < obj_iconMetadata.length; i++) {
|
|
3043
3465
|
const obj_iconMetadata_item = obj_iconMetadata[i];
|
|
3044
3466
|
const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
|
|
3045
|
-
const referencepath_iconMetadata_itemValidationError = validate$
|
|
3467
|
+
const referencepath_iconMetadata_itemValidationError = validate$o(obj_iconMetadata_item, path_iconMetadata_item);
|
|
3046
3468
|
if (referencepath_iconMetadata_itemValidationError !== null) {
|
|
3047
3469
|
let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
|
|
3048
3470
|
message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3194,14 +3616,14 @@ const getConnectorDetails_ConfigPropertyMetadata = [
|
|
|
3194
3616
|
generateParamConfigMetadata('connectorDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3195
3617
|
];
|
|
3196
3618
|
const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getConnectorDetails_ConfigPropertyMetadata);
|
|
3197
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
3619
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(getConnectorDetails_ConfigPropertyMetadata);
|
|
3198
3620
|
function keyBuilder$5(luvio, config) {
|
|
3199
3621
|
const resourceParams = createResourceParams$2(config);
|
|
3200
3622
|
return keyBuilder$6(luvio, resourceParams);
|
|
3201
3623
|
}
|
|
3202
3624
|
function typeCheckConfig$2(untrustedConfig) {
|
|
3203
3625
|
const config = {};
|
|
3204
|
-
typeCheckConfig$
|
|
3626
|
+
typeCheckConfig$d(untrustedConfig, config, getConnectorDetails_ConfigPropertyMetadata);
|
|
3205
3627
|
return config;
|
|
3206
3628
|
}
|
|
3207
3629
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -3250,7 +3672,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
3250
3672
|
});
|
|
3251
3673
|
}
|
|
3252
3674
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
3253
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3675
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
3254
3676
|
}
|
|
3255
3677
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
3256
3678
|
const { luvio, config } = context;
|
|
@@ -3427,14 +3849,14 @@ const getExternalIdentityProviders_ConfigPropertyMetadata = [
|
|
|
3427
3849
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3428
3850
|
];
|
|
3429
3851
|
const getExternalIdentityProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
3430
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
3852
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
3431
3853
|
function keyBuilder$3(luvio, config) {
|
|
3432
3854
|
const resourceParams = createResourceParams$1(config);
|
|
3433
3855
|
return keyBuilder$4(luvio, resourceParams);
|
|
3434
3856
|
}
|
|
3435
3857
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3436
3858
|
const config = {};
|
|
3437
|
-
typeCheckConfig$
|
|
3859
|
+
typeCheckConfig$d(untrustedConfig, config, getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
3438
3860
|
return config;
|
|
3439
3861
|
}
|
|
3440
3862
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -3483,7 +3905,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
3483
3905
|
});
|
|
3484
3906
|
}
|
|
3485
3907
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
3486
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3908
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
3487
3909
|
}
|
|
3488
3910
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
3489
3911
|
const { luvio, config } = context;
|
|
@@ -3928,14 +4350,14 @@ const getInvocableActions_ConfigPropertyMetadata = [
|
|
|
3928
4350
|
generateParamConfigMetadata('invocableActionTypes', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3929
4351
|
];
|
|
3930
4352
|
const getInvocableActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getInvocableActions_ConfigPropertyMetadata);
|
|
3931
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4353
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$d(getInvocableActions_ConfigPropertyMetadata);
|
|
3932
4354
|
function keyBuilder(luvio, config) {
|
|
3933
4355
|
const resourceParams = createResourceParams(config);
|
|
3934
4356
|
return keyBuilder$1(luvio, resourceParams);
|
|
3935
4357
|
}
|
|
3936
4358
|
function typeCheckConfig(untrustedConfig) {
|
|
3937
4359
|
const config = {};
|
|
3938
|
-
typeCheckConfig$
|
|
4360
|
+
typeCheckConfig$d(untrustedConfig, config, getInvocableActions_ConfigPropertyMetadata);
|
|
3939
4361
|
return config;
|
|
3940
4362
|
}
|
|
3941
4363
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -3984,7 +4406,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
3984
4406
|
});
|
|
3985
4407
|
}
|
|
3986
4408
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
3987
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4409
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
3988
4410
|
}
|
|
3989
4411
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
3990
4412
|
const { luvio, config } = context;
|
|
@@ -4009,4 +4431,4 @@ const getInvocableActionsAdapterFactory = (luvio) => function externalConnectivi
|
|
|
4009
4431
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
4010
4432
|
};
|
|
4011
4433
|
|
|
4012
|
-
export { createConnectionAdapterFactory, deleteConnectionAdapterFactory, getConnectionDetailsAdapterFactory, getConnectionsAdapterFactory, getConnectorDetailsAdapterFactory, getConnectorsAdapterFactory, getExternalConnectivityConnectionReferencedFlowsAdapterFactory, getExternalIdentityProvidersAdapterFactory, getInvocableActionsAdapterFactory, notifyUpdateAvailableFactory as notifyConnectionListUpdateAvailableFactory, refreshMetadataAdapterFactory, testConnectionAdapterFactory, updateConnectionAdapterFactory };
|
|
4434
|
+
export { createConnectionAdapterFactory, deleteConnectionAdapterFactory, getConnectionDetailsAdapterFactory, getConnectionsAdapterFactory, getConnectorDetailsAdapterFactory, getConnectorsAdapterFactory, getExternalConnectivityConnectionReferencedFlowsAdapterFactory, getExternalIdentityProvidersAdapterFactory, getInvocableActionsAdapterFactory, getNamedCredentialConfigAdapterFactory, notifyUpdateAvailableFactory as notifyConnectionListUpdateAvailableFactory, refreshMetadataAdapterFactory, testConnectionAdapterFactory, updateConnectionAdapterFactory };
|