@hostinger/mail-sdk 1.19.4 → 1.19.6
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/README.md +2 -2
- package/api.ts +206 -67
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +149 -67
- package/dist/api.js +144 -30
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +149 -67
- package/dist/esm/api.js +139 -29
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/FeedbackApi.md +70 -0
- package/docs/MessagesApi.md +7 -7
- package/docs/SendApi.md +1 -0
- package/docs/V1FeedbackSubmitRequest.md +23 -0
- package/docs/V1FolderMessagesFlagsBulkRequest.md +2 -2
- package/docs/V1FolderMessagesFlagsRequest.md +2 -2
- package/docs/V1FolderMessagesSearchRequest.md +14 -14
- package/docs/V1SendAttachment.md +2 -2
- package/docs/V1SendRequest.md +8 -8
- package/docs/V1WebhooksCreateRequest.md +5 -5
- package/docs/V1WebhooksUpdateRequest.md +5 -5
- package/docs/WebhooksApi.md +6 -6
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.2.2
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -19,7 +19,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.ListWebhooksStatusEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.SendApi = exports.SendApiFactory = exports.SendApiFp = exports.SendApiAxiosParamCreator = exports.QuotaApi = exports.QuotaApiFactory = exports.QuotaApiFp = exports.QuotaApiAxiosParamCreator = exports.MessagesApi = exports.MessagesApiFactory = exports.MessagesApiFp = exports.MessagesApiAxiosParamCreator = exports.FoldersApi = exports.FoldersApiFactory = exports.FoldersApiFp = exports.FoldersApiAxiosParamCreator = exports.AccountApi = exports.AccountApiFactory = exports.AccountApiFp = exports.AccountApiAxiosParamCreator = exports.V1WebhooksWebhookWithSecretStatusEnum = exports.V1WebhooksWebhookWithSecretEventsEnum = exports.V1WebhooksWebhookStatusEnum = exports.V1WebhooksWebhookEventsEnum = exports.V1WebhooksUpdateRequestStatusEnum = exports.V1WebhooksUpdateRequestEventsEnum = exports.V1WebhooksCreateRequestStatusEnum = exports.V1WebhooksCreateRequestEventsEnum = void 0;
|
|
22
|
+
exports.ListWebhooksStatusEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.SendApi = exports.SendApiFactory = exports.SendApiFp = exports.SendApiAxiosParamCreator = exports.QuotaApi = exports.QuotaApiFactory = exports.QuotaApiFp = exports.QuotaApiAxiosParamCreator = exports.MessagesApi = exports.MessagesApiFactory = exports.MessagesApiFp = exports.MessagesApiAxiosParamCreator = exports.FoldersApi = exports.FoldersApiFactory = exports.FoldersApiFp = exports.FoldersApiAxiosParamCreator = exports.FeedbackApi = exports.FeedbackApiFactory = exports.FeedbackApiFp = exports.FeedbackApiAxiosParamCreator = exports.AccountApi = exports.AccountApiFactory = exports.AccountApiFp = exports.AccountApiAxiosParamCreator = exports.V1WebhooksWebhookWithSecretStatusEnum = exports.V1WebhooksWebhookWithSecretEventsEnum = exports.V1WebhooksWebhookStatusEnum = exports.V1WebhooksWebhookEventsEnum = exports.V1WebhooksUpdateRequestStatusEnum = exports.V1WebhooksUpdateRequestEventsEnum = exports.V1WebhooksCreateRequestStatusEnum = exports.V1WebhooksCreateRequestEventsEnum = void 0;
|
|
23
23
|
const axios_1 = require("axios");
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
@@ -157,6 +157,120 @@ class AccountApi extends base_1.BaseAPI {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
exports.AccountApi = AccountApi;
|
|
160
|
+
/**
|
|
161
|
+
* FeedbackApi - axios parameter creator
|
|
162
|
+
* @export
|
|
163
|
+
*/
|
|
164
|
+
const FeedbackApiAxiosParamCreator = function (configuration) {
|
|
165
|
+
return {
|
|
166
|
+
/**
|
|
167
|
+
* Send the user\'s feedback about the Hostinger Email API to the Hostinger mail team. Only call this when the user explicitly asks to send feedback, report a problem, or request a feature. Send the user\'s own words; never include tokens, passwords or email contents. The message is capped at 2000 characters. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
|
|
168
|
+
* @summary Submit feedback
|
|
169
|
+
* @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
|
|
170
|
+
* @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
|
|
171
|
+
* @param {*} [options] Override http request option.
|
|
172
|
+
* @throws {RequiredError}
|
|
173
|
+
*/
|
|
174
|
+
submitFeedback: (mailboxResourceId_1, v1FeedbackSubmitRequest_1, ...args_1) => __awaiter(this, [mailboxResourceId_1, v1FeedbackSubmitRequest_1, ...args_1], void 0, function* (mailboxResourceId, v1FeedbackSubmitRequest, options = {}) {
|
|
175
|
+
// verify required parameter 'mailboxResourceId' is not null or undefined
|
|
176
|
+
(0, common_1.assertParamExists)('submitFeedback', 'mailboxResourceId', mailboxResourceId);
|
|
177
|
+
// verify required parameter 'v1FeedbackSubmitRequest' is not null or undefined
|
|
178
|
+
(0, common_1.assertParamExists)('submitFeedback', 'v1FeedbackSubmitRequest', v1FeedbackSubmitRequest);
|
|
179
|
+
const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/feedback`
|
|
180
|
+
.replace(`{${"mailboxResourceId"}}`, encodeURIComponent(String(mailboxResourceId)));
|
|
181
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
182
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
183
|
+
let baseOptions;
|
|
184
|
+
if (configuration) {
|
|
185
|
+
baseOptions = configuration.baseOptions;
|
|
186
|
+
}
|
|
187
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
188
|
+
const localVarHeaderParameter = {};
|
|
189
|
+
const localVarQueryParameter = {};
|
|
190
|
+
// authentication BearerAuth required
|
|
191
|
+
// http bearer authentication required
|
|
192
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
193
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
194
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
196
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
197
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v1FeedbackSubmitRequest, localVarRequestOptions, configuration);
|
|
198
|
+
return {
|
|
199
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
};
|
|
202
|
+
}),
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
exports.FeedbackApiAxiosParamCreator = FeedbackApiAxiosParamCreator;
|
|
206
|
+
/**
|
|
207
|
+
* FeedbackApi - functional programming interface
|
|
208
|
+
* @export
|
|
209
|
+
*/
|
|
210
|
+
const FeedbackApiFp = function (configuration) {
|
|
211
|
+
const localVarAxiosParamCreator = (0, exports.FeedbackApiAxiosParamCreator)(configuration);
|
|
212
|
+
return {
|
|
213
|
+
/**
|
|
214
|
+
* Send the user\'s feedback about the Hostinger Email API to the Hostinger mail team. Only call this when the user explicitly asks to send feedback, report a problem, or request a feature. Send the user\'s own words; never include tokens, passwords or email contents. The message is capped at 2000 characters. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
|
|
215
|
+
* @summary Submit feedback
|
|
216
|
+
* @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
|
|
217
|
+
* @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
var _a, _b;
|
|
224
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options);
|
|
225
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FeedbackApi.submitFeedback']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
226
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
227
|
+
});
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
exports.FeedbackApiFp = FeedbackApiFp;
|
|
232
|
+
/**
|
|
233
|
+
* FeedbackApi - factory interface
|
|
234
|
+
* @export
|
|
235
|
+
*/
|
|
236
|
+
const FeedbackApiFactory = function (configuration, basePath, axios) {
|
|
237
|
+
const localVarFp = (0, exports.FeedbackApiFp)(configuration);
|
|
238
|
+
return {
|
|
239
|
+
/**
|
|
240
|
+
* Send the user\'s feedback about the Hostinger Email API to the Hostinger mail team. Only call this when the user explicitly asks to send feedback, report a problem, or request a feature. Send the user\'s own words; never include tokens, passwords or email contents. The message is capped at 2000 characters. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
|
|
241
|
+
* @summary Submit feedback
|
|
242
|
+
* @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
|
|
243
|
+
* @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options) {
|
|
248
|
+
return localVarFp.submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options).then((request) => request(axios, basePath));
|
|
249
|
+
},
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
exports.FeedbackApiFactory = FeedbackApiFactory;
|
|
253
|
+
/**
|
|
254
|
+
* FeedbackApi - object-oriented interface
|
|
255
|
+
* @export
|
|
256
|
+
* @class FeedbackApi
|
|
257
|
+
* @extends {BaseAPI}
|
|
258
|
+
*/
|
|
259
|
+
class FeedbackApi extends base_1.BaseAPI {
|
|
260
|
+
/**
|
|
261
|
+
* Send the user\'s feedback about the Hostinger Email API to the Hostinger mail team. Only call this when the user explicitly asks to send feedback, report a problem, or request a feature. Send the user\'s own words; never include tokens, passwords or email contents. The message is capped at 2000 characters. A `429` (`ERR_FEEDBACK_RATE_LIMIT`) means feedback for this customer was submitted less than ten seconds ago; wait and retry.
|
|
262
|
+
* @summary Submit feedback
|
|
263
|
+
* @param {string} mailboxResourceId Resource ID of the managed mailbox the feedback is about, as returned by `GET /api/v1/me`.
|
|
264
|
+
* @param {V1FeedbackSubmitRequest} v1FeedbackSubmitRequest
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
* @memberof FeedbackApi
|
|
268
|
+
*/
|
|
269
|
+
submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options) {
|
|
270
|
+
return (0, exports.FeedbackApiFp)(this.configuration).submitFeedback(mailboxResourceId, v1FeedbackSubmitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
exports.FeedbackApi = FeedbackApi;
|
|
160
274
|
/**
|
|
161
275
|
* FoldersApi - axios parameter creator
|
|
162
276
|
* @export
|
|
@@ -982,9 +1096,9 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
982
1096
|
* @summary Search messages
|
|
983
1097
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
984
1098
|
* @param {string} folder Folder path (URL-encoded).
|
|
985
|
-
* @param {number} [page]
|
|
986
|
-
* @param {number} [perPage]
|
|
987
|
-
* @param {string} [sort]
|
|
1099
|
+
* @param {number} [page] Page number (1-based).
|
|
1100
|
+
* @param {number} [perPage] Items per page (max 100).
|
|
1101
|
+
* @param {string} [sort] Sort field with optional `-` prefix for descending. Allowed: uid, date, size.
|
|
988
1102
|
* @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
|
|
989
1103
|
* @param {*} [options] Override http request option.
|
|
990
1104
|
* @throws {RequiredError}
|
|
@@ -1030,7 +1144,7 @@ const MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
1030
1144
|
}),
|
|
1031
1145
|
/**
|
|
1032
1146
|
* Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
|
|
1033
|
-
* @summary Update
|
|
1147
|
+
* @summary Update flags on multiple messages
|
|
1034
1148
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1035
1149
|
* @param {string} folder Folder path (URL-encoded).
|
|
1036
1150
|
* @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
|
|
@@ -1275,9 +1389,9 @@ const MessagesApiFp = function (configuration) {
|
|
|
1275
1389
|
* @summary Search messages
|
|
1276
1390
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1277
1391
|
* @param {string} folder Folder path (URL-encoded).
|
|
1278
|
-
* @param {number} [page]
|
|
1279
|
-
* @param {number} [perPage]
|
|
1280
|
-
* @param {string} [sort]
|
|
1392
|
+
* @param {number} [page] Page number (1-based).
|
|
1393
|
+
* @param {number} [perPage] Items per page (max 100).
|
|
1394
|
+
* @param {string} [sort] Sort field with optional `-` prefix for descending. Allowed: uid, date, size.
|
|
1281
1395
|
* @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
|
|
1282
1396
|
* @param {*} [options] Override http request option.
|
|
1283
1397
|
* @throws {RequiredError}
|
|
@@ -1292,7 +1406,7 @@ const MessagesApiFp = function (configuration) {
|
|
|
1292
1406
|
},
|
|
1293
1407
|
/**
|
|
1294
1408
|
* Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
|
|
1295
|
-
* @summary Update
|
|
1409
|
+
* @summary Update flags on multiple messages
|
|
1296
1410
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1297
1411
|
* @param {string} folder Folder path (URL-encoded).
|
|
1298
1412
|
* @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
|
|
@@ -1458,9 +1572,9 @@ const MessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
1458
1572
|
* @summary Search messages
|
|
1459
1573
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1460
1574
|
* @param {string} folder Folder path (URL-encoded).
|
|
1461
|
-
* @param {number} [page]
|
|
1462
|
-
* @param {number} [perPage]
|
|
1463
|
-
* @param {string} [sort]
|
|
1575
|
+
* @param {number} [page] Page number (1-based).
|
|
1576
|
+
* @param {number} [perPage] Items per page (max 100).
|
|
1577
|
+
* @param {string} [sort] Sort field with optional `-` prefix for descending. Allowed: uid, date, size.
|
|
1464
1578
|
* @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
|
|
1465
1579
|
* @param {*} [options] Override http request option.
|
|
1466
1580
|
* @throws {RequiredError}
|
|
@@ -1470,7 +1584,7 @@ const MessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
1470
1584
|
},
|
|
1471
1585
|
/**
|
|
1472
1586
|
* Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
|
|
1473
|
-
* @summary Update
|
|
1587
|
+
* @summary Update flags on multiple messages
|
|
1474
1588
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1475
1589
|
* @param {string} folder Folder path (URL-encoded).
|
|
1476
1590
|
* @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
|
|
@@ -1642,9 +1756,9 @@ class MessagesApi extends base_1.BaseAPI {
|
|
|
1642
1756
|
* @summary Search messages
|
|
1643
1757
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1644
1758
|
* @param {string} folder Folder path (URL-encoded).
|
|
1645
|
-
* @param {number} [page]
|
|
1646
|
-
* @param {number} [perPage]
|
|
1647
|
-
* @param {string} [sort]
|
|
1759
|
+
* @param {number} [page] Page number (1-based).
|
|
1760
|
+
* @param {number} [perPage] Items per page (max 100).
|
|
1761
|
+
* @param {string} [sort] Sort field with optional `-` prefix for descending. Allowed: uid, date, size.
|
|
1648
1762
|
* @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
|
|
1649
1763
|
* @param {*} [options] Override http request option.
|
|
1650
1764
|
* @throws {RequiredError}
|
|
@@ -1655,7 +1769,7 @@ class MessagesApi extends base_1.BaseAPI {
|
|
|
1655
1769
|
}
|
|
1656
1770
|
/**
|
|
1657
1771
|
* Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
|
|
1658
|
-
* @summary Update
|
|
1772
|
+
* @summary Update flags on multiple messages
|
|
1659
1773
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
1660
1774
|
* @param {string} folder Folder path (URL-encoded).
|
|
1661
1775
|
* @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
|
|
@@ -2007,9 +2121,9 @@ const WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
2007
2121
|
* List webhooks for a mailbox.
|
|
2008
2122
|
* @summary List webhooks
|
|
2009
2123
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2010
|
-
* @param {ListWebhooksStatusEnum} [status]
|
|
2011
|
-
* @param {number} [page]
|
|
2012
|
-
* @param {number} [perPage]
|
|
2124
|
+
* @param {ListWebhooksStatusEnum} [status] Return only webhooks with this status.
|
|
2125
|
+
* @param {number} [page] Page number (1-based).
|
|
2126
|
+
* @param {number} [perPage] Items per page (max 1000).
|
|
2013
2127
|
* @param {*} [options] Override http request option.
|
|
2014
2128
|
* @throws {RequiredError}
|
|
2015
2129
|
*/
|
|
@@ -2222,9 +2336,9 @@ const WebhooksApiFp = function (configuration) {
|
|
|
2222
2336
|
* List webhooks for a mailbox.
|
|
2223
2337
|
* @summary List webhooks
|
|
2224
2338
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2225
|
-
* @param {ListWebhooksStatusEnum} [status]
|
|
2226
|
-
* @param {number} [page]
|
|
2227
|
-
* @param {number} [perPage]
|
|
2339
|
+
* @param {ListWebhooksStatusEnum} [status] Return only webhooks with this status.
|
|
2340
|
+
* @param {number} [page] Page number (1-based).
|
|
2341
|
+
* @param {number} [perPage] Items per page (max 1000).
|
|
2228
2342
|
* @param {*} [options] Override http request option.
|
|
2229
2343
|
* @throws {RequiredError}
|
|
2230
2344
|
*/
|
|
@@ -2332,9 +2446,9 @@ const WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
2332
2446
|
* List webhooks for a mailbox.
|
|
2333
2447
|
* @summary List webhooks
|
|
2334
2448
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2335
|
-
* @param {ListWebhooksStatusEnum} [status]
|
|
2336
|
-
* @param {number} [page]
|
|
2337
|
-
* @param {number} [perPage]
|
|
2449
|
+
* @param {ListWebhooksStatusEnum} [status] Return only webhooks with this status.
|
|
2450
|
+
* @param {number} [page] Page number (1-based).
|
|
2451
|
+
* @param {number} [perPage] Items per page (max 1000).
|
|
2338
2452
|
* @param {*} [options] Override http request option.
|
|
2339
2453
|
* @throws {RequiredError}
|
|
2340
2454
|
*/
|
|
@@ -2425,9 +2539,9 @@ class WebhooksApi extends base_1.BaseAPI {
|
|
|
2425
2539
|
* List webhooks for a mailbox.
|
|
2426
2540
|
* @summary List webhooks
|
|
2427
2541
|
* @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
|
|
2428
|
-
* @param {ListWebhooksStatusEnum} [status]
|
|
2429
|
-
* @param {number} [page]
|
|
2430
|
-
* @param {number} [perPage]
|
|
2542
|
+
* @param {ListWebhooksStatusEnum} [status] Return only webhooks with this status.
|
|
2543
|
+
* @param {number} [page] Page number (1-based).
|
|
2544
|
+
* @param {number} [perPage] Items per page (max 1000).
|
|
2431
2545
|
* @param {*} [options] Override http request option.
|
|
2432
2546
|
* @throws {RequiredError}
|
|
2433
2547
|
* @memberof WebhooksApi
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.2.2
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.2.2
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger Mail API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.2.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger Mail API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.2.2
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.19.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-mail-typescript-sdk/1.19.6" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|