@orlikfy/api-interfaces 6.1.2 → 6.1.4
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 +83 -2
- package/dist/api.js +4 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -645,6 +645,25 @@ export interface paths {
|
|
|
645
645
|
patch?: never;
|
|
646
646
|
trace?: never;
|
|
647
647
|
};
|
|
648
|
+
"/penalties/{userPenaltyId}": {
|
|
649
|
+
parameters: {
|
|
650
|
+
query?: never;
|
|
651
|
+
header?: never;
|
|
652
|
+
path: {
|
|
653
|
+
userPenaltyId: string;
|
|
654
|
+
};
|
|
655
|
+
cookie?: never;
|
|
656
|
+
};
|
|
657
|
+
get?: never;
|
|
658
|
+
put?: never;
|
|
659
|
+
post?: never;
|
|
660
|
+
/** revokeUserPenalty */
|
|
661
|
+
delete: operations["revokePenalty"];
|
|
662
|
+
options?: never;
|
|
663
|
+
head?: never;
|
|
664
|
+
patch?: never;
|
|
665
|
+
trace?: never;
|
|
666
|
+
};
|
|
648
667
|
"/user-notifications": {
|
|
649
668
|
parameters: {
|
|
650
669
|
query?: never;
|
|
@@ -2215,6 +2234,8 @@ export interface components {
|
|
|
2215
2234
|
expirationDate: string;
|
|
2216
2235
|
/** Format: date-time */
|
|
2217
2236
|
penaltyDate: string;
|
|
2237
|
+
/** Format: date-time */
|
|
2238
|
+
revokedAt: string | null;
|
|
2218
2239
|
author: components["schemas"]["CommonUserDto"];
|
|
2219
2240
|
};
|
|
2220
2241
|
HostedGamePlayerApplicationDto: {
|
|
@@ -2378,6 +2399,11 @@ export interface components {
|
|
|
2378
2399
|
penaltyType: components["schemas"]["PenaltyType"];
|
|
2379
2400
|
reason: components["schemas"]["PenaltyReason"];
|
|
2380
2401
|
};
|
|
2402
|
+
RevokeUserPenaltyResponseDto: {
|
|
2403
|
+
userPenaltyId: string;
|
|
2404
|
+
/** Format: date-time */
|
|
2405
|
+
revokedAt: string;
|
|
2406
|
+
};
|
|
2381
2407
|
/** @enum {string} */
|
|
2382
2408
|
NotificationType: NotificationType;
|
|
2383
2409
|
TestNotificationPayload: {
|
|
@@ -2662,6 +2688,18 @@ export interface components {
|
|
|
2662
2688
|
penaltyType: string;
|
|
2663
2689
|
penaltyReason: string;
|
|
2664
2690
|
};
|
|
2691
|
+
UserPenaltyRevokedNotificationPayload: {
|
|
2692
|
+
notificationId: string;
|
|
2693
|
+
notificationType: components["schemas"]["NotificationType"];
|
|
2694
|
+
thumbnailUrl: string | null;
|
|
2695
|
+
displayName: string;
|
|
2696
|
+
receiverUserId: string;
|
|
2697
|
+
title?: string;
|
|
2698
|
+
body?: string;
|
|
2699
|
+
userPenaltyId: string;
|
|
2700
|
+
penaltyType: string;
|
|
2701
|
+
penaltyReason: string;
|
|
2702
|
+
};
|
|
2665
2703
|
NewTrophyReceivedNotificationPayload: {
|
|
2666
2704
|
notificationId: string;
|
|
2667
2705
|
notificationType: components["schemas"]["NotificationType"];
|
|
@@ -2839,7 +2877,7 @@ export interface components {
|
|
|
2839
2877
|
sentAt: string | null;
|
|
2840
2878
|
isRead: boolean;
|
|
2841
2879
|
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"];
|
|
2880
|
+
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
2881
|
};
|
|
2844
2882
|
GetUserNotificationsDto: {
|
|
2845
2883
|
notifications: components["schemas"]["NotificationDto"][];
|
|
@@ -3377,6 +3415,7 @@ export type FbGroupDto = components['schemas']['FbGroupDto'];
|
|
|
3377
3415
|
export type GetGameFbGroupsDto = components['schemas']['GetGameFbGroupsDto'];
|
|
3378
3416
|
export type GetUserPenaltiesDto = components['schemas']['GetUserPenaltiesDto'];
|
|
3379
3417
|
export type CreateUserPenaltyDto = components['schemas']['CreateUserPenaltyDto'];
|
|
3418
|
+
export type RevokeUserPenaltyResponseDto = components['schemas']['RevokeUserPenaltyResponseDto'];
|
|
3380
3419
|
export type TestNotificationPayload = components['schemas']['TestNotificationPayload'];
|
|
3381
3420
|
export type GameApplicationApprovedNotificationPayload = components['schemas']['GameApplicationApprovedNotificationPayload'];
|
|
3382
3421
|
export type GameApplicationRejectedNotificationPayload = components['schemas']['GameApplicationRejectedNotificationPayload'];
|
|
@@ -3396,6 +3435,7 @@ export type ChatNewMessageNotificationPayload = components['schemas']['ChatNewMe
|
|
|
3396
3435
|
export type CustomNotificationPayload = components['schemas']['CustomNotificationPayload'];
|
|
3397
3436
|
export type TeamMemberAddedByHostNotificationPayload = components['schemas']['TeamMemberAddedByHostNotificationPayload'];
|
|
3398
3437
|
export type UserPenaltyReceivedNotificationPayload = components['schemas']['UserPenaltyReceivedNotificationPayload'];
|
|
3438
|
+
export type UserPenaltyRevokedNotificationPayload = components['schemas']['UserPenaltyRevokedNotificationPayload'];
|
|
3399
3439
|
export type NewTrophyReceivedNotificationPayload = components['schemas']['NewTrophyReceivedNotificationPayload'];
|
|
3400
3440
|
export type NewCommentReceivedNotificationPayload = components['schemas']['NewCommentReceivedNotificationPayload'];
|
|
3401
3441
|
export type UserReferralReceivedNotificationPayload = components['schemas']['UserReferralReceivedNotificationPayload'];
|
|
@@ -5173,6 +5213,43 @@ export interface operations {
|
|
|
5173
5213
|
};
|
|
5174
5214
|
};
|
|
5175
5215
|
};
|
|
5216
|
+
revokePenalty: {
|
|
5217
|
+
parameters: {
|
|
5218
|
+
query?: never;
|
|
5219
|
+
header?: {
|
|
5220
|
+
/** @description Request trace id for logs */
|
|
5221
|
+
"x-trace-request-id"?: string;
|
|
5222
|
+
/** @description Session trace id for logs */
|
|
5223
|
+
"x-trace-session-id"?: string;
|
|
5224
|
+
/** @description IANA Timezone */
|
|
5225
|
+
"x-timezone"?: string;
|
|
5226
|
+
};
|
|
5227
|
+
path: {
|
|
5228
|
+
userPenaltyId: string;
|
|
5229
|
+
};
|
|
5230
|
+
cookie?: never;
|
|
5231
|
+
};
|
|
5232
|
+
requestBody?: never;
|
|
5233
|
+
responses: {
|
|
5234
|
+
/** @description Application Error */
|
|
5235
|
+
500: {
|
|
5236
|
+
headers: {
|
|
5237
|
+
[name: string]: unknown;
|
|
5238
|
+
};
|
|
5239
|
+
content: {
|
|
5240
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5241
|
+
};
|
|
5242
|
+
};
|
|
5243
|
+
default: {
|
|
5244
|
+
headers: {
|
|
5245
|
+
[name: string]: unknown;
|
|
5246
|
+
};
|
|
5247
|
+
content: {
|
|
5248
|
+
"application/json": components["schemas"]["RevokeUserPenaltyResponseDto"];
|
|
5249
|
+
};
|
|
5250
|
+
};
|
|
5251
|
+
};
|
|
5252
|
+
};
|
|
5176
5253
|
getAllForCurrentUser: {
|
|
5177
5254
|
parameters: {
|
|
5178
5255
|
query?: never;
|
|
@@ -7695,7 +7772,8 @@ export declare enum KnownException {
|
|
|
7695
7772
|
YouHaveAlreadyGivenThisComment = "YouHaveAlreadyGivenThisComment",
|
|
7696
7773
|
NotAMemberOfTeam = "NotAMemberOfTeam",
|
|
7697
7774
|
CannotCreateMultipleTeams = "CannotCreateMultipleTeams",
|
|
7698
|
-
NotTheHostOfTeam = "NotTheHostOfTeam"
|
|
7775
|
+
NotTheHostOfTeam = "NotTheHostOfTeam",
|
|
7776
|
+
UserPenaltyAlreadyRevoked = "UserPenaltyAlreadyRevoked"
|
|
7699
7777
|
}
|
|
7700
7778
|
export declare enum Visibility {
|
|
7701
7779
|
PUBLIC = "PUBLIC",
|
|
@@ -7796,6 +7874,7 @@ export declare enum NotificationType {
|
|
|
7796
7874
|
chat_new_message = "chat-new-message",
|
|
7797
7875
|
custom_notification = "custom-notification",
|
|
7798
7876
|
user_penalty_received = "user-penalty-received",
|
|
7877
|
+
user_penalty_revoked = "user-penalty-revoked",
|
|
7799
7878
|
team_member_added_by_host = "team-member-added-by-host",
|
|
7800
7879
|
new_trophy_received = "new-trophy-received",
|
|
7801
7880
|
new_comment_received = "new-comment-received",
|
|
@@ -7845,6 +7924,7 @@ export declare enum NotificationTypes {
|
|
|
7845
7924
|
chat_new_message = "chat-new-message",
|
|
7846
7925
|
custom_notification = "custom-notification",
|
|
7847
7926
|
user_penalty_received = "user-penalty-received",
|
|
7927
|
+
user_penalty_revoked = "user-penalty-revoked",
|
|
7848
7928
|
team_member_added_by_host = "team-member-added-by-host",
|
|
7849
7929
|
new_trophy_received = "new-trophy-received",
|
|
7850
7930
|
new_comment_received = "new-comment-received",
|
|
@@ -7955,6 +8035,7 @@ export declare enum ApiPaths {
|
|
|
7955
8035
|
getFbGroupsByGameId = "/game/{gameId}/fb-groups",
|
|
7956
8036
|
getUserPenalties = "/user/{userId}/penalty",
|
|
7957
8037
|
createPenalty = "/user/{userId}/penalty",
|
|
8038
|
+
revokePenalty = "/penalties/{userPenaltyId}",
|
|
7958
8039
|
getAllForCurrentUser = "/user-notifications",
|
|
7959
8040
|
markAsRead = "/user-notifications",
|
|
7960
8041
|
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"] = "/penalties/{userPenaltyId}";
|
|
323
327
|
ApiPaths["getAllForCurrentUser"] = "/user-notifications";
|
|
324
328
|
ApiPaths["markAsRead"] = "/user-notifications";
|
|
325
329
|
ApiPaths["markAsReadClicked"] = "/user-notifications/{notificationId}/mark-as-clicked";
|