@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
@@ -11,69 +11,73 @@ const longRunningTask_1 = require("../models/longRunningTask");
11
11
  const validationSchemaStorage_1 = require("../validationSchemaStorage");
12
12
  /** @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task */
13
13
  class LongRunningTaskService extends CommonHttpService_1.CommonHttpService {
14
- /**
15
- * Returns information about an active long-running task (e.g. space export),
16
- * such as how long it has been running and the percentage of the task that
17
- * has completed.
18
- *
19
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
20
- * Permission to access the Confluence site ('Can use' global permission).
21
- *
22
- * @returns Returned if the requested task is returned.
23
- * @path {GET} /wiki/rest/api/longtask/{id}
24
- * @scopes-current read:confluence-space.summary
25
- * @scopes-beta read:content.metadata:confluence
26
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task#api-wiki-rest-api-longtask-id-get
27
- */
28
- getTask({ id, }) {
29
- return this.getClientInstance()
30
- .request({
31
- path: "/wiki/rest/api/longtask/{id}",
32
- method: "GET",
33
- pathParams: {
34
- id,
35
- },
36
- })
37
- .then(this.getClientInstance().responseHandler({
38
- 200: {
39
- "application/json": "json",
40
- },
41
- }))
42
- .then(commonHttpClient.castResponse())
43
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("LongRunningTaskService.getTask.response"))
44
- .then(commonHttpClient.getBody);
45
- }
46
- /**
47
- * Returns information about all active long-running tasks (e.g. space export),
48
- * such as how long each task has been running and the percentage of each task
49
- * that has completed.
50
- *
51
- * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
52
- * Permission to access the Confluence site ('Can use' global permission).
53
- *
54
- * @returns Returned if the requested tasks are returned.
55
- * @path {GET} /wiki/rest/api/longtask
56
- * @scopes-current read:content.metadata:confluence
57
- * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task#api-wiki-rest-api-longtask-get
58
- */
59
- getTasks({ start, limit, } = {}) {
60
- return this.getClientInstance()
61
- .request({
62
- path: "/wiki/rest/api/longtask",
63
- method: "GET",
64
- query: {
65
- start,
66
- limit,
67
- },
68
- })
69
- .then(this.getClientInstance().responseHandler({
70
- 200: {
71
- "application/json": "json",
72
- },
73
- }))
74
- .then(commonHttpClient.castResponse())
75
- .then(validationSchemaStorage_1.validationSchemaStorage.validator("LongRunningTaskService.getTasks.response"))
76
- .then(commonHttpClient.getBody);
14
+ constructor() {
15
+ super(...arguments);
16
+ /**
17
+ * Returns information about an active long-running task (e.g. space export),
18
+ * such as how long it has been running and the percentage of the task that
19
+ * has completed.
20
+ *
21
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
22
+ * Permission to access the Confluence site ('Can use' global permission).
23
+ *
24
+ * @returns Returned if the requested task is returned.
25
+ * @path {GET} /wiki/rest/api/longtask/{id}
26
+ * @scopes-current read:confluence-space.summary
27
+ * @scopes-beta read:content.metadata:confluence
28
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task#api-wiki-rest-api-longtask-id-get
29
+ */
30
+ this.getTask = ({ id, }) => {
31
+ return this.getClientInstance()
32
+ .request({
33
+ path: "/wiki/rest/api/longtask/{id}",
34
+ method: "GET",
35
+ pathParams: {
36
+ id,
37
+ },
38
+ })
39
+ .then(this.getClientInstance().responseHandler({
40
+ 200: {
41
+ "application/json": "json",
42
+ },
43
+ }))
44
+ .then(commonHttpClient.castResponse())
45
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("LongRunningTaskService.getTask.response"))
46
+ .then(commonHttpClient.getBody);
47
+ };
48
+ /**
49
+ * Returns information about all active long-running tasks (e.g. space export),
50
+ * such as how long each task has been running and the percentage of each task
51
+ * that has completed.
52
+ *
53
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
54
+ * Permission to access the Confluence site ('Can use' global permission).
55
+ *
56
+ * @returns Returned if the requested tasks are returned.
57
+ * @path {GET} /wiki/rest/api/longtask
58
+ * @scopes-current read:content.metadata:confluence
59
+ * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-long-running-task#api-wiki-rest-api-longtask-get
60
+ */
61
+ this.getTasks = ({ key, start, limit, } = {}) => {
62
+ return this.getClientInstance()
63
+ .request({
64
+ path: "/wiki/rest/api/longtask",
65
+ method: "GET",
66
+ query: {
67
+ key,
68
+ start,
69
+ limit,
70
+ },
71
+ })
72
+ .then(this.getClientInstance().responseHandler({
73
+ 200: {
74
+ "application/json": "json",
75
+ },
76
+ }))
77
+ .then(commonHttpClient.castResponse())
78
+ .then(validationSchemaStorage_1.validationSchemaStorage.validator("LongRunningTaskService.getTasks.response"))
79
+ .then(commonHttpClient.getBody);
80
+ };
77
81
  }
78
82
  static initialize() {
79
83
  validationSchemaStorage_1.validationSchemaStorage.registerExtensible("LongRunningTaskService.getTasks.response", zod_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"LongRunningTaskService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/LongRunningTaskService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,+DAImC;AACnC,wEAAqE;AACrE,gGAAgG;AAChG,MAAa,sBAAuB,SAAQ,qCAAiB;IAC3D;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,EACN,EAAE,GAIH;QACC,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,8BAA8B;YACpC,MAAM,EAAE,KAAK;YACb,UAAU,EAAE;gBACV,EAAE;aACH;SACF,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,yCAAyC,CAC1C,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EACP,KAAK,EACL,KAAK,MASH,EAAE;QACJ,OAAO,IAAI,CAAC,iBAAiB,EAAE;aAC5B,OAAO,CAAC;YACP,IAAI,EAAE,yBAAyB;YAC/B,MAAM,EAAE,KAAK;YACb,KAAK,EAAE;gBACL,KAAK;gBACL,KAAK;aACN;SACF,CAAC;aACD,IAAI,CACH,IAAI,CAAC,iBAAiB,EAAE,CAAC,eAAe,CAAC;YACvC,GAAG,EAAE;gBACH,kBAAkB,EAAE,MAAM;aAC3B;SACF,CAAC,CACH;aACA,IAAI,CACH,gBAAgB,CAAC,YAAY,EAIzB,CACL;aACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,0CAA0C,CAC3C,CACF;aACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IACD,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,0CAA0C,EAC1C,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,iDAAuB,CAAC,IAAI,CAAC,qBAAqB,CAAC;SAC1D,CAAC;aACD,QAAQ,CAAC,0CAA0C,CAAC,CACxD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,yCAAyC,EACzC,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,iDAAuB,CAAC,IAAI,CAAC,yBAAyB,CAAC;SAC9D,CAAC;aACD,QAAQ,CAAC,yCAAyC,CAAC,CACvD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,0DAAwC;SACzC,CAAC,CAAC;IACL,CAAC;CACF;AAlID,wDAkIC"}
1
+ {"version":3,"file":"LongRunningTaskService.js","sourceRoot":"","sources":["../../../../src/openapi/v1/services/LongRunningTaskService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,6BAAwB;AAExB,6DAA6D;AAC7D,iEAA8D;AAC9D,+DAImC;AACnC,wEAAqE;AACrE,gGAAgG;AAChG,MAAa,sBAAuB,SAAQ,qCAAiB;IAA7D;;QACE;;;;;;;;;;;;;WAaG;QACH,YAAO,GAAG,CAAC,EACT,EAAE,GAIH,EAAoC,EAAE;YACrC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,8BAA8B;gBACpC,MAAM,EAAE,KAAK;gBACb,UAAU,EAAE;oBACV,EAAE;iBACH;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,EAIzB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,yCAAyC,CAC1C,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;QACF;;;;;;;;;;;;WAYG;QACH,aAAQ,GAAG,CAAC,EACV,GAAG,EACH,KAAK,EACL,KAAK,MAWH,EAAE,EAAgC,EAAE;YACtC,OAAO,IAAI,CAAC,iBAAiB,EAAE;iBAC5B,OAAO,CAAC;gBACP,IAAI,EAAE,yBAAyB;gBAC/B,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE;oBACL,GAAG;oBACH,KAAK;oBACL,KAAK;iBACN;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,EAIzB,CACL;iBACA,IAAI,CACH,iDAAuB,CAAC,SAAS,CAC/B,0CAA0C,CAC3C,CACF;iBACA,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC;IA0BJ,CAAC;IAzBC,MAAM,CAAC,UAAU;QACf,iDAAuB,CAAC,kBAAkB,CACxC,0CAA0C,EAC1C,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,iDAAuB,CAAC,IAAI,CAAC,qBAAqB,CAAC;SAC1D,CAAC;aACD,QAAQ,CAAC,0CAA0C,CAAC,CACxD,CAAC;QACF,iDAAuB,CAAC,kBAAkB,CACxC,yCAAyC,EACzC,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,iDAAuB,CAAC,IAAI,CAAC,yBAAyB,CAAC;SAC9D,CAAC;aACD,QAAQ,CAAC,yCAAyC,CAAC,CACvD,CAAC;QACF,iDAAuB,CAAC,YAAY,CAAC;YACnC,0DAAwC;SACzC,CAAC,CAAC;IACL,CAAC;CACF;AAtID,wDAsIC"}
@@ -22,7 +22,7 @@ export declare class RelationService extends CommonHttpService {
22
22
  * read:content:confluence, write:relation:confluence
23
23
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-put
24
24
  */
25
- createRelationship({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, }: {
25
+ createRelationship: ({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, }: {
26
26
  /**
27
27
  * The name of the relationship. This method supports the 'favourite'
28
28
  * (i.e. 'save for later') relationship. You can also specify any other
@@ -61,23 +61,23 @@ export declare class RelationService extends CommonHttpService {
61
61
  * The status of the source. This parameter is only used when the
62
62
  * `sourceType` is 'content'.
63
63
  */
64
- sourceStatus?: string;
64
+ sourceStatus?: string | undefined;
65
65
  /**
66
66
  * The status of the target. This parameter is only used when the
67
67
  * `targetType` is 'content'.
68
68
  */
69
- targetStatus?: string;
69
+ targetStatus?: string | undefined;
70
70
  /**
71
71
  * The version of the source. This parameter is only used when the
72
72
  * `sourceType` is 'content' and the `sourceStatus` is 'historical'.
73
73
  */
74
- sourceVersion?: number;
74
+ sourceVersion?: number | undefined;
75
75
  /**
76
76
  * The version of the target. This parameter is only used when the
77
77
  * `targetType` is 'content' and the `targetStatus` is 'historical'.
78
78
  */
79
- targetVersion?: number;
80
- }): Promise<Relation>;
79
+ targetVersion?: number | undefined;
80
+ }) => Promise<Relation>;
81
81
  /**
82
82
  * Deletes a relationship between two entities (user, space, content).
83
83
  *
@@ -93,7 +93,7 @@ export declare class RelationService extends CommonHttpService {
93
93
  * @scopes-beta write:relation:confluence
94
94
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-delete
95
95
  */
96
- deleteRelationship({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, }: {
96
+ deleteRelationship: ({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, }: {
97
97
  /** The name of the relationship. */
98
98
  relationName: string;
99
99
  /**
@@ -128,23 +128,23 @@ export declare class RelationService extends CommonHttpService {
128
128
  * The status of the source. This parameter is only used when the
129
129
  * `sourceType` is 'content'.
130
130
  */
131
- sourceStatus?: string;
131
+ sourceStatus?: string | undefined;
132
132
  /**
133
133
  * The status of the target. This parameter is only used when the
134
134
  * `targetType` is 'content'.
135
135
  */
136
- targetStatus?: string;
136
+ targetStatus?: string | undefined;
137
137
  /**
138
138
  * The version of the source. This parameter is only used when the
139
139
  * `sourceType` is 'content' and the `sourceStatus` is 'historical'.
140
140
  */
141
- sourceVersion?: number;
141
+ sourceVersion?: number | undefined;
142
142
  /**
143
143
  * The version of the target. This parameter is only used when the
144
144
  * `targetType` is 'content' and the `targetStatus` is 'historical'.
145
145
  */
146
- targetVersion?: number;
147
- }): Promise<void>;
146
+ targetVersion?: number | undefined;
147
+ }) => Promise<void>;
148
148
  /**
149
149
  * Returns all target entities that have a particular relationship to the
150
150
  * source entity. Note, relationships are one way.
@@ -164,7 +164,7 @@ export declare class RelationService extends CommonHttpService {
164
164
  * @scopes-beta read:relation:confluence, read:content-details:confluence
165
165
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation#api-wiki-rest-api-relation-relationname-to-targettype-targetkey-from-sourcetype-get
166
166
  */
167
- findSourcesForTarget({ relationName, sourceType, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, start, limit, }: {
167
+ findSourcesForTarget: ({ relationName, sourceType, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, start, limit, }: {
168
168
  /**
169
169
  * The name of the relationship. This method supports relationships created via
170
170
  * [Create
@@ -194,22 +194,22 @@ export declare class RelationService extends CommonHttpService {
194
194
  * The status of the source. This parameter is only used when the
195
195
  * `sourceType` is 'content'.
196
196
  */
197
- sourceStatus?: string;
197
+ sourceStatus?: string | undefined;
198
198
  /**
199
199
  * The status of the target. This parameter is only used when the
200
200
  * `targetType` is 'content'.
201
201
  */
202
- targetStatus?: string;
202
+ targetStatus?: string | undefined;
203
203
  /**
204
204
  * The version of the source. This parameter is only used when the
205
205
  * `sourceType` is 'content' and the `sourceStatus` is 'historical'.
206
206
  */
207
- sourceVersion?: number;
207
+ sourceVersion?: number | undefined;
208
208
  /**
209
209
  * The version of the target. This parameter is only used when the
210
210
  * `targetType` is 'content' and the `targetStatus` is 'historical'.
211
211
  */
212
- targetVersion?: number;
212
+ targetVersion?: number | undefined;
213
213
  /**
214
214
  * A multi-value parameter indicating which properties of the response
215
215
  * object to expand.
@@ -219,15 +219,15 @@ export declare class RelationService extends CommonHttpService {
219
219
  * - `source` returns the source entity.
220
220
  * - `target` returns the target entity.
221
221
  */
222
- expand?: ("relationData" | "source" | "target")[];
222
+ expand?: ("source" | "target" | "relationData")[] | undefined;
223
223
  /** The starting index of the returned relationships. */
224
- start?: number;
224
+ start?: number | undefined;
225
225
  /**
226
226
  * The maximum number of relationships to return per page.
227
227
  * Note, this may be restricted by fixed system limits.
228
228
  */
229
- limit?: number;
230
- }): Promise<RelationArray>;
229
+ limit?: number | undefined;
230
+ }) => Promise<RelationArray>;
231
231
  /**
232
232
  * Returns all target entities that have a particular relationship to the
233
233
  * source entity. Note, relationships are one way.
@@ -247,7 +247,7 @@ export declare class RelationService extends CommonHttpService {
247
247
  * @scopes-beta read:relation:confluence, read:content-details:confluence
248
248
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-get
249
249
  */
250
- findTargetFromSource({ relationName, sourceType, sourceKey, targetType, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, start, limit, }: {
250
+ findTargetFromSource: ({ relationName, sourceType, sourceKey, targetType, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, start, limit, }: {
251
251
  /**
252
252
  * The name of the relationship. This method supports relationships created via
253
253
  * [Create
@@ -277,22 +277,22 @@ export declare class RelationService extends CommonHttpService {
277
277
  * The status of the source. This parameter is only used when the
278
278
  * `sourceType` is 'content'.
279
279
  */
280
- sourceStatus?: string;
280
+ sourceStatus?: string | undefined;
281
281
  /**
282
282
  * The status of the target. This parameter is only used when the
283
283
  * `targetType` is 'content'.
284
284
  */
285
- targetStatus?: string;
285
+ targetStatus?: string | undefined;
286
286
  /**
287
287
  * The version of the source. This parameter is only used when the
288
288
  * `sourceType` is 'content' and the `sourceStatus` is 'historical'.
289
289
  */
290
- sourceVersion?: number;
290
+ sourceVersion?: number | undefined;
291
291
  /**
292
292
  * The version of the target. This parameter is only used when the
293
293
  * `targetType` is 'content' and the `targetStatus` is 'historical'.
294
294
  */
295
- targetVersion?: number;
295
+ targetVersion?: number | undefined;
296
296
  /**
297
297
  * A multi-value parameter indicating which properties of the response
298
298
  * object to expand.
@@ -302,15 +302,15 @@ export declare class RelationService extends CommonHttpService {
302
302
  * - `source` returns the source entity.
303
303
  * - `target` returns the target entity.
304
304
  */
305
- expand?: ("relationData" | "source" | "target")[];
305
+ expand?: ("source" | "target" | "relationData")[] | undefined;
306
306
  /** The starting index of the returned relationships. */
307
- start?: number;
307
+ start?: number | undefined;
308
308
  /**
309
309
  * The maximum number of relationships to return per page.
310
310
  * Note, this may be restricted by fixed system limits.
311
311
  */
312
- limit?: number;
313
- }): Promise<RelationArray>;
312
+ limit?: number | undefined;
313
+ }) => Promise<RelationArray>;
314
314
  /**
315
315
  * Find whether a particular type of relationship exists from a source
316
316
  * entity to a target entity. Note, relationships are one way.
@@ -329,7 +329,7 @@ export declare class RelationService extends CommonHttpService {
329
329
  * @scopes-beta read:relation:confluence, read:content-details:confluence
330
330
  * @see https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-relation#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-get
331
331
  */
332
- getRelationship({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, }: {
332
+ getRelationship: ({ relationName, sourceType, sourceKey, targetType, targetKey, sourceStatus, targetStatus, sourceVersion, targetVersion, expand, }: {
333
333
  /**
334
334
  * The name of the relationship. This method supports the 'favourite'
335
335
  * (i.e. 'save for later') relationship as well as any other relationship
@@ -379,22 +379,22 @@ export declare class RelationService extends CommonHttpService {
379
379
  * The status of the source. This parameter is only used when the
380
380
  * `sourceType` is 'content'.
381
381
  */
382
- sourceStatus?: string;
382
+ sourceStatus?: string | undefined;
383
383
  /**
384
384
  * The status of the target. This parameter is only used when the
385
385
  * `targetType` is 'content'.
386
386
  */
387
- targetStatus?: string;
387
+ targetStatus?: string | undefined;
388
388
  /**
389
389
  * The version of the source. This parameter is only used when the
390
390
  * `sourceType` is 'content' and the `sourceStatus` is 'historical'.
391
391
  */
392
- sourceVersion?: number;
392
+ sourceVersion?: number | undefined;
393
393
  /**
394
394
  * The version of the target. This parameter is only used when the
395
395
  * `targetType` is 'content' and the `targetStatus` is 'historical'.
396
396
  */
397
- targetVersion?: number;
397
+ targetVersion?: number | undefined;
398
398
  /**
399
399
  * A multi-value parameter indicating which properties of the response
400
400
  * object to expand.
@@ -404,7 +404,7 @@ export declare class RelationService extends CommonHttpService {
404
404
  * - `source` returns the source entity.
405
405
  * - `target` returns the target entity.
406
406
  */
407
- expand?: ("relationData" | "source" | "target")[];
408
- }): Promise<Relation>;
407
+ expand?: ("source" | "target" | "relationData")[] | undefined;
408
+ }) => Promise<Relation>;
409
409
  static initialize(): void;
410
410
  }