@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.
@@ -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
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@audius/sdk",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "audius": {
5
- "releaseSHA": "cc52bcb636e5a70a3e50f6fe3b7eccc8f1f0c479"
5
+ "releaseSHA": "0a307f67af9a7dc7a6128b181bce45d92d9492df"
6
6
  },
7
7
  "description": "",
8
8
  "main": "dist/index.cjs.js",
@@ -1,23 +1,9 @@
1
1
  import { Base, Services } from './base'
2
2
  import type { PlaylistMetadata } from '../services/creatorNode'
3
-
4
- export enum Action {
5
- CREATE = 'Create',
6
- UPDATE = 'Update',
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 {