confluence.js 1.6.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +8 -3
- package/CHANGELOG.md +4 -0
- package/README.md +16 -0
- package/out/api/models/addContentRestriction.d.ts +8 -3
- package/out/api/models/appDescriptor.d.ts +6 -3
- package/out/api/models/asyncContentBody.d.ts +2 -2
- package/out/api/models/attachmentUpdate.d.ts +1 -1
- package/out/api/models/auditRecordCreate.d.ts +6 -2
- package/out/api/models/contentBlueprintDraft.d.ts +2 -1
- package/out/api/models/contentRestrictionUpdate.d.ts +8 -3
- package/out/api/models/contentTemplateUpdate.d.ts +4 -1
- package/out/api/models/labeledContentType.js +1 -1
- package/out/api/models/labeledContentType.js.map +1 -1
- package/out/api/models/lifecycle.d.ts +6 -2
- package/out/api/parameters/addLabelsToContent.d.ts +2 -1
- package/out/api/parameters/createContent.d.ts +12 -3
- package/out/api/parameters/createContent.js +13 -4
- package/out/api/parameters/createContent.js.map +1 -1
- package/out/api/parameters/createRelationship.d.ts +4 -1
- package/out/api/parameters/createUserProperty.d.ts +2 -2
- package/out/api/parameters/delete.d.ts +4 -1
- package/out/api/parameters/deleteRelationship.d.ts +8 -5
- package/out/api/parameters/deleteUserProperty.d.ts +2 -2
- package/out/api/parameters/findSourcesForTarget.d.ts +2 -1
- package/out/api/parameters/findTargetFromSource.d.ts +2 -1
- package/out/api/parameters/getAttachments.d.ts +12 -3
- package/out/api/parameters/getAttachments.js +13 -4
- package/out/api/parameters/getAttachments.js.map +1 -1
- package/out/api/parameters/getAvailableContentStates.d.ts +1 -1
- package/out/api/parameters/getContent.d.ts +16 -4
- package/out/api/parameters/getContent.js +13 -4
- package/out/api/parameters/getContent.js.map +1 -1
- package/out/api/parameters/getContentById.d.ts +12 -3
- package/out/api/parameters/getContentById.js +13 -4
- package/out/api/parameters/getContentById.js.map +1 -1
- package/out/api/parameters/getContentProperties.d.ts +4 -2
- package/out/api/parameters/getContentProperty.d.ts +10 -8
- package/out/api/parameters/getContentTemplates.d.ts +4 -1
- package/out/api/parameters/getContentVersion.d.ts +2 -1
- package/out/api/parameters/getContentVersions.d.ts +2 -1
- package/out/api/parameters/getDescendantsOfType.d.ts +12 -3
- package/out/api/parameters/getDescendantsOfType.js +13 -4
- package/out/api/parameters/getDescendantsOfType.js.map +1 -1
- package/out/api/parameters/getHistoryForContent.d.ts +2 -1
- package/out/api/parameters/getLabelsForContent.d.ts +2 -1
- package/out/api/parameters/getRelationship.d.ts +6 -2
- package/out/api/parameters/getSpaces.d.ts +10 -3
- package/out/api/parameters/removeGroupById.d.ts +2 -2
- package/out/api/parameters/removeGroupByName.d.ts +2 -2
- package/out/api/parameters/removeModules.d.ts +2 -1
- package/out/api/parameters/restoreContentVersion.d.ts +2 -1
- package/out/api/parameters/search.d.ts +2 -2
- package/out/api/parameters/updateAttachmentProperties.d.ts +15 -15
- package/out/api/parameters/updateUserProperty.d.ts +2 -2
- package/out/clients/baseClient.d.ts +0 -1
- package/out/clients/baseClient.js +2 -2
- package/out/clients/baseClient.js.map +1 -1
- package/out/clients/confluenceClient.d.ts +2 -0
- package/out/clients/confluenceClient.js +3 -2
- package/out/clients/confluenceClient.js.map +1 -1
- package/out/clients/serverClient.d.ts +2 -1
- package/out/clients/serverClient.js +3 -3
- package/out/clients/serverClient.js.map +1 -1
- package/out/config.d.ts +7 -7
- package/out/server/parameters/createAuditRecord.d.ts +6 -2
- package/out/server/parameters/getAttachments.d.ts +12 -3
- package/out/server/parameters/getAttachments.js +13 -4
- package/out/server/parameters/getAttachments.js.map +1 -1
- package/out/services/authenticationService/authenticationService.js +1 -1
- package/out/services/authenticationService/authenticationService.js.map +1 -1
- package/out/services/authenticationService/authentications/createJWTAuthentication.js +1 -1
- package/out/services/authenticationService/authentications/createJWTAuthentication.js.map +1 -1
- package/out/services/authenticationService/base64Encoder.d.ts +1 -3
- package/out/services/authenticationService/base64Encoder.js +3 -5
- package/out/services/authenticationService/base64Encoder.js.map +1 -1
- package/out/utilityTypes.d.ts +5 -1
- package/package.json +18 -18
- package/src/api/audit.ts +9 -9
- package/src/api/content.ts +8 -8
- package/src/api/contentAttachments.ts +10 -10
- package/src/api/contentBody.ts +6 -6
- package/src/api/contentChildrenAndDescendants.ts +11 -11
- package/src/api/contentComments.ts +2 -2
- package/src/api/contentContentState.ts +10 -10
- package/src/api/contentLabels.ts +7 -7
- package/src/api/contentMacroBody.ts +6 -6
- package/src/api/contentPermissions.ts +4 -4
- package/src/api/contentProperties.ts +11 -11
- package/src/api/contentRestrictions.ts +26 -26
- package/src/api/contentStates.ts +12 -12
- package/src/api/contentVersions.ts +6 -6
- package/src/api/contentWatches.ts +11 -11
- package/src/api/dynamicModules.ts +1 -1
- package/src/api/experimental.ts +9 -9
- package/src/api/group.ts +18 -18
- package/src/api/inlineTasks.ts +1 -1
- package/src/api/labelInfo.ts +2 -2
- package/src/api/longRunningTask.ts +2 -2
- package/src/api/models/addContentRestriction.ts +8 -3
- package/src/api/models/appDescriptor.ts +6 -3
- package/src/api/models/asyncContentBody.ts +2 -2
- package/src/api/models/attachmentContainer.ts +1 -1
- package/src/api/models/attachmentUpdate.ts +1 -1
- package/src/api/models/auditRecordCreate.ts +6 -2
- package/src/api/models/contentBlueprintDraft.ts +2 -1
- package/src/api/models/contentRestrictionUpdate.ts +8 -3
- package/src/api/models/contentTemplateUpdate.ts +4 -1
- package/src/api/models/lifecycle.ts +6 -2
- package/src/api/parameters/addLabelsToContent.ts +2 -1
- package/src/api/parameters/createContent.ts +12 -3
- package/src/api/parameters/createRelationship.ts +4 -1
- package/src/api/parameters/createUserProperty.ts +2 -2
- package/src/api/parameters/delete.ts +4 -1
- package/src/api/parameters/deleteRelationship.ts +8 -5
- package/src/api/parameters/deleteUserProperty.ts +2 -2
- package/src/api/parameters/findSourcesForTarget.ts +2 -1
- package/src/api/parameters/findTargetFromSource.ts +2 -1
- package/src/api/parameters/getAttachments.ts +12 -3
- package/src/api/parameters/getAvailableContentStates.ts +1 -1
- package/src/api/parameters/getContent.ts +16 -4
- package/src/api/parameters/getContentById.ts +12 -3
- package/src/api/parameters/getContentProperties.ts +4 -2
- package/src/api/parameters/getContentProperty.ts +10 -8
- package/src/api/parameters/getContentTemplates.ts +4 -1
- package/src/api/parameters/getContentVersion.ts +2 -1
- package/src/api/parameters/getContentVersions.ts +2 -1
- package/src/api/parameters/getDescendantsOfType.ts +12 -3
- package/src/api/parameters/getHistoryForContent.ts +2 -1
- package/src/api/parameters/getLabelsForContent.ts +2 -1
- package/src/api/parameters/getRelationship.ts +6 -2
- package/src/api/parameters/getSpaces.ts +10 -3
- package/src/api/parameters/removeGroupById.ts +2 -2
- package/src/api/parameters/removeGroupByName.ts +2 -2
- package/src/api/parameters/removeModules.ts +2 -1
- package/src/api/parameters/restoreContentVersion.ts +2 -1
- package/src/api/parameters/search.ts +2 -2
- package/src/api/parameters/updateAttachmentProperties.ts +15 -15
- package/src/api/parameters/updateUserProperty.ts +2 -2
- package/src/api/relation.ts +8 -8
- package/src/api/search.ts +7 -7
- package/src/api/settings.ts +12 -12
- package/src/api/space.ts +7 -7
- package/src/api/spacePermissions.ts +5 -5
- package/src/api/spaceProperties.ts +10 -10
- package/src/api/spaceSettings.ts +4 -4
- package/src/api/template.ts +10 -10
- package/src/api/themes.ts +1 -1
- package/src/api/users.ts +13 -13
- package/src/clients/baseClient.ts +4 -4
- package/src/clients/confluenceClient.ts +8 -0
- package/src/clients/serverClient.ts +7 -1
- package/src/config.ts +19 -11
- package/src/server/audit.ts +9 -9
- package/src/server/content.ts +49 -49
- package/src/server/contentBody.ts +2 -2
- package/src/server/group.ts +2 -2
- package/src/server/longTask.ts +1 -1
- package/src/server/parameters/createAuditRecord.ts +6 -2
- package/src/server/parameters/getAttachments.ts +12 -3
- package/src/server/parameters/updateAttachmentData.ts +1 -1
- package/src/server/search.ts +2 -2
- package/src/server/space.ts +16 -16
- package/src/server/user.ts +7 -7
- package/src/services/authenticationService/authentications/createJWTAuthentication.ts +1 -4
- package/src/services/authenticationService/base64Encoder.ts +5 -5
- package/src/utilityTypes.ts +7 -1
|
@@ -15,7 +15,7 @@ export class ContentContentState {
|
|
|
15
15
|
*/
|
|
16
16
|
async getContentState<T = Models.ContentStateContainer>(
|
|
17
17
|
parameters: Parameters.GetContentState,
|
|
18
|
-
callback: Callback<T
|
|
18
|
+
callback: Callback<T>,
|
|
19
19
|
): Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* @deprecated Gets the current page status of the draft or published version of content. To specify the draft
|
|
@@ -23,7 +23,7 @@ export class ContentContentState {
|
|
|
23
23
|
*/
|
|
24
24
|
async getContentState<T = Models.ContentStateContainer>(
|
|
25
25
|
parameters: Parameters.GetContentState,
|
|
26
|
-
callback?: never
|
|
26
|
+
callback?: never,
|
|
27
27
|
): Promise<T>;
|
|
28
28
|
async getContentState<T = Models.ContentStateContainer>(
|
|
29
29
|
parameters: Parameters.GetContentState,
|
|
@@ -52,7 +52,7 @@ export class ContentContentState {
|
|
|
52
52
|
*/
|
|
53
53
|
async setContentState<T = Models.ContentStateContainer>(
|
|
54
54
|
parameters: Parameters.SetContentState,
|
|
55
|
-
callback: Callback<T
|
|
55
|
+
callback: Callback<T>,
|
|
56
56
|
): Promise<void>;
|
|
57
57
|
/**
|
|
58
58
|
* @deprecated Sets the content state of the content specified and creates a new version (publishes the content
|
|
@@ -66,7 +66,7 @@ export class ContentContentState {
|
|
|
66
66
|
*/
|
|
67
67
|
async setContentState<T = Models.ContentStateContainer>(
|
|
68
68
|
parameters: Parameters.SetContentState,
|
|
69
|
-
callback?: never
|
|
69
|
+
callback?: never,
|
|
70
70
|
): Promise<T>;
|
|
71
71
|
async setContentState<T = Models.ContentStateContainer>(
|
|
72
72
|
parameters: Parameters.SetContentState,
|
|
@@ -91,7 +91,7 @@ export class ContentContentState {
|
|
|
91
91
|
*/
|
|
92
92
|
async removeContentState<T = Models.ContentStateContainer>(
|
|
93
93
|
parameters: Parameters.RemoveContentState,
|
|
94
|
-
callback: Callback<T
|
|
94
|
+
callback: Callback<T>,
|
|
95
95
|
): Promise<void>;
|
|
96
96
|
/**
|
|
97
97
|
* @deprecated Removes the content state of the content specified and creates a new version (publishes the content
|
|
@@ -99,7 +99,7 @@ export class ContentContentState {
|
|
|
99
99
|
*/
|
|
100
100
|
async removeContentState<T = Models.ContentStateContainer>(
|
|
101
101
|
parameters: Parameters.RemoveContentState,
|
|
102
|
-
callback?: never
|
|
102
|
+
callback?: never,
|
|
103
103
|
): Promise<T>;
|
|
104
104
|
async removeContentState<T = Models.ContentStateContainer>(
|
|
105
105
|
parameters: Parameters.RemoveContentState,
|
|
@@ -116,12 +116,12 @@ export class ContentContentState {
|
|
|
116
116
|
/** @deprecated Gets a Global Timestamp of the last time the content state was updated */
|
|
117
117
|
async getContentStateLastUpdated<T = unknown>(
|
|
118
118
|
parameters: Parameters.GetContentStateLastUpdated,
|
|
119
|
-
callback: Callback<T
|
|
119
|
+
callback: Callback<T>,
|
|
120
120
|
): Promise<void>;
|
|
121
121
|
/** @deprecated Gets a Global Timestamp of the last time the content state was updated */
|
|
122
122
|
async getContentStateLastUpdated<T = unknown>(
|
|
123
123
|
parameters: Parameters.GetContentStateLastUpdated,
|
|
124
|
-
callback?: never
|
|
124
|
+
callback?: never,
|
|
125
125
|
): Promise<T>;
|
|
126
126
|
async getContentStateLastUpdated<T = unknown>(
|
|
127
127
|
parameters: Parameters.GetContentStateLastUpdated,
|
|
@@ -138,12 +138,12 @@ export class ContentContentState {
|
|
|
138
138
|
/** @deprecated Gets content states that are available for the content to be set as. */
|
|
139
139
|
async getAvailableContentStates<T = Models.AvailableContentStates>(
|
|
140
140
|
parameters: Parameters.GetAvailableContentStates,
|
|
141
|
-
callback: Callback<T
|
|
141
|
+
callback: Callback<T>,
|
|
142
142
|
): Promise<void>;
|
|
143
143
|
/** @deprecated Gets content states that are available for the content to be set as. */
|
|
144
144
|
async getAvailableContentStates<T = Models.AvailableContentStates>(
|
|
145
145
|
parameters: Parameters.GetAvailableContentStates,
|
|
146
|
-
callback?: never
|
|
146
|
+
callback?: never,
|
|
147
147
|
): Promise<T>;
|
|
148
148
|
async getAvailableContentStates<T = Models.AvailableContentStates>(
|
|
149
149
|
parameters: Parameters.GetAvailableContentStates,
|
package/src/api/contentLabels.ts
CHANGED
|
@@ -15,7 +15,7 @@ export class ContentLabels {
|
|
|
15
15
|
*/
|
|
16
16
|
async getLabelsForContent<T = Models.LabelArray>(
|
|
17
17
|
parameters: Parameters.GetLabelsForContent,
|
|
18
|
-
callback: Callback<T
|
|
18
|
+
callback: Callback<T>,
|
|
19
19
|
): Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* Returns the labels on a piece of content.
|
|
@@ -25,7 +25,7 @@ export class ContentLabels {
|
|
|
25
25
|
*/
|
|
26
26
|
async getLabelsForContent<T = Models.LabelArray>(
|
|
27
27
|
parameters: Parameters.GetLabelsForContent,
|
|
28
|
-
callback?: never
|
|
28
|
+
callback?: never,
|
|
29
29
|
): Promise<T>;
|
|
30
30
|
async getLabelsForContent<T = Models.LabelArray>(
|
|
31
31
|
parameters: Parameters.GetLabelsForContent,
|
|
@@ -57,7 +57,7 @@ export class ContentLabels {
|
|
|
57
57
|
*/
|
|
58
58
|
async addLabelsToContent<T = Models.LabelArray>(
|
|
59
59
|
parameters: Parameters.AddLabelsToContent,
|
|
60
|
-
callback: Callback<T
|
|
60
|
+
callback: Callback<T>,
|
|
61
61
|
): Promise<void>;
|
|
62
62
|
/**
|
|
63
63
|
* Adds labels to a piece of content. Does not modify the existing labels.
|
|
@@ -72,7 +72,7 @@ export class ContentLabels {
|
|
|
72
72
|
*/
|
|
73
73
|
async addLabelsToContent<T = Models.LabelArray>(
|
|
74
74
|
parameters: Parameters.AddLabelsToContent,
|
|
75
|
-
callback?: never
|
|
75
|
+
callback?: never,
|
|
76
76
|
): Promise<T>;
|
|
77
77
|
async addLabelsToContent<T = Models.LabelArray>(
|
|
78
78
|
parameters: Parameters.AddLabelsToContent,
|
|
@@ -101,7 +101,7 @@ export class ContentLabels {
|
|
|
101
101
|
*/
|
|
102
102
|
async removeLabelFromContentUsingQueryParameter<T = void>(
|
|
103
103
|
parameters: Parameters.RemoveLabelFromContentUsingQueryParameter,
|
|
104
|
-
callback: Callback<T
|
|
104
|
+
callback: Callback<T>,
|
|
105
105
|
): Promise<void>;
|
|
106
106
|
/**
|
|
107
107
|
* Removes a label from a piece of content. This is similar to [Remove label from
|
|
@@ -114,7 +114,7 @@ export class ContentLabels {
|
|
|
114
114
|
*/
|
|
115
115
|
async removeLabelFromContentUsingQueryParameter<T = void>(
|
|
116
116
|
parameters: Parameters.RemoveLabelFromContentUsingQueryParameter,
|
|
117
|
-
callback?: never
|
|
117
|
+
callback?: never,
|
|
118
118
|
): Promise<T>;
|
|
119
119
|
async removeLabelFromContentUsingQueryParameter<T = void>(
|
|
120
120
|
parameters: Parameters.RemoveLabelFromContentUsingQueryParameter,
|
|
@@ -143,7 +143,7 @@ export class ContentLabels {
|
|
|
143
143
|
*/
|
|
144
144
|
async removeLabelFromContent<T = void>(
|
|
145
145
|
parameters: Parameters.RemoveLabelFromContent,
|
|
146
|
-
callback: Callback<T
|
|
146
|
+
callback: Callback<T>,
|
|
147
147
|
): Promise<void>;
|
|
148
148
|
/**
|
|
149
149
|
* Removes a label from a piece of content. This is similar to [Remove label from content using query
|
|
@@ -25,7 +25,7 @@ export class ContentMacroBody {
|
|
|
25
25
|
*/
|
|
26
26
|
async getMacroBodyByMacroId<T = Models.MacroInstance>(
|
|
27
27
|
parameters: Parameters.GetMacroBodyByMacroId,
|
|
28
|
-
callback: Callback<T
|
|
28
|
+
callback: Callback<T>,
|
|
29
29
|
): Promise<void>;
|
|
30
30
|
/**
|
|
31
31
|
* Returns the body of a macro in storage format, for the given macro ID. This includes information like the name of
|
|
@@ -45,7 +45,7 @@ export class ContentMacroBody {
|
|
|
45
45
|
*/
|
|
46
46
|
async getMacroBodyByMacroId<T = Models.MacroInstance>(
|
|
47
47
|
parameters: Parameters.GetMacroBodyByMacroId,
|
|
48
|
-
callback?: never
|
|
48
|
+
callback?: never,
|
|
49
49
|
): Promise<T>;
|
|
50
50
|
async getMacroBodyByMacroId<T = Models.MacroInstance>(
|
|
51
51
|
parameters: Parameters.GetMacroBodyByMacroId,
|
|
@@ -77,7 +77,7 @@ export class ContentMacroBody {
|
|
|
77
77
|
*/
|
|
78
78
|
async getAndConvertMacroBodyByMacroId<T = Models.ContentBody>(
|
|
79
79
|
parameters: Parameters.GetAndConvertMacroBodyByMacroId,
|
|
80
|
-
callback: Callback<T
|
|
80
|
+
callback: Callback<T>,
|
|
81
81
|
): Promise<void>;
|
|
82
82
|
/**
|
|
83
83
|
* Returns the body of a macro in format specified in path, for the given macro ID. This includes information like the
|
|
@@ -97,7 +97,7 @@ export class ContentMacroBody {
|
|
|
97
97
|
*/
|
|
98
98
|
async getAndConvertMacroBodyByMacroId<T = Models.ContentBody>(
|
|
99
99
|
parameters: Parameters.GetAndConvertMacroBodyByMacroId,
|
|
100
|
-
callback?: never
|
|
100
|
+
callback?: never,
|
|
101
101
|
): Promise<T>;
|
|
102
102
|
async getAndConvertMacroBodyByMacroId<T = Models.ContentBody>(
|
|
103
103
|
parameters: Parameters.GetAndConvertMacroBodyByMacroId,
|
|
@@ -134,7 +134,7 @@ export class ContentMacroBody {
|
|
|
134
134
|
*/
|
|
135
135
|
async getAndAsyncConvertMacroBodyByMacroId<T = Models.AsyncId>(
|
|
136
136
|
parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId,
|
|
137
|
-
callback: Callback<T
|
|
137
|
+
callback: Callback<T>,
|
|
138
138
|
): Promise<void>;
|
|
139
139
|
/**
|
|
140
140
|
* Returns Async Id of the conversion task which will convert the macro into a content body of the desired format. The
|
|
@@ -154,7 +154,7 @@ export class ContentMacroBody {
|
|
|
154
154
|
*/
|
|
155
155
|
async getAndAsyncConvertMacroBodyByMacroId<T = Models.AsyncId>(
|
|
156
156
|
parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId,
|
|
157
|
-
callback?: never
|
|
157
|
+
callback?: never,
|
|
158
158
|
): Promise<T>;
|
|
159
159
|
async getAndAsyncConvertMacroBodyByMacroId<T = Models.AsyncId>(
|
|
160
160
|
parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId,
|
|
@@ -10,12 +10,12 @@ export class ContentPermissions {
|
|
|
10
10
|
/** @deprecated Will be removed in the next major version. Use `checkContentPermission` method instead. */
|
|
11
11
|
async permissionCheck<T = Models.PermissionCheckResponse>(
|
|
12
12
|
parameters: Parameters.PermissionCheck,
|
|
13
|
-
callback: Callback<T
|
|
13
|
+
callback: Callback<T>,
|
|
14
14
|
): Promise<void>;
|
|
15
15
|
/** @deprecated Will be removed in the next major version. Use `checkContentPermission` method instead. */
|
|
16
16
|
async permissionCheck<T = Models.PermissionCheckResponse>(
|
|
17
17
|
parameters: Parameters.PermissionCheck,
|
|
18
|
-
callback?: never
|
|
18
|
+
callback?: never,
|
|
19
19
|
): Promise<T>;
|
|
20
20
|
async permissionCheck<T = Models.PermissionCheckResponse>(
|
|
21
21
|
parameters: Parameters.PermissionCheck,
|
|
@@ -40,7 +40,7 @@ export class ContentPermissions {
|
|
|
40
40
|
*/
|
|
41
41
|
async checkContentPermission<T = Models.PermissionCheckResponse>(
|
|
42
42
|
parameters: Parameters.CheckContentPermission,
|
|
43
|
-
callback: Callback<T
|
|
43
|
+
callback: Callback<T>,
|
|
44
44
|
): Promise<void>;
|
|
45
45
|
/**
|
|
46
46
|
* Check if a user or a group can perform an operation to the specified content. The `operation` to check must be
|
|
@@ -58,7 +58,7 @@ export class ContentPermissions {
|
|
|
58
58
|
*/
|
|
59
59
|
async checkContentPermission<T = Models.PermissionCheckResponse>(
|
|
60
60
|
parameters: Parameters.CheckContentPermission,
|
|
61
|
-
callback?: never
|
|
61
|
+
callback?: never,
|
|
62
62
|
): Promise<T>;
|
|
63
63
|
async checkContentPermission<T = Models.PermissionCheckResponse>(
|
|
64
64
|
parameters: Parameters.CheckContentPermission,
|
|
@@ -16,7 +16,7 @@ export class ContentProperties {
|
|
|
16
16
|
*/
|
|
17
17
|
async getContentProperties<T = Models.ContentPropertyArray>(
|
|
18
18
|
parameters: Parameters.GetContentProperties,
|
|
19
|
-
callback: Callback<T
|
|
19
|
+
callback: Callback<T>,
|
|
20
20
|
): Promise<void>;
|
|
21
21
|
/**
|
|
22
22
|
* Returns the properties for a piece of content. For more information about content properties, see [Confluence
|
|
@@ -27,7 +27,7 @@ export class ContentProperties {
|
|
|
27
27
|
*/
|
|
28
28
|
async getContentProperties<T = Models.ContentPropertyArray>(
|
|
29
29
|
parameters: Parameters.GetContentProperties,
|
|
30
|
-
callback?: never
|
|
30
|
+
callback?: never,
|
|
31
31
|
): Promise<T>;
|
|
32
32
|
async getContentProperties<T = Models.ContentPropertyArray>(
|
|
33
33
|
parameters: Parameters.GetContentProperties,
|
|
@@ -61,7 +61,7 @@ export class ContentProperties {
|
|
|
61
61
|
*/
|
|
62
62
|
async createContentProperty<T = Models.ContentProperty>(
|
|
63
63
|
parameters: Parameters.CreateContentProperty,
|
|
64
|
-
callback: Callback<T
|
|
64
|
+
callback: Callback<T>,
|
|
65
65
|
): Promise<void>;
|
|
66
66
|
/**
|
|
67
67
|
* Creates a property for an existing piece of content. For more information about content properties, see [Confluence
|
|
@@ -77,7 +77,7 @@ export class ContentProperties {
|
|
|
77
77
|
*/
|
|
78
78
|
async createContentProperty<T = Models.ContentProperty>(
|
|
79
79
|
parameters: Parameters.CreateContentProperty,
|
|
80
|
-
callback?: never
|
|
80
|
+
callback?: never,
|
|
81
81
|
): Promise<T>;
|
|
82
82
|
async createContentProperty<T = Models.ContentProperty>(
|
|
83
83
|
parameters: Parameters.CreateContentProperty,
|
|
@@ -104,7 +104,7 @@ export class ContentProperties {
|
|
|
104
104
|
*/
|
|
105
105
|
async getContentProperty<T = Models.ContentProperty>(
|
|
106
106
|
parameters: Parameters.GetContentProperty,
|
|
107
|
-
callback: Callback<T
|
|
107
|
+
callback: Callback<T>,
|
|
108
108
|
): Promise<void>;
|
|
109
109
|
/**
|
|
110
110
|
* Returns a content property for a piece of content. For more information, see [Confluence entity
|
|
@@ -115,7 +115,7 @@ export class ContentProperties {
|
|
|
115
115
|
*/
|
|
116
116
|
async getContentProperty<T = Models.ContentProperty>(
|
|
117
117
|
parameters: Parameters.GetContentProperty,
|
|
118
|
-
callback?: never
|
|
118
|
+
callback?: never,
|
|
119
119
|
): Promise<T>;
|
|
120
120
|
async getContentProperty<T = Models.ContentProperty>(
|
|
121
121
|
parameters: Parameters.GetContentProperty,
|
|
@@ -147,7 +147,7 @@ export class ContentProperties {
|
|
|
147
147
|
*/
|
|
148
148
|
async createContentPropertyForKey<T = Models.ContentProperty>(
|
|
149
149
|
parameters: Parameters.CreateContentPropertyForKey,
|
|
150
|
-
callback: Callback<T
|
|
150
|
+
callback: Callback<T>,
|
|
151
151
|
): Promise<void>;
|
|
152
152
|
/**
|
|
153
153
|
* Creates a property for an existing piece of content. For more information about content properties, see [Confluence
|
|
@@ -163,7 +163,7 @@ export class ContentProperties {
|
|
|
163
163
|
*/
|
|
164
164
|
async createContentPropertyForKey<T = Models.ContentProperty>(
|
|
165
165
|
parameters: Parameters.CreateContentPropertyForKey,
|
|
166
|
-
callback?: never
|
|
166
|
+
callback?: never,
|
|
167
167
|
): Promise<T>;
|
|
168
168
|
async createContentPropertyForKey<T = Models.ContentProperty>(
|
|
169
169
|
parameters: Parameters.CreateContentPropertyForKey,
|
|
@@ -189,7 +189,7 @@ export class ContentProperties {
|
|
|
189
189
|
*/
|
|
190
190
|
async updateContentProperty<T = Models.ContentProperty>(
|
|
191
191
|
parameters: Parameters.UpdateContentProperty,
|
|
192
|
-
callback: Callback<T
|
|
192
|
+
callback: Callback<T>,
|
|
193
193
|
): Promise<void>;
|
|
194
194
|
/**
|
|
195
195
|
* Updates an existing content property. This method will also create a new property for a piece of content, if the
|
|
@@ -200,7 +200,7 @@ export class ContentProperties {
|
|
|
200
200
|
*/
|
|
201
201
|
async updateContentProperty<T = Models.ContentProperty>(
|
|
202
202
|
parameters: Parameters.UpdateContentProperty,
|
|
203
|
-
callback?: never
|
|
203
|
+
callback?: never,
|
|
204
204
|
): Promise<T>;
|
|
205
205
|
async updateContentProperty<T = Models.ContentProperty>(
|
|
206
206
|
parameters: Parameters.UpdateContentProperty,
|
|
@@ -226,7 +226,7 @@ export class ContentProperties {
|
|
|
226
226
|
*/
|
|
227
227
|
async deleteContentProperty<T = void>(
|
|
228
228
|
parameters: Parameters.DeleteContentProperty,
|
|
229
|
-
callback: Callback<T
|
|
229
|
+
callback: Callback<T>,
|
|
230
230
|
): Promise<void>;
|
|
231
231
|
/**
|
|
232
232
|
* Deletes a content property. For more information about content properties, see [Confluence entity
|
|
@@ -14,7 +14,7 @@ export class ContentRestrictions {
|
|
|
14
14
|
*/
|
|
15
15
|
async getRestrictions<T = Models.ContentRestrictionArray>(
|
|
16
16
|
parameters: Parameters.GetRestrictions,
|
|
17
|
-
callback: Callback<T
|
|
17
|
+
callback: Callback<T>,
|
|
18
18
|
): Promise<void>;
|
|
19
19
|
/**
|
|
20
20
|
* Returns the restrictions on a piece of content.
|
|
@@ -23,7 +23,7 @@ export class ContentRestrictions {
|
|
|
23
23
|
*/
|
|
24
24
|
async getRestrictions<T = Models.ContentRestrictionArray>(
|
|
25
25
|
parameters: Parameters.GetRestrictions,
|
|
26
|
-
callback?: never
|
|
26
|
+
callback?: never,
|
|
27
27
|
): Promise<T>;
|
|
28
28
|
async getRestrictions<T = Models.ContentRestrictionArray>(
|
|
29
29
|
parameters: Parameters.GetRestrictions,
|
|
@@ -49,7 +49,7 @@ export class ContentRestrictions {
|
|
|
49
49
|
*/
|
|
50
50
|
async addRestrictions<T = Models.ContentRestrictionArray>(
|
|
51
51
|
parameters: Parameters.AddRestrictions,
|
|
52
|
-
callback: Callback<T
|
|
52
|
+
callback: Callback<T>,
|
|
53
53
|
): Promise<void>;
|
|
54
54
|
/**
|
|
55
55
|
* Adds restrictions to a piece of content. Note, this does not change any existing restrictions on the content.
|
|
@@ -58,7 +58,7 @@ export class ContentRestrictions {
|
|
|
58
58
|
*/
|
|
59
59
|
async addRestrictions<T = Models.ContentRestrictionArray>(
|
|
60
60
|
parameters: Parameters.AddRestrictions,
|
|
61
|
-
callback?: never
|
|
61
|
+
callback?: never,
|
|
62
62
|
): Promise<T>;
|
|
63
63
|
async addRestrictions<T = Models.ContentRestrictionArray>(
|
|
64
64
|
parameters: Parameters.AddRestrictions,
|
|
@@ -84,7 +84,7 @@ export class ContentRestrictions {
|
|
|
84
84
|
*/
|
|
85
85
|
async updateRestrictions<T = Models.ContentRestrictionArray>(
|
|
86
86
|
parameters: Parameters.UpdateRestrictions,
|
|
87
|
-
callback: Callback<T
|
|
87
|
+
callback: Callback<T>,
|
|
88
88
|
): Promise<void>;
|
|
89
89
|
/**
|
|
90
90
|
* Updates restrictions for a piece of content. This removes the existing restrictions and replaces them with the
|
|
@@ -94,7 +94,7 @@ export class ContentRestrictions {
|
|
|
94
94
|
*/
|
|
95
95
|
async updateRestrictions<T = Models.ContentRestrictionArray>(
|
|
96
96
|
parameters: Parameters.UpdateRestrictions,
|
|
97
|
-
callback?: never
|
|
97
|
+
callback?: never,
|
|
98
98
|
): Promise<T>;
|
|
99
99
|
async updateRestrictions<T = Models.ContentRestrictionArray>(
|
|
100
100
|
parameters: Parameters.UpdateRestrictions,
|
|
@@ -119,7 +119,7 @@ export class ContentRestrictions {
|
|
|
119
119
|
*/
|
|
120
120
|
async deleteRestrictions<T = Models.ContentRestrictionArray>(
|
|
121
121
|
parameters: Parameters.DeleteRestrictions,
|
|
122
|
-
callback: Callback<T
|
|
122
|
+
callback: Callback<T>,
|
|
123
123
|
): Promise<void>;
|
|
124
124
|
/**
|
|
125
125
|
* Removes all restrictions (read and update) on a piece of content.
|
|
@@ -128,7 +128,7 @@ export class ContentRestrictions {
|
|
|
128
128
|
*/
|
|
129
129
|
async deleteRestrictions<T = Models.ContentRestrictionArray>(
|
|
130
130
|
parameters: Parameters.DeleteRestrictions,
|
|
131
|
-
callback?: never
|
|
131
|
+
callback?: never,
|
|
132
132
|
): Promise<T>;
|
|
133
133
|
async deleteRestrictions<T = Models.ContentRestrictionArray>(
|
|
134
134
|
parameters: Parameters.DeleteRestrictions,
|
|
@@ -154,7 +154,7 @@ export class ContentRestrictions {
|
|
|
154
154
|
*/
|
|
155
155
|
async getRestrictionsByOperation<T = Models.GetRestrictionsByOperation>(
|
|
156
156
|
parameters: Parameters.GetRestrictionsByOperation,
|
|
157
|
-
callback: Callback<T
|
|
157
|
+
callback: Callback<T>,
|
|
158
158
|
): Promise<void>;
|
|
159
159
|
/**
|
|
160
160
|
* Returns restrictions on a piece of content by operation. This method is similar to [Get
|
|
@@ -165,7 +165,7 @@ export class ContentRestrictions {
|
|
|
165
165
|
*/
|
|
166
166
|
async getRestrictionsByOperation<T = Models.GetRestrictionsByOperation>(
|
|
167
167
|
parameters: Parameters.GetRestrictionsByOperation,
|
|
168
|
-
callback?: never
|
|
168
|
+
callback?: never,
|
|
169
169
|
): Promise<T>;
|
|
170
170
|
async getRestrictionsByOperation<T = Models.GetRestrictionsByOperation>(
|
|
171
171
|
parameters: Parameters.GetRestrictionsByOperation,
|
|
@@ -189,7 +189,7 @@ export class ContentRestrictions {
|
|
|
189
189
|
*/
|
|
190
190
|
async getRestrictionsForOperation<T = Models.ContentRestriction>(
|
|
191
191
|
parameters: Parameters.GetRestrictionsForOperation,
|
|
192
|
-
callback: Callback<T
|
|
192
|
+
callback: Callback<T>,
|
|
193
193
|
): Promise<void>;
|
|
194
194
|
/**
|
|
195
195
|
* Returns the restictions on a piece of content for a given operation (read or update).
|
|
@@ -198,7 +198,7 @@ export class ContentRestrictions {
|
|
|
198
198
|
*/
|
|
199
199
|
async getRestrictionsForOperation<T = Models.ContentRestriction>(
|
|
200
200
|
parameters: Parameters.GetRestrictionsForOperation,
|
|
201
|
-
callback?: never
|
|
201
|
+
callback?: never,
|
|
202
202
|
): Promise<T>;
|
|
203
203
|
async getRestrictionsForOperation<T = Models.ContentRestriction>(
|
|
204
204
|
parameters: Parameters.GetRestrictionsForOperation,
|
|
@@ -231,7 +231,7 @@ export class ContentRestrictions {
|
|
|
231
231
|
*/
|
|
232
232
|
async getContentRestrictionStatusForGroup<T = unknown>(
|
|
233
233
|
parameters: Parameters.GetContentRestrictionStatusForGroup,
|
|
234
|
-
callback: Callback<T
|
|
234
|
+
callback: Callback<T>,
|
|
235
235
|
): Promise<void>;
|
|
236
236
|
/**
|
|
237
237
|
* Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a
|
|
@@ -247,7 +247,7 @@ export class ContentRestrictions {
|
|
|
247
247
|
*/
|
|
248
248
|
async getContentRestrictionStatusForGroup<T = unknown>(
|
|
249
249
|
parameters: Parameters.GetContentRestrictionStatusForGroup,
|
|
250
|
-
callback?: never
|
|
250
|
+
callback?: never,
|
|
251
251
|
): Promise<T>;
|
|
252
252
|
async getContentRestrictionStatusForGroup<T = unknown>(
|
|
253
253
|
parameters: Parameters.GetContentRestrictionStatusForGroup,
|
|
@@ -269,7 +269,7 @@ export class ContentRestrictions {
|
|
|
269
269
|
*/
|
|
270
270
|
async addGroupToContentRestriction<T = unknown>(
|
|
271
271
|
parameters: Parameters.AddGroupToContentRestriction,
|
|
272
|
-
callback: Callback<T
|
|
272
|
+
callback: Callback<T>,
|
|
273
273
|
): Promise<void>;
|
|
274
274
|
/**
|
|
275
275
|
* Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of
|
|
@@ -279,7 +279,7 @@ export class ContentRestrictions {
|
|
|
279
279
|
*/
|
|
280
280
|
async addGroupToContentRestriction<T = unknown>(
|
|
281
281
|
parameters: Parameters.AddGroupToContentRestriction,
|
|
282
|
-
callback?: never
|
|
282
|
+
callback?: never,
|
|
283
283
|
): Promise<T>;
|
|
284
284
|
async addGroupToContentRestriction<T = unknown>(
|
|
285
285
|
parameters: Parameters.AddGroupToContentRestriction,
|
|
@@ -333,7 +333,7 @@ export class ContentRestrictions {
|
|
|
333
333
|
*/
|
|
334
334
|
async getIndividualGroupRestrictionStatusByGroupId<T = unknown>(
|
|
335
335
|
parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId,
|
|
336
|
-
callback: Callback<T
|
|
336
|
+
callback: Callback<T>,
|
|
337
337
|
): Promise<void>;
|
|
338
338
|
/**
|
|
339
339
|
* Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a
|
|
@@ -349,7 +349,7 @@ export class ContentRestrictions {
|
|
|
349
349
|
*/
|
|
350
350
|
async getIndividualGroupRestrictionStatusByGroupId<T = unknown>(
|
|
351
351
|
parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId,
|
|
352
|
-
callback?: never
|
|
352
|
+
callback?: never,
|
|
353
353
|
): Promise<T>;
|
|
354
354
|
async getIndividualGroupRestrictionStatusByGroupId<T = unknown>(
|
|
355
355
|
parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId,
|
|
@@ -371,7 +371,7 @@ export class ContentRestrictions {
|
|
|
371
371
|
*/
|
|
372
372
|
async addGroupToContentRestrictionByGroupId<T = unknown>(
|
|
373
373
|
parameters: Parameters.AddGroupToContentRestrictionByGroupId,
|
|
374
|
-
callback: Callback<T
|
|
374
|
+
callback: Callback<T>,
|
|
375
375
|
): Promise<void>;
|
|
376
376
|
/**
|
|
377
377
|
* Adds a group to a content restriction by Group Id. That is, grant read or update permission to the group for a
|
|
@@ -381,7 +381,7 @@ export class ContentRestrictions {
|
|
|
381
381
|
*/
|
|
382
382
|
async addGroupToContentRestrictionByGroupId<T = unknown>(
|
|
383
383
|
parameters: Parameters.AddGroupToContentRestrictionByGroupId,
|
|
384
|
-
callback?: never
|
|
384
|
+
callback?: never,
|
|
385
385
|
): Promise<T>;
|
|
386
386
|
async addGroupToContentRestrictionByGroupId<T = unknown>(
|
|
387
387
|
parameters: Parameters.AddGroupToContentRestrictionByGroupId,
|
|
@@ -436,7 +436,7 @@ export class ContentRestrictions {
|
|
|
436
436
|
*/
|
|
437
437
|
async getContentRestrictionStatusForUser<T = unknown>(
|
|
438
438
|
parameters: Parameters.GetContentRestrictionStatusForUser,
|
|
439
|
-
callback: Callback<T
|
|
439
|
+
callback: Callback<T>,
|
|
440
440
|
): Promise<void>;
|
|
441
441
|
/**
|
|
442
442
|
* Returns whether the specified content restriction applies to a user. For example, if a page with `id=123` has a
|
|
@@ -453,7 +453,7 @@ export class ContentRestrictions {
|
|
|
453
453
|
*/
|
|
454
454
|
async getContentRestrictionStatusForUser<T = unknown>(
|
|
455
455
|
parameters: Parameters.GetContentRestrictionStatusForUser,
|
|
456
|
-
callback?: never
|
|
456
|
+
callback?: never,
|
|
457
457
|
): Promise<T>;
|
|
458
458
|
async getContentRestrictionStatusForUser<T = unknown>(
|
|
459
459
|
parameters: Parameters.GetContentRestrictionStatusForUser,
|
|
@@ -479,7 +479,7 @@ export class ContentRestrictions {
|
|
|
479
479
|
*/
|
|
480
480
|
async addUserToContentRestriction<T = unknown>(
|
|
481
481
|
parameters: Parameters.AddUserToContentRestriction,
|
|
482
|
-
callback: Callback<T
|
|
482
|
+
callback: Callback<T>,
|
|
483
483
|
): Promise<void>;
|
|
484
484
|
/**
|
|
485
485
|
* Adds a user to a content restriction. That is, grant read or update permission to the user for a piece of content.
|
|
@@ -488,7 +488,7 @@ export class ContentRestrictions {
|
|
|
488
488
|
*/
|
|
489
489
|
async addUserToContentRestriction<T = unknown>(
|
|
490
490
|
parameters: Parameters.AddUserToContentRestriction,
|
|
491
|
-
callback?: never
|
|
491
|
+
callback?: never,
|
|
492
492
|
): Promise<T>;
|
|
493
493
|
async addUserToContentRestriction<T = unknown>(
|
|
494
494
|
parameters: Parameters.AddUserToContentRestriction,
|
|
@@ -515,7 +515,7 @@ export class ContentRestrictions {
|
|
|
515
515
|
*/
|
|
516
516
|
async removeUserFromContentRestriction<T = unknown>(
|
|
517
517
|
parameters: Parameters.RemoveUserFromContentRestriction,
|
|
518
|
-
callback: Callback<T
|
|
518
|
+
callback: Callback<T>,
|
|
519
519
|
): Promise<void>;
|
|
520
520
|
/**
|
|
521
521
|
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
@@ -525,7 +525,7 @@ export class ContentRestrictions {
|
|
|
525
525
|
*/
|
|
526
526
|
async removeUserFromContentRestriction<T = unknown>(
|
|
527
527
|
parameters: Parameters.RemoveUserFromContentRestriction,
|
|
528
|
-
callback?: never
|
|
528
|
+
callback?: never,
|
|
529
529
|
): Promise<T>;
|
|
530
530
|
async removeUserFromContentRestriction<T = unknown>(
|
|
531
531
|
parameters: Parameters.RemoveUserFromContentRestriction,
|
package/src/api/contentStates.ts
CHANGED
|
@@ -15,7 +15,7 @@ export class ContentStates {
|
|
|
15
15
|
*/
|
|
16
16
|
async getContentState<T = Models.ContentStateResponse>(
|
|
17
17
|
parameters: Parameters.GetContentState,
|
|
18
|
-
callback: Callback<T
|
|
18
|
+
callback: Callback<T>,
|
|
19
19
|
): Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* Gets the current content state of the draft or current version of content. To specify the draft version, set the
|
|
@@ -25,7 +25,7 @@ export class ContentStates {
|
|
|
25
25
|
*/
|
|
26
26
|
async getContentState<T = Models.ContentStateResponse>(
|
|
27
27
|
parameters: Parameters.GetContentState,
|
|
28
|
-
callback?: never
|
|
28
|
+
callback?: never,
|
|
29
29
|
): Promise<T>;
|
|
30
30
|
async getContentState<T = Models.ContentStateResponse>(
|
|
31
31
|
parameters: Parameters.GetContentState,
|
|
@@ -58,7 +58,7 @@ export class ContentStates {
|
|
|
58
58
|
*/
|
|
59
59
|
async setContentState<T = Models.ContentStateResponse>(
|
|
60
60
|
parameters: Parameters.SetContentState,
|
|
61
|
-
callback: Callback<T
|
|
61
|
+
callback: Callback<T>,
|
|
62
62
|
): Promise<void>;
|
|
63
63
|
/**
|
|
64
64
|
* Sets the content state of the content specified and creates a new version (publishes the content without changing
|
|
@@ -76,7 +76,7 @@ export class ContentStates {
|
|
|
76
76
|
*/
|
|
77
77
|
async setContentState<T = Models.ContentStateResponse>(
|
|
78
78
|
parameters: Parameters.SetContentState,
|
|
79
|
-
callback?: never
|
|
79
|
+
callback?: never,
|
|
80
80
|
): Promise<T>;
|
|
81
81
|
async setContentState<T = Models.ContentStateResponse>(
|
|
82
82
|
parameters: Parameters.SetContentState,
|
|
@@ -106,7 +106,7 @@ export class ContentStates {
|
|
|
106
106
|
*/
|
|
107
107
|
async removeContentState<T = Models.ContentStateResponse>(
|
|
108
108
|
parameters: Parameters.RemoveContentState,
|
|
109
|
-
callback: Callback<T
|
|
109
|
+
callback: Callback<T>,
|
|
110
110
|
): Promise<void>;
|
|
111
111
|
/**
|
|
112
112
|
* Removes the content state of the content specified and creates a new version (publishes the content without
|
|
@@ -116,7 +116,7 @@ export class ContentStates {
|
|
|
116
116
|
*/
|
|
117
117
|
async removeContentState<T = Models.ContentStateResponse>(
|
|
118
118
|
parameters: Parameters.RemoveContentState,
|
|
119
|
-
callback?: never
|
|
119
|
+
callback?: never,
|
|
120
120
|
): Promise<T>;
|
|
121
121
|
async removeContentState<T = Models.ContentStateResponse>(
|
|
122
122
|
parameters: Parameters.RemoveContentState,
|
|
@@ -142,7 +142,7 @@ export class ContentStates {
|
|
|
142
142
|
*/
|
|
143
143
|
async getAvailableContentStates<T = Models.AvailableContentStates>(
|
|
144
144
|
parameters: Parameters.GetAvailableContentStates,
|
|
145
|
-
callback: Callback<T
|
|
145
|
+
callback: Callback<T>,
|
|
146
146
|
): Promise<void>;
|
|
147
147
|
/**
|
|
148
148
|
* Gets content states that are available for the content to be set as. Will return all enabled Space Content States.
|
|
@@ -153,7 +153,7 @@ export class ContentStates {
|
|
|
153
153
|
*/
|
|
154
154
|
async getAvailableContentStates<T = Models.AvailableContentStates>(
|
|
155
155
|
parameters: Parameters.GetAvailableContentStates,
|
|
156
|
-
callback?: never
|
|
156
|
+
callback?: never,
|
|
157
157
|
): Promise<T>;
|
|
158
158
|
async getAvailableContentStates<T = Models.AvailableContentStates>(
|
|
159
159
|
parameters: Parameters.GetAvailableContentStates,
|
|
@@ -195,7 +195,7 @@ export class ContentStates {
|
|
|
195
195
|
*/
|
|
196
196
|
async getSpaceContentStates<T = Models.ContentState[]>(
|
|
197
197
|
parameters: Parameters.GetSpaceContentStates,
|
|
198
|
-
callback: Callback<T
|
|
198
|
+
callback: Callback<T>,
|
|
199
199
|
): Promise<void>;
|
|
200
200
|
/**
|
|
201
201
|
* Get content states that are suggested in the space.
|
|
@@ -204,7 +204,7 @@ export class ContentStates {
|
|
|
204
204
|
*/
|
|
205
205
|
async getSpaceContentStates<T = Models.ContentState[]>(
|
|
206
206
|
parameters: Parameters.GetSpaceContentStates,
|
|
207
|
-
callback?: never
|
|
207
|
+
callback?: never,
|
|
208
208
|
): Promise<T>;
|
|
209
209
|
async getSpaceContentStates<T = Models.ContentState[]>(
|
|
210
210
|
parameters: Parameters.GetSpaceContentStates,
|
|
@@ -226,7 +226,7 @@ export class ContentStates {
|
|
|
226
226
|
*/
|
|
227
227
|
async getContentStateSettings<T = Models.ContentStateSettings>(
|
|
228
228
|
parameters: Parameters.GetContentStateSettings,
|
|
229
|
-
callback: Callback<T
|
|
229
|
+
callback: Callback<T>,
|
|
230
230
|
): Promise<void>;
|
|
231
231
|
/**
|
|
232
232
|
* Get object describing whether content states are allowed at all, if custom content states or space content states
|
|
@@ -236,7 +236,7 @@ export class ContentStates {
|
|
|
236
236
|
*/
|
|
237
237
|
async getContentStateSettings<T = Models.ContentStateSettings>(
|
|
238
238
|
parameters: Parameters.GetContentStateSettings,
|
|
239
|
-
callback?: never
|
|
239
|
+
callback?: never,
|
|
240
240
|
): Promise<T>;
|
|
241
241
|
async getContentStateSettings<T = Models.ContentStateSettings>(
|
|
242
242
|
parameters: Parameters.GetContentStateSettings,
|