@aims-api/aims-node
Advanced tools
Comparing version 0.0.20 to 0.0.21
# @aims-api/aims-node | ||
## 0.0.21 | ||
### Patch Changes | ||
- 0154335: albumSchema in search endpoint | ||
## 0.0.20 | ||
@@ -4,0 +10,0 @@ |
@@ -61,2 +61,57 @@ import { AxiosInstance } from 'axios'; | ||
}>, "many">>; | ||
albums: z.ZodOptional<z.ZodArray<z.ZodObject<{ | ||
id: z.ZodString; | ||
key: z.ZodString; | ||
processed_at: z.ZodNullable<z.ZodString>; | ||
title: z.ZodString; | ||
description: z.ZodNullable<z.ZodString>; | ||
first_release_year: z.ZodNullable<z.ZodString>; | ||
followers: z.ZodNullable<z.ZodNumber>; | ||
keywords: z.ZodNullable<z.ZodArray<z.ZodString, "many">>; | ||
last_release_year: z.ZodNullable<z.ZodString>; | ||
listener_territories: z.ZodNullable<z.ZodArray<z.ZodString, "many">>; | ||
monthly_listeners: z.ZodNullable<z.ZodNumber>; | ||
number_of_tracks: z.ZodNumber; | ||
on_tour: z.ZodNullable<z.ZodBoolean>; | ||
owner: z.ZodNullable<z.ZodArray<z.ZodString, "many">>; | ||
socials: z.ZodNullable<z.ZodArray<z.ZodString, "many">>; | ||
thumbnails: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>; | ||
auto_tagging_output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>; | ||
}, "strip", z.ZodTypeAny, { | ||
owner: string[] | null; | ||
id: string; | ||
processed_at: string | null; | ||
key: string; | ||
title: string; | ||
description: string | null; | ||
thumbnails: Record<string, string> | null; | ||
followers: number | null; | ||
number_of_tracks: number; | ||
keywords: string[] | null; | ||
monthly_listeners: number | null; | ||
last_release_year: string | null; | ||
first_release_year: string | null; | ||
listener_territories: string[] | null; | ||
socials: string[] | null; | ||
on_tour: boolean | null; | ||
auto_tagging_output?: Record<string, any> | null | undefined; | ||
}, { | ||
owner: string[] | null; | ||
id: string; | ||
processed_at: string | null; | ||
key: string; | ||
title: string; | ||
description: string | null; | ||
thumbnails: Record<string, string> | null; | ||
followers: number | null; | ||
number_of_tracks: number; | ||
keywords: string[] | null; | ||
monthly_listeners: number | null; | ||
last_release_year: string | null; | ||
first_release_year: string | null; | ||
listener_territories: string[] | null; | ||
socials: string[] | null; | ||
on_tour: boolean | null; | ||
auto_tagging_output?: Record<string, any> | null | undefined; | ||
}>, "many">>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -81,2 +136,21 @@ artists?: { | ||
}[] | undefined; | ||
albums?: { | ||
owner: string[] | null; | ||
id: string; | ||
processed_at: string | null; | ||
key: string; | ||
title: string; | ||
description: string | null; | ||
thumbnails: Record<string, string> | null; | ||
followers: number | null; | ||
number_of_tracks: number; | ||
keywords: string[] | null; | ||
monthly_listeners: number | null; | ||
last_release_year: string | null; | ||
first_release_year: string | null; | ||
listener_territories: string[] | null; | ||
socials: string[] | null; | ||
on_tour: boolean | null; | ||
auto_tagging_output?: Record<string, any> | null | undefined; | ||
}[] | undefined; | ||
}, { | ||
@@ -101,2 +175,21 @@ artists?: { | ||
}[] | undefined; | ||
albums?: { | ||
owner: string[] | null; | ||
id: string; | ||
processed_at: string | null; | ||
key: string; | ||
title: string; | ||
description: string | null; | ||
thumbnails: Record<string, string> | null; | ||
followers: number | null; | ||
number_of_tracks: number; | ||
keywords: string[] | null; | ||
monthly_listeners: number | null; | ||
last_release_year: string | null; | ||
first_release_year: string | null; | ||
listener_territories: string[] | null; | ||
socials: string[] | null; | ||
on_tour: boolean | null; | ||
auto_tagging_output?: Record<string, any> | null | undefined; | ||
}[] | undefined; | ||
}>>; | ||
@@ -914,2 +1007,21 @@ lyrics_search: z.ZodOptional<z.ZodObject<{ | ||
}[] | undefined; | ||
albums?: { | ||
owner: string[] | null; | ||
id: string; | ||
processed_at: string | null; | ||
key: string; | ||
title: string; | ||
description: string | null; | ||
thumbnails: Record<string, string> | null; | ||
followers: number | null; | ||
number_of_tracks: number; | ||
keywords: string[] | null; | ||
monthly_listeners: number | null; | ||
last_release_year: string | null; | ||
first_release_year: string | null; | ||
listener_territories: string[] | null; | ||
socials: string[] | null; | ||
on_tour: boolean | null; | ||
auto_tagging_output?: Record<string, any> | null | undefined; | ||
}[] | undefined; | ||
} | undefined; | ||
@@ -1077,2 +1189,21 @@ aggregations?: any; | ||
}[] | undefined; | ||
albums?: { | ||
owner: string[] | null; | ||
id: string; | ||
processed_at: string | null; | ||
key: string; | ||
title: string; | ||
description: string | null; | ||
thumbnails: Record<string, string> | null; | ||
followers: number | null; | ||
number_of_tracks: number; | ||
keywords: string[] | null; | ||
monthly_listeners: number | null; | ||
last_release_year: string | null; | ||
first_release_year: string | null; | ||
listener_territories: string[] | null; | ||
socials: string[] | null; | ||
on_tour: boolean | null; | ||
auto_tagging_output?: Record<string, any> | null | undefined; | ||
}[] | undefined; | ||
} | undefined; | ||
@@ -1079,0 +1210,0 @@ aggregations?: any; |
@@ -80,4 +80,25 @@ "use strict"; | ||
}); | ||
const albumSchema = zod_1.z.object({ | ||
id: zod_1.z.string(), | ||
key: zod_1.z.string(), | ||
processed_at: zod_1.z.string().nullable(), | ||
title: zod_1.z.string(), | ||
// contact: z.string().nullable(), | ||
description: zod_1.z.string().nullable(), | ||
first_release_year: zod_1.z.string().nullable(), | ||
followers: zod_1.z.number().nullable(), | ||
keywords: zod_1.z.array(zod_1.z.string()).nullable(), | ||
last_release_year: zod_1.z.string().nullable(), | ||
listener_territories: zod_1.z.array(zod_1.z.string()).nullable(), | ||
monthly_listeners: zod_1.z.number().nullable(), | ||
number_of_tracks: zod_1.z.number(), | ||
on_tour: zod_1.z.boolean().nullable(), | ||
owner: zod_1.z.array(zod_1.z.string()).nullable(), | ||
socials: zod_1.z.array(zod_1.z.string()).nullable(), | ||
thumbnails: zod_1.z.record(zod_1.z.string()).nullable(), | ||
auto_tagging_output: zod_1.z.optional(zod_1.z.nullable(zod_1.z.record(zod_1.z.any()))), | ||
}); | ||
const collectionsSchema = zod_1.z.object({ | ||
artists: zod_1.z.array(artistSchema).optional(), | ||
albums: zod_1.z.array(albumSchema).optional(), | ||
}); | ||
@@ -84,0 +105,0 @@ exports.searchResponseSchema = zod_1.z.object({ |
@@ -19,2 +19,3 @@ "use strict"; | ||
grouping_data: zod_1.z.optional(zod_1.z.nullable(exports.groupingDataSchema)), | ||
// thumbnails: z.nullable(z.record(z.string(), z.any)), | ||
}); | ||
@@ -21,0 +22,0 @@ exports.detailedCollectionSchema = zod_1.z |
{ | ||
"name": "@aims-api/aims-node", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"license": "UNLICENSED", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/aims-api/aims-node", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
490608
10510