@audius/sdk 1.0.36 → 1.0.37

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.
@@ -48,7 +48,7 @@ export declare class Account extends Base {
48
48
  * @param feePayerOverride an optional string in case the client wants to switch between fee payers
49
49
  * @param generateRecoveryLink an optional flag to skip generating recovery link for testing purposes
50
50
  */
51
- signUp(email: string, password: string, metadata: UserMetadata, profilePictureFile?: Nullable<File>, coverPhotoFile?: Nullable<File>, hasWallet?: boolean, host?: string | null, handleUserBankOutcomes?: (_outcome?: string | undefined, _errorCodes?: {} | undefined) => void, userBankOutcomes?: Partial<UserBankOutcomes>, feePayerOverride?: Nullable<string>, generateRecoveryLink?: boolean, useEntityManager?: boolean): Promise<{
51
+ signUp(email: string, password: string, metadata: UserMetadata, profilePictureFile?: Nullable<File>, coverPhotoFile?: Nullable<File>, hasWallet?: boolean, host?: string | null, handleUserBankOutcomes?: (_outcome?: string | undefined, _errorCodes?: {} | undefined) => void, userBankOutcomes?: Partial<UserBankOutcomes>, feePayerOverride?: Nullable<string>, generateRecoveryLink?: boolean): Promise<{
52
52
  error: any;
53
53
  phase: string;
54
54
  errorStatus: any;
@@ -56,9 +56,9 @@ export declare class Account extends Base {
56
56
  blockNumber?: undefined;
57
57
  userId?: undefined;
58
58
  } | {
59
- blockHash: string | undefined;
60
- blockNumber: number | undefined;
61
- userId: number | undefined;
59
+ blockHash: undefined;
60
+ blockNumber: undefined;
61
+ userId: undefined;
62
62
  error?: undefined;
63
63
  phase?: undefined;
64
64
  errorStatus?: undefined;
@@ -164,7 +164,7 @@ export declare class Track extends Base {
164
164
  * @param metadata json of the track metadata with all fields, missing fields will error
165
165
  * @param onProgress callback fired with (loaded, total) on byte upload progress
166
166
  */
167
- uploadTrack(trackFile: File, coverArtFile: File, metadata: TrackMetadata, onProgress: () => void, useEntityManager: boolean): Promise<{
167
+ uploadTrack(trackFile: File, coverArtFile: File, metadata: TrackMetadata, onProgress: () => void): Promise<{
168
168
  error: string;
169
169
  phase: string;
170
170
  blockHash?: undefined;
@@ -196,7 +196,7 @@ export declare class Track extends Base {
196
196
  * Adds tracks to chain for this user
197
197
  * Associates tracks with user on creatorNode
198
198
  */
199
- addTracksToChainAndCnode(trackMultihashAndUUIDList: ChainInfo[], useEntityManager: boolean): Promise<{
199
+ addTracksToChainAndCnode(trackMultihashAndUUIDList: ChainInfo[]): Promise<{
200
200
  error: boolean;
201
201
  trackIds: number[];
202
202
  }>;
@@ -205,7 +205,7 @@ export declare class Track extends Base {
205
205
  * such as track content, cover art are already on creator node.
206
206
  * @param metadata json of the track metadata with all fields, missing fields will error
207
207
  */
208
- updateTrack(metadata: TrackMetadata, useEntityManager: boolean): Promise<{
208
+ updateTrack(metadata: TrackMetadata): Promise<{
209
209
  blockHash: string;
210
210
  blockNumber: number;
211
211
  trackId: number;
@@ -239,7 +239,7 @@ export declare class Track extends Base {
239
239
  * Marks a tracks as deleted
240
240
  * @param trackId
241
241
  */
242
- deleteTrack(trackId: number, useEntityManager: boolean): Promise<{
242
+ deleteTrack(trackId: number): Promise<{
243
243
  txReceipt: TransactionReceipt;
244
244
  }>;
245
245
  _validateTrackMetadata(metadata: TrackMetadata): void;
@@ -165,7 +165,7 @@ export declare class Users extends Base {
165
165
  * @param metadata to update
166
166
  * @returns the passed in metadata object with profile_picture_sizes and cover_photo_sizes fields added
167
167
  */
168
- uploadProfileImages(profilePictureFile: File, coverPhotoFile: File, metadata: UserMetadata, useEntityManager: boolean): Promise<UserMetadata>;
168
+ uploadProfileImages(profilePictureFile: File, coverPhotoFile: File, metadata: UserMetadata): Promise<UserMetadata>;
169
169
  createEntityManagerUser({ metadata }: {
170
170
  metadata: UserMetadata;
171
171
  }): Promise<Pick<UserMetadata, keyof UserMetadata>>;
@@ -199,7 +199,7 @@ export declare class Users extends Base {
199
199
  /**
200
200
  * Updates a creator (updates their data on the creator node)
201
201
  */
202
- updateCreator(userId: number, metadata: UserMetadata, useEntityManager?: boolean): Promise<{
202
+ updateCreator(userId: number, metadata: UserMetadata): Promise<{
203
203
  blockHash: string;
204
204
  blockNumber: number;
205
205
  userId: number;
@@ -207,7 +207,7 @@ export declare class Users extends Base {
207
207
  /**
208
208
  * Updates a user on whether they are verified on Audius
209
209
  */
210
- updateIsVerified(userId: number, isVerified: boolean, privateKey: string, useEntityManager?: boolean): Promise<any[]>;
210
+ updateIsVerified(userId: number, privateKey: string): Promise<[string, string]>;
211
211
  /**
212
212
  * Adds a user follow for a given follower and followee
213
213
  */
@@ -244,10 +244,9 @@ export declare class Users extends Base {
244
244
  * 1. Uploads metadata to primary Content Node (which inherently calls a sync accross secondaries)
245
245
  * 2. Updates metadata on chain
246
246
  */
247
- updateAndUploadMetadata({ newMetadata, userId, useEntityManager }: {
247
+ updateAndUploadMetadata({ newMetadata, userId }: {
248
248
  newMetadata: UserMetadata;
249
249
  userId: number;
250
- useEntityManager?: boolean;
251
250
  }): Promise<void>;
252
251
  /**
253
252
  * If a user's creator_node_endpoint is null, assign a replica set.