@salesforce/lds-adapters-platform-external-connectivity 1.315.0 → 1.317.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.
@@ -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$4, StoreKeyMap, createResourceParams as createResourceParams$8, typeCheckConfig as typeCheckConfig$8 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, StoreKeyMap, createResourceParams as createResourceParams$a, typeCheckConfig as typeCheckConfig$a } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -92,7 +92,7 @@ function createLink(ref) {
92
92
  };
93
93
  }
94
94
 
95
- function validate$e(obj, path = 'ConnectorIconMetadataRepresentation') {
95
+ function validate$h(obj, path = 'ConnectorIconMetadataRepresentation') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
98
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -126,9 +126,9 @@ function validate$e(obj, path = 'ConnectorIconMetadataRepresentation') {
126
126
  return v_error === undefined ? null : v_error;
127
127
  }
128
128
 
129
- const TTL$7 = 500;
130
- const VERSION$8 = "3e461ecbd697039c1881e691a2ee7bef";
131
- function validate$d(obj, path = 'ExternalConnectivityConnectorRepresentation') {
129
+ const TTL$9 = 500;
130
+ const VERSION$a = "3e461ecbd697039c1881e691a2ee7bef";
131
+ function validate$g(obj, path = 'ExternalConnectivityConnectorRepresentation') {
132
132
  const v_error = (() => {
133
133
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
134
134
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -156,7 +156,7 @@ function validate$d(obj, path = 'ExternalConnectivityConnectorRepresentation') {
156
156
  for (let i = 0; i < obj_iconMetadata.length; i++) {
157
157
  const obj_iconMetadata_item = obj_iconMetadata[i];
158
158
  const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
159
- const referencepath_iconMetadata_itemValidationError = validate$e(obj_iconMetadata_item, path_iconMetadata_item);
159
+ const referencepath_iconMetadata_itemValidationError = validate$h(obj_iconMetadata_item, path_iconMetadata_item);
160
160
  if (referencepath_iconMetadata_itemValidationError !== null) {
161
161
  let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
162
162
  message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -196,48 +196,48 @@ function validate$d(obj, path = 'ExternalConnectivityConnectorRepresentation') {
196
196
  })();
197
197
  return v_error === undefined ? null : v_error;
198
198
  }
199
- const RepresentationType$8 = 'ExternalConnectivityConnectorRepresentation';
200
- function normalize$8(input, existing, path, luvio, store, timestamp) {
199
+ const RepresentationType$a = 'ExternalConnectivityConnectorRepresentation';
200
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
201
201
  return input;
202
202
  }
203
- const select$g = function ExternalConnectivityConnectorRepresentationSelect() {
203
+ const select$k = function ExternalConnectivityConnectorRepresentationSelect() {
204
204
  return {
205
205
  kind: 'Fragment',
206
- version: VERSION$8,
206
+ version: VERSION$a,
207
207
  private: [],
208
208
  opaque: true
209
209
  };
210
210
  };
211
- function equals$8(existing, incoming) {
211
+ function equals$a(existing, incoming) {
212
212
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
213
213
  return false;
214
214
  }
215
215
  return true;
216
216
  }
217
- const ingest$8 = function ExternalConnectivityConnectorRepresentationIngest(input, path, luvio, store, timestamp) {
217
+ const ingest$a = function ExternalConnectivityConnectorRepresentationIngest(input, path, luvio, store, timestamp) {
218
218
  if (process.env.NODE_ENV !== 'production') {
219
- const validateError = validate$d(input);
219
+ const validateError = validate$g(input);
220
220
  if (validateError !== null) {
221
221
  throw validateError;
222
222
  }
223
223
  }
224
224
  const key = path.fullPath;
225
- const ttlToUse = TTL$7;
226
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "external-connectivity", VERSION$8, RepresentationType$8, equals$8);
225
+ const ttlToUse = TTL$9;
226
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "external-connectivity", VERSION$a, RepresentationType$a, equals$a);
227
227
  return createLink(key);
228
228
  };
229
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
229
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
230
230
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
231
231
  const rootKey = fullPathFactory();
232
232
  rootKeySet.set(rootKey, {
233
233
  namespace: keyPrefix,
234
- representationName: RepresentationType$8,
234
+ representationName: RepresentationType$a,
235
235
  mergeable: false
236
236
  });
237
237
  }
238
238
 
239
- const VERSION$7 = "89d2327df1e3dc86e80db8de5afc6ad8";
240
- function validate$c(obj, path = 'ExternalConnectivityConnectionRepresentation') {
239
+ const VERSION$9 = "89d2327df1e3dc86e80db8de5afc6ad8";
240
+ function validate$f(obj, path = 'ExternalConnectivityConnectionRepresentation') {
241
241
  const v_error = (() => {
242
242
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
243
243
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -337,11 +337,11 @@ function validate$c(obj, path = 'ExternalConnectivityConnectionRepresentation')
337
337
  })();
338
338
  return v_error === undefined ? null : v_error;
339
339
  }
340
- const RepresentationType$7 = 'ExternalConnectivityConnectionRepresentation';
341
- function normalize$7(input, existing, path, luvio, store, timestamp) {
340
+ const RepresentationType$9 = 'ExternalConnectivityConnectionRepresentation';
341
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
342
342
  const input_externalConnectorMetadata = input.externalConnectorMetadata;
343
343
  const input_externalConnectorMetadata_id = path.fullPath + '__externalConnectorMetadata';
344
- input.externalConnectorMetadata = ingest$8(input_externalConnectorMetadata, {
344
+ input.externalConnectorMetadata = ingest$a(input_externalConnectorMetadata, {
345
345
  fullPath: input_externalConnectorMetadata_id,
346
346
  propertyName: 'externalConnectorMetadata',
347
347
  parent: {
@@ -353,10 +353,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
353
353
  }, luvio, store, timestamp);
354
354
  return input;
355
355
  }
356
- const select$f = function ExternalConnectivityConnectionRepresentationSelect() {
356
+ const select$j = function ExternalConnectivityConnectionRepresentationSelect() {
357
357
  return {
358
358
  kind: 'Fragment',
359
- version: VERSION$7,
359
+ version: VERSION$9,
360
360
  private: [],
361
361
  selections: [
362
362
  {
@@ -382,7 +382,7 @@ const select$f = function ExternalConnectivityConnectionRepresentationSelect() {
382
382
  {
383
383
  name: 'externalConnectorMetadata',
384
384
  kind: 'Link',
385
- fragment: select$g()
385
+ fragment: select$k()
386
386
  },
387
387
  {
388
388
  name: 'lastModifiedBy',
@@ -403,7 +403,7 @@ const select$f = function ExternalConnectivityConnectionRepresentationSelect() {
403
403
  ]
404
404
  };
405
405
  };
406
- function equals$7(existing, incoming) {
406
+ function equals$9(existing, incoming) {
407
407
  const existing_established = existing.established;
408
408
  const incoming_established = incoming.established;
409
409
  if (!(existing_established === incoming_established)) {
@@ -456,32 +456,32 @@ function equals$7(existing, incoming) {
456
456
  }
457
457
  return true;
458
458
  }
459
- const ingest$7 = function ExternalConnectivityConnectionRepresentationIngest(input, path, luvio, store, timestamp) {
459
+ const ingest$9 = function ExternalConnectivityConnectionRepresentationIngest(input, path, luvio, store, timestamp) {
460
460
  if (process.env.NODE_ENV !== 'production') {
461
- const validateError = validate$c(input);
461
+ const validateError = validate$f(input);
462
462
  if (validateError !== null) {
463
463
  throw validateError;
464
464
  }
465
465
  }
466
466
  const key = path.fullPath;
467
467
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
468
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "external-connectivity", VERSION$7, RepresentationType$7, equals$7);
468
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "external-connectivity", VERSION$9, RepresentationType$9, equals$9);
469
469
  return createLink(key);
470
470
  };
471
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
471
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
472
472
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
473
473
  const rootKey = fullPathFactory();
474
474
  rootKeySet.set(rootKey, {
475
475
  namespace: keyPrefix,
476
- representationName: RepresentationType$7,
476
+ representationName: RepresentationType$9,
477
477
  mergeable: false
478
478
  });
479
- getTypeCacheKeys$8(rootKeySet, luvio, input.externalConnectorMetadata, () => rootKey + "__" + "externalConnectorMetadata");
479
+ getTypeCacheKeys$a(rootKeySet, luvio, input.externalConnectorMetadata, () => rootKey + "__" + "externalConnectorMetadata");
480
480
  }
481
481
 
482
- const TTL$6 = 500;
483
- const VERSION$6 = "20bb37f8c88f1dd513107a5128a6f4a5";
484
- function validate$b(obj, path = 'ExternalConnectivityConnectionListRepresentation') {
482
+ const TTL$8 = 500;
483
+ const VERSION$8 = "20bb37f8c88f1dd513107a5128a6f4a5";
484
+ function validate$e(obj, path = 'ExternalConnectivityConnectionListRepresentation') {
485
485
  const v_error = (() => {
486
486
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
487
487
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -501,14 +501,14 @@ function validate$b(obj, path = 'ExternalConnectivityConnectionListRepresentatio
501
501
  })();
502
502
  return v_error === undefined ? null : v_error;
503
503
  }
504
- const RepresentationType$6 = 'ExternalConnectivityConnectionListRepresentation';
505
- function normalize$6(input, existing, path, luvio, store, timestamp) {
504
+ const RepresentationType$8 = 'ExternalConnectivityConnectionListRepresentation';
505
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
506
506
  const input_connections = input.connections;
507
507
  const input_connections_id = path.fullPath + '__connections';
508
508
  for (let i = 0; i < input_connections.length; i++) {
509
509
  const input_connections_item = input_connections[i];
510
510
  let input_connections_item_id = input_connections_id + '__' + i;
511
- input_connections[i] = ingest$7(input_connections_item, {
511
+ input_connections[i] = ingest$9(input_connections_item, {
512
512
  fullPath: input_connections_item_id,
513
513
  propertyName: i,
514
514
  parent: {
@@ -521,22 +521,22 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
521
521
  }
522
522
  return input;
523
523
  }
524
- const select$e = function ExternalConnectivityConnectionListRepresentationSelect() {
524
+ const select$i = function ExternalConnectivityConnectionListRepresentationSelect() {
525
525
  return {
526
526
  kind: 'Fragment',
527
- version: VERSION$6,
527
+ version: VERSION$8,
528
528
  private: [],
529
529
  selections: [
530
530
  {
531
531
  name: 'connections',
532
532
  kind: 'Link',
533
533
  plural: true,
534
- fragment: select$f()
534
+ fragment: select$j()
535
535
  }
536
536
  ]
537
537
  };
538
538
  };
539
- function equals$6(existing, incoming) {
539
+ function equals$8(existing, incoming) {
540
540
  const existing_connections = existing.connections;
541
541
  const incoming_connections = incoming.connections;
542
542
  const equals_connections_items = equalsArray(existing_connections, incoming_connections, (existing_connections_item, incoming_connections_item) => {
@@ -549,48 +549,48 @@ function equals$6(existing, incoming) {
549
549
  }
550
550
  return true;
551
551
  }
552
- const ingest$6 = function ExternalConnectivityConnectionListRepresentationIngest(input, path, luvio, store, timestamp) {
552
+ const ingest$8 = function ExternalConnectivityConnectionListRepresentationIngest(input, path, luvio, store, timestamp) {
553
553
  if (process.env.NODE_ENV !== 'production') {
554
- const validateError = validate$b(input);
554
+ const validateError = validate$e(input);
555
555
  if (validateError !== null) {
556
556
  throw validateError;
557
557
  }
558
558
  }
559
559
  const key = path.fullPath;
560
- const ttlToUse = TTL$6;
561
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "external-connectivity", VERSION$6, RepresentationType$6, equals$6);
560
+ const ttlToUse = TTL$8;
561
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "external-connectivity", VERSION$8, RepresentationType$8, equals$8);
562
562
  return createLink(key);
563
563
  };
564
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
564
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
565
565
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
566
566
  const rootKey = fullPathFactory();
567
567
  rootKeySet.set(rootKey, {
568
568
  namespace: keyPrefix,
569
- representationName: RepresentationType$6,
569
+ representationName: RepresentationType$8,
570
570
  mergeable: false
571
571
  });
572
572
  const input_connections_length = input.connections.length;
573
573
  for (let i = 0; i < input_connections_length; i++) {
574
- getTypeCacheKeys$7(rootKeySet, luvio, input.connections[i], () => '');
574
+ getTypeCacheKeys$9(rootKeySet, luvio, input.connections[i], () => '');
575
575
  }
576
576
  }
577
577
 
578
- function select$d(luvio, params) {
579
- return select$e();
578
+ function select$h(luvio, params) {
579
+ return select$i();
580
580
  }
581
- function keyBuilder$a(luvio, params) {
581
+ function keyBuilder$d(luvio, params) {
582
582
  return keyPrefix + '::ExternalConnectivityConnectionListRepresentation:(' + ')';
583
583
  }
584
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
585
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a());
584
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
585
+ getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$d());
586
586
  }
587
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
587
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
588
588
  const { body } = response;
589
- const key = keyBuilder$a();
590
- luvio.storeIngest(key, ingest$6, body);
589
+ const key = keyBuilder$d();
590
+ luvio.storeIngest(key, ingest$8, body);
591
591
  const snapshot = luvio.storeLookup({
592
592
  recordId: key,
593
- node: select$d(),
593
+ node: select$h(),
594
594
  variables: {},
595
595
  }, snapshotRefresh);
596
596
  if (process.env.NODE_ENV !== 'production') {
@@ -601,19 +601,19 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
601
601
  deepFreeze(snapshot.data);
602
602
  return snapshot;
603
603
  }
604
- function ingestError$3(luvio, params, error, snapshotRefresh) {
605
- const key = keyBuilder$a();
604
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
605
+ const key = keyBuilder$d();
606
606
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
607
607
  const storeMetadataParams = {
608
- ttl: TTL$6,
608
+ ttl: TTL$8,
609
609
  namespace: keyPrefix,
610
- version: VERSION$6,
611
- representationName: RepresentationType$6
610
+ version: VERSION$8,
611
+ representationName: RepresentationType$8
612
612
  };
613
613
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
614
614
  return errorSnapshot;
615
615
  }
616
- function createResourceRequest$7(config) {
616
+ function createResourceRequest$9(config) {
617
617
  const headers = {};
618
618
  return {
619
619
  baseUri: '/services/data/v63.0',
@@ -627,90 +627,90 @@ function createResourceRequest$7(config) {
627
627
  };
628
628
  }
629
629
 
630
- const adapterName$7 = 'getConnections';
630
+ const adapterName$9 = 'getConnections';
631
631
  const getConnections_ConfigPropertyMetadata = [];
632
- const getConnections_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getConnections_ConfigPropertyMetadata);
633
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(getConnections_ConfigPropertyMetadata);
634
- function keyBuilder$9(luvio, config) {
635
- createResourceParams$7(config);
636
- return keyBuilder$a();
632
+ const getConnections_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getConnections_ConfigPropertyMetadata);
633
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$a(getConnections_ConfigPropertyMetadata);
634
+ function keyBuilder$c(luvio, config) {
635
+ createResourceParams$9(config);
636
+ return keyBuilder$d();
637
637
  }
638
- function typeCheckConfig$7(untrustedConfig) {
638
+ function typeCheckConfig$9(untrustedConfig) {
639
639
  const config = {};
640
640
  return config;
641
641
  }
642
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
642
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
643
643
  if (!untrustedIsObject(untrustedConfig)) {
644
644
  return null;
645
645
  }
646
646
  if (process.env.NODE_ENV !== 'production') {
647
647
  validateConfig(untrustedConfig, configPropertyNames);
648
648
  }
649
- const config = typeCheckConfig$7();
649
+ const config = typeCheckConfig$9();
650
650
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
651
651
  return null;
652
652
  }
653
653
  return config;
654
654
  }
655
- function adapterFragment$3(luvio, config) {
656
- createResourceParams$7(config);
657
- return select$d();
655
+ function adapterFragment$4(luvio, config) {
656
+ createResourceParams$9(config);
657
+ return select$h();
658
658
  }
659
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
660
- const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
659
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
660
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
661
661
  config,
662
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
662
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
663
663
  });
664
664
  return luvio.storeBroadcast().then(() => snapshot);
665
665
  }
666
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
667
- const snapshot = ingestError$3(luvio, resourceParams, response, {
666
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
667
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
668
668
  config,
669
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
669
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
670
670
  });
671
671
  return luvio.storeBroadcast().then(() => snapshot);
672
672
  }
673
- function buildNetworkSnapshot$7(luvio, config, options) {
674
- const resourceParams = createResourceParams$7(config);
675
- const request = createResourceRequest$7();
673
+ function buildNetworkSnapshot$9(luvio, config, options) {
674
+ const resourceParams = createResourceParams$9(config);
675
+ const request = createResourceRequest$9();
676
676
  return luvio.dispatchResourceRequest(request, options)
677
677
  .then((response) => {
678
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
678
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
679
679
  const cache = new StoreKeyMap();
680
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
680
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
681
681
  return cache;
682
682
  });
683
683
  }, (response) => {
684
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
684
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
685
685
  });
686
686
  }
687
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
688
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
687
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
688
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
689
689
  }
690
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
690
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
691
691
  const { luvio, config } = context;
692
692
  const selector = {
693
- recordId: keyBuilder$9(luvio, config),
694
- node: adapterFragment$3(luvio, config),
693
+ recordId: keyBuilder$c(luvio, config),
694
+ node: adapterFragment$4(luvio, config),
695
695
  variables: {},
696
696
  };
697
697
  const cacheSnapshot = storeLookup(selector, {
698
698
  config,
699
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
699
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
700
700
  });
701
701
  return cacheSnapshot;
702
702
  }
703
703
  const getConnectionsAdapterFactory = (luvio) => function externalConnectivity__getConnections(untrustedConfig, requestContext) {
704
- const config = validateAdapterConfig$7(untrustedConfig, getConnections_ConfigPropertyNames);
704
+ const config = validateAdapterConfig$9(untrustedConfig, getConnections_ConfigPropertyNames);
705
705
  // Invalid or incomplete config
706
706
  if (config === null) {
707
707
  return null;
708
708
  }
709
709
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
710
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
710
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
711
711
  };
712
712
 
713
- function validate$a(obj, path = 'AuthenticationTypeInputRepresentation') {
713
+ function validate$d(obj, path = 'AuthenticationTypeInputRepresentation') {
714
714
  const v_error = (() => {
715
715
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
716
716
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -736,9 +736,9 @@ function validate$a(obj, path = 'AuthenticationTypeInputRepresentation') {
736
736
  return v_error === undefined ? null : v_error;
737
737
  }
738
738
 
739
- const TTL$5 = 500;
740
- const VERSION$5 = "139e6c6cae3db78f5efabb1639252ac2";
741
- function validate$9(obj, path = 'ExternalConnectivityConnectionCreatedRepresentation') {
739
+ const TTL$7 = 500;
740
+ const VERSION$7 = "139e6c6cae3db78f5efabb1639252ac2";
741
+ function validate$c(obj, path = 'ExternalConnectivityConnectionCreatedRepresentation') {
742
742
  const v_error = (() => {
743
743
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
744
744
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -751,23 +751,23 @@ function validate$9(obj, path = 'ExternalConnectivityConnectionCreatedRepresenta
751
751
  })();
752
752
  return v_error === undefined ? null : v_error;
753
753
  }
754
- const RepresentationType$5 = 'ExternalConnectivityConnectionCreatedRepresentation';
755
- function keyBuilder$8(luvio, config) {
756
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.developerName;
754
+ const RepresentationType$7 = 'ExternalConnectivityConnectionCreatedRepresentation';
755
+ function keyBuilder$b(luvio, config) {
756
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.developerName;
757
757
  }
758
- function keyBuilderFromType$2(luvio, object) {
758
+ function keyBuilderFromType$3(luvio, object) {
759
759
  const keyParams = {
760
760
  developerName: object.developerName
761
761
  };
762
- return keyBuilder$8(luvio, keyParams);
762
+ return keyBuilder$b(luvio, keyParams);
763
763
  }
764
- function normalize$5(input, existing, path, luvio, store, timestamp) {
764
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
765
765
  return input;
766
766
  }
767
- const select$c = function ExternalConnectivityConnectionCreatedRepresentationSelect() {
767
+ const select$g = function ExternalConnectivityConnectionCreatedRepresentationSelect() {
768
768
  return {
769
769
  kind: 'Fragment',
770
- version: VERSION$5,
770
+ version: VERSION$7,
771
771
  private: [],
772
772
  selections: [
773
773
  {
@@ -777,7 +777,7 @@ const select$c = function ExternalConnectivityConnectionCreatedRepresentationSel
777
777
  ]
778
778
  };
779
779
  };
780
- function equals$5(existing, incoming) {
780
+ function equals$7(existing, incoming) {
781
781
  const existing_developerName = existing.developerName;
782
782
  const incoming_developerName = incoming.developerName;
783
783
  if (!(existing_developerName === incoming_developerName)) {
@@ -785,41 +785,41 @@ function equals$5(existing, incoming) {
785
785
  }
786
786
  return true;
787
787
  }
788
- const ingest$5 = function ExternalConnectivityConnectionCreatedRepresentationIngest(input, path, luvio, store, timestamp) {
788
+ const ingest$7 = function ExternalConnectivityConnectionCreatedRepresentationIngest(input, path, luvio, store, timestamp) {
789
789
  if (process.env.NODE_ENV !== 'production') {
790
- const validateError = validate$9(input);
790
+ const validateError = validate$c(input);
791
791
  if (validateError !== null) {
792
792
  throw validateError;
793
793
  }
794
794
  }
795
- const key = keyBuilderFromType$2(luvio, input);
796
- const ttlToUse = TTL$5;
797
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "external-connectivity", VERSION$5, RepresentationType$5, equals$5);
795
+ const key = keyBuilderFromType$3(luvio, input);
796
+ const ttlToUse = TTL$7;
797
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "external-connectivity", VERSION$7, RepresentationType$7, equals$7);
798
798
  return createLink(key);
799
799
  };
800
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
800
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
801
801
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
802
- const rootKey = keyBuilderFromType$2(luvio, input);
802
+ const rootKey = keyBuilderFromType$3(luvio, input);
803
803
  rootKeySet.set(rootKey, {
804
804
  namespace: keyPrefix,
805
- representationName: RepresentationType$5,
805
+ representationName: RepresentationType$7,
806
806
  mergeable: false
807
807
  });
808
808
  }
809
809
 
810
- function select$b(luvio, params) {
811
- return select$c();
810
+ function select$f(luvio, params) {
811
+ return select$g();
812
812
  }
813
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
814
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
813
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
814
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
815
815
  }
816
- function ingestSuccess$6(luvio, resourceParams, response) {
816
+ function ingestSuccess$8(luvio, resourceParams, response) {
817
817
  const { body } = response;
818
- const key = keyBuilderFromType$2(luvio, body);
819
- luvio.storeIngest(key, ingest$5, body);
818
+ const key = keyBuilderFromType$3(luvio, body);
819
+ luvio.storeIngest(key, ingest$7, body);
820
820
  const snapshot = luvio.storeLookup({
821
821
  recordId: key,
822
- node: select$b(),
822
+ node: select$f(),
823
823
  variables: {},
824
824
  });
825
825
  if (process.env.NODE_ENV !== 'production') {
@@ -830,7 +830,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
830
830
  deepFreeze(snapshot.data);
831
831
  return snapshot;
832
832
  }
833
- function createResourceRequest$6(config) {
833
+ function createResourceRequest$8(config) {
834
834
  const headers = {};
835
835
  return {
836
836
  baseUri: '/services/data/v63.0',
@@ -844,49 +844,49 @@ function createResourceRequest$6(config) {
844
844
  };
845
845
  }
846
846
 
847
- const adapterName$6 = 'createConnection';
847
+ const adapterName$8 = 'createConnection';
848
848
  const createConnection_ConfigPropertyMetadata = [
849
849
  generateParamConfigMetadata('authenticationTypeInput', true, 2 /* Body */, 4 /* Unsupported */),
850
850
  generateParamConfigMetadata('connectorDeveloperName', true, 2 /* Body */, 0 /* String */),
851
851
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
852
852
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
853
853
  ];
854
- const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createConnection_ConfigPropertyMetadata);
855
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(createConnection_ConfigPropertyMetadata);
856
- function typeCheckConfig$6(untrustedConfig) {
854
+ const createConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createConnection_ConfigPropertyMetadata);
855
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$a(createConnection_ConfigPropertyMetadata);
856
+ function typeCheckConfig$8(untrustedConfig) {
857
857
  const config = {};
858
- typeCheckConfig$8(untrustedConfig, config, createConnection_ConfigPropertyMetadata);
858
+ typeCheckConfig$a(untrustedConfig, config, createConnection_ConfigPropertyMetadata);
859
859
  const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
860
- const referenceAuthenticationTypeInputRepresentationValidationError = validate$a(untrustedConfig_authenticationTypeInput);
860
+ const referenceAuthenticationTypeInputRepresentationValidationError = validate$d(untrustedConfig_authenticationTypeInput);
861
861
  if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
862
862
  config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
863
863
  }
864
864
  return config;
865
865
  }
866
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
866
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
867
867
  if (!untrustedIsObject(untrustedConfig)) {
868
868
  return null;
869
869
  }
870
870
  if (process.env.NODE_ENV !== 'production') {
871
871
  validateConfig(untrustedConfig, configPropertyNames);
872
872
  }
873
- const config = typeCheckConfig$6(untrustedConfig);
873
+ const config = typeCheckConfig$8(untrustedConfig);
874
874
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
875
875
  return null;
876
876
  }
877
877
  return config;
878
878
  }
879
- function buildNetworkSnapshot$6(luvio, config, options) {
880
- const resourceParams = createResourceParams$6(config);
881
- const request = createResourceRequest$6(resourceParams);
879
+ function buildNetworkSnapshot$8(luvio, config, options) {
880
+ const resourceParams = createResourceParams$8(config);
881
+ const request = createResourceRequest$8(resourceParams);
882
882
  return luvio.dispatchResourceRequest(request, options)
883
883
  .then((response) => {
884
884
  return luvio.handleSuccessResponse(() => {
885
- const snapshot = ingestSuccess$6(luvio, resourceParams, response);
885
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
886
886
  return luvio.storeBroadcast().then(() => snapshot);
887
887
  }, () => {
888
888
  const cache = new StoreKeyMap();
889
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
889
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
890
890
  return cache;
891
891
  });
892
892
  }, (response) => {
@@ -896,164 +896,395 @@ function buildNetworkSnapshot$6(luvio, config, options) {
896
896
  }
897
897
  const createConnectionAdapterFactory = (luvio) => {
898
898
  return function createConnection(untrustedConfig) {
899
- const config = validateAdapterConfig$6(untrustedConfig, createConnection_ConfigPropertyNames);
899
+ const config = validateAdapterConfig$8(untrustedConfig, createConnection_ConfigPropertyNames);
900
900
  // Invalid or incomplete config
901
901
  if (config === null) {
902
902
  throw new Error('Invalid config for "createConnection"');
903
903
  }
904
- return buildNetworkSnapshot$6(luvio, config);
904
+ return buildNetworkSnapshot$8(luvio, config);
905
905
  };
906
906
  };
907
907
 
908
- function validate$8(obj, path = 'AuthenticationParameterDefinitionRepresentation') {
909
- const v_error = (() => {
910
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
911
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
912
- }
913
- const obj_description = obj.description;
914
- const path_description = path + '.description';
915
- if (typeof obj_description !== 'string') {
916
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
917
- }
918
- const obj_label = obj.label;
919
- const path_label = path + '.label';
920
- if (typeof obj_label !== 'string') {
921
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
922
- }
923
- const obj_maxLength = obj.maxLength;
924
- const path_maxLength = path + '.maxLength';
925
- if (typeof obj_maxLength !== 'number' || (typeof obj_maxLength === 'number' && Math.floor(obj_maxLength) !== obj_maxLength)) {
926
- return new TypeError('Expected "integer" but received "' + typeof obj_maxLength + '" (at "' + path_maxLength + '")');
927
- }
928
- const obj_name = obj.name;
929
- const path_name = path + '.name';
930
- if (typeof obj_name !== 'string') {
931
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
932
- }
933
- const obj_required = obj.required;
934
- const path_required = path + '.required';
935
- if (typeof obj_required !== 'boolean') {
936
- return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
937
- }
938
- const obj_secret = obj.secret;
939
- const path_secret = path + '.secret';
940
- if (typeof obj_secret !== 'boolean') {
941
- return new TypeError('Expected "boolean" but received "' + typeof obj_secret + '" (at "' + path_secret + '")');
942
- }
943
- const obj_valueType = obj.valueType;
944
- const path_valueType = path + '.valueType';
945
- if (typeof obj_valueType !== 'string') {
946
- return new TypeError('Expected "string" but received "' + typeof obj_valueType + '" (at "' + path_valueType + '")');
947
- }
948
- })();
949
- return v_error === undefined ? null : v_error;
950
- }
951
-
952
- function validate$7(obj, path = 'AuthenticationParameterRepresentation') {
953
- const v_error = (() => {
954
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
955
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
956
- }
957
- const obj_authenticationParameterDefinition = obj.authenticationParameterDefinition;
958
- const path_authenticationParameterDefinition = path + '.authenticationParameterDefinition';
959
- const referencepath_authenticationParameterDefinitionValidationError = validate$8(obj_authenticationParameterDefinition, path_authenticationParameterDefinition);
960
- if (referencepath_authenticationParameterDefinitionValidationError !== null) {
961
- let message = 'Object doesn\'t match AuthenticationParameterDefinitionRepresentation (at "' + path_authenticationParameterDefinition + '")\n';
962
- message += referencepath_authenticationParameterDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
963
- return new TypeError(message);
964
- }
965
- const obj_value = obj.value;
966
- const path_value = path + '.value';
967
- if (typeof obj_value !== 'string') {
968
- return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
969
- }
970
- })();
971
- return v_error === undefined ? null : v_error;
972
- }
973
-
974
- function validate$6(obj, path = 'AuthenticationTypeRepresentation') {
908
+ const TTL$6 = 500;
909
+ const VERSION$6 = "2f8128d7e2e433bc604c71441fa6fc50";
910
+ function validate$b(obj, path = 'ExternalConnectivityConnectionEditDeleteResultRepresentation') {
975
911
  const v_error = (() => {
976
912
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
977
913
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
978
914
  }
979
- const obj_authenticationParameters = obj.authenticationParameters;
980
- const path_authenticationParameters = path + '.authenticationParameters';
981
- if (!ArrayIsArray(obj_authenticationParameters)) {
982
- return new TypeError('Expected "array" but received "' + typeof obj_authenticationParameters + '" (at "' + path_authenticationParameters + '")');
915
+ const obj_developerName = obj.developerName;
916
+ const path_developerName = path + '.developerName';
917
+ if (typeof obj_developerName !== 'string') {
918
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
983
919
  }
984
- for (let i = 0; i < obj_authenticationParameters.length; i++) {
985
- const obj_authenticationParameters_item = obj_authenticationParameters[i];
986
- const path_authenticationParameters_item = path_authenticationParameters + '[' + i + ']';
987
- const referencepath_authenticationParameters_itemValidationError = validate$7(obj_authenticationParameters_item, path_authenticationParameters_item);
988
- if (referencepath_authenticationParameters_itemValidationError !== null) {
989
- let message = 'Object doesn\'t match AuthenticationParameterRepresentation (at "' + path_authenticationParameters_item + '")\n';
990
- message += referencepath_authenticationParameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
991
- return new TypeError(message);
920
+ const obj_errorDescription = obj.errorDescription;
921
+ const path_errorDescription = path + '.errorDescription';
922
+ let obj_errorDescription_union0 = null;
923
+ const obj_errorDescription_union0_error = (() => {
924
+ if (typeof obj_errorDescription !== 'string') {
925
+ return new TypeError('Expected "string" but received "' + typeof obj_errorDescription + '" (at "' + path_errorDescription + '")');
992
926
  }
927
+ })();
928
+ if (obj_errorDescription_union0_error != null) {
929
+ obj_errorDescription_union0 = obj_errorDescription_union0_error.message;
993
930
  }
994
- const obj_authenticationProtocol = obj.authenticationProtocol;
995
- const path_authenticationProtocol = path + '.authenticationProtocol';
996
- if (typeof obj_authenticationProtocol !== 'string') {
997
- return new TypeError('Expected "string" but received "' + typeof obj_authenticationProtocol + '" (at "' + path_authenticationProtocol + '")');
998
- }
999
- })();
1000
- return v_error === undefined ? null : v_error;
1001
- }
1002
-
1003
- const TTL$4 = 500;
1004
- const VERSION$4 = "7ca6b78397dd8632eba2e72a10134d04";
1005
- function validate$5(obj, path = 'ExternalConnectivityConnectionDetailsRepresentation') {
1006
- const v_error = (() => {
1007
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1008
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
931
+ let obj_errorDescription_union1 = null;
932
+ const obj_errorDescription_union1_error = (() => {
933
+ if (obj_errorDescription !== null) {
934
+ return new TypeError('Expected "null" but received "' + typeof obj_errorDescription + '" (at "' + path_errorDescription + '")');
935
+ }
936
+ })();
937
+ if (obj_errorDescription_union1_error != null) {
938
+ obj_errorDescription_union1 = obj_errorDescription_union1_error.message;
1009
939
  }
1010
- const obj_authenticationType = obj.authenticationType;
1011
- const path_authenticationType = path + '.authenticationType';
1012
- const referencepath_authenticationTypeValidationError = validate$6(obj_authenticationType, path_authenticationType);
1013
- if (referencepath_authenticationTypeValidationError !== null) {
1014
- let message = 'Object doesn\'t match AuthenticationTypeRepresentation (at "' + path_authenticationType + '")\n';
1015
- message += referencepath_authenticationTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
940
+ if (obj_errorDescription_union0 && obj_errorDescription_union1) {
941
+ let message = 'Object doesn\'t match union (at "' + path_errorDescription + '")';
942
+ message += '\n' + obj_errorDescription_union0.split('\n').map((line) => '\t' + line).join('\n');
943
+ message += '\n' + obj_errorDescription_union1.split('\n').map((line) => '\t' + line).join('\n');
1016
944
  return new TypeError(message);
1017
945
  }
1018
- const obj_createdBy = obj.createdBy;
1019
- const path_createdBy = path + '.createdBy';
1020
- if (typeof obj_createdBy !== 'string') {
1021
- return new TypeError('Expected "string" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
1022
- }
1023
- const obj_createdDate = obj.createdDate;
1024
- const path_createdDate = path + '.createdDate';
1025
- if (typeof obj_createdDate !== 'string') {
1026
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1027
- }
1028
- const obj_description = obj.description;
1029
- const path_description = path + '.description';
1030
- let obj_description_union0 = null;
1031
- const obj_description_union0_error = (() => {
1032
- if (typeof obj_description !== 'string') {
1033
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
946
+ const obj_errorMessage = obj.errorMessage;
947
+ const path_errorMessage = path + '.errorMessage';
948
+ let obj_errorMessage_union0 = null;
949
+ const obj_errorMessage_union0_error = (() => {
950
+ if (typeof obj_errorMessage !== 'string') {
951
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1034
952
  }
1035
953
  })();
1036
- if (obj_description_union0_error != null) {
1037
- obj_description_union0 = obj_description_union0_error.message;
954
+ if (obj_errorMessage_union0_error != null) {
955
+ obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
1038
956
  }
1039
- let obj_description_union1 = null;
1040
- const obj_description_union1_error = (() => {
1041
- if (obj_description !== null) {
1042
- return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
957
+ let obj_errorMessage_union1 = null;
958
+ const obj_errorMessage_union1_error = (() => {
959
+ if (obj_errorMessage !== null) {
960
+ return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1043
961
  }
1044
962
  })();
1045
- if (obj_description_union1_error != null) {
1046
- obj_description_union1 = obj_description_union1_error.message;
963
+ if (obj_errorMessage_union1_error != null) {
964
+ obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
1047
965
  }
1048
- if (obj_description_union0 && obj_description_union1) {
1049
- let message = 'Object doesn\'t match union (at "' + path_description + '")';
1050
- message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
1051
- message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
966
+ if (obj_errorMessage_union0 && obj_errorMessage_union1) {
967
+ let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
968
+ message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
969
+ message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
1052
970
  return new TypeError(message);
1053
971
  }
1054
- const obj_developerName = obj.developerName;
1055
- const path_developerName = path + '.developerName';
1056
- if (typeof obj_developerName !== 'string') {
972
+ })();
973
+ return v_error === undefined ? null : v_error;
974
+ }
975
+ const RepresentationType$6 = 'ExternalConnectivityConnectionEditDeleteResultRepresentation';
976
+ function keyBuilder$a(luvio, config) {
977
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.developerName;
978
+ }
979
+ function keyBuilderFromType$2(luvio, object) {
980
+ const keyParams = {
981
+ developerName: object.developerName
982
+ };
983
+ return keyBuilder$a(luvio, keyParams);
984
+ }
985
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
986
+ return input;
987
+ }
988
+ const select$e = function ExternalConnectivityConnectionEditDeleteResultRepresentationSelect() {
989
+ return {
990
+ kind: 'Fragment',
991
+ version: VERSION$6,
992
+ private: [],
993
+ selections: [
994
+ {
995
+ name: 'developerName',
996
+ kind: 'Scalar'
997
+ },
998
+ {
999
+ name: 'errorDescription',
1000
+ kind: 'Scalar'
1001
+ },
1002
+ {
1003
+ name: 'errorMessage',
1004
+ kind: 'Scalar'
1005
+ }
1006
+ ]
1007
+ };
1008
+ };
1009
+ function equals$6(existing, incoming) {
1010
+ const existing_developerName = existing.developerName;
1011
+ const incoming_developerName = incoming.developerName;
1012
+ if (!(existing_developerName === incoming_developerName)) {
1013
+ return false;
1014
+ }
1015
+ const existing_errorDescription = existing.errorDescription;
1016
+ const incoming_errorDescription = incoming.errorDescription;
1017
+ if (!(existing_errorDescription === incoming_errorDescription)) {
1018
+ return false;
1019
+ }
1020
+ const existing_errorMessage = existing.errorMessage;
1021
+ const incoming_errorMessage = incoming.errorMessage;
1022
+ if (!(existing_errorMessage === incoming_errorMessage)) {
1023
+ return false;
1024
+ }
1025
+ return true;
1026
+ }
1027
+ const ingest$6 = function ExternalConnectivityConnectionEditDeleteResultRepresentationIngest(input, path, luvio, store, timestamp) {
1028
+ if (process.env.NODE_ENV !== 'production') {
1029
+ const validateError = validate$b(input);
1030
+ if (validateError !== null) {
1031
+ throw validateError;
1032
+ }
1033
+ }
1034
+ const key = keyBuilderFromType$2(luvio, input);
1035
+ const ttlToUse = TTL$6;
1036
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "external-connectivity", VERSION$6, RepresentationType$6, equals$6);
1037
+ return createLink(key);
1038
+ };
1039
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1040
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1041
+ const rootKey = keyBuilderFromType$2(luvio, input);
1042
+ rootKeySet.set(rootKey, {
1043
+ namespace: keyPrefix,
1044
+ representationName: RepresentationType$6,
1045
+ mergeable: false
1046
+ });
1047
+ }
1048
+
1049
+ function select$d(luvio, params) {
1050
+ return select$e();
1051
+ }
1052
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1053
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
1054
+ }
1055
+ function ingestSuccess$7(luvio, resourceParams, response) {
1056
+ const { body } = response;
1057
+ const key = keyBuilderFromType$2(luvio, body);
1058
+ luvio.storeIngest(key, ingest$6, body);
1059
+ const snapshot = luvio.storeLookup({
1060
+ recordId: key,
1061
+ node: select$d(),
1062
+ variables: {},
1063
+ });
1064
+ if (process.env.NODE_ENV !== 'production') {
1065
+ if (snapshot.state !== 'Fulfilled') {
1066
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1067
+ }
1068
+ }
1069
+ deepFreeze(snapshot.data);
1070
+ return snapshot;
1071
+ }
1072
+ function createResourceRequest$7(config) {
1073
+ const headers = {};
1074
+ return {
1075
+ baseUri: '/services/data/v63.0',
1076
+ basePath: '/external-connectivity/connections/delete/' + config.urlParams.connectionDeveloperName + '',
1077
+ method: 'post',
1078
+ body: null,
1079
+ urlParams: config.urlParams,
1080
+ queryParams: {},
1081
+ headers,
1082
+ priority: 'normal',
1083
+ };
1084
+ }
1085
+
1086
+ const adapterName$7 = 'deleteConnection';
1087
+ const deleteConnection_ConfigPropertyMetadata = [
1088
+ generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
1089
+ ];
1090
+ const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteConnection_ConfigPropertyMetadata);
1091
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$a(deleteConnection_ConfigPropertyMetadata);
1092
+ function typeCheckConfig$7(untrustedConfig) {
1093
+ const config = {};
1094
+ typeCheckConfig$a(untrustedConfig, config, deleteConnection_ConfigPropertyMetadata);
1095
+ return config;
1096
+ }
1097
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1098
+ if (!untrustedIsObject(untrustedConfig)) {
1099
+ return null;
1100
+ }
1101
+ if (process.env.NODE_ENV !== 'production') {
1102
+ validateConfig(untrustedConfig, configPropertyNames);
1103
+ }
1104
+ const config = typeCheckConfig$7(untrustedConfig);
1105
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1106
+ return null;
1107
+ }
1108
+ return config;
1109
+ }
1110
+ function buildNetworkSnapshot$7(luvio, config, options) {
1111
+ const resourceParams = createResourceParams$7(config);
1112
+ const request = createResourceRequest$7(resourceParams);
1113
+ return luvio.dispatchResourceRequest(request, options)
1114
+ .then((response) => {
1115
+ return luvio.handleSuccessResponse(() => {
1116
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1117
+ return luvio.storeBroadcast().then(() => snapshot);
1118
+ }, () => {
1119
+ const cache = new StoreKeyMap();
1120
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1121
+ return cache;
1122
+ });
1123
+ }, (response) => {
1124
+ deepFreeze(response);
1125
+ throw response;
1126
+ });
1127
+ }
1128
+ const deleteConnectionAdapterFactory = (luvio) => {
1129
+ return function deleteConnection(untrustedConfig) {
1130
+ const config = validateAdapterConfig$7(untrustedConfig, deleteConnection_ConfigPropertyNames);
1131
+ // Invalid or incomplete config
1132
+ if (config === null) {
1133
+ throw new Error('Invalid config for "deleteConnection"');
1134
+ }
1135
+ return buildNetworkSnapshot$7(luvio, config);
1136
+ };
1137
+ };
1138
+
1139
+ function validate$a(obj, path = 'AuthenticationParameterDefinitionRepresentation') {
1140
+ const v_error = (() => {
1141
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1142
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1143
+ }
1144
+ const obj_description = obj.description;
1145
+ const path_description = path + '.description';
1146
+ if (typeof obj_description !== 'string') {
1147
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1148
+ }
1149
+ const obj_label = obj.label;
1150
+ const path_label = path + '.label';
1151
+ if (typeof obj_label !== 'string') {
1152
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
1153
+ }
1154
+ const obj_maxLength = obj.maxLength;
1155
+ const path_maxLength = path + '.maxLength';
1156
+ if (typeof obj_maxLength !== 'number' || (typeof obj_maxLength === 'number' && Math.floor(obj_maxLength) !== obj_maxLength)) {
1157
+ return new TypeError('Expected "integer" but received "' + typeof obj_maxLength + '" (at "' + path_maxLength + '")');
1158
+ }
1159
+ const obj_name = obj.name;
1160
+ const path_name = path + '.name';
1161
+ if (typeof obj_name !== 'string') {
1162
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1163
+ }
1164
+ const obj_required = obj.required;
1165
+ const path_required = path + '.required';
1166
+ if (typeof obj_required !== 'boolean') {
1167
+ return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
1168
+ }
1169
+ const obj_secret = obj.secret;
1170
+ const path_secret = path + '.secret';
1171
+ if (typeof obj_secret !== 'boolean') {
1172
+ return new TypeError('Expected "boolean" but received "' + typeof obj_secret + '" (at "' + path_secret + '")');
1173
+ }
1174
+ const obj_valueType = obj.valueType;
1175
+ const path_valueType = path + '.valueType';
1176
+ if (typeof obj_valueType !== 'string') {
1177
+ return new TypeError('Expected "string" but received "' + typeof obj_valueType + '" (at "' + path_valueType + '")');
1178
+ }
1179
+ })();
1180
+ return v_error === undefined ? null : v_error;
1181
+ }
1182
+
1183
+ function validate$9(obj, path = 'AuthenticationParameterRepresentation') {
1184
+ const v_error = (() => {
1185
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1186
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1187
+ }
1188
+ const obj_authenticationParameterDefinition = obj.authenticationParameterDefinition;
1189
+ const path_authenticationParameterDefinition = path + '.authenticationParameterDefinition';
1190
+ const referencepath_authenticationParameterDefinitionValidationError = validate$a(obj_authenticationParameterDefinition, path_authenticationParameterDefinition);
1191
+ if (referencepath_authenticationParameterDefinitionValidationError !== null) {
1192
+ let message = 'Object doesn\'t match AuthenticationParameterDefinitionRepresentation (at "' + path_authenticationParameterDefinition + '")\n';
1193
+ message += referencepath_authenticationParameterDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1194
+ return new TypeError(message);
1195
+ }
1196
+ const obj_value = obj.value;
1197
+ const path_value = path + '.value';
1198
+ if (typeof obj_value !== 'string') {
1199
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
1200
+ }
1201
+ })();
1202
+ return v_error === undefined ? null : v_error;
1203
+ }
1204
+
1205
+ function validate$8(obj, path = 'AuthenticationTypeRepresentation') {
1206
+ const v_error = (() => {
1207
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1208
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1209
+ }
1210
+ const obj_authenticationParameters = obj.authenticationParameters;
1211
+ const path_authenticationParameters = path + '.authenticationParameters';
1212
+ if (!ArrayIsArray(obj_authenticationParameters)) {
1213
+ return new TypeError('Expected "array" but received "' + typeof obj_authenticationParameters + '" (at "' + path_authenticationParameters + '")');
1214
+ }
1215
+ for (let i = 0; i < obj_authenticationParameters.length; i++) {
1216
+ const obj_authenticationParameters_item = obj_authenticationParameters[i];
1217
+ const path_authenticationParameters_item = path_authenticationParameters + '[' + i + ']';
1218
+ const referencepath_authenticationParameters_itemValidationError = validate$9(obj_authenticationParameters_item, path_authenticationParameters_item);
1219
+ if (referencepath_authenticationParameters_itemValidationError !== null) {
1220
+ let message = 'Object doesn\'t match AuthenticationParameterRepresentation (at "' + path_authenticationParameters_item + '")\n';
1221
+ message += referencepath_authenticationParameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1222
+ return new TypeError(message);
1223
+ }
1224
+ }
1225
+ const obj_authenticationProtocol = obj.authenticationProtocol;
1226
+ const path_authenticationProtocol = path + '.authenticationProtocol';
1227
+ if (typeof obj_authenticationProtocol !== 'string') {
1228
+ return new TypeError('Expected "string" but received "' + typeof obj_authenticationProtocol + '" (at "' + path_authenticationProtocol + '")');
1229
+ }
1230
+ })();
1231
+ return v_error === undefined ? null : v_error;
1232
+ }
1233
+
1234
+ const TTL$5 = 500;
1235
+ const VERSION$5 = "7ca6b78397dd8632eba2e72a10134d04";
1236
+ function validate$7(obj, path = 'ExternalConnectivityConnectionDetailsRepresentation') {
1237
+ const v_error = (() => {
1238
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1239
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1240
+ }
1241
+ const obj_authenticationType = obj.authenticationType;
1242
+ const path_authenticationType = path + '.authenticationType';
1243
+ const referencepath_authenticationTypeValidationError = validate$8(obj_authenticationType, path_authenticationType);
1244
+ if (referencepath_authenticationTypeValidationError !== null) {
1245
+ let message = 'Object doesn\'t match AuthenticationTypeRepresentation (at "' + path_authenticationType + '")\n';
1246
+ message += referencepath_authenticationTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1247
+ return new TypeError(message);
1248
+ }
1249
+ const obj_createdBy = obj.createdBy;
1250
+ const path_createdBy = path + '.createdBy';
1251
+ if (typeof obj_createdBy !== 'string') {
1252
+ return new TypeError('Expected "string" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
1253
+ }
1254
+ const obj_createdDate = obj.createdDate;
1255
+ const path_createdDate = path + '.createdDate';
1256
+ if (typeof obj_createdDate !== 'string') {
1257
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1258
+ }
1259
+ const obj_description = obj.description;
1260
+ const path_description = path + '.description';
1261
+ let obj_description_union0 = null;
1262
+ const obj_description_union0_error = (() => {
1263
+ if (typeof obj_description !== 'string') {
1264
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1265
+ }
1266
+ })();
1267
+ if (obj_description_union0_error != null) {
1268
+ obj_description_union0 = obj_description_union0_error.message;
1269
+ }
1270
+ let obj_description_union1 = null;
1271
+ const obj_description_union1_error = (() => {
1272
+ if (obj_description !== null) {
1273
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1274
+ }
1275
+ })();
1276
+ if (obj_description_union1_error != null) {
1277
+ obj_description_union1 = obj_description_union1_error.message;
1278
+ }
1279
+ if (obj_description_union0 && obj_description_union1) {
1280
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
1281
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
1282
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
1283
+ return new TypeError(message);
1284
+ }
1285
+ const obj_developerName = obj.developerName;
1286
+ const path_developerName = path + '.developerName';
1287
+ if (typeof obj_developerName !== 'string') {
1057
1288
  return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
1058
1289
  }
1059
1290
  const obj_established = obj.established;
@@ -1063,7 +1294,7 @@ function validate$5(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
1063
1294
  }
1064
1295
  const obj_externalConnectorMetadata = obj.externalConnectorMetadata;
1065
1296
  const path_externalConnectorMetadata = path + '.externalConnectorMetadata';
1066
- const referencepath_externalConnectorMetadataValidationError = validate$d(obj_externalConnectorMetadata, path_externalConnectorMetadata);
1297
+ const referencepath_externalConnectorMetadataValidationError = validate$g(obj_externalConnectorMetadata, path_externalConnectorMetadata);
1067
1298
  if (referencepath_externalConnectorMetadataValidationError !== null) {
1068
1299
  let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_externalConnectorMetadata + '")\n';
1069
1300
  message += referencepath_externalConnectorMetadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1113,62 +1344,62 @@ function validate$5(obj, path = 'ExternalConnectivityConnectionDetailsRepresenta
1113
1344
  })();
1114
1345
  return v_error === undefined ? null : v_error;
1115
1346
  }
1116
- const RepresentationType$4 = 'ExternalConnectivityConnectionDetailsRepresentation';
1117
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1347
+ const RepresentationType$5 = 'ExternalConnectivityConnectionDetailsRepresentation';
1348
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1118
1349
  return input;
1119
1350
  }
1120
- const select$a = function ExternalConnectivityConnectionDetailsRepresentationSelect() {
1351
+ const select$c = function ExternalConnectivityConnectionDetailsRepresentationSelect() {
1121
1352
  return {
1122
1353
  kind: 'Fragment',
1123
- version: VERSION$4,
1354
+ version: VERSION$5,
1124
1355
  private: [],
1125
1356
  opaque: true
1126
1357
  };
1127
1358
  };
1128
- function equals$4(existing, incoming) {
1359
+ function equals$5(existing, incoming) {
1129
1360
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1130
1361
  return false;
1131
1362
  }
1132
1363
  return true;
1133
1364
  }
1134
- const ingest$4 = function ExternalConnectivityConnectionDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
1365
+ const ingest$5 = function ExternalConnectivityConnectionDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
1135
1366
  if (process.env.NODE_ENV !== 'production') {
1136
- const validateError = validate$5(input);
1367
+ const validateError = validate$7(input);
1137
1368
  if (validateError !== null) {
1138
1369
  throw validateError;
1139
1370
  }
1140
1371
  }
1141
1372
  const key = path.fullPath;
1142
- const ttlToUse = TTL$4;
1143
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "external-connectivity", VERSION$4, RepresentationType$4, equals$4);
1373
+ const ttlToUse = TTL$5;
1374
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "external-connectivity", VERSION$5, RepresentationType$5, equals$5);
1144
1375
  return createLink(key);
1145
1376
  };
1146
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1377
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1147
1378
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1148
1379
  const rootKey = fullPathFactory();
1149
1380
  rootKeySet.set(rootKey, {
1150
1381
  namespace: keyPrefix,
1151
- representationName: RepresentationType$4,
1382
+ representationName: RepresentationType$5,
1152
1383
  mergeable: false
1153
1384
  });
1154
1385
  }
1155
1386
 
1156
- function select$9(luvio, params) {
1157
- return select$a();
1387
+ function select$b(luvio, params) {
1388
+ return select$c();
1158
1389
  }
1159
- function keyBuilder$7(luvio, params) {
1390
+ function keyBuilder$9(luvio, params) {
1160
1391
  return keyPrefix + '::ExternalConnectivityConnectionDetailsRepresentation:(' + 'connectionDeveloperName:' + params.urlParams.connectionDeveloperName + ')';
1161
1392
  }
1162
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1163
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
1393
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1394
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
1164
1395
  }
1165
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1396
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1166
1397
  const { body } = response;
1167
- const key = keyBuilder$7(luvio, resourceParams);
1168
- luvio.storeIngest(key, ingest$4, body);
1398
+ const key = keyBuilder$9(luvio, resourceParams);
1399
+ luvio.storeIngest(key, ingest$5, body);
1169
1400
  const snapshot = luvio.storeLookup({
1170
1401
  recordId: key,
1171
- node: select$9(),
1402
+ node: select$b(),
1172
1403
  variables: {},
1173
1404
  }, snapshotRefresh);
1174
1405
  if (process.env.NODE_ENV !== 'production') {
@@ -1179,19 +1410,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1179
1410
  deepFreeze(snapshot.data);
1180
1411
  return snapshot;
1181
1412
  }
1182
- function ingestError$2(luvio, params, error, snapshotRefresh) {
1183
- const key = keyBuilder$7(luvio, params);
1413
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
1414
+ const key = keyBuilder$9(luvio, params);
1184
1415
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1185
1416
  const storeMetadataParams = {
1186
- ttl: TTL$4,
1417
+ ttl: TTL$5,
1187
1418
  namespace: keyPrefix,
1188
- version: VERSION$4,
1189
- representationName: RepresentationType$4
1419
+ version: VERSION$5,
1420
+ representationName: RepresentationType$5
1190
1421
  };
1191
1422
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1192
1423
  return errorSnapshot;
1193
1424
  }
1194
- function createResourceRequest$5(config) {
1425
+ function createResourceRequest$6(config) {
1195
1426
  const headers = {};
1196
1427
  return {
1197
1428
  baseUri: '/services/data/v63.0',
@@ -1205,246 +1436,105 @@ function createResourceRequest$5(config) {
1205
1436
  };
1206
1437
  }
1207
1438
 
1208
- const adapterName$5 = 'getConnectionDetails';
1439
+ const adapterName$6 = 'getConnectionDetails';
1209
1440
  const getConnectionDetails_ConfigPropertyMetadata = [
1210
1441
  generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
1211
1442
  ];
1212
- const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getConnectionDetails_ConfigPropertyMetadata);
1213
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getConnectionDetails_ConfigPropertyMetadata);
1214
- function keyBuilder$6(luvio, config) {
1215
- const resourceParams = createResourceParams$5(config);
1216
- return keyBuilder$7(luvio, resourceParams);
1443
+ const getConnectionDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getConnectionDetails_ConfigPropertyMetadata);
1444
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$a(getConnectionDetails_ConfigPropertyMetadata);
1445
+ function keyBuilder$8(luvio, config) {
1446
+ const resourceParams = createResourceParams$6(config);
1447
+ return keyBuilder$9(luvio, resourceParams);
1217
1448
  }
1218
- function typeCheckConfig$5(untrustedConfig) {
1449
+ function typeCheckConfig$6(untrustedConfig) {
1219
1450
  const config = {};
1220
- typeCheckConfig$8(untrustedConfig, config, getConnectionDetails_ConfigPropertyMetadata);
1451
+ typeCheckConfig$a(untrustedConfig, config, getConnectionDetails_ConfigPropertyMetadata);
1221
1452
  return config;
1222
1453
  }
1223
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1454
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1224
1455
  if (!untrustedIsObject(untrustedConfig)) {
1225
1456
  return null;
1226
1457
  }
1227
1458
  if (process.env.NODE_ENV !== 'production') {
1228
1459
  validateConfig(untrustedConfig, configPropertyNames);
1229
1460
  }
1230
- const config = typeCheckConfig$5(untrustedConfig);
1461
+ const config = typeCheckConfig$6(untrustedConfig);
1231
1462
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1232
1463
  return null;
1233
1464
  }
1234
1465
  return config;
1235
1466
  }
1236
- function adapterFragment$2(luvio, config) {
1237
- createResourceParams$5(config);
1238
- return select$9();
1467
+ function adapterFragment$3(luvio, config) {
1468
+ createResourceParams$6(config);
1469
+ return select$b();
1239
1470
  }
1240
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
1241
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
1471
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
1472
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1242
1473
  config,
1243
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1474
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1244
1475
  });
1245
1476
  return luvio.storeBroadcast().then(() => snapshot);
1246
1477
  }
1247
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
1248
- const snapshot = ingestError$2(luvio, resourceParams, response, {
1478
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
1479
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
1249
1480
  config,
1250
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1481
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1251
1482
  });
1252
1483
  return luvio.storeBroadcast().then(() => snapshot);
1253
1484
  }
1254
- function buildNetworkSnapshot$5(luvio, config, options) {
1255
- const resourceParams = createResourceParams$5(config);
1256
- const request = createResourceRequest$5(resourceParams);
1485
+ function buildNetworkSnapshot$6(luvio, config, options) {
1486
+ const resourceParams = createResourceParams$6(config);
1487
+ const request = createResourceRequest$6(resourceParams);
1257
1488
  return luvio.dispatchResourceRequest(request, options)
1258
1489
  .then((response) => {
1259
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1490
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
1260
1491
  const cache = new StoreKeyMap();
1261
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1492
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1262
1493
  return cache;
1263
1494
  });
1264
1495
  }, (response) => {
1265
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
1496
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
1266
1497
  });
1267
1498
  }
1268
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1269
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
1499
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
1500
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1270
1501
  }
1271
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1502
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1272
1503
  const { luvio, config } = context;
1273
1504
  const selector = {
1274
- recordId: keyBuilder$6(luvio, config),
1275
- node: adapterFragment$2(luvio, config),
1505
+ recordId: keyBuilder$8(luvio, config),
1506
+ node: adapterFragment$3(luvio, config),
1276
1507
  variables: {},
1277
1508
  };
1278
1509
  const cacheSnapshot = storeLookup(selector, {
1279
1510
  config,
1280
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1511
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1281
1512
  });
1282
1513
  return cacheSnapshot;
1283
1514
  }
1284
1515
  const getConnectionDetailsAdapterFactory = (luvio) => function externalConnectivity__getConnectionDetails(untrustedConfig, requestContext) {
1285
- const config = validateAdapterConfig$5(untrustedConfig, getConnectionDetails_ConfigPropertyNames);
1516
+ const config = validateAdapterConfig$6(untrustedConfig, getConnectionDetails_ConfigPropertyNames);
1286
1517
  // Invalid or incomplete config
1287
1518
  if (config === null) {
1288
1519
  return null;
1289
1520
  }
1290
1521
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1291
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1292
- };
1293
-
1294
- const TTL$3 = 500;
1295
- const VERSION$3 = "2f8128d7e2e433bc604c71441fa6fc50";
1296
- function validate$4(obj, path = 'ExternalConnectivityConnectionEditDeleteResultRepresentation') {
1297
- const v_error = (() => {
1298
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1299
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1300
- }
1301
- const obj_developerName = obj.developerName;
1302
- const path_developerName = path + '.developerName';
1303
- if (typeof obj_developerName !== 'string') {
1304
- return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
1305
- }
1306
- const obj_errorDescription = obj.errorDescription;
1307
- const path_errorDescription = path + '.errorDescription';
1308
- let obj_errorDescription_union0 = null;
1309
- const obj_errorDescription_union0_error = (() => {
1310
- if (typeof obj_errorDescription !== 'string') {
1311
- return new TypeError('Expected "string" but received "' + typeof obj_errorDescription + '" (at "' + path_errorDescription + '")');
1312
- }
1313
- })();
1314
- if (obj_errorDescription_union0_error != null) {
1315
- obj_errorDescription_union0 = obj_errorDescription_union0_error.message;
1316
- }
1317
- let obj_errorDescription_union1 = null;
1318
- const obj_errorDescription_union1_error = (() => {
1319
- if (obj_errorDescription !== null) {
1320
- return new TypeError('Expected "null" but received "' + typeof obj_errorDescription + '" (at "' + path_errorDescription + '")');
1321
- }
1322
- })();
1323
- if (obj_errorDescription_union1_error != null) {
1324
- obj_errorDescription_union1 = obj_errorDescription_union1_error.message;
1325
- }
1326
- if (obj_errorDescription_union0 && obj_errorDescription_union1) {
1327
- let message = 'Object doesn\'t match union (at "' + path_errorDescription + '")';
1328
- message += '\n' + obj_errorDescription_union0.split('\n').map((line) => '\t' + line).join('\n');
1329
- message += '\n' + obj_errorDescription_union1.split('\n').map((line) => '\t' + line).join('\n');
1330
- return new TypeError(message);
1331
- }
1332
- const obj_errorMessage = obj.errorMessage;
1333
- const path_errorMessage = path + '.errorMessage';
1334
- let obj_errorMessage_union0 = null;
1335
- const obj_errorMessage_union0_error = (() => {
1336
- if (typeof obj_errorMessage !== 'string') {
1337
- return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1338
- }
1339
- })();
1340
- if (obj_errorMessage_union0_error != null) {
1341
- obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
1342
- }
1343
- let obj_errorMessage_union1 = null;
1344
- const obj_errorMessage_union1_error = (() => {
1345
- if (obj_errorMessage !== null) {
1346
- return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1347
- }
1348
- })();
1349
- if (obj_errorMessage_union1_error != null) {
1350
- obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
1351
- }
1352
- if (obj_errorMessage_union0 && obj_errorMessage_union1) {
1353
- let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
1354
- message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
1355
- message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
1356
- return new TypeError(message);
1357
- }
1358
- })();
1359
- return v_error === undefined ? null : v_error;
1360
- }
1361
- const RepresentationType$3 = 'ExternalConnectivityConnectionEditDeleteResultRepresentation';
1362
- function keyBuilder$5(luvio, config) {
1363
- return keyPrefix + '::' + RepresentationType$3 + ':' + config.developerName;
1364
- }
1365
- function keyBuilderFromType$1(luvio, object) {
1366
- const keyParams = {
1367
- developerName: object.developerName
1368
- };
1369
- return keyBuilder$5(luvio, keyParams);
1370
- }
1371
- function normalize$3(input, existing, path, luvio, store, timestamp) {
1372
- return input;
1373
- }
1374
- const select$8 = function ExternalConnectivityConnectionEditDeleteResultRepresentationSelect() {
1375
- return {
1376
- kind: 'Fragment',
1377
- version: VERSION$3,
1378
- private: [],
1379
- selections: [
1380
- {
1381
- name: 'developerName',
1382
- kind: 'Scalar'
1383
- },
1384
- {
1385
- name: 'errorDescription',
1386
- kind: 'Scalar'
1387
- },
1388
- {
1389
- name: 'errorMessage',
1390
- kind: 'Scalar'
1391
- }
1392
- ]
1393
- };
1394
- };
1395
- function equals$3(existing, incoming) {
1396
- const existing_developerName = existing.developerName;
1397
- const incoming_developerName = incoming.developerName;
1398
- if (!(existing_developerName === incoming_developerName)) {
1399
- return false;
1400
- }
1401
- const existing_errorDescription = existing.errorDescription;
1402
- const incoming_errorDescription = incoming.errorDescription;
1403
- if (!(existing_errorDescription === incoming_errorDescription)) {
1404
- return false;
1405
- }
1406
- const existing_errorMessage = existing.errorMessage;
1407
- const incoming_errorMessage = incoming.errorMessage;
1408
- if (!(existing_errorMessage === incoming_errorMessage)) {
1409
- return false;
1410
- }
1411
- return true;
1412
- }
1413
- const ingest$3 = function ExternalConnectivityConnectionEditDeleteResultRepresentationIngest(input, path, luvio, store, timestamp) {
1414
- if (process.env.NODE_ENV !== 'production') {
1415
- const validateError = validate$4(input);
1416
- if (validateError !== null) {
1417
- throw validateError;
1418
- }
1419
- }
1420
- const key = keyBuilderFromType$1(luvio, input);
1421
- const ttlToUse = TTL$3;
1422
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "external-connectivity", VERSION$3, RepresentationType$3, equals$3);
1423
- return createLink(key);
1522
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
1424
1523
  };
1425
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1426
- // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1427
- const rootKey = keyBuilderFromType$1(luvio, input);
1428
- rootKeySet.set(rootKey, {
1429
- namespace: keyPrefix,
1430
- representationName: RepresentationType$3,
1431
- mergeable: false
1432
- });
1433
- }
1434
1524
 
1435
- function select$7(luvio, params) {
1436
- return select$8();
1525
+ function select$a(luvio, params) {
1526
+ return select$e();
1437
1527
  }
1438
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1439
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
1528
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1529
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
1440
1530
  }
1441
- function ingestSuccess$4(luvio, resourceParams, response) {
1531
+ function ingestSuccess$5(luvio, resourceParams, response) {
1442
1532
  const { body } = response;
1443
- const key = keyBuilderFromType$1(luvio, body);
1444
- luvio.storeIngest(key, ingest$3, body);
1533
+ const key = keyBuilderFromType$2(luvio, body);
1534
+ luvio.storeIngest(key, ingest$6, body);
1445
1535
  const snapshot = luvio.storeLookup({
1446
1536
  recordId: key,
1447
- node: select$7(),
1537
+ node: select$a(),
1448
1538
  variables: {},
1449
1539
  });
1450
1540
  if (process.env.NODE_ENV !== 'production') {
@@ -1455,7 +1545,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
1455
1545
  deepFreeze(snapshot.data);
1456
1546
  return snapshot;
1457
1547
  }
1458
- function createResourceRequest$4(config) {
1548
+ function createResourceRequest$5(config) {
1459
1549
  const headers = {};
1460
1550
  return {
1461
1551
  baseUri: '/services/data/v63.0',
@@ -1469,7 +1559,7 @@ function createResourceRequest$4(config) {
1469
1559
  };
1470
1560
  }
1471
1561
 
1472
- const adapterName$4 = 'updateConnection';
1562
+ const adapterName$5 = 'updateConnection';
1473
1563
  const updateConnection_ConfigPropertyMetadata = [
1474
1564
  generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
1475
1565
  generateParamConfigMetadata('authenticationTypeInput', true, 2 /* Body */, 4 /* Unsupported */),
@@ -1477,42 +1567,42 @@ const updateConnection_ConfigPropertyMetadata = [
1477
1567
  generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
1478
1568
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
1479
1569
  ];
1480
- const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateConnection_ConfigPropertyMetadata);
1481
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(updateConnection_ConfigPropertyMetadata);
1482
- function typeCheckConfig$4(untrustedConfig) {
1570
+ const updateConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateConnection_ConfigPropertyMetadata);
1571
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$a(updateConnection_ConfigPropertyMetadata);
1572
+ function typeCheckConfig$5(untrustedConfig) {
1483
1573
  const config = {};
1484
- typeCheckConfig$8(untrustedConfig, config, updateConnection_ConfigPropertyMetadata);
1574
+ typeCheckConfig$a(untrustedConfig, config, updateConnection_ConfigPropertyMetadata);
1485
1575
  const untrustedConfig_authenticationTypeInput = untrustedConfig.authenticationTypeInput;
1486
- const referenceAuthenticationTypeInputRepresentationValidationError = validate$a(untrustedConfig_authenticationTypeInput);
1576
+ const referenceAuthenticationTypeInputRepresentationValidationError = validate$d(untrustedConfig_authenticationTypeInput);
1487
1577
  if (referenceAuthenticationTypeInputRepresentationValidationError === null) {
1488
1578
  config.authenticationTypeInput = untrustedConfig_authenticationTypeInput;
1489
1579
  }
1490
1580
  return config;
1491
1581
  }
1492
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1582
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1493
1583
  if (!untrustedIsObject(untrustedConfig)) {
1494
1584
  return null;
1495
1585
  }
1496
1586
  if (process.env.NODE_ENV !== 'production') {
1497
1587
  validateConfig(untrustedConfig, configPropertyNames);
1498
1588
  }
1499
- const config = typeCheckConfig$4(untrustedConfig);
1589
+ const config = typeCheckConfig$5(untrustedConfig);
1500
1590
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1501
1591
  return null;
1502
1592
  }
1503
1593
  return config;
1504
1594
  }
1505
- function buildNetworkSnapshot$4(luvio, config, options) {
1506
- const resourceParams = createResourceParams$4(config);
1507
- const request = createResourceRequest$4(resourceParams);
1595
+ function buildNetworkSnapshot$5(luvio, config, options) {
1596
+ const resourceParams = createResourceParams$5(config);
1597
+ const request = createResourceRequest$5(resourceParams);
1508
1598
  return luvio.dispatchResourceRequest(request, options)
1509
1599
  .then((response) => {
1510
1600
  return luvio.handleSuccessResponse(() => {
1511
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
1601
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
1512
1602
  return luvio.storeBroadcast().then(() => snapshot);
1513
1603
  }, () => {
1514
1604
  const cache = new StoreKeyMap();
1515
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1605
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1516
1606
  return cache;
1517
1607
  });
1518
1608
  }, (response) => {
@@ -1520,30 +1610,106 @@ function buildNetworkSnapshot$4(luvio, config, options) {
1520
1610
  throw response;
1521
1611
  });
1522
1612
  }
1523
- const updateConnectionAdapterFactory = (luvio) => {
1524
- return function updateConnection(untrustedConfig) {
1525
- const config = validateAdapterConfig$4(untrustedConfig, updateConnection_ConfigPropertyNames);
1526
- // Invalid or incomplete config
1527
- if (config === null) {
1528
- throw new Error('Invalid config for "updateConnection"');
1613
+ const updateConnectionAdapterFactory = (luvio) => {
1614
+ return function updateConnection(untrustedConfig) {
1615
+ const config = validateAdapterConfig$5(untrustedConfig, updateConnection_ConfigPropertyNames);
1616
+ // Invalid or incomplete config
1617
+ if (config === null) {
1618
+ throw new Error('Invalid config for "updateConnection"');
1619
+ }
1620
+ return buildNetworkSnapshot$5(luvio, config);
1621
+ };
1622
+ };
1623
+
1624
+ const TTL$4 = 500;
1625
+ const VERSION$4 = "71ffbcde2884f7332ea29ce2c9344e8d";
1626
+ function validate$6(obj, path = 'ExternalConnectivityConnectionRefreshMetadataOutputRepresentation') {
1627
+ const v_error = (() => {
1628
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1629
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1630
+ }
1631
+ const obj_apexClassNames = obj.apexClassNames;
1632
+ const path_apexClassNames = path + '.apexClassNames';
1633
+ if (!ArrayIsArray(obj_apexClassNames)) {
1634
+ return new TypeError('Expected "array" but received "' + typeof obj_apexClassNames + '" (at "' + path_apexClassNames + '")');
1635
+ }
1636
+ for (let i = 0; i < obj_apexClassNames.length; i++) {
1637
+ const obj_apexClassNames_item = obj_apexClassNames[i];
1638
+ const path_apexClassNames_item = path_apexClassNames + '[' + i + ']';
1639
+ if (typeof obj_apexClassNames_item !== 'string') {
1640
+ return new TypeError('Expected "string" but received "' + typeof obj_apexClassNames_item + '" (at "' + path_apexClassNames_item + '")');
1641
+ }
1642
+ }
1643
+ const obj_connectionName = obj.connectionName;
1644
+ const path_connectionName = path + '.connectionName';
1645
+ if (typeof obj_connectionName !== 'string') {
1646
+ return new TypeError('Expected "string" but received "' + typeof obj_connectionName + '" (at "' + path_connectionName + '")');
1647
+ }
1648
+ })();
1649
+ return v_error === undefined ? null : v_error;
1650
+ }
1651
+ const RepresentationType$4 = 'ExternalConnectivityConnectionRefreshMetadataOutputRepresentation';
1652
+ function keyBuilder$7(luvio, config) {
1653
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.connectionName;
1654
+ }
1655
+ function keyBuilderFromType$1(luvio, object) {
1656
+ const keyParams = {
1657
+ connectionName: object.connectionName
1658
+ };
1659
+ return keyBuilder$7(luvio, keyParams);
1660
+ }
1661
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
1662
+ return input;
1663
+ }
1664
+ const select$9 = function ExternalConnectivityConnectionRefreshMetadataOutputRepresentationSelect() {
1665
+ return {
1666
+ kind: 'Fragment',
1667
+ version: VERSION$4,
1668
+ private: [],
1669
+ opaque: true
1670
+ };
1671
+ };
1672
+ function equals$4(existing, incoming) {
1673
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1674
+ return false;
1675
+ }
1676
+ return true;
1677
+ }
1678
+ const ingest$4 = function ExternalConnectivityConnectionRefreshMetadataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1679
+ if (process.env.NODE_ENV !== 'production') {
1680
+ const validateError = validate$6(input);
1681
+ if (validateError !== null) {
1682
+ throw validateError;
1529
1683
  }
1530
- return buildNetworkSnapshot$4(luvio, config);
1531
- };
1684
+ }
1685
+ const key = keyBuilderFromType$1(luvio, input);
1686
+ const ttlToUse = TTL$4;
1687
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "external-connectivity", VERSION$4, RepresentationType$4, equals$4);
1688
+ return createLink(key);
1532
1689
  };
1690
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1691
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1692
+ const rootKey = keyBuilderFromType$1(luvio, input);
1693
+ rootKeySet.set(rootKey, {
1694
+ namespace: keyPrefix,
1695
+ representationName: RepresentationType$4,
1696
+ mergeable: false
1697
+ });
1698
+ }
1533
1699
 
1534
- function select$6(luvio, params) {
1535
- return select$8();
1700
+ function select$8(luvio, params) {
1701
+ return select$9();
1536
1702
  }
1537
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1538
- getTypeCacheKeys$3(storeKeyMap, luvio, response);
1703
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1704
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
1539
1705
  }
1540
- function ingestSuccess$3(luvio, resourceParams, response) {
1706
+ function ingestSuccess$4(luvio, resourceParams, response) {
1541
1707
  const { body } = response;
1542
1708
  const key = keyBuilderFromType$1(luvio, body);
1543
- luvio.storeIngest(key, ingest$3, body);
1709
+ luvio.storeIngest(key, ingest$4, body);
1544
1710
  const snapshot = luvio.storeLookup({
1545
1711
  recordId: key,
1546
- node: select$6(),
1712
+ node: select$8(),
1547
1713
  variables: {},
1548
1714
  });
1549
1715
  if (process.env.NODE_ENV !== 'production') {
@@ -1554,13 +1720,13 @@ function ingestSuccess$3(luvio, resourceParams, response) {
1554
1720
  deepFreeze(snapshot.data);
1555
1721
  return snapshot;
1556
1722
  }
1557
- function createResourceRequest$3(config) {
1723
+ function createResourceRequest$4(config) {
1558
1724
  const headers = {};
1559
1725
  return {
1560
1726
  baseUri: '/services/data/v63.0',
1561
- basePath: '/external-connectivity/connections/delete/' + config.urlParams.connectionDeveloperName + '',
1727
+ basePath: '/external-connectivity/connections/' + config.urlParams.connectionDeveloperName + '/refresh-metadata',
1562
1728
  method: 'post',
1563
- body: null,
1729
+ body: config.body,
1564
1730
  urlParams: config.urlParams,
1565
1731
  queryParams: {},
1566
1732
  headers,
@@ -1568,41 +1734,42 @@ function createResourceRequest$3(config) {
1568
1734
  };
1569
1735
  }
1570
1736
 
1571
- const adapterName$3 = 'deleteConnection';
1572
- const deleteConnection_ConfigPropertyMetadata = [
1737
+ const adapterName$4 = 'refreshMetadata';
1738
+ const refreshMetadata_ConfigPropertyMetadata = [
1573
1739
  generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
1740
+ generateParamConfigMetadata('apexClassNames', true, 2 /* Body */, 0 /* String */, true),
1574
1741
  ];
1575
- const deleteConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, deleteConnection_ConfigPropertyMetadata);
1576
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(deleteConnection_ConfigPropertyMetadata);
1577
- function typeCheckConfig$3(untrustedConfig) {
1742
+ const refreshMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, refreshMetadata_ConfigPropertyMetadata);
1743
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$a(refreshMetadata_ConfigPropertyMetadata);
1744
+ function typeCheckConfig$4(untrustedConfig) {
1578
1745
  const config = {};
1579
- typeCheckConfig$8(untrustedConfig, config, deleteConnection_ConfigPropertyMetadata);
1746
+ typeCheckConfig$a(untrustedConfig, config, refreshMetadata_ConfigPropertyMetadata);
1580
1747
  return config;
1581
1748
  }
1582
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1749
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1583
1750
  if (!untrustedIsObject(untrustedConfig)) {
1584
1751
  return null;
1585
1752
  }
1586
1753
  if (process.env.NODE_ENV !== 'production') {
1587
1754
  validateConfig(untrustedConfig, configPropertyNames);
1588
1755
  }
1589
- const config = typeCheckConfig$3(untrustedConfig);
1756
+ const config = typeCheckConfig$4(untrustedConfig);
1590
1757
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1591
1758
  return null;
1592
1759
  }
1593
1760
  return config;
1594
1761
  }
1595
- function buildNetworkSnapshot$3(luvio, config, options) {
1596
- const resourceParams = createResourceParams$3(config);
1597
- const request = createResourceRequest$3(resourceParams);
1762
+ function buildNetworkSnapshot$4(luvio, config, options) {
1763
+ const resourceParams = createResourceParams$4(config);
1764
+ const request = createResourceRequest$4(resourceParams);
1598
1765
  return luvio.dispatchResourceRequest(request, options)
1599
1766
  .then((response) => {
1600
1767
  return luvio.handleSuccessResponse(() => {
1601
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
1768
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
1602
1769
  return luvio.storeBroadcast().then(() => snapshot);
1603
1770
  }, () => {
1604
1771
  const cache = new StoreKeyMap();
1605
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1772
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1606
1773
  return cache;
1607
1774
  });
1608
1775
  }, (response) => {
@@ -1610,20 +1777,20 @@ function buildNetworkSnapshot$3(luvio, config, options) {
1610
1777
  throw response;
1611
1778
  });
1612
1779
  }
1613
- const deleteConnectionAdapterFactory = (luvio) => {
1614
- return function deleteConnection(untrustedConfig) {
1615
- const config = validateAdapterConfig$3(untrustedConfig, deleteConnection_ConfigPropertyNames);
1780
+ const refreshMetadataAdapterFactory = (luvio) => {
1781
+ return function refreshMetadata(untrustedConfig) {
1782
+ const config = validateAdapterConfig$4(untrustedConfig, refreshMetadata_ConfigPropertyNames);
1616
1783
  // Invalid or incomplete config
1617
1784
  if (config === null) {
1618
- throw new Error('Invalid config for "deleteConnection"');
1785
+ throw new Error('Invalid config for "refreshMetadata"');
1619
1786
  }
1620
- return buildNetworkSnapshot$3(luvio, config);
1787
+ return buildNetworkSnapshot$4(luvio, config);
1621
1788
  };
1622
1789
  };
1623
1790
 
1624
- const TTL$2 = 500;
1625
- const VERSION$2 = "586c10aa43f3608962cdfc83e38d3157";
1626
- function validate$3(obj, path = 'ExternalConnectivityConnectionTestResultRepresentation') {
1791
+ const TTL$3 = 500;
1792
+ const VERSION$3 = "586c10aa43f3608962cdfc83e38d3157";
1793
+ function validate$5(obj, path = 'ExternalConnectivityConnectionTestResultRepresentation') {
1627
1794
  const v_error = (() => {
1628
1795
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1629
1796
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1698,23 +1865,23 @@ function validate$3(obj, path = 'ExternalConnectivityConnectionTestResultReprese
1698
1865
  })();
1699
1866
  return v_error === undefined ? null : v_error;
1700
1867
  }
1701
- const RepresentationType$2 = 'ExternalConnectivityConnectionTestResultRepresentation';
1702
- function keyBuilder$4(luvio, config) {
1703
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.developerName;
1868
+ const RepresentationType$3 = 'ExternalConnectivityConnectionTestResultRepresentation';
1869
+ function keyBuilder$6(luvio, config) {
1870
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.developerName;
1704
1871
  }
1705
1872
  function keyBuilderFromType(luvio, object) {
1706
1873
  const keyParams = {
1707
1874
  developerName: object.developerName
1708
1875
  };
1709
- return keyBuilder$4(luvio, keyParams);
1876
+ return keyBuilder$6(luvio, keyParams);
1710
1877
  }
1711
- function normalize$2(input, existing, path, luvio, store, timestamp) {
1878
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
1712
1879
  return input;
1713
1880
  }
1714
- const select$5 = function ExternalConnectivityConnectionTestResultRepresentationSelect() {
1881
+ const select$7 = function ExternalConnectivityConnectionTestResultRepresentationSelect() {
1715
1882
  return {
1716
1883
  kind: 'Fragment',
1717
- version: VERSION$2,
1884
+ version: VERSION$3,
1718
1885
  private: [],
1719
1886
  selections: [
1720
1887
  {
@@ -1740,7 +1907,7 @@ const select$5 = function ExternalConnectivityConnectionTestResultRepresentation
1740
1907
  ]
1741
1908
  };
1742
1909
  };
1743
- function equals$2(existing, incoming) {
1910
+ function equals$3(existing, incoming) {
1744
1911
  const existing_established = existing.established;
1745
1912
  const incoming_established = incoming.established;
1746
1913
  if (!(existing_established === incoming_established)) {
@@ -1768,21 +1935,176 @@ function equals$2(existing, incoming) {
1768
1935
  }
1769
1936
  return true;
1770
1937
  }
1771
- const ingest$2 = function ExternalConnectivityConnectionTestResultRepresentationIngest(input, path, luvio, store, timestamp) {
1938
+ const ingest$3 = function ExternalConnectivityConnectionTestResultRepresentationIngest(input, path, luvio, store, timestamp) {
1772
1939
  if (process.env.NODE_ENV !== 'production') {
1773
- const validateError = validate$3(input);
1940
+ const validateError = validate$5(input);
1774
1941
  if (validateError !== null) {
1775
1942
  throw validateError;
1776
1943
  }
1777
1944
  }
1778
1945
  const key = keyBuilderFromType(luvio, input);
1946
+ const ttlToUse = TTL$3;
1947
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "external-connectivity", VERSION$3, RepresentationType$3, equals$3);
1948
+ return createLink(key);
1949
+ };
1950
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1951
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1952
+ const rootKey = keyBuilderFromType(luvio, input);
1953
+ rootKeySet.set(rootKey, {
1954
+ namespace: keyPrefix,
1955
+ representationName: RepresentationType$3,
1956
+ mergeable: false
1957
+ });
1958
+ }
1959
+
1960
+ function select$6(luvio, params) {
1961
+ return select$7();
1962
+ }
1963
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1964
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
1965
+ }
1966
+ function ingestSuccess$3(luvio, resourceParams, response) {
1967
+ const { body } = response;
1968
+ const key = keyBuilderFromType(luvio, body);
1969
+ luvio.storeIngest(key, ingest$3, body);
1970
+ const snapshot = luvio.storeLookup({
1971
+ recordId: key,
1972
+ node: select$6(),
1973
+ variables: {},
1974
+ });
1975
+ if (process.env.NODE_ENV !== 'production') {
1976
+ if (snapshot.state !== 'Fulfilled') {
1977
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1978
+ }
1979
+ }
1980
+ deepFreeze(snapshot.data);
1981
+ return snapshot;
1982
+ }
1983
+ function createResourceRequest$3(config) {
1984
+ const headers = {};
1985
+ return {
1986
+ baseUri: '/services/data/v63.0',
1987
+ basePath: '/external-connectivity/connections/' + config.urlParams.connectionDeveloperName + '/test',
1988
+ method: 'post',
1989
+ body: null,
1990
+ urlParams: config.urlParams,
1991
+ queryParams: {},
1992
+ headers,
1993
+ priority: 'normal',
1994
+ };
1995
+ }
1996
+
1997
+ const adapterName$3 = 'testConnection';
1998
+ const testConnection_ConfigPropertyMetadata = [
1999
+ generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
2000
+ ];
2001
+ const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, testConnection_ConfigPropertyMetadata);
2002
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$a(testConnection_ConfigPropertyMetadata);
2003
+ function typeCheckConfig$3(untrustedConfig) {
2004
+ const config = {};
2005
+ typeCheckConfig$a(untrustedConfig, config, testConnection_ConfigPropertyMetadata);
2006
+ return config;
2007
+ }
2008
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2009
+ if (!untrustedIsObject(untrustedConfig)) {
2010
+ return null;
2011
+ }
2012
+ if (process.env.NODE_ENV !== 'production') {
2013
+ validateConfig(untrustedConfig, configPropertyNames);
2014
+ }
2015
+ const config = typeCheckConfig$3(untrustedConfig);
2016
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2017
+ return null;
2018
+ }
2019
+ return config;
2020
+ }
2021
+ function buildNetworkSnapshot$3(luvio, config, options) {
2022
+ const resourceParams = createResourceParams$3(config);
2023
+ const request = createResourceRequest$3(resourceParams);
2024
+ return luvio.dispatchResourceRequest(request, options)
2025
+ .then((response) => {
2026
+ return luvio.handleSuccessResponse(() => {
2027
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
2028
+ return luvio.storeBroadcast().then(() => snapshot);
2029
+ }, () => {
2030
+ const cache = new StoreKeyMap();
2031
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2032
+ return cache;
2033
+ });
2034
+ }, (response) => {
2035
+ deepFreeze(response);
2036
+ throw response;
2037
+ });
2038
+ }
2039
+ const testConnectionAdapterFactory = (luvio) => {
2040
+ return function testConnection(untrustedConfig) {
2041
+ const config = validateAdapterConfig$3(untrustedConfig, testConnection_ConfigPropertyNames);
2042
+ // Invalid or incomplete config
2043
+ if (config === null) {
2044
+ throw new Error('Invalid config for "testConnection"');
2045
+ }
2046
+ return buildNetworkSnapshot$3(luvio, config);
2047
+ };
2048
+ };
2049
+
2050
+ const TTL$2 = 500;
2051
+ const VERSION$2 = "e0e363c96027e368a8c2c44580411d53";
2052
+ function validate$4(obj, path = 'ExternalConnectivityConnectorListRepresentation') {
2053
+ const v_error = (() => {
2054
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2055
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2056
+ }
2057
+ const obj_connectors = obj.connectors;
2058
+ const path_connectors = path + '.connectors';
2059
+ if (!ArrayIsArray(obj_connectors)) {
2060
+ return new TypeError('Expected "array" but received "' + typeof obj_connectors + '" (at "' + path_connectors + '")');
2061
+ }
2062
+ for (let i = 0; i < obj_connectors.length; i++) {
2063
+ const obj_connectors_item = obj_connectors[i];
2064
+ const path_connectors_item = path_connectors + '[' + i + ']';
2065
+ const referencepath_connectors_itemValidationError = validate$g(obj_connectors_item, path_connectors_item);
2066
+ if (referencepath_connectors_itemValidationError !== null) {
2067
+ let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_connectors_item + '")\n';
2068
+ message += referencepath_connectors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2069
+ return new TypeError(message);
2070
+ }
2071
+ }
2072
+ })();
2073
+ return v_error === undefined ? null : v_error;
2074
+ }
2075
+ const RepresentationType$2 = 'ExternalConnectivityConnectorListRepresentation';
2076
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
2077
+ return input;
2078
+ }
2079
+ const select$5 = function ExternalConnectivityConnectorListRepresentationSelect() {
2080
+ return {
2081
+ kind: 'Fragment',
2082
+ version: VERSION$2,
2083
+ private: [],
2084
+ opaque: true
2085
+ };
2086
+ };
2087
+ function equals$2(existing, incoming) {
2088
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
2089
+ return false;
2090
+ }
2091
+ return true;
2092
+ }
2093
+ const ingest$2 = function ExternalConnectivityConnectorListRepresentationIngest(input, path, luvio, store, timestamp) {
2094
+ if (process.env.NODE_ENV !== 'production') {
2095
+ const validateError = validate$4(input);
2096
+ if (validateError !== null) {
2097
+ throw validateError;
2098
+ }
2099
+ }
2100
+ const key = path.fullPath;
1779
2101
  const ttlToUse = TTL$2;
1780
2102
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "external-connectivity", VERSION$2, RepresentationType$2, equals$2);
1781
2103
  return createLink(key);
1782
2104
  };
1783
2105
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1784
2106
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1785
- const rootKey = keyBuilderFromType(luvio, input);
2107
+ const rootKey = fullPathFactory();
1786
2108
  rootKeySet.set(rootKey, {
1787
2109
  namespace: keyPrefix,
1788
2110
  representationName: RepresentationType$2,
@@ -1793,18 +2115,21 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1793
2115
  function select$4(luvio, params) {
1794
2116
  return select$5();
1795
2117
  }
2118
+ function keyBuilder$5(luvio, params) {
2119
+ return keyPrefix + '::ExternalConnectivityConnectorListRepresentation:(' + ')';
2120
+ }
1796
2121
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1797
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
2122
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5());
1798
2123
  }
1799
- function ingestSuccess$2(luvio, resourceParams, response) {
2124
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1800
2125
  const { body } = response;
1801
- const key = keyBuilderFromType(luvio, body);
2126
+ const key = keyBuilder$5();
1802
2127
  luvio.storeIngest(key, ingest$2, body);
1803
2128
  const snapshot = luvio.storeLookup({
1804
2129
  recordId: key,
1805
2130
  node: select$4(),
1806
2131
  variables: {},
1807
- });
2132
+ }, snapshotRefresh);
1808
2133
  if (process.env.NODE_ENV !== 'production') {
1809
2134
  if (snapshot.state !== 'Fulfilled') {
1810
2135
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
@@ -1813,29 +2138,42 @@ function ingestSuccess$2(luvio, resourceParams, response) {
1813
2138
  deepFreeze(snapshot.data);
1814
2139
  return snapshot;
1815
2140
  }
2141
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
2142
+ const key = keyBuilder$5();
2143
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2144
+ const storeMetadataParams = {
2145
+ ttl: TTL$2,
2146
+ namespace: keyPrefix,
2147
+ version: VERSION$2,
2148
+ representationName: RepresentationType$2
2149
+ };
2150
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2151
+ return errorSnapshot;
2152
+ }
1816
2153
  function createResourceRequest$2(config) {
1817
2154
  const headers = {};
1818
2155
  return {
1819
2156
  baseUri: '/services/data/v63.0',
1820
- basePath: '/external-connectivity/connections/' + config.urlParams.connectionDeveloperName + '/test',
1821
- method: 'post',
2157
+ basePath: '/external-connectivity/connectors',
2158
+ method: 'get',
1822
2159
  body: null,
1823
- urlParams: config.urlParams,
2160
+ urlParams: {},
1824
2161
  queryParams: {},
1825
2162
  headers,
1826
2163
  priority: 'normal',
1827
2164
  };
1828
2165
  }
1829
2166
 
1830
- const adapterName$2 = 'testConnection';
1831
- const testConnection_ConfigPropertyMetadata = [
1832
- generateParamConfigMetadata('connectionDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
1833
- ];
1834
- const testConnection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, testConnection_ConfigPropertyMetadata);
1835
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(testConnection_ConfigPropertyMetadata);
2167
+ const adapterName$2 = 'getConnectors';
2168
+ const getConnectors_ConfigPropertyMetadata = [];
2169
+ const getConnectors_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getConnectors_ConfigPropertyMetadata);
2170
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$a(getConnectors_ConfigPropertyMetadata);
2171
+ function keyBuilder$4(luvio, config) {
2172
+ createResourceParams$2(config);
2173
+ return keyBuilder$5();
2174
+ }
1836
2175
  function typeCheckConfig$2(untrustedConfig) {
1837
2176
  const config = {};
1838
- typeCheckConfig$8(untrustedConfig, config, testConnection_ConfigPropertyMetadata);
1839
2177
  return config;
1840
2178
  }
1841
2179
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -1845,71 +2183,189 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1845
2183
  if (process.env.NODE_ENV !== 'production') {
1846
2184
  validateConfig(untrustedConfig, configPropertyNames);
1847
2185
  }
1848
- const config = typeCheckConfig$2(untrustedConfig);
2186
+ const config = typeCheckConfig$2();
1849
2187
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1850
2188
  return null;
1851
2189
  }
1852
2190
  return config;
1853
2191
  }
2192
+ function adapterFragment$2(luvio, config) {
2193
+ createResourceParams$2(config);
2194
+ return select$4();
2195
+ }
2196
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2197
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
2198
+ config,
2199
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2200
+ });
2201
+ return luvio.storeBroadcast().then(() => snapshot);
2202
+ }
2203
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
2204
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
2205
+ config,
2206
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2207
+ });
2208
+ return luvio.storeBroadcast().then(() => snapshot);
2209
+ }
1854
2210
  function buildNetworkSnapshot$2(luvio, config, options) {
1855
2211
  const resourceParams = createResourceParams$2(config);
1856
- const request = createResourceRequest$2(resourceParams);
2212
+ const request = createResourceRequest$2();
1857
2213
  return luvio.dispatchResourceRequest(request, options)
1858
2214
  .then((response) => {
1859
- return luvio.handleSuccessResponse(() => {
1860
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
1861
- return luvio.storeBroadcast().then(() => snapshot);
1862
- }, () => {
2215
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1863
2216
  const cache = new StoreKeyMap();
1864
2217
  getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1865
2218
  return cache;
1866
2219
  });
1867
2220
  }, (response) => {
1868
- deepFreeze(response);
1869
- throw response;
2221
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
1870
2222
  });
1871
2223
  }
1872
- const testConnectionAdapterFactory = (luvio) => {
1873
- return function testConnection(untrustedConfig) {
1874
- const config = validateAdapterConfig$2(untrustedConfig, testConnection_ConfigPropertyNames);
1875
- // Invalid or incomplete config
1876
- if (config === null) {
1877
- throw new Error('Invalid config for "testConnection"');
1878
- }
1879
- return buildNetworkSnapshot$2(luvio, config);
2224
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2225
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2226
+ }
2227
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2228
+ const { luvio, config } = context;
2229
+ const selector = {
2230
+ recordId: keyBuilder$4(luvio, config),
2231
+ node: adapterFragment$2(luvio, config),
2232
+ variables: {},
1880
2233
  };
2234
+ const cacheSnapshot = storeLookup(selector, {
2235
+ config,
2236
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
2237
+ });
2238
+ return cacheSnapshot;
2239
+ }
2240
+ const getConnectorsAdapterFactory = (luvio) => function externalConnectivity__getConnectors(untrustedConfig, requestContext) {
2241
+ const config = validateAdapterConfig$2(untrustedConfig, getConnectors_ConfigPropertyNames);
2242
+ // Invalid or incomplete config
2243
+ if (config === null) {
2244
+ return null;
2245
+ }
2246
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2247
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1881
2248
  };
1882
2249
 
2250
+ function validate$3(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
2251
+ const v_error = (() => {
2252
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2253
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2254
+ }
2255
+ const obj_authenticationParameterDefinitions = obj.authenticationParameterDefinitions;
2256
+ const path_authenticationParameterDefinitions = path + '.authenticationParameterDefinitions';
2257
+ if (!ArrayIsArray(obj_authenticationParameterDefinitions)) {
2258
+ return new TypeError('Expected "array" but received "' + typeof obj_authenticationParameterDefinitions + '" (at "' + path_authenticationParameterDefinitions + '")');
2259
+ }
2260
+ for (let i = 0; i < obj_authenticationParameterDefinitions.length; i++) {
2261
+ const obj_authenticationParameterDefinitions_item = obj_authenticationParameterDefinitions[i];
2262
+ const path_authenticationParameterDefinitions_item = path_authenticationParameterDefinitions + '[' + i + ']';
2263
+ const referencepath_authenticationParameterDefinitions_itemValidationError = validate$a(obj_authenticationParameterDefinitions_item, path_authenticationParameterDefinitions_item);
2264
+ if (referencepath_authenticationParameterDefinitions_itemValidationError !== null) {
2265
+ let message = 'Object doesn\'t match AuthenticationParameterDefinitionRepresentation (at "' + path_authenticationParameterDefinitions_item + '")\n';
2266
+ message += referencepath_authenticationParameterDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2267
+ return new TypeError(message);
2268
+ }
2269
+ }
2270
+ const obj_authenticationProtocol = obj.authenticationProtocol;
2271
+ const path_authenticationProtocol = path + '.authenticationProtocol';
2272
+ if (typeof obj_authenticationProtocol !== 'string') {
2273
+ return new TypeError('Expected "string" but received "' + typeof obj_authenticationProtocol + '" (at "' + path_authenticationProtocol + '")');
2274
+ }
2275
+ })();
2276
+ return v_error === undefined ? null : v_error;
2277
+ }
2278
+
1883
2279
  const TTL$1 = 500;
1884
- const VERSION$1 = "e0e363c96027e368a8c2c44580411d53";
1885
- function validate$2(obj, path = 'ExternalConnectivityConnectorListRepresentation') {
2280
+ const VERSION$1 = "f8847a262a47a2a68d458483f2a60a07";
2281
+ function validate$2(obj, path = 'ExternalConnectivityConnectorDetailsRepresentation') {
1886
2282
  const v_error = (() => {
1887
2283
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1888
2284
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1889
2285
  }
1890
- const obj_connectors = obj.connectors;
1891
- const path_connectors = path + '.connectors';
1892
- if (!ArrayIsArray(obj_connectors)) {
1893
- return new TypeError('Expected "array" but received "' + typeof obj_connectors + '" (at "' + path_connectors + '")');
2286
+ const obj_connectorType = obj.connectorType;
2287
+ const path_connectorType = path + '.connectorType';
2288
+ if (typeof obj_connectorType !== 'string') {
2289
+ return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
1894
2290
  }
1895
- for (let i = 0; i < obj_connectors.length; i++) {
1896
- const obj_connectors_item = obj_connectors[i];
1897
- const path_connectors_item = path_connectors + '[' + i + ']';
1898
- const referencepath_connectors_itemValidationError = validate$d(obj_connectors_item, path_connectors_item);
1899
- if (referencepath_connectors_itemValidationError !== null) {
1900
- let message = 'Object doesn\'t match ExternalConnectivityConnectorRepresentation (at "' + path_connectors_item + '")\n';
1901
- message += referencepath_connectors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2291
+ const obj_description = obj.description;
2292
+ const path_description = path + '.description';
2293
+ if (typeof obj_description !== 'string') {
2294
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2295
+ }
2296
+ const obj_developerName = obj.developerName;
2297
+ const path_developerName = path + '.developerName';
2298
+ if (typeof obj_developerName !== 'string') {
2299
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
2300
+ }
2301
+ const obj_iconMetadata = obj.iconMetadata;
2302
+ const path_iconMetadata = path + '.iconMetadata';
2303
+ if (!ArrayIsArray(obj_iconMetadata)) {
2304
+ return new TypeError('Expected "array" but received "' + typeof obj_iconMetadata + '" (at "' + path_iconMetadata + '")');
2305
+ }
2306
+ for (let i = 0; i < obj_iconMetadata.length; i++) {
2307
+ const obj_iconMetadata_item = obj_iconMetadata[i];
2308
+ const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
2309
+ const referencepath_iconMetadata_itemValidationError = validate$h(obj_iconMetadata_item, path_iconMetadata_item);
2310
+ if (referencepath_iconMetadata_itemValidationError !== null) {
2311
+ let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
2312
+ message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2313
+ return new TypeError(message);
2314
+ }
2315
+ }
2316
+ const obj_label = obj.label;
2317
+ const path_label = path + '.label';
2318
+ if (typeof obj_label !== 'string') {
2319
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2320
+ }
2321
+ const obj_labelVersion = obj.labelVersion;
2322
+ const path_labelVersion = path + '.labelVersion';
2323
+ if (typeof obj_labelVersion !== 'string') {
2324
+ return new TypeError('Expected "string" but received "' + typeof obj_labelVersion + '" (at "' + path_labelVersion + '")');
2325
+ }
2326
+ const obj_majorVersion = obj.majorVersion;
2327
+ const path_majorVersion = path + '.majorVersion';
2328
+ if (typeof obj_majorVersion !== 'number' || (typeof obj_majorVersion === 'number' && Math.floor(obj_majorVersion) !== obj_majorVersion)) {
2329
+ return new TypeError('Expected "integer" but received "' + typeof obj_majorVersion + '" (at "' + path_majorVersion + '")');
2330
+ }
2331
+ const obj_releaseStatus = obj.releaseStatus;
2332
+ const path_releaseStatus = path + '.releaseStatus';
2333
+ if (typeof obj_releaseStatus !== 'string') {
2334
+ return new TypeError('Expected "string" but received "' + typeof obj_releaseStatus + '" (at "' + path_releaseStatus + '")');
2335
+ }
2336
+ const obj_supportedAuthenticationTypes = obj.supportedAuthenticationTypes;
2337
+ const path_supportedAuthenticationTypes = path + '.supportedAuthenticationTypes';
2338
+ if (!ArrayIsArray(obj_supportedAuthenticationTypes)) {
2339
+ return new TypeError('Expected "array" but received "' + typeof obj_supportedAuthenticationTypes + '" (at "' + path_supportedAuthenticationTypes + '")');
2340
+ }
2341
+ for (let i = 0; i < obj_supportedAuthenticationTypes.length; i++) {
2342
+ const obj_supportedAuthenticationTypes_item = obj_supportedAuthenticationTypes[i];
2343
+ const path_supportedAuthenticationTypes_item = path_supportedAuthenticationTypes + '[' + i + ']';
2344
+ const referencepath_supportedAuthenticationTypes_itemValidationError = validate$3(obj_supportedAuthenticationTypes_item, path_supportedAuthenticationTypes_item);
2345
+ if (referencepath_supportedAuthenticationTypes_itemValidationError !== null) {
2346
+ let message = 'Object doesn\'t match AuthenticationTypeDefinitionRepresentation (at "' + path_supportedAuthenticationTypes_item + '")\n';
2347
+ message += referencepath_supportedAuthenticationTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1902
2348
  return new TypeError(message);
1903
2349
  }
1904
2350
  }
2351
+ const obj_vendor = obj.vendor;
2352
+ const path_vendor = path + '.vendor';
2353
+ if (typeof obj_vendor !== 'string') {
2354
+ return new TypeError('Expected "string" but received "' + typeof obj_vendor + '" (at "' + path_vendor + '")');
2355
+ }
2356
+ const obj_version = obj.version;
2357
+ const path_version = path + '.version';
2358
+ if (typeof obj_version !== 'string') {
2359
+ return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
2360
+ }
1905
2361
  })();
1906
2362
  return v_error === undefined ? null : v_error;
1907
2363
  }
1908
- const RepresentationType$1 = 'ExternalConnectivityConnectorListRepresentation';
2364
+ const RepresentationType$1 = 'ExternalConnectivityConnectorDetailsRepresentation';
1909
2365
  function normalize$1(input, existing, path, luvio, store, timestamp) {
1910
2366
  return input;
1911
2367
  }
1912
- const select$3 = function ExternalConnectivityConnectorListRepresentationSelect() {
2368
+ const select$3 = function ExternalConnectivityConnectorDetailsRepresentationSelect() {
1913
2369
  return {
1914
2370
  kind: 'Fragment',
1915
2371
  version: VERSION$1,
@@ -1923,7 +2379,7 @@ function equals$1(existing, incoming) {
1923
2379
  }
1924
2380
  return true;
1925
2381
  }
1926
- const ingest$1 = function ExternalConnectivityConnectorListRepresentationIngest(input, path, luvio, store, timestamp) {
2382
+ const ingest$1 = function ExternalConnectivityConnectorDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
1927
2383
  if (process.env.NODE_ENV !== 'production') {
1928
2384
  const validateError = validate$2(input);
1929
2385
  if (validateError !== null) {
@@ -1949,14 +2405,14 @@ function select$2(luvio, params) {
1949
2405
  return select$3();
1950
2406
  }
1951
2407
  function keyBuilder$3(luvio, params) {
1952
- return keyPrefix + '::ExternalConnectivityConnectorListRepresentation:(' + ')';
2408
+ return keyPrefix + '::ExternalConnectivityConnectorDetailsRepresentation:(' + 'connectorDeveloperName:' + params.urlParams.connectorDeveloperName + ')';
1953
2409
  }
1954
2410
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1955
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3());
2411
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1956
2412
  }
1957
2413
  function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1958
2414
  const { body } = response;
1959
- const key = keyBuilder$3();
2415
+ const key = keyBuilder$3(luvio, resourceParams);
1960
2416
  luvio.storeIngest(key, ingest$1, body);
1961
2417
  const snapshot = luvio.storeLookup({
1962
2418
  recordId: key,
@@ -1972,7 +2428,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1972
2428
  return snapshot;
1973
2429
  }
1974
2430
  function ingestError$1(luvio, params, error, snapshotRefresh) {
1975
- const key = keyBuilder$3();
2431
+ const key = keyBuilder$3(luvio, params);
1976
2432
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1977
2433
  const storeMetadataParams = {
1978
2434
  ttl: TTL$1,
@@ -1987,26 +2443,29 @@ function createResourceRequest$1(config) {
1987
2443
  const headers = {};
1988
2444
  return {
1989
2445
  baseUri: '/services/data/v63.0',
1990
- basePath: '/external-connectivity/connectors',
2446
+ basePath: '/external-connectivity/connectors/' + config.urlParams.connectorDeveloperName + '',
1991
2447
  method: 'get',
1992
2448
  body: null,
1993
- urlParams: {},
2449
+ urlParams: config.urlParams,
1994
2450
  queryParams: {},
1995
2451
  headers,
1996
2452
  priority: 'normal',
1997
2453
  };
1998
2454
  }
1999
2455
 
2000
- const adapterName$1 = 'getConnectors';
2001
- const getConnectors_ConfigPropertyMetadata = [];
2002
- const getConnectors_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getConnectors_ConfigPropertyMetadata);
2003
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(getConnectors_ConfigPropertyMetadata);
2456
+ const adapterName$1 = 'getConnectorDetails';
2457
+ const getConnectorDetails_ConfigPropertyMetadata = [
2458
+ generateParamConfigMetadata('connectorDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
2459
+ ];
2460
+ const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getConnectorDetails_ConfigPropertyMetadata);
2461
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$a(getConnectorDetails_ConfigPropertyMetadata);
2004
2462
  function keyBuilder$2(luvio, config) {
2005
- createResourceParams$1(config);
2006
- return keyBuilder$3();
2463
+ const resourceParams = createResourceParams$1(config);
2464
+ return keyBuilder$3(luvio, resourceParams);
2007
2465
  }
2008
2466
  function typeCheckConfig$1(untrustedConfig) {
2009
2467
  const config = {};
2468
+ typeCheckConfig$a(untrustedConfig, config, getConnectorDetails_ConfigPropertyMetadata);
2010
2469
  return config;
2011
2470
  }
2012
2471
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -2016,7 +2475,7 @@ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
2016
2475
  if (process.env.NODE_ENV !== 'production') {
2017
2476
  validateConfig(untrustedConfig, configPropertyNames);
2018
2477
  }
2019
- const config = typeCheckConfig$1();
2478
+ const config = typeCheckConfig$1(untrustedConfig);
2020
2479
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2021
2480
  return null;
2022
2481
  }
@@ -2042,7 +2501,7 @@ function onFetchResponseError$1(luvio, config, resourceParams, response) {
2042
2501
  }
2043
2502
  function buildNetworkSnapshot$1(luvio, config, options) {
2044
2503
  const resourceParams = createResourceParams$1(config);
2045
- const request = createResourceRequest$1();
2504
+ const request = createResourceRequest$1(resourceParams);
2046
2505
  return luvio.dispatchResourceRequest(request, options)
2047
2506
  .then((response) => {
2048
2507
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
@@ -2055,7 +2514,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
2055
2514
  });
2056
2515
  }
2057
2516
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2058
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
2517
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
2059
2518
  }
2060
2519
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2061
2520
  const { luvio, config } = context;
@@ -2070,8 +2529,8 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2070
2529
  });
2071
2530
  return cacheSnapshot;
2072
2531
  }
2073
- const getConnectorsAdapterFactory = (luvio) => function externalConnectivity__getConnectors(untrustedConfig, requestContext) {
2074
- const config = validateAdapterConfig$1(untrustedConfig, getConnectors_ConfigPropertyNames);
2532
+ const getConnectorDetailsAdapterFactory = (luvio) => function externalConnectivity__getConnectorDetails(untrustedConfig, requestContext) {
2533
+ const config = validateAdapterConfig$1(untrustedConfig, getConnectorDetails_ConfigPropertyNames);
2075
2534
  // Invalid or incomplete config
2076
2535
  if (config === null) {
2077
2536
  return null;
@@ -2080,125 +2539,60 @@ const getConnectorsAdapterFactory = (luvio) => function externalConnectivity__ge
2080
2539
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2081
2540
  };
2082
2541
 
2083
- function validate$1(obj, path = 'AuthenticationTypeDefinitionRepresentation') {
2542
+ function validate$1(obj, path = 'IcStandardExternalIdentityProviderRepresentation') {
2084
2543
  const v_error = (() => {
2085
2544
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2086
2545
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2087
2546
  }
2088
- const obj_authenticationParameterDefinitions = obj.authenticationParameterDefinitions;
2089
- const path_authenticationParameterDefinitions = path + '.authenticationParameterDefinitions';
2090
- if (!ArrayIsArray(obj_authenticationParameterDefinitions)) {
2091
- return new TypeError('Expected "array" but received "' + typeof obj_authenticationParameterDefinitions + '" (at "' + path_authenticationParameterDefinitions + '")');
2547
+ const obj_environment = obj.environment;
2548
+ const path_environment = path + '.environment';
2549
+ if (typeof obj_environment !== 'string') {
2550
+ return new TypeError('Expected "string" but received "' + typeof obj_environment + '" (at "' + path_environment + '")');
2092
2551
  }
2093
- for (let i = 0; i < obj_authenticationParameterDefinitions.length; i++) {
2094
- const obj_authenticationParameterDefinitions_item = obj_authenticationParameterDefinitions[i];
2095
- const path_authenticationParameterDefinitions_item = path_authenticationParameterDefinitions + '[' + i + ']';
2096
- const referencepath_authenticationParameterDefinitions_itemValidationError = validate$8(obj_authenticationParameterDefinitions_item, path_authenticationParameterDefinitions_item);
2097
- if (referencepath_authenticationParameterDefinitions_itemValidationError !== null) {
2098
- let message = 'Object doesn\'t match AuthenticationParameterDefinitionRepresentation (at "' + path_authenticationParameterDefinitions_item + '")\n';
2099
- message += referencepath_authenticationParameterDefinitions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2100
- return new TypeError(message);
2101
- }
2552
+ const obj_fullName = obj.fullName;
2553
+ const path_fullName = path + '.fullName';
2554
+ if (typeof obj_fullName !== 'string') {
2555
+ return new TypeError('Expected "string" but received "' + typeof obj_fullName + '" (at "' + path_fullName + '")');
2102
2556
  }
2103
- const obj_authenticationProtocol = obj.authenticationProtocol;
2104
- const path_authenticationProtocol = path + '.authenticationProtocol';
2105
- if (typeof obj_authenticationProtocol !== 'string') {
2106
- return new TypeError('Expected "string" but received "' + typeof obj_authenticationProtocol + '" (at "' + path_authenticationProtocol + '")');
2557
+ const obj_label = obj.label;
2558
+ const path_label = path + '.label';
2559
+ if (typeof obj_label !== 'string') {
2560
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2107
2561
  }
2108
2562
  })();
2109
2563
  return v_error === undefined ? null : v_error;
2110
2564
  }
2111
2565
 
2112
2566
  const TTL = 500;
2113
- const VERSION = "f8847a262a47a2a68d458483f2a60a07";
2114
- function validate(obj, path = 'ExternalConnectivityConnectorDetailsRepresentation') {
2567
+ const VERSION = "72f95c35be550092433b2acd2f914899";
2568
+ function validate(obj, path = 'IcStandardExternalIdentityProviderListRepresentation') {
2115
2569
  const v_error = (() => {
2116
2570
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2117
2571
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2118
2572
  }
2119
- const obj_connectorType = obj.connectorType;
2120
- const path_connectorType = path + '.connectorType';
2121
- if (typeof obj_connectorType !== 'string') {
2122
- return new TypeError('Expected "string" but received "' + typeof obj_connectorType + '" (at "' + path_connectorType + '")');
2123
- }
2124
- const obj_description = obj.description;
2125
- const path_description = path + '.description';
2126
- if (typeof obj_description !== 'string') {
2127
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2128
- }
2129
- const obj_developerName = obj.developerName;
2130
- const path_developerName = path + '.developerName';
2131
- if (typeof obj_developerName !== 'string') {
2132
- return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
2133
- }
2134
- const obj_iconMetadata = obj.iconMetadata;
2135
- const path_iconMetadata = path + '.iconMetadata';
2136
- if (!ArrayIsArray(obj_iconMetadata)) {
2137
- return new TypeError('Expected "array" but received "' + typeof obj_iconMetadata + '" (at "' + path_iconMetadata + '")');
2138
- }
2139
- for (let i = 0; i < obj_iconMetadata.length; i++) {
2140
- const obj_iconMetadata_item = obj_iconMetadata[i];
2141
- const path_iconMetadata_item = path_iconMetadata + '[' + i + ']';
2142
- const referencepath_iconMetadata_itemValidationError = validate$e(obj_iconMetadata_item, path_iconMetadata_item);
2143
- if (referencepath_iconMetadata_itemValidationError !== null) {
2144
- let message = 'Object doesn\'t match ConnectorIconMetadataRepresentation (at "' + path_iconMetadata_item + '")\n';
2145
- message += referencepath_iconMetadata_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2146
- return new TypeError(message);
2147
- }
2148
- }
2149
- const obj_label = obj.label;
2150
- const path_label = path + '.label';
2151
- if (typeof obj_label !== 'string') {
2152
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
2153
- }
2154
- const obj_labelVersion = obj.labelVersion;
2155
- const path_labelVersion = path + '.labelVersion';
2156
- if (typeof obj_labelVersion !== 'string') {
2157
- return new TypeError('Expected "string" but received "' + typeof obj_labelVersion + '" (at "' + path_labelVersion + '")');
2158
- }
2159
- const obj_majorVersion = obj.majorVersion;
2160
- const path_majorVersion = path + '.majorVersion';
2161
- if (typeof obj_majorVersion !== 'number' || (typeof obj_majorVersion === 'number' && Math.floor(obj_majorVersion) !== obj_majorVersion)) {
2162
- return new TypeError('Expected "integer" but received "' + typeof obj_majorVersion + '" (at "' + path_majorVersion + '")');
2163
- }
2164
- const obj_releaseStatus = obj.releaseStatus;
2165
- const path_releaseStatus = path + '.releaseStatus';
2166
- if (typeof obj_releaseStatus !== 'string') {
2167
- return new TypeError('Expected "string" but received "' + typeof obj_releaseStatus + '" (at "' + path_releaseStatus + '")');
2168
- }
2169
- const obj_supportedAuthenticationTypes = obj.supportedAuthenticationTypes;
2170
- const path_supportedAuthenticationTypes = path + '.supportedAuthenticationTypes';
2171
- if (!ArrayIsArray(obj_supportedAuthenticationTypes)) {
2172
- return new TypeError('Expected "array" but received "' + typeof obj_supportedAuthenticationTypes + '" (at "' + path_supportedAuthenticationTypes + '")');
2173
- }
2174
- for (let i = 0; i < obj_supportedAuthenticationTypes.length; i++) {
2175
- const obj_supportedAuthenticationTypes_item = obj_supportedAuthenticationTypes[i];
2176
- const path_supportedAuthenticationTypes_item = path_supportedAuthenticationTypes + '[' + i + ']';
2177
- const referencepath_supportedAuthenticationTypes_itemValidationError = validate$1(obj_supportedAuthenticationTypes_item, path_supportedAuthenticationTypes_item);
2178
- if (referencepath_supportedAuthenticationTypes_itemValidationError !== null) {
2179
- let message = 'Object doesn\'t match AuthenticationTypeDefinitionRepresentation (at "' + path_supportedAuthenticationTypes_item + '")\n';
2180
- message += referencepath_supportedAuthenticationTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2573
+ const obj_identityProviderRepresentationList = obj.identityProviderRepresentationList;
2574
+ const path_identityProviderRepresentationList = path + '.identityProviderRepresentationList';
2575
+ if (!ArrayIsArray(obj_identityProviderRepresentationList)) {
2576
+ return new TypeError('Expected "array" but received "' + typeof obj_identityProviderRepresentationList + '" (at "' + path_identityProviderRepresentationList + '")');
2577
+ }
2578
+ for (let i = 0; i < obj_identityProviderRepresentationList.length; i++) {
2579
+ const obj_identityProviderRepresentationList_item = obj_identityProviderRepresentationList[i];
2580
+ const path_identityProviderRepresentationList_item = path_identityProviderRepresentationList + '[' + i + ']';
2581
+ const referencepath_identityProviderRepresentationList_itemValidationError = validate$1(obj_identityProviderRepresentationList_item, path_identityProviderRepresentationList_item);
2582
+ if (referencepath_identityProviderRepresentationList_itemValidationError !== null) {
2583
+ let message = 'Object doesn\'t match IcStandardExternalIdentityProviderRepresentation (at "' + path_identityProviderRepresentationList_item + '")\n';
2584
+ message += referencepath_identityProviderRepresentationList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2181
2585
  return new TypeError(message);
2182
2586
  }
2183
2587
  }
2184
- const obj_vendor = obj.vendor;
2185
- const path_vendor = path + '.vendor';
2186
- if (typeof obj_vendor !== 'string') {
2187
- return new TypeError('Expected "string" but received "' + typeof obj_vendor + '" (at "' + path_vendor + '")');
2188
- }
2189
- const obj_version = obj.version;
2190
- const path_version = path + '.version';
2191
- if (typeof obj_version !== 'string') {
2192
- return new TypeError('Expected "string" but received "' + typeof obj_version + '" (at "' + path_version + '")');
2193
- }
2194
2588
  })();
2195
2589
  return v_error === undefined ? null : v_error;
2196
2590
  }
2197
- const RepresentationType = 'ExternalConnectivityConnectorDetailsRepresentation';
2591
+ const RepresentationType = 'IcStandardExternalIdentityProviderListRepresentation';
2198
2592
  function normalize(input, existing, path, luvio, store, timestamp) {
2199
2593
  return input;
2200
2594
  }
2201
- const select$1 = function ExternalConnectivityConnectorDetailsRepresentationSelect() {
2595
+ const select$1 = function IcStandardExternalIdentityProviderListRepresentationSelect() {
2202
2596
  return {
2203
2597
  kind: 'Fragment',
2204
2598
  version: VERSION,
@@ -2212,7 +2606,7 @@ function equals(existing, incoming) {
2212
2606
  }
2213
2607
  return true;
2214
2608
  }
2215
- const ingest = function ExternalConnectivityConnectorDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
2609
+ const ingest = function IcStandardExternalIdentityProviderListRepresentationIngest(input, path, luvio, store, timestamp) {
2216
2610
  if (process.env.NODE_ENV !== 'production') {
2217
2611
  const validateError = validate(input);
2218
2612
  if (validateError !== null) {
@@ -2238,7 +2632,7 @@ function select(luvio, params) {
2238
2632
  return select$1();
2239
2633
  }
2240
2634
  function keyBuilder$1(luvio, params) {
2241
- return keyPrefix + '::ExternalConnectivityConnectorDetailsRepresentation:(' + 'connectorDeveloperName:' + params.urlParams.connectorDeveloperName + ')';
2635
+ return keyPrefix + '::IcStandardExternalIdentityProviderListRepresentation:(' + 'version:' + params.queryParams.version + ',' + 'connectorType:' + params.urlParams.connectorType + ')';
2242
2636
  }
2243
2637
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
2244
2638
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -2276,29 +2670,30 @@ function createResourceRequest(config) {
2276
2670
  const headers = {};
2277
2671
  return {
2278
2672
  baseUri: '/services/data/v63.0',
2279
- basePath: '/external-connectivity/connectors/' + config.urlParams.connectorDeveloperName + '',
2673
+ basePath: '/external-connectivity/' + config.urlParams.connectorType + '/spa-mapping',
2280
2674
  method: 'get',
2281
2675
  body: null,
2282
2676
  urlParams: config.urlParams,
2283
- queryParams: {},
2677
+ queryParams: config.queryParams,
2284
2678
  headers,
2285
2679
  priority: 'normal',
2286
2680
  };
2287
2681
  }
2288
2682
 
2289
- const adapterName = 'getConnectorDetails';
2290
- const getConnectorDetails_ConfigPropertyMetadata = [
2291
- generateParamConfigMetadata('connectorDeveloperName', true, 0 /* UrlParameter */, 0 /* String */),
2683
+ const adapterName = 'getExternalIdentityProviders';
2684
+ const getExternalIdentityProviders_ConfigPropertyMetadata = [
2685
+ generateParamConfigMetadata('connectorType', true, 0 /* UrlParameter */, 0 /* String */),
2686
+ generateParamConfigMetadata('version', false, 1 /* QueryParameter */, 0 /* String */),
2292
2687
  ];
2293
- const getConnectorDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getConnectorDetails_ConfigPropertyMetadata);
2294
- const createResourceParams = /*#__PURE__*/ createResourceParams$8(getConnectorDetails_ConfigPropertyMetadata);
2688
+ const getExternalIdentityProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getExternalIdentityProviders_ConfigPropertyMetadata);
2689
+ const createResourceParams = /*#__PURE__*/ createResourceParams$a(getExternalIdentityProviders_ConfigPropertyMetadata);
2295
2690
  function keyBuilder(luvio, config) {
2296
2691
  const resourceParams = createResourceParams(config);
2297
2692
  return keyBuilder$1(luvio, resourceParams);
2298
2693
  }
2299
2694
  function typeCheckConfig(untrustedConfig) {
2300
2695
  const config = {};
2301
- typeCheckConfig$8(untrustedConfig, config, getConnectorDetails_ConfigPropertyMetadata);
2696
+ typeCheckConfig$a(untrustedConfig, config, getExternalIdentityProviders_ConfigPropertyMetadata);
2302
2697
  return config;
2303
2698
  }
2304
2699
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -2347,7 +2742,7 @@ function buildNetworkSnapshot(luvio, config, options) {
2347
2742
  });
2348
2743
  }
2349
2744
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
2350
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
2745
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
2351
2746
  }
2352
2747
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
2353
2748
  const { luvio, config } = context;
@@ -2362,8 +2757,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
2362
2757
  });
2363
2758
  return cacheSnapshot;
2364
2759
  }
2365
- const getConnectorDetailsAdapterFactory = (luvio) => function externalConnectivity__getConnectorDetails(untrustedConfig, requestContext) {
2366
- const config = validateAdapterConfig(untrustedConfig, getConnectorDetails_ConfigPropertyNames);
2760
+ const getExternalIdentityProvidersAdapterFactory = (luvio) => function externalConnectivity__getExternalIdentityProviders(untrustedConfig, requestContext) {
2761
+ const config = validateAdapterConfig(untrustedConfig, getExternalIdentityProviders_ConfigPropertyNames);
2367
2762
  // Invalid or incomplete config
2368
2763
  if (config === null) {
2369
2764
  return null;
@@ -2372,4 +2767,4 @@ const getConnectorDetailsAdapterFactory = (luvio) => function externalConnectivi
2372
2767
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
2373
2768
  };
2374
2769
 
2375
- export { createConnectionAdapterFactory, deleteConnectionAdapterFactory, getConnectionDetailsAdapterFactory, getConnectionsAdapterFactory, getConnectorDetailsAdapterFactory, getConnectorsAdapterFactory, testConnectionAdapterFactory, updateConnectionAdapterFactory };
2770
+ export { createConnectionAdapterFactory, deleteConnectionAdapterFactory, getConnectionDetailsAdapterFactory, getConnectionsAdapterFactory, getConnectorDetailsAdapterFactory, getConnectorsAdapterFactory, getExternalIdentityProvidersAdapterFactory, refreshMetadataAdapterFactory, testConnectionAdapterFactory, updateConnectionAdapterFactory };