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<undefined | INewProject>);
        del: ((workspace: {
            id: string;
        }, project: {
            id: string;
        }) => Promise<void>);
        deleteArchiveFile: ((project: {
            id: string;
        }) => Promise<void>);
        get: (<T>(id: string, data: T) => Promise<undefined | IProjectGet<T>>);
        getWithData: (<T>(id: string, data: T) => Promise<undefined | IProjectWithData<T>>);
        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>)
        • (user, workspace, project): Promise<INewProject>
        • Add

          Parameters

          • user: {
                id: string;
            }

            User

            • id: string
          • workspace: {
                id: string;
            }

            Workspace

            • id: string
          • project: {
                description?: string;
                title: string;
            }

            Project

            • Optionaldescription?: string
            • title: string

          Returns Promise<INewProject>

          New project

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

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string

          Returns Promise<ReadStream>

          Read stream

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

          Parameters

          • user: {
                id: string;
            }
            • id: string
          • workspace: {
                id: string;
            }

            Workspace

            • id: string
          • project: {
                id: string;
            }

            Project

            • id: string

          Returns Promise<undefined | INewProject>

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

          Parameters

          • workspace: {
                id: string;
            }

            Workspace

            • id: string
          • project: {
                id: string;
            }

            Project

            • id: string

          Returns Promise<void>

    • deleteArchiveFile: ((project: {
          id: string;
      }) => Promise<void>)
        • (project): Promise<void>
        • Delete archive file

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string

          Returns Promise<void>

    • get: (<T>(id: string, data: T) => Promise<undefined | IProjectGet<T>>)
    • getWithData: (<T>(id: string, data: T) => Promise<undefined | IProjectWithData<T>>)
    • unarchiveFromFile: ((project: {
          id: string;
      }, buffer: Buffer) => Promise<void>)
        • (project, buffer): Promise<void>
        • Unarchive from file

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string
          • buffer: Buffer

            Buffer

          Returns Promise<void>

    • unarchiveFromServer: ((project: {
          id: string;
      }) => Promise<void>)
        • (project): Promise<void>
        • Unarchive from server

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string

          Returns Promise<void>

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

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin