@salesforce/lds-adapters-platform-sharing 1.291.0 → 1.293.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.
@@ -91,8 +91,8 @@ function createLink(ref) {
91
91
  };
92
92
  }
93
93
 
94
- const VERSION$e = "7d75e40a9fde9f60ae02b6dde36257ce";
95
- function validate$e(obj, path = 'PublicGroupRepresentation') {
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$j = function PublicGroupRepresentationSelect() {
123
+ const select$k = function PublicGroupRepresentationSelect() {
124
124
  return {
125
125
  kind: 'Fragment',
126
- version: VERSION$e,
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$e(existing, incoming) {
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$d = "89ae3fce0ad09282e80bd77a9c483003";
173
- function validate$d(obj, path = 'QueueRepresentation') {
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$i = function QueueRepresentationSelect() {
196
+ const select$j = function QueueRepresentationSelect() {
197
197
  return {
198
198
  kind: 'Fragment',
199
- version: VERSION$d,
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$d(existing, incoming) {
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$c = "3659c4a4f46957a3a2b5cb2d2383180d";
238
- function validate$c(obj, path = 'GroupCollectionRepresentation') {
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$e(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
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$d(obj_queueRepresentations_item, path_queueRepresentations_item);
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$h = function GroupCollectionRepresentationSelect() {
281
- const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$j();
282
- const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$i();
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$c,
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$c(existing, incoming) {
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$e(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
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$d(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
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$c(input);
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$c, RepresentationType$4, equals$c);
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$g(luvio, params) {
349
- return select$h();
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$g(),
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$c,
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$g();
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,6 +488,112 @@ const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsFor
488
488
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
489
489
  };
490
490
 
491
+ const VERSION$c = "4690872e70f2f6be5f220c27c6de4003";
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_roleName = obj.roleName;
498
+ const path_roleName = path + '.roleName';
499
+ if (typeof obj_roleName !== 'string') {
500
+ return new TypeError('Expected "string" but received "' + typeof obj_roleName + '" (at "' + path_roleName + '")');
501
+ }
502
+ const obj_roleParentDevName = obj.roleParentDevName;
503
+ const path_roleParentDevName = path + '.roleParentDevName';
504
+ if (typeof obj_roleParentDevName !== 'string') {
505
+ return new TypeError('Expected "string" but received "' + typeof obj_roleParentDevName + '" (at "' + path_roleParentDevName + '")');
506
+ }
507
+ const obj_roleParentLabel = obj.roleParentLabel;
508
+ const path_roleParentLabel = path + '.roleParentLabel';
509
+ if (typeof obj_roleParentLabel !== 'string') {
510
+ return new TypeError('Expected "string" but received "' + typeof obj_roleParentLabel + '" (at "' + path_roleParentLabel + '")');
511
+ }
512
+ const obj_roleUpdatedBy = obj.roleUpdatedBy;
513
+ const path_roleUpdatedBy = path + '.roleUpdatedBy';
514
+ if (typeof obj_roleUpdatedBy !== 'string') {
515
+ return new TypeError('Expected "string" but received "' + typeof obj_roleUpdatedBy + '" (at "' + path_roleUpdatedBy + '")');
516
+ }
517
+ const obj_roleUpdatedOn = obj.roleUpdatedOn;
518
+ const path_roleUpdatedOn = path + '.roleUpdatedOn';
519
+ if (typeof obj_roleUpdatedOn !== 'string') {
520
+ return new TypeError('Expected "string" but received "' + typeof obj_roleUpdatedOn + '" (at "' + path_roleUpdatedOn + '")');
521
+ }
522
+ const obj_type = obj.type;
523
+ const path_type = path + '.type';
524
+ if (typeof obj_type !== 'string') {
525
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
526
+ }
527
+ })();
528
+ return v_error === undefined ? null : v_error;
529
+ }
530
+ const select$g = function RolesInGroupRepresentationSelect() {
531
+ return {
532
+ kind: 'Fragment',
533
+ version: VERSION$c,
534
+ private: [],
535
+ selections: [
536
+ {
537
+ name: 'roleName',
538
+ kind: 'Scalar'
539
+ },
540
+ {
541
+ name: 'roleParentDevName',
542
+ kind: 'Scalar'
543
+ },
544
+ {
545
+ name: 'roleParentLabel',
546
+ kind: 'Scalar'
547
+ },
548
+ {
549
+ name: 'roleUpdatedBy',
550
+ kind: 'Scalar'
551
+ },
552
+ {
553
+ name: 'roleUpdatedOn',
554
+ kind: 'Scalar'
555
+ },
556
+ {
557
+ name: 'type',
558
+ kind: 'Scalar'
559
+ }
560
+ ]
561
+ };
562
+ };
563
+ function equals$c(existing, incoming) {
564
+ const existing_roleName = existing.roleName;
565
+ const incoming_roleName = incoming.roleName;
566
+ if (!(existing_roleName === incoming_roleName)) {
567
+ return false;
568
+ }
569
+ const existing_roleParentDevName = existing.roleParentDevName;
570
+ const incoming_roleParentDevName = incoming.roleParentDevName;
571
+ if (!(existing_roleParentDevName === incoming_roleParentDevName)) {
572
+ return false;
573
+ }
574
+ const existing_roleParentLabel = existing.roleParentLabel;
575
+ const incoming_roleParentLabel = incoming.roleParentLabel;
576
+ if (!(existing_roleParentLabel === incoming_roleParentLabel)) {
577
+ return false;
578
+ }
579
+ const existing_roleUpdatedBy = existing.roleUpdatedBy;
580
+ const incoming_roleUpdatedBy = incoming.roleUpdatedBy;
581
+ if (!(existing_roleUpdatedBy === incoming_roleUpdatedBy)) {
582
+ return false;
583
+ }
584
+ const existing_roleUpdatedOn = existing.roleUpdatedOn;
585
+ const incoming_roleUpdatedOn = incoming.roleUpdatedOn;
586
+ if (!(existing_roleUpdatedOn === incoming_roleUpdatedOn)) {
587
+ return false;
588
+ }
589
+ const existing_type = existing.type;
590
+ const incoming_type = incoming.type;
591
+ if (!(existing_type === incoming_type)) {
592
+ return false;
593
+ }
594
+ return true;
595
+ }
596
+
491
597
  const VERSION$b = "6abb89d83ef158efe13c19652a019d40";
492
598
  function validate$b(obj, path = 'UserMembersInPublicGroupRepresentation') {
493
599
  const v_error = (() => {
@@ -595,12 +701,42 @@ function equals$b(existing, incoming) {
595
701
  }
596
702
 
597
703
  const TTL$3 = 300;
598
- const VERSION$a = "5959939d2b282a69110b986258cb3620";
704
+ const VERSION$a = "fb19878d4e3d9f3ea2576fcd8866350c";
599
705
  function validate$a(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
600
706
  const v_error = (() => {
601
707
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
602
708
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
603
709
  }
710
+ const obj_listRoles = obj.listRoles;
711
+ const path_listRoles = path + '.listRoles';
712
+ if (!ArrayIsArray(obj_listRoles)) {
713
+ return new TypeError('Expected "array" but received "' + typeof obj_listRoles + '" (at "' + path_listRoles + '")');
714
+ }
715
+ for (let i = 0; i < obj_listRoles.length; i++) {
716
+ const obj_listRoles_item = obj_listRoles[i];
717
+ const path_listRoles_item = path_listRoles + '[' + i + ']';
718
+ const referencepath_listRoles_itemValidationError = validate$c(obj_listRoles_item, path_listRoles_item);
719
+ if (referencepath_listRoles_itemValidationError !== null) {
720
+ let message = 'Object doesn\'t match RolesInGroupRepresentation (at "' + path_listRoles_item + '")\n';
721
+ message += referencepath_listRoles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
722
+ return new TypeError(message);
723
+ }
724
+ }
725
+ const obj_listRolesAndInternalSubordinates = obj.listRolesAndInternalSubordinates;
726
+ const path_listRolesAndInternalSubordinates = path + '.listRolesAndInternalSubordinates';
727
+ if (!ArrayIsArray(obj_listRolesAndInternalSubordinates)) {
728
+ return new TypeError('Expected "array" but received "' + typeof obj_listRolesAndInternalSubordinates + '" (at "' + path_listRolesAndInternalSubordinates + '")');
729
+ }
730
+ for (let i = 0; i < obj_listRolesAndInternalSubordinates.length; i++) {
731
+ const obj_listRolesAndInternalSubordinates_item = obj_listRolesAndInternalSubordinates[i];
732
+ const path_listRolesAndInternalSubordinates_item = path_listRolesAndInternalSubordinates + '[' + i + ']';
733
+ const referencepath_listRolesAndInternalSubordinates_itemValidationError = validate$c(obj_listRolesAndInternalSubordinates_item, path_listRolesAndInternalSubordinates_item);
734
+ if (referencepath_listRolesAndInternalSubordinates_itemValidationError !== null) {
735
+ let message = 'Object doesn\'t match RolesInGroupRepresentation (at "' + path_listRolesAndInternalSubordinates_item + '")\n';
736
+ message += referencepath_listRolesAndInternalSubordinates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
737
+ return new TypeError(message);
738
+ }
739
+ }
604
740
  const obj_listUsers = obj.listUsers;
605
741
  const path_listUsers = path + '.listUsers';
606
742
  if (!ArrayIsArray(obj_listUsers)) {
@@ -624,12 +760,25 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
624
760
  return input;
625
761
  }
626
762
  const select$e = function PublicGroupMembershipDetailsRepresentationSelect() {
763
+ const { selections: RolesInGroupRepresentation__selections, opaque: RolesInGroupRepresentation__opaque, } = select$g();
627
764
  const { selections: UserMembersInPublicGroupRepresentation__selections, opaque: UserMembersInPublicGroupRepresentation__opaque, } = select$f();
628
765
  return {
629
766
  kind: 'Fragment',
630
767
  version: VERSION$a,
631
768
  private: [],
632
769
  selections: [
770
+ {
771
+ name: 'listRoles',
772
+ kind: 'Object',
773
+ plural: true,
774
+ selections: RolesInGroupRepresentation__selections
775
+ },
776
+ {
777
+ name: 'listRolesAndInternalSubordinates',
778
+ kind: 'Object',
779
+ plural: true,
780
+ selections: RolesInGroupRepresentation__selections
781
+ },
633
782
  {
634
783
  name: 'listUsers',
635
784
  kind: 'Object',
@@ -640,6 +789,26 @@ const select$e = function PublicGroupMembershipDetailsRepresentationSelect() {
640
789
  };
641
790
  };
642
791
  function equals$a(existing, incoming) {
792
+ const existing_listRoles = existing.listRoles;
793
+ const incoming_listRoles = incoming.listRoles;
794
+ const equals_listRoles_items = equalsArray(existing_listRoles, incoming_listRoles, (existing_listRoles_item, incoming_listRoles_item) => {
795
+ if (!(equals$c(existing_listRoles_item, incoming_listRoles_item))) {
796
+ return false;
797
+ }
798
+ });
799
+ if (equals_listRoles_items === false) {
800
+ return false;
801
+ }
802
+ const existing_listRolesAndInternalSubordinates = existing.listRolesAndInternalSubordinates;
803
+ const incoming_listRolesAndInternalSubordinates = incoming.listRolesAndInternalSubordinates;
804
+ const equals_listRolesAndInternalSubordinates_items = equalsArray(existing_listRolesAndInternalSubordinates, incoming_listRolesAndInternalSubordinates, (existing_listRolesAndInternalSubordinates_item, incoming_listRolesAndInternalSubordinates_item) => {
805
+ if (!(equals$c(existing_listRolesAndInternalSubordinates_item, incoming_listRolesAndInternalSubordinates_item))) {
806
+ return false;
807
+ }
808
+ });
809
+ if (equals_listRolesAndInternalSubordinates_items === false) {
810
+ return false;
811
+ }
643
812
  const existing_listUsers = existing.listUsers;
644
813
  const incoming_listUsers = incoming.listUsers;
645
814
  const equals_listUsers_items = equalsArray(existing_listUsers, incoming_listUsers, (existing_listUsers_item, incoming_listUsers_item) => {
@@ -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 = "5959939d2b282a69110b986258cb3620";
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,43 @@
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 = "4690872e70f2f6be5f220c27c6de4003";
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
+ /** Role Name */
18
+ roleName: string;
19
+ /** Role Parent dev Name */
20
+ roleParentDevName: string;
21
+ /** Role Parent label */
22
+ roleParentLabel: string;
23
+ /** Role Updated By */
24
+ roleUpdatedBy: string;
25
+ /** Role Updated On */
26
+ roleUpdatedOn: string;
27
+ /** Type */
28
+ type: string;
29
+ }
30
+ /**
31
+ * Roles in Public Group Representation
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface RolesInGroupRepresentation {
37
+ roleName: string;
38
+ roleParentDevName: string;
39
+ roleParentLabel: string;
40
+ roleUpdatedBy: string;
41
+ roleUpdatedOn: string;
42
+ type: string;
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-sharing",
3
- "version": "1.291.0",
3
+ "version": "1.293.0",
4
4
  "description": "Sharing",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-sharing.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.291.0"
43
+ "@salesforce/lds-bindings": "^1.293.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.291.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.293.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -101,8 +101,8 @@ function createLink(ref) {
101
101
  };
102
102
  }
103
103
 
104
- const VERSION$e = "8f1b312aa04c8869624b95b9e3f3cd4e";
105
- function validate$e(obj, path = 'SobjectOutputSharingRepresentation') {
104
+ const VERSION$f = "8f1b312aa04c8869624b95b9e3f3cd4e";
105
+ function validate$f(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$e(obj, path = 'SobjectOutputSharingRepresentation') {
130
130
  })();
131
131
  return v_error === undefined ? null : v_error;
132
132
  }
133
- const select$j = function SobjectOutputSharingRepresentationSelect() {
133
+ const select$k = function SobjectOutputSharingRepresentationSelect() {
134
134
  return {
135
135
  kind: 'Fragment',
136
- version: VERSION$e,
136
+ version: VERSION$f,
137
137
  private: [],
138
138
  selections: [
139
139
  {
@@ -155,7 +155,7 @@ const select$j = function SobjectOutputSharingRepresentationSelect() {
155
155
  ]
156
156
  };
157
157
  };
158
- function equals$e(existing, incoming) {
158
+ function equals$f(existing, incoming) {
159
159
  const existing_apiName = existing.apiName;
160
160
  const incoming_apiName = incoming.apiName;
161
161
  if (!(existing_apiName === incoming_apiName)) {
@@ -180,8 +180,8 @@ function equals$e(existing, incoming) {
180
180
  }
181
181
 
182
182
  const TTL$4 = 900000;
183
- const VERSION$d = "891459dfe3e992adddad156c898d3aef";
184
- function validate$d(obj, path = 'SobjectsOutputSharingRepresentation') {
183
+ const VERSION$e = "891459dfe3e992adddad156c898d3aef";
184
+ function validate$e(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$d(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$e(obj_sobjects_item, path_sobjects_item);
202
+ const referencepath_sobjects_itemValidationError = validate$f(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');
@@ -213,11 +213,11 @@ const RepresentationType$4 = 'SobjectsOutputSharingRepresentation';
213
213
  function normalize$4(input, existing, path, luvio, store, timestamp) {
214
214
  return input;
215
215
  }
216
- const select$i = function SobjectsOutputSharingRepresentationSelect() {
217
- const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$j();
216
+ const select$j = function SobjectsOutputSharingRepresentationSelect() {
217
+ const { selections: SobjectOutputSharingRepresentation__selections, opaque: SobjectOutputSharingRepresentation__opaque, } = select$k();
218
218
  return {
219
219
  kind: 'Fragment',
220
- version: VERSION$d,
220
+ version: VERSION$e,
221
221
  private: [],
222
222
  selections: [
223
223
  {
@@ -233,7 +233,7 @@ const select$i = function SobjectsOutputSharingRepresentationSelect() {
233
233
  ]
234
234
  };
235
235
  };
236
- function equals$d(existing, incoming) {
236
+ function equals$e(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$d(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$e(existing_sobjects_item, incoming_sobjects_item))) {
245
+ if (!(equals$f(existing_sobjects_item, incoming_sobjects_item))) {
246
246
  return false;
247
247
  }
248
248
  });
@@ -253,14 +253,14 @@ function equals$d(existing, incoming) {
253
253
  }
254
254
  const ingest$4 = function SobjectsOutputSharingRepresentationIngest(input, path, luvio, store, timestamp) {
255
255
  if (process.env.NODE_ENV !== 'production') {
256
- const validateError = validate$d(input);
256
+ const validateError = validate$e(input);
257
257
  if (validateError !== null) {
258
258
  throw validateError;
259
259
  }
260
260
  }
261
261
  const key = path.fullPath;
262
262
  const ttlToUse = TTL$4;
263
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "sharing", VERSION$d, RepresentationType$4, equals$d);
263
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "sharing", VERSION$e, RepresentationType$4, equals$e);
264
264
  return createLink(key);
265
265
  };
266
266
  function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
@@ -273,8 +273,8 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
273
273
  });
274
274
  }
275
275
 
276
- function select$h(luvio, params) {
277
- return select$i();
276
+ function select$i(luvio, params) {
277
+ return select$j();
278
278
  }
279
279
  function keyBuilder$9(luvio, params) {
280
280
  return keyPrefix + '::SobjectsOutputSharingRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'searchText:' + params.queryParams.searchText + ')';
@@ -288,7 +288,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
288
288
  luvio.storeIngest(key, ingest$4, body);
289
289
  const snapshot = luvio.storeLookup({
290
290
  recordId: key,
291
- node: select$h(),
291
+ node: select$i(),
292
292
  variables: {},
293
293
  }, snapshotRefresh);
294
294
  if (process.env.NODE_ENV !== 'production') {
@@ -305,7 +305,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
305
305
  const storeMetadataParams = {
306
306
  ttl: TTL$4,
307
307
  namespace: keyPrefix,
308
- version: VERSION$d,
308
+ version: VERSION$e,
309
309
  representationName: RepresentationType$4
310
310
  };
311
311
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -357,7 +357,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
357
357
  }
358
358
  function adapterFragment$4(luvio, config) {
359
359
  createResourceParams$4(config);
360
- return select$h();
360
+ return select$i();
361
361
  }
362
362
  function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
363
363
  const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
@@ -413,8 +413,8 @@ const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects
413
413
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
414
414
  };
415
415
 
416
- const VERSION$c = "7d75e40a9fde9f60ae02b6dde36257ce";
417
- function validate$c(obj, path = 'PublicGroupRepresentation') {
416
+ const VERSION$d = "7d75e40a9fde9f60ae02b6dde36257ce";
417
+ function validate$d(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$c(obj, path = 'PublicGroupRepresentation') {
442
442
  })();
443
443
  return v_error === undefined ? null : v_error;
444
444
  }
445
- const select$g = function PublicGroupRepresentationSelect() {
445
+ const select$h = function PublicGroupRepresentationSelect() {
446
446
  return {
447
447
  kind: 'Fragment',
448
- version: VERSION$c,
448
+ version: VERSION$d,
449
449
  private: [],
450
450
  selections: [
451
451
  {
@@ -467,7 +467,7 @@ const select$g = function PublicGroupRepresentationSelect() {
467
467
  ]
468
468
  };
469
469
  };
470
- function equals$c(existing, incoming) {
470
+ function equals$d(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$c(existing, incoming) {
491
491
  return true;
492
492
  }
493
493
 
494
- const VERSION$b = "89ae3fce0ad09282e80bd77a9c483003";
495
- function validate$b(obj, path = 'QueueRepresentation') {
494
+ const VERSION$c = "89ae3fce0ad09282e80bd77a9c483003";
495
+ function validate$c(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$b(obj, path = 'QueueRepresentation') {
515
515
  })();
516
516
  return v_error === undefined ? null : v_error;
517
517
  }
518
- const select$f = function QueueRepresentationSelect() {
518
+ const select$g = function QueueRepresentationSelect() {
519
519
  return {
520
520
  kind: 'Fragment',
521
- version: VERSION$b,
521
+ version: VERSION$c,
522
522
  private: [],
523
523
  selections: [
524
524
  {
@@ -536,7 +536,7 @@ const select$f = function QueueRepresentationSelect() {
536
536
  ]
537
537
  };
538
538
  };
539
- function equals$b(existing, incoming) {
539
+ function equals$c(existing, incoming) {
540
540
  const existing_developerName = existing.developerName;
541
541
  const incoming_developerName = incoming.developerName;
542
542
  if (!(existing_developerName === incoming_developerName)) {
@@ -556,8 +556,8 @@ function equals$b(existing, incoming) {
556
556
  }
557
557
 
558
558
  const TTL$3 = 300;
559
- const VERSION$a = "3659c4a4f46957a3a2b5cb2d2383180d";
560
- function validate$a(obj, path = 'GroupCollectionRepresentation') {
559
+ const VERSION$b = "3659c4a4f46957a3a2b5cb2d2383180d";
560
+ function validate$b(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$a(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$c(obj_publicGroupRepresentations_item, path_publicGroupRepresentations_item);
573
+ const referencepath_publicGroupRepresentations_itemValidationError = validate$d(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$a(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$b(obj_queueRepresentations_item, path_queueRepresentations_item);
588
+ const referencepath_queueRepresentations_itemValidationError = validate$c(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');
@@ -599,12 +599,12 @@ const RepresentationType$3 = 'GroupCollectionRepresentation';
599
599
  function normalize$3(input, existing, path, luvio, store, timestamp) {
600
600
  return input;
601
601
  }
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();
602
+ const select$f = function GroupCollectionRepresentationSelect() {
603
+ const { selections: PublicGroupRepresentation__selections, opaque: PublicGroupRepresentation__opaque, } = select$h();
604
+ const { selections: QueueRepresentation__selections, opaque: QueueRepresentation__opaque, } = select$g();
605
605
  return {
606
606
  kind: 'Fragment',
607
- version: VERSION$a,
607
+ version: VERSION$b,
608
608
  private: [],
609
609
  selections: [
610
610
  {
@@ -622,11 +622,11 @@ const select$e = function GroupCollectionRepresentationSelect() {
622
622
  ]
623
623
  };
624
624
  };
625
- function equals$a(existing, incoming) {
625
+ function equals$b(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$c(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
629
+ if (!(equals$d(existing_publicGroupRepresentations_item, incoming_publicGroupRepresentations_item))) {
630
630
  return false;
631
631
  }
632
632
  });
@@ -636,7 +636,7 @@ function equals$a(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$b(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
639
+ if (!(equals$c(existing_queueRepresentations_item, incoming_queueRepresentations_item))) {
640
640
  return false;
641
641
  }
642
642
  });
@@ -647,14 +647,14 @@ function equals$a(existing, incoming) {
647
647
  }
648
648
  const ingest$3 = function GroupCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
649
649
  if (process.env.NODE_ENV !== 'production') {
650
- const validateError = validate$a(input);
650
+ const validateError = validate$b(input);
651
651
  if (validateError !== null) {
652
652
  throw validateError;
653
653
  }
654
654
  }
655
655
  const key = path.fullPath;
656
656
  const ttlToUse = TTL$3;
657
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$a, RepresentationType$3, equals$a);
657
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "sharing", VERSION$b, RepresentationType$3, equals$b);
658
658
  return createLink(key);
659
659
  };
660
660
  function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
@@ -667,8 +667,8 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
667
667
  });
668
668
  }
669
669
 
670
- function select$d(luvio, params) {
671
- return select$e();
670
+ function select$e(luvio, params) {
671
+ return select$f();
672
672
  }
673
673
  function keyBuilder$7(luvio, params) {
674
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 + ')';
@@ -682,7 +682,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
682
682
  luvio.storeIngest(key, ingest$3, body);
683
683
  const snapshot = luvio.storeLookup({
684
684
  recordId: key,
685
- node: select$d(),
685
+ node: select$e(),
686
686
  variables: {},
687
687
  }, snapshotRefresh);
688
688
  if (process.env.NODE_ENV !== 'production') {
@@ -699,7 +699,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
699
699
  const storeMetadataParams = {
700
700
  ttl: TTL$3,
701
701
  namespace: keyPrefix,
702
- version: VERSION$a,
702
+ version: VERSION$b,
703
703
  representationName: RepresentationType$3
704
704
  };
705
705
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -754,7 +754,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
754
754
  }
755
755
  function adapterFragment$3(luvio, config) {
756
756
  createResourceParams$3(config);
757
- return select$d();
757
+ return select$e();
758
758
  }
759
759
  function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
760
760
  const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
@@ -810,6 +810,112 @@ const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsFor
810
810
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
811
811
  };
812
812
 
813
+ const VERSION$a = "4690872e70f2f6be5f220c27c6de4003";
814
+ function validate$a(obj, path = 'RolesInGroupRepresentation') {
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_roleName = obj.roleName;
820
+ const path_roleName = path + '.roleName';
821
+ if (typeof obj_roleName !== 'string') {
822
+ return new TypeError('Expected "string" but received "' + typeof obj_roleName + '" (at "' + path_roleName + '")');
823
+ }
824
+ const obj_roleParentDevName = obj.roleParentDevName;
825
+ const path_roleParentDevName = path + '.roleParentDevName';
826
+ if (typeof obj_roleParentDevName !== 'string') {
827
+ return new TypeError('Expected "string" but received "' + typeof obj_roleParentDevName + '" (at "' + path_roleParentDevName + '")');
828
+ }
829
+ const obj_roleParentLabel = obj.roleParentLabel;
830
+ const path_roleParentLabel = path + '.roleParentLabel';
831
+ if (typeof obj_roleParentLabel !== 'string') {
832
+ return new TypeError('Expected "string" but received "' + typeof obj_roleParentLabel + '" (at "' + path_roleParentLabel + '")');
833
+ }
834
+ const obj_roleUpdatedBy = obj.roleUpdatedBy;
835
+ const path_roleUpdatedBy = path + '.roleUpdatedBy';
836
+ if (typeof obj_roleUpdatedBy !== 'string') {
837
+ return new TypeError('Expected "string" but received "' + typeof obj_roleUpdatedBy + '" (at "' + path_roleUpdatedBy + '")');
838
+ }
839
+ const obj_roleUpdatedOn = obj.roleUpdatedOn;
840
+ const path_roleUpdatedOn = path + '.roleUpdatedOn';
841
+ if (typeof obj_roleUpdatedOn !== 'string') {
842
+ return new TypeError('Expected "string" but received "' + typeof obj_roleUpdatedOn + '" (at "' + path_roleUpdatedOn + '")');
843
+ }
844
+ const obj_type = obj.type;
845
+ const path_type = path + '.type';
846
+ if (typeof obj_type !== 'string') {
847
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
848
+ }
849
+ })();
850
+ return v_error === undefined ? null : v_error;
851
+ }
852
+ const select$d = function RolesInGroupRepresentationSelect() {
853
+ return {
854
+ kind: 'Fragment',
855
+ version: VERSION$a,
856
+ private: [],
857
+ selections: [
858
+ {
859
+ name: 'roleName',
860
+ kind: 'Scalar'
861
+ },
862
+ {
863
+ name: 'roleParentDevName',
864
+ kind: 'Scalar'
865
+ },
866
+ {
867
+ name: 'roleParentLabel',
868
+ kind: 'Scalar'
869
+ },
870
+ {
871
+ name: 'roleUpdatedBy',
872
+ kind: 'Scalar'
873
+ },
874
+ {
875
+ name: 'roleUpdatedOn',
876
+ kind: 'Scalar'
877
+ },
878
+ {
879
+ name: 'type',
880
+ kind: 'Scalar'
881
+ }
882
+ ]
883
+ };
884
+ };
885
+ function equals$a(existing, incoming) {
886
+ const existing_roleName = existing.roleName;
887
+ const incoming_roleName = incoming.roleName;
888
+ if (!(existing_roleName === incoming_roleName)) {
889
+ return false;
890
+ }
891
+ const existing_roleParentDevName = existing.roleParentDevName;
892
+ const incoming_roleParentDevName = incoming.roleParentDevName;
893
+ if (!(existing_roleParentDevName === incoming_roleParentDevName)) {
894
+ return false;
895
+ }
896
+ const existing_roleParentLabel = existing.roleParentLabel;
897
+ const incoming_roleParentLabel = incoming.roleParentLabel;
898
+ if (!(existing_roleParentLabel === incoming_roleParentLabel)) {
899
+ return false;
900
+ }
901
+ const existing_roleUpdatedBy = existing.roleUpdatedBy;
902
+ const incoming_roleUpdatedBy = incoming.roleUpdatedBy;
903
+ if (!(existing_roleUpdatedBy === incoming_roleUpdatedBy)) {
904
+ return false;
905
+ }
906
+ const existing_roleUpdatedOn = existing.roleUpdatedOn;
907
+ const incoming_roleUpdatedOn = incoming.roleUpdatedOn;
908
+ if (!(existing_roleUpdatedOn === incoming_roleUpdatedOn)) {
909
+ return false;
910
+ }
911
+ const existing_type = existing.type;
912
+ const incoming_type = incoming.type;
913
+ if (!(existing_type === incoming_type)) {
914
+ return false;
915
+ }
916
+ return true;
917
+ }
918
+
813
919
  const VERSION$9 = "6abb89d83ef158efe13c19652a019d40";
814
920
  function validate$9(obj, path = 'UserMembersInPublicGroupRepresentation') {
815
921
  const v_error = (() => {
@@ -917,12 +1023,42 @@ function equals$9(existing, incoming) {
917
1023
  }
918
1024
 
919
1025
  const TTL$2 = 300;
920
- const VERSION$8 = "5959939d2b282a69110b986258cb3620";
1026
+ const VERSION$8 = "fb19878d4e3d9f3ea2576fcd8866350c";
921
1027
  function validate$8(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
922
1028
  const v_error = (() => {
923
1029
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
924
1030
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
925
1031
  }
1032
+ const obj_listRoles = obj.listRoles;
1033
+ const path_listRoles = path + '.listRoles';
1034
+ if (!ArrayIsArray(obj_listRoles)) {
1035
+ return new TypeError('Expected "array" but received "' + typeof obj_listRoles + '" (at "' + path_listRoles + '")');
1036
+ }
1037
+ for (let i = 0; i < obj_listRoles.length; i++) {
1038
+ const obj_listRoles_item = obj_listRoles[i];
1039
+ const path_listRoles_item = path_listRoles + '[' + i + ']';
1040
+ const referencepath_listRoles_itemValidationError = validate$a(obj_listRoles_item, path_listRoles_item);
1041
+ if (referencepath_listRoles_itemValidationError !== null) {
1042
+ let message = 'Object doesn\'t match RolesInGroupRepresentation (at "' + path_listRoles_item + '")\n';
1043
+ message += referencepath_listRoles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1044
+ return new TypeError(message);
1045
+ }
1046
+ }
1047
+ const obj_listRolesAndInternalSubordinates = obj.listRolesAndInternalSubordinates;
1048
+ const path_listRolesAndInternalSubordinates = path + '.listRolesAndInternalSubordinates';
1049
+ if (!ArrayIsArray(obj_listRolesAndInternalSubordinates)) {
1050
+ return new TypeError('Expected "array" but received "' + typeof obj_listRolesAndInternalSubordinates + '" (at "' + path_listRolesAndInternalSubordinates + '")');
1051
+ }
1052
+ for (let i = 0; i < obj_listRolesAndInternalSubordinates.length; i++) {
1053
+ const obj_listRolesAndInternalSubordinates_item = obj_listRolesAndInternalSubordinates[i];
1054
+ const path_listRolesAndInternalSubordinates_item = path_listRolesAndInternalSubordinates + '[' + i + ']';
1055
+ const referencepath_listRolesAndInternalSubordinates_itemValidationError = validate$a(obj_listRolesAndInternalSubordinates_item, path_listRolesAndInternalSubordinates_item);
1056
+ if (referencepath_listRolesAndInternalSubordinates_itemValidationError !== null) {
1057
+ let message = 'Object doesn\'t match RolesInGroupRepresentation (at "' + path_listRolesAndInternalSubordinates_item + '")\n';
1058
+ message += referencepath_listRolesAndInternalSubordinates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1059
+ return new TypeError(message);
1060
+ }
1061
+ }
926
1062
  const obj_listUsers = obj.listUsers;
927
1063
  const path_listUsers = path + '.listUsers';
928
1064
  if (!ArrayIsArray(obj_listUsers)) {
@@ -946,12 +1082,25 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
946
1082
  return input;
947
1083
  }
948
1084
  const select$b = function PublicGroupMembershipDetailsRepresentationSelect() {
1085
+ const { selections: RolesInGroupRepresentation__selections, opaque: RolesInGroupRepresentation__opaque, } = select$d();
949
1086
  const { selections: UserMembersInPublicGroupRepresentation__selections, opaque: UserMembersInPublicGroupRepresentation__opaque, } = select$c();
950
1087
  return {
951
1088
  kind: 'Fragment',
952
1089
  version: VERSION$8,
953
1090
  private: [],
954
1091
  selections: [
1092
+ {
1093
+ name: 'listRoles',
1094
+ kind: 'Object',
1095
+ plural: true,
1096
+ selections: RolesInGroupRepresentation__selections
1097
+ },
1098
+ {
1099
+ name: 'listRolesAndInternalSubordinates',
1100
+ kind: 'Object',
1101
+ plural: true,
1102
+ selections: RolesInGroupRepresentation__selections
1103
+ },
955
1104
  {
956
1105
  name: 'listUsers',
957
1106
  kind: 'Object',
@@ -962,6 +1111,26 @@ const select$b = function PublicGroupMembershipDetailsRepresentationSelect() {
962
1111
  };
963
1112
  };
964
1113
  function equals$8(existing, incoming) {
1114
+ const existing_listRoles = existing.listRoles;
1115
+ const incoming_listRoles = incoming.listRoles;
1116
+ const equals_listRoles_items = equalsArray(existing_listRoles, incoming_listRoles, (existing_listRoles_item, incoming_listRoles_item) => {
1117
+ if (!(equals$a(existing_listRoles_item, incoming_listRoles_item))) {
1118
+ return false;
1119
+ }
1120
+ });
1121
+ if (equals_listRoles_items === false) {
1122
+ return false;
1123
+ }
1124
+ const existing_listRolesAndInternalSubordinates = existing.listRolesAndInternalSubordinates;
1125
+ const incoming_listRolesAndInternalSubordinates = incoming.listRolesAndInternalSubordinates;
1126
+ const equals_listRolesAndInternalSubordinates_items = equalsArray(existing_listRolesAndInternalSubordinates, incoming_listRolesAndInternalSubordinates, (existing_listRolesAndInternalSubordinates_item, incoming_listRolesAndInternalSubordinates_item) => {
1127
+ if (!(equals$a(existing_listRolesAndInternalSubordinates_item, incoming_listRolesAndInternalSubordinates_item))) {
1128
+ return false;
1129
+ }
1130
+ });
1131
+ if (equals_listRolesAndInternalSubordinates_items === false) {
1132
+ return false;
1133
+ }
965
1134
  const existing_listUsers = existing.listUsers;
966
1135
  const incoming_listUsers = incoming.listUsers;
967
1136
  const equals_listUsers_items = equalsArray(existing_listUsers, incoming_listUsers, (existing_listUsers_item, incoming_listUsers_item) => {
@@ -2257,4 +2426,4 @@ withDefaultLuvio((luvio) => {
2257
2426
  });
2258
2427
 
2259
2428
  export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupMembershipDetails, getPublicGroupMembershipDetails_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
2260
- // version: 1.291.0-79b8ea231
2429
+ // version: 1.293.0-c036bce5d
package/src/raml/api.raml CHANGED
@@ -140,6 +140,16 @@ types:
140
140
  API
141
141
  type: object
142
142
  properties:
143
+ listRoles:
144
+ description: Output response data for Roles
145
+ type: array
146
+ items:
147
+ type: RolesInGroupRepresentation
148
+ listRolesAndInternalSubordinates:
149
+ description: Output response data for Roles and Internal Subordinates
150
+ type: array
151
+ items:
152
+ type: RolesInGroupRepresentation
143
153
  listUsers:
144
154
  description: Output response data for Users
145
155
  type: array
@@ -304,6 +314,28 @@ types:
304
314
  description: Report and Dashboard Folder type. It can be either 'Report' or
305
315
  'Dashboard'.
306
316
  type: string
317
+ RolesInGroupRepresentation:
318
+ description: Roles in Public Group Representation
319
+ type: object
320
+ properties:
321
+ roleName:
322
+ description: Role Name
323
+ type: string
324
+ roleParentDevName:
325
+ description: Role Parent dev Name
326
+ type: string
327
+ roleParentLabel:
328
+ description: Role Parent label
329
+ type: string
330
+ roleUpdatedBy:
331
+ description: Role Updated By
332
+ type: string
333
+ roleUpdatedOn:
334
+ description: Role Updated On
335
+ type: string
336
+ type:
337
+ description: Type
338
+ type: string
307
339
  ShareAccessLevelRepresentation:
308
340
  description: Representation of a share access level per entity.
309
341
  type: object