@salesforce/lds-adapters-platform-sharing 1.283.0 → 1.285.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-sharing.js +537 -212
- package/dist/es/es2018/types/src/generated/adapters/getUserPermissions.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getSharingUserPermissions.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/PublicGroupRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/QueueRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/UserPermissionInfoRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/UserPermissionsInfoListRepresentation.d.ts +33 -0
- package/package.json +3 -3
- package/sfdc/index.js +557 -220
- package/src/raml/api.raml +50 -0
- package/src/raml/luvio.raml +14 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -101,8 +101,8 @@ function createLink(ref) {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
const VERSION$
|
|
105
|
-
function validate$
|
|
104
|
+
const VERSION$c = "8f1b312aa04c8869624b95b9e3f3cd4e";
|
|
105
|
+
function validate$c(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
106
106
|
const v_error = (() => {
|
|
107
107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -130,10 +130,10 @@ function validate$a(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
|
130
130
|
})();
|
|
131
131
|
return v_error === undefined ? null : v_error;
|
|
132
132
|
}
|
|
133
|
-
const select$
|
|
133
|
+
const select$g = function SobjectOutputSharingRepresentationSelect() {
|
|
134
134
|
return {
|
|
135
135
|
kind: 'Fragment',
|
|
136
|
-
version: VERSION$
|
|
136
|
+
version: VERSION$c,
|
|
137
137
|
private: [],
|
|
138
138
|
selections: [
|
|
139
139
|
{
|
|
@@ -155,7 +155,7 @@ const select$d = function SobjectOutputSharingRepresentationSelect() {
|
|
|
155
155
|
]
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
function equals$
|
|
158
|
+
function equals$c(existing, incoming) {
|
|
159
159
|
const existing_apiName = existing.apiName;
|
|
160
160
|
const incoming_apiName = incoming.apiName;
|
|
161
161
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -179,9 +179,9 @@ function equals$a(existing, incoming) {
|
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
const TTL$
|
|
183
|
-
const VERSION$
|
|
184
|
-
function validate$
|
|
182
|
+
const TTL$3 = 900000;
|
|
183
|
+
const VERSION$b = "891459dfe3e992adddad156c898d3aef";
|
|
184
|
+
function validate$b(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
185
185
|
const v_error = (() => {
|
|
186
186
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
187
187
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -199,7 +199,7 @@ function validate$9(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
199
199
|
for (let i = 0; i < obj_sobjects.length; i++) {
|
|
200
200
|
const obj_sobjects_item = obj_sobjects[i];
|
|
201
201
|
const path_sobjects_item = path_sobjects + '[' + i + ']';
|
|
202
|
-
const referencepath_sobjects_itemValidationError = validate$
|
|
202
|
+
const referencepath_sobjects_itemValidationError = validate$c(obj_sobjects_item, path_sobjects_item);
|
|
203
203
|
if (referencepath_sobjects_itemValidationError !== null) {
|
|
204
204
|
let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
|
|
205
205
|
message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -209,15 +209,15 @@ function validate$9(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
209
209
|
})();
|
|
210
210
|
return v_error === undefined ? null : v_error;
|
|
211
211
|
}
|
|
212
|
-
const RepresentationType$
|
|
213
|
-
function normalize$
|
|
212
|
+
const RepresentationType$3 = 'SobjectsOutputSharingRepresentation';
|
|
213
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
214
214
|
return input;
|
|
215
215
|
}
|
|
216
|
-
const select$
|
|
217
|
-
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$
|
|
216
|
+
const select$f = function SobjectsOutputSharingRepresentationSelect() {
|
|
217
|
+
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$g();
|
|
218
218
|
return {
|
|
219
219
|
kind: 'Fragment',
|
|
220
|
-
version: VERSION$
|
|
220
|
+
version: VERSION$b,
|
|
221
221
|
private: [],
|
|
222
222
|
selections: [
|
|
223
223
|
{
|
|
@@ -233,7 +233,7 @@ const select$c = function SobjectsOutputSharingRepresentationSelect() {
|
|
|
233
233
|
]
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
|
-
function equals$
|
|
236
|
+
function equals$b(existing, incoming) {
|
|
237
237
|
const existing_size = existing.size;
|
|
238
238
|
const incoming_size = incoming.size;
|
|
239
239
|
if (!(existing_size === incoming_size)) {
|
|
@@ -242,7 +242,7 @@ function equals$9(existing, incoming) {
|
|
|
242
242
|
const existing_sobjects = existing.sobjects;
|
|
243
243
|
const incoming_sobjects = incoming.sobjects;
|
|
244
244
|
const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
|
|
245
|
-
if (!(equals$
|
|
245
|
+
if (!(equals$c(existing_sobjects_item, incoming_sobjects_item))) {
|
|
246
246
|
return false;
|
|
247
247
|
}
|
|
248
248
|
});
|
|
@@ -251,44 +251,44 @@ function equals$9(existing, incoming) {
|
|
|
251
251
|
}
|
|
252
252
|
return true;
|
|
253
253
|
}
|
|
254
|
-
const ingest$
|
|
254
|
+
const ingest$3 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
255
255
|
if (process.env.NODE_ENV !== 'production') {
|
|
256
|
-
const validateError = validate$
|
|
256
|
+
const validateError = validate$b(input);
|
|
257
257
|
if (validateError !== null) {
|
|
258
258
|
throw validateError;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
const key = path.fullPath;
|
|
262
|
-
const ttlToUse = TTL$
|
|
263
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
262
|
+
const ttlToUse = TTL$3;
|
|
263
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$b, RepresentationType$3, equals$b);
|
|
264
264
|
return createLink(key);
|
|
265
265
|
};
|
|
266
|
-
function getTypeCacheKeys$
|
|
266
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
267
267
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
268
268
|
const rootKey = fullPathFactory();
|
|
269
269
|
rootKeySet.set(rootKey, {
|
|
270
270
|
namespace: keyPrefix,
|
|
271
|
-
representationName: RepresentationType$
|
|
271
|
+
representationName: RepresentationType$3,
|
|
272
272
|
mergeable: false
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
function select$
|
|
277
|
-
return select$
|
|
276
|
+
function select$e(luvio, params) {
|
|
277
|
+
return select$f();
|
|
278
278
|
}
|
|
279
|
-
function keyBuilder$
|
|
279
|
+
function keyBuilder$7(luvio, params) {
|
|
280
280
|
return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
|
|
281
281
|
}
|
|
282
|
-
function getResponseCacheKeys$
|
|
283
|
-
getTypeCacheKeys$
|
|
282
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
283
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
284
284
|
}
|
|
285
|
-
function ingestSuccess$
|
|
285
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
286
286
|
const { body } = response;
|
|
287
|
-
const key = keyBuilder$
|
|
288
|
-
luvio.storeIngest(key, ingest$
|
|
287
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
288
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
289
289
|
const snapshot = luvio.storeLookup({
|
|
290
290
|
recordId: key,
|
|
291
|
-
node: select$
|
|
291
|
+
node: select$e(),
|
|
292
292
|
variables: {},
|
|
293
293
|
}, snapshotRefresh);
|
|
294
294
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -299,19 +299,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
299
299
|
deepFreeze(snapshot.data);
|
|
300
300
|
return snapshot;
|
|
301
301
|
}
|
|
302
|
-
function ingestError$
|
|
303
|
-
const key = keyBuilder$
|
|
302
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
303
|
+
const key = keyBuilder$7(luvio, params);
|
|
304
304
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
305
305
|
const storeMetadataParams = {
|
|
306
|
-
ttl: TTL$
|
|
306
|
+
ttl: TTL$3,
|
|
307
307
|
namespace: keyPrefix,
|
|
308
|
-
version: VERSION$
|
|
309
|
-
representationName: RepresentationType$
|
|
308
|
+
version: VERSION$b,
|
|
309
|
+
representationName: RepresentationType$3
|
|
310
310
|
};
|
|
311
311
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
312
312
|
return errorSnapshot;
|
|
313
313
|
}
|
|
314
|
-
function createResourceRequest$
|
|
314
|
+
function createResourceRequest$3(config) {
|
|
315
315
|
const headers = {};
|
|
316
316
|
return {
|
|
317
317
|
baseUri: '/services/data/v61.0',
|
|
@@ -325,96 +325,96 @@ function createResourceRequest$2(config) {
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
const adapterName$
|
|
328
|
+
const adapterName$3 = 'getAllSobjects';
|
|
329
329
|
const getAllSobjects_ConfigPropertyMetadata = [
|
|
330
330
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
331
331
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
332
332
|
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
333
333
|
];
|
|
334
|
-
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
335
|
-
const createResourceParams$
|
|
336
|
-
function keyBuilder$
|
|
337
|
-
const resourceParams = createResourceParams$
|
|
338
|
-
return keyBuilder$
|
|
334
|
+
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getAllSobjects_ConfigPropertyMetadata);
|
|
335
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getAllSobjects_ConfigPropertyMetadata);
|
|
336
|
+
function keyBuilder$6(luvio, config) {
|
|
337
|
+
const resourceParams = createResourceParams$3(config);
|
|
338
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
339
339
|
}
|
|
340
|
-
function typeCheckConfig$
|
|
340
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
341
341
|
const config = {};
|
|
342
|
-
typeCheckConfig$
|
|
342
|
+
typeCheckConfig$4(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
|
|
343
343
|
return config;
|
|
344
344
|
}
|
|
345
|
-
function validateAdapterConfig$
|
|
345
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
346
346
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
347
347
|
return null;
|
|
348
348
|
}
|
|
349
349
|
if (process.env.NODE_ENV !== 'production') {
|
|
350
350
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
351
351
|
}
|
|
352
|
-
const config = typeCheckConfig$
|
|
352
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
353
353
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
354
354
|
return null;
|
|
355
355
|
}
|
|
356
356
|
return config;
|
|
357
357
|
}
|
|
358
|
-
function adapterFragment$
|
|
359
|
-
createResourceParams$
|
|
360
|
-
return select$
|
|
358
|
+
function adapterFragment$3(luvio, config) {
|
|
359
|
+
createResourceParams$3(config);
|
|
360
|
+
return select$e();
|
|
361
361
|
}
|
|
362
|
-
function onFetchResponseSuccess$
|
|
363
|
-
const snapshot = ingestSuccess$
|
|
362
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
363
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
364
364
|
config,
|
|
365
|
-
resolve: () => buildNetworkSnapshot$
|
|
365
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
366
366
|
});
|
|
367
367
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
368
368
|
}
|
|
369
|
-
function onFetchResponseError$
|
|
370
|
-
const snapshot = ingestError$
|
|
369
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
370
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
371
371
|
config,
|
|
372
|
-
resolve: () => buildNetworkSnapshot$
|
|
372
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
373
373
|
});
|
|
374
374
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
375
375
|
}
|
|
376
|
-
function buildNetworkSnapshot$
|
|
377
|
-
const resourceParams = createResourceParams$
|
|
378
|
-
const request = createResourceRequest$
|
|
376
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
377
|
+
const resourceParams = createResourceParams$3(config);
|
|
378
|
+
const request = createResourceRequest$3(resourceParams);
|
|
379
379
|
return luvio.dispatchResourceRequest(request, options)
|
|
380
380
|
.then((response) => {
|
|
381
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
381
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
382
382
|
const cache = new StoreKeyMap();
|
|
383
|
-
getResponseCacheKeys$
|
|
383
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
384
384
|
return cache;
|
|
385
385
|
});
|
|
386
386
|
}, (response) => {
|
|
387
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
387
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
|
-
function buildNetworkSnapshotCachePolicy$
|
|
391
|
-
return buildNetworkSnapshotCachePolicy$
|
|
390
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
391
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
392
392
|
}
|
|
393
|
-
function buildCachedSnapshotCachePolicy$
|
|
393
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
394
394
|
const { luvio, config } = context;
|
|
395
395
|
const selector = {
|
|
396
|
-
recordId: keyBuilder$
|
|
397
|
-
node: adapterFragment$
|
|
396
|
+
recordId: keyBuilder$6(luvio, config),
|
|
397
|
+
node: adapterFragment$3(luvio, config),
|
|
398
398
|
variables: {},
|
|
399
399
|
};
|
|
400
400
|
const cacheSnapshot = storeLookup(selector, {
|
|
401
401
|
config,
|
|
402
|
-
resolve: () => buildNetworkSnapshot$
|
|
402
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
403
403
|
});
|
|
404
404
|
return cacheSnapshot;
|
|
405
405
|
}
|
|
406
406
|
const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
|
|
407
|
-
const config = validateAdapterConfig$
|
|
407
|
+
const config = validateAdapterConfig$3(untrustedConfig, getAllSobjects_ConfigPropertyNames);
|
|
408
408
|
// Invalid or incomplete config
|
|
409
409
|
if (config === null) {
|
|
410
410
|
return null;
|
|
411
411
|
}
|
|
412
412
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
413
|
-
buildCachedSnapshotCachePolicy$
|
|
413
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
-
const VERSION$
|
|
417
|
-
function validate$
|
|
416
|
+
const VERSION$a = "7d75e40a9fde9f60ae02b6dde36257ce";
|
|
417
|
+
function validate$a(obj, path = 'PublicGroupRepresentation') {
|
|
418
418
|
const v_error = (() => {
|
|
419
419
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
420
420
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -424,6 +424,11 @@ function validate$8(obj, path = 'PublicGroupRepresentation') {
|
|
|
424
424
|
if (typeof obj_developerName !== 'string') {
|
|
425
425
|
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
426
426
|
}
|
|
427
|
+
const obj_groupId = obj.groupId;
|
|
428
|
+
const path_groupId = path + '.groupId';
|
|
429
|
+
if (typeof obj_groupId !== 'string') {
|
|
430
|
+
return new TypeError('Expected "string" but received "' + typeof obj_groupId + '" (at "' + path_groupId + '")');
|
|
431
|
+
}
|
|
427
432
|
const obj_includeBosses = obj.includeBosses;
|
|
428
433
|
const path_includeBosses = path + '.includeBosses';
|
|
429
434
|
if (typeof obj_includeBosses !== 'boolean') {
|
|
@@ -437,16 +442,20 @@ function validate$8(obj, path = 'PublicGroupRepresentation') {
|
|
|
437
442
|
})();
|
|
438
443
|
return v_error === undefined ? null : v_error;
|
|
439
444
|
}
|
|
440
|
-
const select$
|
|
445
|
+
const select$d = function PublicGroupRepresentationSelect() {
|
|
441
446
|
return {
|
|
442
447
|
kind: 'Fragment',
|
|
443
|
-
version: VERSION$
|
|
448
|
+
version: VERSION$a,
|
|
444
449
|
private: [],
|
|
445
450
|
selections: [
|
|
446
451
|
{
|
|
447
452
|
name: 'developerName',
|
|
448
453
|
kind: 'Scalar'
|
|
449
454
|
},
|
|
455
|
+
{
|
|
456
|
+
name: 'groupId',
|
|
457
|
+
kind: 'Scalar'
|
|
458
|
+
},
|
|
450
459
|
{
|
|
451
460
|
name: 'includeBosses',
|
|
452
461
|
kind: 'Scalar'
|
|
@@ -458,7 +467,7 @@ const select$a = function PublicGroupRepresentationSelect() {
|
|
|
458
467
|
]
|
|
459
468
|
};
|
|
460
469
|
};
|
|
461
|
-
function equals$
|
|
470
|
+
function equals$a(existing, incoming) {
|
|
462
471
|
const existing_includeBosses = existing.includeBosses;
|
|
463
472
|
const incoming_includeBosses = incoming.includeBosses;
|
|
464
473
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -469,6 +478,11 @@ function equals$8(existing, incoming) {
|
|
|
469
478
|
if (!(existing_developerName === incoming_developerName)) {
|
|
470
479
|
return false;
|
|
471
480
|
}
|
|
481
|
+
const existing_groupId = existing.groupId;
|
|
482
|
+
const incoming_groupId = incoming.groupId;
|
|
483
|
+
if (!(existing_groupId === incoming_groupId)) {
|
|
484
|
+
return false;
|
|
485
|
+
}
|
|
472
486
|
const existing_name = existing.name;
|
|
473
487
|
const incoming_name = incoming.name;
|
|
474
488
|
if (!(existing_name === incoming_name)) {
|
|
@@ -477,8 +491,8 @@ function equals$8(existing, incoming) {
|
|
|
477
491
|
return true;
|
|
478
492
|
}
|
|
479
493
|
|
|
480
|
-
const VERSION$
|
|
481
|
-
function validate$
|
|
494
|
+
const VERSION$9 = "89ae3fce0ad09282e80bd77a9c483003";
|
|
495
|
+
function validate$9(obj, path = 'QueueRepresentation') {
|
|
482
496
|
const v_error = (() => {
|
|
483
497
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
484
498
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -493,13 +507,18 @@ function validate$7(obj, path = 'QueueRepresentation') {
|
|
|
493
507
|
if (typeof obj_name !== 'string') {
|
|
494
508
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
495
509
|
}
|
|
510
|
+
const obj_queueId = obj.queueId;
|
|
511
|
+
const path_queueId = path + '.queueId';
|
|
512
|
+
if (typeof obj_queueId !== 'string') {
|
|
513
|
+
return new TypeError('Expected "string" but received "' + typeof obj_queueId + '" (at "' + path_queueId + '")');
|
|
514
|
+
}
|
|
496
515
|
})();
|
|
497
516
|
return v_error === undefined ? null : v_error;
|
|
498
517
|
}
|
|
499
|
-
const select$
|
|
518
|
+
const select$c = function QueueRepresentationSelect() {
|
|
500
519
|
return {
|
|
501
520
|
kind: 'Fragment',
|
|
502
|
-
version: VERSION$
|
|
521
|
+
version: VERSION$9,
|
|
503
522
|
private: [],
|
|
504
523
|
selections: [
|
|
505
524
|
{
|
|
@@ -509,11 +528,15 @@ const select$9 = function QueueRepresentationSelect() {
|
|
|
509
528
|
{
|
|
510
529
|
name: 'name',
|
|
511
530
|
kind: 'Scalar'
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
name: 'queueId',
|
|
534
|
+
kind: 'Scalar'
|
|
512
535
|
}
|
|
513
536
|
]
|
|
514
537
|
};
|
|
515
538
|
};
|
|
516
|
-
function equals$
|
|
539
|
+
function equals$9(existing, incoming) {
|
|
517
540
|
const existing_developerName = existing.developerName;
|
|
518
541
|
const incoming_developerName = incoming.developerName;
|
|
519
542
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -524,12 +547,17 @@ function equals$7(existing, incoming) {
|
|
|
524
547
|
if (!(existing_name === incoming_name)) {
|
|
525
548
|
return false;
|
|
526
549
|
}
|
|
550
|
+
const existing_queueId = existing.queueId;
|
|
551
|
+
const incoming_queueId = incoming.queueId;
|
|
552
|
+
if (!(existing_queueId === incoming_queueId)) {
|
|
553
|
+
return false;
|
|
554
|
+
}
|
|
527
555
|
return true;
|
|
528
556
|
}
|
|
529
557
|
|
|
530
|
-
const TTL$
|
|
531
|
-
const VERSION$
|
|
532
|
-
function validate$
|
|
558
|
+
const TTL$2 = 300;
|
|
559
|
+
const VERSION$8 = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
560
|
+
function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
533
561
|
const v_error = (() => {
|
|
534
562
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
535
563
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -542,7 +570,7 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
|
|
|
542
570
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
543
571
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
544
572
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
545
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
573
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$a(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
546
574
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
547
575
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
548
576
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -557,7 +585,7 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
|
|
|
557
585
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
558
586
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
559
587
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
560
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
588
|
+
const referencepath_queueRepresentations_itemValidationError = validate$9(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
561
589
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
562
590
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
563
591
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -567,16 +595,16 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
|
|
|
567
595
|
})();
|
|
568
596
|
return v_error === undefined ? null : v_error;
|
|
569
597
|
}
|
|
570
|
-
const RepresentationType$
|
|
571
|
-
function normalize$
|
|
598
|
+
const RepresentationType$2 = 'GroupCollectionRepresentation';
|
|
599
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
572
600
|
return input;
|
|
573
601
|
}
|
|
574
|
-
const select$
|
|
575
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
576
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
602
|
+
const select$b = function GroupCollectionRepresentationSelect() {
|
|
603
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$d();
|
|
604
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$c();
|
|
577
605
|
return {
|
|
578
606
|
kind: 'Fragment',
|
|
579
|
-
version: VERSION$
|
|
607
|
+
version: VERSION$8,
|
|
580
608
|
private: [],
|
|
581
609
|
selections: [
|
|
582
610
|
{
|
|
@@ -594,11 +622,11 @@ const select$8 = function GroupCollectionRepresentationSelect() {
|
|
|
594
622
|
]
|
|
595
623
|
};
|
|
596
624
|
};
|
|
597
|
-
function equals$
|
|
625
|
+
function equals$8(existing, incoming) {
|
|
598
626
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
599
627
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
600
628
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
601
|
-
if (!(equals$
|
|
629
|
+
if (!(equals$a(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
602
630
|
return false;
|
|
603
631
|
}
|
|
604
632
|
});
|
|
@@ -608,7 +636,7 @@ function equals$6(existing, incoming) {
|
|
|
608
636
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
609
637
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
610
638
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
611
|
-
if (!(equals$
|
|
639
|
+
if (!(equals$9(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
612
640
|
return false;
|
|
613
641
|
}
|
|
614
642
|
});
|
|
@@ -617,44 +645,44 @@ function equals$6(existing, incoming) {
|
|
|
617
645
|
}
|
|
618
646
|
return true;
|
|
619
647
|
}
|
|
620
|
-
const ingest$
|
|
648
|
+
const ingest$2 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
621
649
|
if (process.env.NODE_ENV !== 'production') {
|
|
622
|
-
const validateError = validate$
|
|
650
|
+
const validateError = validate$8(input);
|
|
623
651
|
if (validateError !== null) {
|
|
624
652
|
throw validateError;
|
|
625
653
|
}
|
|
626
654
|
}
|
|
627
655
|
const key = path.fullPath;
|
|
628
|
-
const ttlToUse = TTL$
|
|
629
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
656
|
+
const ttlToUse = TTL$2;
|
|
657
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$8, RepresentationType$2, equals$8);
|
|
630
658
|
return createLink(key);
|
|
631
659
|
};
|
|
632
|
-
function getTypeCacheKeys$
|
|
660
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
633
661
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
634
662
|
const rootKey = fullPathFactory();
|
|
635
663
|
rootKeySet.set(rootKey, {
|
|
636
664
|
namespace: keyPrefix,
|
|
637
|
-
representationName: RepresentationType$
|
|
665
|
+
representationName: RepresentationType$2,
|
|
638
666
|
mergeable: false
|
|
639
667
|
});
|
|
640
668
|
}
|
|
641
669
|
|
|
642
|
-
function select$
|
|
643
|
-
return select$
|
|
670
|
+
function select$a(luvio, params) {
|
|
671
|
+
return select$b();
|
|
644
672
|
}
|
|
645
|
-
function keyBuilder$
|
|
673
|
+
function keyBuilder$5(luvio, params) {
|
|
646
674
|
return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
|
|
647
675
|
}
|
|
648
|
-
function getResponseCacheKeys$
|
|
649
|
-
getTypeCacheKeys$
|
|
676
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
677
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
650
678
|
}
|
|
651
|
-
function ingestSuccess$
|
|
679
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
652
680
|
const { body } = response;
|
|
653
|
-
const key = keyBuilder$
|
|
654
|
-
luvio.storeIngest(key, ingest$
|
|
681
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
682
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
655
683
|
const snapshot = luvio.storeLookup({
|
|
656
684
|
recordId: key,
|
|
657
|
-
node: select$
|
|
685
|
+
node: select$a(),
|
|
658
686
|
variables: {},
|
|
659
687
|
}, snapshotRefresh);
|
|
660
688
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -665,19 +693,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
665
693
|
deepFreeze(snapshot.data);
|
|
666
694
|
return snapshot;
|
|
667
695
|
}
|
|
668
|
-
function ingestError$
|
|
669
|
-
const key = keyBuilder$
|
|
696
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
697
|
+
const key = keyBuilder$5(luvio, params);
|
|
670
698
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
671
699
|
const storeMetadataParams = {
|
|
672
|
-
ttl: TTL$
|
|
700
|
+
ttl: TTL$2,
|
|
673
701
|
namespace: keyPrefix,
|
|
674
|
-
version: VERSION$
|
|
675
|
-
representationName: RepresentationType$
|
|
702
|
+
version: VERSION$8,
|
|
703
|
+
representationName: RepresentationType$2
|
|
676
704
|
};
|
|
677
705
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
678
706
|
return errorSnapshot;
|
|
679
707
|
}
|
|
680
|
-
function createResourceRequest$
|
|
708
|
+
function createResourceRequest$2(config) {
|
|
681
709
|
const headers = {};
|
|
682
710
|
return {
|
|
683
711
|
baseUri: '/services/data/v61.0',
|
|
@@ -691,7 +719,7 @@ function createResourceRequest$1(config) {
|
|
|
691
719
|
};
|
|
692
720
|
}
|
|
693
721
|
|
|
694
|
-
const adapterName$
|
|
722
|
+
const adapterName$2 = 'getGroupsForUser';
|
|
695
723
|
const getGroupsForUser_ConfigPropertyMetadata = [
|
|
696
724
|
generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
697
725
|
generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
@@ -700,90 +728,90 @@ const getGroupsForUser_ConfigPropertyMetadata = [
|
|
|
700
728
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
701
729
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
702
730
|
];
|
|
703
|
-
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
704
|
-
const createResourceParams$
|
|
705
|
-
function keyBuilder$
|
|
706
|
-
const resourceParams = createResourceParams$
|
|
707
|
-
return keyBuilder$
|
|
731
|
+
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getGroupsForUser_ConfigPropertyMetadata);
|
|
732
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getGroupsForUser_ConfigPropertyMetadata);
|
|
733
|
+
function keyBuilder$4(luvio, config) {
|
|
734
|
+
const resourceParams = createResourceParams$2(config);
|
|
735
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
708
736
|
}
|
|
709
|
-
function typeCheckConfig$
|
|
737
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
710
738
|
const config = {};
|
|
711
|
-
typeCheckConfig$
|
|
739
|
+
typeCheckConfig$4(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
|
|
712
740
|
return config;
|
|
713
741
|
}
|
|
714
|
-
function validateAdapterConfig$
|
|
742
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
715
743
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
716
744
|
return null;
|
|
717
745
|
}
|
|
718
746
|
if (process.env.NODE_ENV !== 'production') {
|
|
719
747
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
720
748
|
}
|
|
721
|
-
const config = typeCheckConfig$
|
|
749
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
722
750
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
723
751
|
return null;
|
|
724
752
|
}
|
|
725
753
|
return config;
|
|
726
754
|
}
|
|
727
|
-
function adapterFragment$
|
|
728
|
-
createResourceParams$
|
|
729
|
-
return select$
|
|
755
|
+
function adapterFragment$2(luvio, config) {
|
|
756
|
+
createResourceParams$2(config);
|
|
757
|
+
return select$a();
|
|
730
758
|
}
|
|
731
|
-
function onFetchResponseSuccess$
|
|
732
|
-
const snapshot = ingestSuccess$
|
|
759
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
760
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
733
761
|
config,
|
|
734
|
-
resolve: () => buildNetworkSnapshot$
|
|
762
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
735
763
|
});
|
|
736
764
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
737
765
|
}
|
|
738
|
-
function onFetchResponseError$
|
|
739
|
-
const snapshot = ingestError$
|
|
766
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
767
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
740
768
|
config,
|
|
741
|
-
resolve: () => buildNetworkSnapshot$
|
|
769
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
742
770
|
});
|
|
743
771
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
744
772
|
}
|
|
745
|
-
function buildNetworkSnapshot$
|
|
746
|
-
const resourceParams = createResourceParams$
|
|
747
|
-
const request = createResourceRequest$
|
|
773
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
774
|
+
const resourceParams = createResourceParams$2(config);
|
|
775
|
+
const request = createResourceRequest$2(resourceParams);
|
|
748
776
|
return luvio.dispatchResourceRequest(request, options)
|
|
749
777
|
.then((response) => {
|
|
750
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
778
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
751
779
|
const cache = new StoreKeyMap();
|
|
752
|
-
getResponseCacheKeys$
|
|
780
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
753
781
|
return cache;
|
|
754
782
|
});
|
|
755
783
|
}, (response) => {
|
|
756
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
784
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
757
785
|
});
|
|
758
786
|
}
|
|
759
|
-
function buildNetworkSnapshotCachePolicy$
|
|
760
|
-
return buildNetworkSnapshotCachePolicy$
|
|
787
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
788
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
761
789
|
}
|
|
762
|
-
function buildCachedSnapshotCachePolicy$
|
|
790
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
763
791
|
const { luvio, config } = context;
|
|
764
792
|
const selector = {
|
|
765
|
-
recordId: keyBuilder$
|
|
766
|
-
node: adapterFragment$
|
|
793
|
+
recordId: keyBuilder$4(luvio, config),
|
|
794
|
+
node: adapterFragment$2(luvio, config),
|
|
767
795
|
variables: {},
|
|
768
796
|
};
|
|
769
797
|
const cacheSnapshot = storeLookup(selector, {
|
|
770
798
|
config,
|
|
771
|
-
resolve: () => buildNetworkSnapshot$
|
|
799
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
772
800
|
});
|
|
773
801
|
return cacheSnapshot;
|
|
774
802
|
}
|
|
775
803
|
const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
|
|
776
|
-
const config = validateAdapterConfig$
|
|
804
|
+
const config = validateAdapterConfig$2(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
|
|
777
805
|
// Invalid or incomplete config
|
|
778
806
|
if (config === null) {
|
|
779
807
|
return null;
|
|
780
808
|
}
|
|
781
809
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
782
|
-
buildCachedSnapshotCachePolicy$
|
|
810
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
783
811
|
};
|
|
784
812
|
|
|
785
|
-
const VERSION$
|
|
786
|
-
function validate$
|
|
813
|
+
const VERSION$7 = "11e587d0bd769c0df33d7cce4eb7210d";
|
|
814
|
+
function validate$7(obj, path = 'IncludedGroupsSharingRepresentation') {
|
|
787
815
|
const v_error = (() => {
|
|
788
816
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
789
817
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -816,10 +844,10 @@ function validate$5(obj, path = 'IncludedGroupsSharingRepresentation') {
|
|
|
816
844
|
})();
|
|
817
845
|
return v_error === undefined ? null : v_error;
|
|
818
846
|
}
|
|
819
|
-
const select$
|
|
847
|
+
const select$9 = function IncludedGroupsSharingRepresentationSelect() {
|
|
820
848
|
return {
|
|
821
849
|
kind: 'Fragment',
|
|
822
|
-
version: VERSION$
|
|
850
|
+
version: VERSION$7,
|
|
823
851
|
private: [],
|
|
824
852
|
selections: [
|
|
825
853
|
{
|
|
@@ -845,7 +873,7 @@ const select$6 = function IncludedGroupsSharingRepresentationSelect() {
|
|
|
845
873
|
]
|
|
846
874
|
};
|
|
847
875
|
};
|
|
848
|
-
function equals$
|
|
876
|
+
function equals$7(existing, incoming) {
|
|
849
877
|
const existing_grantAccessHierarchies = existing.grantAccessHierarchies;
|
|
850
878
|
const incoming_grantAccessHierarchies = incoming.grantAccessHierarchies;
|
|
851
879
|
if (!(existing_grantAccessHierarchies === incoming_grantAccessHierarchies)) {
|
|
@@ -874,8 +902,8 @@ function equals$5(existing, incoming) {
|
|
|
874
902
|
return true;
|
|
875
903
|
}
|
|
876
904
|
|
|
877
|
-
const VERSION$
|
|
878
|
-
function validate$
|
|
905
|
+
const VERSION$6 = "06eef993be289c8b20b37b2ae6f4c5ee";
|
|
906
|
+
function validate$6(obj, path = 'ListViewGroupSharingRepresentation') {
|
|
879
907
|
const v_error = (() => {
|
|
880
908
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
881
909
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -893,10 +921,10 @@ function validate$4(obj, path = 'ListViewGroupSharingRepresentation') {
|
|
|
893
921
|
})();
|
|
894
922
|
return v_error === undefined ? null : v_error;
|
|
895
923
|
}
|
|
896
|
-
const select$
|
|
924
|
+
const select$8 = function ListViewGroupSharingRepresentationSelect() {
|
|
897
925
|
return {
|
|
898
926
|
kind: 'Fragment',
|
|
899
|
-
version: VERSION$
|
|
927
|
+
version: VERSION$6,
|
|
900
928
|
private: [],
|
|
901
929
|
selections: [
|
|
902
930
|
{
|
|
@@ -910,7 +938,7 @@ const select$5 = function ListViewGroupSharingRepresentationSelect() {
|
|
|
910
938
|
]
|
|
911
939
|
};
|
|
912
940
|
};
|
|
913
|
-
function equals$
|
|
941
|
+
function equals$6(existing, incoming) {
|
|
914
942
|
const existing_developerName = existing.developerName;
|
|
915
943
|
const incoming_developerName = incoming.developerName;
|
|
916
944
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -924,8 +952,8 @@ function equals$4(existing, incoming) {
|
|
|
924
952
|
return true;
|
|
925
953
|
}
|
|
926
954
|
|
|
927
|
-
const VERSION$
|
|
928
|
-
function validate$
|
|
955
|
+
const VERSION$5 = "a0ed38b40ad9886f3e05a1b65fd2e246";
|
|
956
|
+
function validate$5(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
|
|
929
957
|
const v_error = (() => {
|
|
930
958
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
931
959
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -963,10 +991,10 @@ function validate$3(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentat
|
|
|
963
991
|
})();
|
|
964
992
|
return v_error === undefined ? null : v_error;
|
|
965
993
|
}
|
|
966
|
-
const select$
|
|
994
|
+
const select$7 = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
|
|
967
995
|
return {
|
|
968
996
|
kind: 'Fragment',
|
|
969
|
-
version: VERSION$
|
|
997
|
+
version: VERSION$5,
|
|
970
998
|
private: [],
|
|
971
999
|
selections: [
|
|
972
1000
|
{
|
|
@@ -996,7 +1024,7 @@ const select$4 = function ReportAndDashboardFolderGroupSharingRepresentationSele
|
|
|
996
1024
|
]
|
|
997
1025
|
};
|
|
998
1026
|
};
|
|
999
|
-
function equals$
|
|
1027
|
+
function equals$5(existing, incoming) {
|
|
1000
1028
|
const existing_accessLevel = existing.accessLevel;
|
|
1001
1029
|
const incoming_accessLevel = incoming.accessLevel;
|
|
1002
1030
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -1030,8 +1058,8 @@ function equals$3(existing, incoming) {
|
|
|
1030
1058
|
return true;
|
|
1031
1059
|
}
|
|
1032
1060
|
|
|
1033
|
-
const VERSION$
|
|
1034
|
-
function validate$
|
|
1061
|
+
const VERSION$4 = "1036a20704b51746749bb4be569e39c0";
|
|
1062
|
+
function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
|
|
1035
1063
|
const v_error = (() => {
|
|
1036
1064
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1037
1065
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1059,10 +1087,10 @@ function validate$2(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation'
|
|
|
1059
1087
|
})();
|
|
1060
1088
|
return v_error === undefined ? null : v_error;
|
|
1061
1089
|
}
|
|
1062
|
-
const select$
|
|
1090
|
+
const select$6 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
|
|
1063
1091
|
return {
|
|
1064
1092
|
kind: 'Fragment',
|
|
1065
|
-
version: VERSION$
|
|
1093
|
+
version: VERSION$4,
|
|
1066
1094
|
private: [],
|
|
1067
1095
|
selections: [
|
|
1068
1096
|
{
|
|
@@ -1084,7 +1112,7 @@ const select$3 = function SharingRulesCriteriaGroupSharingRepresentationSelect()
|
|
|
1084
1112
|
]
|
|
1085
1113
|
};
|
|
1086
1114
|
};
|
|
1087
|
-
function equals$
|
|
1115
|
+
function equals$4(existing, incoming) {
|
|
1088
1116
|
const existing_accessLevel = existing.accessLevel;
|
|
1089
1117
|
const incoming_accessLevel = incoming.accessLevel;
|
|
1090
1118
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -1108,8 +1136,8 @@ function equals$2(existing, incoming) {
|
|
|
1108
1136
|
return true;
|
|
1109
1137
|
}
|
|
1110
1138
|
|
|
1111
|
-
const VERSION$
|
|
1112
|
-
function validate$
|
|
1139
|
+
const VERSION$3 = "8f205925d69192f91fd2c71838ed20e7";
|
|
1140
|
+
function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
1113
1141
|
const v_error = (() => {
|
|
1114
1142
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1115
1143
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1137,10 +1165,10 @@ function validate$1(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
|
1137
1165
|
})();
|
|
1138
1166
|
return v_error === undefined ? null : v_error;
|
|
1139
1167
|
}
|
|
1140
|
-
const select$
|
|
1168
|
+
const select$5 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
1141
1169
|
return {
|
|
1142
1170
|
kind: 'Fragment',
|
|
1143
|
-
version: VERSION$
|
|
1171
|
+
version: VERSION$3,
|
|
1144
1172
|
private: [],
|
|
1145
1173
|
selections: [
|
|
1146
1174
|
{
|
|
@@ -1162,7 +1190,7 @@ const select$2 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
|
1162
1190
|
]
|
|
1163
1191
|
};
|
|
1164
1192
|
};
|
|
1165
|
-
function equals$
|
|
1193
|
+
function equals$3(existing, incoming) {
|
|
1166
1194
|
const existing_accessLevel = existing.accessLevel;
|
|
1167
1195
|
const incoming_accessLevel = incoming.accessLevel;
|
|
1168
1196
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -1186,9 +1214,9 @@ function equals$1(existing, incoming) {
|
|
|
1186
1214
|
return true;
|
|
1187
1215
|
}
|
|
1188
1216
|
|
|
1189
|
-
const TTL = 300;
|
|
1190
|
-
const VERSION = "68cd535d9b1bd32d0d42ce950115eff5";
|
|
1191
|
-
function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
1217
|
+
const TTL$1 = 300;
|
|
1218
|
+
const VERSION$2 = "68cd535d9b1bd32d0d42ce950115eff5";
|
|
1219
|
+
function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
1192
1220
|
const v_error = (() => {
|
|
1193
1221
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1194
1222
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1201,7 +1229,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1201
1229
|
for (let i = 0; i < obj_includedGroupsSharing.length; i++) {
|
|
1202
1230
|
const obj_includedGroupsSharing_item = obj_includedGroupsSharing[i];
|
|
1203
1231
|
const path_includedGroupsSharing_item = path_includedGroupsSharing + '[' + i + ']';
|
|
1204
|
-
const referencepath_includedGroupsSharing_itemValidationError = validate$
|
|
1232
|
+
const referencepath_includedGroupsSharing_itemValidationError = validate$7(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
|
|
1205
1233
|
if (referencepath_includedGroupsSharing_itemValidationError !== null) {
|
|
1206
1234
|
let message = 'Object doesn\'t match IncludedGroupsSharingRepresentation (at "' + path_includedGroupsSharing_item + '")\n';
|
|
1207
1235
|
message += referencepath_includedGroupsSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1216,7 +1244,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1216
1244
|
for (let i = 0; i < obj_listViewGroupSharing.length; i++) {
|
|
1217
1245
|
const obj_listViewGroupSharing_item = obj_listViewGroupSharing[i];
|
|
1218
1246
|
const path_listViewGroupSharing_item = path_listViewGroupSharing + '[' + i + ']';
|
|
1219
|
-
const referencepath_listViewGroupSharing_itemValidationError = validate$
|
|
1247
|
+
const referencepath_listViewGroupSharing_itemValidationError = validate$6(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
|
|
1220
1248
|
if (referencepath_listViewGroupSharing_itemValidationError !== null) {
|
|
1221
1249
|
let message = 'Object doesn\'t match ListViewGroupSharingRepresentation (at "' + path_listViewGroupSharing_item + '")\n';
|
|
1222
1250
|
message += referencepath_listViewGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1231,7 +1259,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1231
1259
|
for (let i = 0; i < obj_reportAndDashboardFolderGroupSharing.length; i++) {
|
|
1232
1260
|
const obj_reportAndDashboardFolderGroupSharing_item = obj_reportAndDashboardFolderGroupSharing[i];
|
|
1233
1261
|
const path_reportAndDashboardFolderGroupSharing_item = path_reportAndDashboardFolderGroupSharing + '[' + i + ']';
|
|
1234
|
-
const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$
|
|
1262
|
+
const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$5(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
|
|
1235
1263
|
if (referencepath_reportAndDashboardFolderGroupSharing_itemValidationError !== null) {
|
|
1236
1264
|
let message = 'Object doesn\'t match ReportAndDashboardFolderGroupSharingRepresentation (at "' + path_reportAndDashboardFolderGroupSharing_item + '")\n';
|
|
1237
1265
|
message += referencepath_reportAndDashboardFolderGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1246,7 +1274,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1246
1274
|
for (let i = 0; i < obj_sharingRulesCriteriaGroupSharing.length; i++) {
|
|
1247
1275
|
const obj_sharingRulesCriteriaGroupSharing_item = obj_sharingRulesCriteriaGroupSharing[i];
|
|
1248
1276
|
const path_sharingRulesCriteriaGroupSharing_item = path_sharingRulesCriteriaGroupSharing + '[' + i + ']';
|
|
1249
|
-
const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$
|
|
1277
|
+
const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$4(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
|
|
1250
1278
|
if (referencepath_sharingRulesCriteriaGroupSharing_itemValidationError !== null) {
|
|
1251
1279
|
let message = 'Object doesn\'t match SharingRulesCriteriaGroupSharingRepresentation (at "' + path_sharingRulesCriteriaGroupSharing_item + '")\n';
|
|
1252
1280
|
message += referencepath_sharingRulesCriteriaGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1261,7 +1289,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1261
1289
|
for (let i = 0; i < obj_sharingRulesOwnerGroupSharing.length; i++) {
|
|
1262
1290
|
const obj_sharingRulesOwnerGroupSharing_item = obj_sharingRulesOwnerGroupSharing[i];
|
|
1263
1291
|
const path_sharingRulesOwnerGroupSharing_item = path_sharingRulesOwnerGroupSharing + '[' + i + ']';
|
|
1264
|
-
const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$
|
|
1292
|
+
const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$3(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
|
|
1265
1293
|
if (referencepath_sharingRulesOwnerGroupSharing_itemValidationError !== null) {
|
|
1266
1294
|
let message = 'Object doesn\'t match SharingRulesOwnerGroupSharingRepresentation (at "' + path_sharingRulesOwnerGroupSharing_item + '")\n';
|
|
1267
1295
|
message += referencepath_sharingRulesOwnerGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1271,19 +1299,19 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1271
1299
|
})();
|
|
1272
1300
|
return v_error === undefined ? null : v_error;
|
|
1273
1301
|
}
|
|
1274
|
-
const RepresentationType = 'PublicGroupSummaryRepresentation';
|
|
1275
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1302
|
+
const RepresentationType$1 = 'PublicGroupSummaryRepresentation';
|
|
1303
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1276
1304
|
return input;
|
|
1277
1305
|
}
|
|
1278
|
-
const select$
|
|
1279
|
-
const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$
|
|
1280
|
-
const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$
|
|
1281
|
-
const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$
|
|
1282
|
-
const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$
|
|
1283
|
-
const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$
|
|
1306
|
+
const select$4 = function PublicGroupSummaryRepresentationSelect() {
|
|
1307
|
+
const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$9();
|
|
1308
|
+
const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$8();
|
|
1309
|
+
const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$7();
|
|
1310
|
+
const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$6();
|
|
1311
|
+
const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$5();
|
|
1284
1312
|
return {
|
|
1285
1313
|
kind: 'Fragment',
|
|
1286
|
-
version: VERSION,
|
|
1314
|
+
version: VERSION$2,
|
|
1287
1315
|
private: [],
|
|
1288
1316
|
selections: [
|
|
1289
1317
|
{
|
|
@@ -1319,11 +1347,11 @@ const select$1 = function PublicGroupSummaryRepresentationSelect() {
|
|
|
1319
1347
|
]
|
|
1320
1348
|
};
|
|
1321
1349
|
};
|
|
1322
|
-
function equals(existing, incoming) {
|
|
1350
|
+
function equals$2(existing, incoming) {
|
|
1323
1351
|
const existing_includedGroupsSharing = existing.includedGroupsSharing;
|
|
1324
1352
|
const incoming_includedGroupsSharing = incoming.includedGroupsSharing;
|
|
1325
1353
|
const equals_includedGroupsSharing_items = equalsArray(existing_includedGroupsSharing, incoming_includedGroupsSharing, (existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item) => {
|
|
1326
|
-
if (!(equals$
|
|
1354
|
+
if (!(equals$7(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
|
|
1327
1355
|
return false;
|
|
1328
1356
|
}
|
|
1329
1357
|
});
|
|
@@ -1333,7 +1361,7 @@ function equals(existing, incoming) {
|
|
|
1333
1361
|
const existing_listViewGroupSharing = existing.listViewGroupSharing;
|
|
1334
1362
|
const incoming_listViewGroupSharing = incoming.listViewGroupSharing;
|
|
1335
1363
|
const equals_listViewGroupSharing_items = equalsArray(existing_listViewGroupSharing, incoming_listViewGroupSharing, (existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item) => {
|
|
1336
|
-
if (!(equals$
|
|
1364
|
+
if (!(equals$6(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
|
|
1337
1365
|
return false;
|
|
1338
1366
|
}
|
|
1339
1367
|
});
|
|
@@ -1343,7 +1371,7 @@ function equals(existing, incoming) {
|
|
|
1343
1371
|
const existing_reportAndDashboardFolderGroupSharing = existing.reportAndDashboardFolderGroupSharing;
|
|
1344
1372
|
const incoming_reportAndDashboardFolderGroupSharing = incoming.reportAndDashboardFolderGroupSharing;
|
|
1345
1373
|
const equals_reportAndDashboardFolderGroupSharing_items = equalsArray(existing_reportAndDashboardFolderGroupSharing, incoming_reportAndDashboardFolderGroupSharing, (existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item) => {
|
|
1346
|
-
if (!(equals$
|
|
1374
|
+
if (!(equals$5(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
|
|
1347
1375
|
return false;
|
|
1348
1376
|
}
|
|
1349
1377
|
});
|
|
@@ -1353,7 +1381,7 @@ function equals(existing, incoming) {
|
|
|
1353
1381
|
const existing_sharingRulesCriteriaGroupSharing = existing.sharingRulesCriteriaGroupSharing;
|
|
1354
1382
|
const incoming_sharingRulesCriteriaGroupSharing = incoming.sharingRulesCriteriaGroupSharing;
|
|
1355
1383
|
const equals_sharingRulesCriteriaGroupSharing_items = equalsArray(existing_sharingRulesCriteriaGroupSharing, incoming_sharingRulesCriteriaGroupSharing, (existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item) => {
|
|
1356
|
-
if (!(equals$
|
|
1384
|
+
if (!(equals$4(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
|
|
1357
1385
|
return false;
|
|
1358
1386
|
}
|
|
1359
1387
|
});
|
|
@@ -1363,7 +1391,7 @@ function equals(existing, incoming) {
|
|
|
1363
1391
|
const existing_sharingRulesOwnerGroupSharing = existing.sharingRulesOwnerGroupSharing;
|
|
1364
1392
|
const incoming_sharingRulesOwnerGroupSharing = incoming.sharingRulesOwnerGroupSharing;
|
|
1365
1393
|
const equals_sharingRulesOwnerGroupSharing_items = equalsArray(existing_sharingRulesOwnerGroupSharing, incoming_sharingRulesOwnerGroupSharing, (existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item) => {
|
|
1366
|
-
if (!(equals$
|
|
1394
|
+
if (!(equals$3(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
|
|
1367
1395
|
return false;
|
|
1368
1396
|
}
|
|
1369
1397
|
});
|
|
@@ -1372,7 +1400,309 @@ function equals(existing, incoming) {
|
|
|
1372
1400
|
}
|
|
1373
1401
|
return true;
|
|
1374
1402
|
}
|
|
1375
|
-
const ingest = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1403
|
+
const ingest$1 = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1404
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1405
|
+
const validateError = validate$2(input);
|
|
1406
|
+
if (validateError !== null) {
|
|
1407
|
+
throw validateError;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
const key = path.fullPath;
|
|
1411
|
+
const ttlToUse = TTL$1;
|
|
1412
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sharing", VERSION$2, RepresentationType$1, equals$2);
|
|
1413
|
+
return createLink(key);
|
|
1414
|
+
};
|
|
1415
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1416
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1417
|
+
const rootKey = fullPathFactory();
|
|
1418
|
+
rootKeySet.set(rootKey, {
|
|
1419
|
+
namespace: keyPrefix,
|
|
1420
|
+
representationName: RepresentationType$1,
|
|
1421
|
+
mergeable: false
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
function select$3(luvio, params) {
|
|
1426
|
+
return select$4();
|
|
1427
|
+
}
|
|
1428
|
+
function keyBuilder$3(luvio, params) {
|
|
1429
|
+
return keyPrefix + '::PublicGroupSummaryRepresentation:(' + 'entityKeyPrefix:' + params.body.entityKeyPrefix + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'operation:' + params.body.operation + '::' + 'orderBy:' + params.body.orderBy + '::' + 'orderType:' + params.body.orderType + ')';
|
|
1430
|
+
}
|
|
1431
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1432
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1433
|
+
}
|
|
1434
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
1435
|
+
const { body } = response;
|
|
1436
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
1437
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1438
|
+
const snapshot = luvio.storeLookup({
|
|
1439
|
+
recordId: key,
|
|
1440
|
+
node: select$3(),
|
|
1441
|
+
variables: {},
|
|
1442
|
+
}, snapshotRefresh);
|
|
1443
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1444
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1445
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
deepFreeze(snapshot.data);
|
|
1449
|
+
return snapshot;
|
|
1450
|
+
}
|
|
1451
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
1452
|
+
const key = keyBuilder$3(luvio, params);
|
|
1453
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1454
|
+
const storeMetadataParams = {
|
|
1455
|
+
ttl: TTL$1,
|
|
1456
|
+
namespace: keyPrefix,
|
|
1457
|
+
version: VERSION$2,
|
|
1458
|
+
representationName: RepresentationType$1
|
|
1459
|
+
};
|
|
1460
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1461
|
+
return errorSnapshot;
|
|
1462
|
+
}
|
|
1463
|
+
function createResourceRequest$1(config) {
|
|
1464
|
+
const headers = {};
|
|
1465
|
+
return {
|
|
1466
|
+
baseUri: '/services/data/v61.0',
|
|
1467
|
+
basePath: '/sharing/publicGroupsSummary',
|
|
1468
|
+
method: 'post',
|
|
1469
|
+
body: config.body,
|
|
1470
|
+
urlParams: {},
|
|
1471
|
+
queryParams: {},
|
|
1472
|
+
headers,
|
|
1473
|
+
priority: 'normal',
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
const adapterName$1 = 'getPublicGroupShareData';
|
|
1478
|
+
const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
1479
|
+
generateParamConfigMetadata('entityKeyPrefix', true, 2 /* Body */, 0 /* String */),
|
|
1480
|
+
generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
|
|
1481
|
+
generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
|
|
1482
|
+
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
1483
|
+
generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
|
|
1484
|
+
generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
|
|
1485
|
+
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
1486
|
+
];
|
|
1487
|
+
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1488
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1489
|
+
function keyBuilder$2(luvio, config) {
|
|
1490
|
+
const resourceParams = createResourceParams$1(config);
|
|
1491
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
1492
|
+
}
|
|
1493
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
1494
|
+
const config = {};
|
|
1495
|
+
typeCheckConfig$4(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1496
|
+
return config;
|
|
1497
|
+
}
|
|
1498
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
1499
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1500
|
+
return null;
|
|
1501
|
+
}
|
|
1502
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1503
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1504
|
+
}
|
|
1505
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
1506
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1507
|
+
return null;
|
|
1508
|
+
}
|
|
1509
|
+
return config;
|
|
1510
|
+
}
|
|
1511
|
+
function adapterFragment$1(luvio, config) {
|
|
1512
|
+
createResourceParams$1(config);
|
|
1513
|
+
return select$3();
|
|
1514
|
+
}
|
|
1515
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1516
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
1517
|
+
config,
|
|
1518
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1519
|
+
});
|
|
1520
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1521
|
+
}
|
|
1522
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1523
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1524
|
+
config,
|
|
1525
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1526
|
+
});
|
|
1527
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1528
|
+
}
|
|
1529
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
1530
|
+
const resourceParams = createResourceParams$1(config);
|
|
1531
|
+
const request = createResourceRequest$1(resourceParams);
|
|
1532
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1533
|
+
.then((response) => {
|
|
1534
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1535
|
+
const cache = new StoreKeyMap();
|
|
1536
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1537
|
+
return cache;
|
|
1538
|
+
});
|
|
1539
|
+
}, (response) => {
|
|
1540
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
1541
|
+
});
|
|
1542
|
+
}
|
|
1543
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1544
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
|
|
1545
|
+
}
|
|
1546
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1547
|
+
const { luvio, config } = context;
|
|
1548
|
+
const selector = {
|
|
1549
|
+
recordId: keyBuilder$2(luvio, config),
|
|
1550
|
+
node: adapterFragment$1(luvio, config),
|
|
1551
|
+
variables: {},
|
|
1552
|
+
};
|
|
1553
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1554
|
+
config,
|
|
1555
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1556
|
+
});
|
|
1557
|
+
return cacheSnapshot;
|
|
1558
|
+
}
|
|
1559
|
+
const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPublicGroupShareData(untrustedConfig, requestContext) {
|
|
1560
|
+
const config = validateAdapterConfig$1(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
|
|
1561
|
+
// Invalid or incomplete config
|
|
1562
|
+
if (config === null) {
|
|
1563
|
+
return null;
|
|
1564
|
+
}
|
|
1565
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1566
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
const VERSION$1 = "348a7399778e8986878f81df955a8eab";
|
|
1570
|
+
function validate$1(obj, path = 'UserPermissionInfoRepresentation') {
|
|
1571
|
+
const v_error = (() => {
|
|
1572
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1573
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1574
|
+
}
|
|
1575
|
+
const obj_userPermApiName = obj.userPermApiName;
|
|
1576
|
+
const path_userPermApiName = path + '.userPermApiName';
|
|
1577
|
+
if (typeof obj_userPermApiName !== 'string') {
|
|
1578
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermApiName + '" (at "' + path_userPermApiName + '")');
|
|
1579
|
+
}
|
|
1580
|
+
const obj_userPermDescription = obj.userPermDescription;
|
|
1581
|
+
const path_userPermDescription = path + '.userPermDescription';
|
|
1582
|
+
if (typeof obj_userPermDescription !== 'string') {
|
|
1583
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermDescription + '" (at "' + path_userPermDescription + '")');
|
|
1584
|
+
}
|
|
1585
|
+
const obj_userPermLabel = obj.userPermLabel;
|
|
1586
|
+
const path_userPermLabel = path + '.userPermLabel';
|
|
1587
|
+
if (typeof obj_userPermLabel !== 'string') {
|
|
1588
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermLabel + '" (at "' + path_userPermLabel + '")');
|
|
1589
|
+
}
|
|
1590
|
+
})();
|
|
1591
|
+
return v_error === undefined ? null : v_error;
|
|
1592
|
+
}
|
|
1593
|
+
const select$2 = function UserPermissionInfoRepresentationSelect() {
|
|
1594
|
+
return {
|
|
1595
|
+
kind: 'Fragment',
|
|
1596
|
+
version: VERSION$1,
|
|
1597
|
+
private: [],
|
|
1598
|
+
selections: [
|
|
1599
|
+
{
|
|
1600
|
+
name: 'userPermApiName',
|
|
1601
|
+
kind: 'Scalar'
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
name: 'userPermDescription',
|
|
1605
|
+
kind: 'Scalar'
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
name: 'userPermLabel',
|
|
1609
|
+
kind: 'Scalar'
|
|
1610
|
+
}
|
|
1611
|
+
]
|
|
1612
|
+
};
|
|
1613
|
+
};
|
|
1614
|
+
function equals$1(existing, incoming) {
|
|
1615
|
+
const existing_userPermApiName = existing.userPermApiName;
|
|
1616
|
+
const incoming_userPermApiName = incoming.userPermApiName;
|
|
1617
|
+
if (!(existing_userPermApiName === incoming_userPermApiName)) {
|
|
1618
|
+
return false;
|
|
1619
|
+
}
|
|
1620
|
+
const existing_userPermDescription = existing.userPermDescription;
|
|
1621
|
+
const incoming_userPermDescription = incoming.userPermDescription;
|
|
1622
|
+
if (!(existing_userPermDescription === incoming_userPermDescription)) {
|
|
1623
|
+
return false;
|
|
1624
|
+
}
|
|
1625
|
+
const existing_userPermLabel = existing.userPermLabel;
|
|
1626
|
+
const incoming_userPermLabel = incoming.userPermLabel;
|
|
1627
|
+
if (!(existing_userPermLabel === incoming_userPermLabel)) {
|
|
1628
|
+
return false;
|
|
1629
|
+
}
|
|
1630
|
+
return true;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
const TTL = 600000;
|
|
1634
|
+
const VERSION = "627ab68dfb8c0174c1e9dc9f2701c1b2";
|
|
1635
|
+
function validate(obj, path = 'UserPermissionsInfoListRepresentation') {
|
|
1636
|
+
const v_error = (() => {
|
|
1637
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1638
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1639
|
+
}
|
|
1640
|
+
const obj_size = obj.size;
|
|
1641
|
+
const path_size = path + '.size';
|
|
1642
|
+
if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
|
|
1643
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
1644
|
+
}
|
|
1645
|
+
const obj_userPermissions = obj.userPermissions;
|
|
1646
|
+
const path_userPermissions = path + '.userPermissions';
|
|
1647
|
+
if (!ArrayIsArray(obj_userPermissions)) {
|
|
1648
|
+
return new TypeError('Expected "array" but received "' + typeof obj_userPermissions + '" (at "' + path_userPermissions + '")');
|
|
1649
|
+
}
|
|
1650
|
+
for (let i = 0; i < obj_userPermissions.length; i++) {
|
|
1651
|
+
const obj_userPermissions_item = obj_userPermissions[i];
|
|
1652
|
+
const path_userPermissions_item = path_userPermissions + '[' + i + ']';
|
|
1653
|
+
const referencepath_userPermissions_itemValidationError = validate$1(obj_userPermissions_item, path_userPermissions_item);
|
|
1654
|
+
if (referencepath_userPermissions_itemValidationError !== null) {
|
|
1655
|
+
let message = 'Object doesn\'t match UserPermissionInfoRepresentation (at "' + path_userPermissions_item + '")\n';
|
|
1656
|
+
message += referencepath_userPermissions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1657
|
+
return new TypeError(message);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
})();
|
|
1661
|
+
return v_error === undefined ? null : v_error;
|
|
1662
|
+
}
|
|
1663
|
+
const RepresentationType = 'UserPermissionsInfoListRepresentation';
|
|
1664
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1665
|
+
return input;
|
|
1666
|
+
}
|
|
1667
|
+
const select$1 = function UserPermissionsInfoListRepresentationSelect() {
|
|
1668
|
+
const { selections: UserPermissionInfoRepresentation__selections, opaque: UserPermissionInfoRepresentation__opaque, } = select$2();
|
|
1669
|
+
return {
|
|
1670
|
+
kind: 'Fragment',
|
|
1671
|
+
version: VERSION,
|
|
1672
|
+
private: [],
|
|
1673
|
+
selections: [
|
|
1674
|
+
{
|
|
1675
|
+
name: 'size',
|
|
1676
|
+
kind: 'Scalar'
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
name: 'userPermissions',
|
|
1680
|
+
kind: 'Object',
|
|
1681
|
+
plural: true,
|
|
1682
|
+
selections: UserPermissionInfoRepresentation__selections
|
|
1683
|
+
}
|
|
1684
|
+
]
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
1687
|
+
function equals(existing, incoming) {
|
|
1688
|
+
const existing_size = existing.size;
|
|
1689
|
+
const incoming_size = incoming.size;
|
|
1690
|
+
if (!(existing_size === incoming_size)) {
|
|
1691
|
+
return false;
|
|
1692
|
+
}
|
|
1693
|
+
const existing_userPermissions = existing.userPermissions;
|
|
1694
|
+
const incoming_userPermissions = incoming.userPermissions;
|
|
1695
|
+
const equals_userPermissions_items = equalsArray(existing_userPermissions, incoming_userPermissions, (existing_userPermissions_item, incoming_userPermissions_item) => {
|
|
1696
|
+
if (!(equals$1(existing_userPermissions_item, incoming_userPermissions_item))) {
|
|
1697
|
+
return false;
|
|
1698
|
+
}
|
|
1699
|
+
});
|
|
1700
|
+
if (equals_userPermissions_items === false) {
|
|
1701
|
+
return false;
|
|
1702
|
+
}
|
|
1703
|
+
return true;
|
|
1704
|
+
}
|
|
1705
|
+
const ingest = function UserPermissionsInfoListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1376
1706
|
if (process.env.NODE_ENV !== 'production') {
|
|
1377
1707
|
const validateError = validate(input);
|
|
1378
1708
|
if (validateError !== null) {
|
|
@@ -1398,7 +1728,7 @@ function select(luvio, params) {
|
|
|
1398
1728
|
return select$1();
|
|
1399
1729
|
}
|
|
1400
1730
|
function keyBuilder$1(luvio, params) {
|
|
1401
|
-
return keyPrefix + '::
|
|
1731
|
+
return keyPrefix + '::UserPermissionsInfoListRepresentation:(' + 'entityName:' + params.queryParams.entityName + ',' + 'recordId:' + params.queryParams.recordId + ')';
|
|
1402
1732
|
}
|
|
1403
1733
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1404
1734
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -1436,35 +1766,30 @@ function createResourceRequest(config) {
|
|
|
1436
1766
|
const headers = {};
|
|
1437
1767
|
return {
|
|
1438
1768
|
baseUri: '/services/data/v61.0',
|
|
1439
|
-
basePath: '/sharing/
|
|
1440
|
-
method: '
|
|
1441
|
-
body:
|
|
1769
|
+
basePath: '/sharing/userPermissions',
|
|
1770
|
+
method: 'get',
|
|
1771
|
+
body: null,
|
|
1442
1772
|
urlParams: {},
|
|
1443
|
-
queryParams:
|
|
1773
|
+
queryParams: config.queryParams,
|
|
1444
1774
|
headers,
|
|
1445
1775
|
priority: 'normal',
|
|
1446
1776
|
};
|
|
1447
1777
|
}
|
|
1448
1778
|
|
|
1449
|
-
const adapterName = '
|
|
1450
|
-
const
|
|
1451
|
-
generateParamConfigMetadata('
|
|
1452
|
-
generateParamConfigMetadata('
|
|
1453
|
-
generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
|
|
1454
|
-
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
1455
|
-
generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
|
|
1456
|
-
generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
|
|
1457
|
-
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
1779
|
+
const adapterName = 'getUserPermissions';
|
|
1780
|
+
const getUserPermissions_ConfigPropertyMetadata = [
|
|
1781
|
+
generateParamConfigMetadata('entityName', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1782
|
+
generateParamConfigMetadata('recordId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1458
1783
|
];
|
|
1459
|
-
const
|
|
1460
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1784
|
+
const getUserPermissions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUserPermissions_ConfigPropertyMetadata);
|
|
1785
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$4(getUserPermissions_ConfigPropertyMetadata);
|
|
1461
1786
|
function keyBuilder(luvio, config) {
|
|
1462
1787
|
const resourceParams = createResourceParams(config);
|
|
1463
1788
|
return keyBuilder$1(luvio, resourceParams);
|
|
1464
1789
|
}
|
|
1465
1790
|
function typeCheckConfig(untrustedConfig) {
|
|
1466
1791
|
const config = {};
|
|
1467
|
-
typeCheckConfig$
|
|
1792
|
+
typeCheckConfig$4(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
|
|
1468
1793
|
return config;
|
|
1469
1794
|
}
|
|
1470
1795
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1513,7 +1838,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1513
1838
|
});
|
|
1514
1839
|
}
|
|
1515
1840
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1516
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1841
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1517
1842
|
}
|
|
1518
1843
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1519
1844
|
const { luvio, config } = context;
|
|
@@ -1528,8 +1853,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
1528
1853
|
});
|
|
1529
1854
|
return cacheSnapshot;
|
|
1530
1855
|
}
|
|
1531
|
-
const
|
|
1532
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
1856
|
+
const getUserPermissionsAdapterFactory = (luvio) => function sharing__getUserPermissions(untrustedConfig, requestContext) {
|
|
1857
|
+
const config = validateAdapterConfig(untrustedConfig, getUserPermissions_ConfigPropertyNames);
|
|
1533
1858
|
// Invalid or incomplete config
|
|
1534
1859
|
if (config === null) {
|
|
1535
1860
|
return null;
|
|
@@ -1541,10 +1866,12 @@ const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPu
|
|
|
1541
1866
|
let getAllSobjects;
|
|
1542
1867
|
let getGroupsForUser;
|
|
1543
1868
|
let getPublicGroupShareData;
|
|
1869
|
+
let getUserPermissions;
|
|
1544
1870
|
// Imperative GET Adapters
|
|
1545
1871
|
let getAllSobjects_imperative;
|
|
1546
1872
|
let getGroupsForUser_imperative;
|
|
1547
1873
|
let getPublicGroupShareData_imperative;
|
|
1874
|
+
let getUserPermissions_imperative;
|
|
1548
1875
|
// Adapter Metadata
|
|
1549
1876
|
const getAllSobjectsMetadata = { apiFamily: 'sharing', name: 'getAllSobjects', ttl: 900000 };
|
|
1550
1877
|
const getGroupsForUserMetadata = { apiFamily: 'sharing', name: 'getGroupsForUser', ttl: 300 };
|
|
@@ -1553,20 +1880,28 @@ const getPublicGroupShareDataMetadata = {
|
|
|
1553
1880
|
name: 'getPublicGroupShareData',
|
|
1554
1881
|
ttl: 300,
|
|
1555
1882
|
};
|
|
1883
|
+
const getUserPermissionsMetadata = {
|
|
1884
|
+
apiFamily: 'sharing',
|
|
1885
|
+
name: 'getUserPermissions',
|
|
1886
|
+
ttl: 600000,
|
|
1887
|
+
};
|
|
1556
1888
|
// Notify Update Available
|
|
1557
1889
|
function bindExportsTo(luvio) {
|
|
1558
1890
|
// LDS Adapters
|
|
1559
1891
|
const getAllSobjects_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllSobjects', getAllSobjectsAdapterFactory), getAllSobjectsMetadata);
|
|
1560
1892
|
const getGroupsForUser_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGroupsForUser', getGroupsForUserAdapterFactory), getGroupsForUserMetadata);
|
|
1561
1893
|
const getPublicGroupShareData_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPublicGroupShareData', getPublicGroupShareDataAdapterFactory), getPublicGroupShareDataMetadata);
|
|
1894
|
+
const getUserPermissions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getUserPermissions', getUserPermissionsAdapterFactory), getUserPermissionsMetadata);
|
|
1562
1895
|
return {
|
|
1563
1896
|
getAllSobjects: createWireAdapterConstructor(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
|
|
1564
1897
|
getGroupsForUser: createWireAdapterConstructor(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
|
|
1565
1898
|
getPublicGroupShareData: createWireAdapterConstructor(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
|
|
1899
|
+
getUserPermissions: createWireAdapterConstructor(luvio, getUserPermissions_ldsAdapter, getUserPermissionsMetadata),
|
|
1566
1900
|
// Imperative GET Adapters
|
|
1567
1901
|
getAllSobjects_imperative: createImperativeAdapter(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
|
|
1568
1902
|
getGroupsForUser_imperative: createImperativeAdapter(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
|
|
1569
1903
|
getPublicGroupShareData_imperative: createImperativeAdapter(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
|
|
1904
|
+
getUserPermissions_imperative: createImperativeAdapter(luvio, getUserPermissions_ldsAdapter, getUserPermissionsMetadata),
|
|
1570
1905
|
// Notify Update Availables
|
|
1571
1906
|
};
|
|
1572
1907
|
}
|
|
@@ -1575,11 +1910,13 @@ withDefaultLuvio((luvio) => {
|
|
|
1575
1910
|
getAllSobjects,
|
|
1576
1911
|
getGroupsForUser,
|
|
1577
1912
|
getPublicGroupShareData,
|
|
1913
|
+
getUserPermissions,
|
|
1578
1914
|
getAllSobjects_imperative,
|
|
1579
1915
|
getGroupsForUser_imperative,
|
|
1580
1916
|
getPublicGroupShareData_imperative,
|
|
1917
|
+
getUserPermissions_imperative,
|
|
1581
1918
|
} = bindExportsTo(luvio));
|
|
1582
1919
|
});
|
|
1583
1920
|
|
|
1584
|
-
export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative };
|
|
1585
|
-
// version: 1.
|
|
1921
|
+
export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
|
|
1922
|
+
// version: 1.285.0-c97dec82e
|