notifo-io 1.0.1 → 1.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +510 -8
  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 +18 -44
  8. data/docs/AppDto.md +8 -24
  9. data/docs/AppsApi.md +149 -331
  10. data/docs/Body.md +7 -0
  11. data/docs/ConfigsApi.md +21 -61
  12. data/docs/ConfirmMode.md +2 -11
  13. data/docs/CreateEmailTemplateDto.md +3 -14
  14. data/docs/EmailTemplateDto.md +5 -18
  15. data/docs/EmailTemplatesDto.md +6 -0
  16. data/docs/EmailVerificationStatus.md +2 -11
  17. data/docs/ErrorDto.md +7 -22
  18. data/docs/EventDto.md +14 -36
  19. data/docs/EventProperties.md +6 -0
  20. data/docs/EventsApi.md +36 -73
  21. data/docs/IsoDayOfWeek.md +2 -11
  22. data/docs/ListResponseDtoOfEventDto.md +4 -16
  23. data/docs/ListResponseDtoOfLogEntryDto.md +4 -16
  24. data/docs/ListResponseDtoOfMediaDto.md +4 -16
  25. data/docs/ListResponseDtoOfSubscriptionDto.md +4 -16
  26. data/docs/ListResponseDtoOfTemplateDto.md +4 -16
  27. data/docs/ListResponseDtoOfTopicDto.md +4 -16
  28. data/docs/ListResponseDtoOfUserDto.md +4 -16
  29. data/docs/LocalizedText.md +6 -0
  30. data/docs/LogEntryDto.md +6 -20
  31. data/docs/LogsApi.md +21 -40
  32. data/docs/MediaApi.md +102 -196
  33. data/docs/MediaDto.md +9 -26
  34. data/docs/MediaMetadata.md +6 -0
  35. data/docs/MediaType.md +2 -11
  36. data/docs/NotificationFormattingDto.md +10 -28
  37. data/docs/NotificationSend.md +2 -11
  38. data/docs/NotificationSettingDto.md +4 -16
  39. data/docs/ProfileDto.md +10 -28
  40. data/docs/PublishDto.md +12 -32
  41. data/docs/PublishManyDto.md +3 -14
  42. data/docs/ResizeMode.md +2 -11
  43. data/docs/SchedulingDto.md +6 -20
  44. data/docs/SchedulingType.md +2 -11
  45. data/docs/SubscriptionDto.md +4 -16
  46. data/docs/TemplateDto.md +5 -18
  47. data/docs/TemplatesApi.md +51 -106
  48. data/docs/TopicDto.md +5 -18
  49. data/docs/TopicsApi.md +21 -40
  50. data/docs/UpdateProfileDto.md +8 -24
  51. data/docs/UpsertAppDto.md +12 -32
  52. data/docs/UpsertTemplateDto.md +5 -18
  53. data/docs/UpsertTemplatesDto.md +3 -14
  54. data/docs/UpsertUserDto.md +10 -28
  55. data/docs/UpsertUsersDto.md +3 -14
  56. data/docs/UserApi.md +68 -160
  57. data/docs/UserDto.md +12 -32
  58. data/docs/UsersApi.md +144 -308
  59. data/git_push.sh +7 -10
  60. data/lib/notifo.rb +9 -5
  61. data/lib/notifo/api/apps_api.rb +130 -202
  62. data/lib/notifo/api/configs_api.rb +14 -30
  63. data/lib/notifo/api/events_api.rb +29 -45
  64. data/lib/notifo/api/logs_api.rb +12 -21
  65. data/lib/notifo/api/media_api.rb +60 -97
  66. data/lib/notifo/api/templates_api.rb +39 -62
  67. data/lib/notifo/api/topics_api.rb +12 -21
  68. data/lib/notifo/api/user_api.rb +51 -88
  69. data/lib/notifo/api/users_api.rb +121 -186
  70. data/lib/notifo/api_client.rb +54 -56
  71. data/lib/notifo/api_error.rb +5 -5
  72. data/lib/notifo/configuration.rb +12 -84
  73. data/lib/notifo/models/add_allowed_topic_dto.rb +13 -44
  74. data/lib/notifo/models/add_contributor_dto.rb +14 -64
  75. data/lib/notifo/models/app_contributor_dto.rb +15 -84
  76. data/lib/notifo/models/app_details_dto.rb +28 -103
  77. data/lib/notifo/models/app_dto.rb +18 -87
  78. data/lib/notifo/models/{inline_object.rb → body.rb} +16 -29
  79. data/lib/notifo/models/confirm_mode.rb +7 -16
  80. data/lib/notifo/models/create_email_template_dto.rb +13 -44
  81. data/lib/notifo/models/email_template_dto.rb +15 -66
  82. data/lib/notifo/models/email_templates_dto.rb +201 -0
  83. data/lib/notifo/models/email_verification_status.rb +8 -17
  84. data/lib/notifo/models/error_dto.rb +17 -33
  85. data/lib/notifo/models/event_dto.rb +24 -114
  86. data/lib/notifo/models/event_properties.rb +201 -0
  87. data/lib/notifo/models/iso_day_of_week.rb +12 -21
  88. data/lib/notifo/models/list_response_dto_of_event_dto.rb +14 -26
  89. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +14 -26
  90. data/lib/notifo/models/list_response_dto_of_media_dto.rb +14 -26
  91. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +14 -26
  92. data/lib/notifo/models/list_response_dto_of_template_dto.rb +14 -26
  93. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +14 -26
  94. data/lib/notifo/models/list_response_dto_of_user_dto.rb +14 -26
  95. data/lib/notifo/models/localized_text.rb +201 -0
  96. data/lib/notifo/models/log_entry_dto.rb +16 -85
  97. data/lib/notifo/models/media_dto.rb +20 -110
  98. data/lib/notifo/models/media_metadata.rb +201 -0
  99. data/lib/notifo/models/media_type.rb +8 -17
  100. data/lib/notifo/models/notification_formatting_dto.rb +27 -53
  101. data/lib/notifo/models/notification_send.rb +8 -17
  102. data/lib/notifo/models/notification_setting_dto.rb +23 -36
  103. data/lib/notifo/models/profile_dto.rb +20 -73
  104. data/lib/notifo/models/publish_dto.rb +23 -60
  105. data/lib/notifo/models/publish_many_dto.rb +13 -25
  106. data/lib/notifo/models/resize_mode.rb +11 -20
  107. data/lib/notifo/models/scheduling_dto.rb +16 -29
  108. data/lib/notifo/models/scheduling_type.rb +6 -15
  109. data/lib/notifo/models/subscription_dto.rb +14 -46
  110. data/lib/notifo/models/template_dto.rb +15 -46
  111. data/lib/notifo/models/topic_dto.rb +15 -65
  112. data/lib/notifo/models/update_profile_dto.rb +18 -36
  113. data/lib/notifo/models/upsert_app_dto.rb +22 -44
  114. data/lib/notifo/models/upsert_template_dto.rb +15 -47
  115. data/lib/notifo/models/upsert_templates_dto.rb +13 -25
  116. data/lib/notifo/models/upsert_user_dto.rb +20 -40
  117. data/lib/notifo/models/upsert_users_dto.rb +13 -25
  118. data/lib/notifo/models/user_dto.rb +22 -77
  119. data/lib/notifo/version.rb +4 -5
  120. data/notifo.gemspec +7 -7
  121. data/spec/api/apps_api_spec.rb +14 -15
  122. data/spec/api/configs_api_spec.rb +7 -8
  123. data/spec/api/events_api_spec.rb +8 -9
  124. data/spec/api/logs_api_spec.rb +7 -8
  125. data/spec/api/media_api_spec.rb +32 -11
  126. data/spec/api/templates_api_spec.rb +8 -9
  127. data/spec/api/topics_api_spec.rb +7 -8
  128. data/spec/api/user_api_spec.rb +9 -10
  129. data/spec/api/users_api_spec.rb +10 -11
  130. data/spec/api_client_spec.rb +5 -6
  131. data/spec/base_object_spec.rb +109 -0
  132. data/spec/configuration_spec.rb +7 -8
  133. data/spec/models/add_allowed_topic_dto_spec.rb +15 -9
  134. data/spec/models/add_contributor_dto_spec.rb +15 -9
  135. data/spec/models/app_contributor_dto_spec.rb +15 -9
  136. data/spec/models/app_details_dto_spec.rb +15 -9
  137. data/spec/models/app_dto_spec.rb +15 -9
  138. data/spec/models/body_spec.rb +40 -0
  139. data/spec/models/confirm_mode_spec.rb +15 -9
  140. data/spec/models/create_email_template_dto_spec.rb +15 -9
  141. data/spec/models/email_template_dto_spec.rb +15 -9
  142. data/spec/models/email_templates_dto_spec.rb +34 -0
  143. data/spec/models/email_verification_status_spec.rb +15 -9
  144. data/spec/models/error_dto_spec.rb +15 -9
  145. data/spec/models/event_dto_spec.rb +15 -9
  146. data/spec/models/event_properties_spec.rb +34 -0
  147. data/spec/models/iso_day_of_week_spec.rb +15 -9
  148. data/spec/models/list_response_dto_of_event_dto_spec.rb +15 -9
  149. data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +15 -9
  150. data/spec/models/list_response_dto_of_media_dto_spec.rb +15 -9
  151. data/spec/models/list_response_dto_of_subscription_dto_spec.rb +15 -9
  152. data/spec/models/list_response_dto_of_template_dto_spec.rb +15 -9
  153. data/spec/models/list_response_dto_of_topic_dto_spec.rb +15 -9
  154. data/spec/models/list_response_dto_of_user_dto_spec.rb +15 -9
  155. data/spec/models/localized_text_spec.rb +34 -0
  156. data/spec/models/log_entry_dto_spec.rb +15 -9
  157. data/spec/models/media_dto_spec.rb +21 -9
  158. data/spec/models/media_metadata_spec.rb +34 -0
  159. data/spec/models/media_type_spec.rb +15 -9
  160. data/spec/models/notification_formatting_dto_spec.rb +15 -9
  161. data/spec/models/notification_send_spec.rb +15 -9
  162. data/spec/models/notification_setting_dto_spec.rb +16 -10
  163. data/spec/models/profile_dto_spec.rb +15 -9
  164. data/spec/models/publish_dto_spec.rb +15 -9
  165. data/spec/models/publish_many_dto_spec.rb +15 -9
  166. data/spec/models/resize_mode_spec.rb +15 -9
  167. data/spec/models/scheduling_dto_spec.rb +15 -9
  168. data/spec/models/scheduling_type_spec.rb +15 -9
  169. data/spec/models/subscription_dto_spec.rb +15 -9
  170. data/spec/models/template_dto_spec.rb +15 -9
  171. data/spec/models/topic_dto_spec.rb +15 -9
  172. data/spec/models/update_profile_dto_spec.rb +15 -9
  173. data/spec/models/upsert_app_dto_spec.rb +15 -9
  174. data/spec/models/upsert_template_dto_spec.rb +15 -9
  175. data/spec/models/upsert_templates_dto_spec.rb +15 -9
  176. data/spec/models/upsert_user_dto_spec.rb +15 -9
  177. data/spec/models/upsert_users_dto_spec.rb +15 -9
  178. data/spec/models/user_dto_spec.rb +15 -9
  179. data/spec/spec_helper.rb +4 -5
  180. metadata +44 -9
  181. data/docs/InlineObject.md +0 -18
  182. data/notifo-1.0.0.gem +0 -0
  183. data/notifo-io-1.0.0.2.gem +0 -0
  184. data/notifo-io-1.0.0.gem +0 -0
  185. data/spec/models/inline_object_spec.rb +0 -34
data/docs/TopicDto.md CHANGED
@@ -1,22 +1,9 @@
1
1
  # Notifo::TopicDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **path** | **String** | The topic path. | |
8
- | **last_update** | **Time** | THe last update to the topic. | |
9
- | **counters** | **Hash<String, Integer>** | The statistics counters. | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'notifo'
15
-
16
- instance = Notifo::TopicDto.new(
17
- path: null,
18
- last_update: null,
19
- counters: null
20
- )
21
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **path** | **String** | The topic path. |
7
+ **last_update** | **DateTime** | THe last update to the topic. |
8
+ **counters** | **Hash<String, Integer>** | The statistics counters. |
22
9
 
data/docs/TopicsApi.md CHANGED
@@ -1,67 +1,46 @@
1
1
  # Notifo::TopicsApi
2
2
 
3
- All URIs are relative to *http://localhost*
3
+ All URIs are relative to *https://app.notifo.io*
4
4
 
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**topics_get_topics**](TopicsApi.md#topics_get_topics) | **GET** /api/apps/{appId}/topics | Query topics. |
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**topics_get_topics**](TopicsApi.md#topics_get_topics) | **GET** /api/apps/{appId}/topics | Query topics.
8
8
 
9
-
10
- ## topics_get_topics
11
-
12
- > <ListResponseDtoOfTopicDto> topics_get_topics(app_id, opts)
9
+ # **topics_get_topics**
10
+ > ListResponseDtoOfTopicDto topics_get_topics(app_id, opts)
13
11
 
14
12
  Query topics.
15
13
 
16
- ### Examples
17
-
14
+ ### Example
18
15
  ```ruby
19
- require 'time'
16
+ # load the gem
20
17
  require 'notifo'
21
18
 
22
19
  api_instance = Notifo::TopicsApi.new
23
20
  app_id = 'app_id_example' # String | The app where the topics belongs to.
24
- opts = {
21
+ opts = {
25
22
  query: 'query_example', # String | The optional query to search for items.
26
23
  take: 56, # Integer | The number of items to return.
27
24
  skip: 56 # Integer | The number of items to skip.
28
25
  }
29
26
 
30
27
  begin
31
- # Query topics.
28
+ #Query topics.
32
29
  result = api_instance.topics_get_topics(app_id, opts)
33
30
  p result
34
31
  rescue Notifo::ApiError => e
35
- puts "Error when calling TopicsApi->topics_get_topics: #{e}"
36
- end
37
- ```
38
-
39
- #### Using the topics_get_topics_with_http_info variant
40
-
41
- This returns an Array which contains the response data, status code and headers.
42
-
43
- > <Array(<ListResponseDtoOfTopicDto>, Integer, Hash)> topics_get_topics_with_http_info(app_id, opts)
44
-
45
- ```ruby
46
- begin
47
- # Query topics.
48
- data, status_code, headers = api_instance.topics_get_topics_with_http_info(app_id, opts)
49
- p status_code # => 2xx
50
- p headers # => { ... }
51
- p data # => <ListResponseDtoOfTopicDto>
52
- rescue Notifo::ApiError => e
53
- puts "Error when calling TopicsApi->topics_get_topics_with_http_info: #{e}"
32
+ puts "Exception when calling TopicsApi->topics_get_topics: #{e}"
54
33
  end
55
34
  ```
56
35
 
57
36
  ### Parameters
58
37
 
59
- | Name | Type | Description | Notes |
60
- | ---- | ---- | ----------- | ----- |
61
- | **app_id** | **String** | The app where the topics belongs to. | |
62
- | **query** | **String** | The optional query to search for items. | [optional] |
63
- | **take** | **Integer** | The number of items to return. | [optional] |
64
- | **skip** | **Integer** | The number of items to skip. | [optional] |
38
+ Name | Type | Description | Notes
39
+ ------------- | ------------- | ------------- | -------------
40
+ **app_id** | **String**| The app where the topics belongs to. |
41
+ **query** | **String**| The optional query to search for items. | [optional]
42
+ **take** | **Integer**| The number of items to return. | [optional]
43
+ **skip** | **Integer**| The number of items to skip. | [optional]
65
44
 
66
45
  ### Return type
67
46
 
@@ -73,6 +52,8 @@ No authorization required
73
52
 
74
53
  ### HTTP request headers
75
54
 
76
- - **Content-Type**: Not defined
77
- - **Accept**: application/json
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: application/json
57
+
58
+
78
59
 
@@ -1,28 +1,12 @@
1
1
  # Notifo::UpdateProfileDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **full_name** | **String** | The full name of the user. | [optional] |
8
- | **email_address** | **String** | The email of the user. | [optional] |
9
- | **phone_number** | **String** | The phone number. | [optional] |
10
- | **preferred_language** | **String** | The preferred language of the user. | [optional] |
11
- | **preferred_timezone** | **String** | The timezone of the user. | [optional] |
12
- | **settings** | [**Hash&lt;String, NotificationSettingDto&gt;**](NotificationSettingDto.md) | Notification settings per channel. | [optional] |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'notifo'
18
-
19
- instance = Notifo::UpdateProfileDto.new(
20
- full_name: null,
21
- email_address: null,
22
- phone_number: null,
23
- preferred_language: null,
24
- preferred_timezone: null,
25
- settings: null
26
- )
27
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **full_name** | **String** | The full name of the user. | [optional]
7
+ **email_address** | **String** | The email of the user. | [optional]
8
+ **phone_number** | **String** | The phone number. | [optional]
9
+ **preferred_language** | **String** | The preferred language of the user. | [optional]
10
+ **preferred_timezone** | **String** | The timezone of the user. | [optional]
11
+ **settings** | [**Hash&lt;String, NotificationSettingDto&gt;**](NotificationSettingDto.md) | Notification settings per channel. | [optional]
28
12
 
data/docs/UpsertAppDto.md CHANGED
@@ -1,36 +1,16 @@
1
1
  # Notifo::UpsertAppDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **name** | **String** | The app name. | [optional] |
8
- | **languages** | **Array&lt;String&gt;** | The supported languages. | [optional] |
9
- | **email_address** | **String** | The sender email address. | [optional] |
10
- | **email_name** | **String** | The sender email name. | [optional] |
11
- | **firebase_project** | **String** | The firebase project ID. | [optional] |
12
- | **firebase_credential** | **String** | The firebase credentials. | [optional] |
13
- | **webhook_url** | **String** | The webhook URL. | [optional] |
14
- | **confirm_url** | **String** | The confirm URL. | [optional] |
15
- | **allow_email** | **Boolean** | True, when emails are allowed. | [optional] |
16
- | **allow_sms** | **Boolean** | True, when SMS are allowed. | [optional] |
17
-
18
- ## Example
19
-
20
- ```ruby
21
- require 'notifo'
22
-
23
- instance = Notifo::UpsertAppDto.new(
24
- name: null,
25
- languages: null,
26
- email_address: null,
27
- email_name: null,
28
- firebase_project: null,
29
- firebase_credential: null,
30
- webhook_url: null,
31
- confirm_url: null,
32
- allow_email: null,
33
- allow_sms: null
34
- )
35
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The app name. | [optional]
7
+ **languages** | **Array&lt;String&gt;** | The supported languages. | [optional]
8
+ **email_address** | **String** | The sender email address. | [optional]
9
+ **email_name** | **String** | The sender email name. | [optional]
10
+ **firebase_project** | **String** | The firebase project ID. | [optional]
11
+ **firebase_credential** | **String** | The firebase credentials. | [optional]
12
+ **webhook_url** | **String** | The webhook URL. | [optional]
13
+ **confirm_url** | **String** | The confirm URL. | [optional]
14
+ **allow_email** | **BOOLEAN** | True, when emails are allowed. | [optional]
15
+ **allow_sms** | **BOOLEAN** | True, when SMS are allowed. | [optional]
36
16
 
@@ -1,22 +1,9 @@
1
1
  # Notifo::UpsertTemplateDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **code** | **String** | The code of the template. | |
8
- | **formatting** | [**NotificationFormattingDto**](NotificationFormattingDto.md) | | |
9
- | **settings** | [**Hash&lt;String, NotificationSettingDto&gt;**](NotificationSettingDto.md) | Notification settings per channel. | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'notifo'
15
-
16
- instance = Notifo::UpsertTemplateDto.new(
17
- code: null,
18
- formatting: null,
19
- settings: null
20
- )
21
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **code** | **String** | The code of the template. |
7
+ **formatting** | [**NotificationFormattingDto**](NotificationFormattingDto.md) | |
8
+ **settings** | [**Hash&lt;String, NotificationSettingDto&gt;**](NotificationSettingDto.md) | Notification settings per channel. | [optional]
22
9
 
@@ -1,18 +1,7 @@
1
1
  # Notifo::UpsertTemplatesDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **requests** | [**Array&lt;UpsertTemplateDto&gt;**](UpsertTemplateDto.md) | The templates to update. | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'notifo'
13
-
14
- instance = Notifo::UpsertTemplatesDto.new(
15
- requests: null
16
- )
17
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **requests** | [**Array&lt;UpsertTemplateDto&gt;**](UpsertTemplateDto.md) | The templates to update. |
18
7
 
@@ -1,32 +1,14 @@
1
1
  # Notifo::UpsertUserDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | The id of the user. | [optional] |
8
- | **full_name** | **String** | The full name of the user. | [optional] |
9
- | **email_address** | **String** | The email of the user. | [optional] |
10
- | **phone_number** | **String** | The phone number. | [optional] |
11
- | **preferred_language** | **String** | The preferred language of the user. | [optional] |
12
- | **preferred_timezone** | **String** | The timezone of the user. | [optional] |
13
- | **requires_whitelisted_topics** | **Boolean** | True when only whitelisted topic are allowed. | [optional] |
14
- | **settings** | [**Hash&lt;String, NotificationSettingDto&gt;**](NotificationSettingDto.md) | Notification settings per channel. | [optional] |
15
-
16
- ## Example
17
-
18
- ```ruby
19
- require 'notifo'
20
-
21
- instance = Notifo::UpsertUserDto.new(
22
- id: null,
23
- full_name: null,
24
- email_address: null,
25
- phone_number: null,
26
- preferred_language: null,
27
- preferred_timezone: null,
28
- requires_whitelisted_topics: null,
29
- settings: null
30
- )
31
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The id of the user. | [optional]
7
+ **full_name** | **String** | The full name of the user. | [optional]
8
+ **email_address** | **String** | The email of the user. | [optional]
9
+ **phone_number** | **String** | The phone number. | [optional]
10
+ **preferred_language** | **String** | The preferred language of the user. | [optional]
11
+ **preferred_timezone** | **String** | The timezone of the user. | [optional]
12
+ **requires_whitelisted_topics** | **BOOLEAN** | True when only whitelisted topic are allowed. | [optional]
13
+ **settings** | [**Hash&lt;String, NotificationSettingDto&gt;**](NotificationSettingDto.md) | Notification settings per channel. | [optional]
32
14
 
@@ -1,18 +1,7 @@
1
1
  # Notifo::UpsertUsersDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **requests** | [**Array&lt;UpsertUserDto&gt;**](UpsertUserDto.md) | The users to update. | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'notifo'
13
-
14
- instance = Notifo::UpsertUsersDto.new(
15
- requests: null
16
- )
17
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **requests** | [**Array&lt;UpsertUserDto&gt;**](UpsertUserDto.md) | The users to update. |
18
7
 
data/docs/UserApi.md CHANGED
@@ -1,64 +1,44 @@
1
1
  # Notifo::UserApi
2
2
 
3
- All URIs are relative to *http://localhost*
3
+ All URIs are relative to *https://app.notifo.io*
4
4
 
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**user_delete_subscription**](UserApi.md#user_delete_subscription) | **DELETE** /api/me/subscriptions/{topic} | Deletes a user subscription. |
8
- | [**user_get_subscription**](UserApi.md#user_get_subscription) | **GET** /api/me/subscriptions/{topic} | Gets a user subscription. |
9
- | [**user_get_user**](UserApi.md#user_get_user) | **GET** /api/me | Get the current user. |
10
- | [**user_post_subscription**](UserApi.md#user_post_subscription) | **POST** /api/me/subscriptions | Creates a user subscription. |
11
- | [**user_post_user**](UserApi.md#user_post_user) | **POST** /api/me | Update the user. |
12
-
13
-
14
- ## user_delete_subscription
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**user_delete_subscription**](UserApi.md#user_delete_subscription) | **DELETE** /api/me/subscriptions/{topic} | Deletes a user subscription.
8
+ [**user_get_subscription**](UserApi.md#user_get_subscription) | **GET** /api/me/subscriptions/{topic} | Gets a user subscription.
9
+ [**user_get_user**](UserApi.md#user_get_user) | **GET** /api/me | Get the current user.
10
+ [**user_post_subscription**](UserApi.md#user_post_subscription) | **POST** /api/me/subscriptions | Creates a user subscription.
11
+ [**user_post_user**](UserApi.md#user_post_user) | **POST** /api/me | Update the user.
15
12
 
13
+ # **user_delete_subscription**
16
14
  > user_delete_subscription(topic)
17
15
 
18
16
  Deletes a user subscription.
19
17
 
20
18
  User Id and App Id are resolved using the API token.
21
19
 
22
- ### Examples
23
-
20
+ ### Example
24
21
  ```ruby
25
- require 'time'
22
+ # load the gem
26
23
  require 'notifo'
27
24
 
28
25
  api_instance = Notifo::UserApi.new
29
26
  topic = 'topic_example' # String | The topic path.
30
27
 
31
- begin
32
- # Deletes a user subscription.
33
- api_instance.user_delete_subscription(topic)
34
- rescue Notifo::ApiError => e
35
- puts "Error when calling UserApi->user_delete_subscription: #{e}"
36
- end
37
- ```
38
28
 
39
- #### Using the user_delete_subscription_with_http_info variant
40
-
41
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
42
-
43
- > <Array(nil, Integer, Hash)> user_delete_subscription_with_http_info(topic)
44
-
45
- ```ruby
46
29
  begin
47
- # Deletes a user subscription.
48
- data, status_code, headers = api_instance.user_delete_subscription_with_http_info(topic)
49
- p status_code # => 2xx
50
- p headers # => { ... }
51
- p data # => nil
30
+ #Deletes a user subscription.
31
+ api_instance.user_delete_subscription(topic)
52
32
  rescue Notifo::ApiError => e
53
- puts "Error when calling UserApi->user_delete_subscription_with_http_info: #{e}"
33
+ puts "Exception when calling UserApi->user_delete_subscription: #{e}"
54
34
  end
55
35
  ```
56
36
 
57
37
  ### Parameters
58
38
 
59
- | Name | Type | Description | Notes |
60
- | ---- | ---- | ----------- | ----- |
61
- | **topic** | **String** | The topic path. | |
39
+ Name | Type | Description | Notes
40
+ ------------- | ------------- | ------------- | -------------
41
+ **topic** | **String**| The topic path. |
62
42
 
63
43
  ### Return type
64
44
 
@@ -70,59 +50,41 @@ No authorization required
70
50
 
71
51
  ### HTTP request headers
72
52
 
73
- - **Content-Type**: Not defined
74
- - **Accept**: application/json
53
+ - **Content-Type**: Not defined
54
+ - **Accept**: application/json
75
55
 
76
56
 
77
- ## user_get_subscription
78
57
 
79
- > <SubscriptionDto> user_get_subscription(topic)
58
+ # **user_get_subscription**
59
+ > SubscriptionDto user_get_subscription(topic)
80
60
 
81
61
  Gets a user subscription.
82
62
 
83
63
  User Id and App Id are resolved using the API token.
84
64
 
85
- ### Examples
86
-
65
+ ### Example
87
66
  ```ruby
88
- require 'time'
67
+ # load the gem
89
68
  require 'notifo'
90
69
 
91
70
  api_instance = Notifo::UserApi.new
92
71
  topic = 'topic_example' # String | The topic path.
93
72
 
73
+
94
74
  begin
95
- # Gets a user subscription.
75
+ #Gets a user subscription.
96
76
  result = api_instance.user_get_subscription(topic)
97
77
  p result
98
78
  rescue Notifo::ApiError => e
99
- puts "Error when calling UserApi->user_get_subscription: #{e}"
100
- end
101
- ```
102
-
103
- #### Using the user_get_subscription_with_http_info variant
104
-
105
- This returns an Array which contains the response data, status code and headers.
106
-
107
- > <Array(<SubscriptionDto>, Integer, Hash)> user_get_subscription_with_http_info(topic)
108
-
109
- ```ruby
110
- begin
111
- # Gets a user subscription.
112
- data, status_code, headers = api_instance.user_get_subscription_with_http_info(topic)
113
- p status_code # => 2xx
114
- p headers # => { ... }
115
- p data # => <SubscriptionDto>
116
- rescue Notifo::ApiError => e
117
- puts "Error when calling UserApi->user_get_subscription_with_http_info: #{e}"
79
+ puts "Exception when calling UserApi->user_get_subscription: #{e}"
118
80
  end
119
81
  ```
120
82
 
121
83
  ### Parameters
122
84
 
123
- | Name | Type | Description | Notes |
124
- | ---- | ---- | ----------- | ----- |
125
- | **topic** | **String** | The topic path. | |
85
+ Name | Type | Description | Notes
86
+ ------------- | ------------- | ------------- | -------------
87
+ **topic** | **String**| The topic path. |
126
88
 
127
89
  ### Return type
128
90
 
@@ -134,53 +96,33 @@ No authorization required
134
96
 
135
97
  ### HTTP request headers
136
98
 
137
- - **Content-Type**: Not defined
138
- - **Accept**: application/json
99
+ - **Content-Type**: Not defined
100
+ - **Accept**: application/json
139
101
 
140
102
 
141
- ## user_get_user
142
103
 
143
- > <ProfileDto> user_get_user
104
+ # **user_get_user**
105
+ > ProfileDto user_get_user
144
106
 
145
107
  Get the current user.
146
108
 
147
- ### Examples
148
-
109
+ ### Example
149
110
  ```ruby
150
- require 'time'
111
+ # load the gem
151
112
  require 'notifo'
152
113
 
153
114
  api_instance = Notifo::UserApi.new
154
115
 
155
116
  begin
156
- # Get the current user.
117
+ #Get the current user.
157
118
  result = api_instance.user_get_user
158
119
  p result
159
120
  rescue Notifo::ApiError => e
160
- puts "Error when calling UserApi->user_get_user: #{e}"
161
- end
162
- ```
163
-
164
- #### Using the user_get_user_with_http_info variant
165
-
166
- This returns an Array which contains the response data, status code and headers.
167
-
168
- > <Array(<ProfileDto>, Integer, Hash)> user_get_user_with_http_info
169
-
170
- ```ruby
171
- begin
172
- # Get the current user.
173
- data, status_code, headers = api_instance.user_get_user_with_http_info
174
- p status_code # => 2xx
175
- p headers # => { ... }
176
- p data # => <ProfileDto>
177
- rescue Notifo::ApiError => e
178
- puts "Error when calling UserApi->user_get_user_with_http_info: #{e}"
121
+ puts "Exception when calling UserApi->user_get_user: #{e}"
179
122
  end
180
123
  ```
181
124
 
182
125
  ### Parameters
183
-
184
126
  This endpoint does not need any parameter.
185
127
 
186
128
  ### Return type
@@ -193,58 +135,40 @@ No authorization required
193
135
 
194
136
  ### HTTP request headers
195
137
 
196
- - **Content-Type**: Not defined
197
- - **Accept**: application/json
138
+ - **Content-Type**: Not defined
139
+ - **Accept**: application/json
198
140
 
199
141
 
200
- ## user_post_subscription
201
142
 
202
- > user_post_subscription(subscription_dto)
143
+ # **user_post_subscription**
144
+ > user_post_subscription(body)
203
145
 
204
146
  Creates a user subscription.
205
147
 
206
148
  User Id and App Id are resolved using the API token.
207
149
 
208
- ### Examples
209
-
150
+ ### Example
210
151
  ```ruby
211
- require 'time'
152
+ # load the gem
212
153
  require 'notifo'
213
154
 
214
155
  api_instance = Notifo::UserApi.new
215
- subscription_dto = Notifo::SubscriptionDto.new({topic_prefix: 'topic_prefix_example'}) # SubscriptionDto | The subscription settings.
216
-
217
- begin
218
- # Creates a user subscription.
219
- api_instance.user_post_subscription(subscription_dto)
220
- rescue Notifo::ApiError => e
221
- puts "Error when calling UserApi->user_post_subscription: #{e}"
222
- end
223
- ```
224
-
225
- #### Using the user_post_subscription_with_http_info variant
226
-
227
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
156
+ body = Notifo::SubscriptionDto.new # SubscriptionDto | The subscription settings.
228
157
 
229
- > <Array(nil, Integer, Hash)> user_post_subscription_with_http_info(subscription_dto)
230
158
 
231
- ```ruby
232
159
  begin
233
- # Creates a user subscription.
234
- data, status_code, headers = api_instance.user_post_subscription_with_http_info(subscription_dto)
235
- p status_code # => 2xx
236
- p headers # => { ... }
237
- p data # => nil
160
+ #Creates a user subscription.
161
+ api_instance.user_post_subscription(body)
238
162
  rescue Notifo::ApiError => e
239
- puts "Error when calling UserApi->user_post_subscription_with_http_info: #{e}"
163
+ puts "Exception when calling UserApi->user_post_subscription: #{e}"
240
164
  end
241
165
  ```
242
166
 
243
167
  ### Parameters
244
168
 
245
- | Name | Type | Description | Notes |
246
- | ---- | ---- | ----------- | ----- |
247
- | **subscription_dto** | [**SubscriptionDto**](SubscriptionDto.md) | The subscription settings. | |
169
+ Name | Type | Description | Notes
170
+ ------------- | ------------- | ------------- | -------------
171
+ **body** | [**SubscriptionDto**](SubscriptionDto.md)| The subscription settings. |
248
172
 
249
173
  ### Return type
250
174
 
@@ -256,57 +180,39 @@ No authorization required
256
180
 
257
181
  ### HTTP request headers
258
182
 
259
- - **Content-Type**: application/json
260
- - **Accept**: application/json
183
+ - **Content-Type**: application/json
184
+ - **Accept**: application/json
261
185
 
262
186
 
263
- ## user_post_user
264
187
 
265
- > <ProfileDto> user_post_user(update_profile_dto)
188
+ # **user_post_user**
189
+ > ProfileDto user_post_user(body)
266
190
 
267
191
  Update the user.
268
192
 
269
- ### Examples
270
-
193
+ ### Example
271
194
  ```ruby
272
- require 'time'
195
+ # load the gem
273
196
  require 'notifo'
274
197
 
275
198
  api_instance = Notifo::UserApi.new
276
- update_profile_dto = Notifo::UpdateProfileDto.new # UpdateProfileDto | The upsert request.
277
-
278
- begin
279
- # Update the user.
280
- result = api_instance.user_post_user(update_profile_dto)
281
- p result
282
- rescue Notifo::ApiError => e
283
- puts "Error when calling UserApi->user_post_user: #{e}"
284
- end
285
- ```
286
-
287
- #### Using the user_post_user_with_http_info variant
199
+ body = Notifo::UpdateProfileDto.new # UpdateProfileDto | The upsert request.
288
200
 
289
- This returns an Array which contains the response data, status code and headers.
290
201
 
291
- > <Array(<ProfileDto>, Integer, Hash)> user_post_user_with_http_info(update_profile_dto)
292
-
293
- ```ruby
294
202
  begin
295
- # Update the user.
296
- data, status_code, headers = api_instance.user_post_user_with_http_info(update_profile_dto)
297
- p status_code # => 2xx
298
- p headers # => { ... }
299
- p data # => <ProfileDto>
203
+ #Update the user.
204
+ result = api_instance.user_post_user(body)
205
+ p result
300
206
  rescue Notifo::ApiError => e
301
- puts "Error when calling UserApi->user_post_user_with_http_info: #{e}"
207
+ puts "Exception when calling UserApi->user_post_user: #{e}"
302
208
  end
303
209
  ```
304
210
 
305
211
  ### Parameters
306
212
 
307
- | Name | Type | Description | Notes |
308
- | ---- | ---- | ----------- | ----- |
309
- | **update_profile_dto** | [**UpdateProfileDto**](UpdateProfileDto.md) | The upsert request. | |
213
+ Name | Type | Description | Notes
214
+ ------------- | ------------- | ------------- | -------------
215
+ **body** | [**UpdateProfileDto**](UpdateProfileDto.md)| The upsert request. |
310
216
 
311
217
  ### Return type
312
218
 
@@ -318,6 +224,8 @@ No authorization required
318
224
 
319
225
  ### HTTP request headers
320
226
 
321
- - **Content-Type**: application/json
322
- - **Accept**: application/json
227
+ - **Content-Type**: application/json
228
+ - **Accept**: application/json
229
+
230
+
323
231