onesignal 5.13.0 → 5.14.0
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/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/docs/BasicNotification.md +5 -1
- data/docs/BasicNotificationAllOf.md +5 -1
- data/docs/EmailWarmUp.md +24 -0
- data/docs/EmailWarmUpRequest.md +20 -0
- data/docs/EmailWarmUpStage.md +24 -0
- data/docs/Notification.md +5 -1
- data/docs/NotificationWithMeta.md +5 -1
- data/docs/NotificationWithMetaAllOf.md +3 -1
- data/lib/onesignal/api_client.rb +1 -1
- data/lib/onesignal/models/basic_notification.rb +35 -2
- data/lib/onesignal/models/basic_notification_all_of.rb +35 -2
- data/lib/onesignal/models/email_warm_up.rb +298 -0
- data/lib/onesignal/models/email_warm_up_request.rb +272 -0
- data/lib/onesignal/models/email_warm_up_stage.rb +284 -0
- data/lib/onesignal/models/notification.rb +35 -2
- data/lib/onesignal/models/notification_with_meta.rb +34 -2
- data/lib/onesignal/models/notification_with_meta_all_of.rb +14 -5
- data/lib/onesignal/version.rb +1 -1
- data/lib/onesignal.rb +3 -0
- data/spec/models/basic_notification_all_of_spec.rb +16 -0
- data/spec/models/basic_notification_spec.rb +16 -0
- data/spec/models/email_warm_up_request_spec.rb +43 -0
- data/spec/models/email_warm_up_spec.rb +59 -0
- data/spec/models/email_warm_up_stage_spec.rb +51 -0
- data/spec/models/notification_spec.rb +16 -0
- data/spec/models/notification_with_meta_all_of_spec.rb +6 -0
- data/spec/models/notification_with_meta_spec.rb +16 -0
- metadata +14 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::EmailWarmUpRequest
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::EmailWarmUpRequest do
|
|
20
|
+
let(:instance) { OneSignal::EmailWarmUpRequest.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of EmailWarmUpRequest' do
|
|
23
|
+
it 'should create an instance of EmailWarmUpRequest' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::EmailWarmUpRequest)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "stages"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "strategy"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["recommended", "custom"])
|
|
37
|
+
# validator.allowable_values.each do |value|
|
|
38
|
+
# expect { instance.strategy = value }.not_to raise_error
|
|
39
|
+
# end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::EmailWarmUp
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::EmailWarmUp do
|
|
20
|
+
let(:instance) { OneSignal::EmailWarmUp.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of EmailWarmUp' do
|
|
23
|
+
it 'should create an instance of EmailWarmUp' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::EmailWarmUp)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "stages"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "strategy"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["recommended", "custom"])
|
|
37
|
+
# validator.allowable_values.each do |value|
|
|
38
|
+
# expect { instance.strategy = value }.not_to raise_error
|
|
39
|
+
# end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
describe 'test attribute "status"' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
46
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["initializing", "draft", "active", "finished", "canceled"])
|
|
47
|
+
# validator.allowable_values.each do |value|
|
|
48
|
+
# expect { instance.status = value }.not_to raise_error
|
|
49
|
+
# end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "is_live"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::EmailWarmUpStage
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::EmailWarmUpStage do
|
|
20
|
+
let(:instance) { OneSignal::EmailWarmUpStage.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of EmailWarmUpStage' do
|
|
23
|
+
it 'should create an instance of EmailWarmUpStage' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::EmailWarmUpStage)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "start"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "_end"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe 'test attribute "quota"' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "acked"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
end
|
|
@@ -686,6 +686,22 @@ describe OneSignal::Notification do
|
|
|
686
686
|
end
|
|
687
687
|
end
|
|
688
688
|
|
|
689
|
+
describe 'test attribute "kind"' do
|
|
690
|
+
it 'should work' do
|
|
691
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
692
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["warmup"])
|
|
693
|
+
# validator.allowable_values.each do |value|
|
|
694
|
+
# expect { instance.kind = value }.not_to raise_error
|
|
695
|
+
# end
|
|
696
|
+
end
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
describe 'test attribute "email_warm_up"' do
|
|
700
|
+
it 'should work' do
|
|
701
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
702
|
+
end
|
|
703
|
+
end
|
|
704
|
+
|
|
689
705
|
describe 'test attribute "sms_from"' do
|
|
690
706
|
it 'should work' do
|
|
691
707
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -108,4 +108,10 @@ describe OneSignal::NotificationWithMetaAllOf do
|
|
|
108
108
|
end
|
|
109
109
|
end
|
|
110
110
|
|
|
111
|
+
describe 'test attribute "email_warm_up"' do
|
|
112
|
+
it 'should work' do
|
|
113
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
111
117
|
end
|
|
@@ -686,6 +686,22 @@ describe OneSignal::NotificationWithMeta do
|
|
|
686
686
|
end
|
|
687
687
|
end
|
|
688
688
|
|
|
689
|
+
describe 'test attribute "kind"' do
|
|
690
|
+
it 'should work' do
|
|
691
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
692
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["warmup"])
|
|
693
|
+
# validator.allowable_values.each do |value|
|
|
694
|
+
# expect { instance.kind = value }.not_to raise_error
|
|
695
|
+
# end
|
|
696
|
+
end
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
describe 'test attribute "email_warm_up"' do
|
|
700
|
+
it 'should work' do
|
|
701
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
702
|
+
end
|
|
703
|
+
end
|
|
704
|
+
|
|
689
705
|
describe 'test attribute "sms_from"' do
|
|
690
706
|
it 'should work' do
|
|
691
707
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onesignal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OneSignal
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -92,6 +92,9 @@ files:
|
|
|
92
92
|
- docs/CustomEventsRequest.md
|
|
93
93
|
- docs/DefaultApi.md
|
|
94
94
|
- docs/DeliveryData.md
|
|
95
|
+
- docs/EmailWarmUp.md
|
|
96
|
+
- docs/EmailWarmUpRequest.md
|
|
97
|
+
- docs/EmailWarmUpStage.md
|
|
95
98
|
- docs/ExportEventsSuccessResponse.md
|
|
96
99
|
- docs/ExportSubscriptionsRequestBody.md
|
|
97
100
|
- docs/ExportSubscriptionsSuccessResponse.md
|
|
@@ -200,6 +203,9 @@ files:
|
|
|
200
203
|
- lib/onesignal/models/custom_event.rb
|
|
201
204
|
- lib/onesignal/models/custom_events_request.rb
|
|
202
205
|
- lib/onesignal/models/delivery_data.rb
|
|
206
|
+
- lib/onesignal/models/email_warm_up.rb
|
|
207
|
+
- lib/onesignal/models/email_warm_up_request.rb
|
|
208
|
+
- lib/onesignal/models/email_warm_up_stage.rb
|
|
203
209
|
- lib/onesignal/models/export_events_success_response.rb
|
|
204
210
|
- lib/onesignal/models/export_subscriptions_request_body.rb
|
|
205
211
|
- lib/onesignal/models/export_subscriptions_success_response.rb
|
|
@@ -306,6 +312,9 @@ files:
|
|
|
306
312
|
- spec/models/custom_event_spec.rb
|
|
307
313
|
- spec/models/custom_events_request_spec.rb
|
|
308
314
|
- spec/models/delivery_data_spec.rb
|
|
315
|
+
- spec/models/email_warm_up_request_spec.rb
|
|
316
|
+
- spec/models/email_warm_up_spec.rb
|
|
317
|
+
- spec/models/email_warm_up_stage_spec.rb
|
|
309
318
|
- spec/models/export_events_success_response_spec.rb
|
|
310
319
|
- spec/models/export_subscriptions_request_body_spec.rb
|
|
311
320
|
- spec/models/export_subscriptions_success_response_spec.rb
|
|
@@ -2510,6 +2519,7 @@ test_files:
|
|
|
2510
2519
|
- spec/models/journey_reentry_rules_spec.rb
|
|
2511
2520
|
- spec/models/journey_wait_until_expiration_spec.rb
|
|
2512
2521
|
- spec/models/api_key_token_spec.rb
|
|
2522
|
+
- spec/models/email_warm_up_stage_spec.rb
|
|
2513
2523
|
- spec/models/journey_condition_spec.rb
|
|
2514
2524
|
- spec/models/create_user_conflict_response_errors_items_meta_spec.rb
|
|
2515
2525
|
- spec/models/user_identity_body_spec.rb
|
|
@@ -2518,6 +2528,7 @@ test_files:
|
|
|
2518
2528
|
- spec/models/properties_body_spec.rb
|
|
2519
2529
|
- spec/models/journey_early_exit_rules_spec.rb
|
|
2520
2530
|
- spec/models/create_journey_request_spec.rb
|
|
2531
|
+
- spec/models/email_warm_up_request_spec.rb
|
|
2521
2532
|
- spec/models/start_live_activity_request_spec.rb
|
|
2522
2533
|
- spec/models/create_notification_success_response_spec.rb
|
|
2523
2534
|
- spec/models/journey_spec.rb
|
|
@@ -2596,4 +2607,5 @@ test_files:
|
|
|
2596
2607
|
- spec/models/audit_log_actor_spec.rb
|
|
2597
2608
|
- spec/models/custom_event_spec.rb
|
|
2598
2609
|
- spec/models/update_template_request_spec.rb
|
|
2610
|
+
- spec/models/email_warm_up_spec.rb
|
|
2599
2611
|
- spec/spec_helper.rb
|