@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/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,7 +810,127 @@ const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsFor
810
810
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
811
811
  };
812
812
 
813
- const VERSION$9 = "6abb89d83ef158efe13c19652a019d40";
813
+ const VERSION$a = "23a331717bb19992d3c37b818fc7008a";
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_dataId = obj.dataId;
820
+ const path_dataId = path + '.dataId';
821
+ if (typeof obj_dataId !== 'string') {
822
+ return new TypeError('Expected "string" but received "' + typeof obj_dataId + '" (at "' + path_dataId + '")');
823
+ }
824
+ const obj_groupType = obj.groupType;
825
+ const path_groupType = path + '.groupType';
826
+ if (typeof obj_groupType !== 'string') {
827
+ return new TypeError('Expected "string" but received "' + typeof obj_groupType + '" (at "' + path_groupType + '")');
828
+ }
829
+ const obj_roleName = obj.roleName;
830
+ const path_roleName = path + '.roleName';
831
+ if (typeof obj_roleName !== 'string') {
832
+ return new TypeError('Expected "string" but received "' + typeof obj_roleName + '" (at "' + path_roleName + '")');
833
+ }
834
+ const obj_roleParentDevName = obj.roleParentDevName;
835
+ const path_roleParentDevName = path + '.roleParentDevName';
836
+ if (typeof obj_roleParentDevName !== 'string') {
837
+ return new TypeError('Expected "string" but received "' + typeof obj_roleParentDevName + '" (at "' + path_roleParentDevName + '")');
838
+ }
839
+ const obj_roleParentLabel = obj.roleParentLabel;
840
+ const path_roleParentLabel = path + '.roleParentLabel';
841
+ if (typeof obj_roleParentLabel !== 'string') {
842
+ return new TypeError('Expected "string" but received "' + typeof obj_roleParentLabel + '" (at "' + path_roleParentLabel + '")');
843
+ }
844
+ const obj_roleUpdatedBy = obj.roleUpdatedBy;
845
+ const path_roleUpdatedBy = path + '.roleUpdatedBy';
846
+ if (typeof obj_roleUpdatedBy !== 'string') {
847
+ return new TypeError('Expected "string" but received "' + typeof obj_roleUpdatedBy + '" (at "' + path_roleUpdatedBy + '")');
848
+ }
849
+ const obj_roleUpdatedOn = obj.roleUpdatedOn;
850
+ const path_roleUpdatedOn = path + '.roleUpdatedOn';
851
+ if (typeof obj_roleUpdatedOn !== 'string') {
852
+ return new TypeError('Expected "string" but received "' + typeof obj_roleUpdatedOn + '" (at "' + path_roleUpdatedOn + '")');
853
+ }
854
+ })();
855
+ return v_error === undefined ? null : v_error;
856
+ }
857
+ const select$d = function RolesInGroupRepresentationSelect() {
858
+ return {
859
+ kind: 'Fragment',
860
+ version: VERSION$a,
861
+ private: [],
862
+ selections: [
863
+ {
864
+ name: 'dataId',
865
+ kind: 'Scalar'
866
+ },
867
+ {
868
+ name: 'groupType',
869
+ kind: 'Scalar'
870
+ },
871
+ {
872
+ name: 'roleName',
873
+ kind: 'Scalar'
874
+ },
875
+ {
876
+ name: 'roleParentDevName',
877
+ kind: 'Scalar'
878
+ },
879
+ {
880
+ name: 'roleParentLabel',
881
+ kind: 'Scalar'
882
+ },
883
+ {
884
+ name: 'roleUpdatedBy',
885
+ kind: 'Scalar'
886
+ },
887
+ {
888
+ name: 'roleUpdatedOn',
889
+ kind: 'Scalar'
890
+ }
891
+ ]
892
+ };
893
+ };
894
+ function equals$a(existing, incoming) {
895
+ const existing_dataId = existing.dataId;
896
+ const incoming_dataId = incoming.dataId;
897
+ if (!(existing_dataId === incoming_dataId)) {
898
+ return false;
899
+ }
900
+ const existing_groupType = existing.groupType;
901
+ const incoming_groupType = incoming.groupType;
902
+ if (!(existing_groupType === incoming_groupType)) {
903
+ return false;
904
+ }
905
+ const existing_roleName = existing.roleName;
906
+ const incoming_roleName = incoming.roleName;
907
+ if (!(existing_roleName === incoming_roleName)) {
908
+ return false;
909
+ }
910
+ const existing_roleParentDevName = existing.roleParentDevName;
911
+ const incoming_roleParentDevName = incoming.roleParentDevName;
912
+ if (!(existing_roleParentDevName === incoming_roleParentDevName)) {
913
+ return false;
914
+ }
915
+ const existing_roleParentLabel = existing.roleParentLabel;
916
+ const incoming_roleParentLabel = incoming.roleParentLabel;
917
+ if (!(existing_roleParentLabel === incoming_roleParentLabel)) {
918
+ return false;
919
+ }
920
+ const existing_roleUpdatedBy = existing.roleUpdatedBy;
921
+ const incoming_roleUpdatedBy = incoming.roleUpdatedBy;
922
+ if (!(existing_roleUpdatedBy === incoming_roleUpdatedBy)) {
923
+ return false;
924
+ }
925
+ const existing_roleUpdatedOn = existing.roleUpdatedOn;
926
+ const incoming_roleUpdatedOn = incoming.roleUpdatedOn;
927
+ if (!(existing_roleUpdatedOn === incoming_roleUpdatedOn)) {
928
+ return false;
929
+ }
930
+ return true;
931
+ }
932
+
933
+ const VERSION$9 = "81212e87b01ada2a285c551aadcec218";
814
934
  function validate$9(obj, path = 'UserMembersInPublicGroupRepresentation') {
815
935
  const v_error = (() => {
816
936
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -821,30 +941,40 @@ function validate$9(obj, path = 'UserMembersInPublicGroupRepresentation') {
821
941
  if (typeof obj_alias !== 'string') {
822
942
  return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
823
943
  }
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 + '")');
944
+ const obj_dataId = obj.dataId;
945
+ const path_dataId = path + '.dataId';
946
+ if (typeof obj_dataId !== 'string') {
947
+ return new TypeError('Expected "string" but received "' + typeof obj_dataId + '" (at "' + path_dataId + '")');
838
948
  }
839
949
  const obj_status = obj.status;
840
950
  const path_status = path + '.status';
841
951
  if (typeof obj_status !== 'boolean') {
842
952
  return new TypeError('Expected "boolean" but received "' + typeof obj_status + '" (at "' + path_status + '")');
843
953
  }
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 + '")');
954
+ const obj_userFullName = obj.userFullName;
955
+ const path_userFullName = path + '.userFullName';
956
+ if (typeof obj_userFullName !== 'string') {
957
+ return new TypeError('Expected "string" but received "' + typeof obj_userFullName + '" (at "' + path_userFullName + '")');
958
+ }
959
+ const obj_userName = obj.userName;
960
+ const path_userName = path + '.userName';
961
+ if (typeof obj_userName !== 'string') {
962
+ return new TypeError('Expected "string" but received "' + typeof obj_userName + '" (at "' + path_userName + '")');
963
+ }
964
+ const obj_userProfile = obj.userProfile;
965
+ const path_userProfile = path + '.userProfile';
966
+ if (typeof obj_userProfile !== 'string') {
967
+ return new TypeError('Expected "string" but received "' + typeof obj_userProfile + '" (at "' + path_userProfile + '")');
968
+ }
969
+ const obj_userRoleName = obj.userRoleName;
970
+ const path_userRoleName = path + '.userRoleName';
971
+ if (typeof obj_userRoleName !== 'string') {
972
+ return new TypeError('Expected "string" but received "' + typeof obj_userRoleName + '" (at "' + path_userRoleName + '")');
973
+ }
974
+ const obj_userType = obj.userType;
975
+ const path_userType = path + '.userType';
976
+ if (typeof obj_userType !== 'string') {
977
+ return new TypeError('Expected "string" but received "' + typeof obj_userType + '" (at "' + path_userType + '")');
848
978
  }
849
979
  })();
850
980
  return v_error === undefined ? null : v_error;
@@ -860,23 +990,31 @@ const select$c = function UserMembersInPublicGroupRepresentationSelect() {
860
990
  kind: 'Scalar'
861
991
  },
862
992
  {
863
- name: 'name',
993
+ name: 'dataId',
864
994
  kind: 'Scalar'
865
995
  },
866
996
  {
867
- name: 'profile',
997
+ name: 'status',
868
998
  kind: 'Scalar'
869
999
  },
870
1000
  {
871
- name: 'role',
1001
+ name: 'userFullName',
872
1002
  kind: 'Scalar'
873
1003
  },
874
1004
  {
875
- name: 'status',
1005
+ name: 'userName',
1006
+ kind: 'Scalar'
1007
+ },
1008
+ {
1009
+ name: 'userProfile',
876
1010
  kind: 'Scalar'
877
1011
  },
878
1012
  {
879
- name: 'username',
1013
+ name: 'userRoleName',
1014
+ kind: 'Scalar'
1015
+ },
1016
+ {
1017
+ name: 'userType',
880
1018
  kind: 'Scalar'
881
1019
  }
882
1020
  ]
@@ -893,36 +1031,76 @@ function equals$9(existing, incoming) {
893
1031
  if (!(existing_alias === incoming_alias)) {
894
1032
  return false;
895
1033
  }
896
- const existing_name = existing.name;
897
- const incoming_name = incoming.name;
898
- if (!(existing_name === incoming_name)) {
1034
+ const existing_dataId = existing.dataId;
1035
+ const incoming_dataId = incoming.dataId;
1036
+ if (!(existing_dataId === incoming_dataId)) {
1037
+ return false;
1038
+ }
1039
+ const existing_userFullName = existing.userFullName;
1040
+ const incoming_userFullName = incoming.userFullName;
1041
+ if (!(existing_userFullName === incoming_userFullName)) {
1042
+ return false;
1043
+ }
1044
+ const existing_userName = existing.userName;
1045
+ const incoming_userName = incoming.userName;
1046
+ if (!(existing_userName === incoming_userName)) {
899
1047
  return false;
900
1048
  }
901
- const existing_profile = existing.profile;
902
- const incoming_profile = incoming.profile;
903
- if (!(existing_profile === incoming_profile)) {
1049
+ const existing_userProfile = existing.userProfile;
1050
+ const incoming_userProfile = incoming.userProfile;
1051
+ if (!(existing_userProfile === incoming_userProfile)) {
904
1052
  return false;
905
1053
  }
906
- const existing_role = existing.role;
907
- const incoming_role = incoming.role;
908
- if (!(existing_role === incoming_role)) {
1054
+ const existing_userRoleName = existing.userRoleName;
1055
+ const incoming_userRoleName = incoming.userRoleName;
1056
+ if (!(existing_userRoleName === incoming_userRoleName)) {
909
1057
  return false;
910
1058
  }
911
- const existing_username = existing.username;
912
- const incoming_username = incoming.username;
913
- if (!(existing_username === incoming_username)) {
1059
+ const existing_userType = existing.userType;
1060
+ const incoming_userType = incoming.userType;
1061
+ if (!(existing_userType === incoming_userType)) {
914
1062
  return false;
915
1063
  }
916
1064
  return true;
917
1065
  }
918
1066
 
919
1067
  const TTL$2 = 300;
920
- const VERSION$8 = "5959939d2b282a69110b986258cb3620";
1068
+ const VERSION$8 = "fb19878d4e3d9f3ea2576fcd8866350c";
921
1069
  function validate$8(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
922
1070
  const v_error = (() => {
923
1071
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
924
1072
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
925
1073
  }
1074
+ const obj_listRoles = obj.listRoles;
1075
+ const path_listRoles = path + '.listRoles';
1076
+ if (!ArrayIsArray(obj_listRoles)) {
1077
+ return new TypeError('Expected "array" but received "' + typeof obj_listRoles + '" (at "' + path_listRoles + '")');
1078
+ }
1079
+ for (let i = 0; i < obj_listRoles.length; i++) {
1080
+ const obj_listRoles_item = obj_listRoles[i];
1081
+ const path_listRoles_item = path_listRoles + '[' + i + ']';
1082
+ const referencepath_listRoles_itemValidationError = validate$a(obj_listRoles_item, path_listRoles_item);
1083
+ if (referencepath_listRoles_itemValidationError !== null) {
1084
+ let message = 'Object doesn\'t match RolesInGroupRepresentation (at "' + path_listRoles_item + '")\n';
1085
+ message += referencepath_listRoles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1086
+ return new TypeError(message);
1087
+ }
1088
+ }
1089
+ const obj_listRolesAndInternalSubordinates = obj.listRolesAndInternalSubordinates;
1090
+ const path_listRolesAndInternalSubordinates = path + '.listRolesAndInternalSubordinates';
1091
+ if (!ArrayIsArray(obj_listRolesAndInternalSubordinates)) {
1092
+ return new TypeError('Expected "array" but received "' + typeof obj_listRolesAndInternalSubordinates + '" (at "' + path_listRolesAndInternalSubordinates + '")');
1093
+ }
1094
+ for (let i = 0; i < obj_listRolesAndInternalSubordinates.length; i++) {
1095
+ const obj_listRolesAndInternalSubordinates_item = obj_listRolesAndInternalSubordinates[i];
1096
+ const path_listRolesAndInternalSubordinates_item = path_listRolesAndInternalSubordinates + '[' + i + ']';
1097
+ const referencepath_listRolesAndInternalSubordinates_itemValidationError = validate$a(obj_listRolesAndInternalSubordinates_item, path_listRolesAndInternalSubordinates_item);
1098
+ if (referencepath_listRolesAndInternalSubordinates_itemValidationError !== null) {
1099
+ let message = 'Object doesn\'t match RolesInGroupRepresentation (at "' + path_listRolesAndInternalSubordinates_item + '")\n';
1100
+ message += referencepath_listRolesAndInternalSubordinates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1101
+ return new TypeError(message);
1102
+ }
1103
+ }
926
1104
  const obj_listUsers = obj.listUsers;
927
1105
  const path_listUsers = path + '.listUsers';
928
1106
  if (!ArrayIsArray(obj_listUsers)) {
@@ -946,12 +1124,25 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
946
1124
  return input;
947
1125
  }
948
1126
  const select$b = function PublicGroupMembershipDetailsRepresentationSelect() {
1127
+ const { selections: RolesInGroupRepresentation__selections, opaque: RolesInGroupRepresentation__opaque, } = select$d();
949
1128
  const { selections: UserMembersInPublicGroupRepresentation__selections, opaque: UserMembersInPublicGroupRepresentation__opaque, } = select$c();
950
1129
  return {
951
1130
  kind: 'Fragment',
952
1131
  version: VERSION$8,
953
1132
  private: [],
954
1133
  selections: [
1134
+ {
1135
+ name: 'listRoles',
1136
+ kind: 'Object',
1137
+ plural: true,
1138
+ selections: RolesInGroupRepresentation__selections
1139
+ },
1140
+ {
1141
+ name: 'listRolesAndInternalSubordinates',
1142
+ kind: 'Object',
1143
+ plural: true,
1144
+ selections: RolesInGroupRepresentation__selections
1145
+ },
955
1146
  {
956
1147
  name: 'listUsers',
957
1148
  kind: 'Object',
@@ -962,6 +1153,26 @@ const select$b = function PublicGroupMembershipDetailsRepresentationSelect() {
962
1153
  };
963
1154
  };
964
1155
  function equals$8(existing, incoming) {
1156
+ const existing_listRoles = existing.listRoles;
1157
+ const incoming_listRoles = incoming.listRoles;
1158
+ const equals_listRoles_items = equalsArray(existing_listRoles, incoming_listRoles, (existing_listRoles_item, incoming_listRoles_item) => {
1159
+ if (!(equals$a(existing_listRoles_item, incoming_listRoles_item))) {
1160
+ return false;
1161
+ }
1162
+ });
1163
+ if (equals_listRoles_items === false) {
1164
+ return false;
1165
+ }
1166
+ const existing_listRolesAndInternalSubordinates = existing.listRolesAndInternalSubordinates;
1167
+ const incoming_listRolesAndInternalSubordinates = incoming.listRolesAndInternalSubordinates;
1168
+ const equals_listRolesAndInternalSubordinates_items = equalsArray(existing_listRolesAndInternalSubordinates, incoming_listRolesAndInternalSubordinates, (existing_listRolesAndInternalSubordinates_item, incoming_listRolesAndInternalSubordinates_item) => {
1169
+ if (!(equals$a(existing_listRolesAndInternalSubordinates_item, incoming_listRolesAndInternalSubordinates_item))) {
1170
+ return false;
1171
+ }
1172
+ });
1173
+ if (equals_listRolesAndInternalSubordinates_items === false) {
1174
+ return false;
1175
+ }
965
1176
  const existing_listUsers = existing.listUsers;
966
1177
  const incoming_listUsers = incoming.listUsers;
967
1178
  const equals_listUsers_items = equalsArray(existing_listUsers, incoming_listUsers, (existing_listUsers_item, incoming_listUsers_item) => {
@@ -2257,4 +2468,4 @@ withDefaultLuvio((luvio) => {
2257
2468
  });
2258
2469
 
2259
2470
  export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupMembershipDetails, getPublicGroupMembershipDetails_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
2260
- // version: 1.292.0-5ad1fe2ca
2471
+ // version: 1.294.0-e7eb16228