@orlikfy/api-interfaces 6.1.5 → 6.1.7

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
@@ -1771,6 +1771,42 @@ export interface paths {
1771
1771
  patch?: never;
1772
1772
  trace?: never;
1773
1773
  };
1774
+ "/games/{gameId}/history": {
1775
+ parameters: {
1776
+ query?: never;
1777
+ header?: never;
1778
+ path: {
1779
+ gameId: string;
1780
+ };
1781
+ cookie?: never;
1782
+ };
1783
+ get: operations["getGameHistory"];
1784
+ put?: never;
1785
+ post?: never;
1786
+ delete?: never;
1787
+ options?: never;
1788
+ head?: never;
1789
+ patch?: never;
1790
+ trace?: never;
1791
+ };
1792
+ "/teams/{teamId}/history": {
1793
+ parameters: {
1794
+ query?: never;
1795
+ header?: never;
1796
+ path: {
1797
+ teamId: string;
1798
+ };
1799
+ cookie?: never;
1800
+ };
1801
+ get: operations["getTeamHistory"];
1802
+ put?: never;
1803
+ post?: never;
1804
+ delete?: never;
1805
+ options?: never;
1806
+ head?: never;
1807
+ patch?: never;
1808
+ trace?: never;
1809
+ };
1774
1810
  }
1775
1811
  export type webhooks = Record<string, never>;
1776
1812
  export interface components {
@@ -1898,6 +1934,9 @@ export interface components {
1898
1934
  cancelledAt: string | null;
1899
1935
  cancellationReason: string | null;
1900
1936
  isRecurring: boolean;
1937
+ autoApproveAll: boolean;
1938
+ autoApproveTeamMembers: boolean;
1939
+ autoApproveFavoriteTeamMembers: boolean;
1901
1940
  };
1902
1941
  /** @enum {string} */
1903
1942
  gameLevelEnum: GameLevelEnum;
@@ -1933,6 +1972,9 @@ export interface components {
1933
1972
  cancelledAt: string | null;
1934
1973
  cancellationReason: string | null;
1935
1974
  isRecurring: boolean;
1975
+ autoApproveAll: boolean;
1976
+ autoApproveTeamMembers: boolean;
1977
+ autoApproveFavoriteTeamMembers: boolean;
1936
1978
  };
1937
1979
  NearbyGamesByLocationDtoLocation: {
1938
1980
  locationId: string;
@@ -1983,6 +2025,9 @@ export interface components {
1983
2025
  cancelledAt: string | null;
1984
2026
  cancellationReason: string | null;
1985
2027
  isRecurring: boolean;
2028
+ autoApproveAll: boolean;
2029
+ autoApproveTeamMembers: boolean;
2030
+ autoApproveFavoriteTeamMembers: boolean;
1986
2031
  paymentTypes: components["schemas"]["paymentTypes"][];
1987
2032
  gameContactPhone?: string;
1988
2033
  };
@@ -2011,6 +2056,9 @@ export interface components {
2011
2056
  cancelledAt: string | null;
2012
2057
  cancellationReason: string | null;
2013
2058
  isRecurring: boolean;
2059
+ autoApproveAll: boolean;
2060
+ autoApproveTeamMembers: boolean;
2061
+ autoApproveFavoriteTeamMembers: boolean;
2014
2062
  paymentTypes: components["schemas"]["paymentTypes"][];
2015
2063
  gameContactPhone?: string;
2016
2064
  gameInvitationId: string;
@@ -2208,6 +2256,12 @@ export interface components {
2208
2256
  visibility?: components["schemas"]["visibility"];
2209
2257
  locationType?: components["schemas"]["AppGameLocationType"];
2210
2258
  teamId?: string | null;
2259
+ /** @default false */
2260
+ autoApproveAll: boolean;
2261
+ /** @default false */
2262
+ autoApproveTeamMembers: boolean;
2263
+ /** @default true */
2264
+ autoApproveFavoriteTeamMembers: boolean;
2211
2265
  };
2212
2266
  HostedGameDtoLocation: {
2213
2267
  locationId: string;
@@ -2301,6 +2355,9 @@ export interface components {
2301
2355
  cancelledAt: string | null;
2302
2356
  cancellationReason: string | null;
2303
2357
  currentUserParticipationStatus: components["schemas"]["userParticipationStatus"];
2358
+ autoApproveAll: boolean;
2359
+ autoApproveTeamMembers: boolean;
2360
+ autoApproveFavoriteTeamMembers: boolean;
2304
2361
  };
2305
2362
  UpdatePartialHostedGameDto: {
2306
2363
  name: string;
@@ -2322,6 +2379,12 @@ export interface components {
2322
2379
  gameContactPhone?: string | null;
2323
2380
  visibility?: components["schemas"]["visibility"];
2324
2381
  locationType?: components["schemas"]["AppGameLocationType"];
2382
+ /** @default false */
2383
+ autoApproveAll: boolean;
2384
+ /** @default false */
2385
+ autoApproveTeamMembers: boolean;
2386
+ /** @default true */
2387
+ autoApproveFavoriteTeamMembers: boolean;
2325
2388
  };
2326
2389
  HostedGameDto: {
2327
2390
  hostedGames: components["schemas"]["HostedGameItemDto"][];
@@ -2377,6 +2440,9 @@ export interface components {
2377
2440
  cancelledAt: string | null;
2378
2441
  cancellationReason: string | null;
2379
2442
  currentUserParticipationStatus: components["schemas"]["userParticipationStatus"];
2443
+ autoApproveAll: boolean;
2444
+ autoApproveTeamMembers: boolean;
2445
+ autoApproveFavoriteTeamMembers: boolean;
2380
2446
  invitations: components["schemas"]["HostedGameInvitationDto"][][];
2381
2447
  invitationsRejected: components["schemas"]["HostedGameInvitationDto"][][];
2382
2448
  gamePlayersLeft: components["schemas"]["HostedGamePlayerDto"][][];
@@ -3019,6 +3085,9 @@ export interface components {
3019
3085
  cancelledAt: string | null;
3020
3086
  cancellationReason: string | null;
3021
3087
  isRecurring: boolean;
3088
+ autoApproveAll: boolean;
3089
+ autoApproveTeamMembers: boolean;
3090
+ autoApproveFavoriteTeamMembers: boolean;
3022
3091
  /**
3023
3092
  * @deprecated
3024
3093
  * @description Dont use this field, generate link on frontend part.
@@ -3349,6 +3418,33 @@ export interface components {
3349
3418
  /** @description Number of users who were processed for notification */
3350
3419
  processedUsersCount: number;
3351
3420
  };
3421
+ ActivityHistoryEntryDto: {
3422
+ /**
3423
+ * @description When the activity occurred
3424
+ * @example 2024-01-15T10:30:00.000Z
3425
+ */
3426
+ timestamp: string;
3427
+ /**
3428
+ * @description Display name of the actor
3429
+ * @example Alice K.
3430
+ */
3431
+ actorName: string | null;
3432
+ /**
3433
+ * @description Internal userId of the actor
3434
+ * @example clx123...
3435
+ */
3436
+ actorId: string | null;
3437
+ /**
3438
+ * @description Machine-readable event type
3439
+ * @example player_joined
3440
+ */
3441
+ eventType: string;
3442
+ /**
3443
+ * @description Localized human-readable summary
3444
+ * @example Alice K. joined the game
3445
+ */
3446
+ summary: string;
3447
+ };
3352
3448
  };
3353
3449
  responses: never;
3354
3450
  parameters: never;
@@ -3531,6 +3627,7 @@ export type UpdateUserLocationDto = components['schemas']['UpdateUserLocationDto
3531
3627
  export type UserLocationDto = components['schemas']['UserLocationDto'];
3532
3628
  export type CreateReassignTokenResponseDto = components['schemas']['CreateReassignTokenResponseDto'];
3533
3629
  export type InactiveUsersNotificationResponseDto = components['schemas']['InactiveUsersNotificationResponseDto'];
3630
+ export type ActivityHistoryEntryDto = components['schemas']['ActivityHistoryEntryDto'];
3534
3631
  export type $defs = Record<string, never>;
3535
3632
  export interface operations {
3536
3633
  getHello: {
@@ -7743,6 +7840,88 @@ export interface operations {
7743
7840
  };
7744
7841
  };
7745
7842
  };
7843
+ getGameHistory: {
7844
+ parameters: {
7845
+ query?: {
7846
+ /** @description Max entries to return. Values ≤ 0 or exceeding server max are silently clamped to server max (default 50). Omitted → server max applied. */
7847
+ limit?: number;
7848
+ };
7849
+ header?: {
7850
+ /** @description Request trace id for logs */
7851
+ "x-trace-request-id"?: string;
7852
+ /** @description Session trace id for logs */
7853
+ "x-trace-session-id"?: string;
7854
+ /** @description IANA Timezone */
7855
+ "x-timezone"?: string;
7856
+ };
7857
+ path: {
7858
+ /** @description Game ID */
7859
+ gameId: string;
7860
+ };
7861
+ cookie?: never;
7862
+ };
7863
+ requestBody?: never;
7864
+ responses: {
7865
+ 200: {
7866
+ headers: {
7867
+ [name: string]: unknown;
7868
+ };
7869
+ content: {
7870
+ "application/json": components["schemas"]["ActivityHistoryEntryDto"][];
7871
+ };
7872
+ };
7873
+ /** @description Application Error */
7874
+ 500: {
7875
+ headers: {
7876
+ [name: string]: unknown;
7877
+ };
7878
+ content: {
7879
+ "application/json": components["schemas"]["ErrorResponse"];
7880
+ };
7881
+ };
7882
+ };
7883
+ };
7884
+ getTeamHistory: {
7885
+ parameters: {
7886
+ query?: {
7887
+ /** @description Max entries to return. Values ≤ 0 or exceeding server max are silently clamped to server max (default 50). Omitted → server max applied. */
7888
+ limit?: number;
7889
+ };
7890
+ header?: {
7891
+ /** @description Request trace id for logs */
7892
+ "x-trace-request-id"?: string;
7893
+ /** @description Session trace id for logs */
7894
+ "x-trace-session-id"?: string;
7895
+ /** @description IANA Timezone */
7896
+ "x-timezone"?: string;
7897
+ };
7898
+ path: {
7899
+ /** @description Team ID */
7900
+ teamId: string;
7901
+ };
7902
+ cookie?: never;
7903
+ };
7904
+ requestBody?: never;
7905
+ responses: {
7906
+ 200: {
7907
+ headers: {
7908
+ [name: string]: unknown;
7909
+ };
7910
+ content: {
7911
+ "application/json": components["schemas"]["ActivityHistoryEntryDto"][];
7912
+ };
7913
+ };
7914
+ /** @description Application Error */
7915
+ 500: {
7916
+ headers: {
7917
+ [name: string]: unknown;
7918
+ };
7919
+ content: {
7920
+ "application/json": components["schemas"]["ErrorResponse"];
7921
+ };
7922
+ };
7923
+ };
7924
+ };
7746
7925
  }
7747
7926
  export declare enum KnownException {
7748
7927
  UserBanned = "UserBanned",
@@ -7773,7 +7952,8 @@ export declare enum KnownException {
7773
7952
  NotAMemberOfTeam = "NotAMemberOfTeam",
7774
7953
  CannotCreateMultipleTeams = "CannotCreateMultipleTeams",
7775
7954
  NotTheHostOfTeam = "NotTheHostOfTeam",
7776
- UserPenaltyAlreadyRevoked = "UserPenaltyAlreadyRevoked"
7955
+ UserPenaltyAlreadyRevoked = "UserPenaltyAlreadyRevoked",
7956
+ NotAParticipantOfGame = "NotAParticipantOfGame"
7777
7957
  }
7778
7958
  export declare enum Visibility {
7779
7959
  PUBLIC = "PUBLIC",
@@ -7792,7 +7972,8 @@ export declare enum Level {
7792
7972
  INTERMEDIATE = "INTERMEDIATE",
7793
7973
  ADVANCED = "ADVANCED",
7794
7974
  PROFESSIONAL = "PROFESSIONAL",
7795
- INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER"
7975
+ INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER",
7976
+ MIXED = "MIXED"
7796
7977
  }
7797
7978
  export declare enum UserParticipationStatus {
7798
7979
  Applied = "Applied",
@@ -7818,7 +7999,8 @@ export declare enum GameLevelEnum {
7818
7999
  INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER",
7819
8000
  INTERMEDIATE = "INTERMEDIATE",
7820
8001
  ADVANCED = "ADVANCED",
7821
- PROFESSIONAL = "PROFESSIONAL"
8002
+ PROFESSIONAL = "PROFESSIONAL",
8003
+ MIXED = "MIXED"
7822
8004
  }
7823
8005
  export declare enum Weekday {
7824
8006
  SUNDAY = "SUNDAY",
@@ -7842,7 +8024,8 @@ export declare enum AppGameLevel {
7842
8024
  INTERMEDIATE_BEGINNER = "INTERMEDIATE_BEGINNER",
7843
8025
  INTERMEDIATE = "INTERMEDIATE",
7844
8026
  ADVANCED = "ADVANCED",
7845
- PROFESSIONAL = "PROFESSIONAL"
8027
+ PROFESSIONAL = "PROFESSIONAL",
8028
+ MIXED = "MIXED"
7846
8029
  }
7847
8030
  export declare enum PenaltyType {
7848
8031
  YELLOW = "YELLOW",
@@ -8106,5 +8289,7 @@ export declare enum ApiPaths {
8106
8289
  triggerInactiveUsersNotification = "/action-push/inactive-users-since-registered-notification",
8107
8290
  triggerInactiveWithoutGameApplications = "/action-push/inactive-users-notification",
8108
8291
  collect = "/kpi-snapshots/collect",
8109
- backfill = "/kpi-snapshots/backfill"
8292
+ backfill = "/kpi-snapshots/backfill",
8293
+ getGameHistory = "/games/{gameId}/history",
8294
+ getTeamHistory = "/teams/{teamId}/history"
8110
8295
  }
package/dist/api.js CHANGED
@@ -36,6 +36,7 @@ var KnownException;
36
36
  KnownException["CannotCreateMultipleTeams"] = "CannotCreateMultipleTeams";
37
37
  KnownException["NotTheHostOfTeam"] = "NotTheHostOfTeam";
38
38
  KnownException["UserPenaltyAlreadyRevoked"] = "UserPenaltyAlreadyRevoked";
39
+ KnownException["NotAParticipantOfGame"] = "NotAParticipantOfGame";
39
40
  })(KnownException || (exports.KnownException = KnownException = {}));
40
41
  var Visibility;
41
42
  (function (Visibility) {
@@ -59,6 +60,7 @@ var Level;
59
60
  Level["ADVANCED"] = "ADVANCED";
60
61
  Level["PROFESSIONAL"] = "PROFESSIONAL";
61
62
  Level["INTERMEDIATE_BEGINNER"] = "INTERMEDIATE_BEGINNER";
63
+ Level["MIXED"] = "MIXED";
62
64
  })(Level || (exports.Level = Level = {}));
63
65
  var UserParticipationStatus;
64
66
  (function (UserParticipationStatus) {
@@ -89,6 +91,7 @@ var GameLevelEnum;
89
91
  GameLevelEnum["INTERMEDIATE"] = "INTERMEDIATE";
90
92
  GameLevelEnum["ADVANCED"] = "ADVANCED";
91
93
  GameLevelEnum["PROFESSIONAL"] = "PROFESSIONAL";
94
+ GameLevelEnum["MIXED"] = "MIXED";
92
95
  })(GameLevelEnum || (exports.GameLevelEnum = GameLevelEnum = {}));
93
96
  var Weekday;
94
97
  (function (Weekday) {
@@ -117,6 +120,7 @@ var AppGameLevel;
117
120
  AppGameLevel["INTERMEDIATE"] = "INTERMEDIATE";
118
121
  AppGameLevel["ADVANCED"] = "ADVANCED";
119
122
  AppGameLevel["PROFESSIONAL"] = "PROFESSIONAL";
123
+ AppGameLevel["MIXED"] = "MIXED";
120
124
  })(AppGameLevel || (exports.AppGameLevel = AppGameLevel = {}));
121
125
  var PenaltyType;
122
126
  (function (PenaltyType) {
@@ -395,4 +399,6 @@ var ApiPaths;
395
399
  ApiPaths["triggerInactiveWithoutGameApplications"] = "/action-push/inactive-users-notification";
396
400
  ApiPaths["collect"] = "/kpi-snapshots/collect";
397
401
  ApiPaths["backfill"] = "/kpi-snapshots/backfill";
402
+ ApiPaths["getGameHistory"] = "/games/{gameId}/history";
403
+ ApiPaths["getTeamHistory"] = "/teams/{teamId}/history";
398
404
  })(ApiPaths || (exports.ApiPaths = ApiPaths = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orlikfy/api-interfaces",
3
- "version": "6.1.5",
3
+ "version": "6.1.7",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "kruligh",