@orlikfy/api-interfaces 3.0.0 → 4.2.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/dist/api.d.ts +148 -21
- package/dist/api.js +8 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -485,6 +485,23 @@ export interface paths {
|
|
|
485
485
|
patch: operations["updateMyUserPartial"];
|
|
486
486
|
trace?: never;
|
|
487
487
|
};
|
|
488
|
+
"/users/me/language": {
|
|
489
|
+
parameters: {
|
|
490
|
+
query?: never;
|
|
491
|
+
header?: never;
|
|
492
|
+
path?: never;
|
|
493
|
+
cookie?: never;
|
|
494
|
+
};
|
|
495
|
+
get?: never;
|
|
496
|
+
put?: never;
|
|
497
|
+
post?: never;
|
|
498
|
+
delete?: never;
|
|
499
|
+
options?: never;
|
|
500
|
+
head?: never;
|
|
501
|
+
/** setMyLanguage */
|
|
502
|
+
patch: operations["setMyLanguage"];
|
|
503
|
+
trace?: never;
|
|
504
|
+
};
|
|
488
505
|
"/users/me/stats": {
|
|
489
506
|
parameters: {
|
|
490
507
|
query?: never;
|
|
@@ -759,6 +776,23 @@ export interface paths {
|
|
|
759
776
|
patch?: never;
|
|
760
777
|
trace?: never;
|
|
761
778
|
};
|
|
779
|
+
"/admin/users/stats": {
|
|
780
|
+
parameters: {
|
|
781
|
+
query?: never;
|
|
782
|
+
header?: never;
|
|
783
|
+
path?: never;
|
|
784
|
+
cookie?: never;
|
|
785
|
+
};
|
|
786
|
+
/** getUsersStatsForAdmin */
|
|
787
|
+
get: operations["getUsersStats"];
|
|
788
|
+
put?: never;
|
|
789
|
+
post?: never;
|
|
790
|
+
delete?: never;
|
|
791
|
+
options?: never;
|
|
792
|
+
head?: never;
|
|
793
|
+
patch?: never;
|
|
794
|
+
trace?: never;
|
|
795
|
+
};
|
|
762
796
|
"/admin/games": {
|
|
763
797
|
parameters: {
|
|
764
798
|
query?: never;
|
|
@@ -2022,6 +2056,8 @@ export interface components {
|
|
|
2022
2056
|
};
|
|
2023
2057
|
/** @enum {string} */
|
|
2024
2058
|
AppProfileType: AppProfileType;
|
|
2059
|
+
/** @enum {string} */
|
|
2060
|
+
AppLanguage: AppLanguage;
|
|
2025
2061
|
MyUserDto: {
|
|
2026
2062
|
userId: string;
|
|
2027
2063
|
userAuthId: string;
|
|
@@ -2036,16 +2072,13 @@ export interface components {
|
|
|
2036
2072
|
role: string;
|
|
2037
2073
|
thumbnail: string | null;
|
|
2038
2074
|
thumbnailUrl: string | null;
|
|
2039
|
-
/** @description Is user marked manually as a host */
|
|
2040
|
-
isHost: boolean;
|
|
2041
|
-
/** @description Is user marked manually as a paid host */
|
|
2042
|
-
isPaidHost: boolean;
|
|
2043
2075
|
playerPreferences: components["schemas"]["PlayerPreferences"];
|
|
2044
2076
|
hostRating: string | null;
|
|
2045
2077
|
hostRatingCount: number;
|
|
2046
2078
|
profileType?: components["schemas"]["AppProfileType"] | null;
|
|
2047
2079
|
referralToken: string;
|
|
2048
2080
|
canSetReferral: boolean;
|
|
2081
|
+
language: components["schemas"]["AppLanguage"];
|
|
2049
2082
|
};
|
|
2050
2083
|
/** @enum {string} */
|
|
2051
2084
|
AppGameLevel: AppGameLevel;
|
|
@@ -2058,6 +2091,9 @@ export interface components {
|
|
|
2058
2091
|
preferredLevel?: components["schemas"]["AppGameLevel"] | null;
|
|
2059
2092
|
profileType?: components["schemas"]["AppProfileType"];
|
|
2060
2093
|
};
|
|
2094
|
+
SetLanguageDto: {
|
|
2095
|
+
language: components["schemas"]["AppLanguage"];
|
|
2096
|
+
};
|
|
2061
2097
|
UserStatsDto: {
|
|
2062
2098
|
userId: string;
|
|
2063
2099
|
playedGames: number;
|
|
@@ -2816,11 +2852,6 @@ export interface components {
|
|
|
2816
2852
|
playedGames: number;
|
|
2817
2853
|
gameApplications: number;
|
|
2818
2854
|
};
|
|
2819
|
-
ReferralDto: {
|
|
2820
|
-
referralId: string | null;
|
|
2821
|
-
displayName: string | null;
|
|
2822
|
-
email: string | null;
|
|
2823
|
-
};
|
|
2824
2855
|
AdminUserDto: {
|
|
2825
2856
|
userId: string;
|
|
2826
2857
|
name: string;
|
|
@@ -2833,16 +2864,29 @@ export interface components {
|
|
|
2833
2864
|
versionInfo: string | null;
|
|
2834
2865
|
platform: string | null;
|
|
2835
2866
|
stats: components["schemas"]["AdminUserStatsDto"];
|
|
2836
|
-
/** @description Is user marked manually as a host */
|
|
2837
|
-
isHost: boolean;
|
|
2838
|
-
/** @description Is user marked manually as a paid host */
|
|
2839
|
-
isPaidHost: boolean;
|
|
2840
|
-
referral: components["schemas"]["ReferralDto"] | null;
|
|
2841
|
-
referralToken: string;
|
|
2842
2867
|
};
|
|
2843
2868
|
GetAdminUsersDto: {
|
|
2844
2869
|
users: components["schemas"]["AdminUserDto"][];
|
|
2845
2870
|
};
|
|
2871
|
+
PlatformStatsDto: {
|
|
2872
|
+
platform: string;
|
|
2873
|
+
count: number;
|
|
2874
|
+
};
|
|
2875
|
+
VersionStatsDto: {
|
|
2876
|
+
version: string;
|
|
2877
|
+
count: number;
|
|
2878
|
+
};
|
|
2879
|
+
PlatformVersionStatsDto: {
|
|
2880
|
+
platform: string;
|
|
2881
|
+
version: string;
|
|
2882
|
+
count: number;
|
|
2883
|
+
};
|
|
2884
|
+
GetAdminUsersStatsDto: {
|
|
2885
|
+
totalUsers: number;
|
|
2886
|
+
platformStats: components["schemas"]["PlatformStatsDto"][];
|
|
2887
|
+
versionStats: components["schemas"]["VersionStatsDto"][];
|
|
2888
|
+
platformVersionStats: components["schemas"]["PlatformVersionStatsDto"][];
|
|
2889
|
+
};
|
|
2846
2890
|
AdminGamePlayerDto: {
|
|
2847
2891
|
playerId: string;
|
|
2848
2892
|
gamePlayerId: string;
|
|
@@ -2881,10 +2925,6 @@ export interface components {
|
|
|
2881
2925
|
paymentTypes: components["schemas"]["paymentTypes"][];
|
|
2882
2926
|
gamePlayers: components["schemas"]["AdminGamePlayerDto"][];
|
|
2883
2927
|
gameContactPhone?: string;
|
|
2884
|
-
/** @description Is game organized by host */
|
|
2885
|
-
isOrganizedByHost: boolean;
|
|
2886
|
-
/** @description Is game organized by paid host */
|
|
2887
|
-
isOrganizedByPaidHost: boolean;
|
|
2888
2928
|
};
|
|
2889
2929
|
AdminGamesDto: {
|
|
2890
2930
|
adminGames: components["schemas"]["AdminGameDto"][];
|
|
@@ -3228,6 +3268,7 @@ export type LogoutResponseDto = components['schemas']['LogoutResponseDto'];
|
|
|
3228
3268
|
export type PostMyUserReferralDto = components['schemas']['PostMyUserReferralDto'];
|
|
3229
3269
|
export type MyUserDto = components['schemas']['MyUserDto'];
|
|
3230
3270
|
export type UpdatePartialUserDto = components['schemas']['UpdatePartialUserDto'];
|
|
3271
|
+
export type SetLanguageDto = components['schemas']['SetLanguageDto'];
|
|
3231
3272
|
export type UserStatsDto = components['schemas']['UserStatsDto'];
|
|
3232
3273
|
export type UpsertUserMetaBooleanDto = components['schemas']['UpsertUserMetaBooleanDto'];
|
|
3233
3274
|
export type CreateHostedGameDto = components['schemas']['CreateHostedGameDto'];
|
|
@@ -3295,9 +3336,12 @@ export type Payload = components['schemas']['Payload'];
|
|
|
3295
3336
|
export type CreateShortLinkDto = components['schemas']['CreateShortLinkDto'];
|
|
3296
3337
|
export type ShortLinkDto = components['schemas']['ShortLinkDto'];
|
|
3297
3338
|
export type AdminUserStatsDto = components['schemas']['AdminUserStatsDto'];
|
|
3298
|
-
export type ReferralDto = components['schemas']['ReferralDto'];
|
|
3299
3339
|
export type AdminUserDto = components['schemas']['AdminUserDto'];
|
|
3300
3340
|
export type GetAdminUsersDto = components['schemas']['GetAdminUsersDto'];
|
|
3341
|
+
export type PlatformStatsDto = components['schemas']['PlatformStatsDto'];
|
|
3342
|
+
export type VersionStatsDto = components['schemas']['VersionStatsDto'];
|
|
3343
|
+
export type PlatformVersionStatsDto = components['schemas']['PlatformVersionStatsDto'];
|
|
3344
|
+
export type GetAdminUsersStatsDto = components['schemas']['GetAdminUsersStatsDto'];
|
|
3301
3345
|
export type AdminGamePlayerDto = components['schemas']['AdminGamePlayerDto'];
|
|
3302
3346
|
export type AdminGameDto = components['schemas']['AdminGameDto'];
|
|
3303
3347
|
export type AdminGamesDto = components['schemas']['AdminGamesDto'];
|
|
@@ -4565,6 +4609,45 @@ export interface operations {
|
|
|
4565
4609
|
};
|
|
4566
4610
|
};
|
|
4567
4611
|
};
|
|
4612
|
+
setMyLanguage: {
|
|
4613
|
+
parameters: {
|
|
4614
|
+
query?: never;
|
|
4615
|
+
header?: {
|
|
4616
|
+
/** @description Request trace id for logs */
|
|
4617
|
+
"x-trace-request-id"?: string;
|
|
4618
|
+
/** @description Session trace id for logs */
|
|
4619
|
+
"x-trace-session-id"?: string;
|
|
4620
|
+
/** @description IANA Timezone */
|
|
4621
|
+
"x-timezone"?: string;
|
|
4622
|
+
};
|
|
4623
|
+
path?: never;
|
|
4624
|
+
cookie?: never;
|
|
4625
|
+
};
|
|
4626
|
+
requestBody: {
|
|
4627
|
+
content: {
|
|
4628
|
+
"application/json": components["schemas"]["SetLanguageDto"];
|
|
4629
|
+
};
|
|
4630
|
+
};
|
|
4631
|
+
responses: {
|
|
4632
|
+
200: {
|
|
4633
|
+
headers: {
|
|
4634
|
+
[name: string]: unknown;
|
|
4635
|
+
};
|
|
4636
|
+
content: {
|
|
4637
|
+
"application/json": components["schemas"]["MyUserDto"];
|
|
4638
|
+
};
|
|
4639
|
+
};
|
|
4640
|
+
/** @description Application Error */
|
|
4641
|
+
500: {
|
|
4642
|
+
headers: {
|
|
4643
|
+
[name: string]: unknown;
|
|
4644
|
+
};
|
|
4645
|
+
content: {
|
|
4646
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
4647
|
+
};
|
|
4648
|
+
};
|
|
4649
|
+
};
|
|
4650
|
+
};
|
|
4568
4651
|
getMyUserStats: {
|
|
4569
4652
|
parameters: {
|
|
4570
4653
|
query?: never;
|
|
@@ -5240,7 +5323,10 @@ export interface operations {
|
|
|
5240
5323
|
};
|
|
5241
5324
|
getUsers: {
|
|
5242
5325
|
parameters: {
|
|
5243
|
-
query?:
|
|
5326
|
+
query?: {
|
|
5327
|
+
/** @description Search term to filter users by name, surname, email, userId, or phone number */
|
|
5328
|
+
search?: string;
|
|
5329
|
+
};
|
|
5244
5330
|
header?: {
|
|
5245
5331
|
/** @description Request trace id for logs */
|
|
5246
5332
|
"x-trace-request-id"?: string;
|
|
@@ -5273,6 +5359,41 @@ export interface operations {
|
|
|
5273
5359
|
};
|
|
5274
5360
|
};
|
|
5275
5361
|
};
|
|
5362
|
+
getUsersStats: {
|
|
5363
|
+
parameters: {
|
|
5364
|
+
query?: never;
|
|
5365
|
+
header?: {
|
|
5366
|
+
/** @description Request trace id for logs */
|
|
5367
|
+
"x-trace-request-id"?: string;
|
|
5368
|
+
/** @description Session trace id for logs */
|
|
5369
|
+
"x-trace-session-id"?: string;
|
|
5370
|
+
/** @description IANA Timezone */
|
|
5371
|
+
"x-timezone"?: string;
|
|
5372
|
+
};
|
|
5373
|
+
path?: never;
|
|
5374
|
+
cookie?: never;
|
|
5375
|
+
};
|
|
5376
|
+
requestBody?: never;
|
|
5377
|
+
responses: {
|
|
5378
|
+
200: {
|
|
5379
|
+
headers: {
|
|
5380
|
+
[name: string]: unknown;
|
|
5381
|
+
};
|
|
5382
|
+
content: {
|
|
5383
|
+
"application/json": components["schemas"]["GetAdminUsersStatsDto"];
|
|
5384
|
+
};
|
|
5385
|
+
};
|
|
5386
|
+
/** @description Application Error */
|
|
5387
|
+
500: {
|
|
5388
|
+
headers: {
|
|
5389
|
+
[name: string]: unknown;
|
|
5390
|
+
};
|
|
5391
|
+
content: {
|
|
5392
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
5393
|
+
};
|
|
5394
|
+
};
|
|
5395
|
+
};
|
|
5396
|
+
};
|
|
5276
5397
|
getGames: {
|
|
5277
5398
|
parameters: {
|
|
5278
5399
|
query?: {
|
|
@@ -7377,6 +7498,10 @@ export declare enum AppProfileType {
|
|
|
7377
7498
|
player = "player",
|
|
7378
7499
|
host = "host"
|
|
7379
7500
|
}
|
|
7501
|
+
export declare enum AppLanguage {
|
|
7502
|
+
pl = "pl",
|
|
7503
|
+
en = "en"
|
|
7504
|
+
}
|
|
7380
7505
|
export declare enum AppGameLevel {
|
|
7381
7506
|
BEGINNER = "BEGINNER",
|
|
7382
7507
|
INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER",
|
|
@@ -7556,6 +7681,7 @@ export declare enum ApiPaths {
|
|
|
7556
7681
|
getMyUser = "/users/me",
|
|
7557
7682
|
updateMyUserPartial = "/users/me",
|
|
7558
7683
|
deleteMyUser = "/users/me",
|
|
7684
|
+
setMyLanguage = "/users/me/language",
|
|
7559
7685
|
getMyUserStats = "/users/me/stats",
|
|
7560
7686
|
upsertUserMetaPushNotificationEnabledValue = "/user-meta/push-notification-enabled",
|
|
7561
7687
|
createHostedGame = "/hosted-games",
|
|
@@ -7576,6 +7702,7 @@ export declare enum ApiPaths {
|
|
|
7576
7702
|
createShortLink = "/short-link",
|
|
7577
7703
|
createRecurringGame = "/recurring-games",
|
|
7578
7704
|
getUsers = "/admin/users",
|
|
7705
|
+
getUsersStats = "/admin/users/stats",
|
|
7579
7706
|
getGames = "/admin/games",
|
|
7580
7707
|
getGamesForPost = "/admin/games-for-post",
|
|
7581
7708
|
getKnownCitiesForPost = "/admin/known-cities",
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Do not make direct changes to the file.
|
|
5
5
|
*/
|
|
6
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;
|
|
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.AppLanguage = 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
8
|
var KnownException;
|
|
9
9
|
(function (KnownException) {
|
|
10
10
|
KnownException["UserBanned"] = "UserBanned";
|
|
@@ -101,6 +101,11 @@ var AppProfileType;
|
|
|
101
101
|
AppProfileType["player"] = "player";
|
|
102
102
|
AppProfileType["host"] = "host";
|
|
103
103
|
})(AppProfileType || (exports.AppProfileType = AppProfileType = {}));
|
|
104
|
+
var AppLanguage;
|
|
105
|
+
(function (AppLanguage) {
|
|
106
|
+
AppLanguage["pl"] = "pl";
|
|
107
|
+
AppLanguage["en"] = "en";
|
|
108
|
+
})(AppLanguage || (exports.AppLanguage = AppLanguage = {}));
|
|
104
109
|
var AppGameLevel;
|
|
105
110
|
(function (AppGameLevel) {
|
|
106
111
|
AppGameLevel["BEGINNER"] = "BEGINNER";
|
|
@@ -294,6 +299,7 @@ var ApiPaths;
|
|
|
294
299
|
ApiPaths["getMyUser"] = "/users/me";
|
|
295
300
|
ApiPaths["updateMyUserPartial"] = "/users/me";
|
|
296
301
|
ApiPaths["deleteMyUser"] = "/users/me";
|
|
302
|
+
ApiPaths["setMyLanguage"] = "/users/me/language";
|
|
297
303
|
ApiPaths["getMyUserStats"] = "/users/me/stats";
|
|
298
304
|
ApiPaths["upsertUserMetaPushNotificationEnabledValue"] = "/user-meta/push-notification-enabled";
|
|
299
305
|
ApiPaths["createHostedGame"] = "/hosted-games";
|
|
@@ -314,6 +320,7 @@ var ApiPaths;
|
|
|
314
320
|
ApiPaths["createShortLink"] = "/short-link";
|
|
315
321
|
ApiPaths["createRecurringGame"] = "/recurring-games";
|
|
316
322
|
ApiPaths["getUsers"] = "/admin/users";
|
|
323
|
+
ApiPaths["getUsersStats"] = "/admin/users/stats";
|
|
317
324
|
ApiPaths["getGames"] = "/admin/games";
|
|
318
325
|
ApiPaths["getGamesForPost"] = "/admin/games-for-post";
|
|
319
326
|
ApiPaths["getKnownCitiesForPost"] = "/admin/known-cities";
|