@salesforce/lds-adapters-platform-sharing 1.283.0 → 1.284.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 +509 -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/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 +529 -220
- package/src/raml/api.raml +44 -0
- package/src/raml/luvio.raml +14 -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$4, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -91,8 +91,8 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const VERSION$
|
|
95
|
-
function validate$
|
|
94
|
+
const VERSION$c = "252bb771341222662b0b76c855414e1f";
|
|
95
|
+
function validate$c(obj, path = 'PublicGroupRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -115,10 +115,10 @@ function validate$a(obj, path = 'PublicGroupRepresentation') {
|
|
|
115
115
|
})();
|
|
116
116
|
return v_error === undefined ? null : v_error;
|
|
117
117
|
}
|
|
118
|
-
const select$
|
|
118
|
+
const select$g = function PublicGroupRepresentationSelect() {
|
|
119
119
|
return {
|
|
120
120
|
kind: 'Fragment',
|
|
121
|
-
version: VERSION$
|
|
121
|
+
version: VERSION$c,
|
|
122
122
|
private: [],
|
|
123
123
|
selections: [
|
|
124
124
|
{
|
|
@@ -136,7 +136,7 @@ const select$d = function PublicGroupRepresentationSelect() {
|
|
|
136
136
|
]
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
|
-
function equals$
|
|
139
|
+
function equals$c(existing, incoming) {
|
|
140
140
|
const existing_includeBosses = existing.includeBosses;
|
|
141
141
|
const incoming_includeBosses = incoming.includeBosses;
|
|
142
142
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -155,8 +155,8 @@ function equals$a(existing, incoming) {
|
|
|
155
155
|
return true;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
const VERSION$
|
|
159
|
-
function validate$
|
|
158
|
+
const VERSION$b = "9371d1d2e640f37aa01c377fc78d6ef7";
|
|
159
|
+
function validate$b(obj, path = 'QueueRepresentation') {
|
|
160
160
|
const v_error = (() => {
|
|
161
161
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
162
162
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -174,10 +174,10 @@ function validate$9(obj, path = 'QueueRepresentation') {
|
|
|
174
174
|
})();
|
|
175
175
|
return v_error === undefined ? null : v_error;
|
|
176
176
|
}
|
|
177
|
-
const select$
|
|
177
|
+
const select$f = function QueueRepresentationSelect() {
|
|
178
178
|
return {
|
|
179
179
|
kind: 'Fragment',
|
|
180
|
-
version: VERSION$
|
|
180
|
+
version: VERSION$b,
|
|
181
181
|
private: [],
|
|
182
182
|
selections: [
|
|
183
183
|
{
|
|
@@ -191,7 +191,7 @@ const select$c = function QueueRepresentationSelect() {
|
|
|
191
191
|
]
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
|
-
function equals$
|
|
194
|
+
function equals$b(existing, incoming) {
|
|
195
195
|
const existing_developerName = existing.developerName;
|
|
196
196
|
const incoming_developerName = incoming.developerName;
|
|
197
197
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -205,9 +205,9 @@ function equals$9(existing, incoming) {
|
|
|
205
205
|
return true;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
const TTL$
|
|
209
|
-
const VERSION$
|
|
210
|
-
function validate$
|
|
208
|
+
const TTL$3 = 300;
|
|
209
|
+
const VERSION$a = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
210
|
+
function validate$a(obj, path = 'GroupCollectionRepresentation') {
|
|
211
211
|
const v_error = (() => {
|
|
212
212
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
213
213
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -220,7 +220,7 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
|
220
220
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
221
221
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
222
222
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
223
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
223
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$c(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
224
224
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
225
225
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
226
226
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -235,7 +235,7 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
|
235
235
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
236
236
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
237
237
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
238
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
238
|
+
const referencepath_queueRepresentations_itemValidationError = validate$b(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
239
239
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
240
240
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
241
241
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -245,16 +245,16 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
|
245
245
|
})();
|
|
246
246
|
return v_error === undefined ? null : v_error;
|
|
247
247
|
}
|
|
248
|
-
const RepresentationType$
|
|
249
|
-
function normalize$
|
|
248
|
+
const RepresentationType$3 = 'GroupCollectionRepresentation';
|
|
249
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
250
250
|
return input;
|
|
251
251
|
}
|
|
252
|
-
const select$
|
|
253
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
254
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
252
|
+
const select$e = function GroupCollectionRepresentationSelect() {
|
|
253
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$g();
|
|
254
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$f();
|
|
255
255
|
return {
|
|
256
256
|
kind: 'Fragment',
|
|
257
|
-
version: VERSION$
|
|
257
|
+
version: VERSION$a,
|
|
258
258
|
private: [],
|
|
259
259
|
selections: [
|
|
260
260
|
{
|
|
@@ -272,11 +272,11 @@ const select$b = function GroupCollectionRepresentationSelect() {
|
|
|
272
272
|
]
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
|
-
function equals$
|
|
275
|
+
function equals$a(existing, incoming) {
|
|
276
276
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
277
277
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
278
278
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
279
|
-
if (!(equals$
|
|
279
|
+
if (!(equals$c(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
280
280
|
return false;
|
|
281
281
|
}
|
|
282
282
|
});
|
|
@@ -286,7 +286,7 @@ function equals$8(existing, incoming) {
|
|
|
286
286
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
287
287
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
288
288
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
289
|
-
if (!(equals$
|
|
289
|
+
if (!(equals$b(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
290
290
|
return false;
|
|
291
291
|
}
|
|
292
292
|
});
|
|
@@ -295,44 +295,44 @@ function equals$8(existing, incoming) {
|
|
|
295
295
|
}
|
|
296
296
|
return true;
|
|
297
297
|
}
|
|
298
|
-
const ingest$
|
|
298
|
+
const ingest$3 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
299
299
|
if (process.env.NODE_ENV !== 'production') {
|
|
300
|
-
const validateError = validate$
|
|
300
|
+
const validateError = validate$a(input);
|
|
301
301
|
if (validateError !== null) {
|
|
302
302
|
throw validateError;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
const key = path.fullPath;
|
|
306
|
-
const ttlToUse = TTL$
|
|
307
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
306
|
+
const ttlToUse = TTL$3;
|
|
307
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$a, RepresentationType$3, equals$a);
|
|
308
308
|
return createLink(key);
|
|
309
309
|
};
|
|
310
|
-
function getTypeCacheKeys$
|
|
310
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
311
311
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
312
312
|
const rootKey = fullPathFactory();
|
|
313
313
|
rootKeySet.set(rootKey, {
|
|
314
314
|
namespace: keyPrefix,
|
|
315
|
-
representationName: RepresentationType$
|
|
315
|
+
representationName: RepresentationType$3,
|
|
316
316
|
mergeable: false
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
function select$
|
|
321
|
-
return select$
|
|
320
|
+
function select$d(luvio, params) {
|
|
321
|
+
return select$e();
|
|
322
322
|
}
|
|
323
|
-
function keyBuilder$
|
|
323
|
+
function keyBuilder$7(luvio, params) {
|
|
324
324
|
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 + ')';
|
|
325
325
|
}
|
|
326
|
-
function getResponseCacheKeys$
|
|
327
|
-
getTypeCacheKeys$
|
|
326
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
327
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
328
328
|
}
|
|
329
|
-
function ingestSuccess$
|
|
329
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
330
330
|
const { body } = response;
|
|
331
|
-
const key = keyBuilder$
|
|
332
|
-
luvio.storeIngest(key, ingest$
|
|
331
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
332
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
333
333
|
const snapshot = luvio.storeLookup({
|
|
334
334
|
recordId: key,
|
|
335
|
-
node: select$
|
|
335
|
+
node: select$d(),
|
|
336
336
|
variables: {},
|
|
337
337
|
}, snapshotRefresh);
|
|
338
338
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -343,19 +343,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
343
343
|
deepFreeze(snapshot.data);
|
|
344
344
|
return snapshot;
|
|
345
345
|
}
|
|
346
|
-
function ingestError$
|
|
347
|
-
const key = keyBuilder$
|
|
346
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
347
|
+
const key = keyBuilder$7(luvio, params);
|
|
348
348
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
349
349
|
const storeMetadataParams = {
|
|
350
|
-
ttl: TTL$
|
|
350
|
+
ttl: TTL$3,
|
|
351
351
|
namespace: keyPrefix,
|
|
352
|
-
version: VERSION$
|
|
353
|
-
representationName: RepresentationType$
|
|
352
|
+
version: VERSION$a,
|
|
353
|
+
representationName: RepresentationType$3
|
|
354
354
|
};
|
|
355
355
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
356
356
|
return errorSnapshot;
|
|
357
357
|
}
|
|
358
|
-
function createResourceRequest$
|
|
358
|
+
function createResourceRequest$3(config) {
|
|
359
359
|
const headers = {};
|
|
360
360
|
return {
|
|
361
361
|
baseUri: '/services/data/v61.0',
|
|
@@ -369,7 +369,7 @@ function createResourceRequest$2(config) {
|
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
const adapterName$
|
|
372
|
+
const adapterName$3 = 'getGroupsForUser';
|
|
373
373
|
const getGroupsForUser_ConfigPropertyMetadata = [
|
|
374
374
|
generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
375
375
|
generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
@@ -378,90 +378,90 @@ const getGroupsForUser_ConfigPropertyMetadata = [
|
|
|
378
378
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
379
379
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
380
380
|
];
|
|
381
|
-
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
382
|
-
const createResourceParams$
|
|
383
|
-
function keyBuilder$
|
|
384
|
-
const resourceParams = createResourceParams$
|
|
385
|
-
return keyBuilder$
|
|
381
|
+
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getGroupsForUser_ConfigPropertyMetadata);
|
|
382
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getGroupsForUser_ConfigPropertyMetadata);
|
|
383
|
+
function keyBuilder$6(luvio, config) {
|
|
384
|
+
const resourceParams = createResourceParams$3(config);
|
|
385
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
386
386
|
}
|
|
387
|
-
function typeCheckConfig$
|
|
387
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
388
388
|
const config = {};
|
|
389
|
-
typeCheckConfig$
|
|
389
|
+
typeCheckConfig$4(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
|
|
390
390
|
return config;
|
|
391
391
|
}
|
|
392
|
-
function validateAdapterConfig$
|
|
392
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
393
393
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
394
394
|
return null;
|
|
395
395
|
}
|
|
396
396
|
if (process.env.NODE_ENV !== 'production') {
|
|
397
397
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
398
398
|
}
|
|
399
|
-
const config = typeCheckConfig$
|
|
399
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
400
400
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
401
401
|
return null;
|
|
402
402
|
}
|
|
403
403
|
return config;
|
|
404
404
|
}
|
|
405
|
-
function adapterFragment$
|
|
406
|
-
createResourceParams$
|
|
407
|
-
return select$
|
|
405
|
+
function adapterFragment$3(luvio, config) {
|
|
406
|
+
createResourceParams$3(config);
|
|
407
|
+
return select$d();
|
|
408
408
|
}
|
|
409
|
-
function onFetchResponseSuccess$
|
|
410
|
-
const snapshot = ingestSuccess$
|
|
409
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
410
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
411
411
|
config,
|
|
412
|
-
resolve: () => buildNetworkSnapshot$
|
|
412
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
413
413
|
});
|
|
414
414
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
415
415
|
}
|
|
416
|
-
function onFetchResponseError$
|
|
417
|
-
const snapshot = ingestError$
|
|
416
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
417
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
418
418
|
config,
|
|
419
|
-
resolve: () => buildNetworkSnapshot$
|
|
419
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
420
420
|
});
|
|
421
421
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
422
422
|
}
|
|
423
|
-
function buildNetworkSnapshot$
|
|
424
|
-
const resourceParams = createResourceParams$
|
|
425
|
-
const request = createResourceRequest$
|
|
423
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
424
|
+
const resourceParams = createResourceParams$3(config);
|
|
425
|
+
const request = createResourceRequest$3(resourceParams);
|
|
426
426
|
return luvio.dispatchResourceRequest(request, options)
|
|
427
427
|
.then((response) => {
|
|
428
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
428
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
429
429
|
const cache = new StoreKeyMap();
|
|
430
|
-
getResponseCacheKeys$
|
|
430
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
431
431
|
return cache;
|
|
432
432
|
});
|
|
433
433
|
}, (response) => {
|
|
434
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
434
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
|
-
function buildNetworkSnapshotCachePolicy$
|
|
438
|
-
return buildNetworkSnapshotCachePolicy$
|
|
437
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
438
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
439
439
|
}
|
|
440
|
-
function buildCachedSnapshotCachePolicy$
|
|
440
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
441
441
|
const { luvio, config } = context;
|
|
442
442
|
const selector = {
|
|
443
|
-
recordId: keyBuilder$
|
|
444
|
-
node: adapterFragment$
|
|
443
|
+
recordId: keyBuilder$6(luvio, config),
|
|
444
|
+
node: adapterFragment$3(luvio, config),
|
|
445
445
|
variables: {},
|
|
446
446
|
};
|
|
447
447
|
const cacheSnapshot = storeLookup(selector, {
|
|
448
448
|
config,
|
|
449
|
-
resolve: () => buildNetworkSnapshot$
|
|
449
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
450
450
|
});
|
|
451
451
|
return cacheSnapshot;
|
|
452
452
|
}
|
|
453
453
|
const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
|
|
454
|
-
const config = validateAdapterConfig$
|
|
454
|
+
const config = validateAdapterConfig$3(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
|
|
455
455
|
// Invalid or incomplete config
|
|
456
456
|
if (config === null) {
|
|
457
457
|
return null;
|
|
458
458
|
}
|
|
459
459
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
460
|
-
buildCachedSnapshotCachePolicy$
|
|
460
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
461
461
|
};
|
|
462
462
|
|
|
463
|
-
const VERSION$
|
|
464
|
-
function validate$
|
|
463
|
+
const VERSION$9 = "11e587d0bd769c0df33d7cce4eb7210d";
|
|
464
|
+
function validate$9(obj, path = 'IncludedGroupsSharingRepresentation') {
|
|
465
465
|
const v_error = (() => {
|
|
466
466
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
467
467
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -494,10 +494,10 @@ function validate$7(obj, path = 'IncludedGroupsSharingRepresentation') {
|
|
|
494
494
|
})();
|
|
495
495
|
return v_error === undefined ? null : v_error;
|
|
496
496
|
}
|
|
497
|
-
const select$
|
|
497
|
+
const select$c = function IncludedGroupsSharingRepresentationSelect() {
|
|
498
498
|
return {
|
|
499
499
|
kind: 'Fragment',
|
|
500
|
-
version: VERSION$
|
|
500
|
+
version: VERSION$9,
|
|
501
501
|
private: [],
|
|
502
502
|
selections: [
|
|
503
503
|
{
|
|
@@ -523,7 +523,7 @@ const select$9 = function IncludedGroupsSharingRepresentationSelect() {
|
|
|
523
523
|
]
|
|
524
524
|
};
|
|
525
525
|
};
|
|
526
|
-
function equals$
|
|
526
|
+
function equals$9(existing, incoming) {
|
|
527
527
|
const existing_grantAccessHierarchies = existing.grantAccessHierarchies;
|
|
528
528
|
const incoming_grantAccessHierarchies = incoming.grantAccessHierarchies;
|
|
529
529
|
if (!(existing_grantAccessHierarchies === incoming_grantAccessHierarchies)) {
|
|
@@ -552,8 +552,8 @@ function equals$7(existing, incoming) {
|
|
|
552
552
|
return true;
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
-
const VERSION$
|
|
556
|
-
function validate$
|
|
555
|
+
const VERSION$8 = "06eef993be289c8b20b37b2ae6f4c5ee";
|
|
556
|
+
function validate$8(obj, path = 'ListViewGroupSharingRepresentation') {
|
|
557
557
|
const v_error = (() => {
|
|
558
558
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
559
559
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -571,10 +571,10 @@ function validate$6(obj, path = 'ListViewGroupSharingRepresentation') {
|
|
|
571
571
|
})();
|
|
572
572
|
return v_error === undefined ? null : v_error;
|
|
573
573
|
}
|
|
574
|
-
const select$
|
|
574
|
+
const select$b = function ListViewGroupSharingRepresentationSelect() {
|
|
575
575
|
return {
|
|
576
576
|
kind: 'Fragment',
|
|
577
|
-
version: VERSION$
|
|
577
|
+
version: VERSION$8,
|
|
578
578
|
private: [],
|
|
579
579
|
selections: [
|
|
580
580
|
{
|
|
@@ -588,7 +588,7 @@ const select$8 = function ListViewGroupSharingRepresentationSelect() {
|
|
|
588
588
|
]
|
|
589
589
|
};
|
|
590
590
|
};
|
|
591
|
-
function equals$
|
|
591
|
+
function equals$8(existing, incoming) {
|
|
592
592
|
const existing_developerName = existing.developerName;
|
|
593
593
|
const incoming_developerName = incoming.developerName;
|
|
594
594
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -602,8 +602,8 @@ function equals$6(existing, incoming) {
|
|
|
602
602
|
return true;
|
|
603
603
|
}
|
|
604
604
|
|
|
605
|
-
const VERSION$
|
|
606
|
-
function validate$
|
|
605
|
+
const VERSION$7 = "a0ed38b40ad9886f3e05a1b65fd2e246";
|
|
606
|
+
function validate$7(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
|
|
607
607
|
const v_error = (() => {
|
|
608
608
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
609
609
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -641,10 +641,10 @@ function validate$5(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentat
|
|
|
641
641
|
})();
|
|
642
642
|
return v_error === undefined ? null : v_error;
|
|
643
643
|
}
|
|
644
|
-
const select$
|
|
644
|
+
const select$a = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
|
|
645
645
|
return {
|
|
646
646
|
kind: 'Fragment',
|
|
647
|
-
version: VERSION$
|
|
647
|
+
version: VERSION$7,
|
|
648
648
|
private: [],
|
|
649
649
|
selections: [
|
|
650
650
|
{
|
|
@@ -674,7 +674,7 @@ const select$7 = function ReportAndDashboardFolderGroupSharingRepresentationSele
|
|
|
674
674
|
]
|
|
675
675
|
};
|
|
676
676
|
};
|
|
677
|
-
function equals$
|
|
677
|
+
function equals$7(existing, incoming) {
|
|
678
678
|
const existing_accessLevel = existing.accessLevel;
|
|
679
679
|
const incoming_accessLevel = incoming.accessLevel;
|
|
680
680
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -708,8 +708,8 @@ function equals$5(existing, incoming) {
|
|
|
708
708
|
return true;
|
|
709
709
|
}
|
|
710
710
|
|
|
711
|
-
const VERSION$
|
|
712
|
-
function validate$
|
|
711
|
+
const VERSION$6 = "1036a20704b51746749bb4be569e39c0";
|
|
712
|
+
function validate$6(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
|
|
713
713
|
const v_error = (() => {
|
|
714
714
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
715
715
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -737,10 +737,10 @@ function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation'
|
|
|
737
737
|
})();
|
|
738
738
|
return v_error === undefined ? null : v_error;
|
|
739
739
|
}
|
|
740
|
-
const select$
|
|
740
|
+
const select$9 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
|
|
741
741
|
return {
|
|
742
742
|
kind: 'Fragment',
|
|
743
|
-
version: VERSION$
|
|
743
|
+
version: VERSION$6,
|
|
744
744
|
private: [],
|
|
745
745
|
selections: [
|
|
746
746
|
{
|
|
@@ -762,7 +762,7 @@ const select$6 = function SharingRulesCriteriaGroupSharingRepresentationSelect()
|
|
|
762
762
|
]
|
|
763
763
|
};
|
|
764
764
|
};
|
|
765
|
-
function equals$
|
|
765
|
+
function equals$6(existing, incoming) {
|
|
766
766
|
const existing_accessLevel = existing.accessLevel;
|
|
767
767
|
const incoming_accessLevel = incoming.accessLevel;
|
|
768
768
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -786,8 +786,8 @@ function equals$4(existing, incoming) {
|
|
|
786
786
|
return true;
|
|
787
787
|
}
|
|
788
788
|
|
|
789
|
-
const VERSION$
|
|
790
|
-
function validate$
|
|
789
|
+
const VERSION$5 = "8f205925d69192f91fd2c71838ed20e7";
|
|
790
|
+
function validate$5(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
791
791
|
const v_error = (() => {
|
|
792
792
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
793
793
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -815,10 +815,10 @@ function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
|
815
815
|
})();
|
|
816
816
|
return v_error === undefined ? null : v_error;
|
|
817
817
|
}
|
|
818
|
-
const select$
|
|
818
|
+
const select$8 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
819
819
|
return {
|
|
820
820
|
kind: 'Fragment',
|
|
821
|
-
version: VERSION$
|
|
821
|
+
version: VERSION$5,
|
|
822
822
|
private: [],
|
|
823
823
|
selections: [
|
|
824
824
|
{
|
|
@@ -840,7 +840,7 @@ const select$5 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
|
840
840
|
]
|
|
841
841
|
};
|
|
842
842
|
};
|
|
843
|
-
function equals$
|
|
843
|
+
function equals$5(existing, incoming) {
|
|
844
844
|
const existing_accessLevel = existing.accessLevel;
|
|
845
845
|
const incoming_accessLevel = incoming.accessLevel;
|
|
846
846
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -864,9 +864,9 @@ function equals$3(existing, incoming) {
|
|
|
864
864
|
return true;
|
|
865
865
|
}
|
|
866
866
|
|
|
867
|
-
const TTL$
|
|
868
|
-
const VERSION$
|
|
869
|
-
function validate$
|
|
867
|
+
const TTL$2 = 300;
|
|
868
|
+
const VERSION$4 = "68cd535d9b1bd32d0d42ce950115eff5";
|
|
869
|
+
function validate$4(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
870
870
|
const v_error = (() => {
|
|
871
871
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
872
872
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -879,7 +879,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
879
879
|
for (let i = 0; i < obj_includedGroupsSharing.length; i++) {
|
|
880
880
|
const obj_includedGroupsSharing_item = obj_includedGroupsSharing[i];
|
|
881
881
|
const path_includedGroupsSharing_item = path_includedGroupsSharing + '[' + i + ']';
|
|
882
|
-
const referencepath_includedGroupsSharing_itemValidationError = validate$
|
|
882
|
+
const referencepath_includedGroupsSharing_itemValidationError = validate$9(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
|
|
883
883
|
if (referencepath_includedGroupsSharing_itemValidationError !== null) {
|
|
884
884
|
let message = 'Object doesn\'t match IncludedGroupsSharingRepresentation (at "' + path_includedGroupsSharing_item + '")\n';
|
|
885
885
|
message += referencepath_includedGroupsSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -894,7 +894,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
894
894
|
for (let i = 0; i < obj_listViewGroupSharing.length; i++) {
|
|
895
895
|
const obj_listViewGroupSharing_item = obj_listViewGroupSharing[i];
|
|
896
896
|
const path_listViewGroupSharing_item = path_listViewGroupSharing + '[' + i + ']';
|
|
897
|
-
const referencepath_listViewGroupSharing_itemValidationError = validate$
|
|
897
|
+
const referencepath_listViewGroupSharing_itemValidationError = validate$8(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
|
|
898
898
|
if (referencepath_listViewGroupSharing_itemValidationError !== null) {
|
|
899
899
|
let message = 'Object doesn\'t match ListViewGroupSharingRepresentation (at "' + path_listViewGroupSharing_item + '")\n';
|
|
900
900
|
message += referencepath_listViewGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -909,7 +909,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
909
909
|
for (let i = 0; i < obj_reportAndDashboardFolderGroupSharing.length; i++) {
|
|
910
910
|
const obj_reportAndDashboardFolderGroupSharing_item = obj_reportAndDashboardFolderGroupSharing[i];
|
|
911
911
|
const path_reportAndDashboardFolderGroupSharing_item = path_reportAndDashboardFolderGroupSharing + '[' + i + ']';
|
|
912
|
-
const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$
|
|
912
|
+
const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$7(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
|
|
913
913
|
if (referencepath_reportAndDashboardFolderGroupSharing_itemValidationError !== null) {
|
|
914
914
|
let message = 'Object doesn\'t match ReportAndDashboardFolderGroupSharingRepresentation (at "' + path_reportAndDashboardFolderGroupSharing_item + '")\n';
|
|
915
915
|
message += referencepath_reportAndDashboardFolderGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -924,7 +924,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
924
924
|
for (let i = 0; i < obj_sharingRulesCriteriaGroupSharing.length; i++) {
|
|
925
925
|
const obj_sharingRulesCriteriaGroupSharing_item = obj_sharingRulesCriteriaGroupSharing[i];
|
|
926
926
|
const path_sharingRulesCriteriaGroupSharing_item = path_sharingRulesCriteriaGroupSharing + '[' + i + ']';
|
|
927
|
-
const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$
|
|
927
|
+
const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$6(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
|
|
928
928
|
if (referencepath_sharingRulesCriteriaGroupSharing_itemValidationError !== null) {
|
|
929
929
|
let message = 'Object doesn\'t match SharingRulesCriteriaGroupSharingRepresentation (at "' + path_sharingRulesCriteriaGroupSharing_item + '")\n';
|
|
930
930
|
message += referencepath_sharingRulesCriteriaGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -939,7 +939,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
939
939
|
for (let i = 0; i < obj_sharingRulesOwnerGroupSharing.length; i++) {
|
|
940
940
|
const obj_sharingRulesOwnerGroupSharing_item = obj_sharingRulesOwnerGroupSharing[i];
|
|
941
941
|
const path_sharingRulesOwnerGroupSharing_item = path_sharingRulesOwnerGroupSharing + '[' + i + ']';
|
|
942
|
-
const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$
|
|
942
|
+
const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$5(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
|
|
943
943
|
if (referencepath_sharingRulesOwnerGroupSharing_itemValidationError !== null) {
|
|
944
944
|
let message = 'Object doesn\'t match SharingRulesOwnerGroupSharingRepresentation (at "' + path_sharingRulesOwnerGroupSharing_item + '")\n';
|
|
945
945
|
message += referencepath_sharingRulesOwnerGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -949,19 +949,19 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
949
949
|
})();
|
|
950
950
|
return v_error === undefined ? null : v_error;
|
|
951
951
|
}
|
|
952
|
-
const RepresentationType$
|
|
953
|
-
function normalize$
|
|
952
|
+
const RepresentationType$2 = 'PublicGroupSummaryRepresentation';
|
|
953
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
954
954
|
return input;
|
|
955
955
|
}
|
|
956
|
-
const select$
|
|
957
|
-
const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$
|
|
958
|
-
const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$
|
|
959
|
-
const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$
|
|
960
|
-
const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$
|
|
961
|
-
const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$
|
|
956
|
+
const select$7 = function PublicGroupSummaryRepresentationSelect() {
|
|
957
|
+
const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$c();
|
|
958
|
+
const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$b();
|
|
959
|
+
const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$a();
|
|
960
|
+
const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$9();
|
|
961
|
+
const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$8();
|
|
962
962
|
return {
|
|
963
963
|
kind: 'Fragment',
|
|
964
|
-
version: VERSION$
|
|
964
|
+
version: VERSION$4,
|
|
965
965
|
private: [],
|
|
966
966
|
selections: [
|
|
967
967
|
{
|
|
@@ -997,11 +997,11 @@ const select$4 = function PublicGroupSummaryRepresentationSelect() {
|
|
|
997
997
|
]
|
|
998
998
|
};
|
|
999
999
|
};
|
|
1000
|
-
function equals$
|
|
1000
|
+
function equals$4(existing, incoming) {
|
|
1001
1001
|
const existing_includedGroupsSharing = existing.includedGroupsSharing;
|
|
1002
1002
|
const incoming_includedGroupsSharing = incoming.includedGroupsSharing;
|
|
1003
1003
|
const equals_includedGroupsSharing_items = equalsArray(existing_includedGroupsSharing, incoming_includedGroupsSharing, (existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item) => {
|
|
1004
|
-
if (!(equals$
|
|
1004
|
+
if (!(equals$9(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
|
|
1005
1005
|
return false;
|
|
1006
1006
|
}
|
|
1007
1007
|
});
|
|
@@ -1011,7 +1011,7 @@ function equals$2(existing, incoming) {
|
|
|
1011
1011
|
const existing_listViewGroupSharing = existing.listViewGroupSharing;
|
|
1012
1012
|
const incoming_listViewGroupSharing = incoming.listViewGroupSharing;
|
|
1013
1013
|
const equals_listViewGroupSharing_items = equalsArray(existing_listViewGroupSharing, incoming_listViewGroupSharing, (existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item) => {
|
|
1014
|
-
if (!(equals$
|
|
1014
|
+
if (!(equals$8(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
|
|
1015
1015
|
return false;
|
|
1016
1016
|
}
|
|
1017
1017
|
});
|
|
@@ -1021,7 +1021,7 @@ function equals$2(existing, incoming) {
|
|
|
1021
1021
|
const existing_reportAndDashboardFolderGroupSharing = existing.reportAndDashboardFolderGroupSharing;
|
|
1022
1022
|
const incoming_reportAndDashboardFolderGroupSharing = incoming.reportAndDashboardFolderGroupSharing;
|
|
1023
1023
|
const equals_reportAndDashboardFolderGroupSharing_items = equalsArray(existing_reportAndDashboardFolderGroupSharing, incoming_reportAndDashboardFolderGroupSharing, (existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item) => {
|
|
1024
|
-
if (!(equals$
|
|
1024
|
+
if (!(equals$7(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
|
|
1025
1025
|
return false;
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
@@ -1031,7 +1031,7 @@ function equals$2(existing, incoming) {
|
|
|
1031
1031
|
const existing_sharingRulesCriteriaGroupSharing = existing.sharingRulesCriteriaGroupSharing;
|
|
1032
1032
|
const incoming_sharingRulesCriteriaGroupSharing = incoming.sharingRulesCriteriaGroupSharing;
|
|
1033
1033
|
const equals_sharingRulesCriteriaGroupSharing_items = equalsArray(existing_sharingRulesCriteriaGroupSharing, incoming_sharingRulesCriteriaGroupSharing, (existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item) => {
|
|
1034
|
-
if (!(equals$
|
|
1034
|
+
if (!(equals$6(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
|
|
1035
1035
|
return false;
|
|
1036
1036
|
}
|
|
1037
1037
|
});
|
|
@@ -1041,7 +1041,7 @@ function equals$2(existing, incoming) {
|
|
|
1041
1041
|
const existing_sharingRulesOwnerGroupSharing = existing.sharingRulesOwnerGroupSharing;
|
|
1042
1042
|
const incoming_sharingRulesOwnerGroupSharing = incoming.sharingRulesOwnerGroupSharing;
|
|
1043
1043
|
const equals_sharingRulesOwnerGroupSharing_items = equalsArray(existing_sharingRulesOwnerGroupSharing, incoming_sharingRulesOwnerGroupSharing, (existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item) => {
|
|
1044
|
-
if (!(equals$
|
|
1044
|
+
if (!(equals$5(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
|
|
1045
1045
|
return false;
|
|
1046
1046
|
}
|
|
1047
1047
|
});
|
|
@@ -1050,44 +1050,44 @@ function equals$2(existing, incoming) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
return true;
|
|
1052
1052
|
}
|
|
1053
|
-
const ingest$
|
|
1053
|
+
const ingest$2 = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1054
1054
|
if (process.env.NODE_ENV !== 'production') {
|
|
1055
|
-
const validateError = validate$
|
|
1055
|
+
const validateError = validate$4(input);
|
|
1056
1056
|
if (validateError !== null) {
|
|
1057
1057
|
throw validateError;
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
const key = path.fullPath;
|
|
1061
|
-
const ttlToUse = TTL$
|
|
1062
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1061
|
+
const ttlToUse = TTL$2;
|
|
1062
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$4, RepresentationType$2, equals$4);
|
|
1063
1063
|
return createLink(key);
|
|
1064
1064
|
};
|
|
1065
|
-
function getTypeCacheKeys$
|
|
1065
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
1066
1066
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1067
1067
|
const rootKey = fullPathFactory();
|
|
1068
1068
|
rootKeySet.set(rootKey, {
|
|
1069
1069
|
namespace: keyPrefix,
|
|
1070
|
-
representationName: RepresentationType$
|
|
1070
|
+
representationName: RepresentationType$2,
|
|
1071
1071
|
mergeable: false
|
|
1072
1072
|
});
|
|
1073
1073
|
}
|
|
1074
1074
|
|
|
1075
|
-
function select$
|
|
1076
|
-
return select$
|
|
1075
|
+
function select$6(luvio, params) {
|
|
1076
|
+
return select$7();
|
|
1077
1077
|
}
|
|
1078
|
-
function keyBuilder$
|
|
1078
|
+
function keyBuilder$5(luvio, params) {
|
|
1079
1079
|
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 + ')';
|
|
1080
1080
|
}
|
|
1081
|
-
function getResponseCacheKeys$
|
|
1082
|
-
getTypeCacheKeys$
|
|
1081
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1082
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
1083
1083
|
}
|
|
1084
|
-
function ingestSuccess$
|
|
1084
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1085
1085
|
const { body } = response;
|
|
1086
|
-
const key = keyBuilder$
|
|
1087
|
-
luvio.storeIngest(key, ingest$
|
|
1086
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
1087
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1088
1088
|
const snapshot = luvio.storeLookup({
|
|
1089
1089
|
recordId: key,
|
|
1090
|
-
node: select$
|
|
1090
|
+
node: select$6(),
|
|
1091
1091
|
variables: {},
|
|
1092
1092
|
}, snapshotRefresh);
|
|
1093
1093
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1098,19 +1098,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1098
1098
|
deepFreeze(snapshot.data);
|
|
1099
1099
|
return snapshot;
|
|
1100
1100
|
}
|
|
1101
|
-
function ingestError$
|
|
1102
|
-
const key = keyBuilder$
|
|
1101
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1102
|
+
const key = keyBuilder$5(luvio, params);
|
|
1103
1103
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1104
1104
|
const storeMetadataParams = {
|
|
1105
|
-
ttl: TTL$
|
|
1105
|
+
ttl: TTL$2,
|
|
1106
1106
|
namespace: keyPrefix,
|
|
1107
|
-
version: VERSION$
|
|
1108
|
-
representationName: RepresentationType$
|
|
1107
|
+
version: VERSION$4,
|
|
1108
|
+
representationName: RepresentationType$2
|
|
1109
1109
|
};
|
|
1110
1110
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1111
1111
|
return errorSnapshot;
|
|
1112
1112
|
}
|
|
1113
|
-
function createResourceRequest$
|
|
1113
|
+
function createResourceRequest$2(config) {
|
|
1114
1114
|
const headers = {};
|
|
1115
1115
|
return {
|
|
1116
1116
|
baseUri: '/services/data/v61.0',
|
|
@@ -1124,7 +1124,7 @@ function createResourceRequest$1(config) {
|
|
|
1124
1124
|
};
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
1127
|
-
const adapterName$
|
|
1127
|
+
const adapterName$2 = 'getPublicGroupShareData';
|
|
1128
1128
|
const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
1129
1129
|
generateParamConfigMetadata('entityKeyPrefix', true, 2 /* Body */, 0 /* String */),
|
|
1130
1130
|
generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
|
|
@@ -1134,90 +1134,90 @@ const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
|
1134
1134
|
generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
|
|
1135
1135
|
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
1136
1136
|
];
|
|
1137
|
-
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1138
|
-
const createResourceParams$
|
|
1139
|
-
function keyBuilder$
|
|
1140
|
-
const resourceParams = createResourceParams$
|
|
1141
|
-
return keyBuilder$
|
|
1137
|
+
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1138
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1139
|
+
function keyBuilder$4(luvio, config) {
|
|
1140
|
+
const resourceParams = createResourceParams$2(config);
|
|
1141
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
1142
1142
|
}
|
|
1143
|
-
function typeCheckConfig$
|
|
1143
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
1144
1144
|
const config = {};
|
|
1145
|
-
typeCheckConfig$
|
|
1145
|
+
typeCheckConfig$4(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1146
1146
|
return config;
|
|
1147
1147
|
}
|
|
1148
|
-
function validateAdapterConfig$
|
|
1148
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
1149
1149
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1150
1150
|
return null;
|
|
1151
1151
|
}
|
|
1152
1152
|
if (process.env.NODE_ENV !== 'production') {
|
|
1153
1153
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1154
1154
|
}
|
|
1155
|
-
const config = typeCheckConfig$
|
|
1155
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
1156
1156
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1157
1157
|
return null;
|
|
1158
1158
|
}
|
|
1159
1159
|
return config;
|
|
1160
1160
|
}
|
|
1161
|
-
function adapterFragment$
|
|
1162
|
-
createResourceParams$
|
|
1163
|
-
return select$
|
|
1161
|
+
function adapterFragment$2(luvio, config) {
|
|
1162
|
+
createResourceParams$2(config);
|
|
1163
|
+
return select$6();
|
|
1164
1164
|
}
|
|
1165
|
-
function onFetchResponseSuccess$
|
|
1166
|
-
const snapshot = ingestSuccess$
|
|
1165
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1166
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
1167
1167
|
config,
|
|
1168
|
-
resolve: () => buildNetworkSnapshot$
|
|
1168
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1169
1169
|
});
|
|
1170
1170
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1171
1171
|
}
|
|
1172
|
-
function onFetchResponseError$
|
|
1173
|
-
const snapshot = ingestError$
|
|
1172
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
1173
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
1174
1174
|
config,
|
|
1175
|
-
resolve: () => buildNetworkSnapshot$
|
|
1175
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1176
1176
|
});
|
|
1177
1177
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1178
1178
|
}
|
|
1179
|
-
function buildNetworkSnapshot$
|
|
1180
|
-
const resourceParams = createResourceParams$
|
|
1181
|
-
const request = createResourceRequest$
|
|
1179
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
1180
|
+
const resourceParams = createResourceParams$2(config);
|
|
1181
|
+
const request = createResourceRequest$2(resourceParams);
|
|
1182
1182
|
return luvio.dispatchResourceRequest(request, options)
|
|
1183
1183
|
.then((response) => {
|
|
1184
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1184
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
1185
1185
|
const cache = new StoreKeyMap();
|
|
1186
|
-
getResponseCacheKeys$
|
|
1186
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1187
1187
|
return cache;
|
|
1188
1188
|
});
|
|
1189
1189
|
}, (response) => {
|
|
1190
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1190
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1194
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1193
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1194
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
|
|
1195
1195
|
}
|
|
1196
|
-
function buildCachedSnapshotCachePolicy$
|
|
1196
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1197
1197
|
const { luvio, config } = context;
|
|
1198
1198
|
const selector = {
|
|
1199
|
-
recordId: keyBuilder$
|
|
1200
|
-
node: adapterFragment$
|
|
1199
|
+
recordId: keyBuilder$4(luvio, config),
|
|
1200
|
+
node: adapterFragment$2(luvio, config),
|
|
1201
1201
|
variables: {},
|
|
1202
1202
|
};
|
|
1203
1203
|
const cacheSnapshot = storeLookup(selector, {
|
|
1204
1204
|
config,
|
|
1205
|
-
resolve: () => buildNetworkSnapshot$
|
|
1205
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1206
1206
|
});
|
|
1207
1207
|
return cacheSnapshot;
|
|
1208
1208
|
}
|
|
1209
1209
|
const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPublicGroupShareData(untrustedConfig, requestContext) {
|
|
1210
|
-
const config = validateAdapterConfig$
|
|
1210
|
+
const config = validateAdapterConfig$2(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
|
|
1211
1211
|
// Invalid or incomplete config
|
|
1212
1212
|
if (config === null) {
|
|
1213
1213
|
return null;
|
|
1214
1214
|
}
|
|
1215
1215
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1216
|
-
buildCachedSnapshotCachePolicy$
|
|
1216
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1217
1217
|
};
|
|
1218
1218
|
|
|
1219
|
-
const VERSION$
|
|
1220
|
-
function validate$
|
|
1219
|
+
const VERSION$3 = "8f1b312aa04c8869624b95b9e3f3cd4e";
|
|
1220
|
+
function validate$3(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
1221
1221
|
const v_error = (() => {
|
|
1222
1222
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1223
1223
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1245,10 +1245,10 @@ function validate$1(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
|
1245
1245
|
})();
|
|
1246
1246
|
return v_error === undefined ? null : v_error;
|
|
1247
1247
|
}
|
|
1248
|
-
const select$
|
|
1248
|
+
const select$5 = function SobjectOutputSharingRepresentationSelect() {
|
|
1249
1249
|
return {
|
|
1250
1250
|
kind: 'Fragment',
|
|
1251
|
-
version: VERSION$
|
|
1251
|
+
version: VERSION$3,
|
|
1252
1252
|
private: [],
|
|
1253
1253
|
selections: [
|
|
1254
1254
|
{
|
|
@@ -1270,7 +1270,7 @@ const select$2 = function SobjectOutputSharingRepresentationSelect() {
|
|
|
1270
1270
|
]
|
|
1271
1271
|
};
|
|
1272
1272
|
};
|
|
1273
|
-
function equals$
|
|
1273
|
+
function equals$3(existing, incoming) {
|
|
1274
1274
|
const existing_apiName = existing.apiName;
|
|
1275
1275
|
const incoming_apiName = incoming.apiName;
|
|
1276
1276
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1294,9 +1294,9 @@ function equals$1(existing, incoming) {
|
|
|
1294
1294
|
return true;
|
|
1295
1295
|
}
|
|
1296
1296
|
|
|
1297
|
-
const TTL = 900000;
|
|
1298
|
-
const VERSION = "891459dfe3e992adddad156c898d3aef";
|
|
1299
|
-
function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
1297
|
+
const TTL$1 = 900000;
|
|
1298
|
+
const VERSION$2 = "891459dfe3e992adddad156c898d3aef";
|
|
1299
|
+
function validate$2(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
1300
1300
|
const v_error = (() => {
|
|
1301
1301
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1302
1302
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1314,7 +1314,7 @@ function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
1314
1314
|
for (let i = 0; i < obj_sobjects.length; i++) {
|
|
1315
1315
|
const obj_sobjects_item = obj_sobjects[i];
|
|
1316
1316
|
const path_sobjects_item = path_sobjects + '[' + i + ']';
|
|
1317
|
-
const referencepath_sobjects_itemValidationError = validate$
|
|
1317
|
+
const referencepath_sobjects_itemValidationError = validate$3(obj_sobjects_item, path_sobjects_item);
|
|
1318
1318
|
if (referencepath_sobjects_itemValidationError !== null) {
|
|
1319
1319
|
let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
|
|
1320
1320
|
message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1324,15 +1324,15 @@ function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
1324
1324
|
})();
|
|
1325
1325
|
return v_error === undefined ? null : v_error;
|
|
1326
1326
|
}
|
|
1327
|
-
const RepresentationType = 'SobjectsOutputSharingRepresentation';
|
|
1328
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1327
|
+
const RepresentationType$1 = 'SobjectsOutputSharingRepresentation';
|
|
1328
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1329
1329
|
return input;
|
|
1330
1330
|
}
|
|
1331
|
-
const select$
|
|
1332
|
-
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$
|
|
1331
|
+
const select$4 = function SobjectsOutputSharingRepresentationSelect() {
|
|
1332
|
+
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$5();
|
|
1333
1333
|
return {
|
|
1334
1334
|
kind: 'Fragment',
|
|
1335
|
-
version: VERSION,
|
|
1335
|
+
version: VERSION$2,
|
|
1336
1336
|
private: [],
|
|
1337
1337
|
selections: [
|
|
1338
1338
|
{
|
|
@@ -1348,7 +1348,7 @@ const select$1 = function SobjectsOutputSharingRepresentationSelect() {
|
|
|
1348
1348
|
]
|
|
1349
1349
|
};
|
|
1350
1350
|
};
|
|
1351
|
-
function equals(existing, incoming) {
|
|
1351
|
+
function equals$2(existing, incoming) {
|
|
1352
1352
|
const existing_size = existing.size;
|
|
1353
1353
|
const incoming_size = incoming.size;
|
|
1354
1354
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1357,7 +1357,7 @@ function equals(existing, incoming) {
|
|
|
1357
1357
|
const existing_sobjects = existing.sobjects;
|
|
1358
1358
|
const incoming_sobjects = incoming.sobjects;
|
|
1359
1359
|
const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
|
|
1360
|
-
if (!(equals$
|
|
1360
|
+
if (!(equals$3(existing_sobjects_item, incoming_sobjects_item))) {
|
|
1361
1361
|
return false;
|
|
1362
1362
|
}
|
|
1363
1363
|
});
|
|
@@ -1366,7 +1366,305 @@ function equals(existing, incoming) {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
return true;
|
|
1368
1368
|
}
|
|
1369
|
-
const ingest = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1369
|
+
const ingest$1 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1370
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1371
|
+
const validateError = validate$2(input);
|
|
1372
|
+
if (validateError !== null) {
|
|
1373
|
+
throw validateError;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
const key = path.fullPath;
|
|
1377
|
+
const ttlToUse = TTL$1;
|
|
1378
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sharing", VERSION$2, RepresentationType$1, equals$2);
|
|
1379
|
+
return createLink(key);
|
|
1380
|
+
};
|
|
1381
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1382
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1383
|
+
const rootKey = fullPathFactory();
|
|
1384
|
+
rootKeySet.set(rootKey, {
|
|
1385
|
+
namespace: keyPrefix,
|
|
1386
|
+
representationName: RepresentationType$1,
|
|
1387
|
+
mergeable: false
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
function select$3(luvio, params) {
|
|
1392
|
+
return select$4();
|
|
1393
|
+
}
|
|
1394
|
+
function keyBuilder$3(luvio, params) {
|
|
1395
|
+
return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
|
|
1396
|
+
}
|
|
1397
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1398
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1399
|
+
}
|
|
1400
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
1401
|
+
const { body } = response;
|
|
1402
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
1403
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1404
|
+
const snapshot = luvio.storeLookup({
|
|
1405
|
+
recordId: key,
|
|
1406
|
+
node: select$3(),
|
|
1407
|
+
variables: {},
|
|
1408
|
+
}, snapshotRefresh);
|
|
1409
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1410
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1411
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
deepFreeze(snapshot.data);
|
|
1415
|
+
return snapshot;
|
|
1416
|
+
}
|
|
1417
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
1418
|
+
const key = keyBuilder$3(luvio, params);
|
|
1419
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1420
|
+
const storeMetadataParams = {
|
|
1421
|
+
ttl: TTL$1,
|
|
1422
|
+
namespace: keyPrefix,
|
|
1423
|
+
version: VERSION$2,
|
|
1424
|
+
representationName: RepresentationType$1
|
|
1425
|
+
};
|
|
1426
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1427
|
+
return errorSnapshot;
|
|
1428
|
+
}
|
|
1429
|
+
function createResourceRequest$1(config) {
|
|
1430
|
+
const headers = {};
|
|
1431
|
+
return {
|
|
1432
|
+
baseUri: '/services/data/v61.0',
|
|
1433
|
+
basePath: '/sharing/sobjects',
|
|
1434
|
+
method: 'get',
|
|
1435
|
+
body: null,
|
|
1436
|
+
urlParams: {},
|
|
1437
|
+
queryParams: config.queryParams,
|
|
1438
|
+
headers,
|
|
1439
|
+
priority: 'normal',
|
|
1440
|
+
};
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
const adapterName$1 = 'getAllSobjects';
|
|
1444
|
+
const getAllSobjects_ConfigPropertyMetadata = [
|
|
1445
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1446
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1447
|
+
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1448
|
+
];
|
|
1449
|
+
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAllSobjects_ConfigPropertyMetadata);
|
|
1450
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getAllSobjects_ConfigPropertyMetadata);
|
|
1451
|
+
function keyBuilder$2(luvio, config) {
|
|
1452
|
+
const resourceParams = createResourceParams$1(config);
|
|
1453
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
1454
|
+
}
|
|
1455
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
1456
|
+
const config = {};
|
|
1457
|
+
typeCheckConfig$4(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
|
|
1458
|
+
return config;
|
|
1459
|
+
}
|
|
1460
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
1461
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1462
|
+
return null;
|
|
1463
|
+
}
|
|
1464
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1465
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1466
|
+
}
|
|
1467
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
1468
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1469
|
+
return null;
|
|
1470
|
+
}
|
|
1471
|
+
return config;
|
|
1472
|
+
}
|
|
1473
|
+
function adapterFragment$1(luvio, config) {
|
|
1474
|
+
createResourceParams$1(config);
|
|
1475
|
+
return select$3();
|
|
1476
|
+
}
|
|
1477
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1478
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
1479
|
+
config,
|
|
1480
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1481
|
+
});
|
|
1482
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1483
|
+
}
|
|
1484
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1485
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1486
|
+
config,
|
|
1487
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1488
|
+
});
|
|
1489
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1490
|
+
}
|
|
1491
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
1492
|
+
const resourceParams = createResourceParams$1(config);
|
|
1493
|
+
const request = createResourceRequest$1(resourceParams);
|
|
1494
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1495
|
+
.then((response) => {
|
|
1496
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1497
|
+
const cache = new StoreKeyMap();
|
|
1498
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1499
|
+
return cache;
|
|
1500
|
+
});
|
|
1501
|
+
}, (response) => {
|
|
1502
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
1503
|
+
});
|
|
1504
|
+
}
|
|
1505
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1506
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1507
|
+
}
|
|
1508
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1509
|
+
const { luvio, config } = context;
|
|
1510
|
+
const selector = {
|
|
1511
|
+
recordId: keyBuilder$2(luvio, config),
|
|
1512
|
+
node: adapterFragment$1(luvio, config),
|
|
1513
|
+
variables: {},
|
|
1514
|
+
};
|
|
1515
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1516
|
+
config,
|
|
1517
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1518
|
+
});
|
|
1519
|
+
return cacheSnapshot;
|
|
1520
|
+
}
|
|
1521
|
+
const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
|
|
1522
|
+
const config = validateAdapterConfig$1(untrustedConfig, getAllSobjects_ConfigPropertyNames);
|
|
1523
|
+
// Invalid or incomplete config
|
|
1524
|
+
if (config === null) {
|
|
1525
|
+
return null;
|
|
1526
|
+
}
|
|
1527
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1528
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1529
|
+
};
|
|
1530
|
+
|
|
1531
|
+
const VERSION$1 = "348a7399778e8986878f81df955a8eab";
|
|
1532
|
+
function validate$1(obj, path = 'UserPermissionInfoRepresentation') {
|
|
1533
|
+
const v_error = (() => {
|
|
1534
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1535
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1536
|
+
}
|
|
1537
|
+
const obj_userPermApiName = obj.userPermApiName;
|
|
1538
|
+
const path_userPermApiName = path + '.userPermApiName';
|
|
1539
|
+
if (typeof obj_userPermApiName !== 'string') {
|
|
1540
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermApiName + '" (at "' + path_userPermApiName + '")');
|
|
1541
|
+
}
|
|
1542
|
+
const obj_userPermDescription = obj.userPermDescription;
|
|
1543
|
+
const path_userPermDescription = path + '.userPermDescription';
|
|
1544
|
+
if (typeof obj_userPermDescription !== 'string') {
|
|
1545
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermDescription + '" (at "' + path_userPermDescription + '")');
|
|
1546
|
+
}
|
|
1547
|
+
const obj_userPermLabel = obj.userPermLabel;
|
|
1548
|
+
const path_userPermLabel = path + '.userPermLabel';
|
|
1549
|
+
if (typeof obj_userPermLabel !== 'string') {
|
|
1550
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermLabel + '" (at "' + path_userPermLabel + '")');
|
|
1551
|
+
}
|
|
1552
|
+
})();
|
|
1553
|
+
return v_error === undefined ? null : v_error;
|
|
1554
|
+
}
|
|
1555
|
+
const select$2 = function UserPermissionInfoRepresentationSelect() {
|
|
1556
|
+
return {
|
|
1557
|
+
kind: 'Fragment',
|
|
1558
|
+
version: VERSION$1,
|
|
1559
|
+
private: [],
|
|
1560
|
+
selections: [
|
|
1561
|
+
{
|
|
1562
|
+
name: 'userPermApiName',
|
|
1563
|
+
kind: 'Scalar'
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
name: 'userPermDescription',
|
|
1567
|
+
kind: 'Scalar'
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
name: 'userPermLabel',
|
|
1571
|
+
kind: 'Scalar'
|
|
1572
|
+
}
|
|
1573
|
+
]
|
|
1574
|
+
};
|
|
1575
|
+
};
|
|
1576
|
+
function equals$1(existing, incoming) {
|
|
1577
|
+
const existing_userPermApiName = existing.userPermApiName;
|
|
1578
|
+
const incoming_userPermApiName = incoming.userPermApiName;
|
|
1579
|
+
if (!(existing_userPermApiName === incoming_userPermApiName)) {
|
|
1580
|
+
return false;
|
|
1581
|
+
}
|
|
1582
|
+
const existing_userPermDescription = existing.userPermDescription;
|
|
1583
|
+
const incoming_userPermDescription = incoming.userPermDescription;
|
|
1584
|
+
if (!(existing_userPermDescription === incoming_userPermDescription)) {
|
|
1585
|
+
return false;
|
|
1586
|
+
}
|
|
1587
|
+
const existing_userPermLabel = existing.userPermLabel;
|
|
1588
|
+
const incoming_userPermLabel = incoming.userPermLabel;
|
|
1589
|
+
if (!(existing_userPermLabel === incoming_userPermLabel)) {
|
|
1590
|
+
return false;
|
|
1591
|
+
}
|
|
1592
|
+
return true;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
const TTL = 600000;
|
|
1596
|
+
const VERSION = "627ab68dfb8c0174c1e9dc9f2701c1b2";
|
|
1597
|
+
function validate(obj, path = 'UserPermissionsInfoListRepresentation') {
|
|
1598
|
+
const v_error = (() => {
|
|
1599
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1600
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1601
|
+
}
|
|
1602
|
+
const obj_size = obj.size;
|
|
1603
|
+
const path_size = path + '.size';
|
|
1604
|
+
if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
|
|
1605
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
1606
|
+
}
|
|
1607
|
+
const obj_userPermissions = obj.userPermissions;
|
|
1608
|
+
const path_userPermissions = path + '.userPermissions';
|
|
1609
|
+
if (!ArrayIsArray(obj_userPermissions)) {
|
|
1610
|
+
return new TypeError('Expected "array" but received "' + typeof obj_userPermissions + '" (at "' + path_userPermissions + '")');
|
|
1611
|
+
}
|
|
1612
|
+
for (let i = 0; i < obj_userPermissions.length; i++) {
|
|
1613
|
+
const obj_userPermissions_item = obj_userPermissions[i];
|
|
1614
|
+
const path_userPermissions_item = path_userPermissions + '[' + i + ']';
|
|
1615
|
+
const referencepath_userPermissions_itemValidationError = validate$1(obj_userPermissions_item, path_userPermissions_item);
|
|
1616
|
+
if (referencepath_userPermissions_itemValidationError !== null) {
|
|
1617
|
+
let message = 'Object doesn\'t match UserPermissionInfoRepresentation (at "' + path_userPermissions_item + '")\n';
|
|
1618
|
+
message += referencepath_userPermissions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1619
|
+
return new TypeError(message);
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
})();
|
|
1623
|
+
return v_error === undefined ? null : v_error;
|
|
1624
|
+
}
|
|
1625
|
+
const RepresentationType = 'UserPermissionsInfoListRepresentation';
|
|
1626
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1627
|
+
return input;
|
|
1628
|
+
}
|
|
1629
|
+
const select$1 = function UserPermissionsInfoListRepresentationSelect() {
|
|
1630
|
+
const { selections: UserPermissionInfoRepresentation__selections, opaque: UserPermissionInfoRepresentation__opaque, } = select$2();
|
|
1631
|
+
return {
|
|
1632
|
+
kind: 'Fragment',
|
|
1633
|
+
version: VERSION,
|
|
1634
|
+
private: [],
|
|
1635
|
+
selections: [
|
|
1636
|
+
{
|
|
1637
|
+
name: 'size',
|
|
1638
|
+
kind: 'Scalar'
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
name: 'userPermissions',
|
|
1642
|
+
kind: 'Object',
|
|
1643
|
+
plural: true,
|
|
1644
|
+
selections: UserPermissionInfoRepresentation__selections
|
|
1645
|
+
}
|
|
1646
|
+
]
|
|
1647
|
+
};
|
|
1648
|
+
};
|
|
1649
|
+
function equals(existing, incoming) {
|
|
1650
|
+
const existing_size = existing.size;
|
|
1651
|
+
const incoming_size = incoming.size;
|
|
1652
|
+
if (!(existing_size === incoming_size)) {
|
|
1653
|
+
return false;
|
|
1654
|
+
}
|
|
1655
|
+
const existing_userPermissions = existing.userPermissions;
|
|
1656
|
+
const incoming_userPermissions = incoming.userPermissions;
|
|
1657
|
+
const equals_userPermissions_items = equalsArray(existing_userPermissions, incoming_userPermissions, (existing_userPermissions_item, incoming_userPermissions_item) => {
|
|
1658
|
+
if (!(equals$1(existing_userPermissions_item, incoming_userPermissions_item))) {
|
|
1659
|
+
return false;
|
|
1660
|
+
}
|
|
1661
|
+
});
|
|
1662
|
+
if (equals_userPermissions_items === false) {
|
|
1663
|
+
return false;
|
|
1664
|
+
}
|
|
1665
|
+
return true;
|
|
1666
|
+
}
|
|
1667
|
+
const ingest = function UserPermissionsInfoListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1370
1668
|
if (process.env.NODE_ENV !== 'production') {
|
|
1371
1669
|
const validateError = validate(input);
|
|
1372
1670
|
if (validateError !== null) {
|
|
@@ -1392,7 +1690,7 @@ function select(luvio, params) {
|
|
|
1392
1690
|
return select$1();
|
|
1393
1691
|
}
|
|
1394
1692
|
function keyBuilder$1(luvio, params) {
|
|
1395
|
-
return keyPrefix + '::
|
|
1693
|
+
return keyPrefix + '::UserPermissionsInfoListRepresentation:(' + 'entityName:' + params.queryParams.entityName + ',' + 'recordId:' + params.queryParams.recordId + ')';
|
|
1396
1694
|
}
|
|
1397
1695
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1398
1696
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -1430,7 +1728,7 @@ function createResourceRequest(config) {
|
|
|
1430
1728
|
const headers = {};
|
|
1431
1729
|
return {
|
|
1432
1730
|
baseUri: '/services/data/v61.0',
|
|
1433
|
-
basePath: '/sharing/
|
|
1731
|
+
basePath: '/sharing/userPermissions',
|
|
1434
1732
|
method: 'get',
|
|
1435
1733
|
body: null,
|
|
1436
1734
|
urlParams: {},
|
|
@@ -1440,21 +1738,20 @@ function createResourceRequest(config) {
|
|
|
1440
1738
|
};
|
|
1441
1739
|
}
|
|
1442
1740
|
|
|
1443
|
-
const adapterName = '
|
|
1444
|
-
const
|
|
1445
|
-
generateParamConfigMetadata('
|
|
1446
|
-
generateParamConfigMetadata('
|
|
1447
|
-
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1741
|
+
const adapterName = 'getUserPermissions';
|
|
1742
|
+
const getUserPermissions_ConfigPropertyMetadata = [
|
|
1743
|
+
generateParamConfigMetadata('entityName', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1744
|
+
generateParamConfigMetadata('recordId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1448
1745
|
];
|
|
1449
|
-
const
|
|
1450
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1746
|
+
const getUserPermissions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUserPermissions_ConfigPropertyMetadata);
|
|
1747
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$4(getUserPermissions_ConfigPropertyMetadata);
|
|
1451
1748
|
function keyBuilder(luvio, config) {
|
|
1452
1749
|
const resourceParams = createResourceParams(config);
|
|
1453
1750
|
return keyBuilder$1(luvio, resourceParams);
|
|
1454
1751
|
}
|
|
1455
1752
|
function typeCheckConfig(untrustedConfig) {
|
|
1456
1753
|
const config = {};
|
|
1457
|
-
typeCheckConfig$
|
|
1754
|
+
typeCheckConfig$4(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
|
|
1458
1755
|
return config;
|
|
1459
1756
|
}
|
|
1460
1757
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1503,7 +1800,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1503
1800
|
});
|
|
1504
1801
|
}
|
|
1505
1802
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1506
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1803
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1507
1804
|
}
|
|
1508
1805
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1509
1806
|
const { luvio, config } = context;
|
|
@@ -1518,8 +1815,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
1518
1815
|
});
|
|
1519
1816
|
return cacheSnapshot;
|
|
1520
1817
|
}
|
|
1521
|
-
const
|
|
1522
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
1818
|
+
const getUserPermissionsAdapterFactory = (luvio) => function sharing__getUserPermissions(untrustedConfig, requestContext) {
|
|
1819
|
+
const config = validateAdapterConfig(untrustedConfig, getUserPermissions_ConfigPropertyNames);
|
|
1523
1820
|
// Invalid or incomplete config
|
|
1524
1821
|
if (config === null) {
|
|
1525
1822
|
return null;
|
|
@@ -1528,4 +1825,4 @@ const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects
|
|
|
1528
1825
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1529
1826
|
};
|
|
1530
1827
|
|
|
1531
|
-
export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory };
|
|
1828
|
+
export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory, getUserPermissionsAdapterFactory };
|