@salesforce/lds-adapters-platform-sharing 1.347.0 → 1.348.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,7 +91,7 @@ function createLink(ref) {
91
91
  };
92
92
  }
93
93
 
94
- const VERSION$i = "0769937b310d74bd11d5782eebfc254a";
94
+ const VERSION$i = "56d2fddc6bd67f680c2301e397df75c1";
95
95
  function validate$i(obj, path = 'PublicGroupRepresentation') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -127,6 +127,11 @@ function validate$i(obj, path = 'PublicGroupRepresentation') {
127
127
  if (typeof obj_includeBosses !== 'boolean') {
128
128
  return new TypeError('Expected "boolean" but received "' + typeof obj_includeBosses + '" (at "' + path_includeBosses + '")');
129
129
  }
130
+ const obj_membershipLevel = obj.membershipLevel;
131
+ const path_membershipLevel = path + '.membershipLevel';
132
+ if (typeof obj_membershipLevel !== 'string') {
133
+ return new TypeError('Expected "string" but received "' + typeof obj_membershipLevel + '" (at "' + path_membershipLevel + '")');
134
+ }
130
135
  const obj_name = obj.name;
131
136
  const path_name = path + '.name';
132
137
  if (typeof obj_name !== 'string') {
@@ -165,6 +170,10 @@ const select$o = function PublicGroupRepresentationSelect() {
165
170
  name: 'includeBosses',
166
171
  kind: 'Scalar'
167
172
  },
173
+ {
174
+ name: 'membershipLevel',
175
+ kind: 'Scalar'
176
+ },
168
177
  {
169
178
  name: 'name',
170
179
  kind: 'Scalar'
@@ -203,6 +212,11 @@ function equals$i(existing, incoming) {
203
212
  if (!(existing_groupId === incoming_groupId)) {
204
213
  return false;
205
214
  }
215
+ const existing_membershipLevel = existing.membershipLevel;
216
+ const incoming_membershipLevel = incoming.membershipLevel;
217
+ if (!(existing_membershipLevel === incoming_membershipLevel)) {
218
+ return false;
219
+ }
206
220
  const existing_name = existing.name;
207
221
  const incoming_name = incoming.name;
208
222
  if (!(existing_name === incoming_name)) {
@@ -211,7 +225,7 @@ function equals$i(existing, incoming) {
211
225
  return true;
212
226
  }
213
227
 
214
- const VERSION$h = "b984cbd781a1fe08882148dd1f42ac20";
228
+ const VERSION$h = "86395e9e3ea80502810c8109ecd94d68";
215
229
  function validate$h(obj, path = 'QueueRepresentation') {
216
230
  const v_error = (() => {
217
231
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -222,6 +236,11 @@ function validate$h(obj, path = 'QueueRepresentation') {
222
236
  if (typeof obj_developerName !== 'string') {
223
237
  return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
224
238
  }
239
+ const obj_membershipLevel = obj.membershipLevel;
240
+ const path_membershipLevel = path + '.membershipLevel';
241
+ if (typeof obj_membershipLevel !== 'string') {
242
+ return new TypeError('Expected "string" but received "' + typeof obj_membershipLevel + '" (at "' + path_membershipLevel + '")');
243
+ }
225
244
  const obj_modifiedById = obj.modifiedById;
226
245
  const path_modifiedById = path + '.modifiedById';
227
246
  if (typeof obj_modifiedById !== 'string') {
@@ -270,6 +289,10 @@ const select$n = function QueueRepresentationSelect() {
270
289
  name: 'developerName',
271
290
  kind: 'Scalar'
272
291
  },
292
+ {
293
+ name: 'membershipLevel',
294
+ kind: 'Scalar'
295
+ },
273
296
  {
274
297
  name: 'modifiedById',
275
298
  kind: 'Scalar'
@@ -307,6 +330,11 @@ function equals$h(existing, incoming) {
307
330
  if (!(existing_developerName === incoming_developerName)) {
308
331
  return false;
309
332
  }
333
+ const existing_membershipLevel = existing.membershipLevel;
334
+ const incoming_membershipLevel = incoming.membershipLevel;
335
+ if (!(existing_membershipLevel === incoming_membershipLevel)) {
336
+ return false;
337
+ }
310
338
  const existing_modifiedById = existing.modifiedById;
311
339
  const incoming_modifiedById = incoming.modifiedById;
312
340
  if (!(existing_modifiedById === incoming_modifiedById)) {
@@ -1,5 +1,5 @@
1
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 = "0769937b310d74bd11d5782eebfc254a";
2
+ export declare const VERSION = "56d2fddc6bd67f680c2301e397df75c1";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: PublicGroupRepresentation, existing: PublicGroupRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PublicGroupRepresentationNormalized;
@@ -26,6 +26,8 @@ export interface PublicGroupRepresentationNormalized {
26
26
  groupId: string;
27
27
  /** The Grant Access Using Hierarchy status of the Public Group. */
28
28
  includeBosses: boolean;
29
+ /** Indicates if the user is a direct/indirect member of the Group */
30
+ membershipLevel: string;
29
31
  /** The name of the Public Group. */
30
32
  name: string;
31
33
  }
@@ -42,5 +44,6 @@ export interface PublicGroupRepresentation {
42
44
  developerName: string;
43
45
  groupId: string;
44
46
  includeBosses: boolean;
47
+ membershipLevel: string;
45
48
  name: string;
46
49
  }
@@ -1,5 +1,5 @@
1
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 = "b984cbd781a1fe08882148dd1f42ac20";
2
+ export declare const VERSION = "86395e9e3ea80502810c8109ecd94d68";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: QueueRepresentation, existing: QueueRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): QueueRepresentationNormalized;
@@ -16,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  export interface QueueRepresentationNormalized {
17
17
  /** The API name of the queue. */
18
18
  developerName: string;
19
+ /** Indicates if the user is a direct/indirect member of the Queue */
20
+ membershipLevel: string;
19
21
  /** The Id of user who last modified the Queue. */
20
22
  modifiedById: string;
21
23
  /** The name of user who last modified the Queue. */
@@ -39,6 +41,7 @@ export interface QueueRepresentationNormalized {
39
41
  */
40
42
  export interface QueueRepresentation {
41
43
  developerName: string;
44
+ membershipLevel: string;
42
45
  modifiedById: string;
43
46
  modifiedByName: string;
44
47
  modifiedDate: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-sharing",
3
- "version": "1.347.0",
3
+ "version": "1.348.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.347.0"
43
+ "@salesforce/lds-bindings": "^1.348.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.347.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.348.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -684,7 +684,7 @@ const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects
684
684
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
685
685
  };
686
686
 
687
- const VERSION$f = "0769937b310d74bd11d5782eebfc254a";
687
+ const VERSION$f = "56d2fddc6bd67f680c2301e397df75c1";
688
688
  function validate$f(obj, path = 'PublicGroupRepresentation') {
689
689
  const v_error = (() => {
690
690
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -720,6 +720,11 @@ function validate$f(obj, path = 'PublicGroupRepresentation') {
720
720
  if (typeof obj_includeBosses !== 'boolean') {
721
721
  return new TypeError('Expected "boolean" but received "' + typeof obj_includeBosses + '" (at "' + path_includeBosses + '")');
722
722
  }
723
+ const obj_membershipLevel = obj.membershipLevel;
724
+ const path_membershipLevel = path + '.membershipLevel';
725
+ if (typeof obj_membershipLevel !== 'string') {
726
+ return new TypeError('Expected "string" but received "' + typeof obj_membershipLevel + '" (at "' + path_membershipLevel + '")');
727
+ }
723
728
  const obj_name = obj.name;
724
729
  const path_name = path + '.name';
725
730
  if (typeof obj_name !== 'string') {
@@ -758,6 +763,10 @@ const select$j = function PublicGroupRepresentationSelect() {
758
763
  name: 'includeBosses',
759
764
  kind: 'Scalar'
760
765
  },
766
+ {
767
+ name: 'membershipLevel',
768
+ kind: 'Scalar'
769
+ },
761
770
  {
762
771
  name: 'name',
763
772
  kind: 'Scalar'
@@ -796,6 +805,11 @@ function equals$f(existing, incoming) {
796
805
  if (!(existing_groupId === incoming_groupId)) {
797
806
  return false;
798
807
  }
808
+ const existing_membershipLevel = existing.membershipLevel;
809
+ const incoming_membershipLevel = incoming.membershipLevel;
810
+ if (!(existing_membershipLevel === incoming_membershipLevel)) {
811
+ return false;
812
+ }
799
813
  const existing_name = existing.name;
800
814
  const incoming_name = incoming.name;
801
815
  if (!(existing_name === incoming_name)) {
@@ -804,7 +818,7 @@ function equals$f(existing, incoming) {
804
818
  return true;
805
819
  }
806
820
 
807
- const VERSION$e = "b984cbd781a1fe08882148dd1f42ac20";
821
+ const VERSION$e = "86395e9e3ea80502810c8109ecd94d68";
808
822
  function validate$e(obj, path = 'QueueRepresentation') {
809
823
  const v_error = (() => {
810
824
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -815,6 +829,11 @@ function validate$e(obj, path = 'QueueRepresentation') {
815
829
  if (typeof obj_developerName !== 'string') {
816
830
  return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
817
831
  }
832
+ const obj_membershipLevel = obj.membershipLevel;
833
+ const path_membershipLevel = path + '.membershipLevel';
834
+ if (typeof obj_membershipLevel !== 'string') {
835
+ return new TypeError('Expected "string" but received "' + typeof obj_membershipLevel + '" (at "' + path_membershipLevel + '")');
836
+ }
818
837
  const obj_modifiedById = obj.modifiedById;
819
838
  const path_modifiedById = path + '.modifiedById';
820
839
  if (typeof obj_modifiedById !== 'string') {
@@ -863,6 +882,10 @@ const select$i = function QueueRepresentationSelect() {
863
882
  name: 'developerName',
864
883
  kind: 'Scalar'
865
884
  },
885
+ {
886
+ name: 'membershipLevel',
887
+ kind: 'Scalar'
888
+ },
866
889
  {
867
890
  name: 'modifiedById',
868
891
  kind: 'Scalar'
@@ -900,6 +923,11 @@ function equals$e(existing, incoming) {
900
923
  if (!(existing_developerName === incoming_developerName)) {
901
924
  return false;
902
925
  }
926
+ const existing_membershipLevel = existing.membershipLevel;
927
+ const incoming_membershipLevel = incoming.membershipLevel;
928
+ if (!(existing_membershipLevel === incoming_membershipLevel)) {
929
+ return false;
930
+ }
903
931
  const existing_modifiedById = existing.modifiedById;
904
932
  const incoming_modifiedById = incoming.modifiedById;
905
933
  if (!(existing_modifiedById === incoming_modifiedById)) {
@@ -3418,4 +3446,4 @@ withDefaultLuvio((luvio) => {
3418
3446
  });
3419
3447
 
3420
3448
  export { addRemoveUserToGroups, addRemoveUserToGroups_imperative, getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupMembershipDetails, getPublicGroupMembershipDetails_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
3421
- // version: 1.347.0-31679f40fc
3449
+ // version: 1.348.0-4aa8c0c0cb
package/src/raml/api.raml CHANGED
@@ -268,6 +268,9 @@ types:
268
268
  createdDate:
269
269
  description: The date when the public group was created.
270
270
  type: string
271
+ membershipLevel:
272
+ description: Indicates if the user is a direct/indirect member of the Group
273
+ type: string
271
274
  UserGroupMembershipDetailsInputRepresentation:
272
275
  description: Input representation for Adding Removing Membership from Group resource
273
276
  type: object
@@ -374,6 +377,9 @@ types:
374
377
  modifiedDate:
375
378
  description: The date when the Queue was last modified.
376
379
  type: string
380
+ membershipLevel:
381
+ description: Indicates if the user is a direct/indirect member of the Queue
382
+ type: string
377
383
  QueuesSharingRepresentation:
378
384
  description: Output representation of queues with given group as a member
379
385
  type: object