@targoninc/lyda-shared 0.0.29 → 0.0.30
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/Enums/NotificationReferenceType.d.ts +3 -0
- package/dist/Models/Likable.d.ts +3 -0
- package/dist/Models/ListTrack.d.ts +3 -0
- package/dist/Models/NotifcationPart.d.ts +4 -1
- package/dist/Models/NotificationReference.d.ts +6 -0
- package/dist/Models/PlayingFrom.d.ts +3 -0
- package/dist/Models/db/lyda/User.d.ts +7 -0
- package/package.json +1 -1
- package/src/Enums/NotificationReferenceType.ts +3 -0
- package/src/Models/Likable.ts +3 -0
- package/src/Models/ListTrack.ts +3 -0
- package/src/Models/NotifcationPart.ts +4 -1
- package/src/Models/NotificationReference.ts +6 -0
- package/src/Models/PlayingFrom.ts +3 -0
- package/src/Models/db/lyda/User.ts +7 -0
package/dist/Models/Likable.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { TrackLike } from "./db/lyda/TrackLike.ts";
|
|
2
2
|
import { AlbumLike } from "./db/lyda/AlbumLike.ts";
|
|
3
3
|
import { PlaylistLike } from "./db/lyda/PlaylistLike.ts";
|
|
4
|
+
/**
|
|
5
|
+
* A generic interface for an entity that has an array of likes attached to it
|
|
6
|
+
*/
|
|
4
7
|
export interface Likable {
|
|
5
8
|
likes?: (TrackLike | AlbumLike | PlaylistLike)[];
|
|
6
9
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { NotificationReferenceType } from "../Enums/NotificationReferenceType.ts";
|
|
2
|
+
/**
|
|
3
|
+
* Represents a reference for a notification.
|
|
4
|
+
*
|
|
5
|
+
* This interface defines the structure of a notification reference object,
|
|
6
|
+
* which includes properties to identify and optionally associate an object with the notification.
|
|
7
|
+
*/
|
|
2
8
|
export interface NotificationReference {
|
|
3
9
|
type: NotificationReferenceType;
|
|
4
10
|
id: number;
|
|
@@ -8,6 +8,13 @@ import { Permission } from "./Permission.js";
|
|
|
8
8
|
import { Entity } from "@targoninc/ts-search";
|
|
9
9
|
import { UserTotp } from "./UserTotp.ts";
|
|
10
10
|
import { PublicKey } from "./PublicKey.ts";
|
|
11
|
+
/**
|
|
12
|
+
* Represents a user entity with associated attributes and relationships.
|
|
13
|
+
*
|
|
14
|
+
* The `User` interface extends the `Entity` interface from our search library and defines additional properties
|
|
15
|
+
* related to the user, including information about permissions, subscriptions, settings, badges,
|
|
16
|
+
* security credentials, and activity logs.
|
|
17
|
+
*/
|
|
11
18
|
export interface User extends Entity {
|
|
12
19
|
permissions?: Permission[];
|
|
13
20
|
subscription?: Subscription;
|
package/package.json
CHANGED
package/src/Models/Likable.ts
CHANGED
|
@@ -2,6 +2,9 @@ import {TrackLike} from "./db/lyda/TrackLike.ts";
|
|
|
2
2
|
import {AlbumLike} from "./db/lyda/AlbumLike.ts";
|
|
3
3
|
import {PlaylistLike} from "./db/lyda/PlaylistLike.ts";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* A generic interface for an entity that has an array of likes attached to it
|
|
7
|
+
*/
|
|
5
8
|
export interface Likable {
|
|
6
9
|
likes?: (TrackLike | AlbumLike | PlaylistLike)[];
|
|
7
10
|
}
|
package/src/Models/ListTrack.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import {NotificationReferenceType} from "../Enums/NotificationReferenceType.ts";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Represents a reference for a notification.
|
|
5
|
+
*
|
|
6
|
+
* This interface defines the structure of a notification reference object,
|
|
7
|
+
* which includes properties to identify and optionally associate an object with the notification.
|
|
8
|
+
*/
|
|
3
9
|
export interface NotificationReference {
|
|
4
10
|
type: NotificationReferenceType;
|
|
5
11
|
id: number;
|
|
@@ -9,6 +9,13 @@ import {Entity} from "@targoninc/ts-search";
|
|
|
9
9
|
import {UserTotp} from "./UserTotp.ts";
|
|
10
10
|
import {PublicKey} from "./PublicKey.ts";
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Represents a user entity with associated attributes and relationships.
|
|
14
|
+
*
|
|
15
|
+
* The `User` interface extends the `Entity` interface from our search library and defines additional properties
|
|
16
|
+
* related to the user, including information about permissions, subscriptions, settings, badges,
|
|
17
|
+
* security credentials, and activity logs.
|
|
18
|
+
*/
|
|
12
19
|
export interface User extends Entity {
|
|
13
20
|
permissions?: Permission[];
|
|
14
21
|
subscription?: Subscription;
|