pipedrive 22.2.0 → 22.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +75 -0
- package/dist/api/ProjectTemplatesApi.js +258 -0
- package/dist/api/ProjectsApi.js +846 -0
- package/dist/api/TasksApi.js +328 -0
- package/dist/index.js +371 -0
- package/dist/model/AddProjectResponse201.js +96 -0
- package/dist/model/AddTaskResponse201.js +96 -0
- package/dist/model/DeleteProject.js +88 -0
- package/dist/model/DeleteProjectData.js +78 -0
- package/dist/model/DeleteProjectResponse200.js +96 -0
- package/dist/model/DeleteTask.js +88 -0
- package/dist/model/DeleteTaskData.js +78 -0
- package/dist/model/DeleteTaskResponse200.js +96 -0
- package/dist/model/FilterType.js +1 -0
- package/dist/model/FullProjectObject.js +324 -0
- package/dist/model/FullTaskObject.js +250 -0
- package/dist/model/GetProjectBoardResponse200.js +96 -0
- package/dist/model/GetProjectBoardsResponse200.js +96 -0
- package/dist/model/GetProjectGroupsResponse200.js +96 -0
- package/dist/model/GetProjectPhaseResponse200.js +96 -0
- package/dist/model/GetProjectPhasesResponse200.js +96 -0
- package/dist/model/GetProjectPlanResponse200.js +96 -0
- package/dist/model/GetProjectResponse200.js +96 -0
- package/dist/model/GetProjectTemplateResponse200.js +96 -0
- package/dist/model/GetProjectTemplatesResponse200.js +97 -0
- package/dist/model/GetProjectsResponse200.js +97 -0
- package/dist/model/GetTaskResponse200.js +96 -0
- package/dist/model/GetTasksResponse200.js +97 -0
- package/dist/model/ProjectBoardObject.js +118 -0
- package/dist/model/ProjectGroupsObject.js +98 -0
- package/dist/model/ProjectId.js +78 -0
- package/dist/model/ProjectMandatoryObjectFragment.js +98 -0
- package/dist/model/ProjectNotChangeableObjectFragment.js +108 -0
- package/dist/model/ProjectObjectFragment.js +158 -0
- package/dist/model/ProjectPhaseObject.js +128 -0
- package/dist/model/ProjectPlanItemObject.js +108 -0
- package/dist/model/ProjectPostObject.js +286 -0
- package/dist/model/ProjectPostObjectAllOf.js +78 -0
- package/dist/model/ProjectPutObject.js +259 -0
- package/dist/model/ProjectPutPlanItemBodyObject.js +88 -0
- package/dist/model/ProjectResponseObject.js +334 -0
- package/dist/model/RequiredPostProjectParameters.js +105 -0
- package/dist/model/RequiredPostTaskParameters.js +93 -0
- package/dist/model/TaskId.js +78 -0
- package/dist/model/TaskMandatoryObjectFragment.js +88 -0
- package/dist/model/TaskNotChangeableObjectFragment.js +108 -0
- package/dist/model/TaskObjectFragment.js +119 -0
- package/dist/model/TaskPostObject.js +190 -0
- package/dist/model/TaskPutObject.js +185 -0
- package/dist/model/TaskResponseObject.js +260 -0
- package/dist/model/TemplateObject.js +138 -0
- package/dist/model/TemplateResponseObject.js +179 -0
- package/dist/model/UpdateProjectResponse200.js +96 -0
- package/dist/model/UpdateTaskResponse200.js +96 -0
- package/dist/model/UpdatedActivityPlanItem200.js +96 -0
- package/dist/model/UpdatedTaskPlanItem200.js +96 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -318,6 +318,8 @@ app.get('/callback', (req, res) => {
|
|
318
318
|
- 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
|
319
319
|
- products:read: Read products, its fields, files, followers and products connected to a deal
|
320
320
|
- products:full: Create, read, update and delete products and its fields; add products to deals
|
321
|
+
- projects:read: Read projects and its fields, tasks and project templates
|
322
|
+
- projects:full: Create, read, update and delete projects and its fields; add projects templates and project related tasks
|
321
323
|
- users:read: Read data about users (people with access to a Pipedrive account), their permissions, roles and followers
|
322
324
|
- 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
|
323
325
|
- 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
|
|
544
546
|
*Pipedrive.ProductsApi* | [**getProducts**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#getProducts) | **GET** /products | Get all products
|
545
547
|
*Pipedrive.ProductsApi* | [**searchProducts**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#searchProducts) | **GET** /products/search | Search products
|
546
548
|
*Pipedrive.ProductsApi* | [**updateProduct**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#updateProduct) | **PUT** /products/{id} | Update a product
|
549
|
+
*Pipedrive.ProjectTemplatesApi* | [**getProjectTemplate**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectTemplate) | **GET** /projectTemplates/{id} | Get details of a template
|
550
|
+
*Pipedrive.ProjectTemplatesApi* | [**getProjectTemplates**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectTemplates) | **GET** /projectTemplates | Get all project templates
|
551
|
+
*Pipedrive.ProjectTemplatesApi* | [**getProjectsBoard**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectsBoard) | **GET** /projects/boards/{id} | Get details of a board
|
552
|
+
*Pipedrive.ProjectTemplatesApi* | [**getProjectsPhase**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectsPhase) | **GET** /projects/phases/{id} | Get details of a phase
|
553
|
+
*Pipedrive.ProjectsApi* | [**addProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#addProject) | **POST** /projects | Add a project
|
554
|
+
*Pipedrive.ProjectsApi* | [**archiveProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#archiveProject) | **POST** /projects/{id}/archive | Archive a project
|
555
|
+
*Pipedrive.ProjectsApi* | [**deleteProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#deleteProject) | **DELETE** /projects/{id} | Delete a project
|
556
|
+
*Pipedrive.ProjectsApi* | [**getProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProject) | **GET** /projects/{id} | Get details of a project
|
557
|
+
*Pipedrive.ProjectsApi* | [**getProjectActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectActivities) | **GET** /projects/{id}/activities | Returns project activities
|
558
|
+
*Pipedrive.ProjectsApi* | [**getProjectGroups**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectGroups) | **GET** /projects/{id}/groups | Returns project groups
|
559
|
+
*Pipedrive.ProjectsApi* | [**getProjectPlan**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectPlan) | **GET** /projects/{id}/plan | Returns project plan
|
560
|
+
*Pipedrive.ProjectsApi* | [**getProjectTasks**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectTasks) | **GET** /projects/{id}/tasks | Returns project tasks
|
561
|
+
*Pipedrive.ProjectsApi* | [**getProjects**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjects) | **GET** /projects | Get all projects
|
562
|
+
*Pipedrive.ProjectsApi* | [**getProjectsBoards**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectsBoards) | **GET** /projects/boards | Get all project boards
|
563
|
+
*Pipedrive.ProjectsApi* | [**getProjectsPhases**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectsPhases) | **GET** /projects/phases | Get project phases
|
564
|
+
*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
|
565
|
+
*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
|
566
|
+
*Pipedrive.ProjectsApi* | [**updateProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#updateProject) | **PUT** /projects/{id} | Update a project
|
547
567
|
*Pipedrive.RecentsApi* | [**getRecents**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsApi.md#getRecents) | **GET** /recents | Get recents
|
548
568
|
*Pipedrive.RolesApi* | [**addOrUpdateRoleSetting**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#addOrUpdateRoleSetting) | **POST** /roles/{id}/settings | Add or update role setting
|
549
569
|
*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
|
|
573
593
|
*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
|
574
594
|
*Pipedrive.SubscriptionsApi* | [**updateRecurringSubscription**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#updateRecurringSubscription) | **PUT** /subscriptions/recurring/{id} | Update a recurring subscription
|
575
595
|
*Pipedrive.SubscriptionsApi* | [**updateSubscriptionInstallment**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#updateSubscriptionInstallment) | **PUT** /subscriptions/installment/{id} | Update an installment subscription
|
596
|
+
*Pipedrive.TasksApi* | [**addTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#addTask) | **POST** /tasks | Add a task
|
597
|
+
*Pipedrive.TasksApi* | [**deleteTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#deleteTask) | **DELETE** /tasks/{id} | Delete a task
|
598
|
+
*Pipedrive.TasksApi* | [**getTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#getTask) | **GET** /tasks/{id} | Get details of a task
|
599
|
+
*Pipedrive.TasksApi* | [**getTasks**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#getTasks) | **GET** /tasks | Get all tasks
|
600
|
+
*Pipedrive.TasksApi* | [**updateTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#updateTask) | **PUT** /tasks/{id} | Update a task
|
576
601
|
*Pipedrive.UserConnectionsApi* | [**getUserConnections**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserConnectionsApi.md#getUserConnections) | **GET** /userConnections | Get all user connections
|
577
602
|
*Pipedrive.UserSettingsApi* | [**getUserSettings**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserSettingsApi.md#getUserSettings) | **GET** /userSettings | List settings of an authorized user
|
578
603
|
*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
|
|
647
672
|
- [Pipedrive.AddProductAttachmentDetailsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductAttachmentDetailsAllOf.md)
|
648
673
|
- [Pipedrive.AddProductFollowerRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductFollowerRequest.md)
|
649
674
|
- [Pipedrive.AddProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductRequestBody.md)
|
675
|
+
- [Pipedrive.AddProjectResponse201](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProjectResponse201.md)
|
650
676
|
- [Pipedrive.AddRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddRole.md)
|
651
677
|
- [Pipedrive.AddRoleAssignmentRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddRoleAssignmentRequest.md)
|
678
|
+
- [Pipedrive.AddTaskResponse201](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddTaskResponse201.md)
|
652
679
|
- [Pipedrive.AddTeamUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddTeamUserRequest.md)
|
653
680
|
- [Pipedrive.AddUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddUserRequest.md)
|
654
681
|
- [Pipedrive.AddWebhookRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddWebhookRequest.md)
|
@@ -828,6 +855,9 @@ Class | Method | HTTP request | Description
|
|
828
855
|
- [Pipedrive.DeleteProductFollowerResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductFollowerResponseData.md)
|
829
856
|
- [Pipedrive.DeleteProductResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductResponse.md)
|
830
857
|
- [Pipedrive.DeleteProductResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductResponseData.md)
|
858
|
+
- [Pipedrive.DeleteProject](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProject.md)
|
859
|
+
- [Pipedrive.DeleteProjectData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProjectData.md)
|
860
|
+
- [Pipedrive.DeleteProjectResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProjectResponse200.md)
|
831
861
|
- [Pipedrive.DeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteResponse.md)
|
832
862
|
- [Pipedrive.DeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteResponseAllOf.md)
|
833
863
|
- [Pipedrive.DeleteResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteResponseAllOfData.md)
|
@@ -842,6 +872,9 @@ Class | Method | HTTP request | Description
|
|
842
872
|
- [Pipedrive.DeleteStageResponse200Data](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteStageResponse200Data.md)
|
843
873
|
- [Pipedrive.DeleteStagesResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteStagesResponse200.md)
|
844
874
|
- [Pipedrive.DeleteStagesResponse200Data](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteStagesResponse200Data.md)
|
875
|
+
- [Pipedrive.DeleteTask](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTask.md)
|
876
|
+
- [Pipedrive.DeleteTaskData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTaskData.md)
|
877
|
+
- [Pipedrive.DeleteTaskResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTaskResponse200.md)
|
845
878
|
- [Pipedrive.DeleteTeamUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTeamUserRequest.md)
|
846
879
|
- [Pipedrive.Duration](https://github.com/pipedrive/client-nodejs/blob/master/docs/Duration.md)
|
847
880
|
- [Pipedrive.EditPipeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/EditPipeline.md)
|
@@ -880,8 +913,10 @@ Class | Method | HTTP request | Description
|
|
880
913
|
- [Pipedrive.FollowerData](https://github.com/pipedrive/client-nodejs/blob/master/docs/FollowerData.md)
|
881
914
|
- [Pipedrive.FollowerDataWithID](https://github.com/pipedrive/client-nodejs/blob/master/docs/FollowerDataWithID.md)
|
882
915
|
- [Pipedrive.FollowerDataWithIDAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FollowerDataWithIDAllOf.md)
|
916
|
+
- [Pipedrive.FullProjectObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullProjectObject.md)
|
883
917
|
- [Pipedrive.FullRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullRole.md)
|
884
918
|
- [Pipedrive.FullRoleAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullRoleAllOf.md)
|
919
|
+
- [Pipedrive.FullTaskObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullTaskObject.md)
|
885
920
|
- [Pipedrive.GetActivitiesCollectionResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetActivitiesCollectionResponse200.md)
|
886
921
|
- [Pipedrive.GetActivitiesResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetActivitiesResponse200.md)
|
887
922
|
- [Pipedrive.GetActivitiesResponse200RelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetActivitiesResponse200RelatedObjects.md)
|
@@ -935,6 +970,16 @@ Class | Method | HTTP request | Description
|
|
935
970
|
- [Pipedrive.GetPersonDetailsResponseAllOfAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetPersonDetailsResponseAllOfAdditionalData.md)
|
936
971
|
- [Pipedrive.GetProductAttachementDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProductAttachementDetails.md)
|
937
972
|
- [Pipedrive.GetProductFieldResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProductFieldResponse.md)
|
973
|
+
- [Pipedrive.GetProjectBoardResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectBoardResponse200.md)
|
974
|
+
- [Pipedrive.GetProjectBoardsResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectBoardsResponse200.md)
|
975
|
+
- [Pipedrive.GetProjectGroupsResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectGroupsResponse200.md)
|
976
|
+
- [Pipedrive.GetProjectPhaseResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectPhaseResponse200.md)
|
977
|
+
- [Pipedrive.GetProjectPhasesResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectPhasesResponse200.md)
|
978
|
+
- [Pipedrive.GetProjectPlanResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectPlanResponse200.md)
|
979
|
+
- [Pipedrive.GetProjectResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectResponse200.md)
|
980
|
+
- [Pipedrive.GetProjectTemplateResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectTemplateResponse200.md)
|
981
|
+
- [Pipedrive.GetProjectTemplatesResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectTemplatesResponse200.md)
|
982
|
+
- [Pipedrive.GetProjectsResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectsResponse200.md)
|
938
983
|
- [Pipedrive.GetRecents](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRecents.md)
|
939
984
|
- [Pipedrive.GetRecentsAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRecentsAdditionalData.md)
|
940
985
|
- [Pipedrive.GetRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRole.md)
|
@@ -951,6 +996,8 @@ Class | Method | HTTP request | Description
|
|
951
996
|
- [Pipedrive.GetRolesAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRolesAllOf.md)
|
952
997
|
- [Pipedrive.GetStageDeals](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetStageDeals.md)
|
953
998
|
- [Pipedrive.GetStages](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetStages.md)
|
999
|
+
- [Pipedrive.GetTaskResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetTaskResponse200.md)
|
1000
|
+
- [Pipedrive.GetTasksResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetTasksResponse200.md)
|
954
1001
|
- [Pipedrive.GoalResults](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalResults.md)
|
955
1002
|
- [Pipedrive.GoalType](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalType.md)
|
956
1003
|
- [Pipedrive.GoalsResponseComponent](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalsResponseComponent.md)
|
@@ -1212,6 +1259,19 @@ Class | Method | HTTP request | Description
|
|
1212
1259
|
- [Pipedrive.ProductWithArrayPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductWithArrayPrices.md)
|
1213
1260
|
- [Pipedrive.ProductWithObjectPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductWithObjectPrices.md)
|
1214
1261
|
- [Pipedrive.ProductsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsResponse.md)
|
1262
|
+
- [Pipedrive.ProjectBoardObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectBoardObject.md)
|
1263
|
+
- [Pipedrive.ProjectGroupsObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectGroupsObject.md)
|
1264
|
+
- [Pipedrive.ProjectId](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectId.md)
|
1265
|
+
- [Pipedrive.ProjectMandatoryObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectMandatoryObjectFragment.md)
|
1266
|
+
- [Pipedrive.ProjectNotChangeableObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectNotChangeableObjectFragment.md)
|
1267
|
+
- [Pipedrive.ProjectObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectObjectFragment.md)
|
1268
|
+
- [Pipedrive.ProjectPhaseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPhaseObject.md)
|
1269
|
+
- [Pipedrive.ProjectPlanItemObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPlanItemObject.md)
|
1270
|
+
- [Pipedrive.ProjectPostObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPostObject.md)
|
1271
|
+
- [Pipedrive.ProjectPostObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPostObjectAllOf.md)
|
1272
|
+
- [Pipedrive.ProjectPutObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPutObject.md)
|
1273
|
+
- [Pipedrive.ProjectPutPlanItemBodyObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPutPlanItemBodyObject.md)
|
1274
|
+
- [Pipedrive.ProjectResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectResponseObject.md)
|
1215
1275
|
- [Pipedrive.PutRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/PutRole.md)
|
1216
1276
|
- [Pipedrive.PutRoleAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PutRoleAllOf.md)
|
1217
1277
|
- [Pipedrive.PutRoleAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/PutRoleAllOfData.md)
|
@@ -1243,6 +1303,8 @@ Class | Method | HTTP request | Description
|
|
1243
1303
|
- [Pipedrive.RelationshipOrganizationInfoItemAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItemAllOf.md)
|
1244
1304
|
- [Pipedrive.RelationshipOrganizationInfoItemWithActiveFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItemWithActiveFlag.md)
|
1245
1305
|
- [Pipedrive.RequiredNameObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredNameObject.md)
|
1306
|
+
- [Pipedrive.RequiredPostProjectParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredPostProjectParameters.md)
|
1307
|
+
- [Pipedrive.RequiredPostTaskParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredPostTaskParameters.md)
|
1246
1308
|
- [Pipedrive.RequredTitleParameter](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequredTitleParameter.md)
|
1247
1309
|
- [Pipedrive.ResponseCallLogObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ResponseCallLogObject.md)
|
1248
1310
|
- [Pipedrive.ResponseCallLogObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ResponseCallLogObjectAllOf.md)
|
@@ -1270,11 +1332,20 @@ Class | Method | HTTP request | Description
|
|
1270
1332
|
- [Pipedrive.SubscriptionRecurringUpdateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionRecurringUpdateRequest.md)
|
1271
1333
|
- [Pipedrive.SubscriptionsIdResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsIdResponse.md)
|
1272
1334
|
- [Pipedrive.SubscriptionsIdResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsIdResponseAllOf.md)
|
1335
|
+
- [Pipedrive.TaskId](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskId.md)
|
1336
|
+
- [Pipedrive.TaskMandatoryObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskMandatoryObjectFragment.md)
|
1337
|
+
- [Pipedrive.TaskNotChangeableObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskNotChangeableObjectFragment.md)
|
1338
|
+
- [Pipedrive.TaskObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskObjectFragment.md)
|
1339
|
+
- [Pipedrive.TaskPostObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskPostObject.md)
|
1340
|
+
- [Pipedrive.TaskPutObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskPutObject.md)
|
1341
|
+
- [Pipedrive.TaskResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskResponseObject.md)
|
1273
1342
|
- [Pipedrive.Team](https://github.com/pipedrive/client-nodejs/blob/master/docs/Team.md)
|
1274
1343
|
- [Pipedrive.TeamAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/TeamAllOf.md)
|
1275
1344
|
- [Pipedrive.TeamId](https://github.com/pipedrive/client-nodejs/blob/master/docs/TeamId.md)
|
1276
1345
|
- [Pipedrive.Teams](https://github.com/pipedrive/client-nodejs/blob/master/docs/Teams.md)
|
1277
1346
|
- [Pipedrive.TeamsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/TeamsAllOf.md)
|
1347
|
+
- [Pipedrive.TemplateObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TemplateObject.md)
|
1348
|
+
- [Pipedrive.TemplateResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TemplateResponseObject.md)
|
1278
1349
|
- [Pipedrive.Unauthorized](https://github.com/pipedrive/client-nodejs/blob/master/docs/Unauthorized.md)
|
1279
1350
|
- [Pipedrive.UpdateActivityResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateActivityResponse200.md)
|
1280
1351
|
- [Pipedrive.UpdateDealParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateDealParameters.md)
|
@@ -1292,12 +1363,16 @@ Class | Method | HTTP request | Description
|
|
1292
1363
|
- [Pipedrive.UpdateProductField](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProductField.md)
|
1293
1364
|
- [Pipedrive.UpdateProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProductRequestBody.md)
|
1294
1365
|
- [Pipedrive.UpdateProductResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProductResponse.md)
|
1366
|
+
- [Pipedrive.UpdateProjectResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProjectResponse200.md)
|
1295
1367
|
- [Pipedrive.UpdateStageRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateStageRequest.md)
|
1296
1368
|
- [Pipedrive.UpdateStageRequestAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateStageRequestAllOf.md)
|
1369
|
+
- [Pipedrive.UpdateTaskResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTaskResponse200.md)
|
1297
1370
|
- [Pipedrive.UpdateTeam](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTeam.md)
|
1298
1371
|
- [Pipedrive.UpdateTeamAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTeamAllOf.md)
|
1299
1372
|
- [Pipedrive.UpdateTeamWithAdditionalProperties](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTeamWithAdditionalProperties.md)
|
1300
1373
|
- [Pipedrive.UpdateUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateUserRequest.md)
|
1374
|
+
- [Pipedrive.UpdatedActivityPlanItem200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdatedActivityPlanItem200.md)
|
1375
|
+
- [Pipedrive.UpdatedTaskPlanItem200](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdatedTaskPlanItem200.md)
|
1301
1376
|
- [Pipedrive.User](https://github.com/pipedrive/client-nodejs/blob/master/docs/User.md)
|
1302
1377
|
- [Pipedrive.UserAccess](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserAccess.md)
|
1303
1378
|
- [Pipedrive.UserAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserAllOf.md)
|
@@ -0,0 +1,258 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports["default"] = void 0;
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
9
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
10
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
11
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
12
|
+
var _GetProjectBoardResponse = _interopRequireDefault(require("../model/GetProjectBoardResponse200"));
|
13
|
+
var _GetProjectPhaseResponse = _interopRequireDefault(require("../model/GetProjectPhaseResponse200"));
|
14
|
+
var _GetProjectTemplateResponse = _interopRequireDefault(require("../model/GetProjectTemplateResponse200"));
|
15
|
+
var _GetProjectTemplatesResponse = _interopRequireDefault(require("../model/GetProjectTemplatesResponse200"));
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
17
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
18
|
+
/**
|
19
|
+
* ProjectTemplates service.
|
20
|
+
* @module api/ProjectTemplatesApi
|
21
|
+
* @version 1.0.0
|
22
|
+
*/
|
23
|
+
var ProjectTemplatesApi = /*#__PURE__*/function () {
|
24
|
+
/**
|
25
|
+
* Constructs a new ProjectTemplatesApi.
|
26
|
+
* @alias module:api/ProjectTemplatesApi
|
27
|
+
* @class
|
28
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
29
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
30
|
+
*/
|
31
|
+
function ProjectTemplatesApi(apiClient) {
|
32
|
+
(0, _classCallCheck2["default"])(this, ProjectTemplatesApi);
|
33
|
+
this.apiClient = apiClient;
|
34
|
+
}
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Get details of a template
|
38
|
+
* Returns the details of a specific project template.
|
39
|
+
* @param {Number} id The ID of the project template
|
40
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectTemplateResponse200} and HTTP response
|
41
|
+
*/
|
42
|
+
(0, _createClass2["default"])(ProjectTemplatesApi, [{
|
43
|
+
key: "getProjectTemplateWithHttpInfo",
|
44
|
+
value: function getProjectTemplateWithHttpInfo(id) {
|
45
|
+
var opts = {};
|
46
|
+
var postBody = null;
|
47
|
+
|
48
|
+
// verify the required parameter 'id' is set
|
49
|
+
if (id === undefined || id === null) {
|
50
|
+
throw new Error("Missing the required parameter 'id' when calling getProjectTemplate");
|
51
|
+
}
|
52
|
+
var pathParams = {
|
53
|
+
'id': id
|
54
|
+
};
|
55
|
+
var queryParams = {};
|
56
|
+
var headerParams = {};
|
57
|
+
var formParams = {};
|
58
|
+
var formParamArray = [];
|
59
|
+
var contentTypes = [];
|
60
|
+
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
61
|
+
var isJSON = contentTypes.includes('application/json');
|
62
|
+
if (isJSON) {
|
63
|
+
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
64
|
+
} else if (isURLEncoded) {
|
65
|
+
for (var key in opts) {
|
66
|
+
if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
|
67
|
+
formParams[key] = opts[key];
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
var authNames = ['api_key', 'oauth2'];
|
72
|
+
var accepts = ['application/json'];
|
73
|
+
var returnType = _GetProjectTemplateResponse["default"];
|
74
|
+
return this.apiClient.callApi('/projectTemplates/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
75
|
+
}
|
76
|
+
|
77
|
+
/**
|
78
|
+
* Get details of a template
|
79
|
+
* Returns the details of a specific project template.
|
80
|
+
* @param {Number} id The ID of the project template
|
81
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectTemplateResponse200}
|
82
|
+
*/
|
83
|
+
}, {
|
84
|
+
key: "getProjectTemplate",
|
85
|
+
value: function getProjectTemplate(id) {
|
86
|
+
return this.getProjectTemplateWithHttpInfo(id).then(function (response_and_data) {
|
87
|
+
return response_and_data;
|
88
|
+
});
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Get all project templates
|
93
|
+
* 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>.
|
94
|
+
* @param {Object} opts Optional parameters
|
95
|
+
* @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page
|
96
|
+
* @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned.
|
97
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectTemplatesResponse200} and HTTP response
|
98
|
+
*/
|
99
|
+
}, {
|
100
|
+
key: "getProjectTemplatesWithHttpInfo",
|
101
|
+
value: function getProjectTemplatesWithHttpInfo(opts) {
|
102
|
+
opts = opts || {};
|
103
|
+
var postBody = null;
|
104
|
+
var pathParams = {};
|
105
|
+
var queryParams = {
|
106
|
+
'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'],
|
107
|
+
'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit']
|
108
|
+
};
|
109
|
+
var headerParams = {};
|
110
|
+
var formParams = {};
|
111
|
+
var formParamArray = [];
|
112
|
+
var contentTypes = [];
|
113
|
+
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
114
|
+
var isJSON = contentTypes.includes('application/json');
|
115
|
+
if (isJSON) {
|
116
|
+
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
117
|
+
} else if (isURLEncoded) {
|
118
|
+
for (var key in opts) {
|
119
|
+
if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
|
120
|
+
formParams[key] = opts[key];
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
var authNames = ['api_key', 'oauth2'];
|
125
|
+
var accepts = ['application/json'];
|
126
|
+
var returnType = _GetProjectTemplatesResponse["default"];
|
127
|
+
return this.apiClient.callApi('/projectTemplates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
128
|
+
}
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Get all project templates
|
132
|
+
* 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>.
|
133
|
+
* @param {Object} opts Optional parameters
|
134
|
+
* @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page
|
135
|
+
* @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned.
|
136
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectTemplatesResponse200}
|
137
|
+
*/
|
138
|
+
}, {
|
139
|
+
key: "getProjectTemplates",
|
140
|
+
value: function getProjectTemplates(opts) {
|
141
|
+
return this.getProjectTemplatesWithHttpInfo(opts).then(function (response_and_data) {
|
142
|
+
return response_and_data;
|
143
|
+
});
|
144
|
+
}
|
145
|
+
|
146
|
+
/**
|
147
|
+
* Get details of a board
|
148
|
+
* Returns the details of a specific project board.
|
149
|
+
* @param {Number} id The ID of the project board
|
150
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectBoardResponse200} and HTTP response
|
151
|
+
*/
|
152
|
+
}, {
|
153
|
+
key: "getProjectsBoardWithHttpInfo",
|
154
|
+
value: function getProjectsBoardWithHttpInfo(id) {
|
155
|
+
var opts = {};
|
156
|
+
var postBody = null;
|
157
|
+
|
158
|
+
// verify the required parameter 'id' is set
|
159
|
+
if (id === undefined || id === null) {
|
160
|
+
throw new Error("Missing the required parameter 'id' when calling getProjectsBoard");
|
161
|
+
}
|
162
|
+
var pathParams = {
|
163
|
+
'id': id
|
164
|
+
};
|
165
|
+
var queryParams = {};
|
166
|
+
var headerParams = {};
|
167
|
+
var formParams = {};
|
168
|
+
var formParamArray = [];
|
169
|
+
var contentTypes = [];
|
170
|
+
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
171
|
+
var isJSON = contentTypes.includes('application/json');
|
172
|
+
if (isJSON) {
|
173
|
+
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
174
|
+
} else if (isURLEncoded) {
|
175
|
+
for (var key in opts) {
|
176
|
+
if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
|
177
|
+
formParams[key] = opts[key];
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}
|
181
|
+
var authNames = ['api_key', 'oauth2'];
|
182
|
+
var accepts = ['application/json'];
|
183
|
+
var returnType = _GetProjectBoardResponse["default"];
|
184
|
+
return this.apiClient.callApi('/projects/boards/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
185
|
+
}
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Get details of a board
|
189
|
+
* Returns the details of a specific project board.
|
190
|
+
* @param {Number} id The ID of the project board
|
191
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectBoardResponse200}
|
192
|
+
*/
|
193
|
+
}, {
|
194
|
+
key: "getProjectsBoard",
|
195
|
+
value: function getProjectsBoard(id) {
|
196
|
+
return this.getProjectsBoardWithHttpInfo(id).then(function (response_and_data) {
|
197
|
+
return response_and_data;
|
198
|
+
});
|
199
|
+
}
|
200
|
+
|
201
|
+
/**
|
202
|
+
* Get details of a phase
|
203
|
+
* Returns the details of a specific project phase.
|
204
|
+
* @param {Number} id The ID of the project phase
|
205
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectPhaseResponse200} and HTTP response
|
206
|
+
*/
|
207
|
+
}, {
|
208
|
+
key: "getProjectsPhaseWithHttpInfo",
|
209
|
+
value: function getProjectsPhaseWithHttpInfo(id) {
|
210
|
+
var opts = {};
|
211
|
+
var postBody = null;
|
212
|
+
|
213
|
+
// verify the required parameter 'id' is set
|
214
|
+
if (id === undefined || id === null) {
|
215
|
+
throw new Error("Missing the required parameter 'id' when calling getProjectsPhase");
|
216
|
+
}
|
217
|
+
var pathParams = {
|
218
|
+
'id': id
|
219
|
+
};
|
220
|
+
var queryParams = {};
|
221
|
+
var headerParams = {};
|
222
|
+
var formParams = {};
|
223
|
+
var formParamArray = [];
|
224
|
+
var contentTypes = [];
|
225
|
+
var isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded');
|
226
|
+
var isJSON = contentTypes.includes('application/json');
|
227
|
+
if (isJSON) {
|
228
|
+
postBody = _objectSpread(_objectSpread({}, postBody), opts);
|
229
|
+
} else if (isURLEncoded) {
|
230
|
+
for (var key in opts) {
|
231
|
+
if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) {
|
232
|
+
formParams[key] = opts[key];
|
233
|
+
}
|
234
|
+
}
|
235
|
+
}
|
236
|
+
var authNames = ['api_key', 'oauth2'];
|
237
|
+
var accepts = ['application/json'];
|
238
|
+
var returnType = _GetProjectPhaseResponse["default"];
|
239
|
+
return this.apiClient.callApi('/projects/phases/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
240
|
+
}
|
241
|
+
|
242
|
+
/**
|
243
|
+
* Get details of a phase
|
244
|
+
* Returns the details of a specific project phase.
|
245
|
+
* @param {Number} id The ID of the project phase
|
246
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectPhaseResponse200}
|
247
|
+
*/
|
248
|
+
}, {
|
249
|
+
key: "getProjectsPhase",
|
250
|
+
value: function getProjectsPhase(id) {
|
251
|
+
return this.getProjectsPhaseWithHttpInfo(id).then(function (response_and_data) {
|
252
|
+
return response_and_data;
|
253
|
+
});
|
254
|
+
}
|
255
|
+
}]);
|
256
|
+
return ProjectTemplatesApi;
|
257
|
+
}();
|
258
|
+
exports["default"] = ProjectTemplatesApi;
|