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
 
@@ -87,15 +87,44 @@ module Notifo
87
87
  # @return Array for valid properties with the reasons
88
88
  def list_invalid_properties
89
89
  invalid_properties = Array.new
90
+ if @code.nil?
91
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
92
+ end
93
+
94
+ if @code.to_s.length < 1
95
+ invalid_properties.push('invalid value for "code", the character length must be great than or equal to 1.')
96
+ end
97
+
98
+ if @formatting.nil?
99
+ invalid_properties.push('invalid value for "formatting", formatting cannot be nil.')
100
+ end
101
+
90
102
  invalid_properties
91
103
  end
92
104
 
93
105
  # Check to see if the all the properties in the model are valid
94
106
  # @return true if the model is valid
95
107
  def valid?
108
+ return false if @code.nil?
109
+ return false if @code.to_s.length < 1
110
+ return false if @formatting.nil?
96
111
  true
97
112
  end
98
113
 
114
+ # Custom attribute writer method with validation
115
+ # @param [Object] code Value to be assigned
116
+ def code=(code)
117
+ if code.nil?
118
+ fail ArgumentError, 'code cannot be nil'
119
+ end
120
+
121
+ if code.to_s.length < 1
122
+ fail ArgumentError, 'invalid value for "code", the character length must be great than or equal to 1.'
123
+ end
124
+
125
+ @code = code
126
+ end
127
+
99
128
  # Checks equality by comparing each attribute.
100
129
  # @param [Object] Object to be compared
101
130
  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
 
@@ -69,12 +69,17 @@ module Notifo
69
69
  # @return Array for valid properties with the reasons
70
70
  def list_invalid_properties
71
71
  invalid_properties = Array.new
72
+ if @requests.nil?
73
+ invalid_properties.push('invalid value for "requests", requests cannot be nil.')
74
+ end
75
+
72
76
  invalid_properties
73
77
  end
74
78
 
75
79
  # Check to see if the all the properties in the model are valid
76
80
  # @return true if the model is valid
77
81
  def valid?
82
+ return false if @requests.nil?
78
83
  true
79
84
  end
80
85
 
@@ -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
 
@@ -69,12 +69,17 @@ module Notifo
69
69
  # @return Array for valid properties with the reasons
70
70
  def list_invalid_properties
71
71
  invalid_properties = Array.new
72
+ if @requests.nil?
73
+ invalid_properties.push('invalid value for "requests", requests cannot be nil.')
74
+ end
75
+
72
76
  invalid_properties
73
77
  end
74
78
 
75
79
  # Check to see if the all the properties in the model are valid
76
80
  # @return true if the model is valid
77
81
  def valid?
82
+ return false if @requests.nil?
78
83
  true
79
84
  end
80
85
 
@@ -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,6 +85,11 @@ module Notifo
85
85
  # List of attributes with nullable: true
86
86
  def self.openapi_nullable
87
87
  Set.new([
88
+ :'full_name',
89
+ :'email_address',
90
+ :'phone_number',
91
+ :'preferred_language',
92
+ :'preferred_timezone',
88
93
  ])
89
94
  end
90
95
 
@@ -152,15 +157,78 @@ module Notifo
152
157
  # @return Array for valid properties with the reasons
153
158
  def list_invalid_properties
154
159
  invalid_properties = Array.new
160
+ if @id.nil?
161
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
162
+ end
163
+
164
+ if @id.to_s.length < 1
165
+ invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.')
166
+ end
167
+
168
+ if @api_key.nil?
169
+ invalid_properties.push('invalid value for "api_key", api_key cannot be nil.')
170
+ end
171
+
172
+ if @api_key.to_s.length < 1
173
+ invalid_properties.push('invalid value for "api_key", the character length must be great than or equal to 1.')
174
+ end
175
+
176
+ if @requires_whitelisted_topics.nil?
177
+ invalid_properties.push('invalid value for "requires_whitelisted_topics", requires_whitelisted_topics cannot be nil.')
178
+ end
179
+
180
+ if @settings.nil?
181
+ invalid_properties.push('invalid value for "settings", settings cannot be nil.')
182
+ end
183
+
184
+ if @counters.nil?
185
+ invalid_properties.push('invalid value for "counters", counters cannot be nil.')
186
+ end
187
+
155
188
  invalid_properties
156
189
  end
157
190
 
158
191
  # Check to see if the all the properties in the model are valid
159
192
  # @return true if the model is valid
160
193
  def valid?
194
+ return false if @id.nil?
195
+ return false if @id.to_s.length < 1
196
+ return false if @api_key.nil?
197
+ return false if @api_key.to_s.length < 1
198
+ return false if @requires_whitelisted_topics.nil?
199
+ return false if @settings.nil?
200
+ return false if @counters.nil?
161
201
  true
162
202
  end
163
203
 
204
+ # Custom attribute writer method with validation
205
+ # @param [Object] id Value to be assigned
206
+ def id=(id)
207
+ if id.nil?
208
+ fail ArgumentError, 'id cannot be nil'
209
+ end
210
+
211
+ if id.to_s.length < 1
212
+ fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
213
+ end
214
+
215
+ @id = id
216
+ end
217
+
218
+ # Custom attribute writer method with validation
219
+ # @param [Object] api_key Value to be assigned
220
+ def api_key=(api_key)
221
+ if api_key.nil?
222
+ fail ArgumentError, 'api_key cannot be nil'
223
+ end
224
+
225
+ if api_key.to_s.length < 1
226
+ fail ArgumentError, 'invalid value for "api_key", the character length must be great than or equal to 1.'
227
+ end
228
+
229
+ @api_key = api_key
230
+ end
231
+
164
232
  # Checks equality by comparing each attribute.
165
233
  # @param [Object] Object to be compared
166
234
  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
 
Binary file
data/notifo.gemspec CHANGED
@@ -17,13 +17,13 @@ require "notifo/version"
17
17
 
18
18
  Gem::Specification.new do |s|
19
19
  s.name = "notifo-io"
20
- s.version = "1.0.0.2"
20
+ s.version = "1.0.1"
21
21
  s.platform = Gem::Platform::RUBY
22
- s.authors = ["OpenAPI-Generator"]
22
+ s.authors = ["Squidex UG"]
23
23
  s.email = [""]
24
- s.homepage = "https://openapi-generator.tech"
24
+ s.homepage = "https://app.notifo.io"
25
25
  s.summary = "Notifo API Ruby Gem"
26
- s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
26
+ s.description = "Notifo is a multi-channel notification service for collaboration tools, e-commerce, news, magazines and everybody who wants to notify their users."
27
27
  s.license = "Unlicense"
28
28
  s.required_ruby_version = ">= 2.4"
29
29
 
@@ -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
 
@@ -18,7 +18,7 @@ describe Notifo::Configuration do
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
- # uri = URI.parse("https://app.notifo.io")
21
+ # uri = URI.parse("http://localhost")
22
22
  # Notifo.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe Notifo::Configuration do
28
28
  describe '#base_url' do
29
29
  it 'should have the default value' do
30
30
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("https://app.notifo.io")
31
+ # expect(config.base_url).to eq("http://localhost")
32
32
  end
33
33
 
34
34
  it 'should remove trailing slashes' do
35
35
  [nil, '', '/', '//'].each do |base_path|
36
36
  config.base_path = base_path
37
37
  # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("https://app.notifo.io")
38
+ # expect(config.base_url).to eq("http://localhost")
39
39
  end
40
40
  end
41
41
  end
data/spec/spec_helper.rb CHANGED
@@ -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
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifo-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.2
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - OpenAPI-Generator
7
+ - Squidex UG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-19 00:00:00.000000000 Z
11
+ date: 2021-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -50,7 +50,8 @@ dependencies:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '3.6'
53
- description: No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
53
+ description: Notifo is a multi-channel notification service for collaboration tools,
54
+ e-commerce, news, magazines and everybody who wants to notify their users.
54
55
  email:
55
56
  - ''
56
57
  executables: []
@@ -169,6 +170,7 @@ files:
169
170
  - lib/notifo/models/user_dto.rb
170
171
  - lib/notifo/version.rb
171
172
  - notifo-1.0.0.gem
173
+ - notifo-io-1.0.0.2.gem
172
174
  - notifo-io-1.0.0.gem
173
175
  - notifo.gemspec
174
176
  - spec/api/apps_api_spec.rb
@@ -225,7 +227,7 @@ files:
225
227
  - spec/models/upsert_users_dto_spec.rb
226
228
  - spec/models/user_dto_spec.rb
227
229
  - spec/spec_helper.rb
228
- homepage: https://openapi-generator.tech
230
+ homepage: https://app.notifo.io
229
231
  licenses:
230
232
  - Unlicense
231
233
  metadata: {}