@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
package/dist/native-libs.js
CHANGED
|
@@ -514,9 +514,9 @@ if (typeof window !== 'undefined' && window && window.Web3) {
|
|
|
514
514
|
var LibsWeb3 = Web3;
|
|
515
515
|
|
|
516
516
|
var name = "@audius/sdk";
|
|
517
|
-
var version = "1.0.
|
|
517
|
+
var version = "1.0.19";
|
|
518
518
|
var audius = {
|
|
519
|
-
releaseSHA: "
|
|
519
|
+
releaseSHA: "0a307f67af9a7dc7a6128b181bce45d92d9492df"
|
|
520
520
|
};
|
|
521
521
|
var description = "";
|
|
522
522
|
var main = "dist/index.cjs.js";
|
|
@@ -41051,23 +41051,29 @@ var UserReplicaSetManagerClient = /*#__PURE__*/function (_ContractClient) {
|
|
|
41051
41051
|
return UserReplicaSetManagerClient;
|
|
41052
41052
|
}(ContractClient);
|
|
41053
41053
|
|
|
41054
|
-
var Action
|
|
41054
|
+
var Action;
|
|
41055
41055
|
|
|
41056
41056
|
(function (Action) {
|
|
41057
41057
|
Action["CREATE"] = "Create";
|
|
41058
41058
|
Action["UPDATE"] = "Update";
|
|
41059
41059
|
Action["DELETE"] = "Delete";
|
|
41060
41060
|
Action["VERIFY"] = "Verify";
|
|
41061
|
-
|
|
41061
|
+
Action["FOLLOW"] = "Follow";
|
|
41062
|
+
Action["UNFOLLOW"] = "Unfollow";
|
|
41063
|
+
Action["SAVE"] = "Save";
|
|
41064
|
+
Action["UNSAVE"] = "Unsave";
|
|
41065
|
+
Action["REPOST"] = "Repost";
|
|
41066
|
+
Action["UNREPOST"] = "Unrepost";
|
|
41067
|
+
})(Action || (Action = {}));
|
|
41062
41068
|
|
|
41063
|
-
var EntityType
|
|
41069
|
+
var EntityType;
|
|
41064
41070
|
|
|
41065
41071
|
(function (EntityType) {
|
|
41066
41072
|
EntityType["PLAYLIST"] = "Playlist";
|
|
41067
41073
|
EntityType["TRACK"] = "Track";
|
|
41068
41074
|
EntityType["USER"] = "User";
|
|
41069
41075
|
EntityType["USER_REPLICA_SET"] = "UserReplicaSet";
|
|
41070
|
-
})(EntityType
|
|
41076
|
+
})(EntityType || (EntityType = {}));
|
|
41071
41077
|
/**
|
|
41072
41078
|
* Generic management of Audius Data entities
|
|
41073
41079
|
**/
|
|
@@ -41229,8 +41235,8 @@ var EntityManagerClient = /*#__PURE__*/function (_ContractClient) {
|
|
|
41229
41235
|
|
|
41230
41236
|
return EntityManagerClient;
|
|
41231
41237
|
}(ContractClient);
|
|
41232
|
-
EntityManagerClient.Action = Action
|
|
41233
|
-
EntityManagerClient.EntityType = EntityType
|
|
41238
|
+
EntityManagerClient.Action = Action;
|
|
41239
|
+
EntityManagerClient.EntityType = EntityType;
|
|
41234
41240
|
|
|
41235
41241
|
var abi = [
|
|
41236
41242
|
{
|
|
@@ -48902,34 +48908,12 @@ var ServiceProvider = /*#__PURE__*/function (_Base) {
|
|
|
48902
48908
|
return ServiceProvider;
|
|
48903
48909
|
}(Base);
|
|
48904
48910
|
|
|
48905
|
-
var Action;
|
|
48906
|
-
|
|
48907
|
-
(function (Action) {
|
|
48908
|
-
Action["CREATE"] = "Create";
|
|
48909
|
-
Action["UPDATE"] = "Update";
|
|
48910
|
-
Action["DELETE"] = "Delete";
|
|
48911
|
-
Action["FOLLOW"] = "Follow";
|
|
48912
|
-
Action["UNFOLLOW"] = "Unfollow";
|
|
48913
|
-
Action["SAVE"] = "Save";
|
|
48914
|
-
Action["UNSAVE"] = "Unsave";
|
|
48915
|
-
Action["REPOST"] = "Repost";
|
|
48916
|
-
Action["UNREPOST"] = "Unrepost";
|
|
48917
|
-
})(Action || (Action = {}));
|
|
48918
|
-
|
|
48919
|
-
var EntityType;
|
|
48920
|
-
|
|
48921
|
-
(function (EntityType) {
|
|
48922
|
-
EntityType["TRACK"] = "Track";
|
|
48923
|
-
EntityType["PLAYLIST"] = "Playlist";
|
|
48924
|
-
EntityType["USER"] = "User";
|
|
48925
|
-
})(EntityType || (EntityType = {}));
|
|
48926
48911
|
/*
|
|
48927
48912
|
API surface for updated data contract interactions.
|
|
48928
48913
|
Provides simplified entity management in a generic fashion
|
|
48929
48914
|
Handles metadata + file upload etc. for entities such as Playlist/Track/User
|
|
48930
48915
|
*/
|
|
48931
48916
|
|
|
48932
|
-
|
|
48933
48917
|
var EntityManager = /*#__PURE__*/function (_Base) {
|
|
48934
48918
|
_inherits(EntityManager, _Base);
|
|
48935
48919
|
|
|
@@ -48997,6 +48981,8 @@ var EntityManager = /*#__PURE__*/function (_Base) {
|
|
|
48997
48981
|
_this.unsavePlaylist = _this.createSocialMethod(EntityType.PLAYLIST, Action.UNSAVE);
|
|
48998
48982
|
_this.repostTrack = _this.createSocialMethod(EntityType.TRACK, Action.REPOST);
|
|
48999
48983
|
_this.unrepostTrack = _this.createSocialMethod(EntityType.TRACK, Action.UNREPOST);
|
|
48984
|
+
_this.repostPlaylist = _this.createSocialMethod(EntityType.PLAYLIST, Action.REPOST);
|
|
48985
|
+
_this.unrepostPlaylist = _this.createSocialMethod(EntityType.PLAYLIST, Action.UNREPOST);
|
|
49000
48986
|
return _this;
|
|
49001
48987
|
}
|
|
49002
48988
|
|