@salesforce/lds-adapters-platform-sharing 0.1.0-dev1

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.
Files changed (70) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-sharing.js +3363 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/addRemoveUserToGroups.d.ts +30 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getAllSobjects.d.ts +29 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getGroupsForUser.d.ts +34 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getPublicGroupMembershipDetails.d.ts +34 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getPublicGroupShareData.d.ts +33 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getUserPermissions.d.ts +27 -0
  10. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
  11. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +13 -0
  12. package/dist/es/es2018/types/src/generated/resources/getSharingGroupsForUserByGroupTypeAndUserId.d.ts +24 -0
  13. package/dist/es/es2018/types/src/generated/resources/getSharingRecordAccessDetailByRecordIdAndUserId.d.ts +20 -0
  14. package/dist/es/es2018/types/src/generated/resources/getSharingRulesByEntityApiName.d.ts +18 -0
  15. package/dist/es/es2018/types/src/generated/resources/getSharingShareAccessLevels.d.ts +12 -0
  16. package/dist/es/es2018/types/src/generated/resources/getSharingShareAccessLevelsByObjectApiName.d.ts +15 -0
  17. package/dist/es/es2018/types/src/generated/resources/getSharingSobjects.d.ts +17 -0
  18. package/dist/es/es2018/types/src/generated/resources/getSharingUserAccessLevelsByRecordId.d.ts +19 -0
  19. package/dist/es/es2018/types/src/generated/resources/getSharingUserOrGroupTypes.d.ts +12 -0
  20. package/dist/es/es2018/types/src/generated/resources/getSharingUserPermissions.d.ts +15 -0
  21. package/dist/es/es2018/types/src/generated/resources/getSharingUsersOrGroups.d.ts +19 -0
  22. package/dist/es/es2018/types/src/generated/resources/postSharingAddRemoveUserToGroups.d.ts +18 -0
  23. package/dist/es/es2018/types/src/generated/resources/postSharingPublicGroupsDetails.d.ts +22 -0
  24. package/dist/es/es2018/types/src/generated/resources/postSharingPublicGroupsSummary.d.ts +21 -0
  25. package/dist/es/es2018/types/src/generated/types/AccessLevelFieldRepresentation.d.ts +37 -0
  26. package/dist/es/es2018/types/src/generated/types/AccessLevelRepresentation.d.ts +34 -0
  27. package/dist/es/es2018/types/src/generated/types/FilterCriteriaInputRepresentation.d.ts +34 -0
  28. package/dist/es/es2018/types/src/generated/types/GroupCollectionRepresentation.d.ts +34 -0
  29. package/dist/es/es2018/types/src/generated/types/IncludedGroupsSharingRepresentation.d.ts +40 -0
  30. package/dist/es/es2018/types/src/generated/types/ListViewGroupSharingRepresentation.d.ts +37 -0
  31. package/dist/es/es2018/types/src/generated/types/PublicGroupMembersInPublicGroupRepresentation.d.ts +46 -0
  32. package/dist/es/es2018/types/src/generated/types/PublicGroupMembershipDetailsInputRepresentation.d.ts +49 -0
  33. package/dist/es/es2018/types/src/generated/types/PublicGroupMembershipDetailsRepresentation.d.ts +53 -0
  34. package/dist/es/es2018/types/src/generated/types/PublicGroupRepresentation.d.ts +49 -0
  35. package/dist/es/es2018/types/src/generated/types/PublicGroupSummaryInputRepresentation.d.ts +46 -0
  36. package/dist/es/es2018/types/src/generated/types/PublicGroupSummaryRepresentation.d.ts +50 -0
  37. package/dist/es/es2018/types/src/generated/types/QueueRepresentation.d.ts +52 -0
  38. package/dist/es/es2018/types/src/generated/types/QueuesSharingRepresentation.d.ts +37 -0
  39. package/dist/es/es2018/types/src/generated/types/RecordAccessDetailRepresentation.d.ts +35 -0
  40. package/dist/es/es2018/types/src/generated/types/RecordUserAccessCollectionRepresentation.d.ts +41 -0
  41. package/dist/es/es2018/types/src/generated/types/RecordUserAccessRepresentation.d.ts +32 -0
  42. package/dist/es/es2018/types/src/generated/types/ReportAndDashboardFolderGroupSharingRepresentation.d.ts +43 -0
  43. package/dist/es/es2018/types/src/generated/types/RolesInGroupRepresentation.d.ts +46 -0
  44. package/dist/es/es2018/types/src/generated/types/ShareAccessLevelRepresentation.d.ts +40 -0
  45. package/dist/es/es2018/types/src/generated/types/ShareRelationshipArrayRepresentation.d.ts +29 -0
  46. package/dist/es/es2018/types/src/generated/types/ShareRelationshipCollectionRepresentation.d.ts +29 -0
  47. package/dist/es/es2018/types/src/generated/types/ShareRelationshipRepresentation.d.ts +34 -0
  48. package/dist/es/es2018/types/src/generated/types/SharingReasonRepresentation.d.ts +41 -0
  49. package/dist/es/es2018/types/src/generated/types/SharingRuleCollectionRepresentation.d.ts +29 -0
  50. package/dist/es/es2018/types/src/generated/types/SharingRuleRepresentation.d.ts +57 -0
  51. package/dist/es/es2018/types/src/generated/types/SharingRulesCriteriaGroupSharingRepresentation.d.ts +43 -0
  52. package/dist/es/es2018/types/src/generated/types/SharingRulesOwnerGroupSharingRepresentation.d.ts +43 -0
  53. package/dist/es/es2018/types/src/generated/types/SobjectOutputSharingRepresentation.d.ts +37 -0
  54. package/dist/es/es2018/types/src/generated/types/SobjectsOutputSharingRepresentation.d.ts +33 -0
  55. package/dist/es/es2018/types/src/generated/types/SupportedObjectListRepresentation.d.ts +28 -0
  56. package/dist/es/es2018/types/src/generated/types/UserGroupMembershipDetailsInputRepresentation.d.ts +37 -0
  57. package/dist/es/es2018/types/src/generated/types/UserGroupMembershipDetailsRepresentation.d.ts +38 -0
  58. package/dist/es/es2018/types/src/generated/types/UserMembersInPublicGroupRepresentation.d.ts +49 -0
  59. package/dist/es/es2018/types/src/generated/types/UserOrGroupRepresentation.d.ts +31 -0
  60. package/dist/es/es2018/types/src/generated/types/UserOrGroupTypeRepresentation.d.ts +34 -0
  61. package/dist/es/es2018/types/src/generated/types/UserOrGroupTypesCollectionRepresentation.d.ts +29 -0
  62. package/dist/es/es2018/types/src/generated/types/UserPermissionInfoRepresentation.d.ts +55 -0
  63. package/dist/es/es2018/types/src/generated/types/UserPermissionsInfoListRepresentation.d.ts +33 -0
  64. package/dist/es/es2018/types/src/generated/types/UsersOrGroupsCollectionRepresentation.d.ts +29 -0
  65. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  66. package/package.json +66 -0
  67. package/sfdc/index.d.ts +1 -0
  68. package/sfdc/index.js +3449 -0
  69. package/src/raml/api.raml +1130 -0
  70. package/src/raml/luvio.raml +94 -0
@@ -0,0 +1,1130 @@
1
+ #%RAML 1.0
2
+ securedBy:
3
+ - OAuth2
4
+ title: Salesforce Connect API
5
+ version: '62.0'
6
+ mediaType: application/json
7
+ protocols:
8
+ - https
9
+ baseUri: /services/data/v66.0
10
+ securitySchemes:
11
+ OAuth2:
12
+ type: OAuth 2.0
13
+ settings:
14
+ authorizationUri: https://example.com/oauth/authorize
15
+ accessTokenUri: ''
16
+ authorizationGrants:
17
+ - implicit
18
+ annotationTypes:
19
+ oas-readOnly:
20
+ type: boolean
21
+ allowedTargets: TypeDeclaration
22
+ oas-collectionFormat:
23
+ type: string
24
+ oas-body-name:
25
+ type: string
26
+ allowedTargets: TypeDeclaration
27
+ types:
28
+ AccessLevelFieldRepresentation:
29
+ description: Representation of an access level field.
30
+ type: object
31
+ properties:
32
+ entityAccessLevelLabel:
33
+ description: The entity access level label.
34
+ type: string
35
+ entityApiName:
36
+ description: The entity api name.
37
+ type: string
38
+ externalAccess:
39
+ description: The field external access level options.
40
+ type: array
41
+ items:
42
+ type: string
43
+ internalAccess:
44
+ description: The field internal access level options.
45
+ type: array
46
+ items:
47
+ type: string
48
+ AccessLevelRepresentation:
49
+ description: Representation of an Access Level for the Sharing Expand List Page
50
+ type: object
51
+ properties:
52
+ label:
53
+ description: The object access level label
54
+ type: string
55
+ objectApiName:
56
+ description: The object's apiName
57
+ type: string
58
+ objectLabel:
59
+ description: The user's access level to this object
60
+ type: string
61
+ FilterCriteriaInputRepresentation:
62
+ description: Input representation for Filter Criteria.
63
+ type: object
64
+ properties:
65
+ isMemberOfGroup:
66
+ description: Filter with isMemberOfGroup param
67
+ type: boolean
68
+ memberType:
69
+ description: Member Type
70
+ type: string
71
+ searchTerm:
72
+ description: 'Filters the members based on Search Term, is useful only in
73
+ case of Search Operation'
74
+ type: string
75
+ GroupCollectionRepresentation:
76
+ description: Representation of a collection of Groups that includes Queues and
77
+ Public Group Types.
78
+ type: object
79
+ properties:
80
+ publicGroupRepresentations:
81
+ description: The list of Public Groups.
82
+ type: array
83
+ items:
84
+ type: PublicGroupRepresentation
85
+ queueRepresentations:
86
+ description: The list of Queues.
87
+ type: array
88
+ items:
89
+ type: QueueRepresentation
90
+ IncludedGroupsSharingRepresentation:
91
+ description: Output representation of included public groups where given group
92
+ is member
93
+ type: object
94
+ properties:
95
+ createdBy:
96
+ description: Included Groups Created By.
97
+ type: string
98
+ createdOn:
99
+ description: Included Groups Created Timestamp
100
+ type: string
101
+ developerName:
102
+ description: Included Groups Developer name.
103
+ type: string
104
+ grantAccessHierarchies:
105
+ description: Information for Grant Access Using Hierarchies
106
+ type: boolean
107
+ label:
108
+ description: Group label.
109
+ type: string
110
+ ListViewGroupSharingRepresentation:
111
+ description: Output representation of an list views shared with public group.
112
+ type: object
113
+ properties:
114
+ developerName:
115
+ description: List view developer name.
116
+ type: string
117
+ label:
118
+ description: List view label.
119
+ type: string
120
+ objectAPIName:
121
+ description: Object API Name.
122
+ type: string
123
+ objectName:
124
+ description: Object Name.
125
+ type: string
126
+ PublicGroupMembersInPublicGroupRepresentation:
127
+ description: Public Group Members in Public Group Representation
128
+ type: object
129
+ properties:
130
+ createdBy:
131
+ description: Group Member Created By
132
+ type: string
133
+ createdDate:
134
+ description: Group Member Created Date
135
+ type: string
136
+ dataId:
137
+ description: Group Member dataId
138
+ type: string
139
+ developerName:
140
+ description: Group Member Developer Name
141
+ type: string
142
+ groupName:
143
+ description: Group Member Label
144
+ type: string
145
+ groupType:
146
+ description: Group Member Type
147
+ type: string
148
+ includeBosses:
149
+ description: Group Member Grant Access Using Hierarchies
150
+ type: boolean
151
+ PublicGroupMembershipDetailsInputRepresentation:
152
+ description: Input representation for public group membership details.
153
+ type: object
154
+ properties:
155
+ filterCriteria:
156
+ description: Filter Criteria with which data is fetched
157
+ type: any
158
+ groupId:
159
+ description: The group id for which data needs to be fetched
160
+ type: string
161
+ limit:
162
+ description: Limit param
163
+ type: integer
164
+ offset:
165
+ description: Offset param
166
+ type: integer
167
+ operation:
168
+ description: Operation like View, Delete
169
+ type: string
170
+ orderBy:
171
+ description: Sorts by given order by clause
172
+ type: string
173
+ orderType:
174
+ description: Orders the records in asc/desc
175
+ type: string
176
+ selectedMembers:
177
+ description: Selected Members
178
+ type: array
179
+ items:
180
+ type: string
181
+ UserGroupMembershipDetailsRepresentation:
182
+ description: Output format for all types of data generated by this API.
183
+ type: object
184
+ properties:
185
+ isSuccess:
186
+ description: API Status.
187
+ type: boolean
188
+ operation:
189
+ description: Api Operation. Supported operations are AddMembers, DeleteMembers.
190
+ type: string
191
+ errors:
192
+ description: API execution error, if encountered during processing.
193
+ type: array
194
+ items:
195
+ type: string
196
+ infos:
197
+ description: Api execution information.
198
+ type: array
199
+ items:
200
+ type: string
201
+
202
+ PublicGroupMembershipDetailsRepresentation:
203
+ description: Parent output representation for all form of data emitted by this
204
+ API
205
+ type: object
206
+ properties:
207
+ isMember:
208
+ description: Is Member of Group
209
+ type: boolean
210
+ listChannelPrograms:
211
+ description: Output response data for Channel Programs
212
+ type: array
213
+ items:
214
+ type: PublicGroupMembersInPublicGroupRepresentation
215
+ listPublicGroups:
216
+ description: Output response data for Public Groups
217
+ type: array
218
+ items:
219
+ type: PublicGroupMembersInPublicGroupRepresentation
220
+ listRoles:
221
+ description: Output response data for Roles
222
+ type: array
223
+ items:
224
+ type: RolesInGroupRepresentation
225
+ listRolesAndInternalSubordinates:
226
+ description: Output response data for Roles and Internal Subordinates
227
+ type: array
228
+ items:
229
+ type: RolesInGroupRepresentation
230
+ listRolesInternalAndPortalSubordinates:
231
+ description: Output response data for Roles Internal and Portal Subordinates
232
+ type: array
233
+ items:
234
+ type: RolesInGroupRepresentation
235
+ listTerritories:
236
+ description: Output response data for Territories
237
+ type: array
238
+ items:
239
+ type: RolesInGroupRepresentation
240
+ listUsers:
241
+ description: Output response data for Users
242
+ type: array
243
+ items:
244
+ type: UserMembersInPublicGroupRepresentation
245
+ PublicGroupRepresentation:
246
+ description: Output representation of an instance of a PublicGroup for a given
247
+ user.
248
+ type: object
249
+ properties:
250
+ developerName:
251
+ description: The API name of the Public Group.
252
+ type: string
253
+ groupId:
254
+ description: The Id of the Public Group.
255
+ type: string
256
+ includeBosses:
257
+ description: The Grant Access Using Hierarchy status of the Public Group.
258
+ type: boolean
259
+ name:
260
+ description: The name of the Public Group.
261
+ type: string
262
+ createdByName:
263
+ description: The name of user who created the Public Group.
264
+ type: string
265
+ createdById:
266
+ description: The Id of user who created the Public Group.
267
+ type: string
268
+ createdDate:
269
+ description: The date when the public group was created.
270
+ type: string
271
+ membershipLevel:
272
+ description: Indicates if the user is a direct/indirect member of the Group
273
+ type: string
274
+ UserGroupMembershipDetailsInputRepresentation:
275
+ description: Input representation for Adding Removing Membership from Group resource
276
+ type: object
277
+ properties:
278
+ userId:
279
+ description: A user ID on which operations to add or remove from groups and queues will be executed.
280
+ type: string
281
+ memberType:
282
+ description: This property specifies the type of group resource on which the operation should be performed.
283
+ type: string
284
+ operation:
285
+ description: This denotes either the AddMembers or DeleteMembers operation. Depending on the operation type, the user will be added to or removed from the specified set of groups.
286
+ type: string
287
+ selectedGroups:
288
+ description: List of group record ids.
289
+ type: array
290
+ items:
291
+ type: string
292
+ PublicGroupSummaryInputRepresentation:
293
+ description: Input representation for public group summary.
294
+ type: object
295
+ properties:
296
+ entityKeyPrefix:
297
+ description: The entity key prefix
298
+ type: string
299
+ groupId:
300
+ description: The group id for which data needs to be fetched
301
+ type: string
302
+ limit:
303
+ description: Limit param
304
+ type: integer
305
+ offset:
306
+ description: Offset param
307
+ type: integer
308
+ operation:
309
+ description: Data required for which tab
310
+ type: string
311
+ orderBy:
312
+ description: Sorts by given order by clause
313
+ type: string
314
+ orderType:
315
+ description: Orders the records in asc/desc
316
+ type: string
317
+ PublicGroupSummaryRepresentation:
318
+ description: Parent output representation for all form of data emitted by this
319
+ API
320
+ type: object
321
+ properties:
322
+ includedGroupsSharing:
323
+ description: Included In Public Groups
324
+ type: array
325
+ items:
326
+ type: IncludedGroupsSharingRepresentation
327
+ listViewGroupSharing:
328
+ description: Output response data for list view tab
329
+ type: array
330
+ items:
331
+ type: ListViewGroupSharingRepresentation
332
+ queuesSharing:
333
+ description: Output response data for Queue tab
334
+ type: array
335
+ items:
336
+ type: QueuesSharingRepresentation
337
+ reportAndDashboardFolderGroupSharing:
338
+ description: Report and Dashboard Folder shared with a group
339
+ type: array
340
+ items:
341
+ type: ReportAndDashboardFolderGroupSharingRepresentation
342
+ sharingRulesCriteriaGroupSharing:
343
+ description: Output response data for criteria based sharing rules tab
344
+ type: array
345
+ items:
346
+ type: SharingRulesCriteriaGroupSharingRepresentation
347
+ sharingRulesOwnerGroupSharing:
348
+ description: Output response data for owner based sharing rules tab
349
+ type: array
350
+ items:
351
+ type: SharingRulesOwnerGroupSharingRepresentation
352
+ QueueRepresentation:
353
+ description: Output representation of an instance of a Queue for a given user.
354
+ type: object
355
+ properties:
356
+ developerName:
357
+ description: The API name of the queue.
358
+ type: string
359
+ name:
360
+ description: The name of the Queue.
361
+ type: string
362
+ queueId:
363
+ description: The Id of the queue.
364
+ type: string
365
+ queueEmail:
366
+ description: Queue Email.
367
+ type: string
368
+ supportedSObjects:
369
+ description: Supported Objects.
370
+ type: string
371
+ modifiedByName:
372
+ description: The name of user who last modified the Queue.
373
+ type: string
374
+ modifiedById:
375
+ description: The Id of user who last modified the Queue.
376
+ type: string
377
+ modifiedDate:
378
+ description: The date when the Queue was last modified.
379
+ type: string
380
+ membershipLevel:
381
+ description: Indicates if the user is a direct/indirect member of the Queue
382
+ type: string
383
+ QueuesSharingRepresentation:
384
+ description: Output representation of queues with given group as a member
385
+ type: object
386
+ properties:
387
+ developerName:
388
+ description: Queue Developer name.
389
+ type: string
390
+ email:
391
+ description: Queue Email.
392
+ type: string
393
+ label:
394
+ description: Queue label.
395
+ type: string
396
+ supportedObjects:
397
+ description: Supported Objects.
398
+ type: string
399
+ RecordAccessDetailRepresentation:
400
+ description: Representation of a record access detail.
401
+ type: object
402
+ properties:
403
+ recordId:
404
+ description: Unique identifier for record
405
+ type: string
406
+ sharingReasons:
407
+ description: List of sharing reasons
408
+ type: array
409
+ items:
410
+ type: SharingReasonRepresentation
411
+ userId:
412
+ description: Unique identifier for user
413
+ type: string
414
+ RecordUserAccessCollectionRepresentation:
415
+ description: Representation of a collection of record user accesses.
416
+ type: object
417
+ properties:
418
+ currentPageUrl:
419
+ description: URL to the current page of access.
420
+ type: string
421
+ nextPageUrl:
422
+ description: URL to the next page of access.
423
+ type: string
424
+ previousPageUrl:
425
+ description: URL to the previous page of access.
426
+ type: string
427
+ recordId:
428
+ description: Record Id
429
+ type: string
430
+ recordUserAccesses:
431
+ description: The list of user record accesses
432
+ type: array
433
+ items:
434
+ type: RecordUserAccessRepresentation
435
+ RecordUserAccessRepresentation:
436
+ description: Representation of a RecordUserAccess for the Sharing Expand List
437
+ Page
438
+ type: object
439
+ properties:
440
+ accessLevels:
441
+ description: A list of access levels the user has for this entity and related
442
+ entities
443
+ type: array
444
+ items:
445
+ type: AccessLevelRepresentation
446
+ user:
447
+ description: The user of this record user access
448
+ type: UserOrGroupRepresentation
449
+ ReportAndDashboardFolderGroupSharingRepresentation:
450
+ description: Output representation of report and dashboard folders shared with
451
+ a public group.
452
+ type: object
453
+ properties:
454
+ accessLevel:
455
+ description: Report and Dashboard Folder Access Level.
456
+ type: string
457
+ createdBy:
458
+ description: Report and Dashboard Folder Created By.
459
+ type: string
460
+ createdOn:
461
+ description: Report and Dashboard Folder Created Date.
462
+ type: string
463
+ developerName:
464
+ description: Report and Dashboard Folder Developer Name.
465
+ type: string
466
+ label:
467
+ description: Report and Dashboard Folder label.
468
+ type: string
469
+ type:
470
+ description: Report and Dashboard Folder type. It can be either 'Report' or
471
+ 'Dashboard'.
472
+ type: string
473
+ RolesInGroupRepresentation:
474
+ description: Roles in Public Group Representation
475
+ type: object
476
+ properties:
477
+ dataId:
478
+ description: Group Member dataId
479
+ type: string
480
+ groupType:
481
+ description: Group Type
482
+ type: string
483
+ roleName:
484
+ description: Role Name
485
+ type: string
486
+ roleParentDevName:
487
+ description: Role Parent dev Name
488
+ type: string
489
+ roleParentLabel:
490
+ description: Role Parent label
491
+ type: string
492
+ roleUpdatedBy:
493
+ description: Role Updated By
494
+ type: string
495
+ roleUpdatedOn:
496
+ description: Role Updated On
497
+ type: string
498
+ ShareAccessLevelRepresentation:
499
+ description: Representation of a share access level per entity.
500
+ type: object
501
+ properties:
502
+ accessLevelFields:
503
+ description: The access level fields.
504
+ type: object
505
+ properties:
506
+ //:
507
+ type: AccessLevelFieldRepresentation
508
+ accessLevelOptions:
509
+ description: The access level options.
510
+ type: object
511
+ properties:
512
+ //:
513
+ type: string
514
+ ShareRelationshipArrayRepresentation:
515
+ description: Representation of a share relationship array.
516
+ type: object
517
+ properties:
518
+ path:
519
+ description: Share relationships array.
520
+ type: array
521
+ items:
522
+ type: ShareRelationshipRepresentation
523
+ ShareRelationshipCollectionRepresentation:
524
+ description: Representation of a share relationship collection.
525
+ type: object
526
+ properties:
527
+ relationships:
528
+ description: Share relationships.
529
+ type: array
530
+ items:
531
+ type: ShareRelationshipRepresentation
532
+ ShareRelationshipRepresentation:
533
+ description: Representation of a share relationship.
534
+ type: object
535
+ properties:
536
+ developerName:
537
+ description: Developer name.
538
+ type: string
539
+ id:
540
+ description: Id.
541
+ type: string
542
+ type:
543
+ description: Relationship type.
544
+ type: string
545
+ SharingReasonRepresentation:
546
+ description: Representation of a sharing reason.
547
+ type: object
548
+ properties:
549
+ accessLevel:
550
+ description: Level of Access.
551
+ type: string
552
+ reasonForAccess:
553
+ description: Reason for access.
554
+ type: string
555
+ relationship:
556
+ description: Relationship to the share recipient.
557
+ type: string
558
+ relationshipPaths:
559
+ description: Share relationship map.
560
+ type: array
561
+ items:
562
+ type: ShareRelationshipArrayRepresentation
563
+ shareRecipient:
564
+ description: Share recipient.
565
+ type: UserOrGroupRepresentation
566
+ SharingRuleCollectionRepresentation:
567
+ description: Representation of a collection of sharing rule.
568
+ type: object
569
+ properties:
570
+ sharingRuleRepresentations:
571
+ description: The list of sharing rules.
572
+ type: array
573
+ items:
574
+ type: SharingRuleRepresentation
575
+ SharingRuleRepresentation:
576
+ description: Output representation of an instance of a sharing rule for a given
577
+ entity.
578
+ type: object
579
+ properties:
580
+ caseChildAccessLevel:
581
+ description: The case child access level of the sharing rule, this field is
582
+ only available for the Account entity.
583
+ type: string
584
+ conChildAccessLevel:
585
+ description: The contact child access level of the sharing rule, this field
586
+ is only available for the Account entity.
587
+ type: string
588
+ description:
589
+ description: The description of the sharing rule.
590
+ type: string
591
+ id:
592
+ description: The id of the sharing rule.
593
+ type: string
594
+ label:
595
+ description: The label of the sharing rule.
596
+ type: string
597
+ mainAccessLevel:
598
+ description: The main access level of the sharing rule.
599
+ type: string
600
+ name:
601
+ description: The API name of the sharing rule.
602
+ type: string
603
+ oppChildAccessLevel:
604
+ description: The opportunity child access level of the sharing rule, this
605
+ field is only available for the Account entity.
606
+ type: string
607
+ ruleType:
608
+ description: Sharing rule type
609
+ type: string
610
+ enum:
611
+ - Criteria
612
+ - Owner
613
+ sharedFrom:
614
+ description: User Role or Group that this sharing rule will share from.
615
+ type: UserOrGroupRepresentation
616
+ sharedWith:
617
+ description: User Role or Group that this sharing rule will share with.
618
+ type: UserOrGroupRepresentation
619
+ SharingRulesCriteriaGroupSharingRepresentation:
620
+ description: Output representation of criteria based sharing rules shared with
621
+ public group.
622
+ type: object
623
+ properties:
624
+ accessLevel:
625
+ description: Criteria Sharing Rule accessLevel.
626
+ type: string
627
+ criteria:
628
+ description: Sharing Rule criteria
629
+ type: string
630
+ developerName:
631
+ description: Criteria Sharing Rule developer name.
632
+ type: string
633
+ label:
634
+ description: Criteria Sharing Rule label.
635
+ type: string
636
+ objectAPIName:
637
+ description: Criteria Sharing Rule accessLevel.
638
+ type: string
639
+ objectName:
640
+ description: Criteria Sharing Rule accessLevel.
641
+ type: string
642
+ SharingRulesOwnerGroupSharingRepresentation:
643
+ description: Output representation of owner based sharing rules shared with public
644
+ group.
645
+ type: object
646
+ properties:
647
+ accessLevel:
648
+ description: Owner Sharing Rule accesslevel.
649
+ type: string
650
+ developerName:
651
+ description: Owner Sharing Rule developer name.
652
+ type: string
653
+ label:
654
+ description: Owner Sharing Rule label.
655
+ type: string
656
+ sharedFrom:
657
+ description: Owner Sharing Rule shared from group.
658
+ type: string
659
+ objectAPIName:
660
+ description: Object API Name.
661
+ type: string
662
+ objectName:
663
+ description: Object Name.
664
+ type: string
665
+ SobjectOutputSharingRepresentation:
666
+ description: Output representation of sobject to be used for Selection
667
+ type: object
668
+ properties:
669
+ apiName:
670
+ description: apiName of Sobject
671
+ type: string
672
+ keyPrefix:
673
+ description: Key prefix of sobject
674
+ type: string
675
+ label:
676
+ description: Label of sobject
677
+ type: string
678
+ labelPlural:
679
+ description: Label Plural of sobject
680
+ type: string
681
+ SobjectsOutputSharingRepresentation:
682
+ description: Output representation of sobject to be shared on UI
683
+ type: object
684
+ properties:
685
+ size:
686
+ description: Number of sobjects
687
+ type: integer
688
+ sobjects:
689
+ description: List of sobjects
690
+ type: array
691
+ items:
692
+ type: SobjectOutputSharingRepresentation
693
+ SupportedObjectListRepresentation:
694
+ description: Representation of a list of supported objects
695
+ type: object
696
+ properties:
697
+ supportedObjectList:
698
+ description: The list of objects supported by the share-access-levels API.
699
+ type: array
700
+ items:
701
+ type: string
702
+ UserMembersInPublicGroupRepresentation:
703
+ description: User Members in Public Group Representation
704
+ type: object
705
+ properties:
706
+ alias:
707
+ description: Group Member alias
708
+ type: string
709
+ dataId:
710
+ description: Group Member dataId
711
+ type: string
712
+ status:
713
+ description: Group Member Status
714
+ type: boolean
715
+ userFullName:
716
+ description: Group Member userFullName
717
+ type: string
718
+ userName:
719
+ description: Group Member Full username
720
+ type: string
721
+ userProfile:
722
+ description: Group Member userProfile
723
+ type: string
724
+ userRoleName:
725
+ description: Group Member userRoleName
726
+ type: string
727
+ userType:
728
+ description: User Member userType
729
+ type: string
730
+ UserOrGroupRepresentation:
731
+ description: Representation of user or group with whom an object can be shared.
732
+ type: object
733
+ properties:
734
+ id:
735
+ description: Id of a user or group.
736
+ type: string
737
+ name:
738
+ description: Name of a user or group.
739
+ type: string
740
+ UserOrGroupTypeRepresentation:
741
+ description: Representation of an instance of a folder share recipient.
742
+ type: object
743
+ properties:
744
+ label:
745
+ description: The label of the user or group type.
746
+ type: string
747
+ sharingModelType:
748
+ description: The sharing model of user or group type
749
+ type: string
750
+ userOrGroupType:
751
+ description: The user or group type.
752
+ type: string
753
+ enum:
754
+ - AccountRelationshipGroup
755
+ - AllCustomerPortal
756
+ - ChannelProgramGroup
757
+ - CollaborationGroup
758
+ - CustomerPortalUser
759
+ - GuestUserGroup
760
+ - LicenseManagerUser
761
+ - LitePortalUserAccessGroup
762
+ - MLMyTeam
763
+ - Manager
764
+ - ManagerAndSubordinatesInternal
765
+ - Organization
766
+ - PRMOrganization
767
+ - PardotUserGroup
768
+ - PardotUserRestrictedGroup
769
+ - Participant
770
+ - PartnerNetworkConnection
771
+ - PartnerUser
772
+ - Personal
773
+ - PortalRoleAt
774
+ - PortalRoleDown
775
+ - Queue
776
+ - Regular
777
+ - Role
778
+ - RoleAndSubordinates
779
+ - RoleAndSubordinatesInternal
780
+ - SharingRecordCollGroup
781
+ - SharingRuleGroup
782
+ - Sites
783
+ - Territory
784
+ - TerritoryAndSubordinates
785
+ - User
786
+ UserOrGroupTypesCollectionRepresentation:
787
+ description: Representation of a collection of user or group types.
788
+ type: object
789
+ properties:
790
+ userOrGroupTypes:
791
+ description: The list of user or group types.
792
+ type: array
793
+ items:
794
+ type: UserOrGroupTypeRepresentation
795
+ UserPermissionInfoRepresentation:
796
+ description: Output representation of a User Permission for the Access Summaries
797
+ UI
798
+ type: object
799
+ properties:
800
+ parentApiName:
801
+ description: The user permission's parentApiName
802
+ type: string
803
+ parentDescription:
804
+ description: The user permission's parentDescription
805
+ type: string
806
+ parentHasActivationRequired:
807
+ description: The user permission's parentHasActivationRequired
808
+ type: boolean
809
+ parentId:
810
+ description: The user permission's parentId
811
+ type: string
812
+ parentIsCustom:
813
+ description: The user permission's parentIsCustom
814
+ type: boolean
815
+ parentLabel:
816
+ description: The user permission's parentLabel
817
+ type: string
818
+ parentProfileLicense:
819
+ description: The user permission's parentProfileLicense
820
+ type: string
821
+ userPermApiName:
822
+ description: The user permission's apiName
823
+ type: string
824
+ userPermDescription:
825
+ description: The user permission's description
826
+ type: string
827
+ userPermLabel:
828
+ description: The user permission's label
829
+ type: string
830
+ UserPermissionsInfoListRepresentation:
831
+ description: Output representation of User Permissions to be shared on Access
832
+ Summaries UI
833
+ type: object
834
+ properties:
835
+ size:
836
+ description: Number of User Permissions
837
+ type: integer
838
+ userPermissions:
839
+ description: List of User Permissions
840
+ type: array
841
+ items:
842
+ type: UserPermissionInfoRepresentation
843
+ UsersOrGroupsCollectionRepresentation:
844
+ description: Representation of a collection of users and/or groups.
845
+ type: object
846
+ properties:
847
+ usersOrGroups:
848
+ description: The list of users and/or groups.
849
+ type: array
850
+ items:
851
+ type: UserOrGroupRepresentation
852
+ /sharing:
853
+ /groups-for-user/{userId}/{groupType}:
854
+ get:
855
+ displayName: getGroup
856
+ description: Get the collection of groups
857
+ responses:
858
+ '200':
859
+ description: Success
860
+ body:
861
+ application/json:
862
+ type: GroupCollectionRepresentation
863
+ queryParameters:
864
+ limit:
865
+ type: integer
866
+ required: false
867
+ offset:
868
+ type: integer
869
+ required: false
870
+ sortBy:
871
+ type: string
872
+ required: false
873
+ sortOrder:
874
+ type: string
875
+ required: false
876
+ groupMembership:
877
+ type: string
878
+ required: false
879
+ enum:
880
+ - Present
881
+ - NotPresent
882
+ searchTerm:
883
+ type: string
884
+ required: false
885
+ uriParameters:
886
+ groupType:
887
+ type: string
888
+ required: true
889
+ enum:
890
+ - PublicGroup
891
+ - Queue
892
+ userId:
893
+ type: string
894
+ required: true
895
+ /addRemoveUserToGroups:
896
+ post:
897
+ displayName: postAddRemoveGroupMembership
898
+ description: Add/Remove the user to/from the groups/queues based on filter criteria
899
+ responses:
900
+ '200':
901
+ description: Success
902
+ body:
903
+ application/json:
904
+ type: UserGroupMembershipDetailsRepresentation
905
+ body:
906
+ application/json:
907
+ type: UserGroupMembershipDetailsInputRepresentation
908
+ (oas-body-name): userGroupsDetailsParams
909
+ /publicGroupsDetails:
910
+ post:
911
+ displayName: postPublicGroupMembershipDetails
912
+ description: Gets the for public groups details based on filter criteria
913
+ responses:
914
+ '200':
915
+ description: Success
916
+ body:
917
+ application/json:
918
+ type: PublicGroupMembershipDetailsRepresentation
919
+ body:
920
+ application/json:
921
+ type: PublicGroupMembershipDetailsInputRepresentation
922
+ (oas-body-name): publicGroupsDetailsParams
923
+ /publicGroupsSummary:
924
+ post:
925
+ displayName: postPublicGroupSummary
926
+ description: Gets the for public groups summary based on operation type
927
+ responses:
928
+ '200':
929
+ description: Success
930
+ body:
931
+ application/json:
932
+ type: PublicGroupSummaryRepresentation
933
+ body:
934
+ application/json:
935
+ type: PublicGroupSummaryInputRepresentation
936
+ (oas-body-name): publicGroup
937
+ /record-access-detail/{recordId}/{userId}:
938
+ get:
939
+ displayName: getRecordAccessDetail
940
+ description: Get record access details.
941
+ responses:
942
+ '200':
943
+ description: Success
944
+ body:
945
+ application/json:
946
+ type: RecordAccessDetailRepresentation
947
+ queryParameters:
948
+ displayRelationshipPaths:
949
+ type: boolean
950
+ required: false
951
+ default: false
952
+ maxReasons:
953
+ type: integer
954
+ required: false
955
+ uriParameters:
956
+ recordId:
957
+ type: string
958
+ required: true
959
+ userId:
960
+ type: string
961
+ required: true
962
+ /rules/{entityApiName}:
963
+ get:
964
+ displayName: getSharingRules
965
+ description: Get the collection of sharing rules
966
+ responses:
967
+ '200':
968
+ description: Success
969
+ body:
970
+ application/json:
971
+ type: SharingRuleCollectionRepresentation
972
+ queryParameters:
973
+ ruleType:
974
+ type: string
975
+ required: false
976
+ enum:
977
+ - Criteria
978
+ - Owner
979
+ uriParameters:
980
+ entityApiName:
981
+ type: string
982
+ required: true
983
+ /share-access-levels:
984
+ get:
985
+ displayName: getShareAccessLevelList
986
+ description: Get the list of objects supported for manual sharing in LEX
987
+ responses:
988
+ '200':
989
+ description: Success
990
+ body:
991
+ application/json:
992
+ type: SupportedObjectListRepresentation
993
+ /share-access-levels/{objectApiName}:
994
+ get:
995
+ displayName: getShareAccessLevel
996
+ description: Get the share access level per object.
997
+ responses:
998
+ '200':
999
+ description: Success
1000
+ body:
1001
+ application/json:
1002
+ type: ShareAccessLevelRepresentation
1003
+ uriParameters:
1004
+ objectApiName:
1005
+ type: string
1006
+ required: true
1007
+ /sobjects:
1008
+ get:
1009
+ displayName: getSobjects
1010
+ description: Api to fetch all sobjects
1011
+ responses:
1012
+ '200':
1013
+ description: Success
1014
+ body:
1015
+ application/json:
1016
+ type: SobjectsOutputSharingRepresentation
1017
+ queryParameters:
1018
+ limit:
1019
+ type: integer
1020
+ required: false
1021
+ offset:
1022
+ type: integer
1023
+ required: false
1024
+ searchText:
1025
+ type: string
1026
+ required: false
1027
+ /user-or-group-types:
1028
+ get:
1029
+ displayName: getUserOrGroupTypesCollection
1030
+ description: Get the user or group types.
1031
+ responses:
1032
+ '200':
1033
+ description: Success
1034
+ body:
1035
+ application/json:
1036
+ type: UserOrGroupTypesCollectionRepresentation
1037
+ /userPermissions:
1038
+ get:
1039
+ displayName: getUserPermissions
1040
+ description: Api to fetch user permissions
1041
+ responses:
1042
+ '200':
1043
+ description: Success
1044
+ body:
1045
+ application/json:
1046
+ type: UserPermissionsInfoListRepresentation
1047
+ queryParameters:
1048
+ recordId:
1049
+ type: string
1050
+ required: true
1051
+ /users-or-groups:
1052
+ get:
1053
+ displayName: getUsersOrGroupsCollection
1054
+ description: Get the users or groups an object can be shared with.
1055
+ responses:
1056
+ '200':
1057
+ description: Success
1058
+ body:
1059
+ application/json:
1060
+ type: UsersOrGroupsCollectionRepresentation
1061
+ queryParameters:
1062
+ limit:
1063
+ type: integer
1064
+ required: false
1065
+ op:
1066
+ type: string
1067
+ required: false
1068
+ parentId:
1069
+ type: string
1070
+ required: false
1071
+ q:
1072
+ type: string
1073
+ required: false
1074
+ shareToType:
1075
+ type: string
1076
+ required: false
1077
+ enum:
1078
+ - AccountRelationshipGroup
1079
+ - AllCustomerPortal
1080
+ - ChannelProgramGroup
1081
+ - CollaborationGroup
1082
+ - CustomerPortalUser
1083
+ - GuestUserGroup
1084
+ - LicenseManagerUser
1085
+ - LitePortalUserAccessGroup
1086
+ - MLMyTeam
1087
+ - Manager
1088
+ - ManagerAndSubordinatesInternal
1089
+ - Organization
1090
+ - PRMOrganization
1091
+ - PardotUserGroup
1092
+ - PardotUserRestrictedGroup
1093
+ - Participant
1094
+ - PartnerNetworkConnection
1095
+ - PartnerUser
1096
+ - Personal
1097
+ - PortalRoleAt
1098
+ - PortalRoleDown
1099
+ - Queue
1100
+ - Regular
1101
+ - Role
1102
+ - RoleAndSubordinates
1103
+ - RoleAndSubordinatesInternal
1104
+ - SharingRecordCollGroup
1105
+ - SharingRuleGroup
1106
+ - Sites
1107
+ - Territory
1108
+ - TerritoryAndSubordinates
1109
+ - User
1110
+ /{recordId}/user-access-levels:
1111
+ get:
1112
+ displayName: getRecordUserAccessCollection
1113
+ description: Get Record User Accesses for ${recordId}
1114
+ responses:
1115
+ '200':
1116
+ description: Success
1117
+ body:
1118
+ application/json:
1119
+ type: RecordUserAccessCollectionRepresentation
1120
+ queryParameters:
1121
+ page:
1122
+ type: integer
1123
+ required: false
1124
+ pageSize:
1125
+ type: integer
1126
+ required: false
1127
+ uriParameters:
1128
+ recordId:
1129
+ type: string
1130
+ required: true