@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
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -101,8 +101,8 @@ function createLink(ref) {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
const VERSION$
|
|
105
|
-
function validate$
|
|
104
|
+
const VERSION$c = "8f1b312aa04c8869624b95b9e3f3cd4e";
|
|
105
|
+
function validate$c(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
106
106
|
const v_error = (() => {
|
|
107
107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -130,10 +130,10 @@ function validate$a(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
|
130
130
|
})();
|
|
131
131
|
return v_error === undefined ? null : v_error;
|
|
132
132
|
}
|
|
133
|
-
const select$
|
|
133
|
+
const select$g = function SobjectOutputSharingRepresentationSelect() {
|
|
134
134
|
return {
|
|
135
135
|
kind: 'Fragment',
|
|
136
|
-
version: VERSION$
|
|
136
|
+
version: VERSION$c,
|
|
137
137
|
private: [],
|
|
138
138
|
selections: [
|
|
139
139
|
{
|
|
@@ -155,7 +155,7 @@ const select$d = function SobjectOutputSharingRepresentationSelect() {
|
|
|
155
155
|
]
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
function equals$
|
|
158
|
+
function equals$c(existing, incoming) {
|
|
159
159
|
const existing_apiName = existing.apiName;
|
|
160
160
|
const incoming_apiName = incoming.apiName;
|
|
161
161
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -179,9 +179,9 @@ function equals$a(existing, incoming) {
|
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
const TTL$
|
|
183
|
-
const VERSION$
|
|
184
|
-
function validate$
|
|
182
|
+
const TTL$3 = 900000;
|
|
183
|
+
const VERSION$b = "891459dfe3e992adddad156c898d3aef";
|
|
184
|
+
function validate$b(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
185
185
|
const v_error = (() => {
|
|
186
186
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
187
187
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -199,7 +199,7 @@ function validate$9(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
199
199
|
for (let i = 0; i < obj_sobjects.length; i++) {
|
|
200
200
|
const obj_sobjects_item = obj_sobjects[i];
|
|
201
201
|
const path_sobjects_item = path_sobjects + '[' + i + ']';
|
|
202
|
-
const referencepath_sobjects_itemValidationError = validate$
|
|
202
|
+
const referencepath_sobjects_itemValidationError = validate$c(obj_sobjects_item, path_sobjects_item);
|
|
203
203
|
if (referencepath_sobjects_itemValidationError !== null) {
|
|
204
204
|
let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
|
|
205
205
|
message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -209,15 +209,15 @@ function validate$9(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
209
209
|
})();
|
|
210
210
|
return v_error === undefined ? null : v_error;
|
|
211
211
|
}
|
|
212
|
-
const RepresentationType$
|
|
213
|
-
function normalize$
|
|
212
|
+
const RepresentationType$3 = 'SobjectsOutputSharingRepresentation';
|
|
213
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
214
214
|
return input;
|
|
215
215
|
}
|
|
216
|
-
const select$
|
|
217
|
-
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$
|
|
216
|
+
const select$f = function SobjectsOutputSharingRepresentationSelect() {
|
|
217
|
+
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$g();
|
|
218
218
|
return {
|
|
219
219
|
kind: 'Fragment',
|
|
220
|
-
version: VERSION$
|
|
220
|
+
version: VERSION$b,
|
|
221
221
|
private: [],
|
|
222
222
|
selections: [
|
|
223
223
|
{
|
|
@@ -233,7 +233,7 @@ const select$c = function SobjectsOutputSharingRepresentationSelect() {
|
|
|
233
233
|
]
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
|
-
function equals$
|
|
236
|
+
function equals$b(existing, incoming) {
|
|
237
237
|
const existing_size = existing.size;
|
|
238
238
|
const incoming_size = incoming.size;
|
|
239
239
|
if (!(existing_size === incoming_size)) {
|
|
@@ -242,7 +242,7 @@ function equals$9(existing, incoming) {
|
|
|
242
242
|
const existing_sobjects = existing.sobjects;
|
|
243
243
|
const incoming_sobjects = incoming.sobjects;
|
|
244
244
|
const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
|
|
245
|
-
if (!(equals$
|
|
245
|
+
if (!(equals$c(existing_sobjects_item, incoming_sobjects_item))) {
|
|
246
246
|
return false;
|
|
247
247
|
}
|
|
248
248
|
});
|
|
@@ -251,44 +251,44 @@ function equals$9(existing, incoming) {
|
|
|
251
251
|
}
|
|
252
252
|
return true;
|
|
253
253
|
}
|
|
254
|
-
const ingest$
|
|
254
|
+
const ingest$3 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
255
255
|
if (process.env.NODE_ENV !== 'production') {
|
|
256
|
-
const validateError = validate$
|
|
256
|
+
const validateError = validate$b(input);
|
|
257
257
|
if (validateError !== null) {
|
|
258
258
|
throw validateError;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
const key = path.fullPath;
|
|
262
|
-
const ttlToUse = TTL$
|
|
263
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
262
|
+
const ttlToUse = TTL$3;
|
|
263
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$b, RepresentationType$3, equals$b);
|
|
264
264
|
return createLink(key);
|
|
265
265
|
};
|
|
266
|
-
function getTypeCacheKeys$
|
|
266
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
267
267
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
268
268
|
const rootKey = fullPathFactory();
|
|
269
269
|
rootKeySet.set(rootKey, {
|
|
270
270
|
namespace: keyPrefix,
|
|
271
|
-
representationName: RepresentationType$
|
|
271
|
+
representationName: RepresentationType$3,
|
|
272
272
|
mergeable: false
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
function select$
|
|
277
|
-
return select$
|
|
276
|
+
function select$e(luvio, params) {
|
|
277
|
+
return select$f();
|
|
278
278
|
}
|
|
279
|
-
function keyBuilder$
|
|
279
|
+
function keyBuilder$7(luvio, params) {
|
|
280
280
|
return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
|
|
281
281
|
}
|
|
282
|
-
function getResponseCacheKeys$
|
|
283
|
-
getTypeCacheKeys$
|
|
282
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
283
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
284
284
|
}
|
|
285
|
-
function ingestSuccess$
|
|
285
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
286
286
|
const { body } = response;
|
|
287
|
-
const key = keyBuilder$
|
|
288
|
-
luvio.storeIngest(key, ingest$
|
|
287
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
288
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
289
289
|
const snapshot = luvio.storeLookup({
|
|
290
290
|
recordId: key,
|
|
291
|
-
node: select$
|
|
291
|
+
node: select$e(),
|
|
292
292
|
variables: {},
|
|
293
293
|
}, snapshotRefresh);
|
|
294
294
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -299,19 +299,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
299
299
|
deepFreeze(snapshot.data);
|
|
300
300
|
return snapshot;
|
|
301
301
|
}
|
|
302
|
-
function ingestError$
|
|
303
|
-
const key = keyBuilder$
|
|
302
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
303
|
+
const key = keyBuilder$7(luvio, params);
|
|
304
304
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
305
305
|
const storeMetadataParams = {
|
|
306
|
-
ttl: TTL$
|
|
306
|
+
ttl: TTL$3,
|
|
307
307
|
namespace: keyPrefix,
|
|
308
|
-
version: VERSION$
|
|
309
|
-
representationName: RepresentationType$
|
|
308
|
+
version: VERSION$b,
|
|
309
|
+
representationName: RepresentationType$3
|
|
310
310
|
};
|
|
311
311
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
312
312
|
return errorSnapshot;
|
|
313
313
|
}
|
|
314
|
-
function createResourceRequest$
|
|
314
|
+
function createResourceRequest$3(config) {
|
|
315
315
|
const headers = {};
|
|
316
316
|
return {
|
|
317
317
|
baseUri: '/services/data/v61.0',
|
|
@@ -325,96 +325,96 @@ function createResourceRequest$2(config) {
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
const adapterName$
|
|
328
|
+
const adapterName$3 = 'getAllSobjects';
|
|
329
329
|
const getAllSobjects_ConfigPropertyMetadata = [
|
|
330
330
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
331
331
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
332
332
|
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
333
333
|
];
|
|
334
|
-
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
335
|
-
const createResourceParams$
|
|
336
|
-
function keyBuilder$
|
|
337
|
-
const resourceParams = createResourceParams$
|
|
338
|
-
return keyBuilder$
|
|
334
|
+
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getAllSobjects_ConfigPropertyMetadata);
|
|
335
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getAllSobjects_ConfigPropertyMetadata);
|
|
336
|
+
function keyBuilder$6(luvio, config) {
|
|
337
|
+
const resourceParams = createResourceParams$3(config);
|
|
338
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
339
339
|
}
|
|
340
|
-
function typeCheckConfig$
|
|
340
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
341
341
|
const config = {};
|
|
342
|
-
typeCheckConfig$
|
|
342
|
+
typeCheckConfig$4(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
|
|
343
343
|
return config;
|
|
344
344
|
}
|
|
345
|
-
function validateAdapterConfig$
|
|
345
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
346
346
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
347
347
|
return null;
|
|
348
348
|
}
|
|
349
349
|
if (process.env.NODE_ENV !== 'production') {
|
|
350
350
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
351
351
|
}
|
|
352
|
-
const config = typeCheckConfig$
|
|
352
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
353
353
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
354
354
|
return null;
|
|
355
355
|
}
|
|
356
356
|
return config;
|
|
357
357
|
}
|
|
358
|
-
function adapterFragment$
|
|
359
|
-
createResourceParams$
|
|
360
|
-
return select$
|
|
358
|
+
function adapterFragment$3(luvio, config) {
|
|
359
|
+
createResourceParams$3(config);
|
|
360
|
+
return select$e();
|
|
361
361
|
}
|
|
362
|
-
function onFetchResponseSuccess$
|
|
363
|
-
const snapshot = ingestSuccess$
|
|
362
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
363
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
364
364
|
config,
|
|
365
|
-
resolve: () => buildNetworkSnapshot$
|
|
365
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
366
366
|
});
|
|
367
367
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
368
368
|
}
|
|
369
|
-
function onFetchResponseError$
|
|
370
|
-
const snapshot = ingestError$
|
|
369
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
370
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
371
371
|
config,
|
|
372
|
-
resolve: () => buildNetworkSnapshot$
|
|
372
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
373
373
|
});
|
|
374
374
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
375
375
|
}
|
|
376
|
-
function buildNetworkSnapshot$
|
|
377
|
-
const resourceParams = createResourceParams$
|
|
378
|
-
const request = createResourceRequest$
|
|
376
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
377
|
+
const resourceParams = createResourceParams$3(config);
|
|
378
|
+
const request = createResourceRequest$3(resourceParams);
|
|
379
379
|
return luvio.dispatchResourceRequest(request, options)
|
|
380
380
|
.then((response) => {
|
|
381
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
381
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
382
382
|
const cache = new StoreKeyMap();
|
|
383
|
-
getResponseCacheKeys$
|
|
383
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
384
384
|
return cache;
|
|
385
385
|
});
|
|
386
386
|
}, (response) => {
|
|
387
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
387
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
|
-
function buildNetworkSnapshotCachePolicy$
|
|
391
|
-
return buildNetworkSnapshotCachePolicy$
|
|
390
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
391
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
392
392
|
}
|
|
393
|
-
function buildCachedSnapshotCachePolicy$
|
|
393
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
394
394
|
const { luvio, config } = context;
|
|
395
395
|
const selector = {
|
|
396
|
-
recordId: keyBuilder$
|
|
397
|
-
node: adapterFragment$
|
|
396
|
+
recordId: keyBuilder$6(luvio, config),
|
|
397
|
+
node: adapterFragment$3(luvio, config),
|
|
398
398
|
variables: {},
|
|
399
399
|
};
|
|
400
400
|
const cacheSnapshot = storeLookup(selector, {
|
|
401
401
|
config,
|
|
402
|
-
resolve: () => buildNetworkSnapshot$
|
|
402
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
403
403
|
});
|
|
404
404
|
return cacheSnapshot;
|
|
405
405
|
}
|
|
406
406
|
const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
|
|
407
|
-
const config = validateAdapterConfig$
|
|
407
|
+
const config = validateAdapterConfig$3(untrustedConfig, getAllSobjects_ConfigPropertyNames);
|
|
408
408
|
// Invalid or incomplete config
|
|
409
409
|
if (config === null) {
|
|
410
410
|
return null;
|
|
411
411
|
}
|
|
412
412
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
413
|
-
buildCachedSnapshotCachePolicy$
|
|
413
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
-
const VERSION$
|
|
417
|
-
function validate$
|
|
416
|
+
const VERSION$a = "252bb771341222662b0b76c855414e1f";
|
|
417
|
+
function validate$a(obj, path = 'PublicGroupRepresentation') {
|
|
418
418
|
const v_error = (() => {
|
|
419
419
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
420
420
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -437,10 +437,10 @@ function validate$8(obj, path = 'PublicGroupRepresentation') {
|
|
|
437
437
|
})();
|
|
438
438
|
return v_error === undefined ? null : v_error;
|
|
439
439
|
}
|
|
440
|
-
const select$
|
|
440
|
+
const select$d = function PublicGroupRepresentationSelect() {
|
|
441
441
|
return {
|
|
442
442
|
kind: 'Fragment',
|
|
443
|
-
version: VERSION$
|
|
443
|
+
version: VERSION$a,
|
|
444
444
|
private: [],
|
|
445
445
|
selections: [
|
|
446
446
|
{
|
|
@@ -458,7 +458,7 @@ const select$a = function PublicGroupRepresentationSelect() {
|
|
|
458
458
|
]
|
|
459
459
|
};
|
|
460
460
|
};
|
|
461
|
-
function equals$
|
|
461
|
+
function equals$a(existing, incoming) {
|
|
462
462
|
const existing_includeBosses = existing.includeBosses;
|
|
463
463
|
const incoming_includeBosses = incoming.includeBosses;
|
|
464
464
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -477,8 +477,8 @@ function equals$8(existing, incoming) {
|
|
|
477
477
|
return true;
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
const VERSION$
|
|
481
|
-
function validate$
|
|
480
|
+
const VERSION$9 = "9371d1d2e640f37aa01c377fc78d6ef7";
|
|
481
|
+
function validate$9(obj, path = 'QueueRepresentation') {
|
|
482
482
|
const v_error = (() => {
|
|
483
483
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
484
484
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -496,10 +496,10 @@ function validate$7(obj, path = 'QueueRepresentation') {
|
|
|
496
496
|
})();
|
|
497
497
|
return v_error === undefined ? null : v_error;
|
|
498
498
|
}
|
|
499
|
-
const select$
|
|
499
|
+
const select$c = function QueueRepresentationSelect() {
|
|
500
500
|
return {
|
|
501
501
|
kind: 'Fragment',
|
|
502
|
-
version: VERSION$
|
|
502
|
+
version: VERSION$9,
|
|
503
503
|
private: [],
|
|
504
504
|
selections: [
|
|
505
505
|
{
|
|
@@ -513,7 +513,7 @@ const select$9 = function QueueRepresentationSelect() {
|
|
|
513
513
|
]
|
|
514
514
|
};
|
|
515
515
|
};
|
|
516
|
-
function equals$
|
|
516
|
+
function equals$9(existing, incoming) {
|
|
517
517
|
const existing_developerName = existing.developerName;
|
|
518
518
|
const incoming_developerName = incoming.developerName;
|
|
519
519
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -527,9 +527,9 @@ function equals$7(existing, incoming) {
|
|
|
527
527
|
return true;
|
|
528
528
|
}
|
|
529
529
|
|
|
530
|
-
const TTL$
|
|
531
|
-
const VERSION$
|
|
532
|
-
function validate$
|
|
530
|
+
const TTL$2 = 300;
|
|
531
|
+
const VERSION$8 = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
532
|
+
function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
533
533
|
const v_error = (() => {
|
|
534
534
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
535
535
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -542,7 +542,7 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
|
|
|
542
542
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
543
543
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
544
544
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
545
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
545
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$a(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
546
546
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
547
547
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
548
548
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -557,7 +557,7 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
|
|
|
557
557
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
558
558
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
559
559
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
560
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
560
|
+
const referencepath_queueRepresentations_itemValidationError = validate$9(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
561
561
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
562
562
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
563
563
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -567,16 +567,16 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
|
|
|
567
567
|
})();
|
|
568
568
|
return v_error === undefined ? null : v_error;
|
|
569
569
|
}
|
|
570
|
-
const RepresentationType$
|
|
571
|
-
function normalize$
|
|
570
|
+
const RepresentationType$2 = 'GroupCollectionRepresentation';
|
|
571
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
572
572
|
return input;
|
|
573
573
|
}
|
|
574
|
-
const select$
|
|
575
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
576
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
574
|
+
const select$b = function GroupCollectionRepresentationSelect() {
|
|
575
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$d();
|
|
576
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$c();
|
|
577
577
|
return {
|
|
578
578
|
kind: 'Fragment',
|
|
579
|
-
version: VERSION$
|
|
579
|
+
version: VERSION$8,
|
|
580
580
|
private: [],
|
|
581
581
|
selections: [
|
|
582
582
|
{
|
|
@@ -594,11 +594,11 @@ const select$8 = function GroupCollectionRepresentationSelect() {
|
|
|
594
594
|
]
|
|
595
595
|
};
|
|
596
596
|
};
|
|
597
|
-
function equals$
|
|
597
|
+
function equals$8(existing, incoming) {
|
|
598
598
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
599
599
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
600
600
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
601
|
-
if (!(equals$
|
|
601
|
+
if (!(equals$a(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
602
602
|
return false;
|
|
603
603
|
}
|
|
604
604
|
});
|
|
@@ -608,7 +608,7 @@ function equals$6(existing, incoming) {
|
|
|
608
608
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
609
609
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
610
610
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
611
|
-
if (!(equals$
|
|
611
|
+
if (!(equals$9(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
612
612
|
return false;
|
|
613
613
|
}
|
|
614
614
|
});
|
|
@@ -617,44 +617,44 @@ function equals$6(existing, incoming) {
|
|
|
617
617
|
}
|
|
618
618
|
return true;
|
|
619
619
|
}
|
|
620
|
-
const ingest$
|
|
620
|
+
const ingest$2 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
621
621
|
if (process.env.NODE_ENV !== 'production') {
|
|
622
|
-
const validateError = validate$
|
|
622
|
+
const validateError = validate$8(input);
|
|
623
623
|
if (validateError !== null) {
|
|
624
624
|
throw validateError;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
const key = path.fullPath;
|
|
628
|
-
const ttlToUse = TTL$
|
|
629
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
628
|
+
const ttlToUse = TTL$2;
|
|
629
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$8, RepresentationType$2, equals$8);
|
|
630
630
|
return createLink(key);
|
|
631
631
|
};
|
|
632
|
-
function getTypeCacheKeys$
|
|
632
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
633
633
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
634
634
|
const rootKey = fullPathFactory();
|
|
635
635
|
rootKeySet.set(rootKey, {
|
|
636
636
|
namespace: keyPrefix,
|
|
637
|
-
representationName: RepresentationType$
|
|
637
|
+
representationName: RepresentationType$2,
|
|
638
638
|
mergeable: false
|
|
639
639
|
});
|
|
640
640
|
}
|
|
641
641
|
|
|
642
|
-
function select$
|
|
643
|
-
return select$
|
|
642
|
+
function select$a(luvio, params) {
|
|
643
|
+
return select$b();
|
|
644
644
|
}
|
|
645
|
-
function keyBuilder$
|
|
645
|
+
function keyBuilder$5(luvio, params) {
|
|
646
646
|
return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
|
|
647
647
|
}
|
|
648
|
-
function getResponseCacheKeys$
|
|
649
|
-
getTypeCacheKeys$
|
|
648
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
649
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
650
650
|
}
|
|
651
|
-
function ingestSuccess$
|
|
651
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
652
652
|
const { body } = response;
|
|
653
|
-
const key = keyBuilder$
|
|
654
|
-
luvio.storeIngest(key, ingest$
|
|
653
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
654
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
655
655
|
const snapshot = luvio.storeLookup({
|
|
656
656
|
recordId: key,
|
|
657
|
-
node: select$
|
|
657
|
+
node: select$a(),
|
|
658
658
|
variables: {},
|
|
659
659
|
}, snapshotRefresh);
|
|
660
660
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -665,19 +665,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
665
665
|
deepFreeze(snapshot.data);
|
|
666
666
|
return snapshot;
|
|
667
667
|
}
|
|
668
|
-
function ingestError$
|
|
669
|
-
const key = keyBuilder$
|
|
668
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
669
|
+
const key = keyBuilder$5(luvio, params);
|
|
670
670
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
671
671
|
const storeMetadataParams = {
|
|
672
|
-
ttl: TTL$
|
|
672
|
+
ttl: TTL$2,
|
|
673
673
|
namespace: keyPrefix,
|
|
674
|
-
version: VERSION$
|
|
675
|
-
representationName: RepresentationType$
|
|
674
|
+
version: VERSION$8,
|
|
675
|
+
representationName: RepresentationType$2
|
|
676
676
|
};
|
|
677
677
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
678
678
|
return errorSnapshot;
|
|
679
679
|
}
|
|
680
|
-
function createResourceRequest$
|
|
680
|
+
function createResourceRequest$2(config) {
|
|
681
681
|
const headers = {};
|
|
682
682
|
return {
|
|
683
683
|
baseUri: '/services/data/v61.0',
|
|
@@ -691,7 +691,7 @@ function createResourceRequest$1(config) {
|
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
693
|
|
|
694
|
-
const adapterName$
|
|
694
|
+
const adapterName$2 = 'getGroupsForUser';
|
|
695
695
|
const getGroupsForUser_ConfigPropertyMetadata = [
|
|
696
696
|
generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
697
697
|
generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
@@ -700,90 +700,90 @@ const getGroupsForUser_ConfigPropertyMetadata = [
|
|
|
700
700
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
701
701
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
702
702
|
];
|
|
703
|
-
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
704
|
-
const createResourceParams$
|
|
705
|
-
function keyBuilder$
|
|
706
|
-
const resourceParams = createResourceParams$
|
|
707
|
-
return keyBuilder$
|
|
703
|
+
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getGroupsForUser_ConfigPropertyMetadata);
|
|
704
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getGroupsForUser_ConfigPropertyMetadata);
|
|
705
|
+
function keyBuilder$4(luvio, config) {
|
|
706
|
+
const resourceParams = createResourceParams$2(config);
|
|
707
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
708
708
|
}
|
|
709
|
-
function typeCheckConfig$
|
|
709
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
710
710
|
const config = {};
|
|
711
|
-
typeCheckConfig$
|
|
711
|
+
typeCheckConfig$4(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
|
|
712
712
|
return config;
|
|
713
713
|
}
|
|
714
|
-
function validateAdapterConfig$
|
|
714
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
715
715
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
716
716
|
return null;
|
|
717
717
|
}
|
|
718
718
|
if (process.env.NODE_ENV !== 'production') {
|
|
719
719
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
720
720
|
}
|
|
721
|
-
const config = typeCheckConfig$
|
|
721
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
722
722
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
723
723
|
return null;
|
|
724
724
|
}
|
|
725
725
|
return config;
|
|
726
726
|
}
|
|
727
|
-
function adapterFragment$
|
|
728
|
-
createResourceParams$
|
|
729
|
-
return select$
|
|
727
|
+
function adapterFragment$2(luvio, config) {
|
|
728
|
+
createResourceParams$2(config);
|
|
729
|
+
return select$a();
|
|
730
730
|
}
|
|
731
|
-
function onFetchResponseSuccess$
|
|
732
|
-
const snapshot = ingestSuccess$
|
|
731
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
732
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
733
733
|
config,
|
|
734
|
-
resolve: () => buildNetworkSnapshot$
|
|
734
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
735
735
|
});
|
|
736
736
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
737
737
|
}
|
|
738
|
-
function onFetchResponseError$
|
|
739
|
-
const snapshot = ingestError$
|
|
738
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
739
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
740
740
|
config,
|
|
741
|
-
resolve: () => buildNetworkSnapshot$
|
|
741
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
742
742
|
});
|
|
743
743
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
744
744
|
}
|
|
745
|
-
function buildNetworkSnapshot$
|
|
746
|
-
const resourceParams = createResourceParams$
|
|
747
|
-
const request = createResourceRequest$
|
|
745
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
746
|
+
const resourceParams = createResourceParams$2(config);
|
|
747
|
+
const request = createResourceRequest$2(resourceParams);
|
|
748
748
|
return luvio.dispatchResourceRequest(request, options)
|
|
749
749
|
.then((response) => {
|
|
750
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
750
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
751
751
|
const cache = new StoreKeyMap();
|
|
752
|
-
getResponseCacheKeys$
|
|
752
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
753
753
|
return cache;
|
|
754
754
|
});
|
|
755
755
|
}, (response) => {
|
|
756
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
756
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
-
function buildNetworkSnapshotCachePolicy$
|
|
760
|
-
return buildNetworkSnapshotCachePolicy$
|
|
759
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
760
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
761
761
|
}
|
|
762
|
-
function buildCachedSnapshotCachePolicy$
|
|
762
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
763
763
|
const { luvio, config } = context;
|
|
764
764
|
const selector = {
|
|
765
|
-
recordId: keyBuilder$
|
|
766
|
-
node: adapterFragment$
|
|
765
|
+
recordId: keyBuilder$4(luvio, config),
|
|
766
|
+
node: adapterFragment$2(luvio, config),
|
|
767
767
|
variables: {},
|
|
768
768
|
};
|
|
769
769
|
const cacheSnapshot = storeLookup(selector, {
|
|
770
770
|
config,
|
|
771
|
-
resolve: () => buildNetworkSnapshot$
|
|
771
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
772
772
|
});
|
|
773
773
|
return cacheSnapshot;
|
|
774
774
|
}
|
|
775
775
|
const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
|
|
776
|
-
const config = validateAdapterConfig$
|
|
776
|
+
const config = validateAdapterConfig$2(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
|
|
777
777
|
// Invalid or incomplete config
|
|
778
778
|
if (config === null) {
|
|
779
779
|
return null;
|
|
780
780
|
}
|
|
781
781
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
782
|
-
buildCachedSnapshotCachePolicy$
|
|
782
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
783
783
|
};
|
|
784
784
|
|
|
785
|
-
const VERSION$
|
|
786
|
-
function validate$
|
|
785
|
+
const VERSION$7 = "11e587d0bd769c0df33d7cce4eb7210d";
|
|
786
|
+
function validate$7(obj, path = 'IncludedGroupsSharingRepresentation') {
|
|
787
787
|
const v_error = (() => {
|
|
788
788
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
789
789
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -816,10 +816,10 @@ function validate$5(obj, path = 'IncludedGroupsSharingRepresentation') {
|
|
|
816
816
|
})();
|
|
817
817
|
return v_error === undefined ? null : v_error;
|
|
818
818
|
}
|
|
819
|
-
const select$
|
|
819
|
+
const select$9 = function IncludedGroupsSharingRepresentationSelect() {
|
|
820
820
|
return {
|
|
821
821
|
kind: 'Fragment',
|
|
822
|
-
version: VERSION$
|
|
822
|
+
version: VERSION$7,
|
|
823
823
|
private: [],
|
|
824
824
|
selections: [
|
|
825
825
|
{
|
|
@@ -845,7 +845,7 @@ const select$6 = function IncludedGroupsSharingRepresentationSelect() {
|
|
|
845
845
|
]
|
|
846
846
|
};
|
|
847
847
|
};
|
|
848
|
-
function equals$
|
|
848
|
+
function equals$7(existing, incoming) {
|
|
849
849
|
const existing_grantAccessHierarchies = existing.grantAccessHierarchies;
|
|
850
850
|
const incoming_grantAccessHierarchies = incoming.grantAccessHierarchies;
|
|
851
851
|
if (!(existing_grantAccessHierarchies === incoming_grantAccessHierarchies)) {
|
|
@@ -874,8 +874,8 @@ function equals$5(existing, incoming) {
|
|
|
874
874
|
return true;
|
|
875
875
|
}
|
|
876
876
|
|
|
877
|
-
const VERSION$
|
|
878
|
-
function validate$
|
|
877
|
+
const VERSION$6 = "06eef993be289c8b20b37b2ae6f4c5ee";
|
|
878
|
+
function validate$6(obj, path = 'ListViewGroupSharingRepresentation') {
|
|
879
879
|
const v_error = (() => {
|
|
880
880
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
881
881
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -893,10 +893,10 @@ function validate$4(obj, path = 'ListViewGroupSharingRepresentation') {
|
|
|
893
893
|
})();
|
|
894
894
|
return v_error === undefined ? null : v_error;
|
|
895
895
|
}
|
|
896
|
-
const select$
|
|
896
|
+
const select$8 = function ListViewGroupSharingRepresentationSelect() {
|
|
897
897
|
return {
|
|
898
898
|
kind: 'Fragment',
|
|
899
|
-
version: VERSION$
|
|
899
|
+
version: VERSION$6,
|
|
900
900
|
private: [],
|
|
901
901
|
selections: [
|
|
902
902
|
{
|
|
@@ -910,7 +910,7 @@ const select$5 = function ListViewGroupSharingRepresentationSelect() {
|
|
|
910
910
|
]
|
|
911
911
|
};
|
|
912
912
|
};
|
|
913
|
-
function equals$
|
|
913
|
+
function equals$6(existing, incoming) {
|
|
914
914
|
const existing_developerName = existing.developerName;
|
|
915
915
|
const incoming_developerName = incoming.developerName;
|
|
916
916
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -924,8 +924,8 @@ function equals$4(existing, incoming) {
|
|
|
924
924
|
return true;
|
|
925
925
|
}
|
|
926
926
|
|
|
927
|
-
const VERSION$
|
|
928
|
-
function validate$
|
|
927
|
+
const VERSION$5 = "a0ed38b40ad9886f3e05a1b65fd2e246";
|
|
928
|
+
function validate$5(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
|
|
929
929
|
const v_error = (() => {
|
|
930
930
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
931
931
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -963,10 +963,10 @@ function validate$3(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentat
|
|
|
963
963
|
})();
|
|
964
964
|
return v_error === undefined ? null : v_error;
|
|
965
965
|
}
|
|
966
|
-
const select$
|
|
966
|
+
const select$7 = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
|
|
967
967
|
return {
|
|
968
968
|
kind: 'Fragment',
|
|
969
|
-
version: VERSION$
|
|
969
|
+
version: VERSION$5,
|
|
970
970
|
private: [],
|
|
971
971
|
selections: [
|
|
972
972
|
{
|
|
@@ -996,7 +996,7 @@ const select$4 = function ReportAndDashboardFolderGroupSharingRepresentationSele
|
|
|
996
996
|
]
|
|
997
997
|
};
|
|
998
998
|
};
|
|
999
|
-
function equals$
|
|
999
|
+
function equals$5(existing, incoming) {
|
|
1000
1000
|
const existing_accessLevel = existing.accessLevel;
|
|
1001
1001
|
const incoming_accessLevel = incoming.accessLevel;
|
|
1002
1002
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -1030,8 +1030,8 @@ function equals$3(existing, incoming) {
|
|
|
1030
1030
|
return true;
|
|
1031
1031
|
}
|
|
1032
1032
|
|
|
1033
|
-
const VERSION$
|
|
1034
|
-
function validate$
|
|
1033
|
+
const VERSION$4 = "1036a20704b51746749bb4be569e39c0";
|
|
1034
|
+
function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
|
|
1035
1035
|
const v_error = (() => {
|
|
1036
1036
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1037
1037
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1059,10 +1059,10 @@ function validate$2(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation'
|
|
|
1059
1059
|
})();
|
|
1060
1060
|
return v_error === undefined ? null : v_error;
|
|
1061
1061
|
}
|
|
1062
|
-
const select$
|
|
1062
|
+
const select$6 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
|
|
1063
1063
|
return {
|
|
1064
1064
|
kind: 'Fragment',
|
|
1065
|
-
version: VERSION$
|
|
1065
|
+
version: VERSION$4,
|
|
1066
1066
|
private: [],
|
|
1067
1067
|
selections: [
|
|
1068
1068
|
{
|
|
@@ -1084,7 +1084,7 @@ const select$3 = function SharingRulesCriteriaGroupSharingRepresentationSelect()
|
|
|
1084
1084
|
]
|
|
1085
1085
|
};
|
|
1086
1086
|
};
|
|
1087
|
-
function equals$
|
|
1087
|
+
function equals$4(existing, incoming) {
|
|
1088
1088
|
const existing_accessLevel = existing.accessLevel;
|
|
1089
1089
|
const incoming_accessLevel = incoming.accessLevel;
|
|
1090
1090
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -1108,8 +1108,8 @@ function equals$2(existing, incoming) {
|
|
|
1108
1108
|
return true;
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
|
-
const VERSION$
|
|
1112
|
-
function validate$
|
|
1111
|
+
const VERSION$3 = "8f205925d69192f91fd2c71838ed20e7";
|
|
1112
|
+
function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
1113
1113
|
const v_error = (() => {
|
|
1114
1114
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1115
1115
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1137,10 +1137,10 @@ function validate$1(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
|
1137
1137
|
})();
|
|
1138
1138
|
return v_error === undefined ? null : v_error;
|
|
1139
1139
|
}
|
|
1140
|
-
const select$
|
|
1140
|
+
const select$5 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
1141
1141
|
return {
|
|
1142
1142
|
kind: 'Fragment',
|
|
1143
|
-
version: VERSION$
|
|
1143
|
+
version: VERSION$3,
|
|
1144
1144
|
private: [],
|
|
1145
1145
|
selections: [
|
|
1146
1146
|
{
|
|
@@ -1162,7 +1162,7 @@ const select$2 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
|
1162
1162
|
]
|
|
1163
1163
|
};
|
|
1164
1164
|
};
|
|
1165
|
-
function equals$
|
|
1165
|
+
function equals$3(existing, incoming) {
|
|
1166
1166
|
const existing_accessLevel = existing.accessLevel;
|
|
1167
1167
|
const incoming_accessLevel = incoming.accessLevel;
|
|
1168
1168
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -1186,9 +1186,9 @@ function equals$1(existing, incoming) {
|
|
|
1186
1186
|
return true;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
|
-
const TTL = 300;
|
|
1190
|
-
const VERSION = "68cd535d9b1bd32d0d42ce950115eff5";
|
|
1191
|
-
function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
1189
|
+
const TTL$1 = 300;
|
|
1190
|
+
const VERSION$2 = "68cd535d9b1bd32d0d42ce950115eff5";
|
|
1191
|
+
function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
1192
1192
|
const v_error = (() => {
|
|
1193
1193
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1194
1194
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1201,7 +1201,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1201
1201
|
for (let i = 0; i < obj_includedGroupsSharing.length; i++) {
|
|
1202
1202
|
const obj_includedGroupsSharing_item = obj_includedGroupsSharing[i];
|
|
1203
1203
|
const path_includedGroupsSharing_item = path_includedGroupsSharing + '[' + i + ']';
|
|
1204
|
-
const referencepath_includedGroupsSharing_itemValidationError = validate$
|
|
1204
|
+
const referencepath_includedGroupsSharing_itemValidationError = validate$7(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
|
|
1205
1205
|
if (referencepath_includedGroupsSharing_itemValidationError !== null) {
|
|
1206
1206
|
let message = 'Object doesn\'t match IncludedGroupsSharingRepresentation (at "' + path_includedGroupsSharing_item + '")\n';
|
|
1207
1207
|
message += referencepath_includedGroupsSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1216,7 +1216,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1216
1216
|
for (let i = 0; i < obj_listViewGroupSharing.length; i++) {
|
|
1217
1217
|
const obj_listViewGroupSharing_item = obj_listViewGroupSharing[i];
|
|
1218
1218
|
const path_listViewGroupSharing_item = path_listViewGroupSharing + '[' + i + ']';
|
|
1219
|
-
const referencepath_listViewGroupSharing_itemValidationError = validate$
|
|
1219
|
+
const referencepath_listViewGroupSharing_itemValidationError = validate$6(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
|
|
1220
1220
|
if (referencepath_listViewGroupSharing_itemValidationError !== null) {
|
|
1221
1221
|
let message = 'Object doesn\'t match ListViewGroupSharingRepresentation (at "' + path_listViewGroupSharing_item + '")\n';
|
|
1222
1222
|
message += referencepath_listViewGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1231,7 +1231,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1231
1231
|
for (let i = 0; i < obj_reportAndDashboardFolderGroupSharing.length; i++) {
|
|
1232
1232
|
const obj_reportAndDashboardFolderGroupSharing_item = obj_reportAndDashboardFolderGroupSharing[i];
|
|
1233
1233
|
const path_reportAndDashboardFolderGroupSharing_item = path_reportAndDashboardFolderGroupSharing + '[' + i + ']';
|
|
1234
|
-
const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$
|
|
1234
|
+
const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$5(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
|
|
1235
1235
|
if (referencepath_reportAndDashboardFolderGroupSharing_itemValidationError !== null) {
|
|
1236
1236
|
let message = 'Object doesn\'t match ReportAndDashboardFolderGroupSharingRepresentation (at "' + path_reportAndDashboardFolderGroupSharing_item + '")\n';
|
|
1237
1237
|
message += referencepath_reportAndDashboardFolderGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1246,7 +1246,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1246
1246
|
for (let i = 0; i < obj_sharingRulesCriteriaGroupSharing.length; i++) {
|
|
1247
1247
|
const obj_sharingRulesCriteriaGroupSharing_item = obj_sharingRulesCriteriaGroupSharing[i];
|
|
1248
1248
|
const path_sharingRulesCriteriaGroupSharing_item = path_sharingRulesCriteriaGroupSharing + '[' + i + ']';
|
|
1249
|
-
const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$
|
|
1249
|
+
const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$4(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
|
|
1250
1250
|
if (referencepath_sharingRulesCriteriaGroupSharing_itemValidationError !== null) {
|
|
1251
1251
|
let message = 'Object doesn\'t match SharingRulesCriteriaGroupSharingRepresentation (at "' + path_sharingRulesCriteriaGroupSharing_item + '")\n';
|
|
1252
1252
|
message += referencepath_sharingRulesCriteriaGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1261,7 +1261,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1261
1261
|
for (let i = 0; i < obj_sharingRulesOwnerGroupSharing.length; i++) {
|
|
1262
1262
|
const obj_sharingRulesOwnerGroupSharing_item = obj_sharingRulesOwnerGroupSharing[i];
|
|
1263
1263
|
const path_sharingRulesOwnerGroupSharing_item = path_sharingRulesOwnerGroupSharing + '[' + i + ']';
|
|
1264
|
-
const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$
|
|
1264
|
+
const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$3(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
|
|
1265
1265
|
if (referencepath_sharingRulesOwnerGroupSharing_itemValidationError !== null) {
|
|
1266
1266
|
let message = 'Object doesn\'t match SharingRulesOwnerGroupSharingRepresentation (at "' + path_sharingRulesOwnerGroupSharing_item + '")\n';
|
|
1267
1267
|
message += referencepath_sharingRulesOwnerGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1271,19 +1271,19 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
1271
1271
|
})();
|
|
1272
1272
|
return v_error === undefined ? null : v_error;
|
|
1273
1273
|
}
|
|
1274
|
-
const RepresentationType = 'PublicGroupSummaryRepresentation';
|
|
1275
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1274
|
+
const RepresentationType$1 = 'PublicGroupSummaryRepresentation';
|
|
1275
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1276
1276
|
return input;
|
|
1277
1277
|
}
|
|
1278
|
-
const select$
|
|
1279
|
-
const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$
|
|
1280
|
-
const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$
|
|
1281
|
-
const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$
|
|
1282
|
-
const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$
|
|
1283
|
-
const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$
|
|
1278
|
+
const select$4 = function PublicGroupSummaryRepresentationSelect() {
|
|
1279
|
+
const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$9();
|
|
1280
|
+
const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$8();
|
|
1281
|
+
const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$7();
|
|
1282
|
+
const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$6();
|
|
1283
|
+
const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$5();
|
|
1284
1284
|
return {
|
|
1285
1285
|
kind: 'Fragment',
|
|
1286
|
-
version: VERSION,
|
|
1286
|
+
version: VERSION$2,
|
|
1287
1287
|
private: [],
|
|
1288
1288
|
selections: [
|
|
1289
1289
|
{
|
|
@@ -1319,11 +1319,11 @@ const select$1 = function PublicGroupSummaryRepresentationSelect() {
|
|
|
1319
1319
|
]
|
|
1320
1320
|
};
|
|
1321
1321
|
};
|
|
1322
|
-
function equals(existing, incoming) {
|
|
1322
|
+
function equals$2(existing, incoming) {
|
|
1323
1323
|
const existing_includedGroupsSharing = existing.includedGroupsSharing;
|
|
1324
1324
|
const incoming_includedGroupsSharing = incoming.includedGroupsSharing;
|
|
1325
1325
|
const equals_includedGroupsSharing_items = equalsArray(existing_includedGroupsSharing, incoming_includedGroupsSharing, (existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item) => {
|
|
1326
|
-
if (!(equals$
|
|
1326
|
+
if (!(equals$7(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
|
|
1327
1327
|
return false;
|
|
1328
1328
|
}
|
|
1329
1329
|
});
|
|
@@ -1333,7 +1333,7 @@ function equals(existing, incoming) {
|
|
|
1333
1333
|
const existing_listViewGroupSharing = existing.listViewGroupSharing;
|
|
1334
1334
|
const incoming_listViewGroupSharing = incoming.listViewGroupSharing;
|
|
1335
1335
|
const equals_listViewGroupSharing_items = equalsArray(existing_listViewGroupSharing, incoming_listViewGroupSharing, (existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item) => {
|
|
1336
|
-
if (!(equals$
|
|
1336
|
+
if (!(equals$6(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
|
|
1337
1337
|
return false;
|
|
1338
1338
|
}
|
|
1339
1339
|
});
|
|
@@ -1343,7 +1343,7 @@ function equals(existing, incoming) {
|
|
|
1343
1343
|
const existing_reportAndDashboardFolderGroupSharing = existing.reportAndDashboardFolderGroupSharing;
|
|
1344
1344
|
const incoming_reportAndDashboardFolderGroupSharing = incoming.reportAndDashboardFolderGroupSharing;
|
|
1345
1345
|
const equals_reportAndDashboardFolderGroupSharing_items = equalsArray(existing_reportAndDashboardFolderGroupSharing, incoming_reportAndDashboardFolderGroupSharing, (existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item) => {
|
|
1346
|
-
if (!(equals$
|
|
1346
|
+
if (!(equals$5(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
|
|
1347
1347
|
return false;
|
|
1348
1348
|
}
|
|
1349
1349
|
});
|
|
@@ -1353,7 +1353,7 @@ function equals(existing, incoming) {
|
|
|
1353
1353
|
const existing_sharingRulesCriteriaGroupSharing = existing.sharingRulesCriteriaGroupSharing;
|
|
1354
1354
|
const incoming_sharingRulesCriteriaGroupSharing = incoming.sharingRulesCriteriaGroupSharing;
|
|
1355
1355
|
const equals_sharingRulesCriteriaGroupSharing_items = equalsArray(existing_sharingRulesCriteriaGroupSharing, incoming_sharingRulesCriteriaGroupSharing, (existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item) => {
|
|
1356
|
-
if (!(equals$
|
|
1356
|
+
if (!(equals$4(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
|
|
1357
1357
|
return false;
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
@@ -1363,7 +1363,7 @@ function equals(existing, incoming) {
|
|
|
1363
1363
|
const existing_sharingRulesOwnerGroupSharing = existing.sharingRulesOwnerGroupSharing;
|
|
1364
1364
|
const incoming_sharingRulesOwnerGroupSharing = incoming.sharingRulesOwnerGroupSharing;
|
|
1365
1365
|
const equals_sharingRulesOwnerGroupSharing_items = equalsArray(existing_sharingRulesOwnerGroupSharing, incoming_sharingRulesOwnerGroupSharing, (existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item) => {
|
|
1366
|
-
if (!(equals$
|
|
1366
|
+
if (!(equals$3(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
|
|
1367
1367
|
return false;
|
|
1368
1368
|
}
|
|
1369
1369
|
});
|
|
@@ -1372,7 +1372,309 @@ function equals(existing, incoming) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
return true;
|
|
1374
1374
|
}
|
|
1375
|
-
const ingest = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1375
|
+
const ingest$1 = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1376
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1377
|
+
const validateError = validate$2(input);
|
|
1378
|
+
if (validateError !== null) {
|
|
1379
|
+
throw validateError;
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
const key = path.fullPath;
|
|
1383
|
+
const ttlToUse = TTL$1;
|
|
1384
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sharing", VERSION$2, RepresentationType$1, equals$2);
|
|
1385
|
+
return createLink(key);
|
|
1386
|
+
};
|
|
1387
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1388
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1389
|
+
const rootKey = fullPathFactory();
|
|
1390
|
+
rootKeySet.set(rootKey, {
|
|
1391
|
+
namespace: keyPrefix,
|
|
1392
|
+
representationName: RepresentationType$1,
|
|
1393
|
+
mergeable: false
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
function select$3(luvio, params) {
|
|
1398
|
+
return select$4();
|
|
1399
|
+
}
|
|
1400
|
+
function keyBuilder$3(luvio, params) {
|
|
1401
|
+
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 + ')';
|
|
1402
|
+
}
|
|
1403
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1404
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1405
|
+
}
|
|
1406
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
1407
|
+
const { body } = response;
|
|
1408
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
1409
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1410
|
+
const snapshot = luvio.storeLookup({
|
|
1411
|
+
recordId: key,
|
|
1412
|
+
node: select$3(),
|
|
1413
|
+
variables: {},
|
|
1414
|
+
}, snapshotRefresh);
|
|
1415
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1416
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1417
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
deepFreeze(snapshot.data);
|
|
1421
|
+
return snapshot;
|
|
1422
|
+
}
|
|
1423
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
1424
|
+
const key = keyBuilder$3(luvio, params);
|
|
1425
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1426
|
+
const storeMetadataParams = {
|
|
1427
|
+
ttl: TTL$1,
|
|
1428
|
+
namespace: keyPrefix,
|
|
1429
|
+
version: VERSION$2,
|
|
1430
|
+
representationName: RepresentationType$1
|
|
1431
|
+
};
|
|
1432
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1433
|
+
return errorSnapshot;
|
|
1434
|
+
}
|
|
1435
|
+
function createResourceRequest$1(config) {
|
|
1436
|
+
const headers = {};
|
|
1437
|
+
return {
|
|
1438
|
+
baseUri: '/services/data/v61.0',
|
|
1439
|
+
basePath: '/sharing/publicGroupsSummary',
|
|
1440
|
+
method: 'post',
|
|
1441
|
+
body: config.body,
|
|
1442
|
+
urlParams: {},
|
|
1443
|
+
queryParams: {},
|
|
1444
|
+
headers,
|
|
1445
|
+
priority: 'normal',
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
const adapterName$1 = 'getPublicGroupShareData';
|
|
1450
|
+
const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
1451
|
+
generateParamConfigMetadata('entityKeyPrefix', true, 2 /* Body */, 0 /* String */),
|
|
1452
|
+
generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
|
|
1453
|
+
generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
|
|
1454
|
+
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
1455
|
+
generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
|
|
1456
|
+
generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
|
|
1457
|
+
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
1458
|
+
];
|
|
1459
|
+
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1460
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1461
|
+
function keyBuilder$2(luvio, config) {
|
|
1462
|
+
const resourceParams = createResourceParams$1(config);
|
|
1463
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
1464
|
+
}
|
|
1465
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
1466
|
+
const config = {};
|
|
1467
|
+
typeCheckConfig$4(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1468
|
+
return config;
|
|
1469
|
+
}
|
|
1470
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
1471
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1472
|
+
return null;
|
|
1473
|
+
}
|
|
1474
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1475
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1476
|
+
}
|
|
1477
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
1478
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1479
|
+
return null;
|
|
1480
|
+
}
|
|
1481
|
+
return config;
|
|
1482
|
+
}
|
|
1483
|
+
function adapterFragment$1(luvio, config) {
|
|
1484
|
+
createResourceParams$1(config);
|
|
1485
|
+
return select$3();
|
|
1486
|
+
}
|
|
1487
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1488
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
1489
|
+
config,
|
|
1490
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1491
|
+
});
|
|
1492
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1493
|
+
}
|
|
1494
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1495
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1496
|
+
config,
|
|
1497
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1498
|
+
});
|
|
1499
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1500
|
+
}
|
|
1501
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
1502
|
+
const resourceParams = createResourceParams$1(config);
|
|
1503
|
+
const request = createResourceRequest$1(resourceParams);
|
|
1504
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1505
|
+
.then((response) => {
|
|
1506
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1507
|
+
const cache = new StoreKeyMap();
|
|
1508
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1509
|
+
return cache;
|
|
1510
|
+
});
|
|
1511
|
+
}, (response) => {
|
|
1512
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
1513
|
+
});
|
|
1514
|
+
}
|
|
1515
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1516
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
|
|
1517
|
+
}
|
|
1518
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1519
|
+
const { luvio, config } = context;
|
|
1520
|
+
const selector = {
|
|
1521
|
+
recordId: keyBuilder$2(luvio, config),
|
|
1522
|
+
node: adapterFragment$1(luvio, config),
|
|
1523
|
+
variables: {},
|
|
1524
|
+
};
|
|
1525
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1526
|
+
config,
|
|
1527
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1528
|
+
});
|
|
1529
|
+
return cacheSnapshot;
|
|
1530
|
+
}
|
|
1531
|
+
const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPublicGroupShareData(untrustedConfig, requestContext) {
|
|
1532
|
+
const config = validateAdapterConfig$1(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
|
|
1533
|
+
// Invalid or incomplete config
|
|
1534
|
+
if (config === null) {
|
|
1535
|
+
return null;
|
|
1536
|
+
}
|
|
1537
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1538
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1539
|
+
};
|
|
1540
|
+
|
|
1541
|
+
const VERSION$1 = "348a7399778e8986878f81df955a8eab";
|
|
1542
|
+
function validate$1(obj, path = 'UserPermissionInfoRepresentation') {
|
|
1543
|
+
const v_error = (() => {
|
|
1544
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1545
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1546
|
+
}
|
|
1547
|
+
const obj_userPermApiName = obj.userPermApiName;
|
|
1548
|
+
const path_userPermApiName = path + '.userPermApiName';
|
|
1549
|
+
if (typeof obj_userPermApiName !== 'string') {
|
|
1550
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermApiName + '" (at "' + path_userPermApiName + '")');
|
|
1551
|
+
}
|
|
1552
|
+
const obj_userPermDescription = obj.userPermDescription;
|
|
1553
|
+
const path_userPermDescription = path + '.userPermDescription';
|
|
1554
|
+
if (typeof obj_userPermDescription !== 'string') {
|
|
1555
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermDescription + '" (at "' + path_userPermDescription + '")');
|
|
1556
|
+
}
|
|
1557
|
+
const obj_userPermLabel = obj.userPermLabel;
|
|
1558
|
+
const path_userPermLabel = path + '.userPermLabel';
|
|
1559
|
+
if (typeof obj_userPermLabel !== 'string') {
|
|
1560
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userPermLabel + '" (at "' + path_userPermLabel + '")');
|
|
1561
|
+
}
|
|
1562
|
+
})();
|
|
1563
|
+
return v_error === undefined ? null : v_error;
|
|
1564
|
+
}
|
|
1565
|
+
const select$2 = function UserPermissionInfoRepresentationSelect() {
|
|
1566
|
+
return {
|
|
1567
|
+
kind: 'Fragment',
|
|
1568
|
+
version: VERSION$1,
|
|
1569
|
+
private: [],
|
|
1570
|
+
selections: [
|
|
1571
|
+
{
|
|
1572
|
+
name: 'userPermApiName',
|
|
1573
|
+
kind: 'Scalar'
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
name: 'userPermDescription',
|
|
1577
|
+
kind: 'Scalar'
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
name: 'userPermLabel',
|
|
1581
|
+
kind: 'Scalar'
|
|
1582
|
+
}
|
|
1583
|
+
]
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1586
|
+
function equals$1(existing, incoming) {
|
|
1587
|
+
const existing_userPermApiName = existing.userPermApiName;
|
|
1588
|
+
const incoming_userPermApiName = incoming.userPermApiName;
|
|
1589
|
+
if (!(existing_userPermApiName === incoming_userPermApiName)) {
|
|
1590
|
+
return false;
|
|
1591
|
+
}
|
|
1592
|
+
const existing_userPermDescription = existing.userPermDescription;
|
|
1593
|
+
const incoming_userPermDescription = incoming.userPermDescription;
|
|
1594
|
+
if (!(existing_userPermDescription === incoming_userPermDescription)) {
|
|
1595
|
+
return false;
|
|
1596
|
+
}
|
|
1597
|
+
const existing_userPermLabel = existing.userPermLabel;
|
|
1598
|
+
const incoming_userPermLabel = incoming.userPermLabel;
|
|
1599
|
+
if (!(existing_userPermLabel === incoming_userPermLabel)) {
|
|
1600
|
+
return false;
|
|
1601
|
+
}
|
|
1602
|
+
return true;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
const TTL = 600000;
|
|
1606
|
+
const VERSION = "627ab68dfb8c0174c1e9dc9f2701c1b2";
|
|
1607
|
+
function validate(obj, path = 'UserPermissionsInfoListRepresentation') {
|
|
1608
|
+
const v_error = (() => {
|
|
1609
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1610
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1611
|
+
}
|
|
1612
|
+
const obj_size = obj.size;
|
|
1613
|
+
const path_size = path + '.size';
|
|
1614
|
+
if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
|
|
1615
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
1616
|
+
}
|
|
1617
|
+
const obj_userPermissions = obj.userPermissions;
|
|
1618
|
+
const path_userPermissions = path + '.userPermissions';
|
|
1619
|
+
if (!ArrayIsArray(obj_userPermissions)) {
|
|
1620
|
+
return new TypeError('Expected "array" but received "' + typeof obj_userPermissions + '" (at "' + path_userPermissions + '")');
|
|
1621
|
+
}
|
|
1622
|
+
for (let i = 0; i < obj_userPermissions.length; i++) {
|
|
1623
|
+
const obj_userPermissions_item = obj_userPermissions[i];
|
|
1624
|
+
const path_userPermissions_item = path_userPermissions + '[' + i + ']';
|
|
1625
|
+
const referencepath_userPermissions_itemValidationError = validate$1(obj_userPermissions_item, path_userPermissions_item);
|
|
1626
|
+
if (referencepath_userPermissions_itemValidationError !== null) {
|
|
1627
|
+
let message = 'Object doesn\'t match UserPermissionInfoRepresentation (at "' + path_userPermissions_item + '")\n';
|
|
1628
|
+
message += referencepath_userPermissions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1629
|
+
return new TypeError(message);
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
})();
|
|
1633
|
+
return v_error === undefined ? null : v_error;
|
|
1634
|
+
}
|
|
1635
|
+
const RepresentationType = 'UserPermissionsInfoListRepresentation';
|
|
1636
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1637
|
+
return input;
|
|
1638
|
+
}
|
|
1639
|
+
const select$1 = function UserPermissionsInfoListRepresentationSelect() {
|
|
1640
|
+
const { selections: UserPermissionInfoRepresentation__selections, opaque: UserPermissionInfoRepresentation__opaque, } = select$2();
|
|
1641
|
+
return {
|
|
1642
|
+
kind: 'Fragment',
|
|
1643
|
+
version: VERSION,
|
|
1644
|
+
private: [],
|
|
1645
|
+
selections: [
|
|
1646
|
+
{
|
|
1647
|
+
name: 'size',
|
|
1648
|
+
kind: 'Scalar'
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
name: 'userPermissions',
|
|
1652
|
+
kind: 'Object',
|
|
1653
|
+
plural: true,
|
|
1654
|
+
selections: UserPermissionInfoRepresentation__selections
|
|
1655
|
+
}
|
|
1656
|
+
]
|
|
1657
|
+
};
|
|
1658
|
+
};
|
|
1659
|
+
function equals(existing, incoming) {
|
|
1660
|
+
const existing_size = existing.size;
|
|
1661
|
+
const incoming_size = incoming.size;
|
|
1662
|
+
if (!(existing_size === incoming_size)) {
|
|
1663
|
+
return false;
|
|
1664
|
+
}
|
|
1665
|
+
const existing_userPermissions = existing.userPermissions;
|
|
1666
|
+
const incoming_userPermissions = incoming.userPermissions;
|
|
1667
|
+
const equals_userPermissions_items = equalsArray(existing_userPermissions, incoming_userPermissions, (existing_userPermissions_item, incoming_userPermissions_item) => {
|
|
1668
|
+
if (!(equals$1(existing_userPermissions_item, incoming_userPermissions_item))) {
|
|
1669
|
+
return false;
|
|
1670
|
+
}
|
|
1671
|
+
});
|
|
1672
|
+
if (equals_userPermissions_items === false) {
|
|
1673
|
+
return false;
|
|
1674
|
+
}
|
|
1675
|
+
return true;
|
|
1676
|
+
}
|
|
1677
|
+
const ingest = function UserPermissionsInfoListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1376
1678
|
if (process.env.NODE_ENV !== 'production') {
|
|
1377
1679
|
const validateError = validate(input);
|
|
1378
1680
|
if (validateError !== null) {
|
|
@@ -1398,7 +1700,7 @@ function select(luvio, params) {
|
|
|
1398
1700
|
return select$1();
|
|
1399
1701
|
}
|
|
1400
1702
|
function keyBuilder$1(luvio, params) {
|
|
1401
|
-
return keyPrefix + '::
|
|
1703
|
+
return keyPrefix + '::UserPermissionsInfoListRepresentation:(' + 'entityName:' + params.queryParams.entityName + ',' + 'recordId:' + params.queryParams.recordId + ')';
|
|
1402
1704
|
}
|
|
1403
1705
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1404
1706
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -1436,35 +1738,30 @@ function createResourceRequest(config) {
|
|
|
1436
1738
|
const headers = {};
|
|
1437
1739
|
return {
|
|
1438
1740
|
baseUri: '/services/data/v61.0',
|
|
1439
|
-
basePath: '/sharing/
|
|
1440
|
-
method: '
|
|
1441
|
-
body:
|
|
1741
|
+
basePath: '/sharing/userPermissions',
|
|
1742
|
+
method: 'get',
|
|
1743
|
+
body: null,
|
|
1442
1744
|
urlParams: {},
|
|
1443
|
-
queryParams:
|
|
1745
|
+
queryParams: config.queryParams,
|
|
1444
1746
|
headers,
|
|
1445
1747
|
priority: 'normal',
|
|
1446
1748
|
};
|
|
1447
1749
|
}
|
|
1448
1750
|
|
|
1449
|
-
const adapterName = '
|
|
1450
|
-
const
|
|
1451
|
-
generateParamConfigMetadata('
|
|
1452
|
-
generateParamConfigMetadata('
|
|
1453
|
-
generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
|
|
1454
|
-
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
1455
|
-
generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
|
|
1456
|
-
generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
|
|
1457
|
-
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
1751
|
+
const adapterName = 'getUserPermissions';
|
|
1752
|
+
const getUserPermissions_ConfigPropertyMetadata = [
|
|
1753
|
+
generateParamConfigMetadata('entityName', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1754
|
+
generateParamConfigMetadata('recordId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1458
1755
|
];
|
|
1459
|
-
const
|
|
1460
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1756
|
+
const getUserPermissions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUserPermissions_ConfigPropertyMetadata);
|
|
1757
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$4(getUserPermissions_ConfigPropertyMetadata);
|
|
1461
1758
|
function keyBuilder(luvio, config) {
|
|
1462
1759
|
const resourceParams = createResourceParams(config);
|
|
1463
1760
|
return keyBuilder$1(luvio, resourceParams);
|
|
1464
1761
|
}
|
|
1465
1762
|
function typeCheckConfig(untrustedConfig) {
|
|
1466
1763
|
const config = {};
|
|
1467
|
-
typeCheckConfig$
|
|
1764
|
+
typeCheckConfig$4(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
|
|
1468
1765
|
return config;
|
|
1469
1766
|
}
|
|
1470
1767
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1513,7 +1810,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1513
1810
|
});
|
|
1514
1811
|
}
|
|
1515
1812
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1516
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1813
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1517
1814
|
}
|
|
1518
1815
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1519
1816
|
const { luvio, config } = context;
|
|
@@ -1528,8 +1825,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
1528
1825
|
});
|
|
1529
1826
|
return cacheSnapshot;
|
|
1530
1827
|
}
|
|
1531
|
-
const
|
|
1532
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
1828
|
+
const getUserPermissionsAdapterFactory = (luvio) => function sharing__getUserPermissions(untrustedConfig, requestContext) {
|
|
1829
|
+
const config = validateAdapterConfig(untrustedConfig, getUserPermissions_ConfigPropertyNames);
|
|
1533
1830
|
// Invalid or incomplete config
|
|
1534
1831
|
if (config === null) {
|
|
1535
1832
|
return null;
|
|
@@ -1541,10 +1838,12 @@ const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPu
|
|
|
1541
1838
|
let getAllSobjects;
|
|
1542
1839
|
let getGroupsForUser;
|
|
1543
1840
|
let getPublicGroupShareData;
|
|
1841
|
+
let getUserPermissions;
|
|
1544
1842
|
// Imperative GET Adapters
|
|
1545
1843
|
let getAllSobjects_imperative;
|
|
1546
1844
|
let getGroupsForUser_imperative;
|
|
1547
1845
|
let getPublicGroupShareData_imperative;
|
|
1846
|
+
let getUserPermissions_imperative;
|
|
1548
1847
|
// Adapter Metadata
|
|
1549
1848
|
const getAllSobjectsMetadata = { apiFamily: 'sharing', name: 'getAllSobjects', ttl: 900000 };
|
|
1550
1849
|
const getGroupsForUserMetadata = { apiFamily: 'sharing', name: 'getGroupsForUser', ttl: 300 };
|
|
@@ -1553,20 +1852,28 @@ const getPublicGroupShareDataMetadata = {
|
|
|
1553
1852
|
name: 'getPublicGroupShareData',
|
|
1554
1853
|
ttl: 300,
|
|
1555
1854
|
};
|
|
1855
|
+
const getUserPermissionsMetadata = {
|
|
1856
|
+
apiFamily: 'sharing',
|
|
1857
|
+
name: 'getUserPermissions',
|
|
1858
|
+
ttl: 600000,
|
|
1859
|
+
};
|
|
1556
1860
|
// Notify Update Available
|
|
1557
1861
|
function bindExportsTo(luvio) {
|
|
1558
1862
|
// LDS Adapters
|
|
1559
1863
|
const getAllSobjects_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllSobjects', getAllSobjectsAdapterFactory), getAllSobjectsMetadata);
|
|
1560
1864
|
const getGroupsForUser_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGroupsForUser', getGroupsForUserAdapterFactory), getGroupsForUserMetadata);
|
|
1561
1865
|
const getPublicGroupShareData_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPublicGroupShareData', getPublicGroupShareDataAdapterFactory), getPublicGroupShareDataMetadata);
|
|
1866
|
+
const getUserPermissions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getUserPermissions', getUserPermissionsAdapterFactory), getUserPermissionsMetadata);
|
|
1562
1867
|
return {
|
|
1563
1868
|
getAllSobjects: createWireAdapterConstructor(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
|
|
1564
1869
|
getGroupsForUser: createWireAdapterConstructor(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
|
|
1565
1870
|
getPublicGroupShareData: createWireAdapterConstructor(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
|
|
1871
|
+
getUserPermissions: createWireAdapterConstructor(luvio, getUserPermissions_ldsAdapter, getUserPermissionsMetadata),
|
|
1566
1872
|
// Imperative GET Adapters
|
|
1567
1873
|
getAllSobjects_imperative: createImperativeAdapter(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
|
|
1568
1874
|
getGroupsForUser_imperative: createImperativeAdapter(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
|
|
1569
1875
|
getPublicGroupShareData_imperative: createImperativeAdapter(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
|
|
1876
|
+
getUserPermissions_imperative: createImperativeAdapter(luvio, getUserPermissions_ldsAdapter, getUserPermissionsMetadata),
|
|
1570
1877
|
// Notify Update Availables
|
|
1571
1878
|
};
|
|
1572
1879
|
}
|
|
@@ -1575,11 +1882,13 @@ withDefaultLuvio((luvio) => {
|
|
|
1575
1882
|
getAllSobjects,
|
|
1576
1883
|
getGroupsForUser,
|
|
1577
1884
|
getPublicGroupShareData,
|
|
1885
|
+
getUserPermissions,
|
|
1578
1886
|
getAllSobjects_imperative,
|
|
1579
1887
|
getGroupsForUser_imperative,
|
|
1580
1888
|
getPublicGroupShareData_imperative,
|
|
1889
|
+
getUserPermissions_imperative,
|
|
1581
1890
|
} = bindExportsTo(luvio));
|
|
1582
1891
|
});
|
|
1583
1892
|
|
|
1584
|
-
export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative };
|
|
1585
|
-
// version: 1.
|
|
1893
|
+
export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
|
|
1894
|
+
// version: 1.284.0-8b78b708e
|