@orlikfy/api-interfaces 6.1.0 → 6.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +89 -2
- package/dist/api.js +7 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -645,6 +645,26 @@ export interface paths {
|
|
|
645
645
|
patch?: never;
|
|
646
646
|
trace?: never;
|
|
647
647
|
};
|
|
648
|
+
"/user/{userId}/penalty/{userPenaltyId}/revoke": {
|
|
649
|
+
parameters: {
|
|
650
|
+
query?: never;
|
|
651
|
+
header?: never;
|
|
652
|
+
path: {
|
|
653
|
+
userId: string;
|
|
654
|
+
userPenaltyId: string;
|
|
655
|
+
};
|
|
656
|
+
cookie?: never;
|
|
657
|
+
};
|
|
658
|
+
get?: never;
|
|
659
|
+
put?: never;
|
|
660
|
+
post?: never;
|
|
661
|
+
delete?: never;
|
|
662
|
+
options?: never;
|
|
663
|
+
head?: never;
|
|
664
|
+
/** revokeUserPenalty */
|
|
665
|
+
patch: operations["revokePenalty"];
|
|
666
|
+
trace?: never;
|
|
667
|
+
};
|
|
648
668
|
"/user-notifications": {
|
|
649
669
|
parameters: {
|
|
650
670
|
query?: never;
|
|
@@ -2188,6 +2208,7 @@ export interface components {
|
|
|
2188
2208
|
gameContactPhone?: string | null;
|
|
2189
2209
|
visibility?: components["schemas"]["visibility"];
|
|
2190
2210
|
locationType?: components["schemas"]["AppGameLocationType"];
|
|
2211
|
+
teamId?: string | null;
|
|
2191
2212
|
};
|
|
2192
2213
|
HostedGameDtoLocation: {
|
|
2193
2214
|
locationId: string;
|
|
@@ -2214,6 +2235,8 @@ export interface components {
|
|
|
2214
2235
|
expirationDate: string;
|
|
2215
2236
|
/** Format: date-time */
|
|
2216
2237
|
penaltyDate: string;
|
|
2238
|
+
/** Format: date-time */
|
|
2239
|
+
revokedAt: string | null;
|
|
2217
2240
|
author: components["schemas"]["CommonUserDto"];
|
|
2218
2241
|
};
|
|
2219
2242
|
HostedGamePlayerApplicationDto: {
|
|
@@ -2377,6 +2400,11 @@ export interface components {
|
|
|
2377
2400
|
penaltyType: components["schemas"]["PenaltyType"];
|
|
2378
2401
|
reason: components["schemas"]["PenaltyReason"];
|
|
2379
2402
|
};
|
|
2403
|
+
RevokeUserPenaltyResponseDto: {
|
|
2404
|
+
userPenaltyId: string;
|
|
2405
|
+
/** Format: date-time */
|
|
2406
|
+
revokedAt: string;
|
|
2407
|
+
};
|
|
2380
2408
|
/** @enum {string} */
|
|
2381
2409
|
NotificationType: NotificationType;
|
|
2382
2410
|
TestNotificationPayload: {
|
|
@@ -2661,6 +2689,18 @@ export interface components {
|
|
|
2661
2689
|
penaltyType: string;
|
|
2662
2690
|
penaltyReason: string;
|
|
2663
2691
|
};
|
|
2692
|
+
UserPenaltyRevokedNotificationPayload: {
|
|
2693
|
+
notificationId: string;
|
|
2694
|
+
notificationType: components["schemas"]["NotificationType"];
|
|
2695
|
+
thumbnailUrl: string | null;
|
|
2696
|
+
displayName: string;
|
|
2697
|
+
receiverUserId: string;
|
|
2698
|
+
title?: string;
|
|
2699
|
+
body?: string;
|
|
2700
|
+
userPenaltyId: string;
|
|
2701
|
+
penaltyType: string;
|
|
2702
|
+
penaltyReason: string;
|
|
2703
|
+
};
|
|
2664
2704
|
NewTrophyReceivedNotificationPayload: {
|
|
2665
2705
|
notificationId: string;
|
|
2666
2706
|
notificationType: components["schemas"]["NotificationType"];
|
|
@@ -2838,7 +2878,7 @@ export interface components {
|
|
|
2838
2878
|
sentAt: string | null;
|
|
2839
2879
|
isRead: boolean;
|
|
2840
2880
|
notificationType: components["schemas"]["notificationTypes"];
|
|
2841
|
-
payload: components["schemas"]["TestNotificationPayload"] | components["schemas"]["GameApplicationApprovedNotificationPayload"] | components["schemas"]["GameApplicationRejectedNotificationPayload"] | components["schemas"]["GameInvitationReceivedNotificationPayload"] | components["schemas"]["GameReminderNotificationPayload"] | components["schemas"]["GameFinishedNotificationPayload"] | components["schemas"]["GameCanceledNotificationPayload"] | components["schemas"]["GamePlayerRemovedByHostNotificationPayload"] | components["schemas"]["GameLineupsCreatedNotificationPayload"] | components["schemas"]["NewGameByAlertNotificationPayload"] | components["schemas"]["HostedGameNewApplicationNotificationPayload"] | components["schemas"]["HostedGamePlayerLeftNotificationPayload"] | components["schemas"]["HostedGamePlayerAutoApprovedNotificationPayload"] | components["schemas"]["HostedGameFinishedNotificationPayload"] | components["schemas"]["HostedGameReminderNotificationPayload"] | components["schemas"]["ChatNewMessageNotificationPayload"] | components["schemas"]["CustomNotificationPayload"] | components["schemas"]["TeamMemberAddedByHostNotificationPayload"] | components["schemas"]["UserPenaltyReceivedNotificationPayload"] | components["schemas"]["NewTrophyReceivedNotificationPayload"] | components["schemas"]["NewCommentReceivedNotificationPayload"] | components["schemas"]["UserReferralReceivedNotificationPayload"] | components["schemas"]["ActionPushPlayerCollectPointsPayload"] | components["schemas"]["ActionPushPlayerInvitePlayersPayload"] | components["schemas"]["ActionPushPlayerInactivePayload"] | components["schemas"]["ActionPushPlayerAchievementsPayload"] | components["schemas"]["ActionPushPlayerInactive2Payload"] | components["schemas"]["ActionPushPlayerAlertsPayload"] | components["schemas"]["ActionPushPlayerCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostCollectPointsPayload"] | components["schemas"]["ActionPushHostInvitePlayersPayload"] | components["schemas"]["ActionPushHostInactivePayload"] | components["schemas"]["ActionPushHostAchievementsPayload"] | components["schemas"]["ActionPushHostTeamsDrawingPayload"] | components["schemas"]["ActionPushHostCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostCreateGroupPayload"] | components["schemas"]["ActionPushHostInvitePreviousPlayersPayload"];
|
|
2881
|
+
payload: components["schemas"]["TestNotificationPayload"] | components["schemas"]["GameApplicationApprovedNotificationPayload"] | components["schemas"]["GameApplicationRejectedNotificationPayload"] | components["schemas"]["GameInvitationReceivedNotificationPayload"] | components["schemas"]["GameReminderNotificationPayload"] | components["schemas"]["GameFinishedNotificationPayload"] | components["schemas"]["GameCanceledNotificationPayload"] | components["schemas"]["GamePlayerRemovedByHostNotificationPayload"] | components["schemas"]["GameLineupsCreatedNotificationPayload"] | components["schemas"]["NewGameByAlertNotificationPayload"] | components["schemas"]["HostedGameNewApplicationNotificationPayload"] | components["schemas"]["HostedGamePlayerLeftNotificationPayload"] | components["schemas"]["HostedGamePlayerAutoApprovedNotificationPayload"] | components["schemas"]["HostedGameFinishedNotificationPayload"] | components["schemas"]["HostedGameReminderNotificationPayload"] | 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"]["ActionPushPlayerCollectPointsPayload"] | components["schemas"]["ActionPushPlayerInvitePlayersPayload"] | components["schemas"]["ActionPushPlayerInactivePayload"] | components["schemas"]["ActionPushPlayerAchievementsPayload"] | components["schemas"]["ActionPushPlayerInactive2Payload"] | components["schemas"]["ActionPushPlayerAlertsPayload"] | components["schemas"]["ActionPushPlayerCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostCollectPointsPayload"] | components["schemas"]["ActionPushHostInvitePlayersPayload"] | components["schemas"]["ActionPushHostInactivePayload"] | components["schemas"]["ActionPushHostAchievementsPayload"] | components["schemas"]["ActionPushHostTeamsDrawingPayload"] | components["schemas"]["ActionPushHostCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostCreateGroupPayload"] | components["schemas"]["ActionPushHostInvitePreviousPlayersPayload"];
|
|
2842
2882
|
};
|
|
2843
2883
|
GetUserNotificationsDto: {
|
|
2844
2884
|
notifications: components["schemas"]["NotificationDto"][];
|
|
@@ -3376,6 +3416,7 @@ export type FbGroupDto = components['schemas']['FbGroupDto'];
|
|
|
3376
3416
|
export type GetGameFbGroupsDto = components['schemas']['GetGameFbGroupsDto'];
|
|
3377
3417
|
export type GetUserPenaltiesDto = components['schemas']['GetUserPenaltiesDto'];
|
|
3378
3418
|
export type CreateUserPenaltyDto = components['schemas']['CreateUserPenaltyDto'];
|
|
3419
|
+
export type RevokeUserPenaltyResponseDto = components['schemas']['RevokeUserPenaltyResponseDto'];
|
|
3379
3420
|
export type TestNotificationPayload = components['schemas']['TestNotificationPayload'];
|
|
3380
3421
|
export type GameApplicationApprovedNotificationPayload = components['schemas']['GameApplicationApprovedNotificationPayload'];
|
|
3381
3422
|
export type GameApplicationRejectedNotificationPayload = components['schemas']['GameApplicationRejectedNotificationPayload'];
|
|
@@ -3395,6 +3436,7 @@ export type ChatNewMessageNotificationPayload = components['schemas']['ChatNewMe
|
|
|
3395
3436
|
export type CustomNotificationPayload = components['schemas']['CustomNotificationPayload'];
|
|
3396
3437
|
export type TeamMemberAddedByHostNotificationPayload = components['schemas']['TeamMemberAddedByHostNotificationPayload'];
|
|
3397
3438
|
export type UserPenaltyReceivedNotificationPayload = components['schemas']['UserPenaltyReceivedNotificationPayload'];
|
|
3439
|
+
export type UserPenaltyRevokedNotificationPayload = components['schemas']['UserPenaltyRevokedNotificationPayload'];
|
|
3398
3440
|
export type NewTrophyReceivedNotificationPayload = components['schemas']['NewTrophyReceivedNotificationPayload'];
|
|
3399
3441
|
export type NewCommentReceivedNotificationPayload = components['schemas']['NewCommentReceivedNotificationPayload'];
|
|
3400
3442
|
export type UserReferralReceivedNotificationPayload = components['schemas']['UserReferralReceivedNotificationPayload'];
|
|
@@ -5172,6 +5214,44 @@ export interface operations {
|
|
|
5172
5214
|
};
|
|
5173
5215
|
};
|
|
5174
5216
|
};
|
|
5217
|
+
revokePenalty: {
|
|
5218
|
+
parameters: {
|
|
5219
|
+
query?: never;
|
|
5220
|
+
header?: {
|
|
5221
|
+
/** @description Request trace id for logs */
|
|
5222
|
+
"x-trace-request-id"?: string;
|
|
5223
|
+
/** @description Session trace id for logs */
|
|
5224
|
+
"x-trace-session-id"?: string;
|
|
5225
|
+
/** @description IANA Timezone */
|
|
5226
|
+
"x-timezone"?: string;
|
|
5227
|
+
};
|
|
5228
|
+
path: {
|
|
5229
|
+
userId: string;
|
|
5230
|
+
userPenaltyId: string;
|
|
5231
|
+
};
|
|
5232
|
+
cookie?: never;
|
|
5233
|
+
};
|
|
5234
|
+
requestBody?: never;
|
|
5235
|
+
responses: {
|
|
5236
|
+
/** @description Application Error */
|
|
5237
|
+
500: {
|
|
5238
|
+
headers: {
|
|
5239
|
+
[name: string]: unknown;
|
|
5240
|
+
};
|
|
5241
|
+
content: {
|
|
5242
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5243
|
+
};
|
|
5244
|
+
};
|
|
5245
|
+
default: {
|
|
5246
|
+
headers: {
|
|
5247
|
+
[name: string]: unknown;
|
|
5248
|
+
};
|
|
5249
|
+
content: {
|
|
5250
|
+
"application/json": components["schemas"]["RevokeUserPenaltyResponseDto"];
|
|
5251
|
+
};
|
|
5252
|
+
};
|
|
5253
|
+
};
|
|
5254
|
+
};
|
|
5175
5255
|
getAllForCurrentUser: {
|
|
5176
5256
|
parameters: {
|
|
5177
5257
|
query?: never;
|
|
@@ -7691,7 +7771,11 @@ export declare enum KnownException {
|
|
|
7691
7771
|
UserNameAndSurnameCannotBeEmpty = "UserNameAndSurnameCannotBeEmpty",
|
|
7692
7772
|
UserNameAndSurnameCannotBeEmptyToCreateGame = "UserNameAndSurnameCannotBeEmptyToCreateGame",
|
|
7693
7773
|
UserDisplayNameNotSet = "UserDisplayNameNotSet",
|
|
7694
|
-
YouHaveAlreadyGivenThisComment = "YouHaveAlreadyGivenThisComment"
|
|
7774
|
+
YouHaveAlreadyGivenThisComment = "YouHaveAlreadyGivenThisComment",
|
|
7775
|
+
NotAMemberOfTeam = "NotAMemberOfTeam",
|
|
7776
|
+
CannotCreateMultipleTeams = "CannotCreateMultipleTeams",
|
|
7777
|
+
NotTheHostOfTeam = "NotTheHostOfTeam",
|
|
7778
|
+
UserPenaltyAlreadyRevoked = "UserPenaltyAlreadyRevoked"
|
|
7695
7779
|
}
|
|
7696
7780
|
export declare enum Visibility {
|
|
7697
7781
|
PUBLIC = "PUBLIC",
|
|
@@ -7792,6 +7876,7 @@ export declare enum NotificationType {
|
|
|
7792
7876
|
chat_new_message = "chat-new-message",
|
|
7793
7877
|
custom_notification = "custom-notification",
|
|
7794
7878
|
user_penalty_received = "user-penalty-received",
|
|
7879
|
+
user_penalty_revoked = "user-penalty-revoked",
|
|
7795
7880
|
team_member_added_by_host = "team-member-added-by-host",
|
|
7796
7881
|
new_trophy_received = "new-trophy-received",
|
|
7797
7882
|
new_comment_received = "new-comment-received",
|
|
@@ -7841,6 +7926,7 @@ export declare enum NotificationTypes {
|
|
|
7841
7926
|
chat_new_message = "chat-new-message",
|
|
7842
7927
|
custom_notification = "custom-notification",
|
|
7843
7928
|
user_penalty_received = "user-penalty-received",
|
|
7929
|
+
user_penalty_revoked = "user-penalty-revoked",
|
|
7844
7930
|
team_member_added_by_host = "team-member-added-by-host",
|
|
7845
7931
|
new_trophy_received = "new-trophy-received",
|
|
7846
7932
|
new_comment_received = "new-comment-received",
|
|
@@ -7951,6 +8037,7 @@ export declare enum ApiPaths {
|
|
|
7951
8037
|
getFbGroupsByGameId = "/game/{gameId}/fb-groups",
|
|
7952
8038
|
getUserPenalties = "/user/{userId}/penalty",
|
|
7953
8039
|
createPenalty = "/user/{userId}/penalty",
|
|
8040
|
+
revokePenalty = "/user/{userId}/penalty/{userPenaltyId}/revoke",
|
|
7954
8041
|
getAllForCurrentUser = "/user-notifications",
|
|
7955
8042
|
markAsRead = "/user-notifications",
|
|
7956
8043
|
markAsReadClicked = "/user-notifications/{notificationId}/mark-as-clicked",
|
package/dist/api.js
CHANGED
|
@@ -32,6 +32,10 @@ var KnownException;
|
|
|
32
32
|
KnownException["UserNameAndSurnameCannotBeEmptyToCreateGame"] = "UserNameAndSurnameCannotBeEmptyToCreateGame";
|
|
33
33
|
KnownException["UserDisplayNameNotSet"] = "UserDisplayNameNotSet";
|
|
34
34
|
KnownException["YouHaveAlreadyGivenThisComment"] = "YouHaveAlreadyGivenThisComment";
|
|
35
|
+
KnownException["NotAMemberOfTeam"] = "NotAMemberOfTeam";
|
|
36
|
+
KnownException["CannotCreateMultipleTeams"] = "CannotCreateMultipleTeams";
|
|
37
|
+
KnownException["NotTheHostOfTeam"] = "NotTheHostOfTeam";
|
|
38
|
+
KnownException["UserPenaltyAlreadyRevoked"] = "UserPenaltyAlreadyRevoked";
|
|
35
39
|
})(KnownException || (exports.KnownException = KnownException = {}));
|
|
36
40
|
var Visibility;
|
|
37
41
|
(function (Visibility) {
|
|
@@ -147,6 +151,7 @@ var NotificationType;
|
|
|
147
151
|
NotificationType["chat_new_message"] = "chat-new-message";
|
|
148
152
|
NotificationType["custom_notification"] = "custom-notification";
|
|
149
153
|
NotificationType["user_penalty_received"] = "user-penalty-received";
|
|
154
|
+
NotificationType["user_penalty_revoked"] = "user-penalty-revoked";
|
|
150
155
|
NotificationType["team_member_added_by_host"] = "team-member-added-by-host";
|
|
151
156
|
NotificationType["new_trophy_received"] = "new-trophy-received";
|
|
152
157
|
NotificationType["new_comment_received"] = "new-comment-received";
|
|
@@ -199,6 +204,7 @@ var NotificationTypes;
|
|
|
199
204
|
NotificationTypes["chat_new_message"] = "chat-new-message";
|
|
200
205
|
NotificationTypes["custom_notification"] = "custom-notification";
|
|
201
206
|
NotificationTypes["user_penalty_received"] = "user-penalty-received";
|
|
207
|
+
NotificationTypes["user_penalty_revoked"] = "user-penalty-revoked";
|
|
202
208
|
NotificationTypes["team_member_added_by_host"] = "team-member-added-by-host";
|
|
203
209
|
NotificationTypes["new_trophy_received"] = "new-trophy-received";
|
|
204
210
|
NotificationTypes["new_comment_received"] = "new-comment-received";
|
|
@@ -317,6 +323,7 @@ var ApiPaths;
|
|
|
317
323
|
ApiPaths["getFbGroupsByGameId"] = "/game/{gameId}/fb-groups";
|
|
318
324
|
ApiPaths["getUserPenalties"] = "/user/{userId}/penalty";
|
|
319
325
|
ApiPaths["createPenalty"] = "/user/{userId}/penalty";
|
|
326
|
+
ApiPaths["revokePenalty"] = "/user/{userId}/penalty/{userPenaltyId}/revoke";
|
|
320
327
|
ApiPaths["getAllForCurrentUser"] = "/user-notifications";
|
|
321
328
|
ApiPaths["markAsRead"] = "/user-notifications";
|
|
322
329
|
ApiPaths["markAsReadClicked"] = "/user-notifications/{notificationId}/mark-as-clicked";
|