@salesforce/lds-adapters-industries-docgen 1.187.0 → 1.195.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.
@@ -91,8 +91,8 @@ function createLink(ref) {
91
91
  };
92
92
  }
93
93
 
94
- const VERSION$g = "c0cdffc7d0ce780dd3dbd6844cb94df8";
95
- function validate$i(obj, path = 'ClauseCategoryResponse') {
94
+ const VERSION$h = "c0cdffc7d0ce780dd3dbd6844cb94df8";
95
+ function validate$j(obj, path = 'ClauseCategoryResponse') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
98
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -117,10 +117,10 @@ function validate$i(obj, path = 'ClauseCategoryResponse') {
117
117
  })();
118
118
  return v_error === undefined ? null : v_error;
119
119
  }
120
- const select$q = function ClauseCategoryResponseSelect() {
120
+ const select$s = function ClauseCategoryResponseSelect() {
121
121
  return {
122
122
  kind: 'Fragment',
123
- version: VERSION$g,
123
+ version: VERSION$h,
124
124
  private: [],
125
125
  selections: [
126
126
  {
@@ -139,7 +139,7 @@ const select$q = function ClauseCategoryResponseSelect() {
139
139
  ]
140
140
  };
141
141
  };
142
- function equals$g(existing, incoming) {
142
+ function equals$h(existing, incoming) {
143
143
  const existing_id = existing.id;
144
144
  const incoming_id = incoming.id;
145
145
  // if at least one of these optionals is defined
@@ -167,8 +167,8 @@ function equals$g(existing, incoming) {
167
167
  }
168
168
 
169
169
  const TTL$6 = 30000;
170
- const VERSION$f = "6f04ab6a782443d237ece40b87b8d756";
171
- function validate$h(obj, path = 'ClauseCategoriesResponse') {
170
+ const VERSION$g = "6f04ab6a782443d237ece40b87b8d756";
171
+ function validate$i(obj, path = 'ClauseCategoriesResponse') {
172
172
  const v_error = (() => {
173
173
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
174
174
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -181,7 +181,7 @@ function validate$h(obj, path = 'ClauseCategoriesResponse') {
181
181
  for (let i = 0; i < obj_clauseCategories.length; i++) {
182
182
  const obj_clauseCategories_item = obj_clauseCategories[i];
183
183
  const path_clauseCategories_item = path_clauseCategories + '[' + i + ']';
184
- const referencepath_clauseCategories_itemValidationError = validate$i(obj_clauseCategories_item, path_clauseCategories_item);
184
+ const referencepath_clauseCategories_itemValidationError = validate$j(obj_clauseCategories_item, path_clauseCategories_item);
185
185
  if (referencepath_clauseCategories_itemValidationError !== null) {
186
186
  let message = 'Object doesn\'t match ClauseCategoryResponse (at "' + path_clauseCategories_item + '")\n';
187
187
  message += referencepath_clauseCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -191,15 +191,15 @@ function validate$h(obj, path = 'ClauseCategoriesResponse') {
191
191
  })();
192
192
  return v_error === undefined ? null : v_error;
193
193
  }
194
- const RepresentationType$9 = 'ClauseCategoriesResponse';
195
- function normalize$9(input, existing, path, luvio, store, timestamp) {
194
+ const RepresentationType$a = 'ClauseCategoriesResponse';
195
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
196
196
  return input;
197
197
  }
198
- const select$p = function ClauseCategoriesResponseSelect() {
199
- const { selections: ClauseCategoryResponse__selections, opaque: ClauseCategoryResponse__opaque, } = select$q();
198
+ const select$r = function ClauseCategoriesResponseSelect() {
199
+ const { selections: ClauseCategoryResponse__selections, opaque: ClauseCategoryResponse__opaque, } = select$s();
200
200
  return {
201
201
  kind: 'Fragment',
202
- version: VERSION$f,
202
+ version: VERSION$g,
203
203
  private: [],
204
204
  selections: [
205
205
  {
@@ -211,11 +211,11 @@ const select$p = function ClauseCategoriesResponseSelect() {
211
211
  ]
212
212
  };
213
213
  };
214
- function equals$f(existing, incoming) {
214
+ function equals$g(existing, incoming) {
215
215
  const existing_clauseCategories = existing.clauseCategories;
216
216
  const incoming_clauseCategories = incoming.clauseCategories;
217
217
  const equals_clauseCategories_items = equalsArray(existing_clauseCategories, incoming_clauseCategories, (existing_clauseCategories_item, incoming_clauseCategories_item) => {
218
- if (!(equals$g(existing_clauseCategories_item, incoming_clauseCategories_item))) {
218
+ if (!(equals$h(existing_clauseCategories_item, incoming_clauseCategories_item))) {
219
219
  return false;
220
220
  }
221
221
  });
@@ -224,9 +224,9 @@ function equals$f(existing, incoming) {
224
224
  }
225
225
  return true;
226
226
  }
227
- const ingest$9 = function ClauseCategoriesResponseIngest(input, path, luvio, store, timestamp) {
227
+ const ingest$a = function ClauseCategoriesResponseIngest(input, path, luvio, store, timestamp) {
228
228
  if (process.env.NODE_ENV !== 'production') {
229
- const validateError = validate$h(input);
229
+ const validateError = validate$i(input);
230
230
  if (validateError !== null) {
231
231
  throw validateError;
232
232
  }
@@ -234,52 +234,52 @@ const ingest$9 = function ClauseCategoriesResponseIngest(input, path, luvio, sto
234
234
  const key = path.fullPath;
235
235
  const existingRecord = store.readEntry(key);
236
236
  const ttlToUse = TTL$6;
237
- let incomingRecord = normalize$9(input, store.readEntry(key), {
237
+ let incomingRecord = normalize$a(input, store.readEntry(key), {
238
238
  fullPath: key,
239
239
  parent: path.parent,
240
240
  propertyName: path.propertyName,
241
241
  ttl: ttlToUse
242
242
  });
243
- if (existingRecord === undefined || equals$f(existingRecord, incomingRecord) === false) {
243
+ if (existingRecord === undefined || equals$g(existingRecord, incomingRecord) === false) {
244
244
  luvio.storePublish(key, incomingRecord);
245
245
  }
246
246
  {
247
247
  const storeMetadataParams = {
248
248
  ttl: ttlToUse,
249
249
  namespace: "docgen",
250
- version: VERSION$f,
251
- representationName: RepresentationType$9,
250
+ version: VERSION$g,
251
+ representationName: RepresentationType$a,
252
252
  };
253
253
  luvio.publishStoreMetadata(key, storeMetadataParams);
254
254
  }
255
255
  return createLink(key);
256
256
  };
257
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
257
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
258
258
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
259
259
  const rootKey = fullPathFactory();
260
260
  rootKeySet.set(rootKey, {
261
261
  namespace: keyPrefix,
262
- representationName: RepresentationType$9,
262
+ representationName: RepresentationType$a,
263
263
  mergeable: false
264
264
  });
265
265
  }
266
266
 
267
- function select$o(luvio, params) {
268
- return select$p();
267
+ function select$q(luvio, params) {
268
+ return select$r();
269
269
  }
270
- function keyBuilder$g(luvio, params) {
270
+ function keyBuilder$h(luvio, params) {
271
271
  return keyPrefix + '::ClauseCategoriesResponse:(' + 'id:' + params.queryParams.id + ',' + 'name:' + params.queryParams.name + ',' + 'usageType:' + params.queryParams.usageType + ')';
272
272
  }
273
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
274
- getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
273
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
274
+ getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
275
275
  }
276
- function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
276
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
277
277
  const { body } = response;
278
- const key = keyBuilder$g(luvio, resourceParams);
279
- luvio.storeIngest(key, ingest$9, body);
278
+ const key = keyBuilder$h(luvio, resourceParams);
279
+ luvio.storeIngest(key, ingest$a, body);
280
280
  const snapshot = luvio.storeLookup({
281
281
  recordId: key,
282
- node: select$o(),
282
+ node: select$q(),
283
283
  variables: {},
284
284
  }, snapshotRefresh);
285
285
  if (process.env.NODE_ENV !== 'production') {
@@ -291,18 +291,18 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
291
291
  return snapshot;
292
292
  }
293
293
  function ingestError$6(luvio, params, error, snapshotRefresh) {
294
- const key = keyBuilder$g(luvio, params);
294
+ const key = keyBuilder$h(luvio, params);
295
295
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
296
296
  const storeMetadataParams = {
297
297
  ttl: TTL$6,
298
298
  namespace: keyPrefix,
299
- version: VERSION$f,
300
- representationName: RepresentationType$9
299
+ version: VERSION$g,
300
+ representationName: RepresentationType$a
301
301
  };
302
302
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
303
303
  return errorSnapshot;
304
304
  }
305
- function createResourceRequest$9(config) {
305
+ function createResourceRequest$a(config) {
306
306
  const headers = {};
307
307
  return {
308
308
  baseUri: '/services/data/v59.0',
@@ -323,7 +323,7 @@ const getDocumentClauseSetCategories_ConfigPropertyNames = {
323
323
  optional: ['id', 'name', 'usageType']
324
324
  }
325
325
  };
326
- function createResourceParams$9(config) {
326
+ function createResourceParams$a(config) {
327
327
  const resourceParams = {
328
328
  queryParams: {
329
329
  id: config.id, name: config.name, usageType: config.usageType
@@ -331,11 +331,11 @@ function createResourceParams$9(config) {
331
331
  };
332
332
  return resourceParams;
333
333
  }
334
- function keyBuilder$f(luvio, config) {
335
- const resourceParams = createResourceParams$9(config);
336
- return keyBuilder$g(luvio, resourceParams);
334
+ function keyBuilder$g(luvio, config) {
335
+ const resourceParams = createResourceParams$a(config);
336
+ return keyBuilder$h(luvio, resourceParams);
337
337
  }
338
- function typeCheckConfig$9(untrustedConfig) {
338
+ function typeCheckConfig$a(untrustedConfig) {
339
339
  const config = {};
340
340
  const untrustedConfig_id = untrustedConfig.id;
341
341
  if (typeof untrustedConfig_id === 'string') {
@@ -351,45 +351,45 @@ function typeCheckConfig$9(untrustedConfig) {
351
351
  }
352
352
  return config;
353
353
  }
354
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
354
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
355
355
  if (!untrustedIsObject(untrustedConfig)) {
356
356
  return null;
357
357
  }
358
358
  if (process.env.NODE_ENV !== 'production') {
359
359
  validateConfig(untrustedConfig, configPropertyNames);
360
360
  }
361
- const config = typeCheckConfig$9(untrustedConfig);
361
+ const config = typeCheckConfig$a(untrustedConfig);
362
362
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
363
363
  return null;
364
364
  }
365
365
  return config;
366
366
  }
367
367
  function adapterFragment$6(luvio, config) {
368
- createResourceParams$9(config);
369
- return select$o();
368
+ createResourceParams$a(config);
369
+ return select$q();
370
370
  }
371
371
  function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
372
- const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
372
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
373
373
  config,
374
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
374
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
375
375
  });
376
376
  return luvio.storeBroadcast().then(() => snapshot);
377
377
  }
378
378
  function onFetchResponseError$6(luvio, config, resourceParams, response) {
379
379
  const snapshot = ingestError$6(luvio, resourceParams, response, {
380
380
  config,
381
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
381
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
382
382
  });
383
383
  return luvio.storeBroadcast().then(() => snapshot);
384
384
  }
385
- function buildNetworkSnapshot$9(luvio, config, options) {
386
- const resourceParams = createResourceParams$9(config);
387
- const request = createResourceRequest$9(resourceParams);
385
+ function buildNetworkSnapshot$a(luvio, config, options) {
386
+ const resourceParams = createResourceParams$a(config);
387
+ const request = createResourceRequest$a(resourceParams);
388
388
  return luvio.dispatchResourceRequest(request, options)
389
389
  .then((response) => {
390
390
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
391
391
  const cache = new StoreKeyMap();
392
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
392
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
393
393
  return cache;
394
394
  });
395
395
  }, (response) => {
@@ -411,23 +411,23 @@ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext
411
411
  priority: networkPriority
412
412
  };
413
413
  }
414
- return buildNetworkSnapshot$9(luvio, config, dispatchOptions);
414
+ return buildNetworkSnapshot$a(luvio, config, dispatchOptions);
415
415
  }
416
416
  function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
417
417
  const { luvio, config } = context;
418
418
  const selector = {
419
- recordId: keyBuilder$f(luvio, config),
419
+ recordId: keyBuilder$g(luvio, config),
420
420
  node: adapterFragment$6(luvio, config),
421
421
  variables: {},
422
422
  };
423
423
  const cacheSnapshot = storeLookup(selector, {
424
424
  config,
425
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
425
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
426
426
  });
427
427
  return cacheSnapshot;
428
428
  }
429
429
  const getDocumentClauseSetCategoriesAdapterFactory = (luvio) => function docgen__getDocumentClauseSetCategories(untrustedConfig, requestContext) {
430
- const config = validateAdapterConfig$9(untrustedConfig, getDocumentClauseSetCategories_ConfigPropertyNames);
430
+ const config = validateAdapterConfig$a(untrustedConfig, getDocumentClauseSetCategories_ConfigPropertyNames);
431
431
  // Invalid or incomplete config
432
432
  if (config === null) {
433
433
  return null;
@@ -436,8 +436,8 @@ const getDocumentClauseSetCategoriesAdapterFactory = (luvio) => function docgen_
436
436
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
437
437
  };
438
438
 
439
- const VERSION$e = "29a9e61a0952cff8f7e98cc7d8857c62";
440
- function validate$g(obj, path = 'DocumentClauseSetResponse') {
439
+ const VERSION$f = "29a9e61a0952cff8f7e98cc7d8857c62";
440
+ function validate$h(obj, path = 'DocumentClauseSetResponse') {
441
441
  const v_error = (() => {
442
442
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
443
443
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -475,10 +475,10 @@ function validate$g(obj, path = 'DocumentClauseSetResponse') {
475
475
  })();
476
476
  return v_error === undefined ? null : v_error;
477
477
  }
478
- const select$n = function DocumentClauseSetResponseSelect() {
478
+ const select$p = function DocumentClauseSetResponseSelect() {
479
479
  return {
480
480
  kind: 'Fragment',
481
- version: VERSION$e,
481
+ version: VERSION$f,
482
482
  private: [],
483
483
  selections: [
484
484
  {
@@ -508,7 +508,7 @@ const select$n = function DocumentClauseSetResponseSelect() {
508
508
  ]
509
509
  };
510
510
  };
511
- function equals$e(existing, incoming) {
511
+ function equals$f(existing, incoming) {
512
512
  const existing_category = existing.category;
513
513
  const incoming_category = incoming.category;
514
514
  if (!(existing_category === incoming_category)) {
@@ -543,8 +543,8 @@ function equals$e(existing, incoming) {
543
543
  }
544
544
 
545
545
  const TTL$5 = 100;
546
- const VERSION$d = "c6ad1fbdbd4d8cd718a8a62c63216687";
547
- function validate$f(obj, path = 'DocumentClauseSetListResponse') {
546
+ const VERSION$e = "c6ad1fbdbd4d8cd718a8a62c63216687";
547
+ function validate$g(obj, path = 'DocumentClauseSetListResponse') {
548
548
  const v_error = (() => {
549
549
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
550
550
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -557,7 +557,7 @@ function validate$f(obj, path = 'DocumentClauseSetListResponse') {
557
557
  for (let i = 0; i < obj_documentClauseSets.length; i++) {
558
558
  const obj_documentClauseSets_item = obj_documentClauseSets[i];
559
559
  const path_documentClauseSets_item = path_documentClauseSets + '[' + i + ']';
560
- const referencepath_documentClauseSets_itemValidationError = validate$g(obj_documentClauseSets_item, path_documentClauseSets_item);
560
+ const referencepath_documentClauseSets_itemValidationError = validate$h(obj_documentClauseSets_item, path_documentClauseSets_item);
561
561
  if (referencepath_documentClauseSets_itemValidationError !== null) {
562
562
  let message = 'Object doesn\'t match DocumentClauseSetResponse (at "' + path_documentClauseSets_item + '")\n';
563
563
  message += referencepath_documentClauseSets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -567,15 +567,15 @@ function validate$f(obj, path = 'DocumentClauseSetListResponse') {
567
567
  })();
568
568
  return v_error === undefined ? null : v_error;
569
569
  }
570
- const RepresentationType$8 = 'DocumentClauseSetListResponse';
571
- function normalize$8(input, existing, path, luvio, store, timestamp) {
570
+ const RepresentationType$9 = 'DocumentClauseSetListResponse';
571
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
572
572
  return input;
573
573
  }
574
- const select$m = function DocumentClauseSetListResponseSelect() {
575
- const { selections: DocumentClauseSetResponse__selections, opaque: DocumentClauseSetResponse__opaque, } = select$n();
574
+ const select$o = function DocumentClauseSetListResponseSelect() {
575
+ const { selections: DocumentClauseSetResponse__selections, opaque: DocumentClauseSetResponse__opaque, } = select$p();
576
576
  return {
577
577
  kind: 'Fragment',
578
- version: VERSION$d,
578
+ version: VERSION$e,
579
579
  private: [],
580
580
  selections: [
581
581
  {
@@ -587,11 +587,11 @@ const select$m = function DocumentClauseSetListResponseSelect() {
587
587
  ]
588
588
  };
589
589
  };
590
- function equals$d(existing, incoming) {
590
+ function equals$e(existing, incoming) {
591
591
  const existing_documentClauseSets = existing.documentClauseSets;
592
592
  const incoming_documentClauseSets = incoming.documentClauseSets;
593
593
  const equals_documentClauseSets_items = equalsArray(existing_documentClauseSets, incoming_documentClauseSets, (existing_documentClauseSets_item, incoming_documentClauseSets_item) => {
594
- if (!(equals$e(existing_documentClauseSets_item, incoming_documentClauseSets_item))) {
594
+ if (!(equals$f(existing_documentClauseSets_item, incoming_documentClauseSets_item))) {
595
595
  return false;
596
596
  }
597
597
  });
@@ -600,9 +600,9 @@ function equals$d(existing, incoming) {
600
600
  }
601
601
  return true;
602
602
  }
603
- const ingest$8 = function DocumentClauseSetListResponseIngest(input, path, luvio, store, timestamp) {
603
+ const ingest$9 = function DocumentClauseSetListResponseIngest(input, path, luvio, store, timestamp) {
604
604
  if (process.env.NODE_ENV !== 'production') {
605
- const validateError = validate$f(input);
605
+ const validateError = validate$g(input);
606
606
  if (validateError !== null) {
607
607
  throw validateError;
608
608
  }
@@ -610,52 +610,52 @@ const ingest$8 = function DocumentClauseSetListResponseIngest(input, path, luvio
610
610
  const key = path.fullPath;
611
611
  const existingRecord = store.readEntry(key);
612
612
  const ttlToUse = TTL$5;
613
- let incomingRecord = normalize$8(input, store.readEntry(key), {
613
+ let incomingRecord = normalize$9(input, store.readEntry(key), {
614
614
  fullPath: key,
615
615
  parent: path.parent,
616
616
  propertyName: path.propertyName,
617
617
  ttl: ttlToUse
618
618
  });
619
- if (existingRecord === undefined || equals$d(existingRecord, incomingRecord) === false) {
619
+ if (existingRecord === undefined || equals$e(existingRecord, incomingRecord) === false) {
620
620
  luvio.storePublish(key, incomingRecord);
621
621
  }
622
622
  {
623
623
  const storeMetadataParams = {
624
624
  ttl: ttlToUse,
625
625
  namespace: "docgen",
626
- version: VERSION$d,
627
- representationName: RepresentationType$8,
626
+ version: VERSION$e,
627
+ representationName: RepresentationType$9,
628
628
  };
629
629
  luvio.publishStoreMetadata(key, storeMetadataParams);
630
630
  }
631
631
  return createLink(key);
632
632
  };
633
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
633
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
634
634
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
635
635
  const rootKey = fullPathFactory();
636
636
  rootKeySet.set(rootKey, {
637
637
  namespace: keyPrefix,
638
- representationName: RepresentationType$8,
638
+ representationName: RepresentationType$9,
639
639
  mergeable: false
640
640
  });
641
641
  }
642
642
 
643
- function select$l(luvio, params) {
644
- return select$m();
643
+ function select$n(luvio, params) {
644
+ return select$o();
645
645
  }
646
- function keyBuilder$e(luvio, params) {
646
+ function keyBuilder$f(luvio, params) {
647
647
  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 + ')';
648
648
  }
649
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
650
- getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$e(luvio, resourceParams));
649
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
650
+ getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
651
651
  }
652
- function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
652
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
653
653
  const { body } = response;
654
- const key = keyBuilder$e(luvio, resourceParams);
655
- luvio.storeIngest(key, ingest$8, body);
654
+ const key = keyBuilder$f(luvio, resourceParams);
655
+ luvio.storeIngest(key, ingest$9, body);
656
656
  const snapshot = luvio.storeLookup({
657
657
  recordId: key,
658
- node: select$l(),
658
+ node: select$n(),
659
659
  variables: {},
660
660
  }, snapshotRefresh);
661
661
  if (process.env.NODE_ENV !== 'production') {
@@ -667,18 +667,18 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
667
667
  return snapshot;
668
668
  }
669
669
  function ingestError$5(luvio, params, error, snapshotRefresh) {
670
- const key = keyBuilder$e(luvio, params);
670
+ const key = keyBuilder$f(luvio, params);
671
671
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
672
672
  const storeMetadataParams = {
673
673
  ttl: TTL$5,
674
674
  namespace: keyPrefix,
675
- version: VERSION$d,
676
- representationName: RepresentationType$8
675
+ version: VERSION$e,
676
+ representationName: RepresentationType$9
677
677
  };
678
678
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
679
679
  return errorSnapshot;
680
680
  }
681
- function createResourceRequest$8(config) {
681
+ function createResourceRequest$9(config) {
682
682
  const headers = {};
683
683
  return {
684
684
  baseUri: '/services/data/v59.0',
@@ -699,7 +699,7 @@ const getDocumentClauseSets_ConfigPropertyNames = {
699
699
  optional: ['category', 'defaultLanguage', 'limit', 'name', 'offset', 'status']
700
700
  }
701
701
  };
702
- function createResourceParams$8(config) {
702
+ function createResourceParams$9(config) {
703
703
  const resourceParams = {
704
704
  queryParams: {
705
705
  category: config.category, defaultLanguage: config.defaultLanguage, limit: config.limit, name: config.name, offset: config.offset, status: config.status
@@ -707,11 +707,11 @@ function createResourceParams$8(config) {
707
707
  };
708
708
  return resourceParams;
709
709
  }
710
- function keyBuilder$d(luvio, config) {
711
- const resourceParams = createResourceParams$8(config);
712
- return keyBuilder$e(luvio, resourceParams);
710
+ function keyBuilder$e(luvio, config) {
711
+ const resourceParams = createResourceParams$9(config);
712
+ return keyBuilder$f(luvio, resourceParams);
713
713
  }
714
- function typeCheckConfig$8(untrustedConfig) {
714
+ function typeCheckConfig$9(untrustedConfig) {
715
715
  const config = {};
716
716
  const untrustedConfig_category = untrustedConfig.category;
717
717
  if (typeof untrustedConfig_category === 'string') {
@@ -739,45 +739,45 @@ function typeCheckConfig$8(untrustedConfig) {
739
739
  }
740
740
  return config;
741
741
  }
742
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
742
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
743
743
  if (!untrustedIsObject(untrustedConfig)) {
744
744
  return null;
745
745
  }
746
746
  if (process.env.NODE_ENV !== 'production') {
747
747
  validateConfig(untrustedConfig, configPropertyNames);
748
748
  }
749
- const config = typeCheckConfig$8(untrustedConfig);
749
+ const config = typeCheckConfig$9(untrustedConfig);
750
750
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
751
751
  return null;
752
752
  }
753
753
  return config;
754
754
  }
755
755
  function adapterFragment$5(luvio, config) {
756
- createResourceParams$8(config);
757
- return select$l();
756
+ createResourceParams$9(config);
757
+ return select$n();
758
758
  }
759
759
  function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
760
- const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
760
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
761
761
  config,
762
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
762
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
763
763
  });
764
764
  return luvio.storeBroadcast().then(() => snapshot);
765
765
  }
766
766
  function onFetchResponseError$5(luvio, config, resourceParams, response) {
767
767
  const snapshot = ingestError$5(luvio, resourceParams, response, {
768
768
  config,
769
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
769
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
770
770
  });
771
771
  return luvio.storeBroadcast().then(() => snapshot);
772
772
  }
773
- function buildNetworkSnapshot$8(luvio, config, options) {
774
- const resourceParams = createResourceParams$8(config);
775
- const request = createResourceRequest$8(resourceParams);
773
+ function buildNetworkSnapshot$9(luvio, config, options) {
774
+ const resourceParams = createResourceParams$9(config);
775
+ const request = createResourceRequest$9(resourceParams);
776
776
  return luvio.dispatchResourceRequest(request, options)
777
777
  .then((response) => {
778
778
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
779
779
  const cache = new StoreKeyMap();
780
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
780
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
781
781
  return cache;
782
782
  });
783
783
  }, (response) => {
@@ -799,23 +799,23 @@ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext
799
799
  priority: networkPriority
800
800
  };
801
801
  }
802
- return buildNetworkSnapshot$8(luvio, config, dispatchOptions);
802
+ return buildNetworkSnapshot$9(luvio, config, dispatchOptions);
803
803
  }
804
804
  function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
805
805
  const { luvio, config } = context;
806
806
  const selector = {
807
- recordId: keyBuilder$d(luvio, config),
807
+ recordId: keyBuilder$e(luvio, config),
808
808
  node: adapterFragment$5(luvio, config),
809
809
  variables: {},
810
810
  };
811
811
  const cacheSnapshot = storeLookup(selector, {
812
812
  config,
813
- resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
813
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
814
814
  });
815
815
  return cacheSnapshot;
816
816
  }
817
817
  const getDocumentClauseSetsAdapterFactory = (luvio) => function docgen__getDocumentClauseSets(untrustedConfig, requestContext) {
818
- const config = validateAdapterConfig$8(untrustedConfig, getDocumentClauseSets_ConfigPropertyNames);
818
+ const config = validateAdapterConfig$9(untrustedConfig, getDocumentClauseSets_ConfigPropertyNames);
819
819
  // Invalid or incomplete config
820
820
  if (config === null) {
821
821
  return null;
@@ -825,8 +825,8 @@ const getDocumentClauseSetsAdapterFactory = (luvio) => function docgen__getDocum
825
825
  };
826
826
 
827
827
  const TTL$4 = 100;
828
- const VERSION$c = "a3afe2a67715551a49f0d59eafb639aa";
829
- function validate$e(obj, path = 'DocumentClauseFieldsResponse') {
828
+ const VERSION$d = "a3afe2a67715551a49f0d59eafb639aa";
829
+ function validate$f(obj, path = 'DocumentClauseFieldsResponse') {
830
830
  const v_error = (() => {
831
831
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
832
832
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -851,14 +851,14 @@ function validate$e(obj, path = 'DocumentClauseFieldsResponse') {
851
851
  })();
852
852
  return v_error === undefined ? null : v_error;
853
853
  }
854
- const RepresentationType$7 = 'DocumentClauseFieldsResponse';
855
- function normalize$7(input, existing, path, luvio, store, timestamp) {
854
+ const RepresentationType$8 = 'DocumentClauseFieldsResponse';
855
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
856
856
  return input;
857
857
  }
858
- const select$k = function DocumentClauseFieldsResponseSelect() {
858
+ const select$m = function DocumentClauseFieldsResponseSelect() {
859
859
  return {
860
860
  kind: 'Fragment',
861
- version: VERSION$c,
861
+ version: VERSION$d,
862
862
  private: [],
863
863
  selections: [
864
864
  {
@@ -874,7 +874,7 @@ const select$k = function DocumentClauseFieldsResponseSelect() {
874
874
  ]
875
875
  };
876
876
  };
877
- function equals$c(existing, incoming) {
877
+ function equals$d(existing, incoming) {
878
878
  const existing_extendedFields = existing.extendedFields;
879
879
  const incoming_extendedFields = incoming.extendedFields;
880
880
  if (JSONStringify(incoming_extendedFields) !== JSONStringify(existing_extendedFields)) {
@@ -892,9 +892,9 @@ function equals$c(existing, incoming) {
892
892
  }
893
893
  return true;
894
894
  }
895
- const ingest$7 = function DocumentClauseFieldsResponseIngest(input, path, luvio, store, timestamp) {
895
+ const ingest$8 = function DocumentClauseFieldsResponseIngest(input, path, luvio, store, timestamp) {
896
896
  if (process.env.NODE_ENV !== 'production') {
897
- const validateError = validate$e(input);
897
+ const validateError = validate$f(input);
898
898
  if (validateError !== null) {
899
899
  throw validateError;
900
900
  }
@@ -902,52 +902,52 @@ const ingest$7 = function DocumentClauseFieldsResponseIngest(input, path, luvio,
902
902
  const key = path.fullPath;
903
903
  const existingRecord = store.readEntry(key);
904
904
  const ttlToUse = TTL$4;
905
- let incomingRecord = normalize$7(input, store.readEntry(key), {
905
+ let incomingRecord = normalize$8(input, store.readEntry(key), {
906
906
  fullPath: key,
907
907
  parent: path.parent,
908
908
  propertyName: path.propertyName,
909
909
  ttl: ttlToUse
910
910
  });
911
- if (existingRecord === undefined || equals$c(existingRecord, incomingRecord) === false) {
911
+ if (existingRecord === undefined || equals$d(existingRecord, incomingRecord) === false) {
912
912
  luvio.storePublish(key, incomingRecord);
913
913
  }
914
914
  {
915
915
  const storeMetadataParams = {
916
916
  ttl: ttlToUse,
917
917
  namespace: "docgen",
918
- version: VERSION$c,
919
- representationName: RepresentationType$7,
918
+ version: VERSION$d,
919
+ representationName: RepresentationType$8,
920
920
  };
921
921
  luvio.publishStoreMetadata(key, storeMetadataParams);
922
922
  }
923
923
  return createLink(key);
924
924
  };
925
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
925
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
926
926
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
927
927
  const rootKey = fullPathFactory();
928
928
  rootKeySet.set(rootKey, {
929
929
  namespace: keyPrefix,
930
- representationName: RepresentationType$7,
930
+ representationName: RepresentationType$8,
931
931
  mergeable: false
932
932
  });
933
933
  }
934
934
 
935
- function select$j(luvio, params) {
936
- return select$k();
935
+ function select$l(luvio, params) {
936
+ return select$m();
937
937
  }
938
- function keyBuilder$c(luvio, params) {
938
+ function keyBuilder$d(luvio, params) {
939
939
  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 + ')';
940
940
  }
941
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
942
- getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
941
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
942
+ getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
943
943
  }
944
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
944
+ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
945
945
  const { body } = response;
946
- const key = keyBuilder$c(luvio, resourceParams);
947
- luvio.storeIngest(key, ingest$7, body);
946
+ const key = keyBuilder$d(luvio, resourceParams);
947
+ luvio.storeIngest(key, ingest$8, body);
948
948
  const snapshot = luvio.storeLookup({
949
949
  recordId: key,
950
- node: select$j(),
950
+ node: select$l(),
951
951
  variables: {},
952
952
  }, snapshotRefresh);
953
953
  if (process.env.NODE_ENV !== 'production') {
@@ -959,18 +959,18 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
959
959
  return snapshot;
960
960
  }
961
961
  function ingestError$4(luvio, params, error, snapshotRefresh) {
962
- const key = keyBuilder$c(luvio, params);
962
+ const key = keyBuilder$d(luvio, params);
963
963
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
964
964
  const storeMetadataParams = {
965
965
  ttl: TTL$4,
966
966
  namespace: keyPrefix,
967
- version: VERSION$c,
968
- representationName: RepresentationType$7
967
+ version: VERSION$d,
968
+ representationName: RepresentationType$8
969
969
  };
970
970
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
971
971
  return errorSnapshot;
972
972
  }
973
- function createResourceRequest$7(config) {
973
+ function createResourceRequest$8(config) {
974
974
  const headers = {};
975
975
  return {
976
976
  baseUri: '/services/data/v59.0',
@@ -991,7 +991,7 @@ const getDocumentClauseFields_ConfigPropertyNames = {
991
991
  optional: ['clauseSetId', 'extendedFields', 'fieldName', 'language', 'name', 'status']
992
992
  }
993
993
  };
994
- function createResourceParams$7(config) {
994
+ function createResourceParams$8(config) {
995
995
  const resourceParams = {
996
996
  queryParams: {
997
997
  clauseSetId: config.clauseSetId, extendedFields: config.extendedFields, fieldName: config.fieldName, language: config.language, name: config.name, status: config.status
@@ -999,11 +999,11 @@ function createResourceParams$7(config) {
999
999
  };
1000
1000
  return resourceParams;
1001
1001
  }
1002
- function keyBuilder$b(luvio, config) {
1003
- const resourceParams = createResourceParams$7(config);
1004
- return keyBuilder$c(luvio, resourceParams);
1002
+ function keyBuilder$c(luvio, config) {
1003
+ const resourceParams = createResourceParams$8(config);
1004
+ return keyBuilder$d(luvio, resourceParams);
1005
1005
  }
1006
- function typeCheckConfig$7(untrustedConfig) {
1006
+ function typeCheckConfig$8(untrustedConfig) {
1007
1007
  const config = {};
1008
1008
  const untrustedConfig_clauseSetId = untrustedConfig.clauseSetId;
1009
1009
  if (typeof untrustedConfig_clauseSetId === 'string') {
@@ -1031,45 +1031,45 @@ function typeCheckConfig$7(untrustedConfig) {
1031
1031
  }
1032
1032
  return config;
1033
1033
  }
1034
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1034
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1035
1035
  if (!untrustedIsObject(untrustedConfig)) {
1036
1036
  return null;
1037
1037
  }
1038
1038
  if (process.env.NODE_ENV !== 'production') {
1039
1039
  validateConfig(untrustedConfig, configPropertyNames);
1040
1040
  }
1041
- const config = typeCheckConfig$7(untrustedConfig);
1041
+ const config = typeCheckConfig$8(untrustedConfig);
1042
1042
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1043
1043
  return null;
1044
1044
  }
1045
1045
  return config;
1046
1046
  }
1047
1047
  function adapterFragment$4(luvio, config) {
1048
- createResourceParams$7(config);
1049
- return select$j();
1048
+ createResourceParams$8(config);
1049
+ return select$l();
1050
1050
  }
1051
1051
  function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1052
- const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
1052
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
1053
1053
  config,
1054
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1054
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1055
1055
  });
1056
1056
  return luvio.storeBroadcast().then(() => snapshot);
1057
1057
  }
1058
1058
  function onFetchResponseError$4(luvio, config, resourceParams, response) {
1059
1059
  const snapshot = ingestError$4(luvio, resourceParams, response, {
1060
1060
  config,
1061
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1061
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1062
1062
  });
1063
1063
  return luvio.storeBroadcast().then(() => snapshot);
1064
1064
  }
1065
- function buildNetworkSnapshot$7(luvio, config, options) {
1066
- const resourceParams = createResourceParams$7(config);
1067
- const request = createResourceRequest$7(resourceParams);
1065
+ function buildNetworkSnapshot$8(luvio, config, options) {
1066
+ const resourceParams = createResourceParams$8(config);
1067
+ const request = createResourceRequest$8(resourceParams);
1068
1068
  return luvio.dispatchResourceRequest(request, options)
1069
1069
  .then((response) => {
1070
1070
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
1071
1071
  const cache = new StoreKeyMap();
1072
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1072
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1073
1073
  return cache;
1074
1074
  });
1075
1075
  }, (response) => {
@@ -1091,23 +1091,23 @@ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext
1091
1091
  priority: networkPriority
1092
1092
  };
1093
1093
  }
1094
- return buildNetworkSnapshot$7(luvio, config, dispatchOptions);
1094
+ return buildNetworkSnapshot$8(luvio, config, dispatchOptions);
1095
1095
  }
1096
1096
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1097
1097
  const { luvio, config } = context;
1098
1098
  const selector = {
1099
- recordId: keyBuilder$b(luvio, config),
1099
+ recordId: keyBuilder$c(luvio, config),
1100
1100
  node: adapterFragment$4(luvio, config),
1101
1101
  variables: {},
1102
1102
  };
1103
1103
  const cacheSnapshot = storeLookup(selector, {
1104
1104
  config,
1105
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1105
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
1106
1106
  });
1107
1107
  return cacheSnapshot;
1108
1108
  }
1109
1109
  const getDocumentClauseFieldsAdapterFactory = (luvio) => function docgen__getDocumentClauseFields(untrustedConfig, requestContext) {
1110
- const config = validateAdapterConfig$7(untrustedConfig, getDocumentClauseFields_ConfigPropertyNames);
1110
+ const config = validateAdapterConfig$8(untrustedConfig, getDocumentClauseFields_ConfigPropertyNames);
1111
1111
  // Invalid or incomplete config
1112
1112
  if (config === null) {
1113
1113
  return null;
@@ -1116,6 +1116,225 @@ const getDocumentClauseFieldsAdapterFactory = (luvio) => function docgen__getDoc
1116
1116
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
1117
1117
  };
1118
1118
 
1119
+ const VERSION$c = "c8652b5c3ad8c532087704340d3cad55";
1120
+ function validate$e(obj, path = 'GenericOutputRepresentation') {
1121
+ const v_error = (() => {
1122
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1123
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1124
+ }
1125
+ const obj_id = obj.id;
1126
+ const path_id = path + '.id';
1127
+ if (typeof obj_id !== 'string') {
1128
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1129
+ }
1130
+ if (obj.isSuccess !== undefined) {
1131
+ const obj_isSuccess = obj.isSuccess;
1132
+ const path_isSuccess = path + '.isSuccess';
1133
+ if (typeof obj_isSuccess !== 'boolean') {
1134
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
1135
+ }
1136
+ }
1137
+ })();
1138
+ return v_error === undefined ? null : v_error;
1139
+ }
1140
+ const RepresentationType$7 = 'GenericOutputRepresentation';
1141
+ function keyBuilder$b(luvio, config) {
1142
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
1143
+ }
1144
+ function keyBuilderFromType$3(luvio, object) {
1145
+ const keyParams = {
1146
+ id: object.id
1147
+ };
1148
+ return keyBuilder$b(luvio, keyParams);
1149
+ }
1150
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1151
+ return input;
1152
+ }
1153
+ const select$k = function GenericOutputRepresentationSelect() {
1154
+ return {
1155
+ kind: 'Fragment',
1156
+ version: VERSION$c,
1157
+ private: [],
1158
+ selections: [
1159
+ {
1160
+ name: 'id',
1161
+ kind: 'Scalar'
1162
+ },
1163
+ {
1164
+ name: 'isSuccess',
1165
+ kind: 'Scalar',
1166
+ required: false
1167
+ }
1168
+ ]
1169
+ };
1170
+ };
1171
+ function equals$c(existing, incoming) {
1172
+ const existing_isSuccess = existing.isSuccess;
1173
+ const incoming_isSuccess = incoming.isSuccess;
1174
+ // if at least one of these optionals is defined
1175
+ if (existing_isSuccess !== undefined || incoming_isSuccess !== undefined) {
1176
+ // if one of these is not defined we know the other is defined and therefore
1177
+ // not equal
1178
+ if (existing_isSuccess === undefined || incoming_isSuccess === undefined) {
1179
+ return false;
1180
+ }
1181
+ if (!(existing_isSuccess === incoming_isSuccess)) {
1182
+ return false;
1183
+ }
1184
+ }
1185
+ const existing_id = existing.id;
1186
+ const incoming_id = incoming.id;
1187
+ if (!(existing_id === incoming_id)) {
1188
+ return false;
1189
+ }
1190
+ return true;
1191
+ }
1192
+ const ingest$7 = function GenericOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1193
+ if (process.env.NODE_ENV !== 'production') {
1194
+ const validateError = validate$e(input);
1195
+ if (validateError !== null) {
1196
+ throw validateError;
1197
+ }
1198
+ }
1199
+ const key = keyBuilderFromType$3(luvio, input);
1200
+ const existingRecord = store.readEntry(key);
1201
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1202
+ let incomingRecord = normalize$7(input, store.readEntry(key), {
1203
+ fullPath: key,
1204
+ parent: path.parent,
1205
+ propertyName: path.propertyName,
1206
+ ttl: ttlToUse
1207
+ });
1208
+ if (existingRecord === undefined || equals$c(existingRecord, incomingRecord) === false) {
1209
+ luvio.storePublish(key, incomingRecord);
1210
+ }
1211
+ if (ttlToUse !== undefined) {
1212
+ const storeMetadataParams = {
1213
+ ttl: ttlToUse,
1214
+ namespace: "docgen",
1215
+ version: VERSION$c,
1216
+ representationName: RepresentationType$7,
1217
+ };
1218
+ luvio.publishStoreMetadata(key, storeMetadataParams);
1219
+ }
1220
+ return createLink(key);
1221
+ };
1222
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1223
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1224
+ const rootKey = keyBuilderFromType$3(luvio, input);
1225
+ rootKeySet.set(rootKey, {
1226
+ namespace: keyPrefix,
1227
+ representationName: RepresentationType$7,
1228
+ mergeable: false
1229
+ });
1230
+ }
1231
+
1232
+ function select$j(luvio, params) {
1233
+ return select$k();
1234
+ }
1235
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1236
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1237
+ }
1238
+ function ingestSuccess$7(luvio, resourceParams, response) {
1239
+ const { body } = response;
1240
+ const key = keyBuilderFromType$3(luvio, body);
1241
+ luvio.storeIngest(key, ingest$7, body);
1242
+ const snapshot = luvio.storeLookup({
1243
+ recordId: key,
1244
+ node: select$j(),
1245
+ variables: {},
1246
+ });
1247
+ if (process.env.NODE_ENV !== 'production') {
1248
+ if (snapshot.state !== 'Fulfilled') {
1249
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1250
+ }
1251
+ }
1252
+ deepFreeze(snapshot.data);
1253
+ return snapshot;
1254
+ }
1255
+ function createResourceRequest$7(config) {
1256
+ const headers = {};
1257
+ return {
1258
+ baseUri: '/services/data/v59.0',
1259
+ basePath: '/connect/docgen/doc-generation-batch-process/' + config.urlParams.docGenerationBatchProcessId + '/' + config.urlParams.actionName + '',
1260
+ method: 'patch',
1261
+ body: null,
1262
+ urlParams: config.urlParams,
1263
+ queryParams: {},
1264
+ headers,
1265
+ priority: 'normal',
1266
+ };
1267
+ }
1268
+
1269
+ const performDocGenerationBatchProcessAction_ConfigPropertyNames = {
1270
+ displayName: 'performDocGenerationBatchProcessAction',
1271
+ parameters: {
1272
+ required: ['actionName', 'docGenerationBatchProcessId'],
1273
+ optional: []
1274
+ }
1275
+ };
1276
+ function createResourceParams$7(config) {
1277
+ const resourceParams = {
1278
+ urlParams: {
1279
+ actionName: config.actionName, docGenerationBatchProcessId: config.docGenerationBatchProcessId
1280
+ }
1281
+ };
1282
+ return resourceParams;
1283
+ }
1284
+ function typeCheckConfig$7(untrustedConfig) {
1285
+ const config = {};
1286
+ const untrustedConfig_actionName = untrustedConfig.actionName;
1287
+ if (typeof untrustedConfig_actionName === 'string') {
1288
+ config.actionName = untrustedConfig_actionName;
1289
+ }
1290
+ const untrustedConfig_docGenerationBatchProcessId = untrustedConfig.docGenerationBatchProcessId;
1291
+ if (typeof untrustedConfig_docGenerationBatchProcessId === 'string') {
1292
+ config.docGenerationBatchProcessId = untrustedConfig_docGenerationBatchProcessId;
1293
+ }
1294
+ return config;
1295
+ }
1296
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1297
+ if (!untrustedIsObject(untrustedConfig)) {
1298
+ return null;
1299
+ }
1300
+ if (process.env.NODE_ENV !== 'production') {
1301
+ validateConfig(untrustedConfig, configPropertyNames);
1302
+ }
1303
+ const config = typeCheckConfig$7(untrustedConfig);
1304
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1305
+ return null;
1306
+ }
1307
+ return config;
1308
+ }
1309
+ function buildNetworkSnapshot$7(luvio, config, options) {
1310
+ const resourceParams = createResourceParams$7(config);
1311
+ const request = createResourceRequest$7(resourceParams);
1312
+ return luvio.dispatchResourceRequest(request, options)
1313
+ .then((response) => {
1314
+ return luvio.handleSuccessResponse(() => {
1315
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1316
+ return luvio.storeBroadcast().then(() => snapshot);
1317
+ }, () => {
1318
+ const cache = new StoreKeyMap();
1319
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1320
+ return cache;
1321
+ });
1322
+ }, (response) => {
1323
+ deepFreeze(response);
1324
+ throw response;
1325
+ });
1326
+ }
1327
+ const performDocGenerationBatchProcessActionAdapterFactory = (luvio) => {
1328
+ return function performDocGenerationBatchProcessAction(untrustedConfig) {
1329
+ const config = validateAdapterConfig$7(untrustedConfig, performDocGenerationBatchProcessAction_ConfigPropertyNames);
1330
+ // Invalid or incomplete config
1331
+ if (config === null) {
1332
+ throw new Error('Invalid config for "performDocGenerationBatchProcessAction"');
1333
+ }
1334
+ return buildNetworkSnapshot$7(luvio, config);
1335
+ };
1336
+ };
1337
+
1119
1338
  const VERSION$b = "0bb7df7b5d24fd4c03e5515621a5ad3c";
1120
1339
  function validate$d(obj, path = 'DocumentResponse') {
1121
1340
  const v_error = (() => {
@@ -3675,4 +3894,4 @@ const getSignerRolesAdapterFactory = (luvio) => function docgen__getSignerRoles(
3675
3894
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3676
3895
  };
3677
3896
 
3678
- export { createDocumentEnvelopeForEsignAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };
3897
+ export { createDocumentEnvelopeForEsignAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };