fixes, orval, downloader functioning again

This commit is contained in:
2026-04-21 00:47:10 +02:00
parent 659999f4fd
commit cf08dbaf15
93 changed files with 1662 additions and 1333 deletions

View File

@@ -0,0 +1,13 @@
/**
* Generated by orval v8.8.0 🍺
* Do not edit manually.
* OpenAPI spec version: 0.0.0
*/
export type ApiDownloaderDownloadCreateParams = {
/**
* Signed token containing file info
* @minLength 1
*/
token: string;
};

View File

@@ -0,0 +1,13 @@
/**
* Generated by orval v8.8.0 🍺
* Do not edit manually.
* OpenAPI spec version: 0.0.0
*/
export type ApiDownloaderDownloadFileCreateParams = {
/**
* Signed token containing file info
* @minLength 1
*/
token: string;
};

View File

@@ -0,0 +1,13 @@
/**
* Generated by orval v8.8.0 🍺
* Do not edit manually.
* OpenAPI spec version: 0.0.0
*/
export type ApiDownloaderDownloadFileRetrieveParams = {
/**
* Video/Playlist URL from YouTube, TikTok, Vimeo, etc. Must be a valid URL from a supported platform.
* @minLength 1
*/
url: string;
};

View File

@@ -4,12 +4,12 @@
* OpenAPI spec version: 0.0.0
*/
import type { ShippingMethodEnum } from "./shippingMethodEnum";
import type { State1f6Enum } from "./state1f6Enum";
import type { StateF41Enum } from "./stateF41Enum";
import type { ZasilkovnaPacketRead } from "./zasilkovnaPacketRead";
export interface CarrierRead {
readonly shipping_method: ShippingMethodEnum;
readonly state: State1f6Enum;
readonly state: StateF41Enum;
readonly zasilkovna: readonly ZasilkovnaPacketRead[];
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
readonly shipping_price: string;

View File

@@ -12,7 +12,7 @@ export interface CartItem {
readonly product_price: string;
/**
* @minimum 0
* @maximum 9223372036854776000
* @maximum 2147483647
*/
quantity?: number;
readonly subtotal: string;

View File

@@ -60,7 +60,7 @@ export interface DeutschePostOrder {
/**
* Weight in grams
* @minimum 0
* @maximum 9223372036854776000
* @maximum 2147483647
*/
shipment_gross_weight: number;
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */

View File

@@ -29,7 +29,7 @@ export interface DiscountCode {
active?: boolean;
/**
* @minimum 0
* @maximum 9223372036854776000
* @maximum 2147483647
* @nullable
*/
usage_limit?: number | null;

View File

@@ -1,43 +0,0 @@
/**
* Generated by orval v8.8.0 🍺
* Do not edit manually.
* OpenAPI spec version: 0.0.0
*/
export interface DownloadRequest {
/** Video/Playlist URL to download from supported platforms */
url: string;
/** Container format for the output file. Common formats: mp4 (H.264 + AAC, most compatible), mkv (flexible, lossless container), webm (VP9/AV1 + Opus), flv (legacy), mov (Apple-friendly), avi (older), ogg, m4a (audio only), mp3 (audio only). The extension will be validated by ffmpeg during conversion. */
ext?: string;
/**
* Optional: Target max video height in pixels (e.g. 1080, 720). If omitted, best quality is selected.
* @nullable
*/
video_quality?: number | null;
/**
* Optional: Target max audio bitrate in kbps (e.g. 320, 192, 128). If omitted, best quality is selected.
* @nullable
*/
audio_quality?: number | null;
/**
* For playlists: specify which videos to download as array of numbers (e.g., [1,3,5]). If omitted, all videos are downloaded.
* @nullable
*/
selected_videos?: number[] | null;
/**
* Language codes (e.g., 'en', 'cs', 'en,cs') or 'all' for all available subtitles
* @nullable
*/
subtitles?: string | null;
/** Embed subtitles into the video file (requires mkv or mp4 container) */
embed_subtitles?: boolean;
/** Embed thumbnail as cover art in the file */
embed_thumbnail?: boolean;
/** Extract audio only, ignoring video quality settings */
extract_audio?: boolean;
/**
* Browser cookies in Netscape format for age-restricted content. Export from browser extensions like 'Get cookies.txt'
* @nullable
*/
cookies?: string | null;
}

View File

@@ -10,6 +10,9 @@ export * from "./apiCommerceDiscountCodesListParams";
export * from "./apiCommerceOrdersListParams";
export * from "./apiCommerceProductImagesListParams";
export * from "./apiCommerceProductsListParams";
export * from "./apiDownloaderDownloadCreateParams";
export * from "./apiDownloaderDownloadFileCreateParams";
export * from "./apiDownloaderDownloadFileRetrieveParams";
export * from "./apiDownloaderDownloadRetrieveParams";
export * from "./apiChoicesRetrieve200";
export * from "./apiChoicesRetrieve200Item";
@@ -30,9 +33,7 @@ export * from "./deutschePostOrder";
export * from "./deutschePostOrderStateEnum";
export * from "./deutschePostTracking";
export * from "./discountCode";
export * from "./downloadErrorResponse";
export * from "./downloaderStats";
export * from "./downloadRequest";
export * from "./errorResponse";
export * from "./hub";
export * from "./hubPermission";
@@ -116,12 +117,13 @@ export * from "./reviewSerializerPublic";
export * from "./roleEnum";
export * from "./shippingMethodEnum";
export * from "./siteConfiguration";
export * from "./state1f6Enum";
export * from "./stateCdfEnum";
export * from "./statusD4fEnum";
export * from "./state9b5Enum";
export * from "./stateF41Enum";
export * from "./status0b2Enum";
export * from "./tagAttach";
export * from "./tags";
export * from "./timeseriesPoint";
export * from "./tokenError";
export * from "./topUrl";
export * from "./trackingURL";
export * from "./transferInit";

View File

@@ -4,12 +4,12 @@
* OpenAPI spec version: 0.0.0
*/
import type { ShippingMethodEnum } from "./shippingMethodEnum";
import type { State1f6Enum } from "./state1f6Enum";
import type { StateF41Enum } from "./stateF41Enum";
import type { ZasilkovnaPacket } from "./zasilkovnaPacket";
export interface OrderCarrier {
shipping_method?: ShippingMethodEnum;
readonly state: State1f6Enum;
readonly state: StateF41Enum;
readonly zasilkovna: readonly ZasilkovnaPacket[];
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
readonly shipping_price: string;

View File

@@ -3,11 +3,11 @@
* Do not edit manually.
* OpenAPI spec version: 0.0.0
*/
import type { StatusD4fEnum } from "./statusD4fEnum";
import type { Status0b2Enum } from "./status0b2Enum";
export interface OrderMini {
readonly id: number;
readonly status: StatusD4fEnum;
readonly status: Status0b2Enum;
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
readonly total_price: string;
readonly created_at: Date;

View File

@@ -6,11 +6,11 @@
import type { CarrierRead } from "./carrierRead";
import type { OrderItemRead } from "./orderItemRead";
import type { PaymentRead } from "./paymentRead";
import type { StatusD4fEnum } from "./statusD4fEnum";
import type { Status0b2Enum } from "./status0b2Enum";
export interface OrderRead {
readonly id: number;
readonly status: StatusD4fEnum;
readonly status: Status0b2Enum;
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
readonly total_price: string;
/** Order currency - captured from site configuration at order creation and never changes */

View File

@@ -60,7 +60,7 @@ export interface PatchedDeutschePostOrder {
/**
* Weight in grams
* @minimum 0
* @maximum 9223372036854776000
* @maximum 2147483647
*/
shipment_gross_weight?: number;
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */

View File

@@ -29,7 +29,7 @@ export interface PatchedDiscountCode {
active?: boolean;
/**
* @minimum 0
* @maximum 9223372036854776000
* @maximum 2147483647
* @nullable
*/
usage_limit?: number | null;

View File

@@ -6,11 +6,11 @@
import type { CarrierRead } from "./carrierRead";
import type { OrderItemRead } from "./orderItemRead";
import type { PaymentRead } from "./paymentRead";
import type { StatusD4fEnum } from "./statusD4fEnum";
import type { Status0b2Enum } from "./status0b2Enum";
export interface PatchedOrderRead {
readonly id?: number;
readonly status?: StatusD4fEnum;
readonly status?: Status0b2Enum;
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
readonly total_price?: string;
/** Order currency - captured from site configuration at order creation and never changes */

View File

@@ -26,7 +26,7 @@ export interface PatchedProduct {
url?: string;
/**
* @minimum 0
* @maximum 9223372036854776000
* @maximum 2147483647
*/
stock?: number;
is_active?: boolean;

View File

@@ -16,7 +16,7 @@ export interface PatchedVATRate {
name?: string;
/**
* VAT rate as percentage (e.g. 19.00 for 19%)
* @pattern ^-?\d{0,1}(?:\.\d{0,4})?$
* @pattern ^-?\d{0,2}(?:\.\d{0,4})?$
*/
rate?: string;
/** VAT rate as decimal (e.g., 0.19 for 19%) */

View File

@@ -10,8 +10,8 @@ export interface PostVote {
post: number;
readonly user: number;
/**
* @minimum -9223372036854776000
* @maximum 9223372036854776000
* @minimum -32768
* @maximum 32767
*/
vote: VoteEnum;
readonly created_at: Date;

View File

@@ -26,7 +26,7 @@ export interface Product {
url: string;
/**
* @minimum 0
* @maximum 9223372036854776000
* @maximum 2147483647
*/
stock?: number;
is_active?: boolean;

View File

@@ -19,7 +19,7 @@ export interface ProductMiniForWishlist {
is_active?: boolean;
/**
* @minimum 0
* @maximum 9223372036854776000
* @maximum 2147483647
*/
stock?: number;
}

View File

@@ -13,9 +13,9 @@
* `RETURNING` - Posláno zpátky
* `RETURNED` - Vráceno
*/
export type StateCdfEnum = (typeof StateCdfEnum)[keyof typeof StateCdfEnum];
export type State9b5Enum = (typeof State9b5Enum)[keyof typeof State9b5Enum];
export const StateCdfEnum = {
export const State9b5Enum = {
WAITING_FOR_ORDERING_SHIPMENT: "WAITING_FOR_ORDERING_SHIPMENT",
PENDING: "PENDING",
SENDED: "SENDED",

View File

@@ -10,9 +10,9 @@
* `delivered` - Doručeno
* `ready_to_pickup` - Připraveno k vyzvednutí
*/
export type State1f6Enum = (typeof State1f6Enum)[keyof typeof State1f6Enum];
export type StateF41Enum = (typeof StateF41Enum)[keyof typeof StateF41Enum];
export const State1f6Enum = {
export const StateF41Enum = {
ordered: "ordered",
shipped: "shipped",
delivered: "delivered",

View File

@@ -11,9 +11,9 @@
* `refunding` - Vrácení v procesu
* `refunded` - Vráceno
*/
export type StatusD4fEnum = (typeof StatusD4fEnum)[keyof typeof StatusD4fEnum];
export type Status0b2Enum = (typeof Status0b2Enum)[keyof typeof Status0b2Enum];
export const StatusD4fEnum = {
export const Status0b2Enum = {
created: "created",
cancelled: "cancelled",
completed: "completed",

View File

@@ -4,6 +4,6 @@
* OpenAPI spec version: 0.0.0
*/
export interface DownloadErrorResponse {
export interface TokenError {
error: string;
}

View File

@@ -16,7 +16,7 @@ export interface VATRate {
name: string;
/**
* VAT rate as percentage (e.g. 19.00 for 19%)
* @pattern ^-?\d{0,1}(?:\.\d{0,4})?$
* @pattern ^-?\d{0,2}(?:\.\d{0,4})?$
*/
rate: string;
/** VAT rate as decimal (e.g., 0.19 for 19%) */

View File

@@ -3,15 +3,15 @@
* Do not edit manually.
* OpenAPI spec version: 0.0.0
*/
import type { StateCdfEnum } from "./stateCdfEnum";
import type { State9b5Enum } from "./state9b5Enum";
export interface ZasilkovnaPacket {
readonly id: number;
readonly created_at: Date;
/**
* Číslo zásilky v Packetě (vraceno od API od Packety)
* @minimum -9223372036854776000
* @maximum 9223372036854776000
* @minimum -2147483648
* @maximum 2147483647
* @nullable
*/
packet_id?: number | null;
@@ -20,7 +20,7 @@ export interface ZasilkovnaPacket {
* @nullable
*/
readonly barcode: string | null;
readonly state: StateCdfEnum;
readonly state: State9b5Enum;
/** Hmotnost zásilky v gramech */
readonly weight: number;
/** Seznam 2 routing stringů pro vrácení zásilky */

View File

@@ -3,15 +3,15 @@
* Do not edit manually.
* OpenAPI spec version: 0.0.0
*/
import type { StateCdfEnum } from "./stateCdfEnum";
import type { State9b5Enum } from "./state9b5Enum";
export interface ZasilkovnaPacketRead {
readonly id: number;
readonly created_at: Date;
/**
* Číslo zásilky v Packetě (vraceno od API od Packety)
* @minimum -9223372036854776000
* @maximum 9223372036854776000
* @minimum -2147483648
* @maximum 2147483647
* @nullable
*/
packet_id?: number | null;
@@ -20,7 +20,7 @@ export interface ZasilkovnaPacketRead {
* @nullable
*/
readonly barcode: string | null;
readonly state: StateCdfEnum;
readonly state: State9b5Enum;
/** Hmotnost zásilky v gramech */
readonly weight: number;
/** Seznam 2 routing stringů pro vrácení zásilky */