confluence.js 1.5.1 → 1.6.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/CHANGELOG.md +22 -3
- package/README.md +1 -0
- package/out/api/audit.d.ts +24 -12
- package/out/api/audit.js.map +1 -1
- package/out/api/content.d.ts +18 -12
- package/out/api/content.js.map +1 -1
- package/out/api/contentAttachments.d.ts +14 -8
- package/out/api/contentAttachments.js.map +1 -1
- package/out/api/contentBody.d.ts +52 -0
- package/out/api/contentBody.js +27 -3
- package/out/api/contentBody.js.map +1 -1
- package/out/api/contentChildrenAndDescendants.js +2 -1
- package/out/api/contentChildrenAndDescendants.js.map +1 -1
- package/out/api/contentContentState.d.ts +30 -28
- package/out/api/contentContentState.js +2 -0
- package/out/api/contentContentState.js.map +1 -1
- package/out/api/contentMacroBody.d.ts +72 -2
- package/out/api/contentMacroBody.js +29 -0
- package/out/api/contentMacroBody.js.map +1 -1
- package/out/api/contentRestrictions.d.ts +16 -8
- package/out/api/contentRestrictions.js.map +1 -1
- package/out/api/contentStates.d.ts +120 -0
- package/out/api/contentStates.js +88 -0
- package/out/api/contentStates.js.map +1 -0
- package/out/api/contentWatches.d.ts +16 -8
- package/out/api/contentWatches.js.map +1 -1
- package/out/api/dynamicModules.js +1 -0
- package/out/api/dynamicModules.js.map +1 -1
- package/out/api/experimental.d.ts +2 -2
- package/out/api/index.d.ts +1 -0
- package/out/api/index.js +1 -0
- package/out/api/index.js.map +1 -1
- package/out/api/models/asyncContentBody.d.ts +30 -0
- package/out/api/models/asyncContentBody.js +3 -0
- package/out/api/models/asyncContentBody.js.map +1 -0
- package/out/api/models/asyncId.d.ts +3 -0
- package/out/api/models/asyncId.js +3 -0
- package/out/api/models/asyncId.js.map +1 -0
- package/out/api/models/contentBodyCreate.d.ts +1 -0
- package/out/api/models/contentStateResponse.d.ts +7 -0
- package/out/api/models/contentStateResponse.js +3 -0
- package/out/api/models/contentStateResponse.js.map +1 -0
- package/out/api/models/contentStateRestInput.d.ts +11 -0
- package/out/api/models/contentStateRestInput.js +3 -0
- package/out/api/models/contentStateRestInput.js.map +1 -0
- package/out/api/models/index.d.ts +16 -12
- package/out/api/models/index.js +16 -12
- package/out/api/models/index.js.map +1 -1
- package/out/api/parameters/asyncConvertContentBodyRequest.d.ts +38 -0
- package/out/api/parameters/asyncConvertContentBodyRequest.js +3 -0
- package/out/api/parameters/asyncConvertContentBodyRequest.js.map +1 -0
- package/out/api/parameters/asyncConvertContentBodyResponse.d.ts +4 -0
- package/out/api/parameters/asyncConvertContentBodyResponse.js +3 -0
- package/out/api/parameters/asyncConvertContentBodyResponse.js.map +1 -0
- package/out/api/parameters/convertContentBody.d.ts +16 -2
- package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.d.ts +46 -0
- package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.js +3 -0
- package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.js.map +1 -0
- package/out/api/parameters/getAndConvertMacroBodyByMacroId.d.ts +34 -0
- package/out/api/parameters/getAndConvertMacroBodyByMacroId.js +3 -0
- package/out/api/parameters/getAndConvertMacroBodyByMacroId.js.map +1 -0
- package/out/api/parameters/getAvailableContentStates.d.ts +4 -2
- package/out/api/parameters/getContentState.d.ts +8 -4
- package/out/api/parameters/getSpaceContentStates.d.ts +4 -0
- package/out/api/parameters/getSpaceContentStates.js +3 -0
- package/out/api/parameters/getSpaceContentStates.js.map +1 -0
- package/out/api/parameters/getUser.d.ts +6 -4
- package/out/api/parameters/index.d.ts +5 -0
- package/out/api/parameters/index.js +5 -0
- package/out/api/parameters/index.js.map +1 -1
- package/out/api/parameters/movePage.d.ts +9 -5
- package/out/api/parameters/removeContentState.d.ts +5 -1
- package/out/api/parameters/setContentState.d.ts +11 -5
- package/out/api/relation.d.ts +8 -4
- package/out/api/relation.js.map +1 -1
- package/out/api/settings.d.ts +6 -4
- package/out/api/settings.js.map +1 -1
- package/out/api/space.d.ts +6 -4
- package/out/api/space.js.map +1 -1
- package/out/api/spaceProperties.d.ts +4 -4
- package/out/api/template.d.ts +16 -8
- package/out/api/template.js.map +1 -1
- package/out/clients/baseClient.js +3 -1
- package/out/clients/baseClient.js.map +1 -1
- package/out/clients/confluenceClient.d.ts +2 -1
- package/out/clients/confluenceClient.js +1 -0
- package/out/clients/confluenceClient.js.map +1 -1
- package/out/clients/serverClient.js.map +1 -1
- package/out/server/audit.js +6 -6
- package/out/server/audit.js.map +1 -1
- package/out/server/content.d.ts +34 -262
- package/out/server/content.js +40 -32
- package/out/server/content.js.map +1 -1
- package/out/server/contentBody.d.ts +2 -12
- package/out/server/contentBody.js +2 -1
- package/out/server/contentBody.js.map +1 -1
- package/out/server/group.js +3 -3
- package/out/server/group.js.map +1 -1
- package/out/server/longTask.js +2 -2
- package/out/server/longTask.js.map +1 -1
- package/out/server/parameters/convertContentBody.d.ts +16 -0
- package/out/server/parameters/updateAttachmentData.d.ts +8 -2
- package/out/server/search.d.ts +2 -22
- package/out/server/search.js +1 -1
- package/out/server/search.js.map +1 -1
- package/out/server/space.d.ts +12 -94
- package/out/server/space.js +14 -14
- package/out/server/space.js.map +1 -1
- package/out/server/user.d.ts +8 -152
- package/out/server/user.js +10 -10
- package/out/server/user.js.map +1 -1
- package/package.json +10 -10
- package/src/api/audit.ts +24 -12
- package/src/api/content.ts +23 -17
- package/src/api/contentAttachments.ts +19 -13
- package/src/api/contentBody.ts +102 -0
- package/src/api/contentChildrenAndDescendants.ts +3 -1
- package/src/api/contentContentState.ts +30 -28
- package/src/api/contentMacroBody.ts +119 -2
- package/src/api/contentRestrictions.ts +16 -8
- package/src/api/contentStates.ts +252 -0
- package/src/api/contentWatches.ts +16 -8
- package/src/api/dynamicModules.ts +1 -0
- package/src/api/experimental.ts +2 -2
- package/src/api/index.ts +1 -0
- package/src/api/models/asyncContentBody.ts +31 -0
- package/src/api/models/asyncId.ts +3 -0
- package/src/api/models/contentBodyCreate.ts +1 -0
- package/src/api/models/contentStateResponse.ts +8 -0
- package/src/api/models/contentStateRestInput.ts +11 -0
- package/src/api/models/index.ts +16 -12
- package/src/api/parameters/asyncConvertContentBodyRequest.ts +81 -0
- package/src/api/parameters/asyncConvertContentBodyResponse.ts +4 -0
- package/src/api/parameters/convertContentBody.ts +39 -2
- package/src/api/parameters/getAndAsyncConvertMacroBodyByMacroId.ts +88 -0
- package/src/api/parameters/getAndConvertMacroBodyByMacroId.ts +104 -0
- package/src/api/parameters/getAvailableContentStates.ts +5 -2
- package/src/api/parameters/getContentState.ts +9 -4
- package/src/api/parameters/getSpaceContentStates.ts +4 -0
- package/src/api/parameters/getUser.ts +14 -4
- package/src/api/parameters/index.ts +5 -0
- package/src/api/parameters/movePage.ts +9 -5
- package/src/api/parameters/removeContentState.ts +6 -1
- package/src/api/parameters/setContentState.ts +13 -5
- package/src/api/relation.ts +8 -4
- package/src/api/settings.ts +6 -4
- package/src/api/space.ts +7 -5
- package/src/api/spaceProperties.ts +4 -4
- package/src/api/template.ts +16 -8
- package/src/clients/baseClient.ts +5 -10
- package/src/clients/client.ts +1 -5
- package/src/clients/confluenceClient.ts +2 -0
- package/src/clients/serverClient.ts +1 -10
- package/src/server/audit.ts +6 -6
- package/src/server/content.ts +78 -295
- package/src/server/contentBody.ts +4 -13
- package/src/server/group.ts +3 -3
- package/src/server/longTask.ts +2 -2
- package/src/server/parameters/convertContentBody.ts +37 -0
- package/src/server/parameters/updateAttachmentData.ts +7 -3
- package/src/server/search.ts +3 -23
- package/src/server/space.ts +26 -108
- package/src/server/user.ts +18 -162
|
@@ -18,7 +18,8 @@ export declare class ContentMacroBody {
|
|
|
18
18
|
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
19
19
|
* transparently propagate out to all instances.
|
|
20
20
|
*
|
|
21
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
21
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
22
|
+
* macro is in.
|
|
22
23
|
*/
|
|
23
24
|
getMacroBodyByMacroId<T = Models.MacroInstance>(parameters: Parameters.GetMacroBodyByMacroId, callback: Callback<T>): Promise<void>;
|
|
24
25
|
/**
|
|
@@ -34,7 +35,76 @@ export declare class ContentMacroBody {
|
|
|
34
35
|
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
35
36
|
* transparently propagate out to all instances.
|
|
36
37
|
*
|
|
37
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
38
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
39
|
+
* macro is in.
|
|
38
40
|
*/
|
|
39
41
|
getMacroBodyByMacroId<T = Models.MacroInstance>(parameters: Parameters.GetMacroBodyByMacroId, callback?: never): Promise<T>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the body of a macro in format specified in path, for the given macro ID. This includes information like the
|
|
44
|
+
* name of the macro, the body of the macro, and any macro parameters.
|
|
45
|
+
*
|
|
46
|
+
* About the macro ID: When a macro is created in a new version of content, Confluence will generate a random ID for
|
|
47
|
+
* it, unless an ID is specified (by an app). The macro ID will look similar to this:
|
|
48
|
+
* '50884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is
|
|
49
|
+
* only modified by Confluence if there are conflicting IDs.
|
|
50
|
+
*
|
|
51
|
+
* Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
|
|
52
|
+
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
53
|
+
* transparently propagate out to all instances.
|
|
54
|
+
*
|
|
55
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
56
|
+
* macro is in.
|
|
57
|
+
*/
|
|
58
|
+
getAndConvertMacroBodyByMacroId<T = Models.ContentBody>(parameters: Parameters.GetAndConvertMacroBodyByMacroId, callback: Callback<T>): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the body of a macro in format specified in path, for the given macro ID. This includes information like the
|
|
61
|
+
* name of the macro, the body of the macro, and any macro parameters.
|
|
62
|
+
*
|
|
63
|
+
* About the macro ID: When a macro is created in a new version of content, Confluence will generate a random ID for
|
|
64
|
+
* it, unless an ID is specified (by an app). The macro ID will look similar to this:
|
|
65
|
+
* '50884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is
|
|
66
|
+
* only modified by Confluence if there are conflicting IDs.
|
|
67
|
+
*
|
|
68
|
+
* Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
|
|
69
|
+
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
70
|
+
* transparently propagate out to all instances.
|
|
71
|
+
*
|
|
72
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
73
|
+
* macro is in.
|
|
74
|
+
*/
|
|
75
|
+
getAndConvertMacroBodyByMacroId<T = Models.ContentBody>(parameters: Parameters.GetAndConvertMacroBodyByMacroId, callback?: never): Promise<T>;
|
|
76
|
+
/**
|
|
77
|
+
* Returns Async Id of the conversion task which will convert the macro into a content body of the desired format. The
|
|
78
|
+
* result will be available for 5 minutes after completion of the conversion.
|
|
79
|
+
*
|
|
80
|
+
* About the macro ID: When a macro is created in a new version of content, Confluence will generate a random ID for
|
|
81
|
+
* it, unless an ID is specified (by an app). The macro ID will look similar to this:
|
|
82
|
+
* '884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is only
|
|
83
|
+
* modified by Confluence if there are conflicting IDs.
|
|
84
|
+
*
|
|
85
|
+
* Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
|
|
86
|
+
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
87
|
+
* transparently propagate out to all instances.
|
|
88
|
+
*
|
|
89
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
90
|
+
* macro is in.
|
|
91
|
+
*/
|
|
92
|
+
getAndAsyncConvertMacroBodyByMacroId<T = Models.AsyncId>(parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId, callback: Callback<T>): Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* Returns Async Id of the conversion task which will convert the macro into a content body of the desired format. The
|
|
95
|
+
* result will be available for 5 minutes after completion of the conversion.
|
|
96
|
+
*
|
|
97
|
+
* About the macro ID: When a macro is created in a new version of content, Confluence will generate a random ID for
|
|
98
|
+
* it, unless an ID is specified (by an app). The macro ID will look similar to this:
|
|
99
|
+
* '884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is only
|
|
100
|
+
* modified by Confluence if there are conflicting IDs.
|
|
101
|
+
*
|
|
102
|
+
* Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
|
|
103
|
+
* macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
|
|
104
|
+
* transparently propagate out to all instances.
|
|
105
|
+
*
|
|
106
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
|
|
107
|
+
* macro is in.
|
|
108
|
+
*/
|
|
109
|
+
getAndAsyncConvertMacroBodyByMacroId<T = Models.AsyncId>(parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId, callback?: never): Promise<T>;
|
|
40
110
|
}
|
|
@@ -15,6 +15,35 @@ class ContentMacroBody {
|
|
|
15
15
|
return this.client.sendRequest(config, callback);
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
getAndConvertMacroBodyByMacroId(parameters, callback) {
|
|
19
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
const config = {
|
|
21
|
+
url: `/api/content/${parameters.id}/history/${parameters.version}/macro/id/${parameters.macroId}/convert/${parameters.to}`,
|
|
22
|
+
method: 'GET',
|
|
23
|
+
params: {
|
|
24
|
+
spaceKeyContext: parameters.spaceKeyContext,
|
|
25
|
+
embeddedContentRender: parameters.embeddedContentRender,
|
|
26
|
+
expand: parameters.expand,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
return this.client.sendRequest(config, callback);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
getAndAsyncConvertMacroBodyByMacroId(parameters, callback) {
|
|
33
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const config = {
|
|
35
|
+
url: `/api/content/${parameters.id}/history/${parameters.version}/macro/id/${parameters.macroId}/convert/async/${parameters.to}`,
|
|
36
|
+
method: 'GET',
|
|
37
|
+
params: {
|
|
38
|
+
allowCache: parameters.allowCache,
|
|
39
|
+
spaceKeyContext: parameters.spaceKeyContext,
|
|
40
|
+
embeddedContentRender: parameters.embeddedContentRender,
|
|
41
|
+
expand: parameters.expand,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
return this.client.sendRequest(config, callback);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
18
47
|
}
|
|
19
48
|
exports.ContentMacroBody = ContentMacroBody;
|
|
20
49
|
//# sourceMappingURL=contentMacroBody.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentMacroBody.js","sourceRoot":"","sources":["../../src/api/contentMacroBody.ts"],"names":[],"mappings":";;;;AAMA,MAAa,gBAAgB;IAC3B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"contentMacroBody.js","sourceRoot":"","sources":["../../src/api/contentMacroBody.ts"],"names":[],"mappings":";;;;AAMA,MAAa,gBAAgB;IAC3B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IA0ChC,qBAAqB,CACzB,UAA4C,EAC5C,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,YAAY,UAAU,CAAC,OAAO,aAAa,UAAU,CAAC,OAAO,EAAE;g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= unknown>(parameters: Parameters.GetContentRestrictionStatusForGroup, callback?: never): Promise<T>;
|
|
112
112
|
/**
|
|
113
|
-
* Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of
|
|
113
|
+
* Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of
|
|
114
|
+
* content.
|
|
114
115
|
*
|
|
115
116
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
116
117
|
*/
|
|
117
118
|
addGroupToContentRestriction<T = unknown>(parameters: Parameters.AddGroupToContentRestriction, callback: Callback<T>): Promise<void>;
|
|
118
119
|
/**
|
|
119
|
-
* Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of
|
|
120
|
+
* Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of
|
|
121
|
+
* content.
|
|
120
122
|
*
|
|
121
123
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
122
124
|
*/
|
|
123
125
|
addGroupToContentRestriction<T = unknown>(parameters: Parameters.AddGroupToContentRestriction, callback?: never): Promise<T>;
|
|
124
126
|
/**
|
|
125
|
-
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
127
|
+
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
128
|
+
* content.
|
|
126
129
|
*
|
|
127
130
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
128
131
|
*/
|
|
129
132
|
removeGroupByName<T = unknown>(parameters: Parameters.RemoveGroupByName, callback: Callback<T>): Promise<void>;
|
|
130
133
|
/**
|
|
131
|
-
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
134
|
+
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
135
|
+
* content.
|
|
132
136
|
*
|
|
133
137
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
134
138
|
*/
|
|
@@ -174,13 +178,15 @@ export declare class ContentRestrictions {
|
|
|
174
178
|
*/
|
|
175
179
|
addGroupToContentRestrictionByGroupId<T = unknown>(parameters: Parameters.AddGroupToContentRestrictionByGroupId, callback?: never): Promise<T>;
|
|
176
180
|
/**
|
|
177
|
-
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
181
|
+
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
182
|
+
* content.
|
|
178
183
|
*
|
|
179
184
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
180
185
|
*/
|
|
181
186
|
removeGroupById<T = unknown>(parameters: Parameters.RemoveGroupById, callback: Callback<T>): Promise<void>;
|
|
182
187
|
/**
|
|
183
|
-
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
188
|
+
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
189
|
+
* content.
|
|
184
190
|
*
|
|
185
191
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
186
192
|
*/
|
|
@@ -226,13 +232,15 @@ export declare class ContentRestrictions {
|
|
|
226
232
|
*/
|
|
227
233
|
addUserToContentRestriction<T = unknown>(parameters: Parameters.AddUserToContentRestriction, callback?: never): Promise<T>;
|
|
228
234
|
/**
|
|
229
|
-
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
235
|
+
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
236
|
+
* content.
|
|
230
237
|
*
|
|
231
238
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
232
239
|
*/
|
|
233
240
|
removeUserFromContentRestriction<T = unknown>(parameters: Parameters.RemoveUserFromContentRestriction, callback: Callback<T>): Promise<void>;
|
|
234
241
|
/**
|
|
235
|
-
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
242
|
+
* Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of
|
|
243
|
+
* content.
|
|
236
244
|
*
|
|
237
245
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
238
246
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentRestrictions.js","sourceRoot":"","sources":["../../src/api/contentRestrictions.ts"],"names":[],"mappings":";;;;AAMA,MAAa,mBAAmB;IAC9B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAoBhC,eAAe,CACnB,UAAsC,EACtC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,cAAc;gBAChD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;iBACxB;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAoBK,eAAe,CACnB,UAAsC,EACtC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,cAAc;gBAChD,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE;oBACN,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;gBACD,IAAI,EAAE,UAAU,CAAC,IAAI;aACtB,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAsBK,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,cAAc;gBAChD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B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EAClD,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,4BAA4B,UAAU,CAAC,YAAY,OAAO;gBAC5F,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,GAAG,EAAE,UAAU,CAAC,GAAG;oBACnB,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;iBAChC;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAsBK,gCAAgC,CACpC,UAAuD,EACvD,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,4BAA4B,UAAU,CAAC,YAAY,OAAO;gBAC5F,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE;oBACN,GAAG,EAAE,UAAU,CAAC,GAAG;oBACnB,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;iBAChC;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AA3hBD,kDA2hBC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import * as Models from './models';
|
|
2
|
+
import * as Parameters from './parameters';
|
|
3
|
+
import { Callback } from '../callback';
|
|
4
|
+
import { Client } from '../clients';
|
|
5
|
+
export declare class ContentStates {
|
|
6
|
+
private client;
|
|
7
|
+
constructor(client: Client);
|
|
8
|
+
/**
|
|
9
|
+
* Gets the current content state of the draft or current version of content. To specify the draft version, set the
|
|
10
|
+
* parameter status to draft, otherwise archived or current will get the relevant published state.
|
|
11
|
+
*
|
|
12
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.
|
|
13
|
+
*/
|
|
14
|
+
getContentState<T = Models.ContentStateResponse>(parameters: Parameters.GetContentState, callback: Callback<T>): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the current content state of the draft or current version of content. To specify the draft version, set the
|
|
17
|
+
* parameter status to draft, otherwise archived or current will get the relevant published state.
|
|
18
|
+
*
|
|
19
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.
|
|
20
|
+
*/
|
|
21
|
+
getContentState<T = Models.ContentStateResponse>(parameters: Parameters.GetContentState, callback?: never): Promise<T>;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the content state of the content specified and creates a new version (publishes the content without changing
|
|
24
|
+
* the body) of the content with the new state.
|
|
25
|
+
*
|
|
26
|
+
* You may pass in either an id of a state, or the name and color of a desired new state. If all 3 are passed in, id
|
|
27
|
+
* will be used. If the name and color passed in already exist under the current user's existing custom states, the
|
|
28
|
+
* existing state will be reused. If custom states are disabled in the space of the content (which can be determined
|
|
29
|
+
* by getting the content state space settings of the content's space) then this set will fail.
|
|
30
|
+
*
|
|
31
|
+
* You may not remove a content state via this PUT request. You must use the DELETE method. A specified state is
|
|
32
|
+
* required in the body of this request.
|
|
33
|
+
*
|
|
34
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
35
|
+
*/
|
|
36
|
+
setContentState<T = Models.ContentStateResponse>(parameters: Parameters.SetContentState, callback: Callback<T>): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the content state of the content specified and creates a new version (publishes the content without changing
|
|
39
|
+
* the body) of the content with the new state.
|
|
40
|
+
*
|
|
41
|
+
* You may pass in either an id of a state, or the name and color of a desired new state. If all 3 are passed in, id
|
|
42
|
+
* will be used. If the name and color passed in already exist under the current user's existing custom states, the
|
|
43
|
+
* existing state will be reused. If custom states are disabled in the space of the content (which can be determined
|
|
44
|
+
* by getting the content state space settings of the content's space) then this set will fail.
|
|
45
|
+
*
|
|
46
|
+
* You may not remove a content state via this PUT request. You must use the DELETE method. A specified state is
|
|
47
|
+
* required in the body of this request.
|
|
48
|
+
*
|
|
49
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
50
|
+
*/
|
|
51
|
+
setContentState<T = Models.ContentStateResponse>(parameters: Parameters.SetContentState, callback?: never): Promise<T>;
|
|
52
|
+
/**
|
|
53
|
+
* Removes the content state of the content specified and creates a new version (publishes the content without
|
|
54
|
+
* changing the body) of the content with the new status.
|
|
55
|
+
*
|
|
56
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
57
|
+
*/
|
|
58
|
+
removeContentState<T = Models.ContentStateResponse>(parameters: Parameters.RemoveContentState, callback: Callback<T>): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Removes the content state of the content specified and creates a new version (publishes the content without
|
|
61
|
+
* changing the body) of the content with the new status.
|
|
62
|
+
*
|
|
63
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
64
|
+
*/
|
|
65
|
+
removeContentState<T = Models.ContentStateResponse>(parameters: Parameters.RemoveContentState, callback?: never): Promise<T>;
|
|
66
|
+
/**
|
|
67
|
+
* Gets content states that are available for the content to be set as. Will return all enabled Space Content States.
|
|
68
|
+
* Will only return most the 3 most recently published custom content states to match UI editor list. To get all
|
|
69
|
+
* custom content states, use the /content-states endpoint.
|
|
70
|
+
*
|
|
71
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
72
|
+
*/
|
|
73
|
+
getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback: Callback<T>): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Gets content states that are available for the content to be set as. Will return all enabled Space Content States.
|
|
76
|
+
* Will only return most the 3 most recently published custom content states to match UI editor list. To get all
|
|
77
|
+
* custom content states, use the /content-states endpoint.
|
|
78
|
+
*
|
|
79
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
|
|
80
|
+
*/
|
|
81
|
+
getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback?: never): Promise<T>;
|
|
82
|
+
/**
|
|
83
|
+
* Get custom content states that authenticated user has created.
|
|
84
|
+
*
|
|
85
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required** Must have user authentication.
|
|
86
|
+
*/
|
|
87
|
+
getCustomContentStates<T = Models.ContentState[]>(callback: Callback<T>): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Get custom content states that authenticated user has created.
|
|
90
|
+
*
|
|
91
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required** Must have user authentication.
|
|
92
|
+
*/
|
|
93
|
+
getCustomContentStates<T = Models.ContentState[]>(callback?: never): Promise<T>;
|
|
94
|
+
/**
|
|
95
|
+
* Get content states that are suggested in the space.
|
|
96
|
+
*
|
|
97
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space view permission
|
|
98
|
+
*/
|
|
99
|
+
getSpaceContentStates<T = Models.ContentState[]>(parameters: Parameters.GetSpaceContentStates, callback: Callback<T>): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Get content states that are suggested in the space.
|
|
102
|
+
*
|
|
103
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space view permission
|
|
104
|
+
*/
|
|
105
|
+
getSpaceContentStates<T = Models.ContentState[]>(parameters: Parameters.GetSpaceContentStates, callback?: never): Promise<T>;
|
|
106
|
+
/**
|
|
107
|
+
* Get object describing whether content states are allowed at all, if custom content states or space content states
|
|
108
|
+
* are restricted, and a list of space content states allowed for the space if they are not restricted.
|
|
109
|
+
*
|
|
110
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space admin permission
|
|
111
|
+
*/
|
|
112
|
+
getContentStateSettings<T = Models.ContentStateSettings>(parameters: Parameters.GetContentStateSettings, callback: Callback<T>): Promise<void>;
|
|
113
|
+
/**
|
|
114
|
+
* Get object describing whether content states are allowed at all, if custom content states or space content states
|
|
115
|
+
* are restricted, and a list of space content states allowed for the space if they are not restricted.
|
|
116
|
+
*
|
|
117
|
+
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space admin permission
|
|
118
|
+
*/
|
|
119
|
+
getContentStateSettings<T = Models.ContentStateSettings>(parameters: Parameters.GetContentStateSettings, callback?: never): Promise<T>;
|
|
120
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentStates = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
class ContentStates {
|
|
6
|
+
constructor(client) {
|
|
7
|
+
this.client = client;
|
|
8
|
+
}
|
|
9
|
+
getContentState(parameters, callback) {
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
const config = {
|
|
12
|
+
url: `/api/content/${parameters.id}/state`,
|
|
13
|
+
method: 'GET',
|
|
14
|
+
params: {
|
|
15
|
+
status: parameters.status,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
return this.client.sendRequest(config, callback);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
setContentState(parameters, callback) {
|
|
22
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const config = {
|
|
24
|
+
url: `/api/content/${parameters.id}/state`,
|
|
25
|
+
method: 'PUT',
|
|
26
|
+
params: {
|
|
27
|
+
status: parameters.status,
|
|
28
|
+
},
|
|
29
|
+
data: {
|
|
30
|
+
name: parameters.name,
|
|
31
|
+
color: parameters.color,
|
|
32
|
+
id: parameters.stateId,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
return this.client.sendRequest(config, callback);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
removeContentState(parameters, callback) {
|
|
39
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const config = {
|
|
41
|
+
url: `/api/content/${parameters.id}/state`,
|
|
42
|
+
method: 'DELETE',
|
|
43
|
+
params: {
|
|
44
|
+
status: parameters.status,
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
return this.client.sendRequest(config, callback);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
getAvailableContentStates(parameters, callback) {
|
|
51
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const config = {
|
|
53
|
+
url: `/api/content/${parameters.id}/state/available`,
|
|
54
|
+
method: 'GET',
|
|
55
|
+
};
|
|
56
|
+
return this.client.sendRequest(config, callback);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
getCustomContentStates(callback) {
|
|
60
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const config = {
|
|
62
|
+
url: '/api/content-states',
|
|
63
|
+
method: 'GET',
|
|
64
|
+
};
|
|
65
|
+
return this.client.sendRequest(config, callback);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
getSpaceContentStates(parameters, callback) {
|
|
69
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const config = {
|
|
71
|
+
url: `/api/space/${parameters.spaceKey}/state`,
|
|
72
|
+
method: 'GET',
|
|
73
|
+
};
|
|
74
|
+
return this.client.sendRequest(config, callback);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
getContentStateSettings(parameters, callback) {
|
|
78
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
const config = {
|
|
80
|
+
url: `/api/space/${parameters.spaceKey}/state/settings`,
|
|
81
|
+
method: 'GET',
|
|
82
|
+
};
|
|
83
|
+
return this.client.sendRequest(config, callback);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.ContentStates = ContentStates;
|
|
88
|
+
//# sourceMappingURL=contentStates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentStates.js","sourceRoot":"","sources":["../../src/api/contentStates.ts"],"names":[],"mappings":";;;;AAMA,MAAa,aAAa;IACxB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAsBhC,eAAe,CACnB,UAAsC,EACtC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,QAAQ;gBAC1C,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAsCK,eAAe,CACnB,UAAsC,EACtC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,QAAQ;gBAC1C,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU,CAAC,IAAI;oBACrB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,EAAE,EAAE,UAAU,CAAC,OAAO;iBACvB;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAsBK,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,QAAQ;gBAC1C,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE;oBACN,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;aACF,CAAC;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the watches for a page. A user that watches a page will receive receive notifications when the page is
|
|
9
|
+
* Returns the watches for a page. A user that watches a page will receive receive notifications when the page is
|
|
10
|
+
* updated.
|
|
10
11
|
*
|
|
11
12
|
* If you want to manage watches for a page, use the following `user` methods:
|
|
12
13
|
*
|
|
@@ -19,7 +20,8 @@ export declare class ContentWatches {
|
|
|
19
20
|
*/
|
|
20
21
|
getWatchesForPage<T = Models.WatchArray>(parameters: Parameters.GetWatchesForPage, callback: Callback<T>): Promise<void>;
|
|
21
22
|
/**
|
|
22
|
-
* Returns the watches for a page. A user that watches a page will receive receive notifications when the page is
|
|
23
|
+
* Returns the watches for a page. A user that watches a page will receive receive notifications when the page is
|
|
24
|
+
* updated.
|
|
23
25
|
*
|
|
24
26
|
* If you want to manage watches for a page, use the following `user` methods:
|
|
25
27
|
*
|
|
@@ -89,7 +91,8 @@ export declare class ContentWatches {
|
|
|
89
91
|
* - Specify a user via a query parameter: Use the `accountId` to identify the user.
|
|
90
92
|
* - Do not specify a user: The currently logged-in user will be used.
|
|
91
93
|
*
|
|
92
|
-
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
94
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
95
|
+
* protection.
|
|
93
96
|
*
|
|
94
97
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission
|
|
95
98
|
* if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).
|
|
@@ -101,7 +104,8 @@ export declare class ContentWatches {
|
|
|
101
104
|
* - Specify a user via a query parameter: Use the `accountId` to identify the user.
|
|
102
105
|
* - Do not specify a user: The currently logged-in user will be used.
|
|
103
106
|
*
|
|
104
|
-
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
107
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
108
|
+
* protection.
|
|
105
109
|
*
|
|
106
110
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission
|
|
107
111
|
* if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).
|
|
@@ -153,7 +157,8 @@ export declare class ContentWatches {
|
|
|
153
157
|
* - Specify a user via a query parameter: Use the `accountId` to identify the user.
|
|
154
158
|
* - Do not specify a user: The currently logged-in user will be used.
|
|
155
159
|
*
|
|
156
|
-
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
160
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
161
|
+
* protection.
|
|
157
162
|
*
|
|
158
163
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission
|
|
159
164
|
* if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).
|
|
@@ -165,7 +170,8 @@ export declare class ContentWatches {
|
|
|
165
170
|
* - Specify a user via a query parameter: Use the `accountId` to identify the user.
|
|
166
171
|
* - Do not specify a user: The currently logged-in user will be used.
|
|
167
172
|
*
|
|
168
|
-
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
173
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
174
|
+
* protection.
|
|
169
175
|
*
|
|
170
176
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission
|
|
171
177
|
* if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).
|
|
@@ -217,7 +223,8 @@ export declare class ContentWatches {
|
|
|
217
223
|
* - Specify a user via a query parameter: Use the `accountId` to identify the user.
|
|
218
224
|
* - Do not specify a user: The currently logged-in user will be used.
|
|
219
225
|
*
|
|
220
|
-
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
226
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
227
|
+
* protection.
|
|
221
228
|
*
|
|
222
229
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission
|
|
223
230
|
* if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).
|
|
@@ -229,7 +236,8 @@ export declare class ContentWatches {
|
|
|
229
236
|
* - Specify a user via a query parameter: Use the `accountId` to identify the user.
|
|
230
237
|
* - Do not specify a user: The currently logged-in user will be used.
|
|
231
238
|
*
|
|
232
|
-
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
239
|
+
* Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF
|
|
240
|
+
* protection.
|
|
233
241
|
*
|
|
234
242
|
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission
|
|
235
243
|
* if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentWatches.js","sourceRoot":"","sources":["../../src/api/contentWatches.ts"],"names":[],"mappings":";;;;AAMA,MAAa,cAAc;IACzB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"contentWatches.js","sourceRoot":"","sources":["../../src/api/contentWatches.ts"],"names":[],"mappings":";;;;AAMA,MAAa,cAAc;IACzB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAoChC,iBAAiB,CACrB,UAAwC,EACxC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,6BAA6B;gBAC/D,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;iBACxB;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC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CAAC;KAAA;IAmBK,eAAe,CACnB,UAAuC,EACvC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,yCAAyC;gBAC9C,MAAM,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"dynamicModules.js","sourceRoot":"","sources":["../../src/api/dynamicModules.ts"],"names":[],"mappings":";;;;AAKA,MAAa,cAAc;IACzB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAchC,UAAU,CAAc,QAAsB;;YAClD,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,yCAAyC;gBAC9C,MAAM,EAAE,KAAK;aACd,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAmBK,eAAe,CACnB,UAAuC,EACvC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,yCAAyC;gBAC9C,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,UAAU;aACjB,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAcK,aAAa,CAAW,UAAoC,EAAE,QAAsB;;YACxF,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,yCAAyC;gBAC9C,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE;oBACN,SAAS,EAAE,UAAU,CAAC,SAAS;iBAChC;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AA7ED,wCA6EC"}
|
|
@@ -163,8 +163,8 @@ export declare class Experimental {
|
|
|
163
163
|
* ('Can use' global permission).
|
|
164
164
|
*/
|
|
165
165
|
deleteUserProperty<T = void>(parameters: Parameters.DeleteUserProperty, callback?: never): Promise<T>;
|
|
166
|
-
/** Get the total number of distinct viewers a piece of content has. */
|
|
166
|
+
/** @deprecated Get the total number of distinct viewers a piece of content has. */
|
|
167
167
|
getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback: Callback<T>): Promise<void>;
|
|
168
|
-
/** Get the total number of distinct viewers a piece of content has. */
|
|
168
|
+
/** @deprecated Get the total number of distinct viewers a piece of content has. */
|
|
169
169
|
getViewers<T = Models.GetViewers>(parameters: Parameters.GetViewers, callback?: never): Promise<T>;
|
|
170
170
|
}
|
package/out/api/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './contentMacroBody';
|
|
|
11
11
|
export * from './contentPermissions';
|
|
12
12
|
export * from './contentProperties';
|
|
13
13
|
export * from './contentRestrictions';
|
|
14
|
+
export * from './contentStates';
|
|
14
15
|
export * from './contentVersions';
|
|
15
16
|
export * from './contentWatches';
|
|
16
17
|
export * from './dynamicModules';
|
package/out/api/index.js
CHANGED
|
@@ -14,6 +14,7 @@ tslib_1.__exportStar(require("./contentMacroBody"), exports);
|
|
|
14
14
|
tslib_1.__exportStar(require("./contentPermissions"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./contentProperties"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./contentRestrictions"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./contentStates"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./contentVersions"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./contentWatches"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./dynamicModules"), exports);
|
package/out/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,kDAAwB;AACxB,oDAA0B;AAC1B,+DAAqC;AACrC,wDAA8B;AAC9B,0EAAgD;AAChD,4DAAkC;AAClC,gEAAsC;AACtC,0DAAgC;AAChC,6DAAmC;AACnC,+DAAqC;AACrC,8DAAoC;AACpC,gEAAsC;AACtC,4DAAkC;AAClC,2DAAiC;AACjC,2DAAiC;AACjC,yDAA+B;AAC/B,kDAAwB;AACxB,wDAA8B;AAC9B,sDAA4B;AAC5B,4DAAkC;AAClC,qDAA2B;AAC3B,mDAAyB;AACzB,qDAA2B;AAC3B,kDAAwB;AACxB,6DAAmC;AACnC,4DAAkC;AAClC,0DAAgC;AAChC,qDAA2B;AAC3B,mDAAyB;AACzB,kDAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,kDAAwB;AACxB,oDAA0B;AAC1B,+DAAqC;AACrC,wDAA8B;AAC9B,0EAAgD;AAChD,4DAAkC;AAClC,gEAAsC;AACtC,0DAAgC;AAChC,6DAAmC;AACnC,+DAAqC;AACrC,8DAAoC;AACpC,gEAAsC;AACtC,0DAAgC;AAChC,4DAAkC;AAClC,2DAAiC;AACjC,2DAAiC;AACjC,yDAA+B;AAC/B,kDAAwB;AACxB,wDAA8B;AAC9B,sDAA4B;AAC5B,4DAAkC;AAClC,qDAA2B;AAC3B,mDAAyB;AACzB,qDAA2B;AAC3B,kDAAwB;AACxB,6DAAmC;AACnC,4DAAkC;AAClC,0DAAgC;AAChC,qDAA2B;AAC3B,mDAAyB;AACzB,kDAAwB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EmbeddedContent } from './embeddedContent';
|
|
2
|
+
import { GenericLinks } from './genericLinks';
|
|
3
|
+
import { WebResourceDependencies } from './webResourceDependencies';
|
|
4
|
+
export interface AsyncContentBody {
|
|
5
|
+
value?: string;
|
|
6
|
+
representation?: string;
|
|
7
|
+
renderTaskId?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Rerunning is reserved for when the job is working, but there is a previous run's value in the cache. You may
|
|
11
|
+
* choose to continue polling, or use the cached value.
|
|
12
|
+
*/
|
|
13
|
+
status?: string;
|
|
14
|
+
embeddedContent?: EmbeddedContent[];
|
|
15
|
+
webresource?: WebResourceDependencies;
|
|
16
|
+
mediaToken?: {
|
|
17
|
+
collectionIds?: string[];
|
|
18
|
+
contentId?: string;
|
|
19
|
+
expiryDateTime?: string;
|
|
20
|
+
fileIds?: string[];
|
|
21
|
+
token?: string;
|
|
22
|
+
};
|
|
23
|
+
Expandable?: {
|
|
24
|
+
content?: string;
|
|
25
|
+
embeddedContent?: string;
|
|
26
|
+
webresource?: string;
|
|
27
|
+
mediaToken?: string;
|
|
28
|
+
};
|
|
29
|
+
Links?: GenericLinks;
|
|
30
|
+
}
|