From 324e63af40330898fa2c5212c8cf2f62f11704bf Mon Sep 17 00:00:00 2001 From: Petitminion Date: Sun, 27 Apr 2025 17:01:30 +0200 Subject: [PATCH] update front type --- front/src/generated/types.ts | 143 ++++++++++++++++++----------------- 1 file changed, 73 insertions(+), 70 deletions(-) diff --git a/front/src/generated/types.ts b/front/src/generated/types.ts index 71186acda..3abc7b97e 100644 --- a/front/src/generated/types.ts +++ b/front/src/generated/types.ts @@ -2233,7 +2233,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v1/playlists/{id}/": { + "/api/v1/playlists/{uuid}/": { parameters: { query?: never; header?: never; @@ -2249,7 +2249,7 @@ export interface paths { patch: operations["partial_update_playlist"]; trace?: never; }; - "/api/v1/playlists/{id}/add/": { + "/api/v1/playlists/{uuid}/add/": { parameters: { query?: never; header?: never; @@ -2265,7 +2265,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v1/playlists/{id}/albums/": { + "/api/v1/playlists/{uuid}/albums/": { parameters: { query?: never; header?: never; @@ -2281,7 +2281,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v1/playlists/{id}/artists/": { + "/api/v1/playlists/{uuid}/artists/": { parameters: { query?: never; header?: never; @@ -2297,7 +2297,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v1/playlists/{id}/clear/": { + "/api/v1/playlists/{uuid}/clear/": { parameters: { query?: never; header?: never; @@ -2313,7 +2313,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v1/playlists/{id}/move/": { + "/api/v1/playlists/{uuid}/move/": { parameters: { query?: never; header?: never; @@ -2329,7 +2329,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v1/playlists/{id}/remove/": { + "/api/v1/playlists/{uuid}/remove/": { parameters: { query?: never; header?: never; @@ -2345,7 +2345,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v1/playlists/{id}/tracks/": { + "/api/v1/playlists/{uuid}/tracks/": { parameters: { query?: never; header?: never; @@ -5226,7 +5226,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v2/playlists/{id}/": { + "/api/v2/playlists/{uuid}/": { parameters: { query?: never; header?: never; @@ -5242,7 +5242,7 @@ export interface paths { patch: operations["partial_update_playlist_2"]; trace?: never; }; - "/api/v2/playlists/{id}/add/": { + "/api/v2/playlists/{uuid}/add/": { parameters: { query?: never; header?: never; @@ -5258,7 +5258,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v2/playlists/{id}/albums/": { + "/api/v2/playlists/{uuid}/albums/": { parameters: { query?: never; header?: never; @@ -5274,7 +5274,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v2/playlists/{id}/artists/": { + "/api/v2/playlists/{uuid}/artists/": { parameters: { query?: never; header?: never; @@ -5290,7 +5290,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v2/playlists/{id}/clear/": { + "/api/v2/playlists/{uuid}/clear/": { parameters: { query?: never; header?: never; @@ -5306,7 +5306,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v2/playlists/{id}/move/": { + "/api/v2/playlists/{uuid}/move/": { parameters: { query?: never; header?: never; @@ -5322,7 +5322,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v2/playlists/{id}/remove/": { + "/api/v2/playlists/{uuid}/remove/": { parameters: { query?: never; header?: never; @@ -5338,7 +5338,7 @@ export interface paths { patch?: never; trace?: never; }; - "/api/v2/playlists/{id}/tracks/": { + "/api/v2/playlists/{uuid}/tracks/": { parameters: { query?: never; header?: never; @@ -6714,6 +6714,28 @@ export interface components { type: string; id: string; }; + ImportMetadata: { + title: string; + description?: string | null; + /** Format: uuid */ + mbid?: string | null; + copyright?: string | null; + position?: number | null; + tags?: string[]; + license?: string | null; + }; + ImportMetadataRequest: { + title: string; + description?: string | null; + /** Format: uuid */ + mbid?: string | null; + copyright?: string | null; + position?: number | null; + tags?: string[]; + license?: string | null; + cover?: string | null; + album?: string | null; + }; /** * @description * `draft` - Draft * * `pending` - Pending @@ -7418,7 +7440,7 @@ export interface components { import_date?: string | null; import_details?: unknown; import_status?: components["schemas"]["ImportStatusEnum"]; - import_metadata?: unknown; + import_metadata: components["schemas"]["ImportMetadata"]; import_reference?: string; track: components["schemas"]["ManageNestedTrack"]; library: components["schemas"]["ManageNestedLibrary"]; @@ -7447,7 +7469,7 @@ export interface components { import_date?: string | null; import_details?: unknown; import_status?: components["schemas"]["ImportStatusEnum"]; - import_metadata?: unknown; + import_metadata: components["schemas"]["ImportMetadataRequest"]; import_reference?: string; track: components["schemas"]["ManageNestedTrackRequest"]; library: components["schemas"]["ManageNestedLibraryRequest"]; @@ -8448,7 +8470,7 @@ export interface components { /** @default pending */ import_status: components["schemas"]["ImportStatusEnum"]; privacy_level?: components["schemas"]["LibraryPrivacyLevelEnum"]; - import_metadata?: unknown; + import_metadata?: components["schemas"]["ImportMetadataRequest"]; import_reference?: string; source?: string | null; /** Format: binary */ @@ -8473,7 +8495,10 @@ export interface components { summary?: components["schemas"]["ContentRequest"] | null; }; Playlist: { - readonly id: number; + /** Format: uuid */ + readonly uuid: string; + /** Format: uri */ + readonly fid: string; name: string; readonly actor: components["schemas"]["APIActor"]; /** Format: date-time */ @@ -8486,6 +8511,8 @@ export interface components { readonly duration: number; readonly is_playable: boolean; description?: string | null; + /** Format: uri */ + readonly library: string; }; PlaylistAddManyRequest: { tracks: number[]; @@ -8864,7 +8891,7 @@ export interface components { import_status: components["schemas"]["ImportStatusEnum"]; privacy_level?: components["schemas"]["LibraryPrivacyLevelEnum"]; readonly import_details: unknown; - import_metadata?: unknown; + import_metadata?: components["schemas"]["ImportMetadata"]; import_reference?: string; readonly metadata: unknown; source?: string | null; @@ -8877,7 +8904,7 @@ export interface components { /** @default pending */ import_status: components["schemas"]["ImportStatusEnum"]; privacy_level?: components["schemas"]["LibraryPrivacyLevelEnum"]; - import_metadata?: unknown; + import_metadata?: components["schemas"]["ImportMetadataRequest"]; import_reference?: string; source?: string | null; /** Format: binary */ @@ -14118,8 +14145,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14143,8 +14169,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14175,8 +14200,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14198,8 +14222,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14230,8 +14253,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14262,8 +14284,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14287,8 +14308,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14312,8 +14332,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14335,8 +14354,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14367,8 +14385,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14399,8 +14416,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -14436,8 +14452,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21131,8 +21146,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21156,8 +21170,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21188,8 +21201,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21211,8 +21223,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21243,8 +21254,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21275,8 +21285,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21300,8 +21309,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21325,8 +21333,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21348,8 +21355,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21380,8 +21386,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21412,8 +21417,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; }; @@ -21449,8 +21453,7 @@ export interface operations { }; header?: never; path: { - /** @description A unique integer value identifying this playlist. */ - id: number; + uuid: string; }; cookie?: never; };