Outline the plan
This commit is contained in:
parent
75c058fc4c
commit
aa111b2a24
1 changed files with 23 additions and 4 deletions
|
@ -1,12 +1,31 @@
|
|||
import Store, { Schema } from "electron-store";
|
||||
|
||||
export interface UploadStatusStore {
|
||||
filePaths: string[];
|
||||
zipPaths: string[];
|
||||
/**
|
||||
* The name of the collection (when uploading to a singular collection) or
|
||||
* the root collection (when uploading to separate * albums) to which we
|
||||
* these uploads are meant to go to.
|
||||
*/
|
||||
collectionName: string;
|
||||
/**
|
||||
* Paths of regular files that need to be uploaded.
|
||||
*/
|
||||
filePaths: string[];
|
||||
/**
|
||||
* Paths of zip files that need to be uploaded.
|
||||
*/
|
||||
zipPaths: string[];
|
||||
/**
|
||||
* For each zip file, which of its entries (paths) within the zip file that
|
||||
* need to be uploaded.
|
||||
*/
|
||||
zipEntries: Record<string, string[]>;
|
||||
}
|
||||
|
||||
const uploadStatusSchema: Schema<UploadStatusStore> = {
|
||||
collectionName: {
|
||||
type: "string",
|
||||
},
|
||||
filePaths: {
|
||||
type: "array",
|
||||
items: {
|
||||
|
@ -19,8 +38,8 @@ const uploadStatusSchema: Schema<UploadStatusStore> = {
|
|||
type: "string",
|
||||
},
|
||||
},
|
||||
collectionName: {
|
||||
type: "string",
|
||||
zipEntries: {
|
||||
type: "object",
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue