@salesforce/lds-adapters-platform-external-services 1.245.0 → 1.246.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-external-services.js +460 -148
- package/dist/es/es2018/types/src/generated/adapters/sendTestConnectionRequest.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/postExternalservicesInferenceDatashapeSendrequestByVersion.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/types/OpenApiSpecInferenceParameterRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/TestConnectionInputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/TestConnectionInputWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/TestConnectionOutputRepresentation.d.ts +40 -0
- package/package.json +1 -1
- package/sfdc/index.js +600 -280
- package/src/raml/api.raml +78 -0
- package/src/raml/luvio.raml +8 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckConfig as typeCheckConfig$7, StoreKeyMap, createResourceParams as createResourceParams$7 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -149,8 +149,8 @@ function createLink(ref) {
|
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
const VERSION$
|
|
153
|
-
function validate$
|
|
152
|
+
const VERSION$b = "77afee4104970a3f44d1c478c16bd79c";
|
|
153
|
+
function validate$f(obj, path = 'ExternalServiceActionParameterRepresentation') {
|
|
154
154
|
const v_error = (() => {
|
|
155
155
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
156
156
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -178,10 +178,10 @@ function validate$d(obj, path = 'ExternalServiceActionParameterRepresentation')
|
|
|
178
178
|
})();
|
|
179
179
|
return v_error === undefined ? null : v_error;
|
|
180
180
|
}
|
|
181
|
-
const select$
|
|
181
|
+
const select$i = function ExternalServiceActionParameterRepresentationSelect() {
|
|
182
182
|
return {
|
|
183
183
|
kind: 'Fragment',
|
|
184
|
-
version: VERSION$
|
|
184
|
+
version: VERSION$b,
|
|
185
185
|
private: [],
|
|
186
186
|
selections: [
|
|
187
187
|
{
|
|
@@ -203,7 +203,7 @@ const select$g = function ExternalServiceActionParameterRepresentationSelect() {
|
|
|
203
203
|
]
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
|
-
function equals$
|
|
206
|
+
function equals$b(existing, incoming) {
|
|
207
207
|
const existing_required = existing.required;
|
|
208
208
|
const incoming_required = incoming.required;
|
|
209
209
|
if (!(existing_required === incoming_required)) {
|
|
@@ -227,8 +227,8 @@ function equals$a(existing, incoming) {
|
|
|
227
227
|
return true;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
const VERSION$
|
|
231
|
-
function validate$
|
|
230
|
+
const VERSION$a = "4e90320a2a8521866935843772ace679";
|
|
231
|
+
function validate$e(obj, path = 'ExternalServiceActionOutputRepresentation') {
|
|
232
232
|
const v_error = (() => {
|
|
233
233
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
234
234
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -251,7 +251,7 @@ function validate$c(obj, path = 'ExternalServiceActionOutputRepresentation') {
|
|
|
251
251
|
for (let i = 0; i < obj_parameters.length; i++) {
|
|
252
252
|
const obj_parameters_item = obj_parameters[i];
|
|
253
253
|
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
254
|
-
const referencepath_parameters_itemValidationError = validate$
|
|
254
|
+
const referencepath_parameters_itemValidationError = validate$f(obj_parameters_item, path_parameters_item);
|
|
255
255
|
if (referencepath_parameters_itemValidationError !== null) {
|
|
256
256
|
let message = 'Object doesn\'t match ExternalServiceActionParameterRepresentation (at "' + path_parameters_item + '")\n';
|
|
257
257
|
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -271,15 +271,15 @@ function validate$c(obj, path = 'ExternalServiceActionOutputRepresentation') {
|
|
|
271
271
|
})();
|
|
272
272
|
return v_error === undefined ? null : v_error;
|
|
273
273
|
}
|
|
274
|
-
const RepresentationType$
|
|
275
|
-
function normalize$
|
|
274
|
+
const RepresentationType$5 = 'ExternalServiceActionOutputRepresentation';
|
|
275
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
276
276
|
return input;
|
|
277
277
|
}
|
|
278
|
-
const select$
|
|
279
|
-
const { selections: ExternalServiceActionParameterRepresentation__selections, opaque: ExternalServiceActionParameterRepresentation__opaque, } = select$
|
|
278
|
+
const select$h = function ExternalServiceActionOutputRepresentationSelect() {
|
|
279
|
+
const { selections: ExternalServiceActionParameterRepresentation__selections, opaque: ExternalServiceActionParameterRepresentation__opaque, } = select$i();
|
|
280
280
|
return {
|
|
281
281
|
kind: 'Fragment',
|
|
282
|
-
version: VERSION$
|
|
282
|
+
version: VERSION$a,
|
|
283
283
|
private: [],
|
|
284
284
|
selections: [
|
|
285
285
|
{
|
|
@@ -307,7 +307,7 @@ const select$f = function ExternalServiceActionOutputRepresentationSelect() {
|
|
|
307
307
|
]
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
|
-
function equals$
|
|
310
|
+
function equals$a(existing, incoming) {
|
|
311
311
|
const existing_externalServicePath = existing.externalServicePath;
|
|
312
312
|
const incoming_externalServicePath = incoming.externalServicePath;
|
|
313
313
|
if (!(existing_externalServicePath === incoming_externalServicePath)) {
|
|
@@ -331,7 +331,7 @@ function equals$9(existing, incoming) {
|
|
|
331
331
|
const existing_parameters = existing.parameters;
|
|
332
332
|
const incoming_parameters = incoming.parameters;
|
|
333
333
|
const equals_parameters_items = equalsArray(existing_parameters, incoming_parameters, (existing_parameters_item, incoming_parameters_item) => {
|
|
334
|
-
if (!(equals$
|
|
334
|
+
if (!(equals$b(existing_parameters_item, incoming_parameters_item))) {
|
|
335
335
|
return false;
|
|
336
336
|
}
|
|
337
337
|
});
|
|
@@ -340,44 +340,44 @@ function equals$9(existing, incoming) {
|
|
|
340
340
|
}
|
|
341
341
|
return true;
|
|
342
342
|
}
|
|
343
|
-
const ingest$
|
|
343
|
+
const ingest$5 = function ExternalServiceActionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
344
344
|
if (process.env.NODE_ENV !== 'production') {
|
|
345
|
-
const validateError = validate$
|
|
345
|
+
const validateError = validate$e(input);
|
|
346
346
|
if (validateError !== null) {
|
|
347
347
|
throw validateError;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
const key = path.fullPath;
|
|
351
351
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
|
|
352
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
352
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "external-services", VERSION$a, RepresentationType$5, equals$a);
|
|
353
353
|
return createLink(key);
|
|
354
354
|
};
|
|
355
|
-
function getTypeCacheKeys$
|
|
355
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
356
356
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
357
357
|
const rootKey = fullPathFactory();
|
|
358
358
|
rootKeySet.set(rootKey, {
|
|
359
359
|
namespace: keyPrefix,
|
|
360
|
-
representationName: RepresentationType$
|
|
360
|
+
representationName: RepresentationType$5,
|
|
361
361
|
mergeable: false
|
|
362
362
|
});
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
-
function select$
|
|
366
|
-
return select$
|
|
365
|
+
function select$g(luvio, params) {
|
|
366
|
+
return select$h();
|
|
367
367
|
}
|
|
368
|
-
function keyBuilder$
|
|
368
|
+
function keyBuilder$c(luvio, params) {
|
|
369
369
|
return keyPrefix + '::ExternalServiceActionOutputRepresentation:(' + 'actionName:' + params.urlParams.actionName + ')';
|
|
370
370
|
}
|
|
371
|
-
function getResponseCacheKeys$
|
|
372
|
-
getTypeCacheKeys$
|
|
371
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
372
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
|
|
373
373
|
}
|
|
374
|
-
function ingestSuccess$
|
|
374
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
375
375
|
const { body } = response;
|
|
376
|
-
const key = keyBuilder$
|
|
377
|
-
luvio.storeIngest(key, ingest$
|
|
376
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
377
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
378
378
|
const snapshot = luvio.storeLookup({
|
|
379
379
|
recordId: key,
|
|
380
|
-
node: select$
|
|
380
|
+
node: select$g(),
|
|
381
381
|
variables: {},
|
|
382
382
|
}, snapshotRefresh);
|
|
383
383
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -388,13 +388,13 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
388
388
|
deepFreeze(snapshot.data);
|
|
389
389
|
return snapshot;
|
|
390
390
|
}
|
|
391
|
-
function ingestError$
|
|
392
|
-
const key = keyBuilder$
|
|
391
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
392
|
+
const key = keyBuilder$c(luvio, params);
|
|
393
393
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
394
394
|
luvio.storeIngestError(key, errorSnapshot);
|
|
395
395
|
return errorSnapshot;
|
|
396
396
|
}
|
|
397
|
-
function createResourceRequest$
|
|
397
|
+
function createResourceRequest$6(config) {
|
|
398
398
|
const headers = {};
|
|
399
399
|
return {
|
|
400
400
|
baseUri: '/services/data/v60.0',
|
|
@@ -408,94 +408,94 @@ function createResourceRequest$5(config) {
|
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
const adapterName$
|
|
411
|
+
const adapterName$6 = 'getActionDetailsForService';
|
|
412
412
|
const getActionDetailsForService_ConfigPropertyMetadata = [
|
|
413
413
|
generateParamConfigMetadata('actionName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
414
414
|
];
|
|
415
|
-
const getActionDetailsForService_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
416
|
-
const createResourceParams$
|
|
417
|
-
function keyBuilder$
|
|
418
|
-
const resourceParams = createResourceParams$
|
|
419
|
-
return keyBuilder$
|
|
415
|
+
const getActionDetailsForService_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getActionDetailsForService_ConfigPropertyMetadata);
|
|
416
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getActionDetailsForService_ConfigPropertyMetadata);
|
|
417
|
+
function keyBuilder$b(luvio, config) {
|
|
418
|
+
const resourceParams = createResourceParams$6(config);
|
|
419
|
+
return keyBuilder$c(luvio, resourceParams);
|
|
420
420
|
}
|
|
421
|
-
function typeCheckConfig$
|
|
421
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
422
422
|
const config = {};
|
|
423
|
-
typeCheckConfig$
|
|
423
|
+
typeCheckConfig$7(untrustedConfig, config, getActionDetailsForService_ConfigPropertyMetadata);
|
|
424
424
|
return config;
|
|
425
425
|
}
|
|
426
|
-
function validateAdapterConfig$
|
|
426
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
427
427
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
428
428
|
return null;
|
|
429
429
|
}
|
|
430
430
|
if (process.env.NODE_ENV !== 'production') {
|
|
431
431
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
432
432
|
}
|
|
433
|
-
const config = typeCheckConfig$
|
|
433
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
434
434
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
435
435
|
return null;
|
|
436
436
|
}
|
|
437
437
|
return config;
|
|
438
438
|
}
|
|
439
|
-
function adapterFragment$
|
|
440
|
-
createResourceParams$
|
|
441
|
-
return select$
|
|
439
|
+
function adapterFragment$5(luvio, config) {
|
|
440
|
+
createResourceParams$6(config);
|
|
441
|
+
return select$g();
|
|
442
442
|
}
|
|
443
|
-
function onFetchResponseSuccess$
|
|
444
|
-
const snapshot = ingestSuccess$
|
|
443
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
444
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
445
445
|
config,
|
|
446
|
-
resolve: () => buildNetworkSnapshot$
|
|
446
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
447
447
|
});
|
|
448
448
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
449
449
|
}
|
|
450
|
-
function onFetchResponseError$
|
|
451
|
-
const snapshot = ingestError$
|
|
450
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
451
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
452
452
|
config,
|
|
453
|
-
resolve: () => buildNetworkSnapshot$
|
|
453
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
454
454
|
});
|
|
455
455
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
456
456
|
}
|
|
457
|
-
function buildNetworkSnapshot$
|
|
458
|
-
const resourceParams = createResourceParams$
|
|
459
|
-
const request = createResourceRequest$
|
|
457
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
458
|
+
const resourceParams = createResourceParams$6(config);
|
|
459
|
+
const request = createResourceRequest$6(resourceParams);
|
|
460
460
|
return luvio.dispatchResourceRequest(request, options)
|
|
461
461
|
.then((response) => {
|
|
462
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
462
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
463
463
|
const cache = new StoreKeyMap();
|
|
464
|
-
getResponseCacheKeys$
|
|
464
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
465
465
|
return cache;
|
|
466
466
|
});
|
|
467
467
|
}, (response) => {
|
|
468
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
468
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
|
-
function buildNetworkSnapshotCachePolicy$
|
|
472
|
-
return buildNetworkSnapshotCachePolicy$
|
|
471
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
472
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
473
473
|
}
|
|
474
|
-
function buildCachedSnapshotCachePolicy$
|
|
474
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
475
475
|
const { luvio, config } = context;
|
|
476
476
|
const selector = {
|
|
477
|
-
recordId: keyBuilder$
|
|
478
|
-
node: adapterFragment$
|
|
477
|
+
recordId: keyBuilder$b(luvio, config),
|
|
478
|
+
node: adapterFragment$5(luvio, config),
|
|
479
479
|
variables: {},
|
|
480
480
|
};
|
|
481
481
|
const cacheSnapshot = storeLookup(selector, {
|
|
482
482
|
config,
|
|
483
|
-
resolve: () => buildNetworkSnapshot$
|
|
483
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
484
484
|
});
|
|
485
485
|
return cacheSnapshot;
|
|
486
486
|
}
|
|
487
487
|
const getActionDetailsForServiceAdapterFactory = (luvio) => function externalServices__getActionDetailsForService(untrustedConfig, requestContext) {
|
|
488
|
-
const config = validateAdapterConfig$
|
|
488
|
+
const config = validateAdapterConfig$6(untrustedConfig, getActionDetailsForService_ConfigPropertyNames);
|
|
489
489
|
// Invalid or incomplete config
|
|
490
490
|
if (config === null) {
|
|
491
491
|
return null;
|
|
492
492
|
}
|
|
493
493
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
494
|
-
buildCachedSnapshotCachePolicy$
|
|
494
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
495
495
|
};
|
|
496
496
|
|
|
497
|
-
const VERSION$
|
|
498
|
-
function validate$
|
|
497
|
+
const VERSION$9 = "68601d043a553523b207d5fcc707e053";
|
|
498
|
+
function validate$d(obj, path = 'InferenceErrorMessageRepresentation') {
|
|
499
499
|
const v_error = (() => {
|
|
500
500
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
501
501
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -513,10 +513,10 @@ function validate$b(obj, path = 'InferenceErrorMessageRepresentation') {
|
|
|
513
513
|
})();
|
|
514
514
|
return v_error === undefined ? null : v_error;
|
|
515
515
|
}
|
|
516
|
-
const select$
|
|
516
|
+
const select$f = function InferenceErrorMessageRepresentationSelect() {
|
|
517
517
|
return {
|
|
518
518
|
kind: 'Fragment',
|
|
519
|
-
version: VERSION$
|
|
519
|
+
version: VERSION$9,
|
|
520
520
|
private: [],
|
|
521
521
|
selections: [
|
|
522
522
|
{
|
|
@@ -530,7 +530,7 @@ const select$d = function InferenceErrorMessageRepresentationSelect() {
|
|
|
530
530
|
]
|
|
531
531
|
};
|
|
532
532
|
};
|
|
533
|
-
function equals$
|
|
533
|
+
function equals$9(existing, incoming) {
|
|
534
534
|
const existing_message = existing.message;
|
|
535
535
|
const incoming_message = incoming.message;
|
|
536
536
|
if (!(existing_message === incoming_message)) {
|
|
@@ -544,8 +544,8 @@ function equals$8(existing, incoming) {
|
|
|
544
544
|
return true;
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
const VERSION$
|
|
548
|
-
function validate$
|
|
547
|
+
const VERSION$8 = "d45a6a39072862479f5c25fe921c0926";
|
|
548
|
+
function validate$c(obj, path = 'DataShapeInferenceOutputRepresentation') {
|
|
549
549
|
const v_error = (() => {
|
|
550
550
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
551
551
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -558,7 +558,7 @@ function validate$a(obj, path = 'DataShapeInferenceOutputRepresentation') {
|
|
|
558
558
|
for (let i = 0; i < obj_errorMessages.length; i++) {
|
|
559
559
|
const obj_errorMessages_item = obj_errorMessages[i];
|
|
560
560
|
const path_errorMessages_item = path_errorMessages + '[' + i + ']';
|
|
561
|
-
const referencepath_errorMessages_itemValidationError = validate$
|
|
561
|
+
const referencepath_errorMessages_itemValidationError = validate$d(obj_errorMessages_item, path_errorMessages_item);
|
|
562
562
|
if (referencepath_errorMessages_itemValidationError !== null) {
|
|
563
563
|
let message = 'Object doesn\'t match InferenceErrorMessageRepresentation (at "' + path_errorMessages_item + '")\n';
|
|
564
564
|
message += referencepath_errorMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -580,7 +580,7 @@ function validate$a(obj, path = 'DataShapeInferenceOutputRepresentation') {
|
|
|
580
580
|
for (let i = 0; i < obj_items.length; i++) {
|
|
581
581
|
const obj_items_item = obj_items[i];
|
|
582
582
|
const path_items_item = path_items + '[' + i + ']';
|
|
583
|
-
const referencepath_items_itemValidationError = validate$
|
|
583
|
+
const referencepath_items_itemValidationError = validate$c(obj_items_item, path_items_item);
|
|
584
584
|
if (referencepath_items_itemValidationError !== null) {
|
|
585
585
|
let message = 'Object doesn\'t match DataShapeInferenceOutputRepresentation (at "' + path_items_item + '")\n';
|
|
586
586
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -597,7 +597,7 @@ function validate$a(obj, path = 'DataShapeInferenceOutputRepresentation') {
|
|
|
597
597
|
const key = obj_properties_keys[i];
|
|
598
598
|
const obj_properties_prop = obj_properties[key];
|
|
599
599
|
const path_properties_prop = path_properties + '["' + key + '"]';
|
|
600
|
-
const referencepath_properties_propValidationError = validate$
|
|
600
|
+
const referencepath_properties_propValidationError = validate$c(obj_properties_prop, path_properties_prop);
|
|
601
601
|
if (referencepath_properties_propValidationError !== null) {
|
|
602
602
|
let message = 'Object doesn\'t match DataShapeInferenceOutputRepresentation (at "' + path_properties_prop + '")\n';
|
|
603
603
|
message += referencepath_properties_propValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -619,62 +619,62 @@ function validate$a(obj, path = 'DataShapeInferenceOutputRepresentation') {
|
|
|
619
619
|
})();
|
|
620
620
|
return v_error === undefined ? null : v_error;
|
|
621
621
|
}
|
|
622
|
-
const RepresentationType$
|
|
623
|
-
function normalize$
|
|
622
|
+
const RepresentationType$4 = 'DataShapeInferenceOutputRepresentation';
|
|
623
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
624
624
|
return input;
|
|
625
625
|
}
|
|
626
|
-
const select$
|
|
626
|
+
const select$e = function DataShapeInferenceOutputRepresentationSelect() {
|
|
627
627
|
return {
|
|
628
628
|
kind: 'Fragment',
|
|
629
|
-
version: VERSION$
|
|
629
|
+
version: VERSION$8,
|
|
630
630
|
private: [],
|
|
631
631
|
opaque: true
|
|
632
632
|
};
|
|
633
633
|
};
|
|
634
|
-
function equals$
|
|
634
|
+
function equals$8(existing, incoming) {
|
|
635
635
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
636
636
|
return false;
|
|
637
637
|
}
|
|
638
638
|
return true;
|
|
639
639
|
}
|
|
640
|
-
const ingest$
|
|
640
|
+
const ingest$4 = function DataShapeInferenceOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
641
641
|
if (process.env.NODE_ENV !== 'production') {
|
|
642
|
-
const validateError = validate$
|
|
642
|
+
const validateError = validate$c(input);
|
|
643
643
|
if (validateError !== null) {
|
|
644
644
|
throw validateError;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
const key = path.fullPath;
|
|
648
648
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 300000;
|
|
649
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
649
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "external-services", VERSION$8, RepresentationType$4, equals$8);
|
|
650
650
|
return createLink(key);
|
|
651
651
|
};
|
|
652
|
-
function getTypeCacheKeys$
|
|
652
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
653
653
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
654
654
|
const rootKey = fullPathFactory();
|
|
655
655
|
rootKeySet.set(rootKey, {
|
|
656
656
|
namespace: keyPrefix,
|
|
657
|
-
representationName: RepresentationType$
|
|
657
|
+
representationName: RepresentationType$4,
|
|
658
658
|
mergeable: false
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
661
|
|
|
662
|
-
function select$
|
|
663
|
-
return select$
|
|
662
|
+
function select$d(luvio, params) {
|
|
663
|
+
return select$e();
|
|
664
664
|
}
|
|
665
|
-
function keyBuilder$
|
|
665
|
+
function keyBuilder$a(luvio, params) {
|
|
666
666
|
return keyPrefix + '::DataShapeInferenceOutputRepresentation:(' + 'exampleData:' + params.queryParams.exampleData + ',' + 'mediaType:' + params.queryParams.mediaType + ',' + 'version:' + params.urlParams.version + ')';
|
|
667
667
|
}
|
|
668
|
-
function getResponseCacheKeys$
|
|
669
|
-
getTypeCacheKeys$
|
|
668
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
669
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
670
670
|
}
|
|
671
|
-
function ingestSuccess$
|
|
671
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
672
672
|
const { body } = response;
|
|
673
|
-
const key = keyBuilder$
|
|
674
|
-
luvio.storeIngest(key, ingest$
|
|
673
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
674
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
675
675
|
const snapshot = luvio.storeLookup({
|
|
676
676
|
recordId: key,
|
|
677
|
-
node: select$
|
|
677
|
+
node: select$d(),
|
|
678
678
|
variables: {},
|
|
679
679
|
}, snapshotRefresh);
|
|
680
680
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -685,13 +685,13 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
685
685
|
deepFreeze(snapshot.data);
|
|
686
686
|
return snapshot;
|
|
687
687
|
}
|
|
688
|
-
function ingestError$
|
|
689
|
-
const key = keyBuilder$
|
|
688
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
689
|
+
const key = keyBuilder$a(luvio, params);
|
|
690
690
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
691
691
|
luvio.storeIngestError(key, errorSnapshot);
|
|
692
692
|
return errorSnapshot;
|
|
693
693
|
}
|
|
694
|
-
function createResourceRequest$
|
|
694
|
+
function createResourceRequest$5(config) {
|
|
695
695
|
const headers = {};
|
|
696
696
|
return {
|
|
697
697
|
baseUri: '/services/data/v60.0',
|
|
@@ -705,95 +705,95 @@ function createResourceRequest$4(config) {
|
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
707
|
|
|
708
|
-
const adapterName$
|
|
708
|
+
const adapterName$5 = 'getDataShape';
|
|
709
709
|
const getDataShape_ConfigPropertyMetadata = [
|
|
710
710
|
generateParamConfigMetadata('version', true, 0 /* UrlParameter */, 0 /* String */),
|
|
711
711
|
generateParamConfigMetadata('exampleData', false, 1 /* QueryParameter */, 0 /* String */),
|
|
712
712
|
generateParamConfigMetadata('mediaType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
713
713
|
];
|
|
714
|
-
const getDataShape_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
715
|
-
const createResourceParams$
|
|
716
|
-
function keyBuilder$
|
|
717
|
-
const resourceParams = createResourceParams$
|
|
718
|
-
return keyBuilder$
|
|
714
|
+
const getDataShape_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getDataShape_ConfigPropertyMetadata);
|
|
715
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(getDataShape_ConfigPropertyMetadata);
|
|
716
|
+
function keyBuilder$9(luvio, config) {
|
|
717
|
+
const resourceParams = createResourceParams$5(config);
|
|
718
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
719
719
|
}
|
|
720
|
-
function typeCheckConfig$
|
|
720
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
721
721
|
const config = {};
|
|
722
|
-
typeCheckConfig$
|
|
722
|
+
typeCheckConfig$7(untrustedConfig, config, getDataShape_ConfigPropertyMetadata);
|
|
723
723
|
return config;
|
|
724
724
|
}
|
|
725
|
-
function validateAdapterConfig$
|
|
725
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
726
726
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
727
727
|
return null;
|
|
728
728
|
}
|
|
729
729
|
if (process.env.NODE_ENV !== 'production') {
|
|
730
730
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
731
731
|
}
|
|
732
|
-
const config = typeCheckConfig$
|
|
732
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
733
733
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
734
734
|
return null;
|
|
735
735
|
}
|
|
736
736
|
return config;
|
|
737
737
|
}
|
|
738
|
-
function adapterFragment$
|
|
739
|
-
createResourceParams$
|
|
740
|
-
return select$
|
|
738
|
+
function adapterFragment$4(luvio, config) {
|
|
739
|
+
createResourceParams$5(config);
|
|
740
|
+
return select$d();
|
|
741
741
|
}
|
|
742
|
-
function onFetchResponseSuccess$
|
|
743
|
-
const snapshot = ingestSuccess$
|
|
742
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
743
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
744
744
|
config,
|
|
745
|
-
resolve: () => buildNetworkSnapshot$
|
|
745
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
746
746
|
});
|
|
747
747
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
748
748
|
}
|
|
749
|
-
function onFetchResponseError$
|
|
750
|
-
const snapshot = ingestError$
|
|
749
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
750
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
751
751
|
config,
|
|
752
|
-
resolve: () => buildNetworkSnapshot$
|
|
752
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
753
753
|
});
|
|
754
754
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
755
755
|
}
|
|
756
|
-
function buildNetworkSnapshot$
|
|
757
|
-
const resourceParams = createResourceParams$
|
|
758
|
-
const request = createResourceRequest$
|
|
756
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
757
|
+
const resourceParams = createResourceParams$5(config);
|
|
758
|
+
const request = createResourceRequest$5(resourceParams);
|
|
759
759
|
return luvio.dispatchResourceRequest(request, options)
|
|
760
760
|
.then((response) => {
|
|
761
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
761
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
762
762
|
const cache = new StoreKeyMap();
|
|
763
|
-
getResponseCacheKeys$
|
|
763
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
764
764
|
return cache;
|
|
765
765
|
});
|
|
766
766
|
}, (response) => {
|
|
767
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
767
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
|
-
function buildNetworkSnapshotCachePolicy$
|
|
771
|
-
return buildNetworkSnapshotCachePolicy$
|
|
770
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
771
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, 'get', false);
|
|
772
772
|
}
|
|
773
|
-
function buildCachedSnapshotCachePolicy$
|
|
773
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
774
774
|
const { luvio, config } = context;
|
|
775
775
|
const selector = {
|
|
776
|
-
recordId: keyBuilder$
|
|
777
|
-
node: adapterFragment$
|
|
776
|
+
recordId: keyBuilder$9(luvio, config),
|
|
777
|
+
node: adapterFragment$4(luvio, config),
|
|
778
778
|
variables: {},
|
|
779
779
|
};
|
|
780
780
|
const cacheSnapshot = storeLookup(selector, {
|
|
781
781
|
config,
|
|
782
|
-
resolve: () => buildNetworkSnapshot$
|
|
782
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
783
783
|
});
|
|
784
784
|
return cacheSnapshot;
|
|
785
785
|
}
|
|
786
786
|
const getDataShapeAdapterFactory = (luvio) => function externalServices__getDataShape(untrustedConfig, requestContext) {
|
|
787
|
-
const config = validateAdapterConfig$
|
|
787
|
+
const config = validateAdapterConfig$5(untrustedConfig, getDataShape_ConfigPropertyNames);
|
|
788
788
|
// Invalid or incomplete config
|
|
789
789
|
if (config === null) {
|
|
790
790
|
return null;
|
|
791
791
|
}
|
|
792
792
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
793
|
-
buildCachedSnapshotCachePolicy$
|
|
793
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
794
794
|
};
|
|
795
795
|
|
|
796
|
-
function validate$
|
|
796
|
+
function validate$b(obj, path = 'OpenApiSpecInferenceParameterRepresentation') {
|
|
797
797
|
const v_error = (() => {
|
|
798
798
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
799
799
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -805,6 +805,13 @@ function validate$9(obj, path = 'OpenApiSpecInferenceParameterRepresentation') {
|
|
|
805
805
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
+
if (obj.example !== undefined) {
|
|
809
|
+
const obj_example = obj.example;
|
|
810
|
+
const path_example = path + '.example';
|
|
811
|
+
if (typeof obj_example !== 'string') {
|
|
812
|
+
return new TypeError('Expected "string" but received "' + typeof obj_example + '" (at "' + path_example + '")');
|
|
813
|
+
}
|
|
814
|
+
}
|
|
808
815
|
const obj_location = obj.location;
|
|
809
816
|
const path_location = path + '.location';
|
|
810
817
|
if (typeof obj_location !== 'string') {
|
|
@@ -829,6 +836,311 @@ function validate$9(obj, path = 'OpenApiSpecInferenceParameterRepresentation') {
|
|
|
829
836
|
return v_error === undefined ? null : v_error;
|
|
830
837
|
}
|
|
831
838
|
|
|
839
|
+
function validate$a(obj, path = 'TestConnectionInputRepresentation') {
|
|
840
|
+
const v_error = (() => {
|
|
841
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
842
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
843
|
+
}
|
|
844
|
+
const obj_mediaType = obj.mediaType;
|
|
845
|
+
const path_mediaType = path + '.mediaType';
|
|
846
|
+
if (typeof obj_mediaType !== 'string') {
|
|
847
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mediaType + '" (at "' + path_mediaType + '")');
|
|
848
|
+
}
|
|
849
|
+
const obj_method = obj.method;
|
|
850
|
+
const path_method = path + '.method';
|
|
851
|
+
if (typeof obj_method !== 'string') {
|
|
852
|
+
return new TypeError('Expected "string" but received "' + typeof obj_method + '" (at "' + path_method + '")');
|
|
853
|
+
}
|
|
854
|
+
const obj_namedCredentialName = obj.namedCredentialName;
|
|
855
|
+
const path_namedCredentialName = path + '.namedCredentialName';
|
|
856
|
+
if (typeof obj_namedCredentialName !== 'string') {
|
|
857
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namedCredentialName + '" (at "' + path_namedCredentialName + '")');
|
|
858
|
+
}
|
|
859
|
+
const obj_parameters = obj.parameters;
|
|
860
|
+
const path_parameters = path + '.parameters';
|
|
861
|
+
if (!ArrayIsArray(obj_parameters)) {
|
|
862
|
+
return new TypeError('Expected "array" but received "' + typeof obj_parameters + '" (at "' + path_parameters + '")');
|
|
863
|
+
}
|
|
864
|
+
for (let i = 0; i < obj_parameters.length; i++) {
|
|
865
|
+
const obj_parameters_item = obj_parameters[i];
|
|
866
|
+
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
867
|
+
const referencepath_parameters_itemValidationError = validate$b(obj_parameters_item, path_parameters_item);
|
|
868
|
+
if (referencepath_parameters_itemValidationError !== null) {
|
|
869
|
+
let message = 'Object doesn\'t match OpenApiSpecInferenceParameterRepresentation (at "' + path_parameters_item + '")\n';
|
|
870
|
+
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
871
|
+
return new TypeError(message);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
const obj_path = obj.path;
|
|
875
|
+
const path_path = path + '.path';
|
|
876
|
+
if (typeof obj_path !== 'string') {
|
|
877
|
+
return new TypeError('Expected "string" but received "' + typeof obj_path + '" (at "' + path_path + '")');
|
|
878
|
+
}
|
|
879
|
+
if (obj.requestBody !== undefined) {
|
|
880
|
+
const obj_requestBody = obj.requestBody;
|
|
881
|
+
const path_requestBody = path + '.requestBody';
|
|
882
|
+
if (typeof obj_requestBody !== 'object' || ArrayIsArray(obj_requestBody) || obj_requestBody === null) {
|
|
883
|
+
return new TypeError('Expected "object" but received "' + typeof obj_requestBody + '" (at "' + path_requestBody + '")');
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
})();
|
|
887
|
+
return v_error === undefined ? null : v_error;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
const TTL$1 = 100;
|
|
891
|
+
const VERSION$7 = "fe81d2c792e1804b5b6aff705f3a6b0a";
|
|
892
|
+
function validate$9(obj, path = 'TestConnectionOutputRepresentation') {
|
|
893
|
+
const v_error = (() => {
|
|
894
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
895
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
896
|
+
}
|
|
897
|
+
if (obj.dataShape !== undefined) {
|
|
898
|
+
const obj_dataShape = obj.dataShape;
|
|
899
|
+
const path_dataShape = path + '.dataShape';
|
|
900
|
+
let obj_dataShape_union0 = null;
|
|
901
|
+
const obj_dataShape_union0_error = (() => {
|
|
902
|
+
const referencepath_dataShapeValidationError = validate$c(obj_dataShape, path_dataShape);
|
|
903
|
+
if (referencepath_dataShapeValidationError !== null) {
|
|
904
|
+
let message = 'Object doesn\'t match DataShapeInferenceOutputRepresentation (at "' + path_dataShape + '")\n';
|
|
905
|
+
message += referencepath_dataShapeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
906
|
+
return new TypeError(message);
|
|
907
|
+
}
|
|
908
|
+
})();
|
|
909
|
+
if (obj_dataShape_union0_error != null) {
|
|
910
|
+
obj_dataShape_union0 = obj_dataShape_union0_error.message;
|
|
911
|
+
}
|
|
912
|
+
let obj_dataShape_union1 = null;
|
|
913
|
+
const obj_dataShape_union1_error = (() => {
|
|
914
|
+
if (obj_dataShape !== null) {
|
|
915
|
+
return new TypeError('Expected "null" but received "' + typeof obj_dataShape + '" (at "' + path_dataShape + '")');
|
|
916
|
+
}
|
|
917
|
+
})();
|
|
918
|
+
if (obj_dataShape_union1_error != null) {
|
|
919
|
+
obj_dataShape_union1 = obj_dataShape_union1_error.message;
|
|
920
|
+
}
|
|
921
|
+
if (obj_dataShape_union0 && obj_dataShape_union1) {
|
|
922
|
+
let message = 'Object doesn\'t match union (at "' + path_dataShape + '")';
|
|
923
|
+
message += '\n' + obj_dataShape_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
924
|
+
message += '\n' + obj_dataShape_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
925
|
+
return new TypeError(message);
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
const obj_errorMessages = obj.errorMessages;
|
|
929
|
+
const path_errorMessages = path + '.errorMessages';
|
|
930
|
+
if (!ArrayIsArray(obj_errorMessages)) {
|
|
931
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errorMessages + '" (at "' + path_errorMessages + '")');
|
|
932
|
+
}
|
|
933
|
+
for (let i = 0; i < obj_errorMessages.length; i++) {
|
|
934
|
+
const obj_errorMessages_item = obj_errorMessages[i];
|
|
935
|
+
const path_errorMessages_item = path_errorMessages + '[' + i + ']';
|
|
936
|
+
const referencepath_errorMessages_itemValidationError = validate$d(obj_errorMessages_item, path_errorMessages_item);
|
|
937
|
+
if (referencepath_errorMessages_itemValidationError !== null) {
|
|
938
|
+
let message = 'Object doesn\'t match InferenceErrorMessageRepresentation (at "' + path_errorMessages_item + '")\n';
|
|
939
|
+
message += referencepath_errorMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
940
|
+
return new TypeError(message);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
if (obj.rawData !== undefined) {
|
|
944
|
+
const obj_rawData = obj.rawData;
|
|
945
|
+
const path_rawData = path + '.rawData';
|
|
946
|
+
if (typeof obj_rawData !== 'string') {
|
|
947
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rawData + '" (at "' + path_rawData + '")');
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
if (obj.statusCode !== undefined) {
|
|
951
|
+
const obj_statusCode = obj.statusCode;
|
|
952
|
+
const path_statusCode = path + '.statusCode';
|
|
953
|
+
if (typeof obj_statusCode !== 'string') {
|
|
954
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
})();
|
|
958
|
+
return v_error === undefined ? null : v_error;
|
|
959
|
+
}
|
|
960
|
+
const RepresentationType$3 = 'TestConnectionOutputRepresentation';
|
|
961
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
962
|
+
return input;
|
|
963
|
+
}
|
|
964
|
+
const select$c = function TestConnectionOutputRepresentationSelect() {
|
|
965
|
+
return {
|
|
966
|
+
kind: 'Fragment',
|
|
967
|
+
version: VERSION$7,
|
|
968
|
+
private: [],
|
|
969
|
+
opaque: true
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
function equals$7(existing, incoming) {
|
|
973
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
974
|
+
return false;
|
|
975
|
+
}
|
|
976
|
+
return true;
|
|
977
|
+
}
|
|
978
|
+
const ingest$3 = function TestConnectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
979
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
980
|
+
const validateError = validate$9(input);
|
|
981
|
+
if (validateError !== null) {
|
|
982
|
+
throw validateError;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
const key = path.fullPath;
|
|
986
|
+
const ttlToUse = TTL$1;
|
|
987
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "external-services", VERSION$7, RepresentationType$3, equals$7);
|
|
988
|
+
return createLink(key);
|
|
989
|
+
};
|
|
990
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
991
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
992
|
+
const rootKey = fullPathFactory();
|
|
993
|
+
rootKeySet.set(rootKey, {
|
|
994
|
+
namespace: keyPrefix,
|
|
995
|
+
representationName: RepresentationType$3,
|
|
996
|
+
mergeable: false
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
function select$b(luvio, params) {
|
|
1001
|
+
return select$c();
|
|
1002
|
+
}
|
|
1003
|
+
function keyBuilder$8(luvio, params) {
|
|
1004
|
+
return keyPrefix + '::TestConnectionOutputRepresentation:(' + 'version:' + params.urlParams.version + ',' + 'configuration.mediaType:' + params.body.configuration.mediaType + '::' + 'configuration.method:' + params.body.configuration.method + '::' + 'configuration.namedCredentialName:' + params.body.configuration.namedCredentialName + '::' + '[' + params.body.configuration.parameters.map(element => (element.description === undefined ? 'configuration.parameters.description' : 'configuration.parameters.description:' + element.description) + '::' + (element.example === undefined ? 'configuration.parameters.example' : 'configuration.parameters.example:' + element.example) + '::' + 'configuration.parameters.location:' + element.location + '::' + 'configuration.parameters.name:' + element.name + '::' + 'configuration.parameters.required:' + element.required + '::' + 'configuration.parameters.type:' + element.type).join(',') + ']' + '::' + 'configuration.path:' + params.body.configuration.path + '::' + stableJSONStringify(params.body.configuration.requestBody) + ')';
|
|
1005
|
+
}
|
|
1006
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1007
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
1008
|
+
}
|
|
1009
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
1010
|
+
const { body } = response;
|
|
1011
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
1012
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
1013
|
+
const snapshot = luvio.storeLookup({
|
|
1014
|
+
recordId: key,
|
|
1015
|
+
node: select$b(),
|
|
1016
|
+
variables: {},
|
|
1017
|
+
}, snapshotRefresh);
|
|
1018
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1019
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1020
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
deepFreeze(snapshot.data);
|
|
1024
|
+
return snapshot;
|
|
1025
|
+
}
|
|
1026
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
1027
|
+
const key = keyBuilder$8(luvio, params);
|
|
1028
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1029
|
+
const storeMetadataParams = {
|
|
1030
|
+
ttl: TTL$1,
|
|
1031
|
+
namespace: keyPrefix,
|
|
1032
|
+
version: VERSION$7,
|
|
1033
|
+
representationName: RepresentationType$3
|
|
1034
|
+
};
|
|
1035
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1036
|
+
return errorSnapshot;
|
|
1037
|
+
}
|
|
1038
|
+
function createResourceRequest$4(config) {
|
|
1039
|
+
const headers = {};
|
|
1040
|
+
return {
|
|
1041
|
+
baseUri: '/services/data/v60.0',
|
|
1042
|
+
basePath: '/externalservices/inference/datashape/' + config.urlParams.version + '/sendrequest',
|
|
1043
|
+
method: 'post',
|
|
1044
|
+
body: config.body,
|
|
1045
|
+
urlParams: config.urlParams,
|
|
1046
|
+
queryParams: {},
|
|
1047
|
+
headers,
|
|
1048
|
+
priority: 'normal',
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
const adapterName$4 = 'sendTestConnectionRequest';
|
|
1053
|
+
const sendTestConnectionRequest_ConfigPropertyMetadata = [
|
|
1054
|
+
generateParamConfigMetadata('version', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1055
|
+
generateParamConfigMetadata('configuration', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1056
|
+
];
|
|
1057
|
+
const sendTestConnectionRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, sendTestConnectionRequest_ConfigPropertyMetadata);
|
|
1058
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(sendTestConnectionRequest_ConfigPropertyMetadata);
|
|
1059
|
+
function keyBuilder$7(luvio, config) {
|
|
1060
|
+
const resourceParams = createResourceParams$4(config);
|
|
1061
|
+
return keyBuilder$8(luvio, resourceParams);
|
|
1062
|
+
}
|
|
1063
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1064
|
+
const config = {};
|
|
1065
|
+
typeCheckConfig$7(untrustedConfig, config, sendTestConnectionRequest_ConfigPropertyMetadata);
|
|
1066
|
+
const untrustedConfig_configuration = untrustedConfig.configuration;
|
|
1067
|
+
const referenceTestConnectionInputRepresentationValidationError = validate$a(untrustedConfig_configuration);
|
|
1068
|
+
if (referenceTestConnectionInputRepresentationValidationError === null) {
|
|
1069
|
+
config.configuration = untrustedConfig_configuration;
|
|
1070
|
+
}
|
|
1071
|
+
return config;
|
|
1072
|
+
}
|
|
1073
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1074
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1075
|
+
return null;
|
|
1076
|
+
}
|
|
1077
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1078
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1079
|
+
}
|
|
1080
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1081
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1082
|
+
return null;
|
|
1083
|
+
}
|
|
1084
|
+
return config;
|
|
1085
|
+
}
|
|
1086
|
+
function adapterFragment$3(luvio, config) {
|
|
1087
|
+
createResourceParams$4(config);
|
|
1088
|
+
return select$b();
|
|
1089
|
+
}
|
|
1090
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
1091
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
1092
|
+
config,
|
|
1093
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1094
|
+
});
|
|
1095
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1096
|
+
}
|
|
1097
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
1098
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
1099
|
+
config,
|
|
1100
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1101
|
+
});
|
|
1102
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1103
|
+
}
|
|
1104
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1105
|
+
const resourceParams = createResourceParams$4(config);
|
|
1106
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1107
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1108
|
+
.then((response) => {
|
|
1109
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
1110
|
+
const cache = new StoreKeyMap();
|
|
1111
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1112
|
+
return cache;
|
|
1113
|
+
});
|
|
1114
|
+
}, (response) => {
|
|
1115
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1119
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
|
|
1120
|
+
}
|
|
1121
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1122
|
+
const { luvio, config } = context;
|
|
1123
|
+
const selector = {
|
|
1124
|
+
recordId: keyBuilder$7(luvio, config),
|
|
1125
|
+
node: adapterFragment$3(luvio, config),
|
|
1126
|
+
variables: {},
|
|
1127
|
+
};
|
|
1128
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1129
|
+
config,
|
|
1130
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1131
|
+
});
|
|
1132
|
+
return cacheSnapshot;
|
|
1133
|
+
}
|
|
1134
|
+
const sendTestConnectionRequestAdapterFactory = (luvio) => function externalServices__sendTestConnectionRequest(untrustedConfig, requestContext) {
|
|
1135
|
+
const config = validateAdapterConfig$4(untrustedConfig, sendTestConnectionRequest_ConfigPropertyNames);
|
|
1136
|
+
// Invalid or incomplete config
|
|
1137
|
+
if (config === null) {
|
|
1138
|
+
return null;
|
|
1139
|
+
}
|
|
1140
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1141
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
1142
|
+
};
|
|
1143
|
+
|
|
832
1144
|
function validate$8(obj, path = 'OpenApiSpecInferenceInputRepresentation') {
|
|
833
1145
|
const v_error = (() => {
|
|
834
1146
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -874,7 +1186,7 @@ function validate$8(obj, path = 'OpenApiSpecInferenceInputRepresentation') {
|
|
|
874
1186
|
for (let i = 0; i < obj_parameters.length; i++) {
|
|
875
1187
|
const obj_parameters_item = obj_parameters[i];
|
|
876
1188
|
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
877
|
-
const referencepath_parameters_itemValidationError = validate$
|
|
1189
|
+
const referencepath_parameters_itemValidationError = validate$b(obj_parameters_item, path_parameters_item);
|
|
878
1190
|
if (referencepath_parameters_itemValidationError !== null) {
|
|
879
1191
|
let message = 'Object doesn\'t match OpenApiSpecInferenceParameterRepresentation (at "' + path_parameters_item + '")\n';
|
|
880
1192
|
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -917,7 +1229,7 @@ function validate$7(obj, path = 'OpenApiSpecInferenceOutputRepresentation') {
|
|
|
917
1229
|
for (let i = 0; i < obj_errorMessages.length; i++) {
|
|
918
1230
|
const obj_errorMessages_item = obj_errorMessages[i];
|
|
919
1231
|
const path_errorMessages_item = path_errorMessages + '[' + i + ']';
|
|
920
|
-
const referencepath_errorMessages_itemValidationError = validate$
|
|
1232
|
+
const referencepath_errorMessages_itemValidationError = validate$d(obj_errorMessages_item, path_errorMessages_item);
|
|
921
1233
|
if (referencepath_errorMessages_itemValidationError !== null) {
|
|
922
1234
|
let message = 'Object doesn\'t match InferenceErrorMessageRepresentation (at "' + path_errorMessages_item + '")\n';
|
|
923
1235
|
message += referencepath_errorMessages_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -942,7 +1254,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
942
1254
|
return input;
|
|
943
1255
|
}
|
|
944
1256
|
const select$a = function OpenApiSpecInferenceOutputRepresentationSelect() {
|
|
945
|
-
const { selections: InferenceErrorMessageRepresentation__selections, opaque: InferenceErrorMessageRepresentation__opaque, } = select$
|
|
1257
|
+
const { selections: InferenceErrorMessageRepresentation__selections, opaque: InferenceErrorMessageRepresentation__opaque, } = select$f();
|
|
946
1258
|
return {
|
|
947
1259
|
kind: 'Fragment',
|
|
948
1260
|
version: VERSION$6,
|
|
@@ -979,7 +1291,7 @@ function equals$6(existing, incoming) {
|
|
|
979
1291
|
const existing_errorMessages = existing.errorMessages;
|
|
980
1292
|
const incoming_errorMessages = incoming.errorMessages;
|
|
981
1293
|
const equals_errorMessages_items = equalsArray(existing_errorMessages, incoming_errorMessages, (existing_errorMessages_item, incoming_errorMessages_item) => {
|
|
982
|
-
if (!(equals$
|
|
1294
|
+
if (!(equals$9(existing_errorMessages_item, incoming_errorMessages_item))) {
|
|
983
1295
|
return false;
|
|
984
1296
|
}
|
|
985
1297
|
});
|
|
@@ -1014,7 +1326,7 @@ function select$9(luvio, params) {
|
|
|
1014
1326
|
return select$a();
|
|
1015
1327
|
}
|
|
1016
1328
|
function keyBuilder$6(luvio, params) {
|
|
1017
|
-
return keyPrefix + '::OpenApiSpecInferenceOutputRepresentation:(' + 'version:' + params.urlParams.version + ',' + 'input.description:' + params.body.input.description + '::' + (params.body.input.externalServiceId === undefined ? 'input.externalServiceId' : 'input.externalServiceId:' + params.body.input.externalServiceId) + '::' + 'input.method:' + params.body.input.method + '::' + 'input.name:' + params.body.input.name + '::' + 'input.operationDescription:' + params.body.input.operationDescription + '::' + 'input.operationName:' + params.body.input.operationName + '::' + '[' + params.body.input.parameters.map(element => (element.description === undefined ? 'input.parameters.description' : 'input.parameters.description:' + element.description) + '::' + 'input.parameters.location:' + element.location + '::' + 'input.parameters.name:' + element.name + '::' + 'input.parameters.required:' + element.required + '::' + 'input.parameters.type:' + element.type).join(',') + ']' + '::' + 'input.path:' + params.body.input.path + '::' + stableJSONStringify(params.body.input.requestBody) + '::' + stableJSONStringify(params.body.input.responseBody) + ')';
|
|
1329
|
+
return keyPrefix + '::OpenApiSpecInferenceOutputRepresentation:(' + 'version:' + params.urlParams.version + ',' + 'input.description:' + params.body.input.description + '::' + (params.body.input.externalServiceId === undefined ? 'input.externalServiceId' : 'input.externalServiceId:' + params.body.input.externalServiceId) + '::' + 'input.method:' + params.body.input.method + '::' + 'input.name:' + params.body.input.name + '::' + 'input.operationDescription:' + params.body.input.operationDescription + '::' + 'input.operationName:' + params.body.input.operationName + '::' + '[' + params.body.input.parameters.map(element => (element.description === undefined ? 'input.parameters.description' : 'input.parameters.description:' + element.description) + '::' + (element.example === undefined ? 'input.parameters.example' : 'input.parameters.example:' + element.example) + '::' + 'input.parameters.location:' + element.location + '::' + 'input.parameters.name:' + element.name + '::' + 'input.parameters.required:' + element.required + '::' + 'input.parameters.type:' + element.type).join(',') + ']' + '::' + 'input.path:' + params.body.input.path + '::' + stableJSONStringify(params.body.input.requestBody) + '::' + stableJSONStringify(params.body.input.responseBody) + ')';
|
|
1018
1330
|
}
|
|
1019
1331
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1020
1332
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
@@ -1068,14 +1380,14 @@ const getOpenApiSpec_ConfigPropertyMetadata = [
|
|
|
1068
1380
|
generateParamConfigMetadata('input', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1069
1381
|
];
|
|
1070
1382
|
const getOpenApiSpec_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getOpenApiSpec_ConfigPropertyMetadata);
|
|
1071
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
1383
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getOpenApiSpec_ConfigPropertyMetadata);
|
|
1072
1384
|
function keyBuilder$5(luvio, config) {
|
|
1073
1385
|
const resourceParams = createResourceParams$3(config);
|
|
1074
1386
|
return keyBuilder$6(luvio, resourceParams);
|
|
1075
1387
|
}
|
|
1076
1388
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1077
1389
|
const config = {};
|
|
1078
|
-
typeCheckConfig$
|
|
1390
|
+
typeCheckConfig$7(untrustedConfig, config, getOpenApiSpec_ConfigPropertyMetadata);
|
|
1079
1391
|
const untrustedConfig_input = untrustedConfig.input;
|
|
1080
1392
|
const referenceOpenApiSpecInferenceInputRepresentationValidationError = validate$8(untrustedConfig_input);
|
|
1081
1393
|
if (referenceOpenApiSpecInferenceInputRepresentationValidationError === null) {
|
|
@@ -1129,7 +1441,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1129
1441
|
});
|
|
1130
1442
|
}
|
|
1131
1443
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1132
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1444
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
|
|
1133
1445
|
}
|
|
1134
1446
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1135
1447
|
const { luvio, config } = context;
|
|
@@ -1705,10 +2017,10 @@ const validateSchema_ConfigPropertyMetadata = [
|
|
|
1705
2017
|
generateParamConfigMetadata('schema', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1706
2018
|
];
|
|
1707
2019
|
const validateSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, validateSchema_ConfigPropertyMetadata);
|
|
1708
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
2020
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(validateSchema_ConfigPropertyMetadata);
|
|
1709
2021
|
function typeCheckConfig$2(untrustedConfig) {
|
|
1710
2022
|
const config = {};
|
|
1711
|
-
typeCheckConfig$
|
|
2023
|
+
typeCheckConfig$7(untrustedConfig, config, validateSchema_ConfigPropertyMetadata);
|
|
1712
2024
|
const untrustedConfig_schema = untrustedConfig.schema;
|
|
1713
2025
|
const referenceSchemaValidationInputRepresentationValidationError = validate$6(untrustedConfig_schema);
|
|
1714
2026
|
if (referenceSchemaValidationInputRepresentationValidationError === null) {
|
|
@@ -2212,7 +2524,7 @@ function createResourceRequest$1(config) {
|
|
|
2212
2524
|
const adapterName$1 = 'getStatistics';
|
|
2213
2525
|
const getStatistics_ConfigPropertyMetadata = [];
|
|
2214
2526
|
const getStatistics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getStatistics_ConfigPropertyMetadata);
|
|
2215
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
2527
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(getStatistics_ConfigPropertyMetadata);
|
|
2216
2528
|
function keyBuilder$2(luvio, config) {
|
|
2217
2529
|
createResourceParams$1(config);
|
|
2218
2530
|
return keyBuilder$3();
|
|
@@ -2267,7 +2579,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
2267
2579
|
});
|
|
2268
2580
|
}
|
|
2269
2581
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2270
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2582
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
2271
2583
|
}
|
|
2272
2584
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2273
2585
|
const { luvio, config } = context;
|
|
@@ -2343,14 +2655,14 @@ const getStatisticsForService_ConfigPropertyMetadata = [
|
|
|
2343
2655
|
generateParamConfigMetadata('registrationName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2344
2656
|
];
|
|
2345
2657
|
const getStatisticsForService_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getStatisticsForService_ConfigPropertyMetadata);
|
|
2346
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2658
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$7(getStatisticsForService_ConfigPropertyMetadata);
|
|
2347
2659
|
function keyBuilder(luvio, config) {
|
|
2348
2660
|
const resourceParams = createResourceParams(config);
|
|
2349
2661
|
return keyBuilder$1(luvio, resourceParams);
|
|
2350
2662
|
}
|
|
2351
2663
|
function typeCheckConfig(untrustedConfig) {
|
|
2352
2664
|
const config = {};
|
|
2353
|
-
typeCheckConfig$
|
|
2665
|
+
typeCheckConfig$7(untrustedConfig, config, getStatisticsForService_ConfigPropertyMetadata);
|
|
2354
2666
|
return config;
|
|
2355
2667
|
}
|
|
2356
2668
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2399,7 +2711,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2399
2711
|
});
|
|
2400
2712
|
}
|
|
2401
2713
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2402
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2714
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
2403
2715
|
}
|
|
2404
2716
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2405
2717
|
const { luvio, config } = context;
|
|
@@ -2424,4 +2736,4 @@ const getStatisticsForServiceAdapterFactory = (luvio) => function externalServic
|
|
|
2424
2736
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
2425
2737
|
};
|
|
2426
2738
|
|
|
2427
|
-
export { getActionDetailsForServiceAdapterFactory, getDataShapeAdapterFactory, getOpenApiSpecAdapterFactory, getStatisticsAdapterFactory, getStatisticsForServiceAdapterFactory, validateSchemaAdapterFactory };
|
|
2739
|
+
export { getActionDetailsForServiceAdapterFactory, getDataShapeAdapterFactory, getOpenApiSpecAdapterFactory, getStatisticsAdapterFactory, getStatisticsForServiceAdapterFactory, sendTestConnectionRequestAdapterFactory, validateSchemaAdapterFactory };
|