@orlikfy/api-interfaces 4.2.1 → 4.2.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 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;
@@ -2893,12 +2910,6 @@ export interface components {
2893
2910
  platformVersionStats: components["schemas"]["PlatformVersionStatsDto"][];
2894
2911
  /** @description Daily user registration counts */
2895
2912
  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"][];
2902
2913
  };
2903
2914
  AdminGamePlayerDto: {
2904
2915
  playerId: string;
@@ -2965,6 +2976,14 @@ export interface components {
2965
2976
  gamesByDateMessage: string;
2966
2977
  gamesByLocationMessage: string;
2967
2978
  };
2979
+ GetAdminGamesStatsDto: {
2980
+ /** @description Daily game creation counts */
2981
+ dailyGamesCreated: components["schemas"]["DailyStatsDto"][];
2982
+ /** @description Daily game application creation counts */
2983
+ dailyApplicationsCreated: components["schemas"]["DailyStatsDto"][];
2984
+ /** @description Daily game application acceptance counts */
2985
+ dailyApplicationsAccepted: components["schemas"]["DailyStatsDto"][];
2986
+ };
2968
2987
  GetKnownCitiesForPostDto: {
2969
2988
  knownCities: string[];
2970
2989
  };
@@ -3363,6 +3382,7 @@ export type GamesByDate = components['schemas']['GamesByDate'];
3363
3382
  export type AdminGameDtoLocation = components['schemas']['AdminGameDtoLocation'];
3364
3383
  export type GamesByLocation = components['schemas']['GamesByLocation'];
3365
3384
  export type GetAdminGamesForPostDto = components['schemas']['GetAdminGamesForPostDto'];
3385
+ export type GetAdminGamesStatsDto = components['schemas']['GetAdminGamesStatsDto'];
3366
3386
  export type GetKnownCitiesForPostDto = components['schemas']['GetKnownCitiesForPostDto'];
3367
3387
  export type RestoreRecurringGameDto = components['schemas']['RestoreRecurringGameDto'];
3368
3388
  export type RestoreRecurringGameResponseDto = components['schemas']['RestoreRecurringGameResponseDto'];
@@ -5378,7 +5398,7 @@ export interface operations {
5378
5398
  query?: {
5379
5399
  /** @description Number of days to include in daily registration stats */
5380
5400
  registrationStatsDays?: number;
5381
- /** @description Force refresh the cached stats */
5401
+ /** @description When true, bypasses the in-memory cache (1h TTL) and fetches fresh stats from the database */
5382
5402
  forceRefresh?: boolean;
5383
5403
  };
5384
5404
  header?: {
@@ -5497,6 +5517,46 @@ export interface operations {
5497
5517
  };
5498
5518
  };
5499
5519
  };
5520
+ getGamesStats: {
5521
+ parameters: {
5522
+ query?: {
5523
+ /** @description Number of days to include in daily stats */
5524
+ statsDays?: number;
5525
+ /** @description When true, bypasses the in-memory cache (1h TTL) and fetches fresh stats from the database */
5526
+ forceRefresh?: boolean;
5527
+ };
5528
+ header?: {
5529
+ /** @description Request trace id for logs */
5530
+ "x-trace-request-id"?: string;
5531
+ /** @description Session trace id for logs */
5532
+ "x-trace-session-id"?: string;
5533
+ /** @description IANA Timezone */
5534
+ "x-timezone"?: string;
5535
+ };
5536
+ path?: never;
5537
+ cookie?: never;
5538
+ };
5539
+ requestBody?: never;
5540
+ responses: {
5541
+ 200: {
5542
+ headers: {
5543
+ [name: string]: unknown;
5544
+ };
5545
+ content: {
5546
+ "application/json": components["schemas"]["GetAdminGamesStatsDto"];
5547
+ };
5548
+ };
5549
+ /** @description Application Error */
5550
+ 500: {
5551
+ headers: {
5552
+ [name: string]: unknown;
5553
+ };
5554
+ content: {
5555
+ "application/json": components["schemas"]["ErrorResponse"];
5556
+ };
5557
+ };
5558
+ };
5559
+ };
5500
5560
  getKnownCitiesForPost: {
5501
5561
  parameters: {
5502
5562
  query?: never;
@@ -7724,6 +7784,7 @@ export declare enum ApiPaths {
7724
7784
  getUsersStats = "/admin/users/stats",
7725
7785
  getGames = "/admin/games",
7726
7786
  getGamesForPost = "/admin/games-for-post",
7787
+ getGamesStats = "/admin/games/stats",
7727
7788
  getKnownCitiesForPost = "/admin/known-cities",
7728
7789
  restoreRecurringGame = "/admin/restore-recurring-game",
7729
7790
  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.1",
3
+ "version": "4.2.3",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "kruligh",