@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.
@@ -1,20 +1,5 @@
1
1
  import { Base } from './base';
2
- export declare enum Action {
3
- CREATE = "Create",
4
- UPDATE = "Update",
5
- DELETE = "Delete",
6
- FOLLOW = "Follow",
7
- UNFOLLOW = "Unfollow",
8
- SAVE = "Save",
9
- UNSAVE = "Unsave",
10
- REPOST = "Repost",
11
- UNREPOST = "Unrepost"
12
- }
13
- export declare enum EntityType {
14
- TRACK = "Track",
15
- PLAYLIST = "Playlist",
16
- USER = "User"
17
- }
2
+ import { Action, EntityType } from '../services/dataContracts/EntityManagerClient';
18
3
  export declare type EntityManagerSuccessResponse = {
19
4
  blockHash: string;
20
5
  blockNumber: number;
@@ -66,6 +51,8 @@ export declare class EntityManager extends Base {
66
51
  unsavePlaylist: (entityId: number) => Promise<EntityManagerResponse>;
67
52
  repostTrack: (entityId: number) => Promise<EntityManagerResponse>;
68
53
  unrepostTrack: (entityId: number) => Promise<EntityManagerResponse>;
54
+ repostPlaylist: (entityId: number) => Promise<EntityManagerResponse>;
55
+ unrepostPlaylist: (entityId: number) => Promise<EntityManagerResponse>;
69
56
  /** Playlist */
70
57
  createPlaylist(playlist: PlaylistParam): Promise<EntityManagerResponse>;
71
58
  deletePlaylist(playlistId: number): Promise<EntityManagerResponse>;
package/dist/index.cjs.js CHANGED
@@ -34277,9 +34277,9 @@ var formatProviders = function formatProviders(providers) {
34277
34277
  };
34278
34278
 
34279
34279
  var name = "@audius/sdk";
34280
- var version = "1.0.18";
34280
+ var version = "1.0.19";
34281
34281
  var audius = {
34282
- releaseSHA: "cc52bcb636e5a70a3e50f6fe3b7eccc8f1f0c479"
34282
+ releaseSHA: "0a307f67af9a7dc7a6128b181bce45d92d9492df"
34283
34283
  };
34284
34284
  var description = "";
34285
34285
  var main = "dist/index.cjs.js";
@@ -46339,23 +46339,29 @@ var UserReplicaSetManagerClient = /*#__PURE__*/function (_ContractClient) {
46339
46339
  return UserReplicaSetManagerClient;
46340
46340
  }(ContractClient);
46341
46341
 
46342
- var Action$1;
46342
+ var Action;
46343
46343
 
46344
46344
  (function (Action) {
46345
46345
  Action["CREATE"] = "Create";
46346
46346
  Action["UPDATE"] = "Update";
46347
46347
  Action["DELETE"] = "Delete";
46348
46348
  Action["VERIFY"] = "Verify";
46349
- })(Action$1 || (Action$1 = {}));
46349
+ Action["FOLLOW"] = "Follow";
46350
+ Action["UNFOLLOW"] = "Unfollow";
46351
+ Action["SAVE"] = "Save";
46352
+ Action["UNSAVE"] = "Unsave";
46353
+ Action["REPOST"] = "Repost";
46354
+ Action["UNREPOST"] = "Unrepost";
46355
+ })(Action || (Action = {}));
46350
46356
 
46351
- var EntityType$1;
46357
+ var EntityType;
46352
46358
 
46353
46359
  (function (EntityType) {
46354
46360
  EntityType["PLAYLIST"] = "Playlist";
46355
46361
  EntityType["TRACK"] = "Track";
46356
46362
  EntityType["USER"] = "User";
46357
46363
  EntityType["USER_REPLICA_SET"] = "UserReplicaSet";
46358
- })(EntityType$1 || (EntityType$1 = {}));
46364
+ })(EntityType || (EntityType = {}));
46359
46365
  /**
46360
46366
  * Generic management of Audius Data entities
46361
46367
  **/
@@ -46517,8 +46523,8 @@ var EntityManagerClient = /*#__PURE__*/function (_ContractClient) {
46517
46523
 
46518
46524
  return EntityManagerClient;
46519
46525
  }(ContractClient);
46520
- EntityManagerClient.Action = Action$1;
46521
- EntityManagerClient.EntityType = EntityType$1;
46526
+ EntityManagerClient.Action = Action;
46527
+ EntityManagerClient.EntityType = EntityType;
46522
46528
 
46523
46529
  var abi = [
46524
46530
  {
@@ -58823,34 +58829,12 @@ var Reactions = /*#__PURE__*/function (_Base) {
58823
58829
  return Reactions;
58824
58830
  }(Base);
58825
58831
 
58826
- var Action;
58827
-
58828
- (function (Action) {
58829
- Action["CREATE"] = "Create";
58830
- Action["UPDATE"] = "Update";
58831
- Action["DELETE"] = "Delete";
58832
- Action["FOLLOW"] = "Follow";
58833
- Action["UNFOLLOW"] = "Unfollow";
58834
- Action["SAVE"] = "Save";
58835
- Action["UNSAVE"] = "Unsave";
58836
- Action["REPOST"] = "Repost";
58837
- Action["UNREPOST"] = "Unrepost";
58838
- })(Action || (Action = {}));
58839
-
58840
- var EntityType;
58841
-
58842
- (function (EntityType) {
58843
- EntityType["TRACK"] = "Track";
58844
- EntityType["PLAYLIST"] = "Playlist";
58845
- EntityType["USER"] = "User";
58846
- })(EntityType || (EntityType = {}));
58847
58832
  /*
58848
58833
  API surface for updated data contract interactions.
58849
58834
  Provides simplified entity management in a generic fashion
58850
58835
  Handles metadata + file upload etc. for entities such as Playlist/Track/User
58851
58836
  */
58852
58837
 
58853
-
58854
58838
  var EntityManager = /*#__PURE__*/function (_Base) {
58855
58839
  _inherits(EntityManager, _Base);
58856
58840
 
@@ -58918,6 +58902,8 @@ var EntityManager = /*#__PURE__*/function (_Base) {
58918
58902
  _this.unsavePlaylist = _this.createSocialMethod(EntityType.PLAYLIST, Action.UNSAVE);
58919
58903
  _this.repostTrack = _this.createSocialMethod(EntityType.TRACK, Action.REPOST);
58920
58904
  _this.unrepostTrack = _this.createSocialMethod(EntityType.TRACK, Action.UNREPOST);
58905
+ _this.repostPlaylist = _this.createSocialMethod(EntityType.PLAYLIST, Action.REPOST);
58906
+ _this.unrepostPlaylist = _this.createSocialMethod(EntityType.PLAYLIST, Action.UNREPOST);
58921
58907
  return _this;
58922
58908
  }
58923
58909