@orlikfy/api-interfaces 6.1.12 → 6.1.14

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.
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Do not make direct changes to the file.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.ApiPaths = exports.AuthProvider = exports.AppTrophyType = exports.CommentTypeEnum = exports.ToggleNotificationPreferenceResponseDtoCategory = exports.NotificationPreferenceCategoryResponseDtoCategory = exports.MemberRole = exports.GameVisibility = exports.AdminGameTypeFilter = exports.UserRoleEnum = exports.ArrivalType = exports.NotificationTypes = exports.CustomNotificationType = exports.ChatChannelType = exports.NotificationType = exports.PenaltyReason = exports.PenaltyType = exports.AppGameLevel = exports.AppLanguage = exports.AppProfileType = exports.Weekday = exports.GameLevelEnum = exports.AppGameLocationType = exports.AppPreferredPlayerPosition = exports.UserParticipationStatus = exports.Level = exports.PaymentTypes = exports.PriceCurrency = exports.Visibility = exports.KnownException = void 0;
7
+ exports.ApiPaths = exports.AuthProvider = exports.AppTrophyType = exports.CommentTypeEnum = exports.ToggleNotificationPreferenceResponseDtoCategory = exports.NotificationPreferenceCategoryResponseDtoCategory = exports.MemberRole = exports.GameVisibility = exports.AdminGameTypeFilter = exports.UserRoleEnum = exports.ArrivalType = exports.NotificationTypes = exports.CustomNotificationType = exports.ChatChannelType = exports.NotificationType = exports.AppGameLevel = exports.AppLanguage = exports.AppProfileType = exports.Weekday = exports.PenaltyReason = exports.PenaltyType = exports.GameLevelEnum = exports.AppGameLocationType = exports.AppPreferredPlayerPosition = exports.UserParticipationStatus = exports.Level = exports.PaymentTypes = exports.PriceCurrency = exports.Visibility = exports.KnownException = void 0;
8
8
  var KnownException;
9
9
  (function (KnownException) {
10
10
  KnownException["UserBanned"] = "UserBanned";
@@ -39,6 +39,9 @@ var KnownException;
39
39
  KnownException["NotAParticipantOfGame"] = "NotAParticipantOfGame";
40
40
  KnownException["CategoryNotEditable"] = "CategoryNotEditable";
41
41
  KnownException["UnknownNotificationCategory"] = "UnknownNotificationCategory";
42
+ KnownException["NotTheHostOfGame"] = "NotTheHostOfGame";
43
+ KnownException["GameModeratorLimitReached"] = "GameModeratorLimitReached";
44
+ KnownException["GameModeratorInviteTokenInvalid"] = "GameModeratorInviteTokenInvalid";
42
45
  })(KnownException || (exports.KnownException = KnownException = {}));
43
46
  var Visibility;
44
47
  (function (Visibility) {
@@ -70,6 +73,7 @@ var UserParticipationStatus;
70
73
  UserParticipationStatus["Approved"] = "Approved";
71
74
  UserParticipationStatus["Invited"] = "Invited";
72
75
  UserParticipationStatus["Host"] = "Host";
76
+ UserParticipationStatus["Moderator"] = "Moderator";
73
77
  UserParticipationStatus["Empty"] = "Empty";
74
78
  })(UserParticipationStatus || (exports.UserParticipationStatus = UserParticipationStatus = {}));
75
79
  var AppPreferredPlayerPosition;
@@ -95,6 +99,20 @@ var GameLevelEnum;
95
99
  GameLevelEnum["PROFESSIONAL"] = "PROFESSIONAL";
96
100
  GameLevelEnum["MIXED"] = "MIXED";
97
101
  })(GameLevelEnum || (exports.GameLevelEnum = GameLevelEnum = {}));
102
+ var PenaltyType;
103
+ (function (PenaltyType) {
104
+ PenaltyType["YELLOW"] = "YELLOW";
105
+ PenaltyType["RED"] = "RED";
106
+ })(PenaltyType || (exports.PenaltyType = PenaltyType = {}));
107
+ var PenaltyReason;
108
+ (function (PenaltyReason) {
109
+ PenaltyReason["ABSENCE"] = "ABSENCE";
110
+ PenaltyReason["LEAVING_30_MIN"] = "LEAVING_30_MIN";
111
+ PenaltyReason["LATE_15_MIN"] = "LATE_15_MIN";
112
+ PenaltyReason["MISMATCHED_LEVEL"] = "MISMATCHED_LEVEL";
113
+ PenaltyReason["UNSPORTSMANLIKE_BEHAVIOR"] = "UNSPORTSMANLIKE_BEHAVIOR";
114
+ PenaltyReason["NOT_PAID"] = "NOT_PAID";
115
+ })(PenaltyReason || (exports.PenaltyReason = PenaltyReason = {}));
98
116
  var Weekday;
99
117
  (function (Weekday) {
100
118
  Weekday["SUNDAY"] = "SUNDAY";
@@ -124,20 +142,6 @@ var AppGameLevel;
124
142
  AppGameLevel["PROFESSIONAL"] = "PROFESSIONAL";
125
143
  AppGameLevel["MIXED"] = "MIXED";
126
144
  })(AppGameLevel || (exports.AppGameLevel = AppGameLevel = {}));
127
- var PenaltyType;
128
- (function (PenaltyType) {
129
- PenaltyType["YELLOW"] = "YELLOW";
130
- PenaltyType["RED"] = "RED";
131
- })(PenaltyType || (exports.PenaltyType = PenaltyType = {}));
132
- var PenaltyReason;
133
- (function (PenaltyReason) {
134
- PenaltyReason["ABSENCE"] = "ABSENCE";
135
- PenaltyReason["LEAVING_30_MIN"] = "LEAVING_30_MIN";
136
- PenaltyReason["LATE_15_MIN"] = "LATE_15_MIN";
137
- PenaltyReason["MISMATCHED_LEVEL"] = "MISMATCHED_LEVEL";
138
- PenaltyReason["UNSPORTSMANLIKE_BEHAVIOR"] = "UNSPORTSMANLIKE_BEHAVIOR";
139
- PenaltyReason["NOT_PAID"] = "NOT_PAID";
140
- })(PenaltyReason || (exports.PenaltyReason = PenaltyReason = {}));
141
145
  var NotificationType;
142
146
  (function (NotificationType) {
143
147
  NotificationType["test"] = "test";
@@ -161,6 +165,7 @@ var NotificationType;
161
165
  NotificationType["user_penalty_received"] = "user-penalty-received";
162
166
  NotificationType["user_penalty_revoked"] = "user-penalty-revoked";
163
167
  NotificationType["team_member_added_by_host"] = "team-member-added-by-host";
168
+ NotificationType["team_member_left"] = "team-member-left";
164
169
  NotificationType["new_trophy_received"] = "new-trophy-received";
165
170
  NotificationType["new_comment_received"] = "new-comment-received";
166
171
  NotificationType["user_referral_received"] = "user-referral-received";
@@ -215,6 +220,7 @@ var NotificationTypes;
215
220
  NotificationTypes["user_penalty_received"] = "user-penalty-received";
216
221
  NotificationTypes["user_penalty_revoked"] = "user-penalty-revoked";
217
222
  NotificationTypes["team_member_added_by_host"] = "team-member-added-by-host";
223
+ NotificationTypes["team_member_left"] = "team-member-left";
218
224
  NotificationTypes["new_trophy_received"] = "new-trophy-received";
219
225
  NotificationTypes["new_comment_received"] = "new-comment-received";
220
226
  NotificationTypes["user_referral_received"] = "user-referral-received";
@@ -343,6 +349,20 @@ var ApiPaths;
343
349
  ApiPaths["markGamePlayerAsNotPaid"] = "/hosted-games/{hostedGameId}/players/{gamePlayerId}/mark-as-not-paid";
344
350
  ApiPaths["getLineupsByGameId"] = "/game-lineups/{gameId}";
345
351
  ApiPaths["createGameLineups"] = "/game-lineups/{gameId}";
352
+ ApiPaths["generateInviteToken"] = "/games/{gameId}/moderator-invite";
353
+ ApiPaths["acceptInvite"] = "/games/moderator-invite/{token}/accept";
354
+ ApiPaths["removeModerator"] = "/games/{gameId}/moderators/{userId}";
355
+ ApiPaths["updateModerator"] = "/games/{gameId}/moderators/{userId}";
356
+ ApiPaths["createHostedGame"] = "/hosted-games";
357
+ ApiPaths["updateHostedGame"] = "/hosted-games/{hostedGameId}";
358
+ ApiPaths["cancelHostedGame"] = "/hosted-games/{hostedGameId}";
359
+ ApiPaths["getHostedGame"] = "/hosted-games/{hostedGameId}";
360
+ ApiPaths["getUserHostedGamesFuture"] = "/hosted-games/future";
361
+ ApiPaths["getUserHostedGamesPast"] = "/hosted-games/past";
362
+ ApiPaths["getFbGroupsByGameId"] = "/game/{gameId}/fb-groups";
363
+ ApiPaths["getUserPenalties"] = "/user/{userId}/penalty";
364
+ ApiPaths["createPenalty"] = "/user/{userId}/penalty";
365
+ ApiPaths["revokePenalty"] = "/penalties/{userPenaltyId}";
346
366
  ApiPaths["emitGameAlerts"] = "/nearby-games-alerts/trigger-scheduled-alert-for-game";
347
367
  ApiPaths["upsertUserNearbyGamesAlert"] = "/nearby-games/alerts";
348
368
  ApiPaths["getUserNearbyGamesAlert"] = "/nearby-games/alerts";
@@ -356,16 +376,6 @@ var ApiPaths;
356
376
  ApiPaths["setMyLanguage"] = "/users/me/language";
357
377
  ApiPaths["getMyUserStats"] = "/users/me/stats";
358
378
  ApiPaths["upsertUserMetaPushNotificationEnabledValue"] = "/user-meta/push-notification-enabled";
359
- ApiPaths["createHostedGame"] = "/hosted-games";
360
- ApiPaths["updateHostedGame"] = "/hosted-games/{hostedGameId}";
361
- ApiPaths["cancelHostedGame"] = "/hosted-games/{hostedGameId}";
362
- ApiPaths["getHostedGame"] = "/hosted-games/{hostedGameId}";
363
- ApiPaths["getUserHostedGamesFuture"] = "/hosted-games/future";
364
- ApiPaths["getUserHostedGamesPast"] = "/hosted-games/past";
365
- ApiPaths["getFbGroupsByGameId"] = "/game/{gameId}/fb-groups";
366
- ApiPaths["getUserPenalties"] = "/user/{userId}/penalty";
367
- ApiPaths["createPenalty"] = "/user/{userId}/penalty";
368
- ApiPaths["revokePenalty"] = "/penalties/{userPenaltyId}";
369
379
  ApiPaths["getMyGames"] = "/my-games";
370
380
  ApiPaths["getAllForCurrentUser"] = "/user-notifications";
371
381
  ApiPaths["markAsRead"] = "/user-notifications";
@@ -426,6 +436,7 @@ var ApiPaths;
426
436
  ApiPaths["getUserProfile"] = "/user-profile/{userId}";
427
437
  ApiPaths["createComment"] = "/user-comments";
428
438
  ApiPaths["getComments"] = "/user-comments/{userId}";
439
+ ApiPaths["revokeComment"] = "/user-comments/{commentId}";
429
440
  ApiPaths["refreshData"] = "/bi-data/refresh-data";
430
441
  ApiPaths["refreshModel"] = "/bi-data/refresh-model";
431
442
  ApiPaths["createManualTrophy"] = "/trophies/create-manual";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orlikfy/api-interfaces",
3
- "version": "6.1.12",
3
+ "version": "6.1.14",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "kruligh",