confluence.js 1.5.3 → 1.6.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 (103) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +1 -0
  3. package/out/api/contentBody.d.ts +52 -0
  4. package/out/api/contentBody.js +26 -0
  5. package/out/api/contentBody.js.map +1 -1
  6. package/out/api/contentChildrenAndDescendants.js +2 -1
  7. package/out/api/contentChildrenAndDescendants.js.map +1 -1
  8. package/out/api/contentContentState.d.ts +30 -28
  9. package/out/api/contentContentState.js +2 -0
  10. package/out/api/contentContentState.js.map +1 -1
  11. package/out/api/contentMacroBody.d.ts +68 -0
  12. package/out/api/contentMacroBody.js +29 -0
  13. package/out/api/contentMacroBody.js.map +1 -1
  14. package/out/api/contentStates.d.ts +120 -0
  15. package/out/api/contentStates.js +88 -0
  16. package/out/api/contentStates.js.map +1 -0
  17. package/out/api/dynamicModules.js +1 -0
  18. package/out/api/dynamicModules.js.map +1 -1
  19. package/out/api/experimental.d.ts +2 -2
  20. package/out/api/index.d.ts +1 -0
  21. package/out/api/index.js +1 -0
  22. package/out/api/index.js.map +1 -1
  23. package/out/api/models/asyncContentBody.d.ts +30 -0
  24. package/out/api/models/asyncContentBody.js +3 -0
  25. package/out/api/models/asyncContentBody.js.map +1 -0
  26. package/out/api/models/asyncId.d.ts +3 -0
  27. package/out/api/models/asyncId.js +3 -0
  28. package/out/api/models/asyncId.js.map +1 -0
  29. package/out/api/models/contentBodyCreate.d.ts +1 -0
  30. package/out/api/models/contentStateResponse.d.ts +7 -0
  31. package/out/api/models/contentStateResponse.js +3 -0
  32. package/out/api/models/contentStateResponse.js.map +1 -0
  33. package/out/api/models/contentStateRestInput.d.ts +11 -0
  34. package/out/api/models/contentStateRestInput.js +3 -0
  35. package/out/api/models/contentStateRestInput.js.map +1 -0
  36. package/out/api/models/index.d.ts +16 -12
  37. package/out/api/models/index.js +16 -12
  38. package/out/api/models/index.js.map +1 -1
  39. package/out/api/parameters/asyncConvertContentBodyRequest.d.ts +38 -0
  40. package/out/api/parameters/asyncConvertContentBodyRequest.js +3 -0
  41. package/out/api/parameters/asyncConvertContentBodyRequest.js.map +1 -0
  42. package/out/api/parameters/asyncConvertContentBodyResponse.d.ts +4 -0
  43. package/out/api/parameters/asyncConvertContentBodyResponse.js +3 -0
  44. package/out/api/parameters/asyncConvertContentBodyResponse.js.map +1 -0
  45. package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.d.ts +46 -0
  46. package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.js +3 -0
  47. package/out/api/parameters/getAndAsyncConvertMacroBodyByMacroId.js.map +1 -0
  48. package/out/api/parameters/getAndConvertMacroBodyByMacroId.d.ts +34 -0
  49. package/out/api/parameters/getAndConvertMacroBodyByMacroId.js +3 -0
  50. package/out/api/parameters/getAndConvertMacroBodyByMacroId.js.map +1 -0
  51. package/out/api/parameters/getAvailableContentStates.d.ts +4 -2
  52. package/out/api/parameters/getContentState.d.ts +8 -4
  53. package/out/api/parameters/getSpaceContentStates.d.ts +4 -0
  54. package/out/api/parameters/getSpaceContentStates.js +3 -0
  55. package/out/api/parameters/getSpaceContentStates.js.map +1 -0
  56. package/out/api/parameters/getUser.d.ts +6 -4
  57. package/out/api/parameters/index.d.ts +5 -0
  58. package/out/api/parameters/index.js +5 -0
  59. package/out/api/parameters/index.js.map +1 -1
  60. package/out/api/parameters/movePage.d.ts +9 -5
  61. package/out/api/parameters/removeContentState.d.ts +5 -1
  62. package/out/api/parameters/setContentState.d.ts +11 -5
  63. package/out/api/settings.d.ts +2 -2
  64. package/out/api/space.d.ts +2 -2
  65. package/out/api/spaceProperties.d.ts +4 -4
  66. package/out/clients/confluenceClient.d.ts +2 -1
  67. package/out/clients/confluenceClient.js +1 -0
  68. package/out/clients/confluenceClient.js.map +1 -1
  69. package/out/index.d.ts +1 -0
  70. package/out/index.js +1 -0
  71. package/out/index.js.map +1 -1
  72. package/package.json +12 -12
  73. package/src/api/contentBody.ts +100 -0
  74. package/src/api/contentChildrenAndDescendants.ts +3 -1
  75. package/src/api/contentContentState.ts +30 -28
  76. package/src/api/contentMacroBody.ts +115 -0
  77. package/src/api/contentStates.ts +252 -0
  78. package/src/api/dynamicModules.ts +1 -0
  79. package/src/api/experimental.ts +2 -2
  80. package/src/api/index.ts +1 -0
  81. package/src/api/models/asyncContentBody.ts +31 -0
  82. package/src/api/models/asyncId.ts +3 -0
  83. package/src/api/models/contentBodyCreate.ts +1 -0
  84. package/src/api/models/contentStateResponse.ts +8 -0
  85. package/src/api/models/contentStateRestInput.ts +11 -0
  86. package/src/api/models/index.ts +16 -12
  87. package/src/api/parameters/asyncConvertContentBodyRequest.ts +81 -0
  88. package/src/api/parameters/asyncConvertContentBodyResponse.ts +4 -0
  89. package/src/api/parameters/getAndAsyncConvertMacroBodyByMacroId.ts +88 -0
  90. package/src/api/parameters/getAndConvertMacroBodyByMacroId.ts +104 -0
  91. package/src/api/parameters/getAvailableContentStates.ts +5 -2
  92. package/src/api/parameters/getContentState.ts +9 -4
  93. package/src/api/parameters/getSpaceContentStates.ts +4 -0
  94. package/src/api/parameters/getUser.ts +14 -4
  95. package/src/api/parameters/index.ts +5 -0
  96. package/src/api/parameters/movePage.ts +9 -5
  97. package/src/api/parameters/removeContentState.ts +6 -1
  98. package/src/api/parameters/setContentState.ts +13 -5
  99. package/src/api/settings.ts +2 -2
  100. package/src/api/space.ts +3 -3
  101. package/src/api/spaceProperties.ts +4 -4
  102. package/src/clients/confluenceClient.ts +2 -0
  103. package/src/index.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.6.1
4
+
5
+ `AuthenticationService` added to export facade. Thanks to [Andrew McClenaghan](https://github.com/andymac4182) for this improvement.
6
+
7
+ ### 1.6.0
8
+
9
+ Cloud API:
10
+ - `asyncConvertContentBodyRequest` method added to `ContentBody` API.
11
+ - `asyncConvertContentBodyResponse` method added to `ContentBody` API.
12
+ - [`ContentContentState`](https://github.com/MrRefactoring/confluence.js/blob/master/src/api/contentContentState.ts) API are deprecated. Use [`ContentStates`](https://github.com/MrRefactoring/confluence.js/blob/master/src/api/contentStates.ts) instead.
13
+ - `getAndConvertMacroBodyByMacroId` method added to `ContentMacroBody` API.
14
+ - `getAndAsyncConvertMacroBodyByMacroId` method added to `ContentMacroBody` API.
15
+ - `registerModules` method fixed via adding body to the request. `DynamicModules` API.
16
+ - Other fixes and improvements. (like `expand` property adding).
17
+
3
18
  ### 1.5.3
4
19
 
5
20
  `expand` property added to `convertContentBody` method to `ContentBody` API. Thanks to [Federico Gonzalez](https://github.com/FedeG) for report.
package/README.md CHANGED
@@ -247,6 +247,7 @@ Available groups:
247
247
  - [contentPermissions](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-permissions/#api-group-content-permissions)
248
248
  - [contentProperties](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-properties/#api-group-content-properties)
249
249
  - [contentRestrictions](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-restrictions/#api-group-content-restrictions)
250
+ - [contentStates](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-states/#api-group-content-states)
250
251
  - [contentVersions](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-versions/#api-group-content-versions)
251
252
  - [contentWatches](https://developer.atlassian.com/cloud/confluence/rest/api-group-content-watches/#api-group-content-watches)
252
253
  - [dynamicModules](https://developer.atlassian.com/cloud/confluence/rest/api-group-dynamic-modules/#api-group-dynamic-modules)
@@ -35,4 +35,56 @@ export declare class ContentBody {
35
35
  * 'View' permission for the space, and permission to view the content.
36
36
  */
37
37
  convertContentBody<T = Models.ContentBody>(parameters: Parameters.ConvertContentBody, callback?: never): Promise<T>;
38
+ /**
39
+ * Converts a content body from one format to another format asynchronously. Returns the asyncId for the asynchronous
40
+ * task.
41
+ *
42
+ * Supported conversions:
43
+ *
44
+ * - Storage: export_view
45
+ *
46
+ * No other conversions are supported at the moment. Once a conversion is completed, it will be available for 5
47
+ * minutes at the result endpoint.
48
+ *
49
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: If request specifies 'contentIdContext',
50
+ * 'View' permission for the space, and permission to view the content.
51
+ */
52
+ asyncConvertContentBodyRequest<T = Models.AsyncId>(parameters: Parameters.AsyncConvertContentBodyRequest, callback: Callback<T>): Promise<void>;
53
+ /**
54
+ * Converts a content body from one format to another format asynchronously. Returns the asyncId for the asynchronous
55
+ * task.
56
+ *
57
+ * Supported conversions:
58
+ *
59
+ * - Storage: export_view
60
+ *
61
+ * No other conversions are supported at the moment. Once a conversion is completed, it will be available for 5
62
+ * minutes at the result endpoint.
63
+ *
64
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: If request specifies 'contentIdContext',
65
+ * 'View' permission for the space, and permission to view the content.
66
+ */
67
+ asyncConvertContentBodyRequest<T = Models.AsyncId>(parameters: Parameters.AsyncConvertContentBodyRequest, callback?: never): Promise<T>;
68
+ /**
69
+ * Returns the Asynchronous Content Body for the corresponding asyncId if the task is complete or returns the status
70
+ * of the task.
71
+ *
72
+ * After the task is completed, the result can be obtained for 5 minutes, or until an identical conversion request is
73
+ * made again, with allowCache query param set to false.
74
+ *
75
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: If request specifies 'contentIdContext',
76
+ * 'View' permission for the space, and permission to view the content.
77
+ */
78
+ asyncConvertContentBodyResponse<T = Models.AsyncContentBody>(parameters: Parameters.AsyncConvertContentBodyResponse, callback: Callback<T>): Promise<void>;
79
+ /**
80
+ * Returns the Asynchronous Content Body for the corresponding asyncId if the task is complete or returns the status
81
+ * of the task.
82
+ *
83
+ * After the task is completed, the result can be obtained for 5 minutes, or until an identical conversion request is
84
+ * made again, with allowCache query param set to false.
85
+ *
86
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: If request specifies 'contentIdContext',
87
+ * 'View' permission for the space, and permission to view the content.
88
+ */
89
+ asyncConvertContentBodyResponse<T = Models.AsyncContentBody>(parameters: Parameters.AsyncConvertContentBodyResponse, callback?: never): Promise<T>;
38
90
  }
@@ -22,6 +22,32 @@ class ContentBody {
22
22
  return this.client.sendRequest(config, callback);
23
23
  });
24
24
  }
25
+ asyncConvertContentBodyRequest(parameters, callback) {
26
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
+ const config = {
28
+ url: `/api/contentbody/convert/async/${parameters.to}`,
29
+ method: 'POST',
30
+ params: {
31
+ spaceKeyContext: parameters.spaceKeyContext,
32
+ contentIdContext: parameters.contentIdContext,
33
+ allowCache: parameters.allowCache,
34
+ embeddedContentRender: parameters.embeddedContentRender,
35
+ expand: parameters.expand,
36
+ },
37
+ data: Object.assign({ value: parameters.value, representation: parameters.representation }, parameters.additionalProperties),
38
+ };
39
+ return this.client.sendRequest(config, callback);
40
+ });
41
+ }
42
+ asyncConvertContentBodyResponse(parameters, callback) {
43
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
44
+ const config = {
45
+ url: `/api/contentbody/convert/async/${parameters.id}`,
46
+ method: 'GET',
47
+ };
48
+ return this.client.sendRequest(config, callback);
49
+ });
50
+ }
25
51
  }
26
52
  exports.ContentBody = ContentBody;
27
53
  //# sourceMappingURL=contentBody.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contentBody.js","sourceRoot":"","sources":["../../src/api/contentBody.ts"],"names":[],"mappings":";;;;AAMA,MAAa,WAAW;IACtB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAsChC,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,4BAA4B,UAAU,CAAC,EAAE,EAAE;gBAChD,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE;oBACN,eAAe,EAAE,UAAU,CAAC,eAAe;oBAC3C,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;oBAC7C,qBAAqB,EAAE,UAAU,CAAC,qBAAqB;oBACv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AU,CAAC,gBAAgB;oBAC7C,UAAU,EAAE,UAAU,CAAC,UAAU;oBACjC,qBAAqB,EAAE,UAAU,CAAC,qBAAqB;oBACvD,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;gBACD,IAAI,kBACF,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,cAAc,EAAE,UAAU,CAAC,cAAc,IACtC,UAAU,CAAC,oBAAoB,CACnC;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IA8BK,+BAA+B,CACnC,UAAsD,EACtD,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,kCAAkC,UAAU,CAAC,EAAE,EAAE;gBACtD,MAAM,EAAE,KAAK;aACd,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AAjKD,kCAiKC"}
@@ -21,8 +21,9 @@ class ContentChildrenAndDescendants {
21
21
  }
22
22
  movePage(parameters, callback) {
23
23
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
24
+ const pageId = parameters.pageId || parameters.id;
24
25
  const config = {
25
- url: `/api/content/${parameters.id}/move/${parameters.position}/${parameters.targetId}`,
26
+ url: `/api/content/${pageId}/move/${parameters.position}/${parameters.targetId}`,
26
27
  method: 'PUT',
27
28
  };
28
29
  return this.client.sendRequest(config, callback);
@@ -1 +1 @@
1
- {"version":3,"file":"contentChildrenAndDescendants.js","sourceRoot":"","sources":["../../src/api/contentChildrenAndDescendants.ts"],"names":[],"mappings":";;;;AAMA,MAAa,6BAA6B;IACxC,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IA8ChC,kBAAkB,CACtB,UAAyC,EACzC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gB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E,UAAU,CAAC,KAAK;oBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAqBK,iBAAiB,CACrB,UAAwC,EACxC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,qBAAqB;gBACvD,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE;oBACJ,eAAe,EAAE,UAAU,CAAC,eAAe;oBAC3C,eAAe,EAAE,UAAU,CAAC,eAAe;oBAC3C,cAAc,EAAE,UAAU,CAAC,cAAc;oBACzC,UAAU,EAAE,UAAU,CAAC,UAAU;oBACjC,kBAAkB,EAAE,UAAU,CAAC,kBAAkB;oBACjD,eAAe,EAAE,UAAU,CAAC,eAAe;oBAC3C,iBAAiB,EAAE,UAAU,CAAC,iBAAiB;oBAC/C,YAAY,EAAE,UAAU,CAAC,YAAY;iBACtC;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAgCK,QAAQ,CAAc,UAA+B,EAAE,QAAsB;;YACjF,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,OAAO;gBACzC,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE;oBACN,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;gBACD,IAAI,EAAE,UAAU,CAAC,cAAc;aAChC,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AAxXD,sEAwXC"}
@@ -2,57 +2,59 @@ import * as Models from './models';
2
2
  import * as Parameters from './parameters';
3
3
  import { Callback } from '../callback';
4
4
  import { Client } from '../clients';
5
+ /** @deprecated Use {@link ContentStates} instead. */
5
6
  export declare class ContentContentState {
6
7
  private client;
8
+ /** @deprecated */
7
9
  constructor(client: Client);
8
10
  /**
9
- * Gets the current page status of the draft or published version of content. To specify the draft version, set the
10
- * parameter status to PUBLISHED, otherwise DRAFT.
11
+ * @deprecated Gets the current page status of the draft or published version of content. To specify the draft
12
+ * version, set the parameter status to PUBLISHED, otherwise DRAFT.
11
13
  */
12
14
  getContentState<T = Models.ContentStateContainer>(parameters: Parameters.GetContentState, callback: Callback<T>): Promise<void>;
13
15
  /**
14
- * Gets the current page status of the draft or published version of content. To specify the draft version, set the
15
- * parameter status to PUBLISHED, otherwise DRAFT.
16
+ * @deprecated Gets the current page status of the draft or published version of content. To specify the draft
17
+ * version, set the parameter status to PUBLISHED, otherwise DRAFT.
16
18
  */
17
19
  getContentState<T = Models.ContentStateContainer>(parameters: Parameters.GetContentState, callback?: never): Promise<T>;
18
20
  /**
19
- * Sets the content state of the content specified and creates a new version (publishes the content without changing
20
- * the body) of the content with the new status. The desired type of status must be allowed. There are space suggested
21
- * statuses and custom statuses. To specify the desired new status, one can use the id of the status or the name and
22
- * color of the status. If contentStateId is defined, then name and color are ignored. If contentStateId is not
23
- * defined, name and color will be used if provided. Firstly, we will determine if a status of this name and color
24
- * exists, and if it does, that this status is used. If it does not exist, and custom statuses are allowed, a custom
25
- * status with this name and color will be created. Color can be specified in traditional english colors (teal,
26
- * magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
21
+ * @deprecated Sets the content state of the content specified and creates a new version (publishes the content
22
+ * without changing the body) of the content with the new status. The desired type of status must be allowed. There
23
+ * are space suggested statuses and custom statuses. To specify the desired new status, one can use the id of the
24
+ * status or the name and color of the status. If contentStateId is defined, then name and color are ignored. If
25
+ * contentStateId is not defined, name and color will be used if provided. Firstly, we will determine if a status of
26
+ * this name and color exists, and if it does, that this status is used. If it does not exist, and custom statuses
27
+ * are allowed, a custom status with this name and color will be created. Color can be specified in traditional
28
+ * english colors (teal, magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
27
29
  */
28
30
  setContentState<T = Models.ContentStateContainer>(parameters: Parameters.SetContentState, callback: Callback<T>): Promise<void>;
29
31
  /**
30
- * Sets the content state of the content specified and creates a new version (publishes the content without changing
31
- * the body) of the content with the new status. The desired type of status must be allowed. There are space suggested
32
- * statuses and custom statuses. To specify the desired new status, one can use the id of the status or the name and
33
- * color of the status. If contentStateId is defined, then name and color are ignored. If contentStateId is not
34
- * defined, name and color will be used if provided. Firstly, we will determine if a status of this name and color
35
- * exists, and if it does, that this status is used. If it does not exist, and custom statuses are allowed, a custom
36
- * status with this name and color will be created. Color can be specified in traditional english colors (teal,
37
- * magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
32
+ * @deprecated Sets the content state of the content specified and creates a new version (publishes the content
33
+ * without changing the body) of the content with the new status. The desired type of status must be allowed. There
34
+ * are space suggested statuses and custom statuses. To specify the desired new status, one can use the id of the
35
+ * status or the name and color of the status. If contentStateId is defined, then name and color are ignored. If
36
+ * contentStateId is not defined, name and color will be used if provided. Firstly, we will determine if a status of
37
+ * this name and color exists, and if it does, that this status is used. If it does not exist, and custom statuses
38
+ * are allowed, a custom status with this name and color will be created. Color can be specified in traditional
39
+ * english colors (teal, magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
38
40
  */
39
41
  setContentState<T = Models.ContentStateContainer>(parameters: Parameters.SetContentState, callback?: never): Promise<T>;
40
42
  /**
41
- * Removes the content state of the content specified and creates a new version (publishes the content without
42
- * changing the body) of the content with the new status.
43
+ * @deprecated Removes the content state of the content specified and creates a new version (publishes the content
44
+ * without changing the body) of the content with the new status.
43
45
  */
44
46
  removeContentState<T = Models.ContentStateContainer>(parameters: Parameters.RemoveContentState, callback: Callback<T>): Promise<void>;
45
47
  /**
46
- * Removes the content state of the content specified and creates a new version (publishes the content without
47
- * changing the body) of the content with the new status.
48
+ * @deprecated Removes the content state of the content specified and creates a new version (publishes the content
49
+ * without changing the body) of the content with the new status.
48
50
  */
49
51
  removeContentState<T = Models.ContentStateContainer>(parameters: Parameters.RemoveContentState, callback?: never): Promise<T>;
50
- /** Gets a Global Timestamp of the last time the content state was updated */
52
+ /** @deprecated Gets a Global Timestamp of the last time the content state was updated */
51
53
  getContentStateLastUpdated<T = unknown>(parameters: Parameters.GetContentStateLastUpdated, callback: Callback<T>): Promise<void>;
52
- /** Gets a Global Timestamp of the last time the content state was updated */
54
+ /** @deprecated Gets a Global Timestamp of the last time the content state was updated */
53
55
  getContentStateLastUpdated<T = unknown>(parameters: Parameters.GetContentStateLastUpdated, callback?: never): Promise<T>;
54
- /** Gets content states that are available for the content to be set as. */
56
+ /** @deprecated Gets content states that are available for the content to be set as. */
55
57
  getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback: Callback<T>): Promise<void>;
56
- /** Gets content states that are available for the content to be set as. */
58
+ /** @deprecated Gets content states that are available for the content to be set as. */
57
59
  getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback?: never): Promise<T>;
58
60
  }
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ContentContentState = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ /** @deprecated Use {@link ContentStates} instead. */
5
6
  class ContentContentState {
7
+ /** @deprecated */
6
8
  constructor(client) {
7
9
  this.client = client;
8
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"contentContentState.js","sourceRoot":"","sources":["../../src/api/contentContentState.ts"],"names":[],"mappings":";;;;AAMA,MAAa,mBAAmB;IAC9B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAkBhC,eAAe,CACnB,UAAsC,EACtC,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,SAAS,QAAQ;gBACjD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;o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,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAYK,0BAA0B,CAC9B,UAAiD,EACjD,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,SAAS,qBAAqB;gBAC9D,MAAM,EAAE,KAAK;aACd,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAYK,yBAAyB,CAC7B,UAAgD,EAChD,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,SAAS,yBAAyB;gBAClE,MAAM,EAAE,KAAK;aACd,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AAvJD,kDAuJC"}
@@ -39,4 +39,72 @@ export declare class ContentMacroBody {
39
39
  * macro is in.
40
40
  */
41
41
  getMacroBodyByMacroId<T = Models.MacroInstance>(parameters: Parameters.GetMacroBodyByMacroId, callback?: never): Promise<T>;
42
+ /**
43
+ * Returns the body of a macro in format specified in path, for the given macro ID. This includes information like the
44
+ * name of the macro, the body of the macro, and any macro parameters.
45
+ *
46
+ * About the macro ID: When a macro is created in a new version of content, Confluence will generate a random ID for
47
+ * it, unless an ID is specified (by an app). The macro ID will look similar to this:
48
+ * '50884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is
49
+ * only modified by Confluence if there are conflicting IDs.
50
+ *
51
+ * Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
52
+ * macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
53
+ * transparently propagate out to all instances.
54
+ *
55
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
56
+ * macro is in.
57
+ */
58
+ getAndConvertMacroBodyByMacroId<T = Models.ContentBody>(parameters: Parameters.GetAndConvertMacroBodyByMacroId, callback: Callback<T>): Promise<void>;
59
+ /**
60
+ * Returns the body of a macro in format specified in path, for the given macro ID. This includes information like the
61
+ * name of the macro, the body of the macro, and any macro parameters.
62
+ *
63
+ * About the macro ID: When a macro is created in a new version of content, Confluence will generate a random ID for
64
+ * it, unless an ID is specified (by an app). The macro ID will look similar to this:
65
+ * '50884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is
66
+ * only modified by Confluence if there are conflicting IDs.
67
+ *
68
+ * Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
69
+ * macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
70
+ * transparently propagate out to all instances.
71
+ *
72
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
73
+ * macro is in.
74
+ */
75
+ getAndConvertMacroBodyByMacroId<T = Models.ContentBody>(parameters: Parameters.GetAndConvertMacroBodyByMacroId, callback?: never): Promise<T>;
76
+ /**
77
+ * Returns Async Id of the conversion task which will convert the macro into a content body of the desired format. The
78
+ * result will be available for 5 minutes after completion of the conversion.
79
+ *
80
+ * About the macro ID: When a macro is created in a new version of content, Confluence will generate a random ID for
81
+ * it, unless an ID is specified (by an app). The macro ID will look similar to this:
82
+ * '884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is only
83
+ * modified by Confluence if there are conflicting IDs.
84
+ *
85
+ * Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
86
+ * macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
87
+ * transparently propagate out to all instances.
88
+ *
89
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
90
+ * macro is in.
91
+ */
92
+ getAndAsyncConvertMacroBodyByMacroId<T = Models.AsyncId>(parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId, callback: Callback<T>): Promise<void>;
93
+ /**
94
+ * Returns Async Id of the conversion task which will convert the macro into a content body of the desired format. The
95
+ * result will be available for 5 minutes after completion of the conversion.
96
+ *
97
+ * About the macro ID: When a macro is created in a new version of content, Confluence will generate a random ID for
98
+ * it, unless an ID is specified (by an app). The macro ID will look similar to this:
99
+ * '884bd9-0cb8-41d5-98be-f80943c14f96'. The ID is then persisted as new versions of content are created, and is only
100
+ * modified by Confluence if there are conflicting IDs.
101
+ *
102
+ * Note, to preserve backwards compatibility this resource will also match on the hash of the macro body, even if a
103
+ * macro ID is found. This check will eventually become redundant, as macro IDs are generated for pages and
104
+ * transparently propagate out to all instances.
105
+ *
106
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content that the
107
+ * macro is in.
108
+ */
109
+ getAndAsyncConvertMacroBodyByMacroId<T = Models.AsyncId>(parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId, callback?: never): Promise<T>;
42
110
  }
@@ -15,6 +15,35 @@ class ContentMacroBody {
15
15
  return this.client.sendRequest(config, callback);
16
16
  });
17
17
  }
18
+ getAndConvertMacroBodyByMacroId(parameters, callback) {
19
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
20
+ const config = {
21
+ url: `/api/content/${parameters.id}/history/${parameters.version}/macro/id/${parameters.macroId}/convert/${parameters.to}`,
22
+ method: 'GET',
23
+ params: {
24
+ spaceKeyContext: parameters.spaceKeyContext,
25
+ embeddedContentRender: parameters.embeddedContentRender,
26
+ expand: parameters.expand,
27
+ },
28
+ };
29
+ return this.client.sendRequest(config, callback);
30
+ });
31
+ }
32
+ getAndAsyncConvertMacroBodyByMacroId(parameters, callback) {
33
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
34
+ const config = {
35
+ url: `/api/content/${parameters.id}/history/${parameters.version}/macro/id/${parameters.macroId}/convert/async/${parameters.to}`,
36
+ method: 'GET',
37
+ params: {
38
+ allowCache: parameters.allowCache,
39
+ spaceKeyContext: parameters.spaceKeyContext,
40
+ embeddedContentRender: parameters.embeddedContentRender,
41
+ expand: parameters.expand,
42
+ },
43
+ };
44
+ return this.client.sendRequest(config, callback);
45
+ });
46
+ }
18
47
  }
19
48
  exports.ContentMacroBody = ContentMacroBody;
20
49
  //# sourceMappingURL=contentMacroBody.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contentMacroBody.js","sourceRoot":"","sources":["../../src/api/contentMacroBody.ts"],"names":[],"mappings":";;;;AAMA,MAAa,gBAAgB;IAC3B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IA0ChC,qBAAqB,CACzB,UAA4C,EAC5C,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,YAAY,UAAU,CAAC,OAAO,aAAa,UAAU,CAAC,OAAO,EAAE;gBACjG,MAAM,EAAE,KAAK;aACd,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AAtDD,4CAsDC"}
1
+ {"version":3,"file":"contentMacroBody.js","sourceRoot":"","sources":["../../src/api/contentMacroBody.ts"],"names":[],"mappings":";;;;AAMA,MAAa,gBAAgB;IAC3B,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IA0ChC,qBAAqB,CACzB,UAA4C,EAC5C,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,YAAY,UAAU,CAAC,OAAO,aAAa,UAAU,CAAC,OAAO,EAAE;gBACjG,MAAM,EAAE,KAAK;aACd,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IA0CK,+BAA+B,CACnC,UAAsD,EACtD,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,YAAY,UAAU,CAAC,OAAO,aAAa,UAAU,CAAC,OAAO,YAAY,UAAU,CAAC,EAAE,EAAE;gBAC1H,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,eAAe,EAAE,UAAU,CAAC,eAAe;oBAC3C,qBAAqB,EAAE,UAAU,CAAC,qBAAqB;oBACvD,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IA0CK,oCAAoC,CACxC,UAA2D,EAC3D,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,YAAY,UAAU,CAAC,OAAO,aAAa,UAAU,CAAC,OAAO,kBAAkB,UAAU,CAAC,EAAE,EAAE;gBAChI,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE;oBACN,UAAU,EAAE,UAAU,CAAC,UAAU;oBACjC,eAAe,EAAE,UAAU,CAAC,eAAe;oBAC3C,qBAAqB,EAAE,UAAU,CAAC,qBAAqB;oBACvD,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;aACF,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AAzKD,4CAyKC"}
@@ -0,0 +1,120 @@
1
+ import * as Models from './models';
2
+ import * as Parameters from './parameters';
3
+ import { Callback } from '../callback';
4
+ import { Client } from '../clients';
5
+ export declare class ContentStates {
6
+ private client;
7
+ constructor(client: Client);
8
+ /**
9
+ * Gets the current content state of the draft or current version of content. To specify the draft version, set the
10
+ * parameter status to draft, otherwise archived or current will get the relevant published state.
11
+ *
12
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.
13
+ */
14
+ getContentState<T = Models.ContentStateResponse>(parameters: Parameters.GetContentState, callback: Callback<T>): Promise<void>;
15
+ /**
16
+ * Gets the current content state of the draft or current version of content. To specify the draft version, set the
17
+ * parameter status to draft, otherwise archived or current will get the relevant published state.
18
+ *
19
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.
20
+ */
21
+ getContentState<T = Models.ContentStateResponse>(parameters: Parameters.GetContentState, callback?: never): Promise<T>;
22
+ /**
23
+ * Sets the content state of the content specified and creates a new version (publishes the content without changing
24
+ * the body) of the content with the new state.
25
+ *
26
+ * You may pass in either an id of a state, or the name and color of a desired new state. If all 3 are passed in, id
27
+ * will be used. If the name and color passed in already exist under the current user's existing custom states, the
28
+ * existing state will be reused. If custom states are disabled in the space of the content (which can be determined
29
+ * by getting the content state space settings of the content's space) then this set will fail.
30
+ *
31
+ * You may not remove a content state via this PUT request. You must use the DELETE method. A specified state is
32
+ * required in the body of this request.
33
+ *
34
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
35
+ */
36
+ setContentState<T = Models.ContentStateResponse>(parameters: Parameters.SetContentState, callback: Callback<T>): Promise<void>;
37
+ /**
38
+ * Sets the content state of the content specified and creates a new version (publishes the content without changing
39
+ * the body) of the content with the new state.
40
+ *
41
+ * You may pass in either an id of a state, or the name and color of a desired new state. If all 3 are passed in, id
42
+ * will be used. If the name and color passed in already exist under the current user's existing custom states, the
43
+ * existing state will be reused. If custom states are disabled in the space of the content (which can be determined
44
+ * by getting the content state space settings of the content's space) then this set will fail.
45
+ *
46
+ * You may not remove a content state via this PUT request. You must use the DELETE method. A specified state is
47
+ * required in the body of this request.
48
+ *
49
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
50
+ */
51
+ setContentState<T = Models.ContentStateResponse>(parameters: Parameters.SetContentState, callback?: never): Promise<T>;
52
+ /**
53
+ * Removes the content state of the content specified and creates a new version (publishes the content without
54
+ * changing the body) of the content with the new status.
55
+ *
56
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
57
+ */
58
+ removeContentState<T = Models.ContentStateResponse>(parameters: Parameters.RemoveContentState, callback: Callback<T>): Promise<void>;
59
+ /**
60
+ * Removes the content state of the content specified and creates a new version (publishes the content without
61
+ * changing the body) of the content with the new status.
62
+ *
63
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
64
+ */
65
+ removeContentState<T = Models.ContentStateResponse>(parameters: Parameters.RemoveContentState, callback?: never): Promise<T>;
66
+ /**
67
+ * Gets content states that are available for the content to be set as. Will return all enabled Space Content States.
68
+ * Will only return most the 3 most recently published custom content states to match UI editor list. To get all
69
+ * custom content states, use the /content-states endpoint.
70
+ *
71
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
72
+ */
73
+ getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback: Callback<T>): Promise<void>;
74
+ /**
75
+ * Gets content states that are available for the content to be set as. Will return all enabled Space Content States.
76
+ * Will only return most the 3 most recently published custom content states to match UI editor list. To get all
77
+ * custom content states, use the /content-states endpoint.
78
+ *
79
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.
80
+ */
81
+ getAvailableContentStates<T = Models.AvailableContentStates>(parameters: Parameters.GetAvailableContentStates, callback?: never): Promise<T>;
82
+ /**
83
+ * Get custom content states that authenticated user has created.
84
+ *
85
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required** Must have user authentication.
86
+ */
87
+ getCustomContentStates<T = Models.ContentState[]>(callback: Callback<T>): Promise<void>;
88
+ /**
89
+ * Get custom content states that authenticated user has created.
90
+ *
91
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required** Must have user authentication.
92
+ */
93
+ getCustomContentStates<T = Models.ContentState[]>(callback?: never): Promise<T>;
94
+ /**
95
+ * Get content states that are suggested in the space.
96
+ *
97
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space view permission
98
+ */
99
+ getSpaceContentStates<T = Models.ContentState[]>(parameters: Parameters.GetSpaceContentStates, callback: Callback<T>): Promise<void>;
100
+ /**
101
+ * Get content states that are suggested in the space.
102
+ *
103
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space view permission
104
+ */
105
+ getSpaceContentStates<T = Models.ContentState[]>(parameters: Parameters.GetSpaceContentStates, callback?: never): Promise<T>;
106
+ /**
107
+ * Get object describing whether content states are allowed at all, if custom content states or space content states
108
+ * are restricted, and a list of space content states allowed for the space if they are not restricted.
109
+ *
110
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space admin permission
111
+ */
112
+ getContentStateSettings<T = Models.ContentStateSettings>(parameters: Parameters.GetContentStateSettings, callback: Callback<T>): Promise<void>;
113
+ /**
114
+ * Get object describing whether content states are allowed at all, if custom content states or space content states
115
+ * are restricted, and a list of space content states allowed for the space if they are not restricted.
116
+ *
117
+ * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space admin permission
118
+ */
119
+ getContentStateSettings<T = Models.ContentStateSettings>(parameters: Parameters.GetContentStateSettings, callback?: never): Promise<T>;
120
+ }
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentStates = void 0;
4
+ const tslib_1 = require("tslib");
5
+ class ContentStates {
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ getContentState(parameters, callback) {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
+ const config = {
12
+ url: `/api/content/${parameters.id}/state`,
13
+ method: 'GET',
14
+ params: {
15
+ status: parameters.status,
16
+ },
17
+ };
18
+ return this.client.sendRequest(config, callback);
19
+ });
20
+ }
21
+ setContentState(parameters, callback) {
22
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ const config = {
24
+ url: `/api/content/${parameters.id}/state`,
25
+ method: 'PUT',
26
+ params: {
27
+ status: parameters.status,
28
+ },
29
+ data: {
30
+ name: parameters.name,
31
+ color: parameters.color,
32
+ id: parameters.stateId,
33
+ },
34
+ };
35
+ return this.client.sendRequest(config, callback);
36
+ });
37
+ }
38
+ removeContentState(parameters, callback) {
39
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
40
+ const config = {
41
+ url: `/api/content/${parameters.id}/state`,
42
+ method: 'DELETE',
43
+ params: {
44
+ status: parameters.status,
45
+ },
46
+ };
47
+ return this.client.sendRequest(config, callback);
48
+ });
49
+ }
50
+ getAvailableContentStates(parameters, callback) {
51
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
52
+ const config = {
53
+ url: `/api/content/${parameters.id}/state/available`,
54
+ method: 'GET',
55
+ };
56
+ return this.client.sendRequest(config, callback);
57
+ });
58
+ }
59
+ getCustomContentStates(callback) {
60
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
61
+ const config = {
62
+ url: '/api/content-states',
63
+ method: 'GET',
64
+ };
65
+ return this.client.sendRequest(config, callback);
66
+ });
67
+ }
68
+ getSpaceContentStates(parameters, callback) {
69
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
70
+ const config = {
71
+ url: `/api/space/${parameters.spaceKey}/state`,
72
+ method: 'GET',
73
+ };
74
+ return this.client.sendRequest(config, callback);
75
+ });
76
+ }
77
+ getContentStateSettings(parameters, callback) {
78
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
79
+ const config = {
80
+ url: `/api/space/${parameters.spaceKey}/state/settings`,
81
+ method: 'GET',
82
+ };
83
+ return this.client.sendRequest(config, callback);
84
+ });
85
+ }
86
+ }
87
+ exports.ContentStates = ContentStates;
88
+ //# sourceMappingURL=contentStates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contentStates.js","sourceRoot":"","sources":["../../src/api/contentStates.ts"],"names":[],"mappings":";;;;AAMA,MAAa,aAAa;IACxB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAsBhC,eAAe,CACnB,UAAsC,EACtC,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F,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAcK,sBAAsB,CAA4B,QAAsB;;YAC5E,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,qBAAqB;gBAC1B,MAAM,EAAE,KAAK;aACd,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAoBK,qBAAqB,CACzB,UAA4C,EAC5C,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,cAAc,UAAU,CAAC,QAAQ,QAAQ;gBAC9C,MAAM,EAAE,KAAK;aACd,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAsBK,uBAAuB,CAC3B,UAA8C,EAC9C,QAAsB;;YAEtB,MAAM,MAAM,GAAkB;gBAC5B,GAAG,EAAE,cAAc,UAAU,CAAC,QAAQ,iBAAiB;gBACvD,MAAM,EAAE,KAAK;aACd,CAAC;YAEF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;CACF;AArPD,sCAqPC"}
@@ -20,6 +20,7 @@ class DynamicModules {
20
20
  const config = {
21
21
  url: '/atlassian-connect/1/app/module/dynamic',
22
22
  method: 'POST',
23
+ data: parameters,
23
24
  };
24
25
  return this.client.sendRequest(config, callback);
25
26
  });
@@ -1 +1 @@
1
- {"version":3,"file":"dynamicModules.js","sourceRoot":"","sources":["../../src/api/dynamicModules.ts"],"names":[],"mappings":";;;;AAKA,MAAa,cAAc;IACzB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAAG,CAAC;IAchC,UAAU,CAAc,QAAsB;;YAClD,MAAM,MAAM,GAAkB;gB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