@salesforce/lds-adapters-industries-docgen 1.323.0 → 1.324.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 +664 -360
- package/dist/es/es2018/types/src/generated/adapters/getDocumentPreview.d.ts +20 -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/postConnectDocgenDocumentPreview.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/DocPreviewInputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/DocPreviewOutputRepresentation.d.ts +54 -0
- package/dist/es/es2018/types/src/generated/types/DocPreviewUrlRepresentation.d.ts +31 -0
- package/package.json +4 -4
- package/sfdc/index.js +801 -494
- package/src/raml/api.raml +76 -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$i, StoreKeyMap, createResourceParams as createResourceParams$i } 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$q = "c0cdffc7d0ce780dd3dbd6844cb94df8";
|
|
116
|
+
function validate$u(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$s(obj, path = 'ClauseCategoryResponse') {
|
|
|
138
138
|
})();
|
|
139
139
|
return v_error === undefined ? null : v_error;
|
|
140
140
|
}
|
|
141
|
-
const select$
|
|
141
|
+
const select$I = function ClauseCategoryResponseSelect() {
|
|
142
142
|
return {
|
|
143
143
|
kind: 'Fragment',
|
|
144
|
-
version: VERSION$
|
|
144
|
+
version: VERSION$q,
|
|
145
145
|
private: [],
|
|
146
146
|
selections: [
|
|
147
147
|
{
|
|
@@ -160,7 +160,7 @@ const select$F = function ClauseCategoryResponseSelect() {
|
|
|
160
160
|
]
|
|
161
161
|
};
|
|
162
162
|
};
|
|
163
|
-
function equals$
|
|
163
|
+
function equals$q(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$o(existing, incoming) {
|
|
|
187
187
|
return true;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
const TTL$
|
|
191
|
-
const VERSION$
|
|
192
|
-
function validate$
|
|
190
|
+
const TTL$b = 30000;
|
|
191
|
+
const VERSION$p = "6f04ab6a782443d237ece40b87b8d756";
|
|
192
|
+
function validate$t(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$r(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$u(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$r(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$g = 'ClauseCategoriesResponse';
|
|
216
|
+
function normalize$g(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$H = function ClauseCategoriesResponseSelect() {
|
|
220
|
+
const { selections: ClauseCategoryResponse__selections, opaque: ClauseCategoryResponse__opaque, } = select$I();
|
|
221
221
|
return {
|
|
222
222
|
kind: 'Fragment',
|
|
223
|
-
version: VERSION$
|
|
223
|
+
version: VERSION$p,
|
|
224
224
|
private: [],
|
|
225
225
|
selections: [
|
|
226
226
|
{
|
|
@@ -232,11 +232,11 @@ const select$E = function ClauseCategoriesResponseSelect() {
|
|
|
232
232
|
]
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
-
function equals$
|
|
235
|
+
function equals$p(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$q(existing_clauseCategories_item, incoming_clauseCategories_item))) {
|
|
240
240
|
return false;
|
|
241
241
|
}
|
|
242
242
|
});
|
|
@@ -245,44 +245,44 @@ function equals$n(existing, incoming) {
|
|
|
245
245
|
}
|
|
246
246
|
return true;
|
|
247
247
|
}
|
|
248
|
-
const ingest$
|
|
248
|
+
const ingest$g = function ClauseCategoriesResponseIngest(input, path, luvio, store, timestamp) {
|
|
249
249
|
if (process.env.NODE_ENV !== 'production') {
|
|
250
|
-
const validateError = validate$
|
|
250
|
+
const validateError = validate$t(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$b;
|
|
257
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "docgen", VERSION$p, RepresentationType$g, equals$p);
|
|
258
258
|
return createLink(key);
|
|
259
259
|
};
|
|
260
|
-
function getTypeCacheKeys$
|
|
260
|
+
function getTypeCacheKeys$g(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$g,
|
|
266
266
|
mergeable: false
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
function select$
|
|
271
|
-
return select$
|
|
270
|
+
function select$G(luvio, params) {
|
|
271
|
+
return select$H();
|
|
272
272
|
}
|
|
273
|
-
function keyBuilder$
|
|
273
|
+
function keyBuilder$o(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$h(storeKeyMap, luvio, resourceParams, response) {
|
|
277
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$o(luvio, resourceParams));
|
|
278
278
|
}
|
|
279
|
-
function ingestSuccess$
|
|
279
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
280
280
|
const { body } = response;
|
|
281
|
-
const key = keyBuilder$
|
|
282
|
-
luvio.storeIngest(key, ingest$
|
|
281
|
+
const key = keyBuilder$o(luvio, resourceParams);
|
|
282
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
283
283
|
const snapshot = luvio.storeLookup({
|
|
284
284
|
recordId: key,
|
|
285
|
-
node: select$
|
|
285
|
+
node: select$G(),
|
|
286
286
|
variables: {},
|
|
287
287
|
}, snapshotRefresh);
|
|
288
288
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -294,18 +294,18 @@ function ingestSuccess$g(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$o(luvio, params);
|
|
298
298
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
299
299
|
const storeMetadataParams = {
|
|
300
|
-
ttl: TTL$
|
|
300
|
+
ttl: TTL$b,
|
|
301
301
|
namespace: keyPrefix,
|
|
302
|
-
version: VERSION$
|
|
303
|
-
representationName: RepresentationType$
|
|
302
|
+
version: VERSION$p,
|
|
303
|
+
representationName: RepresentationType$g
|
|
304
304
|
};
|
|
305
305
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
306
306
|
return errorSnapshot;
|
|
307
307
|
}
|
|
308
|
-
function createResourceRequest$
|
|
308
|
+
function createResourceRequest$h(config) {
|
|
309
309
|
const headers = {};
|
|
310
310
|
return {
|
|
311
311
|
baseUri: '/services/data/v63.0',
|
|
@@ -319,62 +319,62 @@ function createResourceRequest$g(config) {
|
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
const adapterName$
|
|
322
|
+
const adapterName$h = '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$h, getDocumentClauseSetCategories_ConfigPropertyMetadata);
|
|
329
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$i(getDocumentClauseSetCategories_ConfigPropertyMetadata);
|
|
330
|
+
function keyBuilder$n(luvio, config) {
|
|
331
|
+
const resourceParams = createResourceParams$h(config);
|
|
332
|
+
return keyBuilder$o(luvio, resourceParams);
|
|
333
333
|
}
|
|
334
|
-
function typeCheckConfig$
|
|
334
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
335
335
|
const config = {};
|
|
336
|
-
typeCheckConfig$
|
|
336
|
+
typeCheckConfig$i(untrustedConfig, config, getDocumentClauseSetCategories_ConfigPropertyMetadata);
|
|
337
337
|
return config;
|
|
338
338
|
}
|
|
339
|
-
function validateAdapterConfig$
|
|
339
|
+
function validateAdapterConfig$h(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$h(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$h(config);
|
|
354
|
+
return select$G();
|
|
355
355
|
}
|
|
356
356
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
357
|
-
const snapshot = ingestSuccess$
|
|
357
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
358
358
|
config,
|
|
359
|
-
resolve: () => buildNetworkSnapshot$
|
|
359
|
+
resolve: () => buildNetworkSnapshot$h(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$h(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$h(luvio, config, options) {
|
|
371
|
+
const resourceParams = createResourceParams$h(config);
|
|
372
|
+
const request = createResourceRequest$h(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$h(cache, luvio, resourceParams, response.body);
|
|
378
378
|
return cache;
|
|
379
379
|
});
|
|
380
380
|
}, (response) => {
|
|
@@ -382,23 +382,23 @@ function buildNetworkSnapshot$g(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$h, 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$n(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$h(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$h(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$o = "29a9e61a0952cff8f7e98cc7d8857c62";
|
|
411
|
+
function validate$s(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$q(obj, path = 'DocumentClauseSetResponse') {
|
|
|
446
446
|
})();
|
|
447
447
|
return v_error === undefined ? null : v_error;
|
|
448
448
|
}
|
|
449
|
-
const select$
|
|
449
|
+
const select$F = function DocumentClauseSetResponseSelect() {
|
|
450
450
|
return {
|
|
451
451
|
kind: 'Fragment',
|
|
452
|
-
version: VERSION$
|
|
452
|
+
version: VERSION$o,
|
|
453
453
|
private: [],
|
|
454
454
|
selections: [
|
|
455
455
|
{
|
|
@@ -479,7 +479,7 @@ const select$C = function DocumentClauseSetResponseSelect() {
|
|
|
479
479
|
]
|
|
480
480
|
};
|
|
481
481
|
};
|
|
482
|
-
function equals$
|
|
482
|
+
function equals$o(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$m(existing, incoming) {
|
|
|
513
513
|
return true;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
const TTL$
|
|
517
|
-
const VERSION$
|
|
518
|
-
function validate$
|
|
516
|
+
const TTL$a = 100;
|
|
517
|
+
const VERSION$n = "c6ad1fbdbd4d8cd718a8a62c63216687";
|
|
518
|
+
function validate$r(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$p(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$s(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$p(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$f = 'DocumentClauseSetListResponse';
|
|
542
|
+
function normalize$f(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$E = function DocumentClauseSetListResponseSelect() {
|
|
546
|
+
const { selections: DocumentClauseSetResponse__selections, opaque: DocumentClauseSetResponse__opaque, } = select$F();
|
|
547
547
|
return {
|
|
548
548
|
kind: 'Fragment',
|
|
549
|
-
version: VERSION$
|
|
549
|
+
version: VERSION$n,
|
|
550
550
|
private: [],
|
|
551
551
|
selections: [
|
|
552
552
|
{
|
|
@@ -558,11 +558,11 @@ const select$B = function DocumentClauseSetListResponseSelect() {
|
|
|
558
558
|
]
|
|
559
559
|
};
|
|
560
560
|
};
|
|
561
|
-
function equals$
|
|
561
|
+
function equals$n(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$o(existing_documentClauseSets_item, incoming_documentClauseSets_item))) {
|
|
566
566
|
return false;
|
|
567
567
|
}
|
|
568
568
|
});
|
|
@@ -571,44 +571,44 @@ function equals$l(existing, incoming) {
|
|
|
571
571
|
}
|
|
572
572
|
return true;
|
|
573
573
|
}
|
|
574
|
-
const ingest$
|
|
574
|
+
const ingest$f = function DocumentClauseSetListResponseIngest(input, path, luvio, store, timestamp) {
|
|
575
575
|
if (process.env.NODE_ENV !== 'production') {
|
|
576
|
-
const validateError = validate$
|
|
576
|
+
const validateError = validate$r(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$a;
|
|
583
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "docgen", VERSION$n, RepresentationType$f, equals$n);
|
|
584
584
|
return createLink(key);
|
|
585
585
|
};
|
|
586
|
-
function getTypeCacheKeys$
|
|
586
|
+
function getTypeCacheKeys$f(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$f,
|
|
592
592
|
mergeable: false
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
function select$
|
|
597
|
-
return select$
|
|
596
|
+
function select$D(luvio, params) {
|
|
597
|
+
return select$E();
|
|
598
598
|
}
|
|
599
|
-
function keyBuilder$
|
|
599
|
+
function keyBuilder$m(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$g(storeKeyMap, luvio, resourceParams, response) {
|
|
603
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
|
|
604
604
|
}
|
|
605
|
-
function ingestSuccess$
|
|
605
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
606
606
|
const { body } = response;
|
|
607
|
-
const key = keyBuilder$
|
|
608
|
-
luvio.storeIngest(key, ingest$
|
|
607
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
608
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
609
609
|
const snapshot = luvio.storeLookup({
|
|
610
610
|
recordId: key,
|
|
611
|
-
node: select$
|
|
611
|
+
node: select$D(),
|
|
612
612
|
variables: {},
|
|
613
613
|
}, snapshotRefresh);
|
|
614
614
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -620,18 +620,18 @@ function ingestSuccess$f(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$m(luvio, params);
|
|
624
624
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
625
625
|
const storeMetadataParams = {
|
|
626
|
-
ttl: TTL$
|
|
626
|
+
ttl: TTL$a,
|
|
627
627
|
namespace: keyPrefix,
|
|
628
|
-
version: VERSION$
|
|
629
|
-
representationName: RepresentationType$
|
|
628
|
+
version: VERSION$n,
|
|
629
|
+
representationName: RepresentationType$f
|
|
630
630
|
};
|
|
631
631
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
632
632
|
return errorSnapshot;
|
|
633
633
|
}
|
|
634
|
-
function createResourceRequest$
|
|
634
|
+
function createResourceRequest$g(config) {
|
|
635
635
|
const headers = {};
|
|
636
636
|
return {
|
|
637
637
|
baseUri: '/services/data/v63.0',
|
|
@@ -645,7 +645,7 @@ function createResourceRequest$f(config) {
|
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
-
const adapterName$
|
|
648
|
+
const adapterName$g = '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$g, getDocumentClauseSets_ConfigPropertyMetadata);
|
|
658
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$i(getDocumentClauseSets_ConfigPropertyMetadata);
|
|
659
|
+
function keyBuilder$l(luvio, config) {
|
|
660
|
+
const resourceParams = createResourceParams$g(config);
|
|
661
|
+
return keyBuilder$m(luvio, resourceParams);
|
|
662
662
|
}
|
|
663
|
-
function typeCheckConfig$
|
|
663
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
664
664
|
const config = {};
|
|
665
|
-
typeCheckConfig$
|
|
665
|
+
typeCheckConfig$i(untrustedConfig, config, getDocumentClauseSets_ConfigPropertyMetadata);
|
|
666
666
|
return config;
|
|
667
667
|
}
|
|
668
|
-
function validateAdapterConfig$
|
|
668
|
+
function validateAdapterConfig$g(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$g(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$g(config);
|
|
683
|
+
return select$D();
|
|
684
684
|
}
|
|
685
685
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
686
|
-
const snapshot = ingestSuccess$
|
|
686
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
687
687
|
config,
|
|
688
|
-
resolve: () => buildNetworkSnapshot$
|
|
688
|
+
resolve: () => buildNetworkSnapshot$g(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$g(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$g(luvio, config, options) {
|
|
700
|
+
const resourceParams = createResourceParams$g(config);
|
|
701
|
+
const request = createResourceRequest$g(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$g(cache, luvio, resourceParams, response.body);
|
|
707
707
|
return cache;
|
|
708
708
|
});
|
|
709
709
|
}, (response) => {
|
|
@@ -711,23 +711,23 @@ function buildNetworkSnapshot$f(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$g, 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$l(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$g(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$g(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$9 = 100;
|
|
740
|
+
const VERSION$m = "a3afe2a67715551a49f0d59eafb639aa";
|
|
741
|
+
function validate$q(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$o(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$e = 'DocumentClauseFieldsResponse';
|
|
767
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
768
768
|
return input;
|
|
769
769
|
}
|
|
770
|
-
const select$
|
|
770
|
+
const select$C = function DocumentClauseFieldsResponseSelect() {
|
|
771
771
|
return {
|
|
772
772
|
kind: 'Fragment',
|
|
773
|
-
version: VERSION$
|
|
773
|
+
version: VERSION$m,
|
|
774
774
|
private: [],
|
|
775
775
|
selections: [
|
|
776
776
|
{
|
|
@@ -786,7 +786,7 @@ const select$z = function DocumentClauseFieldsResponseSelect() {
|
|
|
786
786
|
]
|
|
787
787
|
};
|
|
788
788
|
};
|
|
789
|
-
function equals$
|
|
789
|
+
function equals$m(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$k(existing, incoming) {
|
|
|
804
804
|
}
|
|
805
805
|
return true;
|
|
806
806
|
}
|
|
807
|
-
const ingest$
|
|
807
|
+
const ingest$e = function DocumentClauseFieldsResponseIngest(input, path, luvio, store, timestamp) {
|
|
808
808
|
if (process.env.NODE_ENV !== 'production') {
|
|
809
|
-
const validateError = validate$
|
|
809
|
+
const validateError = validate$q(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$9;
|
|
816
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "docgen", VERSION$m, RepresentationType$e, equals$m);
|
|
817
817
|
return createLink(key);
|
|
818
818
|
};
|
|
819
|
-
function getTypeCacheKeys$
|
|
819
|
+
function getTypeCacheKeys$e(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$e,
|
|
825
825
|
mergeable: false
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
828
|
|
|
829
|
-
function select$
|
|
830
|
-
return select$
|
|
829
|
+
function select$B(luvio, params) {
|
|
830
|
+
return select$C();
|
|
831
831
|
}
|
|
832
|
-
function keyBuilder$
|
|
832
|
+
function keyBuilder$k(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$f(storeKeyMap, luvio, resourceParams, response) {
|
|
836
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$k(luvio, resourceParams));
|
|
837
837
|
}
|
|
838
|
-
function ingestSuccess$
|
|
838
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
839
839
|
const { body } = response;
|
|
840
|
-
const key = keyBuilder$
|
|
841
|
-
luvio.storeIngest(key, ingest$
|
|
840
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
841
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
842
842
|
const snapshot = luvio.storeLookup({
|
|
843
843
|
recordId: key,
|
|
844
|
-
node: select$
|
|
844
|
+
node: select$B(),
|
|
845
845
|
variables: {},
|
|
846
846
|
}, snapshotRefresh);
|
|
847
847
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -853,18 +853,18 @@ function ingestSuccess$e(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$k(luvio, params);
|
|
857
857
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
858
858
|
const storeMetadataParams = {
|
|
859
|
-
ttl: TTL$
|
|
859
|
+
ttl: TTL$9,
|
|
860
860
|
namespace: keyPrefix,
|
|
861
|
-
version: VERSION$
|
|
862
|
-
representationName: RepresentationType$
|
|
861
|
+
version: VERSION$m,
|
|
862
|
+
representationName: RepresentationType$e
|
|
863
863
|
};
|
|
864
864
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
865
865
|
return errorSnapshot;
|
|
866
866
|
}
|
|
867
|
-
function createResourceRequest$
|
|
867
|
+
function createResourceRequest$f(config) {
|
|
868
868
|
const headers = {};
|
|
869
869
|
return {
|
|
870
870
|
baseUri: '/services/data/v63.0',
|
|
@@ -878,7 +878,7 @@ function createResourceRequest$e(config) {
|
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
-
const adapterName$
|
|
881
|
+
const adapterName$f = '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$f, getDocumentClauseFields_ConfigPropertyMetadata);
|
|
891
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$i(getDocumentClauseFields_ConfigPropertyMetadata);
|
|
892
|
+
function keyBuilder$j(luvio, config) {
|
|
893
|
+
const resourceParams = createResourceParams$f(config);
|
|
894
|
+
return keyBuilder$k(luvio, resourceParams);
|
|
895
895
|
}
|
|
896
|
-
function typeCheckConfig$
|
|
896
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
897
897
|
const config = {};
|
|
898
|
-
typeCheckConfig$
|
|
898
|
+
typeCheckConfig$i(untrustedConfig, config, getDocumentClauseFields_ConfigPropertyMetadata);
|
|
899
899
|
return config;
|
|
900
900
|
}
|
|
901
|
-
function validateAdapterConfig$
|
|
901
|
+
function validateAdapterConfig$f(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$f(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$f(config);
|
|
916
|
+
return select$B();
|
|
917
917
|
}
|
|
918
918
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
919
|
-
const snapshot = ingestSuccess$
|
|
919
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
920
920
|
config,
|
|
921
|
-
resolve: () => buildNetworkSnapshot$
|
|
921
|
+
resolve: () => buildNetworkSnapshot$f(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$f(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$f(luvio, config, options) {
|
|
933
|
+
const resourceParams = createResourceParams$f(config);
|
|
934
|
+
const request = createResourceRequest$f(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$f(cache, luvio, resourceParams, response.body);
|
|
940
940
|
return cache;
|
|
941
941
|
});
|
|
942
942
|
}, (response) => {
|
|
@@ -944,23 +944,23 @@ function buildNetworkSnapshot$e(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$f, 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$j(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$f(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$f(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$8 = 60000;
|
|
973
|
+
const VERSION$l = "af0246ac09fd1b3b2a939d90b8caa15d";
|
|
974
|
+
function validate$p(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$n(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$d = 'DocumentClausePromotionResponse';
|
|
993
|
+
function keyBuilder$i(luvio, config) {
|
|
994
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.isSuccess;
|
|
995
995
|
}
|
|
996
|
-
function keyBuilderFromType$
|
|
996
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
997
997
|
const keyParams = {
|
|
998
998
|
isSuccess: object.isSuccess
|
|
999
999
|
};
|
|
1000
|
-
return keyBuilder$
|
|
1000
|
+
return keyBuilder$i(luvio, keyParams);
|
|
1001
1001
|
}
|
|
1002
|
-
function normalize$
|
|
1002
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
1003
1003
|
return input;
|
|
1004
1004
|
}
|
|
1005
|
-
const select$
|
|
1005
|
+
const select$A = function DocumentClausePromotionResponseSelect() {
|
|
1006
1006
|
return {
|
|
1007
1007
|
kind: 'Fragment',
|
|
1008
|
-
version: VERSION$
|
|
1008
|
+
version: VERSION$l,
|
|
1009
1009
|
private: [],
|
|
1010
1010
|
selections: [
|
|
1011
1011
|
{
|
|
@@ -1019,7 +1019,7 @@ const select$x = function DocumentClausePromotionResponseSelect() {
|
|
|
1019
1019
|
]
|
|
1020
1020
|
};
|
|
1021
1021
|
};
|
|
1022
|
-
function equals$
|
|
1022
|
+
function equals$l(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$j(existing, incoming) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
return true;
|
|
1034
1034
|
}
|
|
1035
|
-
const ingest$
|
|
1035
|
+
const ingest$d = function DocumentClausePromotionResponseIngest(input, path, luvio, store, timestamp) {
|
|
1036
1036
|
if (process.env.NODE_ENV !== 'production') {
|
|
1037
|
-
const validateError = validate$
|
|
1037
|
+
const validateError = validate$p(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$8(luvio, input);
|
|
1043
|
+
const ttlToUse = TTL$8;
|
|
1044
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "docgen", VERSION$l, RepresentationType$d, equals$l);
|
|
1045
1045
|
return createLink(key);
|
|
1046
1046
|
};
|
|
1047
|
-
function getTypeCacheKeys$
|
|
1047
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
1048
1048
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1049
|
-
const rootKey = keyBuilderFromType$
|
|
1049
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
1050
1050
|
rootKeySet.set(rootKey, {
|
|
1051
1051
|
namespace: keyPrefix,
|
|
1052
|
-
representationName: RepresentationType$
|
|
1052
|
+
representationName: RepresentationType$d,
|
|
1053
1053
|
mergeable: false
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
|
-
function select$
|
|
1058
|
-
return select$
|
|
1057
|
+
function select$z(luvio, params) {
|
|
1058
|
+
return select$A();
|
|
1059
1059
|
}
|
|
1060
|
-
function getResponseCacheKeys$
|
|
1061
|
-
getTypeCacheKeys$
|
|
1060
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
1061
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
1062
1062
|
}
|
|
1063
|
-
function ingestSuccess$
|
|
1063
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
1064
1064
|
const { body } = response;
|
|
1065
|
-
const key = keyBuilderFromType$
|
|
1066
|
-
luvio.storeIngest(key, ingest$
|
|
1065
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
1066
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
1067
1067
|
const snapshot = luvio.storeLookup({
|
|
1068
1068
|
recordId: key,
|
|
1069
|
-
node: select$
|
|
1069
|
+
node: select$z(),
|
|
1070
1070
|
variables: {},
|
|
1071
1071
|
});
|
|
1072
1072
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1077,7 +1077,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
1077
1077
|
deepFreeze(snapshot.data);
|
|
1078
1078
|
return snapshot;
|
|
1079
1079
|
}
|
|
1080
|
-
function createResourceRequest$
|
|
1080
|
+
function createResourceRequest$e(config) {
|
|
1081
1081
|
const headers = {};
|
|
1082
1082
|
return {
|
|
1083
1083
|
baseUri: '/services/data/v63.0',
|
|
@@ -1091,7 +1091,7 @@ function createResourceRequest$d(config) {
|
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
|
-
const adapterName$
|
|
1094
|
+
const adapterName$e = '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$e, postDocumentClausePromotion_ConfigPropertyMetadata);
|
|
1106
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$i(postDocumentClausePromotion_ConfigPropertyMetadata);
|
|
1107
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
1108
1108
|
const config = {};
|
|
1109
|
-
typeCheckConfig$
|
|
1109
|
+
typeCheckConfig$i(untrustedConfig, config, postDocumentClausePromotion_ConfigPropertyMetadata);
|
|
1110
1110
|
return config;
|
|
1111
1111
|
}
|
|
1112
|
-
function validateAdapterConfig$
|
|
1112
|
+
function validateAdapterConfig$e(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$e(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$e(luvio, config, options) {
|
|
1126
|
+
const resourceParams = createResourceParams$e(config);
|
|
1127
|
+
const request = createResourceRequest$e(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$e(luvio, resourceParams, response);
|
|
1132
1132
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1133
1133
|
}, () => {
|
|
1134
1134
|
const cache = new StoreKeyMap();
|
|
1135
|
-
getResponseCacheKeys$
|
|
1135
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
1136
1136
|
return cache;
|
|
1137
1137
|
});
|
|
1138
1138
|
}, (response) => {
|
|
@@ -1142,17 +1142,17 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
const postDocumentClausePromotionAdapterFactory = (luvio) => {
|
|
1144
1144
|
return function postDocumentClausePromotion(untrustedConfig) {
|
|
1145
|
-
const config = validateAdapterConfig$
|
|
1145
|
+
const config = validateAdapterConfig$e(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$e(luvio, config);
|
|
1151
1151
|
};
|
|
1152
1152
|
};
|
|
1153
1153
|
|
|
1154
|
-
const VERSION$
|
|
1155
|
-
function validate$
|
|
1154
|
+
const VERSION$k = "bcecd35d822e11f3f4857a8577050951";
|
|
1155
|
+
function validate$o(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$m(obj, path = 'ContentLinkDetailRepresentation') {
|
|
|
1170
1170
|
})();
|
|
1171
1171
|
return v_error === undefined ? null : v_error;
|
|
1172
1172
|
}
|
|
1173
|
-
const select$
|
|
1173
|
+
const select$y = function ContentLinkDetailRepresentationSelect() {
|
|
1174
1174
|
return {
|
|
1175
1175
|
kind: 'Fragment',
|
|
1176
|
-
version: VERSION$
|
|
1176
|
+
version: VERSION$k,
|
|
1177
1177
|
private: [],
|
|
1178
1178
|
selections: [
|
|
1179
1179
|
{
|
|
@@ -1187,7 +1187,7 @@ const select$v = function ContentLinkDetailRepresentationSelect() {
|
|
|
1187
1187
|
]
|
|
1188
1188
|
};
|
|
1189
1189
|
};
|
|
1190
|
-
function equals$
|
|
1190
|
+
function equals$k(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$i(existing, incoming) {
|
|
|
1201
1201
|
return true;
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
|
-
const VERSION$
|
|
1205
|
-
function validate$
|
|
1204
|
+
const VERSION$j = "de7a13661428f2946d41eeaf8fc6bb91";
|
|
1205
|
+
function validate$n(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$l(obj, path = 'FailedContentLinkListRepresentation') {
|
|
|
1220
1220
|
})();
|
|
1221
1221
|
return v_error === undefined ? null : v_error;
|
|
1222
1222
|
}
|
|
1223
|
-
const select$
|
|
1223
|
+
const select$x = function FailedContentLinkListRepresentationSelect() {
|
|
1224
1224
|
return {
|
|
1225
1225
|
kind: 'Fragment',
|
|
1226
|
-
version: VERSION$
|
|
1226
|
+
version: VERSION$j,
|
|
1227
1227
|
private: [],
|
|
1228
1228
|
selections: [
|
|
1229
1229
|
{
|
|
@@ -1237,7 +1237,7 @@ const select$u = function FailedContentLinkListRepresentationSelect() {
|
|
|
1237
1237
|
]
|
|
1238
1238
|
};
|
|
1239
1239
|
};
|
|
1240
|
-
function equals$
|
|
1240
|
+
function equals$j(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$h(existing, incoming) {
|
|
|
1251
1251
|
return true;
|
|
1252
1252
|
}
|
|
1253
1253
|
|
|
1254
|
-
const TTL$
|
|
1255
|
-
const VERSION$
|
|
1256
|
-
function validate$
|
|
1254
|
+
const TTL$7 = 60000;
|
|
1255
|
+
const VERSION$i = "1565c3d42af0656c3fee1a89447c1a2e";
|
|
1256
|
+
function validate$m(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$k(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$o(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$k(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$n(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$k(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$c = 'ContentLinkListRepresentation';
|
|
1304
|
+
function keyBuilder$h(luvio, config) {
|
|
1305
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.referenceObjectId;
|
|
1306
1306
|
}
|
|
1307
|
-
function keyBuilderFromType$
|
|
1307
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
1308
1308
|
const keyParams = {
|
|
1309
1309
|
referenceObjectId: object.referenceObjectId
|
|
1310
1310
|
};
|
|
1311
|
-
return keyBuilder$
|
|
1311
|
+
return keyBuilder$h(luvio, keyParams);
|
|
1312
1312
|
}
|
|
1313
|
-
function normalize$
|
|
1313
|
+
function normalize$c(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$w = function ContentLinkListRepresentationSelect() {
|
|
1317
|
+
const { selections: ContentLinkDetailRepresentation__selections, opaque: ContentLinkDetailRepresentation__opaque, } = select$y();
|
|
1318
|
+
const { selections: FailedContentLinkListRepresentation__selections, opaque: FailedContentLinkListRepresentation__opaque, } = select$x();
|
|
1319
1319
|
return {
|
|
1320
1320
|
kind: 'Fragment',
|
|
1321
|
-
version: VERSION$
|
|
1321
|
+
version: VERSION$i,
|
|
1322
1322
|
private: [],
|
|
1323
1323
|
selections: [
|
|
1324
1324
|
{
|
|
@@ -1342,7 +1342,7 @@ const select$t = function ContentLinkListRepresentationSelect() {
|
|
|
1342
1342
|
]
|
|
1343
1343
|
};
|
|
1344
1344
|
};
|
|
1345
|
-
function equals$
|
|
1345
|
+
function equals$i(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$g(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$k(existing_contentLinkDataList_item, incoming_contentLinkDataList_item))) {
|
|
1362
1362
|
return false;
|
|
1363
1363
|
}
|
|
1364
1364
|
});
|
|
@@ -1376,7 +1376,7 @@ function equals$g(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$j(existing_failedContentLinkList_item, incoming_failedContentLinkList_item))) {
|
|
1380
1380
|
return false;
|
|
1381
1381
|
}
|
|
1382
1382
|
});
|
|
@@ -1386,41 +1386,41 @@ function equals$g(existing, incoming) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
return true;
|
|
1388
1388
|
}
|
|
1389
|
-
const ingest$
|
|
1389
|
+
const ingest$c = function ContentLinkListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1390
1390
|
if (process.env.NODE_ENV !== 'production') {
|
|
1391
|
-
const validateError = validate$
|
|
1391
|
+
const validateError = validate$m(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$7(luvio, input);
|
|
1397
|
+
const ttlToUse = TTL$7;
|
|
1398
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "docgen", VERSION$i, RepresentationType$c, equals$i);
|
|
1399
1399
|
return createLink(key);
|
|
1400
1400
|
};
|
|
1401
|
-
function getTypeCacheKeys$
|
|
1401
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
1402
1402
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1403
|
-
const rootKey = keyBuilderFromType$
|
|
1403
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
1404
1404
|
rootKeySet.set(rootKey, {
|
|
1405
1405
|
namespace: keyPrefix,
|
|
1406
|
-
representationName: RepresentationType$
|
|
1406
|
+
representationName: RepresentationType$c,
|
|
1407
1407
|
mergeable: false
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
1410
|
|
|
1411
|
-
function select$
|
|
1412
|
-
return select$
|
|
1411
|
+
function select$v(luvio, params) {
|
|
1412
|
+
return select$w();
|
|
1413
1413
|
}
|
|
1414
|
-
function getResponseCacheKeys$
|
|
1415
|
-
getTypeCacheKeys$
|
|
1414
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
1415
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
1416
1416
|
}
|
|
1417
|
-
function ingestSuccess$
|
|
1417
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
1418
1418
|
const { body } = response;
|
|
1419
|
-
const key = keyBuilderFromType$
|
|
1420
|
-
luvio.storeIngest(key, ingest$
|
|
1419
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
1420
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
1421
1421
|
const snapshot = luvio.storeLookup({
|
|
1422
1422
|
recordId: key,
|
|
1423
|
-
node: select$
|
|
1423
|
+
node: select$v(),
|
|
1424
1424
|
variables: {},
|
|
1425
1425
|
});
|
|
1426
1426
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1431,7 +1431,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
1431
1431
|
deepFreeze(snapshot.data);
|
|
1432
1432
|
return snapshot;
|
|
1433
1433
|
}
|
|
1434
|
-
function createResourceRequest$
|
|
1434
|
+
function createResourceRequest$d(config) {
|
|
1435
1435
|
const headers = {};
|
|
1436
1436
|
return {
|
|
1437
1437
|
baseUri: '/services/data/v63.0',
|
|
@@ -1445,42 +1445,42 @@ function createResourceRequest$c(config) {
|
|
|
1445
1445
|
};
|
|
1446
1446
|
}
|
|
1447
1447
|
|
|
1448
|
-
const adapterName$
|
|
1448
|
+
const adapterName$d = '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$d, getContentLinkInput_ConfigPropertyMetadata);
|
|
1454
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$i(getContentLinkInput_ConfigPropertyMetadata);
|
|
1455
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
1456
1456
|
const config = {};
|
|
1457
|
-
typeCheckConfig$
|
|
1457
|
+
typeCheckConfig$i(untrustedConfig, config, getContentLinkInput_ConfigPropertyMetadata);
|
|
1458
1458
|
return config;
|
|
1459
1459
|
}
|
|
1460
|
-
function validateAdapterConfig$
|
|
1460
|
+
function validateAdapterConfig$d(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$d(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$d(luvio, config, options) {
|
|
1474
|
+
const resourceParams = createResourceParams$d(config);
|
|
1475
|
+
const request = createResourceRequest$d(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$d(luvio, resourceParams, response);
|
|
1480
1480
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1481
1481
|
}, () => {
|
|
1482
1482
|
const cache = new StoreKeyMap();
|
|
1483
|
-
getResponseCacheKeys$
|
|
1483
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
1484
1484
|
return cache;
|
|
1485
1485
|
});
|
|
1486
1486
|
}, (response) => {
|
|
@@ -1490,17 +1490,17 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
const getContentLinkInputAdapterFactory = (luvio) => {
|
|
1492
1492
|
return function getContentLinkInput(untrustedConfig) {
|
|
1493
|
-
const config = validateAdapterConfig$
|
|
1493
|
+
const config = validateAdapterConfig$d(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$d(luvio, config);
|
|
1499
1499
|
};
|
|
1500
1500
|
};
|
|
1501
1501
|
|
|
1502
|
-
const VERSION$
|
|
1503
|
-
function validate$
|
|
1502
|
+
const VERSION$h = "c8652b5c3ad8c532087704340d3cad55";
|
|
1503
|
+
function validate$l(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$j(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$b = 'GenericOutputRepresentation';
|
|
1524
|
+
function keyBuilder$g(luvio, config) {
|
|
1525
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.id;
|
|
1526
1526
|
}
|
|
1527
|
-
function keyBuilderFromType$
|
|
1527
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
1528
1528
|
const keyParams = {
|
|
1529
1529
|
id: object.id
|
|
1530
1530
|
};
|
|
1531
|
-
return keyBuilder$
|
|
1531
|
+
return keyBuilder$g(luvio, keyParams);
|
|
1532
1532
|
}
|
|
1533
|
-
function normalize$
|
|
1533
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
1534
1534
|
return input;
|
|
1535
1535
|
}
|
|
1536
|
-
const select$
|
|
1536
|
+
const select$u = function GenericOutputRepresentationSelect() {
|
|
1537
1537
|
return {
|
|
1538
1538
|
kind: 'Fragment',
|
|
1539
|
-
version: VERSION$
|
|
1539
|
+
version: VERSION$h,
|
|
1540
1540
|
private: [],
|
|
1541
1541
|
selections: [
|
|
1542
1542
|
{
|
|
@@ -1551,7 +1551,7 @@ const select$r = function GenericOutputRepresentationSelect() {
|
|
|
1551
1551
|
]
|
|
1552
1552
|
};
|
|
1553
1553
|
};
|
|
1554
|
-
function equals$
|
|
1554
|
+
function equals$h(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$f(existing, incoming) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
return true;
|
|
1574
1574
|
}
|
|
1575
|
-
const ingest$
|
|
1575
|
+
const ingest$b = function GenericOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1576
1576
|
if (process.env.NODE_ENV !== 'production') {
|
|
1577
|
-
const validateError = validate$
|
|
1577
|
+
const validateError = validate$l(input);
|
|
1578
1578
|
if (validateError !== null) {
|
|
1579
1579
|
throw validateError;
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
-
const key = keyBuilderFromType$
|
|
1582
|
+
const key = keyBuilderFromType$6(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$b, "docgen", VERSION$h, RepresentationType$b, equals$h);
|
|
1585
1585
|
return createLink(key);
|
|
1586
1586
|
};
|
|
1587
|
-
function getTypeCacheKeys$
|
|
1587
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
1588
1588
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1589
|
-
const rootKey = keyBuilderFromType$
|
|
1589
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
1590
1590
|
rootKeySet.set(rootKey, {
|
|
1591
1591
|
namespace: keyPrefix,
|
|
1592
|
-
representationName: RepresentationType$
|
|
1592
|
+
representationName: RepresentationType$b,
|
|
1593
1593
|
mergeable: false
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
1596
1596
|
|
|
1597
|
-
function select$
|
|
1598
|
-
return select$
|
|
1597
|
+
function select$t(luvio, params) {
|
|
1598
|
+
return select$u();
|
|
1599
1599
|
}
|
|
1600
|
-
function getResponseCacheKeys$
|
|
1601
|
-
getTypeCacheKeys$
|
|
1600
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
1601
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
1602
1602
|
}
|
|
1603
|
-
function ingestSuccess$
|
|
1603
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
1604
1604
|
const { body } = response;
|
|
1605
|
-
const key = keyBuilderFromType$
|
|
1606
|
-
luvio.storeIngest(key, ingest$
|
|
1605
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
1606
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
1607
1607
|
const snapshot = luvio.storeLookup({
|
|
1608
1608
|
recordId: key,
|
|
1609
|
-
node: select$
|
|
1609
|
+
node: select$t(),
|
|
1610
1610
|
variables: {},
|
|
1611
1611
|
});
|
|
1612
1612
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1617,7 +1617,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
1617
1617
|
deepFreeze(snapshot.data);
|
|
1618
1618
|
return snapshot;
|
|
1619
1619
|
}
|
|
1620
|
-
function createResourceRequest$
|
|
1620
|
+
function createResourceRequest$c(config) {
|
|
1621
1621
|
const headers = {};
|
|
1622
1622
|
return {
|
|
1623
1623
|
baseUri: '/services/data/v63.0',
|
|
@@ -1631,42 +1631,42 @@ function createResourceRequest$b(config) {
|
|
|
1631
1631
|
};
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
|
-
const adapterName$
|
|
1634
|
+
const adapterName$c = '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$c, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1640
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$i(performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1641
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
1642
1642
|
const config = {};
|
|
1643
|
-
typeCheckConfig$
|
|
1643
|
+
typeCheckConfig$i(untrustedConfig, config, performDocGenerationBatchProcessAction_ConfigPropertyMetadata);
|
|
1644
1644
|
return config;
|
|
1645
1645
|
}
|
|
1646
|
-
function validateAdapterConfig$
|
|
1646
|
+
function validateAdapterConfig$c(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$c(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$c(luvio, config, options) {
|
|
1660
|
+
const resourceParams = createResourceParams$c(config);
|
|
1661
|
+
const request = createResourceRequest$c(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$c(luvio, resourceParams, response);
|
|
1666
1666
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1667
1667
|
}, () => {
|
|
1668
1668
|
const cache = new StoreKeyMap();
|
|
1669
|
-
getResponseCacheKeys$
|
|
1669
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
1670
1670
|
return cache;
|
|
1671
1671
|
});
|
|
1672
1672
|
}, (response) => {
|
|
@@ -1676,18 +1676,18 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
const performDocGenerationBatchProcessActionAdapterFactory = (luvio) => {
|
|
1678
1678
|
return function performDocGenerationBatchProcessAction(untrustedConfig) {
|
|
1679
|
-
const config = validateAdapterConfig$
|
|
1679
|
+
const config = validateAdapterConfig$c(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$c(luvio, config);
|
|
1685
1685
|
};
|
|
1686
1686
|
};
|
|
1687
1687
|
|
|
1688
|
-
const TTL$
|
|
1689
|
-
const VERSION$
|
|
1690
|
-
function validate$
|
|
1688
|
+
const TTL$6 = 60000;
|
|
1689
|
+
const VERSION$g = "858b017bf441407a49a0d212e2125307";
|
|
1690
|
+
function validate$k(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$i(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$a = 'DocumentCompareOutputRepresentation';
|
|
1709
|
+
function keyBuilder$f(luvio, config) {
|
|
1710
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.compareDocumentId;
|
|
1711
1711
|
}
|
|
1712
|
-
function keyBuilderFromType$
|
|
1712
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
1713
1713
|
const keyParams = {
|
|
1714
1714
|
compareDocumentId: object.compareDocumentId
|
|
1715
1715
|
};
|
|
1716
|
-
return keyBuilder$
|
|
1716
|
+
return keyBuilder$f(luvio, keyParams);
|
|
1717
1717
|
}
|
|
1718
|
-
function normalize$
|
|
1718
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
1719
1719
|
return input;
|
|
1720
1720
|
}
|
|
1721
|
-
const select$
|
|
1721
|
+
const select$s = function DocumentCompareOutputRepresentationSelect() {
|
|
1722
1722
|
return {
|
|
1723
1723
|
kind: 'Fragment',
|
|
1724
|
-
version: VERSION$
|
|
1724
|
+
version: VERSION$g,
|
|
1725
1725
|
private: [],
|
|
1726
1726
|
selections: [
|
|
1727
1727
|
{
|
|
@@ -1735,7 +1735,7 @@ const select$p = function DocumentCompareOutputRepresentationSelect() {
|
|
|
1735
1735
|
]
|
|
1736
1736
|
};
|
|
1737
1737
|
};
|
|
1738
|
-
function equals$
|
|
1738
|
+
function equals$g(existing, incoming) {
|
|
1739
1739
|
const existing_compareDocumentId = existing.compareDocumentId;
|
|
1740
1740
|
const incoming_compareDocumentId = incoming.compareDocumentId;
|
|
1741
1741
|
if (!(existing_compareDocumentId === incoming_compareDocumentId)) {
|
|
@@ -1748,7 +1748,309 @@ function equals$e(existing, incoming) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
return true;
|
|
1750
1750
|
}
|
|
1751
|
-
const ingest$
|
|
1751
|
+
const ingest$a = function DocumentCompareOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1752
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1753
|
+
const validateError = validate$k(input);
|
|
1754
|
+
if (validateError !== null) {
|
|
1755
|
+
throw validateError;
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
1759
|
+
const ttlToUse = TTL$6;
|
|
1760
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "docgen", VERSION$g, RepresentationType$a, equals$g);
|
|
1761
|
+
return createLink(key);
|
|
1762
|
+
};
|
|
1763
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
1764
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1765
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
1766
|
+
rootKeySet.set(rootKey, {
|
|
1767
|
+
namespace: keyPrefix,
|
|
1768
|
+
representationName: RepresentationType$a,
|
|
1769
|
+
mergeable: false
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
function select$r(luvio, params) {
|
|
1774
|
+
return select$s();
|
|
1775
|
+
}
|
|
1776
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
1777
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
1778
|
+
}
|
|
1779
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
1780
|
+
const { body } = response;
|
|
1781
|
+
const key = keyBuilderFromType$5(luvio, body);
|
|
1782
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1783
|
+
const snapshot = luvio.storeLookup({
|
|
1784
|
+
recordId: key,
|
|
1785
|
+
node: select$r(),
|
|
1786
|
+
variables: {},
|
|
1787
|
+
});
|
|
1788
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1789
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1790
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
deepFreeze(snapshot.data);
|
|
1794
|
+
return snapshot;
|
|
1795
|
+
}
|
|
1796
|
+
function createResourceRequest$b(config) {
|
|
1797
|
+
const headers = {};
|
|
1798
|
+
return {
|
|
1799
|
+
baseUri: '/services/data/v63.0',
|
|
1800
|
+
basePath: '/connect/docgen/document-compare',
|
|
1801
|
+
method: 'post',
|
|
1802
|
+
body: config.body,
|
|
1803
|
+
urlParams: {},
|
|
1804
|
+
queryParams: {},
|
|
1805
|
+
headers,
|
|
1806
|
+
priority: 'normal',
|
|
1807
|
+
};
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
const adapterName$b = 'createComparisonDocument';
|
|
1811
|
+
const createComparisonDocument_ConfigPropertyMetadata = [
|
|
1812
|
+
generateParamConfigMetadata('baseDocumentId', true, 2 /* Body */, 0 /* String */),
|
|
1813
|
+
generateParamConfigMetadata('baseDocumentSourceType', true, 2 /* Body */, 0 /* String */),
|
|
1814
|
+
generateParamConfigMetadata('compareToDocumentId', true, 2 /* Body */, 0 /* String */),
|
|
1815
|
+
generateParamConfigMetadata('compareToDocumentSourceType', true, 2 /* Body */, 0 /* String */),
|
|
1816
|
+
];
|
|
1817
|
+
const createComparisonDocument_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, createComparisonDocument_ConfigPropertyMetadata);
|
|
1818
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$i(createComparisonDocument_ConfigPropertyMetadata);
|
|
1819
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
1820
|
+
const config = {};
|
|
1821
|
+
typeCheckConfig$i(untrustedConfig, config, createComparisonDocument_ConfigPropertyMetadata);
|
|
1822
|
+
return config;
|
|
1823
|
+
}
|
|
1824
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
1825
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1826
|
+
return null;
|
|
1827
|
+
}
|
|
1828
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1829
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1830
|
+
}
|
|
1831
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
1832
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1833
|
+
return null;
|
|
1834
|
+
}
|
|
1835
|
+
return config;
|
|
1836
|
+
}
|
|
1837
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
1838
|
+
const resourceParams = createResourceParams$b(config);
|
|
1839
|
+
const request = createResourceRequest$b(resourceParams);
|
|
1840
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1841
|
+
.then((response) => {
|
|
1842
|
+
return luvio.handleSuccessResponse(() => {
|
|
1843
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
1844
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1845
|
+
}, () => {
|
|
1846
|
+
const cache = new StoreKeyMap();
|
|
1847
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
1848
|
+
return cache;
|
|
1849
|
+
});
|
|
1850
|
+
}, (response) => {
|
|
1851
|
+
deepFreeze(response);
|
|
1852
|
+
throw response;
|
|
1853
|
+
});
|
|
1854
|
+
}
|
|
1855
|
+
const createComparisonDocumentAdapterFactory = (luvio) => {
|
|
1856
|
+
return function createComparisonDocument(untrustedConfig) {
|
|
1857
|
+
const config = validateAdapterConfig$b(untrustedConfig, createComparisonDocument_ConfigPropertyNames);
|
|
1858
|
+
// Invalid or incomplete config
|
|
1859
|
+
if (config === null) {
|
|
1860
|
+
throw new Error('Invalid config for "createComparisonDocument"');
|
|
1861
|
+
}
|
|
1862
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
1863
|
+
};
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
const VERSION$f = "fbc748611fb0f561fc0ba56b408b33ba";
|
|
1867
|
+
function validate$j(obj, path = 'DocPreviewUrlRepresentation') {
|
|
1868
|
+
const v_error = (() => {
|
|
1869
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1870
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1871
|
+
}
|
|
1872
|
+
const obj_pageNumber = obj.pageNumber;
|
|
1873
|
+
const path_pageNumber = path + '.pageNumber';
|
|
1874
|
+
if (typeof obj_pageNumber !== 'number' || (typeof obj_pageNumber === 'number' && Math.floor(obj_pageNumber) !== obj_pageNumber)) {
|
|
1875
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_pageNumber + '" (at "' + path_pageNumber + '")');
|
|
1876
|
+
}
|
|
1877
|
+
const obj_previewUrl = obj.previewUrl;
|
|
1878
|
+
const path_previewUrl = path + '.previewUrl';
|
|
1879
|
+
if (typeof obj_previewUrl !== 'string') {
|
|
1880
|
+
return new TypeError('Expected "string" but received "' + typeof obj_previewUrl + '" (at "' + path_previewUrl + '")');
|
|
1881
|
+
}
|
|
1882
|
+
})();
|
|
1883
|
+
return v_error === undefined ? null : v_error;
|
|
1884
|
+
}
|
|
1885
|
+
const select$q = function DocPreviewUrlRepresentationSelect() {
|
|
1886
|
+
return {
|
|
1887
|
+
kind: 'Fragment',
|
|
1888
|
+
version: VERSION$f,
|
|
1889
|
+
private: [],
|
|
1890
|
+
selections: [
|
|
1891
|
+
{
|
|
1892
|
+
name: 'pageNumber',
|
|
1893
|
+
kind: 'Scalar'
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
name: 'previewUrl',
|
|
1897
|
+
kind: 'Scalar'
|
|
1898
|
+
}
|
|
1899
|
+
]
|
|
1900
|
+
};
|
|
1901
|
+
};
|
|
1902
|
+
function equals$f(existing, incoming) {
|
|
1903
|
+
const existing_pageNumber = existing.pageNumber;
|
|
1904
|
+
const incoming_pageNumber = incoming.pageNumber;
|
|
1905
|
+
if (!(existing_pageNumber === incoming_pageNumber)) {
|
|
1906
|
+
return false;
|
|
1907
|
+
}
|
|
1908
|
+
const existing_previewUrl = existing.previewUrl;
|
|
1909
|
+
const incoming_previewUrl = incoming.previewUrl;
|
|
1910
|
+
if (!(existing_previewUrl === incoming_previewUrl)) {
|
|
1911
|
+
return false;
|
|
1912
|
+
}
|
|
1913
|
+
return true;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
const TTL$5 = 60000;
|
|
1917
|
+
const VERSION$e = "9a5fdbf5d6f626f5a6b154ce5f8f688f";
|
|
1918
|
+
function validate$i(obj, path = 'DocPreviewOutputRepresentation') {
|
|
1919
|
+
const v_error = (() => {
|
|
1920
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1921
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1922
|
+
}
|
|
1923
|
+
const obj_fileId = obj.fileId;
|
|
1924
|
+
const path_fileId = path + '.fileId';
|
|
1925
|
+
if (typeof obj_fileId !== 'string') {
|
|
1926
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fileId + '" (at "' + path_fileId + '")');
|
|
1927
|
+
}
|
|
1928
|
+
const obj_format = obj.format;
|
|
1929
|
+
const path_format = path + '.format';
|
|
1930
|
+
if (typeof obj_format !== 'string') {
|
|
1931
|
+
return new TypeError('Expected "string" but received "' + typeof obj_format + '" (at "' + path_format + '")');
|
|
1932
|
+
}
|
|
1933
|
+
const obj_pageCount = obj.pageCount;
|
|
1934
|
+
const path_pageCount = path + '.pageCount';
|
|
1935
|
+
if (typeof obj_pageCount !== 'number' || (typeof obj_pageCount === 'number' && Math.floor(obj_pageCount) !== obj_pageCount)) {
|
|
1936
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_pageCount + '" (at "' + path_pageCount + '")');
|
|
1937
|
+
}
|
|
1938
|
+
const obj_previewUrlCount = obj.previewUrlCount;
|
|
1939
|
+
const path_previewUrlCount = path + '.previewUrlCount';
|
|
1940
|
+
if (typeof obj_previewUrlCount !== 'number' || (typeof obj_previewUrlCount === 'number' && Math.floor(obj_previewUrlCount) !== obj_previewUrlCount)) {
|
|
1941
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_previewUrlCount + '" (at "' + path_previewUrlCount + '")');
|
|
1942
|
+
}
|
|
1943
|
+
const obj_previewUrls = obj.previewUrls;
|
|
1944
|
+
const path_previewUrls = path + '.previewUrls';
|
|
1945
|
+
if (!ArrayIsArray(obj_previewUrls)) {
|
|
1946
|
+
return new TypeError('Expected "array" but received "' + typeof obj_previewUrls + '" (at "' + path_previewUrls + '")');
|
|
1947
|
+
}
|
|
1948
|
+
for (let i = 0; i < obj_previewUrls.length; i++) {
|
|
1949
|
+
const obj_previewUrls_item = obj_previewUrls[i];
|
|
1950
|
+
const path_previewUrls_item = path_previewUrls + '[' + i + ']';
|
|
1951
|
+
const referencepath_previewUrls_itemValidationError = validate$j(obj_previewUrls_item, path_previewUrls_item);
|
|
1952
|
+
if (referencepath_previewUrls_itemValidationError !== null) {
|
|
1953
|
+
let message = 'Object doesn\'t match DocPreviewUrlRepresentation (at "' + path_previewUrls_item + '")\n';
|
|
1954
|
+
message += referencepath_previewUrls_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1955
|
+
return new TypeError(message);
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
const obj_status = obj.status;
|
|
1959
|
+
const path_status = path + '.status';
|
|
1960
|
+
if (typeof obj_status !== 'string') {
|
|
1961
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1962
|
+
}
|
|
1963
|
+
})();
|
|
1964
|
+
return v_error === undefined ? null : v_error;
|
|
1965
|
+
}
|
|
1966
|
+
const RepresentationType$9 = 'DocPreviewOutputRepresentation';
|
|
1967
|
+
function keyBuilder$e(luvio, config) {
|
|
1968
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.fileId;
|
|
1969
|
+
}
|
|
1970
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
1971
|
+
const keyParams = {
|
|
1972
|
+
fileId: object.fileId
|
|
1973
|
+
};
|
|
1974
|
+
return keyBuilder$e(luvio, keyParams);
|
|
1975
|
+
}
|
|
1976
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1977
|
+
return input;
|
|
1978
|
+
}
|
|
1979
|
+
const select$p = function DocPreviewOutputRepresentationSelect() {
|
|
1980
|
+
const { selections: DocPreviewUrlRepresentation__selections, opaque: DocPreviewUrlRepresentation__opaque, } = select$q();
|
|
1981
|
+
return {
|
|
1982
|
+
kind: 'Fragment',
|
|
1983
|
+
version: VERSION$e,
|
|
1984
|
+
private: [],
|
|
1985
|
+
selections: [
|
|
1986
|
+
{
|
|
1987
|
+
name: 'fileId',
|
|
1988
|
+
kind: 'Scalar'
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
name: 'format',
|
|
1992
|
+
kind: 'Scalar'
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
name: 'pageCount',
|
|
1996
|
+
kind: 'Scalar'
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
name: 'previewUrlCount',
|
|
2000
|
+
kind: 'Scalar'
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
name: 'previewUrls',
|
|
2004
|
+
kind: 'Object',
|
|
2005
|
+
plural: true,
|
|
2006
|
+
selections: DocPreviewUrlRepresentation__selections
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
name: 'status',
|
|
2010
|
+
kind: 'Scalar'
|
|
2011
|
+
}
|
|
2012
|
+
]
|
|
2013
|
+
};
|
|
2014
|
+
};
|
|
2015
|
+
function equals$e(existing, incoming) {
|
|
2016
|
+
const existing_pageCount = existing.pageCount;
|
|
2017
|
+
const incoming_pageCount = incoming.pageCount;
|
|
2018
|
+
if (!(existing_pageCount === incoming_pageCount)) {
|
|
2019
|
+
return false;
|
|
2020
|
+
}
|
|
2021
|
+
const existing_previewUrlCount = existing.previewUrlCount;
|
|
2022
|
+
const incoming_previewUrlCount = incoming.previewUrlCount;
|
|
2023
|
+
if (!(existing_previewUrlCount === incoming_previewUrlCount)) {
|
|
2024
|
+
return false;
|
|
2025
|
+
}
|
|
2026
|
+
const existing_fileId = existing.fileId;
|
|
2027
|
+
const incoming_fileId = incoming.fileId;
|
|
2028
|
+
if (!(existing_fileId === incoming_fileId)) {
|
|
2029
|
+
return false;
|
|
2030
|
+
}
|
|
2031
|
+
const existing_format = existing.format;
|
|
2032
|
+
const incoming_format = incoming.format;
|
|
2033
|
+
if (!(existing_format === incoming_format)) {
|
|
2034
|
+
return false;
|
|
2035
|
+
}
|
|
2036
|
+
const existing_status = existing.status;
|
|
2037
|
+
const incoming_status = incoming.status;
|
|
2038
|
+
if (!(existing_status === incoming_status)) {
|
|
2039
|
+
return false;
|
|
2040
|
+
}
|
|
2041
|
+
const existing_previewUrls = existing.previewUrls;
|
|
2042
|
+
const incoming_previewUrls = incoming.previewUrls;
|
|
2043
|
+
const equals_previewUrls_items = equalsArray(existing_previewUrls, incoming_previewUrls, (existing_previewUrls_item, incoming_previewUrls_item) => {
|
|
2044
|
+
if (!(equals$f(existing_previewUrls_item, incoming_previewUrls_item))) {
|
|
2045
|
+
return false;
|
|
2046
|
+
}
|
|
2047
|
+
});
|
|
2048
|
+
if (equals_previewUrls_items === false) {
|
|
2049
|
+
return false;
|
|
2050
|
+
}
|
|
2051
|
+
return true;
|
|
2052
|
+
}
|
|
2053
|
+
const ingest$9 = function DocPreviewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1752
2054
|
if (process.env.NODE_ENV !== 'production') {
|
|
1753
2055
|
const validateError = validate$i(input);
|
|
1754
2056
|
if (validateError !== null) {
|
|
@@ -1797,7 +2099,7 @@ function createResourceRequest$a(config) {
|
|
|
1797
2099
|
const headers = {};
|
|
1798
2100
|
return {
|
|
1799
2101
|
baseUri: '/services/data/v63.0',
|
|
1800
|
-
basePath: '/connect/docgen/document
|
|
2102
|
+
basePath: '/connect/docgen/document/preview',
|
|
1801
2103
|
method: 'post',
|
|
1802
2104
|
body: config.body,
|
|
1803
2105
|
urlParams: {},
|
|
@@ -1807,18 +2109,20 @@ function createResourceRequest$a(config) {
|
|
|
1807
2109
|
};
|
|
1808
2110
|
}
|
|
1809
2111
|
|
|
1810
|
-
const adapterName$a = '
|
|
1811
|
-
const
|
|
1812
|
-
generateParamConfigMetadata('
|
|
1813
|
-
generateParamConfigMetadata('
|
|
1814
|
-
generateParamConfigMetadata('
|
|
1815
|
-
generateParamConfigMetadata('
|
|
2112
|
+
const adapterName$a = '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 */),
|
|
1816
2120
|
];
|
|
1817
|
-
const
|
|
1818
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
2121
|
+
const getDocumentPreview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getDocumentPreview_ConfigPropertyMetadata);
|
|
2122
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$i(getDocumentPreview_ConfigPropertyMetadata);
|
|
1819
2123
|
function typeCheckConfig$a(untrustedConfig) {
|
|
1820
2124
|
const config = {};
|
|
1821
|
-
typeCheckConfig$
|
|
2125
|
+
typeCheckConfig$i(untrustedConfig, config, getDocumentPreview_ConfigPropertyMetadata);
|
|
1822
2126
|
return config;
|
|
1823
2127
|
}
|
|
1824
2128
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -1852,12 +2156,12 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
1852
2156
|
throw response;
|
|
1853
2157
|
});
|
|
1854
2158
|
}
|
|
1855
|
-
const
|
|
1856
|
-
return function
|
|
1857
|
-
const config = validateAdapterConfig$a(untrustedConfig,
|
|
2159
|
+
const getDocumentPreviewAdapterFactory = (luvio) => {
|
|
2160
|
+
return function getDocumentPreview(untrustedConfig) {
|
|
2161
|
+
const config = validateAdapterConfig$a(untrustedConfig, getDocumentPreview_ConfigPropertyNames);
|
|
1858
2162
|
// Invalid or incomplete config
|
|
1859
2163
|
if (config === null) {
|
|
1860
|
-
throw new Error('Invalid config for "
|
|
2164
|
+
throw new Error('Invalid config for "getDocumentPreview"');
|
|
1861
2165
|
}
|
|
1862
2166
|
return buildNetworkSnapshot$a(luvio, config);
|
|
1863
2167
|
};
|
|
@@ -2100,14 +2404,14 @@ const getDocumentTemplates_ConfigPropertyMetadata = [
|
|
|
2100
2404
|
generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
2101
2405
|
];
|
|
2102
2406
|
const getDocumentTemplates_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getDocumentTemplates_ConfigPropertyMetadata);
|
|
2103
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
2407
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$i(getDocumentTemplates_ConfigPropertyMetadata);
|
|
2104
2408
|
function keyBuilder$c(luvio, config) {
|
|
2105
2409
|
const resourceParams = createResourceParams$9(config);
|
|
2106
2410
|
return keyBuilder$d(luvio, resourceParams);
|
|
2107
2411
|
}
|
|
2108
2412
|
function typeCheckConfig$9(untrustedConfig) {
|
|
2109
2413
|
const config = {};
|
|
2110
|
-
typeCheckConfig$
|
|
2414
|
+
typeCheckConfig$i(untrustedConfig, config, getDocumentTemplates_ConfigPropertyMetadata);
|
|
2111
2415
|
return config;
|
|
2112
2416
|
}
|
|
2113
2417
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -2303,10 +2607,10 @@ const updateDocumentTemplate_ConfigPropertyMetadata = [
|
|
|
2303
2607
|
generateParamConfigMetadata('shouldDisplayUnmappedToken', false, 2 /* Body */, 1 /* Boolean */),
|
|
2304
2608
|
];
|
|
2305
2609
|
const updateDocumentTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateDocumentTemplate_ConfigPropertyMetadata);
|
|
2306
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
2610
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$i(updateDocumentTemplate_ConfigPropertyMetadata);
|
|
2307
2611
|
function typeCheckConfig$8(untrustedConfig) {
|
|
2308
2612
|
const config = {};
|
|
2309
|
-
typeCheckConfig$
|
|
2613
|
+
typeCheckConfig$i(untrustedConfig, config, updateDocumentTemplate_ConfigPropertyMetadata);
|
|
2310
2614
|
return config;
|
|
2311
2615
|
}
|
|
2312
2616
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -2408,10 +2712,10 @@ const createDocumentTemplate_ConfigPropertyMetadata = [
|
|
|
2408
2712
|
generateParamConfigMetadata('xmlRelationshipMetadata', false, 2 /* Body */, 0 /* String */),
|
|
2409
2713
|
];
|
|
2410
2714
|
const createDocumentTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, createDocumentTemplate_ConfigPropertyMetadata);
|
|
2411
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
2715
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$i(createDocumentTemplate_ConfigPropertyMetadata);
|
|
2412
2716
|
function typeCheckConfig$7(untrustedConfig) {
|
|
2413
2717
|
const config = {};
|
|
2414
|
-
typeCheckConfig$
|
|
2718
|
+
typeCheckConfig$i(untrustedConfig, config, createDocumentTemplate_ConfigPropertyMetadata);
|
|
2415
2719
|
return config;
|
|
2416
2720
|
}
|
|
2417
2721
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -2767,14 +3071,14 @@ const getDocuments_ConfigPropertyMetadata = [
|
|
|
2767
3071
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2768
3072
|
];
|
|
2769
3073
|
const getDocuments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDocuments_ConfigPropertyMetadata);
|
|
2770
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
3074
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$i(getDocuments_ConfigPropertyMetadata);
|
|
2771
3075
|
function keyBuilder$9(luvio, config) {
|
|
2772
3076
|
const resourceParams = createResourceParams$6(config);
|
|
2773
3077
|
return keyBuilder$a(luvio, resourceParams);
|
|
2774
3078
|
}
|
|
2775
3079
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2776
3080
|
const config = {};
|
|
2777
|
-
typeCheckConfig$
|
|
3081
|
+
typeCheckConfig$i(untrustedConfig, config, getDocuments_ConfigPropertyMetadata);
|
|
2778
3082
|
return config;
|
|
2779
3083
|
}
|
|
2780
3084
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -3232,14 +3536,14 @@ const getESignNotificationSettings_ConfigPropertyMetadata = [
|
|
|
3232
3536
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3233
3537
|
];
|
|
3234
3538
|
const getESignNotificationSettings_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getESignNotificationSettings_ConfigPropertyMetadata);
|
|
3235
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
3539
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$i(getESignNotificationSettings_ConfigPropertyMetadata);
|
|
3236
3540
|
function keyBuilder$7(luvio, config) {
|
|
3237
3541
|
const resourceParams = createResourceParams$5(config);
|
|
3238
3542
|
return keyBuilder$8(luvio, resourceParams);
|
|
3239
3543
|
}
|
|
3240
3544
|
function typeCheckConfig$5(untrustedConfig) {
|
|
3241
3545
|
const config = {};
|
|
3242
|
-
typeCheckConfig$
|
|
3546
|
+
typeCheckConfig$i(untrustedConfig, config, getESignNotificationSettings_ConfigPropertyMetadata);
|
|
3243
3547
|
return config;
|
|
3244
3548
|
}
|
|
3245
3549
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -3599,14 +3903,14 @@ const getRecipients_ConfigPropertyMetadata = [
|
|
|
3599
3903
|
generateParamConfigMetadata('sourceObjectId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3600
3904
|
];
|
|
3601
3905
|
const getRecipients_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getRecipients_ConfigPropertyMetadata);
|
|
3602
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
3906
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$i(getRecipients_ConfigPropertyMetadata);
|
|
3603
3907
|
function keyBuilder$5(luvio, config) {
|
|
3604
3908
|
const resourceParams = createResourceParams$4(config);
|
|
3605
3909
|
return keyBuilder$6(luvio, resourceParams);
|
|
3606
3910
|
}
|
|
3607
3911
|
function typeCheckConfig$4(untrustedConfig) {
|
|
3608
3912
|
const config = {};
|
|
3609
|
-
typeCheckConfig$
|
|
3913
|
+
typeCheckConfig$i(untrustedConfig, config, getRecipients_ConfigPropertyMetadata);
|
|
3610
3914
|
return config;
|
|
3611
3915
|
}
|
|
3612
3916
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -3866,10 +4170,10 @@ const createDocumentEnvelopeForEsign_ConfigPropertyMetadata = [
|
|
|
3866
4170
|
generateParamConfigMetadata('envelope', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3867
4171
|
];
|
|
3868
4172
|
const createDocumentEnvelopeForEsign_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
3869
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
4173
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$i(createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
3870
4174
|
function typeCheckConfig$3(untrustedConfig) {
|
|
3871
4175
|
const config = {};
|
|
3872
|
-
typeCheckConfig$
|
|
4176
|
+
typeCheckConfig$i(untrustedConfig, config, createDocumentEnvelopeForEsign_ConfigPropertyMetadata);
|
|
3873
4177
|
const untrustedConfig_envelope = untrustedConfig.envelope;
|
|
3874
4178
|
const referenceEnvelopeSendRequestValidationError = validate$6(untrustedConfig_envelope);
|
|
3875
4179
|
if (referenceEnvelopeSendRequestValidationError === null) {
|
|
@@ -4205,10 +4509,10 @@ const updateEnvelope_ConfigPropertyMetadata = [
|
|
|
4205
4509
|
generateParamConfigMetadata('sourceObjectId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4206
4510
|
];
|
|
4207
4511
|
const updateEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, updateEnvelope_ConfigPropertyMetadata);
|
|
4208
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
4512
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$i(updateEnvelope_ConfigPropertyMetadata);
|
|
4209
4513
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4210
4514
|
const config = {};
|
|
4211
|
-
typeCheckConfig$
|
|
4515
|
+
typeCheckConfig$i(untrustedConfig, config, updateEnvelope_ConfigPropertyMetadata);
|
|
4212
4516
|
return config;
|
|
4213
4517
|
}
|
|
4214
4518
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -4472,10 +4776,10 @@ const updateVoidedEnvelope_ConfigPropertyMetadata = [
|
|
|
4472
4776
|
generateParamConfigMetadata('voidParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4473
4777
|
];
|
|
4474
4778
|
const updateVoidedEnvelope_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
4475
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
4779
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$i(updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
4476
4780
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4477
4781
|
const config = {};
|
|
4478
|
-
typeCheckConfig$
|
|
4782
|
+
typeCheckConfig$i(untrustedConfig, config, updateVoidedEnvelope_ConfigPropertyMetadata);
|
|
4479
4783
|
const untrustedConfig_voidParam = untrustedConfig.voidParam;
|
|
4480
4784
|
const referenceEnvelopeVoidRequestValidationError = validate$2(untrustedConfig_voidParam);
|
|
4481
4785
|
if (referenceEnvelopeVoidRequestValidationError === null) {
|
|
@@ -4666,7 +4970,7 @@ function createResourceRequest(config) {
|
|
|
4666
4970
|
const adapterName = 'getSignerRoles';
|
|
4667
4971
|
const getSignerRoles_ConfigPropertyMetadata = [];
|
|
4668
4972
|
const getSignerRoles_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSignerRoles_ConfigPropertyMetadata);
|
|
4669
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4973
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$i(getSignerRoles_ConfigPropertyMetadata);
|
|
4670
4974
|
function keyBuilder(luvio, config) {
|
|
4671
4975
|
createResourceParams(config);
|
|
4672
4976
|
return keyBuilder$1();
|
|
@@ -4746,4 +5050,4 @@ const getSignerRolesAdapterFactory = (luvio) => function docgen__getSignerRoles(
|
|
|
4746
5050
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
4747
5051
|
};
|
|
4748
5052
|
|
|
4749
|
-
export { createComparisonDocumentAdapterFactory, createDocumentEnvelopeForEsignAdapterFactory, createDocumentTemplateAdapterFactory, getContentLinkInputAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentTemplatesAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, postDocumentClausePromotionAdapterFactory, updateDocumentTemplateAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };
|
|
5053
|
+
export { createComparisonDocumentAdapterFactory, createDocumentEnvelopeForEsignAdapterFactory, createDocumentTemplateAdapterFactory, getContentLinkInputAdapterFactory, getDocumentClauseFieldsAdapterFactory, getDocumentClauseSetCategoriesAdapterFactory, getDocumentClauseSetsAdapterFactory, getDocumentPreviewAdapterFactory, getDocumentTemplatesAdapterFactory, getDocumentsAdapterFactory, getESignNotificationSettingsAdapterFactory, getRecipientsAdapterFactory, getSignerRolesAdapterFactory, performDocGenerationBatchProcessActionAdapterFactory, postDocumentClausePromotionAdapterFactory, updateDocumentTemplateAdapterFactory, updateEnvelopeAdapterFactory, updateVoidedEnvelopeAdapterFactory };
|