notifo-io 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (369) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1242 -42
  3. data/Rakefile +0 -2
  4. data/docs/AddAllowedTopicDto.md +3 -14
  5. data/docs/AddContributorDto.md +4 -16
  6. data/docs/AppContributorDto.md +5 -18
  7. data/docs/AppDetailsDto.md +12 -44
  8. data/docs/AppDto.md +10 -24
  9. data/docs/AppIdMediaBody.md +7 -0
  10. data/docs/AppsApi.md +161 -343
  11. data/docs/ChannelCondition.md +6 -0
  12. data/docs/ChannelSend.md +6 -0
  13. data/docs/ChannelSendInfoDto.md +9 -0
  14. data/docs/ChannelSettingDto.md +11 -0
  15. data/docs/ChannelTemplateDetailsDtoOfEmailTemplateDto.md +12 -0
  16. data/docs/ChannelTemplateDetailsDtoOfMessagingTemplateDto.md +12 -0
  17. data/docs/ChannelTemplateDetailsDtoOfSmsTemplateDto.md +12 -0
  18. data/docs/ChannelTemplateDto.md +11 -0
  19. data/docs/ConfigsApi.md +21 -61
  20. data/docs/ConfiguredIntegrationDto.md +13 -0
  21. data/docs/ConfiguredIntegrationsDto.md +8 -0
  22. data/docs/ConfirmMode.md +2 -11
  23. data/docs/CreateChannelTemplateDto.md +7 -0
  24. data/docs/CreateChannelTemplateLanguageDto.md +7 -0
  25. data/docs/CreateIntegrationDto.md +11 -0
  26. data/docs/CreateSystemUserDto.md +9 -0
  27. data/docs/EmailFormattingError.md +10 -0
  28. data/docs/EmailPreviewDto.md +8 -0
  29. data/docs/EmailPreviewRequestDto.md +9 -0
  30. data/docs/EmailPreviewType.md +6 -0
  31. data/docs/EmailTemplateDto.md +8 -18
  32. data/docs/EmailTemplateType.md +6 -0
  33. data/docs/EmailTemplatesApi.md +488 -0
  34. data/docs/ErrorDto.md +8 -22
  35. data/docs/EventDto.md +17 -36
  36. data/docs/EventsApi.md +74 -65
  37. data/docs/HandledInfoDto.md +8 -0
  38. data/docs/IntegrationCreatedDto.md +8 -0
  39. data/docs/IntegrationDefinitionDto.md +11 -0
  40. data/docs/IntegrationPropertyDto.md +19 -0
  41. data/docs/IntegrationPropertyType.md +6 -0
  42. data/docs/IntegrationStatus.md +6 -0
  43. data/docs/IsoDayOfWeek.md +2 -11
  44. data/docs/ListResponseDtoOfChannelTemplateDto.md +8 -0
  45. data/docs/ListResponseDtoOfEventDto.md +4 -16
  46. data/docs/ListResponseDtoOfLogEntryDto.md +4 -16
  47. data/docs/ListResponseDtoOfMediaDto.md +4 -16
  48. data/docs/ListResponseDtoOfMobilePushTokenDto.md +8 -0
  49. data/docs/ListResponseDtoOfSubscriptionDto.md +4 -16
  50. data/docs/ListResponseDtoOfSystemUserDto.md +8 -0
  51. data/docs/ListResponseDtoOfTemplateDto.md +4 -16
  52. data/docs/ListResponseDtoOfTopicDto.md +4 -16
  53. data/docs/ListResponseDtoOfUserDto.md +4 -16
  54. data/docs/ListResponseDtoOfUserNotificationDetailsDto.md +8 -0
  55. data/docs/ListResponseDtoOfUserNotificationDto.md +8 -0
  56. data/docs/LocalizedText.md +6 -0
  57. data/docs/LogEntryDto.md +6 -20
  58. data/docs/LogsApi.md +21 -40
  59. data/docs/MediaApi.md +102 -196
  60. data/docs/MediaDto.md +11 -26
  61. data/docs/MediaMetadata.md +6 -0
  62. data/docs/MediaType.md +2 -11
  63. data/docs/MessagingTemplateDto.md +7 -0
  64. data/docs/MessagingTemplatesApi.md +394 -0
  65. data/docs/MobileDeviceType.md +6 -0
  66. data/docs/MobilePushApi.md +135 -0
  67. data/docs/MobilePushTokenDto.md +9 -0
  68. data/docs/MobilePushTokenDto2.md +8 -0
  69. data/docs/NotificationFormattingDto.md +10 -28
  70. data/docs/NotificationProperties.md +6 -0
  71. data/docs/NotificationsApi.md +199 -0
  72. data/docs/PingApi.md +48 -0
  73. data/docs/ProcessStatus.md +6 -0
  74. data/docs/ProfileDto.md +11 -28
  75. data/docs/PublishDto.md +14 -32
  76. data/docs/PublishManyDto.md +3 -14
  77. data/docs/RegisterMobileTokenDto.md +8 -0
  78. data/docs/ResizeMode.md +2 -11
  79. data/docs/SchedulingDto.md +6 -20
  80. data/docs/SchedulingType.md +2 -11
  81. data/docs/SmsTemplateDto.md +7 -0
  82. data/docs/SmsTemplatesApi.md +394 -0
  83. data/docs/SubscribeDto.md +8 -0
  84. data/docs/SubscribeManyDto.md +8 -0
  85. data/docs/SubscriptionDto.md +4 -16
  86. data/docs/SystemUserDto.md +11 -0
  87. data/docs/SystemUsersApi.md +327 -0
  88. data/docs/TemplateDto.md +7 -18
  89. data/docs/TemplatesApi.md +52 -108
  90. data/docs/TopicChannel.md +6 -0
  91. data/docs/TopicDto.md +11 -18
  92. data/docs/TopicQueryScope.md +6 -0
  93. data/docs/TopicsApi.md +106 -30
  94. data/docs/TrackNotificationDto.md +10 -0
  95. data/docs/UpdateChannelTemplateDtoOfEmailTemplateDto.md +9 -0
  96. data/docs/UpdateChannelTemplateDtoOfMessagingTemplateDto.md +9 -0
  97. data/docs/UpdateChannelTemplateDtoOfSmsTemplateDto.md +9 -0
  98. data/docs/UpdateIntegrationDto.md +11 -0
  99. data/docs/UpdateProfileDto.md +8 -24
  100. data/docs/UpdateSystemUserDto.md +9 -0
  101. data/docs/UpsertAppDto.md +12 -32
  102. data/docs/UpsertTemplateDto.md +5 -18
  103. data/docs/UpsertTemplatesDto.md +3 -14
  104. data/docs/UpsertTopicDto.md +11 -0
  105. data/docs/UpsertTopicsDto.md +7 -0
  106. data/docs/UpsertUserDto.md +11 -28
  107. data/docs/UpsertUsersDto.md +3 -14
  108. data/docs/UserApi.md +156 -150
  109. data/docs/UserDto.md +20 -32
  110. data/docs/UserNotificationBaseDto.md +23 -0
  111. data/docs/UserNotificationChannelDto.md +11 -0
  112. data/docs/UserNotificationDetailsDto.md +27 -0
  113. data/docs/UserNotificationDto.md +25 -0
  114. data/docs/UserPropertyDto.md +9 -0
  115. data/docs/UserTopicDto.md +11 -0
  116. data/docs/UsersApi.md +161 -320
  117. data/git_push.sh +7 -10
  118. data/lib/notifo/api/apps_api.rb +164 -236
  119. data/lib/notifo/api/configs_api.rb +14 -30
  120. data/lib/notifo/api/email_templates_api.rb +663 -0
  121. data/lib/notifo/api/events_api.rb +88 -45
  122. data/lib/notifo/api/logs_api.rb +12 -21
  123. data/lib/notifo/api/media_api.rb +60 -97
  124. data/lib/notifo/api/messaging_templates_api.rb +541 -0
  125. data/lib/notifo/api/mobile_push_api.rb +178 -0
  126. data/lib/notifo/api/notifications_api.rb +256 -0
  127. data/lib/notifo/api/ping_api.rb +70 -0
  128. data/lib/notifo/api/sms_templates_api.rb +541 -0
  129. data/lib/notifo/api/system_users_api.rb +411 -0
  130. data/lib/notifo/api/templates_api.rb +43 -66
  131. data/lib/notifo/api/topics_api.rb +137 -21
  132. data/lib/notifo/api/user_api.rb +178 -104
  133. data/lib/notifo/api/users_api.rb +140 -199
  134. data/lib/notifo/api_client.rb +54 -56
  135. data/lib/notifo/api_error.rb +5 -5
  136. data/lib/notifo/configuration.rb +12 -84
  137. data/lib/notifo/models/add_allowed_topic_dto.rb +13 -44
  138. data/lib/notifo/models/add_contributor_dto.rb +14 -64
  139. data/lib/notifo/models/app_contributor_dto.rb +15 -84
  140. data/lib/notifo/models/app_details_dto.rb +51 -189
  141. data/lib/notifo/models/app_dto.rb +47 -86
  142. data/lib/notifo/models/{inline_object.rb → app_id_media_body.rb} +16 -28
  143. data/lib/notifo/models/channel_condition.rb +30 -0
  144. data/lib/notifo/models/channel_send.rb +30 -0
  145. data/lib/notifo/models/channel_send_info_dto.rb +227 -0
  146. data/lib/notifo/models/channel_setting_dto.rb +256 -0
  147. data/lib/notifo/models/channel_template_details_dto_of_email_template_dto.rb +285 -0
  148. data/lib/notifo/models/channel_template_details_dto_of_messaging_template_dto.rb +285 -0
  149. data/lib/notifo/models/channel_template_details_dto_of_sms_template_dto.rb +285 -0
  150. data/lib/notifo/models/channel_template_dto.rb +264 -0
  151. data/lib/notifo/models/configured_integration_dto.rb +285 -0
  152. data/lib/notifo/models/configured_integrations_dto.rb +231 -0
  153. data/lib/notifo/models/confirm_mode.rb +6 -16
  154. data/lib/notifo/models/create_channel_template_dto.rb +208 -0
  155. data/lib/notifo/models/{create_email_template_dto.rb → create_channel_template_language_dto.rb} +16 -47
  156. data/lib/notifo/models/create_integration_dto.rb +262 -0
  157. data/lib/notifo/models/create_system_user_dto.rb +240 -0
  158. data/lib/notifo/models/email_formatting_error.rb +233 -0
  159. data/lib/notifo/models/email_preview_dto.rb +221 -0
  160. data/lib/notifo/models/{notification_setting_dto.rb → email_preview_request_dto.rb} +43 -45
  161. data/lib/notifo/models/email_preview_type.rb +28 -0
  162. data/lib/notifo/models/email_template_dto.rb +52 -69
  163. data/lib/notifo/models/email_template_type.rb +30 -0
  164. data/lib/notifo/models/error_dto.rb +29 -30
  165. data/lib/notifo/models/event_dto.rb +60 -115
  166. data/lib/notifo/models/handled_info_dto.rb +218 -0
  167. data/lib/notifo/models/integration_created_dto.rb +226 -0
  168. data/lib/notifo/models/integration_definition_dto.rb +272 -0
  169. data/lib/notifo/models/integration_property_dto.rb +347 -0
  170. data/lib/notifo/models/integration_property_type.rb +31 -0
  171. data/lib/notifo/models/integration_status.rb +29 -0
  172. data/lib/notifo/models/iso_day_of_week.rb +12 -21
  173. data/lib/notifo/models/list_response_dto_of_channel_template_dto.rb +229 -0
  174. data/lib/notifo/models/list_response_dto_of_event_dto.rb +14 -26
  175. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +14 -26
  176. data/lib/notifo/models/list_response_dto_of_media_dto.rb +14 -26
  177. data/lib/notifo/models/list_response_dto_of_mobile_push_token_dto.rb +229 -0
  178. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +14 -26
  179. data/lib/notifo/models/list_response_dto_of_system_user_dto.rb +229 -0
  180. data/lib/notifo/models/list_response_dto_of_template_dto.rb +14 -26
  181. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +14 -26
  182. data/lib/notifo/models/list_response_dto_of_user_dto.rb +14 -26
  183. data/lib/notifo/models/list_response_dto_of_user_notification_details_dto.rb +229 -0
  184. data/lib/notifo/models/list_response_dto_of_user_notification_dto.rb +229 -0
  185. data/lib/notifo/models/localized_text.rb +201 -0
  186. data/lib/notifo/models/log_entry_dto.rb +16 -85
  187. data/lib/notifo/models/media_dto.rb +56 -116
  188. data/lib/notifo/models/media_metadata.rb +201 -0
  189. data/lib/notifo/models/media_type.rb +8 -17
  190. data/lib/notifo/models/messaging_template_dto.rb +212 -0
  191. data/lib/notifo/models/mobile_device_type.rb +29 -0
  192. data/lib/notifo/models/mobile_push_token_dto.rb +237 -0
  193. data/lib/notifo/models/mobile_push_token_dto2.rb +221 -0
  194. data/lib/notifo/models/notification_formatting_dto.rb +27 -58
  195. data/lib/notifo/models/notification_properties.rb +201 -0
  196. data/lib/notifo/models/process_status.rb +31 -0
  197. data/lib/notifo/models/profile_dto.rb +33 -71
  198. data/lib/notifo/models/publish_dto.rb +47 -59
  199. data/lib/notifo/models/publish_many_dto.rb +13 -25
  200. data/lib/notifo/models/register_mobile_token_dto.rb +221 -0
  201. data/lib/notifo/models/resize_mode.rb +11 -20
  202. data/lib/notifo/models/scheduling_dto.rb +16 -28
  203. data/lib/notifo/models/scheduling_type.rb +6 -15
  204. data/lib/notifo/models/sms_template_dto.rb +212 -0
  205. data/lib/notifo/models/subscribe_dto.rb +225 -0
  206. data/lib/notifo/models/subscribe_many_dto.rb +223 -0
  207. data/lib/notifo/models/subscription_dto.rb +17 -44
  208. data/lib/notifo/models/system_user_dto.rb +269 -0
  209. data/lib/notifo/models/template_dto.rb +44 -45
  210. data/lib/notifo/models/topic_channel.rb +28 -0
  211. data/lib/notifo/models/topic_dto.rb +81 -65
  212. data/lib/notifo/models/topic_query_scope.rb +29 -0
  213. data/lib/notifo/models/track_notification_dto.rb +243 -0
  214. data/lib/notifo/models/update_channel_template_dto_of_email_template_dto.rb +232 -0
  215. data/lib/notifo/models/update_channel_template_dto_of_messaging_template_dto.rb +232 -0
  216. data/lib/notifo/models/update_channel_template_dto_of_sms_template_dto.rb +232 -0
  217. data/lib/notifo/models/update_integration_dto.rb +258 -0
  218. data/lib/notifo/models/update_profile_dto.rb +18 -30
  219. data/lib/notifo/models/update_system_user_dto.rb +240 -0
  220. data/lib/notifo/models/upsert_app_dto.rb +22 -34
  221. data/lib/notifo/models/upsert_template_dto.rb +15 -46
  222. data/lib/notifo/models/upsert_templates_dto.rb +13 -25
  223. data/lib/notifo/models/upsert_topic_dto.rb +249 -0
  224. data/lib/notifo/models/upsert_topics_dto.rb +214 -0
  225. data/lib/notifo/models/upsert_user_dto.rb +34 -33
  226. data/lib/notifo/models/upsert_users_dto.rb +13 -25
  227. data/lib/notifo/models/user_dto.rb +137 -73
  228. data/lib/notifo/models/user_notification_base_dto.rb +402 -0
  229. data/lib/notifo/models/user_notification_channel_dto.rb +261 -0
  230. data/lib/notifo/models/user_notification_details_dto.rb +450 -0
  231. data/lib/notifo/models/user_notification_dto.rb +436 -0
  232. data/lib/notifo/models/user_property_dto.rb +234 -0
  233. data/lib/notifo/models/user_topic_dto.rb +265 -0
  234. data/lib/notifo/version.rb +4 -5
  235. data/lib/notifo.rb +71 -9
  236. data/notifo.gemspec +8 -8
  237. data/spec/api/apps_api_spec.rb +31 -32
  238. data/spec/api/configs_api_spec.rb +7 -8
  239. data/spec/api/email_templates_api_spec.rb +161 -0
  240. data/spec/api/events_api_spec.rb +20 -9
  241. data/spec/api/logs_api_spec.rb +7 -8
  242. data/spec/api/media_api_spec.rb +32 -11
  243. data/spec/api/messaging_templates_api_spec.rb +137 -0
  244. data/spec/api/mobile_push_api_spec.rb +66 -0
  245. data/spec/api/notifications_api_spec.rb +85 -0
  246. data/spec/api/ping_api_spec.rb +45 -0
  247. data/spec/api/sms_templates_api_spec.rb +137 -0
  248. data/spec/api/system_users_api_spec.rb +114 -0
  249. data/spec/api/templates_api_spec.rb +9 -10
  250. data/spec/api/topics_api_spec.rb +32 -8
  251. data/spec/api/user_api_spec.rb +41 -17
  252. data/spec/api/users_api_spec.rb +24 -23
  253. data/spec/api_client_spec.rb +5 -6
  254. data/spec/base_object_spec.rb +109 -0
  255. data/spec/configuration_spec.rb +7 -8
  256. data/spec/models/add_allowed_topic_dto_spec.rb +15 -9
  257. data/spec/models/add_contributor_dto_spec.rb +15 -9
  258. data/spec/models/app_contributor_dto_spec.rb +15 -9
  259. data/spec/models/app_details_dto_spec.rb +18 -48
  260. data/spec/models/app_dto_spec.rb +27 -9
  261. data/spec/models/app_id_media_body_spec.rb +40 -0
  262. data/spec/models/channel_condition_spec.rb +34 -0
  263. data/spec/models/channel_send_info_dto_spec.rb +52 -0
  264. data/spec/models/channel_send_spec.rb +34 -0
  265. data/spec/models/channel_setting_dto_spec.rb +64 -0
  266. data/spec/models/channel_template_details_dto_of_email_template_dto_spec.rb +70 -0
  267. data/spec/models/channel_template_details_dto_of_messaging_template_dto_spec.rb +70 -0
  268. data/spec/models/channel_template_details_dto_of_sms_template_dto_spec.rb +70 -0
  269. data/spec/models/channel_template_dto_spec.rb +64 -0
  270. data/spec/models/configured_integration_dto_spec.rb +76 -0
  271. data/spec/models/configured_integrations_dto_spec.rb +46 -0
  272. data/spec/models/confirm_mode_spec.rb +15 -9
  273. data/spec/models/create_channel_template_dto_spec.rb +40 -0
  274. data/spec/models/create_channel_template_language_dto_spec.rb +40 -0
  275. data/spec/models/create_integration_dto_spec.rb +64 -0
  276. data/spec/models/create_system_user_dto_spec.rb +52 -0
  277. data/spec/models/email_formatting_error_spec.rb +58 -0
  278. data/spec/models/email_preview_dto_spec.rb +46 -0
  279. data/spec/models/email_preview_request_dto_spec.rb +52 -0
  280. data/spec/models/email_preview_type_spec.rb +34 -0
  281. data/spec/models/email_template_dto_spec.rb +33 -9
  282. data/spec/models/email_template_type_spec.rb +34 -0
  283. data/spec/models/error_dto_spec.rb +21 -9
  284. data/spec/models/event_dto_spec.rb +33 -9
  285. data/spec/models/handled_info_dto_spec.rb +46 -0
  286. data/spec/models/integration_created_dto_spec.rb +46 -0
  287. data/spec/models/integration_definition_dto_spec.rb +64 -0
  288. data/spec/models/integration_property_dto_spec.rb +112 -0
  289. data/spec/models/integration_property_type_spec.rb +34 -0
  290. data/spec/models/integration_status_spec.rb +34 -0
  291. data/spec/models/iso_day_of_week_spec.rb +15 -9
  292. data/spec/models/list_response_dto_of_channel_template_dto_spec.rb +46 -0
  293. data/spec/models/list_response_dto_of_event_dto_spec.rb +15 -9
  294. data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +15 -9
  295. data/spec/models/list_response_dto_of_media_dto_spec.rb +15 -9
  296. data/spec/models/list_response_dto_of_mobile_push_token_dto_spec.rb +46 -0
  297. data/spec/models/list_response_dto_of_subscription_dto_spec.rb +15 -9
  298. data/spec/models/list_response_dto_of_system_user_dto_spec.rb +46 -0
  299. data/spec/models/list_response_dto_of_template_dto_spec.rb +15 -9
  300. data/spec/models/list_response_dto_of_topic_dto_spec.rb +15 -9
  301. data/spec/models/list_response_dto_of_user_dto_spec.rb +15 -9
  302. data/spec/models/list_response_dto_of_user_notification_details_dto_spec.rb +46 -0
  303. data/spec/models/list_response_dto_of_user_notification_dto_spec.rb +46 -0
  304. data/spec/models/localized_text_spec.rb +34 -0
  305. data/spec/models/log_entry_dto_spec.rb +15 -9
  306. data/spec/models/media_dto_spec.rb +33 -9
  307. data/spec/models/media_metadata_spec.rb +34 -0
  308. data/spec/models/media_type_spec.rb +15 -9
  309. data/spec/models/messaging_template_dto_spec.rb +40 -0
  310. data/spec/models/mobile_device_type_spec.rb +34 -0
  311. data/spec/models/mobile_push_token_dto2_spec.rb +46 -0
  312. data/spec/models/mobile_push_token_dto_spec.rb +52 -0
  313. data/spec/models/notification_formatting_dto_spec.rb +15 -9
  314. data/spec/models/notification_properties_spec.rb +34 -0
  315. data/spec/models/process_status_spec.rb +34 -0
  316. data/spec/models/profile_dto_spec.rb +21 -9
  317. data/spec/models/publish_dto_spec.rb +27 -9
  318. data/spec/models/publish_many_dto_spec.rb +15 -9
  319. data/spec/models/register_mobile_token_dto_spec.rb +46 -0
  320. data/spec/models/resize_mode_spec.rb +15 -9
  321. data/spec/models/scheduling_dto_spec.rb +15 -9
  322. data/spec/models/scheduling_type_spec.rb +15 -9
  323. data/spec/models/sms_template_dto_spec.rb +40 -0
  324. data/spec/models/subscribe_dto_spec.rb +46 -0
  325. data/spec/models/subscribe_many_dto_spec.rb +46 -0
  326. data/spec/models/subscription_dto_spec.rb +15 -9
  327. data/spec/models/system_user_dto_spec.rb +64 -0
  328. data/spec/models/template_dto_spec.rb +27 -9
  329. data/spec/models/topic_channel_spec.rb +34 -0
  330. data/spec/models/topic_dto_spec.rb +51 -9
  331. data/spec/models/topic_query_scope_spec.rb +34 -0
  332. data/spec/models/track_notification_dto_spec.rb +58 -0
  333. data/spec/models/update_channel_template_dto_of_email_template_dto_spec.rb +52 -0
  334. data/spec/models/update_channel_template_dto_of_messaging_template_dto_spec.rb +52 -0
  335. data/spec/models/update_channel_template_dto_of_sms_template_dto_spec.rb +52 -0
  336. data/spec/models/update_integration_dto_spec.rb +64 -0
  337. data/spec/models/update_profile_dto_spec.rb +15 -9
  338. data/spec/models/update_system_user_dto_spec.rb +52 -0
  339. data/spec/models/upsert_app_dto_spec.rb +15 -9
  340. data/spec/models/upsert_template_dto_spec.rb +15 -9
  341. data/spec/models/upsert_templates_dto_spec.rb +15 -9
  342. data/spec/models/upsert_topic_dto_spec.rb +64 -0
  343. data/spec/models/upsert_topics_dto_spec.rb +40 -0
  344. data/spec/models/upsert_user_dto_spec.rb +21 -9
  345. data/spec/models/upsert_users_dto_spec.rb +15 -9
  346. data/spec/models/user_dto_spec.rb +63 -9
  347. data/spec/models/user_notification_base_dto_spec.rb +136 -0
  348. data/spec/models/user_notification_channel_dto_spec.rb +64 -0
  349. data/spec/models/user_notification_details_dto_spec.rb +160 -0
  350. data/spec/models/user_notification_dto_spec.rb +148 -0
  351. data/spec/models/user_property_dto_spec.rb +52 -0
  352. data/spec/models/user_topic_dto_spec.rb +64 -0
  353. data/spec/spec_helper.rb +4 -5
  354. metadata +299 -32
  355. data/docs/CreateEmailTemplateDto.md +0 -18
  356. data/docs/EmailVerificationStatus.md +0 -15
  357. data/docs/InlineObject.md +0 -18
  358. data/docs/NotificationSend.md +0 -15
  359. data/docs/NotificationSettingDto.md +0 -20
  360. data/lib/notifo/models/email_verification_status.rb +0 -39
  361. data/lib/notifo/models/notification_send.rb +0 -39
  362. data/notifo-1.0.0.gem +0 -0
  363. data/notifo-io-1.0.0.2.gem +0 -0
  364. data/notifo-io-1.0.0.gem +0 -0
  365. data/spec/models/create_email_template_dto_spec.rb +0 -34
  366. data/spec/models/email_verification_status_spec.rb +0 -28
  367. data/spec/models/inline_object_spec.rb +0 -34
  368. data/spec/models/notification_send_spec.rb +0 -28
  369. data/spec/models/notification_setting_dto_spec.rb +0 -40
@@ -1,17 +1,14 @@
1
1
  =begin
2
2
  #Notifo API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.0-SNAPSHOT
6
+ OpenAPI spec version: 1.0.0
10
7
 
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.29
11
10
  =end
12
11
 
13
- require 'cgi'
14
-
15
12
  module Notifo
16
13
  class AppsApi
17
14
  attr_accessor :api_client
@@ -20,8 +17,8 @@ module Notifo
20
17
  @api_client = api_client
21
18
  end
22
19
  # Delete an app contributor.
23
- # @param app_id [String] The id of the app.
24
- # @param contributor_id [String] The contributor to remove.
20
+ # @param app_id The id of the app.
21
+ # @param contributor_id The contributor to remove.
25
22
  # @param [Hash] opts the optional parameters
26
23
  # @return [AppDetailsDto]
27
24
  def apps_delete_contributor(app_id, contributor_id, opts = {})
@@ -30,8 +27,8 @@ module Notifo
30
27
  end
31
28
 
32
29
  # Delete an app contributor.
33
- # @param app_id [String] The id of the app.
34
- # @param contributor_id [String] The contributor to remove.
30
+ # @param app_id The id of the app.
31
+ # @param contributor_id The contributor to remove.
35
32
  # @param [Hash] opts the optional parameters
36
33
  # @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
37
34
  def apps_delete_contributor_with_http_info(app_id, contributor_id, opts = {})
@@ -47,7 +44,7 @@ module Notifo
47
44
  fail ArgumentError, "Missing the required parameter 'contributor_id' when calling AppsApi.apps_delete_contributor"
48
45
  end
49
46
  # resource path
50
- local_var_path = '/api/apps/{appId}/contributors/{contributorId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'contributorId' + '}', CGI.escape(contributor_id.to_s))
47
+ local_var_path = '/api/apps/{appId}/contributors/{contributorId}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'contributorId' + '}', contributor_id.to_s)
51
48
 
52
49
  # query parameters
53
50
  query_params = opts[:query_params] || {}
@@ -61,60 +58,53 @@ module Notifo
61
58
  form_params = opts[:form_params] || {}
62
59
 
63
60
  # http body (model)
64
- post_body = opts[:debug_body]
61
+ post_body = opts[:body]
65
62
 
66
- # return_type
67
- return_type = opts[:debug_return_type] || 'AppDetailsDto'
63
+ return_type = opts[:return_type] || 'AppDetailsDto'
68
64
 
69
- # auth_names
70
- auth_names = opts[:debug_auth_names] || []
71
-
72
- new_options = opts.merge(
73
- :operation => :"AppsApi.apps_delete_contributor",
65
+ auth_names = opts[:auth_names] || []
66
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
74
67
  :header_params => header_params,
75
68
  :query_params => query_params,
76
69
  :form_params => form_params,
77
70
  :body => post_body,
78
71
  :auth_names => auth_names,
79
- :return_type => return_type
80
- )
72
+ :return_type => return_type)
81
73
 
82
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
83
74
  if @api_client.config.debugging
84
75
  @api_client.config.logger.debug "API called: AppsApi#apps_delete_contributor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
76
  end
86
77
  return data, status_code, headers
87
78
  end
88
-
89
- # Delete an app email template.
90
- # @param app_id [String] The id of the app where the email templates belong to.
91
- # @param language [String] The language.
79
+ # Delete an app integration.
80
+ # @param app_id The id of the app where the email templates belong to.
81
+ # @param id The id of the integration.
92
82
  # @param [Hash] opts the optional parameters
93
83
  # @return [nil]
94
- def apps_delete_email_template(app_id, language, opts = {})
95
- apps_delete_email_template_with_http_info(app_id, language, opts)
84
+ def apps_delete_integration(app_id, id, opts = {})
85
+ apps_delete_integration_with_http_info(app_id, id, opts)
96
86
  nil
97
87
  end
98
88
 
99
- # Delete an app email template.
100
- # @param app_id [String] The id of the app where the email templates belong to.
101
- # @param language [String] The language.
89
+ # Delete an app integration.
90
+ # @param app_id The id of the app where the email templates belong to.
91
+ # @param id The id of the integration.
102
92
  # @param [Hash] opts the optional parameters
103
93
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
104
- def apps_delete_email_template_with_http_info(app_id, language, opts = {})
94
+ def apps_delete_integration_with_http_info(app_id, id, opts = {})
105
95
  if @api_client.config.debugging
106
- @api_client.config.logger.debug 'Calling API: AppsApi.apps_delete_email_template ...'
96
+ @api_client.config.logger.debug 'Calling API: AppsApi.apps_delete_integration ...'
107
97
  end
108
98
  # verify the required parameter 'app_id' is set
109
99
  if @api_client.config.client_side_validation && app_id.nil?
110
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_delete_email_template"
100
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_delete_integration"
111
101
  end
112
- # verify the required parameter 'language' is set
113
- if @api_client.config.client_side_validation && language.nil?
114
- fail ArgumentError, "Missing the required parameter 'language' when calling AppsApi.apps_delete_email_template"
102
+ # verify the required parameter 'id' is set
103
+ if @api_client.config.client_side_validation && id.nil?
104
+ fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.apps_delete_integration"
115
105
  end
116
106
  # resource path
117
- local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'language' + '}', CGI.escape(language.to_s))
107
+ local_var_path = '/api/apps/{appId}/integrations/{id}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
118
108
 
119
109
  # query parameters
120
110
  query_params = opts[:query_params] || {}
@@ -128,33 +118,26 @@ module Notifo
128
118
  form_params = opts[:form_params] || {}
129
119
 
130
120
  # http body (model)
131
- post_body = opts[:debug_body]
121
+ post_body = opts[:body]
132
122
 
133
- # return_type
134
- return_type = opts[:debug_return_type]
123
+ return_type = opts[:return_type]
135
124
 
136
- # auth_names
137
- auth_names = opts[:debug_auth_names] || []
138
-
139
- new_options = opts.merge(
140
- :operation => :"AppsApi.apps_delete_email_template",
125
+ auth_names = opts[:auth_names] || []
126
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
141
127
  :header_params => header_params,
142
128
  :query_params => query_params,
143
129
  :form_params => form_params,
144
130
  :body => post_body,
145
131
  :auth_names => auth_names,
146
- :return_type => return_type
147
- )
132
+ :return_type => return_type)
148
133
 
149
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
150
134
  if @api_client.config.debugging
151
- @api_client.config.logger.debug "API called: AppsApi#apps_delete_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ @api_client.config.logger.debug "API called: AppsApi#apps_delete_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
152
136
  end
153
137
  return data, status_code, headers
154
138
  end
155
-
156
139
  # Get app by id.
157
- # @param app_id [String] The id of the app.
140
+ # @param app_id The id of the app.
158
141
  # @param [Hash] opts the optional parameters
159
142
  # @return [AppDetailsDto]
160
143
  def apps_get_app(app_id, opts = {})
@@ -163,7 +146,7 @@ module Notifo
163
146
  end
164
147
 
165
148
  # Get app by id.
166
- # @param app_id [String] The id of the app.
149
+ # @param app_id The id of the app.
167
150
  # @param [Hash] opts the optional parameters
168
151
  # @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
169
152
  def apps_get_app_with_http_info(app_id, opts = {})
@@ -175,7 +158,7 @@ module Notifo
175
158
  fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_app"
176
159
  end
177
160
  # resource path
178
- local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
161
+ local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', app_id.to_s)
179
162
 
180
163
  # query parameters
181
164
  query_params = opts[:query_params] || {}
@@ -189,31 +172,24 @@ module Notifo
189
172
  form_params = opts[:form_params] || {}
190
173
 
191
174
  # http body (model)
192
- post_body = opts[:debug_body]
175
+ post_body = opts[:body]
193
176
 
194
- # return_type
195
- return_type = opts[:debug_return_type] || 'AppDetailsDto'
177
+ return_type = opts[:return_type] || 'AppDetailsDto'
196
178
 
197
- # auth_names
198
- auth_names = opts[:debug_auth_names] || []
199
-
200
- new_options = opts.merge(
201
- :operation => :"AppsApi.apps_get_app",
179
+ auth_names = opts[:auth_names] || []
180
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
202
181
  :header_params => header_params,
203
182
  :query_params => query_params,
204
183
  :form_params => form_params,
205
184
  :body => post_body,
206
185
  :auth_names => auth_names,
207
- :return_type => return_type
208
- )
186
+ :return_type => return_type)
209
187
 
210
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
211
188
  if @api_client.config.debugging
212
189
  @api_client.config.logger.debug "API called: AppsApi#apps_get_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
190
  end
214
191
  return data, status_code, headers
215
192
  end
216
-
217
193
  # Get the user apps.
218
194
  # @param [Hash] opts the optional parameters
219
195
  # @return [Array<AppDto>]
@@ -244,54 +220,47 @@ module Notifo
244
220
  form_params = opts[:form_params] || {}
245
221
 
246
222
  # http body (model)
247
- post_body = opts[:debug_body]
223
+ post_body = opts[:body]
248
224
 
249
- # return_type
250
- return_type = opts[:debug_return_type] || 'Array<AppDto>'
225
+ return_type = opts[:return_type] || 'Array<AppDto>'
251
226
 
252
- # auth_names
253
- auth_names = opts[:debug_auth_names] || []
254
-
255
- new_options = opts.merge(
256
- :operation => :"AppsApi.apps_get_apps",
227
+ auth_names = opts[:auth_names] || []
228
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
257
229
  :header_params => header_params,
258
230
  :query_params => query_params,
259
231
  :form_params => form_params,
260
232
  :body => post_body,
261
233
  :auth_names => auth_names,
262
- :return_type => return_type
263
- )
234
+ :return_type => return_type)
264
235
 
265
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
266
236
  if @api_client.config.debugging
267
237
  @api_client.config.logger.debug "API called: AppsApi#apps_get_apps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
268
238
  end
269
239
  return data, status_code, headers
270
240
  end
271
-
272
- # Get the app email templates.
273
- # @param app_id [String] The id of the app where the email templates belong to.
241
+ # Get the app integrations.
242
+ # @param app_id The id of the app where the integrations belong to.
274
243
  # @param [Hash] opts the optional parameters
275
- # @return [Hash<String, EmailTemplateDto>]
276
- def apps_get_email_templates(app_id, opts = {})
277
- data, _status_code, _headers = apps_get_email_templates_with_http_info(app_id, opts)
244
+ # @return [ConfiguredIntegrationsDto]
245
+ def apps_get_integrations(app_id, opts = {})
246
+ data, _status_code, _headers = apps_get_integrations_with_http_info(app_id, opts)
278
247
  data
279
248
  end
280
249
 
281
- # Get the app email templates.
282
- # @param app_id [String] The id of the app where the email templates belong to.
250
+ # Get the app integrations.
251
+ # @param app_id The id of the app where the integrations belong to.
283
252
  # @param [Hash] opts the optional parameters
284
- # @return [Array<(Hash<String, EmailTemplateDto>, Integer, Hash)>] Hash<String, EmailTemplateDto> data, response status code and response headers
285
- def apps_get_email_templates_with_http_info(app_id, opts = {})
253
+ # @return [Array<(ConfiguredIntegrationsDto, Integer, Hash)>] ConfiguredIntegrationsDto data, response status code and response headers
254
+ def apps_get_integrations_with_http_info(app_id, opts = {})
286
255
  if @api_client.config.debugging
287
- @api_client.config.logger.debug 'Calling API: AppsApi.apps_get_email_templates ...'
256
+ @api_client.config.logger.debug 'Calling API: AppsApi.apps_get_integrations ...'
288
257
  end
289
258
  # verify the required parameter 'app_id' is set
290
259
  if @api_client.config.client_side_validation && app_id.nil?
291
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_email_templates"
260
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_integrations"
292
261
  end
293
262
  # resource path
294
- local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
263
+ local_var_path = '/api/apps/{appId}/integrations'.sub('{' + 'appId' + '}', app_id.to_s)
295
264
 
296
265
  # query parameters
297
266
  query_params = opts[:query_params] || {}
@@ -305,51 +274,44 @@ module Notifo
305
274
  form_params = opts[:form_params] || {}
306
275
 
307
276
  # http body (model)
308
- post_body = opts[:debug_body]
277
+ post_body = opts[:body]
309
278
 
310
- # return_type
311
- return_type = opts[:debug_return_type] || 'Hash<String, EmailTemplateDto>'
279
+ return_type = opts[:return_type] || 'ConfiguredIntegrationsDto'
312
280
 
313
- # auth_names
314
- auth_names = opts[:debug_auth_names] || []
315
-
316
- new_options = opts.merge(
317
- :operation => :"AppsApi.apps_get_email_templates",
281
+ auth_names = opts[:auth_names] || []
282
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
318
283
  :header_params => header_params,
319
284
  :query_params => query_params,
320
285
  :form_params => form_params,
321
286
  :body => post_body,
322
287
  :auth_names => auth_names,
323
- :return_type => return_type
324
- )
288
+ :return_type => return_type)
325
289
 
326
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
327
290
  if @api_client.config.debugging
328
- @api_client.config.logger.debug "API called: AppsApi#apps_get_email_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
291
+ @api_client.config.logger.debug "API called: AppsApi#apps_get_integrations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
329
292
  end
330
293
  return data, status_code, headers
331
294
  end
332
-
333
295
  # Create an app.
334
- # @param upsert_app_dto [UpsertAppDto] The request object.
296
+ # @param body The request object.
335
297
  # @param [Hash] opts the optional parameters
336
298
  # @return [AppDto]
337
- def apps_post_app(upsert_app_dto, opts = {})
338
- data, _status_code, _headers = apps_post_app_with_http_info(upsert_app_dto, opts)
299
+ def apps_post_app(body, opts = {})
300
+ data, _status_code, _headers = apps_post_app_with_http_info(body, opts)
339
301
  data
340
302
  end
341
303
 
342
304
  # Create an app.
343
- # @param upsert_app_dto [UpsertAppDto] The request object.
305
+ # @param body The request object.
344
306
  # @param [Hash] opts the optional parameters
345
307
  # @return [Array<(AppDto, Integer, Hash)>] AppDto data, response status code and response headers
346
- def apps_post_app_with_http_info(upsert_app_dto, opts = {})
308
+ def apps_post_app_with_http_info(body, opts = {})
347
309
  if @api_client.config.debugging
348
310
  @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_app ...'
349
311
  end
350
- # verify the required parameter 'upsert_app_dto' is set
351
- if @api_client.config.client_side_validation && upsert_app_dto.nil?
352
- fail ArgumentError, "Missing the required parameter 'upsert_app_dto' when calling AppsApi.apps_post_app"
312
+ # verify the required parameter 'body' is set
313
+ if @api_client.config.client_side_validation && body.nil?
314
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_app"
353
315
  end
354
316
  # resource path
355
317
  local_var_path = '/api/apps'
@@ -368,60 +330,53 @@ module Notifo
368
330
  form_params = opts[:form_params] || {}
369
331
 
370
332
  # http body (model)
371
- post_body = opts[:debug_body] || @api_client.object_to_http_body(upsert_app_dto)
333
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
372
334
 
373
- # return_type
374
- return_type = opts[:debug_return_type] || 'AppDto'
335
+ return_type = opts[:return_type] || 'AppDto'
375
336
 
376
- # auth_names
377
- auth_names = opts[:debug_auth_names] || []
378
-
379
- new_options = opts.merge(
380
- :operation => :"AppsApi.apps_post_app",
337
+ auth_names = opts[:auth_names] || []
338
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
381
339
  :header_params => header_params,
382
340
  :query_params => query_params,
383
341
  :form_params => form_params,
384
342
  :body => post_body,
385
343
  :auth_names => auth_names,
386
- :return_type => return_type
387
- )
344
+ :return_type => return_type)
388
345
 
389
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
390
346
  if @api_client.config.debugging
391
347
  @api_client.config.logger.debug "API called: AppsApi#apps_post_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
348
  end
393
349
  return data, status_code, headers
394
350
  end
395
-
396
351
  # Add an app contributor.
397
- # @param app_id [String] The id of the app.
398
- # @param add_contributor_dto [AddContributorDto] The request object.
352
+ # @param body The request object.
353
+ # @param app_id The id of the app.
399
354
  # @param [Hash] opts the optional parameters
400
355
  # @return [AppDetailsDto]
401
- def apps_post_contributor(app_id, add_contributor_dto, opts = {})
402
- data, _status_code, _headers = apps_post_contributor_with_http_info(app_id, add_contributor_dto, opts)
356
+ def apps_post_contributor(body, app_id, opts = {})
357
+ data, _status_code, _headers = apps_post_contributor_with_http_info(body, app_id, opts)
403
358
  data
404
359
  end
405
360
 
406
361
  # Add an app contributor.
407
- # @param app_id [String] The id of the app.
408
- # @param add_contributor_dto [AddContributorDto] The request object.
362
+ # @param body The request object.
363
+ # @param app_id The id of the app.
409
364
  # @param [Hash] opts the optional parameters
410
365
  # @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
411
- def apps_post_contributor_with_http_info(app_id, add_contributor_dto, opts = {})
366
+ def apps_post_contributor_with_http_info(body, app_id, opts = {})
412
367
  if @api_client.config.debugging
413
368
  @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_contributor ...'
414
369
  end
370
+ # verify the required parameter 'body' is set
371
+ if @api_client.config.client_side_validation && body.nil?
372
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_contributor"
373
+ end
415
374
  # verify the required parameter 'app_id' is set
416
375
  if @api_client.config.client_side_validation && app_id.nil?
417
376
  fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_contributor"
418
377
  end
419
- # verify the required parameter 'add_contributor_dto' is set
420
- if @api_client.config.client_side_validation && add_contributor_dto.nil?
421
- fail ArgumentError, "Missing the required parameter 'add_contributor_dto' when calling AppsApi.apps_post_contributor"
422
- end
423
378
  # resource path
424
- local_var_path = '/api/apps/{appId}/contributors'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
379
+ local_var_path = '/api/apps/{appId}/contributors'.sub('{' + 'appId' + '}', app_id.to_s)
425
380
 
426
381
  # query parameters
427
382
  query_params = opts[:query_params] || {}
@@ -437,60 +392,53 @@ module Notifo
437
392
  form_params = opts[:form_params] || {}
438
393
 
439
394
  # http body (model)
440
- post_body = opts[:debug_body] || @api_client.object_to_http_body(add_contributor_dto)
441
-
442
- # return_type
443
- return_type = opts[:debug_return_type] || 'AppDetailsDto'
395
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
444
396
 
445
- # auth_names
446
- auth_names = opts[:debug_auth_names] || []
397
+ return_type = opts[:return_type] || 'AppDetailsDto'
447
398
 
448
- new_options = opts.merge(
449
- :operation => :"AppsApi.apps_post_contributor",
399
+ auth_names = opts[:auth_names] || []
400
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
450
401
  :header_params => header_params,
451
402
  :query_params => query_params,
452
403
  :form_params => form_params,
453
404
  :body => post_body,
454
405
  :auth_names => auth_names,
455
- :return_type => return_type
456
- )
406
+ :return_type => return_type)
457
407
 
458
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
459
408
  if @api_client.config.debugging
460
409
  @api_client.config.logger.debug "API called: AppsApi#apps_post_contributor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
461
410
  end
462
411
  return data, status_code, headers
463
412
  end
464
-
465
- # Create an app email template.
466
- # @param app_id [String] The id of the app where the email templates belong to.
467
- # @param create_email_template_dto [CreateEmailTemplateDto] The request object.
413
+ # Create an app integrations.
414
+ # @param body The request object.
415
+ # @param app_id The id of the app where the integration belong to.
468
416
  # @param [Hash] opts the optional parameters
469
- # @return [EmailTemplateDto]
470
- def apps_post_email_template(app_id, create_email_template_dto, opts = {})
471
- data, _status_code, _headers = apps_post_email_template_with_http_info(app_id, create_email_template_dto, opts)
417
+ # @return [IntegrationCreatedDto]
418
+ def apps_post_integration(body, app_id, opts = {})
419
+ data, _status_code, _headers = apps_post_integration_with_http_info(body, app_id, opts)
472
420
  data
473
421
  end
474
422
 
475
- # Create an app email template.
476
- # @param app_id [String] The id of the app where the email templates belong to.
477
- # @param create_email_template_dto [CreateEmailTemplateDto] The request object.
423
+ # Create an app integrations.
424
+ # @param body The request object.
425
+ # @param app_id The id of the app where the integration belong to.
478
426
  # @param [Hash] opts the optional parameters
479
- # @return [Array<(EmailTemplateDto, Integer, Hash)>] EmailTemplateDto data, response status code and response headers
480
- def apps_post_email_template_with_http_info(app_id, create_email_template_dto, opts = {})
427
+ # @return [Array<(IntegrationCreatedDto, Integer, Hash)>] IntegrationCreatedDto data, response status code and response headers
428
+ def apps_post_integration_with_http_info(body, app_id, opts = {})
481
429
  if @api_client.config.debugging
482
- @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_email_template ...'
430
+ @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_integration ...'
431
+ end
432
+ # verify the required parameter 'body' is set
433
+ if @api_client.config.client_side_validation && body.nil?
434
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_integration"
483
435
  end
484
436
  # verify the required parameter 'app_id' is set
485
437
  if @api_client.config.client_side_validation && app_id.nil?
486
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_email_template"
487
- end
488
- # verify the required parameter 'create_email_template_dto' is set
489
- if @api_client.config.client_side_validation && create_email_template_dto.nil?
490
- fail ArgumentError, "Missing the required parameter 'create_email_template_dto' when calling AppsApi.apps_post_email_template"
438
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_integration"
491
439
  end
492
440
  # resource path
493
- local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
441
+ local_var_path = '/api/apps/{appId}/integration'.sub('{' + 'appId' + '}', app_id.to_s)
494
442
 
495
443
  # query parameters
496
444
  query_params = opts[:query_params] || {}
@@ -506,60 +454,53 @@ module Notifo
506
454
  form_params = opts[:form_params] || {}
507
455
 
508
456
  # http body (model)
509
- post_body = opts[:debug_body] || @api_client.object_to_http_body(create_email_template_dto)
510
-
511
- # return_type
512
- return_type = opts[:debug_return_type] || 'EmailTemplateDto'
457
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
513
458
 
514
- # auth_names
515
- auth_names = opts[:debug_auth_names] || []
459
+ return_type = opts[:return_type] || 'IntegrationCreatedDto'
516
460
 
517
- new_options = opts.merge(
518
- :operation => :"AppsApi.apps_post_email_template",
461
+ auth_names = opts[:auth_names] || []
462
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
519
463
  :header_params => header_params,
520
464
  :query_params => query_params,
521
465
  :form_params => form_params,
522
466
  :body => post_body,
523
467
  :auth_names => auth_names,
524
- :return_type => return_type
525
- )
468
+ :return_type => return_type)
526
469
 
527
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
528
470
  if @api_client.config.debugging
529
- @api_client.config.logger.debug "API called: AppsApi#apps_post_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
471
+ @api_client.config.logger.debug "API called: AppsApi#apps_post_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
530
472
  end
531
473
  return data, status_code, headers
532
474
  end
533
-
534
475
  # Update an app.
535
- # @param app_id [String] The app id to update.
536
- # @param upsert_app_dto [UpsertAppDto] The request object.
476
+ # @param body The request object.
477
+ # @param app_id The app id to update.
537
478
  # @param [Hash] opts the optional parameters
538
479
  # @return [AppDetailsDto]
539
- def apps_put_app(app_id, upsert_app_dto, opts = {})
540
- data, _status_code, _headers = apps_put_app_with_http_info(app_id, upsert_app_dto, opts)
480
+ def apps_put_app(body, app_id, opts = {})
481
+ data, _status_code, _headers = apps_put_app_with_http_info(body, app_id, opts)
541
482
  data
542
483
  end
543
484
 
544
485
  # Update an app.
545
- # @param app_id [String] The app id to update.
546
- # @param upsert_app_dto [UpsertAppDto] The request object.
486
+ # @param body The request object.
487
+ # @param app_id The app id to update.
547
488
  # @param [Hash] opts the optional parameters
548
489
  # @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
549
- def apps_put_app_with_http_info(app_id, upsert_app_dto, opts = {})
490
+ def apps_put_app_with_http_info(body, app_id, opts = {})
550
491
  if @api_client.config.debugging
551
492
  @api_client.config.logger.debug 'Calling API: AppsApi.apps_put_app ...'
552
493
  end
494
+ # verify the required parameter 'body' is set
495
+ if @api_client.config.client_side_validation && body.nil?
496
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_put_app"
497
+ end
553
498
  # verify the required parameter 'app_id' is set
554
499
  if @api_client.config.client_side_validation && app_id.nil?
555
500
  fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_app"
556
501
  end
557
- # verify the required parameter 'upsert_app_dto' is set
558
- if @api_client.config.client_side_validation && upsert_app_dto.nil?
559
- fail ArgumentError, "Missing the required parameter 'upsert_app_dto' when calling AppsApi.apps_put_app"
560
- end
561
502
  # resource path
562
- local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
503
+ local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', app_id.to_s)
563
504
 
564
505
  # query parameters
565
506
  query_params = opts[:query_params] || {}
@@ -575,66 +516,59 @@ module Notifo
575
516
  form_params = opts[:form_params] || {}
576
517
 
577
518
  # http body (model)
578
- post_body = opts[:debug_body] || @api_client.object_to_http_body(upsert_app_dto)
519
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
579
520
 
580
- # return_type
581
- return_type = opts[:debug_return_type] || 'AppDetailsDto'
521
+ return_type = opts[:return_type] || 'AppDetailsDto'
582
522
 
583
- # auth_names
584
- auth_names = opts[:debug_auth_names] || []
585
-
586
- new_options = opts.merge(
587
- :operation => :"AppsApi.apps_put_app",
523
+ auth_names = opts[:auth_names] || []
524
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
588
525
  :header_params => header_params,
589
526
  :query_params => query_params,
590
527
  :form_params => form_params,
591
528
  :body => post_body,
592
529
  :auth_names => auth_names,
593
- :return_type => return_type
594
- )
530
+ :return_type => return_type)
595
531
 
596
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
597
532
  if @api_client.config.debugging
598
533
  @api_client.config.logger.debug "API called: AppsApi#apps_put_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
599
534
  end
600
535
  return data, status_code, headers
601
536
  end
602
-
603
- # Update an app email template.
604
- # @param app_id [String] The id of the app where the email templates belong to.
605
- # @param language [String] The language.
606
- # @param email_template_dto [EmailTemplateDto] The request object.
537
+ # Update an app integration.
538
+ # @param body The request object.
539
+ # @param app_id The id of the app where the integration belong to.
540
+ # @param id The id of the integration.
607
541
  # @param [Hash] opts the optional parameters
608
542
  # @return [nil]
609
- def apps_put_email_template(app_id, language, email_template_dto, opts = {})
610
- apps_put_email_template_with_http_info(app_id, language, email_template_dto, opts)
543
+ def apps_put_integration(body, app_id, id, opts = {})
544
+ apps_put_integration_with_http_info(body, app_id, id, opts)
611
545
  nil
612
546
  end
613
547
 
614
- # Update an app email template.
615
- # @param app_id [String] The id of the app where the email templates belong to.
616
- # @param language [String] The language.
617
- # @param email_template_dto [EmailTemplateDto] The request object.
548
+ # Update an app integration.
549
+ # @param body The request object.
550
+ # @param app_id The id of the app where the integration belong to.
551
+ # @param id The id of the integration.
618
552
  # @param [Hash] opts the optional parameters
619
553
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
620
- def apps_put_email_template_with_http_info(app_id, language, email_template_dto, opts = {})
554
+ def apps_put_integration_with_http_info(body, app_id, id, opts = {})
621
555
  if @api_client.config.debugging
622
- @api_client.config.logger.debug 'Calling API: AppsApi.apps_put_email_template ...'
556
+ @api_client.config.logger.debug 'Calling API: AppsApi.apps_put_integration ...'
557
+ end
558
+ # verify the required parameter 'body' is set
559
+ if @api_client.config.client_side_validation && body.nil?
560
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_put_integration"
623
561
  end
624
562
  # verify the required parameter 'app_id' is set
625
563
  if @api_client.config.client_side_validation && app_id.nil?
626
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_email_template"
627
- end
628
- # verify the required parameter 'language' is set
629
- if @api_client.config.client_side_validation && language.nil?
630
- fail ArgumentError, "Missing the required parameter 'language' when calling AppsApi.apps_put_email_template"
564
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_integration"
631
565
  end
632
- # verify the required parameter 'email_template_dto' is set
633
- if @api_client.config.client_side_validation && email_template_dto.nil?
634
- fail ArgumentError, "Missing the required parameter 'email_template_dto' when calling AppsApi.apps_put_email_template"
566
+ # verify the required parameter 'id' is set
567
+ if @api_client.config.client_side_validation && id.nil?
568
+ fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.apps_put_integration"
635
569
  end
636
570
  # resource path
637
- local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'language' + '}', CGI.escape(language.to_s))
571
+ local_var_path = '/api/apps/{appId}/integrations/{id}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
638
572
 
639
573
  # query parameters
640
574
  query_params = opts[:query_params] || {}
@@ -650,27 +584,21 @@ module Notifo
650
584
  form_params = opts[:form_params] || {}
651
585
 
652
586
  # http body (model)
653
- post_body = opts[:debug_body] || @api_client.object_to_http_body(email_template_dto)
654
-
655
- # return_type
656
- return_type = opts[:debug_return_type]
587
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
657
588
 
658
- # auth_names
659
- auth_names = opts[:debug_auth_names] || []
589
+ return_type = opts[:return_type]
660
590
 
661
- new_options = opts.merge(
662
- :operation => :"AppsApi.apps_put_email_template",
591
+ auth_names = opts[:auth_names] || []
592
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
663
593
  :header_params => header_params,
664
594
  :query_params => query_params,
665
595
  :form_params => form_params,
666
596
  :body => post_body,
667
597
  :auth_names => auth_names,
668
- :return_type => return_type
669
- )
598
+ :return_type => return_type)
670
599
 
671
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
672
600
  if @api_client.config.debugging
673
- @api_client.config.logger.debug "API called: AppsApi#apps_put_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
601
+ @api_client.config.logger.debug "API called: AppsApi#apps_put_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
674
602
  end
675
603
  return data, status_code, headers
676
604
  end