wabe 0.6.2 → 0.6.3
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 +8 -5
- package/dist/index.js +3529 -5798
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -940,23 +940,25 @@ export declare const generateCodegen: ({ schema, path, graphqlSchema, }: {
|
|
|
940
940
|
}) => Promise<void>;
|
|
941
941
|
export declare class FileDevAdapter implements FileAdapter {
|
|
942
942
|
private basePath;
|
|
943
|
-
rootPath
|
|
944
|
-
constructor(basePath: string);
|
|
943
|
+
private rootPath;
|
|
945
944
|
uploadFile(file: File | Blob): Promise<void>;
|
|
946
|
-
readFile(fileName: string): Promise<string | null>;
|
|
945
|
+
readFile(fileName: string, options?: ReadFileOptions): Promise<string | null>;
|
|
947
946
|
deleteFile(fileName: string): Promise<void>;
|
|
948
947
|
}
|
|
949
948
|
/**
|
|
950
949
|
* The file config contains the adapter to use to upload file
|
|
951
950
|
* @param adapter: FileAdapter
|
|
952
951
|
* @param urlCacheInSeconds: number Number of seconds to cache the url, equal to the number of seconds the url will be valid
|
|
952
|
+
* @param devDirectory: string The directory where the files will be uploaded
|
|
953
953
|
*/
|
|
954
954
|
export interface FileConfig {
|
|
955
955
|
adapter: FileAdapter;
|
|
956
956
|
urlCacheInSeconds?: number;
|
|
957
|
+
devDirectory?: string;
|
|
957
958
|
}
|
|
958
959
|
export interface ReadFileOptions {
|
|
959
960
|
urlExpiresIn?: number;
|
|
961
|
+
port?: number;
|
|
960
962
|
}
|
|
961
963
|
export interface FileAdapter {
|
|
962
964
|
/**
|
|
@@ -1284,9 +1286,10 @@ export interface AIConfig {
|
|
|
1284
1286
|
}
|
|
1285
1287
|
declare class FileController implements FileAdapter {
|
|
1286
1288
|
adapter: FileAdapter;
|
|
1287
|
-
|
|
1289
|
+
private wabe;
|
|
1290
|
+
constructor(adapter: FileAdapter, wabe: Wabe<any>);
|
|
1288
1291
|
uploadFile(file: File | Blob): Promise<void>;
|
|
1289
|
-
readFile(fileName: string): string | Promise<string | null> | null;
|
|
1292
|
+
readFile(fileName: string, options?: ReadFileOptions): string | Promise<string | null> | null;
|
|
1290
1293
|
deleteFile(fileName: string): Promise<void>;
|
|
1291
1294
|
}
|
|
1292
1295
|
export type SecurityConfig = {
|