diff --git a/CHANGELOG.md b/CHANGELOG.md index 50fa5222..a5b0f66a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an ## [Unreleased] +## [22.3.0] - 2023-10-17 +- Add `Projects`, `ProjectTemplates` and `Tasks` public routes. + ## [22.2.0] - 2023-10-11 ### Changed - Changed node version in .nvmrc and fixed vulnerable dependencies @@ -582,7 +585,8 @@ structure * Fixed `GET /goal/:id/results` error handling in case when there are no existing stages connected to specified goal * Fixed typo in lead example response (`crrency` to `currency`) -[Unreleased]: https://github.com/pipedrive/api-docs/compare/v22.2.0...HEAD +[Unreleased]: https://github.com/pipedrive/api-docs/compare/v22.3.0...HEAD +[22.3.0]: https://github.com/pipedrive/api-docs/compare/v22.2.0...v22.3.0 [22.2.0]: https://github.com/pipedrive/api-docs/compare/v22.1.0...v22.2.0 [22.1.0]: https://github.com/pipedrive/api-docs/compare/v22.0.2...v22.1.0 [22.0.2]: https://github.com/pipedrive/api-docs/compare/v22.0.1...v22.0.2 diff --git a/README.md b/README.md index be310169..1d6a3a06 100644 --- a/README.md +++ b/README.md @@ -318,6 +318,8 @@ app.get('/callback', (req, res) => { - contacts:full: Create, read, update and delete persons and organizations and their followers; all notes, files, filters. Also grants read access to contacts-related fields - products:read: Read products, its fields, files, followers and products connected to a deal - products:full: Create, read, update and delete products and its fields; add products to deals + - projects:read: Read projects and its fields, tasks and project templates + - projects:full: Create, read, update and delete projects and its fields; add projects templates and project related tasks - users:read: Read data about users (people with access to a Pipedrive account), their permissions, roles and followers - recents:read: Read all recent changes occurred in an account. Includes data about activities, activity types, deals, files, filters, notes, persons, organizations, pipelines, stages, products and users - search:read: Search across the account for deals, persons, organizations, files and products, and see details about the returned results @@ -544,6 +546,24 @@ Class | Method | HTTP request | Description *Pipedrive.ProductsApi* | [**getProducts**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#getProducts) | **GET** /products | Get all products *Pipedrive.ProductsApi* | [**searchProducts**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#searchProducts) | **GET** /products/search | Search products *Pipedrive.ProductsApi* | [**updateProduct**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#updateProduct) | **PUT** /products/{id} | Update a product +*Pipedrive.ProjectTemplatesApi* | [**getProjectTemplate**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectTemplate) | **GET** /projectTemplates/{id} | Get details of a template +*Pipedrive.ProjectTemplatesApi* | [**getProjectTemplates**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectTemplates) | **GET** /projectTemplates | Get all project templates +*Pipedrive.ProjectTemplatesApi* | [**getProjectsBoard**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectsBoard) | **GET** /projects/boards/{id} | Get details of a board +*Pipedrive.ProjectTemplatesApi* | [**getProjectsPhase**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectsPhase) | **GET** /projects/phases/{id} | Get details of a phase +*Pipedrive.ProjectsApi* | [**addProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#addProject) | **POST** /projects | Add a project +*Pipedrive.ProjectsApi* | [**archiveProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#archiveProject) | **POST** /projects/{id}/archive | Archive a project +*Pipedrive.ProjectsApi* | [**deleteProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#deleteProject) | **DELETE** /projects/{id} | Delete a project +*Pipedrive.ProjectsApi* | [**getProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProject) | **GET** /projects/{id} | Get details of a project +*Pipedrive.ProjectsApi* | [**getProjectActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectActivities) | **GET** /projects/{id}/activities | Returns project activities +*Pipedrive.ProjectsApi* | [**getProjectGroups**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectGroups) | **GET** /projects/{id}/groups | Returns project groups +*Pipedrive.ProjectsApi* | [**getProjectPlan**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectPlan) | **GET** /projects/{id}/plan | Returns project plan +*Pipedrive.ProjectsApi* | [**getProjectTasks**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectTasks) | **GET** /projects/{id}/tasks | Returns project tasks +*Pipedrive.ProjectsApi* | [**getProjects**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjects) | **GET** /projects | Get all projects +*Pipedrive.ProjectsApi* | [**getProjectsBoards**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectsBoards) | **GET** /projects/boards | Get all project boards +*Pipedrive.ProjectsApi* | [**getProjectsPhases**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectsPhases) | **GET** /projects/phases | Get project phases +*Pipedrive.ProjectsApi* | [**putProjectPlanActivity**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#putProjectPlanActivity) | **PUT** /projects/{id}/plan/activities/{activityId} | Update activity in project plan +*Pipedrive.ProjectsApi* | [**putProjectPlanTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#putProjectPlanTask) | **PUT** /projects/{id}/plan/tasks/{taskId} | Update task in project plan +*Pipedrive.ProjectsApi* | [**updateProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#updateProject) | **PUT** /projects/{id} | Update a project *Pipedrive.RecentsApi* | [**getRecents**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsApi.md#getRecents) | **GET** /recents | Get recents *Pipedrive.RolesApi* | [**addOrUpdateRoleSetting**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#addOrUpdateRoleSetting) | **POST** /roles/{id}/settings | Add or update role setting *Pipedrive.RolesApi* | [**addRole**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#addRole) | **POST** /roles | Add a role @@ -573,6 +593,11 @@ Class | Method | HTTP request | Description *Pipedrive.SubscriptionsApi* | [**getSubscriptionPayments**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#getSubscriptionPayments) | **GET** /subscriptions/{id}/payments | Get all payments of a subscription *Pipedrive.SubscriptionsApi* | [**updateRecurringSubscription**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#updateRecurringSubscription) | **PUT** /subscriptions/recurring/{id} | Update a recurring subscription *Pipedrive.SubscriptionsApi* | [**updateSubscriptionInstallment**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#updateSubscriptionInstallment) | **PUT** /subscriptions/installment/{id} | Update an installment subscription +*Pipedrive.TasksApi* | [**addTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#addTask) | **POST** /tasks | Add a task +*Pipedrive.TasksApi* | [**deleteTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#deleteTask) | **DELETE** /tasks/{id} | Delete a task +*Pipedrive.TasksApi* | [**getTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#getTask) | **GET** /tasks/{id} | Get details of a task +*Pipedrive.TasksApi* | [**getTasks**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#getTasks) | **GET** /tasks | Get all tasks +*Pipedrive.TasksApi* | [**updateTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#updateTask) | **PUT** /tasks/{id} | Update a task *Pipedrive.UserConnectionsApi* | [**getUserConnections**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserConnectionsApi.md#getUserConnections) | **GET** /userConnections | Get all user connections *Pipedrive.UserSettingsApi* | [**getUserSettings**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserSettingsApi.md#getUserSettings) | **GET** /userSettings | List settings of an authorized user *Pipedrive.UsersApi* | [**addUser**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#addUser) | **POST** /users | Add a new user @@ -647,8 +672,10 @@ Class | Method | HTTP request | Description - [Pipedrive.AddProductAttachmentDetailsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductAttachmentDetailsAllOf.md) - [Pipedrive.AddProductFollowerRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductFollowerRequest.md) - [Pipedrive.AddProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductRequestBody.md) + - [Pipedrive.AddProjectResponse201](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProjectResponse201.md) - [Pipedrive.AddRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddRole.md) - [Pipedrive.AddRoleAssignmentRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddRoleAssignmentRequest.md) + - [Pipedrive.AddTaskResponse201](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddTaskResponse201.md) - [Pipedrive.AddTeamUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddTeamUserRequest.md) - [Pipedrive.AddUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddUserRequest.md) - [Pipedrive.AddWebhookRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddWebhookRequest.md) @@ -828,6 +855,9 @@ Class | Method | HTTP request | Description - [Pipedrive.DeleteProductFollowerResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductFollowerResponseData.md) - [Pipedrive.DeleteProductResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductResponse.md) - [Pipedrive.DeleteProductResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductResponseData.md) + - [Pipedrive.DeleteProject](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProject.md) + - [Pipedrive.DeleteProjectData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProjectData.md) + - [Pipedrive.DeleteProjectResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProjectResponse200.md) - [Pipedrive.DeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteResponse.md) - [Pipedrive.DeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteResponseAllOf.md) - [Pipedrive.DeleteResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteResponseAllOfData.md) @@ -842,6 +872,9 @@ Class | Method | HTTP request | Description - [Pipedrive.DeleteStageResponse200Data](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteStageResponse200Data.md) - [Pipedrive.DeleteStagesResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteStagesResponse200.md) - [Pipedrive.DeleteStagesResponse200Data](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteStagesResponse200Data.md) + - [Pipedrive.DeleteTask](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTask.md) + - [Pipedrive.DeleteTaskData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTaskData.md) + - [Pipedrive.DeleteTaskResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTaskResponse200.md) - [Pipedrive.DeleteTeamUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTeamUserRequest.md) - [Pipedrive.Duration](https://github.com/pipedrive/client-nodejs/blob/master/docs/Duration.md) - [Pipedrive.EditPipeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/EditPipeline.md) @@ -880,8 +913,10 @@ Class | Method | HTTP request | Description - [Pipedrive.FollowerData](https://github.com/pipedrive/client-nodejs/blob/master/docs/FollowerData.md) - [Pipedrive.FollowerDataWithID](https://github.com/pipedrive/client-nodejs/blob/master/docs/FollowerDataWithID.md) - [Pipedrive.FollowerDataWithIDAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FollowerDataWithIDAllOf.md) + - [Pipedrive.FullProjectObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullProjectObject.md) - [Pipedrive.FullRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullRole.md) - [Pipedrive.FullRoleAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullRoleAllOf.md) + - [Pipedrive.FullTaskObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullTaskObject.md) - [Pipedrive.GetActivitiesCollectionResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetActivitiesCollectionResponse200.md) - [Pipedrive.GetActivitiesResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetActivitiesResponse200.md) - [Pipedrive.GetActivitiesResponse200RelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetActivitiesResponse200RelatedObjects.md) @@ -935,6 +970,16 @@ Class | Method | HTTP request | Description - [Pipedrive.GetPersonDetailsResponseAllOfAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetPersonDetailsResponseAllOfAdditionalData.md) - [Pipedrive.GetProductAttachementDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProductAttachementDetails.md) - [Pipedrive.GetProductFieldResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProductFieldResponse.md) + - [Pipedrive.GetProjectBoardResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectBoardResponse200.md) + - [Pipedrive.GetProjectBoardsResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectBoardsResponse200.md) + - [Pipedrive.GetProjectGroupsResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectGroupsResponse200.md) + - [Pipedrive.GetProjectPhaseResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectPhaseResponse200.md) + - [Pipedrive.GetProjectPhasesResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectPhasesResponse200.md) + - [Pipedrive.GetProjectPlanResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectPlanResponse200.md) + - [Pipedrive.GetProjectResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectResponse200.md) + - [Pipedrive.GetProjectTemplateResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectTemplateResponse200.md) + - [Pipedrive.GetProjectTemplatesResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectTemplatesResponse200.md) + - [Pipedrive.GetProjectsResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectsResponse200.md) - [Pipedrive.GetRecents](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRecents.md) - [Pipedrive.GetRecentsAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRecentsAdditionalData.md) - [Pipedrive.GetRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRole.md) @@ -951,6 +996,8 @@ Class | Method | HTTP request | Description - [Pipedrive.GetRolesAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRolesAllOf.md) - [Pipedrive.GetStageDeals](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetStageDeals.md) - [Pipedrive.GetStages](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetStages.md) + - [Pipedrive.GetTaskResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetTaskResponse200.md) + - [Pipedrive.GetTasksResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetTasksResponse200.md) - [Pipedrive.GoalResults](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalResults.md) - [Pipedrive.GoalType](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalType.md) - [Pipedrive.GoalsResponseComponent](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalsResponseComponent.md) @@ -1212,6 +1259,19 @@ Class | Method | HTTP request | Description - [Pipedrive.ProductWithArrayPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductWithArrayPrices.md) - [Pipedrive.ProductWithObjectPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductWithObjectPrices.md) - [Pipedrive.ProductsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsResponse.md) + - [Pipedrive.ProjectBoardObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectBoardObject.md) + - [Pipedrive.ProjectGroupsObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectGroupsObject.md) + - [Pipedrive.ProjectId](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectId.md) + - [Pipedrive.ProjectMandatoryObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectMandatoryObjectFragment.md) + - [Pipedrive.ProjectNotChangeableObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectNotChangeableObjectFragment.md) + - [Pipedrive.ProjectObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectObjectFragment.md) + - [Pipedrive.ProjectPhaseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPhaseObject.md) + - [Pipedrive.ProjectPlanItemObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPlanItemObject.md) + - [Pipedrive.ProjectPostObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPostObject.md) + - [Pipedrive.ProjectPostObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPostObjectAllOf.md) + - [Pipedrive.ProjectPutObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPutObject.md) + - [Pipedrive.ProjectPutPlanItemBodyObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPutPlanItemBodyObject.md) + - [Pipedrive.ProjectResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectResponseObject.md) - [Pipedrive.PutRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/PutRole.md) - [Pipedrive.PutRoleAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PutRoleAllOf.md) - [Pipedrive.PutRoleAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/PutRoleAllOfData.md) @@ -1243,6 +1303,8 @@ Class | Method | HTTP request | Description - [Pipedrive.RelationshipOrganizationInfoItemAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItemAllOf.md) - [Pipedrive.RelationshipOrganizationInfoItemWithActiveFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItemWithActiveFlag.md) - [Pipedrive.RequiredNameObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredNameObject.md) + - [Pipedrive.RequiredPostProjectParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredPostProjectParameters.md) + - [Pipedrive.RequiredPostTaskParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredPostTaskParameters.md) - [Pipedrive.RequredTitleParameter](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequredTitleParameter.md) - [Pipedrive.ResponseCallLogObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ResponseCallLogObject.md) - [Pipedrive.ResponseCallLogObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ResponseCallLogObjectAllOf.md) @@ -1270,11 +1332,20 @@ Class | Method | HTTP request | Description - [Pipedrive.SubscriptionRecurringUpdateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionRecurringUpdateRequest.md) - [Pipedrive.SubscriptionsIdResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsIdResponse.md) - [Pipedrive.SubscriptionsIdResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsIdResponseAllOf.md) + - [Pipedrive.TaskId](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskId.md) + - [Pipedrive.TaskMandatoryObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskMandatoryObjectFragment.md) + - [Pipedrive.TaskNotChangeableObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskNotChangeableObjectFragment.md) + - [Pipedrive.TaskObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskObjectFragment.md) + - [Pipedrive.TaskPostObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskPostObject.md) + - [Pipedrive.TaskPutObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskPutObject.md) + - [Pipedrive.TaskResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskResponseObject.md) - [Pipedrive.Team](https://github.com/pipedrive/client-nodejs/blob/master/docs/Team.md) - [Pipedrive.TeamAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/TeamAllOf.md) - [Pipedrive.TeamId](https://github.com/pipedrive/client-nodejs/blob/master/docs/TeamId.md) - [Pipedrive.Teams](https://github.com/pipedrive/client-nodejs/blob/master/docs/Teams.md) - [Pipedrive.TeamsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/TeamsAllOf.md) + - [Pipedrive.TemplateObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TemplateObject.md) + - [Pipedrive.TemplateResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TemplateResponseObject.md) - [Pipedrive.Unauthorized](https://github.com/pipedrive/client-nodejs/blob/master/docs/Unauthorized.md) - [Pipedrive.UpdateActivityResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateActivityResponse200.md) - [Pipedrive.UpdateDealParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateDealParameters.md) @@ -1292,12 +1363,16 @@ Class | Method | HTTP request | Description - [Pipedrive.UpdateProductField](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProductField.md) - [Pipedrive.UpdateProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProductRequestBody.md) - [Pipedrive.UpdateProductResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProductResponse.md) + - [Pipedrive.UpdateProjectResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProjectResponse200.md) - [Pipedrive.UpdateStageRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateStageRequest.md) - [Pipedrive.UpdateStageRequestAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateStageRequestAllOf.md) + - [Pipedrive.UpdateTaskResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTaskResponse200.md) - [Pipedrive.UpdateTeam](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTeam.md) - [Pipedrive.UpdateTeamAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTeamAllOf.md) - [Pipedrive.UpdateTeamWithAdditionalProperties](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTeamWithAdditionalProperties.md) - [Pipedrive.UpdateUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateUserRequest.md) + - [Pipedrive.UpdatedActivityPlanItem200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdatedActivityPlanItem200.md) + - [Pipedrive.UpdatedTaskPlanItem200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdatedTaskPlanItem200.md) - [Pipedrive.User](https://github.com/pipedrive/client-nodejs/blob/master/docs/User.md) - [Pipedrive.UserAccess](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserAccess.md) - [Pipedrive.UserAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserAllOf.md) diff --git a/docs/AddProjectResponse201.md b/docs/AddProjectResponse201.md new file mode 100644 index 00000000..319c0b70 --- /dev/null +++ b/docs/AddProjectResponse201.md @@ -0,0 +1,11 @@ +# Pipedrive.AddProjectResponse201 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**ProjectResponseObject**](ProjectResponseObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/AddTaskResponse201.md b/docs/AddTaskResponse201.md new file mode 100644 index 00000000..ad96f671 --- /dev/null +++ b/docs/AddTaskResponse201.md @@ -0,0 +1,11 @@ +# Pipedrive.AddTaskResponse201 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**TaskResponseObject**](TaskResponseObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/DeleteProject.md b/docs/DeleteProject.md new file mode 100644 index 00000000..4517b7fd --- /dev/null +++ b/docs/DeleteProject.md @@ -0,0 +1,10 @@ +# Pipedrive.DeleteProject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | If the request was successful or not | [optional] +**data** | [**DeleteProjectData**](DeleteProjectData.md) | | [optional] + + diff --git a/docs/DeleteProjectData.md b/docs/DeleteProjectData.md new file mode 100644 index 00000000..61ce919d --- /dev/null +++ b/docs/DeleteProjectData.md @@ -0,0 +1,9 @@ +# Pipedrive.DeleteProjectData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of the project that was deleted | [optional] + + diff --git a/docs/DeleteProjectResponse200.md b/docs/DeleteProjectResponse200.md new file mode 100644 index 00000000..a36d53f5 --- /dev/null +++ b/docs/DeleteProjectResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.DeleteProjectResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**DeleteProject**](DeleteProject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/DeleteTask.md b/docs/DeleteTask.md new file mode 100644 index 00000000..08848ad9 --- /dev/null +++ b/docs/DeleteTask.md @@ -0,0 +1,10 @@ +# Pipedrive.DeleteTask + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | If the request was successful or not | [optional] +**data** | [**DeleteTaskData**](DeleteTaskData.md) | | [optional] + + diff --git a/docs/DeleteTaskData.md b/docs/DeleteTaskData.md new file mode 100644 index 00000000..2dbb0a2d --- /dev/null +++ b/docs/DeleteTaskData.md @@ -0,0 +1,9 @@ +# Pipedrive.DeleteTaskData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of the task that was deleted | [optional] + + diff --git a/docs/DeleteTaskResponse200.md b/docs/DeleteTaskResponse200.md new file mode 100644 index 00000000..a8c47e60 --- /dev/null +++ b/docs/DeleteTaskResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.DeleteTaskResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**DeleteTask**](DeleteTask.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/FilterType.md b/docs/FilterType.md index 7f31ff84..b52c0562 100644 --- a/docs/FilterType.md +++ b/docs/FilterType.md @@ -15,4 +15,6 @@ * `activity` (value: `"activity"`) +* `projects` (value: `"projects"`) + diff --git a/docs/FullProjectObject.md b/docs/FullProjectObject.md new file mode 100644 index 00000000..32079b62 --- /dev/null +++ b/docs/FullProjectObject.md @@ -0,0 +1,24 @@ +# Pipedrive.FullProjectObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The title of the project | [optional] +**boardId** | **Number** | The ID of the board this project is associated with | [optional] +**phaseId** | **Number** | The ID of the phase this project is associated with | [optional] +**description** | **String** | The description of the project | [optional] +**status** | **String** | The status of the project | [optional] +**ownerId** | **Number** | The ID of a project owner | [optional] +**startDate** | **Date** | The start date of the project. Format: YYYY-MM-DD. | [optional] +**endDate** | **Date** | The end date of the project. Format: YYYY-MM-DD. | [optional] +**dealIds** | **[Number]** | An array of IDs of the deals this project is associated with | [optional] +**orgId** | **Number** | The ID of the organization this project is associated with | [optional] +**personId** | **Number** | The ID of the person this project is associated with | [optional] +**labels** | **[Number]** | An array of IDs of the labels this project has | [optional] +**addTime** | **String** | The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**updateTime** | **String** | The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**statusChangeTime** | **String** | The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**archiveTime** | **String** | The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. | [optional] + + diff --git a/docs/FullTaskObject.md b/docs/FullTaskObject.md new file mode 100644 index 00000000..eefc5f68 --- /dev/null +++ b/docs/FullTaskObject.md @@ -0,0 +1,19 @@ +# Pipedrive.FullTaskObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The title of the task | [optional] +**projectId** | **Number** | The ID of the project this task is associated with | [optional] +**description** | **String** | The description of the task | [optional] +**parentTaskId** | **Number** | The ID of a parent task. Can not be ID of a task which is already a subtask. | [optional] +**assigneeId** | **Number** | The ID of the user who will be the assignee of the task | [optional] +**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the task is done or not. 0 = Not done, 1 = Done. | [optional] +**dueDate** | **Date** | The due date of the task. Format: YYYY-MM-DD. | [optional] +**creatorId** | **Number** | The creator of a task | [optional] +**addTime** | **String** | The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**updateTime** | **String** | The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**markedAsDoneTime** | **String** | The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] + + diff --git a/docs/GetProjectBoardResponse200.md b/docs/GetProjectBoardResponse200.md new file mode 100644 index 00000000..b0e3b2a7 --- /dev/null +++ b/docs/GetProjectBoardResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetProjectBoardResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**ProjectBoardObject**](ProjectBoardObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/GetProjectBoardsResponse200.md b/docs/GetProjectBoardsResponse200.md new file mode 100644 index 00000000..899321f4 --- /dev/null +++ b/docs/GetProjectBoardsResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetProjectBoardsResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**[ProjectBoardObject]**](ProjectBoardObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/GetProjectGroupsResponse200.md b/docs/GetProjectGroupsResponse200.md new file mode 100644 index 00000000..14607904 --- /dev/null +++ b/docs/GetProjectGroupsResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetProjectGroupsResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**[ProjectGroupsObject]**](ProjectGroupsObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/GetProjectPhaseResponse200.md b/docs/GetProjectPhaseResponse200.md new file mode 100644 index 00000000..b32f8ac3 --- /dev/null +++ b/docs/GetProjectPhaseResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetProjectPhaseResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**ProjectPhaseObject**](ProjectPhaseObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/GetProjectPhasesResponse200.md b/docs/GetProjectPhasesResponse200.md new file mode 100644 index 00000000..e4a3c012 --- /dev/null +++ b/docs/GetProjectPhasesResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetProjectPhasesResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**[ProjectPhaseObject]**](ProjectPhaseObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/GetProjectPlanResponse200.md b/docs/GetProjectPlanResponse200.md new file mode 100644 index 00000000..54ee40e7 --- /dev/null +++ b/docs/GetProjectPlanResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetProjectPlanResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**[ProjectPlanItemObject]**](ProjectPlanItemObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/GetProjectResponse200.md b/docs/GetProjectResponse200.md new file mode 100644 index 00000000..14f5234f --- /dev/null +++ b/docs/GetProjectResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetProjectResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**ProjectResponseObject**](ProjectResponseObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/GetProjectTemplateResponse200.md b/docs/GetProjectTemplateResponse200.md new file mode 100644 index 00000000..e236c5dd --- /dev/null +++ b/docs/GetProjectTemplateResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetProjectTemplateResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**TemplateResponseObject**](TemplateResponseObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/GetProjectTemplatesResponse200.md b/docs/GetProjectTemplatesResponse200.md new file mode 100644 index 00000000..d10c4823 --- /dev/null +++ b/docs/GetProjectTemplatesResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetProjectTemplatesResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**[TemplateResponseObject]**](TemplateResponseObject.md) | | [optional] +**additionalData** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] + + diff --git a/docs/GetProjectsResponse200.md b/docs/GetProjectsResponse200.md new file mode 100644 index 00000000..61b8526a --- /dev/null +++ b/docs/GetProjectsResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetProjectsResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**[ProjectResponseObject]**](ProjectResponseObject.md) | | [optional] +**additionalData** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] + + diff --git a/docs/GetTaskResponse200.md b/docs/GetTaskResponse200.md new file mode 100644 index 00000000..9e79e297 --- /dev/null +++ b/docs/GetTaskResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetTaskResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**TaskResponseObject**](TaskResponseObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/GetTasksResponse200.md b/docs/GetTasksResponse200.md new file mode 100644 index 00000000..d0784b67 --- /dev/null +++ b/docs/GetTasksResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.GetTasksResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**[TaskResponseObject]**](TaskResponseObject.md) | | [optional] +**additionalData** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] + + diff --git a/docs/ProjectBoardObject.md b/docs/ProjectBoardObject.md new file mode 100644 index 00000000..ba78b57d --- /dev/null +++ b/docs/ProjectBoardObject.md @@ -0,0 +1,13 @@ +# Pipedrive.ProjectBoardObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of the project board | [optional] +**name** | **String** | Name of a project board | [optional] +**orderNr** | **Number** | The order of a board | [optional] +**addTime** | **String** | The creation date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**updateTime** | **String** | The update date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] + + diff --git a/docs/ProjectGroupsObject.md b/docs/ProjectGroupsObject.md new file mode 100644 index 00000000..215e3355 --- /dev/null +++ b/docs/ProjectGroupsObject.md @@ -0,0 +1,11 @@ +# Pipedrive.ProjectGroupsObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | ID of the group | [optional] +**name** | **String** | Name of the group | [optional] +**orderNr** | **Number** | Order number of the group | [optional] + + diff --git a/docs/ProjectId.md b/docs/ProjectId.md new file mode 100644 index 00000000..47160cb6 --- /dev/null +++ b/docs/ProjectId.md @@ -0,0 +1,9 @@ +# Pipedrive.ProjectId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of the project, generated when the task was created | [optional] + + diff --git a/docs/ProjectMandatoryObjectFragment.md b/docs/ProjectMandatoryObjectFragment.md new file mode 100644 index 00000000..10004b60 --- /dev/null +++ b/docs/ProjectMandatoryObjectFragment.md @@ -0,0 +1,11 @@ +# Pipedrive.ProjectMandatoryObjectFragment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The title of the project | [optional] +**boardId** | **Number** | The ID of the board this project is associated with | [optional] +**phaseId** | **Number** | The ID of the phase this project is associated with | [optional] + + diff --git a/docs/ProjectNotChangeableObjectFragment.md b/docs/ProjectNotChangeableObjectFragment.md new file mode 100644 index 00000000..69310e89 --- /dev/null +++ b/docs/ProjectNotChangeableObjectFragment.md @@ -0,0 +1,12 @@ +# Pipedrive.ProjectNotChangeableObjectFragment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addTime** | **String** | The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**updateTime** | **String** | The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**statusChangeTime** | **String** | The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**archiveTime** | **String** | The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. | [optional] + + diff --git a/docs/ProjectObjectFragment.md b/docs/ProjectObjectFragment.md new file mode 100644 index 00000000..a894a479 --- /dev/null +++ b/docs/ProjectObjectFragment.md @@ -0,0 +1,17 @@ +# Pipedrive.ProjectObjectFragment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | The description of the project | [optional] +**status** | **String** | The status of the project | [optional] +**ownerId** | **Number** | The ID of a project owner | [optional] +**startDate** | **Date** | The start date of the project. Format: YYYY-MM-DD. | [optional] +**endDate** | **Date** | The end date of the project. Format: YYYY-MM-DD. | [optional] +**dealIds** | **[Number]** | An array of IDs of the deals this project is associated with | [optional] +**orgId** | **Number** | The ID of the organization this project is associated with | [optional] +**personId** | **Number** | The ID of the person this project is associated with | [optional] +**labels** | **[Number]** | An array of IDs of the labels this project has | [optional] + + diff --git a/docs/ProjectPhaseObject.md b/docs/ProjectPhaseObject.md new file mode 100644 index 00000000..4da5f5e2 --- /dev/null +++ b/docs/ProjectPhaseObject.md @@ -0,0 +1,14 @@ +# Pipedrive.ProjectPhaseObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of the project phase | [optional] +**name** | **String** | Name of a project phase | [optional] +**boardId** | **Number** | The ID of the project board this phase is linked to | [optional] +**orderNr** | **Number** | The order of a phase | [optional] +**addTime** | **String** | The creation date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**updateTime** | **String** | The update date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] + + diff --git a/docs/ProjectPlanItemObject.md b/docs/ProjectPlanItemObject.md new file mode 100644 index 00000000..4caaf420 --- /dev/null +++ b/docs/ProjectPlanItemObject.md @@ -0,0 +1,12 @@ +# Pipedrive.ProjectPlanItemObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**itemId** | **Number** | ID of plan item (either activity or task ID) | [optional] +**itemType** | **String** | Type of a plan item (task / activity) | [optional] +**phaseId** | **Number** | The ID of the board this project is associated with. If null then plan item is not in any phase. | [optional] +**groupId** | **Number** | The ID of the board this project is associated with. If null then plan item is not in any group. | [optional] + + diff --git a/docs/ProjectPostObject.md b/docs/ProjectPostObject.md new file mode 100644 index 00000000..9cbe779f --- /dev/null +++ b/docs/ProjectPostObject.md @@ -0,0 +1,21 @@ +# Pipedrive.ProjectPostObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The title of the project | +**boardId** | **Number** | The ID of a project board | +**phaseId** | **Number** | The ID of a phase on a project board | +**description** | **String** | The description of the project | [optional] +**status** | **String** | The status of the project | [optional] +**ownerId** | **Number** | The ID of a project owner | [optional] +**startDate** | **Date** | The start date of the project. Format: YYYY-MM-DD. | [optional] +**endDate** | **Date** | The end date of the project. Format: YYYY-MM-DD. | [optional] +**dealIds** | **[Number]** | An array of IDs of the deals this project is associated with | [optional] +**orgId** | **Number** | The ID of the organization this project is associated with | [optional] +**personId** | **Number** | The ID of the person this project is associated with | [optional] +**labels** | **[Number]** | An array of IDs of the labels this project has | [optional] +**templateId** | **Number** | The ID of the template the project will be based on | [optional] + + diff --git a/docs/ProjectPostObjectAllOf.md b/docs/ProjectPostObjectAllOf.md new file mode 100644 index 00000000..50f87f69 --- /dev/null +++ b/docs/ProjectPostObjectAllOf.md @@ -0,0 +1,9 @@ +# Pipedrive.ProjectPostObjectAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**templateId** | **Number** | The ID of the template the project will be based on | [optional] + + diff --git a/docs/ProjectPutObject.md b/docs/ProjectPutObject.md new file mode 100644 index 00000000..59744b9d --- /dev/null +++ b/docs/ProjectPutObject.md @@ -0,0 +1,20 @@ +# Pipedrive.ProjectPutObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The title of the project | [optional] +**boardId** | **Number** | The ID of the board this project is associated with | [optional] +**phaseId** | **Number** | The ID of the phase this project is associated with | [optional] +**description** | **String** | The description of the project | [optional] +**status** | **String** | The status of the project | [optional] +**ownerId** | **Number** | The ID of a project owner | [optional] +**startDate** | **Date** | The start date of the project. Format: YYYY-MM-DD. | [optional] +**endDate** | **Date** | The end date of the project. Format: YYYY-MM-DD. | [optional] +**dealIds** | **[Number]** | An array of IDs of the deals this project is associated with | [optional] +**orgId** | **Number** | The ID of the organization this project is associated with | [optional] +**personId** | **Number** | The ID of the person this project is associated with | [optional] +**labels** | **[Number]** | An array of IDs of the labels this project has | [optional] + + diff --git a/docs/ProjectPutPlanItemBodyObject.md b/docs/ProjectPutPlanItemBodyObject.md new file mode 100644 index 00000000..d6c8f98b --- /dev/null +++ b/docs/ProjectPutPlanItemBodyObject.md @@ -0,0 +1,10 @@ +# Pipedrive.ProjectPutPlanItemBodyObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**phaseId** | **Number** | The ID of a phase on a project board | [optional] +**groupId** | **Number** | The ID of a group on a project board | [optional] + + diff --git a/docs/ProjectResponseObject.md b/docs/ProjectResponseObject.md new file mode 100644 index 00000000..8ef50e7d --- /dev/null +++ b/docs/ProjectResponseObject.md @@ -0,0 +1,25 @@ +# Pipedrive.ProjectResponseObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of the project, generated when the task was created | [optional] +**title** | **String** | The title of the project | [optional] +**boardId** | **Number** | The ID of the board this project is associated with | [optional] +**phaseId** | **Number** | The ID of the phase this project is associated with | [optional] +**description** | **String** | The description of the project | [optional] +**status** | **String** | The status of the project | [optional] +**ownerId** | **Number** | The ID of a project owner | [optional] +**startDate** | **Date** | The start date of the project. Format: YYYY-MM-DD. | [optional] +**endDate** | **Date** | The end date of the project. Format: YYYY-MM-DD. | [optional] +**dealIds** | **[Number]** | An array of IDs of the deals this project is associated with | [optional] +**orgId** | **Number** | The ID of the organization this project is associated with | [optional] +**personId** | **Number** | The ID of the person this project is associated with | [optional] +**labels** | **[Number]** | An array of IDs of the labels this project has | [optional] +**addTime** | **String** | The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**updateTime** | **String** | The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**statusChangeTime** | **String** | The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**archiveTime** | **String** | The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. | [optional] + + diff --git a/docs/ProjectTemplatesApi.md b/docs/ProjectTemplatesApi.md new file mode 100644 index 00000000..29bc9f5c --- /dev/null +++ b/docs/ProjectTemplatesApi.md @@ -0,0 +1,228 @@ +# Pipedrive.ProjectTemplatesApi + +All URIs are relative to *https://api.pipedrive.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getProjectTemplate**](ProjectTemplatesApi.md#getProjectTemplate) | **GET** /projectTemplates/{id} | Get details of a template +[**getProjectTemplates**](ProjectTemplatesApi.md#getProjectTemplates) | **GET** /projectTemplates | Get all project templates +[**getProjectsBoard**](ProjectTemplatesApi.md#getProjectsBoard) | **GET** /projects/boards/{id} | Get details of a board +[**getProjectsPhase**](ProjectTemplatesApi.md#getProjectsPhase) | **GET** /projects/phases/{id} | Get details of a phase + + + +## getProjectTemplate + +> GetProjectTemplateResponse200 getProjectTemplate(id) + +Get details of a template + +Returns the details of a specific project template. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectTemplatesApi(apiClient); +let id = 56; // Number | The ID of the project template +apiInstance.getProjectTemplate(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project template | + +### Return type + +[**GetProjectTemplateResponse200**](GetProjectTemplateResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProjectTemplates + +> GetProjectTemplatesResponse200 getProjectTemplates(opts) + +Get all project templates + +Returns all not deleted project templates. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectTemplatesApi(apiClient); +let opts = { + 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page + 'limit': 500 // Number | For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. +}; +apiInstance.getProjectTemplates(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] + **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. | [optional] + +### Return type + +[**GetProjectTemplatesResponse200**](GetProjectTemplatesResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProjectsBoard + +> GetProjectBoardResponse200 getProjectsBoard(id) + +Get details of a board + +Returns the details of a specific project board. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectTemplatesApi(apiClient); +let id = 56; // Number | The ID of the project board +apiInstance.getProjectsBoard(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project board | + +### Return type + +[**GetProjectBoardResponse200**](GetProjectBoardResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProjectsPhase + +> GetProjectPhaseResponse200 getProjectsPhase(id) + +Get details of a phase + +Returns the details of a specific project phase. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectTemplatesApi(apiClient); +let id = 56; // Number | The ID of the project phase +apiInstance.getProjectsPhase(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project phase | + +### Return type + +[**GetProjectPhaseResponse200**](GetProjectPhaseResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md new file mode 100644 index 00000000..eb6df0f6 --- /dev/null +++ b/docs/ProjectsApi.md @@ -0,0 +1,790 @@ +# Pipedrive.ProjectsApi + +All URIs are relative to *https://api.pipedrive.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addProject**](ProjectsApi.md#addProject) | **POST** /projects | Add a project +[**archiveProject**](ProjectsApi.md#archiveProject) | **POST** /projects/{id}/archive | Archive a project +[**deleteProject**](ProjectsApi.md#deleteProject) | **DELETE** /projects/{id} | Delete a project +[**getProject**](ProjectsApi.md#getProject) | **GET** /projects/{id} | Get details of a project +[**getProjectActivities**](ProjectsApi.md#getProjectActivities) | **GET** /projects/{id}/activities | Returns project activities +[**getProjectGroups**](ProjectsApi.md#getProjectGroups) | **GET** /projects/{id}/groups | Returns project groups +[**getProjectPlan**](ProjectsApi.md#getProjectPlan) | **GET** /projects/{id}/plan | Returns project plan +[**getProjectTasks**](ProjectsApi.md#getProjectTasks) | **GET** /projects/{id}/tasks | Returns project tasks +[**getProjects**](ProjectsApi.md#getProjects) | **GET** /projects | Get all projects +[**getProjectsBoards**](ProjectsApi.md#getProjectsBoards) | **GET** /projects/boards | Get all project boards +[**getProjectsPhases**](ProjectsApi.md#getProjectsPhases) | **GET** /projects/phases | Get project phases +[**putProjectPlanActivity**](ProjectsApi.md#putProjectPlanActivity) | **PUT** /projects/{id}/plan/activities/{activityId} | Update activity in project plan +[**putProjectPlanTask**](ProjectsApi.md#putProjectPlanTask) | **PUT** /projects/{id}/plan/tasks/{taskId} | Update task in project plan +[**updateProject**](ProjectsApi.md#updateProject) | **PUT** /projects/{id} | Update a project + + + +## addProject + +> AddProjectResponse201 addProject(opts) + +Add a project + +Adds a new project. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let opts = Pipedrive.ProjectPostObject.constructFromObject({ + // Properties that you want to update +}); +apiInstance.addProject(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **projectPostObject** | [**ProjectPostObject**](ProjectPostObject.md)| | [optional] + +### Return type + +[**AddProjectResponse201**](AddProjectResponse201.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## archiveProject + +> UpdateProjectResponse200 archiveProject(id) + +Archive a project + +Archives a project. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let id = 56; // Number | The ID of the project +apiInstance.archiveProject(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project | + +### Return type + +[**UpdateProjectResponse200**](UpdateProjectResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## deleteProject + +> DeleteProjectResponse200 deleteProject(id) + +Delete a project + +Marks a project as deleted. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let id = 56; // Number | The ID of the project +apiInstance.deleteProject(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project | + +### Return type + +[**DeleteProjectResponse200**](DeleteProjectResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProject + +> GetProjectResponse200 getProject(id) + +Get details of a project + +Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let id = 56; // Number | The ID of the project +apiInstance.getProject(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project | + +### Return type + +[**GetProjectResponse200**](GetProjectResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProjectActivities + +> GetActivitiesCollectionResponse200 getProjectActivities(id) + +Returns project activities + +Returns activities linked to a specific project. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let id = 56; // Number | The ID of the project +apiInstance.getProjectActivities(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project | + +### Return type + +[**GetActivitiesCollectionResponse200**](GetActivitiesCollectionResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProjectGroups + +> GetProjectGroupsResponse200 getProjectGroups(id) + +Returns project groups + +Returns all active groups under a specific project. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let id = 56; // Number | The ID of the project +apiInstance.getProjectGroups(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project | + +### Return type + +[**GetProjectGroupsResponse200**](GetProjectGroupsResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProjectPlan + +> GetProjectPlanResponse200 getProjectPlan(id) + +Returns project plan + +Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let id = 56; // Number | The ID of the project +apiInstance.getProjectPlan(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project | + +### Return type + +[**GetProjectPlanResponse200**](GetProjectPlanResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProjectTasks + +> GetTasksResponse200 getProjectTasks(id) + +Returns project tasks + +Returns tasks linked to a specific project. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let id = 56; // Number | The ID of the project +apiInstance.getProjectTasks(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project | + +### Return type + +[**GetTasksResponse200**](GetTasksResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProjects + +> GetProjectsResponse200 getProjects(opts) + +Get all projects + +Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let opts = { + 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page + 'limit': 100, // Number | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. + 'filterId': 56, // Number | The ID of the filter to use + 'status': open,completed, // String | If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. + 'phaseId': 56, // Number | If supplied, only projects in specified phase are returned + 'includeArchived': true // Boolean | If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. +}; +apiInstance.getProjects(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] + **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. | [optional] + **filterId** | **Number**| The ID of the filter to use | [optional] + **status** | **String**| If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. | [optional] + **phaseId** | **Number**| If supplied, only projects in specified phase are returned | [optional] + **includeArchived** | **Boolean**| If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. | [optional] + +### Return type + +[**GetProjectsResponse200**](GetProjectsResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProjectsBoards + +> GetProjectBoardsResponse200 getProjectsBoards() + +Get all project boards + +Returns all projects boards that are not deleted. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +apiInstance.getProjectsBoards().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetProjectBoardsResponse200**](GetProjectBoardsResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getProjectsPhases + +> GetProjectPhasesResponse200 getProjectsPhases(boardId) + +Get project phases + +Returns all active project phases under a specific board. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let boardId = 1; // Number | ID of the board for which phases are requested +apiInstance.getProjectsPhases(boardId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **boardId** | **Number**| ID of the board for which phases are requested | + +### Return type + +[**GetProjectPhasesResponse200**](GetProjectPhasesResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## putProjectPlanActivity + +> UpdatedActivityPlanItem200 putProjectPlanActivity(id, activityId, opts) + +Update activity in project plan + +Updates an activity phase or group in a project. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let id = 56; // Number | The ID of the project +let activityId = 56; // Number | The ID of the activity +let opts = Pipedrive.ProjectPutPlanItemBodyObject.constructFromObject({ + // Properties that you want to update +}); +apiInstance.putProjectPlanActivity(id, activityId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project | + **activityId** | **Number**| The ID of the activity | + **projectPutPlanItemBodyObject** | [**ProjectPutPlanItemBodyObject**](ProjectPutPlanItemBodyObject.md)| | [optional] + +### Return type + +[**UpdatedActivityPlanItem200**](UpdatedActivityPlanItem200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## putProjectPlanTask + +> UpdatedTaskPlanItem200 putProjectPlanTask(id, taskId, opts) + +Update task in project plan + +Updates a task phase or group in a project. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let id = 56; // Number | The ID of the project +let taskId = 56; // Number | The ID of the task +let opts = Pipedrive.ProjectPutPlanItemBodyObject.constructFromObject({ + // Properties that you want to update +}); +apiInstance.putProjectPlanTask(id, taskId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project | + **taskId** | **Number**| The ID of the task | + **projectPutPlanItemBodyObject** | [**ProjectPutPlanItemBodyObject**](ProjectPutPlanItemBodyObject.md)| | [optional] + +### Return type + +[**UpdatedTaskPlanItem200**](UpdatedTaskPlanItem200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## updateProject + +> UpdateProjectResponse200 updateProject(id, opts) + +Update a project + +Updates a project. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.ProjectsApi(apiClient); +let id = 56; // Number | The ID of the project +let opts = Pipedrive.ProjectPutObject.constructFromObject({ + // Properties that you want to update +}); +apiInstance.updateProject(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the project | + **projectPutObject** | [**ProjectPutObject**](ProjectPutObject.md)| | [optional] + +### Return type + +[**UpdateProjectResponse200**](UpdateProjectResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + diff --git a/docs/RequiredPostProjectParameters.md b/docs/RequiredPostProjectParameters.md new file mode 100644 index 00000000..11cc32fc --- /dev/null +++ b/docs/RequiredPostProjectParameters.md @@ -0,0 +1,11 @@ +# Pipedrive.RequiredPostProjectParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The title of the project | +**boardId** | **Number** | The ID of a project board | +**phaseId** | **Number** | The ID of a phase on a project board | + + diff --git a/docs/RequiredPostTaskParameters.md b/docs/RequiredPostTaskParameters.md new file mode 100644 index 00000000..6d4b74dc --- /dev/null +++ b/docs/RequiredPostTaskParameters.md @@ -0,0 +1,10 @@ +# Pipedrive.RequiredPostTaskParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The title of the task | +**projectId** | **Number** | The ID of a project | + + diff --git a/docs/TaskId.md b/docs/TaskId.md new file mode 100644 index 00000000..0296c49c --- /dev/null +++ b/docs/TaskId.md @@ -0,0 +1,9 @@ +# Pipedrive.TaskId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of the task, generated when the task was created | [optional] + + diff --git a/docs/TaskMandatoryObjectFragment.md b/docs/TaskMandatoryObjectFragment.md new file mode 100644 index 00000000..b871f4d7 --- /dev/null +++ b/docs/TaskMandatoryObjectFragment.md @@ -0,0 +1,10 @@ +# Pipedrive.TaskMandatoryObjectFragment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The title of the task | [optional] +**projectId** | **Number** | The ID of the project this task is associated with | [optional] + + diff --git a/docs/TaskNotChangeableObjectFragment.md b/docs/TaskNotChangeableObjectFragment.md new file mode 100644 index 00000000..b3ecd826 --- /dev/null +++ b/docs/TaskNotChangeableObjectFragment.md @@ -0,0 +1,12 @@ +# Pipedrive.TaskNotChangeableObjectFragment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creatorId** | **Number** | The creator of a task | [optional] +**addTime** | **String** | The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**updateTime** | **String** | The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**markedAsDoneTime** | **String** | The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] + + diff --git a/docs/TaskObjectFragment.md b/docs/TaskObjectFragment.md new file mode 100644 index 00000000..c82e958e --- /dev/null +++ b/docs/TaskObjectFragment.md @@ -0,0 +1,13 @@ +# Pipedrive.TaskObjectFragment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | The description of the task | [optional] +**parentTaskId** | **Number** | The ID of a parent task. Can not be ID of a task which is already a subtask. | [optional] +**assigneeId** | **Number** | The ID of the user who will be the assignee of the task | [optional] +**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the task is done or not. 0 = Not done, 1 = Done. | [optional] +**dueDate** | **Date** | The due date of the task. Format: YYYY-MM-DD. | [optional] + + diff --git a/docs/TaskPostObject.md b/docs/TaskPostObject.md new file mode 100644 index 00000000..3fc37e8b --- /dev/null +++ b/docs/TaskPostObject.md @@ -0,0 +1,15 @@ +# Pipedrive.TaskPostObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The title of the task | +**projectId** | **Number** | The ID of a project | +**description** | **String** | The description of the task | [optional] +**parentTaskId** | **Number** | The ID of a parent task. Can not be ID of a task which is already a subtask. | [optional] +**assigneeId** | **Number** | The ID of the user who will be the assignee of the task | [optional] +**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the task is done or not. 0 = Not done, 1 = Done. | [optional] +**dueDate** | **Date** | The due date of the task. Format: YYYY-MM-DD. | [optional] + + diff --git a/docs/TaskPutObject.md b/docs/TaskPutObject.md new file mode 100644 index 00000000..82256cc7 --- /dev/null +++ b/docs/TaskPutObject.md @@ -0,0 +1,15 @@ +# Pipedrive.TaskPutObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | The title of the task | [optional] +**projectId** | **Number** | The ID of the project this task is associated with | [optional] +**description** | **String** | The description of the task | [optional] +**parentTaskId** | **Number** | The ID of a parent task. Can not be ID of a task which is already a subtask. | [optional] +**assigneeId** | **Number** | The ID of the user who will be the assignee of the task | [optional] +**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the task is done or not. 0 = Not done, 1 = Done. | [optional] +**dueDate** | **Date** | The due date of the task. Format: YYYY-MM-DD. | [optional] + + diff --git a/docs/TaskResponseObject.md b/docs/TaskResponseObject.md new file mode 100644 index 00000000..4743de44 --- /dev/null +++ b/docs/TaskResponseObject.md @@ -0,0 +1,20 @@ +# Pipedrive.TaskResponseObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of the task, generated when the task was created | [optional] +**title** | **String** | The title of the task | [optional] +**projectId** | **Number** | The ID of the project this task is associated with | [optional] +**description** | **String** | The description of the task | [optional] +**parentTaskId** | **Number** | The ID of a parent task. Can not be ID of a task which is already a subtask. | [optional] +**assigneeId** | **Number** | The ID of the user who will be the assignee of the task | [optional] +**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the task is done or not. 0 = Not done, 1 = Done. | [optional] +**dueDate** | **Date** | The due date of the task. Format: YYYY-MM-DD. | [optional] +**creatorId** | **Number** | The creator of a task | [optional] +**addTime** | **String** | The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**updateTime** | **String** | The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**markedAsDoneTime** | **String** | The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] + + diff --git a/docs/TasksApi.md b/docs/TasksApi.md new file mode 100644 index 00000000..011d4c9c --- /dev/null +++ b/docs/TasksApi.md @@ -0,0 +1,296 @@ +# Pipedrive.TasksApi + +All URIs are relative to *https://api.pipedrive.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addTask**](TasksApi.md#addTask) | **POST** /tasks | Add a task +[**deleteTask**](TasksApi.md#deleteTask) | **DELETE** /tasks/{id} | Delete a task +[**getTask**](TasksApi.md#getTask) | **GET** /tasks/{id} | Get details of a task +[**getTasks**](TasksApi.md#getTasks) | **GET** /tasks | Get all tasks +[**updateTask**](TasksApi.md#updateTask) | **PUT** /tasks/{id} | Update a task + + + +## addTask + +> AddTaskResponse201 addTask(opts) + +Add a task + +Adds a new task. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.TasksApi(apiClient); +let opts = Pipedrive.TaskPostObject.constructFromObject({ + // Properties that you want to update +}); +apiInstance.addTask(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **taskPostObject** | [**TaskPostObject**](TaskPostObject.md)| | [optional] + +### Return type + +[**AddTaskResponse201**](AddTaskResponse201.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## deleteTask + +> DeleteTaskResponse200 deleteTask(id) + +Delete a task + +Marks a task as deleted. If the task has subtasks then those will also be deleted. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.TasksApi(apiClient); +let id = 56; // Number | The ID of the task +apiInstance.deleteTask(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the task | + +### Return type + +[**DeleteTaskResponse200**](DeleteTaskResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getTask + +> GetTaskResponse200 getTask(id) + +Get details of a task + +Returns the details of a specific task. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.TasksApi(apiClient); +let id = 56; // Number | The ID of the task +apiInstance.getTask(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the task | + +### Return type + +[**GetTaskResponse200**](GetTaskResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getTasks + +> GetTasksResponse200 getTasks(opts) + +Get all tasks + +Returns all tasks. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.TasksApi(apiClient); +let opts = { + 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page + 'limit': 500, // Number | For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + 'assigneeId': 56, // Number | If supplied, only tasks that are assigned to this user are returned + 'projectId': 56, // Number | If supplied, only tasks that are assigned to this project are returned + 'parentTaskId': 56, // Number | If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. + 'done': new Pipedrive.NumberBoolean() // NumberBoolean | Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. +}; +apiInstance.getTasks(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] + **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. | [optional] + **assigneeId** | **Number**| If supplied, only tasks that are assigned to this user are returned | [optional] + **projectId** | **Number**| If supplied, only tasks that are assigned to this project are returned | [optional] + **parentTaskId** | **Number**| If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. | [optional] + **done** | [**NumberBoolean**](.md)| Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. | [optional] + +### Return type + +[**GetTasksResponse200**](GetTasksResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## updateTask + +> UpdateTaskResponse200 updateTask(id, opts) + +Update a task + +Updates a task. + +### Example + +```javascript +import Pipedrive from 'pipedrive'; +let apiClient = new Pipedrive.ApiClient(); +// Configure API key authorization: api_key +let api_key = apiClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//api_key.apiKeyPrefix = 'Token'; +// Configure OAuth2 access token for authorization: oauth2 +let oauth2 = apiClient.authentications['oauth2']; +oauth2.accessToken = 'YOUR ACCESS TOKEN'; + +let apiInstance = new Pipedrive.TasksApi(apiClient); +let id = 56; // Number | The ID of the task +let opts = Pipedrive.TaskPutObject.constructFromObject({ + // Properties that you want to update +}); +apiInstance.updateTask(id, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| The ID of the task | + **taskPutObject** | [**TaskPutObject**](TaskPutObject.md)| | [optional] + +### Return type + +[**UpdateTaskResponse200**](UpdateTaskResponse200.md) + +### Authorization + +[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + diff --git a/docs/TemplateObject.md b/docs/TemplateObject.md new file mode 100644 index 00000000..0f7751e4 --- /dev/null +++ b/docs/TemplateObject.md @@ -0,0 +1,15 @@ +# Pipedrive.TemplateObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of a template | [optional] +**title** | **String** | The title of a template | [optional] +**description** | **String** | The description of a template | [optional] +**projectsBoardId** | **Number** | The ID of the project board this template is associated with | [optional] +**ownerId** | **Number** | The ID of a template owner | [optional] +**addTime** | **String** | The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**updateTime** | **String** | The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] + + diff --git a/docs/TemplateResponseObject.md b/docs/TemplateResponseObject.md new file mode 100644 index 00000000..206e88ca --- /dev/null +++ b/docs/TemplateResponseObject.md @@ -0,0 +1,15 @@ +# Pipedrive.TemplateResponseObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | The ID of a template | [optional] +**title** | **String** | The title of a template | [optional] +**description** | **String** | The description of a template | [optional] +**projectsBoardId** | **Number** | The ID of the project board this template is associated with | [optional] +**ownerId** | **Number** | The ID of a template owner | [optional] +**addTime** | **String** | The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] +**updateTime** | **String** | The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] + + diff --git a/docs/UpdateProjectResponse200.md b/docs/UpdateProjectResponse200.md new file mode 100644 index 00000000..2c2e2b7a --- /dev/null +++ b/docs/UpdateProjectResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.UpdateProjectResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**ProjectResponseObject**](ProjectResponseObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/UpdateTaskResponse200.md b/docs/UpdateTaskResponse200.md new file mode 100644 index 00000000..09ca6800 --- /dev/null +++ b/docs/UpdateTaskResponse200.md @@ -0,0 +1,11 @@ +# Pipedrive.UpdateTaskResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**TaskResponseObject**](TaskResponseObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/UpdatedActivityPlanItem200.md b/docs/UpdatedActivityPlanItem200.md new file mode 100644 index 00000000..3144b418 --- /dev/null +++ b/docs/UpdatedActivityPlanItem200.md @@ -0,0 +1,11 @@ +# Pipedrive.UpdatedActivityPlanItem200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**ProjectPlanItemObject**](ProjectPlanItemObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/docs/UpdatedTaskPlanItem200.md b/docs/UpdatedTaskPlanItem200.md new file mode 100644 index 00000000..e0c65cae --- /dev/null +++ b/docs/UpdatedTaskPlanItem200.md @@ -0,0 +1,11 @@ +# Pipedrive.UpdatedTaskPlanItem200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **Boolean** | | [optional] +**data** | [**ProjectPlanItemObject**](ProjectPlanItemObject.md) | | [optional] +**additionalData** | **Object** | | [optional] + + diff --git a/package-lock.json b/package-lock.json index 7fe8878e..fd6c4835 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pipedrive", - "version": "22.2.0", + "version": "22.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pipedrive", - "version": "22.2.0", + "version": "22.3.0", "license": "MIT", "dependencies": { "@babel/runtime": "^7.20.1", diff --git a/package.json b/package.json index dd831c05..1a95237e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pipedrive", - "version": "22.2.0", + "version": "22.3.0", "description": "Pipedrive REST client for NodeJS", "license": "MIT", "main": "dist/index.js", diff --git a/src/api/ProjectTemplatesApi.js b/src/api/ProjectTemplatesApi.js new file mode 100644 index 00000000..fb92f183 --- /dev/null +++ b/src/api/ProjectTemplatesApi.js @@ -0,0 +1,307 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import GetProjectBoardResponse200 from '../model/GetProjectBoardResponse200'; +import GetProjectPhaseResponse200 from '../model/GetProjectPhaseResponse200'; +import GetProjectTemplateResponse200 from '../model/GetProjectTemplateResponse200'; +import GetProjectTemplatesResponse200 from '../model/GetProjectTemplatesResponse200'; + +/** +* ProjectTemplates service. +* @module api/ProjectTemplatesApi +* @version 1.0.0 +*/ +export default class ProjectTemplatesApi { + + /** + * Constructs a new ProjectTemplatesApi. + * @alias module:api/ProjectTemplatesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient; + } + + + + /** + * Get details of a template + * Returns the details of a specific project template. + * @param {Number} id The ID of the project template + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectTemplateResponse200} and HTTP response + */ + getProjectTemplateWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getProjectTemplate"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetProjectTemplateResponse200; + return this.apiClient.callApi( + '/projectTemplates/{id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get details of a template + * Returns the details of a specific project template. + * @param {Number} id The ID of the project template + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectTemplateResponse200} + */ + getProjectTemplate(id) { + return this.getProjectTemplateWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Get all project templates + * Returns all not deleted project templates. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @param {Object} opts Optional parameters + * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectTemplatesResponse200} and HTTP response + */ + getProjectTemplatesWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + + + let pathParams = { + }; + let queryParams = { + 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], + 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetProjectTemplatesResponse200; + return this.apiClient.callApi( + '/projectTemplates', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get all project templates + * Returns all not deleted project templates. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @param {Object} opts Optional parameters + * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectTemplatesResponse200} + */ + getProjectTemplates(opts) { + return this.getProjectTemplatesWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Get details of a board + * Returns the details of a specific project board. + * @param {Number} id The ID of the project board + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectBoardResponse200} and HTTP response + */ + getProjectsBoardWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getProjectsBoard"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetProjectBoardResponse200; + return this.apiClient.callApi( + '/projects/boards/{id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get details of a board + * Returns the details of a specific project board. + * @param {Number} id The ID of the project board + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectBoardResponse200} + */ + getProjectsBoard(id) { + return this.getProjectsBoardWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Get details of a phase + * Returns the details of a specific project phase. + * @param {Number} id The ID of the project phase + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectPhaseResponse200} and HTTP response + */ + getProjectsPhaseWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getProjectsPhase"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetProjectPhaseResponse200; + return this.apiClient.callApi( + '/projects/phases/{id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get details of a phase + * Returns the details of a specific project phase. + * @param {Number} id The ID of the project phase + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectPhaseResponse200} + */ + getProjectsPhase(id) { + return this.getProjectsPhaseWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + +} diff --git a/src/api/ProjectsApi.js b/src/api/ProjectsApi.js new file mode 100644 index 00000000..9ae02fa6 --- /dev/null +++ b/src/api/ProjectsApi.js @@ -0,0 +1,1015 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import AddProjectResponse201 from '../model/AddProjectResponse201'; +import DeleteProjectResponse200 from '../model/DeleteProjectResponse200'; +import GetActivitiesCollectionResponse200 from '../model/GetActivitiesCollectionResponse200'; +import GetProjectBoardsResponse200 from '../model/GetProjectBoardsResponse200'; +import GetProjectGroupsResponse200 from '../model/GetProjectGroupsResponse200'; +import GetProjectPhasesResponse200 from '../model/GetProjectPhasesResponse200'; +import GetProjectPlanResponse200 from '../model/GetProjectPlanResponse200'; +import GetProjectResponse200 from '../model/GetProjectResponse200'; +import GetProjectsResponse200 from '../model/GetProjectsResponse200'; +import GetTasksResponse200 from '../model/GetTasksResponse200'; +import ProjectPostObject from '../model/ProjectPostObject'; +import ProjectPutObject from '../model/ProjectPutObject'; +import ProjectPutPlanItemBodyObject from '../model/ProjectPutPlanItemBodyObject'; +import UpdateProjectResponse200 from '../model/UpdateProjectResponse200'; +import UpdatedActivityPlanItem200 from '../model/UpdatedActivityPlanItem200'; +import UpdatedTaskPlanItem200 from '../model/UpdatedTaskPlanItem200'; + +/** +* Projects service. +* @module api/ProjectsApi +* @version 1.0.0 +*/ +export default class ProjectsApi { + + /** + * Constructs a new ProjectsApi. + * @alias module:api/ProjectsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient; + } + + + + /** + * Add a project + * Adds a new project. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. + * @param {Object} opts Optional parameters + * @param {module:model/ProjectPostObject} opts.projectPostObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddProjectResponse201} and HTTP response + */ + addProjectWithHttpInfo(opts) { + opts = opts || {}; + let postBody = opts['projectPostObject']; + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = ['application/json', ]; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = AddProjectResponse201; + return this.apiClient.callApi( + '/projects', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Add a project + * Adds a new project. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. + * @param {Object} opts Optional parameters + * @param {module:model/ProjectPostObject} opts.projectPostObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddProjectResponse201} + */ + addProject(opts) { + return this.addProjectWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Archive a project + * Archives a project. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateProjectResponse200} and HTTP response + */ + archiveProjectWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling archiveProject"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = UpdateProjectResponse200; + return this.apiClient.callApi( + '/projects/{id}/archive', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Archive a project + * Archives a project. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateProjectResponse200} + */ + archiveProject(id) { + return this.archiveProjectWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Delete a project + * Marks a project as deleted. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteProjectResponse200} and HTTP response + */ + deleteProjectWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling deleteProject"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = DeleteProjectResponse200; + return this.apiClient.callApi( + '/projects/{id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Delete a project + * Marks a project as deleted. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteProjectResponse200} + */ + deleteProject(id) { + return this.deleteProjectWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Get details of a project + * Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectResponse200} and HTTP response + */ + getProjectWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getProject"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetProjectResponse200; + return this.apiClient.callApi( + '/projects/{id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get details of a project + * Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectResponse200} + */ + getProject(id) { + return this.getProjectWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Returns project activities + * Returns activities linked to a specific project. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetActivitiesCollectionResponse200} and HTTP response + */ + getProjectActivitiesWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getProjectActivities"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetActivitiesCollectionResponse200; + return this.apiClient.callApi( + '/projects/{id}/activities', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Returns project activities + * Returns activities linked to a specific project. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetActivitiesCollectionResponse200} + */ + getProjectActivities(id) { + return this.getProjectActivitiesWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Returns project groups + * Returns all active groups under a specific project. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectGroupsResponse200} and HTTP response + */ + getProjectGroupsWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getProjectGroups"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetProjectGroupsResponse200; + return this.apiClient.callApi( + '/projects/{id}/groups', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Returns project groups + * Returns all active groups under a specific project. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectGroupsResponse200} + */ + getProjectGroups(id) { + return this.getProjectGroupsWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Returns project plan + * Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectPlanResponse200} and HTTP response + */ + getProjectPlanWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getProjectPlan"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetProjectPlanResponse200; + return this.apiClient.callApi( + '/projects/{id}/plan', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Returns project plan + * Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectPlanResponse200} + */ + getProjectPlan(id) { + return this.getProjectPlanWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Returns project tasks + * Returns tasks linked to a specific project. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTasksResponse200} and HTTP response + */ + getProjectTasksWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getProjectTasks"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetTasksResponse200; + return this.apiClient.callApi( + '/projects/{id}/tasks', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Returns project tasks + * Returns tasks linked to a specific project. + * @param {Number} id The ID of the project + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTasksResponse200} + */ + getProjectTasks(id) { + return this.getProjectTasksWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Get all projects + * Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @param {Object} opts Optional parameters + * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. + * @param {Number} opts.filterId The ID of the filter to use + * @param {String} opts.status If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. + * @param {Number} opts.phaseId If supplied, only projects in specified phase are returned + * @param {Boolean} opts.includeArchived If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectsResponse200} and HTTP response + */ + getProjectsWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + + + + + + + let pathParams = { + }; + let queryParams = { + 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], + 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], + 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], + 'status': opts['status'] === undefined ? opts['status'] : opts['status'], + 'phase_id': opts['phase_id'] === undefined ? opts['phaseId'] : opts['phase_id'], + 'include_archived': opts['include_archived'] === undefined ? opts['includeArchived'] : opts['include_archived'], + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetProjectsResponse200; + return this.apiClient.callApi( + '/projects', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get all projects + * Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @param {Object} opts Optional parameters + * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. + * @param {Number} opts.filterId The ID of the filter to use + * @param {String} opts.status If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. + * @param {Number} opts.phaseId If supplied, only projects in specified phase are returned + * @param {Boolean} opts.includeArchived If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectsResponse200} + */ + getProjects(opts) { + return this.getProjectsWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Get all project boards + * Returns all projects boards that are not deleted. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectBoardsResponse200} and HTTP response + */ + getProjectsBoardsWithHttpInfo() { + const opts = {} + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetProjectBoardsResponse200; + return this.apiClient.callApi( + '/projects/boards', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get all project boards + * Returns all projects boards that are not deleted. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectBoardsResponse200} + */ + getProjectsBoards() { + return this.getProjectsBoardsWithHttpInfo() + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Get project phases + * Returns all active project phases under a specific board. + * @param {Number} boardId ID of the board for which phases are requested + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectPhasesResponse200} and HTTP response + */ + getProjectsPhasesWithHttpInfo(boardId) { + const opts = {} + let postBody = null; + + // verify the required parameter 'boardId' is set + if (boardId === undefined || boardId === null) { + throw new Error("Missing the required parameter 'boardId' when calling getProjectsPhases"); + } + + let pathParams = { + }; + let queryParams = { + 'board_id': boardId, + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetProjectPhasesResponse200; + return this.apiClient.callApi( + '/projects/phases', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get project phases + * Returns all active project phases under a specific board. + * @param {Number} boardId ID of the board for which phases are requested + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectPhasesResponse200} + */ + getProjectsPhases(boardId) { + return this.getProjectsPhasesWithHttpInfo(boardId) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Update activity in project plan + * Updates an activity phase or group in a project. + * @param {Number} id The ID of the project + * @param {Number} activityId The ID of the activity + * @param {Object} opts Optional parameters + * @param {module:model/ProjectPutPlanItemBodyObject} opts.projectPutPlanItemBodyObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatedActivityPlanItem200} and HTTP response + */ + putProjectPlanActivityWithHttpInfo(id, activityId, opts) { + opts = opts || {}; + let postBody = opts['projectPutPlanItemBodyObject']; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling putProjectPlanActivity"); + } + + // verify the required parameter 'activityId' is set + if (activityId === undefined || activityId === null) { + throw new Error("Missing the required parameter 'activityId' when calling putProjectPlanActivity"); + } + + + let pathParams = { + 'id': id, + 'activityId': activityId, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = ['application/json', ]; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = UpdatedActivityPlanItem200; + return this.apiClient.callApi( + '/projects/{id}/plan/activities/{activityId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update activity in project plan + * Updates an activity phase or group in a project. + * @param {Number} id The ID of the project + * @param {Number} activityId The ID of the activity + * @param {Object} opts Optional parameters + * @param {module:model/ProjectPutPlanItemBodyObject} opts.projectPutPlanItemBodyObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatedActivityPlanItem200} + */ + putProjectPlanActivity(id, activityId, opts) { + return this.putProjectPlanActivityWithHttpInfo(id, activityId, opts) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Update task in project plan + * Updates a task phase or group in a project. + * @param {Number} id The ID of the project + * @param {Number} taskId The ID of the task + * @param {Object} opts Optional parameters + * @param {module:model/ProjectPutPlanItemBodyObject} opts.projectPutPlanItemBodyObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatedTaskPlanItem200} and HTTP response + */ + putProjectPlanTaskWithHttpInfo(id, taskId, opts) { + opts = opts || {}; + let postBody = opts['projectPutPlanItemBodyObject']; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling putProjectPlanTask"); + } + + // verify the required parameter 'taskId' is set + if (taskId === undefined || taskId === null) { + throw new Error("Missing the required parameter 'taskId' when calling putProjectPlanTask"); + } + + + let pathParams = { + 'id': id, + 'taskId': taskId, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = ['application/json', ]; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = UpdatedTaskPlanItem200; + return this.apiClient.callApi( + '/projects/{id}/plan/tasks/{taskId}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update task in project plan + * Updates a task phase or group in a project. + * @param {Number} id The ID of the project + * @param {Number} taskId The ID of the task + * @param {Object} opts Optional parameters + * @param {module:model/ProjectPutPlanItemBodyObject} opts.projectPutPlanItemBodyObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatedTaskPlanItem200} + */ + putProjectPlanTask(id, taskId, opts) { + return this.putProjectPlanTaskWithHttpInfo(id, taskId, opts) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Update a project + * Updates a project. + * @param {Number} id The ID of the project + * @param {Object} opts Optional parameters + * @param {module:model/ProjectPutObject} opts.projectPutObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateProjectResponse200} and HTTP response + */ + updateProjectWithHttpInfo(id, opts) { + opts = opts || {}; + let postBody = opts['projectPutObject']; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling updateProject"); + } + + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = ['application/json', ]; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = UpdateProjectResponse200; + return this.apiClient.callApi( + '/projects/{id}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update a project + * Updates a project. + * @param {Number} id The ID of the project + * @param {Object} opts Optional parameters + * @param {module:model/ProjectPutObject} opts.projectPutObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateProjectResponse200} + */ + updateProject(id, opts) { + return this.updateProjectWithHttpInfo(id, opts) + .then(function(response_and_data) { + return response_and_data; + }); + } + + +} diff --git a/src/api/TasksApi.js b/src/api/TasksApi.js new file mode 100644 index 00000000..70c12896 --- /dev/null +++ b/src/api/TasksApi.js @@ -0,0 +1,395 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + + +import ApiClient from "../ApiClient"; +import AddTaskResponse201 from '../model/AddTaskResponse201'; +import DeleteTaskResponse200 from '../model/DeleteTaskResponse200'; +import GetTaskResponse200 from '../model/GetTaskResponse200'; +import GetTasksResponse200 from '../model/GetTasksResponse200'; +import NumberBoolean from '../model/NumberBoolean'; +import TaskPostObject from '../model/TaskPostObject'; +import TaskPutObject from '../model/TaskPutObject'; +import UpdateTaskResponse200 from '../model/UpdateTaskResponse200'; + +/** +* Tasks service. +* @module api/TasksApi +* @version 1.0.0 +*/ +export default class TasksApi { + + /** + * Constructs a new TasksApi. + * @alias module:api/TasksApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient; + } + + + + /** + * Add a task + * Adds a new task. + * @param {Object} opts Optional parameters + * @param {module:model/TaskPostObject} opts.taskPostObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddTaskResponse201} and HTTP response + */ + addTaskWithHttpInfo(opts) { + opts = opts || {}; + let postBody = opts['taskPostObject']; + + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = ['application/json', ]; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = AddTaskResponse201; + return this.apiClient.callApi( + '/tasks', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Add a task + * Adds a new task. + * @param {Object} opts Optional parameters + * @param {module:model/TaskPostObject} opts.taskPostObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddTaskResponse201} + */ + addTask(opts) { + return this.addTaskWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Delete a task + * Marks a task as deleted. If the task has subtasks then those will also be deleted. + * @param {Number} id The ID of the task + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteTaskResponse200} and HTTP response + */ + deleteTaskWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling deleteTask"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = DeleteTaskResponse200; + return this.apiClient.callApi( + '/tasks/{id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Delete a task + * Marks a task as deleted. If the task has subtasks then those will also be deleted. + * @param {Number} id The ID of the task + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteTaskResponse200} + */ + deleteTask(id) { + return this.deleteTaskWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Get details of a task + * Returns the details of a specific task. + * @param {Number} id The ID of the task + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTaskResponse200} and HTTP response + */ + getTaskWithHttpInfo(id) { + const opts = {} + let postBody = null; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getTask"); + } + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetTaskResponse200; + return this.apiClient.callApi( + '/tasks/{id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get details of a task + * Returns the details of a specific task. + * @param {Number} id The ID of the task + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTaskResponse200} + */ + getTask(id) { + return this.getTaskWithHttpInfo(id) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Get all tasks + * Returns all tasks. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @param {Object} opts Optional parameters + * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + * @param {Number} opts.assigneeId If supplied, only tasks that are assigned to this user are returned + * @param {Number} opts.projectId If supplied, only tasks that are assigned to this project are returned + * @param {Number} opts.parentTaskId If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. + * @param {module:model/NumberBoolean} opts.done Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTasksResponse200} and HTTP response + */ + getTasksWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + + + + + + + let pathParams = { + }; + let queryParams = { + 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], + 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], + 'assignee_id': opts['assignee_id'] === undefined ? opts['assigneeId'] : opts['assignee_id'], + 'project_id': opts['project_id'] === undefined ? opts['projectId'] : opts['project_id'], + 'parent_task_id': opts['parent_task_id'] === undefined ? opts['parentTaskId'] : opts['parent_task_id'], + 'done': opts['done'] === undefined ? opts['done'] : opts['done'], + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = []; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = GetTasksResponse200; + return this.apiClient.callApi( + '/tasks', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get all tasks + * Returns all tasks. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @param {Object} opts Optional parameters + * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + * @param {Number} opts.assigneeId If supplied, only tasks that are assigned to this user are returned + * @param {Number} opts.projectId If supplied, only tasks that are assigned to this project are returned + * @param {Number} opts.parentTaskId If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. + * @param {module:model/NumberBoolean} opts.done Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTasksResponse200} + */ + getTasks(opts) { + return this.getTasksWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data; + }); + } + + + /** + * Update a task + * Updates a task. + * @param {Number} id The ID of the task + * @param {Object} opts Optional parameters + * @param {module:model/TaskPutObject} opts.taskPutObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTaskResponse200} and HTTP response + */ + updateTaskWithHttpInfo(id, opts) { + opts = opts || {}; + let postBody = opts['taskPutObject']; + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling updateTask"); + } + + + let pathParams = { + 'id': id, + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let formParamArray = [ + ]; + + let contentTypes = ['application/json', ]; + const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); + const isJSON = contentTypes.includes('application/json'); + + if (isJSON) { + postBody = { ...postBody, ...opts }; + } else if (isURLEncoded) { + for (let key in opts) { + if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { + formParams[key] = opts[key]; + } + } + } + + let authNames = ['api_key', 'oauth2', ]; + let accepts = ['application/json', ]; + let returnType = UpdateTaskResponse200; + return this.apiClient.callApi( + '/tasks/{id}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update a task + * Updates a task. + * @param {Number} id The ID of the task + * @param {Object} opts Optional parameters + * @param {module:model/TaskPutObject} opts.taskPutObject + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTaskResponse200} + */ + updateTask(id, opts) { + return this.updateTaskWithHttpInfo(id, opts) + .then(function(response_and_data) { + return response_and_data; + }); + } + + +} diff --git a/src/index.js b/src/index.js index 8cbf0ae2..1b524caa 100644 --- a/src/index.js +++ b/src/index.js @@ -68,8 +68,10 @@ import AddProductAttachmentDetails from './model/AddProductAttachmentDetails'; import AddProductAttachmentDetailsAllOf from './model/AddProductAttachmentDetailsAllOf'; import AddProductFollowerRequest from './model/AddProductFollowerRequest'; import AddProductRequestBody from './model/AddProductRequestBody'; +import AddProjectResponse201 from './model/AddProjectResponse201'; import AddRole from './model/AddRole'; import AddRoleAssignmentRequest from './model/AddRoleAssignmentRequest'; +import AddTaskResponse201 from './model/AddTaskResponse201'; import AddTeamUserRequest from './model/AddTeamUserRequest'; import AddUserRequest from './model/AddUserRequest'; import AddWebhookRequest from './model/AddWebhookRequest'; @@ -249,6 +251,9 @@ import DeleteProductFollowerResponse from './model/DeleteProductFollowerResponse import DeleteProductFollowerResponseData from './model/DeleteProductFollowerResponseData'; import DeleteProductResponse from './model/DeleteProductResponse'; import DeleteProductResponseData from './model/DeleteProductResponseData'; +import DeleteProject from './model/DeleteProject'; +import DeleteProjectData from './model/DeleteProjectData'; +import DeleteProjectResponse200 from './model/DeleteProjectResponse200'; import DeleteResponse from './model/DeleteResponse'; import DeleteResponseAllOf from './model/DeleteResponseAllOf'; import DeleteResponseAllOfData from './model/DeleteResponseAllOfData'; @@ -263,6 +268,9 @@ import DeleteStageResponse200 from './model/DeleteStageResponse200'; import DeleteStageResponse200Data from './model/DeleteStageResponse200Data'; import DeleteStagesResponse200 from './model/DeleteStagesResponse200'; import DeleteStagesResponse200Data from './model/DeleteStagesResponse200Data'; +import DeleteTask from './model/DeleteTask'; +import DeleteTaskData from './model/DeleteTaskData'; +import DeleteTaskResponse200 from './model/DeleteTaskResponse200'; import DeleteTeamUserRequest from './model/DeleteTeamUserRequest'; import Duration from './model/Duration'; import EditPipeline from './model/EditPipeline'; @@ -301,8 +309,10 @@ import FindGoalResponse from './model/FindGoalResponse'; import FollowerData from './model/FollowerData'; import FollowerDataWithID from './model/FollowerDataWithID'; import FollowerDataWithIDAllOf from './model/FollowerDataWithIDAllOf'; +import FullProjectObject from './model/FullProjectObject'; import FullRole from './model/FullRole'; import FullRoleAllOf from './model/FullRoleAllOf'; +import FullTaskObject from './model/FullTaskObject'; import GetActivitiesCollectionResponse200 from './model/GetActivitiesCollectionResponse200'; import GetActivitiesResponse200 from './model/GetActivitiesResponse200'; import GetActivitiesResponse200RelatedObjects from './model/GetActivitiesResponse200RelatedObjects'; @@ -356,6 +366,16 @@ import GetPersonDetailsResponseAllOf from './model/GetPersonDetailsResponseAllOf import GetPersonDetailsResponseAllOfAdditionalData from './model/GetPersonDetailsResponseAllOfAdditionalData'; import GetProductAttachementDetails from './model/GetProductAttachementDetails'; import GetProductFieldResponse from './model/GetProductFieldResponse'; +import GetProjectBoardResponse200 from './model/GetProjectBoardResponse200'; +import GetProjectBoardsResponse200 from './model/GetProjectBoardsResponse200'; +import GetProjectGroupsResponse200 from './model/GetProjectGroupsResponse200'; +import GetProjectPhaseResponse200 from './model/GetProjectPhaseResponse200'; +import GetProjectPhasesResponse200 from './model/GetProjectPhasesResponse200'; +import GetProjectPlanResponse200 from './model/GetProjectPlanResponse200'; +import GetProjectResponse200 from './model/GetProjectResponse200'; +import GetProjectTemplateResponse200 from './model/GetProjectTemplateResponse200'; +import GetProjectTemplatesResponse200 from './model/GetProjectTemplatesResponse200'; +import GetProjectsResponse200 from './model/GetProjectsResponse200'; import GetRecents from './model/GetRecents'; import GetRecentsAdditionalData from './model/GetRecentsAdditionalData'; import GetRole from './model/GetRole'; @@ -372,6 +392,8 @@ import GetRoles from './model/GetRoles'; import GetRolesAllOf from './model/GetRolesAllOf'; import GetStageDeals from './model/GetStageDeals'; import GetStages from './model/GetStages'; +import GetTaskResponse200 from './model/GetTaskResponse200'; +import GetTasksResponse200 from './model/GetTasksResponse200'; import GoalResults from './model/GoalResults'; import GoalType from './model/GoalType'; import GoalsResponseComponent from './model/GoalsResponseComponent'; @@ -633,6 +655,19 @@ import ProductSearchResponseAllOfData from './model/ProductSearchResponseAllOfDa import ProductWithArrayPrices from './model/ProductWithArrayPrices'; import ProductWithObjectPrices from './model/ProductWithObjectPrices'; import ProductsResponse from './model/ProductsResponse'; +import ProjectBoardObject from './model/ProjectBoardObject'; +import ProjectGroupsObject from './model/ProjectGroupsObject'; +import ProjectId from './model/ProjectId'; +import ProjectMandatoryObjectFragment from './model/ProjectMandatoryObjectFragment'; +import ProjectNotChangeableObjectFragment from './model/ProjectNotChangeableObjectFragment'; +import ProjectObjectFragment from './model/ProjectObjectFragment'; +import ProjectPhaseObject from './model/ProjectPhaseObject'; +import ProjectPlanItemObject from './model/ProjectPlanItemObject'; +import ProjectPostObject from './model/ProjectPostObject'; +import ProjectPostObjectAllOf from './model/ProjectPostObjectAllOf'; +import ProjectPutObject from './model/ProjectPutObject'; +import ProjectPutPlanItemBodyObject from './model/ProjectPutPlanItemBodyObject'; +import ProjectResponseObject from './model/ProjectResponseObject'; import PutRole from './model/PutRole'; import PutRoleAllOf from './model/PutRoleAllOf'; import PutRoleAllOfData from './model/PutRoleAllOfData'; @@ -664,6 +699,8 @@ import RelationshipOrganizationInfoItem from './model/RelationshipOrganizationIn import RelationshipOrganizationInfoItemAllOf from './model/RelationshipOrganizationInfoItemAllOf'; import RelationshipOrganizationInfoItemWithActiveFlag from './model/RelationshipOrganizationInfoItemWithActiveFlag'; import RequiredNameObject from './model/RequiredNameObject'; +import RequiredPostProjectParameters from './model/RequiredPostProjectParameters'; +import RequiredPostTaskParameters from './model/RequiredPostTaskParameters'; import RequredTitleParameter from './model/RequredTitleParameter'; import ResponseCallLogObject from './model/ResponseCallLogObject'; import ResponseCallLogObjectAllOf from './model/ResponseCallLogObjectAllOf'; @@ -691,11 +728,20 @@ import SubscriptionRecurringCreateRequest from './model/SubscriptionRecurringCre import SubscriptionRecurringUpdateRequest from './model/SubscriptionRecurringUpdateRequest'; import SubscriptionsIdResponse from './model/SubscriptionsIdResponse'; import SubscriptionsIdResponseAllOf from './model/SubscriptionsIdResponseAllOf'; +import TaskId from './model/TaskId'; +import TaskMandatoryObjectFragment from './model/TaskMandatoryObjectFragment'; +import TaskNotChangeableObjectFragment from './model/TaskNotChangeableObjectFragment'; +import TaskObjectFragment from './model/TaskObjectFragment'; +import TaskPostObject from './model/TaskPostObject'; +import TaskPutObject from './model/TaskPutObject'; +import TaskResponseObject from './model/TaskResponseObject'; import Team from './model/Team'; import TeamAllOf from './model/TeamAllOf'; import TeamId from './model/TeamId'; import Teams from './model/Teams'; import TeamsAllOf from './model/TeamsAllOf'; +import TemplateObject from './model/TemplateObject'; +import TemplateResponseObject from './model/TemplateResponseObject'; import Unauthorized from './model/Unauthorized'; import UpdateActivityResponse200 from './model/UpdateActivityResponse200'; import UpdateDealParameters from './model/UpdateDealParameters'; @@ -713,12 +759,16 @@ import UpdatePersonResponse from './model/UpdatePersonResponse'; import UpdateProductField from './model/UpdateProductField'; import UpdateProductRequestBody from './model/UpdateProductRequestBody'; import UpdateProductResponse from './model/UpdateProductResponse'; +import UpdateProjectResponse200 from './model/UpdateProjectResponse200'; import UpdateStageRequest from './model/UpdateStageRequest'; import UpdateStageRequestAllOf from './model/UpdateStageRequestAllOf'; +import UpdateTaskResponse200 from './model/UpdateTaskResponse200'; import UpdateTeam from './model/UpdateTeam'; import UpdateTeamAllOf from './model/UpdateTeamAllOf'; import UpdateTeamWithAdditionalProperties from './model/UpdateTeamWithAdditionalProperties'; import UpdateUserRequest from './model/UpdateUserRequest'; +import UpdatedActivityPlanItem200 from './model/UpdatedActivityPlanItem200'; +import UpdatedTaskPlanItem200 from './model/UpdatedTaskPlanItem200'; import User from './model/User'; import UserAccess from './model/UserAccess'; import UserAllOf from './model/UserAllOf'; @@ -780,10 +830,13 @@ import PersonsApi from './api/PersonsApi'; import PipelinesApi from './api/PipelinesApi'; import ProductFieldsApi from './api/ProductFieldsApi'; import ProductsApi from './api/ProductsApi'; +import ProjectTemplatesApi from './api/ProjectTemplatesApi'; +import ProjectsApi from './api/ProjectsApi'; import RecentsApi from './api/RecentsApi'; import RolesApi from './api/RolesApi'; import StagesApi from './api/StagesApi'; import SubscriptionsApi from './api/SubscriptionsApi'; +import TasksApi from './api/TasksApi'; import UserConnectionsApi from './api/UserConnectionsApi'; import UserSettingsApi from './api/UserSettingsApi'; import UsersApi from './api/UsersApi'; @@ -1158,6 +1211,12 @@ export { */ AddProductRequestBody, + /** + * The AddProjectResponse201 model constructor. + * @property {module:model/AddProjectResponse201} + */ + AddProjectResponse201, + /** * The AddRole model constructor. * @property {module:model/AddRole} @@ -1170,6 +1229,12 @@ export { */ AddRoleAssignmentRequest, + /** + * The AddTaskResponse201 model constructor. + * @property {module:model/AddTaskResponse201} + */ + AddTaskResponse201, + /** * The AddTeamUserRequest model constructor. * @property {module:model/AddTeamUserRequest} @@ -2244,6 +2309,24 @@ export { */ DeleteProductResponseData, + /** + * The DeleteProject model constructor. + * @property {module:model/DeleteProject} + */ + DeleteProject, + + /** + * The DeleteProjectData model constructor. + * @property {module:model/DeleteProjectData} + */ + DeleteProjectData, + + /** + * The DeleteProjectResponse200 model constructor. + * @property {module:model/DeleteProjectResponse200} + */ + DeleteProjectResponse200, + /** * The DeleteResponse model constructor. * @property {module:model/DeleteResponse} @@ -2328,6 +2411,24 @@ export { */ DeleteStagesResponse200Data, + /** + * The DeleteTask model constructor. + * @property {module:model/DeleteTask} + */ + DeleteTask, + + /** + * The DeleteTaskData model constructor. + * @property {module:model/DeleteTaskData} + */ + DeleteTaskData, + + /** + * The DeleteTaskResponse200 model constructor. + * @property {module:model/DeleteTaskResponse200} + */ + DeleteTaskResponse200, + /** * The DeleteTeamUserRequest model constructor. * @property {module:model/DeleteTeamUserRequest} @@ -2556,6 +2657,12 @@ export { */ FollowerDataWithIDAllOf, + /** + * The FullProjectObject model constructor. + * @property {module:model/FullProjectObject} + */ + FullProjectObject, + /** * The FullRole model constructor. * @property {module:model/FullRole} @@ -2568,6 +2675,12 @@ export { */ FullRoleAllOf, + /** + * The FullTaskObject model constructor. + * @property {module:model/FullTaskObject} + */ + FullTaskObject, + /** * The GetActivitiesCollectionResponse200 model constructor. * @property {module:model/GetActivitiesCollectionResponse200} @@ -2886,6 +2999,66 @@ export { */ GetProductFieldResponse, + /** + * The GetProjectBoardResponse200 model constructor. + * @property {module:model/GetProjectBoardResponse200} + */ + GetProjectBoardResponse200, + + /** + * The GetProjectBoardsResponse200 model constructor. + * @property {module:model/GetProjectBoardsResponse200} + */ + GetProjectBoardsResponse200, + + /** + * The GetProjectGroupsResponse200 model constructor. + * @property {module:model/GetProjectGroupsResponse200} + */ + GetProjectGroupsResponse200, + + /** + * The GetProjectPhaseResponse200 model constructor. + * @property {module:model/GetProjectPhaseResponse200} + */ + GetProjectPhaseResponse200, + + /** + * The GetProjectPhasesResponse200 model constructor. + * @property {module:model/GetProjectPhasesResponse200} + */ + GetProjectPhasesResponse200, + + /** + * The GetProjectPlanResponse200 model constructor. + * @property {module:model/GetProjectPlanResponse200} + */ + GetProjectPlanResponse200, + + /** + * The GetProjectResponse200 model constructor. + * @property {module:model/GetProjectResponse200} + */ + GetProjectResponse200, + + /** + * The GetProjectTemplateResponse200 model constructor. + * @property {module:model/GetProjectTemplateResponse200} + */ + GetProjectTemplateResponse200, + + /** + * The GetProjectTemplatesResponse200 model constructor. + * @property {module:model/GetProjectTemplatesResponse200} + */ + GetProjectTemplatesResponse200, + + /** + * The GetProjectsResponse200 model constructor. + * @property {module:model/GetProjectsResponse200} + */ + GetProjectsResponse200, + /** * The GetRecents model constructor. * @property {module:model/GetRecents} @@ -2982,6 +3155,18 @@ export { */ GetStages, + /** + * The GetTaskResponse200 model constructor. + * @property {module:model/GetTaskResponse200} + */ + GetTaskResponse200, + + /** + * The GetTasksResponse200 model constructor. + * @property {module:model/GetTasksResponse200} + */ + GetTasksResponse200, + /** * The GoalResults model constructor. * @property {module:model/GoalResults} @@ -4548,6 +4733,84 @@ export { */ ProductsResponse, + /** + * The ProjectBoardObject model constructor. + * @property {module:model/ProjectBoardObject} + */ + ProjectBoardObject, + + /** + * The ProjectGroupsObject model constructor. + * @property {module:model/ProjectGroupsObject} + */ + ProjectGroupsObject, + + /** + * The ProjectId model constructor. + * @property {module:model/ProjectId} + */ + ProjectId, + + /** + * The ProjectMandatoryObjectFragment model constructor. + * @property {module:model/ProjectMandatoryObjectFragment} + */ + ProjectMandatoryObjectFragment, + + /** + * The ProjectNotChangeableObjectFragment model constructor. + * @property {module:model/ProjectNotChangeableObjectFragment} + */ + ProjectNotChangeableObjectFragment, + + /** + * The ProjectObjectFragment model constructor. + * @property {module:model/ProjectObjectFragment} + */ + ProjectObjectFragment, + + /** + * The ProjectPhaseObject model constructor. + * @property {module:model/ProjectPhaseObject} + */ + ProjectPhaseObject, + + /** + * The ProjectPlanItemObject model constructor. + * @property {module:model/ProjectPlanItemObject} + */ + ProjectPlanItemObject, + + /** + * The ProjectPostObject model constructor. + * @property {module:model/ProjectPostObject} + */ + ProjectPostObject, + + /** + * The ProjectPostObjectAllOf model constructor. + * @property {module:model/ProjectPostObjectAllOf} + */ + ProjectPostObjectAllOf, + + /** + * The ProjectPutObject model constructor. + * @property {module:model/ProjectPutObject} + */ + ProjectPutObject, + + /** + * The ProjectPutPlanItemBodyObject model constructor. + * @property {module:model/ProjectPutPlanItemBodyObject} + */ + ProjectPutPlanItemBodyObject, + + /** + * The ProjectResponseObject model constructor. + * @property {module:model/ProjectResponseObject} + */ + ProjectResponseObject, + /** * The PutRole model constructor. * @property {module:model/PutRole} @@ -4734,6 +4997,18 @@ export { */ RequiredNameObject, + /** + * The RequiredPostProjectParameters model constructor. + * @property {module:model/RequiredPostProjectParameters} + */ + RequiredPostProjectParameters, + + /** + * The RequiredPostTaskParameters model constructor. + * @property {module:model/RequiredPostTaskParameters} + */ + RequiredPostTaskParameters, + /** * The RequredTitleParameter model constructor. * @property {module:model/RequredTitleParameter} @@ -4896,6 +5171,48 @@ export { */ SubscriptionsIdResponseAllOf, + /** + * The TaskId model constructor. + * @property {module:model/TaskId} + */ + TaskId, + + /** + * The TaskMandatoryObjectFragment model constructor. + * @property {module:model/TaskMandatoryObjectFragment} + */ + TaskMandatoryObjectFragment, + + /** + * The TaskNotChangeableObjectFragment model constructor. + * @property {module:model/TaskNotChangeableObjectFragment} + */ + TaskNotChangeableObjectFragment, + + /** + * The TaskObjectFragment model constructor. + * @property {module:model/TaskObjectFragment} + */ + TaskObjectFragment, + + /** + * The TaskPostObject model constructor. + * @property {module:model/TaskPostObject} + */ + TaskPostObject, + + /** + * The TaskPutObject model constructor. + * @property {module:model/TaskPutObject} + */ + TaskPutObject, + + /** + * The TaskResponseObject model constructor. + * @property {module:model/TaskResponseObject} + */ + TaskResponseObject, + /** * The Team model constructor. * @property {module:model/Team} @@ -4926,6 +5243,18 @@ export { */ TeamsAllOf, + /** + * The TemplateObject model constructor. + * @property {module:model/TemplateObject} + */ + TemplateObject, + + /** + * The TemplateResponseObject model constructor. + * @property {module:model/TemplateResponseObject} + */ + TemplateResponseObject, + /** * The Unauthorized model constructor. * @property {module:model/Unauthorized} @@ -5028,6 +5357,12 @@ export { */ UpdateProductResponse, + /** + * The UpdateProjectResponse200 model constructor. + * @property {module:model/UpdateProjectResponse200} + */ + UpdateProjectResponse200, + /** * The UpdateStageRequest model constructor. * @property {module:model/UpdateStageRequest} @@ -5040,6 +5375,12 @@ export { */ UpdateStageRequestAllOf, + /** + * The UpdateTaskResponse200 model constructor. + * @property {module:model/UpdateTaskResponse200} + */ + UpdateTaskResponse200, + /** * The UpdateTeam model constructor. * @property {module:model/UpdateTeam} @@ -5064,6 +5405,18 @@ export { */ UpdateUserRequest, + /** + * The UpdatedActivityPlanItem200 model constructor. + * @property {module:model/UpdatedActivityPlanItem200} + */ + UpdatedActivityPlanItem200, + + /** + * The UpdatedTaskPlanItem200 model constructor. + * @property {module:model/UpdatedTaskPlanItem200} + */ + UpdatedTaskPlanItem200, + /** * The User model constructor. * @property {module:model/User} @@ -5430,6 +5783,18 @@ export { */ ProductsApi, + /** + * The ProjectTemplatesApi service constructor. + * @property {module:api/ProjectTemplatesApi} + */ + ProjectTemplatesApi, + + /** + * The ProjectsApi service constructor. + * @property {module:api/ProjectsApi} + */ + ProjectsApi, + /** * The RecentsApi service constructor. * @property {module:api/RecentsApi} @@ -5454,6 +5819,12 @@ export { */ SubscriptionsApi, + /** + * The TasksApi service constructor. + * @property {module:api/TasksApi} + */ + TasksApi, + /** * The UserConnectionsApi service constructor. * @property {module:api/UserConnectionsApi} diff --git a/src/model/AddProjectResponse201.js b/src/model/AddProjectResponse201.js new file mode 100644 index 00000000..37f8fe39 --- /dev/null +++ b/src/model/AddProjectResponse201.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectResponseObject from './ProjectResponseObject'; + +/** + * The AddProjectResponse201 model module. + * @module model/AddProjectResponse201 + * @version 1.0.0 + */ +class AddProjectResponse201 { + /** + * Constructs a new AddProjectResponse201. + * @alias module:model/AddProjectResponse201 + */ + constructor() { + + AddProjectResponse201.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AddProjectResponse201 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddProjectResponse201} obj Optional instance to populate. + * @return {module:model/AddProjectResponse201} The populated AddProjectResponse201 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AddProjectResponse201(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ProjectResponseObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +AddProjectResponse201.prototype['success'] = undefined; + +/** + * @member {module:model/ProjectResponseObject} data + */ +AddProjectResponse201.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +AddProjectResponse201.prototype['additional_data'] = undefined; + + + + + + +export default AddProjectResponse201; + diff --git a/src/model/AddTaskResponse201.js b/src/model/AddTaskResponse201.js new file mode 100644 index 00000000..1ab78d31 --- /dev/null +++ b/src/model/AddTaskResponse201.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import TaskResponseObject from './TaskResponseObject'; + +/** + * The AddTaskResponse201 model module. + * @module model/AddTaskResponse201 + * @version 1.0.0 + */ +class AddTaskResponse201 { + /** + * Constructs a new AddTaskResponse201. + * @alias module:model/AddTaskResponse201 + */ + constructor() { + + AddTaskResponse201.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AddTaskResponse201 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddTaskResponse201} obj Optional instance to populate. + * @return {module:model/AddTaskResponse201} The populated AddTaskResponse201 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AddTaskResponse201(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = TaskResponseObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +AddTaskResponse201.prototype['success'] = undefined; + +/** + * @member {module:model/TaskResponseObject} data + */ +AddTaskResponse201.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +AddTaskResponse201.prototype['additional_data'] = undefined; + + + + + + +export default AddTaskResponse201; + diff --git a/src/model/DeleteProject.js b/src/model/DeleteProject.js new file mode 100644 index 00000000..86abdbcc --- /dev/null +++ b/src/model/DeleteProject.js @@ -0,0 +1,90 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DeleteProjectData from './DeleteProjectData'; + +/** + * The DeleteProject model module. + * @module model/DeleteProject + * @version 1.0.0 + */ +class DeleteProject { + /** + * Constructs a new DeleteProject. + * @alias module:model/DeleteProject + */ + constructor() { + + DeleteProject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeleteProject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteProject} obj Optional instance to populate. + * @return {module:model/DeleteProject} The populated DeleteProject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteProject(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = DeleteProjectData.constructFromObject(data['data']); + + delete data['data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * If the request was successful or not + * @member {Boolean} success + */ +DeleteProject.prototype['success'] = undefined; + +/** + * @member {module:model/DeleteProjectData} data + */ +DeleteProject.prototype['data'] = undefined; + + + + + + +export default DeleteProject; + diff --git a/src/model/DeleteProjectData.js b/src/model/DeleteProjectData.js new file mode 100644 index 00000000..ad58ee68 --- /dev/null +++ b/src/model/DeleteProjectData.js @@ -0,0 +1,79 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DeleteProjectData model module. + * @module model/DeleteProjectData + * @version 1.0.0 + */ +class DeleteProjectData { + /** + * Constructs a new DeleteProjectData. + * @alias module:model/DeleteProjectData + */ + constructor() { + + DeleteProjectData.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeleteProjectData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteProjectData} obj Optional instance to populate. + * @return {module:model/DeleteProjectData} The populated DeleteProjectData instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteProjectData(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of the project that was deleted + * @member {Number} id + */ +DeleteProjectData.prototype['id'] = undefined; + + + + + + +export default DeleteProjectData; + diff --git a/src/model/DeleteProjectResponse200.js b/src/model/DeleteProjectResponse200.js new file mode 100644 index 00000000..aaaf76d0 --- /dev/null +++ b/src/model/DeleteProjectResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DeleteProject from './DeleteProject'; + +/** + * The DeleteProjectResponse200 model module. + * @module model/DeleteProjectResponse200 + * @version 1.0.0 + */ +class DeleteProjectResponse200 { + /** + * Constructs a new DeleteProjectResponse200. + * @alias module:model/DeleteProjectResponse200 + */ + constructor() { + + DeleteProjectResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeleteProjectResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteProjectResponse200} obj Optional instance to populate. + * @return {module:model/DeleteProjectResponse200} The populated DeleteProjectResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteProjectResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = DeleteProject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +DeleteProjectResponse200.prototype['success'] = undefined; + +/** + * @member {module:model/DeleteProject} data + */ +DeleteProjectResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +DeleteProjectResponse200.prototype['additional_data'] = undefined; + + + + + + +export default DeleteProjectResponse200; + diff --git a/src/model/DeleteTask.js b/src/model/DeleteTask.js new file mode 100644 index 00000000..32ba1360 --- /dev/null +++ b/src/model/DeleteTask.js @@ -0,0 +1,90 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DeleteTaskData from './DeleteTaskData'; + +/** + * The DeleteTask model module. + * @module model/DeleteTask + * @version 1.0.0 + */ +class DeleteTask { + /** + * Constructs a new DeleteTask. + * @alias module:model/DeleteTask + */ + constructor() { + + DeleteTask.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeleteTask from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteTask} obj Optional instance to populate. + * @return {module:model/DeleteTask} The populated DeleteTask instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteTask(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = DeleteTaskData.constructFromObject(data['data']); + + delete data['data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * If the request was successful or not + * @member {Boolean} success + */ +DeleteTask.prototype['success'] = undefined; + +/** + * @member {module:model/DeleteTaskData} data + */ +DeleteTask.prototype['data'] = undefined; + + + + + + +export default DeleteTask; + diff --git a/src/model/DeleteTaskData.js b/src/model/DeleteTaskData.js new file mode 100644 index 00000000..da981303 --- /dev/null +++ b/src/model/DeleteTaskData.js @@ -0,0 +1,79 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DeleteTaskData model module. + * @module model/DeleteTaskData + * @version 1.0.0 + */ +class DeleteTaskData { + /** + * Constructs a new DeleteTaskData. + * @alias module:model/DeleteTaskData + */ + constructor() { + + DeleteTaskData.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeleteTaskData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteTaskData} obj Optional instance to populate. + * @return {module:model/DeleteTaskData} The populated DeleteTaskData instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteTaskData(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of the task that was deleted + * @member {Number} id + */ +DeleteTaskData.prototype['id'] = undefined; + + + + + + +export default DeleteTaskData; + diff --git a/src/model/DeleteTaskResponse200.js b/src/model/DeleteTaskResponse200.js new file mode 100644 index 00000000..0e7ac1ae --- /dev/null +++ b/src/model/DeleteTaskResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import DeleteTask from './DeleteTask'; + +/** + * The DeleteTaskResponse200 model module. + * @module model/DeleteTaskResponse200 + * @version 1.0.0 + */ +class DeleteTaskResponse200 { + /** + * Constructs a new DeleteTaskResponse200. + * @alias module:model/DeleteTaskResponse200 + */ + constructor() { + + DeleteTaskResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a DeleteTaskResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteTaskResponse200} obj Optional instance to populate. + * @return {module:model/DeleteTaskResponse200} The populated DeleteTaskResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteTaskResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = DeleteTask.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +DeleteTaskResponse200.prototype['success'] = undefined; + +/** + * @member {module:model/DeleteTask} data + */ +DeleteTaskResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +DeleteTaskResponse200.prototype['additional_data'] = undefined; + + + + + + +export default DeleteTaskResponse200; + diff --git a/src/model/FilterType.js b/src/model/FilterType.js index 016865e4..c6ebaf77 100644 --- a/src/model/FilterType.js +++ b/src/model/FilterType.js @@ -61,6 +61,13 @@ export default class FilterType { "activity" = "activity"; + /** + * value: "projects" + * @const + */ + "projects" = "projects"; + + /** * Returns a FilterType enum value from a Javascript object name. diff --git a/src/model/FullProjectObject.js b/src/model/FullProjectObject.js new file mode 100644 index 00000000..fad9604a --- /dev/null +++ b/src/model/FullProjectObject.js @@ -0,0 +1,336 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectMandatoryObjectFragment from './ProjectMandatoryObjectFragment'; +import ProjectNotChangeableObjectFragment from './ProjectNotChangeableObjectFragment'; +import ProjectObjectFragment from './ProjectObjectFragment'; + +/** + * The FullProjectObject model module. + * @module model/FullProjectObject + * @version 1.0.0 + */ +class FullProjectObject { + /** + * Constructs a new FullProjectObject. + * @alias module:model/FullProjectObject + * @implements module:model/ProjectMandatoryObjectFragment + * @implements module:model/ProjectObjectFragment + * @implements module:model/ProjectNotChangeableObjectFragment + */ + constructor() { + ProjectMandatoryObjectFragment.initialize(this);ProjectObjectFragment.initialize(this);ProjectNotChangeableObjectFragment.initialize(this); + FullProjectObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FullProjectObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FullProjectObject} obj Optional instance to populate. + * @return {module:model/FullProjectObject} The populated FullProjectObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FullProjectObject(); + ProjectMandatoryObjectFragment.constructFromObject(data, obj); + ProjectObjectFragment.constructFromObject(data, obj); + ProjectNotChangeableObjectFragment.constructFromObject(data, obj); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('board_id')) { + obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); + + delete data['board_id']; + } + if (data.hasOwnProperty('phase_id')) { + obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); + + delete data['phase_id']; + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + + delete data['status']; + } + if (data.hasOwnProperty('owner_id')) { + obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); + + delete data['owner_id']; + } + if (data.hasOwnProperty('start_date')) { + obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); + + delete data['start_date']; + } + if (data.hasOwnProperty('end_date')) { + obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); + + delete data['end_date']; + } + if (data.hasOwnProperty('deal_ids')) { + obj['deal_ids'] = ApiClient.convertToType(data['deal_ids'], ['Number']); + + delete data['deal_ids']; + } + if (data.hasOwnProperty('org_id')) { + obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); + + delete data['org_id']; + } + if (data.hasOwnProperty('person_id')) { + obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); + + delete data['person_id']; + } + if (data.hasOwnProperty('labels')) { + obj['labels'] = ApiClient.convertToType(data['labels'], ['Number']); + + delete data['labels']; + } + if (data.hasOwnProperty('add_time')) { + obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); + + delete data['add_time']; + } + if (data.hasOwnProperty('update_time')) { + obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); + + delete data['update_time']; + } + if (data.hasOwnProperty('status_change_time')) { + obj['status_change_time'] = ApiClient.convertToType(data['status_change_time'], 'String'); + + delete data['status_change_time']; + } + if (data.hasOwnProperty('archive_time')) { + obj['archive_time'] = ApiClient.convertToType(data['archive_time'], 'String'); + + delete data['archive_time']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The title of the project + * @member {String} title + */ +FullProjectObject.prototype['title'] = undefined; + +/** + * The ID of the board this project is associated with + * @member {Number} board_id + */ +FullProjectObject.prototype['board_id'] = undefined; + +/** + * The ID of the phase this project is associated with + * @member {Number} phase_id + */ +FullProjectObject.prototype['phase_id'] = undefined; + +/** + * The description of the project + * @member {String} description + */ +FullProjectObject.prototype['description'] = undefined; + +/** + * The status of the project + * @member {String} status + */ +FullProjectObject.prototype['status'] = undefined; + +/** + * The ID of a project owner + * @member {Number} owner_id + */ +FullProjectObject.prototype['owner_id'] = undefined; + +/** + * The start date of the project. Format: YYYY-MM-DD. + * @member {Date} start_date + */ +FullProjectObject.prototype['start_date'] = undefined; + +/** + * The end date of the project. Format: YYYY-MM-DD. + * @member {Date} end_date + */ +FullProjectObject.prototype['end_date'] = undefined; + +/** + * An array of IDs of the deals this project is associated with + * @member {Array.} deal_ids + */ +FullProjectObject.prototype['deal_ids'] = undefined; + +/** + * The ID of the organization this project is associated with + * @member {Number} org_id + */ +FullProjectObject.prototype['org_id'] = undefined; + +/** + * The ID of the person this project is associated with + * @member {Number} person_id + */ +FullProjectObject.prototype['person_id'] = undefined; + +/** + * An array of IDs of the labels this project has + * @member {Array.} labels + */ +FullProjectObject.prototype['labels'] = undefined; + +/** + * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +FullProjectObject.prototype['add_time'] = undefined; + +/** + * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +FullProjectObject.prototype['update_time'] = undefined; + +/** + * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} status_change_time + */ +FullProjectObject.prototype['status_change_time'] = undefined; + +/** + * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. + * @member {String} archive_time + */ +FullProjectObject.prototype['archive_time'] = undefined; + + +// Implement ProjectMandatoryObjectFragment interface: +/** + * The title of the project + * @member {String} title + */ +ProjectMandatoryObjectFragment.prototype['title'] = undefined; +/** + * The ID of the board this project is associated with + * @member {Number} board_id + */ +ProjectMandatoryObjectFragment.prototype['board_id'] = undefined; +/** + * The ID of the phase this project is associated with + * @member {Number} phase_id + */ +ProjectMandatoryObjectFragment.prototype['phase_id'] = undefined; +// Implement ProjectObjectFragment interface: +/** + * The description of the project + * @member {String} description + */ +ProjectObjectFragment.prototype['description'] = undefined; +/** + * The status of the project + * @member {String} status + */ +ProjectObjectFragment.prototype['status'] = undefined; +/** + * The ID of a project owner + * @member {Number} owner_id + */ +ProjectObjectFragment.prototype['owner_id'] = undefined; +/** + * The start date of the project. Format: YYYY-MM-DD. + * @member {Date} start_date + */ +ProjectObjectFragment.prototype['start_date'] = undefined; +/** + * The end date of the project. Format: YYYY-MM-DD. + * @member {Date} end_date + */ +ProjectObjectFragment.prototype['end_date'] = undefined; +/** + * An array of IDs of the deals this project is associated with + * @member {Array.} deal_ids + */ +ProjectObjectFragment.prototype['deal_ids'] = undefined; +/** + * The ID of the organization this project is associated with + * @member {Number} org_id + */ +ProjectObjectFragment.prototype['org_id'] = undefined; +/** + * The ID of the person this project is associated with + * @member {Number} person_id + */ +ProjectObjectFragment.prototype['person_id'] = undefined; +/** + * An array of IDs of the labels this project has + * @member {Array.} labels + */ +ProjectObjectFragment.prototype['labels'] = undefined; +// Implement ProjectNotChangeableObjectFragment interface: +/** + * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +ProjectNotChangeableObjectFragment.prototype['add_time'] = undefined; +/** + * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +ProjectNotChangeableObjectFragment.prototype['update_time'] = undefined; +/** + * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} status_change_time + */ +ProjectNotChangeableObjectFragment.prototype['status_change_time'] = undefined; +/** + * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. + * @member {String} archive_time + */ +ProjectNotChangeableObjectFragment.prototype['archive_time'] = undefined; + + + + +export default FullProjectObject; + diff --git a/src/model/FullTaskObject.js b/src/model/FullTaskObject.js new file mode 100644 index 00000000..88d7fd10 --- /dev/null +++ b/src/model/FullTaskObject.js @@ -0,0 +1,257 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NumberBoolean from './NumberBoolean'; +import TaskMandatoryObjectFragment from './TaskMandatoryObjectFragment'; +import TaskNotChangeableObjectFragment from './TaskNotChangeableObjectFragment'; +import TaskObjectFragment from './TaskObjectFragment'; + +/** + * The FullTaskObject model module. + * @module model/FullTaskObject + * @version 1.0.0 + */ +class FullTaskObject { + /** + * Constructs a new FullTaskObject. + * @alias module:model/FullTaskObject + * @implements module:model/TaskMandatoryObjectFragment + * @implements module:model/TaskObjectFragment + * @implements module:model/TaskNotChangeableObjectFragment + */ + constructor() { + TaskMandatoryObjectFragment.initialize(this);TaskObjectFragment.initialize(this);TaskNotChangeableObjectFragment.initialize(this); + FullTaskObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FullTaskObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FullTaskObject} obj Optional instance to populate. + * @return {module:model/FullTaskObject} The populated FullTaskObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FullTaskObject(); + TaskMandatoryObjectFragment.constructFromObject(data, obj); + TaskObjectFragment.constructFromObject(data, obj); + TaskNotChangeableObjectFragment.constructFromObject(data, obj); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('project_id')) { + obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); + + delete data['project_id']; + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('parent_task_id')) { + obj['parent_task_id'] = ApiClient.convertToType(data['parent_task_id'], 'Number'); + + delete data['parent_task_id']; + } + if (data.hasOwnProperty('assignee_id')) { + obj['assignee_id'] = ApiClient.convertToType(data['assignee_id'], 'Number'); + + delete data['assignee_id']; + } + if (data.hasOwnProperty('done')) { + obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); + + delete data['done']; + } + if (data.hasOwnProperty('due_date')) { + obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); + + delete data['due_date']; + } + if (data.hasOwnProperty('creator_id')) { + obj['creator_id'] = ApiClient.convertToType(data['creator_id'], 'Number'); + + delete data['creator_id']; + } + if (data.hasOwnProperty('add_time')) { + obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); + + delete data['add_time']; + } + if (data.hasOwnProperty('update_time')) { + obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); + + delete data['update_time']; + } + if (data.hasOwnProperty('marked_as_done_time')) { + obj['marked_as_done_time'] = ApiClient.convertToType(data['marked_as_done_time'], 'String'); + + delete data['marked_as_done_time']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The title of the task + * @member {String} title + */ +FullTaskObject.prototype['title'] = undefined; + +/** + * The ID of the project this task is associated with + * @member {Number} project_id + */ +FullTaskObject.prototype['project_id'] = undefined; + +/** + * The description of the task + * @member {String} description + */ +FullTaskObject.prototype['description'] = undefined; + +/** + * The ID of a parent task. Can not be ID of a task which is already a subtask. + * @member {Number} parent_task_id + */ +FullTaskObject.prototype['parent_task_id'] = undefined; + +/** + * The ID of the user who will be the assignee of the task + * @member {Number} assignee_id + */ +FullTaskObject.prototype['assignee_id'] = undefined; + +/** + * Whether the task is done or not. 0 = Not done, 1 = Done. + * @member {module:model/NumberBoolean} done + */ +FullTaskObject.prototype['done'] = undefined; + +/** + * The due date of the task. Format: YYYY-MM-DD. + * @member {Date} due_date + */ +FullTaskObject.prototype['due_date'] = undefined; + +/** + * The creator of a task + * @member {Number} creator_id + */ +FullTaskObject.prototype['creator_id'] = undefined; + +/** + * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +FullTaskObject.prototype['add_time'] = undefined; + +/** + * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +FullTaskObject.prototype['update_time'] = undefined; + +/** + * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} marked_as_done_time + */ +FullTaskObject.prototype['marked_as_done_time'] = undefined; + + +// Implement TaskMandatoryObjectFragment interface: +/** + * The title of the task + * @member {String} title + */ +TaskMandatoryObjectFragment.prototype['title'] = undefined; +/** + * The ID of the project this task is associated with + * @member {Number} project_id + */ +TaskMandatoryObjectFragment.prototype['project_id'] = undefined; +// Implement TaskObjectFragment interface: +/** + * The description of the task + * @member {String} description + */ +TaskObjectFragment.prototype['description'] = undefined; +/** + * The ID of a parent task. Can not be ID of a task which is already a subtask. + * @member {Number} parent_task_id + */ +TaskObjectFragment.prototype['parent_task_id'] = undefined; +/** + * The ID of the user who will be the assignee of the task + * @member {Number} assignee_id + */ +TaskObjectFragment.prototype['assignee_id'] = undefined; +/** + * Whether the task is done or not. 0 = Not done, 1 = Done. + * @member {module:model/NumberBoolean} done + */ +TaskObjectFragment.prototype['done'] = undefined; +/** + * The due date of the task. Format: YYYY-MM-DD. + * @member {Date} due_date + */ +TaskObjectFragment.prototype['due_date'] = undefined; +// Implement TaskNotChangeableObjectFragment interface: +/** + * The creator of a task + * @member {Number} creator_id + */ +TaskNotChangeableObjectFragment.prototype['creator_id'] = undefined; +/** + * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +TaskNotChangeableObjectFragment.prototype['add_time'] = undefined; +/** + * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +TaskNotChangeableObjectFragment.prototype['update_time'] = undefined; +/** + * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} marked_as_done_time + */ +TaskNotChangeableObjectFragment.prototype['marked_as_done_time'] = undefined; + + + + +export default FullTaskObject; + diff --git a/src/model/GetProjectBoardResponse200.js b/src/model/GetProjectBoardResponse200.js new file mode 100644 index 00000000..d4358f73 --- /dev/null +++ b/src/model/GetProjectBoardResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectBoardObject from './ProjectBoardObject'; + +/** + * The GetProjectBoardResponse200 model module. + * @module model/GetProjectBoardResponse200 + * @version 1.0.0 + */ +class GetProjectBoardResponse200 { + /** + * Constructs a new GetProjectBoardResponse200. + * @alias module:model/GetProjectBoardResponse200 + */ + constructor() { + + GetProjectBoardResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetProjectBoardResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProjectBoardResponse200} obj Optional instance to populate. + * @return {module:model/GetProjectBoardResponse200} The populated GetProjectBoardResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProjectBoardResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ProjectBoardObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetProjectBoardResponse200.prototype['success'] = undefined; + +/** + * @member {module:model/ProjectBoardObject} data + */ +GetProjectBoardResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +GetProjectBoardResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetProjectBoardResponse200; + diff --git a/src/model/GetProjectBoardsResponse200.js b/src/model/GetProjectBoardsResponse200.js new file mode 100644 index 00000000..86a0e64e --- /dev/null +++ b/src/model/GetProjectBoardsResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectBoardObject from './ProjectBoardObject'; + +/** + * The GetProjectBoardsResponse200 model module. + * @module model/GetProjectBoardsResponse200 + * @version 1.0.0 + */ +class GetProjectBoardsResponse200 { + /** + * Constructs a new GetProjectBoardsResponse200. + * @alias module:model/GetProjectBoardsResponse200 + */ + constructor() { + + GetProjectBoardsResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetProjectBoardsResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProjectBoardsResponse200} obj Optional instance to populate. + * @return {module:model/GetProjectBoardsResponse200} The populated GetProjectBoardsResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProjectBoardsResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], [ProjectBoardObject]); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetProjectBoardsResponse200.prototype['success'] = undefined; + +/** + * @member {Array.} data + */ +GetProjectBoardsResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +GetProjectBoardsResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetProjectBoardsResponse200; + diff --git a/src/model/GetProjectGroupsResponse200.js b/src/model/GetProjectGroupsResponse200.js new file mode 100644 index 00000000..c2c57380 --- /dev/null +++ b/src/model/GetProjectGroupsResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectGroupsObject from './ProjectGroupsObject'; + +/** + * The GetProjectGroupsResponse200 model module. + * @module model/GetProjectGroupsResponse200 + * @version 1.0.0 + */ +class GetProjectGroupsResponse200 { + /** + * Constructs a new GetProjectGroupsResponse200. + * @alias module:model/GetProjectGroupsResponse200 + */ + constructor() { + + GetProjectGroupsResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetProjectGroupsResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProjectGroupsResponse200} obj Optional instance to populate. + * @return {module:model/GetProjectGroupsResponse200} The populated GetProjectGroupsResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProjectGroupsResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], [ProjectGroupsObject]); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetProjectGroupsResponse200.prototype['success'] = undefined; + +/** + * @member {Array.} data + */ +GetProjectGroupsResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +GetProjectGroupsResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetProjectGroupsResponse200; + diff --git a/src/model/GetProjectPhaseResponse200.js b/src/model/GetProjectPhaseResponse200.js new file mode 100644 index 00000000..84f2f4e1 --- /dev/null +++ b/src/model/GetProjectPhaseResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectPhaseObject from './ProjectPhaseObject'; + +/** + * The GetProjectPhaseResponse200 model module. + * @module model/GetProjectPhaseResponse200 + * @version 1.0.0 + */ +class GetProjectPhaseResponse200 { + /** + * Constructs a new GetProjectPhaseResponse200. + * @alias module:model/GetProjectPhaseResponse200 + */ + constructor() { + + GetProjectPhaseResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetProjectPhaseResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProjectPhaseResponse200} obj Optional instance to populate. + * @return {module:model/GetProjectPhaseResponse200} The populated GetProjectPhaseResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProjectPhaseResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ProjectPhaseObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetProjectPhaseResponse200.prototype['success'] = undefined; + +/** + * @member {module:model/ProjectPhaseObject} data + */ +GetProjectPhaseResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +GetProjectPhaseResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetProjectPhaseResponse200; + diff --git a/src/model/GetProjectPhasesResponse200.js b/src/model/GetProjectPhasesResponse200.js new file mode 100644 index 00000000..ee40fc70 --- /dev/null +++ b/src/model/GetProjectPhasesResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectPhaseObject from './ProjectPhaseObject'; + +/** + * The GetProjectPhasesResponse200 model module. + * @module model/GetProjectPhasesResponse200 + * @version 1.0.0 + */ +class GetProjectPhasesResponse200 { + /** + * Constructs a new GetProjectPhasesResponse200. + * @alias module:model/GetProjectPhasesResponse200 + */ + constructor() { + + GetProjectPhasesResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetProjectPhasesResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProjectPhasesResponse200} obj Optional instance to populate. + * @return {module:model/GetProjectPhasesResponse200} The populated GetProjectPhasesResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProjectPhasesResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], [ProjectPhaseObject]); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetProjectPhasesResponse200.prototype['success'] = undefined; + +/** + * @member {Array.} data + */ +GetProjectPhasesResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +GetProjectPhasesResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetProjectPhasesResponse200; + diff --git a/src/model/GetProjectPlanResponse200.js b/src/model/GetProjectPlanResponse200.js new file mode 100644 index 00000000..531c1a01 --- /dev/null +++ b/src/model/GetProjectPlanResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectPlanItemObject from './ProjectPlanItemObject'; + +/** + * The GetProjectPlanResponse200 model module. + * @module model/GetProjectPlanResponse200 + * @version 1.0.0 + */ +class GetProjectPlanResponse200 { + /** + * Constructs a new GetProjectPlanResponse200. + * @alias module:model/GetProjectPlanResponse200 + */ + constructor() { + + GetProjectPlanResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetProjectPlanResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProjectPlanResponse200} obj Optional instance to populate. + * @return {module:model/GetProjectPlanResponse200} The populated GetProjectPlanResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProjectPlanResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], [ProjectPlanItemObject]); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetProjectPlanResponse200.prototype['success'] = undefined; + +/** + * @member {Array.} data + */ +GetProjectPlanResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +GetProjectPlanResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetProjectPlanResponse200; + diff --git a/src/model/GetProjectResponse200.js b/src/model/GetProjectResponse200.js new file mode 100644 index 00000000..883328cc --- /dev/null +++ b/src/model/GetProjectResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectResponseObject from './ProjectResponseObject'; + +/** + * The GetProjectResponse200 model module. + * @module model/GetProjectResponse200 + * @version 1.0.0 + */ +class GetProjectResponse200 { + /** + * Constructs a new GetProjectResponse200. + * @alias module:model/GetProjectResponse200 + */ + constructor() { + + GetProjectResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetProjectResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProjectResponse200} obj Optional instance to populate. + * @return {module:model/GetProjectResponse200} The populated GetProjectResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProjectResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ProjectResponseObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetProjectResponse200.prototype['success'] = undefined; + +/** + * @member {module:model/ProjectResponseObject} data + */ +GetProjectResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +GetProjectResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetProjectResponse200; + diff --git a/src/model/GetProjectTemplateResponse200.js b/src/model/GetProjectTemplateResponse200.js new file mode 100644 index 00000000..698cec69 --- /dev/null +++ b/src/model/GetProjectTemplateResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import TemplateResponseObject from './TemplateResponseObject'; + +/** + * The GetProjectTemplateResponse200 model module. + * @module model/GetProjectTemplateResponse200 + * @version 1.0.0 + */ +class GetProjectTemplateResponse200 { + /** + * Constructs a new GetProjectTemplateResponse200. + * @alias module:model/GetProjectTemplateResponse200 + */ + constructor() { + + GetProjectTemplateResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetProjectTemplateResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProjectTemplateResponse200} obj Optional instance to populate. + * @return {module:model/GetProjectTemplateResponse200} The populated GetProjectTemplateResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProjectTemplateResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = TemplateResponseObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetProjectTemplateResponse200.prototype['success'] = undefined; + +/** + * @member {module:model/TemplateResponseObject} data + */ +GetProjectTemplateResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +GetProjectTemplateResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetProjectTemplateResponse200; + diff --git a/src/model/GetProjectTemplatesResponse200.js b/src/model/GetProjectTemplatesResponse200.js new file mode 100644 index 00000000..c94c6f56 --- /dev/null +++ b/src/model/GetProjectTemplatesResponse200.js @@ -0,0 +1,100 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; +import TemplateResponseObject from './TemplateResponseObject'; + +/** + * The GetProjectTemplatesResponse200 model module. + * @module model/GetProjectTemplatesResponse200 + * @version 1.0.0 + */ +class GetProjectTemplatesResponse200 { + /** + * Constructs a new GetProjectTemplatesResponse200. + * @alias module:model/GetProjectTemplatesResponse200 + */ + constructor() { + + GetProjectTemplatesResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetProjectTemplatesResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProjectTemplatesResponse200} obj Optional instance to populate. + * @return {module:model/GetProjectTemplatesResponse200} The populated GetProjectTemplatesResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProjectTemplatesResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], [TemplateResponseObject]); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetProjectTemplatesResponse200.prototype['success'] = undefined; + +/** + * @member {Array.} data + */ +GetProjectTemplatesResponse200.prototype['data'] = undefined; + +/** + * @member {module:model/AdditionalDataWithCursorPagination} additional_data + */ +GetProjectTemplatesResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetProjectTemplatesResponse200; + diff --git a/src/model/GetProjectsResponse200.js b/src/model/GetProjectsResponse200.js new file mode 100644 index 00000000..98e69a6e --- /dev/null +++ b/src/model/GetProjectsResponse200.js @@ -0,0 +1,100 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; +import ProjectResponseObject from './ProjectResponseObject'; + +/** + * The GetProjectsResponse200 model module. + * @module model/GetProjectsResponse200 + * @version 1.0.0 + */ +class GetProjectsResponse200 { + /** + * Constructs a new GetProjectsResponse200. + * @alias module:model/GetProjectsResponse200 + */ + constructor() { + + GetProjectsResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetProjectsResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProjectsResponse200} obj Optional instance to populate. + * @return {module:model/GetProjectsResponse200} The populated GetProjectsResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProjectsResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], [ProjectResponseObject]); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetProjectsResponse200.prototype['success'] = undefined; + +/** + * @member {Array.} data + */ +GetProjectsResponse200.prototype['data'] = undefined; + +/** + * @member {module:model/AdditionalDataWithCursorPagination} additional_data + */ +GetProjectsResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetProjectsResponse200; + diff --git a/src/model/GetTaskResponse200.js b/src/model/GetTaskResponse200.js new file mode 100644 index 00000000..e113baf5 --- /dev/null +++ b/src/model/GetTaskResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import TaskResponseObject from './TaskResponseObject'; + +/** + * The GetTaskResponse200 model module. + * @module model/GetTaskResponse200 + * @version 1.0.0 + */ +class GetTaskResponse200 { + /** + * Constructs a new GetTaskResponse200. + * @alias module:model/GetTaskResponse200 + */ + constructor() { + + GetTaskResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetTaskResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTaskResponse200} obj Optional instance to populate. + * @return {module:model/GetTaskResponse200} The populated GetTaskResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetTaskResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = TaskResponseObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetTaskResponse200.prototype['success'] = undefined; + +/** + * @member {module:model/TaskResponseObject} data + */ +GetTaskResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +GetTaskResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetTaskResponse200; + diff --git a/src/model/GetTasksResponse200.js b/src/model/GetTasksResponse200.js new file mode 100644 index 00000000..3192e516 --- /dev/null +++ b/src/model/GetTasksResponse200.js @@ -0,0 +1,100 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; +import TaskResponseObject from './TaskResponseObject'; + +/** + * The GetTasksResponse200 model module. + * @module model/GetTasksResponse200 + * @version 1.0.0 + */ +class GetTasksResponse200 { + /** + * Constructs a new GetTasksResponse200. + * @alias module:model/GetTasksResponse200 + */ + constructor() { + + GetTasksResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetTasksResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTasksResponse200} obj Optional instance to populate. + * @return {module:model/GetTasksResponse200} The populated GetTasksResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetTasksResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], [TaskResponseObject]); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +GetTasksResponse200.prototype['success'] = undefined; + +/** + * @member {Array.} data + */ +GetTasksResponse200.prototype['data'] = undefined; + +/** + * @member {module:model/AdditionalDataWithCursorPagination} additional_data + */ +GetTasksResponse200.prototype['additional_data'] = undefined; + + + + + + +export default GetTasksResponse200; + diff --git a/src/model/ProjectBoardObject.js b/src/model/ProjectBoardObject.js new file mode 100644 index 00000000..a5f9a4bf --- /dev/null +++ b/src/model/ProjectBoardObject.js @@ -0,0 +1,123 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProjectBoardObject model module. + * @module model/ProjectBoardObject + * @version 1.0.0 + */ +class ProjectBoardObject { + /** + * Constructs a new ProjectBoardObject. + * @alias module:model/ProjectBoardObject + */ + constructor() { + + ProjectBoardObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectBoardObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectBoardObject} obj Optional instance to populate. + * @return {module:model/ProjectBoardObject} The populated ProjectBoardObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectBoardObject(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + + delete data['name']; + } + if (data.hasOwnProperty('order_nr')) { + obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); + + delete data['order_nr']; + } + if (data.hasOwnProperty('add_time')) { + obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); + + delete data['add_time']; + } + if (data.hasOwnProperty('update_time')) { + obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); + + delete data['update_time']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of the project board + * @member {Number} id + */ +ProjectBoardObject.prototype['id'] = undefined; + +/** + * Name of a project board + * @member {String} name + */ +ProjectBoardObject.prototype['name'] = undefined; + +/** + * The order of a board + * @member {Number} order_nr + */ +ProjectBoardObject.prototype['order_nr'] = undefined; + +/** + * The creation date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +ProjectBoardObject.prototype['add_time'] = undefined; + +/** + * The update date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +ProjectBoardObject.prototype['update_time'] = undefined; + + + + + + +export default ProjectBoardObject; + diff --git a/src/model/ProjectGroupsObject.js b/src/model/ProjectGroupsObject.js new file mode 100644 index 00000000..9d11c825 --- /dev/null +++ b/src/model/ProjectGroupsObject.js @@ -0,0 +1,101 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProjectGroupsObject model module. + * @module model/ProjectGroupsObject + * @version 1.0.0 + */ +class ProjectGroupsObject { + /** + * Constructs a new ProjectGroupsObject. + * @alias module:model/ProjectGroupsObject + */ + constructor() { + + ProjectGroupsObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectGroupsObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectGroupsObject} obj Optional instance to populate. + * @return {module:model/ProjectGroupsObject} The populated ProjectGroupsObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectGroupsObject(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + + delete data['name']; + } + if (data.hasOwnProperty('order_nr')) { + obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); + + delete data['order_nr']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * ID of the group + * @member {Number} id + */ +ProjectGroupsObject.prototype['id'] = undefined; + +/** + * Name of the group + * @member {String} name + */ +ProjectGroupsObject.prototype['name'] = undefined; + +/** + * Order number of the group + * @member {Number} order_nr + */ +ProjectGroupsObject.prototype['order_nr'] = undefined; + + + + + + +export default ProjectGroupsObject; + diff --git a/src/model/ProjectId.js b/src/model/ProjectId.js new file mode 100644 index 00000000..6309cca3 --- /dev/null +++ b/src/model/ProjectId.js @@ -0,0 +1,79 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProjectId model module. + * @module model/ProjectId + * @version 1.0.0 + */ +class ProjectId { + /** + * Constructs a new ProjectId. + * @alias module:model/ProjectId + */ + constructor() { + + ProjectId.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectId from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectId} obj Optional instance to populate. + * @return {module:model/ProjectId} The populated ProjectId instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectId(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of the project, generated when the task was created + * @member {Number} id + */ +ProjectId.prototype['id'] = undefined; + + + + + + +export default ProjectId; + diff --git a/src/model/ProjectMandatoryObjectFragment.js b/src/model/ProjectMandatoryObjectFragment.js new file mode 100644 index 00000000..75bf58a4 --- /dev/null +++ b/src/model/ProjectMandatoryObjectFragment.js @@ -0,0 +1,101 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProjectMandatoryObjectFragment model module. + * @module model/ProjectMandatoryObjectFragment + * @version 1.0.0 + */ +class ProjectMandatoryObjectFragment { + /** + * Constructs a new ProjectMandatoryObjectFragment. + * @alias module:model/ProjectMandatoryObjectFragment + */ + constructor() { + + ProjectMandatoryObjectFragment.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectMandatoryObjectFragment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectMandatoryObjectFragment} obj Optional instance to populate. + * @return {module:model/ProjectMandatoryObjectFragment} The populated ProjectMandatoryObjectFragment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectMandatoryObjectFragment(); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('board_id')) { + obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); + + delete data['board_id']; + } + if (data.hasOwnProperty('phase_id')) { + obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); + + delete data['phase_id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The title of the project + * @member {String} title + */ +ProjectMandatoryObjectFragment.prototype['title'] = undefined; + +/** + * The ID of the board this project is associated with + * @member {Number} board_id + */ +ProjectMandatoryObjectFragment.prototype['board_id'] = undefined; + +/** + * The ID of the phase this project is associated with + * @member {Number} phase_id + */ +ProjectMandatoryObjectFragment.prototype['phase_id'] = undefined; + + + + + + +export default ProjectMandatoryObjectFragment; + diff --git a/src/model/ProjectNotChangeableObjectFragment.js b/src/model/ProjectNotChangeableObjectFragment.js new file mode 100644 index 00000000..09b09b88 --- /dev/null +++ b/src/model/ProjectNotChangeableObjectFragment.js @@ -0,0 +1,112 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProjectNotChangeableObjectFragment model module. + * @module model/ProjectNotChangeableObjectFragment + * @version 1.0.0 + */ +class ProjectNotChangeableObjectFragment { + /** + * Constructs a new ProjectNotChangeableObjectFragment. + * @alias module:model/ProjectNotChangeableObjectFragment + */ + constructor() { + + ProjectNotChangeableObjectFragment.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectNotChangeableObjectFragment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectNotChangeableObjectFragment} obj Optional instance to populate. + * @return {module:model/ProjectNotChangeableObjectFragment} The populated ProjectNotChangeableObjectFragment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectNotChangeableObjectFragment(); + + if (data.hasOwnProperty('add_time')) { + obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); + + delete data['add_time']; + } + if (data.hasOwnProperty('update_time')) { + obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); + + delete data['update_time']; + } + if (data.hasOwnProperty('status_change_time')) { + obj['status_change_time'] = ApiClient.convertToType(data['status_change_time'], 'String'); + + delete data['status_change_time']; + } + if (data.hasOwnProperty('archive_time')) { + obj['archive_time'] = ApiClient.convertToType(data['archive_time'], 'String'); + + delete data['archive_time']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +ProjectNotChangeableObjectFragment.prototype['add_time'] = undefined; + +/** + * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +ProjectNotChangeableObjectFragment.prototype['update_time'] = undefined; + +/** + * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} status_change_time + */ +ProjectNotChangeableObjectFragment.prototype['status_change_time'] = undefined; + +/** + * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. + * @member {String} archive_time + */ +ProjectNotChangeableObjectFragment.prototype['archive_time'] = undefined; + + + + + + +export default ProjectNotChangeableObjectFragment; + diff --git a/src/model/ProjectObjectFragment.js b/src/model/ProjectObjectFragment.js new file mode 100644 index 00000000..fe5490f3 --- /dev/null +++ b/src/model/ProjectObjectFragment.js @@ -0,0 +1,167 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProjectObjectFragment model module. + * @module model/ProjectObjectFragment + * @version 1.0.0 + */ +class ProjectObjectFragment { + /** + * Constructs a new ProjectObjectFragment. + * @alias module:model/ProjectObjectFragment + */ + constructor() { + + ProjectObjectFragment.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectObjectFragment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectObjectFragment} obj Optional instance to populate. + * @return {module:model/ProjectObjectFragment} The populated ProjectObjectFragment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectObjectFragment(); + + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + + delete data['status']; + } + if (data.hasOwnProperty('owner_id')) { + obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); + + delete data['owner_id']; + } + if (data.hasOwnProperty('start_date')) { + obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); + + delete data['start_date']; + } + if (data.hasOwnProperty('end_date')) { + obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); + + delete data['end_date']; + } + if (data.hasOwnProperty('deal_ids')) { + obj['deal_ids'] = ApiClient.convertToType(data['deal_ids'], ['Number']); + + delete data['deal_ids']; + } + if (data.hasOwnProperty('org_id')) { + obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); + + delete data['org_id']; + } + if (data.hasOwnProperty('person_id')) { + obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); + + delete data['person_id']; + } + if (data.hasOwnProperty('labels')) { + obj['labels'] = ApiClient.convertToType(data['labels'], ['Number']); + + delete data['labels']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The description of the project + * @member {String} description + */ +ProjectObjectFragment.prototype['description'] = undefined; + +/** + * The status of the project + * @member {String} status + */ +ProjectObjectFragment.prototype['status'] = undefined; + +/** + * The ID of a project owner + * @member {Number} owner_id + */ +ProjectObjectFragment.prototype['owner_id'] = undefined; + +/** + * The start date of the project. Format: YYYY-MM-DD. + * @member {Date} start_date + */ +ProjectObjectFragment.prototype['start_date'] = undefined; + +/** + * The end date of the project. Format: YYYY-MM-DD. + * @member {Date} end_date + */ +ProjectObjectFragment.prototype['end_date'] = undefined; + +/** + * An array of IDs of the deals this project is associated with + * @member {Array.} deal_ids + */ +ProjectObjectFragment.prototype['deal_ids'] = undefined; + +/** + * The ID of the organization this project is associated with + * @member {Number} org_id + */ +ProjectObjectFragment.prototype['org_id'] = undefined; + +/** + * The ID of the person this project is associated with + * @member {Number} person_id + */ +ProjectObjectFragment.prototype['person_id'] = undefined; + +/** + * An array of IDs of the labels this project has + * @member {Array.} labels + */ +ProjectObjectFragment.prototype['labels'] = undefined; + + + + + + +export default ProjectObjectFragment; + diff --git a/src/model/ProjectPhaseObject.js b/src/model/ProjectPhaseObject.js new file mode 100644 index 00000000..77c493df --- /dev/null +++ b/src/model/ProjectPhaseObject.js @@ -0,0 +1,134 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProjectPhaseObject model module. + * @module model/ProjectPhaseObject + * @version 1.0.0 + */ +class ProjectPhaseObject { + /** + * Constructs a new ProjectPhaseObject. + * @alias module:model/ProjectPhaseObject + */ + constructor() { + + ProjectPhaseObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectPhaseObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectPhaseObject} obj Optional instance to populate. + * @return {module:model/ProjectPhaseObject} The populated ProjectPhaseObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectPhaseObject(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + + delete data['name']; + } + if (data.hasOwnProperty('board_id')) { + obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); + + delete data['board_id']; + } + if (data.hasOwnProperty('order_nr')) { + obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); + + delete data['order_nr']; + } + if (data.hasOwnProperty('add_time')) { + obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); + + delete data['add_time']; + } + if (data.hasOwnProperty('update_time')) { + obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); + + delete data['update_time']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of the project phase + * @member {Number} id + */ +ProjectPhaseObject.prototype['id'] = undefined; + +/** + * Name of a project phase + * @member {String} name + */ +ProjectPhaseObject.prototype['name'] = undefined; + +/** + * The ID of the project board this phase is linked to + * @member {Number} board_id + */ +ProjectPhaseObject.prototype['board_id'] = undefined; + +/** + * The order of a phase + * @member {Number} order_nr + */ +ProjectPhaseObject.prototype['order_nr'] = undefined; + +/** + * The creation date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +ProjectPhaseObject.prototype['add_time'] = undefined; + +/** + * The update date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +ProjectPhaseObject.prototype['update_time'] = undefined; + + + + + + +export default ProjectPhaseObject; + diff --git a/src/model/ProjectPlanItemObject.js b/src/model/ProjectPlanItemObject.js new file mode 100644 index 00000000..1ddd8479 --- /dev/null +++ b/src/model/ProjectPlanItemObject.js @@ -0,0 +1,112 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProjectPlanItemObject model module. + * @module model/ProjectPlanItemObject + * @version 1.0.0 + */ +class ProjectPlanItemObject { + /** + * Constructs a new ProjectPlanItemObject. + * @alias module:model/ProjectPlanItemObject + */ + constructor() { + + ProjectPlanItemObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectPlanItemObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectPlanItemObject} obj Optional instance to populate. + * @return {module:model/ProjectPlanItemObject} The populated ProjectPlanItemObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectPlanItemObject(); + + if (data.hasOwnProperty('item_id')) { + obj['item_id'] = ApiClient.convertToType(data['item_id'], 'Number'); + + delete data['item_id']; + } + if (data.hasOwnProperty('item_type')) { + obj['item_type'] = ApiClient.convertToType(data['item_type'], 'String'); + + delete data['item_type']; + } + if (data.hasOwnProperty('phase_id')) { + obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); + + delete data['phase_id']; + } + if (data.hasOwnProperty('group_id')) { + obj['group_id'] = ApiClient.convertToType(data['group_id'], 'Number'); + + delete data['group_id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * ID of plan item (either activity or task ID) + * @member {Number} item_id + */ +ProjectPlanItemObject.prototype['item_id'] = undefined; + +/** + * Type of a plan item (task / activity) + * @member {String} item_type + */ +ProjectPlanItemObject.prototype['item_type'] = undefined; + +/** + * The ID of the board this project is associated with. If null then plan item is not in any phase. + * @member {Number} phase_id + */ +ProjectPlanItemObject.prototype['phase_id'] = undefined; + +/** + * The ID of the board this project is associated with. If null then plan item is not in any group. + * @member {Number} group_id + */ +ProjectPlanItemObject.prototype['group_id'] = undefined; + + + + + + +export default ProjectPlanItemObject; + diff --git a/src/model/ProjectPostObject.js b/src/model/ProjectPostObject.js new file mode 100644 index 00000000..fcc1777b --- /dev/null +++ b/src/model/ProjectPostObject.js @@ -0,0 +1,294 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectObjectFragment from './ProjectObjectFragment'; +import ProjectPostObjectAllOf from './ProjectPostObjectAllOf'; +import RequiredPostProjectParameters from './RequiredPostProjectParameters'; + +/** + * The ProjectPostObject model module. + * @module model/ProjectPostObject + * @version 1.0.0 + */ +class ProjectPostObject { + /** + * Constructs a new ProjectPostObject. + * @alias module:model/ProjectPostObject + * @implements module:model/RequiredPostProjectParameters + * @implements module:model/ProjectObjectFragment + * @implements module:model/ProjectPostObjectAllOf + * @param title {String} The title of the project + * @param boardId {Number} The ID of a project board + * @param phaseId {Number} The ID of a phase on a project board + */ + constructor(title, boardId, phaseId) { + RequiredPostProjectParameters.initialize(this, title, boardId, phaseId);ProjectObjectFragment.initialize(this);ProjectPostObjectAllOf.initialize(this); + ProjectPostObject.initialize(this, title, boardId, phaseId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, title, boardId, phaseId) { + obj['title'] = title; + obj['board_id'] = boardId; + obj['phase_id'] = phaseId; + } + + /** + * Constructs a ProjectPostObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectPostObject} obj Optional instance to populate. + * @return {module:model/ProjectPostObject} The populated ProjectPostObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectPostObject(); + RequiredPostProjectParameters.constructFromObject(data, obj); + ProjectObjectFragment.constructFromObject(data, obj); + ProjectPostObjectAllOf.constructFromObject(data, obj); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('board_id')) { + obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); + + delete data['board_id']; + } + if (data.hasOwnProperty('phase_id')) { + obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); + + delete data['phase_id']; + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + + delete data['status']; + } + if (data.hasOwnProperty('owner_id')) { + obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); + + delete data['owner_id']; + } + if (data.hasOwnProperty('start_date')) { + obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); + + delete data['start_date']; + } + if (data.hasOwnProperty('end_date')) { + obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); + + delete data['end_date']; + } + if (data.hasOwnProperty('deal_ids')) { + obj['deal_ids'] = ApiClient.convertToType(data['deal_ids'], ['Number']); + + delete data['deal_ids']; + } + if (data.hasOwnProperty('org_id')) { + obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); + + delete data['org_id']; + } + if (data.hasOwnProperty('person_id')) { + obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); + + delete data['person_id']; + } + if (data.hasOwnProperty('labels')) { + obj['labels'] = ApiClient.convertToType(data['labels'], ['Number']); + + delete data['labels']; + } + if (data.hasOwnProperty('template_id')) { + obj['template_id'] = ApiClient.convertToType(data['template_id'], 'Number'); + + delete data['template_id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The title of the project + * @member {String} title + */ +ProjectPostObject.prototype['title'] = undefined; + +/** + * The ID of a project board + * @member {Number} board_id + */ +ProjectPostObject.prototype['board_id'] = undefined; + +/** + * The ID of a phase on a project board + * @member {Number} phase_id + */ +ProjectPostObject.prototype['phase_id'] = undefined; + +/** + * The description of the project + * @member {String} description + */ +ProjectPostObject.prototype['description'] = undefined; + +/** + * The status of the project + * @member {String} status + */ +ProjectPostObject.prototype['status'] = undefined; + +/** + * The ID of a project owner + * @member {Number} owner_id + */ +ProjectPostObject.prototype['owner_id'] = undefined; + +/** + * The start date of the project. Format: YYYY-MM-DD. + * @member {Date} start_date + */ +ProjectPostObject.prototype['start_date'] = undefined; + +/** + * The end date of the project. Format: YYYY-MM-DD. + * @member {Date} end_date + */ +ProjectPostObject.prototype['end_date'] = undefined; + +/** + * An array of IDs of the deals this project is associated with + * @member {Array.} deal_ids + */ +ProjectPostObject.prototype['deal_ids'] = undefined; + +/** + * The ID of the organization this project is associated with + * @member {Number} org_id + */ +ProjectPostObject.prototype['org_id'] = undefined; + +/** + * The ID of the person this project is associated with + * @member {Number} person_id + */ +ProjectPostObject.prototype['person_id'] = undefined; + +/** + * An array of IDs of the labels this project has + * @member {Array.} labels + */ +ProjectPostObject.prototype['labels'] = undefined; + +/** + * The ID of the template the project will be based on + * @member {Number} template_id + */ +ProjectPostObject.prototype['template_id'] = undefined; + + +// Implement RequiredPostProjectParameters interface: +/** + * The title of the project + * @member {String} title + */ +RequiredPostProjectParameters.prototype['title'] = undefined; +/** + * The ID of a project board + * @member {Number} board_id + */ +RequiredPostProjectParameters.prototype['board_id'] = undefined; +/** + * The ID of a phase on a project board + * @member {Number} phase_id + */ +RequiredPostProjectParameters.prototype['phase_id'] = undefined; +// Implement ProjectObjectFragment interface: +/** + * The description of the project + * @member {String} description + */ +ProjectObjectFragment.prototype['description'] = undefined; +/** + * The status of the project + * @member {String} status + */ +ProjectObjectFragment.prototype['status'] = undefined; +/** + * The ID of a project owner + * @member {Number} owner_id + */ +ProjectObjectFragment.prototype['owner_id'] = undefined; +/** + * The start date of the project. Format: YYYY-MM-DD. + * @member {Date} start_date + */ +ProjectObjectFragment.prototype['start_date'] = undefined; +/** + * The end date of the project. Format: YYYY-MM-DD. + * @member {Date} end_date + */ +ProjectObjectFragment.prototype['end_date'] = undefined; +/** + * An array of IDs of the deals this project is associated with + * @member {Array.} deal_ids + */ +ProjectObjectFragment.prototype['deal_ids'] = undefined; +/** + * The ID of the organization this project is associated with + * @member {Number} org_id + */ +ProjectObjectFragment.prototype['org_id'] = undefined; +/** + * The ID of the person this project is associated with + * @member {Number} person_id + */ +ProjectObjectFragment.prototype['person_id'] = undefined; +/** + * An array of IDs of the labels this project has + * @member {Array.} labels + */ +ProjectObjectFragment.prototype['labels'] = undefined; +// Implement ProjectPostObjectAllOf interface: +/** + * The ID of the template the project will be based on + * @member {Number} template_id + */ +ProjectPostObjectAllOf.prototype['template_id'] = undefined; + + + + +export default ProjectPostObject; + diff --git a/src/model/ProjectPostObjectAllOf.js b/src/model/ProjectPostObjectAllOf.js new file mode 100644 index 00000000..b588be3e --- /dev/null +++ b/src/model/ProjectPostObjectAllOf.js @@ -0,0 +1,79 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProjectPostObjectAllOf model module. + * @module model/ProjectPostObjectAllOf + * @version 1.0.0 + */ +class ProjectPostObjectAllOf { + /** + * Constructs a new ProjectPostObjectAllOf. + * @alias module:model/ProjectPostObjectAllOf + */ + constructor() { + + ProjectPostObjectAllOf.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectPostObjectAllOf from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectPostObjectAllOf} obj Optional instance to populate. + * @return {module:model/ProjectPostObjectAllOf} The populated ProjectPostObjectAllOf instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectPostObjectAllOf(); + + if (data.hasOwnProperty('template_id')) { + obj['template_id'] = ApiClient.convertToType(data['template_id'], 'Number'); + + delete data['template_id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of the template the project will be based on + * @member {Number} template_id + */ +ProjectPostObjectAllOf.prototype['template_id'] = undefined; + + + + + + +export default ProjectPostObjectAllOf; + diff --git a/src/model/ProjectPutObject.js b/src/model/ProjectPutObject.js new file mode 100644 index 00000000..e9e75600 --- /dev/null +++ b/src/model/ProjectPutObject.js @@ -0,0 +1,268 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectMandatoryObjectFragment from './ProjectMandatoryObjectFragment'; +import ProjectObjectFragment from './ProjectObjectFragment'; + +/** + * The ProjectPutObject model module. + * @module model/ProjectPutObject + * @version 1.0.0 + */ +class ProjectPutObject { + /** + * Constructs a new ProjectPutObject. + * @alias module:model/ProjectPutObject + * @implements module:model/ProjectMandatoryObjectFragment + * @implements module:model/ProjectObjectFragment + */ + constructor() { + ProjectMandatoryObjectFragment.initialize(this);ProjectObjectFragment.initialize(this); + ProjectPutObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectPutObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectPutObject} obj Optional instance to populate. + * @return {module:model/ProjectPutObject} The populated ProjectPutObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectPutObject(); + ProjectMandatoryObjectFragment.constructFromObject(data, obj); + ProjectObjectFragment.constructFromObject(data, obj); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('board_id')) { + obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); + + delete data['board_id']; + } + if (data.hasOwnProperty('phase_id')) { + obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); + + delete data['phase_id']; + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + + delete data['status']; + } + if (data.hasOwnProperty('owner_id')) { + obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); + + delete data['owner_id']; + } + if (data.hasOwnProperty('start_date')) { + obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); + + delete data['start_date']; + } + if (data.hasOwnProperty('end_date')) { + obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); + + delete data['end_date']; + } + if (data.hasOwnProperty('deal_ids')) { + obj['deal_ids'] = ApiClient.convertToType(data['deal_ids'], ['Number']); + + delete data['deal_ids']; + } + if (data.hasOwnProperty('org_id')) { + obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); + + delete data['org_id']; + } + if (data.hasOwnProperty('person_id')) { + obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); + + delete data['person_id']; + } + if (data.hasOwnProperty('labels')) { + obj['labels'] = ApiClient.convertToType(data['labels'], ['Number']); + + delete data['labels']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The title of the project + * @member {String} title + */ +ProjectPutObject.prototype['title'] = undefined; + +/** + * The ID of the board this project is associated with + * @member {Number} board_id + */ +ProjectPutObject.prototype['board_id'] = undefined; + +/** + * The ID of the phase this project is associated with + * @member {Number} phase_id + */ +ProjectPutObject.prototype['phase_id'] = undefined; + +/** + * The description of the project + * @member {String} description + */ +ProjectPutObject.prototype['description'] = undefined; + +/** + * The status of the project + * @member {String} status + */ +ProjectPutObject.prototype['status'] = undefined; + +/** + * The ID of a project owner + * @member {Number} owner_id + */ +ProjectPutObject.prototype['owner_id'] = undefined; + +/** + * The start date of the project. Format: YYYY-MM-DD. + * @member {Date} start_date + */ +ProjectPutObject.prototype['start_date'] = undefined; + +/** + * The end date of the project. Format: YYYY-MM-DD. + * @member {Date} end_date + */ +ProjectPutObject.prototype['end_date'] = undefined; + +/** + * An array of IDs of the deals this project is associated with + * @member {Array.} deal_ids + */ +ProjectPutObject.prototype['deal_ids'] = undefined; + +/** + * The ID of the organization this project is associated with + * @member {Number} org_id + */ +ProjectPutObject.prototype['org_id'] = undefined; + +/** + * The ID of the person this project is associated with + * @member {Number} person_id + */ +ProjectPutObject.prototype['person_id'] = undefined; + +/** + * An array of IDs of the labels this project has + * @member {Array.} labels + */ +ProjectPutObject.prototype['labels'] = undefined; + + +// Implement ProjectMandatoryObjectFragment interface: +/** + * The title of the project + * @member {String} title + */ +ProjectMandatoryObjectFragment.prototype['title'] = undefined; +/** + * The ID of the board this project is associated with + * @member {Number} board_id + */ +ProjectMandatoryObjectFragment.prototype['board_id'] = undefined; +/** + * The ID of the phase this project is associated with + * @member {Number} phase_id + */ +ProjectMandatoryObjectFragment.prototype['phase_id'] = undefined; +// Implement ProjectObjectFragment interface: +/** + * The description of the project + * @member {String} description + */ +ProjectObjectFragment.prototype['description'] = undefined; +/** + * The status of the project + * @member {String} status + */ +ProjectObjectFragment.prototype['status'] = undefined; +/** + * The ID of a project owner + * @member {Number} owner_id + */ +ProjectObjectFragment.prototype['owner_id'] = undefined; +/** + * The start date of the project. Format: YYYY-MM-DD. + * @member {Date} start_date + */ +ProjectObjectFragment.prototype['start_date'] = undefined; +/** + * The end date of the project. Format: YYYY-MM-DD. + * @member {Date} end_date + */ +ProjectObjectFragment.prototype['end_date'] = undefined; +/** + * An array of IDs of the deals this project is associated with + * @member {Array.} deal_ids + */ +ProjectObjectFragment.prototype['deal_ids'] = undefined; +/** + * The ID of the organization this project is associated with + * @member {Number} org_id + */ +ProjectObjectFragment.prototype['org_id'] = undefined; +/** + * The ID of the person this project is associated with + * @member {Number} person_id + */ +ProjectObjectFragment.prototype['person_id'] = undefined; +/** + * An array of IDs of the labels this project has + * @member {Array.} labels + */ +ProjectObjectFragment.prototype['labels'] = undefined; + + + + +export default ProjectPutObject; + diff --git a/src/model/ProjectPutPlanItemBodyObject.js b/src/model/ProjectPutPlanItemBodyObject.js new file mode 100644 index 00000000..5dd34eb1 --- /dev/null +++ b/src/model/ProjectPutPlanItemBodyObject.js @@ -0,0 +1,90 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ProjectPutPlanItemBodyObject model module. + * @module model/ProjectPutPlanItemBodyObject + * @version 1.0.0 + */ +class ProjectPutPlanItemBodyObject { + /** + * Constructs a new ProjectPutPlanItemBodyObject. + * @alias module:model/ProjectPutPlanItemBodyObject + */ + constructor() { + + ProjectPutPlanItemBodyObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectPutPlanItemBodyObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectPutPlanItemBodyObject} obj Optional instance to populate. + * @return {module:model/ProjectPutPlanItemBodyObject} The populated ProjectPutPlanItemBodyObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectPutPlanItemBodyObject(); + + if (data.hasOwnProperty('phase_id')) { + obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); + + delete data['phase_id']; + } + if (data.hasOwnProperty('group_id')) { + obj['group_id'] = ApiClient.convertToType(data['group_id'], 'Number'); + + delete data['group_id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of a phase on a project board + * @member {Number} phase_id + */ +ProjectPutPlanItemBodyObject.prototype['phase_id'] = undefined; + +/** + * The ID of a group on a project board + * @member {Number} group_id + */ +ProjectPutPlanItemBodyObject.prototype['group_id'] = undefined; + + + + + + +export default ProjectPutPlanItemBodyObject; + diff --git a/src/model/ProjectResponseObject.js b/src/model/ProjectResponseObject.js new file mode 100644 index 00000000..c66c7ca7 --- /dev/null +++ b/src/model/ProjectResponseObject.js @@ -0,0 +1,348 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FullProjectObject from './FullProjectObject'; +import ProjectId from './ProjectId'; + +/** + * The ProjectResponseObject model module. + * @module model/ProjectResponseObject + * @version 1.0.0 + */ +class ProjectResponseObject { + /** + * Constructs a new ProjectResponseObject. + * @alias module:model/ProjectResponseObject + * @implements module:model/ProjectId + * @implements module:model/FullProjectObject + */ + constructor() { + ProjectId.initialize(this);FullProjectObject.initialize(this); + ProjectResponseObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ProjectResponseObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProjectResponseObject} obj Optional instance to populate. + * @return {module:model/ProjectResponseObject} The populated ProjectResponseObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProjectResponseObject(); + ProjectId.constructFromObject(data, obj); + FullProjectObject.constructFromObject(data, obj); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('board_id')) { + obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); + + delete data['board_id']; + } + if (data.hasOwnProperty('phase_id')) { + obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); + + delete data['phase_id']; + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + + delete data['status']; + } + if (data.hasOwnProperty('owner_id')) { + obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); + + delete data['owner_id']; + } + if (data.hasOwnProperty('start_date')) { + obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); + + delete data['start_date']; + } + if (data.hasOwnProperty('end_date')) { + obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); + + delete data['end_date']; + } + if (data.hasOwnProperty('deal_ids')) { + obj['deal_ids'] = ApiClient.convertToType(data['deal_ids'], ['Number']); + + delete data['deal_ids']; + } + if (data.hasOwnProperty('org_id')) { + obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); + + delete data['org_id']; + } + if (data.hasOwnProperty('person_id')) { + obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); + + delete data['person_id']; + } + if (data.hasOwnProperty('labels')) { + obj['labels'] = ApiClient.convertToType(data['labels'], ['Number']); + + delete data['labels']; + } + if (data.hasOwnProperty('add_time')) { + obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); + + delete data['add_time']; + } + if (data.hasOwnProperty('update_time')) { + obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); + + delete data['update_time']; + } + if (data.hasOwnProperty('status_change_time')) { + obj['status_change_time'] = ApiClient.convertToType(data['status_change_time'], 'String'); + + delete data['status_change_time']; + } + if (data.hasOwnProperty('archive_time')) { + obj['archive_time'] = ApiClient.convertToType(data['archive_time'], 'String'); + + delete data['archive_time']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of the project, generated when the task was created + * @member {Number} id + */ +ProjectResponseObject.prototype['id'] = undefined; + +/** + * The title of the project + * @member {String} title + */ +ProjectResponseObject.prototype['title'] = undefined; + +/** + * The ID of the board this project is associated with + * @member {Number} board_id + */ +ProjectResponseObject.prototype['board_id'] = undefined; + +/** + * The ID of the phase this project is associated with + * @member {Number} phase_id + */ +ProjectResponseObject.prototype['phase_id'] = undefined; + +/** + * The description of the project + * @member {String} description + */ +ProjectResponseObject.prototype['description'] = undefined; + +/** + * The status of the project + * @member {String} status + */ +ProjectResponseObject.prototype['status'] = undefined; + +/** + * The ID of a project owner + * @member {Number} owner_id + */ +ProjectResponseObject.prototype['owner_id'] = undefined; + +/** + * The start date of the project. Format: YYYY-MM-DD. + * @member {Date} start_date + */ +ProjectResponseObject.prototype['start_date'] = undefined; + +/** + * The end date of the project. Format: YYYY-MM-DD. + * @member {Date} end_date + */ +ProjectResponseObject.prototype['end_date'] = undefined; + +/** + * An array of IDs of the deals this project is associated with + * @member {Array.} deal_ids + */ +ProjectResponseObject.prototype['deal_ids'] = undefined; + +/** + * The ID of the organization this project is associated with + * @member {Number} org_id + */ +ProjectResponseObject.prototype['org_id'] = undefined; + +/** + * The ID of the person this project is associated with + * @member {Number} person_id + */ +ProjectResponseObject.prototype['person_id'] = undefined; + +/** + * An array of IDs of the labels this project has + * @member {Array.} labels + */ +ProjectResponseObject.prototype['labels'] = undefined; + +/** + * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +ProjectResponseObject.prototype['add_time'] = undefined; + +/** + * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +ProjectResponseObject.prototype['update_time'] = undefined; + +/** + * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} status_change_time + */ +ProjectResponseObject.prototype['status_change_time'] = undefined; + +/** + * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. + * @member {String} archive_time + */ +ProjectResponseObject.prototype['archive_time'] = undefined; + + +// Implement ProjectId interface: +/** + * The ID of the project, generated when the task was created + * @member {Number} id + */ +ProjectId.prototype['id'] = undefined; +// Implement FullProjectObject interface: +/** + * The title of the project + * @member {String} title + */ +FullProjectObject.prototype['title'] = undefined; +/** + * The ID of the board this project is associated with + * @member {Number} board_id + */ +FullProjectObject.prototype['board_id'] = undefined; +/** + * The ID of the phase this project is associated with + * @member {Number} phase_id + */ +FullProjectObject.prototype['phase_id'] = undefined; +/** + * The description of the project + * @member {String} description + */ +FullProjectObject.prototype['description'] = undefined; +/** + * The status of the project + * @member {String} status + */ +FullProjectObject.prototype['status'] = undefined; +/** + * The ID of a project owner + * @member {Number} owner_id + */ +FullProjectObject.prototype['owner_id'] = undefined; +/** + * The start date of the project. Format: YYYY-MM-DD. + * @member {Date} start_date + */ +FullProjectObject.prototype['start_date'] = undefined; +/** + * The end date of the project. Format: YYYY-MM-DD. + * @member {Date} end_date + */ +FullProjectObject.prototype['end_date'] = undefined; +/** + * An array of IDs of the deals this project is associated with + * @member {Array.} deal_ids + */ +FullProjectObject.prototype['deal_ids'] = undefined; +/** + * The ID of the organization this project is associated with + * @member {Number} org_id + */ +FullProjectObject.prototype['org_id'] = undefined; +/** + * The ID of the person this project is associated with + * @member {Number} person_id + */ +FullProjectObject.prototype['person_id'] = undefined; +/** + * An array of IDs of the labels this project has + * @member {Array.} labels + */ +FullProjectObject.prototype['labels'] = undefined; +/** + * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +FullProjectObject.prototype['add_time'] = undefined; +/** + * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +FullProjectObject.prototype['update_time'] = undefined; +/** + * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} status_change_time + */ +FullProjectObject.prototype['status_change_time'] = undefined; +/** + * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. + * @member {String} archive_time + */ +FullProjectObject.prototype['archive_time'] = undefined; + + + + +export default ProjectResponseObject; + diff --git a/src/model/RequiredPostProjectParameters.js b/src/model/RequiredPostProjectParameters.js new file mode 100644 index 00000000..d582b767 --- /dev/null +++ b/src/model/RequiredPostProjectParameters.js @@ -0,0 +1,107 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RequiredPostProjectParameters model module. + * @module model/RequiredPostProjectParameters + * @version 1.0.0 + */ +class RequiredPostProjectParameters { + /** + * Constructs a new RequiredPostProjectParameters. + * @alias module:model/RequiredPostProjectParameters + * @param title {String} The title of the project + * @param boardId {Number} The ID of a project board + * @param phaseId {Number} The ID of a phase on a project board + */ + constructor(title, boardId, phaseId) { + + RequiredPostProjectParameters.initialize(this, title, boardId, phaseId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, title, boardId, phaseId) { + obj['title'] = title; + obj['board_id'] = boardId; + obj['phase_id'] = phaseId; + } + + /** + * Constructs a RequiredPostProjectParameters from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RequiredPostProjectParameters} obj Optional instance to populate. + * @return {module:model/RequiredPostProjectParameters} The populated RequiredPostProjectParameters instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RequiredPostProjectParameters(); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('board_id')) { + obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); + + delete data['board_id']; + } + if (data.hasOwnProperty('phase_id')) { + obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); + + delete data['phase_id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The title of the project + * @member {String} title + */ +RequiredPostProjectParameters.prototype['title'] = undefined; + +/** + * The ID of a project board + * @member {Number} board_id + */ +RequiredPostProjectParameters.prototype['board_id'] = undefined; + +/** + * The ID of a phase on a project board + * @member {Number} phase_id + */ +RequiredPostProjectParameters.prototype['phase_id'] = undefined; + + + + + + +export default RequiredPostProjectParameters; + diff --git a/src/model/RequiredPostTaskParameters.js b/src/model/RequiredPostTaskParameters.js new file mode 100644 index 00000000..fbb8dac1 --- /dev/null +++ b/src/model/RequiredPostTaskParameters.js @@ -0,0 +1,94 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RequiredPostTaskParameters model module. + * @module model/RequiredPostTaskParameters + * @version 1.0.0 + */ +class RequiredPostTaskParameters { + /** + * Constructs a new RequiredPostTaskParameters. + * @alias module:model/RequiredPostTaskParameters + * @param title {String} The title of the task + * @param projectId {Number} The ID of a project + */ + constructor(title, projectId) { + + RequiredPostTaskParameters.initialize(this, title, projectId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, title, projectId) { + obj['title'] = title; + obj['project_id'] = projectId; + } + + /** + * Constructs a RequiredPostTaskParameters from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RequiredPostTaskParameters} obj Optional instance to populate. + * @return {module:model/RequiredPostTaskParameters} The populated RequiredPostTaskParameters instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RequiredPostTaskParameters(); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('project_id')) { + obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); + + delete data['project_id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The title of the task + * @member {String} title + */ +RequiredPostTaskParameters.prototype['title'] = undefined; + +/** + * The ID of a project + * @member {Number} project_id + */ +RequiredPostTaskParameters.prototype['project_id'] = undefined; + + + + + + +export default RequiredPostTaskParameters; + diff --git a/src/model/TaskId.js b/src/model/TaskId.js new file mode 100644 index 00000000..a8f23af6 --- /dev/null +++ b/src/model/TaskId.js @@ -0,0 +1,79 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TaskId model module. + * @module model/TaskId + * @version 1.0.0 + */ +class TaskId { + /** + * Constructs a new TaskId. + * @alias module:model/TaskId + */ + constructor() { + + TaskId.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TaskId from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaskId} obj Optional instance to populate. + * @return {module:model/TaskId} The populated TaskId instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TaskId(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of the task, generated when the task was created + * @member {Number} id + */ +TaskId.prototype['id'] = undefined; + + + + + + +export default TaskId; + diff --git a/src/model/TaskMandatoryObjectFragment.js b/src/model/TaskMandatoryObjectFragment.js new file mode 100644 index 00000000..3219e4b2 --- /dev/null +++ b/src/model/TaskMandatoryObjectFragment.js @@ -0,0 +1,90 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TaskMandatoryObjectFragment model module. + * @module model/TaskMandatoryObjectFragment + * @version 1.0.0 + */ +class TaskMandatoryObjectFragment { + /** + * Constructs a new TaskMandatoryObjectFragment. + * @alias module:model/TaskMandatoryObjectFragment + */ + constructor() { + + TaskMandatoryObjectFragment.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TaskMandatoryObjectFragment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaskMandatoryObjectFragment} obj Optional instance to populate. + * @return {module:model/TaskMandatoryObjectFragment} The populated TaskMandatoryObjectFragment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TaskMandatoryObjectFragment(); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('project_id')) { + obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); + + delete data['project_id']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The title of the task + * @member {String} title + */ +TaskMandatoryObjectFragment.prototype['title'] = undefined; + +/** + * The ID of the project this task is associated with + * @member {Number} project_id + */ +TaskMandatoryObjectFragment.prototype['project_id'] = undefined; + + + + + + +export default TaskMandatoryObjectFragment; + diff --git a/src/model/TaskNotChangeableObjectFragment.js b/src/model/TaskNotChangeableObjectFragment.js new file mode 100644 index 00000000..968dbe4b --- /dev/null +++ b/src/model/TaskNotChangeableObjectFragment.js @@ -0,0 +1,112 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TaskNotChangeableObjectFragment model module. + * @module model/TaskNotChangeableObjectFragment + * @version 1.0.0 + */ +class TaskNotChangeableObjectFragment { + /** + * Constructs a new TaskNotChangeableObjectFragment. + * @alias module:model/TaskNotChangeableObjectFragment + */ + constructor() { + + TaskNotChangeableObjectFragment.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TaskNotChangeableObjectFragment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaskNotChangeableObjectFragment} obj Optional instance to populate. + * @return {module:model/TaskNotChangeableObjectFragment} The populated TaskNotChangeableObjectFragment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TaskNotChangeableObjectFragment(); + + if (data.hasOwnProperty('creator_id')) { + obj['creator_id'] = ApiClient.convertToType(data['creator_id'], 'Number'); + + delete data['creator_id']; + } + if (data.hasOwnProperty('add_time')) { + obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); + + delete data['add_time']; + } + if (data.hasOwnProperty('update_time')) { + obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); + + delete data['update_time']; + } + if (data.hasOwnProperty('marked_as_done_time')) { + obj['marked_as_done_time'] = ApiClient.convertToType(data['marked_as_done_time'], 'String'); + + delete data['marked_as_done_time']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The creator of a task + * @member {Number} creator_id + */ +TaskNotChangeableObjectFragment.prototype['creator_id'] = undefined; + +/** + * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +TaskNotChangeableObjectFragment.prototype['add_time'] = undefined; + +/** + * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +TaskNotChangeableObjectFragment.prototype['update_time'] = undefined; + +/** + * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} marked_as_done_time + */ +TaskNotChangeableObjectFragment.prototype['marked_as_done_time'] = undefined; + + + + + + +export default TaskNotChangeableObjectFragment; + diff --git a/src/model/TaskObjectFragment.js b/src/model/TaskObjectFragment.js new file mode 100644 index 00000000..fc5508d1 --- /dev/null +++ b/src/model/TaskObjectFragment.js @@ -0,0 +1,124 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NumberBoolean from './NumberBoolean'; + +/** + * The TaskObjectFragment model module. + * @module model/TaskObjectFragment + * @version 1.0.0 + */ +class TaskObjectFragment { + /** + * Constructs a new TaskObjectFragment. + * @alias module:model/TaskObjectFragment + */ + constructor() { + + TaskObjectFragment.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TaskObjectFragment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaskObjectFragment} obj Optional instance to populate. + * @return {module:model/TaskObjectFragment} The populated TaskObjectFragment instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TaskObjectFragment(); + + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('parent_task_id')) { + obj['parent_task_id'] = ApiClient.convertToType(data['parent_task_id'], 'Number'); + + delete data['parent_task_id']; + } + if (data.hasOwnProperty('assignee_id')) { + obj['assignee_id'] = ApiClient.convertToType(data['assignee_id'], 'Number'); + + delete data['assignee_id']; + } + if (data.hasOwnProperty('done')) { + obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); + + delete data['done']; + } + if (data.hasOwnProperty('due_date')) { + obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); + + delete data['due_date']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The description of the task + * @member {String} description + */ +TaskObjectFragment.prototype['description'] = undefined; + +/** + * The ID of a parent task. Can not be ID of a task which is already a subtask. + * @member {Number} parent_task_id + */ +TaskObjectFragment.prototype['parent_task_id'] = undefined; + +/** + * The ID of the user who will be the assignee of the task + * @member {Number} assignee_id + */ +TaskObjectFragment.prototype['assignee_id'] = undefined; + +/** + * Whether the task is done or not. 0 = Not done, 1 = Done. + * @member {module:model/NumberBoolean} done + */ +TaskObjectFragment.prototype['done'] = undefined; + +/** + * The due date of the task. Format: YYYY-MM-DD. + * @member {Date} due_date + */ +TaskObjectFragment.prototype['due_date'] = undefined; + + + + + + +export default TaskObjectFragment; + diff --git a/src/model/TaskPostObject.js b/src/model/TaskPostObject.js new file mode 100644 index 00000000..ab9f4e44 --- /dev/null +++ b/src/model/TaskPostObject.js @@ -0,0 +1,193 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NumberBoolean from './NumberBoolean'; +import RequiredPostTaskParameters from './RequiredPostTaskParameters'; +import TaskObjectFragment from './TaskObjectFragment'; + +/** + * The TaskPostObject model module. + * @module model/TaskPostObject + * @version 1.0.0 + */ +class TaskPostObject { + /** + * Constructs a new TaskPostObject. + * @alias module:model/TaskPostObject + * @implements module:model/RequiredPostTaskParameters + * @implements module:model/TaskObjectFragment + * @param title {String} The title of the task + * @param projectId {Number} The ID of a project + */ + constructor(title, projectId) { + RequiredPostTaskParameters.initialize(this, title, projectId);TaskObjectFragment.initialize(this); + TaskPostObject.initialize(this, title, projectId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, title, projectId) { + obj['title'] = title; + obj['project_id'] = projectId; + } + + /** + * Constructs a TaskPostObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaskPostObject} obj Optional instance to populate. + * @return {module:model/TaskPostObject} The populated TaskPostObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TaskPostObject(); + RequiredPostTaskParameters.constructFromObject(data, obj); + TaskObjectFragment.constructFromObject(data, obj); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('project_id')) { + obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); + + delete data['project_id']; + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('parent_task_id')) { + obj['parent_task_id'] = ApiClient.convertToType(data['parent_task_id'], 'Number'); + + delete data['parent_task_id']; + } + if (data.hasOwnProperty('assignee_id')) { + obj['assignee_id'] = ApiClient.convertToType(data['assignee_id'], 'Number'); + + delete data['assignee_id']; + } + if (data.hasOwnProperty('done')) { + obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); + + delete data['done']; + } + if (data.hasOwnProperty('due_date')) { + obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); + + delete data['due_date']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The title of the task + * @member {String} title + */ +TaskPostObject.prototype['title'] = undefined; + +/** + * The ID of a project + * @member {Number} project_id + */ +TaskPostObject.prototype['project_id'] = undefined; + +/** + * The description of the task + * @member {String} description + */ +TaskPostObject.prototype['description'] = undefined; + +/** + * The ID of a parent task. Can not be ID of a task which is already a subtask. + * @member {Number} parent_task_id + */ +TaskPostObject.prototype['parent_task_id'] = undefined; + +/** + * The ID of the user who will be the assignee of the task + * @member {Number} assignee_id + */ +TaskPostObject.prototype['assignee_id'] = undefined; + +/** + * Whether the task is done or not. 0 = Not done, 1 = Done. + * @member {module:model/NumberBoolean} done + */ +TaskPostObject.prototype['done'] = undefined; + +/** + * The due date of the task. Format: YYYY-MM-DD. + * @member {Date} due_date + */ +TaskPostObject.prototype['due_date'] = undefined; + + +// Implement RequiredPostTaskParameters interface: +/** + * The title of the task + * @member {String} title + */ +RequiredPostTaskParameters.prototype['title'] = undefined; +/** + * The ID of a project + * @member {Number} project_id + */ +RequiredPostTaskParameters.prototype['project_id'] = undefined; +// Implement TaskObjectFragment interface: +/** + * The description of the task + * @member {String} description + */ +TaskObjectFragment.prototype['description'] = undefined; +/** + * The ID of a parent task. Can not be ID of a task which is already a subtask. + * @member {Number} parent_task_id + */ +TaskObjectFragment.prototype['parent_task_id'] = undefined; +/** + * The ID of the user who will be the assignee of the task + * @member {Number} assignee_id + */ +TaskObjectFragment.prototype['assignee_id'] = undefined; +/** + * Whether the task is done or not. 0 = Not done, 1 = Done. + * @member {module:model/NumberBoolean} done + */ +TaskObjectFragment.prototype['done'] = undefined; +/** + * The due date of the task. Format: YYYY-MM-DD. + * @member {Date} due_date + */ +TaskObjectFragment.prototype['due_date'] = undefined; + + + + +export default TaskPostObject; + diff --git a/src/model/TaskPutObject.js b/src/model/TaskPutObject.js new file mode 100644 index 00000000..c24a829e --- /dev/null +++ b/src/model/TaskPutObject.js @@ -0,0 +1,189 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NumberBoolean from './NumberBoolean'; +import TaskMandatoryObjectFragment from './TaskMandatoryObjectFragment'; +import TaskObjectFragment from './TaskObjectFragment'; + +/** + * The TaskPutObject model module. + * @module model/TaskPutObject + * @version 1.0.0 + */ +class TaskPutObject { + /** + * Constructs a new TaskPutObject. + * @alias module:model/TaskPutObject + * @implements module:model/TaskMandatoryObjectFragment + * @implements module:model/TaskObjectFragment + */ + constructor() { + TaskMandatoryObjectFragment.initialize(this);TaskObjectFragment.initialize(this); + TaskPutObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TaskPutObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaskPutObject} obj Optional instance to populate. + * @return {module:model/TaskPutObject} The populated TaskPutObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TaskPutObject(); + TaskMandatoryObjectFragment.constructFromObject(data, obj); + TaskObjectFragment.constructFromObject(data, obj); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('project_id')) { + obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); + + delete data['project_id']; + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('parent_task_id')) { + obj['parent_task_id'] = ApiClient.convertToType(data['parent_task_id'], 'Number'); + + delete data['parent_task_id']; + } + if (data.hasOwnProperty('assignee_id')) { + obj['assignee_id'] = ApiClient.convertToType(data['assignee_id'], 'Number'); + + delete data['assignee_id']; + } + if (data.hasOwnProperty('done')) { + obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); + + delete data['done']; + } + if (data.hasOwnProperty('due_date')) { + obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); + + delete data['due_date']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The title of the task + * @member {String} title + */ +TaskPutObject.prototype['title'] = undefined; + +/** + * The ID of the project this task is associated with + * @member {Number} project_id + */ +TaskPutObject.prototype['project_id'] = undefined; + +/** + * The description of the task + * @member {String} description + */ +TaskPutObject.prototype['description'] = undefined; + +/** + * The ID of a parent task. Can not be ID of a task which is already a subtask. + * @member {Number} parent_task_id + */ +TaskPutObject.prototype['parent_task_id'] = undefined; + +/** + * The ID of the user who will be the assignee of the task + * @member {Number} assignee_id + */ +TaskPutObject.prototype['assignee_id'] = undefined; + +/** + * Whether the task is done or not. 0 = Not done, 1 = Done. + * @member {module:model/NumberBoolean} done + */ +TaskPutObject.prototype['done'] = undefined; + +/** + * The due date of the task. Format: YYYY-MM-DD. + * @member {Date} due_date + */ +TaskPutObject.prototype['due_date'] = undefined; + + +// Implement TaskMandatoryObjectFragment interface: +/** + * The title of the task + * @member {String} title + */ +TaskMandatoryObjectFragment.prototype['title'] = undefined; +/** + * The ID of the project this task is associated with + * @member {Number} project_id + */ +TaskMandatoryObjectFragment.prototype['project_id'] = undefined; +// Implement TaskObjectFragment interface: +/** + * The description of the task + * @member {String} description + */ +TaskObjectFragment.prototype['description'] = undefined; +/** + * The ID of a parent task. Can not be ID of a task which is already a subtask. + * @member {Number} parent_task_id + */ +TaskObjectFragment.prototype['parent_task_id'] = undefined; +/** + * The ID of the user who will be the assignee of the task + * @member {Number} assignee_id + */ +TaskObjectFragment.prototype['assignee_id'] = undefined; +/** + * Whether the task is done or not. 0 = Not done, 1 = Done. + * @member {module:model/NumberBoolean} done + */ +TaskObjectFragment.prototype['done'] = undefined; +/** + * The due date of the task. Format: YYYY-MM-DD. + * @member {Date} due_date + */ +TaskObjectFragment.prototype['due_date'] = undefined; + + + + +export default TaskPutObject; + diff --git a/src/model/TaskResponseObject.js b/src/model/TaskResponseObject.js new file mode 100644 index 00000000..0ff331ff --- /dev/null +++ b/src/model/TaskResponseObject.js @@ -0,0 +1,269 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import FullTaskObject from './FullTaskObject'; +import NumberBoolean from './NumberBoolean'; +import TaskId from './TaskId'; + +/** + * The TaskResponseObject model module. + * @module model/TaskResponseObject + * @version 1.0.0 + */ +class TaskResponseObject { + /** + * Constructs a new TaskResponseObject. + * @alias module:model/TaskResponseObject + * @implements module:model/TaskId + * @implements module:model/FullTaskObject + */ + constructor() { + TaskId.initialize(this);FullTaskObject.initialize(this); + TaskResponseObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TaskResponseObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TaskResponseObject} obj Optional instance to populate. + * @return {module:model/TaskResponseObject} The populated TaskResponseObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TaskResponseObject(); + TaskId.constructFromObject(data, obj); + FullTaskObject.constructFromObject(data, obj); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('project_id')) { + obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); + + delete data['project_id']; + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('parent_task_id')) { + obj['parent_task_id'] = ApiClient.convertToType(data['parent_task_id'], 'Number'); + + delete data['parent_task_id']; + } + if (data.hasOwnProperty('assignee_id')) { + obj['assignee_id'] = ApiClient.convertToType(data['assignee_id'], 'Number'); + + delete data['assignee_id']; + } + if (data.hasOwnProperty('done')) { + obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); + + delete data['done']; + } + if (data.hasOwnProperty('due_date')) { + obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); + + delete data['due_date']; + } + if (data.hasOwnProperty('creator_id')) { + obj['creator_id'] = ApiClient.convertToType(data['creator_id'], 'Number'); + + delete data['creator_id']; + } + if (data.hasOwnProperty('add_time')) { + obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); + + delete data['add_time']; + } + if (data.hasOwnProperty('update_time')) { + obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); + + delete data['update_time']; + } + if (data.hasOwnProperty('marked_as_done_time')) { + obj['marked_as_done_time'] = ApiClient.convertToType(data['marked_as_done_time'], 'String'); + + delete data['marked_as_done_time']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of the task, generated when the task was created + * @member {Number} id + */ +TaskResponseObject.prototype['id'] = undefined; + +/** + * The title of the task + * @member {String} title + */ +TaskResponseObject.prototype['title'] = undefined; + +/** + * The ID of the project this task is associated with + * @member {Number} project_id + */ +TaskResponseObject.prototype['project_id'] = undefined; + +/** + * The description of the task + * @member {String} description + */ +TaskResponseObject.prototype['description'] = undefined; + +/** + * The ID of a parent task. Can not be ID of a task which is already a subtask. + * @member {Number} parent_task_id + */ +TaskResponseObject.prototype['parent_task_id'] = undefined; + +/** + * The ID of the user who will be the assignee of the task + * @member {Number} assignee_id + */ +TaskResponseObject.prototype['assignee_id'] = undefined; + +/** + * Whether the task is done or not. 0 = Not done, 1 = Done. + * @member {module:model/NumberBoolean} done + */ +TaskResponseObject.prototype['done'] = undefined; + +/** + * The due date of the task. Format: YYYY-MM-DD. + * @member {Date} due_date + */ +TaskResponseObject.prototype['due_date'] = undefined; + +/** + * The creator of a task + * @member {Number} creator_id + */ +TaskResponseObject.prototype['creator_id'] = undefined; + +/** + * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +TaskResponseObject.prototype['add_time'] = undefined; + +/** + * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +TaskResponseObject.prototype['update_time'] = undefined; + +/** + * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} marked_as_done_time + */ +TaskResponseObject.prototype['marked_as_done_time'] = undefined; + + +// Implement TaskId interface: +/** + * The ID of the task, generated when the task was created + * @member {Number} id + */ +TaskId.prototype['id'] = undefined; +// Implement FullTaskObject interface: +/** + * The title of the task + * @member {String} title + */ +FullTaskObject.prototype['title'] = undefined; +/** + * The ID of the project this task is associated with + * @member {Number} project_id + */ +FullTaskObject.prototype['project_id'] = undefined; +/** + * The description of the task + * @member {String} description + */ +FullTaskObject.prototype['description'] = undefined; +/** + * The ID of a parent task. Can not be ID of a task which is already a subtask. + * @member {Number} parent_task_id + */ +FullTaskObject.prototype['parent_task_id'] = undefined; +/** + * The ID of the user who will be the assignee of the task + * @member {Number} assignee_id + */ +FullTaskObject.prototype['assignee_id'] = undefined; +/** + * Whether the task is done or not. 0 = Not done, 1 = Done. + * @member {module:model/NumberBoolean} done + */ +FullTaskObject.prototype['done'] = undefined; +/** + * The due date of the task. Format: YYYY-MM-DD. + * @member {Date} due_date + */ +FullTaskObject.prototype['due_date'] = undefined; +/** + * The creator of a task + * @member {Number} creator_id + */ +FullTaskObject.prototype['creator_id'] = undefined; +/** + * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +FullTaskObject.prototype['add_time'] = undefined; +/** + * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +FullTaskObject.prototype['update_time'] = undefined; +/** + * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} marked_as_done_time + */ +FullTaskObject.prototype['marked_as_done_time'] = undefined; + + + + +export default TaskResponseObject; + diff --git a/src/model/TemplateObject.js b/src/model/TemplateObject.js new file mode 100644 index 00000000..bbf6368a --- /dev/null +++ b/src/model/TemplateObject.js @@ -0,0 +1,145 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The TemplateObject model module. + * @module model/TemplateObject + * @version 1.0.0 + */ +class TemplateObject { + /** + * Constructs a new TemplateObject. + * @alias module:model/TemplateObject + */ + constructor() { + + TemplateObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TemplateObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TemplateObject} obj Optional instance to populate. + * @return {module:model/TemplateObject} The populated TemplateObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TemplateObject(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('projects_board_id')) { + obj['projects_board_id'] = ApiClient.convertToType(data['projects_board_id'], 'Number'); + + delete data['projects_board_id']; + } + if (data.hasOwnProperty('owner_id')) { + obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); + + delete data['owner_id']; + } + if (data.hasOwnProperty('add_time')) { + obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); + + delete data['add_time']; + } + if (data.hasOwnProperty('update_time')) { + obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); + + delete data['update_time']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of a template + * @member {Number} id + */ +TemplateObject.prototype['id'] = undefined; + +/** + * The title of a template + * @member {String} title + */ +TemplateObject.prototype['title'] = undefined; + +/** + * The description of a template + * @member {String} description + */ +TemplateObject.prototype['description'] = undefined; + +/** + * The ID of the project board this template is associated with + * @member {Number} projects_board_id + */ +TemplateObject.prototype['projects_board_id'] = undefined; + +/** + * The ID of a template owner + * @member {Number} owner_id + */ +TemplateObject.prototype['owner_id'] = undefined; + +/** + * The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +TemplateObject.prototype['add_time'] = undefined; + +/** + * The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +TemplateObject.prototype['update_time'] = undefined; + + + + + + +export default TemplateObject; + diff --git a/src/model/TemplateResponseObject.js b/src/model/TemplateResponseObject.js new file mode 100644 index 00000000..64c3ecb4 --- /dev/null +++ b/src/model/TemplateResponseObject.js @@ -0,0 +1,184 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import TemplateObject from './TemplateObject'; + +/** + * The TemplateResponseObject model module. + * @module model/TemplateResponseObject + * @version 1.0.0 + */ +class TemplateResponseObject { + /** + * Constructs a new TemplateResponseObject. + * @alias module:model/TemplateResponseObject + * @implements module:model/TemplateObject + */ + constructor() { + TemplateObject.initialize(this); + TemplateResponseObject.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a TemplateResponseObject from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TemplateResponseObject} obj Optional instance to populate. + * @return {module:model/TemplateResponseObject} The populated TemplateResponseObject instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TemplateResponseObject(); + TemplateObject.constructFromObject(data, obj); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + + delete data['id']; + } + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + + delete data['title']; + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], 'String'); + + delete data['description']; + } + if (data.hasOwnProperty('projects_board_id')) { + obj['projects_board_id'] = ApiClient.convertToType(data['projects_board_id'], 'Number'); + + delete data['projects_board_id']; + } + if (data.hasOwnProperty('owner_id')) { + obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); + + delete data['owner_id']; + } + if (data.hasOwnProperty('add_time')) { + obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); + + delete data['add_time']; + } + if (data.hasOwnProperty('update_time')) { + obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); + + delete data['update_time']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * The ID of a template + * @member {Number} id + */ +TemplateResponseObject.prototype['id'] = undefined; + +/** + * The title of a template + * @member {String} title + */ +TemplateResponseObject.prototype['title'] = undefined; + +/** + * The description of a template + * @member {String} description + */ +TemplateResponseObject.prototype['description'] = undefined; + +/** + * The ID of the project board this template is associated with + * @member {Number} projects_board_id + */ +TemplateResponseObject.prototype['projects_board_id'] = undefined; + +/** + * The ID of a template owner + * @member {Number} owner_id + */ +TemplateResponseObject.prototype['owner_id'] = undefined; + +/** + * The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +TemplateResponseObject.prototype['add_time'] = undefined; + +/** + * The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +TemplateResponseObject.prototype['update_time'] = undefined; + + +// Implement TemplateObject interface: +/** + * The ID of a template + * @member {Number} id + */ +TemplateObject.prototype['id'] = undefined; +/** + * The title of a template + * @member {String} title + */ +TemplateObject.prototype['title'] = undefined; +/** + * The description of a template + * @member {String} description + */ +TemplateObject.prototype['description'] = undefined; +/** + * The ID of the project board this template is associated with + * @member {Number} projects_board_id + */ +TemplateObject.prototype['projects_board_id'] = undefined; +/** + * The ID of a template owner + * @member {Number} owner_id + */ +TemplateObject.prototype['owner_id'] = undefined; +/** + * The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} add_time + */ +TemplateObject.prototype['add_time'] = undefined; +/** + * The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @member {String} update_time + */ +TemplateObject.prototype['update_time'] = undefined; + + + + +export default TemplateResponseObject; + diff --git a/src/model/UpdateProjectResponse200.js b/src/model/UpdateProjectResponse200.js new file mode 100644 index 00000000..d24f711d --- /dev/null +++ b/src/model/UpdateProjectResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectResponseObject from './ProjectResponseObject'; + +/** + * The UpdateProjectResponse200 model module. + * @module model/UpdateProjectResponse200 + * @version 1.0.0 + */ +class UpdateProjectResponse200 { + /** + * Constructs a new UpdateProjectResponse200. + * @alias module:model/UpdateProjectResponse200 + */ + constructor() { + + UpdateProjectResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateProjectResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateProjectResponse200} obj Optional instance to populate. + * @return {module:model/UpdateProjectResponse200} The populated UpdateProjectResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateProjectResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ProjectResponseObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +UpdateProjectResponse200.prototype['success'] = undefined; + +/** + * @member {module:model/ProjectResponseObject} data + */ +UpdateProjectResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +UpdateProjectResponse200.prototype['additional_data'] = undefined; + + + + + + +export default UpdateProjectResponse200; + diff --git a/src/model/UpdateTaskResponse200.js b/src/model/UpdateTaskResponse200.js new file mode 100644 index 00000000..56b060bf --- /dev/null +++ b/src/model/UpdateTaskResponse200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import TaskResponseObject from './TaskResponseObject'; + +/** + * The UpdateTaskResponse200 model module. + * @module model/UpdateTaskResponse200 + * @version 1.0.0 + */ +class UpdateTaskResponse200 { + /** + * Constructs a new UpdateTaskResponse200. + * @alias module:model/UpdateTaskResponse200 + */ + constructor() { + + UpdateTaskResponse200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateTaskResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateTaskResponse200} obj Optional instance to populate. + * @return {module:model/UpdateTaskResponse200} The populated UpdateTaskResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateTaskResponse200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = TaskResponseObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +UpdateTaskResponse200.prototype['success'] = undefined; + +/** + * @member {module:model/TaskResponseObject} data + */ +UpdateTaskResponse200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +UpdateTaskResponse200.prototype['additional_data'] = undefined; + + + + + + +export default UpdateTaskResponse200; + diff --git a/src/model/UpdatedActivityPlanItem200.js b/src/model/UpdatedActivityPlanItem200.js new file mode 100644 index 00000000..7a2585f2 --- /dev/null +++ b/src/model/UpdatedActivityPlanItem200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectPlanItemObject from './ProjectPlanItemObject'; + +/** + * The UpdatedActivityPlanItem200 model module. + * @module model/UpdatedActivityPlanItem200 + * @version 1.0.0 + */ +class UpdatedActivityPlanItem200 { + /** + * Constructs a new UpdatedActivityPlanItem200. + * @alias module:model/UpdatedActivityPlanItem200 + */ + constructor() { + + UpdatedActivityPlanItem200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdatedActivityPlanItem200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatedActivityPlanItem200} obj Optional instance to populate. + * @return {module:model/UpdatedActivityPlanItem200} The populated UpdatedActivityPlanItem200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatedActivityPlanItem200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ProjectPlanItemObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +UpdatedActivityPlanItem200.prototype['success'] = undefined; + +/** + * @member {module:model/ProjectPlanItemObject} data + */ +UpdatedActivityPlanItem200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +UpdatedActivityPlanItem200.prototype['additional_data'] = undefined; + + + + + + +export default UpdatedActivityPlanItem200; + diff --git a/src/model/UpdatedTaskPlanItem200.js b/src/model/UpdatedTaskPlanItem200.js new file mode 100644 index 00000000..1262434f --- /dev/null +++ b/src/model/UpdatedTaskPlanItem200.js @@ -0,0 +1,99 @@ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ProjectPlanItemObject from './ProjectPlanItemObject'; + +/** + * The UpdatedTaskPlanItem200 model module. + * @module model/UpdatedTaskPlanItem200 + * @version 1.0.0 + */ +class UpdatedTaskPlanItem200 { + /** + * Constructs a new UpdatedTaskPlanItem200. + * @alias module:model/UpdatedTaskPlanItem200 + */ + constructor() { + + UpdatedTaskPlanItem200.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdatedTaskPlanItem200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatedTaskPlanItem200} obj Optional instance to populate. + * @return {module:model/UpdatedTaskPlanItem200} The populated UpdatedTaskPlanItem200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatedTaskPlanItem200(); + + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + + delete data['success']; + } + if (data.hasOwnProperty('data')) { + obj['data'] = ProjectPlanItemObject.constructFromObject(data['data']); + + delete data['data']; + } + if (data.hasOwnProperty('additional_data')) { + obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); + + delete data['additional_data']; + } + + if (Object.keys(data).length > 0) { + Object.assign(obj, data); + } + + } + return obj; + } + + +} + +/** + * @member {Boolean} success + */ +UpdatedTaskPlanItem200.prototype['success'] = undefined; + +/** + * @member {module:model/ProjectPlanItemObject} data + */ +UpdatedTaskPlanItem200.prototype['data'] = undefined; + +/** + * @member {Object} additional_data + */ +UpdatedTaskPlanItem200.prototype['additional_data'] = undefined; + + + + + + +export default UpdatedTaskPlanItem200; +