@orlikfy/api-interfaces 6.1.9 → 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
@@ -1411,6 +1411,40 @@ export interface paths {
1411
1411
  patch?: never;
1412
1412
  trace?: never;
1413
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
+ };
1414
1448
  "/rating/app": {
1415
1449
  parameters: {
1416
1450
  query?: never;
@@ -2203,7 +2237,7 @@ export interface components {
2203
2237
  isEnabled: boolean;
2204
2238
  coordinates?: components["schemas"]["CoordinatesDto"] | null;
2205
2239
  maxDistanceMeters: number;
2206
- price: components["schemas"]["AlertPriceDto"];
2240
+ price?: components["schemas"]["AlertPriceDto"];
2207
2241
  time: components["schemas"]["AlertTimeDto"];
2208
2242
  gameLevel: components["schemas"]["gameLevelEnum"][];
2209
2243
  /** @description If empty then all */
@@ -3286,6 +3320,25 @@ export interface components {
3286
3320
  UpdateTeamMemberDto: {
3287
3321
  isAutoApproved: boolean;
3288
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
+ };
3289
3342
  CreateAppRatingDto: {
3290
3343
  /**
3291
3344
  * @deprecated
@@ -3597,6 +3650,10 @@ export type TeamMemberCandidateDto = components['schemas']['TeamMemberCandidateD
3597
3650
  export type GetTeamMemberCandidatesDto = components['schemas']['GetTeamMemberCandidatesDto'];
3598
3651
  export type CreateTeamMembersDto = components['schemas']['CreateTeamMembersDto'];
3599
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'];
3600
3657
  export type CreateAppRatingDto = components['schemas']['CreateAppRatingDto'];
3601
3658
  export type CreateContactMessageDto = components['schemas']['CreateContactMessageDto'];
3602
3659
  export type UserProfileStatsDto = components['schemas']['UserProfileStatsDto'];
@@ -7115,6 +7172,64 @@ export interface operations {
7115
7172
  };
7116
7173
  };
7117
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
+ };
7118
7233
  createRating: {
7119
7234
  parameters: {
7120
7235
  query?: never;
@@ -8056,7 +8171,9 @@ export declare enum KnownException {
8056
8171
  CannotCreateMultipleTeams = "CannotCreateMultipleTeams",
8057
8172
  NotTheHostOfTeam = "NotTheHostOfTeam",
8058
8173
  UserPenaltyAlreadyRevoked = "UserPenaltyAlreadyRevoked",
8059
- NotAParticipantOfGame = "NotAParticipantOfGame"
8174
+ NotAParticipantOfGame = "NotAParticipantOfGame",
8175
+ CategoryNotEditable = "CategoryNotEditable",
8176
+ UnknownNotificationCategory = "UnknownNotificationCategory"
8060
8177
  }
8061
8178
  export declare enum Visibility {
8062
8179
  PUBLIC = "PUBLIC",
@@ -8255,6 +8372,32 @@ export declare enum MemberRole {
8255
8372
  Moderator = "Moderator",
8256
8373
  Member = "Member"
8257
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
+ }
8258
8401
  export declare enum CommentTypeEnum {
8259
8402
  GOOD_PLAYER = "GOOD_PLAYER",
8260
8403
  FAIR_PLAY = "FAIR_PLAY",
@@ -8379,6 +8522,8 @@ export declare enum ApiPaths {
8379
8522
  leave = "/teams/{teamId}/member/me",
8380
8523
  acceptTeamInvitation = "/teams/{teamId}/invitations/accept",
8381
8524
  processScheduledNotification = "/game-notifications/scheduled-notification",
8525
+ getPreferences = "/notifications/preferences",
8526
+ togglePreference = "/notifications/preferences/{category}",
8382
8527
  createRating = "/rating/app",
8383
8528
  createContactMessage = "/contact/message",
8384
8529
  triggerNotificationsForGameFinished = "/game-notifications/game-finished",
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) {
@@ -258,6 +260,34 @@ var MemberRole;
258
260
  MemberRole["Moderator"] = "Moderator";
259
261
  MemberRole["Member"] = "Member";
260
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 = {}));
261
291
  var CommentTypeEnum;
262
292
  (function (CommentTypeEnum) {
263
293
  CommentTypeEnum["GOOD_PLAYER"] = "GOOD_PLAYER";
@@ -386,6 +416,8 @@ var ApiPaths;
386
416
  ApiPaths["leave"] = "/teams/{teamId}/member/me";
387
417
  ApiPaths["acceptTeamInvitation"] = "/teams/{teamId}/invitations/accept";
388
418
  ApiPaths["processScheduledNotification"] = "/game-notifications/scheduled-notification";
419
+ ApiPaths["getPreferences"] = "/notifications/preferences";
420
+ ApiPaths["togglePreference"] = "/notifications/preferences/{category}";
389
421
  ApiPaths["createRating"] = "/rating/app";
390
422
  ApiPaths["createContactMessage"] = "/contact/message";
391
423
  ApiPaths["triggerNotificationsForGameFinished"] = "/game-notifications/game-finished";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orlikfy/api-interfaces",
3
- "version": "6.1.9",
3
+ "version": "6.1.10",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "kruligh",