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
data/docs/AppsApi.md CHANGED
@@ -1,70 +1,50 @@
1
1
  # Notifo::AppsApi
2
2
 
3
- All URIs are relative to *http://localhost*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**apps_delete_contributor**](AppsApi.md#apps_delete_contributor) | **POST** /api/apps/{appId}/contributors/{contributorId} | Delete an app contributor. |
8
- | [**apps_delete_email_template**](AppsApi.md#apps_delete_email_template) | **POST** /api/apps/{appId}/email-templates/{language} | Delete an app email template. |
9
- | [**apps_get_app**](AppsApi.md#apps_get_app) | **GET** /api/apps/{appId} | Get app by id. |
10
- | [**apps_get_apps**](AppsApi.md#apps_get_apps) | **GET** /api/apps | Get the user apps. |
11
- | [**apps_get_email_templates**](AppsApi.md#apps_get_email_templates) | **GET** /api/apps/{appId}/email-templates | Get the app email templates. |
12
- | [**apps_post_app**](AppsApi.md#apps_post_app) | **POST** /api/apps | Create an app. |
13
- | [**apps_post_contributor**](AppsApi.md#apps_post_contributor) | **POST** /api/apps/{appId}/contributors | Add an app contributor. |
14
- | [**apps_post_email_template**](AppsApi.md#apps_post_email_template) | **POST** /api/apps/{appId}/email-templates | Create an app email template. |
15
- | [**apps_put_app**](AppsApi.md#apps_put_app) | **POST** /api/apps/{appId} | Update an app. |
16
- | [**apps_put_email_template**](AppsApi.md#apps_put_email_template) | **PUT** /api/apps/{appId}/email-templates/{language} | Update an app email template. |
17
-
18
-
19
- ## apps_delete_contributor
20
-
21
- > <AppDetailsDto> apps_delete_contributor(app_id, contributor_id)
3
+ All URIs are relative to *https://notifo.easierlife.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**apps_delete_contributor**](AppsApi.md#apps_delete_contributor) | **POST** /api/apps/{appId}/contributors/{contributorId} | Delete an app contributor.
8
+ [**apps_delete_integration**](AppsApi.md#apps_delete_integration) | **DELETE** /api/apps/{appId}/integrations/{id} | Delete an app integration.
9
+ [**apps_get_app**](AppsApi.md#apps_get_app) | **GET** /api/apps/{appId} | Get app by id.
10
+ [**apps_get_apps**](AppsApi.md#apps_get_apps) | **GET** /api/apps | Get the user apps.
11
+ [**apps_get_integrations**](AppsApi.md#apps_get_integrations) | **GET** /api/apps/{appId}/integrations | Get the app integrations.
12
+ [**apps_post_app**](AppsApi.md#apps_post_app) | **POST** /api/apps | Create an app.
13
+ [**apps_post_contributor**](AppsApi.md#apps_post_contributor) | **POST** /api/apps/{appId}/contributors | Add an app contributor.
14
+ [**apps_post_integration**](AppsApi.md#apps_post_integration) | **POST** /api/apps/{appId}/integration | Create an app integrations.
15
+ [**apps_put_app**](AppsApi.md#apps_put_app) | **POST** /api/apps/{appId} | Update an app.
16
+ [**apps_put_integration**](AppsApi.md#apps_put_integration) | **PUT** /api/apps/{appId}/integrations/{id} | Update an app integration.
17
+
18
+ # **apps_delete_contributor**
19
+ > AppDetailsDto apps_delete_contributor(app_id, contributor_id)
22
20
 
23
21
  Delete an app contributor.
24
22
 
25
- ### Examples
26
-
23
+ ### Example
27
24
  ```ruby
28
- require 'time'
25
+ # load the gem
29
26
  require 'notifo'
30
27
 
31
28
  api_instance = Notifo::AppsApi.new
32
29
  app_id = 'app_id_example' # String | The id of the app.
33
30
  contributor_id = 'contributor_id_example' # String | The contributor to remove.
34
31
 
32
+
35
33
  begin
36
- # Delete an app contributor.
34
+ #Delete an app contributor.
37
35
  result = api_instance.apps_delete_contributor(app_id, contributor_id)
38
36
  p result
39
37
  rescue Notifo::ApiError => e
40
- puts "Error when calling AppsApi->apps_delete_contributor: #{e}"
41
- end
42
- ```
43
-
44
- #### Using the apps_delete_contributor_with_http_info variant
45
-
46
- This returns an Array which contains the response data, status code and headers.
47
-
48
- > <Array(<AppDetailsDto>, Integer, Hash)> apps_delete_contributor_with_http_info(app_id, contributor_id)
49
-
50
- ```ruby
51
- begin
52
- # Delete an app contributor.
53
- data, status_code, headers = api_instance.apps_delete_contributor_with_http_info(app_id, contributor_id)
54
- p status_code # => 2xx
55
- p headers # => { ... }
56
- p data # => <AppDetailsDto>
57
- rescue Notifo::ApiError => e
58
- puts "Error when calling AppsApi->apps_delete_contributor_with_http_info: #{e}"
38
+ puts "Exception when calling AppsApi->apps_delete_contributor: #{e}"
59
39
  end
60
40
  ```
61
41
 
62
42
  ### Parameters
63
43
 
64
- | Name | Type | Description | Notes |
65
- | ---- | ---- | ----------- | ----- |
66
- | **app_id** | **String** | The id of the app. | |
67
- | **contributor_id** | **String** | The contributor to remove. | |
44
+ Name | Type | Description | Notes
45
+ ------------- | ------------- | ------------- | -------------
46
+ **app_id** | **String**| The id of the app. |
47
+ **contributor_id** | **String**| The contributor to remove. |
68
48
 
69
49
  ### Return type
70
50
 
@@ -76,58 +56,40 @@ No authorization required
76
56
 
77
57
  ### HTTP request headers
78
58
 
79
- - **Content-Type**: Not defined
80
- - **Accept**: application/json
59
+ - **Content-Type**: Not defined
60
+ - **Accept**: application/json
81
61
 
82
62
 
83
- ## apps_delete_email_template
84
63
 
85
- > apps_delete_email_template(app_id, language)
64
+ # **apps_delete_integration**
65
+ > apps_delete_integration(app_id, id)
86
66
 
87
- Delete an app email template.
88
-
89
- ### Examples
67
+ Delete an app integration.
90
68
 
69
+ ### Example
91
70
  ```ruby
92
- require 'time'
71
+ # load the gem
93
72
  require 'notifo'
94
73
 
95
74
  api_instance = Notifo::AppsApi.new
96
75
  app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
97
- language = 'language_example' # String | The language.
98
-
99
- begin
100
- # Delete an app email template.
101
- api_instance.apps_delete_email_template(app_id, language)
102
- rescue Notifo::ApiError => e
103
- puts "Error when calling AppsApi->apps_delete_email_template: #{e}"
104
- end
105
- ```
106
-
107
- #### Using the apps_delete_email_template_with_http_info variant
76
+ id = 'id_example' # String | The id of the integration.
108
77
 
109
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
110
78
 
111
- > <Array(nil, Integer, Hash)> apps_delete_email_template_with_http_info(app_id, language)
112
-
113
- ```ruby
114
79
  begin
115
- # Delete an app email template.
116
- data, status_code, headers = api_instance.apps_delete_email_template_with_http_info(app_id, language)
117
- p status_code # => 2xx
118
- p headers # => { ... }
119
- p data # => nil
80
+ #Delete an app integration.
81
+ api_instance.apps_delete_integration(app_id, id)
120
82
  rescue Notifo::ApiError => e
121
- puts "Error when calling AppsApi->apps_delete_email_template_with_http_info: #{e}"
83
+ puts "Exception when calling AppsApi->apps_delete_integration: #{e}"
122
84
  end
123
85
  ```
124
86
 
125
87
  ### Parameters
126
88
 
127
- | Name | Type | Description | Notes |
128
- | ---- | ---- | ----------- | ----- |
129
- | **app_id** | **String** | The id of the app where the email templates belong to. | |
130
- | **language** | **String** | The language. | |
89
+ Name | Type | Description | Notes
90
+ ------------- | ------------- | ------------- | -------------
91
+ **app_id** | **String**| The id of the app where the email templates belong to. |
92
+ **id** | **String**| The id of the integration. |
131
93
 
132
94
  ### Return type
133
95
 
@@ -139,57 +101,39 @@ No authorization required
139
101
 
140
102
  ### HTTP request headers
141
103
 
142
- - **Content-Type**: Not defined
143
- - **Accept**: application/json
104
+ - **Content-Type**: Not defined
105
+ - **Accept**: application/json
144
106
 
145
107
 
146
- ## apps_get_app
147
108
 
148
- > <AppDetailsDto> apps_get_app(app_id)
109
+ # **apps_get_app**
110
+ > AppDetailsDto apps_get_app(app_id)
149
111
 
150
112
  Get app by id.
151
113
 
152
- ### Examples
153
-
114
+ ### Example
154
115
  ```ruby
155
- require 'time'
116
+ # load the gem
156
117
  require 'notifo'
157
118
 
158
119
  api_instance = Notifo::AppsApi.new
159
120
  app_id = 'app_id_example' # String | The id of the app.
160
121
 
122
+
161
123
  begin
162
- # Get app by id.
124
+ #Get app by id.
163
125
  result = api_instance.apps_get_app(app_id)
164
126
  p result
165
127
  rescue Notifo::ApiError => e
166
- puts "Error when calling AppsApi->apps_get_app: #{e}"
167
- end
168
- ```
169
-
170
- #### Using the apps_get_app_with_http_info variant
171
-
172
- This returns an Array which contains the response data, status code and headers.
173
-
174
- > <Array(<AppDetailsDto>, Integer, Hash)> apps_get_app_with_http_info(app_id)
175
-
176
- ```ruby
177
- begin
178
- # Get app by id.
179
- data, status_code, headers = api_instance.apps_get_app_with_http_info(app_id)
180
- p status_code # => 2xx
181
- p headers # => { ... }
182
- p data # => <AppDetailsDto>
183
- rescue Notifo::ApiError => e
184
- puts "Error when calling AppsApi->apps_get_app_with_http_info: #{e}"
128
+ puts "Exception when calling AppsApi->apps_get_app: #{e}"
185
129
  end
186
130
  ```
187
131
 
188
132
  ### Parameters
189
133
 
190
- | Name | Type | Description | Notes |
191
- | ---- | ---- | ----------- | ----- |
192
- | **app_id** | **String** | The id of the app. | |
134
+ Name | Type | Description | Notes
135
+ ------------- | ------------- | ------------- | -------------
136
+ **app_id** | **String**| The id of the app. |
193
137
 
194
138
  ### Return type
195
139
 
@@ -201,53 +145,33 @@ No authorization required
201
145
 
202
146
  ### HTTP request headers
203
147
 
204
- - **Content-Type**: Not defined
205
- - **Accept**: application/json
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: application/json
206
150
 
207
151
 
208
- ## apps_get_apps
209
152
 
210
- > <Array<AppDto>> apps_get_apps
153
+ # **apps_get_apps**
154
+ > Array&lt;AppDto&gt; apps_get_apps
211
155
 
212
156
  Get the user apps.
213
157
 
214
- ### Examples
215
-
158
+ ### Example
216
159
  ```ruby
217
- require 'time'
160
+ # load the gem
218
161
  require 'notifo'
219
162
 
220
163
  api_instance = Notifo::AppsApi.new
221
164
 
222
165
  begin
223
- # Get the user apps.
166
+ #Get the user apps.
224
167
  result = api_instance.apps_get_apps
225
168
  p result
226
169
  rescue Notifo::ApiError => e
227
- puts "Error when calling AppsApi->apps_get_apps: #{e}"
228
- end
229
- ```
230
-
231
- #### Using the apps_get_apps_with_http_info variant
232
-
233
- This returns an Array which contains the response data, status code and headers.
234
-
235
- > <Array(<Array<AppDto>>, Integer, Hash)> apps_get_apps_with_http_info
236
-
237
- ```ruby
238
- begin
239
- # Get the user apps.
240
- data, status_code, headers = api_instance.apps_get_apps_with_http_info
241
- p status_code # => 2xx
242
- p headers # => { ... }
243
- p data # => <Array<AppDto>>
244
- rescue Notifo::ApiError => e
245
- puts "Error when calling AppsApi->apps_get_apps_with_http_info: #{e}"
170
+ puts "Exception when calling AppsApi->apps_get_apps: #{e}"
246
171
  end
247
172
  ```
248
173
 
249
174
  ### Parameters
250
-
251
175
  This endpoint does not need any parameter.
252
176
 
253
177
  ### Return type
@@ -260,61 +184,43 @@ No authorization required
260
184
 
261
185
  ### HTTP request headers
262
186
 
263
- - **Content-Type**: Not defined
264
- - **Accept**: application/json
187
+ - **Content-Type**: Not defined
188
+ - **Accept**: application/json
265
189
 
266
190
 
267
- ## apps_get_email_templates
268
191
 
269
- > <Hash<String, EmailTemplateDto>> apps_get_email_templates(app_id)
192
+ # **apps_get_integrations**
193
+ > ConfiguredIntegrationsDto apps_get_integrations(app_id)
270
194
 
271
- Get the app email templates.
272
-
273
- ### Examples
195
+ Get the app integrations.
274
196
 
197
+ ### Example
275
198
  ```ruby
276
- require 'time'
199
+ # load the gem
277
200
  require 'notifo'
278
201
 
279
202
  api_instance = Notifo::AppsApi.new
280
- app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
281
-
282
- begin
283
- # Get the app email templates.
284
- result = api_instance.apps_get_email_templates(app_id)
285
- p result
286
- rescue Notifo::ApiError => e
287
- puts "Error when calling AppsApi->apps_get_email_templates: #{e}"
288
- end
289
- ```
290
-
291
- #### Using the apps_get_email_templates_with_http_info variant
203
+ app_id = 'app_id_example' # String | The id of the app where the integrations belong to.
292
204
 
293
- This returns an Array which contains the response data, status code and headers.
294
205
 
295
- > <Array(<Hash<String, EmailTemplateDto>>, Integer, Hash)> apps_get_email_templates_with_http_info(app_id)
296
-
297
- ```ruby
298
206
  begin
299
- # Get the app email templates.
300
- data, status_code, headers = api_instance.apps_get_email_templates_with_http_info(app_id)
301
- p status_code # => 2xx
302
- p headers # => { ... }
303
- p data # => <Hash<String, EmailTemplateDto>>
207
+ #Get the app integrations.
208
+ result = api_instance.apps_get_integrations(app_id)
209
+ p result
304
210
  rescue Notifo::ApiError => e
305
- puts "Error when calling AppsApi->apps_get_email_templates_with_http_info: #{e}"
211
+ puts "Exception when calling AppsApi->apps_get_integrations: #{e}"
306
212
  end
307
213
  ```
308
214
 
309
215
  ### Parameters
310
216
 
311
- | Name | Type | Description | Notes |
312
- | ---- | ---- | ----------- | ----- |
313
- | **app_id** | **String** | The id of the app where the email templates belong to. | |
217
+ Name | Type | Description | Notes
218
+ ------------- | ------------- | ------------- | -------------
219
+ **app_id** | **String**| The id of the app where the integrations belong to. |
314
220
 
315
221
  ### Return type
316
222
 
317
- [**Hash&lt;String, EmailTemplateDto&gt;**](EmailTemplateDto.md)
223
+ [**ConfiguredIntegrationsDto**](ConfiguredIntegrationsDto.md)
318
224
 
319
225
  ### Authorization
320
226
 
@@ -322,57 +228,39 @@ No authorization required
322
228
 
323
229
  ### HTTP request headers
324
230
 
325
- - **Content-Type**: Not defined
326
- - **Accept**: application/json
231
+ - **Content-Type**: Not defined
232
+ - **Accept**: application/json
327
233
 
328
234
 
329
- ## apps_post_app
330
235
 
331
- > <AppDto> apps_post_app(upsert_app_dto)
236
+ # **apps_post_app**
237
+ > AppDto apps_post_app(body)
332
238
 
333
239
  Create an app.
334
240
 
335
- ### Examples
336
-
241
+ ### Example
337
242
  ```ruby
338
- require 'time'
243
+ # load the gem
339
244
  require 'notifo'
340
245
 
341
246
  api_instance = Notifo::AppsApi.new
342
- upsert_app_dto = Notifo::UpsertAppDto.new # UpsertAppDto | The request object.
343
-
344
- begin
345
- # Create an app.
346
- result = api_instance.apps_post_app(upsert_app_dto)
347
- p result
348
- rescue Notifo::ApiError => e
349
- puts "Error when calling AppsApi->apps_post_app: #{e}"
350
- end
351
- ```
352
-
353
- #### Using the apps_post_app_with_http_info variant
247
+ body = Notifo::UpsertAppDto.new # UpsertAppDto | The request object.
354
248
 
355
- This returns an Array which contains the response data, status code and headers.
356
249
 
357
- > <Array(<AppDto>, Integer, Hash)> apps_post_app_with_http_info(upsert_app_dto)
358
-
359
- ```ruby
360
250
  begin
361
- # Create an app.
362
- data, status_code, headers = api_instance.apps_post_app_with_http_info(upsert_app_dto)
363
- p status_code # => 2xx
364
- p headers # => { ... }
365
- p data # => <AppDto>
251
+ #Create an app.
252
+ result = api_instance.apps_post_app(body)
253
+ p result
366
254
  rescue Notifo::ApiError => e
367
- puts "Error when calling AppsApi->apps_post_app_with_http_info: #{e}"
255
+ puts "Exception when calling AppsApi->apps_post_app: #{e}"
368
256
  end
369
257
  ```
370
258
 
371
259
  ### Parameters
372
260
 
373
- | Name | Type | Description | Notes |
374
- | ---- | ---- | ----------- | ----- |
375
- | **upsert_app_dto** | [**UpsertAppDto**](UpsertAppDto.md) | The request object. | |
261
+ Name | Type | Description | Notes
262
+ ------------- | ------------- | ------------- | -------------
263
+ **body** | [**UpsertAppDto**](UpsertAppDto.md)| The request object. |
376
264
 
377
265
  ### Return type
378
266
 
@@ -384,59 +272,41 @@ No authorization required
384
272
 
385
273
  ### HTTP request headers
386
274
 
387
- - **Content-Type**: application/json
388
- - **Accept**: application/json
275
+ - **Content-Type**: application/json
276
+ - **Accept**: application/json
389
277
 
390
278
 
391
- ## apps_post_contributor
392
279
 
393
- > <AppDetailsDto> apps_post_contributor(app_id, add_contributor_dto)
280
+ # **apps_post_contributor**
281
+ > AppDetailsDto apps_post_contributor(bodyapp_id)
394
282
 
395
283
  Add an app contributor.
396
284
 
397
- ### Examples
398
-
285
+ ### Example
399
286
  ```ruby
400
- require 'time'
287
+ # load the gem
401
288
  require 'notifo'
402
289
 
403
290
  api_instance = Notifo::AppsApi.new
291
+ body = Notifo::AddContributorDto.new # AddContributorDto | The request object.
404
292
  app_id = 'app_id_example' # String | The id of the app.
405
- add_contributor_dto = Notifo::AddContributorDto.new({email: 'email_example', role: 'role_example'}) # AddContributorDto | The request object.
406
293
 
407
- begin
408
- # Add an app contributor.
409
- result = api_instance.apps_post_contributor(app_id, add_contributor_dto)
410
- p result
411
- rescue Notifo::ApiError => e
412
- puts "Error when calling AppsApi->apps_post_contributor: #{e}"
413
- end
414
- ```
415
-
416
- #### Using the apps_post_contributor_with_http_info variant
417
-
418
- This returns an Array which contains the response data, status code and headers.
419
294
 
420
- > <Array(<AppDetailsDto>, Integer, Hash)> apps_post_contributor_with_http_info(app_id, add_contributor_dto)
421
-
422
- ```ruby
423
295
  begin
424
- # Add an app contributor.
425
- data, status_code, headers = api_instance.apps_post_contributor_with_http_info(app_id, add_contributor_dto)
426
- p status_code # => 2xx
427
- p headers # => { ... }
428
- p data # => <AppDetailsDto>
296
+ #Add an app contributor.
297
+ result = api_instance.apps_post_contributor(bodyapp_id)
298
+ p result
429
299
  rescue Notifo::ApiError => e
430
- puts "Error when calling AppsApi->apps_post_contributor_with_http_info: #{e}"
300
+ puts "Exception when calling AppsApi->apps_post_contributor: #{e}"
431
301
  end
432
302
  ```
433
303
 
434
304
  ### Parameters
435
305
 
436
- | Name | Type | Description | Notes |
437
- | ---- | ---- | ----------- | ----- |
438
- | **app_id** | **String** | The id of the app. | |
439
- | **add_contributor_dto** | [**AddContributorDto**](AddContributorDto.md) | The request object. | |
306
+ Name | Type | Description | Notes
307
+ ------------- | ------------- | ------------- | -------------
308
+ **body** | [**AddContributorDto**](AddContributorDto.md)| The request object. |
309
+ **app_id** | **String**| The id of the app. |
440
310
 
441
311
  ### Return type
442
312
 
@@ -448,63 +318,45 @@ No authorization required
448
318
 
449
319
  ### HTTP request headers
450
320
 
451
- - **Content-Type**: application/json
452
- - **Accept**: application/json
321
+ - **Content-Type**: application/json
322
+ - **Accept**: application/json
453
323
 
454
324
 
455
- ## apps_post_email_template
456
325
 
457
- > <EmailTemplateDto> apps_post_email_template(app_id, create_email_template_dto)
326
+ # **apps_post_integration**
327
+ > IntegrationCreatedDto apps_post_integration(bodyapp_id)
458
328
 
459
- Create an app email template.
460
-
461
- ### Examples
329
+ Create an app integrations.
462
330
 
331
+ ### Example
463
332
  ```ruby
464
- require 'time'
333
+ # load the gem
465
334
  require 'notifo'
466
335
 
467
336
  api_instance = Notifo::AppsApi.new
468
- app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
469
- create_email_template_dto = Notifo::CreateEmailTemplateDto.new({language: 'language_example'}) # CreateEmailTemplateDto | The request object.
337
+ body = Notifo::CreateIntegrationDto.new # CreateIntegrationDto | The request object.
338
+ app_id = 'app_id_example' # String | The id of the app where the integration belong to.
470
339
 
471
- begin
472
- # Create an app email template.
473
- result = api_instance.apps_post_email_template(app_id, create_email_template_dto)
474
- p result
475
- rescue Notifo::ApiError => e
476
- puts "Error when calling AppsApi->apps_post_email_template: #{e}"
477
- end
478
- ```
479
340
 
480
- #### Using the apps_post_email_template_with_http_info variant
481
-
482
- This returns an Array which contains the response data, status code and headers.
483
-
484
- > <Array(<EmailTemplateDto>, Integer, Hash)> apps_post_email_template_with_http_info(app_id, create_email_template_dto)
485
-
486
- ```ruby
487
341
  begin
488
- # Create an app email template.
489
- data, status_code, headers = api_instance.apps_post_email_template_with_http_info(app_id, create_email_template_dto)
490
- p status_code # => 2xx
491
- p headers # => { ... }
492
- p data # => <EmailTemplateDto>
342
+ #Create an app integrations.
343
+ result = api_instance.apps_post_integration(bodyapp_id)
344
+ p result
493
345
  rescue Notifo::ApiError => e
494
- puts "Error when calling AppsApi->apps_post_email_template_with_http_info: #{e}"
346
+ puts "Exception when calling AppsApi->apps_post_integration: #{e}"
495
347
  end
496
348
  ```
497
349
 
498
350
  ### Parameters
499
351
 
500
- | Name | Type | Description | Notes |
501
- | ---- | ---- | ----------- | ----- |
502
- | **app_id** | **String** | The id of the app where the email templates belong to. | |
503
- | **create_email_template_dto** | [**CreateEmailTemplateDto**](CreateEmailTemplateDto.md) | The request object. | |
352
+ Name | Type | Description | Notes
353
+ ------------- | ------------- | ------------- | -------------
354
+ **body** | [**CreateIntegrationDto**](CreateIntegrationDto.md)| The request object. |
355
+ **app_id** | **String**| The id of the app where the integration belong to. |
504
356
 
505
357
  ### Return type
506
358
 
507
- [**EmailTemplateDto**](EmailTemplateDto.md)
359
+ [**IntegrationCreatedDto**](IntegrationCreatedDto.md)
508
360
 
509
361
  ### Authorization
510
362
 
@@ -512,59 +364,41 @@ No authorization required
512
364
 
513
365
  ### HTTP request headers
514
366
 
515
- - **Content-Type**: application/json
516
- - **Accept**: application/json
367
+ - **Content-Type**: application/json
368
+ - **Accept**: application/json
517
369
 
518
370
 
519
- ## apps_put_app
520
371
 
521
- > <AppDetailsDto> apps_put_app(app_id, upsert_app_dto)
372
+ # **apps_put_app**
373
+ > AppDetailsDto apps_put_app(bodyapp_id)
522
374
 
523
375
  Update an app.
524
376
 
525
- ### Examples
526
-
377
+ ### Example
527
378
  ```ruby
528
- require 'time'
379
+ # load the gem
529
380
  require 'notifo'
530
381
 
531
382
  api_instance = Notifo::AppsApi.new
383
+ body = Notifo::UpsertAppDto.new # UpsertAppDto | The request object.
532
384
  app_id = 'app_id_example' # String | The app id to update.
533
- upsert_app_dto = Notifo::UpsertAppDto.new # UpsertAppDto | The request object.
534
-
535
- begin
536
- # Update an app.
537
- result = api_instance.apps_put_app(app_id, upsert_app_dto)
538
- p result
539
- rescue Notifo::ApiError => e
540
- puts "Error when calling AppsApi->apps_put_app: #{e}"
541
- end
542
- ```
543
-
544
- #### Using the apps_put_app_with_http_info variant
545
-
546
- This returns an Array which contains the response data, status code and headers.
547
385
 
548
- > <Array(<AppDetailsDto>, Integer, Hash)> apps_put_app_with_http_info(app_id, upsert_app_dto)
549
386
 
550
- ```ruby
551
387
  begin
552
- # Update an app.
553
- data, status_code, headers = api_instance.apps_put_app_with_http_info(app_id, upsert_app_dto)
554
- p status_code # => 2xx
555
- p headers # => { ... }
556
- p data # => <AppDetailsDto>
388
+ #Update an app.
389
+ result = api_instance.apps_put_app(bodyapp_id)
390
+ p result
557
391
  rescue Notifo::ApiError => e
558
- puts "Error when calling AppsApi->apps_put_app_with_http_info: #{e}"
392
+ puts "Exception when calling AppsApi->apps_put_app: #{e}"
559
393
  end
560
394
  ```
561
395
 
562
396
  ### Parameters
563
397
 
564
- | Name | Type | Description | Notes |
565
- | ---- | ---- | ----------- | ----- |
566
- | **app_id** | **String** | The app id to update. | |
567
- | **upsert_app_dto** | [**UpsertAppDto**](UpsertAppDto.md) | The request object. | |
398
+ Name | Type | Description | Notes
399
+ ------------- | ------------- | ------------- | -------------
400
+ **body** | [**UpsertAppDto**](UpsertAppDto.md)| The request object. |
401
+ **app_id** | **String**| The app id to update. |
568
402
 
569
403
  ### Return type
570
404
 
@@ -576,60 +410,42 @@ No authorization required
576
410
 
577
411
  ### HTTP request headers
578
412
 
579
- - **Content-Type**: application/json
580
- - **Accept**: application/json
413
+ - **Content-Type**: application/json
414
+ - **Accept**: application/json
581
415
 
582
416
 
583
- ## apps_put_email_template
584
417
 
585
- > apps_put_email_template(app_id, language, email_template_dto)
418
+ # **apps_put_integration**
419
+ > apps_put_integration(bodyapp_idid)
586
420
 
587
- Update an app email template.
588
-
589
- ### Examples
421
+ Update an app integration.
590
422
 
423
+ ### Example
591
424
  ```ruby
592
- require 'time'
425
+ # load the gem
593
426
  require 'notifo'
594
427
 
595
428
  api_instance = Notifo::AppsApi.new
596
- app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
597
- language = 'language_example' # String | The language.
598
- email_template_dto = Notifo::EmailTemplateDto.new({subject: 'subject_example', body_html: 'body_html_example'}) # EmailTemplateDto | The request object.
599
-
600
- begin
601
- # Update an app email template.
602
- api_instance.apps_put_email_template(app_id, language, email_template_dto)
603
- rescue Notifo::ApiError => e
604
- puts "Error when calling AppsApi->apps_put_email_template: #{e}"
605
- end
606
- ```
607
-
608
- #### Using the apps_put_email_template_with_http_info variant
609
-
610
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
429
+ body = Notifo::UpdateIntegrationDto.new # UpdateIntegrationDto | The request object.
430
+ app_id = 'app_id_example' # String | The id of the app where the integration belong to.
431
+ id = 'id_example' # String | The id of the integration.
611
432
 
612
- > <Array(nil, Integer, Hash)> apps_put_email_template_with_http_info(app_id, language, email_template_dto)
613
433
 
614
- ```ruby
615
434
  begin
616
- # Update an app email template.
617
- data, status_code, headers = api_instance.apps_put_email_template_with_http_info(app_id, language, email_template_dto)
618
- p status_code # => 2xx
619
- p headers # => { ... }
620
- p data # => nil
435
+ #Update an app integration.
436
+ api_instance.apps_put_integration(bodyapp_idid)
621
437
  rescue Notifo::ApiError => e
622
- puts "Error when calling AppsApi->apps_put_email_template_with_http_info: #{e}"
438
+ puts "Exception when calling AppsApi->apps_put_integration: #{e}"
623
439
  end
624
440
  ```
625
441
 
626
442
  ### Parameters
627
443
 
628
- | Name | Type | Description | Notes |
629
- | ---- | ---- | ----------- | ----- |
630
- | **app_id** | **String** | The id of the app where the email templates belong to. | |
631
- | **language** | **String** | The language. | |
632
- | **email_template_dto** | [**EmailTemplateDto**](EmailTemplateDto.md) | The request object. | |
444
+ Name | Type | Description | Notes
445
+ ------------- | ------------- | ------------- | -------------
446
+ **body** | [**UpdateIntegrationDto**](UpdateIntegrationDto.md)| The request object. |
447
+ **app_id** | **String**| The id of the app where the integration belong to. |
448
+ **id** | **String**| The id of the integration. |
633
449
 
634
450
  ### Return type
635
451
 
@@ -641,6 +457,8 @@ No authorization required
641
457
 
642
458
  ### HTTP request headers
643
459
 
644
- - **Content-Type**: application/json
645
- - **Accept**: application/json
460
+ - **Content-Type**: application/json
461
+ - **Accept**: application/json
462
+
463
+
646
464