UNPKG

projectmanager-sdk

Version:

Software development kit for the ProjectManager.com API. for TypeScript

57 lines (56 loc) 1.7 kB
/** * 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 */ /** * 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. */ export type ProjectFieldCreateDto = { /** * The name of this Field */ name: string; /** * The type of the Field. * * Attempting to create a field with any Type other than these will * return an error. * * For Dropdown Field types, specify the list of choices in the `Options` * field. * * Valid options are: * * string * * number * * date * * bool * * currency * * dropdown-single * * dropdown-multi */ type: string; /** * The short Id of this field - human readable identity */ shortId: string | null; /** * A list of options for use of this ProjectField. This is only valid if * the `Type` value is set to `Dropdown`. * * When a custom TaskField of type `DropDown` is shown to a user in the * application, they will be able to choose one of the `Options` in this * list. */ options: string[] | null; };