@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
|
@@ -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 = "7d75e40a9fde9f60ae02b6dde36257ce";
|
|
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 + '")');
|
|
@@ -102,6 +102,11 @@ function validate$a(obj, path = 'PublicGroupRepresentation') {
|
|
|
102
102
|
if (typeof obj_developerName !== 'string') {
|
|
103
103
|
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
104
104
|
}
|
|
105
|
+
const obj_groupId = obj.groupId;
|
|
106
|
+
const path_groupId = path + '.groupId';
|
|
107
|
+
if (typeof obj_groupId !== 'string') {
|
|
108
|
+
return new TypeError('Expected "string" but received "' + typeof obj_groupId + '" (at "' + path_groupId + '")');
|
|
109
|
+
}
|
|
105
110
|
const obj_includeBosses = obj.includeBosses;
|
|
106
111
|
const path_includeBosses = path + '.includeBosses';
|
|
107
112
|
if (typeof obj_includeBosses !== 'boolean') {
|
|
@@ -115,16 +120,20 @@ function validate$a(obj, path = 'PublicGroupRepresentation') {
|
|
|
115
120
|
})();
|
|
116
121
|
return v_error === undefined ? null : v_error;
|
|
117
122
|
}
|
|
118
|
-
const select$
|
|
123
|
+
const select$g = function PublicGroupRepresentationSelect() {
|
|
119
124
|
return {
|
|
120
125
|
kind: 'Fragment',
|
|
121
|
-
version: VERSION$
|
|
126
|
+
version: VERSION$c,
|
|
122
127
|
private: [],
|
|
123
128
|
selections: [
|
|
124
129
|
{
|
|
125
130
|
name: 'developerName',
|
|
126
131
|
kind: 'Scalar'
|
|
127
132
|
},
|
|
133
|
+
{
|
|
134
|
+
name: 'groupId',
|
|
135
|
+
kind: 'Scalar'
|
|
136
|
+
},
|
|
128
137
|
{
|
|
129
138
|
name: 'includeBosses',
|
|
130
139
|
kind: 'Scalar'
|
|
@@ -136,7 +145,7 @@ const select$d = function PublicGroupRepresentationSelect() {
|
|
|
136
145
|
]
|
|
137
146
|
};
|
|
138
147
|
};
|
|
139
|
-
function equals$
|
|
148
|
+
function equals$c(existing, incoming) {
|
|
140
149
|
const existing_includeBosses = existing.includeBosses;
|
|
141
150
|
const incoming_includeBosses = incoming.includeBosses;
|
|
142
151
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -147,6 +156,11 @@ function equals$a(existing, incoming) {
|
|
|
147
156
|
if (!(existing_developerName === incoming_developerName)) {
|
|
148
157
|
return false;
|
|
149
158
|
}
|
|
159
|
+
const existing_groupId = existing.groupId;
|
|
160
|
+
const incoming_groupId = incoming.groupId;
|
|
161
|
+
if (!(existing_groupId === incoming_groupId)) {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
150
164
|
const existing_name = existing.name;
|
|
151
165
|
const incoming_name = incoming.name;
|
|
152
166
|
if (!(existing_name === incoming_name)) {
|
|
@@ -155,8 +169,8 @@ function equals$a(existing, incoming) {
|
|
|
155
169
|
return true;
|
|
156
170
|
}
|
|
157
171
|
|
|
158
|
-
const VERSION$
|
|
159
|
-
function validate$
|
|
172
|
+
const VERSION$b = "89ae3fce0ad09282e80bd77a9c483003";
|
|
173
|
+
function validate$b(obj, path = 'QueueRepresentation') {
|
|
160
174
|
const v_error = (() => {
|
|
161
175
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
162
176
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -171,13 +185,18 @@ function validate$9(obj, path = 'QueueRepresentation') {
|
|
|
171
185
|
if (typeof obj_name !== 'string') {
|
|
172
186
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
173
187
|
}
|
|
188
|
+
const obj_queueId = obj.queueId;
|
|
189
|
+
const path_queueId = path + '.queueId';
|
|
190
|
+
if (typeof obj_queueId !== 'string') {
|
|
191
|
+
return new TypeError('Expected "string" but received "' + typeof obj_queueId + '" (at "' + path_queueId + '")');
|
|
192
|
+
}
|
|
174
193
|
})();
|
|
175
194
|
return v_error === undefined ? null : v_error;
|
|
176
195
|
}
|
|
177
|
-
const select$
|
|
196
|
+
const select$f = function QueueRepresentationSelect() {
|
|
178
197
|
return {
|
|
179
198
|
kind: 'Fragment',
|
|
180
|
-
version: VERSION$
|
|
199
|
+
version: VERSION$b,
|
|
181
200
|
private: [],
|
|
182
201
|
selections: [
|
|
183
202
|
{
|
|
@@ -187,11 +206,15 @@ const select$c = function QueueRepresentationSelect() {
|
|
|
187
206
|
{
|
|
188
207
|
name: 'name',
|
|
189
208
|
kind: 'Scalar'
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
name: 'queueId',
|
|
212
|
+
kind: 'Scalar'
|
|
190
213
|
}
|
|
191
214
|
]
|
|
192
215
|
};
|
|
193
216
|
};
|
|
194
|
-
function equals$
|
|
217
|
+
function equals$b(existing, incoming) {
|
|
195
218
|
const existing_developerName = existing.developerName;
|
|
196
219
|
const incoming_developerName = incoming.developerName;
|
|
197
220
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -202,12 +225,17 @@ function equals$9(existing, incoming) {
|
|
|
202
225
|
if (!(existing_name === incoming_name)) {
|
|
203
226
|
return false;
|
|
204
227
|
}
|
|
228
|
+
const existing_queueId = existing.queueId;
|
|
229
|
+
const incoming_queueId = incoming.queueId;
|
|
230
|
+
if (!(existing_queueId === incoming_queueId)) {
|
|
231
|
+
return false;
|
|
232
|
+
}
|
|
205
233
|
return true;
|
|
206
234
|
}
|
|
207
235
|
|
|
208
|
-
const TTL$
|
|
209
|
-
const VERSION$
|
|
210
|
-
function validate$
|
|
236
|
+
const TTL$3 = 300;
|
|
237
|
+
const VERSION$a = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
238
|
+
function validate$a(obj, path = 'GroupCollectionRepresentation') {
|
|
211
239
|
const v_error = (() => {
|
|
212
240
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
213
241
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -220,7 +248,7 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
|
220
248
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
221
249
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
222
250
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
223
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
251
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$c(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
224
252
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
225
253
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
226
254
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -235,7 +263,7 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
|
235
263
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
236
264
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
237
265
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
238
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
266
|
+
const referencepath_queueRepresentations_itemValidationError = validate$b(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
239
267
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
240
268
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
241
269
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -245,16 +273,16 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
|
245
273
|
})();
|
|
246
274
|
return v_error === undefined ? null : v_error;
|
|
247
275
|
}
|
|
248
|
-
const RepresentationType$
|
|
249
|
-
function normalize$
|
|
276
|
+
const RepresentationType$3 = 'GroupCollectionRepresentation';
|
|
277
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
250
278
|
return input;
|
|
251
279
|
}
|
|
252
|
-
const select$
|
|
253
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
254
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
280
|
+
const select$e = function GroupCollectionRepresentationSelect() {
|
|
281
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$g();
|
|
282
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$f();
|
|
255
283
|
return {
|
|
256
284
|
kind: 'Fragment',
|
|
257
|
-
version: VERSION$
|
|
285
|
+
version: VERSION$a,
|
|
258
286
|
private: [],
|
|
259
287
|
selections: [
|
|
260
288
|
{
|
|
@@ -272,11 +300,11 @@ const select$b = function GroupCollectionRepresentationSelect() {
|
|
|
272
300
|
]
|
|
273
301
|
};
|
|
274
302
|
};
|
|
275
|
-
function equals$
|
|
303
|
+
function equals$a(existing, incoming) {
|
|
276
304
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
277
305
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
278
306
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
279
|
-
if (!(equals$
|
|
307
|
+
if (!(equals$c(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
280
308
|
return false;
|
|
281
309
|
}
|
|
282
310
|
});
|
|
@@ -286,7 +314,7 @@ function equals$8(existing, incoming) {
|
|
|
286
314
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
287
315
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
288
316
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
289
|
-
if (!(equals$
|
|
317
|
+
if (!(equals$b(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
290
318
|
return false;
|
|
291
319
|
}
|
|
292
320
|
});
|
|
@@ -295,44 +323,44 @@ function equals$8(existing, incoming) {
|
|
|
295
323
|
}
|
|
296
324
|
return true;
|
|
297
325
|
}
|
|
298
|
-
const ingest$
|
|
326
|
+
const ingest$3 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
299
327
|
if (process.env.NODE_ENV !== 'production') {
|
|
300
|
-
const validateError = validate$
|
|
328
|
+
const validateError = validate$a(input);
|
|
301
329
|
if (validateError !== null) {
|
|
302
330
|
throw validateError;
|
|
303
331
|
}
|
|
304
332
|
}
|
|
305
333
|
const key = path.fullPath;
|
|
306
|
-
const ttlToUse = TTL$
|
|
307
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
334
|
+
const ttlToUse = TTL$3;
|
|
335
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$a, RepresentationType$3, equals$a);
|
|
308
336
|
return createLink(key);
|
|
309
337
|
};
|
|
310
|
-
function getTypeCacheKeys$
|
|
338
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
311
339
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
312
340
|
const rootKey = fullPathFactory();
|
|
313
341
|
rootKeySet.set(rootKey, {
|
|
314
342
|
namespace: keyPrefix,
|
|
315
|
-
representationName: RepresentationType$
|
|
343
|
+
representationName: RepresentationType$3,
|
|
316
344
|
mergeable: false
|
|
317
345
|
});
|
|
318
346
|
}
|
|
319
347
|
|
|
320
|
-
function select$
|
|
321
|
-
return select$
|
|
348
|
+
function select$d(luvio, params) {
|
|
349
|
+
return select$e();
|
|
322
350
|
}
|
|
323
|
-
function keyBuilder$
|
|
351
|
+
function keyBuilder$7(luvio, params) {
|
|
324
352
|
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
353
|
}
|
|
326
|
-
function getResponseCacheKeys$
|
|
327
|
-
getTypeCacheKeys$
|
|
354
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
355
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
328
356
|
}
|
|
329
|
-
function ingestSuccess$
|
|
357
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
330
358
|
const { body } = response;
|
|
331
|
-
const key = keyBuilder$
|
|
332
|
-
luvio.storeIngest(key, ingest$
|
|
359
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
360
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
333
361
|
const snapshot = luvio.storeLookup({
|
|
334
362
|
recordId: key,
|
|
335
|
-
node: select$
|
|
363
|
+
node: select$d(),
|
|
336
364
|
variables: {},
|
|
337
365
|
}, snapshotRefresh);
|
|
338
366
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -343,19 +371,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
343
371
|
deepFreeze(snapshot.data);
|
|
344
372
|
return snapshot;
|
|
345
373
|
}
|
|
346
|
-
function ingestError$
|
|
347
|
-
const key = keyBuilder$
|
|
374
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
375
|
+
const key = keyBuilder$7(luvio, params);
|
|
348
376
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
349
377
|
const storeMetadataParams = {
|
|
350
|
-
ttl: TTL$
|
|
378
|
+
ttl: TTL$3,
|
|
351
379
|
namespace: keyPrefix,
|
|
352
|
-
version: VERSION$
|
|
353
|
-
representationName: RepresentationType$
|
|
380
|
+
version: VERSION$a,
|
|
381
|
+
representationName: RepresentationType$3
|
|
354
382
|
};
|
|
355
383
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
356
384
|
return errorSnapshot;
|
|
357
385
|
}
|
|
358
|
-
function createResourceRequest$
|
|
386
|
+
function createResourceRequest$3(config) {
|
|
359
387
|
const headers = {};
|
|
360
388
|
return {
|
|
361
389
|
baseUri: '/services/data/v61.0',
|
|
@@ -369,7 +397,7 @@ function createResourceRequest$2(config) {
|
|
|
369
397
|
};
|
|
370
398
|
}
|
|
371
399
|
|
|
372
|
-
const adapterName$
|
|
400
|
+
const adapterName$3 = 'getGroupsForUser';
|
|
373
401
|
const getGroupsForUser_ConfigPropertyMetadata = [
|
|
374
402
|
generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
375
403
|
generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
@@ -378,90 +406,90 @@ const getGroupsForUser_ConfigPropertyMetadata = [
|
|
|
378
406
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
379
407
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
380
408
|
];
|
|
381
|
-
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
382
|
-
const createResourceParams$
|
|
383
|
-
function keyBuilder$
|
|
384
|
-
const resourceParams = createResourceParams$
|
|
385
|
-
return keyBuilder$
|
|
409
|
+
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getGroupsForUser_ConfigPropertyMetadata);
|
|
410
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getGroupsForUser_ConfigPropertyMetadata);
|
|
411
|
+
function keyBuilder$6(luvio, config) {
|
|
412
|
+
const resourceParams = createResourceParams$3(config);
|
|
413
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
386
414
|
}
|
|
387
|
-
function typeCheckConfig$
|
|
415
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
388
416
|
const config = {};
|
|
389
|
-
typeCheckConfig$
|
|
417
|
+
typeCheckConfig$4(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
|
|
390
418
|
return config;
|
|
391
419
|
}
|
|
392
|
-
function validateAdapterConfig$
|
|
420
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
393
421
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
394
422
|
return null;
|
|
395
423
|
}
|
|
396
424
|
if (process.env.NODE_ENV !== 'production') {
|
|
397
425
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
398
426
|
}
|
|
399
|
-
const config = typeCheckConfig$
|
|
427
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
400
428
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
401
429
|
return null;
|
|
402
430
|
}
|
|
403
431
|
return config;
|
|
404
432
|
}
|
|
405
|
-
function adapterFragment$
|
|
406
|
-
createResourceParams$
|
|
407
|
-
return select$
|
|
433
|
+
function adapterFragment$3(luvio, config) {
|
|
434
|
+
createResourceParams$3(config);
|
|
435
|
+
return select$d();
|
|
408
436
|
}
|
|
409
|
-
function onFetchResponseSuccess$
|
|
410
|
-
const snapshot = ingestSuccess$
|
|
437
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
438
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
411
439
|
config,
|
|
412
|
-
resolve: () => buildNetworkSnapshot$
|
|
440
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
413
441
|
});
|
|
414
442
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
415
443
|
}
|
|
416
|
-
function onFetchResponseError$
|
|
417
|
-
const snapshot = ingestError$
|
|
444
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
445
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
418
446
|
config,
|
|
419
|
-
resolve: () => buildNetworkSnapshot$
|
|
447
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
420
448
|
});
|
|
421
449
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
422
450
|
}
|
|
423
|
-
function buildNetworkSnapshot$
|
|
424
|
-
const resourceParams = createResourceParams$
|
|
425
|
-
const request = createResourceRequest$
|
|
451
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
452
|
+
const resourceParams = createResourceParams$3(config);
|
|
453
|
+
const request = createResourceRequest$3(resourceParams);
|
|
426
454
|
return luvio.dispatchResourceRequest(request, options)
|
|
427
455
|
.then((response) => {
|
|
428
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
456
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
429
457
|
const cache = new StoreKeyMap();
|
|
430
|
-
getResponseCacheKeys$
|
|
458
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
431
459
|
return cache;
|
|
432
460
|
});
|
|
433
461
|
}, (response) => {
|
|
434
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
462
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
435
463
|
});
|
|
436
464
|
}
|
|
437
|
-
function buildNetworkSnapshotCachePolicy$
|
|
438
|
-
return buildNetworkSnapshotCachePolicy$
|
|
465
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
466
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
439
467
|
}
|
|
440
|
-
function buildCachedSnapshotCachePolicy$
|
|
468
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
441
469
|
const { luvio, config } = context;
|
|
442
470
|
const selector = {
|
|
443
|
-
recordId: keyBuilder$
|
|
444
|
-
node: adapterFragment$
|
|
471
|
+
recordId: keyBuilder$6(luvio, config),
|
|
472
|
+
node: adapterFragment$3(luvio, config),
|
|
445
473
|
variables: {},
|
|
446
474
|
};
|
|
447
475
|
const cacheSnapshot = storeLookup(selector, {
|
|
448
476
|
config,
|
|
449
|
-
resolve: () => buildNetworkSnapshot$
|
|
477
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
450
478
|
});
|
|
451
479
|
return cacheSnapshot;
|
|
452
480
|
}
|
|
453
481
|
const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
|
|
454
|
-
const config = validateAdapterConfig$
|
|
482
|
+
const config = validateAdapterConfig$3(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
|
|
455
483
|
// Invalid or incomplete config
|
|
456
484
|
if (config === null) {
|
|
457
485
|
return null;
|
|
458
486
|
}
|
|
459
487
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
460
|
-
buildCachedSnapshotCachePolicy$
|
|
488
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
461
489
|
};
|
|
462
490
|
|
|
463
|
-
const VERSION$
|
|
464
|
-
function validate$
|
|
491
|
+
const VERSION$9 = "11e587d0bd769c0df33d7cce4eb7210d";
|
|
492
|
+
function validate$9(obj, path = 'IncludedGroupsSharingRepresentation') {
|
|
465
493
|
const v_error = (() => {
|
|
466
494
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
467
495
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -494,10 +522,10 @@ function validate$7(obj, path = 'IncludedGroupsSharingRepresentation') {
|
|
|
494
522
|
})();
|
|
495
523
|
return v_error === undefined ? null : v_error;
|
|
496
524
|
}
|
|
497
|
-
const select$
|
|
525
|
+
const select$c = function IncludedGroupsSharingRepresentationSelect() {
|
|
498
526
|
return {
|
|
499
527
|
kind: 'Fragment',
|
|
500
|
-
version: VERSION$
|
|
528
|
+
version: VERSION$9,
|
|
501
529
|
private: [],
|
|
502
530
|
selections: [
|
|
503
531
|
{
|
|
@@ -523,7 +551,7 @@ const select$9 = function IncludedGroupsSharingRepresentationSelect() {
|
|
|
523
551
|
]
|
|
524
552
|
};
|
|
525
553
|
};
|
|
526
|
-
function equals$
|
|
554
|
+
function equals$9(existing, incoming) {
|
|
527
555
|
const existing_grantAccessHierarchies = existing.grantAccessHierarchies;
|
|
528
556
|
const incoming_grantAccessHierarchies = incoming.grantAccessHierarchies;
|
|
529
557
|
if (!(existing_grantAccessHierarchies === incoming_grantAccessHierarchies)) {
|
|
@@ -552,8 +580,8 @@ function equals$7(existing, incoming) {
|
|
|
552
580
|
return true;
|
|
553
581
|
}
|
|
554
582
|
|
|
555
|
-
const VERSION$
|
|
556
|
-
function validate$
|
|
583
|
+
const VERSION$8 = "06eef993be289c8b20b37b2ae6f4c5ee";
|
|
584
|
+
function validate$8(obj, path = 'ListViewGroupSharingRepresentation') {
|
|
557
585
|
const v_error = (() => {
|
|
558
586
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
559
587
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -571,10 +599,10 @@ function validate$6(obj, path = 'ListViewGroupSharingRepresentation') {
|
|
|
571
599
|
})();
|
|
572
600
|
return v_error === undefined ? null : v_error;
|
|
573
601
|
}
|
|
574
|
-
const select$
|
|
602
|
+
const select$b = function ListViewGroupSharingRepresentationSelect() {
|
|
575
603
|
return {
|
|
576
604
|
kind: 'Fragment',
|
|
577
|
-
version: VERSION$
|
|
605
|
+
version: VERSION$8,
|
|
578
606
|
private: [],
|
|
579
607
|
selections: [
|
|
580
608
|
{
|
|
@@ -588,7 +616,7 @@ const select$8 = function ListViewGroupSharingRepresentationSelect() {
|
|
|
588
616
|
]
|
|
589
617
|
};
|
|
590
618
|
};
|
|
591
|
-
function equals$
|
|
619
|
+
function equals$8(existing, incoming) {
|
|
592
620
|
const existing_developerName = existing.developerName;
|
|
593
621
|
const incoming_developerName = incoming.developerName;
|
|
594
622
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -602,8 +630,8 @@ function equals$6(existing, incoming) {
|
|
|
602
630
|
return true;
|
|
603
631
|
}
|
|
604
632
|
|
|
605
|
-
const VERSION$
|
|
606
|
-
function validate$
|
|
633
|
+
const VERSION$7 = "a0ed38b40ad9886f3e05a1b65fd2e246";
|
|
634
|
+
function validate$7(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
|
|
607
635
|
const v_error = (() => {
|
|
608
636
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
609
637
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -641,10 +669,10 @@ function validate$5(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentat
|
|
|
641
669
|
})();
|
|
642
670
|
return v_error === undefined ? null : v_error;
|
|
643
671
|
}
|
|
644
|
-
const select$
|
|
672
|
+
const select$a = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
|
|
645
673
|
return {
|
|
646
674
|
kind: 'Fragment',
|
|
647
|
-
version: VERSION$
|
|
675
|
+
version: VERSION$7,
|
|
648
676
|
private: [],
|
|
649
677
|
selections: [
|
|
650
678
|
{
|
|
@@ -674,7 +702,7 @@ const select$7 = function ReportAndDashboardFolderGroupSharingRepresentationSele
|
|
|
674
702
|
]
|
|
675
703
|
};
|
|
676
704
|
};
|
|
677
|
-
function equals$
|
|
705
|
+
function equals$7(existing, incoming) {
|
|
678
706
|
const existing_accessLevel = existing.accessLevel;
|
|
679
707
|
const incoming_accessLevel = incoming.accessLevel;
|
|
680
708
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -708,8 +736,8 @@ function equals$5(existing, incoming) {
|
|
|
708
736
|
return true;
|
|
709
737
|
}
|
|
710
738
|
|
|
711
|
-
const VERSION$
|
|
712
|
-
function validate$
|
|
739
|
+
const VERSION$6 = "1036a20704b51746749bb4be569e39c0";
|
|
740
|
+
function validate$6(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
|
|
713
741
|
const v_error = (() => {
|
|
714
742
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
715
743
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -737,10 +765,10 @@ function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation'
|
|
|
737
765
|
})();
|
|
738
766
|
return v_error === undefined ? null : v_error;
|
|
739
767
|
}
|
|
740
|
-
const select$
|
|
768
|
+
const select$9 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
|
|
741
769
|
return {
|
|
742
770
|
kind: 'Fragment',
|
|
743
|
-
version: VERSION$
|
|
771
|
+
version: VERSION$6,
|
|
744
772
|
private: [],
|
|
745
773
|
selections: [
|
|
746
774
|
{
|
|
@@ -762,7 +790,7 @@ const select$6 = function SharingRulesCriteriaGroupSharingRepresentationSelect()
|
|
|
762
790
|
]
|
|
763
791
|
};
|
|
764
792
|
};
|
|
765
|
-
function equals$
|
|
793
|
+
function equals$6(existing, incoming) {
|
|
766
794
|
const existing_accessLevel = existing.accessLevel;
|
|
767
795
|
const incoming_accessLevel = incoming.accessLevel;
|
|
768
796
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -786,8 +814,8 @@ function equals$4(existing, incoming) {
|
|
|
786
814
|
return true;
|
|
787
815
|
}
|
|
788
816
|
|
|
789
|
-
const VERSION$
|
|
790
|
-
function validate$
|
|
817
|
+
const VERSION$5 = "8f205925d69192f91fd2c71838ed20e7";
|
|
818
|
+
function validate$5(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
791
819
|
const v_error = (() => {
|
|
792
820
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
793
821
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -815,10 +843,10 @@ function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
|
815
843
|
})();
|
|
816
844
|
return v_error === undefined ? null : v_error;
|
|
817
845
|
}
|
|
818
|
-
const select$
|
|
846
|
+
const select$8 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
819
847
|
return {
|
|
820
848
|
kind: 'Fragment',
|
|
821
|
-
version: VERSION$
|
|
849
|
+
version: VERSION$5,
|
|
822
850
|
private: [],
|
|
823
851
|
selections: [
|
|
824
852
|
{
|
|
@@ -840,7 +868,7 @@ const select$5 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
|
840
868
|
]
|
|
841
869
|
};
|
|
842
870
|
};
|
|
843
|
-
function equals$
|
|
871
|
+
function equals$5(existing, incoming) {
|
|
844
872
|
const existing_accessLevel = existing.accessLevel;
|
|
845
873
|
const incoming_accessLevel = incoming.accessLevel;
|
|
846
874
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -864,9 +892,9 @@ function equals$3(existing, incoming) {
|
|
|
864
892
|
return true;
|
|
865
893
|
}
|
|
866
894
|
|
|
867
|
-
const TTL$
|
|
868
|
-
const VERSION$
|
|
869
|
-
function validate$
|
|
895
|
+
const TTL$2 = 300;
|
|
896
|
+
const VERSION$4 = "68cd535d9b1bd32d0d42ce950115eff5";
|
|
897
|
+
function validate$4(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
870
898
|
const v_error = (() => {
|
|
871
899
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
872
900
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -879,7 +907,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
879
907
|
for (let i = 0; i < obj_includedGroupsSharing.length; i++) {
|
|
880
908
|
const obj_includedGroupsSharing_item = obj_includedGroupsSharing[i];
|
|
881
909
|
const path_includedGroupsSharing_item = path_includedGroupsSharing + '[' + i + ']';
|
|
882
|
-
const referencepath_includedGroupsSharing_itemValidationError = validate$
|
|
910
|
+
const referencepath_includedGroupsSharing_itemValidationError = validate$9(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
|
|
883
911
|
if (referencepath_includedGroupsSharing_itemValidationError !== null) {
|
|
884
912
|
let message = 'Object doesn\'t match IncludedGroupsSharingRepresentation (at "' + path_includedGroupsSharing_item + '")\n';
|
|
885
913
|
message += referencepath_includedGroupsSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -894,7 +922,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
894
922
|
for (let i = 0; i < obj_listViewGroupSharing.length; i++) {
|
|
895
923
|
const obj_listViewGroupSharing_item = obj_listViewGroupSharing[i];
|
|
896
924
|
const path_listViewGroupSharing_item = path_listViewGroupSharing + '[' + i + ']';
|
|
897
|
-
const referencepath_listViewGroupSharing_itemValidationError = validate$
|
|
925
|
+
const referencepath_listViewGroupSharing_itemValidationError = validate$8(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
|
|
898
926
|
if (referencepath_listViewGroupSharing_itemValidationError !== null) {
|
|
899
927
|
let message = 'Object doesn\'t match ListViewGroupSharingRepresentation (at "' + path_listViewGroupSharing_item + '")\n';
|
|
900
928
|
message += referencepath_listViewGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -909,7 +937,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
909
937
|
for (let i = 0; i < obj_reportAndDashboardFolderGroupSharing.length; i++) {
|
|
910
938
|
const obj_reportAndDashboardFolderGroupSharing_item = obj_reportAndDashboardFolderGroupSharing[i];
|
|
911
939
|
const path_reportAndDashboardFolderGroupSharing_item = path_reportAndDashboardFolderGroupSharing + '[' + i + ']';
|
|
912
|
-
const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$
|
|
940
|
+
const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$7(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
|
|
913
941
|
if (referencepath_reportAndDashboardFolderGroupSharing_itemValidationError !== null) {
|
|
914
942
|
let message = 'Object doesn\'t match ReportAndDashboardFolderGroupSharingRepresentation (at "' + path_reportAndDashboardFolderGroupSharing_item + '")\n';
|
|
915
943
|
message += referencepath_reportAndDashboardFolderGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -924,7 +952,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
924
952
|
for (let i = 0; i < obj_sharingRulesCriteriaGroupSharing.length; i++) {
|
|
925
953
|
const obj_sharingRulesCriteriaGroupSharing_item = obj_sharingRulesCriteriaGroupSharing[i];
|
|
926
954
|
const path_sharingRulesCriteriaGroupSharing_item = path_sharingRulesCriteriaGroupSharing + '[' + i + ']';
|
|
927
|
-
const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$
|
|
955
|
+
const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$6(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
|
|
928
956
|
if (referencepath_sharingRulesCriteriaGroupSharing_itemValidationError !== null) {
|
|
929
957
|
let message = 'Object doesn\'t match SharingRulesCriteriaGroupSharingRepresentation (at "' + path_sharingRulesCriteriaGroupSharing_item + '")\n';
|
|
930
958
|
message += referencepath_sharingRulesCriteriaGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -939,7 +967,7 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
939
967
|
for (let i = 0; i < obj_sharingRulesOwnerGroupSharing.length; i++) {
|
|
940
968
|
const obj_sharingRulesOwnerGroupSharing_item = obj_sharingRulesOwnerGroupSharing[i];
|
|
941
969
|
const path_sharingRulesOwnerGroupSharing_item = path_sharingRulesOwnerGroupSharing + '[' + i + ']';
|
|
942
|
-
const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$
|
|
970
|
+
const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$5(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
|
|
943
971
|
if (referencepath_sharingRulesOwnerGroupSharing_itemValidationError !== null) {
|
|
944
972
|
let message = 'Object doesn\'t match SharingRulesOwnerGroupSharingRepresentation (at "' + path_sharingRulesOwnerGroupSharing_item + '")\n';
|
|
945
973
|
message += referencepath_sharingRulesOwnerGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -949,19 +977,19 @@ function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
949
977
|
})();
|
|
950
978
|
return v_error === undefined ? null : v_error;
|
|
951
979
|
}
|
|
952
|
-
const RepresentationType$
|
|
953
|
-
function normalize$
|
|
980
|
+
const RepresentationType$2 = 'PublicGroupSummaryRepresentation';
|
|
981
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
954
982
|
return input;
|
|
955
983
|
}
|
|
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$
|
|
984
|
+
const select$7 = function PublicGroupSummaryRepresentationSelect() {
|
|
985
|
+
const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$c();
|
|
986
|
+
const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$b();
|
|
987
|
+
const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$a();
|
|
988
|
+
const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$9();
|
|
989
|
+
const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$8();
|
|
962
990
|
return {
|
|
963
991
|
kind: 'Fragment',
|
|
964
|
-
version: VERSION$
|
|
992
|
+
version: VERSION$4,
|
|
965
993
|
private: [],
|
|
966
994
|
selections: [
|
|
967
995
|
{
|
|
@@ -997,11 +1025,11 @@ const select$4 = function PublicGroupSummaryRepresentationSelect() {
|
|
|
997
1025
|
]
|
|
998
1026
|
};
|
|
999
1027
|
};
|
|
1000
|
-
function equals$
|
|
1028
|
+
function equals$4(existing, incoming) {
|
|
1001
1029
|
const existing_includedGroupsSharing = existing.includedGroupsSharing;
|
|
1002
1030
|
const incoming_includedGroupsSharing = incoming.includedGroupsSharing;
|
|
1003
1031
|
const equals_includedGroupsSharing_items = equalsArray(existing_includedGroupsSharing, incoming_includedGroupsSharing, (existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item) => {
|
|
1004
|
-
if (!(equals$
|
|
1032
|
+
if (!(equals$9(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
|
|
1005
1033
|
return false;
|
|
1006
1034
|
}
|
|
1007
1035
|
});
|
|
@@ -1011,7 +1039,7 @@ function equals$2(existing, incoming) {
|
|
|
1011
1039
|
const existing_listViewGroupSharing = existing.listViewGroupSharing;
|
|
1012
1040
|
const incoming_listViewGroupSharing = incoming.listViewGroupSharing;
|
|
1013
1041
|
const equals_listViewGroupSharing_items = equalsArray(existing_listViewGroupSharing, incoming_listViewGroupSharing, (existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item) => {
|
|
1014
|
-
if (!(equals$
|
|
1042
|
+
if (!(equals$8(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
|
|
1015
1043
|
return false;
|
|
1016
1044
|
}
|
|
1017
1045
|
});
|
|
@@ -1021,7 +1049,7 @@ function equals$2(existing, incoming) {
|
|
|
1021
1049
|
const existing_reportAndDashboardFolderGroupSharing = existing.reportAndDashboardFolderGroupSharing;
|
|
1022
1050
|
const incoming_reportAndDashboardFolderGroupSharing = incoming.reportAndDashboardFolderGroupSharing;
|
|
1023
1051
|
const equals_reportAndDashboardFolderGroupSharing_items = equalsArray(existing_reportAndDashboardFolderGroupSharing, incoming_reportAndDashboardFolderGroupSharing, (existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item) => {
|
|
1024
|
-
if (!(equals$
|
|
1052
|
+
if (!(equals$7(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
|
|
1025
1053
|
return false;
|
|
1026
1054
|
}
|
|
1027
1055
|
});
|
|
@@ -1031,7 +1059,7 @@ function equals$2(existing, incoming) {
|
|
|
1031
1059
|
const existing_sharingRulesCriteriaGroupSharing = existing.sharingRulesCriteriaGroupSharing;
|
|
1032
1060
|
const incoming_sharingRulesCriteriaGroupSharing = incoming.sharingRulesCriteriaGroupSharing;
|
|
1033
1061
|
const equals_sharingRulesCriteriaGroupSharing_items = equalsArray(existing_sharingRulesCriteriaGroupSharing, incoming_sharingRulesCriteriaGroupSharing, (existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item) => {
|
|
1034
|
-
if (!(equals$
|
|
1062
|
+
if (!(equals$6(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
|
|
1035
1063
|
return false;
|
|
1036
1064
|
}
|
|
1037
1065
|
});
|
|
@@ -1041,7 +1069,7 @@ function equals$2(existing, incoming) {
|
|
|
1041
1069
|
const existing_sharingRulesOwnerGroupSharing = existing.sharingRulesOwnerGroupSharing;
|
|
1042
1070
|
const incoming_sharingRulesOwnerGroupSharing = incoming.sharingRulesOwnerGroupSharing;
|
|
1043
1071
|
const equals_sharingRulesOwnerGroupSharing_items = equalsArray(existing_sharingRulesOwnerGroupSharing, incoming_sharingRulesOwnerGroupSharing, (existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item) => {
|
|
1044
|
-
if (!(equals$
|
|
1072
|
+
if (!(equals$5(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
|
|
1045
1073
|
return false;
|
|
1046
1074
|
}
|
|
1047
1075
|
});
|
|
@@ -1050,44 +1078,44 @@ function equals$2(existing, incoming) {
|
|
|
1050
1078
|
}
|
|
1051
1079
|
return true;
|
|
1052
1080
|
}
|
|
1053
|
-
const ingest$
|
|
1081
|
+
const ingest$2 = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1054
1082
|
if (process.env.NODE_ENV !== 'production') {
|
|
1055
|
-
const validateError = validate$
|
|
1083
|
+
const validateError = validate$4(input);
|
|
1056
1084
|
if (validateError !== null) {
|
|
1057
1085
|
throw validateError;
|
|
1058
1086
|
}
|
|
1059
1087
|
}
|
|
1060
1088
|
const key = path.fullPath;
|
|
1061
|
-
const ttlToUse = TTL$
|
|
1062
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1089
|
+
const ttlToUse = TTL$2;
|
|
1090
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$4, RepresentationType$2, equals$4);
|
|
1063
1091
|
return createLink(key);
|
|
1064
1092
|
};
|
|
1065
|
-
function getTypeCacheKeys$
|
|
1093
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
1066
1094
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1067
1095
|
const rootKey = fullPathFactory();
|
|
1068
1096
|
rootKeySet.set(rootKey, {
|
|
1069
1097
|
namespace: keyPrefix,
|
|
1070
|
-
representationName: RepresentationType$
|
|
1098
|
+
representationName: RepresentationType$2,
|
|
1071
1099
|
mergeable: false
|
|
1072
1100
|
});
|
|
1073
1101
|
}
|
|
1074
1102
|
|
|
1075
|
-
function select$
|
|
1076
|
-
return select$
|
|
1103
|
+
function select$6(luvio, params) {
|
|
1104
|
+
return select$7();
|
|
1077
1105
|
}
|
|
1078
|
-
function keyBuilder$
|
|
1106
|
+
function keyBuilder$5(luvio, params) {
|
|
1079
1107
|
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
1108
|
}
|
|
1081
|
-
function getResponseCacheKeys$
|
|
1082
|
-
getTypeCacheKeys$
|
|
1109
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1110
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
1083
1111
|
}
|
|
1084
|
-
function ingestSuccess$
|
|
1112
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1085
1113
|
const { body } = response;
|
|
1086
|
-
const key = keyBuilder$
|
|
1087
|
-
luvio.storeIngest(key, ingest$
|
|
1114
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
1115
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1088
1116
|
const snapshot = luvio.storeLookup({
|
|
1089
1117
|
recordId: key,
|
|
1090
|
-
node: select$
|
|
1118
|
+
node: select$6(),
|
|
1091
1119
|
variables: {},
|
|
1092
1120
|
}, snapshotRefresh);
|
|
1093
1121
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1098,19 +1126,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1098
1126
|
deepFreeze(snapshot.data);
|
|
1099
1127
|
return snapshot;
|
|
1100
1128
|
}
|
|
1101
|
-
function ingestError$
|
|
1102
|
-
const key = keyBuilder$
|
|
1129
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1130
|
+
const key = keyBuilder$5(luvio, params);
|
|
1103
1131
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1104
1132
|
const storeMetadataParams = {
|
|
1105
|
-
ttl: TTL$
|
|
1133
|
+
ttl: TTL$2,
|
|
1106
1134
|
namespace: keyPrefix,
|
|
1107
|
-
version: VERSION$
|
|
1108
|
-
representationName: RepresentationType$
|
|
1135
|
+
version: VERSION$4,
|
|
1136
|
+
representationName: RepresentationType$2
|
|
1109
1137
|
};
|
|
1110
1138
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1111
1139
|
return errorSnapshot;
|
|
1112
1140
|
}
|
|
1113
|
-
function createResourceRequest$
|
|
1141
|
+
function createResourceRequest$2(config) {
|
|
1114
1142
|
const headers = {};
|
|
1115
1143
|
return {
|
|
1116
1144
|
baseUri: '/services/data/v61.0',
|
|
@@ -1124,7 +1152,7 @@ function createResourceRequest$1(config) {
|
|
|
1124
1152
|
};
|
|
1125
1153
|
}
|
|
1126
1154
|
|
|
1127
|
-
const adapterName$
|
|
1155
|
+
const adapterName$2 = 'getPublicGroupShareData';
|
|
1128
1156
|
const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
1129
1157
|
generateParamConfigMetadata('entityKeyPrefix', true, 2 /* Body */, 0 /* String */),
|
|
1130
1158
|
generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
|
|
@@ -1134,90 +1162,90 @@ const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
|
1134
1162
|
generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
|
|
1135
1163
|
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
1136
1164
|
];
|
|
1137
|
-
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1138
|
-
const createResourceParams$
|
|
1139
|
-
function keyBuilder$
|
|
1140
|
-
const resourceParams = createResourceParams$
|
|
1141
|
-
return keyBuilder$
|
|
1165
|
+
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1166
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1167
|
+
function keyBuilder$4(luvio, config) {
|
|
1168
|
+
const resourceParams = createResourceParams$2(config);
|
|
1169
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
1142
1170
|
}
|
|
1143
|
-
function typeCheckConfig$
|
|
1171
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
1144
1172
|
const config = {};
|
|
1145
|
-
typeCheckConfig$
|
|
1173
|
+
typeCheckConfig$4(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1146
1174
|
return config;
|
|
1147
1175
|
}
|
|
1148
|
-
function validateAdapterConfig$
|
|
1176
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
1149
1177
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1150
1178
|
return null;
|
|
1151
1179
|
}
|
|
1152
1180
|
if (process.env.NODE_ENV !== 'production') {
|
|
1153
1181
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1154
1182
|
}
|
|
1155
|
-
const config = typeCheckConfig$
|
|
1183
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
1156
1184
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1157
1185
|
return null;
|
|
1158
1186
|
}
|
|
1159
1187
|
return config;
|
|
1160
1188
|
}
|
|
1161
|
-
function adapterFragment$
|
|
1162
|
-
createResourceParams$
|
|
1163
|
-
return select$
|
|
1189
|
+
function adapterFragment$2(luvio, config) {
|
|
1190
|
+
createResourceParams$2(config);
|
|
1191
|
+
return select$6();
|
|
1164
1192
|
}
|
|
1165
|
-
function onFetchResponseSuccess$
|
|
1166
|
-
const snapshot = ingestSuccess$
|
|
1193
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1194
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
1167
1195
|
config,
|
|
1168
|
-
resolve: () => buildNetworkSnapshot$
|
|
1196
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1169
1197
|
});
|
|
1170
1198
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1171
1199
|
}
|
|
1172
|
-
function onFetchResponseError$
|
|
1173
|
-
const snapshot = ingestError$
|
|
1200
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
1201
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
1174
1202
|
config,
|
|
1175
|
-
resolve: () => buildNetworkSnapshot$
|
|
1203
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1176
1204
|
});
|
|
1177
1205
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1178
1206
|
}
|
|
1179
|
-
function buildNetworkSnapshot$
|
|
1180
|
-
const resourceParams = createResourceParams$
|
|
1181
|
-
const request = createResourceRequest$
|
|
1207
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
1208
|
+
const resourceParams = createResourceParams$2(config);
|
|
1209
|
+
const request = createResourceRequest$2(resourceParams);
|
|
1182
1210
|
return luvio.dispatchResourceRequest(request, options)
|
|
1183
1211
|
.then((response) => {
|
|
1184
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1212
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
1185
1213
|
const cache = new StoreKeyMap();
|
|
1186
|
-
getResponseCacheKeys$
|
|
1214
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1187
1215
|
return cache;
|
|
1188
1216
|
});
|
|
1189
1217
|
}, (response) => {
|
|
1190
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1218
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
1191
1219
|
});
|
|
1192
1220
|
}
|
|
1193
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1194
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1221
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1222
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
|
|
1195
1223
|
}
|
|
1196
|
-
function buildCachedSnapshotCachePolicy$
|
|
1224
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1197
1225
|
const { luvio, config } = context;
|
|
1198
1226
|
const selector = {
|
|
1199
|
-
recordId: keyBuilder$
|
|
1200
|
-
node: adapterFragment$
|
|
1227
|
+
recordId: keyBuilder$4(luvio, config),
|
|
1228
|
+
node: adapterFragment$2(luvio, config),
|
|
1201
1229
|
variables: {},
|
|
1202
1230
|
};
|
|
1203
1231
|
const cacheSnapshot = storeLookup(selector, {
|
|
1204
1232
|
config,
|
|
1205
|
-
resolve: () => buildNetworkSnapshot$
|
|
1233
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1206
1234
|
});
|
|
1207
1235
|
return cacheSnapshot;
|
|
1208
1236
|
}
|
|
1209
1237
|
const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPublicGroupShareData(untrustedConfig, requestContext) {
|
|
1210
|
-
const config = validateAdapterConfig$
|
|
1238
|
+
const config = validateAdapterConfig$2(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
|
|
1211
1239
|
// Invalid or incomplete config
|
|
1212
1240
|
if (config === null) {
|
|
1213
1241
|
return null;
|
|
1214
1242
|
}
|
|
1215
1243
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1216
|
-
buildCachedSnapshotCachePolicy$
|
|
1244
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1217
1245
|
};
|
|
1218
1246
|
|
|
1219
|
-
const VERSION$
|
|
1220
|
-
function validate$
|
|
1247
|
+
const VERSION$3 = "8f1b312aa04c8869624b95b9e3f3cd4e";
|
|
1248
|
+
function validate$3(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
1221
1249
|
const v_error = (() => {
|
|
1222
1250
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1223
1251
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1245,10 +1273,10 @@ function validate$1(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
|
1245
1273
|
})();
|
|
1246
1274
|
return v_error === undefined ? null : v_error;
|
|
1247
1275
|
}
|
|
1248
|
-
const select$
|
|
1276
|
+
const select$5 = function SobjectOutputSharingRepresentationSelect() {
|
|
1249
1277
|
return {
|
|
1250
1278
|
kind: 'Fragment',
|
|
1251
|
-
version: VERSION$
|
|
1279
|
+
version: VERSION$3,
|
|
1252
1280
|
private: [],
|
|
1253
1281
|
selections: [
|
|
1254
1282
|
{
|
|
@@ -1270,7 +1298,7 @@ const select$2 = function SobjectOutputSharingRepresentationSelect() {
|
|
|
1270
1298
|
]
|
|
1271
1299
|
};
|
|
1272
1300
|
};
|
|
1273
|
-
function equals$
|
|
1301
|
+
function equals$3(existing, incoming) {
|
|
1274
1302
|
const existing_apiName = existing.apiName;
|
|
1275
1303
|
const incoming_apiName = incoming.apiName;
|
|
1276
1304
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1294,9 +1322,9 @@ function equals$1(existing, incoming) {
|
|
|
1294
1322
|
return true;
|
|
1295
1323
|
}
|
|
1296
1324
|
|
|
1297
|
-
const TTL = 900000;
|
|
1298
|
-
const VERSION = "891459dfe3e992adddad156c898d3aef";
|
|
1299
|
-
function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
1325
|
+
const TTL$1 = 900000;
|
|
1326
|
+
const VERSION$2 = "891459dfe3e992adddad156c898d3aef";
|
|
1327
|
+
function validate$2(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
1300
1328
|
const v_error = (() => {
|
|
1301
1329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1302
1330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1314,7 +1342,7 @@ function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
1314
1342
|
for (let i = 0; i < obj_sobjects.length; i++) {
|
|
1315
1343
|
const obj_sobjects_item = obj_sobjects[i];
|
|
1316
1344
|
const path_sobjects_item = path_sobjects + '[' + i + ']';
|
|
1317
|
-
const referencepath_sobjects_itemValidationError = validate$
|
|
1345
|
+
const referencepath_sobjects_itemValidationError = validate$3(obj_sobjects_item, path_sobjects_item);
|
|
1318
1346
|
if (referencepath_sobjects_itemValidationError !== null) {
|
|
1319
1347
|
let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
|
|
1320
1348
|
message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1324,15 +1352,15 @@ function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
1324
1352
|
})();
|
|
1325
1353
|
return v_error === undefined ? null : v_error;
|
|
1326
1354
|
}
|
|
1327
|
-
const RepresentationType = 'SobjectsOutputSharingRepresentation';
|
|
1328
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1355
|
+
const RepresentationType$1 = 'SobjectsOutputSharingRepresentation';
|
|
1356
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1329
1357
|
return input;
|
|
1330
1358
|
}
|
|
1331
|
-
const select$
|
|
1332
|
-
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$
|
|
1359
|
+
const select$4 = function SobjectsOutputSharingRepresentationSelect() {
|
|
1360
|
+
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$5();
|
|
1333
1361
|
return {
|
|
1334
1362
|
kind: 'Fragment',
|
|
1335
|
-
version: VERSION,
|
|
1363
|
+
version: VERSION$2,
|
|
1336
1364
|
private: [],
|
|
1337
1365
|
selections: [
|
|
1338
1366
|
{
|
|
@@ -1348,7 +1376,7 @@ const select$1 = function SobjectsOutputSharingRepresentationSelect() {
|
|
|
1348
1376
|
]
|
|
1349
1377
|
};
|
|
1350
1378
|
};
|
|
1351
|
-
function equals(existing, incoming) {
|
|
1379
|
+
function equals$2(existing, incoming) {
|
|
1352
1380
|
const existing_size = existing.size;
|
|
1353
1381
|
const incoming_size = incoming.size;
|
|
1354
1382
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1357,7 +1385,7 @@ function equals(existing, incoming) {
|
|
|
1357
1385
|
const existing_sobjects = existing.sobjects;
|
|
1358
1386
|
const incoming_sobjects = incoming.sobjects;
|
|
1359
1387
|
const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
|
|
1360
|
-
if (!(equals$
|
|
1388
|
+
if (!(equals$3(existing_sobjects_item, incoming_sobjects_item))) {
|
|
1361
1389
|
return false;
|
|
1362
1390
|
}
|
|
1363
1391
|
});
|
|
@@ -1366,7 +1394,305 @@ function equals(existing, incoming) {
|
|
|
1366
1394
|
}
|
|
1367
1395
|
return true;
|
|
1368
1396
|
}
|
|
1369
|
-
const ingest = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1397
|
+
const ingest$1 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1398
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1399
|
+
const validateError = validate$2(input);
|
|
1400
|
+
if (validateError !== null) {
|
|
1401
|
+
throw validateError;
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
const key = path.fullPath;
|
|
1405
|
+
const ttlToUse = TTL$1;
|
|
1406
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sharing", VERSION$2, RepresentationType$1, equals$2);
|
|
1407
|
+
return createLink(key);
|
|
1408
|
+
};
|
|
1409
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1410
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1411
|
+
const rootKey = fullPathFactory();
|
|
1412
|
+
rootKeySet.set(rootKey, {
|
|
1413
|
+
namespace: keyPrefix,
|
|
1414
|
+
representationName: RepresentationType$1,
|
|
1415
|
+
mergeable: false
|
|
1416
|
+
});
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
function select$3(luvio, params) {
|
|
1420
|
+
return select$4();
|
|
1421
|
+
}
|
|
1422
|
+
function keyBuilder$3(luvio, params) {
|
|
1423
|
+
return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
|
|
1424
|
+
}
|
|
1425
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1426
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1427
|
+
}
|
|
1428
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
1429
|
+
const { body } = response;
|
|
1430
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
1431
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1432
|
+
const snapshot = luvio.storeLookup({
|
|
1433
|
+
recordId: key,
|
|
1434
|
+
node: select$3(),
|
|
1435
|
+
variables: {},
|
|
1436
|
+
}, snapshotRefresh);
|
|
1437
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1438
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1439
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
deepFreeze(snapshot.data);
|
|
1443
|
+
return snapshot;
|
|
1444
|
+
}
|
|
1445
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
1446
|
+
const key = keyBuilder$3(luvio, params);
|
|
1447
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1448
|
+
const storeMetadataParams = {
|
|
1449
|
+
ttl: TTL$1,
|
|
1450
|
+
namespace: keyPrefix,
|
|
1451
|
+
version: VERSION$2,
|
|
1452
|
+
representationName: RepresentationType$1
|
|
1453
|
+
};
|
|
1454
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1455
|
+
return errorSnapshot;
|
|
1456
|
+
}
|
|
1457
|
+
function createResourceRequest$1(config) {
|
|
1458
|
+
const headers = {};
|
|
1459
|
+
return {
|
|
1460
|
+
baseUri: '/services/data/v61.0',
|
|
1461
|
+
basePath: '/sharing/sobjects',
|
|
1462
|
+
method: 'get',
|
|
1463
|
+
body: null,
|
|
1464
|
+
urlParams: {},
|
|
1465
|
+
queryParams: config.queryParams,
|
|
1466
|
+
headers,
|
|
1467
|
+
priority: 'normal',
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
const adapterName$1 = 'getAllSobjects';
|
|
1472
|
+
const getAllSobjects_ConfigPropertyMetadata = [
|
|
1473
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1474
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1475
|
+
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1476
|
+
];
|
|
1477
|
+
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAllSobjects_ConfigPropertyMetadata);
|
|
1478
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getAllSobjects_ConfigPropertyMetadata);
|
|
1479
|
+
function keyBuilder$2(luvio, config) {
|
|
1480
|
+
const resourceParams = createResourceParams$1(config);
|
|
1481
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
1482
|
+
}
|
|
1483
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
1484
|
+
const config = {};
|
|
1485
|
+
typeCheckConfig$4(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
|
|
1486
|
+
return config;
|
|
1487
|
+
}
|
|
1488
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
1489
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1490
|
+
return null;
|
|
1491
|
+
}
|
|
1492
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1493
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1494
|
+
}
|
|
1495
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
1496
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1497
|
+
return null;
|
|
1498
|
+
}
|
|
1499
|
+
return config;
|
|
1500
|
+
}
|
|
1501
|
+
function adapterFragment$1(luvio, config) {
|
|
1502
|
+
createResourceParams$1(config);
|
|
1503
|
+
return select$3();
|
|
1504
|
+
}
|
|
1505
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1506
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
1507
|
+
config,
|
|
1508
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1509
|
+
});
|
|
1510
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1511
|
+
}
|
|
1512
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1513
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1514
|
+
config,
|
|
1515
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1516
|
+
});
|
|
1517
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1518
|
+
}
|
|
1519
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
1520
|
+
const resourceParams = createResourceParams$1(config);
|
|
1521
|
+
const request = createResourceRequest$1(resourceParams);
|
|
1522
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1523
|
+
.then((response) => {
|
|
1524
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1525
|
+
const cache = new StoreKeyMap();
|
|
1526
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1527
|
+
return cache;
|
|
1528
|
+
});
|
|
1529
|
+
}, (response) => {
|
|
1530
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
1531
|
+
});
|
|
1532
|
+
}
|
|
1533
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1534
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
1535
|
+
}
|
|
1536
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1537
|
+
const { luvio, config } = context;
|
|
1538
|
+
const selector = {
|
|
1539
|
+
recordId: keyBuilder$2(luvio, config),
|
|
1540
|
+
node: adapterFragment$1(luvio, config),
|
|
1541
|
+
variables: {},
|
|
1542
|
+
};
|
|
1543
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1544
|
+
config,
|
|
1545
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1546
|
+
});
|
|
1547
|
+
return cacheSnapshot;
|
|
1548
|
+
}
|
|
1549
|
+
const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
|
|
1550
|
+
const config = validateAdapterConfig$1(untrustedConfig, getAllSobjects_ConfigPropertyNames);
|
|
1551
|
+
// Invalid or incomplete config
|
|
1552
|
+
if (config === null) {
|
|
1553
|
+
return null;
|
|
1554
|
+
}
|
|
1555
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1556
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1557
|
+
};
|
|
1558
|
+
|
|
1559
|
+
const VERSION$1 = "348a7399778e8986878f81df955a8eab";
|
|
1560
|
+
function validate$1(obj, path = 'UserPermissionInfoRepresentation') {
|
|
1561
|
+
const v_error = (() => {
|
|
1562
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1563
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1564
|
+
}
|
|
1565
|
+
const obj_userPermApiName = obj.userPermApiName;
|
|
1566
|
+
const path_userPermApiName = path + '.userPermApiName';
|
|
1567
|
+
if (typeof obj_userPermApiName !== 'string') {
|
|
1568
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermApiName + '" (at "' + path_userPermApiName + '")');
|
|
1569
|
+
}
|
|
1570
|
+
const obj_userPermDescription = obj.userPermDescription;
|
|
1571
|
+
const path_userPermDescription = path + '.userPermDescription';
|
|
1572
|
+
if (typeof obj_userPermDescription !== 'string') {
|
|
1573
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermDescription + '" (at "' + path_userPermDescription + '")');
|
|
1574
|
+
}
|
|
1575
|
+
const obj_userPermLabel = obj.userPermLabel;
|
|
1576
|
+
const path_userPermLabel = path + '.userPermLabel';
|
|
1577
|
+
if (typeof obj_userPermLabel !== 'string') {
|
|
1578
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermLabel + '" (at "' + path_userPermLabel + '")');
|
|
1579
|
+
}
|
|
1580
|
+
})();
|
|
1581
|
+
return v_error === undefined ? null : v_error;
|
|
1582
|
+
}
|
|
1583
|
+
const select$2 = function UserPermissionInfoRepresentationSelect() {
|
|
1584
|
+
return {
|
|
1585
|
+
kind: 'Fragment',
|
|
1586
|
+
version: VERSION$1,
|
|
1587
|
+
private: [],
|
|
1588
|
+
selections: [
|
|
1589
|
+
{
|
|
1590
|
+
name: 'userPermApiName',
|
|
1591
|
+
kind: 'Scalar'
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
name: 'userPermDescription',
|
|
1595
|
+
kind: 'Scalar'
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
name: 'userPermLabel',
|
|
1599
|
+
kind: 'Scalar'
|
|
1600
|
+
}
|
|
1601
|
+
]
|
|
1602
|
+
};
|
|
1603
|
+
};
|
|
1604
|
+
function equals$1(existing, incoming) {
|
|
1605
|
+
const existing_userPermApiName = existing.userPermApiName;
|
|
1606
|
+
const incoming_userPermApiName = incoming.userPermApiName;
|
|
1607
|
+
if (!(existing_userPermApiName === incoming_userPermApiName)) {
|
|
1608
|
+
return false;
|
|
1609
|
+
}
|
|
1610
|
+
const existing_userPermDescription = existing.userPermDescription;
|
|
1611
|
+
const incoming_userPermDescription = incoming.userPermDescription;
|
|
1612
|
+
if (!(existing_userPermDescription === incoming_userPermDescription)) {
|
|
1613
|
+
return false;
|
|
1614
|
+
}
|
|
1615
|
+
const existing_userPermLabel = existing.userPermLabel;
|
|
1616
|
+
const incoming_userPermLabel = incoming.userPermLabel;
|
|
1617
|
+
if (!(existing_userPermLabel === incoming_userPermLabel)) {
|
|
1618
|
+
return false;
|
|
1619
|
+
}
|
|
1620
|
+
return true;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
const TTL = 600000;
|
|
1624
|
+
const VERSION = "627ab68dfb8c0174c1e9dc9f2701c1b2";
|
|
1625
|
+
function validate(obj, path = 'UserPermissionsInfoListRepresentation') {
|
|
1626
|
+
const v_error = (() => {
|
|
1627
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1628
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1629
|
+
}
|
|
1630
|
+
const obj_size = obj.size;
|
|
1631
|
+
const path_size = path + '.size';
|
|
1632
|
+
if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
|
|
1633
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
1634
|
+
}
|
|
1635
|
+
const obj_userPermissions = obj.userPermissions;
|
|
1636
|
+
const path_userPermissions = path + '.userPermissions';
|
|
1637
|
+
if (!ArrayIsArray(obj_userPermissions)) {
|
|
1638
|
+
return new TypeError('Expected "array" but received "' + typeof obj_userPermissions + '" (at "' + path_userPermissions + '")');
|
|
1639
|
+
}
|
|
1640
|
+
for (let i = 0; i < obj_userPermissions.length; i++) {
|
|
1641
|
+
const obj_userPermissions_item = obj_userPermissions[i];
|
|
1642
|
+
const path_userPermissions_item = path_userPermissions + '[' + i + ']';
|
|
1643
|
+
const referencepath_userPermissions_itemValidationError = validate$1(obj_userPermissions_item, path_userPermissions_item);
|
|
1644
|
+
if (referencepath_userPermissions_itemValidationError !== null) {
|
|
1645
|
+
let message = 'Object doesn\'t match UserPermissionInfoRepresentation (at "' + path_userPermissions_item + '")\n';
|
|
1646
|
+
message += referencepath_userPermissions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1647
|
+
return new TypeError(message);
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
})();
|
|
1651
|
+
return v_error === undefined ? null : v_error;
|
|
1652
|
+
}
|
|
1653
|
+
const RepresentationType = 'UserPermissionsInfoListRepresentation';
|
|
1654
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1655
|
+
return input;
|
|
1656
|
+
}
|
|
1657
|
+
const select$1 = function UserPermissionsInfoListRepresentationSelect() {
|
|
1658
|
+
const { selections: UserPermissionInfoRepresentation__selections, opaque: UserPermissionInfoRepresentation__opaque, } = select$2();
|
|
1659
|
+
return {
|
|
1660
|
+
kind: 'Fragment',
|
|
1661
|
+
version: VERSION,
|
|
1662
|
+
private: [],
|
|
1663
|
+
selections: [
|
|
1664
|
+
{
|
|
1665
|
+
name: 'size',
|
|
1666
|
+
kind: 'Scalar'
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
name: 'userPermissions',
|
|
1670
|
+
kind: 'Object',
|
|
1671
|
+
plural: true,
|
|
1672
|
+
selections: UserPermissionInfoRepresentation__selections
|
|
1673
|
+
}
|
|
1674
|
+
]
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
function equals(existing, incoming) {
|
|
1678
|
+
const existing_size = existing.size;
|
|
1679
|
+
const incoming_size = incoming.size;
|
|
1680
|
+
if (!(existing_size === incoming_size)) {
|
|
1681
|
+
return false;
|
|
1682
|
+
}
|
|
1683
|
+
const existing_userPermissions = existing.userPermissions;
|
|
1684
|
+
const incoming_userPermissions = incoming.userPermissions;
|
|
1685
|
+
const equals_userPermissions_items = equalsArray(existing_userPermissions, incoming_userPermissions, (existing_userPermissions_item, incoming_userPermissions_item) => {
|
|
1686
|
+
if (!(equals$1(existing_userPermissions_item, incoming_userPermissions_item))) {
|
|
1687
|
+
return false;
|
|
1688
|
+
}
|
|
1689
|
+
});
|
|
1690
|
+
if (equals_userPermissions_items === false) {
|
|
1691
|
+
return false;
|
|
1692
|
+
}
|
|
1693
|
+
return true;
|
|
1694
|
+
}
|
|
1695
|
+
const ingest = function UserPermissionsInfoListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1370
1696
|
if (process.env.NODE_ENV !== 'production') {
|
|
1371
1697
|
const validateError = validate(input);
|
|
1372
1698
|
if (validateError !== null) {
|
|
@@ -1392,7 +1718,7 @@ function select(luvio, params) {
|
|
|
1392
1718
|
return select$1();
|
|
1393
1719
|
}
|
|
1394
1720
|
function keyBuilder$1(luvio, params) {
|
|
1395
|
-
return keyPrefix + '::
|
|
1721
|
+
return keyPrefix + '::UserPermissionsInfoListRepresentation:(' + 'entityName:' + params.queryParams.entityName + ',' + 'recordId:' + params.queryParams.recordId + ')';
|
|
1396
1722
|
}
|
|
1397
1723
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1398
1724
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -1430,7 +1756,7 @@ function createResourceRequest(config) {
|
|
|
1430
1756
|
const headers = {};
|
|
1431
1757
|
return {
|
|
1432
1758
|
baseUri: '/services/data/v61.0',
|
|
1433
|
-
basePath: '/sharing/
|
|
1759
|
+
basePath: '/sharing/userPermissions',
|
|
1434
1760
|
method: 'get',
|
|
1435
1761
|
body: null,
|
|
1436
1762
|
urlParams: {},
|
|
@@ -1440,21 +1766,20 @@ function createResourceRequest(config) {
|
|
|
1440
1766
|
};
|
|
1441
1767
|
}
|
|
1442
1768
|
|
|
1443
|
-
const adapterName = '
|
|
1444
|
-
const
|
|
1445
|
-
generateParamConfigMetadata('
|
|
1446
|
-
generateParamConfigMetadata('
|
|
1447
|
-
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1769
|
+
const adapterName = 'getUserPermissions';
|
|
1770
|
+
const getUserPermissions_ConfigPropertyMetadata = [
|
|
1771
|
+
generateParamConfigMetadata('entityName', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1772
|
+
generateParamConfigMetadata('recordId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1448
1773
|
];
|
|
1449
|
-
const
|
|
1450
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1774
|
+
const getUserPermissions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUserPermissions_ConfigPropertyMetadata);
|
|
1775
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$4(getUserPermissions_ConfigPropertyMetadata);
|
|
1451
1776
|
function keyBuilder(luvio, config) {
|
|
1452
1777
|
const resourceParams = createResourceParams(config);
|
|
1453
1778
|
return keyBuilder$1(luvio, resourceParams);
|
|
1454
1779
|
}
|
|
1455
1780
|
function typeCheckConfig(untrustedConfig) {
|
|
1456
1781
|
const config = {};
|
|
1457
|
-
typeCheckConfig$
|
|
1782
|
+
typeCheckConfig$4(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
|
|
1458
1783
|
return config;
|
|
1459
1784
|
}
|
|
1460
1785
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1503,7 +1828,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1503
1828
|
});
|
|
1504
1829
|
}
|
|
1505
1830
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1506
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1831
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1507
1832
|
}
|
|
1508
1833
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1509
1834
|
const { luvio, config } = context;
|
|
@@ -1518,8 +1843,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
1518
1843
|
});
|
|
1519
1844
|
return cacheSnapshot;
|
|
1520
1845
|
}
|
|
1521
|
-
const
|
|
1522
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
1846
|
+
const getUserPermissionsAdapterFactory = (luvio) => function sharing__getUserPermissions(untrustedConfig, requestContext) {
|
|
1847
|
+
const config = validateAdapterConfig(untrustedConfig, getUserPermissions_ConfigPropertyNames);
|
|
1523
1848
|
// Invalid or incomplete config
|
|
1524
1849
|
if (config === null) {
|
|
1525
1850
|
return null;
|
|
@@ -1528,4 +1853,4 @@ const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects
|
|
|
1528
1853
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1529
1854
|
};
|
|
1530
1855
|
|
|
1531
|
-
export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory };
|
|
1856
|
+
export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory, getUserPermissionsAdapterFactory };
|