@orlikfy/api-interfaces 6.1.2 → 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 +85 -2
- package/dist/api.js +4 -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;
|
|
@@ -2215,6 +2235,8 @@ export interface components {
|
|
|
2215
2235
|
expirationDate: string;
|
|
2216
2236
|
/** Format: date-time */
|
|
2217
2237
|
penaltyDate: string;
|
|
2238
|
+
/** Format: date-time */
|
|
2239
|
+
revokedAt: string | null;
|
|
2218
2240
|
author: components["schemas"]["CommonUserDto"];
|
|
2219
2241
|
};
|
|
2220
2242
|
HostedGamePlayerApplicationDto: {
|
|
@@ -2378,6 +2400,11 @@ export interface components {
|
|
|
2378
2400
|
penaltyType: components["schemas"]["PenaltyType"];
|
|
2379
2401
|
reason: components["schemas"]["PenaltyReason"];
|
|
2380
2402
|
};
|
|
2403
|
+
RevokeUserPenaltyResponseDto: {
|
|
2404
|
+
userPenaltyId: string;
|
|
2405
|
+
/** Format: date-time */
|
|
2406
|
+
revokedAt: string;
|
|
2407
|
+
};
|
|
2381
2408
|
/** @enum {string} */
|
|
2382
2409
|
NotificationType: NotificationType;
|
|
2383
2410
|
TestNotificationPayload: {
|
|
@@ -2662,6 +2689,18 @@ export interface components {
|
|
|
2662
2689
|
penaltyType: string;
|
|
2663
2690
|
penaltyReason: string;
|
|
2664
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
|
+
};
|
|
2665
2704
|
NewTrophyReceivedNotificationPayload: {
|
|
2666
2705
|
notificationId: string;
|
|
2667
2706
|
notificationType: components["schemas"]["NotificationType"];
|
|
@@ -2839,7 +2878,7 @@ export interface components {
|
|
|
2839
2878
|
sentAt: string | null;
|
|
2840
2879
|
isRead: boolean;
|
|
2841
2880
|
notificationType: components["schemas"]["notificationTypes"];
|
|
2842
|
-
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"];
|
|
2843
2882
|
};
|
|
2844
2883
|
GetUserNotificationsDto: {
|
|
2845
2884
|
notifications: components["schemas"]["NotificationDto"][];
|
|
@@ -3377,6 +3416,7 @@ export type FbGroupDto = components['schemas']['FbGroupDto'];
|
|
|
3377
3416
|
export type GetGameFbGroupsDto = components['schemas']['GetGameFbGroupsDto'];
|
|
3378
3417
|
export type GetUserPenaltiesDto = components['schemas']['GetUserPenaltiesDto'];
|
|
3379
3418
|
export type CreateUserPenaltyDto = components['schemas']['CreateUserPenaltyDto'];
|
|
3419
|
+
export type RevokeUserPenaltyResponseDto = components['schemas']['RevokeUserPenaltyResponseDto'];
|
|
3380
3420
|
export type TestNotificationPayload = components['schemas']['TestNotificationPayload'];
|
|
3381
3421
|
export type GameApplicationApprovedNotificationPayload = components['schemas']['GameApplicationApprovedNotificationPayload'];
|
|
3382
3422
|
export type GameApplicationRejectedNotificationPayload = components['schemas']['GameApplicationRejectedNotificationPayload'];
|
|
@@ -3396,6 +3436,7 @@ export type ChatNewMessageNotificationPayload = components['schemas']['ChatNewMe
|
|
|
3396
3436
|
export type CustomNotificationPayload = components['schemas']['CustomNotificationPayload'];
|
|
3397
3437
|
export type TeamMemberAddedByHostNotificationPayload = components['schemas']['TeamMemberAddedByHostNotificationPayload'];
|
|
3398
3438
|
export type UserPenaltyReceivedNotificationPayload = components['schemas']['UserPenaltyReceivedNotificationPayload'];
|
|
3439
|
+
export type UserPenaltyRevokedNotificationPayload = components['schemas']['UserPenaltyRevokedNotificationPayload'];
|
|
3399
3440
|
export type NewTrophyReceivedNotificationPayload = components['schemas']['NewTrophyReceivedNotificationPayload'];
|
|
3400
3441
|
export type NewCommentReceivedNotificationPayload = components['schemas']['NewCommentReceivedNotificationPayload'];
|
|
3401
3442
|
export type UserReferralReceivedNotificationPayload = components['schemas']['UserReferralReceivedNotificationPayload'];
|
|
@@ -5173,6 +5214,44 @@ export interface operations {
|
|
|
5173
5214
|
};
|
|
5174
5215
|
};
|
|
5175
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
|
+
};
|
|
5176
5255
|
getAllForCurrentUser: {
|
|
5177
5256
|
parameters: {
|
|
5178
5257
|
query?: never;
|
|
@@ -7695,7 +7774,8 @@ export declare enum KnownException {
|
|
|
7695
7774
|
YouHaveAlreadyGivenThisComment = "YouHaveAlreadyGivenThisComment",
|
|
7696
7775
|
NotAMemberOfTeam = "NotAMemberOfTeam",
|
|
7697
7776
|
CannotCreateMultipleTeams = "CannotCreateMultipleTeams",
|
|
7698
|
-
NotTheHostOfTeam = "NotTheHostOfTeam"
|
|
7777
|
+
NotTheHostOfTeam = "NotTheHostOfTeam",
|
|
7778
|
+
UserPenaltyAlreadyRevoked = "UserPenaltyAlreadyRevoked"
|
|
7699
7779
|
}
|
|
7700
7780
|
export declare enum Visibility {
|
|
7701
7781
|
PUBLIC = "PUBLIC",
|
|
@@ -7796,6 +7876,7 @@ export declare enum NotificationType {
|
|
|
7796
7876
|
chat_new_message = "chat-new-message",
|
|
7797
7877
|
custom_notification = "custom-notification",
|
|
7798
7878
|
user_penalty_received = "user-penalty-received",
|
|
7879
|
+
user_penalty_revoked = "user-penalty-revoked",
|
|
7799
7880
|
team_member_added_by_host = "team-member-added-by-host",
|
|
7800
7881
|
new_trophy_received = "new-trophy-received",
|
|
7801
7882
|
new_comment_received = "new-comment-received",
|
|
@@ -7845,6 +7926,7 @@ export declare enum NotificationTypes {
|
|
|
7845
7926
|
chat_new_message = "chat-new-message",
|
|
7846
7927
|
custom_notification = "custom-notification",
|
|
7847
7928
|
user_penalty_received = "user-penalty-received",
|
|
7929
|
+
user_penalty_revoked = "user-penalty-revoked",
|
|
7848
7930
|
team_member_added_by_host = "team-member-added-by-host",
|
|
7849
7931
|
new_trophy_received = "new-trophy-received",
|
|
7850
7932
|
new_comment_received = "new-comment-received",
|
|
@@ -7955,6 +8037,7 @@ export declare enum ApiPaths {
|
|
|
7955
8037
|
getFbGroupsByGameId = "/game/{gameId}/fb-groups",
|
|
7956
8038
|
getUserPenalties = "/user/{userId}/penalty",
|
|
7957
8039
|
createPenalty = "/user/{userId}/penalty",
|
|
8040
|
+
revokePenalty = "/user/{userId}/penalty/{userPenaltyId}/revoke",
|
|
7958
8041
|
getAllForCurrentUser = "/user-notifications",
|
|
7959
8042
|
markAsRead = "/user-notifications",
|
|
7960
8043
|
markAsReadClicked = "/user-notifications/{notificationId}/mark-as-clicked",
|
package/dist/api.js
CHANGED
|
@@ -35,6 +35,7 @@ var KnownException;
|
|
|
35
35
|
KnownException["NotAMemberOfTeam"] = "NotAMemberOfTeam";
|
|
36
36
|
KnownException["CannotCreateMultipleTeams"] = "CannotCreateMultipleTeams";
|
|
37
37
|
KnownException["NotTheHostOfTeam"] = "NotTheHostOfTeam";
|
|
38
|
+
KnownException["UserPenaltyAlreadyRevoked"] = "UserPenaltyAlreadyRevoked";
|
|
38
39
|
})(KnownException || (exports.KnownException = KnownException = {}));
|
|
39
40
|
var Visibility;
|
|
40
41
|
(function (Visibility) {
|
|
@@ -150,6 +151,7 @@ var NotificationType;
|
|
|
150
151
|
NotificationType["chat_new_message"] = "chat-new-message";
|
|
151
152
|
NotificationType["custom_notification"] = "custom-notification";
|
|
152
153
|
NotificationType["user_penalty_received"] = "user-penalty-received";
|
|
154
|
+
NotificationType["user_penalty_revoked"] = "user-penalty-revoked";
|
|
153
155
|
NotificationType["team_member_added_by_host"] = "team-member-added-by-host";
|
|
154
156
|
NotificationType["new_trophy_received"] = "new-trophy-received";
|
|
155
157
|
NotificationType["new_comment_received"] = "new-comment-received";
|
|
@@ -202,6 +204,7 @@ var NotificationTypes;
|
|
|
202
204
|
NotificationTypes["chat_new_message"] = "chat-new-message";
|
|
203
205
|
NotificationTypes["custom_notification"] = "custom-notification";
|
|
204
206
|
NotificationTypes["user_penalty_received"] = "user-penalty-received";
|
|
207
|
+
NotificationTypes["user_penalty_revoked"] = "user-penalty-revoked";
|
|
205
208
|
NotificationTypes["team_member_added_by_host"] = "team-member-added-by-host";
|
|
206
209
|
NotificationTypes["new_trophy_received"] = "new-trophy-received";
|
|
207
210
|
NotificationTypes["new_comment_received"] = "new-comment-received";
|
|
@@ -320,6 +323,7 @@ var ApiPaths;
|
|
|
320
323
|
ApiPaths["getFbGroupsByGameId"] = "/game/{gameId}/fb-groups";
|
|
321
324
|
ApiPaths["getUserPenalties"] = "/user/{userId}/penalty";
|
|
322
325
|
ApiPaths["createPenalty"] = "/user/{userId}/penalty";
|
|
326
|
+
ApiPaths["revokePenalty"] = "/user/{userId}/penalty/{userPenaltyId}/revoke";
|
|
323
327
|
ApiPaths["getAllForCurrentUser"] = "/user-notifications";
|
|
324
328
|
ApiPaths["markAsRead"] = "/user-notifications";
|
|
325
329
|
ApiPaths["markAsReadClicked"] = "/user-notifications/{notificationId}/mark-as-clicked";
|