feat(playlists): reorder tracks

This commit is contained in:
2024-12-03 00:21:41 +01:00
parent 70c1d018ee
commit 793359b06e
5 changed files with 179 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { Library } from "./library";
import type { SwapTracksRequest } from "./library";
import type { RemoveTrackFromPlaylistRequest } from "./library";
import type { AddTrackToPlaylistRequest } from "./library";
import type { DeletePlaylistRequest } from "./library";
@@ -43,6 +44,10 @@ export interface ILibraryClient {
* @generated from protobuf rpc: RemoveTrackFromPlaylist(library.RemoveTrackFromPlaylistRequest) returns (google.protobuf.Empty);
*/
removeTrackFromPlaylist(input: RemoveTrackFromPlaylistRequest, options?: RpcOptions): UnaryCall<RemoveTrackFromPlaylistRequest, Empty>;
/**
* @generated from protobuf rpc: SwapTracks(library.SwapTracksRequest) returns (library.TrackList);
*/
swapTracks(input: SwapTracksRequest, options?: RpcOptions): UnaryCall<SwapTracksRequest, TrackList>;
}
/**
* @generated from protobuf service library.Library
@@ -95,4 +100,11 @@ export class LibraryClient implements ILibraryClient, ServiceInfo {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<RemoveTrackFromPlaylistRequest, Empty>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SwapTracks(library.SwapTracksRequest) returns (library.TrackList);
*/
swapTracks(input: SwapTracksRequest, options?: RpcOptions): UnaryCall<SwapTracksRequest, TrackList> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<SwapTracksRequest, TrackList>("unary", this._transport, method, opt, input);
}
}