pipedrive-openapi-client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1052) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +68 -0
  4. data/LICENSE +201 -0
  5. data/README.md +669 -0
  6. data/Rakefile +10 -0
  7. data/docs/ActivitiesApi.md +372 -0
  8. data/docs/Activity.md +47 -0
  9. data/docs/ActivityFieldsApi.md +61 -0
  10. data/docs/ActivityTypesApi.md +305 -0
  11. data/docs/AddFile.md +19 -0
  12. data/docs/AddNewPipeline.md +19 -0
  13. data/docs/AddNewPipelineAllOf.md +17 -0
  14. data/docs/AddedDealFollower.md +19 -0
  15. data/docs/AddedDealFollowerData.md +23 -0
  16. data/docs/AdditionalData.md +21 -0
  17. data/docs/AdditionalDataWithPaginationDetails.md +17 -0
  18. data/docs/BaseCurrency.md +29 -0
  19. data/docs/BaseDeal.md +119 -0
  20. data/docs/BaseMailThread.md +89 -0
  21. data/docs/BaseMailThreadAllOf.md +59 -0
  22. data/docs/BaseMailThreadAllOfParties.md +19 -0
  23. data/docs/BaseMailThreadMessages.md +71 -0
  24. data/docs/BaseMailThreadMessagesAllOf.md +41 -0
  25. data/docs/BaseNote.md +49 -0
  26. data/docs/BaseNoteDealTitle.md +17 -0
  27. data/docs/BaseNoteOrganization.md +17 -0
  28. data/docs/BaseNotePerson.md +17 -0
  29. data/docs/BaseResponse.md +17 -0
  30. data/docs/BaseRole.md +19 -0
  31. data/docs/BaseStage.md +35 -0
  32. data/docs/BaseTeam.md +33 -0
  33. data/docs/BaseTeamAllOf.md +17 -0
  34. data/docs/BaseTeamAllOf1.md +19 -0
  35. data/docs/BaseUser.md +55 -0
  36. data/docs/BaseUserMe.md +67 -0
  37. data/docs/BaseUserMeAllOf.md +27 -0
  38. data/docs/BaseUserMeAllOfLanguage.md +19 -0
  39. data/docs/BasicDeal.md +37 -0
  40. data/docs/BasicDealProduct.md +29 -0
  41. data/docs/BasicGoal.md +27 -0
  42. data/docs/BasicOrganization.md +21 -0
  43. data/docs/BasicPerson.md +27 -0
  44. data/docs/BasicPersonField.md +19 -0
  45. data/docs/BasicProductField.md +19 -0
  46. data/docs/CallLogsApi.md +296 -0
  47. data/docs/CommonMailThread.md +45 -0
  48. data/docs/CreateRemoteFileAndLinkItToItem.md +19 -0
  49. data/docs/CreateTeam.md +23 -0
  50. data/docs/Currencies.md +19 -0
  51. data/docs/CurrenciesApi.md +68 -0
  52. data/docs/DealFieldsApi.md +356 -0
  53. data/docs/DealNonStrictModeFields.md +25 -0
  54. data/docs/DealNonStrictModeFieldsCreatorUserId.md +29 -0
  55. data/docs/DealOrganizationData.md +27 -0
  56. data/docs/DealPersonData.md +23 -0
  57. data/docs/DealPersonDataEmail.md +21 -0
  58. data/docs/DealPersonDataPhone.md +21 -0
  59. data/docs/DealStrictModeFields.md +25 -0
  60. data/docs/DealSummary.md +23 -0
  61. data/docs/DealSummaryPerCurrency.md +17 -0
  62. data/docs/DealSummaryPerCurrencyFull.md +17 -0
  63. data/docs/DealSummaryPerCurrencyFullCURRENCYID.md +19 -0
  64. data/docs/DealSummaryPerStages.md +17 -0
  65. data/docs/DealSummaryPerStagesSTAGEID.md +17 -0
  66. data/docs/DealSummaryPerStagesSTAGEIDCURRENCYID.md +25 -0
  67. data/docs/DealUserData.md +27 -0
  68. data/docs/DealsApi.md +1777 -0
  69. data/docs/DeleteDeal.md +19 -0
  70. data/docs/DeleteDealData.md +17 -0
  71. data/docs/DeleteDealFollower.md +19 -0
  72. data/docs/DeleteDealFollowerData.md +17 -0
  73. data/docs/DeleteDealParticipant.md +19 -0
  74. data/docs/DeleteDealParticipantData.md +17 -0
  75. data/docs/DeleteDealProduct.md +19 -0
  76. data/docs/DeleteDealProductData.md +19 -0
  77. data/docs/DeleteFile.md +19 -0
  78. data/docs/DeleteFileData.md +17 -0
  79. data/docs/DeleteMultipleDeals.md +16 -0
  80. data/docs/DeleteMultipleDealsAllOf.md +19 -0
  81. data/docs/DeleteMultipleDealsAllOfData.md +17 -0
  82. data/docs/DeleteMultipleProductFieldsResponse.md +19 -0
  83. data/docs/DeleteMultipleProductFieldsResponseData.md +17 -0
  84. data/docs/DeleteNote.md +19 -0
  85. data/docs/DeleteProductFieldResponse.md +19 -0
  86. data/docs/DeleteProductFieldResponseData.md +17 -0
  87. data/docs/DeleteProductFollowerResponse.md +19 -0
  88. data/docs/DeleteProductFollowerResponseData.md +17 -0
  89. data/docs/DeleteRole.md +19 -0
  90. data/docs/DeleteRoleAllOf.md +17 -0
  91. data/docs/DeleteRoleAllOfData.md +17 -0
  92. data/docs/DeleteRoleAssignment.md +19 -0
  93. data/docs/DeleteRoleAssignmentAllOf.md +17 -0
  94. data/docs/DeleteRoleAssignmentAllOfData.md +17 -0
  95. data/docs/EditPipeline.md +19 -0
  96. data/docs/EditPipelineAllOf.md +17 -0
  97. data/docs/FailResponse.md +19 -0
  98. data/docs/FieldType.md +17 -0
  99. data/docs/FileData.md +67 -0
  100. data/docs/FilesApi.md +509 -0
  101. data/docs/FilterType.md +16 -0
  102. data/docs/FiltersApi.md +408 -0
  103. data/docs/FindProductsByNameResponse.md +21 -0
  104. data/docs/FindProductsByNameResponseData.md +29 -0
  105. data/docs/FullRole.md +29 -0
  106. data/docs/FullRoleAllOf.md +17 -0
  107. data/docs/GetAddProductAttachementDetails.md +19 -0
  108. data/docs/GetAddUpdateStage.md +19 -0
  109. data/docs/GetAddedDeal.md +23 -0
  110. data/docs/GetAddedDealAdditionalData.md +17 -0
  111. data/docs/GetAddedDealRelatedObjects.md +21 -0
  112. data/docs/GetAllFiles.md +21 -0
  113. data/docs/GetAllPipelines.md +19 -0
  114. data/docs/GetAllPipelinesAllOf.md +17 -0
  115. data/docs/GetAllProductFieldsResponse.md +21 -0
  116. data/docs/GetDeal.md +23 -0
  117. data/docs/GetDealAdditionalData.md +17 -0
  118. data/docs/GetDeals.md +23 -0
  119. data/docs/GetDealsByName.md +21 -0
  120. data/docs/GetDealsByNameAdditionalData.md +17 -0
  121. data/docs/GetDealsByNameData.md +41 -0
  122. data/docs/GetDealsConversionRatesInPipeline.md +19 -0
  123. data/docs/GetDealsConversionRatesInPipelineAllOf.md +17 -0
  124. data/docs/GetDealsConversionRatesInPipelineAllOfData.md +21 -0
  125. data/docs/GetDealsConversionRatesInPipelineAllOfDataStageConversions.md +21 -0
  126. data/docs/GetDealsMovementsInPipeline.md +19 -0
  127. data/docs/GetDealsMovementsInPipelineAllOf.md +17 -0
  128. data/docs/GetDealsMovementsInPipelineAllOfData.md +27 -0
  129. data/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.md +19 -0
  130. data/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.md +19 -0
  131. data/docs/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.md +17 -0
  132. data/docs/GetDealsMovementsInPipelineAllOfDataNewDeals.md +23 -0
  133. data/docs/GetDealsMovementsInPipelineAllOfDataNewDealsFormattedValues.md +17 -0
  134. data/docs/GetDealsMovementsInPipelineAllOfDataNewDealsValues.md +17 -0
  135. data/docs/GetDealsSummary.md +19 -0
  136. data/docs/GetDealsSummaryData.md +29 -0
  137. data/docs/GetDealsSummaryDataValuesTotal.md +25 -0
  138. data/docs/GetDealsSummaryDataWeightedValuesTotal.md +21 -0
  139. data/docs/GetDealsTimeline.md +19 -0
  140. data/docs/GetDealsTimelineData.md +23 -0
  141. data/docs/GetDealsTimelineDataTotals.md +31 -0
  142. data/docs/GetDuplicatedDeal.md +19 -0
  143. data/docs/GetMergedDeal.md +19 -0
  144. data/docs/GetNotes.md +21 -0
  145. data/docs/GetOneFile.md +19 -0
  146. data/docs/GetOnePipeline.md +19 -0
  147. data/docs/GetOnePipelineAllOf.md +17 -0
  148. data/docs/GetOneStage.md +19 -0
  149. data/docs/GetProductAttachementDetails.md +19 -0
  150. data/docs/GetProductFieldResponse.md +19 -0
  151. data/docs/GetRole.md +21 -0
  152. data/docs/GetRoleAllOf.md +19 -0
  153. data/docs/GetRoleAllOfAdditionalData.md +17 -0
  154. data/docs/GetRoleAssignments.md +21 -0
  155. data/docs/GetRoleAssignmentsAllOf.md +19 -0
  156. data/docs/GetRoleSettings.md +19 -0
  157. data/docs/GetRoleSettingsAllOf.md +17 -0
  158. data/docs/GetRoleSubroles.md +21 -0
  159. data/docs/GetRoleSubrolesAllOf.md +19 -0
  160. data/docs/GetRoles.md +21 -0
  161. data/docs/GetRolesAllOf.md +19 -0
  162. data/docs/GetStageDeals.md +21 -0
  163. data/docs/GetStages.md +19 -0
  164. data/docs/GlobalMessageBaseResponse.md +17 -0
  165. data/docs/GlobalMessageData.md +27 -0
  166. data/docs/GlobalMessageDelete.md +23 -0
  167. data/docs/GlobalMessageDeleteAllOf.md +21 -0
  168. data/docs/GlobalMessageGet.md +23 -0
  169. data/docs/GlobalMessageGetAllOf.md +21 -0
  170. data/docs/GlobalMessageUserData.md +21 -0
  171. data/docs/GlobalMessagesApi.md +120 -0
  172. data/docs/GoalsApi.md +318 -0
  173. data/docs/IconKey.md +16 -0
  174. data/docs/InlineObject.md +21 -0
  175. data/docs/InlineObject1.md +23 -0
  176. data/docs/InlineObject10.md +23 -0
  177. data/docs/InlineObject11.md +19 -0
  178. data/docs/InlineObject12.md +21 -0
  179. data/docs/InlineObject13.md +19 -0
  180. data/docs/InlineObject14.md +31 -0
  181. data/docs/InlineObject15.md +33 -0
  182. data/docs/InlineObject16.md +19 -0
  183. data/docs/InlineObject17.md +19 -0
  184. data/docs/InlineObject18.md +23 -0
  185. data/docs/InlineObject19.md +17 -0
  186. data/docs/InlineObject2.md +37 -0
  187. data/docs/InlineObject20.md +17 -0
  188. data/docs/InlineObject21.md +17 -0
  189. data/docs/InlineObject22.md +17 -0
  190. data/docs/InlineObject23.md +25 -0
  191. data/docs/InlineObject24.md +17 -0
  192. data/docs/InlineObject25.md +17 -0
  193. data/docs/InlineObject26.md +19 -0
  194. data/docs/InlineObject27.md +17 -0
  195. data/docs/InlineObject28.md +17 -0
  196. data/docs/InlineObject29.md +21 -0
  197. data/docs/InlineObject3.md +17 -0
  198. data/docs/InlineObject30.md +17 -0
  199. data/docs/InlineObject31.md +17 -0
  200. data/docs/InlineObject32.md +17 -0
  201. data/docs/InlineObject33.md +27 -0
  202. data/docs/InlineObject4.md +17 -0
  203. data/docs/InlineObject5.md +17 -0
  204. data/docs/InlineObject6.md +17 -0
  205. data/docs/InlineObject7.md +19 -0
  206. data/docs/InlineObject8.md +27 -0
  207. data/docs/InlineObject9.md +25 -0
  208. data/docs/InlineResponse200.md +21 -0
  209. data/docs/InlineResponse2001.md +19 -0
  210. data/docs/InlineResponse20010.md +19 -0
  211. data/docs/InlineResponse20010Data.md +17 -0
  212. data/docs/InlineResponse20011.md +19 -0
  213. data/docs/InlineResponse20011Data.md +17 -0
  214. data/docs/InlineResponse2002.md +19 -0
  215. data/docs/InlineResponse2003.md +17 -0
  216. data/docs/InlineResponse2004.md +21 -0
  217. data/docs/InlineResponse2005.md +17 -0
  218. data/docs/InlineResponse2006.md +19 -0
  219. data/docs/InlineResponse2007.md +19 -0
  220. data/docs/InlineResponse2007Data.md +25 -0
  221. data/docs/InlineResponse2008.md +19 -0
  222. data/docs/InlineResponse2008Data.md +17 -0
  223. data/docs/InlineResponse2009.md +19 -0
  224. data/docs/InlineResponse2009Data.md +17 -0
  225. data/docs/InlineResponse200AdditionalData.md +21 -0
  226. data/docs/InlineResponse201.md +19 -0
  227. data/docs/InlineResponse201Data.md +47 -0
  228. data/docs/InlineResponse400.md +25 -0
  229. data/docs/InlineResponse403.md +25 -0
  230. data/docs/InlineResponse404.md +25 -0
  231. data/docs/InlineResponse4041.md +25 -0
  232. data/docs/InlineResponse409.md +25 -0
  233. data/docs/InlineResponse410.md +25 -0
  234. data/docs/InlineResponse500.md +25 -0
  235. data/docs/ItemSearchApi.md +154 -0
  236. data/docs/LeadsApi.md +651 -0
  237. data/docs/LeadsValue.md +19 -0
  238. data/docs/LinkRemoteFileToItem.md +19 -0
  239. data/docs/MailMessage.md +25 -0
  240. data/docs/MailMessageAllOf.md +17 -0
  241. data/docs/MailMessageData.md +73 -0
  242. data/docs/MailMessagesApi.md +70 -0
  243. data/docs/MailParticipant.md +27 -0
  244. data/docs/MailServiceBaseResponse.md +23 -0
  245. data/docs/MailThread.md +19 -0
  246. data/docs/MailThreadAllOf.md +17 -0
  247. data/docs/MailThreadDelete.md +19 -0
  248. data/docs/MailThreadDeleteAllOf.md +17 -0
  249. data/docs/MailThreadMessages.md +19 -0
  250. data/docs/MailThreadMessagesAllOf.md +17 -0
  251. data/docs/MailThreadOne.md +19 -0
  252. data/docs/MailThreadOneAllOf.md +17 -0
  253. data/docs/MailThreadParticipant.md +33 -0
  254. data/docs/MailThreadPut.md +19 -0
  255. data/docs/MailThreadsApi.md +314 -0
  256. data/docs/NewDeal.md +39 -0
  257. data/docs/NewDealAllOf.md +17 -0
  258. data/docs/NewDealProduct.md +31 -0
  259. data/docs/NewDealProductAllOf.md +17 -0
  260. data/docs/NewFollowerResponse.md +19 -0
  261. data/docs/NewFollowerResponseData.md +23 -0
  262. data/docs/NewGoal.md +16 -0
  263. data/docs/NewOrganization.md +23 -0
  264. data/docs/NewOrganizationAllOf.md +17 -0
  265. data/docs/NewOrganizationField.md +21 -0
  266. data/docs/NewPerson.md +29 -0
  267. data/docs/NewPersonAllOf.md +17 -0
  268. data/docs/NewPersonField.md +21 -0
  269. data/docs/NewProductField.md +21 -0
  270. data/docs/NewProductFieldAllOf.md +21 -0
  271. data/docs/Note.md +33 -0
  272. data/docs/NoteCreatorUser.md +23 -0
  273. data/docs/NoteFieldsApi.md +61 -0
  274. data/docs/NotesApi.md +360 -0
  275. data/docs/NumberBoolean.md +16 -0
  276. data/docs/NumberBooleanDefault0.md +16 -0
  277. data/docs/NumberBooleanDefault1.md +16 -0
  278. data/docs/OrganizationFieldsApi.md +348 -0
  279. data/docs/OrganizationRelationship.md +23 -0
  280. data/docs/OrganizationRelationshipsApi.md +303 -0
  281. data/docs/OrganizationsApi.md +1178 -0
  282. data/docs/PermissionSets.md +19 -0
  283. data/docs/PermissionSetsAllOf.md +17 -0
  284. data/docs/PermissionSetsApi.md +171 -0
  285. data/docs/PermissionSetsItem.md +21 -0
  286. data/docs/PersonFieldsApi.md +348 -0
  287. data/docs/PersonsApi.md +1311 -0
  288. data/docs/Pipeline.md +23 -0
  289. data/docs/PipelinesApi.md +524 -0
  290. data/docs/PostNote.md +19 -0
  291. data/docs/PostRoleAssignment.md +19 -0
  292. data/docs/PostRoleAssignmentAllOf.md +17 -0
  293. data/docs/PostRoleAssignmentAllOfData.md +19 -0
  294. data/docs/PostRoleSettings.md +19 -0
  295. data/docs/PostRoleSettingsAllOf.md +17 -0
  296. data/docs/PostRoleSettingsAllOfData.md +19 -0
  297. data/docs/PostRoles.md +19 -0
  298. data/docs/PostRolesAllOf.md +17 -0
  299. data/docs/PostRolesAllOfData.md +17 -0
  300. data/docs/Product.md +31 -0
  301. data/docs/ProductAttachementFields.md +41 -0
  302. data/docs/ProductField.md +51 -0
  303. data/docs/ProductFieldAllOf.md +45 -0
  304. data/docs/ProductFieldsApi.md +358 -0
  305. data/docs/ProductsApi.md +809 -0
  306. data/docs/PutRole.md +19 -0
  307. data/docs/PutRoleAllOf.md +17 -0
  308. data/docs/PutRoleAllOfData.md +17 -0
  309. data/docs/RecentsApi.md +73 -0
  310. data/docs/RoleAssignment.md +27 -0
  311. data/docs/RoleAssignmentAllOf.md +23 -0
  312. data/docs/RoleSettings.md +31 -0
  313. data/docs/RolesAdditionalData.md +17 -0
  314. data/docs/RolesAdditionalDataPagination.md +21 -0
  315. data/docs/RolesApi.md +623 -0
  316. data/docs/SearchResultsApi.md +148 -0
  317. data/docs/SinglePermissionSetsItem.md +23 -0
  318. data/docs/SinglePermissionSetsItemAllOf.md +17 -0
  319. data/docs/Stage.md +25 -0
  320. data/docs/StagesApi.md +424 -0
  321. data/docs/SubRole.md +27 -0
  322. data/docs/SubRoleAllOf.md +23 -0
  323. data/docs/Teams.md +19 -0
  324. data/docs/TeamsAllOf.md +17 -0
  325. data/docs/TeamsApi.md +498 -0
  326. data/docs/Unauthorized.md +21 -0
  327. data/docs/UpdateFile.md +19 -0
  328. data/docs/UpdateTeam.md +27 -0
  329. data/docs/UpdateTeamAllOf.md +19 -0
  330. data/docs/User.md +19 -0
  331. data/docs/UserAllOf.md +17 -0
  332. data/docs/UserAssignmentToPermissionSet.md +23 -0
  333. data/docs/UserAssignmentsToPermissionSet.md +19 -0
  334. data/docs/UserAssignmentsToPermissionSetAllOf.md +17 -0
  335. data/docs/UserConnections.md +19 -0
  336. data/docs/UserConnectionsAllOf.md +17 -0
  337. data/docs/UserConnectionsAllOfData.md +17 -0
  338. data/docs/UserConnectionsApi.md +62 -0
  339. data/docs/UserIDs.md +19 -0
  340. data/docs/UserIDsAllOf.md +17 -0
  341. data/docs/UserMe.md +19 -0
  342. data/docs/UserMeAllOf.md +17 -0
  343. data/docs/UserSettings.md +19 -0
  344. data/docs/UserSettingsAllOf.md +17 -0
  345. data/docs/UserSettingsApi.md +62 -0
  346. data/docs/UserSettingsItem.md +35 -0
  347. data/docs/Users.md +19 -0
  348. data/docs/UsersAllOf.md +17 -0
  349. data/docs/UsersApi.md +818 -0
  350. data/docs/VisibleTo.md +16 -0
  351. data/docs/WebhooksApi.md +190 -0
  352. data/git_push.sh +58 -0
  353. data/lib/pipedrive-openapi-client.rb +384 -0
  354. data/lib/pipedrive-openapi-client/api/activities_api.rb +403 -0
  355. data/lib/pipedrive-openapi-client/api/activity_fields_api.rb +76 -0
  356. data/lib/pipedrive-openapi-client/api/activity_types_api.rb +344 -0
  357. data/lib/pipedrive-openapi-client/api/call_logs_api.rb +339 -0
  358. data/lib/pipedrive-openapi-client/api/currencies_api.rb +81 -0
  359. data/lib/pipedrive-openapi-client/api/deal_fields_api.rb +391 -0
  360. data/lib/pipedrive-openapi-client/api/deals_api.rb +2018 -0
  361. data/lib/pipedrive-openapi-client/api/files_api.rb +630 -0
  362. data/lib/pipedrive-openapi-client/api/filters_api.rb +436 -0
  363. data/lib/pipedrive-openapi-client/api/global_messages_api.rb +143 -0
  364. data/lib/pipedrive-openapi-client/api/goals_api.rb +405 -0
  365. data/lib/pipedrive-openapi-client/api/item_search_api.rb +228 -0
  366. data/lib/pipedrive-openapi-client/api/leads_api.rb +697 -0
  367. data/lib/pipedrive-openapi-client/api/mail_messages_api.rb +87 -0
  368. data/lib/pipedrive-openapi-client/api/mail_threads_api.rb +358 -0
  369. data/lib/pipedrive-openapi-client/api/note_fields_api.rb +76 -0
  370. data/lib/pipedrive-openapi-client/api/notes_api.rb +422 -0
  371. data/lib/pipedrive-openapi-client/api/organization_fields_api.rb +385 -0
  372. data/lib/pipedrive-openapi-client/api/organization_relationships_api.rb +340 -0
  373. data/lib/pipedrive-openapi-client/api/organizations_api.rb +1303 -0
  374. data/lib/pipedrive-openapi-client/api/permission_sets_api.rb +204 -0
  375. data/lib/pipedrive-openapi-client/api/person_fields_api.rb +385 -0
  376. data/lib/pipedrive-openapi-client/api/persons_api.rb +1448 -0
  377. data/lib/pipedrive-openapi-client/api/pipelines_api.rb +595 -0
  378. data/lib/pipedrive-openapi-client/api/product_fields_api.rb +391 -0
  379. data/lib/pipedrive-openapi-client/api/products_api.rb +904 -0
  380. data/lib/pipedrive-openapi-client/api/recents_api.rb +96 -0
  381. data/lib/pipedrive-openapi-client/api/roles_api.rb +741 -0
  382. data/lib/pipedrive-openapi-client/api/search_results_api.rb +194 -0
  383. data/lib/pipedrive-openapi-client/api/stages_api.rb +467 -0
  384. data/lib/pipedrive-openapi-client/api/teams_api.rb +571 -0
  385. data/lib/pipedrive-openapi-client/api/user_connections_api.rb +78 -0
  386. data/lib/pipedrive-openapi-client/api/user_settings_api.rb +78 -0
  387. data/lib/pipedrive-openapi-client/api/users_api.rb +925 -0
  388. data/lib/pipedrive-openapi-client/api/webhooks_api.rb +238 -0
  389. data/lib/pipedrive-openapi-client/api_client.rb +404 -0
  390. data/lib/pipedrive-openapi-client/api_error.rb +57 -0
  391. data/lib/pipedrive-openapi-client/configuration.rb +250 -0
  392. data/lib/pipedrive-openapi-client/models/activity.rb +404 -0
  393. data/lib/pipedrive-openapi-client/models/add_file.rb +216 -0
  394. data/lib/pipedrive-openapi-client/models/add_new_pipeline.rb +224 -0
  395. data/lib/pipedrive-openapi-client/models/add_new_pipeline_all_of.rb +206 -0
  396. data/lib/pipedrive-openapi-client/models/added_deal_follower.rb +216 -0
  397. data/lib/pipedrive-openapi-client/models/added_deal_follower_data.rb +237 -0
  398. data/lib/pipedrive-openapi-client/models/additional_data.rb +228 -0
  399. data/lib/pipedrive-openapi-client/models/additional_data_with_pagination_details.rb +207 -0
  400. data/lib/pipedrive-openapi-client/models/base_currency.rb +267 -0
  401. data/lib/pipedrive-openapi-client/models/base_deal.rb +724 -0
  402. data/lib/pipedrive-openapi-client/models/base_mail_thread.rb +582 -0
  403. data/lib/pipedrive-openapi-client/models/base_mail_thread_all_of.rb +423 -0
  404. data/lib/pipedrive-openapi-client/models/base_mail_thread_all_of_parties.rb +222 -0
  405. data/lib/pipedrive-openapi-client/models/base_mail_thread_messages.rb +495 -0
  406. data/lib/pipedrive-openapi-client/models/base_mail_thread_messages_all_of.rb +336 -0
  407. data/lib/pipedrive-openapi-client/models/base_note.rb +363 -0
  408. data/lib/pipedrive-openapi-client/models/base_note_deal_title.rb +208 -0
  409. data/lib/pipedrive-openapi-client/models/base_note_organization.rb +208 -0
  410. data/lib/pipedrive-openapi-client/models/base_note_person.rb +208 -0
  411. data/lib/pipedrive-openapi-client/models/base_response.rb +207 -0
  412. data/lib/pipedrive-openapi-client/models/base_role.rb +218 -0
  413. data/lib/pipedrive-openapi-client/models/base_stage.rb +331 -0
  414. data/lib/pipedrive-openapi-client/models/base_team.rb +306 -0
  415. data/lib/pipedrive-openapi-client/models/base_team_all_of.rb +207 -0
  416. data/lib/pipedrive-openapi-client/models/base_team_all_of1.rb +217 -0
  417. data/lib/pipedrive-openapi-client/models/base_user.rb +399 -0
  418. data/lib/pipedrive-openapi-client/models/base_user_me.rb +466 -0
  419. data/lib/pipedrive-openapi-client/models/base_user_me_all_of.rb +256 -0
  420. data/lib/pipedrive-openapi-client/models/base_user_me_all_of_language.rb +218 -0
  421. data/lib/pipedrive-openapi-client/models/basic_deal.rb +341 -0
  422. data/lib/pipedrive-openapi-client/models/basic_deal_product.rb +271 -0
  423. data/lib/pipedrive-openapi-client/models/basic_goal.rb +291 -0
  424. data/lib/pipedrive-openapi-client/models/basic_organization.rb +227 -0
  425. data/lib/pipedrive-openapi-client/models/basic_person.rb +261 -0
  426. data/lib/pipedrive-openapi-client/models/basic_person_field.rb +222 -0
  427. data/lib/pipedrive-openapi-client/models/basic_product_field.rb +224 -0
  428. data/lib/pipedrive-openapi-client/models/common_mail_thread.rb +348 -0
  429. data/lib/pipedrive-openapi-client/models/create_remote_file_and_link_it_to_item.rb +216 -0
  430. data/lib/pipedrive-openapi-client/models/create_team.rb +247 -0
  431. data/lib/pipedrive-openapi-client/models/currencies.rb +219 -0
  432. data/lib/pipedrive-openapi-client/models/deal_non_strict_mode_fields.rb +243 -0
  433. data/lib/pipedrive-openapi-client/models/deal_non_strict_mode_fields_creator_user_id.rb +269 -0
  434. data/lib/pipedrive-openapi-client/models/deal_organization_data.rb +258 -0
  435. data/lib/pipedrive-openapi-client/models/deal_person_data.rb +242 -0
  436. data/lib/pipedrive-openapi-client/models/deal_person_data_email.rb +227 -0
  437. data/lib/pipedrive-openapi-client/models/deal_person_data_phone.rb +227 -0
  438. data/lib/pipedrive-openapi-client/models/deal_strict_mode_fields.rb +247 -0
  439. data/lib/pipedrive-openapi-client/models/deal_summary.rb +235 -0
  440. data/lib/pipedrive-openapi-client/models/deal_summary_per_currency.rb +208 -0
  441. data/lib/pipedrive-openapi-client/models/deal_summary_per_currency_full.rb +207 -0
  442. data/lib/pipedrive-openapi-client/models/deal_summary_per_currency_full_currencyid.rb +218 -0
  443. data/lib/pipedrive-openapi-client/models/deal_summary_per_stages.rb +207 -0
  444. data/lib/pipedrive-openapi-client/models/deal_summary_per_stages_stageid.rb +207 -0
  445. data/lib/pipedrive-openapi-client/models/deal_summary_per_stages_stageidcurrencyid.rb +248 -0
  446. data/lib/pipedrive-openapi-client/models/deal_user_data.rb +259 -0
  447. data/lib/pipedrive-openapi-client/models/delete_deal.rb +216 -0
  448. data/lib/pipedrive-openapi-client/models/delete_deal_data.rb +207 -0
  449. data/lib/pipedrive-openapi-client/models/delete_deal_follower.rb +216 -0
  450. data/lib/pipedrive-openapi-client/models/delete_deal_follower_data.rb +207 -0
  451. data/lib/pipedrive-openapi-client/models/delete_deal_participant.rb +216 -0
  452. data/lib/pipedrive-openapi-client/models/delete_deal_participant_data.rb +207 -0
  453. data/lib/pipedrive-openapi-client/models/delete_deal_product.rb +216 -0
  454. data/lib/pipedrive-openapi-client/models/delete_deal_product_data.rb +217 -0
  455. data/lib/pipedrive-openapi-client/models/delete_file.rb +216 -0
  456. data/lib/pipedrive-openapi-client/models/delete_file_data.rb +207 -0
  457. data/lib/pipedrive-openapi-client/models/delete_multiple_deals.rb +208 -0
  458. data/lib/pipedrive-openapi-client/models/delete_multiple_deals_all_of.rb +216 -0
  459. data/lib/pipedrive-openapi-client/models/delete_multiple_deals_all_of_data.rb +209 -0
  460. data/lib/pipedrive-openapi-client/models/delete_multiple_product_fields_response.rb +216 -0
  461. data/lib/pipedrive-openapi-client/models/delete_multiple_product_fields_response_data.rb +209 -0
  462. data/lib/pipedrive-openapi-client/models/delete_note.rb +217 -0
  463. data/lib/pipedrive-openapi-client/models/delete_product_field_response.rb +216 -0
  464. data/lib/pipedrive-openapi-client/models/delete_product_field_response_data.rb +207 -0
  465. data/lib/pipedrive-openapi-client/models/delete_product_follower_response.rb +216 -0
  466. data/lib/pipedrive-openapi-client/models/delete_product_follower_response_data.rb +207 -0
  467. data/lib/pipedrive-openapi-client/models/delete_role.rb +224 -0
  468. data/lib/pipedrive-openapi-client/models/delete_role_all_of.rb +206 -0
  469. data/lib/pipedrive-openapi-client/models/delete_role_all_of_data.rb +208 -0
  470. data/lib/pipedrive-openapi-client/models/delete_role_assignment.rb +224 -0
  471. data/lib/pipedrive-openapi-client/models/delete_role_assignment_all_of.rb +206 -0
  472. data/lib/pipedrive-openapi-client/models/delete_role_assignment_all_of_data.rb +208 -0
  473. data/lib/pipedrive-openapi-client/models/edit_pipeline.rb +225 -0
  474. data/lib/pipedrive-openapi-client/models/edit_pipeline_all_of.rb +207 -0
  475. data/lib/pipedrive-openapi-client/models/fail_response.rb +217 -0
  476. data/lib/pipedrive-openapi-client/models/field_type.rb +246 -0
  477. data/lib/pipedrive-openapi-client/models/file_data.rb +458 -0
  478. data/lib/pipedrive-openapi-client/models/filter_type.rb +39 -0
  479. data/lib/pipedrive-openapi-client/models/find_products_by_name_response.rb +226 -0
  480. data/lib/pipedrive-openapi-client/models/find_products_by_name_response_data.rb +267 -0
  481. data/lib/pipedrive-openapi-client/models/full_role.rb +275 -0
  482. data/lib/pipedrive-openapi-client/models/full_role_all_of.rb +207 -0
  483. data/lib/pipedrive-openapi-client/models/get_add_product_attachement_details.rb +217 -0
  484. data/lib/pipedrive-openapi-client/models/get_add_update_stage.rb +216 -0
  485. data/lib/pipedrive-openapi-client/models/get_added_deal.rb +235 -0
  486. data/lib/pipedrive-openapi-client/models/get_added_deal_additional_data.rb +209 -0
  487. data/lib/pipedrive-openapi-client/models/get_added_deal_related_objects.rb +224 -0
  488. data/lib/pipedrive-openapi-client/models/get_all_files.rb +228 -0
  489. data/lib/pipedrive-openapi-client/models/get_all_pipelines.rb +227 -0
  490. data/lib/pipedrive-openapi-client/models/get_all_pipelines_all_of.rb +209 -0
  491. data/lib/pipedrive-openapi-client/models/get_all_product_fields_response.rb +229 -0
  492. data/lib/pipedrive-openapi-client/models/get_deal.rb +234 -0
  493. data/lib/pipedrive-openapi-client/models/get_deal_additional_data.rb +207 -0
  494. data/lib/pipedrive-openapi-client/models/get_deals.rb +237 -0
  495. data/lib/pipedrive-openapi-client/models/get_deals_by_name.rb +227 -0
  496. data/lib/pipedrive-openapi-client/models/get_deals_by_name_additional_data.rb +206 -0
  497. data/lib/pipedrive-openapi-client/models/get_deals_by_name_data.rb +328 -0
  498. data/lib/pipedrive-openapi-client/models/get_deals_conversion_rates_in_pipeline.rb +224 -0
  499. data/lib/pipedrive-openapi-client/models/get_deals_conversion_rates_in_pipeline_all_of.rb +206 -0
  500. data/lib/pipedrive-openapi-client/models/get_deals_conversion_rates_in_pipeline_all_of_data.rb +230 -0
  501. data/lib/pipedrive-openapi-client/models/get_deals_conversion_rates_in_pipeline_all_of_data_stage_conversions.rb +227 -0
  502. data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline.rb +224 -0
  503. data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of.rb +206 -0
  504. data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data.rb +252 -0
  505. data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_average_age_in_days.rb +220 -0
  506. data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_average_age_in_days_by_stages.rb +218 -0
  507. data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_movements_between_stages.rb +208 -0
  508. data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_new_deals.rb +238 -0
  509. data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_new_deals_formatted_values.rb +208 -0
  510. data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_new_deals_values.rb +208 -0
  511. data/lib/pipedrive-openapi-client/models/get_deals_summary.rb +216 -0
  512. data/lib/pipedrive-openapi-client/models/get_deals_summary_data.rb +266 -0
  513. data/lib/pipedrive-openapi-client/models/get_deals_summary_data_values_total.rb +248 -0
  514. data/lib/pipedrive-openapi-client/models/get_deals_summary_data_weighted_values_total.rb +228 -0
  515. data/lib/pipedrive-openapi-client/models/get_deals_timeline.rb +216 -0
  516. data/lib/pipedrive-openapi-client/models/get_deals_timeline_data.rb +238 -0
  517. data/lib/pipedrive-openapi-client/models/get_deals_timeline_data_totals.rb +278 -0
  518. data/lib/pipedrive-openapi-client/models/get_duplicated_deal.rb +217 -0
  519. data/lib/pipedrive-openapi-client/models/get_merged_deal.rb +216 -0
  520. data/lib/pipedrive-openapi-client/models/get_notes.rb +228 -0
  521. data/lib/pipedrive-openapi-client/models/get_one_file.rb +216 -0
  522. data/lib/pipedrive-openapi-client/models/get_one_pipeline.rb +225 -0
  523. data/lib/pipedrive-openapi-client/models/get_one_pipeline_all_of.rb +207 -0
  524. data/lib/pipedrive-openapi-client/models/get_one_stage.rb +217 -0
  525. data/lib/pipedrive-openapi-client/models/get_product_attachement_details.rb +217 -0
  526. data/lib/pipedrive-openapi-client/models/get_product_field_response.rb +216 -0
  527. data/lib/pipedrive-openapi-client/models/get_role.rb +233 -0
  528. data/lib/pipedrive-openapi-client/models/get_role_all_of.rb +215 -0
  529. data/lib/pipedrive-openapi-client/models/get_role_all_of_additional_data.rb +207 -0
  530. data/lib/pipedrive-openapi-client/models/get_role_assignments.rb +236 -0
  531. data/lib/pipedrive-openapi-client/models/get_role_assignments_all_of.rb +218 -0
  532. data/lib/pipedrive-openapi-client/models/get_role_settings.rb +224 -0
  533. data/lib/pipedrive-openapi-client/models/get_role_settings_all_of.rb +206 -0
  534. data/lib/pipedrive-openapi-client/models/get_role_subroles.rb +236 -0
  535. data/lib/pipedrive-openapi-client/models/get_role_subroles_all_of.rb +218 -0
  536. data/lib/pipedrive-openapi-client/models/get_roles.rb +236 -0
  537. data/lib/pipedrive-openapi-client/models/get_roles_all_of.rb +218 -0
  538. data/lib/pipedrive-openapi-client/models/get_stage_deals.rb +228 -0
  539. data/lib/pipedrive-openapi-client/models/get_stages.rb +219 -0
  540. data/lib/pipedrive-openapi-client/models/global_message_base_response.rb +207 -0
  541. data/lib/pipedrive-openapi-client/models/global_message_data.rb +257 -0
  542. data/lib/pipedrive-openapi-client/models/global_message_delete.rb +244 -0
  543. data/lib/pipedrive-openapi-client/models/global_message_delete_all_of.rb +226 -0
  544. data/lib/pipedrive-openapi-client/models/global_message_get.rb +247 -0
  545. data/lib/pipedrive-openapi-client/models/global_message_get_all_of.rb +229 -0
  546. data/lib/pipedrive-openapi-client/models/global_message_user_data.rb +228 -0
  547. data/lib/pipedrive-openapi-client/models/icon_key.rb +74 -0
  548. data/lib/pipedrive-openapi-client/models/inline_object.rb +236 -0
  549. data/lib/pipedrive-openapi-client/models/inline_object1.rb +236 -0
  550. data/lib/pipedrive-openapi-client/models/inline_object10.rb +303 -0
  551. data/lib/pipedrive-openapi-client/models/inline_object11.rb +217 -0
  552. data/lib/pipedrive-openapi-client/models/inline_object12.rb +242 -0
  553. data/lib/pipedrive-openapi-client/models/inline_object13.rb +222 -0
  554. data/lib/pipedrive-openapi-client/models/inline_object14.rb +283 -0
  555. data/lib/pipedrive-openapi-client/models/inline_object15.rb +293 -0
  556. data/lib/pipedrive-openapi-client/models/inline_object16.rb +261 -0
  557. data/lib/pipedrive-openapi-client/models/inline_object17.rb +216 -0
  558. data/lib/pipedrive-openapi-client/models/inline_object18.rb +234 -0
  559. data/lib/pipedrive-openapi-client/models/inline_object19.rb +212 -0
  560. data/lib/pipedrive-openapi-client/models/inline_object2.rb +361 -0
  561. data/lib/pipedrive-openapi-client/models/inline_object20.rb +212 -0
  562. data/lib/pipedrive-openapi-client/models/inline_object21.rb +212 -0
  563. data/lib/pipedrive-openapi-client/models/inline_object22.rb +212 -0
  564. data/lib/pipedrive-openapi-client/models/inline_object23.rb +252 -0
  565. data/lib/pipedrive-openapi-client/models/inline_object24.rb +212 -0
  566. data/lib/pipedrive-openapi-client/models/inline_object25.rb +212 -0
  567. data/lib/pipedrive-openapi-client/models/inline_object26.rb +260 -0
  568. data/lib/pipedrive-openapi-client/models/inline_object27.rb +214 -0
  569. data/lib/pipedrive-openapi-client/models/inline_object28.rb +214 -0
  570. data/lib/pipedrive-openapi-client/models/inline_object29.rb +244 -0
  571. data/lib/pipedrive-openapi-client/models/inline_object3.rb +212 -0
  572. data/lib/pipedrive-openapi-client/models/inline_object30.rb +214 -0
  573. data/lib/pipedrive-openapi-client/models/inline_object31.rb +212 -0
  574. data/lib/pipedrive-openapi-client/models/inline_object32.rb +212 -0
  575. data/lib/pipedrive-openapi-client/models/inline_object33.rb +318 -0
  576. data/lib/pipedrive-openapi-client/models/inline_object4.rb +212 -0
  577. data/lib/pipedrive-openapi-client/models/inline_object5.rb +212 -0
  578. data/lib/pipedrive-openapi-client/models/inline_object6.rb +212 -0
  579. data/lib/pipedrive-openapi-client/models/inline_object7.rb +222 -0
  580. data/lib/pipedrive-openapi-client/models/inline_object8.rb +262 -0
  581. data/lib/pipedrive-openapi-client/models/inline_object9.rb +330 -0
  582. data/lib/pipedrive-openapi-client/models/inline_response200.rb +226 -0
  583. data/lib/pipedrive-openapi-client/models/inline_response2001.rb +215 -0
  584. data/lib/pipedrive-openapi-client/models/inline_response20010.rb +216 -0
  585. data/lib/pipedrive-openapi-client/models/inline_response20010_data.rb +209 -0
  586. data/lib/pipedrive-openapi-client/models/inline_response20011.rb +216 -0
  587. data/lib/pipedrive-openapi-client/models/inline_response20011_data.rb +207 -0
  588. data/lib/pipedrive-openapi-client/models/inline_response2002.rb +215 -0
  589. data/lib/pipedrive-openapi-client/models/inline_response2003.rb +206 -0
  590. data/lib/pipedrive-openapi-client/models/inline_response2004.rb +226 -0
  591. data/lib/pipedrive-openapi-client/models/inline_response2005.rb +206 -0
  592. data/lib/pipedrive-openapi-client/models/inline_response2006.rb +217 -0
  593. data/lib/pipedrive-openapi-client/models/inline_response2007.rb +215 -0
  594. data/lib/pipedrive-openapi-client/models/inline_response2007_data.rb +246 -0
  595. data/lib/pipedrive-openapi-client/models/inline_response2008.rb +217 -0
  596. data/lib/pipedrive-openapi-client/models/inline_response2008_data.rb +207 -0
  597. data/lib/pipedrive-openapi-client/models/inline_response2009.rb +216 -0
  598. data/lib/pipedrive-openapi-client/models/inline_response2009_data.rb +207 -0
  599. data/lib/pipedrive-openapi-client/models/inline_response200_additional_data.rb +227 -0
  600. data/lib/pipedrive-openapi-client/models/inline_response201.rb +215 -0
  601. data/lib/pipedrive-openapi-client/models/inline_response201_data.rb +362 -0
  602. data/lib/pipedrive-openapi-client/models/inline_response400.rb +244 -0
  603. data/lib/pipedrive-openapi-client/models/inline_response403.rb +244 -0
  604. data/lib/pipedrive-openapi-client/models/inline_response404.rb +244 -0
  605. data/lib/pipedrive-openapi-client/models/inline_response4041.rb +244 -0
  606. data/lib/pipedrive-openapi-client/models/inline_response409.rb +244 -0
  607. data/lib/pipedrive-openapi-client/models/inline_response410.rb +244 -0
  608. data/lib/pipedrive-openapi-client/models/inline_response500.rb +244 -0
  609. data/lib/pipedrive-openapi-client/models/leads_value.rb +226 -0
  610. data/lib/pipedrive-openapi-client/models/link_remote_file_to_item.rb +216 -0
  611. data/lib/pipedrive-openapi-client/models/mail_message.rb +254 -0
  612. data/lib/pipedrive-openapi-client/models/mail_message_all_of.rb +206 -0
  613. data/lib/pipedrive-openapi-client/models/mail_message_data.rb +530 -0
  614. data/lib/pipedrive-openapi-client/models/mail_participant.rb +257 -0
  615. data/lib/pipedrive-openapi-client/models/mail_service_base_response.rb +237 -0
  616. data/lib/pipedrive-openapi-client/models/mail_thread.rb +227 -0
  617. data/lib/pipedrive-openapi-client/models/mail_thread_all_of.rb +209 -0
  618. data/lib/pipedrive-openapi-client/models/mail_thread_delete.rb +227 -0
  619. data/lib/pipedrive-openapi-client/models/mail_thread_delete_all_of.rb +209 -0
  620. data/lib/pipedrive-openapi-client/models/mail_thread_messages.rb +227 -0
  621. data/lib/pipedrive-openapi-client/models/mail_thread_messages_all_of.rb +209 -0
  622. data/lib/pipedrive-openapi-client/models/mail_thread_one.rb +225 -0
  623. data/lib/pipedrive-openapi-client/models/mail_thread_one_all_of.rb +207 -0
  624. data/lib/pipedrive-openapi-client/models/mail_thread_participant.rb +289 -0
  625. data/lib/pipedrive-openapi-client/models/mail_thread_put.rb +227 -0
  626. data/lib/pipedrive-openapi-client/models/new_deal.rb +364 -0
  627. data/lib/pipedrive-openapi-client/models/new_deal_all_of.rb +207 -0
  628. data/lib/pipedrive-openapi-client/models/new_deal_product.rb +304 -0
  629. data/lib/pipedrive-openapi-client/models/new_deal_product_all_of.rb +212 -0
  630. data/lib/pipedrive-openapi-client/models/new_follower_response.rb +216 -0
  631. data/lib/pipedrive-openapi-client/models/new_follower_response_data.rb +237 -0
  632. data/lib/pipedrive-openapi-client/models/new_goal.rb +230 -0
  633. data/lib/pipedrive-openapi-client/models/new_organization.rb +250 -0
  634. data/lib/pipedrive-openapi-client/models/new_organization_all_of.rb +207 -0
  635. data/lib/pipedrive-openapi-client/models/new_organization_field.rb +279 -0
  636. data/lib/pipedrive-openapi-client/models/new_person.rb +284 -0
  637. data/lib/pipedrive-openapi-client/models/new_person_all_of.rb +207 -0
  638. data/lib/pipedrive-openapi-client/models/new_person_field.rb +279 -0
  639. data/lib/pipedrive-openapi-client/models/new_product_field.rb +281 -0
  640. data/lib/pipedrive-openapi-client/models/new_product_field_all_of.rb +273 -0
  641. data/lib/pipedrive-openapi-client/models/note.rb +292 -0
  642. data/lib/pipedrive-openapi-client/models/note_creator_user.rb +238 -0
  643. data/lib/pipedrive-openapi-client/models/number_boolean.rb +36 -0
  644. data/lib/pipedrive-openapi-client/models/number_boolean_default0.rb +208 -0
  645. data/lib/pipedrive-openapi-client/models/number_boolean_default1.rb +208 -0
  646. data/lib/pipedrive-openapi-client/models/organization_relationship.rb +271 -0
  647. data/lib/pipedrive-openapi-client/models/permission_sets.rb +227 -0
  648. data/lib/pipedrive-openapi-client/models/permission_sets_all_of.rb +209 -0
  649. data/lib/pipedrive-openapi-client/models/permission_sets_item.rb +227 -0
  650. data/lib/pipedrive-openapi-client/models/pipeline.rb +235 -0
  651. data/lib/pipedrive-openapi-client/models/post_note.rb +216 -0
  652. data/lib/pipedrive-openapi-client/models/post_role_assignment.rb +224 -0
  653. data/lib/pipedrive-openapi-client/models/post_role_assignment_all_of.rb +206 -0
  654. data/lib/pipedrive-openapi-client/models/post_role_assignment_all_of_data.rb +218 -0
  655. data/lib/pipedrive-openapi-client/models/post_role_settings.rb +224 -0
  656. data/lib/pipedrive-openapi-client/models/post_role_settings_all_of.rb +206 -0
  657. data/lib/pipedrive-openapi-client/models/post_role_settings_all_of_data.rb +252 -0
  658. data/lib/pipedrive-openapi-client/models/post_roles.rb +224 -0
  659. data/lib/pipedrive-openapi-client/models/post_roles_all_of.rb +206 -0
  660. data/lib/pipedrive-openapi-client/models/post_roles_all_of_data.rb +208 -0
  661. data/lib/pipedrive-openapi-client/models/product.rb +281 -0
  662. data/lib/pipedrive-openapi-client/models/product_attachement_fields.rb +327 -0
  663. data/lib/pipedrive-openapi-client/models/product_field.rb +431 -0
  664. data/lib/pipedrive-openapi-client/models/product_field_all_of.rb +347 -0
  665. data/lib/pipedrive-openapi-client/models/put_role.rb +224 -0
  666. data/lib/pipedrive-openapi-client/models/put_role_all_of.rb +206 -0
  667. data/lib/pipedrive-openapi-client/models/put_role_all_of_data.rb +208 -0
  668. data/lib/pipedrive-openapi-client/models/role_assignment.rb +266 -0
  669. data/lib/pipedrive-openapi-client/models/role_assignment_all_of.rb +237 -0
  670. data/lib/pipedrive-openapi-client/models/role_settings.rb +278 -0
  671. data/lib/pipedrive-openapi-client/models/roles_additional_data.rb +207 -0
  672. data/lib/pipedrive-openapi-client/models/roles_additional_data_pagination.rb +228 -0
  673. data/lib/pipedrive-openapi-client/models/single_permission_sets_item.rb +247 -0
  674. data/lib/pipedrive-openapi-client/models/single_permission_sets_item_all_of.rb +209 -0
  675. data/lib/pipedrive-openapi-client/models/stage.rb +281 -0
  676. data/lib/pipedrive-openapi-client/models/sub_role.rb +266 -0
  677. data/lib/pipedrive-openapi-client/models/sub_role_all_of.rb +237 -0
  678. data/lib/pipedrive-openapi-client/models/teams.rb +226 -0
  679. data/lib/pipedrive-openapi-client/models/teams_all_of.rb +208 -0
  680. data/lib/pipedrive-openapi-client/models/unauthorized.rb +227 -0
  681. data/lib/pipedrive-openapi-client/models/update_file.rb +216 -0
  682. data/lib/pipedrive-openapi-client/models/update_team.rb +275 -0
  683. data/lib/pipedrive-openapi-client/models/update_team_all_of.rb +217 -0
  684. data/lib/pipedrive-openapi-client/models/user.rb +224 -0
  685. data/lib/pipedrive-openapi-client/models/user_all_of.rb +206 -0
  686. data/lib/pipedrive-openapi-client/models/user_assignment_to_permission_set.rb +237 -0
  687. data/lib/pipedrive-openapi-client/models/user_assignments_to_permission_set.rb +227 -0
  688. data/lib/pipedrive-openapi-client/models/user_assignments_to_permission_set_all_of.rb +209 -0
  689. data/lib/pipedrive-openapi-client/models/user_connections.rb +224 -0
  690. data/lib/pipedrive-openapi-client/models/user_connections_all_of.rb +206 -0
  691. data/lib/pipedrive-openapi-client/models/user_connections_all_of_data.rb +208 -0
  692. data/lib/pipedrive-openapi-client/models/user_i_ds.rb +227 -0
  693. data/lib/pipedrive-openapi-client/models/user_i_ds_all_of.rb +209 -0
  694. data/lib/pipedrive-openapi-client/models/user_me.rb +224 -0
  695. data/lib/pipedrive-openapi-client/models/user_me_all_of.rb +206 -0
  696. data/lib/pipedrive-openapi-client/models/user_settings.rb +224 -0
  697. data/lib/pipedrive-openapi-client/models/user_settings_all_of.rb +206 -0
  698. data/lib/pipedrive-openapi-client/models/user_settings_item.rb +297 -0
  699. data/lib/pipedrive-openapi-client/models/users.rb +226 -0
  700. data/lib/pipedrive-openapi-client/models/users_all_of.rb +208 -0
  701. data/lib/pipedrive-openapi-client/models/visible_to.rb +36 -0
  702. data/lib/pipedrive-openapi-client/version.rb +15 -0
  703. data/pipedrive-openapi-client.gemspec +39 -0
  704. data/spec/api/activities_api_spec.rb +115 -0
  705. data/spec/api/activity_fields_api_spec.rb +46 -0
  706. data/spec/api/activity_types_api_spec.rb +100 -0
  707. data/spec/api/call_logs_api_spec.rb +97 -0
  708. data/spec/api/currencies_api_spec.rb +47 -0
  709. data/spec/api/deal_fields_api_spec.rb +109 -0
  710. data/spec/api/deals_api_spec.rb +439 -0
  711. data/spec/api/files_api_spec.rb +148 -0
  712. data/spec/api/filters_api_spec.rb +117 -0
  713. data/spec/api/global_messages_api_spec.rb +59 -0
  714. data/spec/api/goals_api_spec.rb +114 -0
  715. data/spec/api/item_search_api_spec.rb +72 -0
  716. data/spec/api/leads_api_spec.rb +169 -0
  717. data/spec/api/mail_messages_api_spec.rb +48 -0
  718. data/spec/api/mail_threads_api_spec.rb +101 -0
  719. data/spec/api/note_fields_api_spec.rb +46 -0
  720. data/spec/api/notes_api_spec.rb +123 -0
  721. data/spec/api/organization_fields_api_spec.rb +107 -0
  722. data/spec/api/organization_relationships_api_spec.rb +99 -0
  723. data/spec/api/organizations_api_spec.rb +300 -0
  724. data/spec/api/permission_sets_api_spec.rb +70 -0
  725. data/spec/api/person_fields_api_spec.rb +107 -0
  726. data/spec/api/persons_api_spec.rb +331 -0
  727. data/spec/api/pipelines_api_spec.rb +152 -0
  728. data/spec/api/product_fields_api_spec.rb +107 -0
  729. data/spec/api/products_api_spec.rb +213 -0
  730. data/spec/api/recents_api_spec.rb +50 -0
  731. data/spec/api/roles_api_spec.rb +169 -0
  732. data/spec/api/search_results_api_spec.rb +70 -0
  733. data/spec/api/stages_api_spec.rb +123 -0
  734. data/spec/api/teams_api_spec.rb +140 -0
  735. data/spec/api/user_connections_api_spec.rb +46 -0
  736. data/spec/api/user_settings_api_spec.rb +46 -0
  737. data/spec/api/users_api_spec.rb +210 -0
  738. data/spec/api/webhooks_api_spec.rb +75 -0
  739. data/spec/api_client_spec.rb +188 -0
  740. data/spec/configuration_spec.rb +42 -0
  741. data/spec/models/activity_spec.rb +135 -0
  742. data/spec/models/add_file_spec.rb +47 -0
  743. data/spec/models/add_new_pipeline_all_of_spec.rb +41 -0
  744. data/spec/models/add_new_pipeline_spec.rb +47 -0
  745. data/spec/models/added_deal_follower_data_spec.rb +59 -0
  746. data/spec/models/added_deal_follower_spec.rb +47 -0
  747. data/spec/models/additional_data_spec.rb +53 -0
  748. data/spec/models/additional_data_with_pagination_details_spec.rb +41 -0
  749. data/spec/models/base_currency_spec.rb +77 -0
  750. data/spec/models/base_deal_spec.rb +347 -0
  751. data/spec/models/base_mail_thread_all_of_parties_spec.rb +47 -0
  752. data/spec/models/base_mail_thread_all_of_spec.rb +167 -0
  753. data/spec/models/base_mail_thread_messages_all_of_spec.rb +113 -0
  754. data/spec/models/base_mail_thread_messages_spec.rb +203 -0
  755. data/spec/models/base_mail_thread_spec.rb +257 -0
  756. data/spec/models/base_note_deal_title_spec.rb +41 -0
  757. data/spec/models/base_note_organization_spec.rb +41 -0
  758. data/spec/models/base_note_person_spec.rb +41 -0
  759. data/spec/models/base_note_spec.rb +137 -0
  760. data/spec/models/base_response_spec.rb +41 -0
  761. data/spec/models/base_role_spec.rb +47 -0
  762. data/spec/models/base_stage_spec.rb +99 -0
  763. data/spec/models/base_team_all_of1_spec.rb +47 -0
  764. data/spec/models/base_team_all_of_spec.rb +41 -0
  765. data/spec/models/base_team_spec.rb +89 -0
  766. data/spec/models/base_user_me_all_of_language_spec.rb +47 -0
  767. data/spec/models/base_user_me_all_of_spec.rb +71 -0
  768. data/spec/models/base_user_me_spec.rb +191 -0
  769. data/spec/models/base_user_spec.rb +155 -0
  770. data/spec/models/basic_deal_product_spec.rb +77 -0
  771. data/spec/models/basic_deal_spec.rb +105 -0
  772. data/spec/models/basic_goal_spec.rb +75 -0
  773. data/spec/models/basic_organization_spec.rb +53 -0
  774. data/spec/models/basic_person_field_spec.rb +47 -0
  775. data/spec/models/basic_person_spec.rb +71 -0
  776. data/spec/models/basic_product_field_spec.rb +47 -0
  777. data/spec/models/common_mail_thread_spec.rb +125 -0
  778. data/spec/models/create_remote_file_and_link_it_to_item_spec.rb +47 -0
  779. data/spec/models/create_team_spec.rb +59 -0
  780. data/spec/models/currencies_spec.rb +47 -0
  781. data/spec/models/deal_non_strict_mode_fields_creator_user_id_spec.rb +77 -0
  782. data/spec/models/deal_non_strict_mode_fields_spec.rb +65 -0
  783. data/spec/models/deal_organization_data_spec.rb +71 -0
  784. data/spec/models/deal_person_data_email_spec.rb +53 -0
  785. data/spec/models/deal_person_data_phone_spec.rb +53 -0
  786. data/spec/models/deal_person_data_spec.rb +59 -0
  787. data/spec/models/deal_strict_mode_fields_spec.rb +65 -0
  788. data/spec/models/deal_summary_per_currency_full_currencyid_spec.rb +47 -0
  789. data/spec/models/deal_summary_per_currency_full_spec.rb +41 -0
  790. data/spec/models/deal_summary_per_currency_spec.rb +41 -0
  791. data/spec/models/deal_summary_per_stages_spec.rb +41 -0
  792. data/spec/models/deal_summary_per_stages_stageid_spec.rb +41 -0
  793. data/spec/models/deal_summary_per_stages_stageidcurrencyid_spec.rb +65 -0
  794. data/spec/models/deal_summary_spec.rb +59 -0
  795. data/spec/models/deal_user_data_spec.rb +71 -0
  796. data/spec/models/delete_deal_data_spec.rb +41 -0
  797. data/spec/models/delete_deal_follower_data_spec.rb +41 -0
  798. data/spec/models/delete_deal_follower_spec.rb +47 -0
  799. data/spec/models/delete_deal_participant_data_spec.rb +41 -0
  800. data/spec/models/delete_deal_participant_spec.rb +47 -0
  801. data/spec/models/delete_deal_product_data_spec.rb +47 -0
  802. data/spec/models/delete_deal_product_spec.rb +47 -0
  803. data/spec/models/delete_deal_spec.rb +47 -0
  804. data/spec/models/delete_file_data_spec.rb +41 -0
  805. data/spec/models/delete_file_spec.rb +47 -0
  806. data/spec/models/delete_multiple_deals_all_of_data_spec.rb +41 -0
  807. data/spec/models/delete_multiple_deals_all_of_spec.rb +47 -0
  808. data/spec/models/delete_multiple_deals_spec.rb +35 -0
  809. data/spec/models/delete_multiple_product_fields_response_data_spec.rb +41 -0
  810. data/spec/models/delete_multiple_product_fields_response_spec.rb +47 -0
  811. data/spec/models/delete_note_spec.rb +47 -0
  812. data/spec/models/delete_product_field_response_data_spec.rb +41 -0
  813. data/spec/models/delete_product_field_response_spec.rb +47 -0
  814. data/spec/models/delete_product_follower_response_data_spec.rb +41 -0
  815. data/spec/models/delete_product_follower_response_spec.rb +47 -0
  816. data/spec/models/delete_role_all_of_data_spec.rb +41 -0
  817. data/spec/models/delete_role_all_of_spec.rb +41 -0
  818. data/spec/models/delete_role_assignment_all_of_data_spec.rb +41 -0
  819. data/spec/models/delete_role_assignment_all_of_spec.rb +41 -0
  820. data/spec/models/delete_role_assignment_spec.rb +47 -0
  821. data/spec/models/delete_role_spec.rb +47 -0
  822. data/spec/models/edit_pipeline_all_of_spec.rb +41 -0
  823. data/spec/models/edit_pipeline_spec.rb +47 -0
  824. data/spec/models/fail_response_spec.rb +47 -0
  825. data/spec/models/field_type_spec.rb +45 -0
  826. data/spec/models/file_data_spec.rb +191 -0
  827. data/spec/models/filter_type_spec.rb +35 -0
  828. data/spec/models/find_products_by_name_response_data_spec.rb +77 -0
  829. data/spec/models/find_products_by_name_response_spec.rb +53 -0
  830. data/spec/models/full_role_all_of_spec.rb +41 -0
  831. data/spec/models/full_role_spec.rb +77 -0
  832. data/spec/models/get_add_product_attachement_details_spec.rb +47 -0
  833. data/spec/models/get_add_update_stage_spec.rb +47 -0
  834. data/spec/models/get_added_deal_additional_data_spec.rb +41 -0
  835. data/spec/models/get_added_deal_related_objects_spec.rb +53 -0
  836. data/spec/models/get_added_deal_spec.rb +59 -0
  837. data/spec/models/get_all_files_spec.rb +53 -0
  838. data/spec/models/get_all_pipelines_all_of_spec.rb +41 -0
  839. data/spec/models/get_all_pipelines_spec.rb +47 -0
  840. data/spec/models/get_all_product_fields_response_spec.rb +53 -0
  841. data/spec/models/get_deal_additional_data_spec.rb +41 -0
  842. data/spec/models/get_deal_spec.rb +59 -0
  843. data/spec/models/get_deals_by_name_additional_data_spec.rb +41 -0
  844. data/spec/models/get_deals_by_name_data_spec.rb +113 -0
  845. data/spec/models/get_deals_by_name_spec.rb +53 -0
  846. data/spec/models/get_deals_conversion_rates_in_pipeline_all_of_data_spec.rb +53 -0
  847. data/spec/models/get_deals_conversion_rates_in_pipeline_all_of_data_stage_conversions_spec.rb +53 -0
  848. data/spec/models/get_deals_conversion_rates_in_pipeline_all_of_spec.rb +41 -0
  849. data/spec/models/get_deals_conversion_rates_in_pipeline_spec.rb +47 -0
  850. data/spec/models/get_deals_movements_in_pipeline_all_of_data_average_age_in_days_by_stages_spec.rb +47 -0
  851. data/spec/models/get_deals_movements_in_pipeline_all_of_data_average_age_in_days_spec.rb +47 -0
  852. data/spec/models/get_deals_movements_in_pipeline_all_of_data_movements_between_stages_spec.rb +41 -0
  853. data/spec/models/get_deals_movements_in_pipeline_all_of_data_new_deals_formatted_values_spec.rb +41 -0
  854. data/spec/models/get_deals_movements_in_pipeline_all_of_data_new_deals_spec.rb +59 -0
  855. data/spec/models/get_deals_movements_in_pipeline_all_of_data_new_deals_values_spec.rb +41 -0
  856. data/spec/models/get_deals_movements_in_pipeline_all_of_data_spec.rb +71 -0
  857. data/spec/models/get_deals_movements_in_pipeline_all_of_spec.rb +41 -0
  858. data/spec/models/get_deals_movements_in_pipeline_spec.rb +47 -0
  859. data/spec/models/get_deals_spec.rb +59 -0
  860. data/spec/models/get_deals_summary_data_spec.rb +77 -0
  861. data/spec/models/get_deals_summary_data_values_total_spec.rb +65 -0
  862. data/spec/models/get_deals_summary_data_weighted_values_total_spec.rb +53 -0
  863. data/spec/models/get_deals_summary_spec.rb +47 -0
  864. data/spec/models/get_deals_timeline_data_spec.rb +59 -0
  865. data/spec/models/get_deals_timeline_data_totals_spec.rb +83 -0
  866. data/spec/models/get_deals_timeline_spec.rb +47 -0
  867. data/spec/models/get_duplicated_deal_spec.rb +47 -0
  868. data/spec/models/get_merged_deal_spec.rb +47 -0
  869. data/spec/models/get_notes_spec.rb +53 -0
  870. data/spec/models/get_one_file_spec.rb +47 -0
  871. data/spec/models/get_one_pipeline_all_of_spec.rb +41 -0
  872. data/spec/models/get_one_pipeline_spec.rb +47 -0
  873. data/spec/models/get_one_stage_spec.rb +47 -0
  874. data/spec/models/get_product_attachement_details_spec.rb +47 -0
  875. data/spec/models/get_product_field_response_spec.rb +47 -0
  876. data/spec/models/get_role_all_of_additional_data_spec.rb +41 -0
  877. data/spec/models/get_role_all_of_spec.rb +47 -0
  878. data/spec/models/get_role_assignments_all_of_spec.rb +47 -0
  879. data/spec/models/get_role_assignments_spec.rb +53 -0
  880. data/spec/models/get_role_settings_all_of_spec.rb +41 -0
  881. data/spec/models/get_role_settings_spec.rb +47 -0
  882. data/spec/models/get_role_spec.rb +53 -0
  883. data/spec/models/get_role_subroles_all_of_spec.rb +47 -0
  884. data/spec/models/get_role_subroles_spec.rb +53 -0
  885. data/spec/models/get_roles_all_of_spec.rb +47 -0
  886. data/spec/models/get_roles_spec.rb +53 -0
  887. data/spec/models/get_stage_deals_spec.rb +53 -0
  888. data/spec/models/get_stages_spec.rb +47 -0
  889. data/spec/models/global_message_base_response_spec.rb +41 -0
  890. data/spec/models/global_message_data_spec.rb +71 -0
  891. data/spec/models/global_message_delete_all_of_spec.rb +53 -0
  892. data/spec/models/global_message_delete_spec.rb +59 -0
  893. data/spec/models/global_message_get_all_of_spec.rb +53 -0
  894. data/spec/models/global_message_get_spec.rb +59 -0
  895. data/spec/models/global_message_user_data_spec.rb +53 -0
  896. data/spec/models/icon_key_spec.rb +35 -0
  897. data/spec/models/inline_object10_spec.rb +67 -0
  898. data/spec/models/inline_object11_spec.rb +47 -0
  899. data/spec/models/inline_object12_spec.rb +53 -0
  900. data/spec/models/inline_object13_spec.rb +47 -0
  901. data/spec/models/inline_object14_spec.rb +83 -0
  902. data/spec/models/inline_object15_spec.rb +89 -0
  903. data/spec/models/inline_object16_spec.rb +51 -0
  904. data/spec/models/inline_object17_spec.rb +47 -0
  905. data/spec/models/inline_object18_spec.rb +59 -0
  906. data/spec/models/inline_object19_spec.rb +41 -0
  907. data/spec/models/inline_object1_spec.rb +59 -0
  908. data/spec/models/inline_object20_spec.rb +41 -0
  909. data/spec/models/inline_object21_spec.rb +41 -0
  910. data/spec/models/inline_object22_spec.rb +41 -0
  911. data/spec/models/inline_object23_spec.rb +65 -0
  912. data/spec/models/inline_object24_spec.rb +41 -0
  913. data/spec/models/inline_object25_spec.rb +41 -0
  914. data/spec/models/inline_object26_spec.rb +51 -0
  915. data/spec/models/inline_object27_spec.rb +41 -0
  916. data/spec/models/inline_object28_spec.rb +41 -0
  917. data/spec/models/inline_object29_spec.rb +53 -0
  918. data/spec/models/inline_object2_spec.rb +105 -0
  919. data/spec/models/inline_object30_spec.rb +41 -0
  920. data/spec/models/inline_object31_spec.rb +41 -0
  921. data/spec/models/inline_object32_spec.rb +41 -0
  922. data/spec/models/inline_object33_spec.rb +79 -0
  923. data/spec/models/inline_object3_spec.rb +41 -0
  924. data/spec/models/inline_object4_spec.rb +41 -0
  925. data/spec/models/inline_object5_spec.rb +41 -0
  926. data/spec/models/inline_object6_spec.rb +41 -0
  927. data/spec/models/inline_object7_spec.rb +47 -0
  928. data/spec/models/inline_object8_spec.rb +71 -0
  929. data/spec/models/inline_object9_spec.rb +77 -0
  930. data/spec/models/inline_object_spec.rb +53 -0
  931. data/spec/models/inline_response20010_data_spec.rb +41 -0
  932. data/spec/models/inline_response20010_spec.rb +47 -0
  933. data/spec/models/inline_response20011_data_spec.rb +41 -0
  934. data/spec/models/inline_response20011_spec.rb +47 -0
  935. data/spec/models/inline_response2001_spec.rb +47 -0
  936. data/spec/models/inline_response2002_spec.rb +47 -0
  937. data/spec/models/inline_response2003_spec.rb +41 -0
  938. data/spec/models/inline_response2004_spec.rb +53 -0
  939. data/spec/models/inline_response2005_spec.rb +41 -0
  940. data/spec/models/inline_response2006_spec.rb +47 -0
  941. data/spec/models/inline_response2007_data_spec.rb +65 -0
  942. data/spec/models/inline_response2007_spec.rb +47 -0
  943. data/spec/models/inline_response2008_data_spec.rb +41 -0
  944. data/spec/models/inline_response2008_spec.rb +47 -0
  945. data/spec/models/inline_response2009_data_spec.rb +41 -0
  946. data/spec/models/inline_response2009_spec.rb +47 -0
  947. data/spec/models/inline_response200_additional_data_spec.rb +53 -0
  948. data/spec/models/inline_response200_spec.rb +53 -0
  949. data/spec/models/inline_response201_data_spec.rb +131 -0
  950. data/spec/models/inline_response201_spec.rb +47 -0
  951. data/spec/models/inline_response400_spec.rb +65 -0
  952. data/spec/models/inline_response403_spec.rb +65 -0
  953. data/spec/models/inline_response4041_spec.rb +65 -0
  954. data/spec/models/inline_response404_spec.rb +65 -0
  955. data/spec/models/inline_response409_spec.rb +65 -0
  956. data/spec/models/inline_response410_spec.rb +65 -0
  957. data/spec/models/inline_response500_spec.rb +65 -0
  958. data/spec/models/leads_value_spec.rb +47 -0
  959. data/spec/models/link_remote_file_to_item_spec.rb +47 -0
  960. data/spec/models/mail_message_all_of_spec.rb +41 -0
  961. data/spec/models/mail_message_data_spec.rb +213 -0
  962. data/spec/models/mail_message_spec.rb +65 -0
  963. data/spec/models/mail_participant_spec.rb +71 -0
  964. data/spec/models/mail_service_base_response_spec.rb +59 -0
  965. data/spec/models/mail_thread_all_of_spec.rb +41 -0
  966. data/spec/models/mail_thread_delete_all_of_spec.rb +41 -0
  967. data/spec/models/mail_thread_delete_spec.rb +47 -0
  968. data/spec/models/mail_thread_messages_all_of_spec.rb +41 -0
  969. data/spec/models/mail_thread_messages_spec.rb +47 -0
  970. data/spec/models/mail_thread_one_all_of_spec.rb +41 -0
  971. data/spec/models/mail_thread_one_spec.rb +47 -0
  972. data/spec/models/mail_thread_participant_spec.rb +89 -0
  973. data/spec/models/mail_thread_put_spec.rb +47 -0
  974. data/spec/models/mail_thread_spec.rb +47 -0
  975. data/spec/models/new_deal_all_of_spec.rb +41 -0
  976. data/spec/models/new_deal_product_all_of_spec.rb +41 -0
  977. data/spec/models/new_deal_product_spec.rb +83 -0
  978. data/spec/models/new_deal_spec.rb +111 -0
  979. data/spec/models/new_follower_response_data_spec.rb +59 -0
  980. data/spec/models/new_follower_response_spec.rb +47 -0
  981. data/spec/models/new_goal_spec.rb +35 -0
  982. data/spec/models/new_organization_all_of_spec.rb +41 -0
  983. data/spec/models/new_organization_field_spec.rb +57 -0
  984. data/spec/models/new_organization_spec.rb +59 -0
  985. data/spec/models/new_person_all_of_spec.rb +41 -0
  986. data/spec/models/new_person_field_spec.rb +57 -0
  987. data/spec/models/new_person_spec.rb +77 -0
  988. data/spec/models/new_product_field_all_of_spec.rb +57 -0
  989. data/spec/models/new_product_field_spec.rb +57 -0
  990. data/spec/models/note_creator_user_spec.rb +59 -0
  991. data/spec/models/note_spec.rb +89 -0
  992. data/spec/models/number_boolean_default0_spec.rb +35 -0
  993. data/spec/models/number_boolean_default1_spec.rb +35 -0
  994. data/spec/models/number_boolean_spec.rb +35 -0
  995. data/spec/models/organization_relationship_spec.rb +63 -0
  996. data/spec/models/permission_sets_all_of_spec.rb +41 -0
  997. data/spec/models/permission_sets_item_spec.rb +53 -0
  998. data/spec/models/permission_sets_spec.rb +47 -0
  999. data/spec/models/pipeline_spec.rb +59 -0
  1000. data/spec/models/post_note_spec.rb +47 -0
  1001. data/spec/models/post_role_assignment_all_of_data_spec.rb +47 -0
  1002. data/spec/models/post_role_assignment_all_of_spec.rb +41 -0
  1003. data/spec/models/post_role_assignment_spec.rb +47 -0
  1004. data/spec/models/post_role_settings_all_of_data_spec.rb +51 -0
  1005. data/spec/models/post_role_settings_all_of_spec.rb +41 -0
  1006. data/spec/models/post_role_settings_spec.rb +47 -0
  1007. data/spec/models/post_roles_all_of_data_spec.rb +41 -0
  1008. data/spec/models/post_roles_all_of_spec.rb +41 -0
  1009. data/spec/models/post_roles_spec.rb +47 -0
  1010. data/spec/models/product_attachement_fields_spec.rb +113 -0
  1011. data/spec/models/product_field_all_of_spec.rb +125 -0
  1012. data/spec/models/product_field_spec.rb +147 -0
  1013. data/spec/models/product_spec.rb +83 -0
  1014. data/spec/models/put_role_all_of_data_spec.rb +41 -0
  1015. data/spec/models/put_role_all_of_spec.rb +41 -0
  1016. data/spec/models/put_role_spec.rb +47 -0
  1017. data/spec/models/role_assignment_all_of_spec.rb +59 -0
  1018. data/spec/models/role_assignment_spec.rb +71 -0
  1019. data/spec/models/role_settings_spec.rb +83 -0
  1020. data/spec/models/roles_additional_data_pagination_spec.rb +53 -0
  1021. data/spec/models/roles_additional_data_spec.rb +41 -0
  1022. data/spec/models/single_permission_sets_item_all_of_spec.rb +41 -0
  1023. data/spec/models/single_permission_sets_item_spec.rb +59 -0
  1024. data/spec/models/stage_spec.rb +69 -0
  1025. data/spec/models/sub_role_all_of_spec.rb +59 -0
  1026. data/spec/models/sub_role_spec.rb +71 -0
  1027. data/spec/models/teams_all_of_spec.rb +41 -0
  1028. data/spec/models/teams_spec.rb +47 -0
  1029. data/spec/models/unauthorized_spec.rb +53 -0
  1030. data/spec/models/update_file_spec.rb +47 -0
  1031. data/spec/models/update_team_all_of_spec.rb +47 -0
  1032. data/spec/models/update_team_spec.rb +71 -0
  1033. data/spec/models/user_all_of_spec.rb +41 -0
  1034. data/spec/models/user_assignment_to_permission_set_spec.rb +59 -0
  1035. data/spec/models/user_assignments_to_permission_set_all_of_spec.rb +41 -0
  1036. data/spec/models/user_assignments_to_permission_set_spec.rb +47 -0
  1037. data/spec/models/user_connections_all_of_data_spec.rb +41 -0
  1038. data/spec/models/user_connections_all_of_spec.rb +41 -0
  1039. data/spec/models/user_connections_spec.rb +47 -0
  1040. data/spec/models/user_i_ds_all_of_spec.rb +41 -0
  1041. data/spec/models/user_i_ds_spec.rb +47 -0
  1042. data/spec/models/user_me_all_of_spec.rb +41 -0
  1043. data/spec/models/user_me_spec.rb +47 -0
  1044. data/spec/models/user_settings_all_of_spec.rb +41 -0
  1045. data/spec/models/user_settings_item_spec.rb +95 -0
  1046. data/spec/models/user_settings_spec.rb +47 -0
  1047. data/spec/models/user_spec.rb +47 -0
  1048. data/spec/models/users_all_of_spec.rb +41 -0
  1049. data/spec/models/users_spec.rb +47 -0
  1050. data/spec/models/visible_to_spec.rb +35 -0
  1051. data/spec/spec_helper.rb +111 -0
  1052. metadata +1495 -0
@@ -0,0 +1,405 @@
1
+ =begin
2
+ #Pipedrive API v1
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Pipedrive
16
+ class GoalsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Find goals
23
+ # 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.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :type_name Type of the goal. If provided, everyone&#39;s goals will be returned.
26
+ # @option opts [String] :title Title of the goal.
27
+ # @option opts [Boolean] :is_active Whether goal is active or not. (default to true)
28
+ # @option opts [Integer] :assignee_id ID of the user who&#39;s goal to fetch. When omitted, only your goals will be returned.
29
+ # @option opts [String] :assignee_type Type of the goal&#39;s assignee. If provided, everyone&#39;s goals will be returned.
30
+ # @option opts [Float] :expected_outcome_target Numeric value of the outcome. If provided, everyone&#39;s goals will be returned.
31
+ # @option opts [String] :expected_outcome_tracking_metric Tracking metric of the expected outcome of the goal. If provided, everyone&#39;s goals will be returned.
32
+ # @option opts [Integer] :expected_outcome_currency_id Numeric ID of the goal&#39;s currency. Only applicable to goals with &#x60;expected_outcome.tracking_metric&#x60; with value &#x60;sum&#x60;. If provided, everyone&#39;s goals will be returned.
33
+ # @option opts [Integer] :type_params_pipeline_id ID of the pipeline or &#x60;null&#x60; for all pipelines. If provided, everyone&#39;s goals will be returned.
34
+ # @option opts [Integer] :type_params_stage_id ID of the stage. Applicable to only &#x60;deals_progressed&#x60; type of goals. If provided, everyone&#39;s goals will be returned.
35
+ # @option opts [Integer] :type_params_activity_type_id ID of the activity type. Applicable to only &#x60;activities_completed&#x60; or &#x60;activities_added&#x60; types of goals. If provided, everyone&#39;s goals will be returned.
36
+ # @option opts [Date] :period_start Start date of the period for which to find goals. Date in format of YYYY-MM-DD. When &#x60;period.start&#x60; is provided, &#x60;period.end&#x60; must be provided too.
37
+ # @option opts [Date] :period_end End date of the period for which to find goals. Date in format of YYYY-MM-DD.
38
+ # @return [nil]
39
+ def goals_find_get(opts = {})
40
+ goals_find_get_with_http_info(opts)
41
+ nil
42
+ end
43
+
44
+ # Find goals
45
+ # Returns data about goals based on criteria. For searching, append &#x60;{searchField}&#x3D;{searchValue}&#x60; to the URL, where &#x60;searchField&#x60; can be any one of the lowest-level fields in dot-notation (e.g. &#x60;type.params.pipeline_id&#x60;; &#x60;title&#x60;). &#x60;searchValue&#x60; should be the value you are looking for on that field. Additionally, &#x60;is_active&#x3D;&lt;true|false&gt;&#x60; can be provided to search for only active/inactive goals. When providing &#x60;period.start&#x60;, &#x60;period.end&#x60; must also be provided and vice versa.
46
+ # @param [Hash] opts the optional parameters
47
+ # @option opts [String] :type_name Type of the goal. If provided, everyone&#39;s goals will be returned.
48
+ # @option opts [String] :title Title of the goal.
49
+ # @option opts [Boolean] :is_active Whether goal is active or not.
50
+ # @option opts [Integer] :assignee_id ID of the user who&#39;s goal to fetch. When omitted, only your goals will be returned.
51
+ # @option opts [String] :assignee_type Type of the goal&#39;s assignee. If provided, everyone&#39;s goals will be returned.
52
+ # @option opts [Float] :expected_outcome_target Numeric value of the outcome. If provided, everyone&#39;s goals will be returned.
53
+ # @option opts [String] :expected_outcome_tracking_metric Tracking metric of the expected outcome of the goal. If provided, everyone&#39;s goals will be returned.
54
+ # @option opts [Integer] :expected_outcome_currency_id Numeric ID of the goal&#39;s currency. Only applicable to goals with &#x60;expected_outcome.tracking_metric&#x60; with value &#x60;sum&#x60;. If provided, everyone&#39;s goals will be returned.
55
+ # @option opts [Integer] :type_params_pipeline_id ID of the pipeline or &#x60;null&#x60; for all pipelines. If provided, everyone&#39;s goals will be returned.
56
+ # @option opts [Integer] :type_params_stage_id ID of the stage. Applicable to only &#x60;deals_progressed&#x60; type of goals. If provided, everyone&#39;s goals will be returned.
57
+ # @option opts [Integer] :type_params_activity_type_id ID of the activity type. Applicable to only &#x60;activities_completed&#x60; or &#x60;activities_added&#x60; types of goals. If provided, everyone&#39;s goals will be returned.
58
+ # @option opts [Date] :period_start Start date of the period for which to find goals. Date in format of YYYY-MM-DD. When &#x60;period.start&#x60; is provided, &#x60;period.end&#x60; must be provided too.
59
+ # @option opts [Date] :period_end End date of the period for which to find goals. Date in format of YYYY-MM-DD.
60
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
61
+ def goals_find_get_with_http_info(opts = {})
62
+ if @api_client.config.debugging
63
+ @api_client.config.logger.debug 'Calling API: GoalsApi.goals_find_get ...'
64
+ end
65
+ allowable_values = ["deals_won", "deals_progressed", "activities_completed", "activities_added", "deals_started"]
66
+ if @api_client.config.client_side_validation && opts[:'type_name'] && !allowable_values.include?(opts[:'type_name'])
67
+ fail ArgumentError, "invalid value for \"type_name\", must be one of #{allowable_values}"
68
+ end
69
+ allowable_values = ["true", "false"]
70
+ if @api_client.config.client_side_validation && opts[:'is_active'] && !allowable_values.include?(opts[:'is_active'])
71
+ fail ArgumentError, "invalid value for \"is_active\", must be one of #{allowable_values}"
72
+ end
73
+ allowable_values = ["person", "company", "team"]
74
+ if @api_client.config.client_side_validation && opts[:'assignee_type'] && !allowable_values.include?(opts[:'assignee_type'])
75
+ fail ArgumentError, "invalid value for \"assignee_type\", must be one of #{allowable_values}"
76
+ end
77
+ allowable_values = ["quantity", "sum"]
78
+ if @api_client.config.client_side_validation && opts[:'expected_outcome_tracking_metric'] && !allowable_values.include?(opts[:'expected_outcome_tracking_metric'])
79
+ fail ArgumentError, "invalid value for \"expected_outcome_tracking_metric\", must be one of #{allowable_values}"
80
+ end
81
+ # resource path
82
+ local_var_path = '/goals/find'
83
+
84
+ # query parameters
85
+ query_params = opts[:query_params] || {}
86
+ query_params[:'type.name'] = opts[:'type_name'] if !opts[:'type_name'].nil?
87
+ query_params[:'title'] = opts[:'title'] if !opts[:'title'].nil?
88
+ query_params[:'is_active'] = opts[:'is_active'] if !opts[:'is_active'].nil?
89
+ query_params[:'assignee.id'] = opts[:'assignee_id'] if !opts[:'assignee_id'].nil?
90
+ query_params[:'assignee.type'] = opts[:'assignee_type'] if !opts[:'assignee_type'].nil?
91
+ query_params[:'expected_outcome.target'] = opts[:'expected_outcome_target'] if !opts[:'expected_outcome_target'].nil?
92
+ query_params[:'expected_outcome.tracking_metric'] = opts[:'expected_outcome_tracking_metric'] if !opts[:'expected_outcome_tracking_metric'].nil?
93
+ query_params[:'expected_outcome.currency_id'] = opts[:'expected_outcome_currency_id'] if !opts[:'expected_outcome_currency_id'].nil?
94
+ query_params[:'type.params.pipeline_id'] = opts[:'type_params_pipeline_id'] if !opts[:'type_params_pipeline_id'].nil?
95
+ query_params[:'type.params.stage_id'] = opts[:'type_params_stage_id'] if !opts[:'type_params_stage_id'].nil?
96
+ query_params[:'type.params.activity_type_id'] = opts[:'type_params_activity_type_id'] if !opts[:'type_params_activity_type_id'].nil?
97
+ query_params[:'period.start'] = opts[:'period_start'] if !opts[:'period_start'].nil?
98
+ query_params[:'period.end'] = opts[:'period_end'] if !opts[:'period_end'].nil?
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+
103
+ # form parameters
104
+ form_params = opts[:form_params] || {}
105
+
106
+ # http body (model)
107
+ post_body = opts[:body]
108
+
109
+ # return_type
110
+ return_type = opts[:return_type]
111
+
112
+ # auth_names
113
+ auth_names = opts[:auth_names] || ['api_key']
114
+
115
+ new_options = opts.merge(
116
+ :header_params => header_params,
117
+ :query_params => query_params,
118
+ :form_params => form_params,
119
+ :body => post_body,
120
+ :auth_names => auth_names,
121
+ :return_type => return_type
122
+ )
123
+
124
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
125
+ if @api_client.config.debugging
126
+ @api_client.config.logger.debug "API called: GoalsApi#goals_find_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
127
+ end
128
+ return data, status_code, headers
129
+ end
130
+
131
+ # Delete existing goal
132
+ # Marks goal as deleted.
133
+ # @param id [String] ID of the goal to be deleted.
134
+ # @param [Hash] opts the optional parameters
135
+ # @return [nil]
136
+ def goals_id_delete(id, opts = {})
137
+ goals_id_delete_with_http_info(id, opts)
138
+ nil
139
+ end
140
+
141
+ # Delete existing goal
142
+ # Marks goal as deleted.
143
+ # @param id [String] ID of the goal to be deleted.
144
+ # @param [Hash] opts the optional parameters
145
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
146
+ def goals_id_delete_with_http_info(id, opts = {})
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug 'Calling API: GoalsApi.goals_id_delete ...'
149
+ end
150
+ # verify the required parameter 'id' is set
151
+ if @api_client.config.client_side_validation && id.nil?
152
+ fail ArgumentError, "Missing the required parameter 'id' when calling GoalsApi.goals_id_delete"
153
+ end
154
+ # resource path
155
+ local_var_path = '/goals/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
156
+
157
+ # query parameters
158
+ query_params = opts[:query_params] || {}
159
+
160
+ # header parameters
161
+ header_params = opts[:header_params] || {}
162
+
163
+ # form parameters
164
+ form_params = opts[:form_params] || {}
165
+
166
+ # http body (model)
167
+ post_body = opts[:body]
168
+
169
+ # return_type
170
+ return_type = opts[:return_type]
171
+
172
+ # auth_names
173
+ auth_names = opts[:auth_names] || ['api_key']
174
+
175
+ new_options = opts.merge(
176
+ :header_params => header_params,
177
+ :query_params => query_params,
178
+ :form_params => form_params,
179
+ :body => post_body,
180
+ :auth_names => auth_names,
181
+ :return_type => return_type
182
+ )
183
+
184
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
185
+ if @api_client.config.debugging
186
+ @api_client.config.logger.debug "API called: GoalsApi#goals_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
187
+ end
188
+ return data, status_code, headers
189
+ end
190
+
191
+ # Update existing goal
192
+ # Updates existing goal.
193
+ # @param id [String] ID of the goal to be updated.
194
+ # @param [Hash] opts the optional parameters
195
+ # @option opts [String] :title Title of the goal.
196
+ # @option opts [Object] :assignee Who is this goal assigned to. It requires the following JSON structure: { \\\&quot;id\\\&quot;: \\\&quot;1\\\&quot;, \\\&quot;type\\\&quot;: \\\&quot;person\\\&quot; }. &#x60;type&#x60; can be either &#x60;person&#x60;, &#x60;company&#x60; or &#x60;team&#x60;. ID of the assignee person, company or team.
197
+ # @option opts [Object] :type Type of the goal. It requires the following JSON structure: { \\\&quot;name\\\&quot;: \\\&quot;deals_started\\\&quot;, \\\&quot;params\\\&quot;: { \\\&quot;pipeline_id\\\&quot;: 1 } }. Type can be one of: &#x60;deals_won&#x60;,&#x60;deals_progressed&#x60;,&#x60;activities_completed&#x60;,&#x60;activities_added&#x60; or &#x60;deals_started&#x60;. &#x60;params&#x60; can include &#x60;pipeline_id&#x60;, &#x60;stage_id&#x60; or &#x60;activity_type_id&#x60;. &#x60;stage_id&#x60; is related to only &#x60;deals_progressed&#x60; type of goals and &#x60;activity_type_id&#x60; to &#x60;activities_completed&#x60; or &#x60;activities_added&#x60; types of goals. To track goal in all pipelines set &#x60;pipeline_id&#x60; as &#x60;null&#x60;.
198
+ # @option opts [Object] :expected_outcome Expected outcome of the goal. Expected outcome can be tracked either by &#x60;quantity&#x60; or by &#x60;sum&#x60;. It requires the following JSON structure: { \\\&quot;target\\\&quot;: \\\&quot;50\\\&quot;, \\\&quot;tracking_metric\\\&quot;: \\\&quot;quantity\\\&quot; } or { \\\&quot;target\\\&quot;: \\\&quot;50\\\&quot;, \\\&quot;tracking_metric\\\&quot;: \\\&quot;sum\\\&quot;, \\\&quot;currency_id\\\&quot;: 1 }. &#x60;currency_id&#x60; should only be added to &#x60;sum&#x60; type of goals.
199
+ # @option opts [Object] :duration Date when the goal starts and ends. It requires the following JSON structure: { \\\&quot;start\\\&quot;: \\\&quot;2019-01-01\\\&quot;, \\\&quot;end\\\&quot;: \\\&quot;2022-12-31\\\&quot; }. Date in format of YYYY-MM-DD.
200
+ # @option opts [String] :interval Date when the goal starts and ends. It requires the following JSON structure: { \\\&quot;start\\\&quot;: \\\&quot;2019-01-01\\\&quot;, \\\&quot;end\\\&quot;: \\\&quot;2022-12-31\\\&quot; }. Date in format of YYYY-MM-DD.
201
+ # @return [nil]
202
+ def goals_id_put(id, opts = {})
203
+ goals_id_put_with_http_info(id, opts)
204
+ nil
205
+ end
206
+
207
+ # Update existing goal
208
+ # Updates existing goal.
209
+ # @param id [String] ID of the goal to be updated.
210
+ # @param [Hash] opts the optional parameters
211
+ # @option opts [String] :title Title of the goal.
212
+ # @option opts [Object] :assignee Who is this goal assigned to. It requires the following JSON structure: { \\\&quot;id\\\&quot;: \\\&quot;1\\\&quot;, \\\&quot;type\\\&quot;: \\\&quot;person\\\&quot; }. &#x60;type&#x60; can be either &#x60;person&#x60;, &#x60;company&#x60; or &#x60;team&#x60;. ID of the assignee person, company or team.
213
+ # @option opts [Object] :type Type of the goal. It requires the following JSON structure: { \\\&quot;name\\\&quot;: \\\&quot;deals_started\\\&quot;, \\\&quot;params\\\&quot;: { \\\&quot;pipeline_id\\\&quot;: 1 } }. Type can be one of: &#x60;deals_won&#x60;,&#x60;deals_progressed&#x60;,&#x60;activities_completed&#x60;,&#x60;activities_added&#x60; or &#x60;deals_started&#x60;. &#x60;params&#x60; can include &#x60;pipeline_id&#x60;, &#x60;stage_id&#x60; or &#x60;activity_type_id&#x60;. &#x60;stage_id&#x60; is related to only &#x60;deals_progressed&#x60; type of goals and &#x60;activity_type_id&#x60; to &#x60;activities_completed&#x60; or &#x60;activities_added&#x60; types of goals. To track goal in all pipelines set &#x60;pipeline_id&#x60; as &#x60;null&#x60;.
214
+ # @option opts [Object] :expected_outcome Expected outcome of the goal. Expected outcome can be tracked either by &#x60;quantity&#x60; or by &#x60;sum&#x60;. It requires the following JSON structure: { \\\&quot;target\\\&quot;: \\\&quot;50\\\&quot;, \\\&quot;tracking_metric\\\&quot;: \\\&quot;quantity\\\&quot; } or { \\\&quot;target\\\&quot;: \\\&quot;50\\\&quot;, \\\&quot;tracking_metric\\\&quot;: \\\&quot;sum\\\&quot;, \\\&quot;currency_id\\\&quot;: 1 }. &#x60;currency_id&#x60; should only be added to &#x60;sum&#x60; type of goals.
215
+ # @option opts [Object] :duration Date when the goal starts and ends. It requires the following JSON structure: { \\\&quot;start\\\&quot;: \\\&quot;2019-01-01\\\&quot;, \\\&quot;end\\\&quot;: \\\&quot;2022-12-31\\\&quot; }. Date in format of YYYY-MM-DD.
216
+ # @option opts [String] :interval Date when the goal starts and ends. It requires the following JSON structure: { \\\&quot;start\\\&quot;: \\\&quot;2019-01-01\\\&quot;, \\\&quot;end\\\&quot;: \\\&quot;2022-12-31\\\&quot; }. Date in format of YYYY-MM-DD.
217
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
218
+ def goals_id_put_with_http_info(id, opts = {})
219
+ if @api_client.config.debugging
220
+ @api_client.config.logger.debug 'Calling API: GoalsApi.goals_id_put ...'
221
+ end
222
+ # verify the required parameter 'id' is set
223
+ if @api_client.config.client_side_validation && id.nil?
224
+ fail ArgumentError, "Missing the required parameter 'id' when calling GoalsApi.goals_id_put"
225
+ end
226
+ allowable_values = ["weekly", "monthly", "quarterly", "yearly"]
227
+ if @api_client.config.client_side_validation && opts[:'interval'] && !allowable_values.include?(opts[:'interval'])
228
+ fail ArgumentError, "invalid value for \"interval\", must be one of #{allowable_values}"
229
+ end
230
+ # resource path
231
+ local_var_path = '/goals/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
232
+
233
+ # query parameters
234
+ query_params = opts[:query_params] || {}
235
+
236
+ # header parameters
237
+ header_params = opts[:header_params] || {}
238
+ # HTTP header 'Content-Type'
239
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
240
+
241
+ # form parameters
242
+ form_params = opts[:form_params] || {}
243
+ form_params['title'] = opts[:'title'] if !opts[:'title'].nil?
244
+ form_params['assignee'] = opts[:'assignee'] if !opts[:'assignee'].nil?
245
+ form_params['type'] = opts[:'type'] if !opts[:'type'].nil?
246
+ form_params['expected_outcome'] = opts[:'expected_outcome'] if !opts[:'expected_outcome'].nil?
247
+ form_params['duration'] = opts[:'duration'] if !opts[:'duration'].nil?
248
+ form_params['interval'] = opts[:'interval'] if !opts[:'interval'].nil?
249
+
250
+ # http body (model)
251
+ post_body = opts[:body]
252
+
253
+ # return_type
254
+ return_type = opts[:return_type]
255
+
256
+ # auth_names
257
+ auth_names = opts[:auth_names] || ['api_key']
258
+
259
+ new_options = opts.merge(
260
+ :header_params => header_params,
261
+ :query_params => query_params,
262
+ :form_params => form_params,
263
+ :body => post_body,
264
+ :auth_names => auth_names,
265
+ :return_type => return_type
266
+ )
267
+
268
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
269
+ if @api_client.config.debugging
270
+ @api_client.config.logger.debug "API called: GoalsApi#goals_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
+ end
272
+ return data, status_code, headers
273
+ end
274
+
275
+ # Get result of a goal
276
+ # Gets progress of a goal for specified period.
277
+ # @param id [String] ID of the goal that the results are looked for.
278
+ # @param period_start [Date] Start date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD.
279
+ # @param period_end [Date] End date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD.
280
+ # @param [Hash] opts the optional parameters
281
+ # @return [nil]
282
+ def goals_id_results_get(id, period_start, period_end, opts = {})
283
+ goals_id_results_get_with_http_info(id, period_start, period_end, opts)
284
+ nil
285
+ end
286
+
287
+ # Get result of a goal
288
+ # Gets progress of a goal for specified period.
289
+ # @param id [String] ID of the goal that the results are looked for.
290
+ # @param period_start [Date] Start date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD.
291
+ # @param period_end [Date] End date of the period for which to find progress of a goal. Date in format of YYYY-MM-DD.
292
+ # @param [Hash] opts the optional parameters
293
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
294
+ def goals_id_results_get_with_http_info(id, period_start, period_end, opts = {})
295
+ if @api_client.config.debugging
296
+ @api_client.config.logger.debug 'Calling API: GoalsApi.goals_id_results_get ...'
297
+ end
298
+ # verify the required parameter 'id' is set
299
+ if @api_client.config.client_side_validation && id.nil?
300
+ fail ArgumentError, "Missing the required parameter 'id' when calling GoalsApi.goals_id_results_get"
301
+ end
302
+ # verify the required parameter 'period_start' is set
303
+ if @api_client.config.client_side_validation && period_start.nil?
304
+ fail ArgumentError, "Missing the required parameter 'period_start' when calling GoalsApi.goals_id_results_get"
305
+ end
306
+ # verify the required parameter 'period_end' is set
307
+ if @api_client.config.client_side_validation && period_end.nil?
308
+ fail ArgumentError, "Missing the required parameter 'period_end' when calling GoalsApi.goals_id_results_get"
309
+ end
310
+ # resource path
311
+ local_var_path = '/goals/{id}/results'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
312
+
313
+ # query parameters
314
+ query_params = opts[:query_params] || {}
315
+ query_params[:'period.start'] = period_start
316
+ query_params[:'period.end'] = period_end
317
+
318
+ # header parameters
319
+ header_params = opts[:header_params] || {}
320
+
321
+ # form parameters
322
+ form_params = opts[:form_params] || {}
323
+
324
+ # http body (model)
325
+ post_body = opts[:body]
326
+
327
+ # return_type
328
+ return_type = opts[:return_type]
329
+
330
+ # auth_names
331
+ auth_names = opts[:auth_names] || ['api_key']
332
+
333
+ new_options = opts.merge(
334
+ :header_params => header_params,
335
+ :query_params => query_params,
336
+ :form_params => form_params,
337
+ :body => post_body,
338
+ :auth_names => auth_names,
339
+ :return_type => return_type
340
+ )
341
+
342
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
343
+ if @api_client.config.debugging
344
+ @api_client.config.logger.debug "API called: GoalsApi#goals_id_results_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
345
+ end
346
+ return data, status_code, headers
347
+ end
348
+
349
+ # Add a new goal
350
+ # Adds a new goal.
351
+ # @param [Hash] opts the optional parameters
352
+ # @return [nil]
353
+ def goals_post(opts = {})
354
+ goals_post_with_http_info(opts)
355
+ nil
356
+ end
357
+
358
+ # Add a new goal
359
+ # Adds a new goal.
360
+ # @param [Hash] opts the optional parameters
361
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
362
+ def goals_post_with_http_info(opts = {})
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug 'Calling API: GoalsApi.goals_post ...'
365
+ end
366
+ # resource path
367
+ local_var_path = '/goals'
368
+
369
+ # query parameters
370
+ query_params = opts[:query_params] || {}
371
+
372
+ # header parameters
373
+ header_params = opts[:header_params] || {}
374
+ # HTTP header 'Content-Type'
375
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
376
+
377
+ # form parameters
378
+ form_params = opts[:form_params] || {}
379
+
380
+ # http body (model)
381
+ post_body = opts[:body]
382
+
383
+ # return_type
384
+ return_type = opts[:return_type]
385
+
386
+ # auth_names
387
+ auth_names = opts[:auth_names] || ['api_key']
388
+
389
+ new_options = opts.merge(
390
+ :header_params => header_params,
391
+ :query_params => query_params,
392
+ :form_params => form_params,
393
+ :body => post_body,
394
+ :auth_names => auth_names,
395
+ :return_type => return_type
396
+ )
397
+
398
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
399
+ if @api_client.config.debugging
400
+ @api_client.config.logger.debug "API called: GoalsApi#goals_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
401
+ end
402
+ return data, status_code, headers
403
+ end
404
+ end
405
+ end
@@ -0,0 +1,228 @@
1
+ =begin
2
+ #Pipedrive API v1
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Pipedrive
16
+ class ItemSearchApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Perform a search using a specific field from an item type
23
+ # 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).
24
+ # @param term [String] The search term to look for. Minimum 2 characters (or 1 if using exact_match).
25
+ # @param field_type [String] The type of the field to perform the search from
26
+ # @param field_key [String] 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&#39; API GET methods (dealFields, personFields, etc.).
27
+ # @param [Hash] opts the optional parameters
28
+ # @option opts [Boolean] :exact_match When enabled, only full exact matches against the given term are returned. The search &lt;b&gt;is&lt;/b&gt; case sensitive. (default to false)
29
+ # @option opts [Boolean] :return_item_ids Whether to return the IDs of the matching items or not. When not set or set to 0 or false, only distinct values of the searched field are returned. When set to 1 or true, the ID of each found item is returned.
30
+ # @option opts [Integer] :start Pagination start
31
+ # @option opts [Integer] :limit Items shown per page
32
+ # @return [BaseResponse]
33
+ def item_search_field_get(term, field_type, field_key, opts = {})
34
+ data, _status_code, _headers = item_search_field_get_with_http_info(term, field_type, field_key, opts)
35
+ data
36
+ end
37
+
38
+ # Perform a search using a specific field from an item type
39
+ # 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).
40
+ # @param term [String] The search term to look for. Minimum 2 characters (or 1 if using exact_match).
41
+ # @param field_type [String] The type of the field to perform the search from
42
+ # @param field_key [String] 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&#39; API GET methods (dealFields, personFields, etc.).
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [Boolean] :exact_match When enabled, only full exact matches against the given term are returned. The search &lt;b&gt;is&lt;/b&gt; case sensitive.
45
+ # @option opts [Boolean] :return_item_ids Whether to return the IDs of the matching items or not. When not set or set to 0 or false, only distinct values of the searched field are returned. When set to 1 or true, the ID of each found item is returned.
46
+ # @option opts [Integer] :start Pagination start
47
+ # @option opts [Integer] :limit Items shown per page
48
+ # @return [Array<(BaseResponse, Integer, Hash)>] BaseResponse data, response status code and response headers
49
+ def item_search_field_get_with_http_info(term, field_type, field_key, opts = {})
50
+ if @api_client.config.debugging
51
+ @api_client.config.logger.debug 'Calling API: ItemSearchApi.item_search_field_get ...'
52
+ end
53
+ # verify the required parameter 'term' is set
54
+ if @api_client.config.client_side_validation && term.nil?
55
+ fail ArgumentError, "Missing the required parameter 'term' when calling ItemSearchApi.item_search_field_get"
56
+ end
57
+ # verify the required parameter 'field_type' is set
58
+ if @api_client.config.client_side_validation && field_type.nil?
59
+ fail ArgumentError, "Missing the required parameter 'field_type' when calling ItemSearchApi.item_search_field_get"
60
+ end
61
+ # verify enum value
62
+ allowable_values = ["dealField", "personField", "organizationField", "productField"]
63
+ if @api_client.config.client_side_validation && !allowable_values.include?(field_type)
64
+ fail ArgumentError, "invalid value for \"field_type\", must be one of #{allowable_values}"
65
+ end
66
+ # verify the required parameter 'field_key' is set
67
+ if @api_client.config.client_side_validation && field_key.nil?
68
+ fail ArgumentError, "Missing the required parameter 'field_key' when calling ItemSearchApi.item_search_field_get"
69
+ end
70
+ allowable_values = ["true", "false"]
71
+ if @api_client.config.client_side_validation && opts[:'exact_match'] && !allowable_values.include?(opts[:'exact_match'])
72
+ fail ArgumentError, "invalid value for \"exact_match\", must be one of #{allowable_values}"
73
+ end
74
+ allowable_values = ["true", "false"]
75
+ if @api_client.config.client_side_validation && opts[:'return_item_ids'] && !allowable_values.include?(opts[:'return_item_ids'])
76
+ fail ArgumentError, "invalid value for \"return_item_ids\", must be one of #{allowable_values}"
77
+ end
78
+ # resource path
79
+ local_var_path = '/itemSearch/field'
80
+
81
+ # query parameters
82
+ query_params = opts[:query_params] || {}
83
+ query_params[:'term'] = term
84
+ query_params[:'field_type'] = field_type
85
+ query_params[:'field_key'] = field_key
86
+ query_params[:'exact_match'] = opts[:'exact_match'] if !opts[:'exact_match'].nil?
87
+ query_params[:'return_item_ids'] = opts[:'return_item_ids'] if !opts[:'return_item_ids'].nil?
88
+ query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
89
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
90
+
91
+ # header parameters
92
+ header_params = opts[:header_params] || {}
93
+ # HTTP header 'Accept' (if needed)
94
+ header_params['Accept'] = @api_client.select_header_accept(['applicatoin/json'])
95
+
96
+ # form parameters
97
+ form_params = opts[:form_params] || {}
98
+
99
+ # http body (model)
100
+ post_body = opts[:body]
101
+
102
+ # return_type
103
+ return_type = opts[:return_type] || 'BaseResponse'
104
+
105
+ # auth_names
106
+ auth_names = opts[:auth_names] || ['api_key', 'oauth2']
107
+
108
+ new_options = opts.merge(
109
+ :header_params => header_params,
110
+ :query_params => query_params,
111
+ :form_params => form_params,
112
+ :body => post_body,
113
+ :auth_names => auth_names,
114
+ :return_type => return_type
115
+ )
116
+
117
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
118
+ if @api_client.config.debugging
119
+ @api_client.config.logger.debug "API called: ItemSearchApi#item_search_field_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
120
+ end
121
+ return data, status_code, headers
122
+ end
123
+
124
+ # Perform a search from multiple item types
125
+ # Performs a search from your choice of item types and fields.
126
+ # @param term [String] The search term to look for. Minimum 2 characters (or 1 if using exact_match).
127
+ # @param [Hash] opts the optional parameters
128
+ # @option opts [String] :item_types A comma-separated string array. The type of items to perform the search from. Defaults to all.
129
+ # @option opts [String] :fields A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:&lt;br&gt; &lt;table&gt; &lt;tr&gt;&lt;th&gt;&lt;b&gt;Item type&lt;/b&gt;&lt;/th&gt;&lt;th&gt;&lt;b&gt;Field&lt;/b&gt;&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Deal&lt;/td&gt;&lt;td&gt;custom_fields, notes, title&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Person&lt;/td&gt;&lt;td&gt;custom_fields, email, name, notes, phone&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Organization&lt;/td&gt;&lt;td&gt;address, custom_fields, name, notes&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Product&lt;/td&gt;&lt;td&gt;code, custom_fields, name&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Lead&lt;/td&gt;&lt;td&gt;email, organization_name, person_name, phone, title&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;File&lt;/td&gt;&lt;td&gt;name&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Mail attachment&lt;/td&gt;&lt;td&gt;name&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;
130
+ # @option opts [Boolean] :search_for_related_items When enabled, the response will include up to 100 newest related Deals for each found Person and Organization and up to 100 newest related Persons for each found Organization.
131
+ # @option opts [Boolean] :exact_match When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
132
+ # @option opts [String] :include_fields A comma-separated string array. Supports including optional fields in the results which are not provided by default.
133
+ # @option opts [Integer] :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)
134
+ # @option opts [Integer] :limit Items shown per page
135
+ # @return [BaseResponse]
136
+ def item_search_get(term, opts = {})
137
+ data, _status_code, _headers = item_search_get_with_http_info(term, opts)
138
+ data
139
+ end
140
+
141
+ # Perform a search from multiple item types
142
+ # Performs a search from your choice of item types and fields.
143
+ # @param term [String] The search term to look for. Minimum 2 characters (or 1 if using exact_match).
144
+ # @param [Hash] opts the optional parameters
145
+ # @option opts [String] :item_types A comma-separated string array. The type of items to perform the search from. Defaults to all.
146
+ # @option opts [String] :fields A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:&lt;br&gt; &lt;table&gt; &lt;tr&gt;&lt;th&gt;&lt;b&gt;Item type&lt;/b&gt;&lt;/th&gt;&lt;th&gt;&lt;b&gt;Field&lt;/b&gt;&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Deal&lt;/td&gt;&lt;td&gt;custom_fields, notes, title&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Person&lt;/td&gt;&lt;td&gt;custom_fields, email, name, notes, phone&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Organization&lt;/td&gt;&lt;td&gt;address, custom_fields, name, notes&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Product&lt;/td&gt;&lt;td&gt;code, custom_fields, name&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Lead&lt;/td&gt;&lt;td&gt;email, organization_name, person_name, phone, title&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;File&lt;/td&gt;&lt;td&gt;name&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;Mail attachment&lt;/td&gt;&lt;td&gt;name&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt;
147
+ # @option opts [Boolean] :search_for_related_items When enabled, the response will include up to 100 newest related Deals for each found Person and Organization and up to 100 newest related Persons for each found Organization.
148
+ # @option opts [Boolean] :exact_match When enabled, only full exact matches against the given term are returned. It is &lt;b&gt;not&lt;/b&gt; case sensitive.
149
+ # @option opts [String] :include_fields A comma-separated string array. Supports including optional fields in the results which are not provided by default.
150
+ # @option opts [Integer] :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.
151
+ # @option opts [Integer] :limit Items shown per page
152
+ # @return [Array<(BaseResponse, Integer, Hash)>] BaseResponse data, response status code and response headers
153
+ def item_search_get_with_http_info(term, opts = {})
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug 'Calling API: ItemSearchApi.item_search_get ...'
156
+ end
157
+ # verify the required parameter 'term' is set
158
+ if @api_client.config.client_side_validation && term.nil?
159
+ fail ArgumentError, "Missing the required parameter 'term' when calling ItemSearchApi.item_search_get"
160
+ end
161
+ allowable_values = ["deal", "person", "organization", "product", "lead", "file", "mail_attachment"]
162
+ if @api_client.config.client_side_validation && opts[:'item_types'] && !allowable_values.include?(opts[:'item_types'])
163
+ fail ArgumentError, "invalid value for \"item_types\", must be one of #{allowable_values}"
164
+ end
165
+ allowable_values = ["address", "code", "custom_fields", "email", "name", "notes", "organization_name", "person_name", "phone", "title"]
166
+ if @api_client.config.client_side_validation && opts[:'fields'] && !allowable_values.include?(opts[:'fields'])
167
+ fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
168
+ end
169
+ allowable_values = ["true", "false"]
170
+ if @api_client.config.client_side_validation && opts[:'search_for_related_items'] && !allowable_values.include?(opts[:'search_for_related_items'])
171
+ fail ArgumentError, "invalid value for \"search_for_related_items\", must be one of #{allowable_values}"
172
+ end
173
+ allowable_values = ["true", "false"]
174
+ if @api_client.config.client_side_validation && opts[:'exact_match'] && !allowable_values.include?(opts[:'exact_match'])
175
+ fail ArgumentError, "invalid value for \"exact_match\", must be one of #{allowable_values}"
176
+ end
177
+ allowable_values = ["deal.cc_email", "person.picture", "product.price"]
178
+ if @api_client.config.client_side_validation && opts[:'include_fields'] && !allowable_values.include?(opts[:'include_fields'])
179
+ fail ArgumentError, "invalid value for \"include_fields\", must be one of #{allowable_values}"
180
+ end
181
+ # resource path
182
+ local_var_path = '/itemSearch'
183
+
184
+ # query parameters
185
+ query_params = opts[:query_params] || {}
186
+ query_params[:'term'] = term
187
+ query_params[:'item_types'] = opts[:'item_types'] if !opts[:'item_types'].nil?
188
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
189
+ query_params[:'search_for_related_items'] = opts[:'search_for_related_items'] if !opts[:'search_for_related_items'].nil?
190
+ query_params[:'exact_match'] = opts[:'exact_match'] if !opts[:'exact_match'].nil?
191
+ query_params[:'include_fields'] = opts[:'include_fields'] if !opts[:'include_fields'].nil?
192
+ query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
193
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
194
+
195
+ # header parameters
196
+ header_params = opts[:header_params] || {}
197
+ # HTTP header 'Accept' (if needed)
198
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
199
+
200
+ # form parameters
201
+ form_params = opts[:form_params] || {}
202
+
203
+ # http body (model)
204
+ post_body = opts[:body]
205
+
206
+ # return_type
207
+ return_type = opts[:return_type] || 'BaseResponse'
208
+
209
+ # auth_names
210
+ auth_names = opts[:auth_names] || ['api_key', 'oauth2']
211
+
212
+ new_options = opts.merge(
213
+ :header_params => header_params,
214
+ :query_params => query_params,
215
+ :form_params => form_params,
216
+ :body => post_body,
217
+ :auth_names => auth_names,
218
+ :return_type => return_type
219
+ )
220
+
221
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
222
+ if @api_client.config.debugging
223
+ @api_client.config.logger.debug "API called: ItemSearchApi#item_search_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
+ end
225
+ return data, status_code, headers
226
+ end
227
+ end
228
+ end