From 9cd153c2d2bdb0d237626d52687bb705c0f7e699 Mon Sep 17 00:00:00 2001 From: brxken128 <77554505+brxken128@users.noreply.github.com> Date: Mon, 23 Jan 2023 11:05:10 +0000 Subject: [PATCH] update bindings --- packages/client/src/core.ts | 173 ++---------------------------------- 1 file changed, 7 insertions(+), 166 deletions(-) diff --git a/packages/client/src/core.ts b/packages/client/src/core.ts index 52bf8ee76..2fbf2dd26 100644 --- a/packages/client/src/core.ts +++ b/packages/client/src/core.ts @@ -2,146 +2,6 @@ // This file was generated by [rspc](https://github.com/oscartbeaumont/rspc). Do not edit this file manually. export type Procedures = { -<<<<<<< HEAD - queries: - | { key: 'buildInfo'; input: never; result: BuildInfo } - | { - key: 'files.get'; - input: LibraryArgs; - result: { - id: number; - cas_id: string; - integrity_checksum: string | null; - name: string | null; - extension: string | null; - kind: number; - size_in_bytes: string; - key_id: number | null; - hidden: boolean; - favorite: boolean; - important: boolean; - has_thumbnail: boolean; - has_thumbstrip: boolean; - has_video_preview: boolean; - ipfs_id: string | null; - note: string | null; - date_created: string; - date_modified: string; - date_indexed: string; - file_paths: Array; - media_data: MediaData | null; - } | null; - } - | { key: 'jobs.getHistory'; input: LibraryArgs; result: Array } - | { key: 'jobs.getRunning'; input: LibraryArgs; result: Array } - | { key: 'jobs.isRunning'; input: LibraryArgs; result: boolean } - | { key: 'keys.getDefault'; input: LibraryArgs; result: string | null } - | { key: 'keys.getKey'; input: LibraryArgs; result: string } - | { key: 'keys.hasMasterPassword'; input: LibraryArgs; result: boolean } - | { key: 'keys.isKeyManagerUnlocking'; input: LibraryArgs; result: boolean } - | { key: 'keys.list'; input: LibraryArgs; result: Array } - | { key: 'keys.listMounted'; input: LibraryArgs; result: Array } - | { key: 'library.getStatistics'; input: LibraryArgs; result: Statistics } - | { key: 'library.list'; input: never; result: Array } - | { key: 'locations.getById'; input: LibraryArgs; result: Location | null } - | { - key: 'locations.getExplorerData'; - input: LibraryArgs; - result: ExplorerData; - } - | { key: 'locations.indexer_rules.get'; input: LibraryArgs; result: IndexerRule } - | { key: 'locations.indexer_rules.list'; input: LibraryArgs; result: Array } - | { - key: 'locations.list'; - input: LibraryArgs; - result: Array<{ - id: number; - pub_id: Array; - node_id: number; - name: string | null; - local_path: string | null; - total_capacity: number | null; - available_capacity: number | null; - filesystem: string | null; - disk_type: number | null; - is_removable: boolean | null; - is_online: boolean; - is_archived: boolean; - date_created: string; - node: Node; - }>; - } - | { key: 'nodeState'; input: never; result: NodeState } - | { key: 'normi.composite'; input: never; result: NormalisedCompositeId } - | { key: 'normi.org'; input: never; result: NormalisedOrganisation } - | { key: 'normi.user'; input: never; result: NormalisedUser } - | { key: 'normi.userSync'; input: never; result: NormalisedUser } - | { key: 'normi.version'; input: never; result: string } - | { key: 'tags.get'; input: LibraryArgs; result: Tag | null } - | { key: 'tags.getExplorerData'; input: LibraryArgs; result: ExplorerData } - | { key: 'tags.getForObject'; input: LibraryArgs; result: Array } - | { key: 'tags.list'; input: LibraryArgs; result: Array } - | { key: 'volumes.list'; input: never; result: Array }; - mutations: - | { key: 'files.copyFiles'; input: LibraryArgs; result: null } - | { key: 'files.cutFiles'; input: LibraryArgs; result: null } - | { key: 'files.decryptFiles'; input: LibraryArgs; result: null } - | { key: 'files.delete'; input: LibraryArgs; result: null } - | { key: 'files.deleteFiles'; input: LibraryArgs; result: null } - | { key: 'files.duplicateFiles'; input: LibraryArgs; result: null } - | { key: 'files.encryptFiles'; input: LibraryArgs; result: null } - | { key: 'files.eraseFiles'; input: LibraryArgs; result: null } - | { key: 'files.setFavorite'; input: LibraryArgs; result: null } - | { key: 'files.setNote'; input: LibraryArgs; result: null } - | { key: 'jobs.clearAll'; input: LibraryArgs; result: null } - | { - key: 'jobs.generateThumbsForLocation'; - input: LibraryArgs; - result: null; - } - | { key: 'jobs.identifyUniqueFiles'; input: LibraryArgs; result: null } - | { key: 'jobs.objectValidator'; input: LibraryArgs; result: null } - | { key: 'keys.add'; input: LibraryArgs; result: null } - | { key: 'keys.backupKeystore'; input: LibraryArgs; result: null } - | { - key: 'keys.changeMasterPassword'; - input: LibraryArgs; - result: null; - } - | { key: 'keys.clearMasterPassword'; input: LibraryArgs; result: null } - | { key: 'keys.deleteFromLibrary'; input: LibraryArgs; result: null } - | { key: 'keys.mount'; input: LibraryArgs; result: null } - | { key: 'keys.restoreKeystore'; input: LibraryArgs; result: number } - | { key: 'keys.setDefault'; input: LibraryArgs; result: null } - | { key: 'keys.setMasterPassword'; input: LibraryArgs; result: null } - | { key: 'keys.syncKeyToLibrary'; input: LibraryArgs; result: null } - | { key: 'keys.unmount'; input: LibraryArgs; result: null } - | { key: 'keys.unmountAll'; input: LibraryArgs; result: null } - | { key: 'keys.updateAutomountStatus'; input: LibraryArgs; result: null } - | { key: 'library.create'; input: CreateLibraryArgs; result: LibraryConfigWrapped } - | { key: 'library.delete'; input: string; result: null } - | { key: 'library.edit'; input: EditLibraryArgs; result: null } - | { key: 'locations.addLibrary'; input: LibraryArgs; result: null } - | { key: 'locations.create'; input: LibraryArgs; result: null } - | { key: 'locations.delete'; input: LibraryArgs; result: null } - | { key: 'locations.fullRescan'; input: LibraryArgs; result: null } - | { - key: 'locations.indexer_rules.create'; - input: LibraryArgs; - result: IndexerRule; - } - | { key: 'locations.indexer_rules.delete'; input: LibraryArgs; result: null } - | { key: 'locations.quickRescan'; input: LibraryArgs; result: null } - | { key: 'locations.relink'; input: LibraryArgs; result: null } - | { key: 'locations.update'; input: LibraryArgs; result: null } - | { key: 'tags.assign'; input: LibraryArgs; result: null } - | { key: 'tags.create'; input: LibraryArgs; result: Tag } - | { key: 'tags.delete'; input: LibraryArgs; result: null } - | { key: 'tags.update'; input: LibraryArgs; result: null }; - subscriptions: - | { key: 'invalidateQuery'; input: never; result: InvalidateOperationEvent } - | { key: 'jobs.newThumbnail'; input: LibraryArgs; result: string }; -======= queries: { key: "buildInfo", input: never, result: BuildInfo } | { key: "files.get", input: LibraryArgs, result: { id: number, cas_id: string, integrity_checksum: string | null, name: string | null, extension: string | null, kind: number, size_in_bytes: string, key_id: number | null, hidden: boolean, favorite: boolean, important: boolean, has_thumbnail: boolean, has_thumbstrip: boolean, has_video_preview: boolean, ipfs_id: string | null, note: string | null, date_created: string, date_modified: string, date_indexed: string, file_paths: Array, media_data: MediaData | null } | null } | @@ -173,9 +33,12 @@ export type Procedures = { { key: "tags.list", input: LibraryArgs, result: Array } | { key: "volumes.list", input: never, result: Array }, mutations: + { key: "files.copyFiles", input: LibraryArgs, result: null } | + { key: "files.cutFiles", input: LibraryArgs, result: null } | { key: "files.decryptFiles", input: LibraryArgs, result: null } | { key: "files.delete", input: LibraryArgs, result: null } | { key: "files.deleteFiles", input: LibraryArgs, result: null } | + { key: "files.duplicateFiles", input: LibraryArgs, result: null } | { key: "files.encryptFiles", input: LibraryArgs, result: null } | { key: "files.eraseFiles", input: LibraryArgs, result: null } | { key: "files.setFavorite", input: LibraryArgs, result: null } | @@ -216,7 +79,6 @@ export type Procedures = { subscriptions: { key: "invalidateQuery", input: never, result: InvalidateOperationEvent } | { key: "jobs.newThumbnail", input: LibraryArgs, result: string } ->>>>>>> main }; export type Algorithm = "XChaCha20Poly1305" | "Aes256Gcm" @@ -237,32 +99,11 @@ export interface ExplorerData { context: ExplorerContext, items: Array>>>>>> main export interface FileDeleterJobInit { location_id: number, path_id: number } @@ -270,7 +111,7 @@ export interface FileEncryptorJobInit { location_id: number, path_id: number, ke export interface FileEraserJobInit { location_id: number, path_id: number, passes: number } -export interface FilePath { id: number, is_dir: boolean, location_id: number, materialized_path: string, name: string, extension: string | null, object_id: number | null, parent_id: number | null, key_id: number | null, date_created: string, date_modified: string, date_indexed: string } +export interface FilePath { id: number, is_dir: boolean, location_id: number, materialized_path: string, name: string, extension: string | null, object_id: number | null, parent_id: number | null, key_id: number | null, pending: boolean, date_created: string, date_modified: string, date_indexed: string } export interface GenerateThumbsForLocationArgs { id: number, path: string } @@ -356,6 +197,6 @@ export interface TagUpdateArgs { id: number, name: string | null, color: string export interface Volume { name: string, mount_point: string, total_capacity: bigint, available_capacity: bigint, is_removable: boolean, disk_type: string | null, file_system: string | null, is_root_filesystem: boolean } -export interface FilePathWithObject { id: number, is_dir: boolean, location_id: number, materialized_path: string, name: string, extension: string | null, object_id: number | null, parent_id: number | null, key_id: number | null, date_created: string, date_modified: string, date_indexed: string, object: Object | null } +export interface FilePathWithObject { id: number, is_dir: boolean, location_id: number, materialized_path: string, name: string, extension: string | null, object_id: number | null, parent_id: number | null, key_id: number | null, pending: boolean, date_created: string, date_modified: string, date_indexed: string, object: Object | null } export interface ObjectWithFilePaths { id: number, cas_id: string, integrity_checksum: string | null, name: string | null, extension: string | null, kind: number, size_in_bytes: string, key_id: number | null, hidden: boolean, favorite: boolean, important: boolean, has_thumbnail: boolean, has_thumbstrip: boolean, has_video_preview: boolean, ipfs_id: string | null, note: string | null, date_created: string, date_modified: string, date_indexed: string, file_paths: Array }