Variable defaultConst

    default: {
        add: ((workspace: {
            id: string;
        }, project: {
            description?: string;
            title: string;
        }) => Promise<IFrontNewProject>);
        archive: ((project: {
            id: string;
        }) => Promise<ICallResponse>);
        copy: ((workspace: {
            id: string;
        }, project: {
            id: string;
        }) => Promise<IFrontNewProject>);
        del: ((workspace: {
            id: string;
        }, project: {
            id: string;
        }) => Promise<void>);
        deleteArchiveFile: ((project: {
            id: string;
        }) => Promise<ICallResponse>);
        unarchiveFromFile: ((project: {
            id: string;
        }, archive: Buffer) => Promise<ICallResponse>);
        unarchiveFromServer: ((project: {
            id: string;
        }) => Promise<ICallResponse>);
        update: ((project: {
            id: string;
        }, data: any[]) => Promise<void>);
        useProject: ((id?: string) => [DefaultData | IFrontProject, {
            errorProject: Error;
            loadingProject: boolean;
            mutateProject: ((project: IFrontMutateProject) => Promise<void>);
        }]);
        useProjects: ((ids?: string[]) => [IFrontProjects, {
            addOneProject: ((project: IFrontNewProject) => Promise<void>);
            delOneProject: ((project: IFrontMutateProjectsItem) => Promise<void>);
            errorProjects: Error;
            loadingProjects: boolean;
            mutateOneProject: ((project: IFrontMutateProjectsItem) => Promise<void>);
        }]);
    } = ...

    Type declaration

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

          Parameters

          • workspace: {
                id: string;
            }

            Workspace

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

            Project

            • Optionaldescription?: string
            • title: string

          Returns Promise<IFrontNewProject>

          New project

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

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string

          Returns Promise<ICallResponse>

          Response

    • copy: ((workspace: {
          id: string;
      }, project: {
          id: string;
      }) => Promise<IFrontNewProject>)
        • (workspace, project): Promise<IFrontNewProject>
        • Copy

          Parameters

          • workspace: {
                id: string;
            }

            Workspace

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

            Project

            • id: string

          Returns Promise<IFrontNewProject>

          Project copy

    • 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<ICallResponse>)
        • (project): Promise<ICallResponse>
        • Delete archive from server

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string

          Returns Promise<ICallResponse>

          Response

    • unarchiveFromFile: ((project: {
          id: string;
      }, archive: Buffer) => Promise<ICallResponse>)
        • (project, archive): Promise<ICallResponse>
        • Unarchive from file

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string
          • archive: Buffer

          Returns Promise<ICallResponse>

          Response

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

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string

          Returns Promise<ICallResponse>

          Response

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

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    • useProject: ((id?: string) => [DefaultData | IFrontProject, {
          errorProject: Error;
          loadingProject: boolean;
          mutateProject: ((project: IFrontMutateProject) => Promise<void>);
      }])
    • useProjects: ((ids?: string[]) => [IFrontProjects, {
          addOneProject: ((project: IFrontNewProject) => Promise<void>);
          delOneProject: ((project: IFrontMutateProjectsItem) => Promise<void>);
          errorProjects: Error;
          loadingProjects: boolean;
          mutateOneProject: ((project: IFrontMutateProjectsItem) => Promise<void>);
      }])

    Generated using TypeDoc and TypeDoc Airthium Plugin