shipmail 0.4.17 → 0.4.18
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 +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -768,12 +768,24 @@ type CreateImportUploadParams = {
|
|
|
768
768
|
readonly file_name: string;
|
|
769
769
|
readonly size_bytes: number;
|
|
770
770
|
};
|
|
771
|
+
type ImportUploadPart = {
|
|
772
|
+
readonly part_number: number;
|
|
773
|
+
readonly upload_url: string;
|
|
774
|
+
};
|
|
771
775
|
type ImportUpload = {
|
|
772
776
|
readonly object: "import_upload";
|
|
773
777
|
readonly file_id: string;
|
|
774
|
-
readonly
|
|
778
|
+
readonly part_size_bytes: number;
|
|
779
|
+
readonly parts: readonly ImportUploadPart[];
|
|
775
780
|
readonly expires_in_seconds: number;
|
|
776
781
|
};
|
|
782
|
+
type CompleteImportUploadPart = {
|
|
783
|
+
readonly part_number: number;
|
|
784
|
+
readonly etag: string;
|
|
785
|
+
};
|
|
786
|
+
type CompleteImportUploadParams = {
|
|
787
|
+
readonly parts: readonly CompleteImportUploadPart[];
|
|
788
|
+
};
|
|
777
789
|
|
|
778
790
|
type MessageRuleDisposition = {
|
|
779
791
|
readonly matched_rule_ids: readonly string[];
|
|
@@ -1472,6 +1484,8 @@ declare class Mailboxes extends ApiResource {
|
|
|
1472
1484
|
cancelImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1473
1485
|
undoImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1474
1486
|
createImportUpload(id: string, params: CreateImportUploadParams, options?: MethodOptions): Promise<ImportUpload>;
|
|
1487
|
+
completeImportUpload(id: string, fileId: string, params: CompleteImportUploadParams, options?: MethodOptions): Promise<void>;
|
|
1488
|
+
abortImportUpload(id: string, fileId: string, options?: MethodOptions): Promise<void>;
|
|
1475
1489
|
}
|
|
1476
1490
|
|
|
1477
1491
|
declare class Messages extends ApiResource {
|
package/dist/index.d.ts
CHANGED
|
@@ -768,12 +768,24 @@ type CreateImportUploadParams = {
|
|
|
768
768
|
readonly file_name: string;
|
|
769
769
|
readonly size_bytes: number;
|
|
770
770
|
};
|
|
771
|
+
type ImportUploadPart = {
|
|
772
|
+
readonly part_number: number;
|
|
773
|
+
readonly upload_url: string;
|
|
774
|
+
};
|
|
771
775
|
type ImportUpload = {
|
|
772
776
|
readonly object: "import_upload";
|
|
773
777
|
readonly file_id: string;
|
|
774
|
-
readonly
|
|
778
|
+
readonly part_size_bytes: number;
|
|
779
|
+
readonly parts: readonly ImportUploadPart[];
|
|
775
780
|
readonly expires_in_seconds: number;
|
|
776
781
|
};
|
|
782
|
+
type CompleteImportUploadPart = {
|
|
783
|
+
readonly part_number: number;
|
|
784
|
+
readonly etag: string;
|
|
785
|
+
};
|
|
786
|
+
type CompleteImportUploadParams = {
|
|
787
|
+
readonly parts: readonly CompleteImportUploadPart[];
|
|
788
|
+
};
|
|
777
789
|
|
|
778
790
|
type MessageRuleDisposition = {
|
|
779
791
|
readonly matched_rule_ids: readonly string[];
|
|
@@ -1472,6 +1484,8 @@ declare class Mailboxes extends ApiResource {
|
|
|
1472
1484
|
cancelImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1473
1485
|
undoImport(id: string, importId: string, options?: MethodOptions): Promise<MailboxImport>;
|
|
1474
1486
|
createImportUpload(id: string, params: CreateImportUploadParams, options?: MethodOptions): Promise<ImportUpload>;
|
|
1487
|
+
completeImportUpload(id: string, fileId: string, params: CompleteImportUploadParams, options?: MethodOptions): Promise<void>;
|
|
1488
|
+
abortImportUpload(id: string, fileId: string, options?: MethodOptions): Promise<void>;
|
|
1475
1489
|
}
|
|
1476
1490
|
|
|
1477
1491
|
declare class Messages extends ApiResource {
|
package/dist/index.js
CHANGED
|
@@ -1051,6 +1051,21 @@ var Mailboxes = class extends ApiResource {
|
|
|
1051
1051
|
methodOptions: options
|
|
1052
1052
|
});
|
|
1053
1053
|
}
|
|
1054
|
+
completeImportUpload(id, fileId, params, options) {
|
|
1055
|
+
return this.client.request({
|
|
1056
|
+
method: "POST",
|
|
1057
|
+
path: `/mailboxes/${encodeURIComponent(id)}/imports/files/${encodeURIComponent(fileId)}/complete`,
|
|
1058
|
+
body: params,
|
|
1059
|
+
methodOptions: options
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
abortImportUpload(id, fileId, options) {
|
|
1063
|
+
return this.client.request({
|
|
1064
|
+
method: "DELETE",
|
|
1065
|
+
path: `/mailboxes/${encodeURIComponent(id)}/imports/files/${encodeURIComponent(fileId)}`,
|
|
1066
|
+
methodOptions: options
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1054
1069
|
};
|
|
1055
1070
|
|
|
1056
1071
|
// src/resources/messages.ts
|
|
@@ -1617,7 +1632,7 @@ var Webhooks = class extends ApiResource {
|
|
|
1617
1632
|
};
|
|
1618
1633
|
|
|
1619
1634
|
// src/version.ts
|
|
1620
|
-
var VERSION = "0.4.
|
|
1635
|
+
var VERSION = "0.4.18";
|
|
1621
1636
|
|
|
1622
1637
|
// src/client.ts
|
|
1623
1638
|
var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";
|