@targoninc/lyda-shared 0.0.78 → 0.0.80

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.
Files changed (132) hide show
  1. package/dist/generateKotlinModels.d.ts +1 -0
  2. package/dist/{Models → src/Models}/CreateOrderRequest.d.ts +1 -1
  3. package/dist/src/Models/Library.d.ts +8 -0
  4. package/dist/{Models → src/Models}/Likable.d.ts +3 -3
  5. package/dist/{Models → src/Models}/ListTrack.d.ts +1 -1
  6. package/dist/{Models → src/Models}/NotificationReference.d.ts +1 -1
  7. package/dist/{Models → src/Models}/PlayingFrom.d.ts +3 -3
  8. package/dist/{Models → src/Models}/RoyaltyInfo.d.ts +1 -1
  9. package/dist/{Models → src/Models}/Sale.d.ts +1 -1
  10. package/dist/src/Models/TypedStatistic.d.ts +6 -0
  11. package/dist/{Models → src/Models}/db/finance/Expense.d.ts +1 -1
  12. package/dist/{Models → src/Models}/db/finance/Payout.d.ts +1 -1
  13. package/dist/{Models → src/Models}/db/finance/PaypalBatchPayment.d.ts +1 -1
  14. package/dist/{Models → src/Models}/db/finance/Subscription.d.ts +1 -1
  15. package/dist/{Models → src/Models}/db/lyda/Album.d.ts +5 -5
  16. package/dist/{Models → src/Models}/db/lyda/AlbumLike.d.ts +1 -1
  17. package/dist/{Models → src/Models}/db/lyda/AlbumSale.d.ts +1 -1
  18. package/dist/{Models → src/Models}/db/lyda/AlbumTrack.d.ts +1 -1
  19. package/dist/{Models → src/Models}/db/lyda/Comment.d.ts +2 -2
  20. package/dist/{Models → src/Models}/db/lyda/Notification.d.ts +1 -1
  21. package/dist/{Models → src/Models}/db/lyda/Playlist.d.ts +5 -5
  22. package/dist/{Models → src/Models}/db/lyda/PlaylistLike.d.ts +1 -1
  23. package/dist/{Models → src/Models}/db/lyda/PlaylistTrack.d.ts +1 -1
  24. package/dist/{Models → src/Models}/db/lyda/Repost.d.ts +1 -1
  25. package/dist/{Models → src/Models}/db/lyda/Track.d.ts +10 -10
  26. package/dist/{Models → src/Models}/db/lyda/TrackCollaborator.d.ts +3 -3
  27. package/dist/{Models → src/Models}/db/lyda/TrackLike.d.ts +1 -1
  28. package/dist/{Models → src/Models}/db/lyda/TrackSale.d.ts +1 -1
  29. package/dist/{Models → src/Models}/db/lyda/User.d.ts +9 -9
  30. package/dist/src/index.d.ts +1 -0
  31. package/package.json +2 -1
  32. package/src/Models/CaptureOrderRequest.ts +1 -0
  33. package/src/Models/CreateOrderRequest.ts +2 -1
  34. package/src/Models/Library.ts +3 -3
  35. package/src/Models/Likable.ts +3 -3
  36. package/src/Models/ListTrack.ts +1 -1
  37. package/src/Models/NotifcationPart.ts +3 -3
  38. package/src/Models/NotificationReference.ts +1 -1
  39. package/src/Models/PlayingFrom.ts +3 -3
  40. package/src/Models/RoyaltyInfo.ts +7 -7
  41. package/src/Models/Sale.ts +1 -1
  42. package/src/Models/Statistic.ts +3 -3
  43. package/src/Models/TypedStatistic.ts +4 -4
  44. package/src/Models/WebauthnRegistrationRequest.ts +1 -1
  45. package/src/Models/db/finance/Expense.ts +1 -1
  46. package/src/Models/db/finance/Payout.ts +1 -1
  47. package/src/Models/db/finance/PaypalBatchPayment.ts +1 -1
  48. package/src/Models/db/finance/Subscription.ts +1 -1
  49. package/src/Models/db/lyda/Album.ts +6 -6
  50. package/src/Models/db/lyda/AlbumLike.ts +2 -2
  51. package/src/Models/db/lyda/AlbumSale.ts +1 -1
  52. package/src/Models/db/lyda/AlbumTrack.ts +2 -2
  53. package/src/Models/db/lyda/Comment.ts +3 -3
  54. package/src/Models/db/lyda/Notification.ts +1 -1
  55. package/src/Models/db/lyda/Playlist.ts +9 -9
  56. package/src/Models/db/lyda/PlaylistLike.ts +2 -2
  57. package/src/Models/db/lyda/PlaylistTrack.ts +2 -2
  58. package/src/Models/db/lyda/Repost.ts +2 -2
  59. package/src/Models/db/lyda/Track.ts +13 -12
  60. package/src/Models/db/lyda/TrackCollaborator.ts +4 -4
  61. package/src/Models/db/lyda/TrackLike.ts +2 -2
  62. package/src/Models/db/lyda/TrackSale.ts +1 -1
  63. package/src/Models/db/lyda/User.ts +10 -10
  64. package/dist/Models/Library.d.ts +0 -8
  65. package/dist/Models/TypedStatistic.d.ts +0 -6
  66. /package/dist/{index.d.ts → fix-ts-models.d.ts} +0 -0
  67. /package/dist/{Enums → src/Enums}/ActivityTableName.d.ts +0 -0
  68. /package/dist/{Enums → src/Enums}/CollabTypes.d.ts +0 -0
  69. /package/dist/{Enums → src/Enums}/EntityType.d.ts +0 -0
  70. /package/dist/{Enums → src/Enums}/FeedType.d.ts +0 -0
  71. /package/dist/{Enums → src/Enums}/Genre.d.ts +0 -0
  72. /package/dist/{Enums → src/Enums}/InteractionType.d.ts +0 -0
  73. /package/dist/{Enums → src/Enums}/LogLevel.d.ts +0 -0
  74. /package/dist/{Enums → src/Enums}/LoopMode.d.ts +0 -0
  75. /package/dist/{Enums → src/Enums}/MediaFileType.d.ts +0 -0
  76. /package/dist/{Enums → src/Enums}/MfaOption.d.ts +0 -0
  77. /package/dist/{Enums → src/Enums}/NotificationReferenceType.d.ts +0 -0
  78. /package/dist/{Enums → src/Enums}/OrderStatus.d.ts +0 -0
  79. /package/dist/{Enums → src/Enums}/PaymentProvider.d.ts +0 -0
  80. /package/dist/{Enums → src/Enums}/PaymentStatus.d.ts +0 -0
  81. /package/dist/{Enums → src/Enums}/PaypalBatchStatus.d.ts +0 -0
  82. /package/dist/{Enums → src/Enums}/Permissions.d.ts +0 -0
  83. /package/dist/{Enums → src/Enums}/ProgressState.d.ts +0 -0
  84. /package/dist/{Enums → src/Enums}/RoadmapItemStatus.d.ts +0 -0
  85. /package/dist/{Enums → src/Enums}/SearchContext.d.ts +0 -0
  86. /package/dist/{Enums → src/Enums}/StreamingQuality.d.ts +0 -0
  87. /package/dist/{Enums → src/Enums}/SubscriptionStatus.d.ts +0 -0
  88. /package/dist/{Enums → src/Enums}/Theme.d.ts +0 -0
  89. /package/dist/{Enums → src/Enums}/TimeResolution.d.ts +0 -0
  90. /package/dist/{Enums → src/Enums}/UserCacheKey.d.ts +0 -0
  91. /package/dist/{Enums → src/Enums}/UserSettings.d.ts +0 -0
  92. /package/dist/{Enums → src/Enums}/Visibility.d.ts +0 -0
  93. /package/dist/{Models → src/Models}/BoxPlotValues.d.ts +0 -0
  94. /package/dist/{Models → src/Models}/CaptureOrderRequest.d.ts +0 -0
  95. /package/dist/{Models → src/Models}/Filter.d.ts +0 -0
  96. /package/dist/{Models → src/Models}/InteractionConfig.d.ts +0 -0
  97. /package/dist/{Models → src/Models}/InteractionMetadata.d.ts +0 -0
  98. /package/dist/{Models → src/Models}/KeyValue.d.ts +0 -0
  99. /package/dist/{Models → src/Models}/NotifcationPart.d.ts +0 -0
  100. /package/dist/{Models → src/Models}/Royalty.d.ts +0 -0
  101. /package/dist/{Models → src/Models}/RoyaltyMonth.d.ts +0 -0
  102. /package/dist/{Models → src/Models}/SearchResult.d.ts +0 -0
  103. /package/dist/{Models → src/Models}/Statistic.d.ts +0 -0
  104. /package/dist/{Models → src/Models}/TrackPosition.d.ts +0 -0
  105. /package/dist/{Models → src/Models}/Transaction.d.ts +0 -0
  106. /package/dist/{Models → src/Models}/TransactionInfo.d.ts +0 -0
  107. /package/dist/{Models → src/Models}/WebauthnRegistrationRequest.d.ts +0 -0
  108. /package/dist/{Models → src/Models}/WebauthnVerificationRequest.d.ts +0 -0
  109. /package/dist/{Models → src/Models}/db/finance/AvailableSubscription.d.ts +0 -0
  110. /package/dist/{Models → src/Models}/db/finance/BillingHistory.d.ts +0 -0
  111. /package/dist/{Models → src/Models}/db/finance/MonthlyEarning.d.ts +0 -0
  112. /package/dist/{Models → src/Models}/db/finance/Order.d.ts +0 -0
  113. /package/dist/{Models → src/Models}/db/finance/PaypalUser.d.ts +0 -0
  114. /package/dist/{Models → src/Models}/db/finance/PaypalWebhook.d.ts +0 -0
  115. /package/dist/{Models → src/Models}/db/finance/Product.d.ts +0 -0
  116. /package/dist/{Models → src/Models}/db/finance/Refund.d.ts +0 -0
  117. /package/dist/{Models → src/Models}/db/finance/SubscriptionPayment.d.ts +0 -0
  118. /package/dist/{Models → src/Models}/db/lyda/ActionLog.d.ts +0 -0
  119. /package/dist/{Models → src/Models}/db/lyda/Badge.d.ts +0 -0
  120. /package/dist/{Models → src/Models}/db/lyda/ClientError.d.ts +0 -0
  121. /package/dist/{Models → src/Models}/db/lyda/CollaboratorType.d.ts +0 -0
  122. /package/dist/{Models → src/Models}/db/lyda/Follow.d.ts +0 -0
  123. /package/dist/{Models → src/Models}/db/lyda/ListeningHistory.d.ts +0 -0
  124. /package/dist/{Models → src/Models}/db/lyda/Log.d.ts +0 -0
  125. /package/dist/{Models → src/Models}/db/lyda/Permission.d.ts +0 -0
  126. /package/dist/{Models → src/Models}/db/lyda/PossibleUsersetting.d.ts +0 -0
  127. /package/dist/{Models → src/Models}/db/lyda/PublicKey.d.ts +0 -0
  128. /package/dist/{Models → src/Models}/db/lyda/UserBadge.d.ts +0 -0
  129. /package/dist/{Models → src/Models}/db/lyda/UserEmail.d.ts +0 -0
  130. /package/dist/{Models → src/Models}/db/lyda/UserPermission.d.ts +0 -0
  131. /package/dist/{Models → src/Models}/db/lyda/UserTotp.d.ts +0 -0
  132. /package/dist/{Models → src/Models}/db/lyda/Usersetting.d.ts +0 -0
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  import * as z from "zod";
2
- import { PaymentProvider } from "../Enums/PaymentProvider.ts";
2
+ import { PaymentProvider } from "../Enums/PaymentProvider";
3
3
  export declare const CreateOrderRequest: z.ZodObject<{
4
4
  type: z.ZodEnum<{
5
5
  track: "track";
@@ -0,0 +1,8 @@
1
+ import { Track } from "./db/lyda/Track";
2
+ import { Album } from "./db/lyda/Album";
3
+ import { Playlist } from "./db/lyda/Playlist";
4
+ export interface Library {
5
+ tracks: Track[];
6
+ albums: Album[];
7
+ playlists: Playlist[];
8
+ }
@@ -1,6 +1,6 @@
1
- import { TrackLike } from "./db/lyda/TrackLike.ts";
2
- import { AlbumLike } from "./db/lyda/AlbumLike.ts";
3
- import { PlaylistLike } from "./db/lyda/PlaylistLike.ts";
1
+ import { TrackLike } from "./db/lyda/TrackLike";
2
+ import { AlbumLike } from "./db/lyda/AlbumLike";
3
+ import { PlaylistLike } from "./db/lyda/PlaylistLike";
4
4
  /**
5
5
  * A generic interface for an entity that has an array of likes attached to it
6
6
  */
@@ -1,4 +1,4 @@
1
- import { Track } from "./db/lyda/Track.ts";
1
+ import { Track } from "./db/lyda/Track";
2
2
  /**
3
3
  * A generic interface for tracks in lists (e.g. albums or playlists)
4
4
  */
@@ -1,4 +1,4 @@
1
- import { NotificationReferenceType } from "../Enums/NotificationReferenceType.ts";
1
+ import { NotificationReferenceType } from "../Enums/NotificationReferenceType";
2
2
  /**
3
3
  * Represents a reference for a notification.
4
4
  *
@@ -1,6 +1,6 @@
1
- import { Album } from "./db/lyda/Album.ts";
2
- import { Playlist } from "./db/lyda/Playlist.ts";
3
- import { FeedType } from "../Enums/FeedType.ts";
1
+ import { Album } from "./db/lyda/Album";
2
+ import { Playlist } from "./db/lyda/Playlist";
3
+ import { FeedType } from "../Enums/FeedType";
4
4
  /**
5
5
  * Represents the source from where media is currently being played.
6
6
  */
@@ -1,4 +1,4 @@
1
- import { BoxPlotValues } from "./BoxPlotValues.ts";
1
+ import { BoxPlotValues } from "./BoxPlotValues";
2
2
  export interface RoyaltyInfo {
3
3
  personal: {
4
4
  trackRoyaltyValues: BoxPlotValues;
@@ -1,4 +1,4 @@
1
- import { User } from "./db/lyda/User.ts";
1
+ import { User } from "./db/lyda/User";
2
2
  export interface Sale {
3
3
  user?: User;
4
4
  user_id: number;
@@ -0,0 +1,6 @@
1
+ import { Statistic } from "./Statistic";
2
+ import { ActivityTableName } from "../Enums/ActivityTableName";
3
+ export interface TypedStatistic {
4
+ type: ActivityTableName;
5
+ stats: Statistic[];
6
+ }
@@ -1,5 +1,5 @@
1
1
  export interface Expense {
2
- id: bigint;
2
+ id: number;
3
3
  year: number;
4
4
  month: number;
5
5
  day: number;
@@ -1,4 +1,4 @@
1
- import { PaymentStatus } from "../../../Enums/PaymentStatus.ts";
1
+ import { PaymentStatus } from "../../../Enums/PaymentStatus";
2
2
  export interface Payout {
3
3
  id: number;
4
4
  payout_batch_id: string;
@@ -1,4 +1,4 @@
1
- import { PaypalBatchStatus } from "../../../Enums/PaypalBatchStatus.ts";
1
+ import { PaypalBatchStatus } from "../../../Enums/PaypalBatchStatus";
2
2
  export interface PaypalBatchPayment {
3
3
  id: number;
4
4
  paypal_batch_id: string;
@@ -1,4 +1,4 @@
1
- import { SubscriptionStatus } from "../../../Enums/SubscriptionStatus.ts";
1
+ import { SubscriptionStatus } from "../../../Enums/SubscriptionStatus";
2
2
  export interface Subscription {
3
3
  id: number;
4
4
  user_id: number;
@@ -1,9 +1,9 @@
1
- import { User } from "./User.js";
2
- import { AlbumTrack } from "./AlbumTrack.js";
1
+ import { User } from "./User";
2
+ import { AlbumTrack } from "./AlbumTrack";
3
3
  import { Entity } from "@targoninc/ts-search";
4
- import { InteractionMetadata } from "../../InteractionMetadata.ts";
5
- import { TrackLike } from "./TrackLike.ts";
6
- import { Visibility } from "../../../Enums/Visibility.ts";
4
+ import { InteractionMetadata } from "../../InteractionMetadata";
5
+ import { TrackLike } from "./TrackLike";
6
+ import { Visibility } from "../../../Enums/Visibility";
7
7
  export interface Album extends Entity {
8
8
  tracks?: AlbumTrack[];
9
9
  user?: User;
@@ -1,4 +1,4 @@
1
- import { User } from "./User.js";
1
+ import { User } from "./User";
2
2
  export interface AlbumLike {
3
3
  user?: User;
4
4
  user_id: number;
@@ -1,4 +1,4 @@
1
- import { Sale } from "../../Sale.ts";
1
+ import { Sale } from "../../Sale";
2
2
  export interface AlbumSale extends Sale {
3
3
  album_id: number;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Track } from "./Track.js";
1
+ import { Track } from "./Track";
2
2
  export interface AlbumTrack {
3
3
  track?: Track;
4
4
  album_id: number;
@@ -1,5 +1,5 @@
1
- import { User } from "./User.js";
2
- import { Track } from "./Track.js";
1
+ import { User } from "./User";
2
+ import { Track } from "./Track";
3
3
  export interface Comment {
4
4
  comments?: Comment[];
5
5
  user?: User;
@@ -1,4 +1,4 @@
1
- import { NotificationReference } from "../../NotificationReference.ts";
1
+ import { NotificationReference } from "../../NotificationReference";
2
2
  export interface Notification {
3
3
  references?: NotificationReference[];
4
4
  id: number;
@@ -1,9 +1,9 @@
1
- import { User } from "./User.js";
1
+ import { User } from "./User";
2
2
  import { Entity } from "@targoninc/ts-search";
3
- import { PlaylistTrack } from "./PlaylistTrack.ts";
4
- import { InteractionMetadata } from "../../InteractionMetadata.ts";
5
- import { TrackLike } from "./TrackLike.ts";
6
- import { Visibility } from "../../../Enums/Visibility.ts";
3
+ import { PlaylistTrack } from "./PlaylistTrack";
4
+ import { InteractionMetadata } from "../../InteractionMetadata";
5
+ import { TrackLike } from "./TrackLike";
6
+ import { Visibility } from "../../../Enums/Visibility";
7
7
  export interface Playlist extends Entity {
8
8
  tracks?: PlaylistTrack[];
9
9
  user?: User;
@@ -1,4 +1,4 @@
1
- import { User } from "./User.js";
1
+ import { User } from "./User";
2
2
  export interface PlaylistLike {
3
3
  user_id: number;
4
4
  playlist_id: number;
@@ -1,4 +1,4 @@
1
- import { Track } from "./Track.js";
1
+ import { Track } from "./Track";
2
2
  export interface PlaylistTrack {
3
3
  playlist_id: number;
4
4
  track_id: number;
@@ -1,4 +1,4 @@
1
- import { User } from "./User.js";
1
+ import { User } from "./User";
2
2
  export interface Repost {
3
3
  user?: User;
4
4
  user_id: number;
@@ -1,14 +1,14 @@
1
- import { TrackLike } from "./TrackLike.js";
2
- import { Album } from "./Album.js";
3
- import { Playlist } from "./Playlist.js";
4
- import { Notification } from "./Notification.js";
5
- import { Comment } from "./Comment.js";
6
- import { TrackCollaborator } from "./TrackCollaborator.js";
7
- import { User } from "./User.js";
8
- import { Repost } from "./Repost.js";
9
- import { InteractionMetadata } from "../../InteractionMetadata.ts";
1
+ import { TrackLike } from "./TrackLike";
2
+ import { Album } from "./Album";
3
+ import { Playlist } from "./Playlist";
4
+ import { Notification } from "./Notification";
5
+ import { Comment } from "./Comment";
6
+ import { TrackCollaborator } from "./TrackCollaborator";
7
+ import { User } from "./User";
8
+ import { Repost } from "./Repost";
9
+ import { InteractionMetadata } from "../../InteractionMetadata";
10
10
  import { Entity } from "@targoninc/ts-search";
11
- import { Visibility } from "../../../Enums/Visibility.ts";
11
+ import { Visibility } from "../../../Enums/Visibility";
12
12
  export interface Track extends Entity {
13
13
  repost_user_id?: number;
14
14
  repost?: Repost;
@@ -1,6 +1,6 @@
1
- import { User } from "./User.js";
2
- import { CollaboratorType } from "./CollaboratorType.js";
3
- import { Track } from "./Track.ts";
1
+ import { User } from "./User";
2
+ import { CollaboratorType } from "./CollaboratorType";
3
+ import { Track } from "./Track";
4
4
  export interface TrackCollaborator {
5
5
  collab_type?: CollaboratorType;
6
6
  track?: Track;
@@ -1,4 +1,4 @@
1
- import { User } from "./User.js";
1
+ import { User } from "./User";
2
2
  export interface TrackLike {
3
3
  user?: User;
4
4
  user_id: number;
@@ -1,4 +1,4 @@
1
- import { Sale } from "../../Sale.ts";
1
+ import { Sale } from "../../Sale";
2
2
  export interface TrackSale extends Sale {
3
3
  track_id: number;
4
4
  }
@@ -1,13 +1,13 @@
1
- import { Follow } from "./Follow.js";
2
- import { UserBadge } from "./UserBadge.js";
3
- import { Usersetting } from "./Usersetting.js";
4
- import { Badge } from "./Badge.js";
5
- import { Subscription } from "../finance/Subscription.js";
6
- import { UserEmail } from "./UserEmail.js";
7
- import { Permission } from "./Permission.js";
1
+ import { Follow } from "./Follow";
2
+ import { UserBadge } from "./UserBadge";
3
+ import { Usersetting } from "./Usersetting";
4
+ import { Badge } from "./Badge";
5
+ import { Subscription } from "../finance/Subscription";
6
+ import { UserEmail } from "./UserEmail";
7
+ import { Permission } from "./Permission";
8
8
  import { Entity } from "@targoninc/ts-search";
9
- import { UserTotp } from "./UserTotp.ts";
10
- import { PublicKey } from "./PublicKey.ts";
9
+ import { UserTotp } from "./UserTotp";
10
+ import { PublicKey } from "./PublicKey";
11
11
  /**
12
12
  * Represents a user entity with associated attributes and relationships.
13
13
  *
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@targoninc/lyda-shared",
3
3
  "type": "module",
4
- "version": "0.0.78",
4
+ "version": "0.0.80",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -17,6 +17,7 @@
17
17
  },
18
18
  "scripts": {
19
19
  "build": "bun build ./src/index.ts --outdir ./dist --target bun --format esm && tsc",
20
+ "generate-kt-models": "bun generateKotlinModels.ts",
20
21
  "typecheck": "tsc --noEmit",
21
22
  "prepublishOnly": "bun run build"
22
23
  },
@@ -5,3 +5,4 @@ export const CaptureOrderRequest = z.object({
5
5
  });
6
6
 
7
7
  export type CaptureOrderRequest = z.infer<typeof CaptureOrderRequest>;
8
+
@@ -1,5 +1,5 @@
1
1
  import * as z from "zod";
2
- import {PaymentProvider} from "../Enums/PaymentProvider.ts";
2
+ import {PaymentProvider} from "../Enums/PaymentProvider";
3
3
 
4
4
  export const CreateOrderRequest = z.object({
5
5
  type: z.enum(["album", "track"]),
@@ -9,3 +9,4 @@ export const CreateOrderRequest = z.object({
9
9
  });
10
10
 
11
11
  export type CreateOrderRequest = z.infer<typeof CreateOrderRequest>;
12
+
@@ -1,6 +1,6 @@
1
- import {Track} from "./db/lyda/Track.ts";
2
- import {Album} from "./db/lyda/Album.ts";
3
- import {Playlist} from "./db/lyda/Playlist.ts";
1
+ import {Track} from "./db/lyda/Track";
2
+ import {Album} from "./db/lyda/Album";
3
+ import {Playlist} from "./db/lyda/Playlist";
4
4
 
5
5
  export interface Library {
6
6
  tracks: Track[];
@@ -1,6 +1,6 @@
1
- import {TrackLike} from "./db/lyda/TrackLike.ts";
2
- import {AlbumLike} from "./db/lyda/AlbumLike.ts";
3
- import {PlaylistLike} from "./db/lyda/PlaylistLike.ts";
1
+ import {TrackLike} from "./db/lyda/TrackLike";
2
+ import {AlbumLike} from "./db/lyda/AlbumLike";
3
+ import {PlaylistLike} from "./db/lyda/PlaylistLike";
4
4
 
5
5
  /**
6
6
  * A generic interface for an entity that has an array of likes attached to it
@@ -1,4 +1,4 @@
1
- import {Track} from "./db/lyda/Track.ts";
1
+ import {Track} from "./db/lyda/Track";
2
2
 
3
3
  /**
4
4
  * A generic interface for tracks in lists (e.g. albums or playlists)
@@ -2,7 +2,7 @@
2
2
  * Represents a part of a notification that can be displayed as a separate component
3
3
  */
4
4
  export interface NotificationPart {
5
- type: "profile" | "track" | "album" | "playlist",
6
- text?: string,
7
- id?: number
5
+ type: "profile" | "track" | "album" | "playlist";
6
+ text?: string;
7
+ id?: number;
8
8
  }
@@ -1,4 +1,4 @@
1
- import {NotificationReferenceType} from "../Enums/NotificationReferenceType.ts";
1
+ import {NotificationReferenceType} from "../Enums/NotificationReferenceType";
2
2
 
3
3
  /**
4
4
  * Represents a reference for a notification.
@@ -1,6 +1,6 @@
1
- import {Album} from "./db/lyda/Album.ts";
2
- import {Playlist} from "./db/lyda/Playlist.ts";
3
- import {FeedType} from "../Enums/FeedType.ts";
1
+ import {Album} from "./db/lyda/Album";
2
+ import {Playlist} from "./db/lyda/Playlist";
3
+ import {FeedType} from "../Enums/FeedType";
4
4
 
5
5
  /**
6
6
  * Represents the source from where media is currently being played.
@@ -1,18 +1,18 @@
1
- import {BoxPlotValues} from "./BoxPlotValues.ts";
1
+ import {BoxPlotValues} from "./BoxPlotValues";
2
2
 
3
3
  export interface RoyaltyInfo {
4
4
  personal: {
5
5
  trackRoyaltyValues: BoxPlotValues;
6
6
  meanTrackRoyalty: number;
7
7
  paidTotal: number;
8
- available: number,
9
- totalRoyalties: number,
10
- paypalMail: string | null,
11
- },
8
+ available: number;
9
+ totalRoyalties: number;
10
+ paypalMail: string | null;
11
+ };
12
12
  global: {
13
13
  meanTrackRoyalty: number;
14
- paidTotal: number,
15
- totalRoyalties: number,
14
+ paidTotal: number;
15
+ totalRoyalties: number;
16
16
  trackRoyaltyValues: BoxPlotValues;
17
17
  counts: {
18
18
  users: number;
@@ -1,4 +1,4 @@
1
- import {User} from "./db/lyda/User.ts";
1
+ import {User} from "./db/lyda/User";
2
2
 
3
3
  export interface Sale {
4
4
  user?: User;
@@ -1,5 +1,5 @@
1
1
  export interface Statistic {
2
- id: any,
3
- label: string,
4
- value: number,
2
+ id: any;
3
+ label: string;
4
+ value: number;
5
5
  }
@@ -1,7 +1,7 @@
1
- import {Statistic} from "./Statistic.js";
2
- import {ActivityTableName} from "../Enums/ActivityTableName.ts";
1
+ import {Statistic} from "./Statistic";
2
+ import {ActivityTableName} from "../Enums/ActivityTableName";
3
3
 
4
4
  export interface TypedStatistic {
5
- type: ActivityTableName,
6
- stats: Statistic[]
5
+ type: ActivityTableName;
6
+ stats: Statistic[];
7
7
  }
@@ -13,7 +13,7 @@ export interface WebauthnRegistrationRequest {
13
13
  };
14
14
  authenticatorData: string;
15
15
  clientData: string;
16
- },
16
+ };
17
17
  challenge: string;
18
18
  name: string;
19
19
  }
@@ -1,5 +1,5 @@
1
1
  export interface Expense {
2
- id: bigint;
2
+ id: number;
3
3
  year: number;
4
4
  month: number;
5
5
  day: number;
@@ -1,4 +1,4 @@
1
- import {PaymentStatus} from "../../../Enums/PaymentStatus.ts";
1
+ import {PaymentStatus} from "../../../Enums/PaymentStatus";
2
2
 
3
3
  export interface Payout {
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import {PaypalBatchStatus} from "../../../Enums/PaypalBatchStatus.ts";
1
+ import {PaypalBatchStatus} from "../../../Enums/PaypalBatchStatus";
2
2
 
3
3
  export interface PaypalBatchPayment {
4
4
  id: number;
@@ -1,4 +1,4 @@
1
- import {SubscriptionStatus} from "../../../Enums/SubscriptionStatus.ts";
1
+ import {SubscriptionStatus} from "../../../Enums/SubscriptionStatus";
2
2
 
3
3
  export interface Subscription {
4
4
  id: number;
@@ -1,9 +1,9 @@
1
- import {User} from "./User.js";
2
- import {AlbumTrack} from "./AlbumTrack.js";
1
+ import {User} from "./User";
2
+ import {AlbumTrack} from "./AlbumTrack";
3
3
  import {Entity} from "@targoninc/ts-search";
4
- import {InteractionMetadata} from "../../InteractionMetadata.ts";
5
- import {TrackLike} from "./TrackLike.ts";
6
- import {Visibility} from "../../../Enums/Visibility.ts";
4
+ import {InteractionMetadata} from "../../InteractionMetadata";
5
+ import {TrackLike} from "./TrackLike";
6
+ import {Visibility} from "../../../Enums/Visibility";
7
7
 
8
8
  export interface Album extends Entity {
9
9
  tracks?: AlbumTrack[];
@@ -23,4 +23,4 @@ export interface Album extends Entity {
23
23
  likes?: InteractionMetadata<TrackLike>;
24
24
  /*reposts?: InteractionMetadata<Repost>;
25
25
  comments?: InteractionMetadata<Comment>;*/
26
- }
26
+ }
@@ -1,8 +1,8 @@
1
- import {User} from "./User.js";
1
+ import {User} from "./User";
2
2
 
3
3
  export interface AlbumLike {
4
4
  user?: User;
5
5
  user_id: number;
6
6
  album_id: number;
7
7
  created_at: Date;
8
- }
8
+ }
@@ -1,4 +1,4 @@
1
- import {Sale} from "../../Sale.ts";
1
+ import {Sale} from "../../Sale";
2
2
 
3
3
  export interface AlbumSale extends Sale {
4
4
  album_id: number;
@@ -1,4 +1,4 @@
1
- import {Track} from "./Track.js";
1
+ import {Track} from "./Track";
2
2
 
3
3
  export interface AlbumTrack {
4
4
  track?: Track;
@@ -7,4 +7,4 @@ export interface AlbumTrack {
7
7
  user_id: number;
8
8
  position: number;
9
9
  created_at: Date;
10
- }
10
+ }
@@ -1,5 +1,5 @@
1
- import {User} from "./User.js";
2
- import {Track} from "./Track.js";
1
+ import {User} from "./User";
2
+ import {Track} from "./Track";
3
3
 
4
4
  export interface Comment {
5
5
  comments?: Comment[];
@@ -14,4 +14,4 @@ export interface Comment {
14
14
  created_at: Date;
15
15
  potentially_harmful: boolean;
16
16
  hidden: boolean;
17
- }
17
+ }
@@ -1,4 +1,4 @@
1
- import {NotificationReference} from "../../NotificationReference.ts";
1
+ import {NotificationReference} from "../../NotificationReference";
2
2
 
3
3
  export interface Notification {
4
4
  references?: NotificationReference[];
@@ -1,12 +1,12 @@
1
- import {User} from "./User.js";
2
- import {PlaylistLike} from "./PlaylistLike.js";
1
+ import {User} from "./User";
2
+ import {PlaylistLike} from "./PlaylistLike";
3
3
  import {Entity} from "@targoninc/ts-search";
4
- import {PlaylistTrack} from "./PlaylistTrack.ts";
5
- import {InteractionMetadata} from "../../InteractionMetadata.ts";
6
- import {TrackLike} from "./TrackLike.ts";
7
- import {Repost} from "./Repost.ts";
8
- import {Comment} from "./Comment.ts";
9
- import {Visibility} from "../../../Enums/Visibility.ts";
4
+ import {PlaylistTrack} from "./PlaylistTrack";
5
+ import {InteractionMetadata} from "../../InteractionMetadata";
6
+ import {TrackLike} from "./TrackLike";
7
+ import {Repost} from "./Repost";
8
+ import {Comment} from "./Comment";
9
+ import {Visibility} from "../../../Enums/Visibility";
10
10
 
11
11
  export interface Playlist extends Entity {
12
12
  tracks?: PlaylistTrack[];
@@ -23,4 +23,4 @@ export interface Playlist extends Entity {
23
23
  likes?: InteractionMetadata<TrackLike>;
24
24
  /*reposts?: InteractionMetadata<Repost>;
25
25
  comments?: InteractionMetadata<Comment>;*/
26
- }
26
+ }
@@ -1,8 +1,8 @@
1
- import {User} from "./User.js";
1
+ import {User} from "./User";
2
2
 
3
3
  export interface PlaylistLike {
4
4
  user_id: number;
5
5
  playlist_id: number;
6
6
  created_at: Date;
7
7
  user?: User;
8
- }
8
+ }
@@ -1,4 +1,4 @@
1
- import {Track} from "./Track.js";
1
+ import {Track} from "./Track";
2
2
 
3
3
  export interface PlaylistTrack {
4
4
  playlist_id: number;
@@ -7,4 +7,4 @@ export interface PlaylistTrack {
7
7
  position: number;
8
8
  created_at: Date;
9
9
  track?: Track;
10
- }
10
+ }
@@ -1,8 +1,8 @@
1
- import {User} from "./User.js";
1
+ import {User} from "./User";
2
2
 
3
3
  export interface Repost {
4
4
  user?: User;
5
5
  user_id: number;
6
6
  track_id: number;
7
7
  created_at: Date;
8
- }
8
+ }
@@ -1,19 +1,19 @@
1
- import {TrackLike} from "./TrackLike.js";
2
- import {Album} from "./Album.js";
3
- import {Playlist} from "./Playlist.js";
4
- import {Notification} from "./Notification.js";
5
- import {Comment} from "./Comment.js";
6
- import {TrackCollaborator} from "./TrackCollaborator.js";
7
- import {User} from "./User.js";
8
- import {Repost} from "./Repost.js";
9
- import {InteractionMetadata} from "../../InteractionMetadata.ts";
1
+ import {TrackLike} from "./TrackLike";
2
+ import {Album} from "./Album";
3
+ import {Playlist} from "./Playlist";
4
+ import {Notification} from "./Notification";
5
+ import {Comment} from "./Comment";
6
+ import {TrackCollaborator} from "./TrackCollaborator";
7
+ import {User} from "./User";
8
+ import {Repost} from "./Repost";
9
+ import {InteractionMetadata} from "../../InteractionMetadata";
10
10
  import {Entity} from "@targoninc/ts-search";
11
- import {Visibility} from "../../../Enums/Visibility.ts";
11
+ import {Visibility} from "../../../Enums/Visibility";
12
12
 
13
13
  export interface Track extends Entity {
14
14
  repost_user_id?: number;
15
15
  repost?: Repost;
16
- collab?: TrackCollaborator,
16
+ collab?: TrackCollaborator;
17
17
  user?: User;
18
18
  playlists?: Playlist[];
19
19
  albums?: Album[];
@@ -46,4 +46,5 @@ export interface Track extends Entity {
46
46
  likes?: InteractionMetadata<TrackLike>;
47
47
  reposts?: InteractionMetadata<Repost>;
48
48
  comments?: InteractionMetadata<Comment>;
49
- }
49
+ }
50
+
@@ -1,6 +1,6 @@
1
- import {User} from "./User.js";
2
- import {CollaboratorType} from "./CollaboratorType.js";
3
- import {Track} from "./Track.ts";
1
+ import {User} from "./User";
2
+ import {CollaboratorType} from "./CollaboratorType";
3
+ import {Track} from "./Track";
4
4
 
5
5
  export interface TrackCollaborator {
6
6
  collab_type?: CollaboratorType;
@@ -13,4 +13,4 @@ export interface TrackCollaborator {
13
13
  denied: boolean;
14
14
  created_at: Date;
15
15
  updated_at: Date;
16
- }
16
+ }
@@ -1,8 +1,8 @@
1
- import {User} from "./User.js";
1
+ import {User} from "./User";
2
2
 
3
3
  export interface TrackLike {
4
4
  user?: User;
5
5
  user_id: number;
6
6
  track_id: number;
7
7
  created_at: Date;
8
- }
8
+ }
@@ -1,4 +1,4 @@
1
- import {Sale} from "../../Sale.ts";
1
+ import {Sale} from "../../Sale";
2
2
 
3
3
  export interface TrackSale extends Sale {
4
4
  track_id: number;
@@ -1,13 +1,13 @@
1
- import {Follow} from "./Follow.js";
2
- import {UserBadge} from "./UserBadge.js";
3
- import {Usersetting} from "./Usersetting.js";
4
- import {Badge} from "./Badge.js";
5
- import {Subscription} from "../finance/Subscription.js";
6
- import {UserEmail} from "./UserEmail.js";
7
- import {Permission} from "./Permission.js";
1
+ import {Follow} from "./Follow";
2
+ import {UserBadge} from "./UserBadge";
3
+ import {Usersetting} from "./Usersetting";
4
+ import {Badge} from "./Badge";
5
+ import {Subscription} from "../finance/Subscription";
6
+ import {UserEmail} from "./UserEmail";
7
+ import {Permission} from "./Permission";
8
8
  import {Entity} from "@targoninc/ts-search";
9
- import {UserTotp} from "./UserTotp.ts";
10
- import {PublicKey} from "./PublicKey.ts";
9
+ import {UserTotp} from "./UserTotp";
10
+ import {PublicKey} from "./PublicKey";
11
11
 
12
12
  /**
13
13
  * Represents a user entity with associated attributes and relationships.
@@ -49,4 +49,4 @@ export interface User extends Entity {
49
49
  has_banner: boolean;
50
50
  email_mfa_code: string;
51
51
  passkey_user_id: string;
52
- }
52
+ }
@@ -1,8 +0,0 @@
1
- import { Track } from "./db/lyda/Track.ts";
2
- import { Album } from "./db/lyda/Album.ts";
3
- import { Playlist } from "./db/lyda/Playlist.ts";
4
- export interface Library {
5
- tracks: Track[];
6
- albums: Album[];
7
- playlists: Playlist[];
8
- }
@@ -1,6 +0,0 @@
1
- import { Statistic } from "./Statistic.js";
2
- import { ActivityTableName } from "../Enums/ActivityTableName.ts";
3
- export interface TypedStatistic {
4
- type: ActivityTableName;
5
- stats: Statistic[];
6
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes