Skip to content

Commit aacc0cd

Browse files
committed
fix: compilation
1 parent ae4e36a commit aacc0cd

File tree

3 files changed

+113
-12
lines changed

3 files changed

+113
-12
lines changed

lib/spotify/api.d.ts

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ export declare const getApi: (spotifyAuthServer: string, token: string, refreshT
162162
};
163163
};
164164
playlists: {
165-
get: () => Promise<{
165+
get: (options?: {
166+
fields?: string | undefined;
167+
limit?: number | undefined;
168+
offset?: number | undefined;
169+
} | undefined) => Promise<{
166170
items: {
167171
"collaborative": boolean;
168172
"external_urls": {
@@ -196,7 +200,41 @@ export declare const getApi: (spotifyAuthServer: string, token: string, refreshT
196200
"type": string;
197201
"uri": string;
198202
}[];
203+
total: number;
199204
}>;
205+
getAll(): Promise<{
206+
"collaborative": boolean;
207+
"external_urls": {
208+
"spotify": string;
209+
};
210+
"href": string;
211+
"id": string;
212+
"images": {
213+
"height": number;
214+
"url": string;
215+
"width": number;
216+
}[];
217+
"name": string;
218+
"owner": {
219+
"display_name": string;
220+
"external_urls": {
221+
"spotify": string;
222+
};
223+
"href": string;
224+
"id": string;
225+
"type": string;
226+
"uri": string;
227+
};
228+
"primary_color": null;
229+
"public": boolean;
230+
"snapshot_id": string;
231+
"tracks": {
232+
"href": string;
233+
"total": number;
234+
};
235+
"type": string;
236+
"uri": string;
237+
}[]>;
200238
tracks: {
201239
get: (playlist: {
202240
"collaborative": boolean;
@@ -470,7 +508,11 @@ declare const tempAPI: {
470508
};
471509
};
472510
playlists: {
473-
get: () => Promise<{
511+
get: (options?: {
512+
fields?: string | undefined;
513+
limit?: number | undefined;
514+
offset?: number | undefined;
515+
} | undefined) => Promise<{
474516
items: {
475517
"collaborative": boolean;
476518
"external_urls": {
@@ -504,7 +546,41 @@ declare const tempAPI: {
504546
"type": string;
505547
"uri": string;
506548
}[];
549+
total: number;
507550
}>;
551+
getAll(): Promise<{
552+
"collaborative": boolean;
553+
"external_urls": {
554+
"spotify": string;
555+
};
556+
"href": string;
557+
"id": string;
558+
"images": {
559+
"height": number;
560+
"url": string;
561+
"width": number;
562+
}[];
563+
"name": string;
564+
"owner": {
565+
"display_name": string;
566+
"external_urls": {
567+
"spotify": string;
568+
};
569+
"href": string;
570+
"id": string;
571+
"type": string;
572+
"uri": string;
573+
};
574+
"primary_color": null;
575+
"public": boolean;
576+
"snapshot_id": string;
577+
"tracks": {
578+
"href": string;
579+
"total": number;
580+
};
581+
"type": string;
582+
"uri": string;
583+
}[]>;
508584
tracks: {
509585
get: (playlist: {
510586
"collaborative": boolean;

lib/spotify/api.js

Lines changed: 34 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/spotify/api.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)