@orlikfy/api-interfaces 4.2.2 → 4.2.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 CHANGED
@@ -2203,7 +2203,7 @@ export interface components {
2203
2203
  */
2204
2204
  leftAt: string | null;
2205
2205
  };
2206
- HostedGamesItemDto: {
2206
+ HostedGameItemDto: {
2207
2207
  gameId: string;
2208
2208
  hostId: string;
2209
2209
  host: components["schemas"]["HostDto"];
@@ -2254,8 +2254,8 @@ export interface components {
2254
2254
  visibility?: components["schemas"]["visibility"];
2255
2255
  locationType?: components["schemas"]["AppGameLocationType"];
2256
2256
  };
2257
- HostedGamesDto: {
2258
- hostedGames: components["schemas"]["HostedGamesItemDto"][];
2257
+ HostedGameDto: {
2258
+ hostedGames: components["schemas"]["HostedGameItemDto"][];
2259
2259
  };
2260
2260
  HostedGameInvitationDto: {
2261
2261
  gameInvitationId: string;
@@ -2910,22 +2910,11 @@ export interface components {
2910
2910
  platformVersionStats: components["schemas"]["PlatformVersionStatsDto"][];
2911
2911
  /** @description Daily user registration counts */
2912
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"][];
2928
2913
  };
2914
+ /** @enum {string} */
2915
+ AdminGameTypeFilter: AdminGameTypeFilter;
2916
+ /** @enum {string} */
2917
+ GameVisibility: GameVisibility;
2929
2918
  AdminGamePlayerDto: {
2930
2919
  playerId: string;
2931
2920
  gamePlayerId: string;
@@ -2964,6 +2953,8 @@ export interface components {
2964
2953
  paymentTypes: components["schemas"]["paymentTypes"][];
2965
2954
  gamePlayers: components["schemas"]["AdminGamePlayerDto"][];
2966
2955
  gameContactPhone?: string;
2956
+ /** Format: date-time */
2957
+ createdAt: string;
2967
2958
  };
2968
2959
  AdminGamesDto: {
2969
2960
  adminGames: components["schemas"]["AdminGameDto"][];
@@ -3324,9 +3315,9 @@ export type CommonUserDto = components['schemas']['CommonUserDto'];
3324
3315
  export type CommonUserPenaltyDto = components['schemas']['CommonUserPenaltyDto'];
3325
3316
  export type HostedGamePlayerApplicationDto = components['schemas']['HostedGamePlayerApplicationDto'];
3326
3317
  export type HostedGamePlayerDto = components['schemas']['HostedGamePlayerDto'];
3327
- export type HostedGamesItemDto = components['schemas']['HostedGamesItemDto'];
3318
+ export type HostedGameItemDto = components['schemas']['HostedGameItemDto'];
3328
3319
  export type UpdatePartialHostedGameDto = components['schemas']['UpdatePartialHostedGameDto'];
3329
- export type HostedGamesDto = components['schemas']['HostedGamesDto'];
3320
+ export type HostedGameDto = components['schemas']['HostedGameDto'];
3330
3321
  export type HostedGameInvitationDto = components['schemas']['HostedGameInvitationDto'];
3331
3322
  export type HostedGameDetailsDto = components['schemas']['HostedGameDetailsDto'];
3332
3323
  export type FbGroupDto = components['schemas']['FbGroupDto'];
@@ -4794,7 +4785,7 @@ export interface operations {
4794
4785
  [name: string]: unknown;
4795
4786
  };
4796
4787
  content: {
4797
- "application/json": components["schemas"]["HostedGamesItemDto"];
4788
+ "application/json": components["schemas"]["HostedGameItemDto"];
4798
4789
  };
4799
4790
  };
4800
4791
  /** @description GameStartDateBeforeCurrentDatePlusOffset, GameEndDateBeforeStartDate */
@@ -4918,7 +4909,7 @@ export interface operations {
4918
4909
  [name: string]: unknown;
4919
4910
  };
4920
4911
  content: {
4921
- "application/json": components["schemas"]["HostedGamesItemDto"];
4912
+ "application/json": components["schemas"]["HostedGameItemDto"];
4922
4913
  };
4923
4914
  };
4924
4915
  /** @description GameStartDateBeforeCurrentDatePlusOffset, GameEndDateBeforeStartDate, CannotEditGameAfterItsFinished */
@@ -4963,7 +4954,7 @@ export interface operations {
4963
4954
  [name: string]: unknown;
4964
4955
  };
4965
4956
  content: {
4966
- "application/json": components["schemas"]["HostedGamesDto"];
4957
+ "application/json": components["schemas"]["HostedGameDto"];
4967
4958
  };
4968
4959
  };
4969
4960
  /** @description Application Error */
@@ -5001,7 +4992,7 @@ export interface operations {
5001
4992
  [name: string]: unknown;
5002
4993
  };
5003
4994
  content: {
5004
- "application/json": components["schemas"]["HostedGamesDto"];
4995
+ "application/json": components["schemas"]["HostedGameDto"];
5005
4996
  };
5006
4997
  };
5007
4998
  /** @description Application Error */
@@ -5413,7 +5404,7 @@ export interface operations {
5413
5404
  query?: {
5414
5405
  /** @description Number of days to include in daily registration stats */
5415
5406
  registrationStatsDays?: number;
5416
- /** @description Force refresh the cached stats */
5407
+ /** @description When true, bypasses the in-memory cache (1h TTL) and fetches fresh stats from the database */
5417
5408
  forceRefresh?: boolean;
5418
5409
  };
5419
5410
  header?: {
@@ -5451,8 +5442,14 @@ export interface operations {
5451
5442
  getGames: {
5452
5443
  parameters: {
5453
5444
  query?: {
5454
- /** @description Default 7 */
5445
+ /** @description Number of days to look back. Default 7 */
5455
5446
  daysBefore?: number;
5447
+ /** @description Filter by game type. Omit for all. */
5448
+ gameType?: components["schemas"]["AdminGameTypeFilter"];
5449
+ /** @description Filter by visibility. Omit for all. */
5450
+ visibility?: components["schemas"]["GameVisibility"];
5451
+ /** @description Filter by city name */
5452
+ city?: string;
5456
5453
  };
5457
5454
  header?: {
5458
5455
  /** @description Request trace id for logs */
@@ -5537,7 +5534,7 @@ export interface operations {
5537
5534
  query?: {
5538
5535
  /** @description Number of days to include in daily stats */
5539
5536
  statsDays?: number;
5540
- /** @description Force refresh the cached stats */
5537
+ /** @description When true, bypasses the in-memory cache (1h TTL) and fetches fresh stats from the database */
5541
5538
  forceRefresh?: boolean;
5542
5539
  };
5543
5540
  header?: {
@@ -7713,6 +7710,14 @@ export declare enum UserRoleEnum {
7713
7710
  USER = "USER",
7714
7711
  ADMIN = "ADMIN"
7715
7712
  }
7713
+ export declare enum AdminGameTypeFilter {
7714
+ RECURRING = "RECURRING",
7715
+ SINGLE = "SINGLE"
7716
+ }
7717
+ export declare enum GameVisibility {
7718
+ PUBLIC = "PUBLIC",
7719
+ PRIVATE = "PRIVATE"
7720
+ }
7716
7721
  export declare enum MemberRole {
7717
7722
  Host = "Host",
7718
7723
  Moderator = "Moderator",
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.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;
7
+ exports.ApiPaths = exports.AppTrophyType = exports.CommentTypeEnum = exports.MemberRole = exports.GameVisibility = exports.AdminGameTypeFilter = 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";
@@ -233,6 +233,16 @@ var UserRoleEnum;
233
233
  UserRoleEnum["USER"] = "USER";
234
234
  UserRoleEnum["ADMIN"] = "ADMIN";
235
235
  })(UserRoleEnum || (exports.UserRoleEnum = UserRoleEnum = {}));
236
+ var AdminGameTypeFilter;
237
+ (function (AdminGameTypeFilter) {
238
+ AdminGameTypeFilter["RECURRING"] = "RECURRING";
239
+ AdminGameTypeFilter["SINGLE"] = "SINGLE";
240
+ })(AdminGameTypeFilter || (exports.AdminGameTypeFilter = AdminGameTypeFilter = {}));
241
+ var GameVisibility;
242
+ (function (GameVisibility) {
243
+ GameVisibility["PUBLIC"] = "PUBLIC";
244
+ GameVisibility["PRIVATE"] = "PRIVATE";
245
+ })(GameVisibility || (exports.GameVisibility = GameVisibility = {}));
236
246
  var MemberRole;
237
247
  (function (MemberRole) {
238
248
  MemberRole["Host"] = "Host";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orlikfy/api-interfaces",
3
- "version": "4.2.2",
3
+ "version": "4.2.4",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "kruligh",