confluence.js 1.2.0 → 1.3.1
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 +19 -0
- package/README.md +0 -57
- package/out/api/audit.js +6 -6
- package/out/api/content.js +11 -10
- package/out/api/contentAttachments.d.ts +2 -2
- package/out/api/contentAttachments.js +7 -6
- package/out/api/contentBody.js +1 -1
- package/out/api/contentChildrenAndDescendants.js +7 -7
- package/out/api/contentComments.js +1 -1
- package/out/api/contentLabels.js +4 -4
- package/out/api/contentMacroBody.js +1 -1
- package/out/api/contentPermissions.js +1 -1
- package/out/api/contentProperties.js +7 -6
- package/out/api/contentRestrictions.js +15 -15
- package/out/api/contentVersions.js +4 -4
- package/out/api/contentWatches.js +12 -12
- package/out/api/dynamicModules.js +3 -3
- package/out/api/experimental.d.ts +36 -0
- package/out/api/experimental.js +38 -2
- package/out/api/group.js +15 -15
- package/out/api/inlineTasks.js +3 -3
- package/out/api/labelInfo.js +1 -1
- package/out/api/longRunningTask.js +2 -2
- package/out/api/parameters/addLabelsToSpace.d.ts +4 -0
- package/out/api/parameters/addLabelsToSpace.js +2 -0
- package/out/api/parameters/deleteLabelFromSpace.d.ts +8 -0
- package/out/api/parameters/deleteLabelFromSpace.js +2 -0
- package/out/api/parameters/getBulkUserLookup.d.ts +0 -6
- package/out/api/parameters/getContentById.d.ts +85 -1
- package/out/api/parameters/getContentById.js +87 -0
- package/out/api/parameters/getContentChildren.d.ts +1 -0
- package/out/api/parameters/getContentProperties.d.ts +1 -1
- package/out/api/parameters/getContentProperty.d.ts +12 -0
- package/out/api/parameters/getContentVersions.d.ts +1 -1
- package/out/api/parameters/getCurrentUser.d.ts +1 -6
- package/out/api/parameters/getHistoryForContent.d.ts +1 -1
- package/out/api/parameters/getLabelsForSpace.d.ts +18 -0
- package/out/api/parameters/getLabelsForSpace.js +2 -0
- package/out/api/parameters/index.d.ts +3 -0
- package/out/api/parameters/index.js +3 -0
- package/out/api/parameters/restoreContentVersion.d.ts +1 -1
- package/out/api/parameters/searchUser.d.ts +7 -0
- package/out/api/relation.js +5 -5
- package/out/api/search.d.ts +2 -2
- package/out/api/search.js +3 -2
- package/out/api/settings.js +6 -6
- package/out/api/space.js +9 -9
- package/out/api/spacePermissions.js +3 -3
- package/out/api/spaceProperties.js +6 -6
- package/out/api/spaceSettings.js +2 -2
- package/out/api/template.d.ts +24 -16
- package/out/api/template.js +6 -6
- package/out/api/themes.js +6 -6
- package/out/api/users.js +8 -8
- package/out/clients/baseClient.d.ts +2 -5
- package/out/clients/baseClient.js +10 -32
- package/out/clients/client.d.ts +2 -3
- package/out/config.d.ts +3 -2
- package/out/index.d.ts +1 -0
- package/out/index.js +2 -1
- package/package.json +24 -24
- package/src/api/audit.ts +6 -6
- package/src/api/content.ts +11 -10
- package/src/api/contentAttachments.ts +10 -9
- package/src/api/contentBody.ts +1 -1
- package/src/api/contentChildrenAndDescendants.ts +7 -7
- package/src/api/contentComments.ts +1 -1
- package/src/api/contentLabels.ts +4 -4
- package/src/api/contentMacroBody.ts +1 -1
- package/src/api/contentPermissions.ts +1 -1
- package/src/api/contentProperties.ts +7 -6
- package/src/api/contentRestrictions.ts +15 -15
- package/src/api/contentVersions.ts +4 -4
- package/src/api/contentWatches.ts +12 -12
- package/src/api/dynamicModules.ts +3 -3
- package/src/api/experimental.ts +95 -2
- package/src/api/group.ts +16 -15
- package/src/api/inlineTasks.ts +3 -3
- package/src/api/labelInfo.ts +1 -1
- package/src/api/longRunningTask.ts +2 -2
- package/src/api/parameters/addLabelsToSpace.ts +4 -0
- package/src/api/parameters/deleteLabelFromSpace.ts +8 -0
- package/src/api/parameters/getBulkUserLookup.ts +0 -6
- package/src/api/parameters/getContentById.ts +86 -1
- package/src/api/parameters/getContentChildren.ts +1 -0
- package/src/api/parameters/getContentProperties.ts +1 -1
- package/src/api/parameters/getContentProperty.ts +12 -0
- package/src/api/parameters/getContentVersions.ts +1 -1
- package/src/api/parameters/getCurrentUser.ts +1 -6
- package/src/api/parameters/getHistoryForContent.ts +1 -1
- package/src/api/parameters/getLabelsForSpace.ts +18 -0
- package/src/api/parameters/index.ts +3 -0
- package/src/api/parameters/restoreContentVersion.ts +1 -1
- package/src/api/parameters/searchUser.ts +7 -0
- package/src/api/relation.ts +5 -5
- package/src/api/search.ts +6 -4
- package/src/api/settings.ts +6 -6
- package/src/api/space.ts +9 -9
- package/src/api/spacePermissions.ts +3 -3
- package/src/api/spaceProperties.ts +6 -6
- package/src/api/spaceSettings.ts +2 -2
- package/src/api/template.ts +30 -22
- package/src/api/themes.ts +6 -6
- package/src/api/users.ts +8 -8
- package/src/clients/baseClient.ts +10 -62
- package/src/clients/client.ts +2 -3
- package/src/config.ts +3 -2
- package/src/index.ts +1 -0
- package/tsconfig.json +2 -1
|
@@ -39,7 +39,7 @@ export class LongRunningTask {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
return this.client.sendRequest(config, callback
|
|
42
|
+
return this.client.sendRequest(config, callback);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -70,6 +70,6 @@ export class LongRunningTask {
|
|
|
70
70
|
method: 'GET',
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
return this.client.sendRequest(config, callback
|
|
73
|
+
return this.client.sendRequest(config, callback);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface DeleteLabelFromSpace {
|
|
2
|
+
/** The key of the space to remove a labels from. */
|
|
3
|
+
spaceKey: string;
|
|
4
|
+
/** The name of the label to remove */
|
|
5
|
+
name: string;
|
|
6
|
+
/** The prefix of the label to remove. If not provided defaults to global. */
|
|
7
|
+
prefix?: string;
|
|
8
|
+
}
|
|
@@ -5,12 +5,6 @@ export interface GetBulkUserLookup {
|
|
|
5
5
|
* A multi-value parameter indicating which properties of the user to expand.
|
|
6
6
|
*
|
|
7
7
|
* - `operations` returns the operations that the user is allowed to do.
|
|
8
|
-
* - `details.personal` returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'. Note that
|
|
9
|
-
* these fields have been deprecated due to privacy changes. See the [migration
|
|
10
|
-
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.
|
|
11
|
-
* - `details.business` returns the 'Company' details in the user's profile, like the 'Position' and 'Department'. Note
|
|
12
|
-
* that these fields have been deprecated due to privacy changes. See the [migration
|
|
13
|
-
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.
|
|
14
8
|
* - PersonalSpace returns the user's personal space, if it exists.
|
|
15
9
|
*/
|
|
16
10
|
expand?: string[];
|
|
@@ -19,10 +19,95 @@ export interface GetContentById {
|
|
|
19
19
|
*/
|
|
20
20
|
embeddedContentRender?: string;
|
|
21
21
|
/** A multi-value parameter indicating which properties of the content to expand. */
|
|
22
|
-
expand?: string[];
|
|
22
|
+
expand?: string | string[] | GetContentById.Expand | GetContentById.Expand[];
|
|
23
23
|
/**
|
|
24
24
|
* If set to `viewed`, the request will trigger a 'viewed' event for the content. When this event is triggered, the
|
|
25
25
|
* page/blogpost will appear on the 'Recently visited' tab of the user's Confluence dashboard.
|
|
26
26
|
*/
|
|
27
27
|
trigger?: string;
|
|
28
28
|
}
|
|
29
|
+
|
|
30
|
+
export namespace GetContentById {
|
|
31
|
+
export enum Expand {
|
|
32
|
+
/**
|
|
33
|
+
* Returns whether the content has attachments, comments, or child pages. Use this if you only need to check whether
|
|
34
|
+
* the content has children of a particular type.
|
|
35
|
+
*/
|
|
36
|
+
AllChildTypes = 'childTypes.all',
|
|
37
|
+
/** Returns whether the content has attachments. */
|
|
38
|
+
AttachmentChildType = 'childTypes.attachment',
|
|
39
|
+
/** Returns whether the content has comments. */
|
|
40
|
+
CommentChildType = 'childTypes.comment',
|
|
41
|
+
/** Returns whether the content has child pages. */
|
|
42
|
+
PageChildType = 'childTypes.page',
|
|
43
|
+
/**
|
|
44
|
+
* Returns the space that the content is in. This is the same as the information returned by [Get
|
|
45
|
+
* space](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/).
|
|
46
|
+
*/
|
|
47
|
+
Container = 'container',
|
|
48
|
+
/**
|
|
49
|
+
* Returns information about the current user in relation to the content, including when they last viewed it,
|
|
50
|
+
* modified it, contributed to it, or added it as a favorite.
|
|
51
|
+
*/
|
|
52
|
+
CurrentUserMetadata = 'metadata.currentuser',
|
|
53
|
+
/** Returns content properties that have been set via the Confluence REST API. */
|
|
54
|
+
PropertiesMetadata = 'metadata.properties',
|
|
55
|
+
/** Returns the labels that have been added to the content. */
|
|
56
|
+
LabelsMetadata = 'metadata.labels',
|
|
57
|
+
/** This property is only used by Atlassian. */
|
|
58
|
+
FrontendMetadata = 'metadata.frontend',
|
|
59
|
+
/** Returns the operations for the content, which are used when setting permissions. */
|
|
60
|
+
Operations = 'operations',
|
|
61
|
+
/** Returns pages that are descendants at the level immediately below the content. */
|
|
62
|
+
PageChildren = 'children.page',
|
|
63
|
+
/** Returns all attachments for the content. */
|
|
64
|
+
AttachmentChildren = 'children.attachment',
|
|
65
|
+
/** Returns all comments on the content. */
|
|
66
|
+
CommentChildren = 'children.comment',
|
|
67
|
+
/** Returns the users that have permission to read the content. */
|
|
68
|
+
ReadUserRestriction = 'restrictions.read.restrictions.user',
|
|
69
|
+
/**
|
|
70
|
+
* Returns the groups that have permission to read the content. Note that this may return deleted groups, because
|
|
71
|
+
* deleting a group doesn't remove associated restrictions.
|
|
72
|
+
*/
|
|
73
|
+
ReadGroupRestriction = 'restrictions.read.restrictions.group',
|
|
74
|
+
/** Returns the users that have permission to update the content. */
|
|
75
|
+
UpdateUserRestriction = 'restrictions.update.restrictions.user',
|
|
76
|
+
/**
|
|
77
|
+
* Returns the groups that have permission to update the content. Note that this may return deleted groups because
|
|
78
|
+
* deleting a group doesn't remove associated restrictions.
|
|
79
|
+
*/
|
|
80
|
+
UpdateGroupRestriction = 'restrictions.update.restrictions.group',
|
|
81
|
+
/** Returns the history of the content, including the date it was created. */
|
|
82
|
+
History = 'history',
|
|
83
|
+
/** Returns information about the most recent update of the content, including who updated it and when it was updated. */
|
|
84
|
+
LastUpdated = 'history.lastUpdated',
|
|
85
|
+
/** Returns information about the update prior to the current content update. */
|
|
86
|
+
PreviousVersion = 'history.previousVersion',
|
|
87
|
+
/** Returns all of the users who have contributed to the content. */
|
|
88
|
+
Contributors = 'history.contributors',
|
|
89
|
+
/** Returns information about the update after to the current content update. */
|
|
90
|
+
NextVersion = 'history.nextVersion',
|
|
91
|
+
/** Returns the parent page, if the content is a page. */
|
|
92
|
+
Ancestors = 'ancestors',
|
|
93
|
+
/** Returns the body of the content in different formats, including the editor format, view format, and export format. */
|
|
94
|
+
Body = 'body',
|
|
95
|
+
/** Returns information about the most recent update of the content, including who updated it and when it was updated. */
|
|
96
|
+
Version = 'version',
|
|
97
|
+
/** Returns pages that are descendants at any level below the content. */
|
|
98
|
+
PageDescendant = 'descendants.page',
|
|
99
|
+
/** Returns all attachments for the content, same as `children.attachment`. */
|
|
100
|
+
AttachmentDescendant = 'descendants.attachment',
|
|
101
|
+
/** Returns all comments on the content, same as `children.comment`. */
|
|
102
|
+
CommentDescendant = 'descendants.comment',
|
|
103
|
+
/**
|
|
104
|
+
* Returns the space that the content is in. This is the same as the information returned by [Get
|
|
105
|
+
* space](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/).
|
|
106
|
+
*/
|
|
107
|
+
Space = 'space',
|
|
108
|
+
/** Returns inline comment-specific properties. */
|
|
109
|
+
InlineProperties = 'extensions.inlineProperties',
|
|
110
|
+
/** Returns the resolution status of each comment. */
|
|
111
|
+
Resolution = 'extensions.resolution',
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -7,6 +7,7 @@ export interface GetContentChildren {
|
|
|
7
7
|
* - `attachment` returns all attachments for the content.
|
|
8
8
|
* - `comments` returns all comments for the content.
|
|
9
9
|
* - `page` returns all child pages of the content.
|
|
10
|
+
* - Custom content types that are provided by apps are also supported.
|
|
10
11
|
*/
|
|
11
12
|
expand?: string[];
|
|
12
13
|
/** The version of the parent content to retrieve children for. Currently, this only works for the latest version. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface GetContentProperties {
|
|
2
2
|
/** The ID of the content to be queried for its properties. */
|
|
3
3
|
id: string;
|
|
4
|
-
/**The key of the content property
|
|
4
|
+
/** The key of the content property. */
|
|
5
5
|
key?: string[];
|
|
6
6
|
/**
|
|
7
7
|
* A multi-value parameter indicating which properties of the content to expand. By default, the `version` object is expanded.
|
|
@@ -10,4 +10,16 @@ export interface GetContentProperty {
|
|
|
10
10
|
* - `version` returns information about the version of the property, such as the version number, when it was created, etc.
|
|
11
11
|
*/
|
|
12
12
|
expand?: string[];
|
|
13
|
+
/**
|
|
14
|
+
* Filter the results to a set of content based on their status. If set to `any`, content with any status is returned.
|
|
15
|
+
* By default it will fetch current and archived statuses `?status=current&status=archived`. All supported statuses
|
|
16
|
+
*
|
|
17
|
+
* - any
|
|
18
|
+
* - archived
|
|
19
|
+
* - current
|
|
20
|
+
* - deleted
|
|
21
|
+
* - draft
|
|
22
|
+
* - trashed
|
|
23
|
+
*/
|
|
24
|
+
status?: string[];
|
|
13
25
|
}
|
|
@@ -6,7 +6,7 @@ export interface GetContentVersions {
|
|
|
6
6
|
/** The maximum number of versions to return per page. Note, this may be restricted by fixed system limits. */
|
|
7
7
|
limit?: number;
|
|
8
8
|
/**
|
|
9
|
-
* A multi-value parameter indicating which properties of the content to expand.
|
|
9
|
+
* A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded.
|
|
10
10
|
*
|
|
11
11
|
* - `collaborators` returns the users that collaborated on the version.
|
|
12
12
|
* - `content` returns the content for the version.
|
|
@@ -3,13 +3,8 @@ export interface GetCurrentUser {
|
|
|
3
3
|
* A multi-value parameter indicating which properties of the user to expand.
|
|
4
4
|
*
|
|
5
5
|
* - `operations` returns the operations that the user is allowed to do.
|
|
6
|
-
* - `details.personal` returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'. Note that
|
|
7
|
-
* these fields have been deprecated due to privacy changes. See the [migration
|
|
8
|
-
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.
|
|
9
|
-
* - `details.business` returns the 'Company' details in the user's profile, like the 'Position' and 'Department'. Note
|
|
10
|
-
* that these fields have been deprecated due to privacy changes. See the [migration
|
|
11
|
-
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.
|
|
12
6
|
* - PersonalSpace returns the user's personal space, if it exists.
|
|
7
|
+
* - `isExternalCollaborator` returns whether the user is an external collaborator user
|
|
13
8
|
*/
|
|
14
9
|
expand?: string[];
|
|
15
10
|
}
|
|
@@ -2,7 +2,7 @@ export interface GetHistoryForContent {
|
|
|
2
2
|
/** The ID of the content to be queried for its history. */
|
|
3
3
|
id: string;
|
|
4
4
|
/**
|
|
5
|
-
* A multi-value parameter indicating which properties of the content history to expand.
|
|
5
|
+
* A multi-value parameter indicating which properties of the content history to expand. Maximum sub-expansions allowed is `8`.
|
|
6
6
|
*
|
|
7
7
|
* - `lastUpdated` returns information about the most recent update of the content, including who updated it and when it
|
|
8
8
|
* was updated.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface GetLabelsForSpace {
|
|
2
|
+
/** The key of the space to get labels for. */
|
|
3
|
+
spaceKey: string;
|
|
4
|
+
/**
|
|
5
|
+
* Filters the results to labels with the specified prefix. If this parameter is not specified, then labels with any
|
|
6
|
+
* prefix will be returned.
|
|
7
|
+
*
|
|
8
|
+
* - `global` prefix is used by labels that are on content within the provided space.
|
|
9
|
+
* - `my` prefix can be explicitly added by a user when adding a label
|
|
10
|
+
* via the UI, e.g. 'my:example-label'.
|
|
11
|
+
* - `team` prefix is used for labels applied to the space.
|
|
12
|
+
*/
|
|
13
|
+
prefix?: string;
|
|
14
|
+
/** The starting index of the returned labels. */
|
|
15
|
+
start?: number;
|
|
16
|
+
/** The maximum number of labels to return per page. Note, this may be restricted by fixed system limits. */
|
|
17
|
+
limit?: number;
|
|
18
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from './addCustomContentPermissions';
|
|
|
3
3
|
export * from './addGroupToContentRestriction';
|
|
4
4
|
export * from './addGroupToContentRestrictionByGroupId';
|
|
5
5
|
export * from './addLabelsToContent';
|
|
6
|
+
export * from './addLabelsToSpace';
|
|
6
7
|
export * from './addLabelWatcher';
|
|
7
8
|
export * from './addPermission';
|
|
8
9
|
export * from './addPermissionToSpace';
|
|
@@ -33,6 +34,7 @@ export * from './delete';
|
|
|
33
34
|
export * from './deleteContent';
|
|
34
35
|
export * from './deleteContentProperty';
|
|
35
36
|
export * from './deleteContentVersion';
|
|
37
|
+
export * from './deleteLabelFromSpace';
|
|
36
38
|
export * from './deleteRelationship';
|
|
37
39
|
export * from './deleteRestrictions';
|
|
38
40
|
export * from './deleteSpace';
|
|
@@ -81,6 +83,7 @@ export * from './getGroupsSearch';
|
|
|
81
83
|
export * from './getHistoryForContent';
|
|
82
84
|
export * from './getIndividualGroupRestrictionStatusByGroupId';
|
|
83
85
|
export * from './getLabelsForContent';
|
|
86
|
+
export * from './getLabelsForSpace';
|
|
84
87
|
export * from './getLookAndFeelSettings';
|
|
85
88
|
export * from './getMacroBodyByMacroId';
|
|
86
89
|
export * from './getMembersByQueryParam';
|
|
@@ -4,7 +4,7 @@ export interface RestoreContentVersion extends VersionRestore {
|
|
|
4
4
|
/** The ID of the content for which the history will be restored. */
|
|
5
5
|
id: string;
|
|
6
6
|
/**
|
|
7
|
-
* A multi-value parameter indicating which properties of the
|
|
7
|
+
* A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded.
|
|
8
8
|
*
|
|
9
9
|
* - `collaborators` returns the users that collaborated on the version.
|
|
10
10
|
* - `content` returns the content for the version.
|
|
@@ -17,4 +17,11 @@ export interface SearchUser {
|
|
|
17
17
|
start?: number;
|
|
18
18
|
/** The maximum number of user objects to return per page. Note, this may be restricted by fixed system limits. */
|
|
19
19
|
limit?: number;
|
|
20
|
+
/**
|
|
21
|
+
* A multi-value parameter indicating which properties of the user to expand.
|
|
22
|
+
*
|
|
23
|
+
* - `operations` returns the operations for the user, which are used when setting permissions.
|
|
24
|
+
* - `personalSpace` returns the personal space of the user.
|
|
25
|
+
*/
|
|
26
|
+
expand?: string[];
|
|
20
27
|
}
|
package/src/api/relation.ts
CHANGED
|
@@ -53,7 +53,7 @@ export class Relation {
|
|
|
53
53
|
},
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
return this.client.sendRequest(config, callback
|
|
56
|
+
return this.client.sendRequest(config, callback);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/** @deprecated Will be removed in the next major version. Use `getRelationship` instead. */
|
|
@@ -113,7 +113,7 @@ export class Relation {
|
|
|
113
113
|
},
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
return this.client.sendRequest(config, callback
|
|
116
|
+
return this.client.sendRequest(config, callback);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
/**
|
|
@@ -159,7 +159,7 @@ export class Relation {
|
|
|
159
159
|
},
|
|
160
160
|
};
|
|
161
161
|
|
|
162
|
-
return this.client.sendRequest(config, callback
|
|
162
|
+
return this.client.sendRequest(config, callback);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
/** @deprecated Will be removed in the next major version. Use `deleteRelationship` instead. */
|
|
@@ -201,7 +201,7 @@ export class Relation {
|
|
|
201
201
|
},
|
|
202
202
|
};
|
|
203
203
|
|
|
204
|
-
return this.client.sendRequest(config, callback
|
|
204
|
+
return this.client.sendRequest(config, callback);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/**
|
|
@@ -252,6 +252,6 @@ export class Relation {
|
|
|
252
252
|
},
|
|
253
253
|
};
|
|
254
254
|
|
|
255
|
-
return this.client.sendRequest(config, callback
|
|
255
|
+
return this.client.sendRequest(config, callback);
|
|
256
256
|
}
|
|
257
257
|
}
|
package/src/api/search.ts
CHANGED
|
@@ -74,7 +74,7 @@ export class Search {
|
|
|
74
74
|
},
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
return this.client.sendRequest(config, callback
|
|
77
|
+
return this.client.sendRequest(config, callback);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/** @deprecated Will be removed in the next major version. Use `searchUser` instead. */
|
|
@@ -93,12 +93,13 @@ export class Search {
|
|
|
93
93
|
): Promise<void | T> {
|
|
94
94
|
return this.searchUser(parameters, callback!);
|
|
95
95
|
}
|
|
96
|
+
|
|
96
97
|
/**
|
|
97
98
|
* Searches for users using user-specific queries from the [Confluence Query Language
|
|
98
99
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
|
|
99
100
|
*
|
|
100
101
|
* Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
|
|
101
|
-
* profilePicture, and
|
|
102
|
+
* profilePicture, displayName, and timeZone.
|
|
102
103
|
*/
|
|
103
104
|
async searchUser<T = Models.SearchPageResponseSearchResult>(
|
|
104
105
|
parameters: Parameters.SearchUser,
|
|
@@ -109,7 +110,7 @@ export class Search {
|
|
|
109
110
|
* (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
|
|
110
111
|
*
|
|
111
112
|
* Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
|
|
112
|
-
* profilePicture, and
|
|
113
|
+
* profilePicture, displayName, and timeZone.
|
|
113
114
|
*/
|
|
114
115
|
async searchUser<T = Models.SearchPageResponseSearchResult>(
|
|
115
116
|
parameters: Parameters.SearchUser,
|
|
@@ -126,9 +127,10 @@ export class Search {
|
|
|
126
127
|
cql: parameters.cql,
|
|
127
128
|
start: parameters.start,
|
|
128
129
|
limit: parameters.limit,
|
|
130
|
+
expand: parameters.expand,
|
|
129
131
|
},
|
|
130
132
|
};
|
|
131
133
|
|
|
132
|
-
return this.client.sendRequest(config, callback
|
|
134
|
+
return this.client.sendRequest(config, callback);
|
|
133
135
|
}
|
|
134
136
|
}
|
package/src/api/settings.ts
CHANGED
|
@@ -43,7 +43,7 @@ export class Settings {
|
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
return this.client.sendRequest(config, callback
|
|
46
|
+
return this.client.sendRequest(config, callback);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -81,7 +81,7 @@ export class Settings {
|
|
|
81
81
|
},
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
return this.client.sendRequest(config, callback
|
|
84
|
+
return this.client.sendRequest(config, callback);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -133,7 +133,7 @@ export class Settings {
|
|
|
133
133
|
},
|
|
134
134
|
};
|
|
135
135
|
|
|
136
|
-
return this.client.sendRequest(config, callback
|
|
136
|
+
return this.client.sendRequest(config, callback);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/**
|
|
@@ -170,7 +170,7 @@ export class Settings {
|
|
|
170
170
|
},
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
return this.client.sendRequest(config, callback
|
|
173
|
+
return this.client.sendRequest(config, callback);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
/**
|
|
@@ -205,7 +205,7 @@ export class Settings {
|
|
|
205
205
|
},
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
return this.client.sendRequest(config, callback
|
|
208
|
+
return this.client.sendRequest(config, callback);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
/**
|
|
@@ -228,6 +228,6 @@ export class Settings {
|
|
|
228
228
|
method: 'GET',
|
|
229
229
|
};
|
|
230
230
|
|
|
231
|
-
return this.client.sendRequest(config, callback
|
|
231
|
+
return this.client.sendRequest(config, callback);
|
|
232
232
|
}
|
|
233
233
|
}
|
package/src/api/space.ts
CHANGED
|
@@ -31,7 +31,7 @@ export class Space {
|
|
|
31
31
|
url: '/api/space',
|
|
32
32
|
method: 'GET',
|
|
33
33
|
params: {
|
|
34
|
-
spaceKey: parameters?.spaceKey,
|
|
34
|
+
spaceKey: () => parameters?.spaceKey?.map((key) => `spaceKey=${key}`).join('&'),
|
|
35
35
|
spaceId: parameters?.spaceId,
|
|
36
36
|
type: parameters?.type,
|
|
37
37
|
status: parameters?.status,
|
|
@@ -43,7 +43,7 @@ export class Space {
|
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
return this.client.sendRequest(config, callback
|
|
46
|
+
return this.client.sendRequest(config, callback);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -73,7 +73,7 @@ export class Space {
|
|
|
73
73
|
},
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
return this.client.sendRequest(config, callback
|
|
76
|
+
return this.client.sendRequest(config, callback);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
@@ -110,7 +110,7 @@ export class Space {
|
|
|
110
110
|
},
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
return this.client.sendRequest(config, callback
|
|
113
|
+
return this.client.sendRequest(config, callback);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/**
|
|
@@ -131,7 +131,7 @@ export class Space {
|
|
|
131
131
|
method: 'GET',
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
-
return this.client.sendRequest(config, callback
|
|
134
|
+
return this.client.sendRequest(config, callback);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
/**
|
|
@@ -165,7 +165,7 @@ export class Space {
|
|
|
165
165
|
},
|
|
166
166
|
};
|
|
167
167
|
|
|
168
|
-
return this.client.sendRequest(config, callback
|
|
168
|
+
return this.client.sendRequest(config, callback);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
/**
|
|
@@ -193,7 +193,7 @@ export class Space {
|
|
|
193
193
|
method: 'DELETE',
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
return this.client.sendRequest(config, callback
|
|
196
|
+
return this.client.sendRequest(config, callback);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
/**
|
|
@@ -232,7 +232,7 @@ export class Space {
|
|
|
232
232
|
},
|
|
233
233
|
};
|
|
234
234
|
|
|
235
|
-
return this.client.sendRequest(config, callback
|
|
235
|
+
return this.client.sendRequest(config, callback);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
/**
|
|
@@ -269,6 +269,6 @@ export class Space {
|
|
|
269
269
|
},
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
return this.client.sendRequest(config, callback
|
|
272
|
+
return this.client.sendRequest(config, callback);
|
|
273
273
|
}
|
|
274
274
|
}
|
|
@@ -61,7 +61,7 @@ export class SpacePermissions {
|
|
|
61
61
|
},
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
return this.client.sendRequest(config, callback
|
|
64
|
+
return this.client.sendRequest(config, callback);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -103,7 +103,7 @@ export class SpacePermissions {
|
|
|
103
103
|
},
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
return this.client.sendRequest(config, callback
|
|
106
|
+
return this.client.sendRequest(config, callback);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/**
|
|
@@ -130,6 +130,6 @@ export class SpacePermissions {
|
|
|
130
130
|
method: 'DELETE',
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
return this.client.sendRequest(config, callback
|
|
133
|
+
return this.client.sendRequest(config, callback);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -39,7 +39,7 @@ export class SpaceProperties {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
return this.client.sendRequest(config, callback
|
|
42
|
+
return this.client.sendRequest(config, callback);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -74,7 +74,7 @@ export class SpaceProperties {
|
|
|
74
74
|
},
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
return this.client.sendRequest(config, callback
|
|
77
|
+
return this.client.sendRequest(config, callback);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
@@ -107,7 +107,7 @@ export class SpaceProperties {
|
|
|
107
107
|
},
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
return this.client.sendRequest(config, callback
|
|
110
|
+
return this.client.sendRequest(config, callback);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
@@ -142,7 +142,7 @@ export class SpaceProperties {
|
|
|
142
142
|
},
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
-
return this.client.sendRequest(config, callback
|
|
145
|
+
return this.client.sendRequest(config, callback);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -176,7 +176,7 @@ export class SpaceProperties {
|
|
|
176
176
|
},
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
return this.client.sendRequest(config, callback
|
|
179
|
+
return this.client.sendRequest(config, callback);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
/**
|
|
@@ -200,6 +200,6 @@ export class SpaceProperties {
|
|
|
200
200
|
method: 'DELETE',
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
return this.client.sendRequest(config, callback
|
|
203
|
+
return this.client.sendRequest(config, callback);
|
|
204
204
|
}
|
|
205
205
|
}
|
package/src/api/spaceSettings.ts
CHANGED
|
@@ -34,7 +34,7 @@ export class SpaceSettings {
|
|
|
34
34
|
method: 'GET',
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
return this.client.sendRequest(config, callback
|
|
37
|
+
return this.client.sendRequest(config, callback);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -67,6 +67,6 @@ export class SpaceSettings {
|
|
|
67
67
|
},
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
return this.client.sendRequest(config, callback
|
|
70
|
+
return this.client.sendRequest(config, callback);
|
|
71
71
|
}
|
|
72
72
|
}
|