1 | import { StorageOptions, StorageListAllOptions, StorageListPaginateOptions } from './options';
|
2 | export type StorageOperationInput<Options extends StorageOptions> = {
|
3 | key: string;
|
4 | options?: Options;
|
5 | };
|
6 | export type StorageGetPropertiesInput<Options extends StorageOptions> = StorageOperationInput<Options>;
|
7 | export type StorageRemoveInput<Options extends StorageOptions> = {
|
8 | key: string;
|
9 | options?: Options;
|
10 | };
|
11 | export type StorageListInput<Options extends StorageListAllOptions | StorageListPaginateOptions> = {
|
12 | prefix?: string;
|
13 | options?: Options;
|
14 | };
|
15 | export type StorageGetUrlInput<Options extends StorageOptions> = StorageOperationInput<Options>;
|
16 | export type StorageDownloadDataInput<Options extends StorageOptions> = StorageOperationInput<Options>;
|
17 | export type StorageUploadDataInput<Options extends StorageOptions> = StorageOperationInput<Options> & {
|
18 | data: StorageUploadDataPayload;
|
19 | };
|
20 | export type StorageCopyInput<SourceOptions extends StorageOptions, DestinationOptions extends StorageOptions> = {
|
21 | source: SourceOptions;
|
22 | destination: DestinationOptions;
|
23 | };
|
24 |
|
25 |
|
26 |
|
27 | export type StorageUploadDataPayload = Blob | ArrayBufferView | ArrayBuffer | string;
|