notifo-io 1.0.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (344) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +838 -156
  3. data/docs/AddContributorDto.md +1 -1
  4. data/docs/AdminProfileDto.md +7 -0
  5. data/docs/AppDetailsDto.md +3 -1
  6. data/docs/AppDto.md +2 -0
  7. data/docs/AppsApi.md +1 -187
  8. data/docs/{NotificationSend.md → ChannelCondition.md} +1 -1
  9. data/docs/{EventProperties.md → ChannelSend.md} +1 -1
  10. data/docs/ChannelSendInfoDto.md +13 -0
  11. data/docs/ChannelSettingDto.md +11 -0
  12. data/docs/ChannelTemplateDetailsDtoOfEmailTemplateDto.md +12 -0
  13. data/docs/ChannelTemplateDetailsDtoOfMessagingTemplateDto.md +12 -0
  14. data/docs/ChannelTemplateDetailsDtoOfSmsTemplateDto.md +12 -0
  15. data/docs/ChannelTemplateDto.md +11 -0
  16. data/docs/ConfigsApi.md +1 -1
  17. data/docs/ConfiguredIntegrationDto.md +2 -1
  18. data/docs/CreateChannelTemplateDto.md +7 -0
  19. data/docs/{CreateEmailTemplateDto.md → CreateChannelTemplateLanguageDto.md} +1 -1
  20. data/docs/CreateIntegrationDto.md +1 -1
  21. data/docs/CreateSystemUserDto.md +9 -0
  22. data/docs/DiagnosticsApi.md +85 -0
  23. data/docs/EmailFormattingError.md +10 -0
  24. data/docs/EmailPreviewDto.md +8 -0
  25. data/docs/EmailPreviewRequestDto.md +9 -0
  26. data/docs/{EmailTemplatesDto.md → EmailPreviewType.md} +1 -1
  27. data/docs/EmailTemplateDto.md +3 -0
  28. data/docs/{IntegrationProperties.md → EmailTemplateType.md} +1 -1
  29. data/docs/EmailTemplatesApi.md +488 -0
  30. data/docs/ErrorDto.md +1 -0
  31. data/docs/EventDto.md +1 -1
  32. data/docs/EventsApi.md +8 -6
  33. data/docs/HandledInfoDto.md +8 -0
  34. data/docs/{EmailVerificationStatus.md → InfoDto.md} +2 -1
  35. data/docs/IntegrationPropertyDto.md +3 -1
  36. data/docs/ListResponseDtoOfChannelTemplateDto.md +8 -0
  37. data/docs/ListResponseDtoOfMobilePushTokenDto.md +1 -1
  38. data/docs/{ListResponseDtoOfNotificationDto.md → ListResponseDtoOfSystemUserDto.md} +2 -2
  39. data/docs/ListResponseDtoOfUserNotificationDetailsDto.md +8 -0
  40. data/docs/ListResponseDtoOfUserNotificationDto.md +8 -0
  41. data/docs/LogsApi.md +1 -1
  42. data/docs/MediaApi.md +154 -4
  43. data/docs/MediaDto.md +3 -1
  44. data/docs/MessagingTemplateDto.md +7 -0
  45. data/docs/MessagingTemplatesApi.md +394 -0
  46. data/docs/MobilePushApi.md +16 -16
  47. data/docs/MobilePushTokenDto.md +4 -2
  48. data/docs/MobilePushTokenDto2.md +9 -0
  49. data/docs/NotificationFormattingDto.md +1 -1
  50. data/docs/NotificationProperties.md +6 -0
  51. data/docs/NotificationsApi.md +202 -20
  52. data/docs/PingApi.md +131 -0
  53. data/docs/ProcessStatus.md +6 -0
  54. data/docs/ProfileDto.md +2 -1
  55. data/docs/PropertyType.md +6 -0
  56. data/docs/PublishDto.md +4 -2
  57. data/docs/RegisterMobileTokenDto.md +1 -0
  58. data/docs/SendConfiguration.md +6 -0
  59. data/docs/{Body.md → SmsTemplateDto.md} +2 -2
  60. data/docs/SmsTemplatesApi.md +394 -0
  61. data/docs/SubscribeDto.md +8 -0
  62. data/docs/SubscribeManyDto.md +8 -0
  63. data/docs/SubscriptionDto.md +1 -1
  64. data/docs/SystemUserDto.md +11 -0
  65. data/docs/SystemUsersApi.md +328 -0
  66. data/docs/TemplateDto.md +3 -1
  67. data/docs/TemplatesApi.md +4 -5
  68. data/docs/TopicChannel.md +6 -0
  69. data/docs/TopicDto.md +7 -1
  70. data/docs/TopicQueryScope.md +6 -0
  71. data/docs/TopicsApi.md +96 -1
  72. data/docs/TrackNotificationDto.md +1 -0
  73. data/docs/UpdateChannelTemplateDtoOfEmailTemplateDto.md +9 -0
  74. data/docs/UpdateChannelTemplateDtoOfMessagingTemplateDto.md +9 -0
  75. data/docs/UpdateChannelTemplateDtoOfSmsTemplateDto.md +9 -0
  76. data/docs/UpdateIntegrationDto.md +2 -1
  77. data/docs/UpdateProfileDto.md +1 -1
  78. data/docs/UpdateSystemUserDto.md +9 -0
  79. data/docs/UpsertTemplateDto.md +1 -1
  80. data/docs/UpsertTopicDto.md +11 -0
  81. data/docs/UpsertTopicsDto.md +7 -0
  82. data/docs/UpsertUserDto.md +2 -2
  83. data/docs/UserApi.md +160 -22
  84. data/docs/UserDto.md +8 -4
  85. data/docs/UserNotificationBaseDto.md +24 -0
  86. data/docs/UserNotificationChannelDto.md +11 -0
  87. data/docs/UserNotificationDetailsDto.md +28 -0
  88. data/docs/{NotificationDto.md → UserNotificationDto.md} +10 -5
  89. data/docs/UserPropertyDto.md +9 -0
  90. data/docs/UserTopicDto.md +11 -0
  91. data/docs/UsersApi.md +134 -34
  92. data/docs/WebPushSubscriptionDto.md +7 -0
  93. data/lib/notifo/api/apps_api.rb +1 -245
  94. data/lib/notifo/api/configs_api.rb +1 -1
  95. data/lib/notifo/api/{user_info_api.rb → diagnostics_api.rb} +19 -15
  96. data/lib/notifo/api/email_templates_api.rb +663 -0
  97. data/lib/notifo/api/events_api.rb +10 -7
  98. data/lib/notifo/api/logs_api.rb +1 -1
  99. data/lib/notifo/api/media_api.rb +197 -2
  100. data/lib/notifo/api/messaging_templates_api.rb +541 -0
  101. data/lib/notifo/api/mobile_push_api.rb +18 -18
  102. data/lib/notifo/api/notifications_api.rb +246 -24
  103. data/lib/notifo/api/{authorization_api.rb → ping_api.rb} +37 -25
  104. data/lib/notifo/api/sms_templates_api.rb +541 -0
  105. data/lib/notifo/api/system_users_api.rb +411 -0
  106. data/lib/notifo/api/templates_api.rb +6 -6
  107. data/lib/notifo/api/topics_api.rb +126 -1
  108. data/lib/notifo/api/user_api.rb +186 -27
  109. data/lib/notifo/api/users_api.rb +171 -33
  110. data/lib/notifo/api_client.rb +1 -1
  111. data/lib/notifo/api_error.rb +1 -1
  112. data/lib/notifo/configuration.rb +3 -3
  113. data/lib/notifo/models/add_allowed_topic_dto.rb +1 -1
  114. data/lib/notifo/models/add_contributor_dto.rb +2 -6
  115. data/lib/notifo/models/{body.rb → admin_profile_dto.rb} +13 -11
  116. data/lib/notifo/models/app_contributor_dto.rb +1 -1
  117. data/lib/notifo/models/app_details_dto.rb +41 -11
  118. data/lib/notifo/models/app_dto.rb +32 -2
  119. data/lib/notifo/models/app_id_media_body.rb +1 -1
  120. data/lib/notifo/models/channel_condition.rb +30 -0
  121. data/lib/notifo/models/{notification_send.rb → channel_send.rb} +4 -4
  122. data/lib/notifo/models/channel_send_info_dto.rb +269 -0
  123. data/lib/notifo/models/channel_setting_dto.rb +256 -0
  124. data/lib/notifo/models/channel_template_details_dto_of_email_template_dto.rb +285 -0
  125. data/lib/notifo/models/channel_template_details_dto_of_messaging_template_dto.rb +285 -0
  126. data/lib/notifo/models/channel_template_details_dto_of_sms_template_dto.rb +285 -0
  127. data/lib/notifo/models/channel_template_dto.rb +264 -0
  128. data/lib/notifo/models/configured_integration_dto.rb +17 -3
  129. data/lib/notifo/models/configured_integrations_dto.rb +1 -1
  130. data/lib/notifo/models/confirm_mode.rb +2 -3
  131. data/lib/notifo/models/{integration_properties.rb → create_channel_template_dto.rb} +18 -11
  132. data/lib/notifo/models/{create_email_template_dto.rb → create_channel_template_language_dto.rb} +4 -4
  133. data/lib/notifo/models/create_integration_dto.rb +7 -2
  134. data/lib/notifo/models/create_system_user_dto.rb +240 -0
  135. data/lib/notifo/models/email_formatting_error.rb +233 -0
  136. data/lib/notifo/models/email_preview_dto.rb +221 -0
  137. data/lib/notifo/models/email_preview_request_dto.rb +232 -0
  138. data/lib/notifo/models/email_preview_type.rb +28 -0
  139. data/lib/notifo/models/email_template_dto.rb +39 -6
  140. data/lib/notifo/models/email_template_type.rb +30 -0
  141. data/lib/notifo/models/error_dto.rb +13 -2
  142. data/lib/notifo/models/event_dto.rb +1 -1
  143. data/lib/notifo/models/handled_info_dto.rb +218 -0
  144. data/lib/notifo/models/info_dto.rb +212 -0
  145. data/lib/notifo/models/integration_created_dto.rb +1 -1
  146. data/lib/notifo/models/integration_definition_dto.rb +1 -1
  147. data/lib/notifo/models/integration_property_dto.rb +30 -2
  148. data/lib/notifo/models/integration_status.rb +1 -1
  149. data/lib/notifo/models/iso_day_of_week.rb +1 -1
  150. data/lib/notifo/models/list_response_dto_of_channel_template_dto.rb +229 -0
  151. data/lib/notifo/models/list_response_dto_of_event_dto.rb +1 -1
  152. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +1 -1
  153. data/lib/notifo/models/list_response_dto_of_media_dto.rb +1 -1
  154. data/lib/notifo/models/list_response_dto_of_mobile_push_token_dto.rb +1 -1
  155. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +1 -1
  156. data/lib/notifo/models/{list_response_dto_of_notification_dto.rb → list_response_dto_of_system_user_dto.rb} +4 -4
  157. data/lib/notifo/models/list_response_dto_of_template_dto.rb +1 -1
  158. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +1 -1
  159. data/lib/notifo/models/list_response_dto_of_user_dto.rb +1 -1
  160. data/lib/notifo/models/list_response_dto_of_user_notification_details_dto.rb +229 -0
  161. data/lib/notifo/models/list_response_dto_of_user_notification_dto.rb +229 -0
  162. data/lib/notifo/models/localized_text.rb +1 -1
  163. data/lib/notifo/models/log_entry_dto.rb +1 -1
  164. data/lib/notifo/models/media_dto.rb +42 -12
  165. data/lib/notifo/models/media_metadata.rb +1 -1
  166. data/lib/notifo/models/media_type.rb +1 -1
  167. data/lib/notifo/models/messaging_template_dto.rb +212 -0
  168. data/lib/notifo/models/mobile_device_type.rb +1 -1
  169. data/lib/notifo/models/mobile_push_token_dto.rb +33 -6
  170. data/lib/notifo/models/mobile_push_token_dto2.rb +232 -0
  171. data/lib/notifo/models/notification_formatting_dto.rb +1 -6
  172. data/lib/notifo/models/{event_properties.rb → notification_properties.rb} +4 -4
  173. data/lib/notifo/models/{email_verification_status.rb → process_status.rb} +8 -7
  174. data/lib/notifo/models/profile_dto.rb +14 -2
  175. data/lib/notifo/models/{integration_property_type.rb → property_type.rb} +4 -4
  176. data/lib/notifo/models/publish_dto.rb +26 -2
  177. data/lib/notifo/models/publish_many_dto.rb +1 -1
  178. data/lib/notifo/models/register_mobile_token_dto.rb +16 -5
  179. data/lib/notifo/models/resize_mode.rb +1 -1
  180. data/lib/notifo/models/scheduling_dto.rb +1 -1
  181. data/lib/notifo/models/scheduling_type.rb +1 -1
  182. data/lib/notifo/models/{email_templates_dto.rb → send_configuration.rb} +4 -4
  183. data/lib/notifo/models/sms_template_dto.rb +212 -0
  184. data/lib/notifo/models/subscribe_dto.rb +225 -0
  185. data/lib/notifo/models/{notification_setting_dto.rb → subscribe_many_dto.rb} +25 -24
  186. data/lib/notifo/models/subscription_dto.rb +6 -2
  187. data/lib/notifo/models/system_user_dto.rb +269 -0
  188. data/lib/notifo/models/template_dto.rb +32 -2
  189. data/lib/notifo/models/topic_channel.rb +28 -0
  190. data/lib/notifo/models/topic_dto.rb +69 -3
  191. data/lib/notifo/models/topic_query_scope.rb +29 -0
  192. data/lib/notifo/models/track_notification_dto.rb +12 -2
  193. data/lib/notifo/models/update_channel_template_dto_of_email_template_dto.rb +232 -0
  194. data/lib/notifo/models/update_channel_template_dto_of_messaging_template_dto.rb +232 -0
  195. data/lib/notifo/models/update_channel_template_dto_of_sms_template_dto.rb +232 -0
  196. data/lib/notifo/models/update_integration_dto.rb +19 -3
  197. data/lib/notifo/models/update_profile_dto.rb +1 -1
  198. data/lib/notifo/models/update_system_user_dto.rb +240 -0
  199. data/lib/notifo/models/upsert_app_dto.rb +1 -1
  200. data/lib/notifo/models/upsert_template_dto.rb +1 -1
  201. data/lib/notifo/models/upsert_templates_dto.rb +1 -1
  202. data/lib/notifo/models/upsert_topic_dto.rb +249 -0
  203. data/lib/notifo/models/upsert_topics_dto.rb +214 -0
  204. data/lib/notifo/models/upsert_user_dto.rb +15 -13
  205. data/lib/notifo/models/upsert_users_dto.rb +1 -1
  206. data/lib/notifo/models/user_dto.rb +96 -36
  207. data/lib/notifo/models/{notification_dto.rb → user_notification_base_dto.rb} +73 -46
  208. data/lib/notifo/models/user_notification_channel_dto.rb +261 -0
  209. data/lib/notifo/models/user_notification_details_dto.rb +461 -0
  210. data/lib/notifo/models/user_notification_dto.rb +447 -0
  211. data/lib/notifo/models/user_property_dto.rb +234 -0
  212. data/lib/notifo/models/user_topic_dto.rb +265 -0
  213. data/lib/notifo/models/web_push_subscription_dto.rb +212 -0
  214. data/lib/notifo/version.rb +1 -1
  215. data/lib/notifo.rb +55 -12
  216. data/notifo.gemspec +3 -4
  217. data/spec/api/apps_api_spec.rb +20 -20
  218. data/spec/api/configs_api_spec.rb +1 -1
  219. data/spec/api/{user_info_api_spec.rb → diagnostics_api_spec.rb} +13 -11
  220. data/spec/api/email_templates_api_spec.rb +161 -0
  221. data/spec/api/events_api_spec.rb +13 -1
  222. data/spec/api/logs_api_spec.rb +1 -1
  223. data/spec/api/media_api_spec.rb +52 -1
  224. data/spec/api/messaging_templates_api_spec.rb +137 -0
  225. data/spec/api/mobile_push_api_spec.rb +7 -7
  226. data/spec/api/notifications_api_spec.rb +62 -9
  227. data/spec/api/{authorization_api_spec.rb → ping_api_spec.rb} +20 -14
  228. data/spec/api/sms_templates_api_spec.rb +137 -0
  229. data/spec/api/system_users_api_spec.rb +114 -0
  230. data/spec/api/templates_api_spec.rb +2 -2
  231. data/spec/api/topics_api_spec.rb +26 -1
  232. data/spec/api/user_api_spec.rb +43 -8
  233. data/spec/api/users_api_spec.rb +41 -13
  234. data/spec/api_client_spec.rb +1 -1
  235. data/spec/configuration_spec.rb +4 -4
  236. data/spec/models/add_allowed_topic_dto_spec.rb +1 -1
  237. data/spec/models/add_contributor_dto_spec.rb +1 -1
  238. data/spec/models/admin_profile_dto_spec.rb +40 -0
  239. data/spec/models/app_contributor_dto_spec.rb +1 -1
  240. data/spec/models/app_details_dto_spec.rb +4 -40
  241. data/spec/models/app_dto_spec.rb +13 -1
  242. data/spec/models/app_id_media_body_spec.rb +1 -1
  243. data/spec/models/{notification_send_spec.rb → channel_condition_spec.rb} +7 -7
  244. data/spec/models/channel_send_info_dto_spec.rb +76 -0
  245. data/spec/models/{event_properties_spec.rb → channel_send_spec.rb} +7 -7
  246. data/spec/models/channel_setting_dto_spec.rb +64 -0
  247. data/spec/models/channel_template_details_dto_of_email_template_dto_spec.rb +70 -0
  248. data/spec/models/channel_template_details_dto_of_messaging_template_dto_spec.rb +70 -0
  249. data/spec/models/channel_template_details_dto_of_sms_template_dto_spec.rb +70 -0
  250. data/spec/models/channel_template_dto_spec.rb +64 -0
  251. data/spec/models/configured_integration_dto_spec.rb +7 -1
  252. data/spec/models/configured_integrations_dto_spec.rb +1 -1
  253. data/spec/models/confirm_mode_spec.rb +1 -1
  254. data/spec/models/create_channel_template_dto_spec.rb +40 -0
  255. data/spec/models/{create_email_template_dto_spec.rb → create_channel_template_language_dto_spec.rb} +7 -7
  256. data/spec/models/create_integration_dto_spec.rb +1 -1
  257. data/spec/models/create_system_user_dto_spec.rb +52 -0
  258. data/spec/models/email_formatting_error_spec.rb +58 -0
  259. data/spec/models/{notification_setting_dto_spec.rb → email_preview_dto_spec.rb} +9 -9
  260. data/spec/models/email_preview_request_dto_spec.rb +52 -0
  261. data/spec/models/{email_templates_dto_spec.rb → email_preview_type_spec.rb} +7 -7
  262. data/spec/models/email_template_dto_spec.rb +19 -1
  263. data/spec/models/{integration_properties_spec.rb → email_template_type_spec.rb} +7 -7
  264. data/spec/models/error_dto_spec.rb +7 -1
  265. data/spec/models/event_dto_spec.rb +7 -1
  266. data/spec/models/handled_info_dto_spec.rb +46 -0
  267. data/spec/models/{body_spec.rb → info_dto_spec.rb} +8 -8
  268. data/spec/models/integration_created_dto_spec.rb +1 -1
  269. data/spec/models/integration_definition_dto_spec.rb +1 -1
  270. data/spec/models/integration_property_dto_spec.rb +13 -1
  271. data/spec/models/integration_status_spec.rb +1 -1
  272. data/spec/models/iso_day_of_week_spec.rb +1 -1
  273. data/spec/models/list_response_dto_of_channel_template_dto_spec.rb +46 -0
  274. data/spec/models/list_response_dto_of_event_dto_spec.rb +1 -1
  275. data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +1 -1
  276. data/spec/models/list_response_dto_of_media_dto_spec.rb +1 -1
  277. data/spec/models/list_response_dto_of_mobile_push_token_dto_spec.rb +1 -1
  278. data/spec/models/list_response_dto_of_subscription_dto_spec.rb +1 -1
  279. data/spec/models/{list_response_dto_of_notification_dto_spec.rb → list_response_dto_of_system_user_dto_spec.rb} +7 -7
  280. data/spec/models/list_response_dto_of_template_dto_spec.rb +1 -1
  281. data/spec/models/list_response_dto_of_topic_dto_spec.rb +1 -1
  282. data/spec/models/list_response_dto_of_user_dto_spec.rb +1 -1
  283. data/spec/models/list_response_dto_of_user_notification_details_dto_spec.rb +46 -0
  284. data/spec/models/list_response_dto_of_user_notification_dto_spec.rb +46 -0
  285. data/spec/models/localized_text_spec.rb +1 -1
  286. data/spec/models/log_entry_dto_spec.rb +1 -1
  287. data/spec/models/media_dto_spec.rb +14 -2
  288. data/spec/models/media_metadata_spec.rb +1 -1
  289. data/spec/models/media_type_spec.rb +1 -1
  290. data/spec/models/messaging_template_dto_spec.rb +40 -0
  291. data/spec/models/mobile_device_type_spec.rb +1 -1
  292. data/spec/models/mobile_push_token_dto2_spec.rb +52 -0
  293. data/spec/models/mobile_push_token_dto_spec.rb +13 -1
  294. data/spec/models/notification_formatting_dto_spec.rb +1 -1
  295. data/spec/models/notification_properties_spec.rb +34 -0
  296. data/spec/models/process_status_spec.rb +34 -0
  297. data/spec/models/profile_dto_spec.rb +7 -1
  298. data/spec/models/property_type_spec.rb +34 -0
  299. data/spec/models/publish_dto_spec.rb +25 -1
  300. data/spec/models/publish_many_dto_spec.rb +1 -1
  301. data/spec/models/register_mobile_token_dto_spec.rb +7 -1
  302. data/spec/models/resize_mode_spec.rb +1 -1
  303. data/spec/models/scheduling_dto_spec.rb +1 -1
  304. data/spec/models/scheduling_type_spec.rb +1 -1
  305. data/spec/models/send_configuration_spec.rb +34 -0
  306. data/spec/models/{integration_property_type_spec.rb → sms_template_dto_spec.rb} +13 -7
  307. data/spec/models/subscribe_dto_spec.rb +46 -0
  308. data/spec/models/subscribe_many_dto_spec.rb +46 -0
  309. data/spec/models/subscription_dto_spec.rb +1 -1
  310. data/spec/models/system_user_dto_spec.rb +64 -0
  311. data/spec/models/template_dto_spec.rb +13 -1
  312. data/spec/models/topic_channel_spec.rb +34 -0
  313. data/spec/models/topic_dto_spec.rb +37 -1
  314. data/spec/models/topic_query_scope_spec.rb +34 -0
  315. data/spec/models/track_notification_dto_spec.rb +7 -1
  316. data/spec/models/update_channel_template_dto_of_email_template_dto_spec.rb +52 -0
  317. data/spec/models/update_channel_template_dto_of_messaging_template_dto_spec.rb +52 -0
  318. data/spec/models/update_channel_template_dto_of_sms_template_dto_spec.rb +52 -0
  319. data/spec/models/update_integration_dto_spec.rb +7 -1
  320. data/spec/models/update_profile_dto_spec.rb +1 -1
  321. data/spec/models/update_system_user_dto_spec.rb +52 -0
  322. data/spec/models/upsert_app_dto_spec.rb +1 -1
  323. data/spec/models/upsert_template_dto_spec.rb +1 -1
  324. data/spec/models/upsert_templates_dto_spec.rb +1 -1
  325. data/spec/models/upsert_topic_dto_spec.rb +64 -0
  326. data/spec/models/upsert_topics_dto_spec.rb +40 -0
  327. data/spec/models/upsert_user_dto_spec.rb +7 -1
  328. data/spec/models/upsert_users_dto_spec.rb +1 -1
  329. data/spec/models/user_dto_spec.rb +43 -1
  330. data/spec/models/{notification_dto_spec.rb → user_notification_base_dto_spec.rb} +29 -11
  331. data/spec/models/user_notification_channel_dto_spec.rb +64 -0
  332. data/spec/models/user_notification_details_dto_spec.rb +166 -0
  333. data/spec/models/user_notification_dto_spec.rb +154 -0
  334. data/spec/models/user_property_dto_spec.rb +52 -0
  335. data/spec/models/user_topic_dto_spec.rb +64 -0
  336. data/spec/models/web_push_subscription_dto_spec.rb +40 -0
  337. data/spec/spec_helper.rb +1 -1
  338. metadata +232 -69
  339. data/docs/AuthorizationApi.md +0 -121
  340. data/docs/IntegrationPropertyType.md +0 -6
  341. data/docs/NotificationSettingDto.md +0 -8
  342. data/docs/UserInfoApi.md +0 -83
  343. data/notifo-io-1.0.1.1.gem +0 -0
  344. data/spec/models/email_verification_status_spec.rb +0 -34
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.26
9
+ Swagger Codegen version: 3.0.36
10
10
  =end
11
11
 
12
12
  module Notifo
@@ -16,31 +16,31 @@ module Notifo
16
16
  def initialize(api_client = ApiClient.default)
17
17
  @api_client = api_client
18
18
  end
19
- # Deletes a user subscription.
19
+ # Remove my subscription.
20
20
  # User Id and App Id are resolved using the API token.
21
- # @param topic The topic path.
21
+ # @param prefix The topic prefix.
22
22
  # @param [Hash] opts the optional parameters
23
23
  # @return [nil]
24
- def user_delete_subscription(topic, opts = {})
25
- user_delete_subscription_with_http_info(topic, opts)
24
+ def user_delete_subscription(prefix, opts = {})
25
+ user_delete_subscription_with_http_info(prefix, opts)
26
26
  nil
27
27
  end
28
28
 
29
- # Deletes a user subscription.
29
+ # Remove my subscription.
30
30
  # User Id and App Id are resolved using the API token.
31
- # @param topic The topic path.
31
+ # @param prefix The topic prefix.
32
32
  # @param [Hash] opts the optional parameters
33
33
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
34
- def user_delete_subscription_with_http_info(topic, opts = {})
34
+ def user_delete_subscription_with_http_info(prefix, opts = {})
35
35
  if @api_client.config.debugging
36
36
  @api_client.config.logger.debug 'Calling API: UserApi.user_delete_subscription ...'
37
37
  end
38
- # verify the required parameter 'topic' is set
39
- if @api_client.config.client_side_validation && topic.nil?
40
- fail ArgumentError, "Missing the required parameter 'topic' when calling UserApi.user_delete_subscription"
38
+ # verify the required parameter 'prefix' is set
39
+ if @api_client.config.client_side_validation && prefix.nil?
40
+ fail ArgumentError, "Missing the required parameter 'prefix' when calling UserApi.user_delete_subscription"
41
41
  end
42
42
  # resource path
43
- local_var_path = '/api/me/subscriptions/{topic}'.sub('{' + 'topic' + '}', topic.to_s)
43
+ local_var_path = '/api/me/subscriptions/{prefix}'.sub('{' + 'prefix' + '}', prefix.to_s)
44
44
 
45
45
  # query parameters
46
46
  query_params = opts[:query_params] || {}
@@ -59,7 +59,7 @@ module Notifo
59
59
  return_type = opts[:return_type]
60
60
 
61
61
  auth_names = opts[:auth_names] || []
62
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
62
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
63
63
  :header_params => header_params,
64
64
  :query_params => query_params,
65
65
  :form_params => form_params,
@@ -72,13 +72,61 @@ module Notifo
72
72
  end
73
73
  return data, status_code, headers
74
74
  end
75
+ # Get the current admin user.
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [AdminProfileDto]
78
+ def user_get_admin_user(opts = {})
79
+ data, _status_code, _headers = user_get_admin_user_with_http_info(opts)
80
+ data
81
+ end
82
+
83
+ # Get the current admin user.
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [Array<(AdminProfileDto, Integer, Hash)>] AdminProfileDto data, response status code and response headers
86
+ def user_get_admin_user_with_http_info(opts = {})
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug 'Calling API: UserApi.user_get_admin_user ...'
89
+ end
90
+ # resource path
91
+ local_var_path = '/api/me/admin'
92
+
93
+ # query parameters
94
+ query_params = opts[:query_params] || {}
95
+
96
+ # header parameters
97
+ header_params = opts[:header_params] || {}
98
+ # HTTP header 'Accept' (if needed)
99
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
100
+
101
+ # form parameters
102
+ form_params = opts[:form_params] || {}
103
+
104
+ # http body (model)
105
+ post_body = opts[:body]
106
+
107
+ return_type = opts[:return_type] || 'AdminProfileDto'
108
+
109
+ auth_names = opts[:auth_names] || []
110
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
111
+ :header_params => header_params,
112
+ :query_params => query_params,
113
+ :form_params => form_params,
114
+ :body => post_body,
115
+ :auth_names => auth_names,
116
+ :return_type => return_type)
117
+
118
+ if @api_client.config.debugging
119
+ @api_client.config.logger.debug "API called: UserApi#user_get_admin_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
120
+ end
121
+ return data, status_code, headers
122
+ end
75
123
  # Gets a user subscription.
76
124
  # User Id and App Id are resolved using the API token.
77
125
  # @param topic The topic path.
78
126
  # @param [Hash] opts the optional parameters
79
127
  # @return [SubscriptionDto]
80
- def user_get_subscription(topic, opts = {})
81
- data, _status_code, _headers = user_get_subscription_with_http_info(topic, opts)
128
+ def user_get_my_subscription(topic, opts = {})
129
+ data, _status_code, _headers = user_get_my_subscription_with_http_info(topic, opts)
82
130
  data
83
131
  end
84
132
 
@@ -87,13 +135,13 @@ module Notifo
87
135
  # @param topic The topic path.
88
136
  # @param [Hash] opts the optional parameters
89
137
  # @return [Array<(SubscriptionDto, Integer, Hash)>] SubscriptionDto data, response status code and response headers
90
- def user_get_subscription_with_http_info(topic, opts = {})
138
+ def user_get_my_subscription_with_http_info(topic, opts = {})
91
139
  if @api_client.config.debugging
92
- @api_client.config.logger.debug 'Calling API: UserApi.user_get_subscription ...'
140
+ @api_client.config.logger.debug 'Calling API: UserApi.user_get_my_subscription ...'
93
141
  end
94
142
  # verify the required parameter 'topic' is set
95
143
  if @api_client.config.client_side_validation && topic.nil?
96
- fail ArgumentError, "Missing the required parameter 'topic' when calling UserApi.user_get_subscription"
144
+ fail ArgumentError, "Missing the required parameter 'topic' when calling UserApi.user_get_my_subscription"
97
145
  end
98
146
  # resource path
99
147
  local_var_path = '/api/me/subscriptions/{topic}'.sub('{' + 'topic' + '}', topic.to_s)
@@ -124,7 +172,118 @@ module Notifo
124
172
  :return_type => return_type)
125
173
 
126
174
  if @api_client.config.debugging
127
- @api_client.config.logger.debug "API called: UserApi#user_get_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
175
+ @api_client.config.logger.debug "API called: UserApi#user_get_my_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ end
177
+ return data, status_code, headers
178
+ end
179
+ # Query the user subscriptions.
180
+ # @param [Hash] opts the optional parameters
181
+ # @option opts [String] :topics The topics we are interested in.
182
+ # @option opts [String] :query The optional query to search for items.
183
+ # @option opts [Integer] :take The number of items to return.
184
+ # @option opts [Integer] :skip The number of items to skip.
185
+ # @return [ListResponseDtoOfSubscriptionDto]
186
+ def user_get_my_subscriptions(opts = {})
187
+ data, _status_code, _headers = user_get_my_subscriptions_with_http_info(opts)
188
+ data
189
+ end
190
+
191
+ # Query the user subscriptions.
192
+ # @param [Hash] opts the optional parameters
193
+ # @option opts [String] :topics The topics we are interested in.
194
+ # @option opts [String] :query The optional query to search for items.
195
+ # @option opts [Integer] :take The number of items to return.
196
+ # @option opts [Integer] :skip The number of items to skip.
197
+ # @return [Array<(ListResponseDtoOfSubscriptionDto, Integer, Hash)>] ListResponseDtoOfSubscriptionDto data, response status code and response headers
198
+ def user_get_my_subscriptions_with_http_info(opts = {})
199
+ if @api_client.config.debugging
200
+ @api_client.config.logger.debug 'Calling API: UserApi.user_get_my_subscriptions ...'
201
+ end
202
+ # resource path
203
+ local_var_path = '/api/me/subscriptions'
204
+
205
+ # query parameters
206
+ query_params = opts[:query_params] || {}
207
+ query_params[:'Topics'] = opts[:'topics'] if !opts[:'topics'].nil?
208
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
209
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
210
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
211
+
212
+ # header parameters
213
+ header_params = opts[:header_params] || {}
214
+ # HTTP header 'Accept' (if needed)
215
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
216
+
217
+ # form parameters
218
+ form_params = opts[:form_params] || {}
219
+
220
+ # http body (model)
221
+ post_body = opts[:body]
222
+
223
+ return_type = opts[:return_type] || 'ListResponseDtoOfSubscriptionDto'
224
+
225
+ auth_names = opts[:auth_names] || []
226
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
227
+ :header_params => header_params,
228
+ :query_params => query_params,
229
+ :form_params => form_params,
230
+ :body => post_body,
231
+ :auth_names => auth_names,
232
+ :return_type => return_type)
233
+
234
+ if @api_client.config.debugging
235
+ @api_client.config.logger.debug "API called: UserApi#user_get_my_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
236
+ end
237
+ return data, status_code, headers
238
+ end
239
+ # Query the user topics.
240
+ # @param [Hash] opts the optional parameters
241
+ # @option opts [String] :language The optional language.
242
+ # @return [Array<UserTopicDto>]
243
+ def user_get_topics(opts = {})
244
+ data, _status_code, _headers = user_get_topics_with_http_info(opts)
245
+ data
246
+ end
247
+
248
+ # Query the user topics.
249
+ # @param [Hash] opts the optional parameters
250
+ # @option opts [String] :language The optional language.
251
+ # @return [Array<(Array<UserTopicDto>, Integer, Hash)>] Array<UserTopicDto> data, response status code and response headers
252
+ def user_get_topics_with_http_info(opts = {})
253
+ if @api_client.config.debugging
254
+ @api_client.config.logger.debug 'Calling API: UserApi.user_get_topics ...'
255
+ end
256
+ # resource path
257
+ local_var_path = '/api/me/topics'
258
+
259
+ # query parameters
260
+ query_params = opts[:query_params] || {}
261
+ query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil?
262
+
263
+ # header parameters
264
+ header_params = opts[:header_params] || {}
265
+ # HTTP header 'Accept' (if needed)
266
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
267
+
268
+ # form parameters
269
+ form_params = opts[:form_params] || {}
270
+
271
+ # http body (model)
272
+ post_body = opts[:body]
273
+
274
+ return_type = opts[:return_type] || 'Array<UserTopicDto>'
275
+
276
+ auth_names = opts[:auth_names] || []
277
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
278
+ :header_params => header_params,
279
+ :query_params => query_params,
280
+ :form_params => form_params,
281
+ :body => post_body,
282
+ :auth_names => auth_names,
283
+ :return_type => return_type)
284
+
285
+ if @api_client.config.debugging
286
+ @api_client.config.logger.debug "API called: UserApi#user_get_topics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
128
287
  end
129
288
  return data, status_code, headers
130
289
  end
@@ -176,28 +335,28 @@ module Notifo
176
335
  end
177
336
  return data, status_code, headers
178
337
  end
179
- # Creates a user subscription.
338
+ # Upserts or deletes my subscriptions.
180
339
  # User Id and App Id are resolved using the API token.
181
340
  # @param body The subscription settings.
182
341
  # @param [Hash] opts the optional parameters
183
342
  # @return [nil]
184
- def user_post_subscription(body, opts = {})
185
- user_post_subscription_with_http_info(body, opts)
343
+ def user_post_my_subscriptions(body, opts = {})
344
+ user_post_my_subscriptions_with_http_info(body, opts)
186
345
  nil
187
346
  end
188
347
 
189
- # Creates a user subscription.
348
+ # Upserts or deletes my subscriptions.
190
349
  # User Id and App Id are resolved using the API token.
191
350
  # @param body The subscription settings.
192
351
  # @param [Hash] opts the optional parameters
193
352
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
194
- def user_post_subscription_with_http_info(body, opts = {})
353
+ def user_post_my_subscriptions_with_http_info(body, opts = {})
195
354
  if @api_client.config.debugging
196
- @api_client.config.logger.debug 'Calling API: UserApi.user_post_subscription ...'
355
+ @api_client.config.logger.debug 'Calling API: UserApi.user_post_my_subscriptions ...'
197
356
  end
198
357
  # verify the required parameter 'body' is set
199
358
  if @api_client.config.client_side_validation && body.nil?
200
- fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.user_post_subscription"
359
+ fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.user_post_my_subscriptions"
201
360
  end
202
361
  # resource path
203
362
  local_var_path = '/api/me/subscriptions'
@@ -230,7 +389,7 @@ module Notifo
230
389
  :return_type => return_type)
231
390
 
232
391
  if @api_client.config.debugging
233
- @api_client.config.logger.debug "API called: UserApi#user_post_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
+ @api_client.config.logger.debug "API called: UserApi#user_post_my_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
234
393
  end
235
394
  return data, status_code, headers
236
395
  end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.26
9
+ Swagger Codegen version: 3.0.36
10
10
  =end
11
11
 
12
12
  module Notifo
@@ -18,7 +18,7 @@ module Notifo
18
18
  end
19
19
  # Remove an allowed topic.
20
20
  # @param app_id The app where the users belong to.
21
- # @param id The user id.
21
+ # @param id The user ID.
22
22
  # @param prefix The topic prefix.
23
23
  # @param [Hash] opts the optional parameters
24
24
  # @return [nil]
@@ -29,7 +29,7 @@ module Notifo
29
29
 
30
30
  # Remove an allowed topic.
31
31
  # @param app_id The app where the users belong to.
32
- # @param id The user id.
32
+ # @param id The user ID.
33
33
  # @param prefix The topic prefix.
34
34
  # @param [Hash] opts the optional parameters
35
35
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -82,9 +82,75 @@ module Notifo
82
82
  end
83
83
  return data, status_code, headers
84
84
  end
85
- # Remove a user subscriptions.
85
+ # Remove an web push token.
86
+ # @param app_id The app where the users belong to.
87
+ # @param id The user ID.
88
+ # @param token The token.
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [nil]
91
+ def users_delete_mobile_push_token(app_id, id, token, opts = {})
92
+ users_delete_mobile_push_token_with_http_info(app_id, id, token, opts)
93
+ nil
94
+ end
95
+
96
+ # Remove an web push token.
97
+ # @param app_id The app where the users belong to.
98
+ # @param id The user ID.
99
+ # @param token The token.
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
102
+ def users_delete_mobile_push_token_with_http_info(app_id, id, token, opts = {})
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug 'Calling API: UsersApi.users_delete_mobile_push_token ...'
105
+ end
106
+ # verify the required parameter 'app_id' is set
107
+ if @api_client.config.client_side_validation && app_id.nil?
108
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_delete_mobile_push_token"
109
+ end
110
+ # verify the required parameter 'id' is set
111
+ if @api_client.config.client_side_validation && id.nil?
112
+ fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_delete_mobile_push_token"
113
+ end
114
+ # verify the required parameter 'token' is set
115
+ if @api_client.config.client_side_validation && token.nil?
116
+ fail ArgumentError, "Missing the required parameter 'token' when calling UsersApi.users_delete_mobile_push_token"
117
+ end
118
+ # resource path
119
+ local_var_path = '/api/apps/{appId}/users/{id}/mobilepush/{token}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s).sub('{' + 'token' + '}', token.to_s)
120
+
121
+ # query parameters
122
+ query_params = opts[:query_params] || {}
123
+
124
+ # header parameters
125
+ header_params = opts[:header_params] || {}
126
+ # HTTP header 'Accept' (if needed)
127
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
128
+
129
+ # form parameters
130
+ form_params = opts[:form_params] || {}
131
+
132
+ # http body (model)
133
+ post_body = opts[:body]
134
+
135
+ return_type = opts[:return_type]
136
+
137
+ auth_names = opts[:auth_names] || []
138
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
139
+ :header_params => header_params,
140
+ :query_params => query_params,
141
+ :form_params => form_params,
142
+ :body => post_body,
143
+ :auth_names => auth_names,
144
+ :return_type => return_type)
145
+
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug "API called: UsersApi#users_delete_mobile_push_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
+ end
149
+ return data, status_code, headers
150
+ end
151
+ # Unsubscribes a user from a subscription.
86
152
  # @param app_id The app where the user belongs to.
87
- # @param id The user id.
153
+ # @param id The user ID.
88
154
  # @param prefix The topic prefix.
89
155
  # @param [Hash] opts the optional parameters
90
156
  # @return [nil]
@@ -93,9 +159,9 @@ module Notifo
93
159
  nil
94
160
  end
95
161
 
96
- # Remove a user subscriptions.
162
+ # Unsubscribes a user from a subscription.
97
163
  # @param app_id The app where the user belongs to.
98
- # @param id The user id.
164
+ # @param id The user ID.
99
165
  # @param prefix The topic prefix.
100
166
  # @param [Hash] opts the optional parameters
101
167
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -152,17 +218,17 @@ module Notifo
152
218
  # @param app_id The app where the users belongs to.
153
219
  # @param id The user id to delete.
154
220
  # @param [Hash] opts the optional parameters
155
- # @return [ListResponseDtoOfUserDto]
221
+ # @return [nil]
156
222
  def users_delete_user(app_id, id, opts = {})
157
- data, _status_code, _headers = users_delete_user_with_http_info(app_id, id, opts)
158
- data
223
+ users_delete_user_with_http_info(app_id, id, opts)
224
+ nil
159
225
  end
160
226
 
161
227
  # Delete a user.
162
228
  # @param app_id The app where the users belongs to.
163
229
  # @param id The user id to delete.
164
230
  # @param [Hash] opts the optional parameters
165
- # @return [Array<(ListResponseDtoOfUserDto, Integer, Hash)>] ListResponseDtoOfUserDto data, response status code and response headers
231
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
166
232
  def users_delete_user_with_http_info(app_id, id, opts = {})
167
233
  if @api_client.config.debugging
168
234
  @api_client.config.logger.debug 'Calling API: UsersApi.users_delete_user ...'
@@ -192,7 +258,7 @@ module Notifo
192
258
  # http body (model)
193
259
  post_body = opts[:body]
194
260
 
195
- return_type = opts[:return_type] || 'ListResponseDtoOfUserDto'
261
+ return_type = opts[:return_type]
196
262
 
197
263
  auth_names = opts[:auth_names] || []
198
264
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
@@ -208,9 +274,75 @@ module Notifo
208
274
  end
209
275
  return data, status_code, headers
210
276
  end
277
+ # Remove an web push subscription.
278
+ # @param app_id The app where the users belong to.
279
+ # @param id The user ID.
280
+ # @param endpoint The endpoint.
281
+ # @param [Hash] opts the optional parameters
282
+ # @return [nil]
283
+ def users_delete_web_push_subscription(app_id, id, endpoint, opts = {})
284
+ users_delete_web_push_subscription_with_http_info(app_id, id, endpoint, opts)
285
+ nil
286
+ end
287
+
288
+ # Remove an web push subscription.
289
+ # @param app_id The app where the users belong to.
290
+ # @param id The user ID.
291
+ # @param endpoint The endpoint.
292
+ # @param [Hash] opts the optional parameters
293
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
294
+ def users_delete_web_push_subscription_with_http_info(app_id, id, endpoint, opts = {})
295
+ if @api_client.config.debugging
296
+ @api_client.config.logger.debug 'Calling API: UsersApi.users_delete_web_push_subscription ...'
297
+ end
298
+ # verify the required parameter 'app_id' is set
299
+ if @api_client.config.client_side_validation && app_id.nil?
300
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_delete_web_push_subscription"
301
+ end
302
+ # verify the required parameter 'id' is set
303
+ if @api_client.config.client_side_validation && id.nil?
304
+ fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_delete_web_push_subscription"
305
+ end
306
+ # verify the required parameter 'endpoint' is set
307
+ if @api_client.config.client_side_validation && endpoint.nil?
308
+ fail ArgumentError, "Missing the required parameter 'endpoint' when calling UsersApi.users_delete_web_push_subscription"
309
+ end
310
+ # resource path
311
+ local_var_path = '/api/apps/{appId}/users/{id}/webpush/{endpoint}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s).sub('{' + 'endpoint' + '}', endpoint.to_s)
312
+
313
+ # query parameters
314
+ query_params = opts[:query_params] || {}
315
+
316
+ # header parameters
317
+ header_params = opts[:header_params] || {}
318
+ # HTTP header 'Accept' (if needed)
319
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
320
+
321
+ # form parameters
322
+ form_params = opts[:form_params] || {}
323
+
324
+ # http body (model)
325
+ post_body = opts[:body]
326
+
327
+ return_type = opts[:return_type]
328
+
329
+ auth_names = opts[:auth_names] || []
330
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
331
+ :header_params => header_params,
332
+ :query_params => query_params,
333
+ :form_params => form_params,
334
+ :body => post_body,
335
+ :auth_names => auth_names,
336
+ :return_type => return_type)
337
+
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug "API called: UsersApi#users_delete_web_push_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
340
+ end
341
+ return data, status_code, headers
342
+ end
211
343
  # Query user subscriptions.
212
344
  # @param app_id The app where the user belongs to.
213
- # @param id The user id.
345
+ # @param id The user ID.
214
346
  # @param [Hash] opts the optional parameters
215
347
  # @option opts [String] :query The optional query to search for items.
216
348
  # @option opts [Integer] :take The number of items to return.
@@ -223,7 +355,7 @@ module Notifo
223
355
 
224
356
  # Query user subscriptions.
225
357
  # @param app_id The app where the user belongs to.
226
- # @param id The user id.
358
+ # @param id The user ID.
227
359
  # @param [Hash] opts the optional parameters
228
360
  # @option opts [String] :query The optional query to search for items.
229
361
  # @option opts [Integer] :take The number of items to return.
@@ -279,9 +411,10 @@ module Notifo
279
411
  end
280
412
  # Get a user.
281
413
  # @param app_id The app where the user belongs to.
282
- # @param id The user id.
414
+ # @param id The user ID.
283
415
  # @param [Hash] opts the optional parameters
284
- # @return [ListResponseDtoOfUserDto]
416
+ # @option opts [BOOLEAN] :with_details Provide extra details, might be expensive. (default to false)
417
+ # @return [UserDto]
285
418
  def users_get_user(app_id, id, opts = {})
286
419
  data, _status_code, _headers = users_get_user_with_http_info(app_id, id, opts)
287
420
  data
@@ -289,9 +422,10 @@ module Notifo
289
422
 
290
423
  # Get a user.
291
424
  # @param app_id The app where the user belongs to.
292
- # @param id The user id.
425
+ # @param id The user ID.
293
426
  # @param [Hash] opts the optional parameters
294
- # @return [Array<(ListResponseDtoOfUserDto, Integer, Hash)>] ListResponseDtoOfUserDto data, response status code and response headers
427
+ # @option opts [BOOLEAN] :with_details Provide extra details, might be expensive.
428
+ # @return [Array<(UserDto, Integer, Hash)>] UserDto data, response status code and response headers
295
429
  def users_get_user_with_http_info(app_id, id, opts = {})
296
430
  if @api_client.config.debugging
297
431
  @api_client.config.logger.debug 'Calling API: UsersApi.users_get_user ...'
@@ -309,6 +443,7 @@ module Notifo
309
443
 
310
444
  # query parameters
311
445
  query_params = opts[:query_params] || {}
446
+ query_params[:'withDetails'] = opts[:'with_details'] if !opts[:'with_details'].nil?
312
447
 
313
448
  # header parameters
314
449
  header_params = opts[:header_params] || {}
@@ -321,7 +456,7 @@ module Notifo
321
456
  # http body (model)
322
457
  post_body = opts[:body]
323
458
 
324
- return_type = opts[:return_type] || 'ListResponseDtoOfUserDto'
459
+ return_type = opts[:return_type] || 'UserDto'
325
460
 
326
461
  auth_names = opts[:auth_names] || []
327
462
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -343,6 +478,7 @@ module Notifo
343
478
  # @option opts [String] :query The optional query to search for items.
344
479
  # @option opts [Integer] :take The number of items to return.
345
480
  # @option opts [Integer] :skip The number of items to skip.
481
+ # @option opts [BOOLEAN] :with_details Provide extra details, might be expensive. (default to false)
346
482
  # @return [ListResponseDtoOfUserDto]
347
483
  def users_get_users(app_id, opts = {})
348
484
  data, _status_code, _headers = users_get_users_with_http_info(app_id, opts)
@@ -355,6 +491,7 @@ module Notifo
355
491
  # @option opts [String] :query The optional query to search for items.
356
492
  # @option opts [Integer] :take The number of items to return.
357
493
  # @option opts [Integer] :skip The number of items to skip.
494
+ # @option opts [BOOLEAN] :with_details Provide extra details, might be expensive.
358
495
  # @return [Array<(ListResponseDtoOfUserDto, Integer, Hash)>] ListResponseDtoOfUserDto data, response status code and response headers
359
496
  def users_get_users_with_http_info(app_id, opts = {})
360
497
  if @api_client.config.debugging
@@ -372,6 +509,7 @@ module Notifo
372
509
  query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
373
510
  query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
374
511
  query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
512
+ query_params[:'withDetails'] = opts[:'with_details'] if !opts[:'with_details'].nil?
375
513
 
376
514
  # header parameters
377
515
  header_params = opts[:header_params] || {}
@@ -403,7 +541,7 @@ module Notifo
403
541
  # Add an allowed topic.
404
542
  # @param body The upsert request.
405
543
  # @param app_id The app where the users belong to.
406
- # @param id The user id.
544
+ # @param id The user ID.
407
545
  # @param [Hash] opts the optional parameters
408
546
  # @return [nil]
409
547
  def users_post_allowed_topic(body, app_id, id, opts = {})
@@ -414,7 +552,7 @@ module Notifo
414
552
  # Add an allowed topic.
415
553
  # @param body The upsert request.
416
554
  # @param app_id The app where the users belong to.
417
- # @param id The user id.
555
+ # @param id The user ID.
418
556
  # @param [Hash] opts the optional parameters
419
557
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
420
558
  def users_post_allowed_topic_with_http_info(body, app_id, id, opts = {})
@@ -468,38 +606,38 @@ module Notifo
468
606
  end
469
607
  return data, status_code, headers
470
608
  end
471
- # Upsert a user subscriptions.
609
+ # Upserts or deletes multiple user subscriptions.
472
610
  # @param body The subscription object.
473
611
  # @param app_id The app where the user belongs to.
474
- # @param id The user id.
612
+ # @param id The user ID.
475
613
  # @param [Hash] opts the optional parameters
476
614
  # @return [nil]
477
- def users_post_subscription(body, app_id, id, opts = {})
478
- users_post_subscription_with_http_info(body, app_id, id, opts)
615
+ def users_post_subscriptions(body, app_id, id, opts = {})
616
+ users_post_subscriptions_with_http_info(body, app_id, id, opts)
479
617
  nil
480
618
  end
481
619
 
482
- # Upsert a user subscriptions.
620
+ # Upserts or deletes multiple user subscriptions.
483
621
  # @param body The subscription object.
484
622
  # @param app_id The app where the user belongs to.
485
- # @param id The user id.
623
+ # @param id The user ID.
486
624
  # @param [Hash] opts the optional parameters
487
625
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
488
- def users_post_subscription_with_http_info(body, app_id, id, opts = {})
626
+ def users_post_subscriptions_with_http_info(body, app_id, id, opts = {})
489
627
  if @api_client.config.debugging
490
- @api_client.config.logger.debug 'Calling API: UsersApi.users_post_subscription ...'
628
+ @api_client.config.logger.debug 'Calling API: UsersApi.users_post_subscriptions ...'
491
629
  end
492
630
  # verify the required parameter 'body' is set
493
631
  if @api_client.config.client_side_validation && body.nil?
494
- fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post_subscription"
632
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post_subscriptions"
495
633
  end
496
634
  # verify the required parameter 'app_id' is set
497
635
  if @api_client.config.client_side_validation && app_id.nil?
498
- fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_post_subscription"
636
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_post_subscriptions"
499
637
  end
500
638
  # verify the required parameter 'id' is set
501
639
  if @api_client.config.client_side_validation && id.nil?
502
- fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_post_subscription"
640
+ fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_post_subscriptions"
503
641
  end
504
642
  # resource path
505
643
  local_var_path = '/api/apps/{appId}/users/{id}/subscriptions'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
@@ -532,7 +670,7 @@ module Notifo
532
670
  :return_type => return_type)
533
671
 
534
672
  if @api_client.config.debugging
535
- @api_client.config.logger.debug "API called: UsersApi#users_post_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
673
+ @api_client.config.logger.debug "API called: UsersApi#users_post_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
536
674
  end
537
675
  return data, status_code, headers
538
676
  end