@edgestore/server 0.1.5-alpha.9 → 0.1.6
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/adapters/express/index.d.ts +18 -0
- package/dist/adapters/express/index.d.ts.map +1 -0
- package/dist/adapters/express/index.js +117 -0
- package/dist/adapters/express/index.mjs +113 -0
- package/dist/adapters/next/app/index.d.ts +1 -3
- package/dist/adapters/next/app/index.d.ts.map +1 -1
- package/dist/adapters/next/app/index.js +20 -16
- package/dist/adapters/next/app/index.mjs +9 -5
- package/dist/adapters/next/pages/index.d.ts +1 -3
- package/dist/adapters/next/pages/index.d.ts.map +1 -1
- package/dist/adapters/next/pages/index.js +18 -16
- package/dist/adapters/next/pages/index.mjs +7 -5
- package/dist/adapters/shared.d.ts +7 -43
- package/dist/adapters/shared.d.ts.map +1 -1
- package/dist/core/client/index.d.ts +4 -10
- package/dist/core/client/index.d.ts.map +1 -1
- package/dist/core/index.d.ts +0 -5
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +3 -13
- package/dist/core/index.mjs +5 -14
- package/dist/core/sdk/index.d.ts +1 -2
- package/dist/core/sdk/index.d.ts.map +1 -1
- package/dist/{index-537039e4.mjs → index-28efdacf.mjs} +3 -39
- package/dist/{index-874abae5.js → index-4491caf0.js} +3 -41
- package/dist/{index-b8745c2f.js → index-beed799d.js} +3 -34
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -215
- package/dist/index.mjs +1 -218
- package/dist/libs/errors/EdgeStoreCredentialsError.d.ts.map +1 -1
- package/dist/{logger-7ea2248c.mjs → logger-09f43a75.mjs} +14 -3
- package/dist/{logger-b530a3e1.js → logger-dcb682ae.js} +14 -3
- package/dist/providers/aws/index.d.ts +1 -1
- package/dist/providers/aws/index.d.ts.map +1 -1
- package/dist/providers/azure/index.d.ts +1 -1
- package/dist/providers/azure/index.d.ts.map +1 -1
- package/dist/providers/edgestore/index.d.ts +1 -1
- package/dist/providers/edgestore/index.d.ts.map +1 -1
- package/dist/providers/edgestore/index.js +4 -4
- package/dist/providers/edgestore/index.mjs +2 -2
- package/dist/{shared-6b717151.mjs → shared-039276af.mjs} +1 -1
- package/dist/{shared-4c2a6210.js → shared-7c700083.js} +20 -20
- package/dist/{shared-e84dbdde.js → shared-83f288f6.js} +1 -1
- package/package.json +8 -12
- package/src/adapters/express/index.ts +165 -0
- package/src/adapters/next/app/index.ts +12 -7
- package/src/adapters/next/pages/index.ts +10 -7
- package/src/adapters/shared.ts +14 -17
- package/src/core/client/index.ts +9 -12
- package/src/core/index.ts +0 -15
- package/src/core/sdk/index.ts +6 -3
- package/src/index.ts +1 -1
- package/src/libs/errors/EdgeStoreCredentialsError.ts +1 -2
- package/src/providers/aws/index.ts +1 -1
- package/src/providers/azure/index.ts +1 -1
- package/src/providers/edgestore/index.ts +5 -2
- package/dist/adapters/index.d.ts +0 -2
- package/dist/adapters/index.d.ts.map +0 -1
- package/dist/adapters/index.js +0 -2
- package/dist/adapters/index.mjs +0 -1
- package/dist/core/internals/bucketBuilder.d.ts +0 -269
- package/dist/core/internals/bucketBuilder.d.ts.map +0 -1
- package/dist/core/internals/createPathParamProxy.d.ts +0 -21
- package/dist/core/internals/createPathParamProxy.d.ts.map +0 -1
- package/dist/libs/errors/EdgeStoreApiClientError.d.ts +0 -8
- package/dist/libs/errors/EdgeStoreApiClientError.d.ts.map +0 -1
- package/dist/libs/errors/EdgeStoreError.d.ts +0 -48
- package/dist/libs/errors/EdgeStoreError.d.ts.map +0 -1
- package/dist/providers/index.d.ts +0 -2
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/index.js +0 -2
- package/dist/providers/index.mjs +0 -1
- package/dist/providers/types.d.ts +0 -114
- package/dist/providers/types.d.ts.map +0 -1
- package/dist/types.d.ts +0 -94
- package/dist/types.d.ts.map +0 -1
- package/src/adapters/index.ts +0 -6
- package/src/core/internals/bucketBuilder.ts +0 -555
- package/src/core/internals/createPathParamProxy.ts +0 -40
- package/src/libs/errors/EdgeStoreApiClientError.ts +0 -14
- package/src/libs/errors/EdgeStoreError.ts +0 -92
- package/src/providers/index.ts +0 -1
- package/src/providers/types.ts +0 -140
- package/src/types.ts +0 -148
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type KeysOfUnion, type MaybePromise, type Simplify } from '../../types';
|
|
3
|
-
type Merge<TType, TWith> = {
|
|
4
|
-
[TKey in keyof TType | keyof TWith]?: TKey extends keyof TType ? TKey extends keyof TWith ? TType[TKey] & TWith[TKey] : TType[TKey] : TWith[TKey & keyof TWith];
|
|
5
|
-
};
|
|
6
|
-
type ConvertStringToFunction<TType> = {
|
|
7
|
-
[K in keyof TType]: TType[K] extends object ? Simplify<ConvertStringToFunction<TType[K]>> : () => string;
|
|
8
|
-
};
|
|
9
|
-
type UnionToIntersection<TType> = (TType extends any ? (k: TType) => void : never) extends (k: infer I) => void ? I : never;
|
|
10
|
-
export type InferBucketPathKeys<TBucket extends Builder<any, AnyDef>> = KeysOfUnion<TBucket['_def']['path'][number]>;
|
|
11
|
-
type InferBucketPathKeysFromDef<TDef extends AnyDef> = KeysOfUnion<TDef['path'][number]>;
|
|
12
|
-
export type InferBucketPathObject<TBucket extends Builder<any, AnyDef>> = InferBucketPathKeys<TBucket> extends never ? Record<string, never> : {
|
|
13
|
-
[TKey in InferBucketPathKeys<TBucket>]: string;
|
|
14
|
-
};
|
|
15
|
-
export type InferBucketPathObjectFromDef<TDef extends AnyDef> = InferBucketPathKeysFromDef<TDef> extends never ? Record<string, never> : {
|
|
16
|
-
[TKey in InferBucketPathKeysFromDef<TDef>]: string;
|
|
17
|
-
};
|
|
18
|
-
export type InferMetadataObject<TBucket extends Builder<any, AnyDef>> = TBucket['_def']['metadata'] extends (...args: any) => any ? Awaited<ReturnType<TBucket['_def']['metadata']>> : Record<string, never>;
|
|
19
|
-
type InferMetadataObjectFromDef<TDef extends AnyDef> = TDef['metadata'] extends (...args: any) => any ? Awaited<ReturnType<TDef['metadata']>> : Record<string, never>;
|
|
20
|
-
export type AnyContext = Record<string, string | undefined | null>;
|
|
21
|
-
export type AnyInput = z.AnyZodObject | z.ZodNever;
|
|
22
|
-
export type AnyPath = Record<string, () => string>[];
|
|
23
|
-
type PathParam<TPath extends AnyPath> = {
|
|
24
|
-
path: keyof UnionToIntersection<TPath[number]>;
|
|
25
|
-
};
|
|
26
|
-
type Conditions<TPath extends AnyPath> = {
|
|
27
|
-
eq?: string | PathParam<TPath>;
|
|
28
|
-
lt?: string | PathParam<TPath>;
|
|
29
|
-
lte?: string | PathParam<TPath>;
|
|
30
|
-
gt?: string | PathParam<TPath>;
|
|
31
|
-
gte?: string | PathParam<TPath>;
|
|
32
|
-
contains?: string | PathParam<TPath>;
|
|
33
|
-
in?: string | PathParam<TPath> | (string | PathParam<TPath>)[];
|
|
34
|
-
not?: string | PathParam<TPath> | Conditions<TPath>;
|
|
35
|
-
};
|
|
36
|
-
export type AccessControlSchema<TCtx, TDef extends AnyDef> = Merge<{
|
|
37
|
-
[TKey in keyof TCtx]?: string | PathParam<TDef['path']> | Conditions<TDef['path']>;
|
|
38
|
-
}, {
|
|
39
|
-
OR?: AccessControlSchema<TCtx, TDef>[];
|
|
40
|
-
AND?: AccessControlSchema<TCtx, TDef>[];
|
|
41
|
-
NOT?: AccessControlSchema<TCtx, TDef>[];
|
|
42
|
-
}>;
|
|
43
|
-
type BucketConfig = {
|
|
44
|
-
/**
|
|
45
|
-
* Maximum size for a single file in bytes
|
|
46
|
-
*
|
|
47
|
-
* e.g. 1024 * 1024 * 10 = 10MB
|
|
48
|
-
*/
|
|
49
|
-
maxSize?: number;
|
|
50
|
-
/**
|
|
51
|
-
* Accepted MIME types
|
|
52
|
-
*
|
|
53
|
-
* e.g. ['image/jpeg', 'image/png']
|
|
54
|
-
*
|
|
55
|
-
* You can also use wildcards after the slash:
|
|
56
|
-
*
|
|
57
|
-
* e.g. ['image/*']
|
|
58
|
-
*/
|
|
59
|
-
accept?: string[];
|
|
60
|
-
};
|
|
61
|
-
type FileInfo = {
|
|
62
|
-
size: number;
|
|
63
|
-
type: string;
|
|
64
|
-
extension: string;
|
|
65
|
-
fileName?: string;
|
|
66
|
-
replaceTargetUrl?: string;
|
|
67
|
-
temporary: boolean;
|
|
68
|
-
};
|
|
69
|
-
type BeforeUploadFn<TCtx, TDef extends AnyDef> = (params: {
|
|
70
|
-
ctx: TCtx;
|
|
71
|
-
input: z.infer<TDef['input']>;
|
|
72
|
-
fileInfo: FileInfo;
|
|
73
|
-
}) => MaybePromise<boolean>;
|
|
74
|
-
type BeforeDeleteFn<TCtx, TDef extends AnyDef> = (params: {
|
|
75
|
-
ctx: TCtx;
|
|
76
|
-
fileInfo: {
|
|
77
|
-
url: string;
|
|
78
|
-
size: number;
|
|
79
|
-
uploadedAt: Date;
|
|
80
|
-
path: InferBucketPathObjectFromDef<TDef>;
|
|
81
|
-
metadata: InferMetadataObjectFromDef<TDef>;
|
|
82
|
-
};
|
|
83
|
-
}) => MaybePromise<boolean>;
|
|
84
|
-
export type AnyMetadata = Record<string, string | undefined | null>;
|
|
85
|
-
type MetadataFn<TCtx, TInput extends AnyInput, TMetadata extends AnyMetadata> = (params: {
|
|
86
|
-
ctx: TCtx;
|
|
87
|
-
input: z.infer<TInput>;
|
|
88
|
-
}) => MaybePromise<TMetadata>;
|
|
89
|
-
export type AnyMetadataFn = MetadataFn<any, AnyInput, AnyMetadata>;
|
|
90
|
-
type BucketType = 'IMAGE' | 'FILE';
|
|
91
|
-
type Def<TInput extends AnyInput, TPath extends AnyPath, TMetadata extends AnyMetadataFn> = {
|
|
92
|
-
type: BucketType;
|
|
93
|
-
input: TInput;
|
|
94
|
-
path: TPath;
|
|
95
|
-
metadata: TMetadata;
|
|
96
|
-
bucketConfig?: BucketConfig;
|
|
97
|
-
accessControl?: AccessControlSchema<any, any>;
|
|
98
|
-
beforeUpload?: BeforeUploadFn<any, any>;
|
|
99
|
-
beforeDelete?: BeforeDeleteFn<any, any>;
|
|
100
|
-
};
|
|
101
|
-
type AnyDef = Def<AnyInput, AnyPath, AnyMetadataFn>;
|
|
102
|
-
type Builder<TCtx, TDef extends AnyDef> = {
|
|
103
|
-
/** only used for types */
|
|
104
|
-
$config: {
|
|
105
|
-
ctx: TCtx;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* @internal
|
|
109
|
-
*/
|
|
110
|
-
_def: TDef;
|
|
111
|
-
/**
|
|
112
|
-
* You can set an input that will be required in every upload from the client.
|
|
113
|
-
*
|
|
114
|
-
* This can be used to add additional information to the file, like choose the file path or add metadata.
|
|
115
|
-
*/
|
|
116
|
-
input<TInput extends AnyInput>(input: TInput): Builder<TCtx, {
|
|
117
|
-
type: TDef['type'];
|
|
118
|
-
input: TInput;
|
|
119
|
-
path: TDef['path'];
|
|
120
|
-
metadata: TDef['metadata'];
|
|
121
|
-
bucketConfig: TDef['bucketConfig'];
|
|
122
|
-
accessControl: TDef['accessControl'];
|
|
123
|
-
beforeUpload: TDef['beforeUpload'];
|
|
124
|
-
beforeDelete: TDef['beforeDelete'];
|
|
125
|
-
}>;
|
|
126
|
-
/**
|
|
127
|
-
* The `path` is similar to folders in a file system.
|
|
128
|
-
* But in this case, every segment of the path must have a meaning.
|
|
129
|
-
*
|
|
130
|
-
* ```
|
|
131
|
-
* // e.g. 123/profile/file.jpg
|
|
132
|
-
* {
|
|
133
|
-
* author: '123',
|
|
134
|
-
* type: 'profile',
|
|
135
|
-
* }
|
|
136
|
-
* ```
|
|
137
|
-
*/
|
|
138
|
-
path<TParams extends AnyPath>(pathResolver: (params: {
|
|
139
|
-
ctx: Simplify<ConvertStringToFunction<TCtx>>;
|
|
140
|
-
input: Simplify<ConvertStringToFunction<z.infer<TDef['input']>>>;
|
|
141
|
-
}) => [...TParams]): Builder<TCtx, {
|
|
142
|
-
type: TDef['type'];
|
|
143
|
-
input: TDef['input'];
|
|
144
|
-
path: TParams;
|
|
145
|
-
metadata: TDef['metadata'];
|
|
146
|
-
bucketConfig: TDef['bucketConfig'];
|
|
147
|
-
accessControl: TDef['accessControl'];
|
|
148
|
-
beforeUpload: TDef['beforeUpload'];
|
|
149
|
-
beforeDelete: TDef['beforeDelete'];
|
|
150
|
-
}>;
|
|
151
|
-
/**
|
|
152
|
-
* This metadata will be added to every file uploaded to this bucket.
|
|
153
|
-
*
|
|
154
|
-
* This can be used, for example, to filter files.
|
|
155
|
-
*/
|
|
156
|
-
metadata<TMetadata extends AnyMetadata>(metadata: MetadataFn<TCtx, TDef['input'], TMetadata>): Builder<TCtx, {
|
|
157
|
-
type: TDef['type'];
|
|
158
|
-
input: TDef['input'];
|
|
159
|
-
path: TDef['path'];
|
|
160
|
-
metadata: MetadataFn<any, any, TMetadata>;
|
|
161
|
-
bucketConfig: TDef['bucketConfig'];
|
|
162
|
-
accessControl: TDef['accessControl'];
|
|
163
|
-
beforeUpload: TDef['beforeUpload'];
|
|
164
|
-
beforeDelete: TDef['beforeDelete'];
|
|
165
|
-
}>;
|
|
166
|
-
/**
|
|
167
|
-
* If you set this, your bucket will automatically be configured as a protected bucket.
|
|
168
|
-
*
|
|
169
|
-
* This means that images will only be accessible from within your app.
|
|
170
|
-
* And only if it passes the check set in this function.
|
|
171
|
-
*/
|
|
172
|
-
accessControl(accessControl: AccessControlSchema<TCtx, TDef>): Builder<TCtx, {
|
|
173
|
-
type: TDef['type'];
|
|
174
|
-
input: TDef['input'];
|
|
175
|
-
path: TDef['path'];
|
|
176
|
-
metadata: TDef['metadata'];
|
|
177
|
-
bucketConfig: TDef['bucketConfig'];
|
|
178
|
-
accessControl: AccessControlSchema<any, any>;
|
|
179
|
-
beforeUpload: TDef['beforeUpload'];
|
|
180
|
-
beforeDelete: TDef['beforeDelete'];
|
|
181
|
-
}>;
|
|
182
|
-
/**
|
|
183
|
-
* return `true` to allow upload
|
|
184
|
-
*
|
|
185
|
-
* By default every upload from your app is allowed.
|
|
186
|
-
*/
|
|
187
|
-
beforeUpload(beforeUpload: BeforeUploadFn<TCtx, TDef>): Builder<TCtx, {
|
|
188
|
-
type: TDef['type'];
|
|
189
|
-
input: TDef['input'];
|
|
190
|
-
path: TDef['path'];
|
|
191
|
-
metadata: TDef['metadata'];
|
|
192
|
-
bucketConfig: TDef['bucketConfig'];
|
|
193
|
-
accessControl: TDef['accessControl'];
|
|
194
|
-
beforeUpload: BeforeUploadFn<any, any>;
|
|
195
|
-
beforeDelete: TDef['beforeDelete'];
|
|
196
|
-
}>;
|
|
197
|
-
/**
|
|
198
|
-
* return `true` to allow delete
|
|
199
|
-
*
|
|
200
|
-
* This function must be defined if you want to delete files directly from the client.
|
|
201
|
-
*/
|
|
202
|
-
beforeDelete(beforeDelete: BeforeDeleteFn<TCtx, TDef>): Builder<TCtx, {
|
|
203
|
-
type: TDef['type'];
|
|
204
|
-
input: TDef['input'];
|
|
205
|
-
path: TDef['path'];
|
|
206
|
-
metadata: TDef['metadata'];
|
|
207
|
-
bucketConfig: TDef['bucketConfig'];
|
|
208
|
-
accessControl: TDef['accessControl'];
|
|
209
|
-
beforeUpload: TDef['beforeUpload'];
|
|
210
|
-
beforeDelete: BeforeDeleteFn<any, any>;
|
|
211
|
-
}>;
|
|
212
|
-
};
|
|
213
|
-
export type AnyBuilder = Builder<any, AnyDef>;
|
|
214
|
-
declare class EdgeStoreBuilder<TCtx = Record<string, never>> {
|
|
215
|
-
context<TNewContext extends AnyContext>(): EdgeStoreBuilder<TNewContext>;
|
|
216
|
-
create(): {
|
|
217
|
-
/**
|
|
218
|
-
* Builder object for creating an image bucket
|
|
219
|
-
*/
|
|
220
|
-
imageBucket(config?: BucketConfig | undefined): Builder<TCtx, {
|
|
221
|
-
type: "IMAGE";
|
|
222
|
-
input: z.ZodNever;
|
|
223
|
-
path: [];
|
|
224
|
-
metadata: () => Record<string, never>;
|
|
225
|
-
bucketConfig?: BucketConfig | undefined;
|
|
226
|
-
accessControl?: AccessControlSchema<any, any> | undefined;
|
|
227
|
-
beforeUpload?: BeforeUploadFn<any, any> | undefined;
|
|
228
|
-
beforeDelete?: BeforeDeleteFn<any, any> | undefined;
|
|
229
|
-
}>;
|
|
230
|
-
/**
|
|
231
|
-
* Builder object for creating a file bucket
|
|
232
|
-
*/
|
|
233
|
-
fileBucket(config?: BucketConfig | undefined): Builder<TCtx, {
|
|
234
|
-
type: "FILE";
|
|
235
|
-
input: z.ZodNever;
|
|
236
|
-
path: [];
|
|
237
|
-
metadata: () => Record<string, never>;
|
|
238
|
-
bucketConfig?: BucketConfig | undefined;
|
|
239
|
-
accessControl?: AccessControlSchema<any, any> | undefined;
|
|
240
|
-
beforeUpload?: BeforeUploadFn<any, any> | undefined;
|
|
241
|
-
beforeDelete?: BeforeDeleteFn<any, any> | undefined;
|
|
242
|
-
}>;
|
|
243
|
-
/**
|
|
244
|
-
* Create a router
|
|
245
|
-
*/
|
|
246
|
-
router: <TBuckets extends Record<string, Builder<TCtx, AnyDef>>>(buckets: TBuckets) => {
|
|
247
|
-
$config: {
|
|
248
|
-
ctx: TCtx;
|
|
249
|
-
};
|
|
250
|
-
buckets: TBuckets;
|
|
251
|
-
};
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
export type EdgeStoreRouter<TCtx> = {
|
|
255
|
-
/**
|
|
256
|
-
* Only used for types
|
|
257
|
-
* @internal
|
|
258
|
-
*/
|
|
259
|
-
$config: {
|
|
260
|
-
ctx: TCtx;
|
|
261
|
-
};
|
|
262
|
-
buckets: Record<string, Builder<TCtx, AnyDef>>;
|
|
263
|
-
};
|
|
264
|
-
/**
|
|
265
|
-
* Initialize EdgeStore - be done exactly once per backend
|
|
266
|
-
*/
|
|
267
|
-
export declare const initEdgeStore: EdgeStoreBuilder<Record<string, never>>;
|
|
268
|
-
export {};
|
|
269
|
-
//# sourceMappingURL=bucketBuilder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bucketBuilder.d.ts","sourceRoot":"","sources":["../../../src/core/internals/bucketBuilder.ts"],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EG;AACH,eAAO,MAAM,aAAa,yCAAyB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type RecursivePathProxy = {
|
|
2
|
-
(): string;
|
|
3
|
-
ctx: any;
|
|
4
|
-
input: any;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Creates a Proxy that prints the path to the property when called.
|
|
8
|
-
*
|
|
9
|
-
* Example:
|
|
10
|
-
*
|
|
11
|
-
* ```ts
|
|
12
|
-
* const pathParamProxy = createPathParamProxy();
|
|
13
|
-
* console.log(pathParamProxy.ctx.user.id());
|
|
14
|
-
* // Logs: "ctx.user.id"
|
|
15
|
-
* console.log(pathParamProxy.input.type());
|
|
16
|
-
* // Logs: "input.type"
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare function createPathParamProxy(): RecursivePathProxy;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=createPathParamProxy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createPathParamProxy.d.ts","sourceRoot":"","sources":["../../../src/core/internals/createPathParamProxy.ts"],"names":[],"mappings":"AAAA,KAAK,kBAAkB,GAAG;IACxB,IAAI,MAAM,CAAC;IACX,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,EAAE,GAAG,CAAC;CACZ,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,IAAI,kBAAkB,CAoBzD"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type EdgeStoreJsonResponse } from './EdgeStoreError';
|
|
2
|
-
export declare class EdgeStoreApiClientError extends Error {
|
|
3
|
-
readonly data: EdgeStoreJsonResponse;
|
|
4
|
-
constructor(opts: {
|
|
5
|
-
response: EdgeStoreJsonResponse;
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=EdgeStoreApiClientError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeStoreApiClientError.d.ts","sourceRoot":"","sources":["../../../src/libs/errors/EdgeStoreApiClientError.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAE9D,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,SAAgB,IAAI,EAAE,qBAAqB,CAAC;gBAEhC,IAAI,EAAE;QAAE,QAAQ,EAAE,qBAAqB,CAAA;KAAE;CAMtD"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { type Simplify } from '../../types';
|
|
2
|
-
export declare const EDGE_STORE_ERROR_CODES: {
|
|
3
|
-
readonly BAD_REQUEST: 400;
|
|
4
|
-
readonly FILE_TOO_LARGE: 400;
|
|
5
|
-
readonly MIME_TYPE_NOT_ALLOWED: 400;
|
|
6
|
-
readonly UNAUTHORIZED: 401;
|
|
7
|
-
readonly UPLOAD_NOT_ALLOWED: 403;
|
|
8
|
-
readonly DELETE_NOT_ALLOWED: 403;
|
|
9
|
-
readonly CREATE_CONTEXT_ERROR: 500;
|
|
10
|
-
readonly SERVER_ERROR: 500;
|
|
11
|
-
};
|
|
12
|
-
export type EdgeStoreErrorCodeKey = keyof typeof EDGE_STORE_ERROR_CODES;
|
|
13
|
-
export type EdgeStoreErrorDetails<TCode extends EdgeStoreErrorCodeKey> = TCode extends 'FILE_TOO_LARGE' ? {
|
|
14
|
-
maxFileSize: number;
|
|
15
|
-
fileSize: number;
|
|
16
|
-
} : TCode extends 'MIME_TYPE_NOT_ALLOWED' ? {
|
|
17
|
-
allowedMimeTypes: string[];
|
|
18
|
-
mimeType: string;
|
|
19
|
-
} : never;
|
|
20
|
-
export type EdgeStoreJsonResponse = Simplify<{
|
|
21
|
-
message: string;
|
|
22
|
-
code: 'FILE_TOO_LARGE';
|
|
23
|
-
details: EdgeStoreErrorDetails<'FILE_TOO_LARGE'>;
|
|
24
|
-
} | {
|
|
25
|
-
message: string;
|
|
26
|
-
code: 'MIME_TYPE_NOT_ALLOWED';
|
|
27
|
-
details: EdgeStoreErrorDetails<'MIME_TYPE_NOT_ALLOWED'>;
|
|
28
|
-
} | {
|
|
29
|
-
message: string;
|
|
30
|
-
code: Exclude<EdgeStoreErrorCodeKey, 'FILE_TOO_LARGE' | 'MIME_TYPE_NOT_ALLOWED'>;
|
|
31
|
-
}>;
|
|
32
|
-
declare class EdgeStoreError<TCode extends EdgeStoreErrorCodeKey> extends Error {
|
|
33
|
-
readonly cause?: Error;
|
|
34
|
-
readonly code: TCode;
|
|
35
|
-
readonly level: 'error' | 'warn';
|
|
36
|
-
readonly details: EdgeStoreErrorDetails<TCode>;
|
|
37
|
-
constructor(opts: {
|
|
38
|
-
message: string;
|
|
39
|
-
code: TCode;
|
|
40
|
-
cause?: Error;
|
|
41
|
-
} & (EdgeStoreErrorDetails<TCode> extends undefined ? object : {
|
|
42
|
-
details: EdgeStoreErrorDetails<TCode>;
|
|
43
|
-
}));
|
|
44
|
-
formattedMessage(): string;
|
|
45
|
-
formattedJson(): EdgeStoreJsonResponse;
|
|
46
|
-
}
|
|
47
|
-
export default EdgeStoreError;
|
|
48
|
-
//# sourceMappingURL=EdgeStoreError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeStoreError.d.ts","sourceRoot":"","sources":["../../../src/libs/errors/EdgeStoreError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,eAAO,MAAM,sBAAsB;;;;;;;;;CASzB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,sBAAsB,CAAC;AAExE,MAAM,MAAM,qBAAqB,CAAC,KAAK,SAAS,qBAAqB,IACnE,KAAK,SAAS,gBAAgB,GAC1B;IACE,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB,GACD,KAAK,SAAS,uBAAuB,GACrC;IACE,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB,GACD,KAAK,CAAC;AAEZ,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CACxC;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;CAClD,GACD;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,qBAAqB,CAAC,uBAAuB,CAAC,CAAC;CACzD,GACD;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CACX,qBAAqB,EACrB,gBAAgB,GAAG,uBAAuB,CAC3C,CAAC;CACH,CACJ,CAAC;AAEF,cAAM,cAAc,CAAC,KAAK,SAAS,qBAAqB,CAAE,SAAQ,KAAK;IACrE,SAAgB,KAAK,CAAC,EAAE,KAAK,CAAC;IAC9B,SAAgB,IAAI,EAAE,KAAK,CAAC;IAC5B,SAAgB,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;IACxC,SAAgB,OAAO,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;gBAGpD,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,KAAK,CAAC;QACZ,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,GAAG,CAAC,qBAAqB,CAAC,KAAK,CAAC,SAAS,SAAS,GAC/C,MAAM,GACN;QACE,OAAO,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;KACvC,CAAC;IAWR,gBAAgB,IAAI,MAAM;IAM1B,aAAa,IAAI,qBAAqB;CAQvC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/dist/providers/index.js
DELETED
package/dist/providers/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { type AnyBuilder, type AnyMetadata, type EdgeStoreRouter } from '../core/internals/bucketBuilder';
|
|
2
|
-
import { type MaybePromise } from '../types';
|
|
3
|
-
export type InitParams = {
|
|
4
|
-
ctx: any;
|
|
5
|
-
router: EdgeStoreRouter<any>;
|
|
6
|
-
};
|
|
7
|
-
export type InitRes = {
|
|
8
|
-
token?: string;
|
|
9
|
-
};
|
|
10
|
-
export type GetFileParams = {
|
|
11
|
-
url: string;
|
|
12
|
-
};
|
|
13
|
-
export type GetFileRes = {
|
|
14
|
-
url: string;
|
|
15
|
-
size: number;
|
|
16
|
-
uploadedAt: Date;
|
|
17
|
-
path: {
|
|
18
|
-
[key: string]: string;
|
|
19
|
-
};
|
|
20
|
-
metadata: {
|
|
21
|
-
[key: string]: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export type RequestUploadParams = {
|
|
25
|
-
multipart?: {
|
|
26
|
-
uploadId?: string;
|
|
27
|
-
parts: number[];
|
|
28
|
-
};
|
|
29
|
-
bucketName: string;
|
|
30
|
-
bucketType: string;
|
|
31
|
-
fileInfo: {
|
|
32
|
-
size: number;
|
|
33
|
-
extension: string;
|
|
34
|
-
isPublic: boolean;
|
|
35
|
-
fileName?: string;
|
|
36
|
-
path: {
|
|
37
|
-
key: string;
|
|
38
|
-
value: string;
|
|
39
|
-
}[];
|
|
40
|
-
metadata: AnyMetadata;
|
|
41
|
-
replaceTargetUrl?: string;
|
|
42
|
-
temporary: boolean;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export type RequestUploadPartsParams = {
|
|
46
|
-
multipart: {
|
|
47
|
-
uploadId: string;
|
|
48
|
-
parts: number[];
|
|
49
|
-
};
|
|
50
|
-
path: string;
|
|
51
|
-
};
|
|
52
|
-
export type RequestUploadPartsRes = {
|
|
53
|
-
multipart: {
|
|
54
|
-
uploadId: string;
|
|
55
|
-
parts: {
|
|
56
|
-
partNumber: number;
|
|
57
|
-
uploadUrl: string;
|
|
58
|
-
}[];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
export type CompleteMultipartUploadParams = {
|
|
62
|
-
uploadId: string;
|
|
63
|
-
key: string;
|
|
64
|
-
parts: {
|
|
65
|
-
partNumber: number;
|
|
66
|
-
eTag: string;
|
|
67
|
-
}[];
|
|
68
|
-
};
|
|
69
|
-
export type CompleteMultipartUploadRes = {
|
|
70
|
-
success: boolean;
|
|
71
|
-
};
|
|
72
|
-
export type RequestUploadRes = {
|
|
73
|
-
uploadUrl: string;
|
|
74
|
-
accessUrl: string;
|
|
75
|
-
thumbnailUrl?: string | null;
|
|
76
|
-
} | {
|
|
77
|
-
multipart: {
|
|
78
|
-
key: string;
|
|
79
|
-
uploadId: string;
|
|
80
|
-
partSize: number;
|
|
81
|
-
totalParts: number;
|
|
82
|
-
parts: {
|
|
83
|
-
partNumber: number;
|
|
84
|
-
uploadUrl: string;
|
|
85
|
-
}[];
|
|
86
|
-
};
|
|
87
|
-
accessUrl: string;
|
|
88
|
-
thumbnailUrl?: string | null;
|
|
89
|
-
};
|
|
90
|
-
export type ConfirmUpload = {
|
|
91
|
-
bucket: AnyBuilder;
|
|
92
|
-
url: string;
|
|
93
|
-
};
|
|
94
|
-
export type ConfirmUploadRes = {
|
|
95
|
-
success: boolean;
|
|
96
|
-
};
|
|
97
|
-
export type DeleteFileParams = {
|
|
98
|
-
bucket: AnyBuilder;
|
|
99
|
-
url: string;
|
|
100
|
-
};
|
|
101
|
-
export type DeleteFileRes = {
|
|
102
|
-
success: boolean;
|
|
103
|
-
};
|
|
104
|
-
export type Provider = {
|
|
105
|
-
init: (params: InitParams) => MaybePromise<InitRes>;
|
|
106
|
-
getBaseUrl: () => MaybePromise<string>;
|
|
107
|
-
getFile: (params: GetFileParams) => MaybePromise<GetFileRes>;
|
|
108
|
-
requestUpload: (params: RequestUploadParams) => MaybePromise<RequestUploadRes>;
|
|
109
|
-
requestUploadParts: (params: RequestUploadPartsParams) => MaybePromise<RequestUploadPartsRes>;
|
|
110
|
-
completeMultipartUpload: (params: CompleteMultipartUploadParams) => MaybePromise<CompleteMultipartUploadRes>;
|
|
111
|
-
confirmUpload: (params: ConfirmUpload) => MaybePromise<ConfirmUploadRes>;
|
|
112
|
-
deleteFile: (params: DeleteFileParams) => MaybePromise<DeleteFileRes>;
|
|
113
|
-
};
|
|
114
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/providers/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,GAAG,CAAC;IACT,MAAM,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,IAAI,CAAC;IACjB,IAAI,EAAE;QACJ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,QAAQ,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,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EAAE,aAAa,KAAK,YAAY,CAAC,gBAAgB,CAAC,CAAC;IACzE,UAAU,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,YAAY,CAAC,aAAa,CAAC,CAAC;CACvE,CAAC"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal
|
|
3
|
-
*/
|
|
4
|
-
export type identity<TType> = TType;
|
|
5
|
-
export type InferOptional<TType, TKeys extends keyof TType> = Omit<TType, TKeys> & Partial<Pick<TType, TKeys>>;
|
|
6
|
-
export type UndefinedKeys<TType> = {
|
|
7
|
-
[K in keyof TType]: undefined extends TType[K] ? K : never;
|
|
8
|
-
}[keyof TType];
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export type FlatOverwrite<TType, TWith> = InferOptional<{
|
|
13
|
-
[TKey in keyof TType | keyof TWith]: TKey extends keyof TWith ? TWith[TKey] : TKey extends keyof TType ? TType[TKey] : never;
|
|
14
|
-
}, UndefinedKeys<TType> | UndefinedKeys<TWith>>;
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
export type IntersectionError<TKey extends string> = `The property '${TKey}' in your router collides with a built-in method, rename this router or procedure on your backend.`;
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
export type ProtectedIntersection<TType, TWith> = keyof TType & keyof TWith extends never ? TType & TWith : IntersectionError<string & keyof TType & keyof TWith>;
|
|
23
|
-
/**
|
|
24
|
-
* @public
|
|
25
|
-
*/
|
|
26
|
-
export type Maybe<TType> = TType | null | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
30
|
-
export type ThenArg<TType> = TType extends PromiseLike<infer U> ? ThenArg<U> : TType;
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
* @see https://github.com/ianstormtaylor/superstruct/blob/7973400cd04d8ad92bbdc2b6f35acbfb3c934079/src/utils.ts#L323-L325
|
|
34
|
-
*/
|
|
35
|
-
export type Simplify<TType> = TType extends any[] | Date ? TType : {
|
|
36
|
-
[K in keyof TType]: TType[K];
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
export type Prettify<TType> = {
|
|
42
|
-
[K in keyof TType]: TType[K];
|
|
43
|
-
} & {};
|
|
44
|
-
/**
|
|
45
|
-
* @public
|
|
46
|
-
*/
|
|
47
|
-
export type Dict<TType> = Record<string, TType | undefined>;
|
|
48
|
-
/**
|
|
49
|
-
* @public
|
|
50
|
-
*/
|
|
51
|
-
export type MaybePromise<TType> = Promise<TType> | TType;
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*
|
|
55
|
-
* Creates a "lower-priority" type inference.
|
|
56
|
-
* https://github.com/microsoft/TypeScript/issues/14829#issuecomment-322267089
|
|
57
|
-
*/
|
|
58
|
-
export type InferLast<TType> = TType & {
|
|
59
|
-
[KeyType in keyof TType]: TType[KeyType];
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
export type inferAsyncReturnType<TFunction extends (...args: any) => any> = ThenArg<ReturnType<TFunction>>;
|
|
65
|
-
export type FilterKeys<TObj extends object, TFilter> = {
|
|
66
|
-
[TKey in keyof TObj]: TObj[TKey] extends TFilter ? TKey : never;
|
|
67
|
-
}[keyof TObj];
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
export type Filter<TObj extends object, TFilter> = Pick<TObj, FilterKeys<TObj, TFilter>>;
|
|
72
|
-
/**
|
|
73
|
-
* Unwrap return type if the type is a function (sync or async), else use the type as is
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
export type Unwrap<TType> = TType extends (...args: any[]) => infer R ? ThenArg<R> : TType;
|
|
77
|
-
/**
|
|
78
|
-
* Makes the object recursively optional.
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
|
-
export type DeepPartial<TObject> = TObject extends object ? {
|
|
82
|
-
[P in keyof TObject]?: DeepPartial<TObject[P]>;
|
|
83
|
-
} : TObject;
|
|
84
|
-
/**
|
|
85
|
-
* Get the keys of a union type.
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
export type KeysOfUnion<TUnion> = TUnion extends TUnion ? keyof TUnion extends string ? keyof TUnion : string : never;
|
|
89
|
-
/**
|
|
90
|
-
* Unify a union of objects into a single object.
|
|
91
|
-
* @internal
|
|
92
|
-
*/
|
|
93
|
-
export type UnifyUnion<TUnion> = Simplify<(TUnion extends any ? (k: TUnion) => void : never) extends (k: infer I) => void ? I : never>;
|
|
94
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,KAAK,IAAI,KAAK,CAAC;AAEpC,MAAM,MAAM,aAAa,CAAC,KAAK,EAAE,KAAK,SAAS,MAAM,KAAK,IAAI,IAAI,CAChE,KAAK,EACL,KAAK,CACN,GACC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAE9B,MAAM,MAAM,aAAa,CAAC,KAAK,IAAI;KAChC,CAAC,IAAI,MAAM,KAAK,GAAG,SAAS,SAAS,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK;CAC3D,CAAC,MAAM,KAAK,CAAC,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,KAAK,EAAE,KAAK,IAAI,aAAa,CACrD;KACG,IAAI,IAAI,MAAM,KAAK,GAAG,MAAM,KAAK,GAAG,IAAI,SAAS,MAAM,KAAK,GACzD,KAAK,CAAC,IAAI,CAA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