Interface IProjectNeeds

interface IProjectNeeds {
    createItemInProject(project, parentFolderId, item): Promise<string>;
    createTodo(project, users, type, text, itemId, fieldId, atDate): Promise<string>;
    deleteItemInProject(project, itemId, force?): Promise<string>;
    deleteJobForProject(project, jobId, reason): Promise<string>;
    downloadJobResult(project, jobId, fileno, mode?, format?, disposition?, options?): Promise<ArrayBuffer>;
    executeInProject(project, payload): Promise<FolderAnswer>;
    getFullTreeFromProject(projectName): Promise<FancyFolder[]>;
    getItemFromProject(project, id): Promise<IItemGet>;
    getJobStatus(project, jobId, options?): Promise<JobsStatusWithUrl>;
    getProjectAudit(project, startAt?, maxResults?, deleteOnly?, tech?, auditIdMin?, auditIdMax?, noReport?, noImport?, include?, resolveRef?, itemRef?): Promise<TrimAuditList>;
    getProjectSettings(project): Promise<GetProjectSettingAck>;
    getProjectTodos(project, itemRef?, includeDone?, includeAllUsers?, includeFuture?): Promise<GetTodosAck>;
    getUrlInfo(): [string, string];
    moveItemsInProject(project, folderId, itemIds): Promise<string>;
    parseRefForProject(project, itemRef): IItemIdParts;
    postJobProgressForProject(project, jobId, progress, status?): Promise<string>;
    postProjectReport(project, item, format): Promise<CreateReportJobAck>;
    putProjectSetting(project, key, value): Promise<string>;
    runHookInProject(project, itemId, hookName, body): Promise<string>;
    searchIdsInProject(project, term): Promise<string[]>;
    searchItemsInProject(project, term, options?): Promise<ISearchResult[]>;
    setFieldsInProject(project, projectItemConfig, itemId, data): Promise<IItemGet>;
    updateItemInProject(project, item, currentVersion?): Promise<string>;
    uploadFileToProject(project, url): Promise<AddFileAck>;
    uploadLocalFileToProject(project, axiosLib, file, progress): Promise<AddFileAck>;
}

Implemented by

Methods

  • Parameters

    • project: string
    • users: string[]
    • type: string
    • text: string
    • itemId: string
    • fieldId: null | number
    • atDate: Date

    Returns Promise<string>

  • Parameters

    • project: string
    • itemId: string
    • Optional force: boolean

    Returns Promise<string>

  • Parameters

    • project: string
    • jobId: number
    • reason: string

    Returns Promise<string>

  • Parameters

    • project: string
    • jobId: number
    • fileno: number
    • Optional mode: string
    • Optional format: string
    • Optional disposition: string
    • Optional options: unknown

    Returns Promise<ArrayBuffer>

  • Parameters

    • project: string
    • Optional startAt: number
    • Optional maxResults: number
    • Optional deleteOnly: boolean
    • Optional tech: boolean
    • Optional auditIdMin: number
    • Optional auditIdMax: number
    • Optional noReport: boolean
    • Optional noImport: boolean
    • Optional include: string
    • Optional resolveRef: boolean
    • Optional itemRef: string

    Returns Promise<TrimAuditList>

  • Parameters

    • project: string

    Returns Promise<GetProjectSettingAck>

  • Parameters

    • project: string
    • Optional itemRef: string
    • Optional includeDone: boolean
    • Optional includeAllUsers: boolean
    • Optional includeFuture: boolean

    Returns Promise<GetTodosAck>

  • Returns the base URL of the server, and the REST api endpoint.

    Returns [string, string]

    a tuple with [baseUrl, baseRestUrl]

  • Parameters

    • project: string
    • folderId: string
    • itemIds: string[]

    Returns Promise<string>

  • Parameters

    • project: string
    • jobId: number
    • progress: number
    • Optional status: string

    Returns Promise<string>

  • Parameters

    • project: string
    • key: string
    • value: string

    Returns Promise<string>

  • Parameters

    • project: string
    • itemId: string
    • hookName: string
    • body: string

    Returns Promise<string>

  • Parameters

    • project: string
    • term: string

    Returns Promise<string[]>

  • Parameters

    • project: string
    • item: IItemPut
    • Optional currentVersion: number

    Returns Promise<string>

Generated using TypeDoc