@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
@@ -12,86 +12,89 @@ const space_1 = require("../models/space");
12
12
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
13
13
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space */
14
14
  class SpaceService extends CommonHttpService_1.CommonHttpService {
15
- /**
16
- * Returns a specific space.
17
- *
18
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
19
- * Permission to view the space.
20
- *
21
- * @returns Returned if the requested space is returned.
22
- * @path {GET} /spaces/{id}
23
- * @scopes-current read:space:confluence
24
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space#api-spaces-id-get
25
- */
26
- getSpaceById({ id, descriptionFormat, includeIcon, includeOperations, includeProperties, includePermissions, includeLabels, }) {
27
- return this.getClientInstance()
28
- .request({
29
- path: "/spaces/{id}",
30
- method: "GET",
31
- pathParams: {
32
- id,
33
- },
34
- query: {
35
- "description-format": descriptionFormat,
36
- "include-icon": includeIcon,
37
- "include-operations": includeOperations,
38
- "include-properties": includeProperties,
39
- "include-permissions": includePermissions,
40
- "include-labels": includeLabels,
41
- },
42
- })
43
- .then(this.getClientInstance().responseHandler({
44
- 200: {
45
- "application/json": "json",
46
- },
47
- }))
48
- .then(commonHttpClient.castResponse())
49
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SpaceService.getSpaceById.response"))
50
- .then(commonHttpClient.getBody);
51
- }
52
- /**
53
- * Returns all spaces. The results will be sorted by id ascending. The number of
54
- * results is limited by the `limit` parameter and
55
- * additional results (if available) will be available through the `next` URL
56
- * 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 spaces that the user has permission to view will be returned.
61
- *
62
- * @returns Returned if the requested spaces are returned.
63
- * @path {GET} /spaces
64
- * @scopes-current read:space:confluence
65
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space#api-spaces-get
66
- */
67
- getSpaces({ ids, keys, type, status, labels, favoritedBy, notFavoritedBy, sort, descriptionFormat, includeIcon, cursor, limit, } = {}) {
68
- return this.getClientInstance()
69
- .request({
70
- path: "/spaces",
71
- method: "GET",
72
- query: {
73
- ids,
74
- keys,
75
- type,
76
- status,
77
- labels,
78
- "favorited-by": favoritedBy,
79
- "not-favorited-by": notFavoritedBy,
80
- sort,
81
- "description-format": descriptionFormat,
82
- "include-icon": includeIcon,
83
- cursor,
84
- limit,
85
- },
86
- })
87
- .then(this.getClientInstance().responseHandler({
88
- 200: {
89
- "application/json": "json",
90
- },
91
- }))
92
- .then(commonHttpClient.castResponse())
93
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("SpaceService.getSpaces.response"))
94
- .then(commonHttpClient.getBody);
15
+ constructor() {
16
+ super(...arguments);
17
+ /**
18
+ * Returns a specific space.
19
+ *
20
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
21
+ * Permission to view the space.
22
+ *
23
+ * @returns Returned if the requested space is returned.
24
+ * @path {GET} /spaces/{id}
25
+ * @scopes-current read:space:confluence
26
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space#api-spaces-id-get
27
+ */
28
+ this.getSpaceById = ({ id, descriptionFormat, includeIcon, includeOperations, includeProperties, includePermissions, includeLabels, }) => {
29
+ return this.getClientInstance()
30
+ .request({
31
+ path: "/spaces/{id}",
32
+ method: "GET",
33
+ pathParams: {
34
+ id,
35
+ },
36
+ query: {
37
+ "description-format": descriptionFormat,
38
+ "include-icon": includeIcon,
39
+ "include-operations": includeOperations,
40
+ "include-properties": includeProperties,
41
+ "include-permissions": includePermissions,
42
+ "include-labels": includeLabels,
43
+ },
44
+ })
45
+ .then(this.getClientInstance().responseHandler({
46
+ 200: {
47
+ "application/json": "json",
48
+ },
49
+ }))
50
+ .then(commonHttpClient.castResponse())
51
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SpaceService.getSpaceById.response"))
52
+ .then(commonHttpClient.getBody);
53
+ };
54
+ /**
55
+ * Returns all spaces. The results will be sorted by id ascending. The number of
56
+ * results is limited by the `limit` parameter and
57
+ * additional results (if available) will be available through the `next` URL
58
+ * 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 spaces that the user has permission to view will be returned.
63
+ *
64
+ * @returns Returned if the requested spaces are returned.
65
+ * @path {GET} /spaces
66
+ * @scopes-current read:space:confluence
67
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space#api-spaces-get
68
+ */
69
+ this.getSpaces = ({ ids, keys, type, status, labels, favoritedBy, notFavoritedBy, sort, descriptionFormat, includeIcon, cursor, limit, } = {}) => {
70
+ return this.getClientInstance()
71
+ .request({
72
+ path: "/spaces",
73
+ method: "GET",
74
+ query: {
75
+ ids,
76
+ keys,
77
+ type,
78
+ status,
79
+ labels,
80
+ "favorited-by": favoritedBy,
81
+ "not-favorited-by": notFavoritedBy,
82
+ sort,
83
+ "description-format": descriptionFormat,
84
+ "include-icon": includeIcon,
85
+ cursor,
86
+ limit,
87
+ },
88
+ })
89
+ .then(this.getClientInstance().responseHandler({
90
+ 200: {
91
+ "application/json": "json",
92
+ },
93
+ }))
94
+ .then(commonHttpClient.castResponse())
95
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("SpaceService.getSpaces.response"))
96
+ .then(commonHttpClient.getBody);
97
+ };
95
98
  }
96
99
  static initialize() {
97
100
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("SpaceService.getSpaces.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"SpaceService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/SpaceService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,6CAI0B;AAC1B,2CAKyB;AACzB,wEAAqE;AACrE,oFAAoF;AACpF,MAAa,YAAa,SAAQ,qCAAiB;IACjD;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EACX,EAAE,EACF,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,GA4Cd;QAaC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,cAAc;YACpB,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;aACH;YACD,KAAK,EAAE;gBACL,oBAAoB,EAAE,iBAAiB;gBACvC,cAAc,EAAE,WAAW;gBAC3B,oBAAoB,EAAE,iBAAiB;gBACvC,oBAAoB,EAAE,iBAAiB;gBACvC,qBAAqB,EAAE,kBAAkB;gBACzC,gBAAgB,EAAE,aAAa;aAChC;SACF,CAAC;aACD,IAAI,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C,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,oCAAoC,EACpC,OAAC;aACE,MAAM,CAAC;YACN,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACtB,SAAS,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACxC,IAAI,EAAE,OAAC,CAAC,YAAY,CAClB,iDAAuB,CAAC,IAAI,CAAC,aAAa,CAAC,EAC3C,OAAC;iBACE,MAAM,CAAC;gBACN,MAAM,EAAE,OAAC;qBACN,MAAM,CAAC;oBACN,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;iBAC5B,CAAC;qBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;qBACrB,QAAQ,EAAE;aACd,CAAC;iBACD,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CACzB;SACF,CAAC;aACD,QAAQ,CAAC,oCAAoC,CAAC,CAClD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,sCAA8B;YAC9B,wCAA+B;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AA1SD,oCA0SC"}
@@ -14,7 +14,7 @@ export declare class TaskService extends CommonHttpService {
14
14
  * @scopes-current read:task:confluence
15
15
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task#api-tasks-id-get
16
16
  */
17
- getTaskById({ id, bodyFormat, }: {
17
+ getTaskById: ({ id, bodyFormat, }: {
18
18
  /**
19
19
  * The ID of the task to be returned. If you don't know the task ID, use Get tasks
20
20
  * and filter the results.
@@ -25,8 +25,8 @@ export declare class TaskService extends CommonHttpService {
25
25
  * available, the representation will be available under a response field of the
26
26
  * same name under the `body` field.
27
27
  */
28
- bodyFormat?: PrimaryBodyRepresentation;
29
- }): Promise<Task>;
28
+ bodyFormat?: PrimaryBodyRepresentation | undefined;
29
+ }) => Promise<Task>;
30
30
  /**
31
31
  * Returns all tasks. The number of results is limited by the `limit` parameter
32
32
  * and additional results (if available)
@@ -41,91 +41,91 @@ export declare class TaskService extends CommonHttpService {
41
41
  * @scopes-current read:task:confluence
42
42
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task#api-tasks-get
43
43
  */
44
- getTasks({ bodyFormat, includeBlankTasks, status, taskId, spaceId, pageId, blogpostId, createdBy, assignedTo, completedBy, createdAtFrom, createdAtTo, dueAtFrom, dueAtTo, completedAtFrom, completedAtTo, cursor, limit, }?: {
44
+ getTasks: ({ bodyFormat, includeBlankTasks, status, taskId, spaceId, pageId, blogpostId, createdBy, assignedTo, completedBy, createdAtFrom, createdAtTo, dueAtFrom, dueAtTo, completedAtFrom, completedAtTo, cursor, limit, }?: {
45
45
  /**
46
46
  * The content format types to be returned in the `body` field of the response. If
47
47
  * available, the representation will be available under a response field of the
48
48
  * same name under the `body` field.
49
49
  */
50
- bodyFormat?: PrimaryBodyRepresentation;
50
+ bodyFormat?: PrimaryBodyRepresentation | undefined;
51
51
  /** Specifies whether to include blank tasks in the response. Defaults to `true`. */
52
- includeBlankTasks?: boolean;
52
+ includeBlankTasks?: boolean | undefined;
53
53
  /** Filters on the status of the task. */
54
- status?: "complete" | "incomplete";
54
+ status?: "complete" | "incomplete" | undefined;
55
55
  /** Filters on task ID. Multiple IDs can be specified. */
56
- taskId?: number[];
56
+ taskId?: number[] | undefined;
57
57
  /** Filters on the space ID of the task. Multiple IDs can be specified. */
58
- spaceId?: number[];
58
+ spaceId?: number[] | undefined;
59
59
  /**
60
60
  * Filters on the page ID of the task. Multiple IDs can be specified. Note - page
61
61
  * and blog post filters can be used in conjunction.
62
62
  */
63
- pageId?: number[];
63
+ pageId?: number[] | undefined;
64
64
  /**
65
65
  * Filters on the blog post ID of the task. Multiple IDs can be specified. Note -
66
66
  * page and blog post filters can be used in conjunction.
67
67
  */
68
- blogpostId?: number[];
68
+ blogpostId?: number[] | undefined;
69
69
  /**
70
70
  * Filters on the Account ID of the user who created this task. Multiple IDs can
71
71
  * be specified.
72
72
  */
73
- createdBy?: string[];
73
+ createdBy?: string[] | undefined;
74
74
  /**
75
75
  * Filters on the Account ID of the user to whom this task is assigned. Multiple
76
76
  * IDs can be specified.
77
77
  */
78
- assignedTo?: string[];
78
+ assignedTo?: string[] | undefined;
79
79
  /**
80
80
  * Filters on the Account ID of the user who completed this task. Multiple IDs can
81
81
  * be specified.
82
82
  */
83
- completedBy?: string[];
83
+ completedBy?: string[] | undefined;
84
84
  /**
85
85
  * Filters on start of date-time range of task based on creation date (inclusive).
86
86
  * Input is epoch time in milliseconds.
87
87
  */
88
- createdAtFrom?: number;
88
+ createdAtFrom?: number | undefined;
89
89
  /**
90
90
  * Filters on end of date-time range of task based on creation date (inclusive).
91
91
  * Input is epoch time in milliseconds.
92
92
  */
93
- createdAtTo?: number;
93
+ createdAtTo?: number | undefined;
94
94
  /**
95
95
  * Filters on start of date-time range of task based on due date (inclusive).
96
96
  * Input is epoch time in milliseconds.
97
97
  */
98
- dueAtFrom?: number;
98
+ dueAtFrom?: number | undefined;
99
99
  /**
100
100
  * Filters on end of date-time range of task based on due date (inclusive). Input
101
101
  * is epoch time in milliseconds.
102
102
  */
103
- dueAtTo?: number;
103
+ dueAtTo?: number | undefined;
104
104
  /**
105
105
  * Filters on start of date-time range of task based on completion date
106
106
  * (inclusive). Input is epoch time in milliseconds.
107
107
  */
108
- completedAtFrom?: number;
108
+ completedAtFrom?: number | undefined;
109
109
  /**
110
110
  * Filters on end of date-time range of task based on completion date (inclusive).
111
111
  * Input is epoch time in milliseconds.
112
112
  */
113
- completedAtTo?: number;
113
+ completedAtTo?: number | undefined;
114
114
  /**
115
115
  * Used for pagination, this opaque cursor will be returned in the `next` URL in
116
116
  * the `Link` response header. Use the relative URL in the `Link` header to
117
117
  * retrieve the `next` set of results.
118
118
  */
119
- cursor?: string;
119
+ cursor?: string | undefined;
120
120
  /**
121
121
  * Maximum number of tasks per result to return. If more results exist, use the
122
122
  * `Link` header to retrieve a relative URL that will return the next set of
123
123
  * results.
124
124
  */
125
- limit?: number;
126
- }): Promise<{
127
- results?: Task[];
128
- _links?: MultiEntityLinks;
125
+ limit?: number | undefined;
126
+ }) => Promise<{
127
+ results?: Task[] | undefined;
128
+ _links?: MultiEntityLinks | undefined;
129
129
  } & {
130
130
  [key: string]: unknown;
131
131
  }>;
@@ -141,7 +141,7 @@ export declare class TaskService extends CommonHttpService {
141
141
  * @scopes-current write:task:confluence
142
142
  * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task#api-tasks-id-put
143
143
  */
144
- updateTask({ id, bodyFormat, requestBody, }: {
144
+ updateTask: ({ id, bodyFormat, requestBody, }: {
145
145
  /**
146
146
  * The ID of the task to be updated. If you don't know the task ID, use Get tasks
147
147
  * and filter the results.
@@ -152,37 +152,37 @@ export declare class TaskService extends CommonHttpService {
152
152
  * available, the representation will be available under a response field of the
153
153
  * same name under the `body` field.
154
154
  */
155
- bodyFormat?: PrimaryBodyRepresentation;
155
+ bodyFormat?: PrimaryBodyRepresentation | undefined;
156
156
  requestBody: {
157
157
  /** ID of the task. */
158
- id?: string;
158
+ id?: string | undefined;
159
159
  /** Local ID of the task. This ID is local to the corresponding page or blog post. */
160
- localId?: string;
160
+ localId?: string | undefined;
161
161
  /** ID of the space the task is in. */
162
- spaceId?: string;
162
+ spaceId?: string | undefined;
163
163
  /** ID of the page the task is in. */
164
- pageId?: string;
164
+ pageId?: string | undefined;
165
165
  /** ID of the blog post the task is in. */
166
- blogPostId?: string;
166
+ blogPostId?: string | undefined;
167
167
  /** Status of the task. */
168
168
  status: "complete" | "incomplete";
169
169
  /** Account ID of the user who created this task. */
170
- createdBy?: string;
170
+ createdBy?: string | undefined;
171
171
  /** Account ID of the user to whom this task is assigned. */
172
- assignedTo?: string;
172
+ assignedTo?: string | undefined;
173
173
  /** Account ID of the user who completed this task. */
174
- completedBy?: string;
174
+ completedBy?: string | undefined;
175
175
  /** Date and time when the task was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */
176
- createdAt?: string;
176
+ createdAt?: string | undefined;
177
177
  /** Date and time when the task was updated. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */
178
- updatedAt?: string;
178
+ updatedAt?: string | undefined;
179
179
  /** Date and time when the task is due. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */
180
- dueAt?: string;
180
+ dueAt?: string | undefined;
181
181
  /** Date and time when the task was completed. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */
182
- completedAt?: string;
182
+ completedAt?: string | undefined;
183
183
  } & {
184
184
  [key: string]: unknown;
185
185
  };
186
- }): Promise<Task>;
186
+ }) => Promise<Task>;
187
187
  static initialize(): void;
188
188
  }
@@ -12,123 +12,126 @@ const task_1 = require("../models/task");
12
12
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
13
13
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task */
14
14
  class TaskService extends CommonHttpService_1.CommonHttpService {
15
- /**
16
- * Returns a specific task.
17
- *
18
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
19
- * Permission to view the containing page or blog post and its corresponding space.
20
- *
21
- * @returns Returned if the requested task is returned.
22
- * @path {GET} /tasks/{id}
23
- * @scopes-current read:task:confluence
24
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task#api-tasks-id-get
25
- */
26
- getTaskById({ id, bodyFormat, }) {
27
- return this.getClientInstance()
28
- .request({
29
- path: "/tasks/{id}",
30
- method: "GET",
31
- pathParams: {
32
- id,
33
- },
34
- query: {
35
- "body-format": bodyFormat,
36
- },
37
- })
38
- .then(this.getClientInstance().responseHandler({
39
- 200: {
40
- "application/json": "json",
41
- },
42
- }))
43
- .then(commonHttpClient.castResponse())
44
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("TaskService.getTaskById.response"))
45
- .then(commonHttpClient.getBody);
46
- }
47
- /**
48
- * Returns all tasks. The number of results is limited by the `limit` parameter
49
- * and additional results (if available)
50
- * will be available through the `next` URL present in the `Link` response header.
51
- *
52
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
53
- * Permission to access the Confluence site ('Can use' global permission).
54
- * Only tasks that the user has permission to view will be returned.
55
- *
56
- * @returns Returned if the requested tasks are returned.
57
- * @path {GET} /tasks
58
- * @scopes-current read:task:confluence
59
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task#api-tasks-get
60
- */
61
- getTasks({ bodyFormat, includeBlankTasks, status, taskId, spaceId, pageId, blogpostId, createdBy, assignedTo, completedBy, createdAtFrom, createdAtTo, dueAtFrom, dueAtTo, completedAtFrom, completedAtTo, cursor, limit, } = {}) {
62
- return this.getClientInstance()
63
- .request({
64
- path: "/tasks",
65
- method: "GET",
66
- query: {
67
- "body-format": bodyFormat,
68
- "include-blank-tasks": includeBlankTasks,
69
- status,
70
- "task-id": taskId,
71
- "space-id": spaceId,
72
- "page-id": pageId,
73
- "blogpost-id": blogpostId,
74
- "created-by": createdBy,
75
- "assigned-to": assignedTo,
76
- "completed-by": completedBy,
77
- "created-at-from": createdAtFrom,
78
- "created-at-to": createdAtTo,
79
- "due-at-from": dueAtFrom,
80
- "due-at-to": dueAtTo,
81
- "completed-at-from": completedAtFrom,
82
- "completed-at-to": completedAtTo,
83
- cursor,
84
- limit,
85
- },
86
- })
87
- .then(this.getClientInstance().responseHandler({
88
- 200: {
89
- "application/json": "json",
90
- },
91
- }))
92
- .then(commonHttpClient.castResponse())
93
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("TaskService.getTasks.response"))
94
- .then(commonHttpClient.getBody);
95
- }
96
- /**
97
- * Update a task by id.
98
- *
99
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
100
- * Permission to edit the containing page or blog post and view its corresponding
101
- * space.
102
- *
103
- * @returns Returned if the requested task is updated.
104
- * @path {PUT} /tasks/{id}
105
- * @scopes-current write:task:confluence
106
- * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task#api-tasks-id-put
107
- */
108
- updateTask({ id, bodyFormat, requestBody, }) {
109
- return this.getClientInstance()
110
- .request({
111
- path: "/tasks/{id}",
112
- method: "PUT",
113
- pathParams: {
114
- id,
115
- },
116
- query: {
117
- "body-format": bodyFormat,
118
- },
119
- headers: {
120
- "Content-Type": "application/json",
121
- },
122
- body: requestBody,
123
- })
124
- .then(this.getClientInstance().responseHandler({
125
- 200: {
126
- "application/json": "json",
127
- },
128
- }))
129
- .then(commonHttpClient.castResponse())
130
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("TaskService.updateTask.response"))
131
- .then(commonHttpClient.getBody);
15
+ constructor() {
16
+ super(...arguments);
17
+ /**
18
+ * Returns a specific task.
19
+ *
20
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
21
+ * Permission to view the containing page or blog post and its corresponding space.
22
+ *
23
+ * @returns Returned if the requested task is returned.
24
+ * @path {GET} /tasks/{id}
25
+ * @scopes-current read:task:confluence
26
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task#api-tasks-id-get
27
+ */
28
+ this.getTaskById = ({ id, bodyFormat, }) => {
29
+ return this.getClientInstance()
30
+ .request({
31
+ path: "/tasks/{id}",
32
+ method: "GET",
33
+ pathParams: {
34
+ id,
35
+ },
36
+ query: {
37
+ "body-format": bodyFormat,
38
+ },
39
+ })
40
+ .then(this.getClientInstance().responseHandler({
41
+ 200: {
42
+ "application/json": "json",
43
+ },
44
+ }))
45
+ .then(commonHttpClient.castResponse())
46
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("TaskService.getTaskById.response"))
47
+ .then(commonHttpClient.getBody);
48
+ };
49
+ /**
50
+ * Returns all tasks. The number of results is limited by the `limit` parameter
51
+ * and additional results (if available)
52
+ * will be available through the `next` URL present in the `Link` response header.
53
+ *
54
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
55
+ * Permission to access the Confluence site ('Can use' global permission).
56
+ * Only tasks that the user has permission to view will be returned.
57
+ *
58
+ * @returns Returned if the requested tasks are returned.
59
+ * @path {GET} /tasks
60
+ * @scopes-current read:task:confluence
61
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task#api-tasks-get
62
+ */
63
+ this.getTasks = ({ bodyFormat, includeBlankTasks, status, taskId, spaceId, pageId, blogpostId, createdBy, assignedTo, completedBy, createdAtFrom, createdAtTo, dueAtFrom, dueAtTo, completedAtFrom, completedAtTo, cursor, limit, } = {}) => {
64
+ return this.getClientInstance()
65
+ .request({
66
+ path: "/tasks",
67
+ method: "GET",
68
+ query: {
69
+ "body-format": bodyFormat,
70
+ "include-blank-tasks": includeBlankTasks,
71
+ status,
72
+ "task-id": taskId,
73
+ "space-id": spaceId,
74
+ "page-id": pageId,
75
+ "blogpost-id": blogpostId,
76
+ "created-by": createdBy,
77
+ "assigned-to": assignedTo,
78
+ "completed-by": completedBy,
79
+ "created-at-from": createdAtFrom,
80
+ "created-at-to": createdAtTo,
81
+ "due-at-from": dueAtFrom,
82
+ "due-at-to": dueAtTo,
83
+ "completed-at-from": completedAtFrom,
84
+ "completed-at-to": completedAtTo,
85
+ cursor,
86
+ limit,
87
+ },
88
+ })
89
+ .then(this.getClientInstance().responseHandler({
90
+ 200: {
91
+ "application/json": "json",
92
+ },
93
+ }))
94
+ .then(commonHttpClient.castResponse())
95
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("TaskService.getTasks.response"))
96
+ .then(commonHttpClient.getBody);
97
+ };
98
+ /**
99
+ * Update a task by id.
100
+ *
101
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
102
+ * Permission to edit the containing page or blog post and view its corresponding
103
+ * space.
104
+ *
105
+ * @returns Returned if the requested task is updated.
106
+ * @path {PUT} /tasks/{id}
107
+ * @scopes-current write:task:confluence
108
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task#api-tasks-id-put
109
+ */
110
+ this.updateTask = ({ id, bodyFormat, requestBody, }) => {
111
+ return this.getClientInstance()
112
+ .request({
113
+ path: "/tasks/{id}",
114
+ method: "PUT",
115
+ pathParams: {
116
+ id,
117
+ },
118
+ query: {
119
+ "body-format": bodyFormat,
120
+ },
121
+ headers: {
122
+ "Content-Type": "application/json",
123
+ },
124
+ body: requestBody,
125
+ })
126
+ .then(this.getClientInstance().responseHandler({
127
+ 200: {
128
+ "application/json": "json",
129
+ },
130
+ }))
131
+ .then(commonHttpClient.castResponse())
132
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("TaskService.updateTask.response"))
133
+ .then(commonHttpClient.getBody);
134
+ };
132
135
  }
133
136
  static initialize() {
134
137
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("TaskService.getTasks.response", zod_1.z