@redneckz/wildless-cms-uni-blocks 0.14.519 → 0.14.520
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/bundle/api/FileStorage.d.ts +18 -0
- package/bundle/bundle.umd.js +1 -1
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/api/FileStorage.d.ts +18 -0
- package/dist/api/FileStorage.js +60 -0
- package/dist/api/FileStorage.js.map +1 -0
- package/lib/api/FileStorage.d.ts +18 -0
- package/lib/api/FileStorage.js +58 -0
- package/lib/api/FileStorage.js.map +1 -0
- package/mobile/bundle/api/FileStorage.d.ts +18 -0
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/api/FileStorage.d.ts +18 -0
- package/mobile/dist/api/FileStorage.js +60 -0
- package/mobile/dist/api/FileStorage.js.map +1 -0
- package/mobile/lib/api/FileStorage.d.ts +18 -0
- package/mobile/lib/api/FileStorage.js +58 -0
- package/mobile/lib/api/FileStorage.js.map +1 -0
- package/mobile/src/api/FileStorage.ts +98 -0
- package/package.json +1 -1
- package/src/api/FileStorage.ts +98 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare type FileId = string;
|
|
2
|
+
export declare type ProjectId = string | number;
|
|
3
|
+
export declare type SearchParams = Record<string, string>;
|
|
4
|
+
export interface FileMeta {
|
|
5
|
+
id?: FileId;
|
|
6
|
+
path?: string;
|
|
7
|
+
timestamp?: Date;
|
|
8
|
+
size?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface SearchResult {
|
|
11
|
+
rows: FileMeta[];
|
|
12
|
+
total: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const FileStorage: {
|
|
15
|
+
getById: <T>(id: FileId) => Promise<T | null>;
|
|
16
|
+
getByName: (projectId: ProjectId, name: string) => Promise<any>;
|
|
17
|
+
find: (projectId: ProjectId, params?: SearchParams) => Promise<SearchResult>;
|
|
18
|
+
};
|
package/bundle/bundle.umd.js
CHANGED