@audius/sdk 1.0.18 → 1.0.19
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/api/entityManager.d.ts +3 -16
- package/dist/index.cjs.js +16 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +16 -30
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.js +16 -30
- package/dist/legacy.js.map +1 -1
- package/dist/native-libs.js +16 -30
- package/dist/native-libs.js.map +1 -1
- package/dist/services/dataContracts/EntityManagerClient.d.ts +7 -1
- package/package.json +2 -2
- package/src/api/entityManager.ts +9 -18
- package/src/services/dataContracts/EntityManagerClient.ts +7 -1
|
@@ -5,7 +5,13 @@ export declare enum Action {
|
|
|
5
5
|
CREATE = "Create",
|
|
6
6
|
UPDATE = "Update",
|
|
7
7
|
DELETE = "Delete",
|
|
8
|
-
VERIFY = "Verify"
|
|
8
|
+
VERIFY = "Verify",
|
|
9
|
+
FOLLOW = "Follow",
|
|
10
|
+
UNFOLLOW = "Unfollow",
|
|
11
|
+
SAVE = "Save",
|
|
12
|
+
UNSAVE = "Unsave",
|
|
13
|
+
REPOST = "Repost",
|
|
14
|
+
UNREPOST = "Unrepost"
|
|
9
15
|
}
|
|
10
16
|
export declare enum EntityType {
|
|
11
17
|
PLAYLIST = "Playlist",
|
package/package.json
CHANGED
package/src/api/entityManager.ts
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
import { Base, Services } from './base'
|
|
2
2
|
import type { PlaylistMetadata } from '../services/creatorNode'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
DELETE = 'Delete',
|
|
8
|
-
FOLLOW = 'Follow',
|
|
9
|
-
UNFOLLOW = 'Unfollow',
|
|
10
|
-
SAVE = 'Save',
|
|
11
|
-
UNSAVE = 'Unsave',
|
|
12
|
-
REPOST = 'Repost',
|
|
13
|
-
UNREPOST = 'Unrepost'
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export enum EntityType {
|
|
17
|
-
TRACK = 'Track',
|
|
18
|
-
PLAYLIST = 'Playlist',
|
|
19
|
-
USER = 'User'
|
|
20
|
-
}
|
|
3
|
+
import {
|
|
4
|
+
Action,
|
|
5
|
+
EntityType
|
|
6
|
+
} from '../services/dataContracts/EntityManagerClient'
|
|
21
7
|
|
|
22
8
|
export type EntityManagerSuccessResponse = {
|
|
23
9
|
blockHash: string
|
|
@@ -111,6 +97,11 @@ export class EntityManager extends Base {
|
|
|
111
97
|
unsavePlaylist = this.createSocialMethod(EntityType.PLAYLIST, Action.UNSAVE)
|
|
112
98
|
repostTrack = this.createSocialMethod(EntityType.TRACK, Action.REPOST)
|
|
113
99
|
unrepostTrack = this.createSocialMethod(EntityType.TRACK, Action.UNREPOST)
|
|
100
|
+
repostPlaylist = this.createSocialMethod(EntityType.PLAYLIST, Action.REPOST)
|
|
101
|
+
unrepostPlaylist = this.createSocialMethod(
|
|
102
|
+
EntityType.PLAYLIST,
|
|
103
|
+
Action.UNREPOST
|
|
104
|
+
)
|
|
114
105
|
|
|
115
106
|
/** Playlist */
|
|
116
107
|
|
|
@@ -10,7 +10,13 @@ export enum Action {
|
|
|
10
10
|
CREATE = 'Create',
|
|
11
11
|
UPDATE = 'Update',
|
|
12
12
|
DELETE = 'Delete',
|
|
13
|
-
VERIFY = 'Verify'
|
|
13
|
+
VERIFY = 'Verify',
|
|
14
|
+
FOLLOW = 'Follow',
|
|
15
|
+
UNFOLLOW = 'Unfollow',
|
|
16
|
+
SAVE = 'Save',
|
|
17
|
+
UNSAVE = 'Unsave',
|
|
18
|
+
REPOST = 'Repost',
|
|
19
|
+
UNREPOST = 'Unrepost'
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
export enum EntityType {
|