@salesforce/lds-adapters-platform-sharing 1.280.0 → 1.282.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 +461 -147
- package/dist/es/es2018/types/src/generated/adapters/getAllSobjects.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getPublicGroupShareData.d.ts +2 -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/getSharingSobjects.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postSharingPublicGroupsSummary.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/types/PublicGroupSummaryInputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SobjectOutputSharingRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SobjectsOutputSharingRepresentation.d.ts +33 -0
- package/package.json +3 -3
- package/sfdc/index.js +332 -10
- package/src/raml/api.raml +57 -0
- package/src/raml/luvio.raml +17 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } 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$a = "252bb771341222662b0b76c855414e1f";
|
|
95
|
+
function validate$a(obj, path = 'PublicGroupRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -115,10 +115,10 @@ function validate$8(obj, path = 'PublicGroupRepresentation') {
|
|
|
115
115
|
})();
|
|
116
116
|
return v_error === undefined ? null : v_error;
|
|
117
117
|
}
|
|
118
|
-
const select$
|
|
118
|
+
const select$d = function PublicGroupRepresentationSelect() {
|
|
119
119
|
return {
|
|
120
120
|
kind: 'Fragment',
|
|
121
|
-
version: VERSION$
|
|
121
|
+
version: VERSION$a,
|
|
122
122
|
private: [],
|
|
123
123
|
selections: [
|
|
124
124
|
{
|
|
@@ -136,7 +136,7 @@ const select$a = function PublicGroupRepresentationSelect() {
|
|
|
136
136
|
]
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
|
-
function equals$
|
|
139
|
+
function equals$a(existing, incoming) {
|
|
140
140
|
const existing_includeBosses = existing.includeBosses;
|
|
141
141
|
const incoming_includeBosses = incoming.includeBosses;
|
|
142
142
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -155,8 +155,8 @@ function equals$8(existing, incoming) {
|
|
|
155
155
|
return true;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
const VERSION$
|
|
159
|
-
function validate$
|
|
158
|
+
const VERSION$9 = "9371d1d2e640f37aa01c377fc78d6ef7";
|
|
159
|
+
function validate$9(obj, path = 'QueueRepresentation') {
|
|
160
160
|
const v_error = (() => {
|
|
161
161
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
162
162
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -174,10 +174,10 @@ function validate$7(obj, path = 'QueueRepresentation') {
|
|
|
174
174
|
})();
|
|
175
175
|
return v_error === undefined ? null : v_error;
|
|
176
176
|
}
|
|
177
|
-
const select$
|
|
177
|
+
const select$c = function QueueRepresentationSelect() {
|
|
178
178
|
return {
|
|
179
179
|
kind: 'Fragment',
|
|
180
|
-
version: VERSION$
|
|
180
|
+
version: VERSION$9,
|
|
181
181
|
private: [],
|
|
182
182
|
selections: [
|
|
183
183
|
{
|
|
@@ -191,7 +191,7 @@ const select$9 = function QueueRepresentationSelect() {
|
|
|
191
191
|
]
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
|
-
function equals$
|
|
194
|
+
function equals$9(existing, incoming) {
|
|
195
195
|
const existing_developerName = existing.developerName;
|
|
196
196
|
const incoming_developerName = incoming.developerName;
|
|
197
197
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -205,9 +205,9 @@ function equals$7(existing, incoming) {
|
|
|
205
205
|
return true;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
const TTL$
|
|
209
|
-
const VERSION$
|
|
210
|
-
function validate$
|
|
208
|
+
const TTL$2 = 300;
|
|
209
|
+
const VERSION$8 = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
210
|
+
function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
211
211
|
const v_error = (() => {
|
|
212
212
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
213
213
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -220,7 +220,7 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
|
|
|
220
220
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
221
221
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
222
222
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
223
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
223
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$a(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
224
224
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
225
225
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
226
226
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -235,7 +235,7 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
|
|
|
235
235
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
236
236
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
237
237
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
238
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
238
|
+
const referencepath_queueRepresentations_itemValidationError = validate$9(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
239
239
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
240
240
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
241
241
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -245,16 +245,16 @@ function validate$6(obj, path = 'GroupCollectionRepresentation') {
|
|
|
245
245
|
})();
|
|
246
246
|
return v_error === undefined ? null : v_error;
|
|
247
247
|
}
|
|
248
|
-
const RepresentationType$
|
|
249
|
-
function normalize$
|
|
248
|
+
const RepresentationType$2 = 'GroupCollectionRepresentation';
|
|
249
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
250
250
|
return input;
|
|
251
251
|
}
|
|
252
|
-
const select$
|
|
253
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
254
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
252
|
+
const select$b = function GroupCollectionRepresentationSelect() {
|
|
253
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$d();
|
|
254
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$c();
|
|
255
255
|
return {
|
|
256
256
|
kind: 'Fragment',
|
|
257
|
-
version: VERSION$
|
|
257
|
+
version: VERSION$8,
|
|
258
258
|
private: [],
|
|
259
259
|
selections: [
|
|
260
260
|
{
|
|
@@ -272,11 +272,11 @@ const select$8 = function GroupCollectionRepresentationSelect() {
|
|
|
272
272
|
]
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
|
-
function equals$
|
|
275
|
+
function equals$8(existing, incoming) {
|
|
276
276
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
277
277
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
278
278
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
279
|
-
if (!(equals$
|
|
279
|
+
if (!(equals$a(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
280
280
|
return false;
|
|
281
281
|
}
|
|
282
282
|
});
|
|
@@ -286,7 +286,7 @@ function equals$6(existing, incoming) {
|
|
|
286
286
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
287
287
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
288
288
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
289
|
-
if (!(equals$
|
|
289
|
+
if (!(equals$9(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
290
290
|
return false;
|
|
291
291
|
}
|
|
292
292
|
});
|
|
@@ -295,44 +295,44 @@ function equals$6(existing, incoming) {
|
|
|
295
295
|
}
|
|
296
296
|
return true;
|
|
297
297
|
}
|
|
298
|
-
const ingest$
|
|
298
|
+
const ingest$2 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
299
299
|
if (process.env.NODE_ENV !== 'production') {
|
|
300
|
-
const validateError = validate$
|
|
300
|
+
const validateError = validate$8(input);
|
|
301
301
|
if (validateError !== null) {
|
|
302
302
|
throw validateError;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
const key = path.fullPath;
|
|
306
|
-
const ttlToUse = TTL$
|
|
307
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
306
|
+
const ttlToUse = TTL$2;
|
|
307
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "sharing", VERSION$8, RepresentationType$2, equals$8);
|
|
308
308
|
return createLink(key);
|
|
309
309
|
};
|
|
310
|
-
function getTypeCacheKeys$
|
|
310
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
311
311
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
312
312
|
const rootKey = fullPathFactory();
|
|
313
313
|
rootKeySet.set(rootKey, {
|
|
314
314
|
namespace: keyPrefix,
|
|
315
|
-
representationName: RepresentationType$
|
|
315
|
+
representationName: RepresentationType$2,
|
|
316
316
|
mergeable: false
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
function select$
|
|
321
|
-
return select$
|
|
320
|
+
function select$a(luvio, params) {
|
|
321
|
+
return select$b();
|
|
322
322
|
}
|
|
323
|
-
function keyBuilder$
|
|
323
|
+
function keyBuilder$5(luvio, params) {
|
|
324
324
|
return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
|
|
325
325
|
}
|
|
326
|
-
function getResponseCacheKeys$
|
|
327
|
-
getTypeCacheKeys$
|
|
326
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
327
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
328
328
|
}
|
|
329
|
-
function ingestSuccess$
|
|
329
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
330
330
|
const { body } = response;
|
|
331
|
-
const key = keyBuilder$
|
|
332
|
-
luvio.storeIngest(key, ingest$
|
|
331
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
332
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
333
333
|
const snapshot = luvio.storeLookup({
|
|
334
334
|
recordId: key,
|
|
335
|
-
node: select$
|
|
335
|
+
node: select$a(),
|
|
336
336
|
variables: {},
|
|
337
337
|
}, snapshotRefresh);
|
|
338
338
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -343,19 +343,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
343
343
|
deepFreeze(snapshot.data);
|
|
344
344
|
return snapshot;
|
|
345
345
|
}
|
|
346
|
-
function ingestError$
|
|
347
|
-
const key = keyBuilder$
|
|
346
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
347
|
+
const key = keyBuilder$5(luvio, params);
|
|
348
348
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
349
349
|
const storeMetadataParams = {
|
|
350
|
-
ttl: TTL$
|
|
350
|
+
ttl: TTL$2,
|
|
351
351
|
namespace: keyPrefix,
|
|
352
|
-
version: VERSION$
|
|
353
|
-
representationName: RepresentationType$
|
|
352
|
+
version: VERSION$8,
|
|
353
|
+
representationName: RepresentationType$2
|
|
354
354
|
};
|
|
355
355
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
356
356
|
return errorSnapshot;
|
|
357
357
|
}
|
|
358
|
-
function createResourceRequest$
|
|
358
|
+
function createResourceRequest$2(config) {
|
|
359
359
|
const headers = {};
|
|
360
360
|
return {
|
|
361
361
|
baseUri: '/services/data/v61.0',
|
|
@@ -369,97 +369,97 @@ function createResourceRequest$1(config) {
|
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
const adapterName$
|
|
372
|
+
const adapterName$2 = 'getGroupsForUser';
|
|
373
373
|
const getGroupsForUser_ConfigPropertyMetadata = [
|
|
374
374
|
generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
375
375
|
generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
376
376
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
377
377
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
378
378
|
];
|
|
379
|
-
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
380
|
-
const createResourceParams$
|
|
381
|
-
function keyBuilder$
|
|
382
|
-
const resourceParams = createResourceParams$
|
|
383
|
-
return keyBuilder$
|
|
379
|
+
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getGroupsForUser_ConfigPropertyMetadata);
|
|
380
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(getGroupsForUser_ConfigPropertyMetadata);
|
|
381
|
+
function keyBuilder$4(luvio, config) {
|
|
382
|
+
const resourceParams = createResourceParams$2(config);
|
|
383
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
384
384
|
}
|
|
385
|
-
function typeCheckConfig$
|
|
385
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
386
386
|
const config = {};
|
|
387
|
-
typeCheckConfig$
|
|
387
|
+
typeCheckConfig$3(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
|
|
388
388
|
return config;
|
|
389
389
|
}
|
|
390
|
-
function validateAdapterConfig$
|
|
390
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
391
391
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
392
392
|
return null;
|
|
393
393
|
}
|
|
394
394
|
if (process.env.NODE_ENV !== 'production') {
|
|
395
395
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
396
396
|
}
|
|
397
|
-
const config = typeCheckConfig$
|
|
397
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
398
398
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
399
399
|
return null;
|
|
400
400
|
}
|
|
401
401
|
return config;
|
|
402
402
|
}
|
|
403
|
-
function adapterFragment$
|
|
404
|
-
createResourceParams$
|
|
405
|
-
return select$
|
|
403
|
+
function adapterFragment$2(luvio, config) {
|
|
404
|
+
createResourceParams$2(config);
|
|
405
|
+
return select$a();
|
|
406
406
|
}
|
|
407
|
-
function onFetchResponseSuccess$
|
|
408
|
-
const snapshot = ingestSuccess$
|
|
407
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
408
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
409
409
|
config,
|
|
410
|
-
resolve: () => buildNetworkSnapshot$
|
|
410
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
411
411
|
});
|
|
412
412
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
413
413
|
}
|
|
414
|
-
function onFetchResponseError$
|
|
415
|
-
const snapshot = ingestError$
|
|
414
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
415
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
416
416
|
config,
|
|
417
|
-
resolve: () => buildNetworkSnapshot$
|
|
417
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
418
418
|
});
|
|
419
419
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
420
420
|
}
|
|
421
|
-
function buildNetworkSnapshot$
|
|
422
|
-
const resourceParams = createResourceParams$
|
|
423
|
-
const request = createResourceRequest$
|
|
421
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
422
|
+
const resourceParams = createResourceParams$2(config);
|
|
423
|
+
const request = createResourceRequest$2(resourceParams);
|
|
424
424
|
return luvio.dispatchResourceRequest(request, options)
|
|
425
425
|
.then((response) => {
|
|
426
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
426
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
427
427
|
const cache = new StoreKeyMap();
|
|
428
|
-
getResponseCacheKeys$
|
|
428
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
429
429
|
return cache;
|
|
430
430
|
});
|
|
431
431
|
}, (response) => {
|
|
432
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
432
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
function buildNetworkSnapshotCachePolicy$
|
|
436
|
-
return buildNetworkSnapshotCachePolicy$
|
|
435
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
436
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
437
437
|
}
|
|
438
|
-
function buildCachedSnapshotCachePolicy$
|
|
438
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
439
439
|
const { luvio, config } = context;
|
|
440
440
|
const selector = {
|
|
441
|
-
recordId: keyBuilder$
|
|
442
|
-
node: adapterFragment$
|
|
441
|
+
recordId: keyBuilder$4(luvio, config),
|
|
442
|
+
node: adapterFragment$2(luvio, config),
|
|
443
443
|
variables: {},
|
|
444
444
|
};
|
|
445
445
|
const cacheSnapshot = storeLookup(selector, {
|
|
446
446
|
config,
|
|
447
|
-
resolve: () => buildNetworkSnapshot$
|
|
447
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
448
448
|
});
|
|
449
449
|
return cacheSnapshot;
|
|
450
450
|
}
|
|
451
451
|
const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
|
|
452
|
-
const config = validateAdapterConfig$
|
|
452
|
+
const config = validateAdapterConfig$2(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
|
|
453
453
|
// Invalid or incomplete config
|
|
454
454
|
if (config === null) {
|
|
455
455
|
return null;
|
|
456
456
|
}
|
|
457
457
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
458
|
-
buildCachedSnapshotCachePolicy$
|
|
458
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
459
459
|
};
|
|
460
460
|
|
|
461
|
-
const VERSION$
|
|
462
|
-
function validate$
|
|
461
|
+
const VERSION$7 = "11e587d0bd769c0df33d7cce4eb7210d";
|
|
462
|
+
function validate$7(obj, path = 'IncludedGroupsSharingRepresentation') {
|
|
463
463
|
const v_error = (() => {
|
|
464
464
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
465
465
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -492,10 +492,10 @@ function validate$5(obj, path = 'IncludedGroupsSharingRepresentation') {
|
|
|
492
492
|
})();
|
|
493
493
|
return v_error === undefined ? null : v_error;
|
|
494
494
|
}
|
|
495
|
-
const select$
|
|
495
|
+
const select$9 = function IncludedGroupsSharingRepresentationSelect() {
|
|
496
496
|
return {
|
|
497
497
|
kind: 'Fragment',
|
|
498
|
-
version: VERSION$
|
|
498
|
+
version: VERSION$7,
|
|
499
499
|
private: [],
|
|
500
500
|
selections: [
|
|
501
501
|
{
|
|
@@ -521,7 +521,7 @@ const select$6 = function IncludedGroupsSharingRepresentationSelect() {
|
|
|
521
521
|
]
|
|
522
522
|
};
|
|
523
523
|
};
|
|
524
|
-
function equals$
|
|
524
|
+
function equals$7(existing, incoming) {
|
|
525
525
|
const existing_grantAccessHierarchies = existing.grantAccessHierarchies;
|
|
526
526
|
const incoming_grantAccessHierarchies = incoming.grantAccessHierarchies;
|
|
527
527
|
if (!(existing_grantAccessHierarchies === incoming_grantAccessHierarchies)) {
|
|
@@ -550,8 +550,8 @@ function equals$5(existing, incoming) {
|
|
|
550
550
|
return true;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
const VERSION$
|
|
554
|
-
function validate$
|
|
553
|
+
const VERSION$6 = "06eef993be289c8b20b37b2ae6f4c5ee";
|
|
554
|
+
function validate$6(obj, path = 'ListViewGroupSharingRepresentation') {
|
|
555
555
|
const v_error = (() => {
|
|
556
556
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
557
557
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -569,10 +569,10 @@ function validate$4(obj, path = 'ListViewGroupSharingRepresentation') {
|
|
|
569
569
|
})();
|
|
570
570
|
return v_error === undefined ? null : v_error;
|
|
571
571
|
}
|
|
572
|
-
const select$
|
|
572
|
+
const select$8 = function ListViewGroupSharingRepresentationSelect() {
|
|
573
573
|
return {
|
|
574
574
|
kind: 'Fragment',
|
|
575
|
-
version: VERSION$
|
|
575
|
+
version: VERSION$6,
|
|
576
576
|
private: [],
|
|
577
577
|
selections: [
|
|
578
578
|
{
|
|
@@ -586,7 +586,7 @@ const select$5 = function ListViewGroupSharingRepresentationSelect() {
|
|
|
586
586
|
]
|
|
587
587
|
};
|
|
588
588
|
};
|
|
589
|
-
function equals$
|
|
589
|
+
function equals$6(existing, incoming) {
|
|
590
590
|
const existing_developerName = existing.developerName;
|
|
591
591
|
const incoming_developerName = incoming.developerName;
|
|
592
592
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -600,8 +600,8 @@ function equals$4(existing, incoming) {
|
|
|
600
600
|
return true;
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
const VERSION$
|
|
604
|
-
function validate$
|
|
603
|
+
const VERSION$5 = "a0ed38b40ad9886f3e05a1b65fd2e246";
|
|
604
|
+
function validate$5(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentation') {
|
|
605
605
|
const v_error = (() => {
|
|
606
606
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
607
607
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -639,10 +639,10 @@ function validate$3(obj, path = 'ReportAndDashboardFolderGroupSharingRepresentat
|
|
|
639
639
|
})();
|
|
640
640
|
return v_error === undefined ? null : v_error;
|
|
641
641
|
}
|
|
642
|
-
const select$
|
|
642
|
+
const select$7 = function ReportAndDashboardFolderGroupSharingRepresentationSelect() {
|
|
643
643
|
return {
|
|
644
644
|
kind: 'Fragment',
|
|
645
|
-
version: VERSION$
|
|
645
|
+
version: VERSION$5,
|
|
646
646
|
private: [],
|
|
647
647
|
selections: [
|
|
648
648
|
{
|
|
@@ -672,7 +672,7 @@ const select$4 = function ReportAndDashboardFolderGroupSharingRepresentationSele
|
|
|
672
672
|
]
|
|
673
673
|
};
|
|
674
674
|
};
|
|
675
|
-
function equals$
|
|
675
|
+
function equals$5(existing, incoming) {
|
|
676
676
|
const existing_accessLevel = existing.accessLevel;
|
|
677
677
|
const incoming_accessLevel = incoming.accessLevel;
|
|
678
678
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -706,8 +706,8 @@ function equals$3(existing, incoming) {
|
|
|
706
706
|
return true;
|
|
707
707
|
}
|
|
708
708
|
|
|
709
|
-
const VERSION$
|
|
710
|
-
function validate$
|
|
709
|
+
const VERSION$4 = "1036a20704b51746749bb4be569e39c0";
|
|
710
|
+
function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
|
|
711
711
|
const v_error = (() => {
|
|
712
712
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
713
713
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -735,10 +735,10 @@ function validate$2(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation'
|
|
|
735
735
|
})();
|
|
736
736
|
return v_error === undefined ? null : v_error;
|
|
737
737
|
}
|
|
738
|
-
const select$
|
|
738
|
+
const select$6 = function SharingRulesCriteriaGroupSharingRepresentationSelect() {
|
|
739
739
|
return {
|
|
740
740
|
kind: 'Fragment',
|
|
741
|
-
version: VERSION$
|
|
741
|
+
version: VERSION$4,
|
|
742
742
|
private: [],
|
|
743
743
|
selections: [
|
|
744
744
|
{
|
|
@@ -760,7 +760,7 @@ const select$3 = function SharingRulesCriteriaGroupSharingRepresentationSelect()
|
|
|
760
760
|
]
|
|
761
761
|
};
|
|
762
762
|
};
|
|
763
|
-
function equals$
|
|
763
|
+
function equals$4(existing, incoming) {
|
|
764
764
|
const existing_accessLevel = existing.accessLevel;
|
|
765
765
|
const incoming_accessLevel = incoming.accessLevel;
|
|
766
766
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -784,8 +784,8 @@ function equals$2(existing, incoming) {
|
|
|
784
784
|
return true;
|
|
785
785
|
}
|
|
786
786
|
|
|
787
|
-
const VERSION$
|
|
788
|
-
function validate$
|
|
787
|
+
const VERSION$3 = "8f205925d69192f91fd2c71838ed20e7";
|
|
788
|
+
function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
789
789
|
const v_error = (() => {
|
|
790
790
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
791
791
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -813,10 +813,10 @@ function validate$1(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
|
813
813
|
})();
|
|
814
814
|
return v_error === undefined ? null : v_error;
|
|
815
815
|
}
|
|
816
|
-
const select$
|
|
816
|
+
const select$5 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
817
817
|
return {
|
|
818
818
|
kind: 'Fragment',
|
|
819
|
-
version: VERSION$
|
|
819
|
+
version: VERSION$3,
|
|
820
820
|
private: [],
|
|
821
821
|
selections: [
|
|
822
822
|
{
|
|
@@ -838,7 +838,7 @@ const select$2 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
|
838
838
|
]
|
|
839
839
|
};
|
|
840
840
|
};
|
|
841
|
-
function equals$
|
|
841
|
+
function equals$3(existing, incoming) {
|
|
842
842
|
const existing_accessLevel = existing.accessLevel;
|
|
843
843
|
const incoming_accessLevel = incoming.accessLevel;
|
|
844
844
|
if (!(existing_accessLevel === incoming_accessLevel)) {
|
|
@@ -862,9 +862,9 @@ function equals$1(existing, incoming) {
|
|
|
862
862
|
return true;
|
|
863
863
|
}
|
|
864
864
|
|
|
865
|
-
const TTL = 300;
|
|
866
|
-
const VERSION = "68cd535d9b1bd32d0d42ce950115eff5";
|
|
867
|
-
function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
865
|
+
const TTL$1 = 300;
|
|
866
|
+
const VERSION$2 = "68cd535d9b1bd32d0d42ce950115eff5";
|
|
867
|
+
function validate$2(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
868
868
|
const v_error = (() => {
|
|
869
869
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
870
870
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -877,7 +877,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
877
877
|
for (let i = 0; i < obj_includedGroupsSharing.length; i++) {
|
|
878
878
|
const obj_includedGroupsSharing_item = obj_includedGroupsSharing[i];
|
|
879
879
|
const path_includedGroupsSharing_item = path_includedGroupsSharing + '[' + i + ']';
|
|
880
|
-
const referencepath_includedGroupsSharing_itemValidationError = validate$
|
|
880
|
+
const referencepath_includedGroupsSharing_itemValidationError = validate$7(obj_includedGroupsSharing_item, path_includedGroupsSharing_item);
|
|
881
881
|
if (referencepath_includedGroupsSharing_itemValidationError !== null) {
|
|
882
882
|
let message = 'Object doesn\'t match IncludedGroupsSharingRepresentation (at "' + path_includedGroupsSharing_item + '")\n';
|
|
883
883
|
message += referencepath_includedGroupsSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -892,7 +892,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
892
892
|
for (let i = 0; i < obj_listViewGroupSharing.length; i++) {
|
|
893
893
|
const obj_listViewGroupSharing_item = obj_listViewGroupSharing[i];
|
|
894
894
|
const path_listViewGroupSharing_item = path_listViewGroupSharing + '[' + i + ']';
|
|
895
|
-
const referencepath_listViewGroupSharing_itemValidationError = validate$
|
|
895
|
+
const referencepath_listViewGroupSharing_itemValidationError = validate$6(obj_listViewGroupSharing_item, path_listViewGroupSharing_item);
|
|
896
896
|
if (referencepath_listViewGroupSharing_itemValidationError !== null) {
|
|
897
897
|
let message = 'Object doesn\'t match ListViewGroupSharingRepresentation (at "' + path_listViewGroupSharing_item + '")\n';
|
|
898
898
|
message += referencepath_listViewGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -907,7 +907,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
907
907
|
for (let i = 0; i < obj_reportAndDashboardFolderGroupSharing.length; i++) {
|
|
908
908
|
const obj_reportAndDashboardFolderGroupSharing_item = obj_reportAndDashboardFolderGroupSharing[i];
|
|
909
909
|
const path_reportAndDashboardFolderGroupSharing_item = path_reportAndDashboardFolderGroupSharing + '[' + i + ']';
|
|
910
|
-
const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$
|
|
910
|
+
const referencepath_reportAndDashboardFolderGroupSharing_itemValidationError = validate$5(obj_reportAndDashboardFolderGroupSharing_item, path_reportAndDashboardFolderGroupSharing_item);
|
|
911
911
|
if (referencepath_reportAndDashboardFolderGroupSharing_itemValidationError !== null) {
|
|
912
912
|
let message = 'Object doesn\'t match ReportAndDashboardFolderGroupSharingRepresentation (at "' + path_reportAndDashboardFolderGroupSharing_item + '")\n';
|
|
913
913
|
message += referencepath_reportAndDashboardFolderGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -922,7 +922,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
922
922
|
for (let i = 0; i < obj_sharingRulesCriteriaGroupSharing.length; i++) {
|
|
923
923
|
const obj_sharingRulesCriteriaGroupSharing_item = obj_sharingRulesCriteriaGroupSharing[i];
|
|
924
924
|
const path_sharingRulesCriteriaGroupSharing_item = path_sharingRulesCriteriaGroupSharing + '[' + i + ']';
|
|
925
|
-
const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$
|
|
925
|
+
const referencepath_sharingRulesCriteriaGroupSharing_itemValidationError = validate$4(obj_sharingRulesCriteriaGroupSharing_item, path_sharingRulesCriteriaGroupSharing_item);
|
|
926
926
|
if (referencepath_sharingRulesCriteriaGroupSharing_itemValidationError !== null) {
|
|
927
927
|
let message = 'Object doesn\'t match SharingRulesCriteriaGroupSharingRepresentation (at "' + path_sharingRulesCriteriaGroupSharing_item + '")\n';
|
|
928
928
|
message += referencepath_sharingRulesCriteriaGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -937,7 +937,7 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
937
937
|
for (let i = 0; i < obj_sharingRulesOwnerGroupSharing.length; i++) {
|
|
938
938
|
const obj_sharingRulesOwnerGroupSharing_item = obj_sharingRulesOwnerGroupSharing[i];
|
|
939
939
|
const path_sharingRulesOwnerGroupSharing_item = path_sharingRulesOwnerGroupSharing + '[' + i + ']';
|
|
940
|
-
const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$
|
|
940
|
+
const referencepath_sharingRulesOwnerGroupSharing_itemValidationError = validate$3(obj_sharingRulesOwnerGroupSharing_item, path_sharingRulesOwnerGroupSharing_item);
|
|
941
941
|
if (referencepath_sharingRulesOwnerGroupSharing_itemValidationError !== null) {
|
|
942
942
|
let message = 'Object doesn\'t match SharingRulesOwnerGroupSharingRepresentation (at "' + path_sharingRulesOwnerGroupSharing_item + '")\n';
|
|
943
943
|
message += referencepath_sharingRulesOwnerGroupSharing_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -947,19 +947,19 @@ function validate(obj, path = 'PublicGroupSummaryRepresentation') {
|
|
|
947
947
|
})();
|
|
948
948
|
return v_error === undefined ? null : v_error;
|
|
949
949
|
}
|
|
950
|
-
const RepresentationType = 'PublicGroupSummaryRepresentation';
|
|
951
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
950
|
+
const RepresentationType$1 = 'PublicGroupSummaryRepresentation';
|
|
951
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
952
952
|
return input;
|
|
953
953
|
}
|
|
954
|
-
const select$
|
|
955
|
-
const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$
|
|
956
|
-
const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$
|
|
957
|
-
const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$
|
|
958
|
-
const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$
|
|
959
|
-
const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$
|
|
954
|
+
const select$4 = function PublicGroupSummaryRepresentationSelect() {
|
|
955
|
+
const { selections: IncludedGroupsSharingRepresentation__selections, opaque: IncludedGroupsSharingRepresentation__opaque, } = select$9();
|
|
956
|
+
const { selections: ListViewGroupSharingRepresentation__selections, opaque: ListViewGroupSharingRepresentation__opaque, } = select$8();
|
|
957
|
+
const { selections: ReportAndDashboardFolderGroupSharingRepresentation__selections, opaque: ReportAndDashboardFolderGroupSharingRepresentation__opaque, } = select$7();
|
|
958
|
+
const { selections: SharingRulesCriteriaGroupSharingRepresentation__selections, opaque: SharingRulesCriteriaGroupSharingRepresentation__opaque, } = select$6();
|
|
959
|
+
const { selections: SharingRulesOwnerGroupSharingRepresentation__selections, opaque: SharingRulesOwnerGroupSharingRepresentation__opaque, } = select$5();
|
|
960
960
|
return {
|
|
961
961
|
kind: 'Fragment',
|
|
962
|
-
version: VERSION,
|
|
962
|
+
version: VERSION$2,
|
|
963
963
|
private: [],
|
|
964
964
|
selections: [
|
|
965
965
|
{
|
|
@@ -995,11 +995,11 @@ const select$1 = function PublicGroupSummaryRepresentationSelect() {
|
|
|
995
995
|
]
|
|
996
996
|
};
|
|
997
997
|
};
|
|
998
|
-
function equals(existing, incoming) {
|
|
998
|
+
function equals$2(existing, incoming) {
|
|
999
999
|
const existing_includedGroupsSharing = existing.includedGroupsSharing;
|
|
1000
1000
|
const incoming_includedGroupsSharing = incoming.includedGroupsSharing;
|
|
1001
1001
|
const equals_includedGroupsSharing_items = equalsArray(existing_includedGroupsSharing, incoming_includedGroupsSharing, (existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item) => {
|
|
1002
|
-
if (!(equals$
|
|
1002
|
+
if (!(equals$7(existing_includedGroupsSharing_item, incoming_includedGroupsSharing_item))) {
|
|
1003
1003
|
return false;
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
@@ -1009,7 +1009,7 @@ function equals(existing, incoming) {
|
|
|
1009
1009
|
const existing_listViewGroupSharing = existing.listViewGroupSharing;
|
|
1010
1010
|
const incoming_listViewGroupSharing = incoming.listViewGroupSharing;
|
|
1011
1011
|
const equals_listViewGroupSharing_items = equalsArray(existing_listViewGroupSharing, incoming_listViewGroupSharing, (existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item) => {
|
|
1012
|
-
if (!(equals$
|
|
1012
|
+
if (!(equals$6(existing_listViewGroupSharing_item, incoming_listViewGroupSharing_item))) {
|
|
1013
1013
|
return false;
|
|
1014
1014
|
}
|
|
1015
1015
|
});
|
|
@@ -1019,7 +1019,7 @@ function equals(existing, incoming) {
|
|
|
1019
1019
|
const existing_reportAndDashboardFolderGroupSharing = existing.reportAndDashboardFolderGroupSharing;
|
|
1020
1020
|
const incoming_reportAndDashboardFolderGroupSharing = incoming.reportAndDashboardFolderGroupSharing;
|
|
1021
1021
|
const equals_reportAndDashboardFolderGroupSharing_items = equalsArray(existing_reportAndDashboardFolderGroupSharing, incoming_reportAndDashboardFolderGroupSharing, (existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item) => {
|
|
1022
|
-
if (!(equals$
|
|
1022
|
+
if (!(equals$5(existing_reportAndDashboardFolderGroupSharing_item, incoming_reportAndDashboardFolderGroupSharing_item))) {
|
|
1023
1023
|
return false;
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
@@ -1029,7 +1029,7 @@ function equals(existing, incoming) {
|
|
|
1029
1029
|
const existing_sharingRulesCriteriaGroupSharing = existing.sharingRulesCriteriaGroupSharing;
|
|
1030
1030
|
const incoming_sharingRulesCriteriaGroupSharing = incoming.sharingRulesCriteriaGroupSharing;
|
|
1031
1031
|
const equals_sharingRulesCriteriaGroupSharing_items = equalsArray(existing_sharingRulesCriteriaGroupSharing, incoming_sharingRulesCriteriaGroupSharing, (existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item) => {
|
|
1032
|
-
if (!(equals$
|
|
1032
|
+
if (!(equals$4(existing_sharingRulesCriteriaGroupSharing_item, incoming_sharingRulesCriteriaGroupSharing_item))) {
|
|
1033
1033
|
return false;
|
|
1034
1034
|
}
|
|
1035
1035
|
});
|
|
@@ -1039,7 +1039,7 @@ function equals(existing, incoming) {
|
|
|
1039
1039
|
const existing_sharingRulesOwnerGroupSharing = existing.sharingRulesOwnerGroupSharing;
|
|
1040
1040
|
const incoming_sharingRulesOwnerGroupSharing = incoming.sharingRulesOwnerGroupSharing;
|
|
1041
1041
|
const equals_sharingRulesOwnerGroupSharing_items = equalsArray(existing_sharingRulesOwnerGroupSharing, incoming_sharingRulesOwnerGroupSharing, (existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item) => {
|
|
1042
|
-
if (!(equals$
|
|
1042
|
+
if (!(equals$3(existing_sharingRulesOwnerGroupSharing_item, incoming_sharingRulesOwnerGroupSharing_item))) {
|
|
1043
1043
|
return false;
|
|
1044
1044
|
}
|
|
1045
1045
|
});
|
|
@@ -1048,7 +1048,323 @@ function equals(existing, incoming) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
return true;
|
|
1050
1050
|
}
|
|
1051
|
-
const ingest = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1051
|
+
const ingest$1 = function PublicGroupSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1052
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1053
|
+
const validateError = validate$2(input);
|
|
1054
|
+
if (validateError !== null) {
|
|
1055
|
+
throw validateError;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
const key = path.fullPath;
|
|
1059
|
+
const ttlToUse = TTL$1;
|
|
1060
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "sharing", VERSION$2, RepresentationType$1, equals$2);
|
|
1061
|
+
return createLink(key);
|
|
1062
|
+
};
|
|
1063
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1064
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1065
|
+
const rootKey = fullPathFactory();
|
|
1066
|
+
rootKeySet.set(rootKey, {
|
|
1067
|
+
namespace: keyPrefix,
|
|
1068
|
+
representationName: RepresentationType$1,
|
|
1069
|
+
mergeable: false
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
function select$3(luvio, params) {
|
|
1074
|
+
return select$4();
|
|
1075
|
+
}
|
|
1076
|
+
function keyBuilder$3(luvio, params) {
|
|
1077
|
+
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 + ')';
|
|
1078
|
+
}
|
|
1079
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1080
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1081
|
+
}
|
|
1082
|
+
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
1083
|
+
const { body } = response;
|
|
1084
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
1085
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1086
|
+
const snapshot = luvio.storeLookup({
|
|
1087
|
+
recordId: key,
|
|
1088
|
+
node: select$3(),
|
|
1089
|
+
variables: {},
|
|
1090
|
+
}, snapshotRefresh);
|
|
1091
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1092
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1093
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
deepFreeze(snapshot.data);
|
|
1097
|
+
return snapshot;
|
|
1098
|
+
}
|
|
1099
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
1100
|
+
const key = keyBuilder$3(luvio, params);
|
|
1101
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1102
|
+
const storeMetadataParams = {
|
|
1103
|
+
ttl: TTL$1,
|
|
1104
|
+
namespace: keyPrefix,
|
|
1105
|
+
version: VERSION$2,
|
|
1106
|
+
representationName: RepresentationType$1
|
|
1107
|
+
};
|
|
1108
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1109
|
+
return errorSnapshot;
|
|
1110
|
+
}
|
|
1111
|
+
function createResourceRequest$1(config) {
|
|
1112
|
+
const headers = {};
|
|
1113
|
+
return {
|
|
1114
|
+
baseUri: '/services/data/v61.0',
|
|
1115
|
+
basePath: '/sharing/publicGroupsSummary',
|
|
1116
|
+
method: 'post',
|
|
1117
|
+
body: config.body,
|
|
1118
|
+
urlParams: {},
|
|
1119
|
+
queryParams: {},
|
|
1120
|
+
headers,
|
|
1121
|
+
priority: 'normal',
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
const adapterName$1 = 'getPublicGroupShareData';
|
|
1126
|
+
const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
1127
|
+
generateParamConfigMetadata('entityKeyPrefix', true, 2 /* Body */, 0 /* String */),
|
|
1128
|
+
generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
|
|
1129
|
+
generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
|
|
1130
|
+
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
1131
|
+
generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
|
|
1132
|
+
generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
|
|
1133
|
+
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
1134
|
+
];
|
|
1135
|
+
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1136
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1137
|
+
function keyBuilder$2(luvio, config) {
|
|
1138
|
+
const resourceParams = createResourceParams$1(config);
|
|
1139
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
1140
|
+
}
|
|
1141
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
1142
|
+
const config = {};
|
|
1143
|
+
typeCheckConfig$3(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1144
|
+
return config;
|
|
1145
|
+
}
|
|
1146
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
1147
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1148
|
+
return null;
|
|
1149
|
+
}
|
|
1150
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1151
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1152
|
+
}
|
|
1153
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
1154
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1155
|
+
return null;
|
|
1156
|
+
}
|
|
1157
|
+
return config;
|
|
1158
|
+
}
|
|
1159
|
+
function adapterFragment$1(luvio, config) {
|
|
1160
|
+
createResourceParams$1(config);
|
|
1161
|
+
return select$3();
|
|
1162
|
+
}
|
|
1163
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1164
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
|
|
1165
|
+
config,
|
|
1166
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1167
|
+
});
|
|
1168
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1169
|
+
}
|
|
1170
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1171
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1172
|
+
config,
|
|
1173
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1174
|
+
});
|
|
1175
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1176
|
+
}
|
|
1177
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
1178
|
+
const resourceParams = createResourceParams$1(config);
|
|
1179
|
+
const request = createResourceRequest$1(resourceParams);
|
|
1180
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1181
|
+
.then((response) => {
|
|
1182
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1183
|
+
const cache = new StoreKeyMap();
|
|
1184
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1185
|
+
return cache;
|
|
1186
|
+
});
|
|
1187
|
+
}, (response) => {
|
|
1188
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1192
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
|
|
1193
|
+
}
|
|
1194
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1195
|
+
const { luvio, config } = context;
|
|
1196
|
+
const selector = {
|
|
1197
|
+
recordId: keyBuilder$2(luvio, config),
|
|
1198
|
+
node: adapterFragment$1(luvio, config),
|
|
1199
|
+
variables: {},
|
|
1200
|
+
};
|
|
1201
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1202
|
+
config,
|
|
1203
|
+
resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
|
|
1204
|
+
});
|
|
1205
|
+
return cacheSnapshot;
|
|
1206
|
+
}
|
|
1207
|
+
const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPublicGroupShareData(untrustedConfig, requestContext) {
|
|
1208
|
+
const config = validateAdapterConfig$1(untrustedConfig, getPublicGroupShareData_ConfigPropertyNames);
|
|
1209
|
+
// Invalid or incomplete config
|
|
1210
|
+
if (config === null) {
|
|
1211
|
+
return null;
|
|
1212
|
+
}
|
|
1213
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1214
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
const VERSION$1 = "8f1b312aa04c8869624b95b9e3f3cd4e";
|
|
1218
|
+
function validate$1(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
1219
|
+
const v_error = (() => {
|
|
1220
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1221
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1222
|
+
}
|
|
1223
|
+
const obj_apiName = obj.apiName;
|
|
1224
|
+
const path_apiName = path + '.apiName';
|
|
1225
|
+
if (typeof obj_apiName !== 'string') {
|
|
1226
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
1227
|
+
}
|
|
1228
|
+
const obj_keyPrefix = obj.keyPrefix;
|
|
1229
|
+
const path_keyPrefix = path + '.keyPrefix';
|
|
1230
|
+
if (typeof obj_keyPrefix !== 'string') {
|
|
1231
|
+
return new TypeError('Expected "string" but received "' + typeof obj_keyPrefix + '" (at "' + path_keyPrefix + '")');
|
|
1232
|
+
}
|
|
1233
|
+
const obj_label = obj.label;
|
|
1234
|
+
const path_label = path + '.label';
|
|
1235
|
+
if (typeof obj_label !== 'string') {
|
|
1236
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1237
|
+
}
|
|
1238
|
+
const obj_labelPlural = obj.labelPlural;
|
|
1239
|
+
const path_labelPlural = path + '.labelPlural';
|
|
1240
|
+
if (typeof obj_labelPlural !== 'string') {
|
|
1241
|
+
return new TypeError('Expected "string" but received "' + typeof obj_labelPlural + '" (at "' + path_labelPlural + '")');
|
|
1242
|
+
}
|
|
1243
|
+
})();
|
|
1244
|
+
return v_error === undefined ? null : v_error;
|
|
1245
|
+
}
|
|
1246
|
+
const select$2 = function SobjectOutputSharingRepresentationSelect() {
|
|
1247
|
+
return {
|
|
1248
|
+
kind: 'Fragment',
|
|
1249
|
+
version: VERSION$1,
|
|
1250
|
+
private: [],
|
|
1251
|
+
selections: [
|
|
1252
|
+
{
|
|
1253
|
+
name: 'apiName',
|
|
1254
|
+
kind: 'Scalar'
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
name: 'keyPrefix',
|
|
1258
|
+
kind: 'Scalar'
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
name: 'label',
|
|
1262
|
+
kind: 'Scalar'
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
name: 'labelPlural',
|
|
1266
|
+
kind: 'Scalar'
|
|
1267
|
+
}
|
|
1268
|
+
]
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
function equals$1(existing, incoming) {
|
|
1272
|
+
const existing_apiName = existing.apiName;
|
|
1273
|
+
const incoming_apiName = incoming.apiName;
|
|
1274
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
1275
|
+
return false;
|
|
1276
|
+
}
|
|
1277
|
+
const existing_keyPrefix = existing.keyPrefix;
|
|
1278
|
+
const incoming_keyPrefix = incoming.keyPrefix;
|
|
1279
|
+
if (!(existing_keyPrefix === incoming_keyPrefix)) {
|
|
1280
|
+
return false;
|
|
1281
|
+
}
|
|
1282
|
+
const existing_label = existing.label;
|
|
1283
|
+
const incoming_label = incoming.label;
|
|
1284
|
+
if (!(existing_label === incoming_label)) {
|
|
1285
|
+
return false;
|
|
1286
|
+
}
|
|
1287
|
+
const existing_labelPlural = existing.labelPlural;
|
|
1288
|
+
const incoming_labelPlural = incoming.labelPlural;
|
|
1289
|
+
if (!(existing_labelPlural === incoming_labelPlural)) {
|
|
1290
|
+
return false;
|
|
1291
|
+
}
|
|
1292
|
+
return true;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
const TTL = 900000;
|
|
1296
|
+
const VERSION = "891459dfe3e992adddad156c898d3aef";
|
|
1297
|
+
function validate(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
1298
|
+
const v_error = (() => {
|
|
1299
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1300
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1301
|
+
}
|
|
1302
|
+
const obj_size = obj.size;
|
|
1303
|
+
const path_size = path + '.size';
|
|
1304
|
+
if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
|
|
1305
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
1306
|
+
}
|
|
1307
|
+
const obj_sobjects = obj.sobjects;
|
|
1308
|
+
const path_sobjects = path + '.sobjects';
|
|
1309
|
+
if (!ArrayIsArray(obj_sobjects)) {
|
|
1310
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sobjects + '" (at "' + path_sobjects + '")');
|
|
1311
|
+
}
|
|
1312
|
+
for (let i = 0; i < obj_sobjects.length; i++) {
|
|
1313
|
+
const obj_sobjects_item = obj_sobjects[i];
|
|
1314
|
+
const path_sobjects_item = path_sobjects + '[' + i + ']';
|
|
1315
|
+
const referencepath_sobjects_itemValidationError = validate$1(obj_sobjects_item, path_sobjects_item);
|
|
1316
|
+
if (referencepath_sobjects_itemValidationError !== null) {
|
|
1317
|
+
let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
|
|
1318
|
+
message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1319
|
+
return new TypeError(message);
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
})();
|
|
1323
|
+
return v_error === undefined ? null : v_error;
|
|
1324
|
+
}
|
|
1325
|
+
const RepresentationType = 'SobjectsOutputSharingRepresentation';
|
|
1326
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1327
|
+
return input;
|
|
1328
|
+
}
|
|
1329
|
+
const select$1 = function SobjectsOutputSharingRepresentationSelect() {
|
|
1330
|
+
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$2();
|
|
1331
|
+
return {
|
|
1332
|
+
kind: 'Fragment',
|
|
1333
|
+
version: VERSION,
|
|
1334
|
+
private: [],
|
|
1335
|
+
selections: [
|
|
1336
|
+
{
|
|
1337
|
+
name: 'size',
|
|
1338
|
+
kind: 'Scalar'
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
name: 'sobjects',
|
|
1342
|
+
kind: 'Object',
|
|
1343
|
+
plural: true,
|
|
1344
|
+
selections: SobjectOutputSharingRepresentation__selections
|
|
1345
|
+
}
|
|
1346
|
+
]
|
|
1347
|
+
};
|
|
1348
|
+
};
|
|
1349
|
+
function equals(existing, incoming) {
|
|
1350
|
+
const existing_size = existing.size;
|
|
1351
|
+
const incoming_size = incoming.size;
|
|
1352
|
+
if (!(existing_size === incoming_size)) {
|
|
1353
|
+
return false;
|
|
1354
|
+
}
|
|
1355
|
+
const existing_sobjects = existing.sobjects;
|
|
1356
|
+
const incoming_sobjects = incoming.sobjects;
|
|
1357
|
+
const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
|
|
1358
|
+
if (!(equals$1(existing_sobjects_item, incoming_sobjects_item))) {
|
|
1359
|
+
return false;
|
|
1360
|
+
}
|
|
1361
|
+
});
|
|
1362
|
+
if (equals_sobjects_items === false) {
|
|
1363
|
+
return false;
|
|
1364
|
+
}
|
|
1365
|
+
return true;
|
|
1366
|
+
}
|
|
1367
|
+
const ingest = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1052
1368
|
if (process.env.NODE_ENV !== 'production') {
|
|
1053
1369
|
const validateError = validate(input);
|
|
1054
1370
|
if (validateError !== null) {
|
|
@@ -1074,7 +1390,7 @@ function select(luvio, params) {
|
|
|
1074
1390
|
return select$1();
|
|
1075
1391
|
}
|
|
1076
1392
|
function keyBuilder$1(luvio, params) {
|
|
1077
|
-
return keyPrefix + '::
|
|
1393
|
+
return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
|
|
1078
1394
|
}
|
|
1079
1395
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1080
1396
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -1112,33 +1428,31 @@ function createResourceRequest(config) {
|
|
|
1112
1428
|
const headers = {};
|
|
1113
1429
|
return {
|
|
1114
1430
|
baseUri: '/services/data/v61.0',
|
|
1115
|
-
basePath: '/sharing/
|
|
1116
|
-
method: '
|
|
1117
|
-
body:
|
|
1431
|
+
basePath: '/sharing/sobjects',
|
|
1432
|
+
method: 'get',
|
|
1433
|
+
body: null,
|
|
1118
1434
|
urlParams: {},
|
|
1119
|
-
queryParams:
|
|
1435
|
+
queryParams: config.queryParams,
|
|
1120
1436
|
headers,
|
|
1121
1437
|
priority: 'normal',
|
|
1122
1438
|
};
|
|
1123
1439
|
}
|
|
1124
1440
|
|
|
1125
|
-
const adapterName = '
|
|
1126
|
-
const
|
|
1127
|
-
generateParamConfigMetadata('
|
|
1128
|
-
generateParamConfigMetadata('
|
|
1129
|
-
generateParamConfigMetadata('
|
|
1130
|
-
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
1131
|
-
generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
|
|
1441
|
+
const adapterName = 'getAllSobjects';
|
|
1442
|
+
const getAllSobjects_ConfigPropertyMetadata = [
|
|
1443
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1444
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1445
|
+
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1132
1446
|
];
|
|
1133
|
-
const
|
|
1134
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1447
|
+
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAllSobjects_ConfigPropertyMetadata);
|
|
1448
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(getAllSobjects_ConfigPropertyMetadata);
|
|
1135
1449
|
function keyBuilder(luvio, config) {
|
|
1136
1450
|
const resourceParams = createResourceParams(config);
|
|
1137
1451
|
return keyBuilder$1(luvio, resourceParams);
|
|
1138
1452
|
}
|
|
1139
1453
|
function typeCheckConfig(untrustedConfig) {
|
|
1140
1454
|
const config = {};
|
|
1141
|
-
typeCheckConfig$
|
|
1455
|
+
typeCheckConfig$3(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
|
|
1142
1456
|
return config;
|
|
1143
1457
|
}
|
|
1144
1458
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1187,7 +1501,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1187
1501
|
});
|
|
1188
1502
|
}
|
|
1189
1503
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1190
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1504
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1191
1505
|
}
|
|
1192
1506
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1193
1507
|
const { luvio, config } = context;
|
|
@@ -1202,8 +1516,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
1202
1516
|
});
|
|
1203
1517
|
return cacheSnapshot;
|
|
1204
1518
|
}
|
|
1205
|
-
const
|
|
1206
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
1519
|
+
const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
|
|
1520
|
+
const config = validateAdapterConfig(untrustedConfig, getAllSobjects_ConfigPropertyNames);
|
|
1207
1521
|
// Invalid or incomplete config
|
|
1208
1522
|
if (config === null) {
|
|
1209
1523
|
return null;
|
|
@@ -1212,4 +1526,4 @@ const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPu
|
|
|
1212
1526
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1213
1527
|
};
|
|
1214
1528
|
|
|
1215
|
-
export { getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory };
|
|
1529
|
+
export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupShareDataAdapterFactory };
|