@salesforce/lds-adapters-cdp-document-processing 1.357.0 → 1.359.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/cdp-document-processing.js +633 -267
- package/dist/es/es2018/types/src/generated/adapters/generateIdpConfigurationSchema.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/updateIdpConfiguration.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/patchSsotDocumentProcessingConfigurationsByIdOrApiName.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotDocumentProcessingActionsGenerateSchema.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/types/IdpConfigurationDetailsRepresentation.d.ts +36 -9
- package/dist/es/es2018/types/src/generated/types/IdpConfigurationPatchInputRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/IdpGenerateSchemaFileInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/IdpGenerateSchemaInputRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/IdpGeneratedSchemaRepresentation.d.ts +41 -0
- package/package.json +3 -3
- package/sfdc/index.js +685 -313
- package/src/raml/api.raml +102 -2
- package/src/raml/luvio.raml +29 -3
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$8, StoreKeyMap, createResourceParams as createResourceParams$8 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -92,8 +92,8 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const TTL$
|
|
96
|
-
function validate$
|
|
95
|
+
const TTL$5 = 500;
|
|
96
|
+
function validate$c(obj, path = 'CdpPaginatedResponseBaseRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -158,14 +158,14 @@ function validate$a(obj, path = 'CdpPaginatedResponseBaseRepresentation') {
|
|
|
158
158
|
})();
|
|
159
159
|
return v_error === undefined ? null : v_error;
|
|
160
160
|
}
|
|
161
|
-
function equals$
|
|
161
|
+
function equals$9(existing, incoming) {
|
|
162
162
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
return true;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
function validate$
|
|
168
|
+
function validate$b(obj, path = 'CdpAssetBaseRepresentation') {
|
|
169
169
|
const v_error = (() => {
|
|
170
170
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
171
171
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -213,7 +213,7 @@ function validate$9(obj, path = 'CdpAssetBaseRepresentation') {
|
|
|
213
213
|
})();
|
|
214
214
|
return v_error === undefined ? null : v_error;
|
|
215
215
|
}
|
|
216
|
-
function equals$
|
|
216
|
+
function equals$8(existing, incoming) {
|
|
217
217
|
const existing_createdDate = existing.createdDate;
|
|
218
218
|
const incoming_createdDate = incoming.createdDate;
|
|
219
219
|
if (!(existing_createdDate === incoming_createdDate)) {
|
|
@@ -257,8 +257,8 @@ function equals$7(existing, incoming) {
|
|
|
257
257
|
return true;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
function validate$
|
|
261
|
-
const validateCdpAssetBaseRepresentation_validateError = validate$
|
|
260
|
+
function validate$a(obj, path = 'IdpConfigurationBaseRepresentation') {
|
|
261
|
+
const validateCdpAssetBaseRepresentation_validateError = validate$b(obj, path);
|
|
262
262
|
if (validateCdpAssetBaseRepresentation_validateError !== null) {
|
|
263
263
|
return validateCdpAssetBaseRepresentation_validateError;
|
|
264
264
|
}
|
|
@@ -325,8 +325,8 @@ function validate$8(obj, path = 'IdpConfigurationBaseRepresentation') {
|
|
|
325
325
|
})();
|
|
326
326
|
return v_error === undefined ? null : v_error;
|
|
327
327
|
}
|
|
328
|
-
function equals$
|
|
329
|
-
if (equals$
|
|
328
|
+
function equals$7(existing, incoming) {
|
|
329
|
+
if (equals$8(existing, incoming) === false) {
|
|
330
330
|
return false;
|
|
331
331
|
}
|
|
332
332
|
const existing_activationStatus = existing.activationStatus;
|
|
@@ -367,8 +367,8 @@ function equals$6(existing, incoming) {
|
|
|
367
367
|
return true;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
function validate$
|
|
371
|
-
const validateIdpConfigurationBaseRepresentation_validateError = validate$
|
|
370
|
+
function validate$9(obj, path = 'IdpConfigurationRepresentation') {
|
|
371
|
+
const validateIdpConfigurationBaseRepresentation_validateError = validate$a(obj, path);
|
|
372
372
|
if (validateIdpConfigurationBaseRepresentation_validateError !== null) {
|
|
373
373
|
return validateIdpConfigurationBaseRepresentation_validateError;
|
|
374
374
|
}
|
|
@@ -379,17 +379,17 @@ function validate$7(obj, path = 'IdpConfigurationRepresentation') {
|
|
|
379
379
|
})();
|
|
380
380
|
return v_error === undefined ? null : v_error;
|
|
381
381
|
}
|
|
382
|
-
function equals$
|
|
383
|
-
if (equals$
|
|
382
|
+
function equals$6(existing, incoming) {
|
|
383
|
+
if (equals$7(existing, incoming) === false) {
|
|
384
384
|
return false;
|
|
385
385
|
}
|
|
386
386
|
return true;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
const TTL$
|
|
390
|
-
const VERSION$
|
|
391
|
-
function validate$
|
|
392
|
-
const validateCdpPaginatedResponseBaseRepresentation_validateError = validate$
|
|
389
|
+
const TTL$4 = 500;
|
|
390
|
+
const VERSION$5 = "def7e7ee61e636c86d017097ba5ad643";
|
|
391
|
+
function validate$8(obj, path = 'IdpConfigurationsCollectionRepresentation') {
|
|
392
|
+
const validateCdpPaginatedResponseBaseRepresentation_validateError = validate$c(obj, path);
|
|
393
393
|
if (validateCdpPaginatedResponseBaseRepresentation_validateError !== null) {
|
|
394
394
|
return validateCdpPaginatedResponseBaseRepresentation_validateError;
|
|
395
395
|
}
|
|
@@ -405,7 +405,7 @@ function validate$6(obj, path = 'IdpConfigurationsCollectionRepresentation') {
|
|
|
405
405
|
for (let i = 0; i < obj_configurations.length; i++) {
|
|
406
406
|
const obj_configurations_item = obj_configurations[i];
|
|
407
407
|
const path_configurations_item = path_configurations + '[' + i + ']';
|
|
408
|
-
const referencepath_configurations_itemValidationError = validate$
|
|
408
|
+
const referencepath_configurations_itemValidationError = validate$9(obj_configurations_item, path_configurations_item);
|
|
409
409
|
if (referencepath_configurations_itemValidationError !== null) {
|
|
410
410
|
let message = 'Object doesn\'t match IdpConfigurationRepresentation (at "' + path_configurations_item + '")\n';
|
|
411
411
|
message += referencepath_configurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -415,26 +415,26 @@ function validate$6(obj, path = 'IdpConfigurationsCollectionRepresentation') {
|
|
|
415
415
|
})();
|
|
416
416
|
return v_error === undefined ? null : v_error;
|
|
417
417
|
}
|
|
418
|
-
const RepresentationType$
|
|
419
|
-
function normalize$
|
|
418
|
+
const RepresentationType$5 = 'IdpConfigurationsCollectionRepresentation';
|
|
419
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
420
420
|
return input;
|
|
421
421
|
}
|
|
422
|
-
const select$
|
|
422
|
+
const select$c = function IdpConfigurationsCollectionRepresentationSelect() {
|
|
423
423
|
return {
|
|
424
424
|
kind: 'Fragment',
|
|
425
|
-
version: VERSION$
|
|
425
|
+
version: VERSION$5,
|
|
426
426
|
private: [],
|
|
427
427
|
opaque: true
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
|
-
function equals$
|
|
431
|
-
if (equals$
|
|
430
|
+
function equals$5(existing, incoming) {
|
|
431
|
+
if (equals$9(existing, incoming) === false) {
|
|
432
432
|
return false;
|
|
433
433
|
}
|
|
434
434
|
const existing_configurations = existing.configurations;
|
|
435
435
|
const incoming_configurations = incoming.configurations;
|
|
436
436
|
const equals_configurations_items = equalsArray(existing_configurations, incoming_configurations, (existing_configurations_item, incoming_configurations_item) => {
|
|
437
|
-
if (!(equals$
|
|
437
|
+
if (!(equals$6(existing_configurations_item, incoming_configurations_item))) {
|
|
438
438
|
return false;
|
|
439
439
|
}
|
|
440
440
|
});
|
|
@@ -443,44 +443,44 @@ function equals$4(existing, incoming) {
|
|
|
443
443
|
}
|
|
444
444
|
return true;
|
|
445
445
|
}
|
|
446
|
-
const ingest$
|
|
446
|
+
const ingest$5 = function IdpConfigurationsCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
447
447
|
if (process.env.NODE_ENV !== 'production') {
|
|
448
|
-
const validateError = validate$
|
|
448
|
+
const validateError = validate$8(input);
|
|
449
449
|
if (validateError !== null) {
|
|
450
450
|
throw validateError;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
const key = path.fullPath;
|
|
454
|
-
const ttlToUse = TTL$
|
|
455
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
454
|
+
const ttlToUse = TTL$5;
|
|
455
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "document-processing", VERSION$5, RepresentationType$5, equals$5);
|
|
456
456
|
return createLink(key);
|
|
457
457
|
};
|
|
458
|
-
function getTypeCacheKeys$
|
|
458
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
459
459
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
460
460
|
const rootKey = fullPathFactory();
|
|
461
461
|
rootKeySet.set(rootKey, {
|
|
462
462
|
namespace: keyPrefix,
|
|
463
|
-
representationName: RepresentationType$
|
|
463
|
+
representationName: RepresentationType$5,
|
|
464
464
|
mergeable: false
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
function select$
|
|
469
|
-
return select$
|
|
468
|
+
function select$b(luvio, params) {
|
|
469
|
+
return select$c();
|
|
470
470
|
}
|
|
471
|
-
function keyBuilder$
|
|
471
|
+
function keyBuilder$a(luvio, params) {
|
|
472
472
|
return keyPrefix + '::IdpConfigurationsCollectionRepresentation:(' + 'activationStatus:' + params.queryParams.activationStatus + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'search:' + params.queryParams.search + ')';
|
|
473
473
|
}
|
|
474
|
-
function getResponseCacheKeys$
|
|
475
|
-
getTypeCacheKeys$
|
|
474
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
475
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
476
476
|
}
|
|
477
|
-
function ingestSuccess$
|
|
477
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
478
478
|
const { body } = response;
|
|
479
|
-
const key = keyBuilder$
|
|
480
|
-
luvio.storeIngest(key, ingest$
|
|
479
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
480
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
481
481
|
const snapshot = luvio.storeLookup({
|
|
482
482
|
recordId: key,
|
|
483
|
-
node: select$
|
|
483
|
+
node: select$b(),
|
|
484
484
|
variables: {},
|
|
485
485
|
}, snapshotRefresh);
|
|
486
486
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -492,18 +492,18 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
492
492
|
return snapshot;
|
|
493
493
|
}
|
|
494
494
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
495
|
-
const key = keyBuilder$
|
|
495
|
+
const key = keyBuilder$a(luvio, params);
|
|
496
496
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
497
497
|
const storeMetadataParams = {
|
|
498
|
-
ttl: TTL$
|
|
498
|
+
ttl: TTL$4,
|
|
499
499
|
namespace: keyPrefix,
|
|
500
|
-
version: VERSION$
|
|
501
|
-
representationName: RepresentationType$
|
|
500
|
+
version: VERSION$5,
|
|
501
|
+
representationName: RepresentationType$5
|
|
502
502
|
};
|
|
503
503
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
504
504
|
return errorSnapshot;
|
|
505
505
|
}
|
|
506
|
-
function createResourceRequest$
|
|
506
|
+
function createResourceRequest$7(config) {
|
|
507
507
|
const headers = {};
|
|
508
508
|
return {
|
|
509
509
|
baseUri: '/services/data/v65.0',
|
|
@@ -517,7 +517,7 @@ function createResourceRequest$5(config) {
|
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
-
const adapterName$
|
|
520
|
+
const adapterName$7 = 'getIdpConfigurations';
|
|
521
521
|
const getIdpConfigurations_ConfigPropertyMetadata = [
|
|
522
522
|
generateParamConfigMetadata('activationStatus', false, 1 /* QueryParameter */, 0 /* String */),
|
|
523
523
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
@@ -525,56 +525,56 @@ const getIdpConfigurations_ConfigPropertyMetadata = [
|
|
|
525
525
|
generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
526
526
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
527
527
|
];
|
|
528
|
-
const getIdpConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
529
|
-
const createResourceParams$
|
|
530
|
-
function keyBuilder$
|
|
531
|
-
const resourceParams = createResourceParams$
|
|
532
|
-
return keyBuilder$
|
|
528
|
+
const getIdpConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getIdpConfigurations_ConfigPropertyMetadata);
|
|
529
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(getIdpConfigurations_ConfigPropertyMetadata);
|
|
530
|
+
function keyBuilder$9(luvio, config) {
|
|
531
|
+
const resourceParams = createResourceParams$7(config);
|
|
532
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
533
533
|
}
|
|
534
|
-
function typeCheckConfig$
|
|
534
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
535
535
|
const config = {};
|
|
536
|
-
typeCheckConfig$
|
|
536
|
+
typeCheckConfig$8(untrustedConfig, config, getIdpConfigurations_ConfigPropertyMetadata);
|
|
537
537
|
return config;
|
|
538
538
|
}
|
|
539
|
-
function validateAdapterConfig$
|
|
539
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
540
540
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
541
541
|
return null;
|
|
542
542
|
}
|
|
543
543
|
if (process.env.NODE_ENV !== 'production') {
|
|
544
544
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
545
545
|
}
|
|
546
|
-
const config = typeCheckConfig$
|
|
546
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
547
547
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
548
548
|
return null;
|
|
549
549
|
}
|
|
550
550
|
return config;
|
|
551
551
|
}
|
|
552
552
|
function adapterFragment$3(luvio, config) {
|
|
553
|
-
createResourceParams$
|
|
554
|
-
return select$
|
|
553
|
+
createResourceParams$7(config);
|
|
554
|
+
return select$b();
|
|
555
555
|
}
|
|
556
556
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
557
|
-
const snapshot = ingestSuccess$
|
|
557
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
558
558
|
config,
|
|
559
|
-
resolve: () => buildNetworkSnapshot$
|
|
559
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
560
560
|
});
|
|
561
561
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
562
562
|
}
|
|
563
563
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
564
564
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
565
565
|
config,
|
|
566
|
-
resolve: () => buildNetworkSnapshot$
|
|
566
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
567
567
|
});
|
|
568
568
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
569
569
|
}
|
|
570
|
-
function buildNetworkSnapshot$
|
|
571
|
-
const resourceParams = createResourceParams$
|
|
572
|
-
const request = createResourceRequest$
|
|
570
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
571
|
+
const resourceParams = createResourceParams$7(config);
|
|
572
|
+
const request = createResourceRequest$7(resourceParams);
|
|
573
573
|
return luvio.dispatchResourceRequest(request, options)
|
|
574
574
|
.then((response) => {
|
|
575
575
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
576
576
|
const cache = new StoreKeyMap();
|
|
577
|
-
getResponseCacheKeys$
|
|
577
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
578
578
|
return cache;
|
|
579
579
|
});
|
|
580
580
|
}, (response) => {
|
|
@@ -582,23 +582,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
584
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
585
|
-
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
585
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
586
586
|
}
|
|
587
587
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
588
588
|
const { luvio, config } = context;
|
|
589
589
|
const selector = {
|
|
590
|
-
recordId: keyBuilder$
|
|
590
|
+
recordId: keyBuilder$9(luvio, config),
|
|
591
591
|
node: adapterFragment$3(luvio, config),
|
|
592
592
|
variables: {},
|
|
593
593
|
};
|
|
594
594
|
const cacheSnapshot = storeLookup(selector, {
|
|
595
595
|
config,
|
|
596
|
-
resolve: () => buildNetworkSnapshot$
|
|
596
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
597
597
|
});
|
|
598
598
|
return cacheSnapshot;
|
|
599
599
|
}
|
|
600
600
|
const getIdpConfigurationsAdapterFactory = (luvio) => function documentProcessing__getIdpConfigurations(untrustedConfig, requestContext) {
|
|
601
|
-
const config = validateAdapterConfig$
|
|
601
|
+
const config = validateAdapterConfig$7(untrustedConfig, getIdpConfigurations_ConfigPropertyNames);
|
|
602
602
|
// Invalid or incomplete config
|
|
603
603
|
if (config === null) {
|
|
604
604
|
return null;
|
|
@@ -607,125 +607,175 @@ const getIdpConfigurationsAdapterFactory = (luvio) => function documentProcessin
|
|
|
607
607
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
608
608
|
};
|
|
609
609
|
|
|
610
|
-
const TTL$
|
|
611
|
-
const VERSION$
|
|
612
|
-
function validate$
|
|
610
|
+
const TTL$3 = 500;
|
|
611
|
+
const VERSION$4 = "8bf201cc7509ac5c7e3db70eba261ab8";
|
|
612
|
+
function validate$7(obj, path = 'IdpConfigurationDetailsRepresentation') {
|
|
613
613
|
const v_error = (() => {
|
|
614
614
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
615
615
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
616
616
|
}
|
|
617
|
+
const obj_createdBy = obj.createdBy;
|
|
618
|
+
const path_createdBy = path + '.createdBy';
|
|
619
|
+
if (obj_createdBy === undefined) {
|
|
620
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
|
|
621
|
+
}
|
|
622
|
+
const obj_createdDate = obj.createdDate;
|
|
623
|
+
const path_createdDate = path + '.createdDate';
|
|
624
|
+
if (typeof obj_createdDate !== 'string') {
|
|
625
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
626
|
+
}
|
|
627
|
+
const obj_description = obj.description;
|
|
628
|
+
const path_description = path + '.description';
|
|
629
|
+
if (obj_description === undefined) {
|
|
630
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
631
|
+
}
|
|
632
|
+
const obj_id = obj.id;
|
|
633
|
+
const path_id = path + '.id';
|
|
634
|
+
if (typeof obj_id !== 'string') {
|
|
635
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
636
|
+
}
|
|
637
|
+
const obj_label = obj.label;
|
|
638
|
+
const path_label = path + '.label';
|
|
639
|
+
if (typeof obj_label !== 'string') {
|
|
640
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
641
|
+
}
|
|
642
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
643
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
644
|
+
if (obj_lastModifiedBy === undefined) {
|
|
645
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_lastModifiedBy + '" (at "' + path_lastModifiedBy + '")');
|
|
646
|
+
}
|
|
647
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
648
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
649
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
650
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
651
|
+
}
|
|
652
|
+
const obj_mlModel = obj.mlModel;
|
|
653
|
+
const path_mlModel = path + '.mlModel';
|
|
654
|
+
let obj_mlModel_union0 = null;
|
|
655
|
+
const obj_mlModel_union0_error = (() => {
|
|
656
|
+
if (typeof obj_mlModel !== 'string') {
|
|
657
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mlModel + '" (at "' + path_mlModel + '")');
|
|
658
|
+
}
|
|
659
|
+
})();
|
|
660
|
+
if (obj_mlModel_union0_error != null) {
|
|
661
|
+
obj_mlModel_union0 = obj_mlModel_union0_error.message;
|
|
662
|
+
}
|
|
663
|
+
let obj_mlModel_union1 = null;
|
|
664
|
+
const obj_mlModel_union1_error = (() => {
|
|
665
|
+
if (obj_mlModel !== null) {
|
|
666
|
+
return new TypeError('Expected "null" but received "' + typeof obj_mlModel + '" (at "' + path_mlModel + '")');
|
|
667
|
+
}
|
|
668
|
+
})();
|
|
669
|
+
if (obj_mlModel_union1_error != null) {
|
|
670
|
+
obj_mlModel_union1 = obj_mlModel_union1_error.message;
|
|
671
|
+
}
|
|
672
|
+
if (obj_mlModel_union0 && obj_mlModel_union1) {
|
|
673
|
+
let message = 'Object doesn\'t match union (at "' + path_mlModel + '")';
|
|
674
|
+
message += '\n' + obj_mlModel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
675
|
+
message += '\n' + obj_mlModel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
676
|
+
return new TypeError(message);
|
|
677
|
+
}
|
|
617
678
|
const obj_name = obj.name;
|
|
618
679
|
const path_name = path + '.name';
|
|
619
680
|
if (typeof obj_name !== 'string') {
|
|
620
681
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
621
682
|
}
|
|
622
|
-
const
|
|
623
|
-
const
|
|
624
|
-
let
|
|
625
|
-
const
|
|
626
|
-
if (typeof
|
|
627
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
683
|
+
const obj_runtimeStatus = obj.runtimeStatus;
|
|
684
|
+
const path_runtimeStatus = path + '.runtimeStatus';
|
|
685
|
+
let obj_runtimeStatus_union0 = null;
|
|
686
|
+
const obj_runtimeStatus_union0_error = (() => {
|
|
687
|
+
if (typeof obj_runtimeStatus !== 'string') {
|
|
688
|
+
return new TypeError('Expected "string" but received "' + typeof obj_runtimeStatus + '" (at "' + path_runtimeStatus + '")');
|
|
628
689
|
}
|
|
629
690
|
})();
|
|
630
|
-
if (
|
|
631
|
-
|
|
691
|
+
if (obj_runtimeStatus_union0_error != null) {
|
|
692
|
+
obj_runtimeStatus_union0 = obj_runtimeStatus_union0_error.message;
|
|
632
693
|
}
|
|
633
|
-
let
|
|
634
|
-
const
|
|
635
|
-
if (
|
|
636
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
694
|
+
let obj_runtimeStatus_union1 = null;
|
|
695
|
+
const obj_runtimeStatus_union1_error = (() => {
|
|
696
|
+
if (obj_runtimeStatus !== null) {
|
|
697
|
+
return new TypeError('Expected "null" but received "' + typeof obj_runtimeStatus + '" (at "' + path_runtimeStatus + '")');
|
|
637
698
|
}
|
|
638
699
|
})();
|
|
639
|
-
if (
|
|
640
|
-
|
|
700
|
+
if (obj_runtimeStatus_union1_error != null) {
|
|
701
|
+
obj_runtimeStatus_union1 = obj_runtimeStatus_union1_error.message;
|
|
641
702
|
}
|
|
642
|
-
if (
|
|
643
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
644
|
-
message += '\n' +
|
|
645
|
-
message += '\n' +
|
|
703
|
+
if (obj_runtimeStatus_union0 && obj_runtimeStatus_union1) {
|
|
704
|
+
let message = 'Object doesn\'t match union (at "' + path_runtimeStatus + '")';
|
|
705
|
+
message += '\n' + obj_runtimeStatus_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
706
|
+
message += '\n' + obj_runtimeStatus_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
646
707
|
return new TypeError(message);
|
|
647
708
|
}
|
|
709
|
+
const obj_schemaConfig = obj.schemaConfig;
|
|
710
|
+
const path_schemaConfig = path + '.schemaConfig';
|
|
711
|
+
if (typeof obj_schemaConfig !== 'string') {
|
|
712
|
+
return new TypeError('Expected "string" but received "' + typeof obj_schemaConfig + '" (at "' + path_schemaConfig + '")');
|
|
713
|
+
}
|
|
648
714
|
})();
|
|
649
715
|
return v_error === undefined ? null : v_error;
|
|
650
716
|
}
|
|
651
|
-
const RepresentationType$
|
|
652
|
-
function keyBuilder$
|
|
653
|
-
return keyPrefix + '::' + RepresentationType$
|
|
717
|
+
const RepresentationType$4 = 'IdpConfigurationDetailsRepresentation';
|
|
718
|
+
function keyBuilder$8(luvio, config) {
|
|
719
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
654
720
|
}
|
|
655
|
-
function keyBuilderFromType(luvio, object) {
|
|
721
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
656
722
|
const keyParams = {
|
|
657
|
-
|
|
723
|
+
id: object.id
|
|
658
724
|
};
|
|
659
|
-
return keyBuilder$
|
|
725
|
+
return keyBuilder$8(luvio, keyParams);
|
|
660
726
|
}
|
|
661
|
-
function normalize$
|
|
727
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
662
728
|
return input;
|
|
663
729
|
}
|
|
664
|
-
const select$
|
|
730
|
+
const select$a = function IdpConfigurationDetailsRepresentationSelect() {
|
|
665
731
|
return {
|
|
666
732
|
kind: 'Fragment',
|
|
667
|
-
version: VERSION$
|
|
733
|
+
version: VERSION$4,
|
|
668
734
|
private: [],
|
|
669
|
-
|
|
670
|
-
{
|
|
671
|
-
name: 'name',
|
|
672
|
-
kind: 'Scalar'
|
|
673
|
-
},
|
|
674
|
-
{
|
|
675
|
-
name: 'schemaConfig',
|
|
676
|
-
kind: 'Scalar'
|
|
677
|
-
}
|
|
678
|
-
]
|
|
735
|
+
opaque: true
|
|
679
736
|
};
|
|
680
737
|
};
|
|
681
|
-
function equals$
|
|
682
|
-
|
|
683
|
-
const incoming_name = incoming.name;
|
|
684
|
-
if (!(existing_name === incoming_name)) {
|
|
685
|
-
return false;
|
|
686
|
-
}
|
|
687
|
-
const existing_schemaConfig = existing.schemaConfig;
|
|
688
|
-
const incoming_schemaConfig = incoming.schemaConfig;
|
|
689
|
-
if (!(existing_schemaConfig === incoming_schemaConfig)) {
|
|
738
|
+
function equals$4(existing, incoming) {
|
|
739
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
690
740
|
return false;
|
|
691
741
|
}
|
|
692
742
|
return true;
|
|
693
743
|
}
|
|
694
|
-
const ingest$
|
|
744
|
+
const ingest$4 = function IdpConfigurationDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
695
745
|
if (process.env.NODE_ENV !== 'production') {
|
|
696
|
-
const validateError = validate$
|
|
746
|
+
const validateError = validate$7(input);
|
|
697
747
|
if (validateError !== null) {
|
|
698
748
|
throw validateError;
|
|
699
749
|
}
|
|
700
750
|
}
|
|
701
|
-
const key = keyBuilderFromType(luvio, input);
|
|
702
|
-
const ttlToUse = TTL$
|
|
703
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
751
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
752
|
+
const ttlToUse = TTL$3;
|
|
753
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "document-processing", VERSION$4, RepresentationType$4, equals$4);
|
|
704
754
|
return createLink(key);
|
|
705
755
|
};
|
|
706
|
-
function getTypeCacheKeys$
|
|
756
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
707
757
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
708
|
-
const rootKey = keyBuilderFromType(luvio, input);
|
|
758
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
709
759
|
rootKeySet.set(rootKey, {
|
|
710
760
|
namespace: keyPrefix,
|
|
711
|
-
representationName: RepresentationType$
|
|
761
|
+
representationName: RepresentationType$4,
|
|
712
762
|
mergeable: false
|
|
713
763
|
});
|
|
714
764
|
}
|
|
715
765
|
|
|
716
|
-
function select$
|
|
717
|
-
return select$
|
|
766
|
+
function select$9(luvio, params) {
|
|
767
|
+
return select$a();
|
|
718
768
|
}
|
|
719
|
-
function getResponseCacheKeys$
|
|
720
|
-
getTypeCacheKeys$
|
|
769
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
770
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
721
771
|
}
|
|
722
|
-
function ingestSuccess$
|
|
772
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
723
773
|
const { body } = response;
|
|
724
|
-
const key = keyBuilderFromType(luvio, body);
|
|
725
|
-
luvio.storeIngest(key, ingest$
|
|
774
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
775
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
726
776
|
const snapshot = luvio.storeLookup({
|
|
727
777
|
recordId: key,
|
|
728
|
-
node: select$
|
|
778
|
+
node: select$9(),
|
|
729
779
|
variables: {},
|
|
730
780
|
});
|
|
731
781
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -736,7 +786,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
736
786
|
deepFreeze(snapshot.data);
|
|
737
787
|
return snapshot;
|
|
738
788
|
}
|
|
739
|
-
function createResourceRequest$
|
|
789
|
+
function createResourceRequest$6(config) {
|
|
740
790
|
const headers = {};
|
|
741
791
|
return {
|
|
742
792
|
baseUri: '/services/data/v65.0',
|
|
@@ -750,7 +800,7 @@ function createResourceRequest$4(config) {
|
|
|
750
800
|
};
|
|
751
801
|
}
|
|
752
802
|
|
|
753
|
-
const adapterName$
|
|
803
|
+
const adapterName$6 = 'createIdpConfiguration';
|
|
754
804
|
const createIdpConfiguration_ConfigPropertyMetadata = [
|
|
755
805
|
generateParamConfigMetadata('activationStatus', true, 2 /* Body */, 0 /* String */),
|
|
756
806
|
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
@@ -760,11 +810,11 @@ const createIdpConfiguration_ConfigPropertyMetadata = [
|
|
|
760
810
|
generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
|
|
761
811
|
generateParamConfigMetadata('schemaConfig', true, 2 /* Body */, 0 /* String */),
|
|
762
812
|
];
|
|
763
|
-
const createIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
764
|
-
const createResourceParams$
|
|
765
|
-
function typeCheckConfig$
|
|
813
|
+
const createIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createIdpConfiguration_ConfigPropertyMetadata);
|
|
814
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(createIdpConfiguration_ConfigPropertyMetadata);
|
|
815
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
766
816
|
const config = {};
|
|
767
|
-
typeCheckConfig$
|
|
817
|
+
typeCheckConfig$8(untrustedConfig, config, createIdpConfiguration_ConfigPropertyMetadata);
|
|
768
818
|
const untrustedConfig_fileConfig = untrustedConfig.fileConfig;
|
|
769
819
|
if (untrustedIsObject(untrustedConfig_fileConfig)) {
|
|
770
820
|
const untrustedConfig_fileConfig_object = {};
|
|
@@ -785,30 +835,30 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
785
835
|
}
|
|
786
836
|
return config;
|
|
787
837
|
}
|
|
788
|
-
function validateAdapterConfig$
|
|
838
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
789
839
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
790
840
|
return null;
|
|
791
841
|
}
|
|
792
842
|
if (process.env.NODE_ENV !== 'production') {
|
|
793
843
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
794
844
|
}
|
|
795
|
-
const config = typeCheckConfig$
|
|
845
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
796
846
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
797
847
|
return null;
|
|
798
848
|
}
|
|
799
849
|
return config;
|
|
800
850
|
}
|
|
801
|
-
function buildNetworkSnapshot$
|
|
802
|
-
const resourceParams = createResourceParams$
|
|
803
|
-
const request = createResourceRequest$
|
|
851
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
852
|
+
const resourceParams = createResourceParams$6(config);
|
|
853
|
+
const request = createResourceRequest$6(resourceParams);
|
|
804
854
|
return luvio.dispatchResourceRequest(request, options)
|
|
805
855
|
.then((response) => {
|
|
806
856
|
return luvio.handleSuccessResponse(() => {
|
|
807
|
-
const snapshot = ingestSuccess$
|
|
857
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
808
858
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
809
859
|
}, () => {
|
|
810
860
|
const cache = new StoreKeyMap();
|
|
811
|
-
getResponseCacheKeys$
|
|
861
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
812
862
|
return cache;
|
|
813
863
|
});
|
|
814
864
|
}, (response) => {
|
|
@@ -818,33 +868,33 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
818
868
|
}
|
|
819
869
|
const createIdpConfigurationAdapterFactory = (luvio) => {
|
|
820
870
|
return function createIdpConfiguration(untrustedConfig) {
|
|
821
|
-
const config = validateAdapterConfig$
|
|
871
|
+
const config = validateAdapterConfig$6(untrustedConfig, createIdpConfiguration_ConfigPropertyNames);
|
|
822
872
|
// Invalid or incomplete config
|
|
823
873
|
if (config === null) {
|
|
824
874
|
throw new Error('Invalid config for "createIdpConfiguration"');
|
|
825
875
|
}
|
|
826
|
-
return buildNetworkSnapshot$
|
|
876
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
827
877
|
};
|
|
828
878
|
};
|
|
829
879
|
|
|
830
|
-
function keyBuilder$
|
|
831
|
-
return keyBuilder$
|
|
832
|
-
|
|
880
|
+
function keyBuilder$7(luvio, params) {
|
|
881
|
+
return keyBuilder$8(luvio, {
|
|
882
|
+
id: params.urlParams.idOrApiName
|
|
833
883
|
});
|
|
834
884
|
}
|
|
835
|
-
function getResponseCacheKeys$
|
|
836
|
-
const key = keyBuilder$
|
|
885
|
+
function getResponseCacheKeys$5(cacheKeyMap, luvio, resourceParams) {
|
|
886
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
837
887
|
cacheKeyMap.set(key, {
|
|
838
888
|
namespace: keyPrefix,
|
|
839
|
-
representationName: RepresentationType$
|
|
889
|
+
representationName: RepresentationType$4,
|
|
840
890
|
mergeable: false
|
|
841
891
|
});
|
|
842
892
|
}
|
|
843
893
|
function evictSuccess(luvio, resourceParams) {
|
|
844
|
-
const key = keyBuilder$
|
|
894
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
845
895
|
luvio.storeEvict(key);
|
|
846
896
|
}
|
|
847
|
-
function createResourceRequest$
|
|
897
|
+
function createResourceRequest$5(config) {
|
|
848
898
|
const headers = {};
|
|
849
899
|
return {
|
|
850
900
|
baseUri: '/services/data/v65.0',
|
|
@@ -858,33 +908,33 @@ function createResourceRequest$3(config) {
|
|
|
858
908
|
};
|
|
859
909
|
}
|
|
860
910
|
|
|
861
|
-
const adapterName$
|
|
911
|
+
const adapterName$5 = 'deleteIdpConfiguration';
|
|
862
912
|
const deleteIdpConfiguration_ConfigPropertyMetadata = [
|
|
863
913
|
generateParamConfigMetadata('idOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
864
914
|
];
|
|
865
|
-
const deleteIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
866
|
-
const createResourceParams$
|
|
867
|
-
function typeCheckConfig$
|
|
915
|
+
const deleteIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteIdpConfiguration_ConfigPropertyMetadata);
|
|
916
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(deleteIdpConfiguration_ConfigPropertyMetadata);
|
|
917
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
868
918
|
const config = {};
|
|
869
|
-
typeCheckConfig$
|
|
919
|
+
typeCheckConfig$8(untrustedConfig, config, deleteIdpConfiguration_ConfigPropertyMetadata);
|
|
870
920
|
return config;
|
|
871
921
|
}
|
|
872
|
-
function validateAdapterConfig$
|
|
922
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
873
923
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
874
924
|
return null;
|
|
875
925
|
}
|
|
876
926
|
if (process.env.NODE_ENV !== 'production') {
|
|
877
927
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
878
928
|
}
|
|
879
|
-
const config = typeCheckConfig$
|
|
929
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
880
930
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
881
931
|
return null;
|
|
882
932
|
}
|
|
883
933
|
return config;
|
|
884
934
|
}
|
|
885
|
-
function buildNetworkSnapshot$
|
|
886
|
-
const resourceParams = createResourceParams$
|
|
887
|
-
const request = createResourceRequest$
|
|
935
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
936
|
+
const resourceParams = createResourceParams$5(config);
|
|
937
|
+
const request = createResourceRequest$5(resourceParams);
|
|
888
938
|
return luvio.dispatchResourceRequest(request, options)
|
|
889
939
|
.then(() => {
|
|
890
940
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -892,7 +942,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
892
942
|
return luvio.storeBroadcast();
|
|
893
943
|
}, () => {
|
|
894
944
|
const cache = new StoreKeyMap();
|
|
895
|
-
getResponseCacheKeys$
|
|
945
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams);
|
|
896
946
|
return cache;
|
|
897
947
|
});
|
|
898
948
|
}, (response) => {
|
|
@@ -902,33 +952,33 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
902
952
|
}
|
|
903
953
|
const deleteIdpConfigurationAdapterFactory = (luvio) => {
|
|
904
954
|
return function documentProcessingdeleteIdpConfiguration(untrustedConfig) {
|
|
905
|
-
const config = validateAdapterConfig$
|
|
955
|
+
const config = validateAdapterConfig$5(untrustedConfig, deleteIdpConfiguration_ConfigPropertyNames);
|
|
906
956
|
// Invalid or incomplete config
|
|
907
957
|
if (config === null) {
|
|
908
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
958
|
+
throw new Error(`Invalid config for "${adapterName$5}"`);
|
|
909
959
|
}
|
|
910
|
-
return buildNetworkSnapshot$
|
|
960
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
911
961
|
};
|
|
912
962
|
};
|
|
913
963
|
|
|
914
|
-
function select$
|
|
915
|
-
return select$
|
|
964
|
+
function select$8(luvio, params) {
|
|
965
|
+
return select$a();
|
|
916
966
|
}
|
|
917
|
-
function keyBuilder$
|
|
918
|
-
return keyBuilder$
|
|
919
|
-
|
|
967
|
+
function keyBuilder$6(luvio, params) {
|
|
968
|
+
return keyBuilder$8(luvio, {
|
|
969
|
+
id: params.urlParams.idOrApiName
|
|
920
970
|
});
|
|
921
971
|
}
|
|
922
|
-
function getResponseCacheKeys$
|
|
923
|
-
getTypeCacheKeys$
|
|
972
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
973
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
924
974
|
}
|
|
925
|
-
function ingestSuccess$
|
|
975
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
926
976
|
const { body } = response;
|
|
927
|
-
const key = keyBuilder$
|
|
928
|
-
luvio.storeIngest(key, ingest$
|
|
977
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
978
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
929
979
|
const snapshot = luvio.storeLookup({
|
|
930
980
|
recordId: key,
|
|
931
|
-
node: select$
|
|
981
|
+
node: select$8(),
|
|
932
982
|
variables: {},
|
|
933
983
|
}, snapshotRefresh);
|
|
934
984
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -940,18 +990,18 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
940
990
|
return snapshot;
|
|
941
991
|
}
|
|
942
992
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
943
|
-
const key = keyBuilder$
|
|
993
|
+
const key = keyBuilder$6(luvio, params);
|
|
944
994
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
945
995
|
const storeMetadataParams = {
|
|
946
|
-
ttl: TTL$
|
|
996
|
+
ttl: TTL$3,
|
|
947
997
|
namespace: keyPrefix,
|
|
948
|
-
version: VERSION$
|
|
949
|
-
representationName: RepresentationType$
|
|
998
|
+
version: VERSION$4,
|
|
999
|
+
representationName: RepresentationType$4
|
|
950
1000
|
};
|
|
951
1001
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
952
1002
|
return errorSnapshot;
|
|
953
1003
|
}
|
|
954
|
-
function createResourceRequest$
|
|
1004
|
+
function createResourceRequest$4(config) {
|
|
955
1005
|
const headers = {};
|
|
956
1006
|
return {
|
|
957
1007
|
baseUri: '/services/data/v65.0',
|
|
@@ -965,60 +1015,60 @@ function createResourceRequest$2(config) {
|
|
|
965
1015
|
};
|
|
966
1016
|
}
|
|
967
1017
|
|
|
968
|
-
const adapterName$
|
|
1018
|
+
const adapterName$4 = 'getIdpConfiguration';
|
|
969
1019
|
const getIdpConfiguration_ConfigPropertyMetadata = [
|
|
970
1020
|
generateParamConfigMetadata('idOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
971
1021
|
];
|
|
972
|
-
const getIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
973
|
-
const createResourceParams$
|
|
974
|
-
function keyBuilder$
|
|
975
|
-
const resourceParams = createResourceParams$
|
|
976
|
-
return keyBuilder$
|
|
1022
|
+
const getIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getIdpConfiguration_ConfigPropertyMetadata);
|
|
1023
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getIdpConfiguration_ConfigPropertyMetadata);
|
|
1024
|
+
function keyBuilder$5(luvio, config) {
|
|
1025
|
+
const resourceParams = createResourceParams$4(config);
|
|
1026
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
977
1027
|
}
|
|
978
|
-
function typeCheckConfig$
|
|
1028
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
979
1029
|
const config = {};
|
|
980
|
-
typeCheckConfig$
|
|
1030
|
+
typeCheckConfig$8(untrustedConfig, config, getIdpConfiguration_ConfigPropertyMetadata);
|
|
981
1031
|
return config;
|
|
982
1032
|
}
|
|
983
|
-
function validateAdapterConfig$
|
|
1033
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
984
1034
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
985
1035
|
return null;
|
|
986
1036
|
}
|
|
987
1037
|
if (process.env.NODE_ENV !== 'production') {
|
|
988
1038
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
989
1039
|
}
|
|
990
|
-
const config = typeCheckConfig$
|
|
1040
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
991
1041
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
992
1042
|
return null;
|
|
993
1043
|
}
|
|
994
1044
|
return config;
|
|
995
1045
|
}
|
|
996
1046
|
function adapterFragment$2(luvio, config) {
|
|
997
|
-
createResourceParams$
|
|
998
|
-
return select$
|
|
1047
|
+
createResourceParams$4(config);
|
|
1048
|
+
return select$8();
|
|
999
1049
|
}
|
|
1000
1050
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1001
|
-
const snapshot = ingestSuccess$
|
|
1051
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
1002
1052
|
config,
|
|
1003
|
-
resolve: () => buildNetworkSnapshot$
|
|
1053
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1004
1054
|
});
|
|
1005
1055
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1006
1056
|
}
|
|
1007
1057
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
1008
1058
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
1009
1059
|
config,
|
|
1010
|
-
resolve: () => buildNetworkSnapshot$
|
|
1060
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1011
1061
|
});
|
|
1012
1062
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1013
1063
|
}
|
|
1014
|
-
function buildNetworkSnapshot$
|
|
1015
|
-
const resourceParams = createResourceParams$
|
|
1016
|
-
const request = createResourceRequest$
|
|
1064
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1065
|
+
const resourceParams = createResourceParams$4(config);
|
|
1066
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1017
1067
|
return luvio.dispatchResourceRequest(request, options)
|
|
1018
1068
|
.then((response) => {
|
|
1019
1069
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
1020
1070
|
const cache = new StoreKeyMap();
|
|
1021
|
-
getResponseCacheKeys$
|
|
1071
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1022
1072
|
return cache;
|
|
1023
1073
|
});
|
|
1024
1074
|
}, (response) => {
|
|
@@ -1026,23 +1076,23 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1026
1076
|
});
|
|
1027
1077
|
}
|
|
1028
1078
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1029
|
-
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1079
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
1030
1080
|
}
|
|
1031
1081
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1032
1082
|
const { luvio, config } = context;
|
|
1033
1083
|
const selector = {
|
|
1034
|
-
recordId: keyBuilder$
|
|
1084
|
+
recordId: keyBuilder$5(luvio, config),
|
|
1035
1085
|
node: adapterFragment$2(luvio, config),
|
|
1036
1086
|
variables: {},
|
|
1037
1087
|
};
|
|
1038
1088
|
const cacheSnapshot = storeLookup(selector, {
|
|
1039
1089
|
config,
|
|
1040
|
-
resolve: () => buildNetworkSnapshot$
|
|
1090
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1041
1091
|
});
|
|
1042
1092
|
return cacheSnapshot;
|
|
1043
1093
|
}
|
|
1044
1094
|
const getIdpConfigurationAdapterFactory = (luvio) => function documentProcessing__getIdpConfiguration(untrustedConfig, requestContext) {
|
|
1045
|
-
const config = validateAdapterConfig$
|
|
1095
|
+
const config = validateAdapterConfig$4(untrustedConfig, getIdpConfiguration_ConfigPropertyNames);
|
|
1046
1096
|
// Invalid or incomplete config
|
|
1047
1097
|
if (config === null) {
|
|
1048
1098
|
return null;
|
|
@@ -1051,7 +1101,100 @@ const getIdpConfigurationAdapterFactory = (luvio) => function documentProcessing
|
|
|
1051
1101
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1052
1102
|
};
|
|
1053
1103
|
|
|
1054
|
-
function
|
|
1104
|
+
function select$7(luvio, params) {
|
|
1105
|
+
return select$a();
|
|
1106
|
+
}
|
|
1107
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1108
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
1109
|
+
}
|
|
1110
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
1111
|
+
const { body } = response;
|
|
1112
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
1113
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
1114
|
+
const snapshot = luvio.storeLookup({
|
|
1115
|
+
recordId: key,
|
|
1116
|
+
node: select$7(),
|
|
1117
|
+
variables: {},
|
|
1118
|
+
});
|
|
1119
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1120
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1121
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
deepFreeze(snapshot.data);
|
|
1125
|
+
return snapshot;
|
|
1126
|
+
}
|
|
1127
|
+
function createResourceRequest$3(config) {
|
|
1128
|
+
const headers = {};
|
|
1129
|
+
return {
|
|
1130
|
+
baseUri: '/services/data/v65.0',
|
|
1131
|
+
basePath: '/ssot/document-processing/configurations/' + config.urlParams.idOrApiName + '',
|
|
1132
|
+
method: 'patch',
|
|
1133
|
+
body: config.body,
|
|
1134
|
+
urlParams: config.urlParams,
|
|
1135
|
+
queryParams: {},
|
|
1136
|
+
headers,
|
|
1137
|
+
priority: 'normal',
|
|
1138
|
+
};
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
const adapterName$3 = 'updateIdpConfiguration';
|
|
1142
|
+
const updateIdpConfiguration_ConfigPropertyMetadata = [
|
|
1143
|
+
generateParamConfigMetadata('idOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1144
|
+
generateParamConfigMetadata('activationStatus', true, 2 /* Body */, 0 /* String */),
|
|
1145
|
+
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
1146
|
+
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
1147
|
+
];
|
|
1148
|
+
const updateIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updateIdpConfiguration_ConfigPropertyMetadata);
|
|
1149
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(updateIdpConfiguration_ConfigPropertyMetadata);
|
|
1150
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
1151
|
+
const config = {};
|
|
1152
|
+
typeCheckConfig$8(untrustedConfig, config, updateIdpConfiguration_ConfigPropertyMetadata);
|
|
1153
|
+
return config;
|
|
1154
|
+
}
|
|
1155
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
1156
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1157
|
+
return null;
|
|
1158
|
+
}
|
|
1159
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1160
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1161
|
+
}
|
|
1162
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
1163
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1164
|
+
return null;
|
|
1165
|
+
}
|
|
1166
|
+
return config;
|
|
1167
|
+
}
|
|
1168
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
1169
|
+
const resourceParams = createResourceParams$3(config);
|
|
1170
|
+
const request = createResourceRequest$3(resourceParams);
|
|
1171
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1172
|
+
.then((response) => {
|
|
1173
|
+
return luvio.handleSuccessResponse(() => {
|
|
1174
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
1175
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1176
|
+
}, () => {
|
|
1177
|
+
const cache = new StoreKeyMap();
|
|
1178
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
1179
|
+
return cache;
|
|
1180
|
+
});
|
|
1181
|
+
}, (response) => {
|
|
1182
|
+
deepFreeze(response);
|
|
1183
|
+
throw response;
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
const updateIdpConfigurationAdapterFactory = (luvio) => {
|
|
1187
|
+
return function updateIdpConfiguration(untrustedConfig) {
|
|
1188
|
+
const config = validateAdapterConfig$3(untrustedConfig, updateIdpConfiguration_ConfigPropertyNames);
|
|
1189
|
+
// Invalid or incomplete config
|
|
1190
|
+
if (config === null) {
|
|
1191
|
+
throw new Error('Invalid config for "updateIdpConfiguration"');
|
|
1192
|
+
}
|
|
1193
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
1194
|
+
};
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
function validate$6(obj, path = 'IdpContentTypeRepresentation') {
|
|
1055
1198
|
const v_error = (() => {
|
|
1056
1199
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1057
1200
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1080,7 +1223,7 @@ function validate$4(obj, path = 'IdpContentTypeRepresentation') {
|
|
|
1080
1223
|
return v_error === undefined ? null : v_error;
|
|
1081
1224
|
}
|
|
1082
1225
|
|
|
1083
|
-
function validate$
|
|
1226
|
+
function validate$5(obj, path = 'IdpSupportedModelRepresentation') {
|
|
1084
1227
|
const v_error = (() => {
|
|
1085
1228
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1086
1229
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1114,9 +1257,9 @@ function validate$3(obj, path = 'IdpSupportedModelRepresentation') {
|
|
|
1114
1257
|
return v_error === undefined ? null : v_error;
|
|
1115
1258
|
}
|
|
1116
1259
|
|
|
1117
|
-
const TTL$
|
|
1118
|
-
const VERSION$
|
|
1119
|
-
function validate$
|
|
1260
|
+
const TTL$2 = 500;
|
|
1261
|
+
const VERSION$3 = "bdf0262770f9e912af6b77a807f4d804";
|
|
1262
|
+
function validate$4(obj, path = 'IdpGlobalConfigRepresentation') {
|
|
1120
1263
|
const v_error = (() => {
|
|
1121
1264
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1122
1265
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1129,7 +1272,7 @@ function validate$2(obj, path = 'IdpGlobalConfigRepresentation') {
|
|
|
1129
1272
|
for (let i = 0; i < obj_supportedContentTypes.length; i++) {
|
|
1130
1273
|
const obj_supportedContentTypes_item = obj_supportedContentTypes[i];
|
|
1131
1274
|
const path_supportedContentTypes_item = path_supportedContentTypes + '[' + i + ']';
|
|
1132
|
-
const referencepath_supportedContentTypes_itemValidationError = validate$
|
|
1275
|
+
const referencepath_supportedContentTypes_itemValidationError = validate$6(obj_supportedContentTypes_item, path_supportedContentTypes_item);
|
|
1133
1276
|
if (referencepath_supportedContentTypes_itemValidationError !== null) {
|
|
1134
1277
|
let message = 'Object doesn\'t match IdpContentTypeRepresentation (at "' + path_supportedContentTypes_item + '")\n';
|
|
1135
1278
|
message += referencepath_supportedContentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1144,7 +1287,7 @@ function validate$2(obj, path = 'IdpGlobalConfigRepresentation') {
|
|
|
1144
1287
|
for (let i = 0; i < obj_supportedModels.length; i++) {
|
|
1145
1288
|
const obj_supportedModels_item = obj_supportedModels[i];
|
|
1146
1289
|
const path_supportedModels_item = path_supportedModels + '[' + i + ']';
|
|
1147
|
-
const referencepath_supportedModels_itemValidationError = validate$
|
|
1290
|
+
const referencepath_supportedModels_itemValidationError = validate$5(obj_supportedModels_item, path_supportedModels_item);
|
|
1148
1291
|
if (referencepath_supportedModels_itemValidationError !== null) {
|
|
1149
1292
|
let message = 'Object doesn\'t match IdpSupportedModelRepresentation (at "' + path_supportedModels_item + '")\n';
|
|
1150
1293
|
message += referencepath_supportedModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1159,62 +1302,62 @@ function validate$2(obj, path = 'IdpGlobalConfigRepresentation') {
|
|
|
1159
1302
|
})();
|
|
1160
1303
|
return v_error === undefined ? null : v_error;
|
|
1161
1304
|
}
|
|
1162
|
-
const RepresentationType$
|
|
1163
|
-
function normalize$
|
|
1305
|
+
const RepresentationType$3 = 'IdpGlobalConfigRepresentation';
|
|
1306
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1164
1307
|
return input;
|
|
1165
1308
|
}
|
|
1166
|
-
const select$
|
|
1309
|
+
const select$6 = function IdpGlobalConfigRepresentationSelect() {
|
|
1167
1310
|
return {
|
|
1168
1311
|
kind: 'Fragment',
|
|
1169
|
-
version: VERSION$
|
|
1312
|
+
version: VERSION$3,
|
|
1170
1313
|
private: [],
|
|
1171
1314
|
opaque: true
|
|
1172
1315
|
};
|
|
1173
1316
|
};
|
|
1174
|
-
function equals$
|
|
1317
|
+
function equals$3(existing, incoming) {
|
|
1175
1318
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1176
1319
|
return false;
|
|
1177
1320
|
}
|
|
1178
1321
|
return true;
|
|
1179
1322
|
}
|
|
1180
|
-
const ingest$
|
|
1323
|
+
const ingest$3 = function IdpGlobalConfigRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1181
1324
|
if (process.env.NODE_ENV !== 'production') {
|
|
1182
|
-
const validateError = validate$
|
|
1325
|
+
const validateError = validate$4(input);
|
|
1183
1326
|
if (validateError !== null) {
|
|
1184
1327
|
throw validateError;
|
|
1185
1328
|
}
|
|
1186
1329
|
}
|
|
1187
1330
|
const key = path.fullPath;
|
|
1188
|
-
const ttlToUse = TTL$
|
|
1189
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1331
|
+
const ttlToUse = TTL$2;
|
|
1332
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "document-processing", VERSION$3, RepresentationType$3, equals$3);
|
|
1190
1333
|
return createLink(key);
|
|
1191
1334
|
};
|
|
1192
|
-
function getTypeCacheKeys$
|
|
1335
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
1193
1336
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1194
1337
|
const rootKey = fullPathFactory();
|
|
1195
1338
|
rootKeySet.set(rootKey, {
|
|
1196
1339
|
namespace: keyPrefix,
|
|
1197
|
-
representationName: RepresentationType$
|
|
1340
|
+
representationName: RepresentationType$3,
|
|
1198
1341
|
mergeable: false
|
|
1199
1342
|
});
|
|
1200
1343
|
}
|
|
1201
1344
|
|
|
1202
|
-
function select$
|
|
1203
|
-
return select$
|
|
1345
|
+
function select$5(luvio, params) {
|
|
1346
|
+
return select$6();
|
|
1204
1347
|
}
|
|
1205
|
-
function keyBuilder$
|
|
1348
|
+
function keyBuilder$4(luvio, params) {
|
|
1206
1349
|
return keyPrefix + '::IdpGlobalConfigRepresentation:(' + ')';
|
|
1207
1350
|
}
|
|
1208
|
-
function getResponseCacheKeys$
|
|
1209
|
-
getTypeCacheKeys$
|
|
1351
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1352
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$4());
|
|
1210
1353
|
}
|
|
1211
|
-
function ingestSuccess$
|
|
1354
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1212
1355
|
const { body } = response;
|
|
1213
|
-
const key = keyBuilder$
|
|
1214
|
-
luvio.storeIngest(key, ingest$
|
|
1356
|
+
const key = keyBuilder$4();
|
|
1357
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
1215
1358
|
const snapshot = luvio.storeLookup({
|
|
1216
1359
|
recordId: key,
|
|
1217
|
-
node: select$
|
|
1360
|
+
node: select$5(),
|
|
1218
1361
|
variables: {},
|
|
1219
1362
|
}, snapshotRefresh);
|
|
1220
1363
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1226,18 +1369,18 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1226
1369
|
return snapshot;
|
|
1227
1370
|
}
|
|
1228
1371
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
1229
|
-
const key = keyBuilder$
|
|
1372
|
+
const key = keyBuilder$4();
|
|
1230
1373
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1231
1374
|
const storeMetadataParams = {
|
|
1232
|
-
ttl: TTL$
|
|
1375
|
+
ttl: TTL$2,
|
|
1233
1376
|
namespace: keyPrefix,
|
|
1234
|
-
version: VERSION$
|
|
1235
|
-
representationName: RepresentationType$
|
|
1377
|
+
version: VERSION$3,
|
|
1378
|
+
representationName: RepresentationType$3
|
|
1236
1379
|
};
|
|
1237
1380
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1238
1381
|
return errorSnapshot;
|
|
1239
1382
|
}
|
|
1240
|
-
function createResourceRequest$
|
|
1383
|
+
function createResourceRequest$2(config) {
|
|
1241
1384
|
const headers = {};
|
|
1242
1385
|
return {
|
|
1243
1386
|
baseUri: '/services/data/v65.0',
|
|
@@ -1251,57 +1394,57 @@ function createResourceRequest$1(config) {
|
|
|
1251
1394
|
};
|
|
1252
1395
|
}
|
|
1253
1396
|
|
|
1254
|
-
const adapterName$
|
|
1397
|
+
const adapterName$2 = 'getIdpGlobalConfig';
|
|
1255
1398
|
const getIdpGlobalConfig_ConfigPropertyMetadata = [];
|
|
1256
|
-
const getIdpGlobalConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1257
|
-
const createResourceParams$
|
|
1258
|
-
function keyBuilder$
|
|
1259
|
-
createResourceParams$
|
|
1260
|
-
return keyBuilder$
|
|
1399
|
+
const getIdpGlobalConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getIdpGlobalConfig_ConfigPropertyMetadata);
|
|
1400
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(getIdpGlobalConfig_ConfigPropertyMetadata);
|
|
1401
|
+
function keyBuilder$3(luvio, config) {
|
|
1402
|
+
createResourceParams$2(config);
|
|
1403
|
+
return keyBuilder$4();
|
|
1261
1404
|
}
|
|
1262
|
-
function typeCheckConfig$
|
|
1405
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
1263
1406
|
const config = {};
|
|
1264
1407
|
return config;
|
|
1265
1408
|
}
|
|
1266
|
-
function validateAdapterConfig$
|
|
1409
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
1267
1410
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1268
1411
|
return null;
|
|
1269
1412
|
}
|
|
1270
1413
|
if (process.env.NODE_ENV !== 'production') {
|
|
1271
1414
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1272
1415
|
}
|
|
1273
|
-
const config = typeCheckConfig$
|
|
1416
|
+
const config = typeCheckConfig$2();
|
|
1274
1417
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1275
1418
|
return null;
|
|
1276
1419
|
}
|
|
1277
1420
|
return config;
|
|
1278
1421
|
}
|
|
1279
1422
|
function adapterFragment$1(luvio, config) {
|
|
1280
|
-
createResourceParams$
|
|
1281
|
-
return select$
|
|
1423
|
+
createResourceParams$2(config);
|
|
1424
|
+
return select$5();
|
|
1282
1425
|
}
|
|
1283
1426
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1284
|
-
const snapshot = ingestSuccess$
|
|
1427
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
1285
1428
|
config,
|
|
1286
|
-
resolve: () => buildNetworkSnapshot$
|
|
1429
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1287
1430
|
});
|
|
1288
1431
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1289
1432
|
}
|
|
1290
1433
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1291
1434
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1292
1435
|
config,
|
|
1293
|
-
resolve: () => buildNetworkSnapshot$
|
|
1436
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1294
1437
|
});
|
|
1295
1438
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1296
1439
|
}
|
|
1297
|
-
function buildNetworkSnapshot$
|
|
1298
|
-
const resourceParams = createResourceParams$
|
|
1299
|
-
const request = createResourceRequest$
|
|
1440
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
1441
|
+
const resourceParams = createResourceParams$2(config);
|
|
1442
|
+
const request = createResourceRequest$2();
|
|
1300
1443
|
return luvio.dispatchResourceRequest(request, options)
|
|
1301
1444
|
.then((response) => {
|
|
1302
1445
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1303
1446
|
const cache = new StoreKeyMap();
|
|
1304
|
-
getResponseCacheKeys$
|
|
1447
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1305
1448
|
return cache;
|
|
1306
1449
|
});
|
|
1307
1450
|
}, (response) => {
|
|
@@ -1309,23 +1452,23 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1309
1452
|
});
|
|
1310
1453
|
}
|
|
1311
1454
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1312
|
-
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1455
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
1313
1456
|
}
|
|
1314
1457
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1315
1458
|
const { luvio, config } = context;
|
|
1316
1459
|
const selector = {
|
|
1317
|
-
recordId: keyBuilder$
|
|
1460
|
+
recordId: keyBuilder$3(luvio, config),
|
|
1318
1461
|
node: adapterFragment$1(luvio, config),
|
|
1319
1462
|
variables: {},
|
|
1320
1463
|
};
|
|
1321
1464
|
const cacheSnapshot = storeLookup(selector, {
|
|
1322
1465
|
config,
|
|
1323
|
-
resolve: () => buildNetworkSnapshot$
|
|
1466
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1324
1467
|
});
|
|
1325
1468
|
return cacheSnapshot;
|
|
1326
1469
|
}
|
|
1327
1470
|
const getIdpGlobalConfigAdapterFactory = (luvio) => function documentProcessing__getIdpGlobalConfig(untrustedConfig, requestContext) {
|
|
1328
|
-
const config = validateAdapterConfig$
|
|
1471
|
+
const config = validateAdapterConfig$2(untrustedConfig, getIdpGlobalConfig_ConfigPropertyNames);
|
|
1329
1472
|
// Invalid or incomplete config
|
|
1330
1473
|
if (config === null) {
|
|
1331
1474
|
return null;
|
|
@@ -1334,6 +1477,229 @@ const getIdpGlobalConfigAdapterFactory = (luvio) => function documentProcessing_
|
|
|
1334
1477
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1335
1478
|
};
|
|
1336
1479
|
|
|
1480
|
+
function validate$3(obj, path = 'IdpGenerateSchemaFileInputRepresentation') {
|
|
1481
|
+
const v_error = (() => {
|
|
1482
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1483
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1484
|
+
}
|
|
1485
|
+
const obj_fileId = obj.fileId;
|
|
1486
|
+
const path_fileId = path + '.fileId';
|
|
1487
|
+
if (typeof obj_fileId !== 'string') {
|
|
1488
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fileId + '" (at "' + path_fileId + '")');
|
|
1489
|
+
}
|
|
1490
|
+
})();
|
|
1491
|
+
return v_error === undefined ? null : v_error;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
const TTL$1 = 1200000;
|
|
1495
|
+
const VERSION$2 = "4d8b7735653266ae435f6f1fcca047ad";
|
|
1496
|
+
function validate$2(obj, path = 'IdpGeneratedSchemaRepresentation') {
|
|
1497
|
+
const v_error = (() => {
|
|
1498
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1499
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1500
|
+
}
|
|
1501
|
+
const obj_error = obj.error;
|
|
1502
|
+
const path_error = path + '.error';
|
|
1503
|
+
let obj_error_union0 = null;
|
|
1504
|
+
const obj_error_union0_error = (() => {
|
|
1505
|
+
if (typeof obj_error !== 'string') {
|
|
1506
|
+
return new TypeError('Expected "string" but received "' + typeof obj_error + '" (at "' + path_error + '")');
|
|
1507
|
+
}
|
|
1508
|
+
})();
|
|
1509
|
+
if (obj_error_union0_error != null) {
|
|
1510
|
+
obj_error_union0 = obj_error_union0_error.message;
|
|
1511
|
+
}
|
|
1512
|
+
let obj_error_union1 = null;
|
|
1513
|
+
const obj_error_union1_error = (() => {
|
|
1514
|
+
if (obj_error !== null) {
|
|
1515
|
+
return new TypeError('Expected "null" but received "' + typeof obj_error + '" (at "' + path_error + '")');
|
|
1516
|
+
}
|
|
1517
|
+
})();
|
|
1518
|
+
if (obj_error_union1_error != null) {
|
|
1519
|
+
obj_error_union1 = obj_error_union1_error.message;
|
|
1520
|
+
}
|
|
1521
|
+
if (obj_error_union0 && obj_error_union1) {
|
|
1522
|
+
let message = 'Object doesn\'t match union (at "' + path_error + '")';
|
|
1523
|
+
message += '\n' + obj_error_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1524
|
+
message += '\n' + obj_error_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1525
|
+
return new TypeError(message);
|
|
1526
|
+
}
|
|
1527
|
+
const obj_schema = obj.schema;
|
|
1528
|
+
const path_schema = path + '.schema';
|
|
1529
|
+
if (typeof obj_schema !== 'string') {
|
|
1530
|
+
return new TypeError('Expected "string" but received "' + typeof obj_schema + '" (at "' + path_schema + '")');
|
|
1531
|
+
}
|
|
1532
|
+
})();
|
|
1533
|
+
return v_error === undefined ? null : v_error;
|
|
1534
|
+
}
|
|
1535
|
+
const RepresentationType$2 = 'IdpGeneratedSchemaRepresentation';
|
|
1536
|
+
function keyBuilder$2(luvio, config) {
|
|
1537
|
+
return keyPrefix + '::' + RepresentationType$2 + ':' + config.schema;
|
|
1538
|
+
}
|
|
1539
|
+
function keyBuilderFromType(luvio, object) {
|
|
1540
|
+
const keyParams = {
|
|
1541
|
+
schema: object.schema
|
|
1542
|
+
};
|
|
1543
|
+
return keyBuilder$2(luvio, keyParams);
|
|
1544
|
+
}
|
|
1545
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1546
|
+
return input;
|
|
1547
|
+
}
|
|
1548
|
+
const select$4 = function IdpGeneratedSchemaRepresentationSelect() {
|
|
1549
|
+
return {
|
|
1550
|
+
kind: 'Fragment',
|
|
1551
|
+
version: VERSION$2,
|
|
1552
|
+
private: [],
|
|
1553
|
+
selections: [
|
|
1554
|
+
{
|
|
1555
|
+
name: 'error',
|
|
1556
|
+
kind: 'Scalar'
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
name: 'schema',
|
|
1560
|
+
kind: 'Scalar'
|
|
1561
|
+
}
|
|
1562
|
+
]
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
function equals$2(existing, incoming) {
|
|
1566
|
+
const existing_schema = existing.schema;
|
|
1567
|
+
const incoming_schema = incoming.schema;
|
|
1568
|
+
if (!(existing_schema === incoming_schema)) {
|
|
1569
|
+
return false;
|
|
1570
|
+
}
|
|
1571
|
+
const existing_error = existing.error;
|
|
1572
|
+
const incoming_error = incoming.error;
|
|
1573
|
+
if (!(existing_error === incoming_error)) {
|
|
1574
|
+
return false;
|
|
1575
|
+
}
|
|
1576
|
+
return true;
|
|
1577
|
+
}
|
|
1578
|
+
const ingest$2 = function IdpGeneratedSchemaRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1579
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1580
|
+
const validateError = validate$2(input);
|
|
1581
|
+
if (validateError !== null) {
|
|
1582
|
+
throw validateError;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
const key = keyBuilderFromType(luvio, input);
|
|
1586
|
+
const ttlToUse = TTL$1;
|
|
1587
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "document-processing", VERSION$2, RepresentationType$2, equals$2);
|
|
1588
|
+
return createLink(key);
|
|
1589
|
+
};
|
|
1590
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
1591
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1592
|
+
const rootKey = keyBuilderFromType(luvio, input);
|
|
1593
|
+
rootKeySet.set(rootKey, {
|
|
1594
|
+
namespace: keyPrefix,
|
|
1595
|
+
representationName: RepresentationType$2,
|
|
1596
|
+
mergeable: false
|
|
1597
|
+
});
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
function select$3(luvio, params) {
|
|
1601
|
+
return select$4();
|
|
1602
|
+
}
|
|
1603
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1604
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
1605
|
+
}
|
|
1606
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
1607
|
+
const { body } = response;
|
|
1608
|
+
const key = keyBuilderFromType(luvio, body);
|
|
1609
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1610
|
+
const snapshot = luvio.storeLookup({
|
|
1611
|
+
recordId: key,
|
|
1612
|
+
node: select$3(),
|
|
1613
|
+
variables: {},
|
|
1614
|
+
});
|
|
1615
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1616
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1617
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
deepFreeze(snapshot.data);
|
|
1621
|
+
return snapshot;
|
|
1622
|
+
}
|
|
1623
|
+
function createResourceRequest$1(config) {
|
|
1624
|
+
const headers = {};
|
|
1625
|
+
return {
|
|
1626
|
+
baseUri: '/services/data/v65.0',
|
|
1627
|
+
basePath: '/ssot/document-processing/actions/generate-schema',
|
|
1628
|
+
method: 'post',
|
|
1629
|
+
body: config.body,
|
|
1630
|
+
urlParams: {},
|
|
1631
|
+
queryParams: {},
|
|
1632
|
+
headers,
|
|
1633
|
+
priority: 'normal',
|
|
1634
|
+
};
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
const adapterName$1 = 'generateIdpConfigurationSchema';
|
|
1638
|
+
const generateIdpConfigurationSchema_ConfigPropertyMetadata = [
|
|
1639
|
+
generateParamConfigMetadata('files', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1640
|
+
generateParamConfigMetadata('mlModel', true, 2 /* Body */, 0 /* String */),
|
|
1641
|
+
];
|
|
1642
|
+
const generateIdpConfigurationSchema_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, generateIdpConfigurationSchema_ConfigPropertyMetadata);
|
|
1643
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(generateIdpConfigurationSchema_ConfigPropertyMetadata);
|
|
1644
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
1645
|
+
const config = {};
|
|
1646
|
+
typeCheckConfig$8(untrustedConfig, config, generateIdpConfigurationSchema_ConfigPropertyMetadata);
|
|
1647
|
+
const untrustedConfig_files = untrustedConfig.files;
|
|
1648
|
+
if (ArrayIsArray$1(untrustedConfig_files)) {
|
|
1649
|
+
const untrustedConfig_files_array = [];
|
|
1650
|
+
for (let i = 0, arrayLength = untrustedConfig_files.length; i < arrayLength; i++) {
|
|
1651
|
+
const untrustedConfig_files_item = untrustedConfig_files[i];
|
|
1652
|
+
const referenceIdpGenerateSchemaFileInputRepresentationValidationError = validate$3(untrustedConfig_files_item);
|
|
1653
|
+
if (referenceIdpGenerateSchemaFileInputRepresentationValidationError === null) {
|
|
1654
|
+
untrustedConfig_files_array.push(untrustedConfig_files_item);
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
config.files = untrustedConfig_files_array;
|
|
1658
|
+
}
|
|
1659
|
+
return config;
|
|
1660
|
+
}
|
|
1661
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
1662
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1663
|
+
return null;
|
|
1664
|
+
}
|
|
1665
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1666
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1667
|
+
}
|
|
1668
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
1669
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1670
|
+
return null;
|
|
1671
|
+
}
|
|
1672
|
+
return config;
|
|
1673
|
+
}
|
|
1674
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
1675
|
+
const resourceParams = createResourceParams$1(config);
|
|
1676
|
+
const request = createResourceRequest$1(resourceParams);
|
|
1677
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1678
|
+
.then((response) => {
|
|
1679
|
+
return luvio.handleSuccessResponse(() => {
|
|
1680
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
1681
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1682
|
+
}, () => {
|
|
1683
|
+
const cache = new StoreKeyMap();
|
|
1684
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1685
|
+
return cache;
|
|
1686
|
+
});
|
|
1687
|
+
}, (response) => {
|
|
1688
|
+
deepFreeze(response);
|
|
1689
|
+
throw response;
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
const generateIdpConfigurationSchemaAdapterFactory = (luvio) => {
|
|
1693
|
+
return function generateIdpConfigurationSchema(untrustedConfig) {
|
|
1694
|
+
const config = validateAdapterConfig$1(untrustedConfig, generateIdpConfigurationSchema_ConfigPropertyNames);
|
|
1695
|
+
// Invalid or incomplete config
|
|
1696
|
+
if (config === null) {
|
|
1697
|
+
throw new Error('Invalid config for "generateIdpConfigurationSchema"');
|
|
1698
|
+
}
|
|
1699
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
1700
|
+
};
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1337
1703
|
const VERSION$1 = "fd5a71c6b42febaf6ada5e5a2c32c8f6";
|
|
1338
1704
|
function validate$1(obj, path = 'IdpExtractedFileDataRepresenation') {
|
|
1339
1705
|
const v_error = (() => {
|
|
@@ -1569,14 +1935,14 @@ const extractDataUsingIdpConfiguration_ConfigPropertyMetadata = [
|
|
|
1569
1935
|
generateParamConfigMetadata('schemaConfig', true, 2 /* Body */, 0 /* String */),
|
|
1570
1936
|
];
|
|
1571
1937
|
const extractDataUsingIdpConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, extractDataUsingIdpConfiguration_ConfigPropertyMetadata);
|
|
1572
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1938
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$8(extractDataUsingIdpConfiguration_ConfigPropertyMetadata);
|
|
1573
1939
|
function keyBuilder(luvio, config) {
|
|
1574
1940
|
const resourceParams = createResourceParams(config);
|
|
1575
1941
|
return keyBuilder$1(luvio, resourceParams);
|
|
1576
1942
|
}
|
|
1577
1943
|
function typeCheckConfig(untrustedConfig) {
|
|
1578
1944
|
const config = {};
|
|
1579
|
-
typeCheckConfig$
|
|
1945
|
+
typeCheckConfig$8(untrustedConfig, config, extractDataUsingIdpConfiguration_ConfigPropertyMetadata);
|
|
1580
1946
|
const untrustedConfig_files = untrustedConfig.files;
|
|
1581
1947
|
if (ArrayIsArray$1(untrustedConfig_files)) {
|
|
1582
1948
|
const untrustedConfig_files_array = [];
|
|
@@ -1668,4 +2034,4 @@ const extractDataUsingIdpConfigurationAdapterFactory = (luvio) => function docum
|
|
|
1668
2034
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1669
2035
|
};
|
|
1670
2036
|
|
|
1671
|
-
export { createIdpConfigurationAdapterFactory, deleteIdpConfigurationAdapterFactory, extractDataUsingIdpConfigurationAdapterFactory, getIdpConfigurationAdapterFactory, getIdpConfigurationsAdapterFactory, getIdpGlobalConfigAdapterFactory };
|
|
2037
|
+
export { createIdpConfigurationAdapterFactory, deleteIdpConfigurationAdapterFactory, extractDataUsingIdpConfigurationAdapterFactory, generateIdpConfigurationSchemaAdapterFactory, getIdpConfigurationAdapterFactory, getIdpConfigurationsAdapterFactory, getIdpGlobalConfigAdapterFactory, updateIdpConfigurationAdapterFactory };
|