@resolution/confluence-api-client 0.13.4 → 0.14.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/lib/openapi/core/CommonHttpClient.d.ts +1 -1
- package/lib/openapi/core/CommonHttpClient.js +1 -1
- package/lib/openapi/core/CommonHttpClient.js.map +1 -1
- package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +6 -37
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js +3 -71
- package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
- package/lib/openapi/v1/models/audit.js +2 -2
- package/lib/openapi/v1/models/audit.js.map +1 -1
- package/lib/openapi/v1/models/common.d.ts +1 -1
- package/lib/openapi/v1/models/common.js +3 -3
- package/lib/openapi/v1/models/common.js.map +1 -1
- package/lib/openapi/v1/models/content.d.ts +0 -543
- package/lib/openapi/v1/models/content.js +2 -309
- package/lib/openapi/v1/models/content.js.map +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.d.ts +7 -3
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js +1 -1
- package/lib/openapi/v1/models/contentChildrenAndDescendants.js.map +1 -1
- package/lib/openapi/v1/models/contentRestrictions.js +1 -1
- package/lib/openapi/v1/models/contentRestrictions.js.map +1 -1
- package/lib/openapi/v1/models/contentStates.d.ts +322 -0
- package/lib/openapi/v1/models/contentStates.js +219 -0
- package/lib/openapi/v1/models/contentStates.js.map +1 -1
- package/lib/openapi/v1/models/contentVersions.d.ts +0 -9
- package/lib/openapi/v1/models/contentVersions.js +1 -10
- package/lib/openapi/v1/models/contentVersions.js.map +1 -1
- package/lib/openapi/v1/models/dynamicModules.d.ts +3 -3
- package/lib/openapi/v1/models/space.d.ts +1 -9
- package/lib/openapi/v1/models/space.js +1 -8
- package/lib/openapi/v1/models/space.js.map +1 -1
- package/lib/openapi/v1/models/template.js +1 -1
- package/lib/openapi/v1/models/template.js.map +1 -1
- package/lib/openapi/v1/services/AnalyticsService.d.ts +4 -0
- package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +0 -130
- package/lib/openapi/v1/services/ContentAttachmentsService.js +0 -52
- package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentBodyService.d.ts +1 -102
- package/lib/openapi/v1/services/ContentBodyService.js +1 -65
- package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +5 -220
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +4 -144
- package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentLabelsService.d.ts +1 -44
- package/lib/openapi/v1/services/ContentLabelsService.js +0 -41
- package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
- package/lib/openapi/v1/services/ContentService.d.ts +2 -560
- package/lib/openapi/v1/services/ContentService.js +1 -300
- package/lib/openapi/v1/services/ContentService.js.map +1 -1
- package/lib/openapi/v1/services/ContentVersionsService.d.ts +1 -72
- package/lib/openapi/v1/services/ContentVersionsService.js +1 -97
- package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
- package/lib/openapi/v1/services/GroupService.d.ts +1 -1
- package/lib/openapi/v1/services/GroupService.js +1 -1
- package/lib/openapi/v1/services/SettingsService.d.ts +0 -26
- package/lib/openapi/v1/services/SettingsService.js +0 -38
- package/lib/openapi/v1/services/SettingsService.js.map +1 -1
- package/lib/openapi/v1/services/SpaceService.d.ts +2 -406
- package/lib/openapi/v1/services/SpaceService.js +1 -215
- package/lib/openapi/v1/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +22 -3
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js +25 -1
- package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
- package/lib/openapi/v2/models/adminKey.d.ts +13 -0
- package/lib/openapi/v2/models/adminKey.js +12 -0
- package/lib/openapi/v2/models/adminKey.js.map +1 -0
- package/lib/openapi/v2/models/children.d.ts +21 -6
- package/lib/openapi/v2/models/children.js +10 -1
- package/lib/openapi/v2/models/children.js.map +1 -1
- package/lib/openapi/v2/models/common.d.ts +6 -0
- package/lib/openapi/v2/models/common.js +1 -0
- package/lib/openapi/v2/models/common.js.map +1 -1
- package/lib/openapi/v2/models/descendants.d.ts +29 -0
- package/lib/openapi/v2/models/descendants.js +19 -0
- package/lib/openapi/v2/models/descendants.js.map +1 -0
- package/lib/openapi/v2/services/AdminKeyService.d.ts +71 -0
- package/lib/openapi/v2/services/AdminKeyService.js +111 -0
- package/lib/openapi/v2/services/AdminKeyService.js.map +1 -0
- package/lib/openapi/v2/services/AttachmentService.d.ts +6 -5
- package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
- package/lib/openapi/v2/services/BlogPostService.d.ts +5 -4
- package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
- package/lib/openapi/v2/services/ChildrenService.d.ts +307 -1
- package/lib/openapi/v2/services/ChildrenService.js +321 -0
- package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
- package/lib/openapi/v2/services/CommentService.d.ts +10 -8
- package/lib/openapi/v2/services/CommentService.js.map +1 -1
- package/lib/openapi/v2/services/ContentPropertiesService.d.ts +1 -1
- package/lib/openapi/v2/services/CustomContentService.d.ts +18 -1
- package/lib/openapi/v2/services/CustomContentService.js +5 -0
- package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
- package/lib/openapi/v2/services/DatabaseService.d.ts +4 -6
- package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
- package/lib/openapi/v2/services/DescendantsService.d.ts +346 -0
- package/lib/openapi/v2/services/DescendantsService.js +362 -0
- package/lib/openapi/v2/services/DescendantsService.js.map +1 -0
- package/lib/openapi/v2/services/FolderService.d.ts +4 -6
- package/lib/openapi/v2/services/FolderService.js.map +1 -1
- package/lib/openapi/v2/services/PageService.d.ts +49 -6
- package/lib/openapi/v2/services/PageService.js +42 -2
- package/lib/openapi/v2/services/PageService.js.map +1 -1
- package/lib/openapi/v2/services/SmartLinkService.d.ts +4 -6
- package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
- package/lib/openapi/v2/services/SpaceService.d.ts +2 -1
- package/lib/openapi/v2/services/SpaceService.js.map +1 -1
- package/lib/openapi/v2/services/WhiteboardService.d.ts +6 -8
- package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
- package/package.json +3 -3
- package/lib/openapi/v1/models/contentProperties.d.ts +0 -78
- package/lib/openapi/v1/models/contentProperties.js +0 -48
- package/lib/openapi/v1/models/contentProperties.js.map +0 -1
- package/lib/openapi/v1/models/inlineTasks.d.ts +0 -33
- package/lib/openapi/v1/models/inlineTasks.js +0 -36
- package/lib/openapi/v1/models/inlineTasks.js.map +0 -1
- package/lib/openapi/v1/models/spaceProperties.d.ts +0 -103
- package/lib/openapi/v1/models/spaceProperties.js +0 -48
- package/lib/openapi/v1/models/spaceProperties.js.map +0 -1
- package/lib/openapi/v1/services/ContentCommentsService.d.ts +0 -153
- package/lib/openapi/v1/services/ContentCommentsService.js +0 -81
- package/lib/openapi/v1/services/ContentCommentsService.js.map +0 -1
- package/lib/openapi/v1/services/ContentPropertiesService.d.ts +0 -203
- package/lib/openapi/v1/services/ContentPropertiesService.js +0 -279
- package/lib/openapi/v1/services/ContentPropertiesService.js.map +0 -1
- package/lib/openapi/v1/services/InlineTasksService.d.ts +0 -101
- package/lib/openapi/v1/services/InlineTasksService.js +0 -145
- package/lib/openapi/v1/services/InlineTasksService.js.map +0 -1
- package/lib/openapi/v1/services/SpacePropertiesService.d.ts +0 -177
- package/lib/openapi/v1/services/SpacePropertiesService.js +0 -269
- package/lib/openapi/v1/services/SpacePropertiesService.js.map +0 -1
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContentPropertiesService = void 0;
|
|
4
|
-
// DO NOT EDIT!
|
|
5
|
-
// This file is generated by "api-typescript-generator".
|
|
6
|
-
// To update this file run "yarn build:openapi".
|
|
7
|
-
const commonHttpClient = require("../../core/CommonHttpClient");
|
|
8
|
-
const CommonHttpService_1 = require("../../core/CommonHttpService");
|
|
9
|
-
const contentProperties_1 = require("../models/contentProperties");
|
|
10
|
-
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
11
|
-
const zod_1 = require("zod");
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated
|
|
14
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties
|
|
15
|
-
* @category Services
|
|
16
|
-
*/
|
|
17
|
-
class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
/**
|
|
21
|
-
* Creates a property for an existing piece of content. For more information
|
|
22
|
-
* about content properties, see [Confluence entity
|
|
23
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
24
|
-
*
|
|
25
|
-
* This is the same as [Create content property for
|
|
26
|
-
* key](#api-content-id-property-key-post)
|
|
27
|
-
* except that the key is specified in the request body instead of as a
|
|
28
|
-
* path parameter.
|
|
29
|
-
*
|
|
30
|
-
* Content properties can also be added when creating a new piece of content
|
|
31
|
-
* by including them in the `metadata.properties` of the request.
|
|
32
|
-
*
|
|
33
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
34
|
-
* Permission to update the content.
|
|
35
|
-
*
|
|
36
|
-
* @deprecated
|
|
37
|
-
* @returns Returned if the content property is created.
|
|
38
|
-
* @path POST `/wiki/rest/api/content/{id}/property`
|
|
39
|
-
* @scopes-current write:confluence-props
|
|
40
|
-
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
41
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-post
|
|
42
|
-
* @param params
|
|
43
|
-
*/
|
|
44
|
-
this.createContentProperty = ({ id, contentPropertyCreate }) => {
|
|
45
|
-
return this.getClientInstance().request({
|
|
46
|
-
path: "/wiki/rest/api/content/{id}/property",
|
|
47
|
-
method: "POST",
|
|
48
|
-
pathParams: {
|
|
49
|
-
id
|
|
50
|
-
},
|
|
51
|
-
headers: {
|
|
52
|
-
"Content-Type": "application/json"
|
|
53
|
-
},
|
|
54
|
-
body: contentPropertyCreate
|
|
55
|
-
}).then(this.getClientInstance().responseHandler({
|
|
56
|
-
200: {
|
|
57
|
-
"application/json": "json"
|
|
58
|
-
}
|
|
59
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createContentProperty.response"))).then(commonHttpClient.getBody);
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Creates a property for an existing piece of content. For more information
|
|
63
|
-
* about content properties, see [Confluence entity
|
|
64
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
65
|
-
*
|
|
66
|
-
* This is the same as [Create content property](#api-content-id-property-post)
|
|
67
|
-
* except that the key is specified as a path parameter instead of in the
|
|
68
|
-
* request body.
|
|
69
|
-
*
|
|
70
|
-
* Content properties can also be added when creating a new piece of content
|
|
71
|
-
* by including them in the `metadata.properties` of the request.
|
|
72
|
-
*
|
|
73
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
74
|
-
* Permission to update the content.
|
|
75
|
-
*
|
|
76
|
-
* @deprecated
|
|
77
|
-
* @returns Returned if the content property is created.
|
|
78
|
-
* @path POST `/wiki/rest/api/content/{id}/property/{key}`
|
|
79
|
-
* @scopes-current write:confluence-props
|
|
80
|
-
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
81
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-post
|
|
82
|
-
* @param params
|
|
83
|
-
*/
|
|
84
|
-
this.createContentPropertyForKey = ({ id, key, contentPropertyCreateNoKey }) => {
|
|
85
|
-
return this.getClientInstance().request({
|
|
86
|
-
path: "/wiki/rest/api/content/{id}/property/{key}",
|
|
87
|
-
method: "POST",
|
|
88
|
-
pathParams: {
|
|
89
|
-
id,
|
|
90
|
-
key
|
|
91
|
-
},
|
|
92
|
-
headers: {
|
|
93
|
-
"Content-Type": "application/json"
|
|
94
|
-
},
|
|
95
|
-
body: contentPropertyCreateNoKey
|
|
96
|
-
}).then(this.getClientInstance().responseHandler({
|
|
97
|
-
200: {
|
|
98
|
-
"application/json": "json"
|
|
99
|
-
}
|
|
100
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createContentPropertyForKey.response"))).then(commonHttpClient.getBody);
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Deletes a content property. For more information about content properties, see
|
|
104
|
-
* [Confluence entity
|
|
105
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
106
|
-
*
|
|
107
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
108
|
-
* Permission to update the content.
|
|
109
|
-
*
|
|
110
|
-
* @deprecated
|
|
111
|
-
* @path DELETE `/wiki/rest/api/content/{id}/property/{key}`
|
|
112
|
-
* @scopes-current write:confluence-props
|
|
113
|
-
* @scopes-beta write:content.property:confluence
|
|
114
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-delete
|
|
115
|
-
* @param params
|
|
116
|
-
*/
|
|
117
|
-
this.deleteContentProperty = ({ id, key }) => {
|
|
118
|
-
return this.getClientInstance().request({
|
|
119
|
-
path: "/wiki/rest/api/content/{id}/property/{key}",
|
|
120
|
-
method: "DELETE",
|
|
121
|
-
pathParams: {
|
|
122
|
-
id,
|
|
123
|
-
key
|
|
124
|
-
}
|
|
125
|
-
}).then(commonHttpClient.discardResult);
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Returns the properties for a piece of content. For more information
|
|
129
|
-
* about content properties, see [Confluence entity
|
|
130
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
131
|
-
*
|
|
132
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
133
|
-
* 'View' permission for the space, and permission to view the content if it is a
|
|
134
|
-
* page.
|
|
135
|
-
*
|
|
136
|
-
* @deprecated
|
|
137
|
-
* @returns Returned if the requested properties are returned.
|
|
138
|
-
* @path GET `/wiki/rest/api/content/{id}/property`
|
|
139
|
-
* @scopes-current read:confluence-props
|
|
140
|
-
* @scopes-beta read:content-details:confluence
|
|
141
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-get
|
|
142
|
-
* @param params
|
|
143
|
-
*/
|
|
144
|
-
this.getContentProperties = ({ id, key, expand, start, limit }) => {
|
|
145
|
-
return this.getClientInstance().request({
|
|
146
|
-
path: "/wiki/rest/api/content/{id}/property",
|
|
147
|
-
method: "GET",
|
|
148
|
-
pathParams: {
|
|
149
|
-
id
|
|
150
|
-
},
|
|
151
|
-
query: {
|
|
152
|
-
key,
|
|
153
|
-
expand,
|
|
154
|
-
start,
|
|
155
|
-
limit
|
|
156
|
-
},
|
|
157
|
-
parameters: {
|
|
158
|
-
query: {
|
|
159
|
-
expand: {
|
|
160
|
-
explode: false
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}).then(this.getClientInstance().responseHandler({
|
|
165
|
-
200: {
|
|
166
|
-
"application/json": "json"
|
|
167
|
-
}
|
|
168
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getContentProperties.response"))).then(commonHttpClient.getBody);
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* Returns a content property for a piece of content. For more information, see
|
|
172
|
-
* [Confluence entity
|
|
173
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
174
|
-
*
|
|
175
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
176
|
-
* 'View' permission for the space, and permission to view the content if it is a
|
|
177
|
-
* page.
|
|
178
|
-
*
|
|
179
|
-
* @deprecated
|
|
180
|
-
* @returns Returned if the content property is returned.
|
|
181
|
-
* @path GET `/wiki/rest/api/content/{id}/property/{key}`
|
|
182
|
-
* @scopes-current read:confluence-props
|
|
183
|
-
* @scopes-beta read:content-details:confluence
|
|
184
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-get
|
|
185
|
-
* @param params
|
|
186
|
-
*/
|
|
187
|
-
this.getContentProperty = ({ id, key, expand, status }) => {
|
|
188
|
-
return this.getClientInstance().request({
|
|
189
|
-
path: "/wiki/rest/api/content/{id}/property/{key}",
|
|
190
|
-
method: "GET",
|
|
191
|
-
pathParams: {
|
|
192
|
-
id,
|
|
193
|
-
key
|
|
194
|
-
},
|
|
195
|
-
query: {
|
|
196
|
-
expand,
|
|
197
|
-
status
|
|
198
|
-
},
|
|
199
|
-
parameters: {
|
|
200
|
-
query: {
|
|
201
|
-
expand: {
|
|
202
|
-
explode: false
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}).then(this.getClientInstance().responseHandler({
|
|
207
|
-
200: {
|
|
208
|
-
"application/json": "json"
|
|
209
|
-
}
|
|
210
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getContentProperty.response"))).then(commonHttpClient.getBody);
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* Updates an existing content property. This method will also create a new
|
|
214
|
-
* property for a piece of content, if the property key does not exist and
|
|
215
|
-
* the property version is 1. For more information about content properties, see
|
|
216
|
-
* [Confluence entity
|
|
217
|
-
* properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
|
|
218
|
-
*
|
|
219
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
220
|
-
* Permission to update the content.
|
|
221
|
-
*
|
|
222
|
-
* @deprecated
|
|
223
|
-
* @returns Returned if the content property is created.
|
|
224
|
-
* @path PUT `/wiki/rest/api/content/{id}/property/{key}`
|
|
225
|
-
* @scopes-current write:confluence-props
|
|
226
|
-
* @scopes-beta read:content.property:confluence, write:content.property:confluence
|
|
227
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-put
|
|
228
|
-
* @param params
|
|
229
|
-
*/
|
|
230
|
-
this.updateContentProperty = ({ id, key, contentPropertyUpdate }) => {
|
|
231
|
-
return this.getClientInstance().request({
|
|
232
|
-
path: "/wiki/rest/api/content/{id}/property/{key}",
|
|
233
|
-
method: "PUT",
|
|
234
|
-
pathParams: {
|
|
235
|
-
id,
|
|
236
|
-
key
|
|
237
|
-
},
|
|
238
|
-
headers: {
|
|
239
|
-
"Content-Type": "application/json"
|
|
240
|
-
},
|
|
241
|
-
body: contentPropertyUpdate
|
|
242
|
-
}).then(this.getClientInstance().responseHandler({
|
|
243
|
-
200: {
|
|
244
|
-
"application/json": "json"
|
|
245
|
-
}
|
|
246
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateContentProperty.response"))).then(commonHttpClient.getBody);
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
static initialize() {
|
|
250
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getContentProperties.response", zod_1.z.object({
|
|
251
|
-
status: zod_1.z.literal(200),
|
|
252
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
253
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentPropertyArray")
|
|
254
|
-
}).describe("ContentPropertiesService.getContentProperties.response"));
|
|
255
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.createContentProperty.response", zod_1.z.object({
|
|
256
|
-
status: zod_1.z.literal(200),
|
|
257
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
258
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentPropertyV1")
|
|
259
|
-
}).describe("ContentPropertiesService.createContentProperty.response"));
|
|
260
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getContentProperty.response", zod_1.z.object({
|
|
261
|
-
status: zod_1.z.literal(200),
|
|
262
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
263
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentPropertyV1")
|
|
264
|
-
}).describe("ContentPropertiesService.getContentProperty.response"));
|
|
265
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.updateContentProperty.response", zod_1.z.object({
|
|
266
|
-
status: zod_1.z.literal(200),
|
|
267
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
268
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentPropertyV1")
|
|
269
|
-
}).describe("ContentPropertiesService.updateContentProperty.response"));
|
|
270
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.createContentPropertyForKey.response", zod_1.z.object({
|
|
271
|
-
status: zod_1.z.literal(200),
|
|
272
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
273
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("ContentPropertyV1")
|
|
274
|
-
}).describe("ContentPropertiesService.createContentPropertyForKey.response"));
|
|
275
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([contentProperties_1.registerContentPropertiesValidationSchemas]);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
exports.ContentPropertiesService = ContentPropertiesService;
|
|
279
|
-
//# sourceMappingURL=ContentPropertiesService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPropertiesService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/ContentPropertiesService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,mEAAqO;AACrO,wEAAqE;AACrE,6BAAwB;AACxB;;;;GAIG;AACH,MAAa,wBAAyB,SAAQ,qCAAiB;IAA/D;;QACE;;;;;;;;;;;;;;;;;;;;;;;WAuBG;QACH,0BAAqB,GAAG,CAAC,EACvB,EAAE,EACF,qBAAqB,EAMtB,EAA8B,EAAE;YAC/B,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC;gBACtC,IAAI,EAAE,sCAAsC;gBAC5C,MAAM,EAAE,MAAM;gBACd,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,qBAAqB;aAC5B,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBAC/C,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAIlC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,iDAAuB,CAAC,SAAS,CAAC,yDAAyD,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAC/K,CAAC,CAAC;QACF;;;;;;;;;;;;;;;;;;;;;;WAsBG;QACH,gCAA2B,GAAG,CAAC,EAC7B,EAAE,EACF,GAAG,EACH,0BAA0B,EAQ3B,EAA8B,EAAE;YAC/B,OAAO,IAAI,CAAC,iBAAiB,EA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AvXD,4DAuXC"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type TaskV1, type TaskStatusUpdate, type TaskPageResponse } from "../models/inlineTasks";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks
|
|
6
|
-
* @category Services
|
|
7
|
-
*/
|
|
8
|
-
export declare class InlineTasksService extends CommonHttpService {
|
|
9
|
-
/**
|
|
10
|
-
* Deprecated, use [Confluence's v2
|
|
11
|
-
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
12
|
-
*
|
|
13
|
-
* Returns inline task based on the global ID.
|
|
14
|
-
*
|
|
15
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
16
|
-
* Permission to view the content associated with the task.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated
|
|
19
|
-
* @returns Returned if the inline task was found given the global ID
|
|
20
|
-
* @path GET `/wiki/rest/api/inlinetasks/{inlineTaskId}`
|
|
21
|
-
* @scopes-current read:inlinetask:confluence
|
|
22
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks#api-wiki-rest-api-inlinetasks-inlinetaskid-get
|
|
23
|
-
* @param params
|
|
24
|
-
*/
|
|
25
|
-
getTaskById: ({ inlineTaskId }: {
|
|
26
|
-
/** Global ID of the inline task */
|
|
27
|
-
inlineTaskId: string;
|
|
28
|
-
}) => Promise<TaskV1>;
|
|
29
|
-
/**
|
|
30
|
-
* Deprecated, use [Confluence's v2
|
|
31
|
-
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
32
|
-
*
|
|
33
|
-
* Returns inline tasks based on the search query.
|
|
34
|
-
*
|
|
35
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
36
|
-
* Permission to access the Confluence site ('Can use' global permission). Only
|
|
37
|
-
* tasks
|
|
38
|
-
* in contents that the user has permission to view are returned.
|
|
39
|
-
*
|
|
40
|
-
* @deprecated
|
|
41
|
-
* @returns Returned if the query fetches zero or more results.
|
|
42
|
-
* @path GET `/wiki/rest/api/inlinetasks/search`
|
|
43
|
-
* @scopes-current read:confluence-content.all
|
|
44
|
-
* @scopes-beta read:inlinetask:confluence
|
|
45
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks#api-wiki-rest-api-inlinetasks-search-get
|
|
46
|
-
* @param params
|
|
47
|
-
*/
|
|
48
|
-
searchTasks: ({ start, limit, spaceKey, pageId, assignee, creator, completedUser, duedateFrom, duedateTo, createdateFrom, createdateTo, completedateFrom, completedateTo, status }?: {
|
|
49
|
-
/** The starting offset for the results. */
|
|
50
|
-
start?: number | undefined;
|
|
51
|
-
/** The number of results to be returned. */
|
|
52
|
-
limit?: number | undefined;
|
|
53
|
-
/** The space key of a space. Multiple space keys can be specified. */
|
|
54
|
-
spaceKey?: string | undefined;
|
|
55
|
-
/** The page id of a page. Multiple page ids can be specified. */
|
|
56
|
-
pageId?: string | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Account ID of a user to whom a task is assigned. Multiple users can be
|
|
59
|
-
* specified.
|
|
60
|
-
*/
|
|
61
|
-
assignee?: string | undefined;
|
|
62
|
-
/** Account ID of a user to who created a task. Multiple users can be specified. */
|
|
63
|
-
creator?: string | undefined;
|
|
64
|
-
/** Account ID of a user who completed a task. Multiple users can be specified. */
|
|
65
|
-
completedUser?: string | undefined;
|
|
66
|
-
/** Start of date range based on due dates (inclusive). */
|
|
67
|
-
duedateFrom?: number | undefined;
|
|
68
|
-
/** End of date range based on due dates (inclusive). */
|
|
69
|
-
duedateTo?: number | undefined;
|
|
70
|
-
/** Start of date range based on create dates (inclusive). */
|
|
71
|
-
createdateFrom?: number | undefined;
|
|
72
|
-
/** End of date range based on create dates (inclusive). */
|
|
73
|
-
createdateTo?: number | undefined;
|
|
74
|
-
/** Start of date range based on complete dates (inclusive). */
|
|
75
|
-
completedateFrom?: number | undefined;
|
|
76
|
-
/** End of date range based on complete dates (inclusive). */
|
|
77
|
-
completedateTo?: number | undefined;
|
|
78
|
-
/** The status of the task. (checked/unchecked) */
|
|
79
|
-
status?: "complete" | "incomplete" | undefined;
|
|
80
|
-
}) => Promise<TaskPageResponse>;
|
|
81
|
-
/**
|
|
82
|
-
* Updates an inline tasks status given its global ID
|
|
83
|
-
*
|
|
84
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
85
|
-
* Permission to update the content associated with the task.
|
|
86
|
-
*
|
|
87
|
-
* @deprecated
|
|
88
|
-
* @returns Returned if the inline task was successfully updated.
|
|
89
|
-
* @path PUT `/wiki/rest/api/inlinetasks/{inlineTaskId}`
|
|
90
|
-
* @scopes-current read:inlinetask:confluence, write:inlinetask:confluence
|
|
91
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks#api-wiki-rest-api-inlinetasks-inlinetaskid-put
|
|
92
|
-
* @param params
|
|
93
|
-
*/
|
|
94
|
-
updateTaskById: ({ inlineTaskId, taskStatusUpdate }: {
|
|
95
|
-
/** Global ID of the inline task to update */
|
|
96
|
-
inlineTaskId: string;
|
|
97
|
-
/** The updated task status. */
|
|
98
|
-
taskStatusUpdate: TaskStatusUpdate;
|
|
99
|
-
}) => Promise<TaskV1>;
|
|
100
|
-
protected static initialize(): void;
|
|
101
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InlineTasksService = void 0;
|
|
4
|
-
// DO NOT EDIT!
|
|
5
|
-
// This file is generated by "api-typescript-generator".
|
|
6
|
-
// To update this file run "yarn build:openapi".
|
|
7
|
-
const commonHttpClient = require("../../core/CommonHttpClient");
|
|
8
|
-
const CommonHttpService_1 = require("../../core/CommonHttpService");
|
|
9
|
-
const inlineTasks_1 = require("../models/inlineTasks");
|
|
10
|
-
const validationSchemaStorage_1 = require("../validationSchemaStorage");
|
|
11
|
-
const zod_1 = require("zod");
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated
|
|
14
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks
|
|
15
|
-
* @category Services
|
|
16
|
-
*/
|
|
17
|
-
class InlineTasksService extends CommonHttpService_1.CommonHttpService {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
/**
|
|
21
|
-
* Deprecated, use [Confluence's v2
|
|
22
|
-
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
23
|
-
*
|
|
24
|
-
* Returns inline task based on the global ID.
|
|
25
|
-
*
|
|
26
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
27
|
-
* Permission to view the content associated with the task.
|
|
28
|
-
*
|
|
29
|
-
* @deprecated
|
|
30
|
-
* @returns Returned if the inline task was found given the global ID
|
|
31
|
-
* @path GET `/wiki/rest/api/inlinetasks/{inlineTaskId}`
|
|
32
|
-
* @scopes-current read:inlinetask:confluence
|
|
33
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks#api-wiki-rest-api-inlinetasks-inlinetaskid-get
|
|
34
|
-
* @param params
|
|
35
|
-
*/
|
|
36
|
-
this.getTaskById = ({ inlineTaskId }) => {
|
|
37
|
-
return this.getClientInstance().request({
|
|
38
|
-
path: "/wiki/rest/api/inlinetasks/{inlineTaskId}",
|
|
39
|
-
method: "GET",
|
|
40
|
-
pathParams: {
|
|
41
|
-
inlineTaskId
|
|
42
|
-
}
|
|
43
|
-
}).then(this.getClientInstance().responseHandler({
|
|
44
|
-
200: {
|
|
45
|
-
"application/json": "json"
|
|
46
|
-
}
|
|
47
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("InlineTasksService.getTaskById.response"))).then(commonHttpClient.getBody);
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Deprecated, use [Confluence's v2
|
|
51
|
-
* API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).
|
|
52
|
-
*
|
|
53
|
-
* Returns inline tasks based on the search query.
|
|
54
|
-
*
|
|
55
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
56
|
-
* Permission to access the Confluence site ('Can use' global permission). Only
|
|
57
|
-
* tasks
|
|
58
|
-
* in contents that the user has permission to view are returned.
|
|
59
|
-
*
|
|
60
|
-
* @deprecated
|
|
61
|
-
* @returns Returned if the query fetches zero or more results.
|
|
62
|
-
* @path GET `/wiki/rest/api/inlinetasks/search`
|
|
63
|
-
* @scopes-current read:confluence-content.all
|
|
64
|
-
* @scopes-beta read:inlinetask:confluence
|
|
65
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks#api-wiki-rest-api-inlinetasks-search-get
|
|
66
|
-
* @param params
|
|
67
|
-
*/
|
|
68
|
-
this.searchTasks = ({ start, limit, spaceKey, pageId, assignee, creator, completedUser, duedateFrom, duedateTo, createdateFrom, createdateTo, completedateFrom, completedateTo, status } = {}) => {
|
|
69
|
-
return this.getClientInstance().request({
|
|
70
|
-
path: "/wiki/rest/api/inlinetasks/search",
|
|
71
|
-
method: "GET",
|
|
72
|
-
query: {
|
|
73
|
-
start,
|
|
74
|
-
limit,
|
|
75
|
-
spaceKey,
|
|
76
|
-
pageId,
|
|
77
|
-
assignee,
|
|
78
|
-
creator,
|
|
79
|
-
completedUser,
|
|
80
|
-
duedateFrom,
|
|
81
|
-
duedateTo,
|
|
82
|
-
createdateFrom,
|
|
83
|
-
createdateTo,
|
|
84
|
-
completedateFrom,
|
|
85
|
-
completedateTo,
|
|
86
|
-
status
|
|
87
|
-
}
|
|
88
|
-
}).then(this.getClientInstance().responseHandler({
|
|
89
|
-
200: {
|
|
90
|
-
"application/json": "json"
|
|
91
|
-
}
|
|
92
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("InlineTasksService.searchTasks.response"))).then(commonHttpClient.getBody);
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Updates an inline tasks status given its global ID
|
|
96
|
-
*
|
|
97
|
-
* **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
|
|
98
|
-
* Permission to update the content associated with the task.
|
|
99
|
-
*
|
|
100
|
-
* @deprecated
|
|
101
|
-
* @returns Returned if the inline task was successfully updated.
|
|
102
|
-
* @path PUT `/wiki/rest/api/inlinetasks/{inlineTaskId}`
|
|
103
|
-
* @scopes-current read:inlinetask:confluence, write:inlinetask:confluence
|
|
104
|
-
* @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-inline-tasks#api-wiki-rest-api-inlinetasks-inlinetaskid-put
|
|
105
|
-
* @param params
|
|
106
|
-
*/
|
|
107
|
-
this.updateTaskById = ({ inlineTaskId, taskStatusUpdate }) => {
|
|
108
|
-
return this.getClientInstance().request({
|
|
109
|
-
path: "/wiki/rest/api/inlinetasks/{inlineTaskId}",
|
|
110
|
-
method: "PUT",
|
|
111
|
-
pathParams: {
|
|
112
|
-
inlineTaskId
|
|
113
|
-
},
|
|
114
|
-
headers: {
|
|
115
|
-
"Content-Type": "application/json"
|
|
116
|
-
},
|
|
117
|
-
body: taskStatusUpdate
|
|
118
|
-
}).then(this.getClientInstance().responseHandler({
|
|
119
|
-
200: {
|
|
120
|
-
"application/json": "json"
|
|
121
|
-
}
|
|
122
|
-
})).then(commonHttpClient.castResponse()).then(this.getClientInstance().validation(validationSchemaStorage_1.validationSchemaStorage.validator("InlineTasksService.updateTaskById.response"))).then(commonHttpClient.getBody);
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
static initialize() {
|
|
126
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("InlineTasksService.getTaskById.response", zod_1.z.object({
|
|
127
|
-
status: zod_1.z.literal(200),
|
|
128
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
129
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("TaskV1")
|
|
130
|
-
}).describe("InlineTasksService.getTaskById.response"));
|
|
131
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("InlineTasksService.updateTaskById.response", zod_1.z.object({
|
|
132
|
-
status: zod_1.z.literal(200),
|
|
133
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
134
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("TaskV1")
|
|
135
|
-
}).describe("InlineTasksService.updateTaskById.response"));
|
|
136
|
-
validationSchemaStorage_1.validationSchemaStorage.registerExtensible("InlineTasksService.searchTasks.response", zod_1.z.object({
|
|
137
|
-
status: zod_1.z.literal(200),
|
|
138
|
-
mediaType: zod_1.z.literal("application/json"),
|
|
139
|
-
body: validationSchemaStorage_1.validationSchemaStorage.lazy("TaskPageResponse")
|
|
140
|
-
}).describe("InlineTasksService.searchTasks.response"));
|
|
141
|
-
validationSchemaStorage_1.validationSchemaStorage.registerOnce([inlineTasks_1.registerInlineTasksValidationSchemas]);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
exports.InlineTasksService = InlineTasksService;
|
|
145
|
-
//# sourceMappingURL=InlineTasksService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InlineTasksService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/InlineTasksService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,uDAAwI;AACxI,wEAAqE;AACrE,6BAAwB;AACxB;;;;GAIG;AACH,MAAa,kBAAmB,SAAQ,qCAAiB;IAAzD;;QACE;;;;;;;;;;;;;;;WAeG;QACH,gBAAW,GAAG,CAAC,EACb,YAAY,EAIb,EAAmB,EAAE;YACpB,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC;gBAC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