@salesforce/lds-adapters-platform-external-services 1.175.0 → 1.177.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.
@@ -128,6 +128,395 @@ function createLink(ref) {
128
128
  };
129
129
  }
130
130
 
131
+ const VERSION$a = "77afee4104970a3f44d1c478c16bd79c";
132
+ function validate$d(obj, path = 'ExternalServiceActionParameterRepresentation') {
133
+ const v_error = (() => {
134
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
135
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
136
+ }
137
+ const obj_description = obj.description;
138
+ const path_description = path + '.description';
139
+ if (typeof obj_description !== 'string') {
140
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
141
+ }
142
+ const obj_location = obj.location;
143
+ const path_location = path + '.location';
144
+ if (typeof obj_location !== 'string') {
145
+ return new TypeError('Expected "string" but received "' + typeof obj_location + '" (at "' + path_location + '")');
146
+ }
147
+ const obj_name = obj.name;
148
+ const path_name = path + '.name';
149
+ if (typeof obj_name !== 'string') {
150
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
151
+ }
152
+ const obj_required = obj.required;
153
+ const path_required = path + '.required';
154
+ if (typeof obj_required !== 'boolean') {
155
+ return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
156
+ }
157
+ })();
158
+ return v_error === undefined ? null : v_error;
159
+ }
160
+ const select$g = function ExternalServiceActionParameterRepresentationSelect() {
161
+ return {
162
+ kind: 'Fragment',
163
+ version: VERSION$a,
164
+ private: [],
165
+ selections: [
166
+ {
167
+ name: 'description',
168
+ kind: 'Scalar'
169
+ },
170
+ {
171
+ name: 'location',
172
+ kind: 'Scalar'
173
+ },
174
+ {
175
+ name: 'name',
176
+ kind: 'Scalar'
177
+ },
178
+ {
179
+ name: 'required',
180
+ kind: 'Scalar'
181
+ }
182
+ ]
183
+ };
184
+ };
185
+ function equals$a(existing, incoming) {
186
+ const existing_required = existing.required;
187
+ const incoming_required = incoming.required;
188
+ if (!(existing_required === incoming_required)) {
189
+ return false;
190
+ }
191
+ const existing_description = existing.description;
192
+ const incoming_description = incoming.description;
193
+ if (!(existing_description === incoming_description)) {
194
+ return false;
195
+ }
196
+ const existing_location = existing.location;
197
+ const incoming_location = incoming.location;
198
+ if (!(existing_location === incoming_location)) {
199
+ return false;
200
+ }
201
+ const existing_name = existing.name;
202
+ const incoming_name = incoming.name;
203
+ if (!(existing_name === incoming_name)) {
204
+ return false;
205
+ }
206
+ return true;
207
+ }
208
+
209
+ const VERSION$9 = "4e90320a2a8521866935843772ace679";
210
+ function validate$c(obj, path = 'ExternalServiceActionOutputRepresentation') {
211
+ const v_error = (() => {
212
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
213
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
214
+ }
215
+ const obj_externalServicePath = obj.externalServicePath;
216
+ const path_externalServicePath = path + '.externalServicePath';
217
+ if (typeof obj_externalServicePath !== 'string') {
218
+ return new TypeError('Expected "string" but received "' + typeof obj_externalServicePath + '" (at "' + path_externalServicePath + '")');
219
+ }
220
+ const obj_method = obj.method;
221
+ const path_method = path + '.method';
222
+ if (typeof obj_method !== 'string') {
223
+ return new TypeError('Expected "string" but received "' + typeof obj_method + '" (at "' + path_method + '")');
224
+ }
225
+ const obj_parameters = obj.parameters;
226
+ const path_parameters = path + '.parameters';
227
+ if (!ArrayIsArray(obj_parameters)) {
228
+ return new TypeError('Expected "array" but received "' + typeof obj_parameters + '" (at "' + path_parameters + '")');
229
+ }
230
+ for (let i = 0; i < obj_parameters.length; i++) {
231
+ const obj_parameters_item = obj_parameters[i];
232
+ const path_parameters_item = path_parameters + '[' + i + ']';
233
+ const referencepath_parameters_itemValidationError = validate$d(obj_parameters_item, path_parameters_item);
234
+ if (referencepath_parameters_itemValidationError !== null) {
235
+ let message = 'Object doesn\'t match ExternalServiceActionParameterRepresentation (at "' + path_parameters_item + '")\n';
236
+ message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
237
+ return new TypeError(message);
238
+ }
239
+ }
240
+ const obj_path = obj.path;
241
+ const path_path = path + '.path';
242
+ if (typeof obj_path !== 'string') {
243
+ return new TypeError('Expected "string" but received "' + typeof obj_path + '" (at "' + path_path + '")');
244
+ }
245
+ const obj_registrationName = obj.registrationName;
246
+ const path_registrationName = path + '.registrationName';
247
+ if (typeof obj_registrationName !== 'string') {
248
+ return new TypeError('Expected "string" but received "' + typeof obj_registrationName + '" (at "' + path_registrationName + '")');
249
+ }
250
+ })();
251
+ return v_error === undefined ? null : v_error;
252
+ }
253
+ const RepresentationType$4 = 'ExternalServiceActionOutputRepresentation';
254
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
255
+ return input;
256
+ }
257
+ const select$f = function ExternalServiceActionOutputRepresentationSelect() {
258
+ const { selections: ExternalServiceActionParameterRepresentation__selections, opaque: ExternalServiceActionParameterRepresentation__opaque, } = select$g();
259
+ return {
260
+ kind: 'Fragment',
261
+ version: VERSION$9,
262
+ private: [],
263
+ selections: [
264
+ {
265
+ name: 'externalServicePath',
266
+ kind: 'Scalar'
267
+ },
268
+ {
269
+ name: 'method',
270
+ kind: 'Scalar'
271
+ },
272
+ {
273
+ name: 'parameters',
274
+ kind: 'Object',
275
+ plural: true,
276
+ selections: ExternalServiceActionParameterRepresentation__selections
277
+ },
278
+ {
279
+ name: 'path',
280
+ kind: 'Scalar'
281
+ },
282
+ {
283
+ name: 'registrationName',
284
+ kind: 'Scalar'
285
+ }
286
+ ]
287
+ };
288
+ };
289
+ function equals$9(existing, incoming) {
290
+ const existing_externalServicePath = existing.externalServicePath;
291
+ const incoming_externalServicePath = incoming.externalServicePath;
292
+ if (!(existing_externalServicePath === incoming_externalServicePath)) {
293
+ return false;
294
+ }
295
+ const existing_method = existing.method;
296
+ const incoming_method = incoming.method;
297
+ if (!(existing_method === incoming_method)) {
298
+ return false;
299
+ }
300
+ const existing_path = existing.path;
301
+ const incoming_path = incoming.path;
302
+ if (!(existing_path === incoming_path)) {
303
+ return false;
304
+ }
305
+ const existing_registrationName = existing.registrationName;
306
+ const incoming_registrationName = incoming.registrationName;
307
+ if (!(existing_registrationName === incoming_registrationName)) {
308
+ return false;
309
+ }
310
+ const existing_parameters = existing.parameters;
311
+ const incoming_parameters = incoming.parameters;
312
+ const equals_parameters_items = equalsArray(existing_parameters, incoming_parameters, (existing_parameters_item, incoming_parameters_item) => {
313
+ if (!(equals$a(existing_parameters_item, incoming_parameters_item))) {
314
+ return false;
315
+ }
316
+ });
317
+ if (equals_parameters_items === false) {
318
+ return false;
319
+ }
320
+ return true;
321
+ }
322
+ const ingest$4 = function ExternalServiceActionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
323
+ if (process.env.NODE_ENV !== 'production') {
324
+ const validateError = validate$c(input);
325
+ if (validateError !== null) {
326
+ throw validateError;
327
+ }
328
+ }
329
+ const key = path.fullPath;
330
+ const existingRecord = store.readEntry(key);
331
+ 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
+ }
350
+ return createLink(key);
351
+ };
352
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
353
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
354
+ const rootKey = fullPathFactory();
355
+ rootKeySet.set(rootKey, {
356
+ namespace: keyPrefix,
357
+ representationName: RepresentationType$4,
358
+ mergeable: false
359
+ });
360
+ }
361
+
362
+ function select$e(luvio, params) {
363
+ return select$f();
364
+ }
365
+ function keyBuilder$a(luvio, params) {
366
+ return keyPrefix + '::ExternalServiceActionOutputRepresentation:(' + 'actionName:' + params.urlParams.actionName + ')';
367
+ }
368
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
369
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
370
+ }
371
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
372
+ const { body } = response;
373
+ const key = keyBuilder$a(luvio, resourceParams);
374
+ luvio.storeIngest(key, ingest$4, body);
375
+ const snapshot = luvio.storeLookup({
376
+ recordId: key,
377
+ node: select$e(),
378
+ variables: {},
379
+ }, snapshotRefresh);
380
+ if (process.env.NODE_ENV !== 'production') {
381
+ if (snapshot.state !== 'Fulfilled') {
382
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
383
+ }
384
+ }
385
+ deepFreeze(snapshot.data);
386
+ return snapshot;
387
+ }
388
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
389
+ const key = keyBuilder$a(luvio, params);
390
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
391
+ luvio.storeIngestError(key, errorSnapshot);
392
+ return errorSnapshot;
393
+ }
394
+ function createResourceRequest$5(config) {
395
+ const headers = {};
396
+ return {
397
+ baseUri: '/services/data/v59.0',
398
+ basePath: '/externalservices/actions/services/' + config.urlParams.actionName + '',
399
+ method: 'get',
400
+ body: null,
401
+ urlParams: config.urlParams,
402
+ queryParams: {},
403
+ headers,
404
+ priority: 'normal',
405
+ };
406
+ }
407
+
408
+ const getActionDetailsForService_ConfigPropertyNames = {
409
+ displayName: 'getActionDetailsForService',
410
+ parameters: {
411
+ required: ['actionName'],
412
+ optional: []
413
+ }
414
+ };
415
+ function createResourceParams$5(config) {
416
+ const resourceParams = {
417
+ urlParams: {
418
+ actionName: config.actionName
419
+ }
420
+ };
421
+ return resourceParams;
422
+ }
423
+ function keyBuilder$9(luvio, config) {
424
+ const resourceParams = createResourceParams$5(config);
425
+ return keyBuilder$a(luvio, resourceParams);
426
+ }
427
+ function typeCheckConfig$5(untrustedConfig) {
428
+ const config = {};
429
+ const untrustedConfig_actionName = untrustedConfig.actionName;
430
+ if (typeof untrustedConfig_actionName === 'string') {
431
+ config.actionName = untrustedConfig_actionName;
432
+ }
433
+ return config;
434
+ }
435
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
436
+ if (!untrustedIsObject(untrustedConfig)) {
437
+ return null;
438
+ }
439
+ if (process.env.NODE_ENV !== 'production') {
440
+ validateConfig(untrustedConfig, configPropertyNames);
441
+ }
442
+ const config = typeCheckConfig$5(untrustedConfig);
443
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
444
+ return null;
445
+ }
446
+ return config;
447
+ }
448
+ function adapterFragment$4(luvio, config) {
449
+ createResourceParams$5(config);
450
+ return select$e();
451
+ }
452
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
453
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
454
+ config,
455
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
456
+ });
457
+ return luvio.storeBroadcast().then(() => snapshot);
458
+ }
459
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
460
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
461
+ config,
462
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
463
+ });
464
+ return luvio.storeBroadcast().then(() => snapshot);
465
+ }
466
+ function buildNetworkSnapshot$5(luvio, config, options) {
467
+ const resourceParams = createResourceParams$5(config);
468
+ const request = createResourceRequest$5(resourceParams);
469
+ return luvio.dispatchResourceRequest(request, options)
470
+ .then((response) => {
471
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
472
+ const cache = new StoreKeyMap();
473
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
474
+ return cache;
475
+ });
476
+ }, (response) => {
477
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
478
+ });
479
+ }
480
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
481
+ const { luvio, config } = context;
482
+ const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
483
+ const dispatchOptions = {
484
+ resourceRequestContext: {
485
+ requestCorrelator,
486
+ luvioRequestMethod: undefined,
487
+ },
488
+ eventObservers
489
+ };
490
+ if (networkPriority !== 'normal') {
491
+ dispatchOptions.overrides = {
492
+ priority: networkPriority
493
+ };
494
+ }
495
+ return buildNetworkSnapshot$5(luvio, config, dispatchOptions);
496
+ }
497
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
498
+ const { luvio, config } = context;
499
+ const selector = {
500
+ recordId: keyBuilder$9(luvio, config),
501
+ node: adapterFragment$4(luvio, config),
502
+ variables: {},
503
+ };
504
+ const cacheSnapshot = storeLookup(selector, {
505
+ config,
506
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
507
+ });
508
+ return cacheSnapshot;
509
+ }
510
+ const getActionDetailsForServiceAdapterFactory = (luvio) => function externalServices__getActionDetailsForService(untrustedConfig, requestContext) {
511
+ const config = validateAdapterConfig$5(untrustedConfig, getActionDetailsForService_ConfigPropertyNames);
512
+ // Invalid or incomplete config
513
+ if (config === null) {
514
+ return null;
515
+ }
516
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
517
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
518
+ };
519
+
131
520
  const VERSION$8 = "68601d043a553523b207d5fcc707e053";
132
521
  function validate$b(obj, path = 'InferenceErrorMessageRepresentation') {
133
522
  const v_error = (() => {
@@ -2252,4 +2641,4 @@ const getStatisticsForServiceAdapterFactory = (luvio) => function externalServic
2252
2641
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
2253
2642
  };
2254
2643
 
2255
- export { getDataShapeAdapterFactory, getOpenApiSpecAdapterFactory, getStatisticsAdapterFactory, getStatisticsForServiceAdapterFactory, validateSchemaAdapterFactory };
2644
+ export { getActionDetailsForServiceAdapterFactory, getDataShapeAdapterFactory, getOpenApiSpecAdapterFactory, getStatisticsAdapterFactory, getStatisticsForServiceAdapterFactory, validateSchemaAdapterFactory };
@@ -0,0 +1,26 @@
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ 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
+ import { ExternalServiceActionOutputRepresentation as types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation } from '../types/ExternalServiceActionOutputRepresentation';
5
+ export declare const adapterName = "getActionDetailsForService";
6
+ export declare const getActionDetailsForService_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
+ export interface GetActionDetailsForServiceConfig {
8
+ actionName: string;
9
+ }
10
+ export declare function createResourceParams(config: GetActionDetailsForServiceConfig): resources_getExternalservicesActionsServicesByActionName_ResourceRequestConfig;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetActionDetailsForServiceConfig): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetActionDetailsForServiceConfig): $64$luvio_engine_NormalizedKeyMetadata;
13
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetActionDetailsForServiceConfig>): adapter$45$utils_Untrusted<GetActionDetailsForServiceConfig>;
14
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetActionDetailsForServiceConfig | null;
15
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetActionDetailsForServiceConfig): $64$luvio_engine_Fragment;
16
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetActionDetailsForServiceConfig): $64$luvio_engine_Snapshot<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation, any>;
17
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetActionDetailsForServiceConfig, resourceParams: resources_getExternalservicesActionsServicesByActionName_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation, any>>;
18
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetActionDetailsForServiceConfig, resourceParams: resources_getExternalservicesActionsServicesByActionName_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
19
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetActionDetailsForServiceConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation, any>>;
20
+ export type BuildSnapshotContext = {
21
+ luvio: $64$luvio_engine_Luvio;
22
+ config: GetActionDetailsForServiceConfig;
23
+ };
24
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation, any>>;
25
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation>): $64$luvio_engine_Snapshot<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation, any>;
26
+ export declare const getActionDetailsForServiceAdapterFactory: $64$luvio_engine_AdapterFactory<GetActionDetailsForServiceConfig, types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation>;
@@ -1,3 +1,4 @@
1
+ export { getActionDetailsForServiceAdapterFactory } from '../adapters/getActionDetailsForService';
1
2
  export { getDataShapeAdapterFactory } from '../adapters/getDataShape';
2
3
  export { getOpenApiSpecAdapterFactory } from '../adapters/getOpenApiSpec';
3
4
  export { validateSchemaAdapterFactory } from '../adapters/validateSchema';
@@ -1,10 +1,12 @@
1
+ declare let getActionDetailsForService: any;
1
2
  declare let getDataShape: any;
2
3
  declare let getOpenApiSpec: any;
3
4
  declare let getStatistics: any;
4
5
  declare let getStatisticsForService: any;
5
6
  declare let validateSchema: any;
7
+ declare let getActionDetailsForService_imperative: any;
6
8
  declare let getDataShape_imperative: any;
7
9
  declare let getOpenApiSpec_imperative: any;
8
10
  declare let getStatistics_imperative: any;
9
11
  declare let getStatisticsForService_imperative: any;
10
- export { getDataShape, getOpenApiSpec, getStatistics, getStatisticsForService, validateSchema, getDataShape_imperative, getOpenApiSpec_imperative, getStatistics_imperative, getStatisticsForService_imperative };
12
+ export { getActionDetailsForService, getDataShape, getOpenApiSpec, getStatistics, getStatisticsForService, validateSchema, getActionDetailsForService_imperative, getDataShape_imperative, getOpenApiSpec_imperative, getStatistics_imperative, getStatisticsForService_imperative };
@@ -0,0 +1,15 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { ExternalServiceActionOutputRepresentation as types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation } from '../types/ExternalServiceActionOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ actionName: string;
6
+ };
7
+ }
8
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
9
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
10
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
11
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation): void;
12
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation, any>;
13
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ExternalServiceActionOutputRepresentation_ExternalServiceActionOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
14
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
15
+ export default createResourceRequest;
@@ -0,0 +1,41 @@
1
+ import { ExternalServiceActionParameterRepresentation as ExternalServiceActionParameterRepresentation_ExternalServiceActionParameterRepresentation } from './ExternalServiceActionParameterRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "4e90320a2a8521866935843772ace679";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ExternalServiceActionOutputRepresentation, existing: ExternalServiceActionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalServiceActionOutputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ExternalServiceActionOutputRepresentationNormalized, incoming: ExternalServiceActionOutputRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExternalServiceActionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents the Ext Service Action Details
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ExternalServiceActionOutputRepresentationNormalized {
18
+ /** The path for the external services edit page */
19
+ externalServicePath: string;
20
+ /** Http Method type of the service */
21
+ method: string;
22
+ /** Path/query parameters details of the service */
23
+ parameters: Array<ExternalServiceActionParameterRepresentation_ExternalServiceActionParameterRepresentation>;
24
+ /** Url Path used by the service */
25
+ path: string;
26
+ /** Registration name of the action service. */
27
+ registrationName: string;
28
+ }
29
+ /**
30
+ * Represents the Ext Service Action Details
31
+ *
32
+ * Keys:
33
+ * (none)
34
+ */
35
+ export interface ExternalServiceActionOutputRepresentation {
36
+ externalServicePath: string;
37
+ method: string;
38
+ parameters: Array<ExternalServiceActionParameterRepresentation_ExternalServiceActionParameterRepresentation>;
39
+ path: string;
40
+ registrationName: string;
41
+ }
@@ -0,0 +1,37 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "77afee4104970a3f44d1c478c16bd79c";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ExternalServiceActionParameterRepresentation, existing: ExternalServiceActionParameterRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalServiceActionParameterRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ExternalServiceActionParameterRepresentationNormalized, incoming: ExternalServiceActionParameterRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExternalServiceActionParameterRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Input Parameter details of the external service
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ExternalServiceActionParameterRepresentationNormalized {
17
+ /** Description of the parameter */
18
+ description: string;
19
+ /** Type of Parameter i.e. Path/Query */
20
+ location: string;
21
+ /** Name of the Parameter */
22
+ name: string;
23
+ /** Is the parameter a required field */
24
+ required: boolean;
25
+ }
26
+ /**
27
+ * Input Parameter details of the external service
28
+ *
29
+ * Keys:
30
+ * (none)
31
+ */
32
+ export interface ExternalServiceActionParameterRepresentation {
33
+ description: string;
34
+ location: string;
35
+ name: string;
36
+ required: boolean;
37
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-external-services",
3
- "version": "1.175.0",
3
+ "version": "1.177.0",
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
@@ -138,6 +138,395 @@ function createLink(ref) {
138
138
  };
139
139
  }
140
140
 
141
+ const VERSION$a = "77afee4104970a3f44d1c478c16bd79c";
142
+ function validate$d(obj, path = 'ExternalServiceActionParameterRepresentation') {
143
+ const v_error = (() => {
144
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
145
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
146
+ }
147
+ const obj_description = obj.description;
148
+ const path_description = path + '.description';
149
+ if (typeof obj_description !== 'string') {
150
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
151
+ }
152
+ const obj_location = obj.location;
153
+ const path_location = path + '.location';
154
+ if (typeof obj_location !== 'string') {
155
+ return new TypeError('Expected "string" but received "' + typeof obj_location + '" (at "' + path_location + '")');
156
+ }
157
+ const obj_name = obj.name;
158
+ const path_name = path + '.name';
159
+ if (typeof obj_name !== 'string') {
160
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
161
+ }
162
+ const obj_required = obj.required;
163
+ const path_required = path + '.required';
164
+ if (typeof obj_required !== 'boolean') {
165
+ return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
166
+ }
167
+ })();
168
+ return v_error === undefined ? null : v_error;
169
+ }
170
+ const select$g = function ExternalServiceActionParameterRepresentationSelect() {
171
+ return {
172
+ kind: 'Fragment',
173
+ version: VERSION$a,
174
+ private: [],
175
+ selections: [
176
+ {
177
+ name: 'description',
178
+ kind: 'Scalar'
179
+ },
180
+ {
181
+ name: 'location',
182
+ kind: 'Scalar'
183
+ },
184
+ {
185
+ name: 'name',
186
+ kind: 'Scalar'
187
+ },
188
+ {
189
+ name: 'required',
190
+ kind: 'Scalar'
191
+ }
192
+ ]
193
+ };
194
+ };
195
+ function equals$a(existing, incoming) {
196
+ const existing_required = existing.required;
197
+ const incoming_required = incoming.required;
198
+ if (!(existing_required === incoming_required)) {
199
+ return false;
200
+ }
201
+ const existing_description = existing.description;
202
+ const incoming_description = incoming.description;
203
+ if (!(existing_description === incoming_description)) {
204
+ return false;
205
+ }
206
+ const existing_location = existing.location;
207
+ const incoming_location = incoming.location;
208
+ if (!(existing_location === incoming_location)) {
209
+ return false;
210
+ }
211
+ const existing_name = existing.name;
212
+ const incoming_name = incoming.name;
213
+ if (!(existing_name === incoming_name)) {
214
+ return false;
215
+ }
216
+ return true;
217
+ }
218
+
219
+ const VERSION$9 = "4e90320a2a8521866935843772ace679";
220
+ function validate$c(obj, path = 'ExternalServiceActionOutputRepresentation') {
221
+ const v_error = (() => {
222
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
223
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
224
+ }
225
+ const obj_externalServicePath = obj.externalServicePath;
226
+ const path_externalServicePath = path + '.externalServicePath';
227
+ if (typeof obj_externalServicePath !== 'string') {
228
+ return new TypeError('Expected "string" but received "' + typeof obj_externalServicePath + '" (at "' + path_externalServicePath + '")');
229
+ }
230
+ const obj_method = obj.method;
231
+ const path_method = path + '.method';
232
+ if (typeof obj_method !== 'string') {
233
+ return new TypeError('Expected "string" but received "' + typeof obj_method + '" (at "' + path_method + '")');
234
+ }
235
+ const obj_parameters = obj.parameters;
236
+ const path_parameters = path + '.parameters';
237
+ if (!ArrayIsArray(obj_parameters)) {
238
+ return new TypeError('Expected "array" but received "' + typeof obj_parameters + '" (at "' + path_parameters + '")');
239
+ }
240
+ for (let i = 0; i < obj_parameters.length; i++) {
241
+ const obj_parameters_item = obj_parameters[i];
242
+ const path_parameters_item = path_parameters + '[' + i + ']';
243
+ const referencepath_parameters_itemValidationError = validate$d(obj_parameters_item, path_parameters_item);
244
+ if (referencepath_parameters_itemValidationError !== null) {
245
+ let message = 'Object doesn\'t match ExternalServiceActionParameterRepresentation (at "' + path_parameters_item + '")\n';
246
+ message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
247
+ return new TypeError(message);
248
+ }
249
+ }
250
+ const obj_path = obj.path;
251
+ const path_path = path + '.path';
252
+ if (typeof obj_path !== 'string') {
253
+ return new TypeError('Expected "string" but received "' + typeof obj_path + '" (at "' + path_path + '")');
254
+ }
255
+ const obj_registrationName = obj.registrationName;
256
+ const path_registrationName = path + '.registrationName';
257
+ if (typeof obj_registrationName !== 'string') {
258
+ return new TypeError('Expected "string" but received "' + typeof obj_registrationName + '" (at "' + path_registrationName + '")');
259
+ }
260
+ })();
261
+ return v_error === undefined ? null : v_error;
262
+ }
263
+ const RepresentationType$4 = 'ExternalServiceActionOutputRepresentation';
264
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
265
+ return input;
266
+ }
267
+ const select$f = function ExternalServiceActionOutputRepresentationSelect() {
268
+ const { selections: ExternalServiceActionParameterRepresentation__selections, opaque: ExternalServiceActionParameterRepresentation__opaque, } = select$g();
269
+ return {
270
+ kind: 'Fragment',
271
+ version: VERSION$9,
272
+ private: [],
273
+ selections: [
274
+ {
275
+ name: 'externalServicePath',
276
+ kind: 'Scalar'
277
+ },
278
+ {
279
+ name: 'method',
280
+ kind: 'Scalar'
281
+ },
282
+ {
283
+ name: 'parameters',
284
+ kind: 'Object',
285
+ plural: true,
286
+ selections: ExternalServiceActionParameterRepresentation__selections
287
+ },
288
+ {
289
+ name: 'path',
290
+ kind: 'Scalar'
291
+ },
292
+ {
293
+ name: 'registrationName',
294
+ kind: 'Scalar'
295
+ }
296
+ ]
297
+ };
298
+ };
299
+ function equals$9(existing, incoming) {
300
+ const existing_externalServicePath = existing.externalServicePath;
301
+ const incoming_externalServicePath = incoming.externalServicePath;
302
+ if (!(existing_externalServicePath === incoming_externalServicePath)) {
303
+ return false;
304
+ }
305
+ const existing_method = existing.method;
306
+ const incoming_method = incoming.method;
307
+ if (!(existing_method === incoming_method)) {
308
+ return false;
309
+ }
310
+ const existing_path = existing.path;
311
+ const incoming_path = incoming.path;
312
+ if (!(existing_path === incoming_path)) {
313
+ return false;
314
+ }
315
+ const existing_registrationName = existing.registrationName;
316
+ const incoming_registrationName = incoming.registrationName;
317
+ if (!(existing_registrationName === incoming_registrationName)) {
318
+ return false;
319
+ }
320
+ const existing_parameters = existing.parameters;
321
+ const incoming_parameters = incoming.parameters;
322
+ const equals_parameters_items = equalsArray(existing_parameters, incoming_parameters, (existing_parameters_item, incoming_parameters_item) => {
323
+ if (!(equals$a(existing_parameters_item, incoming_parameters_item))) {
324
+ return false;
325
+ }
326
+ });
327
+ if (equals_parameters_items === false) {
328
+ return false;
329
+ }
330
+ return true;
331
+ }
332
+ const ingest$4 = function ExternalServiceActionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
333
+ if (process.env.NODE_ENV !== 'production') {
334
+ const validateError = validate$c(input);
335
+ if (validateError !== null) {
336
+ throw validateError;
337
+ }
338
+ }
339
+ const key = path.fullPath;
340
+ const existingRecord = store.readEntry(key);
341
+ 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
+ }
360
+ return createLink(key);
361
+ };
362
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
363
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
364
+ const rootKey = fullPathFactory();
365
+ rootKeySet.set(rootKey, {
366
+ namespace: keyPrefix,
367
+ representationName: RepresentationType$4,
368
+ mergeable: false
369
+ });
370
+ }
371
+
372
+ function select$e(luvio, params) {
373
+ return select$f();
374
+ }
375
+ function keyBuilder$a(luvio, params) {
376
+ return keyPrefix + '::ExternalServiceActionOutputRepresentation:(' + 'actionName:' + params.urlParams.actionName + ')';
377
+ }
378
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
379
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
380
+ }
381
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
382
+ const { body } = response;
383
+ const key = keyBuilder$a(luvio, resourceParams);
384
+ luvio.storeIngest(key, ingest$4, body);
385
+ const snapshot = luvio.storeLookup({
386
+ recordId: key,
387
+ node: select$e(),
388
+ variables: {},
389
+ }, snapshotRefresh);
390
+ if (process.env.NODE_ENV !== 'production') {
391
+ if (snapshot.state !== 'Fulfilled') {
392
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
393
+ }
394
+ }
395
+ deepFreeze(snapshot.data);
396
+ return snapshot;
397
+ }
398
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
399
+ const key = keyBuilder$a(luvio, params);
400
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
401
+ luvio.storeIngestError(key, errorSnapshot);
402
+ return errorSnapshot;
403
+ }
404
+ function createResourceRequest$5(config) {
405
+ const headers = {};
406
+ return {
407
+ baseUri: '/services/data/v59.0',
408
+ basePath: '/externalservices/actions/services/' + config.urlParams.actionName + '',
409
+ method: 'get',
410
+ body: null,
411
+ urlParams: config.urlParams,
412
+ queryParams: {},
413
+ headers,
414
+ priority: 'normal',
415
+ };
416
+ }
417
+
418
+ const getActionDetailsForService_ConfigPropertyNames = {
419
+ displayName: 'getActionDetailsForService',
420
+ parameters: {
421
+ required: ['actionName'],
422
+ optional: []
423
+ }
424
+ };
425
+ function createResourceParams$5(config) {
426
+ const resourceParams = {
427
+ urlParams: {
428
+ actionName: config.actionName
429
+ }
430
+ };
431
+ return resourceParams;
432
+ }
433
+ function keyBuilder$9(luvio, config) {
434
+ const resourceParams = createResourceParams$5(config);
435
+ return keyBuilder$a(luvio, resourceParams);
436
+ }
437
+ function typeCheckConfig$5(untrustedConfig) {
438
+ const config = {};
439
+ const untrustedConfig_actionName = untrustedConfig.actionName;
440
+ if (typeof untrustedConfig_actionName === 'string') {
441
+ config.actionName = untrustedConfig_actionName;
442
+ }
443
+ return config;
444
+ }
445
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
446
+ if (!untrustedIsObject(untrustedConfig)) {
447
+ return null;
448
+ }
449
+ if (process.env.NODE_ENV !== 'production') {
450
+ validateConfig(untrustedConfig, configPropertyNames);
451
+ }
452
+ const config = typeCheckConfig$5(untrustedConfig);
453
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
454
+ return null;
455
+ }
456
+ return config;
457
+ }
458
+ function adapterFragment$4(luvio, config) {
459
+ createResourceParams$5(config);
460
+ return select$e();
461
+ }
462
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
463
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
464
+ config,
465
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
466
+ });
467
+ return luvio.storeBroadcast().then(() => snapshot);
468
+ }
469
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
470
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
471
+ config,
472
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
473
+ });
474
+ return luvio.storeBroadcast().then(() => snapshot);
475
+ }
476
+ function buildNetworkSnapshot$5(luvio, config, options) {
477
+ const resourceParams = createResourceParams$5(config);
478
+ const request = createResourceRequest$5(resourceParams);
479
+ return luvio.dispatchResourceRequest(request, options)
480
+ .then((response) => {
481
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
482
+ const cache = new StoreKeyMap();
483
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
484
+ return cache;
485
+ });
486
+ }, (response) => {
487
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
488
+ });
489
+ }
490
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
491
+ const { luvio, config } = context;
492
+ const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
493
+ const dispatchOptions = {
494
+ resourceRequestContext: {
495
+ requestCorrelator,
496
+ luvioRequestMethod: undefined,
497
+ },
498
+ eventObservers
499
+ };
500
+ if (networkPriority !== 'normal') {
501
+ dispatchOptions.overrides = {
502
+ priority: networkPriority
503
+ };
504
+ }
505
+ return buildNetworkSnapshot$5(luvio, config, dispatchOptions);
506
+ }
507
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
508
+ const { luvio, config } = context;
509
+ const selector = {
510
+ recordId: keyBuilder$9(luvio, config),
511
+ node: adapterFragment$4(luvio, config),
512
+ variables: {},
513
+ };
514
+ const cacheSnapshot = storeLookup(selector, {
515
+ config,
516
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
517
+ });
518
+ return cacheSnapshot;
519
+ }
520
+ const getActionDetailsForServiceAdapterFactory = (luvio) => function externalServices__getActionDetailsForService(untrustedConfig, requestContext) {
521
+ const config = validateAdapterConfig$5(untrustedConfig, getActionDetailsForService_ConfigPropertyNames);
522
+ // Invalid or incomplete config
523
+ if (config === null) {
524
+ return null;
525
+ }
526
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
527
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
528
+ };
529
+
141
530
  const VERSION$8 = "68601d043a553523b207d5fcc707e053";
142
531
  function validate$b(obj, path = 'InferenceErrorMessageRepresentation') {
143
532
  const v_error = (() => {
@@ -2262,23 +2651,27 @@ const validateSchemaAdapterFactory = (luvio) => {
2262
2651
  };
2263
2652
  };
2264
2653
 
2654
+ let getActionDetailsForService;
2265
2655
  let getDataShape;
2266
2656
  let getOpenApiSpec;
2267
2657
  let getStatistics;
2268
2658
  let getStatisticsForService;
2269
2659
  let validateSchema;
2270
2660
  // Imperative GET Adapters
2661
+ let getActionDetailsForService_imperative;
2271
2662
  let getDataShape_imperative;
2272
2663
  let getOpenApiSpec_imperative;
2273
2664
  let getStatistics_imperative;
2274
2665
  let getStatisticsForService_imperative;
2275
2666
  // Adapter Metadata
2667
+ const getActionDetailsForServiceMetadata = { apiFamily: 'externalservices', name: 'getActionDetailsForService' };
2276
2668
  const getDataShapeMetadata = { apiFamily: 'externalservices', name: 'getDataShape' };
2277
2669
  const getOpenApiSpecMetadata = { apiFamily: 'externalservices', name: 'getOpenApiSpec', ttl: 500 };
2278
2670
  const getStatisticsMetadata = { apiFamily: 'externalservices', name: 'getStatistics' };
2279
2671
  const getStatisticsForServiceMetadata = { apiFamily: 'externalservices', name: 'getStatisticsForService' };
2280
2672
  function bindExportsTo(luvio) {
2281
2673
  // LDS Adapters
2674
+ const getActionDetailsForService_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getActionDetailsForService', getActionDetailsForServiceAdapterFactory), getActionDetailsForServiceMetadata);
2282
2675
  const getDataShape_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataShape', getDataShapeAdapterFactory), getDataShapeMetadata);
2283
2676
  const getOpenApiSpec_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getOpenApiSpec', getOpenApiSpecAdapterFactory), getOpenApiSpecMetadata);
2284
2677
  const getStatistics_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getStatistics', getStatisticsAdapterFactory), getStatisticsMetadata);
@@ -2288,12 +2681,14 @@ function bindExportsTo(luvio) {
2288
2681
  return (config) => adapter(config).then(snapshot => snapshot.data);
2289
2682
  }
2290
2683
  return {
2684
+ getActionDetailsForService: createWireAdapterConstructor(luvio, getActionDetailsForService_ldsAdapter, getActionDetailsForServiceMetadata),
2291
2685
  getDataShape: createWireAdapterConstructor(luvio, getDataShape_ldsAdapter, getDataShapeMetadata),
2292
2686
  getOpenApiSpec: createWireAdapterConstructor(luvio, getOpenApiSpec_ldsAdapter, getOpenApiSpecMetadata),
2293
2687
  getStatistics: createWireAdapterConstructor(luvio, getStatistics_ldsAdapter, getStatisticsMetadata),
2294
2688
  getStatisticsForService: createWireAdapterConstructor(luvio, getStatisticsForService_ldsAdapter, getStatisticsForServiceMetadata),
2295
2689
  validateSchema: unwrapSnapshotData(validateSchemaAdapterFactory),
2296
2690
  // Imperative GET Adapters
2691
+ getActionDetailsForService_imperative: createImperativeAdapter(luvio, getActionDetailsForService_ldsAdapter, getActionDetailsForServiceMetadata),
2297
2692
  getDataShape_imperative: createImperativeAdapter(luvio, getDataShape_ldsAdapter, getDataShapeMetadata),
2298
2693
  getOpenApiSpec_imperative: createImperativeAdapter(luvio, getOpenApiSpec_ldsAdapter, getOpenApiSpecMetadata),
2299
2694
  getStatistics_imperative: createImperativeAdapter(luvio, getStatistics_ldsAdapter, getStatisticsMetadata),
@@ -2302,11 +2697,13 @@ function bindExportsTo(luvio) {
2302
2697
  }
2303
2698
  withDefaultLuvio((luvio) => {
2304
2699
  ({
2700
+ getActionDetailsForService,
2305
2701
  getDataShape,
2306
2702
  getOpenApiSpec,
2307
2703
  getStatistics,
2308
2704
  getStatisticsForService,
2309
2705
  validateSchema,
2706
+ getActionDetailsForService_imperative,
2310
2707
  getDataShape_imperative,
2311
2708
  getOpenApiSpec_imperative,
2312
2709
  getStatistics_imperative,
@@ -2314,5 +2711,5 @@ withDefaultLuvio((luvio) => {
2314
2711
  } = bindExportsTo(luvio));
2315
2712
  });
2316
2713
 
2317
- export { getDataShape, getDataShape_imperative, getOpenApiSpec, getOpenApiSpec_imperative, getStatistics, getStatisticsForService, getStatisticsForService_imperative, getStatistics_imperative, validateSchema };
2318
- // version: 1.175.0-a8d86b864
2714
+ export { getActionDetailsForService, getActionDetailsForService_imperative, getDataShape, getDataShape_imperative, getOpenApiSpec, getOpenApiSpec_imperative, getStatistics, getStatisticsForService, getStatisticsForService_imperative, getStatistics_imperative, validateSchema };
2715
+ // version: 1.177.0-56ff98dd2