@mateosuarezdev/brpc 1.0.77 → 1.0.78
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.
|
@@ -11,7 +11,7 @@ type DeleteOneBadResult = {
|
|
|
11
11
|
error: Error | null;
|
|
12
12
|
};
|
|
13
13
|
type DeleteOneResult = DeleteOneNiceResult | DeleteOneBadResult;
|
|
14
|
-
export type
|
|
14
|
+
export type UploadResult = {
|
|
15
15
|
shared: {
|
|
16
16
|
name: string;
|
|
17
17
|
resolvedType: ResolvedFileType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Acl, RawUploadResult, UploadableObjectBuffer } from "../types";
|
|
2
2
|
import { type BunFile } from "bun";
|
|
3
3
|
import { type GeneratedImageVariants } from "../images";
|
|
4
|
-
import type {
|
|
4
|
+
import type { UploadResult } from "./types";
|
|
5
5
|
/**
|
|
6
6
|
* Uploads a file or optimized buffer to S3 with UUID-based naming
|
|
7
7
|
*
|
|
@@ -49,9 +49,9 @@ export declare function uploadGeneratedVariants(path: string, generated: Generat
|
|
|
49
49
|
acl?: Acl;
|
|
50
50
|
uploadedBy?: string;
|
|
51
51
|
baseId?: string;
|
|
52
|
-
}): Promise<
|
|
52
|
+
}): Promise<UploadResult>;
|
|
53
53
|
export declare function generateAndUploadImage(path: string, file: File | BunFile | string, opts?: {
|
|
54
54
|
acl?: Acl;
|
|
55
55
|
uploadedBy?: string;
|
|
56
56
|
quality?: number;
|
|
57
|
-
}): Promise<
|
|
57
|
+
}): Promise<UploadResult>;
|