Update docs and sdk for schedule
This commit is contained in:
48
packages/sdk/types/schema.d.ts
vendored
48
packages/sdk/types/schema.d.ts
vendored
@@ -73,7 +73,7 @@ export interface paths {
|
||||
emailEvents: ({
|
||||
emailId: string;
|
||||
/** @enum {string} */
|
||||
status: "QUEUED" | "SENT" | "DELIVERY_DELAYED" | "BOUNCED" | "REJECTED" | "RENDERING_FAILURE" | "DELIVERED" | "OPENED" | "CLICKED" | "COMPLAINED" | "FAILED";
|
||||
status: "SCHEDULED" | "QUEUED" | "SENT" | "DELIVERY_DELAYED" | "BOUNCED" | "REJECTED" | "RENDERING_FAILURE" | "DELIVERED" | "OPENED" | "CLICKED" | "COMPLAINED" | "FAILED" | "CANCELLED";
|
||||
createdAt: string;
|
||||
data?: unknown;
|
||||
})[];
|
||||
@@ -82,6 +82,31 @@ export interface paths {
|
||||
};
|
||||
};
|
||||
};
|
||||
patch: {
|
||||
parameters: {
|
||||
path: {
|
||||
emailId: string;
|
||||
};
|
||||
};
|
||||
requestBody: {
|
||||
content: {
|
||||
"application/json": {
|
||||
/** Format: date-time */
|
||||
scheduledAt: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description Retrieve the user */
|
||||
200: {
|
||||
content: {
|
||||
"application/json": {
|
||||
emailId?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
"/v1/emails": {
|
||||
post: {
|
||||
@@ -100,6 +125,8 @@ export interface paths {
|
||||
filename: string;
|
||||
content: string;
|
||||
}[];
|
||||
/** Format: date-time */
|
||||
scheduledAt?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -115,6 +142,25 @@ export interface paths {
|
||||
};
|
||||
};
|
||||
};
|
||||
"/v1/emails/{emailId}/cancel": {
|
||||
post: {
|
||||
parameters: {
|
||||
path: {
|
||||
emailId: string;
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description Retrieve the user */
|
||||
200: {
|
||||
content: {
|
||||
"application/json": {
|
||||
emailId?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
"/v1/contactBooks/{contactBookId}/contacts": {
|
||||
post: {
|
||||
parameters: {
|
||||
|
Reference in New Issue
Block a user