@resolution/confluence-api-client 0.4.4 → 0.4.6

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 (183) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +60 -1
  3. package/lib/openapi/v1/BaseConfluenceApiV1Client.d.ts +32 -33
  4. package/lib/openapi/v1/BaseConfluenceApiV1Client.js +151 -88
  5. package/lib/openapi/v1/BaseConfluenceApiV1Client.js.map +1 -1
  6. package/lib/openapi/v1/core/CommonHttpService.d.ts +2 -0
  7. package/lib/openapi/v1/core/CommonHttpService.js +9 -0
  8. package/lib/openapi/v1/core/CommonHttpService.js.map +1 -1
  9. package/lib/openapi/v1/services/AnalyticsService.d.ts +10 -10
  10. package/lib/openapi/v1/services/AnalyticsService.js +62 -59
  11. package/lib/openapi/v1/services/AnalyticsService.js.map +1 -1
  12. package/lib/openapi/v1/services/AuditService.d.ts +25 -25
  13. package/lib/openapi/v1/services/AuditService.js +205 -202
  14. package/lib/openapi/v1/services/AuditService.js.map +1 -1
  15. package/lib/openapi/v1/services/ContentAttachmentsService.d.ts +20 -20
  16. package/lib/openapi/v1/services/ContentAttachmentsService.js +317 -314
  17. package/lib/openapi/v1/services/ContentAttachmentsService.js.map +1 -1
  18. package/lib/openapi/v1/services/ContentBodyService.d.ts +15 -15
  19. package/lib/openapi/v1/services/ContentBodyService.js +140 -137
  20. package/lib/openapi/v1/services/ContentBodyService.js.map +1 -1
  21. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.d.ts +27 -27
  22. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js +391 -388
  23. package/lib/openapi/v1/services/ContentChildrenAndDescendantsService.js.map +1 -1
  24. package/lib/openapi/v1/services/ContentCommentsService.d.ts +8 -8
  25. package/lib/openapi/v1/services/ContentCommentsService.js +49 -46
  26. package/lib/openapi/v1/services/ContentCommentsService.js.map +1 -1
  27. package/lib/openapi/v1/services/ContentLabelsService.d.ts +11 -11
  28. package/lib/openapi/v1/services/ContentLabelsService.js +150 -147
  29. package/lib/openapi/v1/services/ContentLabelsService.js.map +1 -1
  30. package/lib/openapi/v1/services/ContentMacroBodyService.d.ts +13 -13
  31. package/lib/openapi/v1/services/ContentMacroBodyService.js +155 -152
  32. package/lib/openapi/v1/services/ContentMacroBodyService.js.map +1 -1
  33. package/lib/openapi/v1/services/ContentPermissionsService.d.ts +2 -2
  34. package/lib/openapi/v1/services/ContentPermissionsService.js +48 -45
  35. package/lib/openapi/v1/services/ContentPermissionsService.js.map +1 -1
  36. package/lib/openapi/v1/services/ContentPropertiesService.d.ts +18 -18
  37. package/lib/openapi/v1/services/ContentPropertiesService.js +237 -234
  38. package/lib/openapi/v1/services/ContentPropertiesService.js.map +1 -1
  39. package/lib/openapi/v1/services/ContentRestrictionsService.d.ts +49 -49
  40. package/lib/openapi/v1/services/ContentRestrictionsService.js +505 -502
  41. package/lib/openapi/v1/services/ContentRestrictionsService.js.map +1 -1
  42. package/lib/openapi/v1/services/ContentService.d.ts +50 -50
  43. package/lib/openapi/v1/services/ContentService.js +475 -472
  44. package/lib/openapi/v1/services/ContentService.js.map +1 -1
  45. package/lib/openapi/v1/services/ContentStatesService.d.ts +25 -25
  46. package/lib/openapi/v1/services/ContentStatesService.js +359 -356
  47. package/lib/openapi/v1/services/ContentStatesService.js.map +1 -1
  48. package/lib/openapi/v1/services/ContentVersionsService.d.ts +13 -13
  49. package/lib/openapi/v1/services/ContentVersionsService.js +144 -141
  50. package/lib/openapi/v1/services/ContentVersionsService.js.map +1 -1
  51. package/lib/openapi/v1/services/ContentWatchesService.d.ts +57 -57
  52. package/lib/openapi/v1/services/ContentWatchesService.js +454 -451
  53. package/lib/openapi/v1/services/ContentWatchesService.js.map +1 -1
  54. package/lib/openapi/v1/services/DynamicModulesService.d.ts +5 -5
  55. package/lib/openapi/v1/services/DynamicModulesService.js +70 -67
  56. package/lib/openapi/v1/services/DynamicModulesService.js.map +1 -1
  57. package/lib/openapi/v1/services/ExperimentalService.d.ts +12 -12
  58. package/lib/openapi/v1/services/ExperimentalService.js +151 -148
  59. package/lib/openapi/v1/services/ExperimentalService.js.map +1 -1
  60. package/lib/openapi/v1/services/GroupService.d.ts +52 -52
  61. package/lib/openapi/v1/services/GroupService.js +445 -442
  62. package/lib/openapi/v1/services/GroupService.js.map +1 -1
  63. package/lib/openapi/v1/services/InlineTasksService.d.ts +20 -20
  64. package/lib/openapi/v1/services/InlineTasksService.js +118 -115
  65. package/lib/openapi/v1/services/InlineTasksService.js.map +1 -1
  66. package/lib/openapi/v1/services/LabelInfoService.d.ts +5 -5
  67. package/lib/openapi/v1/services/LabelInfoService.js +37 -34
  68. package/lib/openapi/v1/services/LabelInfoService.js.map +1 -1
  69. package/lib/openapi/v1/services/LongRunningTaskService.d.ts +8 -6
  70. package/lib/openapi/v1/services/LongRunningTaskService.js +67 -63
  71. package/lib/openapi/v1/services/LongRunningTaskService.js.map +1 -1
  72. package/lib/openapi/v1/services/RelationService.d.ts +37 -37
  73. package/lib/openapi/v1/services/RelationService.js +231 -228
  74. package/lib/openapi/v1/services/RelationService.js.map +1 -1
  75. package/lib/openapi/v1/services/SearchService.d.ts +20 -20
  76. package/lib/openapi/v1/services/SearchService.js +136 -133
  77. package/lib/openapi/v1/services/SearchService.js.map +1 -1
  78. package/lib/openapi/v1/services/SettingsService.d.ts +15 -15
  79. package/lib/openapi/v1/services/SettingsService.js +204 -201
  80. package/lib/openapi/v1/services/SettingsService.js.map +1 -1
  81. package/lib/openapi/v1/services/SpacePermissionsService.d.ts +6 -6
  82. package/lib/openapi/v1/services/SpacePermissionsService.js +99 -96
  83. package/lib/openapi/v1/services/SpacePermissionsService.js.map +1 -1
  84. package/lib/openapi/v1/services/SpacePropertiesService.d.ts +16 -16
  85. package/lib/openapi/v1/services/SpacePropertiesService.js +227 -224
  86. package/lib/openapi/v1/services/SpacePropertiesService.js.map +1 -1
  87. package/lib/openapi/v1/services/SpaceService.d.ts +38 -38
  88. package/lib/openapi/v1/services/SpaceService.js +320 -317
  89. package/lib/openapi/v1/services/SpaceService.js.map +1 -1
  90. package/lib/openapi/v1/services/SpaceSettingsService.d.ts +4 -4
  91. package/lib/openapi/v1/services/SpaceSettingsService.js +68 -65
  92. package/lib/openapi/v1/services/SpaceSettingsService.js.map +1 -1
  93. package/lib/openapi/v1/services/TemplateService.d.ts +20 -20
  94. package/lib/openapi/v1/services/TemplateService.js +214 -211
  95. package/lib/openapi/v1/services/TemplateService.js.map +1 -1
  96. package/lib/openapi/v1/services/ThemesService.d.ts +13 -13
  97. package/lib/openapi/v1/services/ThemesService.js +179 -176
  98. package/lib/openapi/v1/services/ThemesService.js.map +1 -1
  99. package/lib/openapi/v1/services/UserPropertiesService.d.ts +12 -12
  100. package/lib/openapi/v1/services/UserPropertiesService.js +165 -162
  101. package/lib/openapi/v1/services/UserPropertiesService.js.map +1 -1
  102. package/lib/openapi/v1/services/UsersService.d.ts +21 -21
  103. package/lib/openapi/v1/services/UsersService.js +229 -226
  104. package/lib/openapi/v1/services/UsersService.js.map +1 -1
  105. package/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +23 -24
  106. package/lib/openapi/v2/BaseConfluenceApiV2Client.js +92 -47
  107. package/lib/openapi/v2/BaseConfluenceApiV2Client.js.map +1 -1
  108. package/lib/openapi/v2/core/CommonHttpService.d.ts +2 -0
  109. package/lib/openapi/v2/core/CommonHttpService.js +9 -0
  110. package/lib/openapi/v2/core/CommonHttpService.js.map +1 -1
  111. package/lib/openapi/v2/models/user.d.ts +0 -2
  112. package/lib/openapi/v2/models/user.js +0 -2
  113. package/lib/openapi/v2/models/user.js.map +1 -1
  114. package/lib/openapi/v2/services/AncestorsService.d.ts +17 -17
  115. package/lib/openapi/v2/services/AncestorsService.js +174 -171
  116. package/lib/openapi/v2/services/AncestorsService.js.map +1 -1
  117. package/lib/openapi/v2/services/AttachmentService.d.ts +62 -62
  118. package/lib/openapi/v2/services/AttachmentService.js +261 -258
  119. package/lib/openapi/v2/services/AttachmentService.js.map +1 -1
  120. package/lib/openapi/v2/services/BlogPostService.d.ts +70 -70
  121. package/lib/openapi/v2/services/BlogPostService.js +270 -267
  122. package/lib/openapi/v2/services/BlogPostService.js.map +1 -1
  123. package/lib/openapi/v2/services/ChildrenService.d.ts +14 -14
  124. package/lib/openapi/v2/services/ChildrenService.js +77 -74
  125. package/lib/openapi/v2/services/ChildrenService.js.map +1 -1
  126. package/lib/openapi/v2/services/ClassificationLevelService.d.ts +21 -21
  127. package/lib/openapi/v2/services/ClassificationLevelService.js +304 -301
  128. package/lib/openapi/v2/services/ClassificationLevelService.js.map +1 -1
  129. package/lib/openapi/v2/services/CommentService.d.ts +136 -136
  130. package/lib/openapi/v2/services/CommentService.js +635 -632
  131. package/lib/openapi/v2/services/CommentService.js.map +1 -1
  132. package/lib/openapi/v2/services/ContentPropertiesService.d.ts +128 -128
  133. package/lib/openapi/v2/services/ContentPropertiesService.js +1242 -1239
  134. package/lib/openapi/v2/services/ContentPropertiesService.js.map +1 -1
  135. package/lib/openapi/v2/services/ContentService.d.ts +2 -2
  136. package/lib/openapi/v2/services/ContentService.js +40 -37
  137. package/lib/openapi/v2/services/ContentService.js.map +1 -1
  138. package/lib/openapi/v2/services/CustomContentService.d.ts +72 -72
  139. package/lib/openapi/v2/services/CustomContentService.js +299 -296
  140. package/lib/openapi/v2/services/CustomContentService.js.map +1 -1
  141. package/lib/openapi/v2/services/DataPoliciesService.d.ts +10 -10
  142. package/lib/openapi/v2/services/DataPoliciesService.js +67 -64
  143. package/lib/openapi/v2/services/DataPoliciesService.js.map +1 -1
  144. package/lib/openapi/v2/services/DatabaseService.d.ts +17 -17
  145. package/lib/openapi/v2/services/DatabaseService.js +90 -87
  146. package/lib/openapi/v2/services/DatabaseService.js.map +1 -1
  147. package/lib/openapi/v2/services/LabelService.d.ts +57 -57
  148. package/lib/openapi/v2/services/LabelService.js +263 -260
  149. package/lib/openapi/v2/services/LabelService.js.map +1 -1
  150. package/lib/openapi/v2/services/LikeService.d.ts +36 -36
  151. package/lib/openapi/v2/services/LikeService.js +250 -247
  152. package/lib/openapi/v2/services/LikeService.js.map +1 -1
  153. package/lib/openapi/v2/services/OperationService.d.ts +20 -20
  154. package/lib/openapi/v2/services/OperationService.js +298 -295
  155. package/lib/openapi/v2/services/OperationService.js.map +1 -1
  156. package/lib/openapi/v2/services/PageService.d.ts +73 -73
  157. package/lib/openapi/v2/services/PageService.js +272 -269
  158. package/lib/openapi/v2/services/PageService.js.map +1 -1
  159. package/lib/openapi/v2/services/SmartLinkService.d.ts +19 -17
  160. package/lib/openapi/v2/services/SmartLinkService.js +92 -89
  161. package/lib/openapi/v2/services/SmartLinkService.js.map +1 -1
  162. package/lib/openapi/v2/services/SpacePermissionsService.d.ts +6 -6
  163. package/lib/openapi/v2/services/SpacePermissionsService.js +35 -32
  164. package/lib/openapi/v2/services/SpacePermissionsService.js.map +1 -1
  165. package/lib/openapi/v2/services/SpacePropertiesService.d.ts +15 -15
  166. package/lib/openapi/v2/services/SpacePropertiesService.js +165 -162
  167. package/lib/openapi/v2/services/SpacePropertiesService.js.map +1 -1
  168. package/lib/openapi/v2/services/SpaceService.d.ts +28 -28
  169. package/lib/openapi/v2/services/SpaceService.js +83 -80
  170. package/lib/openapi/v2/services/SpaceService.js.map +1 -1
  171. package/lib/openapi/v2/services/TaskService.d.ts +40 -40
  172. package/lib/openapi/v2/services/TaskService.js +120 -117
  173. package/lib/openapi/v2/services/TaskService.js.map +1 -1
  174. package/lib/openapi/v2/services/UserService.d.ts +11 -11
  175. package/lib/openapi/v2/services/UserService.js +91 -88
  176. package/lib/openapi/v2/services/UserService.js.map +1 -1
  177. package/lib/openapi/v2/services/VersionService.d.ts +59 -59
  178. package/lib/openapi/v2/services/VersionService.js +395 -392
  179. package/lib/openapi/v2/services/VersionService.js.map +1 -1
  180. package/lib/openapi/v2/services/WhiteboardService.d.ts +17 -17
  181. package/lib/openapi/v2/services/WhiteboardService.js +90 -87
  182. package/lib/openapi/v2/services/WhiteboardService.js.map +1 -1
  183. package/package.json +4 -3
@@ -18,7 +18,7 @@ export declare class ChildrenService extends CommonHttpService {
18
18
  * @scopes-current read:custom-content:confluence
19
19
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children#api-custom-content-id-children-get
20
20
  */
21
- getChildCustomContent({ id, cursor, limit, sort, }: {
21
+ getChildCustomContent: ({ id, cursor, limit, sort, }: {
22
22
  /**
23
23
  * The ID of the parent custom content. If you don't know the custom content ID,
24
24
  * use Get custom-content and filter the results.
@@ -29,18 +29,18 @@ export declare class ChildrenService extends CommonHttpService {
29
29
  * the `Link` response header. Use the relative URL in the `Link` header to
30
30
  * retrieve the `next` set of results.
31
31
  */
32
- cursor?: string;
32
+ cursor?: string | undefined;
33
33
  /**
34
34
  * Maximum number of pages per result to return. If more results exist, use the
35
35
  * `Link` header to retrieve a relative URL that will return the next set of
36
36
  * results.
37
37
  */
38
- limit?: number;
38
+ limit?: number | undefined;
39
39
  /** Used to sort the result by a particular field. */
40
- sort?: string;
41
- }): Promise<{
42
- results?: ChildCustomContent[];
43
- _links?: MultiEntityLinks;
40
+ sort?: string | undefined;
41
+ }) => Promise<{
42
+ results?: ChildCustomContent[] | undefined;
43
+ _links?: MultiEntityLinks | undefined;
44
44
  } & {
45
45
  [key: string]: unknown;
46
46
  }>;
@@ -58,7 +58,7 @@ export declare class ChildrenService extends CommonHttpService {
58
58
  * @scopes-current read:page:confluence
59
59
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children#api-pages-id-children-get
60
60
  */
61
- getChildPages({ id, cursor, limit, sort, }: {
61
+ getChildPages: ({ id, cursor, limit, sort, }: {
62
62
  /**
63
63
  * The ID of the parent page. If you don't know the page ID, use Get pages and
64
64
  * filter the results.
@@ -69,18 +69,18 @@ export declare class ChildrenService extends CommonHttpService {
69
69
  * the `Link` response header. Use the relative URL in the `Link` header to
70
70
  * retrieve the `next` set of results.
71
71
  */
72
- cursor?: string;
72
+ cursor?: string | undefined;
73
73
  /**
74
74
  * Maximum number of pages per result to return. If more results exist, use the
75
75
  * `Link` header to retrieve a relative URL that will return the next set of
76
76
  * results.
77
77
  */
78
- limit?: number;
78
+ limit?: number | undefined;
79
79
  /** Used to sort the result by a particular field. */
80
- sort?: string;
81
- }): Promise<{
82
- results?: ChildPage[];
83
- _links?: MultiEntityLinks;
80
+ sort?: string | undefined;
81
+ }) => Promise<{
82
+ results?: ChildPage[] | undefined;
83
+ _links?: MultiEntityLinks | undefined;
84
84
  } & {
85
85
  [key: string]: unknown;
86
86
  }>;
@@ -12,80 +12,83 @@ const common_1 = require("../models/common");
12
12
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
13
13
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children */
14
14
  class ChildrenService extends CommonHttpService_1.CommonHttpService {
15
- /**
16
- * Returns all child custom content for given custom content id. The number of
17
- * results is limited by the `limit` parameter and additional results (if
18
- * available)
19
- * will be available through the `next` URL present in the `Link` response header.
20
- *
21
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
22
- * Permission to access the Confluence site ('Can use' global permission).
23
- * Only custom content that the user has permission to view will be returned.
24
- *
25
- * @returns Returned if the requested child custom content are returned.
26
- * @path {GET} /custom-content/{id}/children
27
- * @scopes-current read:custom-content:confluence
28
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children#api-custom-content-id-children-get
29
- */
30
- getChildCustomContent({ id, cursor, limit, sort, }) {
31
- return this.getClientInstance()
32
- .request({
33
- path: "/custom-content/{id}/children",
34
- method: "GET",
35
- pathParams: {
36
- id,
37
- },
38
- query: {
39
- cursor,
40
- limit,
41
- sort,
42
- },
43
- })
44
- .then(this.getClientInstance().responseHandler({
45
- 200: {
46
- "application/json": "json",
47
- },
48
- }))
49
- .then(commonHttpClient.castResponse())
50
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ChildrenService.getChildCustomContent.response"))
51
- .then(commonHttpClient.getBody);
52
- }
53
- /**
54
- * Returns all child pages for given page id. The number of results is limited by
55
- * the `limit` parameter and additional results (if available)
56
- * will be available through the `next` URL present in the `Link` response header.
57
- *
58
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
59
- * Permission to access the Confluence site ('Can use' global permission).
60
- * Only pages that the user has permission to view will be returned.
61
- *
62
- * @returns Returned if the requested child pages are returned.
63
- * @path {GET} /pages/{id}/children
64
- * @scopes-current read:page:confluence
65
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children#api-pages-id-children-get
66
- */
67
- getChildPages({ id, cursor, limit, sort, }) {
68
- return this.getClientInstance()
69
- .request({
70
- path: "/pages/{id}/children",
71
- method: "GET",
72
- pathParams: {
73
- id,
74
- },
75
- query: {
76
- cursor,
77
- limit,
78
- sort,
79
- },
80
- })
81
- .then(this.getClientInstance().responseHandler({
82
- 200: {
83
- "application/json": "json",
84
- },
85
- }))
86
- .then(commonHttpClient.castResponse())
87
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("ChildrenService.getChildPages.response"))
88
- .then(commonHttpClient.getBody);
15
+ constructor() {
16
+ super(...arguments);
17
+ /**
18
+ * Returns all child custom content for given custom content id. The number of
19
+ * results is limited by the `limit` parameter and additional results (if
20
+ * available)
21
+ * will be available through the `next` URL present in the `Link` response header.
22
+ *
23
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
24
+ * Permission to access the Confluence site ('Can use' global permission).
25
+ * Only custom content that the user has permission to view will be returned.
26
+ *
27
+ * @returns Returned if the requested child custom content are returned.
28
+ * @path {GET} /custom-content/{id}/children
29
+ * @scopes-current read:custom-content:confluence
30
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children#api-custom-content-id-children-get
31
+ */
32
+ this.getChildCustomContent = ({ id, cursor, limit, sort, }) => {
33
+ return this.getClientInstance()
34
+ .request({
35
+ path: "/custom-content/{id}/children",
36
+ method: "GET",
37
+ pathParams: {
38
+ id,
39
+ },
40
+ query: {
41
+ cursor,
42
+ limit,
43
+ sort,
44
+ },
45
+ })
46
+ .then(this.getClientInstance().responseHandler({
47
+ 200: {
48
+ "application/json": "json",
49
+ },
50
+ }))
51
+ .then(commonHttpClient.castResponse())
52
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ChildrenService.getChildCustomContent.response"))
53
+ .then(commonHttpClient.getBody);
54
+ };
55
+ /**
56
+ * Returns all child pages for given page id. The number of results is limited by
57
+ * the `limit` parameter and additional results (if available)
58
+ * will be available through the `next` URL present in the `Link` response header.
59
+ *
60
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
61
+ * Permission to access the Confluence site ('Can use' global permission).
62
+ * Only pages that the user has permission to view will be returned.
63
+ *
64
+ * @returns Returned if the requested child pages are returned.
65
+ * @path {GET} /pages/{id}/children
66
+ * @scopes-current read:page:confluence
67
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-children#api-pages-id-children-get
68
+ */
69
+ this.getChildPages = ({ id, cursor, limit, sort, }) => {
70
+ return this.getClientInstance()
71
+ .request({
72
+ path: "/pages/{id}/children",
73
+ method: "GET",
74
+ pathParams: {
75
+ id,
76
+ },
77
+ query: {
78
+ cursor,
79
+ limit,
80
+ sort,
81
+ },
82
+ })
83
+ .then(this.getClientInstance().responseHandler({
84
+ 200: {
85
+ "application/json": "json",
86
+ },
87
+ }))
88
+ .then(commonHttpClient.castResponse())
89
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("ChildrenService.getChildPages.response"))
90
+ .then(commonHttpClient.getBody);
91
+ };
89
92
  }
90
93
  static initialize() {
91
94
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("ChildrenService.getChildCustomContent.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"ChildrenService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/ChildrenService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,iDA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AAC;CACF;AA1ND,0CA0NC"}
1
+ {"version":3,"file":"ChildrenService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/ChildrenService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,iDAI4B;AAC5B,6CAG0B;AAC1B,wEAAqE;AACrE,uFAAuF;AACvF,MAAa,eAAgB,SAAQ,qCAAiB;IAAtD;;QACE;;;;;;;;;;;;;;WAcG;QACH,0BAAqB,GAAG,CAAC,EACvB,EAAE,EACF,MAAM,EACN,KAAK,EACL,IAAI,GAqBL,EAOC,EAAE;YACF,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,+BAA+B;gBACrC,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL,MAAM;oBACN,KAAK;oBACL,IAAI;iBACL;aACF,CAAC;iBACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;gBACvC,GAAG,EAAE;oBACH,kBAAkB,EAAE,MAAM;iBAC3B;aACF,CAAC,CACH;iBACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EASzB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,gDAAgD,CACjD,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;;WAaG;QACH,kBAAa,GAAG,CAAC,EACf,EAAE,EACF,MAAM,EACN,KAAK,EACL,IAAI,GAqBL,EAOC,EAAE;YACF,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,sBAAsB;gBAC5B,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE;oBACV,EAAE;iBACH;gBACD,KAAK,EAAE;oBACL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AAC,CAAC;qBAChD,QAAQ,EAAE;gBACb,MAAM,EAAE,iDAAuB;qBAC5B,IAAI,CAAC,kBAAkB,CAAC;qBACxB,QAAQ,EAAE;aACd,CAAC;iBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;SACzB,CAAC;aACD,QAAQ,CAAC,wCAAwC,CAAC,CACtD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,4CAAiC;YACjC,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AA1ND,0CA0NC"}
@@ -15,10 +15,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
15
15
  * @scopes-current read:space:confluence, write:space:confluence
16
16
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-delete
17
17
  */
18
- deleteSpaceDefaultClassificationLevel({ id, }: {
18
+ deleteSpaceDefaultClassificationLevel: ({ id, }: {
19
19
  /** The ID of the space for which default classification level should be deleted. */
20
20
  id: number;
21
- }): Promise<void>;
21
+ }) => Promise<void>;
22
22
  /**
23
23
  * Returns the [classification
24
24
  * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
@@ -35,12 +35,12 @@ export declare class ClassificationLevelService extends CommonHttpService {
35
35
  * @scopes-current read:page:confluence, write:page:confluence
36
36
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-get
37
37
  */
38
- getBlogPostClassificationLevel({ id, status, }: {
38
+ getBlogPostClassificationLevel: ({ id, status, }: {
39
39
  /** The ID of the blog post for which classification level should be returned. */
40
40
  id: number;
41
41
  /** Status of blog post from which classification level will fetched. */
42
- status?: "current" | "draft" | "archived";
43
- }): Promise<ClassificationLevel>;
42
+ status?: "current" | "draft" | "archived" | undefined;
43
+ }) => Promise<ClassificationLevel>;
44
44
  /**
45
45
  * Returns a list of [classification
46
46
  * levels](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
@@ -54,7 +54,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
54
54
  * @scopes-current read:configuration:confluence
55
55
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-classification-levels-get
56
56
  */
57
- getClassificationLevels(): Promise<ClassificationLevel[]>;
57
+ getClassificationLevels: () => Promise<ClassificationLevel[]>;
58
58
  /**
59
59
  * Returns the [classification
60
60
  * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
@@ -71,12 +71,12 @@ export declare class ClassificationLevelService extends CommonHttpService {
71
71
  * @scopes-current read:page:confluence, write:page:confluence
72
72
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-get
73
73
  */
74
- getPageClassificationLevel({ id, status, }: {
74
+ getPageClassificationLevel: ({ id, status, }: {
75
75
  /** The ID of the page for which classification level should be returned. */
76
76
  id: number;
77
77
  /** Status of page from which classification level will fetched. */
78
- status?: "current" | "draft" | "archived";
79
- }): Promise<ClassificationLevel>;
78
+ status?: "current" | "draft" | "archived" | undefined;
79
+ }) => Promise<ClassificationLevel>;
80
80
  /**
81
81
  * Returns the [default classification
82
82
  * level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/)
@@ -91,10 +91,10 @@ export declare class ClassificationLevelService extends CommonHttpService {
91
91
  * @scopes-current read:space:confluence
92
92
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-get
93
93
  */
94
- getSpaceDefaultClassificationLevel({ id, }: {
94
+ getSpaceDefaultClassificationLevel: ({ id, }: {
95
95
  /** The ID of the space for which default classification level should be returned. */
96
96
  id: number;
97
- }): Promise<ClassificationLevel>;
97
+ }) => Promise<ClassificationLevel>;
98
98
  /**
99
99
  * Resets the [classification
100
100
  * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
@@ -110,7 +110,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
110
110
  * @scopes-current write:page:confluence
111
111
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-reset-post
112
112
  */
113
- postBlogPostClassificationLevel({ id, requestBody, }: {
113
+ postBlogPostClassificationLevel: ({ id, requestBody, }: {
114
114
  /** The ID of the blog post for which classification level should be updated. */
115
115
  id: number;
116
116
  requestBody: {
@@ -119,7 +119,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
119
119
  } & {
120
120
  [key: string]: unknown;
121
121
  };
122
- }): Promise<void>;
122
+ }) => Promise<void>;
123
123
  /**
124
124
  * Resets the [classification
125
125
  * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
@@ -135,7 +135,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
135
135
  * @scopes-current write:page:confluence
136
136
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-reset-post
137
137
  */
138
- postPageClassificationLevel({ id, requestBody, }: {
138
+ postPageClassificationLevel: ({ id, requestBody, }: {
139
139
  /** The ID of the page for which classification level should be updated. */
140
140
  id: number;
141
141
  requestBody: {
@@ -144,7 +144,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
144
144
  } & {
145
145
  [key: string]: unknown;
146
146
  };
147
- }): Promise<void>;
147
+ }) => Promise<void>;
148
148
  /**
149
149
  * Updates the [classification
150
150
  * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
@@ -158,7 +158,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
158
158
  * @scopes-current write:page:confluence
159
159
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-blogposts-id-classification-level-put
160
160
  */
161
- putBlogPostClassificationLevel({ id, requestBody, }: {
161
+ putBlogPostClassificationLevel: ({ id, requestBody, }: {
162
162
  /** The ID of the blog post for which classification level should be updated. */
163
163
  id: number;
164
164
  requestBody: {
@@ -169,7 +169,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
169
169
  } & {
170
170
  [key: string]: unknown;
171
171
  };
172
- }): Promise<void>;
172
+ }) => Promise<void>;
173
173
  /**
174
174
  * Updates the [classification
175
175
  * level](https://developer.atlassian.com/cloud/admin/dlp/rest/intro/#Classification%20level)
@@ -183,7 +183,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
183
183
  * @scopes-current write:page:confluence
184
184
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-pages-id-classification-level-put
185
185
  */
186
- putPageClassificationLevel({ id, requestBody, }: {
186
+ putPageClassificationLevel: ({ id, requestBody, }: {
187
187
  /** The ID of the page for which classification level should be updated. */
188
188
  id: number;
189
189
  requestBody: {
@@ -194,7 +194,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
194
194
  } & {
195
195
  [key: string]: unknown;
196
196
  };
197
- }): Promise<void>;
197
+ }) => Promise<void>;
198
198
  /**
199
199
  * Update the [default classification
200
200
  * level](https://support.atlassian.com/security-and-access-policies/docs/what-is-a-default-classification-level/)
@@ -208,7 +208,7 @@ export declare class ClassificationLevelService extends CommonHttpService {
208
208
  * @scopes-current read:space:confluence, write:space:confluence
209
209
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-classification-level#api-spaces-id-classification-level-default-put
210
210
  */
211
- putSpaceDefaultClassificationLevel({ id, requestBody, }: {
211
+ putSpaceDefaultClassificationLevel: ({ id, requestBody, }: {
212
212
  /** The ID of the space for which default classification level should be updated. */
213
213
  id: number;
214
214
  requestBody: {
@@ -219,6 +219,6 @@ export declare class ClassificationLevelService extends CommonHttpService {
219
219
  } & {
220
220
  [key: string]: unknown;
221
221
  };
222
- }): Promise<void>;
222
+ }) => Promise<void>;
223
223
  static initialize(): void;
224
224
  }