@orlikfy/api-interfaces 6.0.0 → 6.0.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/dist/api.d.ts CHANGED
@@ -1612,6 +1612,23 @@ export interface paths {
1612
1612
  patch?: never;
1613
1613
  trace?: never;
1614
1614
  };
1615
+ "/users/location": {
1616
+ parameters: {
1617
+ query?: never;
1618
+ header?: never;
1619
+ path?: never;
1620
+ cookie?: never;
1621
+ };
1622
+ get?: never;
1623
+ /** updateUserLocation */
1624
+ put: operations["updateUserLocation"];
1625
+ post?: never;
1626
+ delete?: never;
1627
+ options?: never;
1628
+ head?: never;
1629
+ patch?: never;
1630
+ trace?: never;
1631
+ };
1615
1632
  "/hosted-games/{hostedGameId}/reassign/create-reassign-token": {
1616
1633
  parameters: {
1617
1634
  query?: never;
@@ -2799,6 +2816,10 @@ export interface components {
2799
2816
  playedGames: number;
2800
2817
  gameApplications: number;
2801
2818
  };
2819
+ RegionDto: {
2820
+ regionId: string;
2821
+ name: string;
2822
+ };
2802
2823
  AdminUserDto: {
2803
2824
  userId: string;
2804
2825
  name: string;
@@ -2811,6 +2832,7 @@ export interface components {
2811
2832
  versionInfo: string | null;
2812
2833
  platform: string | null;
2813
2834
  stats: components["schemas"]["AdminUserStatsDto"];
2835
+ region: components["schemas"]["RegionDto"] | null;
2814
2836
  };
2815
2837
  GetAdminUsersDto: {
2816
2838
  users: components["schemas"]["AdminUserDto"][];
@@ -2833,6 +2855,14 @@ export interface components {
2833
2855
  date: string;
2834
2856
  count: number;
2835
2857
  };
2858
+ RegionUserStatsDto: {
2859
+ regionName: string;
2860
+ userCount: number;
2861
+ };
2862
+ RegionDailyRegistrationsDto: {
2863
+ regionName: string;
2864
+ dailyRegistrations: components["schemas"]["DailyStatsDto"][];
2865
+ };
2836
2866
  GetAdminUsersStatsDto: {
2837
2867
  totalUsers: number;
2838
2868
  platformStats: components["schemas"]["PlatformStatsDto"][];
@@ -2840,11 +2870,21 @@ export interface components {
2840
2870
  platformVersionStats: components["schemas"]["PlatformVersionStatsDto"][];
2841
2871
  /** @description Daily user registration counts */
2842
2872
  dailyRegistrations: components["schemas"]["DailyStatsDto"][];
2873
+ regionStats: components["schemas"]["RegionUserStatsDto"][];
2874
+ regionDailyRegistrations: components["schemas"]["RegionDailyRegistrationsDto"][];
2843
2875
  };
2844
2876
  /** @enum {string} */
2845
2877
  AdminGameTypeFilter: AdminGameTypeFilter;
2846
2878
  /** @enum {string} */
2847
2879
  GameVisibility: GameVisibility;
2880
+ AdminGameDtoLocation: {
2881
+ locationId: string;
2882
+ name: string;
2883
+ coordinates: components["schemas"]["CoordinatesDto"];
2884
+ address: string;
2885
+ city: string;
2886
+ region: components["schemas"]["RegionDto"] | null;
2887
+ };
2848
2888
  AdminGamePlayerDto: {
2849
2889
  playerId: string;
2850
2890
  gamePlayerId: string;
@@ -2869,7 +2909,7 @@ export interface components {
2869
2909
  priceAmount: string;
2870
2910
  priceCurrency: components["schemas"]["priceCurrency"];
2871
2911
  level: components["schemas"]["level"];
2872
- location: components["schemas"]["CommonLocationDto"];
2912
+ location: components["schemas"]["AdminGameDtoLocation"];
2873
2913
  distanceMeters: number | null;
2874
2914
  currentUserParticipationStatus: components["schemas"]["userParticipationStatus"];
2875
2915
  visibility: components["schemas"]["visibility"];
@@ -2898,13 +2938,6 @@ export interface components {
2898
2938
  dateFormatted: string;
2899
2939
  games: components["schemas"]["AdminGameDto"][];
2900
2940
  };
2901
- AdminGameDtoLocation: {
2902
- locationId: string;
2903
- name: string;
2904
- coordinates: components["schemas"]["CoordinatesDto"];
2905
- address: string;
2906
- city: string;
2907
- };
2908
2941
  GamesByLocation: {
2909
2942
  location: components["schemas"]["AdminGameDtoLocation"];
2910
2943
  games: components["schemas"]["AdminGameDto"][];
@@ -2916,6 +2949,14 @@ export interface components {
2916
2949
  gamesByDateMessage: string;
2917
2950
  gamesByLocationMessage: string;
2918
2951
  };
2952
+ RegionGameStatsDto: {
2953
+ regionName: string;
2954
+ gameCount: number;
2955
+ };
2956
+ RegionDailyGamesStatsDto: {
2957
+ regionName: string;
2958
+ dailyStats: components["schemas"]["DailyStatsDto"][];
2959
+ };
2919
2960
  GetAdminGamesStatsDto: {
2920
2961
  /** @description Daily game creation counts */
2921
2962
  dailyGamesCreated: components["schemas"]["DailyStatsDto"][];
@@ -2923,6 +2964,10 @@ export interface components {
2923
2964
  dailyApplicationsCreated: components["schemas"]["DailyStatsDto"][];
2924
2965
  /** @description Daily game application acceptance counts */
2925
2966
  dailyApplicationsAccepted: components["schemas"]["DailyStatsDto"][];
2967
+ regionStats: components["schemas"]["RegionGameStatsDto"][];
2968
+ regionDailyGamesCreated: components["schemas"]["RegionDailyGamesStatsDto"][];
2969
+ regionDailyApplicationsCreated: components["schemas"]["RegionDailyGamesStatsDto"][];
2970
+ regionDailyApplicationsAccepted: components["schemas"]["RegionDailyGamesStatsDto"][];
2926
2971
  };
2927
2972
  GetKnownCitiesForPostDto: {
2928
2973
  knownCities: string[];
@@ -3184,6 +3229,13 @@ export interface components {
3184
3229
  users: components["schemas"]["UserRankDto"][];
3185
3230
  cached: boolean;
3186
3231
  };
3232
+ UpdateUserLocationDto: {
3233
+ coordinates: components["schemas"]["CoordinatesDto"];
3234
+ };
3235
+ UserLocationDto: {
3236
+ coordinates: components["schemas"]["CoordinatesDto"];
3237
+ region: components["schemas"]["RegionDto"] | null;
3238
+ };
3187
3239
  CreateReassignTokenResponseDto: {
3188
3240
  token: string;
3189
3241
  frontendURL: string;
@@ -3301,20 +3353,25 @@ export type MarkNotificationsAsReadDto = components['schemas']['MarkNotification
3301
3353
  export type RegisterDeviceNotificationTokenDto = components['schemas']['RegisterDeviceNotificationTokenDto'];
3302
3354
  export type ArrivalDto = components['schemas']['ArrivalDto'];
3303
3355
  export type AdminUserStatsDto = components['schemas']['AdminUserStatsDto'];
3356
+ export type RegionDto = components['schemas']['RegionDto'];
3304
3357
  export type AdminUserDto = components['schemas']['AdminUserDto'];
3305
3358
  export type GetAdminUsersDto = components['schemas']['GetAdminUsersDto'];
3306
3359
  export type PlatformStatsDto = components['schemas']['PlatformStatsDto'];
3307
3360
  export type VersionStatsDto = components['schemas']['VersionStatsDto'];
3308
3361
  export type PlatformVersionStatsDto = components['schemas']['PlatformVersionStatsDto'];
3309
3362
  export type DailyStatsDto = components['schemas']['DailyStatsDto'];
3363
+ export type RegionUserStatsDto = components['schemas']['RegionUserStatsDto'];
3364
+ export type RegionDailyRegistrationsDto = components['schemas']['RegionDailyRegistrationsDto'];
3310
3365
  export type GetAdminUsersStatsDto = components['schemas']['GetAdminUsersStatsDto'];
3366
+ export type AdminGameDtoLocation = components['schemas']['AdminGameDtoLocation'];
3311
3367
  export type AdminGamePlayerDto = components['schemas']['AdminGamePlayerDto'];
3312
3368
  export type AdminGameDto = components['schemas']['AdminGameDto'];
3313
3369
  export type AdminGamesDto = components['schemas']['AdminGamesDto'];
3314
3370
  export type GamesByDate = components['schemas']['GamesByDate'];
3315
- export type AdminGameDtoLocation = components['schemas']['AdminGameDtoLocation'];
3316
3371
  export type GamesByLocation = components['schemas']['GamesByLocation'];
3317
3372
  export type GetAdminGamesForPostDto = components['schemas']['GetAdminGamesForPostDto'];
3373
+ export type RegionGameStatsDto = components['schemas']['RegionGameStatsDto'];
3374
+ export type RegionDailyGamesStatsDto = components['schemas']['RegionDailyGamesStatsDto'];
3318
3375
  export type GetAdminGamesStatsDto = components['schemas']['GetAdminGamesStatsDto'];
3319
3376
  export type GetKnownCitiesForPostDto = components['schemas']['GetKnownCitiesForPostDto'];
3320
3377
  export type RestoreRecurringGameDto = components['schemas']['RestoreRecurringGameDto'];
@@ -3362,6 +3419,8 @@ export type UserGameDto = components['schemas']['UserGameDto'];
3362
3419
  export type GetUserGamesDto = components['schemas']['GetUserGamesDto'];
3363
3420
  export type UserRankDto = components['schemas']['UserRankDto'];
3364
3421
  export type UsersTopRankDto = components['schemas']['UsersTopRankDto'];
3422
+ export type UpdateUserLocationDto = components['schemas']['UpdateUserLocationDto'];
3423
+ export type UserLocationDto = components['schemas']['UserLocationDto'];
3365
3424
  export type CreateReassignTokenResponseDto = components['schemas']['CreateReassignTokenResponseDto'];
3366
3425
  export type InactiveUsersNotificationResponseDto = components['schemas']['InactiveUsersNotificationResponseDto'];
3367
3426
  export type $defs = Record<string, never>;
@@ -7262,6 +7321,45 @@ export interface operations {
7262
7321
  };
7263
7322
  };
7264
7323
  };
7324
+ updateUserLocation: {
7325
+ parameters: {
7326
+ query?: never;
7327
+ header?: {
7328
+ /** @description Request trace id for logs */
7329
+ "x-trace-request-id"?: string;
7330
+ /** @description Session trace id for logs */
7331
+ "x-trace-session-id"?: string;
7332
+ /** @description IANA Timezone */
7333
+ "x-timezone"?: string;
7334
+ };
7335
+ path?: never;
7336
+ cookie?: never;
7337
+ };
7338
+ requestBody: {
7339
+ content: {
7340
+ "application/json": components["schemas"]["UpdateUserLocationDto"];
7341
+ };
7342
+ };
7343
+ responses: {
7344
+ 200: {
7345
+ headers: {
7346
+ [name: string]: unknown;
7347
+ };
7348
+ content: {
7349
+ "application/json": components["schemas"]["UserLocationDto"];
7350
+ };
7351
+ };
7352
+ /** @description Application Error */
7353
+ 500: {
7354
+ headers: {
7355
+ [name: string]: unknown;
7356
+ };
7357
+ content: {
7358
+ "application/json": components["schemas"]["ErrorResponse"];
7359
+ };
7360
+ };
7361
+ };
7362
+ };
7265
7363
  generateReassignToken: {
7266
7364
  parameters: {
7267
7365
  query?: never;
@@ -7739,6 +7837,7 @@ export declare enum ApiPaths {
7739
7837
  getUserProfileGames = "/user/{userId}/games",
7740
7838
  getUserRank = "/user/{userId}/activity-rank",
7741
7839
  getUsersTopRank = "/activity-rank/top",
7840
+ updateUserLocation = "/users/location",
7742
7841
  generateReassignToken = "/hosted-games/{hostedGameId}/reassign/create-reassign-token",
7743
7842
  reassignGameByToken = "/hosted-games/{hostedGameId}/reassign/{reassignToken}",
7744
7843
  triggerInactiveUsersNotification = "/action-push/inactive-users-since-registered-notification",
package/dist/api.js CHANGED
@@ -379,6 +379,7 @@ var ApiPaths;
379
379
  ApiPaths["getUserProfileGames"] = "/user/{userId}/games";
380
380
  ApiPaths["getUserRank"] = "/user/{userId}/activity-rank";
381
381
  ApiPaths["getUsersTopRank"] = "/activity-rank/top";
382
+ ApiPaths["updateUserLocation"] = "/users/location";
382
383
  ApiPaths["generateReassignToken"] = "/hosted-games/{hostedGameId}/reassign/create-reassign-token";
383
384
  ApiPaths["reassignGameByToken"] = "/hosted-games/{hostedGameId}/reassign/{reassignToken}";
384
385
  ApiPaths["triggerInactiveUsersNotification"] = "/action-push/inactive-users-since-registered-notification";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orlikfy/api-interfaces",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "kruligh",