@orlikfy/api-interfaces 1.0.2 → 3.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.
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # @orlikfy/api-interfaces
2
+
3
+ TypeScript interfaces generated from the Orlikfy backend OpenAPI specification.
4
+
5
+ ## Publishing New Version
6
+
7
+ ### 1. Generate Latest OpenAPI Spec
8
+
9
+ Run the server locally to ensure the latest `openapi.yaml` is generated:
10
+
11
+ ```bash
12
+ cd server
13
+ npm run start:dev
14
+ ```
15
+
16
+ > Note: This step will be automated in the future.
17
+
18
+ ### 2. Generate TypeScript Interfaces
19
+
20
+ From the `server/` directory:
21
+
22
+ ```bash
23
+ npm run api:generate
24
+ ```
25
+
26
+ This generates TypeScript types from `openapi.yaml` into `npm-api-interfaces/src/api.ts`.
27
+
28
+ ### 3. Build
29
+
30
+ From the `npm-api-interfaces/` directory:
31
+
32
+ ```bash
33
+ npm run build
34
+ ```
35
+
36
+ ### 4. Update Version
37
+
38
+ Update the version in `package.json`:
39
+
40
+ ```bash
41
+ npm version patch # or minor/major
42
+ ```
43
+
44
+ ### 5. Publish
45
+
46
+ ```bash
47
+ npm publish
48
+ ```
@@ -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: {
@@ -7219,13 +7218,11 @@ export interface operations {
7219
7218
  };
7220
7219
  requestBody?: never;
7221
7220
  responses: {
7222
- 200: {
7221
+ 201: {
7223
7222
  headers: {
7224
7223
  [name: string]: unknown;
7225
7224
  };
7226
- content: {
7227
- "application/json": components["schemas"]["CreateReassignTokenResponseDto"];
7228
- };
7225
+ content?: never;
7229
7226
  };
7230
7227
  /** @description Application Error */
7231
7228
  500: {
@@ -7295,7 +7292,7 @@ export interface operations {
7295
7292
  };
7296
7293
  };
7297
7294
  }
7298
- export enum KnownException {
7295
+ export declare enum KnownException {
7299
7296
  UserBanned = "UserBanned",
7300
7297
  ValidationException = "ValidationException",
7301
7298
  HostApprovalAllSlotsAlreadyTaken = "HostApprovalAllSlotsAlreadyTaken",
@@ -7322,52 +7319,52 @@ export enum KnownException {
7322
7319
  UserDisplayNameNotSet = "UserDisplayNameNotSet",
7323
7320
  YouHaveAlreadyGivenThisComment = "YouHaveAlreadyGivenThisComment"
7324
7321
  }
7325
- export enum Visibility {
7322
+ export declare enum Visibility {
7326
7323
  PUBLIC = "PUBLIC",
7327
7324
  PRIVATE = "PRIVATE"
7328
7325
  }
7329
- export enum PriceCurrency {
7326
+ export declare enum PriceCurrency {
7330
7327
  PLN = "PLN"
7331
7328
  }
7332
- export enum PaymentTypes {
7329
+ export declare enum PaymentTypes {
7333
7330
  CASH = "CASH",
7334
7331
  BLIK = "BLIK",
7335
7332
  TRANSFER = "TRANSFER"
7336
7333
  }
7337
- export enum Level {
7334
+ export declare enum Level {
7338
7335
  BEGINNER = "BEGINNER",
7339
7336
  INTERMEDIATE = "INTERMEDIATE",
7340
7337
  ADVANCED = "ADVANCED",
7341
7338
  PROFESSIONAL = "PROFESSIONAL",
7342
7339
  INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER"
7343
7340
  }
7344
- export enum UserParticipationStatus {
7341
+ export declare enum UserParticipationStatus {
7345
7342
  Applied = "Applied",
7346
7343
  Approved = "Approved",
7347
7344
  Invited = "Invited",
7348
7345
  Host = "Host",
7349
7346
  Empty = "Empty"
7350
7347
  }
7351
- export enum AppPreferredPlayerPosition {
7348
+ export declare enum AppPreferredPlayerPosition {
7352
7349
  GOALKEEPER = "GOALKEEPER",
7353
7350
  BACK = "BACK",
7354
7351
  MIDFIELDER = "MIDFIELDER",
7355
7352
  STRIKER = "STRIKER"
7356
7353
  }
7357
- export enum AppGameLocationType {
7354
+ export declare enum AppGameLocationType {
7358
7355
  OPEN_FIELD = "OPEN_FIELD",
7359
7356
  INDOOR = "INDOOR",
7360
7357
  DOME = "DOME",
7361
7358
  FIELD_FULL = "FIELD_FULL"
7362
7359
  }
7363
- export enum GameLevelEnum {
7360
+ export declare enum GameLevelEnum {
7364
7361
  BEGINNER = "BEGINNER",
7365
7362
  INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER",
7366
7363
  INTERMEDIATE = "INTERMEDIATE",
7367
7364
  ADVANCED = "ADVANCED",
7368
7365
  PROFESSIONAL = "PROFESSIONAL"
7369
7366
  }
7370
- export enum Weekday {
7367
+ export declare enum Weekday {
7371
7368
  SUNDAY = "SUNDAY",
7372
7369
  MONDAY = "MONDAY",
7373
7370
  TUESDAY = "TUESDAY",
@@ -7376,29 +7373,29 @@ export enum Weekday {
7376
7373
  FRIDAY = "FRIDAY",
7377
7374
  SATURDAY = "SATURDAY"
7378
7375
  }
7379
- export enum AppProfileType {
7376
+ export declare enum AppProfileType {
7380
7377
  player = "player",
7381
7378
  host = "host"
7382
7379
  }
7383
- export enum AppGameLevel {
7380
+ export declare enum AppGameLevel {
7384
7381
  BEGINNER = "BEGINNER",
7385
7382
  INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER",
7386
7383
  INTERMEDIATE = "INTERMEDIATE",
7387
7384
  ADVANCED = "ADVANCED",
7388
7385
  PROFESSIONAL = "PROFESSIONAL"
7389
7386
  }
7390
- export enum PenaltyType {
7387
+ export declare enum PenaltyType {
7391
7388
  YELLOW = "YELLOW",
7392
7389
  RED = "RED"
7393
7390
  }
7394
- export enum PenaltyReason {
7391
+ export declare enum PenaltyReason {
7395
7392
  ABSENCE = "ABSENCE",
7396
7393
  LEAVING_30_MIN = "LEAVING_30_MIN",
7397
7394
  LATE_15_MIN = "LATE_15_MIN",
7398
7395
  MISMATCHED_LEVEL = "MISMATCHED_LEVEL",
7399
7396
  UNSPORTSMANLIKE_BEHAVIOR = "UNSPORTSMANLIKE_BEHAVIOR"
7400
7397
  }
7401
- export enum NotificationType {
7398
+ export declare enum NotificationType {
7402
7399
  test = "test",
7403
7400
  game_application_approved = "game-application-approved",
7404
7401
  game_application_rejected = "game-application-rejected",
@@ -7437,17 +7434,17 @@ export enum NotificationType {
7437
7434
  action_push_host_create_group = "action-push-host-create-group",
7438
7435
  action_push_host_invite_previous_players = "action-push-host-invite-previous-players"
7439
7436
  }
7440
- export enum ChatChannelType {
7437
+ export declare enum ChatChannelType {
7441
7438
  single = "single",
7442
7439
  multi = "multi",
7443
7440
  team = "team"
7444
7441
  }
7445
- export enum CustomNotificationType {
7442
+ export declare enum CustomNotificationType {
7446
7443
  page = "page",
7447
7444
  modal = "modal",
7448
7445
  redirect = "redirect"
7449
7446
  }
7450
- export enum NotificationTypes {
7447
+ export declare enum NotificationTypes {
7451
7448
  test = "test",
7452
7449
  game_application_approved = "game-application-approved",
7453
7450
  game_application_rejected = "game-application-rejected",
@@ -7486,30 +7483,30 @@ export enum NotificationTypes {
7486
7483
  action_push_host_create_group = "action-push-host-create-group",
7487
7484
  action_push_host_invite_previous_players = "action-push-host-invite-previous-players"
7488
7485
  }
7489
- export enum ArrivalType {
7486
+ export declare enum ArrivalType {
7490
7487
  hosted_game = "hosted-game",
7491
7488
  player_game = "player-game"
7492
7489
  }
7493
- export enum LinkSuffixOption {
7490
+ export declare enum LinkSuffixOption {
7494
7491
  SHORT = "SHORT"
7495
7492
  }
7496
- export enum UserRoleEnum {
7493
+ export declare enum UserRoleEnum {
7497
7494
  USER = "USER",
7498
7495
  ADMIN = "ADMIN"
7499
7496
  }
7500
- export enum MemberRole {
7497
+ export declare enum MemberRole {
7501
7498
  Host = "Host",
7502
7499
  Moderator = "Moderator",
7503
7500
  Member = "Member"
7504
7501
  }
7505
- export enum CommentTypeEnum {
7502
+ export declare enum CommentTypeEnum {
7506
7503
  GOOD_PLAYER = "GOOD_PLAYER",
7507
7504
  FAIR_PLAY = "FAIR_PLAY",
7508
7505
  TEAM_PLAY = "TEAM_PLAY",
7509
7506
  HELPFUL = "HELPFUL",
7510
7507
  SPRINTER = "SPRINTER"
7511
7508
  }
7512
- export enum AppTrophyType {
7509
+ export declare enum AppTrophyType {
7513
7510
  HOSTED_GAMES_5 = "HOSTED_GAMES_5",
7514
7511
  HOSTED_GAMES_25 = "HOSTED_GAMES_25",
7515
7512
  HOSTED_GAMES_50 = "HOSTED_GAMES_50",
@@ -7526,7 +7523,7 @@ export enum AppTrophyType {
7526
7523
  PLAYER_COMMENT_HELPFUL_10 = "PLAYER_COMMENT_HELPFUL_10",
7527
7524
  PLAYER_COMMENT_SPRINTER_10 = "PLAYER_COMMENT_SPRINTER_10"
7528
7525
  }
7529
- export enum ApiPaths {
7526
+ export declare enum ApiPaths {
7530
7527
  getHello = "/hello",
7531
7528
  getError = "/error",
7532
7529
  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": "3.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