pipedrive 13.0.9 → 13.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +18 -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 +112 -100
  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 +58 -50
  24. package/dist/api/PermissionSetsApi.js +12 -12
  25. package/dist/api/PersonFieldsApi.js +10 -10
  26. package/dist/api/PersonsApi.js +82 -74
  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 +16 -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 +6 -39
  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 +10 -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/MergeDealsRequest.js +2 -2
  262. package/dist/model/MergeOrganizationsRequest.js +2 -2
  263. package/dist/model/MergePersonDealRelatedInfo.js +30 -30
  264. package/dist/model/MergePersonItem.js +86 -86
  265. package/dist/model/MergePersonsRequest.js +2 -2
  266. package/dist/model/NewDeal.js +25 -25
  267. package/dist/model/NewDealAllOf.js +1 -1
  268. package/dist/model/NewDealProduct.js +16 -16
  269. package/dist/model/NewDealProductAllOf.js +2 -2
  270. package/dist/model/NewFollowerResponseData.js +4 -4
  271. package/dist/model/NewGoal.js +12 -12
  272. package/dist/model/NewOrganization.js +9 -9
  273. package/dist/model/NewOrganizationAllOf.js +1 -1
  274. package/dist/model/NewPerson.js +20 -20
  275. package/dist/model/NewPersonAllOf.js +1 -1
  276. package/dist/model/NewProductField.js +4 -4
  277. package/dist/model/Note.js +19 -19
  278. package/dist/model/NoteConnectToParams.js +2 -2
  279. package/dist/model/NoteCreatorUser.js +5 -5
  280. package/dist/model/NoteField.js +7 -7
  281. package/dist/model/NoteParams.js +7 -7
  282. package/dist/model/OrganizationAddressInfo.js +11 -11
  283. package/dist/model/OrganizationCountAndAddressInfo.js +38 -38
  284. package/dist/model/OrganizationCountInfo.js +8 -8
  285. package/dist/model/OrganizationData.js +5 -5
  286. package/dist/model/OrganizationDataWithId.js +13 -13
  287. package/dist/model/OrganizationDataWithIdAllOf.js +1 -1
  288. package/dist/model/OrganizationDataWithIdAndActiveFlag.js +15 -15
  289. package/dist/model/OrganizationDataWithIdAndActiveFlagAllOf.js +1 -1
  290. package/dist/model/OrganizationDeleteResponseData.js +1 -1
  291. package/dist/model/OrganizationDetailsGetResponseAllOfAdditionalData.js +1 -1
  292. package/dist/model/OrganizationFlowResponseAllOfData.js +1 -1
  293. package/dist/model/OrganizationFollowerDeleteResponseData.js +1 -1
  294. package/dist/model/OrganizationFollowerItem.js +2 -2
  295. package/dist/model/OrganizationFollowerItemAllOf.js +1 -1
  296. package/dist/model/OrganizationItem.js +88 -88
  297. package/dist/model/OrganizationRelationship.js +1 -1
  298. package/dist/model/OrganizationRelationshipDeleteResponseAllOfData.js +1 -1
  299. package/dist/model/OrganizationRelationshipDetails.js +16 -16
  300. package/dist/model/OrganizationRelationshipWithCalculatedFields.js +14 -14
  301. package/dist/model/OrganizationSearchItemItem.js +5 -5
  302. package/dist/model/OrganizationsDeleteResponseData.js +1 -1
  303. package/dist/model/OrganizationsMergeResponseData.js +1 -1
  304. package/dist/model/Owner.js +12 -12
  305. package/dist/model/Params.js +2 -2
  306. package/dist/model/PaymentItem.js +13 -13
  307. package/dist/model/PermissionSets.js +2 -2
  308. package/dist/model/PermissionSetsAllOf.js +1 -1
  309. package/dist/model/PermissionSetsItem.js +3 -3
  310. package/dist/model/PersonCountAndEmailInfo.js +18 -18
  311. package/dist/model/PersonCountEmailDealAndActivityInfo.js +44 -44
  312. package/dist/model/PersonCountInfo.js +7 -7
  313. package/dist/model/PersonData.js +5 -5
  314. package/dist/model/PersonDataEmail.js +2 -2
  315. package/dist/model/PersonDataPhone.js +2 -2
  316. package/dist/model/PersonDataWithActiveFlag.js +13 -13
  317. package/dist/model/PersonDataWithActiveFlagAllOf.js +1 -1
  318. package/dist/model/PersonFlowResponseAllOfData.js +1 -1
  319. package/dist/model/PersonItem.js +76 -76
  320. package/dist/model/PersonListProduct.js +14 -14
  321. package/dist/model/PersonNameCountAndEmailInfo.js +24 -24
  322. package/dist/model/PersonNameCountAndEmailInfoWithIds.js +30 -30
  323. package/dist/model/PersonNameCountAndEmailInfoWithIdsAllOf.js +3 -3
  324. package/dist/model/PersonNameInfo.js +3 -3
  325. package/dist/model/PersonNameInfoWithOrgAndOwnerId.js +6 -6
  326. package/dist/model/PersonSearchItemItem.js +4 -4
  327. package/dist/model/PersonSearchItemItemOrganization.js +2 -2
  328. package/dist/model/PersonSearchItemItemOwner.js +1 -1
  329. package/dist/model/PictureData.js +2 -2
  330. package/dist/model/PictureDataWithID.js +4 -4
  331. package/dist/model/PictureDataWithValue.js +4 -4
  332. package/dist/model/Pipeline.js +4 -4
  333. package/dist/model/PipelineDetails.js +19 -19
  334. package/dist/model/PostDealParticipants.js +1 -1
  335. package/dist/model/PostRoleAssignmentAllOfData.js +2 -2
  336. package/dist/model/PostRoleSettingsAllOfData.js +1 -1
  337. package/dist/model/PostRolesAllOfData.js +1 -1
  338. package/dist/model/ProductAttachementFields.js +12 -12
  339. package/dist/model/ProductAttachmentDetails.js +35 -35
  340. package/dist/model/ProductBaseDeal.js +42 -42
  341. package/dist/model/ProductField.js +36 -36
  342. package/dist/model/ProductFieldAllOf.js +15 -15
  343. package/dist/model/ProductListItem.js +21 -21
  344. package/dist/model/ProductRequest.js +6 -6
  345. package/dist/model/ProductSearchItemItem.js +5 -5
  346. package/dist/model/ProductSearchItemItemOwner.js +1 -1
  347. package/dist/model/ProductWithArrayPrices.js +6 -6
  348. package/dist/model/ProductWithObjectPrices.js +6 -6
  349. package/dist/model/ProductsResponse.js +1 -1
  350. package/dist/model/RecentDataProduct.js +15 -15
  351. package/dist/model/RelatedDealDataDEALID.js +8 -8
  352. package/dist/model/RelatedOrganizationName.js +1 -1
  353. package/dist/model/RelatedPersonData.js +1 -1
  354. package/dist/model/RelationshipOrganizationInfoItem.js +12 -12
  355. package/dist/model/RelationshipOrganizationInfoItemAllOf.js +1 -1
  356. package/dist/model/RelationshipOrganizationInfoItemWithActiveFlag.js +14 -14
  357. package/dist/model/RequredTitleParameter.js +2 -2
  358. package/dist/model/ResponseCallLogObject.js +14 -14
  359. package/dist/model/ResponseCallLogObjectAllOf.js +1 -1
  360. package/dist/model/RoleAssignment.js +11 -11
  361. package/dist/model/RoleAssignmentAllOf.js +3 -3
  362. package/dist/model/RoleSettings.js +10 -10
  363. package/dist/model/RolesAdditionalData.js +1 -1
  364. package/dist/model/RolesAdditionalDataPagination.js +1 -1
  365. package/dist/model/SinglePermissionSetsItem.js +8 -8
  366. package/dist/model/SinglePermissionSetsItemAllOf.js +1 -1
  367. package/dist/model/Stage.js +5 -5
  368. package/dist/model/StageConversions.js +3 -3
  369. package/dist/model/StageDetails.js +21 -21
  370. package/dist/model/StageWithPipelineInfo.js +24 -24
  371. package/dist/model/StageWithPipelineInfoAllOf.js +2 -2
  372. package/dist/model/SubRole.js +10 -10
  373. package/dist/model/SubRoleAllOf.js +3 -3
  374. package/dist/model/SubscriptionInstallmentCreateRequest.js +5 -5
  375. package/dist/model/SubscriptionInstallmentUpdateRequest.js +1 -1
  376. package/dist/model/SubscriptionItem.js +15 -15
  377. package/dist/model/SubscriptionRecurringCancelRequest.js +1 -1
  378. package/dist/model/SubscriptionRecurringCreateRequest.js +14 -14
  379. package/dist/model/SubscriptionRecurringUpdateRequest.js +3 -3
  380. package/dist/model/TeamId.js +1 -1
  381. package/dist/model/UpdateDealRequest.js +22 -22
  382. package/dist/model/UpdateLeadLabelRequest.js +1 -1
  383. package/dist/model/UpdateLeadRequest.js +9 -9
  384. package/dist/model/UpdateStageRequest.js +10 -10
  385. package/dist/model/UpdateTeam.js +14 -14
  386. package/dist/model/UpdateTeamAllOf.js +2 -2
  387. package/dist/model/UpdateTeamWithAdditionalProperties.js +18 -18
  388. package/dist/model/UserAssignmentToPermissionSet.js +4 -4
  389. package/dist/model/UserAssignmentsToPermissionSet.js +2 -2
  390. package/dist/model/UserAssignmentsToPermissionSetAllOf.js +1 -1
  391. package/dist/model/UserData.js +6 -6
  392. package/dist/model/UserDataWithId.js +12 -12
  393. package/dist/model/UserIDs.js +2 -2
  394. package/dist/model/UserIDsAllOf.js +1 -1
  395. package/dist/model/UserPermissionsItem.js +31 -31
  396. package/dist/model/UserSettingsItem.js +5 -5
  397. package/package.json +3 -2
@@ -54,14 +54,14 @@ var FilesApi = /*#__PURE__*/function () {
54
54
  }
55
55
  /**
56
56
  * Add file
57
- * Lets you upload a file and associate it with Deal, Person, Organization, Activity or Product. For more information on how to add a file, see <a href=\"https://pipedrive.readme.io/docs/adding-a-file\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
58
- * @param {File} file A single file, supplied in the multipart/form-data encoding and contained within the given boundaries.
57
+ * Lets you upload a file and associate it with deal, person, organization, activity or product. For more information on how to add a file, see <a href=\"https://pipedrive.readme.io/docs/adding-a-file\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
58
+ * @param {File} file A single file, supplied in the multipart/form-data encoding and contained within the given boundaries
59
59
  * @param {Object} opts Optional parameters
60
- * @param {Number} opts.dealId ID of the deal to associate file(s) with
61
- * @param {Number} opts.personId ID of the person to associate file(s) with
62
- * @param {Number} opts.orgId ID of the organization to associate file(s) with
63
- * @param {Number} opts.productId ID of the product to associate file(s) with
64
- * @param {Number} opts.activityId ID of the activity to associate file(s) with
60
+ * @param {Number} opts.dealId The ID of the deal to associate file(s) with
61
+ * @param {Number} opts.personId The ID of the person to associate file(s) with
62
+ * @param {Number} opts.orgId The ID of the organization to associate file(s) with
63
+ * @param {Number} opts.productId The ID of the product to associate file(s) with
64
+ * @param {Number} opts.activityId The ID of the activity to associate file(s) with
65
65
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddFile} and HTTP response
66
66
  */
67
67
 
@@ -109,14 +109,14 @@ var FilesApi = /*#__PURE__*/function () {
109
109
  }
110
110
  /**
111
111
  * Add file
112
- * Lets you upload a file and associate it with Deal, Person, Organization, Activity or Product. For more information on how to add a file, see <a href=\"https://pipedrive.readme.io/docs/adding-a-file\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
113
- * @param {File} file A single file, supplied in the multipart/form-data encoding and contained within the given boundaries.
112
+ * Lets you upload a file and associate it with deal, person, organization, activity or product. For more information on how to add a file, see <a href=\"https://pipedrive.readme.io/docs/adding-a-file\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
113
+ * @param {File} file A single file, supplied in the multipart/form-data encoding and contained within the given boundaries
114
114
  * @param {Object} opts Optional parameters
115
- * @param {Number} opts.dealId ID of the deal to associate file(s) with
116
- * @param {Number} opts.personId ID of the person to associate file(s) with
117
- * @param {Number} opts.orgId ID of the organization to associate file(s) with
118
- * @param {Number} opts.productId ID of the product to associate file(s) with
119
- * @param {Number} opts.activityId ID of the activity to associate file(s) with
115
+ * @param {Number} opts.dealId The ID of the deal to associate file(s) with
116
+ * @param {Number} opts.personId The ID of the person to associate file(s) with
117
+ * @param {Number} opts.orgId The ID of the organization to associate file(s) with
118
+ * @param {Number} opts.productId The ID of the product to associate file(s) with
119
+ * @param {Number} opts.activityId The ID of the activity to associate file(s) with
120
120
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddFile}
121
121
  */
122
122
 
@@ -133,7 +133,7 @@ var FilesApi = /*#__PURE__*/function () {
133
133
  * @param {module:model/String} fileType The file type
134
134
  * @param {String} title The title of the file
135
135
  * @param {module:model/String} itemType The item type
136
- * @param {Number} itemId ID of the item to associate the file with
136
+ * @param {Number} itemId The ID of the item to associate the file with
137
137
  * @param {module:model/String} remoteLocation The location type to send the file to. Only `googledrive` is supported at the moment.
138
138
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateRemoteFileAndLinkItToItem} and HTTP response
139
139
  */
@@ -204,7 +204,7 @@ var FilesApi = /*#__PURE__*/function () {
204
204
  * @param {module:model/String} fileType The file type
205
205
  * @param {String} title The title of the file
206
206
  * @param {module:model/String} itemType The item type
207
- * @param {Number} itemId ID of the item to associate the file with
207
+ * @param {Number} itemId The ID of the item to associate the file with
208
208
  * @param {module:model/String} remoteLocation The location type to send the file to. Only `googledrive` is supported at the moment.
209
209
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateRemoteFileAndLinkItToItem}
210
210
  */
@@ -219,7 +219,7 @@ var FilesApi = /*#__PURE__*/function () {
219
219
  /**
220
220
  * Delete a file
221
221
  * Marks a file as deleted.
222
- * @param {Number} id ID of the file
222
+ * @param {Number} id The ID of the file
223
223
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteFile} and HTTP response
224
224
  */
225
225
 
@@ -262,7 +262,7 @@ var FilesApi = /*#__PURE__*/function () {
262
262
  /**
263
263
  * Delete a file
264
264
  * Marks a file as deleted.
265
- * @param {Number} id ID of the file
265
+ * @param {Number} id The ID of the file
266
266
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteFile}
267
267
  */
268
268
 
@@ -276,7 +276,7 @@ var FilesApi = /*#__PURE__*/function () {
276
276
  /**
277
277
  * Download one file
278
278
  * Initializes a file download.
279
- * @param {Number} id ID of the file
279
+ * @param {Number} id The ID of the file
280
280
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Blob} and HTTP response
281
281
  */
282
282
 
@@ -319,7 +319,7 @@ var FilesApi = /*#__PURE__*/function () {
319
319
  /**
320
320
  * Download one file
321
321
  * Initializes a file download.
322
- * @param {Number} id ID of the file
322
+ * @param {Number} id The ID of the file
323
323
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Blob}
324
324
  */
325
325
 
@@ -333,7 +333,7 @@ var FilesApi = /*#__PURE__*/function () {
333
333
  /**
334
334
  * Get one file
335
335
  * Returns data about a specific file.
336
- * @param {Number} id ID of the file
336
+ * @param {Number} id The ID of the file
337
337
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOneFile} and HTTP response
338
338
  */
339
339
 
@@ -376,7 +376,7 @@ var FilesApi = /*#__PURE__*/function () {
376
376
  /**
377
377
  * Get one file
378
378
  * Returns data about a specific file.
379
- * @param {Number} id ID of the file
379
+ * @param {Number} id The ID of the file
380
380
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOneFile}
381
381
  */
382
382
 
@@ -394,7 +394,7 @@ var FilesApi = /*#__PURE__*/function () {
394
394
  * @param {Number} opts.start Pagination start (default to 0)
395
395
  * @param {Number} opts.limit Items shown per page
396
396
  * @param {module:model/NumberBoolean} opts.includeDeletedFiles When enabled, the list of files will also include deleted files. Please note that trying to download these files will not work.
397
- * @param {String} opts.sort Field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: id, user_id, deal_id, person_id, org_id, product_id, add_time, update_time, file_name, file_type, file_size, comment.
397
+ * @param {String} opts.sort The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: id, user_id, deal_id, person_id, org_id, product_id, add_time, update_time, file_name, file_type, file_size, comment.
398
398
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAllFiles} and HTTP response
399
399
  */
400
400
 
@@ -439,7 +439,7 @@ var FilesApi = /*#__PURE__*/function () {
439
439
  * @param {Number} opts.start Pagination start (default to 0)
440
440
  * @param {Number} opts.limit Items shown per page
441
441
  * @param {module:model/NumberBoolean} opts.includeDeletedFiles When enabled, the list of files will also include deleted files. Please note that trying to download these files will not work.
442
- * @param {String} opts.sort Field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: id, user_id, deal_id, person_id, org_id, product_id, add_time, update_time, file_name, file_type, file_size, comment.
442
+ * @param {String} opts.sort The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: id, user_id, deal_id, person_id, org_id, product_id, add_time, update_time, file_name, file_type, file_size, comment.
443
443
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAllFiles}
444
444
  */
445
445
 
@@ -454,8 +454,8 @@ var FilesApi = /*#__PURE__*/function () {
454
454
  * Link a remote file to an item
455
455
  * Links an existing remote file (`googledrive`) to the item you supply. For more information on how to link a remote file, see <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
456
456
  * @param {module:model/String} itemType The item type
457
- * @param {Number} itemId ID of the item to associate the file with
458
- * @param {String} remoteId The remote item id
457
+ * @param {Number} itemId The ID of the item to associate the file with
458
+ * @param {String} remoteId The remote item ID
459
459
  * @param {module:model/String} remoteLocation The location type to send the file to. Only `googledrive` is supported at the moment.
460
460
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/LinkRemoteFileToItem} and HTTP response
461
461
  */
@@ -518,8 +518,8 @@ var FilesApi = /*#__PURE__*/function () {
518
518
  * Link a remote file to an item
519
519
  * Links an existing remote file (`googledrive`) to the item you supply. For more information on how to link a remote file, see <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
520
520
  * @param {module:model/String} itemType The item type
521
- * @param {Number} itemId ID of the item to associate the file with
522
- * @param {String} remoteId The remote item id
521
+ * @param {Number} itemId The ID of the item to associate the file with
522
+ * @param {String} remoteId The remote item ID
523
523
  * @param {module:model/String} remoteLocation The location type to send the file to. Only `googledrive` is supported at the moment.
524
524
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LinkRemoteFileToItem}
525
525
  */
@@ -534,10 +534,10 @@ var FilesApi = /*#__PURE__*/function () {
534
534
  /**
535
535
  * Update file details
536
536
  * Updates the properties of a file.
537
- * @param {Number} id ID of the file
537
+ * @param {Number} id The ID of the file
538
538
  * @param {Object} opts Optional parameters
539
- * @param {String} opts.name Visible name of the file
540
- * @param {String} opts.description Description of the file
539
+ * @param {String} opts.name The visible name of the file
540
+ * @param {String} opts.description The description of the file
541
541
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateFile} and HTTP response
542
542
  */
543
543
 
@@ -583,10 +583,10 @@ var FilesApi = /*#__PURE__*/function () {
583
583
  /**
584
584
  * Update file details
585
585
  * Updates the properties of a file.
586
- * @param {Number} id ID of the file
586
+ * @param {Number} id The ID of the file
587
587
  * @param {Object} opts Optional parameters
588
- * @param {String} opts.name Visible name of the file
589
- * @param {String} opts.description Description of the file
588
+ * @param {String} opts.name The visible name of the file
589
+ * @param {String} opts.description The description of the file
590
590
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateFile}
591
591
  */
592
592
 
@@ -66,6 +66,19 @@ var FiltersApi = /*#__PURE__*/function () {
66
66
  value: function addFilterWithHttpInfo(opts) {
67
67
  opts = opts || {};
68
68
  var postBody = opts['addFilterRequest'];
69
+
70
+ if (opts['name'] === undefined || opts['name'] === null) {
71
+ throw new Error("Missing the required parameter 'name' when calling addFilter");
72
+ }
73
+
74
+ if (opts['conditions'] === undefined || opts['conditions'] === null) {
75
+ throw new Error("Missing the required parameter 'conditions' when calling addFilter");
76
+ }
77
+
78
+ if (opts['type'] === undefined || opts['type'] === null) {
79
+ throw new Error("Missing the required parameter 'type' when calling addFilter");
80
+ }
81
+
69
82
  var pathParams = {};
70
83
  var queryParams = {};
71
84
  var headerParams = {};
@@ -165,7 +178,7 @@ var FiltersApi = /*#__PURE__*/function () {
165
178
  /**
166
179
  * Delete multiple filters in bulk
167
180
  * Marks multiple filters as deleted.
168
- * @param {String} ids Comma-separated filter IDs to delete
181
+ * @param {String} ids The comma-separated filter IDs to delete
169
182
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FiltersBulkDeleteResponse} and HTTP response
170
183
  */
171
184
 
@@ -208,7 +221,7 @@ var FiltersApi = /*#__PURE__*/function () {
208
221
  /**
209
222
  * Delete multiple filters in bulk
210
223
  * Marks multiple filters as deleted.
211
- * @param {String} ids Comma-separated filter IDs to delete
224
+ * @param {String} ids The comma-separated filter IDs to delete
212
225
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FiltersBulkDeleteResponse}
213
226
  */
214
227
 
@@ -397,6 +410,10 @@ var FiltersApi = /*#__PURE__*/function () {
397
410
  throw new Error("Missing the required parameter 'id' when calling updateFilter");
398
411
  }
399
412
 
413
+ if (opts['conditions'] === undefined || opts['conditions'] === null) {
414
+ throw new Error("Missing the required parameter 'conditions' when calling updateFilter");
415
+ }
416
+
400
417
  var pathParams = {
401
418
  'id': id
402
419
  };
@@ -42,8 +42,8 @@ var GlobalMessagesApi = /*#__PURE__*/function () {
42
42
  }
43
43
  /**
44
44
  * Dismiss a global message
45
- * Removes global message from being shown, if message is dismissible
46
- * @param {Number} id ID of global message to be dismissed.
45
+ * Removes a global message from being shown if the message is dismissible.
46
+ * @param {Number} id The ID of the global message to be dismissed
47
47
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GlobalMessageDelete} and HTTP response
48
48
  */
49
49
 
@@ -86,8 +86,8 @@ var GlobalMessagesApi = /*#__PURE__*/function () {
86
86
  }
87
87
  /**
88
88
  * Dismiss a global message
89
- * Removes global message from being shown, if message is dismissible
90
- * @param {Number} id ID of global message to be dismissed.
89
+ * Removes a global message from being shown if the message is dismissible.
90
+ * @param {Number} id The ID of the global message to be dismissed
91
91
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GlobalMessageDelete}
92
92
  */
93
93
 
@@ -100,9 +100,9 @@ var GlobalMessagesApi = /*#__PURE__*/function () {
100
100
  }
101
101
  /**
102
102
  * Get global messages
103
- * Returns data about global messages to display for the authorized user.
103
+ * Returns data about the global messages to display for the authorized user.
104
104
  * @param {Object} opts Optional parameters
105
- * @param {Number} opts.limit Number of messages to get from 1 to 100. The message number 1 is returned by default. (default to 1)
105
+ * @param {Number} opts.limit The number of messages to get from 1 to 100. The message number 1 is returned by default. (default to 1)
106
106
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GlobalMessageGet} and HTTP response
107
107
  */
108
108
 
@@ -139,9 +139,9 @@ var GlobalMessagesApi = /*#__PURE__*/function () {
139
139
  }
140
140
  /**
141
141
  * Get global messages
142
- * Returns data about global messages to display for the authorized user.
142
+ * Returns data about the global messages to display for the authorized user.
143
143
  * @param {Object} opts Optional parameters
144
- * @param {Number} opts.limit Number of messages to get from 1 to 100. The message number 1 is returned by default. (default to 1)
144
+ * @param {Number} opts.limit The number of messages to get from 1 to 100. The message number 1 is returned by default. (default to 1)
145
145
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GlobalMessageGet}
146
146
  */
147
147
 
@@ -101,8 +101,8 @@ var GoalsApi = /*#__PURE__*/function () {
101
101
  }
102
102
  /**
103
103
  * Delete existing goal
104
- * Marks goal as deleted.
105
- * @param {String} id ID of the goal to be deleted.
104
+ * Marks a goal as deleted.
105
+ * @param {String} id The ID of the goal to be deleted
106
106
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteGoalResponse200} and HTTP response
107
107
  */
108
108
 
@@ -144,8 +144,8 @@ var GoalsApi = /*#__PURE__*/function () {
144
144
  }
145
145
  /**
146
146
  * Delete existing goal
147
- * Marks goal as deleted.
148
- * @param {String} id ID of the goal to be deleted.
147
+ * Marks a goal as deleted.
148
+ * @param {String} id The ID of the goal to be deleted
149
149
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteGoalResponse200}
150
150
  */
151
151
 
@@ -158,10 +158,10 @@ var GoalsApi = /*#__PURE__*/function () {
158
158
  }
159
159
  /**
160
160
  * Get result of a goal
161
- * Gets progress of a goal for specified period.
162
- * @param {String} id ID of the goal that the results are looked for.
163
- * @param {Date} periodStart Start date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD. This date must be the same or after the goal duration start date.
164
- * @param {Date} periodEnd End date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD. This date must be the same or before the goal duration end date.
161
+ * Gets the progress of a goal for the specified period.
162
+ * @param {String} id The ID of the goal that the results are looked for
163
+ * @param {Date} periodStart The start date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD. This date must be the same or after the goal duration start date.
164
+ * @param {Date} periodEnd The end date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD. This date must be the same or before the goal duration end date.
165
165
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetGoalResultResponse200} and HTTP response
166
166
  */
167
167
 
@@ -216,10 +216,10 @@ var GoalsApi = /*#__PURE__*/function () {
216
216
  }
217
217
  /**
218
218
  * Get result of a goal
219
- * Gets progress of a goal for specified period.
220
- * @param {String} id ID of the goal that the results are looked for.
221
- * @param {Date} periodStart Start date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD. This date must be the same or after the goal duration start date.
222
- * @param {Date} periodEnd End date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD. This date must be the same or before the goal duration end date.
219
+ * Gets the progress of a goal for the specified period.
220
+ * @param {String} id The ID of the goal that the results are looked for
221
+ * @param {Date} periodStart The start date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD. This date must be the same or after the goal duration start date.
222
+ * @param {Date} periodEnd The end date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD. This date must be the same or before the goal duration end date.
223
223
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetGoalResultResponse200}
224
224
  */
225
225
 
@@ -234,19 +234,19 @@ var GoalsApi = /*#__PURE__*/function () {
234
234
  * Find goals
235
235
  * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
236
236
  * @param {Object} opts Optional parameters
237
- * @param {module:model/String} opts.typeName Type of the goal. If provided, everyone's goals will be returned.
238
- * @param {String} opts.title Title of the goal.
239
- * @param {module:model/Boolean} opts.isActive Whether goal is active or not. (default to true)
240
- * @param {Number} opts.assigneeId ID of the user who's goal to fetch. When omitted, only your goals will be returned.
241
- * @param {module:model/String} opts.assigneeType Type of the goal's assignee. If provided, everyone's goals will be returned.
242
- * @param {Number} opts.expectedOutcomeTarget Numeric value of the outcome. If provided, everyone's goals will be returned.
243
- * @param {module:model/String} opts.expectedOutcomeTrackingMetric Tracking metric of the expected outcome of the goal. If provided, everyone's goals will be returned.
244
- * @param {Number} opts.expectedOutcomeCurrencyId Numeric ID of the goal's currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone's goals will be returned.
245
- * @param {Number} opts.typeParamsPipelineId ID of the pipeline or `null` for all pipelines. If provided, everyone's goals will be returned.
246
- * @param {Number} opts.typeParamsStageId ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone's goals will be returned.
247
- * @param {Number} opts.typeParamsActivityTypeId ID of the activity type. Applicable to only `activities_completed` or `activities_added` types of goals. If provided, everyone's goals will be returned.
248
- * @param {Date} opts.periodStart Start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too.
249
- * @param {Date} opts.periodEnd End date of the period for which to find goals. Date in format of YYYY-MM-DD.
237
+ * @param {module:model/String} opts.typeName The type of the goal. If provided, everyone's goals will be returned.
238
+ * @param {String} opts.title The title of the goal
239
+ * @param {module:model/Boolean} opts.isActive Whether the goal is active or not (default to true)
240
+ * @param {Number} opts.assigneeId The ID of the user who's goal to fetch. When omitted, only your goals will be returned.
241
+ * @param {module:model/String} opts.assigneeType The type of the goal's assignee. If provided, everyone's goals will be returned.
242
+ * @param {Number} opts.expectedOutcomeTarget The numeric value of the outcome. If provided, everyone's goals will be returned.
243
+ * @param {module:model/String} opts.expectedOutcomeTrackingMetric The tracking metric of the expected outcome of the goal. If provided, everyone's goals will be returned.
244
+ * @param {Number} opts.expectedOutcomeCurrencyId The numeric ID of the goal's currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone's goals will be returned.
245
+ * @param {Number} opts.typeParamsPipelineId The ID of the pipeline or `null` for all pipelines. If provided, everyone's goals will be returned.
246
+ * @param {Number} opts.typeParamsStageId The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone's goals will be returned.
247
+ * @param {Number} opts.typeParamsActivityTypeId The ID of the activity type. Applicable to only `activities_completed` or `activities_added` types of goals. If provided, everyone's goals will be returned.
248
+ * @param {Date} opts.periodStart The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too.
249
+ * @param {Date} opts.periodEnd The end date of the period for which to find goals. Date in format of YYYY-MM-DD.
250
250
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetGoalsResponse200} and HTTP response
251
251
  */
252
252
 
@@ -297,19 +297,19 @@ var GoalsApi = /*#__PURE__*/function () {
297
297
  * Find goals
298
298
  * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa.
299
299
  * @param {Object} opts Optional parameters
300
- * @param {module:model/String} opts.typeName Type of the goal. If provided, everyone's goals will be returned.
301
- * @param {String} opts.title Title of the goal.
302
- * @param {module:model/Boolean} opts.isActive Whether goal is active or not. (default to true)
303
- * @param {Number} opts.assigneeId ID of the user who's goal to fetch. When omitted, only your goals will be returned.
304
- * @param {module:model/String} opts.assigneeType Type of the goal's assignee. If provided, everyone's goals will be returned.
305
- * @param {Number} opts.expectedOutcomeTarget Numeric value of the outcome. If provided, everyone's goals will be returned.
306
- * @param {module:model/String} opts.expectedOutcomeTrackingMetric Tracking metric of the expected outcome of the goal. If provided, everyone's goals will be returned.
307
- * @param {Number} opts.expectedOutcomeCurrencyId Numeric ID of the goal's currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone's goals will be returned.
308
- * @param {Number} opts.typeParamsPipelineId ID of the pipeline or `null` for all pipelines. If provided, everyone's goals will be returned.
309
- * @param {Number} opts.typeParamsStageId ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone's goals will be returned.
310
- * @param {Number} opts.typeParamsActivityTypeId ID of the activity type. Applicable to only `activities_completed` or `activities_added` types of goals. If provided, everyone's goals will be returned.
311
- * @param {Date} opts.periodStart Start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too.
312
- * @param {Date} opts.periodEnd End date of the period for which to find goals. Date in format of YYYY-MM-DD.
300
+ * @param {module:model/String} opts.typeName The type of the goal. If provided, everyone's goals will be returned.
301
+ * @param {String} opts.title The title of the goal
302
+ * @param {module:model/Boolean} opts.isActive Whether the goal is active or not (default to true)
303
+ * @param {Number} opts.assigneeId The ID of the user who's goal to fetch. When omitted, only your goals will be returned.
304
+ * @param {module:model/String} opts.assigneeType The type of the goal's assignee. If provided, everyone's goals will be returned.
305
+ * @param {Number} opts.expectedOutcomeTarget The numeric value of the outcome. If provided, everyone's goals will be returned.
306
+ * @param {module:model/String} opts.expectedOutcomeTrackingMetric The tracking metric of the expected outcome of the goal. If provided, everyone's goals will be returned.
307
+ * @param {Number} opts.expectedOutcomeCurrencyId The numeric ID of the goal's currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone's goals will be returned.
308
+ * @param {Number} opts.typeParamsPipelineId The ID of the pipeline or `null` for all pipelines. If provided, everyone's goals will be returned.
309
+ * @param {Number} opts.typeParamsStageId The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone's goals will be returned.
310
+ * @param {Number} opts.typeParamsActivityTypeId The ID of the activity type. Applicable to only `activities_completed` or `activities_added` types of goals. If provided, everyone's goals will be returned.
311
+ * @param {Date} opts.periodStart The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too.
312
+ * @param {Date} opts.periodEnd The end date of the period for which to find goals. Date in format of YYYY-MM-DD.
313
313
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetGoalsResponse200}
314
314
  */
315
315
 
@@ -322,15 +322,15 @@ var GoalsApi = /*#__PURE__*/function () {
322
322
  }
323
323
  /**
324
324
  * Update existing goal
325
- * Updates existing goal.
326
- * @param {String} id ID of the goal to be updated.
325
+ * Updates an existing goal.
326
+ * @param {String} id The ID of the goal to be updated
327
327
  * @param {Object} opts Optional parameters
328
- * @param {String} opts.title Title of the goal.
329
- * @param {Object} opts.assignee Who is this goal assigned to. It requires the following JSON structure: { \\\"id\\\": \\\"1\\\", \\\"type\\\": \\\"person\\\" }. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team.
330
- * @param {Object} opts.type Type of the goal. It requires the following JSON structure: { \\\"name\\\": \\\"deals_started\\\", \\\"params\\\": { \\\"pipeline_id\\\": 1 } }. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. To track goal in all pipelines set `pipeline_id` as `null`.
331
- * @param {Object} opts.expectedOutcome Expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: { \\\"target\\\": \\\"50\\\", \\\"tracking_metric\\\": \\\"quantity\\\" } or { \\\"target\\\": \\\"50\\\", \\\"tracking_metric\\\": \\\"sum\\\", \\\"currency_id\\\": 1 }. `currency_id` should only be added to `sum` type of goals.
332
- * @param {Object} opts.duration Date when the goal starts and ends. It requires the following JSON structure: { \\\"start\\\": \\\"2019-01-01\\\", \\\"end\\\": \\\"2022-12-31\\\" }. Date in format of YYYY-MM-DD. \\\"end\\\" can be set to `null` for an infinite, open-ended goal.
333
- * @param {module:model/String} opts.interval Interval of the goal
328
+ * @param {String} opts.title The title of the goal
329
+ * @param {Object.<String, Object>} opts.assignee Who this goal is assigned to. It requires the following JSON structure: { \\\"id\\\": \\\"1\\\", \\\"type\\\": \\\"person\\\" }. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team.
330
+ * @param {Object.<String, Object>} opts.type The type of the goal. It requires the following JSON structure: { \\\"name\\\": \\\"deals_started\\\", \\\"params\\\": { \\\"pipeline_id\\\": 1 } }. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. To track goal in all pipelines set `pipeline_id` as `null`.
331
+ * @param {Object.<String, Object>} opts.expectedOutcome The expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: { \\\"target\\\": \\\"50\\\", \\\"tracking_metric\\\": \\\"quantity\\\" } or { \\\"target\\\": \\\"50\\\", \\\"tracking_metric\\\": \\\"sum\\\", \\\"currency_id\\\": 1 }. `currency_id` should only be added to `sum` type of goals.
332
+ * @param {Object.<String, Object>} opts.duration The date when the goal starts and ends. It requires the following JSON structure: { \\\"start\\\": \\\"2019-01-01\\\", \\\"end\\\": \\\"2022-12-31\\\" }. Date in format of YYYY-MM-DD. \\\"end\\\" can be set to `null` for an infinite, open-ended goal.
333
+ * @param {module:model/String} opts.interval The interval of the goal
334
334
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddOrUpdateGoalResponse200} and HTTP response
335
335
  */
336
336
 
@@ -379,15 +379,15 @@ var GoalsApi = /*#__PURE__*/function () {
379
379
  }
380
380
  /**
381
381
  * Update existing goal
382
- * Updates existing goal.
383
- * @param {String} id ID of the goal to be updated.
382
+ * Updates an existing goal.
383
+ * @param {String} id The ID of the goal to be updated
384
384
  * @param {Object} opts Optional parameters
385
- * @param {String} opts.title Title of the goal.
386
- * @param {Object} opts.assignee Who is this goal assigned to. It requires the following JSON structure: { \\\"id\\\": \\\"1\\\", \\\"type\\\": \\\"person\\\" }. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team.
387
- * @param {Object} opts.type Type of the goal. It requires the following JSON structure: { \\\"name\\\": \\\"deals_started\\\", \\\"params\\\": { \\\"pipeline_id\\\": 1 } }. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. To track goal in all pipelines set `pipeline_id` as `null`.
388
- * @param {Object} opts.expectedOutcome Expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: { \\\"target\\\": \\\"50\\\", \\\"tracking_metric\\\": \\\"quantity\\\" } or { \\\"target\\\": \\\"50\\\", \\\"tracking_metric\\\": \\\"sum\\\", \\\"currency_id\\\": 1 }. `currency_id` should only be added to `sum` type of goals.
389
- * @param {Object} opts.duration Date when the goal starts and ends. It requires the following JSON structure: { \\\"start\\\": \\\"2019-01-01\\\", \\\"end\\\": \\\"2022-12-31\\\" }. Date in format of YYYY-MM-DD. \\\"end\\\" can be set to `null` for an infinite, open-ended goal.
390
- * @param {module:model/String} opts.interval Interval of the goal
385
+ * @param {String} opts.title The title of the goal
386
+ * @param {Object.<String, Object>} opts.assignee Who this goal is assigned to. It requires the following JSON structure: { \\\"id\\\": \\\"1\\\", \\\"type\\\": \\\"person\\\" }. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team.
387
+ * @param {Object.<String, Object>} opts.type The type of the goal. It requires the following JSON structure: { \\\"name\\\": \\\"deals_started\\\", \\\"params\\\": { \\\"pipeline_id\\\": 1 } }. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. To track goal in all pipelines set `pipeline_id` as `null`.
388
+ * @param {Object.<String, Object>} opts.expectedOutcome The expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: { \\\"target\\\": \\\"50\\\", \\\"tracking_metric\\\": \\\"quantity\\\" } or { \\\"target\\\": \\\"50\\\", \\\"tracking_metric\\\": \\\"sum\\\", \\\"currency_id\\\": 1 }. `currency_id` should only be added to `sum` type of goals.
389
+ * @param {Object.<String, Object>} opts.duration The date when the goal starts and ends. It requires the following JSON structure: { \\\"start\\\": \\\"2019-01-01\\\", \\\"end\\\": \\\"2022-12-31\\\" }. Date in format of YYYY-MM-DD. \\\"end\\\" can be set to `null` for an infinite, open-ended goal.
390
+ * @param {module:model/String} opts.interval The interval of the goal
391
391
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddOrUpdateGoalResponse200}
392
392
  */
393
393
 
@@ -46,8 +46,8 @@ var ItemSearchApi = /*#__PURE__*/function () {
46
46
  * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`).
47
47
  * @param {Object} opts Optional parameters
48
48
  * @param {module:model/String} opts.itemTypes A comma-separated string array. The type of items to perform the search from. Defaults to all.
49
- * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> </table> <br> When searching for Leads, the email, organization_name, person_name, and phone fields will return results only for Leads not linked to contacts. For searching Leads by Person or Organization values, please use `search_for_related_items`.
50
- * @param {module:model/Boolean} opts.searchForRelatedItems When enabled, the response will include up to 100 newest related Leads and 100 newest related Deals for each found Person and Organization and up to 100 newest related Persons for each found Organization.
49
+ * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> </table> <br> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`.
50
+ * @param {module:model/Boolean} opts.searchForRelatedItems When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization.
51
51
  * @param {module:model/Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
52
52
  * @param {module:model/String} opts.includeFields A comma-separated string array. Supports including optional fields in the results which are not provided by default.
53
53
  * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0)
@@ -105,8 +105,8 @@ var ItemSearchApi = /*#__PURE__*/function () {
105
105
  * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`).
106
106
  * @param {Object} opts Optional parameters
107
107
  * @param {module:model/String} opts.itemTypes A comma-separated string array. The type of items to perform the search from. Defaults to all.
108
- * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> </table> <br> When searching for Leads, the email, organization_name, person_name, and phone fields will return results only for Leads not linked to contacts. For searching Leads by Person or Organization values, please use `search_for_related_items`.
109
- * @param {module:model/Boolean} opts.searchForRelatedItems When enabled, the response will include up to 100 newest related Leads and 100 newest related Deals for each found Person and Organization and up to 100 newest related Persons for each found Organization.
108
+ * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> </table> <br> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`.
109
+ * @param {module:model/Boolean} opts.searchForRelatedItems When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization.
110
110
  * @param {module:model/Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
111
111
  * @param {module:model/String} opts.includeFields A comma-separated string array. Supports including optional fields in the results which are not provided by default.
112
112
  * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0)
@@ -123,7 +123,7 @@ var ItemSearchApi = /*#__PURE__*/function () {
123
123
  }
124
124
  /**
125
125
  * Perform a search using a specific field from an item type
126
- * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (Deals, Persons, Organizations or Products).
126
+ * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
127
127
  * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`).
128
128
  * @param {module:model/String} fieldType The type of the field to perform the search from
129
129
  * @param {String} fieldKey The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields' API GET methods (dealFields, personFields, etc.).
@@ -189,7 +189,7 @@ var ItemSearchApi = /*#__PURE__*/function () {
189
189
  }
190
190
  /**
191
191
  * Perform a search using a specific field from an item type
192
- * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (Deals, Persons, Organizations or Products).
192
+ * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products).
193
193
  * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`).
194
194
  * @param {module:model/String} fieldType The type of the field to perform the search from
195
195
  * @param {String} fieldKey The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields' API GET methods (dealFields, personFields, etc.).
@@ -50,7 +50,7 @@ var LeadLabelsApi = /*#__PURE__*/function () {
50
50
  }
51
51
  /**
52
52
  * Add a lead label
53
- * Creates a Lead Label
53
+ * Creates a lead label.
54
54
  * @param {Object} opts Optional parameters
55
55
  * @param {module:model/AddLeadLabelRequest} opts.addLeadLabelRequest
56
56
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddOrUpdateLeadLabelResponse200} and HTTP response
@@ -62,6 +62,15 @@ var LeadLabelsApi = /*#__PURE__*/function () {
62
62
  value: function addLeadLabelWithHttpInfo(opts) {
63
63
  opts = opts || {};
64
64
  var postBody = opts['addLeadLabelRequest'];
65
+
66
+ if (opts['name'] === undefined || opts['name'] === null) {
67
+ throw new Error("Missing the required parameter 'name' when calling addLeadLabel");
68
+ }
69
+
70
+ if (opts['color'] === undefined || opts['color'] === null) {
71
+ throw new Error("Missing the required parameter 'color' when calling addLeadLabel");
72
+ }
73
+
65
74
  var pathParams = {};
66
75
  var queryParams = {};
67
76
  var headerParams = {};
@@ -88,7 +97,7 @@ var LeadLabelsApi = /*#__PURE__*/function () {
88
97
  }
89
98
  /**
90
99
  * Add a lead label
91
- * Creates a Lead Label
100
+ * Creates a lead label.
92
101
  * @param {Object} opts Optional parameters
93
102
  * @param {module:model/AddLeadLabelRequest} opts.addLeadLabelRequest
94
103
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddOrUpdateLeadLabelResponse200}
@@ -103,8 +112,8 @@ var LeadLabelsApi = /*#__PURE__*/function () {
103
112
  }
104
113
  /**
105
114
  * Delete a lead label
106
- * Deletes a specific Lead Label
107
- * @param {String} id The ID of the Lead Label
115
+ * Deletes a specific lead label.
116
+ * @param {String} id The ID of the lead label
108
117
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/LeadIdResponse200} and HTTP response
109
118
  */
110
119
 
@@ -146,8 +155,8 @@ var LeadLabelsApi = /*#__PURE__*/function () {
146
155
  }
147
156
  /**
148
157
  * Delete a lead label
149
- * Deletes a specific Lead Label
150
- * @param {String} id The ID of the Lead Label
158
+ * Deletes a specific lead label.
159
+ * @param {String} id The ID of the lead label
151
160
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LeadIdResponse200}
152
161
  */
153
162
 
@@ -160,7 +169,7 @@ var LeadLabelsApi = /*#__PURE__*/function () {
160
169
  }
161
170
  /**
162
171
  * Get all lead labels
163
- * Returns details of all Lead Labels. This endpoint does not support pagination and all Labels are always returned.
172
+ * Returns details of all lead labels. This endpoint does not support pagination and all labels are always returned.
164
173
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLeadLabelsResponse200} and HTTP response
165
174
  */
166
175
 
@@ -195,7 +204,7 @@ var LeadLabelsApi = /*#__PURE__*/function () {
195
204
  }
196
205
  /**
197
206
  * Get all lead labels
198
- * Returns details of all Lead Labels. This endpoint does not support pagination and all Labels are always returned.
207
+ * Returns details of all lead labels. This endpoint does not support pagination and all labels are always returned.
199
208
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLeadLabelsResponse200}
200
209
  */
201
210
 
@@ -208,8 +217,8 @@ var LeadLabelsApi = /*#__PURE__*/function () {
208
217
  }
209
218
  /**
210
219
  * Update a lead label
211
- * Updates one or more properties of a Lead Label. Only properties included in the request will be updated.
212
- * @param {String} id The ID of the Lead Label
220
+ * Updates one or more properties of a lead label. Only properties included in the request will be updated.
221
+ * @param {String} id The ID of the lead label
213
222
  * @param {Object} opts Optional parameters
214
223
  * @param {module:model/UpdateLeadLabelRequest} opts.updateLeadLabelRequest
215
224
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddOrUpdateLeadLabelResponse200} and HTTP response
@@ -253,8 +262,8 @@ var LeadLabelsApi = /*#__PURE__*/function () {
253
262
  }
254
263
  /**
255
264
  * Update a lead label
256
- * Updates one or more properties of a Lead Label. Only properties included in the request will be updated.
257
- * @param {String} id The ID of the Lead Label
265
+ * Updates one or more properties of a lead label. Only properties included in the request will be updated.
266
+ * @param {String} id The ID of the lead label
258
267
  * @param {Object} opts Optional parameters
259
268
  * @param {module:model/UpdateLeadLabelRequest} opts.updateLeadLabelRequest
260
269
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddOrUpdateLeadLabelResponse200}