hubspot-api-client 10.0.0 → 11.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/Gemfile.lock +3 -3
  4. data/README.md +4 -0
  5. data/lib/hubspot/codegen/automation/actions/api_client.rb +12 -12
  6. data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
  7. data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +12 -12
  8. data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
  9. data/lib/hubspot/codegen/cms/blogs/authors/api_client.rb +12 -12
  10. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
  11. data/lib/hubspot/codegen/cms/blogs/blog-posts/api_client.rb +12 -12
  12. data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
  13. data/lib/hubspot/codegen/cms/blogs/tags/api_client.rb +12 -12
  14. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  15. data/lib/hubspot/codegen/cms/domains/api_client.rb +12 -12
  16. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  17. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
  18. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
  19. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
  20. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +13 -13
  21. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3.rb → batch_input_hub_db_table_row_v3_request.rb} +5 -5
  24. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  25. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  29. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  30. data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
  31. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  32. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  33. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  34. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
  36. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
  37. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
  38. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  39. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
  40. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  41. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  42. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  43. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  44. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  45. data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
  46. data/lib/hubspot/codegen/cms/performance/api_client.rb +12 -12
  47. data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
  48. data/lib/hubspot/codegen/cms/site-search/api_client.rb +12 -12
  49. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
  50. data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +12 -12
  51. data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +80 -0
  52. data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +214 -0
  53. data/lib/hubspot/codegen/communication_preferences/api_client.rb +404 -0
  54. data/lib/hubspot/codegen/communication_preferences/api_error.rb +59 -0
  55. data/lib/hubspot/codegen/communication_preferences/configuration.rb +254 -0
  56. data/lib/hubspot/codegen/communication_preferences/models/error.rb +290 -0
  57. data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +256 -0
  58. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +372 -0
  59. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +231 -0
  60. data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +283 -0
  61. data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +339 -0
  62. data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +216 -0
  63. data/lib/hubspot/codegen/conversations/visitor-identification/api_client.rb +12 -12
  64. data/lib/hubspot/codegen/crm/associations/api_client.rb +12 -12
  65. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
  66. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
  67. data/lib/hubspot/codegen/crm/companies/api_client.rb +12 -12
  68. data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
  69. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
  70. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
  71. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
  72. data/lib/hubspot/codegen/crm/contacts/api_client.rb +12 -12
  73. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
  74. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
  75. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
  76. data/lib/hubspot/codegen/crm/deals/api_client.rb +12 -12
  77. data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
  78. data/lib/hubspot/codegen/crm/extensions/accounting/api_client.rb +12 -12
  79. data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +24 -16
  80. data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +12 -12
  81. data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +1 -1
  82. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +14 -4
  83. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +14 -4
  84. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +16 -1
  85. data/lib/hubspot/codegen/crm/extensions/cards/api/cards_api.rb +25 -17
  86. data/lib/hubspot/codegen/crm/extensions/cards/api_client.rb +12 -12
  87. data/lib/hubspot/codegen/crm/extensions/cards/configuration.rb +1 -1
  88. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +12 -12
  89. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  90. data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
  91. data/lib/hubspot/codegen/crm/imports/api_client.rb +12 -12
  92. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
  93. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
  94. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
  95. data/lib/hubspot/codegen/crm/line_items/api_client.rb +12 -12
  96. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
  97. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
  98. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
  99. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
  100. data/lib/hubspot/codegen/crm/objects/api_client.rb +12 -12
  101. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
  102. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
  103. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_client.rb +12 -12
  104. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
  105. data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
  106. data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
  107. data/lib/hubspot/codegen/crm/owners/api_client.rb +12 -12
  108. data/lib/hubspot/codegen/crm/pipelines/api_client.rb +12 -12
  109. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
  110. data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
  111. data/lib/hubspot/codegen/crm/products/api_client.rb +12 -12
  112. data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
  113. data/lib/hubspot/codegen/crm/properties/api_client.rb +12 -12
  114. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
  115. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
  116. data/lib/hubspot/codegen/crm/quotes/api_client.rb +12 -12
  117. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
  118. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
  119. data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
  120. data/lib/hubspot/codegen/crm/schemas/api_client.rb +12 -12
  121. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
  122. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
  123. data/lib/hubspot/codegen/crm/tickets/api_client.rb +12 -12
  124. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
  125. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
  126. data/lib/hubspot/codegen/crm/timeline/api_client.rb +12 -12
  127. data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
  128. data/lib/hubspot/codegen/events/api_client.rb +12 -12
  129. data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
  130. data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
  131. data/lib/hubspot/codegen/files/files/api_client.rb +12 -12
  132. data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
  133. data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
  134. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
  135. data/lib/hubspot/codegen/marketing/transactional/api_client.rb +12 -12
  136. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
  137. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
  138. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
  139. data/lib/hubspot/codegen/oauth/api_client.rb +12 -12
  140. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
  141. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
  142. data/lib/hubspot/codegen/webhooks/api_client.rb +12 -12
  143. data/lib/hubspot/version.rb +1 -1
  144. data/lib/hubspot-api-client.rb +16 -3
  145. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
  146. data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
  147. data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
  148. data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
  149. data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
  150. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
  151. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
  152. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
  153. data/spec/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3_spec.rb → batch_input_hub_db_table_row_v3_request_spec.rb} +7 -7
  154. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  155. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  156. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  157. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  158. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  159. data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
  160. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  161. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  162. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  163. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  164. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  165. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  166. data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
  167. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
  168. data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
  169. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  170. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  171. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  172. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  173. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  174. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  175. data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
  176. data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
  177. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  178. data/spec/codegen/communication_preferences/api/definition_api_spec.rb +46 -0
  179. data/spec/codegen/communication_preferences/api/status_api_spec.rb +71 -0
  180. data/spec/codegen/communication_preferences/models/error_detail_spec.rb +65 -0
  181. data/spec/codegen/communication_preferences/models/error_spec.rb +77 -0
  182. data/spec/codegen/communication_preferences/models/public_subscription_status_spec.rb +101 -0
  183. data/spec/codegen/communication_preferences/models/public_subscription_statuses_response_spec.rb +47 -0
  184. data/spec/codegen/communication_preferences/models/public_update_subscription_status_request_spec.rb +63 -0
  185. data/spec/codegen/communication_preferences/models/subscription_definition_spec.rb +95 -0
  186. data/spec/codegen/communication_preferences/models/subscription_definitions_response_spec.rb +41 -0
  187. data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
  188. data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
  189. data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
  190. data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
  191. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
  192. data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
  193. data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
  194. data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
  195. data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
  196. data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
  197. data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +2 -2
  198. data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +6 -0
  199. data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +6 -0
  200. data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +6 -0
  201. data/spec/codegen/crm/extensions/cards/api/cards_api_spec.rb +2 -2
  202. data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
  203. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
  204. data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
  205. data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
  206. data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
  207. data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
  208. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
  209. data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
  210. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
  211. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
  212. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
  213. data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
  214. data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
  215. data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
  216. data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
  217. data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
  218. data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
  219. data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
  220. data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
  221. data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
  222. data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
  223. data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
  224. data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
  225. data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
  226. data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
  227. data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
  228. data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
  229. data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
  230. data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
  231. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
  232. data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
  233. data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
  234. data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
  235. data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
  236. data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
  237. data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
  238. data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
  239. data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
  240. data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
  241. data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
  242. data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
  243. data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
  244. data/spec/features/communication_preferences/definition_api_spec.rb +7 -0
  245. data/spec/features/communication_preferences/status_api_spec.rb +9 -0
  246. data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
  247. data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
  248. data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
  249. data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  250. data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
  251. data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
  252. data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
  253. data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
  254. data/spec/features/oauth/tokens_api_spec.rb +7 -0
  255. metadata +130 -82
  256. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
  257. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
  258. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
  259. data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
  260. data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
  261. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
  262. data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
  263. data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
  264. data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
  265. data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
  266. data/spec/features/crm/schemas/default_api_spec.rb +0 -7
  267. data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for Hubspot::Cms::Performance::DefaultApi
16
+ # Unit tests for Hubspot::Cms::Performance::PublicPerformanceApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'DefaultApi' do
19
+ describe 'PublicPerformanceApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::Cms::Performance::DefaultApi.new
22
+ @api_instance = Hubspot::Cms::Performance::PublicPerformanceApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::Cms::Performance::DefaultApi)
29
+ describe 'test an instance of PublicPerformanceApi' do
30
+ it 'should create an instance of PublicPerformanceApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::Cms::Performance::PublicPerformanceApi)
32
32
  end
33
33
  end
34
34
 
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for Hubspot::Cms::SiteSearch::DefaultApi
16
+ # Unit tests for Hubspot::Cms::SiteSearch::PublicApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'DefaultApi' do
19
+ describe 'PublicApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Hubspot::Cms::SiteSearch::DefaultApi.new
22
+ @api_instance = Hubspot::Cms::SiteSearch::PublicApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of DefaultApi' do
30
- it 'should create an instance of DefaultApi' do
31
- expect(@api_instance).to be_instance_of(Hubspot::Cms::SiteSearch::DefaultApi)
29
+ describe 'test an instance of PublicApi' do
30
+ it 'should create an instance of PublicApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::Cms::SiteSearch::PublicApi)
32
32
  end
33
33
  end
34
34
 
@@ -32,13 +32,13 @@ describe 'SearchHitField' do
32
32
  expect(@instance).to be_instance_of(Hubspot::Cms::SiteSearch::SearchHitField)
33
33
  end
34
34
  end
35
- describe 'test attribute "values"' do
35
+ describe 'test attribute "metadata_field"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "metadata_field"' do
41
+ describe 'test attribute "values"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #Subscriptions
3
+
4
+ #Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Hubspot::CommunicationPreferences::DefinitionApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DefinitionApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Hubspot::CommunicationPreferences::DefinitionApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DefinitionApi' do
30
+ it 'should create an instance of DefinitionApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::CommunicationPreferences::DefinitionApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_page
36
+ # Get subscription definitions
37
+ # Get a list of all subscription definitions for the portal
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [SubscriptionDefinitionsResponse]
40
+ describe 'get_page test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #Subscriptions
3
+
4
+ #Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Hubspot::CommunicationPreferences::StatusApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'StatusApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Hubspot::CommunicationPreferences::StatusApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of StatusApi' do
30
+ it 'should create an instance of StatusApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::CommunicationPreferences::StatusApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_email_status
36
+ # Get subscription statuses for a contact
37
+ # Returns a list of subscriptions and their status for a given contact.
38
+ # @param email_address
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [PublicSubscriptionStatusesResponse]
41
+ describe 'get_email_status test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for subscribe
48
+ # Subscribe a contact
49
+ # Subscribes a contact to the given subscription type. This API is not valid to use for subscribing a contact at a brand or portal level and will return an error.
50
+ # @param public_update_subscription_status_request
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [PublicSubscriptionStatus]
53
+ describe 'subscribe test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for unsubscribe
60
+ # Unsubscribe a contact
61
+ # Unsubscribes a contact from the given subscription type. This API is not valid to use for unsubscribing a contact at a brand or portal level and will return an error.
62
+ # @param public_update_subscription_status_request
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [PublicSubscriptionStatus]
65
+ describe 'unsubscribe test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,65 @@
1
+ =begin
2
+ #Subscriptions
3
+
4
+ #Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Hubspot::CommunicationPreferences::ErrorDetail
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'ErrorDetail' do
21
+ before do
22
+ # run before each test
23
+ @instance = Hubspot::CommunicationPreferences::ErrorDetail.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of ErrorDetail' do
31
+ it 'should create an instance of ErrorDetail' do
32
+ expect(@instance).to be_instance_of(Hubspot::CommunicationPreferences::ErrorDetail)
33
+ end
34
+ end
35
+ describe 'test attribute "message"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "_in"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "code"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "sub_category"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "context"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ end
@@ -0,0 +1,77 @@
1
+ =begin
2
+ #Subscriptions
3
+
4
+ #Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Hubspot::CommunicationPreferences::Error
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'Error' do
21
+ before do
22
+ # run before each test
23
+ @instance = Hubspot::CommunicationPreferences::Error.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Error' do
31
+ it 'should create an instance of Error' do
32
+ expect(@instance).to be_instance_of(Hubspot::CommunicationPreferences::Error)
33
+ end
34
+ end
35
+ describe 'test attribute "message"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "correlation_id"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "category"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "sub_category"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "errors"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "context"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "links"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ end
@@ -0,0 +1,101 @@
1
+ =begin
2
+ #Subscriptions
3
+
4
+ #Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Hubspot::CommunicationPreferences::PublicSubscriptionStatus
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PublicSubscriptionStatus' do
21
+ before do
22
+ # run before each test
23
+ @instance = Hubspot::CommunicationPreferences::PublicSubscriptionStatus.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PublicSubscriptionStatus' do
31
+ it 'should create an instance of PublicSubscriptionStatus' do
32
+ expect(@instance).to be_instance_of(Hubspot::CommunicationPreferences::PublicSubscriptionStatus)
33
+ end
34
+ end
35
+ describe 'test attribute "id"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "name"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "description"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "status"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SUBSCRIBED", "NOT_SUBSCRIBED"])
57
+ # validator.allowable_values.each do |value|
58
+ # expect { @instance.status = value }.not_to raise_error
59
+ # end
60
+ end
61
+ end
62
+
63
+ describe 'test attribute "source_of_status"' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PORTAL_WIDE_STATUS", "BRAND_WIDE_STATUS", "SUBSCRIPTION_STATUS"])
67
+ # validator.allowable_values.each do |value|
68
+ # expect { @instance.source_of_status = value }.not_to raise_error
69
+ # end
70
+ end
71
+ end
72
+
73
+ describe 'test attribute "brand_id"' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
79
+ describe 'test attribute "preference_group_name"' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
85
+ describe 'test attribute "legal_basis"' do
86
+ it 'should work' do
87
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
88
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["LEGITIMATE_INTEREST_PQL", "LEGITIMATE_INTEREST_CLIENT", "PERFORMANCE_OF_CONTRACT", "CONSENT_WITH_NOTICE", "NON_GDPR", "PROCESS_AND_STORE", "LEGITIMATE_INTEREST_OTHER"])
89
+ # validator.allowable_values.each do |value|
90
+ # expect { @instance.legal_basis = value }.not_to raise_error
91
+ # end
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "legal_basis_explanation"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #Subscriptions
3
+
4
+ #Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Hubspot::CommunicationPreferences::PublicSubscriptionStatusesResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PublicSubscriptionStatusesResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = Hubspot::CommunicationPreferences::PublicSubscriptionStatusesResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PublicSubscriptionStatusesResponse' do
31
+ it 'should create an instance of PublicSubscriptionStatusesResponse' do
32
+ expect(@instance).to be_instance_of(Hubspot::CommunicationPreferences::PublicSubscriptionStatusesResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "recipient"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "subscription_statuses"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end