@orlikfy/api-interfaces 4.1.0 → 4.2.1
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 +1 -1
- package/dist/api.d.ts +88 -5
- package/dist/api.js +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
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;
|
|
@@ -2039,6 +2056,8 @@ export interface components {
|
|
|
2039
2056
|
};
|
|
2040
2057
|
/** @enum {string} */
|
|
2041
2058
|
AppProfileType: AppProfileType;
|
|
2059
|
+
/** @enum {string} */
|
|
2060
|
+
AppLanguage: AppLanguage;
|
|
2042
2061
|
MyUserDto: {
|
|
2043
2062
|
userId: string;
|
|
2044
2063
|
userAuthId: string;
|
|
@@ -2059,6 +2078,7 @@ export interface components {
|
|
|
2059
2078
|
profileType?: components["schemas"]["AppProfileType"] | null;
|
|
2060
2079
|
referralToken: string;
|
|
2061
2080
|
canSetReferral: boolean;
|
|
2081
|
+
language: components["schemas"]["AppLanguage"];
|
|
2062
2082
|
};
|
|
2063
2083
|
/** @enum {string} */
|
|
2064
2084
|
AppGameLevel: AppGameLevel;
|
|
@@ -2071,6 +2091,9 @@ export interface components {
|
|
|
2071
2091
|
preferredLevel?: components["schemas"]["AppGameLevel"] | null;
|
|
2072
2092
|
profileType?: components["schemas"]["AppProfileType"];
|
|
2073
2093
|
};
|
|
2094
|
+
SetLanguageDto: {
|
|
2095
|
+
language: components["schemas"]["AppLanguage"];
|
|
2096
|
+
};
|
|
2074
2097
|
UserStatsDto: {
|
|
2075
2098
|
userId: string;
|
|
2076
2099
|
playedGames: number;
|
|
@@ -2858,11 +2881,24 @@ export interface components {
|
|
|
2858
2881
|
version: string;
|
|
2859
2882
|
count: number;
|
|
2860
2883
|
};
|
|
2884
|
+
DailyStatsDto: {
|
|
2885
|
+
/** @description Date in YYYY-MM-DD format */
|
|
2886
|
+
date: string;
|
|
2887
|
+
count: number;
|
|
2888
|
+
};
|
|
2861
2889
|
GetAdminUsersStatsDto: {
|
|
2862
2890
|
totalUsers: number;
|
|
2863
2891
|
platformStats: components["schemas"]["PlatformStatsDto"][];
|
|
2864
2892
|
versionStats: components["schemas"]["VersionStatsDto"][];
|
|
2865
2893
|
platformVersionStats: components["schemas"]["PlatformVersionStatsDto"][];
|
|
2894
|
+
/** @description Daily user registration counts */
|
|
2895
|
+
dailyRegistrations: components["schemas"]["DailyStatsDto"][];
|
|
2896
|
+
/** @description Daily game creation counts */
|
|
2897
|
+
dailyGamesCreated: components["schemas"]["DailyStatsDto"][];
|
|
2898
|
+
/** @description Daily game application creation counts */
|
|
2899
|
+
dailyApplicationsCreated: components["schemas"]["DailyStatsDto"][];
|
|
2900
|
+
/** @description Daily game application acceptance counts */
|
|
2901
|
+
dailyApplicationsAccepted: components["schemas"]["DailyStatsDto"][];
|
|
2866
2902
|
};
|
|
2867
2903
|
AdminGamePlayerDto: {
|
|
2868
2904
|
playerId: string;
|
|
@@ -2902,10 +2938,6 @@ export interface components {
|
|
|
2902
2938
|
paymentTypes: components["schemas"]["paymentTypes"][];
|
|
2903
2939
|
gamePlayers: components["schemas"]["AdminGamePlayerDto"][];
|
|
2904
2940
|
gameContactPhone?: string;
|
|
2905
|
-
/** @description Is game organized by host */
|
|
2906
|
-
isOrganizedByHost: boolean;
|
|
2907
|
-
/** @description Is game organized by paid host */
|
|
2908
|
-
isOrganizedByPaidHost: boolean;
|
|
2909
2941
|
};
|
|
2910
2942
|
AdminGamesDto: {
|
|
2911
2943
|
adminGames: components["schemas"]["AdminGameDto"][];
|
|
@@ -3249,6 +3281,7 @@ export type LogoutResponseDto = components['schemas']['LogoutResponseDto'];
|
|
|
3249
3281
|
export type PostMyUserReferralDto = components['schemas']['PostMyUserReferralDto'];
|
|
3250
3282
|
export type MyUserDto = components['schemas']['MyUserDto'];
|
|
3251
3283
|
export type UpdatePartialUserDto = components['schemas']['UpdatePartialUserDto'];
|
|
3284
|
+
export type SetLanguageDto = components['schemas']['SetLanguageDto'];
|
|
3252
3285
|
export type UserStatsDto = components['schemas']['UserStatsDto'];
|
|
3253
3286
|
export type UpsertUserMetaBooleanDto = components['schemas']['UpsertUserMetaBooleanDto'];
|
|
3254
3287
|
export type CreateHostedGameDto = components['schemas']['CreateHostedGameDto'];
|
|
@@ -3321,6 +3354,7 @@ export type GetAdminUsersDto = components['schemas']['GetAdminUsersDto'];
|
|
|
3321
3354
|
export type PlatformStatsDto = components['schemas']['PlatformStatsDto'];
|
|
3322
3355
|
export type VersionStatsDto = components['schemas']['VersionStatsDto'];
|
|
3323
3356
|
export type PlatformVersionStatsDto = components['schemas']['PlatformVersionStatsDto'];
|
|
3357
|
+
export type DailyStatsDto = components['schemas']['DailyStatsDto'];
|
|
3324
3358
|
export type GetAdminUsersStatsDto = components['schemas']['GetAdminUsersStatsDto'];
|
|
3325
3359
|
export type AdminGamePlayerDto = components['schemas']['AdminGamePlayerDto'];
|
|
3326
3360
|
export type AdminGameDto = components['schemas']['AdminGameDto'];
|
|
@@ -4589,6 +4623,45 @@ export interface operations {
|
|
|
4589
4623
|
};
|
|
4590
4624
|
};
|
|
4591
4625
|
};
|
|
4626
|
+
setMyLanguage: {
|
|
4627
|
+
parameters: {
|
|
4628
|
+
query?: never;
|
|
4629
|
+
header?: {
|
|
4630
|
+
/** @description Request trace id for logs */
|
|
4631
|
+
"x-trace-request-id"?: string;
|
|
4632
|
+
/** @description Session trace id for logs */
|
|
4633
|
+
"x-trace-session-id"?: string;
|
|
4634
|
+
/** @description IANA Timezone */
|
|
4635
|
+
"x-timezone"?: string;
|
|
4636
|
+
};
|
|
4637
|
+
path?: never;
|
|
4638
|
+
cookie?: never;
|
|
4639
|
+
};
|
|
4640
|
+
requestBody: {
|
|
4641
|
+
content: {
|
|
4642
|
+
"application/json": components["schemas"]["SetLanguageDto"];
|
|
4643
|
+
};
|
|
4644
|
+
};
|
|
4645
|
+
responses: {
|
|
4646
|
+
200: {
|
|
4647
|
+
headers: {
|
|
4648
|
+
[name: string]: unknown;
|
|
4649
|
+
};
|
|
4650
|
+
content: {
|
|
4651
|
+
"application/json": components["schemas"]["MyUserDto"];
|
|
4652
|
+
};
|
|
4653
|
+
};
|
|
4654
|
+
/** @description Application Error */
|
|
4655
|
+
500: {
|
|
4656
|
+
headers: {
|
|
4657
|
+
[name: string]: unknown;
|
|
4658
|
+
};
|
|
4659
|
+
content: {
|
|
4660
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
4661
|
+
};
|
|
4662
|
+
};
|
|
4663
|
+
};
|
|
4664
|
+
};
|
|
4592
4665
|
getMyUserStats: {
|
|
4593
4666
|
parameters: {
|
|
4594
4667
|
query?: never;
|
|
@@ -5302,7 +5375,12 @@ export interface operations {
|
|
|
5302
5375
|
};
|
|
5303
5376
|
getUsersStats: {
|
|
5304
5377
|
parameters: {
|
|
5305
|
-
query?:
|
|
5378
|
+
query?: {
|
|
5379
|
+
/** @description Number of days to include in daily registration stats */
|
|
5380
|
+
registrationStatsDays?: number;
|
|
5381
|
+
/** @description Force refresh the cached stats */
|
|
5382
|
+
forceRefresh?: boolean;
|
|
5383
|
+
};
|
|
5306
5384
|
header?: {
|
|
5307
5385
|
/** @description Request trace id for logs */
|
|
5308
5386
|
"x-trace-request-id"?: string;
|
|
@@ -7439,6 +7517,10 @@ export declare enum AppProfileType {
|
|
|
7439
7517
|
player = "player",
|
|
7440
7518
|
host = "host"
|
|
7441
7519
|
}
|
|
7520
|
+
export declare enum AppLanguage {
|
|
7521
|
+
pl = "pl",
|
|
7522
|
+
en = "en"
|
|
7523
|
+
}
|
|
7442
7524
|
export declare enum AppGameLevel {
|
|
7443
7525
|
BEGINNER = "BEGINNER",
|
|
7444
7526
|
INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER",
|
|
@@ -7618,6 +7700,7 @@ export declare enum ApiPaths {
|
|
|
7618
7700
|
getMyUser = "/users/me",
|
|
7619
7701
|
updateMyUserPartial = "/users/me",
|
|
7620
7702
|
deleteMyUser = "/users/me",
|
|
7703
|
+
setMyLanguage = "/users/me/language",
|
|
7621
7704
|
getMyUserStats = "/users/me/stats",
|
|
7622
7705
|
upsertUserMetaPushNotificationEnabledValue = "/user-meta/push-notification-enabled",
|
|
7623
7706
|
createHostedGame = "/hosted-games",
|
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";
|