@salesforce/lds-adapters-platform-external-connectivity 1.404.0-dev15 → 1.404.0-dev18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-external-connectivity.js +671 -215
- package/dist/es/es2018/types/src/generated/adapters/createConnection.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/adapters/getNamedCredentialConfig.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/updateConnection.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getExternalConnectivityConnectionsNamedCredentialsByNamedCredentialName.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postExternalConnectivityConnections.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/putExternalConnectivityConnectionsByConnectionDeveloperName.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/ExternalConnectivityConnectionInputRepresentation.d.ts +13 -3
- package/dist/es/es2018/types/src/generated/types/ExternalConnectivityGetNamedCredentialResultRepresentation.d.ts +53 -0
- package/package.json +3 -3
- package/sfdc/index.js +1243 -775
- package/src/raml/api.raml +58 -0
- package/src/raml/luvio.raml +8 -0
|
@@ -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/v66.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/v66.0',
|
|
@@ -972,21 +972,23 @@ function createResourceRequest$a(config) {
|
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
-
const adapterName$
|
|
975
|
+
const adapterName$b = 'createConnection';
|
|
976
976
|
const createConnection_ConfigPropertyMetadata = [
|
|
977
|
-
generateParamConfigMetadata('authenticationTypeInput',
|
|
977
|
+
generateParamConfigMetadata('authenticationTypeInput', false, 2 /* Body */, 4 /* Unsupported */),
|
|
978
978
|
generateParamConfigMetadata('agentActionEnabled', false, 2 /* Body */, 4 /* Unsupported */),
|
|
979
979
|
generateParamConfigMetadata('connectorDeveloperName', true, 2 /* Body */, 0 /* String */),
|
|
980
980
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
981
981
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
982
|
+
generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
|
|
983
|
+
generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
982
984
|
];
|
|
983
|
-
const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
984
|
-
const createResourceParams$
|
|
985
|
-
function typeCheckConfig$
|
|
985
|
+
const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createConnection_ConfigPropertyMetadata);
|
|
986
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(createConnection_ConfigPropertyMetadata);
|
|
987
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
986
988
|
const config = {};
|
|
987
|
-
typeCheckConfig$
|
|
989
|
+
typeCheckConfig$d(untrustedConfig, config, createConnection_ConfigPropertyMetadata);
|
|
988
990
|
const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
|
|
989
|
-
const referenceAuthenticationTypeInputRepresentationValidationError = validate$
|
|
991
|
+
const referenceAuthenticationTypeInputRepresentationValidationError = validate$k(untrustedConfig_authenticationTypeInput);
|
|
990
992
|
if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
|
|
991
993
|
config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
|
|
992
994
|
}
|
|
@@ -997,32 +999,47 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
997
999
|
if (untrustedConfig_agentActionEnabled === null) {
|
|
998
1000
|
config.agentActionEnabled = untrustedConfig_agentActionEnabled;
|
|
999
1001
|
}
|
|
1002
|
+
const untrustedConfig_connectionParameters = untrustedConfig.connectionParameters;
|
|
1003
|
+
if (untrustedIsObject(untrustedConfig_connectionParameters)) {
|
|
1004
|
+
const untrustedConfig_connectionParameters_object = {};
|
|
1005
|
+
const untrustedConfig_connectionParameters_keys = Object.keys(untrustedConfig_connectionParameters);
|
|
1006
|
+
for (let i = 0, arrayLength = untrustedConfig_connectionParameters_keys.length; i < arrayLength; i++) {
|
|
1007
|
+
const key = untrustedConfig_connectionParameters_keys[i];
|
|
1008
|
+
const untrustedConfig_connectionParameters_prop = untrustedConfig_connectionParameters[key];
|
|
1009
|
+
if (untrustedConfig_connectionParameters_object !== undefined) {
|
|
1010
|
+
untrustedConfig_connectionParameters_object[key] = untrustedConfig_connectionParameters_prop;
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
if (untrustedConfig_connectionParameters_object !== undefined && Object.keys(untrustedConfig_connectionParameters_object).length >= 0) {
|
|
1014
|
+
config.connectionParameters = untrustedConfig_connectionParameters_object;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1000
1017
|
return config;
|
|
1001
1018
|
}
|
|
1002
|
-
function validateAdapterConfig$
|
|
1019
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
1003
1020
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1004
1021
|
return null;
|
|
1005
1022
|
}
|
|
1006
1023
|
if (process.env.NODE_ENV !== 'production') {
|
|
1007
1024
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1008
1025
|
}
|
|
1009
|
-
const config = typeCheckConfig$
|
|
1026
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
1010
1027
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1011
1028
|
return null;
|
|
1012
1029
|
}
|
|
1013
1030
|
return config;
|
|
1014
1031
|
}
|
|
1015
|
-
function buildNetworkSnapshot$
|
|
1016
|
-
const resourceParams = createResourceParams$
|
|
1017
|
-
const request = createResourceRequest$
|
|
1032
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
1033
|
+
const resourceParams = createResourceParams$b(config);
|
|
1034
|
+
const request = createResourceRequest$b(resourceParams);
|
|
1018
1035
|
return luvio.dispatchResourceRequest(request, options)
|
|
1019
1036
|
.then((response) => {
|
|
1020
1037
|
return luvio.handleSuccessResponse(() => {
|
|
1021
|
-
const snapshot = ingestSuccess$
|
|
1038
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
1022
1039
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1023
1040
|
}, () => {
|
|
1024
1041
|
const cache = new StoreKeyMap();
|
|
1025
|
-
getResponseCacheKeys$
|
|
1042
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
1026
1043
|
return cache;
|
|
1027
1044
|
});
|
|
1028
1045
|
}, (response) => {
|
|
@@ -1032,18 +1049,18 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
1032
1049
|
}
|
|
1033
1050
|
const createConnectionAdapterFactory = (luvio) => {
|
|
1034
1051
|
return function createConnection(untrustedConfig) {
|
|
1035
|
-
const config = validateAdapterConfig$
|
|
1052
|
+
const config = validateAdapterConfig$b(untrustedConfig, createConnection_ConfigPropertyNames);
|
|
1036
1053
|
// Invalid or incomplete config
|
|
1037
1054
|
if (config === null) {
|
|
1038
1055
|
throw new Error('Invalid config for "createConnection"');
|
|
1039
1056
|
}
|
|
1040
|
-
return buildNetworkSnapshot$
|
|
1057
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
1041
1058
|
};
|
|
1042
1059
|
};
|
|
1043
1060
|
|
|
1044
|
-
const TTL$
|
|
1045
|
-
const VERSION$
|
|
1046
|
-
function validate$
|
|
1061
|
+
const TTL$a = 500;
|
|
1062
|
+
const VERSION$a = "2f8128d7e2e433bc604c71441fa6fc50";
|
|
1063
|
+
function validate$i(obj, path = 'ExternalConnectivityConnectionEditDeleteResultRepresentation') {
|
|
1047
1064
|
const v_error = (() => {
|
|
1048
1065
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1049
1066
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1108,23 +1125,23 @@ function validate$h(obj, path = 'ExternalConnectivityConnectionEditDeleteResultR
|
|
|
1108
1125
|
})();
|
|
1109
1126
|
return v_error === undefined ? null : v_error;
|
|
1110
1127
|
}
|
|
1111
|
-
const RepresentationType$
|
|
1112
|
-
function keyBuilder$
|
|
1113
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1128
|
+
const RepresentationType$a = 'ExternalConnectivityConnectionEditDeleteResultRepresentation';
|
|
1129
|
+
function keyBuilder$h(luvio, config) {
|
|
1130
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.developerName;
|
|
1114
1131
|
}
|
|
1115
1132
|
function keyBuilderFromType$3(luvio, object) {
|
|
1116
1133
|
const keyParams = {
|
|
1117
1134
|
developerName: object.developerName
|
|
1118
1135
|
};
|
|
1119
|
-
return keyBuilder$
|
|
1136
|
+
return keyBuilder$h(luvio, keyParams);
|
|
1120
1137
|
}
|
|
1121
|
-
function normalize$
|
|
1138
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
1122
1139
|
return input;
|
|
1123
1140
|
}
|
|
1124
|
-
const select$
|
|
1141
|
+
const select$l = function ExternalConnectivityConnectionEditDeleteResultRepresentationSelect() {
|
|
1125
1142
|
return {
|
|
1126
1143
|
kind: 'Fragment',
|
|
1127
|
-
version: VERSION$
|
|
1144
|
+
version: VERSION$a,
|
|
1128
1145
|
private: [],
|
|
1129
1146
|
selections: [
|
|
1130
1147
|
{
|
|
@@ -1142,7 +1159,7 @@ const select$j = function ExternalConnectivityConnectionEditDeleteResultRepresen
|
|
|
1142
1159
|
]
|
|
1143
1160
|
};
|
|
1144
1161
|
};
|
|
1145
|
-
function equals$
|
|
1162
|
+
function equals$a(existing, incoming) {
|
|
1146
1163
|
const existing_developerName = existing.developerName;
|
|
1147
1164
|
const incoming_developerName = incoming.developerName;
|
|
1148
1165
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -1160,41 +1177,41 @@ function equals$9(existing, incoming) {
|
|
|
1160
1177
|
}
|
|
1161
1178
|
return true;
|
|
1162
1179
|
}
|
|
1163
|
-
const ingest$
|
|
1180
|
+
const ingest$a = function ExternalConnectivityConnectionEditDeleteResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1164
1181
|
if (process.env.NODE_ENV !== 'production') {
|
|
1165
|
-
const validateError = validate$
|
|
1182
|
+
const validateError = validate$i(input);
|
|
1166
1183
|
if (validateError !== null) {
|
|
1167
1184
|
throw validateError;
|
|
1168
1185
|
}
|
|
1169
1186
|
}
|
|
1170
1187
|
const key = keyBuilderFromType$3(luvio, input);
|
|
1171
|
-
const ttlToUse = TTL$
|
|
1172
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1188
|
+
const ttlToUse = TTL$a;
|
|
1189
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "external-connectivity", VERSION$a, RepresentationType$a, equals$a);
|
|
1173
1190
|
return createLink(key);
|
|
1174
1191
|
};
|
|
1175
|
-
function getTypeCacheKeys$
|
|
1192
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
1176
1193
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1177
1194
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1178
1195
|
rootKeySet.set(rootKey, {
|
|
1179
1196
|
namespace: keyPrefix,
|
|
1180
|
-
representationName: RepresentationType$
|
|
1197
|
+
representationName: RepresentationType$a,
|
|
1181
1198
|
mergeable: false
|
|
1182
1199
|
});
|
|
1183
1200
|
}
|
|
1184
1201
|
|
|
1185
|
-
function select$
|
|
1186
|
-
return select$
|
|
1202
|
+
function select$k(luvio, params) {
|
|
1203
|
+
return select$l();
|
|
1187
1204
|
}
|
|
1188
|
-
function getResponseCacheKeys$
|
|
1189
|
-
getTypeCacheKeys$
|
|
1205
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
1206
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1190
1207
|
}
|
|
1191
|
-
function ingestSuccess$
|
|
1208
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
1192
1209
|
const { body } = response;
|
|
1193
1210
|
const key = keyBuilderFromType$3(luvio, body);
|
|
1194
|
-
luvio.storeIngest(key, ingest$
|
|
1211
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1195
1212
|
const snapshot = luvio.storeLookup({
|
|
1196
1213
|
recordId: key,
|
|
1197
|
-
node: select$
|
|
1214
|
+
node: select$k(),
|
|
1198
1215
|
variables: {},
|
|
1199
1216
|
});
|
|
1200
1217
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1205,7 +1222,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
1205
1222
|
deepFreeze(snapshot.data);
|
|
1206
1223
|
return snapshot;
|
|
1207
1224
|
}
|
|
1208
|
-
function createResourceRequest$
|
|
1225
|
+
function createResourceRequest$a(config) {
|
|
1209
1226
|
const headers = {};
|
|
1210
1227
|
return {
|
|
1211
1228
|
baseUri: '/services/data/v66.0',
|
|
@@ -1219,41 +1236,41 @@ function createResourceRequest$9(config) {
|
|
|
1219
1236
|
};
|
|
1220
1237
|
}
|
|
1221
1238
|
|
|
1222
|
-
const adapterName$
|
|
1239
|
+
const adapterName$a = 'deleteConnection';
|
|
1223
1240
|
const deleteConnection_ConfigPropertyMetadata = [
|
|
1224
1241
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1225
1242
|
];
|
|
1226
|
-
const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1227
|
-
const createResourceParams$
|
|
1228
|
-
function typeCheckConfig$
|
|
1243
|
+
const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteConnection_ConfigPropertyMetadata);
|
|
1244
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(deleteConnection_ConfigPropertyMetadata);
|
|
1245
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
1229
1246
|
const config = {};
|
|
1230
|
-
typeCheckConfig$
|
|
1247
|
+
typeCheckConfig$d(untrustedConfig, config, deleteConnection_ConfigPropertyMetadata);
|
|
1231
1248
|
return config;
|
|
1232
1249
|
}
|
|
1233
|
-
function validateAdapterConfig$
|
|
1250
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
1234
1251
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1235
1252
|
return null;
|
|
1236
1253
|
}
|
|
1237
1254
|
if (process.env.NODE_ENV !== 'production') {
|
|
1238
1255
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1239
1256
|
}
|
|
1240
|
-
const config = typeCheckConfig$
|
|
1257
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
1241
1258
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1242
1259
|
return null;
|
|
1243
1260
|
}
|
|
1244
1261
|
return config;
|
|
1245
1262
|
}
|
|
1246
|
-
function buildNetworkSnapshot$
|
|
1247
|
-
const resourceParams = createResourceParams$
|
|
1248
|
-
const request = createResourceRequest$
|
|
1263
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
1264
|
+
const resourceParams = createResourceParams$a(config);
|
|
1265
|
+
const request = createResourceRequest$a(resourceParams);
|
|
1249
1266
|
return luvio.dispatchResourceRequest(request, options)
|
|
1250
1267
|
.then((response) => {
|
|
1251
1268
|
return luvio.handleSuccessResponse(() => {
|
|
1252
|
-
const snapshot = ingestSuccess$
|
|
1269
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
1253
1270
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1254
1271
|
}, () => {
|
|
1255
1272
|
const cache = new StoreKeyMap();
|
|
1256
|
-
getResponseCacheKeys$
|
|
1273
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
1257
1274
|
return cache;
|
|
1258
1275
|
});
|
|
1259
1276
|
}, (response) => {
|
|
@@ -1263,15 +1280,437 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
1263
1280
|
}
|
|
1264
1281
|
const deleteConnectionAdapterFactory = (luvio) => {
|
|
1265
1282
|
return function deleteConnection(untrustedConfig) {
|
|
1266
|
-
const config = validateAdapterConfig$
|
|
1283
|
+
const config = validateAdapterConfig$a(untrustedConfig, deleteConnection_ConfigPropertyNames);
|
|
1267
1284
|
// Invalid or incomplete config
|
|
1268
1285
|
if (config === null) {
|
|
1269
1286
|
throw new Error('Invalid config for "deleteConnection"');
|
|
1270
1287
|
}
|
|
1271
|
-
return buildNetworkSnapshot$
|
|
1288
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
1272
1289
|
};
|
|
1273
1290
|
};
|
|
1274
1291
|
|
|
1292
|
+
const TTL$9 = 500;
|
|
1293
|
+
const VERSION$9 = "c36b48fc8c9e4c961cfdf9533fb78bec";
|
|
1294
|
+
function validate$h(obj, path = 'ExternalConnectivityGetNamedCredentialResultRepresentation') {
|
|
1295
|
+
const v_error = (() => {
|
|
1296
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1297
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1298
|
+
}
|
|
1299
|
+
const obj_authenticationProtocol = obj.authenticationProtocol;
|
|
1300
|
+
const path_authenticationProtocol = path + '.authenticationProtocol';
|
|
1301
|
+
let obj_authenticationProtocol_union0 = null;
|
|
1302
|
+
const obj_authenticationProtocol_union0_error = (() => {
|
|
1303
|
+
if (typeof obj_authenticationProtocol !== 'string') {
|
|
1304
|
+
return new TypeError('Expected "string" but received "' + typeof obj_authenticationProtocol + '" (at "' + path_authenticationProtocol + '")');
|
|
1305
|
+
}
|
|
1306
|
+
})();
|
|
1307
|
+
if (obj_authenticationProtocol_union0_error != null) {
|
|
1308
|
+
obj_authenticationProtocol_union0 = obj_authenticationProtocol_union0_error.message;
|
|
1309
|
+
}
|
|
1310
|
+
let obj_authenticationProtocol_union1 = null;
|
|
1311
|
+
const obj_authenticationProtocol_union1_error = (() => {
|
|
1312
|
+
if (obj_authenticationProtocol !== null) {
|
|
1313
|
+
return new TypeError('Expected "null" but received "' + typeof obj_authenticationProtocol + '" (at "' + path_authenticationProtocol + '")');
|
|
1314
|
+
}
|
|
1315
|
+
})();
|
|
1316
|
+
if (obj_authenticationProtocol_union1_error != null) {
|
|
1317
|
+
obj_authenticationProtocol_union1 = obj_authenticationProtocol_union1_error.message;
|
|
1318
|
+
}
|
|
1319
|
+
if (obj_authenticationProtocol_union0 && obj_authenticationProtocol_union1) {
|
|
1320
|
+
let message = 'Object doesn\'t match union (at "' + path_authenticationProtocol + '")';
|
|
1321
|
+
message += '\n' + obj_authenticationProtocol_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1322
|
+
message += '\n' + obj_authenticationProtocol_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1323
|
+
return new TypeError(message);
|
|
1324
|
+
}
|
|
1325
|
+
const obj_description = obj.description;
|
|
1326
|
+
const path_description = path + '.description';
|
|
1327
|
+
let obj_description_union0 = null;
|
|
1328
|
+
const obj_description_union0_error = (() => {
|
|
1329
|
+
if (typeof obj_description !== 'string') {
|
|
1330
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1331
|
+
}
|
|
1332
|
+
})();
|
|
1333
|
+
if (obj_description_union0_error != null) {
|
|
1334
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
1335
|
+
}
|
|
1336
|
+
let obj_description_union1 = null;
|
|
1337
|
+
const obj_description_union1_error = (() => {
|
|
1338
|
+
if (obj_description !== null) {
|
|
1339
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1340
|
+
}
|
|
1341
|
+
})();
|
|
1342
|
+
if (obj_description_union1_error != null) {
|
|
1343
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
1344
|
+
}
|
|
1345
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
1346
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
1347
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1348
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1349
|
+
return new TypeError(message);
|
|
1350
|
+
}
|
|
1351
|
+
const obj_errorMessage = obj.errorMessage;
|
|
1352
|
+
const path_errorMessage = path + '.errorMessage';
|
|
1353
|
+
let obj_errorMessage_union0 = null;
|
|
1354
|
+
const obj_errorMessage_union0_error = (() => {
|
|
1355
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
1356
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1357
|
+
}
|
|
1358
|
+
})();
|
|
1359
|
+
if (obj_errorMessage_union0_error != null) {
|
|
1360
|
+
obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
|
|
1361
|
+
}
|
|
1362
|
+
let obj_errorMessage_union1 = null;
|
|
1363
|
+
const obj_errorMessage_union1_error = (() => {
|
|
1364
|
+
if (obj_errorMessage !== null) {
|
|
1365
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1366
|
+
}
|
|
1367
|
+
})();
|
|
1368
|
+
if (obj_errorMessage_union1_error != null) {
|
|
1369
|
+
obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
|
|
1370
|
+
}
|
|
1371
|
+
if (obj_errorMessage_union0 && obj_errorMessage_union1) {
|
|
1372
|
+
let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
|
|
1373
|
+
message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1374
|
+
message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1375
|
+
return new TypeError(message);
|
|
1376
|
+
}
|
|
1377
|
+
const obj_externalCredentialLabel = obj.externalCredentialLabel;
|
|
1378
|
+
const path_externalCredentialLabel = path + '.externalCredentialLabel';
|
|
1379
|
+
let obj_externalCredentialLabel_union0 = null;
|
|
1380
|
+
const obj_externalCredentialLabel_union0_error = (() => {
|
|
1381
|
+
if (typeof obj_externalCredentialLabel !== 'string') {
|
|
1382
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalCredentialLabel + '" (at "' + path_externalCredentialLabel + '")');
|
|
1383
|
+
}
|
|
1384
|
+
})();
|
|
1385
|
+
if (obj_externalCredentialLabel_union0_error != null) {
|
|
1386
|
+
obj_externalCredentialLabel_union0 = obj_externalCredentialLabel_union0_error.message;
|
|
1387
|
+
}
|
|
1388
|
+
let obj_externalCredentialLabel_union1 = null;
|
|
1389
|
+
const obj_externalCredentialLabel_union1_error = (() => {
|
|
1390
|
+
if (obj_externalCredentialLabel !== null) {
|
|
1391
|
+
return new TypeError('Expected "null" but received "' + typeof obj_externalCredentialLabel + '" (at "' + path_externalCredentialLabel + '")');
|
|
1392
|
+
}
|
|
1393
|
+
})();
|
|
1394
|
+
if (obj_externalCredentialLabel_union1_error != null) {
|
|
1395
|
+
obj_externalCredentialLabel_union1 = obj_externalCredentialLabel_union1_error.message;
|
|
1396
|
+
}
|
|
1397
|
+
if (obj_externalCredentialLabel_union0 && obj_externalCredentialLabel_union1) {
|
|
1398
|
+
let message = 'Object doesn\'t match union (at "' + path_externalCredentialLabel + '")';
|
|
1399
|
+
message += '\n' + obj_externalCredentialLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1400
|
+
message += '\n' + obj_externalCredentialLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1401
|
+
return new TypeError(message);
|
|
1402
|
+
}
|
|
1403
|
+
const obj_identityProvider = obj.identityProvider;
|
|
1404
|
+
const path_identityProvider = path + '.identityProvider';
|
|
1405
|
+
let obj_identityProvider_union0 = null;
|
|
1406
|
+
const obj_identityProvider_union0_error = (() => {
|
|
1407
|
+
if (typeof obj_identityProvider !== 'string') {
|
|
1408
|
+
return new TypeError('Expected "string" but received "' + typeof obj_identityProvider + '" (at "' + path_identityProvider + '")');
|
|
1409
|
+
}
|
|
1410
|
+
})();
|
|
1411
|
+
if (obj_identityProvider_union0_error != null) {
|
|
1412
|
+
obj_identityProvider_union0 = obj_identityProvider_union0_error.message;
|
|
1413
|
+
}
|
|
1414
|
+
let obj_identityProvider_union1 = null;
|
|
1415
|
+
const obj_identityProvider_union1_error = (() => {
|
|
1416
|
+
if (obj_identityProvider !== null) {
|
|
1417
|
+
return new TypeError('Expected "null" but received "' + typeof obj_identityProvider + '" (at "' + path_identityProvider + '")');
|
|
1418
|
+
}
|
|
1419
|
+
})();
|
|
1420
|
+
if (obj_identityProvider_union1_error != null) {
|
|
1421
|
+
obj_identityProvider_union1 = obj_identityProvider_union1_error.message;
|
|
1422
|
+
}
|
|
1423
|
+
if (obj_identityProvider_union0 && obj_identityProvider_union1) {
|
|
1424
|
+
let message = 'Object doesn\'t match union (at "' + path_identityProvider + '")';
|
|
1425
|
+
message += '\n' + obj_identityProvider_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1426
|
+
message += '\n' + obj_identityProvider_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1427
|
+
return new TypeError(message);
|
|
1428
|
+
}
|
|
1429
|
+
const obj_label = obj.label;
|
|
1430
|
+
const path_label = path + '.label';
|
|
1431
|
+
let obj_label_union0 = null;
|
|
1432
|
+
const obj_label_union0_error = (() => {
|
|
1433
|
+
if (typeof obj_label !== 'string') {
|
|
1434
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1435
|
+
}
|
|
1436
|
+
})();
|
|
1437
|
+
if (obj_label_union0_error != null) {
|
|
1438
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
1439
|
+
}
|
|
1440
|
+
let obj_label_union1 = null;
|
|
1441
|
+
const obj_label_union1_error = (() => {
|
|
1442
|
+
if (obj_label !== null) {
|
|
1443
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1444
|
+
}
|
|
1445
|
+
})();
|
|
1446
|
+
if (obj_label_union1_error != null) {
|
|
1447
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
1448
|
+
}
|
|
1449
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
1450
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
1451
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1452
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1453
|
+
return new TypeError(message);
|
|
1454
|
+
}
|
|
1455
|
+
const obj_namedCredentialName = obj.namedCredentialName;
|
|
1456
|
+
const path_namedCredentialName = path + '.namedCredentialName';
|
|
1457
|
+
let obj_namedCredentialName_union0 = null;
|
|
1458
|
+
const obj_namedCredentialName_union0_error = (() => {
|
|
1459
|
+
if (typeof obj_namedCredentialName !== 'string') {
|
|
1460
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namedCredentialName + '" (at "' + path_namedCredentialName + '")');
|
|
1461
|
+
}
|
|
1462
|
+
})();
|
|
1463
|
+
if (obj_namedCredentialName_union0_error != null) {
|
|
1464
|
+
obj_namedCredentialName_union0 = obj_namedCredentialName_union0_error.message;
|
|
1465
|
+
}
|
|
1466
|
+
let obj_namedCredentialName_union1 = null;
|
|
1467
|
+
const obj_namedCredentialName_union1_error = (() => {
|
|
1468
|
+
if (obj_namedCredentialName !== null) {
|
|
1469
|
+
return new TypeError('Expected "null" but received "' + typeof obj_namedCredentialName + '" (at "' + path_namedCredentialName + '")');
|
|
1470
|
+
}
|
|
1471
|
+
})();
|
|
1472
|
+
if (obj_namedCredentialName_union1_error != null) {
|
|
1473
|
+
obj_namedCredentialName_union1 = obj_namedCredentialName_union1_error.message;
|
|
1474
|
+
}
|
|
1475
|
+
if (obj_namedCredentialName_union0 && obj_namedCredentialName_union1) {
|
|
1476
|
+
let message = 'Object doesn\'t match union (at "' + path_namedCredentialName + '")';
|
|
1477
|
+
message += '\n' + obj_namedCredentialName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1478
|
+
message += '\n' + obj_namedCredentialName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1479
|
+
return new TypeError(message);
|
|
1480
|
+
}
|
|
1481
|
+
const obj_ncType = obj.ncType;
|
|
1482
|
+
const path_ncType = path + '.ncType';
|
|
1483
|
+
let obj_ncType_union0 = null;
|
|
1484
|
+
const obj_ncType_union0_error = (() => {
|
|
1485
|
+
if (typeof obj_ncType !== 'string') {
|
|
1486
|
+
return new TypeError('Expected "string" but received "' + typeof obj_ncType + '" (at "' + path_ncType + '")');
|
|
1487
|
+
}
|
|
1488
|
+
})();
|
|
1489
|
+
if (obj_ncType_union0_error != null) {
|
|
1490
|
+
obj_ncType_union0 = obj_ncType_union0_error.message;
|
|
1491
|
+
}
|
|
1492
|
+
let obj_ncType_union1 = null;
|
|
1493
|
+
const obj_ncType_union1_error = (() => {
|
|
1494
|
+
if (obj_ncType !== null) {
|
|
1495
|
+
return new TypeError('Expected "null" but received "' + typeof obj_ncType + '" (at "' + path_ncType + '")');
|
|
1496
|
+
}
|
|
1497
|
+
})();
|
|
1498
|
+
if (obj_ncType_union1_error != null) {
|
|
1499
|
+
obj_ncType_union1 = obj_ncType_union1_error.message;
|
|
1500
|
+
}
|
|
1501
|
+
if (obj_ncType_union0 && obj_ncType_union1) {
|
|
1502
|
+
let message = 'Object doesn\'t match union (at "' + path_ncType + '")';
|
|
1503
|
+
message += '\n' + obj_ncType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1504
|
+
message += '\n' + obj_ncType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1505
|
+
return new TypeError(message);
|
|
1506
|
+
}
|
|
1507
|
+
const obj_principalName = obj.principalName;
|
|
1508
|
+
const path_principalName = path + '.principalName';
|
|
1509
|
+
let obj_principalName_union0 = null;
|
|
1510
|
+
const obj_principalName_union0_error = (() => {
|
|
1511
|
+
if (typeof obj_principalName !== 'string') {
|
|
1512
|
+
return new TypeError('Expected "string" but received "' + typeof obj_principalName + '" (at "' + path_principalName + '")');
|
|
1513
|
+
}
|
|
1514
|
+
})();
|
|
1515
|
+
if (obj_principalName_union0_error != null) {
|
|
1516
|
+
obj_principalName_union0 = obj_principalName_union0_error.message;
|
|
1517
|
+
}
|
|
1518
|
+
let obj_principalName_union1 = null;
|
|
1519
|
+
const obj_principalName_union1_error = (() => {
|
|
1520
|
+
if (obj_principalName !== null) {
|
|
1521
|
+
return new TypeError('Expected "null" but received "' + typeof obj_principalName + '" (at "' + path_principalName + '")');
|
|
1522
|
+
}
|
|
1523
|
+
})();
|
|
1524
|
+
if (obj_principalName_union1_error != null) {
|
|
1525
|
+
obj_principalName_union1 = obj_principalName_union1_error.message;
|
|
1526
|
+
}
|
|
1527
|
+
if (obj_principalName_union0 && obj_principalName_union1) {
|
|
1528
|
+
let message = 'Object doesn\'t match union (at "' + path_principalName + '")';
|
|
1529
|
+
message += '\n' + obj_principalName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1530
|
+
message += '\n' + obj_principalName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1531
|
+
return new TypeError(message);
|
|
1532
|
+
}
|
|
1533
|
+
})();
|
|
1534
|
+
return v_error === undefined ? null : v_error;
|
|
1535
|
+
}
|
|
1536
|
+
const RepresentationType$9 = 'ExternalConnectivityGetNamedCredentialResultRepresentation';
|
|
1537
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1538
|
+
return input;
|
|
1539
|
+
}
|
|
1540
|
+
const select$j = function ExternalConnectivityGetNamedCredentialResultRepresentationSelect() {
|
|
1541
|
+
return {
|
|
1542
|
+
kind: 'Fragment',
|
|
1543
|
+
version: VERSION$9,
|
|
1544
|
+
private: [],
|
|
1545
|
+
opaque: true
|
|
1546
|
+
};
|
|
1547
|
+
};
|
|
1548
|
+
function equals$9(existing, incoming) {
|
|
1549
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1550
|
+
return false;
|
|
1551
|
+
}
|
|
1552
|
+
return true;
|
|
1553
|
+
}
|
|
1554
|
+
const ingest$9 = function ExternalConnectivityGetNamedCredentialResultRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1555
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1556
|
+
const validateError = validate$h(input);
|
|
1557
|
+
if (validateError !== null) {
|
|
1558
|
+
throw validateError;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
const key = path.fullPath;
|
|
1562
|
+
const ttlToUse = TTL$9;
|
|
1563
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "external-connectivity", VERSION$9, RepresentationType$9, equals$9);
|
|
1564
|
+
return createLink(key);
|
|
1565
|
+
};
|
|
1566
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
1567
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1568
|
+
const rootKey = fullPathFactory();
|
|
1569
|
+
rootKeySet.set(rootKey, {
|
|
1570
|
+
namespace: keyPrefix,
|
|
1571
|
+
representationName: RepresentationType$9,
|
|
1572
|
+
mergeable: false
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
function select$i(luvio, params) {
|
|
1577
|
+
return select$j();
|
|
1578
|
+
}
|
|
1579
|
+
function keyBuilder$g(luvio, params) {
|
|
1580
|
+
return keyPrefix + '::ExternalConnectivityGetNamedCredentialResultRepresentation:(' + 'namedCredentialName:' + params.urlParams.namedCredentialName + ')';
|
|
1581
|
+
}
|
|
1582
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
1583
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
1584
|
+
}
|
|
1585
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
1586
|
+
const { body } = response;
|
|
1587
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
1588
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
1589
|
+
const snapshot = luvio.storeLookup({
|
|
1590
|
+
recordId: key,
|
|
1591
|
+
node: select$i(),
|
|
1592
|
+
variables: {},
|
|
1593
|
+
}, snapshotRefresh);
|
|
1594
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1595
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1596
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
deepFreeze(snapshot.data);
|
|
1600
|
+
return snapshot;
|
|
1601
|
+
}
|
|
1602
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
1603
|
+
const key = keyBuilder$g(luvio, params);
|
|
1604
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1605
|
+
const storeMetadataParams = {
|
|
1606
|
+
ttl: TTL$9,
|
|
1607
|
+
namespace: keyPrefix,
|
|
1608
|
+
version: VERSION$9,
|
|
1609
|
+
representationName: RepresentationType$9
|
|
1610
|
+
};
|
|
1611
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1612
|
+
return errorSnapshot;
|
|
1613
|
+
}
|
|
1614
|
+
function createResourceRequest$9(config) {
|
|
1615
|
+
const headers = {};
|
|
1616
|
+
return {
|
|
1617
|
+
baseUri: '/services/data/v66.0',
|
|
1618
|
+
basePath: '/external-connectivity/connections/named-credentials/' + config.urlParams.namedCredentialName + '',
|
|
1619
|
+
method: 'get',
|
|
1620
|
+
body: null,
|
|
1621
|
+
urlParams: config.urlParams,
|
|
1622
|
+
queryParams: {},
|
|
1623
|
+
headers,
|
|
1624
|
+
priority: 'normal',
|
|
1625
|
+
};
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
const adapterName$9 = 'getNamedCredentialConfig';
|
|
1629
|
+
const getNamedCredentialConfig_ConfigPropertyMetadata = [
|
|
1630
|
+
generateParamConfigMetadata('namedCredentialName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1631
|
+
];
|
|
1632
|
+
const getNamedCredentialConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getNamedCredentialConfig_ConfigPropertyMetadata);
|
|
1633
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(getNamedCredentialConfig_ConfigPropertyMetadata);
|
|
1634
|
+
function keyBuilder$f(luvio, config) {
|
|
1635
|
+
const resourceParams = createResourceParams$9(config);
|
|
1636
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
1637
|
+
}
|
|
1638
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1639
|
+
const config = {};
|
|
1640
|
+
typeCheckConfig$d(untrustedConfig, config, getNamedCredentialConfig_ConfigPropertyMetadata);
|
|
1641
|
+
return config;
|
|
1642
|
+
}
|
|
1643
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1644
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1645
|
+
return null;
|
|
1646
|
+
}
|
|
1647
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1648
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1649
|
+
}
|
|
1650
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1651
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1652
|
+
return null;
|
|
1653
|
+
}
|
|
1654
|
+
return config;
|
|
1655
|
+
}
|
|
1656
|
+
function adapterFragment$6(luvio, config) {
|
|
1657
|
+
createResourceParams$9(config);
|
|
1658
|
+
return select$i();
|
|
1659
|
+
}
|
|
1660
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
1661
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
1662
|
+
config,
|
|
1663
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1664
|
+
});
|
|
1665
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1666
|
+
}
|
|
1667
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
1668
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
1669
|
+
config,
|
|
1670
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1671
|
+
});
|
|
1672
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1673
|
+
}
|
|
1674
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
1675
|
+
const resourceParams = createResourceParams$9(config);
|
|
1676
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1677
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1678
|
+
.then((response) => {
|
|
1679
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
1680
|
+
const cache = new StoreKeyMap();
|
|
1681
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
1682
|
+
return cache;
|
|
1683
|
+
});
|
|
1684
|
+
}, (response) => {
|
|
1685
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
1686
|
+
});
|
|
1687
|
+
}
|
|
1688
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
1689
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
1690
|
+
}
|
|
1691
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
1692
|
+
const { luvio, config } = context;
|
|
1693
|
+
const selector = {
|
|
1694
|
+
recordId: keyBuilder$f(luvio, config),
|
|
1695
|
+
node: adapterFragment$6(luvio, config),
|
|
1696
|
+
variables: {},
|
|
1697
|
+
};
|
|
1698
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1699
|
+
config,
|
|
1700
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
1701
|
+
});
|
|
1702
|
+
return cacheSnapshot;
|
|
1703
|
+
}
|
|
1704
|
+
const getNamedCredentialConfigAdapterFactory = (luvio) => function externalConnectivity__getNamedCredentialConfig(untrustedConfig, requestContext) {
|
|
1705
|
+
const config = validateAdapterConfig$9(untrustedConfig, getNamedCredentialConfig_ConfigPropertyNames);
|
|
1706
|
+
// Invalid or incomplete config
|
|
1707
|
+
if (config === null) {
|
|
1708
|
+
return null;
|
|
1709
|
+
}
|
|
1710
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1711
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
1712
|
+
};
|
|
1713
|
+
|
|
1275
1714
|
function validate$g(obj, path = 'AuthenticationParameterDefinitionRepresentation') {
|
|
1276
1715
|
const v_error = (() => {
|
|
1277
1716
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1489,7 +1928,7 @@ function validate$d(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
|
|
|
1489
1928
|
}
|
|
1490
1929
|
const obj_externalConnectorMetadata = obj.externalConnectorMetadata;
|
|
1491
1930
|
const path_externalConnectorMetadata = path + '.externalConnectorMetadata';
|
|
1492
|
-
const referencepath_externalConnectorMetadataValidationError = validate$
|
|
1931
|
+
const referencepath_externalConnectorMetadataValidationError = validate$n(obj_externalConnectorMetadata, path_externalConnectorMetadata);
|
|
1493
1932
|
if (referencepath_externalConnectorMetadataValidationError !== null) {
|
|
1494
1933
|
let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_externalConnectorMetadata + '")\n';
|
|
1495
1934
|
message += referencepath_externalConnectorMetadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1641,14 +2080,14 @@ const getConnectionDetails_ConfigPropertyMetadata = [
|
|
|
1641
2080
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1642
2081
|
];
|
|
1643
2082
|
const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getConnectionDetails_ConfigPropertyMetadata);
|
|
1644
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
2083
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(getConnectionDetails_ConfigPropertyMetadata);
|
|
1645
2084
|
function keyBuilder$d(luvio, config) {
|
|
1646
2085
|
const resourceParams = createResourceParams$8(config);
|
|
1647
2086
|
return keyBuilder$e(luvio, resourceParams);
|
|
1648
2087
|
}
|
|
1649
2088
|
function typeCheckConfig$8(untrustedConfig) {
|
|
1650
2089
|
const config = {};
|
|
1651
|
-
typeCheckConfig$
|
|
2090
|
+
typeCheckConfig$d(untrustedConfig, config, getConnectionDetails_ConfigPropertyMetadata);
|
|
1652
2091
|
return config;
|
|
1653
2092
|
}
|
|
1654
2093
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -1697,7 +2136,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1697
2136
|
});
|
|
1698
2137
|
}
|
|
1699
2138
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
1700
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2139
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
1701
2140
|
}
|
|
1702
2141
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
1703
2142
|
const { luvio, config } = context;
|
|
@@ -1723,15 +2162,15 @@ const getConnectionDetailsAdapterFactory = (luvio) => function externalConnectiv
|
|
|
1723
2162
|
};
|
|
1724
2163
|
|
|
1725
2164
|
function select$f(luvio, params) {
|
|
1726
|
-
return select$
|
|
2165
|
+
return select$l();
|
|
1727
2166
|
}
|
|
1728
2167
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
1729
|
-
getTypeCacheKeys$
|
|
2168
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1730
2169
|
}
|
|
1731
2170
|
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
1732
2171
|
const { body } = response;
|
|
1733
2172
|
const key = keyBuilderFromType$3(luvio, body);
|
|
1734
|
-
luvio.storeIngest(key, ingest$
|
|
2173
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1735
2174
|
const snapshot = luvio.storeLookup({
|
|
1736
2175
|
recordId: key,
|
|
1737
2176
|
node: select$f(),
|
|
@@ -1762,19 +2201,21 @@ function createResourceRequest$7(config) {
|
|
|
1762
2201
|
const adapterName$7 = 'updateConnection';
|
|
1763
2202
|
const updateConnection_ConfigPropertyMetadata = [
|
|
1764
2203
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1765
|
-
generateParamConfigMetadata('authenticationTypeInput',
|
|
2204
|
+
generateParamConfigMetadata('authenticationTypeInput', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1766
2205
|
generateParamConfigMetadata('agentActionEnabled', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1767
2206
|
generateParamConfigMetadata('connectorDeveloperName', true, 2 /* Body */, 0 /* String */),
|
|
1768
2207
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
1769
2208
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
2209
|
+
generateParamConfigMetadata('connectionType', false, 2 /* Body */, 0 /* String */),
|
|
2210
|
+
generateParamConfigMetadata('connectionParameters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1770
2211
|
];
|
|
1771
2212
|
const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateConnection_ConfigPropertyMetadata);
|
|
1772
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
2213
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(updateConnection_ConfigPropertyMetadata);
|
|
1773
2214
|
function typeCheckConfig$7(untrustedConfig) {
|
|
1774
2215
|
const config = {};
|
|
1775
|
-
typeCheckConfig$
|
|
2216
|
+
typeCheckConfig$d(untrustedConfig, config, updateConnection_ConfigPropertyMetadata);
|
|
1776
2217
|
const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
|
|
1777
|
-
const referenceAuthenticationTypeInputRepresentationValidationError = validate$
|
|
2218
|
+
const referenceAuthenticationTypeInputRepresentationValidationError = validate$k(untrustedConfig_authenticationTypeInput);
|
|
1778
2219
|
if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
|
|
1779
2220
|
config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
|
|
1780
2221
|
}
|
|
@@ -1785,6 +2226,21 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
1785
2226
|
if (untrustedConfig_agentActionEnabled === null) {
|
|
1786
2227
|
config.agentActionEnabled = untrustedConfig_agentActionEnabled;
|
|
1787
2228
|
}
|
|
2229
|
+
const untrustedConfig_connectionParameters = untrustedConfig.connectionParameters;
|
|
2230
|
+
if (untrustedIsObject(untrustedConfig_connectionParameters)) {
|
|
2231
|
+
const untrustedConfig_connectionParameters_object = {};
|
|
2232
|
+
const untrustedConfig_connectionParameters_keys = Object.keys(untrustedConfig_connectionParameters);
|
|
2233
|
+
for (let i = 0, arrayLength = untrustedConfig_connectionParameters_keys.length; i < arrayLength; i++) {
|
|
2234
|
+
const key = untrustedConfig_connectionParameters_keys[i];
|
|
2235
|
+
const untrustedConfig_connectionParameters_prop = untrustedConfig_connectionParameters[key];
|
|
2236
|
+
if (untrustedConfig_connectionParameters_object !== undefined) {
|
|
2237
|
+
untrustedConfig_connectionParameters_object[key] = untrustedConfig_connectionParameters_prop;
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
if (untrustedConfig_connectionParameters_object !== undefined && Object.keys(untrustedConfig_connectionParameters_object).length >= 0) {
|
|
2241
|
+
config.connectionParameters = untrustedConfig_connectionParameters_object;
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
1788
2244
|
return config;
|
|
1789
2245
|
}
|
|
1790
2246
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -2199,14 +2655,14 @@ const getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata =
|
|
|
2199
2655
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2200
2656
|
];
|
|
2201
2657
|
const getExternalConnectivityConnectionReferencedFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata);
|
|
2202
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
2658
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata);
|
|
2203
2659
|
function keyBuilder$b(luvio, config) {
|
|
2204
2660
|
const resourceParams = createResourceParams$6(config);
|
|
2205
2661
|
return keyBuilder$c(luvio, resourceParams);
|
|
2206
2662
|
}
|
|
2207
2663
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2208
2664
|
const config = {};
|
|
2209
|
-
typeCheckConfig$
|
|
2665
|
+
typeCheckConfig$d(untrustedConfig, config, getExternalConnectivityConnectionReferencedFlows_ConfigPropertyMetadata);
|
|
2210
2666
|
return config;
|
|
2211
2667
|
}
|
|
2212
2668
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -2255,7 +2711,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
2255
2711
|
});
|
|
2256
2712
|
}
|
|
2257
2713
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2258
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2714
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
2259
2715
|
}
|
|
2260
2716
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
2261
2717
|
const { luvio, config } = context;
|
|
@@ -2428,10 +2884,10 @@ const refreshMetadata_ConfigPropertyMetadata = [
|
|
|
2428
2884
|
generateParamConfigMetadata('typeProviderRequestParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2429
2885
|
];
|
|
2430
2886
|
const refreshMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, refreshMetadata_ConfigPropertyMetadata);
|
|
2431
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
2887
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(refreshMetadata_ConfigPropertyMetadata);
|
|
2432
2888
|
function typeCheckConfig$5(untrustedConfig) {
|
|
2433
2889
|
const config = {};
|
|
2434
|
-
typeCheckConfig$
|
|
2890
|
+
typeCheckConfig$d(untrustedConfig, config, refreshMetadata_ConfigPropertyMetadata);
|
|
2435
2891
|
const untrustedConfig_typeProviderRequestParameters = untrustedConfig.typeProviderRequestParameters;
|
|
2436
2892
|
if (ArrayIsArray$1(untrustedConfig_typeProviderRequestParameters)) {
|
|
2437
2893
|
const untrustedConfig_typeProviderRequestParameters_array = [];
|
|
@@ -2699,10 +3155,10 @@ const testConnection_ConfigPropertyMetadata = [
|
|
|
2699
3155
|
generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2700
3156
|
];
|
|
2701
3157
|
const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, testConnection_ConfigPropertyMetadata);
|
|
2702
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
3158
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(testConnection_ConfigPropertyMetadata);
|
|
2703
3159
|
function typeCheckConfig$4(untrustedConfig) {
|
|
2704
3160
|
const config = {};
|
|
2705
|
-
typeCheckConfig$
|
|
3161
|
+
typeCheckConfig$d(untrustedConfig, config, testConnection_ConfigPropertyMetadata);
|
|
2706
3162
|
return config;
|
|
2707
3163
|
}
|
|
2708
3164
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -2762,7 +3218,7 @@ function validate$6(obj, path = 'ExternalConnectivityConnectorListRepresentation
|
|
|
2762
3218
|
for (let i = 0; i < obj_connectors.length; i++) {
|
|
2763
3219
|
const obj_connectors_item = obj_connectors[i];
|
|
2764
3220
|
const path_connectors_item = path_connectors + '[' + i + ']';
|
|
2765
|
-
const referencepath_connectors_itemValidationError = validate$
|
|
3221
|
+
const referencepath_connectors_itemValidationError = validate$n(obj_connectors_item, path_connectors_item);
|
|
2766
3222
|
if (referencepath_connectors_itemValidationError !== null) {
|
|
2767
3223
|
let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_connectors_item + '")\n';
|
|
2768
3224
|
message += referencepath_connectors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2867,7 +3323,7 @@ function createResourceRequest$3(config) {
|
|
|
2867
3323
|
const adapterName$3 = 'getConnectors';
|
|
2868
3324
|
const getConnectors_ConfigPropertyMetadata = [];
|
|
2869
3325
|
const getConnectors_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getConnectors_ConfigPropertyMetadata);
|
|
2870
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
3326
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(getConnectors_ConfigPropertyMetadata);
|
|
2871
3327
|
function keyBuilder$7(luvio, config) {
|
|
2872
3328
|
createResourceParams$3(config);
|
|
2873
3329
|
return keyBuilder$8();
|
|
@@ -2922,7 +3378,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
2922
3378
|
});
|
|
2923
3379
|
}
|
|
2924
3380
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2925
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3381
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
2926
3382
|
}
|
|
2927
3383
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2928
3384
|
const { luvio, config } = context;
|
|
@@ -3006,7 +3462,7 @@ function validate$4(obj, path = 'ExternalConnectivityConnectorDetailsRepresentat
|
|
|
3006
3462
|
for (let i = 0; i < obj_iconMetadata.length; i++) {
|
|
3007
3463
|
const obj_iconMetadata_item = obj_iconMetadata[i];
|
|
3008
3464
|
const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
|
|
3009
|
-
const referencepath_iconMetadata_itemValidationError = validate$
|
|
3465
|
+
const referencepath_iconMetadata_itemValidationError = validate$o(obj_iconMetadata_item, path_iconMetadata_item);
|
|
3010
3466
|
if (referencepath_iconMetadata_itemValidationError !== null) {
|
|
3011
3467
|
let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
|
|
3012
3468
|
message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3158,14 +3614,14 @@ const getConnectorDetails_ConfigPropertyMetadata = [
|
|
|
3158
3614
|
generateParamConfigMetadata('connectorDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3159
3615
|
];
|
|
3160
3616
|
const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getConnectorDetails_ConfigPropertyMetadata);
|
|
3161
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
3617
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(getConnectorDetails_ConfigPropertyMetadata);
|
|
3162
3618
|
function keyBuilder$5(luvio, config) {
|
|
3163
3619
|
const resourceParams = createResourceParams$2(config);
|
|
3164
3620
|
return keyBuilder$6(luvio, resourceParams);
|
|
3165
3621
|
}
|
|
3166
3622
|
function typeCheckConfig$2(untrustedConfig) {
|
|
3167
3623
|
const config = {};
|
|
3168
|
-
typeCheckConfig$
|
|
3624
|
+
typeCheckConfig$d(untrustedConfig, config, getConnectorDetails_ConfigPropertyMetadata);
|
|
3169
3625
|
return config;
|
|
3170
3626
|
}
|
|
3171
3627
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -3214,7 +3670,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
3214
3670
|
});
|
|
3215
3671
|
}
|
|
3216
3672
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
3217
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3673
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
3218
3674
|
}
|
|
3219
3675
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
3220
3676
|
const { luvio, config } = context;
|
|
@@ -3391,14 +3847,14 @@ const getExternalIdentityProviders_ConfigPropertyMetadata = [
|
|
|
3391
3847
|
generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3392
3848
|
];
|
|
3393
3849
|
const getExternalIdentityProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
3394
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
3850
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
3395
3851
|
function keyBuilder$3(luvio, config) {
|
|
3396
3852
|
const resourceParams = createResourceParams$1(config);
|
|
3397
3853
|
return keyBuilder$4(luvio, resourceParams);
|
|
3398
3854
|
}
|
|
3399
3855
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3400
3856
|
const config = {};
|
|
3401
|
-
typeCheckConfig$
|
|
3857
|
+
typeCheckConfig$d(untrustedConfig, config, getExternalIdentityProviders_ConfigPropertyMetadata);
|
|
3402
3858
|
return config;
|
|
3403
3859
|
}
|
|
3404
3860
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -3447,7 +3903,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
3447
3903
|
});
|
|
3448
3904
|
}
|
|
3449
3905
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
3450
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3906
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
3451
3907
|
}
|
|
3452
3908
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
3453
3909
|
const { luvio, config } = context;
|
|
@@ -3892,14 +4348,14 @@ const getInvocableActions_ConfigPropertyMetadata = [
|
|
|
3892
4348
|
generateParamConfigMetadata('invocableActionTypes', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3893
4349
|
];
|
|
3894
4350
|
const getInvocableActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getInvocableActions_ConfigPropertyMetadata);
|
|
3895
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4351
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$d(getInvocableActions_ConfigPropertyMetadata);
|
|
3896
4352
|
function keyBuilder(luvio, config) {
|
|
3897
4353
|
const resourceParams = createResourceParams(config);
|
|
3898
4354
|
return keyBuilder$1(luvio, resourceParams);
|
|
3899
4355
|
}
|
|
3900
4356
|
function typeCheckConfig(untrustedConfig) {
|
|
3901
4357
|
const config = {};
|
|
3902
|
-
typeCheckConfig$
|
|
4358
|
+
typeCheckConfig$d(untrustedConfig, config, getInvocableActions_ConfigPropertyMetadata);
|
|
3903
4359
|
return config;
|
|
3904
4360
|
}
|
|
3905
4361
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -3948,7 +4404,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
3948
4404
|
});
|
|
3949
4405
|
}
|
|
3950
4406
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
3951
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4407
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
3952
4408
|
}
|
|
3953
4409
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
3954
4410
|
const { luvio, config } = context;
|
|
@@ -3973,4 +4429,4 @@ const getInvocableActionsAdapterFactory = (luvio) => function externalConnectivi
|
|
|
3973
4429
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
3974
4430
|
};
|
|
3975
4431
|
|
|
3976
|
-
export { createConnectionAdapterFactory, deleteConnectionAdapterFactory, getConnectionDetailsAdapterFactory, getConnectionsAdapterFactory, getConnectorDetailsAdapterFactory, getConnectorsAdapterFactory, getExternalConnectivityConnectionReferencedFlowsAdapterFactory, getExternalIdentityProvidersAdapterFactory, getInvocableActionsAdapterFactory, notifyUpdateAvailableFactory as notifyConnectionListUpdateAvailableFactory, refreshMetadataAdapterFactory, testConnectionAdapterFactory, updateConnectionAdapterFactory };
|
|
4432
|
+
export { createConnectionAdapterFactory, deleteConnectionAdapterFactory, getConnectionDetailsAdapterFactory, getConnectionsAdapterFactory, getConnectorDetailsAdapterFactory, getConnectorsAdapterFactory, getExternalConnectivityConnectionReferencedFlowsAdapterFactory, getExternalIdentityProvidersAdapterFactory, getInvocableActionsAdapterFactory, getNamedCredentialConfigAdapterFactory, notifyUpdateAvailableFactory as notifyConnectionListUpdateAvailableFactory, refreshMetadataAdapterFactory, testConnectionAdapterFactory, updateConnectionAdapterFactory };
|