@orlikfy/api-interfaces 6.1.4 → 6.1.6

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",
@@ -7853,7 +8033,8 @@ export declare enum PenaltyReason {
7853
8033
  LEAVING_30_MIN = "LEAVING_30_MIN",
7854
8034
  LATE_15_MIN = "LATE_15_MIN",
7855
8035
  MISMATCHED_LEVEL = "MISMATCHED_LEVEL",
7856
- UNSPORTSMANLIKE_BEHAVIOR = "UNSPORTSMANLIKE_BEHAVIOR"
8036
+ UNSPORTSMANLIKE_BEHAVIOR = "UNSPORTSMANLIKE_BEHAVIOR",
8037
+ NOT_PAID = "NOT_PAID"
7857
8038
  }
7858
8039
  export declare enum NotificationType {
7859
8040
  test = "test",
@@ -8105,5 +8286,7 @@ export declare enum ApiPaths {
8105
8286
  triggerInactiveUsersNotification = "/action-push/inactive-users-since-registered-notification",
8106
8287
  triggerInactiveWithoutGameApplications = "/action-push/inactive-users-notification",
8107
8288
  collect = "/kpi-snapshots/collect",
8108
- backfill = "/kpi-snapshots/backfill"
8289
+ backfill = "/kpi-snapshots/backfill",
8290
+ getGameHistory = "/games/{gameId}/history",
8291
+ getTeamHistory = "/teams/{teamId}/history"
8109
8292
  }
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) {
@@ -130,6 +131,7 @@ var PenaltyReason;
130
131
  PenaltyReason["LATE_15_MIN"] = "LATE_15_MIN";
131
132
  PenaltyReason["MISMATCHED_LEVEL"] = "MISMATCHED_LEVEL";
132
133
  PenaltyReason["UNSPORTSMANLIKE_BEHAVIOR"] = "UNSPORTSMANLIKE_BEHAVIOR";
134
+ PenaltyReason["NOT_PAID"] = "NOT_PAID";
133
135
  })(PenaltyReason || (exports.PenaltyReason = PenaltyReason = {}));
134
136
  var NotificationType;
135
137
  (function (NotificationType) {
@@ -394,4 +396,6 @@ var ApiPaths;
394
396
  ApiPaths["triggerInactiveWithoutGameApplications"] = "/action-push/inactive-users-notification";
395
397
  ApiPaths["collect"] = "/kpi-snapshots/collect";
396
398
  ApiPaths["backfill"] = "/kpi-snapshots/backfill";
399
+ ApiPaths["getGameHistory"] = "/games/{gameId}/history";
400
+ ApiPaths["getTeamHistory"] = "/teams/{teamId}/history";
397
401
  })(ApiPaths || (exports.ApiPaths = ApiPaths = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orlikfy/api-interfaces",
3
- "version": "6.1.4",
3
+ "version": "6.1.6",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "kruligh",