UNPKG

1.81 kBTypeScriptView Raw
1export declare enum UnsubscribeHandlingTypes {
2 None = "None",
3 Postmark = "Postmark",
4 Custom = "Custom"
5}
6export interface SubscriptionManagementConfiguration {
7 UnsubscribeHandlingType: UnsubscribeHandlingTypes;
8}
9export interface MessageStream {
10 ID: string;
11 ServerID: number;
12 Name: string;
13 Description: string;
14 MessageStreamType: string;
15 CreatedAt: string;
16 UpdatedAt?: string;
17 ArchivedAt?: string;
18 ExpectedPurgeDate?: string;
19 SubscriptionManagementConfiguration: SubscriptionManagementConfiguration;
20}
21export interface MessageStreams {
22 MessageStreams: MessageStream[];
23 TotalCount: number;
24}
25export interface MessageStreamArchiveResponse {
26 ID: number;
27 ServerID: number;
28 ExpectedPurgeDate: string;
29}
30export interface MessageStreamUnarchiveResponse {
31 ID: string;
32 ServerID: number;
33 Name: string;
34 Description: string;
35 MessageStreamType: string;
36 CreatedAt: string;
37 UpdatedAt?: string;
38 ArchivedAt?: null;
39 ExpectedPurgeDate?: string;
40 SubscriptionManagementConfiguration: SubscriptionManagementConfiguration;
41}
42export declare class UpdateMessageStreamRequest {
43 Name?: string;
44 Description?: string;
45 SubscriptionManagementConfiguration?: SubscriptionManagementConfiguration;
46 constructor(name?: string, description?: string, subscriptionManagementConfiguration?: SubscriptionManagementConfiguration);
47}
48export declare class CreateMessageStreamRequest {
49 ID: string;
50 Name: string;
51 MessageStreamType: string;
52 Description?: string;
53 SubscriptionManagementConfiguration?: SubscriptionManagementConfiguration;
54 constructor(id: string, name: string, messageStreamType: string, description?: string, subscriptionManagementConfiguration?: SubscriptionManagementConfiguration);
55}