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.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/docs/AddAllowedTopicDto.md +1 -1
- data/docs/AddContributorDto.md +2 -2
- data/docs/AppContributorDto.md +3 -3
- data/docs/AppDetailsDto.md +10 -10
- data/docs/AppDto.md +6 -6
- data/docs/AppsApi.md +8 -8
- data/docs/ConfigsApi.md +1 -1
- data/docs/CreateEmailTemplateDto.md +1 -1
- data/docs/EmailTemplateDto.md +2 -2
- data/docs/EventDto.md +9 -9
- data/docs/EventsApi.md +2 -2
- data/docs/ListResponseDtoOfEventDto.md +2 -2
- data/docs/ListResponseDtoOfLogEntryDto.md +2 -2
- data/docs/ListResponseDtoOfMediaDto.md +2 -2
- data/docs/ListResponseDtoOfSubscriptionDto.md +2 -2
- data/docs/ListResponseDtoOfTemplateDto.md +2 -2
- data/docs/ListResponseDtoOfTopicDto.md +2 -2
- data/docs/ListResponseDtoOfUserDto.md +2 -2
- data/docs/LogEntryDto.md +4 -4
- data/docs/LogsApi.md +1 -1
- data/docs/MediaApi.md +89 -2
- data/docs/MediaDto.md +8 -6
- data/docs/NotificationFormattingDto.md +2 -2
- data/docs/NotificationSettingDto.md +1 -1
- data/docs/ProfileDto.md +5 -5
- data/docs/PublishDto.md +1 -1
- data/docs/PublishManyDto.md +1 -1
- data/docs/SubscriptionDto.md +1 -1
- data/docs/TemplateDto.md +3 -3
- data/docs/TemplatesApi.md +2 -2
- data/docs/TopicDto.md +3 -3
- data/docs/TopicsApi.md +1 -1
- data/docs/UpsertTemplateDto.md +2 -2
- data/docs/UpsertTemplatesDto.md +1 -1
- data/docs/UpsertUsersDto.md +1 -1
- data/docs/UserApi.md +2 -2
- data/docs/UserDto.md +5 -5
- data/docs/UsersApi.md +4 -4
- data/lib/notifo.rb +1 -2
- data/lib/notifo/api/apps_api.rb +4 -4
- data/lib/notifo/api/configs_api.rb +1 -1
- data/lib/notifo/api/events_api.rb +1 -1
- data/lib/notifo/api/logs_api.rb +1 -1
- data/lib/notifo/api/media_api.rb +99 -2
- data/lib/notifo/api/templates_api.rb +1 -1
- data/lib/notifo/api/topics_api.rb +1 -1
- data/lib/notifo/api/user_api.rb +1 -1
- data/lib/notifo/api/users_api.rb +1 -1
- data/lib/notifo/api_client.rb +2 -2
- data/lib/notifo/api_error.rb +1 -1
- data/lib/notifo/configuration.rb +9 -7
- data/lib/notifo/models/add_allowed_topic_dto.rb +25 -1
- data/lib/notifo/models/add_contributor_dto.rb +49 -1
- data/lib/notifo/models/app_contributor_dto.rb +73 -1
- data/lib/notifo/models/app_details_dto.rb +108 -1
- data/lib/notifo/models/app_dto.rb +88 -1
- data/lib/notifo/models/confirm_mode.rb +1 -1
- data/lib/notifo/models/create_email_template_dto.rb +25 -1
- data/lib/notifo/models/email_template_dto.rb +49 -1
- data/lib/notifo/models/email_verification_status.rb +1 -1
- data/lib/notifo/models/error_dto.rb +1 -1
- data/lib/notifo/models/event_dto.rb +122 -2
- data/lib/notifo/models/iso_day_of_week.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_event_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_media_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_template_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_topic_dto.rb +11 -1
- data/lib/notifo/models/list_response_dto_of_user_dto.rb +11 -1
- data/lib/notifo/models/log_entry_dto.rb +78 -1
- data/lib/notifo/models/media_dto.rb +123 -2
- data/lib/notifo/models/media_type.rb +1 -1
- data/lib/notifo/models/notification_formatting_dto.rb +11 -1
- data/lib/notifo/models/notification_send.rb +1 -1
- data/lib/notifo/models/notification_setting_dto.rb +6 -1
- data/lib/notifo/models/profile_dto.rb +67 -1
- data/lib/notifo/models/publish_dto.rb +25 -1
- data/lib/notifo/models/publish_many_dto.rb +6 -1
- data/lib/notifo/models/resize_mode.rb +1 -1
- data/lib/notifo/models/scheduling_dto.rb +1 -1
- data/lib/notifo/models/scheduling_type.rb +1 -1
- data/lib/notifo/models/subscription_dto.rb +25 -1
- data/lib/notifo/models/template_dto.rb +35 -1
- data/lib/notifo/models/topic_dto.rb +54 -1
- data/lib/notifo/models/update_profile_dto.rb +1 -1
- data/lib/notifo/models/upsert_app_dto.rb +1 -1
- data/lib/notifo/models/upsert_template_dto.rb +30 -1
- data/lib/notifo/models/upsert_templates_dto.rb +6 -1
- data/lib/notifo/models/upsert_user_dto.rb +1 -1
- data/lib/notifo/models/upsert_users_dto.rb +6 -1
- data/lib/notifo/models/user_dto.rb +69 -1
- data/lib/notifo/version.rb +1 -1
- data/notifo-io-1.0.0.2.gem +0 -0
- data/notifo.gemspec +4 -4
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/spec_helper.rb +1 -1
- 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.
|
9
|
+
OpenAPI Generator version: 5.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -118,15 +118,102 @@ module Notifo
|
|
118
118
|
# @return Array for valid properties with the reasons
|
119
119
|
def list_invalid_properties
|
120
120
|
invalid_properties = Array.new
|
121
|
+
if @id.nil?
|
122
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
123
|
+
end
|
124
|
+
|
125
|
+
if @id.to_s.length < 1
|
126
|
+
invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.')
|
127
|
+
end
|
128
|
+
|
129
|
+
if @name.nil?
|
130
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
131
|
+
end
|
132
|
+
|
133
|
+
if @name.to_s.length < 1
|
134
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
135
|
+
end
|
136
|
+
|
137
|
+
if @role.nil?
|
138
|
+
invalid_properties.push('invalid value for "role", role cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
|
+
if @role.to_s.length < 1
|
142
|
+
invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
|
143
|
+
end
|
144
|
+
|
145
|
+
if @languages.nil?
|
146
|
+
invalid_properties.push('invalid value for "languages", languages cannot be nil.')
|
147
|
+
end
|
148
|
+
|
149
|
+
if @api_keys.nil?
|
150
|
+
invalid_properties.push('invalid value for "api_keys", api_keys cannot be nil.')
|
151
|
+
end
|
152
|
+
|
153
|
+
if @counters.nil?
|
154
|
+
invalid_properties.push('invalid value for "counters", counters cannot be nil.')
|
155
|
+
end
|
156
|
+
|
121
157
|
invalid_properties
|
122
158
|
end
|
123
159
|
|
124
160
|
# Check to see if the all the properties in the model are valid
|
125
161
|
# @return true if the model is valid
|
126
162
|
def valid?
|
163
|
+
return false if @id.nil?
|
164
|
+
return false if @id.to_s.length < 1
|
165
|
+
return false if @name.nil?
|
166
|
+
return false if @name.to_s.length < 1
|
167
|
+
return false if @role.nil?
|
168
|
+
return false if @role.to_s.length < 1
|
169
|
+
return false if @languages.nil?
|
170
|
+
return false if @api_keys.nil?
|
171
|
+
return false if @counters.nil?
|
127
172
|
true
|
128
173
|
end
|
129
174
|
|
175
|
+
# Custom attribute writer method with validation
|
176
|
+
# @param [Object] id Value to be assigned
|
177
|
+
def id=(id)
|
178
|
+
if id.nil?
|
179
|
+
fail ArgumentError, 'id cannot be nil'
|
180
|
+
end
|
181
|
+
|
182
|
+
if id.to_s.length < 1
|
183
|
+
fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
|
184
|
+
end
|
185
|
+
|
186
|
+
@id = id
|
187
|
+
end
|
188
|
+
|
189
|
+
# Custom attribute writer method with validation
|
190
|
+
# @param [Object] name Value to be assigned
|
191
|
+
def name=(name)
|
192
|
+
if name.nil?
|
193
|
+
fail ArgumentError, 'name cannot be nil'
|
194
|
+
end
|
195
|
+
|
196
|
+
if name.to_s.length < 1
|
197
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
198
|
+
end
|
199
|
+
|
200
|
+
@name = name
|
201
|
+
end
|
202
|
+
|
203
|
+
# Custom attribute writer method with validation
|
204
|
+
# @param [Object] role Value to be assigned
|
205
|
+
def role=(role)
|
206
|
+
if role.nil?
|
207
|
+
fail ArgumentError, 'role cannot be nil'
|
208
|
+
end
|
209
|
+
|
210
|
+
if role.to_s.length < 1
|
211
|
+
fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
|
212
|
+
end
|
213
|
+
|
214
|
+
@role = role
|
215
|
+
end
|
216
|
+
|
130
217
|
# Checks equality by comparing each attribute.
|
131
218
|
# @param [Object] Object to be compared
|
132
219
|
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.
|
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 @language.nil?
|
71
|
+
invalid_properties.push('invalid value for "language", language cannot be nil.')
|
72
|
+
end
|
73
|
+
|
74
|
+
if @language.to_s.length < 1
|
75
|
+
invalid_properties.push('invalid value for "language", 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 @language.nil?
|
85
|
+
return false if @language.to_s.length < 1
|
76
86
|
true
|
77
87
|
end
|
78
88
|
|
89
|
+
# Custom attribute writer method with validation
|
90
|
+
# @param [Object] language Value to be assigned
|
91
|
+
def language=(language)
|
92
|
+
if language.nil?
|
93
|
+
fail ArgumentError, 'language cannot be nil'
|
94
|
+
end
|
95
|
+
|
96
|
+
if language.to_s.length < 1
|
97
|
+
fail ArgumentError, 'invalid value for "language", the character length must be great than or equal to 1.'
|
98
|
+
end
|
99
|
+
|
100
|
+
@language = language
|
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.
|
9
|
+
OpenAPI Generator version: 5.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -86,15 +86,63 @@ module Notifo
|
|
86
86
|
# @return Array for valid properties with the reasons
|
87
87
|
def list_invalid_properties
|
88
88
|
invalid_properties = Array.new
|
89
|
+
if @subject.nil?
|
90
|
+
invalid_properties.push('invalid value for "subject", subject cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if @subject.to_s.length < 1
|
94
|
+
invalid_properties.push('invalid value for "subject", the character length must be great than or equal to 1.')
|
95
|
+
end
|
96
|
+
|
97
|
+
if @body_html.nil?
|
98
|
+
invalid_properties.push('invalid value for "body_html", body_html cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
if @body_html.to_s.length < 1
|
102
|
+
invalid_properties.push('invalid value for "body_html", the character length must be great than or equal to 1.')
|
103
|
+
end
|
104
|
+
|
89
105
|
invalid_properties
|
90
106
|
end
|
91
107
|
|
92
108
|
# Check to see if the all the properties in the model are valid
|
93
109
|
# @return true if the model is valid
|
94
110
|
def valid?
|
111
|
+
return false if @subject.nil?
|
112
|
+
return false if @subject.to_s.length < 1
|
113
|
+
return false if @body_html.nil?
|
114
|
+
return false if @body_html.to_s.length < 1
|
95
115
|
true
|
96
116
|
end
|
97
117
|
|
118
|
+
# Custom attribute writer method with validation
|
119
|
+
# @param [Object] subject Value to be assigned
|
120
|
+
def subject=(subject)
|
121
|
+
if subject.nil?
|
122
|
+
fail ArgumentError, 'subject cannot be nil'
|
123
|
+
end
|
124
|
+
|
125
|
+
if subject.to_s.length < 1
|
126
|
+
fail ArgumentError, 'invalid value for "subject", the character length must be great than or equal to 1.'
|
127
|
+
end
|
128
|
+
|
129
|
+
@subject = subject
|
130
|
+
end
|
131
|
+
|
132
|
+
# Custom attribute writer method with validation
|
133
|
+
# @param [Object] body_html Value to be assigned
|
134
|
+
def body_html=(body_html)
|
135
|
+
if body_html.nil?
|
136
|
+
fail ArgumentError, 'body_html cannot be nil'
|
137
|
+
end
|
138
|
+
|
139
|
+
if body_html.to_s.length < 1
|
140
|
+
fail ArgumentError, 'invalid value for "body_html", the character length must be great than or equal to 1.'
|
141
|
+
end
|
142
|
+
|
143
|
+
@body_html = body_html
|
144
|
+
end
|
145
|
+
|
98
146
|
# Checks equality by comparing each attribute.
|
99
147
|
# @param [Object] Object to be compared
|
100
148
|
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.
|
9
|
+
OpenAPI Generator version: 5.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -95,7 +95,6 @@ module Notifo
|
|
95
95
|
Set.new([
|
96
96
|
:'creator_id',
|
97
97
|
:'data',
|
98
|
-
:'counters',
|
99
98
|
])
|
100
99
|
end
|
101
100
|
|
@@ -173,15 +172,136 @@ module Notifo
|
|
173
172
|
# @return Array for valid properties with the reasons
|
174
173
|
def list_invalid_properties
|
175
174
|
invalid_properties = Array.new
|
175
|
+
if @id.nil?
|
176
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
177
|
+
end
|
178
|
+
|
179
|
+
if @id.to_s.length < 1
|
180
|
+
invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.')
|
181
|
+
end
|
182
|
+
|
183
|
+
if @topic.nil?
|
184
|
+
invalid_properties.push('invalid value for "topic", topic cannot be nil.')
|
185
|
+
end
|
186
|
+
|
187
|
+
if @topic.to_s.length < 1
|
188
|
+
invalid_properties.push('invalid value for "topic", the character length must be great than or equal to 1.')
|
189
|
+
end
|
190
|
+
|
191
|
+
if @display_name.nil?
|
192
|
+
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
193
|
+
end
|
194
|
+
|
195
|
+
if @display_name.to_s.length < 1
|
196
|
+
invalid_properties.push('invalid value for "display_name", the character length must be great than or equal to 1.')
|
197
|
+
end
|
198
|
+
|
199
|
+
if @created.nil?
|
200
|
+
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
201
|
+
end
|
202
|
+
|
203
|
+
if @created.to_s.length < 1
|
204
|
+
invalid_properties.push('invalid value for "created", the character length must be great than or equal to 1.')
|
205
|
+
end
|
206
|
+
|
207
|
+
if @formatting.nil?
|
208
|
+
invalid_properties.push('invalid value for "formatting", formatting cannot be nil.')
|
209
|
+
end
|
210
|
+
|
211
|
+
if @settings.nil?
|
212
|
+
invalid_properties.push('invalid value for "settings", settings cannot be nil.')
|
213
|
+
end
|
214
|
+
|
215
|
+
if @properties.nil?
|
216
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
217
|
+
end
|
218
|
+
|
219
|
+
if @counters.nil?
|
220
|
+
invalid_properties.push('invalid value for "counters", counters cannot be nil.')
|
221
|
+
end
|
222
|
+
|
223
|
+
if @silent.nil?
|
224
|
+
invalid_properties.push('invalid value for "silent", silent cannot be nil.')
|
225
|
+
end
|
226
|
+
|
176
227
|
invalid_properties
|
177
228
|
end
|
178
229
|
|
179
230
|
# Check to see if the all the properties in the model are valid
|
180
231
|
# @return true if the model is valid
|
181
232
|
def valid?
|
233
|
+
return false if @id.nil?
|
234
|
+
return false if @id.to_s.length < 1
|
235
|
+
return false if @topic.nil?
|
236
|
+
return false if @topic.to_s.length < 1
|
237
|
+
return false if @display_name.nil?
|
238
|
+
return false if @display_name.to_s.length < 1
|
239
|
+
return false if @created.nil?
|
240
|
+
return false if @created.to_s.length < 1
|
241
|
+
return false if @formatting.nil?
|
242
|
+
return false if @settings.nil?
|
243
|
+
return false if @properties.nil?
|
244
|
+
return false if @counters.nil?
|
245
|
+
return false if @silent.nil?
|
182
246
|
true
|
183
247
|
end
|
184
248
|
|
249
|
+
# Custom attribute writer method with validation
|
250
|
+
# @param [Object] id Value to be assigned
|
251
|
+
def id=(id)
|
252
|
+
if id.nil?
|
253
|
+
fail ArgumentError, 'id cannot be nil'
|
254
|
+
end
|
255
|
+
|
256
|
+
if id.to_s.length < 1
|
257
|
+
fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
|
258
|
+
end
|
259
|
+
|
260
|
+
@id = id
|
261
|
+
end
|
262
|
+
|
263
|
+
# Custom attribute writer method with validation
|
264
|
+
# @param [Object] topic Value to be assigned
|
265
|
+
def topic=(topic)
|
266
|
+
if topic.nil?
|
267
|
+
fail ArgumentError, 'topic cannot be nil'
|
268
|
+
end
|
269
|
+
|
270
|
+
if topic.to_s.length < 1
|
271
|
+
fail ArgumentError, 'invalid value for "topic", the character length must be great than or equal to 1.'
|
272
|
+
end
|
273
|
+
|
274
|
+
@topic = topic
|
275
|
+
end
|
276
|
+
|
277
|
+
# Custom attribute writer method with validation
|
278
|
+
# @param [Object] display_name Value to be assigned
|
279
|
+
def display_name=(display_name)
|
280
|
+
if display_name.nil?
|
281
|
+
fail ArgumentError, 'display_name cannot be nil'
|
282
|
+
end
|
283
|
+
|
284
|
+
if display_name.to_s.length < 1
|
285
|
+
fail ArgumentError, 'invalid value for "display_name", the character length must be great than or equal to 1.'
|
286
|
+
end
|
287
|
+
|
288
|
+
@display_name = display_name
|
289
|
+
end
|
290
|
+
|
291
|
+
# Custom attribute writer method with validation
|
292
|
+
# @param [Object] created Value to be assigned
|
293
|
+
def created=(created)
|
294
|
+
if created.nil?
|
295
|
+
fail ArgumentError, 'created cannot be nil'
|
296
|
+
end
|
297
|
+
|
298
|
+
if created.to_s.length < 1
|
299
|
+
fail ArgumentError, 'invalid value for "created", the character length must be great than or equal to 1.'
|
300
|
+
end
|
301
|
+
|
302
|
+
@created = created
|
303
|
+
end
|
304
|
+
|
185
305
|
# Checks equality by comparing each attribute.
|
186
306
|
# @param [Object] Object to be compared
|
187
307
|
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.
|
9
|
+
OpenAPI Generator version: 5.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -78,12 +78,22 @@ module Notifo
|
|
78
78
|
# @return Array for valid properties with the reasons
|
79
79
|
def list_invalid_properties
|
80
80
|
invalid_properties = Array.new
|
81
|
+
if @items.nil?
|
82
|
+
invalid_properties.push('invalid value for "items", items cannot be nil.')
|
83
|
+
end
|
84
|
+
|
85
|
+
if @total.nil?
|
86
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
87
|
+
end
|
88
|
+
|
81
89
|
invalid_properties
|
82
90
|
end
|
83
91
|
|
84
92
|
# Check to see if the all the properties in the model are valid
|
85
93
|
# @return true if the model is valid
|
86
94
|
def valid?
|
95
|
+
return false if @items.nil?
|
96
|
+
return false if @total.nil?
|
87
97
|
true
|
88
98
|
end
|
89
99
|
|