onesignal 1.0.0.beta1 → 2.2.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 +31 -0
- data/Gemfile.lock +74 -0
- data/LICENSE +24 -0
- data/README.md +77 -23
- data/RELEASE_INSTRUCTIONS.md +11 -0
- data/docs/App.md +9 -1
- data/docs/BasicNotification.md +230 -0
- data/docs/BasicNotificationAllOf.md +202 -0
- data/docs/{NotificationAllOfAndroidBackgroundLayout.md → BasicNotificationAllOfAndroidBackgroundLayout.md} +2 -2
- data/docs/BeginLiveActivityRequest.md +20 -0
- data/docs/CancelNotificationSuccessResponse.md +18 -0
- data/docs/CreateNotificationSuccessResponse.md +24 -0
- data/docs/{InlineResponse2004.md → CreatePlayerSuccessResponse.md} +2 -2
- data/docs/{InlineResponse409.md → CreateSegmentConflictResponse.md} +2 -2
- data/docs/CreateSegmentSuccessResponse.md +20 -0
- data/docs/CreateSubscriptionRequestBody.md +20 -0
- data/docs/CreateUserConflictResponse.md +18 -0
- data/docs/CreateUserConflictResponseErrorsInner.md +22 -0
- data/docs/CreateUserConflictResponseErrorsItemsMeta.md +18 -0
- data/docs/DefaultApi.md +1629 -304
- data/docs/DeletePlayerNotFoundResponse.md +18 -0
- data/docs/{InlineResponse2001.md → DeletePlayerSuccessResponse.md} +3 -3
- data/docs/DeleteSegmentNotFoundResponse.md +18 -0
- data/docs/DeleteSegmentSuccessResponse.md +18 -0
- data/docs/DeliveryData.md +5 -5
- data/docs/{InlineResponse2005.md → ExportEventsSuccessResponse.md} +2 -2
- data/docs/ExportPlayersRequestBody.md +2 -2
- data/docs/ExportPlayersSuccessResponse.md +18 -0
- data/docs/Filter.md +1 -1
- data/docs/FilterExpressions.md +1 -1
- data/docs/GenericError.md +18 -0
- data/docs/GenericErrorErrorsInner.md +20 -0
- data/docs/InlineResponse200.md +2 -8
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse201.md +2 -4
- data/docs/InlineResponse202.md +18 -0
- data/docs/InvalidIdentifierError.md +20 -0
- data/docs/Notification.md +33 -41
- data/docs/Notification200Errors.md +49 -0
- data/docs/NotificationAllOf.md +2 -176
- data/docs/{InlineResponse2002.md → NotificationHistorySuccessResponse.md} +3 -3
- data/docs/NotificationSlice.md +1 -1
- data/docs/NotificationTarget.md +6 -26
- data/docs/NotificationWithMeta.md +252 -0
- data/docs/NotificationWithMetaAllOf.md +38 -0
- data/docs/OutcomesData.md +18 -0
- data/docs/PlatformDeliveryData.md +5 -1
- data/docs/PlatformDeliveryDataEmailAllOf.md +30 -0
- data/docs/PlatformDeliveryDataSmsAllOf.md +22 -0
- data/docs/Player.md +3 -3
- data/docs/PlayerNotificationTarget.md +6 -2
- data/docs/PlayerNotificationTargetIncludeAliases.md +18 -0
- data/docs/PropertiesDeltas.md +22 -0
- data/docs/PropertiesObject.md +38 -0
- data/docs/Purchase.md +4 -2
- data/docs/RateLimiterError.md +18 -0
- data/docs/StringMap.md +1 -1
- data/docs/SubscriptionObject.md +50 -0
- data/docs/TransferSubscriptionRequestBody.md +18 -0
- data/docs/UpdateLiveActivityRequest.md +24 -0
- data/docs/UpdateLiveActivitySuccessResponse.md +20 -0
- data/docs/UpdatePlayerSuccessResponse.md +18 -0
- data/docs/UpdatePlayerTagsSuccessResponse.md +18 -0
- data/docs/UpdateSubscriptionRequestBody.md +18 -0
- data/docs/UpdateUserRequest.md +22 -0
- data/docs/User.md +24 -0
- data/docs/UserIdentityRequestBody.md +18 -0
- data/docs/UserIdentityResponse.md +18 -0
- data/docs/UserSubscriptionOptions.md +18 -0
- data/lib/onesignal/api/default_api.rb +1657 -268
- data/lib/onesignal/api_client.rb +9 -7
- data/lib/onesignal/api_error.rb +2 -2
- data/lib/onesignal/configuration.rb +11 -8
- data/lib/onesignal/models/app.rb +59 -8
- data/lib/onesignal/models/basic_notification.rb +1442 -0
- data/lib/onesignal/models/basic_notification_all_of.rb +1252 -0
- data/lib/onesignal/models/{notification_all_of_android_background_layout.rb → basic_notification_all_of_android_background_layout.rb} +6 -5
- data/lib/onesignal/models/begin_live_activity_request.rb +238 -0
- data/lib/onesignal/models/button.rb +3 -2
- data/lib/onesignal/models/cancel_notification_success_response.rb +219 -0
- data/lib/onesignal/models/create_notification_success_response.rb +248 -0
- data/lib/onesignal/models/{inline_response2004.rb → create_player_success_response.rb} +6 -5
- data/lib/onesignal/models/{inline_response409.rb → create_segment_conflict_response.rb} +6 -5
- data/lib/onesignal/models/create_segment_success_response.rb +229 -0
- data/lib/onesignal/models/create_subscription_request_body.rb +228 -0
- data/lib/onesignal/models/{inline_response4001.rb → create_user_conflict_response.rb} +8 -16
- data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +237 -0
- data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +219 -0
- data/lib/onesignal/models/delete_player_not_found_response.rb +219 -0
- data/lib/onesignal/models/{inline_response2001.rb → delete_player_success_response.rb} +7 -6
- data/lib/onesignal/models/delete_segment_not_found_response.rb +219 -0
- data/lib/onesignal/models/delete_segment_success_response.rb +219 -0
- data/lib/onesignal/models/delivery_data.rb +13 -2
- data/lib/onesignal/models/{inline_response2005.rb → export_events_success_response.rb} +6 -5
- data/lib/onesignal/models/export_players_request_body.rb +5 -4
- data/lib/onesignal/models/export_players_success_response.rb +219 -0
- data/lib/onesignal/models/filter.rb +4 -3
- data/lib/onesignal/models/filter_expressions.rb +4 -3
- data/lib/onesignal/models/{inline_response400.rb → generic_error.rb} +7 -6
- data/lib/onesignal/models/generic_error_errors_inner.rb +228 -0
- data/lib/onesignal/models/get_notification_request_body.rb +3 -2
- data/lib/onesignal/models/inline_response200.rb +12 -47
- data/lib/onesignal/models/inline_response2003.rb +12 -9
- data/lib/onesignal/models/inline_response201.rb +10 -19
- data/lib/onesignal/models/{inline_response4002.rb → inline_response202.rb} +13 -14
- data/lib/onesignal/models/invalid_identifier_error.rb +234 -0
- data/lib/onesignal/models/notification.rb +209 -157
- data/lib/onesignal/models/notification200_errors.rb +105 -0
- data/lib/onesignal/models/notification_all_of.rb +8 -911
- data/lib/onesignal/models/{inline_response2002.rb → notification_history_success_response.rb} +7 -6
- data/lib/onesignal/models/notification_slice.rb +4 -3
- data/lib/onesignal/models/notification_target.rb +63 -128
- data/lib/onesignal/models/notification_with_meta.rb +1557 -0
- data/lib/onesignal/models/notification_with_meta_all_of.rb +323 -0
- data/lib/onesignal/models/operator.rb +3 -2
- data/lib/onesignal/models/outcome_data.rb +3 -2
- data/lib/onesignal/models/outcomes_data.rb +221 -0
- data/lib/onesignal/models/platform_delivery_data.rb +27 -6
- data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +287 -0
- data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +243 -0
- data/lib/onesignal/models/player.rb +14 -13
- data/lib/onesignal/models/player_notification_target.rb +63 -7
- data/lib/onesignal/models/player_notification_target_include_aliases.rb +221 -0
- data/lib/onesignal/models/player_slice.rb +3 -2
- data/lib/onesignal/models/properties_deltas.rb +239 -0
- data/lib/onesignal/models/properties_object.rb +313 -0
- data/lib/onesignal/models/purchase.rb +17 -7
- data/lib/onesignal/models/rate_limiter_error.rb +221 -0
- data/lib/onesignal/models/segment.rb +3 -2
- data/lib/onesignal/models/segment_notification_target.rb +3 -2
- data/lib/onesignal/models/string_map.rb +3 -7
- data/lib/onesignal/models/{filter_notification_target.rb → subscription_object.rb} +147 -79
- data/lib/onesignal/models/transfer_subscription_request_body.rb +221 -0
- data/lib/onesignal/models/update_live_activity_request.rb +309 -0
- data/lib/onesignal/models/update_live_activity_success_response.rb +228 -0
- data/lib/onesignal/models/update_player_success_response.rb +219 -0
- data/lib/onesignal/models/update_player_tags_request_body.rb +3 -2
- data/lib/onesignal/models/update_player_tags_success_response.rb +219 -0
- data/lib/onesignal/models/update_subscription_request_body.rb +219 -0
- data/lib/onesignal/models/update_user_request.rb +239 -0
- data/lib/onesignal/models/user.rb +250 -0
- data/lib/onesignal/models/user_identity_request_body.rb +221 -0
- data/lib/onesignal/models/user_identity_response.rb +221 -0
- data/lib/onesignal/models/user_subscription_options.rb +219 -0
- data/lib/onesignal/version.rb +3 -3
- data/lib/onesignal.rb +111 -0
- data/onesignal.gemspec +5 -4
- data/spec/api/default_api_spec.rb +263 -26
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/app_spec.rb +26 -2
- data/spec/models/{notification_all_of_android_background_layout_spec.rb → basic_notification_all_of_android_background_layout_spec.rb} +8 -8
- data/spec/models/basic_notification_all_of_spec.rb +590 -0
- data/spec/models/basic_notification_spec.rb +678 -0
- data/spec/models/begin_live_activity_request_spec.rb +40 -0
- data/spec/models/button_spec.rb +2 -2
- data/spec/models/cancel_notification_success_response_spec.rb +34 -0
- data/spec/models/create_notification_success_response_spec.rb +52 -0
- data/spec/models/{inline_response2004_spec.rb → create_player_success_response_spec.rb} +8 -8
- data/spec/models/{inline_response4001_spec.rb → create_segment_conflict_response_spec.rb} +8 -8
- data/spec/models/{inline_response409_spec.rb → create_segment_success_response_spec.rb} +9 -9
- data/spec/models/create_subscription_request_body_spec.rb +40 -0
- data/spec/models/create_user_conflict_response_errors_inner_spec.rb +46 -0
- data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +34 -0
- data/spec/models/create_user_conflict_response_spec.rb +34 -0
- data/spec/models/delete_player_not_found_response_spec.rb +34 -0
- data/spec/models/{inline_response2001_spec.rb → delete_player_success_response_spec.rb} +8 -8
- data/spec/models/delete_segment_not_found_response_spec.rb +34 -0
- data/spec/models/delete_segment_success_response_spec.rb +34 -0
- data/spec/models/delivery_data_spec.rb +2 -2
- data/spec/models/{inline_response2005_spec.rb → export_events_success_response_spec.rb} +8 -8
- data/spec/models/export_players_request_body_spec.rb +2 -2
- data/spec/models/export_players_success_response_spec.rb +34 -0
- data/spec/models/filter_expressions_spec.rb +2 -2
- data/spec/models/filter_spec.rb +2 -2
- data/spec/models/generic_error_errors_inner_spec.rb +40 -0
- data/spec/models/{inline_response4002_spec.rb → generic_error_spec.rb} +9 -9
- data/spec/models/get_notification_request_body_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +3 -3
- data/spec/models/inline_response200_spec.rb +3 -21
- data/spec/models/inline_response201_spec.rb +3 -9
- data/spec/models/{inline_response400_spec.rb → inline_response202_spec.rb} +9 -9
- data/spec/models/invalid_identifier_error_spec.rb +40 -0
- data/spec/models/notification200_errors_spec.rb +31 -0
- data/spec/models/notification_all_of_spec.rb +2 -528
- data/spec/models/{inline_response2002_spec.rb → notification_history_success_response_spec.rb} +8 -8
- data/spec/models/notification_slice_spec.rb +2 -2
- data/spec/models/notification_spec.rb +58 -78
- data/spec/models/notification_target_spec.rb +18 -74
- data/spec/models/notification_with_meta_all_of_spec.rb +94 -0
- data/spec/models/notification_with_meta_spec.rb +744 -0
- data/spec/models/operator_spec.rb +2 -2
- data/spec/models/outcome_data_spec.rb +2 -2
- data/spec/models/outcomes_data_spec.rb +34 -0
- data/spec/models/platform_delivery_data_email_all_of_spec.rb +70 -0
- data/spec/models/platform_delivery_data_sms_all_of_spec.rb +46 -0
- data/spec/models/platform_delivery_data_spec.rb +14 -2
- data/spec/models/player_notification_target_include_aliases_spec.rb +34 -0
- data/spec/models/player_notification_target_spec.rb +18 -2
- data/spec/models/player_slice_spec.rb +2 -2
- data/spec/models/player_spec.rb +2 -2
- data/spec/models/properties_deltas_spec.rb +46 -0
- data/spec/models/{filter_notification_target_spec.rb → properties_object_spec.rb} +19 -25
- data/spec/models/purchase_spec.rb +8 -2
- data/spec/models/rate_limiter_error_spec.rb +34 -0
- data/spec/models/segment_notification_target_spec.rb +2 -2
- data/spec/models/segment_spec.rb +2 -2
- data/spec/models/string_map_spec.rb +2 -2
- data/spec/models/subscription_object_spec.rb +134 -0
- data/spec/models/transfer_subscription_request_body_spec.rb +34 -0
- data/spec/models/update_live_activity_request_spec.rb +60 -0
- data/spec/models/update_live_activity_success_response_spec.rb +40 -0
- data/spec/models/update_player_success_response_spec.rb +34 -0
- data/spec/models/update_player_tags_request_body_spec.rb +2 -2
- data/spec/models/update_player_tags_success_response_spec.rb +34 -0
- data/spec/models/update_subscription_request_body_spec.rb +34 -0
- data/spec/models/update_user_request_spec.rb +46 -0
- data/spec/models/user_identity_request_body_spec.rb +34 -0
- data/spec/models/user_identity_response_spec.rb +34 -0
- data/spec/models/user_spec.rb +52 -0
- data/spec/models/user_subscription_options_spec.rb +34 -0
- data/spec/spec_helper.rb +2 -2
- metadata +198 -51
- data/docs/FilterNotificationTarget.md +0 -40
- data/docs/InlineResponse400.md +0 -18
- data/docs/InlineResponse4001.md +0 -20
- data/docs/InlineResponse4002.md +0 -18
- data/git_push.sh +0 -58
- data/lib/OneSignal.rb +0 -75
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:
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OneSignal
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -57,132 +57,243 @@ executables: []
|
|
57
57
|
extensions: []
|
58
58
|
extra_rdoc_files: []
|
59
59
|
files:
|
60
|
+
- CHANGELOG.md
|
60
61
|
- Gemfile
|
62
|
+
- Gemfile.lock
|
63
|
+
- LICENSE
|
61
64
|
- README.md
|
65
|
+
- RELEASE_INSTRUCTIONS.md
|
62
66
|
- Rakefile
|
63
67
|
- docs/App.md
|
68
|
+
- docs/BasicNotification.md
|
69
|
+
- docs/BasicNotificationAllOf.md
|
70
|
+
- docs/BasicNotificationAllOfAndroidBackgroundLayout.md
|
71
|
+
- docs/BeginLiveActivityRequest.md
|
64
72
|
- docs/Button.md
|
73
|
+
- docs/CancelNotificationSuccessResponse.md
|
74
|
+
- docs/CreateNotificationSuccessResponse.md
|
75
|
+
- docs/CreatePlayerSuccessResponse.md
|
76
|
+
- docs/CreateSegmentConflictResponse.md
|
77
|
+
- docs/CreateSegmentSuccessResponse.md
|
78
|
+
- docs/CreateSubscriptionRequestBody.md
|
79
|
+
- docs/CreateUserConflictResponse.md
|
80
|
+
- docs/CreateUserConflictResponseErrorsInner.md
|
81
|
+
- docs/CreateUserConflictResponseErrorsItemsMeta.md
|
65
82
|
- docs/DefaultApi.md
|
83
|
+
- docs/DeletePlayerNotFoundResponse.md
|
84
|
+
- docs/DeletePlayerSuccessResponse.md
|
85
|
+
- docs/DeleteSegmentNotFoundResponse.md
|
86
|
+
- docs/DeleteSegmentSuccessResponse.md
|
66
87
|
- docs/DeliveryData.md
|
88
|
+
- docs/ExportEventsSuccessResponse.md
|
67
89
|
- docs/ExportPlayersRequestBody.md
|
90
|
+
- docs/ExportPlayersSuccessResponse.md
|
68
91
|
- docs/Filter.md
|
69
92
|
- docs/FilterExpressions.md
|
70
|
-
- docs/
|
93
|
+
- docs/GenericError.md
|
94
|
+
- docs/GenericErrorErrorsInner.md
|
71
95
|
- docs/GetNotificationRequestBody.md
|
72
96
|
- docs/InlineResponse200.md
|
73
|
-
- docs/InlineResponse2001.md
|
74
|
-
- docs/InlineResponse2002.md
|
75
97
|
- docs/InlineResponse2003.md
|
76
|
-
- docs/InlineResponse2004.md
|
77
|
-
- docs/InlineResponse2005.md
|
78
98
|
- docs/InlineResponse201.md
|
79
|
-
- docs/
|
80
|
-
- docs/
|
81
|
-
- docs/InlineResponse4002.md
|
82
|
-
- docs/InlineResponse409.md
|
99
|
+
- docs/InlineResponse202.md
|
100
|
+
- docs/InvalidIdentifierError.md
|
83
101
|
- docs/Notification.md
|
102
|
+
- docs/Notification200Errors.md
|
84
103
|
- docs/NotificationAllOf.md
|
85
|
-
- docs/
|
104
|
+
- docs/NotificationHistorySuccessResponse.md
|
86
105
|
- docs/NotificationSlice.md
|
87
106
|
- docs/NotificationTarget.md
|
107
|
+
- docs/NotificationWithMeta.md
|
108
|
+
- docs/NotificationWithMetaAllOf.md
|
88
109
|
- docs/Operator.md
|
89
110
|
- docs/OutcomeData.md
|
111
|
+
- docs/OutcomesData.md
|
90
112
|
- docs/PlatformDeliveryData.md
|
113
|
+
- docs/PlatformDeliveryDataEmailAllOf.md
|
114
|
+
- docs/PlatformDeliveryDataSmsAllOf.md
|
91
115
|
- docs/Player.md
|
92
116
|
- docs/PlayerNotificationTarget.md
|
117
|
+
- docs/PlayerNotificationTargetIncludeAliases.md
|
93
118
|
- docs/PlayerSlice.md
|
119
|
+
- docs/PropertiesDeltas.md
|
120
|
+
- docs/PropertiesObject.md
|
94
121
|
- docs/Purchase.md
|
122
|
+
- docs/RateLimiterError.md
|
95
123
|
- docs/Segment.md
|
96
124
|
- docs/SegmentNotificationTarget.md
|
97
125
|
- docs/StringMap.md
|
126
|
+
- docs/SubscriptionObject.md
|
127
|
+
- docs/TransferSubscriptionRequestBody.md
|
128
|
+
- docs/UpdateLiveActivityRequest.md
|
129
|
+
- docs/UpdateLiveActivitySuccessResponse.md
|
130
|
+
- docs/UpdatePlayerSuccessResponse.md
|
98
131
|
- docs/UpdatePlayerTagsRequestBody.md
|
99
|
-
-
|
100
|
-
-
|
132
|
+
- docs/UpdatePlayerTagsSuccessResponse.md
|
133
|
+
- docs/UpdateSubscriptionRequestBody.md
|
134
|
+
- docs/UpdateUserRequest.md
|
135
|
+
- docs/User.md
|
136
|
+
- docs/UserIdentityRequestBody.md
|
137
|
+
- docs/UserIdentityResponse.md
|
138
|
+
- docs/UserSubscriptionOptions.md
|
139
|
+
- lib/onesignal.rb
|
101
140
|
- lib/onesignal/api/default_api.rb
|
102
141
|
- lib/onesignal/api_client.rb
|
103
142
|
- lib/onesignal/api_error.rb
|
104
143
|
- lib/onesignal/configuration.rb
|
105
144
|
- lib/onesignal/models/app.rb
|
145
|
+
- lib/onesignal/models/basic_notification.rb
|
146
|
+
- lib/onesignal/models/basic_notification_all_of.rb
|
147
|
+
- lib/onesignal/models/basic_notification_all_of_android_background_layout.rb
|
148
|
+
- lib/onesignal/models/begin_live_activity_request.rb
|
106
149
|
- lib/onesignal/models/button.rb
|
150
|
+
- lib/onesignal/models/cancel_notification_success_response.rb
|
151
|
+
- lib/onesignal/models/create_notification_success_response.rb
|
152
|
+
- lib/onesignal/models/create_player_success_response.rb
|
153
|
+
- lib/onesignal/models/create_segment_conflict_response.rb
|
154
|
+
- lib/onesignal/models/create_segment_success_response.rb
|
155
|
+
- lib/onesignal/models/create_subscription_request_body.rb
|
156
|
+
- lib/onesignal/models/create_user_conflict_response.rb
|
157
|
+
- lib/onesignal/models/create_user_conflict_response_errors_inner.rb
|
158
|
+
- lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb
|
159
|
+
- lib/onesignal/models/delete_player_not_found_response.rb
|
160
|
+
- lib/onesignal/models/delete_player_success_response.rb
|
161
|
+
- lib/onesignal/models/delete_segment_not_found_response.rb
|
162
|
+
- lib/onesignal/models/delete_segment_success_response.rb
|
107
163
|
- lib/onesignal/models/delivery_data.rb
|
164
|
+
- lib/onesignal/models/export_events_success_response.rb
|
108
165
|
- lib/onesignal/models/export_players_request_body.rb
|
166
|
+
- lib/onesignal/models/export_players_success_response.rb
|
109
167
|
- lib/onesignal/models/filter.rb
|
110
168
|
- lib/onesignal/models/filter_expressions.rb
|
111
|
-
- lib/onesignal/models/
|
169
|
+
- lib/onesignal/models/generic_error.rb
|
170
|
+
- lib/onesignal/models/generic_error_errors_inner.rb
|
112
171
|
- lib/onesignal/models/get_notification_request_body.rb
|
113
172
|
- lib/onesignal/models/inline_response200.rb
|
114
|
-
- lib/onesignal/models/inline_response2001.rb
|
115
|
-
- lib/onesignal/models/inline_response2002.rb
|
116
173
|
- lib/onesignal/models/inline_response2003.rb
|
117
|
-
- lib/onesignal/models/inline_response2004.rb
|
118
|
-
- lib/onesignal/models/inline_response2005.rb
|
119
174
|
- lib/onesignal/models/inline_response201.rb
|
120
|
-
- lib/onesignal/models/
|
121
|
-
- lib/onesignal/models/
|
122
|
-
- lib/onesignal/models/inline_response4002.rb
|
123
|
-
- lib/onesignal/models/inline_response409.rb
|
175
|
+
- lib/onesignal/models/inline_response202.rb
|
176
|
+
- lib/onesignal/models/invalid_identifier_error.rb
|
124
177
|
- lib/onesignal/models/notification.rb
|
178
|
+
- lib/onesignal/models/notification200_errors.rb
|
125
179
|
- lib/onesignal/models/notification_all_of.rb
|
126
|
-
- lib/onesignal/models/
|
180
|
+
- lib/onesignal/models/notification_history_success_response.rb
|
127
181
|
- lib/onesignal/models/notification_slice.rb
|
128
182
|
- lib/onesignal/models/notification_target.rb
|
183
|
+
- lib/onesignal/models/notification_with_meta.rb
|
184
|
+
- lib/onesignal/models/notification_with_meta_all_of.rb
|
129
185
|
- lib/onesignal/models/operator.rb
|
130
186
|
- lib/onesignal/models/outcome_data.rb
|
187
|
+
- lib/onesignal/models/outcomes_data.rb
|
131
188
|
- lib/onesignal/models/platform_delivery_data.rb
|
189
|
+
- lib/onesignal/models/platform_delivery_data_email_all_of.rb
|
190
|
+
- lib/onesignal/models/platform_delivery_data_sms_all_of.rb
|
132
191
|
- lib/onesignal/models/player.rb
|
133
192
|
- lib/onesignal/models/player_notification_target.rb
|
193
|
+
- lib/onesignal/models/player_notification_target_include_aliases.rb
|
134
194
|
- lib/onesignal/models/player_slice.rb
|
195
|
+
- lib/onesignal/models/properties_deltas.rb
|
196
|
+
- lib/onesignal/models/properties_object.rb
|
135
197
|
- lib/onesignal/models/purchase.rb
|
198
|
+
- lib/onesignal/models/rate_limiter_error.rb
|
136
199
|
- lib/onesignal/models/segment.rb
|
137
200
|
- lib/onesignal/models/segment_notification_target.rb
|
138
201
|
- lib/onesignal/models/string_map.rb
|
202
|
+
- lib/onesignal/models/subscription_object.rb
|
203
|
+
- lib/onesignal/models/transfer_subscription_request_body.rb
|
204
|
+
- lib/onesignal/models/update_live_activity_request.rb
|
205
|
+
- lib/onesignal/models/update_live_activity_success_response.rb
|
206
|
+
- lib/onesignal/models/update_player_success_response.rb
|
139
207
|
- lib/onesignal/models/update_player_tags_request_body.rb
|
208
|
+
- lib/onesignal/models/update_player_tags_success_response.rb
|
209
|
+
- lib/onesignal/models/update_subscription_request_body.rb
|
210
|
+
- lib/onesignal/models/update_user_request.rb
|
211
|
+
- lib/onesignal/models/user.rb
|
212
|
+
- lib/onesignal/models/user_identity_request_body.rb
|
213
|
+
- lib/onesignal/models/user_identity_response.rb
|
214
|
+
- lib/onesignal/models/user_subscription_options.rb
|
140
215
|
- lib/onesignal/version.rb
|
141
216
|
- onesignal.gemspec
|
142
217
|
- spec/api/default_api_spec.rb
|
143
218
|
- spec/api_client_spec.rb
|
144
219
|
- spec/configuration_spec.rb
|
145
220
|
- spec/models/app_spec.rb
|
221
|
+
- spec/models/basic_notification_all_of_android_background_layout_spec.rb
|
222
|
+
- spec/models/basic_notification_all_of_spec.rb
|
223
|
+
- spec/models/basic_notification_spec.rb
|
224
|
+
- spec/models/begin_live_activity_request_spec.rb
|
146
225
|
- spec/models/button_spec.rb
|
226
|
+
- spec/models/cancel_notification_success_response_spec.rb
|
227
|
+
- spec/models/create_notification_success_response_spec.rb
|
228
|
+
- spec/models/create_player_success_response_spec.rb
|
229
|
+
- spec/models/create_segment_conflict_response_spec.rb
|
230
|
+
- spec/models/create_segment_success_response_spec.rb
|
231
|
+
- spec/models/create_subscription_request_body_spec.rb
|
232
|
+
- spec/models/create_user_conflict_response_errors_inner_spec.rb
|
233
|
+
- spec/models/create_user_conflict_response_errors_items_meta_spec.rb
|
234
|
+
- spec/models/create_user_conflict_response_spec.rb
|
235
|
+
- spec/models/delete_player_not_found_response_spec.rb
|
236
|
+
- spec/models/delete_player_success_response_spec.rb
|
237
|
+
- spec/models/delete_segment_not_found_response_spec.rb
|
238
|
+
- spec/models/delete_segment_success_response_spec.rb
|
147
239
|
- spec/models/delivery_data_spec.rb
|
240
|
+
- spec/models/export_events_success_response_spec.rb
|
148
241
|
- spec/models/export_players_request_body_spec.rb
|
242
|
+
- spec/models/export_players_success_response_spec.rb
|
149
243
|
- spec/models/filter_expressions_spec.rb
|
150
|
-
- spec/models/filter_notification_target_spec.rb
|
151
244
|
- spec/models/filter_spec.rb
|
245
|
+
- spec/models/generic_error_errors_inner_spec.rb
|
246
|
+
- spec/models/generic_error_spec.rb
|
152
247
|
- spec/models/get_notification_request_body_spec.rb
|
153
|
-
- spec/models/inline_response2001_spec.rb
|
154
|
-
- spec/models/inline_response2002_spec.rb
|
155
248
|
- spec/models/inline_response2003_spec.rb
|
156
|
-
- spec/models/inline_response2004_spec.rb
|
157
|
-
- spec/models/inline_response2005_spec.rb
|
158
249
|
- spec/models/inline_response200_spec.rb
|
159
250
|
- spec/models/inline_response201_spec.rb
|
160
|
-
- spec/models/
|
161
|
-
- spec/models/
|
162
|
-
- spec/models/
|
163
|
-
- spec/models/inline_response409_spec.rb
|
164
|
-
- spec/models/notification_all_of_android_background_layout_spec.rb
|
251
|
+
- spec/models/inline_response202_spec.rb
|
252
|
+
- spec/models/invalid_identifier_error_spec.rb
|
253
|
+
- spec/models/notification200_errors_spec.rb
|
165
254
|
- spec/models/notification_all_of_spec.rb
|
255
|
+
- spec/models/notification_history_success_response_spec.rb
|
166
256
|
- spec/models/notification_slice_spec.rb
|
167
257
|
- spec/models/notification_spec.rb
|
168
258
|
- spec/models/notification_target_spec.rb
|
259
|
+
- spec/models/notification_with_meta_all_of_spec.rb
|
260
|
+
- spec/models/notification_with_meta_spec.rb
|
169
261
|
- spec/models/operator_spec.rb
|
170
262
|
- spec/models/outcome_data_spec.rb
|
263
|
+
- spec/models/outcomes_data_spec.rb
|
264
|
+
- spec/models/platform_delivery_data_email_all_of_spec.rb
|
265
|
+
- spec/models/platform_delivery_data_sms_all_of_spec.rb
|
171
266
|
- spec/models/platform_delivery_data_spec.rb
|
267
|
+
- spec/models/player_notification_target_include_aliases_spec.rb
|
172
268
|
- spec/models/player_notification_target_spec.rb
|
173
269
|
- spec/models/player_slice_spec.rb
|
174
270
|
- spec/models/player_spec.rb
|
271
|
+
- spec/models/properties_deltas_spec.rb
|
272
|
+
- spec/models/properties_object_spec.rb
|
175
273
|
- spec/models/purchase_spec.rb
|
274
|
+
- spec/models/rate_limiter_error_spec.rb
|
176
275
|
- spec/models/segment_notification_target_spec.rb
|
177
276
|
- spec/models/segment_spec.rb
|
178
277
|
- spec/models/string_map_spec.rb
|
278
|
+
- spec/models/subscription_object_spec.rb
|
279
|
+
- spec/models/transfer_subscription_request_body_spec.rb
|
280
|
+
- spec/models/update_live_activity_request_spec.rb
|
281
|
+
- spec/models/update_live_activity_success_response_spec.rb
|
282
|
+
- spec/models/update_player_success_response_spec.rb
|
179
283
|
- spec/models/update_player_tags_request_body_spec.rb
|
284
|
+
- spec/models/update_player_tags_success_response_spec.rb
|
285
|
+
- spec/models/update_subscription_request_body_spec.rb
|
286
|
+
- spec/models/update_user_request_spec.rb
|
287
|
+
- spec/models/user_identity_request_body_spec.rb
|
288
|
+
- spec/models/user_identity_response_spec.rb
|
289
|
+
- spec/models/user_spec.rb
|
290
|
+
- spec/models/user_subscription_options_spec.rb
|
180
291
|
- spec/spec_helper.rb
|
181
292
|
homepage: https://onesignal.com/
|
182
293
|
licenses:
|
183
|
-
- MIT
|
294
|
+
- Modified MIT
|
184
295
|
metadata: {}
|
185
|
-
post_install_message:
|
296
|
+
post_install_message:
|
186
297
|
rdoc_options: []
|
187
298
|
require_paths:
|
188
299
|
- lib
|
@@ -193,12 +304,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
193
304
|
version: '2.4'
|
194
305
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
306
|
requirements:
|
196
|
-
- - "
|
307
|
+
- - ">="
|
197
308
|
- !ruby/object:Gem::Version
|
198
|
-
version:
|
309
|
+
version: '0'
|
199
310
|
requirements: []
|
200
|
-
rubygems_version: 3.0.3
|
201
|
-
signing_key:
|
311
|
+
rubygems_version: 3.0.3.1
|
312
|
+
signing_key:
|
202
313
|
specification_version: 4
|
203
314
|
summary: OneSignal
|
204
315
|
test_files:
|
@@ -206,38 +317,74 @@ test_files:
|
|
206
317
|
- spec/api_client_spec.rb
|
207
318
|
- spec/configuration_spec.rb
|
208
319
|
- spec/models/notification_spec.rb
|
320
|
+
- spec/models/rate_limiter_error_spec.rb
|
209
321
|
- spec/models/notification_target_spec.rb
|
210
|
-
- spec/models/
|
211
|
-
- spec/models/
|
322
|
+
- spec/models/basic_notification_all_of_android_background_layout_spec.rb
|
323
|
+
- spec/models/user_identity_response_spec.rb
|
324
|
+
- spec/models/platform_delivery_data_email_all_of_spec.rb
|
325
|
+
- spec/models/generic_error_spec.rb
|
326
|
+
- spec/models/basic_notification_spec.rb
|
327
|
+
- spec/models/player_notification_target_include_aliases_spec.rb
|
212
328
|
- spec/models/get_notification_request_body_spec.rb
|
213
329
|
- spec/models/update_player_tags_request_body_spec.rb
|
330
|
+
- spec/models/update_subscription_request_body_spec.rb
|
331
|
+
- spec/models/create_user_conflict_response_spec.rb
|
332
|
+
- spec/models/update_live_activity_success_response_spec.rb
|
333
|
+
- spec/models/create_user_conflict_response_errors_items_meta_spec.rb
|
214
334
|
- spec/models/segment_spec.rb
|
215
335
|
- spec/models/delivery_data_spec.rb
|
216
336
|
- spec/models/inline_response2003_spec.rb
|
337
|
+
- spec/models/update_player_success_response_spec.rb
|
338
|
+
- spec/models/export_events_success_response_spec.rb
|
339
|
+
- spec/models/cancel_notification_success_response_spec.rb
|
340
|
+
- spec/models/properties_deltas_spec.rb
|
217
341
|
- spec/models/segment_notification_target_spec.rb
|
218
|
-
- spec/models/
|
342
|
+
- spec/models/create_segment_success_response_spec.rb
|
219
343
|
- spec/models/player_slice_spec.rb
|
344
|
+
- spec/models/notification_history_success_response_spec.rb
|
220
345
|
- spec/models/outcome_data_spec.rb
|
221
346
|
- spec/models/string_map_spec.rb
|
222
347
|
- spec/models/player_spec.rb
|
223
348
|
- spec/models/player_notification_target_spec.rb
|
224
349
|
- spec/models/filter_expressions_spec.rb
|
350
|
+
- spec/models/update_player_tags_success_response_spec.rb
|
351
|
+
- spec/models/user_subscription_options_spec.rb
|
225
352
|
- spec/models/button_spec.rb
|
226
|
-
- spec/models/
|
227
|
-
- spec/models/
|
353
|
+
- spec/models/delete_player_success_response_spec.rb
|
354
|
+
- spec/models/transfer_subscription_request_body_spec.rb
|
228
355
|
- spec/models/operator_spec.rb
|
229
|
-
- spec/models/
|
356
|
+
- spec/models/create_segment_conflict_response_spec.rb
|
357
|
+
- spec/models/create_player_success_response_spec.rb
|
358
|
+
- spec/models/export_players_success_response_spec.rb
|
230
359
|
- spec/models/export_players_request_body_spec.rb
|
231
|
-
- spec/models/
|
360
|
+
- spec/models/properties_object_spec.rb
|
361
|
+
- spec/models/notification_with_meta_spec.rb
|
232
362
|
- spec/models/notification_slice_spec.rb
|
363
|
+
- spec/models/update_user_request_spec.rb
|
364
|
+
- spec/models/delete_segment_success_response_spec.rb
|
365
|
+
- spec/models/inline_response202_spec.rb
|
233
366
|
- spec/models/notification_all_of_spec.rb
|
367
|
+
- spec/models/subscription_object_spec.rb
|
368
|
+
- spec/models/delete_segment_not_found_response_spec.rb
|
234
369
|
- spec/models/purchase_spec.rb
|
370
|
+
- spec/models/platform_delivery_data_sms_all_of_spec.rb
|
371
|
+
- spec/models/generic_error_errors_inner_spec.rb
|
235
372
|
- spec/models/app_spec.rb
|
236
|
-
- spec/models/
|
373
|
+
- spec/models/outcomes_data_spec.rb
|
374
|
+
- spec/models/user_identity_request_body_spec.rb
|
375
|
+
- spec/models/notification200_errors_spec.rb
|
237
376
|
- spec/models/inline_response200_spec.rb
|
377
|
+
- spec/models/create_notification_success_response_spec.rb
|
378
|
+
- spec/models/user_spec.rb
|
238
379
|
- spec/models/inline_response201_spec.rb
|
380
|
+
- spec/models/create_subscription_request_body_spec.rb
|
381
|
+
- spec/models/invalid_identifier_error_spec.rb
|
382
|
+
- spec/models/notification_with_meta_all_of_spec.rb
|
383
|
+
- spec/models/begin_live_activity_request_spec.rb
|
384
|
+
- spec/models/create_user_conflict_response_errors_inner_spec.rb
|
239
385
|
- spec/models/filter_spec.rb
|
240
386
|
- spec/models/platform_delivery_data_spec.rb
|
241
|
-
- spec/models/
|
242
|
-
- spec/models/
|
387
|
+
- spec/models/update_live_activity_request_spec.rb
|
388
|
+
- spec/models/basic_notification_all_of_spec.rb
|
389
|
+
- spec/models/delete_player_not_found_response_spec.rb
|
243
390
|
- spec/spec_helper.rb
|
@@ -1,40 +0,0 @@
|
|
1
|
-
# OneSignal::FilterNotificationTarget
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **last_session** | **String** | relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\" | [optional] |
|
8
|
-
| **first_session** | **String** | relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\" | [optional] |
|
9
|
-
| **session_count** | **String** | relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\" | [optional] |
|
10
|
-
| **session_time** | **String** | relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\" | [optional] |
|
11
|
-
| **amount_spent** | **String** | relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\" | [optional] |
|
12
|
-
| **bought_sku** | **String** | relation = \">\", \"<\" or \"=\" key = SKU purchased in your app as an IAP (In App Purchases). Example: \"com.domain.100coinpack\" value = value of SKU to compare to. Example: \"0.99\" | [optional] |
|
13
|
-
| **tag** | **String** | relation = \">\", \"<\", \"=\", \"!=\", \"exists\", \"not_exists\", \"time_elapsed_gt\" (paid plan only) or \"time_elapsed_lt\" (paid plan only) See Time Operators key = Tag key to compare. value = Tag value to compare. Not required for \"exists\" or \"not_exists\". Example: See Formatting Filters | [optional] |
|
14
|
-
| **language** | **String** | relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization. | [optional] |
|
15
|
-
| **app_version** | **String** | relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\" | [optional] |
|
16
|
-
| **location** | **String** | radius = in meters lat = latitude long = longitude | [optional] |
|
17
|
-
| **email** | **String** | value = email address Only for sending Push Notifications Use this for targeting push subscribers associated with an email set with all SDK setEmail methods To send emails to specific email addresses use include_email_tokens parameter | [optional] |
|
18
|
-
| **country** | **String** | relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\" | [optional] |
|
19
|
-
|
20
|
-
## Example
|
21
|
-
|
22
|
-
```ruby
|
23
|
-
require 'onesignal'
|
24
|
-
|
25
|
-
instance = OneSignal::FilterNotificationTarget.new(
|
26
|
-
last_session: null,
|
27
|
-
first_session: null,
|
28
|
-
session_count: null,
|
29
|
-
session_time: null,
|
30
|
-
amount_spent: null,
|
31
|
-
bought_sku: null,
|
32
|
-
tag: null,
|
33
|
-
language: null,
|
34
|
-
app_version: null,
|
35
|
-
location: null,
|
36
|
-
email: null,
|
37
|
-
country: null
|
38
|
-
)
|
39
|
-
```
|
40
|
-
|
data/docs/InlineResponse400.md
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# OneSignal::InlineResponse400
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **errors** | **Array<String>** | | [optional] |
|
8
|
-
|
9
|
-
## Example
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'onesignal'
|
13
|
-
|
14
|
-
instance = OneSignal::InlineResponse400.new(
|
15
|
-
errors: null
|
16
|
-
)
|
17
|
-
```
|
18
|
-
|
data/docs/InlineResponse4001.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# OneSignal::InlineResponse4001
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **success** | **String** | | [optional] |
|
8
|
-
| **errors** | **Array<String>** | | [optional] |
|
9
|
-
|
10
|
-
## Example
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'onesignal'
|
14
|
-
|
15
|
-
instance = OneSignal::InlineResponse4001.new(
|
16
|
-
success: null,
|
17
|
-
errors: null
|
18
|
-
)
|
19
|
-
```
|
20
|
-
|
data/docs/InlineResponse4002.md
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# OneSignal::InlineResponse4002
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **erorrs** | **Array<String>** | | [optional] |
|
8
|
-
|
9
|
-
## Example
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'onesignal'
|
13
|
-
|
14
|
-
instance = OneSignal::InlineResponse4002.new(
|
15
|
-
erorrs: null
|
16
|
-
)
|
17
|
-
```
|
18
|
-
|
data/git_push.sh
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
-
#
|
4
|
-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
-
|
6
|
-
git_user_id=$1
|
7
|
-
git_repo_id=$2
|
8
|
-
release_note=$3
|
9
|
-
git_host=$4
|
10
|
-
|
11
|
-
if [ "$git_host" = "" ]; then
|
12
|
-
git_host="github.com"
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
-
fi
|
15
|
-
|
16
|
-
if [ "$git_user_id" = "" ]; then
|
17
|
-
git_user_id="GIT_USER_ID"
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
-
fi
|
20
|
-
|
21
|
-
if [ "$git_repo_id" = "" ]; then
|
22
|
-
git_repo_id="GIT_REPO_ID"
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
-
fi
|
25
|
-
|
26
|
-
if [ "$release_note" = "" ]; then
|
27
|
-
release_note="Minor update"
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
-
fi
|
30
|
-
|
31
|
-
# Initialize the local directory as a Git repository
|
32
|
-
git init
|
33
|
-
|
34
|
-
# Adds the files in the local repository and stages them for commit.
|
35
|
-
git add .
|
36
|
-
|
37
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
-
git commit -m "$release_note"
|
39
|
-
|
40
|
-
# Sets the new remote
|
41
|
-
git_remote=`git remote`
|
42
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
-
|
44
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
-
else
|
48
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
-
fi
|
50
|
-
|
51
|
-
fi
|
52
|
-
|
53
|
-
git pull origin master
|
54
|
-
|
55
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
-
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
-
git push origin master 2>&1 | grep -v 'To https'
|
58
|
-
|
data/lib/OneSignal.rb
DELETED
@@ -1,75 +0,0 @@
|
|
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
|
-
The version of the OpenAPI document: 1.0.0
|
7
|
-
Contact: devrel@onesignal.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.2.0-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
# Common files
|
14
|
-
require 'onesignal/api_client'
|
15
|
-
require 'onesignal/api_error'
|
16
|
-
require 'onesignal/version'
|
17
|
-
require 'onesignal/configuration'
|
18
|
-
|
19
|
-
# Models
|
20
|
-
require 'onesignal/models/app'
|
21
|
-
require 'onesignal/models/button'
|
22
|
-
require 'onesignal/models/delivery_data'
|
23
|
-
require 'onesignal/models/export_players_request_body'
|
24
|
-
require 'onesignal/models/filter'
|
25
|
-
require 'onesignal/models/filter_expressions'
|
26
|
-
require 'onesignal/models/filter_notification_target'
|
27
|
-
require 'onesignal/models/get_notification_request_body'
|
28
|
-
require 'onesignal/models/inline_response200'
|
29
|
-
require 'onesignal/models/inline_response2001'
|
30
|
-
require 'onesignal/models/inline_response2002'
|
31
|
-
require 'onesignal/models/inline_response2003'
|
32
|
-
require 'onesignal/models/inline_response2004'
|
33
|
-
require 'onesignal/models/inline_response2005'
|
34
|
-
require 'onesignal/models/inline_response201'
|
35
|
-
require 'onesignal/models/inline_response400'
|
36
|
-
require 'onesignal/models/inline_response4001'
|
37
|
-
require 'onesignal/models/inline_response4002'
|
38
|
-
require 'onesignal/models/inline_response409'
|
39
|
-
require 'onesignal/models/notification'
|
40
|
-
require 'onesignal/models/notification_all_of'
|
41
|
-
require 'onesignal/models/notification_all_of_android_background_layout'
|
42
|
-
require 'onesignal/models/notification_slice'
|
43
|
-
require 'onesignal/models/notification_target'
|
44
|
-
require 'onesignal/models/operator'
|
45
|
-
require 'onesignal/models/outcome_data'
|
46
|
-
require 'onesignal/models/platform_delivery_data'
|
47
|
-
require 'onesignal/models/player'
|
48
|
-
require 'onesignal/models/player_notification_target'
|
49
|
-
require 'onesignal/models/player_slice'
|
50
|
-
require 'onesignal/models/purchase'
|
51
|
-
require 'onesignal/models/segment'
|
52
|
-
require 'onesignal/models/segment_notification_target'
|
53
|
-
require 'onesignal/models/string_map'
|
54
|
-
require 'onesignal/models/update_player_tags_request_body'
|
55
|
-
|
56
|
-
# APIs
|
57
|
-
require 'onesignal/api/default_api'
|
58
|
-
|
59
|
-
module OneSignal
|
60
|
-
class << self
|
61
|
-
# Customize default settings for the SDK using block.
|
62
|
-
# OneSignal.configure do |config|
|
63
|
-
# config.username = "xxx"
|
64
|
-
# config.password = "xxx"
|
65
|
-
# end
|
66
|
-
# If no block given, return the default Configuration object.
|
67
|
-
def configure
|
68
|
-
if block_given?
|
69
|
-
yield(Configuration.default)
|
70
|
-
else
|
71
|
-
Configuration.default
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|