@salesforce/lds-adapters-platform-files 1.315.0 → 1.317.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/platform-files.js +752 -281
- package/dist/es/es2018/types/src/generated/adapters/getFilePreview.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/adapters/getFilePreviewCommunity.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectCommunitiesFilesPreviewsByCommunityIdAndFileIdAndPreviewFormat.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectFilesPreviewsByFileIdAndPreviewFormat.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/types/FilePreviewRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/FilePreviewUrlRepresentation.d.ts +31 -0
- package/package.json +3 -3
- package/sfdc/index.js +719 -225
- package/src/raml/api.raml +117 -0
- package/src/raml/luvio.raml +12 -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$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, StoreKeyMap, createResourceParams as createResourceParams$4, typeCheckConfig as typeCheckConfig$4 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -111,9 +111,9 @@ function createLink(ref) {
|
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
const TTL$
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$
|
|
114
|
+
const TTL$2 = 100;
|
|
115
|
+
const VERSION$o = "0ebfcb4004619c58d2d8352ba253d6c1";
|
|
116
|
+
function validate$o(obj, path = 'FileUploadConfigRepresentation') {
|
|
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 + '")');
|
|
@@ -141,14 +141,14 @@ function validate$m(obj, path = 'FileUploadConfigRepresentation') {
|
|
|
141
141
|
})();
|
|
142
142
|
return v_error === undefined ? null : v_error;
|
|
143
143
|
}
|
|
144
|
-
const RepresentationType$
|
|
145
|
-
function normalize$
|
|
144
|
+
const RepresentationType$2 = 'FileUploadConfigRepresentation';
|
|
145
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
146
146
|
return input;
|
|
147
147
|
}
|
|
148
|
-
const select$
|
|
148
|
+
const select$s = function FileUploadConfigRepresentationSelect() {
|
|
149
149
|
return {
|
|
150
150
|
kind: 'Fragment',
|
|
151
|
-
version: VERSION$
|
|
151
|
+
version: VERSION$o,
|
|
152
152
|
private: [],
|
|
153
153
|
selections: [
|
|
154
154
|
{
|
|
@@ -170,7 +170,7 @@ const select$o = function FileUploadConfigRepresentationSelect() {
|
|
|
170
170
|
]
|
|
171
171
|
};
|
|
172
172
|
};
|
|
173
|
-
function equals$
|
|
173
|
+
function equals$o(existing, incoming) {
|
|
174
174
|
const existing_hasCustomRecordTypes = existing.hasCustomRecordTypes;
|
|
175
175
|
const incoming_hasCustomRecordTypes = incoming.hasCustomRecordTypes;
|
|
176
176
|
if (!(existing_hasCustomRecordTypes === incoming_hasCustomRecordTypes)) {
|
|
@@ -193,44 +193,44 @@ function equals$m(existing, incoming) {
|
|
|
193
193
|
}
|
|
194
194
|
return true;
|
|
195
195
|
}
|
|
196
|
-
const ingest$
|
|
196
|
+
const ingest$2 = function FileUploadConfigRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
197
197
|
if (process.env.NODE_ENV !== 'production') {
|
|
198
|
-
const validateError = validate$
|
|
198
|
+
const validateError = validate$o(input);
|
|
199
199
|
if (validateError !== null) {
|
|
200
200
|
throw validateError;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
const key = path.fullPath;
|
|
204
|
-
const ttlToUse = TTL$
|
|
205
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
204
|
+
const ttlToUse = TTL$2;
|
|
205
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "files", VERSION$o, RepresentationType$2, equals$o);
|
|
206
206
|
return createLink(key);
|
|
207
207
|
};
|
|
208
|
-
function getTypeCacheKeys$
|
|
208
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
209
209
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
210
210
|
const rootKey = fullPathFactory();
|
|
211
211
|
rootKeySet.set(rootKey, {
|
|
212
212
|
namespace: keyPrefix,
|
|
213
|
-
representationName: RepresentationType$
|
|
213
|
+
representationName: RepresentationType$2,
|
|
214
214
|
mergeable: false
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
function select$
|
|
219
|
-
return select$
|
|
218
|
+
function select$r(luvio, params) {
|
|
219
|
+
return select$s();
|
|
220
220
|
}
|
|
221
|
-
function keyBuilder$
|
|
221
|
+
function keyBuilder$6(luvio, params) {
|
|
222
222
|
return keyPrefix + '::FileUploadConfigRepresentation:(' + ')';
|
|
223
223
|
}
|
|
224
|
-
function getResponseCacheKeys$
|
|
225
|
-
getTypeCacheKeys$
|
|
224
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
225
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$6());
|
|
226
226
|
}
|
|
227
|
-
function ingestSuccess$
|
|
227
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
228
228
|
const { body } = response;
|
|
229
|
-
const key = keyBuilder$
|
|
230
|
-
luvio.storeIngest(key, ingest$
|
|
229
|
+
const key = keyBuilder$6();
|
|
230
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
231
231
|
const snapshot = luvio.storeLookup({
|
|
232
232
|
recordId: key,
|
|
233
|
-
node: select$
|
|
233
|
+
node: select$r(),
|
|
234
234
|
variables: {},
|
|
235
235
|
}, snapshotRefresh);
|
|
236
236
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -241,19 +241,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
241
241
|
deepFreeze(snapshot.data);
|
|
242
242
|
return snapshot;
|
|
243
243
|
}
|
|
244
|
-
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
245
|
-
const key = keyBuilder$
|
|
244
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
245
|
+
const key = keyBuilder$6();
|
|
246
246
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
247
247
|
const storeMetadataParams = {
|
|
248
|
-
ttl: TTL$
|
|
248
|
+
ttl: TTL$2,
|
|
249
249
|
namespace: keyPrefix,
|
|
250
|
-
version: VERSION$
|
|
251
|
-
representationName: RepresentationType$
|
|
250
|
+
version: VERSION$o,
|
|
251
|
+
representationName: RepresentationType$2
|
|
252
252
|
};
|
|
253
253
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
254
254
|
return errorSnapshot;
|
|
255
255
|
}
|
|
256
|
-
function createResourceRequest$
|
|
256
|
+
function createResourceRequest$3(config) {
|
|
257
257
|
const headers = {};
|
|
258
258
|
return {
|
|
259
259
|
baseUri: '/services/data/v63.0',
|
|
@@ -267,91 +267,91 @@ function createResourceRequest$1(config) {
|
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
const adapterName$
|
|
270
|
+
const adapterName$3 = 'getFileUploadConfig';
|
|
271
271
|
const getFileUploadConfig_ConfigPropertyMetadata = [];
|
|
272
|
-
const getFileUploadConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
273
|
-
const createResourceParams$
|
|
274
|
-
function keyBuilder$
|
|
275
|
-
createResourceParams$
|
|
276
|
-
return keyBuilder$
|
|
272
|
+
const getFileUploadConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getFileUploadConfig_ConfigPropertyMetadata);
|
|
273
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getFileUploadConfig_ConfigPropertyMetadata);
|
|
274
|
+
function keyBuilder$5(luvio, config) {
|
|
275
|
+
createResourceParams$3(config);
|
|
276
|
+
return keyBuilder$6();
|
|
277
277
|
}
|
|
278
|
-
function typeCheckConfig$
|
|
278
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
279
279
|
const config = {};
|
|
280
280
|
return config;
|
|
281
281
|
}
|
|
282
|
-
function validateAdapterConfig$
|
|
282
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
283
283
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
284
284
|
return null;
|
|
285
285
|
}
|
|
286
286
|
if (process.env.NODE_ENV !== 'production') {
|
|
287
287
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
288
288
|
}
|
|
289
|
-
const config = typeCheckConfig$
|
|
289
|
+
const config = typeCheckConfig$3();
|
|
290
290
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
291
291
|
return null;
|
|
292
292
|
}
|
|
293
293
|
return config;
|
|
294
294
|
}
|
|
295
|
-
function adapterFragment(luvio, config) {
|
|
296
|
-
createResourceParams$
|
|
297
|
-
return select$
|
|
295
|
+
function adapterFragment$2(luvio, config) {
|
|
296
|
+
createResourceParams$3(config);
|
|
297
|
+
return select$r();
|
|
298
298
|
}
|
|
299
|
-
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
300
|
-
const snapshot = ingestSuccess$
|
|
299
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
300
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
301
301
|
config,
|
|
302
|
-
resolve: () => buildNetworkSnapshot$
|
|
302
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
303
303
|
});
|
|
304
304
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
305
305
|
}
|
|
306
|
-
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
307
|
-
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
306
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
307
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
308
308
|
config,
|
|
309
|
-
resolve: () => buildNetworkSnapshot$
|
|
309
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
310
310
|
});
|
|
311
311
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
312
312
|
}
|
|
313
|
-
function buildNetworkSnapshot$
|
|
314
|
-
const resourceParams = createResourceParams$
|
|
315
|
-
const request = createResourceRequest$
|
|
313
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
314
|
+
const resourceParams = createResourceParams$3(config);
|
|
315
|
+
const request = createResourceRequest$3();
|
|
316
316
|
return luvio.dispatchResourceRequest(request, options)
|
|
317
317
|
.then((response) => {
|
|
318
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
318
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
319
319
|
const cache = new StoreKeyMap();
|
|
320
|
-
getResponseCacheKeys$
|
|
320
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
321
321
|
return cache;
|
|
322
322
|
});
|
|
323
323
|
}, (response) => {
|
|
324
|
-
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
324
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
|
-
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
328
|
-
return buildNetworkSnapshotCachePolicy$
|
|
327
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
328
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
329
329
|
}
|
|
330
|
-
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
330
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
331
331
|
const { luvio, config } = context;
|
|
332
332
|
const selector = {
|
|
333
|
-
recordId: keyBuilder$
|
|
334
|
-
node: adapterFragment(luvio, config),
|
|
333
|
+
recordId: keyBuilder$5(luvio, config),
|
|
334
|
+
node: adapterFragment$2(luvio, config),
|
|
335
335
|
variables: {},
|
|
336
336
|
};
|
|
337
337
|
const cacheSnapshot = storeLookup(selector, {
|
|
338
338
|
config,
|
|
339
|
-
resolve: () => buildNetworkSnapshot$
|
|
339
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
340
340
|
});
|
|
341
341
|
return cacheSnapshot;
|
|
342
342
|
}
|
|
343
343
|
const getFileUploadConfigAdapterFactory = (luvio) => function files__getFileUploadConfig(untrustedConfig, requestContext) {
|
|
344
|
-
const config = validateAdapterConfig$
|
|
344
|
+
const config = validateAdapterConfig$3(untrustedConfig, getFileUploadConfig_ConfigPropertyNames);
|
|
345
345
|
// Invalid or incomplete config
|
|
346
346
|
if (config === null) {
|
|
347
347
|
return null;
|
|
348
348
|
}
|
|
349
349
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
350
|
-
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
350
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
-
const VERSION$
|
|
354
|
-
function validate$
|
|
353
|
+
const VERSION$n = "1544350e7c5b999113ef125ff9c46f64";
|
|
354
|
+
function validate$n(obj, path = 'ContentHubRepositoryAuthenticationRepresentation') {
|
|
355
355
|
const v_error = (() => {
|
|
356
356
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
357
357
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -374,10 +374,10 @@ function validate$l(obj, path = 'ContentHubRepositoryAuthenticationRepresentatio
|
|
|
374
374
|
})();
|
|
375
375
|
return v_error === undefined ? null : v_error;
|
|
376
376
|
}
|
|
377
|
-
const select$
|
|
377
|
+
const select$q = function ContentHubRepositoryAuthenticationRepresentationSelect() {
|
|
378
378
|
return {
|
|
379
379
|
kind: 'Fragment',
|
|
380
|
-
version: VERSION$
|
|
380
|
+
version: VERSION$n,
|
|
381
381
|
private: [],
|
|
382
382
|
selections: [
|
|
383
383
|
{
|
|
@@ -395,7 +395,7 @@ const select$m = function ContentHubRepositoryAuthenticationRepresentationSelect
|
|
|
395
395
|
]
|
|
396
396
|
};
|
|
397
397
|
};
|
|
398
|
-
function equals$
|
|
398
|
+
function equals$n(existing, incoming) {
|
|
399
399
|
const existing_userHasAuthSettings = existing.userHasAuthSettings;
|
|
400
400
|
const incoming_userHasAuthSettings = incoming.userHasAuthSettings;
|
|
401
401
|
if (!(existing_userHasAuthSettings === incoming_userHasAuthSettings)) {
|
|
@@ -414,8 +414,8 @@ function equals$l(existing, incoming) {
|
|
|
414
414
|
return true;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
-
const VERSION$
|
|
418
|
-
function validate$
|
|
417
|
+
const VERSION$m = "fa4f55b364524f360d9f3b8b10aaf137";
|
|
418
|
+
function validate$m(obj, path = 'ContentHubRepositoryFeaturesRepresentation') {
|
|
419
419
|
const v_error = (() => {
|
|
420
420
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
421
421
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -433,10 +433,10 @@ function validate$k(obj, path = 'ContentHubRepositoryFeaturesRepresentation') {
|
|
|
433
433
|
})();
|
|
434
434
|
return v_error === undefined ? null : v_error;
|
|
435
435
|
}
|
|
436
|
-
const select$
|
|
436
|
+
const select$p = function ContentHubRepositoryFeaturesRepresentationSelect() {
|
|
437
437
|
return {
|
|
438
438
|
kind: 'Fragment',
|
|
439
|
-
version: VERSION$
|
|
439
|
+
version: VERSION$m,
|
|
440
440
|
private: [],
|
|
441
441
|
selections: [
|
|
442
442
|
{
|
|
@@ -450,7 +450,7 @@ const select$l = function ContentHubRepositoryFeaturesRepresentationSelect() {
|
|
|
450
450
|
]
|
|
451
451
|
};
|
|
452
452
|
};
|
|
453
|
-
function equals$
|
|
453
|
+
function equals$m(existing, incoming) {
|
|
454
454
|
const existing_canBrowse = existing.canBrowse;
|
|
455
455
|
const incoming_canBrowse = incoming.canBrowse;
|
|
456
456
|
if (!(existing_canBrowse === incoming_canBrowse)) {
|
|
@@ -464,8 +464,8 @@ function equals$k(existing, incoming) {
|
|
|
464
464
|
return true;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
-
const VERSION$
|
|
468
|
-
function validate$
|
|
467
|
+
const VERSION$l = "0c0c85c97f540c4a8883d7fa795e7e0e";
|
|
468
|
+
function validate$l(obj, path = 'ReferenceRepresentation') {
|
|
469
469
|
const v_error = (() => {
|
|
470
470
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
471
471
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -483,10 +483,10 @@ function validate$j(obj, path = 'ReferenceRepresentation') {
|
|
|
483
483
|
})();
|
|
484
484
|
return v_error === undefined ? null : v_error;
|
|
485
485
|
}
|
|
486
|
-
const select$
|
|
486
|
+
const select$o = function ReferenceRepresentationSelect() {
|
|
487
487
|
return {
|
|
488
488
|
kind: 'Fragment',
|
|
489
|
-
version: VERSION$
|
|
489
|
+
version: VERSION$l,
|
|
490
490
|
private: [],
|
|
491
491
|
selections: [
|
|
492
492
|
{
|
|
@@ -500,7 +500,7 @@ const select$k = function ReferenceRepresentationSelect() {
|
|
|
500
500
|
]
|
|
501
501
|
};
|
|
502
502
|
};
|
|
503
|
-
function equals$
|
|
503
|
+
function equals$l(existing, incoming) {
|
|
504
504
|
const existing_id = existing.id;
|
|
505
505
|
const incoming_id = incoming.id;
|
|
506
506
|
if (!(existing_id === incoming_id)) {
|
|
@@ -514,8 +514,8 @@ function equals$j(existing, incoming) {
|
|
|
514
514
|
return true;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
-
const VERSION$
|
|
518
|
-
function validate$
|
|
517
|
+
const VERSION$k = "646fd171ffd555ff1aa0bca29f4112d0";
|
|
518
|
+
function validate$k(obj, path = 'ContentHubProviderTypeRepresentation') {
|
|
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 + '")');
|
|
@@ -533,10 +533,10 @@ function validate$i(obj, path = 'ContentHubProviderTypeRepresentation') {
|
|
|
533
533
|
})();
|
|
534
534
|
return v_error === undefined ? null : v_error;
|
|
535
535
|
}
|
|
536
|
-
const select$
|
|
536
|
+
const select$n = function ContentHubProviderTypeRepresentationSelect() {
|
|
537
537
|
return {
|
|
538
538
|
kind: 'Fragment',
|
|
539
|
-
version: VERSION$
|
|
539
|
+
version: VERSION$k,
|
|
540
540
|
private: [],
|
|
541
541
|
selections: [
|
|
542
542
|
{
|
|
@@ -550,7 +550,7 @@ const select$j = function ContentHubProviderTypeRepresentationSelect() {
|
|
|
550
550
|
]
|
|
551
551
|
};
|
|
552
552
|
};
|
|
553
|
-
function equals$
|
|
553
|
+
function equals$k(existing, incoming) {
|
|
554
554
|
const existing_label = existing.label;
|
|
555
555
|
const incoming_label = incoming.label;
|
|
556
556
|
if (!(existing_label === incoming_label)) {
|
|
@@ -564,8 +564,8 @@ function equals$i(existing, incoming) {
|
|
|
564
564
|
return true;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
-
const VERSION$
|
|
568
|
-
function validate$
|
|
567
|
+
const VERSION$j = "23ecddf405537e254437ac17ca260211";
|
|
568
|
+
function validate$j(obj, path = 'ContentHubRepositoryRepresentation') {
|
|
569
569
|
const v_error = (() => {
|
|
570
570
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
571
571
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -598,7 +598,7 @@ function validate$h(obj, path = 'ContentHubRepositoryRepresentation') {
|
|
|
598
598
|
}
|
|
599
599
|
const obj_authentication = obj.authentication;
|
|
600
600
|
const path_authentication = path + '.authentication';
|
|
601
|
-
const referencepath_authenticationValidationError = validate$
|
|
601
|
+
const referencepath_authenticationValidationError = validate$n(obj_authentication, path_authentication);
|
|
602
602
|
if (referencepath_authenticationValidationError !== null) {
|
|
603
603
|
let message = 'Object doesn\'t match ContentHubRepositoryAuthenticationRepresentation (at "' + path_authentication + '")\n';
|
|
604
604
|
message += referencepath_authenticationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -621,7 +621,7 @@ function validate$h(obj, path = 'ContentHubRepositoryRepresentation') {
|
|
|
621
621
|
}
|
|
622
622
|
const obj_features = obj.features;
|
|
623
623
|
const path_features = path + '.features';
|
|
624
|
-
const referencepath_featuresValidationError = validate$
|
|
624
|
+
const referencepath_featuresValidationError = validate$m(obj_features, path_features);
|
|
625
625
|
if (referencepath_featuresValidationError !== null) {
|
|
626
626
|
let message = 'Object doesn\'t match ContentHubRepositoryFeaturesRepresentation (at "' + path_features + '")\n';
|
|
627
627
|
message += referencepath_featuresValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -649,7 +649,7 @@ function validate$h(obj, path = 'ContentHubRepositoryRepresentation') {
|
|
|
649
649
|
}
|
|
650
650
|
const obj_mySubscription = obj.mySubscription;
|
|
651
651
|
const path_mySubscription = path + '.mySubscription';
|
|
652
|
-
const referencepath_mySubscriptionValidationError = validate$
|
|
652
|
+
const referencepath_mySubscriptionValidationError = validate$l(obj_mySubscription, path_mySubscription);
|
|
653
653
|
if (referencepath_mySubscriptionValidationError !== null) {
|
|
654
654
|
let message = 'Object doesn\'t match ReferenceRepresentation (at "' + path_mySubscription + '")\n';
|
|
655
655
|
message += referencepath_mySubscriptionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -662,7 +662,7 @@ function validate$h(obj, path = 'ContentHubRepositoryRepresentation') {
|
|
|
662
662
|
}
|
|
663
663
|
const obj_providerType = obj.providerType;
|
|
664
664
|
const path_providerType = path + '.providerType';
|
|
665
|
-
const referencepath_providerTypeValidationError = validate$
|
|
665
|
+
const referencepath_providerTypeValidationError = validate$k(obj_providerType, path_providerType);
|
|
666
666
|
if (referencepath_providerTypeValidationError !== null) {
|
|
667
667
|
let message = 'Object doesn\'t match ContentHubProviderTypeRepresentation (at "' + path_providerType + '")\n';
|
|
668
668
|
message += referencepath_providerTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -686,14 +686,14 @@ function validate$h(obj, path = 'ContentHubRepositoryRepresentation') {
|
|
|
686
686
|
})();
|
|
687
687
|
return v_error === undefined ? null : v_error;
|
|
688
688
|
}
|
|
689
|
-
const select$
|
|
690
|
-
const { selections: ContentHubRepositoryAuthenticationRepresentation__selections, opaque: ContentHubRepositoryAuthenticationRepresentation__opaque, } = select$
|
|
691
|
-
const { selections: ContentHubRepositoryFeaturesRepresentation__selections, opaque: ContentHubRepositoryFeaturesRepresentation__opaque, } = select$
|
|
692
|
-
const { selections: ReferenceRepresentation__selections, opaque: ReferenceRepresentation__opaque, } = select$
|
|
693
|
-
const { selections: ContentHubProviderTypeRepresentation__selections, opaque: ContentHubProviderTypeRepresentation__opaque, } = select$
|
|
689
|
+
const select$m = function ContentHubRepositoryRepresentationSelect() {
|
|
690
|
+
const { selections: ContentHubRepositoryAuthenticationRepresentation__selections, opaque: ContentHubRepositoryAuthenticationRepresentation__opaque, } = select$q();
|
|
691
|
+
const { selections: ContentHubRepositoryFeaturesRepresentation__selections, opaque: ContentHubRepositoryFeaturesRepresentation__opaque, } = select$p();
|
|
692
|
+
const { selections: ReferenceRepresentation__selections, opaque: ReferenceRepresentation__opaque, } = select$o();
|
|
693
|
+
const { selections: ContentHubProviderTypeRepresentation__selections, opaque: ContentHubProviderTypeRepresentation__opaque, } = select$n();
|
|
694
694
|
return {
|
|
695
695
|
kind: 'Fragment',
|
|
696
|
-
version: VERSION$
|
|
696
|
+
version: VERSION$j,
|
|
697
697
|
private: [],
|
|
698
698
|
selections: [
|
|
699
699
|
{
|
|
@@ -767,7 +767,7 @@ const select$i = function ContentHubRepositoryRepresentationSelect() {
|
|
|
767
767
|
]
|
|
768
768
|
};
|
|
769
769
|
};
|
|
770
|
-
function equals$
|
|
770
|
+
function equals$j(existing, incoming) {
|
|
771
771
|
const existing_isInThisCommunity = existing.isInThisCommunity;
|
|
772
772
|
const incoming_isInThisCommunity = incoming.isInThisCommunity;
|
|
773
773
|
if (!(existing_isInThisCommunity === incoming_isInThisCommunity)) {
|
|
@@ -830,29 +830,29 @@ function equals$h(existing, incoming) {
|
|
|
830
830
|
}
|
|
831
831
|
const existing_authentication = existing.authentication;
|
|
832
832
|
const incoming_authentication = incoming.authentication;
|
|
833
|
-
if (!(equals$
|
|
833
|
+
if (!(equals$n(existing_authentication, incoming_authentication))) {
|
|
834
834
|
return false;
|
|
835
835
|
}
|
|
836
836
|
const existing_features = existing.features;
|
|
837
837
|
const incoming_features = incoming.features;
|
|
838
|
-
if (!(equals$
|
|
838
|
+
if (!(equals$m(existing_features, incoming_features))) {
|
|
839
839
|
return false;
|
|
840
840
|
}
|
|
841
841
|
const existing_mySubscription = existing.mySubscription;
|
|
842
842
|
const incoming_mySubscription = incoming.mySubscription;
|
|
843
|
-
if (!(equals$
|
|
843
|
+
if (!(equals$l(existing_mySubscription, incoming_mySubscription))) {
|
|
844
844
|
return false;
|
|
845
845
|
}
|
|
846
846
|
const existing_providerType = existing.providerType;
|
|
847
847
|
const incoming_providerType = incoming.providerType;
|
|
848
|
-
if (!(equals$
|
|
848
|
+
if (!(equals$k(existing_providerType, incoming_providerType))) {
|
|
849
849
|
return false;
|
|
850
850
|
}
|
|
851
851
|
return true;
|
|
852
852
|
}
|
|
853
853
|
|
|
854
|
-
const VERSION$
|
|
855
|
-
function validate$
|
|
854
|
+
const VERSION$i = "24b4f4dd2754010fe3991590a16b4503";
|
|
855
|
+
function validate$i(obj, path = 'ContentHubPermissionTypeRepresentation') {
|
|
856
856
|
const v_error = (() => {
|
|
857
857
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
858
858
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -870,10 +870,10 @@ function validate$g(obj, path = 'ContentHubPermissionTypeRepresentation') {
|
|
|
870
870
|
})();
|
|
871
871
|
return v_error === undefined ? null : v_error;
|
|
872
872
|
}
|
|
873
|
-
const select$
|
|
873
|
+
const select$l = function ContentHubPermissionTypeRepresentationSelect() {
|
|
874
874
|
return {
|
|
875
875
|
kind: 'Fragment',
|
|
876
|
-
version: VERSION$
|
|
876
|
+
version: VERSION$i,
|
|
877
877
|
private: [],
|
|
878
878
|
selections: [
|
|
879
879
|
{
|
|
@@ -887,7 +887,7 @@ const select$h = function ContentHubPermissionTypeRepresentationSelect() {
|
|
|
887
887
|
]
|
|
888
888
|
};
|
|
889
889
|
};
|
|
890
|
-
function equals$
|
|
890
|
+
function equals$i(existing, incoming) {
|
|
891
891
|
const existing_id = existing.id;
|
|
892
892
|
const incoming_id = incoming.id;
|
|
893
893
|
if (!(existing_id === incoming_id)) {
|
|
@@ -901,8 +901,8 @@ function equals$g(existing, incoming) {
|
|
|
901
901
|
return true;
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
const VERSION$
|
|
905
|
-
function validate$
|
|
904
|
+
const VERSION$h = "6258b354c4a672a25f319b56e2444396";
|
|
905
|
+
function validate$h(obj, path = 'RepositoryGroupSummaryRepresentation') {
|
|
906
906
|
const v_error = (() => {
|
|
907
907
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
908
908
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -940,10 +940,10 @@ function validate$f(obj, path = 'RepositoryGroupSummaryRepresentation') {
|
|
|
940
940
|
})();
|
|
941
941
|
return v_error === undefined ? null : v_error;
|
|
942
942
|
}
|
|
943
|
-
const select$
|
|
943
|
+
const select$k = function RepositoryGroupSummaryRepresentationSelect() {
|
|
944
944
|
return {
|
|
945
945
|
kind: 'Fragment',
|
|
946
|
-
version: VERSION$
|
|
946
|
+
version: VERSION$h,
|
|
947
947
|
private: [],
|
|
948
948
|
selections: [
|
|
949
949
|
{
|
|
@@ -973,7 +973,7 @@ const select$g = function RepositoryGroupSummaryRepresentationSelect() {
|
|
|
973
973
|
]
|
|
974
974
|
};
|
|
975
975
|
};
|
|
976
|
-
function equals$
|
|
976
|
+
function equals$h(existing, incoming) {
|
|
977
977
|
const existing_domain = existing.domain;
|
|
978
978
|
const incoming_domain = incoming.domain;
|
|
979
979
|
if (!(existing_domain === incoming_domain)) {
|
|
@@ -1007,8 +1007,8 @@ function equals$f(existing, incoming) {
|
|
|
1007
1007
|
return true;
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
|
-
const VERSION$
|
|
1011
|
-
function validate$
|
|
1010
|
+
const VERSION$g = "7bd621fa4165317ed863d0da2921b955";
|
|
1011
|
+
function validate$g(obj, path = 'ExternalFilePermissionInformationRepresentation') {
|
|
1012
1012
|
const v_error = (() => {
|
|
1013
1013
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1014
1014
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1021,7 +1021,7 @@ function validate$e(obj, path = 'ExternalFilePermissionInformationRepresentation
|
|
|
1021
1021
|
for (let i = 0; i < obj_externalFilePermissionTypes.length; i++) {
|
|
1022
1022
|
const obj_externalFilePermissionTypes_item = obj_externalFilePermissionTypes[i];
|
|
1023
1023
|
const path_externalFilePermissionTypes_item = path_externalFilePermissionTypes + '[' + i + ']';
|
|
1024
|
-
const referencepath_externalFilePermissionTypes_itemValidationError = validate$
|
|
1024
|
+
const referencepath_externalFilePermissionTypes_itemValidationError = validate$i(obj_externalFilePermissionTypes_item, path_externalFilePermissionTypes_item);
|
|
1025
1025
|
if (referencepath_externalFilePermissionTypes_itemValidationError !== null) {
|
|
1026
1026
|
let message = 'Object doesn\'t match ContentHubPermissionTypeRepresentation (at "' + path_externalFilePermissionTypes_item + '")\n';
|
|
1027
1027
|
message += referencepath_externalFilePermissionTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1051,7 +1051,7 @@ function validate$e(obj, path = 'ExternalFilePermissionInformationRepresentation
|
|
|
1051
1051
|
for (let i = 0; i < obj_repositoryPublicGroups.length; i++) {
|
|
1052
1052
|
const obj_repositoryPublicGroups_item = obj_repositoryPublicGroups[i];
|
|
1053
1053
|
const path_repositoryPublicGroups_item = path_repositoryPublicGroups + '[' + i + ']';
|
|
1054
|
-
const referencepath_repositoryPublicGroups_itemValidationError = validate$
|
|
1054
|
+
const referencepath_repositoryPublicGroups_itemValidationError = validate$h(obj_repositoryPublicGroups_item, path_repositoryPublicGroups_item);
|
|
1055
1055
|
if (referencepath_repositoryPublicGroups_itemValidationError !== null) {
|
|
1056
1056
|
let message = 'Object doesn\'t match RepositoryGroupSummaryRepresentation (at "' + path_repositoryPublicGroups_item + '")\n';
|
|
1057
1057
|
message += referencepath_repositoryPublicGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1061,12 +1061,12 @@ function validate$e(obj, path = 'ExternalFilePermissionInformationRepresentation
|
|
|
1061
1061
|
})();
|
|
1062
1062
|
return v_error === undefined ? null : v_error;
|
|
1063
1063
|
}
|
|
1064
|
-
const select$
|
|
1065
|
-
const { selections: ContentHubPermissionTypeRepresentation__selections, opaque: ContentHubPermissionTypeRepresentation__opaque, } = select$
|
|
1066
|
-
const { selections: RepositoryGroupSummaryRepresentation__selections, opaque: RepositoryGroupSummaryRepresentation__opaque, } = select$
|
|
1064
|
+
const select$j = function ExternalFilePermissionInformationRepresentationSelect() {
|
|
1065
|
+
const { selections: ContentHubPermissionTypeRepresentation__selections, opaque: ContentHubPermissionTypeRepresentation__opaque, } = select$l();
|
|
1066
|
+
const { selections: RepositoryGroupSummaryRepresentation__selections, opaque: RepositoryGroupSummaryRepresentation__opaque, } = select$k();
|
|
1067
1067
|
return {
|
|
1068
1068
|
kind: 'Fragment',
|
|
1069
|
-
version: VERSION$
|
|
1069
|
+
version: VERSION$g,
|
|
1070
1070
|
private: [],
|
|
1071
1071
|
selections: [
|
|
1072
1072
|
{
|
|
@@ -1096,7 +1096,7 @@ const select$f = function ExternalFilePermissionInformationRepresentationSelect(
|
|
|
1096
1096
|
]
|
|
1097
1097
|
};
|
|
1098
1098
|
};
|
|
1099
|
-
function equals$
|
|
1099
|
+
function equals$g(existing, incoming) {
|
|
1100
1100
|
const existing_externalFilePermissionsFailure = existing.externalFilePermissionsFailure;
|
|
1101
1101
|
const incoming_externalFilePermissionsFailure = incoming.externalFilePermissionsFailure;
|
|
1102
1102
|
if (!(existing_externalFilePermissionsFailure === incoming_externalFilePermissionsFailure)) {
|
|
@@ -1115,7 +1115,7 @@ function equals$e(existing, incoming) {
|
|
|
1115
1115
|
const existing_externalFilePermissionTypes = existing.externalFilePermissionTypes;
|
|
1116
1116
|
const incoming_externalFilePermissionTypes = incoming.externalFilePermissionTypes;
|
|
1117
1117
|
const equals_externalFilePermissionTypes_items = equalsArray(existing_externalFilePermissionTypes, incoming_externalFilePermissionTypes, (existing_externalFilePermissionTypes_item, incoming_externalFilePermissionTypes_item) => {
|
|
1118
|
-
if (!(equals$
|
|
1118
|
+
if (!(equals$i(existing_externalFilePermissionTypes_item, incoming_externalFilePermissionTypes_item))) {
|
|
1119
1119
|
return false;
|
|
1120
1120
|
}
|
|
1121
1121
|
});
|
|
@@ -1125,7 +1125,7 @@ function equals$e(existing, incoming) {
|
|
|
1125
1125
|
const existing_repositoryPublicGroups = existing.repositoryPublicGroups;
|
|
1126
1126
|
const incoming_repositoryPublicGroups = incoming.repositoryPublicGroups;
|
|
1127
1127
|
const equals_repositoryPublicGroups_items = equalsArray(existing_repositoryPublicGroups, incoming_repositoryPublicGroups, (existing_repositoryPublicGroups_item, incoming_repositoryPublicGroups_item) => {
|
|
1128
|
-
if (!(equals$
|
|
1128
|
+
if (!(equals$h(existing_repositoryPublicGroups_item, incoming_repositoryPublicGroups_item))) {
|
|
1129
1129
|
return false;
|
|
1130
1130
|
}
|
|
1131
1131
|
});
|
|
@@ -1135,8 +1135,8 @@ function equals$e(existing, incoming) {
|
|
|
1135
1135
|
return true;
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
-
const VERSION$
|
|
1139
|
-
function validate$
|
|
1138
|
+
const VERSION$f = "4ffe76c088b0010d6c07321f8fc71413";
|
|
1139
|
+
function validate$f(obj, path = 'FileAssetRepresentation') {
|
|
1140
1140
|
const v_error = (() => {
|
|
1141
1141
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1142
1142
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1184,10 +1184,10 @@ function validate$d(obj, path = 'FileAssetRepresentation') {
|
|
|
1184
1184
|
})();
|
|
1185
1185
|
return v_error === undefined ? null : v_error;
|
|
1186
1186
|
}
|
|
1187
|
-
const select$
|
|
1187
|
+
const select$i = function FileAssetRepresentationSelect() {
|
|
1188
1188
|
return {
|
|
1189
1189
|
kind: 'Fragment',
|
|
1190
|
-
version: VERSION$
|
|
1190
|
+
version: VERSION$f,
|
|
1191
1191
|
private: [],
|
|
1192
1192
|
selections: [
|
|
1193
1193
|
{
|
|
@@ -1225,7 +1225,7 @@ const select$e = function FileAssetRepresentationSelect() {
|
|
|
1225
1225
|
]
|
|
1226
1226
|
};
|
|
1227
1227
|
};
|
|
1228
|
-
function equals$
|
|
1228
|
+
function equals$f(existing, incoming) {
|
|
1229
1229
|
const existing_isVisibleByExternalUsers = existing.isVisibleByExternalUsers;
|
|
1230
1230
|
const incoming_isVisibleByExternalUsers = incoming.isVisibleByExternalUsers;
|
|
1231
1231
|
if (!(existing_isVisibleByExternalUsers === incoming_isVisibleByExternalUsers)) {
|
|
@@ -1269,8 +1269,8 @@ function equals$d(existing, incoming) {
|
|
|
1269
1269
|
return true;
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
|
-
const VERSION$
|
|
1273
|
-
function validate$
|
|
1272
|
+
const VERSION$e = "33984440af1a8d58f347ad7f777f3599";
|
|
1273
|
+
function validate$e(obj, path = 'ModerationFlagItemRepresentation') {
|
|
1274
1274
|
const v_error = (() => {
|
|
1275
1275
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1276
1276
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1308,10 +1308,10 @@ function validate$c(obj, path = 'ModerationFlagItemRepresentation') {
|
|
|
1308
1308
|
})();
|
|
1309
1309
|
return v_error === undefined ? null : v_error;
|
|
1310
1310
|
}
|
|
1311
|
-
const select$
|
|
1311
|
+
const select$h = function ModerationFlagItemRepresentationSelect() {
|
|
1312
1312
|
return {
|
|
1313
1313
|
kind: 'Fragment',
|
|
1314
|
-
version: VERSION$
|
|
1314
|
+
version: VERSION$e,
|
|
1315
1315
|
private: [],
|
|
1316
1316
|
selections: [
|
|
1317
1317
|
{
|
|
@@ -1341,7 +1341,7 @@ const select$d = function ModerationFlagItemRepresentationSelect() {
|
|
|
1341
1341
|
]
|
|
1342
1342
|
};
|
|
1343
1343
|
};
|
|
1344
|
-
function equals$
|
|
1344
|
+
function equals$e(existing, incoming) {
|
|
1345
1345
|
const existing_createdBy = existing.createdBy;
|
|
1346
1346
|
const incoming_createdBy = incoming.createdBy;
|
|
1347
1347
|
if (!(existing_createdBy === incoming_createdBy)) {
|
|
@@ -1375,8 +1375,8 @@ function equals$c(existing, incoming) {
|
|
|
1375
1375
|
return true;
|
|
1376
1376
|
}
|
|
1377
1377
|
|
|
1378
|
-
const VERSION$
|
|
1379
|
-
function validate$
|
|
1378
|
+
const VERSION$d = "352260f98bea3d1c4691d37f0a76a0b9";
|
|
1379
|
+
function validate$d(obj, path = 'ModerationFlagsCollectionRepresentation') {
|
|
1380
1380
|
const v_error = (() => {
|
|
1381
1381
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1382
1382
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1399,7 +1399,7 @@ function validate$b(obj, path = 'ModerationFlagsCollectionRepresentation') {
|
|
|
1399
1399
|
for (let i = 0; i < obj_flags.length; i++) {
|
|
1400
1400
|
const obj_flags_item = obj_flags[i];
|
|
1401
1401
|
const path_flags_item = path_flags + '[' + i + ']';
|
|
1402
|
-
const referencepath_flags_itemValidationError = validate$
|
|
1402
|
+
const referencepath_flags_itemValidationError = validate$e(obj_flags_item, path_flags_item);
|
|
1403
1403
|
if (referencepath_flags_itemValidationError !== null) {
|
|
1404
1404
|
let message = 'Object doesn\'t match ModerationFlagItemRepresentation (at "' + path_flags_item + '")\n';
|
|
1405
1405
|
message += referencepath_flags_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1424,11 +1424,11 @@ function validate$b(obj, path = 'ModerationFlagsCollectionRepresentation') {
|
|
|
1424
1424
|
})();
|
|
1425
1425
|
return v_error === undefined ? null : v_error;
|
|
1426
1426
|
}
|
|
1427
|
-
const select$
|
|
1428
|
-
const { selections: ModerationFlagItemRepresentation__selections, opaque: ModerationFlagItemRepresentation__opaque, } = select$
|
|
1427
|
+
const select$g = function ModerationFlagsCollectionRepresentationSelect() {
|
|
1428
|
+
const { selections: ModerationFlagItemRepresentation__selections, opaque: ModerationFlagItemRepresentation__opaque, } = select$h();
|
|
1429
1429
|
return {
|
|
1430
1430
|
kind: 'Fragment',
|
|
1431
|
-
version: VERSION$
|
|
1431
|
+
version: VERSION$d,
|
|
1432
1432
|
private: [],
|
|
1433
1433
|
selections: [
|
|
1434
1434
|
{
|
|
@@ -1460,7 +1460,7 @@ const select$c = function ModerationFlagsCollectionRepresentationSelect() {
|
|
|
1460
1460
|
]
|
|
1461
1461
|
};
|
|
1462
1462
|
};
|
|
1463
|
-
function equals$
|
|
1463
|
+
function equals$d(existing, incoming) {
|
|
1464
1464
|
const existing_pageSize = existing.pageSize;
|
|
1465
1465
|
const incoming_pageSize = incoming.pageSize;
|
|
1466
1466
|
if (!(existing_pageSize === incoming_pageSize)) {
|
|
@@ -1489,7 +1489,7 @@ function equals$b(existing, incoming) {
|
|
|
1489
1489
|
const existing_flags = existing.flags;
|
|
1490
1490
|
const incoming_flags = incoming.flags;
|
|
1491
1491
|
const equals_flags_items = equalsArray(existing_flags, incoming_flags, (existing_flags_item, incoming_flags_item) => {
|
|
1492
|
-
if (!(equals$
|
|
1492
|
+
if (!(equals$e(existing_flags_item, incoming_flags_item))) {
|
|
1493
1493
|
return false;
|
|
1494
1494
|
}
|
|
1495
1495
|
});
|
|
@@ -1499,8 +1499,8 @@ function equals$b(existing, incoming) {
|
|
|
1499
1499
|
return true;
|
|
1500
1500
|
}
|
|
1501
1501
|
|
|
1502
|
-
const VERSION$
|
|
1503
|
-
function validate$
|
|
1502
|
+
const VERSION$c = "13562eb8ff78d5886789a53d2bd5a8a4";
|
|
1503
|
+
function validate$c(obj, path = 'ModerationFlagsRepresentation') {
|
|
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 + '")');
|
|
@@ -1531,7 +1531,7 @@ function validate$a(obj, path = 'ModerationFlagsRepresentation') {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
const obj_flags = obj.flags;
|
|
1533
1533
|
const path_flags = path + '.flags';
|
|
1534
|
-
const referencepath_flagsValidationError = validate$
|
|
1534
|
+
const referencepath_flagsValidationError = validate$d(obj_flags, path_flags);
|
|
1535
1535
|
if (referencepath_flagsValidationError !== null) {
|
|
1536
1536
|
let message = 'Object doesn\'t match ModerationFlagsCollectionRepresentation (at "' + path_flags + '")\n';
|
|
1537
1537
|
message += referencepath_flagsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1540,11 +1540,11 @@ function validate$a(obj, path = 'ModerationFlagsRepresentation') {
|
|
|
1540
1540
|
})();
|
|
1541
1541
|
return v_error === undefined ? null : v_error;
|
|
1542
1542
|
}
|
|
1543
|
-
const select$
|
|
1544
|
-
const { selections: ModerationFlagsCollectionRepresentation__selections, opaque: ModerationFlagsCollectionRepresentation__opaque, } = select$
|
|
1543
|
+
const select$f = function ModerationFlagsRepresentationSelect() {
|
|
1544
|
+
const { selections: ModerationFlagsCollectionRepresentation__selections, opaque: ModerationFlagsCollectionRepresentation__opaque, } = select$g();
|
|
1545
1545
|
return {
|
|
1546
1546
|
kind: 'Fragment',
|
|
1547
|
-
version: VERSION$
|
|
1547
|
+
version: VERSION$c,
|
|
1548
1548
|
private: [],
|
|
1549
1549
|
selections: [
|
|
1550
1550
|
{
|
|
@@ -1568,7 +1568,7 @@ const select$b = function ModerationFlagsRepresentationSelect() {
|
|
|
1568
1568
|
]
|
|
1569
1569
|
};
|
|
1570
1570
|
};
|
|
1571
|
-
function equals$
|
|
1571
|
+
function equals$c(existing, incoming) {
|
|
1572
1572
|
const existing_flaggedByMe = existing.flaggedByMe;
|
|
1573
1573
|
const incoming_flaggedByMe = incoming.flaggedByMe;
|
|
1574
1574
|
if (!(existing_flaggedByMe === incoming_flaggedByMe)) {
|
|
@@ -1591,14 +1591,14 @@ function equals$a(existing, incoming) {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
const existing_flags = existing.flags;
|
|
1593
1593
|
const incoming_flags = incoming.flags;
|
|
1594
|
-
if (!(equals$
|
|
1594
|
+
if (!(equals$d(existing_flags, incoming_flags))) {
|
|
1595
1595
|
return false;
|
|
1596
1596
|
}
|
|
1597
1597
|
return true;
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
|
-
const VERSION$
|
|
1601
|
-
function validate$
|
|
1600
|
+
const VERSION$b = "ea2628b3acfa34a5fb973e3cdc2dcbe0";
|
|
1601
|
+
function validate$b(obj, path = 'MotifRepresentation') {
|
|
1602
1602
|
const v_error = (() => {
|
|
1603
1603
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1604
1604
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1652,10 +1652,10 @@ function validate$9(obj, path = 'MotifRepresentation') {
|
|
|
1652
1652
|
})();
|
|
1653
1653
|
return v_error === undefined ? null : v_error;
|
|
1654
1654
|
}
|
|
1655
|
-
const select$
|
|
1655
|
+
const select$e = function MotifRepresentationSelect() {
|
|
1656
1656
|
return {
|
|
1657
1657
|
kind: 'Fragment',
|
|
1658
|
-
version: VERSION$
|
|
1658
|
+
version: VERSION$b,
|
|
1659
1659
|
private: [],
|
|
1660
1660
|
selections: [
|
|
1661
1661
|
{
|
|
@@ -1681,7 +1681,7 @@ const select$a = function MotifRepresentationSelect() {
|
|
|
1681
1681
|
]
|
|
1682
1682
|
};
|
|
1683
1683
|
};
|
|
1684
|
-
function equals$
|
|
1684
|
+
function equals$b(existing, incoming) {
|
|
1685
1685
|
const existing_color = existing.color;
|
|
1686
1686
|
const incoming_color = incoming.color;
|
|
1687
1687
|
if (!(existing_color === incoming_color)) {
|
|
@@ -1710,8 +1710,8 @@ function equals$9(existing, incoming) {
|
|
|
1710
1710
|
return true;
|
|
1711
1711
|
}
|
|
1712
1712
|
|
|
1713
|
-
const VERSION$
|
|
1714
|
-
function validate$
|
|
1713
|
+
const VERSION$a = "05d2b9c24b3e86c43f4585b49253d98e";
|
|
1714
|
+
function validate$a(obj, path = 'OutOfOfficeRepresentation') {
|
|
1715
1715
|
const v_error = (() => {
|
|
1716
1716
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1717
1717
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1724,10 +1724,10 @@ function validate$8(obj, path = 'OutOfOfficeRepresentation') {
|
|
|
1724
1724
|
})();
|
|
1725
1725
|
return v_error === undefined ? null : v_error;
|
|
1726
1726
|
}
|
|
1727
|
-
const select$
|
|
1727
|
+
const select$d = function OutOfOfficeRepresentationSelect() {
|
|
1728
1728
|
return {
|
|
1729
1729
|
kind: 'Fragment',
|
|
1730
|
-
version: VERSION$
|
|
1730
|
+
version: VERSION$a,
|
|
1731
1731
|
private: [],
|
|
1732
1732
|
selections: [
|
|
1733
1733
|
{
|
|
@@ -1737,7 +1737,7 @@ const select$9 = function OutOfOfficeRepresentationSelect() {
|
|
|
1737
1737
|
]
|
|
1738
1738
|
};
|
|
1739
1739
|
};
|
|
1740
|
-
function equals$
|
|
1740
|
+
function equals$a(existing, incoming) {
|
|
1741
1741
|
const existing_message = existing.message;
|
|
1742
1742
|
const incoming_message = incoming.message;
|
|
1743
1743
|
if (!(existing_message === incoming_message)) {
|
|
@@ -1746,8 +1746,8 @@ function equals$8(existing, incoming) {
|
|
|
1746
1746
|
return true;
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
|
-
const VERSION$
|
|
1750
|
-
function validate$
|
|
1749
|
+
const VERSION$9 = "04f9649781446a4380f18667d5951641";
|
|
1750
|
+
function validate$9(obj, path = 'PhotoRepresentation') {
|
|
1751
1751
|
const v_error = (() => {
|
|
1752
1752
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1753
1753
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1811,10 +1811,10 @@ function validate$7(obj, path = 'PhotoRepresentation') {
|
|
|
1811
1811
|
})();
|
|
1812
1812
|
return v_error === undefined ? null : v_error;
|
|
1813
1813
|
}
|
|
1814
|
-
const select$
|
|
1814
|
+
const select$c = function PhotoRepresentationSelect() {
|
|
1815
1815
|
return {
|
|
1816
1816
|
kind: 'Fragment',
|
|
1817
|
-
version: VERSION$
|
|
1817
|
+
version: VERSION$9,
|
|
1818
1818
|
private: [],
|
|
1819
1819
|
selections: [
|
|
1820
1820
|
{
|
|
@@ -1848,7 +1848,7 @@ const select$8 = function PhotoRepresentationSelect() {
|
|
|
1848
1848
|
]
|
|
1849
1849
|
};
|
|
1850
1850
|
};
|
|
1851
|
-
function equals$
|
|
1851
|
+
function equals$9(existing, incoming) {
|
|
1852
1852
|
const existing_fullEmailPhotoUrl = existing.fullEmailPhotoUrl;
|
|
1853
1853
|
const incoming_fullEmailPhotoUrl = incoming.fullEmailPhotoUrl;
|
|
1854
1854
|
if (!(existing_fullEmailPhotoUrl === incoming_fullEmailPhotoUrl)) {
|
|
@@ -1887,8 +1887,8 @@ function equals$7(existing, incoming) {
|
|
|
1887
1887
|
return true;
|
|
1888
1888
|
}
|
|
1889
1889
|
|
|
1890
|
-
const VERSION$
|
|
1891
|
-
function validate$
|
|
1890
|
+
const VERSION$8 = "b95277d84efb4e17fd50b8682527adaf";
|
|
1891
|
+
function validate$8(obj, path = 'ReputationLevelRepresentation') {
|
|
1892
1892
|
const v_error = (() => {
|
|
1893
1893
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1894
1894
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1911,10 +1911,10 @@ function validate$6(obj, path = 'ReputationLevelRepresentation') {
|
|
|
1911
1911
|
})();
|
|
1912
1912
|
return v_error === undefined ? null : v_error;
|
|
1913
1913
|
}
|
|
1914
|
-
const select$
|
|
1914
|
+
const select$b = function ReputationLevelRepresentationSelect() {
|
|
1915
1915
|
return {
|
|
1916
1916
|
kind: 'Fragment',
|
|
1917
|
-
version: VERSION$
|
|
1917
|
+
version: VERSION$8,
|
|
1918
1918
|
private: [],
|
|
1919
1919
|
selections: [
|
|
1920
1920
|
{
|
|
@@ -1932,7 +1932,7 @@ const select$7 = function ReputationLevelRepresentationSelect() {
|
|
|
1932
1932
|
]
|
|
1933
1933
|
};
|
|
1934
1934
|
};
|
|
1935
|
-
function equals$
|
|
1935
|
+
function equals$8(existing, incoming) {
|
|
1936
1936
|
const existing_levelNumber = existing.levelNumber;
|
|
1937
1937
|
const incoming_levelNumber = incoming.levelNumber;
|
|
1938
1938
|
if (!(existing_levelNumber === incoming_levelNumber)) {
|
|
@@ -1951,15 +1951,15 @@ function equals$6(existing, incoming) {
|
|
|
1951
1951
|
return true;
|
|
1952
1952
|
}
|
|
1953
1953
|
|
|
1954
|
-
const VERSION$
|
|
1955
|
-
function validate$
|
|
1954
|
+
const VERSION$7 = "f176d65dfc0ee669db9c0f1a1d25d53b";
|
|
1955
|
+
function validate$7(obj, path = 'ReputationRepresentation') {
|
|
1956
1956
|
const v_error = (() => {
|
|
1957
1957
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1958
1958
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1959
1959
|
}
|
|
1960
1960
|
const obj_reputationLevel = obj.reputationLevel;
|
|
1961
1961
|
const path_reputationLevel = path + '.reputationLevel';
|
|
1962
|
-
const referencepath_reputationLevelValidationError = validate$
|
|
1962
|
+
const referencepath_reputationLevelValidationError = validate$8(obj_reputationLevel, path_reputationLevel);
|
|
1963
1963
|
if (referencepath_reputationLevelValidationError !== null) {
|
|
1964
1964
|
let message = 'Object doesn\'t match ReputationLevelRepresentation (at "' + path_reputationLevel + '")\n';
|
|
1965
1965
|
message += referencepath_reputationLevelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1974,11 +1974,11 @@ function validate$5(obj, path = 'ReputationRepresentation') {
|
|
|
1974
1974
|
})();
|
|
1975
1975
|
return v_error === undefined ? null : v_error;
|
|
1976
1976
|
}
|
|
1977
|
-
const select$
|
|
1978
|
-
const { selections: ReputationLevelRepresentation__selections, opaque: ReputationLevelRepresentation__opaque, } = select$
|
|
1977
|
+
const select$a = function ReputationRepresentationSelect() {
|
|
1978
|
+
const { selections: ReputationLevelRepresentation__selections, opaque: ReputationLevelRepresentation__opaque, } = select$b();
|
|
1979
1979
|
return {
|
|
1980
1980
|
kind: 'Fragment',
|
|
1981
|
-
version: VERSION$
|
|
1981
|
+
version: VERSION$7,
|
|
1982
1982
|
private: [],
|
|
1983
1983
|
selections: [
|
|
1984
1984
|
{
|
|
@@ -1997,7 +1997,7 @@ const select$6 = function ReputationRepresentationSelect() {
|
|
|
1997
1997
|
]
|
|
1998
1998
|
};
|
|
1999
1999
|
};
|
|
2000
|
-
function equals$
|
|
2000
|
+
function equals$7(existing, incoming) {
|
|
2001
2001
|
const existing_url = existing.url;
|
|
2002
2002
|
const incoming_url = incoming.url;
|
|
2003
2003
|
if (!(existing_url === incoming_url)) {
|
|
@@ -2010,14 +2010,14 @@ function equals$5(existing, incoming) {
|
|
|
2010
2010
|
}
|
|
2011
2011
|
const existing_reputationLevel = existing.reputationLevel;
|
|
2012
2012
|
const incoming_reputationLevel = incoming.reputationLevel;
|
|
2013
|
-
if (!(equals$
|
|
2013
|
+
if (!(equals$8(existing_reputationLevel, incoming_reputationLevel))) {
|
|
2014
2014
|
return false;
|
|
2015
2015
|
}
|
|
2016
2016
|
return true;
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
|
-
const VERSION$
|
|
2020
|
-
function validate$
|
|
2019
|
+
const VERSION$6 = "a902c1345fece0b23591fc79dea8e8b0";
|
|
2020
|
+
function validate$6(obj, path = 'UserSummaryRepresentation') {
|
|
2021
2021
|
const v_error = (() => {
|
|
2022
2022
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2023
2023
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2092,7 +2092,7 @@ function validate$4(obj, path = 'UserSummaryRepresentation') {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
const obj_motif = obj.motif;
|
|
2094
2094
|
const path_motif = path + '.motif';
|
|
2095
|
-
const referencepath_motifValidationError = validate$
|
|
2095
|
+
const referencepath_motifValidationError = validate$b(obj_motif, path_motif);
|
|
2096
2096
|
if (referencepath_motifValidationError !== null) {
|
|
2097
2097
|
let message = 'Object doesn\'t match MotifRepresentation (at "' + path_motif + '")\n';
|
|
2098
2098
|
message += referencepath_motifValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2102,7 +2102,7 @@ function validate$4(obj, path = 'UserSummaryRepresentation') {
|
|
|
2102
2102
|
const path_mySubscription = path + '.mySubscription';
|
|
2103
2103
|
let obj_mySubscription_union0 = null;
|
|
2104
2104
|
const obj_mySubscription_union0_error = (() => {
|
|
2105
|
-
const referencepath_mySubscriptionValidationError = validate$
|
|
2105
|
+
const referencepath_mySubscriptionValidationError = validate$l(obj_mySubscription, path_mySubscription);
|
|
2106
2106
|
if (referencepath_mySubscriptionValidationError !== null) {
|
|
2107
2107
|
let message = 'Object doesn\'t match ReferenceRepresentation (at "' + path_mySubscription + '")\n';
|
|
2108
2108
|
message += referencepath_mySubscriptionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2134,7 +2134,7 @@ function validate$4(obj, path = 'UserSummaryRepresentation') {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
const obj_outOfOffice = obj.outOfOffice;
|
|
2136
2136
|
const path_outOfOffice = path + '.outOfOffice';
|
|
2137
|
-
const referencepath_outOfOfficeValidationError = validate$
|
|
2137
|
+
const referencepath_outOfOfficeValidationError = validate$a(obj_outOfOffice, path_outOfOffice);
|
|
2138
2138
|
if (referencepath_outOfOfficeValidationError !== null) {
|
|
2139
2139
|
let message = 'Object doesn\'t match OutOfOfficeRepresentation (at "' + path_outOfOffice + '")\n';
|
|
2140
2140
|
message += referencepath_outOfOfficeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2142,7 +2142,7 @@ function validate$4(obj, path = 'UserSummaryRepresentation') {
|
|
|
2142
2142
|
}
|
|
2143
2143
|
const obj_photo = obj.photo;
|
|
2144
2144
|
const path_photo = path + '.photo';
|
|
2145
|
-
const referencepath_photoValidationError = validate$
|
|
2145
|
+
const referencepath_photoValidationError = validate$9(obj_photo, path_photo);
|
|
2146
2146
|
if (referencepath_photoValidationError !== null) {
|
|
2147
2147
|
let message = 'Object doesn\'t match PhotoRepresentation (at "' + path_photo + '")\n';
|
|
2148
2148
|
message += referencepath_photoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2152,7 +2152,7 @@ function validate$4(obj, path = 'UserSummaryRepresentation') {
|
|
|
2152
2152
|
const path_reputation = path + '.reputation';
|
|
2153
2153
|
let obj_reputation_union0 = null;
|
|
2154
2154
|
const obj_reputation_union0_error = (() => {
|
|
2155
|
-
const referencepath_reputationValidationError = validate$
|
|
2155
|
+
const referencepath_reputationValidationError = validate$7(obj_reputation, path_reputation);
|
|
2156
2156
|
if (referencepath_reputationValidationError !== null) {
|
|
2157
2157
|
let message = 'Object doesn\'t match ReputationRepresentation (at "' + path_reputation + '")\n';
|
|
2158
2158
|
message += referencepath_reputationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2242,15 +2242,15 @@ function validate$4(obj, path = 'UserSummaryRepresentation') {
|
|
|
2242
2242
|
})();
|
|
2243
2243
|
return v_error === undefined ? null : v_error;
|
|
2244
2244
|
}
|
|
2245
|
-
const select$
|
|
2246
|
-
const { selections: MotifRepresentation__selections, opaque: MotifRepresentation__opaque, } = select$
|
|
2247
|
-
const { selections: ReferenceRepresentation__selections, opaque: ReferenceRepresentation__opaque, } = select$
|
|
2248
|
-
const { selections: OutOfOfficeRepresentation__selections, opaque: OutOfOfficeRepresentation__opaque, } = select$
|
|
2249
|
-
const { selections: PhotoRepresentation__selections, opaque: PhotoRepresentation__opaque, } = select$
|
|
2250
|
-
const { selections: ReputationRepresentation__selections, opaque: ReputationRepresentation__opaque, } = select$
|
|
2245
|
+
const select$9 = function UserSummaryRepresentationSelect() {
|
|
2246
|
+
const { selections: MotifRepresentation__selections, opaque: MotifRepresentation__opaque, } = select$e();
|
|
2247
|
+
const { selections: ReferenceRepresentation__selections, opaque: ReferenceRepresentation__opaque, } = select$o();
|
|
2248
|
+
const { selections: OutOfOfficeRepresentation__selections, opaque: OutOfOfficeRepresentation__opaque, } = select$d();
|
|
2249
|
+
const { selections: PhotoRepresentation__selections, opaque: PhotoRepresentation__opaque, } = select$c();
|
|
2250
|
+
const { selections: ReputationRepresentation__selections, opaque: ReputationRepresentation__opaque, } = select$a();
|
|
2251
2251
|
return {
|
|
2252
2252
|
kind: 'Fragment',
|
|
2253
|
-
version: VERSION$
|
|
2253
|
+
version: VERSION$6,
|
|
2254
2254
|
private: [],
|
|
2255
2255
|
selections: [
|
|
2256
2256
|
{
|
|
@@ -2340,7 +2340,7 @@ const select$5 = function UserSummaryRepresentationSelect() {
|
|
|
2340
2340
|
]
|
|
2341
2341
|
};
|
|
2342
2342
|
};
|
|
2343
|
-
function equals$
|
|
2343
|
+
function equals$6(existing, incoming) {
|
|
2344
2344
|
const existing_isActive = existing.isActive;
|
|
2345
2345
|
const incoming_isActive = incoming.isActive;
|
|
2346
2346
|
if (!(existing_isActive === incoming_isActive)) {
|
|
@@ -2411,7 +2411,7 @@ function equals$4(existing, incoming) {
|
|
|
2411
2411
|
}
|
|
2412
2412
|
const existing_motif = existing.motif;
|
|
2413
2413
|
const incoming_motif = incoming.motif;
|
|
2414
|
-
if (!(equals$
|
|
2414
|
+
if (!(equals$b(existing_motif, incoming_motif))) {
|
|
2415
2415
|
return false;
|
|
2416
2416
|
}
|
|
2417
2417
|
const existing_mySubscription = existing.mySubscription;
|
|
@@ -2419,17 +2419,17 @@ function equals$4(existing, incoming) {
|
|
|
2419
2419
|
if (!(existing_mySubscription === incoming_mySubscription
|
|
2420
2420
|
|| (existing_mySubscription != null &&
|
|
2421
2421
|
incoming_mySubscription != null &&
|
|
2422
|
-
equals$
|
|
2422
|
+
equals$l(existing_mySubscription, incoming_mySubscription)))) {
|
|
2423
2423
|
return false;
|
|
2424
2424
|
}
|
|
2425
2425
|
const existing_outOfOffice = existing.outOfOffice;
|
|
2426
2426
|
const incoming_outOfOffice = incoming.outOfOffice;
|
|
2427
|
-
if (!(equals$
|
|
2427
|
+
if (!(equals$a(existing_outOfOffice, incoming_outOfOffice))) {
|
|
2428
2428
|
return false;
|
|
2429
2429
|
}
|
|
2430
2430
|
const existing_photo = existing.photo;
|
|
2431
2431
|
const incoming_photo = incoming.photo;
|
|
2432
|
-
if (!(equals$
|
|
2432
|
+
if (!(equals$9(existing_photo, incoming_photo))) {
|
|
2433
2433
|
return false;
|
|
2434
2434
|
}
|
|
2435
2435
|
const existing_reputation = existing.reputation;
|
|
@@ -2437,7 +2437,7 @@ function equals$4(existing, incoming) {
|
|
|
2437
2437
|
if (!(existing_reputation === incoming_reputation
|
|
2438
2438
|
|| (existing_reputation != null &&
|
|
2439
2439
|
incoming_reputation != null &&
|
|
2440
|
-
equals$
|
|
2440
|
+
equals$7(existing_reputation, incoming_reputation)))) {
|
|
2441
2441
|
return false;
|
|
2442
2442
|
}
|
|
2443
2443
|
const existing_title = existing.title;
|
|
@@ -2453,8 +2453,8 @@ function equals$4(existing, incoming) {
|
|
|
2453
2453
|
return true;
|
|
2454
2454
|
}
|
|
2455
2455
|
|
|
2456
|
-
const VERSION$
|
|
2457
|
-
function validate$
|
|
2456
|
+
const VERSION$5 = "2ec7dbb6937db8bdecf67aaf4acfef8a";
|
|
2457
|
+
function validate$5(obj, path = 'TopicImagesRepresentation') {
|
|
2458
2458
|
const v_error = (() => {
|
|
2459
2459
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2460
2460
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2472,10 +2472,10 @@ function validate$3(obj, path = 'TopicImagesRepresentation') {
|
|
|
2472
2472
|
})();
|
|
2473
2473
|
return v_error === undefined ? null : v_error;
|
|
2474
2474
|
}
|
|
2475
|
-
const select$
|
|
2475
|
+
const select$8 = function TopicImagesRepresentationSelect() {
|
|
2476
2476
|
return {
|
|
2477
2477
|
kind: 'Fragment',
|
|
2478
|
-
version: VERSION$
|
|
2478
|
+
version: VERSION$5,
|
|
2479
2479
|
private: [],
|
|
2480
2480
|
selections: [
|
|
2481
2481
|
{
|
|
@@ -2489,7 +2489,7 @@ const select$4 = function TopicImagesRepresentationSelect() {
|
|
|
2489
2489
|
]
|
|
2490
2490
|
};
|
|
2491
2491
|
};
|
|
2492
|
-
function equals$
|
|
2492
|
+
function equals$5(existing, incoming) {
|
|
2493
2493
|
const existing_coverImageUrl = existing.coverImageUrl;
|
|
2494
2494
|
const incoming_coverImageUrl = incoming.coverImageUrl;
|
|
2495
2495
|
if (!(existing_coverImageUrl === incoming_coverImageUrl)) {
|
|
@@ -2503,8 +2503,8 @@ function equals$3(existing, incoming) {
|
|
|
2503
2503
|
return true;
|
|
2504
2504
|
}
|
|
2505
2505
|
|
|
2506
|
-
const VERSION$
|
|
2507
|
-
function validate$
|
|
2506
|
+
const VERSION$4 = "e9478bed73cce20b06a6bc67c3333bcb";
|
|
2507
|
+
function validate$4(obj, path = 'TopicRepresentation') {
|
|
2508
2508
|
const v_error = (() => {
|
|
2509
2509
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2510
2510
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2526,7 +2526,7 @@ function validate$2(obj, path = 'TopicRepresentation') {
|
|
|
2526
2526
|
}
|
|
2527
2527
|
const obj_images = obj.images;
|
|
2528
2528
|
const path_images = path + '.images';
|
|
2529
|
-
const referencepath_imagesValidationError = validate$
|
|
2529
|
+
const referencepath_imagesValidationError = validate$5(obj_images, path_images);
|
|
2530
2530
|
if (referencepath_imagesValidationError !== null) {
|
|
2531
2531
|
let message = 'Object doesn\'t match TopicImagesRepresentation (at "' + path_images + '")\n';
|
|
2532
2532
|
message += referencepath_imagesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2560,11 +2560,11 @@ function validate$2(obj, path = 'TopicRepresentation') {
|
|
|
2560
2560
|
})();
|
|
2561
2561
|
return v_error === undefined ? null : v_error;
|
|
2562
2562
|
}
|
|
2563
|
-
const select$
|
|
2564
|
-
const { selections: TopicImagesRepresentation__selections, opaque: TopicImagesRepresentation__opaque, } = select$
|
|
2563
|
+
const select$7 = function TopicRepresentationSelect() {
|
|
2564
|
+
const { selections: TopicImagesRepresentation__selections, opaque: TopicImagesRepresentation__opaque, } = select$8();
|
|
2565
2565
|
return {
|
|
2566
2566
|
kind: 'Fragment',
|
|
2567
|
-
version: VERSION$
|
|
2567
|
+
version: VERSION$4,
|
|
2568
2568
|
private: [],
|
|
2569
2569
|
selections: [
|
|
2570
2570
|
{
|
|
@@ -2607,7 +2607,7 @@ const select$3 = function TopicRepresentationSelect() {
|
|
|
2607
2607
|
]
|
|
2608
2608
|
};
|
|
2609
2609
|
};
|
|
2610
|
-
function equals$
|
|
2610
|
+
function equals$4(existing, incoming) {
|
|
2611
2611
|
const existing_isBeingDeleted = existing.isBeingDeleted;
|
|
2612
2612
|
const incoming_isBeingDeleted = incoming.isBeingDeleted;
|
|
2613
2613
|
if (!(existing_isBeingDeleted === incoming_isBeingDeleted)) {
|
|
@@ -2650,14 +2650,14 @@ function equals$2(existing, incoming) {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
const existing_images = existing.images;
|
|
2652
2652
|
const incoming_images = incoming.images;
|
|
2653
|
-
if (!(equals$
|
|
2653
|
+
if (!(equals$5(existing_images, incoming_images))) {
|
|
2654
2654
|
return false;
|
|
2655
2655
|
}
|
|
2656
2656
|
return true;
|
|
2657
2657
|
}
|
|
2658
2658
|
|
|
2659
|
-
const VERSION$
|
|
2660
|
-
function validate$
|
|
2659
|
+
const VERSION$3 = "c049f45670ae38f19bfc0c1ee3406cb7";
|
|
2660
|
+
function validate$3(obj, path = 'TopicCollectionRepresentation') {
|
|
2661
2661
|
const v_error = (() => {
|
|
2662
2662
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2663
2663
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2724,7 +2724,7 @@ function validate$1(obj, path = 'TopicCollectionRepresentation') {
|
|
|
2724
2724
|
const path_topics_item = path_topics + '[' + i + ']';
|
|
2725
2725
|
let obj_topics_item_union0 = null;
|
|
2726
2726
|
const obj_topics_item_union0_error = (() => {
|
|
2727
|
-
const referencepath_topics_itemValidationError = validate$
|
|
2727
|
+
const referencepath_topics_itemValidationError = validate$4(obj_topics_item, path_topics_item);
|
|
2728
2728
|
if (referencepath_topics_itemValidationError !== null) {
|
|
2729
2729
|
let message = 'Object doesn\'t match TopicRepresentation (at "' + path_topics_item + '")\n';
|
|
2730
2730
|
message += referencepath_topics_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2753,11 +2753,11 @@ function validate$1(obj, path = 'TopicCollectionRepresentation') {
|
|
|
2753
2753
|
})();
|
|
2754
2754
|
return v_error === undefined ? null : v_error;
|
|
2755
2755
|
}
|
|
2756
|
-
const select$
|
|
2757
|
-
const { selections: TopicRepresentation__selections, opaque: TopicRepresentation__opaque, } = select$
|
|
2756
|
+
const select$6 = function TopicCollectionRepresentationSelect() {
|
|
2757
|
+
const { selections: TopicRepresentation__selections, opaque: TopicRepresentation__opaque, } = select$7();
|
|
2758
2758
|
return {
|
|
2759
2759
|
kind: 'Fragment',
|
|
2760
|
-
version: VERSION$
|
|
2760
|
+
version: VERSION$3,
|
|
2761
2761
|
private: [],
|
|
2762
2762
|
selections: [
|
|
2763
2763
|
{
|
|
@@ -2778,7 +2778,7 @@ const select$2 = function TopicCollectionRepresentationSelect() {
|
|
|
2778
2778
|
]
|
|
2779
2779
|
};
|
|
2780
2780
|
};
|
|
2781
|
-
function equals$
|
|
2781
|
+
function equals$3(existing, incoming) {
|
|
2782
2782
|
const existing_currentPageUrl = existing.currentPageUrl;
|
|
2783
2783
|
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
2784
2784
|
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
@@ -2795,7 +2795,7 @@ function equals$1(existing, incoming) {
|
|
|
2795
2795
|
if (!(existing_topics_item === incoming_topics_item
|
|
2796
2796
|
|| (existing_topics_item != null &&
|
|
2797
2797
|
incoming_topics_item != null &&
|
|
2798
|
-
equals$
|
|
2798
|
+
equals$4(existing_topics_item, incoming_topics_item)))) {
|
|
2799
2799
|
return false;
|
|
2800
2800
|
}
|
|
2801
2801
|
});
|
|
@@ -2805,9 +2805,9 @@ function equals$1(existing, incoming) {
|
|
|
2805
2805
|
return true;
|
|
2806
2806
|
}
|
|
2807
2807
|
|
|
2808
|
-
const TTL = 100;
|
|
2809
|
-
const VERSION = "472a1bdc1617b702fa962cd73dd73eee";
|
|
2810
|
-
function validate(obj, path = 'FileDetailRepresentation') {
|
|
2808
|
+
const TTL$1 = 100;
|
|
2809
|
+
const VERSION$2 = "472a1bdc1617b702fa962cd73dd73eee";
|
|
2810
|
+
function validate$2(obj, path = 'FileDetailRepresentation') {
|
|
2811
2811
|
const v_error = (() => {
|
|
2812
2812
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2813
2813
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2842,7 +2842,7 @@ function validate(obj, path = 'FileDetailRepresentation') {
|
|
|
2842
2842
|
const path_contentHubRepository = path + '.contentHubRepository';
|
|
2843
2843
|
let obj_contentHubRepository_union0 = null;
|
|
2844
2844
|
const obj_contentHubRepository_union0_error = (() => {
|
|
2845
|
-
const referencepath_contentHubRepositoryValidationError = validate$
|
|
2845
|
+
const referencepath_contentHubRepositoryValidationError = validate$j(obj_contentHubRepository, path_contentHubRepository);
|
|
2846
2846
|
if (referencepath_contentHubRepositoryValidationError !== null) {
|
|
2847
2847
|
let message = 'Object doesn\'t match ContentHubRepositoryRepresentation (at "' + path_contentHubRepository + '")\n';
|
|
2848
2848
|
message += referencepath_contentHubRepositoryValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3079,7 +3079,7 @@ function validate(obj, path = 'FileDetailRepresentation') {
|
|
|
3079
3079
|
const path_externalFilePermissionInformation = path + '.externalFilePermissionInformation';
|
|
3080
3080
|
let obj_externalFilePermissionInformation_union0 = null;
|
|
3081
3081
|
const obj_externalFilePermissionInformation_union0_error = (() => {
|
|
3082
|
-
const referencepath_externalFilePermissionInformationValidationError = validate$
|
|
3082
|
+
const referencepath_externalFilePermissionInformationValidationError = validate$g(obj_externalFilePermissionInformation, path_externalFilePermissionInformation);
|
|
3083
3083
|
if (referencepath_externalFilePermissionInformationValidationError !== null) {
|
|
3084
3084
|
let message = 'Object doesn\'t match ExternalFilePermissionInformationRepresentation (at "' + path_externalFilePermissionInformation + '")\n';
|
|
3085
3085
|
message += referencepath_externalFilePermissionInformationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3108,7 +3108,7 @@ function validate(obj, path = 'FileDetailRepresentation') {
|
|
|
3108
3108
|
const path_fileAsset = path + '.fileAsset';
|
|
3109
3109
|
let obj_fileAsset_union0 = null;
|
|
3110
3110
|
const obj_fileAsset_union0_error = (() => {
|
|
3111
|
-
const referencepath_fileAssetValidationError = validate$
|
|
3111
|
+
const referencepath_fileAssetValidationError = validate$f(obj_fileAsset, path_fileAsset);
|
|
3112
3112
|
if (referencepath_fileAssetValidationError !== null) {
|
|
3113
3113
|
let message = 'Object doesn\'t match FileAssetRepresentation (at "' + path_fileAsset + '")\n';
|
|
3114
3114
|
message += referencepath_fileAssetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3345,7 +3345,7 @@ function validate(obj, path = 'FileDetailRepresentation') {
|
|
|
3345
3345
|
const path_moderationFlags = path + '.moderationFlags';
|
|
3346
3346
|
let obj_moderationFlags_union0 = null;
|
|
3347
3347
|
const obj_moderationFlags_union0_error = (() => {
|
|
3348
|
-
const referencepath_moderationFlagsValidationError = validate$
|
|
3348
|
+
const referencepath_moderationFlagsValidationError = validate$c(obj_moderationFlags, path_moderationFlags);
|
|
3349
3349
|
if (referencepath_moderationFlagsValidationError !== null) {
|
|
3350
3350
|
let message = 'Object doesn\'t match ModerationFlagsRepresentation (at "' + path_moderationFlags + '")\n';
|
|
3351
3351
|
message += referencepath_moderationFlagsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3400,7 +3400,7 @@ function validate(obj, path = 'FileDetailRepresentation') {
|
|
|
3400
3400
|
const path_motif = path + '.motif';
|
|
3401
3401
|
let obj_motif_union0 = null;
|
|
3402
3402
|
const obj_motif_union0_error = (() => {
|
|
3403
|
-
const referencepath_motifValidationError = validate$
|
|
3403
|
+
const referencepath_motifValidationError = validate$b(obj_motif, path_motif);
|
|
3404
3404
|
if (referencepath_motifValidationError !== null) {
|
|
3405
3405
|
let message = 'Object doesn\'t match MotifRepresentation (at "' + path_motif + '")\n';
|
|
3406
3406
|
message += referencepath_motifValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3429,7 +3429,7 @@ function validate(obj, path = 'FileDetailRepresentation') {
|
|
|
3429
3429
|
const path_mySubscription = path + '.mySubscription';
|
|
3430
3430
|
let obj_mySubscription_union0 = null;
|
|
3431
3431
|
const obj_mySubscription_union0_error = (() => {
|
|
3432
|
-
const referencepath_mySubscriptionValidationError = validate$
|
|
3432
|
+
const referencepath_mySubscriptionValidationError = validate$l(obj_mySubscription, path_mySubscription);
|
|
3433
3433
|
if (referencepath_mySubscriptionValidationError !== null) {
|
|
3434
3434
|
let message = 'Object doesn\'t match ReferenceRepresentation (at "' + path_mySubscription + '")\n';
|
|
3435
3435
|
message += referencepath_mySubscriptionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3510,7 +3510,7 @@ function validate(obj, path = 'FileDetailRepresentation') {
|
|
|
3510
3510
|
const path_owner = path + '.owner';
|
|
3511
3511
|
let obj_owner_union0 = null;
|
|
3512
3512
|
const obj_owner_union0_error = (() => {
|
|
3513
|
-
const referencepath_ownerValidationError = validate$
|
|
3513
|
+
const referencepath_ownerValidationError = validate$6(obj_owner, path_owner);
|
|
3514
3514
|
if (referencepath_ownerValidationError !== null) {
|
|
3515
3515
|
let message = 'Object doesn\'t match UserSummaryRepresentation (at "' + path_owner + '")\n';
|
|
3516
3516
|
message += referencepath_ownerValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3565,7 +3565,7 @@ function validate(obj, path = 'FileDetailRepresentation') {
|
|
|
3565
3565
|
const path_parentFolder = path + '.parentFolder';
|
|
3566
3566
|
let obj_parentFolder_union0 = null;
|
|
3567
3567
|
const obj_parentFolder_union0_error = (() => {
|
|
3568
|
-
const referencepath_parentFolderValidationError = validate$
|
|
3568
|
+
const referencepath_parentFolderValidationError = validate$l(obj_parentFolder, path_parentFolder);
|
|
3569
3569
|
if (referencepath_parentFolderValidationError !== null) {
|
|
3570
3570
|
let message = 'Object doesn\'t match ReferenceRepresentation (at "' + path_parentFolder + '")\n';
|
|
3571
3571
|
message += referencepath_parentFolderValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4010,7 +4010,7 @@ function validate(obj, path = 'FileDetailRepresentation') {
|
|
|
4010
4010
|
const path_topics = path + '.topics';
|
|
4011
4011
|
let obj_topics_union0 = null;
|
|
4012
4012
|
const obj_topics_union0_error = (() => {
|
|
4013
|
-
const referencepath_topicsValidationError = validate$
|
|
4013
|
+
const referencepath_topicsValidationError = validate$3(obj_topics, path_topics);
|
|
4014
4014
|
if (referencepath_topicsValidationError !== null) {
|
|
4015
4015
|
let message = 'Object doesn\'t match TopicCollectionRepresentation (at "' + path_topics + '")\n';
|
|
4016
4016
|
message += referencepath_topicsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4116,31 +4116,31 @@ function validate(obj, path = 'FileDetailRepresentation') {
|
|
|
4116
4116
|
})();
|
|
4117
4117
|
return v_error === undefined ? null : v_error;
|
|
4118
4118
|
}
|
|
4119
|
-
const RepresentationType = 'FileDetailRepresentation';
|
|
4120
|
-
function keyBuilder(luvio, config) {
|
|
4121
|
-
return keyPrefix + '::' + RepresentationType + ':' + (config.id === null ? '' : config.id);
|
|
4119
|
+
const RepresentationType$1 = 'FileDetailRepresentation';
|
|
4120
|
+
function keyBuilder$4(luvio, config) {
|
|
4121
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + (config.id === null ? '' : config.id);
|
|
4122
4122
|
}
|
|
4123
4123
|
function keyBuilderFromType(luvio, object) {
|
|
4124
4124
|
const keyParams = {
|
|
4125
4125
|
id: object.id
|
|
4126
4126
|
};
|
|
4127
|
-
return keyBuilder(luvio, keyParams);
|
|
4127
|
+
return keyBuilder$4(luvio, keyParams);
|
|
4128
4128
|
}
|
|
4129
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
4129
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
4130
4130
|
return input;
|
|
4131
4131
|
}
|
|
4132
|
-
const select$
|
|
4133
|
-
const { selections: ContentHubRepositoryRepresentation__selections, opaque: ContentHubRepositoryRepresentation__opaque, } = select$
|
|
4134
|
-
const { selections: ExternalFilePermissionInformationRepresentation__selections, opaque: ExternalFilePermissionInformationRepresentation__opaque, } = select$
|
|
4135
|
-
const { selections: FileAssetRepresentation__selections, opaque: FileAssetRepresentation__opaque, } = select$
|
|
4136
|
-
const { selections: ModerationFlagsRepresentation__selections, opaque: ModerationFlagsRepresentation__opaque, } = select$
|
|
4137
|
-
const { selections: MotifRepresentation__selections, opaque: MotifRepresentation__opaque, } = select$
|
|
4138
|
-
const { selections: ReferenceRepresentation__selections, opaque: ReferenceRepresentation__opaque, } = select$
|
|
4139
|
-
const { selections: UserSummaryRepresentation__selections, opaque: UserSummaryRepresentation__opaque, } = select$
|
|
4140
|
-
const { selections: TopicCollectionRepresentation__selections, opaque: TopicCollectionRepresentation__opaque, } = select$
|
|
4132
|
+
const select$5 = function FileDetailRepresentationSelect() {
|
|
4133
|
+
const { selections: ContentHubRepositoryRepresentation__selections, opaque: ContentHubRepositoryRepresentation__opaque, } = select$m();
|
|
4134
|
+
const { selections: ExternalFilePermissionInformationRepresentation__selections, opaque: ExternalFilePermissionInformationRepresentation__opaque, } = select$j();
|
|
4135
|
+
const { selections: FileAssetRepresentation__selections, opaque: FileAssetRepresentation__opaque, } = select$i();
|
|
4136
|
+
const { selections: ModerationFlagsRepresentation__selections, opaque: ModerationFlagsRepresentation__opaque, } = select$f();
|
|
4137
|
+
const { selections: MotifRepresentation__selections, opaque: MotifRepresentation__opaque, } = select$e();
|
|
4138
|
+
const { selections: ReferenceRepresentation__selections, opaque: ReferenceRepresentation__opaque, } = select$o();
|
|
4139
|
+
const { selections: UserSummaryRepresentation__selections, opaque: UserSummaryRepresentation__opaque, } = select$9();
|
|
4140
|
+
const { selections: TopicCollectionRepresentation__selections, opaque: TopicCollectionRepresentation__opaque, } = select$6();
|
|
4141
4141
|
return {
|
|
4142
4142
|
kind: 'Fragment',
|
|
4143
|
-
version: VERSION,
|
|
4143
|
+
version: VERSION$2,
|
|
4144
4144
|
private: [],
|
|
4145
4145
|
selections: [
|
|
4146
4146
|
{
|
|
@@ -4360,7 +4360,7 @@ const select$1 = function FileDetailRepresentationSelect() {
|
|
|
4360
4360
|
]
|
|
4361
4361
|
};
|
|
4362
4362
|
};
|
|
4363
|
-
function equals(existing, incoming) {
|
|
4363
|
+
function equals$2(existing, incoming) {
|
|
4364
4364
|
const existing_checksum = existing.checksum;
|
|
4365
4365
|
const incoming_checksum = incoming.checksum;
|
|
4366
4366
|
if (!(existing_checksum === incoming_checksum)) {
|
|
@@ -4371,7 +4371,7 @@ function equals(existing, incoming) {
|
|
|
4371
4371
|
if (!(existing_contentHubRepository === incoming_contentHubRepository
|
|
4372
4372
|
|| (existing_contentHubRepository != null &&
|
|
4373
4373
|
incoming_contentHubRepository != null &&
|
|
4374
|
-
equals$
|
|
4374
|
+
equals$j(existing_contentHubRepository, incoming_contentHubRepository)))) {
|
|
4375
4375
|
return false;
|
|
4376
4376
|
}
|
|
4377
4377
|
const existing_contentModifiedDate = existing.contentModifiedDate;
|
|
@@ -4419,7 +4419,7 @@ function equals(existing, incoming) {
|
|
|
4419
4419
|
if (!(existing_externalFilePermissionInformation === incoming_externalFilePermissionInformation
|
|
4420
4420
|
|| (existing_externalFilePermissionInformation != null &&
|
|
4421
4421
|
incoming_externalFilePermissionInformation != null &&
|
|
4422
|
-
equals$
|
|
4422
|
+
equals$g(existing_externalFilePermissionInformation, incoming_externalFilePermissionInformation)))) {
|
|
4423
4423
|
return false;
|
|
4424
4424
|
}
|
|
4425
4425
|
const existing_fileAsset = existing.fileAsset;
|
|
@@ -4427,7 +4427,7 @@ function equals(existing, incoming) {
|
|
|
4427
4427
|
if (!(existing_fileAsset === incoming_fileAsset
|
|
4428
4428
|
|| (existing_fileAsset != null &&
|
|
4429
4429
|
incoming_fileAsset != null &&
|
|
4430
|
-
equals$
|
|
4430
|
+
equals$f(existing_fileAsset, incoming_fileAsset)))) {
|
|
4431
4431
|
return false;
|
|
4432
4432
|
}
|
|
4433
4433
|
const existing_fileExtension = existing.fileExtension;
|
|
@@ -4475,7 +4475,7 @@ function equals(existing, incoming) {
|
|
|
4475
4475
|
if (!(existing_moderationFlags === incoming_moderationFlags
|
|
4476
4476
|
|| (existing_moderationFlags != null &&
|
|
4477
4477
|
incoming_moderationFlags != null &&
|
|
4478
|
-
equals$
|
|
4478
|
+
equals$c(existing_moderationFlags, incoming_moderationFlags)))) {
|
|
4479
4479
|
return false;
|
|
4480
4480
|
}
|
|
4481
4481
|
const existing_modifiedDate = existing.modifiedDate;
|
|
@@ -4488,7 +4488,7 @@ function equals(existing, incoming) {
|
|
|
4488
4488
|
if (!(existing_motif === incoming_motif
|
|
4489
4489
|
|| (existing_motif != null &&
|
|
4490
4490
|
incoming_motif != null &&
|
|
4491
|
-
equals$
|
|
4491
|
+
equals$b(existing_motif, incoming_motif)))) {
|
|
4492
4492
|
return false;
|
|
4493
4493
|
}
|
|
4494
4494
|
const existing_mySubscription = existing.mySubscription;
|
|
@@ -4496,7 +4496,7 @@ function equals(existing, incoming) {
|
|
|
4496
4496
|
if (!(existing_mySubscription === incoming_mySubscription
|
|
4497
4497
|
|| (existing_mySubscription != null &&
|
|
4498
4498
|
incoming_mySubscription != null &&
|
|
4499
|
-
equals$
|
|
4499
|
+
equals$l(existing_mySubscription, incoming_mySubscription)))) {
|
|
4500
4500
|
return false;
|
|
4501
4501
|
}
|
|
4502
4502
|
const existing_name = existing.name;
|
|
@@ -4514,7 +4514,7 @@ function equals(existing, incoming) {
|
|
|
4514
4514
|
if (!(existing_owner === incoming_owner
|
|
4515
4515
|
|| (existing_owner != null &&
|
|
4516
4516
|
incoming_owner != null &&
|
|
4517
|
-
equals$
|
|
4517
|
+
equals$6(existing_owner, incoming_owner)))) {
|
|
4518
4518
|
return false;
|
|
4519
4519
|
}
|
|
4520
4520
|
const existing_pageCount = existing.pageCount;
|
|
@@ -4527,7 +4527,7 @@ function equals(existing, incoming) {
|
|
|
4527
4527
|
if (!(existing_parentFolder === incoming_parentFolder
|
|
4528
4528
|
|| (existing_parentFolder != null &&
|
|
4529
4529
|
incoming_parentFolder != null &&
|
|
4530
|
-
equals$
|
|
4530
|
+
equals$l(existing_parentFolder, incoming_parentFolder)))) {
|
|
4531
4531
|
return false;
|
|
4532
4532
|
}
|
|
4533
4533
|
const existing_pdfRenditionStatus = existing.pdfRenditionStatus;
|
|
@@ -4615,7 +4615,7 @@ function equals(existing, incoming) {
|
|
|
4615
4615
|
if (!(existing_topics === incoming_topics
|
|
4616
4616
|
|| (existing_topics != null &&
|
|
4617
4617
|
incoming_topics != null &&
|
|
4618
|
-
equals$
|
|
4618
|
+
equals$3(existing_topics, incoming_topics)))) {
|
|
4619
4619
|
return false;
|
|
4620
4620
|
}
|
|
4621
4621
|
const existing_type = existing.type;
|
|
@@ -4635,41 +4635,41 @@ function equals(existing, incoming) {
|
|
|
4635
4635
|
}
|
|
4636
4636
|
return true;
|
|
4637
4637
|
}
|
|
4638
|
-
const ingest = function FileDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4638
|
+
const ingest$1 = function FileDetailRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4639
4639
|
if (process.env.NODE_ENV !== 'production') {
|
|
4640
|
-
const validateError = validate(input);
|
|
4640
|
+
const validateError = validate$2(input);
|
|
4641
4641
|
if (validateError !== null) {
|
|
4642
4642
|
throw validateError;
|
|
4643
4643
|
}
|
|
4644
4644
|
}
|
|
4645
4645
|
const key = keyBuilderFromType(luvio, input);
|
|
4646
|
-
const ttlToUse = TTL;
|
|
4647
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "files", VERSION, RepresentationType, equals);
|
|
4646
|
+
const ttlToUse = TTL$1;
|
|
4647
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "files", VERSION$2, RepresentationType$1, equals$2);
|
|
4648
4648
|
return createLink(key);
|
|
4649
4649
|
};
|
|
4650
|
-
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
4650
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
4651
4651
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4652
4652
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
4653
4653
|
rootKeySet.set(rootKey, {
|
|
4654
4654
|
namespace: keyPrefix,
|
|
4655
|
-
representationName: RepresentationType,
|
|
4655
|
+
representationName: RepresentationType$1,
|
|
4656
4656
|
mergeable: false
|
|
4657
4657
|
});
|
|
4658
4658
|
}
|
|
4659
4659
|
|
|
4660
|
-
function select(luvio, params) {
|
|
4661
|
-
return select$
|
|
4660
|
+
function select$4(luvio, params) {
|
|
4661
|
+
return select$5();
|
|
4662
4662
|
}
|
|
4663
|
-
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
4664
|
-
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
4663
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
4664
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
4665
4665
|
}
|
|
4666
|
-
function ingestSuccess(luvio, resourceParams, response) {
|
|
4666
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
4667
4667
|
const { body } = response;
|
|
4668
4668
|
const key = keyBuilderFromType(luvio, body);
|
|
4669
|
-
luvio.storeIngest(key, ingest, body);
|
|
4669
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
4670
4670
|
const snapshot = luvio.storeLookup({
|
|
4671
4671
|
recordId: key,
|
|
4672
|
-
node: select(),
|
|
4672
|
+
node: select$4(),
|
|
4673
4673
|
variables: {},
|
|
4674
4674
|
});
|
|
4675
4675
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4680,7 +4680,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
4680
4680
|
deepFreeze(snapshot.data);
|
|
4681
4681
|
return snapshot;
|
|
4682
4682
|
}
|
|
4683
|
-
function createResourceRequest(config) {
|
|
4683
|
+
function createResourceRequest$2(config) {
|
|
4684
4684
|
const headers = {};
|
|
4685
4685
|
return {
|
|
4686
4686
|
baseUri: '/services/data/v63.0',
|
|
@@ -4694,7 +4694,7 @@ function createResourceRequest(config) {
|
|
|
4694
4694
|
};
|
|
4695
4695
|
}
|
|
4696
4696
|
|
|
4697
|
-
const adapterName = 'createContentDocFromContentBody';
|
|
4697
|
+
const adapterName$2 = 'createContentDocFromContentBody';
|
|
4698
4698
|
const createContentDocFromContentBody_ConfigPropertyMetadata = [
|
|
4699
4699
|
generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4700
4700
|
generateParamConfigMetadata('contentBodyId', true, 2 /* Body */, 0 /* String */),
|
|
@@ -4717,37 +4717,37 @@ const createContentDocFromContentBody_ConfigPropertyMetadata = [
|
|
|
4717
4717
|
generateParamConfigMetadata('sharingPrivacy', false, 2 /* Body */, 0 /* String */),
|
|
4718
4718
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
4719
4719
|
];
|
|
4720
|
-
const createContentDocFromContentBody_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, createContentDocFromContentBody_ConfigPropertyMetadata);
|
|
4721
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
4722
|
-
function typeCheckConfig(untrustedConfig) {
|
|
4720
|
+
const createContentDocFromContentBody_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, createContentDocFromContentBody_ConfigPropertyMetadata);
|
|
4721
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(createContentDocFromContentBody_ConfigPropertyMetadata);
|
|
4722
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
4723
4723
|
const config = {};
|
|
4724
|
-
typeCheckConfig$
|
|
4724
|
+
typeCheckConfig$4(untrustedConfig, config, createContentDocFromContentBody_ConfigPropertyMetadata);
|
|
4725
4725
|
return config;
|
|
4726
4726
|
}
|
|
4727
|
-
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
4727
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
4728
4728
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4729
4729
|
return null;
|
|
4730
4730
|
}
|
|
4731
4731
|
if (process.env.NODE_ENV !== 'production') {
|
|
4732
4732
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4733
4733
|
}
|
|
4734
|
-
const config = typeCheckConfig(untrustedConfig);
|
|
4734
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
4735
4735
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4736
4736
|
return null;
|
|
4737
4737
|
}
|
|
4738
4738
|
return config;
|
|
4739
4739
|
}
|
|
4740
|
-
function buildNetworkSnapshot(luvio, config, options) {
|
|
4741
|
-
const resourceParams = createResourceParams(config);
|
|
4742
|
-
const request = createResourceRequest(resourceParams);
|
|
4740
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
4741
|
+
const resourceParams = createResourceParams$2(config);
|
|
4742
|
+
const request = createResourceRequest$2(resourceParams);
|
|
4743
4743
|
return luvio.dispatchResourceRequest(request, options)
|
|
4744
4744
|
.then((response) => {
|
|
4745
4745
|
return luvio.handleSuccessResponse(() => {
|
|
4746
|
-
const snapshot = ingestSuccess(luvio, resourceParams, response);
|
|
4746
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
4747
4747
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4748
4748
|
}, () => {
|
|
4749
4749
|
const cache = new StoreKeyMap();
|
|
4750
|
-
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
4750
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
4751
4751
|
return cache;
|
|
4752
4752
|
});
|
|
4753
4753
|
}, (response) => {
|
|
@@ -4757,13 +4757,484 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
4757
4757
|
}
|
|
4758
4758
|
const createContentDocFromContentBodyAdapterFactory = (luvio) => {
|
|
4759
4759
|
return function createContentDocFromContentBody(untrustedConfig) {
|
|
4760
|
-
const config = validateAdapterConfig(untrustedConfig, createContentDocFromContentBody_ConfigPropertyNames);
|
|
4760
|
+
const config = validateAdapterConfig$2(untrustedConfig, createContentDocFromContentBody_ConfigPropertyNames);
|
|
4761
4761
|
// Invalid or incomplete config
|
|
4762
4762
|
if (config === null) {
|
|
4763
4763
|
throw new Error('Invalid config for "createContentDocFromContentBody"');
|
|
4764
4764
|
}
|
|
4765
|
-
return buildNetworkSnapshot(luvio, config);
|
|
4765
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
4766
|
+
};
|
|
4767
|
+
};
|
|
4768
|
+
|
|
4769
|
+
const VERSION$1 = "991f7d9d5aaae8933546ed0cdf495355";
|
|
4770
|
+
function validate$1(obj, path = 'FilePreviewUrlRepresentation') {
|
|
4771
|
+
const v_error = (() => {
|
|
4772
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4773
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4774
|
+
}
|
|
4775
|
+
const obj_pageNumber = obj.pageNumber;
|
|
4776
|
+
const path_pageNumber = path + '.pageNumber';
|
|
4777
|
+
if (typeof obj_pageNumber !== 'number' || (typeof obj_pageNumber === 'number' && Math.floor(obj_pageNumber) !== obj_pageNumber)) {
|
|
4778
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_pageNumber + '" (at "' + path_pageNumber + '")');
|
|
4779
|
+
}
|
|
4780
|
+
const obj_previewUrl = obj.previewUrl;
|
|
4781
|
+
const path_previewUrl = path + '.previewUrl';
|
|
4782
|
+
if (typeof obj_previewUrl !== 'string') {
|
|
4783
|
+
return new TypeError('Expected "string" but received "' + typeof obj_previewUrl + '" (at "' + path_previewUrl + '")');
|
|
4784
|
+
}
|
|
4785
|
+
})();
|
|
4786
|
+
return v_error === undefined ? null : v_error;
|
|
4787
|
+
}
|
|
4788
|
+
const select$3 = function FilePreviewUrlRepresentationSelect() {
|
|
4789
|
+
return {
|
|
4790
|
+
kind: 'Fragment',
|
|
4791
|
+
version: VERSION$1,
|
|
4792
|
+
private: [],
|
|
4793
|
+
selections: [
|
|
4794
|
+
{
|
|
4795
|
+
name: 'pageNumber',
|
|
4796
|
+
kind: 'Scalar'
|
|
4797
|
+
},
|
|
4798
|
+
{
|
|
4799
|
+
name: 'previewUrl',
|
|
4800
|
+
kind: 'Scalar'
|
|
4801
|
+
}
|
|
4802
|
+
]
|
|
4803
|
+
};
|
|
4804
|
+
};
|
|
4805
|
+
function equals$1(existing, incoming) {
|
|
4806
|
+
const existing_pageNumber = existing.pageNumber;
|
|
4807
|
+
const incoming_pageNumber = incoming.pageNumber;
|
|
4808
|
+
if (!(existing_pageNumber === incoming_pageNumber)) {
|
|
4809
|
+
return false;
|
|
4810
|
+
}
|
|
4811
|
+
const existing_previewUrl = existing.previewUrl;
|
|
4812
|
+
const incoming_previewUrl = incoming.previewUrl;
|
|
4813
|
+
if (!(existing_previewUrl === incoming_previewUrl)) {
|
|
4814
|
+
return false;
|
|
4815
|
+
}
|
|
4816
|
+
return true;
|
|
4817
|
+
}
|
|
4818
|
+
|
|
4819
|
+
const TTL = 100;
|
|
4820
|
+
const VERSION = "3465c0cb2d3d706149acdcef3dd51708";
|
|
4821
|
+
function validate(obj, path = 'FilePreviewRepresentation') {
|
|
4822
|
+
const v_error = (() => {
|
|
4823
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4824
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4825
|
+
}
|
|
4826
|
+
const obj_format = obj.format;
|
|
4827
|
+
const path_format = path + '.format';
|
|
4828
|
+
if (typeof obj_format !== 'string') {
|
|
4829
|
+
return new TypeError('Expected "string" but received "' + typeof obj_format + '" (at "' + path_format + '")');
|
|
4830
|
+
}
|
|
4831
|
+
const obj_previewUrlCount = obj.previewUrlCount;
|
|
4832
|
+
const path_previewUrlCount = path + '.previewUrlCount';
|
|
4833
|
+
if (typeof obj_previewUrlCount !== 'number' || (typeof obj_previewUrlCount === 'number' && Math.floor(obj_previewUrlCount) !== obj_previewUrlCount)) {
|
|
4834
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_previewUrlCount + '" (at "' + path_previewUrlCount + '")');
|
|
4835
|
+
}
|
|
4836
|
+
const obj_previewUrls = obj.previewUrls;
|
|
4837
|
+
const path_previewUrls = path + '.previewUrls';
|
|
4838
|
+
if (!ArrayIsArray(obj_previewUrls)) {
|
|
4839
|
+
return new TypeError('Expected "array" but received "' + typeof obj_previewUrls + '" (at "' + path_previewUrls + '")');
|
|
4840
|
+
}
|
|
4841
|
+
for (let i = 0; i < obj_previewUrls.length; i++) {
|
|
4842
|
+
const obj_previewUrls_item = obj_previewUrls[i];
|
|
4843
|
+
const path_previewUrls_item = path_previewUrls + '[' + i + ']';
|
|
4844
|
+
const referencepath_previewUrls_itemValidationError = validate$1(obj_previewUrls_item, path_previewUrls_item);
|
|
4845
|
+
if (referencepath_previewUrls_itemValidationError !== null) {
|
|
4846
|
+
let message = 'Object doesn\'t match FilePreviewUrlRepresentation (at "' + path_previewUrls_item + '")\n';
|
|
4847
|
+
message += referencepath_previewUrls_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4848
|
+
return new TypeError(message);
|
|
4849
|
+
}
|
|
4850
|
+
}
|
|
4851
|
+
const obj_status = obj.status;
|
|
4852
|
+
const path_status = path + '.status';
|
|
4853
|
+
if (typeof obj_status !== 'string') {
|
|
4854
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
4855
|
+
}
|
|
4856
|
+
const obj_url = obj.url;
|
|
4857
|
+
const path_url = path + '.url';
|
|
4858
|
+
if (typeof obj_url !== 'string') {
|
|
4859
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
4860
|
+
}
|
|
4861
|
+
})();
|
|
4862
|
+
return v_error === undefined ? null : v_error;
|
|
4863
|
+
}
|
|
4864
|
+
const RepresentationType = 'FilePreviewRepresentation';
|
|
4865
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
4866
|
+
return input;
|
|
4867
|
+
}
|
|
4868
|
+
const select$2 = function FilePreviewRepresentationSelect() {
|
|
4869
|
+
const { selections: FilePreviewUrlRepresentation__selections, opaque: FilePreviewUrlRepresentation__opaque, } = select$3();
|
|
4870
|
+
return {
|
|
4871
|
+
kind: 'Fragment',
|
|
4872
|
+
version: VERSION,
|
|
4873
|
+
private: [],
|
|
4874
|
+
selections: [
|
|
4875
|
+
{
|
|
4876
|
+
name: 'format',
|
|
4877
|
+
kind: 'Scalar'
|
|
4878
|
+
},
|
|
4879
|
+
{
|
|
4880
|
+
name: 'previewUrlCount',
|
|
4881
|
+
kind: 'Scalar'
|
|
4882
|
+
},
|
|
4883
|
+
{
|
|
4884
|
+
name: 'previewUrls',
|
|
4885
|
+
kind: 'Object',
|
|
4886
|
+
plural: true,
|
|
4887
|
+
selections: FilePreviewUrlRepresentation__selections
|
|
4888
|
+
},
|
|
4889
|
+
{
|
|
4890
|
+
name: 'status',
|
|
4891
|
+
kind: 'Scalar'
|
|
4892
|
+
},
|
|
4893
|
+
{
|
|
4894
|
+
name: 'url',
|
|
4895
|
+
kind: 'Scalar'
|
|
4896
|
+
}
|
|
4897
|
+
]
|
|
4898
|
+
};
|
|
4899
|
+
};
|
|
4900
|
+
function equals(existing, incoming) {
|
|
4901
|
+
const existing_previewUrlCount = existing.previewUrlCount;
|
|
4902
|
+
const incoming_previewUrlCount = incoming.previewUrlCount;
|
|
4903
|
+
if (!(existing_previewUrlCount === incoming_previewUrlCount)) {
|
|
4904
|
+
return false;
|
|
4905
|
+
}
|
|
4906
|
+
const existing_format = existing.format;
|
|
4907
|
+
const incoming_format = incoming.format;
|
|
4908
|
+
if (!(existing_format === incoming_format)) {
|
|
4909
|
+
return false;
|
|
4910
|
+
}
|
|
4911
|
+
const existing_status = existing.status;
|
|
4912
|
+
const incoming_status = incoming.status;
|
|
4913
|
+
if (!(existing_status === incoming_status)) {
|
|
4914
|
+
return false;
|
|
4915
|
+
}
|
|
4916
|
+
const existing_url = existing.url;
|
|
4917
|
+
const incoming_url = incoming.url;
|
|
4918
|
+
if (!(existing_url === incoming_url)) {
|
|
4919
|
+
return false;
|
|
4920
|
+
}
|
|
4921
|
+
const existing_previewUrls = existing.previewUrls;
|
|
4922
|
+
const incoming_previewUrls = incoming.previewUrls;
|
|
4923
|
+
const equals_previewUrls_items = equalsArray(existing_previewUrls, incoming_previewUrls, (existing_previewUrls_item, incoming_previewUrls_item) => {
|
|
4924
|
+
if (!(equals$1(existing_previewUrls_item, incoming_previewUrls_item))) {
|
|
4925
|
+
return false;
|
|
4926
|
+
}
|
|
4927
|
+
});
|
|
4928
|
+
if (equals_previewUrls_items === false) {
|
|
4929
|
+
return false;
|
|
4930
|
+
}
|
|
4931
|
+
return true;
|
|
4932
|
+
}
|
|
4933
|
+
const ingest = function FilePreviewRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4934
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4935
|
+
const validateError = validate(input);
|
|
4936
|
+
if (validateError !== null) {
|
|
4937
|
+
throw validateError;
|
|
4938
|
+
}
|
|
4939
|
+
}
|
|
4940
|
+
const key = path.fullPath;
|
|
4941
|
+
const ttlToUse = TTL;
|
|
4942
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "files", VERSION, RepresentationType, equals);
|
|
4943
|
+
return createLink(key);
|
|
4944
|
+
};
|
|
4945
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
4946
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4947
|
+
const rootKey = fullPathFactory();
|
|
4948
|
+
rootKeySet.set(rootKey, {
|
|
4949
|
+
namespace: keyPrefix,
|
|
4950
|
+
representationName: RepresentationType,
|
|
4951
|
+
mergeable: false
|
|
4952
|
+
});
|
|
4953
|
+
}
|
|
4954
|
+
|
|
4955
|
+
function select$1(luvio, params) {
|
|
4956
|
+
return select$2();
|
|
4957
|
+
}
|
|
4958
|
+
function keyBuilder$3(luvio, params) {
|
|
4959
|
+
return keyPrefix + '::FilePreviewRepresentation:(' + 'endPageNumber:' + params.queryParams.endPageNumber + ',' + 'startPageNumber:' + params.queryParams.startPageNumber + ',' + 'versionNumber:' + params.queryParams.versionNumber + ',' + 'communityId:' + params.urlParams.communityId + ',' + 'fileId:' + params.urlParams.fileId + ',' + 'previewFormat:' + params.urlParams.previewFormat + ')';
|
|
4960
|
+
}
|
|
4961
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
4962
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
4963
|
+
}
|
|
4964
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
4965
|
+
const { body } = response;
|
|
4966
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
4967
|
+
luvio.storeIngest(key, ingest, body);
|
|
4968
|
+
const snapshot = luvio.storeLookup({
|
|
4969
|
+
recordId: key,
|
|
4970
|
+
node: select$1(),
|
|
4971
|
+
variables: {},
|
|
4972
|
+
}, snapshotRefresh);
|
|
4973
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4974
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4975
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4976
|
+
}
|
|
4977
|
+
}
|
|
4978
|
+
deepFreeze(snapshot.data);
|
|
4979
|
+
return snapshot;
|
|
4980
|
+
}
|
|
4981
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
4982
|
+
const key = keyBuilder$3(luvio, params);
|
|
4983
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4984
|
+
const storeMetadataParams = {
|
|
4985
|
+
ttl: TTL,
|
|
4986
|
+
namespace: keyPrefix,
|
|
4987
|
+
version: VERSION,
|
|
4988
|
+
representationName: RepresentationType
|
|
4766
4989
|
};
|
|
4990
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4991
|
+
return errorSnapshot;
|
|
4992
|
+
}
|
|
4993
|
+
function createResourceRequest$1(config) {
|
|
4994
|
+
const headers = {};
|
|
4995
|
+
return {
|
|
4996
|
+
baseUri: '/services/data/v63.0',
|
|
4997
|
+
basePath: '/connect/communities/' + config.urlParams.communityId + '/files/' + config.urlParams.fileId + '/previews/' + config.urlParams.previewFormat + '',
|
|
4998
|
+
method: 'get',
|
|
4999
|
+
body: null,
|
|
5000
|
+
urlParams: config.urlParams,
|
|
5001
|
+
queryParams: config.queryParams,
|
|
5002
|
+
headers,
|
|
5003
|
+
priority: 'normal',
|
|
5004
|
+
};
|
|
5005
|
+
}
|
|
5006
|
+
|
|
5007
|
+
const adapterName$1 = 'getFilePreviewCommunity';
|
|
5008
|
+
const getFilePreviewCommunity_ConfigPropertyMetadata = [
|
|
5009
|
+
generateParamConfigMetadata('communityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5010
|
+
generateParamConfigMetadata('fileId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5011
|
+
generateParamConfigMetadata('previewFormat', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5012
|
+
generateParamConfigMetadata('endPageNumber', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5013
|
+
generateParamConfigMetadata('startPageNumber', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5014
|
+
generateParamConfigMetadata('versionNumber', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5015
|
+
];
|
|
5016
|
+
const getFilePreviewCommunity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getFilePreviewCommunity_ConfigPropertyMetadata);
|
|
5017
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getFilePreviewCommunity_ConfigPropertyMetadata);
|
|
5018
|
+
function keyBuilder$2(luvio, config) {
|
|
5019
|
+
const resourceParams = createResourceParams$1(config);
|
|
5020
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
5021
|
+
}
|
|
5022
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
5023
|
+
const config = {};
|
|
5024
|
+
typeCheckConfig$4(untrustedConfig, config, getFilePreviewCommunity_ConfigPropertyMetadata);
|
|
5025
|
+
return config;
|
|
5026
|
+
}
|
|
5027
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
5028
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5029
|
+
return null;
|
|
5030
|
+
}
|
|
5031
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5032
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5033
|
+
}
|
|
5034
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
5035
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5036
|
+
return null;
|
|
5037
|
+
}
|
|
5038
|
+
return config;
|
|
5039
|
+
}
|
|
5040
|
+
function adapterFragment$1(luvio, config) {
|
|
5041
|
+
createResourceParams$1(config);
|
|
5042
|
+
return select$1();
|
|
5043
|
+
}
|
|
5044
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
5045
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
5046
|
+
config,
|
|
5047
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5048
|
+
});
|
|
5049
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5050
|
+
}
|
|
5051
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
5052
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
5053
|
+
config,
|
|
5054
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5055
|
+
});
|
|
5056
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5057
|
+
}
|
|
5058
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
5059
|
+
const resourceParams = createResourceParams$1(config);
|
|
5060
|
+
const request = createResourceRequest$1(resourceParams);
|
|
5061
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5062
|
+
.then((response) => {
|
|
5063
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
5064
|
+
const cache = new StoreKeyMap();
|
|
5065
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
5066
|
+
return cache;
|
|
5067
|
+
});
|
|
5068
|
+
}, (response) => {
|
|
5069
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
5070
|
+
});
|
|
5071
|
+
}
|
|
5072
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
5073
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
5074
|
+
}
|
|
5075
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
5076
|
+
const { luvio, config } = context;
|
|
5077
|
+
const selector = {
|
|
5078
|
+
recordId: keyBuilder$2(luvio, config),
|
|
5079
|
+
node: adapterFragment$1(luvio, config),
|
|
5080
|
+
variables: {},
|
|
5081
|
+
};
|
|
5082
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5083
|
+
config,
|
|
5084
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
5085
|
+
});
|
|
5086
|
+
return cacheSnapshot;
|
|
5087
|
+
}
|
|
5088
|
+
const getFilePreviewCommunityAdapterFactory = (luvio) => function files__getFilePreviewCommunity(untrustedConfig, requestContext) {
|
|
5089
|
+
const config = validateAdapterConfig$1(untrustedConfig, getFilePreviewCommunity_ConfigPropertyNames);
|
|
5090
|
+
// Invalid or incomplete config
|
|
5091
|
+
if (config === null) {
|
|
5092
|
+
return null;
|
|
5093
|
+
}
|
|
5094
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5095
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
5096
|
+
};
|
|
5097
|
+
|
|
5098
|
+
function select(luvio, params) {
|
|
5099
|
+
return select$2();
|
|
5100
|
+
}
|
|
5101
|
+
function keyBuilder$1(luvio, params) {
|
|
5102
|
+
return keyPrefix + '::FilePreviewRepresentation:(' + 'endPageNumber:' + params.queryParams.endPageNumber + ',' + 'startPageNumber:' + params.queryParams.startPageNumber + ',' + 'versionNumber:' + params.queryParams.versionNumber + ',' + 'fileId:' + params.urlParams.fileId + ',' + 'previewFormat:' + params.urlParams.previewFormat + ')';
|
|
5103
|
+
}
|
|
5104
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
5105
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
5106
|
+
}
|
|
5107
|
+
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
5108
|
+
const { body } = response;
|
|
5109
|
+
const key = keyBuilder$1(luvio, resourceParams);
|
|
5110
|
+
luvio.storeIngest(key, ingest, body);
|
|
5111
|
+
const snapshot = luvio.storeLookup({
|
|
5112
|
+
recordId: key,
|
|
5113
|
+
node: select(),
|
|
5114
|
+
variables: {},
|
|
5115
|
+
}, snapshotRefresh);
|
|
5116
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5117
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5118
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5119
|
+
}
|
|
5120
|
+
}
|
|
5121
|
+
deepFreeze(snapshot.data);
|
|
5122
|
+
return snapshot;
|
|
5123
|
+
}
|
|
5124
|
+
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
5125
|
+
const key = keyBuilder$1(luvio, params);
|
|
5126
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5127
|
+
const storeMetadataParams = {
|
|
5128
|
+
ttl: TTL,
|
|
5129
|
+
namespace: keyPrefix,
|
|
5130
|
+
version: VERSION,
|
|
5131
|
+
representationName: RepresentationType
|
|
5132
|
+
};
|
|
5133
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5134
|
+
return errorSnapshot;
|
|
5135
|
+
}
|
|
5136
|
+
function createResourceRequest(config) {
|
|
5137
|
+
const headers = {};
|
|
5138
|
+
return {
|
|
5139
|
+
baseUri: '/services/data/v63.0',
|
|
5140
|
+
basePath: '/connect/files/' + config.urlParams.fileId + '/previews/' + config.urlParams.previewFormat + '',
|
|
5141
|
+
method: 'get',
|
|
5142
|
+
body: null,
|
|
5143
|
+
urlParams: config.urlParams,
|
|
5144
|
+
queryParams: config.queryParams,
|
|
5145
|
+
headers,
|
|
5146
|
+
priority: 'normal',
|
|
5147
|
+
};
|
|
5148
|
+
}
|
|
5149
|
+
|
|
5150
|
+
const adapterName = 'getFilePreview';
|
|
5151
|
+
const getFilePreview_ConfigPropertyMetadata = [
|
|
5152
|
+
generateParamConfigMetadata('fileId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5153
|
+
generateParamConfigMetadata('previewFormat', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5154
|
+
generateParamConfigMetadata('endPageNumber', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5155
|
+
generateParamConfigMetadata('startPageNumber', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5156
|
+
generateParamConfigMetadata('versionNumber', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
5157
|
+
];
|
|
5158
|
+
const getFilePreview_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getFilePreview_ConfigPropertyMetadata);
|
|
5159
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$4(getFilePreview_ConfigPropertyMetadata);
|
|
5160
|
+
function keyBuilder(luvio, config) {
|
|
5161
|
+
const resourceParams = createResourceParams(config);
|
|
5162
|
+
return keyBuilder$1(luvio, resourceParams);
|
|
5163
|
+
}
|
|
5164
|
+
function typeCheckConfig(untrustedConfig) {
|
|
5165
|
+
const config = {};
|
|
5166
|
+
typeCheckConfig$4(untrustedConfig, config, getFilePreview_ConfigPropertyMetadata);
|
|
5167
|
+
return config;
|
|
5168
|
+
}
|
|
5169
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
5170
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5171
|
+
return null;
|
|
5172
|
+
}
|
|
5173
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5174
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5175
|
+
}
|
|
5176
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
5177
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5178
|
+
return null;
|
|
5179
|
+
}
|
|
5180
|
+
return config;
|
|
5181
|
+
}
|
|
5182
|
+
function adapterFragment(luvio, config) {
|
|
5183
|
+
createResourceParams(config);
|
|
5184
|
+
return select();
|
|
5185
|
+
}
|
|
5186
|
+
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
5187
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response, {
|
|
5188
|
+
config,
|
|
5189
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
5190
|
+
});
|
|
5191
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5192
|
+
}
|
|
5193
|
+
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
5194
|
+
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
5195
|
+
config,
|
|
5196
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
5197
|
+
});
|
|
5198
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5199
|
+
}
|
|
5200
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
5201
|
+
const resourceParams = createResourceParams(config);
|
|
5202
|
+
const request = createResourceRequest(resourceParams);
|
|
5203
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5204
|
+
.then((response) => {
|
|
5205
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
5206
|
+
const cache = new StoreKeyMap();
|
|
5207
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
5208
|
+
return cache;
|
|
5209
|
+
});
|
|
5210
|
+
}, (response) => {
|
|
5211
|
+
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
5212
|
+
});
|
|
5213
|
+
}
|
|
5214
|
+
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
5215
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
5216
|
+
}
|
|
5217
|
+
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
5218
|
+
const { luvio, config } = context;
|
|
5219
|
+
const selector = {
|
|
5220
|
+
recordId: keyBuilder(luvio, config),
|
|
5221
|
+
node: adapterFragment(luvio, config),
|
|
5222
|
+
variables: {},
|
|
5223
|
+
};
|
|
5224
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5225
|
+
config,
|
|
5226
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
5227
|
+
});
|
|
5228
|
+
return cacheSnapshot;
|
|
5229
|
+
}
|
|
5230
|
+
const getFilePreviewAdapterFactory = (luvio) => function files__getFilePreview(untrustedConfig, requestContext) {
|
|
5231
|
+
const config = validateAdapterConfig(untrustedConfig, getFilePreview_ConfigPropertyNames);
|
|
5232
|
+
// Invalid or incomplete config
|
|
5233
|
+
if (config === null) {
|
|
5234
|
+
return null;
|
|
5235
|
+
}
|
|
5236
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5237
|
+
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
4767
5238
|
};
|
|
4768
5239
|
|
|
4769
|
-
export { createContentDocFromContentBodyAdapterFactory, getFileUploadConfigAdapterFactory };
|
|
5240
|
+
export { createContentDocFromContentBodyAdapterFactory, getFilePreviewAdapterFactory, getFilePreviewCommunityAdapterFactory, getFileUploadConfigAdapterFactory };
|