projectmanager-sdk
Version:
Software development kit for the ProjectManager.com API. for TypeScript
94 lines (93 loc) • 4.72 kB
TypeScript
/**
* ProjectManager API for TypeScript
*
* (c) ProjectManager.com, Inc.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author ProjectManager.com <support@projectmanager.com>
* @copyright ProjectManager.com, Inc.
* @link https://github.com/projectmgr/projectmanager-sdk-typescript
*/
import { ProjectManagerClient } from "../index.js";
import { AstroResult } from "../index.js";
import { ProjectFieldDto } from "../index.js";
import { ProjectFieldCreateDto } from "../index.js";
import { UpdateProjectFieldValueDto } from "../index.js";
import { ProjectFieldValueDto } from "../index.js";
export declare class ProjectFieldClient {
private readonly client;
/**
* Internal constructor for this client library
*/
constructor(client: ProjectManagerClient);
/**
* Retrieves all ProjectFields defined within your Workspace.
*
* A ProjectField is a custom field defined within your Workspace. You can define ProjectFields
* for any integration purpose that is important to your business. Each ProjectField has a data
* type as well as options in how it is handled. ProjectFields can be edited for each Project
* within your Workspace.
*
*/
retrieveProjectFields(): Promise<AstroResult<ProjectFieldDto[]>>;
/**
* Creates a new ProjectField within your Workspace.
*
* A ProjectField is a custom field defined within your Workspace. You can define ProjectFields
* for any integration purpose that is important to your business. Each ProjectField has a data
* type as well as options in how it is handled. ProjectFields can be edited for each Project
* within your Workspace.
*
* @param body Information about the ProjectField to create
*/
createProjectField(body: ProjectFieldCreateDto): Promise<AstroResult<ProjectFieldDto>>;
/**
* Deletes an existing ProjectField within your Workspace.
*
* A ProjectField is a custom field defined within your Workspace. You can define ProjectFields
* for any integration purpose that is important to your business. Each ProjectField has a data
* type as well as options in how it is handled. ProjectFields can be edited for each Project
* within your Workspace.
*
* @param fieldId The unique identifier or short ID of this ProjectField
*/
deleteProjectField(fieldId: string): Promise<AstroResult<object>>;
/**
* Replaces the current value of a ProjectField for a specific Project within your Workspace.
*
* A ProjectField is a custom field defined within your Workspace. You can define ProjectFields
* for any integration purpose that is important to your business. Each ProjectField has a data
* type as well as options in how it is handled. ProjectFields can be edited for each Project
* within your Workspace.
*
* @param projectId The unique identifier of the Project that contains this ProjectField
* @param fieldId The unique identifier or short ID of this ProjectField
* @param body The new information for this ProjectField
*/
updateProjectFieldValue(projectId: string, fieldId: string, body: UpdateProjectFieldValueDto): Promise<AstroResult<object>>;
/**
* Retrieves the current ProjectField value for a particular Project and ProjectField.
*
* A ProjectField is a custom field defined within your Workspace. You can define ProjectFields
* for any integration purpose that is important to your business. Each ProjectField has a data
* type as well as options in how it is handled. ProjectFields can be edited for each Project
* within your Workspace.
*
* @param projectId The unique identifier of the Project of the value to retrieve
* @param fieldId The unique identifier or short ID of the ProjectField of the value to retrieve
*/
retrieveProjectFieldValue(projectId: string, fieldId: string): Promise<AstroResult<ProjectFieldValueDto>>;
/**
* Retrieves all ProjectField values for a particular Project.
*
* A ProjectField is a custom field defined within your Workspace. You can define ProjectFields
* for any integration purpose that is important to your business. Each ProjectField has a data
* type as well as options in how it is handled. ProjectFields can be edited for each Project
* within your Workspace.
*
* @param projectId The unique identifier of the Project for which we want ProjectField values
*/
retrieveAllProjectFieldValues(projectId: string): Promise<AstroResult<ProjectFieldValueDto[]>>;
}