zyphr 0.1.3 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/docs/Category.md +4 -2
- data/docs/Device.md +10 -12
- data/docs/DeviceStats.md +3 -1
- data/docs/DevicesApi.md +3 -3
- data/docs/PushApi.md +3 -3
- data/docs/PushMessage.md +13 -7
- data/docs/PushMessageDetail.md +17 -15
- data/docs/PushMessageDetailAllOfActionButtons.md +24 -0
- data/docs/RegisterDeviceRequest.md +4 -14
- data/docs/SMSApi.md +4 -4
- data/docs/SendPushRequest.md +35 -15
- data/docs/SendPushRequestActionButtonsInner.md +24 -0
- data/docs/TemplatesApi.md +2 -2
- data/docs/TopicsApi.md +2 -2
- data/docs/WaaSApplication.md +4 -2
- data/docs/WaaSApplicationsApi.md +1 -1
- data/docs/{WebhookWorkspaceMetricsResponse.md → WebhookAccountMetricsResponse.md} +3 -3
- data/docs/WebhooksApi.md +70 -70
- data/lib/zyphr/api/devices_api.rb +4 -4
- data/lib/zyphr/api/push_api.rb +4 -4
- data/lib/zyphr/api/sms_api.rb +8 -8
- data/lib/zyphr/api/templates_api.rb +4 -4
- data/lib/zyphr/api/topics_api.rb +4 -4
- data/lib/zyphr/api/waa_s_applications_api.rb +2 -2
- data/lib/zyphr/api/webhooks_api.rb +59 -59
- data/lib/zyphr/models/category.rb +16 -7
- data/lib/zyphr/models/device.rb +34 -57
- data/lib/zyphr/models/device_stats.rb +13 -4
- data/lib/zyphr/models/push_message.rb +67 -36
- data/lib/zyphr/models/push_message_detail.rb +88 -75
- data/lib/zyphr/models/push_message_detail_all_of_action_buttons.rb +247 -0
- data/lib/zyphr/models/register_device_request.rb +43 -59
- data/lib/zyphr/models/send_push_request.rb +278 -91
- data/lib/zyphr/models/{push_payload.rb → send_push_request_action_buttons_inner.rb} +72 -73
- data/lib/zyphr/models/waa_s_application.rb +16 -7
- data/lib/zyphr/models/{webhook_workspace_metrics_response.rb → webhook_account_metrics_response.rb} +4 -4
- data/lib/zyphr.rb +3 -2
- data/spec/api/devices_api_spec.rb +2 -2
- data/spec/api/push_api_spec.rb +2 -2
- data/spec/api/sms_api_spec.rb +4 -4
- data/spec/api/templates_api_spec.rb +2 -2
- data/spec/api/topics_api_spec.rb +2 -2
- data/spec/api/waa_s_applications_api_spec.rb +1 -1
- data/spec/api/webhooks_api_spec.rb +12 -12
- data/spec/models/category_spec.rb +7 -1
- data/spec/models/device_spec.rb +5 -15
- data/spec/models/device_stats_spec.rb +6 -0
- data/spec/models/{push_payload_spec.rb → push_message_detail_all_of_action_buttons_spec.rb} +10 -34
- data/spec/models/push_message_detail_spec.rb +26 -20
- data/spec/models/push_message_spec.rb +26 -8
- data/spec/models/register_device_request_spec.rb +2 -32
- data/spec/models/send_push_request_action_buttons_inner_spec.rb +54 -0
- data/spec/models/send_push_request_spec.rb +67 -11
- data/spec/models/waa_s_application_spec.rb +7 -1
- data/spec/models/{webhook_workspace_metrics_response_spec.rb → webhook_account_metrics_response_spec.rb} +6 -6
- data/zyphr.gemspec +1 -1
- metadata +328 -324
- data/docs/PushPayload.md +0 -32
|
@@ -14,34 +14,22 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zyphr
|
|
17
|
-
class
|
|
18
|
-
attr_accessor :
|
|
19
|
-
|
|
20
|
-
attr_accessor :body
|
|
21
|
-
|
|
22
|
-
attr_accessor :icon
|
|
23
|
-
|
|
24
|
-
attr_accessor :image
|
|
25
|
-
|
|
26
|
-
attr_accessor :badge
|
|
17
|
+
class SendPushRequestActionButtonsInner
|
|
18
|
+
attr_accessor :id
|
|
27
19
|
|
|
28
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :title
|
|
29
21
|
|
|
30
|
-
attr_accessor :
|
|
22
|
+
attr_accessor :action
|
|
31
23
|
|
|
32
|
-
attr_accessor :
|
|
24
|
+
attr_accessor :deep_link
|
|
33
25
|
|
|
34
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
27
|
def self.attribute_map
|
|
36
28
|
{
|
|
29
|
+
:'id' => :'id',
|
|
37
30
|
:'title' => :'title',
|
|
38
|
-
:'
|
|
39
|
-
:'
|
|
40
|
-
:'image' => :'image',
|
|
41
|
-
:'badge' => :'badge',
|
|
42
|
-
:'sound' => :'sound',
|
|
43
|
-
:'click_action' => :'click_action',
|
|
44
|
-
:'data' => :'data'
|
|
31
|
+
:'action' => :'action',
|
|
32
|
+
:'deep_link' => :'deep_link'
|
|
45
33
|
}
|
|
46
34
|
end
|
|
47
35
|
|
|
@@ -58,14 +46,10 @@ module Zyphr
|
|
|
58
46
|
# Attribute type mapping.
|
|
59
47
|
def self.openapi_types
|
|
60
48
|
{
|
|
49
|
+
:'id' => :'String',
|
|
61
50
|
:'title' => :'String',
|
|
62
|
-
:'
|
|
63
|
-
:'
|
|
64
|
-
:'image' => :'String',
|
|
65
|
-
:'badge' => :'String',
|
|
66
|
-
:'sound' => :'String',
|
|
67
|
-
:'click_action' => :'String',
|
|
68
|
-
:'data' => :'Hash<String, Object>'
|
|
51
|
+
:'action' => :'String',
|
|
52
|
+
:'deep_link' => :'String'
|
|
69
53
|
}
|
|
70
54
|
end
|
|
71
55
|
|
|
@@ -79,54 +63,36 @@ module Zyphr
|
|
|
79
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
80
64
|
def initialize(attributes = {})
|
|
81
65
|
if (!attributes.is_a?(Hash))
|
|
82
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Zyphr::
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zyphr::SendPushRequestActionButtonsInner` initialize method"
|
|
83
67
|
end
|
|
84
68
|
|
|
85
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
86
70
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
87
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
88
72
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
89
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Zyphr::
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zyphr::SendPushRequestActionButtonsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
90
74
|
end
|
|
91
75
|
h[k.to_sym] = v
|
|
92
76
|
}
|
|
93
77
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
self.
|
|
78
|
+
if attributes.key?(:'id')
|
|
79
|
+
self.id = attributes[:'id']
|
|
96
80
|
else
|
|
97
|
-
self.
|
|
81
|
+
self.id = nil
|
|
98
82
|
end
|
|
99
83
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
self.
|
|
84
|
+
if attributes.key?(:'title')
|
|
85
|
+
self.title = attributes[:'title']
|
|
102
86
|
else
|
|
103
|
-
self.
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
if attributes.key?(:'icon')
|
|
107
|
-
self.icon = attributes[:'icon']
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
if attributes.key?(:'image')
|
|
111
|
-
self.image = attributes[:'image']
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
if attributes.key?(:'badge')
|
|
115
|
-
self.badge = attributes[:'badge']
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
if attributes.key?(:'sound')
|
|
119
|
-
self.sound = attributes[:'sound']
|
|
87
|
+
self.title = nil
|
|
120
88
|
end
|
|
121
89
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
90
|
+
if attributes.key?(:'action')
|
|
91
|
+
self.action = attributes[:'action']
|
|
124
92
|
end
|
|
125
93
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
|
|
128
|
-
self.data = value
|
|
129
|
-
end
|
|
94
|
+
if attributes.key?(:'deep_link')
|
|
95
|
+
self.deep_link = attributes[:'deep_link']
|
|
130
96
|
end
|
|
131
97
|
end
|
|
132
98
|
|
|
@@ -135,12 +101,24 @@ module Zyphr
|
|
|
135
101
|
def list_invalid_properties
|
|
136
102
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
137
103
|
invalid_properties = Array.new
|
|
104
|
+
if @id.nil?
|
|
105
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if @id.to_s.length > 64
|
|
109
|
+
invalid_properties.push('invalid value for "id", the character length must be smaller than or equal to 64.')
|
|
110
|
+
end
|
|
111
|
+
|
|
138
112
|
if @title.nil?
|
|
139
113
|
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
|
140
114
|
end
|
|
141
115
|
|
|
142
|
-
if @
|
|
143
|
-
invalid_properties.push('invalid value for "
|
|
116
|
+
if @title.to_s.length > 50
|
|
117
|
+
invalid_properties.push('invalid value for "title", the character length must be smaller than or equal to 50.')
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if !@action.nil? && @action.to_s.length > 100
|
|
121
|
+
invalid_properties.push('invalid value for "action", the character length must be smaller than or equal to 100.')
|
|
144
122
|
end
|
|
145
123
|
|
|
146
124
|
invalid_properties
|
|
@@ -150,11 +128,28 @@ module Zyphr
|
|
|
150
128
|
# @return true if the model is valid
|
|
151
129
|
def valid?
|
|
152
130
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
131
|
+
return false if @id.nil?
|
|
132
|
+
return false if @id.to_s.length > 64
|
|
153
133
|
return false if @title.nil?
|
|
154
|
-
return false if @
|
|
134
|
+
return false if @title.to_s.length > 50
|
|
135
|
+
return false if !@action.nil? && @action.to_s.length > 100
|
|
155
136
|
true
|
|
156
137
|
end
|
|
157
138
|
|
|
139
|
+
# Custom attribute writer method with validation
|
|
140
|
+
# @param [Object] id Value to be assigned
|
|
141
|
+
def id=(id)
|
|
142
|
+
if id.nil?
|
|
143
|
+
fail ArgumentError, 'id cannot be nil'
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if id.to_s.length > 64
|
|
147
|
+
fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 64.'
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
@id = id
|
|
151
|
+
end
|
|
152
|
+
|
|
158
153
|
# Custom attribute writer method with validation
|
|
159
154
|
# @param [Object] title Value to be assigned
|
|
160
155
|
def title=(title)
|
|
@@ -162,17 +157,25 @@ module Zyphr
|
|
|
162
157
|
fail ArgumentError, 'title cannot be nil'
|
|
163
158
|
end
|
|
164
159
|
|
|
160
|
+
if title.to_s.length > 50
|
|
161
|
+
fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 50.'
|
|
162
|
+
end
|
|
163
|
+
|
|
165
164
|
@title = title
|
|
166
165
|
end
|
|
167
166
|
|
|
168
167
|
# Custom attribute writer method with validation
|
|
169
|
-
# @param [Object]
|
|
170
|
-
def
|
|
171
|
-
if
|
|
172
|
-
fail ArgumentError, '
|
|
168
|
+
# @param [Object] action Value to be assigned
|
|
169
|
+
def action=(action)
|
|
170
|
+
if action.nil?
|
|
171
|
+
fail ArgumentError, 'action cannot be nil'
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if action.to_s.length > 100
|
|
175
|
+
fail ArgumentError, 'invalid value for "action", the character length must be smaller than or equal to 100.'
|
|
173
176
|
end
|
|
174
177
|
|
|
175
|
-
@
|
|
178
|
+
@action = action
|
|
176
179
|
end
|
|
177
180
|
|
|
178
181
|
# Checks equality by comparing each attribute.
|
|
@@ -180,14 +183,10 @@ module Zyphr
|
|
|
180
183
|
def ==(o)
|
|
181
184
|
return true if self.equal?(o)
|
|
182
185
|
self.class == o.class &&
|
|
186
|
+
id == o.id &&
|
|
183
187
|
title == o.title &&
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
image == o.image &&
|
|
187
|
-
badge == o.badge &&
|
|
188
|
-
sound == o.sound &&
|
|
189
|
-
click_action == o.click_action &&
|
|
190
|
-
data == o.data
|
|
188
|
+
action == o.action &&
|
|
189
|
+
deep_link == o.deep_link
|
|
191
190
|
end
|
|
192
191
|
|
|
193
192
|
# @see the `==` method
|
|
@@ -199,7 +198,7 @@ module Zyphr
|
|
|
199
198
|
# Calculates hash code according to all attributes.
|
|
200
199
|
# @return [Integer] Hash code
|
|
201
200
|
def hash
|
|
202
|
-
[
|
|
201
|
+
[id, title, action, deep_link].hash
|
|
203
202
|
end
|
|
204
203
|
|
|
205
204
|
# Builds the object from hash
|
|
@@ -17,7 +17,9 @@ module Zyphr
|
|
|
17
17
|
class WaaSApplication
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :account_id
|
|
21
|
+
|
|
22
|
+
attr_accessor :project_id
|
|
21
23
|
|
|
22
24
|
attr_accessor :name
|
|
23
25
|
|
|
@@ -57,7 +59,8 @@ module Zyphr
|
|
|
57
59
|
def self.attribute_map
|
|
58
60
|
{
|
|
59
61
|
:'id' => :'id',
|
|
60
|
-
:'
|
|
62
|
+
:'account_id' => :'account_id',
|
|
63
|
+
:'project_id' => :'project_id',
|
|
61
64
|
:'name' => :'name',
|
|
62
65
|
:'slug' => :'slug',
|
|
63
66
|
:'description' => :'description',
|
|
@@ -81,7 +84,8 @@ module Zyphr
|
|
|
81
84
|
def self.openapi_types
|
|
82
85
|
{
|
|
83
86
|
:'id' => :'String',
|
|
84
|
-
:'
|
|
87
|
+
:'account_id' => :'String',
|
|
88
|
+
:'project_id' => :'String',
|
|
85
89
|
:'name' => :'String',
|
|
86
90
|
:'slug' => :'String',
|
|
87
91
|
:'description' => :'String',
|
|
@@ -117,8 +121,12 @@ module Zyphr
|
|
|
117
121
|
self.id = attributes[:'id']
|
|
118
122
|
end
|
|
119
123
|
|
|
120
|
-
if attributes.key?(:'
|
|
121
|
-
self.
|
|
124
|
+
if attributes.key?(:'account_id')
|
|
125
|
+
self.account_id = attributes[:'account_id']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'project_id')
|
|
129
|
+
self.project_id = attributes[:'project_id']
|
|
122
130
|
end
|
|
123
131
|
|
|
124
132
|
if attributes.key?(:'name')
|
|
@@ -179,7 +187,8 @@ module Zyphr
|
|
|
179
187
|
return true if self.equal?(o)
|
|
180
188
|
self.class == o.class &&
|
|
181
189
|
id == o.id &&
|
|
182
|
-
|
|
190
|
+
account_id == o.account_id &&
|
|
191
|
+
project_id == o.project_id &&
|
|
183
192
|
name == o.name &&
|
|
184
193
|
slug == o.slug &&
|
|
185
194
|
description == o.description &&
|
|
@@ -197,7 +206,7 @@ module Zyphr
|
|
|
197
206
|
# Calculates hash code according to all attributes.
|
|
198
207
|
# @return [Integer] Hash code
|
|
199
208
|
def hash
|
|
200
|
-
[id,
|
|
209
|
+
[id, account_id, project_id, name, slug, description, status, created_at, updated_at].hash
|
|
201
210
|
end
|
|
202
211
|
|
|
203
212
|
# Builds the object from hash
|
data/lib/zyphr/models/{webhook_workspace_metrics_response.rb → webhook_account_metrics_response.rb}
RENAMED
|
@@ -14,8 +14,8 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zyphr
|
|
17
|
-
class
|
|
18
|
-
# Aggregate webhook metrics for the
|
|
17
|
+
class WebhookAccountMetricsResponse
|
|
18
|
+
# Aggregate webhook metrics for the account
|
|
19
19
|
attr_accessor :data
|
|
20
20
|
|
|
21
21
|
attr_accessor :meta
|
|
@@ -56,14 +56,14 @@ module Zyphr
|
|
|
56
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
57
|
def initialize(attributes = {})
|
|
58
58
|
if (!attributes.is_a?(Hash))
|
|
59
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Zyphr::
|
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zyphr::WebhookAccountMetricsResponse` initialize method"
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
63
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
64
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
65
65
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Zyphr::
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zyphr::WebhookAccountMetricsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
67
67
|
end
|
|
68
68
|
h[k.to_sym] = v
|
|
69
69
|
}
|
data/lib/zyphr.rb
CHANGED
|
@@ -157,7 +157,7 @@ require 'zyphr/models/push_event'
|
|
|
157
157
|
require 'zyphr/models/push_list_response'
|
|
158
158
|
require 'zyphr/models/push_message'
|
|
159
159
|
require 'zyphr/models/push_message_detail'
|
|
160
|
-
require 'zyphr/models/
|
|
160
|
+
require 'zyphr/models/push_message_detail_all_of_action_buttons'
|
|
161
161
|
require 'zyphr/models/push_stats_data'
|
|
162
162
|
require 'zyphr/models/push_stats_response'
|
|
163
163
|
require 'zyphr/models/push_topic_device'
|
|
@@ -203,6 +203,7 @@ require 'zyphr/models/send_in_app_meta'
|
|
|
203
203
|
require 'zyphr/models/send_in_app_request'
|
|
204
204
|
require 'zyphr/models/send_in_app_response'
|
|
205
205
|
require 'zyphr/models/send_push_request'
|
|
206
|
+
require 'zyphr/models/send_push_request_action_buttons_inner'
|
|
206
207
|
require 'zyphr/models/send_push_response'
|
|
207
208
|
require 'zyphr/models/send_push_response_data'
|
|
208
209
|
require 'zyphr/models/send_push_to_topic_data'
|
|
@@ -309,6 +310,7 @@ require 'zyphr/models/web_authn_verify_registration_request'
|
|
|
309
310
|
require 'zyphr/models/web_authn_verify_registration_response'
|
|
310
311
|
require 'zyphr/models/web_authn_verify_registration_response_data'
|
|
311
312
|
require 'zyphr/models/webhook'
|
|
313
|
+
require 'zyphr/models/webhook_account_metrics_response'
|
|
312
314
|
require 'zyphr/models/webhook_bulk_retry_response'
|
|
313
315
|
require 'zyphr/models/webhook_circuit_state'
|
|
314
316
|
require 'zyphr/models/webhook_circuit_state_response'
|
|
@@ -343,7 +345,6 @@ require 'zyphr/models/webhook_usage_response'
|
|
|
343
345
|
require 'zyphr/models/webhook_version'
|
|
344
346
|
require 'zyphr/models/webhook_versions_response'
|
|
345
347
|
require 'zyphr/models/webhook_versions_response_data'
|
|
346
|
-
require 'zyphr/models/webhook_workspace_metrics_response'
|
|
347
348
|
require 'zyphr/models/withdraw_subscriber_consent_request'
|
|
348
349
|
|
|
349
350
|
# APIs
|
|
@@ -70,7 +70,7 @@ describe 'DevicesApi' do
|
|
|
70
70
|
|
|
71
71
|
# unit tests for get_device_stats
|
|
72
72
|
# Get device statistics
|
|
73
|
-
# Get aggregated device statistics for the
|
|
73
|
+
# Get aggregated device statistics for the account.
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
75
|
# @return [DeviceStatsResponse]
|
|
76
76
|
describe 'get_device_stats test' do
|
|
@@ -81,7 +81,7 @@ describe 'DevicesApi' do
|
|
|
81
81
|
|
|
82
82
|
# unit tests for list_devices
|
|
83
83
|
# List devices
|
|
84
|
-
# List registered devices for the
|
|
84
|
+
# List registered devices for the account with optional filtering.
|
|
85
85
|
# @param [Hash] opts the optional parameters
|
|
86
86
|
# @option opts [String] :user_id Filter by subscriber/user ID
|
|
87
87
|
# @option opts [String] :platform
|
data/spec/api/push_api_spec.rb
CHANGED
|
@@ -46,7 +46,7 @@ describe 'PushApi' do
|
|
|
46
46
|
|
|
47
47
|
# unit tests for get_push_stats
|
|
48
48
|
# Get push notification statistics
|
|
49
|
-
# Get aggregated push notification statistics for the
|
|
49
|
+
# Get aggregated push notification statistics for the account.
|
|
50
50
|
# @param [Hash] opts the optional parameters
|
|
51
51
|
# @return [PushStatsResponse]
|
|
52
52
|
describe 'get_push_stats test' do
|
|
@@ -69,7 +69,7 @@ describe 'PushApi' do
|
|
|
69
69
|
|
|
70
70
|
# unit tests for list_push
|
|
71
71
|
# List push notifications
|
|
72
|
-
# List push notification messages for the
|
|
72
|
+
# List push notification messages for the account with optional filtering.
|
|
73
73
|
# @param [Hash] opts the optional parameters
|
|
74
74
|
# @option opts [String] :user_id Filter by subscriber/user ID
|
|
75
75
|
# @option opts [String] :device_id Filter by device ID
|
data/spec/api/sms_api_spec.rb
CHANGED
|
@@ -34,7 +34,7 @@ describe 'SMSApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for delete_sms_config
|
|
36
36
|
# Delete SMS configuration
|
|
37
|
-
# Remove the SMS provider configuration for the
|
|
37
|
+
# Remove the SMS provider configuration for the account.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @return [SmsConfigDeleteResponse]
|
|
40
40
|
describe 'delete_sms_config test' do
|
|
@@ -57,7 +57,7 @@ describe 'SMSApi' do
|
|
|
57
57
|
|
|
58
58
|
# unit tests for get_sms_config
|
|
59
59
|
# Get SMS configuration
|
|
60
|
-
# Get the current SMS provider configuration for the
|
|
60
|
+
# Get the current SMS provider configuration for the account.
|
|
61
61
|
# @param [Hash] opts the optional parameters
|
|
62
62
|
# @return [SmsConfigResponse]
|
|
63
63
|
describe 'get_sms_config test' do
|
|
@@ -68,7 +68,7 @@ describe 'SMSApi' do
|
|
|
68
68
|
|
|
69
69
|
# unit tests for list_sms
|
|
70
70
|
# List SMS messages
|
|
71
|
-
# List SMS messages for the
|
|
71
|
+
# List SMS messages for the account with optional filtering and pagination.
|
|
72
72
|
# @param [Hash] opts the optional parameters
|
|
73
73
|
# @option opts [Integer] :page
|
|
74
74
|
# @option opts [Integer] :per_page
|
|
@@ -119,7 +119,7 @@ describe 'SMSApi' do
|
|
|
119
119
|
|
|
120
120
|
# unit tests for upsert_sms_config
|
|
121
121
|
# Create or update SMS configuration
|
|
122
|
-
# Set up or update the SMS provider configuration (Twilio) for the
|
|
122
|
+
# Set up or update the SMS provider configuration (Twilio) for the account. Automatically verifies credentials.
|
|
123
123
|
# @param upsert_sms_config_request
|
|
124
124
|
# @param [Hash] opts the optional parameters
|
|
125
125
|
# @return [SmsConfigResponse]
|
|
@@ -34,7 +34,7 @@ describe 'TemplatesApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for create_template
|
|
36
36
|
# Create template
|
|
37
|
-
# Create a new email template. Name must be unique within the
|
|
37
|
+
# Create a new email template. Name must be unique within the account.
|
|
38
38
|
# @param create_template_request
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
40
|
# @return [TemplateResponse]
|
|
@@ -70,7 +70,7 @@ describe 'TemplatesApi' do
|
|
|
70
70
|
|
|
71
71
|
# unit tests for list_templates
|
|
72
72
|
# List templates
|
|
73
|
-
# List templates for the
|
|
73
|
+
# List templates for the account with optional pagination.
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
75
|
# @option opts [Integer] :limit
|
|
76
76
|
# @option opts [Integer] :offset
|
data/spec/api/topics_api_spec.rb
CHANGED
|
@@ -83,7 +83,7 @@ describe 'TopicsApi' do
|
|
|
83
83
|
|
|
84
84
|
# unit tests for get_topic_stats
|
|
85
85
|
# Get topic statistics
|
|
86
|
-
# Get aggregate statistics for all topics in the
|
|
86
|
+
# Get aggregate statistics for all topics in the account.
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
|
88
88
|
# @return [TopicStatsResponse]
|
|
89
89
|
describe 'get_topic_stats test' do
|
|
@@ -108,7 +108,7 @@ describe 'TopicsApi' do
|
|
|
108
108
|
|
|
109
109
|
# unit tests for list_topics
|
|
110
110
|
# List topics
|
|
111
|
-
# List all topics for the
|
|
111
|
+
# List all topics for the account with pagination and optional search.
|
|
112
112
|
# @param [Hash] opts the optional parameters
|
|
113
113
|
# @option opts [Integer] :page Page number
|
|
114
114
|
# @option opts [Integer] :per_page Items per page (max 100)
|
|
@@ -82,7 +82,7 @@ describe 'WaaSApplicationsApi' do
|
|
|
82
82
|
|
|
83
83
|
# unit tests for list_waa_s_applications
|
|
84
84
|
# List WaaS applications
|
|
85
|
-
# List all Webhooks-as-a-Service applications in the
|
|
85
|
+
# List all Webhooks-as-a-Service applications in the account.
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
87
|
# @option opts [Integer] :limit
|
|
88
88
|
# @option opts [Integer] :offset
|
|
@@ -81,6 +81,17 @@ describe 'WebhooksApi' do
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
# unit tests for get_account_webhook_metrics
|
|
85
|
+
# Get account webhook metrics
|
|
86
|
+
# Get aggregate webhook health and performance metrics for the entire account.
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @return [WebhookAccountMetricsResponse]
|
|
89
|
+
describe 'get_account_webhook_metrics test' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
84
95
|
# unit tests for get_webhook
|
|
85
96
|
# Get webhook
|
|
86
97
|
# Get a specific webhook by ID.
|
|
@@ -175,17 +186,6 @@ describe 'WebhooksApi' do
|
|
|
175
186
|
end
|
|
176
187
|
end
|
|
177
188
|
|
|
178
|
-
# unit tests for get_workspace_webhook_metrics
|
|
179
|
-
# Get workspace webhook metrics
|
|
180
|
-
# Get aggregate webhook health and performance metrics for the entire workspace.
|
|
181
|
-
# @param [Hash] opts the optional parameters
|
|
182
|
-
# @return [WebhookWorkspaceMetricsResponse]
|
|
183
|
-
describe 'get_workspace_webhook_metrics test' do
|
|
184
|
-
it 'should work' do
|
|
185
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
186
|
-
end
|
|
187
|
-
end
|
|
188
|
-
|
|
189
189
|
# unit tests for list_webhook_deliveries
|
|
190
190
|
# List webhook deliveries
|
|
191
191
|
# List delivery attempts for a webhook with filtering and pagination.
|
|
@@ -230,7 +230,7 @@ describe 'WebhooksApi' do
|
|
|
230
230
|
|
|
231
231
|
# unit tests for list_webhooks
|
|
232
232
|
# List webhooks
|
|
233
|
-
# List all webhooks for the
|
|
233
|
+
# List all webhooks for the account with pagination.
|
|
234
234
|
# @param [Hash] opts the optional parameters
|
|
235
235
|
# @option opts [Integer] :limit Maximum number of webhooks to return
|
|
236
236
|
# @option opts [Integer] :offset Number of webhooks to skip
|
|
@@ -33,7 +33,13 @@ describe Zyphr::Category do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
describe 'test attribute "
|
|
36
|
+
describe 'test attribute "account_id"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "project_id"' do
|
|
37
43
|
it 'should work' do
|
|
38
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
45
|
end
|
data/spec/models/device_spec.rb
CHANGED
|
@@ -33,7 +33,7 @@ describe Zyphr::Device do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
describe 'test attribute "
|
|
36
|
+
describe 'test attribute "user_id"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
39
|
end
|
|
@@ -49,41 +49,31 @@ describe Zyphr::Device do
|
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
-
describe 'test attribute "
|
|
52
|
+
describe 'test attribute "token"' do
|
|
53
53
|
it 'should work' do
|
|
54
54
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
-
describe 'test attribute "
|
|
58
|
+
describe 'test attribute "metadata"' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
-
describe 'test attribute "
|
|
64
|
+
describe 'test attribute "last_active_at"' do
|
|
65
65
|
it 'should work' do
|
|
66
66
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
describe 'test attribute "status"' do
|
|
71
|
-
it 'should work' do
|
|
72
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active", "inactive"])
|
|
74
|
-
# validator.allowable_values.each do |value|
|
|
75
|
-
# expect { instance.status = value }.not_to raise_error
|
|
76
|
-
# end
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
|
|
80
70
|
describe 'test attribute "created_at"' do
|
|
81
71
|
it 'should work' do
|
|
82
72
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
83
73
|
end
|
|
84
74
|
end
|
|
85
75
|
|
|
86
|
-
describe 'test attribute "
|
|
76
|
+
describe 'test attribute "updated_at"' do
|
|
87
77
|
it 'should work' do
|
|
88
78
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
89
79
|
end
|