@salesforce/lds-adapters-industries-clm 1.273.1 → 1.274.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/industries-clm.js +591 -86
- package/dist/es/es2018/types/src/generated/adapters/getDocumentRecipientAndStatus.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getExternalDocumentReviewCC.d.ts +27 -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 +5 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectClmCcDocumentRecipient.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectClmCcExternalDocument.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/ContractDocumentVersionCCRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/DocumentRecipientStatusCCRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/ExternalDocumentReviewCCRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/RecipientOutputRepresentation.d.ts +37 -0
- package/package.json +4 -4
- package/sfdc/index.js +1297 -768
- package/src/raml/api.raml +128 -20
- package/src/raml/luvio.raml +46 -24
|
@@ -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$9, typeCheckConfig as typeCheckConfig$n, StoreKeyMap, createResourceParams as createResourceParams$n } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -93,8 +93,8 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const VERSION$
|
|
97
|
-
function validate$
|
|
96
|
+
const VERSION$d = "e255b3b91a7dfe6d12fa716115f11ab1";
|
|
97
|
+
function validate$m(obj, path = 'ContentDocumentRepresentation') {
|
|
98
98
|
const v_error = (() => {
|
|
99
99
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
100
100
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -148,10 +148,10 @@ function validate$j(obj, path = 'ContentDocumentRepresentation') {
|
|
|
148
148
|
})();
|
|
149
149
|
return v_error === undefined ? null : v_error;
|
|
150
150
|
}
|
|
151
|
-
const select$
|
|
151
|
+
const select$y = function ContentDocumentRepresentationSelect() {
|
|
152
152
|
return {
|
|
153
153
|
kind: 'Fragment',
|
|
154
|
-
version: VERSION$
|
|
154
|
+
version: VERSION$d,
|
|
155
155
|
private: [],
|
|
156
156
|
selections: [
|
|
157
157
|
{
|
|
@@ -192,7 +192,7 @@ const select$u = function ContentDocumentRepresentationSelect() {
|
|
|
192
192
|
]
|
|
193
193
|
};
|
|
194
194
|
};
|
|
195
|
-
function equals$
|
|
195
|
+
function equals$d(existing, incoming) {
|
|
196
196
|
const existing_isSharedExternally = existing.isSharedExternally;
|
|
197
197
|
const incoming_isSharedExternally = incoming.isSharedExternally;
|
|
198
198
|
// if at least one of these optionals is defined
|
|
@@ -260,9 +260,9 @@ function equals$b(existing, incoming) {
|
|
|
260
260
|
return true;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
const TTL$
|
|
264
|
-
const VERSION$
|
|
265
|
-
function validate$
|
|
263
|
+
const TTL$b = 60000;
|
|
264
|
+
const VERSION$c = "d6a2283ee8cd23d6fb36c3591a0e7f41";
|
|
265
|
+
function validate$l(obj, path = 'ContractDocumentVersionCCRepresentation') {
|
|
266
266
|
const v_error = (() => {
|
|
267
267
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
268
268
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -276,7 +276,7 @@ function validate$i(obj, path = 'ContractDocumentVersionCCRepresentation') {
|
|
|
276
276
|
for (let i = 0; i < obj_attachments.length; i++) {
|
|
277
277
|
const obj_attachments_item = obj_attachments[i];
|
|
278
278
|
const path_attachments_item = path_attachments + '[' + i + ']';
|
|
279
|
-
const referencepath_attachments_itemValidationError = validate$
|
|
279
|
+
const referencepath_attachments_itemValidationError = validate$m(obj_attachments_item, path_attachments_item);
|
|
280
280
|
if (referencepath_attachments_itemValidationError !== null) {
|
|
281
281
|
let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_attachments_item + '")\n';
|
|
282
282
|
message += referencepath_attachments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -284,6 +284,13 @@ function validate$i(obj, path = 'ContractDocumentVersionCCRepresentation') {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
+
if (obj.canCurrentUserReview !== undefined) {
|
|
288
|
+
const obj_canCurrentUserReview = obj.canCurrentUserReview;
|
|
289
|
+
const path_canCurrentUserReview = path + '.canCurrentUserReview';
|
|
290
|
+
if (typeof obj_canCurrentUserReview !== 'boolean') {
|
|
291
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_canCurrentUserReview + '" (at "' + path_canCurrentUserReview + '")');
|
|
292
|
+
}
|
|
293
|
+
}
|
|
287
294
|
const obj_contractDocumentVersionId = obj.contractDocumentVersionId;
|
|
288
295
|
const path_contractDocumentVersionId = path + '.contractDocumentVersionId';
|
|
289
296
|
if (typeof obj_contractDocumentVersionId !== 'string') {
|
|
@@ -298,7 +305,7 @@ function validate$i(obj, path = 'ContractDocumentVersionCCRepresentation') {
|
|
|
298
305
|
for (let i = 0; i < obj_contractDocuments.length; i++) {
|
|
299
306
|
const obj_contractDocuments_item = obj_contractDocuments[i];
|
|
300
307
|
const path_contractDocuments_item = path_contractDocuments + '[' + i + ']';
|
|
301
|
-
const referencepath_contractDocuments_itemValidationError = validate$
|
|
308
|
+
const referencepath_contractDocuments_itemValidationError = validate$m(obj_contractDocuments_item, path_contractDocuments_item);
|
|
302
309
|
if (referencepath_contractDocuments_itemValidationError !== null) {
|
|
303
310
|
let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_contractDocuments_item + '")\n';
|
|
304
311
|
message += referencepath_contractDocuments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -311,6 +318,13 @@ function validate$i(obj, path = 'ContractDocumentVersionCCRepresentation') {
|
|
|
311
318
|
if (typeof obj_contractId !== 'string') {
|
|
312
319
|
return new TypeError('Expected "string" but received "' + typeof obj_contractId + '" (at "' + path_contractId + '")');
|
|
313
320
|
}
|
|
321
|
+
if (obj.isDocumentVersionLocked !== undefined) {
|
|
322
|
+
const obj_isDocumentVersionLocked = obj.isDocumentVersionLocked;
|
|
323
|
+
const path_isDocumentVersionLocked = path + '.isDocumentVersionLocked';
|
|
324
|
+
if (typeof obj_isDocumentVersionLocked !== 'boolean') {
|
|
325
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDocumentVersionLocked + '" (at "' + path_isDocumentVersionLocked + '")');
|
|
326
|
+
}
|
|
327
|
+
}
|
|
314
328
|
const obj_name = obj.name;
|
|
315
329
|
const path_name = path + '.name';
|
|
316
330
|
if (typeof obj_name !== 'string') {
|
|
@@ -324,20 +338,514 @@ function validate$i(obj, path = 'ContractDocumentVersionCCRepresentation') {
|
|
|
324
338
|
})();
|
|
325
339
|
return v_error === undefined ? null : v_error;
|
|
326
340
|
}
|
|
327
|
-
const RepresentationType$
|
|
328
|
-
function keyBuilder$
|
|
329
|
-
return keyPrefix + '::' + RepresentationType$
|
|
341
|
+
const RepresentationType$c = 'ContractDocumentVersionCCRepresentation';
|
|
342
|
+
function keyBuilder$r(luvio, config) {
|
|
343
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.contractId;
|
|
330
344
|
}
|
|
331
345
|
function keyBuilderFromType$7(luvio, object) {
|
|
332
346
|
const keyParams = {
|
|
333
347
|
contractId: object.contractId
|
|
334
348
|
};
|
|
335
|
-
return keyBuilder$
|
|
349
|
+
return keyBuilder$r(luvio, keyParams);
|
|
350
|
+
}
|
|
351
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
352
|
+
return input;
|
|
353
|
+
}
|
|
354
|
+
const select$x = function ContractDocumentVersionCCRepresentationSelect() {
|
|
355
|
+
return {
|
|
356
|
+
kind: 'Fragment',
|
|
357
|
+
version: VERSION$c,
|
|
358
|
+
private: [],
|
|
359
|
+
opaque: true
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
function equals$c(existing, incoming) {
|
|
363
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
364
|
+
return false;
|
|
365
|
+
}
|
|
366
|
+
return true;
|
|
367
|
+
}
|
|
368
|
+
const ingest$c = function ContractDocumentVersionCCRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
369
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
370
|
+
const validateError = validate$l(input);
|
|
371
|
+
if (validateError !== null) {
|
|
372
|
+
throw validateError;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
376
|
+
const ttlToUse = TTL$b;
|
|
377
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "clm", VERSION$c, RepresentationType$c, equals$c);
|
|
378
|
+
return createLink(key);
|
|
379
|
+
};
|
|
380
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
381
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
382
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
383
|
+
rootKeySet.set(rootKey, {
|
|
384
|
+
namespace: keyPrefix,
|
|
385
|
+
representationName: RepresentationType$c,
|
|
386
|
+
mergeable: false
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
function select$w(luvio, params) {
|
|
391
|
+
return select$x();
|
|
392
|
+
}
|
|
393
|
+
function keyBuilder$q(luvio, params) {
|
|
394
|
+
return keyBuilder$r(luvio, {
|
|
395
|
+
contractId: params.urlParams.contractId
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
function getResponseCacheKeys$m(storeKeyMap, luvio, resourceParams, response) {
|
|
399
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
400
|
+
}
|
|
401
|
+
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
402
|
+
const { body } = response;
|
|
403
|
+
const key = keyBuilder$q(luvio, resourceParams);
|
|
404
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
405
|
+
const snapshot = luvio.storeLookup({
|
|
406
|
+
recordId: key,
|
|
407
|
+
node: select$w(),
|
|
408
|
+
variables: {},
|
|
409
|
+
}, snapshotRefresh);
|
|
410
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
411
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
412
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
deepFreeze(snapshot.data);
|
|
416
|
+
return snapshot;
|
|
417
|
+
}
|
|
418
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
419
|
+
const key = keyBuilder$q(luvio, params);
|
|
420
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
421
|
+
const storeMetadataParams = {
|
|
422
|
+
ttl: TTL$b,
|
|
423
|
+
namespace: keyPrefix,
|
|
424
|
+
version: VERSION$c,
|
|
425
|
+
representationName: RepresentationType$c
|
|
426
|
+
};
|
|
427
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
428
|
+
return errorSnapshot;
|
|
429
|
+
}
|
|
430
|
+
function createResourceRequest$m(config) {
|
|
431
|
+
const headers = {};
|
|
432
|
+
return {
|
|
433
|
+
baseUri: '/services/data/v61.0',
|
|
434
|
+
basePath: '/connect/clm/cc/contract/' + config.urlParams.contractId + '/contract-document-version',
|
|
435
|
+
method: 'get',
|
|
436
|
+
body: null,
|
|
437
|
+
urlParams: config.urlParams,
|
|
438
|
+
queryParams: config.queryParams,
|
|
439
|
+
headers,
|
|
440
|
+
priority: 'normal',
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
const adapterName$m = 'getLatestContractDocumentVersionCC';
|
|
445
|
+
const getLatestContractDocumentVersionCC_ConfigPropertyMetadata = [
|
|
446
|
+
generateParamConfigMetadata('contractId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
447
|
+
generateParamConfigMetadata('showDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
448
|
+
];
|
|
449
|
+
const getLatestContractDocumentVersionCC_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, getLatestContractDocumentVersionCC_ConfigPropertyMetadata);
|
|
450
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$n(getLatestContractDocumentVersionCC_ConfigPropertyMetadata);
|
|
451
|
+
function keyBuilder$p(luvio, config) {
|
|
452
|
+
const resourceParams = createResourceParams$m(config);
|
|
453
|
+
return keyBuilder$q(luvio, resourceParams);
|
|
454
|
+
}
|
|
455
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
456
|
+
const config = {};
|
|
457
|
+
typeCheckConfig$n(untrustedConfig, config, getLatestContractDocumentVersionCC_ConfigPropertyMetadata);
|
|
458
|
+
return config;
|
|
459
|
+
}
|
|
460
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
461
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
462
|
+
return null;
|
|
463
|
+
}
|
|
464
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
465
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
466
|
+
}
|
|
467
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
468
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
469
|
+
return null;
|
|
470
|
+
}
|
|
471
|
+
return config;
|
|
472
|
+
}
|
|
473
|
+
function adapterFragment$8(luvio, config) {
|
|
474
|
+
createResourceParams$m(config);
|
|
475
|
+
return select$w();
|
|
476
|
+
}
|
|
477
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
478
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
479
|
+
config,
|
|
480
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
481
|
+
});
|
|
482
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
483
|
+
}
|
|
484
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
485
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
486
|
+
config,
|
|
487
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
488
|
+
});
|
|
489
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
490
|
+
}
|
|
491
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
492
|
+
const resourceParams = createResourceParams$m(config);
|
|
493
|
+
const request = createResourceRequest$m(resourceParams);
|
|
494
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
495
|
+
.then((response) => {
|
|
496
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
497
|
+
const cache = new StoreKeyMap();
|
|
498
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams, response.body);
|
|
499
|
+
return cache;
|
|
500
|
+
});
|
|
501
|
+
}, (response) => {
|
|
502
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
506
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$m, undefined, false);
|
|
507
|
+
}
|
|
508
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
509
|
+
const { luvio, config } = context;
|
|
510
|
+
const selector = {
|
|
511
|
+
recordId: keyBuilder$p(luvio, config),
|
|
512
|
+
node: adapterFragment$8(luvio, config),
|
|
513
|
+
variables: {},
|
|
514
|
+
};
|
|
515
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
516
|
+
config,
|
|
517
|
+
resolve: () => buildNetworkSnapshot$m(luvio, config, snapshotRefreshOptions)
|
|
518
|
+
});
|
|
519
|
+
return cacheSnapshot;
|
|
520
|
+
}
|
|
521
|
+
const getLatestContractDocumentVersionCCAdapterFactory = (luvio) => function clm__getLatestContractDocumentVersionCC(untrustedConfig, requestContext) {
|
|
522
|
+
const config = validateAdapterConfig$m(untrustedConfig, getLatestContractDocumentVersionCC_ConfigPropertyNames);
|
|
523
|
+
// Invalid or incomplete config
|
|
524
|
+
if (config === null) {
|
|
525
|
+
return null;
|
|
526
|
+
}
|
|
527
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
528
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
function validate$k(obj, path = 'RecipientOutputRepresentation') {
|
|
532
|
+
const v_error = (() => {
|
|
533
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
534
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
535
|
+
}
|
|
536
|
+
const obj_email = obj.email;
|
|
537
|
+
const path_email = path + '.email';
|
|
538
|
+
if (typeof obj_email !== 'string') {
|
|
539
|
+
return new TypeError('Expected "string" but received "' + typeof obj_email + '" (at "' + path_email + '")');
|
|
540
|
+
}
|
|
541
|
+
const obj_finalStatusDateTime = obj.finalStatusDateTime;
|
|
542
|
+
const path_finalStatusDateTime = path + '.finalStatusDateTime';
|
|
543
|
+
if (typeof obj_finalStatusDateTime !== 'string') {
|
|
544
|
+
return new TypeError('Expected "string" but received "' + typeof obj_finalStatusDateTime + '" (at "' + path_finalStatusDateTime + '")');
|
|
545
|
+
}
|
|
546
|
+
const obj_name = obj.name;
|
|
547
|
+
const path_name = path + '.name';
|
|
548
|
+
if (typeof obj_name !== 'string') {
|
|
549
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
550
|
+
}
|
|
551
|
+
const obj_status = obj.status;
|
|
552
|
+
const path_status = path + '.status';
|
|
553
|
+
if (typeof obj_status !== 'string') {
|
|
554
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
555
|
+
}
|
|
556
|
+
})();
|
|
557
|
+
return v_error === undefined ? null : v_error;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
const TTL$a = 60000;
|
|
561
|
+
const VERSION$b = "fb5c9e0b2093fbf0bcf29845f2c2d384";
|
|
562
|
+
function validate$j(obj, path = 'DocumentRecipientStatusCCRepresentation') {
|
|
563
|
+
const v_error = (() => {
|
|
564
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
565
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
566
|
+
}
|
|
567
|
+
const obj_contractDocumentVersionId = obj.contractDocumentVersionId;
|
|
568
|
+
const path_contractDocumentVersionId = path + '.contractDocumentVersionId';
|
|
569
|
+
if (typeof obj_contractDocumentVersionId !== 'string') {
|
|
570
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contractDocumentVersionId + '" (at "' + path_contractDocumentVersionId + '")');
|
|
571
|
+
}
|
|
572
|
+
if (obj.hasCurrentUserSigned !== undefined) {
|
|
573
|
+
const obj_hasCurrentUserSigned = obj.hasCurrentUserSigned;
|
|
574
|
+
const path_hasCurrentUserSigned = path + '.hasCurrentUserSigned';
|
|
575
|
+
if (typeof obj_hasCurrentUserSigned !== 'boolean') {
|
|
576
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasCurrentUserSigned + '" (at "' + path_hasCurrentUserSigned + '")');
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if (obj.isCurrentUserRecipient !== undefined) {
|
|
580
|
+
const obj_isCurrentUserRecipient = obj.isCurrentUserRecipient;
|
|
581
|
+
const path_isCurrentUserRecipient = path + '.isCurrentUserRecipient';
|
|
582
|
+
if (typeof obj_isCurrentUserRecipient !== 'boolean') {
|
|
583
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isCurrentUserRecipient + '" (at "' + path_isCurrentUserRecipient + '")');
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
if (obj.precedingSignersExists !== undefined) {
|
|
587
|
+
const obj_precedingSignersExists = obj.precedingSignersExists;
|
|
588
|
+
const path_precedingSignersExists = path + '.precedingSignersExists';
|
|
589
|
+
if (typeof obj_precedingSignersExists !== 'boolean') {
|
|
590
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_precedingSignersExists + '" (at "' + path_precedingSignersExists + '")');
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
if (obj.precedingSignersSigned !== undefined) {
|
|
594
|
+
const obj_precedingSignersSigned = obj.precedingSignersSigned;
|
|
595
|
+
const path_precedingSignersSigned = path + '.precedingSignersSigned';
|
|
596
|
+
if (typeof obj_precedingSignersSigned !== 'boolean') {
|
|
597
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_precedingSignersSigned + '" (at "' + path_precedingSignersSigned + '")');
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
if (obj.recipientSequence !== undefined) {
|
|
601
|
+
const obj_recipientSequence = obj.recipientSequence;
|
|
602
|
+
const path_recipientSequence = path + '.recipientSequence';
|
|
603
|
+
if (typeof obj_recipientSequence !== 'number' || (typeof obj_recipientSequence === 'number' && Math.floor(obj_recipientSequence) !== obj_recipientSequence)) {
|
|
604
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_recipientSequence + '" (at "' + path_recipientSequence + '")');
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
if (obj.recipients !== undefined) {
|
|
608
|
+
const obj_recipients = obj.recipients;
|
|
609
|
+
const path_recipients = path + '.recipients';
|
|
610
|
+
if (!ArrayIsArray(obj_recipients)) {
|
|
611
|
+
return new TypeError('Expected "array" but received "' + typeof obj_recipients + '" (at "' + path_recipients + '")');
|
|
612
|
+
}
|
|
613
|
+
for (let i = 0; i < obj_recipients.length; i++) {
|
|
614
|
+
const obj_recipients_item = obj_recipients[i];
|
|
615
|
+
const path_recipients_item = path_recipients + '[' + i + ']';
|
|
616
|
+
const referencepath_recipients_itemValidationError = validate$k(obj_recipients_item, path_recipients_item);
|
|
617
|
+
if (referencepath_recipients_itemValidationError !== null) {
|
|
618
|
+
let message = 'Object doesn\'t match RecipientOutputRepresentation (at "' + path_recipients_item + '")\n';
|
|
619
|
+
message += referencepath_recipients_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
620
|
+
return new TypeError(message);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
})();
|
|
625
|
+
return v_error === undefined ? null : v_error;
|
|
626
|
+
}
|
|
627
|
+
const RepresentationType$b = 'DocumentRecipientStatusCCRepresentation';
|
|
628
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
629
|
+
return input;
|
|
630
|
+
}
|
|
631
|
+
const select$v = function DocumentRecipientStatusCCRepresentationSelect() {
|
|
632
|
+
return {
|
|
633
|
+
kind: 'Fragment',
|
|
634
|
+
version: VERSION$b,
|
|
635
|
+
private: [],
|
|
636
|
+
opaque: true
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
function equals$b(existing, incoming) {
|
|
640
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
641
|
+
return false;
|
|
642
|
+
}
|
|
643
|
+
return true;
|
|
644
|
+
}
|
|
645
|
+
const ingest$b = function DocumentRecipientStatusCCRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
646
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
647
|
+
const validateError = validate$j(input);
|
|
648
|
+
if (validateError !== null) {
|
|
649
|
+
throw validateError;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
const key = path.fullPath;
|
|
653
|
+
const ttlToUse = TTL$a;
|
|
654
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "clm", VERSION$b, RepresentationType$b, equals$b);
|
|
655
|
+
return createLink(key);
|
|
656
|
+
};
|
|
657
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
658
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
659
|
+
const rootKey = fullPathFactory();
|
|
660
|
+
rootKeySet.set(rootKey, {
|
|
661
|
+
namespace: keyPrefix,
|
|
662
|
+
representationName: RepresentationType$b,
|
|
663
|
+
mergeable: false
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
function select$u(luvio, params) {
|
|
668
|
+
return select$v();
|
|
669
|
+
}
|
|
670
|
+
function keyBuilder$o(luvio, params) {
|
|
671
|
+
return keyPrefix + '::DocumentRecipientStatusCCRepresentation:(' + 'contractDocumentVersionId:' + params.queryParams.contractDocumentVersionId + ')';
|
|
672
|
+
}
|
|
673
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
674
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$o(luvio, resourceParams));
|
|
675
|
+
}
|
|
676
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
677
|
+
const { body } = response;
|
|
678
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
679
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
680
|
+
const snapshot = luvio.storeLookup({
|
|
681
|
+
recordId: key,
|
|
682
|
+
node: select$u(),
|
|
683
|
+
variables: {},
|
|
684
|
+
}, snapshotRefresh);
|
|
685
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
686
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
687
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
deepFreeze(snapshot.data);
|
|
691
|
+
return snapshot;
|
|
692
|
+
}
|
|
693
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
694
|
+
const key = keyBuilder$o(luvio, params);
|
|
695
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
696
|
+
const storeMetadataParams = {
|
|
697
|
+
ttl: TTL$a,
|
|
698
|
+
namespace: keyPrefix,
|
|
699
|
+
version: VERSION$b,
|
|
700
|
+
representationName: RepresentationType$b
|
|
701
|
+
};
|
|
702
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
703
|
+
return errorSnapshot;
|
|
704
|
+
}
|
|
705
|
+
function createResourceRequest$l(config) {
|
|
706
|
+
const headers = {};
|
|
707
|
+
return {
|
|
708
|
+
baseUri: '/services/data/v61.0',
|
|
709
|
+
basePath: '/connect/clm/cc/documentRecipient',
|
|
710
|
+
method: 'get',
|
|
711
|
+
body: null,
|
|
712
|
+
urlParams: {},
|
|
713
|
+
queryParams: config.queryParams,
|
|
714
|
+
headers,
|
|
715
|
+
priority: 'normal',
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
const adapterName$l = 'getDocumentRecipientAndStatus';
|
|
720
|
+
const getDocumentRecipientAndStatus_ConfigPropertyMetadata = [
|
|
721
|
+
generateParamConfigMetadata('contractDocumentVersionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
722
|
+
];
|
|
723
|
+
const getDocumentRecipientAndStatus_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getDocumentRecipientAndStatus_ConfigPropertyMetadata);
|
|
724
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$n(getDocumentRecipientAndStatus_ConfigPropertyMetadata);
|
|
725
|
+
function keyBuilder$n(luvio, config) {
|
|
726
|
+
const resourceParams = createResourceParams$l(config);
|
|
727
|
+
return keyBuilder$o(luvio, resourceParams);
|
|
728
|
+
}
|
|
729
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
730
|
+
const config = {};
|
|
731
|
+
typeCheckConfig$n(untrustedConfig, config, getDocumentRecipientAndStatus_ConfigPropertyMetadata);
|
|
732
|
+
return config;
|
|
733
|
+
}
|
|
734
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
735
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
736
|
+
return null;
|
|
737
|
+
}
|
|
738
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
739
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
740
|
+
}
|
|
741
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
742
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
743
|
+
return null;
|
|
744
|
+
}
|
|
745
|
+
return config;
|
|
746
|
+
}
|
|
747
|
+
function adapterFragment$7(luvio, config) {
|
|
748
|
+
createResourceParams$l(config);
|
|
749
|
+
return select$u();
|
|
750
|
+
}
|
|
751
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
752
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
753
|
+
config,
|
|
754
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
755
|
+
});
|
|
756
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
757
|
+
}
|
|
758
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
759
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
760
|
+
config,
|
|
761
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
762
|
+
});
|
|
763
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
764
|
+
}
|
|
765
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
766
|
+
const resourceParams = createResourceParams$l(config);
|
|
767
|
+
const request = createResourceRequest$l(resourceParams);
|
|
768
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
769
|
+
.then((response) => {
|
|
770
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
771
|
+
const cache = new StoreKeyMap();
|
|
772
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
773
|
+
return cache;
|
|
774
|
+
});
|
|
775
|
+
}, (response) => {
|
|
776
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
780
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
781
|
+
}
|
|
782
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
783
|
+
const { luvio, config } = context;
|
|
784
|
+
const selector = {
|
|
785
|
+
recordId: keyBuilder$n(luvio, config),
|
|
786
|
+
node: adapterFragment$7(luvio, config),
|
|
787
|
+
variables: {},
|
|
788
|
+
};
|
|
789
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
790
|
+
config,
|
|
791
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
792
|
+
});
|
|
793
|
+
return cacheSnapshot;
|
|
336
794
|
}
|
|
795
|
+
const getDocumentRecipientAndStatusAdapterFactory = (luvio) => function clm__getDocumentRecipientAndStatus(untrustedConfig, requestContext) {
|
|
796
|
+
const config = validateAdapterConfig$l(untrustedConfig, getDocumentRecipientAndStatus_ConfigPropertyNames);
|
|
797
|
+
// Invalid or incomplete config
|
|
798
|
+
if (config === null) {
|
|
799
|
+
return null;
|
|
800
|
+
}
|
|
801
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
802
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
const TTL$9 = 60000;
|
|
806
|
+
const VERSION$a = "03da7477aacba1366b698e5b14227304";
|
|
807
|
+
function validate$i(obj, path = 'ExternalDocumentReviewCCRepresentation') {
|
|
808
|
+
const v_error = (() => {
|
|
809
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
810
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
811
|
+
}
|
|
812
|
+
const obj_contentVersionId = obj.contentVersionId;
|
|
813
|
+
const path_contentVersionId = path + '.contentVersionId';
|
|
814
|
+
if (typeof obj_contentVersionId !== 'string') {
|
|
815
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contentVersionId + '" (at "' + path_contentVersionId + '")');
|
|
816
|
+
}
|
|
817
|
+
const obj_contractDocumentVersionId = obj.contractDocumentVersionId;
|
|
818
|
+
const path_contractDocumentVersionId = path + '.contractDocumentVersionId';
|
|
819
|
+
if (typeof obj_contractDocumentVersionId !== 'string') {
|
|
820
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contractDocumentVersionId + '" (at "' + path_contractDocumentVersionId + '")');
|
|
821
|
+
}
|
|
822
|
+
const obj_externalDocumentId = obj.externalDocumentId;
|
|
823
|
+
const path_externalDocumentId = path + '.externalDocumentId';
|
|
824
|
+
if (typeof obj_externalDocumentId !== 'string') {
|
|
825
|
+
return new TypeError('Expected "string" but received "' + typeof obj_externalDocumentId + '" (at "' + path_externalDocumentId + '")');
|
|
826
|
+
}
|
|
827
|
+
if (obj.isReviewCompletedByCurrentUser !== undefined) {
|
|
828
|
+
const obj_isReviewCompletedByCurrentUser = obj.isReviewCompletedByCurrentUser;
|
|
829
|
+
const path_isReviewCompletedByCurrentUser = path + '.isReviewCompletedByCurrentUser';
|
|
830
|
+
if (typeof obj_isReviewCompletedByCurrentUser !== 'boolean') {
|
|
831
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isReviewCompletedByCurrentUser + '" (at "' + path_isReviewCompletedByCurrentUser + '")');
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
if (obj.url !== undefined) {
|
|
835
|
+
const obj_url = obj.url;
|
|
836
|
+
const path_url = path + '.url';
|
|
837
|
+
if (typeof obj_url !== 'string') {
|
|
838
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
})();
|
|
842
|
+
return v_error === undefined ? null : v_error;
|
|
843
|
+
}
|
|
844
|
+
const RepresentationType$a = 'ExternalDocumentReviewCCRepresentation';
|
|
337
845
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
338
846
|
return input;
|
|
339
847
|
}
|
|
340
|
-
const select$t = function
|
|
848
|
+
const select$t = function ExternalDocumentReviewCCRepresentationSelect() {
|
|
341
849
|
return {
|
|
342
850
|
kind: 'Fragment',
|
|
343
851
|
version: VERSION$a,
|
|
@@ -351,21 +859,21 @@ function equals$a(existing, incoming) {
|
|
|
351
859
|
}
|
|
352
860
|
return true;
|
|
353
861
|
}
|
|
354
|
-
const ingest$a = function
|
|
862
|
+
const ingest$a = function ExternalDocumentReviewCCRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
355
863
|
if (process.env.NODE_ENV !== 'production') {
|
|
356
864
|
const validateError = validate$i(input);
|
|
357
865
|
if (validateError !== null) {
|
|
358
866
|
throw validateError;
|
|
359
867
|
}
|
|
360
868
|
}
|
|
361
|
-
const key =
|
|
869
|
+
const key = path.fullPath;
|
|
362
870
|
const ttlToUse = TTL$9;
|
|
363
871
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "clm", VERSION$a, RepresentationType$a, equals$a);
|
|
364
872
|
return createLink(key);
|
|
365
873
|
};
|
|
366
874
|
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
367
875
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
368
|
-
const rootKey =
|
|
876
|
+
const rootKey = fullPathFactory();
|
|
369
877
|
rootKeySet.set(rootKey, {
|
|
370
878
|
namespace: keyPrefix,
|
|
371
879
|
representationName: RepresentationType$a,
|
|
@@ -377,12 +885,10 @@ function select$s(luvio, params) {
|
|
|
377
885
|
return select$t();
|
|
378
886
|
}
|
|
379
887
|
function keyBuilder$m(luvio, params) {
|
|
380
|
-
return
|
|
381
|
-
contractId: params.urlParams.contractId
|
|
382
|
-
});
|
|
888
|
+
return keyPrefix + '::ExternalDocumentReviewCCRepresentation:(' + 'contractDocumentVersionId:' + params.queryParams.contractDocumentVersionId + ')';
|
|
383
889
|
}
|
|
384
890
|
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
385
|
-
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
891
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
|
|
386
892
|
}
|
|
387
893
|
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
388
894
|
const { body } = response;
|
|
@@ -417,30 +923,29 @@ function createResourceRequest$k(config) {
|
|
|
417
923
|
const headers = {};
|
|
418
924
|
return {
|
|
419
925
|
baseUri: '/services/data/v61.0',
|
|
420
|
-
basePath: '/connect/clm/cc/
|
|
926
|
+
basePath: '/connect/clm/cc/external-document',
|
|
421
927
|
method: 'get',
|
|
422
928
|
body: null,
|
|
423
|
-
urlParams:
|
|
929
|
+
urlParams: {},
|
|
424
930
|
queryParams: config.queryParams,
|
|
425
931
|
headers,
|
|
426
932
|
priority: 'normal',
|
|
427
933
|
};
|
|
428
934
|
}
|
|
429
935
|
|
|
430
|
-
const adapterName$k = '
|
|
431
|
-
const
|
|
432
|
-
generateParamConfigMetadata('
|
|
433
|
-
generateParamConfigMetadata('showDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
936
|
+
const adapterName$k = 'getExternalDocumentReviewCC';
|
|
937
|
+
const getExternalDocumentReviewCC_ConfigPropertyMetadata = [
|
|
938
|
+
generateParamConfigMetadata('contractDocumentVersionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
434
939
|
];
|
|
435
|
-
const
|
|
436
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
940
|
+
const getExternalDocumentReviewCC_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getExternalDocumentReviewCC_ConfigPropertyMetadata);
|
|
941
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$n(getExternalDocumentReviewCC_ConfigPropertyMetadata);
|
|
437
942
|
function keyBuilder$l(luvio, config) {
|
|
438
943
|
const resourceParams = createResourceParams$k(config);
|
|
439
944
|
return keyBuilder$m(luvio, resourceParams);
|
|
440
945
|
}
|
|
441
946
|
function typeCheckConfig$k(untrustedConfig) {
|
|
442
947
|
const config = {};
|
|
443
|
-
typeCheckConfig$
|
|
948
|
+
typeCheckConfig$n(untrustedConfig, config, getExternalDocumentReviewCC_ConfigPropertyMetadata);
|
|
444
949
|
return config;
|
|
445
950
|
}
|
|
446
951
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -489,7 +994,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
489
994
|
});
|
|
490
995
|
}
|
|
491
996
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
492
|
-
return buildNetworkSnapshotCachePolicy$
|
|
997
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
493
998
|
}
|
|
494
999
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
495
1000
|
const { luvio, config } = context;
|
|
@@ -504,8 +1009,8 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
504
1009
|
});
|
|
505
1010
|
return cacheSnapshot;
|
|
506
1011
|
}
|
|
507
|
-
const
|
|
508
|
-
const config = validateAdapterConfig$k(untrustedConfig,
|
|
1012
|
+
const getExternalDocumentReviewCCAdapterFactory = (luvio) => function clm__getExternalDocumentReviewCC(untrustedConfig, requestContext) {
|
|
1013
|
+
const config = validateAdapterConfig$k(untrustedConfig, getExternalDocumentReviewCC_ConfigPropertyNames);
|
|
509
1014
|
// Invalid or incomplete config
|
|
510
1015
|
if (config === null) {
|
|
511
1016
|
return null;
|
|
@@ -667,10 +1172,10 @@ const executeContractAction_ConfigPropertyMetadata = [
|
|
|
667
1172
|
generateParamConfigMetadata('actionInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
668
1173
|
];
|
|
669
1174
|
const executeContractAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, executeContractAction_ConfigPropertyMetadata);
|
|
670
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
1175
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$n(executeContractAction_ConfigPropertyMetadata);
|
|
671
1176
|
function typeCheckConfig$j(untrustedConfig) {
|
|
672
1177
|
const config = {};
|
|
673
|
-
typeCheckConfig$
|
|
1178
|
+
typeCheckConfig$n(untrustedConfig, config, executeContractAction_ConfigPropertyMetadata);
|
|
674
1179
|
const untrustedConfig_actionInput = untrustedConfig.actionInput;
|
|
675
1180
|
const referenceContractActionInputRepresentationValidationError = validate$h(untrustedConfig_actionInput);
|
|
676
1181
|
if (referenceContractActionInputRepresentationValidationError === null) {
|
|
@@ -934,14 +1439,14 @@ const getContractDocumentVersion_ConfigPropertyMetadata = [
|
|
|
934
1439
|
generateParamConfigMetadata('contractDocumentVersionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
935
1440
|
];
|
|
936
1441
|
const getContractDocumentVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getContractDocumentVersion_ConfigPropertyMetadata);
|
|
937
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
1442
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$n(getContractDocumentVersion_ConfigPropertyMetadata);
|
|
938
1443
|
function keyBuilder$i(luvio, config) {
|
|
939
1444
|
const resourceParams = createResourceParams$i(config);
|
|
940
1445
|
return keyBuilder$j(luvio, resourceParams);
|
|
941
1446
|
}
|
|
942
1447
|
function typeCheckConfig$i(untrustedConfig) {
|
|
943
1448
|
const config = {};
|
|
944
|
-
typeCheckConfig$
|
|
1449
|
+
typeCheckConfig$n(untrustedConfig, config, getContractDocumentVersion_ConfigPropertyMetadata);
|
|
945
1450
|
return config;
|
|
946
1451
|
}
|
|
947
1452
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -990,7 +1495,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
990
1495
|
});
|
|
991
1496
|
}
|
|
992
1497
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
993
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1498
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
994
1499
|
}
|
|
995
1500
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
996
1501
|
const { luvio, config } = context;
|
|
@@ -1073,7 +1578,7 @@ function validate$c(obj, path = 'DocumentGenerateRepresentation') {
|
|
|
1073
1578
|
for (let i = 0; i < obj_contentDocuments.length; i++) {
|
|
1074
1579
|
const obj_contentDocuments_item = obj_contentDocuments[i];
|
|
1075
1580
|
const path_contentDocuments_item = path_contentDocuments + '[' + i + ']';
|
|
1076
|
-
const referencepath_contentDocuments_itemValidationError = validate$
|
|
1581
|
+
const referencepath_contentDocuments_itemValidationError = validate$m(obj_contentDocuments_item, path_contentDocuments_item);
|
|
1077
1582
|
if (referencepath_contentDocuments_itemValidationError !== null) {
|
|
1078
1583
|
let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_contentDocuments_item + '")\n';
|
|
1079
1584
|
message += referencepath_contentDocuments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1193,10 +1698,10 @@ const createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPr
|
|
|
1193
1698
|
generateParamConfigMetadata('templateInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1194
1699
|
];
|
|
1195
1700
|
const createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyMetadata);
|
|
1196
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
1701
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$n(createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyMetadata);
|
|
1197
1702
|
function typeCheckConfig$h(untrustedConfig) {
|
|
1198
1703
|
const config = {};
|
|
1199
|
-
typeCheckConfig$
|
|
1704
|
+
typeCheckConfig$n(untrustedConfig, config, createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyMetadata);
|
|
1200
1705
|
const untrustedConfig_templateInput = untrustedConfig.templateInput;
|
|
1201
1706
|
const referenceTemplateInputRepresentationValidationError = validate$d(untrustedConfig_templateInput);
|
|
1202
1707
|
if (referenceTemplateInputRepresentationValidationError === null) {
|
|
@@ -1443,14 +1948,14 @@ const getContractActions_ConfigPropertyMetadata = [
|
|
|
1443
1948
|
generateParamConfigMetadata('contractId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1444
1949
|
];
|
|
1445
1950
|
const getContractActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getContractActions_ConfigPropertyMetadata);
|
|
1446
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
1951
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$n(getContractActions_ConfigPropertyMetadata);
|
|
1447
1952
|
function keyBuilder$e(luvio, config) {
|
|
1448
1953
|
const resourceParams = createResourceParams$g(config);
|
|
1449
1954
|
return keyBuilder$f(luvio, resourceParams);
|
|
1450
1955
|
}
|
|
1451
1956
|
function typeCheckConfig$g(untrustedConfig) {
|
|
1452
1957
|
const config = {};
|
|
1453
|
-
typeCheckConfig$
|
|
1958
|
+
typeCheckConfig$n(untrustedConfig, config, getContractActions_ConfigPropertyMetadata);
|
|
1454
1959
|
return config;
|
|
1455
1960
|
}
|
|
1456
1961
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -1499,7 +2004,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
1499
2004
|
});
|
|
1500
2005
|
}
|
|
1501
2006
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
1502
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2007
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
1503
2008
|
}
|
|
1504
2009
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
1505
2010
|
const { luvio, config } = context;
|
|
@@ -1567,10 +2072,10 @@ const updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata = [
|
|
|
1567
2072
|
generateParamConfigMetadata('templateInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1568
2073
|
];
|
|
1569
2074
|
const updateContractDocumentVersionWithTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata);
|
|
1570
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
2075
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$n(updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata);
|
|
1571
2076
|
function typeCheckConfig$f(untrustedConfig) {
|
|
1572
2077
|
const config = {};
|
|
1573
|
-
typeCheckConfig$
|
|
2078
|
+
typeCheckConfig$n(untrustedConfig, config, updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata);
|
|
1574
2079
|
const untrustedConfig_templateInput = untrustedConfig.templateInput;
|
|
1575
2080
|
const referenceTemplateInputRepresentationValidationError = validate$d(untrustedConfig_templateInput);
|
|
1576
2081
|
if (referenceTemplateInputRepresentationValidationError === null) {
|
|
@@ -1662,10 +2167,10 @@ const checkIn_ConfigPropertyMetadata = [
|
|
|
1662
2167
|
generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1663
2168
|
];
|
|
1664
2169
|
const checkIn_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, checkIn_ConfigPropertyMetadata);
|
|
1665
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
2170
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$n(checkIn_ConfigPropertyMetadata);
|
|
1666
2171
|
function typeCheckConfig$e(untrustedConfig) {
|
|
1667
2172
|
const config = {};
|
|
1668
|
-
typeCheckConfig$
|
|
2173
|
+
typeCheckConfig$n(untrustedConfig, config, checkIn_ConfigPropertyMetadata);
|
|
1669
2174
|
return config;
|
|
1670
2175
|
}
|
|
1671
2176
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -1753,10 +2258,10 @@ const checkoutContractDocumentVersion_ConfigPropertyMetadata = [
|
|
|
1753
2258
|
generateParamConfigMetadata('templateInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1754
2259
|
];
|
|
1755
2260
|
const checkoutContractDocumentVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, checkoutContractDocumentVersion_ConfigPropertyMetadata);
|
|
1756
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
2261
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$n(checkoutContractDocumentVersion_ConfigPropertyMetadata);
|
|
1757
2262
|
function typeCheckConfig$d(untrustedConfig) {
|
|
1758
2263
|
const config = {};
|
|
1759
|
-
typeCheckConfig$
|
|
2264
|
+
typeCheckConfig$n(untrustedConfig, config, checkoutContractDocumentVersion_ConfigPropertyMetadata);
|
|
1760
2265
|
const untrustedConfig_templateInput = untrustedConfig.templateInput;
|
|
1761
2266
|
const referenceTemplateInputRepresentationValidationError = validate$d(untrustedConfig_templateInput);
|
|
1762
2267
|
if (referenceTemplateInputRepresentationValidationError === null) {
|
|
@@ -1827,7 +2332,7 @@ function validate$9(obj, path = 'ContentDocumentListRepresentation') {
|
|
|
1827
2332
|
for (let i = 0; i < obj_data.length; i++) {
|
|
1828
2333
|
const obj_data_item = obj_data[i];
|
|
1829
2334
|
const path_data_item = path_data + '[' + i + ']';
|
|
1830
|
-
const referencepath_data_itemValidationError = validate$
|
|
2335
|
+
const referencepath_data_itemValidationError = validate$m(obj_data_item, path_data_item);
|
|
1831
2336
|
if (referencepath_data_itemValidationError !== null) {
|
|
1832
2337
|
let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_data_item + '")\n';
|
|
1833
2338
|
message += referencepath_data_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1924,10 +2429,10 @@ const deleteAttachment_ConfigPropertyMetadata = [
|
|
|
1924
2429
|
generateParamConfigMetadata('contentDocumentId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1925
2430
|
];
|
|
1926
2431
|
const deleteAttachment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteAttachment_ConfigPropertyMetadata);
|
|
1927
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
2432
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$n(deleteAttachment_ConfigPropertyMetadata);
|
|
1928
2433
|
function typeCheckConfig$c(untrustedConfig) {
|
|
1929
2434
|
const config = {};
|
|
1930
|
-
typeCheckConfig$
|
|
2435
|
+
typeCheckConfig$n(untrustedConfig, config, deleteAttachment_ConfigPropertyMetadata);
|
|
1931
2436
|
return config;
|
|
1932
2437
|
}
|
|
1933
2438
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -2016,10 +2521,10 @@ const updateSharingOnAttachment_ConfigPropertyMetadata = [
|
|
|
2016
2521
|
generateParamConfigMetadata('share', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
2017
2522
|
];
|
|
2018
2523
|
const updateSharingOnAttachment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, updateSharingOnAttachment_ConfigPropertyMetadata);
|
|
2019
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
2524
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$n(updateSharingOnAttachment_ConfigPropertyMetadata);
|
|
2020
2525
|
function typeCheckConfig$b(untrustedConfig) {
|
|
2021
2526
|
const config = {};
|
|
2022
|
-
typeCheckConfig$
|
|
2527
|
+
typeCheckConfig$n(untrustedConfig, config, updateSharingOnAttachment_ConfigPropertyMetadata);
|
|
2023
2528
|
return config;
|
|
2024
2529
|
}
|
|
2025
2530
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -2123,14 +2628,14 @@ const getContentDocument_ConfigPropertyMetadata = [
|
|
|
2123
2628
|
generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2124
2629
|
];
|
|
2125
2630
|
const getContentDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getContentDocument_ConfigPropertyMetadata);
|
|
2126
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
2631
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$n(getContentDocument_ConfigPropertyMetadata);
|
|
2127
2632
|
function keyBuilder$a(luvio, config) {
|
|
2128
2633
|
const resourceParams = createResourceParams$a(config);
|
|
2129
2634
|
return keyBuilder$b(luvio, resourceParams);
|
|
2130
2635
|
}
|
|
2131
2636
|
function typeCheckConfig$a(untrustedConfig) {
|
|
2132
2637
|
const config = {};
|
|
2133
|
-
typeCheckConfig$
|
|
2638
|
+
typeCheckConfig$n(untrustedConfig, config, getContentDocument_ConfigPropertyMetadata);
|
|
2134
2639
|
return config;
|
|
2135
2640
|
}
|
|
2136
2641
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -2179,7 +2684,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
2179
2684
|
});
|
|
2180
2685
|
}
|
|
2181
2686
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
2182
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2687
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
2183
2688
|
}
|
|
2184
2689
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
2185
2690
|
const { luvio, config } = context;
|
|
@@ -2246,10 +2751,10 @@ const lockContractDocumentVersion_ConfigPropertyMetadata = [
|
|
|
2246
2751
|
generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2247
2752
|
];
|
|
2248
2753
|
const lockContractDocumentVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, lockContractDocumentVersion_ConfigPropertyMetadata);
|
|
2249
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
2754
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$n(lockContractDocumentVersion_ConfigPropertyMetadata);
|
|
2250
2755
|
function typeCheckConfig$9(untrustedConfig) {
|
|
2251
2756
|
const config = {};
|
|
2252
|
-
typeCheckConfig$
|
|
2757
|
+
typeCheckConfig$n(untrustedConfig, config, lockContractDocumentVersion_ConfigPropertyMetadata);
|
|
2253
2758
|
return config;
|
|
2254
2759
|
}
|
|
2255
2760
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -2336,10 +2841,10 @@ const createExternalReviewDocument_ConfigPropertyMetadata = [
|
|
|
2336
2841
|
generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2337
2842
|
];
|
|
2338
2843
|
const createExternalReviewDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createExternalReviewDocument_ConfigPropertyMetadata);
|
|
2339
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
2844
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$n(createExternalReviewDocument_ConfigPropertyMetadata);
|
|
2340
2845
|
function typeCheckConfig$8(untrustedConfig) {
|
|
2341
2846
|
const config = {};
|
|
2342
|
-
typeCheckConfig$
|
|
2847
|
+
typeCheckConfig$n(untrustedConfig, config, createExternalReviewDocument_ConfigPropertyMetadata);
|
|
2343
2848
|
return config;
|
|
2344
2849
|
}
|
|
2345
2850
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -2528,10 +3033,10 @@ const deleteContractDocumentVersionReview_ConfigPropertyMetadata = [
|
|
|
2528
3033
|
generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2529
3034
|
];
|
|
2530
3035
|
const deleteContractDocumentVersionReview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2531
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
3036
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$n(deleteContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2532
3037
|
function typeCheckConfig$7(untrustedConfig) {
|
|
2533
3038
|
const config = {};
|
|
2534
|
-
typeCheckConfig$
|
|
3039
|
+
typeCheckConfig$n(untrustedConfig, config, deleteContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2535
3040
|
return config;
|
|
2536
3041
|
}
|
|
2537
3042
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -2635,14 +3140,14 @@ const getContractDocumentVersionReview_ConfigPropertyMetadata = [
|
|
|
2635
3140
|
generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2636
3141
|
];
|
|
2637
3142
|
const getContractDocumentVersionReview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2638
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
3143
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$n(getContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2639
3144
|
function keyBuilder$6(luvio, config) {
|
|
2640
3145
|
const resourceParams = createResourceParams$6(config);
|
|
2641
3146
|
return keyBuilder$7(luvio, resourceParams);
|
|
2642
3147
|
}
|
|
2643
3148
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2644
3149
|
const config = {};
|
|
2645
|
-
typeCheckConfig$
|
|
3150
|
+
typeCheckConfig$n(untrustedConfig, config, getContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2646
3151
|
return config;
|
|
2647
3152
|
}
|
|
2648
3153
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -2691,7 +3196,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
2691
3196
|
});
|
|
2692
3197
|
}
|
|
2693
3198
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
2694
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3199
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
2695
3200
|
}
|
|
2696
3201
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2697
3202
|
const { luvio, config } = context;
|
|
@@ -2866,10 +3371,10 @@ const updateContractDocumentVersionReview_ConfigPropertyMetadata = [
|
|
|
2866
3371
|
generateParamConfigMetadata('review', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2867
3372
|
];
|
|
2868
3373
|
const updateContractDocumentVersionReview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2869
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
3374
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$n(updateContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2870
3375
|
function typeCheckConfig$5(untrustedConfig) {
|
|
2871
3376
|
const config = {};
|
|
2872
|
-
typeCheckConfig$
|
|
3377
|
+
typeCheckConfig$n(untrustedConfig, config, updateContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2873
3378
|
const untrustedConfig_review = untrustedConfig.review;
|
|
2874
3379
|
const referenceContractDocumentVersionReviewInputRepresentationValidationError = validate$6(untrustedConfig_review);
|
|
2875
3380
|
if (referenceContractDocumentVersionReviewInputRepresentationValidationError === null) {
|
|
@@ -2962,10 +3467,10 @@ const createContractDocumentVersionReview_ConfigPropertyMetadata = [
|
|
|
2962
3467
|
generateParamConfigMetadata('review', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2963
3468
|
];
|
|
2964
3469
|
const createContractDocumentVersionReview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2965
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
3470
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$n(createContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2966
3471
|
function typeCheckConfig$4(untrustedConfig) {
|
|
2967
3472
|
const config = {};
|
|
2968
|
-
typeCheckConfig$
|
|
3473
|
+
typeCheckConfig$n(untrustedConfig, config, createContractDocumentVersionReview_ConfigPropertyMetadata);
|
|
2969
3474
|
const untrustedConfig_review = untrustedConfig.review;
|
|
2970
3475
|
const referenceContractDocumentVersionReviewInputRepresentationValidationError = validate$6(untrustedConfig_review);
|
|
2971
3476
|
if (referenceContractDocumentVersionReviewInputRepresentationValidationError === null) {
|
|
@@ -3057,10 +3562,10 @@ const unlock_ConfigPropertyMetadata = [
|
|
|
3057
3562
|
generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3058
3563
|
];
|
|
3059
3564
|
const unlock_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, unlock_ConfigPropertyMetadata);
|
|
3060
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
3565
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$n(unlock_ConfigPropertyMetadata);
|
|
3061
3566
|
function typeCheckConfig$3(untrustedConfig) {
|
|
3062
3567
|
const config = {};
|
|
3063
|
-
typeCheckConfig$
|
|
3568
|
+
typeCheckConfig$n(untrustedConfig, config, unlock_ConfigPropertyMetadata);
|
|
3064
3569
|
return config;
|
|
3065
3570
|
}
|
|
3066
3571
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -3120,7 +3625,7 @@ function validate$4(obj, path = 'DocumentGenerationProcessStatusRepresentation')
|
|
|
3120
3625
|
for (let i = 0; i < obj_contentDocuments.length; i++) {
|
|
3121
3626
|
const obj_contentDocuments_item = obj_contentDocuments[i];
|
|
3122
3627
|
const path_contentDocuments_item = path_contentDocuments + '[' + i + ']';
|
|
3123
|
-
const referencepath_contentDocuments_itemValidationError = validate$
|
|
3628
|
+
const referencepath_contentDocuments_itemValidationError = validate$m(obj_contentDocuments_item, path_contentDocuments_item);
|
|
3124
3629
|
if (referencepath_contentDocuments_itemValidationError !== null) {
|
|
3125
3630
|
let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_contentDocuments_item + '")\n';
|
|
3126
3631
|
message += referencepath_contentDocuments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3176,7 +3681,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
3176
3681
|
return input;
|
|
3177
3682
|
}
|
|
3178
3683
|
const select$5 = function DocumentGenerationProcessStatusRepresentationSelect() {
|
|
3179
|
-
const { selections: ContentDocumentRepresentation__selections, opaque: ContentDocumentRepresentation__opaque, } = select$
|
|
3684
|
+
const { selections: ContentDocumentRepresentation__selections, opaque: ContentDocumentRepresentation__opaque, } = select$y();
|
|
3180
3685
|
return {
|
|
3181
3686
|
kind: 'Fragment',
|
|
3182
3687
|
version: VERSION$2,
|
|
@@ -3302,7 +3807,7 @@ function equals$2(existing, incoming) {
|
|
|
3302
3807
|
return false;
|
|
3303
3808
|
}
|
|
3304
3809
|
const equals_contentDocuments_items = equalsArray(existing_contentDocuments, incoming_contentDocuments, (existing_contentDocuments_item, incoming_contentDocuments_item) => {
|
|
3305
|
-
if (!(equals$
|
|
3810
|
+
if (!(equals$d(existing_contentDocuments_item, incoming_contentDocuments_item))) {
|
|
3306
3811
|
return false;
|
|
3307
3812
|
}
|
|
3308
3813
|
});
|
|
@@ -3385,14 +3890,14 @@ const getDocumentGenerationProcessDetails_ConfigPropertyMetadata = [
|
|
|
3385
3890
|
generateParamConfigMetadata('contractDocumentVersionId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3386
3891
|
];
|
|
3387
3892
|
const getDocumentGenerationProcessDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDocumentGenerationProcessDetails_ConfigPropertyMetadata);
|
|
3388
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
3893
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$n(getDocumentGenerationProcessDetails_ConfigPropertyMetadata);
|
|
3389
3894
|
function keyBuilder$3(luvio, config) {
|
|
3390
3895
|
const resourceParams = createResourceParams$2(config);
|
|
3391
3896
|
return keyBuilder$4(luvio, resourceParams);
|
|
3392
3897
|
}
|
|
3393
3898
|
function typeCheckConfig$2(untrustedConfig) {
|
|
3394
3899
|
const config = {};
|
|
3395
|
-
typeCheckConfig$
|
|
3900
|
+
typeCheckConfig$n(untrustedConfig, config, getDocumentGenerationProcessDetails_ConfigPropertyMetadata);
|
|
3396
3901
|
return config;
|
|
3397
3902
|
}
|
|
3398
3903
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -3441,7 +3946,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
3441
3946
|
});
|
|
3442
3947
|
}
|
|
3443
3948
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
3444
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3949
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
3445
3950
|
}
|
|
3446
3951
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
3447
3952
|
const { luvio, config } = context;
|
|
@@ -3640,14 +4145,14 @@ const getTemplates_ConfigPropertyMetadata = [
|
|
|
3640
4145
|
generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3641
4146
|
];
|
|
3642
4147
|
const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTemplates_ConfigPropertyMetadata);
|
|
3643
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
4148
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$n(getTemplates_ConfigPropertyMetadata);
|
|
3644
4149
|
function keyBuilder$1(luvio, config) {
|
|
3645
4150
|
const resourceParams = createResourceParams$1(config);
|
|
3646
4151
|
return keyBuilder$2(luvio, resourceParams);
|
|
3647
4152
|
}
|
|
3648
4153
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3649
4154
|
const config = {};
|
|
3650
|
-
typeCheckConfig$
|
|
4155
|
+
typeCheckConfig$n(untrustedConfig, config, getTemplates_ConfigPropertyMetadata);
|
|
3651
4156
|
return config;
|
|
3652
4157
|
}
|
|
3653
4158
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -3696,7 +4201,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
3696
4201
|
});
|
|
3697
4202
|
}
|
|
3698
4203
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
3699
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4204
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
3700
4205
|
}
|
|
3701
4206
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
3702
4207
|
const { luvio, config } = context;
|
|
@@ -3853,7 +4358,7 @@ const saveExternalDocument_ConfigPropertyMetadata = [
|
|
|
3853
4358
|
generateParamConfigMetadata('externalDocumentInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3854
4359
|
];
|
|
3855
4360
|
const saveExternalDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, saveExternalDocument_ConfigPropertyMetadata);
|
|
3856
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4361
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$n(saveExternalDocument_ConfigPropertyMetadata);
|
|
3857
4362
|
function typeCheckConfig(untrustedConfig) {
|
|
3858
4363
|
const config = {};
|
|
3859
4364
|
const untrustedConfig_externalDocumentInput = untrustedConfig.externalDocumentInput;
|
|
@@ -3905,4 +4410,4 @@ const saveExternalDocumentAdapterFactory = (luvio) => {
|
|
|
3905
4410
|
};
|
|
3906
4411
|
};
|
|
3907
4412
|
|
|
3908
|
-
export { checkInAdapterFactory, checkoutContractDocumentVersionAdapterFactory, createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFactory, createContractDocumentVersionReviewAdapterFactory, createExternalReviewDocumentAdapterFactory, deleteAttachmentAdapterFactory, deleteContractDocumentVersionReviewAdapterFactory, executeContractActionAdapterFactory, getContentDocumentAdapterFactory, getContractActionsAdapterFactory, getContractDocumentVersionAdapterFactory, getContractDocumentVersionReviewAdapterFactory, getDocumentGenerationProcessDetailsAdapterFactory, getLatestContractDocumentVersionCCAdapterFactory, getTemplatesAdapterFactory, lockContractDocumentVersionAdapterFactory, saveExternalDocumentAdapterFactory, unlockAdapterFactory, updateContractDocumentVersionReviewAdapterFactory, updateContractDocumentVersionWithTemplateAdapterFactory, updateSharingOnAttachmentAdapterFactory };
|
|
4413
|
+
export { checkInAdapterFactory, checkoutContractDocumentVersionAdapterFactory, createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFactory, createContractDocumentVersionReviewAdapterFactory, createExternalReviewDocumentAdapterFactory, deleteAttachmentAdapterFactory, deleteContractDocumentVersionReviewAdapterFactory, executeContractActionAdapterFactory, getContentDocumentAdapterFactory, getContractActionsAdapterFactory, getContractDocumentVersionAdapterFactory, getContractDocumentVersionReviewAdapterFactory, getDocumentGenerationProcessDetailsAdapterFactory, getDocumentRecipientAndStatusAdapterFactory, getExternalDocumentReviewCCAdapterFactory, getLatestContractDocumentVersionCCAdapterFactory, getTemplatesAdapterFactory, lockContractDocumentVersionAdapterFactory, saveExternalDocumentAdapterFactory, unlockAdapterFactory, updateContractDocumentVersionReviewAdapterFactory, updateContractDocumentVersionWithTemplateAdapterFactory, updateSharingOnAttachmentAdapterFactory };
|