π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use correct types
Manav Rathi230a8a72ab3a
diff --git a/desktop/src/main/stores/watch.ts b/desktop/src/main/stores/watch.tsindex e4b2efa7ac..ee077bbcde 100644--- a/desktop/src/main/stores/watch.ts+++ b/desktop/src/main/stores/watch.ts@@ -1,44 +1,34 @@import Store, { Schema } from "electron-store";import { type FolderWatch } from "../../types/ipc";-interface WatchStoreSchema {+interface WatchStore {mappings: FolderWatch[];}-const watchStoreSchema: Schema<WatchStoreType> = {+const watchStoreSchema: Schema<WatchStore> = {mappings: {type: "array",items: {type: "object",properties: {- rootFolderName: {- type: "string",- },- uploadStrategy: {- type: "number",- },- folderPath: {- type: "string",- },+ rootFolderName: { type: "string" },+ collectionMapping: { type: "string" },+ uploadStrategy: { type: "number" },+ folderPath: { type: "string" },syncedFiles: {type: "array",items: {type: "object",properties: {- path: {- type: "string",- },- id: {- type: "number",- },+ path: { type: "string" },+ uploadedFileID: { type: "string" },+ collectionID: { type: "string" },},},},ignoredFiles: {type: "array",- items: {- type: "string",- },+ items: { type: "string" },},},},diff --git a/desktop/src/types/ipc.ts b/desktop/src/types/ipc.tsindex 1d330dc6f2..2c137f4b75 100644--- a/desktop/src/types/ipc.ts+++ b/desktop/src/types/ipc.ts@@ -11,12 +11,14 @@ export interface AppUpdate {}export interface FolderWatch {+ // TODO(MR): Is this neededrootFolderName: string;- uploadStrategy: number;+ collectionMapping: CollectionMapping;folderPath: string;syncedFiles: FolderWatchSyncedFile[];ignoredFiles: string[];}+export type CollectionMapping = "root" | "parent";export interface FolderWatchSyncedFile {path: string;