A decentralized music tracking and discovery platform built on AT Protocol 🎵

Annotate xrpc handler params with QueryParams

+17 -17
+1 -1
apps/api/src/xrpc/app/rocksky/album/getAlbum.ts
··· 13 13 import type { SelectArtist } from "schema/artists"; 14 14 15 15 export default function (server: Server, ctx: Context) { 16 - const getAlbum = (params) => 16 + const getAlbum = (params: QueryParams) => 17 17 pipe( 18 18 { params, ctx }, 19 19 retrieve,
+1 -1
apps/api/src/xrpc/app/rocksky/album/getAlbumTracks.ts
··· 10 10 import tables from "schema"; 11 11 12 12 export default function (server: Server, ctx: Context) { 13 - const getAlbumTracks = (params) => 13 + const getAlbumTracks = (params: QueryParams) => 14 14 pipe( 15 15 { params, ctx }, 16 16 retrieve,
+1 -1
apps/api/src/xrpc/app/rocksky/album/getAlbums.ts
··· 7 7 import { deepCamelCaseKeys } from "lib"; 8 8 9 9 export default function (server: Server, ctx: Context) { 10 - const getAlbums = (params) => 10 + const getAlbums = (params: QueryParams) => 11 11 pipe( 12 12 { params, ctx }, 13 13 retrieve,
+1 -1
apps/api/src/xrpc/app/rocksky/artist/getArtist.ts
··· 9 9 import type { SelectArtist } from "schema/artists"; 10 10 11 11 export default function (server: Server, ctx: Context) { 12 - const getArtist = (params) => 12 + const getArtist = (params: QueryParams) => 13 13 pipe( 14 14 { params, ctx }, 15 15 retrieve,
+1 -1
apps/api/src/xrpc/app/rocksky/artist/getArtistAlbums.ts
··· 7 7 import { deepCamelCaseKeys } from "lib"; 8 8 9 9 export default function (server: Server, ctx: Context) { 10 - const getArtistAlbums = (params) => 10 + const getArtistAlbums = (params: QueryParams) => 11 11 pipe( 12 12 { params, ctx }, 13 13 retrieve,
+1 -1
apps/api/src/xrpc/app/rocksky/artist/getArtistListeners.ts
··· 6 6 import type { QueryParams } from "lexicon/types/app/rocksky/artist/getArtistListeners"; 7 7 8 8 export default function (server: Server, ctx: Context) { 9 - const getArtistListeners = (params) => 9 + const getArtistListeners = (params: QueryParams) => 10 10 pipe( 11 11 { params, ctx }, 12 12 retrieve,
+1 -1
apps/api/src/xrpc/app/rocksky/artist/getArtistTracks.ts
··· 7 7 import { deepCamelCaseKeys } from "lib"; 8 8 9 9 export default function (server: Server, ctx: Context) { 10 - const getArtistTracks = (params) => 10 + const getArtistTracks = (params: QueryParams) => 11 11 pipe( 12 12 { params, ctx }, 13 13 retrieve,
+1 -1
apps/api/src/xrpc/app/rocksky/artist/getArtists.ts
··· 9 9 import { inArray } from "drizzle-orm"; 10 10 11 11 export default function (server: Server, ctx: Context) { 12 - const getArtists = (params) => 12 + const getArtists = (params: QueryParams) => 13 13 pipe( 14 14 { params, ctx }, 15 15 retrieve,
+1 -1
apps/api/src/xrpc/app/rocksky/song/getSong.ts
··· 10 10 import type { SelectArtist } from "schema/artists"; 11 11 12 12 export default function (server: Server, ctx: Context) { 13 - const getSong = (params) => 13 + const getSong = (params: QueryParams) => 14 14 pipe( 15 15 { params, ctx }, 16 16 retrieve,
+1 -1
apps/api/src/xrpc/app/rocksky/song/getSongs.ts
··· 7 7 import { deepCamelCaseKeys } from "lib"; 8 8 9 9 export default function (server: Server, ctx: Context) { 10 - const getSongs = (params) => 10 + const getSongs = (params: QueryParams) => 11 11 pipe( 12 12 { params, ctx }, 13 13 retrieve,
+1 -1
apps/api/src/xrpc/app/rocksky/spotify/getCurrentlyPlaying.ts
··· 11 11 import type { SelectUser } from "schema/users"; 12 12 13 13 export default function (server: Server, ctx: Context) { 14 - const getCurrentlyPlaying = (params, auth: HandlerAuth) => 14 + const getCurrentlyPlaying = (params: QueryParams, auth: HandlerAuth) => 15 15 pipe( 16 16 { params, ctx, did: auth.credentials?.did }, 17 17 withUser,
+1 -1
apps/api/src/xrpc/app/rocksky/spotify/next.ts
··· 11 11 import type { SelectUser } from "schema/users"; 12 12 13 13 export default function (server: Server, ctx: Context) { 14 - const next = (params, auth: HandlerAuth) => 14 + const next = (params: QueryParams, auth: HandlerAuth) => 15 15 pipe( 16 16 { params, ctx, did: auth.credentials?.did }, 17 17 withUser,
+1 -1
apps/api/src/xrpc/app/rocksky/spotify/pause.ts
··· 11 11 import type { SelectUser } from "schema/users"; 12 12 13 13 export default function (server: Server, ctx: Context) { 14 - const pause = (params, auth: HandlerAuth) => 14 + const pause = (params: QueryParams, auth: HandlerAuth) => 15 15 pipe( 16 16 { params, ctx, did: auth.credentials?.did }, 17 17 withUser,
+1 -1
apps/api/src/xrpc/app/rocksky/spotify/play.ts
··· 11 11 import type { SelectUser } from "schema/users"; 12 12 13 13 export default function (server: Server, ctx: Context) { 14 - const play = (params, auth: HandlerAuth) => 14 + const play = (params: QueryParams, auth: HandlerAuth) => 15 15 pipe( 16 16 { params, ctx, did: auth.credentials?.did }, 17 17 withUser,
+1 -1
apps/api/src/xrpc/app/rocksky/spotify/previous.ts
··· 11 11 import type { SelectUser } from "schema/users"; 12 12 13 13 export default function (server: Server, ctx: Context) { 14 - const previous = (params, auth: HandlerAuth) => 14 + const previous = (params: QueryParams, auth: HandlerAuth) => 15 15 pipe( 16 16 { params, ctx, did: auth.credentials?.did }, 17 17 withUser,
+1 -1
apps/api/src/xrpc/app/rocksky/spotify/seek.ts
··· 11 11 import type { SelectUser } from "schema/users"; 12 12 13 13 export default function (server: Server, ctx: Context) { 14 - const seek = (params, auth: HandlerAuth) => 14 + const seek = (params: QueryParams, auth: HandlerAuth) => 15 15 pipe( 16 16 { params, ctx, did: auth.credentials?.did }, 17 17 withUser,
+1 -1
apps/api/src/xrpc/app/rocksky/stats/getStats.ts
··· 6 6 import { deepCamelCaseKeys } from "lib"; 7 7 8 8 export default function (server: Server, ctx: Context) { 9 - const getStats = (params) => 9 + const getStats = (params: QueryParams) => 10 10 pipe( 11 11 { params, ctx }, 12 12 retrieve,