pipedrive 13.0.10 → 13.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (398) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +19 -16
  3. package/dist/ApiClient.js +46 -9
  4. package/dist/api/ActivitiesApi.js +44 -44
  5. package/dist/api/ActivityTypesApi.js +4 -4
  6. package/dist/api/CallLogsApi.js +23 -6
  7. package/dist/api/CurrenciesApi.js +2 -2
  8. package/dist/api/DealFieldsApi.js +10 -10
  9. package/dist/api/DealsApi.js +114 -102
  10. package/dist/api/FilesApi.js +34 -34
  11. package/dist/api/FiltersApi.js +19 -2
  12. package/dist/api/GlobalMessagesApi.js +8 -8
  13. package/dist/api/GoalsApi.js +54 -54
  14. package/dist/api/ItemSearchApi.js +6 -6
  15. package/dist/api/LeadLabelsApi.js +21 -12
  16. package/dist/api/LeadSourcesApi.js +2 -2
  17. package/dist/api/LeadsApi.js +23 -18
  18. package/dist/api/MailboxApi.js +26 -26
  19. package/dist/api/NoteFieldsApi.js +2 -2
  20. package/dist/api/NotesApi.js +50 -42
  21. package/dist/api/OrganizationFieldsApi.js +10 -10
  22. package/dist/api/OrganizationRelationshipsApi.js +25 -12
  23. package/dist/api/OrganizationsApi.js +60 -52
  24. package/dist/api/PermissionSetsApi.js +12 -12
  25. package/dist/api/PersonFieldsApi.js +10 -10
  26. package/dist/api/PersonsApi.js +90 -82
  27. package/dist/api/PipelinesApi.js +50 -50
  28. package/dist/api/ProductFieldsApi.js +23 -10
  29. package/dist/api/ProductsApi.js +48 -44
  30. package/dist/api/RecentsApi.js +6 -6
  31. package/dist/api/RolesApi.js +38 -38
  32. package/dist/api/StagesApi.js +14 -14
  33. package/dist/api/SubscriptionsApi.js +76 -34
  34. package/dist/api/TeamsApi.js +49 -32
  35. package/dist/api/UserConnectionsApi.js +2 -2
  36. package/dist/api/UserSettingsApi.js +2 -2
  37. package/dist/api/UsersApi.js +44 -44
  38. package/dist/api/WebhooksApi.js +27 -14
  39. package/dist/index.js +24 -0
  40. package/dist/model/ActivityDistributionDataActivityDistribution.js +1 -1
  41. package/dist/model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.js +4 -4
  42. package/dist/model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.js +2 -2
  43. package/dist/model/ActivityInfo.js +5 -5
  44. package/dist/model/ActivityObjectFragment.js +9 -9
  45. package/dist/model/ActivityPostObject.js +32 -32
  46. package/dist/model/ActivityPostObjectAllOf.js +7 -7
  47. package/dist/model/ActivityPutObject.js +32 -32
  48. package/dist/model/ActivityPutObjectAllOf.js +7 -7
  49. package/dist/model/ActivityResponseObject.js +96 -96
  50. package/dist/model/ActivityResponseObjectAllOf.js +39 -39
  51. package/dist/model/ActivityTypeBulkDeleteResponseAllOfData.js +1 -1
  52. package/dist/model/AddDealFollowerRequest.js +2 -2
  53. package/dist/model/AddDealParticipantRequest.js +2 -2
  54. package/dist/model/AddFollowerToPersonResponseAllOfData.js +4 -4
  55. package/dist/model/AddLeadLabelRequest.js +2 -2
  56. package/dist/model/AddLeadRequest.js +9 -9
  57. package/dist/model/AddNoteRequest.js +22 -22
  58. package/dist/model/AddNoteRequestAllOf.js +4 -4
  59. package/dist/model/AddOrganizationRelationshipRequest.js +5 -5
  60. package/dist/model/AddPersonFollowerRequest.js +2 -2
  61. package/dist/model/AddProductAttachmentDetails.js +36 -36
  62. package/dist/model/AddProductAttachmentDetailsAllOf.js +1 -1
  63. package/dist/model/AddProductFollowerRequest.js +2 -2
  64. package/dist/model/AddProductRequestBody.js +12 -12
  65. package/dist/model/AddTeamUserRequest.js +2 -2
  66. package/dist/model/AddWebhookRequest.js +7 -7
  67. package/dist/model/AddedDealFollowerData.js +4 -4
  68. package/dist/model/AdditionalBaseOrganizationItemInfo.js +64 -64
  69. package/dist/model/AdditionalDataWithPagination.js +1 -1
  70. package/dist/model/AdditionalMergePersonInfo.js +60 -60
  71. package/dist/model/AdditionalPersonInfo.js +50 -50
  72. package/dist/model/AllOrganizationRelationshipsGetResponse.js +2 -2
  73. package/dist/model/AllOrganizationRelationshipsGetResponseAllOf.js +1 -1
  74. package/dist/model/AllOrganizationsGetResponse.js +2 -2
  75. package/dist/model/AllOrganizationsGetResponseAllOf.js +1 -1
  76. package/dist/model/Assignee.js +3 -3
  77. package/dist/model/BaseComment.js +7 -7
  78. package/dist/model/BaseCurrency.js +7 -7
  79. package/dist/model/BaseDeal.js +51 -51
  80. package/dist/model/BaseNote.js +14 -14
  81. package/dist/model/BaseNoteDealTitle.js +2 -2
  82. package/dist/model/BaseNoteOrganization.js +2 -2
  83. package/dist/model/BaseNotePerson.js +2 -2
  84. package/dist/model/BaseOrganizationItem.js +86 -86
  85. package/dist/model/BaseOrganizationItemFields.js +11 -11
  86. package/dist/model/BaseOrganizationItemWithEditNameFlag.js +88 -88
  87. package/dist/model/BaseOrganizationItemWithEditNameFlagAllOf.js +1 -1
  88. package/dist/model/BaseOrganizationRelationshipItem.js +5 -5
  89. package/dist/model/BasePersonItem.js +13 -13
  90. package/dist/model/BasePersonItemEmail.js +2 -2
  91. package/dist/model/BasePersonItemPhone.js +3 -3
  92. package/dist/model/BasePipeline.js +8 -8
  93. package/dist/model/BasePipelineWithSelectedFlag.js +18 -18
  94. package/dist/model/BasePipelineWithSelectedFlagAllOf.js +1 -1
  95. package/dist/model/BaseProduct.js +3 -3
  96. package/dist/model/BaseRole.js +3 -3
  97. package/dist/model/BaseStage.js +10 -10
  98. package/dist/model/BaseTeam.js +20 -20
  99. package/dist/model/BaseTeamAdditionalProperties.js +2 -2
  100. package/dist/model/BaseUser.js +19 -19
  101. package/dist/model/BaseUserMe.js +48 -48
  102. package/dist/model/BaseUserMeAllOf.js +5 -5
  103. package/dist/model/BaseUserMeAllOfLanguage.js +1 -1
  104. package/dist/model/BaseWebhook.js +3 -3
  105. package/dist/model/BasicDeal.js +10 -10
  106. package/dist/model/BasicDealProduct.js +6 -6
  107. package/dist/model/BasicGoal.js +6 -6
  108. package/dist/model/BasicOrganization.js +3 -3
  109. package/dist/model/BasicPerson.js +23 -10
  110. package/dist/model/BasicPersonEmail.js +112 -0
  111. package/dist/model/BasicProductField.js +3 -3
  112. package/dist/model/BulkDeleteResponseAllOfData.js +1 -1
  113. package/dist/model/CalculatedFields.js +2 -2
  114. package/dist/model/CallLogObject.js +6 -6
  115. package/dist/model/CommentPostPutObject.js +2 -2
  116. package/dist/model/CreateTeam.js +6 -6
  117. package/dist/model/Currencies.js +1 -1
  118. package/dist/model/DealCountAndActivityInfo.js +26 -26
  119. package/dist/model/DealFlowResponseAllOfData.js +1 -1
  120. package/dist/model/DealListActivitiesResponse.js +2 -2
  121. package/dist/model/DealListActivitiesResponseAllOf.js +1 -1
  122. package/dist/model/DealNonStrict.js +104 -104
  123. package/dist/model/DealNonStrictModeFields.js +1 -1
  124. package/dist/model/DealNonStrictModeFieldsCreatorUserId.js +6 -6
  125. package/dist/model/DealNonStrictWithDetails.js +110 -110
  126. package/dist/model/DealNonStrictWithDetailsAllOf.js +3 -3
  127. package/dist/model/DealNonStrictWithDetailsAllOfAge.js +1 -1
  128. package/dist/model/DealNonStrictWithDetailsAllOfAverageTimeToWon.js +1 -1
  129. package/dist/model/DealNonStrictWithDetailsAllOfStayInPipelineStages.js +3 -3
  130. package/dist/model/DealOrganizationData.js +7 -7
  131. package/dist/model/DealOrganizationDataWithId.js +14 -14
  132. package/dist/model/DealOrganizationDataWithIdAllOf.js +1 -1
  133. package/dist/model/DealParticipantCountInfo.js +2 -2
  134. package/dist/model/DealParticipants.js +1 -1
  135. package/dist/model/DealPersonData.js +10 -10
  136. package/dist/model/DealPersonDataEmail.js +112 -0
  137. package/dist/model/DealPersonDataPhone.js +1 -1
  138. package/dist/model/DealPersonDataWithId.js +17 -17
  139. package/dist/model/DealPersonDataWithIdAllOf.js +1 -1
  140. package/dist/model/DealSearchItemItem.js +8 -8
  141. package/dist/model/DealSearchItemItemOrganization.js +2 -2
  142. package/dist/model/DealSearchItemItemOwner.js +1 -1
  143. package/dist/model/DealSearchItemItemPerson.js +2 -2
  144. package/dist/model/DealSearchItemItemStage.js +2 -2
  145. package/dist/model/DealSearchResponseAllOfData.js +1 -1
  146. package/dist/model/DealStrict.js +112 -112
  147. package/dist/model/DealStrictModeFields.js +5 -5
  148. package/dist/model/DealStrictWithMergeId.js +114 -114
  149. package/dist/model/DealStrictWithMergeIdAllOf.js +1 -1
  150. package/dist/model/DealSummaryPerStages.js +1 -1
  151. package/dist/model/DealTitleParameter.js +1 -1
  152. package/dist/model/DealUserData.js +7 -7
  153. package/dist/model/DealUserDataWithId.js +14 -14
  154. package/dist/model/DealUserDataWithIdAllOf.js +1 -1
  155. package/dist/model/DealsCountAndActivityInfo.js +26 -26
  156. package/dist/model/DealsCountInfo.js +8 -8
  157. package/dist/model/DealsMovementsInfo.js +2 -2
  158. package/dist/model/DealsMovementsInfoFormattedValues.js +2 -2
  159. package/dist/model/DealsMovementsInfoValues.js +2 -2
  160. package/dist/model/DeleteActivitiesResponse200Data.js +1 -1
  161. package/dist/model/DeleteActivityResponse200Data.js +1 -1
  162. package/dist/model/DeleteDealData.js +1 -1
  163. package/dist/model/DeleteDealFollowerData.js +1 -1
  164. package/dist/model/DeleteDealParticipantData.js +1 -1
  165. package/dist/model/DeleteDealProductData.js +2 -2
  166. package/dist/model/DeleteFileData.js +1 -1
  167. package/dist/model/DeleteMultipleDealsData.js +1 -1
  168. package/dist/model/DeleteMultipleProductFieldsResponseData.js +1 -1
  169. package/dist/model/DeletePersonResponseAllOfData.js +1 -1
  170. package/dist/model/DeletePersonsInBulkResponseAllOfData.js +1 -1
  171. package/dist/model/DeleteProductFieldResponseData.js +1 -1
  172. package/dist/model/DeleteProductFollowerResponseData.js +1 -1
  173. package/dist/model/DeleteProductResponseData.js +1 -1
  174. package/dist/model/DeleteResponseAllOfData.js +1 -1
  175. package/dist/model/DeleteRoleAllOfData.js +1 -1
  176. package/dist/model/DeleteRoleAssignmentAllOfData.js +1 -1
  177. package/dist/model/DeleteStageResponse200Data.js +1 -1
  178. package/dist/model/DeleteStagesResponse200Data.js +1 -1
  179. package/dist/model/DeleteTeamUserRequest.js +2 -2
  180. package/dist/model/Duration.js +3 -3
  181. package/dist/model/EditPipeline.js +2 -2
  182. package/dist/model/EditPipelineAllOf.js +1 -1
  183. package/dist/model/EmailInfo.js +2 -2
  184. package/dist/model/ExpectedOutcome.js +3 -3
  185. package/dist/model/Field.js +18 -18
  186. package/dist/model/FieldCreateRequest.js +5 -5
  187. package/dist/model/FieldCreateRequestAllOf.js +3 -3
  188. package/dist/model/FieldUpdateRequest.js +1 -1
  189. package/dist/model/FileData.js +24 -24
  190. package/dist/model/FileItem.js +24 -24
  191. package/dist/model/FiltersPostResponseAllOfData.js +1 -1
  192. package/dist/model/FullRole.js +12 -12
  193. package/dist/model/FullRoleAllOf.js +1 -1
  194. package/dist/model/GetAddProductAttachementDetails.js +1 -1
  195. package/dist/model/GetAddedDeal.js +1 -1
  196. package/dist/model/GetAddedDealAdditionalData.js +1 -1
  197. package/dist/model/GetAllPersonsResponse.js +2 -2
  198. package/dist/model/GetAllPersonsResponseAllOf.js +1 -1
  199. package/dist/model/GetAllProductFieldsResponse.js +2 -2
  200. package/dist/model/GetComments.js +1 -1
  201. package/dist/model/GetDealAdditionalData.js +1 -1
  202. package/dist/model/GetDeals.js +1 -1
  203. package/dist/model/GetDealsConversionRatesInPipelineAllOfData.js +4 -4
  204. package/dist/model/GetDealsMovementsInPipelineAllOfData.js +1 -1
  205. package/dist/model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.js +3 -3
  206. package/dist/model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.js +3 -3
  207. package/dist/model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.js +2 -2
  208. package/dist/model/GetDealsSummaryData.js +6 -6
  209. package/dist/model/GetDealsSummaryDataValuesTotal.js +6 -6
  210. package/dist/model/GetDealsSummaryDataWeightedValuesTotal.js +4 -4
  211. package/dist/model/GetDealsTimelineData.js +1 -1
  212. package/dist/model/GetDealsTimelineDataTotals.js +9 -9
  213. package/dist/model/GetDuplicatedDeal.js +1 -1
  214. package/dist/model/GetLeadSourcesResponse200Data.js +1 -1
  215. package/dist/model/GetNotes.js +1 -1
  216. package/dist/model/GetPersonDetailsResponseAllOfAdditionalData.js +1 -1
  217. package/dist/model/GetProductAttachementDetails.js +1 -1
  218. package/dist/model/GetProductFieldResponse.js +1 -1
  219. package/dist/model/GetRecentsAdditionalData.js +2 -2
  220. package/dist/model/GetRoleAllOfAdditionalData.js +1 -1
  221. package/dist/model/GetRoleAssignments.js +2 -2
  222. package/dist/model/GetRoleAssignmentsAllOf.js +1 -1
  223. package/dist/model/GetRoles.js +2 -2
  224. package/dist/model/GetRolesAllOf.js +1 -1
  225. package/dist/model/GetStageDeals.js +1 -1
  226. package/dist/model/GetStages.js +1 -1
  227. package/dist/model/GlobalMessageData.js +6 -6
  228. package/dist/model/GlobalMessageGet.js +2 -2
  229. package/dist/model/GlobalMessageGetAllOf.js +1 -1
  230. package/dist/model/GlobalMessageUserData.js +3 -3
  231. package/dist/model/GoalResults.js +1 -1
  232. package/dist/model/GoalType.js +2 -2
  233. package/dist/model/GoalsResponseComponent.js +4 -4
  234. package/dist/model/LeadLabelResponse.js +4 -4
  235. package/dist/model/LeadResponse.js +16 -16
  236. package/dist/model/LeadValue.js +1 -1
  237. package/dist/model/ListActivitiesResponse.js +2 -2
  238. package/dist/model/ListActivitiesResponseAllOf.js +1 -1
  239. package/dist/model/ListDealsResponse.js +2 -2
  240. package/dist/model/ListDealsResponseAllOf.js +1 -1
  241. package/dist/model/ListFilesResponse.js +2 -2
  242. package/dist/model/ListFilesResponseAllOf.js +1 -1
  243. package/dist/model/ListFollowersResponse.js +2 -2
  244. package/dist/model/ListFollowersResponseAllOf.js +1 -1
  245. package/dist/model/ListFollowersResponseAllOfData.js +4 -4
  246. package/dist/model/ListMailMessagesResponse.js +2 -2
  247. package/dist/model/ListMailMessagesResponseAllOf.js +1 -1
  248. package/dist/model/ListPermittedUsersResponse1.js +2 -2
  249. package/dist/model/ListPermittedUsersResponse1AllOf.js +1 -1
  250. package/dist/model/ListPermittedUsersResponseAllOfData.js +1 -1
  251. package/dist/model/ListPersonProductsResponse.js +2 -2
  252. package/dist/model/ListPersonProductsResponseAllOf.js +1 -1
  253. package/dist/model/ListPersonsResponse.js +2 -2
  254. package/dist/model/ListPersonsResponseAllOf.js +1 -1
  255. package/dist/model/ListProductAdditionalData.js +10 -10
  256. package/dist/model/ListProductAdditionalDataAllOf.js +5 -5
  257. package/dist/model/ListProductFollowersResponse.js +2 -2
  258. package/dist/model/ListProductFollowersResponseAllOf.js +1 -1
  259. package/dist/model/ListProductFollowersResponseAllOfData.js +4 -4
  260. package/dist/model/ListProductsResponseAllOfData.js +1 -1
  261. package/dist/model/MarketingStatus.js +69 -0
  262. package/dist/model/MergeDealsRequest.js +2 -2
  263. package/dist/model/MergeOrganizationsRequest.js +2 -2
  264. package/dist/model/MergePersonDealRelatedInfo.js +30 -30
  265. package/dist/model/MergePersonItem.js +86 -86
  266. package/dist/model/MergePersonsRequest.js +2 -2
  267. package/dist/model/NewDeal.js +25 -25
  268. package/dist/model/NewDealAllOf.js +1 -1
  269. package/dist/model/NewDealProduct.js +16 -16
  270. package/dist/model/NewDealProductAllOf.js +2 -2
  271. package/dist/model/NewFollowerResponseData.js +4 -4
  272. package/dist/model/NewGoal.js +12 -12
  273. package/dist/model/NewOrganization.js +9 -9
  274. package/dist/model/NewOrganizationAllOf.js +1 -1
  275. package/dist/model/NewPerson.js +40 -21
  276. package/dist/model/NewPersonAllOf.js +1 -1
  277. package/dist/model/NewProductField.js +4 -4
  278. package/dist/model/Note.js +19 -19
  279. package/dist/model/NoteConnectToParams.js +2 -2
  280. package/dist/model/NoteCreatorUser.js +5 -5
  281. package/dist/model/NoteField.js +7 -7
  282. package/dist/model/NoteParams.js +7 -7
  283. package/dist/model/OrganizationAddressInfo.js +11 -11
  284. package/dist/model/OrganizationCountAndAddressInfo.js +38 -38
  285. package/dist/model/OrganizationCountInfo.js +8 -8
  286. package/dist/model/OrganizationData.js +5 -5
  287. package/dist/model/OrganizationDataWithId.js +13 -13
  288. package/dist/model/OrganizationDataWithIdAllOf.js +1 -1
  289. package/dist/model/OrganizationDataWithIdAndActiveFlag.js +15 -15
  290. package/dist/model/OrganizationDataWithIdAndActiveFlagAllOf.js +1 -1
  291. package/dist/model/OrganizationDeleteResponseData.js +1 -1
  292. package/dist/model/OrganizationDetailsGetResponseAllOfAdditionalData.js +1 -1
  293. package/dist/model/OrganizationFlowResponseAllOfData.js +1 -1
  294. package/dist/model/OrganizationFollowerDeleteResponseData.js +1 -1
  295. package/dist/model/OrganizationFollowerItem.js +2 -2
  296. package/dist/model/OrganizationFollowerItemAllOf.js +1 -1
  297. package/dist/model/OrganizationItem.js +88 -88
  298. package/dist/model/OrganizationRelationship.js +1 -1
  299. package/dist/model/OrganizationRelationshipDeleteResponseAllOfData.js +1 -1
  300. package/dist/model/OrganizationRelationshipDetails.js +16 -16
  301. package/dist/model/OrganizationRelationshipWithCalculatedFields.js +14 -14
  302. package/dist/model/OrganizationSearchItemItem.js +5 -5
  303. package/dist/model/OrganizationsDeleteResponseData.js +1 -1
  304. package/dist/model/OrganizationsMergeResponseData.js +1 -1
  305. package/dist/model/Owner.js +12 -12
  306. package/dist/model/Params.js +2 -2
  307. package/dist/model/PaymentItem.js +13 -13
  308. package/dist/model/PermissionSets.js +2 -2
  309. package/dist/model/PermissionSetsAllOf.js +1 -1
  310. package/dist/model/PermissionSetsItem.js +3 -3
  311. package/dist/model/PersonCountAndEmailInfo.js +18 -18
  312. package/dist/model/PersonCountEmailDealAndActivityInfo.js +44 -44
  313. package/dist/model/PersonCountInfo.js +7 -7
  314. package/dist/model/PersonData.js +5 -5
  315. package/dist/model/PersonDataEmail.js +2 -2
  316. package/dist/model/PersonDataPhone.js +2 -2
  317. package/dist/model/PersonDataWithActiveFlag.js +13 -13
  318. package/dist/model/PersonDataWithActiveFlagAllOf.js +1 -1
  319. package/dist/model/PersonFlowResponseAllOfData.js +1 -1
  320. package/dist/model/PersonItem.js +76 -76
  321. package/dist/model/PersonListProduct.js +14 -14
  322. package/dist/model/PersonNameCountAndEmailInfo.js +24 -24
  323. package/dist/model/PersonNameCountAndEmailInfoWithIds.js +30 -30
  324. package/dist/model/PersonNameCountAndEmailInfoWithIdsAllOf.js +3 -3
  325. package/dist/model/PersonNameInfo.js +3 -3
  326. package/dist/model/PersonNameInfoWithOrgAndOwnerId.js +6 -6
  327. package/dist/model/PersonSearchItemItem.js +4 -4
  328. package/dist/model/PersonSearchItemItemOrganization.js +2 -2
  329. package/dist/model/PersonSearchItemItemOwner.js +1 -1
  330. package/dist/model/PictureData.js +2 -2
  331. package/dist/model/PictureDataWithID.js +4 -4
  332. package/dist/model/PictureDataWithValue.js +4 -4
  333. package/dist/model/Pipeline.js +4 -4
  334. package/dist/model/PipelineDetails.js +19 -19
  335. package/dist/model/PostDealParticipants.js +1 -1
  336. package/dist/model/PostRoleAssignmentAllOfData.js +2 -2
  337. package/dist/model/PostRoleSettingsAllOfData.js +1 -1
  338. package/dist/model/PostRolesAllOfData.js +1 -1
  339. package/dist/model/ProductAttachementFields.js +12 -12
  340. package/dist/model/ProductAttachmentDetails.js +35 -35
  341. package/dist/model/ProductBaseDeal.js +42 -42
  342. package/dist/model/ProductField.js +36 -36
  343. package/dist/model/ProductFieldAllOf.js +15 -15
  344. package/dist/model/ProductListItem.js +21 -21
  345. package/dist/model/ProductRequest.js +6 -6
  346. package/dist/model/ProductSearchItemItem.js +5 -5
  347. package/dist/model/ProductSearchItemItemOwner.js +1 -1
  348. package/dist/model/ProductWithArrayPrices.js +6 -6
  349. package/dist/model/ProductWithObjectPrices.js +6 -6
  350. package/dist/model/ProductsResponse.js +1 -1
  351. package/dist/model/RecentDataProduct.js +15 -15
  352. package/dist/model/RelatedDealDataDEALID.js +8 -8
  353. package/dist/model/RelatedOrganizationName.js +1 -1
  354. package/dist/model/RelatedPersonData.js +1 -1
  355. package/dist/model/RelationshipOrganizationInfoItem.js +12 -12
  356. package/dist/model/RelationshipOrganizationInfoItemAllOf.js +1 -1
  357. package/dist/model/RelationshipOrganizationInfoItemWithActiveFlag.js +14 -14
  358. package/dist/model/RequredTitleParameter.js +2 -2
  359. package/dist/model/ResponseCallLogObject.js +14 -14
  360. package/dist/model/ResponseCallLogObjectAllOf.js +1 -1
  361. package/dist/model/RoleAssignment.js +11 -11
  362. package/dist/model/RoleAssignmentAllOf.js +3 -3
  363. package/dist/model/RoleSettings.js +10 -10
  364. package/dist/model/RolesAdditionalData.js +1 -1
  365. package/dist/model/RolesAdditionalDataPagination.js +1 -1
  366. package/dist/model/SinglePermissionSetsItem.js +8 -8
  367. package/dist/model/SinglePermissionSetsItemAllOf.js +1 -1
  368. package/dist/model/Stage.js +5 -5
  369. package/dist/model/StageConversions.js +3 -3
  370. package/dist/model/StageDetails.js +21 -21
  371. package/dist/model/StageWithPipelineInfo.js +24 -24
  372. package/dist/model/StageWithPipelineInfoAllOf.js +2 -2
  373. package/dist/model/SubRole.js +10 -10
  374. package/dist/model/SubRoleAllOf.js +3 -3
  375. package/dist/model/SubscriptionInstallmentCreateRequest.js +5 -5
  376. package/dist/model/SubscriptionInstallmentUpdateRequest.js +1 -1
  377. package/dist/model/SubscriptionItem.js +15 -15
  378. package/dist/model/SubscriptionRecurringCancelRequest.js +1 -1
  379. package/dist/model/SubscriptionRecurringCreateRequest.js +14 -14
  380. package/dist/model/SubscriptionRecurringUpdateRequest.js +3 -3
  381. package/dist/model/TeamId.js +1 -1
  382. package/dist/model/UpdateDealRequest.js +22 -22
  383. package/dist/model/UpdateLeadLabelRequest.js +1 -1
  384. package/dist/model/UpdateLeadRequest.js +9 -9
  385. package/dist/model/UpdateStageRequest.js +10 -10
  386. package/dist/model/UpdateTeam.js +14 -14
  387. package/dist/model/UpdateTeamAllOf.js +2 -2
  388. package/dist/model/UpdateTeamWithAdditionalProperties.js +18 -18
  389. package/dist/model/UserAssignmentToPermissionSet.js +4 -4
  390. package/dist/model/UserAssignmentsToPermissionSet.js +2 -2
  391. package/dist/model/UserAssignmentsToPermissionSetAllOf.js +1 -1
  392. package/dist/model/UserData.js +6 -6
  393. package/dist/model/UserDataWithId.js +12 -12
  394. package/dist/model/UserIDs.js +2 -2
  395. package/dist/model/UserIDsAllOf.js +1 -1
  396. package/dist/model/UserPermissionsItem.js +31 -31
  397. package/dist/model/UserSettingsItem.js +5 -5
  398. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -8,6 +8,24 @@ For public Changelog covering all changes done to Pipedrive’s API, webhooks an
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## 13.1.1
12
+ ### Changed
13
+ - Changed person-related endpoints to include `marketing_status` body parameter: `POST /v1/persons`, `PUT /v1/persons/{id}`
14
+
15
+ ## 13.1.0
16
+ ### Fixed
17
+ - Fixed runtime error for `FilesApi.addFile`
18
+ - Fixed missing required parameters check
19
+ - Fixed camelCase support for application/json endpoints
20
+
21
+ ## 13.0.12
22
+ ### Fixed
23
+ - Fixed capitalization, punctuation, grammar, articles in all endpoint descriptions
24
+
25
+ ## 13.0.11
26
+ ### Added
27
+ - Added leadField to field_type options for `GET /v1/itemSearch/field`
28
+
11
29
  ## 13.0.10
12
30
  ### Fixed
13
31
  - Fix `POST /organizationRelationships` 'required' labels not showing
package/README.md CHANGED
@@ -264,18 +264,18 @@ All URIs are relative to *https://api.pipedrive.com/v1*
264
264
 
265
265
  Class | Method | HTTP request | Description
266
266
  ------------ | ------------- | ------------- | -------------
267
- *Pipedrive.ActivitiesApi* | [**addActivity**](docs/ActivitiesApi.md#addActivity) | **POST** /activities | Add an Activity
268
- *Pipedrive.ActivitiesApi* | [**deleteActivities**](docs/ActivitiesApi.md#deleteActivities) | **DELETE** /activities | Delete multiple Activities in bulk
269
- *Pipedrive.ActivitiesApi* | [**deleteActivity**](docs/ActivitiesApi.md#deleteActivity) | **DELETE** /activities/{id} | Delete an Activity
270
- *Pipedrive.ActivitiesApi* | [**getActivities**](docs/ActivitiesApi.md#getActivities) | **GET** /activities | Get all Activities assigned to a particular User
271
- *Pipedrive.ActivitiesApi* | [**getActivity**](docs/ActivitiesApi.md#getActivity) | **GET** /activities/{id} | Get details of an Activity
272
- *Pipedrive.ActivitiesApi* | [**updateActivity**](docs/ActivitiesApi.md#updateActivity) | **PUT** /activities/{id} | Edit an Activity
267
+ *Pipedrive.ActivitiesApi* | [**addActivity**](docs/ActivitiesApi.md#addActivity) | **POST** /activities | Add an activity
268
+ *Pipedrive.ActivitiesApi* | [**deleteActivities**](docs/ActivitiesApi.md#deleteActivities) | **DELETE** /activities | Delete multiple activities in bulk
269
+ *Pipedrive.ActivitiesApi* | [**deleteActivity**](docs/ActivitiesApi.md#deleteActivity) | **DELETE** /activities/{id} | Delete an activity
270
+ *Pipedrive.ActivitiesApi* | [**getActivities**](docs/ActivitiesApi.md#getActivities) | **GET** /activities | Get all activities assigned to a particular user
271
+ *Pipedrive.ActivitiesApi* | [**getActivity**](docs/ActivitiesApi.md#getActivity) | **GET** /activities/{id} | Get details of an activity
272
+ *Pipedrive.ActivitiesApi* | [**updateActivity**](docs/ActivitiesApi.md#updateActivity) | **PUT** /activities/{id} | Update an activity
273
273
  *Pipedrive.ActivityFieldsApi* | [**getActivityFields**](docs/ActivityFieldsApi.md#getActivityFields) | **GET** /activityFields | Get all activity fields
274
274
  *Pipedrive.ActivityTypesApi* | [**addActivityType**](docs/ActivityTypesApi.md#addActivityType) | **POST** /activityTypes | Add new ActivityType
275
275
  *Pipedrive.ActivityTypesApi* | [**deleteActivityType**](docs/ActivityTypesApi.md#deleteActivityType) | **DELETE** /activityTypes/{id} | Delete an ActivityType
276
276
  *Pipedrive.ActivityTypesApi* | [**deleteActivityTypes**](docs/ActivityTypesApi.md#deleteActivityTypes) | **DELETE** /activityTypes | Delete multiple ActivityTypes in bulk
277
277
  *Pipedrive.ActivityTypesApi* | [**getActivityTypes**](docs/ActivityTypesApi.md#getActivityTypes) | **GET** /activityTypes | Get all ActivityTypes
278
- *Pipedrive.ActivityTypesApi* | [**updateActivityType**](docs/ActivityTypesApi.md#updateActivityType) | **PUT** /activityTypes/{id} | Edit an ActivityType
278
+ *Pipedrive.ActivityTypesApi* | [**updateActivityType**](docs/ActivityTypesApi.md#updateActivityType) | **PUT** /activityTypes/{id} | Update an ActivityType
279
279
  *Pipedrive.CallLogsApi* | [**addCallLog**](docs/CallLogsApi.md#addCallLog) | **POST** /callLogs | Add a call log
280
280
  *Pipedrive.CallLogsApi* | [**addCallLogAudioFile**](docs/CallLogsApi.md#addCallLogAudioFile) | **POST** /callLogs/{id}/recordings | Attach an audio file to the call log
281
281
  *Pipedrive.CallLogsApi* | [**deleteCallLog**](docs/CallLogsApi.md#deleteCallLog) | **DELETE** /callLogs/{id} | Delete a call log
@@ -395,9 +395,9 @@ Class | Method | HTTP request | Description
395
395
  *Pipedrive.OrganizationsApi* | [**mergeOrganizations**](docs/OrganizationsApi.md#mergeOrganizations) | **PUT** /organizations/{id}/merge | Merge two organizations
396
396
  *Pipedrive.OrganizationsApi* | [**searchOrganization**](docs/OrganizationsApi.md#searchOrganization) | **GET** /organizations/search | Search organizations
397
397
  *Pipedrive.OrganizationsApi* | [**updateOrganization**](docs/OrganizationsApi.md#updateOrganization) | **PUT** /organizations/{id} | Update an organization
398
- *Pipedrive.PermissionSetsApi* | [**getPermissionSet**](docs/PermissionSetsApi.md#getPermissionSet) | **GET** /permissionSets/{id} | Get one Permission Set
399
- *Pipedrive.PermissionSetsApi* | [**getPermissionSetAssignments**](docs/PermissionSetsApi.md#getPermissionSetAssignments) | **GET** /permissionSets/{id}/assignments | List Permission Set assignments
400
- *Pipedrive.PermissionSetsApi* | [**getPermissionSets**](docs/PermissionSetsApi.md#getPermissionSets) | **GET** /permissionSets | Get all Permission Sets
398
+ *Pipedrive.PermissionSetsApi* | [**getPermissionSet**](docs/PermissionSetsApi.md#getPermissionSet) | **GET** /permissionSets/{id} | Get one permission set
399
+ *Pipedrive.PermissionSetsApi* | [**getPermissionSetAssignments**](docs/PermissionSetsApi.md#getPermissionSetAssignments) | **GET** /permissionSets/{id}/assignments | List permission set assignments
400
+ *Pipedrive.PermissionSetsApi* | [**getPermissionSets**](docs/PermissionSetsApi.md#getPermissionSets) | **GET** /permissionSets | Get all permission sets
401
401
  *Pipedrive.PersonFieldsApi* | [**addPersonField**](docs/PersonFieldsApi.md#addPersonField) | **POST** /personFields | Add a new person field
402
402
  *Pipedrive.PersonFieldsApi* | [**deletePersonField**](docs/PersonFieldsApi.md#deletePersonField) | **DELETE** /personFields/{id} | Delete a person field
403
403
  *Pipedrive.PersonFieldsApi* | [**deletePersonFields**](docs/PersonFieldsApi.md#deletePersonFields) | **DELETE** /personFields | Delete multiple person fields in bulk
@@ -408,7 +408,7 @@ Class | Method | HTTP request | Description
408
408
  *Pipedrive.PersonsApi* | [**addPersonFollower**](docs/PersonsApi.md#addPersonFollower) | **POST** /persons/{id}/followers | Add a follower to a person
409
409
  *Pipedrive.PersonsApi* | [**addPersonPicture**](docs/PersonsApi.md#addPersonPicture) | **POST** /persons/{id}/picture | Add person picture
410
410
  *Pipedrive.PersonsApi* | [**deletePerson**](docs/PersonsApi.md#deletePerson) | **DELETE** /persons/{id} | Delete a person
411
- *Pipedrive.PersonsApi* | [**deletePersonFollower**](docs/PersonsApi.md#deletePersonFollower) | **DELETE** /persons/{id}/followers/{follower_id} | Deletes a follower from a person.
411
+ *Pipedrive.PersonsApi* | [**deletePersonFollower**](docs/PersonsApi.md#deletePersonFollower) | **DELETE** /persons/{id}/followers/{follower_id} | Delete a follower from a person
412
412
  *Pipedrive.PersonsApi* | [**deletePersonPicture**](docs/PersonsApi.md#deletePersonPicture) | **DELETE** /persons/{id}/picture | Delete person picture
413
413
  *Pipedrive.PersonsApi* | [**deletePersons**](docs/PersonsApi.md#deletePersons) | **DELETE** /persons | Delete multiple persons in bulk
414
414
  *Pipedrive.PersonsApi* | [**getPerson**](docs/PersonsApi.md#getPerson) | **GET** /persons/{id} | Get details of a person
@@ -431,7 +431,7 @@ Class | Method | HTTP request | Description
431
431
  *Pipedrive.PipelinesApi* | [**getPipelineDeals**](docs/PipelinesApi.md#getPipelineDeals) | **GET** /pipelines/{id}/deals | Get deals in a pipeline
432
432
  *Pipedrive.PipelinesApi* | [**getPipelineMovementStatistics**](docs/PipelinesApi.md#getPipelineMovementStatistics) | **GET** /pipelines/{id}/movement_statistics | Get deals movements in pipeline
433
433
  *Pipedrive.PipelinesApi* | [**getPipelines**](docs/PipelinesApi.md#getPipelines) | **GET** /pipelines | Get all pipelines
434
- *Pipedrive.PipelinesApi* | [**updatePipeline**](docs/PipelinesApi.md#updatePipeline) | **PUT** /pipelines/{id} | Edit a pipeline
434
+ *Pipedrive.PipelinesApi* | [**updatePipeline**](docs/PipelinesApi.md#updatePipeline) | **PUT** /pipelines/{id} | Update a pipeline
435
435
  *Pipedrive.ProductFieldsApi* | [**addProductField**](docs/ProductFieldsApi.md#addProductField) | **POST** /productFields | Add a new product field
436
436
  *Pipedrive.ProductFieldsApi* | [**deleteProductField**](docs/ProductFieldsApi.md#deleteProductField) | **DELETE** /productFields/{id} | Delete a product field
437
437
  *Pipedrive.ProductFieldsApi* | [**deleteProductFields**](docs/ProductFieldsApi.md#deleteProductFields) | **DELETE** /productFields | Delete multiple product fields in bulk
@@ -475,7 +475,7 @@ Class | Method | HTTP request | Description
475
475
  *Pipedrive.SubscriptionsApi* | [**deleteSubscription**](docs/SubscriptionsApi.md#deleteSubscription) | **DELETE** /subscriptions/{id} | Delete a subscription
476
476
  *Pipedrive.SubscriptionsApi* | [**findSubscriptionByDeal**](docs/SubscriptionsApi.md#findSubscriptionByDeal) | **GET** /subscriptions/find/{dealId} | Find subscription by deal
477
477
  *Pipedrive.SubscriptionsApi* | [**getSubscription**](docs/SubscriptionsApi.md#getSubscription) | **GET** /subscriptions/{id} | Get details of a subscription
478
- *Pipedrive.SubscriptionsApi* | [**getSubscriptionPayments**](docs/SubscriptionsApi.md#getSubscriptionPayments) | **GET** /subscriptions/{id}/payments | Get all payments of a Subscription
478
+ *Pipedrive.SubscriptionsApi* | [**getSubscriptionPayments**](docs/SubscriptionsApi.md#getSubscriptionPayments) | **GET** /subscriptions/{id}/payments | Get all payments of a subscription
479
479
  *Pipedrive.SubscriptionsApi* | [**updateRecurringSubscription**](docs/SubscriptionsApi.md#updateRecurringSubscription) | **PUT** /subscriptions/recurring/{id} | Update a recurring subscription
480
480
  *Pipedrive.SubscriptionsApi* | [**updateSubscriptionInstallment**](docs/SubscriptionsApi.md#updateSubscriptionInstallment) | **PUT** /subscriptions/installment/{id} | Update an installment subscription
481
481
  *Pipedrive.TeamsApi* | [**addTeam**](docs/TeamsApi.md#addTeam) | **POST** /teams | Add a new team
@@ -500,9 +500,9 @@ Class | Method | HTTP request | Description
500
500
  *Pipedrive.UsersApi* | [**getUserRoleSettings**](docs/UsersApi.md#getUserRoleSettings) | **GET** /users/{id}/roleSettings | List user role settings
501
501
  *Pipedrive.UsersApi* | [**getUsers**](docs/UsersApi.md#getUsers) | **GET** /users | Get all users
502
502
  *Pipedrive.UsersApi* | [**updateUser**](docs/UsersApi.md#updateUser) | **PUT** /users/{id} | Update user details
503
- *Pipedrive.WebhooksApi* | [**addWebhook**](docs/WebhooksApi.md#addWebhook) | **POST** /webhooks | Create a new webhook
504
- *Pipedrive.WebhooksApi* | [**deleteWebhook**](docs/WebhooksApi.md#deleteWebhook) | **DELETE** /webhooks/{id} | Delete existing webhook
505
- *Pipedrive.WebhooksApi* | [**getWebhooks**](docs/WebhooksApi.md#getWebhooks) | **GET** /webhooks | Get all webhooks
503
+ *Pipedrive.WebhooksApi* | [**addWebhook**](docs/WebhooksApi.md#addWebhook) | **POST** /webhooks | Create a new Webhook
504
+ *Pipedrive.WebhooksApi* | [**deleteWebhook**](docs/WebhooksApi.md#deleteWebhook) | **DELETE** /webhooks/{id} | Delete existing Webhook
505
+ *Pipedrive.WebhooksApi* | [**getWebhooks**](docs/WebhooksApi.md#getWebhooks) | **GET** /webhooks | Get all Webhooks
506
506
 
507
507
 
508
508
  ## Documentation for Models
@@ -617,6 +617,7 @@ Class | Method | HTTP request | Description
617
617
  - [Pipedrive.BasicGoal](docs/BasicGoal.md)
618
618
  - [Pipedrive.BasicOrganization](docs/BasicOrganization.md)
619
619
  - [Pipedrive.BasicPerson](docs/BasicPerson.md)
620
+ - [Pipedrive.BasicPersonEmail](docs/BasicPersonEmail.md)
620
621
  - [Pipedrive.BasicProductField](docs/BasicProductField.md)
621
622
  - [Pipedrive.BulkDeleteResponse](docs/BulkDeleteResponse.md)
622
623
  - [Pipedrive.BulkDeleteResponseAllOf](docs/BulkDeleteResponseAllOf.md)
@@ -656,6 +657,7 @@ Class | Method | HTTP request | Description
656
657
  - [Pipedrive.DealParticipantCountInfo](docs/DealParticipantCountInfo.md)
657
658
  - [Pipedrive.DealParticipants](docs/DealParticipants.md)
658
659
  - [Pipedrive.DealPersonData](docs/DealPersonData.md)
660
+ - [Pipedrive.DealPersonDataEmail](docs/DealPersonDataEmail.md)
659
661
  - [Pipedrive.DealPersonDataPhone](docs/DealPersonDataPhone.md)
660
662
  - [Pipedrive.DealPersonDataWithId](docs/DealPersonDataWithId.md)
661
663
  - [Pipedrive.DealPersonDataWithIdAllOf](docs/DealPersonDataWithIdAllOf.md)
@@ -923,6 +925,7 @@ Class | Method | HTTP request | Description
923
925
  - [Pipedrive.MailThreadParticipant](docs/MailThreadParticipant.md)
924
926
  - [Pipedrive.MailThreadPut](docs/MailThreadPut.md)
925
927
  - [Pipedrive.MailThreadPutAllOf](docs/MailThreadPutAllOf.md)
928
+ - [Pipedrive.MarketingStatus](docs/MarketingStatus.md)
926
929
  - [Pipedrive.MergeDealsRequest](docs/MergeDealsRequest.md)
927
930
  - [Pipedrive.MergeOrganizationsRequest](docs/MergeOrganizationsRequest.md)
928
931
  - [Pipedrive.MergePersonDealRelatedInfo](docs/MergePersonDealRelatedInfo.md)
package/dist/ApiClient.js CHANGED
@@ -21,6 +21,8 @@ var _superagent = _interopRequireDefault(require("superagent"));
21
21
 
22
22
  var _querystring = _interopRequireDefault(require("querystring"));
23
23
 
24
+ var _lodash = require("lodash");
25
+
24
26
  var _UnauthorizedException = _interopRequireDefault(require("./exceptions/UnauthorizedException"));
25
27
 
26
28
  var _OAuthProviderException = _interopRequireDefault(require("./exceptions/OAuthProviderException"));
@@ -471,12 +473,14 @@ var ApiClient = /*#__PURE__*/function () {
471
473
  contentType,
472
474
  _formParams,
473
475
  key,
476
+ normalizeBodyParams,
474
477
  accept,
475
478
  response,
476
479
  shouldRefreshTokenAndRetry,
477
480
  _exception,
478
481
  _exception2,
479
482
  exception,
483
+ exceptionMessage,
480
484
  data,
481
485
  _args = arguments;
482
486
 
@@ -542,7 +546,8 @@ var ApiClient = /*#__PURE__*/function () {
542
546
  request.type('application/json');
543
547
  }
544
548
 
545
- request.send(bodyParam);
549
+ normalizeBodyParams = this.replaceCamelCaseObj(bodyParam);
550
+ request.send(normalizeBodyParams);
546
551
  }
547
552
 
548
553
  accept = this.jsonPreferredMime(accepts);
@@ -581,7 +586,7 @@ var ApiClient = /*#__PURE__*/function () {
581
586
 
582
587
  case 23:
583
588
  response = _context.sent;
584
- _context.next = 51;
589
+ _context.next = 52;
585
590
  break;
586
591
 
587
592
  case 26:
@@ -636,17 +641,18 @@ var ApiClient = /*#__PURE__*/function () {
636
641
 
637
642
  case 45:
638
643
  exception = new _FailResponseException["default"]();
639
- exception.message = _context.t0.response.res.statusMessage;
644
+ exceptionMessage = _context.t0.response && _context.t0.response.res.statusMessage || _context.t0.message;
645
+ exception.message = exceptionMessage;
640
646
  exception.errorCode = _context.t0.status;
641
647
 
642
- if (_context.t0.response.body.error_info) {
648
+ if (_context.t0.response && _context.t0.response.body.error_info) {
643
649
  exception.errorInfo = _context.t0.response.body.error_info;
644
650
  }
645
651
 
646
652
  exception.context = _context.t0.response;
647
653
  throw exception;
648
654
 
649
- case 51:
655
+ case 52:
650
656
  data = this.deserialize(response, returnType);
651
657
 
652
658
  if (this.enableCookies && typeof window === 'undefined') {
@@ -655,7 +661,7 @@ var ApiClient = /*#__PURE__*/function () {
655
661
 
656
662
  return _context.abrupt("return", data);
657
663
 
658
- case 54:
664
+ case 55:
659
665
  case "end":
660
666
  return _context.stop();
661
667
  }
@@ -663,17 +669,48 @@ var ApiClient = /*#__PURE__*/function () {
663
669
  }, _callee, this, [[20, 26]]);
664
670
  }));
665
671
 
666
- function callApi(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9, _x10, _x11, _x12) {
672
+ function callApi(_x2, _x3, _x4, _x5, _x6, _x7, _x8, _x9, _x10, _x11, _x12, _x13) {
667
673
  return _callApi.apply(this, arguments);
668
674
  }
669
675
 
670
676
  return callApi;
671
677
  }()
672
678
  /**
679
+ * Converts CamelCase attributes of an object to snake_case and returns it
680
+ */
681
+
682
+ }, {
683
+ key: "replaceCamelCaseObj",
684
+ value: function (_replaceCamelCaseObj) {
685
+ function replaceCamelCaseObj(_x) {
686
+ return _replaceCamelCaseObj.apply(this, arguments);
687
+ }
688
+
689
+ replaceCamelCaseObj.toString = function () {
690
+ return _replaceCamelCaseObj.toString();
691
+ };
692
+
693
+ return replaceCamelCaseObj;
694
+ }(function (obj) {
695
+ var snakeCased = {};
696
+
697
+ for (var key in obj) {
698
+ var keyValue = obj[key];
699
+ var isArray = Array.isArray(keyValue);
700
+ var isObject = (0, _typeof2["default"])(keyValue) === 'object' && !isArray;
701
+ if (isArray) keyValue = keyValue.map(function (kv) {
702
+ return (0, _typeof2["default"])(kv) === 'object' ? replaceCamelCaseObj(kv) : kv;
703
+ });
704
+ snakeCased[(0, _lodash.snakeCase)(key)] = isObject ? replaceCamelCaseObj(keyValue) : keyValue;
705
+ }
706
+
707
+ return snakeCased;
708
+ }
709
+ /**
673
710
  * Checks whether the API supports oauth2 type authorization.
674
711
  * @returns {Boolean} Whether oauth2 type authorization is supported by the API.
675
712
  */
676
-
713
+ )
677
714
  }, {
678
715
  key: "isOauth2Supported",
679
716
  value: function isOauth2Supported() {
@@ -797,7 +834,7 @@ var ApiClient = /*#__PURE__*/function () {
797
834
  }, _callee2, this, [[10, 18]]);
798
835
  }));
799
836
 
800
- function authorize(_x13) {
837
+ function authorize(_x14) {
801
838
  return _authorize.apply(this, arguments);
802
839
  }
803
840
 
@@ -55,8 +55,8 @@ var ActivitiesApi = /*#__PURE__*/function () {
55
55
  this.apiClient = apiClient || _ApiClient["default"].instance;
56
56
  }
57
57
  /**
58
- * Add an Activity
59
- * Adds a new Activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone Activities scheduled with the same Deal, Person or Organization (depending on the supplied data). For more information on how to add an Activity, see <a href=\"https://pipedrive.readme.io/docs/adding-an-activity\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
58
+ * Add an activity
59
+ * Adds a new activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information on how to add an activity, see <a href=\"https://pipedrive.readme.io/docs/adding-an-activity\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
60
60
  * @param {Object} opts Optional parameters
61
61
  * @param {module:model/ActivityPostObject} opts.activityPostObject
62
62
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddActivityResponse200} and HTTP response
@@ -93,8 +93,8 @@ var ActivitiesApi = /*#__PURE__*/function () {
93
93
  return this.apiClient.callApi('/activities', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
94
94
  }
95
95
  /**
96
- * Add an Activity
97
- * Adds a new Activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone Activities scheduled with the same Deal, Person or Organization (depending on the supplied data). For more information on how to add an Activity, see <a href=\"https://pipedrive.readme.io/docs/adding-an-activity\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
96
+ * Add an activity
97
+ * Adds a new activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information on how to add an activity, see <a href=\"https://pipedrive.readme.io/docs/adding-an-activity\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
98
98
  * @param {Object} opts Optional parameters
99
99
  * @param {module:model/ActivityPostObject} opts.activityPostObject
100
100
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddActivityResponse200}
@@ -108,9 +108,9 @@ var ActivitiesApi = /*#__PURE__*/function () {
108
108
  });
109
109
  }
110
110
  /**
111
- * Delete multiple Activities in bulk
112
- * Marks multiple Activities as deleted
113
- * @param {String} ids Comma-separated IDs of Activities that will be deleted
111
+ * Delete multiple activities in bulk
112
+ * Marks multiple activities as deleted.
113
+ * @param {String} ids The comma-separated IDs of activities that will be deleted
114
114
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteActivitiesResponse200} and HTTP response
115
115
  */
116
116
 
@@ -151,9 +151,9 @@ var ActivitiesApi = /*#__PURE__*/function () {
151
151
  return this.apiClient.callApi('/activities', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
152
152
  }
153
153
  /**
154
- * Delete multiple Activities in bulk
155
- * Marks multiple Activities as deleted
156
- * @param {String} ids Comma-separated IDs of Activities that will be deleted
154
+ * Delete multiple activities in bulk
155
+ * Marks multiple activities as deleted.
156
+ * @param {String} ids The comma-separated IDs of activities that will be deleted
157
157
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteActivitiesResponse200}
158
158
  */
159
159
 
@@ -165,9 +165,9 @@ var ActivitiesApi = /*#__PURE__*/function () {
165
165
  });
166
166
  }
167
167
  /**
168
- * Delete an Activity
169
- * Deletes an Activity
170
- * @param {Number} id The ID of the Activity
168
+ * Delete an activity
169
+ * Marks an activity as deleted.
170
+ * @param {Number} id The ID of the activity
171
171
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteActivityResponse200} and HTTP response
172
172
  */
173
173
 
@@ -208,9 +208,9 @@ var ActivitiesApi = /*#__PURE__*/function () {
208
208
  return this.apiClient.callApi('/activities/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
209
209
  }
210
210
  /**
211
- * Delete an Activity
212
- * Deletes an Activity
213
- * @param {Number} id The ID of the Activity
211
+ * Delete an activity
212
+ * Marks an activity as deleted.
213
+ * @param {Number} id The ID of the activity
214
214
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteActivityResponse200}
215
215
  */
216
216
 
@@ -222,17 +222,17 @@ var ActivitiesApi = /*#__PURE__*/function () {
222
222
  });
223
223
  }
224
224
  /**
225
- * Get all Activities assigned to a particular User
226
- * Returns all Activities assigned to a particular User.
225
+ * Get all activities assigned to a particular user
226
+ * Returns all activities assigned to a particular user.
227
227
  * @param {Object} opts Optional parameters
228
- * @param {Number} opts.userId The ID of the User whose Activities will be fetched. If omitted, the User associated with the API token will be used. If 0, Activities for all company Users will be fetched based on the permission sets.
229
- * @param {Number} opts.filterId The ID of the Filter to use (will narrow down results if used together with `user_id` parameter)
230
- * @param {String} opts.type Type of the Activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes.
228
+ * @param {Number} opts.userId The ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets.
229
+ * @param {Number} opts.filterId The ID of the filter to use (will narrow down results if used together with `user_id` parameter)
230
+ * @param {String} opts.type The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes.
231
231
  * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
232
232
  * @param {Number} opts.start For pagination, the position that represents the first result for the page
233
- * @param {Date} opts.startDate Use the Activity due date where you wish to begin fetching Activities from. Insert due date in YYYY-MM-DD format.
234
- * @param {Date} opts.endDate Use the Activity due date where you wish to stop fetching Activities from. Insert due date in YYYY-MM-DD format.
235
- * @param {module:model/NumberBoolean} opts.done Whether the Activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities.
233
+ * @param {Date} opts.startDate Use the activity due date where you wish to begin fetching activities from. Insert due date in YYYY-MM-DD format.
234
+ * @param {Date} opts.endDate Use the activity due date where you wish to stop fetching activities from. Insert due date in YYYY-MM-DD format.
235
+ * @param {module:model/NumberBoolean} opts.done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both done and not done activities.
236
236
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetActivitiesResponse200} and HTTP response
237
237
  */
238
238
 
@@ -275,17 +275,17 @@ var ActivitiesApi = /*#__PURE__*/function () {
275
275
  return this.apiClient.callApi('/activities', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
276
276
  }
277
277
  /**
278
- * Get all Activities assigned to a particular User
279
- * Returns all Activities assigned to a particular User.
278
+ * Get all activities assigned to a particular user
279
+ * Returns all activities assigned to a particular user.
280
280
  * @param {Object} opts Optional parameters
281
- * @param {Number} opts.userId The ID of the User whose Activities will be fetched. If omitted, the User associated with the API token will be used. If 0, Activities for all company Users will be fetched based on the permission sets.
282
- * @param {Number} opts.filterId The ID of the Filter to use (will narrow down results if used together with `user_id` parameter)
283
- * @param {String} opts.type Type of the Activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes.
281
+ * @param {Number} opts.userId The ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets.
282
+ * @param {Number} opts.filterId The ID of the filter to use (will narrow down results if used together with `user_id` parameter)
283
+ * @param {String} opts.type The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes.
284
284
  * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
285
285
  * @param {Number} opts.start For pagination, the position that represents the first result for the page
286
- * @param {Date} opts.startDate Use the Activity due date where you wish to begin fetching Activities from. Insert due date in YYYY-MM-DD format.
287
- * @param {Date} opts.endDate Use the Activity due date where you wish to stop fetching Activities from. Insert due date in YYYY-MM-DD format.
288
- * @param {module:model/NumberBoolean} opts.done Whether the Activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities.
286
+ * @param {Date} opts.startDate Use the activity due date where you wish to begin fetching activities from. Insert due date in YYYY-MM-DD format.
287
+ * @param {Date} opts.endDate Use the activity due date where you wish to stop fetching activities from. Insert due date in YYYY-MM-DD format.
288
+ * @param {module:model/NumberBoolean} opts.done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both done and not done activities.
289
289
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetActivitiesResponse200}
290
290
  */
291
291
 
@@ -297,9 +297,9 @@ var ActivitiesApi = /*#__PURE__*/function () {
297
297
  });
298
298
  }
299
299
  /**
300
- * Get details of an Activity
301
- * Returns details of a specific Activity
302
- * @param {Number} id The ID of the Activity
300
+ * Get details of an activity
301
+ * Returns the details of a specific activity.
302
+ * @param {Number} id The ID of the activity
303
303
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetActivityResponse200} and HTTP response
304
304
  */
305
305
 
@@ -340,9 +340,9 @@ var ActivitiesApi = /*#__PURE__*/function () {
340
340
  return this.apiClient.callApi('/activities/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
341
341
  }
342
342
  /**
343
- * Get details of an Activity
344
- * Returns details of a specific Activity
345
- * @param {Number} id The ID of the Activity
343
+ * Get details of an activity
344
+ * Returns the details of a specific activity.
345
+ * @param {Number} id The ID of the activity
346
346
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetActivityResponse200}
347
347
  */
348
348
 
@@ -354,9 +354,9 @@ var ActivitiesApi = /*#__PURE__*/function () {
354
354
  });
355
355
  }
356
356
  /**
357
- * Edit an Activity
358
- * Modifies an Activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same Deal, Person or Organization (depending on the supplied data).
359
- * @param {Number} id The ID of the Activity
357
+ * Update an activity
358
+ * Updates an activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data).
359
+ * @param {Number} id The ID of the activity
360
360
  * @param {Object} opts Optional parameters
361
361
  * @param {module:model/ActivityPutObject} opts.activityPutObject
362
362
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateActivityResponse200} and HTTP response
@@ -399,9 +399,9 @@ var ActivitiesApi = /*#__PURE__*/function () {
399
399
  return this.apiClient.callApi('/activities/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
400
400
  }
401
401
  /**
402
- * Edit an Activity
403
- * Modifies an Activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same Deal, Person or Organization (depending on the supplied data).
404
- * @param {Number} id The ID of the Activity
402
+ * Update an activity
403
+ * Updates an activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data).
404
+ * @param {Number} id The ID of the activity
405
405
  * @param {Object} opts Optional parameters
406
406
  * @param {module:model/ActivityPutObject} opts.activityPutObject
407
407
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateActivityResponse200}
@@ -175,7 +175,7 @@ var ActivityTypesApi = /*#__PURE__*/function () {
175
175
  /**
176
176
  * Delete multiple ActivityTypes in bulk
177
177
  * Marks multiple ActivityTypes as deleted.
178
- * @param {String} ids Comma-separated ActivityType IDs
178
+ * @param {String} ids The comma-separated ActivityType IDs
179
179
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ActivityTypeBulkDeleteResponse} and HTTP response
180
180
  */
181
181
 
@@ -218,7 +218,7 @@ var ActivityTypesApi = /*#__PURE__*/function () {
218
218
  /**
219
219
  * Delete multiple ActivityTypes in bulk
220
220
  * Marks multiple ActivityTypes as deleted.
221
- * @param {String} ids Comma-separated ActivityType IDs
221
+ * @param {String} ids The comma-separated ActivityType IDs
222
222
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ActivityTypeBulkDeleteResponse}
223
223
  */
224
224
 
@@ -278,7 +278,7 @@ var ActivityTypesApi = /*#__PURE__*/function () {
278
278
  });
279
279
  }
280
280
  /**
281
- * Edit an ActivityType
281
+ * Update an ActivityType
282
282
  * Updates an ActivityType.
283
283
  * @param {Number} id The ID of the ActivityType
284
284
  * @param {Object} opts Optional parameters
@@ -331,7 +331,7 @@ var ActivityTypesApi = /*#__PURE__*/function () {
331
331
  return this.apiClient.callApi('/activityTypes/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
332
332
  }
333
333
  /**
334
- * Edit an ActivityType
334
+ * Update an ActivityType
335
335
  * Updates an ActivityType.
336
336
  * @param {Number} id The ID of the ActivityType
337
337
  * @param {Object} opts Optional parameters
@@ -54,7 +54,7 @@ var CallLogsApi = /*#__PURE__*/function () {
54
54
  }
55
55
  /**
56
56
  * Add a call log
57
- * Adds a new call log
57
+ * Adds a new call log.
58
58
  * @param {Object} opts Optional parameters
59
59
  * @param {module:model/CallLogObject} opts.callLogObject
60
60
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BaseResponse} and HTTP response
@@ -66,6 +66,23 @@ var CallLogsApi = /*#__PURE__*/function () {
66
66
  value: function addCallLogWithHttpInfo(opts) {
67
67
  opts = opts || {};
68
68
  var postBody = opts['callLogObject'];
69
+
70
+ if (opts['outcome'] === undefined || opts['outcome'] === null) {
71
+ throw new Error("Missing the required parameter 'outcome' when calling addCallLog");
72
+ }
73
+
74
+ if (opts['to_phone_number'] === undefined || opts['to_phone_number'] === null) {
75
+ throw new Error("Missing the required parameter 'to_phone_number' when calling addCallLog");
76
+ }
77
+
78
+ if (opts['start_time'] === undefined || opts['start_time'] === null) {
79
+ throw new Error("Missing the required parameter 'start_time' when calling addCallLog");
80
+ }
81
+
82
+ if (opts['end_time'] === undefined || opts['end_time'] === null) {
83
+ throw new Error("Missing the required parameter 'end_time' when calling addCallLog");
84
+ }
85
+
69
86
  var pathParams = {};
70
87
  var queryParams = {};
71
88
  var headerParams = {};
@@ -92,7 +109,7 @@ var CallLogsApi = /*#__PURE__*/function () {
92
109
  }
93
110
  /**
94
111
  * Add a call log
95
- * Adds a new call log
112
+ * Adds a new call log.
96
113
  * @param {Object} opts Optional parameters
97
114
  * @param {module:model/CallLogObject} opts.callLogObject
98
115
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BaseResponse}
@@ -230,7 +247,7 @@ var CallLogsApi = /*#__PURE__*/function () {
230
247
  }
231
248
  /**
232
249
  * Get details of a call log
233
- * Returns details of a specific call log
250
+ * Returns details of a specific call log.
234
251
  * @param {String} id The ID received when you create the call log
235
252
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BaseResponse} and HTTP response
236
253
  */
@@ -273,7 +290,7 @@ var CallLogsApi = /*#__PURE__*/function () {
273
290
  }
274
291
  /**
275
292
  * Get details of a call log
276
- * Returns details of a specific call log
293
+ * Returns details of a specific call log.
277
294
  * @param {String} id The ID received when you create the call log
278
295
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BaseResponse}
279
296
  */
@@ -287,7 +304,7 @@ var CallLogsApi = /*#__PURE__*/function () {
287
304
  }
288
305
  /**
289
306
  * Get all call logs assigned to a particular user
290
- * Returns all call logs assigned to a particular user
307
+ * Returns all call logs assigned to a particular user.
291
308
  * @param {Object} opts Optional parameters
292
309
  * @param {Number} opts.start Pagination start (default to 0)
293
310
  * @param {Number} opts.limit Items shown per page
@@ -328,7 +345,7 @@ var CallLogsApi = /*#__PURE__*/function () {
328
345
  }
329
346
  /**
330
347
  * Get all call logs assigned to a particular user
331
- * Returns all call logs assigned to a particular user
348
+ * Returns all call logs assigned to a particular user.
332
349
  * @param {Object} opts Optional parameters
333
350
  * @param {Number} opts.start Pagination start (default to 0)
334
351
  * @param {Number} opts.limit Items shown per page
@@ -42,7 +42,7 @@ var CurrenciesApi = /*#__PURE__*/function () {
42
42
  * Get all supported currencies
43
43
  * Returns all supported currencies in given account which should be used when saving monetary values with other objects. The `code` parameter of the returning objects is the currency code according to ISO 4217 for all non-custom currencies.
44
44
  * @param {Object} opts Optional parameters
45
- * @param {String} opts.term Optional search term that is searched for from currency's name and/or code.
45
+ * @param {String} opts.term Optional search term that is searched for from currency's name and/or code
46
46
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Currencies} and HTTP response
47
47
  */
48
48
 
@@ -82,7 +82,7 @@ var CurrenciesApi = /*#__PURE__*/function () {
82
82
  * Get all supported currencies
83
83
  * Returns all supported currencies in given account which should be used when saving monetary values with other objects. The `code` parameter of the returning objects is the currency code according to ISO 4217 for all non-custom currencies.
84
84
  * @param {Object} opts Optional parameters
85
- * @param {String} opts.term Optional search term that is searched for from currency's name and/or code.
85
+ * @param {String} opts.term Optional search term that is searched for from currency's name and/or code
86
86
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Currencies}
87
87
  */
88
88