@salesforce/lds-adapters-industries-docgen 1.366.0 → 1.367.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 +558 -231
- package/dist/es/es2018/types/src/generated/adapters/getContentLinkDataSyncInput.d.ts +17 -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/postConnectContentLinkDataSync.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/types/ContentLinkDataSyncDetailRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/ContentLinkDataSyncInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ContentLinkDataSyncOutputRepresentation.d.ts +48 -0
- package/package.json +4 -4
- package/sfdc/index.js +489 -159
- package/src/raml/api.raml +87 -16
- package/src/raml/luvio.raml +13 -4
|
@@ -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$k, StoreKeyMap, createResourceParams as createResourceParams$k } 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$u = "c0cdffc7d0ce780dd3dbd6844cb94df8";
|
|
116
|
+
function validate$y(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$w(obj, path = 'ClauseCategoryResponse') {
|
|
|
138
138
|
})();
|
|
139
139
|
return v_error === undefined ? null : v_error;
|
|
140
140
|
}
|
|
141
|
-
const select$
|
|
141
|
+
const select$O = function ClauseCategoryResponseSelect() {
|
|
142
142
|
return {
|
|
143
143
|
kind: 'Fragment',
|
|
144
|
-
version: VERSION$
|
|
144
|
+
version: VERSION$u,
|
|
145
145
|
private: [],
|
|
146
146
|
selections: [
|
|
147
147
|
{
|
|
@@ -160,7 +160,7 @@ const select$L = function ClauseCategoryResponseSelect() {
|
|
|
160
160
|
]
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
|
-
function equals$
|
|
163
|
+
function equals$u(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$s(existing, incoming) {
|
|
|
187
187
|
return true;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
const TTL$
|
|
191
|
-
const VERSION$
|
|
192
|
-
function validate$
|
|
190
|
+
const TTL$d = 30000;
|
|
191
|
+
const VERSION$t = "6f04ab6a782443d237ece40b87b8d756";
|
|
192
|
+
function validate$x(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$v(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$y(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$v(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$i = 'ClauseCategoriesResponse';
|
|
216
|
+
function normalize$i(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$N = function ClauseCategoriesResponseSelect() {
|
|
220
|
+
const { selections: ClauseCategoryResponse__selections, opaque: ClauseCategoryResponse__opaque, } = select$O();
|
|
221
221
|
return {
|
|
222
222
|
kind: 'Fragment',
|
|
223
|
-
version: VERSION$
|
|
223
|
+
version: VERSION$t,
|
|
224
224
|
private: [],
|
|
225
225
|
selections: [
|
|
226
226
|
{
|
|
@@ -232,11 +232,11 @@ const select$K = function ClauseCategoriesResponseSelect() {
|
|
|
232
232
|
]
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
-
function equals$
|
|
235
|
+
function equals$t(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$u(existing_clauseCategories_item, incoming_clauseCategories_item))) {
|
|
240
240
|
return false;
|
|
241
241
|
}
|
|
242
242
|
});
|
|
@@ -245,44 +245,44 @@ function equals$r(existing, incoming) {
|
|
|
245
245
|
}
|
|
246
246
|
return true;
|
|
247
247
|
}
|
|
248
|
-
const ingest$
|
|
248
|
+
const ingest$i = function ClauseCategoriesResponseIngest(input, path, luvio, store, timestamp) {
|
|
249
249
|
if (process.env.NODE_ENV !== 'production') {
|
|
250
|
-
const validateError = validate$
|
|
250
|
+
const validateError = validate$x(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$d;
|
|
257
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "docgen", VERSION$t, RepresentationType$i, equals$t);
|
|
258
258
|
return createLink(key);
|
|
259
259
|
};
|
|
260
|
-
function getTypeCacheKeys$
|
|
260
|
+
function getTypeCacheKeys$i(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$i,
|
|
266
266
|
mergeable: false
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
function select$
|
|
271
|
-
return select$
|
|
270
|
+
function select$M(luvio, params) {
|
|
271
|
+
return select$N();
|
|
272
272
|
}
|
|
273
|
-
function keyBuilder$
|
|
273
|
+
function keyBuilder$q(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$j(storeKeyMap, luvio, resourceParams, response) {
|
|
277
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$q(luvio, resourceParams));
|
|
278
278
|
}
|
|
279
|
-
function ingestSuccess$
|
|
279
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
280
280
|
const { body } = response;
|
|
281
|
-
const key = keyBuilder$
|
|
282
|
-
luvio.storeIngest(key, ingest$
|
|
281
|
+
const key = keyBuilder$q(luvio, resourceParams);
|
|
282
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
283
283
|
const snapshot = luvio.storeLookup({
|
|
284
284
|
recordId: key,
|
|
285
|
-
node: select$
|
|
285
|
+
node: select$M(),
|
|
286
286
|
variables: {},
|
|
287
287
|
}, snapshotRefresh);
|
|
288
288
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -294,18 +294,18 @@ function ingestSuccess$i(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$q(luvio, params);
|
|
298
298
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
299
299
|
const storeMetadataParams = {
|
|
300
|
-
ttl: TTL$
|
|
300
|
+
ttl: TTL$d,
|
|
301
301
|
namespace: keyPrefix,
|
|
302
|
-
version: VERSION$
|
|
303
|
-
representationName: RepresentationType$
|
|
302
|
+
version: VERSION$t,
|
|
303
|
+
representationName: RepresentationType$i
|
|
304
304
|
};
|
|
305
305
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
306
306
|
return errorSnapshot;
|
|
307
307
|
}
|
|
308
|
-
function createResourceRequest$
|
|
308
|
+
function createResourceRequest$j(config) {
|
|
309
309
|
const headers = {};
|
|
310
310
|
return {
|
|
311
311
|
baseUri: '/services/data/v65.0',
|
|
@@ -319,62 +319,62 @@ function createResourceRequest$i(config) {
|
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
const adapterName$
|
|
322
|
+
const adapterName$j = '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$j, getDocumentClauseSetCategories_ConfigPropertyMetadata);
|
|
329
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$k(getDocumentClauseSetCategories_ConfigPropertyMetadata);
|
|
330
|
+
function keyBuilder$p(luvio, config) {
|
|
331
|
+
const resourceParams = createResourceParams$j(config);
|
|
332
|
+
return keyBuilder$q(luvio, resourceParams);
|
|
333
333
|
}
|
|
334
|
-
function typeCheckConfig$
|
|
334
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
335
335
|
const config = {};
|
|
336
|
-
typeCheckConfig$
|
|
336
|
+
typeCheckConfig$k(untrustedConfig, config, getDocumentClauseSetCategories_ConfigPropertyMetadata);
|
|
337
337
|
return config;
|
|
338
338
|
}
|
|
339
|
-
function validateAdapterConfig$
|
|
339
|
+
function validateAdapterConfig$j(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$j(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$j(config);
|
|
354
|
+
return select$M();
|
|
355
355
|
}
|
|
356
356
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
357
|
-
const snapshot = ingestSuccess$
|
|
357
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
358
358
|
config,
|
|
359
|
-
resolve: () => buildNetworkSnapshot$
|
|
359
|
+
resolve: () => buildNetworkSnapshot$j(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$j(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$j(luvio, config, options) {
|
|
371
|
+
const resourceParams = createResourceParams$j(config);
|
|
372
|
+
const request = createResourceRequest$j(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$j(cache, luvio, resourceParams, response.body);
|
|
378
378
|
return cache;
|
|
379
379
|
});
|
|
380
380
|
}, (response) => {
|
|
@@ -382,23 +382,23 @@ function buildNetworkSnapshot$i(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$j, 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$p(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$j(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$j(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$s = "29a9e61a0952cff8f7e98cc7d8857c62";
|
|
411
|
+
function validate$w(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$u(obj, path = 'DocumentClauseSetResponse') {
|
|
|
446
446
|
})();
|
|
447
447
|
return v_error === undefined ? null : v_error;
|
|
448
448
|
}
|
|
449
|
-
const select$
|
|
449
|
+
const select$L = function DocumentClauseSetResponseSelect() {
|
|
450
450
|
return {
|
|
451
451
|
kind: 'Fragment',
|
|
452
|
-
version: VERSION$
|
|
452
|
+
version: VERSION$s,
|
|
453
453
|
private: [],
|
|
454
454
|
selections: [
|
|
455
455
|
{
|
|
@@ -479,7 +479,7 @@ const select$I = function DocumentClauseSetResponseSelect() {
|
|
|
479
479
|
]
|
|
480
480
|
};
|
|
481
481
|
};
|
|
482
|
-
function equals$
|
|
482
|
+
function equals$s(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$q(existing, incoming) {
|
|
|
513
513
|
return true;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
const TTL$
|
|
517
|
-
const VERSION$
|
|
518
|
-
function validate$
|
|
516
|
+
const TTL$c = 100;
|
|
517
|
+
const VERSION$r = "c6ad1fbdbd4d8cd718a8a62c63216687";
|
|
518
|
+
function validate$v(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$t(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$w(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$t(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$h = 'DocumentClauseSetListResponse';
|
|
542
|
+
function normalize$h(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$K = function DocumentClauseSetListResponseSelect() {
|
|
546
|
+
const { selections: DocumentClauseSetResponse__selections, opaque: DocumentClauseSetResponse__opaque, } = select$L();
|
|
547
547
|
return {
|
|
548
548
|
kind: 'Fragment',
|
|
549
|
-
version: VERSION$
|
|
549
|
+
version: VERSION$r,
|
|
550
550
|
private: [],
|
|
551
551
|
selections: [
|
|
552
552
|
{
|
|
@@ -558,11 +558,11 @@ const select$H = function DocumentClauseSetListResponseSelect() {
|
|
|
558
558
|
]
|
|
559
559
|
};
|
|
560
560
|
};
|
|
561
|
-
function equals$
|
|
561
|
+
function equals$r(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$s(existing_documentClauseSets_item, incoming_documentClauseSets_item))) {
|
|
566
566
|
return false;
|
|
567
567
|
}
|
|
568
568
|
});
|
|
@@ -571,44 +571,44 @@ function equals$p(existing, incoming) {
|
|
|
571
571
|
}
|
|
572
572
|
return true;
|
|
573
573
|
}
|
|
574
|
-
const ingest$
|
|
574
|
+
const ingest$h = function DocumentClauseSetListResponseIngest(input, path, luvio, store, timestamp) {
|
|
575
575
|
if (process.env.NODE_ENV !== 'production') {
|
|
576
|
-
const validateError = validate$
|
|
576
|
+
const validateError = validate$v(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$c;
|
|
583
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "docgen", VERSION$r, RepresentationType$h, equals$r);
|
|
584
584
|
return createLink(key);
|
|
585
585
|
};
|
|
586
|
-
function getTypeCacheKeys$
|
|
586
|
+
function getTypeCacheKeys$h(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$h,
|
|
592
592
|
mergeable: false
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
function select$
|
|
597
|
-
return select$
|
|
596
|
+
function select$J(luvio, params) {
|
|
597
|
+
return select$K();
|
|
598
598
|
}
|
|
599
|
-
function keyBuilder$
|
|
599
|
+
function keyBuilder$o(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$i(storeKeyMap, luvio, resourceParams, response) {
|
|
603
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$o(luvio, resourceParams));
|
|
604
604
|
}
|
|
605
|
-
function ingestSuccess$
|
|
605
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
606
606
|
const { body } = response;
|
|
607
|
-
const key = keyBuilder$
|
|
608
|
-
luvio.storeIngest(key, ingest$
|
|
607
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
608
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
609
609
|
const snapshot = luvio.storeLookup({
|
|
610
610
|
recordId: key,
|
|
611
|
-
node: select$
|
|
611
|
+
node: select$J(),
|
|
612
612
|
variables: {},
|
|
613
613
|
}, snapshotRefresh);
|
|
614
614
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -620,18 +620,18 @@ function ingestSuccess$h(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$o(luvio, params);
|
|
624
624
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
625
625
|
const storeMetadataParams = {
|
|
626
|
-
ttl: TTL$
|
|
626
|
+
ttl: TTL$c,
|
|
627
627
|
namespace: keyPrefix,
|
|
628
|
-
version: VERSION$
|
|
629
|
-
representationName: RepresentationType$
|
|
628
|
+
version: VERSION$r,
|
|
629
|
+
representationName: RepresentationType$h
|
|
630
630
|
};
|
|
631
631
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
632
632
|
return errorSnapshot;
|
|
633
633
|
}
|
|
634
|
-
function createResourceRequest$
|
|
634
|
+
function createResourceRequest$i(config) {
|
|
635
635
|
const headers = {};
|
|
636
636
|
return {
|
|
637
637
|
baseUri: '/services/data/v65.0',
|
|
@@ -645,7 +645,7 @@ function createResourceRequest$h(config) {
|
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
-
const adapterName$
|
|
648
|
+
const adapterName$i = '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$i, getDocumentClauseSets_ConfigPropertyMetadata);
|
|
658
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$k(getDocumentClauseSets_ConfigPropertyMetadata);
|
|
659
|
+
function keyBuilder$n(luvio, config) {
|
|
660
|
+
const resourceParams = createResourceParams$i(config);
|
|
661
|
+
return keyBuilder$o(luvio, resourceParams);
|
|
662
662
|
}
|
|
663
|
-
function typeCheckConfig$
|
|
663
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
664
664
|
const config = {};
|
|
665
|
-
typeCheckConfig$
|
|
665
|
+
typeCheckConfig$k(untrustedConfig, config, getDocumentClauseSets_ConfigPropertyMetadata);
|
|
666
666
|
return config;
|
|
667
667
|
}
|
|
668
|
-
function validateAdapterConfig$
|
|
668
|
+
function validateAdapterConfig$i(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$i(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$i(config);
|
|
683
|
+
return select$J();
|
|
684
684
|
}
|
|
685
685
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
686
|
-
const snapshot = ingestSuccess$
|
|
686
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
687
687
|
config,
|
|
688
|
-
resolve: () => buildNetworkSnapshot$
|
|
688
|
+
resolve: () => buildNetworkSnapshot$i(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$i(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$i(luvio, config, options) {
|
|
700
|
+
const resourceParams = createResourceParams$i(config);
|
|
701
|
+
const request = createResourceRequest$i(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$i(cache, luvio, resourceParams, response.body);
|
|
707
707
|
return cache;
|
|
708
708
|
});
|
|
709
709
|
}, (response) => {
|
|
@@ -711,23 +711,23 @@ function buildNetworkSnapshot$h(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$i, 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$n(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$i(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$i(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$b = 100;
|
|
740
|
+
const VERSION$q = "a3afe2a67715551a49f0d59eafb639aa";
|
|
741
|
+
function validate$u(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$s(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$g = 'DocumentClauseFieldsResponse';
|
|
767
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
768
768
|
return input;
|
|
769
769
|
}
|
|
770
|
-
const select$
|
|
770
|
+
const select$I = function DocumentClauseFieldsResponseSelect() {
|
|
771
771
|
return {
|
|
772
772
|
kind: 'Fragment',
|
|
773
|
-
version: VERSION$
|
|
773
|
+
version: VERSION$q,
|
|
774
774
|
private: [],
|
|
775
775
|
selections: [
|
|
776
776
|
{
|
|
@@ -786,7 +786,7 @@ const select$F = function DocumentClauseFieldsResponseSelect() {
|
|
|
786
786
|
]
|
|
787
787
|
};
|
|
788
788
|
};
|
|
789
|
-
function equals$
|
|
789
|
+
function equals$q(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$o(existing, incoming) {
|
|
|
804
804
|
}
|
|
805
805
|
return true;
|
|
806
806
|
}
|
|
807
|
-
const ingest$
|
|
807
|
+
const ingest$g = function DocumentClauseFieldsResponseIngest(input, path, luvio, store, timestamp) {
|
|
808
808
|
if (process.env.NODE_ENV !== 'production') {
|
|
809
|
-
const validateError = validate$
|
|
809
|
+
const validateError = validate$u(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$b;
|
|
816
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "docgen", VERSION$q, RepresentationType$g, equals$q);
|
|
817
817
|
return createLink(key);
|
|
818
818
|
};
|
|
819
|
-
function getTypeCacheKeys$
|
|
819
|
+
function getTypeCacheKeys$g(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$g,
|
|
825
825
|
mergeable: false
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
828
|
|
|
829
|
-
function select$
|
|
830
|
-
return select$
|
|
829
|
+
function select$H(luvio, params) {
|
|
830
|
+
return select$I();
|
|
831
831
|
}
|
|
832
|
-
function keyBuilder$
|
|
832
|
+
function keyBuilder$m(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$h(storeKeyMap, luvio, resourceParams, response) {
|
|
836
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
|
|
837
837
|
}
|
|
838
|
-
function ingestSuccess$
|
|
838
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
839
839
|
const { body } = response;
|
|
840
|
-
const key = keyBuilder$
|
|
841
|
-
luvio.storeIngest(key, ingest$
|
|
840
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
841
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
842
842
|
const snapshot = luvio.storeLookup({
|
|
843
843
|
recordId: key,
|
|
844
|
-
node: select$
|
|
844
|
+
node: select$H(),
|
|
845
845
|
variables: {},
|
|
846
846
|
}, snapshotRefresh);
|
|
847
847
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -853,18 +853,18 @@ function ingestSuccess$g(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$m(luvio, params);
|
|
857
857
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
858
858
|
const storeMetadataParams = {
|
|
859
|
-
ttl: TTL$
|
|
859
|
+
ttl: TTL$b,
|
|
860
860
|
namespace: keyPrefix,
|
|
861
|
-
version: VERSION$
|
|
862
|
-
representationName: RepresentationType$
|
|
861
|
+
version: VERSION$q,
|
|
862
|
+
representationName: RepresentationType$g
|
|
863
863
|
};
|
|
864
864
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
865
865
|
return errorSnapshot;
|
|
866
866
|
}
|
|
867
|
-
function createResourceRequest$
|
|
867
|
+
function createResourceRequest$h(config) {
|
|
868
868
|
const headers = {};
|
|
869
869
|
return {
|
|
870
870
|
baseUri: '/services/data/v65.0',
|
|
@@ -878,7 +878,7 @@ function createResourceRequest$g(config) {
|
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
-
const adapterName$
|
|
881
|
+
const adapterName$h = '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$h, getDocumentClauseFields_ConfigPropertyMetadata);
|
|
891
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$k(getDocumentClauseFields_ConfigPropertyMetadata);
|
|
892
|
+
function keyBuilder$l(luvio, config) {
|
|
893
|
+
const resourceParams = createResourceParams$h(config);
|
|
894
|
+
return keyBuilder$m(luvio, resourceParams);
|
|
895
895
|
}
|
|
896
|
-
function typeCheckConfig$
|
|
896
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
897
897
|
const config = {};
|
|
898
|
-
typeCheckConfig$
|
|
898
|
+
typeCheckConfig$k(untrustedConfig, config, getDocumentClauseFields_ConfigPropertyMetadata);
|
|
899
899
|
return config;
|
|
900
900
|
}
|
|
901
|
-
function validateAdapterConfig$
|
|
901
|
+
function validateAdapterConfig$h(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$h(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$h(config);
|
|
916
|
+
return select$H();
|
|
917
917
|
}
|
|
918
918
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
919
|
-
const snapshot = ingestSuccess$
|
|
919
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
920
920
|
config,
|
|
921
|
-
resolve: () => buildNetworkSnapshot$
|
|
921
|
+
resolve: () => buildNetworkSnapshot$h(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$h(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$h(luvio, config, options) {
|
|
933
|
+
const resourceParams = createResourceParams$h(config);
|
|
934
|
+
const request = createResourceRequest$h(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$h(cache, luvio, resourceParams, response.body);
|
|
940
940
|
return cache;
|
|
941
941
|
});
|
|
942
942
|
}, (response) => {
|
|
@@ -944,23 +944,23 @@ function buildNetworkSnapshot$g(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$h, 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$l(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$h(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$h(untrustedConfig, getDocumentClauseFields_ConfigPropertyNames);
|
|
964
964
|
// Invalid or incomplete config
|
|
965
965
|
if (config === null) {
|
|
966
966
|
return null;
|
|
@@ -969,9 +969,9 @@ const getDocumentClauseFieldsAdapterFactory = (luvio) => function docgen__getDoc
|
|
|
969
969
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
970
970
|
};
|
|
971
971
|
|
|
972
|
-
const TTL$
|
|
973
|
-
const VERSION$
|
|
974
|
-
function validate$
|
|
972
|
+
const TTL$a = 60000;
|
|
973
|
+
const VERSION$p = "af0246ac09fd1b3b2a939d90b8caa15d";
|
|
974
|
+
function validate$t(obj, path = 'DocumentClausePromotionResponse') {
|
|
975
975
|
const v_error = (() => {
|
|
976
976
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
977
977
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -989,23 +989,23 @@ function validate$r(obj, path = 'DocumentClausePromotionResponse') {
|
|
|
989
989
|
})();
|
|
990
990
|
return v_error === undefined ? null : v_error;
|
|
991
991
|
}
|
|
992
|
-
const RepresentationType$
|
|
993
|
-
function keyBuilder$
|
|
994
|
-
return keyPrefix + '::' + RepresentationType$
|
|
992
|
+
const RepresentationType$f = 'DocumentClausePromotionResponse';
|
|
993
|
+
function keyBuilder$k(luvio, config) {
|
|
994
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.isSuccess;
|
|
995
995
|
}
|
|
996
|
-
function keyBuilderFromType$
|
|
996
|
+
function keyBuilderFromType$a(luvio, object) {
|
|
997
997
|
const keyParams = {
|
|
998
998
|
isSuccess: object.isSuccess
|
|
999
999
|
};
|
|
1000
|
-
return keyBuilder$
|
|
1000
|
+
return keyBuilder$k(luvio, keyParams);
|
|
1001
1001
|
}
|
|
1002
|
-
function normalize$
|
|
1002
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
1003
1003
|
return input;
|
|
1004
1004
|
}
|
|
1005
|
-
const select$
|
|
1005
|
+
const select$G = function DocumentClausePromotionResponseSelect() {
|
|
1006
1006
|
return {
|
|
1007
1007
|
kind: 'Fragment',
|
|
1008
|
-
version: VERSION$
|
|
1008
|
+
version: VERSION$p,
|
|
1009
1009
|
private: [],
|
|
1010
1010
|
selections: [
|
|
1011
1011
|
{
|
|
@@ -1019,7 +1019,7 @@ const select$D = function DocumentClausePromotionResponseSelect() {
|
|
|
1019
1019
|
]
|
|
1020
1020
|
};
|
|
1021
1021
|
};
|
|
1022
|
-
function equals$
|
|
1022
|
+
function equals$p(existing, incoming) {
|
|
1023
1023
|
const existing_isSuccess = existing.isSuccess;
|
|
1024
1024
|
const incoming_isSuccess = incoming.isSuccess;
|
|
1025
1025
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -1032,7 +1032,330 @@ function equals$n(existing, incoming) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
return true;
|
|
1034
1034
|
}
|
|
1035
|
-
const ingest$
|
|
1035
|
+
const ingest$f = function DocumentClausePromotionResponseIngest(input, path, luvio, store, timestamp) {
|
|
1036
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1037
|
+
const validateError = validate$t(input);
|
|
1038
|
+
if (validateError !== null) {
|
|
1039
|
+
throw validateError;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
const key = keyBuilderFromType$a(luvio, input);
|
|
1043
|
+
const ttlToUse = TTL$a;
|
|
1044
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "docgen", VERSION$p, RepresentationType$f, equals$p);
|
|
1045
|
+
return createLink(key);
|
|
1046
|
+
};
|
|
1047
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
1048
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1049
|
+
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
1050
|
+
rootKeySet.set(rootKey, {
|
|
1051
|
+
namespace: keyPrefix,
|
|
1052
|
+
representationName: RepresentationType$f,
|
|
1053
|
+
mergeable: false
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
function select$F(luvio, params) {
|
|
1058
|
+
return select$G();
|
|
1059
|
+
}
|
|
1060
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
1061
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
1062
|
+
}
|
|
1063
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
1064
|
+
const { body } = response;
|
|
1065
|
+
const key = keyBuilderFromType$a(luvio, body);
|
|
1066
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
1067
|
+
const snapshot = luvio.storeLookup({
|
|
1068
|
+
recordId: key,
|
|
1069
|
+
node: select$F(),
|
|
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$g(config) {
|
|
1081
|
+
const headers = {};
|
|
1082
|
+
return {
|
|
1083
|
+
baseUri: '/services/data/v65.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$g = '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$g, postDocumentClausePromotion_ConfigPropertyMetadata);
|
|
1106
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$k(postDocumentClausePromotion_ConfigPropertyMetadata);
|
|
1107
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
1108
|
+
const config = {};
|
|
1109
|
+
typeCheckConfig$k(untrustedConfig, config, postDocumentClausePromotion_ConfigPropertyMetadata);
|
|
1110
|
+
return config;
|
|
1111
|
+
}
|
|
1112
|
+
function validateAdapterConfig$g(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$g(untrustedConfig);
|
|
1120
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1121
|
+
return null;
|
|
1122
|
+
}
|
|
1123
|
+
return config;
|
|
1124
|
+
}
|
|
1125
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
1126
|
+
const resourceParams = createResourceParams$g(config);
|
|
1127
|
+
const request = createResourceRequest$g(resourceParams);
|
|
1128
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1129
|
+
.then((response) => {
|
|
1130
|
+
return luvio.handleSuccessResponse(() => {
|
|
1131
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
1132
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1133
|
+
}, () => {
|
|
1134
|
+
const cache = new StoreKeyMap();
|
|
1135
|
+
getResponseCacheKeys$g(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$g(untrustedConfig, postDocumentClausePromotion_ConfigPropertyNames);
|
|
1146
|
+
// Invalid or incomplete config
|
|
1147
|
+
if (config === null) {
|
|
1148
|
+
throw new Error('Invalid config for "postDocumentClausePromotion"');
|
|
1149
|
+
}
|
|
1150
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1154
|
+
const VERSION$o = "ed6ec33670c33d6b68fb5c41b2a61d02";
|
|
1155
|
+
function validate$s(obj, path = 'ContentLinkDataSyncDetailRepresentation') {
|
|
1156
|
+
const v_error = (() => {
|
|
1157
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1158
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1159
|
+
}
|
|
1160
|
+
const obj_contentLinkId = obj.contentLinkId;
|
|
1161
|
+
const path_contentLinkId = path + '.contentLinkId';
|
|
1162
|
+
if (typeof obj_contentLinkId !== 'string') {
|
|
1163
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contentLinkId + '" (at "' + path_contentLinkId + '")');
|
|
1164
|
+
}
|
|
1165
|
+
const obj_failureReason = obj.failureReason;
|
|
1166
|
+
const path_failureReason = path + '.failureReason';
|
|
1167
|
+
if (typeof obj_failureReason !== 'string') {
|
|
1168
|
+
return new TypeError('Expected "string" but received "' + typeof obj_failureReason + '" (at "' + path_failureReason + '")');
|
|
1169
|
+
}
|
|
1170
|
+
const obj_isSuccess = obj.isSuccess;
|
|
1171
|
+
const path_isSuccess = path + '.isSuccess';
|
|
1172
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
1173
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
1174
|
+
}
|
|
1175
|
+
const obj_value = obj.value;
|
|
1176
|
+
const path_value = path + '.value';
|
|
1177
|
+
if (typeof obj_value !== 'string') {
|
|
1178
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
1179
|
+
}
|
|
1180
|
+
})();
|
|
1181
|
+
return v_error === undefined ? null : v_error;
|
|
1182
|
+
}
|
|
1183
|
+
const select$E = function ContentLinkDataSyncDetailRepresentationSelect() {
|
|
1184
|
+
return {
|
|
1185
|
+
kind: 'Fragment',
|
|
1186
|
+
version: VERSION$o,
|
|
1187
|
+
private: [],
|
|
1188
|
+
selections: [
|
|
1189
|
+
{
|
|
1190
|
+
name: 'contentLinkId',
|
|
1191
|
+
kind: 'Scalar'
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
name: 'failureReason',
|
|
1195
|
+
kind: 'Scalar'
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
name: 'isSuccess',
|
|
1199
|
+
kind: 'Scalar'
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
name: 'value',
|
|
1203
|
+
kind: 'Scalar'
|
|
1204
|
+
}
|
|
1205
|
+
]
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
function equals$o(existing, incoming) {
|
|
1209
|
+
const existing_isSuccess = existing.isSuccess;
|
|
1210
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
1211
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
1212
|
+
return false;
|
|
1213
|
+
}
|
|
1214
|
+
const existing_contentLinkId = existing.contentLinkId;
|
|
1215
|
+
const incoming_contentLinkId = incoming.contentLinkId;
|
|
1216
|
+
if (!(existing_contentLinkId === incoming_contentLinkId)) {
|
|
1217
|
+
return false;
|
|
1218
|
+
}
|
|
1219
|
+
const existing_failureReason = existing.failureReason;
|
|
1220
|
+
const incoming_failureReason = incoming.failureReason;
|
|
1221
|
+
if (!(existing_failureReason === incoming_failureReason)) {
|
|
1222
|
+
return false;
|
|
1223
|
+
}
|
|
1224
|
+
const existing_value = existing.value;
|
|
1225
|
+
const incoming_value = incoming.value;
|
|
1226
|
+
if (!(existing_value === incoming_value)) {
|
|
1227
|
+
return false;
|
|
1228
|
+
}
|
|
1229
|
+
return true;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
const TTL$9 = 60000;
|
|
1233
|
+
const VERSION$n = "1a4175d62aae4b030b88e15b3bad343f";
|
|
1234
|
+
function validate$r(obj, path = 'ContentLinkDataSyncOutputRepresentation') {
|
|
1235
|
+
const v_error = (() => {
|
|
1236
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1237
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1238
|
+
}
|
|
1239
|
+
const obj_failedContentLinkDataList = obj.failedContentLinkDataList;
|
|
1240
|
+
const path_failedContentLinkDataList = path + '.failedContentLinkDataList';
|
|
1241
|
+
if (!ArrayIsArray(obj_failedContentLinkDataList)) {
|
|
1242
|
+
return new TypeError('Expected "array" but received "' + typeof obj_failedContentLinkDataList + '" (at "' + path_failedContentLinkDataList + '")');
|
|
1243
|
+
}
|
|
1244
|
+
for (let i = 0; i < obj_failedContentLinkDataList.length; i++) {
|
|
1245
|
+
const obj_failedContentLinkDataList_item = obj_failedContentLinkDataList[i];
|
|
1246
|
+
const path_failedContentLinkDataList_item = path_failedContentLinkDataList + '[' + i + ']';
|
|
1247
|
+
const referencepath_failedContentLinkDataList_itemValidationError = validate$s(obj_failedContentLinkDataList_item, path_failedContentLinkDataList_item);
|
|
1248
|
+
if (referencepath_failedContentLinkDataList_itemValidationError !== null) {
|
|
1249
|
+
let message = 'Object doesn\'t match ContentLinkDataSyncDetailRepresentation (at "' + path_failedContentLinkDataList_item + '")\n';
|
|
1250
|
+
message += referencepath_failedContentLinkDataList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1251
|
+
return new TypeError(message);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
const obj_referenceObjectId = obj.referenceObjectId;
|
|
1255
|
+
const path_referenceObjectId = path + '.referenceObjectId';
|
|
1256
|
+
if (typeof obj_referenceObjectId !== 'string') {
|
|
1257
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceObjectId + '" (at "' + path_referenceObjectId + '")');
|
|
1258
|
+
}
|
|
1259
|
+
const obj_saveCommitted = obj.saveCommitted;
|
|
1260
|
+
const path_saveCommitted = path + '.saveCommitted';
|
|
1261
|
+
if (typeof obj_saveCommitted !== 'boolean') {
|
|
1262
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_saveCommitted + '" (at "' + path_saveCommitted + '")');
|
|
1263
|
+
}
|
|
1264
|
+
const obj_successContentLinkDataList = obj.successContentLinkDataList;
|
|
1265
|
+
const path_successContentLinkDataList = path + '.successContentLinkDataList';
|
|
1266
|
+
if (!ArrayIsArray(obj_successContentLinkDataList)) {
|
|
1267
|
+
return new TypeError('Expected "array" but received "' + typeof obj_successContentLinkDataList + '" (at "' + path_successContentLinkDataList + '")');
|
|
1268
|
+
}
|
|
1269
|
+
for (let i = 0; i < obj_successContentLinkDataList.length; i++) {
|
|
1270
|
+
const obj_successContentLinkDataList_item = obj_successContentLinkDataList[i];
|
|
1271
|
+
const path_successContentLinkDataList_item = path_successContentLinkDataList + '[' + i + ']';
|
|
1272
|
+
const referencepath_successContentLinkDataList_itemValidationError = validate$s(obj_successContentLinkDataList_item, path_successContentLinkDataList_item);
|
|
1273
|
+
if (referencepath_successContentLinkDataList_itemValidationError !== null) {
|
|
1274
|
+
let message = 'Object doesn\'t match ContentLinkDataSyncDetailRepresentation (at "' + path_successContentLinkDataList_item + '")\n';
|
|
1275
|
+
message += referencepath_successContentLinkDataList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1276
|
+
return new TypeError(message);
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
})();
|
|
1280
|
+
return v_error === undefined ? null : v_error;
|
|
1281
|
+
}
|
|
1282
|
+
const RepresentationType$e = 'ContentLinkDataSyncOutputRepresentation';
|
|
1283
|
+
function keyBuilder$j(luvio, config) {
|
|
1284
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.referenceObjectId;
|
|
1285
|
+
}
|
|
1286
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
1287
|
+
const keyParams = {
|
|
1288
|
+
referenceObjectId: object.referenceObjectId
|
|
1289
|
+
};
|
|
1290
|
+
return keyBuilder$j(luvio, keyParams);
|
|
1291
|
+
}
|
|
1292
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
1293
|
+
return input;
|
|
1294
|
+
}
|
|
1295
|
+
const select$D = function ContentLinkDataSyncOutputRepresentationSelect() {
|
|
1296
|
+
const { selections: ContentLinkDataSyncDetailRepresentation__selections, opaque: ContentLinkDataSyncDetailRepresentation__opaque, } = select$E();
|
|
1297
|
+
return {
|
|
1298
|
+
kind: 'Fragment',
|
|
1299
|
+
version: VERSION$n,
|
|
1300
|
+
private: [],
|
|
1301
|
+
selections: [
|
|
1302
|
+
{
|
|
1303
|
+
name: 'failedContentLinkDataList',
|
|
1304
|
+
kind: 'Object',
|
|
1305
|
+
plural: true,
|
|
1306
|
+
selections: ContentLinkDataSyncDetailRepresentation__selections
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
name: 'referenceObjectId',
|
|
1310
|
+
kind: 'Scalar'
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
name: 'saveCommitted',
|
|
1314
|
+
kind: 'Scalar'
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
name: 'successContentLinkDataList',
|
|
1318
|
+
kind: 'Object',
|
|
1319
|
+
plural: true,
|
|
1320
|
+
selections: ContentLinkDataSyncDetailRepresentation__selections
|
|
1321
|
+
}
|
|
1322
|
+
]
|
|
1323
|
+
};
|
|
1324
|
+
};
|
|
1325
|
+
function equals$n(existing, incoming) {
|
|
1326
|
+
const existing_saveCommitted = existing.saveCommitted;
|
|
1327
|
+
const incoming_saveCommitted = incoming.saveCommitted;
|
|
1328
|
+
if (!(existing_saveCommitted === incoming_saveCommitted)) {
|
|
1329
|
+
return false;
|
|
1330
|
+
}
|
|
1331
|
+
const existing_referenceObjectId = existing.referenceObjectId;
|
|
1332
|
+
const incoming_referenceObjectId = incoming.referenceObjectId;
|
|
1333
|
+
if (!(existing_referenceObjectId === incoming_referenceObjectId)) {
|
|
1334
|
+
return false;
|
|
1335
|
+
}
|
|
1336
|
+
const existing_failedContentLinkDataList = existing.failedContentLinkDataList;
|
|
1337
|
+
const incoming_failedContentLinkDataList = incoming.failedContentLinkDataList;
|
|
1338
|
+
const equals_failedContentLinkDataList_items = equalsArray(existing_failedContentLinkDataList, incoming_failedContentLinkDataList, (existing_failedContentLinkDataList_item, incoming_failedContentLinkDataList_item) => {
|
|
1339
|
+
if (!(equals$o(existing_failedContentLinkDataList_item, incoming_failedContentLinkDataList_item))) {
|
|
1340
|
+
return false;
|
|
1341
|
+
}
|
|
1342
|
+
});
|
|
1343
|
+
if (equals_failedContentLinkDataList_items === false) {
|
|
1344
|
+
return false;
|
|
1345
|
+
}
|
|
1346
|
+
const existing_successContentLinkDataList = existing.successContentLinkDataList;
|
|
1347
|
+
const incoming_successContentLinkDataList = incoming.successContentLinkDataList;
|
|
1348
|
+
const equals_successContentLinkDataList_items = equalsArray(existing_successContentLinkDataList, incoming_successContentLinkDataList, (existing_successContentLinkDataList_item, incoming_successContentLinkDataList_item) => {
|
|
1349
|
+
if (!(equals$o(existing_successContentLinkDataList_item, incoming_successContentLinkDataList_item))) {
|
|
1350
|
+
return false;
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
if (equals_successContentLinkDataList_items === false) {
|
|
1354
|
+
return false;
|
|
1355
|
+
}
|
|
1356
|
+
return true;
|
|
1357
|
+
}
|
|
1358
|
+
const ingest$e = function ContentLinkDataSyncOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1036
1359
|
if (process.env.NODE_ENV !== 'production') {
|
|
1037
1360
|
const validateError = validate$r(input);
|
|
1038
1361
|
if (validateError !== null) {
|
|
@@ -1081,7 +1404,7 @@ function createResourceRequest$f(config) {
|
|
|
1081
1404
|
const headers = {};
|
|
1082
1405
|
return {
|
|
1083
1406
|
baseUri: '/services/data/v65.0',
|
|
1084
|
-
basePath: '/connect/
|
|
1407
|
+
basePath: '/connect/content-link/data-sync',
|
|
1085
1408
|
method: 'post',
|
|
1086
1409
|
body: config.body,
|
|
1087
1410
|
urlParams: {},
|
|
@@ -1091,22 +1414,26 @@ function createResourceRequest$f(config) {
|
|
|
1091
1414
|
};
|
|
1092
1415
|
}
|
|
1093
1416
|
|
|
1094
|
-
const adapterName$f = '
|
|
1095
|
-
const
|
|
1096
|
-
generateParamConfigMetadata('
|
|
1097
|
-
generateParamConfigMetadata('
|
|
1098
|
-
generateParamConfigMetadata('
|
|
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 */),
|
|
1417
|
+
const adapterName$f = 'getContentLinkDataSyncInput';
|
|
1418
|
+
const getContentLinkDataSyncInput_ConfigPropertyMetadata = [
|
|
1419
|
+
generateParamConfigMetadata('contentLinkDetailsList', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1420
|
+
generateParamConfigMetadata('partialCommit', true, 2 /* Body */, 1 /* Boolean */),
|
|
1421
|
+
generateParamConfigMetadata('referenceObjectId', true, 2 /* Body */, 0 /* String */),
|
|
1104
1422
|
];
|
|
1105
|
-
const
|
|
1106
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
1423
|
+
const getContentLinkDataSyncInput_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getContentLinkDataSyncInput_ConfigPropertyMetadata);
|
|
1424
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$k(getContentLinkDataSyncInput_ConfigPropertyMetadata);
|
|
1107
1425
|
function typeCheckConfig$f(untrustedConfig) {
|
|
1108
1426
|
const config = {};
|
|
1109
|
-
typeCheckConfig$
|
|
1427
|
+
typeCheckConfig$k(untrustedConfig, config, getContentLinkDataSyncInput_ConfigPropertyMetadata);
|
|
1428
|
+
const untrustedConfig_contentLinkDetailsList = untrustedConfig.contentLinkDetailsList;
|
|
1429
|
+
if (ArrayIsArray$1(untrustedConfig_contentLinkDetailsList)) {
|
|
1430
|
+
const untrustedConfig_contentLinkDetailsList_array = [];
|
|
1431
|
+
for (let i = 0, arrayLength = untrustedConfig_contentLinkDetailsList.length; i < arrayLength; i++) {
|
|
1432
|
+
const untrustedConfig_contentLinkDetailsList_item = untrustedConfig_contentLinkDetailsList[i];
|
|
1433
|
+
untrustedConfig_contentLinkDetailsList_array.push(untrustedConfig_contentLinkDetailsList_item);
|
|
1434
|
+
}
|
|
1435
|
+
config.contentLinkDetailsList = untrustedConfig_contentLinkDetailsList_array;
|
|
1436
|
+
}
|
|
1110
1437
|
return config;
|
|
1111
1438
|
}
|
|
1112
1439
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -1140,12 +1467,12 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
1140
1467
|
throw response;
|
|
1141
1468
|
});
|
|
1142
1469
|
}
|
|
1143
|
-
const
|
|
1144
|
-
return function
|
|
1145
|
-
const config = validateAdapterConfig$f(untrustedConfig,
|
|
1470
|
+
const getContentLinkDataSyncInputAdapterFactory = (luvio) => {
|
|
1471
|
+
return function getContentLinkDataSyncInput(untrustedConfig) {
|
|
1472
|
+
const config = validateAdapterConfig$f(untrustedConfig, getContentLinkDataSyncInput_ConfigPropertyNames);
|
|
1146
1473
|
// Invalid or incomplete config
|
|
1147
1474
|
if (config === null) {
|
|
1148
|
-
throw new Error('Invalid config for "
|
|
1475
|
+
throw new Error('Invalid config for "getContentLinkDataSyncInput"');
|
|
1149
1476
|
}
|
|
1150
1477
|
return buildNetworkSnapshot$f(luvio, config);
|
|
1151
1478
|
};
|
|
@@ -1451,10 +1778,10 @@ const getContentLinkInput_ConfigPropertyMetadata = [
|
|
|
1451
1778
|
generateParamConfigMetadata('referenceObjectId', true, 2 /* Body */, 0 /* String */),
|
|
1452
1779
|
];
|
|
1453
1780
|
const getContentLinkInput_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getContentLinkInput_ConfigPropertyMetadata);
|
|
1454
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
1781
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$k(getContentLinkInput_ConfigPropertyMetadata);
|
|
1455
1782
|
function typeCheckConfig$e(untrustedConfig) {
|
|
1456
1783
|
const config = {};
|
|
1457
|
-
typeCheckConfig$
|
|
1784
|
+
typeCheckConfig$k(untrustedConfig, config, getContentLinkInput_ConfigPropertyMetadata);
|
|
1458
1785
|
return config;
|
|
1459
1786
|
}
|
|
1460
1787
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -1637,10 +1964,10 @@ const performDocGenerationBatchProcessAction_ConfigPropertyMetadata = [
|
|
|
1637
1964
|
generateParamConfigMetadata('docGenerationBatchProcessId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1638
1965
|
];
|
|
1639
1966
|
const performDocGenerationBatchProcessAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1640
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
1967
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$k(performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1641
1968
|
function typeCheckConfig$d(untrustedConfig) {
|
|
1642
1969
|
const config = {};
|
|
1643
|
-
typeCheckConfig$
|
|
1970
|
+
typeCheckConfig$k(untrustedConfig, config, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1644
1971
|
return config;
|
|
1645
1972
|
}
|
|
1646
1973
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -1815,10 +2142,10 @@ const createComparisonDocument_ConfigPropertyMetadata = [
|
|
|
1815
2142
|
generateParamConfigMetadata('compareToDocumentSourceType', true, 2 /* Body */, 0 /* String */),
|
|
1816
2143
|
];
|
|
1817
2144
|
const createComparisonDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createComparisonDocument_ConfigPropertyMetadata);
|
|
1818
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
2145
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$k(createComparisonDocument_ConfigPropertyMetadata);
|
|
1819
2146
|
function typeCheckConfig$c(untrustedConfig) {
|
|
1820
2147
|
const config = {};
|
|
1821
|
-
typeCheckConfig$
|
|
2148
|
+
typeCheckConfig$k(untrustedConfig, config, createComparisonDocument_ConfigPropertyMetadata);
|
|
1822
2149
|
return config;
|
|
1823
2150
|
}
|
|
1824
2151
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -2119,10 +2446,10 @@ const getDocumentPreview_ConfigPropertyMetadata = [
|
|
|
2119
2446
|
generateParamConfigMetadata('versionNumber', false, 2 /* Body */, 3 /* Integer */),
|
|
2120
2447
|
];
|
|
2121
2448
|
const getDocumentPreview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getDocumentPreview_ConfigPropertyMetadata);
|
|
2122
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
2449
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$k(getDocumentPreview_ConfigPropertyMetadata);
|
|
2123
2450
|
function typeCheckConfig$b(untrustedConfig) {
|
|
2124
2451
|
const config = {};
|
|
2125
|
-
typeCheckConfig$
|
|
2452
|
+
typeCheckConfig$k(untrustedConfig, config, getDocumentPreview_ConfigPropertyMetadata);
|
|
2126
2453
|
return config;
|
|
2127
2454
|
}
|
|
2128
2455
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -2351,10 +2678,10 @@ const getDocGenConfig_ConfigPropertyMetadata = [
|
|
|
2351
2678
|
generateParamConfigMetadata('configType', true, 2 /* Body */, 0 /* String */),
|
|
2352
2679
|
];
|
|
2353
2680
|
const getDocGenConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getDocGenConfig_ConfigPropertyMetadata);
|
|
2354
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
2681
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$k(getDocGenConfig_ConfigPropertyMetadata);
|
|
2355
2682
|
function typeCheckConfig$a(untrustedConfig) {
|
|
2356
2683
|
const config = {};
|
|
2357
|
-
typeCheckConfig$
|
|
2684
|
+
typeCheckConfig$k(untrustedConfig, config, getDocGenConfig_ConfigPropertyMetadata);
|
|
2358
2685
|
const untrustedConfig_configInput = untrustedConfig.configInput;
|
|
2359
2686
|
config.configInput = untrustedConfig_configInput;
|
|
2360
2687
|
return config;
|
|
@@ -2638,14 +2965,14 @@ const getDocumentTemplates_ConfigPropertyMetadata = [
|
|
|
2638
2965
|
generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2639
2966
|
];
|
|
2640
2967
|
const getDocumentTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getDocumentTemplates_ConfigPropertyMetadata);
|
|
2641
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
2968
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$k(getDocumentTemplates_ConfigPropertyMetadata);
|
|
2642
2969
|
function keyBuilder$c(luvio, config) {
|
|
2643
2970
|
const resourceParams = createResourceParams$9(config);
|
|
2644
2971
|
return keyBuilder$d(luvio, resourceParams);
|
|
2645
2972
|
}
|
|
2646
2973
|
function typeCheckConfig$9(untrustedConfig) {
|
|
2647
2974
|
const config = {};
|
|
2648
|
-
typeCheckConfig$
|
|
2975
|
+
typeCheckConfig$k(untrustedConfig, config, getDocumentTemplates_ConfigPropertyMetadata);
|
|
2649
2976
|
return config;
|
|
2650
2977
|
}
|
|
2651
2978
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -2843,10 +3170,10 @@ const updateDocumentTemplate_ConfigPropertyMetadata = [
|
|
|
2843
3170
|
generateParamConfigMetadata('contextMappingName', false, 2 /* Body */, 0 /* String */),
|
|
2844
3171
|
];
|
|
2845
3172
|
const updateDocumentTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateDocumentTemplate_ConfigPropertyMetadata);
|
|
2846
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
3173
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$k(updateDocumentTemplate_ConfigPropertyMetadata);
|
|
2847
3174
|
function typeCheckConfig$8(untrustedConfig) {
|
|
2848
3175
|
const config = {};
|
|
2849
|
-
typeCheckConfig$
|
|
3176
|
+
typeCheckConfig$k(untrustedConfig, config, updateDocumentTemplate_ConfigPropertyMetadata);
|
|
2850
3177
|
return config;
|
|
2851
3178
|
}
|
|
2852
3179
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -2950,10 +3277,10 @@ const createDocumentTemplate_ConfigPropertyMetadata = [
|
|
|
2950
3277
|
generateParamConfigMetadata('contextMappingName', false, 2 /* Body */, 0 /* String */),
|
|
2951
3278
|
];
|
|
2952
3279
|
const createDocumentTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createDocumentTemplate_ConfigPropertyMetadata);
|
|
2953
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
3280
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$k(createDocumentTemplate_ConfigPropertyMetadata);
|
|
2954
3281
|
function typeCheckConfig$7(untrustedConfig) {
|
|
2955
3282
|
const config = {};
|
|
2956
|
-
typeCheckConfig$
|
|
3283
|
+
typeCheckConfig$k(untrustedConfig, config, createDocumentTemplate_ConfigPropertyMetadata);
|
|
2957
3284
|
return config;
|
|
2958
3285
|
}
|
|
2959
3286
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -3309,14 +3636,14 @@ const getDocuments_ConfigPropertyMetadata = [
|
|
|
3309
3636
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3310
3637
|
];
|
|
3311
3638
|
const getDocuments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDocuments_ConfigPropertyMetadata);
|
|
3312
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
3639
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$k(getDocuments_ConfigPropertyMetadata);
|
|
3313
3640
|
function keyBuilder$9(luvio, config) {
|
|
3314
3641
|
const resourceParams = createResourceParams$6(config);
|
|
3315
3642
|
return keyBuilder$a(luvio, resourceParams);
|
|
3316
3643
|
}
|
|
3317
3644
|
function typeCheckConfig$6(untrustedConfig) {
|
|
3318
3645
|
const config = {};
|
|
3319
|
-
typeCheckConfig$
|
|
3646
|
+
typeCheckConfig$k(untrustedConfig, config, getDocuments_ConfigPropertyMetadata);
|
|
3320
3647
|
return config;
|
|
3321
3648
|
}
|
|
3322
3649
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -3774,14 +4101,14 @@ const getESignNotificationSettings_ConfigPropertyMetadata = [
|
|
|
3774
4101
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3775
4102
|
];
|
|
3776
4103
|
const getESignNotificationSettings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getESignNotificationSettings_ConfigPropertyMetadata);
|
|
3777
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
4104
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$k(getESignNotificationSettings_ConfigPropertyMetadata);
|
|
3778
4105
|
function keyBuilder$7(luvio, config) {
|
|
3779
4106
|
const resourceParams = createResourceParams$5(config);
|
|
3780
4107
|
return keyBuilder$8(luvio, resourceParams);
|
|
3781
4108
|
}
|
|
3782
4109
|
function typeCheckConfig$5(untrustedConfig) {
|
|
3783
4110
|
const config = {};
|
|
3784
|
-
typeCheckConfig$
|
|
4111
|
+
typeCheckConfig$k(untrustedConfig, config, getESignNotificationSettings_ConfigPropertyMetadata);
|
|
3785
4112
|
return config;
|
|
3786
4113
|
}
|
|
3787
4114
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -4141,14 +4468,14 @@ const getRecipients_ConfigPropertyMetadata = [
|
|
|
4141
4468
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4142
4469
|
];
|
|
4143
4470
|
const getRecipients_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecipients_ConfigPropertyMetadata);
|
|
4144
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
4471
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$k(getRecipients_ConfigPropertyMetadata);
|
|
4145
4472
|
function keyBuilder$5(luvio, config) {
|
|
4146
4473
|
const resourceParams = createResourceParams$4(config);
|
|
4147
4474
|
return keyBuilder$6(luvio, resourceParams);
|
|
4148
4475
|
}
|
|
4149
4476
|
function typeCheckConfig$4(untrustedConfig) {
|
|
4150
4477
|
const config = {};
|
|
4151
|
-
typeCheckConfig$
|
|
4478
|
+
typeCheckConfig$k(untrustedConfig, config, getRecipients_ConfigPropertyMetadata);
|
|
4152
4479
|
return config;
|
|
4153
4480
|
}
|
|
4154
4481
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -4408,10 +4735,10 @@ const createDocumentEnvelopeForEsign_ConfigPropertyMetadata = [
|
|
|
4408
4735
|
generateParamConfigMetadata('envelope', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4409
4736
|
];
|
|
4410
4737
|
const createDocumentEnvelopeForEsign_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
4411
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
4738
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$k(createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
4412
4739
|
function typeCheckConfig$3(untrustedConfig) {
|
|
4413
4740
|
const config = {};
|
|
4414
|
-
typeCheckConfig$
|
|
4741
|
+
typeCheckConfig$k(untrustedConfig, config, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
4415
4742
|
const untrustedConfig_envelope = untrustedConfig.envelope;
|
|
4416
4743
|
const referenceEnvelopeSendRequestValidationError = validate$6(untrustedConfig_envelope);
|
|
4417
4744
|
if (referenceEnvelopeSendRequestValidationError === null) {
|
|
@@ -4747,10 +5074,10 @@ const updateEnvelope_ConfigPropertyMetadata = [
|
|
|
4747
5074
|
generateParamConfigMetadata('sourceObjectId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4748
5075
|
];
|
|
4749
5076
|
const updateEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateEnvelope_ConfigPropertyMetadata);
|
|
4750
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
5077
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$k(updateEnvelope_ConfigPropertyMetadata);
|
|
4751
5078
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4752
5079
|
const config = {};
|
|
4753
|
-
typeCheckConfig$
|
|
5080
|
+
typeCheckConfig$k(untrustedConfig, config, updateEnvelope_ConfigPropertyMetadata);
|
|
4754
5081
|
return config;
|
|
4755
5082
|
}
|
|
4756
5083
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -5014,10 +5341,10 @@ const updateVoidedEnvelope_ConfigPropertyMetadata = [
|
|
|
5014
5341
|
generateParamConfigMetadata('voidParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5015
5342
|
];
|
|
5016
5343
|
const updateVoidedEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
5017
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
5344
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$k(updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
5018
5345
|
function typeCheckConfig$1(untrustedConfig) {
|
|
5019
5346
|
const config = {};
|
|
5020
|
-
typeCheckConfig$
|
|
5347
|
+
typeCheckConfig$k(untrustedConfig, config, updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
5021
5348
|
const untrustedConfig_voidParam = untrustedConfig.voidParam;
|
|
5022
5349
|
const referenceEnvelopeVoidRequestValidationError = validate$2(untrustedConfig_voidParam);
|
|
5023
5350
|
if (referenceEnvelopeVoidRequestValidationError === null) {
|
|
@@ -5208,7 +5535,7 @@ function createResourceRequest(config) {
|
|
|
5208
5535
|
const adapterName = 'getSignerRoles';
|
|
5209
5536
|
const getSignerRoles_ConfigPropertyMetadata = [];
|
|
5210
5537
|
const getSignerRoles_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSignerRoles_ConfigPropertyMetadata);
|
|
5211
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
5538
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$k(getSignerRoles_ConfigPropertyMetadata);
|
|
5212
5539
|
function keyBuilder(luvio, config) {
|
|
5213
5540
|
createResourceParams(config);
|
|
5214
5541
|
return keyBuilder$1();
|
|
@@ -5288,4 +5615,4 @@ const getSignerRolesAdapterFactory = (luvio) => function docgen__getSignerRoles(
|
|
|
5288
5615
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
5289
5616
|
};
|
|
5290
5617
|
|
|
5291
|
-
export { createComparisonDocumentAdapterFactory, createDocumentEnvelopeForEsignAdapterFactory, createDocumentTemplateAdapterFactory, getContentLinkInputAdapterFactory, getDocGenConfigAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentPreviewAdapterFactory, getDocumentTemplatesAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, postDocumentClausePromotionAdapterFactory, updateDocumentTemplateAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };
|
|
5618
|
+
export { createComparisonDocumentAdapterFactory, createDocumentEnvelopeForEsignAdapterFactory, createDocumentTemplateAdapterFactory, getContentLinkDataSyncInputAdapterFactory, getContentLinkInputAdapterFactory, getDocGenConfigAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentPreviewAdapterFactory, getDocumentTemplatesAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, postDocumentClausePromotionAdapterFactory, updateDocumentTemplateAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };
|