@orlikfy/api-interfaces 6.1.8 → 6.1.10

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/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  TypeScript interfaces generated from the Orlikfy backend OpenAPI specification.
4
4
 
5
+ # Changelog
6
+
7
+ v6.1.10 - notification preferences, optional price in alerts
8
+
5
9
  ## Publishing New Version
6
10
 
7
11
  ### 1. Generate Latest OpenAPI Spec
package/dist/api.d.ts CHANGED
@@ -1151,6 +1151,25 @@ export interface paths {
1151
1151
  patch?: never;
1152
1152
  trace?: never;
1153
1153
  };
1154
+ "/chat/channel/single/{userId}": {
1155
+ parameters: {
1156
+ query?: never;
1157
+ header?: never;
1158
+ path: {
1159
+ userId: string;
1160
+ };
1161
+ cookie?: never;
1162
+ };
1163
+ /** getSingleChannel */
1164
+ get: operations["getSingleChannel"];
1165
+ put?: never;
1166
+ post?: never;
1167
+ delete?: never;
1168
+ options?: never;
1169
+ head?: never;
1170
+ patch?: never;
1171
+ trace?: never;
1172
+ };
1154
1173
  "/chat/channel/single": {
1155
1174
  parameters: {
1156
1175
  query?: never;
@@ -1392,6 +1411,40 @@ export interface paths {
1392
1411
  patch?: never;
1393
1412
  trace?: never;
1394
1413
  };
1414
+ "/notifications/preferences": {
1415
+ parameters: {
1416
+ query?: never;
1417
+ header?: never;
1418
+ path?: never;
1419
+ cookie?: never;
1420
+ };
1421
+ get: operations["getPreferences"];
1422
+ put?: never;
1423
+ post?: never;
1424
+ delete?: never;
1425
+ options?: never;
1426
+ head?: never;
1427
+ patch?: never;
1428
+ trace?: never;
1429
+ };
1430
+ "/notifications/preferences/{category}": {
1431
+ parameters: {
1432
+ query?: never;
1433
+ header?: never;
1434
+ path: {
1435
+ category: string;
1436
+ };
1437
+ cookie?: never;
1438
+ };
1439
+ get?: never;
1440
+ put?: never;
1441
+ post?: never;
1442
+ delete?: never;
1443
+ options?: never;
1444
+ head?: never;
1445
+ patch: operations["togglePreference"];
1446
+ trace?: never;
1447
+ };
1395
1448
  "/rating/app": {
1396
1449
  parameters: {
1397
1450
  query?: never;
@@ -1788,6 +1841,22 @@ export interface paths {
1788
1841
  patch?: never;
1789
1842
  trace?: never;
1790
1843
  };
1844
+ "/notification-archival/run": {
1845
+ parameters: {
1846
+ query?: never;
1847
+ header?: never;
1848
+ path?: never;
1849
+ cookie?: never;
1850
+ };
1851
+ get?: never;
1852
+ put?: never;
1853
+ post: operations["run"];
1854
+ delete?: never;
1855
+ options?: never;
1856
+ head?: never;
1857
+ patch?: never;
1858
+ trace?: never;
1859
+ };
1791
1860
  "/games/{gameId}/history": {
1792
1861
  parameters: {
1793
1862
  query?: never;
@@ -2168,7 +2237,7 @@ export interface components {
2168
2237
  isEnabled: boolean;
2169
2238
  coordinates?: components["schemas"]["CoordinatesDto"] | null;
2170
2239
  maxDistanceMeters: number;
2171
- price: components["schemas"]["AlertPriceDto"];
2240
+ price?: components["schemas"]["AlertPriceDto"];
2172
2241
  time: components["schemas"]["AlertTimeDto"];
2173
2242
  gameLevel: components["schemas"]["gameLevelEnum"][];
2174
2243
  /** @description If empty then all */
@@ -2237,6 +2306,7 @@ export interface components {
2237
2306
  thumbnail?: string;
2238
2307
  preferredPosition?: components["schemas"]["AppPreferredPlayerPosition"] | null;
2239
2308
  preferredLevel?: components["schemas"]["AppGameLevel"] | null;
2309
+ /** @deprecated */
2240
2310
  profileType?: components["schemas"]["AppProfileType"];
2241
2311
  };
2242
2312
  SetLanguageDto: {
@@ -2545,7 +2615,7 @@ export interface components {
2545
2615
  gameName: string;
2546
2616
  gameWeekday: string;
2547
2617
  };
2548
- GameReminderNotificationPayload: {
2618
+ GameFinishedNotificationPayload: {
2549
2619
  notificationId: string;
2550
2620
  notificationType: components["schemas"]["NotificationType"];
2551
2621
  thumbnailUrl: string | null;
@@ -2560,7 +2630,7 @@ export interface components {
2560
2630
  gameName: string;
2561
2631
  gameWeekday: string;
2562
2632
  };
2563
- GameFinishedNotificationPayload: {
2633
+ GameCanceledNotificationPayload: {
2564
2634
  notificationId: string;
2565
2635
  notificationType: components["schemas"]["NotificationType"];
2566
2636
  thumbnailUrl: string | null;
@@ -2575,7 +2645,7 @@ export interface components {
2575
2645
  gameName: string;
2576
2646
  gameWeekday: string;
2577
2647
  };
2578
- GameCanceledNotificationPayload: {
2648
+ GamePlayerRemovedByHostNotificationPayload: {
2579
2649
  notificationId: string;
2580
2650
  notificationType: components["schemas"]["NotificationType"];
2581
2651
  thumbnailUrl: string | null;
@@ -2590,7 +2660,7 @@ export interface components {
2590
2660
  gameName: string;
2591
2661
  gameWeekday: string;
2592
2662
  };
2593
- GamePlayerRemovedByHostNotificationPayload: {
2663
+ GameLineupsCreatedNotificationPayload: {
2594
2664
  notificationId: string;
2595
2665
  notificationType: components["schemas"]["NotificationType"];
2596
2666
  thumbnailUrl: string | null;
@@ -2605,7 +2675,7 @@ export interface components {
2605
2675
  gameName: string;
2606
2676
  gameWeekday: string;
2607
2677
  };
2608
- GameLineupsCreatedNotificationPayload: {
2678
+ NewGameByAlertNotificationPayload: {
2609
2679
  notificationId: string;
2610
2680
  notificationType: components["schemas"]["NotificationType"];
2611
2681
  thumbnailUrl: string | null;
@@ -2620,7 +2690,7 @@ export interface components {
2620
2690
  gameName: string;
2621
2691
  gameWeekday: string;
2622
2692
  };
2623
- NewGameByAlertNotificationPayload: {
2693
+ GameUpdatedNotificationPayload: {
2624
2694
  notificationId: string;
2625
2695
  notificationType: components["schemas"]["NotificationType"];
2626
2696
  thumbnailUrl: string | null;
@@ -2702,21 +2772,6 @@ export interface components {
2702
2772
  gameName: string;
2703
2773
  gameWeekday: string;
2704
2774
  };
2705
- HostedGameReminderNotificationPayload: {
2706
- notificationId: string;
2707
- notificationType: components["schemas"]["NotificationType"];
2708
- thumbnailUrl: string | null;
2709
- displayName: string;
2710
- receiverUserId: string;
2711
- title?: string;
2712
- body?: string;
2713
- gameId: string;
2714
- gameAddress: string;
2715
- gameDate: string;
2716
- gameHours: string;
2717
- gameName: string;
2718
- gameWeekday: string;
2719
- };
2720
2775
  /** @enum {string} */
2721
2776
  chatChannelType: ChatChannelType;
2722
2777
  ChatNewMessageNotificationPayload: {
@@ -2815,15 +2870,6 @@ export interface components {
2815
2870
  body?: string;
2816
2871
  referrerId: string;
2817
2872
  };
2818
- ActionPushPlayerCollectPointsPayload: {
2819
- notificationId: string;
2820
- notificationType: components["schemas"]["NotificationType"];
2821
- thumbnailUrl: string | null;
2822
- displayName: string;
2823
- receiverUserId: string;
2824
- title?: string;
2825
- body?: string;
2826
- };
2827
2873
  ActionPushPlayerInvitePlayersPayload: {
2828
2874
  notificationId: string;
2829
2875
  notificationType: components["schemas"]["NotificationType"];
@@ -2842,15 +2888,6 @@ export interface components {
2842
2888
  title?: string;
2843
2889
  body?: string;
2844
2890
  };
2845
- ActionPushPlayerAchievementsPayload: {
2846
- notificationId: string;
2847
- notificationType: components["schemas"]["NotificationType"];
2848
- thumbnailUrl: string | null;
2849
- displayName: string;
2850
- receiverUserId: string;
2851
- title?: string;
2852
- body?: string;
2853
- };
2854
2891
  ActionPushPlayerInactive2Payload: {
2855
2892
  notificationId: string;
2856
2893
  notificationType: components["schemas"]["NotificationType"];
@@ -2878,42 +2915,6 @@ export interface components {
2878
2915
  title?: string;
2879
2916
  body?: string;
2880
2917
  };
2881
- ActionPushHostCollectPointsPayload: {
2882
- notificationId: string;
2883
- notificationType: components["schemas"]["NotificationType"];
2884
- thumbnailUrl: string | null;
2885
- displayName: string;
2886
- receiverUserId: string;
2887
- title?: string;
2888
- body?: string;
2889
- };
2890
- ActionPushHostInvitePlayersPayload: {
2891
- notificationId: string;
2892
- notificationType: components["schemas"]["NotificationType"];
2893
- thumbnailUrl: string | null;
2894
- displayName: string;
2895
- receiverUserId: string;
2896
- title?: string;
2897
- body?: string;
2898
- };
2899
- ActionPushHostInactivePayload: {
2900
- notificationId: string;
2901
- notificationType: components["schemas"]["NotificationType"];
2902
- thumbnailUrl: string | null;
2903
- displayName: string;
2904
- receiverUserId: string;
2905
- title?: string;
2906
- body?: string;
2907
- };
2908
- ActionPushHostAchievementsPayload: {
2909
- notificationId: string;
2910
- notificationType: components["schemas"]["NotificationType"];
2911
- thumbnailUrl: string | null;
2912
- displayName: string;
2913
- receiverUserId: string;
2914
- title?: string;
2915
- body?: string;
2916
- };
2917
2918
  ActionPushHostTeamsDrawingPayload: {
2918
2919
  notificationId: string;
2919
2920
  notificationType: components["schemas"]["NotificationType"];
@@ -2960,10 +2961,12 @@ export interface components {
2960
2961
  sentAt: string | null;
2961
2962
  isRead: boolean;
2962
2963
  notificationType: components["schemas"]["notificationTypes"];
2963
- payload: components["schemas"]["TestNotificationPayload"] | components["schemas"]["GameApplicationApprovedNotificationPayload"] | components["schemas"]["GameApplicationRejectedNotificationPayload"] | components["schemas"]["GameInvitationReceivedNotificationPayload"] | components["schemas"]["GameReminderNotificationPayload"] | components["schemas"]["GameFinishedNotificationPayload"] | components["schemas"]["GameCanceledNotificationPayload"] | components["schemas"]["GamePlayerRemovedByHostNotificationPayload"] | components["schemas"]["GameLineupsCreatedNotificationPayload"] | components["schemas"]["NewGameByAlertNotificationPayload"] | components["schemas"]["HostedGameNewApplicationNotificationPayload"] | components["schemas"]["HostedGamePlayerLeftNotificationPayload"] | components["schemas"]["HostedGamePlayerAutoApprovedNotificationPayload"] | components["schemas"]["HostedGameFinishedNotificationPayload"] | components["schemas"]["HostedGameReminderNotificationPayload"] | components["schemas"]["ChatNewMessageNotificationPayload"] | components["schemas"]["CustomNotificationPayload"] | components["schemas"]["TeamMemberAddedByHostNotificationPayload"] | components["schemas"]["UserPenaltyReceivedNotificationPayload"] | components["schemas"]["UserPenaltyRevokedNotificationPayload"] | components["schemas"]["NewTrophyReceivedNotificationPayload"] | components["schemas"]["NewCommentReceivedNotificationPayload"] | components["schemas"]["UserReferralReceivedNotificationPayload"] | components["schemas"]["ActionPushPlayerCollectPointsPayload"] | components["schemas"]["ActionPushPlayerInvitePlayersPayload"] | components["schemas"]["ActionPushPlayerInactivePayload"] | components["schemas"]["ActionPushPlayerAchievementsPayload"] | components["schemas"]["ActionPushPlayerInactive2Payload"] | components["schemas"]["ActionPushPlayerAlertsPayload"] | components["schemas"]["ActionPushPlayerCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostCollectPointsPayload"] | components["schemas"]["ActionPushHostInvitePlayersPayload"] | components["schemas"]["ActionPushHostInactivePayload"] | components["schemas"]["ActionPushHostAchievementsPayload"] | components["schemas"]["ActionPushHostTeamsDrawingPayload"] | components["schemas"]["ActionPushHostCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostCreateGroupPayload"] | components["schemas"]["ActionPushHostInvitePreviousPlayersPayload"];
2964
+ payload: components["schemas"]["TestNotificationPayload"] | components["schemas"]["GameApplicationApprovedNotificationPayload"] | components["schemas"]["GameApplicationRejectedNotificationPayload"] | components["schemas"]["GameInvitationReceivedNotificationPayload"] | components["schemas"]["GameFinishedNotificationPayload"] | components["schemas"]["GameCanceledNotificationPayload"] | components["schemas"]["GamePlayerRemovedByHostNotificationPayload"] | components["schemas"]["GameLineupsCreatedNotificationPayload"] | components["schemas"]["NewGameByAlertNotificationPayload"] | components["schemas"]["GameUpdatedNotificationPayload"] | components["schemas"]["HostedGameNewApplicationNotificationPayload"] | components["schemas"]["HostedGamePlayerLeftNotificationPayload"] | components["schemas"]["HostedGamePlayerAutoApprovedNotificationPayload"] | components["schemas"]["HostedGameFinishedNotificationPayload"] | components["schemas"]["ChatNewMessageNotificationPayload"] | components["schemas"]["CustomNotificationPayload"] | components["schemas"]["TeamMemberAddedByHostNotificationPayload"] | components["schemas"]["UserPenaltyReceivedNotificationPayload"] | components["schemas"]["UserPenaltyRevokedNotificationPayload"] | components["schemas"]["NewTrophyReceivedNotificationPayload"] | components["schemas"]["NewCommentReceivedNotificationPayload"] | components["schemas"]["UserReferralReceivedNotificationPayload"] | components["schemas"]["ActionPushPlayerInvitePlayersPayload"] | components["schemas"]["ActionPushPlayerInactivePayload"] | components["schemas"]["ActionPushPlayerInactive2Payload"] | components["schemas"]["ActionPushPlayerAlertsPayload"] | components["schemas"]["ActionPushPlayerCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostTeamsDrawingPayload"] | components["schemas"]["ActionPushHostCommentsAndPenaltiesPayload"] | components["schemas"]["ActionPushHostCreateGroupPayload"] | components["schemas"]["ActionPushHostInvitePreviousPlayersPayload"];
2964
2965
  };
2965
2966
  GetUserNotificationsDto: {
2966
2967
  notifications: components["schemas"]["NotificationDto"][];
2968
+ notificationsWithoutAlerts: components["schemas"]["NotificationDto"][];
2969
+ alerts: components["schemas"]["NotificationDto"][];
2967
2970
  };
2968
2971
  MarkNotificationsAsReadDto: {
2969
2972
  notificationIds: string[];
@@ -3236,9 +3239,6 @@ export interface components {
3236
3239
  chatUserExternalId: string;
3237
3240
  token: string | null;
3238
3241
  };
3239
- CreateOrGetSingleChannelDto: {
3240
- userId: string;
3241
- };
3242
3242
  SingleChannelMemberDto: {
3243
3243
  userId: string;
3244
3244
  displayName: string;
@@ -3251,6 +3251,9 @@ export interface components {
3251
3251
  channelExternalId: string;
3252
3252
  member: components["schemas"]["SingleChannelMemberDto"];
3253
3253
  };
3254
+ CreateOrGetSingleChannelDto: {
3255
+ userId: string;
3256
+ };
3254
3257
  CreatedGamePlayerApplicationDto: {
3255
3258
  gamePlayerApplicationId: string;
3256
3259
  autoApproved: boolean;
@@ -3317,6 +3320,25 @@ export interface components {
3317
3320
  UpdateTeamMemberDto: {
3318
3321
  isAutoApproved: boolean;
3319
3322
  };
3323
+ NotificationPreferenceCategoryResponseDto: {
3324
+ /** @enum {string} */
3325
+ category: NotificationPreferenceCategoryResponseDtoCategory;
3326
+ label: string;
3327
+ description: string;
3328
+ enabled: boolean;
3329
+ editable: boolean;
3330
+ };
3331
+ GetNotificationPreferencesResponseDto: {
3332
+ categories: components["schemas"]["NotificationPreferenceCategoryResponseDto"][];
3333
+ };
3334
+ ToggleNotificationPreferenceBodyDto: {
3335
+ enabled: boolean;
3336
+ };
3337
+ ToggleNotificationPreferenceResponseDto: {
3338
+ /** @enum {string} */
3339
+ category: ToggleNotificationPreferenceResponseDtoCategory;
3340
+ enabled: boolean;
3341
+ };
3320
3342
  CreateAppRatingDto: {
3321
3343
  /**
3322
3344
  * @deprecated
@@ -3544,17 +3566,16 @@ export type TestNotificationPayload = components['schemas']['TestNotificationPay
3544
3566
  export type GameApplicationApprovedNotificationPayload = components['schemas']['GameApplicationApprovedNotificationPayload'];
3545
3567
  export type GameApplicationRejectedNotificationPayload = components['schemas']['GameApplicationRejectedNotificationPayload'];
3546
3568
  export type GameInvitationReceivedNotificationPayload = components['schemas']['GameInvitationReceivedNotificationPayload'];
3547
- export type GameReminderNotificationPayload = components['schemas']['GameReminderNotificationPayload'];
3548
3569
  export type GameFinishedNotificationPayload = components['schemas']['GameFinishedNotificationPayload'];
3549
3570
  export type GameCanceledNotificationPayload = components['schemas']['GameCanceledNotificationPayload'];
3550
3571
  export type GamePlayerRemovedByHostNotificationPayload = components['schemas']['GamePlayerRemovedByHostNotificationPayload'];
3551
3572
  export type GameLineupsCreatedNotificationPayload = components['schemas']['GameLineupsCreatedNotificationPayload'];
3552
3573
  export type NewGameByAlertNotificationPayload = components['schemas']['NewGameByAlertNotificationPayload'];
3574
+ export type GameUpdatedNotificationPayload = components['schemas']['GameUpdatedNotificationPayload'];
3553
3575
  export type HostedGameNewApplicationNotificationPayload = components['schemas']['HostedGameNewApplicationNotificationPayload'];
3554
3576
  export type HostedGamePlayerLeftNotificationPayload = components['schemas']['HostedGamePlayerLeftNotificationPayload'];
3555
3577
  export type HostedGamePlayerAutoApprovedNotificationPayload = components['schemas']['HostedGamePlayerAutoApprovedNotificationPayload'];
3556
3578
  export type HostedGameFinishedNotificationPayload = components['schemas']['HostedGameFinishedNotificationPayload'];
3557
- export type HostedGameReminderNotificationPayload = components['schemas']['HostedGameReminderNotificationPayload'];
3558
3579
  export type ChatNewMessageNotificationPayload = components['schemas']['ChatNewMessageNotificationPayload'];
3559
3580
  export type CustomNotificationPayload = components['schemas']['CustomNotificationPayload'];
3560
3581
  export type TeamMemberAddedByHostNotificationPayload = components['schemas']['TeamMemberAddedByHostNotificationPayload'];
@@ -3563,17 +3584,11 @@ export type UserPenaltyRevokedNotificationPayload = components['schemas']['UserP
3563
3584
  export type NewTrophyReceivedNotificationPayload = components['schemas']['NewTrophyReceivedNotificationPayload'];
3564
3585
  export type NewCommentReceivedNotificationPayload = components['schemas']['NewCommentReceivedNotificationPayload'];
3565
3586
  export type UserReferralReceivedNotificationPayload = components['schemas']['UserReferralReceivedNotificationPayload'];
3566
- export type ActionPushPlayerCollectPointsPayload = components['schemas']['ActionPushPlayerCollectPointsPayload'];
3567
3587
  export type ActionPushPlayerInvitePlayersPayload = components['schemas']['ActionPushPlayerInvitePlayersPayload'];
3568
3588
  export type ActionPushPlayerInactivePayload = components['schemas']['ActionPushPlayerInactivePayload'];
3569
- export type ActionPushPlayerAchievementsPayload = components['schemas']['ActionPushPlayerAchievementsPayload'];
3570
3589
  export type ActionPushPlayerInactive2Payload = components['schemas']['ActionPushPlayerInactive2Payload'];
3571
3590
  export type ActionPushPlayerAlertsPayload = components['schemas']['ActionPushPlayerAlertsPayload'];
3572
3591
  export type ActionPushPlayerCommentsAndPenaltiesPayload = components['schemas']['ActionPushPlayerCommentsAndPenaltiesPayload'];
3573
- export type ActionPushHostCollectPointsPayload = components['schemas']['ActionPushHostCollectPointsPayload'];
3574
- export type ActionPushHostInvitePlayersPayload = components['schemas']['ActionPushHostInvitePlayersPayload'];
3575
- export type ActionPushHostInactivePayload = components['schemas']['ActionPushHostInactivePayload'];
3576
- export type ActionPushHostAchievementsPayload = components['schemas']['ActionPushHostAchievementsPayload'];
3577
3592
  export type ActionPushHostTeamsDrawingPayload = components['schemas']['ActionPushHostTeamsDrawingPayload'];
3578
3593
  export type ActionPushHostCommentsAndPenaltiesPayload = components['schemas']['ActionPushHostCommentsAndPenaltiesPayload'];
3579
3594
  export type ActionPushHostCreateGroupPayload = components['schemas']['ActionPushHostCreateGroupPayload'];
@@ -3617,9 +3632,9 @@ export type GetChannelMembersDto = components['schemas']['GetChannelMembersDto']
3617
3632
  export type SetChannelMutedDto = components['schemas']['SetChannelMutedDto'];
3618
3633
  export type UpdateChannelDetailsDto = components['schemas']['UpdateChannelDetailsDto'];
3619
3634
  export type GetMyChatUserDto = components['schemas']['GetMyChatUserDto'];
3620
- export type CreateOrGetSingleChannelDto = components['schemas']['CreateOrGetSingleChannelDto'];
3621
3635
  export type SingleChannelMemberDto = components['schemas']['SingleChannelMemberDto'];
3622
3636
  export type SingleChannelDto = components['schemas']['SingleChannelDto'];
3637
+ export type CreateOrGetSingleChannelDto = components['schemas']['CreateOrGetSingleChannelDto'];
3623
3638
  export type CreatedGamePlayerApplicationDto = components['schemas']['CreatedGamePlayerApplicationDto'];
3624
3639
  export type RejectManyGamePlayerApplicationsDto = components['schemas']['RejectManyGamePlayerApplicationsDto'];
3625
3640
  export type ApproveManyGamePlayerApplicationsDto = components['schemas']['ApproveManyGamePlayerApplicationsDto'];
@@ -3635,6 +3650,10 @@ export type TeamMemberCandidateDto = components['schemas']['TeamMemberCandidateD
3635
3650
  export type GetTeamMemberCandidatesDto = components['schemas']['GetTeamMemberCandidatesDto'];
3636
3651
  export type CreateTeamMembersDto = components['schemas']['CreateTeamMembersDto'];
3637
3652
  export type UpdateTeamMemberDto = components['schemas']['UpdateTeamMemberDto'];
3653
+ export type NotificationPreferenceCategoryResponseDto = components['schemas']['NotificationPreferenceCategoryResponseDto'];
3654
+ export type GetNotificationPreferencesResponseDto = components['schemas']['GetNotificationPreferencesResponseDto'];
3655
+ export type ToggleNotificationPreferenceBodyDto = components['schemas']['ToggleNotificationPreferenceBodyDto'];
3656
+ export type ToggleNotificationPreferenceResponseDto = components['schemas']['ToggleNotificationPreferenceResponseDto'];
3638
3657
  export type CreateAppRatingDto = components['schemas']['CreateAppRatingDto'];
3639
3658
  export type CreateContactMessageDto = components['schemas']['CreateContactMessageDto'];
3640
3659
  export type UserProfileStatsDto = components['schemas']['UserProfileStatsDto'];
@@ -6448,6 +6467,43 @@ export interface operations {
6448
6467
  };
6449
6468
  };
6450
6469
  };
6470
+ getSingleChannel: {
6471
+ parameters: {
6472
+ query?: never;
6473
+ header?: {
6474
+ /** @description Request trace id for logs */
6475
+ "x-trace-request-id"?: string;
6476
+ /** @description Session trace id for logs */
6477
+ "x-trace-session-id"?: string;
6478
+ /** @description IANA Timezone */
6479
+ "x-timezone"?: string;
6480
+ };
6481
+ path: {
6482
+ userId: string;
6483
+ };
6484
+ cookie?: never;
6485
+ };
6486
+ requestBody?: never;
6487
+ responses: {
6488
+ 200: {
6489
+ headers: {
6490
+ [name: string]: unknown;
6491
+ };
6492
+ content: {
6493
+ "application/json": components["schemas"]["SingleChannelDto"];
6494
+ };
6495
+ };
6496
+ /** @description Application Error */
6497
+ 500: {
6498
+ headers: {
6499
+ [name: string]: unknown;
6500
+ };
6501
+ content: {
6502
+ "application/json": components["schemas"]["ErrorResponse"];
6503
+ };
6504
+ };
6505
+ };
6506
+ };
6451
6507
  createOrGetSingleChannel: {
6452
6508
  parameters: {
6453
6509
  query?: never;
@@ -7116,6 +7172,64 @@ export interface operations {
7116
7172
  };
7117
7173
  };
7118
7174
  };
7175
+ getPreferences: {
7176
+ parameters: {
7177
+ query?: never;
7178
+ header?: {
7179
+ /** @description Request trace id for logs */
7180
+ "x-trace-request-id"?: string;
7181
+ /** @description Session trace id for logs */
7182
+ "x-trace-session-id"?: string;
7183
+ /** @description IANA Timezone */
7184
+ "x-timezone"?: string;
7185
+ };
7186
+ path?: never;
7187
+ cookie?: never;
7188
+ };
7189
+ requestBody?: never;
7190
+ responses: {
7191
+ 200: {
7192
+ headers: {
7193
+ [name: string]: unknown;
7194
+ };
7195
+ content: {
7196
+ "application/json": components["schemas"]["GetNotificationPreferencesResponseDto"];
7197
+ };
7198
+ };
7199
+ };
7200
+ };
7201
+ togglePreference: {
7202
+ parameters: {
7203
+ query?: never;
7204
+ header?: {
7205
+ /** @description Request trace id for logs */
7206
+ "x-trace-request-id"?: string;
7207
+ /** @description Session trace id for logs */
7208
+ "x-trace-session-id"?: string;
7209
+ /** @description IANA Timezone */
7210
+ "x-timezone"?: string;
7211
+ };
7212
+ path: {
7213
+ category: string;
7214
+ };
7215
+ cookie?: never;
7216
+ };
7217
+ requestBody: {
7218
+ content: {
7219
+ "application/json": components["schemas"]["ToggleNotificationPreferenceBodyDto"];
7220
+ };
7221
+ };
7222
+ responses: {
7223
+ 200: {
7224
+ headers: {
7225
+ [name: string]: unknown;
7226
+ };
7227
+ content: {
7228
+ "application/json": components["schemas"]["ToggleNotificationPreferenceResponseDto"];
7229
+ };
7230
+ };
7231
+ };
7232
+ };
7119
7233
  createRating: {
7120
7234
  parameters: {
7121
7235
  query?: never;
@@ -7909,6 +8023,41 @@ export interface operations {
7909
8023
  };
7910
8024
  };
7911
8025
  };
8026
+ run: {
8027
+ parameters: {
8028
+ query: {
8029
+ "api-key": string;
8030
+ };
8031
+ header?: {
8032
+ /** @description Request trace id for logs */
8033
+ "x-trace-request-id"?: string;
8034
+ /** @description Session trace id for logs */
8035
+ "x-trace-session-id"?: string;
8036
+ /** @description IANA Timezone */
8037
+ "x-timezone"?: string;
8038
+ };
8039
+ path?: never;
8040
+ cookie?: never;
8041
+ };
8042
+ requestBody?: never;
8043
+ responses: {
8044
+ 201: {
8045
+ headers: {
8046
+ [name: string]: unknown;
8047
+ };
8048
+ content?: never;
8049
+ };
8050
+ /** @description Application Error */
8051
+ 500: {
8052
+ headers: {
8053
+ [name: string]: unknown;
8054
+ };
8055
+ content: {
8056
+ "application/json": components["schemas"]["ErrorResponse"];
8057
+ };
8058
+ };
8059
+ };
8060
+ };
7912
8061
  getGameHistory: {
7913
8062
  parameters: {
7914
8063
  query?: {
@@ -8022,7 +8171,9 @@ export declare enum KnownException {
8022
8171
  CannotCreateMultipleTeams = "CannotCreateMultipleTeams",
8023
8172
  NotTheHostOfTeam = "NotTheHostOfTeam",
8024
8173
  UserPenaltyAlreadyRevoked = "UserPenaltyAlreadyRevoked",
8025
- NotAParticipantOfGame = "NotAParticipantOfGame"
8174
+ NotAParticipantOfGame = "NotAParticipantOfGame",
8175
+ CategoryNotEditable = "CategoryNotEditable",
8176
+ UnknownNotificationCategory = "UnknownNotificationCategory"
8026
8177
  }
8027
8178
  export declare enum Visibility {
8028
8179
  PUBLIC = "PUBLIC",
@@ -8118,6 +8269,7 @@ export declare enum NotificationType {
8118
8269
  game_canceled = "game-canceled",
8119
8270
  game_player_removed_by_host = "game-player-removed-by-host",
8120
8271
  game_lineups_created = "game-lineups-created",
8272
+ game_updated = "game-updated",
8121
8273
  hosted_game_new_application = "hosted-game-new-application",
8122
8274
  hosted_game_player_left = "hosted-game-player-left",
8123
8275
  hosted_game_player_auto_approved = "hosted-game-player-auto-approved",
@@ -8168,6 +8320,7 @@ export declare enum NotificationTypes {
8168
8320
  game_canceled = "game-canceled",
8169
8321
  game_player_removed_by_host = "game-player-removed-by-host",
8170
8322
  game_lineups_created = "game-lineups-created",
8323
+ game_updated = "game-updated",
8171
8324
  hosted_game_new_application = "hosted-game-new-application",
8172
8325
  hosted_game_player_left = "hosted-game-player-left",
8173
8326
  hosted_game_player_auto_approved = "hosted-game-player-auto-approved",
@@ -8219,6 +8372,32 @@ export declare enum MemberRole {
8219
8372
  Moderator = "Moderator",
8220
8373
  Member = "Member"
8221
8374
  }
8375
+ export declare enum NotificationPreferenceCategoryResponseDtoCategory {
8376
+ YOUR_GAMES = "YOUR_GAMES",
8377
+ GAMES_YOU_ORGANIZE = "GAMES_YOU_ORGANIZE",
8378
+ INVITATIONS = "INVITATIONS",
8379
+ CHAT = "CHAT",
8380
+ REMINDERS = "REMINDERS",
8381
+ COMMUNITY = "COMMUNITY",
8382
+ PENALTIES_AND_COMMENTS = "PENALTIES_AND_COMMENTS",
8383
+ ACHIEVEMENTS = "ACHIEVEMENTS",
8384
+ TEAMS = "TEAMS",
8385
+ TIPS_AND_SUGGESTIONS = "TIPS_AND_SUGGESTIONS",
8386
+ ALERTY = "ALERTY"
8387
+ }
8388
+ export declare enum ToggleNotificationPreferenceResponseDtoCategory {
8389
+ YOUR_GAMES = "YOUR_GAMES",
8390
+ GAMES_YOU_ORGANIZE = "GAMES_YOU_ORGANIZE",
8391
+ INVITATIONS = "INVITATIONS",
8392
+ CHAT = "CHAT",
8393
+ REMINDERS = "REMINDERS",
8394
+ COMMUNITY = "COMMUNITY",
8395
+ PENALTIES_AND_COMMENTS = "PENALTIES_AND_COMMENTS",
8396
+ ACHIEVEMENTS = "ACHIEVEMENTS",
8397
+ TEAMS = "TEAMS",
8398
+ TIPS_AND_SUGGESTIONS = "TIPS_AND_SUGGESTIONS",
8399
+ ALERTY = "ALERTY"
8400
+ }
8222
8401
  export declare enum CommentTypeEnum {
8223
8402
  GOOD_PLAYER = "GOOD_PLAYER",
8224
8403
  FAIR_PLAY = "FAIR_PLAY",
@@ -8324,6 +8503,7 @@ export declare enum ApiPaths {
8324
8503
  muteChannel = "/chat/channel/{channelId}/muted",
8325
8504
  getMyChatUser = "/chat/user/me",
8326
8505
  postChatWebook = "/chat/webhook",
8506
+ getSingleChannel = "/chat/channel/single/{userId}",
8327
8507
  createOrGetSingleChannel = "/chat/channel/single",
8328
8508
  cleanupUnreadMessages = "/chat-maintenance/cleanup-unread-messages",
8329
8509
  postGameApplication = "/games/{gameId}/player-applications",
@@ -8342,6 +8522,8 @@ export declare enum ApiPaths {
8342
8522
  leave = "/teams/{teamId}/member/me",
8343
8523
  acceptTeamInvitation = "/teams/{teamId}/invitations/accept",
8344
8524
  processScheduledNotification = "/game-notifications/scheduled-notification",
8525
+ getPreferences = "/notifications/preferences",
8526
+ togglePreference = "/notifications/preferences/{category}",
8345
8527
  createRating = "/rating/app",
8346
8528
  createContactMessage = "/contact/message",
8347
8529
  triggerNotificationsForGameFinished = "/game-notifications/game-finished",
@@ -8365,6 +8547,7 @@ export declare enum ApiPaths {
8365
8547
  triggerInactiveWithoutGameApplications = "/action-push/inactive-users-notification",
8366
8548
  collect = "/kpi-snapshots/collect",
8367
8549
  backfill = "/kpi-snapshots/backfill",
8550
+ run = "/notification-archival/run",
8368
8551
  getGameHistory = "/games/{gameId}/history",
8369
8552
  getTeamHistory = "/teams/{teamId}/history"
8370
8553
  }
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.AuthProvider = exports.AppTrophyType = exports.CommentTypeEnum = exports.MemberRole = exports.GameVisibility = exports.AdminGameTypeFilter = exports.UserRoleEnum = 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.AuthProvider = exports.AppTrophyType = exports.CommentTypeEnum = exports.ToggleNotificationPreferenceResponseDtoCategory = exports.NotificationPreferenceCategoryResponseDtoCategory = exports.MemberRole = exports.GameVisibility = exports.AdminGameTypeFilter = exports.UserRoleEnum = 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";
@@ -37,6 +37,8 @@ var KnownException;
37
37
  KnownException["NotTheHostOfTeam"] = "NotTheHostOfTeam";
38
38
  KnownException["UserPenaltyAlreadyRevoked"] = "UserPenaltyAlreadyRevoked";
39
39
  KnownException["NotAParticipantOfGame"] = "NotAParticipantOfGame";
40
+ KnownException["CategoryNotEditable"] = "CategoryNotEditable";
41
+ KnownException["UnknownNotificationCategory"] = "UnknownNotificationCategory";
40
42
  })(KnownException || (exports.KnownException = KnownException = {}));
41
43
  var Visibility;
42
44
  (function (Visibility) {
@@ -147,6 +149,7 @@ var NotificationType;
147
149
  NotificationType["game_canceled"] = "game-canceled";
148
150
  NotificationType["game_player_removed_by_host"] = "game-player-removed-by-host";
149
151
  NotificationType["game_lineups_created"] = "game-lineups-created";
152
+ NotificationType["game_updated"] = "game-updated";
150
153
  NotificationType["hosted_game_new_application"] = "hosted-game-new-application";
151
154
  NotificationType["hosted_game_player_left"] = "hosted-game-player-left";
152
155
  NotificationType["hosted_game_player_auto_approved"] = "hosted-game-player-auto-approved";
@@ -200,6 +203,7 @@ var NotificationTypes;
200
203
  NotificationTypes["game_canceled"] = "game-canceled";
201
204
  NotificationTypes["game_player_removed_by_host"] = "game-player-removed-by-host";
202
205
  NotificationTypes["game_lineups_created"] = "game-lineups-created";
206
+ NotificationTypes["game_updated"] = "game-updated";
203
207
  NotificationTypes["hosted_game_new_application"] = "hosted-game-new-application";
204
208
  NotificationTypes["hosted_game_player_left"] = "hosted-game-player-left";
205
209
  NotificationTypes["hosted_game_player_auto_approved"] = "hosted-game-player-auto-approved";
@@ -256,6 +260,34 @@ var MemberRole;
256
260
  MemberRole["Moderator"] = "Moderator";
257
261
  MemberRole["Member"] = "Member";
258
262
  })(MemberRole || (exports.MemberRole = MemberRole = {}));
263
+ var NotificationPreferenceCategoryResponseDtoCategory;
264
+ (function (NotificationPreferenceCategoryResponseDtoCategory) {
265
+ NotificationPreferenceCategoryResponseDtoCategory["YOUR_GAMES"] = "YOUR_GAMES";
266
+ NotificationPreferenceCategoryResponseDtoCategory["GAMES_YOU_ORGANIZE"] = "GAMES_YOU_ORGANIZE";
267
+ NotificationPreferenceCategoryResponseDtoCategory["INVITATIONS"] = "INVITATIONS";
268
+ NotificationPreferenceCategoryResponseDtoCategory["CHAT"] = "CHAT";
269
+ NotificationPreferenceCategoryResponseDtoCategory["REMINDERS"] = "REMINDERS";
270
+ NotificationPreferenceCategoryResponseDtoCategory["COMMUNITY"] = "COMMUNITY";
271
+ NotificationPreferenceCategoryResponseDtoCategory["PENALTIES_AND_COMMENTS"] = "PENALTIES_AND_COMMENTS";
272
+ NotificationPreferenceCategoryResponseDtoCategory["ACHIEVEMENTS"] = "ACHIEVEMENTS";
273
+ NotificationPreferenceCategoryResponseDtoCategory["TEAMS"] = "TEAMS";
274
+ NotificationPreferenceCategoryResponseDtoCategory["TIPS_AND_SUGGESTIONS"] = "TIPS_AND_SUGGESTIONS";
275
+ NotificationPreferenceCategoryResponseDtoCategory["ALERTY"] = "ALERTY";
276
+ })(NotificationPreferenceCategoryResponseDtoCategory || (exports.NotificationPreferenceCategoryResponseDtoCategory = NotificationPreferenceCategoryResponseDtoCategory = {}));
277
+ var ToggleNotificationPreferenceResponseDtoCategory;
278
+ (function (ToggleNotificationPreferenceResponseDtoCategory) {
279
+ ToggleNotificationPreferenceResponseDtoCategory["YOUR_GAMES"] = "YOUR_GAMES";
280
+ ToggleNotificationPreferenceResponseDtoCategory["GAMES_YOU_ORGANIZE"] = "GAMES_YOU_ORGANIZE";
281
+ ToggleNotificationPreferenceResponseDtoCategory["INVITATIONS"] = "INVITATIONS";
282
+ ToggleNotificationPreferenceResponseDtoCategory["CHAT"] = "CHAT";
283
+ ToggleNotificationPreferenceResponseDtoCategory["REMINDERS"] = "REMINDERS";
284
+ ToggleNotificationPreferenceResponseDtoCategory["COMMUNITY"] = "COMMUNITY";
285
+ ToggleNotificationPreferenceResponseDtoCategory["PENALTIES_AND_COMMENTS"] = "PENALTIES_AND_COMMENTS";
286
+ ToggleNotificationPreferenceResponseDtoCategory["ACHIEVEMENTS"] = "ACHIEVEMENTS";
287
+ ToggleNotificationPreferenceResponseDtoCategory["TEAMS"] = "TEAMS";
288
+ ToggleNotificationPreferenceResponseDtoCategory["TIPS_AND_SUGGESTIONS"] = "TIPS_AND_SUGGESTIONS";
289
+ ToggleNotificationPreferenceResponseDtoCategory["ALERTY"] = "ALERTY";
290
+ })(ToggleNotificationPreferenceResponseDtoCategory || (exports.ToggleNotificationPreferenceResponseDtoCategory = ToggleNotificationPreferenceResponseDtoCategory = {}));
259
291
  var CommentTypeEnum;
260
292
  (function (CommentTypeEnum) {
261
293
  CommentTypeEnum["GOOD_PLAYER"] = "GOOD_PLAYER";
@@ -365,6 +397,7 @@ var ApiPaths;
365
397
  ApiPaths["muteChannel"] = "/chat/channel/{channelId}/muted";
366
398
  ApiPaths["getMyChatUser"] = "/chat/user/me";
367
399
  ApiPaths["postChatWebook"] = "/chat/webhook";
400
+ ApiPaths["getSingleChannel"] = "/chat/channel/single/{userId}";
368
401
  ApiPaths["createOrGetSingleChannel"] = "/chat/channel/single";
369
402
  ApiPaths["cleanupUnreadMessages"] = "/chat-maintenance/cleanup-unread-messages";
370
403
  ApiPaths["postGameApplication"] = "/games/{gameId}/player-applications";
@@ -383,6 +416,8 @@ var ApiPaths;
383
416
  ApiPaths["leave"] = "/teams/{teamId}/member/me";
384
417
  ApiPaths["acceptTeamInvitation"] = "/teams/{teamId}/invitations/accept";
385
418
  ApiPaths["processScheduledNotification"] = "/game-notifications/scheduled-notification";
419
+ ApiPaths["getPreferences"] = "/notifications/preferences";
420
+ ApiPaths["togglePreference"] = "/notifications/preferences/{category}";
386
421
  ApiPaths["createRating"] = "/rating/app";
387
422
  ApiPaths["createContactMessage"] = "/contact/message";
388
423
  ApiPaths["triggerNotificationsForGameFinished"] = "/game-notifications/game-finished";
@@ -406,6 +441,7 @@ var ApiPaths;
406
441
  ApiPaths["triggerInactiveWithoutGameApplications"] = "/action-push/inactive-users-notification";
407
442
  ApiPaths["collect"] = "/kpi-snapshots/collect";
408
443
  ApiPaths["backfill"] = "/kpi-snapshots/backfill";
444
+ ApiPaths["run"] = "/notification-archival/run";
409
445
  ApiPaths["getGameHistory"] = "/games/{gameId}/history";
410
446
  ApiPaths["getTeamHistory"] = "/teams/{teamId}/history";
411
447
  })(ApiPaths || (exports.ApiPaths = ApiPaths = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orlikfy/api-interfaces",
3
- "version": "6.1.8",
3
+ "version": "6.1.10",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "kruligh",