@salesforce/lds-adapters-platform-sharing 1.289.0 → 1.291.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 +391 -60
- package/dist/es/es2018/types/src/generated/adapters/getPublicGroupMembershipDetails.d.ts +32 -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/postSharingPublicGroupsDetails.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/types/FilterCriteriaInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/PublicGroupMembershipDetailsInputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/PublicGroupMembershipDetailsRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/UserMembersInPublicGroupRepresentation.d.ts +43 -0
- package/package.json +3 -3
- package/sfdc/index.js +471 -128
- package/src/raml/api.raml +104 -26
- package/src/raml/luvio.raml +8 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$5, StoreKeyMap, createResourceParams as createResourceParams$5 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -101,8 +101,8 @@ function createLink(ref) {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
const VERSION$
|
|
105
|
-
function validate$
|
|
104
|
+
const VERSION$e = "8f1b312aa04c8869624b95b9e3f3cd4e";
|
|
105
|
+
function validate$e(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
106
106
|
const v_error = (() => {
|
|
107
107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -130,10 +130,10 @@ function validate$c(obj, path = 'SobjectOutputSharingRepresentation') {
|
|
|
130
130
|
})();
|
|
131
131
|
return v_error === undefined ? null : v_error;
|
|
132
132
|
}
|
|
133
|
-
const select$
|
|
133
|
+
const select$j = function SobjectOutputSharingRepresentationSelect() {
|
|
134
134
|
return {
|
|
135
135
|
kind: 'Fragment',
|
|
136
|
-
version: VERSION$
|
|
136
|
+
version: VERSION$e,
|
|
137
137
|
private: [],
|
|
138
138
|
selections: [
|
|
139
139
|
{
|
|
@@ -155,7 +155,7 @@ const select$g = function SobjectOutputSharingRepresentationSelect() {
|
|
|
155
155
|
]
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
function equals$
|
|
158
|
+
function equals$e(existing, incoming) {
|
|
159
159
|
const existing_apiName = existing.apiName;
|
|
160
160
|
const incoming_apiName = incoming.apiName;
|
|
161
161
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -179,9 +179,9 @@ function equals$c(existing, incoming) {
|
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
const TTL$
|
|
183
|
-
const VERSION$
|
|
184
|
-
function validate$
|
|
182
|
+
const TTL$4 = 900000;
|
|
183
|
+
const VERSION$d = "891459dfe3e992adddad156c898d3aef";
|
|
184
|
+
function validate$d(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
185
185
|
const v_error = (() => {
|
|
186
186
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
187
187
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -199,7 +199,7 @@ function validate$b(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
199
199
|
for (let i = 0; i < obj_sobjects.length; i++) {
|
|
200
200
|
const obj_sobjects_item = obj_sobjects[i];
|
|
201
201
|
const path_sobjects_item = path_sobjects + '[' + i + ']';
|
|
202
|
-
const referencepath_sobjects_itemValidationError = validate$
|
|
202
|
+
const referencepath_sobjects_itemValidationError = validate$e(obj_sobjects_item, path_sobjects_item);
|
|
203
203
|
if (referencepath_sobjects_itemValidationError !== null) {
|
|
204
204
|
let message = 'Object doesn\'t match SobjectOutputSharingRepresentation (at "' + path_sobjects_item + '")\n';
|
|
205
205
|
message += referencepath_sobjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -209,15 +209,15 @@ function validate$b(obj, path = 'SobjectsOutputSharingRepresentation') {
|
|
|
209
209
|
})();
|
|
210
210
|
return v_error === undefined ? null : v_error;
|
|
211
211
|
}
|
|
212
|
-
const RepresentationType$
|
|
213
|
-
function normalize$
|
|
212
|
+
const RepresentationType$4 = 'SobjectsOutputSharingRepresentation';
|
|
213
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
214
214
|
return input;
|
|
215
215
|
}
|
|
216
|
-
const select$
|
|
217
|
-
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$
|
|
216
|
+
const select$i = function SobjectsOutputSharingRepresentationSelect() {
|
|
217
|
+
const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$j();
|
|
218
218
|
return {
|
|
219
219
|
kind: 'Fragment',
|
|
220
|
-
version: VERSION$
|
|
220
|
+
version: VERSION$d,
|
|
221
221
|
private: [],
|
|
222
222
|
selections: [
|
|
223
223
|
{
|
|
@@ -233,7 +233,7 @@ const select$f = function SobjectsOutputSharingRepresentationSelect() {
|
|
|
233
233
|
]
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
|
-
function equals$
|
|
236
|
+
function equals$d(existing, incoming) {
|
|
237
237
|
const existing_size = existing.size;
|
|
238
238
|
const incoming_size = incoming.size;
|
|
239
239
|
if (!(existing_size === incoming_size)) {
|
|
@@ -242,7 +242,7 @@ function equals$b(existing, incoming) {
|
|
|
242
242
|
const existing_sobjects = existing.sobjects;
|
|
243
243
|
const incoming_sobjects = incoming.sobjects;
|
|
244
244
|
const equals_sobjects_items = equalsArray(existing_sobjects, incoming_sobjects, (existing_sobjects_item, incoming_sobjects_item) => {
|
|
245
|
-
if (!(equals$
|
|
245
|
+
if (!(equals$e(existing_sobjects_item, incoming_sobjects_item))) {
|
|
246
246
|
return false;
|
|
247
247
|
}
|
|
248
248
|
});
|
|
@@ -251,44 +251,44 @@ function equals$b(existing, incoming) {
|
|
|
251
251
|
}
|
|
252
252
|
return true;
|
|
253
253
|
}
|
|
254
|
-
const ingest$
|
|
254
|
+
const ingest$4 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
255
255
|
if (process.env.NODE_ENV !== 'production') {
|
|
256
|
-
const validateError = validate$
|
|
256
|
+
const validateError = validate$d(input);
|
|
257
257
|
if (validateError !== null) {
|
|
258
258
|
throw validateError;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
const key = path.fullPath;
|
|
262
|
-
const ttlToUse = TTL$
|
|
263
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
262
|
+
const ttlToUse = TTL$4;
|
|
263
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "sharing", VERSION$d, RepresentationType$4, equals$d);
|
|
264
264
|
return createLink(key);
|
|
265
265
|
};
|
|
266
|
-
function getTypeCacheKeys$
|
|
266
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
267
267
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
268
268
|
const rootKey = fullPathFactory();
|
|
269
269
|
rootKeySet.set(rootKey, {
|
|
270
270
|
namespace: keyPrefix,
|
|
271
|
-
representationName: RepresentationType$
|
|
271
|
+
representationName: RepresentationType$4,
|
|
272
272
|
mergeable: false
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
function select$
|
|
277
|
-
return select$
|
|
276
|
+
function select$h(luvio, params) {
|
|
277
|
+
return select$i();
|
|
278
278
|
}
|
|
279
|
-
function keyBuilder$
|
|
279
|
+
function keyBuilder$9(luvio, params) {
|
|
280
280
|
return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
|
|
281
281
|
}
|
|
282
|
-
function getResponseCacheKeys$
|
|
283
|
-
getTypeCacheKeys$
|
|
282
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
283
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
284
284
|
}
|
|
285
|
-
function ingestSuccess$
|
|
285
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
286
286
|
const { body } = response;
|
|
287
|
-
const key = keyBuilder$
|
|
288
|
-
luvio.storeIngest(key, ingest$
|
|
287
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
288
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
289
289
|
const snapshot = luvio.storeLookup({
|
|
290
290
|
recordId: key,
|
|
291
|
-
node: select$
|
|
291
|
+
node: select$h(),
|
|
292
292
|
variables: {},
|
|
293
293
|
}, snapshotRefresh);
|
|
294
294
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -299,22 +299,22 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
299
299
|
deepFreeze(snapshot.data);
|
|
300
300
|
return snapshot;
|
|
301
301
|
}
|
|
302
|
-
function ingestError$
|
|
303
|
-
const key = keyBuilder$
|
|
302
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
303
|
+
const key = keyBuilder$9(luvio, params);
|
|
304
304
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
305
305
|
const storeMetadataParams = {
|
|
306
|
-
ttl: TTL$
|
|
306
|
+
ttl: TTL$4,
|
|
307
307
|
namespace: keyPrefix,
|
|
308
|
-
version: VERSION$
|
|
309
|
-
representationName: RepresentationType$
|
|
308
|
+
version: VERSION$d,
|
|
309
|
+
representationName: RepresentationType$4
|
|
310
310
|
};
|
|
311
311
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
312
312
|
return errorSnapshot;
|
|
313
313
|
}
|
|
314
|
-
function createResourceRequest$
|
|
314
|
+
function createResourceRequest$4(config) {
|
|
315
315
|
const headers = {};
|
|
316
316
|
return {
|
|
317
|
-
baseUri: '/services/data/
|
|
317
|
+
baseUri: '/services/data/v62.0',
|
|
318
318
|
basePath: '/sharing/sobjects',
|
|
319
319
|
method: 'get',
|
|
320
320
|
body: null,
|
|
@@ -325,96 +325,96 @@ function createResourceRequest$3(config) {
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
const adapterName$
|
|
328
|
+
const adapterName$4 = 'getAllSobjects';
|
|
329
329
|
const getAllSobjects_ConfigPropertyMetadata = [
|
|
330
330
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
331
331
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
332
332
|
generateParamConfigMetadata('searchText', false, 1 /* QueryParameter */, 0 /* String */),
|
|
333
333
|
];
|
|
334
|
-
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
335
|
-
const createResourceParams$
|
|
336
|
-
function keyBuilder$
|
|
337
|
-
const resourceParams = createResourceParams$
|
|
338
|
-
return keyBuilder$
|
|
334
|
+
const getAllSobjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllSobjects_ConfigPropertyMetadata);
|
|
335
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(getAllSobjects_ConfigPropertyMetadata);
|
|
336
|
+
function keyBuilder$8(luvio, config) {
|
|
337
|
+
const resourceParams = createResourceParams$4(config);
|
|
338
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
339
339
|
}
|
|
340
|
-
function typeCheckConfig$
|
|
340
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
341
341
|
const config = {};
|
|
342
|
-
typeCheckConfig$
|
|
342
|
+
typeCheckConfig$5(untrustedConfig, config, getAllSobjects_ConfigPropertyMetadata);
|
|
343
343
|
return config;
|
|
344
344
|
}
|
|
345
|
-
function validateAdapterConfig$
|
|
345
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
346
346
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
347
347
|
return null;
|
|
348
348
|
}
|
|
349
349
|
if (process.env.NODE_ENV !== 'production') {
|
|
350
350
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
351
351
|
}
|
|
352
|
-
const config = typeCheckConfig$
|
|
352
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
353
353
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
354
354
|
return null;
|
|
355
355
|
}
|
|
356
356
|
return config;
|
|
357
357
|
}
|
|
358
|
-
function adapterFragment$
|
|
359
|
-
createResourceParams$
|
|
360
|
-
return select$
|
|
358
|
+
function adapterFragment$4(luvio, config) {
|
|
359
|
+
createResourceParams$4(config);
|
|
360
|
+
return select$h();
|
|
361
361
|
}
|
|
362
|
-
function onFetchResponseSuccess$
|
|
363
|
-
const snapshot = ingestSuccess$
|
|
362
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
363
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
364
364
|
config,
|
|
365
|
-
resolve: () => buildNetworkSnapshot$
|
|
365
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
366
366
|
});
|
|
367
367
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
368
368
|
}
|
|
369
|
-
function onFetchResponseError$
|
|
370
|
-
const snapshot = ingestError$
|
|
369
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
370
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
371
371
|
config,
|
|
372
|
-
resolve: () => buildNetworkSnapshot$
|
|
372
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
373
373
|
});
|
|
374
374
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
375
375
|
}
|
|
376
|
-
function buildNetworkSnapshot$
|
|
377
|
-
const resourceParams = createResourceParams$
|
|
378
|
-
const request = createResourceRequest$
|
|
376
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
377
|
+
const resourceParams = createResourceParams$4(config);
|
|
378
|
+
const request = createResourceRequest$4(resourceParams);
|
|
379
379
|
return luvio.dispatchResourceRequest(request, options)
|
|
380
380
|
.then((response) => {
|
|
381
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
381
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
382
382
|
const cache = new StoreKeyMap();
|
|
383
|
-
getResponseCacheKeys$
|
|
383
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
384
384
|
return cache;
|
|
385
385
|
});
|
|
386
386
|
}, (response) => {
|
|
387
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
387
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
|
-
function buildNetworkSnapshotCachePolicy$
|
|
391
|
-
return buildNetworkSnapshotCachePolicy$
|
|
390
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
391
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
392
392
|
}
|
|
393
|
-
function buildCachedSnapshotCachePolicy$
|
|
393
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
394
394
|
const { luvio, config } = context;
|
|
395
395
|
const selector = {
|
|
396
|
-
recordId: keyBuilder$
|
|
397
|
-
node: adapterFragment$
|
|
396
|
+
recordId: keyBuilder$8(luvio, config),
|
|
397
|
+
node: adapterFragment$4(luvio, config),
|
|
398
398
|
variables: {},
|
|
399
399
|
};
|
|
400
400
|
const cacheSnapshot = storeLookup(selector, {
|
|
401
401
|
config,
|
|
402
|
-
resolve: () => buildNetworkSnapshot$
|
|
402
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
403
403
|
});
|
|
404
404
|
return cacheSnapshot;
|
|
405
405
|
}
|
|
406
406
|
const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects(untrustedConfig, requestContext) {
|
|
407
|
-
const config = validateAdapterConfig$
|
|
407
|
+
const config = validateAdapterConfig$4(untrustedConfig, getAllSobjects_ConfigPropertyNames);
|
|
408
408
|
// Invalid or incomplete config
|
|
409
409
|
if (config === null) {
|
|
410
410
|
return null;
|
|
411
411
|
}
|
|
412
412
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
413
|
-
buildCachedSnapshotCachePolicy$
|
|
413
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
414
414
|
};
|
|
415
415
|
|
|
416
|
-
const VERSION$
|
|
417
|
-
function validate$
|
|
416
|
+
const VERSION$c = "7d75e40a9fde9f60ae02b6dde36257ce";
|
|
417
|
+
function validate$c(obj, path = 'PublicGroupRepresentation') {
|
|
418
418
|
const v_error = (() => {
|
|
419
419
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
420
420
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -442,10 +442,10 @@ function validate$a(obj, path = 'PublicGroupRepresentation') {
|
|
|
442
442
|
})();
|
|
443
443
|
return v_error === undefined ? null : v_error;
|
|
444
444
|
}
|
|
445
|
-
const select$
|
|
445
|
+
const select$g = function PublicGroupRepresentationSelect() {
|
|
446
446
|
return {
|
|
447
447
|
kind: 'Fragment',
|
|
448
|
-
version: VERSION$
|
|
448
|
+
version: VERSION$c,
|
|
449
449
|
private: [],
|
|
450
450
|
selections: [
|
|
451
451
|
{
|
|
@@ -467,7 +467,7 @@ const select$d = function PublicGroupRepresentationSelect() {
|
|
|
467
467
|
]
|
|
468
468
|
};
|
|
469
469
|
};
|
|
470
|
-
function equals$
|
|
470
|
+
function equals$c(existing, incoming) {
|
|
471
471
|
const existing_includeBosses = existing.includeBosses;
|
|
472
472
|
const incoming_includeBosses = incoming.includeBosses;
|
|
473
473
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -491,8 +491,8 @@ function equals$a(existing, incoming) {
|
|
|
491
491
|
return true;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
const VERSION$
|
|
495
|
-
function validate$
|
|
494
|
+
const VERSION$b = "89ae3fce0ad09282e80bd77a9c483003";
|
|
495
|
+
function validate$b(obj, path = 'QueueRepresentation') {
|
|
496
496
|
const v_error = (() => {
|
|
497
497
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
498
498
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -515,10 +515,10 @@ function validate$9(obj, path = 'QueueRepresentation') {
|
|
|
515
515
|
})();
|
|
516
516
|
return v_error === undefined ? null : v_error;
|
|
517
517
|
}
|
|
518
|
-
const select$
|
|
518
|
+
const select$f = function QueueRepresentationSelect() {
|
|
519
519
|
return {
|
|
520
520
|
kind: 'Fragment',
|
|
521
|
-
version: VERSION$
|
|
521
|
+
version: VERSION$b,
|
|
522
522
|
private: [],
|
|
523
523
|
selections: [
|
|
524
524
|
{
|
|
@@ -536,7 +536,7 @@ const select$c = function QueueRepresentationSelect() {
|
|
|
536
536
|
]
|
|
537
537
|
};
|
|
538
538
|
};
|
|
539
|
-
function equals$
|
|
539
|
+
function equals$b(existing, incoming) {
|
|
540
540
|
const existing_developerName = existing.developerName;
|
|
541
541
|
const incoming_developerName = incoming.developerName;
|
|
542
542
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -555,9 +555,9 @@ function equals$9(existing, incoming) {
|
|
|
555
555
|
return true;
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
-
const TTL$
|
|
559
|
-
const VERSION$
|
|
560
|
-
function validate$
|
|
558
|
+
const TTL$3 = 300;
|
|
559
|
+
const VERSION$a = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
560
|
+
function validate$a(obj, path = 'GroupCollectionRepresentation') {
|
|
561
561
|
const v_error = (() => {
|
|
562
562
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
563
563
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -570,7 +570,7 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
|
570
570
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
571
571
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
572
572
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
573
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
573
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$c(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
574
574
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
575
575
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
576
576
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -585,7 +585,7 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
|
585
585
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
586
586
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
587
587
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
588
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
588
|
+
const referencepath_queueRepresentations_itemValidationError = validate$b(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
589
589
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
590
590
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
591
591
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -595,16 +595,16 @@ function validate$8(obj, path = 'GroupCollectionRepresentation') {
|
|
|
595
595
|
})();
|
|
596
596
|
return v_error === undefined ? null : v_error;
|
|
597
597
|
}
|
|
598
|
-
const RepresentationType$
|
|
599
|
-
function normalize$
|
|
598
|
+
const RepresentationType$3 = 'GroupCollectionRepresentation';
|
|
599
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
600
600
|
return input;
|
|
601
601
|
}
|
|
602
|
-
const select$
|
|
603
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
604
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
602
|
+
const select$e = function GroupCollectionRepresentationSelect() {
|
|
603
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$g();
|
|
604
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$f();
|
|
605
605
|
return {
|
|
606
606
|
kind: 'Fragment',
|
|
607
|
-
version: VERSION$
|
|
607
|
+
version: VERSION$a,
|
|
608
608
|
private: [],
|
|
609
609
|
selections: [
|
|
610
610
|
{
|
|
@@ -622,11 +622,11 @@ const select$b = function GroupCollectionRepresentationSelect() {
|
|
|
622
622
|
]
|
|
623
623
|
};
|
|
624
624
|
};
|
|
625
|
-
function equals$
|
|
625
|
+
function equals$a(existing, incoming) {
|
|
626
626
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
627
627
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
628
628
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
629
|
-
if (!(equals$
|
|
629
|
+
if (!(equals$c(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
630
630
|
return false;
|
|
631
631
|
}
|
|
632
632
|
});
|
|
@@ -636,7 +636,7 @@ function equals$8(existing, incoming) {
|
|
|
636
636
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
637
637
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
638
638
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
639
|
-
if (!(equals$
|
|
639
|
+
if (!(equals$b(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
640
640
|
return false;
|
|
641
641
|
}
|
|
642
642
|
});
|
|
@@ -645,7 +645,336 @@ function equals$8(existing, incoming) {
|
|
|
645
645
|
}
|
|
646
646
|
return true;
|
|
647
647
|
}
|
|
648
|
-
const ingest$
|
|
648
|
+
const ingest$3 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
649
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
650
|
+
const validateError = validate$a(input);
|
|
651
|
+
if (validateError !== null) {
|
|
652
|
+
throw validateError;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
const key = path.fullPath;
|
|
656
|
+
const ttlToUse = TTL$3;
|
|
657
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$a, RepresentationType$3, equals$a);
|
|
658
|
+
return createLink(key);
|
|
659
|
+
};
|
|
660
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
661
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
662
|
+
const rootKey = fullPathFactory();
|
|
663
|
+
rootKeySet.set(rootKey, {
|
|
664
|
+
namespace: keyPrefix,
|
|
665
|
+
representationName: RepresentationType$3,
|
|
666
|
+
mergeable: false
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
function select$d(luvio, params) {
|
|
671
|
+
return select$e();
|
|
672
|
+
}
|
|
673
|
+
function keyBuilder$7(luvio, params) {
|
|
674
|
+
return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
|
|
675
|
+
}
|
|
676
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
677
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
678
|
+
}
|
|
679
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
680
|
+
const { body } = response;
|
|
681
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
682
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
683
|
+
const snapshot = luvio.storeLookup({
|
|
684
|
+
recordId: key,
|
|
685
|
+
node: select$d(),
|
|
686
|
+
variables: {},
|
|
687
|
+
}, snapshotRefresh);
|
|
688
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
689
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
690
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
deepFreeze(snapshot.data);
|
|
694
|
+
return snapshot;
|
|
695
|
+
}
|
|
696
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
697
|
+
const key = keyBuilder$7(luvio, params);
|
|
698
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
699
|
+
const storeMetadataParams = {
|
|
700
|
+
ttl: TTL$3,
|
|
701
|
+
namespace: keyPrefix,
|
|
702
|
+
version: VERSION$a,
|
|
703
|
+
representationName: RepresentationType$3
|
|
704
|
+
};
|
|
705
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
706
|
+
return errorSnapshot;
|
|
707
|
+
}
|
|
708
|
+
function createResourceRequest$3(config) {
|
|
709
|
+
const headers = {};
|
|
710
|
+
return {
|
|
711
|
+
baseUri: '/services/data/v62.0',
|
|
712
|
+
basePath: '/sharing/groups-for-user/' + config.urlParams.userId + '/' + config.urlParams.groupType + '',
|
|
713
|
+
method: 'get',
|
|
714
|
+
body: null,
|
|
715
|
+
urlParams: config.urlParams,
|
|
716
|
+
queryParams: config.queryParams,
|
|
717
|
+
headers,
|
|
718
|
+
priority: 'normal',
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
const adapterName$3 = 'getGroupsForUser';
|
|
723
|
+
const getGroupsForUser_ConfigPropertyMetadata = [
|
|
724
|
+
generateParamConfigMetadata('groupType', true, 0 /* UrlParameter */, 0 /* String */),
|
|
725
|
+
generateParamConfigMetadata('userId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
726
|
+
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
727
|
+
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
728
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
729
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
730
|
+
];
|
|
731
|
+
const getGroupsForUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getGroupsForUser_ConfigPropertyMetadata);
|
|
732
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(getGroupsForUser_ConfigPropertyMetadata);
|
|
733
|
+
function keyBuilder$6(luvio, config) {
|
|
734
|
+
const resourceParams = createResourceParams$3(config);
|
|
735
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
736
|
+
}
|
|
737
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
738
|
+
const config = {};
|
|
739
|
+
typeCheckConfig$5(untrustedConfig, config, getGroupsForUser_ConfigPropertyMetadata);
|
|
740
|
+
return config;
|
|
741
|
+
}
|
|
742
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
743
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
744
|
+
return null;
|
|
745
|
+
}
|
|
746
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
747
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
748
|
+
}
|
|
749
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
750
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
751
|
+
return null;
|
|
752
|
+
}
|
|
753
|
+
return config;
|
|
754
|
+
}
|
|
755
|
+
function adapterFragment$3(luvio, config) {
|
|
756
|
+
createResourceParams$3(config);
|
|
757
|
+
return select$d();
|
|
758
|
+
}
|
|
759
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
760
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
761
|
+
config,
|
|
762
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
763
|
+
});
|
|
764
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
765
|
+
}
|
|
766
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
767
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
768
|
+
config,
|
|
769
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
770
|
+
});
|
|
771
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
772
|
+
}
|
|
773
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
774
|
+
const resourceParams = createResourceParams$3(config);
|
|
775
|
+
const request = createResourceRequest$3(resourceParams);
|
|
776
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
777
|
+
.then((response) => {
|
|
778
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
779
|
+
const cache = new StoreKeyMap();
|
|
780
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
781
|
+
return cache;
|
|
782
|
+
});
|
|
783
|
+
}, (response) => {
|
|
784
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
788
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
789
|
+
}
|
|
790
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
791
|
+
const { luvio, config } = context;
|
|
792
|
+
const selector = {
|
|
793
|
+
recordId: keyBuilder$6(luvio, config),
|
|
794
|
+
node: adapterFragment$3(luvio, config),
|
|
795
|
+
variables: {},
|
|
796
|
+
};
|
|
797
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
798
|
+
config,
|
|
799
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
800
|
+
});
|
|
801
|
+
return cacheSnapshot;
|
|
802
|
+
}
|
|
803
|
+
const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsForUser(untrustedConfig, requestContext) {
|
|
804
|
+
const config = validateAdapterConfig$3(untrustedConfig, getGroupsForUser_ConfigPropertyNames);
|
|
805
|
+
// Invalid or incomplete config
|
|
806
|
+
if (config === null) {
|
|
807
|
+
return null;
|
|
808
|
+
}
|
|
809
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
810
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
const VERSION$9 = "6abb89d83ef158efe13c19652a019d40";
|
|
814
|
+
function validate$9(obj, path = 'UserMembersInPublicGroupRepresentation') {
|
|
815
|
+
const v_error = (() => {
|
|
816
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
817
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
818
|
+
}
|
|
819
|
+
const obj_alias = obj.alias;
|
|
820
|
+
const path_alias = path + '.alias';
|
|
821
|
+
if (typeof obj_alias !== 'string') {
|
|
822
|
+
return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
823
|
+
}
|
|
824
|
+
const obj_name = obj.name;
|
|
825
|
+
const path_name = path + '.name';
|
|
826
|
+
if (typeof obj_name !== 'string') {
|
|
827
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
828
|
+
}
|
|
829
|
+
const obj_profile = obj.profile;
|
|
830
|
+
const path_profile = path + '.profile';
|
|
831
|
+
if (typeof obj_profile !== 'string') {
|
|
832
|
+
return new TypeError('Expected "string" but received "' + typeof obj_profile + '" (at "' + path_profile + '")');
|
|
833
|
+
}
|
|
834
|
+
const obj_role = obj.role;
|
|
835
|
+
const path_role = path + '.role';
|
|
836
|
+
if (typeof obj_role !== 'string') {
|
|
837
|
+
return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
|
|
838
|
+
}
|
|
839
|
+
const obj_status = obj.status;
|
|
840
|
+
const path_status = path + '.status';
|
|
841
|
+
if (typeof obj_status !== 'boolean') {
|
|
842
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
843
|
+
}
|
|
844
|
+
const obj_username = obj.username;
|
|
845
|
+
const path_username = path + '.username';
|
|
846
|
+
if (typeof obj_username !== 'string') {
|
|
847
|
+
return new TypeError('Expected "string" but received "' + typeof obj_username + '" (at "' + path_username + '")');
|
|
848
|
+
}
|
|
849
|
+
})();
|
|
850
|
+
return v_error === undefined ? null : v_error;
|
|
851
|
+
}
|
|
852
|
+
const select$c = function UserMembersInPublicGroupRepresentationSelect() {
|
|
853
|
+
return {
|
|
854
|
+
kind: 'Fragment',
|
|
855
|
+
version: VERSION$9,
|
|
856
|
+
private: [],
|
|
857
|
+
selections: [
|
|
858
|
+
{
|
|
859
|
+
name: 'alias',
|
|
860
|
+
kind: 'Scalar'
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
name: 'name',
|
|
864
|
+
kind: 'Scalar'
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
name: 'profile',
|
|
868
|
+
kind: 'Scalar'
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
name: 'role',
|
|
872
|
+
kind: 'Scalar'
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
name: 'status',
|
|
876
|
+
kind: 'Scalar'
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
name: 'username',
|
|
880
|
+
kind: 'Scalar'
|
|
881
|
+
}
|
|
882
|
+
]
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
function equals$9(existing, incoming) {
|
|
886
|
+
const existing_status = existing.status;
|
|
887
|
+
const incoming_status = incoming.status;
|
|
888
|
+
if (!(existing_status === incoming_status)) {
|
|
889
|
+
return false;
|
|
890
|
+
}
|
|
891
|
+
const existing_alias = existing.alias;
|
|
892
|
+
const incoming_alias = incoming.alias;
|
|
893
|
+
if (!(existing_alias === incoming_alias)) {
|
|
894
|
+
return false;
|
|
895
|
+
}
|
|
896
|
+
const existing_name = existing.name;
|
|
897
|
+
const incoming_name = incoming.name;
|
|
898
|
+
if (!(existing_name === incoming_name)) {
|
|
899
|
+
return false;
|
|
900
|
+
}
|
|
901
|
+
const existing_profile = existing.profile;
|
|
902
|
+
const incoming_profile = incoming.profile;
|
|
903
|
+
if (!(existing_profile === incoming_profile)) {
|
|
904
|
+
return false;
|
|
905
|
+
}
|
|
906
|
+
const existing_role = existing.role;
|
|
907
|
+
const incoming_role = incoming.role;
|
|
908
|
+
if (!(existing_role === incoming_role)) {
|
|
909
|
+
return false;
|
|
910
|
+
}
|
|
911
|
+
const existing_username = existing.username;
|
|
912
|
+
const incoming_username = incoming.username;
|
|
913
|
+
if (!(existing_username === incoming_username)) {
|
|
914
|
+
return false;
|
|
915
|
+
}
|
|
916
|
+
return true;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
const TTL$2 = 300;
|
|
920
|
+
const VERSION$8 = "5959939d2b282a69110b986258cb3620";
|
|
921
|
+
function validate$8(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
|
|
922
|
+
const v_error = (() => {
|
|
923
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
924
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
925
|
+
}
|
|
926
|
+
const obj_listUsers = obj.listUsers;
|
|
927
|
+
const path_listUsers = path + '.listUsers';
|
|
928
|
+
if (!ArrayIsArray(obj_listUsers)) {
|
|
929
|
+
return new TypeError('Expected "array" but received "' + typeof obj_listUsers + '" (at "' + path_listUsers + '")');
|
|
930
|
+
}
|
|
931
|
+
for (let i = 0; i < obj_listUsers.length; i++) {
|
|
932
|
+
const obj_listUsers_item = obj_listUsers[i];
|
|
933
|
+
const path_listUsers_item = path_listUsers + '[' + i + ']';
|
|
934
|
+
const referencepath_listUsers_itemValidationError = validate$9(obj_listUsers_item, path_listUsers_item);
|
|
935
|
+
if (referencepath_listUsers_itemValidationError !== null) {
|
|
936
|
+
let message = 'Object doesn\'t match UserMembersInPublicGroupRepresentation (at "' + path_listUsers_item + '")\n';
|
|
937
|
+
message += referencepath_listUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
938
|
+
return new TypeError(message);
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
})();
|
|
942
|
+
return v_error === undefined ? null : v_error;
|
|
943
|
+
}
|
|
944
|
+
const RepresentationType$2 = 'PublicGroupMembershipDetailsRepresentation';
|
|
945
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
946
|
+
return input;
|
|
947
|
+
}
|
|
948
|
+
const select$b = function PublicGroupMembershipDetailsRepresentationSelect() {
|
|
949
|
+
const { selections: UserMembersInPublicGroupRepresentation__selections, opaque: UserMembersInPublicGroupRepresentation__opaque, } = select$c();
|
|
950
|
+
return {
|
|
951
|
+
kind: 'Fragment',
|
|
952
|
+
version: VERSION$8,
|
|
953
|
+
private: [],
|
|
954
|
+
selections: [
|
|
955
|
+
{
|
|
956
|
+
name: 'listUsers',
|
|
957
|
+
kind: 'Object',
|
|
958
|
+
plural: true,
|
|
959
|
+
selections: UserMembersInPublicGroupRepresentation__selections
|
|
960
|
+
}
|
|
961
|
+
]
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
function equals$8(existing, incoming) {
|
|
965
|
+
const existing_listUsers = existing.listUsers;
|
|
966
|
+
const incoming_listUsers = incoming.listUsers;
|
|
967
|
+
const equals_listUsers_items = equalsArray(existing_listUsers, incoming_listUsers, (existing_listUsers_item, incoming_listUsers_item) => {
|
|
968
|
+
if (!(equals$9(existing_listUsers_item, incoming_listUsers_item))) {
|
|
969
|
+
return false;
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
if (equals_listUsers_items === false) {
|
|
973
|
+
return false;
|
|
974
|
+
}
|
|
975
|
+
return true;
|
|
976
|
+
}
|
|
977
|
+
const ingest$2 = function PublicGroupMembershipDetailsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
649
978
|
if (process.env.NODE_ENV !== 'production') {
|
|
650
979
|
const validateError = validate$8(input);
|
|
651
980
|
if (validateError !== null) {
|
|
@@ -671,7 +1000,7 @@ function select$a(luvio, params) {
|
|
|
671
1000
|
return select$b();
|
|
672
1001
|
}
|
|
673
1002
|
function keyBuilder$5(luvio, params) {
|
|
674
|
-
return keyPrefix + '::
|
|
1003
|
+
return keyPrefix + '::PublicGroupMembershipDetailsRepresentation:(' + 'filterCriteria:' + params.body.filterCriteria + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'orderBy:' + params.body.orderBy + '::' + 'orderType:' + params.body.orderType + ')';
|
|
675
1004
|
}
|
|
676
1005
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
677
1006
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
@@ -708,35 +1037,37 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
708
1037
|
function createResourceRequest$2(config) {
|
|
709
1038
|
const headers = {};
|
|
710
1039
|
return {
|
|
711
|
-
baseUri: '/services/data/
|
|
712
|
-
basePath: '/sharing/
|
|
713
|
-
method: '
|
|
714
|
-
body:
|
|
715
|
-
urlParams:
|
|
716
|
-
queryParams:
|
|
1040
|
+
baseUri: '/services/data/v62.0',
|
|
1041
|
+
basePath: '/sharing/publicGroupsDetails',
|
|
1042
|
+
method: 'post',
|
|
1043
|
+
body: config.body,
|
|
1044
|
+
urlParams: {},
|
|
1045
|
+
queryParams: {},
|
|
717
1046
|
headers,
|
|
718
1047
|
priority: 'normal',
|
|
719
1048
|
};
|
|
720
1049
|
}
|
|
721
1050
|
|
|
722
|
-
const adapterName$2 = '
|
|
723
|
-
const
|
|
724
|
-
generateParamConfigMetadata('
|
|
725
|
-
generateParamConfigMetadata('
|
|
726
|
-
generateParamConfigMetadata('limit',
|
|
727
|
-
generateParamConfigMetadata('offset',
|
|
728
|
-
generateParamConfigMetadata('
|
|
729
|
-
generateParamConfigMetadata('
|
|
1051
|
+
const adapterName$2 = 'getPublicGroupMembershipDetails';
|
|
1052
|
+
const getPublicGroupMembershipDetails_ConfigPropertyMetadata = [
|
|
1053
|
+
generateParamConfigMetadata('filterCriteria', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1054
|
+
generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
|
|
1055
|
+
generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
|
|
1056
|
+
generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
|
|
1057
|
+
generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
|
|
1058
|
+
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
730
1059
|
];
|
|
731
|
-
const
|
|
732
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
1060
|
+
const getPublicGroupMembershipDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPublicGroupMembershipDetails_ConfigPropertyMetadata);
|
|
1061
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getPublicGroupMembershipDetails_ConfigPropertyMetadata);
|
|
733
1062
|
function keyBuilder$4(luvio, config) {
|
|
734
1063
|
const resourceParams = createResourceParams$2(config);
|
|
735
1064
|
return keyBuilder$5(luvio, resourceParams);
|
|
736
1065
|
}
|
|
737
1066
|
function typeCheckConfig$2(untrustedConfig) {
|
|
738
1067
|
const config = {};
|
|
739
|
-
typeCheckConfig$
|
|
1068
|
+
typeCheckConfig$5(untrustedConfig, config, getPublicGroupMembershipDetails_ConfigPropertyMetadata);
|
|
1069
|
+
const untrustedConfig_filterCriteria = untrustedConfig.filterCriteria;
|
|
1070
|
+
config.filterCriteria = untrustedConfig_filterCriteria;
|
|
740
1071
|
return config;
|
|
741
1072
|
}
|
|
742
1073
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -785,7 +1116,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
785
1116
|
});
|
|
786
1117
|
}
|
|
787
1118
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
788
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1119
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
|
|
789
1120
|
}
|
|
790
1121
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
791
1122
|
const { luvio, config } = context;
|
|
@@ -800,8 +1131,8 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
800
1131
|
});
|
|
801
1132
|
return cacheSnapshot;
|
|
802
1133
|
}
|
|
803
|
-
const
|
|
804
|
-
const config = validateAdapterConfig$2(untrustedConfig,
|
|
1134
|
+
const getPublicGroupMembershipDetailsAdapterFactory = (luvio) => function sharing__getPublicGroupMembershipDetails(untrustedConfig, requestContext) {
|
|
1135
|
+
const config = validateAdapterConfig$2(untrustedConfig, getPublicGroupMembershipDetails_ConfigPropertyNames);
|
|
805
1136
|
// Invalid or incomplete config
|
|
806
1137
|
if (config === null) {
|
|
807
1138
|
return null;
|
|
@@ -1463,7 +1794,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
1463
1794
|
function createResourceRequest$1(config) {
|
|
1464
1795
|
const headers = {};
|
|
1465
1796
|
return {
|
|
1466
|
-
baseUri: '/services/data/
|
|
1797
|
+
baseUri: '/services/data/v62.0',
|
|
1467
1798
|
basePath: '/sharing/publicGroupsSummary',
|
|
1468
1799
|
method: 'post',
|
|
1469
1800
|
body: config.body,
|
|
@@ -1485,14 +1816,14 @@ const getPublicGroupShareData_ConfigPropertyMetadata = [
|
|
|
1485
1816
|
generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
|
|
1486
1817
|
];
|
|
1487
1818
|
const getPublicGroupShareData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1488
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
1819
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1489
1820
|
function keyBuilder$2(luvio, config) {
|
|
1490
1821
|
const resourceParams = createResourceParams$1(config);
|
|
1491
1822
|
return keyBuilder$3(luvio, resourceParams);
|
|
1492
1823
|
}
|
|
1493
1824
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1494
1825
|
const config = {};
|
|
1495
|
-
typeCheckConfig$
|
|
1826
|
+
typeCheckConfig$5(untrustedConfig, config, getPublicGroupShareData_ConfigPropertyMetadata);
|
|
1496
1827
|
return config;
|
|
1497
1828
|
}
|
|
1498
1829
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1541,7 +1872,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1541
1872
|
});
|
|
1542
1873
|
}
|
|
1543
1874
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1544
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1875
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, 'get', false);
|
|
1545
1876
|
}
|
|
1546
1877
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1547
1878
|
const { luvio, config } = context;
|
|
@@ -1765,7 +2096,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
1765
2096
|
function createResourceRequest(config) {
|
|
1766
2097
|
const headers = {};
|
|
1767
2098
|
return {
|
|
1768
|
-
baseUri: '/services/data/
|
|
2099
|
+
baseUri: '/services/data/v62.0',
|
|
1769
2100
|
basePath: '/sharing/userPermissions',
|
|
1770
2101
|
method: 'get',
|
|
1771
2102
|
body: null,
|
|
@@ -1781,14 +2112,14 @@ const getUserPermissions_ConfigPropertyMetadata = [
|
|
|
1781
2112
|
generateParamConfigMetadata('recordId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
1782
2113
|
];
|
|
1783
2114
|
const getUserPermissions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getUserPermissions_ConfigPropertyMetadata);
|
|
1784
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
2115
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$5(getUserPermissions_ConfigPropertyMetadata);
|
|
1785
2116
|
function keyBuilder(luvio, config) {
|
|
1786
2117
|
const resourceParams = createResourceParams(config);
|
|
1787
2118
|
return keyBuilder$1(luvio, resourceParams);
|
|
1788
2119
|
}
|
|
1789
2120
|
function typeCheckConfig(untrustedConfig) {
|
|
1790
2121
|
const config = {};
|
|
1791
|
-
typeCheckConfig$
|
|
2122
|
+
typeCheckConfig$5(untrustedConfig, config, getUserPermissions_ConfigPropertyMetadata);
|
|
1792
2123
|
return config;
|
|
1793
2124
|
}
|
|
1794
2125
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1837,7 +2168,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1837
2168
|
});
|
|
1838
2169
|
}
|
|
1839
2170
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1840
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2171
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
1841
2172
|
}
|
|
1842
2173
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1843
2174
|
const { luvio, config } = context;
|
|
@@ -1864,16 +2195,23 @@ const getUserPermissionsAdapterFactory = (luvio) => function sharing__getUserPer
|
|
|
1864
2195
|
|
|
1865
2196
|
let getAllSobjects;
|
|
1866
2197
|
let getGroupsForUser;
|
|
2198
|
+
let getPublicGroupMembershipDetails;
|
|
1867
2199
|
let getPublicGroupShareData;
|
|
1868
2200
|
let getUserPermissions;
|
|
1869
2201
|
// Imperative GET Adapters
|
|
1870
2202
|
let getAllSobjects_imperative;
|
|
1871
2203
|
let getGroupsForUser_imperative;
|
|
2204
|
+
let getPublicGroupMembershipDetails_imperative;
|
|
1872
2205
|
let getPublicGroupShareData_imperative;
|
|
1873
2206
|
let getUserPermissions_imperative;
|
|
1874
2207
|
// Adapter Metadata
|
|
1875
2208
|
const getAllSobjectsMetadata = { apiFamily: 'sharing', name: 'getAllSobjects', ttl: 900000 };
|
|
1876
2209
|
const getGroupsForUserMetadata = { apiFamily: 'sharing', name: 'getGroupsForUser', ttl: 300 };
|
|
2210
|
+
const getPublicGroupMembershipDetailsMetadata = {
|
|
2211
|
+
apiFamily: 'sharing',
|
|
2212
|
+
name: 'getPublicGroupMembershipDetails',
|
|
2213
|
+
ttl: 300,
|
|
2214
|
+
};
|
|
1877
2215
|
const getPublicGroupShareDataMetadata = {
|
|
1878
2216
|
apiFamily: 'sharing',
|
|
1879
2217
|
name: 'getPublicGroupShareData',
|
|
@@ -1885,16 +2223,19 @@ function bindExportsTo(luvio) {
|
|
|
1885
2223
|
// LDS Adapters
|
|
1886
2224
|
const getAllSobjects_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllSobjects', getAllSobjectsAdapterFactory), getAllSobjectsMetadata);
|
|
1887
2225
|
const getGroupsForUser_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGroupsForUser', getGroupsForUserAdapterFactory), getGroupsForUserMetadata);
|
|
2226
|
+
const getPublicGroupMembershipDetails_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPublicGroupMembershipDetails', getPublicGroupMembershipDetailsAdapterFactory), getPublicGroupMembershipDetailsMetadata);
|
|
1888
2227
|
const getPublicGroupShareData_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPublicGroupShareData', getPublicGroupShareDataAdapterFactory), getPublicGroupShareDataMetadata);
|
|
1889
2228
|
const getUserPermissions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getUserPermissions', getUserPermissionsAdapterFactory), getUserPermissionsMetadata);
|
|
1890
2229
|
return {
|
|
1891
2230
|
getAllSobjects: createWireAdapterConstructor(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
|
|
1892
2231
|
getGroupsForUser: createWireAdapterConstructor(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
|
|
2232
|
+
getPublicGroupMembershipDetails: createWireAdapterConstructor(luvio, getPublicGroupMembershipDetails_ldsAdapter, getPublicGroupMembershipDetailsMetadata),
|
|
1893
2233
|
getPublicGroupShareData: createWireAdapterConstructor(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
|
|
1894
2234
|
getUserPermissions: createWireAdapterConstructor(luvio, getUserPermissions_ldsAdapter, getUserPermissionsMetadata),
|
|
1895
2235
|
// Imperative GET Adapters
|
|
1896
2236
|
getAllSobjects_imperative: createImperativeAdapter(luvio, getAllSobjects_ldsAdapter, getAllSobjectsMetadata),
|
|
1897
2237
|
getGroupsForUser_imperative: createImperativeAdapter(luvio, getGroupsForUser_ldsAdapter, getGroupsForUserMetadata),
|
|
2238
|
+
getPublicGroupMembershipDetails_imperative: createImperativeAdapter(luvio, getPublicGroupMembershipDetails_ldsAdapter, getPublicGroupMembershipDetailsMetadata),
|
|
1898
2239
|
getPublicGroupShareData_imperative: createImperativeAdapter(luvio, getPublicGroupShareData_ldsAdapter, getPublicGroupShareDataMetadata),
|
|
1899
2240
|
getUserPermissions_imperative: createImperativeAdapter(luvio, getUserPermissions_ldsAdapter, getUserPermissionsMetadata),
|
|
1900
2241
|
// Notify Update Availables
|
|
@@ -1904,14 +2245,16 @@ withDefaultLuvio((luvio) => {
|
|
|
1904
2245
|
({
|
|
1905
2246
|
getAllSobjects,
|
|
1906
2247
|
getGroupsForUser,
|
|
2248
|
+
getPublicGroupMembershipDetails,
|
|
1907
2249
|
getPublicGroupShareData,
|
|
1908
2250
|
getUserPermissions,
|
|
1909
2251
|
getAllSobjects_imperative,
|
|
1910
2252
|
getGroupsForUser_imperative,
|
|
2253
|
+
getPublicGroupMembershipDetails_imperative,
|
|
1911
2254
|
getPublicGroupShareData_imperative,
|
|
1912
2255
|
getUserPermissions_imperative,
|
|
1913
2256
|
} = bindExportsTo(luvio));
|
|
1914
2257
|
});
|
|
1915
2258
|
|
|
1916
|
-
export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
|
|
1917
|
-
// version: 1.
|
|
2259
|
+
export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupMembershipDetails, getPublicGroupMembershipDetails_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
|
|
2260
|
+
// version: 1.291.0-79b8ea231
|