confluence.js 1.4.1 → 1.5.2

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +3 -3
  3. package/out/api/contentAttachments.d.ts +17 -176
  4. package/out/api/contentAttachments.js +46 -4
  5. package/out/api/contentAttachments.js.map +1 -1
  6. package/out/api/models/attachment.d.ts +30 -0
  7. package/out/api/models/attachment.js +3 -0
  8. package/out/api/models/attachment.js.map +1 -0
  9. package/out/api/models/attachmentContainer.d.ts +27 -0
  10. package/out/api/models/attachmentContainer.js +3 -0
  11. package/out/api/models/attachmentContainer.js.map +1 -0
  12. package/out/api/models/attachmentMetadata.d.ts +20 -0
  13. package/out/api/models/attachmentMetadata.js +3 -0
  14. package/out/api/models/attachmentMetadata.js.map +1 -0
  15. package/out/api/models/attachmentUpdate.d.ts +1 -0
  16. package/out/api/models/contentArray.d.ts +4 -4
  17. package/out/api/models/createdAttachment.d.ts +7 -0
  18. package/out/api/models/createdAttachment.js +3 -0
  19. package/out/api/models/createdAttachment.js.map +1 -0
  20. package/out/api/models/genericLinks.d.ts +11 -1
  21. package/out/api/models/index.d.ts +4 -0
  22. package/out/api/models/index.js +4 -0
  23. package/out/api/models/index.js.map +1 -1
  24. package/out/api/parameters/createAttachments.d.ts +13 -2
  25. package/out/api/parameters/createOrUpdateAttachments.d.ts +4 -2
  26. package/out/api/parameters/getAttachments.d.ts +1 -1
  27. package/out/api/parameters/getAttachments.js.map +1 -1
  28. package/out/api/parameters/updateAttachmentData.d.ts +4 -2
  29. package/out/api/parameters/updateAttachmentProperties.d.ts +45 -2
  30. package/out/clients/baseClient.js +3 -2
  31. package/out/clients/baseClient.js.map +1 -1
  32. package/out/config.d.ts +2 -0
  33. package/out/paramSerializer.js +1 -1
  34. package/out/paramSerializer.js.map +1 -1
  35. package/out/server/content.js +8 -0
  36. package/out/server/content.js.map +1 -1
  37. package/out/server/parameters/updateAttachmentData.d.ts +8 -2
  38. package/package.json +19 -17
  39. package/src/api/contentAttachments.ts +85 -197
  40. package/src/api/models/attachment.ts +31 -0
  41. package/src/api/models/attachmentContainer.ts +28 -0
  42. package/src/api/models/attachmentMetadata.ts +21 -0
  43. package/src/api/models/attachmentUpdate.ts +1 -0
  44. package/src/api/models/contentArray.ts +4 -4
  45. package/src/api/models/createdAttachment.ts +8 -0
  46. package/src/api/models/genericLinks.ts +12 -1
  47. package/src/api/models/index.ts +4 -0
  48. package/src/api/parameters/createAttachments.ts +12 -2
  49. package/src/api/parameters/createOrUpdateAttachments.ts +5 -2
  50. package/src/api/parameters/getAttachments.ts +71 -1
  51. package/src/api/parameters/updateAttachmentData.ts +5 -2
  52. package/src/api/parameters/updateAttachmentProperties.ts +59 -2
  53. package/src/clients/baseClient.ts +4 -2
  54. package/src/config.ts +2 -0
  55. package/src/paramSerializer.ts +1 -1
  56. package/src/server/content.ts +8 -0
  57. package/src/server/parameters/updateAttachmentData.ts +7 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.5.2
4
+
5
+ `multipart/form-data` added to some required endpoints. Thank you, [Gonzalo Garcia](https://github.com/ggarcia24) for reporting issue and creating PR :)
6
+
7
+ ### 1.5.1
8
+
9
+ Dependencies updated
10
+
11
+ ### 1.5.0
12
+
13
+ `ContentAttachments` fixes for all attachments. ([#23](https://github.com/MrRefactoring/confluence.js/issues/23) Thanks [Anton](https://github.com/tester22) for catching)
14
+
3
15
  ### 1.4.1
4
16
 
5
17
  - Dependencies updated.
package/README.md CHANGED
@@ -20,9 +20,9 @@ Usability, consistency, and performance are key focuses of confluence.js, and it
20
20
  - [Installation](#installation)
21
21
  - [Usage](#usage)
22
22
  - [Authentication](#authentication)
23
- - [Basic](#basic-authenticationhttpsdeveloperatlassiancomcloudconfluencebasic-auth-for-rest-apis)
24
- - [OAuth 2.0](#oauth-20httpsdeveloperatlassiancomcloudconfluenceoauth-2-3lo-apps)
25
- - [JWT](#jwthttpsdeveloperatlassiancomcloudconfluenceunderstanding-jwt)
23
+ - [Basic](#basic-authentication)
24
+ - [OAuth 2.0](#oauth-20)
25
+ - [JWT](#jwt)
26
26
  - [Personal access token](#personal-access-token)
27
27
  - [Your first request and using algorithm](#your-first-request-and-using-algorithm)
28
28
  - [Decreasing Webpack bundle size](#decreasing-webpack-bundle-size)
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import * as Models from './models';
2
3
  import * as Parameters from './parameters';
3
4
  import { Callback } from '../callback';
@@ -13,7 +14,7 @@ export declare class ContentAttachments {
13
14
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. If the
14
15
  * content is a blog post, 'View' permission for the space is required.
15
16
  */
16
- getAttachments<T = Models.ContentArray>(parameters: Parameters.GetAttachments, callback: Callback<T>): Promise<void>;
17
+ getAttachments<T = Models.ContentArray<Models.Attachment>>(parameters: Parameters.GetAttachments, callback: Callback<T>): Promise<void>;
17
18
  /**
18
19
  * Returns the attachments for a piece of content.
19
20
  *
@@ -22,229 +23,69 @@ export declare class ContentAttachments {
22
23
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. If the
23
24
  * content is a blog post, 'View' permission for the space is required.
24
25
  */
25
- getAttachments<T = Models.ContentArray>(parameters: Parameters.GetAttachments, callback?: never): Promise<T>;
26
+ getAttachments<T = Models.ContentArray<Models.Attachment>>(parameters: Parameters.GetAttachments, callback?: never): Promise<T>;
26
27
  /**
27
28
  * Adds an attachment to a piece of content. This method only adds a new attachment. If you want to update an existing
28
- * attachment, use [Create or update attachments](#api-content-id-child-attachment-put).
29
- *
30
- * Note, you must set a `X-Atlassian-Token: nocheck` header on the request for this method, otherwise it will be
31
- * blocked. This protects against XSRF attacks, which is necessary as this method accepts multipart/form-data.
32
- *
33
- * The media type 'multipart/form-data' is defined in [RFC 7578](https://www.ietf.org/rfc/rfc7578.txt). Most client
34
- * libraries have classes that make it easier to implement multipart posts, like the
35
- * [MultipartEntityBuilder](https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/) Java class
36
- * provided by Apache HTTP Components.
37
- *
38
- * Note, according to [RFC 7578](https://tools.ietf.org/html/rfc7578#section-4.5), in the case where the form data is
39
- * text, the charset parameter for the "text/plain" Content-Type may be used to indicate the character encoding used
40
- * in that part. In the case of this API endpoint, the `comment` body parameter should be sent with `type=text/plain`
41
- * and `charset=utf-8` values. This will force the charset to be UTF-8.
42
- *
43
- * Example: This curl command attaches a file ('example.txt') to a container (id='123') with a comment and `minorEdits`=true.
44
- *
45
- * ```bash
46
- * curl -D- \
47
- * -u admin:admin \
48
- * -X POST \
49
- * -H 'X-Atlassian-Token: nocheck' \
50
- * -F 'file=@"example.txt"' \
51
- * -F 'minorEdit="true"' \
52
- * -F 'comment="Example attachment comment"; type=text/plain; charset=utf-8' \
53
- * http://myhost/rest/api/content/123/child/attachment
54
- * ```
29
+ * attachment, use [Create or update attachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-put).
55
30
  *
56
31
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
57
32
  */
58
- createAttachments<T = Models.ContentArray>(parameters: Parameters.CreateAttachments, callback: Callback<T>): Promise<void>;
33
+ createAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(parameters: Parameters.CreateAttachments, callback: Callback<T>): Promise<void>;
59
34
  /**
60
35
  * Adds an attachment to a piece of content. This method only adds a new attachment. If you want to update an existing
61
- * attachment, use [Create or update attachments](#api-content-id-child-attachment-put).
62
- *
63
- * Note, you must set a `X-Atlassian-Token: nocheck` header on the request for this method, otherwise it will be
64
- * blocked. This protects against XSRF attacks, which is necessary as this method accepts multipart/form-data.
65
- *
66
- * The media type 'multipart/form-data' is defined in [RFC 7578](https://www.ietf.org/rfc/rfc7578.txt). Most client
67
- * libraries have classes that make it easier to implement multipart posts, like the
68
- * [MultipartEntityBuilder](https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/) Java class
69
- * provided by Apache HTTP Components.
70
- *
71
- * Note, according to [RFC 7578](https://tools.ietf.org/html/rfc7578#section-4.5), in the case where the form data is
72
- * text, the charset parameter for the "text/plain" Content-Type may be used to indicate the character encoding used
73
- * in that part. In the case of this API endpoint, the `comment` body parameter should be sent with `type=text/plain`
74
- * and `charset=utf-8` values. This will force the charset to be UTF-8.
75
- *
76
- * Example: This curl command attaches a file ('example.txt') to a container (id='123') with a comment and `minorEdits`=true.
77
- *
78
- * ```bash
79
- * curl -D- \
80
- * -u admin:admin \
81
- * -X POST \
82
- * -H 'X-Atlassian-Token: nocheck' \
83
- * -F 'file=@"example.txt"' \
84
- * -F 'minorEdit="true"' \
85
- * -F 'comment="Example attachment comment"; type=text/plain; charset=utf-8' \
86
- * http://myhost/rest/api/content/123/child/attachment
87
- * ```
36
+ * attachment, use [Create or update attachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-put).
88
37
  *
89
38
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
90
39
  */
91
- createAttachments<T = Models.ContentArray>(parameters: Parameters.CreateAttachments, callback?: never): Promise<T>;
40
+ createAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(parameters: Parameters.CreateAttachments, callback?: never): Promise<T>;
92
41
  /**
93
42
  * Adds an attachment to a piece of content. If the attachment already exists for the content, then the attachment is
94
43
  * updated (i.e. a new version of the attachment is created).
95
44
  *
96
- * Note, you must set a `X-Atlassian-Token: nocheck` header on the request for this method, otherwise it will be
97
- * blocked. This protects against XSRF attacks, which is necessary as this method accepts multipart/form-data.
98
- *
99
- * The media type 'multipart/form-data' is defined in [RFC 7578](https://www.ietf.org/rfc/rfc7578.txt). Most client
100
- * libraries have classes that make it easier to implement multipart posts, like the
101
- * [MultipartEntityBuilder](https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/) Java class
102
- * provided by Apache HTTP Components.
103
- *
104
- * Note, according to [RFC 7578](https://tools.ietf.org/html/rfc7578#section-4.5), in the case where the form data is
105
- * text, the charset parameter for the "text/plain" Content-Type may be used to indicate the character encoding used
106
- * in that part. In the case of this API endpoint, the `comment` body parameter should be sent with `type=text/plain`
107
- * and `charset=utf-8` values. This will force the charset to be UTF-8.
108
- *
109
- * Example: This curl command attaches a file ('example.txt') to a piece of content (id='123') with a comment and
110
- * `minorEdits`=true. If the 'example.txt' file already exists, it will update it with a new version of the attachment.
111
- *
112
- * ```bash
113
- * curl -D- \
114
- * -u admin:admin \
115
- * -X PUT \
116
- * -H 'X-Atlassian-Token: nocheck' \
117
- * -F 'file=@"example.txt"' \
118
- * -F 'minorEdit="true"' \
119
- * -F 'comment="Example attachment comment"; type=text/plain; charset=utf-8' \
120
- * http://myhost/rest/api/content/123/child/attachment
121
- * ```
122
- *
123
45
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
124
46
  */
125
- createOrUpdateAttachments<T = Models.ContentArray>(parameters: Parameters.CreateOrUpdateAttachments, callback: Callback<T>): Promise<void>;
47
+ createOrUpdateAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(parameters: Parameters.CreateOrUpdateAttachments, callback: Callback<T>): Promise<void>;
126
48
  /**
127
49
  * Adds an attachment to a piece of content. If the attachment already exists for the content, then the attachment is
128
50
  * updated (i.e. a new version of the attachment is created).
129
51
  *
130
- * Note, you must set a `X-Atlassian-Token: nocheck` header on the request for this method, otherwise it will be
131
- * blocked. This protects against XSRF attacks, which is necessary as this method accepts multipart/form-data.
132
- *
133
- * The media type 'multipart/form-data' is defined in [RFC 7578](https://www.ietf.org/rfc/rfc7578.txt). Most client
134
- * libraries have classes that make it easier to implement multipart posts, like the
135
- * [MultipartEntityBuilder](https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/) Java class
136
- * provided by Apache HTTP Components.
137
- *
138
- * Note, according to [RFC 7578](https://tools.ietf.org/html/rfc7578#section-4.5), in the case where the form data is
139
- * text, the charset parameter for the "text/plain" Content-Type may be used to indicate the character encoding used
140
- * in that part. In the case of this API endpoint, the `comment` body parameter should be sent with `type=text/plain`
141
- * and `charset=utf-8` values. This will force the charset to be UTF-8.
142
- *
143
- * Example: This curl command attaches a file ('example.txt') to a piece of content (id='123') with a comment and
144
- * `minorEdits`=true. If the 'example.txt' file already exists, it will update it with a new version of the attachment.
145
- *
146
- * ```bash
147
- * curl -D- \
148
- * -u admin:admin \
149
- * -X PUT \
150
- * -H 'X-Atlassian-Token: nocheck' \
151
- * -F 'file=@"example.txt"' \
152
- * -F 'minorEdit="true"' \
153
- * -F 'comment="Example attachment comment"; type=text/plain; charset=utf-8' \
154
- * http://myhost/rest/api/content/123/child/attachment
155
- * ```
156
- *
157
52
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
158
53
  */
159
- createOrUpdateAttachments<T = Models.ContentArray>(parameters: Parameters.CreateOrUpdateAttachments, callback?: never): Promise<T>;
54
+ createOrUpdateAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(parameters: Parameters.CreateOrUpdateAttachments, callback?: never): Promise<T>;
160
55
  /**
161
56
  * Updates the attachment properties, i.e. the non-binary data of an attachment like the filename, media-type,
162
57
  * comment, and parent container.
163
58
  *
164
59
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
165
60
  */
166
- updateAttachmentProperties<T = Models.Content>(parameters: Parameters.UpdateAttachmentProperties, callback: Callback<T>): Promise<void>;
61
+ updateAttachmentProperties<T = Models.CreatedAttachment>(parameters: Parameters.UpdateAttachmentProperties, callback: Callback<T>): Promise<void>;
167
62
  /**
168
63
  * Updates the attachment properties, i.e. the non-binary data of an attachment like the filename, media-type,
169
64
  * comment, and parent container.
170
65
  *
171
66
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
172
67
  */
173
- updateAttachmentProperties<T = Models.Content>(parameters: Parameters.UpdateAttachmentProperties, callback?: never): Promise<T>;
68
+ updateAttachmentProperties<T = Models.CreatedAttachment>(parameters: Parameters.UpdateAttachmentProperties, callback?: never): Promise<T>;
174
69
  /**
175
70
  * Updates the binary data of an attachment, given the attachment ID, and optionally the comment and the minor edit field.
176
71
  *
177
- * This method is essentially the same as [Create or update attachments](#api-content-id-child-attachment-put), except
72
+ * This method is essentially the same as [Create or update attachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-put), except
178
73
  * that it matches the attachment ID rather than the name.
179
74
  *
180
- * Note, you must set a `X-Atlassian-Token: nocheck` header on the request for this method, otherwise it will be
181
- * blocked. This protects against XSRF attacks, which is necessary as this method accepts multipart/form-data.
182
- *
183
- * The media type 'multipart/form-data' is defined in [RFC 7578](https://www.ietf.org/rfc/rfc7578.txt). Most client
184
- * libraries have classes that make it easier to implement multipart posts, like the
185
- * [MultipartEntityBuilder](https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/) Java class
186
- * provided by Apache HTTP Components.
187
- *
188
- * Note, according to [RFC 7578](https://tools.ietf.org/html/rfc7578#section-4.5), in the case where the form data is
189
- * text, the charset parameter for the "text/plain" Content-Type may be used to indicate the character encoding used
190
- * in that part. In the case of this API endpoint, the `comment` body parameter should be sent with `type=text/plain`
191
- * and `charset=utf-8` values. This will force the charset to be UTF-8.
192
- *
193
- * Example: This curl command updates an attachment (id='att456') that is attached to a piece of content (id='123')
194
- * with a comment and `minorEdits`=true.
195
- *
196
- * ```bash
197
- * curl -D- \
198
- * -u admin:admin \
199
- * -X POST \
200
- * -H 'X-Atlassian-Token: nocheck' \
201
- * -F 'file=@"example.txt"' \
202
- * -F 'minorEdit="true"' \
203
- * -F 'comment="Example attachment comment"; type=text/plain; charset=utf-8' \
204
- * http://myhost/rest/api/content/123/child/attachment/att456/data
205
- * ```
206
- *
207
75
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
208
76
  */
209
- updateAttachmentData<T = Models.Content>(parameters: Parameters.UpdateAttachmentData, callback: Callback<T>): Promise<void>;
77
+ updateAttachmentData<T = Models.CreatedAttachment>(parameters: Parameters.UpdateAttachmentData, callback: Callback<T>): Promise<void>;
210
78
  /**
211
79
  * Updates the binary data of an attachment, given the attachment ID, and optionally the comment and the minor edit field.
212
80
  *
213
- * This method is essentially the same as [Create or update attachments](#api-content-id-child-attachment-put), except
81
+ * This method is essentially the same as [Create or update attachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-put), except
214
82
  * that it matches the attachment ID rather than the name.
215
83
  *
216
- * Note, you must set a `X-Atlassian-Token: nocheck` header on the request for this method, otherwise it will be
217
- * blocked. This protects against XSRF attacks, which is necessary as this method accepts multipart/form-data.
218
- *
219
- * The media type 'multipart/form-data' is defined in [RFC 7578](https://www.ietf.org/rfc/rfc7578.txt). Most client
220
- * libraries have classes that make it easier to implement multipart posts, like the
221
- * [MultipartEntityBuilder](https://hc.apache.org/httpcomponents-client-5.1.x/current/httpclient5/apidocs/) Java class
222
- * provided by Apache HTTP Components.
223
- *
224
- * Note, according to [RFC 7578](https://tools.ietf.org/html/rfc7578#section-4.5), in the case where the form data is
225
- * text, the charset parameter for the "text/plain" Content-Type may be used to indicate the character encoding used
226
- * in that part. In the case of this API endpoint, the `comment` body parameter should be sent with `type=text/plain`
227
- * and `charset=utf-8` values. This will force the charset to be UTF-8.
228
- *
229
- * Example: This curl command updates an attachment (id='att456') that is attached to a piece of content (id='123')
230
- * with a comment and `minorEdits`=true.
231
- *
232
- * ```bash
233
- * curl -D- \
234
- * -u admin:admin \
235
- * -X POST \
236
- * -H 'X-Atlassian-Token: nocheck' \
237
- * -F 'file=@"example.txt"' \
238
- * -F 'minorEdit="true"' \
239
- * -F 'comment="Example attachment comment"; type=text/plain; charset=utf-8' \
240
- * http://myhost/rest/api/content/123/child/attachment/att456/data
241
- * ```
242
- *
243
84
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
244
85
  */
245
- updateAttachmentData<T = Models.Content>(parameters: Parameters.UpdateAttachmentData, callback?: never): Promise<T>;
86
+ updateAttachmentData<T = Models.CreatedAttachment>(parameters: Parameters.UpdateAttachmentData, callback?: never): Promise<T>;
246
87
  /** Redirects the client to a URL that serves an attachment's binary data. */
247
- downloadAttachment<T = ArrayBuffer>(parameters: Parameters.DownloadAttachment, callback: Callback<T>): Promise<void>;
88
+ downloadAttachment<T = Buffer>(parameters: Parameters.DownloadAttachment, callback: Callback<T>): Promise<void>;
248
89
  /** Redirects the client to a URL that serves an attachment's binary data. */
249
- downloadAttachment<T = ArrayBuffer>(parameters: Parameters.DownloadAttachment, callback?: never): Promise<T>;
90
+ downloadAttachment<T = Buffer>(parameters: Parameters.DownloadAttachment, callback?: never): Promise<T>;
250
91
  }
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ContentAttachments = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const FormData = require("form-data");
5
6
  class ContentAttachments {
6
7
  constructor(client) {
7
8
  this.client = client;
@@ -23,47 +24,88 @@ class ContentAttachments {
23
24
  });
24
25
  }
25
26
  createAttachments(parameters, callback) {
27
+ var _a;
26
28
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
29
+ const formData = new FormData();
30
+ const attachments = Array.isArray(parameters.attachments) ? parameters.attachments : [parameters.attachments];
31
+ attachments.forEach(attachment => {
32
+ formData.append('minorEdit', attachment.minorEdit.toString(), 'minorEdit');
33
+ formData.append('file', attachment.file, {
34
+ filename: attachment.filename,
35
+ contentType: attachment.contentType,
36
+ });
37
+ if (attachment.comment) {
38
+ formData.append('comment', attachment.comment, 'comment');
39
+ }
40
+ });
27
41
  const config = {
28
42
  url: `/api/content/${parameters.id}/child/attachment`,
29
43
  method: 'POST',
44
+ headers: Object.assign({ 'X-Atlassian-Token': 'no-check', 'Content-Type': 'multipart/form-data' }, (_a = formData.getHeaders) === null || _a === void 0 ? void 0 : _a.call(formData)),
30
45
  params: {
31
46
  status: parameters.status,
32
47
  },
33
- data: Object.assign(Object.assign({}, parameters), { id: undefined, status: undefined }),
48
+ data: formData,
34
49
  };
35
50
  return this.client.sendRequest(config, callback);
36
51
  });
37
52
  }
38
53
  createOrUpdateAttachments(parameters, callback) {
54
+ var _a;
39
55
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
56
+ const formData = new FormData();
57
+ const attachments = Array.isArray(parameters.attachments) ? parameters.attachments : [parameters.attachments];
58
+ attachments.forEach(attachment => {
59
+ formData.append('minorEdit', attachment.minorEdit.toString(), 'minorEdit');
60
+ formData.append('file', attachment.file, {
61
+ filename: attachment.filename,
62
+ contentType: attachment.contentType,
63
+ });
64
+ if (attachment.comment) {
65
+ formData.append('comment', attachment.comment, 'comment');
66
+ }
67
+ });
40
68
  const config = {
41
69
  url: `/api/content/${parameters.id}/child/attachment`,
42
70
  method: 'PUT',
71
+ headers: Object.assign({ 'X-Atlassian-Token': 'no-check', 'Content-Type': 'multipart/form-data' }, (_a = formData.getHeaders) === null || _a === void 0 ? void 0 : _a.call(formData)),
43
72
  params: {
44
73
  status: parameters.status,
45
74
  },
46
- data: Object.assign(Object.assign({}, parameters), { id: undefined, status: undefined }),
75
+ data: formData,
47
76
  };
48
77
  return this.client.sendRequest(config, callback);
49
78
  });
50
79
  }
51
80
  updateAttachmentProperties(parameters, callback) {
81
+ var _a;
52
82
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
53
83
  const config = {
54
84
  url: `/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}`,
55
85
  method: 'PUT',
56
- data: parameters.body,
86
+ data: (_a = parameters.update) !== null && _a !== void 0 ? _a : parameters.body,
57
87
  };
58
88
  return this.client.sendRequest(config, callback);
59
89
  });
60
90
  }
61
91
  updateAttachmentData(parameters, callback) {
92
+ var _a;
62
93
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
94
+ const { attachment } = parameters;
95
+ const formData = new FormData();
96
+ formData.append('minorEdit', attachment.minorEdit.toString(), 'minorEdit');
97
+ formData.append('file', attachment.file, {
98
+ filename: attachment.filename,
99
+ contentType: attachment.contentType,
100
+ });
101
+ if (attachment.comment) {
102
+ formData.append('comment', attachment.comment, 'comment');
103
+ }
63
104
  const config = {
64
105
  url: `/api/content/${parameters.id}/child/attachment/${parameters.attachmentId}/data`,
65
106
  method: 'POST',
66
- data: Object.assign(Object.assign({}, parameters), { id: undefined, attachmentId: undefined }),
107
+ headers: Object.assign({ 'X-Atlassian-Token': 'no-check', 'Content-Type': 'multipart/form-data' }, (_a = formData.getHeaders) === null || _a === void 0 ? void 0 : _a.call(formData)),
108
+ data: formData,
67
109
  };
68
110
  return this.client.sendRequest(config, callback);
69
111
  });
@@ -1 +1 @@
1
- {"version":3,"file":"contentAttachments.js","sourceRoot":"","sources":["../../src/api/contentAttachments.ts"],"names":[],"mappings":";;;;AAMA,MAAa,kBAAkB;IAC7B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAuBhC,cAAc,CAClB,UAAqC,EACrC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,mBAAmB;gBACrD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;oBAC/B,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IA0EK,iBAAiB,CACrB,UAAwC,EACxC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,G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AY,EAAE,aAAa;gBAC3B,MAAM,EAAE;oBACN,OAAO,EAAE,UAAU,CAAC,OAAO;iBAC5B;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AA1QD,gDA0QC"}
@@ -0,0 +1,30 @@
1
+ import { AttachmentMetadata } from './attachmentMetadata';
2
+ import { GenericLinks } from './genericLinks';
3
+ export interface Attachment {
4
+ id: string;
5
+ type: 'attachment' | string;
6
+ status: 'current' | string;
7
+ title: string;
8
+ macroRenderedOutput: any;
9
+ metadata: AttachmentMetadata;
10
+ extensions: {
11
+ mediaType: string;
12
+ fileSize: number;
13
+ comment: string;
14
+ mediaTypeDescription: string;
15
+ fileId: string;
16
+ };
17
+ _expandable: {
18
+ childTypes: string;
19
+ operations: string;
20
+ schedulePublishDate: string;
21
+ children: string;
22
+ restrictions: string;
23
+ history: string;
24
+ ancestors: string;
25
+ body: string;
26
+ descendants: string;
27
+ space: string;
28
+ };
29
+ _links: GenericLinks;
30
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=attachment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment.js","sourceRoot":"","sources":["../../../src/api/models/attachment.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import { GenericLinks } from './genericLinks';
2
+ export interface AttachmentContainer {
3
+ id: string;
4
+ type: 'page' | 'string';
5
+ status: 'current' | string;
6
+ title: string;
7
+ macroRenderedOutput: any;
8
+ extensions: {
9
+ position: number;
10
+ };
11
+ _expandable: {
12
+ container: string;
13
+ metadata: string;
14
+ restrictions: string;
15
+ history: string;
16
+ body: string;
17
+ version: string;
18
+ descendants: string;
19
+ space: string;
20
+ childTypes: string;
21
+ operations: string;
22
+ schedulePublishDate: string;
23
+ children: string;
24
+ ancestors: string;
25
+ };
26
+ _links: GenericLinks;
27
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=attachmentContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachmentContainer.js","sourceRoot":"","sources":["../../../src/api/models/attachmentContainer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import { GenericLinks } from './genericLinks';
2
+ export interface AttachmentMetadata {
3
+ comment: string;
4
+ mediaType: string;
5
+ labels: {
6
+ results: string[];
7
+ start: number;
8
+ limit: number;
9
+ size: number;
10
+ _links: GenericLinks;
11
+ };
12
+ _expandable: {
13
+ currentuser: string;
14
+ comments: string;
15
+ simple: string;
16
+ properties: string;
17
+ frontend: string;
18
+ likes: string;
19
+ };
20
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=attachmentMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachmentMetadata.js","sourceRoot":"","sources":["../../../src/api/models/attachmentMetadata.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
+ /** @deprecated will be removed in second major version */
1
2
  export interface AttachmentUpdate {
2
3
  /**
3
4
  * The attachment version. Set this to the current version number of the attachment. Note, the version number only
@@ -1,9 +1,9 @@
1
1
  import { Content } from './content';
2
2
  import { GenericLinks } from './genericLinks';
3
- export interface ContentArray {
4
- results: Content[];
5
- start: number;
6
- limit: number;
3
+ export interface ContentArray<T = Content> {
4
+ results: T[];
5
+ start?: number;
6
+ limit?: number;
7
7
  size: number;
8
8
  _links: GenericLinks;
9
9
  }
@@ -0,0 +1,7 @@
1
+ import { Attachment } from './attachment';
2
+ import { AttachmentContainer } from './attachmentContainer';
3
+ import { Version } from './version';
4
+ export interface CreatedAttachment extends Attachment {
5
+ version: Version;
6
+ container: AttachmentContainer;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=createdAttachment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createdAttachment.js","sourceRoot":"","sources":["../../../src/api/models/createdAttachment.ts"],"names":[],"mappings":""}
@@ -1 +1,11 @@
1
- export declare type GenericLinks = Record<string, any>;
1
+ export declare type GenericLinks = {
2
+ [key: string]: any;
3
+ self: string;
4
+ next?: string;
5
+ tinyui?: string;
6
+ editui?: string;
7
+ webui?: string;
8
+ base?: string;
9
+ context?: string;
10
+ download?: string;
11
+ };
@@ -4,11 +4,14 @@ export * from './accountIdEmailRecordArray';
4
4
  export * from './addContentRestriction';
5
5
  export * from './addContentRestrictionUpdateArray';
6
6
  export * from './affectedObject';
7
+ export * from './attachmentContainer';
7
8
  export * from './attachmentUpdate';
8
9
  export * from './auditRecord';
9
10
  export * from './auditRecordArray';
10
11
  export * from './auditRecordCreate';
11
12
  export * from './appDescriptor';
13
+ export * from './attachment';
14
+ export * from './attachmentMetadata';
12
15
  export * from './blueprintTemplate';
13
16
  export * from './blueprintTemplateArray';
14
17
  export * from './breadcrumb';
@@ -60,6 +63,7 @@ export * from './copyPageRequest';
60
63
  export * from './copyPageRequestDestination';
61
64
  export * from './cQLPersonalDataConvertedQueries';
62
65
  export * from './cQLPersonalDataMigrationRequest';
66
+ export * from './createdAttachment';
63
67
  export * from './deletedSpace';
64
68
  export * from './dynamicModulesErrorMessage';
65
69
  export * from './embeddable';
@@ -7,11 +7,14 @@ tslib_1.__exportStar(require("./accountIdEmailRecordArray"), exports);
7
7
  tslib_1.__exportStar(require("./addContentRestriction"), exports);
8
8
  tslib_1.__exportStar(require("./addContentRestrictionUpdateArray"), exports);
9
9
  tslib_1.__exportStar(require("./affectedObject"), exports);
10
+ tslib_1.__exportStar(require("./attachmentContainer"), exports);
10
11
  tslib_1.__exportStar(require("./attachmentUpdate"), exports);
11
12
  tslib_1.__exportStar(require("./auditRecord"), exports);
12
13
  tslib_1.__exportStar(require("./auditRecordArray"), exports);
13
14
  tslib_1.__exportStar(require("./auditRecordCreate"), exports);
14
15
  tslib_1.__exportStar(require("./appDescriptor"), exports);
16
+ tslib_1.__exportStar(require("./attachment"), exports);
17
+ tslib_1.__exportStar(require("./attachmentMetadata"), exports);
15
18
  tslib_1.__exportStar(require("./blueprintTemplate"), exports);
16
19
  tslib_1.__exportStar(require("./blueprintTemplateArray"), exports);
17
20
  tslib_1.__exportStar(require("./breadcrumb"), exports);
@@ -63,6 +66,7 @@ tslib_1.__exportStar(require("./copyPageRequest"), exports);
63
66
  tslib_1.__exportStar(require("./copyPageRequestDestination"), exports);
64
67
  tslib_1.__exportStar(require("./cQLPersonalDataConvertedQueries"), exports);
65
68
  tslib_1.__exportStar(require("./cQLPersonalDataMigrationRequest"), exports);
69
+ tslib_1.__exportStar(require("./createdAttachment"), exports);
66
70
  tslib_1.__exportStar(require("./deletedSpace"), exports);
67
71
  tslib_1.__exportStar(require("./dynamicModulesErrorMessage"), exports);
68
72
  tslib_1.__exportStar(require("./embeddable"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/models/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,iEAAuC;AACvC,sEAA4C;AAC5C,kEAAwC;AACxC,6EAAmD;AACnD,2DAAiC;AACjC,6DAAmC;AACnC,wDAA8B;AAC9B,6DAAmC;AACnC,8DAAoC;AACpC,0DAAgC;AAChC,8DAAoC;AACpC,mEAAyC;AACzC,uDAA6B;AAC7B,2DAAiC;AACjC,gEAAsC;AACtC,8DAAoC;AACpC,yDAA+B;AAC/B,0DAAgC;AAChC,2DAAiC;AACjC,sDAA4B;AAC5B,iEAAuC;AACvC,6DAAmC;AACnC,oDAA0B;AAC1B,yDAA+B;AAC/B,8DAAoC;AACpC,4DAAkC;AAClC,kEAAwC;AACxC,wDAA8B;AAC9B,8DAAoC;AACpC,qEAA2C;AAC3C,4DAAkC;AAClC,6DAAmC;AACnC,2DAAiC;AACjC,0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C;AAChC,yDAA+B;AAC/B,4DAAkC;AAClC,8DAAoC;AACpC,mEAAyC;AACzC,2EAAiD;AACjD,yDAA+B;AAC/B,kDAAwB;AACxB,uDAA6B;AAC7B,wDAA8B;AAC9B,6DAAmC;AACnC,mEAAyC;AACzC,4DAAkC;AAClC,kEAAwC;AACxC,yEAA+C;AAC/C,mEAAyC;AACzC,8DAAoC;AACpC,+DAAqC;AACrC,0DAAgC;AAChC,+DAAqC;AACrC,gEAAsC;AACtC,qEAA2C;AAC3C,gEAAsC;AACtC,0DAAgC;AAChC,gEAAsC;AACtC,wDAA8B;AAC9B,uDAA6B;AAC7B,4DAAkC;AAClC,2DAAiC;AACjC,mEAAyC;AACzC,6DAAmC;AACnC,iDAAuB;AACvB,6DAAmC;AACnC,6DAAmC;AACnC,kDAAwB;AACxB,uDAA6B;AAC7B,yDAA+B;AAC/B,wDAA8B;AAC9B,qEAA2C;AAC3C,iDAAuB;AACvB,0DAAgC;AAChC,sDAA4B;AAC5B,+DAAqC;AACrC,wDAA8B;AAC9B,0DAAgC;AAChC,sDAA4B;AAC5B,oDAA0B;AAC1B,yDAA+B;AAC/B,2DAAiC;AACjC,kDAAwB;AACxB,uDAA6B;AAC7B,sDAA4B;AAC5B,oEAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/models/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,iEAAuC;AACvC,sEAA4C;AAC5C,kEAAwC;AACxC,6EAAmD;AACnD,2DAAiC;AACjC,gEAAsC;AACtC,6DAAmC;AACnC,wDAA8B;AAC9B,6DAAmC;AACnC,8DAAoC;AACpC,0DAAgC;AAChC,uDAA6B;AAC7B,+DAAqC;AACrC,8DAAoC;AACpC,mEAAyC;AACzC,uDAA6B;AAC7B,2DAAiC;AACjC,gEAAsC;AACtC,8DAAoC;AACpC,yDAA+B;AAC/B,0DAAgC;AAChC,2DAAiC;AACjC,sDAA4B;AAC5B,iEAAuC;AACvC,6DAAmC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