@resolution/confluence-api-client 0.4.4 → 0.4.5

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 (170) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
  3. package/lib/openapi/v1/services/AnalyticsService.js +62 -59
  4. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  5. package/lib/openapi/v1/services/AuditService.d.ts +25 -25
  6. package/lib/openapi/v1/services/AuditService.js +205 -202
  7. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  8. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
  9. package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
  10. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  11. package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
  12. package/lib/openapi/v1/services/ContentBodyService.js +140 -137
  13. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  14. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
  15. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
  16. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  17. package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
  18. package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
  19. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  20. package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
  21. package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
  22. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  23. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
  24. package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
  25. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  26. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
  27. package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
  28. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  29. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
  30. package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
  31. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  32. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
  33. package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
  34. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  35. package/lib/openapi/v1/services/ContentService.d.ts +50 -50
  36. package/lib/openapi/v1/services/ContentService.js +475 -472
  37. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  38. package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
  39. package/lib/openapi/v1/services/ContentStatesService.js +359 -356
  40. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  41. package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
  42. package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
  43. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  44. package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
  45. package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
  46. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  47. package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
  48. package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
  49. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  50. package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
  51. package/lib/openapi/v1/services/ExperimentalService.js +151 -148
  52. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  53. package/lib/openapi/v1/services/GroupService.d.ts +52 -52
  54. package/lib/openapi/v1/services/GroupService.js +445 -442
  55. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  56. package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
  57. package/lib/openapi/v1/services/InlineTasksService.js +118 -115
  58. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  59. package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
  60. package/lib/openapi/v1/services/LabelInfoService.js +37 -34
  61. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  62. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
  63. package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
  64. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  65. package/lib/openapi/v1/services/RelationService.d.ts +37 -37
  66. package/lib/openapi/v1/services/RelationService.js +231 -228
  67. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  68. package/lib/openapi/v1/services/SearchService.d.ts +20 -20
  69. package/lib/openapi/v1/services/SearchService.js +136 -133
  70. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  71. package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
  72. package/lib/openapi/v1/services/SettingsService.js +204 -201
  73. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  74. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
  75. package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
  76. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  77. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
  78. package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
  79. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  80. package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
  81. package/lib/openapi/v1/services/SpaceService.js +320 -317
  82. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  83. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
  84. package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
  85. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  86. package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
  87. package/lib/openapi/v1/services/TemplateService.js +214 -211
  88. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  89. package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
  90. package/lib/openapi/v1/services/ThemesService.js +179 -176
  91. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  92. package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
  93. package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
  94. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  95. package/lib/openapi/v1/services/UsersService.d.ts +21 -21
  96. package/lib/openapi/v1/services/UsersService.js +229 -226
  97. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  98. package/lib/openapi/v2/models/user.d.ts +0 -2
  99. package/lib/openapi/v2/models/user.js +0 -2
  100. package/lib/openapi/v2/models/user.js.map +1 -1
  101. package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
  102. package/lib/openapi/v2/services/AncestorsService.js +174 -171
  103. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  104. package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
  105. package/lib/openapi/v2/services/AttachmentService.js +261 -258
  106. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  107. package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
  108. package/lib/openapi/v2/services/BlogPostService.js +270 -267
  109. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  110. package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
  111. package/lib/openapi/v2/services/ChildrenService.js +77 -74
  112. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  113. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
  114. package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
  115. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  116. package/lib/openapi/v2/services/CommentService.d.ts +136 -136
  117. package/lib/openapi/v2/services/CommentService.js +635 -632
  118. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  119. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
  120. package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
  121. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  122. package/lib/openapi/v2/services/ContentService.d.ts +2 -2
  123. package/lib/openapi/v2/services/ContentService.js +40 -37
  124. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  125. package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
  126. package/lib/openapi/v2/services/CustomContentService.js +299 -296
  127. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  128. package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
  129. package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
  130. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  131. package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
  132. package/lib/openapi/v2/services/DatabaseService.js +90 -87
  133. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  134. package/lib/openapi/v2/services/LabelService.d.ts +57 -57
  135. package/lib/openapi/v2/services/LabelService.js +263 -260
  136. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  137. package/lib/openapi/v2/services/LikeService.d.ts +36 -36
  138. package/lib/openapi/v2/services/LikeService.js +250 -247
  139. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  140. package/lib/openapi/v2/services/OperationService.d.ts +20 -20
  141. package/lib/openapi/v2/services/OperationService.js +298 -295
  142. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  143. package/lib/openapi/v2/services/PageService.d.ts +73 -73
  144. package/lib/openapi/v2/services/PageService.js +272 -269
  145. package/lib/openapi/v2/services/PageService.js.map +1 -1
  146. package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
  147. package/lib/openapi/v2/services/SmartLinkService.js +92 -89
  148. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  149. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
  150. package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
  151. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  152. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
  153. package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
  154. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  155. package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
  156. package/lib/openapi/v2/services/SpaceService.js +83 -80
  157. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  158. package/lib/openapi/v2/services/TaskService.d.ts +40 -40
  159. package/lib/openapi/v2/services/TaskService.js +120 -117
  160. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  161. package/lib/openapi/v2/services/UserService.d.ts +11 -11
  162. package/lib/openapi/v2/services/UserService.js +91 -88
  163. package/lib/openapi/v2/services/UserService.js.map +1 -1
  164. package/lib/openapi/v2/services/VersionService.d.ts +59 -59
  165. package/lib/openapi/v2/services/VersionService.js +395 -392
  166. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  167. package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
  168. package/lib/openapi/v2/services/WhiteboardService.js +90 -87
  169. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  170. package/package.json +4 -3
@@ -28,12 +28,12 @@ export declare class ContentPropertiesService extends CommonHttpService {
28
28
  * @scopes-beta read:content.property:confluence, write:content.property:confluence
29
29
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-post
30
30
  */
31
- createContentProperty({ id, contentPropertyCreate, }: {
31
+ createContentProperty: ({ id, contentPropertyCreate, }: {
32
32
  /** The ID of the content to add the property to. */
33
33
  id: string;
34
34
  /** The content property to be created. */
35
35
  contentPropertyCreate: ContentPropertyCreate;
36
- }): Promise<ContentPropertyV1>;
36
+ }) => Promise<ContentPropertyV1>;
37
37
  /**
38
38
  * Creates a property for an existing piece of content. For more information
39
39
  * about content properties, see [Confluence entity
@@ -56,14 +56,14 @@ export declare class ContentPropertiesService extends CommonHttpService {
56
56
  * @scopes-beta read:content.property:confluence, write:content.property:confluence
57
57
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-post
58
58
  */
59
- createContentPropertyForKey({ id, key, contentPropertyCreateNoKey, }: {
59
+ createContentPropertyForKey: ({ id, key, contentPropertyCreateNoKey, }: {
60
60
  /** The ID of the content to add the property to. */
61
61
  id: string;
62
62
  /** The key of the content property. Required. */
63
63
  key: string;
64
64
  /** The content property to be created. */
65
65
  contentPropertyCreateNoKey: ContentPropertyCreateNoKey;
66
- }): Promise<ContentPropertyV1>;
66
+ }) => Promise<ContentPropertyV1>;
67
67
  /**
68
68
  * Deletes a content property. For more information about content properties, see
69
69
  * [Confluence entity
@@ -78,12 +78,12 @@ export declare class ContentPropertiesService extends CommonHttpService {
78
78
  * @scopes-beta write:content.property:confluence
79
79
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-delete
80
80
  */
81
- deleteContentProperty({ id, key, }: {
81
+ deleteContentProperty: ({ id, key, }: {
82
82
  /** The ID of the content that the property belongs to. */
83
83
  id: string;
84
84
  /** The key of the property. */
85
85
  key: string;
86
- }): Promise<void>;
86
+ }) => Promise<void>;
87
87
  /**
88
88
  * Returns the properties for a piece of content. For more information
89
89
  * about content properties, see [Confluence entity
@@ -100,11 +100,11 @@ export declare class ContentPropertiesService extends CommonHttpService {
100
100
  * @scopes-beta read:content-details:confluence
101
101
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-get
102
102
  */
103
- getContentProperties({ id, key, expand, start, limit, }: {
103
+ getContentProperties: ({ id, key, expand, start, limit, }: {
104
104
  /** The ID of the content to be queried for its properties. */
105
105
  id: string;
106
106
  /** The key of the content property. */
107
- key?: string[];
107
+ key?: string[] | undefined;
108
108
  /**
109
109
  * A multi-value parameter indicating which properties of the content to
110
110
  * expand. By default, the `version` object is expanded.
@@ -113,15 +113,15 @@ export declare class ContentPropertiesService extends CommonHttpService {
113
113
  * - `version` returns information about the version of the property, such
114
114
  * as the version number, when it was created, etc.
115
115
  */
116
- expand?: ("content" | "version")[];
116
+ expand?: ("content" | "version")[] | undefined;
117
117
  /** The starting index of the returned properties. */
118
- start?: number;
118
+ start?: number | undefined;
119
119
  /**
120
120
  * The maximum number of properties to return per page.
121
121
  * Note, this may be restricted by fixed system limits.
122
122
  */
123
- limit?: number;
124
- }): Promise<ContentPropertyArray>;
123
+ limit?: number | undefined;
124
+ }) => Promise<ContentPropertyArray>;
125
125
  /**
126
126
  * Returns a content property for a piece of content. For more information, see
127
127
  * [Confluence entity
@@ -138,7 +138,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
138
138
  * @scopes-beta read:content-details:confluence
139
139
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-get
140
140
  */
141
- getContentProperty({ id, key, expand, status, }: {
141
+ getContentProperty: ({ id, key, expand, status, }: {
142
142
  /** The ID of the content to be queried for the property. */
143
143
  id: string;
144
144
  /** The key of the content property. */
@@ -151,7 +151,7 @@ export declare class ContentPropertiesService extends CommonHttpService {
151
151
  * - `version` returns information about the version of the property, such
152
152
  * as the version number, when it was created, etc.
153
153
  */
154
- expand?: ("content" | "version")[];
154
+ expand?: ("content" | "version")[] | undefined;
155
155
  /**
156
156
  * Filter the results to a set of content based on their status. If set to `any`,
157
157
  * content with any status is returned. By default it will fetch current and
@@ -165,8 +165,8 @@ export declare class ContentPropertiesService extends CommonHttpService {
165
165
  * - draft
166
166
  * - trashed
167
167
  */
168
- status?: "any" | "archived" | "current" | "deleted" | "draft" | "trashed";
169
- }): Promise<ContentPropertyV1>;
168
+ status?: "current" | "any" | "deleted" | "draft" | "trashed" | "archived" | undefined;
169
+ }) => Promise<ContentPropertyV1>;
170
170
  /**
171
171
  * Updates an existing content property. This method will also create a new
172
172
  * property for a piece of content, if the property key does not exist and
@@ -184,13 +184,13 @@ export declare class ContentPropertiesService extends CommonHttpService {
184
184
  * @scopes-beta read:content.property:confluence, write:content.property:confluence
185
185
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-put
186
186
  */
187
- updateContentProperty({ id, key, contentPropertyUpdate, }: {
187
+ updateContentProperty: ({ id, key, contentPropertyUpdate, }: {
188
188
  /** The ID of the content that the property belongs to. */
189
189
  id: string;
190
190
  /** The key of the property. */
191
191
  key: string;
192
192
  /** The content property being updated. */
193
193
  contentPropertyUpdate: ContentPropertyUpdate;
194
- }): Promise<ContentPropertyV1>;
194
+ }) => Promise<ContentPropertyV1>;
195
195
  static initialize(): void;
196
196
  }
@@ -14,240 +14,243 @@ const validationSchemaStorage_1 = require("../validationSchemaStorage");
14
14
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties
15
15
  */
16
16
  class ContentPropertiesService extends CommonHttpService_1.CommonHttpService {
17
- /**
18
- * Creates a property for an existing piece of content. For more information
19
- * about content properties, see [Confluence entity
20
- * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
21
- *
22
- * This is the same as [Create content property for
23
- * key](#api-content-id-property-key-post)
24
- * except that the key is specified in the request body instead of as a
25
- * path parameter.
26
- *
27
- * Content properties can also be added when creating a new piece of content
28
- * by including them in the `metadata.properties` of the request.
29
- *
30
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
31
- * Permission to update the content.
32
- *
33
- * @deprecated
34
- * @returns Returned if the content property is created.
35
- * @path {POST} /wiki/rest/api/content/{id}/property
36
- * @scopes-current write:confluence-props
37
- * @scopes-beta read:content.property:confluence, write:content.property:confluence
38
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-post
39
- */
40
- createContentProperty({ id, contentPropertyCreate, }) {
41
- return this.getClientInstance()
42
- .request({
43
- path: "/wiki/rest/api/content/{id}/property",
44
- method: "POST",
45
- pathParams: {
46
- id,
47
- },
48
- headers: {
49
- "Content-Type": "application/json",
50
- },
51
- body: contentPropertyCreate,
52
- })
53
- .then(this.getClientInstance().responseHandler({
54
- 200: {
55
- "application/json": "json",
56
- },
57
- }))
58
- .then(commonHttpClient.castResponse())
59
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createContentProperty.response"))
60
- .then(commonHttpClient.getBody);
61
- }
62
- /**
63
- * Creates a property for an existing piece of content. For more information
64
- * about content properties, see [Confluence entity
65
- * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
66
- *
67
- * This is the same as [Create content property](#api-content-id-property-post)
68
- * except that the key is specified as a path parameter instead of in the
69
- * request body.
70
- *
71
- * Content properties can also be added when creating a new piece of content
72
- * by including them in the `metadata.properties` of the request.
73
- *
74
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
75
- * Permission to update the content.
76
- *
77
- * @deprecated
78
- * @returns Returned if the content property is created.
79
- * @path {POST} /wiki/rest/api/content/{id}/property/{key}
80
- * @scopes-current write:confluence-props
81
- * @scopes-beta read:content.property:confluence, write:content.property:confluence
82
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-post
83
- */
84
- createContentPropertyForKey({ id, key, contentPropertyCreateNoKey, }) {
85
- return this.getClientInstance()
86
- .request({
87
- path: "/wiki/rest/api/content/{id}/property/{key}",
88
- method: "POST",
89
- pathParams: {
90
- id,
91
- key,
92
- },
93
- headers: {
94
- "Content-Type": "application/json",
95
- },
96
- body: contentPropertyCreateNoKey,
97
- })
98
- .then(this.getClientInstance().responseHandler({
99
- 200: {
100
- "application/json": "json",
101
- },
102
- }))
103
- .then(commonHttpClient.castResponse())
104
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createContentPropertyForKey.response"))
105
- .then(commonHttpClient.getBody);
106
- }
107
- /**
108
- * Deletes a content property. For more information about content properties, see
109
- * [Confluence entity
110
- * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
111
- *
112
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
113
- * Permission to update the content.
114
- *
115
- * @deprecated
116
- * @path {DELETE} /wiki/rest/api/content/{id}/property/{key}
117
- * @scopes-current write:confluence-props
118
- * @scopes-beta write:content.property:confluence
119
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-delete
120
- */
121
- deleteContentProperty({ id, key, }) {
122
- return this.getClientInstance()
123
- .request({
124
- path: "/wiki/rest/api/content/{id}/property/{key}",
125
- method: "DELETE",
126
- pathParams: {
127
- id,
128
- key,
129
- },
130
- })
131
- .then(commonHttpClient.discardResult);
132
- }
133
- /**
134
- * Returns the properties for a piece of content. For more information
135
- * about content properties, see [Confluence entity
136
- * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
137
- *
138
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
139
- * 'View' permission for the space, and permission to view the content if it is a
140
- * page.
141
- *
142
- * @deprecated
143
- * @returns Returned if the requested properties are returned.
144
- * @path {GET} /wiki/rest/api/content/{id}/property
145
- * @scopes-current read:confluence-props
146
- * @scopes-beta read:content-details:confluence
147
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-get
148
- */
149
- getContentProperties({ id, key, expand, start, limit, }) {
150
- return this.getClientInstance()
151
- .request({
152
- path: "/wiki/rest/api/content/{id}/property",
153
- method: "GET",
154
- pathParams: {
155
- id,
156
- },
157
- query: {
158
- key,
159
- expand,
160
- start,
161
- limit,
162
- },
163
- })
164
- .then(this.getClientInstance().responseHandler({
165
- 200: {
166
- "application/json": "json",
167
- },
168
- }))
169
- .then(commonHttpClient.castResponse())
170
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getContentProperties.response"))
171
- .then(commonHttpClient.getBody);
172
- }
173
- /**
174
- * Returns a content property for a piece of content. For more information, see
175
- * [Confluence entity
176
- * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
177
- *
178
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
179
- * 'View' permission for the space, and permission to view the content if it is a
180
- * page.
181
- *
182
- * @deprecated
183
- * @returns Returned if the content property is returned.
184
- * @path {GET} /wiki/rest/api/content/{id}/property/{key}
185
- * @scopes-current read:confluence-props
186
- * @scopes-beta read:content-details:confluence
187
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-get
188
- */
189
- getContentProperty({ id, key, expand, status, }) {
190
- return this.getClientInstance()
191
- .request({
192
- path: "/wiki/rest/api/content/{id}/property/{key}",
193
- method: "GET",
194
- pathParams: {
195
- id,
196
- key,
197
- },
198
- query: {
199
- expand,
200
- status,
201
- },
202
- })
203
- .then(this.getClientInstance().responseHandler({
204
- 200: {
205
- "application/json": "json",
206
- },
207
- }))
208
- .then(commonHttpClient.castResponse())
209
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getContentProperty.response"))
210
- .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
- */
229
- updateContentProperty({ id, key, contentPropertyUpdate, }) {
230
- return this.getClientInstance()
231
- .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
- })
243
- .then(this.getClientInstance().responseHandler({
244
- 200: {
245
- "application/json": "json",
246
- },
247
- }))
248
- .then(commonHttpClient.castResponse())
249
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateContentProperty.response"))
250
- .then(commonHttpClient.getBody);
17
+ constructor() {
18
+ super(...arguments);
19
+ /**
20
+ * Creates a property for an existing piece of content. For more information
21
+ * about content properties, see [Confluence entity
22
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
23
+ *
24
+ * This is the same as [Create content property for
25
+ * key](#api-content-id-property-key-post)
26
+ * except that the key is specified in the request body instead of as a
27
+ * path parameter.
28
+ *
29
+ * Content properties can also be added when creating a new piece of content
30
+ * by including them in the `metadata.properties` of the request.
31
+ *
32
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
33
+ * Permission to update the content.
34
+ *
35
+ * @deprecated
36
+ * @returns Returned if the content property is created.
37
+ * @path {POST} /wiki/rest/api/content/{id}/property
38
+ * @scopes-current write:confluence-props
39
+ * @scopes-beta read:content.property:confluence, write:content.property:confluence
40
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-post
41
+ */
42
+ this.createContentProperty = ({ id, contentPropertyCreate, }) => {
43
+ return this.getClientInstance()
44
+ .request({
45
+ path: "/wiki/rest/api/content/{id}/property",
46
+ method: "POST",
47
+ pathParams: {
48
+ id,
49
+ },
50
+ headers: {
51
+ "Content-Type": "application/json",
52
+ },
53
+ body: contentPropertyCreate,
54
+ })
55
+ .then(this.getClientInstance().responseHandler({
56
+ 200: {
57
+ "application/json": "json",
58
+ },
59
+ }))
60
+ .then(commonHttpClient.castResponse())
61
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createContentProperty.response"))
62
+ .then(commonHttpClient.getBody);
63
+ };
64
+ /**
65
+ * Creates a property for an existing piece of content. For more information
66
+ * about content properties, see [Confluence entity
67
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
68
+ *
69
+ * This is the same as [Create content property](#api-content-id-property-post)
70
+ * except that the key is specified as a path parameter instead of in the
71
+ * request body.
72
+ *
73
+ * Content properties can also be added when creating a new piece of content
74
+ * by including them in the `metadata.properties` of the request.
75
+ *
76
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
77
+ * Permission to update the content.
78
+ *
79
+ * @deprecated
80
+ * @returns Returned if the content property is created.
81
+ * @path {POST} /wiki/rest/api/content/{id}/property/{key}
82
+ * @scopes-current write:confluence-props
83
+ * @scopes-beta read:content.property:confluence, write:content.property:confluence
84
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-post
85
+ */
86
+ this.createContentPropertyForKey = ({ id, key, contentPropertyCreateNoKey, }) => {
87
+ return this.getClientInstance()
88
+ .request({
89
+ path: "/wiki/rest/api/content/{id}/property/{key}",
90
+ method: "POST",
91
+ pathParams: {
92
+ id,
93
+ key,
94
+ },
95
+ headers: {
96
+ "Content-Type": "application/json",
97
+ },
98
+ body: contentPropertyCreateNoKey,
99
+ })
100
+ .then(this.getClientInstance().responseHandler({
101
+ 200: {
102
+ "application/json": "json",
103
+ },
104
+ }))
105
+ .then(commonHttpClient.castResponse())
106
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.createContentPropertyForKey.response"))
107
+ .then(commonHttpClient.getBody);
108
+ };
109
+ /**
110
+ * Deletes a content property. For more information about content properties, see
111
+ * [Confluence entity
112
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
113
+ *
114
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
115
+ * Permission to update the content.
116
+ *
117
+ * @deprecated
118
+ * @path {DELETE} /wiki/rest/api/content/{id}/property/{key}
119
+ * @scopes-current write:confluence-props
120
+ * @scopes-beta write:content.property:confluence
121
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-delete
122
+ */
123
+ this.deleteContentProperty = ({ id, key, }) => {
124
+ return this.getClientInstance()
125
+ .request({
126
+ path: "/wiki/rest/api/content/{id}/property/{key}",
127
+ method: "DELETE",
128
+ pathParams: {
129
+ id,
130
+ key,
131
+ },
132
+ })
133
+ .then(commonHttpClient.discardResult);
134
+ };
135
+ /**
136
+ * Returns the properties for a piece of content. For more information
137
+ * about content properties, see [Confluence entity
138
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
139
+ *
140
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
141
+ * 'View' permission for the space, and permission to view the content if it is a
142
+ * page.
143
+ *
144
+ * @deprecated
145
+ * @returns Returned if the requested properties are returned.
146
+ * @path {GET} /wiki/rest/api/content/{id}/property
147
+ * @scopes-current read:confluence-props
148
+ * @scopes-beta read:content-details:confluence
149
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-get
150
+ */
151
+ this.getContentProperties = ({ id, key, expand, start, limit, }) => {
152
+ return this.getClientInstance()
153
+ .request({
154
+ path: "/wiki/rest/api/content/{id}/property",
155
+ method: "GET",
156
+ pathParams: {
157
+ id,
158
+ },
159
+ query: {
160
+ key,
161
+ expand,
162
+ start,
163
+ limit,
164
+ },
165
+ })
166
+ .then(this.getClientInstance().responseHandler({
167
+ 200: {
168
+ "application/json": "json",
169
+ },
170
+ }))
171
+ .then(commonHttpClient.castResponse())
172
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getContentProperties.response"))
173
+ .then(commonHttpClient.getBody);
174
+ };
175
+ /**
176
+ * Returns a content property for a piece of content. For more information, see
177
+ * [Confluence entity
178
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
179
+ *
180
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
181
+ * 'View' permission for the space, and permission to view the content if it is a
182
+ * page.
183
+ *
184
+ * @deprecated
185
+ * @returns Returned if the content property is returned.
186
+ * @path {GET} /wiki/rest/api/content/{id}/property/{key}
187
+ * @scopes-current read:confluence-props
188
+ * @scopes-beta read:content-details:confluence
189
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-get
190
+ */
191
+ this.getContentProperty = ({ id, key, expand, status, }) => {
192
+ return this.getClientInstance()
193
+ .request({
194
+ path: "/wiki/rest/api/content/{id}/property/{key}",
195
+ method: "GET",
196
+ pathParams: {
197
+ id,
198
+ key,
199
+ },
200
+ query: {
201
+ expand,
202
+ status,
203
+ },
204
+ })
205
+ .then(this.getClientInstance().responseHandler({
206
+ 200: {
207
+ "application/json": "json",
208
+ },
209
+ }))
210
+ .then(commonHttpClient.castResponse())
211
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.getContentProperty.response"))
212
+ .then(commonHttpClient.getBody);
213
+ };
214
+ /**
215
+ * Updates an existing content property. This method will also create a new
216
+ * property for a piece of content, if the property key does not exist and
217
+ * the property version is 1. For more information about content properties, see
218
+ * [Confluence entity
219
+ * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).
220
+ *
221
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
222
+ * Permission to update the content.
223
+ *
224
+ * @deprecated
225
+ * @returns Returned if the content property is created.
226
+ * @path {PUT} /wiki/rest/api/content/{id}/property/{key}
227
+ * @scopes-current write:confluence-props
228
+ * @scopes-beta read:content.property:confluence, write:content.property:confluence
229
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-properties#api-wiki-rest-api-content-id-property-key-put
230
+ */
231
+ this.updateContentProperty = ({ id, key, contentPropertyUpdate, }) => {
232
+ return this.getClientInstance()
233
+ .request({
234
+ path: "/wiki/rest/api/content/{id}/property/{key}",
235
+ method: "PUT",
236
+ pathParams: {
237
+ id,
238
+ key,
239
+ },
240
+ headers: {
241
+ "Content-Type": "application/json",
242
+ },
243
+ body: contentPropertyUpdate,
244
+ })
245
+ .then(this.getClientInstance().responseHandler({
246
+ 200: {
247
+ "application/json": "json",
248
+ },
249
+ }))
250
+ .then(commonHttpClient.castResponse())
251
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ContentPropertiesService.updateContentProperty.response"))
252
+ .then(commonHttpClient.getBody);
253
+ };
251
254
  }
252
255
  static initialize() {
253
256
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ContentPropertiesService.getContentProperties.response", zod_1.z