@salesforce/lds-adapters-platform-external-services 1.213.0 → 1.213.1

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, deepFreeze, typeCheckScalars, StoreKeyMap } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckScalars, StoreKeyMap } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -104,6 +104,24 @@ function stableJSONStringify(node) {
104
104
  }
105
105
  return '{' + out + '}';
106
106
  }
107
+ function generateParamConfigMetadata(name, required, coerceFn) {
108
+ return {
109
+ name,
110
+ required,
111
+ coerceFn,
112
+ };
113
+ }
114
+ function buildAdapterValidationConfig(displayName, paramsMeta) {
115
+ const required = paramsMeta.filter(p => p.required).map(p => p.name);
116
+ const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
117
+ return {
118
+ displayName,
119
+ parameters: {
120
+ required,
121
+ optional,
122
+ }
123
+ };
124
+ }
107
125
  const keyPrefix = 'external-services';
108
126
 
109
127
  const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
@@ -327,26 +345,8 @@ const ingest$4 = function ExternalServiceActionOutputRepresentationIngest(input,
327
345
  }
328
346
  }
329
347
  const key = path.fullPath;
330
- const existingRecord = store.readEntry(key);
331
348
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
332
- let incomingRecord = normalize$4(input, store.readEntry(key), {
333
- fullPath: key,
334
- parent: path.parent,
335
- propertyName: path.propertyName,
336
- ttl: ttlToUse
337
- });
338
- if (existingRecord === undefined || equals$9(existingRecord, incomingRecord) === false) {
339
- luvio.storePublish(key, incomingRecord);
340
- }
341
- if (ttlToUse !== undefined) {
342
- const storeMetadataParams = {
343
- ttl: ttlToUse,
344
- namespace: "external-services",
345
- version: VERSION$9,
346
- representationName: RepresentationType$4,
347
- };
348
- luvio.publishStoreMetadata(key, storeMetadataParams);
349
- }
349
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "external-services", VERSION$9, RepresentationType$4, equals$9);
350
350
  return createLink(key);
351
351
  };
352
352
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -405,13 +405,11 @@ function createResourceRequest$5(config) {
405
405
  };
406
406
  }
407
407
 
408
- const getActionDetailsForService_ConfigPropertyNames = {
409
- displayName: 'getActionDetailsForService',
410
- parameters: {
411
- required: ['actionName'],
412
- optional: []
413
- }
414
- };
408
+ const adapterName$5 = 'getActionDetailsForService';
409
+ const getActionDetailsForService_ConfigPropertyMetadata = [
410
+ generateParamConfigMetadata('actionName', true),
411
+ ];
412
+ const getActionDetailsForService_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getActionDetailsForService_ConfigPropertyMetadata);
415
413
  function createResourceParams$5(config) {
416
414
  const resourceParams = {
417
415
  urlParams: {
@@ -477,21 +475,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
477
475
  });
478
476
  }
479
477
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
480
- const { luvio, config } = context;
481
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
482
- const dispatchOptions = {
483
- resourceRequestContext: {
484
- requestCorrelator,
485
- luvioRequestMethod: undefined,
486
- },
487
- eventObservers
488
- };
489
- if (networkPriority !== 'normal') {
490
- dispatchOptions.overrides = {
491
- priority: networkPriority
492
- };
493
- }
494
- return buildNetworkSnapshot$5(luvio, config, dispatchOptions);
478
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
495
479
  }
496
480
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
497
481
  const { luvio, config } = context;
@@ -667,26 +651,8 @@ const ingest$3 = function DataShapeInferenceOutputRepresentationIngest(input, pa
667
651
  }
668
652
  }
669
653
  const key = path.fullPath;
670
- const existingRecord = store.readEntry(key);
671
654
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
672
- let incomingRecord = normalize$3(input, store.readEntry(key), {
673
- fullPath: key,
674
- parent: path.parent,
675
- propertyName: path.propertyName,
676
- ttl: ttlToUse
677
- });
678
- if (existingRecord === undefined || equals$7(existingRecord, incomingRecord) === false) {
679
- luvio.storePublish(key, incomingRecord);
680
- }
681
- if (ttlToUse !== undefined) {
682
- const storeMetadataParams = {
683
- ttl: ttlToUse,
684
- namespace: "external-services",
685
- version: VERSION$7,
686
- representationName: RepresentationType$3,
687
- };
688
- luvio.publishStoreMetadata(key, storeMetadataParams);
689
- }
655
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "external-services", VERSION$7, RepresentationType$3, equals$7);
690
656
  return createLink(key);
691
657
  };
692
658
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -745,13 +711,13 @@ function createResourceRequest$4(config) {
745
711
  };
746
712
  }
747
713
 
748
- const getDataShape_ConfigPropertyNames = {
749
- displayName: 'getDataShape',
750
- parameters: {
751
- required: ['version'],
752
- optional: ['exampleData', 'mediaType']
753
- }
754
- };
714
+ const adapterName$4 = 'getDataShape';
715
+ const getDataShape_ConfigPropertyMetadata = [
716
+ generateParamConfigMetadata('version', true),
717
+ generateParamConfigMetadata('exampleData', false),
718
+ generateParamConfigMetadata('mediaType', false),
719
+ ];
720
+ const getDataShape_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getDataShape_ConfigPropertyMetadata);
755
721
  function createResourceParams$4(config) {
756
722
  const resourceParams = {
757
723
  urlParams: {
@@ -822,21 +788,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
822
788
  });
823
789
  }
824
790
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
825
- const { luvio, config } = context;
826
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
827
- const dispatchOptions = {
828
- resourceRequestContext: {
829
- requestCorrelator,
830
- luvioRequestMethod: 'get',
831
- },
832
- eventObservers
833
- };
834
- if (networkPriority !== 'normal') {
835
- dispatchOptions.overrides = {
836
- priority: networkPriority
837
- };
838
- }
839
- return buildNetworkSnapshot$4(luvio, config, dispatchOptions);
791
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
840
792
  }
841
793
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
842
794
  const { luvio, config } = context;
@@ -1064,26 +1016,8 @@ const ingest$2 = function OpenApiSpecInferenceOutputRepresentationIngest(input,
1064
1016
  }
1065
1017
  }
1066
1018
  const key = path.fullPath;
1067
- const existingRecord = store.readEntry(key);
1068
1019
  const ttlToUse = TTL;
1069
- let incomingRecord = normalize$2(input, store.readEntry(key), {
1070
- fullPath: key,
1071
- parent: path.parent,
1072
- propertyName: path.propertyName,
1073
- ttl: ttlToUse
1074
- });
1075
- if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
1076
- luvio.storePublish(key, incomingRecord);
1077
- }
1078
- {
1079
- const storeMetadataParams = {
1080
- ttl: ttlToUse,
1081
- namespace: "external-services",
1082
- version: VERSION$6,
1083
- representationName: RepresentationType$2,
1084
- };
1085
- luvio.publishStoreMetadata(key, storeMetadataParams);
1086
- }
1020
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "external-services", VERSION$6, RepresentationType$2, equals$6);
1087
1021
  return createLink(key);
1088
1022
  };
1089
1023
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -1148,13 +1082,12 @@ function createResourceRequest$3(config) {
1148
1082
  };
1149
1083
  }
1150
1084
 
1151
- const getOpenApiSpec_ConfigPropertyNames = {
1152
- displayName: 'getOpenApiSpec',
1153
- parameters: {
1154
- required: ['version', 'input'],
1155
- optional: []
1156
- }
1157
- };
1085
+ const adapterName$3 = 'getOpenApiSpec';
1086
+ const getOpenApiSpec_ConfigPropertyMetadata = [
1087
+ generateParamConfigMetadata('version', true),
1088
+ generateParamConfigMetadata('input', true),
1089
+ ];
1090
+ const getOpenApiSpec_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getOpenApiSpec_ConfigPropertyMetadata);
1158
1091
  function createResourceParams$3(config) {
1159
1092
  const resourceParams = {
1160
1093
  urlParams: {
@@ -1228,21 +1161,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
1228
1161
  });
1229
1162
  }
1230
1163
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1231
- const { luvio, config } = context;
1232
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1233
- const dispatchOptions = {
1234
- resourceRequestContext: {
1235
- requestCorrelator,
1236
- luvioRequestMethod: 'get',
1237
- },
1238
- eventObservers
1239
- };
1240
- if (networkPriority !== 'normal') {
1241
- dispatchOptions.overrides = {
1242
- priority: networkPriority
1243
- };
1244
- }
1245
- return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
1164
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
1246
1165
  }
1247
1166
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1248
1167
  const { luvio, config } = context;
@@ -1761,26 +1680,8 @@ const ingest$1 = function SchemaValidationOutputRepresentationIngest(input, path
1761
1680
  }
1762
1681
  }
1763
1682
  const key = keyBuilderFromType(luvio, input);
1764
- const existingRecord = store.readEntry(key);
1765
1683
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
1766
- let incomingRecord = normalize$1(input, store.readEntry(key), {
1767
- fullPath: key,
1768
- parent: path.parent,
1769
- propertyName: path.propertyName,
1770
- ttl: ttlToUse
1771
- });
1772
- if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
1773
- luvio.storePublish(key, incomingRecord);
1774
- }
1775
- if (ttlToUse !== undefined) {
1776
- const storeMetadataParams = {
1777
- ttl: ttlToUse,
1778
- namespace: "external-services",
1779
- version: VERSION$4,
1780
- representationName: RepresentationType$1,
1781
- };
1782
- luvio.publishStoreMetadata(key, storeMetadataParams);
1783
- }
1684
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "external-services", VERSION$4, RepresentationType$1, equals$4);
1784
1685
  return createLink(key);
1785
1686
  };
1786
1687
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -1830,13 +1731,12 @@ function createResourceRequest$2(config) {
1830
1731
  };
1831
1732
  }
1832
1733
 
1833
- const validateSchema_ConfigPropertyNames = {
1834
- displayName: 'validateSchema',
1835
- parameters: {
1836
- required: ['schemaName', 'schema'],
1837
- optional: []
1838
- }
1839
- };
1734
+ const adapterName$2 = 'validateSchema';
1735
+ const validateSchema_ConfigPropertyMetadata = [
1736
+ generateParamConfigMetadata('schemaName', true),
1737
+ generateParamConfigMetadata('schema', true),
1738
+ ];
1739
+ const validateSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, validateSchema_ConfigPropertyMetadata);
1840
1740
  function createResourceParams$2(config) {
1841
1741
  const resourceParams = {
1842
1742
  urlParams: {
@@ -2293,26 +2193,8 @@ const ingest = function ExternalServiceStatisticsOutputRepresentationIngest(inpu
2293
2193
  }
2294
2194
  }
2295
2195
  const key = path.fullPath;
2296
- const existingRecord = store.readEntry(key);
2297
2196
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
2298
- let incomingRecord = normalize(input, store.readEntry(key), {
2299
- fullPath: key,
2300
- parent: path.parent,
2301
- propertyName: path.propertyName,
2302
- ttl: ttlToUse
2303
- });
2304
- if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
2305
- luvio.storePublish(key, incomingRecord);
2306
- }
2307
- if (ttlToUse !== undefined) {
2308
- const storeMetadataParams = {
2309
- ttl: ttlToUse,
2310
- namespace: "external-services",
2311
- version: VERSION,
2312
- representationName: RepresentationType,
2313
- };
2314
- luvio.publishStoreMetadata(key, storeMetadataParams);
2315
- }
2197
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "external-services", VERSION, RepresentationType, equals);
2316
2198
  return createLink(key);
2317
2199
  };
2318
2200
  function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
@@ -2371,13 +2253,9 @@ function createResourceRequest$1(config) {
2371
2253
  };
2372
2254
  }
2373
2255
 
2374
- const getStatistics_ConfigPropertyNames = {
2375
- displayName: 'getStatistics',
2376
- parameters: {
2377
- required: [],
2378
- optional: []
2379
- }
2380
- };
2256
+ const adapterName$1 = 'getStatistics';
2257
+ const getStatistics_ConfigPropertyMetadata = [];
2258
+ const getStatistics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getStatistics_ConfigPropertyMetadata);
2381
2259
  function createResourceParams$1(config) {
2382
2260
  const resourceParams = {};
2383
2261
  return resourceParams;
@@ -2434,21 +2312,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
2434
2312
  });
2435
2313
  }
2436
2314
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2437
- const { luvio, config } = context;
2438
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
2439
- const dispatchOptions = {
2440
- resourceRequestContext: {
2441
- requestCorrelator,
2442
- luvioRequestMethod: undefined,
2443
- },
2444
- eventObservers
2445
- };
2446
- if (networkPriority !== 'normal') {
2447
- dispatchOptions.overrides = {
2448
- priority: networkPriority
2449
- };
2450
- }
2451
- return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
2315
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
2452
2316
  }
2453
2317
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2454
2318
  const { luvio, config } = context;
@@ -2519,13 +2383,11 @@ function createResourceRequest(config) {
2519
2383
  };
2520
2384
  }
2521
2385
 
2522
- const getStatisticsForService_ConfigPropertyNames = {
2523
- displayName: 'getStatisticsForService',
2524
- parameters: {
2525
- required: ['registrationName'],
2526
- optional: []
2527
- }
2528
- };
2386
+ const adapterName = 'getStatisticsForService';
2387
+ const getStatisticsForService_ConfigPropertyMetadata = [
2388
+ generateParamConfigMetadata('registrationName', true),
2389
+ ];
2390
+ const getStatisticsForService_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getStatisticsForService_ConfigPropertyMetadata);
2529
2391
  function createResourceParams(config) {
2530
2392
  const resourceParams = {
2531
2393
  urlParams: {
@@ -2591,21 +2453,7 @@ function buildNetworkSnapshot(luvio, config, options) {
2591
2453
  });
2592
2454
  }
2593
2455
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
2594
- const { luvio, config } = context;
2595
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
2596
- const dispatchOptions = {
2597
- resourceRequestContext: {
2598
- requestCorrelator,
2599
- luvioRequestMethod: undefined,
2600
- },
2601
- eventObservers
2602
- };
2603
- if (networkPriority !== 'normal') {
2604
- dispatchOptions.overrides = {
2605
- priority: networkPriority
2606
- };
2607
- }
2608
- return buildNetworkSnapshot(luvio, config, dispatchOptions);
2456
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
2609
2457
  }
2610
2458
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
2611
2459
  const { luvio, config } = context;
@@ -1,4 +1,4 @@
1
- import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
2
2
  export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
3
  declare const ObjectKeys: {
4
4
  (o: object): string[];
@@ -57,4 +57,6 @@ export declare const snapshotRefreshOptions: {
57
57
  export declare function stableJSONStringify(node: any): string | undefined;
58
58
  export declare function getFetchResponseStatusText(status: number): string;
59
59
  export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
60
+ export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
61
+ export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
60
62
  export declare const keyPrefix = "external-services";
@@ -1,8 +1,9 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
2
3
  import { ResourceRequestConfig as resources_getExternalservicesActionsServicesByActionName_ResourceRequestConfig } from '../resources/getExternalservicesActionsServicesByActionName';
3
- import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
4
  import { ExternalServiceActionOutputRepresentation as types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation } from '../types/ExternalServiceActionOutputRepresentation';
5
5
  export declare const adapterName = "getActionDetailsForService";
6
+ export declare const getActionDetailsForService_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
6
7
  export declare const getActionDetailsForService_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
8
  export interface GetActionDetailsForServiceConfig {
8
9
  actionName: string;
@@ -1,8 +1,9 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
2
3
  import { ResourceRequestConfig as resources_postExternalservicesInferenceDatashapeByVersion_ResourceRequestConfig } from '../resources/postExternalservicesInferenceDatashapeByVersion';
3
- import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
4
  import { DataShapeInferenceOutputRepresentation as types_DataShapeInferenceOutputRepresentation_DataShapeInferenceOutputRepresentation } from '../types/DataShapeInferenceOutputRepresentation';
5
5
  export declare const adapterName = "getDataShape";
6
+ export declare const getDataShape_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
6
7
  export declare const getDataShape_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
8
  export interface GetDataShapeConfig {
8
9
  version: string;
@@ -1,9 +1,10 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
2
3
  import { OpenApiSpecInferenceInputRepresentation as types_OpenApiSpecInferenceInputRepresentation_OpenApiSpecInferenceInputRepresentation } from '../types/OpenApiSpecInferenceInputRepresentation';
3
4
  import { ResourceRequestConfig as resources_postExternalservicesInferenceOpenapispecByVersion_ResourceRequestConfig } from '../resources/postExternalservicesInferenceOpenapispecByVersion';
4
- import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
5
5
  import { OpenApiSpecInferenceOutputRepresentation as types_OpenApiSpecInferenceOutputRepresentation_OpenApiSpecInferenceOutputRepresentation } from '../types/OpenApiSpecInferenceOutputRepresentation';
6
6
  export declare const adapterName = "getOpenApiSpec";
7
+ export declare const getOpenApiSpec_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
8
  export declare const getOpenApiSpec_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
9
  export interface GetOpenApiSpecConfig {
9
10
  version: string;
@@ -1,8 +1,9 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
2
3
  import { ResourceRequestConfig as resources_getExternalservicesStatisticsServices_ResourceRequestConfig } from '../resources/getExternalservicesStatisticsServices';
3
- import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
4
  import { ExternalServiceStatisticsOutputRepresentation as types_ExternalServiceStatisticsOutputRepresentation_ExternalServiceStatisticsOutputRepresentation } from '../types/ExternalServiceStatisticsOutputRepresentation';
5
5
  export declare const adapterName = "getStatistics";
6
+ export declare const getStatistics_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
6
7
  export declare const getStatistics_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
8
  export interface GetStatisticsConfig {
8
9
  }
@@ -1,8 +1,9 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
2
3
  import { ResourceRequestConfig as resources_getExternalservicesStatisticsServicesByRegistrationName_ResourceRequestConfig } from '../resources/getExternalservicesStatisticsServicesByRegistrationName';
3
- import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
4
  import { ExternalServiceStatisticsOutputRepresentation as types_ExternalServiceStatisticsOutputRepresentation_ExternalServiceStatisticsOutputRepresentation } from '../types/ExternalServiceStatisticsOutputRepresentation';
5
5
  export declare const adapterName = "getStatisticsForService";
6
+ export declare const getStatisticsForService_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
6
7
  export declare const getStatisticsForService_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
8
  export interface GetStatisticsForServiceConfig {
8
9
  registrationName: string;
@@ -1,9 +1,10 @@
1
- import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
2
3
  import { SchemaValidationInputRepresentation as types_SchemaValidationInputRepresentation_SchemaValidationInputRepresentation } from '../types/SchemaValidationInputRepresentation';
3
4
  import { ResourceRequestConfig as resources_postExternalservicesSchemasValidationBySchemaName_ResourceRequestConfig } from '../resources/postExternalservicesSchemasValidationBySchemaName';
4
- import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
5
5
  import { SchemaValidationOutputRepresentation as types_SchemaValidationOutputRepresentation_SchemaValidationOutputRepresentation } from '../types/SchemaValidationOutputRepresentation';
6
6
  export declare const adapterName = "validateSchema";
7
+ export declare const validateSchema_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
8
  export declare const validateSchema_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
9
  export interface ValidateSchemaConfig {
9
10
  schemaName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-external-services",
3
- "version": "1.213.0",
3
+ "version": "1.213.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "External Services Connect API Family",
6
6
  "main": "dist/es/es2018/platform-external-services.js",
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, deepFreeze, typeCheckScalars, StoreKeyMap } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckScalars, StoreKeyMap } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -114,6 +114,24 @@ function stableJSONStringify(node) {
114
114
  }
115
115
  return '{' + out + '}';
116
116
  }
117
+ function generateParamConfigMetadata(name, required, coerceFn) {
118
+ return {
119
+ name,
120
+ required,
121
+ coerceFn,
122
+ };
123
+ }
124
+ function buildAdapterValidationConfig(displayName, paramsMeta) {
125
+ const required = paramsMeta.filter(p => p.required).map(p => p.name);
126
+ const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
127
+ return {
128
+ displayName,
129
+ parameters: {
130
+ required,
131
+ optional,
132
+ }
133
+ };
134
+ }
117
135
  const keyPrefix = 'external-services';
118
136
 
119
137
  const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
@@ -337,26 +355,8 @@ const ingest$4 = function ExternalServiceActionOutputRepresentationIngest(input,
337
355
  }
338
356
  }
339
357
  const key = path.fullPath;
340
- const existingRecord = store.readEntry(key);
341
358
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
342
- let incomingRecord = normalize$4(input, store.readEntry(key), {
343
- fullPath: key,
344
- parent: path.parent,
345
- propertyName: path.propertyName,
346
- ttl: ttlToUse
347
- });
348
- if (existingRecord === undefined || equals$9(existingRecord, incomingRecord) === false) {
349
- luvio.storePublish(key, incomingRecord);
350
- }
351
- if (ttlToUse !== undefined) {
352
- const storeMetadataParams = {
353
- ttl: ttlToUse,
354
- namespace: "external-services",
355
- version: VERSION$9,
356
- representationName: RepresentationType$4,
357
- };
358
- luvio.publishStoreMetadata(key, storeMetadataParams);
359
- }
359
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "external-services", VERSION$9, RepresentationType$4, equals$9);
360
360
  return createLink(key);
361
361
  };
362
362
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -415,13 +415,11 @@ function createResourceRequest$5(config) {
415
415
  };
416
416
  }
417
417
 
418
- const getActionDetailsForService_ConfigPropertyNames = {
419
- displayName: 'getActionDetailsForService',
420
- parameters: {
421
- required: ['actionName'],
422
- optional: []
423
- }
424
- };
418
+ const adapterName$5 = 'getActionDetailsForService';
419
+ const getActionDetailsForService_ConfigPropertyMetadata = [
420
+ generateParamConfigMetadata('actionName', true),
421
+ ];
422
+ const getActionDetailsForService_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getActionDetailsForService_ConfigPropertyMetadata);
425
423
  function createResourceParams$5(config) {
426
424
  const resourceParams = {
427
425
  urlParams: {
@@ -487,21 +485,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
487
485
  });
488
486
  }
489
487
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
490
- const { luvio, config } = context;
491
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
492
- const dispatchOptions = {
493
- resourceRequestContext: {
494
- requestCorrelator,
495
- luvioRequestMethod: undefined,
496
- },
497
- eventObservers
498
- };
499
- if (networkPriority !== 'normal') {
500
- dispatchOptions.overrides = {
501
- priority: networkPriority
502
- };
503
- }
504
- return buildNetworkSnapshot$5(luvio, config, dispatchOptions);
488
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
505
489
  }
506
490
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
507
491
  const { luvio, config } = context;
@@ -677,26 +661,8 @@ const ingest$3 = function DataShapeInferenceOutputRepresentationIngest(input, pa
677
661
  }
678
662
  }
679
663
  const key = path.fullPath;
680
- const existingRecord = store.readEntry(key);
681
664
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
682
- let incomingRecord = normalize$3(input, store.readEntry(key), {
683
- fullPath: key,
684
- parent: path.parent,
685
- propertyName: path.propertyName,
686
- ttl: ttlToUse
687
- });
688
- if (existingRecord === undefined || equals$7(existingRecord, incomingRecord) === false) {
689
- luvio.storePublish(key, incomingRecord);
690
- }
691
- if (ttlToUse !== undefined) {
692
- const storeMetadataParams = {
693
- ttl: ttlToUse,
694
- namespace: "external-services",
695
- version: VERSION$7,
696
- representationName: RepresentationType$3,
697
- };
698
- luvio.publishStoreMetadata(key, storeMetadataParams);
699
- }
665
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "external-services", VERSION$7, RepresentationType$3, equals$7);
700
666
  return createLink(key);
701
667
  };
702
668
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -755,13 +721,13 @@ function createResourceRequest$4(config) {
755
721
  };
756
722
  }
757
723
 
758
- const getDataShape_ConfigPropertyNames = {
759
- displayName: 'getDataShape',
760
- parameters: {
761
- required: ['version'],
762
- optional: ['exampleData', 'mediaType']
763
- }
764
- };
724
+ const adapterName$4 = 'getDataShape';
725
+ const getDataShape_ConfigPropertyMetadata = [
726
+ generateParamConfigMetadata('version', true),
727
+ generateParamConfigMetadata('exampleData', false),
728
+ generateParamConfigMetadata('mediaType', false),
729
+ ];
730
+ const getDataShape_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getDataShape_ConfigPropertyMetadata);
765
731
  function createResourceParams$4(config) {
766
732
  const resourceParams = {
767
733
  urlParams: {
@@ -832,21 +798,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
832
798
  });
833
799
  }
834
800
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
835
- const { luvio, config } = context;
836
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
837
- const dispatchOptions = {
838
- resourceRequestContext: {
839
- requestCorrelator,
840
- luvioRequestMethod: 'get',
841
- },
842
- eventObservers
843
- };
844
- if (networkPriority !== 'normal') {
845
- dispatchOptions.overrides = {
846
- priority: networkPriority
847
- };
848
- }
849
- return buildNetworkSnapshot$4(luvio, config, dispatchOptions);
801
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
850
802
  }
851
803
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
852
804
  const { luvio, config } = context;
@@ -1074,26 +1026,8 @@ const ingest$2 = function OpenApiSpecInferenceOutputRepresentationIngest(input,
1074
1026
  }
1075
1027
  }
1076
1028
  const key = path.fullPath;
1077
- const existingRecord = store.readEntry(key);
1078
1029
  const ttlToUse = TTL;
1079
- let incomingRecord = normalize$2(input, store.readEntry(key), {
1080
- fullPath: key,
1081
- parent: path.parent,
1082
- propertyName: path.propertyName,
1083
- ttl: ttlToUse
1084
- });
1085
- if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
1086
- luvio.storePublish(key, incomingRecord);
1087
- }
1088
- {
1089
- const storeMetadataParams = {
1090
- ttl: ttlToUse,
1091
- namespace: "external-services",
1092
- version: VERSION$6,
1093
- representationName: RepresentationType$2,
1094
- };
1095
- luvio.publishStoreMetadata(key, storeMetadataParams);
1096
- }
1030
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "external-services", VERSION$6, RepresentationType$2, equals$6);
1097
1031
  return createLink(key);
1098
1032
  };
1099
1033
  function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
@@ -1158,13 +1092,12 @@ function createResourceRequest$3(config) {
1158
1092
  };
1159
1093
  }
1160
1094
 
1161
- const getOpenApiSpec_ConfigPropertyNames = {
1162
- displayName: 'getOpenApiSpec',
1163
- parameters: {
1164
- required: ['version', 'input'],
1165
- optional: []
1166
- }
1167
- };
1095
+ const adapterName$3 = 'getOpenApiSpec';
1096
+ const getOpenApiSpec_ConfigPropertyMetadata = [
1097
+ generateParamConfigMetadata('version', true),
1098
+ generateParamConfigMetadata('input', true),
1099
+ ];
1100
+ const getOpenApiSpec_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getOpenApiSpec_ConfigPropertyMetadata);
1168
1101
  function createResourceParams$3(config) {
1169
1102
  const resourceParams = {
1170
1103
  urlParams: {
@@ -1238,21 +1171,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
1238
1171
  });
1239
1172
  }
1240
1173
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1241
- const { luvio, config } = context;
1242
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1243
- const dispatchOptions = {
1244
- resourceRequestContext: {
1245
- requestCorrelator,
1246
- luvioRequestMethod: 'get',
1247
- },
1248
- eventObservers
1249
- };
1250
- if (networkPriority !== 'normal') {
1251
- dispatchOptions.overrides = {
1252
- priority: networkPriority
1253
- };
1254
- }
1255
- return buildNetworkSnapshot$3(luvio, config, dispatchOptions);
1174
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
1256
1175
  }
1257
1176
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1258
1177
  const { luvio, config } = context;
@@ -1668,26 +1587,8 @@ const ingest$1 = function ExternalServiceStatisticsOutputRepresentationIngest(in
1668
1587
  }
1669
1588
  }
1670
1589
  const key = path.fullPath;
1671
- const existingRecord = store.readEntry(key);
1672
1590
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
1673
- let incomingRecord = normalize$1(input, store.readEntry(key), {
1674
- fullPath: key,
1675
- parent: path.parent,
1676
- propertyName: path.propertyName,
1677
- ttl: ttlToUse
1678
- });
1679
- if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
1680
- luvio.storePublish(key, incomingRecord);
1681
- }
1682
- if (ttlToUse !== undefined) {
1683
- const storeMetadataParams = {
1684
- ttl: ttlToUse,
1685
- namespace: "external-services",
1686
- version: VERSION$2,
1687
- representationName: RepresentationType$1,
1688
- };
1689
- luvio.publishStoreMetadata(key, storeMetadataParams);
1690
- }
1591
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "external-services", VERSION$2, RepresentationType$1, equals$2);
1691
1592
  return createLink(key);
1692
1593
  };
1693
1594
  function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
@@ -1746,13 +1647,9 @@ function createResourceRequest$2(config) {
1746
1647
  };
1747
1648
  }
1748
1649
 
1749
- const getStatistics_ConfigPropertyNames = {
1750
- displayName: 'getStatistics',
1751
- parameters: {
1752
- required: [],
1753
- optional: []
1754
- }
1755
- };
1650
+ const adapterName$2 = 'getStatistics';
1651
+ const getStatistics_ConfigPropertyMetadata = [];
1652
+ const getStatistics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getStatistics_ConfigPropertyMetadata);
1756
1653
  function createResourceParams$2(config) {
1757
1654
  const resourceParams = {};
1758
1655
  return resourceParams;
@@ -1809,21 +1706,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
1809
1706
  });
1810
1707
  }
1811
1708
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1812
- const { luvio, config } = context;
1813
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1814
- const dispatchOptions = {
1815
- resourceRequestContext: {
1816
- requestCorrelator,
1817
- luvioRequestMethod: undefined,
1818
- },
1819
- eventObservers
1820
- };
1821
- if (networkPriority !== 'normal') {
1822
- dispatchOptions.overrides = {
1823
- priority: networkPriority
1824
- };
1825
- }
1826
- return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
1709
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1827
1710
  }
1828
1711
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1829
1712
  const { luvio, config } = context;
@@ -1894,13 +1777,11 @@ function createResourceRequest$1(config) {
1894
1777
  };
1895
1778
  }
1896
1779
 
1897
- const getStatisticsForService_ConfigPropertyNames = {
1898
- displayName: 'getStatisticsForService',
1899
- parameters: {
1900
- required: ['registrationName'],
1901
- optional: []
1902
- }
1903
- };
1780
+ const adapterName$1 = 'getStatisticsForService';
1781
+ const getStatisticsForService_ConfigPropertyMetadata = [
1782
+ generateParamConfigMetadata('registrationName', true),
1783
+ ];
1784
+ const getStatisticsForService_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getStatisticsForService_ConfigPropertyMetadata);
1904
1785
  function createResourceParams$1(config) {
1905
1786
  const resourceParams = {
1906
1787
  urlParams: {
@@ -1966,21 +1847,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
1966
1847
  });
1967
1848
  }
1968
1849
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1969
- const { luvio, config } = context;
1970
- const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
1971
- const dispatchOptions = {
1972
- resourceRequestContext: {
1973
- requestCorrelator,
1974
- luvioRequestMethod: undefined,
1975
- },
1976
- eventObservers
1977
- };
1978
- if (networkPriority !== 'normal') {
1979
- dispatchOptions.overrides = {
1980
- priority: networkPriority
1981
- };
1982
- }
1983
- return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
1850
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1984
1851
  }
1985
1852
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1986
1853
  const { luvio, config } = context;
@@ -2499,26 +2366,8 @@ const ingest = function SchemaValidationOutputRepresentationIngest(input, path,
2499
2366
  }
2500
2367
  }
2501
2368
  const key = keyBuilderFromType(luvio, input);
2502
- const existingRecord = store.readEntry(key);
2503
2369
  const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
2504
- let incomingRecord = normalize(input, store.readEntry(key), {
2505
- fullPath: key,
2506
- parent: path.parent,
2507
- propertyName: path.propertyName,
2508
- ttl: ttlToUse
2509
- });
2510
- if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
2511
- luvio.storePublish(key, incomingRecord);
2512
- }
2513
- if (ttlToUse !== undefined) {
2514
- const storeMetadataParams = {
2515
- ttl: ttlToUse,
2516
- namespace: "external-services",
2517
- version: VERSION,
2518
- representationName: RepresentationType,
2519
- };
2520
- luvio.publishStoreMetadata(key, storeMetadataParams);
2521
- }
2370
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "external-services", VERSION, RepresentationType, equals);
2522
2371
  return createLink(key);
2523
2372
  };
2524
2373
  function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
@@ -2568,13 +2417,12 @@ function createResourceRequest(config) {
2568
2417
  };
2569
2418
  }
2570
2419
 
2571
- const validateSchema_ConfigPropertyNames = {
2572
- displayName: 'validateSchema',
2573
- parameters: {
2574
- required: ['schemaName', 'schema'],
2575
- optional: []
2576
- }
2577
- };
2420
+ const adapterName = 'validateSchema';
2421
+ const validateSchema_ConfigPropertyMetadata = [
2422
+ generateParamConfigMetadata('schemaName', true),
2423
+ generateParamConfigMetadata('schema', true),
2424
+ ];
2425
+ const validateSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, validateSchema_ConfigPropertyMetadata);
2578
2426
  function createResourceParams(config) {
2579
2427
  const resourceParams = {
2580
2428
  urlParams: {
@@ -2701,4 +2549,4 @@ withDefaultLuvio((luvio) => {
2701
2549
  });
2702
2550
 
2703
2551
  export { getActionDetailsForService, getActionDetailsForService_imperative, getDataShape, getDataShape_imperative, getOpenApiSpec, getOpenApiSpec_imperative, getStatistics, getStatisticsForService, getStatisticsForService_imperative, getStatistics_imperative, validateSchema };
2704
- // version: 1.213.0-951602080
2552
+ // version: 1.213.1-79de10fe1