@salesforce/lds-adapters-platform-sharing 1.292.0 → 1.294.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 +276 -65
- package/dist/es/es2018/types/src/generated/types/PublicGroupMembershipDetailsRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/RolesInGroupRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/UserMembersInPublicGroupRepresentation.d.ts +18 -12
- package/package.json +3 -3
- package/sfdc/index.js +297 -86
- package/src/raml/api.raml +50 -9
|
@@ -91,8 +91,8 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const VERSION$
|
|
95
|
-
function validate$
|
|
94
|
+
const VERSION$f = "7d75e40a9fde9f60ae02b6dde36257ce";
|
|
95
|
+
function validate$f(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 + '")');
|
|
@@ -120,10 +120,10 @@ function validate$e(obj, path = 'PublicGroupRepresentation') {
|
|
|
120
120
|
})();
|
|
121
121
|
return v_error === undefined ? null : v_error;
|
|
122
122
|
}
|
|
123
|
-
const select$
|
|
123
|
+
const select$k = function PublicGroupRepresentationSelect() {
|
|
124
124
|
return {
|
|
125
125
|
kind: 'Fragment',
|
|
126
|
-
version: VERSION$
|
|
126
|
+
version: VERSION$f,
|
|
127
127
|
private: [],
|
|
128
128
|
selections: [
|
|
129
129
|
{
|
|
@@ -145,7 +145,7 @@ const select$j = function PublicGroupRepresentationSelect() {
|
|
|
145
145
|
]
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
function equals$
|
|
148
|
+
function equals$f(existing, incoming) {
|
|
149
149
|
const existing_includeBosses = existing.includeBosses;
|
|
150
150
|
const incoming_includeBosses = incoming.includeBosses;
|
|
151
151
|
if (!(existing_includeBosses === incoming_includeBosses)) {
|
|
@@ -169,8 +169,8 @@ function equals$e(existing, incoming) {
|
|
|
169
169
|
return true;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
const VERSION$
|
|
173
|
-
function validate$
|
|
172
|
+
const VERSION$e = "89ae3fce0ad09282e80bd77a9c483003";
|
|
173
|
+
function validate$e(obj, path = 'QueueRepresentation') {
|
|
174
174
|
const v_error = (() => {
|
|
175
175
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
176
176
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -193,10 +193,10 @@ function validate$d(obj, path = 'QueueRepresentation') {
|
|
|
193
193
|
})();
|
|
194
194
|
return v_error === undefined ? null : v_error;
|
|
195
195
|
}
|
|
196
|
-
const select$
|
|
196
|
+
const select$j = function QueueRepresentationSelect() {
|
|
197
197
|
return {
|
|
198
198
|
kind: 'Fragment',
|
|
199
|
-
version: VERSION$
|
|
199
|
+
version: VERSION$e,
|
|
200
200
|
private: [],
|
|
201
201
|
selections: [
|
|
202
202
|
{
|
|
@@ -214,7 +214,7 @@ const select$i = function QueueRepresentationSelect() {
|
|
|
214
214
|
]
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
|
-
function equals$
|
|
217
|
+
function equals$e(existing, incoming) {
|
|
218
218
|
const existing_developerName = existing.developerName;
|
|
219
219
|
const incoming_developerName = incoming.developerName;
|
|
220
220
|
if (!(existing_developerName === incoming_developerName)) {
|
|
@@ -234,8 +234,8 @@ function equals$d(existing, incoming) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
const TTL$4 = 300;
|
|
237
|
-
const VERSION$
|
|
238
|
-
function validate$
|
|
237
|
+
const VERSION$d = "3659c4a4f46957a3a2b5cb2d2383180d";
|
|
238
|
+
function validate$d(obj, path = 'GroupCollectionRepresentation') {
|
|
239
239
|
const v_error = (() => {
|
|
240
240
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
241
241
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -248,7 +248,7 @@ function validate$c(obj, path = 'GroupCollectionRepresentation') {
|
|
|
248
248
|
for (let i = 0; i < obj_publicGroupRepresentations.length; i++) {
|
|
249
249
|
const obj_publicGroupRepresentations_item = obj_publicGroupRepresentations[i];
|
|
250
250
|
const path_publicGroupRepresentations_item = path_publicGroupRepresentations + '[' + i + ']';
|
|
251
|
-
const referencepath_publicGroupRepresentations_itemValidationError = validate$
|
|
251
|
+
const referencepath_publicGroupRepresentations_itemValidationError = validate$f(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
|
|
252
252
|
if (referencepath_publicGroupRepresentations_itemValidationError !== null) {
|
|
253
253
|
let message = 'Object doesn\'t match PublicGroupRepresentation (at "' + path_publicGroupRepresentations_item + '")\n';
|
|
254
254
|
message += referencepath_publicGroupRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -263,7 +263,7 @@ function validate$c(obj, path = 'GroupCollectionRepresentation') {
|
|
|
263
263
|
for (let i = 0; i < obj_queueRepresentations.length; i++) {
|
|
264
264
|
const obj_queueRepresentations_item = obj_queueRepresentations[i];
|
|
265
265
|
const path_queueRepresentations_item = path_queueRepresentations + '[' + i + ']';
|
|
266
|
-
const referencepath_queueRepresentations_itemValidationError = validate$
|
|
266
|
+
const referencepath_queueRepresentations_itemValidationError = validate$e(obj_queueRepresentations_item, path_queueRepresentations_item);
|
|
267
267
|
if (referencepath_queueRepresentations_itemValidationError !== null) {
|
|
268
268
|
let message = 'Object doesn\'t match QueueRepresentation (at "' + path_queueRepresentations_item + '")\n';
|
|
269
269
|
message += referencepath_queueRepresentations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -277,12 +277,12 @@ const RepresentationType$4 = 'GroupCollectionRepresentation';
|
|
|
277
277
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
278
278
|
return input;
|
|
279
279
|
}
|
|
280
|
-
const select$
|
|
281
|
-
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$
|
|
282
|
-
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$
|
|
280
|
+
const select$i = function GroupCollectionRepresentationSelect() {
|
|
281
|
+
const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$k();
|
|
282
|
+
const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$j();
|
|
283
283
|
return {
|
|
284
284
|
kind: 'Fragment',
|
|
285
|
-
version: VERSION$
|
|
285
|
+
version: VERSION$d,
|
|
286
286
|
private: [],
|
|
287
287
|
selections: [
|
|
288
288
|
{
|
|
@@ -300,11 +300,11 @@ const select$h = function GroupCollectionRepresentationSelect() {
|
|
|
300
300
|
]
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
|
-
function equals$
|
|
303
|
+
function equals$d(existing, incoming) {
|
|
304
304
|
const existing_publicGroupRepresentations = existing.publicGroupRepresentations;
|
|
305
305
|
const incoming_publicGroupRepresentations = incoming.publicGroupRepresentations;
|
|
306
306
|
const equals_publicGroupRepresentations_items = equalsArray(existing_publicGroupRepresentations, incoming_publicGroupRepresentations, (existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item) => {
|
|
307
|
-
if (!(equals$
|
|
307
|
+
if (!(equals$f(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
|
|
308
308
|
return false;
|
|
309
309
|
}
|
|
310
310
|
});
|
|
@@ -314,7 +314,7 @@ function equals$c(existing, incoming) {
|
|
|
314
314
|
const existing_queueRepresentations = existing.queueRepresentations;
|
|
315
315
|
const incoming_queueRepresentations = incoming.queueRepresentations;
|
|
316
316
|
const equals_queueRepresentations_items = equalsArray(existing_queueRepresentations, incoming_queueRepresentations, (existing_queueRepresentations_item, incoming_queueRepresentations_item) => {
|
|
317
|
-
if (!(equals$
|
|
317
|
+
if (!(equals$e(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
|
|
318
318
|
return false;
|
|
319
319
|
}
|
|
320
320
|
});
|
|
@@ -325,14 +325,14 @@ function equals$c(existing, incoming) {
|
|
|
325
325
|
}
|
|
326
326
|
const ingest$4 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
327
327
|
if (process.env.NODE_ENV !== 'production') {
|
|
328
|
-
const validateError = validate$
|
|
328
|
+
const validateError = validate$d(input);
|
|
329
329
|
if (validateError !== null) {
|
|
330
330
|
throw validateError;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
const key = path.fullPath;
|
|
334
334
|
const ttlToUse = TTL$4;
|
|
335
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "sharing", VERSION$
|
|
335
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "sharing", VERSION$d, RepresentationType$4, equals$d);
|
|
336
336
|
return createLink(key);
|
|
337
337
|
};
|
|
338
338
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -345,8 +345,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
function select$
|
|
349
|
-
return select$
|
|
348
|
+
function select$h(luvio, params) {
|
|
349
|
+
return select$i();
|
|
350
350
|
}
|
|
351
351
|
function keyBuilder$9(luvio, params) {
|
|
352
352
|
return keyPrefix + '::GroupCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'groupType:' + params.urlParams.groupType + ',' + 'userId:' + params.urlParams.userId + ')';
|
|
@@ -360,7 +360,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
360
360
|
luvio.storeIngest(key, ingest$4, body);
|
|
361
361
|
const snapshot = luvio.storeLookup({
|
|
362
362
|
recordId: key,
|
|
363
|
-
node: select$
|
|
363
|
+
node: select$h(),
|
|
364
364
|
variables: {},
|
|
365
365
|
}, snapshotRefresh);
|
|
366
366
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -377,7 +377,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
377
377
|
const storeMetadataParams = {
|
|
378
378
|
ttl: TTL$4,
|
|
379
379
|
namespace: keyPrefix,
|
|
380
|
-
version: VERSION$
|
|
380
|
+
version: VERSION$d,
|
|
381
381
|
representationName: RepresentationType$4
|
|
382
382
|
};
|
|
383
383
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -432,7 +432,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
432
432
|
}
|
|
433
433
|
function adapterFragment$4(luvio, config) {
|
|
434
434
|
createResourceParams$4(config);
|
|
435
|
-
return select$
|
|
435
|
+
return select$h();
|
|
436
436
|
}
|
|
437
437
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
438
438
|
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
@@ -488,7 +488,127 @@ const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsFor
|
|
|
488
488
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
489
489
|
};
|
|
490
490
|
|
|
491
|
-
const VERSION$
|
|
491
|
+
const VERSION$c = "23a331717bb19992d3c37b818fc7008a";
|
|
492
|
+
function validate$c(obj, path = 'RolesInGroupRepresentation') {
|
|
493
|
+
const v_error = (() => {
|
|
494
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
495
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
496
|
+
}
|
|
497
|
+
const obj_dataId = obj.dataId;
|
|
498
|
+
const path_dataId = path + '.dataId';
|
|
499
|
+
if (typeof obj_dataId !== 'string') {
|
|
500
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataId + '" (at "' + path_dataId + '")');
|
|
501
|
+
}
|
|
502
|
+
const obj_groupType = obj.groupType;
|
|
503
|
+
const path_groupType = path + '.groupType';
|
|
504
|
+
if (typeof obj_groupType !== 'string') {
|
|
505
|
+
return new TypeError('Expected "string" but received "' + typeof obj_groupType + '" (at "' + path_groupType + '")');
|
|
506
|
+
}
|
|
507
|
+
const obj_roleName = obj.roleName;
|
|
508
|
+
const path_roleName = path + '.roleName';
|
|
509
|
+
if (typeof obj_roleName !== 'string') {
|
|
510
|
+
return new TypeError('Expected "string" but received "' + typeof obj_roleName + '" (at "' + path_roleName + '")');
|
|
511
|
+
}
|
|
512
|
+
const obj_roleParentDevName = obj.roleParentDevName;
|
|
513
|
+
const path_roleParentDevName = path + '.roleParentDevName';
|
|
514
|
+
if (typeof obj_roleParentDevName !== 'string') {
|
|
515
|
+
return new TypeError('Expected "string" but received "' + typeof obj_roleParentDevName + '" (at "' + path_roleParentDevName + '")');
|
|
516
|
+
}
|
|
517
|
+
const obj_roleParentLabel = obj.roleParentLabel;
|
|
518
|
+
const path_roleParentLabel = path + '.roleParentLabel';
|
|
519
|
+
if (typeof obj_roleParentLabel !== 'string') {
|
|
520
|
+
return new TypeError('Expected "string" but received "' + typeof obj_roleParentLabel + '" (at "' + path_roleParentLabel + '")');
|
|
521
|
+
}
|
|
522
|
+
const obj_roleUpdatedBy = obj.roleUpdatedBy;
|
|
523
|
+
const path_roleUpdatedBy = path + '.roleUpdatedBy';
|
|
524
|
+
if (typeof obj_roleUpdatedBy !== 'string') {
|
|
525
|
+
return new TypeError('Expected "string" but received "' + typeof obj_roleUpdatedBy + '" (at "' + path_roleUpdatedBy + '")');
|
|
526
|
+
}
|
|
527
|
+
const obj_roleUpdatedOn = obj.roleUpdatedOn;
|
|
528
|
+
const path_roleUpdatedOn = path + '.roleUpdatedOn';
|
|
529
|
+
if (typeof obj_roleUpdatedOn !== 'string') {
|
|
530
|
+
return new TypeError('Expected "string" but received "' + typeof obj_roleUpdatedOn + '" (at "' + path_roleUpdatedOn + '")');
|
|
531
|
+
}
|
|
532
|
+
})();
|
|
533
|
+
return v_error === undefined ? null : v_error;
|
|
534
|
+
}
|
|
535
|
+
const select$g = function RolesInGroupRepresentationSelect() {
|
|
536
|
+
return {
|
|
537
|
+
kind: 'Fragment',
|
|
538
|
+
version: VERSION$c,
|
|
539
|
+
private: [],
|
|
540
|
+
selections: [
|
|
541
|
+
{
|
|
542
|
+
name: 'dataId',
|
|
543
|
+
kind: 'Scalar'
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
name: 'groupType',
|
|
547
|
+
kind: 'Scalar'
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
name: 'roleName',
|
|
551
|
+
kind: 'Scalar'
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
name: 'roleParentDevName',
|
|
555
|
+
kind: 'Scalar'
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
name: 'roleParentLabel',
|
|
559
|
+
kind: 'Scalar'
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
name: 'roleUpdatedBy',
|
|
563
|
+
kind: 'Scalar'
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
name: 'roleUpdatedOn',
|
|
567
|
+
kind: 'Scalar'
|
|
568
|
+
}
|
|
569
|
+
]
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
function equals$c(existing, incoming) {
|
|
573
|
+
const existing_dataId = existing.dataId;
|
|
574
|
+
const incoming_dataId = incoming.dataId;
|
|
575
|
+
if (!(existing_dataId === incoming_dataId)) {
|
|
576
|
+
return false;
|
|
577
|
+
}
|
|
578
|
+
const existing_groupType = existing.groupType;
|
|
579
|
+
const incoming_groupType = incoming.groupType;
|
|
580
|
+
if (!(existing_groupType === incoming_groupType)) {
|
|
581
|
+
return false;
|
|
582
|
+
}
|
|
583
|
+
const existing_roleName = existing.roleName;
|
|
584
|
+
const incoming_roleName = incoming.roleName;
|
|
585
|
+
if (!(existing_roleName === incoming_roleName)) {
|
|
586
|
+
return false;
|
|
587
|
+
}
|
|
588
|
+
const existing_roleParentDevName = existing.roleParentDevName;
|
|
589
|
+
const incoming_roleParentDevName = incoming.roleParentDevName;
|
|
590
|
+
if (!(existing_roleParentDevName === incoming_roleParentDevName)) {
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
593
|
+
const existing_roleParentLabel = existing.roleParentLabel;
|
|
594
|
+
const incoming_roleParentLabel = incoming.roleParentLabel;
|
|
595
|
+
if (!(existing_roleParentLabel === incoming_roleParentLabel)) {
|
|
596
|
+
return false;
|
|
597
|
+
}
|
|
598
|
+
const existing_roleUpdatedBy = existing.roleUpdatedBy;
|
|
599
|
+
const incoming_roleUpdatedBy = incoming.roleUpdatedBy;
|
|
600
|
+
if (!(existing_roleUpdatedBy === incoming_roleUpdatedBy)) {
|
|
601
|
+
return false;
|
|
602
|
+
}
|
|
603
|
+
const existing_roleUpdatedOn = existing.roleUpdatedOn;
|
|
604
|
+
const incoming_roleUpdatedOn = incoming.roleUpdatedOn;
|
|
605
|
+
if (!(existing_roleUpdatedOn === incoming_roleUpdatedOn)) {
|
|
606
|
+
return false;
|
|
607
|
+
}
|
|
608
|
+
return true;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
const VERSION$b = "81212e87b01ada2a285c551aadcec218";
|
|
492
612
|
function validate$b(obj, path = 'UserMembersInPublicGroupRepresentation') {
|
|
493
613
|
const v_error = (() => {
|
|
494
614
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -499,30 +619,40 @@ function validate$b(obj, path = 'UserMembersInPublicGroupRepresentation') {
|
|
|
499
619
|
if (typeof obj_alias !== 'string') {
|
|
500
620
|
return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
501
621
|
}
|
|
502
|
-
const
|
|
503
|
-
const
|
|
504
|
-
if (typeof
|
|
505
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
506
|
-
}
|
|
507
|
-
const obj_profile = obj.profile;
|
|
508
|
-
const path_profile = path + '.profile';
|
|
509
|
-
if (typeof obj_profile !== 'string') {
|
|
510
|
-
return new TypeError('Expected "string" but received "' + typeof obj_profile + '" (at "' + path_profile + '")');
|
|
511
|
-
}
|
|
512
|
-
const obj_role = obj.role;
|
|
513
|
-
const path_role = path + '.role';
|
|
514
|
-
if (typeof obj_role !== 'string') {
|
|
515
|
-
return new TypeError('Expected "string" but received "' + typeof obj_role + '" (at "' + path_role + '")');
|
|
622
|
+
const obj_dataId = obj.dataId;
|
|
623
|
+
const path_dataId = path + '.dataId';
|
|
624
|
+
if (typeof obj_dataId !== 'string') {
|
|
625
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataId + '" (at "' + path_dataId + '")');
|
|
516
626
|
}
|
|
517
627
|
const obj_status = obj.status;
|
|
518
628
|
const path_status = path + '.status';
|
|
519
629
|
if (typeof obj_status !== 'boolean') {
|
|
520
630
|
return new TypeError('Expected "boolean" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
521
631
|
}
|
|
522
|
-
const
|
|
523
|
-
const
|
|
524
|
-
if (typeof
|
|
525
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
632
|
+
const obj_userFullName = obj.userFullName;
|
|
633
|
+
const path_userFullName = path + '.userFullName';
|
|
634
|
+
if (typeof obj_userFullName !== 'string') {
|
|
635
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userFullName + '" (at "' + path_userFullName + '")');
|
|
636
|
+
}
|
|
637
|
+
const obj_userName = obj.userName;
|
|
638
|
+
const path_userName = path + '.userName';
|
|
639
|
+
if (typeof obj_userName !== 'string') {
|
|
640
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userName + '" (at "' + path_userName + '")');
|
|
641
|
+
}
|
|
642
|
+
const obj_userProfile = obj.userProfile;
|
|
643
|
+
const path_userProfile = path + '.userProfile';
|
|
644
|
+
if (typeof obj_userProfile !== 'string') {
|
|
645
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userProfile + '" (at "' + path_userProfile + '")');
|
|
646
|
+
}
|
|
647
|
+
const obj_userRoleName = obj.userRoleName;
|
|
648
|
+
const path_userRoleName = path + '.userRoleName';
|
|
649
|
+
if (typeof obj_userRoleName !== 'string') {
|
|
650
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userRoleName + '" (at "' + path_userRoleName + '")');
|
|
651
|
+
}
|
|
652
|
+
const obj_userType = obj.userType;
|
|
653
|
+
const path_userType = path + '.userType';
|
|
654
|
+
if (typeof obj_userType !== 'string') {
|
|
655
|
+
return new TypeError('Expected "string" but received "' + typeof obj_userType + '" (at "' + path_userType + '")');
|
|
526
656
|
}
|
|
527
657
|
})();
|
|
528
658
|
return v_error === undefined ? null : v_error;
|
|
@@ -538,23 +668,31 @@ const select$f = function UserMembersInPublicGroupRepresentationSelect() {
|
|
|
538
668
|
kind: 'Scalar'
|
|
539
669
|
},
|
|
540
670
|
{
|
|
541
|
-
name: '
|
|
671
|
+
name: 'dataId',
|
|
542
672
|
kind: 'Scalar'
|
|
543
673
|
},
|
|
544
674
|
{
|
|
545
|
-
name: '
|
|
675
|
+
name: 'status',
|
|
546
676
|
kind: 'Scalar'
|
|
547
677
|
},
|
|
548
678
|
{
|
|
549
|
-
name: '
|
|
679
|
+
name: 'userFullName',
|
|
550
680
|
kind: 'Scalar'
|
|
551
681
|
},
|
|
552
682
|
{
|
|
553
|
-
name: '
|
|
683
|
+
name: 'userName',
|
|
554
684
|
kind: 'Scalar'
|
|
555
685
|
},
|
|
556
686
|
{
|
|
557
|
-
name: '
|
|
687
|
+
name: 'userProfile',
|
|
688
|
+
kind: 'Scalar'
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
name: 'userRoleName',
|
|
692
|
+
kind: 'Scalar'
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
name: 'userType',
|
|
558
696
|
kind: 'Scalar'
|
|
559
697
|
}
|
|
560
698
|
]
|
|
@@ -571,36 +709,76 @@ function equals$b(existing, incoming) {
|
|
|
571
709
|
if (!(existing_alias === incoming_alias)) {
|
|
572
710
|
return false;
|
|
573
711
|
}
|
|
574
|
-
const
|
|
575
|
-
const
|
|
576
|
-
if (!(
|
|
712
|
+
const existing_dataId = existing.dataId;
|
|
713
|
+
const incoming_dataId = incoming.dataId;
|
|
714
|
+
if (!(existing_dataId === incoming_dataId)) {
|
|
715
|
+
return false;
|
|
716
|
+
}
|
|
717
|
+
const existing_userFullName = existing.userFullName;
|
|
718
|
+
const incoming_userFullName = incoming.userFullName;
|
|
719
|
+
if (!(existing_userFullName === incoming_userFullName)) {
|
|
720
|
+
return false;
|
|
721
|
+
}
|
|
722
|
+
const existing_userName = existing.userName;
|
|
723
|
+
const incoming_userName = incoming.userName;
|
|
724
|
+
if (!(existing_userName === incoming_userName)) {
|
|
577
725
|
return false;
|
|
578
726
|
}
|
|
579
|
-
const
|
|
580
|
-
const
|
|
581
|
-
if (!(
|
|
727
|
+
const existing_userProfile = existing.userProfile;
|
|
728
|
+
const incoming_userProfile = incoming.userProfile;
|
|
729
|
+
if (!(existing_userProfile === incoming_userProfile)) {
|
|
582
730
|
return false;
|
|
583
731
|
}
|
|
584
|
-
const
|
|
585
|
-
const
|
|
586
|
-
if (!(
|
|
732
|
+
const existing_userRoleName = existing.userRoleName;
|
|
733
|
+
const incoming_userRoleName = incoming.userRoleName;
|
|
734
|
+
if (!(existing_userRoleName === incoming_userRoleName)) {
|
|
587
735
|
return false;
|
|
588
736
|
}
|
|
589
|
-
const
|
|
590
|
-
const
|
|
591
|
-
if (!(
|
|
737
|
+
const existing_userType = existing.userType;
|
|
738
|
+
const incoming_userType = incoming.userType;
|
|
739
|
+
if (!(existing_userType === incoming_userType)) {
|
|
592
740
|
return false;
|
|
593
741
|
}
|
|
594
742
|
return true;
|
|
595
743
|
}
|
|
596
744
|
|
|
597
745
|
const TTL$3 = 300;
|
|
598
|
-
const VERSION$a = "
|
|
746
|
+
const VERSION$a = "fb19878d4e3d9f3ea2576fcd8866350c";
|
|
599
747
|
function validate$a(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
|
|
600
748
|
const v_error = (() => {
|
|
601
749
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
602
750
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
603
751
|
}
|
|
752
|
+
const obj_listRoles = obj.listRoles;
|
|
753
|
+
const path_listRoles = path + '.listRoles';
|
|
754
|
+
if (!ArrayIsArray(obj_listRoles)) {
|
|
755
|
+
return new TypeError('Expected "array" but received "' + typeof obj_listRoles + '" (at "' + path_listRoles + '")');
|
|
756
|
+
}
|
|
757
|
+
for (let i = 0; i < obj_listRoles.length; i++) {
|
|
758
|
+
const obj_listRoles_item = obj_listRoles[i];
|
|
759
|
+
const path_listRoles_item = path_listRoles + '[' + i + ']';
|
|
760
|
+
const referencepath_listRoles_itemValidationError = validate$c(obj_listRoles_item, path_listRoles_item);
|
|
761
|
+
if (referencepath_listRoles_itemValidationError !== null) {
|
|
762
|
+
let message = 'Object doesn\'t match RolesInGroupRepresentation (at "' + path_listRoles_item + '")\n';
|
|
763
|
+
message += referencepath_listRoles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
764
|
+
return new TypeError(message);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
const obj_listRolesAndInternalSubordinates = obj.listRolesAndInternalSubordinates;
|
|
768
|
+
const path_listRolesAndInternalSubordinates = path + '.listRolesAndInternalSubordinates';
|
|
769
|
+
if (!ArrayIsArray(obj_listRolesAndInternalSubordinates)) {
|
|
770
|
+
return new TypeError('Expected "array" but received "' + typeof obj_listRolesAndInternalSubordinates + '" (at "' + path_listRolesAndInternalSubordinates + '")');
|
|
771
|
+
}
|
|
772
|
+
for (let i = 0; i < obj_listRolesAndInternalSubordinates.length; i++) {
|
|
773
|
+
const obj_listRolesAndInternalSubordinates_item = obj_listRolesAndInternalSubordinates[i];
|
|
774
|
+
const path_listRolesAndInternalSubordinates_item = path_listRolesAndInternalSubordinates + '[' + i + ']';
|
|
775
|
+
const referencepath_listRolesAndInternalSubordinates_itemValidationError = validate$c(obj_listRolesAndInternalSubordinates_item, path_listRolesAndInternalSubordinates_item);
|
|
776
|
+
if (referencepath_listRolesAndInternalSubordinates_itemValidationError !== null) {
|
|
777
|
+
let message = 'Object doesn\'t match RolesInGroupRepresentation (at "' + path_listRolesAndInternalSubordinates_item + '")\n';
|
|
778
|
+
message += referencepath_listRolesAndInternalSubordinates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
779
|
+
return new TypeError(message);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
604
782
|
const obj_listUsers = obj.listUsers;
|
|
605
783
|
const path_listUsers = path + '.listUsers';
|
|
606
784
|
if (!ArrayIsArray(obj_listUsers)) {
|
|
@@ -624,12 +802,25 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
624
802
|
return input;
|
|
625
803
|
}
|
|
626
804
|
const select$e = function PublicGroupMembershipDetailsRepresentationSelect() {
|
|
805
|
+
const { selections: RolesInGroupRepresentation__selections, opaque: RolesInGroupRepresentation__opaque, } = select$g();
|
|
627
806
|
const { selections: UserMembersInPublicGroupRepresentation__selections, opaque: UserMembersInPublicGroupRepresentation__opaque, } = select$f();
|
|
628
807
|
return {
|
|
629
808
|
kind: 'Fragment',
|
|
630
809
|
version: VERSION$a,
|
|
631
810
|
private: [],
|
|
632
811
|
selections: [
|
|
812
|
+
{
|
|
813
|
+
name: 'listRoles',
|
|
814
|
+
kind: 'Object',
|
|
815
|
+
plural: true,
|
|
816
|
+
selections: RolesInGroupRepresentation__selections
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
name: 'listRolesAndInternalSubordinates',
|
|
820
|
+
kind: 'Object',
|
|
821
|
+
plural: true,
|
|
822
|
+
selections: RolesInGroupRepresentation__selections
|
|
823
|
+
},
|
|
633
824
|
{
|
|
634
825
|
name: 'listUsers',
|
|
635
826
|
kind: 'Object',
|
|
@@ -640,6 +831,26 @@ const select$e = function PublicGroupMembershipDetailsRepresentationSelect() {
|
|
|
640
831
|
};
|
|
641
832
|
};
|
|
642
833
|
function equals$a(existing, incoming) {
|
|
834
|
+
const existing_listRoles = existing.listRoles;
|
|
835
|
+
const incoming_listRoles = incoming.listRoles;
|
|
836
|
+
const equals_listRoles_items = equalsArray(existing_listRoles, incoming_listRoles, (existing_listRoles_item, incoming_listRoles_item) => {
|
|
837
|
+
if (!(equals$c(existing_listRoles_item, incoming_listRoles_item))) {
|
|
838
|
+
return false;
|
|
839
|
+
}
|
|
840
|
+
});
|
|
841
|
+
if (equals_listRoles_items === false) {
|
|
842
|
+
return false;
|
|
843
|
+
}
|
|
844
|
+
const existing_listRolesAndInternalSubordinates = existing.listRolesAndInternalSubordinates;
|
|
845
|
+
const incoming_listRolesAndInternalSubordinates = incoming.listRolesAndInternalSubordinates;
|
|
846
|
+
const equals_listRolesAndInternalSubordinates_items = equalsArray(existing_listRolesAndInternalSubordinates, incoming_listRolesAndInternalSubordinates, (existing_listRolesAndInternalSubordinates_item, incoming_listRolesAndInternalSubordinates_item) => {
|
|
847
|
+
if (!(equals$c(existing_listRolesAndInternalSubordinates_item, incoming_listRolesAndInternalSubordinates_item))) {
|
|
848
|
+
return false;
|
|
849
|
+
}
|
|
850
|
+
});
|
|
851
|
+
if (equals_listRolesAndInternalSubordinates_items === false) {
|
|
852
|
+
return false;
|
|
853
|
+
}
|
|
643
854
|
const existing_listUsers = existing.listUsers;
|
|
644
855
|
const incoming_listUsers = incoming.listUsers;
|
|
645
856
|
const equals_listUsers_items = equalsArray(existing_listUsers, incoming_listUsers, (existing_listUsers_item, incoming_listUsers_item) => {
|
package/dist/es/es2018/types/src/generated/types/PublicGroupMembershipDetailsRepresentation.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { RolesInGroupRepresentation as RolesInGroupRepresentation_RolesInGroupRepresentation } from './RolesInGroupRepresentation';
|
|
1
2
|
import { UserMembersInPublicGroupRepresentation as UserMembersInPublicGroupRepresentation_UserMembersInPublicGroupRepresentation } from './UserMembersInPublicGroupRepresentation';
|
|
2
3
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
4
|
export declare const TTL = 300;
|
|
4
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "fb19878d4e3d9f3ea2576fcd8866350c";
|
|
5
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
7
|
export declare const RepresentationType: string;
|
|
7
8
|
export declare function normalize(input: PublicGroupMembershipDetailsRepresentation, existing: PublicGroupMembershipDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PublicGroupMembershipDetailsRepresentationNormalized;
|
|
@@ -16,6 +17,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
17
|
* (none)
|
|
17
18
|
*/
|
|
18
19
|
export interface PublicGroupMembershipDetailsRepresentationNormalized {
|
|
20
|
+
/** Output response data for Roles */
|
|
21
|
+
listRoles: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
|
|
22
|
+
/** Output response data for Roles and Internal Subordinates */
|
|
23
|
+
listRolesAndInternalSubordinates: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
|
|
19
24
|
/** Output response data for Users */
|
|
20
25
|
listUsers: Array<UserMembersInPublicGroupRepresentation_UserMembersInPublicGroupRepresentation>;
|
|
21
26
|
}
|
|
@@ -26,5 +31,7 @@ export interface PublicGroupMembershipDetailsRepresentationNormalized {
|
|
|
26
31
|
* (none)
|
|
27
32
|
*/
|
|
28
33
|
export interface PublicGroupMembershipDetailsRepresentation {
|
|
34
|
+
listRoles: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
|
|
35
|
+
listRolesAndInternalSubordinates: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
|
|
29
36
|
listUsers: Array<UserMembersInPublicGroupRepresentation_UserMembersInPublicGroupRepresentation>;
|
|
30
37
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "23a331717bb19992d3c37b818fc7008a";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: RolesInGroupRepresentation, existing: RolesInGroupRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RolesInGroupRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: RolesInGroupRepresentationNormalized, incoming: RolesInGroupRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: RolesInGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Roles in Public Group Representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface RolesInGroupRepresentationNormalized {
|
|
17
|
+
/** Group Member dataId */
|
|
18
|
+
dataId: string;
|
|
19
|
+
/** Group Type */
|
|
20
|
+
groupType: string;
|
|
21
|
+
/** Role Name */
|
|
22
|
+
roleName: string;
|
|
23
|
+
/** Role Parent dev Name */
|
|
24
|
+
roleParentDevName: string;
|
|
25
|
+
/** Role Parent label */
|
|
26
|
+
roleParentLabel: string;
|
|
27
|
+
/** Role Updated By */
|
|
28
|
+
roleUpdatedBy: string;
|
|
29
|
+
/** Role Updated On */
|
|
30
|
+
roleUpdatedOn: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Roles in Public Group Representation
|
|
34
|
+
*
|
|
35
|
+
* Keys:
|
|
36
|
+
* (none)
|
|
37
|
+
*/
|
|
38
|
+
export interface RolesInGroupRepresentation {
|
|
39
|
+
dataId: string;
|
|
40
|
+
groupType: string;
|
|
41
|
+
roleName: string;
|
|
42
|
+
roleParentDevName: string;
|
|
43
|
+
roleParentLabel: string;
|
|
44
|
+
roleUpdatedBy: string;
|
|
45
|
+
roleUpdatedOn: string;
|
|
46
|
+
}
|