@ansango/lastfm-api 3.1.3
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/CHANGELOG.md +323 -0
- package/LICENSE +21 -0
- package/README.md +470 -0
- package/dist/__tests__/utils.test.d.ts +2 -0
- package/dist/__tests__/utils.test.d.ts.map +1 -0
- package/dist/__tests__/utils.test.js +86 -0
- package/dist/__tests__/utils.test.js.map +1 -0
- package/dist/client.d.ts +52 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +68 -0
- package/dist/client.js.map +1 -0
- package/dist/config.d.ts +23 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +59 -0
- package/dist/config.js.map +1 -0
- package/dist/entrypoints/album.d.ts +4 -0
- package/dist/entrypoints/album.d.ts.map +1 -0
- package/dist/entrypoints/album.js +3 -0
- package/dist/entrypoints/album.js.map +1 -0
- package/dist/entrypoints/album.schemas.d.ts +2 -0
- package/dist/entrypoints/album.schemas.d.ts.map +1 -0
- package/dist/entrypoints/album.schemas.js +3 -0
- package/dist/entrypoints/album.schemas.js.map +1 -0
- package/dist/entrypoints/artist.d.ts +4 -0
- package/dist/entrypoints/artist.d.ts.map +1 -0
- package/dist/entrypoints/artist.js +3 -0
- package/dist/entrypoints/artist.js.map +1 -0
- package/dist/entrypoints/artist.schemas.d.ts +2 -0
- package/dist/entrypoints/artist.schemas.d.ts.map +1 -0
- package/dist/entrypoints/artist.schemas.js +3 -0
- package/dist/entrypoints/artist.schemas.js.map +1 -0
- package/dist/entrypoints/auth.d.ts +4 -0
- package/dist/entrypoints/auth.d.ts.map +1 -0
- package/dist/entrypoints/auth.js +3 -0
- package/dist/entrypoints/auth.js.map +1 -0
- package/dist/entrypoints/auth.schemas.d.ts +2 -0
- package/dist/entrypoints/auth.schemas.d.ts.map +1 -0
- package/dist/entrypoints/auth.schemas.js +3 -0
- package/dist/entrypoints/auth.schemas.js.map +1 -0
- package/dist/entrypoints/base.schemas.d.ts +2 -0
- package/dist/entrypoints/base.schemas.d.ts.map +1 -0
- package/dist/entrypoints/base.schemas.js +3 -0
- package/dist/entrypoints/base.schemas.js.map +1 -0
- package/dist/entrypoints/chart.d.ts +4 -0
- package/dist/entrypoints/chart.d.ts.map +1 -0
- package/dist/entrypoints/chart.js +3 -0
- package/dist/entrypoints/chart.js.map +1 -0
- package/dist/entrypoints/chart.schemas.d.ts +2 -0
- package/dist/entrypoints/chart.schemas.d.ts.map +1 -0
- package/dist/entrypoints/chart.schemas.js +3 -0
- package/dist/entrypoints/chart.schemas.js.map +1 -0
- package/dist/entrypoints/geo.d.ts +4 -0
- package/dist/entrypoints/geo.d.ts.map +1 -0
- package/dist/entrypoints/geo.js +3 -0
- package/dist/entrypoints/geo.js.map +1 -0
- package/dist/entrypoints/geo.schemas.d.ts +2 -0
- package/dist/entrypoints/geo.schemas.d.ts.map +1 -0
- package/dist/entrypoints/geo.schemas.js +3 -0
- package/dist/entrypoints/geo.schemas.js.map +1 -0
- package/dist/entrypoints/library.d.ts +4 -0
- package/dist/entrypoints/library.d.ts.map +1 -0
- package/dist/entrypoints/library.js +3 -0
- package/dist/entrypoints/library.js.map +1 -0
- package/dist/entrypoints/library.schemas.d.ts +2 -0
- package/dist/entrypoints/library.schemas.d.ts.map +1 -0
- package/dist/entrypoints/library.schemas.js +3 -0
- package/dist/entrypoints/library.schemas.js.map +1 -0
- package/dist/entrypoints/tag.d.ts +4 -0
- package/dist/entrypoints/tag.d.ts.map +1 -0
- package/dist/entrypoints/tag.js +3 -0
- package/dist/entrypoints/tag.js.map +1 -0
- package/dist/entrypoints/tag.schemas.d.ts +2 -0
- package/dist/entrypoints/tag.schemas.d.ts.map +1 -0
- package/dist/entrypoints/tag.schemas.js +3 -0
- package/dist/entrypoints/tag.schemas.js.map +1 -0
- package/dist/entrypoints/track.d.ts +4 -0
- package/dist/entrypoints/track.d.ts.map +1 -0
- package/dist/entrypoints/track.js +3 -0
- package/dist/entrypoints/track.js.map +1 -0
- package/dist/entrypoints/track.schemas.d.ts +2 -0
- package/dist/entrypoints/track.schemas.d.ts.map +1 -0
- package/dist/entrypoints/track.schemas.js +3 -0
- package/dist/entrypoints/track.schemas.js.map +1 -0
- package/dist/entrypoints/user.d.ts +4 -0
- package/dist/entrypoints/user.d.ts.map +1 -0
- package/dist/entrypoints/user.js +3 -0
- package/dist/entrypoints/user.js.map +1 -0
- package/dist/entrypoints/user.schemas.d.ts +2 -0
- package/dist/entrypoints/user.schemas.d.ts.map +1 -0
- package/dist/entrypoints/user.schemas.js +3 -0
- package/dist/entrypoints/user.schemas.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/services/album.d.ts +38 -0
- package/dist/services/album.d.ts.map +1 -0
- package/dist/services/album.js +10 -0
- package/dist/services/album.js.map +1 -0
- package/dist/services/album.schemas.d.ts +171 -0
- package/dist/services/album.schemas.d.ts.map +1 -0
- package/dist/services/album.schemas.js +128 -0
- package/dist/services/album.schemas.js.map +1 -0
- package/dist/services/artist.d.ts +62 -0
- package/dist/services/artist.d.ts.map +1 -0
- package/dist/services/artist.js +13 -0
- package/dist/services/artist.js.map +1 -0
- package/dist/services/artist.schemas.d.ts +306 -0
- package/dist/services/artist.schemas.d.ts.map +1 -0
- package/dist/services/artist.schemas.js +199 -0
- package/dist/services/artist.schemas.js.map +1 -0
- package/dist/services/auth.d.ts +14 -0
- package/dist/services/auth.d.ts.map +1 -0
- package/dist/services/auth.js +7 -0
- package/dist/services/auth.js.map +1 -0
- package/dist/services/auth.schemas.d.ts +20 -0
- package/dist/services/auth.schemas.d.ts.map +1 -0
- package/dist/services/auth.schemas.js +16 -0
- package/dist/services/auth.schemas.js.map +1 -0
- package/dist/services/chart.d.ts +30 -0
- package/dist/services/chart.d.ts.map +1 -0
- package/dist/services/chart.js +9 -0
- package/dist/services/chart.js.map +1 -0
- package/dist/services/chart.schemas.d.ts +84 -0
- package/dist/services/chart.schemas.d.ts.map +1 -0
- package/dist/services/chart.schemas.js +73 -0
- package/dist/services/chart.schemas.js.map +1 -0
- package/dist/services/geo.d.ts +22 -0
- package/dist/services/geo.d.ts.map +1 -0
- package/dist/services/geo.js +8 -0
- package/dist/services/geo.js.map +1 -0
- package/dist/services/geo.schemas.d.ts +68 -0
- package/dist/services/geo.schemas.d.ts.map +1 -0
- package/dist/services/geo.schemas.js +59 -0
- package/dist/services/geo.schemas.js.map +1 -0
- package/dist/services/index.d.ts +20 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +21 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/library.d.ts +14 -0
- package/dist/services/library.d.ts.map +1 -0
- package/dist/services/library.js +7 -0
- package/dist/services/library.js.map +1 -0
- package/dist/services/library.schemas.d.ts +31 -0
- package/dist/services/library.schemas.d.ts.map +1 -0
- package/dist/services/library.schemas.js +27 -0
- package/dist/services/library.schemas.js.map +1 -0
- package/dist/services/schemas/base.entities.schemas.d.ts +12 -0
- package/dist/services/schemas/base.entities.schemas.d.ts.map +1 -0
- package/dist/services/schemas/base.entities.schemas.js +18 -0
- package/dist/services/schemas/base.entities.schemas.js.map +1 -0
- package/dist/services/schemas/base.entity-names.schemas.d.ts +12 -0
- package/dist/services/schemas/base.entity-names.schemas.d.ts.map +1 -0
- package/dist/services/schemas/base.entity-names.schemas.js +8 -0
- package/dist/services/schemas/base.entity-names.schemas.js.map +1 -0
- package/dist/services/schemas/base.metadata.schemas.d.ts +26 -0
- package/dist/services/schemas/base.metadata.schemas.d.ts.map +1 -0
- package/dist/services/schemas/base.metadata.schemas.js +17 -0
- package/dist/services/schemas/base.metadata.schemas.js.map +1 -0
- package/dist/services/schemas/base.pagination.schemas.d.ts +18 -0
- package/dist/services/schemas/base.pagination.schemas.d.ts.map +1 -0
- package/dist/services/schemas/base.pagination.schemas.js +12 -0
- package/dist/services/schemas/base.pagination.schemas.js.map +1 -0
- package/dist/services/schemas/base.primitives.schemas.d.ts +50 -0
- package/dist/services/schemas/base.primitives.schemas.d.ts.map +1 -0
- package/dist/services/schemas/base.primitives.schemas.js +36 -0
- package/dist/services/schemas/base.primitives.schemas.js.map +1 -0
- package/dist/services/schemas/index.d.ts +6 -0
- package/dist/services/schemas/index.d.ts.map +1 -0
- package/dist/services/schemas/index.js +7 -0
- package/dist/services/schemas/index.js.map +1 -0
- package/dist/services/tag.d.ts +62 -0
- package/dist/services/tag.d.ts.map +1 -0
- package/dist/services/tag.js +13 -0
- package/dist/services/tag.js.map +1 -0
- package/dist/services/tag.schemas.d.ts +192 -0
- package/dist/services/tag.schemas.d.ts.map +1 -0
- package/dist/services/tag.schemas.js +156 -0
- package/dist/services/tag.schemas.js.map +1 -0
- package/dist/services/track.d.ts +74 -0
- package/dist/services/track.d.ts.map +1 -0
- package/dist/services/track.js +25 -0
- package/dist/services/track.js.map +1 -0
- package/dist/services/track.schemas.d.ts +284 -0
- package/dist/services/track.schemas.d.ts.map +1 -0
- package/dist/services/track.schemas.js +191 -0
- package/dist/services/track.schemas.js.map +1 -0
- package/dist/services/track.utils.d.ts +10 -0
- package/dist/services/track.utils.d.ts.map +1 -0
- package/dist/services/track.utils.js +56 -0
- package/dist/services/track.utils.js.map +1 -0
- package/dist/services/user.d.ts +102 -0
- package/dist/services/user.d.ts.map +1 -0
- package/dist/services/user.js +18 -0
- package/dist/services/user.js.map +1 -0
- package/dist/services/user.schemas.d.ts +609 -0
- package/dist/services/user.schemas.d.ts.map +1 -0
- package/dist/services/user.schemas.js +321 -0
- package/dist/services/user.schemas.js.map +1 -0
- package/dist/utils.d.ts +39 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +125 -0
- package/dist/utils.js.map +1 -0
- package/package.json +156 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const totalPagesSchema: z.ZodString;
|
|
3
|
+
export declare const totalSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
4
|
+
export declare const pageSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
5
|
+
export declare const countSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
6
|
+
export declare const limitSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
7
|
+
export declare const totalResultsSchema: z.ZodString;
|
|
8
|
+
export declare const startIndexSchema: z.ZodString;
|
|
9
|
+
export declare const itemsPerPageSchema: z.ZodString;
|
|
10
|
+
export type TotalPages = z.infer<typeof totalPagesSchema>;
|
|
11
|
+
export type Total = z.infer<typeof totalSchema>;
|
|
12
|
+
export type Page = z.infer<typeof pageSchema>;
|
|
13
|
+
export type Count = z.infer<typeof countSchema>;
|
|
14
|
+
export type Limit = z.infer<typeof limitSchema>;
|
|
15
|
+
export type TotalResults = z.infer<typeof totalResultsSchema>;
|
|
16
|
+
export type StartIndex = z.infer<typeof startIndexSchema>;
|
|
17
|
+
export type ItemsPerPage = z.infer<typeof itemsPerPageSchema>;
|
|
18
|
+
//# sourceMappingURL=base.pagination.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.pagination.schemas.d.ts","sourceRoot":"","sources":["../../../src/services/schemas/base.pagination.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAC3C,eAAO,MAAM,WAAW,iDAAoC,CAAC;AAC7D,eAAO,MAAM,UAAU,iDAAoC,CAAC;AAC5D,eAAO,MAAM,WAAW,iDAAoC,CAAC;AAC7D,eAAO,MAAM,WAAW,iDAAoC,CAAC;AAG7D,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAC7C,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAC3C,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAG7C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// Standard pagination
|
|
3
|
+
export const totalPagesSchema = z.string();
|
|
4
|
+
export const totalSchema = z.union([z.string(), z.number()]);
|
|
5
|
+
export const pageSchema = z.union([z.string(), z.number()]);
|
|
6
|
+
export const countSchema = z.union([z.string(), z.number()]);
|
|
7
|
+
export const limitSchema = z.union([z.string(), z.number()]);
|
|
8
|
+
// OpenSearch pagination
|
|
9
|
+
export const totalResultsSchema = z.string();
|
|
10
|
+
export const startIndexSchema = z.string();
|
|
11
|
+
export const itemsPerPageSchema = z.string();
|
|
12
|
+
//# sourceMappingURL=base.pagination.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.pagination.schemas.js","sourceRoot":"","sources":["../../../src/services/schemas/base.pagination.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,sBAAsB;AACtB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAC3C,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAE7D,wBAAwB;AACxB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAC7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAC3C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const nameSchema: z.ZodString;
|
|
3
|
+
export declare const mbidSchema: z.ZodString;
|
|
4
|
+
export declare const urlSchema: z.ZodString;
|
|
5
|
+
export declare const playcountSchema: z.ZodString;
|
|
6
|
+
export declare const durationSchema: z.ZodString;
|
|
7
|
+
export declare const listenersSchema: z.ZodString;
|
|
8
|
+
export declare const positionSchema: z.ZodString;
|
|
9
|
+
export declare const publishedSchema: z.ZodString;
|
|
10
|
+
export declare const summarySchema: z.ZodString;
|
|
11
|
+
export declare const contentSchema: z.ZodString;
|
|
12
|
+
export declare const textSchema: z.ZodString;
|
|
13
|
+
export declare const utsSchema: z.ZodString;
|
|
14
|
+
export declare const langSchema: z.ZodString;
|
|
15
|
+
export declare const matchSchema: z.ZodString;
|
|
16
|
+
export declare const roleSchema: z.ZodString;
|
|
17
|
+
export declare const searchTermsSchema: z.ZodString;
|
|
18
|
+
export declare const startPageSchema: z.ZodString;
|
|
19
|
+
export declare const fromSchema: z.ZodString;
|
|
20
|
+
export declare const toSchema: z.ZodString;
|
|
21
|
+
export declare const forSchema: z.ZodString;
|
|
22
|
+
export declare const locSchema: z.ZodString;
|
|
23
|
+
export declare const unixtimeSchema: z.ZodNumber;
|
|
24
|
+
export declare const reachSchema: z.ZodNumber;
|
|
25
|
+
export declare const periodSchema: z.ZodUnion<readonly [z.ZodLiteral<"overall">, z.ZodLiteral<"7day">, z.ZodLiteral<"1month">, z.ZodLiteral<"3month">, z.ZodLiteral<"6month">, z.ZodLiteral<"12month">]>;
|
|
26
|
+
export type Name = z.infer<typeof nameSchema>;
|
|
27
|
+
export type Mbid = z.infer<typeof mbidSchema>;
|
|
28
|
+
export type Url = z.infer<typeof urlSchema>;
|
|
29
|
+
export type Playcount = z.infer<typeof playcountSchema>;
|
|
30
|
+
export type Duration = z.infer<typeof durationSchema>;
|
|
31
|
+
export type Listeners = z.infer<typeof listenersSchema>;
|
|
32
|
+
export type Position = z.infer<typeof positionSchema>;
|
|
33
|
+
export type Published = z.infer<typeof publishedSchema>;
|
|
34
|
+
export type Summary = z.infer<typeof summarySchema>;
|
|
35
|
+
export type Content = z.infer<typeof contentSchema>;
|
|
36
|
+
export type Text = z.infer<typeof textSchema>;
|
|
37
|
+
export type Uts = z.infer<typeof utsSchema>;
|
|
38
|
+
export type Lang = z.infer<typeof langSchema>;
|
|
39
|
+
export type Match = z.infer<typeof matchSchema>;
|
|
40
|
+
export type Role = z.infer<typeof roleSchema>;
|
|
41
|
+
export type SearchTerms = z.infer<typeof searchTermsSchema>;
|
|
42
|
+
export type StartPage = z.infer<typeof startPageSchema>;
|
|
43
|
+
export type From = z.infer<typeof fromSchema>;
|
|
44
|
+
export type To = z.infer<typeof toSchema>;
|
|
45
|
+
export type For = z.infer<typeof forSchema>;
|
|
46
|
+
export type Loc = z.infer<typeof locSchema>;
|
|
47
|
+
export type Unixtime = z.infer<typeof unixtimeSchema>;
|
|
48
|
+
export type Reach = z.infer<typeof reachSchema>;
|
|
49
|
+
export type Period = z.infer<typeof periodSchema>;
|
|
50
|
+
//# sourceMappingURL=base.primitives.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.primitives.schemas.d.ts","sourceRoot":"","sources":["../../../src/services/schemas/base.primitives.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,UAAU,aAAa,CAAC;AACrC,eAAO,MAAM,UAAU,aAAa,CAAC;AACrC,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,aAAa,aAAa,CAAC;AACxC,eAAO,MAAM,aAAa,aAAa,CAAC;AACxC,eAAO,MAAM,UAAU,aAAa,CAAC;AACrC,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,UAAU,aAAa,CAAC;AACrC,eAAO,MAAM,WAAW,aAAa,CAAC;AACtC,eAAO,MAAM,UAAU,aAAa,CAAC;AACrC,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,UAAU,aAAa,CAAC;AACrC,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,SA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;AAChD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC1C,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAC5C,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAC5C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// String primitives
|
|
3
|
+
export const nameSchema = z.string();
|
|
4
|
+
export const mbidSchema = z.string();
|
|
5
|
+
export const urlSchema = z.string();
|
|
6
|
+
export const playcountSchema = z.string();
|
|
7
|
+
export const durationSchema = z.string();
|
|
8
|
+
export const listenersSchema = z.string();
|
|
9
|
+
export const positionSchema = z.string();
|
|
10
|
+
export const publishedSchema = z.string();
|
|
11
|
+
export const summarySchema = z.string();
|
|
12
|
+
export const contentSchema = z.string();
|
|
13
|
+
export const textSchema = z.string();
|
|
14
|
+
export const utsSchema = z.string();
|
|
15
|
+
export const langSchema = z.string();
|
|
16
|
+
export const matchSchema = z.string();
|
|
17
|
+
export const roleSchema = z.string();
|
|
18
|
+
export const searchTermsSchema = z.string();
|
|
19
|
+
export const startPageSchema = z.string();
|
|
20
|
+
export const fromSchema = z.string();
|
|
21
|
+
export const toSchema = z.string();
|
|
22
|
+
export const forSchema = z.string();
|
|
23
|
+
export const locSchema = z.string();
|
|
24
|
+
// Number primitives
|
|
25
|
+
export const unixtimeSchema = z.number();
|
|
26
|
+
export const reachSchema = z.number();
|
|
27
|
+
// Enum types
|
|
28
|
+
export const periodSchema = z.union([
|
|
29
|
+
z.literal("overall"),
|
|
30
|
+
z.literal("7day"),
|
|
31
|
+
z.literal("1month"),
|
|
32
|
+
z.literal("3month"),
|
|
33
|
+
z.literal("6month"),
|
|
34
|
+
z.literal("12month"),
|
|
35
|
+
]);
|
|
36
|
+
//# sourceMappingURL=base.primitives.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.primitives.schemas.js","sourceRoot":"","sources":["../../../src/services/schemas/base.primitives.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAoB;AACpB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACpC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAC1C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACzC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAC1C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AACzC,MAAM,CAAC,MAAM,eAAe,GAA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C,QAAQ,CAAC;IACnB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACnB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACnB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./base.primitives.schemas.js";
|
|
2
|
+
export * from "./base.entity-names.schemas.js";
|
|
3
|
+
export * from "./base.metadata.schemas.js";
|
|
4
|
+
export * from "./base.pagination.schemas.js";
|
|
5
|
+
export * from "./base.entities.schemas.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/schemas/index.ts"],"names":[],"mappings":"AAEA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Re-export all base schemas and types for easy imports
|
|
2
|
+
export * from "./base.primitives.schemas.js";
|
|
3
|
+
export * from "./base.entity-names.schemas.js";
|
|
4
|
+
export * from "./base.metadata.schemas.js";
|
|
5
|
+
export * from "./base.pagination.schemas.js";
|
|
6
|
+
export * from "./base.entities.schemas.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/schemas/index.ts"],"names":[],"mappings":"AAAA,wDAAwD;AAExD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { TagGetInfoRequest, TagGetInfoResponse, TagGetSimilarRequest, TagGetSimilarResponse, TagGetTopAlbumsRequest, TagGetTopAlbumsResponse, TagGetTopArtistsRequest, TagGetTopArtistsResponse, TagGetTopTagsRequest, TagGetTopTagsResponse, TagGetTopTracksRequest, TagGetTopTracksResponse, TagGetWeeklyChartListRequest, TagGetWeeklyChartListResponse } from './tag.schemas.js';
|
|
2
|
+
import type { LastFmConfig } from '../config.js';
|
|
3
|
+
export interface TagService {
|
|
4
|
+
/**
|
|
5
|
+
* Get the metadata for a tag on Last.fm. Includes biography.
|
|
6
|
+
* @param {TagGetInfoRequest} params
|
|
7
|
+
* @param {RequestInit} init
|
|
8
|
+
* @returns {Promise<TagGetInfoResponse>}
|
|
9
|
+
* https://www.last.fm/api/show/tag.getInfo
|
|
10
|
+
* */
|
|
11
|
+
getInfo: (params: TagGetInfoRequest, init?: RequestInit) => Promise<TagGetInfoResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Get the similar tags for this tag, based on listening data.
|
|
14
|
+
* @param {TagGetSimilarRequest} params
|
|
15
|
+
* @param {RequestInit} init
|
|
16
|
+
* @returns {Promise<TagGetSimilarResponse>}
|
|
17
|
+
* https://www.last.fm/api/show/tag.getSimilar
|
|
18
|
+
* */
|
|
19
|
+
getSimilar: (params: TagGetSimilarRequest, init?: RequestInit) => Promise<TagGetSimilarResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Get the top albums tagged by this tag, ordered by tag count.
|
|
22
|
+
* @param {TagGetTopAlbumsRequest} params
|
|
23
|
+
* @param {RequestInit} init
|
|
24
|
+
* @returns {Promise<TagGetTopAlbumsResponse>}
|
|
25
|
+
* https://www.last.fm/api/show/tag.getTopAlbums
|
|
26
|
+
* */
|
|
27
|
+
getTopAlbums: (params: TagGetTopAlbumsRequest, init?: RequestInit) => Promise<TagGetTopAlbumsResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Get the top artists tagged by this tag, ordered by tag count.
|
|
30
|
+
* @param {TagGetTopArtistsRequest} params
|
|
31
|
+
* @param {RequestInit} init
|
|
32
|
+
* @returns {Promise<TagGetTopArtistsResponse>}
|
|
33
|
+
* https://www.last.fm/api/show/tag.getTopArtists
|
|
34
|
+
* */
|
|
35
|
+
getTopArtists: (params: TagGetTopArtistsRequest, init?: RequestInit) => Promise<TagGetTopArtistsResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Get the top tags on Last.fm, ordered by tag count.
|
|
38
|
+
* @param {TagGetTopTagsRequest} params
|
|
39
|
+
* @param {RequestInit} init
|
|
40
|
+
* @returns {Promise<TagGetTopTagsResponse>}
|
|
41
|
+
* https://www.last.fm/api/show/tag.getTopTags
|
|
42
|
+
* */
|
|
43
|
+
getTopTags: (params: TagGetTopTagsRequest, init?: RequestInit) => Promise<TagGetTopTagsResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Get the top tracks tagged by this tag, ordered by tag count.
|
|
46
|
+
* @param {TagGetTopTracksRequest} params
|
|
47
|
+
* @param {RequestInit} init
|
|
48
|
+
* @returns {Promise<TagGetTopTracksResponse>}
|
|
49
|
+
* https://www.last.fm/api/show/tag.getTopTracks
|
|
50
|
+
* */
|
|
51
|
+
getTopTracks: (params: TagGetTopTracksRequest, init?: RequestInit) => Promise<TagGetTopTracksResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Get a list of available charts for this tag, expressed as date ranges which can be sent to the chart services.
|
|
54
|
+
* @param {TagGetWeeklyChartListRequest} params
|
|
55
|
+
* @param {RequestInit} init
|
|
56
|
+
* @returns {Promise<TagGetWeeklyChartListResponse>}
|
|
57
|
+
* https://www.last.fm/api/show/tag.getWeeklyChartList
|
|
58
|
+
* */
|
|
59
|
+
getWeeklyChartList: (params: TagGetWeeklyChartListRequest, init?: RequestInit) => Promise<TagGetWeeklyChartListResponse>;
|
|
60
|
+
}
|
|
61
|
+
export declare function createTagService(config: LastFmConfig): TagService;
|
|
62
|
+
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d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AAC,EAAE,WAAW,KACd,OAAO,CAAC,6BAA6B,CAAC,CAAC;CAC5C;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,UAAU,CAiBjE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { fetcher, buildUrl } from '../utils.js';
|
|
2
|
+
export function createTagService(config) {
|
|
3
|
+
return {
|
|
4
|
+
getInfo: (params, init) => fetcher(buildUrl(config, 'tag.getInfo', params), init),
|
|
5
|
+
getSimilar: (params, init) => fetcher(buildUrl(config, 'tag.getSimilar', params), init),
|
|
6
|
+
getTopAlbums: (params, init) => fetcher(buildUrl(config, 'tag.getTopAlbums', params), init),
|
|
7
|
+
getTopArtists: (params, init) => fetcher(buildUrl(config, 'tag.getTopArtists', params), init),
|
|
8
|
+
getTopTags: (params, init) => fetcher(buildUrl(config, 'tag.getTopTags', params), init),
|
|
9
|
+
getTopTracks: (params, init) => fetcher(buildUrl(config, 'tag.getTopTracks', params), init),
|
|
10
|
+
getWeeklyChartList: (params, init) => fetcher(buildUrl(config, 'tag.getWeeklyChartList', params), init)
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../src/services/tag.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA0EhD,MAAM,UAAU,gBAAgB,CAAC,MAAoB;IACpD,OAAO;QACN,OAAO,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CACzB,OAAO,CAAqB,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;QAC3E,UAAU,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAC5B,OAAO,CAAwB,QAAQ,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;QACjF,YAAY,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAC9B,OAAO,CAA0B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;QACrF,aAAa,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAC/B,OAAO,CAA2B,QAAQ,CAAC,MAAM,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;QACvF,UAAU,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAC5B,OAAO,CAAwB,QAAQ,CAAC,MAAM,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;QACjF,YAAY,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAC9B,OAAO,CAA0B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;QACrF,kBAAkB,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CACpC,OAAO,CAAgC,QAAQ,CAAC,MAAM,EAAE,wBAAwB,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;KACjG,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const tagWikiSchema: z.ZodObject<{
|
|
3
|
+
summary: z.ZodString;
|
|
4
|
+
content: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
/**
|
|
7
|
+
* Tag
|
|
8
|
+
* @see https://www.last.fm/api/show/tag.getInfo
|
|
9
|
+
*/
|
|
10
|
+
export declare const tagSchema: z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
url: z.ZodString;
|
|
13
|
+
total: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
14
|
+
reach: z.ZodNumber;
|
|
15
|
+
wiki: z.ZodObject<{
|
|
16
|
+
summary: z.ZodString;
|
|
17
|
+
content: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const tagGetInfoRequestSchema: z.ZodObject<{
|
|
21
|
+
tag: z.ZodString;
|
|
22
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const tagGetInfoResponseSchema: z.ZodObject<{
|
|
25
|
+
tag: z.ZodObject<{
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
url: z.ZodString;
|
|
28
|
+
total: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
29
|
+
reach: z.ZodNumber;
|
|
30
|
+
wiki: z.ZodObject<{
|
|
31
|
+
summary: z.ZodString;
|
|
32
|
+
content: z.ZodString;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const tagGetSimilarRequestSchema: z.ZodObject<{
|
|
37
|
+
tag: z.ZodString;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export declare const tagGetSimilarResponseSchema: z.ZodObject<{
|
|
40
|
+
similar: z.ZodObject<{
|
|
41
|
+
tag: z.ZodArray<z.ZodObject<{
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
url: z.ZodString;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
"@attr": z.ZodObject<{
|
|
46
|
+
tag: z.ZodString;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export declare const tagGetTopAlbumsRequestSchema: z.ZodObject<{
|
|
51
|
+
tag: z.ZodString;
|
|
52
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
53
|
+
page: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export declare const tagGetTopAlbumsResponseSchema: z.ZodObject<{
|
|
56
|
+
albums: z.ZodObject<{
|
|
57
|
+
album: z.ZodArray<z.ZodObject<{
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
mbid: z.ZodString;
|
|
60
|
+
url: z.ZodString;
|
|
61
|
+
artist: z.ZodObject<{
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
mbid: z.ZodString;
|
|
64
|
+
url: z.ZodString;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
image: z.ZodArray<z.ZodObject<{
|
|
67
|
+
"#text": z.ZodString;
|
|
68
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
"@attr": z.ZodObject<{
|
|
71
|
+
rank: z.ZodString;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
"@attr": z.ZodObject<{
|
|
75
|
+
tag: z.ZodString;
|
|
76
|
+
page: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
77
|
+
perPage: z.ZodString;
|
|
78
|
+
totalPages: z.ZodString;
|
|
79
|
+
total: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export declare const tagGetTopArtistsRequestSchema: z.ZodObject<{
|
|
84
|
+
tag: z.ZodString;
|
|
85
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
86
|
+
page: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export declare const tagGetTopArtistsResponseSchema: z.ZodObject<{
|
|
89
|
+
topartists: z.ZodObject<{
|
|
90
|
+
artist: z.ZodArray<z.ZodObject<{
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
mbid: z.ZodString;
|
|
93
|
+
url: z.ZodString;
|
|
94
|
+
image: z.ZodArray<z.ZodObject<{
|
|
95
|
+
"#text": z.ZodString;
|
|
96
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
"@attr": z.ZodObject<{
|
|
99
|
+
rank: z.ZodString;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
"@attr": z.ZodObject<{
|
|
103
|
+
tag: z.ZodString;
|
|
104
|
+
page: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
105
|
+
perPage: z.ZodString;
|
|
106
|
+
totalPages: z.ZodString;
|
|
107
|
+
total: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export declare const tagGetTopTagsRequestSchema: z.ZodObject<{
|
|
112
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export declare const tagGetTopTagsResponseSchema: z.ZodObject<{
|
|
115
|
+
toptags: z.ZodObject<{
|
|
116
|
+
tag: z.ZodArray<z.ZodObject<{
|
|
117
|
+
name: z.ZodString;
|
|
118
|
+
reach: z.ZodNumber;
|
|
119
|
+
count: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
"@attr": z.ZodObject<{
|
|
122
|
+
offset: z.ZodNumber;
|
|
123
|
+
num_res: z.ZodNumber;
|
|
124
|
+
total: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export declare const tagGetTopTracksRequestSchema: z.ZodObject<{
|
|
129
|
+
tag: z.ZodString;
|
|
130
|
+
limit: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
131
|
+
page: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
export declare const tagGetTopTracksResponseSchema: z.ZodObject<{
|
|
134
|
+
toptracks: z.ZodObject<{
|
|
135
|
+
track: z.ZodArray<z.ZodObject<{
|
|
136
|
+
name: z.ZodString;
|
|
137
|
+
duration: z.ZodString;
|
|
138
|
+
mbid: z.ZodString;
|
|
139
|
+
url: z.ZodString;
|
|
140
|
+
artist: z.ZodObject<{
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
mbid: z.ZodString;
|
|
143
|
+
url: z.ZodString;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
image: z.ZodArray<z.ZodObject<{
|
|
146
|
+
"#text": z.ZodString;
|
|
147
|
+
size: z.ZodUnion<readonly [z.ZodLiteral<"small">, z.ZodLiteral<"medium">, z.ZodLiteral<"large">, z.ZodLiteral<"extralarge">, z.ZodLiteral<"mega">]>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
"@attr": z.ZodObject<{
|
|
150
|
+
rank: z.ZodString;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
"@attr": z.ZodObject<{
|
|
154
|
+
tag: z.ZodString;
|
|
155
|
+
page: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
156
|
+
perPage: z.ZodString;
|
|
157
|
+
totalPages: z.ZodString;
|
|
158
|
+
total: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
export declare const tagGetWeeklyChartListRequestSchema: z.ZodObject<{
|
|
163
|
+
tag: z.ZodString;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export declare const tagGetWeeklyChartListResponseSchema: z.ZodObject<{
|
|
166
|
+
weeklychartlist: z.ZodObject<{
|
|
167
|
+
chart: z.ZodArray<z.ZodObject<{
|
|
168
|
+
from: z.ZodString;
|
|
169
|
+
to: z.ZodString;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
"@attr": z.ZodObject<{
|
|
172
|
+
tag: z.ZodString;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
export type TagWiki = z.infer<typeof tagWikiSchema>;
|
|
177
|
+
export type Tag = z.infer<typeof tagSchema>;
|
|
178
|
+
export type TagGetInfoRequest = z.infer<typeof tagGetInfoRequestSchema>;
|
|
179
|
+
export type TagGetInfoResponse = z.infer<typeof tagGetInfoResponseSchema>;
|
|
180
|
+
export type TagGetSimilarRequest = z.infer<typeof tagGetSimilarRequestSchema>;
|
|
181
|
+
export type TagGetSimilarResponse = z.infer<typeof tagGetSimilarResponseSchema>;
|
|
182
|
+
export type TagGetTopAlbumsRequest = z.infer<typeof tagGetTopAlbumsRequestSchema>;
|
|
183
|
+
export type TagGetTopAlbumsResponse = z.infer<typeof tagGetTopAlbumsResponseSchema>;
|
|
184
|
+
export type TagGetTopArtistsRequest = z.infer<typeof tagGetTopArtistsRequestSchema>;
|
|
185
|
+
export type TagGetTopArtistsResponse = z.infer<typeof tagGetTopArtistsResponseSchema>;
|
|
186
|
+
export type TagGetTopTagsRequest = z.infer<typeof tagGetTopTagsRequestSchema>;
|
|
187
|
+
export type TagGetTopTagsResponse = z.infer<typeof tagGetTopTagsResponseSchema>;
|
|
188
|
+
export type TagGetTopTracksRequest = z.infer<typeof tagGetTopTracksRequestSchema>;
|
|
189
|
+
export type TagGetTopTracksResponse = z.infer<typeof tagGetTopTracksResponseSchema>;
|
|
190
|
+
export type TagGetWeeklyChartListRequest = z.infer<typeof tagGetWeeklyChartListRequestSchema>;
|
|
191
|
+
export type TagGetWeeklyChartListResponse = z.infer<typeof tagGetWeeklyChartListResponseSchema>;
|
|
192
|
+
//# sourceMappingURL=tag.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.schemas.d.ts","sourceRoot":"","sources":["../../src/services/tag.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,aAAa;;;iBAGxB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;iBAMpB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;iBAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAUtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;iBAIvC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBxC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;iBAIxC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;iBAmBzC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;iBAatC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;iBAIvC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBxC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;iBAE7C,CAAC;AAEH,eAAO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AAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { albumNameSchema, artistNameSchema, contentSchema, countSchema, durationSchema, fromSchema, imageSchema, itemsPerPageSchema, langSchema, limitSchema, mbidSchema, pageSchema, rankSchema, reachSchema, summarySchema, tagNameSchema, toSchema, totalPagesSchema, totalSchema, trackNameSchema, urlSchema } from "./schemas/index.js";
|
|
3
|
+
export const tagWikiSchema = z.object({
|
|
4
|
+
summary: summarySchema,
|
|
5
|
+
content: contentSchema
|
|
6
|
+
});
|
|
7
|
+
/**
|
|
8
|
+
* Tag
|
|
9
|
+
* @see https://www.last.fm/api/show/tag.getInfo
|
|
10
|
+
*/
|
|
11
|
+
export const tagSchema = z.object({
|
|
12
|
+
name: tagNameSchema,
|
|
13
|
+
url: urlSchema,
|
|
14
|
+
total: totalSchema,
|
|
15
|
+
reach: reachSchema,
|
|
16
|
+
wiki: tagWikiSchema
|
|
17
|
+
});
|
|
18
|
+
export const tagGetInfoRequestSchema = z.object({
|
|
19
|
+
tag: tagNameSchema,
|
|
20
|
+
lang: langSchema.optional()
|
|
21
|
+
});
|
|
22
|
+
export const tagGetInfoResponseSchema = z.object({
|
|
23
|
+
tag: tagSchema
|
|
24
|
+
});
|
|
25
|
+
export const tagGetSimilarRequestSchema = z.object({
|
|
26
|
+
tag: tagNameSchema
|
|
27
|
+
});
|
|
28
|
+
export const tagGetSimilarResponseSchema = z.object({
|
|
29
|
+
similar: z.object({
|
|
30
|
+
tag: z.array(z.object({
|
|
31
|
+
name: tagNameSchema,
|
|
32
|
+
url: urlSchema
|
|
33
|
+
})),
|
|
34
|
+
"@attr": z.object({
|
|
35
|
+
tag: tagNameSchema
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
export const tagGetTopAlbumsRequestSchema = z.object({
|
|
40
|
+
tag: tagNameSchema,
|
|
41
|
+
limit: limitSchema.optional(),
|
|
42
|
+
page: pageSchema.optional()
|
|
43
|
+
});
|
|
44
|
+
export const tagGetTopAlbumsResponseSchema = z.object({
|
|
45
|
+
albums: z.object({
|
|
46
|
+
album: z.array(z.object({
|
|
47
|
+
name: albumNameSchema,
|
|
48
|
+
mbid: mbidSchema,
|
|
49
|
+
url: urlSchema,
|
|
50
|
+
artist: z.object({
|
|
51
|
+
name: artistNameSchema,
|
|
52
|
+
mbid: mbidSchema,
|
|
53
|
+
url: urlSchema
|
|
54
|
+
}),
|
|
55
|
+
image: z.array(imageSchema),
|
|
56
|
+
"@attr": z.object({
|
|
57
|
+
rank: rankSchema
|
|
58
|
+
})
|
|
59
|
+
})),
|
|
60
|
+
"@attr": z.object({
|
|
61
|
+
tag: tagNameSchema,
|
|
62
|
+
page: pageSchema,
|
|
63
|
+
perPage: itemsPerPageSchema,
|
|
64
|
+
totalPages: totalPagesSchema,
|
|
65
|
+
total: totalSchema
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
export const tagGetTopArtistsRequestSchema = z.object({
|
|
70
|
+
tag: tagNameSchema,
|
|
71
|
+
limit: limitSchema.optional(),
|
|
72
|
+
page: pageSchema.optional()
|
|
73
|
+
});
|
|
74
|
+
export const tagGetTopArtistsResponseSchema = z.object({
|
|
75
|
+
topartists: z.object({
|
|
76
|
+
artist: z.array(z.object({
|
|
77
|
+
name: artistNameSchema,
|
|
78
|
+
mbid: mbidSchema,
|
|
79
|
+
url: urlSchema,
|
|
80
|
+
image: z.array(imageSchema),
|
|
81
|
+
"@attr": z.object({
|
|
82
|
+
rank: rankSchema
|
|
83
|
+
})
|
|
84
|
+
})),
|
|
85
|
+
"@attr": z.object({
|
|
86
|
+
tag: tagNameSchema,
|
|
87
|
+
page: pageSchema,
|
|
88
|
+
perPage: itemsPerPageSchema,
|
|
89
|
+
totalPages: totalPagesSchema,
|
|
90
|
+
total: totalSchema
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
export const tagGetTopTagsRequestSchema = z.object({
|
|
95
|
+
limit: limitSchema.optional()
|
|
96
|
+
});
|
|
97
|
+
export const tagGetTopTagsResponseSchema = z.object({
|
|
98
|
+
toptags: z.object({
|
|
99
|
+
tag: z.array(z.object({
|
|
100
|
+
name: tagNameSchema,
|
|
101
|
+
reach: reachSchema,
|
|
102
|
+
count: countSchema
|
|
103
|
+
})),
|
|
104
|
+
"@attr": z.object({
|
|
105
|
+
offset: z.number(),
|
|
106
|
+
num_res: z.number(),
|
|
107
|
+
total: totalSchema
|
|
108
|
+
})
|
|
109
|
+
})
|
|
110
|
+
});
|
|
111
|
+
export const tagGetTopTracksRequestSchema = z.object({
|
|
112
|
+
tag: tagNameSchema,
|
|
113
|
+
limit: limitSchema.optional(),
|
|
114
|
+
page: pageSchema.optional()
|
|
115
|
+
});
|
|
116
|
+
export const tagGetTopTracksResponseSchema = z.object({
|
|
117
|
+
toptracks: z.object({
|
|
118
|
+
track: z.array(z.object({
|
|
119
|
+
name: trackNameSchema,
|
|
120
|
+
duration: durationSchema,
|
|
121
|
+
mbid: mbidSchema,
|
|
122
|
+
url: urlSchema,
|
|
123
|
+
artist: z.object({
|
|
124
|
+
name: artistNameSchema,
|
|
125
|
+
mbid: mbidSchema,
|
|
126
|
+
url: urlSchema
|
|
127
|
+
}),
|
|
128
|
+
image: z.array(imageSchema),
|
|
129
|
+
"@attr": z.object({
|
|
130
|
+
rank: rankSchema
|
|
131
|
+
})
|
|
132
|
+
})),
|
|
133
|
+
"@attr": z.object({
|
|
134
|
+
tag: tagNameSchema,
|
|
135
|
+
page: pageSchema,
|
|
136
|
+
perPage: itemsPerPageSchema,
|
|
137
|
+
totalPages: totalPagesSchema,
|
|
138
|
+
total: totalSchema
|
|
139
|
+
})
|
|
140
|
+
})
|
|
141
|
+
});
|
|
142
|
+
export const tagGetWeeklyChartListRequestSchema = z.object({
|
|
143
|
+
tag: tagNameSchema
|
|
144
|
+
});
|
|
145
|
+
export const tagGetWeeklyChartListResponseSchema = z.object({
|
|
146
|
+
weeklychartlist: z.object({
|
|
147
|
+
chart: z.array(z.object({
|
|
148
|
+
from: fromSchema,
|
|
149
|
+
to: toSchema
|
|
150
|
+
})),
|
|
151
|
+
"@attr": z.object({
|
|
152
|
+
tag: tagNameSchema
|
|
153
|
+
})
|
|
154
|
+
})
|
|
155
|
+
});
|
|
156
|
+
//# sourceMappingURL=tag.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.schemas.js","sourceRoot":"","sources":["../../src/services/tag.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACN,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,cAAc,EACd,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,aAAa;IACtB,OAAO,EAAE,aAAa;CACzB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,GAAG,EAAE,SAAS;IACd,KAAK,EAAE,WAAW;IAClB,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,aAAa;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,aAAa;IAClB,IAAI,E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