confluence.js 1.6.3 → 1.7.1

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 (168) hide show
  1. package/.prettierrc +8 -3
  2. package/CHANGELOG.md +4 -0
  3. package/README.md +16 -0
  4. package/out/api/contentChildrenAndDescendants.js +3 -0
  5. package/out/api/contentChildrenAndDescendants.js.map +1 -1
  6. package/out/api/models/addContentRestriction.d.ts +8 -3
  7. package/out/api/models/appDescriptor.d.ts +6 -3
  8. package/out/api/models/asyncContentBody.d.ts +2 -2
  9. package/out/api/models/attachmentUpdate.d.ts +1 -1
  10. package/out/api/models/auditRecordCreate.d.ts +6 -2
  11. package/out/api/models/contentBlueprintDraft.d.ts +2 -1
  12. package/out/api/models/contentRestrictionUpdate.d.ts +8 -3
  13. package/out/api/models/contentTemplateUpdate.d.ts +4 -1
  14. package/out/api/models/labeledContentType.js +1 -1
  15. package/out/api/models/labeledContentType.js.map +1 -1
  16. package/out/api/models/lifecycle.d.ts +6 -2
  17. package/out/api/parameters/addLabelsToContent.d.ts +2 -1
  18. package/out/api/parameters/createContent.d.ts +12 -3
  19. package/out/api/parameters/createContent.js +13 -4
  20. package/out/api/parameters/createContent.js.map +1 -1
  21. package/out/api/parameters/createRelationship.d.ts +4 -1
  22. package/out/api/parameters/createUserProperty.d.ts +2 -2
  23. package/out/api/parameters/delete.d.ts +4 -1
  24. package/out/api/parameters/deleteRelationship.d.ts +8 -5
  25. package/out/api/parameters/deleteUserProperty.d.ts +2 -2
  26. package/out/api/parameters/findSourcesForTarget.d.ts +2 -1
  27. package/out/api/parameters/findTargetFromSource.d.ts +2 -1
  28. package/out/api/parameters/getAttachments.d.ts +12 -3
  29. package/out/api/parameters/getAttachments.js +13 -4
  30. package/out/api/parameters/getAttachments.js.map +1 -1
  31. package/out/api/parameters/getAvailableContentStates.d.ts +1 -1
  32. package/out/api/parameters/getContent.d.ts +16 -4
  33. package/out/api/parameters/getContent.js +13 -4
  34. package/out/api/parameters/getContent.js.map +1 -1
  35. package/out/api/parameters/getContentById.d.ts +12 -3
  36. package/out/api/parameters/getContentById.js +13 -4
  37. package/out/api/parameters/getContentById.js.map +1 -1
  38. package/out/api/parameters/getContentProperties.d.ts +4 -2
  39. package/out/api/parameters/getContentProperty.d.ts +10 -8
  40. package/out/api/parameters/getContentTemplates.d.ts +4 -1
  41. package/out/api/parameters/getContentVersion.d.ts +2 -1
  42. package/out/api/parameters/getContentVersions.d.ts +2 -1
  43. package/out/api/parameters/getDescendantsOfType.d.ts +12 -3
  44. package/out/api/parameters/getDescendantsOfType.js +13 -4
  45. package/out/api/parameters/getDescendantsOfType.js.map +1 -1
  46. package/out/api/parameters/getHistoryForContent.d.ts +2 -1
  47. package/out/api/parameters/getLabelsForContent.d.ts +2 -1
  48. package/out/api/parameters/getRelationship.d.ts +6 -2
  49. package/out/api/parameters/getSpaces.d.ts +10 -3
  50. package/out/api/parameters/removeGroupById.d.ts +2 -2
  51. package/out/api/parameters/removeGroupByName.d.ts +2 -2
  52. package/out/api/parameters/removeModules.d.ts +2 -1
  53. package/out/api/parameters/restoreContentVersion.d.ts +2 -1
  54. package/out/api/parameters/search.d.ts +2 -2
  55. package/out/api/parameters/updateAttachmentProperties.d.ts +15 -15
  56. package/out/api/parameters/updateUserProperty.d.ts +2 -2
  57. package/out/clients/baseClient.d.ts +0 -1
  58. package/out/clients/baseClient.js +2 -2
  59. package/out/clients/baseClient.js.map +1 -1
  60. package/out/clients/confluenceClient.d.ts +2 -0
  61. package/out/clients/confluenceClient.js +3 -2
  62. package/out/clients/confluenceClient.js.map +1 -1
  63. package/out/clients/serverClient.d.ts +2 -1
  64. package/out/clients/serverClient.js +3 -3
  65. package/out/clients/serverClient.js.map +1 -1
  66. package/out/config.d.ts +7 -7
  67. package/out/server/parameters/createAuditRecord.d.ts +6 -2
  68. package/out/server/parameters/getAttachments.d.ts +12 -3
  69. package/out/server/parameters/getAttachments.js +13 -4
  70. package/out/server/parameters/getAttachments.js.map +1 -1
  71. package/out/services/authenticationService/authenticationService.js +1 -1
  72. package/out/services/authenticationService/authenticationService.js.map +1 -1
  73. package/out/services/authenticationService/authentications/createJWTAuthentication.js +1 -1
  74. package/out/services/authenticationService/authentications/createJWTAuthentication.js.map +1 -1
  75. package/out/services/authenticationService/base64Encoder.d.ts +1 -3
  76. package/out/services/authenticationService/base64Encoder.js +3 -5
  77. package/out/services/authenticationService/base64Encoder.js.map +1 -1
  78. package/out/utilityTypes.d.ts +5 -1
  79. package/package.json +25 -25
  80. package/src/api/audit.ts +9 -9
  81. package/src/api/content.ts +8 -8
  82. package/src/api/contentAttachments.ts +10 -10
  83. package/src/api/contentBody.ts +6 -6
  84. package/src/api/contentChildrenAndDescendants.ts +14 -11
  85. package/src/api/contentComments.ts +2 -2
  86. package/src/api/contentContentState.ts +10 -10
  87. package/src/api/contentLabels.ts +7 -7
  88. package/src/api/contentMacroBody.ts +6 -6
  89. package/src/api/contentPermissions.ts +4 -4
  90. package/src/api/contentProperties.ts +11 -11
  91. package/src/api/contentRestrictions.ts +26 -26
  92. package/src/api/contentStates.ts +12 -12
  93. package/src/api/contentVersions.ts +6 -6
  94. package/src/api/contentWatches.ts +11 -11
  95. package/src/api/dynamicModules.ts +1 -1
  96. package/src/api/experimental.ts +9 -9
  97. package/src/api/group.ts +18 -18
  98. package/src/api/inlineTasks.ts +1 -1
  99. package/src/api/labelInfo.ts +2 -2
  100. package/src/api/longRunningTask.ts +2 -2
  101. package/src/api/models/addContentRestriction.ts +8 -3
  102. package/src/api/models/appDescriptor.ts +6 -3
  103. package/src/api/models/asyncContentBody.ts +2 -2
  104. package/src/api/models/attachmentContainer.ts +1 -1
  105. package/src/api/models/attachmentUpdate.ts +1 -1
  106. package/src/api/models/auditRecordCreate.ts +6 -2
  107. package/src/api/models/contentBlueprintDraft.ts +2 -1
  108. package/src/api/models/contentRestrictionUpdate.ts +8 -3
  109. package/src/api/models/contentTemplateUpdate.ts +4 -1
  110. package/src/api/models/lifecycle.ts +6 -2
  111. package/src/api/parameters/addLabelsToContent.ts +2 -1
  112. package/src/api/parameters/createContent.ts +12 -3
  113. package/src/api/parameters/createRelationship.ts +4 -1
  114. package/src/api/parameters/createUserProperty.ts +2 -2
  115. package/src/api/parameters/delete.ts +4 -1
  116. package/src/api/parameters/deleteRelationship.ts +8 -5
  117. package/src/api/parameters/deleteUserProperty.ts +2 -2
  118. package/src/api/parameters/findSourcesForTarget.ts +2 -1
  119. package/src/api/parameters/findTargetFromSource.ts +2 -1
  120. package/src/api/parameters/getAttachments.ts +12 -3
  121. package/src/api/parameters/getAvailableContentStates.ts +1 -1
  122. package/src/api/parameters/getContent.ts +16 -4
  123. package/src/api/parameters/getContentById.ts +12 -3
  124. package/src/api/parameters/getContentProperties.ts +4 -2
  125. package/src/api/parameters/getContentProperty.ts +10 -8
  126. package/src/api/parameters/getContentTemplates.ts +4 -1
  127. package/src/api/parameters/getContentVersion.ts +2 -1
  128. package/src/api/parameters/getContentVersions.ts +2 -1
  129. package/src/api/parameters/getDescendantsOfType.ts +12 -3
  130. package/src/api/parameters/getHistoryForContent.ts +2 -1
  131. package/src/api/parameters/getLabelsForContent.ts +2 -1
  132. package/src/api/parameters/getRelationship.ts +6 -2
  133. package/src/api/parameters/getSpaces.ts +10 -3
  134. package/src/api/parameters/removeGroupById.ts +2 -2
  135. package/src/api/parameters/removeGroupByName.ts +2 -2
  136. package/src/api/parameters/removeModules.ts +2 -1
  137. package/src/api/parameters/restoreContentVersion.ts +2 -1
  138. package/src/api/parameters/search.ts +2 -2
  139. package/src/api/parameters/updateAttachmentProperties.ts +15 -15
  140. package/src/api/parameters/updateUserProperty.ts +2 -2
  141. package/src/api/relation.ts +8 -8
  142. package/src/api/search.ts +7 -7
  143. package/src/api/settings.ts +12 -12
  144. package/src/api/space.ts +7 -7
  145. package/src/api/spacePermissions.ts +5 -5
  146. package/src/api/spaceProperties.ts +10 -10
  147. package/src/api/spaceSettings.ts +4 -4
  148. package/src/api/template.ts +10 -10
  149. package/src/api/themes.ts +1 -1
  150. package/src/api/users.ts +13 -13
  151. package/src/clients/baseClient.ts +4 -4
  152. package/src/clients/confluenceClient.ts +8 -0
  153. package/src/clients/serverClient.ts +7 -1
  154. package/src/config.ts +19 -11
  155. package/src/server/audit.ts +9 -9
  156. package/src/server/content.ts +49 -49
  157. package/src/server/contentBody.ts +2 -2
  158. package/src/server/group.ts +2 -2
  159. package/src/server/longTask.ts +1 -1
  160. package/src/server/parameters/createAuditRecord.ts +6 -2
  161. package/src/server/parameters/getAttachments.ts +12 -3
  162. package/src/server/parameters/updateAttachmentData.ts +1 -1
  163. package/src/server/search.ts +2 -2
  164. package/src/server/space.ts +16 -16
  165. package/src/server/user.ts +7 -7
  166. package/src/services/authenticationService/authentications/createJWTAuthentication.ts +1 -4
  167. package/src/services/authenticationService/base64Encoder.ts +5 -5
  168. package/src/utilityTypes.ts +7 -1
@@ -56,7 +56,10 @@ var GetContent;
56
56
  Expand["UpdateGroupRestriction"] = "restrictions.update.restrictions.group";
57
57
  /** Returns the history of the content, including the date it was created. */
58
58
  Expand["History"] = "history";
59
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
59
+ /**
60
+ * Returns information about the most recent update of the content, including who updated it and when it was
61
+ * updated.
62
+ */
60
63
  Expand["LastUpdated"] = "history.lastUpdated";
61
64
  /** Returns information about the update prior to the current content update. */
62
65
  Expand["PreviousVersion"] = "history.previousVersion";
@@ -66,9 +69,15 @@ var GetContent;
66
69
  Expand["NextVersion"] = "history.nextVersion";
67
70
  /** Returns the parent page, if the content is a page. */
68
71
  Expand["Ancestors"] = "ancestors";
69
- /** Returns the body of the content in different formats, including the editor format, view format, and export format. */
72
+ /**
73
+ * Returns the body of the content in different formats, including the editor format, view format, and export
74
+ * format.
75
+ */
70
76
  Expand["Body"] = "body";
71
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
77
+ /**
78
+ * Returns information about the most recent update of the content, including who updated it and when it was
79
+ * updated.
80
+ */
72
81
  Expand["Version"] = "version";
73
82
  /** Returns pages that are descendants at any level below the content. */
74
83
  Expand["PageDescendant"] = "descendants.page";
@@ -86,5 +95,5 @@ var GetContent;
86
95
  /** Returns the resolution status of each comment. */
87
96
  Expand["Resolution"] = "extensions.resolution";
88
97
  })(Expand = GetContent.Expand || (GetContent.Expand = {}));
89
- })(GetContent = exports.GetContent || (exports.GetContent = {}));
98
+ })(GetContent || (exports.GetContent = GetContent = {}));
90
99
  //# sourceMappingURL=getContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getContent.js","sourceRoot":"","sources":["../../../src/api/parameters/getContent.ts"],"names":[],"mappings":";;;AAgCA,IAAiB,UAAU,CAmF1B;AAnFD,WAAiB,UAAU;IACzB,IAAY,MAiFX;IAjFD,WAAY,MAAM;QAChB;;;WAGG;QACH,0CAAgC,CAAA;QAChC,mDAAmD;QACnD,uDAA6C,CAAA;QAC7C,gDAAgD;QAChD,iDAAuC,CAAA;QACvC,mDAAmD;QACnD,2CAAiC,CAAA;QACjC;;;WAGG;QACH,iCAAuB,CAAA;QACvB;;;WAGG;QACH,sDAA4C,CAAA;QAC5C,iFAAiF;QACjF,oDAA0C,CAAA;QAC1C,8DAA8D;QAC9D,4CAAkC,CAAA;QAClC,+CAA+C;QAC/C,gDAAsC,CAAA;QACtC,uFAAuF;QACvF,mCAAyB,CAAA;QACzB,qFAAqF;QACrF,wCAA8B,CAAA;QAC9B,+CAA+C;QAC/C,oDAA0C,CAAA;QAC1C,2CAA2C;QAC3C,8CAAoC,CAAA;QACpC,kEAAkE;QAClE,qEAA2D,CAAA;QAC3D;;;WAGG;QACH,uEAA6D,CAAA;QAC7D,oEAAoE;QACpE,yEAA+D,CAAA;QAC/D;;;WAGG;QACH,2EAAiE,CAAA;QACjE,6EAA6E;QAC7E,6BAAmB,CAAA;QACnB,yHAAyH;QACzH,6CAAmC,CAAA;QACnC,gFAAgF;QAChF,qDAA2C,CAAA;QAC3C,oEAAoE;QACpE,+CAAqC,CAAA;QACrC,gFAAgF;QAChF,6CAAmC,CAAA;QACnC,yDAAyD;QACzD,iCAAuB,CAAA;QACvB,yHAAyH;QACzH,uBAAa,CAAA;QACb,yHAAyH;QACzH,6BAAmB,CAAA;QACnB,yEAAyE;QACzE,6CAAmC,CAAA;QACnC,8EAA8E;QAC9E,yDAA+C,CAAA;QAC/C,uEAAuE;QACvE,mDAAyC,CAAA;QACzC;;;WAGG;QACH,yBAAe,CAAA;QACf,kDAAkD;QAClD,0DAAgD,CAAA;QAChD,qDAAqD;QACrD,8CAAoC,CAAA;IACtC,CAAC,EAjFW,MAAM,GAAN,iBAAM,KAAN,iBAAM,QAiFjB;AACH,CAAC,EAnFgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAmF1B"}
1
+ {"version":3,"file":"getContent.js","sourceRoot":"","sources":["../../../src/api/parameters/getContent.ts"],"names":[],"mappings":";;;AAmCA,IAAiB,UAAU,CA4F1B;AA5FD,WAAiB,UAAU;IACzB,IAAY,MA0FX;IA1FD,WAAY,MAAM;QAChB;;;WAGG;QACH,0CAAgC,CAAA;QAChC,mDAAmD;QACnD,uDAA6C,CAAA;QAC7C,gDAAgD;QAChD,iDAAuC,CAAA;QACvC,mDAAmD;QACnD,2CAAiC,CAAA;QACjC;;;WAGG;QACH,iCAAuB,CAAA;QACvB;;;WAGG;QACH,sDAA4C,CAAA;QAC5C,iFAAiF;QACjF,oDAA0C,CAAA;QAC1C,8DAA8D;QAC9D,4CAAkC,CAAA;QAClC,+CAA+C;QAC/C,gDAAsC,CAAA;QACtC,uFAAuF;QACvF,mCAAyB,CAAA;QACzB,qFAAqF;QACrF,wCAA8B,CAAA;QAC9B,+CAA+C;QAC/C,oDAA0C,CAAA;QAC1C,2CAA2C;QAC3C,8CAAoC,CAAA;QACpC,kEAAkE;QAClE,qEAA2D,CAAA;QAC3D;;;WAGG;QACH,uEAA6D,CAAA;QAC7D,oEAAoE;QACpE,yEAA+D,CAAA;QAC/D;;;WAGG;QACH,2EAAiE,CAAA;QACjE,6EAA6E;QAC7E,6BAAmB,CAAA;QACnB;;;WAGG;QACH,6CAAmC,CAAA;QACnC,gFAAgF;QAChF,qDAA2C,CAAA;QAC3C,oEAAoE;QACpE,+CAAqC,CAAA;QACrC,gFAAgF;QAChF,6CAAmC,CAAA;QACnC,yDAAyD;QACzD,iCAAuB,CAAA;QACvB;;;WAGG;QACH,uBAAa,CAAA;QACb;;;WAGG;QACH,6BAAmB,CAAA;QACnB,yEAAyE;QACzE,6CAAmC,CAAA;QACnC,8EAA8E;QAC9E,yDAA+C,CAAA;QAC/C,uEAAuE;QACvE,mDAAyC,CAAA;QACzC;;;WAGG;QACH,yBAAe,CAAA;QACf,kDAAkD;QAClD,0DAAgD,CAAA;QAChD,qDAAqD;QACrD,8CAAoC,CAAA;IACtC,CAAC,EA1FW,MAAM,GAAN,iBAAM,KAAN,iBAAM,QA0FjB;AACH,CAAC,EA5FgB,UAAU,0BAAV,UAAU,QA4F1B"}
@@ -79,7 +79,10 @@ export declare namespace GetContentById {
79
79
  UpdateGroupRestriction = "restrictions.update.restrictions.group",
80
80
  /** Returns the history of the content, including the date it was created. */
81
81
  History = "history",
82
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
82
+ /**
83
+ * Returns information about the most recent update of the content, including who updated it and when it was
84
+ * updated.
85
+ */
83
86
  LastUpdated = "history.lastUpdated",
84
87
  /** Returns information about the update prior to the current content update. */
85
88
  PreviousVersion = "history.previousVersion",
@@ -89,9 +92,15 @@ export declare namespace GetContentById {
89
92
  NextVersion = "history.nextVersion",
90
93
  /** Returns the parent page, if the content is a page. */
91
94
  Ancestors = "ancestors",
92
- /** Returns the body of the content in different formats, including the editor format, view format, and export format. */
95
+ /**
96
+ * Returns the body of the content in different formats, including the editor format, view format, and export
97
+ * format.
98
+ */
93
99
  Body = "body",
94
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
100
+ /**
101
+ * Returns information about the most recent update of the content, including who updated it and when it was
102
+ * updated.
103
+ */
95
104
  Version = "version",
96
105
  /** Returns pages that are descendants at any level below the content. */
97
106
  PageDescendant = "descendants.page",
@@ -56,7 +56,10 @@ var GetContentById;
56
56
  Expand["UpdateGroupRestriction"] = "restrictions.update.restrictions.group";
57
57
  /** Returns the history of the content, including the date it was created. */
58
58
  Expand["History"] = "history";
59
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
59
+ /**
60
+ * Returns information about the most recent update of the content, including who updated it and when it was
61
+ * updated.
62
+ */
60
63
  Expand["LastUpdated"] = "history.lastUpdated";
61
64
  /** Returns information about the update prior to the current content update. */
62
65
  Expand["PreviousVersion"] = "history.previousVersion";
@@ -66,9 +69,15 @@ var GetContentById;
66
69
  Expand["NextVersion"] = "history.nextVersion";
67
70
  /** Returns the parent page, if the content is a page. */
68
71
  Expand["Ancestors"] = "ancestors";
69
- /** Returns the body of the content in different formats, including the editor format, view format, and export format. */
72
+ /**
73
+ * Returns the body of the content in different formats, including the editor format, view format, and export
74
+ * format.
75
+ */
70
76
  Expand["Body"] = "body";
71
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
77
+ /**
78
+ * Returns information about the most recent update of the content, including who updated it and when it was
79
+ * updated.
80
+ */
72
81
  Expand["Version"] = "version";
73
82
  /** Returns pages that are descendants at any level below the content. */
74
83
  Expand["PageDescendant"] = "descendants.page";
@@ -86,5 +95,5 @@ var GetContentById;
86
95
  /** Returns the resolution status of each comment. */
87
96
  Expand["Resolution"] = "extensions.resolution";
88
97
  })(Expand = GetContentById.Expand || (GetContentById.Expand = {}));
89
- })(GetContentById = exports.GetContentById || (exports.GetContentById = {}));
98
+ })(GetContentById || (exports.GetContentById = GetContentById = {}));
90
99
  //# sourceMappingURL=getContentById.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getContentById.js","sourceRoot":"","sources":["../../../src/api/parameters/getContentById.ts"],"names":[],"mappings":";;;AA6BA,IAAiB,cAAc,CAmF9B;AAnFD,WAAiB,cAAc;IAC7B,IAAY,MAiFX;IAjFD,WAAY,MAAM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entById.js","sourceRoot":"","sources":["../../../src/api/parameters/getContentById.ts"],"names":[],"mappings":";;;AA6BA,IAAiB,cAAc,CA4F9B;AA5FD,WAAiB,cAAc;IAC7B,IAAY,MA0FX;IA1FD,WAAY,MAAM;QAChB;;;WAGG;QACH,0CAAgC,CAAA;QAChC,mDAAmD;QACnD,uDAA6C,CAAA;QAC7C,gDAAgD;QAChD,iDAAuC,CAAA;QACvC,mDAAmD;QACnD,2CAAiC,CAAA;QACjC;;;WAGG;QACH,iCAAuB,CAAA;QACvB;;;WAGG;QACH,sDAA4C,CAAA;QAC5C,iFAAiF;QACjF,oDAA0C,CAAA;QAC1C,8DAA8D;QAC9D,4CAAkC,CAAA;QAClC,+CAA+C;QAC/C,gDAAsC,CAAA;QACtC,uFAAuF;QACvF,mCAAyB,CAAA;QACzB,qFAAqF;QACrF,wCAA8B,CAAA;QAC9B,+CAA+C;QAC/C,oDAA0C,CAAA;QAC1C,2CAA2C;QAC3C,8CAAoC,CAAA;QACpC,kEAAkE;QAClE,qEAA2D,CAAA;QAC3D;;;WAGG;QACH,uEAA6D,CAAA;QAC7D,oEAAoE;QACpE,yEAA+D,CAAA;QAC/D;;;WAGG;QACH,2EAAiE,CAAA;QACjE,6EAA6E;QAC7E,6BAAmB,CAAA;QACnB;;;WAGG;QACH,6CAAmC,CAAA;QACnC,gFAAgF;QAChF,qDAA2C,CAAA;QAC3C,oEAAoE;QACpE,+CAAqC,CAAA;QACrC,gFAAgF;QAChF,6CAAmC,CAAA;QACnC,yDAAyD;QACzD,iCAAuB,CAAA;QACvB;;;WAGG;QACH,uBAAa,CAAA;QACb;;;WAGG;QACH,6BAAmB,CAAA;QACnB,yEAAyE;QACzE,6CAAmC,CAAA;QACnC,8EAA8E;QAC9E,yDAA+C,CAAA;QAC/C,uEAAuE;QACvE,mDAAyC,CAAA;QACzC;;;WAGG;QACH,yBAAe,CAAA;QACf,kDAAkD;QAClD,0DAAgD,CAAA;QAChD,qDAAqD;QACrD,8CAAoC,CAAA;IACtC,CAAC,EA1FW,MAAM,GAAN,qBAAM,KAAN,qBAAM,QA0FjB;AACH,CAAC,EA5FgB,cAAc,8BAAd,cAAc,QA4F9B"}
@@ -4,10 +4,12 @@ export interface GetContentProperties {
4
4
  /** The key of the content property. */
5
5
  key?: string[];
6
6
  /**
7
- * A multi-value parameter indicating which properties of the content to expand. By default, the `version` object is expanded.
7
+ * A multi-value parameter indicating which properties of the content to expand. By default, the `version` object is
8
+ * expanded.
8
9
  *
9
10
  * - `content` returns the content that the property is stored against.
10
- * - `version` returns information about the version of the property, such as the version number, when it was created, etc.
11
+ * - `version` returns information about the version of the property, such as the version number, when it was created,
12
+ * etc.
11
13
  */
12
14
  expand?: string[];
13
15
  /** The starting index of the returned properties. */
@@ -4,22 +4,24 @@ export interface GetContentProperty {
4
4
  /** The key of the content property. */
5
5
  key: string;
6
6
  /**
7
- * A multi-value parameter indicating which properties of the content to expand. By default, the `version` object is expanded.
7
+ * A multi-value parameter indicating which properties of the content to expand. By default, the `version` object is
8
+ * expanded.
8
9
  *
9
10
  * - `content` returns the content that the property is stored against.
10
- * - `version` returns information about the version of the property, such as the version number, when it was created, etc.
11
+ * - `version` returns information about the version of the property, such as the version number, when it was created,
12
+ * etc.
11
13
  */
12
14
  expand?: string[];
13
15
  /**
14
16
  * Filter the results to a set of content based on their status. If set to `any`, content with any status is returned.
15
17
  * By default it will fetch current and archived statuses `?status=current&status=archived`. All supported statuses
16
18
  *
17
- * - any
18
- * - archived
19
- * - current
20
- * - deleted
21
- * - draft
22
- * - trashed
19
+ * - Any
20
+ * - Archived
21
+ * - Current
22
+ * - Deleted
23
+ * - Draft
24
+ * - Trashed
23
25
  */
24
26
  status?: string[];
25
27
  }
@@ -1,5 +1,8 @@
1
1
  export interface GetContentTemplates {
2
- /** The key of the space to be queried for templates. If the `spaceKey` is not specified, global templates will be returned. */
2
+ /**
3
+ * The key of the space to be queried for templates. If the `spaceKey` is not specified, global templates will be
4
+ * returned.
5
+ */
3
6
  spaceKey?: string;
4
7
  /** The starting index of the returned templates. */
5
8
  start?: number;
@@ -4,7 +4,8 @@ export interface GetContentVersion {
4
4
  /** The number of the version to be retrieved. */
5
5
  versionNumber: number;
6
6
  /**
7
- * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded.
7
+ * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is
8
+ * expanded.
8
9
  *
9
10
  * - `collaborators` returns the users that collaborated on the version.
10
11
  * - `content` returns the content for the version.
@@ -6,7 +6,8 @@ export interface GetContentVersions {
6
6
  /** The maximum number of versions to return per page. Note, this may be restricted by fixed system limits. */
7
7
  limit?: number;
8
8
  /**
9
- * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded.
9
+ * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is
10
+ * expanded.
10
11
  *
11
12
  * - `collaborators` returns the users that collaborated on the version.
12
13
  * - `content` returns the content for the version.
@@ -68,7 +68,10 @@ export declare namespace GetDescendantsOfType {
68
68
  UpdateGroupRestriction = "restrictions.update.restrictions.group",
69
69
  /** Returns the history of the content, including the date it was created. */
70
70
  History = "history",
71
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
71
+ /**
72
+ * Returns information about the most recent update of the content, including who updated it and when it was
73
+ * updated.
74
+ */
72
75
  LastUpdated = "history.lastUpdated",
73
76
  /** Returns information about the update prior to the current content update. */
74
77
  PreviousVersion = "history.previousVersion",
@@ -78,9 +81,15 @@ export declare namespace GetDescendantsOfType {
78
81
  NextVersion = "history.nextVersion",
79
82
  /** Returns the parent page, if the content is a page. */
80
83
  Ancestors = "ancestors",
81
- /** Returns the body of the content in different formats, including the editor format, view format, and export format. */
84
+ /**
85
+ * Returns the body of the content in different formats, including the editor format, view format, and export
86
+ * format.
87
+ */
82
88
  Body = "body",
83
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
89
+ /**
90
+ * Returns information about the most recent update of the content, including who updated it and when it was
91
+ * updated.
92
+ */
84
93
  Version = "version",
85
94
  /** Returns pages that are descendants at any level below the content. */
86
95
  PageDescendant = "descendants.page",
@@ -56,7 +56,10 @@ var GetDescendantsOfType;
56
56
  Expand["UpdateGroupRestriction"] = "restrictions.update.restrictions.group";
57
57
  /** Returns the history of the content, including the date it was created. */
58
58
  Expand["History"] = "history";
59
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
59
+ /**
60
+ * Returns information about the most recent update of the content, including who updated it and when it was
61
+ * updated.
62
+ */
60
63
  Expand["LastUpdated"] = "history.lastUpdated";
61
64
  /** Returns information about the update prior to the current content update. */
62
65
  Expand["PreviousVersion"] = "history.previousVersion";
@@ -66,9 +69,15 @@ var GetDescendantsOfType;
66
69
  Expand["NextVersion"] = "history.nextVersion";
67
70
  /** Returns the parent page, if the content is a page. */
68
71
  Expand["Ancestors"] = "ancestors";
69
- /** Returns the body of the content in different formats, including the editor format, view format, and export format. */
72
+ /**
73
+ * Returns the body of the content in different formats, including the editor format, view format, and export
74
+ * format.
75
+ */
70
76
  Expand["Body"] = "body";
71
- /** Returns information about the most recent update of the content, including who updated it and when it was updated. */
77
+ /**
78
+ * Returns information about the most recent update of the content, including who updated it and when it was
79
+ * updated.
80
+ */
72
81
  Expand["Version"] = "version";
73
82
  /** Returns pages that are descendants at any level below the content. */
74
83
  Expand["PageDescendant"] = "descendants.page";
@@ -86,5 +95,5 @@ var GetDescendantsOfType;
86
95
  /** Returns the resolution status of each comment. */
87
96
  Expand["Resolution"] = "extensions.resolution";
88
97
  })(Expand = GetDescendantsOfType.Expand || (GetDescendantsOfType.Expand = {}));
89
- })(GetDescendantsOfType = exports.GetDescendantsOfType || (exports.GetDescendantsOfType = {}));
98
+ })(GetDescendantsOfType || (exports.GetDescendantsOfType = GetDescendantsOfType = {}));
90
99
  //# sourceMappingURL=getDescendantsOfType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDescendantsOfType.js","sourceRoot":"","sources":["../../../src/api/parameters/getDescendantsOfType.ts"],"names":[],"mappings":";;;AAkBA,IAAi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H,CAAC,EAnFgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAmFpC"}
1
+ {"version":3,"file":"getDescendantsOfType.js","sourceRoot":"","sources":["../../../src/api/parameters/getDescendantsOfType.ts"],"names":[],"mappings":";;;AAkBA,IAAiB,oBAAoB,CA4FpC;AA5FD,WAAiB,oBAAoB;IACnC,IAAY,MA0FX;IA1FD,WAAY,MAAM;QAChB;;;WAGG;QACH,0CAAgC,CAAA;QAChC,mDAAmD;QACnD,uDAA6C,CAAA;QAC7C,gDAAgD;QAChD,iDAAuC,CAAA;QACvC,mDAAmD;QACnD,2CAAiC,CAAA;QACjC;;;WAGG;QACH,iCAAuB,CAAA;QACvB;;;WAGG;QACH,sDAA4C,CAAA;QAC5C,iFAAiF;QACjF,oDAA0C,CAAA;QAC1C,8DAA8D;QAC9D,4CAAkC,CAAA;QAClC,+CAA+C;QAC/C,gDAAsC,CAAA;QACtC,uFAAuF;QACvF,mCAAyB,CAAA;QACzB,qFAAqF;QACrF,wCAA8B,CAAA;QAC9B,+CAA+C;QAC/C,oDAA0C,CAAA;QAC1C,2CAA2C;QAC3C,8CAAoC,CAAA;QACpC,kEAAkE;QAClE,qEAA2D,CAAA;QAC3D;;;WAGG;QACH,uEAA6D,CAAA;QAC7D,oEAAoE;QACpE,yEAA+D,CAAA;QAC/D;;;WAGG;QACH,2EAAiE,CAAA;QACjE,6EAA6E;QAC7E,6BAAmB,CAAA;QACnB;;;WAGG;QACH,6CAAmC,CAAA;QACnC,gFAAgF;QAChF,qDAA2C,CAAA;QAC3C,oEAAoE;QACpE,+CAAqC,CAAA;QACrC,gFAAgF;QAChF,6CAAmC,CAAA;QACnC,yDAAyD;QACzD,iCAAuB,CAAA;QACvB;;;WAGG;QACH,uBAAa,CAAA;QACb;;;WAGG;QACH,6BAAmB,CAAA;QACnB,yEAAyE;QACzE,6CAAmC,CAAA;QACnC,8EAA8E;QAC9E,yDAA+C,CAAA;QAC/C,uEAAuE;QACvE,mDAAyC,CAAA;QACzC;;;WAGG;QACH,yBAAe,CAAA;QACf,kDAAkD;QAClD,0DAAgD,CAAA;QAChD,qDAAqD;QACrD,8CAAoC,CAAA;IACtC,CAAC,EA1FW,MAAM,GAAN,2BAAM,KAAN,2BAAM,QA0FjB;AACH,CAAC,EA5FgB,oBAAoB,oCAApB,oBAAoB,QA4FpC"}
@@ -2,7 +2,8 @@ export interface GetHistoryForContent {
2
2
  /** The ID of the content to be queried for its history. */
3
3
  id: string;
4
4
  /**
5
- * A multi-value parameter indicating which properties of the content history to expand. Maximum sub-expansions allowed is `8`.
5
+ * A multi-value parameter indicating which properties of the content history to expand. Maximum sub-expansions
6
+ * allowed is `8`.
6
7
  *
7
8
  * - `lastUpdated` returns information about the most recent update of the content, including who updated it and when it
8
9
  * was updated.
@@ -8,7 +8,8 @@ export interface GetLabelsForContent {
8
8
  * - `global` prefix is used by default when a user adds a label via the UI.
9
9
  * - `my` prefix can be explicitly added by a user when adding a label via the UI, e.g. 'my:example-label'. Also, when a
10
10
  * page is selected as a favourite, the 'my:favourite' label is automatically added.
11
- * - `team` can used when adding labels via [Add labels to content](#api-content-id-label-post) but is not used in the UI.
11
+ * - `team` can used when adding labels via [Add labels to content](#api-content-id-label-post) but is not used in the
12
+ * UI.
12
13
  */
13
14
  prefix?: string;
14
15
  /** The starting index of the returned labels. */
@@ -19,7 +19,10 @@ export interface GetRelationship {
19
19
  * - If `sourceType` is 'space', then specify the space key.
20
20
  */
21
21
  sourceKey: string;
22
- /** The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is 'favourite'. */
22
+ /**
23
+ * The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is
24
+ * 'favourite'.
25
+ */
23
26
  targetType: string;
24
27
  /**
25
28
  * The identifier for the target entity:
@@ -27,7 +30,8 @@ export interface GetRelationship {
27
30
  * - If `targetType` is `user`, then specify either `current` (logged-in user), the user key of the user, or the account
28
31
  * ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the
29
32
  * [migration
30
- * guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details.
33
+ * guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
34
+ * details.
31
35
  * - If `targetType` is 'content', then specify the content ID.
32
36
  * - If `targetType` is 'space', then specify the space key.
33
37
  */
@@ -1,7 +1,13 @@
1
1
  export interface GetSpaces {
2
- /** The key of the space to be returned. To return multiple spaces, specify this parameter multiple times with different values. */
2
+ /**
3
+ * The key of the space to be returned. To return multiple spaces, specify this parameter multiple times with
4
+ * different values.
5
+ */
3
6
  spaceKey?: string[];
4
- /** The id of the space to be returned. To return multiple spaces, specify this parameter multiple times with different values. */
7
+ /**
8
+ * The id of the space to be returned. To return multiple spaces, specify this parameter multiple times with different
9
+ * values.
10
+ */
5
11
  spaceId?: number[];
6
12
  /** Filter the results to spaces based on their type. */
7
13
  type?: string;
@@ -15,7 +21,8 @@ export interface GetSpaces {
15
21
  */
16
22
  favourite?: boolean;
17
23
  /**
18
- * The userKey of the user, whose favourite spaces are used to filter the results when using the `favourite` parameter.
24
+ * The userKey of the user, whose favourite spaces are used to filter the results when using the `favourite`
25
+ * parameter.
19
26
  *
20
27
  * Leave blank for the current user. Use [Get user](#api-user-get) to get the userKey for a user.
21
28
  */
@@ -5,8 +5,8 @@ export interface RemoveGroupById {
5
5
  * The operation that the restriction applies to.
6
6
  *
7
7
  * @example
8
- * "read";
9
- * "update";
8
+ * 'read';
9
+ * 'update';
10
10
  */
11
11
  operationKey: string;
12
12
  /** The id of the group to remove from the content restriction. */
@@ -5,8 +5,8 @@ export interface RemoveGroupByName {
5
5
  * The operation that the restriction applies to.
6
6
  *
7
7
  * @example
8
- * "read";
9
- * "update";
8
+ * 'read';
9
+ * 'update';
10
10
  */
11
11
  operationKey: string;
12
12
  /** The name of the group to remove from the content restriction. */
@@ -1,7 +1,8 @@
1
1
  export interface RemoveModules {
2
2
  /**
3
3
  * The key of the module to remove. To include multiple module keys, provide multiple copies of this parameter. For
4
- * example, `moduleKey=dynamic-attachment-entity-property&moduleKey=dynamic-select-field`. Nonexistent keys are ignored.
4
+ * example, `moduleKey=dynamic-attachment-entity-property&moduleKey=dynamic-select-field`. Nonexistent keys are
5
+ * ignored.
5
6
  */
6
7
  moduleKey: string[];
7
8
  }
@@ -3,7 +3,8 @@ export interface RestoreContentVersion extends VersionRestore {
3
3
  /** The ID of the content for which the history will be restored. */
4
4
  id: string;
5
5
  /**
6
- * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded.
6
+ * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is
7
+ * expanded.
7
8
  *
8
9
  * - `collaborators` returns the users that collaborated on the version.
9
10
  * - `content` returns the content for the version.
@@ -34,10 +34,10 @@ export interface Search {
34
34
  * - ContentStatuses Content statuses to search against. Optional. Specify these values in an object.
35
35
  *
36
36
  * @example
37
- * "cqlcontext={%22spaceKey%22:%22TEST%22, %22contentId%22:%22123%22}";
37
+ * 'cqlcontext={%22spaceKey%22:%22TEST%22, %22contentId%22:%22123%22}';
38
38
  */
39
39
  cqlcontext?: string;
40
- /** Pointer to a set of search results, returned as part of the *next* or *prev* URL from the previous search call. */
40
+ /** Pointer to a set of search results, returned as part of the _next_ or _prev_ URL from the previous search call. */
41
41
  cursor?: string;
42
42
  /**
43
43
  * Include content from archived spaces in the results.
@@ -30,21 +30,21 @@ export declare namespace UpdateAttachmentProperties {
30
30
  macroRenderedOutput?: any;
31
31
  extensions?: any;
32
32
  _expandable?: {
33
- 'childTypes': string;
34
- 'container': string;
35
- 'metadata': string;
36
- 'operations': string;
37
- 'children': string;
38
- 'restrictions': string;
39
- 'history': string;
40
- 'ancestors': string;
41
- 'body': string;
42
- 'version': string;
43
- 'descendants': string;
44
- 'space': string;
45
- 'extensions': string;
46
- 'schedulePublishDate': string;
47
- 'macroRenderedOutput': string;
33
+ childTypes: string;
34
+ container: string;
35
+ metadata: string;
36
+ operations: string;
37
+ children: string;
38
+ restrictions: string;
39
+ history: string;
40
+ ancestors: string;
41
+ body: string;
42
+ version: string;
43
+ descendants: string;
44
+ space: string;
45
+ extensions: string;
46
+ schedulePublishDate: string;
47
+ macroRenderedOutput: string;
48
48
  };
49
49
  _links?: GenericLinks;
50
50
  }
@@ -1,8 +1,8 @@
1
1
  import { UserPropertyUpdate } from '../models';
2
2
  export interface UpdateUserProperty extends UserPropertyUpdate {
3
3
  /**
4
- * The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For
5
- * example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
4
+ * The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For example,
5
+ * 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
6
6
  */
7
7
  userId: string;
8
8
  /** The key of the user property. */
@@ -5,7 +5,6 @@ import type { RequestConfig } from '../requestConfig';
5
5
  export declare class BaseClient implements Client {
6
6
  #private;
7
7
  protected readonly config: Config;
8
- protected urlSuffix: string;
9
8
  constructor(config: Config);
10
9
  protected paramSerializer(parameters: Record<string, any>): string;
11
10
  protected encode(value: string): string;
@@ -11,7 +11,7 @@ class BaseClient {
11
11
  constructor(config) {
12
12
  this.config = config;
13
13
  _BaseClient_instance.set(this, void 0);
14
- this.urlSuffix = '/wiki/rest/';
14
+ this.config.apiPrefix = this.config.apiPrefix || '/wiki/rest/';
15
15
  }
16
16
  paramSerializer(parameters) {
17
17
  const parts = [];
@@ -59,7 +59,7 @@ class BaseClient {
59
59
  if (tslib_1.__classPrivateFieldGet(this, _BaseClient_instance, "f")) {
60
60
  return tslib_1.__classPrivateFieldGet(this, _BaseClient_instance, "f");
61
61
  }
62
- tslib_1.__classPrivateFieldSet(this, _BaseClient_instance, axios_1.default.create(Object.assign(Object.assign({ paramsSerializer: this.paramSerializer.bind(this) }, this.config.baseRequestConfig), { baseURL: `${this.config.host}${this.urlSuffix}`, headers: this.removeUndefinedProperties(Object.assign({ [ATLASSIAN_TOKEN_CHECK_FLAG]: this.config.noCheckAtlassianToken
62
+ tslib_1.__classPrivateFieldSet(this, _BaseClient_instance, axios_1.default.create(Object.assign(Object.assign({ paramsSerializer: this.paramSerializer.bind(this) }, this.config.baseRequestConfig), { baseURL: `${this.config.host}${this.config.apiPrefix}`, headers: this.removeUndefinedProperties(Object.assign({ [ATLASSIAN_TOKEN_CHECK_FLAG]: this.config.noCheckAtlassianToken
63
63
  ? ATLASSIAN_TOKEN_CHECK_NOCHECK_VALUE
64
64
  : undefined }, (_a = this.config.baseRequestConfig) === null || _a === void 0 ? void 0 : _a.headers)) })), "f");
65
65
  return tslib_1.__classPrivateFieldGet(this, _BaseClient_instance, "f");
@@ -1 +1 @@
1
- {"version":3,"file":"baseClient.js","sourceRoot":"","sources":["../../src/clients/baseClient.ts"],"names":[],"mappings":";;;;;AAAA,6EAA0E;AAK1E,iCAA6C;AAE7C,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;AACvD,MAAM,mCAAmC,GAAG,UAAU,CAAC;AAEvD,MAAa,UAAU;IAKrB,YAA+B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAJ7C,uCAAqC;QAE3B,cAAS,GAAG,aAAa,CAAC;IAEY,CAAC;IAEvC,eAAe,CAAC,UAA+B;QACvD,MAAM,KAAK,GAAa,EAAE,CAAC;QAE3B,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAClD,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;gBAClD,OAAO;aACR;YAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACxB,6CAA6C;gBAC7C,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aACzB;YAED,IAAI,KAAK,YAAY,IAAI,EAAE;gBACzB,6CAA6C;gBAC7C,KAAK,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC;aAC7B;iBAA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AQ,IAAI,CAAC,CAAC,KAAmB,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;gBACpF,MAAM,mBAAmB,GAAG,CAAC,KAAY,EAAE,EAAE;oBAC3C,MAAM,KAAK,CAAC;gBACd,CAAC,CAAC;gBAEF,MAAM,YAAY,GAAG,oBAAoB,aAApB,oBAAoB,cAApB,oBAAoB,GAAI,mBAAmB,CAAC;gBAEjE,MAAA,MAAA,IAAI,CAAC,MAAM,CAAC,WAAW,0CAAE,OAAO,mDAAG,GAAG,CAAC,CAAC;gBAExC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;aAC1B;;KACF;CACF;AArHD,gCAqHC"}
@@ -1,6 +1,8 @@
1
1
  import { BaseClient } from './baseClient';
2
+ import { Config } from '../config';
2
3
  import { Analytics, Audit, Content, ContentAttachments, ContentBody, ContentChildrenAndDescendants, ContentComments, ContentContentState, ContentLabels, ContentMacroBody, ContentPermissions, ContentProperties, ContentRestrictions, ContentStates, ContentVersions, ContentWatches, DynamicModules, Experimental, Group, InlineTasks, LabelInfo, LongRunningTask, Relation, Search, Settings, Space, SpacePermissions, SpaceProperties, SpaceSettings, Template, Themes, Users } from '../api';
3
4
  export declare class ConfluenceClient extends BaseClient {
5
+ constructor(config: Config);
4
6
  analytics: Analytics;
5
7
  audit: Audit;
6
8
  content: Content;
@@ -4,8 +4,9 @@ exports.ConfluenceClient = void 0;
4
4
  const baseClient_1 = require("./baseClient");
5
5
  const api_1 = require("../api");
6
6
  class ConfluenceClient extends baseClient_1.BaseClient {
7
- constructor() {
8
- super(...arguments);
7
+ constructor(config) {
8
+ var _a;
9
+ super(Object.assign(Object.assign({}, config), { apiPrefix: (_a = config.apiPrefix) !== null && _a !== void 0 ? _a : '/wiki/rest' }));
9
10
  this.analytics = new api_1.Analytics(this);
10
11
  this.audit = new api_1.Audit(this);
11
12
  this.content = new api_1.Content(this);
@@ -1 +1 @@
1
- {"version":3,"file":"confluenceClient.js","sourceRoot":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K,CAAC,IAAI,CAAC,CAAC;QACxB,qBAAgB,GAAG,IAAI,sBAAgB,CAAC,IAAI,CAAC,CAAC;QAC9C,oBAAe,GAAG,IAAI,qBAAe,CAAC,IAAI,CAAC,CAAC;QAC5C,kBAAa,GAAG,IAAI,mBAAa,CAAC,IAAI,CAAC,CAAC;QACxC,aAAQ,GAAG,IAAI,cAAQ,CAAC,IAAI,CAAC,CAAC;QAC9B,WAAM,GAAG,IAAI,YAAM,CAAC,IAAI,CAAC,CAAC;QAC1B,UAAK,GAAG,IAAI,WAAK,CAAC,IAAI,CAAC,CAAC;IAjCxB,CAAC;CAkCF;AAxCD,4CAwCC"}
@@ -1,7 +1,8 @@
1
1
  import { BaseClient } from './baseClient';
2
+ import { Config } from '../config';
2
3
  import { Audit, Content, ContentBody, Group, LongTask, Search, Space, User } from '../server';
3
4
  export declare class ServerClient extends BaseClient {
4
- urlSuffix: string;
5
+ constructor(config: Config);
5
6
  audit: Audit;
6
7
  content: Content;
7
8
  contentBody: ContentBody;
@@ -4,9 +4,9 @@ exports.ServerClient = void 0;
4
4
  const baseClient_1 = require("./baseClient");
5
5
  const server_1 = require("../server");
6
6
  class ServerClient extends baseClient_1.BaseClient {
7
- constructor() {
8
- super(...arguments);
9
- this.urlSuffix = '/';
7
+ constructor(config) {
8
+ var _a;
9
+ super(Object.assign(Object.assign({}, config), { apiPrefix: (_a = config.apiPrefix) !== null && _a !== void 0 ? _a : '/' }));
10
10
  this.audit = new server_1.Audit(this);
11
11
  this.content = new server_1.Content(this);
12
12
  this.contentBody = new server_1.ContentBody(this);
@@ -1 +1 @@
1
- {"version":3,"file":"serverClient.js","sourceRoot":"","sources":["../../src/clients/serverClient.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAC1C,sCAA8F;AAE9F,MAAa,YAAa,SAAQ,uBAAU;IAA5C;;QACE,cAAS,GAAG,GAAG,CAAC;QAEhB,UAAK,GAAG,IAAI,cAAK,CAAC,IAAI,CAAC,CAAC;QACxB,YAA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