@resolution/confluence-api-client 0.4.4 → 0.4.6
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/CHANGELOG.md +22 -0
- package/README.md +60 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +32 -33
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +151 -88
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/core/CommonHttpService.d.ts +2 -0
- package/lib/openapi/v1/core/CommonHttpService.js +9 -0
- package/lib/openapi/v1/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
- package/lib/openapi/v1/services/AnalyticsService.js +62 -59
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/AuditService.d.ts +25 -25
- package/lib/openapi/v1/services/AuditService.js +205 -202
- package/lib/openapi/v1/services/AuditService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
- package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
- package/lib/openapi/v1/services/ContentBodyService.js +140 -137
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
- package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
- package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
- package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
- package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
- package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
- package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
- package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
- package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
- package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +50 -50
- package/lib/openapi/v1/services/ContentService.js +475 -472
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
- package/lib/openapi/v1/services/ContentStatesService.js +359 -356
- package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
- package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
- package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
- package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
- package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
- package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
- package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
- package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
- package/lib/openapi/v1/services/ExperimentalService.js +151 -148
- package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +52 -52
- package/lib/openapi/v1/services/GroupService.js +445 -442
- package/lib/openapi/v1/services/GroupService.js.map +1 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
- package/lib/openapi/v1/services/InlineTasksService.js +118 -115
- package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
- package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
- package/lib/openapi/v1/services/LabelInfoService.js +37 -34
- package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
- package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
- package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
- package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
- package/lib/openapi/v1/services/RelationService.d.ts +37 -37
- package/lib/openapi/v1/services/RelationService.js +231 -228
- package/lib/openapi/v1/services/RelationService.js.map +1 -1
- package/lib/openapi/v1/services/SearchService.d.ts +20 -20
- package/lib/openapi/v1/services/SearchService.js +136 -133
- package/lib/openapi/v1/services/SearchService.js.map +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
- package/lib/openapi/v1/services/SettingsService.js +204 -201
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
- package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
- package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
- package/lib/openapi/v1/services/SpaceService.js +320 -317
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
- package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
- package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
- package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
- package/lib/openapi/v1/services/TemplateService.js +214 -211
- package/lib/openapi/v1/services/TemplateService.js.map +1 -1
- package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
- package/lib/openapi/v1/services/ThemesService.js +179 -176
- package/lib/openapi/v1/services/ThemesService.js.map +1 -1
- package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
- package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
- package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
- package/lib/openapi/v1/services/UsersService.d.ts +21 -21
- package/lib/openapi/v1/services/UsersService.js +229 -226
- package/lib/openapi/v1/services/UsersService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +23 -24
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +92 -47
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/core/CommonHttpService.d.ts +2 -0
- package/lib/openapi/v2/core/CommonHttpService.js +9 -0
- package/lib/openapi/v2/core/CommonHttpService.js.map +1 -1
- package/lib/openapi/v2/models/user.d.ts +0 -2
- package/lib/openapi/v2/models/user.js +0 -2
- package/lib/openapi/v2/models/user.js.map +1 -1
- package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
- package/lib/openapi/v2/services/AncestorsService.js +174 -171
- package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
- package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
- package/lib/openapi/v2/services/AttachmentService.js +261 -258
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
- package/lib/openapi/v2/services/BlogPostService.js +270 -267
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
- package/lib/openapi/v2/services/ChildrenService.js +77 -74
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
- package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
- package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +136 -136
- package/lib/openapi/v2/services/CommentService.js +635 -632
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
- package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
- package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/ContentService.d.ts +2 -2
- package/lib/openapi/v2/services/ContentService.js +40 -37
- package/lib/openapi/v2/services/ContentService.js.map +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
- package/lib/openapi/v2/services/CustomContentService.js +299 -296
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
- package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
- package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
- package/lib/openapi/v2/services/DatabaseService.js +90 -87
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/LabelService.d.ts +57 -57
- package/lib/openapi/v2/services/LabelService.js +263 -260
- package/lib/openapi/v2/services/LabelService.js.map +1 -1
- package/lib/openapi/v2/services/LikeService.d.ts +36 -36
- package/lib/openapi/v2/services/LikeService.js +250 -247
- package/lib/openapi/v2/services/LikeService.js.map +1 -1
- package/lib/openapi/v2/services/OperationService.d.ts +20 -20
- package/lib/openapi/v2/services/OperationService.js +298 -295
- package/lib/openapi/v2/services/OperationService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +73 -73
- package/lib/openapi/v2/services/PageService.js +272 -269
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
- package/lib/openapi/v2/services/SmartLinkService.js +92 -89
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
- package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
- package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
- package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
- package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
- package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
- package/lib/openapi/v2/services/SpaceService.js +83 -80
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/TaskService.d.ts +40 -40
- package/lib/openapi/v2/services/TaskService.js +120 -117
- package/lib/openapi/v2/services/TaskService.js.map +1 -1
- package/lib/openapi/v2/services/UserService.d.ts +11 -11
- package/lib/openapi/v2/services/UserService.js +91 -88
- package/lib/openapi/v2/services/UserService.js.map +1 -1
- package/lib/openapi/v2/services/VersionService.d.ts +59 -59
- package/lib/openapi/v2/services/VersionService.js +395 -392
- package/lib/openapi/v2/services/VersionService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
- package/lib/openapi/v2/services/WhiteboardService.js +90 -87
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +4 -3
|
@@ -22,12 +22,12 @@ export declare class GroupService extends CommonHttpService {
|
|
|
22
22
|
* @scopes-beta write:group:confluence
|
|
23
23
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-user-post
|
|
24
24
|
*/
|
|
25
|
-
addUserToGroup({ name, accountId, }: {
|
|
25
|
+
addUserToGroup: ({ name, accountId, }: {
|
|
26
26
|
/** Name of the group whose membership is updated */
|
|
27
27
|
name: string;
|
|
28
28
|
/** AccountId of the user who needs to be added as member. */
|
|
29
29
|
accountId: AccountId;
|
|
30
|
-
})
|
|
30
|
+
}) => Promise<void>;
|
|
31
31
|
/**
|
|
32
32
|
* Adds a user as a member in a group represented by its groupId
|
|
33
33
|
*
|
|
@@ -39,12 +39,12 @@ export declare class GroupService extends CommonHttpService {
|
|
|
39
39
|
* @scopes-beta write:group:confluence
|
|
40
40
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-userbygroupid-post
|
|
41
41
|
*/
|
|
42
|
-
addUserToGroupByGroupId({ groupId, accountId, }: {
|
|
42
|
+
addUserToGroupByGroupId: ({ groupId, accountId, }: {
|
|
43
43
|
/** GroupId of the group whose membership is updated */
|
|
44
44
|
groupId: string;
|
|
45
45
|
/** AccountId of the user who needs to be added as member. */
|
|
46
46
|
accountId: AccountId;
|
|
47
|
-
})
|
|
47
|
+
}) => Promise<void>;
|
|
48
48
|
/**
|
|
49
49
|
* Creates a new user group.
|
|
50
50
|
*
|
|
@@ -57,10 +57,10 @@ export declare class GroupService extends CommonHttpService {
|
|
|
57
57
|
* @scopes-beta read:group:confluence, write:group:confluence
|
|
58
58
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-post
|
|
59
59
|
*/
|
|
60
|
-
createGroup({ groupName, }: {
|
|
60
|
+
createGroup: ({ groupName, }: {
|
|
61
61
|
/** Name of the group that is to be created. */
|
|
62
62
|
groupName: GroupName;
|
|
63
|
-
})
|
|
63
|
+
}) => Promise<Group>;
|
|
64
64
|
/**
|
|
65
65
|
* Returns a user group for a given group id.
|
|
66
66
|
*
|
|
@@ -73,10 +73,10 @@ export declare class GroupService extends CommonHttpService {
|
|
|
73
73
|
* @scopes-beta read:group:confluence
|
|
74
74
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-by-id-get
|
|
75
75
|
*/
|
|
76
|
-
getGroupByGroupId({ id, }: {
|
|
76
|
+
getGroupByGroupId: ({ id, }: {
|
|
77
77
|
/** The id of the group. */
|
|
78
78
|
id: string;
|
|
79
|
-
})
|
|
79
|
+
}) => Promise<Group>;
|
|
80
80
|
/**
|
|
81
81
|
* Returns a user group for a given group name.
|
|
82
82
|
*
|
|
@@ -90,13 +90,13 @@ export declare class GroupService extends CommonHttpService {
|
|
|
90
90
|
* @path {GET} /wiki/rest/api/group/{groupName}
|
|
91
91
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-groupname-get
|
|
92
92
|
*/
|
|
93
|
-
getGroupByName({ groupName, }: {
|
|
93
|
+
getGroupByName: ({ groupName, }: {
|
|
94
94
|
/**
|
|
95
95
|
* The name of the group. This is the same as the group name shown in
|
|
96
96
|
* the Confluence administration console.
|
|
97
97
|
*/
|
|
98
98
|
groupName: string;
|
|
99
|
-
})
|
|
99
|
+
}) => Promise<Group>;
|
|
100
100
|
/**
|
|
101
101
|
* Returns a user group for a given group name.
|
|
102
102
|
*
|
|
@@ -110,13 +110,13 @@ export declare class GroupService extends CommonHttpService {
|
|
|
110
110
|
* @scopes-beta read:group:confluence
|
|
111
111
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-by-name-get
|
|
112
112
|
*/
|
|
113
|
-
getGroupByQueryParam({ name, }: {
|
|
113
|
+
getGroupByQueryParam: ({ name, }: {
|
|
114
114
|
/**
|
|
115
115
|
* The name of the group. This is the same as the group name shown in
|
|
116
116
|
* the Confluence administration console.
|
|
117
117
|
*/
|
|
118
118
|
name: string;
|
|
119
|
-
})
|
|
119
|
+
}) => Promise<Group>;
|
|
120
120
|
/**
|
|
121
121
|
* Returns the users that are members of a group.
|
|
122
122
|
*
|
|
@@ -130,17 +130,17 @@ export declare class GroupService extends CommonHttpService {
|
|
|
130
130
|
* @path {GET} /wiki/rest/api/group/{groupName}/member
|
|
131
131
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-groupname-member-get
|
|
132
132
|
*/
|
|
133
|
-
getGroupMembers({ groupName, start, limit, }: {
|
|
133
|
+
getGroupMembers: ({ groupName, start, limit, }: {
|
|
134
134
|
/** The name of the group to be queried for its members. */
|
|
135
135
|
groupName: string;
|
|
136
136
|
/** The starting index of the returned users. */
|
|
137
|
-
start?: number;
|
|
137
|
+
start?: number | undefined;
|
|
138
138
|
/**
|
|
139
139
|
* The maximum number of users to return per page.
|
|
140
140
|
* Note, this may be restricted by fixed system limits.
|
|
141
141
|
*/
|
|
142
|
-
limit?: number;
|
|
143
|
-
})
|
|
142
|
+
limit?: number | undefined;
|
|
143
|
+
}) => Promise<UserArray>;
|
|
144
144
|
/**
|
|
145
145
|
* Returns the users that are members of a group.
|
|
146
146
|
*
|
|
@@ -155,22 +155,22 @@ export declare class GroupService extends CommonHttpService {
|
|
|
155
155
|
* @scopes-beta read:group:confluence, read:user:confluence
|
|
156
156
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-groupid-membersbygroupid-get
|
|
157
157
|
*/
|
|
158
|
-
getGroupMembersByGroupId({ groupId, start, limit, shouldReturnTotalSize, expand, }: {
|
|
158
|
+
getGroupMembersByGroupId: ({ groupId, start, limit, shouldReturnTotalSize, expand, }: {
|
|
159
159
|
/** The id of the group to be queried for its members. */
|
|
160
160
|
groupId: string;
|
|
161
161
|
/** The starting index of the returned users. */
|
|
162
|
-
start?: number;
|
|
162
|
+
start?: number | undefined;
|
|
163
163
|
/**
|
|
164
164
|
* The maximum number of users to return per page.
|
|
165
165
|
* Note, this may be restricted by fixed system limits.
|
|
166
166
|
*/
|
|
167
|
-
limit?: number;
|
|
167
|
+
limit?: number | undefined;
|
|
168
168
|
/**
|
|
169
169
|
* Whether to include total size parameter in the results.
|
|
170
170
|
* Note, fetching total size property is an expensive operation; use it if your
|
|
171
171
|
* use case needs this value.
|
|
172
172
|
*/
|
|
173
|
-
shouldReturnTotalSize?: boolean;
|
|
173
|
+
shouldReturnTotalSize?: boolean | undefined;
|
|
174
174
|
/**
|
|
175
175
|
* A multi-value parameter indicating which properties of the user to
|
|
176
176
|
* expand.
|
|
@@ -180,8 +180,8 @@ export declare class GroupService extends CommonHttpService {
|
|
|
180
180
|
* - `isExternalCollaborator` returns whether the user is an external
|
|
181
181
|
* collaborator user.
|
|
182
182
|
*/
|
|
183
|
-
expand?: ("operations" | "
|
|
184
|
-
})
|
|
183
|
+
expand?: ("operations" | "isExternalCollaborator" | "personalSpace")[] | undefined;
|
|
184
|
+
}) => Promise<UserArray>;
|
|
185
185
|
/**
|
|
186
186
|
* Returns all user groups. The returned groups are ordered alphabetically in
|
|
187
187
|
* ascending order by group name.
|
|
@@ -195,17 +195,17 @@ export declare class GroupService extends CommonHttpService {
|
|
|
195
195
|
* @scopes-beta read:group:confluence
|
|
196
196
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-get
|
|
197
197
|
*/
|
|
198
|
-
getGroups({ start, limit, accessType, }?: {
|
|
198
|
+
getGroups: ({ start, limit, accessType, }?: {
|
|
199
199
|
/** The starting index of the returned groups. */
|
|
200
|
-
start?: number;
|
|
200
|
+
start?: number | undefined;
|
|
201
201
|
/**
|
|
202
202
|
* The maximum number of groups to return per page.
|
|
203
203
|
* Note, this may be restricted by fixed system limits.
|
|
204
204
|
*/
|
|
205
|
-
limit?: number;
|
|
205
|
+
limit?: number | undefined;
|
|
206
206
|
/** The group permission level for which to filter results. */
|
|
207
|
-
accessType?: "user" | "admin" | "site-admin";
|
|
208
|
-
})
|
|
207
|
+
accessType?: "user" | "admin" | "site-admin" | undefined;
|
|
208
|
+
}) => Promise<GroupArrayWithLinks>;
|
|
209
209
|
/**
|
|
210
210
|
* Returns the users that are members of a group.
|
|
211
211
|
*
|
|
@@ -219,24 +219,24 @@ export declare class GroupService extends CommonHttpService {
|
|
|
219
219
|
* @scopes-beta read:group:confluence, read:user:confluence
|
|
220
220
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-member-get
|
|
221
221
|
*/
|
|
222
|
-
getMembersByQueryParam({ name, start, limit, shouldReturnTotalSize, expand, }: {
|
|
222
|
+
getMembersByQueryParam: ({ name, start, limit, shouldReturnTotalSize, expand, }: {
|
|
223
223
|
/** The name of the group to be queried for its members. */
|
|
224
224
|
name: string;
|
|
225
225
|
/** The starting index of the returned users. */
|
|
226
|
-
start?: number;
|
|
226
|
+
start?: number | undefined;
|
|
227
227
|
/**
|
|
228
228
|
* The maximum number of users to return per page.
|
|
229
229
|
* Note, this is restricted by fixed system limit of 200 which is to say if the
|
|
230
230
|
* limit parameter
|
|
231
231
|
* exceeds 200, this API will return a maximum of 200 users per page.
|
|
232
232
|
*/
|
|
233
|
-
limit?: number;
|
|
233
|
+
limit?: number | undefined;
|
|
234
234
|
/**
|
|
235
235
|
* Whether to include total size parameter in the results.
|
|
236
236
|
* Note, fetching total size property is an expensive operation; use it if your
|
|
237
237
|
* use case needs this value.
|
|
238
238
|
*/
|
|
239
|
-
shouldReturnTotalSize?: boolean;
|
|
239
|
+
shouldReturnTotalSize?: boolean | undefined;
|
|
240
240
|
/**
|
|
241
241
|
* A multi-value parameter indicating which properties of the user to
|
|
242
242
|
* expand.
|
|
@@ -246,8 +246,8 @@ export declare class GroupService extends CommonHttpService {
|
|
|
246
246
|
* - `isExternalCollaborator` returns whether the user is an external
|
|
247
247
|
* collaborator user.
|
|
248
248
|
*/
|
|
249
|
-
expand?: ("operations" | "
|
|
250
|
-
})
|
|
249
|
+
expand?: ("operations" | "isExternalCollaborator" | "personalSpace")[] | undefined;
|
|
250
|
+
}) => Promise<UserArray>;
|
|
251
251
|
/**
|
|
252
252
|
* Delete user group.
|
|
253
253
|
*
|
|
@@ -260,10 +260,10 @@ export declare class GroupService extends CommonHttpService {
|
|
|
260
260
|
* @scopes-beta write:group:confluence
|
|
261
261
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-delete
|
|
262
262
|
*/
|
|
263
|
-
removeGroup({ name, }: {
|
|
263
|
+
removeGroup: ({ name, }: {
|
|
264
264
|
/** Name of the group to delete. */
|
|
265
265
|
name: string;
|
|
266
|
-
})
|
|
266
|
+
}) => Promise<void>;
|
|
267
267
|
/**
|
|
268
268
|
* Delete user group.
|
|
269
269
|
*
|
|
@@ -275,10 +275,10 @@ export declare class GroupService extends CommonHttpService {
|
|
|
275
275
|
* @scopes-beta write:group:confluence
|
|
276
276
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-by-id-delete
|
|
277
277
|
*/
|
|
278
|
-
removeGroupById({ id, }: {
|
|
278
|
+
removeGroupById: ({ id, }: {
|
|
279
279
|
/** Id of the group to delete. */
|
|
280
280
|
id: string;
|
|
281
|
-
})
|
|
281
|
+
}) => Promise<void>;
|
|
282
282
|
/**
|
|
283
283
|
* Remove user as a member from a group.
|
|
284
284
|
*
|
|
@@ -291,7 +291,7 @@ export declare class GroupService extends CommonHttpService {
|
|
|
291
291
|
* @scopes-beta write:group:confluence
|
|
292
292
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-user-delete
|
|
293
293
|
*/
|
|
294
|
-
removeMemberFromGroup({ name, key, username, accountId, }: {
|
|
294
|
+
removeMemberFromGroup: ({ name, key, username, accountId, }: {
|
|
295
295
|
/** Name of the group whose membership is updated. */
|
|
296
296
|
name: string;
|
|
297
297
|
/**
|
|
@@ -304,7 +304,7 @@ export declare class GroupService extends CommonHttpService {
|
|
|
304
304
|
*
|
|
305
305
|
* @deprecated
|
|
306
306
|
*/
|
|
307
|
-
key?: string;
|
|
307
|
+
key?: string | undefined;
|
|
308
308
|
/**
|
|
309
309
|
* This parameter is no longer available and will be removed from the
|
|
310
310
|
* documentation soon.
|
|
@@ -315,14 +315,14 @@ export declare class GroupService extends CommonHttpService {
|
|
|
315
315
|
*
|
|
316
316
|
* @deprecated
|
|
317
317
|
*/
|
|
318
|
-
username?: string;
|
|
318
|
+
username?: string | undefined;
|
|
319
319
|
/**
|
|
320
320
|
* The account ID of the user. The accountId uniquely identifies the user across
|
|
321
321
|
* all Atlassian products.
|
|
322
322
|
* For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
|
|
323
323
|
*/
|
|
324
|
-
accountId?: string;
|
|
325
|
-
})
|
|
324
|
+
accountId?: string | undefined;
|
|
325
|
+
}) => Promise<void>;
|
|
326
326
|
/**
|
|
327
327
|
* Remove user as a member from a group.
|
|
328
328
|
*
|
|
@@ -334,7 +334,7 @@ export declare class GroupService extends CommonHttpService {
|
|
|
334
334
|
* @scopes-beta write:group:confluence
|
|
335
335
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-userbygroupid-delete
|
|
336
336
|
*/
|
|
337
|
-
removeMemberFromGroupByGroupId({ groupId, key, username, accountId, }: {
|
|
337
|
+
removeMemberFromGroupByGroupId: ({ groupId, key, username, accountId, }: {
|
|
338
338
|
/** Id of the group whose membership is updated. */
|
|
339
339
|
groupId: string;
|
|
340
340
|
/**
|
|
@@ -347,7 +347,7 @@ export declare class GroupService extends CommonHttpService {
|
|
|
347
347
|
*
|
|
348
348
|
* @deprecated
|
|
349
349
|
*/
|
|
350
|
-
key?: string;
|
|
350
|
+
key?: string | undefined;
|
|
351
351
|
/**
|
|
352
352
|
* This parameter is no longer available and will be removed from the
|
|
353
353
|
* documentation soon.
|
|
@@ -358,14 +358,14 @@ export declare class GroupService extends CommonHttpService {
|
|
|
358
358
|
*
|
|
359
359
|
* @deprecated
|
|
360
360
|
*/
|
|
361
|
-
username?: string;
|
|
361
|
+
username?: string | undefined;
|
|
362
362
|
/**
|
|
363
363
|
* The account ID of the user. The accountId uniquely identifies the user across
|
|
364
364
|
* all Atlassian products.
|
|
365
365
|
* For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.
|
|
366
366
|
*/
|
|
367
|
-
accountId?: string;
|
|
368
|
-
})
|
|
367
|
+
accountId?: string | undefined;
|
|
368
|
+
}) => Promise<void>;
|
|
369
369
|
/**
|
|
370
370
|
* Get search results of groups by partial query provided.
|
|
371
371
|
*
|
|
@@ -375,22 +375,22 @@ export declare class GroupService extends CommonHttpService {
|
|
|
375
375
|
* @scopes-beta read:group:confluence
|
|
376
376
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-group#api-wiki-rest-api-group-picker-get
|
|
377
377
|
*/
|
|
378
|
-
searchGroups({ query, start, limit, shouldReturnTotalSize, }: {
|
|
378
|
+
searchGroups: ({ query, start, limit, shouldReturnTotalSize, }: {
|
|
379
379
|
/** the search term used to query results. */
|
|
380
380
|
query: string;
|
|
381
381
|
/** The starting index of the returned groups. */
|
|
382
|
-
start?: number;
|
|
382
|
+
start?: number | undefined;
|
|
383
383
|
/**
|
|
384
384
|
* The maximum number of groups to return per page.
|
|
385
385
|
* Note, this is restricted to a maximum limit of 200 groups.
|
|
386
386
|
*/
|
|
387
|
-
limit?: number;
|
|
387
|
+
limit?: number | undefined;
|
|
388
388
|
/**
|
|
389
389
|
* Whether to include total size parameter in the results.
|
|
390
390
|
* Note, fetching total size property is an expensive operation; use it if your
|
|
391
391
|
* use case needs this value.
|
|
392
392
|
*/
|
|
393
|
-
shouldReturnTotalSize?: boolean;
|
|
394
|
-
})
|
|
393
|
+
shouldReturnTotalSize?: boolean | undefined;
|
|
394
|
+
}) => Promise<GroupArrayWithLinks>;
|
|
395
395
|
static initialize(): void;
|
|
396
396
|
}
|