@salesforce/lds-adapters-industries-docgen 1.325.0 → 1.326.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 +647 -413
- package/dist/es/es2018/types/src/generated/adapters/getDocGenConfig.d.ts +16 -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/postConnectDocgenConfig.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/DocGenConfigDataRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/DocGenConfigInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/DocGenConfigOutputRepresentation.d.ts +42 -0
- package/package.json +4 -4
- package/sfdc/index.js +439 -202
- package/src/raml/api.raml +45 -0
- package/src/raml/luvio.raml +8 -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$j, StoreKeyMap, createResourceParams as createResourceParams$j } 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$s = "c0cdffc7d0ce780dd3dbd6844cb94df8";
|
|
116
|
+
function validate$w(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$u(obj, path = 'ClauseCategoryResponse') {
|
|
|
138
138
|
})();
|
|
139
139
|
return v_error === undefined ? null : v_error;
|
|
140
140
|
}
|
|
141
|
-
const select$
|
|
141
|
+
const select$L = function ClauseCategoryResponseSelect() {
|
|
142
142
|
return {
|
|
143
143
|
kind: 'Fragment',
|
|
144
|
-
version: VERSION$
|
|
144
|
+
version: VERSION$s,
|
|
145
145
|
private: [],
|
|
146
146
|
selections: [
|
|
147
147
|
{
|
|
@@ -160,7 +160,7 @@ const select$I = function ClauseCategoryResponseSelect() {
|
|
|
160
160
|
]
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
|
-
function equals$
|
|
163
|
+
function equals$s(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$q(existing, incoming) {
|
|
|
187
187
|
return true;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
const TTL$
|
|
191
|
-
const VERSION$
|
|
192
|
-
function validate$
|
|
190
|
+
const TTL$c = 30000;
|
|
191
|
+
const VERSION$r = "6f04ab6a782443d237ece40b87b8d756";
|
|
192
|
+
function validate$v(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$t(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$w(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$t(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$h = 'ClauseCategoriesResponse';
|
|
216
|
+
function normalize$h(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$K = function ClauseCategoriesResponseSelect() {
|
|
220
|
+
const { selections: ClauseCategoryResponse__selections, opaque: ClauseCategoryResponse__opaque, } = select$L();
|
|
221
221
|
return {
|
|
222
222
|
kind: 'Fragment',
|
|
223
|
-
version: VERSION$
|
|
223
|
+
version: VERSION$r,
|
|
224
224
|
private: [],
|
|
225
225
|
selections: [
|
|
226
226
|
{
|
|
@@ -232,11 +232,11 @@ const select$H = function ClauseCategoriesResponseSelect() {
|
|
|
232
232
|
]
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
-
function equals$
|
|
235
|
+
function equals$r(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$s(existing_clauseCategories_item, incoming_clauseCategories_item))) {
|
|
240
240
|
return false;
|
|
241
241
|
}
|
|
242
242
|
});
|
|
@@ -245,44 +245,44 @@ function equals$p(existing, incoming) {
|
|
|
245
245
|
}
|
|
246
246
|
return true;
|
|
247
247
|
}
|
|
248
|
-
const ingest$
|
|
248
|
+
const ingest$h = function ClauseCategoriesResponseIngest(input, path, luvio, store, timestamp) {
|
|
249
249
|
if (process.env.NODE_ENV !== 'production') {
|
|
250
|
-
const validateError = validate$
|
|
250
|
+
const validateError = validate$v(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$c;
|
|
257
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "docgen", VERSION$r, RepresentationType$h, equals$r);
|
|
258
258
|
return createLink(key);
|
|
259
259
|
};
|
|
260
|
-
function getTypeCacheKeys$
|
|
260
|
+
function getTypeCacheKeys$h(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$h,
|
|
266
266
|
mergeable: false
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
function select$
|
|
271
|
-
return select$
|
|
270
|
+
function select$J(luvio, params) {
|
|
271
|
+
return select$K();
|
|
272
272
|
}
|
|
273
|
-
function keyBuilder$
|
|
273
|
+
function keyBuilder$p(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$i(storeKeyMap, luvio, resourceParams, response) {
|
|
277
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
|
|
278
278
|
}
|
|
279
|
-
function ingestSuccess$
|
|
279
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
280
280
|
const { body } = response;
|
|
281
|
-
const key = keyBuilder$
|
|
282
|
-
luvio.storeIngest(key, ingest$
|
|
281
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
282
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
283
283
|
const snapshot = luvio.storeLookup({
|
|
284
284
|
recordId: key,
|
|
285
|
-
node: select$
|
|
285
|
+
node: select$J(),
|
|
286
286
|
variables: {},
|
|
287
287
|
}, snapshotRefresh);
|
|
288
288
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -294,18 +294,18 @@ function ingestSuccess$h(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$p(luvio, params);
|
|
298
298
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
299
299
|
const storeMetadataParams = {
|
|
300
|
-
ttl: TTL$
|
|
300
|
+
ttl: TTL$c,
|
|
301
301
|
namespace: keyPrefix,
|
|
302
|
-
version: VERSION$
|
|
303
|
-
representationName: RepresentationType$
|
|
302
|
+
version: VERSION$r,
|
|
303
|
+
representationName: RepresentationType$h
|
|
304
304
|
};
|
|
305
305
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
306
306
|
return errorSnapshot;
|
|
307
307
|
}
|
|
308
|
-
function createResourceRequest$
|
|
308
|
+
function createResourceRequest$i(config) {
|
|
309
309
|
const headers = {};
|
|
310
310
|
return {
|
|
311
311
|
baseUri: '/services/data/v63.0',
|
|
@@ -319,62 +319,62 @@ function createResourceRequest$h(config) {
|
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
const adapterName$
|
|
322
|
+
const adapterName$i = '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$i, getDocumentClauseSetCategories_ConfigPropertyMetadata);
|
|
329
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$j(getDocumentClauseSetCategories_ConfigPropertyMetadata);
|
|
330
|
+
function keyBuilder$o(luvio, config) {
|
|
331
|
+
const resourceParams = createResourceParams$i(config);
|
|
332
|
+
return keyBuilder$p(luvio, resourceParams);
|
|
333
333
|
}
|
|
334
|
-
function typeCheckConfig$
|
|
334
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
335
335
|
const config = {};
|
|
336
|
-
typeCheckConfig$
|
|
336
|
+
typeCheckConfig$j(untrustedConfig, config, getDocumentClauseSetCategories_ConfigPropertyMetadata);
|
|
337
337
|
return config;
|
|
338
338
|
}
|
|
339
|
-
function validateAdapterConfig$
|
|
339
|
+
function validateAdapterConfig$i(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$i(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$i(config);
|
|
354
|
+
return select$J();
|
|
355
355
|
}
|
|
356
356
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
357
|
-
const snapshot = ingestSuccess$
|
|
357
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
358
358
|
config,
|
|
359
|
-
resolve: () => buildNetworkSnapshot$
|
|
359
|
+
resolve: () => buildNetworkSnapshot$i(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$i(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$i(luvio, config, options) {
|
|
371
|
+
const resourceParams = createResourceParams$i(config);
|
|
372
|
+
const request = createResourceRequest$i(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$i(cache, luvio, resourceParams, response.body);
|
|
378
378
|
return cache;
|
|
379
379
|
});
|
|
380
380
|
}, (response) => {
|
|
@@ -382,23 +382,23 @@ function buildNetworkSnapshot$h(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$i, 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$o(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$i(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$i(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$q = "29a9e61a0952cff8f7e98cc7d8857c62";
|
|
411
|
+
function validate$u(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$s(obj, path = 'DocumentClauseSetResponse') {
|
|
|
446
446
|
})();
|
|
447
447
|
return v_error === undefined ? null : v_error;
|
|
448
448
|
}
|
|
449
|
-
const select$
|
|
449
|
+
const select$I = function DocumentClauseSetResponseSelect() {
|
|
450
450
|
return {
|
|
451
451
|
kind: 'Fragment',
|
|
452
|
-
version: VERSION$
|
|
452
|
+
version: VERSION$q,
|
|
453
453
|
private: [],
|
|
454
454
|
selections: [
|
|
455
455
|
{
|
|
@@ -479,7 +479,7 @@ const select$F = function DocumentClauseSetResponseSelect() {
|
|
|
479
479
|
]
|
|
480
480
|
};
|
|
481
481
|
};
|
|
482
|
-
function equals$
|
|
482
|
+
function equals$q(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$o(existing, incoming) {
|
|
|
513
513
|
return true;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
const TTL$
|
|
517
|
-
const VERSION$
|
|
518
|
-
function validate$
|
|
516
|
+
const TTL$b = 100;
|
|
517
|
+
const VERSION$p = "c6ad1fbdbd4d8cd718a8a62c63216687";
|
|
518
|
+
function validate$t(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$r(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$u(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$r(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$g = 'DocumentClauseSetListResponse';
|
|
542
|
+
function normalize$g(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$H = function DocumentClauseSetListResponseSelect() {
|
|
546
|
+
const { selections: DocumentClauseSetResponse__selections, opaque: DocumentClauseSetResponse__opaque, } = select$I();
|
|
547
547
|
return {
|
|
548
548
|
kind: 'Fragment',
|
|
549
|
-
version: VERSION$
|
|
549
|
+
version: VERSION$p,
|
|
550
550
|
private: [],
|
|
551
551
|
selections: [
|
|
552
552
|
{
|
|
@@ -558,11 +558,11 @@ const select$E = function DocumentClauseSetListResponseSelect() {
|
|
|
558
558
|
]
|
|
559
559
|
};
|
|
560
560
|
};
|
|
561
|
-
function equals$
|
|
561
|
+
function equals$p(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$q(existing_documentClauseSets_item, incoming_documentClauseSets_item))) {
|
|
566
566
|
return false;
|
|
567
567
|
}
|
|
568
568
|
});
|
|
@@ -571,44 +571,44 @@ function equals$n(existing, incoming) {
|
|
|
571
571
|
}
|
|
572
572
|
return true;
|
|
573
573
|
}
|
|
574
|
-
const ingest$
|
|
574
|
+
const ingest$g = function DocumentClauseSetListResponseIngest(input, path, luvio, store, timestamp) {
|
|
575
575
|
if (process.env.NODE_ENV !== 'production') {
|
|
576
|
-
const validateError = validate$
|
|
576
|
+
const validateError = validate$t(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$b;
|
|
583
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "docgen", VERSION$p, RepresentationType$g, equals$p);
|
|
584
584
|
return createLink(key);
|
|
585
585
|
};
|
|
586
|
-
function getTypeCacheKeys$
|
|
586
|
+
function getTypeCacheKeys$g(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$g,
|
|
592
592
|
mergeable: false
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
function select$
|
|
597
|
-
return select$
|
|
596
|
+
function select$G(luvio, params) {
|
|
597
|
+
return select$H();
|
|
598
598
|
}
|
|
599
|
-
function keyBuilder$
|
|
599
|
+
function keyBuilder$n(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$h(storeKeyMap, luvio, resourceParams, response) {
|
|
603
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$n(luvio, resourceParams));
|
|
604
604
|
}
|
|
605
|
-
function ingestSuccess$
|
|
605
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
606
606
|
const { body } = response;
|
|
607
|
-
const key = keyBuilder$
|
|
608
|
-
luvio.storeIngest(key, ingest$
|
|
607
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
608
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
609
609
|
const snapshot = luvio.storeLookup({
|
|
610
610
|
recordId: key,
|
|
611
|
-
node: select$
|
|
611
|
+
node: select$G(),
|
|
612
612
|
variables: {},
|
|
613
613
|
}, snapshotRefresh);
|
|
614
614
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -620,18 +620,18 @@ function ingestSuccess$g(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$n(luvio, params);
|
|
624
624
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
625
625
|
const storeMetadataParams = {
|
|
626
|
-
ttl: TTL$
|
|
626
|
+
ttl: TTL$b,
|
|
627
627
|
namespace: keyPrefix,
|
|
628
|
-
version: VERSION$
|
|
629
|
-
representationName: RepresentationType$
|
|
628
|
+
version: VERSION$p,
|
|
629
|
+
representationName: RepresentationType$g
|
|
630
630
|
};
|
|
631
631
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
632
632
|
return errorSnapshot;
|
|
633
633
|
}
|
|
634
|
-
function createResourceRequest$
|
|
634
|
+
function createResourceRequest$h(config) {
|
|
635
635
|
const headers = {};
|
|
636
636
|
return {
|
|
637
637
|
baseUri: '/services/data/v63.0',
|
|
@@ -645,7 +645,7 @@ function createResourceRequest$g(config) {
|
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
-
const adapterName$
|
|
648
|
+
const adapterName$h = '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$h, getDocumentClauseSets_ConfigPropertyMetadata);
|
|
658
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(getDocumentClauseSets_ConfigPropertyMetadata);
|
|
659
|
+
function keyBuilder$m(luvio, config) {
|
|
660
|
+
const resourceParams = createResourceParams$h(config);
|
|
661
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
662
662
|
}
|
|
663
|
-
function typeCheckConfig$
|
|
663
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
664
664
|
const config = {};
|
|
665
|
-
typeCheckConfig$
|
|
665
|
+
typeCheckConfig$j(untrustedConfig, config, getDocumentClauseSets_ConfigPropertyMetadata);
|
|
666
666
|
return config;
|
|
667
667
|
}
|
|
668
|
-
function validateAdapterConfig$
|
|
668
|
+
function validateAdapterConfig$h(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$h(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$h(config);
|
|
683
|
+
return select$G();
|
|
684
684
|
}
|
|
685
685
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
686
|
-
const snapshot = ingestSuccess$
|
|
686
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
687
687
|
config,
|
|
688
|
-
resolve: () => buildNetworkSnapshot$
|
|
688
|
+
resolve: () => buildNetworkSnapshot$h(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$h(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$h(luvio, config, options) {
|
|
700
|
+
const resourceParams = createResourceParams$h(config);
|
|
701
|
+
const request = createResourceRequest$h(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$h(cache, luvio, resourceParams, response.body);
|
|
707
707
|
return cache;
|
|
708
708
|
});
|
|
709
709
|
}, (response) => {
|
|
@@ -711,23 +711,23 @@ function buildNetworkSnapshot$g(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$h, 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$m(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$h(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$h(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$a = 100;
|
|
740
|
+
const VERSION$o = "a3afe2a67715551a49f0d59eafb639aa";
|
|
741
|
+
function validate$s(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$q(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$f = 'DocumentClauseFieldsResponse';
|
|
767
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
768
768
|
return input;
|
|
769
769
|
}
|
|
770
|
-
const select$
|
|
770
|
+
const select$F = function DocumentClauseFieldsResponseSelect() {
|
|
771
771
|
return {
|
|
772
772
|
kind: 'Fragment',
|
|
773
|
-
version: VERSION$
|
|
773
|
+
version: VERSION$o,
|
|
774
774
|
private: [],
|
|
775
775
|
selections: [
|
|
776
776
|
{
|
|
@@ -786,7 +786,7 @@ const select$C = function DocumentClauseFieldsResponseSelect() {
|
|
|
786
786
|
]
|
|
787
787
|
};
|
|
788
788
|
};
|
|
789
|
-
function equals$
|
|
789
|
+
function equals$o(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$m(existing, incoming) {
|
|
|
804
804
|
}
|
|
805
805
|
return true;
|
|
806
806
|
}
|
|
807
|
-
const ingest$
|
|
807
|
+
const ingest$f = function DocumentClauseFieldsResponseIngest(input, path, luvio, store, timestamp) {
|
|
808
808
|
if (process.env.NODE_ENV !== 'production') {
|
|
809
|
-
const validateError = validate$
|
|
809
|
+
const validateError = validate$s(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$a;
|
|
816
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "docgen", VERSION$o, RepresentationType$f, equals$o);
|
|
817
817
|
return createLink(key);
|
|
818
818
|
};
|
|
819
|
-
function getTypeCacheKeys$
|
|
819
|
+
function getTypeCacheKeys$f(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$f,
|
|
825
825
|
mergeable: false
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
828
|
|
|
829
|
-
function select$
|
|
830
|
-
return select$
|
|
829
|
+
function select$E(luvio, params) {
|
|
830
|
+
return select$F();
|
|
831
831
|
}
|
|
832
|
-
function keyBuilder$
|
|
832
|
+
function keyBuilder$l(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$g(storeKeyMap, luvio, resourceParams, response) {
|
|
836
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
|
|
837
837
|
}
|
|
838
|
-
function ingestSuccess$
|
|
838
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
839
839
|
const { body } = response;
|
|
840
|
-
const key = keyBuilder$
|
|
841
|
-
luvio.storeIngest(key, ingest$
|
|
840
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
841
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
842
842
|
const snapshot = luvio.storeLookup({
|
|
843
843
|
recordId: key,
|
|
844
|
-
node: select$
|
|
844
|
+
node: select$E(),
|
|
845
845
|
variables: {},
|
|
846
846
|
}, snapshotRefresh);
|
|
847
847
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -853,18 +853,18 @@ function ingestSuccess$f(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$l(luvio, params);
|
|
857
857
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
858
858
|
const storeMetadataParams = {
|
|
859
|
-
ttl: TTL$
|
|
859
|
+
ttl: TTL$a,
|
|
860
860
|
namespace: keyPrefix,
|
|
861
|
-
version: VERSION$
|
|
862
|
-
representationName: RepresentationType$
|
|
861
|
+
version: VERSION$o,
|
|
862
|
+
representationName: RepresentationType$f
|
|
863
863
|
};
|
|
864
864
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
865
865
|
return errorSnapshot;
|
|
866
866
|
}
|
|
867
|
-
function createResourceRequest$
|
|
867
|
+
function createResourceRequest$g(config) {
|
|
868
868
|
const headers = {};
|
|
869
869
|
return {
|
|
870
870
|
baseUri: '/services/data/v63.0',
|
|
@@ -878,7 +878,7 @@ function createResourceRequest$f(config) {
|
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
-
const adapterName$
|
|
881
|
+
const adapterName$g = '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$g, getDocumentClauseFields_ConfigPropertyMetadata);
|
|
891
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(getDocumentClauseFields_ConfigPropertyMetadata);
|
|
892
|
+
function keyBuilder$k(luvio, config) {
|
|
893
|
+
const resourceParams = createResourceParams$g(config);
|
|
894
|
+
return keyBuilder$l(luvio, resourceParams);
|
|
895
895
|
}
|
|
896
|
-
function typeCheckConfig$
|
|
896
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
897
897
|
const config = {};
|
|
898
|
-
typeCheckConfig$
|
|
898
|
+
typeCheckConfig$j(untrustedConfig, config, getDocumentClauseFields_ConfigPropertyMetadata);
|
|
899
899
|
return config;
|
|
900
900
|
}
|
|
901
|
-
function validateAdapterConfig$
|
|
901
|
+
function validateAdapterConfig$g(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$g(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$g(config);
|
|
916
|
+
return select$E();
|
|
917
917
|
}
|
|
918
918
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
919
|
-
const snapshot = ingestSuccess$
|
|
919
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
920
920
|
config,
|
|
921
|
-
resolve: () => buildNetworkSnapshot$
|
|
921
|
+
resolve: () => buildNetworkSnapshot$g(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$g(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$g(luvio, config, options) {
|
|
933
|
+
const resourceParams = createResourceParams$g(config);
|
|
934
|
+
const request = createResourceRequest$g(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$g(cache, luvio, resourceParams, response.body);
|
|
940
940
|
return cache;
|
|
941
941
|
});
|
|
942
942
|
}, (response) => {
|
|
@@ -944,23 +944,23 @@ function buildNetworkSnapshot$f(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$g, 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$k(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$g(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$g(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$9 = 60000;
|
|
973
|
+
const VERSION$n = "af0246ac09fd1b3b2a939d90b8caa15d";
|
|
974
|
+
function validate$r(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$p(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$e = 'DocumentClausePromotionResponse';
|
|
993
|
+
function keyBuilder$j(luvio, config) {
|
|
994
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.isSuccess;
|
|
995
995
|
}
|
|
996
|
-
function keyBuilderFromType$
|
|
996
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
997
997
|
const keyParams = {
|
|
998
998
|
isSuccess: object.isSuccess
|
|
999
999
|
};
|
|
1000
|
-
return keyBuilder$
|
|
1000
|
+
return keyBuilder$j(luvio, keyParams);
|
|
1001
1001
|
}
|
|
1002
|
-
function normalize$
|
|
1002
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
1003
1003
|
return input;
|
|
1004
1004
|
}
|
|
1005
|
-
const select$
|
|
1005
|
+
const select$D = function DocumentClausePromotionResponseSelect() {
|
|
1006
1006
|
return {
|
|
1007
1007
|
kind: 'Fragment',
|
|
1008
|
-
version: VERSION$
|
|
1008
|
+
version: VERSION$n,
|
|
1009
1009
|
private: [],
|
|
1010
1010
|
selections: [
|
|
1011
1011
|
{
|
|
@@ -1019,7 +1019,7 @@ const select$A = function DocumentClausePromotionResponseSelect() {
|
|
|
1019
1019
|
]
|
|
1020
1020
|
};
|
|
1021
1021
|
};
|
|
1022
|
-
function equals$
|
|
1022
|
+
function equals$n(existing, incoming) {
|
|
1023
1023
|
const existing_isSuccess = existing.isSuccess;
|
|
1024
1024
|
const incoming_isSuccess = incoming.isSuccess;
|
|
1025
1025
|
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
@@ -1032,41 +1032,41 @@ function equals$l(existing, incoming) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
return true;
|
|
1034
1034
|
}
|
|
1035
|
-
const ingest$
|
|
1035
|
+
const ingest$e = function DocumentClausePromotionResponseIngest(input, path, luvio, store, timestamp) {
|
|
1036
1036
|
if (process.env.NODE_ENV !== 'production') {
|
|
1037
|
-
const validateError = validate$
|
|
1037
|
+
const validateError = validate$r(input);
|
|
1038
1038
|
if (validateError !== null) {
|
|
1039
1039
|
throw validateError;
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
|
-
const key = keyBuilderFromType$
|
|
1043
|
-
const ttlToUse = TTL$
|
|
1044
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1042
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
1043
|
+
const ttlToUse = TTL$9;
|
|
1044
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "docgen", VERSION$n, RepresentationType$e, equals$n);
|
|
1045
1045
|
return createLink(key);
|
|
1046
1046
|
};
|
|
1047
|
-
function getTypeCacheKeys$
|
|
1047
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
1048
1048
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1049
|
-
const rootKey = keyBuilderFromType$
|
|
1049
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
1050
1050
|
rootKeySet.set(rootKey, {
|
|
1051
1051
|
namespace: keyPrefix,
|
|
1052
|
-
representationName: RepresentationType$
|
|
1052
|
+
representationName: RepresentationType$e,
|
|
1053
1053
|
mergeable: false
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
|
-
function select$
|
|
1058
|
-
return select$
|
|
1057
|
+
function select$C(luvio, params) {
|
|
1058
|
+
return select$D();
|
|
1059
1059
|
}
|
|
1060
|
-
function getResponseCacheKeys$
|
|
1061
|
-
getTypeCacheKeys$
|
|
1060
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
1061
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
1062
1062
|
}
|
|
1063
|
-
function ingestSuccess$
|
|
1063
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
1064
1064
|
const { body } = response;
|
|
1065
|
-
const key = keyBuilderFromType$
|
|
1066
|
-
luvio.storeIngest(key, ingest$
|
|
1065
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
1066
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
1067
1067
|
const snapshot = luvio.storeLookup({
|
|
1068
1068
|
recordId: key,
|
|
1069
|
-
node: select$
|
|
1069
|
+
node: select$C(),
|
|
1070
1070
|
variables: {},
|
|
1071
1071
|
});
|
|
1072
1072
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1077,7 +1077,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
1077
1077
|
deepFreeze(snapshot.data);
|
|
1078
1078
|
return snapshot;
|
|
1079
1079
|
}
|
|
1080
|
-
function createResourceRequest$
|
|
1080
|
+
function createResourceRequest$f(config) {
|
|
1081
1081
|
const headers = {};
|
|
1082
1082
|
return {
|
|
1083
1083
|
baseUri: '/services/data/v63.0',
|
|
@@ -1091,7 +1091,7 @@ function createResourceRequest$e(config) {
|
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
|
-
const adapterName$
|
|
1094
|
+
const adapterName$f = 'postDocumentClausePromotion';
|
|
1095
1095
|
const postDocumentClausePromotion_ConfigPropertyMetadata = [
|
|
1096
1096
|
generateParamConfigMetadata('clauseContent', true, 2 /* Body */, 0 /* String */),
|
|
1097
1097
|
generateParamConfigMetadata('clauseDescription', true, 2 /* Body */, 0 /* String */),
|
|
@@ -1102,37 +1102,37 @@ const postDocumentClausePromotion_ConfigPropertyMetadata = [
|
|
|
1102
1102
|
generateParamConfigMetadata('nonStandardClauseRecordId', true, 2 /* Body */, 0 /* String */),
|
|
1103
1103
|
generateParamConfigMetadata('notifyOnCompletion', true, 2 /* Body */, 1 /* Boolean */),
|
|
1104
1104
|
];
|
|
1105
|
-
const postDocumentClausePromotion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1106
|
-
const createResourceParams$
|
|
1107
|
-
function typeCheckConfig$
|
|
1105
|
+
const postDocumentClausePromotion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postDocumentClausePromotion_ConfigPropertyMetadata);
|
|
1106
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(postDocumentClausePromotion_ConfigPropertyMetadata);
|
|
1107
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
1108
1108
|
const config = {};
|
|
1109
|
-
typeCheckConfig$
|
|
1109
|
+
typeCheckConfig$j(untrustedConfig, config, postDocumentClausePromotion_ConfigPropertyMetadata);
|
|
1110
1110
|
return config;
|
|
1111
1111
|
}
|
|
1112
|
-
function validateAdapterConfig$
|
|
1112
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
1113
1113
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1114
1114
|
return null;
|
|
1115
1115
|
}
|
|
1116
1116
|
if (process.env.NODE_ENV !== 'production') {
|
|
1117
1117
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1118
1118
|
}
|
|
1119
|
-
const config = typeCheckConfig$
|
|
1119
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
1120
1120
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1121
1121
|
return null;
|
|
1122
1122
|
}
|
|
1123
1123
|
return config;
|
|
1124
1124
|
}
|
|
1125
|
-
function buildNetworkSnapshot$
|
|
1126
|
-
const resourceParams = createResourceParams$
|
|
1127
|
-
const request = createResourceRequest$
|
|
1125
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
1126
|
+
const resourceParams = createResourceParams$f(config);
|
|
1127
|
+
const request = createResourceRequest$f(resourceParams);
|
|
1128
1128
|
return luvio.dispatchResourceRequest(request, options)
|
|
1129
1129
|
.then((response) => {
|
|
1130
1130
|
return luvio.handleSuccessResponse(() => {
|
|
1131
|
-
const snapshot = ingestSuccess$
|
|
1131
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
1132
1132
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1133
1133
|
}, () => {
|
|
1134
1134
|
const cache = new StoreKeyMap();
|
|
1135
|
-
getResponseCacheKeys$
|
|
1135
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
1136
1136
|
return cache;
|
|
1137
1137
|
});
|
|
1138
1138
|
}, (response) => {
|
|
@@ -1142,17 +1142,17 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
const postDocumentClausePromotionAdapterFactory = (luvio) => {
|
|
1144
1144
|
return function postDocumentClausePromotion(untrustedConfig) {
|
|
1145
|
-
const config = validateAdapterConfig$
|
|
1145
|
+
const config = validateAdapterConfig$f(untrustedConfig, postDocumentClausePromotion_ConfigPropertyNames);
|
|
1146
1146
|
// Invalid or incomplete config
|
|
1147
1147
|
if (config === null) {
|
|
1148
1148
|
throw new Error('Invalid config for "postDocumentClausePromotion"');
|
|
1149
1149
|
}
|
|
1150
|
-
return buildNetworkSnapshot$
|
|
1150
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
1151
1151
|
};
|
|
1152
1152
|
};
|
|
1153
1153
|
|
|
1154
|
-
const VERSION$
|
|
1155
|
-
function validate$
|
|
1154
|
+
const VERSION$m = "bcecd35d822e11f3f4857a8577050951";
|
|
1155
|
+
function validate$q(obj, path = 'ContentLinkDetailRepresentation') {
|
|
1156
1156
|
const v_error = (() => {
|
|
1157
1157
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1158
1158
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1170,10 +1170,10 @@ function validate$o(obj, path = 'ContentLinkDetailRepresentation') {
|
|
|
1170
1170
|
})();
|
|
1171
1171
|
return v_error === undefined ? null : v_error;
|
|
1172
1172
|
}
|
|
1173
|
-
const select$
|
|
1173
|
+
const select$B = function ContentLinkDetailRepresentationSelect() {
|
|
1174
1174
|
return {
|
|
1175
1175
|
kind: 'Fragment',
|
|
1176
|
-
version: VERSION$
|
|
1176
|
+
version: VERSION$m,
|
|
1177
1177
|
private: [],
|
|
1178
1178
|
selections: [
|
|
1179
1179
|
{
|
|
@@ -1187,7 +1187,7 @@ const select$y = function ContentLinkDetailRepresentationSelect() {
|
|
|
1187
1187
|
]
|
|
1188
1188
|
};
|
|
1189
1189
|
};
|
|
1190
|
-
function equals$
|
|
1190
|
+
function equals$m(existing, incoming) {
|
|
1191
1191
|
const existing_content = existing.content;
|
|
1192
1192
|
const incoming_content = incoming.content;
|
|
1193
1193
|
if (!(existing_content === incoming_content)) {
|
|
@@ -1201,8 +1201,8 @@ function equals$k(existing, incoming) {
|
|
|
1201
1201
|
return true;
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
|
-
const VERSION$
|
|
1205
|
-
function validate$
|
|
1204
|
+
const VERSION$l = "de7a13661428f2946d41eeaf8fc6bb91";
|
|
1205
|
+
function validate$p(obj, path = 'FailedContentLinkListRepresentation') {
|
|
1206
1206
|
const v_error = (() => {
|
|
1207
1207
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1208
1208
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1220,10 +1220,10 @@ function validate$n(obj, path = 'FailedContentLinkListRepresentation') {
|
|
|
1220
1220
|
})();
|
|
1221
1221
|
return v_error === undefined ? null : v_error;
|
|
1222
1222
|
}
|
|
1223
|
-
const select$
|
|
1223
|
+
const select$A = function FailedContentLinkListRepresentationSelect() {
|
|
1224
1224
|
return {
|
|
1225
1225
|
kind: 'Fragment',
|
|
1226
|
-
version: VERSION$
|
|
1226
|
+
version: VERSION$l,
|
|
1227
1227
|
private: [],
|
|
1228
1228
|
selections: [
|
|
1229
1229
|
{
|
|
@@ -1237,7 +1237,7 @@ const select$x = function FailedContentLinkListRepresentationSelect() {
|
|
|
1237
1237
|
]
|
|
1238
1238
|
};
|
|
1239
1239
|
};
|
|
1240
|
-
function equals$
|
|
1240
|
+
function equals$l(existing, incoming) {
|
|
1241
1241
|
const existing_failedContentLinkId = existing.failedContentLinkId;
|
|
1242
1242
|
const incoming_failedContentLinkId = incoming.failedContentLinkId;
|
|
1243
1243
|
if (!(existing_failedContentLinkId === incoming_failedContentLinkId)) {
|
|
@@ -1251,9 +1251,9 @@ function equals$j(existing, incoming) {
|
|
|
1251
1251
|
return true;
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
const TTL$
|
|
1255
|
-
const VERSION$
|
|
1256
|
-
function validate$
|
|
1254
|
+
const TTL$8 = 60000;
|
|
1255
|
+
const VERSION$k = "1565c3d42af0656c3fee1a89447c1a2e";
|
|
1256
|
+
function validate$o(obj, path = 'ContentLinkListRepresentation') {
|
|
1257
1257
|
const v_error = (() => {
|
|
1258
1258
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1259
1259
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1267,7 +1267,7 @@ function validate$m(obj, path = 'ContentLinkListRepresentation') {
|
|
|
1267
1267
|
for (let i = 0; i < obj_contentLinkDataList.length; i++) {
|
|
1268
1268
|
const obj_contentLinkDataList_item = obj_contentLinkDataList[i];
|
|
1269
1269
|
const path_contentLinkDataList_item = path_contentLinkDataList + '[' + i + ']';
|
|
1270
|
-
const referencepath_contentLinkDataList_itemValidationError = validate$
|
|
1270
|
+
const referencepath_contentLinkDataList_itemValidationError = validate$q(obj_contentLinkDataList_item, path_contentLinkDataList_item);
|
|
1271
1271
|
if (referencepath_contentLinkDataList_itemValidationError !== null) {
|
|
1272
1272
|
let message = 'Object doesn\'t match ContentLinkDetailRepresentation (at "' + path_contentLinkDataList_item + '")\n';
|
|
1273
1273
|
message += referencepath_contentLinkDataList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1284,7 +1284,7 @@ function validate$m(obj, path = 'ContentLinkListRepresentation') {
|
|
|
1284
1284
|
for (let i = 0; i < obj_failedContentLinkList.length; i++) {
|
|
1285
1285
|
const obj_failedContentLinkList_item = obj_failedContentLinkList[i];
|
|
1286
1286
|
const path_failedContentLinkList_item = path_failedContentLinkList + '[' + i + ']';
|
|
1287
|
-
const referencepath_failedContentLinkList_itemValidationError = validate$
|
|
1287
|
+
const referencepath_failedContentLinkList_itemValidationError = validate$p(obj_failedContentLinkList_item, path_failedContentLinkList_item);
|
|
1288
1288
|
if (referencepath_failedContentLinkList_itemValidationError !== null) {
|
|
1289
1289
|
let message = 'Object doesn\'t match FailedContentLinkListRepresentation (at "' + path_failedContentLinkList_item + '")\n';
|
|
1290
1290
|
message += referencepath_failedContentLinkList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1300,25 +1300,25 @@ function validate$m(obj, path = 'ContentLinkListRepresentation') {
|
|
|
1300
1300
|
})();
|
|
1301
1301
|
return v_error === undefined ? null : v_error;
|
|
1302
1302
|
}
|
|
1303
|
-
const RepresentationType$
|
|
1304
|
-
function keyBuilder$
|
|
1305
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1303
|
+
const RepresentationType$d = 'ContentLinkListRepresentation';
|
|
1304
|
+
function keyBuilder$i(luvio, config) {
|
|
1305
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.referenceObjectId;
|
|
1306
1306
|
}
|
|
1307
|
-
function keyBuilderFromType$
|
|
1307
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
1308
1308
|
const keyParams = {
|
|
1309
1309
|
referenceObjectId: object.referenceObjectId
|
|
1310
1310
|
};
|
|
1311
|
-
return keyBuilder$
|
|
1311
|
+
return keyBuilder$i(luvio, keyParams);
|
|
1312
1312
|
}
|
|
1313
|
-
function normalize$
|
|
1313
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
1314
1314
|
return input;
|
|
1315
1315
|
}
|
|
1316
|
-
const select$
|
|
1317
|
-
const { selections: ContentLinkDetailRepresentation__selections, opaque: ContentLinkDetailRepresentation__opaque, } = select$
|
|
1318
|
-
const { selections: FailedContentLinkListRepresentation__selections, opaque: FailedContentLinkListRepresentation__opaque, } = select$
|
|
1316
|
+
const select$z = function ContentLinkListRepresentationSelect() {
|
|
1317
|
+
const { selections: ContentLinkDetailRepresentation__selections, opaque: ContentLinkDetailRepresentation__opaque, } = select$B();
|
|
1318
|
+
const { selections: FailedContentLinkListRepresentation__selections, opaque: FailedContentLinkListRepresentation__opaque, } = select$A();
|
|
1319
1319
|
return {
|
|
1320
1320
|
kind: 'Fragment',
|
|
1321
|
-
version: VERSION$
|
|
1321
|
+
version: VERSION$k,
|
|
1322
1322
|
private: [],
|
|
1323
1323
|
selections: [
|
|
1324
1324
|
{
|
|
@@ -1342,7 +1342,7 @@ const select$w = function ContentLinkListRepresentationSelect() {
|
|
|
1342
1342
|
]
|
|
1343
1343
|
};
|
|
1344
1344
|
};
|
|
1345
|
-
function equals$
|
|
1345
|
+
function equals$k(existing, incoming) {
|
|
1346
1346
|
const existing_referenceObjectId = existing.referenceObjectId;
|
|
1347
1347
|
const incoming_referenceObjectId = incoming.referenceObjectId;
|
|
1348
1348
|
if (!(existing_referenceObjectId === incoming_referenceObjectId)) {
|
|
@@ -1358,7 +1358,7 @@ function equals$i(existing, incoming) {
|
|
|
1358
1358
|
return false;
|
|
1359
1359
|
}
|
|
1360
1360
|
const equals_contentLinkDataList_items = equalsArray(existing_contentLinkDataList, incoming_contentLinkDataList, (existing_contentLinkDataList_item, incoming_contentLinkDataList_item) => {
|
|
1361
|
-
if (!(equals$
|
|
1361
|
+
if (!(equals$m(existing_contentLinkDataList_item, incoming_contentLinkDataList_item))) {
|
|
1362
1362
|
return false;
|
|
1363
1363
|
}
|
|
1364
1364
|
});
|
|
@@ -1376,7 +1376,7 @@ function equals$i(existing, incoming) {
|
|
|
1376
1376
|
return false;
|
|
1377
1377
|
}
|
|
1378
1378
|
const equals_failedContentLinkList_items = equalsArray(existing_failedContentLinkList, incoming_failedContentLinkList, (existing_failedContentLinkList_item, incoming_failedContentLinkList_item) => {
|
|
1379
|
-
if (!(equals$
|
|
1379
|
+
if (!(equals$l(existing_failedContentLinkList_item, incoming_failedContentLinkList_item))) {
|
|
1380
1380
|
return false;
|
|
1381
1381
|
}
|
|
1382
1382
|
});
|
|
@@ -1386,41 +1386,41 @@ function equals$i(existing, incoming) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
return true;
|
|
1388
1388
|
}
|
|
1389
|
-
const ingest$
|
|
1389
|
+
const ingest$d = function ContentLinkListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1390
1390
|
if (process.env.NODE_ENV !== 'production') {
|
|
1391
|
-
const validateError = validate$
|
|
1391
|
+
const validateError = validate$o(input);
|
|
1392
1392
|
if (validateError !== null) {
|
|
1393
1393
|
throw validateError;
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
|
-
const key = keyBuilderFromType$
|
|
1397
|
-
const ttlToUse = TTL$
|
|
1398
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1396
|
+
const key = keyBuilderFromType$8(luvio, input);
|
|
1397
|
+
const ttlToUse = TTL$8;
|
|
1398
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "docgen", VERSION$k, RepresentationType$d, equals$k);
|
|
1399
1399
|
return createLink(key);
|
|
1400
1400
|
};
|
|
1401
|
-
function getTypeCacheKeys$
|
|
1401
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
1402
1402
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1403
|
-
const rootKey = keyBuilderFromType$
|
|
1403
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
1404
1404
|
rootKeySet.set(rootKey, {
|
|
1405
1405
|
namespace: keyPrefix,
|
|
1406
|
-
representationName: RepresentationType$
|
|
1406
|
+
representationName: RepresentationType$d,
|
|
1407
1407
|
mergeable: false
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
1410
|
|
|
1411
|
-
function select$
|
|
1412
|
-
return select$
|
|
1411
|
+
function select$y(luvio, params) {
|
|
1412
|
+
return select$z();
|
|
1413
1413
|
}
|
|
1414
|
-
function getResponseCacheKeys$
|
|
1415
|
-
getTypeCacheKeys$
|
|
1414
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
1415
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
1416
1416
|
}
|
|
1417
|
-
function ingestSuccess$
|
|
1417
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
1418
1418
|
const { body } = response;
|
|
1419
|
-
const key = keyBuilderFromType$
|
|
1420
|
-
luvio.storeIngest(key, ingest$
|
|
1419
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
1420
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
1421
1421
|
const snapshot = luvio.storeLookup({
|
|
1422
1422
|
recordId: key,
|
|
1423
|
-
node: select$
|
|
1423
|
+
node: select$y(),
|
|
1424
1424
|
variables: {},
|
|
1425
1425
|
});
|
|
1426
1426
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1431,7 +1431,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
1431
1431
|
deepFreeze(snapshot.data);
|
|
1432
1432
|
return snapshot;
|
|
1433
1433
|
}
|
|
1434
|
-
function createResourceRequest$
|
|
1434
|
+
function createResourceRequest$e(config) {
|
|
1435
1435
|
const headers = {};
|
|
1436
1436
|
return {
|
|
1437
1437
|
baseUri: '/services/data/v63.0',
|
|
@@ -1445,42 +1445,42 @@ function createResourceRequest$d(config) {
|
|
|
1445
1445
|
};
|
|
1446
1446
|
}
|
|
1447
1447
|
|
|
1448
|
-
const adapterName$
|
|
1448
|
+
const adapterName$e = 'getContentLinkInput';
|
|
1449
1449
|
const getContentLinkInput_ConfigPropertyMetadata = [
|
|
1450
1450
|
generateParamConfigMetadata('contentLinkIds', true, 2 /* Body */, 0 /* String */, true),
|
|
1451
1451
|
generateParamConfigMetadata('referenceObjectId', true, 2 /* Body */, 0 /* String */),
|
|
1452
1452
|
];
|
|
1453
|
-
const getContentLinkInput_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1454
|
-
const createResourceParams$
|
|
1455
|
-
function typeCheckConfig$
|
|
1453
|
+
const getContentLinkInput_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getContentLinkInput_ConfigPropertyMetadata);
|
|
1454
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(getContentLinkInput_ConfigPropertyMetadata);
|
|
1455
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
1456
1456
|
const config = {};
|
|
1457
|
-
typeCheckConfig$
|
|
1457
|
+
typeCheckConfig$j(untrustedConfig, config, getContentLinkInput_ConfigPropertyMetadata);
|
|
1458
1458
|
return config;
|
|
1459
1459
|
}
|
|
1460
|
-
function validateAdapterConfig$
|
|
1460
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
1461
1461
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1462
1462
|
return null;
|
|
1463
1463
|
}
|
|
1464
1464
|
if (process.env.NODE_ENV !== 'production') {
|
|
1465
1465
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1466
1466
|
}
|
|
1467
|
-
const config = typeCheckConfig$
|
|
1467
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
1468
1468
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1469
1469
|
return null;
|
|
1470
1470
|
}
|
|
1471
1471
|
return config;
|
|
1472
1472
|
}
|
|
1473
|
-
function buildNetworkSnapshot$
|
|
1474
|
-
const resourceParams = createResourceParams$
|
|
1475
|
-
const request = createResourceRequest$
|
|
1473
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
1474
|
+
const resourceParams = createResourceParams$e(config);
|
|
1475
|
+
const request = createResourceRequest$e(resourceParams);
|
|
1476
1476
|
return luvio.dispatchResourceRequest(request, options)
|
|
1477
1477
|
.then((response) => {
|
|
1478
1478
|
return luvio.handleSuccessResponse(() => {
|
|
1479
|
-
const snapshot = ingestSuccess$
|
|
1479
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
1480
1480
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1481
1481
|
}, () => {
|
|
1482
1482
|
const cache = new StoreKeyMap();
|
|
1483
|
-
getResponseCacheKeys$
|
|
1483
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
1484
1484
|
return cache;
|
|
1485
1485
|
});
|
|
1486
1486
|
}, (response) => {
|
|
@@ -1490,17 +1490,17 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
const getContentLinkInputAdapterFactory = (luvio) => {
|
|
1492
1492
|
return function getContentLinkInput(untrustedConfig) {
|
|
1493
|
-
const config = validateAdapterConfig$
|
|
1493
|
+
const config = validateAdapterConfig$e(untrustedConfig, getContentLinkInput_ConfigPropertyNames);
|
|
1494
1494
|
// Invalid or incomplete config
|
|
1495
1495
|
if (config === null) {
|
|
1496
1496
|
throw new Error('Invalid config for "getContentLinkInput"');
|
|
1497
1497
|
}
|
|
1498
|
-
return buildNetworkSnapshot$
|
|
1498
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
1499
1499
|
};
|
|
1500
1500
|
};
|
|
1501
1501
|
|
|
1502
|
-
const VERSION$
|
|
1503
|
-
function validate$
|
|
1502
|
+
const VERSION$j = "c8652b5c3ad8c532087704340d3cad55";
|
|
1503
|
+
function validate$n(obj, path = 'GenericOutputRepresentation') {
|
|
1504
1504
|
const v_error = (() => {
|
|
1505
1505
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1506
1506
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1520,23 +1520,23 @@ function validate$l(obj, path = 'GenericOutputRepresentation') {
|
|
|
1520
1520
|
})();
|
|
1521
1521
|
return v_error === undefined ? null : v_error;
|
|
1522
1522
|
}
|
|
1523
|
-
const RepresentationType$
|
|
1524
|
-
function keyBuilder$
|
|
1525
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1523
|
+
const RepresentationType$c = 'GenericOutputRepresentation';
|
|
1524
|
+
function keyBuilder$h(luvio, config) {
|
|
1525
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.id;
|
|
1526
1526
|
}
|
|
1527
|
-
function keyBuilderFromType$
|
|
1527
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
1528
1528
|
const keyParams = {
|
|
1529
1529
|
id: object.id
|
|
1530
1530
|
};
|
|
1531
|
-
return keyBuilder$
|
|
1531
|
+
return keyBuilder$h(luvio, keyParams);
|
|
1532
1532
|
}
|
|
1533
|
-
function normalize$
|
|
1533
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
1534
1534
|
return input;
|
|
1535
1535
|
}
|
|
1536
|
-
const select$
|
|
1536
|
+
const select$x = function GenericOutputRepresentationSelect() {
|
|
1537
1537
|
return {
|
|
1538
1538
|
kind: 'Fragment',
|
|
1539
|
-
version: VERSION$
|
|
1539
|
+
version: VERSION$j,
|
|
1540
1540
|
private: [],
|
|
1541
1541
|
selections: [
|
|
1542
1542
|
{
|
|
@@ -1551,7 +1551,7 @@ const select$u = function GenericOutputRepresentationSelect() {
|
|
|
1551
1551
|
]
|
|
1552
1552
|
};
|
|
1553
1553
|
};
|
|
1554
|
-
function equals$
|
|
1554
|
+
function equals$j(existing, incoming) {
|
|
1555
1555
|
const existing_isSuccess = existing.isSuccess;
|
|
1556
1556
|
const incoming_isSuccess = incoming.isSuccess;
|
|
1557
1557
|
// if at least one of these optionals is defined
|
|
@@ -1572,41 +1572,41 @@ function equals$h(existing, incoming) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
return true;
|
|
1574
1574
|
}
|
|
1575
|
-
const ingest$
|
|
1575
|
+
const ingest$c = function GenericOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1576
1576
|
if (process.env.NODE_ENV !== 'production') {
|
|
1577
|
-
const validateError = validate$
|
|
1577
|
+
const validateError = validate$n(input);
|
|
1578
1578
|
if (validateError !== null) {
|
|
1579
1579
|
throw validateError;
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
-
const key = keyBuilderFromType$
|
|
1582
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
1583
1583
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
1584
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1584
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "docgen", VERSION$j, RepresentationType$c, equals$j);
|
|
1585
1585
|
return createLink(key);
|
|
1586
1586
|
};
|
|
1587
|
-
function getTypeCacheKeys$
|
|
1587
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
1588
1588
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1589
|
-
const rootKey = keyBuilderFromType$
|
|
1589
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
1590
1590
|
rootKeySet.set(rootKey, {
|
|
1591
1591
|
namespace: keyPrefix,
|
|
1592
|
-
representationName: RepresentationType$
|
|
1592
|
+
representationName: RepresentationType$c,
|
|
1593
1593
|
mergeable: false
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
1597
|
-
function select$
|
|
1598
|
-
return select$
|
|
1597
|
+
function select$w(luvio, params) {
|
|
1598
|
+
return select$x();
|
|
1599
1599
|
}
|
|
1600
|
-
function getResponseCacheKeys$
|
|
1601
|
-
getTypeCacheKeys$
|
|
1600
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
1601
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
1602
1602
|
}
|
|
1603
|
-
function ingestSuccess$
|
|
1603
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
1604
1604
|
const { body } = response;
|
|
1605
|
-
const key = keyBuilderFromType$
|
|
1606
|
-
luvio.storeIngest(key, ingest$
|
|
1605
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
1606
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
1607
1607
|
const snapshot = luvio.storeLookup({
|
|
1608
1608
|
recordId: key,
|
|
1609
|
-
node: select$
|
|
1609
|
+
node: select$w(),
|
|
1610
1610
|
variables: {},
|
|
1611
1611
|
});
|
|
1612
1612
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1617,7 +1617,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
1617
1617
|
deepFreeze(snapshot.data);
|
|
1618
1618
|
return snapshot;
|
|
1619
1619
|
}
|
|
1620
|
-
function createResourceRequest$
|
|
1620
|
+
function createResourceRequest$d(config) {
|
|
1621
1621
|
const headers = {};
|
|
1622
1622
|
return {
|
|
1623
1623
|
baseUri: '/services/data/v63.0',
|
|
@@ -1631,42 +1631,42 @@ function createResourceRequest$c(config) {
|
|
|
1631
1631
|
};
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
|
-
const adapterName$
|
|
1634
|
+
const adapterName$d = 'performDocGenerationBatchProcessAction';
|
|
1635
1635
|
const performDocGenerationBatchProcessAction_ConfigPropertyMetadata = [
|
|
1636
1636
|
generateParamConfigMetadata('actionName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1637
1637
|
generateParamConfigMetadata('docGenerationBatchProcessId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1638
1638
|
];
|
|
1639
|
-
const performDocGenerationBatchProcessAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1640
|
-
const createResourceParams$
|
|
1641
|
-
function typeCheckConfig$
|
|
1639
|
+
const performDocGenerationBatchProcessAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1640
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1641
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
1642
1642
|
const config = {};
|
|
1643
|
-
typeCheckConfig$
|
|
1643
|
+
typeCheckConfig$j(untrustedConfig, config, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1644
1644
|
return config;
|
|
1645
1645
|
}
|
|
1646
|
-
function validateAdapterConfig$
|
|
1646
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
1647
1647
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1648
1648
|
return null;
|
|
1649
1649
|
}
|
|
1650
1650
|
if (process.env.NODE_ENV !== 'production') {
|
|
1651
1651
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1652
1652
|
}
|
|
1653
|
-
const config = typeCheckConfig$
|
|
1653
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
1654
1654
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1655
1655
|
return null;
|
|
1656
1656
|
}
|
|
1657
1657
|
return config;
|
|
1658
1658
|
}
|
|
1659
|
-
function buildNetworkSnapshot$
|
|
1660
|
-
const resourceParams = createResourceParams$
|
|
1661
|
-
const request = createResourceRequest$
|
|
1659
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
1660
|
+
const resourceParams = createResourceParams$d(config);
|
|
1661
|
+
const request = createResourceRequest$d(resourceParams);
|
|
1662
1662
|
return luvio.dispatchResourceRequest(request, options)
|
|
1663
1663
|
.then((response) => {
|
|
1664
1664
|
return luvio.handleSuccessResponse(() => {
|
|
1665
|
-
const snapshot = ingestSuccess$
|
|
1665
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
1666
1666
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1667
1667
|
}, () => {
|
|
1668
1668
|
const cache = new StoreKeyMap();
|
|
1669
|
-
getResponseCacheKeys$
|
|
1669
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
1670
1670
|
return cache;
|
|
1671
1671
|
});
|
|
1672
1672
|
}, (response) => {
|
|
@@ -1676,18 +1676,18 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
const performDocGenerationBatchProcessActionAdapterFactory = (luvio) => {
|
|
1678
1678
|
return function performDocGenerationBatchProcessAction(untrustedConfig) {
|
|
1679
|
-
const config = validateAdapterConfig$
|
|
1679
|
+
const config = validateAdapterConfig$d(untrustedConfig, performDocGenerationBatchProcessAction_ConfigPropertyNames);
|
|
1680
1680
|
// Invalid or incomplete config
|
|
1681
1681
|
if (config === null) {
|
|
1682
1682
|
throw new Error('Invalid config for "performDocGenerationBatchProcessAction"');
|
|
1683
1683
|
}
|
|
1684
|
-
return buildNetworkSnapshot$
|
|
1684
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
1685
1685
|
};
|
|
1686
1686
|
};
|
|
1687
1687
|
|
|
1688
|
-
const TTL$
|
|
1689
|
-
const VERSION$
|
|
1690
|
-
function validate$
|
|
1688
|
+
const TTL$7 = 60000;
|
|
1689
|
+
const VERSION$i = "858b017bf441407a49a0d212e2125307";
|
|
1690
|
+
function validate$m(obj, path = 'DocumentCompareOutputRepresentation') {
|
|
1691
1691
|
const v_error = (() => {
|
|
1692
1692
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1693
1693
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1705,23 +1705,23 @@ function validate$k(obj, path = 'DocumentCompareOutputRepresentation') {
|
|
|
1705
1705
|
})();
|
|
1706
1706
|
return v_error === undefined ? null : v_error;
|
|
1707
1707
|
}
|
|
1708
|
-
const RepresentationType$
|
|
1709
|
-
function keyBuilder$
|
|
1710
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1708
|
+
const RepresentationType$b = 'DocumentCompareOutputRepresentation';
|
|
1709
|
+
function keyBuilder$g(luvio, config) {
|
|
1710
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.compareDocumentId;
|
|
1711
1711
|
}
|
|
1712
|
-
function keyBuilderFromType$
|
|
1712
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
1713
1713
|
const keyParams = {
|
|
1714
1714
|
compareDocumentId: object.compareDocumentId
|
|
1715
1715
|
};
|
|
1716
|
-
return keyBuilder$
|
|
1716
|
+
return keyBuilder$g(luvio, keyParams);
|
|
1717
1717
|
}
|
|
1718
|
-
function normalize$
|
|
1718
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
1719
1719
|
return input;
|
|
1720
1720
|
}
|
|
1721
|
-
const select$
|
|
1721
|
+
const select$v = function DocumentCompareOutputRepresentationSelect() {
|
|
1722
1722
|
return {
|
|
1723
1723
|
kind: 'Fragment',
|
|
1724
|
-
version: VERSION$
|
|
1724
|
+
version: VERSION$i,
|
|
1725
1725
|
private: [],
|
|
1726
1726
|
selections: [
|
|
1727
1727
|
{
|
|
@@ -1735,7 +1735,7 @@ const select$s = function DocumentCompareOutputRepresentationSelect() {
|
|
|
1735
1735
|
]
|
|
1736
1736
|
};
|
|
1737
1737
|
};
|
|
1738
|
-
function equals$
|
|
1738
|
+
function equals$i(existing, incoming) {
|
|
1739
1739
|
const existing_compareDocumentId = existing.compareDocumentId;
|
|
1740
1740
|
const incoming_compareDocumentId = incoming.compareDocumentId;
|
|
1741
1741
|
if (!(existing_compareDocumentId === incoming_compareDocumentId)) {
|
|
@@ -1748,41 +1748,41 @@ function equals$g(existing, incoming) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
return true;
|
|
1750
1750
|
}
|
|
1751
|
-
const ingest$
|
|
1751
|
+
const ingest$b = function DocumentCompareOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1752
1752
|
if (process.env.NODE_ENV !== 'production') {
|
|
1753
|
-
const validateError = validate$
|
|
1753
|
+
const validateError = validate$m(input);
|
|
1754
1754
|
if (validateError !== null) {
|
|
1755
1755
|
throw validateError;
|
|
1756
1756
|
}
|
|
1757
1757
|
}
|
|
1758
|
-
const key = keyBuilderFromType$
|
|
1759
|
-
const ttlToUse = TTL$
|
|
1760
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1758
|
+
const key = keyBuilderFromType$6(luvio, input);
|
|
1759
|
+
const ttlToUse = TTL$7;
|
|
1760
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "docgen", VERSION$i, RepresentationType$b, equals$i);
|
|
1761
1761
|
return createLink(key);
|
|
1762
1762
|
};
|
|
1763
|
-
function getTypeCacheKeys$
|
|
1763
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
1764
1764
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1765
|
-
const rootKey = keyBuilderFromType$
|
|
1765
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
1766
1766
|
rootKeySet.set(rootKey, {
|
|
1767
1767
|
namespace: keyPrefix,
|
|
1768
|
-
representationName: RepresentationType$
|
|
1768
|
+
representationName: RepresentationType$b,
|
|
1769
1769
|
mergeable: false
|
|
1770
1770
|
});
|
|
1771
1771
|
}
|
|
1772
1772
|
|
|
1773
|
-
function select$
|
|
1774
|
-
return select$
|
|
1773
|
+
function select$u(luvio, params) {
|
|
1774
|
+
return select$v();
|
|
1775
1775
|
}
|
|
1776
|
-
function getResponseCacheKeys$
|
|
1777
|
-
getTypeCacheKeys$
|
|
1776
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
1777
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
1778
1778
|
}
|
|
1779
|
-
function ingestSuccess$
|
|
1779
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
1780
1780
|
const { body } = response;
|
|
1781
|
-
const key = keyBuilderFromType$
|
|
1782
|
-
luvio.storeIngest(key, ingest$
|
|
1781
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
1782
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
1783
1783
|
const snapshot = luvio.storeLookup({
|
|
1784
1784
|
recordId: key,
|
|
1785
|
-
node: select$
|
|
1785
|
+
node: select$u(),
|
|
1786
1786
|
variables: {},
|
|
1787
1787
|
});
|
|
1788
1788
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1793,7 +1793,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
1793
1793
|
deepFreeze(snapshot.data);
|
|
1794
1794
|
return snapshot;
|
|
1795
1795
|
}
|
|
1796
|
-
function createResourceRequest$
|
|
1796
|
+
function createResourceRequest$c(config) {
|
|
1797
1797
|
const headers = {};
|
|
1798
1798
|
return {
|
|
1799
1799
|
baseUri: '/services/data/v63.0',
|
|
@@ -1807,44 +1807,44 @@ function createResourceRequest$b(config) {
|
|
|
1807
1807
|
};
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
1810
|
-
const adapterName$
|
|
1810
|
+
const adapterName$c = 'createComparisonDocument';
|
|
1811
1811
|
const createComparisonDocument_ConfigPropertyMetadata = [
|
|
1812
1812
|
generateParamConfigMetadata('baseDocumentId', true, 2 /* Body */, 0 /* String */),
|
|
1813
1813
|
generateParamConfigMetadata('baseDocumentSourceType', true, 2 /* Body */, 0 /* String */),
|
|
1814
1814
|
generateParamConfigMetadata('compareToDocumentId', true, 2 /* Body */, 0 /* String */),
|
|
1815
1815
|
generateParamConfigMetadata('compareToDocumentSourceType', true, 2 /* Body */, 0 /* String */),
|
|
1816
1816
|
];
|
|
1817
|
-
const createComparisonDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1818
|
-
const createResourceParams$
|
|
1819
|
-
function typeCheckConfig$
|
|
1817
|
+
const createComparisonDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createComparisonDocument_ConfigPropertyMetadata);
|
|
1818
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(createComparisonDocument_ConfigPropertyMetadata);
|
|
1819
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
1820
1820
|
const config = {};
|
|
1821
|
-
typeCheckConfig$
|
|
1821
|
+
typeCheckConfig$j(untrustedConfig, config, createComparisonDocument_ConfigPropertyMetadata);
|
|
1822
1822
|
return config;
|
|
1823
1823
|
}
|
|
1824
|
-
function validateAdapterConfig$
|
|
1824
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
1825
1825
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1826
1826
|
return null;
|
|
1827
1827
|
}
|
|
1828
1828
|
if (process.env.NODE_ENV !== 'production') {
|
|
1829
1829
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1830
1830
|
}
|
|
1831
|
-
const config = typeCheckConfig$
|
|
1831
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
1832
1832
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1833
1833
|
return null;
|
|
1834
1834
|
}
|
|
1835
1835
|
return config;
|
|
1836
1836
|
}
|
|
1837
|
-
function buildNetworkSnapshot$
|
|
1838
|
-
const resourceParams = createResourceParams$
|
|
1839
|
-
const request = createResourceRequest$
|
|
1837
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
1838
|
+
const resourceParams = createResourceParams$c(config);
|
|
1839
|
+
const request = createResourceRequest$c(resourceParams);
|
|
1840
1840
|
return luvio.dispatchResourceRequest(request, options)
|
|
1841
1841
|
.then((response) => {
|
|
1842
1842
|
return luvio.handleSuccessResponse(() => {
|
|
1843
|
-
const snapshot = ingestSuccess$
|
|
1843
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
1844
1844
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1845
1845
|
}, () => {
|
|
1846
1846
|
const cache = new StoreKeyMap();
|
|
1847
|
-
getResponseCacheKeys$
|
|
1847
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
1848
1848
|
return cache;
|
|
1849
1849
|
});
|
|
1850
1850
|
}, (response) => {
|
|
@@ -1854,17 +1854,17 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
const createComparisonDocumentAdapterFactory = (luvio) => {
|
|
1856
1856
|
return function createComparisonDocument(untrustedConfig) {
|
|
1857
|
-
const config = validateAdapterConfig$
|
|
1857
|
+
const config = validateAdapterConfig$c(untrustedConfig, createComparisonDocument_ConfigPropertyNames);
|
|
1858
1858
|
// Invalid or incomplete config
|
|
1859
1859
|
if (config === null) {
|
|
1860
1860
|
throw new Error('Invalid config for "createComparisonDocument"');
|
|
1861
1861
|
}
|
|
1862
|
-
return buildNetworkSnapshot$
|
|
1862
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
1863
1863
|
};
|
|
1864
1864
|
};
|
|
1865
1865
|
|
|
1866
|
-
const VERSION$
|
|
1867
|
-
function validate$
|
|
1866
|
+
const VERSION$h = "fbc748611fb0f561fc0ba56b408b33ba";
|
|
1867
|
+
function validate$l(obj, path = 'DocPreviewUrlRepresentation') {
|
|
1868
1868
|
const v_error = (() => {
|
|
1869
1869
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1870
1870
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1882,10 +1882,10 @@ function validate$j(obj, path = 'DocPreviewUrlRepresentation') {
|
|
|
1882
1882
|
})();
|
|
1883
1883
|
return v_error === undefined ? null : v_error;
|
|
1884
1884
|
}
|
|
1885
|
-
const select$
|
|
1885
|
+
const select$t = function DocPreviewUrlRepresentationSelect() {
|
|
1886
1886
|
return {
|
|
1887
1887
|
kind: 'Fragment',
|
|
1888
|
-
version: VERSION$
|
|
1888
|
+
version: VERSION$h,
|
|
1889
1889
|
private: [],
|
|
1890
1890
|
selections: [
|
|
1891
1891
|
{
|
|
@@ -1899,7 +1899,7 @@ const select$q = function DocPreviewUrlRepresentationSelect() {
|
|
|
1899
1899
|
]
|
|
1900
1900
|
};
|
|
1901
1901
|
};
|
|
1902
|
-
function equals$
|
|
1902
|
+
function equals$h(existing, incoming) {
|
|
1903
1903
|
const existing_pageNumber = existing.pageNumber;
|
|
1904
1904
|
const incoming_pageNumber = incoming.pageNumber;
|
|
1905
1905
|
if (!(existing_pageNumber === incoming_pageNumber)) {
|
|
@@ -1913,9 +1913,9 @@ function equals$f(existing, incoming) {
|
|
|
1913
1913
|
return true;
|
|
1914
1914
|
}
|
|
1915
1915
|
|
|
1916
|
-
const TTL$
|
|
1917
|
-
const VERSION$
|
|
1918
|
-
function validate$
|
|
1916
|
+
const TTL$6 = 60000;
|
|
1917
|
+
const VERSION$g = "9a5fdbf5d6f626f5a6b154ce5f8f688f";
|
|
1918
|
+
function validate$k(obj, path = 'DocPreviewOutputRepresentation') {
|
|
1919
1919
|
const v_error = (() => {
|
|
1920
1920
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1921
1921
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1948,7 +1948,7 @@ function validate$i(obj, path = 'DocPreviewOutputRepresentation') {
|
|
|
1948
1948
|
for (let i = 0; i < obj_previewUrls.length; i++) {
|
|
1949
1949
|
const obj_previewUrls_item = obj_previewUrls[i];
|
|
1950
1950
|
const path_previewUrls_item = path_previewUrls + '[' + i + ']';
|
|
1951
|
-
const referencepath_previewUrls_itemValidationError = validate$
|
|
1951
|
+
const referencepath_previewUrls_itemValidationError = validate$l(obj_previewUrls_item, path_previewUrls_item);
|
|
1952
1952
|
if (referencepath_previewUrls_itemValidationError !== null) {
|
|
1953
1953
|
let message = 'Object doesn\'t match DocPreviewUrlRepresentation (at "' + path_previewUrls_item + '")\n';
|
|
1954
1954
|
message += referencepath_previewUrls_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1963,24 +1963,24 @@ function validate$i(obj, path = 'DocPreviewOutputRepresentation') {
|
|
|
1963
1963
|
})();
|
|
1964
1964
|
return v_error === undefined ? null : v_error;
|
|
1965
1965
|
}
|
|
1966
|
-
const RepresentationType$
|
|
1967
|
-
function keyBuilder$
|
|
1968
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1966
|
+
const RepresentationType$a = 'DocPreviewOutputRepresentation';
|
|
1967
|
+
function keyBuilder$f(luvio, config) {
|
|
1968
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.fileId;
|
|
1969
1969
|
}
|
|
1970
|
-
function keyBuilderFromType$
|
|
1970
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
1971
1971
|
const keyParams = {
|
|
1972
1972
|
fileId: object.fileId
|
|
1973
1973
|
};
|
|
1974
|
-
return keyBuilder$
|
|
1974
|
+
return keyBuilder$f(luvio, keyParams);
|
|
1975
1975
|
}
|
|
1976
|
-
function normalize$
|
|
1976
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
1977
1977
|
return input;
|
|
1978
1978
|
}
|
|
1979
|
-
const select$
|
|
1980
|
-
const { selections: DocPreviewUrlRepresentation__selections, opaque: DocPreviewUrlRepresentation__opaque, } = select$
|
|
1979
|
+
const select$s = function DocPreviewOutputRepresentationSelect() {
|
|
1980
|
+
const { selections: DocPreviewUrlRepresentation__selections, opaque: DocPreviewUrlRepresentation__opaque, } = select$t();
|
|
1981
1981
|
return {
|
|
1982
1982
|
kind: 'Fragment',
|
|
1983
|
-
version: VERSION$
|
|
1983
|
+
version: VERSION$g,
|
|
1984
1984
|
private: [],
|
|
1985
1985
|
selections: [
|
|
1986
1986
|
{
|
|
@@ -2012,7 +2012,7 @@ const select$p = function DocPreviewOutputRepresentationSelect() {
|
|
|
2012
2012
|
]
|
|
2013
2013
|
};
|
|
2014
2014
|
};
|
|
2015
|
-
function equals$
|
|
2015
|
+
function equals$g(existing, incoming) {
|
|
2016
2016
|
const existing_pageCount = existing.pageCount;
|
|
2017
2017
|
const incoming_pageCount = incoming.pageCount;
|
|
2018
2018
|
if (!(existing_pageCount === incoming_pageCount)) {
|
|
@@ -2041,7 +2041,7 @@ function equals$e(existing, incoming) {
|
|
|
2041
2041
|
const existing_previewUrls = existing.previewUrls;
|
|
2042
2042
|
const incoming_previewUrls = incoming.previewUrls;
|
|
2043
2043
|
const equals_previewUrls_items = equalsArray(existing_previewUrls, incoming_previewUrls, (existing_previewUrls_item, incoming_previewUrls_item) => {
|
|
2044
|
-
if (!(equals$
|
|
2044
|
+
if (!(equals$h(existing_previewUrls_item, incoming_previewUrls_item))) {
|
|
2045
2045
|
return false;
|
|
2046
2046
|
}
|
|
2047
2047
|
});
|
|
@@ -2050,7 +2050,243 @@ function equals$e(existing, incoming) {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
return true;
|
|
2052
2052
|
}
|
|
2053
|
-
const ingest$
|
|
2053
|
+
const ingest$a = function DocPreviewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2054
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2055
|
+
const validateError = validate$k(input);
|
|
2056
|
+
if (validateError !== null) {
|
|
2057
|
+
throw validateError;
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
2061
|
+
const ttlToUse = TTL$6;
|
|
2062
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "docgen", VERSION$g, RepresentationType$a, equals$g);
|
|
2063
|
+
return createLink(key);
|
|
2064
|
+
};
|
|
2065
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
2066
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2067
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
2068
|
+
rootKeySet.set(rootKey, {
|
|
2069
|
+
namespace: keyPrefix,
|
|
2070
|
+
representationName: RepresentationType$a,
|
|
2071
|
+
mergeable: false
|
|
2072
|
+
});
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
function select$r(luvio, params) {
|
|
2076
|
+
return select$s();
|
|
2077
|
+
}
|
|
2078
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
2079
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
2080
|
+
}
|
|
2081
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
2082
|
+
const { body } = response;
|
|
2083
|
+
const key = keyBuilderFromType$5(luvio, body);
|
|
2084
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
2085
|
+
const snapshot = luvio.storeLookup({
|
|
2086
|
+
recordId: key,
|
|
2087
|
+
node: select$r(),
|
|
2088
|
+
variables: {},
|
|
2089
|
+
});
|
|
2090
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2091
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2092
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
deepFreeze(snapshot.data);
|
|
2096
|
+
return snapshot;
|
|
2097
|
+
}
|
|
2098
|
+
function createResourceRequest$b(config) {
|
|
2099
|
+
const headers = {};
|
|
2100
|
+
return {
|
|
2101
|
+
baseUri: '/services/data/v63.0',
|
|
2102
|
+
basePath: '/connect/docgen/document/preview',
|
|
2103
|
+
method: 'post',
|
|
2104
|
+
body: config.body,
|
|
2105
|
+
urlParams: {},
|
|
2106
|
+
queryParams: {},
|
|
2107
|
+
headers,
|
|
2108
|
+
priority: 'normal',
|
|
2109
|
+
};
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
const adapterName$b = 'getDocumentPreview';
|
|
2113
|
+
const getDocumentPreview_ConfigPropertyMetadata = [
|
|
2114
|
+
generateParamConfigMetadata('communityId', false, 2 /* Body */, 0 /* String */),
|
|
2115
|
+
generateParamConfigMetadata('endPageNumber', false, 2 /* Body */, 3 /* Integer */),
|
|
2116
|
+
generateParamConfigMetadata('fileId', true, 2 /* Body */, 0 /* String */),
|
|
2117
|
+
generateParamConfigMetadata('previewFormat', true, 2 /* Body */, 0 /* String */),
|
|
2118
|
+
generateParamConfigMetadata('startPageNumber', false, 2 /* Body */, 3 /* Integer */),
|
|
2119
|
+
generateParamConfigMetadata('versionNumber', false, 2 /* Body */, 3 /* Integer */),
|
|
2120
|
+
];
|
|
2121
|
+
const getDocumentPreview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getDocumentPreview_ConfigPropertyMetadata);
|
|
2122
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(getDocumentPreview_ConfigPropertyMetadata);
|
|
2123
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
2124
|
+
const config = {};
|
|
2125
|
+
typeCheckConfig$j(untrustedConfig, config, getDocumentPreview_ConfigPropertyMetadata);
|
|
2126
|
+
return config;
|
|
2127
|
+
}
|
|
2128
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
2129
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2130
|
+
return null;
|
|
2131
|
+
}
|
|
2132
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2133
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2134
|
+
}
|
|
2135
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
2136
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2137
|
+
return null;
|
|
2138
|
+
}
|
|
2139
|
+
return config;
|
|
2140
|
+
}
|
|
2141
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
2142
|
+
const resourceParams = createResourceParams$b(config);
|
|
2143
|
+
const request = createResourceRequest$b(resourceParams);
|
|
2144
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2145
|
+
.then((response) => {
|
|
2146
|
+
return luvio.handleSuccessResponse(() => {
|
|
2147
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
2148
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2149
|
+
}, () => {
|
|
2150
|
+
const cache = new StoreKeyMap();
|
|
2151
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
2152
|
+
return cache;
|
|
2153
|
+
});
|
|
2154
|
+
}, (response) => {
|
|
2155
|
+
deepFreeze(response);
|
|
2156
|
+
throw response;
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
const getDocumentPreviewAdapterFactory = (luvio) => {
|
|
2160
|
+
return function getDocumentPreview(untrustedConfig) {
|
|
2161
|
+
const config = validateAdapterConfig$b(untrustedConfig, getDocumentPreview_ConfigPropertyNames);
|
|
2162
|
+
// Invalid or incomplete config
|
|
2163
|
+
if (config === null) {
|
|
2164
|
+
throw new Error('Invalid config for "getDocumentPreview"');
|
|
2165
|
+
}
|
|
2166
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
2167
|
+
};
|
|
2168
|
+
};
|
|
2169
|
+
|
|
2170
|
+
const VERSION$f = "517f406e2c47eaa22053ffb7cee0884b";
|
|
2171
|
+
function validate$j(obj, path = 'DocGenConfigDataRepresentation') {
|
|
2172
|
+
const v_error = (() => {
|
|
2173
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2174
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2175
|
+
}
|
|
2176
|
+
const obj_configData = obj.configData;
|
|
2177
|
+
const path_configData = path + '.configData';
|
|
2178
|
+
if (obj_configData === undefined) {
|
|
2179
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_configData + '" (at "' + path_configData + '")');
|
|
2180
|
+
}
|
|
2181
|
+
const obj_configType = obj.configType;
|
|
2182
|
+
const path_configType = path + '.configType';
|
|
2183
|
+
if (typeof obj_configType !== 'string') {
|
|
2184
|
+
return new TypeError('Expected "string" but received "' + typeof obj_configType + '" (at "' + path_configType + '")');
|
|
2185
|
+
}
|
|
2186
|
+
})();
|
|
2187
|
+
return v_error === undefined ? null : v_error;
|
|
2188
|
+
}
|
|
2189
|
+
const select$q = function DocGenConfigDataRepresentationSelect() {
|
|
2190
|
+
return {
|
|
2191
|
+
kind: 'Fragment',
|
|
2192
|
+
version: VERSION$f,
|
|
2193
|
+
private: [],
|
|
2194
|
+
selections: [
|
|
2195
|
+
{
|
|
2196
|
+
name: 'configData',
|
|
2197
|
+
kind: 'Object',
|
|
2198
|
+
// any
|
|
2199
|
+
},
|
|
2200
|
+
{
|
|
2201
|
+
name: 'configType',
|
|
2202
|
+
kind: 'Scalar'
|
|
2203
|
+
}
|
|
2204
|
+
]
|
|
2205
|
+
};
|
|
2206
|
+
};
|
|
2207
|
+
function equals$f(existing, incoming) {
|
|
2208
|
+
const existing_configType = existing.configType;
|
|
2209
|
+
const incoming_configType = incoming.configType;
|
|
2210
|
+
if (!(existing_configType === incoming_configType)) {
|
|
2211
|
+
return false;
|
|
2212
|
+
}
|
|
2213
|
+
const existing_configData = existing.configData;
|
|
2214
|
+
const incoming_configData = incoming.configData;
|
|
2215
|
+
if (JSONStringify(incoming_configData) !== JSONStringify(existing_configData)) {
|
|
2216
|
+
return false;
|
|
2217
|
+
}
|
|
2218
|
+
return true;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
const TTL$5 = 60000;
|
|
2222
|
+
const VERSION$e = "da0e1b3ac6c55e3335e95257d2d681d9";
|
|
2223
|
+
function validate$i(obj, path = 'DocGenConfigOutputRepresentation') {
|
|
2224
|
+
const v_error = (() => {
|
|
2225
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2226
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2227
|
+
}
|
|
2228
|
+
const obj_data = obj.data;
|
|
2229
|
+
const path_data = path + '.data';
|
|
2230
|
+
const referencepath_dataValidationError = validate$j(obj_data, path_data);
|
|
2231
|
+
if (referencepath_dataValidationError !== null) {
|
|
2232
|
+
let message = 'Object doesn\'t match DocGenConfigDataRepresentation (at "' + path_data + '")\n';
|
|
2233
|
+
message += referencepath_dataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2234
|
+
return new TypeError(message);
|
|
2235
|
+
}
|
|
2236
|
+
const obj_status = obj.status;
|
|
2237
|
+
const path_status = path + '.status';
|
|
2238
|
+
if (typeof obj_status !== 'string') {
|
|
2239
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
2240
|
+
}
|
|
2241
|
+
})();
|
|
2242
|
+
return v_error === undefined ? null : v_error;
|
|
2243
|
+
}
|
|
2244
|
+
const RepresentationType$9 = 'DocGenConfigOutputRepresentation';
|
|
2245
|
+
function keyBuilder$e(luvio, config) {
|
|
2246
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.status;
|
|
2247
|
+
}
|
|
2248
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
2249
|
+
const keyParams = {
|
|
2250
|
+
status: object.status
|
|
2251
|
+
};
|
|
2252
|
+
return keyBuilder$e(luvio, keyParams);
|
|
2253
|
+
}
|
|
2254
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
2255
|
+
return input;
|
|
2256
|
+
}
|
|
2257
|
+
const select$p = function DocGenConfigOutputRepresentationSelect() {
|
|
2258
|
+
const { selections: DocGenConfigDataRepresentation__selections, opaque: DocGenConfigDataRepresentation__opaque, } = select$q();
|
|
2259
|
+
return {
|
|
2260
|
+
kind: 'Fragment',
|
|
2261
|
+
version: VERSION$e,
|
|
2262
|
+
private: [],
|
|
2263
|
+
selections: [
|
|
2264
|
+
{
|
|
2265
|
+
name: 'data',
|
|
2266
|
+
kind: 'Object',
|
|
2267
|
+
selections: DocGenConfigDataRepresentation__selections
|
|
2268
|
+
},
|
|
2269
|
+
{
|
|
2270
|
+
name: 'status',
|
|
2271
|
+
kind: 'Scalar'
|
|
2272
|
+
}
|
|
2273
|
+
]
|
|
2274
|
+
};
|
|
2275
|
+
};
|
|
2276
|
+
function equals$e(existing, incoming) {
|
|
2277
|
+
const existing_status = existing.status;
|
|
2278
|
+
const incoming_status = incoming.status;
|
|
2279
|
+
if (!(existing_status === incoming_status)) {
|
|
2280
|
+
return false;
|
|
2281
|
+
}
|
|
2282
|
+
const existing_data = existing.data;
|
|
2283
|
+
const incoming_data = incoming.data;
|
|
2284
|
+
if (!(equals$f(existing_data, incoming_data))) {
|
|
2285
|
+
return false;
|
|
2286
|
+
}
|
|
2287
|
+
return true;
|
|
2288
|
+
}
|
|
2289
|
+
const ingest$9 = function DocGenConfigOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2054
2290
|
if (process.env.NODE_ENV !== 'production') {
|
|
2055
2291
|
const validateError = validate$i(input);
|
|
2056
2292
|
if (validateError !== null) {
|
|
@@ -2099,7 +2335,7 @@ function createResourceRequest$a(config) {
|
|
|
2099
2335
|
const headers = {};
|
|
2100
2336
|
return {
|
|
2101
2337
|
baseUri: '/services/data/v63.0',
|
|
2102
|
-
basePath: '/connect/docgen/
|
|
2338
|
+
basePath: '/connect/docgen/config',
|
|
2103
2339
|
method: 'post',
|
|
2104
2340
|
body: config.body,
|
|
2105
2341
|
urlParams: {},
|
|
@@ -2109,20 +2345,18 @@ function createResourceRequest$a(config) {
|
|
|
2109
2345
|
};
|
|
2110
2346
|
}
|
|
2111
2347
|
|
|
2112
|
-
const adapterName$a = '
|
|
2113
|
-
const
|
|
2114
|
-
generateParamConfigMetadata('
|
|
2115
|
-
generateParamConfigMetadata('
|
|
2116
|
-
generateParamConfigMetadata('fileId', true, 2 /* Body */, 0 /* String */),
|
|
2117
|
-
generateParamConfigMetadata('previewFormat', true, 2 /* Body */, 0 /* String */),
|
|
2118
|
-
generateParamConfigMetadata('startPageNumber', false, 2 /* Body */, 3 /* Integer */),
|
|
2119
|
-
generateParamConfigMetadata('versionNumber', false, 2 /* Body */, 3 /* Integer */),
|
|
2348
|
+
const adapterName$a = 'getDocGenConfig';
|
|
2349
|
+
const getDocGenConfig_ConfigPropertyMetadata = [
|
|
2350
|
+
generateParamConfigMetadata('configInput', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2351
|
+
generateParamConfigMetadata('configType', true, 2 /* Body */, 0 /* String */),
|
|
2120
2352
|
];
|
|
2121
|
-
const
|
|
2122
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
2353
|
+
const getDocGenConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getDocGenConfig_ConfigPropertyMetadata);
|
|
2354
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(getDocGenConfig_ConfigPropertyMetadata);
|
|
2123
2355
|
function typeCheckConfig$a(untrustedConfig) {
|
|
2124
2356
|
const config = {};
|
|
2125
|
-
typeCheckConfig$
|
|
2357
|
+
typeCheckConfig$j(untrustedConfig, config, getDocGenConfig_ConfigPropertyMetadata);
|
|
2358
|
+
const untrustedConfig_configInput = untrustedConfig.configInput;
|
|
2359
|
+
config.configInput = untrustedConfig_configInput;
|
|
2126
2360
|
return config;
|
|
2127
2361
|
}
|
|
2128
2362
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -2156,12 +2390,12 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
2156
2390
|
throw response;
|
|
2157
2391
|
});
|
|
2158
2392
|
}
|
|
2159
|
-
const
|
|
2160
|
-
return function
|
|
2161
|
-
const config = validateAdapterConfig$a(untrustedConfig,
|
|
2393
|
+
const getDocGenConfigAdapterFactory = (luvio) => {
|
|
2394
|
+
return function getDocGenConfig(untrustedConfig) {
|
|
2395
|
+
const config = validateAdapterConfig$a(untrustedConfig, getDocGenConfig_ConfigPropertyNames);
|
|
2162
2396
|
// Invalid or incomplete config
|
|
2163
2397
|
if (config === null) {
|
|
2164
|
-
throw new Error('Invalid config for "
|
|
2398
|
+
throw new Error('Invalid config for "getDocGenConfig"');
|
|
2165
2399
|
}
|
|
2166
2400
|
return buildNetworkSnapshot$a(luvio, config);
|
|
2167
2401
|
};
|
|
@@ -2404,14 +2638,14 @@ const getDocumentTemplates_ConfigPropertyMetadata = [
|
|
|
2404
2638
|
generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2405
2639
|
];
|
|
2406
2640
|
const getDocumentTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getDocumentTemplates_ConfigPropertyMetadata);
|
|
2407
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
2641
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(getDocumentTemplates_ConfigPropertyMetadata);
|
|
2408
2642
|
function keyBuilder$c(luvio, config) {
|
|
2409
2643
|
const resourceParams = createResourceParams$9(config);
|
|
2410
2644
|
return keyBuilder$d(luvio, resourceParams);
|
|
2411
2645
|
}
|
|
2412
2646
|
function typeCheckConfig$9(untrustedConfig) {
|
|
2413
2647
|
const config = {};
|
|
2414
|
-
typeCheckConfig$
|
|
2648
|
+
typeCheckConfig$j(untrustedConfig, config, getDocumentTemplates_ConfigPropertyMetadata);
|
|
2415
2649
|
return config;
|
|
2416
2650
|
}
|
|
2417
2651
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -2607,10 +2841,10 @@ const updateDocumentTemplate_ConfigPropertyMetadata = [
|
|
|
2607
2841
|
generateParamConfigMetadata('shouldDisplayUnmappedToken', false, 2 /* Body */, 1 /* Boolean */),
|
|
2608
2842
|
];
|
|
2609
2843
|
const updateDocumentTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateDocumentTemplate_ConfigPropertyMetadata);
|
|
2610
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
2844
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(updateDocumentTemplate_ConfigPropertyMetadata);
|
|
2611
2845
|
function typeCheckConfig$8(untrustedConfig) {
|
|
2612
2846
|
const config = {};
|
|
2613
|
-
typeCheckConfig$
|
|
2847
|
+
typeCheckConfig$j(untrustedConfig, config, updateDocumentTemplate_ConfigPropertyMetadata);
|
|
2614
2848
|
return config;
|
|
2615
2849
|
}
|
|
2616
2850
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -2712,10 +2946,10 @@ const createDocumentTemplate_ConfigPropertyMetadata = [
|
|
|
2712
2946
|
generateParamConfigMetadata('xmlRelationshipMetadata', false, 2 /* Body */, 0 /* String */),
|
|
2713
2947
|
];
|
|
2714
2948
|
const createDocumentTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createDocumentTemplate_ConfigPropertyMetadata);
|
|
2715
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
2949
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(createDocumentTemplate_ConfigPropertyMetadata);
|
|
2716
2950
|
function typeCheckConfig$7(untrustedConfig) {
|
|
2717
2951
|
const config = {};
|
|
2718
|
-
typeCheckConfig$
|
|
2952
|
+
typeCheckConfig$j(untrustedConfig, config, createDocumentTemplate_ConfigPropertyMetadata);
|
|
2719
2953
|
return config;
|
|
2720
2954
|
}
|
|
2721
2955
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -3071,14 +3305,14 @@ const getDocuments_ConfigPropertyMetadata = [
|
|
|
3071
3305
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3072
3306
|
];
|
|
3073
3307
|
const getDocuments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDocuments_ConfigPropertyMetadata);
|
|
3074
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
3308
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(getDocuments_ConfigPropertyMetadata);
|
|
3075
3309
|
function keyBuilder$9(luvio, config) {
|
|
3076
3310
|
const resourceParams = createResourceParams$6(config);
|
|
3077
3311
|
return keyBuilder$a(luvio, resourceParams);
|
|
3078
3312
|
}
|
|
3079
3313
|
function typeCheckConfig$6(untrustedConfig) {
|
|
3080
3314
|
const config = {};
|
|
3081
|
-
typeCheckConfig$
|
|
3315
|
+
typeCheckConfig$j(untrustedConfig, config, getDocuments_ConfigPropertyMetadata);
|
|
3082
3316
|
return config;
|
|
3083
3317
|
}
|
|
3084
3318
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -3536,14 +3770,14 @@ const getESignNotificationSettings_ConfigPropertyMetadata = [
|
|
|
3536
3770
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3537
3771
|
];
|
|
3538
3772
|
const getESignNotificationSettings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getESignNotificationSettings_ConfigPropertyMetadata);
|
|
3539
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
3773
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(getESignNotificationSettings_ConfigPropertyMetadata);
|
|
3540
3774
|
function keyBuilder$7(luvio, config) {
|
|
3541
3775
|
const resourceParams = createResourceParams$5(config);
|
|
3542
3776
|
return keyBuilder$8(luvio, resourceParams);
|
|
3543
3777
|
}
|
|
3544
3778
|
function typeCheckConfig$5(untrustedConfig) {
|
|
3545
3779
|
const config = {};
|
|
3546
|
-
typeCheckConfig$
|
|
3780
|
+
typeCheckConfig$j(untrustedConfig, config, getESignNotificationSettings_ConfigPropertyMetadata);
|
|
3547
3781
|
return config;
|
|
3548
3782
|
}
|
|
3549
3783
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -3903,14 +4137,14 @@ const getRecipients_ConfigPropertyMetadata = [
|
|
|
3903
4137
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3904
4138
|
];
|
|
3905
4139
|
const getRecipients_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecipients_ConfigPropertyMetadata);
|
|
3906
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
4140
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(getRecipients_ConfigPropertyMetadata);
|
|
3907
4141
|
function keyBuilder$5(luvio, config) {
|
|
3908
4142
|
const resourceParams = createResourceParams$4(config);
|
|
3909
4143
|
return keyBuilder$6(luvio, resourceParams);
|
|
3910
4144
|
}
|
|
3911
4145
|
function typeCheckConfig$4(untrustedConfig) {
|
|
3912
4146
|
const config = {};
|
|
3913
|
-
typeCheckConfig$
|
|
4147
|
+
typeCheckConfig$j(untrustedConfig, config, getRecipients_ConfigPropertyMetadata);
|
|
3914
4148
|
return config;
|
|
3915
4149
|
}
|
|
3916
4150
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -4170,10 +4404,10 @@ const createDocumentEnvelopeForEsign_ConfigPropertyMetadata = [
|
|
|
4170
4404
|
generateParamConfigMetadata('envelope', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4171
4405
|
];
|
|
4172
4406
|
const createDocumentEnvelopeForEsign_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
4173
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
4407
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
4174
4408
|
function typeCheckConfig$3(untrustedConfig) {
|
|
4175
4409
|
const config = {};
|
|
4176
|
-
typeCheckConfig$
|
|
4410
|
+
typeCheckConfig$j(untrustedConfig, config, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
4177
4411
|
const untrustedConfig_envelope = untrustedConfig.envelope;
|
|
4178
4412
|
const referenceEnvelopeSendRequestValidationError = validate$6(untrustedConfig_envelope);
|
|
4179
4413
|
if (referenceEnvelopeSendRequestValidationError === null) {
|
|
@@ -4509,10 +4743,10 @@ const updateEnvelope_ConfigPropertyMetadata = [
|
|
|
4509
4743
|
generateParamConfigMetadata('sourceObjectId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4510
4744
|
];
|
|
4511
4745
|
const updateEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateEnvelope_ConfigPropertyMetadata);
|
|
4512
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
4746
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(updateEnvelope_ConfigPropertyMetadata);
|
|
4513
4747
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4514
4748
|
const config = {};
|
|
4515
|
-
typeCheckConfig$
|
|
4749
|
+
typeCheckConfig$j(untrustedConfig, config, updateEnvelope_ConfigPropertyMetadata);
|
|
4516
4750
|
return config;
|
|
4517
4751
|
}
|
|
4518
4752
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -4776,10 +5010,10 @@ const updateVoidedEnvelope_ConfigPropertyMetadata = [
|
|
|
4776
5010
|
generateParamConfigMetadata('voidParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4777
5011
|
];
|
|
4778
5012
|
const updateVoidedEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
4779
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
5013
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
4780
5014
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4781
5015
|
const config = {};
|
|
4782
|
-
typeCheckConfig$
|
|
5016
|
+
typeCheckConfig$j(untrustedConfig, config, updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
4783
5017
|
const untrustedConfig_voidParam = untrustedConfig.voidParam;
|
|
4784
5018
|
const referenceEnvelopeVoidRequestValidationError = validate$2(untrustedConfig_voidParam);
|
|
4785
5019
|
if (referenceEnvelopeVoidRequestValidationError === null) {
|
|
@@ -4970,7 +5204,7 @@ function createResourceRequest(config) {
|
|
|
4970
5204
|
const adapterName = 'getSignerRoles';
|
|
4971
5205
|
const getSignerRoles_ConfigPropertyMetadata = [];
|
|
4972
5206
|
const getSignerRoles_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSignerRoles_ConfigPropertyMetadata);
|
|
4973
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
5207
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$j(getSignerRoles_ConfigPropertyMetadata);
|
|
4974
5208
|
function keyBuilder(luvio, config) {
|
|
4975
5209
|
createResourceParams(config);
|
|
4976
5210
|
return keyBuilder$1();
|
|
@@ -5050,4 +5284,4 @@ const getSignerRolesAdapterFactory = (luvio) => function docgen__getSignerRoles(
|
|
|
5050
5284
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
5051
5285
|
};
|
|
5052
5286
|
|
|
5053
|
-
export { createComparisonDocumentAdapterFactory, createDocumentEnvelopeForEsignAdapterFactory, createDocumentTemplateAdapterFactory, getContentLinkInputAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentPreviewAdapterFactory, getDocumentTemplatesAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, postDocumentClausePromotionAdapterFactory, updateDocumentTemplateAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };
|
|
5287
|
+
export { createComparisonDocumentAdapterFactory, createDocumentEnvelopeForEsignAdapterFactory, createDocumentTemplateAdapterFactory, getContentLinkInputAdapterFactory, getDocGenConfigAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentPreviewAdapterFactory, getDocumentTemplatesAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, postDocumentClausePromotionAdapterFactory, updateDocumentTemplateAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };
|