@orlikfy/api-interfaces 6.1.11 → 6.1.13
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 +2 -0
- package/dist/api.d.ts +362 -2
- package/dist/api.js +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ TypeScript interfaces generated from the Orlikfy backend OpenAPI specification.
|
|
|
4
4
|
|
|
5
5
|
# Changelog
|
|
6
6
|
|
|
7
|
+
v6.1.13 - penalty and comment revoking
|
|
8
|
+
v6.1.12 - add GET /my-games endpoint
|
|
7
9
|
v6.1.11 - private games on map - added query param
|
|
8
10
|
v6.1.10 - notification preferences, optional price in alerts
|
|
9
11
|
|
package/dist/api.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ export interface paths {
|
|
|
147
147
|
path?: never;
|
|
148
148
|
cookie?: never;
|
|
149
149
|
};
|
|
150
|
+
/** @deprecated */
|
|
150
151
|
get: operations["getPlayerGamesFuture"];
|
|
151
152
|
put?: never;
|
|
152
153
|
post?: never;
|
|
@@ -163,6 +164,7 @@ export interface paths {
|
|
|
163
164
|
path?: never;
|
|
164
165
|
cookie?: never;
|
|
165
166
|
};
|
|
167
|
+
/** @deprecated */
|
|
166
168
|
get: operations["getPlayerGamesPast"];
|
|
167
169
|
put?: never;
|
|
168
170
|
post?: never;
|
|
@@ -560,6 +562,7 @@ export interface paths {
|
|
|
560
562
|
path?: never;
|
|
561
563
|
cookie?: never;
|
|
562
564
|
};
|
|
565
|
+
/** @deprecated */
|
|
563
566
|
get: operations["getUserHostedGamesFuture"];
|
|
564
567
|
put?: never;
|
|
565
568
|
post?: never;
|
|
@@ -576,6 +579,7 @@ export interface paths {
|
|
|
576
579
|
path?: never;
|
|
577
580
|
cookie?: never;
|
|
578
581
|
};
|
|
582
|
+
/** @deprecated */
|
|
579
583
|
get: operations["getUserHostedGamesPast"];
|
|
580
584
|
put?: never;
|
|
581
585
|
post?: never;
|
|
@@ -643,6 +647,22 @@ export interface paths {
|
|
|
643
647
|
patch?: never;
|
|
644
648
|
trace?: never;
|
|
645
649
|
};
|
|
650
|
+
"/my-games": {
|
|
651
|
+
parameters: {
|
|
652
|
+
query?: never;
|
|
653
|
+
header?: never;
|
|
654
|
+
path?: never;
|
|
655
|
+
cookie?: never;
|
|
656
|
+
};
|
|
657
|
+
get: operations["getMyGames"];
|
|
658
|
+
put?: never;
|
|
659
|
+
post?: never;
|
|
660
|
+
delete?: never;
|
|
661
|
+
options?: never;
|
|
662
|
+
head?: never;
|
|
663
|
+
patch?: never;
|
|
664
|
+
trace?: never;
|
|
665
|
+
};
|
|
646
666
|
"/user-notifications": {
|
|
647
667
|
parameters: {
|
|
648
668
|
query?: never;
|
|
@@ -1562,6 +1582,25 @@ export interface paths {
|
|
|
1562
1582
|
patch?: never;
|
|
1563
1583
|
trace?: never;
|
|
1564
1584
|
};
|
|
1585
|
+
"/user-comments/{commentId}": {
|
|
1586
|
+
parameters: {
|
|
1587
|
+
query?: never;
|
|
1588
|
+
header?: never;
|
|
1589
|
+
path: {
|
|
1590
|
+
commentId: string;
|
|
1591
|
+
};
|
|
1592
|
+
cookie?: never;
|
|
1593
|
+
};
|
|
1594
|
+
get?: never;
|
|
1595
|
+
put?: never;
|
|
1596
|
+
post?: never;
|
|
1597
|
+
/** revokeUserComment */
|
|
1598
|
+
delete: operations["revokeComment"];
|
|
1599
|
+
options?: never;
|
|
1600
|
+
head?: never;
|
|
1601
|
+
patch?: never;
|
|
1602
|
+
trace?: never;
|
|
1603
|
+
};
|
|
1565
1604
|
"/bi-data/refresh-data": {
|
|
1566
1605
|
parameters: {
|
|
1567
1606
|
query?: never;
|
|
@@ -1754,6 +1793,65 @@ export interface paths {
|
|
|
1754
1793
|
patch?: never;
|
|
1755
1794
|
trace?: never;
|
|
1756
1795
|
};
|
|
1796
|
+
"/games/{gameId}/moderator-invite": {
|
|
1797
|
+
parameters: {
|
|
1798
|
+
query?: never;
|
|
1799
|
+
header?: never;
|
|
1800
|
+
path: {
|
|
1801
|
+
gameId: string;
|
|
1802
|
+
};
|
|
1803
|
+
cookie?: never;
|
|
1804
|
+
};
|
|
1805
|
+
get?: never;
|
|
1806
|
+
put?: never;
|
|
1807
|
+
/** generateInviteToken */
|
|
1808
|
+
post: operations["generateInviteToken"];
|
|
1809
|
+
delete?: never;
|
|
1810
|
+
options?: never;
|
|
1811
|
+
head?: never;
|
|
1812
|
+
patch?: never;
|
|
1813
|
+
trace?: never;
|
|
1814
|
+
};
|
|
1815
|
+
"/games/moderator-invite/{token}/accept": {
|
|
1816
|
+
parameters: {
|
|
1817
|
+
query?: never;
|
|
1818
|
+
header?: never;
|
|
1819
|
+
path: {
|
|
1820
|
+
token: string;
|
|
1821
|
+
};
|
|
1822
|
+
cookie?: never;
|
|
1823
|
+
};
|
|
1824
|
+
get?: never;
|
|
1825
|
+
put?: never;
|
|
1826
|
+
/** acceptInvite */
|
|
1827
|
+
post: operations["acceptInvite"];
|
|
1828
|
+
delete?: never;
|
|
1829
|
+
options?: never;
|
|
1830
|
+
head?: never;
|
|
1831
|
+
patch?: never;
|
|
1832
|
+
trace?: never;
|
|
1833
|
+
};
|
|
1834
|
+
"/games/{gameId}/moderators/{userId}": {
|
|
1835
|
+
parameters: {
|
|
1836
|
+
query?: never;
|
|
1837
|
+
header?: never;
|
|
1838
|
+
path: {
|
|
1839
|
+
gameId: string;
|
|
1840
|
+
userId: string;
|
|
1841
|
+
};
|
|
1842
|
+
cookie?: never;
|
|
1843
|
+
};
|
|
1844
|
+
get?: never;
|
|
1845
|
+
put?: never;
|
|
1846
|
+
post?: never;
|
|
1847
|
+
/** removeModerator */
|
|
1848
|
+
delete: operations["removeModerator"];
|
|
1849
|
+
options?: never;
|
|
1850
|
+
head?: never;
|
|
1851
|
+
/** updateModerator */
|
|
1852
|
+
patch: operations["updateModerator"];
|
|
1853
|
+
trace?: never;
|
|
1854
|
+
};
|
|
1757
1855
|
"/action-push/inactive-users-since-registered-notification": {
|
|
1758
1856
|
parameters: {
|
|
1759
1857
|
query?: never;
|
|
@@ -2359,6 +2457,7 @@ export interface components {
|
|
|
2359
2457
|
/** Format: date-time */
|
|
2360
2458
|
revokedAt: string | null;
|
|
2361
2459
|
author: components["schemas"]["CommonUserDto"];
|
|
2460
|
+
canRevoke?: boolean;
|
|
2362
2461
|
};
|
|
2363
2462
|
HostedGamePlayerApplicationDto: {
|
|
2364
2463
|
gamePlayerApplicationId: string;
|
|
@@ -2538,6 +2637,15 @@ export interface components {
|
|
|
2538
2637
|
/** Format: date-time */
|
|
2539
2638
|
revokedAt: string;
|
|
2540
2639
|
};
|
|
2640
|
+
MyGamesPlayerDto: {
|
|
2641
|
+
approved: components["schemas"]["PlayerGameDto"][];
|
|
2642
|
+
waiting: components["schemas"]["PlayerGameDto"][];
|
|
2643
|
+
invitations: components["schemas"]["PlayerGameInvitationDto"][];
|
|
2644
|
+
};
|
|
2645
|
+
MyGamesDto: {
|
|
2646
|
+
host: components["schemas"]["HostedGameItemDto"][];
|
|
2647
|
+
player: components["schemas"]["MyGamesPlayerDto"];
|
|
2648
|
+
};
|
|
2541
2649
|
/** @enum {string} */
|
|
2542
2650
|
NotificationType: NotificationType;
|
|
2543
2651
|
TestNotificationPayload: {
|
|
@@ -2795,6 +2903,18 @@ export interface components {
|
|
|
2795
2903
|
teamId: string;
|
|
2796
2904
|
teamName: string;
|
|
2797
2905
|
};
|
|
2906
|
+
TeamMemberLeftNotificationPayload: {
|
|
2907
|
+
notificationId: string;
|
|
2908
|
+
notificationType: components["schemas"]["NotificationType"];
|
|
2909
|
+
thumbnailUrl: string | null;
|
|
2910
|
+
displayName: string;
|
|
2911
|
+
receiverUserId: string;
|
|
2912
|
+
title?: string;
|
|
2913
|
+
body?: string;
|
|
2914
|
+
teamId: string;
|
|
2915
|
+
teamName: string;
|
|
2916
|
+
memberName: string;
|
|
2917
|
+
};
|
|
2798
2918
|
UserPenaltyReceivedNotificationPayload: {
|
|
2799
2919
|
notificationId: string;
|
|
2800
2920
|
notificationType: components["schemas"]["NotificationType"];
|
|
@@ -2942,7 +3062,7 @@ export interface components {
|
|
|
2942
3062
|
sentAt: string | null;
|
|
2943
3063
|
isRead: boolean;
|
|
2944
3064
|
notificationType: components["schemas"]["notificationTypes"];
|
|
2945
|
-
payload: components["schemas"]["TestNotificationPayload"] | components["schemas"]["GameApplicationApprovedNotificationPayload"] | components["schemas"]["GameApplicationRejectedNotificationPayload"] | components["schemas"]["GameInvitationReceivedNotificationPayload"] | components["schemas"]["GameFinishedNotificationPayload"] | components["schemas"]["GameCanceledNotificationPayload"] | components["schemas"]["GamePlayerRemovedByHostNotificationPayload"] | components["schemas"]["GameLineupsCreatedNotificationPayload"] | components["schemas"]["NewGameByAlertNotificationPayload"] | components["schemas"]["GameUpdatedNotificationPayload"] | components["schemas"]["HostedGameNewApplicationNotificationPayload"] | components["schemas"]["HostedGamePlayerLeftNotificationPayload"] | components["schemas"]["HostedGamePlayerAutoApprovedNotificationPayload"] | components["schemas"]["HostedGameFinishedNotificationPayload"] | components["schemas"]["ChatNewMessageNotificationPayload"] | components["schemas"]["CustomNotificationPayload"] | components["schemas"]["TeamMemberAddedByHostNotificationPayload"] | components["schemas"]["UserPenaltyReceivedNotificationPayload"] | components["schemas"]["UserPenaltyRevokedNotificationPayload"] | components["schemas"]["NewTrophyReceivedNotificationPayload"] | components["schemas"]["NewCommentReceivedNotificationPayload"] | components["schemas"]["UserReferralReceivedNotificationPayload"] | components["schemas"]["ActionPushPlayerInvitePlayersPayload"] | components["schemas"]["ActionPushPlayerInactivePayload"] | components["schemas"]["ActionPushPlayerInactive2Payload"] | components["schemas"]["ActionPushPlayerAlertsPayload"] | components["schemas"]["ActionPushPlayerCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostTeamsDrawingPayload"] | components["schemas"]["ActionPushHostCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostCreateGroupPayload"] | components["schemas"]["ActionPushHostInvitePreviousPlayersPayload"];
|
|
3065
|
+
payload: components["schemas"]["TestNotificationPayload"] | components["schemas"]["GameApplicationApprovedNotificationPayload"] | components["schemas"]["GameApplicationRejectedNotificationPayload"] | components["schemas"]["GameInvitationReceivedNotificationPayload"] | components["schemas"]["GameFinishedNotificationPayload"] | components["schemas"]["GameCanceledNotificationPayload"] | components["schemas"]["GamePlayerRemovedByHostNotificationPayload"] | components["schemas"]["GameLineupsCreatedNotificationPayload"] | components["schemas"]["NewGameByAlertNotificationPayload"] | components["schemas"]["GameUpdatedNotificationPayload"] | components["schemas"]["HostedGameNewApplicationNotificationPayload"] | components["schemas"]["HostedGamePlayerLeftNotificationPayload"] | components["schemas"]["HostedGamePlayerAutoApprovedNotificationPayload"] | components["schemas"]["HostedGameFinishedNotificationPayload"] | components["schemas"]["ChatNewMessageNotificationPayload"] | components["schemas"]["CustomNotificationPayload"] | components["schemas"]["TeamMemberAddedByHostNotificationPayload"] | components["schemas"]["TeamMemberLeftNotificationPayload"] | components["schemas"]["UserPenaltyReceivedNotificationPayload"] | components["schemas"]["UserPenaltyRevokedNotificationPayload"] | components["schemas"]["NewTrophyReceivedNotificationPayload"] | components["schemas"]["NewCommentReceivedNotificationPayload"] | components["schemas"]["UserReferralReceivedNotificationPayload"] | components["schemas"]["ActionPushPlayerInvitePlayersPayload"] | components["schemas"]["ActionPushPlayerInactivePayload"] | components["schemas"]["ActionPushPlayerInactive2Payload"] | components["schemas"]["ActionPushPlayerAlertsPayload"] | components["schemas"]["ActionPushPlayerCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostTeamsDrawingPayload"] | components["schemas"]["ActionPushHostCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostCreateGroupPayload"] | components["schemas"]["ActionPushHostInvitePreviousPlayersPayload"];
|
|
2946
3066
|
};
|
|
2947
3067
|
GetUserNotificationsDto: {
|
|
2948
3068
|
notifications: components["schemas"]["NotificationDto"][];
|
|
@@ -3375,6 +3495,7 @@ export interface components {
|
|
|
3375
3495
|
/** Format: date-time */
|
|
3376
3496
|
createdAt: string;
|
|
3377
3497
|
author: components["schemas"]["CommentAuthor"];
|
|
3498
|
+
canRevoke?: boolean;
|
|
3378
3499
|
};
|
|
3379
3500
|
UserCommentsDto: {
|
|
3380
3501
|
userId: string;
|
|
@@ -3445,6 +3566,12 @@ export interface components {
|
|
|
3445
3566
|
token: string;
|
|
3446
3567
|
frontendURL: string;
|
|
3447
3568
|
};
|
|
3569
|
+
GenerateInviteTokenResponseDto: {
|
|
3570
|
+
token: string;
|
|
3571
|
+
};
|
|
3572
|
+
UpdateModeratorDto: {
|
|
3573
|
+
isRecurringModerator: boolean;
|
|
3574
|
+
};
|
|
3448
3575
|
InactiveUsersNotificationResponseDto: {
|
|
3449
3576
|
/** @description Number of users who were processed for notification */
|
|
3450
3577
|
processedUsersCount: number;
|
|
@@ -3543,6 +3670,8 @@ export type GetGameFbGroupsDto = components['schemas']['GetGameFbGroupsDto'];
|
|
|
3543
3670
|
export type GetUserPenaltiesDto = components['schemas']['GetUserPenaltiesDto'];
|
|
3544
3671
|
export type CreateUserPenaltyDto = components['schemas']['CreateUserPenaltyDto'];
|
|
3545
3672
|
export type RevokeUserPenaltyResponseDto = components['schemas']['RevokeUserPenaltyResponseDto'];
|
|
3673
|
+
export type MyGamesPlayerDto = components['schemas']['MyGamesPlayerDto'];
|
|
3674
|
+
export type MyGamesDto = components['schemas']['MyGamesDto'];
|
|
3546
3675
|
export type TestNotificationPayload = components['schemas']['TestNotificationPayload'];
|
|
3547
3676
|
export type GameApplicationApprovedNotificationPayload = components['schemas']['GameApplicationApprovedNotificationPayload'];
|
|
3548
3677
|
export type GameApplicationRejectedNotificationPayload = components['schemas']['GameApplicationRejectedNotificationPayload'];
|
|
@@ -3560,6 +3689,7 @@ export type HostedGameFinishedNotificationPayload = components['schemas']['Hoste
|
|
|
3560
3689
|
export type ChatNewMessageNotificationPayload = components['schemas']['ChatNewMessageNotificationPayload'];
|
|
3561
3690
|
export type CustomNotificationPayload = components['schemas']['CustomNotificationPayload'];
|
|
3562
3691
|
export type TeamMemberAddedByHostNotificationPayload = components['schemas']['TeamMemberAddedByHostNotificationPayload'];
|
|
3692
|
+
export type TeamMemberLeftNotificationPayload = components['schemas']['TeamMemberLeftNotificationPayload'];
|
|
3563
3693
|
export type UserPenaltyReceivedNotificationPayload = components['schemas']['UserPenaltyReceivedNotificationPayload'];
|
|
3564
3694
|
export type UserPenaltyRevokedNotificationPayload = components['schemas']['UserPenaltyRevokedNotificationPayload'];
|
|
3565
3695
|
export type NewTrophyReceivedNotificationPayload = components['schemas']['NewTrophyReceivedNotificationPayload'];
|
|
@@ -3656,6 +3786,8 @@ export type UserLocationDto = components['schemas']['UserLocationDto'];
|
|
|
3656
3786
|
export type CheckAuthMethodDto = components['schemas']['CheckAuthMethodDto'];
|
|
3657
3787
|
export type CheckAuthMethodResponseDto = components['schemas']['CheckAuthMethodResponseDto'];
|
|
3658
3788
|
export type CreateReassignTokenResponseDto = components['schemas']['CreateReassignTokenResponseDto'];
|
|
3789
|
+
export type GenerateInviteTokenResponseDto = components['schemas']['GenerateInviteTokenResponseDto'];
|
|
3790
|
+
export type UpdateModeratorDto = components['schemas']['UpdateModeratorDto'];
|
|
3659
3791
|
export type InactiveUsersNotificationResponseDto = components['schemas']['InactiveUsersNotificationResponseDto'];
|
|
3660
3792
|
export type ActivityHistoryEntryDto = components['schemas']['ActivityHistoryEntryDto'];
|
|
3661
3793
|
export type $defs = Record<string, never>;
|
|
@@ -5340,6 +5472,41 @@ export interface operations {
|
|
|
5340
5472
|
};
|
|
5341
5473
|
};
|
|
5342
5474
|
};
|
|
5475
|
+
getMyGames: {
|
|
5476
|
+
parameters: {
|
|
5477
|
+
query?: never;
|
|
5478
|
+
header?: {
|
|
5479
|
+
/** @description Request trace id for logs */
|
|
5480
|
+
"x-trace-request-id"?: string;
|
|
5481
|
+
/** @description Session trace id for logs */
|
|
5482
|
+
"x-trace-session-id"?: string;
|
|
5483
|
+
/** @description IANA Timezone */
|
|
5484
|
+
"x-timezone"?: string;
|
|
5485
|
+
};
|
|
5486
|
+
path?: never;
|
|
5487
|
+
cookie?: never;
|
|
5488
|
+
};
|
|
5489
|
+
requestBody?: never;
|
|
5490
|
+
responses: {
|
|
5491
|
+
200: {
|
|
5492
|
+
headers: {
|
|
5493
|
+
[name: string]: unknown;
|
|
5494
|
+
};
|
|
5495
|
+
content: {
|
|
5496
|
+
"application/json": components["schemas"]["MyGamesDto"];
|
|
5497
|
+
};
|
|
5498
|
+
};
|
|
5499
|
+
/** @description Application Error */
|
|
5500
|
+
500: {
|
|
5501
|
+
headers: {
|
|
5502
|
+
[name: string]: unknown;
|
|
5503
|
+
};
|
|
5504
|
+
content: {
|
|
5505
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5506
|
+
};
|
|
5507
|
+
};
|
|
5508
|
+
};
|
|
5509
|
+
};
|
|
5343
5510
|
getAllForCurrentUser: {
|
|
5344
5511
|
parameters: {
|
|
5345
5512
|
query?: never;
|
|
@@ -7446,6 +7613,32 @@ export interface operations {
|
|
|
7446
7613
|
};
|
|
7447
7614
|
};
|
|
7448
7615
|
};
|
|
7616
|
+
revokeComment: {
|
|
7617
|
+
parameters: {
|
|
7618
|
+
query?: never;
|
|
7619
|
+
header?: {
|
|
7620
|
+
/** @description Request trace id for logs */
|
|
7621
|
+
"x-trace-request-id"?: string;
|
|
7622
|
+
/** @description Session trace id for logs */
|
|
7623
|
+
"x-trace-session-id"?: string;
|
|
7624
|
+
/** @description IANA Timezone */
|
|
7625
|
+
"x-timezone"?: string;
|
|
7626
|
+
};
|
|
7627
|
+
path: {
|
|
7628
|
+
commentId: string;
|
|
7629
|
+
};
|
|
7630
|
+
cookie?: never;
|
|
7631
|
+
};
|
|
7632
|
+
requestBody?: never;
|
|
7633
|
+
responses: {
|
|
7634
|
+
204: {
|
|
7635
|
+
headers: {
|
|
7636
|
+
[name: string]: unknown;
|
|
7637
|
+
};
|
|
7638
|
+
content?: never;
|
|
7639
|
+
};
|
|
7640
|
+
};
|
|
7641
|
+
};
|
|
7449
7642
|
refreshData: {
|
|
7450
7643
|
parameters: {
|
|
7451
7644
|
query: {
|
|
@@ -7839,6 +8032,162 @@ export interface operations {
|
|
|
7839
8032
|
};
|
|
7840
8033
|
};
|
|
7841
8034
|
};
|
|
8035
|
+
generateInviteToken: {
|
|
8036
|
+
parameters: {
|
|
8037
|
+
query?: never;
|
|
8038
|
+
header?: {
|
|
8039
|
+
/** @description Request trace id for logs */
|
|
8040
|
+
"x-trace-request-id"?: string;
|
|
8041
|
+
/** @description Session trace id for logs */
|
|
8042
|
+
"x-trace-session-id"?: string;
|
|
8043
|
+
/** @description IANA Timezone */
|
|
8044
|
+
"x-timezone"?: string;
|
|
8045
|
+
};
|
|
8046
|
+
path: {
|
|
8047
|
+
gameId: string;
|
|
8048
|
+
};
|
|
8049
|
+
cookie?: never;
|
|
8050
|
+
};
|
|
8051
|
+
requestBody?: never;
|
|
8052
|
+
responses: {
|
|
8053
|
+
200: {
|
|
8054
|
+
headers: {
|
|
8055
|
+
[name: string]: unknown;
|
|
8056
|
+
};
|
|
8057
|
+
content: {
|
|
8058
|
+
"application/json": components["schemas"]["GenerateInviteTokenResponseDto"];
|
|
8059
|
+
};
|
|
8060
|
+
};
|
|
8061
|
+
/** @description GameAlreadyPending, GameModeratorLimitReached */
|
|
8062
|
+
400: {
|
|
8063
|
+
headers: {
|
|
8064
|
+
[name: string]: unknown;
|
|
8065
|
+
};
|
|
8066
|
+
content?: never;
|
|
8067
|
+
};
|
|
8068
|
+
/** @description Application Error */
|
|
8069
|
+
500: {
|
|
8070
|
+
headers: {
|
|
8071
|
+
[name: string]: unknown;
|
|
8072
|
+
};
|
|
8073
|
+
content: {
|
|
8074
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8075
|
+
};
|
|
8076
|
+
};
|
|
8077
|
+
};
|
|
8078
|
+
};
|
|
8079
|
+
acceptInvite: {
|
|
8080
|
+
parameters: {
|
|
8081
|
+
query?: never;
|
|
8082
|
+
header?: {
|
|
8083
|
+
/** @description Request trace id for logs */
|
|
8084
|
+
"x-trace-request-id"?: string;
|
|
8085
|
+
/** @description Session trace id for logs */
|
|
8086
|
+
"x-trace-session-id"?: string;
|
|
8087
|
+
/** @description IANA Timezone */
|
|
8088
|
+
"x-timezone"?: string;
|
|
8089
|
+
};
|
|
8090
|
+
path: {
|
|
8091
|
+
token: string;
|
|
8092
|
+
};
|
|
8093
|
+
cookie?: never;
|
|
8094
|
+
};
|
|
8095
|
+
requestBody?: never;
|
|
8096
|
+
responses: {
|
|
8097
|
+
/** @description GameModeratorInviteTokenInvalid, GameModeratorLimitReached */
|
|
8098
|
+
400: {
|
|
8099
|
+
headers: {
|
|
8100
|
+
[name: string]: unknown;
|
|
8101
|
+
};
|
|
8102
|
+
content?: never;
|
|
8103
|
+
};
|
|
8104
|
+
/** @description Application Error */
|
|
8105
|
+
500: {
|
|
8106
|
+
headers: {
|
|
8107
|
+
[name: string]: unknown;
|
|
8108
|
+
};
|
|
8109
|
+
content: {
|
|
8110
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8111
|
+
};
|
|
8112
|
+
};
|
|
8113
|
+
};
|
|
8114
|
+
};
|
|
8115
|
+
removeModerator: {
|
|
8116
|
+
parameters: {
|
|
8117
|
+
query?: never;
|
|
8118
|
+
header?: {
|
|
8119
|
+
/** @description Request trace id for logs */
|
|
8120
|
+
"x-trace-request-id"?: string;
|
|
8121
|
+
/** @description Session trace id for logs */
|
|
8122
|
+
"x-trace-session-id"?: string;
|
|
8123
|
+
/** @description IANA Timezone */
|
|
8124
|
+
"x-timezone"?: string;
|
|
8125
|
+
};
|
|
8126
|
+
path: {
|
|
8127
|
+
gameId: string;
|
|
8128
|
+
userId: string;
|
|
8129
|
+
};
|
|
8130
|
+
cookie?: never;
|
|
8131
|
+
};
|
|
8132
|
+
requestBody?: never;
|
|
8133
|
+
responses: {
|
|
8134
|
+
200: {
|
|
8135
|
+
headers: {
|
|
8136
|
+
[name: string]: unknown;
|
|
8137
|
+
};
|
|
8138
|
+
content?: never;
|
|
8139
|
+
};
|
|
8140
|
+
/** @description Application Error */
|
|
8141
|
+
500: {
|
|
8142
|
+
headers: {
|
|
8143
|
+
[name: string]: unknown;
|
|
8144
|
+
};
|
|
8145
|
+
content: {
|
|
8146
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8147
|
+
};
|
|
8148
|
+
};
|
|
8149
|
+
};
|
|
8150
|
+
};
|
|
8151
|
+
updateModerator: {
|
|
8152
|
+
parameters: {
|
|
8153
|
+
query?: never;
|
|
8154
|
+
header?: {
|
|
8155
|
+
/** @description Request trace id for logs */
|
|
8156
|
+
"x-trace-request-id"?: string;
|
|
8157
|
+
/** @description Session trace id for logs */
|
|
8158
|
+
"x-trace-session-id"?: string;
|
|
8159
|
+
/** @description IANA Timezone */
|
|
8160
|
+
"x-timezone"?: string;
|
|
8161
|
+
};
|
|
8162
|
+
path: {
|
|
8163
|
+
gameId: string;
|
|
8164
|
+
userId: string;
|
|
8165
|
+
};
|
|
8166
|
+
cookie?: never;
|
|
8167
|
+
};
|
|
8168
|
+
requestBody: {
|
|
8169
|
+
content: {
|
|
8170
|
+
"application/json": components["schemas"]["UpdateModeratorDto"];
|
|
8171
|
+
};
|
|
8172
|
+
};
|
|
8173
|
+
responses: {
|
|
8174
|
+
200: {
|
|
8175
|
+
headers: {
|
|
8176
|
+
[name: string]: unknown;
|
|
8177
|
+
};
|
|
8178
|
+
content?: never;
|
|
8179
|
+
};
|
|
8180
|
+
/** @description Application Error */
|
|
8181
|
+
500: {
|
|
8182
|
+
headers: {
|
|
8183
|
+
[name: string]: unknown;
|
|
8184
|
+
};
|
|
8185
|
+
content: {
|
|
8186
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
8187
|
+
};
|
|
8188
|
+
};
|
|
8189
|
+
};
|
|
8190
|
+
};
|
|
7842
8191
|
triggerInactiveUsersNotification: {
|
|
7843
8192
|
parameters: {
|
|
7844
8193
|
query: {
|
|
@@ -8117,7 +8466,10 @@ export declare enum KnownException {
|
|
|
8117
8466
|
UserPenaltyAlreadyRevoked = "UserPenaltyAlreadyRevoked",
|
|
8118
8467
|
NotAParticipantOfGame = "NotAParticipantOfGame",
|
|
8119
8468
|
CategoryNotEditable = "CategoryNotEditable",
|
|
8120
|
-
UnknownNotificationCategory = "UnknownNotificationCategory"
|
|
8469
|
+
UnknownNotificationCategory = "UnknownNotificationCategory",
|
|
8470
|
+
NotTheHostOfGame = "NotTheHostOfGame",
|
|
8471
|
+
GameModeratorLimitReached = "GameModeratorLimitReached",
|
|
8472
|
+
GameModeratorInviteTokenInvalid = "GameModeratorInviteTokenInvalid"
|
|
8121
8473
|
}
|
|
8122
8474
|
export declare enum Visibility {
|
|
8123
8475
|
PUBLIC = "PUBLIC",
|
|
@@ -8225,6 +8577,7 @@ export declare enum NotificationType {
|
|
|
8225
8577
|
user_penalty_received = "user-penalty-received",
|
|
8226
8578
|
user_penalty_revoked = "user-penalty-revoked",
|
|
8227
8579
|
team_member_added_by_host = "team-member-added-by-host",
|
|
8580
|
+
team_member_left = "team-member-left",
|
|
8228
8581
|
new_trophy_received = "new-trophy-received",
|
|
8229
8582
|
new_comment_received = "new-comment-received",
|
|
8230
8583
|
user_referral_received = "user-referral-received",
|
|
@@ -8276,6 +8629,7 @@ export declare enum NotificationTypes {
|
|
|
8276
8629
|
user_penalty_received = "user-penalty-received",
|
|
8277
8630
|
user_penalty_revoked = "user-penalty-revoked",
|
|
8278
8631
|
team_member_added_by_host = "team-member-added-by-host",
|
|
8632
|
+
team_member_left = "team-member-left",
|
|
8279
8633
|
new_trophy_received = "new-trophy-received",
|
|
8280
8634
|
new_comment_received = "new-comment-received",
|
|
8281
8635
|
user_referral_received = "user-referral-received",
|
|
@@ -8416,6 +8770,7 @@ export declare enum ApiPaths {
|
|
|
8416
8770
|
getUserPenalties = "/user/{userId}/penalty",
|
|
8417
8771
|
createPenalty = "/user/{userId}/penalty",
|
|
8418
8772
|
revokePenalty = "/penalties/{userPenaltyId}",
|
|
8773
|
+
getMyGames = "/my-games",
|
|
8419
8774
|
getAllForCurrentUser = "/user-notifications",
|
|
8420
8775
|
markAsRead = "/user-notifications",
|
|
8421
8776
|
markAsReadClicked = "/user-notifications/{notificationId}/mark-as-clicked",
|
|
@@ -8475,6 +8830,7 @@ export declare enum ApiPaths {
|
|
|
8475
8830
|
getUserProfile = "/user-profile/{userId}",
|
|
8476
8831
|
createComment = "/user-comments",
|
|
8477
8832
|
getComments = "/user-comments/{userId}",
|
|
8833
|
+
revokeComment = "/user-comments/{commentId}",
|
|
8478
8834
|
refreshData = "/bi-data/refresh-data",
|
|
8479
8835
|
refreshModel = "/bi-data/refresh-model",
|
|
8480
8836
|
createManualTrophy = "/trophies/create-manual",
|
|
@@ -8486,6 +8842,10 @@ export declare enum ApiPaths {
|
|
|
8486
8842
|
checkAuthMethod = "/auth/check-auth-method",
|
|
8487
8843
|
generateReassignToken = "/hosted-games/{hostedGameId}/reassign/create-reassign-token",
|
|
8488
8844
|
reassignGameByToken = "/hosted-games/{hostedGameId}/reassign/{reassignToken}",
|
|
8845
|
+
generateInviteToken = "/games/{gameId}/moderator-invite",
|
|
8846
|
+
acceptInvite = "/games/moderator-invite/{token}/accept",
|
|
8847
|
+
removeModerator = "/games/{gameId}/moderators/{userId}",
|
|
8848
|
+
updateModerator = "/games/{gameId}/moderators/{userId}",
|
|
8489
8849
|
triggerInactiveUsersNotification = "/action-push/inactive-users-since-registered-notification",
|
|
8490
8850
|
triggerInactiveWithoutGameApplications = "/action-push/inactive-users-notification",
|
|
8491
8851
|
collect = "/kpi-snapshots/collect",
|
package/dist/api.js
CHANGED
|
@@ -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) {
|
|
@@ -161,6 +164,7 @@ var NotificationType;
|
|
|
161
164
|
NotificationType["user_penalty_received"] = "user-penalty-received";
|
|
162
165
|
NotificationType["user_penalty_revoked"] = "user-penalty-revoked";
|
|
163
166
|
NotificationType["team_member_added_by_host"] = "team-member-added-by-host";
|
|
167
|
+
NotificationType["team_member_left"] = "team-member-left";
|
|
164
168
|
NotificationType["new_trophy_received"] = "new-trophy-received";
|
|
165
169
|
NotificationType["new_comment_received"] = "new-comment-received";
|
|
166
170
|
NotificationType["user_referral_received"] = "user-referral-received";
|
|
@@ -215,6 +219,7 @@ var NotificationTypes;
|
|
|
215
219
|
NotificationTypes["user_penalty_received"] = "user-penalty-received";
|
|
216
220
|
NotificationTypes["user_penalty_revoked"] = "user-penalty-revoked";
|
|
217
221
|
NotificationTypes["team_member_added_by_host"] = "team-member-added-by-host";
|
|
222
|
+
NotificationTypes["team_member_left"] = "team-member-left";
|
|
218
223
|
NotificationTypes["new_trophy_received"] = "new-trophy-received";
|
|
219
224
|
NotificationTypes["new_comment_received"] = "new-comment-received";
|
|
220
225
|
NotificationTypes["user_referral_received"] = "user-referral-received";
|
|
@@ -366,6 +371,7 @@ var ApiPaths;
|
|
|
366
371
|
ApiPaths["getUserPenalties"] = "/user/{userId}/penalty";
|
|
367
372
|
ApiPaths["createPenalty"] = "/user/{userId}/penalty";
|
|
368
373
|
ApiPaths["revokePenalty"] = "/penalties/{userPenaltyId}";
|
|
374
|
+
ApiPaths["getMyGames"] = "/my-games";
|
|
369
375
|
ApiPaths["getAllForCurrentUser"] = "/user-notifications";
|
|
370
376
|
ApiPaths["markAsRead"] = "/user-notifications";
|
|
371
377
|
ApiPaths["markAsReadClicked"] = "/user-notifications/{notificationId}/mark-as-clicked";
|
|
@@ -425,6 +431,7 @@ var ApiPaths;
|
|
|
425
431
|
ApiPaths["getUserProfile"] = "/user-profile/{userId}";
|
|
426
432
|
ApiPaths["createComment"] = "/user-comments";
|
|
427
433
|
ApiPaths["getComments"] = "/user-comments/{userId}";
|
|
434
|
+
ApiPaths["revokeComment"] = "/user-comments/{commentId}";
|
|
428
435
|
ApiPaths["refreshData"] = "/bi-data/refresh-data";
|
|
429
436
|
ApiPaths["refreshModel"] = "/bi-data/refresh-model";
|
|
430
437
|
ApiPaths["createManualTrophy"] = "/trophies/create-manual";
|
|
@@ -436,6 +443,10 @@ var ApiPaths;
|
|
|
436
443
|
ApiPaths["checkAuthMethod"] = "/auth/check-auth-method";
|
|
437
444
|
ApiPaths["generateReassignToken"] = "/hosted-games/{hostedGameId}/reassign/create-reassign-token";
|
|
438
445
|
ApiPaths["reassignGameByToken"] = "/hosted-games/{hostedGameId}/reassign/{reassignToken}";
|
|
446
|
+
ApiPaths["generateInviteToken"] = "/games/{gameId}/moderator-invite";
|
|
447
|
+
ApiPaths["acceptInvite"] = "/games/moderator-invite/{token}/accept";
|
|
448
|
+
ApiPaths["removeModerator"] = "/games/{gameId}/moderators/{userId}";
|
|
449
|
+
ApiPaths["updateModerator"] = "/games/{gameId}/moderators/{userId}";
|
|
439
450
|
ApiPaths["triggerInactiveUsersNotification"] = "/action-push/inactive-users-since-registered-notification";
|
|
440
451
|
ApiPaths["triggerInactiveWithoutGameApplications"] = "/action-push/inactive-users-notification";
|
|
441
452
|
ApiPaths["collect"] = "/kpi-snapshots/collect";
|