@salesforce/lds-adapters-platform-sharing 1.428.0-dev16 → 1.428.0-dev17

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.
@@ -630,7 +630,7 @@ const getGroupsForUserAdapterFactory = (luvio) => function sharing__getGroupsFor
630
630
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
631
631
  };
632
632
 
633
- const VERSION$l = "5cbfb84642634b52469e0a010f5161bc";
633
+ const VERSION$l = "de83360be0d4c7b58f221bed48bf3e04";
634
634
  function validate$l(obj, path = 'UserAssignmentRepresentation') {
635
635
  const v_error = (() => {
636
636
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -641,6 +641,11 @@ function validate$l(obj, path = 'UserAssignmentRepresentation') {
641
641
  if (typeof obj_assigned !== 'boolean') {
642
642
  return new TypeError('Expected "boolean" but received "' + typeof obj_assigned + '" (at "' + path_assigned + '")');
643
643
  }
644
+ const obj_memberType = obj.memberType;
645
+ const path_memberType = path + '.memberType';
646
+ if (typeof obj_memberType !== 'string') {
647
+ return new TypeError('Expected "string" but received "' + typeof obj_memberType + '" (at "' + path_memberType + '")');
648
+ }
644
649
  const obj_userId = obj.userId;
645
650
  const path_userId = path + '.userId';
646
651
  if (typeof obj_userId !== 'string') {
@@ -659,6 +664,10 @@ const select$r = function UserAssignmentRepresentationSelect() {
659
664
  name: 'assigned',
660
665
  kind: 'Scalar'
661
666
  },
667
+ {
668
+ name: 'memberType',
669
+ kind: 'Scalar'
670
+ },
662
671
  {
663
672
  name: 'userId',
664
673
  kind: 'Scalar'
@@ -672,6 +681,11 @@ function equals$l(existing, incoming) {
672
681
  if (!(existing_assigned === incoming_assigned)) {
673
682
  return false;
674
683
  }
684
+ const existing_memberType = existing.memberType;
685
+ const incoming_memberType = incoming.memberType;
686
+ if (!(existing_memberType === incoming_memberType)) {
687
+ return false;
688
+ }
675
689
  const existing_userId = existing.userId;
676
690
  const incoming_userId = incoming.userId;
677
691
  if (!(existing_userId === incoming_userId)) {
@@ -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 = "5cbfb84642634b52469e0a010f5161bc";
2
+ export declare const VERSION = "de83360be0d4c7b58f221bed48bf3e04";
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: UserAssignmentRepresentation, existing: UserAssignmentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UserAssignmentRepresentationNormalized;
@@ -16,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  export interface UserAssignmentRepresentationNormalized {
17
17
  /** Whether the user is assigned. */
18
18
  assigned: boolean;
19
+ /** The membership type: DIRECT, INDIRECT, or NONE. */
20
+ memberType: string;
19
21
  /** User ID. */
20
22
  userId: string;
21
23
  }
@@ -27,5 +29,6 @@ export interface UserAssignmentRepresentationNormalized {
27
29
  */
28
30
  export interface UserAssignmentRepresentation {
29
31
  assigned: boolean;
32
+ memberType: string;
30
33
  userId: string;
31
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-sharing",
3
- "version": "1.428.0-dev16",
3
+ "version": "1.428.0-dev17",
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.428.0-dev16"
43
+ "@salesforce/lds-bindings": "^1.428.0-dev17"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.428.0-dev16"
46
+ "@salesforce/lds-compiler-plugins": "^1.428.0-dev17"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -372,7 +372,7 @@ const addRemoveUserToGroupsAdapterFactory = (luvio) => function sharing__addRemo
372
372
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
373
373
  };
374
374
 
375
- const VERSION$n = "5cbfb84642634b52469e0a010f5161bc";
375
+ const VERSION$n = "de83360be0d4c7b58f221bed48bf3e04";
376
376
  function validate$n(obj, path = 'UserAssignmentRepresentation') {
377
377
  const v_error = (() => {
378
378
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -383,6 +383,11 @@ function validate$n(obj, path = 'UserAssignmentRepresentation') {
383
383
  if (typeof obj_assigned !== 'boolean') {
384
384
  return new TypeError('Expected "boolean" but received "' + typeof obj_assigned + '" (at "' + path_assigned + '")');
385
385
  }
386
+ const obj_memberType = obj.memberType;
387
+ const path_memberType = path + '.memberType';
388
+ if (typeof obj_memberType !== 'string') {
389
+ return new TypeError('Expected "string" but received "' + typeof obj_memberType + '" (at "' + path_memberType + '")');
390
+ }
386
391
  const obj_userId = obj.userId;
387
392
  const path_userId = path + '.userId';
388
393
  if (typeof obj_userId !== 'string') {
@@ -401,6 +406,10 @@ const select$t = function UserAssignmentRepresentationSelect() {
401
406
  name: 'assigned',
402
407
  kind: 'Scalar'
403
408
  },
409
+ {
410
+ name: 'memberType',
411
+ kind: 'Scalar'
412
+ },
404
413
  {
405
414
  name: 'userId',
406
415
  kind: 'Scalar'
@@ -414,6 +423,11 @@ function equals$n(existing, incoming) {
414
423
  if (!(existing_assigned === incoming_assigned)) {
415
424
  return false;
416
425
  }
426
+ const existing_memberType = existing.memberType;
427
+ const incoming_memberType = incoming.memberType;
428
+ if (!(existing_memberType === incoming_memberType)) {
429
+ return false;
430
+ }
417
431
  const existing_userId = existing.userId;
418
432
  const incoming_userId = incoming.userId;
419
433
  if (!(existing_userId === incoming_userId)) {
@@ -4218,4 +4232,4 @@ withDefaultLuvio((luvio) => {
4218
4232
  });
4219
4233
 
4220
4234
  export { addRemoveUserToGroups, addRemoveUserToGroups_imperative, compareUserAssignments, compareUserAssignments_imperative, getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupMembershipDetails, getPublicGroupMembershipDetails_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
4221
- // version: 1.428.0-dev16-07fd0f90d6
4235
+ // version: 1.428.0-dev17-fcfa02fa29
package/src/raml/api.raml CHANGED
@@ -856,6 +856,9 @@ types:
856
856
  assigned:
857
857
  description: Whether the user is assigned.
858
858
  type: boolean
859
+ memberType:
860
+ description: 'The membership type: DIRECT, INDIRECT, or NONE.'
861
+ type: string
859
862
  UserOrGroupRepresentation:
860
863
  description: Representation of user or group with whom an object can be shared.
861
864
  type: object