@salesforce/lds-adapters-industries-docgen 1.282.0 → 1.283.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/industries-docgen.js +374 -192
- package/dist/es/es2018/types/src/generated/adapters/postDocumentClausePromotion.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectClauseLibraryPromoteClause.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/types/DocumentClausePromotionRequest.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/DocumentClausePromotionResponse.d.ts +41 -0
- package/package.json +4 -4
- package/sfdc/index.js +776 -591
- package/src/raml/api.raml +56 -0
- package/src/raml/luvio.raml +10 -0
|
@@ -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$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$f, StoreKeyMap, createResourceParams as createResourceParams$f } 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$
|
|
116
|
-
function validate$
|
|
115
|
+
const VERSION$m = "c0cdffc7d0ce780dd3dbd6844cb94df8";
|
|
116
|
+
function validate$o(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$n(obj, path = 'ClauseCategoryResponse') {
|
|
|
138
138
|
})();
|
|
139
139
|
return v_error === undefined ? null : v_error;
|
|
140
140
|
}
|
|
141
|
-
const select$
|
|
141
|
+
const select$B = function ClauseCategoryResponseSelect() {
|
|
142
142
|
return {
|
|
143
143
|
kind: 'Fragment',
|
|
144
|
-
version: VERSION$
|
|
144
|
+
version: VERSION$m,
|
|
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$
|
|
163
|
+
function equals$m(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$l(existing, incoming) {
|
|
|
187
187
|
return true;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
const TTL$
|
|
191
|
-
const VERSION$
|
|
192
|
-
function validate$
|
|
190
|
+
const TTL$7 = 30000;
|
|
191
|
+
const VERSION$l = "6f04ab6a782443d237ece40b87b8d756";
|
|
192
|
+
function validate$n(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$m(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$
|
|
205
|
+
const referencepath_clauseCategories_itemValidationError = validate$o(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$m(obj, path = 'ClauseCategoriesResponse') {
|
|
|
212
212
|
})();
|
|
213
213
|
return v_error === undefined ? null : v_error;
|
|
214
214
|
}
|
|
215
|
-
const RepresentationType$
|
|
216
|
-
function normalize$
|
|
215
|
+
const RepresentationType$d = 'ClauseCategoriesResponse';
|
|
216
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
217
217
|
return input;
|
|
218
218
|
}
|
|
219
|
-
const select$
|
|
220
|
-
const { selections: ClauseCategoryResponse__selections, opaque: ClauseCategoryResponse__opaque, } = select$
|
|
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$
|
|
223
|
+
version: VERSION$l,
|
|
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$
|
|
235
|
+
function equals$l(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$
|
|
239
|
+
if (!(equals$m(existing_clauseCategories_item, incoming_clauseCategories_item))) {
|
|
240
240
|
return false;
|
|
241
241
|
}
|
|
242
242
|
});
|
|
@@ -245,44 +245,44 @@ function equals$k(existing, incoming) {
|
|
|
245
245
|
}
|
|
246
246
|
return true;
|
|
247
247
|
}
|
|
248
|
-
const ingest$
|
|
248
|
+
const ingest$d = function ClauseCategoriesResponseIngest(input, path, luvio, store, timestamp) {
|
|
249
249
|
if (process.env.NODE_ENV !== 'production') {
|
|
250
|
-
const validateError = validate$
|
|
250
|
+
const validateError = validate$n(input);
|
|
251
251
|
if (validateError !== null) {
|
|
252
252
|
throw validateError;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
const key = path.fullPath;
|
|
256
|
-
const ttlToUse = TTL$
|
|
257
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
256
|
+
const ttlToUse = TTL$7;
|
|
257
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "docgen", VERSION$l, RepresentationType$d, equals$l);
|
|
258
258
|
return createLink(key);
|
|
259
259
|
};
|
|
260
|
-
function getTypeCacheKeys$
|
|
260
|
+
function getTypeCacheKeys$d(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$
|
|
265
|
+
representationName: RepresentationType$d,
|
|
266
266
|
mergeable: false
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
function select$
|
|
271
|
-
return select$
|
|
270
|
+
function select$z(luvio, params) {
|
|
271
|
+
return select$A();
|
|
272
272
|
}
|
|
273
|
-
function keyBuilder$
|
|
273
|
+
function keyBuilder$l(luvio, params) {
|
|
274
274
|
return keyPrefix + '::ClauseCategoriesResponse:(' + 'id:' + params.queryParams.id + ',' + 'name:' + params.queryParams.name + ',' + 'usageType:' + params.queryParams.usageType + ')';
|
|
275
275
|
}
|
|
276
|
-
function getResponseCacheKeys$
|
|
277
|
-
getTypeCacheKeys$
|
|
276
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
277
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
|
|
278
278
|
}
|
|
279
|
-
function ingestSuccess$
|
|
279
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
280
280
|
const { body } = response;
|
|
281
|
-
const key = keyBuilder$
|
|
282
|
-
luvio.storeIngest(key, ingest$
|
|
281
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
282
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
283
283
|
const snapshot = luvio.storeLookup({
|
|
284
284
|
recordId: key,
|
|
285
|
-
node: select$
|
|
285
|
+
node: select$z(),
|
|
286
286
|
variables: {},
|
|
287
287
|
}, snapshotRefresh);
|
|
288
288
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -294,18 +294,18 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
294
294
|
return snapshot;
|
|
295
295
|
}
|
|
296
296
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
297
|
-
const key = keyBuilder$
|
|
297
|
+
const key = keyBuilder$l(luvio, params);
|
|
298
298
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
299
299
|
const storeMetadataParams = {
|
|
300
|
-
ttl: TTL$
|
|
300
|
+
ttl: TTL$7,
|
|
301
301
|
namespace: keyPrefix,
|
|
302
|
-
version: VERSION$
|
|
303
|
-
representationName: RepresentationType$
|
|
302
|
+
version: VERSION$l,
|
|
303
|
+
representationName: RepresentationType$d
|
|
304
304
|
};
|
|
305
305
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
306
306
|
return errorSnapshot;
|
|
307
307
|
}
|
|
308
|
-
function createResourceRequest$
|
|
308
|
+
function createResourceRequest$e(config) {
|
|
309
309
|
const headers = {};
|
|
310
310
|
return {
|
|
311
311
|
baseUri: '/services/data/v61.0',
|
|
@@ -319,62 +319,62 @@ function createResourceRequest$d(config) {
|
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
const adapterName$
|
|
322
|
+
const adapterName$e = '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$
|
|
329
|
-
const createResourceParams$
|
|
330
|
-
function keyBuilder$
|
|
331
|
-
const resourceParams = createResourceParams$
|
|
332
|
-
return keyBuilder$
|
|
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);
|
|
333
333
|
}
|
|
334
|
-
function typeCheckConfig$
|
|
334
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
335
335
|
const config = {};
|
|
336
|
-
typeCheckConfig$
|
|
336
|
+
typeCheckConfig$f(untrustedConfig, config, getDocumentClauseSetCategories_ConfigPropertyMetadata);
|
|
337
337
|
return config;
|
|
338
338
|
}
|
|
339
|
-
function validateAdapterConfig$
|
|
339
|
+
function validateAdapterConfig$e(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$
|
|
346
|
+
const config = typeCheckConfig$e(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$
|
|
354
|
-
return select$
|
|
353
|
+
createResourceParams$e(config);
|
|
354
|
+
return select$z();
|
|
355
355
|
}
|
|
356
356
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
357
|
-
const snapshot = ingestSuccess$
|
|
357
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
358
358
|
config,
|
|
359
|
-
resolve: () => buildNetworkSnapshot$
|
|
359
|
+
resolve: () => buildNetworkSnapshot$e(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$
|
|
366
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
367
367
|
});
|
|
368
368
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
369
369
|
}
|
|
370
|
-
function buildNetworkSnapshot$
|
|
371
|
-
const resourceParams = createResourceParams$
|
|
372
|
-
const request = createResourceRequest$
|
|
370
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
371
|
+
const resourceParams = createResourceParams$e(config);
|
|
372
|
+
const request = createResourceRequest$e(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$
|
|
377
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
378
378
|
return cache;
|
|
379
379
|
});
|
|
380
380
|
}, (response) => {
|
|
@@ -382,23 +382,23 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
385
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
385
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
386
386
|
}
|
|
387
387
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
388
388
|
const { luvio, config } = context;
|
|
389
389
|
const selector = {
|
|
390
|
-
recordId: keyBuilder$
|
|
390
|
+
recordId: keyBuilder$k(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$
|
|
396
|
+
resolve: () => buildNetworkSnapshot$e(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$
|
|
401
|
+
const config = validateAdapterConfig$e(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$
|
|
411
|
-
function validate$
|
|
410
|
+
const VERSION$k = "29a9e61a0952cff8f7e98cc7d8857c62";
|
|
411
|
+
function validate$m(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$l(obj, path = 'DocumentClauseSetResponse') {
|
|
|
446
446
|
})();
|
|
447
447
|
return v_error === undefined ? null : v_error;
|
|
448
448
|
}
|
|
449
|
-
const select$
|
|
449
|
+
const select$y = function DocumentClauseSetResponseSelect() {
|
|
450
450
|
return {
|
|
451
451
|
kind: 'Fragment',
|
|
452
|
-
version: VERSION$
|
|
452
|
+
version: VERSION$k,
|
|
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$
|
|
482
|
+
function equals$k(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$j(existing, incoming) {
|
|
|
513
513
|
return true;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
const TTL$
|
|
517
|
-
const VERSION$
|
|
518
|
-
function validate$
|
|
516
|
+
const TTL$6 = 100;
|
|
517
|
+
const VERSION$j = "c6ad1fbdbd4d8cd718a8a62c63216687";
|
|
518
|
+
function validate$l(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$k(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$
|
|
531
|
+
const referencepath_documentClauseSets_itemValidationError = validate$m(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$k(obj, path = 'DocumentClauseSetListResponse') {
|
|
|
538
538
|
})();
|
|
539
539
|
return v_error === undefined ? null : v_error;
|
|
540
540
|
}
|
|
541
|
-
const RepresentationType$
|
|
542
|
-
function normalize$
|
|
541
|
+
const RepresentationType$c = 'DocumentClauseSetListResponse';
|
|
542
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
543
543
|
return input;
|
|
544
544
|
}
|
|
545
|
-
const select$
|
|
546
|
-
const { selections: DocumentClauseSetResponse__selections, opaque: DocumentClauseSetResponse__opaque, } = select$
|
|
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$
|
|
549
|
+
version: VERSION$j,
|
|
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$
|
|
561
|
+
function equals$j(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$
|
|
565
|
+
if (!(equals$k(existing_documentClauseSets_item, incoming_documentClauseSets_item))) {
|
|
566
566
|
return false;
|
|
567
567
|
}
|
|
568
568
|
});
|
|
@@ -571,44 +571,44 @@ function equals$i(existing, incoming) {
|
|
|
571
571
|
}
|
|
572
572
|
return true;
|
|
573
573
|
}
|
|
574
|
-
const ingest$
|
|
574
|
+
const ingest$c = function DocumentClauseSetListResponseIngest(input, path, luvio, store, timestamp) {
|
|
575
575
|
if (process.env.NODE_ENV !== 'production') {
|
|
576
|
-
const validateError = validate$
|
|
576
|
+
const validateError = validate$l(input);
|
|
577
577
|
if (validateError !== null) {
|
|
578
578
|
throw validateError;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
const key = path.fullPath;
|
|
582
|
-
const ttlToUse = TTL$
|
|
583
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
582
|
+
const ttlToUse = TTL$6;
|
|
583
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "docgen", VERSION$j, RepresentationType$c, equals$j);
|
|
584
584
|
return createLink(key);
|
|
585
585
|
};
|
|
586
|
-
function getTypeCacheKeys$
|
|
586
|
+
function getTypeCacheKeys$c(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$
|
|
591
|
+
representationName: RepresentationType$c,
|
|
592
592
|
mergeable: false
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
function select$
|
|
597
|
-
return select$
|
|
596
|
+
function select$w(luvio, params) {
|
|
597
|
+
return select$x();
|
|
598
598
|
}
|
|
599
|
-
function keyBuilder$
|
|
599
|
+
function keyBuilder$j(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$
|
|
603
|
-
getTypeCacheKeys$
|
|
602
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
603
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
604
604
|
}
|
|
605
|
-
function ingestSuccess$
|
|
605
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
606
606
|
const { body } = response;
|
|
607
|
-
const key = keyBuilder$
|
|
608
|
-
luvio.storeIngest(key, ingest$
|
|
607
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
608
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
609
609
|
const snapshot = luvio.storeLookup({
|
|
610
610
|
recordId: key,
|
|
611
|
-
node: select$
|
|
611
|
+
node: select$w(),
|
|
612
612
|
variables: {},
|
|
613
613
|
}, snapshotRefresh);
|
|
614
614
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -620,18 +620,18 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
620
620
|
return snapshot;
|
|
621
621
|
}
|
|
622
622
|
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
623
|
-
const key = keyBuilder$
|
|
623
|
+
const key = keyBuilder$j(luvio, params);
|
|
624
624
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
625
625
|
const storeMetadataParams = {
|
|
626
|
-
ttl: TTL$
|
|
626
|
+
ttl: TTL$6,
|
|
627
627
|
namespace: keyPrefix,
|
|
628
|
-
version: VERSION$
|
|
629
|
-
representationName: RepresentationType$
|
|
628
|
+
version: VERSION$j,
|
|
629
|
+
representationName: RepresentationType$c
|
|
630
630
|
};
|
|
631
631
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
632
632
|
return errorSnapshot;
|
|
633
633
|
}
|
|
634
|
-
function createResourceRequest$
|
|
634
|
+
function createResourceRequest$d(config) {
|
|
635
635
|
const headers = {};
|
|
636
636
|
return {
|
|
637
637
|
baseUri: '/services/data/v61.0',
|
|
@@ -645,7 +645,7 @@ function createResourceRequest$c(config) {
|
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
-
const adapterName$
|
|
648
|
+
const adapterName$d = '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$
|
|
658
|
-
const createResourceParams$
|
|
659
|
-
function keyBuilder$
|
|
660
|
-
const resourceParams = createResourceParams$
|
|
661
|
-
return keyBuilder$
|
|
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);
|
|
662
662
|
}
|
|
663
|
-
function typeCheckConfig$
|
|
663
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
664
664
|
const config = {};
|
|
665
|
-
typeCheckConfig$
|
|
665
|
+
typeCheckConfig$f(untrustedConfig, config, getDocumentClauseSets_ConfigPropertyMetadata);
|
|
666
666
|
return config;
|
|
667
667
|
}
|
|
668
|
-
function validateAdapterConfig$
|
|
668
|
+
function validateAdapterConfig$d(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$
|
|
675
|
+
const config = typeCheckConfig$d(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$
|
|
683
|
-
return select$
|
|
682
|
+
createResourceParams$d(config);
|
|
683
|
+
return select$w();
|
|
684
684
|
}
|
|
685
685
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
686
|
-
const snapshot = ingestSuccess$
|
|
686
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
687
687
|
config,
|
|
688
|
-
resolve: () => buildNetworkSnapshot$
|
|
688
|
+
resolve: () => buildNetworkSnapshot$d(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$
|
|
695
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
696
696
|
});
|
|
697
697
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
698
698
|
}
|
|
699
|
-
function buildNetworkSnapshot$
|
|
700
|
-
const resourceParams = createResourceParams$
|
|
701
|
-
const request = createResourceRequest$
|
|
699
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
700
|
+
const resourceParams = createResourceParams$d(config);
|
|
701
|
+
const request = createResourceRequest$d(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$
|
|
706
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
707
707
|
return cache;
|
|
708
708
|
});
|
|
709
709
|
}, (response) => {
|
|
@@ -711,23 +711,23 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
714
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
714
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
715
715
|
}
|
|
716
716
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
717
717
|
const { luvio, config } = context;
|
|
718
718
|
const selector = {
|
|
719
|
-
recordId: keyBuilder$
|
|
719
|
+
recordId: keyBuilder$i(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$
|
|
725
|
+
resolve: () => buildNetworkSnapshot$d(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$
|
|
730
|
+
const config = validateAdapterConfig$d(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$
|
|
740
|
-
const VERSION$
|
|
741
|
-
function validate$
|
|
739
|
+
const TTL$5 = 100;
|
|
740
|
+
const VERSION$i = "a3afe2a67715551a49f0d59eafb639aa";
|
|
741
|
+
function validate$k(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$j(obj, path = 'DocumentClauseFieldsResponse') {
|
|
|
763
763
|
})();
|
|
764
764
|
return v_error === undefined ? null : v_error;
|
|
765
765
|
}
|
|
766
|
-
const RepresentationType$
|
|
767
|
-
function normalize$
|
|
766
|
+
const RepresentationType$b = 'DocumentClauseFieldsResponse';
|
|
767
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
768
768
|
return input;
|
|
769
769
|
}
|
|
770
|
-
const select$
|
|
770
|
+
const select$v = function DocumentClauseFieldsResponseSelect() {
|
|
771
771
|
return {
|
|
772
772
|
kind: 'Fragment',
|
|
773
|
-
version: VERSION$
|
|
773
|
+
version: VERSION$i,
|
|
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$
|
|
789
|
+
function equals$i(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$h(existing, incoming) {
|
|
|
804
804
|
}
|
|
805
805
|
return true;
|
|
806
806
|
}
|
|
807
|
-
const ingest$
|
|
807
|
+
const ingest$b = function DocumentClauseFieldsResponseIngest(input, path, luvio, store, timestamp) {
|
|
808
808
|
if (process.env.NODE_ENV !== 'production') {
|
|
809
|
-
const validateError = validate$
|
|
809
|
+
const validateError = validate$k(input);
|
|
810
810
|
if (validateError !== null) {
|
|
811
811
|
throw validateError;
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
const key = path.fullPath;
|
|
815
|
-
const ttlToUse = TTL$
|
|
816
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
815
|
+
const ttlToUse = TTL$5;
|
|
816
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "docgen", VERSION$i, RepresentationType$b, equals$i);
|
|
817
817
|
return createLink(key);
|
|
818
818
|
};
|
|
819
|
-
function getTypeCacheKeys$
|
|
819
|
+
function getTypeCacheKeys$b(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$
|
|
824
|
+
representationName: RepresentationType$b,
|
|
825
825
|
mergeable: false
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
828
|
|
|
829
|
-
function select$
|
|
830
|
-
return select$
|
|
829
|
+
function select$u(luvio, params) {
|
|
830
|
+
return select$v();
|
|
831
831
|
}
|
|
832
|
-
function keyBuilder$
|
|
832
|
+
function keyBuilder$h(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$
|
|
836
|
-
getTypeCacheKeys$
|
|
835
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
836
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
|
|
837
837
|
}
|
|
838
|
-
function ingestSuccess$
|
|
838
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
839
839
|
const { body } = response;
|
|
840
|
-
const key = keyBuilder$
|
|
841
|
-
luvio.storeIngest(key, ingest$
|
|
840
|
+
const key = keyBuilder$h(luvio, resourceParams);
|
|
841
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
842
842
|
const snapshot = luvio.storeLookup({
|
|
843
843
|
recordId: key,
|
|
844
|
-
node: select$
|
|
844
|
+
node: select$u(),
|
|
845
845
|
variables: {},
|
|
846
846
|
}, snapshotRefresh);
|
|
847
847
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -853,18 +853,18 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
853
853
|
return snapshot;
|
|
854
854
|
}
|
|
855
855
|
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
856
|
-
const key = keyBuilder$
|
|
856
|
+
const key = keyBuilder$h(luvio, params);
|
|
857
857
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
858
858
|
const storeMetadataParams = {
|
|
859
|
-
ttl: TTL$
|
|
859
|
+
ttl: TTL$5,
|
|
860
860
|
namespace: keyPrefix,
|
|
861
|
-
version: VERSION$
|
|
862
|
-
representationName: RepresentationType$
|
|
861
|
+
version: VERSION$i,
|
|
862
|
+
representationName: RepresentationType$b
|
|
863
863
|
};
|
|
864
864
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
865
865
|
return errorSnapshot;
|
|
866
866
|
}
|
|
867
|
-
function createResourceRequest$
|
|
867
|
+
function createResourceRequest$c(config) {
|
|
868
868
|
const headers = {};
|
|
869
869
|
return {
|
|
870
870
|
baseUri: '/services/data/v61.0',
|
|
@@ -878,7 +878,7 @@ function createResourceRequest$b(config) {
|
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
-
const adapterName$
|
|
881
|
+
const adapterName$c = '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$
|
|
891
|
-
const createResourceParams$
|
|
892
|
-
function keyBuilder$
|
|
893
|
-
const resourceParams = createResourceParams$
|
|
894
|
-
return keyBuilder$
|
|
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);
|
|
895
895
|
}
|
|
896
|
-
function typeCheckConfig$
|
|
896
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
897
897
|
const config = {};
|
|
898
|
-
typeCheckConfig$
|
|
898
|
+
typeCheckConfig$f(untrustedConfig, config, getDocumentClauseFields_ConfigPropertyMetadata);
|
|
899
899
|
return config;
|
|
900
900
|
}
|
|
901
|
-
function validateAdapterConfig$
|
|
901
|
+
function validateAdapterConfig$c(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$
|
|
908
|
+
const config = typeCheckConfig$c(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$
|
|
916
|
-
return select$
|
|
915
|
+
createResourceParams$c(config);
|
|
916
|
+
return select$u();
|
|
917
917
|
}
|
|
918
918
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
919
|
-
const snapshot = ingestSuccess$
|
|
919
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
920
920
|
config,
|
|
921
|
-
resolve: () => buildNetworkSnapshot$
|
|
921
|
+
resolve: () => buildNetworkSnapshot$c(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$
|
|
928
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
929
929
|
});
|
|
930
930
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
931
931
|
}
|
|
932
|
-
function buildNetworkSnapshot$
|
|
933
|
-
const resourceParams = createResourceParams$
|
|
934
|
-
const request = createResourceRequest$
|
|
932
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
933
|
+
const resourceParams = createResourceParams$c(config);
|
|
934
|
+
const request = createResourceRequest$c(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$
|
|
939
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
940
940
|
return cache;
|
|
941
941
|
});
|
|
942
942
|
}, (response) => {
|
|
@@ -944,23 +944,23 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
944
944
|
});
|
|
945
945
|
}
|
|
946
946
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
947
|
-
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
947
|
+
return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
948
948
|
}
|
|
949
949
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
950
950
|
const { luvio, config } = context;
|
|
951
951
|
const selector = {
|
|
952
|
-
recordId: keyBuilder$
|
|
952
|
+
recordId: keyBuilder$g(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$
|
|
958
|
+
resolve: () => buildNetworkSnapshot$c(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$
|
|
963
|
+
const config = validateAdapterConfig$c(untrustedConfig, getDocumentClauseFields_ConfigPropertyNames);
|
|
964
964
|
// Invalid or incomplete config
|
|
965
965
|
if (config === null) {
|
|
966
966
|
return null;
|
|
@@ -969,6 +969,188 @@ const getDocumentClauseFieldsAdapterFactory = (luvio) => function docgen__getDoc
|
|
|
969
969
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
970
970
|
};
|
|
971
971
|
|
|
972
|
+
const TTL$4 = 60000;
|
|
973
|
+
const VERSION$h = "af0246ac09fd1b3b2a939d90b8caa15d";
|
|
974
|
+
function validate$j(obj, path = 'DocumentClausePromotionResponse') {
|
|
975
|
+
const v_error = (() => {
|
|
976
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
977
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
978
|
+
}
|
|
979
|
+
const obj_isSuccess = obj.isSuccess;
|
|
980
|
+
const path_isSuccess = path + '.isSuccess';
|
|
981
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
982
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
983
|
+
}
|
|
984
|
+
const obj_message = obj.message;
|
|
985
|
+
const path_message = path + '.message';
|
|
986
|
+
if (typeof obj_message !== 'string') {
|
|
987
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
988
|
+
}
|
|
989
|
+
})();
|
|
990
|
+
return v_error === undefined ? null : v_error;
|
|
991
|
+
}
|
|
992
|
+
const RepresentationType$a = 'DocumentClausePromotionResponse';
|
|
993
|
+
function keyBuilder$f(luvio, config) {
|
|
994
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.isSuccess;
|
|
995
|
+
}
|
|
996
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
997
|
+
const keyParams = {
|
|
998
|
+
isSuccess: object.isSuccess
|
|
999
|
+
};
|
|
1000
|
+
return keyBuilder$f(luvio, keyParams);
|
|
1001
|
+
}
|
|
1002
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
1003
|
+
return input;
|
|
1004
|
+
}
|
|
1005
|
+
const select$t = function DocumentClausePromotionResponseSelect() {
|
|
1006
|
+
return {
|
|
1007
|
+
kind: 'Fragment',
|
|
1008
|
+
version: VERSION$h,
|
|
1009
|
+
private: [],
|
|
1010
|
+
selections: [
|
|
1011
|
+
{
|
|
1012
|
+
name: 'isSuccess',
|
|
1013
|
+
kind: 'Scalar'
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
name: 'message',
|
|
1017
|
+
kind: 'Scalar'
|
|
1018
|
+
}
|
|
1019
|
+
]
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
function equals$h(existing, incoming) {
|
|
1023
|
+
const existing_isSuccess = existing.isSuccess;
|
|
1024
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
1025
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
1026
|
+
return false;
|
|
1027
|
+
}
|
|
1028
|
+
const existing_message = existing.message;
|
|
1029
|
+
const incoming_message = incoming.message;
|
|
1030
|
+
if (!(existing_message === incoming_message)) {
|
|
1031
|
+
return false;
|
|
1032
|
+
}
|
|
1033
|
+
return true;
|
|
1034
|
+
}
|
|
1035
|
+
const ingest$a = function DocumentClausePromotionResponseIngest(input, path, luvio, store, timestamp) {
|
|
1036
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1037
|
+
const validateError = validate$j(input);
|
|
1038
|
+
if (validateError !== null) {
|
|
1039
|
+
throw validateError;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
1043
|
+
const ttlToUse = TTL$4;
|
|
1044
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "docgen", VERSION$h, RepresentationType$a, equals$h);
|
|
1045
|
+
return createLink(key);
|
|
1046
|
+
};
|
|
1047
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
1048
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1049
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
1050
|
+
rootKeySet.set(rootKey, {
|
|
1051
|
+
namespace: keyPrefix,
|
|
1052
|
+
representationName: RepresentationType$a,
|
|
1053
|
+
mergeable: false
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
function select$s(luvio, params) {
|
|
1058
|
+
return select$t();
|
|
1059
|
+
}
|
|
1060
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
1061
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1062
|
+
}
|
|
1063
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
1064
|
+
const { body } = response;
|
|
1065
|
+
const key = keyBuilderFromType$5(luvio, body);
|
|
1066
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1067
|
+
const snapshot = luvio.storeLookup({
|
|
1068
|
+
recordId: key,
|
|
1069
|
+
node: select$s(),
|
|
1070
|
+
variables: {},
|
|
1071
|
+
});
|
|
1072
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1073
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1074
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
deepFreeze(snapshot.data);
|
|
1078
|
+
return snapshot;
|
|
1079
|
+
}
|
|
1080
|
+
function createResourceRequest$b(config) {
|
|
1081
|
+
const headers = {};
|
|
1082
|
+
return {
|
|
1083
|
+
baseUri: '/services/data/v61.0',
|
|
1084
|
+
basePath: '/connect/clause-library/promote-clause',
|
|
1085
|
+
method: 'post',
|
|
1086
|
+
body: config.body,
|
|
1087
|
+
urlParams: {},
|
|
1088
|
+
queryParams: {},
|
|
1089
|
+
headers,
|
|
1090
|
+
priority: 'normal',
|
|
1091
|
+
};
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
const adapterName$b = 'postDocumentClausePromotion';
|
|
1095
|
+
const postDocumentClausePromotion_ConfigPropertyMetadata = [
|
|
1096
|
+
generateParamConfigMetadata('clauseContent', true, 2 /* Body */, 0 /* String */),
|
|
1097
|
+
generateParamConfigMetadata('clauseDescription', true, 2 /* Body */, 0 /* String */),
|
|
1098
|
+
generateParamConfigMetadata('clauseName', true, 2 /* Body */, 0 /* String */),
|
|
1099
|
+
generateParamConfigMetadata('clauseSetId', true, 2 /* Body */, 0 /* String */),
|
|
1100
|
+
generateParamConfigMetadata('isAlternateClause', true, 2 /* Body */, 1 /* Boolean */),
|
|
1101
|
+
generateParamConfigMetadata('language', true, 2 /* Body */, 0 /* String */),
|
|
1102
|
+
generateParamConfigMetadata('nonStandardClauseRecordId', true, 2 /* Body */, 0 /* String */),
|
|
1103
|
+
generateParamConfigMetadata('notifyOnCompletion', true, 2 /* Body */, 1 /* Boolean */),
|
|
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) {
|
|
1108
|
+
const config = {};
|
|
1109
|
+
typeCheckConfig$f(untrustedConfig, config, postDocumentClausePromotion_ConfigPropertyMetadata);
|
|
1110
|
+
return config;
|
|
1111
|
+
}
|
|
1112
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
1113
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1114
|
+
return null;
|
|
1115
|
+
}
|
|
1116
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1117
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1118
|
+
}
|
|
1119
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
1120
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1121
|
+
return null;
|
|
1122
|
+
}
|
|
1123
|
+
return config;
|
|
1124
|
+
}
|
|
1125
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
1126
|
+
const resourceParams = createResourceParams$b(config);
|
|
1127
|
+
const request = createResourceRequest$b(resourceParams);
|
|
1128
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1129
|
+
.then((response) => {
|
|
1130
|
+
return luvio.handleSuccessResponse(() => {
|
|
1131
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
1132
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1133
|
+
}, () => {
|
|
1134
|
+
const cache = new StoreKeyMap();
|
|
1135
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
1136
|
+
return cache;
|
|
1137
|
+
});
|
|
1138
|
+
}, (response) => {
|
|
1139
|
+
deepFreeze(response);
|
|
1140
|
+
throw response;
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
const postDocumentClausePromotionAdapterFactory = (luvio) => {
|
|
1144
|
+
return function postDocumentClausePromotion(untrustedConfig) {
|
|
1145
|
+
const config = validateAdapterConfig$b(untrustedConfig, postDocumentClausePromotion_ConfigPropertyNames);
|
|
1146
|
+
// Invalid or incomplete config
|
|
1147
|
+
if (config === null) {
|
|
1148
|
+
throw new Error('Invalid config for "postDocumentClausePromotion"');
|
|
1149
|
+
}
|
|
1150
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
|
|
972
1154
|
const VERSION$g = "c8652b5c3ad8c532087704340d3cad55";
|
|
973
1155
|
function validate$i(obj, path = 'GenericOutputRepresentation') {
|
|
974
1156
|
const v_error = (() => {
|
|
@@ -1107,10 +1289,10 @@ const performDocGenerationBatchProcessAction_ConfigPropertyMetadata = [
|
|
|
1107
1289
|
generateParamConfigMetadata('docGenerationBatchProcessId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1108
1290
|
];
|
|
1109
1291
|
const performDocGenerationBatchProcessAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1110
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
1292
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1111
1293
|
function typeCheckConfig$a(untrustedConfig) {
|
|
1112
1294
|
const config = {};
|
|
1113
|
-
typeCheckConfig$
|
|
1295
|
+
typeCheckConfig$f(untrustedConfig, config, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1114
1296
|
return config;
|
|
1115
1297
|
}
|
|
1116
1298
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -1614,14 +1796,14 @@ const getDocumentTemplates_ConfigPropertyMetadata = [
|
|
|
1614
1796
|
generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1615
1797
|
];
|
|
1616
1798
|
const getDocumentTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getDocumentTemplates_ConfigPropertyMetadata);
|
|
1617
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
1799
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(getDocumentTemplates_ConfigPropertyMetadata);
|
|
1618
1800
|
function keyBuilder$c(luvio, config) {
|
|
1619
1801
|
const resourceParams = createResourceParams$9(config);
|
|
1620
1802
|
return keyBuilder$d(luvio, resourceParams);
|
|
1621
1803
|
}
|
|
1622
1804
|
function typeCheckConfig$9(untrustedConfig) {
|
|
1623
1805
|
const config = {};
|
|
1624
|
-
typeCheckConfig$
|
|
1806
|
+
typeCheckConfig$f(untrustedConfig, config, getDocumentTemplates_ConfigPropertyMetadata);
|
|
1625
1807
|
return config;
|
|
1626
1808
|
}
|
|
1627
1809
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -1817,10 +1999,10 @@ const updateDocumentTemplate_ConfigPropertyMetadata = [
|
|
|
1817
1999
|
generateParamConfigMetadata('shouldDisplayUnmappedToken', false, 2 /* Body */, 1 /* Boolean */),
|
|
1818
2000
|
];
|
|
1819
2001
|
const updateDocumentTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateDocumentTemplate_ConfigPropertyMetadata);
|
|
1820
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
2002
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(updateDocumentTemplate_ConfigPropertyMetadata);
|
|
1821
2003
|
function typeCheckConfig$8(untrustedConfig) {
|
|
1822
2004
|
const config = {};
|
|
1823
|
-
typeCheckConfig$
|
|
2005
|
+
typeCheckConfig$f(untrustedConfig, config, updateDocumentTemplate_ConfigPropertyMetadata);
|
|
1824
2006
|
return config;
|
|
1825
2007
|
}
|
|
1826
2008
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -1922,10 +2104,10 @@ const createDocumentTemplate_ConfigPropertyMetadata = [
|
|
|
1922
2104
|
generateParamConfigMetadata('xmlRelationshipMetadata', false, 2 /* Body */, 0 /* String */),
|
|
1923
2105
|
];
|
|
1924
2106
|
const createDocumentTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createDocumentTemplate_ConfigPropertyMetadata);
|
|
1925
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
2107
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(createDocumentTemplate_ConfigPropertyMetadata);
|
|
1926
2108
|
function typeCheckConfig$7(untrustedConfig) {
|
|
1927
2109
|
const config = {};
|
|
1928
|
-
typeCheckConfig$
|
|
2110
|
+
typeCheckConfig$f(untrustedConfig, config, createDocumentTemplate_ConfigPropertyMetadata);
|
|
1929
2111
|
return config;
|
|
1930
2112
|
}
|
|
1931
2113
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -2281,14 +2463,14 @@ const getDocuments_ConfigPropertyMetadata = [
|
|
|
2281
2463
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2282
2464
|
];
|
|
2283
2465
|
const getDocuments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDocuments_ConfigPropertyMetadata);
|
|
2284
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
2466
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getDocuments_ConfigPropertyMetadata);
|
|
2285
2467
|
function keyBuilder$9(luvio, config) {
|
|
2286
2468
|
const resourceParams = createResourceParams$6(config);
|
|
2287
2469
|
return keyBuilder$a(luvio, resourceParams);
|
|
2288
2470
|
}
|
|
2289
2471
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2290
2472
|
const config = {};
|
|
2291
|
-
typeCheckConfig$
|
|
2473
|
+
typeCheckConfig$f(untrustedConfig, config, getDocuments_ConfigPropertyMetadata);
|
|
2292
2474
|
return config;
|
|
2293
2475
|
}
|
|
2294
2476
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -2746,14 +2928,14 @@ const getESignNotificationSettings_ConfigPropertyMetadata = [
|
|
|
2746
2928
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2747
2929
|
];
|
|
2748
2930
|
const getESignNotificationSettings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getESignNotificationSettings_ConfigPropertyMetadata);
|
|
2749
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
2931
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(getESignNotificationSettings_ConfigPropertyMetadata);
|
|
2750
2932
|
function keyBuilder$7(luvio, config) {
|
|
2751
2933
|
const resourceParams = createResourceParams$5(config);
|
|
2752
2934
|
return keyBuilder$8(luvio, resourceParams);
|
|
2753
2935
|
}
|
|
2754
2936
|
function typeCheckConfig$5(untrustedConfig) {
|
|
2755
2937
|
const config = {};
|
|
2756
|
-
typeCheckConfig$
|
|
2938
|
+
typeCheckConfig$f(untrustedConfig, config, getESignNotificationSettings_ConfigPropertyMetadata);
|
|
2757
2939
|
return config;
|
|
2758
2940
|
}
|
|
2759
2941
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -3113,14 +3295,14 @@ const getRecipients_ConfigPropertyMetadata = [
|
|
|
3113
3295
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3114
3296
|
];
|
|
3115
3297
|
const getRecipients_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecipients_ConfigPropertyMetadata);
|
|
3116
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
3298
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(getRecipients_ConfigPropertyMetadata);
|
|
3117
3299
|
function keyBuilder$5(luvio, config) {
|
|
3118
3300
|
const resourceParams = createResourceParams$4(config);
|
|
3119
3301
|
return keyBuilder$6(luvio, resourceParams);
|
|
3120
3302
|
}
|
|
3121
3303
|
function typeCheckConfig$4(untrustedConfig) {
|
|
3122
3304
|
const config = {};
|
|
3123
|
-
typeCheckConfig$
|
|
3305
|
+
typeCheckConfig$f(untrustedConfig, config, getRecipients_ConfigPropertyMetadata);
|
|
3124
3306
|
return config;
|
|
3125
3307
|
}
|
|
3126
3308
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -3380,10 +3562,10 @@ const createDocumentEnvelopeForEsign_ConfigPropertyMetadata = [
|
|
|
3380
3562
|
generateParamConfigMetadata('envelope', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3381
3563
|
];
|
|
3382
3564
|
const createDocumentEnvelopeForEsign_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
3383
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
3565
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
3384
3566
|
function typeCheckConfig$3(untrustedConfig) {
|
|
3385
3567
|
const config = {};
|
|
3386
|
-
typeCheckConfig$
|
|
3568
|
+
typeCheckConfig$f(untrustedConfig, config, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
3387
3569
|
const untrustedConfig_envelope = untrustedConfig.envelope;
|
|
3388
3570
|
const referenceEnvelopeSendRequestValidationError = validate$6(untrustedConfig_envelope);
|
|
3389
3571
|
if (referenceEnvelopeSendRequestValidationError === null) {
|
|
@@ -3719,10 +3901,10 @@ const updateEnvelope_ConfigPropertyMetadata = [
|
|
|
3719
3901
|
generateParamConfigMetadata('sourceObjectId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3720
3902
|
];
|
|
3721
3903
|
const updateEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateEnvelope_ConfigPropertyMetadata);
|
|
3722
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
3904
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(updateEnvelope_ConfigPropertyMetadata);
|
|
3723
3905
|
function typeCheckConfig$2(untrustedConfig) {
|
|
3724
3906
|
const config = {};
|
|
3725
|
-
typeCheckConfig$
|
|
3907
|
+
typeCheckConfig$f(untrustedConfig, config, updateEnvelope_ConfigPropertyMetadata);
|
|
3726
3908
|
return config;
|
|
3727
3909
|
}
|
|
3728
3910
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -3986,10 +4168,10 @@ const updateVoidedEnvelope_ConfigPropertyMetadata = [
|
|
|
3986
4168
|
generateParamConfigMetadata('voidParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3987
4169
|
];
|
|
3988
4170
|
const updateVoidedEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
3989
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
4171
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
3990
4172
|
function typeCheckConfig$1(untrustedConfig) {
|
|
3991
4173
|
const config = {};
|
|
3992
|
-
typeCheckConfig$
|
|
4174
|
+
typeCheckConfig$f(untrustedConfig, config, updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
3993
4175
|
const untrustedConfig_voidParam = untrustedConfig.voidParam;
|
|
3994
4176
|
const referenceEnvelopeVoidRequestValidationError = validate$2(untrustedConfig_voidParam);
|
|
3995
4177
|
if (referenceEnvelopeVoidRequestValidationError === null) {
|
|
@@ -4180,7 +4362,7 @@ function createResourceRequest(config) {
|
|
|
4180
4362
|
const adapterName = 'getSignerRoles';
|
|
4181
4363
|
const getSignerRoles_ConfigPropertyMetadata = [];
|
|
4182
4364
|
const getSignerRoles_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSignerRoles_ConfigPropertyMetadata);
|
|
4183
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4365
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$f(getSignerRoles_ConfigPropertyMetadata);
|
|
4184
4366
|
function keyBuilder(luvio, config) {
|
|
4185
4367
|
createResourceParams(config);
|
|
4186
4368
|
return keyBuilder$1();
|
|
@@ -4260,4 +4442,4 @@ const getSignerRolesAdapterFactory = (luvio) => function docgen__getSignerRoles(
|
|
|
4260
4442
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
4261
4443
|
};
|
|
4262
4444
|
|
|
4263
|
-
export { createDocumentEnvelopeForEsignAdapterFactory, createDocumentTemplateAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentTemplatesAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, updateDocumentTemplateAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };
|
|
4445
|
+
export { createDocumentEnvelopeForEsignAdapterFactory, createDocumentTemplateAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentTemplatesAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, postDocumentClausePromotionAdapterFactory, updateDocumentTemplateAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };
|