@orlikfy/api-interfaces 4.2.0 → 4.2.2

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 CHANGED
@@ -10,7 +10,7 @@ Run the server locally to ensure the latest `openapi.yaml` is generated:
10
10
 
11
11
  ```bash
12
12
  cd server
13
- npm run start:dev
13
+ OPENAPI_GEN_ONLY=true npm run start:dev
14
14
  ```
15
15
 
16
16
  > Note: This step will be automated in the future.
package/dist/api.d.ts CHANGED
@@ -827,6 +827,23 @@ export interface paths {
827
827
  patch?: never;
828
828
  trace?: never;
829
829
  };
830
+ "/admin/games/stats": {
831
+ parameters: {
832
+ query?: never;
833
+ header?: never;
834
+ path?: never;
835
+ cookie?: never;
836
+ };
837
+ /** getGamesStatsForAdmin */
838
+ get: operations["getGamesStats"];
839
+ put?: never;
840
+ post?: never;
841
+ delete?: never;
842
+ options?: never;
843
+ head?: never;
844
+ patch?: never;
845
+ trace?: never;
846
+ };
830
847
  "/admin/known-cities": {
831
848
  parameters: {
832
849
  query?: never;
@@ -2881,11 +2898,33 @@ export interface components {
2881
2898
  version: string;
2882
2899
  count: number;
2883
2900
  };
2901
+ DailyStatsDto: {
2902
+ /** @description Date in YYYY-MM-DD format */
2903
+ date: string;
2904
+ count: number;
2905
+ };
2884
2906
  GetAdminUsersStatsDto: {
2885
2907
  totalUsers: number;
2886
2908
  platformStats: components["schemas"]["PlatformStatsDto"][];
2887
2909
  versionStats: components["schemas"]["VersionStatsDto"][];
2888
2910
  platformVersionStats: components["schemas"]["PlatformVersionStatsDto"][];
2911
+ /** @description Daily user registration counts */
2912
+ dailyRegistrations: components["schemas"]["DailyStatsDto"][];
2913
+ /**
2914
+ * @deprecated
2915
+ * @description Daily game creation counts
2916
+ */
2917
+ dailyGamesCreated: components["schemas"]["DailyStatsDto"][];
2918
+ /**
2919
+ * @deprecated
2920
+ * @description Daily game application creation counts
2921
+ */
2922
+ dailyApplicationsCreated: components["schemas"]["DailyStatsDto"][];
2923
+ /**
2924
+ * @deprecated
2925
+ * @description Daily game application acceptance counts
2926
+ */
2927
+ dailyApplicationsAccepted: components["schemas"]["DailyStatsDto"][];
2889
2928
  };
2890
2929
  AdminGamePlayerDto: {
2891
2930
  playerId: string;
@@ -2952,6 +2991,14 @@ export interface components {
2952
2991
  gamesByDateMessage: string;
2953
2992
  gamesByLocationMessage: string;
2954
2993
  };
2994
+ GetAdminGamesStatsDto: {
2995
+ /** @description Daily game creation counts */
2996
+ dailyGamesCreated: components["schemas"]["DailyStatsDto"][];
2997
+ /** @description Daily game application creation counts */
2998
+ dailyApplicationsCreated: components["schemas"]["DailyStatsDto"][];
2999
+ /** @description Daily game application acceptance counts */
3000
+ dailyApplicationsAccepted: components["schemas"]["DailyStatsDto"][];
3001
+ };
2955
3002
  GetKnownCitiesForPostDto: {
2956
3003
  knownCities: string[];
2957
3004
  };
@@ -3341,6 +3388,7 @@ export type GetAdminUsersDto = components['schemas']['GetAdminUsersDto'];
3341
3388
  export type PlatformStatsDto = components['schemas']['PlatformStatsDto'];
3342
3389
  export type VersionStatsDto = components['schemas']['VersionStatsDto'];
3343
3390
  export type PlatformVersionStatsDto = components['schemas']['PlatformVersionStatsDto'];
3391
+ export type DailyStatsDto = components['schemas']['DailyStatsDto'];
3344
3392
  export type GetAdminUsersStatsDto = components['schemas']['GetAdminUsersStatsDto'];
3345
3393
  export type AdminGamePlayerDto = components['schemas']['AdminGamePlayerDto'];
3346
3394
  export type AdminGameDto = components['schemas']['AdminGameDto'];
@@ -3349,6 +3397,7 @@ export type GamesByDate = components['schemas']['GamesByDate'];
3349
3397
  export type AdminGameDtoLocation = components['schemas']['AdminGameDtoLocation'];
3350
3398
  export type GamesByLocation = components['schemas']['GamesByLocation'];
3351
3399
  export type GetAdminGamesForPostDto = components['schemas']['GetAdminGamesForPostDto'];
3400
+ export type GetAdminGamesStatsDto = components['schemas']['GetAdminGamesStatsDto'];
3352
3401
  export type GetKnownCitiesForPostDto = components['schemas']['GetKnownCitiesForPostDto'];
3353
3402
  export type RestoreRecurringGameDto = components['schemas']['RestoreRecurringGameDto'];
3354
3403
  export type RestoreRecurringGameResponseDto = components['schemas']['RestoreRecurringGameResponseDto'];
@@ -5361,7 +5410,12 @@ export interface operations {
5361
5410
  };
5362
5411
  getUsersStats: {
5363
5412
  parameters: {
5364
- query?: never;
5413
+ query?: {
5414
+ /** @description Number of days to include in daily registration stats */
5415
+ registrationStatsDays?: number;
5416
+ /** @description Force refresh the cached stats */
5417
+ forceRefresh?: boolean;
5418
+ };
5365
5419
  header?: {
5366
5420
  /** @description Request trace id for logs */
5367
5421
  "x-trace-request-id"?: string;
@@ -5478,6 +5532,46 @@ export interface operations {
5478
5532
  };
5479
5533
  };
5480
5534
  };
5535
+ getGamesStats: {
5536
+ parameters: {
5537
+ query?: {
5538
+ /** @description Number of days to include in daily stats */
5539
+ statsDays?: number;
5540
+ /** @description Force refresh the cached stats */
5541
+ forceRefresh?: boolean;
5542
+ };
5543
+ header?: {
5544
+ /** @description Request trace id for logs */
5545
+ "x-trace-request-id"?: string;
5546
+ /** @description Session trace id for logs */
5547
+ "x-trace-session-id"?: string;
5548
+ /** @description IANA Timezone */
5549
+ "x-timezone"?: string;
5550
+ };
5551
+ path?: never;
5552
+ cookie?: never;
5553
+ };
5554
+ requestBody?: never;
5555
+ responses: {
5556
+ 200: {
5557
+ headers: {
5558
+ [name: string]: unknown;
5559
+ };
5560
+ content: {
5561
+ "application/json": components["schemas"]["GetAdminGamesStatsDto"];
5562
+ };
5563
+ };
5564
+ /** @description Application Error */
5565
+ 500: {
5566
+ headers: {
5567
+ [name: string]: unknown;
5568
+ };
5569
+ content: {
5570
+ "application/json": components["schemas"]["ErrorResponse"];
5571
+ };
5572
+ };
5573
+ };
5574
+ };
5481
5575
  getKnownCitiesForPost: {
5482
5576
  parameters: {
5483
5577
  query?: never;
@@ -7705,6 +7799,7 @@ export declare enum ApiPaths {
7705
7799
  getUsersStats = "/admin/users/stats",
7706
7800
  getGames = "/admin/games",
7707
7801
  getGamesForPost = "/admin/games-for-post",
7802
+ getGamesStats = "/admin/games/stats",
7708
7803
  getKnownCitiesForPost = "/admin/known-cities",
7709
7804
  restoreRecurringGame = "/admin/restore-recurring-game",
7710
7805
  removeOldGameChats = "/admin/adhoc/remove-old-game-chats",
package/dist/api.js CHANGED
@@ -323,6 +323,7 @@ var ApiPaths;
323
323
  ApiPaths["getUsersStats"] = "/admin/users/stats";
324
324
  ApiPaths["getGames"] = "/admin/games";
325
325
  ApiPaths["getGamesForPost"] = "/admin/games-for-post";
326
+ ApiPaths["getGamesStats"] = "/admin/games/stats";
326
327
  ApiPaths["getKnownCitiesForPost"] = "/admin/known-cities";
327
328
  ApiPaths["restoreRecurringGame"] = "/admin/restore-recurring-game";
328
329
  ApiPaths["removeOldGameChats"] = "/admin/adhoc/remove-old-game-chats";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orlikfy/api-interfaces",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "kruligh",