zyphr 0.1.4 → 0.1.8
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 +2 -1
- data/docs/Device.md +10 -12
- data/docs/DeviceStats.md +3 -1
- data/docs/DevicesApi.md +1 -1
- data/docs/PushApi.md +1 -1
- 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/SendPushRequest.md +35 -15
- data/docs/SendPushRequestActionButtonsInner.md +24 -0
- 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.rb +2 -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/zyphr.gemspec +1 -1
- metadata +325 -321
- data/docs/PushPayload.md +0 -32
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zyphr API
|
|
3
|
+
|
|
4
|
+
#Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: support@zyphr.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.12.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zyphr::SendPushRequestActionButtonsInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zyphr::SendPushRequestActionButtonsInner do
|
|
21
|
+
let(:instance) { Zyphr::SendPushRequestActionButtonsInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SendPushRequestActionButtonsInner' do
|
|
24
|
+
it 'should create an instance of SendPushRequestActionButtonsInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zyphr::SendPushRequestActionButtonsInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "title"' 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 "action"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "deep_link"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
end
|
|
@@ -27,47 +27,73 @@ describe Zyphr::SendPushRequest do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
describe 'test attribute "user_id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
30
36
|
describe 'test attribute "device_id"' do
|
|
31
37
|
it 'should work' do
|
|
32
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
39
|
end
|
|
34
40
|
end
|
|
35
41
|
|
|
36
|
-
describe 'test attribute "
|
|
42
|
+
describe 'test attribute "title"' 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
|
|
40
46
|
end
|
|
41
47
|
|
|
42
|
-
describe 'test attribute "
|
|
48
|
+
describe 'test attribute "body"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "data"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "badge"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "sound"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'test attribute "image_url"' do
|
|
43
73
|
it 'should work' do
|
|
44
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
75
|
end
|
|
46
76
|
end
|
|
47
77
|
|
|
48
|
-
describe 'test attribute "
|
|
78
|
+
describe 'test attribute "content_available"' do
|
|
49
79
|
it 'should work' do
|
|
50
80
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
81
|
end
|
|
52
82
|
end
|
|
53
83
|
|
|
54
|
-
describe 'test attribute "
|
|
84
|
+
describe 'test attribute "action_buttons"' do
|
|
55
85
|
it 'should work' do
|
|
56
86
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
87
|
end
|
|
58
88
|
end
|
|
59
89
|
|
|
60
|
-
describe 'test attribute "
|
|
90
|
+
describe 'test attribute "tags"' do
|
|
61
91
|
it 'should work' do
|
|
62
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["low", "normal", "high", "urgent"])
|
|
64
|
-
# validator.allowable_values.each do |value|
|
|
65
|
-
# expect { instance.priority = value }.not_to raise_error
|
|
66
|
-
# end
|
|
67
93
|
end
|
|
68
94
|
end
|
|
69
95
|
|
|
70
|
-
describe 'test attribute "
|
|
96
|
+
describe 'test attribute "metadata"' do
|
|
71
97
|
it 'should work' do
|
|
72
98
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
99
|
end
|
|
@@ -79,7 +105,37 @@ describe Zyphr::SendPushRequest do
|
|
|
79
105
|
end
|
|
80
106
|
end
|
|
81
107
|
|
|
82
|
-
describe 'test attribute "
|
|
108
|
+
describe 'test attribute "subscriber_id"' do
|
|
109
|
+
it 'should work' do
|
|
110
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
describe 'test attribute "subscriber_external_id"' do
|
|
115
|
+
it 'should work' do
|
|
116
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
describe 'test attribute "category"' do
|
|
121
|
+
it 'should work' do
|
|
122
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
describe 'test attribute "force"' do
|
|
127
|
+
it 'should work' do
|
|
128
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
describe 'test attribute "send_at"' do
|
|
133
|
+
it 'should work' do
|
|
134
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
describe 'test attribute "delay"' do
|
|
83
139
|
it 'should work' do
|
|
84
140
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
85
141
|
end
|