@qlik/api 0.0.8 → 0.0.10
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.
- package/api-keys.d.mts +10 -1
- package/api-keys.d.ts +10 -1
- package/api-keys.js +11 -11
- package/api-keys.mjs +3 -3
- package/apps.d.mts +134 -8
- package/apps.d.ts +134 -8
- package/apps.js +47 -47
- package/apps.mjs +3 -3
- package/audits.d.mts +14 -1
- package/audits.d.ts +14 -1
- package/audits.js +10 -10
- package/audits.mjs +3 -3
- package/auth.js +4 -4
- package/auth.mjs +3 -3
- package/automations.d.mts +9 -1
- package/automations.d.ts +9 -1
- package/automations.js +22 -22
- package/automations.mjs +3 -3
- package/brands.d.mts +19 -4
- package/brands.d.ts +19 -4
- package/brands.js +16 -16
- package/brands.mjs +3 -3
- package/{enigma-session-VSFGLOYW.mjs → chunks/34FMVD4C.mjs} +165 -21
- package/{chunk-QTCDGPKS.js → chunks/37PLWNAN.js} +82 -60
- package/{chunk-GY2TAYQH.js → chunks/3MHXEHLQ.js} +2 -2
- package/{invoke-fetch-X42FV2FS.mjs → chunks/42LZKDDD.mjs} +2 -2
- package/{enigma-session-VTHT4O6N.js → chunks/AVQ3WHH7.js} +168 -24
- package/{chunk-BRDPNGQ7.js → chunks/FG5GDUSZ.js} +3 -3
- package/{chunk-4R2XCEVK.mjs → chunks/FUU5VIC4.mjs} +1 -1
- package/{esm-HMY2LVVZ.mjs → chunks/H32EGPZN.mjs} +1 -1
- package/{qix-57OF6A7B.mjs → chunks/HFNJ3ERI.mjs} +3 -3
- package/{chunk-4MWB2T3C.mjs → chunks/HWZC3PIL.mjs} +1 -1
- package/{chunk-RYBRKLOY.js → chunks/ILOY5QEA.js} +4 -4
- package/{chunk-YILVC32M.mjs → chunks/KEPPVUY3.mjs} +1 -1
- package/{auth-U6QTT3H4.mjs → chunks/MMUU2CQM.mjs} +2 -2
- package/{chunk-LLLEO6K6.mjs → chunks/O5POHH2Q.mjs} +3 -3
- package/{chunk-EALMXU6S.js → chunks/QMWU5E4D.js} +3 -3
- package/chunks/RMNAO4DP.js +17 -0
- package/chunks/SUYUL6MB.js +41 -0
- package/{chunk-F24SLAYP.mjs → chunks/VMS4MOCI.mjs} +79 -57
- package/{qix-QWSMFPQY.js → chunks/WCJ4JQHA.js} +9 -9
- package/{esm-PXQUPJYJ.js → chunks/WM2VCN4G.js} +1 -1
- package/collections.d.mts +34 -22
- package/collections.d.ts +34 -22
- package/collections.js +15 -15
- package/collections.mjs +3 -3
- package/csp-origins.d.mts +1 -1
- package/csp-origins.d.ts +1 -1
- package/csp-origins.js +10 -10
- package/csp-origins.mjs +3 -3
- package/data-assets.d.mts +1 -1
- package/data-assets.d.ts +1 -1
- package/data-assets.js +9 -9
- package/data-assets.mjs +3 -3
- package/data-connections.d.mts +13 -2
- package/data-connections.d.ts +13 -2
- package/data-connections.js +13 -13
- package/data-connections.mjs +3 -3
- package/data-credentials.d.mts +6 -1
- package/data-credentials.d.ts +6 -1
- package/data-credentials.js +8 -8
- package/data-credentials.mjs +3 -3
- package/data-files.d.mts +7 -1
- package/data-files.d.ts +7 -1
- package/data-files.js +16 -16
- package/data-files.mjs +3 -3
- package/extensions.d.mts +13 -1
- package/extensions.d.ts +13 -1
- package/extensions.js +11 -11
- package/extensions.mjs +3 -3
- package/{global.types-4jzAvW7R.d.mts → global.types-5iFvFJvX.d.mts} +5 -1
- package/{global.types-1rNhDH7j.d.ts → global.types-TzVhFPid.d.ts} +5 -1
- package/glossaries.d.mts +51 -1
- package/glossaries.d.ts +51 -1
- package/glossaries.js +28 -28
- package/glossaries.mjs +3 -3
- package/groups.d.mts +40 -1
- package/groups.d.ts +40 -1
- package/groups.js +12 -12
- package/groups.mjs +3 -3
- package/identity-providers.d.mts +43 -1
- package/identity-providers.d.ts +43 -1
- package/identity-providers.js +12 -12
- package/identity-providers.mjs +3 -3
- package/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.js +9 -9
- package/index.mjs +5 -5
- package/items.d.mts +33 -2
- package/items.d.ts +33 -2
- package/items.js +12 -12
- package/items.mjs +3 -3
- package/licenses.d.mts +8 -5
- package/licenses.d.ts +8 -5
- package/licenses.js +13 -13
- package/licenses.mjs +3 -3
- package/package.json +4 -1
- package/qix.d.mts +20 -2
- package/qix.d.ts +20 -2
- package/qix.js +4 -4
- package/qix.mjs +3 -3
- package/quotas.d.mts +4 -1
- package/quotas.d.ts +4 -1
- package/quotas.js +6 -6
- package/quotas.mjs +3 -3
- package/reload-tasks.d.mts +7 -4
- package/reload-tasks.d.ts +7 -4
- package/reload-tasks.js +9 -9
- package/reload-tasks.mjs +3 -3
- package/reloads.d.mts +10 -1
- package/reloads.d.ts +10 -1
- package/reloads.js +8 -8
- package/reloads.mjs +3 -3
- package/roles.d.mts +11 -2
- package/roles.d.ts +11 -2
- package/roles.js +6 -6
- package/roles.mjs +3 -3
- package/spaces.d.mts +38 -6
- package/spaces.d.ts +38 -6
- package/spaces.js +16 -16
- package/spaces.mjs +3 -3
- package/temp-contents.d.mts +7 -1
- package/temp-contents.d.ts +7 -1
- package/temp-contents.js +7 -7
- package/temp-contents.mjs +3 -3
- package/tenants.d.mts +18 -6
- package/tenants.d.ts +18 -6
- package/tenants.js +10 -10
- package/tenants.mjs +3 -3
- package/themes.d.mts +10 -1
- package/themes.d.ts +10 -1
- package/themes.js +11 -11
- package/themes.mjs +3 -3
- package/transports.d.mts +21 -12
- package/transports.d.ts +21 -12
- package/transports.js +10 -10
- package/transports.mjs +3 -3
- package/users.d.mts +90 -25
- package/users.d.ts +90 -25
- package/users.js +14 -14
- package/users.mjs +3 -3
- package/web-integrations.d.mts +19 -1
- package/web-integrations.d.ts +19 -1
- package/web-integrations.js +9 -9
- package/web-integrations.mjs +3 -3
- package/web-notifications.d.mts +19 -1
- package/web-notifications.d.ts +19 -1
- package/web-notifications.js +10 -10
- package/web-notifications.mjs +3 -3
- package/webhooks.d.mts +4 -1
- package/webhooks.d.ts +4 -1
- package/webhooks.js +14 -14
- package/webhooks.mjs +3 -3
- package/auth-XY6FVSVM.js +0 -41
- package/invoke-fetch-FRLO3CK6.js +0 -17
- /package/{chunk-P57PW2II.js → chunks/4HB3TAEO.js} +0 -0
- /package/{chunk-ZFXKCRJC.mjs → chunks/VSY5YIQY.mjs} +0 -0
package/themes.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./
|
|
6
|
-
require('./
|
|
4
|
+
var _QMWU5E4Djs = require('./chunks/QMWU5E4D.js');
|
|
5
|
+
require('./chunks/FG5GDUSZ.js');
|
|
6
|
+
require('./chunks/4HB3TAEO.js');
|
|
7
7
|
|
|
8
8
|
// src/public/rest/themes.ts
|
|
9
|
-
var getThemes = async (options) =>
|
|
9
|
+
var getThemes = async (options) => _QMWU5E4Djs.invokeFetch.call(void 0, "themes", {
|
|
10
10
|
method: "get",
|
|
11
11
|
pathTemplate: "/api/v1/themes",
|
|
12
12
|
options
|
|
13
13
|
});
|
|
14
|
-
var uploadTheme = async (body, options) =>
|
|
14
|
+
var uploadTheme = async (body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "themes", {
|
|
15
15
|
method: "post",
|
|
16
16
|
pathTemplate: "/api/v1/themes",
|
|
17
17
|
body,
|
|
18
18
|
contentType: "multipart/form-data",
|
|
19
19
|
options
|
|
20
20
|
});
|
|
21
|
-
var deleteTheme = async (id, options) =>
|
|
21
|
+
var deleteTheme = async (id, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "themes", {
|
|
22
22
|
method: "delete",
|
|
23
23
|
pathTemplate: "/api/v1/themes/{id}",
|
|
24
24
|
pathVariables: { id },
|
|
25
25
|
options
|
|
26
26
|
});
|
|
27
|
-
var getTheme = async (id, options) =>
|
|
27
|
+
var getTheme = async (id, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "themes", {
|
|
28
28
|
method: "get",
|
|
29
29
|
pathTemplate: "/api/v1/themes/{id}",
|
|
30
30
|
pathVariables: { id },
|
|
31
31
|
options
|
|
32
32
|
});
|
|
33
|
-
var patchTheme = async (id, body, options) =>
|
|
33
|
+
var patchTheme = async (id, body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "themes", {
|
|
34
34
|
method: "patch",
|
|
35
35
|
pathTemplate: "/api/v1/themes/{id}",
|
|
36
36
|
pathVariables: { id },
|
|
@@ -38,20 +38,20 @@ var patchTheme = async (id, body, options) => _chunkEALMXU6Sjs.invokeFetch.call(
|
|
|
38
38
|
contentType: "multipart/form-data",
|
|
39
39
|
options
|
|
40
40
|
});
|
|
41
|
-
var downloadTheme = async (id, options) =>
|
|
41
|
+
var downloadTheme = async (id, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "themes", {
|
|
42
42
|
method: "get",
|
|
43
43
|
pathTemplate: "/api/v1/themes/{id}/file",
|
|
44
44
|
pathVariables: { id },
|
|
45
45
|
options
|
|
46
46
|
});
|
|
47
|
-
var downloadFileFromTheme = async (id, filepath, options) =>
|
|
47
|
+
var downloadFileFromTheme = async (id, filepath, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "themes", {
|
|
48
48
|
method: "get",
|
|
49
49
|
pathTemplate: "/api/v1/themes/{id}/file/{filepath}",
|
|
50
50
|
pathVariables: { id, filepath },
|
|
51
51
|
options
|
|
52
52
|
});
|
|
53
53
|
function clearCache() {
|
|
54
|
-
return
|
|
54
|
+
return _QMWU5E4Djs.clearApiCache.call(void 0, "themes");
|
|
55
55
|
}
|
|
56
56
|
var themesExport = {
|
|
57
57
|
getThemes,
|
package/themes.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
4
|
+
} from "./chunks/HWZC3PIL.mjs";
|
|
5
|
+
import "./chunks/O5POHH2Q.mjs";
|
|
6
|
+
import "./chunks/VSY5YIQY.mjs";
|
|
7
7
|
|
|
8
8
|
// src/public/rest/themes.ts
|
|
9
9
|
var getThemes = async (options) => invokeFetch("themes", {
|
package/transports.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
|
|
2
2
|
import './auth-types-nnUcWhuU.mjs';
|
|
3
3
|
|
|
4
4
|
type DeleteConfigNotFoundError = {
|
|
@@ -9,6 +9,9 @@ type DeleteConfigNotFoundError = {
|
|
|
9
9
|
title: string;
|
|
10
10
|
}[];
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* An error object.
|
|
14
|
+
*/
|
|
12
15
|
type ErrorPublic = {
|
|
13
16
|
/** The error code. */
|
|
14
17
|
code: string;
|
|
@@ -58,6 +61,9 @@ type Email = {
|
|
|
58
61
|
/** email subject */
|
|
59
62
|
subject?: string;
|
|
60
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
|
|
66
|
+
*/
|
|
61
67
|
type EmailConfigFieldPatch = {
|
|
62
68
|
/** The operation to be performed. */
|
|
63
69
|
op: "replace, remove, add";
|
|
@@ -95,6 +101,9 @@ type SmtpCheck = {
|
|
|
95
101
|
/** true if smtp config is correct and complete. Will return false if smtp-config does not exist at all */
|
|
96
102
|
isValid?: boolean;
|
|
97
103
|
};
|
|
104
|
+
/**
|
|
105
|
+
* Contains statusCode and statusReason
|
|
106
|
+
*/
|
|
98
107
|
type SmtpConfigStatus = {
|
|
99
108
|
/** Status code */
|
|
100
109
|
statusCode?: number;
|
|
@@ -132,12 +141,12 @@ type DeleteEmailConfig404HttpError = {
|
|
|
132
141
|
headers: Headers;
|
|
133
142
|
status: 404;
|
|
134
143
|
};
|
|
135
|
-
type
|
|
144
|
+
type DeleteEmailConfigDefaultHttpError = {
|
|
136
145
|
data: ErrorsPublic;
|
|
137
146
|
headers: Headers;
|
|
138
147
|
status: "default";
|
|
139
148
|
};
|
|
140
|
-
type DeleteEmailConfigHttpError = DeleteEmailConfig403HttpError | DeleteEmailConfig404HttpError |
|
|
149
|
+
type DeleteEmailConfigHttpError = DeleteEmailConfig403HttpError | DeleteEmailConfig404HttpError | DeleteEmailConfigDefaultHttpError;
|
|
141
150
|
/**
|
|
142
151
|
* Returns the email configuration for a given tenant id (retrieved from JWT).
|
|
143
152
|
*
|
|
@@ -154,12 +163,12 @@ type GetEmailConfig403HttpError = {
|
|
|
154
163
|
headers: Headers;
|
|
155
164
|
status: 403;
|
|
156
165
|
};
|
|
157
|
-
type
|
|
166
|
+
type GetEmailConfigDefaultHttpError = {
|
|
158
167
|
data: ErrorsPublic;
|
|
159
168
|
headers: Headers;
|
|
160
169
|
status: "default";
|
|
161
170
|
};
|
|
162
|
-
type GetEmailConfigHttpError = GetEmailConfig403HttpError |
|
|
171
|
+
type GetEmailConfigHttpError = GetEmailConfig403HttpError | GetEmailConfigDefaultHttpError;
|
|
163
172
|
/**
|
|
164
173
|
* Patch the email configuration for a given tenant id (retrieved from JWT).
|
|
165
174
|
*
|
|
@@ -182,12 +191,12 @@ type PatchEmailConfig403HttpError = {
|
|
|
182
191
|
headers: Headers;
|
|
183
192
|
status: 403;
|
|
184
193
|
};
|
|
185
|
-
type
|
|
194
|
+
type PatchEmailConfigDefaultHttpError = {
|
|
186
195
|
data: ErrorsPublic;
|
|
187
196
|
headers: Headers;
|
|
188
197
|
status: "default";
|
|
189
198
|
};
|
|
190
|
-
type PatchEmailConfigHttpError = PatchEmailConfig400HttpError | PatchEmailConfig403HttpError |
|
|
199
|
+
type PatchEmailConfigHttpError = PatchEmailConfig400HttpError | PatchEmailConfig403HttpError | PatchEmailConfigDefaultHttpError;
|
|
191
200
|
/**
|
|
192
201
|
* Send a test mail with the supplied email info (subject, body, recipient). Email config from database is used for the connection.
|
|
193
202
|
*
|
|
@@ -210,12 +219,12 @@ type SendTestEmail404HttpError = {
|
|
|
210
219
|
headers: Headers;
|
|
211
220
|
status: 404;
|
|
212
221
|
};
|
|
213
|
-
type
|
|
222
|
+
type SendTestEmailDefaultHttpError = {
|
|
214
223
|
data: ErrorsPublic;
|
|
215
224
|
headers: Headers;
|
|
216
225
|
status: "default";
|
|
217
226
|
};
|
|
218
|
-
type SendTestEmailHttpError = SendTestEmail403HttpError | SendTestEmail404HttpError |
|
|
227
|
+
type SendTestEmailHttpError = SendTestEmail403HttpError | SendTestEmail404HttpError | SendTestEmailDefaultHttpError;
|
|
219
228
|
/**
|
|
220
229
|
* Returns the isValid value for the email configuration for the tenant. Will return false if no email configuration exists.
|
|
221
230
|
*
|
|
@@ -248,12 +257,12 @@ type VerifyEmailConfigConnection404HttpError = {
|
|
|
248
257
|
headers: Headers;
|
|
249
258
|
status: 404;
|
|
250
259
|
};
|
|
251
|
-
type
|
|
260
|
+
type VerifyEmailConfigConnectionDefaultHttpError = {
|
|
252
261
|
data: ErrorsPublic;
|
|
253
262
|
headers: Headers;
|
|
254
263
|
status: "default";
|
|
255
264
|
};
|
|
256
|
-
type VerifyEmailConfigConnectionHttpError = VerifyEmailConfigConnection404HttpError |
|
|
265
|
+
type VerifyEmailConfigConnectionHttpError = VerifyEmailConfigConnection404HttpError | VerifyEmailConfigConnectionDefaultHttpError;
|
|
257
266
|
/**
|
|
258
267
|
* Clears the cache for transports api requests.
|
|
259
268
|
*/
|
|
@@ -307,4 +316,4 @@ interface TransportsAPI {
|
|
|
307
316
|
*/
|
|
308
317
|
declare const transportsExport: TransportsAPI;
|
|
309
318
|
|
|
310
|
-
export { type DeleteConfigNotFoundError, type DeleteEmailConfig403HttpError, type DeleteEmailConfig404HttpError, type
|
|
319
|
+
export { type DeleteConfigNotFoundError, type DeleteEmailConfig403HttpError, type DeleteEmailConfig404HttpError, type DeleteEmailConfigDefaultHttpError, type DeleteEmailConfigHttpError, type DeleteEmailConfigHttpResponse, type Email, type EmailConfigFieldPatch, type EmailConfigGet, type EmailConfigPatch, type ErrorPublic, type ErrorsPublic, type GetEmailConfig403HttpError, type GetEmailConfigDefaultHttpError, type GetEmailConfigHttpError, type GetEmailConfigHttpResponse, type PatchEmailConfig400HttpError, type PatchEmailConfig403HttpError, type PatchEmailConfigDefaultHttpError, type PatchEmailConfigError, type PatchEmailConfigHttpError, type PatchEmailConfigHttpResponse, type SendTestEmail403HttpError, type SendTestEmail404HttpError, type SendTestEmailDefaultHttpError, type SendTestEmailHttpError, type SendTestEmailHttpResponse, type SendTestMailConfigNotFoundError, type SmtpCheck, type SmtpConfigStatus, type SmtpResult, type TenantAdminError, type TransportsAPI, type ValidateEmailConfigHttpError, type ValidateEmailConfigHttpResponse, type VerifyConnectionConfigNotFoundError, type VerifyEmailConfigConnection404HttpError, type VerifyEmailConfigConnectionDefaultHttpError, type VerifyEmailConfigConnectionHttpError, type VerifyEmailConfigConnectionHttpResponse, clearCache, transportsExport as default, deleteEmailConfig, getEmailConfig, patchEmailConfig, sendTestEmail, validateEmailConfig, verifyEmailConfigConnection };
|
package/transports.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-TzVhFPid.js';
|
|
2
2
|
import './auth-types-nnUcWhuU.js';
|
|
3
3
|
|
|
4
4
|
type DeleteConfigNotFoundError = {
|
|
@@ -9,6 +9,9 @@ type DeleteConfigNotFoundError = {
|
|
|
9
9
|
title: string;
|
|
10
10
|
}[];
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* An error object.
|
|
14
|
+
*/
|
|
12
15
|
type ErrorPublic = {
|
|
13
16
|
/** The error code. */
|
|
14
17
|
code: string;
|
|
@@ -58,6 +61,9 @@ type Email = {
|
|
|
58
61
|
/** email subject */
|
|
59
62
|
subject?: string;
|
|
60
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
|
|
66
|
+
*/
|
|
61
67
|
type EmailConfigFieldPatch = {
|
|
62
68
|
/** The operation to be performed. */
|
|
63
69
|
op: "replace, remove, add";
|
|
@@ -95,6 +101,9 @@ type SmtpCheck = {
|
|
|
95
101
|
/** true if smtp config is correct and complete. Will return false if smtp-config does not exist at all */
|
|
96
102
|
isValid?: boolean;
|
|
97
103
|
};
|
|
104
|
+
/**
|
|
105
|
+
* Contains statusCode and statusReason
|
|
106
|
+
*/
|
|
98
107
|
type SmtpConfigStatus = {
|
|
99
108
|
/** Status code */
|
|
100
109
|
statusCode?: number;
|
|
@@ -132,12 +141,12 @@ type DeleteEmailConfig404HttpError = {
|
|
|
132
141
|
headers: Headers;
|
|
133
142
|
status: 404;
|
|
134
143
|
};
|
|
135
|
-
type
|
|
144
|
+
type DeleteEmailConfigDefaultHttpError = {
|
|
136
145
|
data: ErrorsPublic;
|
|
137
146
|
headers: Headers;
|
|
138
147
|
status: "default";
|
|
139
148
|
};
|
|
140
|
-
type DeleteEmailConfigHttpError = DeleteEmailConfig403HttpError | DeleteEmailConfig404HttpError |
|
|
149
|
+
type DeleteEmailConfigHttpError = DeleteEmailConfig403HttpError | DeleteEmailConfig404HttpError | DeleteEmailConfigDefaultHttpError;
|
|
141
150
|
/**
|
|
142
151
|
* Returns the email configuration for a given tenant id (retrieved from JWT).
|
|
143
152
|
*
|
|
@@ -154,12 +163,12 @@ type GetEmailConfig403HttpError = {
|
|
|
154
163
|
headers: Headers;
|
|
155
164
|
status: 403;
|
|
156
165
|
};
|
|
157
|
-
type
|
|
166
|
+
type GetEmailConfigDefaultHttpError = {
|
|
158
167
|
data: ErrorsPublic;
|
|
159
168
|
headers: Headers;
|
|
160
169
|
status: "default";
|
|
161
170
|
};
|
|
162
|
-
type GetEmailConfigHttpError = GetEmailConfig403HttpError |
|
|
171
|
+
type GetEmailConfigHttpError = GetEmailConfig403HttpError | GetEmailConfigDefaultHttpError;
|
|
163
172
|
/**
|
|
164
173
|
* Patch the email configuration for a given tenant id (retrieved from JWT).
|
|
165
174
|
*
|
|
@@ -182,12 +191,12 @@ type PatchEmailConfig403HttpError = {
|
|
|
182
191
|
headers: Headers;
|
|
183
192
|
status: 403;
|
|
184
193
|
};
|
|
185
|
-
type
|
|
194
|
+
type PatchEmailConfigDefaultHttpError = {
|
|
186
195
|
data: ErrorsPublic;
|
|
187
196
|
headers: Headers;
|
|
188
197
|
status: "default";
|
|
189
198
|
};
|
|
190
|
-
type PatchEmailConfigHttpError = PatchEmailConfig400HttpError | PatchEmailConfig403HttpError |
|
|
199
|
+
type PatchEmailConfigHttpError = PatchEmailConfig400HttpError | PatchEmailConfig403HttpError | PatchEmailConfigDefaultHttpError;
|
|
191
200
|
/**
|
|
192
201
|
* Send a test mail with the supplied email info (subject, body, recipient). Email config from database is used for the connection.
|
|
193
202
|
*
|
|
@@ -210,12 +219,12 @@ type SendTestEmail404HttpError = {
|
|
|
210
219
|
headers: Headers;
|
|
211
220
|
status: 404;
|
|
212
221
|
};
|
|
213
|
-
type
|
|
222
|
+
type SendTestEmailDefaultHttpError = {
|
|
214
223
|
data: ErrorsPublic;
|
|
215
224
|
headers: Headers;
|
|
216
225
|
status: "default";
|
|
217
226
|
};
|
|
218
|
-
type SendTestEmailHttpError = SendTestEmail403HttpError | SendTestEmail404HttpError |
|
|
227
|
+
type SendTestEmailHttpError = SendTestEmail403HttpError | SendTestEmail404HttpError | SendTestEmailDefaultHttpError;
|
|
219
228
|
/**
|
|
220
229
|
* Returns the isValid value for the email configuration for the tenant. Will return false if no email configuration exists.
|
|
221
230
|
*
|
|
@@ -248,12 +257,12 @@ type VerifyEmailConfigConnection404HttpError = {
|
|
|
248
257
|
headers: Headers;
|
|
249
258
|
status: 404;
|
|
250
259
|
};
|
|
251
|
-
type
|
|
260
|
+
type VerifyEmailConfigConnectionDefaultHttpError = {
|
|
252
261
|
data: ErrorsPublic;
|
|
253
262
|
headers: Headers;
|
|
254
263
|
status: "default";
|
|
255
264
|
};
|
|
256
|
-
type VerifyEmailConfigConnectionHttpError = VerifyEmailConfigConnection404HttpError |
|
|
265
|
+
type VerifyEmailConfigConnectionHttpError = VerifyEmailConfigConnection404HttpError | VerifyEmailConfigConnectionDefaultHttpError;
|
|
257
266
|
/**
|
|
258
267
|
* Clears the cache for transports api requests.
|
|
259
268
|
*/
|
|
@@ -307,4 +316,4 @@ interface TransportsAPI {
|
|
|
307
316
|
*/
|
|
308
317
|
declare const transportsExport: TransportsAPI;
|
|
309
318
|
|
|
310
|
-
export { type DeleteConfigNotFoundError, type DeleteEmailConfig403HttpError, type DeleteEmailConfig404HttpError, type
|
|
319
|
+
export { type DeleteConfigNotFoundError, type DeleteEmailConfig403HttpError, type DeleteEmailConfig404HttpError, type DeleteEmailConfigDefaultHttpError, type DeleteEmailConfigHttpError, type DeleteEmailConfigHttpResponse, type Email, type EmailConfigFieldPatch, type EmailConfigGet, type EmailConfigPatch, type ErrorPublic, type ErrorsPublic, type GetEmailConfig403HttpError, type GetEmailConfigDefaultHttpError, type GetEmailConfigHttpError, type GetEmailConfigHttpResponse, type PatchEmailConfig400HttpError, type PatchEmailConfig403HttpError, type PatchEmailConfigDefaultHttpError, type PatchEmailConfigError, type PatchEmailConfigHttpError, type PatchEmailConfigHttpResponse, type SendTestEmail403HttpError, type SendTestEmail404HttpError, type SendTestEmailDefaultHttpError, type SendTestEmailHttpError, type SendTestEmailHttpResponse, type SendTestMailConfigNotFoundError, type SmtpCheck, type SmtpConfigStatus, type SmtpResult, type TenantAdminError, type TransportsAPI, type ValidateEmailConfigHttpError, type ValidateEmailConfigHttpResponse, type VerifyConnectionConfigNotFoundError, type VerifyEmailConfigConnection404HttpError, type VerifyEmailConfigConnectionDefaultHttpError, type VerifyEmailConfigConnectionHttpError, type VerifyEmailConfigConnectionHttpResponse, clearCache, transportsExport as default, deleteEmailConfig, getEmailConfig, patchEmailConfig, sendTestEmail, validateEmailConfig, verifyEmailConfigConnection };
|
package/transports.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./
|
|
6
|
-
require('./
|
|
4
|
+
var _QMWU5E4Djs = require('./chunks/QMWU5E4D.js');
|
|
5
|
+
require('./chunks/FG5GDUSZ.js');
|
|
6
|
+
require('./chunks/4HB3TAEO.js');
|
|
7
7
|
|
|
8
8
|
// src/public/rest/transports.ts
|
|
9
|
-
var deleteEmailConfig = async (options) =>
|
|
9
|
+
var deleteEmailConfig = async (options) => _QMWU5E4Djs.invokeFetch.call(void 0, "transports", {
|
|
10
10
|
method: "delete",
|
|
11
11
|
pathTemplate: "/api/v1/transports/email-config",
|
|
12
12
|
options
|
|
13
13
|
});
|
|
14
|
-
var getEmailConfig = async (options) =>
|
|
14
|
+
var getEmailConfig = async (options) => _QMWU5E4Djs.invokeFetch.call(void 0, "transports", {
|
|
15
15
|
method: "get",
|
|
16
16
|
pathTemplate: "/api/v1/transports/email-config",
|
|
17
17
|
options
|
|
18
18
|
});
|
|
19
|
-
var patchEmailConfig = async (body, options) =>
|
|
19
|
+
var patchEmailConfig = async (body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "transports", {
|
|
20
20
|
method: "patch",
|
|
21
21
|
pathTemplate: "/api/v1/transports/email-config",
|
|
22
22
|
body,
|
|
23
23
|
contentType: "application/json",
|
|
24
24
|
options
|
|
25
25
|
});
|
|
26
|
-
var sendTestEmail = async (body, options) =>
|
|
26
|
+
var sendTestEmail = async (body, options) => _QMWU5E4Djs.invokeFetch.call(void 0, "transports", {
|
|
27
27
|
method: "post",
|
|
28
28
|
pathTemplate: "/api/v1/transports/email-config/actions/send-test-email",
|
|
29
29
|
body,
|
|
30
30
|
contentType: "application/json",
|
|
31
31
|
options
|
|
32
32
|
});
|
|
33
|
-
var validateEmailConfig = async (options) =>
|
|
33
|
+
var validateEmailConfig = async (options) => _QMWU5E4Djs.invokeFetch.call(void 0, "transports", {
|
|
34
34
|
method: "post",
|
|
35
35
|
pathTemplate: "/api/v1/transports/email-config/actions/validate",
|
|
36
36
|
options
|
|
37
37
|
});
|
|
38
|
-
var verifyEmailConfigConnection = async (options) =>
|
|
38
|
+
var verifyEmailConfigConnection = async (options) => _QMWU5E4Djs.invokeFetch.call(void 0, "transports", {
|
|
39
39
|
method: "post",
|
|
40
40
|
pathTemplate: "/api/v1/transports/email-config/actions/verify-connection",
|
|
41
41
|
options
|
|
42
42
|
});
|
|
43
43
|
function clearCache() {
|
|
44
|
-
return
|
|
44
|
+
return _QMWU5E4Djs.clearApiCache.call(void 0, "transports");
|
|
45
45
|
}
|
|
46
46
|
var transportsExport = {
|
|
47
47
|
deleteEmailConfig,
|
package/transports.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
4
|
+
} from "./chunks/HWZC3PIL.mjs";
|
|
5
|
+
import "./chunks/O5POHH2Q.mjs";
|
|
6
|
+
import "./chunks/VSY5YIQY.mjs";
|
|
7
7
|
|
|
8
8
|
// src/public/rest/transports.ts
|
|
9
9
|
var deleteEmailConfig = async (options) => invokeFetch("transports", {
|