@salesforce/lds-adapters-industries-clm 1.248.0 → 1.250.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.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$j, typeCheckConfig as typeCheckConfig$j, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7, typeCheckConfig as typeCheckConfig$l, StoreKeyMap, createResourceParams as createResourceParams$l } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -93,7 +93,428 @@ function createLink(ref) {
93
93
  };
94
94
  }
95
95
 
96
- function validate$i(obj, path = 'ContractActionInputRepresentation') {
96
+ const VERSION$b = "e255b3b91a7dfe6d12fa716115f11ab1";
97
+ function validate$j(obj, path = 'ContentDocumentRepresentation') {
98
+ const v_error = (() => {
99
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
100
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
101
+ }
102
+ const obj_contentDocumentId = obj.contentDocumentId;
103
+ const path_contentDocumentId = path + '.contentDocumentId';
104
+ if (typeof obj_contentDocumentId !== 'string') {
105
+ return new TypeError('Expected "string" but received "' + typeof obj_contentDocumentId + '" (at "' + path_contentDocumentId + '")');
106
+ }
107
+ if (obj.contentDocumentLinkId !== undefined) {
108
+ const obj_contentDocumentLinkId = obj.contentDocumentLinkId;
109
+ const path_contentDocumentLinkId = path + '.contentDocumentLinkId';
110
+ if (typeof obj_contentDocumentLinkId !== 'string') {
111
+ return new TypeError('Expected "string" but received "' + typeof obj_contentDocumentLinkId + '" (at "' + path_contentDocumentLinkId + '")');
112
+ }
113
+ }
114
+ const obj_contractDocumentVersionId = obj.contractDocumentVersionId;
115
+ const path_contractDocumentVersionId = path + '.contractDocumentVersionId';
116
+ if (typeof obj_contractDocumentVersionId !== 'string') {
117
+ return new TypeError('Expected "string" but received "' + typeof obj_contractDocumentVersionId + '" (at "' + path_contractDocumentVersionId + '")');
118
+ }
119
+ const obj_createdDate = obj.createdDate;
120
+ const path_createdDate = path + '.createdDate';
121
+ if (typeof obj_createdDate !== 'string') {
122
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
123
+ }
124
+ if (obj.fileExtension !== undefined) {
125
+ const obj_fileExtension = obj.fileExtension;
126
+ const path_fileExtension = path + '.fileExtension';
127
+ if (typeof obj_fileExtension !== 'string') {
128
+ return new TypeError('Expected "string" but received "' + typeof obj_fileExtension + '" (at "' + path_fileExtension + '")');
129
+ }
130
+ }
131
+ if (obj.isSharedExternally !== undefined) {
132
+ const obj_isSharedExternally = obj.isSharedExternally;
133
+ const path_isSharedExternally = path + '.isSharedExternally';
134
+ if (typeof obj_isSharedExternally !== 'boolean') {
135
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSharedExternally + '" (at "' + path_isSharedExternally + '")');
136
+ }
137
+ }
138
+ const obj_lastModifiedDate = obj.lastModifiedDate;
139
+ const path_lastModifiedDate = path + '.lastModifiedDate';
140
+ if (typeof obj_lastModifiedDate !== 'string') {
141
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
142
+ }
143
+ const obj_title = obj.title;
144
+ const path_title = path + '.title';
145
+ if (typeof obj_title !== 'string') {
146
+ return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
147
+ }
148
+ })();
149
+ return v_error === undefined ? null : v_error;
150
+ }
151
+ const select$u = function ContentDocumentRepresentationSelect() {
152
+ return {
153
+ kind: 'Fragment',
154
+ version: VERSION$b,
155
+ private: [],
156
+ selections: [
157
+ {
158
+ name: 'contentDocumentId',
159
+ kind: 'Scalar'
160
+ },
161
+ {
162
+ name: 'contentDocumentLinkId',
163
+ kind: 'Scalar',
164
+ required: false
165
+ },
166
+ {
167
+ name: 'contractDocumentVersionId',
168
+ kind: 'Scalar'
169
+ },
170
+ {
171
+ name: 'createdDate',
172
+ kind: 'Scalar'
173
+ },
174
+ {
175
+ name: 'fileExtension',
176
+ kind: 'Scalar',
177
+ required: false
178
+ },
179
+ {
180
+ name: 'isSharedExternally',
181
+ kind: 'Scalar',
182
+ required: false
183
+ },
184
+ {
185
+ name: 'lastModifiedDate',
186
+ kind: 'Scalar'
187
+ },
188
+ {
189
+ name: 'title',
190
+ kind: 'Scalar'
191
+ }
192
+ ]
193
+ };
194
+ };
195
+ function equals$b(existing, incoming) {
196
+ const existing_isSharedExternally = existing.isSharedExternally;
197
+ const incoming_isSharedExternally = incoming.isSharedExternally;
198
+ // if at least one of these optionals is defined
199
+ if (existing_isSharedExternally !== undefined || incoming_isSharedExternally !== undefined) {
200
+ // if one of these is not defined we know the other is defined and therefore
201
+ // not equal
202
+ if (existing_isSharedExternally === undefined || incoming_isSharedExternally === undefined) {
203
+ return false;
204
+ }
205
+ if (!(existing_isSharedExternally === incoming_isSharedExternally)) {
206
+ return false;
207
+ }
208
+ }
209
+ const existing_contentDocumentId = existing.contentDocumentId;
210
+ const incoming_contentDocumentId = incoming.contentDocumentId;
211
+ if (!(existing_contentDocumentId === incoming_contentDocumentId)) {
212
+ return false;
213
+ }
214
+ const existing_contentDocumentLinkId = existing.contentDocumentLinkId;
215
+ const incoming_contentDocumentLinkId = incoming.contentDocumentLinkId;
216
+ // if at least one of these optionals is defined
217
+ if (existing_contentDocumentLinkId !== undefined || incoming_contentDocumentLinkId !== undefined) {
218
+ // if one of these is not defined we know the other is defined and therefore
219
+ // not equal
220
+ if (existing_contentDocumentLinkId === undefined || incoming_contentDocumentLinkId === undefined) {
221
+ return false;
222
+ }
223
+ if (!(existing_contentDocumentLinkId === incoming_contentDocumentLinkId)) {
224
+ return false;
225
+ }
226
+ }
227
+ const existing_contractDocumentVersionId = existing.contractDocumentVersionId;
228
+ const incoming_contractDocumentVersionId = incoming.contractDocumentVersionId;
229
+ if (!(existing_contractDocumentVersionId === incoming_contractDocumentVersionId)) {
230
+ return false;
231
+ }
232
+ const existing_createdDate = existing.createdDate;
233
+ const incoming_createdDate = incoming.createdDate;
234
+ if (!(existing_createdDate === incoming_createdDate)) {
235
+ return false;
236
+ }
237
+ const existing_fileExtension = existing.fileExtension;
238
+ const incoming_fileExtension = incoming.fileExtension;
239
+ // if at least one of these optionals is defined
240
+ if (existing_fileExtension !== undefined || incoming_fileExtension !== undefined) {
241
+ // if one of these is not defined we know the other is defined and therefore
242
+ // not equal
243
+ if (existing_fileExtension === undefined || incoming_fileExtension === undefined) {
244
+ return false;
245
+ }
246
+ if (!(existing_fileExtension === incoming_fileExtension)) {
247
+ return false;
248
+ }
249
+ }
250
+ const existing_lastModifiedDate = existing.lastModifiedDate;
251
+ const incoming_lastModifiedDate = incoming.lastModifiedDate;
252
+ if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
253
+ return false;
254
+ }
255
+ const existing_title = existing.title;
256
+ const incoming_title = incoming.title;
257
+ if (!(existing_title === incoming_title)) {
258
+ return false;
259
+ }
260
+ return true;
261
+ }
262
+
263
+ const TTL$9 = 60000;
264
+ const VERSION$a = "2abffe3c952797ae78f826314364280a";
265
+ function validate$i(obj, path = 'ContractDocumentVersionCCRepresentation') {
266
+ const v_error = (() => {
267
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
268
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
269
+ }
270
+ if (obj.attachments !== undefined) {
271
+ const obj_attachments = obj.attachments;
272
+ const path_attachments = path + '.attachments';
273
+ if (!ArrayIsArray(obj_attachments)) {
274
+ return new TypeError('Expected "array" but received "' + typeof obj_attachments + '" (at "' + path_attachments + '")');
275
+ }
276
+ for (let i = 0; i < obj_attachments.length; i++) {
277
+ const obj_attachments_item = obj_attachments[i];
278
+ const path_attachments_item = path_attachments + '[' + i + ']';
279
+ const referencepath_attachments_itemValidationError = validate$j(obj_attachments_item, path_attachments_item);
280
+ if (referencepath_attachments_itemValidationError !== null) {
281
+ let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_attachments_item + '")\n';
282
+ message += referencepath_attachments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
283
+ return new TypeError(message);
284
+ }
285
+ }
286
+ }
287
+ const obj_contractDocumentVersionId = obj.contractDocumentVersionId;
288
+ const path_contractDocumentVersionId = path + '.contractDocumentVersionId';
289
+ if (typeof obj_contractDocumentVersionId !== 'string') {
290
+ return new TypeError('Expected "string" but received "' + typeof obj_contractDocumentVersionId + '" (at "' + path_contractDocumentVersionId + '")');
291
+ }
292
+ if (obj.contractDocuments !== undefined) {
293
+ const obj_contractDocuments = obj.contractDocuments;
294
+ const path_contractDocuments = path + '.contractDocuments';
295
+ if (!ArrayIsArray(obj_contractDocuments)) {
296
+ return new TypeError('Expected "array" but received "' + typeof obj_contractDocuments + '" (at "' + path_contractDocuments + '")');
297
+ }
298
+ for (let i = 0; i < obj_contractDocuments.length; i++) {
299
+ const obj_contractDocuments_item = obj_contractDocuments[i];
300
+ const path_contractDocuments_item = path_contractDocuments + '[' + i + ']';
301
+ const referencepath_contractDocuments_itemValidationError = validate$j(obj_contractDocuments_item, path_contractDocuments_item);
302
+ if (referencepath_contractDocuments_itemValidationError !== null) {
303
+ let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_contractDocuments_item + '")\n';
304
+ message += referencepath_contractDocuments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
305
+ return new TypeError(message);
306
+ }
307
+ }
308
+ }
309
+ const obj_contractId = obj.contractId;
310
+ const path_contractId = path + '.contractId';
311
+ if (typeof obj_contractId !== 'string') {
312
+ return new TypeError('Expected "string" but received "' + typeof obj_contractId + '" (at "' + path_contractId + '")');
313
+ }
314
+ const obj_name = obj.name;
315
+ const path_name = path + '.name';
316
+ if (typeof obj_name !== 'string') {
317
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
318
+ }
319
+ const obj_status = obj.status;
320
+ const path_status = path + '.status';
321
+ if (typeof obj_status !== 'string') {
322
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
323
+ }
324
+ })();
325
+ return v_error === undefined ? null : v_error;
326
+ }
327
+ const RepresentationType$a = 'ContractDocumentVersionCCRepresentation';
328
+ function keyBuilder$n(luvio, config) {
329
+ return keyPrefix + '::' + RepresentationType$a + ':' + config.contractId;
330
+ }
331
+ function keyBuilderFromType$7(luvio, object) {
332
+ const keyParams = {
333
+ contractId: object.contractId
334
+ };
335
+ return keyBuilder$n(luvio, keyParams);
336
+ }
337
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
338
+ return input;
339
+ }
340
+ const select$t = function ContractDocumentVersionCCRepresentationSelect() {
341
+ return {
342
+ kind: 'Fragment',
343
+ version: VERSION$a,
344
+ private: [],
345
+ opaque: true
346
+ };
347
+ };
348
+ function equals$a(existing, incoming) {
349
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
350
+ return false;
351
+ }
352
+ return true;
353
+ }
354
+ const ingest$a = function ContractDocumentVersionCCRepresentationIngest(input, path, luvio, store, timestamp) {
355
+ if (process.env.NODE_ENV !== 'production') {
356
+ const validateError = validate$i(input);
357
+ if (validateError !== null) {
358
+ throw validateError;
359
+ }
360
+ }
361
+ const key = keyBuilderFromType$7(luvio, input);
362
+ const ttlToUse = TTL$9;
363
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "clm", VERSION$a, RepresentationType$a, equals$a);
364
+ return createLink(key);
365
+ };
366
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
367
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
368
+ const rootKey = keyBuilderFromType$7(luvio, input);
369
+ rootKeySet.set(rootKey, {
370
+ namespace: keyPrefix,
371
+ representationName: RepresentationType$a,
372
+ mergeable: false
373
+ });
374
+ }
375
+
376
+ function select$s(luvio, params) {
377
+ return select$t();
378
+ }
379
+ function keyBuilder$m(luvio, params) {
380
+ return keyBuilder$n(luvio, {
381
+ contractId: params.urlParams.contractId
382
+ });
383
+ }
384
+ function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
385
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
386
+ }
387
+ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
388
+ const { body } = response;
389
+ const key = keyBuilder$m(luvio, resourceParams);
390
+ luvio.storeIngest(key, ingest$a, body);
391
+ const snapshot = luvio.storeLookup({
392
+ recordId: key,
393
+ node: select$s(),
394
+ variables: {},
395
+ }, snapshotRefresh);
396
+ if (process.env.NODE_ENV !== 'production') {
397
+ if (snapshot.state !== 'Fulfilled') {
398
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
399
+ }
400
+ }
401
+ deepFreeze(snapshot.data);
402
+ return snapshot;
403
+ }
404
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
405
+ const key = keyBuilder$m(luvio, params);
406
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
407
+ const storeMetadataParams = {
408
+ ttl: TTL$9,
409
+ namespace: keyPrefix,
410
+ version: VERSION$a,
411
+ representationName: RepresentationType$a
412
+ };
413
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
414
+ return errorSnapshot;
415
+ }
416
+ function createResourceRequest$k(config) {
417
+ const headers = {};
418
+ return {
419
+ baseUri: '/services/data/v60.0',
420
+ basePath: '/connect/clm/cc/contract/' + config.urlParams.contractId + '/contract-document-version',
421
+ method: 'get',
422
+ body: null,
423
+ urlParams: config.urlParams,
424
+ queryParams: config.queryParams,
425
+ headers,
426
+ priority: 'normal',
427
+ };
428
+ }
429
+
430
+ const adapterName$k = 'getLatestContractDocumentVersionCC';
431
+ const getLatestContractDocumentVersionCC_ConfigPropertyMetadata = [
432
+ generateParamConfigMetadata('contractId', true, 0 /* UrlParameter */, 0 /* String */),
433
+ generateParamConfigMetadata('details', false, 1 /* QueryParameter */, 1 /* Boolean */),
434
+ ];
435
+ const getLatestContractDocumentVersionCC_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getLatestContractDocumentVersionCC_ConfigPropertyMetadata);
436
+ const createResourceParams$k = /*#__PURE__*/ createResourceParams$l(getLatestContractDocumentVersionCC_ConfigPropertyMetadata);
437
+ function keyBuilder$l(luvio, config) {
438
+ const resourceParams = createResourceParams$k(config);
439
+ return keyBuilder$m(luvio, resourceParams);
440
+ }
441
+ function typeCheckConfig$k(untrustedConfig) {
442
+ const config = {};
443
+ typeCheckConfig$l(untrustedConfig, config, getLatestContractDocumentVersionCC_ConfigPropertyMetadata);
444
+ return config;
445
+ }
446
+ function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
447
+ if (!untrustedIsObject(untrustedConfig)) {
448
+ return null;
449
+ }
450
+ if (process.env.NODE_ENV !== 'production') {
451
+ validateConfig(untrustedConfig, configPropertyNames);
452
+ }
453
+ const config = typeCheckConfig$k(untrustedConfig);
454
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
455
+ return null;
456
+ }
457
+ return config;
458
+ }
459
+ function adapterFragment$6(luvio, config) {
460
+ createResourceParams$k(config);
461
+ return select$s();
462
+ }
463
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
464
+ const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
465
+ config,
466
+ resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
467
+ });
468
+ return luvio.storeBroadcast().then(() => snapshot);
469
+ }
470
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
471
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
472
+ config,
473
+ resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
474
+ });
475
+ return luvio.storeBroadcast().then(() => snapshot);
476
+ }
477
+ function buildNetworkSnapshot$k(luvio, config, options) {
478
+ const resourceParams = createResourceParams$k(config);
479
+ const request = createResourceRequest$k(resourceParams);
480
+ return luvio.dispatchResourceRequest(request, options)
481
+ .then((response) => {
482
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
483
+ const cache = new StoreKeyMap();
484
+ getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
485
+ return cache;
486
+ });
487
+ }, (response) => {
488
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
489
+ });
490
+ }
491
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
492
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
493
+ }
494
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
495
+ const { luvio, config } = context;
496
+ const selector = {
497
+ recordId: keyBuilder$l(luvio, config),
498
+ node: adapterFragment$6(luvio, config),
499
+ variables: {},
500
+ };
501
+ const cacheSnapshot = storeLookup(selector, {
502
+ config,
503
+ resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
504
+ });
505
+ return cacheSnapshot;
506
+ }
507
+ const getLatestContractDocumentVersionCCAdapterFactory = (luvio) => function clm__getLatestContractDocumentVersionCC(untrustedConfig, requestContext) {
508
+ const config = validateAdapterConfig$k(untrustedConfig, getLatestContractDocumentVersionCC_ConfigPropertyNames);
509
+ // Invalid or incomplete config
510
+ if (config === null) {
511
+ return null;
512
+ }
513
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
514
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
515
+ };
516
+
517
+ function validate$h(obj, path = 'ContractActionInputRepresentation') {
97
518
  const v_error = (() => {
98
519
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
99
520
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -133,8 +554,8 @@ function validate$i(obj, path = 'ContractActionInputRepresentation') {
133
554
  }
134
555
 
135
556
  const TTL$8 = 60000;
136
- const VERSION$a = "c8652b5c3ad8c532087704340d3cad55";
137
- function validate$h(obj, path = 'GenericOutputRepresentation') {
557
+ const VERSION$9 = "c8652b5c3ad8c532087704340d3cad55";
558
+ function validate$g(obj, path = 'GenericOutputRepresentation') {
138
559
  const v_error = (() => {
139
560
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
140
561
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -170,12 +591,12 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
170
591
  const select$r = function GenericOutputRepresentationSelect() {
171
592
  return {
172
593
  kind: 'Fragment',
173
- version: VERSION$a,
594
+ version: VERSION$9,
174
595
  private: [],
175
596
  opaque: true
176
597
  };
177
598
  };
178
- function equals$a(existing, incoming) {
599
+ function equals$9(existing, incoming) {
179
600
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
180
601
  return false;
181
602
  }
@@ -183,14 +604,14 @@ function equals$a(existing, incoming) {
183
604
  }
184
605
  const ingest$9 = function GenericOutputRepresentationIngest(input, path, luvio, store, timestamp) {
185
606
  if (process.env.NODE_ENV !== 'production') {
186
- const validateError = validate$h(input);
607
+ const validateError = validate$g(input);
187
608
  if (validateError !== null) {
188
609
  throw validateError;
189
610
  }
190
611
  }
191
612
  const key = keyBuilderFromType$6(luvio, input);
192
613
  const ttlToUse = TTL$8;
193
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "clm", VERSION$a, RepresentationType$9, equals$a);
614
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "clm", VERSION$9, RepresentationType$9, equals$9);
194
615
  return createLink(key);
195
616
  };
196
617
  function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
@@ -206,10 +627,10 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
206
627
  function select$q(luvio, params) {
207
628
  return select$r();
208
629
  }
209
- function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
630
+ function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
210
631
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
211
632
  }
212
- function ingestSuccess$g(luvio, resourceParams, response) {
633
+ function ingestSuccess$h(luvio, resourceParams, response) {
213
634
  const { body } = response;
214
635
  const key = keyBuilderFromType$6(luvio, body);
215
636
  luvio.storeIngest(key, ingest$9, body);
@@ -226,7 +647,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
226
647
  deepFreeze(snapshot.data);
227
648
  return snapshot;
228
649
  }
229
- function createResourceRequest$i(config) {
650
+ function createResourceRequest$j(config) {
230
651
  const headers = {};
231
652
  return {
232
653
  baseUri: '/services/data/v60.0',
@@ -240,47 +661,47 @@ function createResourceRequest$i(config) {
240
661
  };
241
662
  }
242
663
 
243
- const adapterName$i = 'executeContractAction';
664
+ const adapterName$j = 'executeContractAction';
244
665
  const executeContractAction_ConfigPropertyMetadata = [
245
666
  generateParamConfigMetadata('contractId', true, 0 /* UrlParameter */, 0 /* String */),
246
667
  generateParamConfigMetadata('actionInput', true, 2 /* Body */, 4 /* Unsupported */),
247
668
  ];
248
- const executeContractAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, executeContractAction_ConfigPropertyMetadata);
249
- const createResourceParams$i = /*#__PURE__*/ createResourceParams$j(executeContractAction_ConfigPropertyMetadata);
250
- function typeCheckConfig$i(untrustedConfig) {
669
+ const executeContractAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, executeContractAction_ConfigPropertyMetadata);
670
+ const createResourceParams$j = /*#__PURE__*/ createResourceParams$l(executeContractAction_ConfigPropertyMetadata);
671
+ function typeCheckConfig$j(untrustedConfig) {
251
672
  const config = {};
252
- typeCheckConfig$j(untrustedConfig, config, executeContractAction_ConfigPropertyMetadata);
673
+ typeCheckConfig$l(untrustedConfig, config, executeContractAction_ConfigPropertyMetadata);
253
674
  const untrustedConfig_actionInput = untrustedConfig.actionInput;
254
- const referenceContractActionInputRepresentationValidationError = validate$i(untrustedConfig_actionInput);
675
+ const referenceContractActionInputRepresentationValidationError = validate$h(untrustedConfig_actionInput);
255
676
  if (referenceContractActionInputRepresentationValidationError === null) {
256
677
  config.actionInput = untrustedConfig_actionInput;
257
678
  }
258
679
  return config;
259
680
  }
260
- function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
681
+ function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
261
682
  if (!untrustedIsObject(untrustedConfig)) {
262
683
  return null;
263
684
  }
264
685
  if (process.env.NODE_ENV !== 'production') {
265
686
  validateConfig(untrustedConfig, configPropertyNames);
266
687
  }
267
- const config = typeCheckConfig$i(untrustedConfig);
688
+ const config = typeCheckConfig$j(untrustedConfig);
268
689
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
269
690
  return null;
270
691
  }
271
692
  return config;
272
693
  }
273
- function buildNetworkSnapshot$i(luvio, config, options) {
274
- const resourceParams = createResourceParams$i(config);
275
- const request = createResourceRequest$i(resourceParams);
694
+ function buildNetworkSnapshot$j(luvio, config, options) {
695
+ const resourceParams = createResourceParams$j(config);
696
+ const request = createResourceRequest$j(resourceParams);
276
697
  return luvio.dispatchResourceRequest(request, options)
277
698
  .then((response) => {
278
699
  return luvio.handleSuccessResponse(() => {
279
- const snapshot = ingestSuccess$g(luvio, resourceParams, response);
700
+ const snapshot = ingestSuccess$h(luvio, resourceParams, response);
280
701
  return luvio.storeBroadcast().then(() => snapshot);
281
702
  }, () => {
282
703
  const cache = new StoreKeyMap();
283
- getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
704
+ getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
284
705
  return cache;
285
706
  });
286
707
  }, (response) => {
@@ -290,16 +711,16 @@ function buildNetworkSnapshot$i(luvio, config, options) {
290
711
  }
291
712
  const executeContractActionAdapterFactory = (luvio) => {
292
713
  return function executeContractAction(untrustedConfig) {
293
- const config = validateAdapterConfig$i(untrustedConfig, executeContractAction_ConfigPropertyNames);
714
+ const config = validateAdapterConfig$j(untrustedConfig, executeContractAction_ConfigPropertyNames);
294
715
  // Invalid or incomplete config
295
716
  if (config === null) {
296
717
  throw new Error('Invalid config for "executeContractAction"');
297
718
  }
298
- return buildNetworkSnapshot$i(luvio, config);
719
+ return buildNetworkSnapshot$j(luvio, config);
299
720
  };
300
721
  };
301
722
 
302
- function validate$g(obj, path = 'ContractDocumentVersionRepresentation') {
723
+ function validate$f(obj, path = 'ContractDocumentVersionRepresentation') {
303
724
  const v_error = (() => {
304
725
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
305
726
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -384,8 +805,8 @@ function validate$g(obj, path = 'ContractDocumentVersionRepresentation') {
384
805
  }
385
806
 
386
807
  const TTL$7 = 60000;
387
- const VERSION$9 = "a824de2ee1cbb2f1e15ea8114da78d95";
388
- function validate$f(obj, path = 'ContractDocumentVersionsListRepresentation') {
808
+ const VERSION$8 = "a824de2ee1cbb2f1e15ea8114da78d95";
809
+ function validate$e(obj, path = 'ContractDocumentVersionsListRepresentation') {
389
810
  const v_error = (() => {
390
811
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
391
812
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -404,7 +825,7 @@ function validate$f(obj, path = 'ContractDocumentVersionsListRepresentation') {
404
825
  for (let i = 0; i < obj_data.length; i++) {
405
826
  const obj_data_item = obj_data[i];
406
827
  const path_data_item = path_data + '[' + i + ']';
407
- const referencepath_data_itemValidationError = validate$g(obj_data_item, path_data_item);
828
+ const referencepath_data_itemValidationError = validate$f(obj_data_item, path_data_item);
408
829
  if (referencepath_data_itemValidationError !== null) {
409
830
  let message = 'Object doesn\'t match ContractDocumentVersionRepresentation (at "' + path_data_item + '")\n';
410
831
  message += referencepath_data_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -422,12 +843,12 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
422
843
  const select$p = function ContractDocumentVersionsListRepresentationSelect() {
423
844
  return {
424
845
  kind: 'Fragment',
425
- version: VERSION$9,
846
+ version: VERSION$8,
426
847
  private: [],
427
848
  opaque: true
428
849
  };
429
850
  };
430
- function equals$9(existing, incoming) {
851
+ function equals$8(existing, incoming) {
431
852
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
432
853
  return false;
433
854
  }
@@ -435,14 +856,14 @@ function equals$9(existing, incoming) {
435
856
  }
436
857
  const ingest$8 = function ContractDocumentVersionsListRepresentationIngest(input, path, luvio, store, timestamp) {
437
858
  if (process.env.NODE_ENV !== 'production') {
438
- const validateError = validate$f(input);
859
+ const validateError = validate$e(input);
439
860
  if (validateError !== null) {
440
861
  throw validateError;
441
862
  }
442
863
  }
443
864
  const key = path.fullPath;
444
865
  const ttlToUse = TTL$7;
445
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "clm", VERSION$9, RepresentationType$8, equals$9);
866
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "clm", VERSION$8, RepresentationType$8, equals$8);
446
867
  return createLink(key);
447
868
  };
448
869
  function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
@@ -461,10 +882,10 @@ function select$o(luvio, params) {
461
882
  function keyBuilder$j(luvio, params) {
462
883
  return keyPrefix + '::ContractDocumentVersionsListRepresentation:(' + 'contractDocumentVersionId:' + params.queryParams.contractDocumentVersionId + ',' + 'contractId:' + params.urlParams.contractId + ')';
463
884
  }
464
- function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
885
+ function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
465
886
  getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
466
887
  }
467
- function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
888
+ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
468
889
  const { body } = response;
469
890
  const key = keyBuilder$j(luvio, resourceParams);
470
891
  luvio.storeIngest(key, ingest$8, body);
@@ -487,13 +908,13 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
487
908
  const storeMetadataParams = {
488
909
  ttl: TTL$7,
489
910
  namespace: keyPrefix,
490
- version: VERSION$9,
911
+ version: VERSION$8,
491
912
  representationName: RepresentationType$8
492
913
  };
493
914
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
494
915
  return errorSnapshot;
495
916
  }
496
- function createResourceRequest$h(config) {
917
+ function createResourceRequest$i(config) {
497
918
  const headers = {};
498
919
  return {
499
920
  baseUri: '/services/data/v60.0',
@@ -507,61 +928,61 @@ function createResourceRequest$h(config) {
507
928
  };
508
929
  }
509
930
 
510
- const adapterName$h = 'getContractDocumentVersion';
931
+ const adapterName$i = 'getContractDocumentVersion';
511
932
  const getContractDocumentVersion_ConfigPropertyMetadata = [
512
933
  generateParamConfigMetadata('contractId', true, 0 /* UrlParameter */, 0 /* String */),
513
934
  generateParamConfigMetadata('contractDocumentVersionId', false, 1 /* QueryParameter */, 0 /* String */),
514
935
  ];
515
- const getContractDocumentVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getContractDocumentVersion_ConfigPropertyMetadata);
516
- const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(getContractDocumentVersion_ConfigPropertyMetadata);
936
+ const getContractDocumentVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getContractDocumentVersion_ConfigPropertyMetadata);
937
+ const createResourceParams$i = /*#__PURE__*/ createResourceParams$l(getContractDocumentVersion_ConfigPropertyMetadata);
517
938
  function keyBuilder$i(luvio, config) {
518
- const resourceParams = createResourceParams$h(config);
939
+ const resourceParams = createResourceParams$i(config);
519
940
  return keyBuilder$j(luvio, resourceParams);
520
941
  }
521
- function typeCheckConfig$h(untrustedConfig) {
942
+ function typeCheckConfig$i(untrustedConfig) {
522
943
  const config = {};
523
- typeCheckConfig$j(untrustedConfig, config, getContractDocumentVersion_ConfigPropertyMetadata);
944
+ typeCheckConfig$l(untrustedConfig, config, getContractDocumentVersion_ConfigPropertyMetadata);
524
945
  return config;
525
946
  }
526
- function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
947
+ function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
527
948
  if (!untrustedIsObject(untrustedConfig)) {
528
949
  return null;
529
950
  }
530
951
  if (process.env.NODE_ENV !== 'production') {
531
952
  validateConfig(untrustedConfig, configPropertyNames);
532
953
  }
533
- const config = typeCheckConfig$h(untrustedConfig);
954
+ const config = typeCheckConfig$i(untrustedConfig);
534
955
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
535
956
  return null;
536
957
  }
537
958
  return config;
538
959
  }
539
960
  function adapterFragment$5(luvio, config) {
540
- createResourceParams$h(config);
961
+ createResourceParams$i(config);
541
962
  return select$o();
542
963
  }
543
964
  function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
544
- const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
965
+ const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
545
966
  config,
546
- resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
967
+ resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
547
968
  });
548
969
  return luvio.storeBroadcast().then(() => snapshot);
549
970
  }
550
971
  function onFetchResponseError$5(luvio, config, resourceParams, response) {
551
972
  const snapshot = ingestError$5(luvio, resourceParams, response, {
552
973
  config,
553
- resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
974
+ resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
554
975
  });
555
976
  return luvio.storeBroadcast().then(() => snapshot);
556
977
  }
557
- function buildNetworkSnapshot$h(luvio, config, options) {
558
- const resourceParams = createResourceParams$h(config);
559
- const request = createResourceRequest$h(resourceParams);
978
+ function buildNetworkSnapshot$i(luvio, config, options) {
979
+ const resourceParams = createResourceParams$i(config);
980
+ const request = createResourceRequest$i(resourceParams);
560
981
  return luvio.dispatchResourceRequest(request, options)
561
982
  .then((response) => {
562
983
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
563
984
  const cache = new StoreKeyMap();
564
- getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
985
+ getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
565
986
  return cache;
566
987
  });
567
988
  }, (response) => {
@@ -569,7 +990,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
569
990
  });
570
991
  }
571
992
  function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
572
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
993
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
573
994
  }
574
995
  function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
575
996
  const { luvio, config } = context;
@@ -580,12 +1001,12 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
580
1001
  };
581
1002
  const cacheSnapshot = storeLookup(selector, {
582
1003
  config,
583
- resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
1004
+ resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
584
1005
  });
585
1006
  return cacheSnapshot;
586
1007
  }
587
1008
  const getContractDocumentVersionAdapterFactory = (luvio) => function clm__getContractDocumentVersion(untrustedConfig, requestContext) {
588
- const config = validateAdapterConfig$h(untrustedConfig, getContractDocumentVersion_ConfigPropertyNames);
1009
+ const config = validateAdapterConfig$i(untrustedConfig, getContractDocumentVersion_ConfigPropertyNames);
589
1010
  // Invalid or incomplete config
590
1011
  if (config === null) {
591
1012
  return null;
@@ -594,7 +1015,7 @@ const getContractDocumentVersionAdapterFactory = (luvio) => function clm__getCon
594
1015
  buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
595
1016
  };
596
1017
 
597
- function validate$e(obj, path = 'TemplateInputRepresentation') {
1018
+ function validate$d(obj, path = 'TemplateInputRepresentation') {
598
1019
  const v_error = (() => {
599
1020
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
600
1021
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -617,165 +1038,23 @@ function validate$e(obj, path = 'TemplateInputRepresentation') {
617
1038
  const obj_pdfDocumentId = obj.pdfDocumentId;
618
1039
  const path_pdfDocumentId = path + '.pdfDocumentId';
619
1040
  if (typeof obj_pdfDocumentId !== 'string') {
620
- return new TypeError('Expected "string" but received "' + typeof obj_pdfDocumentId + '" (at "' + path_pdfDocumentId + '")');
621
- }
622
- }
623
- const obj_templateId = obj.templateId;
624
- const path_templateId = path + '.templateId';
625
- if (typeof obj_templateId !== 'string') {
626
- return new TypeError('Expected "string" but received "' + typeof obj_templateId + '" (at "' + path_templateId + '")');
627
- }
628
- if (obj.wordDocumentId !== undefined) {
629
- const obj_wordDocumentId = obj.wordDocumentId;
630
- const path_wordDocumentId = path + '.wordDocumentId';
631
- if (typeof obj_wordDocumentId !== 'string') {
632
- return new TypeError('Expected "string" but received "' + typeof obj_wordDocumentId + '" (at "' + path_wordDocumentId + '")');
633
- }
634
- }
635
- })();
636
- return v_error === undefined ? null : v_error;
637
- }
638
-
639
- const VERSION$8 = "f874339705636326163a82467da64b36";
640
- function validate$d(obj, path = 'ContentDocumentRepresentation') {
641
- const v_error = (() => {
642
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
643
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
644
- }
645
- const obj_contentDocumentId = obj.contentDocumentId;
646
- const path_contentDocumentId = path + '.contentDocumentId';
647
- if (typeof obj_contentDocumentId !== 'string') {
648
- return new TypeError('Expected "string" but received "' + typeof obj_contentDocumentId + '" (at "' + path_contentDocumentId + '")');
649
- }
650
- if (obj.contentDocumentLinkId !== undefined) {
651
- const obj_contentDocumentLinkId = obj.contentDocumentLinkId;
652
- const path_contentDocumentLinkId = path + '.contentDocumentLinkId';
653
- if (typeof obj_contentDocumentLinkId !== 'string') {
654
- return new TypeError('Expected "string" but received "' + typeof obj_contentDocumentLinkId + '" (at "' + path_contentDocumentLinkId + '")');
655
- }
656
- }
657
- const obj_contractDocumentVersionId = obj.contractDocumentVersionId;
658
- const path_contractDocumentVersionId = path + '.contractDocumentVersionId';
659
- if (typeof obj_contractDocumentVersionId !== 'string') {
660
- return new TypeError('Expected "string" but received "' + typeof obj_contractDocumentVersionId + '" (at "' + path_contractDocumentVersionId + '")');
661
- }
662
- const obj_createdDate = obj.createdDate;
663
- const path_createdDate = path + '.createdDate';
664
- if (typeof obj_createdDate !== 'string') {
665
- return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
666
- }
667
- if (obj.fileExtension !== undefined) {
668
- const obj_fileExtension = obj.fileExtension;
669
- const path_fileExtension = path + '.fileExtension';
670
- if (typeof obj_fileExtension !== 'string') {
671
- return new TypeError('Expected "string" but received "' + typeof obj_fileExtension + '" (at "' + path_fileExtension + '")');
672
- }
673
- }
674
- const obj_lastModifiedDate = obj.lastModifiedDate;
675
- const path_lastModifiedDate = path + '.lastModifiedDate';
676
- if (typeof obj_lastModifiedDate !== 'string') {
677
- return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
678
- }
679
- const obj_title = obj.title;
680
- const path_title = path + '.title';
681
- if (typeof obj_title !== 'string') {
682
- return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
683
- }
684
- })();
685
- return v_error === undefined ? null : v_error;
686
- }
687
- const select$n = function ContentDocumentRepresentationSelect() {
688
- return {
689
- kind: 'Fragment',
690
- version: VERSION$8,
691
- private: [],
692
- selections: [
693
- {
694
- name: 'contentDocumentId',
695
- kind: 'Scalar'
696
- },
697
- {
698
- name: 'contentDocumentLinkId',
699
- kind: 'Scalar',
700
- required: false
701
- },
702
- {
703
- name: 'contractDocumentVersionId',
704
- kind: 'Scalar'
705
- },
706
- {
707
- name: 'createdDate',
708
- kind: 'Scalar'
709
- },
710
- {
711
- name: 'fileExtension',
712
- kind: 'Scalar',
713
- required: false
714
- },
715
- {
716
- name: 'lastModifiedDate',
717
- kind: 'Scalar'
718
- },
719
- {
720
- name: 'title',
721
- kind: 'Scalar'
722
- }
723
- ]
724
- };
725
- };
726
- function equals$8(existing, incoming) {
727
- const existing_contentDocumentId = existing.contentDocumentId;
728
- const incoming_contentDocumentId = incoming.contentDocumentId;
729
- if (!(existing_contentDocumentId === incoming_contentDocumentId)) {
730
- return false;
731
- }
732
- const existing_contentDocumentLinkId = existing.contentDocumentLinkId;
733
- const incoming_contentDocumentLinkId = incoming.contentDocumentLinkId;
734
- // if at least one of these optionals is defined
735
- if (existing_contentDocumentLinkId !== undefined || incoming_contentDocumentLinkId !== undefined) {
736
- // if one of these is not defined we know the other is defined and therefore
737
- // not equal
738
- if (existing_contentDocumentLinkId === undefined || incoming_contentDocumentLinkId === undefined) {
739
- return false;
740
- }
741
- if (!(existing_contentDocumentLinkId === incoming_contentDocumentLinkId)) {
742
- return false;
1041
+ return new TypeError('Expected "string" but received "' + typeof obj_pdfDocumentId + '" (at "' + path_pdfDocumentId + '")');
1042
+ }
743
1043
  }
744
- }
745
- const existing_contractDocumentVersionId = existing.contractDocumentVersionId;
746
- const incoming_contractDocumentVersionId = incoming.contractDocumentVersionId;
747
- if (!(existing_contractDocumentVersionId === incoming_contractDocumentVersionId)) {
748
- return false;
749
- }
750
- const existing_createdDate = existing.createdDate;
751
- const incoming_createdDate = incoming.createdDate;
752
- if (!(existing_createdDate === incoming_createdDate)) {
753
- return false;
754
- }
755
- const existing_fileExtension = existing.fileExtension;
756
- const incoming_fileExtension = incoming.fileExtension;
757
- // if at least one of these optionals is defined
758
- if (existing_fileExtension !== undefined || incoming_fileExtension !== undefined) {
759
- // if one of these is not defined we know the other is defined and therefore
760
- // not equal
761
- if (existing_fileExtension === undefined || incoming_fileExtension === undefined) {
762
- return false;
1044
+ const obj_templateId = obj.templateId;
1045
+ const path_templateId = path + '.templateId';
1046
+ if (typeof obj_templateId !== 'string') {
1047
+ return new TypeError('Expected "string" but received "' + typeof obj_templateId + '" (at "' + path_templateId + '")');
763
1048
  }
764
- if (!(existing_fileExtension === incoming_fileExtension)) {
765
- return false;
1049
+ if (obj.wordDocumentId !== undefined) {
1050
+ const obj_wordDocumentId = obj.wordDocumentId;
1051
+ const path_wordDocumentId = path + '.wordDocumentId';
1052
+ if (typeof obj_wordDocumentId !== 'string') {
1053
+ return new TypeError('Expected "string" but received "' + typeof obj_wordDocumentId + '" (at "' + path_wordDocumentId + '")');
1054
+ }
766
1055
  }
767
- }
768
- const existing_lastModifiedDate = existing.lastModifiedDate;
769
- const incoming_lastModifiedDate = incoming.lastModifiedDate;
770
- if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
771
- return false;
772
- }
773
- const existing_title = existing.title;
774
- const incoming_title = incoming.title;
775
- if (!(existing_title === incoming_title)) {
776
- return false;
777
- }
778
- return true;
1056
+ })();
1057
+ return v_error === undefined ? null : v_error;
779
1058
  }
780
1059
 
781
1060
  const TTL$6 = 60000;
@@ -794,7 +1073,7 @@ function validate$c(obj, path = 'DocumentGenerateRepresentation') {
794
1073
  for (let i = 0; i < obj_contentDocuments.length; i++) {
795
1074
  const obj_contentDocuments_item = obj_contentDocuments[i];
796
1075
  const path_contentDocuments_item = path_contentDocuments + '[' + i + ']';
797
- const referencepath_contentDocuments_itemValidationError = validate$d(obj_contentDocuments_item, path_contentDocuments_item);
1076
+ const referencepath_contentDocuments_itemValidationError = validate$j(obj_contentDocuments_item, path_contentDocuments_item);
798
1077
  if (referencepath_contentDocuments_itemValidationError !== null) {
799
1078
  let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_contentDocuments_item + '")\n';
800
1079
  message += referencepath_contentDocuments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -835,7 +1114,7 @@ function keyBuilderFromType$5(luvio, object) {
835
1114
  function normalize$7(input, existing, path, luvio, store, timestamp) {
836
1115
  return input;
837
1116
  }
838
- const select$m = function DocumentGenerateRepresentationSelect() {
1117
+ const select$n = function DocumentGenerateRepresentationSelect() {
839
1118
  return {
840
1119
  kind: 'Fragment',
841
1120
  version: VERSION$7,
@@ -871,19 +1150,19 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
871
1150
  });
872
1151
  }
873
1152
 
874
- function select$l(luvio, params) {
875
- return select$m();
1153
+ function select$m(luvio, params) {
1154
+ return select$n();
876
1155
  }
877
- function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
1156
+ function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
878
1157
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
879
1158
  }
880
- function ingestSuccess$e(luvio, resourceParams, response) {
1159
+ function ingestSuccess$f(luvio, resourceParams, response) {
881
1160
  const { body } = response;
882
1161
  const key = keyBuilderFromType$5(luvio, body);
883
1162
  luvio.storeIngest(key, ingest$7, body);
884
1163
  const snapshot = luvio.storeLookup({
885
1164
  recordId: key,
886
- node: select$l(),
1165
+ node: select$m(),
887
1166
  variables: {},
888
1167
  });
889
1168
  if (process.env.NODE_ENV !== 'production') {
@@ -894,7 +1173,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
894
1173
  deepFreeze(snapshot.data);
895
1174
  return snapshot;
896
1175
  }
897
- function createResourceRequest$g(config) {
1176
+ function createResourceRequest$h(config) {
898
1177
  const headers = {};
899
1178
  return {
900
1179
  baseUri: '/services/data/v60.0',
@@ -908,47 +1187,47 @@ function createResourceRequest$g(config) {
908
1187
  };
909
1188
  }
910
1189
 
911
- const adapterName$g = 'createContractDocumentVersionAndInitializeGenerateDocumentProcess';
1190
+ const adapterName$h = 'createContractDocumentVersionAndInitializeGenerateDocumentProcess';
912
1191
  const createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyMetadata = [
913
1192
  generateParamConfigMetadata('contractId', true, 0 /* UrlParameter */, 0 /* String */),
914
1193
  generateParamConfigMetadata('templateInput', true, 2 /* Body */, 4 /* Unsupported */),
915
1194
  ];
916
- const createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyMetadata);
917
- const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyMetadata);
918
- function typeCheckConfig$g(untrustedConfig) {
1195
+ const createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyMetadata);
1196
+ const createResourceParams$h = /*#__PURE__*/ createResourceParams$l(createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyMetadata);
1197
+ function typeCheckConfig$h(untrustedConfig) {
919
1198
  const config = {};
920
- typeCheckConfig$j(untrustedConfig, config, createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyMetadata);
1199
+ typeCheckConfig$l(untrustedConfig, config, createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyMetadata);
921
1200
  const untrustedConfig_templateInput = untrustedConfig.templateInput;
922
- const referenceTemplateInputRepresentationValidationError = validate$e(untrustedConfig_templateInput);
1201
+ const referenceTemplateInputRepresentationValidationError = validate$d(untrustedConfig_templateInput);
923
1202
  if (referenceTemplateInputRepresentationValidationError === null) {
924
1203
  config.templateInput = untrustedConfig_templateInput;
925
1204
  }
926
1205
  return config;
927
1206
  }
928
- function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
1207
+ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
929
1208
  if (!untrustedIsObject(untrustedConfig)) {
930
1209
  return null;
931
1210
  }
932
1211
  if (process.env.NODE_ENV !== 'production') {
933
1212
  validateConfig(untrustedConfig, configPropertyNames);
934
1213
  }
935
- const config = typeCheckConfig$g(untrustedConfig);
1214
+ const config = typeCheckConfig$h(untrustedConfig);
936
1215
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
937
1216
  return null;
938
1217
  }
939
1218
  return config;
940
1219
  }
941
- function buildNetworkSnapshot$g(luvio, config, options) {
942
- const resourceParams = createResourceParams$g(config);
943
- const request = createResourceRequest$g(resourceParams);
1220
+ function buildNetworkSnapshot$h(luvio, config, options) {
1221
+ const resourceParams = createResourceParams$h(config);
1222
+ const request = createResourceRequest$h(resourceParams);
944
1223
  return luvio.dispatchResourceRequest(request, options)
945
1224
  .then((response) => {
946
1225
  return luvio.handleSuccessResponse(() => {
947
- const snapshot = ingestSuccess$e(luvio, resourceParams, response);
1226
+ const snapshot = ingestSuccess$f(luvio, resourceParams, response);
948
1227
  return luvio.storeBroadcast().then(() => snapshot);
949
1228
  }, () => {
950
1229
  const cache = new StoreKeyMap();
951
- getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
1230
+ getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
952
1231
  return cache;
953
1232
  });
954
1233
  }, (response) => {
@@ -958,12 +1237,12 @@ function buildNetworkSnapshot$g(luvio, config, options) {
958
1237
  }
959
1238
  const createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFactory = (luvio) => {
960
1239
  return function createContractDocumentVersionAndInitializeGenerateDocumentProcess(untrustedConfig) {
961
- const config = validateAdapterConfig$g(untrustedConfig, createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyNames);
1240
+ const config = validateAdapterConfig$h(untrustedConfig, createContractDocumentVersionAndInitializeGenerateDocumentProcess_ConfigPropertyNames);
962
1241
  // Invalid or incomplete config
963
1242
  if (config === null) {
964
1243
  throw new Error('Invalid config for "createContractDocumentVersionAndInitializeGenerateDocumentProcess"');
965
1244
  }
966
- return buildNetworkSnapshot$g(luvio, config);
1245
+ return buildNetworkSnapshot$h(luvio, config);
967
1246
  };
968
1247
  };
969
1248
 
@@ -1069,7 +1348,7 @@ function keyBuilderFromType$4(luvio, object) {
1069
1348
  function normalize$6(input, existing, path, luvio, store, timestamp) {
1070
1349
  return input;
1071
1350
  }
1072
- const select$k = function ContractActionListRepresentationSelect() {
1351
+ const select$l = function ContractActionListRepresentationSelect() {
1073
1352
  return {
1074
1353
  kind: 'Fragment',
1075
1354
  version: VERSION$6,
@@ -1105,24 +1384,24 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1105
1384
  });
1106
1385
  }
1107
1386
 
1108
- function select$j(luvio, params) {
1109
- return select$k();
1387
+ function select$k(luvio, params) {
1388
+ return select$l();
1110
1389
  }
1111
1390
  function keyBuilder$f(luvio, params) {
1112
1391
  return keyBuilder$g(luvio, {
1113
1392
  contractId: params.urlParams.contractId
1114
1393
  });
1115
1394
  }
1116
- function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
1395
+ function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
1117
1396
  getTypeCacheKeys$6(storeKeyMap, luvio, response);
1118
1397
  }
1119
- function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
1398
+ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
1120
1399
  const { body } = response;
1121
1400
  const key = keyBuilder$f(luvio, resourceParams);
1122
1401
  luvio.storeIngest(key, ingest$6, body);
1123
1402
  const snapshot = luvio.storeLookup({
1124
1403
  recordId: key,
1125
- node: select$j(),
1404
+ node: select$k(),
1126
1405
  variables: {},
1127
1406
  }, snapshotRefresh);
1128
1407
  if (process.env.NODE_ENV !== 'production') {
@@ -1145,7 +1424,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
1145
1424
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1146
1425
  return errorSnapshot;
1147
1426
  }
1148
- function createResourceRequest$f(config) {
1427
+ function createResourceRequest$g(config) {
1149
1428
  const headers = {};
1150
1429
  return {
1151
1430
  baseUri: '/services/data/v60.0',
@@ -1159,60 +1438,60 @@ function createResourceRequest$f(config) {
1159
1438
  };
1160
1439
  }
1161
1440
 
1162
- const adapterName$f = 'getContractActions';
1441
+ const adapterName$g = 'getContractActions';
1163
1442
  const getContractActions_ConfigPropertyMetadata = [
1164
1443
  generateParamConfigMetadata('contractId', true, 0 /* UrlParameter */, 0 /* String */),
1165
1444
  ];
1166
- const getContractActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getContractActions_ConfigPropertyMetadata);
1167
- const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(getContractActions_ConfigPropertyMetadata);
1445
+ const getContractActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getContractActions_ConfigPropertyMetadata);
1446
+ const createResourceParams$g = /*#__PURE__*/ createResourceParams$l(getContractActions_ConfigPropertyMetadata);
1168
1447
  function keyBuilder$e(luvio, config) {
1169
- const resourceParams = createResourceParams$f(config);
1448
+ const resourceParams = createResourceParams$g(config);
1170
1449
  return keyBuilder$f(luvio, resourceParams);
1171
1450
  }
1172
- function typeCheckConfig$f(untrustedConfig) {
1451
+ function typeCheckConfig$g(untrustedConfig) {
1173
1452
  const config = {};
1174
- typeCheckConfig$j(untrustedConfig, config, getContractActions_ConfigPropertyMetadata);
1453
+ typeCheckConfig$l(untrustedConfig, config, getContractActions_ConfigPropertyMetadata);
1175
1454
  return config;
1176
1455
  }
1177
- function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
1456
+ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
1178
1457
  if (!untrustedIsObject(untrustedConfig)) {
1179
1458
  return null;
1180
1459
  }
1181
1460
  if (process.env.NODE_ENV !== 'production') {
1182
1461
  validateConfig(untrustedConfig, configPropertyNames);
1183
1462
  }
1184
- const config = typeCheckConfig$f(untrustedConfig);
1463
+ const config = typeCheckConfig$g(untrustedConfig);
1185
1464
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1186
1465
  return null;
1187
1466
  }
1188
1467
  return config;
1189
1468
  }
1190
1469
  function adapterFragment$4(luvio, config) {
1191
- createResourceParams$f(config);
1192
- return select$j();
1470
+ createResourceParams$g(config);
1471
+ return select$k();
1193
1472
  }
1194
1473
  function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1195
- const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
1474
+ const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
1196
1475
  config,
1197
- resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
1476
+ resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
1198
1477
  });
1199
1478
  return luvio.storeBroadcast().then(() => snapshot);
1200
1479
  }
1201
1480
  function onFetchResponseError$4(luvio, config, resourceParams, response) {
1202
1481
  const snapshot = ingestError$4(luvio, resourceParams, response, {
1203
1482
  config,
1204
- resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
1483
+ resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
1205
1484
  });
1206
1485
  return luvio.storeBroadcast().then(() => snapshot);
1207
1486
  }
1208
- function buildNetworkSnapshot$f(luvio, config, options) {
1209
- const resourceParams = createResourceParams$f(config);
1210
- const request = createResourceRequest$f(resourceParams);
1487
+ function buildNetworkSnapshot$g(luvio, config, options) {
1488
+ const resourceParams = createResourceParams$g(config);
1489
+ const request = createResourceRequest$g(resourceParams);
1211
1490
  return luvio.dispatchResourceRequest(request, options)
1212
1491
  .then((response) => {
1213
1492
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
1214
1493
  const cache = new StoreKeyMap();
1215
- getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
1494
+ getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
1216
1495
  return cache;
1217
1496
  });
1218
1497
  }, (response) => {
@@ -1220,7 +1499,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
1220
1499
  });
1221
1500
  }
1222
1501
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
1223
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
1502
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
1224
1503
  }
1225
1504
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1226
1505
  const { luvio, config } = context;
@@ -1231,12 +1510,12 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1231
1510
  };
1232
1511
  const cacheSnapshot = storeLookup(selector, {
1233
1512
  config,
1234
- resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
1513
+ resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
1235
1514
  });
1236
1515
  return cacheSnapshot;
1237
1516
  }
1238
1517
  const getContractActionsAdapterFactory = (luvio) => function clm__getContractActions(untrustedConfig, requestContext) {
1239
- const config = validateAdapterConfig$f(untrustedConfig, getContractActions_ConfigPropertyNames);
1518
+ const config = validateAdapterConfig$g(untrustedConfig, getContractActions_ConfigPropertyNames);
1240
1519
  // Invalid or incomplete config
1241
1520
  if (config === null) {
1242
1521
  return null;
@@ -1245,19 +1524,19 @@ const getContractActionsAdapterFactory = (luvio) => function clm__getContractAct
1245
1524
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
1246
1525
  };
1247
1526
 
1248
- function select$i(luvio, params) {
1249
- return select$m();
1527
+ function select$j(luvio, params) {
1528
+ return select$n();
1250
1529
  }
1251
- function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
1530
+ function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
1252
1531
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
1253
1532
  }
1254
- function ingestSuccess$c(luvio, resourceParams, response) {
1533
+ function ingestSuccess$d(luvio, resourceParams, response) {
1255
1534
  const { body } = response;
1256
1535
  const key = keyBuilderFromType$5(luvio, body);
1257
1536
  luvio.storeIngest(key, ingest$7, body);
1258
1537
  const snapshot = luvio.storeLookup({
1259
1538
  recordId: key,
1260
- node: select$i(),
1539
+ node: select$j(),
1261
1540
  variables: {},
1262
1541
  });
1263
1542
  if (process.env.NODE_ENV !== 'production') {
@@ -1268,7 +1547,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
1268
1547
  deepFreeze(snapshot.data);
1269
1548
  return snapshot;
1270
1549
  }
1271
- function createResourceRequest$e(config) {
1550
+ function createResourceRequest$f(config) {
1272
1551
  const headers = {};
1273
1552
  return {
1274
1553
  baseUri: '/services/data/v60.0',
@@ -1282,47 +1561,47 @@ function createResourceRequest$e(config) {
1282
1561
  };
1283
1562
  }
1284
1563
 
1285
- const adapterName$e = 'updateContractDocumentVersionWithTemplate';
1564
+ const adapterName$f = 'updateContractDocumentVersionWithTemplate';
1286
1565
  const updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata = [
1287
1566
  generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
1288
1567
  generateParamConfigMetadata('templateInput', true, 2 /* Body */, 4 /* Unsupported */),
1289
1568
  ];
1290
- const updateContractDocumentVersionWithTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata);
1291
- const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata);
1292
- function typeCheckConfig$e(untrustedConfig) {
1569
+ const updateContractDocumentVersionWithTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata);
1570
+ const createResourceParams$f = /*#__PURE__*/ createResourceParams$l(updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata);
1571
+ function typeCheckConfig$f(untrustedConfig) {
1293
1572
  const config = {};
1294
- typeCheckConfig$j(untrustedConfig, config, updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata);
1573
+ typeCheckConfig$l(untrustedConfig, config, updateContractDocumentVersionWithTemplate_ConfigPropertyMetadata);
1295
1574
  const untrustedConfig_templateInput = untrustedConfig.templateInput;
1296
- const referenceTemplateInputRepresentationValidationError = validate$e(untrustedConfig_templateInput);
1575
+ const referenceTemplateInputRepresentationValidationError = validate$d(untrustedConfig_templateInput);
1297
1576
  if (referenceTemplateInputRepresentationValidationError === null) {
1298
1577
  config.templateInput = untrustedConfig_templateInput;
1299
1578
  }
1300
1579
  return config;
1301
1580
  }
1302
- function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
1581
+ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
1303
1582
  if (!untrustedIsObject(untrustedConfig)) {
1304
1583
  return null;
1305
1584
  }
1306
1585
  if (process.env.NODE_ENV !== 'production') {
1307
1586
  validateConfig(untrustedConfig, configPropertyNames);
1308
1587
  }
1309
- const config = typeCheckConfig$e(untrustedConfig);
1588
+ const config = typeCheckConfig$f(untrustedConfig);
1310
1589
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1311
1590
  return null;
1312
1591
  }
1313
1592
  return config;
1314
1593
  }
1315
- function buildNetworkSnapshot$e(luvio, config, options) {
1316
- const resourceParams = createResourceParams$e(config);
1317
- const request = createResourceRequest$e(resourceParams);
1594
+ function buildNetworkSnapshot$f(luvio, config, options) {
1595
+ const resourceParams = createResourceParams$f(config);
1596
+ const request = createResourceRequest$f(resourceParams);
1318
1597
  return luvio.dispatchResourceRequest(request, options)
1319
1598
  .then((response) => {
1320
1599
  return luvio.handleSuccessResponse(() => {
1321
- const snapshot = ingestSuccess$c(luvio, resourceParams, response);
1600
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response);
1322
1601
  return luvio.storeBroadcast().then(() => snapshot);
1323
1602
  }, () => {
1324
1603
  const cache = new StoreKeyMap();
1325
- getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
1604
+ getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
1326
1605
  return cache;
1327
1606
  });
1328
1607
  }, (response) => {
@@ -1332,28 +1611,28 @@ function buildNetworkSnapshot$e(luvio, config, options) {
1332
1611
  }
1333
1612
  const updateContractDocumentVersionWithTemplateAdapterFactory = (luvio) => {
1334
1613
  return function updateContractDocumentVersionWithTemplate(untrustedConfig) {
1335
- const config = validateAdapterConfig$e(untrustedConfig, updateContractDocumentVersionWithTemplate_ConfigPropertyNames);
1614
+ const config = validateAdapterConfig$f(untrustedConfig, updateContractDocumentVersionWithTemplate_ConfigPropertyNames);
1336
1615
  // Invalid or incomplete config
1337
1616
  if (config === null) {
1338
1617
  throw new Error('Invalid config for "updateContractDocumentVersionWithTemplate"');
1339
1618
  }
1340
- return buildNetworkSnapshot$e(luvio, config);
1619
+ return buildNetworkSnapshot$f(luvio, config);
1341
1620
  };
1342
1621
  };
1343
1622
 
1344
- function select$h(luvio, params) {
1623
+ function select$i(luvio, params) {
1345
1624
  return select$r();
1346
1625
  }
1347
- function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
1626
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
1348
1627
  getTypeCacheKeys$9(storeKeyMap, luvio, response);
1349
1628
  }
1350
- function ingestSuccess$b(luvio, resourceParams, response) {
1629
+ function ingestSuccess$c(luvio, resourceParams, response) {
1351
1630
  const { body } = response;
1352
1631
  const key = keyBuilderFromType$6(luvio, body);
1353
1632
  luvio.storeIngest(key, ingest$9, body);
1354
1633
  const snapshot = luvio.storeLookup({
1355
1634
  recordId: key,
1356
- node: select$h(),
1635
+ node: select$i(),
1357
1636
  variables: {},
1358
1637
  });
1359
1638
  if (process.env.NODE_ENV !== 'production') {
@@ -1364,7 +1643,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
1364
1643
  deepFreeze(snapshot.data);
1365
1644
  return snapshot;
1366
1645
  }
1367
- function createResourceRequest$d(config) {
1646
+ function createResourceRequest$e(config) {
1368
1647
  const headers = {};
1369
1648
  return {
1370
1649
  baseUri: '/services/data/v60.0',
@@ -1378,41 +1657,41 @@ function createResourceRequest$d(config) {
1378
1657
  };
1379
1658
  }
1380
1659
 
1381
- const adapterName$d = 'checkIn';
1660
+ const adapterName$e = 'checkIn';
1382
1661
  const checkIn_ConfigPropertyMetadata = [
1383
1662
  generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
1384
1663
  ];
1385
- const checkIn_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, checkIn_ConfigPropertyMetadata);
1386
- const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(checkIn_ConfigPropertyMetadata);
1387
- function typeCheckConfig$d(untrustedConfig) {
1664
+ const checkIn_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, checkIn_ConfigPropertyMetadata);
1665
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$l(checkIn_ConfigPropertyMetadata);
1666
+ function typeCheckConfig$e(untrustedConfig) {
1388
1667
  const config = {};
1389
- typeCheckConfig$j(untrustedConfig, config, checkIn_ConfigPropertyMetadata);
1668
+ typeCheckConfig$l(untrustedConfig, config, checkIn_ConfigPropertyMetadata);
1390
1669
  return config;
1391
1670
  }
1392
- function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
1671
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
1393
1672
  if (!untrustedIsObject(untrustedConfig)) {
1394
1673
  return null;
1395
1674
  }
1396
1675
  if (process.env.NODE_ENV !== 'production') {
1397
1676
  validateConfig(untrustedConfig, configPropertyNames);
1398
1677
  }
1399
- const config = typeCheckConfig$d(untrustedConfig);
1678
+ const config = typeCheckConfig$e(untrustedConfig);
1400
1679
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1401
1680
  return null;
1402
1681
  }
1403
1682
  return config;
1404
1683
  }
1405
- function buildNetworkSnapshot$d(luvio, config, options) {
1406
- const resourceParams = createResourceParams$d(config);
1407
- const request = createResourceRequest$d(resourceParams);
1684
+ function buildNetworkSnapshot$e(luvio, config, options) {
1685
+ const resourceParams = createResourceParams$e(config);
1686
+ const request = createResourceRequest$e(resourceParams);
1408
1687
  return luvio.dispatchResourceRequest(request, options)
1409
1688
  .then((response) => {
1410
1689
  return luvio.handleSuccessResponse(() => {
1411
- const snapshot = ingestSuccess$b(luvio, resourceParams, response);
1690
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response);
1412
1691
  return luvio.storeBroadcast().then(() => snapshot);
1413
1692
  }, () => {
1414
1693
  const cache = new StoreKeyMap();
1415
- getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
1694
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
1416
1695
  return cache;
1417
1696
  });
1418
1697
  }, (response) => {
@@ -1422,28 +1701,28 @@ function buildNetworkSnapshot$d(luvio, config, options) {
1422
1701
  }
1423
1702
  const checkInAdapterFactory = (luvio) => {
1424
1703
  return function checkIn(untrustedConfig) {
1425
- const config = validateAdapterConfig$d(untrustedConfig, checkIn_ConfigPropertyNames);
1704
+ const config = validateAdapterConfig$e(untrustedConfig, checkIn_ConfigPropertyNames);
1426
1705
  // Invalid or incomplete config
1427
1706
  if (config === null) {
1428
1707
  throw new Error('Invalid config for "checkIn"');
1429
1708
  }
1430
- return buildNetworkSnapshot$d(luvio, config);
1709
+ return buildNetworkSnapshot$e(luvio, config);
1431
1710
  };
1432
1711
  };
1433
1712
 
1434
- function select$g(luvio, params) {
1435
- return select$m();
1713
+ function select$h(luvio, params) {
1714
+ return select$n();
1436
1715
  }
1437
- function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
1716
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
1438
1717
  getTypeCacheKeys$7(storeKeyMap, luvio, response);
1439
1718
  }
1440
- function ingestSuccess$a(luvio, resourceParams, response) {
1719
+ function ingestSuccess$b(luvio, resourceParams, response) {
1441
1720
  const { body } = response;
1442
1721
  const key = keyBuilderFromType$5(luvio, body);
1443
1722
  luvio.storeIngest(key, ingest$7, body);
1444
1723
  const snapshot = luvio.storeLookup({
1445
1724
  recordId: key,
1446
- node: select$g(),
1725
+ node: select$h(),
1447
1726
  variables: {},
1448
1727
  });
1449
1728
  if (process.env.NODE_ENV !== 'production') {
@@ -1454,7 +1733,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
1454
1733
  deepFreeze(snapshot.data);
1455
1734
  return snapshot;
1456
1735
  }
1457
- function createResourceRequest$c(config) {
1736
+ function createResourceRequest$d(config) {
1458
1737
  const headers = {};
1459
1738
  return {
1460
1739
  baseUri: '/services/data/v60.0',
@@ -1468,47 +1747,47 @@ function createResourceRequest$c(config) {
1468
1747
  };
1469
1748
  }
1470
1749
 
1471
- const adapterName$c = 'checkoutContractDocumentVersion';
1750
+ const adapterName$d = 'checkoutContractDocumentVersion';
1472
1751
  const checkoutContractDocumentVersion_ConfigPropertyMetadata = [
1473
1752
  generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
1474
1753
  generateParamConfigMetadata('templateInput', true, 2 /* Body */, 4 /* Unsupported */),
1475
1754
  ];
1476
- const checkoutContractDocumentVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, checkoutContractDocumentVersion_ConfigPropertyMetadata);
1477
- const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(checkoutContractDocumentVersion_ConfigPropertyMetadata);
1478
- function typeCheckConfig$c(untrustedConfig) {
1755
+ const checkoutContractDocumentVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, checkoutContractDocumentVersion_ConfigPropertyMetadata);
1756
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$l(checkoutContractDocumentVersion_ConfigPropertyMetadata);
1757
+ function typeCheckConfig$d(untrustedConfig) {
1479
1758
  const config = {};
1480
- typeCheckConfig$j(untrustedConfig, config, checkoutContractDocumentVersion_ConfigPropertyMetadata);
1759
+ typeCheckConfig$l(untrustedConfig, config, checkoutContractDocumentVersion_ConfigPropertyMetadata);
1481
1760
  const untrustedConfig_templateInput = untrustedConfig.templateInput;
1482
- const referenceTemplateInputRepresentationValidationError = validate$e(untrustedConfig_templateInput);
1761
+ const referenceTemplateInputRepresentationValidationError = validate$d(untrustedConfig_templateInput);
1483
1762
  if (referenceTemplateInputRepresentationValidationError === null) {
1484
1763
  config.templateInput = untrustedConfig_templateInput;
1485
1764
  }
1486
1765
  return config;
1487
1766
  }
1488
- function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
1767
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
1489
1768
  if (!untrustedIsObject(untrustedConfig)) {
1490
1769
  return null;
1491
1770
  }
1492
1771
  if (process.env.NODE_ENV !== 'production') {
1493
1772
  validateConfig(untrustedConfig, configPropertyNames);
1494
1773
  }
1495
- const config = typeCheckConfig$c(untrustedConfig);
1774
+ const config = typeCheckConfig$d(untrustedConfig);
1496
1775
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1497
1776
  return null;
1498
1777
  }
1499
1778
  return config;
1500
1779
  }
1501
- function buildNetworkSnapshot$c(luvio, config, options) {
1502
- const resourceParams = createResourceParams$c(config);
1503
- const request = createResourceRequest$c(resourceParams);
1780
+ function buildNetworkSnapshot$d(luvio, config, options) {
1781
+ const resourceParams = createResourceParams$d(config);
1782
+ const request = createResourceRequest$d(resourceParams);
1504
1783
  return luvio.dispatchResourceRequest(request, options)
1505
1784
  .then((response) => {
1506
1785
  return luvio.handleSuccessResponse(() => {
1507
- const snapshot = ingestSuccess$a(luvio, resourceParams, response);
1786
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
1508
1787
  return luvio.storeBroadcast().then(() => snapshot);
1509
1788
  }, () => {
1510
1789
  const cache = new StoreKeyMap();
1511
- getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
1790
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
1512
1791
  return cache;
1513
1792
  });
1514
1793
  }, (response) => {
@@ -1518,12 +1797,12 @@ function buildNetworkSnapshot$c(luvio, config, options) {
1518
1797
  }
1519
1798
  const checkoutContractDocumentVersionAdapterFactory = (luvio) => {
1520
1799
  return function checkoutContractDocumentVersion(untrustedConfig) {
1521
- const config = validateAdapterConfig$c(untrustedConfig, checkoutContractDocumentVersion_ConfigPropertyNames);
1800
+ const config = validateAdapterConfig$d(untrustedConfig, checkoutContractDocumentVersion_ConfigPropertyNames);
1522
1801
  // Invalid or incomplete config
1523
1802
  if (config === null) {
1524
1803
  throw new Error('Invalid config for "checkoutContractDocumentVersion"');
1525
1804
  }
1526
- return buildNetworkSnapshot$c(luvio, config);
1805
+ return buildNetworkSnapshot$d(luvio, config);
1527
1806
  };
1528
1807
  };
1529
1808
 
@@ -1548,7 +1827,7 @@ function validate$9(obj, path = 'ContentDocumentListRepresentation') {
1548
1827
  for (let i = 0; i < obj_data.length; i++) {
1549
1828
  const obj_data_item = obj_data[i];
1550
1829
  const path_data_item = path_data + '[' + i + ']';
1551
- const referencepath_data_itemValidationError = validate$d(obj_data_item, path_data_item);
1830
+ const referencepath_data_itemValidationError = validate$j(obj_data_item, path_data_item);
1552
1831
  if (referencepath_data_itemValidationError !== null) {
1553
1832
  let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_data_item + '")\n';
1554
1833
  message += referencepath_data_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1572,7 +1851,7 @@ function keyBuilderFromType$3(luvio, object) {
1572
1851
  function normalize$5(input, existing, path, luvio, store, timestamp) {
1573
1852
  return input;
1574
1853
  }
1575
- const select$f = function ContentDocumentListRepresentationSelect() {
1854
+ const select$g = function ContentDocumentListRepresentationSelect() {
1576
1855
  return {
1577
1856
  kind: 'Fragment',
1578
1857
  version: VERSION$5,
@@ -1613,7 +1892,7 @@ function keyBuilder$c(luvio, params) {
1613
1892
  contractDocumentVersionId: params.urlParams.contractDocumentVersionId
1614
1893
  });
1615
1894
  }
1616
- function getResponseCacheKeys$b(cacheKeyMap, luvio, resourceParams) {
1895
+ function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
1617
1896
  const key = keyBuilder$c(luvio, resourceParams);
1618
1897
  cacheKeyMap.set(key, {
1619
1898
  namespace: keyPrefix,
@@ -1625,7 +1904,7 @@ function evictSuccess$1(luvio, resourceParams) {
1625
1904
  const key = keyBuilder$c(luvio, resourceParams);
1626
1905
  luvio.storeEvict(key);
1627
1906
  }
1628
- function createResourceRequest$b(config) {
1907
+ function createResourceRequest$c(config) {
1629
1908
  const headers = {};
1630
1909
  return {
1631
1910
  baseUri: '/services/data/v60.0',
@@ -1639,16 +1918,108 @@ function createResourceRequest$b(config) {
1639
1918
  };
1640
1919
  }
1641
1920
 
1642
- const adapterName$b = 'deleteAttachment';
1921
+ const adapterName$c = 'deleteAttachment';
1643
1922
  const deleteAttachment_ConfigPropertyMetadata = [
1644
1923
  generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
1645
1924
  generateParamConfigMetadata('contentDocumentId', false, 1 /* QueryParameter */, 0 /* String */),
1646
1925
  ];
1647
- const deleteAttachment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deleteAttachment_ConfigPropertyMetadata);
1648
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(deleteAttachment_ConfigPropertyMetadata);
1926
+ const deleteAttachment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteAttachment_ConfigPropertyMetadata);
1927
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$l(deleteAttachment_ConfigPropertyMetadata);
1928
+ function typeCheckConfig$c(untrustedConfig) {
1929
+ const config = {};
1930
+ typeCheckConfig$l(untrustedConfig, config, deleteAttachment_ConfigPropertyMetadata);
1931
+ return config;
1932
+ }
1933
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
1934
+ if (!untrustedIsObject(untrustedConfig)) {
1935
+ return null;
1936
+ }
1937
+ if (process.env.NODE_ENV !== 'production') {
1938
+ validateConfig(untrustedConfig, configPropertyNames);
1939
+ }
1940
+ const config = typeCheckConfig$c(untrustedConfig);
1941
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1942
+ return null;
1943
+ }
1944
+ return config;
1945
+ }
1946
+ function buildNetworkSnapshot$c(luvio, config, options) {
1947
+ const resourceParams = createResourceParams$c(config);
1948
+ const request = createResourceRequest$c(resourceParams);
1949
+ return luvio.dispatchResourceRequest(request, options)
1950
+ .then(() => {
1951
+ return luvio.handleSuccessResponse(() => {
1952
+ evictSuccess$1(luvio, resourceParams);
1953
+ return luvio.storeBroadcast();
1954
+ }, () => {
1955
+ const cache = new StoreKeyMap();
1956
+ getResponseCacheKeys$c(cache, luvio, resourceParams);
1957
+ return cache;
1958
+ });
1959
+ }, (response) => {
1960
+ deepFreeze(response);
1961
+ throw response;
1962
+ });
1963
+ }
1964
+ const deleteAttachmentAdapterFactory = (luvio) => {
1965
+ return function clmdeleteAttachment(untrustedConfig) {
1966
+ const config = validateAdapterConfig$c(untrustedConfig, deleteAttachment_ConfigPropertyNames);
1967
+ // Invalid or incomplete config
1968
+ if (config === null) {
1969
+ throw new Error(`Invalid config for "${adapterName$c}"`);
1970
+ }
1971
+ return buildNetworkSnapshot$c(luvio, config);
1972
+ };
1973
+ };
1974
+
1975
+ function select$f(luvio, params) {
1976
+ return select$r();
1977
+ }
1978
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
1979
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
1980
+ }
1981
+ function ingestSuccess$a(luvio, resourceParams, response) {
1982
+ const { body } = response;
1983
+ const key = keyBuilderFromType$6(luvio, body);
1984
+ luvio.storeIngest(key, ingest$9, body);
1985
+ const snapshot = luvio.storeLookup({
1986
+ recordId: key,
1987
+ node: select$f(),
1988
+ variables: {},
1989
+ });
1990
+ if (process.env.NODE_ENV !== 'production') {
1991
+ if (snapshot.state !== 'Fulfilled') {
1992
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1993
+ }
1994
+ }
1995
+ deepFreeze(snapshot.data);
1996
+ return snapshot;
1997
+ }
1998
+ function createResourceRequest$b(config) {
1999
+ const headers = {};
2000
+ return {
2001
+ baseUri: '/services/data/v60.0',
2002
+ basePath: '/connect/clm/contract-document-version/' + config.urlParams.contractDocumentVersionId + '/content-documents',
2003
+ method: 'patch',
2004
+ body: null,
2005
+ urlParams: config.urlParams,
2006
+ queryParams: config.queryParams,
2007
+ headers,
2008
+ priority: 'normal',
2009
+ };
2010
+ }
2011
+
2012
+ const adapterName$b = 'updateSharingOnAttachment';
2013
+ const updateSharingOnAttachment_ConfigPropertyMetadata = [
2014
+ generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
2015
+ generateParamConfigMetadata('contentDocumentId', false, 1 /* QueryParameter */, 0 /* String */),
2016
+ generateParamConfigMetadata('share', false, 1 /* QueryParameter */, 1 /* Boolean */),
2017
+ ];
2018
+ const updateSharingOnAttachment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, updateSharingOnAttachment_ConfigPropertyMetadata);
2019
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$l(updateSharingOnAttachment_ConfigPropertyMetadata);
1649
2020
  function typeCheckConfig$b(untrustedConfig) {
1650
2021
  const config = {};
1651
- typeCheckConfig$j(untrustedConfig, config, deleteAttachment_ConfigPropertyMetadata);
2022
+ typeCheckConfig$l(untrustedConfig, config, updateSharingOnAttachment_ConfigPropertyMetadata);
1652
2023
  return config;
1653
2024
  }
1654
2025
  function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
@@ -1668,13 +2039,13 @@ function buildNetworkSnapshot$b(luvio, config, options) {
1668
2039
  const resourceParams = createResourceParams$b(config);
1669
2040
  const request = createResourceRequest$b(resourceParams);
1670
2041
  return luvio.dispatchResourceRequest(request, options)
1671
- .then(() => {
2042
+ .then((response) => {
1672
2043
  return luvio.handleSuccessResponse(() => {
1673
- evictSuccess$1(luvio, resourceParams);
1674
- return luvio.storeBroadcast();
2044
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
2045
+ return luvio.storeBroadcast().then(() => snapshot);
1675
2046
  }, () => {
1676
2047
  const cache = new StoreKeyMap();
1677
- getResponseCacheKeys$b(cache, luvio, resourceParams);
2048
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
1678
2049
  return cache;
1679
2050
  });
1680
2051
  }, (response) => {
@@ -1682,19 +2053,19 @@ function buildNetworkSnapshot$b(luvio, config, options) {
1682
2053
  throw response;
1683
2054
  });
1684
2055
  }
1685
- const deleteAttachmentAdapterFactory = (luvio) => {
1686
- return function clmdeleteAttachment(untrustedConfig) {
1687
- const config = validateAdapterConfig$b(untrustedConfig, deleteAttachment_ConfigPropertyNames);
2056
+ const updateSharingOnAttachmentAdapterFactory = (luvio) => {
2057
+ return function updateSharingOnAttachment(untrustedConfig) {
2058
+ const config = validateAdapterConfig$b(untrustedConfig, updateSharingOnAttachment_ConfigPropertyNames);
1688
2059
  // Invalid or incomplete config
1689
2060
  if (config === null) {
1690
- throw new Error(`Invalid config for "${adapterName$b}"`);
2061
+ throw new Error('Invalid config for "updateSharingOnAttachment"');
1691
2062
  }
1692
2063
  return buildNetworkSnapshot$b(luvio, config);
1693
2064
  };
1694
2065
  };
1695
2066
 
1696
2067
  function select$e(luvio, params) {
1697
- return select$f();
2068
+ return select$g();
1698
2069
  }
1699
2070
  function keyBuilder$b(luvio, params) {
1700
2071
  return keyBuilder$d(luvio, {
@@ -1752,14 +2123,14 @@ const getContentDocument_ConfigPropertyMetadata = [
1752
2123
  generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
1753
2124
  ];
1754
2125
  const getContentDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getContentDocument_ConfigPropertyMetadata);
1755
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(getContentDocument_ConfigPropertyMetadata);
2126
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$l(getContentDocument_ConfigPropertyMetadata);
1756
2127
  function keyBuilder$a(luvio, config) {
1757
2128
  const resourceParams = createResourceParams$a(config);
1758
2129
  return keyBuilder$b(luvio, resourceParams);
1759
2130
  }
1760
2131
  function typeCheckConfig$a(untrustedConfig) {
1761
2132
  const config = {};
1762
- typeCheckConfig$j(untrustedConfig, config, getContentDocument_ConfigPropertyMetadata);
2133
+ typeCheckConfig$l(untrustedConfig, config, getContentDocument_ConfigPropertyMetadata);
1763
2134
  return config;
1764
2135
  }
1765
2136
  function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
@@ -1808,7 +2179,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
1808
2179
  });
1809
2180
  }
1810
2181
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
1811
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
2182
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
1812
2183
  }
1813
2184
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
1814
2185
  const { luvio, config } = context;
@@ -1875,10 +2246,10 @@ const lockContractDocumentVersion_ConfigPropertyMetadata = [
1875
2246
  generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
1876
2247
  ];
1877
2248
  const lockContractDocumentVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, lockContractDocumentVersion_ConfigPropertyMetadata);
1878
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(lockContractDocumentVersion_ConfigPropertyMetadata);
2249
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$l(lockContractDocumentVersion_ConfigPropertyMetadata);
1879
2250
  function typeCheckConfig$9(untrustedConfig) {
1880
2251
  const config = {};
1881
- typeCheckConfig$j(untrustedConfig, config, lockContractDocumentVersion_ConfigPropertyMetadata);
2252
+ typeCheckConfig$l(untrustedConfig, config, lockContractDocumentVersion_ConfigPropertyMetadata);
1882
2253
  return config;
1883
2254
  }
1884
2255
  function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
@@ -1965,10 +2336,10 @@ const createExternalReviewDocument_ConfigPropertyMetadata = [
1965
2336
  generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
1966
2337
  ];
1967
2338
  const createExternalReviewDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createExternalReviewDocument_ConfigPropertyMetadata);
1968
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(createExternalReviewDocument_ConfigPropertyMetadata);
2339
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$l(createExternalReviewDocument_ConfigPropertyMetadata);
1969
2340
  function typeCheckConfig$8(untrustedConfig) {
1970
2341
  const config = {};
1971
- typeCheckConfig$j(untrustedConfig, config, createExternalReviewDocument_ConfigPropertyMetadata);
2342
+ typeCheckConfig$l(untrustedConfig, config, createExternalReviewDocument_ConfigPropertyMetadata);
1972
2343
  return config;
1973
2344
  }
1974
2345
  function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
@@ -2157,10 +2528,10 @@ const deleteContractDocumentVersionReview_ConfigPropertyMetadata = [
2157
2528
  generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
2158
2529
  ];
2159
2530
  const deleteContractDocumentVersionReview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteContractDocumentVersionReview_ConfigPropertyMetadata);
2160
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(deleteContractDocumentVersionReview_ConfigPropertyMetadata);
2531
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$l(deleteContractDocumentVersionReview_ConfigPropertyMetadata);
2161
2532
  function typeCheckConfig$7(untrustedConfig) {
2162
2533
  const config = {};
2163
- typeCheckConfig$j(untrustedConfig, config, deleteContractDocumentVersionReview_ConfigPropertyMetadata);
2534
+ typeCheckConfig$l(untrustedConfig, config, deleteContractDocumentVersionReview_ConfigPropertyMetadata);
2164
2535
  return config;
2165
2536
  }
2166
2537
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -2264,14 +2635,14 @@ const getContractDocumentVersionReview_ConfigPropertyMetadata = [
2264
2635
  generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
2265
2636
  ];
2266
2637
  const getContractDocumentVersionReview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getContractDocumentVersionReview_ConfigPropertyMetadata);
2267
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(getContractDocumentVersionReview_ConfigPropertyMetadata);
2638
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$l(getContractDocumentVersionReview_ConfigPropertyMetadata);
2268
2639
  function keyBuilder$6(luvio, config) {
2269
2640
  const resourceParams = createResourceParams$6(config);
2270
2641
  return keyBuilder$7(luvio, resourceParams);
2271
2642
  }
2272
2643
  function typeCheckConfig$6(untrustedConfig) {
2273
2644
  const config = {};
2274
- typeCheckConfig$j(untrustedConfig, config, getContractDocumentVersionReview_ConfigPropertyMetadata);
2645
+ typeCheckConfig$l(untrustedConfig, config, getContractDocumentVersionReview_ConfigPropertyMetadata);
2275
2646
  return config;
2276
2647
  }
2277
2648
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -2320,7 +2691,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
2320
2691
  });
2321
2692
  }
2322
2693
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2323
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
2694
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
2324
2695
  }
2325
2696
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2326
2697
  const { luvio, config } = context;
@@ -2495,10 +2866,10 @@ const updateContractDocumentVersionReview_ConfigPropertyMetadata = [
2495
2866
  generateParamConfigMetadata('review', true, 2 /* Body */, 4 /* Unsupported */),
2496
2867
  ];
2497
2868
  const updateContractDocumentVersionReview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateContractDocumentVersionReview_ConfigPropertyMetadata);
2498
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(updateContractDocumentVersionReview_ConfigPropertyMetadata);
2869
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$l(updateContractDocumentVersionReview_ConfigPropertyMetadata);
2499
2870
  function typeCheckConfig$5(untrustedConfig) {
2500
2871
  const config = {};
2501
- typeCheckConfig$j(untrustedConfig, config, updateContractDocumentVersionReview_ConfigPropertyMetadata);
2872
+ typeCheckConfig$l(untrustedConfig, config, updateContractDocumentVersionReview_ConfigPropertyMetadata);
2502
2873
  const untrustedConfig_review = untrustedConfig.review;
2503
2874
  const referenceContractDocumentVersionReviewInputRepresentationValidationError = validate$6(untrustedConfig_review);
2504
2875
  if (referenceContractDocumentVersionReviewInputRepresentationValidationError === null) {
@@ -2591,10 +2962,10 @@ const createContractDocumentVersionReview_ConfigPropertyMetadata = [
2591
2962
  generateParamConfigMetadata('review', true, 2 /* Body */, 4 /* Unsupported */),
2592
2963
  ];
2593
2964
  const createContractDocumentVersionReview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createContractDocumentVersionReview_ConfigPropertyMetadata);
2594
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(createContractDocumentVersionReview_ConfigPropertyMetadata);
2965
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$l(createContractDocumentVersionReview_ConfigPropertyMetadata);
2595
2966
  function typeCheckConfig$4(untrustedConfig) {
2596
2967
  const config = {};
2597
- typeCheckConfig$j(untrustedConfig, config, createContractDocumentVersionReview_ConfigPropertyMetadata);
2968
+ typeCheckConfig$l(untrustedConfig, config, createContractDocumentVersionReview_ConfigPropertyMetadata);
2598
2969
  const untrustedConfig_review = untrustedConfig.review;
2599
2970
  const referenceContractDocumentVersionReviewInputRepresentationValidationError = validate$6(untrustedConfig_review);
2600
2971
  if (referenceContractDocumentVersionReviewInputRepresentationValidationError === null) {
@@ -2686,10 +3057,10 @@ const unlock_ConfigPropertyMetadata = [
2686
3057
  generateParamConfigMetadata('contractDocumentVersionId', true, 0 /* UrlParameter */, 0 /* String */),
2687
3058
  ];
2688
3059
  const unlock_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, unlock_ConfigPropertyMetadata);
2689
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(unlock_ConfigPropertyMetadata);
3060
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$l(unlock_ConfigPropertyMetadata);
2690
3061
  function typeCheckConfig$3(untrustedConfig) {
2691
3062
  const config = {};
2692
- typeCheckConfig$j(untrustedConfig, config, unlock_ConfigPropertyMetadata);
3063
+ typeCheckConfig$l(untrustedConfig, config, unlock_ConfigPropertyMetadata);
2693
3064
  return config;
2694
3065
  }
2695
3066
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -2749,7 +3120,7 @@ function validate$4(obj, path = 'DocumentGenerationProcessStatusRepresentation')
2749
3120
  for (let i = 0; i < obj_contentDocuments.length; i++) {
2750
3121
  const obj_contentDocuments_item = obj_contentDocuments[i];
2751
3122
  const path_contentDocuments_item = path_contentDocuments + '[' + i + ']';
2752
- const referencepath_contentDocuments_itemValidationError = validate$d(obj_contentDocuments_item, path_contentDocuments_item);
3123
+ const referencepath_contentDocuments_itemValidationError = validate$j(obj_contentDocuments_item, path_contentDocuments_item);
2753
3124
  if (referencepath_contentDocuments_itemValidationError !== null) {
2754
3125
  let message = 'Object doesn\'t match ContentDocumentRepresentation (at "' + path_contentDocuments_item + '")\n';
2755
3126
  message += referencepath_contentDocuments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2805,7 +3176,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
2805
3176
  return input;
2806
3177
  }
2807
3178
  const select$5 = function DocumentGenerationProcessStatusRepresentationSelect() {
2808
- const { selections: ContentDocumentRepresentation__selections, opaque: ContentDocumentRepresentation__opaque, } = select$n();
3179
+ const { selections: ContentDocumentRepresentation__selections, opaque: ContentDocumentRepresentation__opaque, } = select$u();
2809
3180
  return {
2810
3181
  kind: 'Fragment',
2811
3182
  version: VERSION$2,
@@ -2931,7 +3302,7 @@ function equals$2(existing, incoming) {
2931
3302
  return false;
2932
3303
  }
2933
3304
  const equals_contentDocuments_items = equalsArray(existing_contentDocuments, incoming_contentDocuments, (existing_contentDocuments_item, incoming_contentDocuments_item) => {
2934
- if (!(equals$8(existing_contentDocuments_item, incoming_contentDocuments_item))) {
3305
+ if (!(equals$b(existing_contentDocuments_item, incoming_contentDocuments_item))) {
2935
3306
  return false;
2936
3307
  }
2937
3308
  });
@@ -3014,14 +3385,14 @@ const getDocumentGenerationProcessDetails_ConfigPropertyMetadata = [
3014
3385
  generateParamConfigMetadata('contractDocumentVersionId', false, 1 /* QueryParameter */, 0 /* String */),
3015
3386
  ];
3016
3387
  const getDocumentGenerationProcessDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDocumentGenerationProcessDetails_ConfigPropertyMetadata);
3017
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(getDocumentGenerationProcessDetails_ConfigPropertyMetadata);
3388
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$l(getDocumentGenerationProcessDetails_ConfigPropertyMetadata);
3018
3389
  function keyBuilder$3(luvio, config) {
3019
3390
  const resourceParams = createResourceParams$2(config);
3020
3391
  return keyBuilder$4(luvio, resourceParams);
3021
3392
  }
3022
3393
  function typeCheckConfig$2(untrustedConfig) {
3023
3394
  const config = {};
3024
- typeCheckConfig$j(untrustedConfig, config, getDocumentGenerationProcessDetails_ConfigPropertyMetadata);
3395
+ typeCheckConfig$l(untrustedConfig, config, getDocumentGenerationProcessDetails_ConfigPropertyMetadata);
3025
3396
  return config;
3026
3397
  }
3027
3398
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -3070,7 +3441,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3070
3441
  });
3071
3442
  }
3072
3443
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3073
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3444
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3074
3445
  }
3075
3446
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3076
3447
  const { luvio, config } = context;
@@ -3269,14 +3640,14 @@ const getTemplates_ConfigPropertyMetadata = [
3269
3640
  generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */),
3270
3641
  ];
3271
3642
  const getTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTemplates_ConfigPropertyMetadata);
3272
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(getTemplates_ConfigPropertyMetadata);
3643
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$l(getTemplates_ConfigPropertyMetadata);
3273
3644
  function keyBuilder$1(luvio, config) {
3274
3645
  const resourceParams = createResourceParams$1(config);
3275
3646
  return keyBuilder$2(luvio, resourceParams);
3276
3647
  }
3277
3648
  function typeCheckConfig$1(untrustedConfig) {
3278
3649
  const config = {};
3279
- typeCheckConfig$j(untrustedConfig, config, getTemplates_ConfigPropertyMetadata);
3650
+ typeCheckConfig$l(untrustedConfig, config, getTemplates_ConfigPropertyMetadata);
3280
3651
  return config;
3281
3652
  }
3282
3653
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -3325,7 +3696,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3325
3696
  });
3326
3697
  }
3327
3698
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3328
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3699
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3329
3700
  }
3330
3701
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3331
3702
  const { luvio, config } = context;
@@ -3482,7 +3853,7 @@ const saveExternalDocument_ConfigPropertyMetadata = [
3482
3853
  generateParamConfigMetadata('externalDocumentInput', true, 2 /* Body */, 4 /* Unsupported */),
3483
3854
  ];
3484
3855
  const saveExternalDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, saveExternalDocument_ConfigPropertyMetadata);
3485
- const createResourceParams = /*#__PURE__*/ createResourceParams$j(saveExternalDocument_ConfigPropertyMetadata);
3856
+ const createResourceParams = /*#__PURE__*/ createResourceParams$l(saveExternalDocument_ConfigPropertyMetadata);
3486
3857
  function typeCheckConfig(untrustedConfig) {
3487
3858
  const config = {};
3488
3859
  const untrustedConfig_externalDocumentInput = untrustedConfig.externalDocumentInput;
@@ -3534,4 +3905,4 @@ const saveExternalDocumentAdapterFactory = (luvio) => {
3534
3905
  };
3535
3906
  };
3536
3907
 
3537
- export { checkInAdapterFactory, checkoutContractDocumentVersionAdapterFactory, createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFactory, createContractDocumentVersionReviewAdapterFactory, createExternalReviewDocumentAdapterFactory, deleteAttachmentAdapterFactory, deleteContractDocumentVersionReviewAdapterFactory, executeContractActionAdapterFactory, getContentDocumentAdapterFactory, getContractActionsAdapterFactory, getContractDocumentVersionAdapterFactory, getContractDocumentVersionReviewAdapterFactory, getDocumentGenerationProcessDetailsAdapterFactory, getTemplatesAdapterFactory, lockContractDocumentVersionAdapterFactory, saveExternalDocumentAdapterFactory, unlockAdapterFactory, updateContractDocumentVersionReviewAdapterFactory, updateContractDocumentVersionWithTemplateAdapterFactory };
3908
+ export { checkInAdapterFactory, checkoutContractDocumentVersionAdapterFactory, createContractDocumentVersionAndInitializeGenerateDocumentProcessAdapterFactory, createContractDocumentVersionReviewAdapterFactory, createExternalReviewDocumentAdapterFactory, deleteAttachmentAdapterFactory, deleteContractDocumentVersionReviewAdapterFactory, executeContractActionAdapterFactory, getContentDocumentAdapterFactory, getContractActionsAdapterFactory, getContractDocumentVersionAdapterFactory, getContractDocumentVersionReviewAdapterFactory, getDocumentGenerationProcessDetailsAdapterFactory, getLatestContractDocumentVersionCCAdapterFactory, getTemplatesAdapterFactory, lockContractDocumentVersionAdapterFactory, saveExternalDocumentAdapterFactory, unlockAdapterFactory, updateContractDocumentVersionReviewAdapterFactory, updateContractDocumentVersionWithTemplateAdapterFactory, updateSharingOnAttachmentAdapterFactory };