@qlik/api 1.31.0 → 1.33.0

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 (142) hide show
  1. package/api-keys.d.ts +10 -10
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +1301 -0
  6. package/assistants.js +329 -0
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +366 -0
  13. package/automation-connections.js +107 -0
  14. package/automations.d.ts +27 -27
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +97 -0
  17. package/automl-deployments.js +29 -0
  18. package/automl-predictions.d.ts +214 -0
  19. package/automl-predictions.js +84 -0
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{KBSD75QL.js → 33GQY7N7.js} +1 -1
  23. package/chunks/{M64RLKVG.js → 62DXIH3S.js} +7 -5
  24. package/chunks/7MMXU6EL.js +86 -0
  25. package/chunks/{DLKLPD7T.js → GPRUNZV4.js} +3 -3
  26. package/chunks/{YKZ2QYHN.js → LIEZG7IM.js} +3 -3
  27. package/chunks/{FKDGGR2O.js → OTIO4SEJ.js} +698 -708
  28. package/chunks/{UZTIZ4H5.js → RP3EJGHG.js} +74 -74
  29. package/chunks/{GUU3KZGK.js → SPATCXXU.js} +9 -2
  30. package/chunks/{LY7RP2HA.js → XF3TPZKZ.js} +23 -8
  31. package/chunks/{6ZONDHRN.js → YYZCS5PW.js} +11 -4
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +662 -0
  36. package/conditions.js +135 -0
  37. package/consumption.d.ts +182 -0
  38. package/consumption.js +26 -0
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +62 -0
  42. package/csrf-token.js +25 -0
  43. package/data-alerts.d.ts +1004 -0
  44. package/data-alerts.js +187 -0
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +175 -0
  54. package/data-qualities.js +50 -0
  55. package/data-sets.d.ts +424 -0
  56. package/data-sets.js +87 -0
  57. package/data-sources.d.ts +268 -0
  58. package/data-sources.js +45 -0
  59. package/data-stores.d.ts +537 -0
  60. package/data-stores.js +128 -0
  61. package/dcaas.d.ts +192 -0
  62. package/dcaas.js +45 -0
  63. package/di-projects.d.ts +673 -0
  64. package/di-projects.js +196 -0
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +370 -0
  68. package/encryption.js +118 -0
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +113 -4
  78. package/index.js +626 -40
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +890 -0
  85. package/knowledgebases.js +203 -0
  86. package/licenses.d.ts +14 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +712 -0
  89. package/lineage-graphs.js +108 -0
  90. package/ml.d.ts +2676 -0
  91. package/ml.js +477 -0
  92. package/notes.d.ts +110 -0
  93. package/notes.js +35 -0
  94. package/notifications.d.ts +98 -0
  95. package/notifications.js +26 -0
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +126 -0
  99. package/oauth-tokens.js +35 -0
  100. package/package.json +34 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +364 -0
  104. package/questions.js +38 -0
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +287 -0
  112. package/report-templates.js +94 -0
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +952 -0
  118. package/sharing-tasks.js +125 -0
  119. package/spaces.d.ts +22 -22
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +564 -0
  122. package/tasks.js +126 -0
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +274 -0
  132. package/ui-config.js +91 -0
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  /**
5
5
  * An Error object.
@@ -54,13 +54,13 @@ type DetailResponse = {
54
54
  * @param body an object with the body content
55
55
  * @throws UploadTempFileHttpError
56
56
  */
57
- declare const uploadTempFile: (query: {
57
+ declare function uploadTempFile(query: {
58
58
  /** The name of the file to upload. */
59
59
  filename?: string;
60
60
  /** The TTL parameter is used to define the time-to-live for the content resource in seconds.
61
61
  * It defaults to one hour (3600) if no input is provided. Max TTL is 259200 (3 days).' */
62
62
  ttl?: number;
63
- }, body: BodyInit, options?: ApiCallOptions) => Promise<UploadTempFileHttpResponse>;
63
+ }, body: BodyInit, options?: ApiCallOptions): Promise<UploadTempFileHttpResponse>;
64
64
  type UploadTempFileHttpResponse = {
65
65
  data: void;
66
66
  headers: Headers;
@@ -78,10 +78,10 @@ type UploadTempFileHttpError = {
78
78
  * @param query an object with query parameters
79
79
  * @throws DownloadTempFileHttpError
80
80
  */
81
- declare const downloadTempFile: (id: string, query: {
81
+ declare function downloadTempFile(id: string, query: {
82
82
  /** Set to "1" to download the file in inline mode. Useful for displaying a preview of the file in a browser. */
83
83
  inline?: string;
84
- }, options?: ApiCallOptions) => Promise<DownloadTempFileHttpResponse>;
84
+ }, options?: ApiCallOptions): Promise<DownloadTempFileHttpResponse>;
85
85
  type DownloadTempFileHttpResponse = DownloadTempFile200HttpResponse | DownloadTempFile204HttpResponse | DownloadTempFile206HttpResponse;
86
86
  type DownloadTempFile200HttpResponse = {
87
87
  data: unknown;
@@ -109,7 +109,7 @@ type DownloadTempFileHttpError = {
109
109
  * @param id The temporary contents ID.
110
110
  * @throws GetTempFileDetailsHttpError
111
111
  */
112
- declare const getTempFileDetails: (id: string, options?: ApiCallOptions) => Promise<GetTempFileDetailsHttpResponse>;
112
+ declare function getTempFileDetails(id: string, options?: ApiCallOptions): Promise<GetTempFileDetailsHttpResponse>;
113
113
  type GetTempFileDetailsHttpResponse = GetTempFileDetails200HttpResponse | GetTempFileDetails204HttpResponse;
114
114
  type GetTempFileDetails200HttpResponse = {
115
115
  data: DetailResponse;
package/temp-contents.js CHANGED
@@ -1,32 +1,38 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/YKZ2QYHN.js";
5
- import "./chunks/DLKLPD7T.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/temp-contents.ts
9
- var uploadTempFile = async (query, body, options) => invokeFetch("temp-contents", {
10
- method: "post",
11
- pathTemplate: "/api/v1/temp-contents",
12
- query,
13
- body,
14
- contentType: "application/octet-stream",
15
- options
16
- });
17
- var downloadTempFile = async (id, query, options) => invokeFetch("temp-contents", {
18
- method: "get",
19
- pathTemplate: "/api/v1/temp-contents/{id}",
20
- pathVariables: { id },
21
- query,
22
- options
23
- });
24
- var getTempFileDetails = async (id, options) => invokeFetch("temp-contents", {
25
- method: "get",
26
- pathTemplate: "/api/v1/temp-contents/{id}/details",
27
- pathVariables: { id },
28
- options
29
- });
9
+ async function uploadTempFile(query, body, options) {
10
+ return invokeFetch("temp-contents", {
11
+ method: "post",
12
+ pathTemplate: "/api/v1/temp-contents",
13
+ query,
14
+ body,
15
+ contentType: "application/octet-stream",
16
+ options
17
+ });
18
+ }
19
+ async function downloadTempFile(id, query, options) {
20
+ return invokeFetch("temp-contents", {
21
+ method: "get",
22
+ pathTemplate: "/api/v1/temp-contents/{id}",
23
+ pathVariables: { id },
24
+ query,
25
+ options
26
+ });
27
+ }
28
+ async function getTempFileDetails(id, options) {
29
+ return invokeFetch("temp-contents", {
30
+ method: "get",
31
+ pathTemplate: "/api/v1/temp-contents/{id}/details",
32
+ pathVariables: { id },
33
+ options
34
+ });
35
+ }
30
36
  function clearCache() {
31
37
  return clearApiCache("temp-contents");
32
38
  }
package/tenants.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  /**
5
5
  * An error object describing the error.
@@ -176,7 +176,7 @@ type TenantPatchSchema = {
176
176
  * @param body an object with the body content
177
177
  * @throws CreateTenantHttpError
178
178
  */
179
- declare const createTenant: (body: TenantCreationRequest, options?: ApiCallOptions) => Promise<CreateTenantHttpResponse>;
179
+ declare function createTenant(body: TenantCreationRequest, options?: ApiCallOptions): Promise<CreateTenantHttpResponse>;
180
180
  type CreateTenantHttpResponse = {
181
181
  data: Tenant;
182
182
  headers: Headers;
@@ -192,7 +192,7 @@ type CreateTenantHttpError = {
192
192
  *
193
193
  * @throws GetMyTenantHttpError
194
194
  */
195
- declare const getMyTenant: (options?: ApiCallOptions) => Promise<GetMyTenantHttpResponse>;
195
+ declare function getMyTenant(options?: ApiCallOptions): Promise<GetMyTenantHttpResponse>;
196
196
  type GetMyTenantHttpResponse = {
197
197
  data: Tenant;
198
198
  headers: Headers;
@@ -209,7 +209,7 @@ type GetMyTenantHttpError = {
209
209
  * @param tenantId The ID of the tenant to retrieve
210
210
  * @throws GetTenantHttpError
211
211
  */
212
- declare const getTenant: (tenantId: string, options?: ApiCallOptions) => Promise<GetTenantHttpResponse>;
212
+ declare function getTenant(tenantId: string, options?: ApiCallOptions): Promise<GetTenantHttpResponse>;
213
213
  type GetTenantHttpResponse = {
214
214
  data: Tenant;
215
215
  headers: Headers;
@@ -227,7 +227,7 @@ type GetTenantHttpError = {
227
227
  * @param body an object with the body content
228
228
  * @throws PatchTenantHttpError
229
229
  */
230
- declare const patchTenant: (tenantId: string, body: TenantPatchSchema, options?: ApiCallOptions) => Promise<PatchTenantHttpResponse>;
230
+ declare function patchTenant(tenantId: string, body: TenantPatchSchema, options?: ApiCallOptions): Promise<PatchTenantHttpResponse>;
231
231
  type PatchTenantHttpResponse = {
232
232
  data: void;
233
233
  headers: Headers;
@@ -266,7 +266,7 @@ type PatchTenantdefaultHttpError = {
266
266
  * @param body an object with the body content
267
267
  * @throws DeactivateTenantHttpError
268
268
  */
269
- declare const deactivateTenant: (tenantId: string, body: TenantDeactivateRequest, options?: ApiCallOptions) => Promise<DeactivateTenantHttpResponse>;
269
+ declare function deactivateTenant(tenantId: string, body: TenantDeactivateRequest, options?: ApiCallOptions): Promise<DeactivateTenantHttpResponse>;
270
270
  type DeactivateTenantHttpResponse = {
271
271
  data: TenantDeactivateResponse;
272
272
  headers: Headers;
@@ -284,7 +284,7 @@ type DeactivateTenantHttpError = {
284
284
  * @param body an object with the body content
285
285
  * @throws ReactivateTenantHttpError
286
286
  */
287
- declare const reactivateTenant: (tenantId: string, body: unknown, options?: ApiCallOptions) => Promise<ReactivateTenantHttpResponse>;
287
+ declare function reactivateTenant(tenantId: string, body: unknown, options?: ApiCallOptions): Promise<ReactivateTenantHttpResponse>;
288
288
  type ReactivateTenantHttpResponse = {
289
289
  data: unknown;
290
290
  headers: Headers;
package/tenants.js CHANGED
@@ -1,53 +1,65 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/YKZ2QYHN.js";
5
- import "./chunks/DLKLPD7T.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/tenants.ts
9
- var createTenant = async (body, options) => invokeFetch("tenants", {
10
- method: "post",
11
- pathTemplate: "/api/v1/tenants",
12
- body,
13
- contentType: "application/json",
14
- options
15
- });
16
- var getMyTenant = async (options) => invokeFetch("tenants", {
17
- method: "get",
18
- pathTemplate: "/api/v1/tenants/me",
19
- options
20
- });
21
- var getTenant = async (tenantId, options) => invokeFetch("tenants", {
22
- method: "get",
23
- pathTemplate: "/api/v1/tenants/{tenantId}",
24
- pathVariables: { tenantId },
25
- options
26
- });
27
- var patchTenant = async (tenantId, body, options) => invokeFetch("tenants", {
28
- method: "patch",
29
- pathTemplate: "/api/v1/tenants/{tenantId}",
30
- pathVariables: { tenantId },
31
- body,
32
- contentType: "application/json",
33
- options
34
- });
35
- var deactivateTenant = async (tenantId, body, options) => invokeFetch("tenants", {
36
- method: "post",
37
- pathTemplate: "/api/v1/tenants/{tenantId}/actions/deactivate",
38
- pathVariables: { tenantId },
39
- body,
40
- contentType: "application/json",
41
- options
42
- });
43
- var reactivateTenant = async (tenantId, body, options) => invokeFetch("tenants", {
44
- method: "post",
45
- pathTemplate: "/api/v1/tenants/{tenantId}/actions/reactivate",
46
- pathVariables: { tenantId },
47
- body,
48
- contentType: "application/json",
49
- options
50
- });
9
+ async function createTenant(body, options) {
10
+ return invokeFetch("tenants", {
11
+ method: "post",
12
+ pathTemplate: "/api/v1/tenants",
13
+ body,
14
+ contentType: "application/json",
15
+ options
16
+ });
17
+ }
18
+ async function getMyTenant(options) {
19
+ return invokeFetch("tenants", {
20
+ method: "get",
21
+ pathTemplate: "/api/v1/tenants/me",
22
+ options
23
+ });
24
+ }
25
+ async function getTenant(tenantId, options) {
26
+ return invokeFetch("tenants", {
27
+ method: "get",
28
+ pathTemplate: "/api/v1/tenants/{tenantId}",
29
+ pathVariables: { tenantId },
30
+ options
31
+ });
32
+ }
33
+ async function patchTenant(tenantId, body, options) {
34
+ return invokeFetch("tenants", {
35
+ method: "patch",
36
+ pathTemplate: "/api/v1/tenants/{tenantId}",
37
+ pathVariables: { tenantId },
38
+ body,
39
+ contentType: "application/json",
40
+ options
41
+ });
42
+ }
43
+ async function deactivateTenant(tenantId, body, options) {
44
+ return invokeFetch("tenants", {
45
+ method: "post",
46
+ pathTemplate: "/api/v1/tenants/{tenantId}/actions/deactivate",
47
+ pathVariables: { tenantId },
48
+ body,
49
+ contentType: "application/json",
50
+ options
51
+ });
52
+ }
53
+ async function reactivateTenant(tenantId, body, options) {
54
+ return invokeFetch("tenants", {
55
+ method: "post",
56
+ pathTemplate: "/api/v1/tenants/{tenantId}/actions/reactivate",
57
+ pathVariables: { tenantId },
58
+ body,
59
+ contentType: "application/json",
60
+ options
61
+ });
62
+ }
51
63
  function clearCache() {
52
64
  return clearApiCache("tenants");
53
65
  }
package/themes.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  /**
5
5
  * An error object.
@@ -75,7 +75,7 @@ type Themes = {
75
75
  *
76
76
  * @throws GetThemesHttpError
77
77
  */
78
- declare const getThemes: (options?: ApiCallOptions) => Promise<GetThemesHttpResponse>;
78
+ declare function getThemes(options?: ApiCallOptions): Promise<GetThemesHttpResponse>;
79
79
  type GetThemesHttpResponse = {
80
80
  data: Themes;
81
81
  headers: Headers;
@@ -92,12 +92,12 @@ type GetThemesHttpError = {
92
92
  * @param body an object with the body content
93
93
  * @throws UploadThemeHttpError
94
94
  */
95
- declare const uploadTheme: (body: {
95
+ declare function uploadTheme(body: {
96
96
  /** The theme model. */
97
97
  data?: Theme;
98
98
  /** Theme archive. */
99
99
  file?: BodyInit;
100
- }, options?: ApiCallOptions) => Promise<UploadThemeHttpResponse>;
100
+ }, options?: ApiCallOptions): Promise<UploadThemeHttpResponse>;
101
101
  type UploadThemeHttpResponse = {
102
102
  data: Theme;
103
103
  headers: Headers;
@@ -114,7 +114,7 @@ type UploadThemeHttpError = {
114
114
  * @param id Theme identifier or its qextFilename.
115
115
  * @throws DeleteThemeHttpError
116
116
  */
117
- declare const deleteTheme: (id: string, options?: ApiCallOptions) => Promise<DeleteThemeHttpResponse>;
117
+ declare function deleteTheme(id: string, options?: ApiCallOptions): Promise<DeleteThemeHttpResponse>;
118
118
  type DeleteThemeHttpResponse = {
119
119
  data: void;
120
120
  headers: Headers;
@@ -131,7 +131,7 @@ type DeleteThemeHttpError = {
131
131
  * @param id Theme identifier or its qextFilename
132
132
  * @throws GetThemeHttpError
133
133
  */
134
- declare const getTheme: (id: string, options?: ApiCallOptions) => Promise<GetThemeHttpResponse>;
134
+ declare function getTheme(id: string, options?: ApiCallOptions): Promise<GetThemeHttpResponse>;
135
135
  type GetThemeHttpResponse = {
136
136
  data: Theme;
137
137
  headers: Headers;
@@ -149,12 +149,12 @@ type GetThemeHttpError = {
149
149
  * @param body an object with the body content
150
150
  * @throws PatchThemeHttpError
151
151
  */
152
- declare const patchTheme: (id: string, body: {
152
+ declare function patchTheme(id: string, body: {
153
153
  /** The theme model. */
154
154
  data?: Theme;
155
155
  /** Theme archive. */
156
156
  file?: BodyInit;
157
- }, options?: ApiCallOptions) => Promise<PatchThemeHttpResponse>;
157
+ }, options?: ApiCallOptions): Promise<PatchThemeHttpResponse>;
158
158
  type PatchThemeHttpResponse = {
159
159
  data: Themes;
160
160
  headers: Headers;
@@ -171,7 +171,7 @@ type PatchThemeHttpError = {
171
171
  * @param id Theme identifier or its qextFilename
172
172
  * @throws DownloadThemeHttpError
173
173
  */
174
- declare const downloadTheme: (id: string, options?: ApiCallOptions) => Promise<DownloadThemeHttpResponse>;
174
+ declare function downloadTheme(id: string, options?: ApiCallOptions): Promise<DownloadThemeHttpResponse>;
175
175
  type DownloadThemeHttpResponse = {
176
176
  data: void;
177
177
  headers: Headers;
@@ -189,7 +189,7 @@ type DownloadThemeHttpError = {
189
189
  * @param filepath Path to the file location within the specified theme archive. Folders separated with forward slashes.
190
190
  * @throws DownloadFileFromThemeHttpError
191
191
  */
192
- declare const downloadFileFromTheme: (id: string, filepath: string, options?: ApiCallOptions) => Promise<DownloadFileFromThemeHttpResponse>;
192
+ declare function downloadFileFromTheme(id: string, filepath: string, options?: ApiCallOptions): Promise<DownloadFileFromThemeHttpResponse>;
193
193
  type DownloadFileFromThemeHttpResponse = {
194
194
  data: void;
195
195
  headers: Headers;
package/themes.js CHANGED
@@ -1,55 +1,69 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/YKZ2QYHN.js";
5
- import "./chunks/DLKLPD7T.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/themes.ts
9
- var getThemes = async (options) => invokeFetch("themes", {
10
- method: "get",
11
- pathTemplate: "/api/v1/themes",
12
- options
13
- });
14
- var uploadTheme = async (body, options) => invokeFetch("themes", {
15
- method: "post",
16
- pathTemplate: "/api/v1/themes",
17
- body,
18
- contentType: "multipart/form-data",
19
- options
20
- });
21
- var deleteTheme = async (id, options) => invokeFetch("themes", {
22
- method: "delete",
23
- pathTemplate: "/api/v1/themes/{id}",
24
- pathVariables: { id },
25
- options
26
- });
27
- var getTheme = async (id, options) => invokeFetch("themes", {
28
- method: "get",
29
- pathTemplate: "/api/v1/themes/{id}",
30
- pathVariables: { id },
31
- options
32
- });
33
- var patchTheme = async (id, body, options) => invokeFetch("themes", {
34
- method: "patch",
35
- pathTemplate: "/api/v1/themes/{id}",
36
- pathVariables: { id },
37
- body,
38
- contentType: "multipart/form-data",
39
- options
40
- });
41
- var downloadTheme = async (id, options) => invokeFetch("themes", {
42
- method: "get",
43
- pathTemplate: "/api/v1/themes/{id}/file",
44
- pathVariables: { id },
45
- options
46
- });
47
- var downloadFileFromTheme = async (id, filepath, options) => invokeFetch("themes", {
48
- method: "get",
49
- pathTemplate: "/api/v1/themes/{id}/file/{filepath}",
50
- pathVariables: { id, filepath },
51
- options
52
- });
9
+ async function getThemes(options) {
10
+ return invokeFetch("themes", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/themes",
13
+ options
14
+ });
15
+ }
16
+ async function uploadTheme(body, options) {
17
+ return invokeFetch("themes", {
18
+ method: "post",
19
+ pathTemplate: "/api/v1/themes",
20
+ body,
21
+ contentType: "multipart/form-data",
22
+ options
23
+ });
24
+ }
25
+ async function deleteTheme(id, options) {
26
+ return invokeFetch("themes", {
27
+ method: "delete",
28
+ pathTemplate: "/api/v1/themes/{id}",
29
+ pathVariables: { id },
30
+ options
31
+ });
32
+ }
33
+ async function getTheme(id, options) {
34
+ return invokeFetch("themes", {
35
+ method: "get",
36
+ pathTemplate: "/api/v1/themes/{id}",
37
+ pathVariables: { id },
38
+ options
39
+ });
40
+ }
41
+ async function patchTheme(id, body, options) {
42
+ return invokeFetch("themes", {
43
+ method: "patch",
44
+ pathTemplate: "/api/v1/themes/{id}",
45
+ pathVariables: { id },
46
+ body,
47
+ contentType: "multipart/form-data",
48
+ options
49
+ });
50
+ }
51
+ async function downloadTheme(id, options) {
52
+ return invokeFetch("themes", {
53
+ method: "get",
54
+ pathTemplate: "/api/v1/themes/{id}/file",
55
+ pathVariables: { id },
56
+ options
57
+ });
58
+ }
59
+ async function downloadFileFromTheme(id, filepath, options) {
60
+ return invokeFetch("themes", {
61
+ method: "get",
62
+ pathTemplate: "/api/v1/themes/{id}/file/{filepath}",
63
+ pathVariables: { id, filepath },
64
+ options
65
+ });
66
+ }
53
67
  function clearCache() {
54
68
  return clearApiCache("themes");
55
69
  }
package/transports.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  type DeleteConfigNotFoundError = {
5
5
  errors?: {
@@ -162,7 +162,7 @@ type SmtpResult = {
162
162
  *
163
163
  * @throws DeleteEmailConfigHttpError
164
164
  */
165
- declare const deleteEmailConfig: (options?: ApiCallOptions) => Promise<DeleteEmailConfigHttpResponse>;
165
+ declare function deleteEmailConfig(options?: ApiCallOptions): Promise<DeleteEmailConfigHttpResponse>;
166
166
  type DeleteEmailConfigHttpResponse = {
167
167
  data: void;
168
168
  headers: Headers;
@@ -189,7 +189,7 @@ type DeleteEmailConfigdefaultHttpError = {
189
189
  *
190
190
  * @throws GetEmailConfigHttpError
191
191
  */
192
- declare const getEmailConfig: (options?: ApiCallOptions) => Promise<GetEmailConfigHttpResponse>;
192
+ declare function getEmailConfig(options?: ApiCallOptions): Promise<GetEmailConfigHttpResponse>;
193
193
  type GetEmailConfigHttpResponse = {
194
194
  data: GetEmailConfig;
195
195
  headers: Headers;
@@ -212,7 +212,7 @@ type GetEmailConfigdefaultHttpError = {
212
212
  * @param body an object with the body content
213
213
  * @throws PatchEmailConfigHttpError
214
214
  */
215
- declare const patchEmailConfig: (body: EmailConfigPatch, options?: ApiCallOptions) => Promise<PatchEmailConfigHttpResponse>;
215
+ declare function patchEmailConfig(body: EmailConfigPatch, options?: ApiCallOptions): Promise<PatchEmailConfigHttpResponse>;
216
216
  type PatchEmailConfigHttpResponse = {
217
217
  data: void;
218
218
  headers: Headers;
@@ -240,7 +240,7 @@ type PatchEmailConfigdefaultHttpError = {
240
240
  * @param body an object with the body content
241
241
  * @throws SendTestEmailHttpError
242
242
  */
243
- declare const sendTestEmail: (body: Email, options?: ApiCallOptions) => Promise<SendTestEmailHttpResponse>;
243
+ declare function sendTestEmail(body: Email, options?: ApiCallOptions): Promise<SendTestEmailHttpResponse>;
244
244
  type SendTestEmailHttpResponse = {
245
245
  data: SmtpResult;
246
246
  headers: Headers;
@@ -267,7 +267,7 @@ type SendTestEmaildefaultHttpError = {
267
267
  *
268
268
  * @throws ValidateEmailConfigHttpError
269
269
  */
270
- declare const validateEmailConfig: (options?: ApiCallOptions) => Promise<ValidateEmailConfigHttpResponse>;
270
+ declare function validateEmailConfig(options?: ApiCallOptions): Promise<ValidateEmailConfigHttpResponse>;
271
271
  type ValidateEmailConfigHttpResponse = {
272
272
  data: SmtpCheck;
273
273
  headers: Headers;
@@ -283,7 +283,7 @@ type ValidateEmailConfigHttpError = {
283
283
  *
284
284
  * @throws VerifyEmailConfigConnectionHttpError
285
285
  */
286
- declare const verifyEmailConfigConnection: (options?: ApiCallOptions) => Promise<VerifyEmailConfigConnectionHttpResponse>;
286
+ declare function verifyEmailConfigConnection(options?: ApiCallOptions): Promise<VerifyEmailConfigConnectionHttpResponse>;
287
287
  type VerifyEmailConfigConnectionHttpResponse = {
288
288
  data: SmtpResult;
289
289
  headers: Headers;
package/transports.js CHANGED
@@ -1,45 +1,57 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/YKZ2QYHN.js";
5
- import "./chunks/DLKLPD7T.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/transports.ts
9
- var deleteEmailConfig = async (options) => invokeFetch("transports", {
10
- method: "delete",
11
- pathTemplate: "/api/v1/transports/email-config",
12
- options
13
- });
14
- var getEmailConfig = async (options) => invokeFetch("transports", {
15
- method: "get",
16
- pathTemplate: "/api/v1/transports/email-config",
17
- options
18
- });
19
- var patchEmailConfig = async (body, options) => invokeFetch("transports", {
20
- method: "patch",
21
- pathTemplate: "/api/v1/transports/email-config",
22
- body,
23
- contentType: "application/json",
24
- options
25
- });
26
- var sendTestEmail = async (body, options) => invokeFetch("transports", {
27
- method: "post",
28
- pathTemplate: "/api/v1/transports/email-config/actions/send-test-email",
29
- body,
30
- contentType: "application/json",
31
- options
32
- });
33
- var validateEmailConfig = async (options) => invokeFetch("transports", {
34
- method: "post",
35
- pathTemplate: "/api/v1/transports/email-config/actions/validate",
36
- options
37
- });
38
- var verifyEmailConfigConnection = async (options) => invokeFetch("transports", {
39
- method: "post",
40
- pathTemplate: "/api/v1/transports/email-config/actions/verify-connection",
41
- options
42
- });
9
+ async function deleteEmailConfig(options) {
10
+ return invokeFetch("transports", {
11
+ method: "delete",
12
+ pathTemplate: "/api/v1/transports/email-config",
13
+ options
14
+ });
15
+ }
16
+ async function getEmailConfig(options) {
17
+ return invokeFetch("transports", {
18
+ method: "get",
19
+ pathTemplate: "/api/v1/transports/email-config",
20
+ options
21
+ });
22
+ }
23
+ async function patchEmailConfig(body, options) {
24
+ return invokeFetch("transports", {
25
+ method: "patch",
26
+ pathTemplate: "/api/v1/transports/email-config",
27
+ body,
28
+ contentType: "application/json",
29
+ options
30
+ });
31
+ }
32
+ async function sendTestEmail(body, options) {
33
+ return invokeFetch("transports", {
34
+ method: "post",
35
+ pathTemplate: "/api/v1/transports/email-config/actions/send-test-email",
36
+ body,
37
+ contentType: "application/json",
38
+ options
39
+ });
40
+ }
41
+ async function validateEmailConfig(options) {
42
+ return invokeFetch("transports", {
43
+ method: "post",
44
+ pathTemplate: "/api/v1/transports/email-config/actions/validate",
45
+ options
46
+ });
47
+ }
48
+ async function verifyEmailConfigConnection(options) {
49
+ return invokeFetch("transports", {
50
+ method: "post",
51
+ pathTemplate: "/api/v1/transports/email-config/actions/verify-connection",
52
+ options
53
+ });
54
+ }
43
55
  function clearCache() {
44
56
  return clearApiCache("transports");
45
57
  }