UNPKG

2.29 kBTypeScriptView Raw
1import { LinkTrackingOptions, ServerDeliveryTypes } from "../message/SupportingTypes";
2export interface Server {
3 ID: number;
4 Name: string;
5 ApiTokens: string[];
6 ServerLink: string;
7 Color: string;
8 SmtpApiActivated: boolean;
9 RawEmailEnabled: boolean;
10 DeliveryType: ServerDeliveryTypes;
11 InboundAddress: string;
12 InboundHookUrl?: string;
13 BounceHookUrl?: string;
14 OpenHookUrl?: string;
15 DeliveryHookUrl?: string;
16 ClickHookUrl?: string;
17 PostFirstOpenOnly: boolean;
18 InboundDomain?: string;
19 InboundHash: string;
20 InboundSpamThreshold: number;
21 TrackOpens?: boolean;
22 TrackLinks: LinkTrackingOptions;
23 IncludeBounceContentInHook: boolean;
24 EnableSmtpApiErrorHooks: boolean;
25}
26export declare class UpdateServerRequest {
27 Name?: string;
28 Color?: string;
29 SmtpApiActivated?: boolean;
30 RawEmailEnabled?: boolean;
31 InboundHookUrl?: string;
32 InboundDomain?: string;
33 BounceHookUrl?: string;
34 OpenHookUrl?: string;
35 DeliveryHookUrl?: string;
36 ClickHookUrl?: string;
37 PostFirstOpenOnly?: boolean;
38 InboundSpamThreshold?: number;
39 TrackOpens?: boolean;
40 TrackLinks?: LinkTrackingOptions;
41 IncludeBounceContentInHook?: boolean;
42 EnableSmtpApiErrorHooks?: boolean;
43 constructor(Name?: string, Color?: string, SmtpApiActivated?: boolean, RawEmailEnabled?: boolean, InboundHookUrl?: string, BounceHookUrl?: string, OpenHookUrl?: string, DeliveryHookUrl?: string, ClickHookUrl?: string, PostFirstOpenOnly?: boolean, InboundSpamThreshold?: number, TrackOpens?: boolean, TrackLinks?: LinkTrackingOptions, IncludeBounceContentInHook?: boolean, EnableSmtpApiErrorHooks?: boolean, InboundDomain?: string);
44}
45export declare class CreateServerRequest extends UpdateServerRequest {
46 DeliveryType?: ServerDeliveryTypes;
47 constructor(Name: string, Color?: string, SmtpApiActivated?: boolean, RawEmailEnabled?: boolean, InboundHookUrl?: string, BounceHookUrl?: string, OpenHookUrl?: string, DeliveryHookUrl?: string, ClickHookUrl?: string, PostFirstOpenOnly?: boolean, InboundSpamThreshold?: number, TrackOpens?: boolean, TrackLinks?: LinkTrackingOptions, IncludeBounceContentInHook?: boolean, EnableSmtpApiErrorHooks?: boolean, InboundDomain?: string, DeliveryType?: ServerDeliveryTypes);
48}