@qlik/api 2.2.0 → 2.3.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.
- package/analytics/change-stores.d.ts +386 -0
- package/analytics/change-stores.js +123 -0
- package/analytics.d.ts +14 -0
- package/analytics.js +13 -0
- package/api-keys.d.ts +362 -3
- package/api-keys.js +2 -3
- package/apps.d.ts +2673 -3
- package/apps.js +2 -3
- package/assistants.d.ts +1370 -3
- package/assistants.js +2 -3
- package/audits.d.ts +318 -3
- package/audits.js +4 -4
- package/auth-types.d.ts +1 -1
- package/auth-types.js +1 -2
- package/auth.d.ts +94 -2
- package/auth.js +63 -3
- package/automation-connections.d.ts +366 -3
- package/automation-connections.js +2 -3
- package/automation-connectors.d.ts +84 -3
- package/automation-connectors.js +2 -3
- package/automations.d.ts +805 -3
- package/automations.js +2 -3
- package/automl-deployments.d.ts +101 -3
- package/automl-deployments.js +2 -3
- package/automl-predictions.d.ts +238 -3
- package/automl-predictions.js +2 -3
- package/banners.d.ts +184 -3
- package/banners.js +2 -3
- package/brands.d.ts +670 -3
- package/brands.js +2 -3
- package/chunks/auth-XusKk8IA.js +32 -0
- package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
- package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
- package/chunks/{auth-functions-BmZgZYSs.js → interceptors-2VSXImC9.js} +498 -146
- package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-CckTK7bh.js} +3 -3
- package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-D9lpiAb-.js} +1 -5
- package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-BqxAMJ9M.js} +7 -7
- package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
- package/chunks/{qix-DjxuPCX0.js → qix-DpvHvpx7.js} +11 -10
- package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-BXZPnE6J.js} +48 -50
- package/collections.d.ts +582 -3
- package/collections.js +2 -3
- package/conditions.d.ts +662 -3
- package/conditions.js +2 -3
- package/consumption.d.ts +182 -3
- package/consumption.js +2 -3
- package/core/ip-policies.d.ts +328 -4
- package/core/ip-policies.js +108 -5
- package/core.d.ts +13 -4
- package/core.js +3 -4
- package/csp-origins.d.ts +273 -3
- package/csp-origins.js +2 -3
- package/csrf-token.d.ts +62 -3
- package/csrf-token.js +2 -3
- package/data-alerts.d.ts +1004 -3
- package/data-alerts.js +2 -3
- package/data-assets.d.ts +207 -3
- package/data-assets.js +2 -3
- package/data-connections.d.ts +678 -3
- package/data-connections.js +2 -3
- package/data-credentials.d.ts +292 -3
- package/data-credentials.js +2 -3
- package/data-files.d.ts +860 -3
- package/data-files.js +2 -3
- package/data-qualities.d.ts +175 -3
- package/data-qualities.js +2 -3
- package/data-sets.d.ts +424 -3
- package/data-sets.js +2 -3
- package/data-sources.d.ts +348 -3
- package/data-sources.js +2 -3
- package/data-stores.d.ts +537 -3
- package/data-stores.js +2 -3
- package/dcaas.d.ts +192 -3
- package/dcaas.js +2 -3
- package/di-projects.d.ts +812 -4
- package/di-projects.js +25 -4
- package/direct-access-agents.d.ts +710 -4
- package/direct-access-agents.js +37 -5
- package/docs/authentication.md +1 -1
- package/encryption.d.ts +372 -3
- package/encryption.js +2 -3
- package/extensions.d.ts +295 -3
- package/extensions.js +2 -3
- package/global-types.d.ts +1 -1
- package/global-types.js +0 -2
- package/glossaries.d.ts +1223 -3
- package/glossaries.js +2 -3
- package/groups.d.ts +510 -3
- package/groups.js +2 -3
- package/identity-providers.d.ts +711 -3
- package/identity-providers.js +2 -3
- package/index.d.ts +78 -69
- package/index.js +28 -10
- package/interceptors.d.ts +52 -3
- package/interceptors.js +1 -2
- package/invoke-fetch-types.d.ts +1 -1
- package/items.d.ts +536 -3
- package/items.js +2 -3
- package/knowledgebases.d.ts +976 -3
- package/knowledgebases.js +2 -3
- package/licenses.d.ts +663 -3
- package/licenses.js +2 -3
- package/lineage-graphs.d.ts +704 -3
- package/lineage-graphs.js +2 -3
- package/ml.d.ts +2808 -3
- package/ml.js +2 -3
- package/notes.d.ts +110 -3
- package/notes.js +2 -3
- package/notifications.d.ts +98 -3
- package/notifications.js +2 -3
- package/oauth-callback.iife.js +1151 -0
- package/oauth-clients.d.ts +562 -3
- package/oauth-clients.js +2 -3
- package/oauth-tokens.d.ts +126 -3
- package/oauth-tokens.js +2 -3
- package/package.json +5 -4
- package/qix.d.ts +3 -3
- package/qix.js +38 -3
- package/questions.d.ts +364 -3
- package/questions.js +2 -3
- package/quotas.d.ts +112 -3
- package/quotas.js +2 -3
- package/reload-tasks.d.ts +249 -3
- package/reload-tasks.js +2 -3
- package/reloads.d.ts +260 -3
- package/reloads.js +2 -3
- package/report-templates.d.ts +287 -3
- package/report-templates.js +2 -3
- package/reports.d.ts +863 -3
- package/reports.js +2 -3
- package/roles.d.ts +312 -3
- package/roles.js +2 -3
- package/sharing-tasks.d.ts +1164 -3
- package/sharing-tasks.js +2 -3
- package/spaces.d.ts +779 -3
- package/spaces.js +2 -3
- package/tasks.d.ts +564 -3
- package/tasks.js +2 -3
- package/temp-contents.d.ts +167 -3
- package/temp-contents.js +2 -3
- package/tenants.d.ts +360 -3
- package/tenants.js +2 -3
- package/themes.d.ts +270 -3
- package/themes.js +2 -3
- package/transports.d.ts +435 -4
- package/transports.js +20 -5
- package/ui-config.d.ts +274 -3
- package/ui-config.js +2 -3
- package/users.d.ts +674 -3
- package/users.js +2 -3
- package/web-integrations.d.ts +294 -3
- package/web-integrations.js +2 -3
- package/web-notifications.d.ts +273 -3
- package/web-notifications.js +2 -3
- package/webhooks.d.ts +505 -3
- package/webhooks.js +2 -3
- package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
- package/chunks/apps-BwpXUGDb.d.ts +0 -2673
- package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
- package/chunks/audits-DakwzT97.d.ts +0 -316
- package/chunks/auth-6mptVm5Q.d.ts +0 -95
- package/chunks/auth-Cle0_tmz.js +0 -32
- package/chunks/auth-D11iO7ZV.js +0 -65
- package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
- package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
- package/chunks/automations-BGy83EBO.d.ts +0 -797
- package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
- package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
- package/chunks/banners-CgBRnZGv.d.ts +0 -184
- package/chunks/brands-DCgk6Gqx.d.ts +0 -671
- package/chunks/collections-BpYjcpIY.d.ts +0 -582
- package/chunks/conditions-CJJG7Uph.d.ts +0 -662
- package/chunks/consumption-DerFk437.d.ts +0 -182
- package/chunks/core-DQXNZdnf.d.ts +0 -12
- package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
- package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
- package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
- package/chunks/data-assets-CJDcssoX.d.ts +0 -207
- package/chunks/data-connections-VSB13K6g.d.ts +0 -678
- package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
- package/chunks/data-files-CVzn9M6V.d.ts +0 -860
- package/chunks/data-qualities-DBrot957.d.ts +0 -176
- package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
- package/chunks/data-sources-IsAaof_C.d.ts +0 -346
- package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
- package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
- package/chunks/di-projects-DVQTxASr.d.ts +0 -777
- package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
- package/chunks/encryption-BjA6xbCO.d.ts +0 -372
- package/chunks/extensions-OO0WtInj.d.ts +0 -294
- package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
- package/chunks/groups-C86-UG7S.d.ts +0 -511
- package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
- package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
- package/chunks/interceptors-DTYm37AU.js +0 -104
- package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
- package/chunks/ip-policies-DXlf172B.js +0 -108
- package/chunks/items-C-jzqvFW.d.ts +0 -536
- package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
- package/chunks/licenses-xzjnkitW.d.ts +0 -663
- package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
- package/chunks/ml-Abt2MUva.d.ts +0 -2809
- package/chunks/notes-BZxuyDgt.d.ts +0 -111
- package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
- package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
- package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
- package/chunks/qix-CYQsLyGQ.js +0 -40
- package/chunks/questions-BVp0tvNs.d.ts +0 -364
- package/chunks/quotas-CfAebRJd.d.ts +0 -113
- package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
- package/chunks/reloads-CwmagnFx.d.ts +0 -260
- package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
- package/chunks/reports-DzNC6Uq3.d.ts +0 -861
- package/chunks/roles-BYFIY6E7.d.ts +0 -312
- package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
- package/chunks/spaces-BK823t-b.d.ts +0 -780
- package/chunks/tasks-COKDfShO.d.ts +0 -564
- package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
- package/chunks/tenants-Bhn86519.d.ts +0 -361
- package/chunks/themes-v9NbhiBo.d.ts +0 -269
- package/chunks/transports-CqEiFxD3.d.ts +0 -362
- package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
- package/chunks/users-BSOBU_fg.d.ts +0 -675
- package/chunks/web-integrations-MisPAHod.d.ts +0 -295
- package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
- package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
- /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
- /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
- /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
- /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
- /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
- /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
package/transports.d.ts
CHANGED
|
@@ -1,4 +1,435 @@
|
|
|
1
|
-
import "./chunks/auth-types-
|
|
2
|
-
import "./chunks/invoke-fetch-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
|
|
2
|
+
import "./chunks/invoke-fetch-C1Z0RJYU.js";
|
|
3
|
+
|
|
4
|
+
//#region src/public/rest/transports.d.ts
|
|
5
|
+
type DeleteConfigNotFoundError = {
|
|
6
|
+
errors?: {
|
|
7
|
+
/** The error code. */
|
|
8
|
+
code: string;
|
|
9
|
+
/** Summary of the problem */
|
|
10
|
+
title: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* An error object.
|
|
15
|
+
*/
|
|
16
|
+
type ErrorPublic = {
|
|
17
|
+
/** The error code. */
|
|
18
|
+
code: string;
|
|
19
|
+
/** Summary of the problem. */
|
|
20
|
+
title: string;
|
|
21
|
+
};
|
|
22
|
+
type ErrorsPublic = {
|
|
23
|
+
errors?: ErrorPublic[];
|
|
24
|
+
};
|
|
25
|
+
type SendTestMailConfigNotFoundError = {
|
|
26
|
+
errors?: {
|
|
27
|
+
/** The error code. */
|
|
28
|
+
code: string;
|
|
29
|
+
/** Summary of the problem */
|
|
30
|
+
title: string;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
type TenantAdminError = {
|
|
34
|
+
errors?: {
|
|
35
|
+
/** The error code. */
|
|
36
|
+
code: string;
|
|
37
|
+
/** Summary of the problem */
|
|
38
|
+
title: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
41
|
+
type UpdateEmailConfigError = {
|
|
42
|
+
errors?: {
|
|
43
|
+
/** The error code. */
|
|
44
|
+
code: string;
|
|
45
|
+
/** Summary of the problem */
|
|
46
|
+
title: string;
|
|
47
|
+
}[];
|
|
48
|
+
};
|
|
49
|
+
type VerifyConnectionConfigNotFoundError = {
|
|
50
|
+
errors?: {
|
|
51
|
+
/** The error code. */
|
|
52
|
+
code: string;
|
|
53
|
+
/** Summary of the problem */
|
|
54
|
+
title: string;
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
57
|
+
type Email = {
|
|
58
|
+
/** email body */
|
|
59
|
+
body?: string;
|
|
60
|
+
/** email recipient (email address) */
|
|
61
|
+
recipient?: string;
|
|
62
|
+
/** email subject */
|
|
63
|
+
subject?: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
|
|
67
|
+
*/
|
|
68
|
+
type EmailConfigFieldPatch = {
|
|
69
|
+
/** The operation to be performed. */
|
|
70
|
+
op: "replace, remove, add";
|
|
71
|
+
/** The path for the given resource field to patch. */
|
|
72
|
+
path: "/username" | "/serverAddress" | "/serverPort" | "/securityType" | "/emailAddress" | "/emailPassword";
|
|
73
|
+
/** The value to be used for this operation. */
|
|
74
|
+
value: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @example
|
|
78
|
+
* [
|
|
79
|
+
* {
|
|
80
|
+
* path: "/username",
|
|
81
|
+
* value: "New name"
|
|
82
|
+
* }
|
|
83
|
+
* ]
|
|
84
|
+
*/
|
|
85
|
+
type EmailConfigPatch = EmailConfigFieldPatch[];
|
|
86
|
+
type GetBasicAuthConfig = {
|
|
87
|
+
/** The email address that should appear in From field when sending emails with this account */
|
|
88
|
+
emailAddress?: string;
|
|
89
|
+
/** The selected SMTP security mechanism. Could be either 'none', 'StartTLS' or 'SSL/TLS' */
|
|
90
|
+
securityType?: string;
|
|
91
|
+
/** The name that should appear in From field when sending emails with this account */
|
|
92
|
+
senderName?: string;
|
|
93
|
+
/** domain name or IP address of SMTP server */
|
|
94
|
+
serverAddress?: string;
|
|
95
|
+
/** smtp server port */
|
|
96
|
+
serverPort?: number;
|
|
97
|
+
/** user name used for SMTP login */
|
|
98
|
+
username?: string;
|
|
99
|
+
};
|
|
100
|
+
type GetEmailConfig = {
|
|
101
|
+
/** Number of authentication failures */
|
|
102
|
+
authFailures?: number;
|
|
103
|
+
/** used for SMTP authentication */
|
|
104
|
+
emailAddress?: string;
|
|
105
|
+
/** Indicates error with this email configuration. OK means that no error is indicated. Possible values are OK, CONFIG_NOT_SET, INCOMPLETE_CONFIG, INVALID_CREDENTIALS, PROVIDER_ERROR */
|
|
106
|
+
errorCode?: string;
|
|
107
|
+
/** Is the configuration valid */
|
|
108
|
+
isValid?: boolean;
|
|
109
|
+
lastUpdated?: string;
|
|
110
|
+
/** Last modification time. Formatted as a ISO 8601 string. */
|
|
111
|
+
modificationTime?: string;
|
|
112
|
+
/** Indicates if password is defined for this smtp config. The password itself is not returned! */
|
|
113
|
+
passwordExists?: boolean;
|
|
114
|
+
providerConfig?: GetMicrosoft365Config | GetBasicAuthConfig;
|
|
115
|
+
/** one of none, StartTLS or SSL/TLS */
|
|
116
|
+
securityType?: string;
|
|
117
|
+
/** domain name or IP address of SMTP server */
|
|
118
|
+
serverAddress?: string;
|
|
119
|
+
/** smtp server listening port */
|
|
120
|
+
serverPort?: number;
|
|
121
|
+
/** Name of the service provider for authentication */
|
|
122
|
+
serviceProvider?: "Microsoft365" | "BasicAuth";
|
|
123
|
+
/** Contains statusCode and statusReason */
|
|
124
|
+
status?: SmtpConfigStatus;
|
|
125
|
+
/** The tenant Id */
|
|
126
|
+
tenantId?: string;
|
|
127
|
+
/** user name */
|
|
128
|
+
username?: string;
|
|
129
|
+
};
|
|
130
|
+
type GetMicrosoft365Config = {
|
|
131
|
+
/** Microsoft365 client identifier */
|
|
132
|
+
clientId?: string;
|
|
133
|
+
/** The email address that should appear in From field when sending emails with this account */
|
|
134
|
+
emailAddress?: string;
|
|
135
|
+
/** Microsoft365 tenant identifier */
|
|
136
|
+
providerTenantId?: string;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* SMTP basic authentication configuration. Provides server address, credentials, and sender information for standard SMTP email delivery.
|
|
140
|
+
*/
|
|
141
|
+
type PutBasicAuthConfig = {
|
|
142
|
+
/** The email address that should appear in From field when sending emails with this account */
|
|
143
|
+
emailAddress?: string;
|
|
144
|
+
/** password for SMTP basic authentication */
|
|
145
|
+
emailPassword?: string;
|
|
146
|
+
/** SMTP security mechanism to use. Could be either 'none', 'StartTLS' or 'SSL/TLS' */
|
|
147
|
+
securityType?: string;
|
|
148
|
+
/** The name that should appear in From field when sending emails with this account */
|
|
149
|
+
senderName?: string;
|
|
150
|
+
/** domain name or IP address of SMTP server */
|
|
151
|
+
serverAddress?: string;
|
|
152
|
+
/** smtp server port */
|
|
153
|
+
serverPort?: number;
|
|
154
|
+
/** user name used for SMTP login */
|
|
155
|
+
username?: string;
|
|
156
|
+
};
|
|
157
|
+
type PutEmailConfig = {
|
|
158
|
+
providerConfig?: PutMicrosoft365Config | PutBasicAuthConfig;
|
|
159
|
+
/** Name of the service provider for authentication */
|
|
160
|
+
serviceProvider?: "Microsoft365" | "BasicAuth";
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Microsoft 365 authentication configuration. Provides OAuth credentials and tenant information for Microsoft 365 email delivery.
|
|
164
|
+
*/
|
|
165
|
+
type PutMicrosoft365Config = {
|
|
166
|
+
/** Microsoft365 client identifier */
|
|
167
|
+
clientId?: string;
|
|
168
|
+
/** secret to authenticate the Microsoft365 account */
|
|
169
|
+
clientSecret?: string;
|
|
170
|
+
/** The email address that should appear in From field when sending emails with this account */
|
|
171
|
+
emailAddress?: string;
|
|
172
|
+
/** Microsoft365 tenant identifier */
|
|
173
|
+
providerTenantId?: string;
|
|
174
|
+
};
|
|
175
|
+
type SmtpCheck = {
|
|
176
|
+
/** Indicates error with this email configuration. OK means that no error is indicated. Possible values are OK, CONFIG_NOT_SET, INCOMPLETE_CONFIG, INVALID_CREDENTIALS, PROVIDER_ERROR */
|
|
177
|
+
errorCode?: string;
|
|
178
|
+
/** true if smtp config is correct and complete. Will return false if smtp-config does not exist at all */
|
|
179
|
+
isValid?: boolean;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Contains statusCode and statusReason
|
|
183
|
+
*/
|
|
184
|
+
type SmtpConfigStatus = {
|
|
185
|
+
/** Status code */
|
|
186
|
+
statusCode?: number;
|
|
187
|
+
/** Status reason */
|
|
188
|
+
statusReason?: string;
|
|
189
|
+
};
|
|
190
|
+
type SmtpResult = {
|
|
191
|
+
/** could not resolve domain name, connection refused, connection timed out, SSL mismatch */
|
|
192
|
+
connectionFailed?: boolean;
|
|
193
|
+
/** error message from SMTP middleware .. a bit technical but could be useful to administrator */
|
|
194
|
+
message?: string;
|
|
195
|
+
/** smtp result code string from the SMTP server. eg. "250 2.6.0" */
|
|
196
|
+
smtpResponseCode?: number;
|
|
197
|
+
/** was SMTP operation successful or not. Other fields herein provide more detail */
|
|
198
|
+
success?: boolean;
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Deletes the email configuration for the tenant.
|
|
202
|
+
*
|
|
203
|
+
* @throws DeleteEmailConfigHttpError
|
|
204
|
+
*/
|
|
205
|
+
declare function deleteEmailConfig(options?: ApiCallOptions): Promise<DeleteEmailConfigHttpResponse>;
|
|
206
|
+
type DeleteEmailConfigHttpResponse = {
|
|
207
|
+
data: void;
|
|
208
|
+
headers: Headers;
|
|
209
|
+
status: 204;
|
|
210
|
+
};
|
|
211
|
+
type DeleteEmailConfigHttpError = DeleteEmailConfig403HttpError | DeleteEmailConfig404HttpError | DeleteEmailConfigdefaultHttpError;
|
|
212
|
+
type DeleteEmailConfig403HttpError = {
|
|
213
|
+
data: TenantAdminError;
|
|
214
|
+
headers: Headers;
|
|
215
|
+
status: 403;
|
|
216
|
+
};
|
|
217
|
+
type DeleteEmailConfig404HttpError = {
|
|
218
|
+
data: DeleteConfigNotFoundError;
|
|
219
|
+
headers: Headers;
|
|
220
|
+
status: 404;
|
|
221
|
+
};
|
|
222
|
+
type DeleteEmailConfigdefaultHttpError = {
|
|
223
|
+
data: ErrorsPublic;
|
|
224
|
+
headers: Headers;
|
|
225
|
+
status: "default";
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Returns the current email configuration and configuration status for the tenant.
|
|
229
|
+
*
|
|
230
|
+
* @throws GetEmailConfigHttpError
|
|
231
|
+
*/
|
|
232
|
+
declare function getEmailConfig(options?: ApiCallOptions): Promise<GetEmailConfigHttpResponse>;
|
|
233
|
+
type GetEmailConfigHttpResponse = {
|
|
234
|
+
data: GetEmailConfig;
|
|
235
|
+
headers: Headers;
|
|
236
|
+
status: 200;
|
|
237
|
+
};
|
|
238
|
+
type GetEmailConfigHttpError = GetEmailConfig403HttpError | GetEmailConfigdefaultHttpError;
|
|
239
|
+
type GetEmailConfig403HttpError = {
|
|
240
|
+
data: TenantAdminError;
|
|
241
|
+
headers: Headers;
|
|
242
|
+
status: 403;
|
|
243
|
+
};
|
|
244
|
+
type GetEmailConfigdefaultHttpError = {
|
|
245
|
+
data: ErrorsPublic;
|
|
246
|
+
headers: Headers;
|
|
247
|
+
status: "default";
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* @deprecated
|
|
251
|
+
*
|
|
252
|
+
* Patches the email configuration for the tenant. This endpoint is deprecated, use `PUT /transports/email-config` to replace the entire configuration instead.
|
|
253
|
+
*
|
|
254
|
+
* @param body an object with the body content
|
|
255
|
+
* @throws PatchEmailConfigHttpError
|
|
256
|
+
*/
|
|
257
|
+
declare function patchEmailConfig(body: EmailConfigPatch, options?: ApiCallOptions): Promise<PatchEmailConfigHttpResponse>;
|
|
258
|
+
type PatchEmailConfigHttpResponse = {
|
|
259
|
+
data: void;
|
|
260
|
+
headers: Headers;
|
|
261
|
+
status: 204;
|
|
262
|
+
};
|
|
263
|
+
type PatchEmailConfigHttpError = PatchEmailConfig400HttpError | PatchEmailConfig403HttpError | PatchEmailConfigdefaultHttpError;
|
|
264
|
+
type PatchEmailConfig400HttpError = {
|
|
265
|
+
data: UpdateEmailConfigError;
|
|
266
|
+
headers: Headers;
|
|
267
|
+
status: 400;
|
|
268
|
+
};
|
|
269
|
+
type PatchEmailConfig403HttpError = {
|
|
270
|
+
data: TenantAdminError;
|
|
271
|
+
headers: Headers;
|
|
272
|
+
status: 403;
|
|
273
|
+
};
|
|
274
|
+
type PatchEmailConfigdefaultHttpError = {
|
|
275
|
+
data: ErrorsPublic;
|
|
276
|
+
headers: Headers;
|
|
277
|
+
status: "default";
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* Creates or replaces the email configuration for the tenant. Validation of the configuration is done as part of the request.
|
|
281
|
+
*
|
|
282
|
+
* @param body an object with the body content
|
|
283
|
+
* @throws UpdateEmailConfigHttpError
|
|
284
|
+
*/
|
|
285
|
+
declare function updateEmailConfig(body: PutEmailConfig, options?: ApiCallOptions): Promise<UpdateEmailConfigHttpResponse>;
|
|
286
|
+
type UpdateEmailConfigHttpResponse = {
|
|
287
|
+
data: void;
|
|
288
|
+
headers: Headers;
|
|
289
|
+
status: 204;
|
|
290
|
+
};
|
|
291
|
+
type UpdateEmailConfigHttpError = UpdateEmailConfig400HttpError | UpdateEmailConfig403HttpError | UpdateEmailConfigdefaultHttpError;
|
|
292
|
+
type UpdateEmailConfig400HttpError = {
|
|
293
|
+
data: UpdateEmailConfigError;
|
|
294
|
+
headers: Headers;
|
|
295
|
+
status: 400;
|
|
296
|
+
};
|
|
297
|
+
type UpdateEmailConfig403HttpError = {
|
|
298
|
+
data: TenantAdminError;
|
|
299
|
+
headers: Headers;
|
|
300
|
+
status: 403;
|
|
301
|
+
};
|
|
302
|
+
type UpdateEmailConfigdefaultHttpError = {
|
|
303
|
+
data: ErrorsPublic;
|
|
304
|
+
headers: Headers;
|
|
305
|
+
status: "default";
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* Attempts to sends a test email using the active configuration, with the supplied email info (subject, body, recipient).
|
|
309
|
+
*
|
|
310
|
+
* @param body an object with the body content
|
|
311
|
+
* @throws SendTestEmailHttpError
|
|
312
|
+
*/
|
|
313
|
+
declare function sendTestEmail(body: Email, options?: ApiCallOptions): Promise<SendTestEmailHttpResponse>;
|
|
314
|
+
type SendTestEmailHttpResponse = {
|
|
315
|
+
data: SmtpResult;
|
|
316
|
+
headers: Headers;
|
|
317
|
+
status: 200;
|
|
318
|
+
};
|
|
319
|
+
type SendTestEmailHttpError = SendTestEmail403HttpError | SendTestEmail404HttpError | SendTestEmaildefaultHttpError;
|
|
320
|
+
type SendTestEmail403HttpError = {
|
|
321
|
+
data: TenantAdminError;
|
|
322
|
+
headers: Headers;
|
|
323
|
+
status: 403;
|
|
324
|
+
};
|
|
325
|
+
type SendTestEmail404HttpError = {
|
|
326
|
+
data: SendTestMailConfigNotFoundError;
|
|
327
|
+
headers: Headers;
|
|
328
|
+
status: 404;
|
|
329
|
+
};
|
|
330
|
+
type SendTestEmaildefaultHttpError = {
|
|
331
|
+
data: ErrorsPublic;
|
|
332
|
+
headers: Headers;
|
|
333
|
+
status: "default";
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* Returns the current isValid value for the email configuration for the tenant. Does not attempt to connect to a server to verify the connection or send a test email. Will return false if no email configuration exists.
|
|
337
|
+
*
|
|
338
|
+
* @throws ValidateEmailConfigHttpError
|
|
339
|
+
*/
|
|
340
|
+
declare function validateEmailConfig(options?: ApiCallOptions): Promise<ValidateEmailConfigHttpResponse>;
|
|
341
|
+
type ValidateEmailConfigHttpResponse = {
|
|
342
|
+
data: SmtpCheck;
|
|
343
|
+
headers: Headers;
|
|
344
|
+
status: 200;
|
|
345
|
+
};
|
|
346
|
+
type ValidateEmailConfigHttpError = {
|
|
347
|
+
data: ErrorsPublic;
|
|
348
|
+
headers: Headers;
|
|
349
|
+
status: number;
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Attempts to verify connection to email server using a low-level protocol handshake to confirm the server is reachable and the credentials are valid, without sending a test email.
|
|
353
|
+
*
|
|
354
|
+
* @throws VerifyEmailConfigConnectionHttpError
|
|
355
|
+
*/
|
|
356
|
+
declare function verifyEmailConfigConnection(options?: ApiCallOptions): Promise<VerifyEmailConfigConnectionHttpResponse>;
|
|
357
|
+
type VerifyEmailConfigConnectionHttpResponse = {
|
|
358
|
+
data: SmtpResult;
|
|
359
|
+
headers: Headers;
|
|
360
|
+
status: 200;
|
|
361
|
+
};
|
|
362
|
+
type VerifyEmailConfigConnectionHttpError = VerifyEmailConfigConnection404HttpError | VerifyEmailConfigConnectiondefaultHttpError;
|
|
363
|
+
type VerifyEmailConfigConnection404HttpError = {
|
|
364
|
+
data: VerifyConnectionConfigNotFoundError;
|
|
365
|
+
headers: Headers;
|
|
366
|
+
status: 404;
|
|
367
|
+
};
|
|
368
|
+
type VerifyEmailConfigConnectiondefaultHttpError = {
|
|
369
|
+
data: ErrorsPublic;
|
|
370
|
+
headers: Headers;
|
|
371
|
+
status: "default";
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Clears the cache for transports api requests.
|
|
375
|
+
*/
|
|
376
|
+
declare function clearCache(): void;
|
|
377
|
+
type TransportsAPI = {
|
|
378
|
+
/**
|
|
379
|
+
* Deletes the email configuration for the tenant.
|
|
380
|
+
*
|
|
381
|
+
* @throws DeleteEmailConfigHttpError
|
|
382
|
+
*/
|
|
383
|
+
deleteEmailConfig: typeof deleteEmailConfig;
|
|
384
|
+
/**
|
|
385
|
+
* Returns the current email configuration and configuration status for the tenant.
|
|
386
|
+
*
|
|
387
|
+
* @throws GetEmailConfigHttpError
|
|
388
|
+
*/
|
|
389
|
+
getEmailConfig: typeof getEmailConfig;
|
|
390
|
+
/**
|
|
391
|
+
* @deprecated
|
|
392
|
+
*
|
|
393
|
+
* Patches the email configuration for the tenant. This endpoint is deprecated, use `PUT /transports/email-config` to replace the entire configuration instead.
|
|
394
|
+
*
|
|
395
|
+
* @param body an object with the body content
|
|
396
|
+
* @throws PatchEmailConfigHttpError
|
|
397
|
+
*/
|
|
398
|
+
patchEmailConfig: typeof patchEmailConfig;
|
|
399
|
+
/**
|
|
400
|
+
* Creates or replaces the email configuration for the tenant. Validation of the configuration is done as part of the request.
|
|
401
|
+
*
|
|
402
|
+
* @param body an object with the body content
|
|
403
|
+
* @throws UpdateEmailConfigHttpError
|
|
404
|
+
*/
|
|
405
|
+
updateEmailConfig: typeof updateEmailConfig;
|
|
406
|
+
/**
|
|
407
|
+
* Attempts to sends a test email using the active configuration, with the supplied email info (subject, body, recipient).
|
|
408
|
+
*
|
|
409
|
+
* @param body an object with the body content
|
|
410
|
+
* @throws SendTestEmailHttpError
|
|
411
|
+
*/
|
|
412
|
+
sendTestEmail: typeof sendTestEmail;
|
|
413
|
+
/**
|
|
414
|
+
* Returns the current isValid value for the email configuration for the tenant. Does not attempt to connect to a server to verify the connection or send a test email. Will return false if no email configuration exists.
|
|
415
|
+
*
|
|
416
|
+
* @throws ValidateEmailConfigHttpError
|
|
417
|
+
*/
|
|
418
|
+
validateEmailConfig: typeof validateEmailConfig;
|
|
419
|
+
/**
|
|
420
|
+
* Attempts to verify connection to email server using a low-level protocol handshake to confirm the server is reachable and the credentials are valid, without sending a test email.
|
|
421
|
+
*
|
|
422
|
+
* @throws VerifyEmailConfigConnectionHttpError
|
|
423
|
+
*/
|
|
424
|
+
verifyEmailConfigConnection: typeof verifyEmailConfigConnection;
|
|
425
|
+
/**
|
|
426
|
+
* Clears the cache for transports api requests.
|
|
427
|
+
*/
|
|
428
|
+
clearCache: typeof clearCache;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* Functions for the transports api
|
|
432
|
+
*/
|
|
433
|
+
declare const transportsExport: TransportsAPI;
|
|
434
|
+
//#endregion
|
|
435
|
+
export { DeleteConfigNotFoundError, DeleteEmailConfig403HttpError, DeleteEmailConfig404HttpError, DeleteEmailConfigHttpError, DeleteEmailConfigHttpResponse, DeleteEmailConfigdefaultHttpError, Email, EmailConfigFieldPatch, EmailConfigPatch, ErrorPublic, ErrorsPublic, GetBasicAuthConfig, GetEmailConfig, GetEmailConfig403HttpError, GetEmailConfigHttpError, GetEmailConfigHttpResponse, GetEmailConfigdefaultHttpError, GetMicrosoft365Config, PatchEmailConfig400HttpError, PatchEmailConfig403HttpError, PatchEmailConfigHttpError, PatchEmailConfigHttpResponse, PatchEmailConfigdefaultHttpError, PutBasicAuthConfig, PutEmailConfig, PutMicrosoft365Config, SendTestEmail403HttpError, SendTestEmail404HttpError, SendTestEmailHttpError, SendTestEmailHttpResponse, SendTestEmaildefaultHttpError, SendTestMailConfigNotFoundError, SmtpCheck, SmtpConfigStatus, SmtpResult, TenantAdminError, TransportsAPI, UpdateEmailConfig400HttpError, UpdateEmailConfig403HttpError, UpdateEmailConfigError, UpdateEmailConfigHttpError, UpdateEmailConfigHttpResponse, UpdateEmailConfigdefaultHttpError, ValidateEmailConfigHttpError, ValidateEmailConfigHttpResponse, VerifyConnectionConfigNotFoundError, VerifyEmailConfigConnection404HttpError, VerifyEmailConfigConnectionHttpError, VerifyEmailConfigConnectionHttpResponse, VerifyEmailConfigConnectiondefaultHttpError, clearCache, transportsExport as default, deleteEmailConfig, getEmailConfig, patchEmailConfig, sendTestEmail, updateEmailConfig, validateEmailConfig, verifyEmailConfigConnection };
|
package/transports.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./chunks/
|
|
2
|
-
import "./chunks/
|
|
3
|
-
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-PcVIxLW4.js";
|
|
1
|
+
import "./chunks/public-runtime-modules-BqxAMJ9M.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-CckTK7bh.js";
|
|
4
3
|
|
|
5
4
|
//#region src/public/rest/transports.ts
|
|
6
5
|
/**
|
|
@@ -30,7 +29,7 @@ async function getEmailConfig(options) {
|
|
|
30
29
|
/**
|
|
31
30
|
* @deprecated
|
|
32
31
|
*
|
|
33
|
-
*
|
|
32
|
+
* Patches the email configuration for the tenant. This endpoint is deprecated, use `PUT /transports/email-config` to replace the entire configuration instead.
|
|
34
33
|
*
|
|
35
34
|
* @param body an object with the body content
|
|
36
35
|
* @throws PatchEmailConfigHttpError
|
|
@@ -45,6 +44,21 @@ async function patchEmailConfig(body, options) {
|
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
46
|
/**
|
|
47
|
+
* Creates or replaces the email configuration for the tenant. Validation of the configuration is done as part of the request.
|
|
48
|
+
*
|
|
49
|
+
* @param body an object with the body content
|
|
50
|
+
* @throws UpdateEmailConfigHttpError
|
|
51
|
+
*/
|
|
52
|
+
async function updateEmailConfig(body, options) {
|
|
53
|
+
return invokeFetch("transports", {
|
|
54
|
+
method: "put",
|
|
55
|
+
pathTemplate: "/api/v1/transports/email-config",
|
|
56
|
+
body,
|
|
57
|
+
contentType: "application/json",
|
|
58
|
+
options
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
48
62
|
* Attempts to sends a test email using the active configuration, with the supplied email info (subject, body, recipient).
|
|
49
63
|
*
|
|
50
64
|
* @param body an object with the body content
|
|
@@ -96,6 +110,7 @@ const transportsExport = {
|
|
|
96
110
|
deleteEmailConfig,
|
|
97
111
|
getEmailConfig,
|
|
98
112
|
patchEmailConfig,
|
|
113
|
+
updateEmailConfig,
|
|
99
114
|
sendTestEmail,
|
|
100
115
|
validateEmailConfig,
|
|
101
116
|
verifyEmailConfigConnection,
|
|
@@ -104,4 +119,4 @@ const transportsExport = {
|
|
|
104
119
|
var transports_default = transportsExport;
|
|
105
120
|
|
|
106
121
|
//#endregion
|
|
107
|
-
export { clearCache, transports_default as default, deleteEmailConfig, getEmailConfig, patchEmailConfig, sendTestEmail, validateEmailConfig, verifyEmailConfigConnection };
|
|
122
|
+
export { clearCache, transports_default as default, deleteEmailConfig, getEmailConfig, patchEmailConfig, sendTestEmail, updateEmailConfig, validateEmailConfig, verifyEmailConfigConnection };
|