@targoninc/lyda-shared 0.0.77 → 0.0.79
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/generateKotlinModels.d.ts +1 -0
- package/dist/{Models → src/Models}/CreateOrderRequest.d.ts +1 -1
- package/dist/src/Models/Library.d.ts +8 -0
- package/dist/{Models → src/Models}/Likable.d.ts +3 -3
- package/dist/{Models → src/Models}/ListTrack.d.ts +1 -1
- package/dist/{Models → src/Models}/NotificationReference.d.ts +1 -1
- package/dist/{Models → src/Models}/PlayingFrom.d.ts +3 -3
- package/dist/{Models → src/Models}/RoyaltyInfo.d.ts +1 -1
- package/dist/{Models → src/Models}/Sale.d.ts +2 -0
- package/dist/src/Models/TypedStatistic.d.ts +6 -0
- package/dist/{Models → src/Models}/db/finance/Expense.d.ts +1 -1
- package/dist/{Models → src/Models}/db/finance/Payout.d.ts +1 -1
- package/dist/{Models → src/Models}/db/finance/PaypalBatchPayment.d.ts +1 -1
- package/dist/{Models → src/Models}/db/finance/Subscription.d.ts +1 -1
- package/dist/{Models → src/Models}/db/lyda/Album.d.ts +5 -5
- package/dist/{Models → src/Models}/db/lyda/AlbumLike.d.ts +1 -1
- package/dist/{Models → src/Models}/db/lyda/AlbumSale.d.ts +1 -1
- package/dist/{Models → src/Models}/db/lyda/AlbumTrack.d.ts +1 -1
- package/dist/{Models → src/Models}/db/lyda/Comment.d.ts +2 -2
- package/dist/{Models → src/Models}/db/lyda/Notification.d.ts +1 -1
- package/dist/{Models → src/Models}/db/lyda/Playlist.d.ts +5 -5
- package/dist/{Models → src/Models}/db/lyda/PlaylistLike.d.ts +1 -1
- package/dist/{Models → src/Models}/db/lyda/PlaylistTrack.d.ts +1 -1
- package/dist/{Models → src/Models}/db/lyda/Repost.d.ts +1 -1
- package/dist/{Models → src/Models}/db/lyda/Track.d.ts +10 -10
- package/dist/{Models → src/Models}/db/lyda/TrackCollaborator.d.ts +3 -3
- package/dist/{Models → src/Models}/db/lyda/TrackLike.d.ts +1 -1
- package/dist/{Models → src/Models}/db/lyda/TrackSale.d.ts +1 -1
- package/dist/{Models → src/Models}/db/lyda/User.d.ts +9 -9
- package/dist/src/index.d.ts +1 -0
- package/package.json +2 -1
- package/src/Models/CaptureOrderRequest.ts +1 -0
- package/src/Models/CreateOrderRequest.ts +2 -1
- package/src/Models/Library.ts +3 -3
- package/src/Models/Likable.ts +3 -3
- package/src/Models/ListTrack.ts +1 -1
- package/src/Models/NotifcationPart.ts +3 -3
- package/src/Models/NotificationReference.ts +1 -1
- package/src/Models/PlayingFrom.ts +3 -3
- package/src/Models/RoyaltyInfo.ts +7 -7
- package/src/Models/Sale.ts +3 -0
- package/src/Models/Statistic.ts +3 -3
- package/src/Models/TypedStatistic.ts +4 -4
- package/src/Models/WebauthnRegistrationRequest.ts +1 -1
- package/src/Models/db/finance/Expense.ts +1 -1
- package/src/Models/db/finance/Payout.ts +1 -1
- package/src/Models/db/finance/PaypalBatchPayment.ts +1 -1
- package/src/Models/db/finance/Subscription.ts +1 -1
- package/src/Models/db/lyda/Album.ts +6 -6
- package/src/Models/db/lyda/AlbumLike.ts +2 -2
- package/src/Models/db/lyda/AlbumSale.ts +1 -1
- package/src/Models/db/lyda/AlbumTrack.ts +2 -2
- package/src/Models/db/lyda/Comment.ts +3 -3
- package/src/Models/db/lyda/Notification.ts +1 -1
- package/src/Models/db/lyda/Playlist.ts +9 -9
- package/src/Models/db/lyda/PlaylistLike.ts +2 -2
- package/src/Models/db/lyda/PlaylistTrack.ts +2 -2
- package/src/Models/db/lyda/Repost.ts +2 -2
- package/src/Models/db/lyda/Track.ts +13 -12
- package/src/Models/db/lyda/TrackCollaborator.ts +4 -4
- package/src/Models/db/lyda/TrackLike.ts +2 -2
- package/src/Models/db/lyda/TrackSale.ts +1 -1
- package/src/Models/db/lyda/User.ts +10 -10
- package/dist/Models/Library.d.ts +0 -8
- package/dist/Models/TypedStatistic.d.ts +0 -6
- /package/dist/{index.d.ts → fix-ts-models.d.ts} +0 -0
- /package/dist/{Enums → src/Enums}/ActivityTableName.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/CollabTypes.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/EntityType.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/FeedType.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/Genre.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/InteractionType.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/LogLevel.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/LoopMode.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/MediaFileType.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/MfaOption.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/NotificationReferenceType.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/OrderStatus.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/PaymentProvider.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/PaymentStatus.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/PaypalBatchStatus.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/Permissions.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/ProgressState.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/RoadmapItemStatus.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/SearchContext.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/StreamingQuality.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/SubscriptionStatus.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/Theme.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/TimeResolution.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/UserCacheKey.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/UserSettings.d.ts +0 -0
- /package/dist/{Enums → src/Enums}/Visibility.d.ts +0 -0
- /package/dist/{Models → src/Models}/BoxPlotValues.d.ts +0 -0
- /package/dist/{Models → src/Models}/CaptureOrderRequest.d.ts +0 -0
- /package/dist/{Models → src/Models}/Filter.d.ts +0 -0
- /package/dist/{Models → src/Models}/InteractionConfig.d.ts +0 -0
- /package/dist/{Models → src/Models}/InteractionMetadata.d.ts +0 -0
- /package/dist/{Models → src/Models}/KeyValue.d.ts +0 -0
- /package/dist/{Models → src/Models}/NotifcationPart.d.ts +0 -0
- /package/dist/{Models → src/Models}/Royalty.d.ts +0 -0
- /package/dist/{Models → src/Models}/RoyaltyMonth.d.ts +0 -0
- /package/dist/{Models → src/Models}/SearchResult.d.ts +0 -0
- /package/dist/{Models → src/Models}/Statistic.d.ts +0 -0
- /package/dist/{Models → src/Models}/TrackPosition.d.ts +0 -0
- /package/dist/{Models → src/Models}/Transaction.d.ts +0 -0
- /package/dist/{Models → src/Models}/TransactionInfo.d.ts +0 -0
- /package/dist/{Models → src/Models}/WebauthnRegistrationRequest.d.ts +0 -0
- /package/dist/{Models → src/Models}/WebauthnVerificationRequest.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/finance/AvailableSubscription.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/finance/BillingHistory.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/finance/MonthlyEarning.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/finance/Order.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/finance/PaypalUser.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/finance/PaypalWebhook.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/finance/Product.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/finance/Refund.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/finance/SubscriptionPayment.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/ActionLog.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/Badge.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/ClientError.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/CollaboratorType.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/Follow.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/ListeningHistory.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/Log.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/Permission.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/PossibleUsersetting.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/PublicKey.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/UserBadge.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/UserEmail.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/UserPermission.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/UserTotp.d.ts +0 -0
- /package/dist/{Models → src/Models}/db/lyda/Usersetting.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TrackLike } from "./db/lyda/TrackLike
|
|
2
|
-
import { AlbumLike } from "./db/lyda/AlbumLike
|
|
3
|
-
import { PlaylistLike } from "./db/lyda/PlaylistLike
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { Album } from "./db/lyda/Album
|
|
2
|
-
import { Playlist } from "./db/lyda/Playlist
|
|
3
|
-
import { FeedType } from "../Enums/FeedType
|
|
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,9 +1,9 @@
|
|
|
1
|
-
import { User } from "./User
|
|
2
|
-
import { AlbumTrack } from "./AlbumTrack
|
|
1
|
+
import { User } from "./User";
|
|
2
|
+
import { AlbumTrack } from "./AlbumTrack";
|
|
3
3
|
import { Entity } from "@targoninc/ts-search";
|
|
4
|
-
import { InteractionMetadata } from "../../InteractionMetadata
|
|
5
|
-
import { TrackLike } from "./TrackLike
|
|
6
|
-
import { Visibility } from "../../../Enums/Visibility
|
|
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,9 +1,9 @@
|
|
|
1
|
-
import { User } from "./User
|
|
1
|
+
import { User } from "./User";
|
|
2
2
|
import { Entity } from "@targoninc/ts-search";
|
|
3
|
-
import { PlaylistTrack } from "./PlaylistTrack
|
|
4
|
-
import { InteractionMetadata } from "../../InteractionMetadata
|
|
5
|
-
import { TrackLike } from "./TrackLike
|
|
6
|
-
import { Visibility } from "../../../Enums/Visibility
|
|
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,14 +1,14 @@
|
|
|
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
|
|
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
|
|
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
|
|
2
|
-
import { CollaboratorType } from "./CollaboratorType
|
|
3
|
-
import { Track } from "./Track
|
|
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,13 +1,13 @@
|
|
|
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
|
|
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
|
|
10
|
-
import { PublicKey } from "./PublicKey
|
|
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.
|
|
4
|
+
"version": "0.0.79",
|
|
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
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import {PaymentProvider} from "../Enums/PaymentProvider
|
|
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
|
+
|
package/src/Models/Library.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {Track} from "./db/lyda/Track
|
|
2
|
-
import {Album} from "./db/lyda/Album
|
|
3
|
-
import {Playlist} from "./db/lyda/Playlist
|
|
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[];
|
package/src/Models/Likable.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {TrackLike} from "./db/lyda/TrackLike
|
|
2
|
-
import {AlbumLike} from "./db/lyda/AlbumLike
|
|
3
|
-
import {PlaylistLike} from "./db/lyda/PlaylistLike
|
|
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
|
package/src/Models/ListTrack.ts
CHANGED
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import {Album} from "./db/lyda/Album
|
|
2
|
-
import {Playlist} from "./db/lyda/Playlist
|
|
3
|
-
import {FeedType} from "../Enums/FeedType
|
|
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
|
|
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;
|
package/src/Models/Sale.ts
CHANGED
package/src/Models/Statistic.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {Statistic} from "./Statistic
|
|
2
|
-
import {ActivityTableName} from "../Enums/ActivityTableName
|
|
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
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {User} from "./User
|
|
2
|
-
import {AlbumTrack} from "./AlbumTrack
|
|
1
|
+
import {User} from "./User";
|
|
2
|
+
import {AlbumTrack} from "./AlbumTrack";
|
|
3
3
|
import {Entity} from "@targoninc/ts-search";
|
|
4
|
-
import {InteractionMetadata} from "../../InteractionMetadata
|
|
5
|
-
import {TrackLike} from "./TrackLike
|
|
6
|
-
import {Visibility} from "../../../Enums/Visibility
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import {User} from "./User
|
|
2
|
-
import {Track} from "./Track
|
|
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,12 +1,12 @@
|
|
|
1
|
-
import {User} from "./User
|
|
2
|
-
import {PlaylistLike} from "./PlaylistLike
|
|
1
|
+
import {User} from "./User";
|
|
2
|
+
import {PlaylistLike} from "./PlaylistLike";
|
|
3
3
|
import {Entity} from "@targoninc/ts-search";
|
|
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
|
|
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,19 +1,19 @@
|
|
|
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
|
|
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
|
|
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
|
|
2
|
-
import {CollaboratorType} from "./CollaboratorType
|
|
3
|
-
import {Track} from "./Track
|
|
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,13 +1,13 @@
|
|
|
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
|
|
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
|
|
10
|
-
import {PublicKey} from "./PublicKey
|
|
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
|
+
}
|
package/dist/Models/Library.d.ts
DELETED
|
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
|
|
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
|