shipmail 0.4.18 → 0.4.20
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/dist/index.cjs +16 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -735,6 +735,16 @@ type MailboxImport = {
|
|
|
735
735
|
readonly started_at: string | null;
|
|
736
736
|
readonly completed_at: string | null;
|
|
737
737
|
readonly folders?: readonly MailboxImportFolder[] | undefined;
|
|
738
|
+
readonly source_retention?: MailboxImportSourceRetention | undefined;
|
|
739
|
+
};
|
|
740
|
+
type MailboxImportSourceRetentionState = "available" | "missing" | "expired" | "deleted" | "not_applicable";
|
|
741
|
+
type MailboxImportSourceRetention = {
|
|
742
|
+
readonly state: MailboxImportSourceRetentionState;
|
|
743
|
+
readonly expires_at: string | null;
|
|
744
|
+
readonly deleted_at: string | null;
|
|
745
|
+
};
|
|
746
|
+
type RestoreMailboxImportParams = {
|
|
747
|
+
readonly file_ids: readonly string[];
|
|
738
748
|
};
|
|
739
749
|
type MailboxImports = {
|
|
740
750
|
readonly object: "imports";
|
|
@@ -765,8 +775,10 @@ type CreateMailboxImportParams = {
|
|
|
765
775
|
readonly options?: MailboxImportOptions | undefined;
|
|
766
776
|
};
|
|
767
777
|
type CreateImportUploadParams = {
|
|
778
|
+
readonly provider: MailboxImportFileProvider;
|
|
768
779
|
readonly file_name: string;
|
|
769
780
|
readonly size_bytes: number;
|
|
781
|
+
readonly source_fingerprint: string;
|
|
770
782
|
};
|
|
771
783
|
type ImportUploadPart = {
|
|
772
784
|
readonly part_number: number;
|
|
@@ -776,6 +788,7 @@ type ImportUpload = {
|
|
|
776
788
|
readonly object: "import_upload";
|
|
777
789
|
readonly file_id: string;
|
|
778
790
|
readonly part_size_bytes: number;
|
|
791
|
+
readonly completed_parts: readonly CompleteImportUploadPart[];
|
|
779
792
|
readonly parts: readonly ImportUploadPart[];
|
|
780
793
|
readonly expires_in_seconds: number;
|
|
781
794
|
};
|
|
@@ -888,6 +901,7 @@ type SendMessageParams = {
|
|
|
888
901
|
readonly source_rfc_message_id?: string | undefined;
|
|
889
902
|
readonly headers?: readonly OutboundHeader[] | undefined;
|
|
890
903
|
readonly scheduled_at?: string | undefined;
|
|
904
|
+
readonly track_reply?: boolean | undefined;
|
|
891
905
|
readonly sandbox_outcome?: SandboxOutcome | undefined;
|
|
892
906
|
};
|
|
893
907
|
type ScheduledMessageRecipient = {
|
|
@@ -1001,6 +1015,7 @@ type ReplyToMessageParams = {
|
|
|
1001
1015
|
readonly source_rfc_message_id?: string | undefined;
|
|
1002
1016
|
readonly headers?: readonly OutboundHeader[] | undefined;
|
|
1003
1017
|
readonly scheduled_at?: string | undefined;
|
|
1018
|
+
readonly track_reply?: boolean | undefined;
|
|
1004
1019
|
readonly sandbox_outcome?: SandboxOutcome | undefined;
|
|
1005
1020
|
};
|
|
1006
1021
|
type InjectSandboxInboundParams = {
|
|
@@ -1482,6 +1497,8 @@ declare class Mailboxes extends ApiResource {
|
|
|
1482
1497
|
listImports(id: string, options?: MethodOptions): Promise<MailboxImports>;
|
|
1483
1498
|
getImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1484
1499
|
cancelImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1500
|
+
resumeImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1501
|
+
restoreImport(id: string, importId: string, params: RestoreMailboxImportParams, options?: MethodOptions): Promise<MailboxImport>;
|
|
1485
1502
|
undoImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1486
1503
|
createImportUpload(id: string, params: CreateImportUploadParams, options?: MethodOptions): Promise<ImportUpload>;
|
|
1487
1504
|
completeImportUpload(id: string, fileId: string, params: CompleteImportUploadParams, options?: MethodOptions): Promise<void>;
|
|
@@ -2098,6 +2115,7 @@ type ReplyToThreadParams = {
|
|
|
2098
2115
|
readonly text?: string | undefined;
|
|
2099
2116
|
readonly cc?: readonly EmailRecipientInput[] | undefined;
|
|
2100
2117
|
readonly scheduled_at?: string | undefined;
|
|
2118
|
+
readonly track_reply?: boolean | undefined;
|
|
2101
2119
|
readonly sandbox_outcome?: SandboxOutcome | undefined;
|
|
2102
2120
|
};
|
|
2103
2121
|
|
package/dist/index.d.ts
CHANGED
|
@@ -735,6 +735,16 @@ type MailboxImport = {
|
|
|
735
735
|
readonly started_at: string | null;
|
|
736
736
|
readonly completed_at: string | null;
|
|
737
737
|
readonly folders?: readonly MailboxImportFolder[] | undefined;
|
|
738
|
+
readonly source_retention?: MailboxImportSourceRetention | undefined;
|
|
739
|
+
};
|
|
740
|
+
type MailboxImportSourceRetentionState = "available" | "missing" | "expired" | "deleted" | "not_applicable";
|
|
741
|
+
type MailboxImportSourceRetention = {
|
|
742
|
+
readonly state: MailboxImportSourceRetentionState;
|
|
743
|
+
readonly expires_at: string | null;
|
|
744
|
+
readonly deleted_at: string | null;
|
|
745
|
+
};
|
|
746
|
+
type RestoreMailboxImportParams = {
|
|
747
|
+
readonly file_ids: readonly string[];
|
|
738
748
|
};
|
|
739
749
|
type MailboxImports = {
|
|
740
750
|
readonly object: "imports";
|
|
@@ -765,8 +775,10 @@ type CreateMailboxImportParams = {
|
|
|
765
775
|
readonly options?: MailboxImportOptions | undefined;
|
|
766
776
|
};
|
|
767
777
|
type CreateImportUploadParams = {
|
|
778
|
+
readonly provider: MailboxImportFileProvider;
|
|
768
779
|
readonly file_name: string;
|
|
769
780
|
readonly size_bytes: number;
|
|
781
|
+
readonly source_fingerprint: string;
|
|
770
782
|
};
|
|
771
783
|
type ImportUploadPart = {
|
|
772
784
|
readonly part_number: number;
|
|
@@ -776,6 +788,7 @@ type ImportUpload = {
|
|
|
776
788
|
readonly object: "import_upload";
|
|
777
789
|
readonly file_id: string;
|
|
778
790
|
readonly part_size_bytes: number;
|
|
791
|
+
readonly completed_parts: readonly CompleteImportUploadPart[];
|
|
779
792
|
readonly parts: readonly ImportUploadPart[];
|
|
780
793
|
readonly expires_in_seconds: number;
|
|
781
794
|
};
|
|
@@ -888,6 +901,7 @@ type SendMessageParams = {
|
|
|
888
901
|
readonly source_rfc_message_id?: string | undefined;
|
|
889
902
|
readonly headers?: readonly OutboundHeader[] | undefined;
|
|
890
903
|
readonly scheduled_at?: string | undefined;
|
|
904
|
+
readonly track_reply?: boolean | undefined;
|
|
891
905
|
readonly sandbox_outcome?: SandboxOutcome | undefined;
|
|
892
906
|
};
|
|
893
907
|
type ScheduledMessageRecipient = {
|
|
@@ -1001,6 +1015,7 @@ type ReplyToMessageParams = {
|
|
|
1001
1015
|
readonly source_rfc_message_id?: string | undefined;
|
|
1002
1016
|
readonly headers?: readonly OutboundHeader[] | undefined;
|
|
1003
1017
|
readonly scheduled_at?: string | undefined;
|
|
1018
|
+
readonly track_reply?: boolean | undefined;
|
|
1004
1019
|
readonly sandbox_outcome?: SandboxOutcome | undefined;
|
|
1005
1020
|
};
|
|
1006
1021
|
type InjectSandboxInboundParams = {
|
|
@@ -1482,6 +1497,8 @@ declare class Mailboxes extends ApiResource {
|
|
|
1482
1497
|
listImports(id: string, options?: MethodOptions): Promise<MailboxImports>;
|
|
1483
1498
|
getImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1484
1499
|
cancelImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1500
|
+
resumeImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1501
|
+
restoreImport(id: string, importId: string, params: RestoreMailboxImportParams, options?: MethodOptions): Promise<MailboxImport>;
|
|
1485
1502
|
undoImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1486
1503
|
createImportUpload(id: string, params: CreateImportUploadParams, options?: MethodOptions): Promise<ImportUpload>;
|
|
1487
1504
|
completeImportUpload(id: string, fileId: string, params: CompleteImportUploadParams, options?: MethodOptions): Promise<void>;
|
|
@@ -2098,6 +2115,7 @@ type ReplyToThreadParams = {
|
|
|
2098
2115
|
readonly text?: string | undefined;
|
|
2099
2116
|
readonly cc?: readonly EmailRecipientInput[] | undefined;
|
|
2100
2117
|
readonly scheduled_at?: string | undefined;
|
|
2118
|
+
readonly track_reply?: boolean | undefined;
|
|
2101
2119
|
readonly sandbox_outcome?: SandboxOutcome | undefined;
|
|
2102
2120
|
};
|
|
2103
2121
|
|
package/dist/index.js
CHANGED
|
@@ -1036,6 +1036,21 @@ var Mailboxes = class extends ApiResource {
|
|
|
1036
1036
|
methodOptions: options
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
|
+
resumeImport(id, importId, options) {
|
|
1040
|
+
return this.client.request({
|
|
1041
|
+
method: "POST",
|
|
1042
|
+
path: `/mailboxes/${encodeURIComponent(id)}/imports/${encodeURIComponent(importId)}/resume`,
|
|
1043
|
+
methodOptions: options
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
restoreImport(id, importId, params, options) {
|
|
1047
|
+
return this.client.request({
|
|
1048
|
+
method: "POST",
|
|
1049
|
+
path: `/mailboxes/${encodeURIComponent(id)}/imports/${encodeURIComponent(importId)}/restore`,
|
|
1050
|
+
body: params,
|
|
1051
|
+
methodOptions: options
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1039
1054
|
undoImport(id, importId, options) {
|
|
1040
1055
|
return this.client.request({
|
|
1041
1056
|
method: "POST",
|
|
@@ -1632,7 +1647,7 @@ var Webhooks = class extends ApiResource {
|
|
|
1632
1647
|
};
|
|
1633
1648
|
|
|
1634
1649
|
// src/version.ts
|
|
1635
|
-
var VERSION = "0.4.
|
|
1650
|
+
var VERSION = "0.4.20";
|
|
1636
1651
|
|
|
1637
1652
|
// src/client.ts
|
|
1638
1653
|
var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";
|