wabe 0.6.2 → 0.6.4
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.d.ts +20 -7
- package/dist/index.js +3576 -5830
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -408,8 +408,18 @@ export declare class DatabaseController<T extends WabeTypes> {
|
|
|
408
408
|
}>;
|
|
409
409
|
selectWithoutPointers: Select;
|
|
410
410
|
};
|
|
411
|
-
_isRelationField(
|
|
412
|
-
|
|
411
|
+
_isRelationField({ pointerField, currentClassName, context, originClassName, }: {
|
|
412
|
+
pointerField: string;
|
|
413
|
+
originClassName: string;
|
|
414
|
+
context: WabeContext<T>;
|
|
415
|
+
currentClassName?: string;
|
|
416
|
+
}): boolean | undefined;
|
|
417
|
+
_isPointerField({ pointerField, currentClassName, context, originClassName, }: {
|
|
418
|
+
originClassName: string;
|
|
419
|
+
context: WabeContext<T>;
|
|
420
|
+
pointerField: string;
|
|
421
|
+
currentClassName?: string;
|
|
422
|
+
}): boolean | undefined;
|
|
413
423
|
_getWhereObjectWithPointerOrRelation<U extends keyof T["types"]>(className: U, where: WhereType<T, U>, context: WabeContext<T>): Promise<Partial<{
|
|
414
424
|
[P in keyof T["types"][U]]: (T["types"][U][P] extends infer T_1 ? T_1 extends T["types"][U][P] ? T_1 extends string | number | boolean ? true : false : never : never) extends false ? Partial<T["types"][U][P]> extends infer T_2 ? {
|
|
415
425
|
[P_1 in keyof T_2]: (Partial<T["types"][U][P]>[P_1] extends infer T_3 ? T_3 extends Partial<T["types"][U][P]>[P_1] ? T_3 extends string | number | boolean ? true : false : never : never) extends false ? Partial<Partial<T["types"][U][P]>[P_1]> extends infer T_4 ? {
|
|
@@ -940,23 +950,25 @@ export declare const generateCodegen: ({ schema, path, graphqlSchema, }: {
|
|
|
940
950
|
}) => Promise<void>;
|
|
941
951
|
export declare class FileDevAdapter implements FileAdapter {
|
|
942
952
|
private basePath;
|
|
943
|
-
rootPath
|
|
944
|
-
constructor(basePath: string);
|
|
953
|
+
private rootPath;
|
|
945
954
|
uploadFile(file: File | Blob): Promise<void>;
|
|
946
|
-
readFile(fileName: string): Promise<string | null>;
|
|
955
|
+
readFile(fileName: string, options?: ReadFileOptions): Promise<string | null>;
|
|
947
956
|
deleteFile(fileName: string): Promise<void>;
|
|
948
957
|
}
|
|
949
958
|
/**
|
|
950
959
|
* The file config contains the adapter to use to upload file
|
|
951
960
|
* @param adapter: FileAdapter
|
|
952
961
|
* @param urlCacheInSeconds: number Number of seconds to cache the url, equal to the number of seconds the url will be valid
|
|
962
|
+
* @param devDirectory: string The directory where the files will be uploaded
|
|
953
963
|
*/
|
|
954
964
|
export interface FileConfig {
|
|
955
965
|
adapter: FileAdapter;
|
|
956
966
|
urlCacheInSeconds?: number;
|
|
967
|
+
devDirectory?: string;
|
|
957
968
|
}
|
|
958
969
|
export interface ReadFileOptions {
|
|
959
970
|
urlExpiresIn?: number;
|
|
971
|
+
port?: number;
|
|
960
972
|
}
|
|
961
973
|
export interface FileAdapter {
|
|
962
974
|
/**
|
|
@@ -1284,9 +1296,10 @@ export interface AIConfig {
|
|
|
1284
1296
|
}
|
|
1285
1297
|
declare class FileController implements FileAdapter {
|
|
1286
1298
|
adapter: FileAdapter;
|
|
1287
|
-
|
|
1299
|
+
private wabe;
|
|
1300
|
+
constructor(adapter: FileAdapter, wabe: Wabe<any>);
|
|
1288
1301
|
uploadFile(file: File | Blob): Promise<void>;
|
|
1289
|
-
readFile(fileName: string): string | Promise<string | null> | null;
|
|
1302
|
+
readFile(fileName: string, options?: ReadFileOptions): string | Promise<string | null> | null;
|
|
1290
1303
|
deleteFile(fileName: string): Promise<void>;
|
|
1291
1304
|
}
|
|
1292
1305
|
export type SecurityConfig = {
|