@orlikfy/api-interfaces 1.0.2 → 2.0.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.
@@ -2,7 +2,6 @@
2
2
  * This file was auto-generated by openapi-typescript.
3
3
  * Do not make direct changes to the file.
4
4
  */
5
-
6
5
  export interface paths {
7
6
  "/hello": {
8
7
  parameters: {
@@ -7295,7 +7294,7 @@ export interface operations {
7295
7294
  };
7296
7295
  };
7297
7296
  }
7298
- export enum KnownException {
7297
+ export declare enum KnownException {
7299
7298
  UserBanned = "UserBanned",
7300
7299
  ValidationException = "ValidationException",
7301
7300
  HostApprovalAllSlotsAlreadyTaken = "HostApprovalAllSlotsAlreadyTaken",
@@ -7322,52 +7321,52 @@ export enum KnownException {
7322
7321
  UserDisplayNameNotSet = "UserDisplayNameNotSet",
7323
7322
  YouHaveAlreadyGivenThisComment = "YouHaveAlreadyGivenThisComment"
7324
7323
  }
7325
- export enum Visibility {
7324
+ export declare enum Visibility {
7326
7325
  PUBLIC = "PUBLIC",
7327
7326
  PRIVATE = "PRIVATE"
7328
7327
  }
7329
- export enum PriceCurrency {
7328
+ export declare enum PriceCurrency {
7330
7329
  PLN = "PLN"
7331
7330
  }
7332
- export enum PaymentTypes {
7331
+ export declare enum PaymentTypes {
7333
7332
  CASH = "CASH",
7334
7333
  BLIK = "BLIK",
7335
7334
  TRANSFER = "TRANSFER"
7336
7335
  }
7337
- export enum Level {
7336
+ export declare enum Level {
7338
7337
  BEGINNER = "BEGINNER",
7339
7338
  INTERMEDIATE = "INTERMEDIATE",
7340
7339
  ADVANCED = "ADVANCED",
7341
7340
  PROFESSIONAL = "PROFESSIONAL",
7342
7341
  INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER"
7343
7342
  }
7344
- export enum UserParticipationStatus {
7343
+ export declare enum UserParticipationStatus {
7345
7344
  Applied = "Applied",
7346
7345
  Approved = "Approved",
7347
7346
  Invited = "Invited",
7348
7347
  Host = "Host",
7349
7348
  Empty = "Empty"
7350
7349
  }
7351
- export enum AppPreferredPlayerPosition {
7350
+ export declare enum AppPreferredPlayerPosition {
7352
7351
  GOALKEEPER = "GOALKEEPER",
7353
7352
  BACK = "BACK",
7354
7353
  MIDFIELDER = "MIDFIELDER",
7355
7354
  STRIKER = "STRIKER"
7356
7355
  }
7357
- export enum AppGameLocationType {
7356
+ export declare enum AppGameLocationType {
7358
7357
  OPEN_FIELD = "OPEN_FIELD",
7359
7358
  INDOOR = "INDOOR",
7360
7359
  DOME = "DOME",
7361
7360
  FIELD_FULL = "FIELD_FULL"
7362
7361
  }
7363
- export enum GameLevelEnum {
7362
+ export declare enum GameLevelEnum {
7364
7363
  BEGINNER = "BEGINNER",
7365
7364
  INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER",
7366
7365
  INTERMEDIATE = "INTERMEDIATE",
7367
7366
  ADVANCED = "ADVANCED",
7368
7367
  PROFESSIONAL = "PROFESSIONAL"
7369
7368
  }
7370
- export enum Weekday {
7369
+ export declare enum Weekday {
7371
7370
  SUNDAY = "SUNDAY",
7372
7371
  MONDAY = "MONDAY",
7373
7372
  TUESDAY = "TUESDAY",
@@ -7376,29 +7375,29 @@ export enum Weekday {
7376
7375
  FRIDAY = "FRIDAY",
7377
7376
  SATURDAY = "SATURDAY"
7378
7377
  }
7379
- export enum AppProfileType {
7378
+ export declare enum AppProfileType {
7380
7379
  player = "player",
7381
7380
  host = "host"
7382
7381
  }
7383
- export enum AppGameLevel {
7382
+ export declare enum AppGameLevel {
7384
7383
  BEGINNER = "BEGINNER",
7385
7384
  INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER",
7386
7385
  INTERMEDIATE = "INTERMEDIATE",
7387
7386
  ADVANCED = "ADVANCED",
7388
7387
  PROFESSIONAL = "PROFESSIONAL"
7389
7388
  }
7390
- export enum PenaltyType {
7389
+ export declare enum PenaltyType {
7391
7390
  YELLOW = "YELLOW",
7392
7391
  RED = "RED"
7393
7392
  }
7394
- export enum PenaltyReason {
7393
+ export declare enum PenaltyReason {
7395
7394
  ABSENCE = "ABSENCE",
7396
7395
  LEAVING_30_MIN = "LEAVING_30_MIN",
7397
7396
  LATE_15_MIN = "LATE_15_MIN",
7398
7397
  MISMATCHED_LEVEL = "MISMATCHED_LEVEL",
7399
7398
  UNSPORTSMANLIKE_BEHAVIOR = "UNSPORTSMANLIKE_BEHAVIOR"
7400
7399
  }
7401
- export enum NotificationType {
7400
+ export declare enum NotificationType {
7402
7401
  test = "test",
7403
7402
  game_application_approved = "game-application-approved",
7404
7403
  game_application_rejected = "game-application-rejected",
@@ -7437,17 +7436,17 @@ export enum NotificationType {
7437
7436
  action_push_host_create_group = "action-push-host-create-group",
7438
7437
  action_push_host_invite_previous_players = "action-push-host-invite-previous-players"
7439
7438
  }
7440
- export enum ChatChannelType {
7439
+ export declare enum ChatChannelType {
7441
7440
  single = "single",
7442
7441
  multi = "multi",
7443
7442
  team = "team"
7444
7443
  }
7445
- export enum CustomNotificationType {
7444
+ export declare enum CustomNotificationType {
7446
7445
  page = "page",
7447
7446
  modal = "modal",
7448
7447
  redirect = "redirect"
7449
7448
  }
7450
- export enum NotificationTypes {
7449
+ export declare enum NotificationTypes {
7451
7450
  test = "test",
7452
7451
  game_application_approved = "game-application-approved",
7453
7452
  game_application_rejected = "game-application-rejected",
@@ -7486,30 +7485,30 @@ export enum NotificationTypes {
7486
7485
  action_push_host_create_group = "action-push-host-create-group",
7487
7486
  action_push_host_invite_previous_players = "action-push-host-invite-previous-players"
7488
7487
  }
7489
- export enum ArrivalType {
7488
+ export declare enum ArrivalType {
7490
7489
  hosted_game = "hosted-game",
7491
7490
  player_game = "player-game"
7492
7491
  }
7493
- export enum LinkSuffixOption {
7492
+ export declare enum LinkSuffixOption {
7494
7493
  SHORT = "SHORT"
7495
7494
  }
7496
- export enum UserRoleEnum {
7495
+ export declare enum UserRoleEnum {
7497
7496
  USER = "USER",
7498
7497
  ADMIN = "ADMIN"
7499
7498
  }
7500
- export enum MemberRole {
7499
+ export declare enum MemberRole {
7501
7500
  Host = "Host",
7502
7501
  Moderator = "Moderator",
7503
7502
  Member = "Member"
7504
7503
  }
7505
- export enum CommentTypeEnum {
7504
+ export declare enum CommentTypeEnum {
7506
7505
  GOOD_PLAYER = "GOOD_PLAYER",
7507
7506
  FAIR_PLAY = "FAIR_PLAY",
7508
7507
  TEAM_PLAY = "TEAM_PLAY",
7509
7508
  HELPFUL = "HELPFUL",
7510
7509
  SPRINTER = "SPRINTER"
7511
7510
  }
7512
- export enum AppTrophyType {
7511
+ export declare enum AppTrophyType {
7513
7512
  HOSTED_GAMES_5 = "HOSTED_GAMES_5",
7514
7513
  HOSTED_GAMES_25 = "HOSTED_GAMES_25",
7515
7514
  HOSTED_GAMES_50 = "HOSTED_GAMES_50",
@@ -7526,7 +7525,7 @@ export enum AppTrophyType {
7526
7525
  PLAYER_COMMENT_HELPFUL_10 = "PLAYER_COMMENT_HELPFUL_10",
7527
7526
  PLAYER_COMMENT_SPRINTER_10 = "PLAYER_COMMENT_SPRINTER_10"
7528
7527
  }
7529
- export enum ApiPaths {
7528
+ export declare enum ApiPaths {
7530
7529
  getHello = "/hello",
7531
7530
  getError = "/error",
7532
7531
  getErrorUncaught = "/error-uncaught",
package/dist/api.js ADDED
@@ -0,0 +1,373 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by openapi-typescript.
4
+ * Do not make direct changes to the file.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ApiPaths = exports.AppTrophyType = exports.CommentTypeEnum = exports.MemberRole = exports.UserRoleEnum = exports.LinkSuffixOption = exports.ArrivalType = exports.NotificationTypes = exports.CustomNotificationType = exports.ChatChannelType = exports.NotificationType = exports.PenaltyReason = exports.PenaltyType = exports.AppGameLevel = exports.AppProfileType = exports.Weekday = exports.GameLevelEnum = exports.AppGameLocationType = exports.AppPreferredPlayerPosition = exports.UserParticipationStatus = exports.Level = exports.PaymentTypes = exports.PriceCurrency = exports.Visibility = exports.KnownException = void 0;
8
+ var KnownException;
9
+ (function (KnownException) {
10
+ KnownException["UserBanned"] = "UserBanned";
11
+ KnownException["ValidationException"] = "ValidationException";
12
+ KnownException["HostApprovalAllSlotsAlreadyTaken"] = "HostApprovalAllSlotsAlreadyTaken";
13
+ KnownException["GameAlreadyPending"] = "GameAlreadyPending";
14
+ KnownException["GameCancelled"] = "GameCancelled";
15
+ KnownException["GameApplicationAlreadyPending"] = "GameApplicationAlreadyPending";
16
+ KnownException["GameApplicationAlreadyApproved"] = "GameApplicationAlreadyApproved";
17
+ KnownException["NotHandledTimezone"] = "NotHandledTimezone";
18
+ KnownException["GameEndDateBeforeStartDate"] = "GameEndDateBeforeStartDate";
19
+ KnownException["GameStartDateBeforeCurrentDatePlusOffset"] = "GameStartDateBeforeCurrentDatePlusOffset";
20
+ KnownException["CannotEditGameAfterItsFinished"] = "CannotEditGameAfterItsFinished";
21
+ KnownException["CannotCancelGameIfSomePlayersAlreadyPaid"] = "CannotCancelGameIfSomePlayersAlreadyPaid";
22
+ KnownException["CannotRemoveGamePlayerIfAlreadyPaid"] = "CannotRemoveGamePlayerIfAlreadyPaid";
23
+ KnownException["CannotRemoveGamePlayerIfItsTooLate"] = "CannotRemoveGamePlayerIfItsTooLate";
24
+ KnownException["UserDeleted"] = "UserDeleted";
25
+ KnownException["CannotApproveGamePlayerApplicationItsTooLate"] = "CannotApproveGamePlayerApplicationItsTooLate";
26
+ KnownException["CannotApplyToGameItsTooLate"] = "CannotApplyToGameItsTooLate";
27
+ KnownException["CannotCreateRatingAlreadyExists"] = "CannotCreateRatingAlreadyExists";
28
+ KnownException["InternalDatabaseUniqueConstraintViolationParentRecurringGameId"] = "InternalDatabaseUniqueConstraintViolationParentRecurringGameId";
29
+ KnownException["CannotInviteSuchManyPlayersAtOnce"] = "CannotInviteSuchManyPlayersAtOnce";
30
+ KnownException["CannotInviteToGameIfAlreadyStarted"] = "CannotInviteToGameIfAlreadyStarted";
31
+ KnownException["UserNameAndSurnameCannotBeEmpty"] = "UserNameAndSurnameCannotBeEmpty";
32
+ KnownException["UserNameAndSurnameCannotBeEmptyToCreateGame"] = "UserNameAndSurnameCannotBeEmptyToCreateGame";
33
+ KnownException["UserDisplayNameNotSet"] = "UserDisplayNameNotSet";
34
+ KnownException["YouHaveAlreadyGivenThisComment"] = "YouHaveAlreadyGivenThisComment";
35
+ })(KnownException || (exports.KnownException = KnownException = {}));
36
+ var Visibility;
37
+ (function (Visibility) {
38
+ Visibility["PUBLIC"] = "PUBLIC";
39
+ Visibility["PRIVATE"] = "PRIVATE";
40
+ })(Visibility || (exports.Visibility = Visibility = {}));
41
+ var PriceCurrency;
42
+ (function (PriceCurrency) {
43
+ PriceCurrency["PLN"] = "PLN";
44
+ })(PriceCurrency || (exports.PriceCurrency = PriceCurrency = {}));
45
+ var PaymentTypes;
46
+ (function (PaymentTypes) {
47
+ PaymentTypes["CASH"] = "CASH";
48
+ PaymentTypes["BLIK"] = "BLIK";
49
+ PaymentTypes["TRANSFER"] = "TRANSFER";
50
+ })(PaymentTypes || (exports.PaymentTypes = PaymentTypes = {}));
51
+ var Level;
52
+ (function (Level) {
53
+ Level["BEGINNER"] = "BEGINNER";
54
+ Level["INTERMEDIATE"] = "INTERMEDIATE";
55
+ Level["ADVANCED"] = "ADVANCED";
56
+ Level["PROFESSIONAL"] = "PROFESSIONAL";
57
+ Level["INTERMEDIATE_BEGINNER"] = "INTERMEDIATE_BEGINNER";
58
+ })(Level || (exports.Level = Level = {}));
59
+ var UserParticipationStatus;
60
+ (function (UserParticipationStatus) {
61
+ UserParticipationStatus["Applied"] = "Applied";
62
+ UserParticipationStatus["Approved"] = "Approved";
63
+ UserParticipationStatus["Invited"] = "Invited";
64
+ UserParticipationStatus["Host"] = "Host";
65
+ UserParticipationStatus["Empty"] = "Empty";
66
+ })(UserParticipationStatus || (exports.UserParticipationStatus = UserParticipationStatus = {}));
67
+ var AppPreferredPlayerPosition;
68
+ (function (AppPreferredPlayerPosition) {
69
+ AppPreferredPlayerPosition["GOALKEEPER"] = "GOALKEEPER";
70
+ AppPreferredPlayerPosition["BACK"] = "BACK";
71
+ AppPreferredPlayerPosition["MIDFIELDER"] = "MIDFIELDER";
72
+ AppPreferredPlayerPosition["STRIKER"] = "STRIKER";
73
+ })(AppPreferredPlayerPosition || (exports.AppPreferredPlayerPosition = AppPreferredPlayerPosition = {}));
74
+ var AppGameLocationType;
75
+ (function (AppGameLocationType) {
76
+ AppGameLocationType["OPEN_FIELD"] = "OPEN_FIELD";
77
+ AppGameLocationType["INDOOR"] = "INDOOR";
78
+ AppGameLocationType["DOME"] = "DOME";
79
+ AppGameLocationType["FIELD_FULL"] = "FIELD_FULL";
80
+ })(AppGameLocationType || (exports.AppGameLocationType = AppGameLocationType = {}));
81
+ var GameLevelEnum;
82
+ (function (GameLevelEnum) {
83
+ GameLevelEnum["BEGINNER"] = "BEGINNER";
84
+ GameLevelEnum["INTERMEDIATE_BEGINNER"] = "INTERMEDIATE_BEGINNER";
85
+ GameLevelEnum["INTERMEDIATE"] = "INTERMEDIATE";
86
+ GameLevelEnum["ADVANCED"] = "ADVANCED";
87
+ GameLevelEnum["PROFESSIONAL"] = "PROFESSIONAL";
88
+ })(GameLevelEnum || (exports.GameLevelEnum = GameLevelEnum = {}));
89
+ var Weekday;
90
+ (function (Weekday) {
91
+ Weekday["SUNDAY"] = "SUNDAY";
92
+ Weekday["MONDAY"] = "MONDAY";
93
+ Weekday["TUESDAY"] = "TUESDAY";
94
+ Weekday["WEDNESDAY"] = "WEDNESDAY";
95
+ Weekday["THURSDAY"] = "THURSDAY";
96
+ Weekday["FRIDAY"] = "FRIDAY";
97
+ Weekday["SATURDAY"] = "SATURDAY";
98
+ })(Weekday || (exports.Weekday = Weekday = {}));
99
+ var AppProfileType;
100
+ (function (AppProfileType) {
101
+ AppProfileType["player"] = "player";
102
+ AppProfileType["host"] = "host";
103
+ })(AppProfileType || (exports.AppProfileType = AppProfileType = {}));
104
+ var AppGameLevel;
105
+ (function (AppGameLevel) {
106
+ AppGameLevel["BEGINNER"] = "BEGINNER";
107
+ AppGameLevel["INTERMEDIATE_BEGINNER"] = "INTERMEDIATE_BEGINNER";
108
+ AppGameLevel["INTERMEDIATE"] = "INTERMEDIATE";
109
+ AppGameLevel["ADVANCED"] = "ADVANCED";
110
+ AppGameLevel["PROFESSIONAL"] = "PROFESSIONAL";
111
+ })(AppGameLevel || (exports.AppGameLevel = AppGameLevel = {}));
112
+ var PenaltyType;
113
+ (function (PenaltyType) {
114
+ PenaltyType["YELLOW"] = "YELLOW";
115
+ PenaltyType["RED"] = "RED";
116
+ })(PenaltyType || (exports.PenaltyType = PenaltyType = {}));
117
+ var PenaltyReason;
118
+ (function (PenaltyReason) {
119
+ PenaltyReason["ABSENCE"] = "ABSENCE";
120
+ PenaltyReason["LEAVING_30_MIN"] = "LEAVING_30_MIN";
121
+ PenaltyReason["LATE_15_MIN"] = "LATE_15_MIN";
122
+ PenaltyReason["MISMATCHED_LEVEL"] = "MISMATCHED_LEVEL";
123
+ PenaltyReason["UNSPORTSMANLIKE_BEHAVIOR"] = "UNSPORTSMANLIKE_BEHAVIOR";
124
+ })(PenaltyReason || (exports.PenaltyReason = PenaltyReason = {}));
125
+ var NotificationType;
126
+ (function (NotificationType) {
127
+ NotificationType["test"] = "test";
128
+ NotificationType["game_application_approved"] = "game-application-approved";
129
+ NotificationType["game_application_rejected"] = "game-application-rejected";
130
+ NotificationType["game_invitation_received"] = "game-invitation-received";
131
+ NotificationType["game_reminder"] = "game-reminder";
132
+ NotificationType["game_finished"] = "game-finished";
133
+ NotificationType["game_canceled"] = "game-canceled";
134
+ NotificationType["game_player_removed_by_host"] = "game-player-removed-by-host";
135
+ NotificationType["game_lineups_created"] = "game-lineups-created";
136
+ NotificationType["hosted_game_new_application"] = "hosted-game-new-application";
137
+ NotificationType["hosted_game_player_left"] = "hosted-game-player-left";
138
+ NotificationType["hosted_game_player_auto_approved"] = "hosted-game-player-auto-approved";
139
+ NotificationType["hosted_game_finished"] = "hosted-game-finished";
140
+ NotificationType["hosted_game_reminder"] = "hosted-game-reminder";
141
+ NotificationType["new_game_from_alert"] = "new-game-from-alert";
142
+ NotificationType["chat_new_message"] = "chat-new-message";
143
+ NotificationType["custom_notification"] = "custom-notification";
144
+ NotificationType["user_penalty_received"] = "user-penalty-received";
145
+ NotificationType["team_member_added_by_host"] = "team-member-added-by-host";
146
+ NotificationType["new_trophy_received"] = "new-trophy-received";
147
+ NotificationType["new_comment_received"] = "new-comment-received";
148
+ NotificationType["user_referral_received"] = "user-referral-received";
149
+ NotificationType["action_push_player_collect_points"] = "action-push-player-collect-points";
150
+ NotificationType["action_push_player_invite_players"] = "action-push-player-invite-players";
151
+ NotificationType["action_push_player_inactive"] = "action-push-player-inactive";
152
+ NotificationType["action_push_player_achievements"] = "action-push-player-achievements";
153
+ NotificationType["action_push_player_inactive_2"] = "action-push-player-inactive-2";
154
+ NotificationType["action_push_player_alerts"] = "action-push-player-alerts";
155
+ NotificationType["action_push_player_comments_and_penalties"] = "action-push-player-comments-and-penalties";
156
+ NotificationType["action_push_host_collect_points"] = "action-push-host-collect-points";
157
+ NotificationType["action_push_host_invite_players"] = "action-push-host-invite-players";
158
+ NotificationType["action_push_host_inactive"] = "action-push-host-inactive";
159
+ NotificationType["action_push_host_achievements"] = "action-push-host-achievements";
160
+ NotificationType["action_push_host_teams_drawing"] = "action-push-host-teams-drawing";
161
+ NotificationType["action_push_host_comments_and_penalties"] = "action-push-host-comments-and-penalties";
162
+ NotificationType["action_push_host_create_group"] = "action-push-host-create-group";
163
+ NotificationType["action_push_host_invite_previous_players"] = "action-push-host-invite-previous-players";
164
+ })(NotificationType || (exports.NotificationType = NotificationType = {}));
165
+ var ChatChannelType;
166
+ (function (ChatChannelType) {
167
+ ChatChannelType["single"] = "single";
168
+ ChatChannelType["multi"] = "multi";
169
+ ChatChannelType["team"] = "team";
170
+ })(ChatChannelType || (exports.ChatChannelType = ChatChannelType = {}));
171
+ var CustomNotificationType;
172
+ (function (CustomNotificationType) {
173
+ CustomNotificationType["page"] = "page";
174
+ CustomNotificationType["modal"] = "modal";
175
+ CustomNotificationType["redirect"] = "redirect";
176
+ })(CustomNotificationType || (exports.CustomNotificationType = CustomNotificationType = {}));
177
+ var NotificationTypes;
178
+ (function (NotificationTypes) {
179
+ NotificationTypes["test"] = "test";
180
+ NotificationTypes["game_application_approved"] = "game-application-approved";
181
+ NotificationTypes["game_application_rejected"] = "game-application-rejected";
182
+ NotificationTypes["game_invitation_received"] = "game-invitation-received";
183
+ NotificationTypes["game_reminder"] = "game-reminder";
184
+ NotificationTypes["game_finished"] = "game-finished";
185
+ NotificationTypes["game_canceled"] = "game-canceled";
186
+ NotificationTypes["game_player_removed_by_host"] = "game-player-removed-by-host";
187
+ NotificationTypes["game_lineups_created"] = "game-lineups-created";
188
+ NotificationTypes["hosted_game_new_application"] = "hosted-game-new-application";
189
+ NotificationTypes["hosted_game_player_left"] = "hosted-game-player-left";
190
+ NotificationTypes["hosted_game_player_auto_approved"] = "hosted-game-player-auto-approved";
191
+ NotificationTypes["hosted_game_finished"] = "hosted-game-finished";
192
+ NotificationTypes["hosted_game_reminder"] = "hosted-game-reminder";
193
+ NotificationTypes["new_game_from_alert"] = "new-game-from-alert";
194
+ NotificationTypes["chat_new_message"] = "chat-new-message";
195
+ NotificationTypes["custom_notification"] = "custom-notification";
196
+ NotificationTypes["user_penalty_received"] = "user-penalty-received";
197
+ NotificationTypes["team_member_added_by_host"] = "team-member-added-by-host";
198
+ NotificationTypes["new_trophy_received"] = "new-trophy-received";
199
+ NotificationTypes["new_comment_received"] = "new-comment-received";
200
+ NotificationTypes["user_referral_received"] = "user-referral-received";
201
+ NotificationTypes["action_push_player_collect_points"] = "action-push-player-collect-points";
202
+ NotificationTypes["action_push_player_invite_players"] = "action-push-player-invite-players";
203
+ NotificationTypes["action_push_player_inactive"] = "action-push-player-inactive";
204
+ NotificationTypes["action_push_player_achievements"] = "action-push-player-achievements";
205
+ NotificationTypes["action_push_player_inactive_2"] = "action-push-player-inactive-2";
206
+ NotificationTypes["action_push_player_alerts"] = "action-push-player-alerts";
207
+ NotificationTypes["action_push_player_comments_and_penalties"] = "action-push-player-comments-and-penalties";
208
+ NotificationTypes["action_push_host_collect_points"] = "action-push-host-collect-points";
209
+ NotificationTypes["action_push_host_invite_players"] = "action-push-host-invite-players";
210
+ NotificationTypes["action_push_host_inactive"] = "action-push-host-inactive";
211
+ NotificationTypes["action_push_host_achievements"] = "action-push-host-achievements";
212
+ NotificationTypes["action_push_host_teams_drawing"] = "action-push-host-teams-drawing";
213
+ NotificationTypes["action_push_host_comments_and_penalties"] = "action-push-host-comments-and-penalties";
214
+ NotificationTypes["action_push_host_create_group"] = "action-push-host-create-group";
215
+ NotificationTypes["action_push_host_invite_previous_players"] = "action-push-host-invite-previous-players";
216
+ })(NotificationTypes || (exports.NotificationTypes = NotificationTypes = {}));
217
+ var ArrivalType;
218
+ (function (ArrivalType) {
219
+ ArrivalType["hosted_game"] = "hosted-game";
220
+ ArrivalType["player_game"] = "player-game";
221
+ })(ArrivalType || (exports.ArrivalType = ArrivalType = {}));
222
+ var LinkSuffixOption;
223
+ (function (LinkSuffixOption) {
224
+ LinkSuffixOption["SHORT"] = "SHORT";
225
+ })(LinkSuffixOption || (exports.LinkSuffixOption = LinkSuffixOption = {}));
226
+ var UserRoleEnum;
227
+ (function (UserRoleEnum) {
228
+ UserRoleEnum["USER"] = "USER";
229
+ UserRoleEnum["ADMIN"] = "ADMIN";
230
+ })(UserRoleEnum || (exports.UserRoleEnum = UserRoleEnum = {}));
231
+ var MemberRole;
232
+ (function (MemberRole) {
233
+ MemberRole["Host"] = "Host";
234
+ MemberRole["Moderator"] = "Moderator";
235
+ MemberRole["Member"] = "Member";
236
+ })(MemberRole || (exports.MemberRole = MemberRole = {}));
237
+ var CommentTypeEnum;
238
+ (function (CommentTypeEnum) {
239
+ CommentTypeEnum["GOOD_PLAYER"] = "GOOD_PLAYER";
240
+ CommentTypeEnum["FAIR_PLAY"] = "FAIR_PLAY";
241
+ CommentTypeEnum["TEAM_PLAY"] = "TEAM_PLAY";
242
+ CommentTypeEnum["HELPFUL"] = "HELPFUL";
243
+ CommentTypeEnum["SPRINTER"] = "SPRINTER";
244
+ })(CommentTypeEnum || (exports.CommentTypeEnum = CommentTypeEnum = {}));
245
+ var AppTrophyType;
246
+ (function (AppTrophyType) {
247
+ AppTrophyType["HOSTED_GAMES_5"] = "HOSTED_GAMES_5";
248
+ AppTrophyType["HOSTED_GAMES_25"] = "HOSTED_GAMES_25";
249
+ AppTrophyType["HOSTED_GAMES_50"] = "HOSTED_GAMES_50";
250
+ AppTrophyType["HOSTED_GAMES_100"] = "HOSTED_GAMES_100";
251
+ AppTrophyType["HOST_RATE_5_50"] = "HOST_RATE_5_50";
252
+ AppTrophyType["HOST_RATE_5_100"] = "HOST_RATE_5_100";
253
+ AppTrophyType["PLAYER_GAMES_5"] = "PLAYER_GAMES_5";
254
+ AppTrophyType["PLAYER_GAMES_25"] = "PLAYER_GAMES_25";
255
+ AppTrophyType["PLAYER_GAMES_50"] = "PLAYER_GAMES_50";
256
+ AppTrophyType["PLAYER_GAMES_100"] = "PLAYER_GAMES_100";
257
+ AppTrophyType["PLAYER_COMMENT_FAIR_PLAY_10"] = "PLAYER_COMMENT_FAIR_PLAY_10";
258
+ AppTrophyType["PLAYER_COMMENT_GOOD_PLAYER_10"] = "PLAYER_COMMENT_GOOD_PLAYER_10";
259
+ AppTrophyType["PLAYER_COMMENT_TEAM_PLAY_10"] = "PLAYER_COMMENT_TEAM_PLAY_10";
260
+ AppTrophyType["PLAYER_COMMENT_HELPFUL_10"] = "PLAYER_COMMENT_HELPFUL_10";
261
+ AppTrophyType["PLAYER_COMMENT_SPRINTER_10"] = "PLAYER_COMMENT_SPRINTER_10";
262
+ })(AppTrophyType || (exports.AppTrophyType = AppTrophyType = {}));
263
+ var ApiPaths;
264
+ (function (ApiPaths) {
265
+ ApiPaths["getHello"] = "/hello";
266
+ ApiPaths["getError"] = "/error";
267
+ ApiPaths["getErrorUncaught"] = "/error-uncaught";
268
+ ApiPaths["postUserRegistration"] = "/users/user-registered-cloud-fn-callback";
269
+ ApiPaths["getGameById"] = "/games/{gameId}";
270
+ ApiPaths["getNearbyGamesDeprecated"] = "/nearby-games";
271
+ ApiPaths["getNearbyGamesByLocation"] = "/nearby-games/locations";
272
+ ApiPaths["getNearbyGamesList"] = "/nearby-games/list";
273
+ ApiPaths["getLocationGames"] = "/location/{locationId}/games";
274
+ ApiPaths["getPlayerGamesFuture"] = "/player-games/future";
275
+ ApiPaths["getPlayerGamesPast"] = "/player-games/past";
276
+ ApiPaths["cancelPlayerGame"] = "/player-games/{gameId}";
277
+ ApiPaths["rejectGameInvitation"] = "/game-invitations/{invitationId}/reject";
278
+ ApiPaths["getGameInvitationCandidates"] = "/hosted-games/{hostedGameId}/invitations/candidates";
279
+ ApiPaths["sendGameInvitations"] = "/hosted-games/{hostedGameId}/invitations";
280
+ ApiPaths["createPlaceholderPlayer"] = "/hosted-games/{hostedGameId}/players";
281
+ ApiPaths["putPlaceholderPlayer"] = "/hosted-games/{hostedGameId}/players/{gamePlayerId}";
282
+ ApiPaths["removeGamePlayer"] = "/hosted-games/{hostedGameId}/players/{gamePlayerId}";
283
+ ApiPaths["markGamePlayerAsPaid"] = "/hosted-games/{hostedGameId}/players/{gamePlayerId}/mark-as-paid";
284
+ ApiPaths["markGamePlayerAsNotPaid"] = "/hosted-games/{hostedGameId}/players/{gamePlayerId}/mark-as-not-paid";
285
+ ApiPaths["getLineupsByGameId"] = "/game-lineups/{gameId}";
286
+ ApiPaths["createGameLineups"] = "/game-lineups/{gameId}";
287
+ ApiPaths["emitGameAlerts"] = "/nearby-games-alerts/trigger-scheduled-alert-for-game";
288
+ ApiPaths["upsertUserNearbyGamesAlert"] = "/nearby-games/alerts";
289
+ ApiPaths["getUserNearbyGamesAlert"] = "/nearby-games/alerts";
290
+ ApiPaths["updateNearbyGamesAlertLocation"] = "/nearby-games/alerts/location";
291
+ ApiPaths["updateNearbyGamesAlertEnabled"] = "/nearby-games/alerts/enabled";
292
+ ApiPaths["logoutUser"] = "/users/logout";
293
+ ApiPaths["postMyUserReferral"] = "/users/referral";
294
+ ApiPaths["getMyUser"] = "/users/me";
295
+ ApiPaths["updateMyUserPartial"] = "/users/me";
296
+ ApiPaths["deleteMyUser"] = "/users/me";
297
+ ApiPaths["getMyUserStats"] = "/users/me/stats";
298
+ ApiPaths["upsertUserMetaPushNotificationEnabledValue"] = "/user-meta/push-notification-enabled";
299
+ ApiPaths["createHostedGame"] = "/hosted-games";
300
+ ApiPaths["updateHostedGame"] = "/hosted-games/{hostedGameId}";
301
+ ApiPaths["cancelHostedGame"] = "/hosted-games/{hostedGameId}";
302
+ ApiPaths["getHostedGame"] = "/hosted-games/{hostedGameId}";
303
+ ApiPaths["getUserHostedGamesFuture"] = "/hosted-games/future";
304
+ ApiPaths["getUserHostedGamesPast"] = "/hosted-games/past";
305
+ ApiPaths["getFbGroupsByGameId"] = "/game/{gameId}/fb-groups";
306
+ ApiPaths["getUserPenalties"] = "/user/{userId}/penalty";
307
+ ApiPaths["createPenalty"] = "/user/{userId}/penalty";
308
+ ApiPaths["getAllForCurrentUser"] = "/user-notifications";
309
+ ApiPaths["markAsRead"] = "/user-notifications";
310
+ ApiPaths["markAsReadClicked"] = "/user-notifications/{notificationId}/mark-as-clicked";
311
+ ApiPaths["registerDeviceToken"] = "/user-notifications/config/register-device-token";
312
+ ApiPaths["unregisterDeviceToken"] = "/user-notifications/config/unregister-device-token/{token}";
313
+ ApiPaths["getArrival"] = "/arrival";
314
+ ApiPaths["createShortLink"] = "/short-link";
315
+ ApiPaths["createRecurringGame"] = "/recurring-games";
316
+ ApiPaths["getUsers"] = "/admin/users";
317
+ ApiPaths["getGames"] = "/admin/games";
318
+ ApiPaths["getGamesForPost"] = "/admin/games-for-post";
319
+ ApiPaths["getKnownCitiesForPost"] = "/admin/known-cities";
320
+ ApiPaths["restoreRecurringGame"] = "/admin/restore-recurring-game";
321
+ ApiPaths["removeOldGameChats"] = "/admin/adhoc/remove-old-game-chats";
322
+ ApiPaths["emitGameUpdated"] = "/admin/adhoc/emit-game-updated";
323
+ ApiPaths["postCustomNotification"] = "/admin/notifications/custom";
324
+ ApiPaths["postCustomNotificationByAutomation"] = "/admin/automations/notifications/custom";
325
+ ApiPaths["getGamesForPostPublic"] = "/admin/games-for-post-public";
326
+ ApiPaths["cancelGameByAdmin"] = "/admin/moderation/game/{gameId}";
327
+ ApiPaths["deleteUserByAdmin"] = "/admin/moderation/user/{userId}";
328
+ ApiPaths["testActionNotification"] = "/admin/test-notifications/action-push";
329
+ ApiPaths["getChannelByReference"] = "/chat/channel/get-by-reference";
330
+ ApiPaths["getChannelDetails"] = "/chat/channel/{channelId}";
331
+ ApiPaths["updateChannelDetails"] = "/chat/channel/{channelId}";
332
+ ApiPaths["getChannelMembers"] = "/chat/channel/{channelId}/members";
333
+ ApiPaths["muteChannel"] = "/chat/channel/{channelId}/muted";
334
+ ApiPaths["getMyChatUser"] = "/chat/user/me";
335
+ ApiPaths["postChatWebook"] = "/chat/webhook";
336
+ ApiPaths["createOrGetSingleChannel"] = "/chat/channel/single";
337
+ ApiPaths["cleanupUnreadMessages"] = "/chat-maintenance/cleanup-unread-messages";
338
+ ApiPaths["postGameApplication"] = "/games/{gameId}/player-applications";
339
+ ApiPaths["deleteGameApplication"] = "/games/{gameId}/player-applications";
340
+ ApiPaths["rejectHostedGameApplications"] = "/hosted-games/{hostedGameId}/applications/reject-many";
341
+ ApiPaths["approveGamePlayerApplications"] = "/hosted-games/{hostedGameId}/applications/approve-many";
342
+ ApiPaths["getMyTeams"] = "/teams";
343
+ ApiPaths["createTeam"] = "/teams";
344
+ ApiPaths["getTeam"] = "/teams/{teamId}";
345
+ ApiPaths["updateTeam"] = "/teams/{teamId}";
346
+ ApiPaths["deleteTeam"] = "/teams/{teamId}";
347
+ ApiPaths["getTeamMemberCandidates"] = "/teams/{teamId}/members/candidates";
348
+ ApiPaths["addTeamMember"] = "/teams/{teamId}/members";
349
+ ApiPaths["updateTeamMember"] = "/teams/{teamId}/members/{userId}";
350
+ ApiPaths["removeTeamMember"] = "/teams/{teamId}/members/{userId}";
351
+ ApiPaths["leave"] = "/teams/{teamId}/member/me";
352
+ ApiPaths["acceptTeamInvitation"] = "/teams/{teamId}/invitations/accept";
353
+ ApiPaths["processScheduledNotification"] = "/game-notifications/scheduled-notification";
354
+ ApiPaths["createRating"] = "/rating/app";
355
+ ApiPaths["createContactMessage"] = "/contact/message";
356
+ ApiPaths["triggerNotificationsForGameFinished"] = "/game-notifications/game-finished";
357
+ ApiPaths["triggerNotificationsForGameReminder"] = "/game-notifications/game-reminder";
358
+ ApiPaths["triggerGameChatCleanup"] = "/game-notifications/game-chat-cleanup";
359
+ ApiPaths["getUserProfile"] = "/user-profile/{userId}";
360
+ ApiPaths["createComment"] = "/user-comments";
361
+ ApiPaths["getComments"] = "/user-comments/{userId}";
362
+ ApiPaths["refreshData"] = "/bi-data/refresh-data";
363
+ ApiPaths["refreshModel"] = "/bi-data/refresh-model";
364
+ ApiPaths["createManualTrophy"] = "/trophies/create-manual";
365
+ ApiPaths["getTrophiesPerUser"] = "/trophies/user/{userId}";
366
+ ApiPaths["getUserProfileGames"] = "/user/{userId}/games";
367
+ ApiPaths["getUserRank"] = "/user/{userId}/activity-rank";
368
+ ApiPaths["getUsersTopRank"] = "/activity-rank/top";
369
+ ApiPaths["generateReassignToken"] = "/hosted-games/{hostedGameId}/reassign/create-reassign-token";
370
+ ApiPaths["reassignGameByToken"] = "/hosted-games/{hostedGameId}/reassign/{reassignToken}";
371
+ ApiPaths["triggerInactiveUsersNotification"] = "/action-push/inactive-users-since-registered-notification";
372
+ ApiPaths["triggerInactiveWithoutGameApplications"] = "/action-push/inactive-users-notification";
373
+ })(ApiPaths || (exports.ApiPaths = ApiPaths = {}));
@@ -0,0 +1 @@
1
+ export * from './api';
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api"), exports);
18
+ // wersja 1.0.2 - tag staging
package/package.json CHANGED
@@ -1,13 +1,23 @@
1
1
  {
2
2
  "name": "@orlikfy/api-interfaces",
3
- "version": "1.0.2",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "kruligh",
7
7
  "type": "commonjs",
8
- "main": "src/index.ts",
9
- "types": "src/index.ts",
8
+ "main": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
10
13
  "scripts": {
11
- "test": "echo \"Error: no test specified\" && exit 1"
14
+ "build": "tsc",
15
+ "prepublishOnly": "npm run build"
16
+ },
17
+ "devDependencies": {
18
+ "typescript": "^5.9.3"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
12
22
  }
13
23
  }
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './api';
2
-
3
- // wersja 1.0.2 - tag staging