notifo-io 1.0.0.2 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/docs/AddAllowedTopicDto.md +1 -1
  4. data/docs/AddContributorDto.md +2 -2
  5. data/docs/AppContributorDto.md +3 -3
  6. data/docs/AppDetailsDto.md +10 -10
  7. data/docs/AppDto.md +6 -6
  8. data/docs/AppsApi.md +8 -8
  9. data/docs/ConfigsApi.md +1 -1
  10. data/docs/CreateEmailTemplateDto.md +1 -1
  11. data/docs/EmailTemplateDto.md +2 -2
  12. data/docs/EventDto.md +9 -9
  13. data/docs/EventsApi.md +2 -2
  14. data/docs/ListResponseDtoOfEventDto.md +2 -2
  15. data/docs/ListResponseDtoOfLogEntryDto.md +2 -2
  16. data/docs/ListResponseDtoOfMediaDto.md +2 -2
  17. data/docs/ListResponseDtoOfSubscriptionDto.md +2 -2
  18. data/docs/ListResponseDtoOfTemplateDto.md +2 -2
  19. data/docs/ListResponseDtoOfTopicDto.md +2 -2
  20. data/docs/ListResponseDtoOfUserDto.md +2 -2
  21. data/docs/LogEntryDto.md +4 -4
  22. data/docs/LogsApi.md +1 -1
  23. data/docs/MediaApi.md +89 -2
  24. data/docs/MediaDto.md +8 -6
  25. data/docs/NotificationFormattingDto.md +2 -2
  26. data/docs/NotificationSettingDto.md +1 -1
  27. data/docs/ProfileDto.md +5 -5
  28. data/docs/PublishDto.md +1 -1
  29. data/docs/PublishManyDto.md +1 -1
  30. data/docs/SubscriptionDto.md +1 -1
  31. data/docs/TemplateDto.md +3 -3
  32. data/docs/TemplatesApi.md +2 -2
  33. data/docs/TopicDto.md +3 -3
  34. data/docs/TopicsApi.md +1 -1
  35. data/docs/UpsertTemplateDto.md +2 -2
  36. data/docs/UpsertTemplatesDto.md +1 -1
  37. data/docs/UpsertUsersDto.md +1 -1
  38. data/docs/UserApi.md +2 -2
  39. data/docs/UserDto.md +5 -5
  40. data/docs/UsersApi.md +4 -4
  41. data/lib/notifo.rb +1 -2
  42. data/lib/notifo/api/apps_api.rb +4 -4
  43. data/lib/notifo/api/configs_api.rb +1 -1
  44. data/lib/notifo/api/events_api.rb +1 -1
  45. data/lib/notifo/api/logs_api.rb +1 -1
  46. data/lib/notifo/api/media_api.rb +99 -2
  47. data/lib/notifo/api/templates_api.rb +1 -1
  48. data/lib/notifo/api/topics_api.rb +1 -1
  49. data/lib/notifo/api/user_api.rb +1 -1
  50. data/lib/notifo/api/users_api.rb +1 -1
  51. data/lib/notifo/api_client.rb +2 -2
  52. data/lib/notifo/api_error.rb +1 -1
  53. data/lib/notifo/configuration.rb +9 -7
  54. data/lib/notifo/models/add_allowed_topic_dto.rb +25 -1
  55. data/lib/notifo/models/add_contributor_dto.rb +49 -1
  56. data/lib/notifo/models/app_contributor_dto.rb +73 -1
  57. data/lib/notifo/models/app_details_dto.rb +108 -1
  58. data/lib/notifo/models/app_dto.rb +88 -1
  59. data/lib/notifo/models/confirm_mode.rb +1 -1
  60. data/lib/notifo/models/create_email_template_dto.rb +25 -1
  61. data/lib/notifo/models/email_template_dto.rb +49 -1
  62. data/lib/notifo/models/email_verification_status.rb +1 -1
  63. data/lib/notifo/models/error_dto.rb +1 -1
  64. data/lib/notifo/models/event_dto.rb +122 -2
  65. data/lib/notifo/models/iso_day_of_week.rb +1 -1
  66. data/lib/notifo/models/list_response_dto_of_event_dto.rb +11 -1
  67. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +11 -1
  68. data/lib/notifo/models/list_response_dto_of_media_dto.rb +11 -1
  69. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +11 -1
  70. data/lib/notifo/models/list_response_dto_of_template_dto.rb +11 -1
  71. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +11 -1
  72. data/lib/notifo/models/list_response_dto_of_user_dto.rb +11 -1
  73. data/lib/notifo/models/log_entry_dto.rb +78 -1
  74. data/lib/notifo/models/media_dto.rb +123 -2
  75. data/lib/notifo/models/media_type.rb +1 -1
  76. data/lib/notifo/models/notification_formatting_dto.rb +11 -1
  77. data/lib/notifo/models/notification_send.rb +1 -1
  78. data/lib/notifo/models/notification_setting_dto.rb +6 -1
  79. data/lib/notifo/models/profile_dto.rb +67 -1
  80. data/lib/notifo/models/publish_dto.rb +25 -1
  81. data/lib/notifo/models/publish_many_dto.rb +6 -1
  82. data/lib/notifo/models/resize_mode.rb +1 -1
  83. data/lib/notifo/models/scheduling_dto.rb +1 -1
  84. data/lib/notifo/models/scheduling_type.rb +1 -1
  85. data/lib/notifo/models/subscription_dto.rb +25 -1
  86. data/lib/notifo/models/template_dto.rb +35 -1
  87. data/lib/notifo/models/topic_dto.rb +54 -1
  88. data/lib/notifo/models/update_profile_dto.rb +1 -1
  89. data/lib/notifo/models/upsert_app_dto.rb +1 -1
  90. data/lib/notifo/models/upsert_template_dto.rb +30 -1
  91. data/lib/notifo/models/upsert_templates_dto.rb +6 -1
  92. data/lib/notifo/models/upsert_user_dto.rb +1 -1
  93. data/lib/notifo/models/upsert_users_dto.rb +6 -1
  94. data/lib/notifo/models/user_dto.rb +69 -1
  95. data/lib/notifo/version.rb +1 -1
  96. data/notifo-io-1.0.0.2.gem +0 -0
  97. data/notifo.gemspec +4 -4
  98. data/spec/api_client_spec.rb +1 -1
  99. data/spec/configuration_spec.rb +4 -4
  100. data/spec/spec_helper.rb +1 -1
  101. metadata +7 -5
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -307,7 +307,7 @@ module Notifo
307
307
  case auth_setting[:in]
308
308
  when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
309
309
  when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
310
- else fail ArgumentError, 'Authentication token must be in `query` of `header`'
310
+ else fail ArgumentError, 'Authentication token must be in `query` or `header`'
311
311
  end
312
312
  end
313
313
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -138,8 +138,8 @@ module Notifo
138
138
  attr_accessor :force_ending_format
139
139
 
140
140
  def initialize
141
- @scheme = 'https'
142
- @host = 'app.notifo.io'
141
+ @scheme = 'http'
142
+ @host = 'localhost'
143
143
  @base_path = ''
144
144
  @server_index = 0
145
145
  @server_operation_index = {}
@@ -197,11 +197,13 @@ module Notifo
197
197
 
198
198
  # Gets API key (with prefix if set).
199
199
  # @param [String] param_name the parameter name of API key auth
200
- def api_key_with_prefix(param_name)
200
+ def api_key_with_prefix(param_name, param_alias = nil)
201
+ key = @api_key[param_name]
202
+ key = @api_key.fetch(param_alias, key) unless param_alias.nil?
201
203
  if @api_key_prefix[param_name]
202
- "#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
204
+ "#{@api_key_prefix[param_name]} #{key}"
203
205
  else
204
- @api_key[param_name]
206
+ key
205
207
  end
206
208
  end
207
209
 
@@ -220,7 +222,7 @@ module Notifo
220
222
  def server_settings
221
223
  [
222
224
  {
223
- url: "https://app.notifo.io",
225
+ url: "",
224
226
  description: "No description provided",
225
227
  }
226
228
  ]
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -67,15 +67,39 @@ module Notifo
67
67
  # @return Array for valid properties with the reasons
68
68
  def list_invalid_properties
69
69
  invalid_properties = Array.new
70
+ if @prefix.nil?
71
+ invalid_properties.push('invalid value for "prefix", prefix cannot be nil.')
72
+ end
73
+
74
+ if @prefix.to_s.length < 1
75
+ invalid_properties.push('invalid value for "prefix", the character length must be great than or equal to 1.')
76
+ end
77
+
70
78
  invalid_properties
71
79
  end
72
80
 
73
81
  # Check to see if the all the properties in the model are valid
74
82
  # @return true if the model is valid
75
83
  def valid?
84
+ return false if @prefix.nil?
85
+ return false if @prefix.to_s.length < 1
76
86
  true
77
87
  end
78
88
 
89
+ # Custom attribute writer method with validation
90
+ # @param [Object] prefix Value to be assigned
91
+ def prefix=(prefix)
92
+ if prefix.nil?
93
+ fail ArgumentError, 'prefix cannot be nil'
94
+ end
95
+
96
+ if prefix.to_s.length < 1
97
+ fail ArgumentError, 'invalid value for "prefix", the character length must be great than or equal to 1.'
98
+ end
99
+
100
+ @prefix = prefix
101
+ end
102
+
79
103
  # Checks equality by comparing each attribute.
80
104
  # @param [Object] Object to be compared
81
105
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -76,15 +76,63 @@ module Notifo
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
+ if @email.nil?
80
+ invalid_properties.push('invalid value for "email", email cannot be nil.')
81
+ end
82
+
83
+ if @email.to_s.length < 1
84
+ invalid_properties.push('invalid value for "email", the character length must be great than or equal to 1.')
85
+ end
86
+
87
+ if @role.nil?
88
+ invalid_properties.push('invalid value for "role", role cannot be nil.')
89
+ end
90
+
91
+ if @role.to_s.length < 1
92
+ invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
93
+ end
94
+
79
95
  invalid_properties
80
96
  end
81
97
 
82
98
  # Check to see if the all the properties in the model are valid
83
99
  # @return true if the model is valid
84
100
  def valid?
101
+ return false if @email.nil?
102
+ return false if @email.to_s.length < 1
103
+ return false if @role.nil?
104
+ return false if @role.to_s.length < 1
85
105
  true
86
106
  end
87
107
 
108
+ # Custom attribute writer method with validation
109
+ # @param [Object] email Value to be assigned
110
+ def email=(email)
111
+ if email.nil?
112
+ fail ArgumentError, 'email cannot be nil'
113
+ end
114
+
115
+ if email.to_s.length < 1
116
+ fail ArgumentError, 'invalid value for "email", the character length must be great than or equal to 1.'
117
+ end
118
+
119
+ @email = email
120
+ end
121
+
122
+ # Custom attribute writer method with validation
123
+ # @param [Object] role Value to be assigned
124
+ def role=(role)
125
+ if role.nil?
126
+ fail ArgumentError, 'role cannot be nil'
127
+ end
128
+
129
+ if role.to_s.length < 1
130
+ fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
131
+ end
132
+
133
+ @role = role
134
+ end
135
+
88
136
  # Checks equality by comparing each attribute.
89
137
  # @param [Object] Object to be compared
90
138
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -85,15 +85,87 @@ module Notifo
85
85
  # @return Array for valid properties with the reasons
86
86
  def list_invalid_properties
87
87
  invalid_properties = Array.new
88
+ if @user_id.nil?
89
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
90
+ end
91
+
92
+ if @user_id.to_s.length < 1
93
+ invalid_properties.push('invalid value for "user_id", the character length must be great than or equal to 1.')
94
+ end
95
+
96
+ if @user_name.nil?
97
+ invalid_properties.push('invalid value for "user_name", user_name cannot be nil.')
98
+ end
99
+
100
+ if @user_name.to_s.length < 1
101
+ invalid_properties.push('invalid value for "user_name", the character length must be great than or equal to 1.')
102
+ end
103
+
104
+ if @role.nil?
105
+ invalid_properties.push('invalid value for "role", role cannot be nil.')
106
+ end
107
+
108
+ if @role.to_s.length < 1
109
+ invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
110
+ end
111
+
88
112
  invalid_properties
89
113
  end
90
114
 
91
115
  # Check to see if the all the properties in the model are valid
92
116
  # @return true if the model is valid
93
117
  def valid?
118
+ return false if @user_id.nil?
119
+ return false if @user_id.to_s.length < 1
120
+ return false if @user_name.nil?
121
+ return false if @user_name.to_s.length < 1
122
+ return false if @role.nil?
123
+ return false if @role.to_s.length < 1
94
124
  true
95
125
  end
96
126
 
127
+ # Custom attribute writer method with validation
128
+ # @param [Object] user_id Value to be assigned
129
+ def user_id=(user_id)
130
+ if user_id.nil?
131
+ fail ArgumentError, 'user_id cannot be nil'
132
+ end
133
+
134
+ if user_id.to_s.length < 1
135
+ fail ArgumentError, 'invalid value for "user_id", the character length must be great than or equal to 1.'
136
+ end
137
+
138
+ @user_id = user_id
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] user_name Value to be assigned
143
+ def user_name=(user_name)
144
+ if user_name.nil?
145
+ fail ArgumentError, 'user_name cannot be nil'
146
+ end
147
+
148
+ if user_name.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "user_name", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @user_name = user_name
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] role Value to be assigned
157
+ def role=(role)
158
+ if role.nil?
159
+ fail ArgumentError, 'role cannot be nil'
160
+ end
161
+
162
+ if role.to_s.length < 1
163
+ fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
164
+ end
165
+
166
+ @role = role
167
+ end
168
+
97
169
  # Checks equality by comparing each attribute.
98
170
  # @param [Object] Object to be compared
99
171
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -215,15 +215,122 @@ module Notifo
215
215
  # @return Array for valid properties with the reasons
216
216
  def list_invalid_properties
217
217
  invalid_properties = Array.new
218
+ if @id.nil?
219
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
220
+ end
221
+
222
+ if @id.to_s.length < 1
223
+ invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.')
224
+ end
225
+
226
+ if @name.nil?
227
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
228
+ end
229
+
230
+ if @name.to_s.length < 1
231
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
232
+ end
233
+
234
+ if @role.nil?
235
+ invalid_properties.push('invalid value for "role", role cannot be nil.')
236
+ end
237
+
238
+ if @role.to_s.length < 1
239
+ invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
240
+ end
241
+
242
+ if @languages.nil?
243
+ invalid_properties.push('invalid value for "languages", languages cannot be nil.')
244
+ end
245
+
246
+ if @allow_email.nil?
247
+ invalid_properties.push('invalid value for "allow_email", allow_email cannot be nil.')
248
+ end
249
+
250
+ if @allow_sms.nil?
251
+ invalid_properties.push('invalid value for "allow_sms", allow_sms cannot be nil.')
252
+ end
253
+
254
+ if @email_verification_status.nil?
255
+ invalid_properties.push('invalid value for "email_verification_status", email_verification_status cannot be nil.')
256
+ end
257
+
258
+ if @api_keys.nil?
259
+ invalid_properties.push('invalid value for "api_keys", api_keys cannot be nil.')
260
+ end
261
+
262
+ if @contributors.nil?
263
+ invalid_properties.push('invalid value for "contributors", contributors cannot be nil.')
264
+ end
265
+
266
+ if @counters.nil?
267
+ invalid_properties.push('invalid value for "counters", counters cannot be nil.')
268
+ end
269
+
218
270
  invalid_properties
219
271
  end
220
272
 
221
273
  # Check to see if the all the properties in the model are valid
222
274
  # @return true if the model is valid
223
275
  def valid?
276
+ return false if @id.nil?
277
+ return false if @id.to_s.length < 1
278
+ return false if @name.nil?
279
+ return false if @name.to_s.length < 1
280
+ return false if @role.nil?
281
+ return false if @role.to_s.length < 1
282
+ return false if @languages.nil?
283
+ return false if @allow_email.nil?
284
+ return false if @allow_sms.nil?
285
+ return false if @email_verification_status.nil?
286
+ return false if @api_keys.nil?
287
+ return false if @contributors.nil?
288
+ return false if @counters.nil?
224
289
  true
225
290
  end
226
291
 
292
+ # Custom attribute writer method with validation
293
+ # @param [Object] id Value to be assigned
294
+ def id=(id)
295
+ if id.nil?
296
+ fail ArgumentError, 'id cannot be nil'
297
+ end
298
+
299
+ if id.to_s.length < 1
300
+ fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
301
+ end
302
+
303
+ @id = id
304
+ end
305
+
306
+ # Custom attribute writer method with validation
307
+ # @param [Object] name Value to be assigned
308
+ def name=(name)
309
+ if name.nil?
310
+ fail ArgumentError, 'name cannot be nil'
311
+ end
312
+
313
+ if name.to_s.length < 1
314
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
315
+ end
316
+
317
+ @name = name
318
+ end
319
+
320
+ # Custom attribute writer method with validation
321
+ # @param [Object] role Value to be assigned
322
+ def role=(role)
323
+ if role.nil?
324
+ fail ArgumentError, 'role cannot be nil'
325
+ end
326
+
327
+ if role.to_s.length < 1
328
+ fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
329
+ end
330
+
331
+ @role = role
332
+ end
333
+
227
334
  # Checks equality by comparing each attribute.
228
335
  # @param [Object] Object to be compared
229
336
  def ==(o)