Tanatloc documentation
    Preparing search index...

    Variable defaultConst

    default: {
        add: (
            user: { id: string },
            workspace: { id: string },
            project: { description?: string; title: string },
        ) => Promise<INewProject>;
        archive: (project: { id: string }) => Promise<ReadStream>;
        copy: (
            user: { id: string },
            workspace: { id: string },
            project: { id: string },
        ) => Promise<INewProject | undefined>;
        del: (workspace: { id: string }, project: { id: string }) => Promise<void>;
        deleteArchiveFile: (project: { id: string }) => Promise<void>;
        get: <T extends TProjectGet>(
            id: string,
            data: T,
        ) => Promise<IProjectGet<T> | undefined>;
        getWithData: <T extends TProjectGet>(
            id: string,
            data: T,
        ) => Promise<IProjectWithData<T> | undefined>;
        unarchiveFromFile: (
            project: { id: string },
            buffer: Buffer,
        ) => Promise<void>;
        unarchiveFromServer: (project: { id: string }) => Promise<void>;
        update: (project: { id: string }, data: any[]) => Promise<void>;
    } = ...

    Type Declaration

    • add: (
          user: { id: string },
          workspace: { id: string },
          project: { description?: string; title: string },
      ) => Promise<INewProject>

      Add

    • archive: (project: { id: string }) => Promise<ReadStream>

      Archive

    • copy: (
          user: { id: string },
          workspace: { id: string },
          project: { id: string },
      ) => Promise<INewProject | undefined>

      Copy

    • del: (workspace: { id: string }, project: { id: string }) => Promise<void>

      Delete

    • deleteArchiveFile: (project: { id: string }) => Promise<void>

      Delete archive file

    • get: <T extends TProjectGet>(
          id: string,
          data: T,
      ) => Promise<IProjectGet<T> | undefined>

      Get

    • getWithData: <T extends TProjectGet>(
          id: string,
          data: T,
      ) => Promise<IProjectWithData<T> | undefined>

      Get with data

    • unarchiveFromFile: (project: { id: string }, buffer: Buffer) => Promise<void>

      Unarchive from file

    • unarchiveFromServer: (project: { id: string }) => Promise<void>

      Unarchive from server

    • update: (project: { id: string }, data: any[]) => Promise<void>

      Update