@salesforce/lds-adapters-industries-docgen 1.296.0 → 1.297.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, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$f, StoreKeyMap, createResourceParams as createResourceParams$f } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$g, StoreKeyMap, createResourceParams as createResourceParams$g } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -112,8 +112,8 @@ function createLink(ref) {
112
112
  };
113
113
  }
114
114
 
115
- const VERSION$k = "c0cdffc7d0ce780dd3dbd6844cb94df8";
116
- function validate$o(obj, path = 'ClauseCategoryResponse') {
115
+ const VERSION$l = "c0cdffc7d0ce780dd3dbd6844cb94df8";
116
+ function validate$p(obj, path = 'ClauseCategoryResponse') {
117
117
  const v_error = (() => {
118
118
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
119
119
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -138,10 +138,10 @@ function validate$o(obj, path = 'ClauseCategoryResponse') {
138
138
  })();
139
139
  return v_error === undefined ? null : v_error;
140
140
  }
141
- const select$z = function ClauseCategoryResponseSelect() {
141
+ const select$B = function ClauseCategoryResponseSelect() {
142
142
  return {
143
143
  kind: 'Fragment',
144
- version: VERSION$k,
144
+ version: VERSION$l,
145
145
  private: [],
146
146
  selections: [
147
147
  {
@@ -160,7 +160,7 @@ const select$z = function ClauseCategoryResponseSelect() {
160
160
  ]
161
161
  };
162
162
  };
163
- function equals$k(existing, incoming) {
163
+ function equals$l(existing, incoming) {
164
164
  const existing_id = existing.id;
165
165
  const incoming_id = incoming.id;
166
166
  // if at least one of these optionals is defined
@@ -187,9 +187,9 @@ function equals$k(existing, incoming) {
187
187
  return true;
188
188
  }
189
189
 
190
- const TTL$8 = 30000;
191
- const VERSION$j = "6f04ab6a782443d237ece40b87b8d756";
192
- function validate$n(obj, path = 'ClauseCategoriesResponse') {
190
+ const TTL$9 = 30000;
191
+ const VERSION$k = "6f04ab6a782443d237ece40b87b8d756";
192
+ function validate$o(obj, path = 'ClauseCategoriesResponse') {
193
193
  const v_error = (() => {
194
194
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
195
195
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -202,7 +202,7 @@ function validate$n(obj, path = 'ClauseCategoriesResponse') {
202
202
  for (let i = 0; i < obj_clauseCategories.length; i++) {
203
203
  const obj_clauseCategories_item = obj_clauseCategories[i];
204
204
  const path_clauseCategories_item = path_clauseCategories + '[' + i + ']';
205
- const referencepath_clauseCategories_itemValidationError = validate$o(obj_clauseCategories_item, path_clauseCategories_item);
205
+ const referencepath_clauseCategories_itemValidationError = validate$p(obj_clauseCategories_item, path_clauseCategories_item);
206
206
  if (referencepath_clauseCategories_itemValidationError !== null) {
207
207
  let message = 'Object doesn\'t match ClauseCategoryResponse (at "' + path_clauseCategories_item + '")\n';
208
208
  message += referencepath_clauseCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -212,15 +212,15 @@ function validate$n(obj, path = 'ClauseCategoriesResponse') {
212
212
  })();
213
213
  return v_error === undefined ? null : v_error;
214
214
  }
215
- const RepresentationType$d = 'ClauseCategoriesResponse';
216
- function normalize$d(input, existing, path, luvio, store, timestamp) {
215
+ const RepresentationType$e = 'ClauseCategoriesResponse';
216
+ function normalize$e(input, existing, path, luvio, store, timestamp) {
217
217
  return input;
218
218
  }
219
- const select$y = function ClauseCategoriesResponseSelect() {
220
- const { selections: ClauseCategoryResponse__selections, opaque: ClauseCategoryResponse__opaque, } = select$z();
219
+ const select$A = function ClauseCategoriesResponseSelect() {
220
+ const { selections: ClauseCategoryResponse__selections, opaque: ClauseCategoryResponse__opaque, } = select$B();
221
221
  return {
222
222
  kind: 'Fragment',
223
- version: VERSION$j,
223
+ version: VERSION$k,
224
224
  private: [],
225
225
  selections: [
226
226
  {
@@ -232,11 +232,11 @@ const select$y = function ClauseCategoriesResponseSelect() {
232
232
  ]
233
233
  };
234
234
  };
235
- function equals$j(existing, incoming) {
235
+ function equals$k(existing, incoming) {
236
236
  const existing_clauseCategories = existing.clauseCategories;
237
237
  const incoming_clauseCategories = incoming.clauseCategories;
238
238
  const equals_clauseCategories_items = equalsArray(existing_clauseCategories, incoming_clauseCategories, (existing_clauseCategories_item, incoming_clauseCategories_item) => {
239
- if (!(equals$k(existing_clauseCategories_item, incoming_clauseCategories_item))) {
239
+ if (!(equals$l(existing_clauseCategories_item, incoming_clauseCategories_item))) {
240
240
  return false;
241
241
  }
242
242
  });
@@ -245,44 +245,44 @@ function equals$j(existing, incoming) {
245
245
  }
246
246
  return true;
247
247
  }
248
- const ingest$d = function ClauseCategoriesResponseIngest(input, path, luvio, store, timestamp) {
248
+ const ingest$e = function ClauseCategoriesResponseIngest(input, path, luvio, store, timestamp) {
249
249
  if (process.env.NODE_ENV !== 'production') {
250
- const validateError = validate$n(input);
250
+ const validateError = validate$o(input);
251
251
  if (validateError !== null) {
252
252
  throw validateError;
253
253
  }
254
254
  }
255
255
  const key = path.fullPath;
256
- const ttlToUse = TTL$8;
257
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "docgen", VERSION$j, RepresentationType$d, equals$j);
256
+ const ttlToUse = TTL$9;
257
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "docgen", VERSION$k, RepresentationType$e, equals$k);
258
258
  return createLink(key);
259
259
  };
260
- function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
260
+ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
261
261
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
262
262
  const rootKey = fullPathFactory();
263
263
  rootKeySet.set(rootKey, {
264
264
  namespace: keyPrefix,
265
- representationName: RepresentationType$d,
265
+ representationName: RepresentationType$e,
266
266
  mergeable: false
267
267
  });
268
268
  }
269
269
 
270
- function select$x(luvio, params) {
271
- return select$y();
270
+ function select$z(luvio, params) {
271
+ return select$A();
272
272
  }
273
- function keyBuilder$l(luvio, params) {
273
+ function keyBuilder$m(luvio, params) {
274
274
  return keyPrefix + '::ClauseCategoriesResponse:(' + 'id:' + params.queryParams.id + ',' + 'name:' + params.queryParams.name + ',' + 'usageType:' + params.queryParams.usageType + ')';
275
275
  }
276
- function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
277
- getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
276
+ function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
277
+ getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
278
278
  }
279
- function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
279
+ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
280
280
  const { body } = response;
281
- const key = keyBuilder$l(luvio, resourceParams);
282
- luvio.storeIngest(key, ingest$d, body);
281
+ const key = keyBuilder$m(luvio, resourceParams);
282
+ luvio.storeIngest(key, ingest$e, body);
283
283
  const snapshot = luvio.storeLookup({
284
284
  recordId: key,
285
- node: select$x(),
285
+ node: select$z(),
286
286
  variables: {},
287
287
  }, snapshotRefresh);
288
288
  if (process.env.NODE_ENV !== 'production') {
@@ -294,18 +294,18 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
294
294
  return snapshot;
295
295
  }
296
296
  function ingestError$7(luvio, params, error, snapshotRefresh) {
297
- const key = keyBuilder$l(luvio, params);
297
+ const key = keyBuilder$m(luvio, params);
298
298
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
299
299
  const storeMetadataParams = {
300
- ttl: TTL$8,
300
+ ttl: TTL$9,
301
301
  namespace: keyPrefix,
302
- version: VERSION$j,
303
- representationName: RepresentationType$d
302
+ version: VERSION$k,
303
+ representationName: RepresentationType$e
304
304
  };
305
305
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
306
306
  return errorSnapshot;
307
307
  }
308
- function createResourceRequest$e(config) {
308
+ function createResourceRequest$f(config) {
309
309
  const headers = {};
310
310
  return {
311
311
  baseUri: '/services/data/v62.0',
@@ -319,62 +319,62 @@ function createResourceRequest$e(config) {
319
319
  };
320
320
  }
321
321
 
322
- const adapterName$e = 'getDocumentClauseSetCategories';
322
+ const adapterName$f = 'getDocumentClauseSetCategories';
323
323
  const getDocumentClauseSetCategories_ConfigPropertyMetadata = [
324
324
  generateParamConfigMetadata('id', false, 1 /* QueryParameter */, 0 /* String */),
325
325
  generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
326
326
  generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */),
327
327
  ];
328
- const getDocumentClauseSetCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getDocumentClauseSetCategories_ConfigPropertyMetadata);
329
- const createResourceParams$e = /*#__PURE__*/ createResourceParams$f(getDocumentClauseSetCategories_ConfigPropertyMetadata);
330
- function keyBuilder$k(luvio, config) {
331
- const resourceParams = createResourceParams$e(config);
332
- return keyBuilder$l(luvio, resourceParams);
328
+ const getDocumentClauseSetCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getDocumentClauseSetCategories_ConfigPropertyMetadata);
329
+ const createResourceParams$f = /*#__PURE__*/ createResourceParams$g(getDocumentClauseSetCategories_ConfigPropertyMetadata);
330
+ function keyBuilder$l(luvio, config) {
331
+ const resourceParams = createResourceParams$f(config);
332
+ return keyBuilder$m(luvio, resourceParams);
333
333
  }
334
- function typeCheckConfig$e(untrustedConfig) {
334
+ function typeCheckConfig$f(untrustedConfig) {
335
335
  const config = {};
336
- typeCheckConfig$f(untrustedConfig, config, getDocumentClauseSetCategories_ConfigPropertyMetadata);
336
+ typeCheckConfig$g(untrustedConfig, config, getDocumentClauseSetCategories_ConfigPropertyMetadata);
337
337
  return config;
338
338
  }
339
- function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
339
+ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
340
340
  if (!untrustedIsObject(untrustedConfig)) {
341
341
  return null;
342
342
  }
343
343
  if (process.env.NODE_ENV !== 'production') {
344
344
  validateConfig(untrustedConfig, configPropertyNames);
345
345
  }
346
- const config = typeCheckConfig$e(untrustedConfig);
346
+ const config = typeCheckConfig$f(untrustedConfig);
347
347
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
348
348
  return null;
349
349
  }
350
350
  return config;
351
351
  }
352
352
  function adapterFragment$7(luvio, config) {
353
- createResourceParams$e(config);
354
- return select$x();
353
+ createResourceParams$f(config);
354
+ return select$z();
355
355
  }
356
356
  function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
357
- const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
357
+ const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
358
358
  config,
359
- resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
359
+ resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
360
360
  });
361
361
  return luvio.storeBroadcast().then(() => snapshot);
362
362
  }
363
363
  function onFetchResponseError$7(luvio, config, resourceParams, response) {
364
364
  const snapshot = ingestError$7(luvio, resourceParams, response, {
365
365
  config,
366
- resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
366
+ resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
367
367
  });
368
368
  return luvio.storeBroadcast().then(() => snapshot);
369
369
  }
370
- function buildNetworkSnapshot$e(luvio, config, options) {
371
- const resourceParams = createResourceParams$e(config);
372
- const request = createResourceRequest$e(resourceParams);
370
+ function buildNetworkSnapshot$f(luvio, config, options) {
371
+ const resourceParams = createResourceParams$f(config);
372
+ const request = createResourceRequest$f(resourceParams);
373
373
  return luvio.dispatchResourceRequest(request, options)
374
374
  .then((response) => {
375
375
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
376
376
  const cache = new StoreKeyMap();
377
- getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
377
+ getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
378
378
  return cache;
379
379
  });
380
380
  }, (response) => {
@@ -382,23 +382,23 @@ function buildNetworkSnapshot$e(luvio, config, options) {
382
382
  });
383
383
  }
384
384
  function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
385
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
385
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
386
386
  }
387
387
  function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
388
388
  const { luvio, config } = context;
389
389
  const selector = {
390
- recordId: keyBuilder$k(luvio, config),
390
+ recordId: keyBuilder$l(luvio, config),
391
391
  node: adapterFragment$7(luvio, config),
392
392
  variables: {},
393
393
  };
394
394
  const cacheSnapshot = storeLookup(selector, {
395
395
  config,
396
- resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
396
+ resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
397
397
  });
398
398
  return cacheSnapshot;
399
399
  }
400
400
  const getDocumentClauseSetCategoriesAdapterFactory = (luvio) => function docgen__getDocumentClauseSetCategories(untrustedConfig, requestContext) {
401
- const config = validateAdapterConfig$e(untrustedConfig, getDocumentClauseSetCategories_ConfigPropertyNames);
401
+ const config = validateAdapterConfig$f(untrustedConfig, getDocumentClauseSetCategories_ConfigPropertyNames);
402
402
  // Invalid or incomplete config
403
403
  if (config === null) {
404
404
  return null;
@@ -407,8 +407,8 @@ const getDocumentClauseSetCategoriesAdapterFactory = (luvio) => function docgen_
407
407
  buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
408
408
  };
409
409
 
410
- const VERSION$i = "29a9e61a0952cff8f7e98cc7d8857c62";
411
- function validate$m(obj, path = 'DocumentClauseSetResponse') {
410
+ const VERSION$j = "29a9e61a0952cff8f7e98cc7d8857c62";
411
+ function validate$n(obj, path = 'DocumentClauseSetResponse') {
412
412
  const v_error = (() => {
413
413
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
414
414
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -446,10 +446,10 @@ function validate$m(obj, path = 'DocumentClauseSetResponse') {
446
446
  })();
447
447
  return v_error === undefined ? null : v_error;
448
448
  }
449
- const select$w = function DocumentClauseSetResponseSelect() {
449
+ const select$y = function DocumentClauseSetResponseSelect() {
450
450
  return {
451
451
  kind: 'Fragment',
452
- version: VERSION$i,
452
+ version: VERSION$j,
453
453
  private: [],
454
454
  selections: [
455
455
  {
@@ -479,7 +479,7 @@ const select$w = function DocumentClauseSetResponseSelect() {
479
479
  ]
480
480
  };
481
481
  };
482
- function equals$i(existing, incoming) {
482
+ function equals$j(existing, incoming) {
483
483
  const existing_category = existing.category;
484
484
  const incoming_category = incoming.category;
485
485
  if (!(existing_category === incoming_category)) {
@@ -513,9 +513,9 @@ function equals$i(existing, incoming) {
513
513
  return true;
514
514
  }
515
515
 
516
- const TTL$7 = 100;
517
- const VERSION$h = "c6ad1fbdbd4d8cd718a8a62c63216687";
518
- function validate$l(obj, path = 'DocumentClauseSetListResponse') {
516
+ const TTL$8 = 100;
517
+ const VERSION$i = "c6ad1fbdbd4d8cd718a8a62c63216687";
518
+ function validate$m(obj, path = 'DocumentClauseSetListResponse') {
519
519
  const v_error = (() => {
520
520
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
521
521
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -528,7 +528,7 @@ function validate$l(obj, path = 'DocumentClauseSetListResponse') {
528
528
  for (let i = 0; i < obj_documentClauseSets.length; i++) {
529
529
  const obj_documentClauseSets_item = obj_documentClauseSets[i];
530
530
  const path_documentClauseSets_item = path_documentClauseSets + '[' + i + ']';
531
- const referencepath_documentClauseSets_itemValidationError = validate$m(obj_documentClauseSets_item, path_documentClauseSets_item);
531
+ const referencepath_documentClauseSets_itemValidationError = validate$n(obj_documentClauseSets_item, path_documentClauseSets_item);
532
532
  if (referencepath_documentClauseSets_itemValidationError !== null) {
533
533
  let message = 'Object doesn\'t match DocumentClauseSetResponse (at "' + path_documentClauseSets_item + '")\n';
534
534
  message += referencepath_documentClauseSets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -538,15 +538,15 @@ function validate$l(obj, path = 'DocumentClauseSetListResponse') {
538
538
  })();
539
539
  return v_error === undefined ? null : v_error;
540
540
  }
541
- const RepresentationType$c = 'DocumentClauseSetListResponse';
542
- function normalize$c(input, existing, path, luvio, store, timestamp) {
541
+ const RepresentationType$d = 'DocumentClauseSetListResponse';
542
+ function normalize$d(input, existing, path, luvio, store, timestamp) {
543
543
  return input;
544
544
  }
545
- const select$v = function DocumentClauseSetListResponseSelect() {
546
- const { selections: DocumentClauseSetResponse__selections, opaque: DocumentClauseSetResponse__opaque, } = select$w();
545
+ const select$x = function DocumentClauseSetListResponseSelect() {
546
+ const { selections: DocumentClauseSetResponse__selections, opaque: DocumentClauseSetResponse__opaque, } = select$y();
547
547
  return {
548
548
  kind: 'Fragment',
549
- version: VERSION$h,
549
+ version: VERSION$i,
550
550
  private: [],
551
551
  selections: [
552
552
  {
@@ -558,11 +558,11 @@ const select$v = function DocumentClauseSetListResponseSelect() {
558
558
  ]
559
559
  };
560
560
  };
561
- function equals$h(existing, incoming) {
561
+ function equals$i(existing, incoming) {
562
562
  const existing_documentClauseSets = existing.documentClauseSets;
563
563
  const incoming_documentClauseSets = incoming.documentClauseSets;
564
564
  const equals_documentClauseSets_items = equalsArray(existing_documentClauseSets, incoming_documentClauseSets, (existing_documentClauseSets_item, incoming_documentClauseSets_item) => {
565
- if (!(equals$i(existing_documentClauseSets_item, incoming_documentClauseSets_item))) {
565
+ if (!(equals$j(existing_documentClauseSets_item, incoming_documentClauseSets_item))) {
566
566
  return false;
567
567
  }
568
568
  });
@@ -571,44 +571,44 @@ function equals$h(existing, incoming) {
571
571
  }
572
572
  return true;
573
573
  }
574
- const ingest$c = function DocumentClauseSetListResponseIngest(input, path, luvio, store, timestamp) {
574
+ const ingest$d = function DocumentClauseSetListResponseIngest(input, path, luvio, store, timestamp) {
575
575
  if (process.env.NODE_ENV !== 'production') {
576
- const validateError = validate$l(input);
576
+ const validateError = validate$m(input);
577
577
  if (validateError !== null) {
578
578
  throw validateError;
579
579
  }
580
580
  }
581
581
  const key = path.fullPath;
582
- const ttlToUse = TTL$7;
583
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "docgen", VERSION$h, RepresentationType$c, equals$h);
582
+ const ttlToUse = TTL$8;
583
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "docgen", VERSION$i, RepresentationType$d, equals$i);
584
584
  return createLink(key);
585
585
  };
586
- function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
586
+ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
587
587
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
588
588
  const rootKey = fullPathFactory();
589
589
  rootKeySet.set(rootKey, {
590
590
  namespace: keyPrefix,
591
- representationName: RepresentationType$c,
591
+ representationName: RepresentationType$d,
592
592
  mergeable: false
593
593
  });
594
594
  }
595
595
 
596
- function select$u(luvio, params) {
597
- return select$v();
596
+ function select$w(luvio, params) {
597
+ return select$x();
598
598
  }
599
- function keyBuilder$j(luvio, params) {
599
+ function keyBuilder$k(luvio, params) {
600
600
  return keyPrefix + '::DocumentClauseSetListResponse:(' + 'category:' + params.queryParams.category + ',' + 'defaultLanguage:' + params.queryParams.defaultLanguage + ',' + 'limit:' + params.queryParams.limit + ',' + 'name:' + params.queryParams.name + ',' + 'offset:' + params.queryParams.offset + ',' + 'status:' + params.queryParams.status + ')';
601
601
  }
602
- function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
603
- getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
602
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
603
+ getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$k(luvio, resourceParams));
604
604
  }
605
- function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
605
+ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
606
606
  const { body } = response;
607
- const key = keyBuilder$j(luvio, resourceParams);
608
- luvio.storeIngest(key, ingest$c, body);
607
+ const key = keyBuilder$k(luvio, resourceParams);
608
+ luvio.storeIngest(key, ingest$d, body);
609
609
  const snapshot = luvio.storeLookup({
610
610
  recordId: key,
611
- node: select$u(),
611
+ node: select$w(),
612
612
  variables: {},
613
613
  }, snapshotRefresh);
614
614
  if (process.env.NODE_ENV !== 'production') {
@@ -620,18 +620,18 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
620
620
  return snapshot;
621
621
  }
622
622
  function ingestError$6(luvio, params, error, snapshotRefresh) {
623
- const key = keyBuilder$j(luvio, params);
623
+ const key = keyBuilder$k(luvio, params);
624
624
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
625
625
  const storeMetadataParams = {
626
- ttl: TTL$7,
626
+ ttl: TTL$8,
627
627
  namespace: keyPrefix,
628
- version: VERSION$h,
629
- representationName: RepresentationType$c
628
+ version: VERSION$i,
629
+ representationName: RepresentationType$d
630
630
  };
631
631
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
632
632
  return errorSnapshot;
633
633
  }
634
- function createResourceRequest$d(config) {
634
+ function createResourceRequest$e(config) {
635
635
  const headers = {};
636
636
  return {
637
637
  baseUri: '/services/data/v62.0',
@@ -645,7 +645,7 @@ function createResourceRequest$d(config) {
645
645
  };
646
646
  }
647
647
 
648
- const adapterName$d = 'getDocumentClauseSets';
648
+ const adapterName$e = 'getDocumentClauseSets';
649
649
  const getDocumentClauseSets_ConfigPropertyMetadata = [
650
650
  generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
651
651
  generateParamConfigMetadata('defaultLanguage', false, 1 /* QueryParameter */, 0 /* String */),
@@ -654,56 +654,56 @@ const getDocumentClauseSets_ConfigPropertyMetadata = [
654
654
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
655
655
  generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
656
656
  ];
657
- const getDocumentClauseSets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getDocumentClauseSets_ConfigPropertyMetadata);
658
- const createResourceParams$d = /*#__PURE__*/ createResourceParams$f(getDocumentClauseSets_ConfigPropertyMetadata);
659
- function keyBuilder$i(luvio, config) {
660
- const resourceParams = createResourceParams$d(config);
661
- return keyBuilder$j(luvio, resourceParams);
657
+ const getDocumentClauseSets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getDocumentClauseSets_ConfigPropertyMetadata);
658
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$g(getDocumentClauseSets_ConfigPropertyMetadata);
659
+ function keyBuilder$j(luvio, config) {
660
+ const resourceParams = createResourceParams$e(config);
661
+ return keyBuilder$k(luvio, resourceParams);
662
662
  }
663
- function typeCheckConfig$d(untrustedConfig) {
663
+ function typeCheckConfig$e(untrustedConfig) {
664
664
  const config = {};
665
- typeCheckConfig$f(untrustedConfig, config, getDocumentClauseSets_ConfigPropertyMetadata);
665
+ typeCheckConfig$g(untrustedConfig, config, getDocumentClauseSets_ConfigPropertyMetadata);
666
666
  return config;
667
667
  }
668
- function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
668
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
669
669
  if (!untrustedIsObject(untrustedConfig)) {
670
670
  return null;
671
671
  }
672
672
  if (process.env.NODE_ENV !== 'production') {
673
673
  validateConfig(untrustedConfig, configPropertyNames);
674
674
  }
675
- const config = typeCheckConfig$d(untrustedConfig);
675
+ const config = typeCheckConfig$e(untrustedConfig);
676
676
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
677
677
  return null;
678
678
  }
679
679
  return config;
680
680
  }
681
681
  function adapterFragment$6(luvio, config) {
682
- createResourceParams$d(config);
683
- return select$u();
682
+ createResourceParams$e(config);
683
+ return select$w();
684
684
  }
685
685
  function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
686
- const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
686
+ const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
687
687
  config,
688
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
688
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
689
689
  });
690
690
  return luvio.storeBroadcast().then(() => snapshot);
691
691
  }
692
692
  function onFetchResponseError$6(luvio, config, resourceParams, response) {
693
693
  const snapshot = ingestError$6(luvio, resourceParams, response, {
694
694
  config,
695
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
695
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
696
696
  });
697
697
  return luvio.storeBroadcast().then(() => snapshot);
698
698
  }
699
- function buildNetworkSnapshot$d(luvio, config, options) {
700
- const resourceParams = createResourceParams$d(config);
701
- const request = createResourceRequest$d(resourceParams);
699
+ function buildNetworkSnapshot$e(luvio, config, options) {
700
+ const resourceParams = createResourceParams$e(config);
701
+ const request = createResourceRequest$e(resourceParams);
702
702
  return luvio.dispatchResourceRequest(request, options)
703
703
  .then((response) => {
704
704
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
705
705
  const cache = new StoreKeyMap();
706
- getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
706
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
707
707
  return cache;
708
708
  });
709
709
  }, (response) => {
@@ -711,23 +711,23 @@ function buildNetworkSnapshot$d(luvio, config, options) {
711
711
  });
712
712
  }
713
713
  function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
714
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
714
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
715
715
  }
716
716
  function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
717
717
  const { luvio, config } = context;
718
718
  const selector = {
719
- recordId: keyBuilder$i(luvio, config),
719
+ recordId: keyBuilder$j(luvio, config),
720
720
  node: adapterFragment$6(luvio, config),
721
721
  variables: {},
722
722
  };
723
723
  const cacheSnapshot = storeLookup(selector, {
724
724
  config,
725
- resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
725
+ resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
726
726
  });
727
727
  return cacheSnapshot;
728
728
  }
729
729
  const getDocumentClauseSetsAdapterFactory = (luvio) => function docgen__getDocumentClauseSets(untrustedConfig, requestContext) {
730
- const config = validateAdapterConfig$d(untrustedConfig, getDocumentClauseSets_ConfigPropertyNames);
730
+ const config = validateAdapterConfig$e(untrustedConfig, getDocumentClauseSets_ConfigPropertyNames);
731
731
  // Invalid or incomplete config
732
732
  if (config === null) {
733
733
  return null;
@@ -736,9 +736,9 @@ const getDocumentClauseSetsAdapterFactory = (luvio) => function docgen__getDocum
736
736
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
737
737
  };
738
738
 
739
- const TTL$6 = 100;
740
- const VERSION$g = "a3afe2a67715551a49f0d59eafb639aa";
741
- function validate$k(obj, path = 'DocumentClauseFieldsResponse') {
739
+ const TTL$7 = 100;
740
+ const VERSION$h = "a3afe2a67715551a49f0d59eafb639aa";
741
+ function validate$l(obj, path = 'DocumentClauseFieldsResponse') {
742
742
  const v_error = (() => {
743
743
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
744
744
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -763,14 +763,14 @@ function validate$k(obj, path = 'DocumentClauseFieldsResponse') {
763
763
  })();
764
764
  return v_error === undefined ? null : v_error;
765
765
  }
766
- const RepresentationType$b = 'DocumentClauseFieldsResponse';
767
- function normalize$b(input, existing, path, luvio, store, timestamp) {
766
+ const RepresentationType$c = 'DocumentClauseFieldsResponse';
767
+ function normalize$c(input, existing, path, luvio, store, timestamp) {
768
768
  return input;
769
769
  }
770
- const select$t = function DocumentClauseFieldsResponseSelect() {
770
+ const select$v = function DocumentClauseFieldsResponseSelect() {
771
771
  return {
772
772
  kind: 'Fragment',
773
- version: VERSION$g,
773
+ version: VERSION$h,
774
774
  private: [],
775
775
  selections: [
776
776
  {
@@ -786,7 +786,7 @@ const select$t = function DocumentClauseFieldsResponseSelect() {
786
786
  ]
787
787
  };
788
788
  };
789
- function equals$g(existing, incoming) {
789
+ function equals$h(existing, incoming) {
790
790
  const existing_extendedFields = existing.extendedFields;
791
791
  const incoming_extendedFields = incoming.extendedFields;
792
792
  if (JSONStringify(incoming_extendedFields) !== JSONStringify(existing_extendedFields)) {
@@ -804,44 +804,44 @@ function equals$g(existing, incoming) {
804
804
  }
805
805
  return true;
806
806
  }
807
- const ingest$b = function DocumentClauseFieldsResponseIngest(input, path, luvio, store, timestamp) {
807
+ const ingest$c = function DocumentClauseFieldsResponseIngest(input, path, luvio, store, timestamp) {
808
808
  if (process.env.NODE_ENV !== 'production') {
809
- const validateError = validate$k(input);
809
+ const validateError = validate$l(input);
810
810
  if (validateError !== null) {
811
811
  throw validateError;
812
812
  }
813
813
  }
814
814
  const key = path.fullPath;
815
- const ttlToUse = TTL$6;
816
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "docgen", VERSION$g, RepresentationType$b, equals$g);
815
+ const ttlToUse = TTL$7;
816
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "docgen", VERSION$h, RepresentationType$c, equals$h);
817
817
  return createLink(key);
818
818
  };
819
- function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
819
+ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
820
820
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
821
821
  const rootKey = fullPathFactory();
822
822
  rootKeySet.set(rootKey, {
823
823
  namespace: keyPrefix,
824
- representationName: RepresentationType$b,
824
+ representationName: RepresentationType$c,
825
825
  mergeable: false
826
826
  });
827
827
  }
828
828
 
829
- function select$s(luvio, params) {
830
- return select$t();
829
+ function select$u(luvio, params) {
830
+ return select$v();
831
831
  }
832
- function keyBuilder$h(luvio, params) {
832
+ function keyBuilder$i(luvio, params) {
833
833
  return keyPrefix + '::DocumentClauseFieldsResponse:(' + 'clauseSetId:' + params.queryParams.clauseSetId + ',' + 'extendedFields:' + params.queryParams.extendedFields + ',' + 'fieldName:' + params.queryParams.fieldName + ',' + 'language:' + params.queryParams.language + ',' + 'name:' + params.queryParams.name + ',' + 'status:' + params.queryParams.status + ')';
834
834
  }
835
- function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
836
- getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
835
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
836
+ getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$i(luvio, resourceParams));
837
837
  }
838
- function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
838
+ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
839
839
  const { body } = response;
840
- const key = keyBuilder$h(luvio, resourceParams);
841
- luvio.storeIngest(key, ingest$b, body);
840
+ const key = keyBuilder$i(luvio, resourceParams);
841
+ luvio.storeIngest(key, ingest$c, body);
842
842
  const snapshot = luvio.storeLookup({
843
843
  recordId: key,
844
- node: select$s(),
844
+ node: select$u(),
845
845
  variables: {},
846
846
  }, snapshotRefresh);
847
847
  if (process.env.NODE_ENV !== 'production') {
@@ -853,18 +853,18 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
853
853
  return snapshot;
854
854
  }
855
855
  function ingestError$5(luvio, params, error, snapshotRefresh) {
856
- const key = keyBuilder$h(luvio, params);
856
+ const key = keyBuilder$i(luvio, params);
857
857
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
858
858
  const storeMetadataParams = {
859
- ttl: TTL$6,
859
+ ttl: TTL$7,
860
860
  namespace: keyPrefix,
861
- version: VERSION$g,
862
- representationName: RepresentationType$b
861
+ version: VERSION$h,
862
+ representationName: RepresentationType$c
863
863
  };
864
864
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
865
865
  return errorSnapshot;
866
866
  }
867
- function createResourceRequest$c(config) {
867
+ function createResourceRequest$d(config) {
868
868
  const headers = {};
869
869
  return {
870
870
  baseUri: '/services/data/v62.0',
@@ -878,7 +878,7 @@ function createResourceRequest$c(config) {
878
878
  };
879
879
  }
880
880
 
881
- const adapterName$c = 'getDocumentClauseFields';
881
+ const adapterName$d = 'getDocumentClauseFields';
882
882
  const getDocumentClauseFields_ConfigPropertyMetadata = [
883
883
  generateParamConfigMetadata('clauseSetId', false, 1 /* QueryParameter */, 0 /* String */),
884
884
  generateParamConfigMetadata('extendedFields', false, 1 /* QueryParameter */, 0 /* String */),
@@ -887,56 +887,56 @@ const getDocumentClauseFields_ConfigPropertyMetadata = [
887
887
  generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
888
888
  generateParamConfigMetadata('status', false, 1 /* QueryParameter */, 0 /* String */),
889
889
  ];
890
- const getDocumentClauseFields_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getDocumentClauseFields_ConfigPropertyMetadata);
891
- const createResourceParams$c = /*#__PURE__*/ createResourceParams$f(getDocumentClauseFields_ConfigPropertyMetadata);
892
- function keyBuilder$g(luvio, config) {
893
- const resourceParams = createResourceParams$c(config);
894
- return keyBuilder$h(luvio, resourceParams);
890
+ const getDocumentClauseFields_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getDocumentClauseFields_ConfigPropertyMetadata);
891
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$g(getDocumentClauseFields_ConfigPropertyMetadata);
892
+ function keyBuilder$h(luvio, config) {
893
+ const resourceParams = createResourceParams$d(config);
894
+ return keyBuilder$i(luvio, resourceParams);
895
895
  }
896
- function typeCheckConfig$c(untrustedConfig) {
896
+ function typeCheckConfig$d(untrustedConfig) {
897
897
  const config = {};
898
- typeCheckConfig$f(untrustedConfig, config, getDocumentClauseFields_ConfigPropertyMetadata);
898
+ typeCheckConfig$g(untrustedConfig, config, getDocumentClauseFields_ConfigPropertyMetadata);
899
899
  return config;
900
900
  }
901
- function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
901
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
902
902
  if (!untrustedIsObject(untrustedConfig)) {
903
903
  return null;
904
904
  }
905
905
  if (process.env.NODE_ENV !== 'production') {
906
906
  validateConfig(untrustedConfig, configPropertyNames);
907
907
  }
908
- const config = typeCheckConfig$c(untrustedConfig);
908
+ const config = typeCheckConfig$d(untrustedConfig);
909
909
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
910
910
  return null;
911
911
  }
912
912
  return config;
913
913
  }
914
914
  function adapterFragment$5(luvio, config) {
915
- createResourceParams$c(config);
916
- return select$s();
915
+ createResourceParams$d(config);
916
+ return select$u();
917
917
  }
918
918
  function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
919
- const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
919
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
920
920
  config,
921
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
921
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
922
922
  });
923
923
  return luvio.storeBroadcast().then(() => snapshot);
924
924
  }
925
925
  function onFetchResponseError$5(luvio, config, resourceParams, response) {
926
926
  const snapshot = ingestError$5(luvio, resourceParams, response, {
927
927
  config,
928
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
928
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
929
929
  });
930
930
  return luvio.storeBroadcast().then(() => snapshot);
931
931
  }
932
- function buildNetworkSnapshot$c(luvio, config, options) {
933
- const resourceParams = createResourceParams$c(config);
934
- const request = createResourceRequest$c(resourceParams);
932
+ function buildNetworkSnapshot$d(luvio, config, options) {
933
+ const resourceParams = createResourceParams$d(config);
934
+ const request = createResourceRequest$d(resourceParams);
935
935
  return luvio.dispatchResourceRequest(request, options)
936
936
  .then((response) => {
937
937
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
938
938
  const cache = new StoreKeyMap();
939
- getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
939
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
940
940
  return cache;
941
941
  });
942
942
  }, (response) => {
@@ -944,23 +944,23 @@ function buildNetworkSnapshot$c(luvio, config, options) {
944
944
  });
945
945
  }
946
946
  function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
947
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
947
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
948
948
  }
949
949
  function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
950
950
  const { luvio, config } = context;
951
951
  const selector = {
952
- recordId: keyBuilder$g(luvio, config),
952
+ recordId: keyBuilder$h(luvio, config),
953
953
  node: adapterFragment$5(luvio, config),
954
954
  variables: {},
955
955
  };
956
956
  const cacheSnapshot = storeLookup(selector, {
957
957
  config,
958
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
958
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
959
959
  });
960
960
  return cacheSnapshot;
961
961
  }
962
962
  const getDocumentClauseFieldsAdapterFactory = (luvio) => function docgen__getDocumentClauseFields(untrustedConfig, requestContext) {
963
- const config = validateAdapterConfig$c(untrustedConfig, getDocumentClauseFields_ConfigPropertyNames);
963
+ const config = validateAdapterConfig$d(untrustedConfig, getDocumentClauseFields_ConfigPropertyNames);
964
964
  // Invalid or incomplete config
965
965
  if (config === null) {
966
966
  return null;
@@ -969,9 +969,9 @@ const getDocumentClauseFieldsAdapterFactory = (luvio) => function docgen__getDoc
969
969
  buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
970
970
  };
971
971
 
972
- const TTL$5 = 60000;
973
- const VERSION$f = "af0246ac09fd1b3b2a939d90b8caa15d";
974
- function validate$j(obj, path = 'DocumentClausePromotionResponse') {
972
+ const TTL$6 = 60000;
973
+ const VERSION$g = "af0246ac09fd1b3b2a939d90b8caa15d";
974
+ function validate$k(obj, path = 'DocumentClausePromotionResponse') {
975
975
  const v_error = (() => {
976
976
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
977
977
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -989,23 +989,23 @@ function validate$j(obj, path = 'DocumentClausePromotionResponse') {
989
989
  })();
990
990
  return v_error === undefined ? null : v_error;
991
991
  }
992
- const RepresentationType$a = 'DocumentClausePromotionResponse';
993
- function keyBuilder$f(luvio, config) {
994
- return keyPrefix + '::' + RepresentationType$a + ':' + config.isSuccess;
992
+ const RepresentationType$b = 'DocumentClausePromotionResponse';
993
+ function keyBuilder$g(luvio, config) {
994
+ return keyPrefix + '::' + RepresentationType$b + ':' + config.isSuccess;
995
995
  }
996
- function keyBuilderFromType$5(luvio, object) {
996
+ function keyBuilderFromType$6(luvio, object) {
997
997
  const keyParams = {
998
998
  isSuccess: object.isSuccess
999
999
  };
1000
- return keyBuilder$f(luvio, keyParams);
1000
+ return keyBuilder$g(luvio, keyParams);
1001
1001
  }
1002
- function normalize$a(input, existing, path, luvio, store, timestamp) {
1002
+ function normalize$b(input, existing, path, luvio, store, timestamp) {
1003
1003
  return input;
1004
1004
  }
1005
- const select$r = function DocumentClausePromotionResponseSelect() {
1005
+ const select$t = function DocumentClausePromotionResponseSelect() {
1006
1006
  return {
1007
1007
  kind: 'Fragment',
1008
- version: VERSION$f,
1008
+ version: VERSION$g,
1009
1009
  private: [],
1010
1010
  selections: [
1011
1011
  {
@@ -1019,7 +1019,7 @@ const select$r = function DocumentClausePromotionResponseSelect() {
1019
1019
  ]
1020
1020
  };
1021
1021
  };
1022
- function equals$f(existing, incoming) {
1022
+ function equals$g(existing, incoming) {
1023
1023
  const existing_isSuccess = existing.isSuccess;
1024
1024
  const incoming_isSuccess = incoming.isSuccess;
1025
1025
  if (!(existing_isSuccess === incoming_isSuccess)) {
@@ -1032,41 +1032,41 @@ function equals$f(existing, incoming) {
1032
1032
  }
1033
1033
  return true;
1034
1034
  }
1035
- const ingest$a = function DocumentClausePromotionResponseIngest(input, path, luvio, store, timestamp) {
1035
+ const ingest$b = function DocumentClausePromotionResponseIngest(input, path, luvio, store, timestamp) {
1036
1036
  if (process.env.NODE_ENV !== 'production') {
1037
- const validateError = validate$j(input);
1037
+ const validateError = validate$k(input);
1038
1038
  if (validateError !== null) {
1039
1039
  throw validateError;
1040
1040
  }
1041
1041
  }
1042
- const key = keyBuilderFromType$5(luvio, input);
1043
- const ttlToUse = TTL$5;
1044
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "docgen", VERSION$f, RepresentationType$a, equals$f);
1042
+ const key = keyBuilderFromType$6(luvio, input);
1043
+ const ttlToUse = TTL$6;
1044
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "docgen", VERSION$g, RepresentationType$b, equals$g);
1045
1045
  return createLink(key);
1046
1046
  };
1047
- function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
1047
+ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
1048
1048
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1049
- const rootKey = keyBuilderFromType$5(luvio, input);
1049
+ const rootKey = keyBuilderFromType$6(luvio, input);
1050
1050
  rootKeySet.set(rootKey, {
1051
1051
  namespace: keyPrefix,
1052
- representationName: RepresentationType$a,
1052
+ representationName: RepresentationType$b,
1053
1053
  mergeable: false
1054
1054
  });
1055
1055
  }
1056
1056
 
1057
- function select$q(luvio, params) {
1058
- return select$r();
1057
+ function select$s(luvio, params) {
1058
+ return select$t();
1059
1059
  }
1060
- function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
1061
- getTypeCacheKeys$a(storeKeyMap, luvio, response);
1060
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
1061
+ getTypeCacheKeys$b(storeKeyMap, luvio, response);
1062
1062
  }
1063
- function ingestSuccess$b(luvio, resourceParams, response) {
1063
+ function ingestSuccess$c(luvio, resourceParams, response) {
1064
1064
  const { body } = response;
1065
- const key = keyBuilderFromType$5(luvio, body);
1066
- luvio.storeIngest(key, ingest$a, body);
1065
+ const key = keyBuilderFromType$6(luvio, body);
1066
+ luvio.storeIngest(key, ingest$b, body);
1067
1067
  const snapshot = luvio.storeLookup({
1068
1068
  recordId: key,
1069
- node: select$q(),
1069
+ node: select$s(),
1070
1070
  variables: {},
1071
1071
  });
1072
1072
  if (process.env.NODE_ENV !== 'production') {
@@ -1077,7 +1077,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
1077
1077
  deepFreeze(snapshot.data);
1078
1078
  return snapshot;
1079
1079
  }
1080
- function createResourceRequest$b(config) {
1080
+ function createResourceRequest$c(config) {
1081
1081
  const headers = {};
1082
1082
  return {
1083
1083
  baseUri: '/services/data/v62.0',
@@ -1091,7 +1091,7 @@ function createResourceRequest$b(config) {
1091
1091
  };
1092
1092
  }
1093
1093
 
1094
- const adapterName$b = 'postDocumentClausePromotion';
1094
+ const adapterName$c = 'postDocumentClausePromotion';
1095
1095
  const postDocumentClausePromotion_ConfigPropertyMetadata = [
1096
1096
  generateParamConfigMetadata('clauseContent', true, 2 /* Body */, 0 /* String */),
1097
1097
  generateParamConfigMetadata('clauseDescription', true, 2 /* Body */, 0 /* String */),
@@ -1102,37 +1102,37 @@ const postDocumentClausePromotion_ConfigPropertyMetadata = [
1102
1102
  generateParamConfigMetadata('nonStandardClauseRecordId', true, 2 /* Body */, 0 /* String */),
1103
1103
  generateParamConfigMetadata('notifyOnCompletion', true, 2 /* Body */, 1 /* Boolean */),
1104
1104
  ];
1105
- const postDocumentClausePromotion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, postDocumentClausePromotion_ConfigPropertyMetadata);
1106
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(postDocumentClausePromotion_ConfigPropertyMetadata);
1107
- function typeCheckConfig$b(untrustedConfig) {
1105
+ const postDocumentClausePromotion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, postDocumentClausePromotion_ConfigPropertyMetadata);
1106
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$g(postDocumentClausePromotion_ConfigPropertyMetadata);
1107
+ function typeCheckConfig$c(untrustedConfig) {
1108
1108
  const config = {};
1109
- typeCheckConfig$f(untrustedConfig, config, postDocumentClausePromotion_ConfigPropertyMetadata);
1109
+ typeCheckConfig$g(untrustedConfig, config, postDocumentClausePromotion_ConfigPropertyMetadata);
1110
1110
  return config;
1111
1111
  }
1112
- function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
1112
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
1113
1113
  if (!untrustedIsObject(untrustedConfig)) {
1114
1114
  return null;
1115
1115
  }
1116
1116
  if (process.env.NODE_ENV !== 'production') {
1117
1117
  validateConfig(untrustedConfig, configPropertyNames);
1118
1118
  }
1119
- const config = typeCheckConfig$b(untrustedConfig);
1119
+ const config = typeCheckConfig$c(untrustedConfig);
1120
1120
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1121
1121
  return null;
1122
1122
  }
1123
1123
  return config;
1124
1124
  }
1125
- function buildNetworkSnapshot$b(luvio, config, options) {
1126
- const resourceParams = createResourceParams$b(config);
1127
- const request = createResourceRequest$b(resourceParams);
1125
+ function buildNetworkSnapshot$c(luvio, config, options) {
1126
+ const resourceParams = createResourceParams$c(config);
1127
+ const request = createResourceRequest$c(resourceParams);
1128
1128
  return luvio.dispatchResourceRequest(request, options)
1129
1129
  .then((response) => {
1130
1130
  return luvio.handleSuccessResponse(() => {
1131
- const snapshot = ingestSuccess$b(luvio, resourceParams, response);
1131
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response);
1132
1132
  return luvio.storeBroadcast().then(() => snapshot);
1133
1133
  }, () => {
1134
1134
  const cache = new StoreKeyMap();
1135
- getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
1135
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
1136
1136
  return cache;
1137
1137
  });
1138
1138
  }, (response) => {
@@ -1142,17 +1142,17 @@ function buildNetworkSnapshot$b(luvio, config, options) {
1142
1142
  }
1143
1143
  const postDocumentClausePromotionAdapterFactory = (luvio) => {
1144
1144
  return function postDocumentClausePromotion(untrustedConfig) {
1145
- const config = validateAdapterConfig$b(untrustedConfig, postDocumentClausePromotion_ConfigPropertyNames);
1145
+ const config = validateAdapterConfig$c(untrustedConfig, postDocumentClausePromotion_ConfigPropertyNames);
1146
1146
  // Invalid or incomplete config
1147
1147
  if (config === null) {
1148
1148
  throw new Error('Invalid config for "postDocumentClausePromotion"');
1149
1149
  }
1150
- return buildNetworkSnapshot$b(luvio, config);
1150
+ return buildNetworkSnapshot$c(luvio, config);
1151
1151
  };
1152
1152
  };
1153
1153
 
1154
- const VERSION$e = "c8652b5c3ad8c532087704340d3cad55";
1155
- function validate$i(obj, path = 'GenericOutputRepresentation') {
1154
+ const VERSION$f = "c8652b5c3ad8c532087704340d3cad55";
1155
+ function validate$j(obj, path = 'GenericOutputRepresentation') {
1156
1156
  const v_error = (() => {
1157
1157
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1158
1158
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1172,23 +1172,23 @@ function validate$i(obj, path = 'GenericOutputRepresentation') {
1172
1172
  })();
1173
1173
  return v_error === undefined ? null : v_error;
1174
1174
  }
1175
- const RepresentationType$9 = 'GenericOutputRepresentation';
1176
- function keyBuilder$e(luvio, config) {
1177
- return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
1175
+ const RepresentationType$a = 'GenericOutputRepresentation';
1176
+ function keyBuilder$f(luvio, config) {
1177
+ return keyPrefix + '::' + RepresentationType$a + ':' + config.id;
1178
1178
  }
1179
- function keyBuilderFromType$4(luvio, object) {
1179
+ function keyBuilderFromType$5(luvio, object) {
1180
1180
  const keyParams = {
1181
1181
  id: object.id
1182
1182
  };
1183
- return keyBuilder$e(luvio, keyParams);
1183
+ return keyBuilder$f(luvio, keyParams);
1184
1184
  }
1185
- function normalize$9(input, existing, path, luvio, store, timestamp) {
1185
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
1186
1186
  return input;
1187
1187
  }
1188
- const select$p = function GenericOutputRepresentationSelect() {
1188
+ const select$r = function GenericOutputRepresentationSelect() {
1189
1189
  return {
1190
1190
  kind: 'Fragment',
1191
- version: VERSION$e,
1191
+ version: VERSION$f,
1192
1192
  private: [],
1193
1193
  selections: [
1194
1194
  {
@@ -1203,7 +1203,7 @@ const select$p = function GenericOutputRepresentationSelect() {
1203
1203
  ]
1204
1204
  };
1205
1205
  };
1206
- function equals$e(existing, incoming) {
1206
+ function equals$f(existing, incoming) {
1207
1207
  const existing_isSuccess = existing.isSuccess;
1208
1208
  const incoming_isSuccess = incoming.isSuccess;
1209
1209
  // if at least one of these optionals is defined
@@ -1224,7 +1224,183 @@ function equals$e(existing, incoming) {
1224
1224
  }
1225
1225
  return true;
1226
1226
  }
1227
- const ingest$9 = function GenericOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1227
+ const ingest$a = function GenericOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1228
+ if (process.env.NODE_ENV !== 'production') {
1229
+ const validateError = validate$j(input);
1230
+ if (validateError !== null) {
1231
+ throw validateError;
1232
+ }
1233
+ }
1234
+ const key = keyBuilderFromType$5(luvio, input);
1235
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1236
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "docgen", VERSION$f, RepresentationType$a, equals$f);
1237
+ return createLink(key);
1238
+ };
1239
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
1240
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1241
+ const rootKey = keyBuilderFromType$5(luvio, input);
1242
+ rootKeySet.set(rootKey, {
1243
+ namespace: keyPrefix,
1244
+ representationName: RepresentationType$a,
1245
+ mergeable: false
1246
+ });
1247
+ }
1248
+
1249
+ function select$q(luvio, params) {
1250
+ return select$r();
1251
+ }
1252
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
1253
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
1254
+ }
1255
+ function ingestSuccess$b(luvio, resourceParams, response) {
1256
+ const { body } = response;
1257
+ const key = keyBuilderFromType$5(luvio, body);
1258
+ luvio.storeIngest(key, ingest$a, body);
1259
+ const snapshot = luvio.storeLookup({
1260
+ recordId: key,
1261
+ node: select$q(),
1262
+ variables: {},
1263
+ });
1264
+ if (process.env.NODE_ENV !== 'production') {
1265
+ if (snapshot.state !== 'Fulfilled') {
1266
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1267
+ }
1268
+ }
1269
+ deepFreeze(snapshot.data);
1270
+ return snapshot;
1271
+ }
1272
+ function createResourceRequest$b(config) {
1273
+ const headers = {};
1274
+ return {
1275
+ baseUri: '/services/data/v62.0',
1276
+ basePath: '/connect/docgen/doc-generation-batch-process/' + config.urlParams.docGenerationBatchProcessId + '/' + config.urlParams.actionName + '',
1277
+ method: 'patch',
1278
+ body: null,
1279
+ urlParams: config.urlParams,
1280
+ queryParams: {},
1281
+ headers,
1282
+ priority: 'normal',
1283
+ };
1284
+ }
1285
+
1286
+ const adapterName$b = 'performDocGenerationBatchProcessAction';
1287
+ const performDocGenerationBatchProcessAction_ConfigPropertyMetadata = [
1288
+ generateParamConfigMetadata('actionName', true, 0 /* UrlParameter */, 0 /* String */),
1289
+ generateParamConfigMetadata('docGenerationBatchProcessId', true, 0 /* UrlParameter */, 0 /* String */),
1290
+ ];
1291
+ const performDocGenerationBatchProcessAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
1292
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$g(performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
1293
+ function typeCheckConfig$b(untrustedConfig) {
1294
+ const config = {};
1295
+ typeCheckConfig$g(untrustedConfig, config, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
1296
+ return config;
1297
+ }
1298
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
1299
+ if (!untrustedIsObject(untrustedConfig)) {
1300
+ return null;
1301
+ }
1302
+ if (process.env.NODE_ENV !== 'production') {
1303
+ validateConfig(untrustedConfig, configPropertyNames);
1304
+ }
1305
+ const config = typeCheckConfig$b(untrustedConfig);
1306
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1307
+ return null;
1308
+ }
1309
+ return config;
1310
+ }
1311
+ function buildNetworkSnapshot$b(luvio, config, options) {
1312
+ const resourceParams = createResourceParams$b(config);
1313
+ const request = createResourceRequest$b(resourceParams);
1314
+ return luvio.dispatchResourceRequest(request, options)
1315
+ .then((response) => {
1316
+ return luvio.handleSuccessResponse(() => {
1317
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
1318
+ return luvio.storeBroadcast().then(() => snapshot);
1319
+ }, () => {
1320
+ const cache = new StoreKeyMap();
1321
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
1322
+ return cache;
1323
+ });
1324
+ }, (response) => {
1325
+ deepFreeze(response);
1326
+ throw response;
1327
+ });
1328
+ }
1329
+ const performDocGenerationBatchProcessActionAdapterFactory = (luvio) => {
1330
+ return function performDocGenerationBatchProcessAction(untrustedConfig) {
1331
+ const config = validateAdapterConfig$b(untrustedConfig, performDocGenerationBatchProcessAction_ConfigPropertyNames);
1332
+ // Invalid or incomplete config
1333
+ if (config === null) {
1334
+ throw new Error('Invalid config for "performDocGenerationBatchProcessAction"');
1335
+ }
1336
+ return buildNetworkSnapshot$b(luvio, config);
1337
+ };
1338
+ };
1339
+
1340
+ const TTL$5 = 60000;
1341
+ const VERSION$e = "858b017bf441407a49a0d212e2125307";
1342
+ function validate$i(obj, path = 'DocumentCompareOutputRepresentation') {
1343
+ const v_error = (() => {
1344
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1345
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1346
+ }
1347
+ const obj_compareDocumentId = obj.compareDocumentId;
1348
+ const path_compareDocumentId = path + '.compareDocumentId';
1349
+ if (typeof obj_compareDocumentId !== 'string') {
1350
+ return new TypeError('Expected "string" but received "' + typeof obj_compareDocumentId + '" (at "' + path_compareDocumentId + '")');
1351
+ }
1352
+ const obj_compareDocumentSourceType = obj.compareDocumentSourceType;
1353
+ const path_compareDocumentSourceType = path + '.compareDocumentSourceType';
1354
+ if (typeof obj_compareDocumentSourceType !== 'string') {
1355
+ return new TypeError('Expected "string" but received "' + typeof obj_compareDocumentSourceType + '" (at "' + path_compareDocumentSourceType + '")');
1356
+ }
1357
+ })();
1358
+ return v_error === undefined ? null : v_error;
1359
+ }
1360
+ const RepresentationType$9 = 'DocumentCompareOutputRepresentation';
1361
+ function keyBuilder$e(luvio, config) {
1362
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.compareDocumentId;
1363
+ }
1364
+ function keyBuilderFromType$4(luvio, object) {
1365
+ const keyParams = {
1366
+ compareDocumentId: object.compareDocumentId
1367
+ };
1368
+ return keyBuilder$e(luvio, keyParams);
1369
+ }
1370
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
1371
+ return input;
1372
+ }
1373
+ const select$p = function DocumentCompareOutputRepresentationSelect() {
1374
+ return {
1375
+ kind: 'Fragment',
1376
+ version: VERSION$e,
1377
+ private: [],
1378
+ selections: [
1379
+ {
1380
+ name: 'compareDocumentId',
1381
+ kind: 'Scalar'
1382
+ },
1383
+ {
1384
+ name: 'compareDocumentSourceType',
1385
+ kind: 'Scalar'
1386
+ }
1387
+ ]
1388
+ };
1389
+ };
1390
+ function equals$e(existing, incoming) {
1391
+ const existing_compareDocumentId = existing.compareDocumentId;
1392
+ const incoming_compareDocumentId = incoming.compareDocumentId;
1393
+ if (!(existing_compareDocumentId === incoming_compareDocumentId)) {
1394
+ return false;
1395
+ }
1396
+ const existing_compareDocumentSourceType = existing.compareDocumentSourceType;
1397
+ const incoming_compareDocumentSourceType = incoming.compareDocumentSourceType;
1398
+ if (!(existing_compareDocumentSourceType === incoming_compareDocumentSourceType)) {
1399
+ return false;
1400
+ }
1401
+ return true;
1402
+ }
1403
+ const ingest$9 = function DocumentCompareOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1228
1404
  if (process.env.NODE_ENV !== 'production') {
1229
1405
  const validateError = validate$i(input);
1230
1406
  if (validateError !== null) {
@@ -1232,7 +1408,7 @@ const ingest$9 = function GenericOutputRepresentationIngest(input, path, luvio,
1232
1408
  }
1233
1409
  }
1234
1410
  const key = keyBuilderFromType$4(luvio, input);
1235
- const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1411
+ const ttlToUse = TTL$5;
1236
1412
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "docgen", VERSION$e, RepresentationType$9, equals$e);
1237
1413
  return createLink(key);
1238
1414
  };
@@ -1273,26 +1449,28 @@ function createResourceRequest$a(config) {
1273
1449
  const headers = {};
1274
1450
  return {
1275
1451
  baseUri: '/services/data/v62.0',
1276
- basePath: '/connect/docgen/doc-generation-batch-process/' + config.urlParams.docGenerationBatchProcessId + '/' + config.urlParams.actionName + '',
1277
- method: 'patch',
1278
- body: null,
1279
- urlParams: config.urlParams,
1452
+ basePath: '/connect/docgen/document-compare',
1453
+ method: 'post',
1454
+ body: config.body,
1455
+ urlParams: {},
1280
1456
  queryParams: {},
1281
1457
  headers,
1282
1458
  priority: 'normal',
1283
1459
  };
1284
1460
  }
1285
1461
 
1286
- const adapterName$a = 'performDocGenerationBatchProcessAction';
1287
- const performDocGenerationBatchProcessAction_ConfigPropertyMetadata = [
1288
- generateParamConfigMetadata('actionName', true, 0 /* UrlParameter */, 0 /* String */),
1289
- generateParamConfigMetadata('docGenerationBatchProcessId', true, 0 /* UrlParameter */, 0 /* String */),
1462
+ const adapterName$a = 'createComparisonDocument';
1463
+ const createComparisonDocument_ConfigPropertyMetadata = [
1464
+ generateParamConfigMetadata('baseDocumentId', true, 2 /* Body */, 0 /* String */),
1465
+ generateParamConfigMetadata('baseDocumentSourceType', true, 2 /* Body */, 0 /* String */),
1466
+ generateParamConfigMetadata('compareToDocumentId', true, 2 /* Body */, 0 /* String */),
1467
+ generateParamConfigMetadata('compareToDocumentSourceType', true, 2 /* Body */, 0 /* String */),
1290
1468
  ];
1291
- const performDocGenerationBatchProcessAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
1292
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
1469
+ const createComparisonDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createComparisonDocument_ConfigPropertyMetadata);
1470
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$g(createComparisonDocument_ConfigPropertyMetadata);
1293
1471
  function typeCheckConfig$a(untrustedConfig) {
1294
1472
  const config = {};
1295
- typeCheckConfig$f(untrustedConfig, config, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
1473
+ typeCheckConfig$g(untrustedConfig, config, createComparisonDocument_ConfigPropertyMetadata);
1296
1474
  return config;
1297
1475
  }
1298
1476
  function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
@@ -1326,12 +1504,12 @@ function buildNetworkSnapshot$a(luvio, config, options) {
1326
1504
  throw response;
1327
1505
  });
1328
1506
  }
1329
- const performDocGenerationBatchProcessActionAdapterFactory = (luvio) => {
1330
- return function performDocGenerationBatchProcessAction(untrustedConfig) {
1331
- const config = validateAdapterConfig$a(untrustedConfig, performDocGenerationBatchProcessAction_ConfigPropertyNames);
1507
+ const createComparisonDocumentAdapterFactory = (luvio) => {
1508
+ return function createComparisonDocument(untrustedConfig) {
1509
+ const config = validateAdapterConfig$a(untrustedConfig, createComparisonDocument_ConfigPropertyNames);
1332
1510
  // Invalid or incomplete config
1333
1511
  if (config === null) {
1334
- throw new Error('Invalid config for "performDocGenerationBatchProcessAction"');
1512
+ throw new Error('Invalid config for "createComparisonDocument"');
1335
1513
  }
1336
1514
  return buildNetworkSnapshot$a(luvio, config);
1337
1515
  };
@@ -1574,14 +1752,14 @@ const getDocumentTemplates_ConfigPropertyMetadata = [
1574
1752
  generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */, true),
1575
1753
  ];
1576
1754
  const getDocumentTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getDocumentTemplates_ConfigPropertyMetadata);
1577
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(getDocumentTemplates_ConfigPropertyMetadata);
1755
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$g(getDocumentTemplates_ConfigPropertyMetadata);
1578
1756
  function keyBuilder$c(luvio, config) {
1579
1757
  const resourceParams = createResourceParams$9(config);
1580
1758
  return keyBuilder$d(luvio, resourceParams);
1581
1759
  }
1582
1760
  function typeCheckConfig$9(untrustedConfig) {
1583
1761
  const config = {};
1584
- typeCheckConfig$f(untrustedConfig, config, getDocumentTemplates_ConfigPropertyMetadata);
1762
+ typeCheckConfig$g(untrustedConfig, config, getDocumentTemplates_ConfigPropertyMetadata);
1585
1763
  return config;
1586
1764
  }
1587
1765
  function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
@@ -1777,10 +1955,10 @@ const updateDocumentTemplate_ConfigPropertyMetadata = [
1777
1955
  generateParamConfigMetadata('shouldDisplayUnmappedToken', false, 2 /* Body */, 1 /* Boolean */),
1778
1956
  ];
1779
1957
  const updateDocumentTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateDocumentTemplate_ConfigPropertyMetadata);
1780
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(updateDocumentTemplate_ConfigPropertyMetadata);
1958
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$g(updateDocumentTemplate_ConfigPropertyMetadata);
1781
1959
  function typeCheckConfig$8(untrustedConfig) {
1782
1960
  const config = {};
1783
- typeCheckConfig$f(untrustedConfig, config, updateDocumentTemplate_ConfigPropertyMetadata);
1961
+ typeCheckConfig$g(untrustedConfig, config, updateDocumentTemplate_ConfigPropertyMetadata);
1784
1962
  return config;
1785
1963
  }
1786
1964
  function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
@@ -1882,10 +2060,10 @@ const createDocumentTemplate_ConfigPropertyMetadata = [
1882
2060
  generateParamConfigMetadata('xmlRelationshipMetadata', false, 2 /* Body */, 0 /* String */),
1883
2061
  ];
1884
2062
  const createDocumentTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createDocumentTemplate_ConfigPropertyMetadata);
1885
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(createDocumentTemplate_ConfigPropertyMetadata);
2063
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$g(createDocumentTemplate_ConfigPropertyMetadata);
1886
2064
  function typeCheckConfig$7(untrustedConfig) {
1887
2065
  const config = {};
1888
- typeCheckConfig$f(untrustedConfig, config, createDocumentTemplate_ConfigPropertyMetadata);
2066
+ typeCheckConfig$g(untrustedConfig, config, createDocumentTemplate_ConfigPropertyMetadata);
1889
2067
  return config;
1890
2068
  }
1891
2069
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -2241,14 +2419,14 @@ const getDocuments_ConfigPropertyMetadata = [
2241
2419
  generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
2242
2420
  ];
2243
2421
  const getDocuments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDocuments_ConfigPropertyMetadata);
2244
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getDocuments_ConfigPropertyMetadata);
2422
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$g(getDocuments_ConfigPropertyMetadata);
2245
2423
  function keyBuilder$9(luvio, config) {
2246
2424
  const resourceParams = createResourceParams$6(config);
2247
2425
  return keyBuilder$a(luvio, resourceParams);
2248
2426
  }
2249
2427
  function typeCheckConfig$6(untrustedConfig) {
2250
2428
  const config = {};
2251
- typeCheckConfig$f(untrustedConfig, config, getDocuments_ConfigPropertyMetadata);
2429
+ typeCheckConfig$g(untrustedConfig, config, getDocuments_ConfigPropertyMetadata);
2252
2430
  return config;
2253
2431
  }
2254
2432
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -2706,14 +2884,14 @@ const getESignNotificationSettings_ConfigPropertyMetadata = [
2706
2884
  generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
2707
2885
  ];
2708
2886
  const getESignNotificationSettings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getESignNotificationSettings_ConfigPropertyMetadata);
2709
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(getESignNotificationSettings_ConfigPropertyMetadata);
2887
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$g(getESignNotificationSettings_ConfigPropertyMetadata);
2710
2888
  function keyBuilder$7(luvio, config) {
2711
2889
  const resourceParams = createResourceParams$5(config);
2712
2890
  return keyBuilder$8(luvio, resourceParams);
2713
2891
  }
2714
2892
  function typeCheckConfig$5(untrustedConfig) {
2715
2893
  const config = {};
2716
- typeCheckConfig$f(untrustedConfig, config, getESignNotificationSettings_ConfigPropertyMetadata);
2894
+ typeCheckConfig$g(untrustedConfig, config, getESignNotificationSettings_ConfigPropertyMetadata);
2717
2895
  return config;
2718
2896
  }
2719
2897
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -3073,14 +3251,14 @@ const getRecipients_ConfigPropertyMetadata = [
3073
3251
  generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
3074
3252
  ];
3075
3253
  const getRecipients_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecipients_ConfigPropertyMetadata);
3076
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(getRecipients_ConfigPropertyMetadata);
3254
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$g(getRecipients_ConfigPropertyMetadata);
3077
3255
  function keyBuilder$5(luvio, config) {
3078
3256
  const resourceParams = createResourceParams$4(config);
3079
3257
  return keyBuilder$6(luvio, resourceParams);
3080
3258
  }
3081
3259
  function typeCheckConfig$4(untrustedConfig) {
3082
3260
  const config = {};
3083
- typeCheckConfig$f(untrustedConfig, config, getRecipients_ConfigPropertyMetadata);
3261
+ typeCheckConfig$g(untrustedConfig, config, getRecipients_ConfigPropertyMetadata);
3084
3262
  return config;
3085
3263
  }
3086
3264
  function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
@@ -3340,10 +3518,10 @@ const createDocumentEnvelopeForEsign_ConfigPropertyMetadata = [
3340
3518
  generateParamConfigMetadata('envelope', true, 2 /* Body */, 4 /* Unsupported */),
3341
3519
  ];
3342
3520
  const createDocumentEnvelopeForEsign_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
3343
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
3521
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$g(createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
3344
3522
  function typeCheckConfig$3(untrustedConfig) {
3345
3523
  const config = {};
3346
- typeCheckConfig$f(untrustedConfig, config, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
3524
+ typeCheckConfig$g(untrustedConfig, config, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
3347
3525
  const untrustedConfig_envelope = untrustedConfig.envelope;
3348
3526
  const referenceEnvelopeSendRequestValidationError = validate$6(untrustedConfig_envelope);
3349
3527
  if (referenceEnvelopeSendRequestValidationError === null) {
@@ -3679,10 +3857,10 @@ const updateEnvelope_ConfigPropertyMetadata = [
3679
3857
  generateParamConfigMetadata('sourceObjectId', true, 0 /* UrlParameter */, 0 /* String */),
3680
3858
  ];
3681
3859
  const updateEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateEnvelope_ConfigPropertyMetadata);
3682
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(updateEnvelope_ConfigPropertyMetadata);
3860
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$g(updateEnvelope_ConfigPropertyMetadata);
3683
3861
  function typeCheckConfig$2(untrustedConfig) {
3684
3862
  const config = {};
3685
- typeCheckConfig$f(untrustedConfig, config, updateEnvelope_ConfigPropertyMetadata);
3863
+ typeCheckConfig$g(untrustedConfig, config, updateEnvelope_ConfigPropertyMetadata);
3686
3864
  return config;
3687
3865
  }
3688
3866
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -3946,10 +4124,10 @@ const updateVoidedEnvelope_ConfigPropertyMetadata = [
3946
4124
  generateParamConfigMetadata('voidParam', true, 2 /* Body */, 4 /* Unsupported */),
3947
4125
  ];
3948
4126
  const updateVoidedEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateVoidedEnvelope_ConfigPropertyMetadata);
3949
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(updateVoidedEnvelope_ConfigPropertyMetadata);
4127
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(updateVoidedEnvelope_ConfigPropertyMetadata);
3950
4128
  function typeCheckConfig$1(untrustedConfig) {
3951
4129
  const config = {};
3952
- typeCheckConfig$f(untrustedConfig, config, updateVoidedEnvelope_ConfigPropertyMetadata);
4130
+ typeCheckConfig$g(untrustedConfig, config, updateVoidedEnvelope_ConfigPropertyMetadata);
3953
4131
  const untrustedConfig_voidParam = untrustedConfig.voidParam;
3954
4132
  const referenceEnvelopeVoidRequestValidationError = validate$2(untrustedConfig_voidParam);
3955
4133
  if (referenceEnvelopeVoidRequestValidationError === null) {
@@ -4140,7 +4318,7 @@ function createResourceRequest(config) {
4140
4318
  const adapterName = 'getSignerRoles';
4141
4319
  const getSignerRoles_ConfigPropertyMetadata = [];
4142
4320
  const getSignerRoles_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSignerRoles_ConfigPropertyMetadata);
4143
- const createResourceParams = /*#__PURE__*/ createResourceParams$f(getSignerRoles_ConfigPropertyMetadata);
4321
+ const createResourceParams = /*#__PURE__*/ createResourceParams$g(getSignerRoles_ConfigPropertyMetadata);
4144
4322
  function keyBuilder(luvio, config) {
4145
4323
  createResourceParams(config);
4146
4324
  return keyBuilder$1();
@@ -4220,4 +4398,4 @@ const getSignerRolesAdapterFactory = (luvio) => function docgen__getSignerRoles(
4220
4398
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
4221
4399
  };
4222
4400
 
4223
- export { createDocumentEnvelopeForEsignAdapterFactory, createDocumentTemplateAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentTemplatesAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, postDocumentClausePromotionAdapterFactory, updateDocumentTemplateAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };
4401
+ export { createComparisonDocumentAdapterFactory, createDocumentEnvelopeForEsignAdapterFactory, createDocumentTemplateAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentTemplatesAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, postDocumentClausePromotionAdapterFactory, updateDocumentTemplateAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };