trophy_api_client 1.0.40 → 1.1.0.pre.beta.4
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/lib/gemconfig.rb +1 -1
- data/lib/trophy_api_client/admin/client.rb +7 -0
- data/lib/trophy_api_client/admin/points/boosts/client.rb +247 -0
- data/lib/trophy_api_client/admin/points/boosts/types/create_points_boosts_request_boosts_item.rb +111 -0
- data/lib/trophy_api_client/admin/points/boosts/types/create_points_boosts_request_boosts_item_rounding.rb +16 -0
- data/lib/trophy_api_client/admin/points/client.rb +32 -0
- data/lib/trophy_api_client/leaderboards/client.rb +20 -12
- data/lib/trophy_api_client/points/client.rb +85 -2
- data/lib/trophy_api_client/types/archive_points_boosts_response.rb +56 -0
- data/lib/trophy_api_client/types/create_points_boosts_response.rb +75 -0
- data/lib/trophy_api_client/types/created_points_boost.rb +122 -0
- data/lib/trophy_api_client/types/created_points_boost_rounding.rb +10 -0
- data/lib/trophy_api_client/types/created_points_boost_status.rb +10 -0
- data/lib/trophy_api_client/types/metric_event_points_response.rb +10 -9
- data/lib/trophy_api_client/types/notification_channel.rb +9 -0
- data/lib/trophy_api_client/types/notification_preferences.rb +89 -0
- data/lib/trophy_api_client/types/notification_type.rb +11 -0
- data/lib/trophy_api_client/types/points_award.rb +15 -2
- data/lib/trophy_api_client/types/points_boost.rb +112 -0
- data/lib/trophy_api_client/types/points_boost_rounding.rb +10 -0
- data/lib/trophy_api_client/types/points_boost_status.rb +10 -0
- data/lib/trophy_api_client/types/points_boost_webhook_payload.rb +149 -0
- data/lib/trophy_api_client/types/points_boost_webhook_payload_rounding.rb +10 -0
- data/lib/trophy_api_client/types/points_boost_webhook_payload_status.rb +9 -0
- data/lib/trophy_api_client/types/user_preferences_response.rb +62 -0
- data/lib/trophy_api_client/types/webhooks_points_boost_finished_payload.rb +79 -0
- data/lib/trophy_api_client/types/webhooks_points_boost_started_payload.rb +79 -0
- data/lib/trophy_api_client/types/webhooks_points_changed_payload.rb +5 -5
- data/lib/trophy_api_client/users/client.rb +223 -0
- data/lib/trophy_api_client/version.rb +1 -1
- data/lib/types_export.rb +19 -0
- metadata +23 -2
|
@@ -4,6 +4,8 @@ require_relative "../../requests"
|
|
|
4
4
|
require_relative "../types/upserted_user"
|
|
5
5
|
require_relative "../types/user"
|
|
6
6
|
require_relative "../types/updated_user"
|
|
7
|
+
require_relative "../types/user_preferences_response"
|
|
8
|
+
require_relative "../types/notification_preferences"
|
|
7
9
|
require_relative "../types/metric_response"
|
|
8
10
|
require "json"
|
|
9
11
|
require_relative "types/users_metric_event_summary_request_aggregation"
|
|
@@ -11,6 +13,7 @@ require_relative "types/users_metric_event_summary_response_item"
|
|
|
11
13
|
require_relative "../types/user_achievement_with_stats_response"
|
|
12
14
|
require_relative "../types/streak_response"
|
|
13
15
|
require_relative "../types/get_user_points_response"
|
|
16
|
+
require_relative "../types/points_boost"
|
|
14
17
|
require_relative "types/users_points_event_summary_request_aggregation"
|
|
15
18
|
require_relative "types/users_points_event_summary_response_item"
|
|
16
19
|
require_relative "../types/user_leaderboard_response_with_history"
|
|
@@ -171,6 +174,73 @@ module TrophyApiClient
|
|
|
171
174
|
TrophyApiClient::User.from_json(json_object: response.body)
|
|
172
175
|
end
|
|
173
176
|
|
|
177
|
+
# Get a user's notification preferences.
|
|
178
|
+
#
|
|
179
|
+
# @param id [String] The user's ID in your database.
|
|
180
|
+
# @param request_options [TrophyApiClient::RequestOptions]
|
|
181
|
+
# @return [TrophyApiClient::UserPreferencesResponse]
|
|
182
|
+
# @example
|
|
183
|
+
# api = TrophyApiClient::Client.new(
|
|
184
|
+
# base_url: "https://api.example.com",
|
|
185
|
+
# environment: TrophyApiClient::Environment::PRODUCTION,
|
|
186
|
+
# api_key: "YOUR_API_KEY"
|
|
187
|
+
# )
|
|
188
|
+
# api.users.get_preferences(id: "user-123")
|
|
189
|
+
def get_preferences(id:, request_options: nil)
|
|
190
|
+
response = @request_client.conn.get do |req|
|
|
191
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
192
|
+
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
|
193
|
+
req.headers = {
|
|
194
|
+
**(req.headers || {}),
|
|
195
|
+
**@request_client.get_headers,
|
|
196
|
+
**(request_options&.additional_headers || {})
|
|
197
|
+
}.compact
|
|
198
|
+
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
199
|
+
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
200
|
+
end
|
|
201
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
202
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
203
|
+
end
|
|
204
|
+
req.url "#{@request_client.get_url(environment: api, request_options: request_options)}/users/#{id}/preferences"
|
|
205
|
+
end
|
|
206
|
+
TrophyApiClient::UserPreferencesResponse.from_json(json_object: response.body)
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Update a user's notification preferences.
|
|
210
|
+
#
|
|
211
|
+
# @param id [String] The user's ID in your database.
|
|
212
|
+
# @param notifications [Hash] Request of type TrophyApiClient::NotificationPreferences, as a Hash
|
|
213
|
+
# * :achievement_completed (Array<TrophyApiClient::NotificationChannel>)
|
|
214
|
+
# * :recap (Array<TrophyApiClient::NotificationChannel>)
|
|
215
|
+
# * :reactivation (Array<TrophyApiClient::NotificationChannel>)
|
|
216
|
+
# * :streak_reminder (Array<TrophyApiClient::NotificationChannel>)
|
|
217
|
+
# @param request_options [TrophyApiClient::RequestOptions]
|
|
218
|
+
# @return [TrophyApiClient::UserPreferencesResponse]
|
|
219
|
+
# @example
|
|
220
|
+
# api = TrophyApiClient::Client.new(
|
|
221
|
+
# base_url: "https://api.example.com",
|
|
222
|
+
# environment: TrophyApiClient::Environment::PRODUCTION,
|
|
223
|
+
# api_key: "YOUR_API_KEY"
|
|
224
|
+
# )
|
|
225
|
+
# api.users.update_preferences(id: "user-123", notifications: { streak_reminder: [EMAIL] })
|
|
226
|
+
def update_preferences(id:, notifications: nil, request_options: nil)
|
|
227
|
+
response = @request_client.conn.patch do |req|
|
|
228
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
229
|
+
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
|
230
|
+
req.headers = {
|
|
231
|
+
**(req.headers || {}),
|
|
232
|
+
**@request_client.get_headers,
|
|
233
|
+
**(request_options&.additional_headers || {})
|
|
234
|
+
}.compact
|
|
235
|
+
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
236
|
+
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
237
|
+
end
|
|
238
|
+
req.body = { **(request_options&.additional_body_parameters || {}), notifications: notifications }.compact
|
|
239
|
+
req.url "#{@request_client.get_url(environment: api, request_options: request_options)}/users/#{id}/preferences"
|
|
240
|
+
end
|
|
241
|
+
TrophyApiClient::UserPreferencesResponse.from_json(json_object: response.body)
|
|
242
|
+
end
|
|
243
|
+
|
|
174
244
|
# Get a single user's progress against all active metrics.
|
|
175
245
|
#
|
|
176
246
|
# @param id [String] ID of the user
|
|
@@ -406,6 +476,45 @@ module TrophyApiClient
|
|
|
406
476
|
TrophyApiClient::GetUserPointsResponse.from_json(json_object: response.body)
|
|
407
477
|
end
|
|
408
478
|
|
|
479
|
+
# Get active points boosts for a user in a specific points system. Returns both
|
|
480
|
+
# global boosts the user is eligible for and user-specific boosts.
|
|
481
|
+
#
|
|
482
|
+
# @param id [String] ID of the user.
|
|
483
|
+
# @param key [String] Key of the points system.
|
|
484
|
+
# @param request_options [TrophyApiClient::RequestOptions]
|
|
485
|
+
# @return [Array<TrophyApiClient::PointsBoost>]
|
|
486
|
+
# @example
|
|
487
|
+
# api = TrophyApiClient::Client.new(
|
|
488
|
+
# base_url: "https://api.example.com",
|
|
489
|
+
# environment: TrophyApiClient::Environment::PRODUCTION,
|
|
490
|
+
# api_key: "YOUR_API_KEY"
|
|
491
|
+
# )
|
|
492
|
+
# api.users.points_boosts(id: "userId", key: "points-system-key")
|
|
493
|
+
def points_boosts(id:, key:, request_options: nil)
|
|
494
|
+
response = @request_client.conn.get do |req|
|
|
495
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
496
|
+
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
|
497
|
+
req.headers = {
|
|
498
|
+
**(req.headers || {}),
|
|
499
|
+
**@request_client.get_headers,
|
|
500
|
+
**(request_options&.additional_headers || {})
|
|
501
|
+
}.compact
|
|
502
|
+
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
503
|
+
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
504
|
+
end
|
|
505
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
506
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
507
|
+
end
|
|
508
|
+
req.url "#{@request_client.get_url(environment: api,
|
|
509
|
+
request_options: request_options)}/users/#{id}/points/#{key}/boosts"
|
|
510
|
+
end
|
|
511
|
+
parsed_json = JSON.parse(response.body)
|
|
512
|
+
parsed_json&.map do |item|
|
|
513
|
+
item = item.to_json
|
|
514
|
+
TrophyApiClient::PointsBoost.from_json(json_object: item)
|
|
515
|
+
end
|
|
516
|
+
end
|
|
517
|
+
|
|
409
518
|
# Get a summary of points awards over time for a user for a specific points
|
|
410
519
|
# system.
|
|
411
520
|
#
|
|
@@ -697,6 +806,79 @@ module TrophyApiClient
|
|
|
697
806
|
end
|
|
698
807
|
end
|
|
699
808
|
|
|
809
|
+
# Get a user's notification preferences.
|
|
810
|
+
#
|
|
811
|
+
# @param id [String] The user's ID in your database.
|
|
812
|
+
# @param request_options [TrophyApiClient::RequestOptions]
|
|
813
|
+
# @return [TrophyApiClient::UserPreferencesResponse]
|
|
814
|
+
# @example
|
|
815
|
+
# api = TrophyApiClient::Client.new(
|
|
816
|
+
# base_url: "https://api.example.com",
|
|
817
|
+
# environment: TrophyApiClient::Environment::PRODUCTION,
|
|
818
|
+
# api_key: "YOUR_API_KEY"
|
|
819
|
+
# )
|
|
820
|
+
# api.users.get_preferences(id: "user-123")
|
|
821
|
+
def get_preferences(id:, request_options: nil)
|
|
822
|
+
Async do
|
|
823
|
+
response = @request_client.conn.get do |req|
|
|
824
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
825
|
+
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
|
826
|
+
req.headers = {
|
|
827
|
+
**(req.headers || {}),
|
|
828
|
+
**@request_client.get_headers,
|
|
829
|
+
**(request_options&.additional_headers || {})
|
|
830
|
+
}.compact
|
|
831
|
+
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
832
|
+
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
833
|
+
end
|
|
834
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
835
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
836
|
+
end
|
|
837
|
+
req.url "#{@request_client.get_url(environment: api,
|
|
838
|
+
request_options: request_options)}/users/#{id}/preferences"
|
|
839
|
+
end
|
|
840
|
+
TrophyApiClient::UserPreferencesResponse.from_json(json_object: response.body)
|
|
841
|
+
end
|
|
842
|
+
end
|
|
843
|
+
|
|
844
|
+
# Update a user's notification preferences.
|
|
845
|
+
#
|
|
846
|
+
# @param id [String] The user's ID in your database.
|
|
847
|
+
# @param notifications [Hash] Request of type TrophyApiClient::NotificationPreferences, as a Hash
|
|
848
|
+
# * :achievement_completed (Array<TrophyApiClient::NotificationChannel>)
|
|
849
|
+
# * :recap (Array<TrophyApiClient::NotificationChannel>)
|
|
850
|
+
# * :reactivation (Array<TrophyApiClient::NotificationChannel>)
|
|
851
|
+
# * :streak_reminder (Array<TrophyApiClient::NotificationChannel>)
|
|
852
|
+
# @param request_options [TrophyApiClient::RequestOptions]
|
|
853
|
+
# @return [TrophyApiClient::UserPreferencesResponse]
|
|
854
|
+
# @example
|
|
855
|
+
# api = TrophyApiClient::Client.new(
|
|
856
|
+
# base_url: "https://api.example.com",
|
|
857
|
+
# environment: TrophyApiClient::Environment::PRODUCTION,
|
|
858
|
+
# api_key: "YOUR_API_KEY"
|
|
859
|
+
# )
|
|
860
|
+
# api.users.update_preferences(id: "user-123", notifications: { streak_reminder: [EMAIL] })
|
|
861
|
+
def update_preferences(id:, notifications: nil, request_options: nil)
|
|
862
|
+
Async do
|
|
863
|
+
response = @request_client.conn.patch do |req|
|
|
864
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
865
|
+
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
|
866
|
+
req.headers = {
|
|
867
|
+
**(req.headers || {}),
|
|
868
|
+
**@request_client.get_headers,
|
|
869
|
+
**(request_options&.additional_headers || {})
|
|
870
|
+
}.compact
|
|
871
|
+
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
872
|
+
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
873
|
+
end
|
|
874
|
+
req.body = { **(request_options&.additional_body_parameters || {}), notifications: notifications }.compact
|
|
875
|
+
req.url "#{@request_client.get_url(environment: api,
|
|
876
|
+
request_options: request_options)}/users/#{id}/preferences"
|
|
877
|
+
end
|
|
878
|
+
TrophyApiClient::UserPreferencesResponse.from_json(json_object: response.body)
|
|
879
|
+
end
|
|
880
|
+
end
|
|
881
|
+
|
|
700
882
|
# Get a single user's progress against all active metrics.
|
|
701
883
|
#
|
|
702
884
|
# @param id [String] ID of the user
|
|
@@ -944,6 +1126,47 @@ module TrophyApiClient
|
|
|
944
1126
|
end
|
|
945
1127
|
end
|
|
946
1128
|
|
|
1129
|
+
# Get active points boosts for a user in a specific points system. Returns both
|
|
1130
|
+
# global boosts the user is eligible for and user-specific boosts.
|
|
1131
|
+
#
|
|
1132
|
+
# @param id [String] ID of the user.
|
|
1133
|
+
# @param key [String] Key of the points system.
|
|
1134
|
+
# @param request_options [TrophyApiClient::RequestOptions]
|
|
1135
|
+
# @return [Array<TrophyApiClient::PointsBoost>]
|
|
1136
|
+
# @example
|
|
1137
|
+
# api = TrophyApiClient::Client.new(
|
|
1138
|
+
# base_url: "https://api.example.com",
|
|
1139
|
+
# environment: TrophyApiClient::Environment::PRODUCTION,
|
|
1140
|
+
# api_key: "YOUR_API_KEY"
|
|
1141
|
+
# )
|
|
1142
|
+
# api.users.points_boosts(id: "userId", key: "points-system-key")
|
|
1143
|
+
def points_boosts(id:, key:, request_options: nil)
|
|
1144
|
+
Async do
|
|
1145
|
+
response = @request_client.conn.get do |req|
|
|
1146
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
1147
|
+
req.headers["X-API-KEY"] = request_options.api_key unless request_options&.api_key.nil?
|
|
1148
|
+
req.headers = {
|
|
1149
|
+
**(req.headers || {}),
|
|
1150
|
+
**@request_client.get_headers,
|
|
1151
|
+
**(request_options&.additional_headers || {})
|
|
1152
|
+
}.compact
|
|
1153
|
+
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
1154
|
+
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
1155
|
+
end
|
|
1156
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
1157
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
1158
|
+
end
|
|
1159
|
+
req.url "#{@request_client.get_url(environment: api,
|
|
1160
|
+
request_options: request_options)}/users/#{id}/points/#{key}/boosts"
|
|
1161
|
+
end
|
|
1162
|
+
parsed_json = JSON.parse(response.body)
|
|
1163
|
+
parsed_json&.map do |item|
|
|
1164
|
+
item = item.to_json
|
|
1165
|
+
TrophyApiClient::PointsBoost.from_json(json_object: item)
|
|
1166
|
+
end
|
|
1167
|
+
end
|
|
1168
|
+
end
|
|
1169
|
+
|
|
947
1170
|
# Get a summary of points awards over time for a user for a specific points
|
|
948
1171
|
# system.
|
|
949
1172
|
#
|
data/lib/types_export.rb
CHANGED
|
@@ -8,6 +8,8 @@ require_relative "trophy_api_client/streaks/types/streaks_rankings_request_type"
|
|
|
8
8
|
require_relative "trophy_api_client/leaderboards/types/leaderboards_all_response_item_status"
|
|
9
9
|
require_relative "trophy_api_client/leaderboards/types/leaderboards_all_response_item"
|
|
10
10
|
require_relative "trophy_api_client/admin/streaks/types/restore_streaks_request_users_item"
|
|
11
|
+
require_relative "trophy_api_client/admin/points/boosts/types/create_points_boosts_request_boosts_item_rounding"
|
|
12
|
+
require_relative "trophy_api_client/admin/points/boosts/types/create_points_boosts_request_boosts_item"
|
|
11
13
|
require_relative "trophy_api_client/admin/streaks/freezes/types/create_streak_freezes_request_freezes_item"
|
|
12
14
|
require_relative "trophy_api_client/types/webhooks_achievement_completed_payload"
|
|
13
15
|
require_relative "trophy_api_client/types/webhooks_streak_started_payload"
|
|
@@ -16,6 +18,8 @@ require_relative "trophy_api_client/types/webhooks_streak_lost_payload"
|
|
|
16
18
|
require_relative "trophy_api_client/types/webhooks_streak_freeze_consumed_payload"
|
|
17
19
|
require_relative "trophy_api_client/types/webhooks_streak_freeze_earned_payload"
|
|
18
20
|
require_relative "trophy_api_client/types/webhooks_points_changed_payload"
|
|
21
|
+
require_relative "trophy_api_client/types/webhooks_points_boost_started_payload"
|
|
22
|
+
require_relative "trophy_api_client/types/webhooks_points_boost_finished_payload"
|
|
19
23
|
require_relative "trophy_api_client/types/webhooks_leaderboard_started_payload"
|
|
20
24
|
require_relative "trophy_api_client/types/webhooks_leaderboard_changed_payload"
|
|
21
25
|
require_relative "trophy_api_client/types/webhooks_leaderboard_finished_payload"
|
|
@@ -32,6 +36,12 @@ require_relative "trophy_api_client/types/points_trigger_type"
|
|
|
32
36
|
require_relative "trophy_api_client/types/points_trigger_time_unit"
|
|
33
37
|
require_relative "trophy_api_client/types/points_trigger"
|
|
34
38
|
require_relative "trophy_api_client/types/points_award"
|
|
39
|
+
require_relative "trophy_api_client/types/points_boost_status"
|
|
40
|
+
require_relative "trophy_api_client/types/points_boost_rounding"
|
|
41
|
+
require_relative "trophy_api_client/types/points_boost"
|
|
42
|
+
require_relative "trophy_api_client/types/points_boost_webhook_payload_status"
|
|
43
|
+
require_relative "trophy_api_client/types/points_boost_webhook_payload_rounding"
|
|
44
|
+
require_relative "trophy_api_client/types/points_boost_webhook_payload"
|
|
35
45
|
require_relative "trophy_api_client/types/get_user_points_response"
|
|
36
46
|
require_relative "trophy_api_client/types/leaderboard_response_rank_by"
|
|
37
47
|
require_relative "trophy_api_client/types/leaderboard_response_run_unit"
|
|
@@ -51,6 +61,10 @@ require_relative "trophy_api_client/types/metric_response"
|
|
|
51
61
|
require_relative "trophy_api_client/types/updated_user"
|
|
52
62
|
require_relative "trophy_api_client/types/upserted_user"
|
|
53
63
|
require_relative "trophy_api_client/types/user"
|
|
64
|
+
require_relative "trophy_api_client/types/notification_channel"
|
|
65
|
+
require_relative "trophy_api_client/types/notification_type"
|
|
66
|
+
require_relative "trophy_api_client/types/notification_preferences"
|
|
67
|
+
require_relative "trophy_api_client/types/user_preferences_response"
|
|
54
68
|
require_relative "trophy_api_client/types/error_body"
|
|
55
69
|
require_relative "trophy_api_client/types/achievement_completion_response"
|
|
56
70
|
require_relative "trophy_api_client/types/event_response"
|
|
@@ -70,6 +84,11 @@ require_relative "trophy_api_client/types/user_leaderboard_response"
|
|
|
70
84
|
require_relative "trophy_api_client/types/user_leaderboard_response_with_history"
|
|
71
85
|
require_relative "trophy_api_client/types/webhook_user_leaderboard_response"
|
|
72
86
|
require_relative "trophy_api_client/types/create_streak_freezes_response"
|
|
87
|
+
require_relative "trophy_api_client/types/created_points_boost_status"
|
|
88
|
+
require_relative "trophy_api_client/types/created_points_boost_rounding"
|
|
89
|
+
require_relative "trophy_api_client/types/created_points_boost"
|
|
90
|
+
require_relative "trophy_api_client/types/create_points_boosts_response"
|
|
91
|
+
require_relative "trophy_api_client/types/archive_points_boosts_response"
|
|
73
92
|
require_relative "trophy_api_client/types/restore_streaks_response"
|
|
74
93
|
require_relative "trophy_api_client/types/bulk_insert_issue_level"
|
|
75
94
|
require_relative "trophy_api_client/types/bulk_insert_issue"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trophy_api_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.1.0.pre.beta.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trophy Labs, Inc
|
|
@@ -101,6 +101,10 @@ files:
|
|
|
101
101
|
- lib/trophy_api_client.rb
|
|
102
102
|
- lib/trophy_api_client/achievements/client.rb
|
|
103
103
|
- lib/trophy_api_client/admin/client.rb
|
|
104
|
+
- lib/trophy_api_client/admin/points/boosts/client.rb
|
|
105
|
+
- lib/trophy_api_client/admin/points/boosts/types/create_points_boosts_request_boosts_item.rb
|
|
106
|
+
- lib/trophy_api_client/admin/points/boosts/types/create_points_boosts_request_boosts_item_rounding.rb
|
|
107
|
+
- lib/trophy_api_client/admin/points/client.rb
|
|
104
108
|
- lib/trophy_api_client/admin/streaks/client.rb
|
|
105
109
|
- lib/trophy_api_client/admin/streaks/freezes/client.rb
|
|
106
110
|
- lib/trophy_api_client/admin/streaks/freezes/types/create_streak_freezes_request_freezes_item.rb
|
|
@@ -118,12 +122,17 @@ files:
|
|
|
118
122
|
- lib/trophy_api_client/types/achievement_response_trigger.rb
|
|
119
123
|
- lib/trophy_api_client/types/achievement_response_user_attributes_item.rb
|
|
120
124
|
- lib/trophy_api_client/types/achievement_with_stats_response.rb
|
|
125
|
+
- lib/trophy_api_client/types/archive_points_boosts_response.rb
|
|
121
126
|
- lib/trophy_api_client/types/base_streak_response.rb
|
|
122
127
|
- lib/trophy_api_client/types/bulk_insert_issue.rb
|
|
123
128
|
- lib/trophy_api_client/types/bulk_insert_issue_level.rb
|
|
124
129
|
- lib/trophy_api_client/types/bulk_streak_response.rb
|
|
125
130
|
- lib/trophy_api_client/types/bulk_streak_response_item.rb
|
|
131
|
+
- lib/trophy_api_client/types/create_points_boosts_response.rb
|
|
126
132
|
- lib/trophy_api_client/types/create_streak_freezes_response.rb
|
|
133
|
+
- lib/trophy_api_client/types/created_points_boost.rb
|
|
134
|
+
- lib/trophy_api_client/types/created_points_boost_rounding.rb
|
|
135
|
+
- lib/trophy_api_client/types/created_points_boost_status.rb
|
|
127
136
|
- lib/trophy_api_client/types/error_body.rb
|
|
128
137
|
- lib/trophy_api_client/types/event_response.rb
|
|
129
138
|
- lib/trophy_api_client/types/get_user_points_response.rb
|
|
@@ -139,7 +148,16 @@ files:
|
|
|
139
148
|
- lib/trophy_api_client/types/metric_event_streak_response.rb
|
|
140
149
|
- lib/trophy_api_client/types/metric_response.rb
|
|
141
150
|
- lib/trophy_api_client/types/metric_status.rb
|
|
151
|
+
- lib/trophy_api_client/types/notification_channel.rb
|
|
152
|
+
- lib/trophy_api_client/types/notification_preferences.rb
|
|
153
|
+
- lib/trophy_api_client/types/notification_type.rb
|
|
142
154
|
- lib/trophy_api_client/types/points_award.rb
|
|
155
|
+
- lib/trophy_api_client/types/points_boost.rb
|
|
156
|
+
- lib/trophy_api_client/types/points_boost_rounding.rb
|
|
157
|
+
- lib/trophy_api_client/types/points_boost_status.rb
|
|
158
|
+
- lib/trophy_api_client/types/points_boost_webhook_payload.rb
|
|
159
|
+
- lib/trophy_api_client/types/points_boost_webhook_payload_rounding.rb
|
|
160
|
+
- lib/trophy_api_client/types/points_boost_webhook_payload_status.rb
|
|
143
161
|
- lib/trophy_api_client/types/points_range.rb
|
|
144
162
|
- lib/trophy_api_client/types/points_summary_response.rb
|
|
145
163
|
- lib/trophy_api_client/types/points_system_response.rb
|
|
@@ -164,12 +182,15 @@ files:
|
|
|
164
182
|
- lib/trophy_api_client/types/user_achievement_with_stats_response.rb
|
|
165
183
|
- lib/trophy_api_client/types/user_leaderboard_response.rb
|
|
166
184
|
- lib/trophy_api_client/types/user_leaderboard_response_with_history.rb
|
|
185
|
+
- lib/trophy_api_client/types/user_preferences_response.rb
|
|
167
186
|
- lib/trophy_api_client/types/webhook_user_leaderboard_response.rb
|
|
168
187
|
- lib/trophy_api_client/types/webhooks_achievement_completed_payload.rb
|
|
169
188
|
- lib/trophy_api_client/types/webhooks_leaderboard_changed_payload.rb
|
|
170
189
|
- lib/trophy_api_client/types/webhooks_leaderboard_finished_payload.rb
|
|
171
190
|
- lib/trophy_api_client/types/webhooks_leaderboard_rank_changed_payload.rb
|
|
172
191
|
- lib/trophy_api_client/types/webhooks_leaderboard_started_payload.rb
|
|
192
|
+
- lib/trophy_api_client/types/webhooks_points_boost_finished_payload.rb
|
|
193
|
+
- lib/trophy_api_client/types/webhooks_points_boost_started_payload.rb
|
|
173
194
|
- lib/trophy_api_client/types/webhooks_points_changed_payload.rb
|
|
174
195
|
- lib/trophy_api_client/types/webhooks_streak_extended_payload.rb
|
|
175
196
|
- lib/trophy_api_client/types/webhooks_streak_freeze_consumed_payload.rb
|
|
@@ -214,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
214
235
|
- !ruby/object:Gem::Version
|
|
215
236
|
version: '0'
|
|
216
237
|
requirements: []
|
|
217
|
-
rubygems_version:
|
|
238
|
+
rubygems_version: 4.0.3
|
|
218
239
|
specification_version: 4
|
|
219
240
|
summary: Ruby library for the Trophy API.
|
|
220
241
|
test_files: []
|