stratal 0.0.15 → 0.0.17
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/README.md +4 -0
- package/dist/{application-Du0d8O_e.d.mts → application-DfPtIzxF.d.mts} +66 -5
- package/dist/application-DfPtIzxF.d.mts.map +1 -0
- package/dist/{base-email.provider-CNwsPbwm.mjs → base-email.provider-DypUAfWm.mjs} +1 -1
- package/dist/{base-email.provider-CNwsPbwm.mjs.map → base-email.provider-DypUAfWm.mjs.map} +1 -1
- package/dist/bin/cloudflare-workers-loader.mjs +0 -0
- package/dist/bin/quarry.mjs +12 -57
- package/dist/bin/quarry.mjs.map +1 -1
- package/dist/cache/index.d.mts +2 -2
- package/dist/cache/index.mjs +10 -10
- package/dist/colors-Y7WIFXs7.mjs +16 -0
- package/dist/colors-Y7WIFXs7.mjs.map +1 -0
- package/dist/{command-DG_u5ob2.mjs → command-B1CPgsrU.mjs} +14 -10
- package/dist/{command-DG_u5ob2.mjs.map → command-B1CPgsrU.mjs.map} +1 -1
- package/dist/{command-DcebcSrL.d.mts → command-TnkPYWta.d.mts} +2 -2
- package/dist/{command-DcebcSrL.d.mts.map → command-TnkPYWta.d.mts.map} +1 -1
- package/dist/config/index.d.mts +2 -2
- package/dist/config/index.mjs +10 -10
- package/dist/consumer-registry-Bymm6ff4.d.mts +142 -0
- package/dist/consumer-registry-Bymm6ff4.d.mts.map +1 -0
- package/dist/cron/index.d.mts +3 -116
- package/dist/cron/index.d.mts.map +1 -1
- package/dist/cron/index.mjs +3 -4
- package/dist/{cron-manager-BRh86QCS.mjs → cron-manager-CFBamKKk.mjs} +3 -3
- package/dist/{cron-manager-BRh86QCS.mjs.map → cron-manager-CFBamKKk.mjs.map} +1 -1
- package/dist/cron-manager-D7imGwUT.d.mts +117 -0
- package/dist/cron-manager-D7imGwUT.d.mts.map +1 -0
- package/dist/di/index.d.mts +1 -1
- package/dist/di/index.mjs +2 -3
- package/dist/email/index.d.mts +3 -3
- package/dist/email/index.mjs +16 -15
- package/dist/email/index.mjs.map +1 -1
- package/dist/{en-uVIaxFXR.mjs → en-DaewN8hc.mjs} +1 -1
- package/dist/{en-uVIaxFXR.mjs.map → en-DaewN8hc.mjs.map} +1 -1
- package/dist/errors/index.d.mts +1 -1
- package/dist/errors/index.mjs +2 -3
- package/dist/{errors-CtCi1wn6.mjs → errors-DSKapqD8.mjs} +4 -4
- package/dist/{errors-CtCi1wn6.mjs.map → errors-DSKapqD8.mjs.map} +1 -1
- package/dist/errors-DuAR5Wke.mjs +67 -0
- package/dist/errors-DuAR5Wke.mjs.map +1 -0
- package/dist/events/index.d.mts +2 -2
- package/dist/events/index.mjs +2 -3
- package/dist/{events-CXl-o1Ad.mjs → events-CvUSgEuN.mjs} +2 -3
- package/dist/{events-CXl-o1Ad.mjs.map → events-CvUSgEuN.mjs.map} +1 -1
- package/dist/{gateway-context-90CQEQDR.mjs → gateway-context-CNOLkLUC.mjs} +4 -4
- package/dist/{gateway-context-90CQEQDR.mjs.map → gateway-context-CNOLkLUC.mjs.map} +1 -1
- package/dist/guards/index.d.mts +3 -3
- package/dist/guards/index.mjs +1 -1
- package/dist/{guards-DMbsAxSX.mjs → guards-DUk_Kzst.mjs} +1 -1
- package/dist/{guards-DMbsAxSX.mjs.map → guards-DUk_Kzst.mjs.map} +1 -1
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.mjs +16 -15
- package/dist/i18n/messages/en/index.d.mts +1 -1
- package/dist/i18n/messages/en/index.mjs +1 -1
- package/dist/i18n/validation/index.d.mts +1 -1
- package/dist/i18n/validation/index.mjs +1 -1
- package/dist/{i18n.module-qNrpIVts.mjs → i18n.module-Dn9SrFdS.mjs} +212 -162
- package/dist/i18n.module-Dn9SrFdS.mjs.map +1 -0
- package/dist/{index-D69rxo8H.d.mts → index-BFCxSp_f.d.mts} +85 -76
- package/dist/index-BFCxSp_f.d.mts.map +1 -0
- package/dist/{index-H-Su81aK.d.mts → index-DGRe6Yoa.d.mts} +5 -144
- package/dist/index-DGRe6Yoa.d.mts.map +1 -0
- package/dist/{index-CSuHOJc3.d.mts → index-D_w_Rmtd.d.mts} +1 -1
- package/dist/{index-CSuHOJc3.d.mts.map → index-D_w_Rmtd.d.mts.map} +1 -1
- package/dist/{index-Cfkie8JM.d.mts → index-Dp6A5ywM.d.mts} +1 -1
- package/dist/{index-Cfkie8JM.d.mts.map → index-Dp6A5ywM.d.mts.map} +1 -1
- package/dist/{index-CpAN9ENH.d.mts → index-NGxg-KP_.d.mts} +5 -5
- package/dist/{index-CpAN9ENH.d.mts.map → index-NGxg-KP_.d.mts.map} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +20 -19
- package/dist/{is-command-MZDCH-0T.mjs → is-command-DJVI6wEJ.mjs} +2 -2
- package/dist/{is-command-MZDCH-0T.mjs.map → is-command-DJVI6wEJ.mjs.map} +1 -1
- package/dist/{is-seeder-BN9Ej1r7.mjs → is-seeder-D5MIEcdz.mjs} +1 -1
- package/dist/{is-seeder-BN9Ej1r7.mjs.map → is-seeder-D5MIEcdz.mjs.map} +1 -1
- package/dist/logger/index.d.mts +1 -1
- package/dist/logger/index.mjs +1 -2
- package/dist/{logger-BR1-s1Um.mjs → logger-CGT91VY6.mjs} +170 -4
- package/dist/logger-CGT91VY6.mjs.map +1 -0
- package/dist/middleware/index.d.mts +1 -1
- package/dist/middleware/index.mjs +4 -5
- package/dist/{middleware-iRhNjsPH.mjs → middleware-Bl-b5pkt.mjs} +3 -3
- package/dist/{middleware-iRhNjsPH.mjs.map → middleware-Bl-b5pkt.mjs.map} +1 -1
- package/dist/module/index.d.mts +3 -118
- package/dist/module/index.d.mts.map +1 -1
- package/dist/module/index.mjs +10 -10
- package/dist/module-registry-CmjBX6ol.d.mts +121 -0
- package/dist/module-registry-CmjBX6ol.d.mts.map +1 -0
- package/dist/{module-BH7t7BGG.mjs → module-tUtyVJ5E.mjs} +9 -8
- package/dist/module-tUtyVJ5E.mjs.map +1 -0
- package/dist/openapi/index.d.mts +54 -54
- package/dist/openapi/index.d.mts.map +1 -1
- package/dist/openapi/index.mjs +16 -15
- package/dist/openapi-tools.service-B3TxYKoQ.mjs +197 -0
- package/dist/openapi-tools.service-B3TxYKoQ.mjs.map +1 -0
- package/dist/openapi.service-DGnX3Fc4.d.mts +58 -0
- package/dist/openapi.service-DGnX3Fc4.d.mts.map +1 -0
- package/dist/quarry/index.d.mts +118 -29
- package/dist/quarry/index.d.mts.map +1 -1
- package/dist/quarry/index.mjs +9 -6
- package/dist/quarry-registry-B2rkO-JS.mjs +683 -0
- package/dist/quarry-registry-B2rkO-JS.mjs.map +1 -0
- package/dist/queue/index.d.mts +2 -1
- package/dist/queue/index.mjs +11 -11
- package/dist/{queue.module-BdXWUvIM.mjs → queue.module-BtI8f4Jo.mjs} +4 -4
- package/dist/{queue.module-BdXWUvIM.mjs.map → queue.module-BtI8f4Jo.mjs.map} +1 -1
- package/dist/{resend.provider-CQT5be5E.mjs → resend.provider-bXMEkdRJ.mjs} +4 -5
- package/dist/{resend.provider-CQT5be5E.mjs.map → resend.provider-bXMEkdRJ.mjs.map} +1 -1
- package/dist/router/index.d.mts +1 -1
- package/dist/router/index.mjs +15 -14
- package/dist/{router-context-BLn4PrRG.mjs → router-context-D9R1v2Ac.mjs} +7 -4
- package/dist/router-context-D9R1v2Ac.mjs.map +1 -0
- package/dist/s3-storage.provider-CttzNnDR.mjs +335 -0
- package/dist/s3-storage.provider-CttzNnDR.mjs.map +1 -0
- package/dist/seeder/index.d.mts +4 -4
- package/dist/seeder/index.mjs +6 -6
- package/dist/{seeder-DatfjJvU.mjs → seeder-R7RXJC35.mjs} +20 -17
- package/dist/seeder-R7RXJC35.mjs.map +1 -0
- package/dist/{smtp.provider-Cj7BUFbJ.mjs → smtp.provider-DrbHQztF.mjs} +4 -5
- package/dist/{smtp.provider-Cj7BUFbJ.mjs.map → smtp.provider-DrbHQztF.mjs.map} +1 -1
- package/dist/storage/index.d.mts +6 -465
- package/dist/storage/index.d.mts.map +1 -1
- package/dist/storage/index.mjs +14 -13
- package/dist/storage/providers/index.d.mts +272 -0
- package/dist/storage/providers/index.d.mts.map +1 -0
- package/dist/storage/providers/index.mjs +5 -0
- package/dist/{storage-BtcfgibD.mjs → storage-CZKHOhci.mjs} +35 -411
- package/dist/storage-CZKHOhci.mjs.map +1 -0
- package/dist/storage-provider.interface-0IqcdhBf.d.mts +197 -0
- package/dist/storage-provider.interface-0IqcdhBf.d.mts.map +1 -0
- package/dist/{stratal-Cm0Yy8v4.mjs → stratal-D5smIU1y.mjs} +22 -12
- package/dist/stratal-D5smIU1y.mjs.map +1 -0
- package/dist/{types-Cu4jkeiH.d.mts → types-DahElfUw.d.mts} +1 -1
- package/dist/types-DahElfUw.d.mts.map +1 -0
- package/dist/usage-generator-CVIsENuE.mjs +158 -0
- package/dist/usage-generator-CVIsENuE.mjs.map +1 -0
- package/dist/{validation-Dbt-snjx.mjs → validation-DQTC259A.mjs} +4 -4
- package/dist/{validation-Dbt-snjx.mjs.map → validation-DQTC259A.mjs.map} +1 -1
- package/dist/websocket/index.d.mts +2 -2
- package/dist/websocket/index.mjs +4 -5
- package/dist/workers/index.d.mts +1 -1
- package/dist/workers/index.mjs +20 -19
- package/dist/workers/index.mjs.map +1 -1
- package/package.json +15 -14
- package/dist/application-Du0d8O_e.d.mts.map +0 -1
- package/dist/decorate-D5j-d9_z.mjs +0 -171
- package/dist/decorate-D5j-d9_z.mjs.map +0 -1
- package/dist/i18n.module-qNrpIVts.mjs.map +0 -1
- package/dist/index-D69rxo8H.d.mts.map +0 -1
- package/dist/index-H-Su81aK.d.mts.map +0 -1
- package/dist/logger-BR1-s1Um.mjs.map +0 -1
- package/dist/module-BH7t7BGG.mjs.map +0 -1
- package/dist/quarry-registry-BPmKVjhG.mjs +0 -302
- package/dist/quarry-registry-BPmKVjhG.mjs.map +0 -1
- package/dist/router-context-BLn4PrRG.mjs.map +0 -1
- package/dist/seeder-DatfjJvU.mjs.map +0 -1
- package/dist/storage-BtcfgibD.mjs.map +0 -1
- package/dist/stratal-Cm0Yy8v4.mjs.map +0 -1
- package/dist/types-Cu4jkeiH.d.mts.map +0 -1
- package/dist/types-N84Ak6YT.d.mts +0 -64
- package/dist/types-N84Ak6YT.d.mts.map +0 -1
- package/dist/usage-generator-BTZDk5zx.mjs +0 -75
- package/dist/usage-generator-BTZDk5zx.mjs.map +0 -1
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { _ as StorageEntry, f as DownloadResult, i as UploadResult, n as StreamingBlobPayloadInputTypes, r as UploadOptions, s as PresignedUrlResult, t as IStorageProvider } from "../../storage-provider.interface-0IqcdhBf.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/storage/providers/s3-multipart-provider.interface.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Options for creating a multipart upload
|
|
6
|
+
*/
|
|
7
|
+
interface CreateMultipartOptions {
|
|
8
|
+
/** Content type (MIME type) */
|
|
9
|
+
contentType?: string;
|
|
10
|
+
/** Cache control header */
|
|
11
|
+
cacheControl?: string;
|
|
12
|
+
/** Custom S3 metadata */
|
|
13
|
+
metadata?: Record<string, string>;
|
|
14
|
+
/** S3 object tagging (key=value format) */
|
|
15
|
+
tagging?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Result of creating a multipart upload
|
|
19
|
+
*/
|
|
20
|
+
interface CreateMultipartResult {
|
|
21
|
+
/** S3 upload ID for subsequent part uploads */
|
|
22
|
+
uploadId: string;
|
|
23
|
+
/** Object key */
|
|
24
|
+
key: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Result of uploading a part
|
|
28
|
+
*/
|
|
29
|
+
interface UploadPartResult {
|
|
30
|
+
/** ETag returned by S3 */
|
|
31
|
+
etag: string;
|
|
32
|
+
/** Part number */
|
|
33
|
+
partNumber: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Part info for completing multipart upload
|
|
37
|
+
*/
|
|
38
|
+
interface CompletedPart {
|
|
39
|
+
/** ETag from uploadPart */
|
|
40
|
+
etag: string;
|
|
41
|
+
/** Part number */
|
|
42
|
+
partNumber: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Result of completing a multipart upload
|
|
46
|
+
*/
|
|
47
|
+
interface CompleteMultipartResult {
|
|
48
|
+
/** S3 location URL */
|
|
49
|
+
location?: string;
|
|
50
|
+
/** Object key */
|
|
51
|
+
key: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Individual part info from listParts
|
|
55
|
+
*/
|
|
56
|
+
interface PartInfo {
|
|
57
|
+
/** Part number */
|
|
58
|
+
partNumber: number;
|
|
59
|
+
/** ETag */
|
|
60
|
+
etag: string;
|
|
61
|
+
/** Part size in bytes */
|
|
62
|
+
size: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Result of listing parts
|
|
66
|
+
*/
|
|
67
|
+
interface ListPartsResult {
|
|
68
|
+
/** List of uploaded parts */
|
|
69
|
+
parts: PartInfo[];
|
|
70
|
+
/** Whether there are more parts */
|
|
71
|
+
isTruncated: boolean;
|
|
72
|
+
/** Marker for next page */
|
|
73
|
+
nextPartNumberMarker?: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Individual upload info from listMultipartUploads
|
|
77
|
+
*/
|
|
78
|
+
interface MultipartUploadInfo {
|
|
79
|
+
/** Object key */
|
|
80
|
+
key: string;
|
|
81
|
+
/** Upload ID */
|
|
82
|
+
uploadId: string;
|
|
83
|
+
/** When the upload was initiated */
|
|
84
|
+
initiated?: Date;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Result of listing multipart uploads
|
|
88
|
+
*/
|
|
89
|
+
interface ListMultipartUploadsResult {
|
|
90
|
+
/** List of in-progress uploads */
|
|
91
|
+
uploads: MultipartUploadInfo[];
|
|
92
|
+
/** Whether there are more uploads */
|
|
93
|
+
isTruncated: boolean;
|
|
94
|
+
/** Marker for next page (key) */
|
|
95
|
+
nextKeyMarker?: string;
|
|
96
|
+
/** Marker for next page (uploadId) */
|
|
97
|
+
nextUploadIdMarker?: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Result of headObject
|
|
101
|
+
*/
|
|
102
|
+
interface HeadObjectResult {
|
|
103
|
+
/** Object size in bytes */
|
|
104
|
+
size: number;
|
|
105
|
+
/** Content type */
|
|
106
|
+
contentType?: string;
|
|
107
|
+
/** Custom metadata */
|
|
108
|
+
metadata?: Record<string, string>;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Result of batch delete
|
|
112
|
+
*/
|
|
113
|
+
interface DeleteObjectsResult {
|
|
114
|
+
/** Number of objects deleted */
|
|
115
|
+
deleted: number;
|
|
116
|
+
/** Errors that occurred */
|
|
117
|
+
errors: {
|
|
118
|
+
key: string;
|
|
119
|
+
code: string;
|
|
120
|
+
message: string;
|
|
121
|
+
}[];
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* S3-specific storage provider interface with multipart upload support
|
|
125
|
+
*
|
|
126
|
+
* Extends the generic IStorageProvider with S3 multipart upload operations.
|
|
127
|
+
* This interface is S3-specific - other providers (GCS, local) would have
|
|
128
|
+
* their own resumable upload interfaces if needed.
|
|
129
|
+
*/
|
|
130
|
+
interface IS3MultipartProvider extends IStorageProvider {
|
|
131
|
+
/**
|
|
132
|
+
* Create a multipart upload
|
|
133
|
+
* @param key - Object key
|
|
134
|
+
* @param options - Upload options
|
|
135
|
+
* @returns Upload ID and key
|
|
136
|
+
*/
|
|
137
|
+
createMultipartUpload(key: string, options?: CreateMultipartOptions): Promise<CreateMultipartResult>;
|
|
138
|
+
/**
|
|
139
|
+
* Upload a part to an existing multipart upload
|
|
140
|
+
* @param key - Object key
|
|
141
|
+
* @param uploadId - Upload ID from createMultipartUpload
|
|
142
|
+
* @param partNumber - Part number (1-10000)
|
|
143
|
+
* @param body - Part data
|
|
144
|
+
* @returns ETag and part number
|
|
145
|
+
*/
|
|
146
|
+
uploadPart(key: string, uploadId: string, partNumber: number, body: Uint8Array): Promise<UploadPartResult>;
|
|
147
|
+
/**
|
|
148
|
+
* Complete a multipart upload
|
|
149
|
+
* @param key - Object key
|
|
150
|
+
* @param uploadId - Upload ID
|
|
151
|
+
* @param parts - List of completed parts with ETags
|
|
152
|
+
* @returns Location and key
|
|
153
|
+
*/
|
|
154
|
+
completeMultipartUpload(key: string, uploadId: string, parts: CompletedPart[]): Promise<CompleteMultipartResult>;
|
|
155
|
+
/**
|
|
156
|
+
* Abort a multipart upload
|
|
157
|
+
* @param key - Object key
|
|
158
|
+
* @param uploadId - Upload ID
|
|
159
|
+
*/
|
|
160
|
+
abortMultipartUpload(key: string, uploadId: string): Promise<void>;
|
|
161
|
+
/**
|
|
162
|
+
* List parts of a multipart upload
|
|
163
|
+
* @param key - Object key
|
|
164
|
+
* @param uploadId - Upload ID
|
|
165
|
+
* @param partNumberMarker - Optional marker for pagination
|
|
166
|
+
* @returns List of parts
|
|
167
|
+
*/
|
|
168
|
+
listParts(key: string, uploadId: string, partNumberMarker?: string): Promise<ListPartsResult>;
|
|
169
|
+
/**
|
|
170
|
+
* List all in-progress multipart uploads
|
|
171
|
+
* @param keyMarker - Optional key marker for pagination
|
|
172
|
+
* @param uploadIdMarker - Optional upload ID marker for pagination
|
|
173
|
+
* @returns List of uploads
|
|
174
|
+
*/
|
|
175
|
+
listMultipartUploads(keyMarker?: string, uploadIdMarker?: string): Promise<ListMultipartUploadsResult>;
|
|
176
|
+
/**
|
|
177
|
+
* Get object metadata without downloading the body
|
|
178
|
+
* Unlike exists() which returns boolean, this returns actual metadata
|
|
179
|
+
* @param key - Object key
|
|
180
|
+
* @returns Object metadata or null if not found
|
|
181
|
+
*/
|
|
182
|
+
headObject(key: string): Promise<HeadObjectResult | null>;
|
|
183
|
+
/**
|
|
184
|
+
* Delete multiple objects in a single request
|
|
185
|
+
* More efficient than individual delete() calls
|
|
186
|
+
* @param keys - Array of object keys
|
|
187
|
+
* @returns Delete results
|
|
188
|
+
*/
|
|
189
|
+
deleteObjects(keys: string[]): Promise<DeleteObjectsResult>;
|
|
190
|
+
/**
|
|
191
|
+
* Get the bucket name
|
|
192
|
+
* @returns Bucket name from configuration
|
|
193
|
+
*/
|
|
194
|
+
getBucket(): string;
|
|
195
|
+
}
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region src/storage/providers/s3-storage.provider.d.ts
|
|
198
|
+
/**
|
|
199
|
+
* S3 Storage Provider
|
|
200
|
+
* Implements storage operations using AWS SDK for S3-compatible storage
|
|
201
|
+
* Works with AWS S3, Cloudflare R2, MinIO, and other S3-compatible services
|
|
202
|
+
*
|
|
203
|
+
* Implements IS3MultipartProvider for multipart upload support needed by TUS
|
|
204
|
+
*/
|
|
205
|
+
declare class S3StorageProvider implements IS3MultipartProvider {
|
|
206
|
+
private readonly client;
|
|
207
|
+
private readonly bucket;
|
|
208
|
+
private readonly disk;
|
|
209
|
+
constructor(config: StorageEntry);
|
|
210
|
+
upload(body: StreamingBlobPayloadInputTypes, path: string, options: UploadOptions): Promise<UploadResult>;
|
|
211
|
+
download(path: string): Promise<DownloadResult>;
|
|
212
|
+
delete(path: string): Promise<void>;
|
|
213
|
+
exists(path: string): Promise<boolean>;
|
|
214
|
+
getPresignedUrl(path: string, method: 'GET' | 'PUT' | 'DELETE' | 'HEAD', expiresIn: number): Promise<PresignedUrlResult>;
|
|
215
|
+
/**
|
|
216
|
+
* Chunked upload for streaming data without known size
|
|
217
|
+
* Uses @aws-sdk/lib-storage for multipart upload handling
|
|
218
|
+
*
|
|
219
|
+
* Benefits:
|
|
220
|
+
* - Handles unknown Content-Length automatically
|
|
221
|
+
* - Automatic retry on transient failures
|
|
222
|
+
* - Cleanup of partial uploads on error
|
|
223
|
+
* - Works with S3-compatible storage (R2, MinIO, RustFS)
|
|
224
|
+
*
|
|
225
|
+
* @param body - Content to upload (stream or buffer)
|
|
226
|
+
* @param path - Full path including disk root
|
|
227
|
+
* @param options - Upload options (mimeType required, size optional)
|
|
228
|
+
* @returns Upload result with metadata
|
|
229
|
+
*/
|
|
230
|
+
chunkedUpload(body: StreamingBlobPayloadInputTypes, path: string, options: Omit<UploadOptions, 'size'> & {
|
|
231
|
+
size?: number;
|
|
232
|
+
}): Promise<UploadResult>;
|
|
233
|
+
/**
|
|
234
|
+
* Get the bucket name
|
|
235
|
+
*/
|
|
236
|
+
getBucket(): string;
|
|
237
|
+
/**
|
|
238
|
+
* Get object metadata without downloading the body
|
|
239
|
+
*/
|
|
240
|
+
headObject(key: string): Promise<HeadObjectResult | null>;
|
|
241
|
+
/**
|
|
242
|
+
* Delete multiple objects in a single request
|
|
243
|
+
*/
|
|
244
|
+
deleteObjects(keys: string[]): Promise<DeleteObjectsResult>;
|
|
245
|
+
/**
|
|
246
|
+
* Create a multipart upload
|
|
247
|
+
*/
|
|
248
|
+
createMultipartUpload(key: string, options?: CreateMultipartOptions): Promise<CreateMultipartResult>;
|
|
249
|
+
/**
|
|
250
|
+
* Upload a part to an existing multipart upload
|
|
251
|
+
*/
|
|
252
|
+
uploadPart(key: string, uploadId: string, partNumber: number, body: Uint8Array): Promise<UploadPartResult>;
|
|
253
|
+
/**
|
|
254
|
+
* Complete a multipart upload
|
|
255
|
+
*/
|
|
256
|
+
completeMultipartUpload(key: string, uploadId: string, parts: CompletedPart[]): Promise<CompleteMultipartResult>;
|
|
257
|
+
/**
|
|
258
|
+
* Abort a multipart upload
|
|
259
|
+
*/
|
|
260
|
+
abortMultipartUpload(key: string, uploadId: string): Promise<void>;
|
|
261
|
+
/**
|
|
262
|
+
* List parts of a multipart upload
|
|
263
|
+
*/
|
|
264
|
+
listParts(key: string, uploadId: string, partNumberMarker?: string): Promise<ListPartsResult>;
|
|
265
|
+
/**
|
|
266
|
+
* List all in-progress multipart uploads
|
|
267
|
+
*/
|
|
268
|
+
listMultipartUploads(keyMarker?: string, uploadIdMarker?: string): Promise<ListMultipartUploadsResult>;
|
|
269
|
+
}
|
|
270
|
+
//#endregion
|
|
271
|
+
export { CompleteMultipartResult, CompletedPart, CreateMultipartOptions, CreateMultipartResult, DeleteObjectsResult, HeadObjectResult, IS3MultipartProvider, IStorageProvider, ListMultipartUploadsResult, ListPartsResult, MultipartUploadInfo, PartInfo, S3StorageProvider, StreamingBlobPayloadInputTypes, UploadPartResult };
|
|
272
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/storage/providers/s3-multipart-provider.interface.ts","../../../src/storage/providers/s3-storage.provider.ts"],"mappings":";;;;;;UAKiB,sBAAA;EAAsB;EAErC,WAAA;EAIiB;EAFjB,YAAA;EAAA;EAEA,QAAA,GAAW,MAAA;EAAA;EAEX,OAAA;AAAA;;AAMF;;UAAiB,qBAAA;EAEf;EAAA,QAAA;EAQe;EANf,GAAA;AAAA;;;AAgBF;UAViB,gBAAA;;EAEf,IAAA;EAYU;EAVV,UAAA;AAAA;;;;UAMe,aAAA;EAoBQ;EAlBvB,IAAA;EAkBuB;EAhBvB,UAAA;AAAA;;;;UAMe,uBAAA;EAsBe;EApB9B,QAAA;EAsBe;EApBf,GAAA;AAAA;;;;UAMe,QAAA;EAwBA;EAtBf,UAAA;;EAEA,IAAA;EAsBA;EApBA,IAAA;AAAA;;;;UAMe,eAAA;EAwB0B;EAtBzC,KAAA,EAAO,QAAA;EAwBqB;EAtB5B,WAAA;EAsBS;EApBT,oBAAA;AAAA;;;;UAMe,mBAAA;EA0BgB;EAxB/B,GAAA;EA8BiB;EA5BjB,QAAA;EA0BA;EAxBA,SAAA,GAAY,IAAA;AAAA;;;AAgCd;UA1BiB,0BAAA;;EAEf,OAAA,EAAS,mBAAA;EA0BT;EAxBA,WAAA;EA2BE;EAzBF,aAAA;EA2BE;EAzBF,kBAAA;AAAA;AAoCF;;;AAAA,UA9BiB,gBAAA;EA4CJ;EA1CX,IAAA;EAwDQ;EAtDR,WAAA;EAuDG;EArDH,QA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