Skip to content

Commit c5c0f56

Browse files
committed
add-unread-all
1 parent 15e0368 commit c5c0f56

File tree

1,084 files changed

+155409
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,084 files changed

+155409
-201
lines changed

dist/generated/apis/DomainControllerApi.d.ts

+43-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Do not edit the class manually.
1111
*/
1212
import * as runtime from '../runtime';
13-
import { CreateDomainOptions, DomainDto, DomainIssuesDto, DomainPreview, InboxDto, UpdateDomainOptions } from '../models';
13+
import { CreateDomainOptions, DomainDto, DomainGroupsDto, DomainIssuesDto, DomainPreview, InboxDto, UpdateDomainOptions } from '../models';
1414
export interface AddDomainWildcardCatchAllRequest {
1515
id: string;
1616
}
@@ -20,13 +20,19 @@ export interface CreateDomainRequest {
2020
export interface DeleteDomainRequest {
2121
id: string;
2222
}
23+
export interface GetAvailableDomainsRequest {
24+
inboxType?: GetAvailableDomainsInboxTypeEnum;
25+
}
2326
export interface GetDomainRequest {
2427
id: string;
2528
checkForErrors?: boolean;
2629
}
2730
export interface GetDomainWildcardCatchAllInboxRequest {
2831
id: string;
2932
}
33+
export interface GetMailSlurpDomainsRequest {
34+
inboxType?: GetMailSlurpDomainsInboxTypeEnum;
35+
}
3036
export interface UpdateDomainRequest {
3137
id: string;
3238
updateDomainOptions: UpdateDomainOptions;
@@ -65,6 +71,16 @@ export declare class DomainControllerApi extends runtime.BaseAPI {
6571
* Delete a domain
6672
*/
6773
deleteDomain(requestParameters: DeleteDomainRequest, initOverrides?: RequestInit): Promise<Array<string>>;
74+
/**
75+
* List all domains available for use with email address creation
76+
* Get all usable domains
77+
*/
78+
getAvailableDomainsRaw(requestParameters: GetAvailableDomainsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<DomainGroupsDto>>;
79+
/**
80+
* List all domains available for use with email address creation
81+
* Get all usable domains
82+
*/
83+
getAvailableDomains(requestParameters: GetAvailableDomainsRequest, initOverrides?: RequestInit): Promise<DomainGroupsDto>;
6884
/**
6985
* Returns domain verification status and tokens for a given domain
7086
* Get a domain
@@ -105,6 +121,16 @@ export declare class DomainControllerApi extends runtime.BaseAPI {
105121
* Get domains
106122
*/
107123
getDomains(initOverrides?: RequestInit): Promise<Array<DomainPreview>>;
124+
/**
125+
* List all MailSlurp domains used with non-custom email addresses
126+
* Get MailSlurp domains
127+
*/
128+
getMailSlurpDomainsRaw(requestParameters: GetMailSlurpDomainsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<DomainGroupsDto>>;
129+
/**
130+
* List all MailSlurp domains used with non-custom email addresses
131+
* Get MailSlurp domains
132+
*/
133+
getMailSlurpDomains(requestParameters: GetMailSlurpDomainsRequest, initOverrides?: RequestInit): Promise<DomainGroupsDto>;
108134
/**
109135
* Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this.
110136
* Update a domain
@@ -116,3 +142,19 @@ export declare class DomainControllerApi extends runtime.BaseAPI {
116142
*/
117143
updateDomain(requestParameters: UpdateDomainRequest, initOverrides?: RequestInit): Promise<DomainDto>;
118144
}
145+
/**
146+
* @export
147+
* @enum {string}
148+
*/
149+
export declare enum GetAvailableDomainsInboxTypeEnum {
150+
HTTP_INBOX = "HTTP_INBOX",
151+
SMTP_INBOX = "SMTP_INBOX"
152+
}
153+
/**
154+
* @export
155+
* @enum {string}
156+
*/
157+
export declare enum GetMailSlurpDomainsInboxTypeEnum {
158+
HTTP_INBOX = "HTTP_INBOX",
159+
SMTP_INBOX = "SMTP_INBOX"
160+
}

dist/generated/apis/DomainControllerApi.js

+121-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
8787
}
8888
};
8989
Object.defineProperty(exports, "__esModule", { value: true });
90-
exports.DomainControllerApi = void 0;
90+
exports.GetMailSlurpDomainsInboxTypeEnum = exports.GetAvailableDomainsInboxTypeEnum = exports.DomainControllerApi = void 0;
9191
var runtime = __importStar(require("../runtime"));
9292
var models_1 = require("../models");
9393
/**
@@ -252,6 +252,57 @@ var DomainControllerApi = /** @class */ (function (_super) {
252252
});
253253
});
254254
};
255+
/**
256+
* List all domains available for use with email address creation
257+
* Get all usable domains
258+
*/
259+
DomainControllerApi.prototype.getAvailableDomainsRaw = function (requestParameters, initOverrides) {
260+
return __awaiter(this, void 0, void 0, function () {
261+
var queryParameters, headerParameters, response;
262+
return __generator(this, function (_a) {
263+
switch (_a.label) {
264+
case 0:
265+
queryParameters = {};
266+
if (requestParameters.inboxType !== undefined) {
267+
queryParameters['inboxType'] = requestParameters.inboxType;
268+
}
269+
headerParameters = {};
270+
if (this.configuration && this.configuration.apiKey) {
271+
headerParameters['x-api-key'] = this.configuration.apiKey('x-api-key'); // API_KEY authentication
272+
}
273+
return [4 /*yield*/, this.request({
274+
path: "/domains/available-domains",
275+
method: 'GET',
276+
headers: headerParameters,
277+
query: queryParameters,
278+
}, initOverrides)];
279+
case 1:
280+
response = _a.sent();
281+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) {
282+
return (0, models_1.DomainGroupsDtoFromJSON)(jsonValue);
283+
})];
284+
}
285+
});
286+
});
287+
};
288+
/**
289+
* List all domains available for use with email address creation
290+
* Get all usable domains
291+
*/
292+
DomainControllerApi.prototype.getAvailableDomains = function (requestParameters, initOverrides) {
293+
return __awaiter(this, void 0, void 0, function () {
294+
var response;
295+
return __generator(this, function (_a) {
296+
switch (_a.label) {
297+
case 0: return [4 /*yield*/, this.getAvailableDomainsRaw(requestParameters, initOverrides)];
298+
case 1:
299+
response = _a.sent();
300+
return [4 /*yield*/, response.value()];
301+
case 2: return [2 /*return*/, _a.sent()];
302+
}
303+
});
304+
});
305+
};
255306
/**
256307
* Returns domain verification status and tokens for a given domain
257308
* Get a domain
@@ -453,6 +504,57 @@ var DomainControllerApi = /** @class */ (function (_super) {
453504
});
454505
});
455506
};
507+
/**
508+
* List all MailSlurp domains used with non-custom email addresses
509+
* Get MailSlurp domains
510+
*/
511+
DomainControllerApi.prototype.getMailSlurpDomainsRaw = function (requestParameters, initOverrides) {
512+
return __awaiter(this, void 0, void 0, function () {
513+
var queryParameters, headerParameters, response;
514+
return __generator(this, function (_a) {
515+
switch (_a.label) {
516+
case 0:
517+
queryParameters = {};
518+
if (requestParameters.inboxType !== undefined) {
519+
queryParameters['inboxType'] = requestParameters.inboxType;
520+
}
521+
headerParameters = {};
522+
if (this.configuration && this.configuration.apiKey) {
523+
headerParameters['x-api-key'] = this.configuration.apiKey('x-api-key'); // API_KEY authentication
524+
}
525+
return [4 /*yield*/, this.request({
526+
path: "/domains/mailslurp-domains",
527+
method: 'GET',
528+
headers: headerParameters,
529+
query: queryParameters,
530+
}, initOverrides)];
531+
case 1:
532+
response = _a.sent();
533+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) {
534+
return (0, models_1.DomainGroupsDtoFromJSON)(jsonValue);
535+
})];
536+
}
537+
});
538+
});
539+
};
540+
/**
541+
* List all MailSlurp domains used with non-custom email addresses
542+
* Get MailSlurp domains
543+
*/
544+
DomainControllerApi.prototype.getMailSlurpDomains = function (requestParameters, initOverrides) {
545+
return __awaiter(this, void 0, void 0, function () {
546+
var response;
547+
return __generator(this, function (_a) {
548+
switch (_a.label) {
549+
case 0: return [4 /*yield*/, this.getMailSlurpDomainsRaw(requestParameters, initOverrides)];
550+
case 1:
551+
response = _a.sent();
552+
return [4 /*yield*/, response.value()];
553+
case 2: return [2 /*return*/, _a.sent()];
554+
}
555+
});
556+
});
557+
};
456558
/**
457559
* Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this.
458560
* Update a domain
@@ -513,3 +615,21 @@ var DomainControllerApi = /** @class */ (function (_super) {
513615
return DomainControllerApi;
514616
}(runtime.BaseAPI));
515617
exports.DomainControllerApi = DomainControllerApi;
618+
/**
619+
* @export
620+
* @enum {string}
621+
*/
622+
var GetAvailableDomainsInboxTypeEnum;
623+
(function (GetAvailableDomainsInboxTypeEnum) {
624+
GetAvailableDomainsInboxTypeEnum["HTTP_INBOX"] = "HTTP_INBOX";
625+
GetAvailableDomainsInboxTypeEnum["SMTP_INBOX"] = "SMTP_INBOX";
626+
})(GetAvailableDomainsInboxTypeEnum = exports.GetAvailableDomainsInboxTypeEnum || (exports.GetAvailableDomainsInboxTypeEnum = {}));
627+
/**
628+
* @export
629+
* @enum {string}
630+
*/
631+
var GetMailSlurpDomainsInboxTypeEnum;
632+
(function (GetMailSlurpDomainsInboxTypeEnum) {
633+
GetMailSlurpDomainsInboxTypeEnum["HTTP_INBOX"] = "HTTP_INBOX";
634+
GetMailSlurpDomainsInboxTypeEnum["SMTP_INBOX"] = "SMTP_INBOX";
635+
})(GetMailSlurpDomainsInboxTypeEnum = exports.GetMailSlurpDomainsInboxTypeEnum || (exports.GetMailSlurpDomainsInboxTypeEnum = {}));

dist/generated/apis/EmailControllerApi.d.ts

+21-4
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ export interface GetRawEmailContentsRequest {
148148
export interface GetRawEmailJsonRequest {
149149
emailId: string;
150150
}
151+
export interface GetUnreadEmailCountRequest {
152+
inboxId?: string;
153+
}
154+
export interface MarkAllAsReadRequest {
155+
read?: boolean;
156+
inboxId?: string;
157+
}
151158
export interface MarkAsReadRequest {
152159
emailId: string;
153160
read?: boolean;
@@ -512,20 +519,30 @@ export declare class EmailControllerApi extends runtime.BaseAPI {
512519
* Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response
513520
* Get unread email count
514521
*/
515-
getUnreadEmailCountRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<UnreadCount>>;
522+
getUnreadEmailCountRaw(requestParameters: GetUnreadEmailCountRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<UnreadCount>>;
516523
/**
517524
* Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response
518525
* Get unread email count
519526
*/
520-
getUnreadEmailCount(initOverrides?: RequestInit): Promise<UnreadCount>;
527+
getUnreadEmailCount(requestParameters: GetUnreadEmailCountRequest, initOverrides?: RequestInit): Promise<UnreadCount>;
528+
/**
529+
* Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
530+
* Mark all emails as read or unread
531+
*/
532+
markAllAsReadRaw(requestParameters: MarkAllAsReadRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
533+
/**
534+
* Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
535+
* Mark all emails as read or unread
536+
*/
537+
markAllAsRead(requestParameters: MarkAllAsReadRequest, initOverrides?: RequestInit): Promise<void>;
521538
/**
522539
* Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
523-
* Mark an email as read on unread
540+
* Mark an email as read or unread
524541
*/
525542
markAsReadRaw(requestParameters: MarkAsReadRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<EmailPreview>>;
526543
/**
527544
* Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
528-
* Mark an email as read on unread
545+
* Mark an email as read or unread
529546
*/
530547
markAsRead(requestParameters: MarkAsReadRequest, initOverrides?: RequestInit): Promise<EmailPreview>;
531548
/**

dist/generated/apis/EmailControllerApi.js

+58-5
Original file line numberDiff line numberDiff line change
@@ -2000,13 +2000,16 @@ var EmailControllerApi = /** @class */ (function (_super) {
20002000
* Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response
20012001
* Get unread email count
20022002
*/
2003-
EmailControllerApi.prototype.getUnreadEmailCountRaw = function (initOverrides) {
2003+
EmailControllerApi.prototype.getUnreadEmailCountRaw = function (requestParameters, initOverrides) {
20042004
return __awaiter(this, void 0, void 0, function () {
20052005
var queryParameters, headerParameters, response;
20062006
return __generator(this, function (_a) {
20072007
switch (_a.label) {
20082008
case 0:
20092009
queryParameters = {};
2010+
if (requestParameters.inboxId !== undefined) {
2011+
queryParameters['inboxId'] = requestParameters.inboxId;
2012+
}
20102013
headerParameters = {};
20112014
if (this.configuration && this.configuration.apiKey) {
20122015
headerParameters['x-api-key'] = this.configuration.apiKey('x-api-key'); // API_KEY authentication
@@ -2030,12 +2033,12 @@ var EmailControllerApi = /** @class */ (function (_super) {
20302033
* Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response
20312034
* Get unread email count
20322035
*/
2033-
EmailControllerApi.prototype.getUnreadEmailCount = function (initOverrides) {
2036+
EmailControllerApi.prototype.getUnreadEmailCount = function (requestParameters, initOverrides) {
20342037
return __awaiter(this, void 0, void 0, function () {
20352038
var response;
20362039
return __generator(this, function (_a) {
20372040
switch (_a.label) {
2038-
case 0: return [4 /*yield*/, this.getUnreadEmailCountRaw(initOverrides)];
2041+
case 0: return [4 /*yield*/, this.getUnreadEmailCountRaw(requestParameters, initOverrides)];
20392042
case 1:
20402043
response = _a.sent();
20412044
return [4 /*yield*/, response.value()];
@@ -2044,9 +2047,59 @@ var EmailControllerApi = /** @class */ (function (_super) {
20442047
});
20452048
});
20462049
};
2050+
/**
2051+
* Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
2052+
* Mark all emails as read or unread
2053+
*/
2054+
EmailControllerApi.prototype.markAllAsReadRaw = function (requestParameters, initOverrides) {
2055+
return __awaiter(this, void 0, void 0, function () {
2056+
var queryParameters, headerParameters, response;
2057+
return __generator(this, function (_a) {
2058+
switch (_a.label) {
2059+
case 0:
2060+
queryParameters = {};
2061+
if (requestParameters.read !== undefined) {
2062+
queryParameters['read'] = requestParameters.read;
2063+
}
2064+
if (requestParameters.inboxId !== undefined) {
2065+
queryParameters['inboxId'] = requestParameters.inboxId;
2066+
}
2067+
headerParameters = {};
2068+
if (this.configuration && this.configuration.apiKey) {
2069+
headerParameters['x-api-key'] = this.configuration.apiKey('x-api-key'); // API_KEY authentication
2070+
}
2071+
return [4 /*yield*/, this.request({
2072+
path: "/emails/read",
2073+
method: 'PATCH',
2074+
headers: headerParameters,
2075+
query: queryParameters,
2076+
}, initOverrides)];
2077+
case 1:
2078+
response = _a.sent();
2079+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
2080+
}
2081+
});
2082+
});
2083+
};
2084+
/**
2085+
* Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
2086+
* Mark all emails as read or unread
2087+
*/
2088+
EmailControllerApi.prototype.markAllAsRead = function (requestParameters, initOverrides) {
2089+
return __awaiter(this, void 0, void 0, function () {
2090+
return __generator(this, function (_a) {
2091+
switch (_a.label) {
2092+
case 0: return [4 /*yield*/, this.markAllAsReadRaw(requestParameters, initOverrides)];
2093+
case 1:
2094+
_a.sent();
2095+
return [2 /*return*/];
2096+
}
2097+
});
2098+
});
2099+
};
20472100
/**
20482101
* Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
2049-
* Mark an email as read on unread
2102+
* Mark an email as read or unread
20502103
*/
20512104
EmailControllerApi.prototype.markAsReadRaw = function (requestParameters, initOverrides) {
20522105
return __awaiter(this, void 0, void 0, function () {
@@ -2083,7 +2136,7 @@ var EmailControllerApi = /** @class */ (function (_super) {
20832136
};
20842137
/**
20852138
* Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
2086-
* Mark an email as read on unread
2139+
* Mark an email as read or unread
20872140
*/
20882141
EmailControllerApi.prototype.markAsRead = function (requestParameters, initOverrides) {
20892142
return __awaiter(this, void 0, void 0, function () {

0 commit comments

Comments
 (0)