@salesforce/lds-adapters-platform-sharing 1.344.0 → 1.345.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 +332 -61
- package/dist/es/es2018/types/src/generated/adapters/addRemoveUserToGroups.d.ts +30 -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/postSharingAddRemoveUserToGroups.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/UserGroupMembershipDetailsInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/UserGroupMembershipDetailsRepresentation.d.ts +38 -0
- package/package.json +3 -3
- package/sfdc/index.js +301 -18
- package/src/raml/api.raml +53 -0
- package/src/raml/luvio.raml +7 -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$6, typeCheckConfig as typeCheckConfig$6, StoreKeyMap, createResourceParams as createResourceParams$6 } 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$i = "0769937b310d74bd11d5782eebfc254a";
|
|
95
|
+
function validate$i(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 + '")');
|
|
@@ -135,10 +135,10 @@ function validate$h(obj, path = 'PublicGroupRepresentation') {
|
|
|
135
135
|
})();
|
|
136
136
|
return v_error === undefined ? null : v_error;
|
|
137
137
|
}
|
|
138
|
-
const select$
|
|
138
|
+
const select$o = function PublicGroupRepresentationSelect() {
|
|
139
139
|
return {
|
|
140
140
|
kind: 'Fragment',
|
|
141
|
-
version: VERSION$
|
|
141
|
+
version: VERSION$i,
|
|
142
142
|
private: [],
|
|
143
143
|
selections: [
|
|
144
144
|
{
|
|
@@ -172,7 +172,7 @@ const select$m = function PublicGroupRepresentationSelect() {
|
|
|
172
172
|
]
|
|
173
173
|
};
|
|
174
174
|
};
|
|
175
|
-
function equals$
|
|
175
|
+
function equals$i(existing, incoming) {
|
|
176
176
|
const existing_includeBosses = existing.includeBosses;
|
|
177
177
|
const incoming_includeBosses = incoming.includeBosses;
|
|
178
178
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -211,8 +211,8 @@ function equals$h(existing, incoming) {
|
|
|
211
211
|
return true;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
const VERSION$
|
|
215
|
-
function validate$
|
|
214
|
+
const VERSION$h = "89ae3fce0ad09282e80bd77a9c483003";
|
|
215
|
+
function validate$h(obj, path = 'QueueRepresentation') {
|
|
216
216
|
const v_error = (() => {
|
|
217
217
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
218
218
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -235,10 +235,10 @@ function validate$g(obj, path = 'QueueRepresentation') {
|
|
|
235
235
|
})();
|
|
236
236
|
return v_error === undefined ? null : v_error;
|
|
237
237
|
}
|
|
238
|
-
const select$
|
|
238
|
+
const select$n = function QueueRepresentationSelect() {
|
|
239
239
|
return {
|
|
240
240
|
kind: 'Fragment',
|
|
241
|
-
version: VERSION$
|
|
241
|
+
version: VERSION$h,
|
|
242
242
|
private: [],
|
|
243
243
|
selections: [
|
|
244
244
|
{
|
|
@@ -256,7 +256,7 @@ const select$l = function QueueRepresentationSelect() {
|
|
|
256
256
|
]
|
|
257
257
|
};
|
|
258
258
|
};
|
|
259
|
-
function equals$
|
|
259
|
+
function equals$h(existing, incoming) {
|
|
260
260
|
const existing_developerName = existing.developerName;
|
|
261
261
|
const incoming_developerName = incoming.developerName;
|
|
262
262
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -275,9 +275,9 @@ function equals$g(existing, incoming) {
|
|
|
275
275
|
return true;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
const TTL$
|
|
279
|
-
const VERSION$
|
|
280
|
-
function validate$
|
|
278
|
+
const TTL$5 = 300;
|
|
279
|
+
const VERSION$g = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
280
|
+
function validate$g(obj, path = 'GroupCollectionRepresentation') {
|
|
281
281
|
const v_error = (() => {
|
|
282
282
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
283
283
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -290,7 +290,7 @@ function validate$f(obj, path = 'GroupCollectionRepresentation') {
|
|
|
290
290
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
291
291
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
292
292
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
293
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
293
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$i(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
294
294
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
295
295
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
296
296
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -305,7 +305,7 @@ function validate$f(obj, path = 'GroupCollectionRepresentation') {
|
|
|
305
305
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
306
306
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
307
307
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
308
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
308
|
+
const referencepath_queueRepresentations_itemValidationError = validate$h(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
309
309
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
310
310
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
311
311
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -315,16 +315,16 @@ function validate$f(obj, path = 'GroupCollectionRepresentation') {
|
|
|
315
315
|
})();
|
|
316
316
|
return v_error === undefined ? null : v_error;
|
|
317
317
|
}
|
|
318
|
-
const RepresentationType$
|
|
319
|
-
function normalize$
|
|
318
|
+
const RepresentationType$5 = 'GroupCollectionRepresentation';
|
|
319
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
320
320
|
return input;
|
|
321
321
|
}
|
|
322
|
-
const select$
|
|
323
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
324
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
322
|
+
const select$m = function GroupCollectionRepresentationSelect() {
|
|
323
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$o();
|
|
324
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$n();
|
|
325
325
|
return {
|
|
326
326
|
kind: 'Fragment',
|
|
327
|
-
version: VERSION$
|
|
327
|
+
version: VERSION$g,
|
|
328
328
|
private: [],
|
|
329
329
|
selections: [
|
|
330
330
|
{
|
|
@@ -342,11 +342,11 @@ const select$k = function GroupCollectionRepresentationSelect() {
|
|
|
342
342
|
]
|
|
343
343
|
};
|
|
344
344
|
};
|
|
345
|
-
function equals$
|
|
345
|
+
function equals$g(existing, incoming) {
|
|
346
346
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
347
347
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
348
348
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
349
|
-
if (!(equals$
|
|
349
|
+
if (!(equals$i(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
350
350
|
return false;
|
|
351
351
|
}
|
|
352
352
|
});
|
|
@@ -356,7 +356,7 @@ function equals$f(existing, incoming) {
|
|
|
356
356
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
357
357
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
358
358
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
359
|
-
if (!(equals$
|
|
359
|
+
if (!(equals$h(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
360
360
|
return false;
|
|
361
361
|
}
|
|
362
362
|
});
|
|
@@ -365,7 +365,282 @@ function equals$f(existing, incoming) {
|
|
|
365
365
|
}
|
|
366
366
|
return true;
|
|
367
367
|
}
|
|
368
|
-
const ingest$
|
|
368
|
+
const ingest$5 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
369
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
370
|
+
const validateError = validate$g(input);
|
|
371
|
+
if (validateError !== null) {
|
|
372
|
+
throw validateError;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
const key = path.fullPath;
|
|
376
|
+
const ttlToUse = TTL$5;
|
|
377
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "sharing", VERSION$g, RepresentationType$5, equals$g);
|
|
378
|
+
return createLink(key);
|
|
379
|
+
};
|
|
380
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
381
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
382
|
+
const rootKey = fullPathFactory();
|
|
383
|
+
rootKeySet.set(rootKey, {
|
|
384
|
+
namespace: keyPrefix,
|
|
385
|
+
representationName: RepresentationType$5,
|
|
386
|
+
mergeable: false
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
function select$l(luvio, params) {
|
|
391
|
+
return select$m();
|
|
392
|
+
}
|
|
393
|
+
function keyBuilder$b(luvio, params) {
|
|
394
|
+
return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupMembership:' + params.queryParams.groupMembership + ',' + 'searchTerm:' + params.queryParams.searchTerm + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
|
|
395
|
+
}
|
|
396
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
397
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
398
|
+
}
|
|
399
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
400
|
+
const { body } = response;
|
|
401
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
402
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
403
|
+
const snapshot = luvio.storeLookup({
|
|
404
|
+
recordId: key,
|
|
405
|
+
node: select$l(),
|
|
406
|
+
variables: {},
|
|
407
|
+
}, snapshotRefresh);
|
|
408
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
409
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
410
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
deepFreeze(snapshot.data);
|
|
414
|
+
return snapshot;
|
|
415
|
+
}
|
|
416
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
417
|
+
const key = keyBuilder$b(luvio, params);
|
|
418
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
419
|
+
const storeMetadataParams = {
|
|
420
|
+
ttl: TTL$5,
|
|
421
|
+
namespace: keyPrefix,
|
|
422
|
+
version: VERSION$g,
|
|
423
|
+
representationName: RepresentationType$5
|
|
424
|
+
};
|
|
425
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
426
|
+
return errorSnapshot;
|
|
427
|
+
}
|
|
428
|
+
function createResourceRequest$5(config) {
|
|
429
|
+
const headers = {};
|
|
430
|
+
return {
|
|
431
|
+
baseUri: '/services/data/v64.0',
|
|
432
|
+
basePath: '/sharing/groups-for-user/' + config.urlParams.userId + '/' + config.urlParams.groupType + '',
|
|
433
|
+
method: 'get',
|
|
434
|
+
body: null,
|
|
435
|
+
urlParams: config.urlParams,
|
|
436
|
+
queryParams: config.queryParams,
|
|
437
|
+
headers,
|
|
438
|
+
priority: 'normal',
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
const adapterName$5 = 'getGroupsForUser';
|
|
443
|
+
const getGroupsForUser_ConfigPropertyMetadata = [
|
|
444
|
+
generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
445
|
+
generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
446
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
447
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
448
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
449
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
450
|
+
generateParamConfigMetadata('groupMembership', false, 1 /* QueryParameter */, 0 /* String */),
|
|
451
|
+
generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
452
|
+
];
|
|
453
|
+
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getGroupsForUser_ConfigPropertyMetadata);
|
|
454
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(getGroupsForUser_ConfigPropertyMetadata);
|
|
455
|
+
function keyBuilder$a(luvio, config) {
|
|
456
|
+
const resourceParams = createResourceParams$5(config);
|
|
457
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
458
|
+
}
|
|
459
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
460
|
+
const config = {};
|
|
461
|
+
typeCheckConfig$6(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
|
|
462
|
+
return config;
|
|
463
|
+
}
|
|
464
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
465
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
466
|
+
return null;
|
|
467
|
+
}
|
|
468
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
469
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
470
|
+
}
|
|
471
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
472
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
473
|
+
return null;
|
|
474
|
+
}
|
|
475
|
+
return config;
|
|
476
|
+
}
|
|
477
|
+
function adapterFragment$5(luvio, config) {
|
|
478
|
+
createResourceParams$5(config);
|
|
479
|
+
return select$l();
|
|
480
|
+
}
|
|
481
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
482
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
483
|
+
config,
|
|
484
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
485
|
+
});
|
|
486
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
487
|
+
}
|
|
488
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
489
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
490
|
+
config,
|
|
491
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
492
|
+
});
|
|
493
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
494
|
+
}
|
|
495
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
496
|
+
const resourceParams = createResourceParams$5(config);
|
|
497
|
+
const request = createResourceRequest$5(resourceParams);
|
|
498
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
499
|
+
.then((response) => {
|
|
500
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
501
|
+
const cache = new StoreKeyMap();
|
|
502
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
503
|
+
return cache;
|
|
504
|
+
});
|
|
505
|
+
}, (response) => {
|
|
506
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
510
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
511
|
+
}
|
|
512
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
513
|
+
const { luvio, config } = context;
|
|
514
|
+
const selector = {
|
|
515
|
+
recordId: keyBuilder$a(luvio, config),
|
|
516
|
+
node: adapterFragment$5(luvio, config),
|
|
517
|
+
variables: {},
|
|
518
|
+
};
|
|
519
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
520
|
+
config,
|
|
521
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
522
|
+
});
|
|
523
|
+
return cacheSnapshot;
|
|
524
|
+
}
|
|
525
|
+
const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
|
|
526
|
+
const config = validateAdapterConfig$5(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
|
|
527
|
+
// Invalid or incomplete config
|
|
528
|
+
if (config === null) {
|
|
529
|
+
return null;
|
|
530
|
+
}
|
|
531
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
532
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
const TTL$4 = 300;
|
|
536
|
+
const VERSION$f = "9934cf4cb3fdd0b955c08c2d695a9a53";
|
|
537
|
+
function validate$f(obj, path = 'UserGroupMembershipDetailsRepresentation') {
|
|
538
|
+
const v_error = (() => {
|
|
539
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
540
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
541
|
+
}
|
|
542
|
+
const obj_errors = obj.errors;
|
|
543
|
+
const path_errors = path + '.errors';
|
|
544
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
545
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
546
|
+
}
|
|
547
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
548
|
+
const obj_errors_item = obj_errors[i];
|
|
549
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
550
|
+
if (typeof obj_errors_item !== 'string') {
|
|
551
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errors_item + '" (at "' + path_errors_item + '")');
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
const obj_infos = obj.infos;
|
|
555
|
+
const path_infos = path + '.infos';
|
|
556
|
+
if (!ArrayIsArray(obj_infos)) {
|
|
557
|
+
return new TypeError('Expected "array" but received "' + typeof obj_infos + '" (at "' + path_infos + '")');
|
|
558
|
+
}
|
|
559
|
+
for (let i = 0; i < obj_infos.length; i++) {
|
|
560
|
+
const obj_infos_item = obj_infos[i];
|
|
561
|
+
const path_infos_item = path_infos + '[' + i + ']';
|
|
562
|
+
if (typeof obj_infos_item !== 'string') {
|
|
563
|
+
return new TypeError('Expected "string" but received "' + typeof obj_infos_item + '" (at "' + path_infos_item + '")');
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
const obj_isSuccess = obj.isSuccess;
|
|
567
|
+
const path_isSuccess = path + '.isSuccess';
|
|
568
|
+
if (typeof obj_isSuccess !== 'boolean') {
|
|
569
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
570
|
+
}
|
|
571
|
+
const obj_operation = obj.operation;
|
|
572
|
+
const path_operation = path + '.operation';
|
|
573
|
+
if (typeof obj_operation !== 'string') {
|
|
574
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operation + '" (at "' + path_operation + '")');
|
|
575
|
+
}
|
|
576
|
+
})();
|
|
577
|
+
return v_error === undefined ? null : v_error;
|
|
578
|
+
}
|
|
579
|
+
const RepresentationType$4 = 'UserGroupMembershipDetailsRepresentation';
|
|
580
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
581
|
+
return input;
|
|
582
|
+
}
|
|
583
|
+
const select$k = function UserGroupMembershipDetailsRepresentationSelect() {
|
|
584
|
+
return {
|
|
585
|
+
kind: 'Fragment',
|
|
586
|
+
version: VERSION$f,
|
|
587
|
+
private: [],
|
|
588
|
+
selections: [
|
|
589
|
+
{
|
|
590
|
+
name: 'errors',
|
|
591
|
+
kind: 'Scalar',
|
|
592
|
+
plural: true
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
name: 'infos',
|
|
596
|
+
kind: 'Scalar',
|
|
597
|
+
plural: true
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
name: 'isSuccess',
|
|
601
|
+
kind: 'Scalar'
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
name: 'operation',
|
|
605
|
+
kind: 'Scalar'
|
|
606
|
+
}
|
|
607
|
+
]
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
function equals$f(existing, incoming) {
|
|
611
|
+
const existing_isSuccess = existing.isSuccess;
|
|
612
|
+
const incoming_isSuccess = incoming.isSuccess;
|
|
613
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
614
|
+
return false;
|
|
615
|
+
}
|
|
616
|
+
const existing_operation = existing.operation;
|
|
617
|
+
const incoming_operation = incoming.operation;
|
|
618
|
+
if (!(existing_operation === incoming_operation)) {
|
|
619
|
+
return false;
|
|
620
|
+
}
|
|
621
|
+
const existing_errors = existing.errors;
|
|
622
|
+
const incoming_errors = incoming.errors;
|
|
623
|
+
const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
|
|
624
|
+
if (!(existing_errors_item === incoming_errors_item)) {
|
|
625
|
+
return false;
|
|
626
|
+
}
|
|
627
|
+
});
|
|
628
|
+
if (equals_errors_items === false) {
|
|
629
|
+
return false;
|
|
630
|
+
}
|
|
631
|
+
const existing_infos = existing.infos;
|
|
632
|
+
const incoming_infos = incoming.infos;
|
|
633
|
+
const equals_infos_items = equalsArray(existing_infos, incoming_infos, (existing_infos_item, incoming_infos_item) => {
|
|
634
|
+
if (!(existing_infos_item === incoming_infos_item)) {
|
|
635
|
+
return false;
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
if (equals_infos_items === false) {
|
|
639
|
+
return false;
|
|
640
|
+
}
|
|
641
|
+
return true;
|
|
642
|
+
}
|
|
643
|
+
const ingest$4 = function UserGroupMembershipDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
369
644
|
if (process.env.NODE_ENV !== 'production') {
|
|
370
645
|
const validateError = validate$f(input);
|
|
371
646
|
if (validateError !== null) {
|
|
@@ -391,7 +666,7 @@ function select$j(luvio, params) {
|
|
|
391
666
|
return select$k();
|
|
392
667
|
}
|
|
393
668
|
function keyBuilder$9(luvio, params) {
|
|
394
|
-
return keyPrefix + '::
|
|
669
|
+
return keyPrefix + '::UserGroupMembershipDetailsRepresentation:(' + 'userId:' + params.body.userId + '::' + 'memberType:' + params.body.memberType + '::' + 'operation:' + params.body.operation + '::' + 'selectedGroups:' + params.body.selectedGroups + ')';
|
|
395
670
|
}
|
|
396
671
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
397
672
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
@@ -429,36 +704,32 @@ function createResourceRequest$4(config) {
|
|
|
429
704
|
const headers = {};
|
|
430
705
|
return {
|
|
431
706
|
baseUri: '/services/data/v64.0',
|
|
432
|
-
basePath: '/sharing/
|
|
433
|
-
method: '
|
|
434
|
-
body:
|
|
435
|
-
urlParams:
|
|
436
|
-
queryParams:
|
|
707
|
+
basePath: '/sharing/addRemoveUserToGroups',
|
|
708
|
+
method: 'post',
|
|
709
|
+
body: config.body,
|
|
710
|
+
urlParams: {},
|
|
711
|
+
queryParams: {},
|
|
437
712
|
headers,
|
|
438
713
|
priority: 'normal',
|
|
439
714
|
};
|
|
440
715
|
}
|
|
441
716
|
|
|
442
|
-
const adapterName$4 = '
|
|
443
|
-
const
|
|
444
|
-
generateParamConfigMetadata('
|
|
445
|
-
generateParamConfigMetadata('
|
|
446
|
-
generateParamConfigMetadata('
|
|
447
|
-
generateParamConfigMetadata('
|
|
448
|
-
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
449
|
-
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
450
|
-
generateParamConfigMetadata('groupMembership', false, 1 /* QueryParameter */, 0 /* String */),
|
|
451
|
-
generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
717
|
+
const adapterName$4 = 'addRemoveUserToGroups';
|
|
718
|
+
const addRemoveUserToGroups_ConfigPropertyMetadata = [
|
|
719
|
+
generateParamConfigMetadata('userId', true, 2 /* Body */, 0 /* String */),
|
|
720
|
+
generateParamConfigMetadata('memberType', true, 2 /* Body */, 0 /* String */),
|
|
721
|
+
generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
|
|
722
|
+
generateParamConfigMetadata('selectedGroups', true, 2 /* Body */, 0 /* String */, true),
|
|
452
723
|
];
|
|
453
|
-
const
|
|
454
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
724
|
+
const addRemoveUserToGroups_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, addRemoveUserToGroups_ConfigPropertyMetadata);
|
|
725
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(addRemoveUserToGroups_ConfigPropertyMetadata);
|
|
455
726
|
function keyBuilder$8(luvio, config) {
|
|
456
727
|
const resourceParams = createResourceParams$4(config);
|
|
457
728
|
return keyBuilder$9(luvio, resourceParams);
|
|
458
729
|
}
|
|
459
730
|
function typeCheckConfig$4(untrustedConfig) {
|
|
460
731
|
const config = {};
|
|
461
|
-
typeCheckConfig$
|
|
732
|
+
typeCheckConfig$6(untrustedConfig, config, addRemoveUserToGroups_ConfigPropertyMetadata);
|
|
462
733
|
return config;
|
|
463
734
|
}
|
|
464
735
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -507,7 +778,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
507
778
|
});
|
|
508
779
|
}
|
|
509
780
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
510
|
-
return buildNetworkSnapshotCachePolicy$
|
|
781
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
|
|
511
782
|
}
|
|
512
783
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
513
784
|
const { luvio, config } = context;
|
|
@@ -522,8 +793,8 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
522
793
|
});
|
|
523
794
|
return cacheSnapshot;
|
|
524
795
|
}
|
|
525
|
-
const
|
|
526
|
-
const config = validateAdapterConfig$4(untrustedConfig,
|
|
796
|
+
const addRemoveUserToGroupsAdapterFactory = (luvio) => function sharing__addRemoveUserToGroups(untrustedConfig, requestContext) {
|
|
797
|
+
const config = validateAdapterConfig$4(untrustedConfig, addRemoveUserToGroups_ConfigPropertyNames);
|
|
527
798
|
// Invalid or incomplete config
|
|
528
799
|
if (config === null) {
|
|
529
800
|
return null;
|
|
@@ -1252,14 +1523,14 @@ const getPublicGroupMembershipDetails_ConfigPropertyMetadata = [
|
|
|
1252
1523
|
generateParamConfigMetadata('selectedMembers', true, 2 /* Body */, 0 /* String */, true),
|
|
1253
1524
|
];
|
|
1254
1525
|
const getPublicGroupMembershipDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getPublicGroupMembershipDetails_ConfigPropertyMetadata);
|
|
1255
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
1526
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(getPublicGroupMembershipDetails_ConfigPropertyMetadata);
|
|
1256
1527
|
function keyBuilder$6(luvio, config) {
|
|
1257
1528
|
const resourceParams = createResourceParams$3(config);
|
|
1258
1529
|
return keyBuilder$7(luvio, resourceParams);
|
|
1259
1530
|
}
|
|
1260
1531
|
function typeCheckConfig$3(untrustedConfig) {
|
|
1261
1532
|
const config = {};
|
|
1262
|
-
typeCheckConfig$
|
|
1533
|
+
typeCheckConfig$6(untrustedConfig, config, getPublicGroupMembershipDetails_ConfigPropertyMetadata);
|
|
1263
1534
|
const untrustedConfig_filterCriteria = untrustedConfig.filterCriteria;
|
|
1264
1535
|
config.filterCriteria = untrustedConfig_filterCriteria;
|
|
1265
1536
|
return config;
|
|
@@ -1310,7 +1581,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1310
1581
|
});
|
|
1311
1582
|
}
|
|
1312
1583
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
1313
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1584
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, 'get', false);
|
|
1314
1585
|
}
|
|
1315
1586
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
1316
1587
|
const { luvio, config } = context;
|
|
@@ -2204,14 +2475,14 @@ const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
|
2204
2475
|
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
2205
2476
|
];
|
|
2206
2477
|
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
2207
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
2478
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$6(getPublicGroupShareData_ConfigPropertyMetadata);
|
|
2208
2479
|
function keyBuilder$4(luvio, config) {
|
|
2209
2480
|
const resourceParams = createResourceParams$2(config);
|
|
2210
2481
|
return keyBuilder$5(luvio, resourceParams);
|
|
2211
2482
|
}
|
|
2212
2483
|
function typeCheckConfig$2(untrustedConfig) {
|
|
2213
2484
|
const config = {};
|
|
2214
|
-
typeCheckConfig$
|
|
2485
|
+
typeCheckConfig$6(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
2215
2486
|
return config;
|
|
2216
2487
|
}
|
|
2217
2488
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -2260,7 +2531,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
2260
2531
|
});
|
|
2261
2532
|
}
|
|
2262
2533
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
2263
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2534
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
|
|
2264
2535
|
}
|
|
2265
2536
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
2266
2537
|
const { luvio, config } = context;
|
|
@@ -2516,14 +2787,14 @@ const getAllSobjects_ConfigPropertyMetadata = [
|
|
|
2516
2787
|
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2517
2788
|
];
|
|
2518
2789
|
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAllSobjects_ConfigPropertyMetadata);
|
|
2519
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
2790
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(getAllSobjects_ConfigPropertyMetadata);
|
|
2520
2791
|
function keyBuilder$2(luvio, config) {
|
|
2521
2792
|
const resourceParams = createResourceParams$1(config);
|
|
2522
2793
|
return keyBuilder$3(luvio, resourceParams);
|
|
2523
2794
|
}
|
|
2524
2795
|
function typeCheckConfig$1(untrustedConfig) {
|
|
2525
2796
|
const config = {};
|
|
2526
|
-
typeCheckConfig$
|
|
2797
|
+
typeCheckConfig$6(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
|
|
2527
2798
|
return config;
|
|
2528
2799
|
}
|
|
2529
2800
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -2572,7 +2843,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
2572
2843
|
});
|
|
2573
2844
|
}
|
|
2574
2845
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
2575
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2846
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
2576
2847
|
}
|
|
2577
2848
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
2578
2849
|
const { luvio, config } = context;
|
|
@@ -2910,14 +3181,14 @@ const getUserPermissions_ConfigPropertyMetadata = [
|
|
|
2910
3181
|
generateParamConfigMetadata('recordId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
2911
3182
|
];
|
|
2912
3183
|
const getUserPermissions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUserPermissions_ConfigPropertyMetadata);
|
|
2913
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
3184
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$6(getUserPermissions_ConfigPropertyMetadata);
|
|
2914
3185
|
function keyBuilder(luvio, config) {
|
|
2915
3186
|
const resourceParams = createResourceParams(config);
|
|
2916
3187
|
return keyBuilder$1(luvio, resourceParams);
|
|
2917
3188
|
}
|
|
2918
3189
|
function typeCheckConfig(untrustedConfig) {
|
|
2919
3190
|
const config = {};
|
|
2920
|
-
typeCheckConfig$
|
|
3191
|
+
typeCheckConfig$6(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
|
|
2921
3192
|
return config;
|
|
2922
3193
|
}
|
|
2923
3194
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -2966,7 +3237,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2966
3237
|
});
|
|
2967
3238
|
}
|
|
2968
3239
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2969
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3240
|
+
return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
2970
3241
|
}
|
|
2971
3242
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2972
3243
|
const { luvio, config } = context;
|
|
@@ -2991,4 +3262,4 @@ const getUserPermissionsAdapterFactory = (luvio) => function sharing__getUserPer
|
|
|
2991
3262
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
2992
3263
|
};
|
|
2993
3264
|
|
|
2994
|
-
export { getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupMembershipDetailsAdapterFactory, getPublicGroupShareDataAdapterFactory, getUserPermissionsAdapterFactory };
|
|
3265
|
+
export { addRemoveUserToGroupsAdapterFactory, getAllSobjectsAdapterFactory, getGroupsForUserAdapterFactory, getPublicGroupMembershipDetailsAdapterFactory, getPublicGroupShareDataAdapterFactory, getUserPermissionsAdapterFactory };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_postSharingAddRemoveUserToGroups_ResourceRequestConfig } from '../resources/postSharingAddRemoveUserToGroups';
|
|
4
|
+
import { UserGroupMembershipDetailsRepresentation as types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation } from '../types/UserGroupMembershipDetailsRepresentation';
|
|
5
|
+
export declare const adapterName = "addRemoveUserToGroups";
|
|
6
|
+
export declare const addRemoveUserToGroups_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const addRemoveUserToGroups_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface AddRemoveUserToGroupsConfig {
|
|
9
|
+
userId: string;
|
|
10
|
+
memberType: string;
|
|
11
|
+
operation: string;
|
|
12
|
+
selectedGroups: Array<string>;
|
|
13
|
+
}
|
|
14
|
+
export declare const createResourceParams: (config: AddRemoveUserToGroupsConfig) => resources_postSharingAddRemoveUserToGroups_ResourceRequestConfig;
|
|
15
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: AddRemoveUserToGroupsConfig): string;
|
|
16
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: AddRemoveUserToGroupsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
17
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<AddRemoveUserToGroupsConfig>): adapter$45$utils_Untrusted<AddRemoveUserToGroupsConfig>;
|
|
18
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): AddRemoveUserToGroupsConfig | null;
|
|
19
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: AddRemoveUserToGroupsConfig): $64$luvio_engine_Fragment;
|
|
20
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: AddRemoveUserToGroupsConfig): $64$luvio_engine_Snapshot<types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation, any>;
|
|
21
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: AddRemoveUserToGroupsConfig, resourceParams: resources_postSharingAddRemoveUserToGroups_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation, any>>;
|
|
22
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: AddRemoveUserToGroupsConfig, resourceParams: resources_postSharingAddRemoveUserToGroups_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
23
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: AddRemoveUserToGroupsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation, any>>;
|
|
24
|
+
export type BuildSnapshotContext = {
|
|
25
|
+
luvio: $64$luvio_engine_Luvio;
|
|
26
|
+
config: AddRemoveUserToGroupsConfig;
|
|
27
|
+
};
|
|
28
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation, any>>;
|
|
29
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation>): $64$luvio_engine_Snapshot<types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation, any>;
|
|
30
|
+
export declare const addRemoveUserToGroupsAdapterFactory: $64$luvio_engine_AdapterFactory<AddRemoveUserToGroupsConfig, types_UserGroupMembershipDetailsRepresentation_UserGroupMembershipDetailsRepresentation>;
|