@salesforce/lds-adapters-platform-sharing 1.294.0 → 1.295.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.
@@ -743,7 +743,7 @@ function equals$b(existing, incoming) {
743
743
  }
744
744
 
745
745
  const TTL$3 = 300;
746
- const VERSION$a = "fb19878d4e3d9f3ea2576fcd8866350c";
746
+ const VERSION$a = "03d78a156e088ff425265ef77ffd578e";
747
747
  function validate$a(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
748
748
  const v_error = (() => {
749
749
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -779,6 +779,21 @@ function validate$a(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
779
779
  return new TypeError(message);
780
780
  }
781
781
  }
782
+ const obj_listRolesInternalAndPortalSubordinates = obj.listRolesInternalAndPortalSubordinates;
783
+ const path_listRolesInternalAndPortalSubordinates = path + '.listRolesInternalAndPortalSubordinates';
784
+ if (!ArrayIsArray(obj_listRolesInternalAndPortalSubordinates)) {
785
+ return new TypeError('Expected "array" but received "' + typeof obj_listRolesInternalAndPortalSubordinates + '" (at "' + path_listRolesInternalAndPortalSubordinates + '")');
786
+ }
787
+ for (let i = 0; i < obj_listRolesInternalAndPortalSubordinates.length; i++) {
788
+ const obj_listRolesInternalAndPortalSubordinates_item = obj_listRolesInternalAndPortalSubordinates[i];
789
+ const path_listRolesInternalAndPortalSubordinates_item = path_listRolesInternalAndPortalSubordinates + '[' + i + ']';
790
+ const referencepath_listRolesInternalAndPortalSubordinates_itemValidationError = validate$c(obj_listRolesInternalAndPortalSubordinates_item, path_listRolesInternalAndPortalSubordinates_item);
791
+ if (referencepath_listRolesInternalAndPortalSubordinates_itemValidationError !== null) {
792
+ let message = 'Object doesn\'t match RolesInGroupRepresentation (at "' + path_listRolesInternalAndPortalSubordinates_item + '")\n';
793
+ message += referencepath_listRolesInternalAndPortalSubordinates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
794
+ return new TypeError(message);
795
+ }
796
+ }
782
797
  const obj_listUsers = obj.listUsers;
783
798
  const path_listUsers = path + '.listUsers';
784
799
  if (!ArrayIsArray(obj_listUsers)) {
@@ -821,6 +836,12 @@ const select$e = function PublicGroupMembershipDetailsRepresentationSelect() {
821
836
  plural: true,
822
837
  selections: RolesInGroupRepresentation__selections
823
838
  },
839
+ {
840
+ name: 'listRolesInternalAndPortalSubordinates',
841
+ kind: 'Object',
842
+ plural: true,
843
+ selections: RolesInGroupRepresentation__selections
844
+ },
824
845
  {
825
846
  name: 'listUsers',
826
847
  kind: 'Object',
@@ -851,6 +872,16 @@ function equals$a(existing, incoming) {
851
872
  if (equals_listRolesAndInternalSubordinates_items === false) {
852
873
  return false;
853
874
  }
875
+ const existing_listRolesInternalAndPortalSubordinates = existing.listRolesInternalAndPortalSubordinates;
876
+ const incoming_listRolesInternalAndPortalSubordinates = incoming.listRolesInternalAndPortalSubordinates;
877
+ const equals_listRolesInternalAndPortalSubordinates_items = equalsArray(existing_listRolesInternalAndPortalSubordinates, incoming_listRolesInternalAndPortalSubordinates, (existing_listRolesInternalAndPortalSubordinates_item, incoming_listRolesInternalAndPortalSubordinates_item) => {
878
+ if (!(equals$c(existing_listRolesInternalAndPortalSubordinates_item, incoming_listRolesInternalAndPortalSubordinates_item))) {
879
+ return false;
880
+ }
881
+ });
882
+ if (equals_listRolesInternalAndPortalSubordinates_items === false) {
883
+ return false;
884
+ }
854
885
  const existing_listUsers = existing.listUsers;
855
886
  const incoming_listUsers = incoming.listUsers;
856
887
  const equals_listUsers_items = equalsArray(existing_listUsers, incoming_listUsers, (existing_listUsers_item, incoming_listUsers_item) => {
@@ -889,7 +920,7 @@ function select$d(luvio, params) {
889
920
  return select$e();
890
921
  }
891
922
  function keyBuilder$7(luvio, params) {
892
- return keyPrefix + '::PublicGroupMembershipDetailsRepresentation:(' + 'filterCriteria:' + params.body.filterCriteria + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'orderBy:' + params.body.orderBy + '::' + 'orderType:' + params.body.orderType + ')';
923
+ return keyPrefix + '::PublicGroupMembershipDetailsRepresentation:(' + 'filterCriteria:' + params.body.filterCriteria + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'operation:' + params.body.operation + '::' + 'orderBy:' + params.body.orderBy + '::' + 'orderType:' + params.body.orderType + '::' + 'selectedMembers:' + params.body.selectedMembers + ')';
893
924
  }
894
925
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
895
926
  getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
@@ -943,8 +974,10 @@ const getPublicGroupMembershipDetails_ConfigPropertyMetadata = [
943
974
  generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
944
975
  generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
945
976
  generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
977
+ generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
946
978
  generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
947
979
  generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
980
+ generateParamConfigMetadata('selectedMembers', true, 2 /* Body */, 0 /* String */, true),
948
981
  ];
949
982
  const getPublicGroupMembershipDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getPublicGroupMembershipDetails_ConfigPropertyMetadata);
950
983
  const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(getPublicGroupMembershipDetails_ConfigPropertyMetadata);
@@ -10,8 +10,10 @@ export interface GetPublicGroupMembershipDetailsConfig {
10
10
  groupId: string;
11
11
  limit: number;
12
12
  offset: number;
13
+ operation: string;
13
14
  orderBy: string;
14
15
  orderType: string;
16
+ selectedMembers: Array<string>;
15
17
  }
16
18
  export declare const createResourceParams: (config: GetPublicGroupMembershipDetailsConfig) => resources_postSharingPublicGroupsDetails_ResourceRequestConfig;
17
19
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetPublicGroupMembershipDetailsConfig): string;
@@ -6,8 +6,10 @@ export interface ResourceRequestConfig {
6
6
  groupId: string;
7
7
  limit: number;
8
8
  offset: number;
9
+ operation: string;
9
10
  orderBy: string;
10
11
  orderType: string;
12
+ selectedMembers: Array<string>;
11
13
  };
12
14
  }
13
15
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -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 = "79a978748c23f5462170fa9a804a5a14";
2
+ export declare const VERSION = "5b7bf199108f3b2c4c245127fa351735";
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: PublicGroupMembershipDetailsInputRepresentation, existing: PublicGroupMembershipDetailsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PublicGroupMembershipDetailsInputRepresentationNormalized;
@@ -22,10 +22,14 @@ export interface PublicGroupMembershipDetailsInputRepresentationNormalized {
22
22
  limit: number;
23
23
  /** Offset param */
24
24
  offset: number;
25
+ /** Operation like View, Delete */
26
+ operation: string;
25
27
  /** Sorts by given order by clause */
26
28
  orderBy: string;
27
29
  /** Orders the records in asc/desc */
28
30
  orderType: string;
31
+ /** Selected Members */
32
+ selectedMembers: Array<string>;
29
33
  }
30
34
  /**
31
35
  * Input representation for public group membership details.
@@ -38,6 +42,8 @@ export interface PublicGroupMembershipDetailsInputRepresentation {
38
42
  groupId: string;
39
43
  limit: number;
40
44
  offset: number;
45
+ operation: string;
41
46
  orderBy: string;
42
47
  orderType: string;
48
+ selectedMembers: Array<string>;
43
49
  }
@@ -2,7 +2,7 @@ import { RolesInGroupRepresentation as RolesInGroupRepresentation_RolesInGroupRe
2
2
  import { UserMembersInPublicGroupRepresentation as UserMembersInPublicGroupRepresentation_UserMembersInPublicGroupRepresentation } from './UserMembersInPublicGroupRepresentation';
3
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';
4
4
  export declare const TTL = 300;
5
- export declare const VERSION = "fb19878d4e3d9f3ea2576fcd8866350c";
5
+ export declare const VERSION = "03d78a156e088ff425265ef77ffd578e";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
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;
@@ -21,6 +21,8 @@ export interface PublicGroupMembershipDetailsRepresentationNormalized {
21
21
  listRoles: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
22
22
  /** Output response data for Roles and Internal Subordinates */
23
23
  listRolesAndInternalSubordinates: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
24
+ /** Output response data for Roles Internal and Portal Subordinates */
25
+ listRolesInternalAndPortalSubordinates: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
24
26
  /** Output response data for Users */
25
27
  listUsers: Array<UserMembersInPublicGroupRepresentation_UserMembersInPublicGroupRepresentation>;
26
28
  }
@@ -33,5 +35,6 @@ export interface PublicGroupMembershipDetailsRepresentationNormalized {
33
35
  export interface PublicGroupMembershipDetailsRepresentation {
34
36
  listRoles: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
35
37
  listRolesAndInternalSubordinates: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
38
+ listRolesInternalAndPortalSubordinates: Array<RolesInGroupRepresentation_RolesInGroupRepresentation>;
36
39
  listUsers: Array<UserMembersInPublicGroupRepresentation_UserMembersInPublicGroupRepresentation>;
37
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-sharing",
3
- "version": "1.294.0",
3
+ "version": "1.295.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.294.0"
43
+ "@salesforce/lds-bindings": "^1.295.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.294.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.295.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1065,7 +1065,7 @@ function equals$9(existing, incoming) {
1065
1065
  }
1066
1066
 
1067
1067
  const TTL$2 = 300;
1068
- const VERSION$8 = "fb19878d4e3d9f3ea2576fcd8866350c";
1068
+ const VERSION$8 = "03d78a156e088ff425265ef77ffd578e";
1069
1069
  function validate$8(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
1070
1070
  const v_error = (() => {
1071
1071
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1101,6 +1101,21 @@ function validate$8(obj, path = 'PublicGroupMembershipDetailsRepresentation') {
1101
1101
  return new TypeError(message);
1102
1102
  }
1103
1103
  }
1104
+ const obj_listRolesInternalAndPortalSubordinates = obj.listRolesInternalAndPortalSubordinates;
1105
+ const path_listRolesInternalAndPortalSubordinates = path + '.listRolesInternalAndPortalSubordinates';
1106
+ if (!ArrayIsArray(obj_listRolesInternalAndPortalSubordinates)) {
1107
+ return new TypeError('Expected "array" but received "' + typeof obj_listRolesInternalAndPortalSubordinates + '" (at "' + path_listRolesInternalAndPortalSubordinates + '")');
1108
+ }
1109
+ for (let i = 0; i < obj_listRolesInternalAndPortalSubordinates.length; i++) {
1110
+ const obj_listRolesInternalAndPortalSubordinates_item = obj_listRolesInternalAndPortalSubordinates[i];
1111
+ const path_listRolesInternalAndPortalSubordinates_item = path_listRolesInternalAndPortalSubordinates + '[' + i + ']';
1112
+ const referencepath_listRolesInternalAndPortalSubordinates_itemValidationError = validate$a(obj_listRolesInternalAndPortalSubordinates_item, path_listRolesInternalAndPortalSubordinates_item);
1113
+ if (referencepath_listRolesInternalAndPortalSubordinates_itemValidationError !== null) {
1114
+ let message = 'Object doesn\'t match RolesInGroupRepresentation (at "' + path_listRolesInternalAndPortalSubordinates_item + '")\n';
1115
+ message += referencepath_listRolesInternalAndPortalSubordinates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1116
+ return new TypeError(message);
1117
+ }
1118
+ }
1104
1119
  const obj_listUsers = obj.listUsers;
1105
1120
  const path_listUsers = path + '.listUsers';
1106
1121
  if (!ArrayIsArray(obj_listUsers)) {
@@ -1143,6 +1158,12 @@ const select$b = function PublicGroupMembershipDetailsRepresentationSelect() {
1143
1158
  plural: true,
1144
1159
  selections: RolesInGroupRepresentation__selections
1145
1160
  },
1161
+ {
1162
+ name: 'listRolesInternalAndPortalSubordinates',
1163
+ kind: 'Object',
1164
+ plural: true,
1165
+ selections: RolesInGroupRepresentation__selections
1166
+ },
1146
1167
  {
1147
1168
  name: 'listUsers',
1148
1169
  kind: 'Object',
@@ -1173,6 +1194,16 @@ function equals$8(existing, incoming) {
1173
1194
  if (equals_listRolesAndInternalSubordinates_items === false) {
1174
1195
  return false;
1175
1196
  }
1197
+ const existing_listRolesInternalAndPortalSubordinates = existing.listRolesInternalAndPortalSubordinates;
1198
+ const incoming_listRolesInternalAndPortalSubordinates = incoming.listRolesInternalAndPortalSubordinates;
1199
+ const equals_listRolesInternalAndPortalSubordinates_items = equalsArray(existing_listRolesInternalAndPortalSubordinates, incoming_listRolesInternalAndPortalSubordinates, (existing_listRolesInternalAndPortalSubordinates_item, incoming_listRolesInternalAndPortalSubordinates_item) => {
1200
+ if (!(equals$a(existing_listRolesInternalAndPortalSubordinates_item, incoming_listRolesInternalAndPortalSubordinates_item))) {
1201
+ return false;
1202
+ }
1203
+ });
1204
+ if (equals_listRolesInternalAndPortalSubordinates_items === false) {
1205
+ return false;
1206
+ }
1176
1207
  const existing_listUsers = existing.listUsers;
1177
1208
  const incoming_listUsers = incoming.listUsers;
1178
1209
  const equals_listUsers_items = equalsArray(existing_listUsers, incoming_listUsers, (existing_listUsers_item, incoming_listUsers_item) => {
@@ -1211,7 +1242,7 @@ function select$a(luvio, params) {
1211
1242
  return select$b();
1212
1243
  }
1213
1244
  function keyBuilder$5(luvio, params) {
1214
- return keyPrefix + '::PublicGroupMembershipDetailsRepresentation:(' + 'filterCriteria:' + params.body.filterCriteria + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'orderBy:' + params.body.orderBy + '::' + 'orderType:' + params.body.orderType + ')';
1245
+ return keyPrefix + '::PublicGroupMembershipDetailsRepresentation:(' + 'filterCriteria:' + params.body.filterCriteria + '::' + 'groupId:' + params.body.groupId + '::' + 'limit:' + params.body.limit + '::' + 'offset:' + params.body.offset + '::' + 'operation:' + params.body.operation + '::' + 'orderBy:' + params.body.orderBy + '::' + 'orderType:' + params.body.orderType + '::' + 'selectedMembers:' + params.body.selectedMembers + ')';
1215
1246
  }
1216
1247
  function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1217
1248
  getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
@@ -1265,8 +1296,10 @@ const getPublicGroupMembershipDetails_ConfigPropertyMetadata = [
1265
1296
  generateParamConfigMetadata('groupId', true, 2 /* Body */, 0 /* String */),
1266
1297
  generateParamConfigMetadata('limit', true, 2 /* Body */, 3 /* Integer */),
1267
1298
  generateParamConfigMetadata('offset', true, 2 /* Body */, 3 /* Integer */),
1299
+ generateParamConfigMetadata('operation', true, 2 /* Body */, 0 /* String */),
1268
1300
  generateParamConfigMetadata('orderBy', true, 2 /* Body */, 0 /* String */),
1269
1301
  generateParamConfigMetadata('orderType', true, 2 /* Body */, 0 /* String */),
1302
+ generateParamConfigMetadata('selectedMembers', true, 2 /* Body */, 0 /* String */, true),
1270
1303
  ];
1271
1304
  const getPublicGroupMembershipDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getPublicGroupMembershipDetails_ConfigPropertyMetadata);
1272
1305
  const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getPublicGroupMembershipDetails_ConfigPropertyMetadata);
@@ -2468,4 +2501,4 @@ withDefaultLuvio((luvio) => {
2468
2501
  });
2469
2502
 
2470
2503
  export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupMembershipDetails, getPublicGroupMembershipDetails_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
2471
- // version: 1.294.0-e7eb16228
2504
+ // version: 1.295.0-e85f207c7
package/src/raml/api.raml CHANGED
@@ -129,12 +129,20 @@ types:
129
129
  offset:
130
130
  description: Offset param
131
131
  type: integer
132
+ operation:
133
+ description: Operation like View, Delete
134
+ type: string
132
135
  orderBy:
133
136
  description: Sorts by given order by clause
134
137
  type: string
135
138
  orderType:
136
139
  description: Orders the records in asc/desc
137
140
  type: string
141
+ selectedMembers:
142
+ description: Selected Members
143
+ type: array
144
+ items:
145
+ type: string
138
146
  PublicGroupMembershipDetailsRepresentation:
139
147
  description: Parent output representation for all form of data emitted by this
140
148
  API
@@ -150,6 +158,11 @@ types:
150
158
  type: array
151
159
  items:
152
160
  type: RolesInGroupRepresentation
161
+ listRolesInternalAndPortalSubordinates:
162
+ description: Output response data for Roles Internal and Portal Subordinates
163
+ type: array
164
+ items:
165
+ type: RolesInGroupRepresentation
153
166
  listUsers:
154
167
  description: Output response data for Users
155
168
  type: array