@qlik/api 0.0.1 → 0.0.3

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 (156) hide show
  1. package/.github/CODEOWNERS +2 -0
  2. package/.github/workflows/release.yaml +35 -0
  3. package/README.md +1 -3
  4. package/api-keys.d.mts +27 -13
  5. package/api-keys.d.ts +27 -13
  6. package/api-keys.js +17 -13
  7. package/api-keys.mjs +12 -8
  8. package/apps.d.mts +580 -165
  9. package/apps.d.ts +580 -165
  10. package/apps.js +111 -44
  11. package/apps.mjs +78 -11
  12. package/audits.d.mts +20 -8
  13. package/audits.d.ts +20 -8
  14. package/audits.js +12 -11
  15. package/audits.mjs +7 -6
  16. package/auth-AWZV4DPP.js +41 -0
  17. package/{auth-TE272Q34.mjs → auth-CPBNNC7S.mjs} +8 -3
  18. package/auth.js +4 -3
  19. package/auth.mjs +3 -2
  20. package/automations.d.mts +56 -20
  21. package/automations.d.ts +56 -20
  22. package/automations.js +32 -25
  23. package/automations.mjs +18 -11
  24. package/brands.d.mts +45 -4
  25. package/brands.d.ts +45 -4
  26. package/brands.js +20 -15
  27. package/brands.mjs +7 -2
  28. package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
  29. package/{chunk-WM7FQU2U.mjs → chunk-3SVRHJII.mjs} +3 -3
  30. package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
  31. package/{chunk-4ES65KO3.js → chunk-7RY3NO6N.js} +2 -2
  32. package/{chunk-4OMEH5SW.mjs → chunk-CYRLVHU3.mjs} +321 -53
  33. package/{chunk-XASXL2NC.js → chunk-D52VW5UN.js} +323 -55
  34. package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
  35. package/{chunk-4FLMND6T.js → chunk-GV5SRHY2.js} +4 -4
  36. package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
  37. package/chunk-P57PW2II.js +11 -0
  38. package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
  39. package/chunk-ZFXKCRJC.mjs +11 -0
  40. package/collections.d.mts +52 -18
  41. package/collections.d.ts +52 -18
  42. package/collections.js +28 -14
  43. package/collections.mjs +16 -2
  44. package/csp-origins.d.mts +12 -0
  45. package/csp-origins.d.ts +12 -0
  46. package/csp-origins.js +12 -9
  47. package/csp-origins.mjs +5 -2
  48. package/data-assets.d.mts +10 -0
  49. package/data-assets.d.ts +10 -0
  50. package/data-assets.js +13 -8
  51. package/data-assets.mjs +7 -2
  52. package/data-connections.d.mts +20 -0
  53. package/data-connections.d.ts +20 -0
  54. package/data-connections.js +19 -12
  55. package/data-connections.mjs +9 -2
  56. package/data-credentials.d.mts +10 -0
  57. package/data-credentials.d.ts +10 -0
  58. package/data-credentials.js +10 -7
  59. package/data-credentials.mjs +5 -2
  60. package/data-files.d.mts +114 -29
  61. package/data-files.d.ts +114 -29
  62. package/data-files.js +25 -18
  63. package/data-files.mjs +15 -8
  64. package/{enigma-session-TEB53FAF.js → enigma-session-XPXDQAIV.js} +12 -7
  65. package/{enigma-session-4L373ALV.mjs → enigma-session-ZH6MYA54.mjs} +10 -5
  66. package/{esm-4X3DKK5D.js → esm-3VXX2GKL.js} +13 -9
  67. package/{esm-SOWVJKOQ.mjs → esm-OY4XVIJB.mjs} +13 -9
  68. package/extensions.d.mts +26 -2
  69. package/extensions.d.ts +26 -2
  70. package/extensions.js +13 -10
  71. package/extensions.mjs +5 -2
  72. package/glossaries.d.mts +55 -20
  73. package/glossaries.d.ts +55 -20
  74. package/glossaries.js +39 -27
  75. package/glossaries.mjs +14 -2
  76. package/groups.d.mts +29 -13
  77. package/groups.d.ts +29 -13
  78. package/groups.js +19 -14
  79. package/groups.mjs +13 -8
  80. package/identity-providers.d.mts +23 -7
  81. package/identity-providers.d.ts +23 -7
  82. package/identity-providers.js +16 -13
  83. package/identity-providers.mjs +8 -5
  84. package/index.js +150 -112
  85. package/index.mjs +146 -108
  86. package/{invoke-fetch-MSSJAZ7K.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
  87. package/invoke-fetch-UNTAUR7O.js +17 -0
  88. package/items.d.mts +25 -22
  89. package/items.d.ts +25 -22
  90. package/items.js +17 -14
  91. package/items.mjs +11 -8
  92. package/licenses.d.mts +20 -0
  93. package/licenses.d.ts +20 -0
  94. package/licenses.js +17 -12
  95. package/licenses.mjs +7 -2
  96. package/package.json +7 -18
  97. package/{qix-RLTISYTB.js → qix-UNWXPGMA.js} +9 -8
  98. package/{qix-EU7PXRZ6.mjs → qix-ZSJ4PIK3.mjs} +5 -4
  99. package/qix.d.mts +1066 -1017
  100. package/qix.d.ts +1066 -1017
  101. package/qix.js +4 -3
  102. package/qix.mjs +3 -2
  103. package/quotas.d.mts +4 -0
  104. package/quotas.d.ts +4 -0
  105. package/quotas.js +6 -5
  106. package/quotas.mjs +3 -2
  107. package/reload-tasks.d.mts +2 -0
  108. package/reload-tasks.d.ts +2 -0
  109. package/reload-tasks.js +11 -8
  110. package/reload-tasks.mjs +5 -2
  111. package/reloads.d.mts +20 -11
  112. package/reloads.d.ts +20 -11
  113. package/reloads.js +9 -7
  114. package/reloads.mjs +4 -2
  115. package/roles.d.mts +4 -0
  116. package/roles.d.ts +4 -0
  117. package/roles.js +6 -5
  118. package/roles.mjs +3 -2
  119. package/spaces.d.mts +36 -30
  120. package/spaces.d.ts +36 -30
  121. package/spaces.js +21 -15
  122. package/spaces.mjs +8 -2
  123. package/temp-contents.d.mts +9 -70
  124. package/temp-contents.d.ts +9 -70
  125. package/temp-contents.js +10 -29
  126. package/temp-contents.mjs +5 -24
  127. package/tenants.d.mts +12 -0
  128. package/tenants.d.ts +12 -0
  129. package/tenants.js +14 -9
  130. package/tenants.mjs +7 -2
  131. package/themes.d.mts +26 -2
  132. package/themes.d.ts +26 -2
  133. package/themes.js +13 -10
  134. package/themes.mjs +5 -2
  135. package/transports.d.mts +12 -0
  136. package/transports.d.ts +12 -0
  137. package/transports.js +12 -9
  138. package/transports.mjs +5 -2
  139. package/users.d.mts +48 -29
  140. package/users.d.ts +48 -29
  141. package/users.js +18 -13
  142. package/users.mjs +7 -2
  143. package/web-integrations.d.mts +10 -0
  144. package/web-integrations.d.ts +10 -0
  145. package/web-integrations.js +11 -8
  146. package/web-integrations.mjs +5 -2
  147. package/web-notifications.d.mts +12 -0
  148. package/web-notifications.d.ts +12 -0
  149. package/web-notifications.js +12 -9
  150. package/web-notifications.mjs +5 -2
  151. package/webhooks.d.mts +27 -7
  152. package/webhooks.d.ts +27 -7
  153. package/webhooks.js +17 -13
  154. package/webhooks.mjs +6 -2
  155. package/auth-CSVTXOZX.js +0 -36
  156. package/invoke-fetch-PEI54KZO.js +0 -14
package/themes.d.mts CHANGED
@@ -63,6 +63,7 @@ type Themes = {
63
63
  };
64
64
  /**
65
65
  * Lists all themes.
66
+ *
66
67
  * @throws GetThemesHttpError
67
68
  */
68
69
  declare const getThemes: (options?: ApiCallOptions) => Promise<GetThemesHttpResponse>;
@@ -78,10 +79,16 @@ type GetThemesHttpError = {
78
79
  };
79
80
  /**
80
81
  * Creates a new theme. If a file is provided, the data field is not required.
82
+ *
81
83
  * @param body an object with the body content
82
84
  * @throws UploadThemeHttpError
83
85
  */
84
- declare const uploadTheme: (body: unknown, options?: ApiCallOptions) => Promise<UploadThemeHttpResponse>;
86
+ declare const uploadTheme: (body: {
87
+ /** The theme model. */
88
+ data?: Theme;
89
+ /** Theme archive. */
90
+ file?: BodyInit;
91
+ }, options?: ApiCallOptions) => Promise<UploadThemeHttpResponse>;
85
92
  type UploadThemeHttpResponse = {
86
93
  data: Theme;
87
94
  headers: Headers;
@@ -94,6 +101,7 @@ type UploadThemeHttpError = {
94
101
  };
95
102
  /**
96
103
  * Deletes a specific theme.
104
+ *
97
105
  * @param id Theme identifier or its qextFilename.
98
106
  * @throws DeleteThemeHttpError
99
107
  */
@@ -110,6 +118,7 @@ type DeleteThemeHttpError = {
110
118
  };
111
119
  /**
112
120
  * Returns a specific theme.
121
+ *
113
122
  * @param id Theme identifier or its qextFilename
114
123
  * @throws GetThemeHttpError
115
124
  */
@@ -126,11 +135,17 @@ type GetThemeHttpError = {
126
135
  };
127
136
  /**
128
137
  * Updates a specific theme with provided data. If a file is provided, the data field is not required.
138
+ *
129
139
  * @param id Theme identifier or its qextFilename.
130
140
  * @param body an object with the body content
131
141
  * @throws PatchThemeHttpError
132
142
  */
133
- declare const patchTheme: (id: string, body: unknown, options?: ApiCallOptions) => Promise<PatchThemeHttpResponse>;
143
+ declare const patchTheme: (id: string, body: {
144
+ /** The theme model. */
145
+ data?: Theme;
146
+ /** Theme archive. */
147
+ file?: BodyInit;
148
+ }, options?: ApiCallOptions) => Promise<PatchThemeHttpResponse>;
134
149
  type PatchThemeHttpResponse = {
135
150
  data: Themes;
136
151
  headers: Headers;
@@ -143,6 +158,7 @@ type PatchThemeHttpError = {
143
158
  };
144
159
  /**
145
160
  * Downloads the theme as an archive.
161
+ *
146
162
  * @param id Theme identifier or its qextFilename
147
163
  * @throws DownloadThemeHttpError
148
164
  */
@@ -159,6 +175,7 @@ type DownloadThemeHttpError = {
159
175
  };
160
176
  /**
161
177
  * Downloads a file from the theme archive.
178
+ *
162
179
  * @param id Theme identifier or its qextFilename.
163
180
  * @param filepath Path to the file archive for the specified theme archive. Folders separated with forward slashes.
164
181
  * @throws DownloadFileFromThemeHttpError
@@ -181,29 +198,34 @@ declare function clearCache(): void;
181
198
  interface ThemesAPI {
182
199
  /**
183
200
  * Lists all themes.
201
+ *
184
202
  * @throws GetThemesHttpError
185
203
  */
186
204
  getThemes: typeof getThemes;
187
205
  /**
188
206
  * Creates a new theme. If a file is provided, the data field is not required.
207
+ *
189
208
  * @param body an object with the body content
190
209
  * @throws UploadThemeHttpError
191
210
  */
192
211
  uploadTheme: typeof uploadTheme;
193
212
  /**
194
213
  * Deletes a specific theme.
214
+ *
195
215
  * @param id Theme identifier or its qextFilename.
196
216
  * @throws DeleteThemeHttpError
197
217
  */
198
218
  deleteTheme: typeof deleteTheme;
199
219
  /**
200
220
  * Returns a specific theme.
221
+ *
201
222
  * @param id Theme identifier or its qextFilename
202
223
  * @throws GetThemeHttpError
203
224
  */
204
225
  getTheme: typeof getTheme;
205
226
  /**
206
227
  * Updates a specific theme with provided data. If a file is provided, the data field is not required.
228
+ *
207
229
  * @param id Theme identifier or its qextFilename.
208
230
  * @param body an object with the body content
209
231
  * @throws PatchThemeHttpError
@@ -211,12 +233,14 @@ interface ThemesAPI {
211
233
  patchTheme: typeof patchTheme;
212
234
  /**
213
235
  * Downloads the theme as an archive.
236
+ *
214
237
  * @param id Theme identifier or its qextFilename
215
238
  * @throws DownloadThemeHttpError
216
239
  */
217
240
  downloadTheme: typeof downloadTheme;
218
241
  /**
219
242
  * Downloads a file from the theme archive.
243
+ *
220
244
  * @param id Theme identifier or its qextFilename.
221
245
  * @param filepath Path to the file archive for the specified theme archive. Folders separated with forward slashes.
222
246
  * @throws DownloadFileFromThemeHttpError
package/themes.d.ts CHANGED
@@ -63,6 +63,7 @@ type Themes = {
63
63
  };
64
64
  /**
65
65
  * Lists all themes.
66
+ *
66
67
  * @throws GetThemesHttpError
67
68
  */
68
69
  declare const getThemes: (options?: ApiCallOptions) => Promise<GetThemesHttpResponse>;
@@ -78,10 +79,16 @@ type GetThemesHttpError = {
78
79
  };
79
80
  /**
80
81
  * Creates a new theme. If a file is provided, the data field is not required.
82
+ *
81
83
  * @param body an object with the body content
82
84
  * @throws UploadThemeHttpError
83
85
  */
84
- declare const uploadTheme: (body: unknown, options?: ApiCallOptions) => Promise<UploadThemeHttpResponse>;
86
+ declare const uploadTheme: (body: {
87
+ /** The theme model. */
88
+ data?: Theme;
89
+ /** Theme archive. */
90
+ file?: BodyInit;
91
+ }, options?: ApiCallOptions) => Promise<UploadThemeHttpResponse>;
85
92
  type UploadThemeHttpResponse = {
86
93
  data: Theme;
87
94
  headers: Headers;
@@ -94,6 +101,7 @@ type UploadThemeHttpError = {
94
101
  };
95
102
  /**
96
103
  * Deletes a specific theme.
104
+ *
97
105
  * @param id Theme identifier or its qextFilename.
98
106
  * @throws DeleteThemeHttpError
99
107
  */
@@ -110,6 +118,7 @@ type DeleteThemeHttpError = {
110
118
  };
111
119
  /**
112
120
  * Returns a specific theme.
121
+ *
113
122
  * @param id Theme identifier or its qextFilename
114
123
  * @throws GetThemeHttpError
115
124
  */
@@ -126,11 +135,17 @@ type GetThemeHttpError = {
126
135
  };
127
136
  /**
128
137
  * Updates a specific theme with provided data. If a file is provided, the data field is not required.
138
+ *
129
139
  * @param id Theme identifier or its qextFilename.
130
140
  * @param body an object with the body content
131
141
  * @throws PatchThemeHttpError
132
142
  */
133
- declare const patchTheme: (id: string, body: unknown, options?: ApiCallOptions) => Promise<PatchThemeHttpResponse>;
143
+ declare const patchTheme: (id: string, body: {
144
+ /** The theme model. */
145
+ data?: Theme;
146
+ /** Theme archive. */
147
+ file?: BodyInit;
148
+ }, options?: ApiCallOptions) => Promise<PatchThemeHttpResponse>;
134
149
  type PatchThemeHttpResponse = {
135
150
  data: Themes;
136
151
  headers: Headers;
@@ -143,6 +158,7 @@ type PatchThemeHttpError = {
143
158
  };
144
159
  /**
145
160
  * Downloads the theme as an archive.
161
+ *
146
162
  * @param id Theme identifier or its qextFilename
147
163
  * @throws DownloadThemeHttpError
148
164
  */
@@ -159,6 +175,7 @@ type DownloadThemeHttpError = {
159
175
  };
160
176
  /**
161
177
  * Downloads a file from the theme archive.
178
+ *
162
179
  * @param id Theme identifier or its qextFilename.
163
180
  * @param filepath Path to the file archive for the specified theme archive. Folders separated with forward slashes.
164
181
  * @throws DownloadFileFromThemeHttpError
@@ -181,29 +198,34 @@ declare function clearCache(): void;
181
198
  interface ThemesAPI {
182
199
  /**
183
200
  * Lists all themes.
201
+ *
184
202
  * @throws GetThemesHttpError
185
203
  */
186
204
  getThemes: typeof getThemes;
187
205
  /**
188
206
  * Creates a new theme. If a file is provided, the data field is not required.
207
+ *
189
208
  * @param body an object with the body content
190
209
  * @throws UploadThemeHttpError
191
210
  */
192
211
  uploadTheme: typeof uploadTheme;
193
212
  /**
194
213
  * Deletes a specific theme.
214
+ *
195
215
  * @param id Theme identifier or its qextFilename.
196
216
  * @throws DeleteThemeHttpError
197
217
  */
198
218
  deleteTheme: typeof deleteTheme;
199
219
  /**
200
220
  * Returns a specific theme.
221
+ *
201
222
  * @param id Theme identifier or its qextFilename
202
223
  * @throws GetThemeHttpError
203
224
  */
204
225
  getTheme: typeof getTheme;
205
226
  /**
206
227
  * Updates a specific theme with provided data. If a file is provided, the data field is not required.
228
+ *
207
229
  * @param id Theme identifier or its qextFilename.
208
230
  * @param body an object with the body content
209
231
  * @throws PatchThemeHttpError
@@ -211,12 +233,14 @@ interface ThemesAPI {
211
233
  patchTheme: typeof patchTheme;
212
234
  /**
213
235
  * Downloads the theme as an archive.
236
+ *
214
237
  * @param id Theme identifier or its qextFilename
215
238
  * @throws DownloadThemeHttpError
216
239
  */
217
240
  downloadTheme: typeof downloadTheme;
218
241
  /**
219
242
  * Downloads a file from the theme archive.
243
+ *
220
244
  * @param id Theme identifier or its qextFilename.
221
245
  * @param filepath Path to the file archive for the specified theme archive. Folders separated with forward slashes.
222
246
  * @throws DownloadFileFromThemeHttpError
package/themes.js CHANGED
@@ -1,54 +1,57 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
+ require('./chunk-2STFUQKQ.js');
6
+ require('./chunk-P57PW2II.js');
6
7
 
7
8
  // src/public/rest/themes.ts
8
- var getThemes = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
9
+ var getThemes = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "themes", {
9
10
  method: "get",
10
11
  pathTemplate: "/api/v1/themes",
11
12
  options
12
13
  });
13
- var uploadTheme = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
14
+ var uploadTheme = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "themes", {
14
15
  method: "post",
15
16
  pathTemplate: "/api/v1/themes",
16
17
  body,
18
+ contentType: "multipart/form-data",
17
19
  options
18
20
  });
19
- var deleteTheme = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
21
+ var deleteTheme = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "themes", {
20
22
  method: "delete",
21
23
  pathTemplate: "/api/v1/themes/{id}",
22
24
  pathVariables: { id },
23
25
  options
24
26
  });
25
- var getTheme = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
27
+ var getTheme = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "themes", {
26
28
  method: "get",
27
29
  pathTemplate: "/api/v1/themes/{id}",
28
30
  pathVariables: { id },
29
31
  options
30
32
  });
31
- var patchTheme = async (id, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
33
+ var patchTheme = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "themes", {
32
34
  method: "patch",
33
35
  pathTemplate: "/api/v1/themes/{id}",
34
36
  pathVariables: { id },
35
37
  body,
38
+ contentType: "multipart/form-data",
36
39
  options
37
40
  });
38
- var downloadTheme = async (id, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
41
+ var downloadTheme = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "themes", {
39
42
  method: "get",
40
43
  pathTemplate: "/api/v1/themes/{id}/file",
41
44
  pathVariables: { id },
42
45
  options
43
46
  });
44
- var downloadFileFromTheme = async (id, filepath, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "themes", {
47
+ var downloadFileFromTheme = async (id, filepath, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "themes", {
45
48
  method: "get",
46
49
  pathTemplate: "/api/v1/themes/{id}/file/{filepath}",
47
50
  pathVariables: { id, filepath },
48
51
  options
49
52
  });
50
53
  function clearCache() {
51
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "themes");
54
+ return _chunkJNGURO23js.clearApiCache.call(void 0, "themes");
52
55
  }
53
56
  var themesExport = {
54
57
  getThemes,
package/themes.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-TE7XMBT5.mjs";
5
+ import "./chunk-3SVRHJII.mjs";
6
+ import "./chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // src/public/rest/themes.ts
8
9
  var getThemes = async (options) => invokeFetch("themes", {
@@ -14,6 +15,7 @@ var uploadTheme = async (body, options) => invokeFetch("themes", {
14
15
  method: "post",
15
16
  pathTemplate: "/api/v1/themes",
16
17
  body,
18
+ contentType: "multipart/form-data",
17
19
  options
18
20
  });
19
21
  var deleteTheme = async (id, options) => invokeFetch("themes", {
@@ -33,6 +35,7 @@ var patchTheme = async (id, body, options) => invokeFetch("themes", {
33
35
  pathTemplate: "/api/v1/themes/{id}",
34
36
  pathVariables: { id },
35
37
  body,
38
+ contentType: "multipart/form-data",
36
39
  options
37
40
  });
38
41
  var downloadTheme = async (id, options) => invokeFetch("themes", {
package/transports.d.mts CHANGED
@@ -113,6 +113,7 @@ type SmtpResult = {
113
113
  };
114
114
  /**
115
115
  * Deletes email configuration for a given tenant id (retrieved from JWT).
116
+ *
116
117
  * @throws DeleteEmailConfigHttpError
117
118
  */
118
119
  declare const deleteEmailConfig: (options?: ApiCallOptions) => Promise<DeleteEmailConfigHttpResponse>;
@@ -139,6 +140,7 @@ type DeleteEmailConfigdefaultHttpError = {
139
140
  type DeleteEmailConfigHttpError = DeleteEmailConfig403HttpError | DeleteEmailConfig404HttpError | DeleteEmailConfigdefaultHttpError;
140
141
  /**
141
142
  * Returns the email configuration for a given tenant id (retrieved from JWT).
143
+ *
142
144
  * @throws GetEmailConfigHttpError
143
145
  */
144
146
  declare const getEmailConfig: (options?: ApiCallOptions) => Promise<GetEmailConfigHttpResponse>;
@@ -160,6 +162,7 @@ type GetEmailConfigdefaultHttpError = {
160
162
  type GetEmailConfigHttpError = GetEmailConfig403HttpError | GetEmailConfigdefaultHttpError;
161
163
  /**
162
164
  * Patch the email configuration for a given tenant id (retrieved from JWT).
165
+ *
163
166
  * @param body an object with the body content
164
167
  * @throws PatchEmailConfigHttpError
165
168
  */
@@ -187,6 +190,7 @@ type PatchEmailConfigdefaultHttpError = {
187
190
  type PatchEmailConfigHttpError = PatchEmailConfig400HttpError | PatchEmailConfig403HttpError | PatchEmailConfigdefaultHttpError;
188
191
  /**
189
192
  * Send a test mail with the supplied email info (subject, body, recipient). Email config from database is used for the connection.
193
+ *
190
194
  * @param body an object with the body content
191
195
  * @throws SendTestEmailHttpError
192
196
  */
@@ -214,6 +218,7 @@ type SendTestEmaildefaultHttpError = {
214
218
  type SendTestEmailHttpError = SendTestEmail403HttpError | SendTestEmail404HttpError | SendTestEmaildefaultHttpError;
215
219
  /**
216
220
  * Returns the isValid value for the email configuration for the tenant. Will return false if no email configuration exists.
221
+ *
217
222
  * @throws ValidateEmailConfigHttpError
218
223
  */
219
224
  declare const validateEmailConfig: (options?: ApiCallOptions) => Promise<ValidateEmailConfigHttpResponse>;
@@ -229,6 +234,7 @@ type ValidateEmailConfigHttpError = {
229
234
  };
230
235
  /**
231
236
  * Verifies connection to email server for tenant provided via JWT
237
+ *
232
238
  * @throws VerifyEmailConfigConnectionHttpError
233
239
  */
234
240
  declare const verifyEmailConfigConnection: (options?: ApiCallOptions) => Promise<VerifyEmailConfigConnectionHttpResponse>;
@@ -255,33 +261,39 @@ declare function clearCache(): void;
255
261
  interface TransportsAPI {
256
262
  /**
257
263
  * Deletes email configuration for a given tenant id (retrieved from JWT).
264
+ *
258
265
  * @throws DeleteEmailConfigHttpError
259
266
  */
260
267
  deleteEmailConfig: typeof deleteEmailConfig;
261
268
  /**
262
269
  * Returns the email configuration for a given tenant id (retrieved from JWT).
270
+ *
263
271
  * @throws GetEmailConfigHttpError
264
272
  */
265
273
  getEmailConfig: typeof getEmailConfig;
266
274
  /**
267
275
  * Patch the email configuration for a given tenant id (retrieved from JWT).
276
+ *
268
277
  * @param body an object with the body content
269
278
  * @throws PatchEmailConfigHttpError
270
279
  */
271
280
  patchEmailConfig: typeof patchEmailConfig;
272
281
  /**
273
282
  * Send a test mail with the supplied email info (subject, body, recipient). Email config from database is used for the connection.
283
+ *
274
284
  * @param body an object with the body content
275
285
  * @throws SendTestEmailHttpError
276
286
  */
277
287
  sendTestEmail: typeof sendTestEmail;
278
288
  /**
279
289
  * Returns the isValid value for the email configuration for the tenant. Will return false if no email configuration exists.
290
+ *
280
291
  * @throws ValidateEmailConfigHttpError
281
292
  */
282
293
  validateEmailConfig: typeof validateEmailConfig;
283
294
  /**
284
295
  * Verifies connection to email server for tenant provided via JWT
296
+ *
285
297
  * @throws VerifyEmailConfigConnectionHttpError
286
298
  */
287
299
  verifyEmailConfigConnection: typeof verifyEmailConfigConnection;
package/transports.d.ts CHANGED
@@ -113,6 +113,7 @@ type SmtpResult = {
113
113
  };
114
114
  /**
115
115
  * Deletes email configuration for a given tenant id (retrieved from JWT).
116
+ *
116
117
  * @throws DeleteEmailConfigHttpError
117
118
  */
118
119
  declare const deleteEmailConfig: (options?: ApiCallOptions) => Promise<DeleteEmailConfigHttpResponse>;
@@ -139,6 +140,7 @@ type DeleteEmailConfigdefaultHttpError = {
139
140
  type DeleteEmailConfigHttpError = DeleteEmailConfig403HttpError | DeleteEmailConfig404HttpError | DeleteEmailConfigdefaultHttpError;
140
141
  /**
141
142
  * Returns the email configuration for a given tenant id (retrieved from JWT).
143
+ *
142
144
  * @throws GetEmailConfigHttpError
143
145
  */
144
146
  declare const getEmailConfig: (options?: ApiCallOptions) => Promise<GetEmailConfigHttpResponse>;
@@ -160,6 +162,7 @@ type GetEmailConfigdefaultHttpError = {
160
162
  type GetEmailConfigHttpError = GetEmailConfig403HttpError | GetEmailConfigdefaultHttpError;
161
163
  /**
162
164
  * Patch the email configuration for a given tenant id (retrieved from JWT).
165
+ *
163
166
  * @param body an object with the body content
164
167
  * @throws PatchEmailConfigHttpError
165
168
  */
@@ -187,6 +190,7 @@ type PatchEmailConfigdefaultHttpError = {
187
190
  type PatchEmailConfigHttpError = PatchEmailConfig400HttpError | PatchEmailConfig403HttpError | PatchEmailConfigdefaultHttpError;
188
191
  /**
189
192
  * Send a test mail with the supplied email info (subject, body, recipient). Email config from database is used for the connection.
193
+ *
190
194
  * @param body an object with the body content
191
195
  * @throws SendTestEmailHttpError
192
196
  */
@@ -214,6 +218,7 @@ type SendTestEmaildefaultHttpError = {
214
218
  type SendTestEmailHttpError = SendTestEmail403HttpError | SendTestEmail404HttpError | SendTestEmaildefaultHttpError;
215
219
  /**
216
220
  * Returns the isValid value for the email configuration for the tenant. Will return false if no email configuration exists.
221
+ *
217
222
  * @throws ValidateEmailConfigHttpError
218
223
  */
219
224
  declare const validateEmailConfig: (options?: ApiCallOptions) => Promise<ValidateEmailConfigHttpResponse>;
@@ -229,6 +234,7 @@ type ValidateEmailConfigHttpError = {
229
234
  };
230
235
  /**
231
236
  * Verifies connection to email server for tenant provided via JWT
237
+ *
232
238
  * @throws VerifyEmailConfigConnectionHttpError
233
239
  */
234
240
  declare const verifyEmailConfigConnection: (options?: ApiCallOptions) => Promise<VerifyEmailConfigConnectionHttpResponse>;
@@ -255,33 +261,39 @@ declare function clearCache(): void;
255
261
  interface TransportsAPI {
256
262
  /**
257
263
  * Deletes email configuration for a given tenant id (retrieved from JWT).
264
+ *
258
265
  * @throws DeleteEmailConfigHttpError
259
266
  */
260
267
  deleteEmailConfig: typeof deleteEmailConfig;
261
268
  /**
262
269
  * Returns the email configuration for a given tenant id (retrieved from JWT).
270
+ *
263
271
  * @throws GetEmailConfigHttpError
264
272
  */
265
273
  getEmailConfig: typeof getEmailConfig;
266
274
  /**
267
275
  * Patch the email configuration for a given tenant id (retrieved from JWT).
276
+ *
268
277
  * @param body an object with the body content
269
278
  * @throws PatchEmailConfigHttpError
270
279
  */
271
280
  patchEmailConfig: typeof patchEmailConfig;
272
281
  /**
273
282
  * Send a test mail with the supplied email info (subject, body, recipient). Email config from database is used for the connection.
283
+ *
274
284
  * @param body an object with the body content
275
285
  * @throws SendTestEmailHttpError
276
286
  */
277
287
  sendTestEmail: typeof sendTestEmail;
278
288
  /**
279
289
  * Returns the isValid value for the email configuration for the tenant. Will return false if no email configuration exists.
290
+ *
280
291
  * @throws ValidateEmailConfigHttpError
281
292
  */
282
293
  validateEmailConfig: typeof validateEmailConfig;
283
294
  /**
284
295
  * Verifies connection to email server for tenant provided via JWT
296
+ *
285
297
  * @throws VerifyEmailConfigConnectionHttpError
286
298
  */
287
299
  verifyEmailConfigConnection: typeof verifyEmailConfigConnection;
package/transports.js CHANGED
@@ -1,44 +1,47 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
5
- require('./chunk-ZT4C7KCQ.js');
4
+ var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
+ require('./chunk-2STFUQKQ.js');
6
+ require('./chunk-P57PW2II.js');
6
7
 
7
8
  // src/public/rest/transports.ts
8
- var deleteEmailConfig = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "transports", {
9
+ var deleteEmailConfig = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "transports", {
9
10
  method: "delete",
10
11
  pathTemplate: "/api/v1/transports/email-config",
11
12
  options
12
13
  });
13
- var getEmailConfig = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "transports", {
14
+ var getEmailConfig = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "transports", {
14
15
  method: "get",
15
16
  pathTemplate: "/api/v1/transports/email-config",
16
17
  options
17
18
  });
18
- var patchEmailConfig = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "transports", {
19
+ var patchEmailConfig = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "transports", {
19
20
  method: "patch",
20
21
  pathTemplate: "/api/v1/transports/email-config",
21
22
  body,
23
+ contentType: "application/json",
22
24
  options
23
25
  });
24
- var sendTestEmail = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "transports", {
26
+ var sendTestEmail = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "transports", {
25
27
  method: "post",
26
28
  pathTemplate: "/api/v1/transports/email-config/actions/send-test-email",
27
29
  body,
30
+ contentType: "application/json",
28
31
  options
29
32
  });
30
- var validateEmailConfig = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "transports", {
33
+ var validateEmailConfig = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "transports", {
31
34
  method: "post",
32
35
  pathTemplate: "/api/v1/transports/email-config/actions/validate",
33
36
  options
34
37
  });
35
- var verifyEmailConfigConnection = async (options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "transports", {
38
+ var verifyEmailConfigConnection = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "transports", {
36
39
  method: "post",
37
40
  pathTemplate: "/api/v1/transports/email-config/actions/verify-connection",
38
41
  options
39
42
  });
40
43
  function clearCache() {
41
- return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "transports");
44
+ return _chunkJNGURO23js.clearApiCache.call(void 0, "transports");
42
45
  }
43
46
  var transportsExport = {
44
47
  deleteEmailConfig,
package/transports.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-3YE7EI7I.mjs";
5
- import "./chunk-WM7FQU2U.mjs";
4
+ } from "./chunk-TE7XMBT5.mjs";
5
+ import "./chunk-3SVRHJII.mjs";
6
+ import "./chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // src/public/rest/transports.ts
8
9
  var deleteEmailConfig = async (options) => invokeFetch("transports", {
@@ -19,12 +20,14 @@ var patchEmailConfig = async (body, options) => invokeFetch("transports", {
19
20
  method: "patch",
20
21
  pathTemplate: "/api/v1/transports/email-config",
21
22
  body,
23
+ contentType: "application/json",
22
24
  options
23
25
  });
24
26
  var sendTestEmail = async (body, options) => invokeFetch("transports", {
25
27
  method: "post",
26
28
  pathTemplate: "/api/v1/transports/email-config/actions/send-test-email",
27
29
  body,
30
+ contentType: "application/json",
28
31
  options
29
32
  });
30
33
  var validateEmailConfig = async (options) => invokeFetch("transports", {