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.
Files changed (163) hide show
  1. package/CHANGELOG.md +22 -3
  2. package/README.md +1 -0
  3. package/out/api/audit.d.ts +24 -12
  4. package/out/api/audit.js.map +1 -1
  5. package/out/api/content.d.ts +18 -12
  6. package/out/api/content.js.map +1 -1
  7. package/out/api/contentAttachments.d.ts +14 -8
  8. package/out/api/contentAttachments.js.map +1 -1
  9. package/out/api/contentBody.d.ts +52 -0
  10. package/out/api/contentBody.js +27 -3
  11. package/out/api/contentBody.js.map +1 -1
  12. package/out/api/contentChildrenAndDescendants.js +2 -1
  13. package/out/api/contentChildrenAndDescendants.js.map +1 -1
  14. package/out/api/contentContentState.d.ts +30 -28
  15. package/out/api/contentContentState.js +2 -0
  16. package/out/api/contentContentState.js.map +1 -1
  17. package/out/api/contentMacroBody.d.ts +72 -2
  18. package/out/api/contentMacroBody.js +29 -0
  19. package/out/api/contentMacroBody.js.map +1 -1
  20. package/out/api/contentRestrictions.d.ts +16 -8
  21. package/out/api/contentRestrictions.js.map +1 -1
  22. package/out/api/contentStates.d.ts +120 -0
  23. package/out/api/contentStates.js +88 -0
  24. package/out/api/contentStates.js.map +1 -0
  25. package/out/api/contentWatches.d.ts +16 -8
  26. package/out/api/contentWatches.js.map +1 -1
  27. package/out/api/dynamicModules.js +1 -0
  28. package/out/api/dynamicModules.js.map +1 -1
  29. package/out/api/experimental.d.ts +2 -2
  30. package/out/api/index.d.ts +1 -0
  31. package/out/api/index.js +1 -0
  32. package/out/api/index.js.map +1 -1
  33. package/out/api/models/asyncContentBody.d.ts +30 -0
  34. package/out/api/models/asyncContentBody.js +3 -0
  35. package/out/api/models/asyncContentBody.js.map +1 -0
  36. package/out/api/models/asyncId.d.ts +3 -0
  37. package/out/api/models/asyncId.js +3 -0
  38. package/out/api/models/asyncId.js.map +1 -0
  39. package/out/api/models/contentBodyCreate.d.ts +1 -0
  40. package/out/api/models/contentStateResponse.d.ts +7 -0
  41. package/out/api/models/contentStateResponse.js +3 -0
  42. package/out/api/models/contentStateResponse.js.map +1 -0
  43. package/out/api/models/contentStateRestInput.d.ts +11 -0
  44. package/out/api/models/contentStateRestInput.js +3 -0
  45. package/out/api/models/contentStateRestInput.js.map +1 -0
  46. package/out/api/models/index.d.ts +16 -12
  47. package/out/api/models/index.js +16 -12
  48. package/out/api/models/index.js.map +1 -1
  49. package/out/api/parameters/asyncConvertContentBodyRequest.d.ts +38 -0
  50. package/out/api/parameters/asyncConvertContentBodyRequest.js +3 -0
  51. package/out/api/parameters/asyncConvertContentBodyRequest.js.map +1 -0
  52. package/out/api/parameters/asyncConvertContentBodyResponse.d.ts +4 -0
  53. package/out/api/parameters/asyncConvertContentBodyResponse.js +3 -0
  54. package/out/api/parameters/asyncConvertContentBodyResponse.js.map +1 -0
  55. package/out/api/parameters/convertContentBody.d.ts +16 -2
  56. package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.d.ts +46 -0
  57. package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.js +3 -0
  58. package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.js.map +1 -0
  59. package/out/api/parameters/getAndConvertMacroBodyByMacroId.d.ts +34 -0
  60. package/out/api/parameters/getAndConvertMacroBodyByMacroId.js +3 -0
  61. package/out/api/parameters/getAndConvertMacroBodyByMacroId.js.map +1 -0
  62. package/out/api/parameters/getAvailableContentStates.d.ts +4 -2
  63. package/out/api/parameters/getContentState.d.ts +8 -4
  64. package/out/api/parameters/getSpaceContentStates.d.ts +4 -0
  65. package/out/api/parameters/getSpaceContentStates.js +3 -0
  66. package/out/api/parameters/getSpaceContentStates.js.map +1 -0
  67. package/out/api/parameters/getUser.d.ts +6 -4
  68. package/out/api/parameters/index.d.ts +5 -0
  69. package/out/api/parameters/index.js +5 -0
  70. package/out/api/parameters/index.js.map +1 -1
  71. package/out/api/parameters/movePage.d.ts +9 -5
  72. package/out/api/parameters/removeContentState.d.ts +5 -1
  73. package/out/api/parameters/setContentState.d.ts +11 -5
  74. package/out/api/relation.d.ts +8 -4
  75. package/out/api/relation.js.map +1 -1
  76. package/out/api/settings.d.ts +6 -4
  77. package/out/api/settings.js.map +1 -1
  78. package/out/api/space.d.ts +6 -4
  79. package/out/api/space.js.map +1 -1
  80. package/out/api/spaceProperties.d.ts +4 -4
  81. package/out/api/template.d.ts +16 -8
  82. package/out/api/template.js.map +1 -1
  83. package/out/clients/baseClient.js +3 -1
  84. package/out/clients/baseClient.js.map +1 -1
  85. package/out/clients/confluenceClient.d.ts +2 -1
  86. package/out/clients/confluenceClient.js +1 -0
  87. package/out/clients/confluenceClient.js.map +1 -1
  88. package/out/clients/serverClient.js.map +1 -1
  89. package/out/server/audit.js +6 -6
  90. package/out/server/audit.js.map +1 -1
  91. package/out/server/content.d.ts +34 -262
  92. package/out/server/content.js +40 -32
  93. package/out/server/content.js.map +1 -1
  94. package/out/server/contentBody.d.ts +2 -12
  95. package/out/server/contentBody.js +2 -1
  96. package/out/server/contentBody.js.map +1 -1
  97. package/out/server/group.js +3 -3
  98. package/out/server/group.js.map +1 -1
  99. package/out/server/longTask.js +2 -2
  100. package/out/server/longTask.js.map +1 -1
  101. package/out/server/parameters/convertContentBody.d.ts +16 -0
  102. package/out/server/parameters/updateAttachmentData.d.ts +8 -2
  103. package/out/server/search.d.ts +2 -22
  104. package/out/server/search.js +1 -1
  105. package/out/server/search.js.map +1 -1
  106. package/out/server/space.d.ts +12 -94
  107. package/out/server/space.js +14 -14
  108. package/out/server/space.js.map +1 -1
  109. package/out/server/user.d.ts +8 -152
  110. package/out/server/user.js +10 -10
  111. package/out/server/user.js.map +1 -1
  112. package/package.json +10 -10
  113. package/src/api/audit.ts +24 -12
  114. package/src/api/content.ts +23 -17
  115. package/src/api/contentAttachments.ts +19 -13
  116. package/src/api/contentBody.ts +102 -0
  117. package/src/api/contentChildrenAndDescendants.ts +3 -1
  118. package/src/api/contentContentState.ts +30 -28
  119. package/src/api/contentMacroBody.ts +119 -2
  120. package/src/api/contentRestrictions.ts +16 -8
  121. package/src/api/contentStates.ts +252 -0
  122. package/src/api/contentWatches.ts +16 -8
  123. package/src/api/dynamicModules.ts +1 -0
  124. package/src/api/experimental.ts +2 -2
  125. package/src/api/index.ts +1 -0
  126. package/src/api/models/asyncContentBody.ts +31 -0
  127. package/src/api/models/asyncId.ts +3 -0
  128. package/src/api/models/contentBodyCreate.ts +1 -0
  129. package/src/api/models/contentStateResponse.ts +8 -0
  130. package/src/api/models/contentStateRestInput.ts +11 -0
  131. package/src/api/models/index.ts +16 -12
  132. package/src/api/parameters/asyncConvertContentBodyRequest.ts +81 -0
  133. package/src/api/parameters/asyncConvertContentBodyResponse.ts +4 -0
  134. package/src/api/parameters/convertContentBody.ts +39 -2
  135. package/src/api/parameters/getAndAsyncConvertMacroBodyByMacroId.ts +88 -0
  136. package/src/api/parameters/getAndConvertMacroBodyByMacroId.ts +104 -0
  137. package/src/api/parameters/getAvailableContentStates.ts +5 -2
  138. package/src/api/parameters/getContentState.ts +9 -4
  139. package/src/api/parameters/getSpaceContentStates.ts +4 -0
  140. package/src/api/parameters/getUser.ts +14 -4
  141. package/src/api/parameters/index.ts +5 -0
  142. package/src/api/parameters/movePage.ts +9 -5
  143. package/src/api/parameters/removeContentState.ts +6 -1
  144. package/src/api/parameters/setContentState.ts +13 -5
  145. package/src/api/relation.ts +8 -4
  146. package/src/api/settings.ts +6 -4
  147. package/src/api/space.ts +7 -5
  148. package/src/api/spaceProperties.ts +4 -4
  149. package/src/api/template.ts +16 -8
  150. package/src/clients/baseClient.ts +5 -10
  151. package/src/clients/client.ts +1 -5
  152. package/src/clients/confluenceClient.ts +2 -0
  153. package/src/clients/serverClient.ts +1 -10
  154. package/src/server/audit.ts +6 -6
  155. package/src/server/content.ts +78 -295
  156. package/src/server/contentBody.ts +4 -13
  157. package/src/server/group.ts +3 -3
  158. package/src/server/longTask.ts +2 -2
  159. package/src/server/parameters/convertContentBody.ts +37 -0
  160. package/src/server/parameters/updateAttachmentData.ts +7 -3
  161. package/src/server/search.ts +3 -23
  162. package/src/server/space.ts +26 -108
  163. package/src/server/user.ts +18 -162
package/CHANGELOG.md CHANGED
@@ -1,12 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.6.0
4
+
5
+ Cloud API:
6
+ - `asyncConvertContentBodyRequest` method added to `ContentBody` API.
7
+ - `asyncConvertContentBodyResponse` method added to `ContentBody` API.
8
+ - [`ContentContentState`](https://github.com/MrRefactoring/confluence.js/blob/master/src/api/contentContentState.ts) API are deprecated. Use [`ContentStates`](https://github.com/MrRefactoring/confluence.js/blob/master/src/api/contentStates.ts) instead.
9
+ - `getAndConvertMacroBodyByMacroId` method added to `ContentMacroBody` API.
10
+ - `getAndAsyncConvertMacroBodyByMacroId` method added to `ContentMacroBody` API.
11
+ - `registerModules` method fixed via adding body to the request. `DynamicModules` API.
12
+ - Other fixes and improvements. (like `expand` property adding).
13
+
14
+ ### 1.5.3
15
+
16
+ `expand` property added to `convertContentBody` method to `ContentBody` API. Thanks to [Federico Gonzalez](https://github.com/FedeG) for report.
17
+
18
+ ### 1.5.2
19
+
20
+ `multipart/form-data` added to some required endpoints. Thank you, [Gonzalo Garcia](https://github.com/ggarcia24) for reporting issue and creating PR :)
21
+
3
22
  ### 1.5.1
4
23
 
5
24
  Dependencies updated
6
25
 
7
26
  ### 1.5.0
8
27
 
9
- `ContentAttachments` fixes for all attachments. ([#23](https://github.com/MrRefactoring/confluence.js/issues/23) Thanks [Anton](https://github.com/tester22) for catching)
28
+ `ContentAttachments` fixes for all attachments. ([#23](https://github.com/MrRefactoring/confluence.js/issues/23) Thanks to [Anton](https://github.com/tester22) for catching)
10
29
 
11
30
  ### 1.4.1
12
31
 
@@ -29,8 +48,8 @@ Dependencies updated
29
48
  ### 1.3.0
30
49
 
31
50
  - Telemetry removed (deprecated)
32
- - Fixed bug with spaceKeys in `client.space.getSpaces` ([#14](https://github.com/MrRefactoring/confluence.js/issues/14) Thanks [David Sanchez](https://github.com/emulienfou) for catching)
33
- - Fixed bug with attachment download ([#15](https://github.com/MrRefactoring/confluence.js/issues/15) Thanks [Martin Reinhardt](https://github.com/hypery2k) for catching)
51
+ - Fixed bug with spaceKeys in `client.space.getSpaces` ([#14](https://github.com/MrRefactoring/confluence.js/issues/14) Thanks to [David Sanchez](https://github.com/emulienfou) for catching)
52
+ - Fixed bug with attachment download ([#15](https://github.com/MrRefactoring/confluence.js/issues/15) Thanks to [Martin Reinhardt](https://github.com/hypery2k) for catching)
34
53
 
35
54
  ### 1.2.2
36
55
 
package/README.md CHANGED
@@ -247,6 +247,7 @@ Available groups:
247
247
  - [contentPermissions](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-permissions/#api-group-content-permissions)
248
248
  - [contentProperties](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-properties/#api-group-content-properties)
249
249
  - [contentRestrictions](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-restrictions/#api-group-content-restrictions)
250
+ - [contentStates](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-states/#api-group-content-states)
250
251
  - [contentVersions](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-versions/#api-group-content-versions)
251
252
  - [contentWatches](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-watches/#api-group-content-watches)
252
253
  - [dynamicModules](https://developer.atlassian.com/cloud/confluence/rest/api-group-dynamic-modules/#api-group-dynamic-modules)
@@ -10,7 +10,8 @@ export declare class Audit {
10
10
  * like space exports, group membership changes, app installations, etc. For more information, see [Audit
11
11
  * log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html) in the Confluence administrator's guide.
12
12
  *
13
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
13
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
14
+ * permission.
14
15
  */
15
16
  getAuditRecords<T = Models.AuditRecordArray>(parameters: Parameters.GetAuditRecords | undefined, callback: Callback<T>): Promise<void>;
16
17
  /**
@@ -18,57 +19,66 @@ export declare class Audit {
18
19
  * like space exports, group membership changes, app installations, etc. For more information, see [Audit
19
20
  * log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html) in the Confluence administrator's guide.
20
21
  *
21
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
22
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
23
+ * permission.
22
24
  */
23
25
  getAuditRecords<T = Models.AuditRecordArray>(parameters?: Parameters.GetAuditRecords, callback?: never): Promise<T>;
24
26
  /**
25
27
  * Creates a record in the audit log.
26
28
  *
27
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
29
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
30
+ * permission.
28
31
  */
29
32
  createAuditRecord<T = Models.AuditRecord>(parameters: Parameters.CreateAuditRecord | undefined, callback: Callback<T>): Promise<void>;
30
33
  /**
31
34
  * Creates a record in the audit log.
32
35
  *
33
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
36
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
37
+ * permission.
34
38
  */
35
39
  createAuditRecord<T = Models.AuditRecord>(parameters?: Parameters.CreateAuditRecord, callback?: never): Promise<T>;
36
40
  /**
37
41
  * Exports audit records as a CSV file or ZIP file.
38
42
  *
39
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
43
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
44
+ * permission.
40
45
  */
41
46
  exportAuditRecords<T = unknown>(parameters: Parameters.ExportAuditRecords | undefined, callback: Callback<T>): Promise<void>;
42
47
  /**
43
48
  * Exports audit records as a CSV file or ZIP file.
44
49
  *
45
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
50
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
51
+ * permission.
46
52
  */
47
53
  exportAuditRecords<T = unknown>(parameters?: Parameters.ExportAuditRecords, callback?: never): Promise<T>;
48
54
  /**
49
55
  * Returns the retention period for records in the audit log. The retention period is how long an audit record is kept
50
56
  * for, from creation date until it is deleted.
51
57
  *
52
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
58
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
59
+ * permission.
53
60
  */
54
61
  getRetentionPeriod<T = Models.RetentionPeriod>(callback: Callback<T>): Promise<void>;
55
62
  /**
56
63
  * Returns the retention period for records in the audit log. The retention period is how long an audit record is kept
57
64
  * for, from creation date until it is deleted.
58
65
  *
59
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
66
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
67
+ * permission.
60
68
  */
61
69
  getRetentionPeriod<T = Models.RetentionPeriod>(callback?: never): Promise<T>;
62
70
  /**
63
71
  * Sets the retention period for records in the audit log. The retention period can be set to a maximum of 20 years.
64
72
  *
65
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
73
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
74
+ * permission.
66
75
  */
67
76
  setRetentionPeriod<T = Models.RetentionPeriod>(parameters: Parameters.SetRetentionPeriod | undefined, callback: Callback<T>): Promise<void>;
68
77
  /**
69
78
  * Sets the retention period for records in the audit log. The retention period can be set to a maximum of 20 years.
70
79
  *
71
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
80
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
81
+ * permission.
72
82
  */
73
83
  setRetentionPeriod<T = Models.RetentionPeriod>(parameters?: Parameters.SetRetentionPeriod, callback?: never): Promise<T>;
74
84
  /**
@@ -79,7 +89,8 @@ export declare class Audit {
79
89
  * more information, see [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html) in the
80
90
  * Confluence administrator's guide.
81
91
  *
82
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
92
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
93
+ * permission.
83
94
  */
84
95
  getAuditRecordsForTimePeriod<T = Models.AuditRecordArray>(parameters: Parameters.GetAuditRecordsForTimePeriod | undefined, callback: Callback<T>): Promise<void>;
85
96
  /**
@@ -90,7 +101,8 @@ export declare class Audit {
90
101
  * more information, see [Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html) in the
91
102
  * Confluence administrator's guide.
92
103
  *
93
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission.
104
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global
105
+ * permission.
94
106
  */
95
107
  getAuditRecordsForTimePeriod<T = Models.AuditRecordArray>(parameters?: Parameters.GetAuditRecordsForTimePeriod, callback?: never): Promise<T>;
96
108
  }
@@ -1 +1 @@
1
- {"version":3,"file":"audit.js","sourceRoot":"","sources":["../../src/api/audit.ts"],"names":[],"mappings":";;;;AAMA,MAAa,KAAK;IAChB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAwBhC,eAAe,CACnB,UAAuC,EACvC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,YAAY;gBACjB,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,SAAS,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,SAAS;oBAChC,OAAO,EAAE,UAAU,a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O,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AA1OD,sBA0OC"}
@@ -75,7 +75,8 @@ export declare class Content {
75
75
  archivePages<T = Models.LongTask>(parameters: Parameters.ArchivePages, callback?: never): Promise<T>;
76
76
  /**
77
77
  * Publishes a legacy draft of a page created from a blueprint. Legacy drafts will eventually be removed in favor of
78
- * shared drafts. For now, this method works the same as [Publish shared draft](#api-content-blueprint-instance-draftId-put).
78
+ * shared drafts. For now, this method works the same as [Publish shared
79
+ * draft](#api-content-blueprint-instance-draftId-put).
79
80
  *
80
81
  * By default, the following objects are expanded: `body.storage`, `history`, `space`, `version`, `ancestors`.
81
82
  *
@@ -85,7 +86,8 @@ export declare class Content {
85
86
  publishLegacyDraft<T = Models.Content>(parameters: Parameters.PublishLegacyDraft, callback: Callback<T>): Promise<void>;
86
87
  /**
87
88
  * Publishes a legacy draft of a page created from a blueprint. Legacy drafts will eventually be removed in favor of
88
- * shared drafts. For now, this method works the same as [Publish shared draft](#api-content-blueprint-instance-draftId-put).
89
+ * shared drafts. For now, this method works the same as [Publish shared
90
+ * draft](#api-content-blueprint-instance-draftId-put).
89
91
  *
90
92
  * By default, the following objects are expanded: `body.storage`, `history`, `space`, `version`, `ancestors`.
91
93
  *
@@ -118,9 +120,9 @@ export declare class Content {
118
120
  * When additional results are available, returns `next` and `prev` URLs to retrieve them in subsequent calls. The
119
121
  * URLs each contain a cursor that points to the appropriate set of results. Use `limit` to specify the number of
120
122
  * results returned in each call. Example subsequent call (taken from example response):
121
- * ```
122
- * https://your-domain.atlassian.net/wiki/rest/api/content/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg
123
- * ```
123
+ *
124
+ * https://your-domain.atlassian.net/wiki/rest/api/content/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg
125
+ *
124
126
  * The response to this will have a `prev` URL similar to the `next` in the example response.
125
127
  *
126
128
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
@@ -134,9 +136,9 @@ export declare class Content {
134
136
  * When additional results are available, returns `next` and `prev` URLs to retrieve them in subsequent calls. The
135
137
  * URLs each contain a cursor that points to the appropriate set of results. Use `limit` to specify the number of
136
138
  * results returned in each call. Example subsequent call (taken from example response):
137
- * ```
138
- * https://your-domain.atlassian.net/wiki/rest/api/content/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg
139
- * ```
139
+ *
140
+ * https://your-domain.atlassian.net/wiki/rest/api/content/search?cql=type=page&limit=25&cursor=raNDoMsTRiNg
141
+ *
140
142
  * The response to this will have a `prev` URL similar to the `next` in the example response.
141
143
  *
142
144
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site
@@ -180,11 +182,13 @@ export declare class Content {
180
182
  */
181
183
  updateContent<T = Models.Content>(parameters: Parameters.UpdateContent, callback?: never): Promise<T>;
182
184
  /**
183
- * Moves a piece of content to the space's trash or purges it from the trash, depending on the content's type and status:
185
+ * Moves a piece of content to the space's trash or purges it from the trash, depending on the content's type and
186
+ * status:
184
187
  *
185
188
  * - If the content's type is `page` or `blogpost` and its status is `current`, it will be trashed.
186
189
  * - If the content's type is `page` or `blogpost` and its status is `trashed`, the content will be purged from the
187
- * trash and deleted permanently. Note, you must also set the `status` query parameter to `trashed` in your request.
190
+ * trash and deleted permanently. Note, you must also set the `status` query parameter to `trashed` in your
191
+ * request.
188
192
  * - If the content's type is `comment` or `attachment`, it will be deleted permanently without being trashed.
189
193
  *
190
194
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Delete' permission for the space that the
@@ -192,11 +196,13 @@ export declare class Content {
192
196
  */
193
197
  deleteContent<T = void>(parameters: Parameters.DeleteContent, callback: Callback<T>): Promise<void>;
194
198
  /**
195
- * Moves a piece of content to the space's trash or purges it from the trash, depending on the content's type and status:
199
+ * Moves a piece of content to the space's trash or purges it from the trash, depending on the content's type and
200
+ * status:
196
201
  *
197
202
  * - If the content's type is `page` or `blogpost` and its status is `current`, it will be trashed.
198
203
  * - If the content's type is `page` or `blogpost` and its status is `trashed`, the content will be purged from the
199
- * trash and deleted permanently. Note, you must also set the `status` query parameter to `trashed` in your request.
204
+ * trash and deleted permanently. Note, you must also set the `status` query parameter to `trashed` in your
205
+ * request.
200
206
  * - If the content's type is `comment` or `attachment`, it will be deleted permanently without being trashed.
201
207
  *
202
208
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Delete' permission for the space that the
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/api/content.ts"],"names":[],"mappings":";;;;AAMA,MAAa,OAAO;IAClB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAuBhC,UAAU,CACd,UAAkC,EAClC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,cAAc;gBACnB,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,IAAI,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI;oBACtB,QAAQ,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ;oBAC9B,KAAK,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK;oBACxB,MAAM,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM;oBAC1B,UAAU,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU;oBAClC,OAAO,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO;oBAC5B,OAAO,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO;oBAC5B,KAAK,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK;oBACxB,KAAK,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK;oBACxB,MAAM,EAAE,UAAU,aAAV,UAAU,uBAAV,UAA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AAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,EAAE;gBACpC,MAAM,EAAE,QAAQ;gBAChB,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;IAoBK,oBAAoB,CACxB,UAA2C,EAC3C,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,UAAU;gBAC5C,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;CACF;AAtbD,0BAsbC"}
@@ -26,14 +26,16 @@ export declare class ContentAttachments {
26
26
  getAttachments<T = Models.ContentArray<Models.Attachment>>(parameters: Parameters.GetAttachments, callback?: never): Promise<T>;
27
27
  /**
28
28
  * Adds an attachment to a piece of content. This method only adds a new attachment. If you want to update an existing
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).
29
+ * attachment, use [Create or update
30
+ * attachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-put).
30
31
  *
31
32
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
32
33
  */
33
34
  createAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(parameters: Parameters.CreateAttachments, callback: Callback<T>): Promise<void>;
34
35
  /**
35
36
  * Adds an attachment to a piece of content. This method only adds a new attachment. If you want to update an existing
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).
37
+ * attachment, use [Create or update
38
+ * attachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-put).
37
39
  *
38
40
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
39
41
  */
@@ -67,19 +69,23 @@ export declare class ContentAttachments {
67
69
  */
68
70
  updateAttachmentProperties<T = Models.CreatedAttachment>(parameters: Parameters.UpdateAttachmentProperties, callback?: never): Promise<T>;
69
71
  /**
70
- * Updates the binary data of an attachment, given the attachment ID, and optionally the comment and the minor edit field.
72
+ * Updates the binary data of an attachment, given the attachment ID, and optionally the comment and the minor edit
73
+ * field.
71
74
  *
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
73
- * that it matches the attachment ID rather than the name.
75
+ * This method is essentially the same as [Create or update
76
+ * attachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-put),
77
+ * except that it matches the attachment ID rather than the name.
74
78
  *
75
79
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
76
80
  */
77
81
  updateAttachmentData<T = Models.CreatedAttachment>(parameters: Parameters.UpdateAttachmentData, callback: Callback<T>): Promise<void>;
78
82
  /**
79
- * Updates the binary data of an attachment, given the attachment ID, and optionally the comment and the minor edit field.
83
+ * Updates the binary data of an attachment, given the attachment ID, and optionally the comment and the minor edit
84
+ * field.
80
85
  *
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
82
- * that it matches the attachment ID rather than the name.
86
+ * This method is essentially the same as [Create or update
87
+ * attachments](https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-put),
88
+ * except that it matches the attachment ID rather than the name.
83
89
  *
84
90
  * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.
85
91
  */
@@ -1 +1 @@
1
- {"version":3,"file":"contentAttachments.js","sourceRoot":"","sources":["../../src/api/contentAttachments.ts"],"names":[],"mappings":";;;;AAAA,sCAAsC;AAOtC,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;IAsBK,iBAAiB,CACrB,UAAwC,EACxC,QAAsB;;;YAEtB,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;YAChC,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YAE9G,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;gBAC/B,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,WAAW,CAAC,CAAC;gBAC3E,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,I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MAAM,EAAE,MAAM;gBACd,OAAO,kBACL,mBAAmB,EAAE,UAAU,EAC/B,cAAc,EAAE,qBAAqB,IAClC,MAAA,QAAQ,CAAC,UAAU,wDAAI,CAC3B;gBACD,IAAI,EAAE,QAAQ;aACf,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;;KAClD;IAMK,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,qBAAqB,UAAU,CAAC,YAAY,WAAW;gBACzF,MAAM,EAAE,KAAK;gBACb,YAAY,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;AAhRD,gDAgRC"}
@@ -35,4 +35,56 @@ export declare class ContentBody {
35
35
  * 'View' permission for the space, and permission to view the content.
36
36
  */
37
37
  convertContentBody<T = Models.ContentBody>(parameters: Parameters.ConvertContentBody, callback?: never): Promise<T>;
38
+ /**
39
+ * Converts a content body from one format to another format asynchronously. Returns the asyncId for the asynchronous
40
+ * task.
41
+ *
42
+ * Supported conversions:
43
+ *
44
+ * - Storage: export_view
45
+ *
46
+ * No other conversions are supported at the moment. Once a conversion is completed, it will be available for 5
47
+ * minutes at the result endpoint.
48
+ *
49
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: If request specifies 'contentIdContext',
50
+ * 'View' permission for the space, and permission to view the content.
51
+ */
52
+ asyncConvertContentBodyRequest<T = Models.AsyncId>(parameters: Parameters.AsyncConvertContentBodyRequest, callback: Callback<T>): Promise<void>;
53
+ /**
54
+ * Converts a content body from one format to another format asynchronously. Returns the asyncId for the asynchronous
55
+ * task.
56
+ *
57
+ * Supported conversions:
58
+ *
59
+ * - Storage: export_view
60
+ *
61
+ * No other conversions are supported at the moment. Once a conversion is completed, it will be available for 5
62
+ * minutes at the result endpoint.
63
+ *
64
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: If request specifies 'contentIdContext',
65
+ * 'View' permission for the space, and permission to view the content.
66
+ */
67
+ asyncConvertContentBodyRequest<T = Models.AsyncId>(parameters: Parameters.AsyncConvertContentBodyRequest, callback?: never): Promise<T>;
68
+ /**
69
+ * Returns the Asynchronous Content Body for the corresponding asyncId if the task is complete or returns the status
70
+ * of the task.
71
+ *
72
+ * After the task is completed, the result can be obtained for 5 minutes, or until an identical conversion request is
73
+ * made again, with allowCache query param set to false.
74
+ *
75
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: If request specifies 'contentIdContext',
76
+ * 'View' permission for the space, and permission to view the content.
77
+ */
78
+ asyncConvertContentBodyResponse<T = Models.AsyncContentBody>(parameters: Parameters.AsyncConvertContentBodyResponse, callback: Callback<T>): Promise<void>;
79
+ /**
80
+ * Returns the Asynchronous Content Body for the corresponding asyncId if the task is complete or returns the status
81
+ * of the task.
82
+ *
83
+ * After the task is completed, the result can be obtained for 5 minutes, or until an identical conversion request is
84
+ * made again, with allowCache query param set to false.
85
+ *
86
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: If request specifies 'contentIdContext',
87
+ * 'View' permission for the space, and permission to view the content.
88
+ */
89
+ asyncConvertContentBodyResponse<T = Models.AsyncContentBody>(parameters: Parameters.AsyncConvertContentBodyResponse, callback?: never): Promise<T>;
38
90
  }
@@ -15,11 +15,35 @@ class ContentBody {
15
15
  spaceKeyContext: parameters.spaceKeyContext,
16
16
  contentIdContext: parameters.contentIdContext,
17
17
  embeddedContentRender: parameters.embeddedContentRender,
18
+ expand: parameters.expand,
18
19
  },
19
- data: {
20
- value: parameters.value,
21
- representation: parameters.representation,
20
+ data: Object.assign({ value: parameters.value, representation: parameters.representation }, parameters.additionalProperties),
21
+ };
22
+ return this.client.sendRequest(config, callback);
23
+ });
24
+ }
25
+ asyncConvertContentBodyRequest(parameters, callback) {
26
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
+ const config = {
28
+ url: `/api/contentbody/convert/async/${parameters.to}`,
29
+ method: 'POST',
30
+ params: {
31
+ spaceKeyContext: parameters.spaceKeyContext,
32
+ contentIdContext: parameters.contentIdContext,
33
+ allowCache: parameters.allowCache,
34
+ embeddedContentRender: parameters.embeddedContentRender,
35
+ expand: parameters.expand,
22
36
  },
37
+ data: Object.assign({ value: parameters.value, representation: parameters.representation }, parameters.additionalProperties),
38
+ };
39
+ return this.client.sendRequest(config, callback);
40
+ });
41
+ }
42
+ asyncConvertContentBodyResponse(parameters, callback) {
43
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
44
+ const config = {
45
+ url: `/api/contentbody/convert/async/${parameters.id}`,
46
+ method: 'GET',
23
47
  };
24
48
  return this.client.sendRequest(config, callback);
25
49
  });
@@ -1 +1 @@
1
- {"version":3,"file":"contentBody.js","sourceRoot":"","sources":["../../src/api/contentBody.ts"],"names":[],"mappings":";;;;AAMA,MAAa,WAAW;IACtB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAsChC,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,4BAA4B,UAAU,CAAC,EAAE,EAAE;gBAChD,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE;oBACN,eAAe,EAAE,UAAU,CAAC,eAAe;oBAC3C,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;oBAC7C,qBAAqB,EAAE,UAAU,CAAC,qBAAqB;iBACxD;gBACD,IAAI,EAAE;oBACJ,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,cAAc,EAAE,UAAU,CAAC,cAAc;iBAC1C;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW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,UAAU,CAAC,cAAc,IACtC,UAAU,CAAC,oBAAoB,CACnC;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IA8BK,+BAA+B,CACnC,UAAsD,EACtD,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,kCAAkC,UAAU,CAAC,EAAE,EAAE;gBACtD,MAAM,EAAE,KAAK;aACd,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AAjKD,kCAiKC"}
@@ -21,8 +21,9 @@ class ContentChildrenAndDescendants {
21
21
  }
22
22
  movePage(parameters, callback) {
23
23
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
24
+ const pageId = parameters.pageId || parameters.id;
24
25
  const config = {
25
- url: `/api/content/${parameters.id}/move/${parameters.position}/${parameters.targetId}`,
26
+ url: `/api/content/${pageId}/move/${parameters.position}/${parameters.targetId}`,
26
27
  method: 'PUT',
27
28
  };
28
29
  return this.client.sendRequest(config, callback);
@@ -1 +1 @@
1
- {"version":3,"file":"contentChildrenAndDescendants.js","sourceRoot":"","sources":["../../src/api/contentChildrenAndDescendants.ts"],"names":[],"mappings":";;;;AAMA,MAAa,6BAA6B;IACxC,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IA8ChC,kBAAkB,CACtB,UAAyC,EACzC,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;oBACzB,aAAa,EAAE,UAAU,CAAC,aAAa;iBACxC;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,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QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,qBAAqB;gBACvD,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE;oBACJ,eAAe,EAAE,UAAU,CAAC,eAAe;oBAC3C,eAAe,EAAE,UAAU,CAAC,eAAe;oBAC3C,cAAc,EAAE,UAAU,CAAC,cAAc;oBACzC,UAAU,EAAE,UAAU,CAAC,UAAU;oBACjC,kBAAkB,EAAE,UAAU,CAAC,kBAAkB;oBACjD,eAAe,EAAE,UAAU,CAAC,eAAe;oBAC3C,iBAAiB,EAAE,UAAU,CAAC,iBAAiB;oBAC/C,YAAY,EAAE,UAAU,CAAC,YAAY;iBACtC;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAgCK,QAAQ,CAAc,UAA+B,EAAE,QAAsB;;YACjF,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,OAAO;gBACzC,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE;oBACN,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;gBACD,IAAI,EAAE,UAAU,CAAC,cAAc;aAChC,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AAxXD,sEAwXC"}
@@ -2,57 +2,59 @@ import * as Models from './models';
2
2
  import * as Parameters from './parameters';
3
3
  import { Callback } from '../callback';
4
4
  import { Client } from '../clients';
5
+ /** @deprecated Use {@link ContentStates} instead. */
5
6
  export declare class ContentContentState {
6
7
  private client;
8
+ /** @deprecated */
7
9
  constructor(client: Client);
8
10
  /**
9
- * Gets the current page status of the draft or published version of content. To specify the draft version, set the
10
- * parameter status to PUBLISHED, otherwise DRAFT.
11
+ * @deprecated Gets the current page status of the draft or published version of content. To specify the draft
12
+ * version, set the parameter status to PUBLISHED, otherwise DRAFT.
11
13
  */
12
14
  getContentState<T = Models.ContentStateContainer>(parameters: Parameters.GetContentState, callback: Callback<T>): Promise<void>;
13
15
  /**
14
- * Gets the current page status of the draft or published version of content. To specify the draft version, set the
15
- * parameter status to PUBLISHED, otherwise DRAFT.
16
+ * @deprecated Gets the current page status of the draft or published version of content. To specify the draft
17
+ * version, set the parameter status to PUBLISHED, otherwise DRAFT.
16
18
  */
17
19
  getContentState<T = Models.ContentStateContainer>(parameters: Parameters.GetContentState, callback?: never): Promise<T>;
18
20
  /**
19
- * Sets the content state of the content specified and creates a new version (publishes the content without changing
20
- * the body) of the content with the new status. The desired type of status must be allowed. There are space suggested
21
- * statuses and custom statuses. To specify the desired new status, one can use the id of the status or the name and
22
- * color of the status. If contentStateId is defined, then name and color are ignored. If contentStateId is not
23
- * defined, name and color will be used if provided. Firstly, we will determine if a status of this name and color
24
- * exists, and if it does, that this status is used. If it does not exist, and custom statuses are allowed, a custom
25
- * status with this name and color will be created. Color can be specified in traditional english colors (teal,
26
- * magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
21
+ * @deprecated Sets the content state of the content specified and creates a new version (publishes the content
22
+ * without changing the body) of the content with the new status. The desired type of status must be allowed. There
23
+ * are space suggested statuses and custom statuses. To specify the desired new status, one can use the id of the
24
+ * status or the name and color of the status. If contentStateId is defined, then name and color are ignored. If
25
+ * contentStateId is not defined, name and color will be used if provided. Firstly, we will determine if a status of
26
+ * this name and color exists, and if it does, that this status is used. If it does not exist, and custom statuses
27
+ * are allowed, a custom status with this name and color will be created. Color can be specified in traditional
28
+ * english colors (teal, magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
27
29
  */
28
30
  setContentState<T = Models.ContentStateContainer>(parameters: Parameters.SetContentState, callback: Callback<T>): Promise<void>;
29
31
  /**
30
- * Sets the content state of the content specified and creates a new version (publishes the content without changing
31
- * the body) of the content with the new status. The desired type of status must be allowed. There are space suggested
32
- * statuses and custom statuses. To specify the desired new status, one can use the id of the status or the name and
33
- * color of the status. If contentStateId is defined, then name and color are ignored. If contentStateId is not
34
- * defined, name and color will be used if provided. Firstly, we will determine if a status of this name and color
35
- * exists, and if it does, that this status is used. If it does not exist, and custom statuses are allowed, a custom
36
- * status with this name and color will be created. Color can be specified in traditional english colors (teal,
37
- * magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
32
+ * @deprecated Sets the content state of the content specified and creates a new version (publishes the content
33
+ * without changing the body) of the content with the new status. The desired type of status must be allowed. There
34
+ * are space suggested statuses and custom statuses. To specify the desired new status, one can use the id of the
35
+ * status or the name and color of the status. If contentStateId is defined, then name and color are ignored. If
36
+ * contentStateId is not defined, name and color will be used if provided. Firstly, we will determine if a status of
37
+ * this name and color exists, and if it does, that this status is used. If it does not exist, and custom statuses
38
+ * are allowed, a custom status with this name and color will be created. Color can be specified in traditional
39
+ * english colors (teal, magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
38
40
  */
39
41
  setContentState<T = Models.ContentStateContainer>(parameters: Parameters.SetContentState, callback?: never): Promise<T>;
40
42
  /**
41
- * Removes the content state of the content specified and creates a new version (publishes the content without
42
- * changing the body) of the content with the new status.
43
+ * @deprecated Removes the content state of the content specified and creates a new version (publishes the content
44
+ * without changing the body) of the content with the new status.
43
45
  */
44
46
  removeContentState<T = Models.ContentStateContainer>(parameters: Parameters.RemoveContentState, callback: Callback<T>): Promise<void>;
45
47
  /**
46
- * Removes the content state of the content specified and creates a new version (publishes the content without
47
- * changing the body) of the content with the new status.
48
+ * @deprecated Removes the content state of the content specified and creates a new version (publishes the content
49
+ * without changing the body) of the content with the new status.
48
50
  */
49
51
  removeContentState<T = Models.ContentStateContainer>(parameters: Parameters.RemoveContentState, callback?: never): Promise<T>;
50
- /** Gets a Global Timestamp of the last time the content state was updated */
52
+ /** @deprecated Gets a Global Timestamp of the last time the content state was updated */
51
53
  getContentStateLastUpdated<T = unknown>(parameters: Parameters.GetContentStateLastUpdated, callback: Callback<T>): Promise<void>;
52
- /** Gets a Global Timestamp of the last time the content state was updated */
54
+ /** @deprecated Gets a Global Timestamp of the last time the content state was updated */
53
55
  getContentStateLastUpdated<T = unknown>(parameters: Parameters.GetContentStateLastUpdated, callback?: never): Promise<T>;
54
- /** Gets content states that are available for the content to be set as. */
56
+ /** @deprecated Gets content states that are available for the content to be set as. */
55
57
  getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback: Callback<T>): Promise<void>;
56
- /** Gets content states that are available for the content to be set as. */
58
+ /** @deprecated Gets content states that are available for the content to be set as. */
57
59
  getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback?: never): Promise<T>;
58
60
  }
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ContentContentState = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ /** @deprecated Use {@link ContentStates} instead. */
5
6
  class ContentContentState {
7
+ /** @deprecated */
6
8
  constructor(client) {
7
9
  this.client = client;
8
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"contentContentState.js","sourceRoot":"","sources":["../../src/api/contentContentState.ts"],"names":[],"mappings":";;;;AAMA,MAAa,mBAAmB;IAC9B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAkBhC,eAAe,CACnB,UAAsC,EACtC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,SAAS,QAAQ;gBACjD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,WAAW,EAAE,UAAU,CAAC,WAAW;iBACpC;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IA8BK,eAAe,CACnB,UAAsC,EACtC,QAAsB;;YAEtB,MAAM,MAAM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