This commit is contained in:
Your Name committed 2026-06-24 19:15:04 -04:00
1 parent 81ed9af406
commit 4536db6741
56 files changed
+1127 -198

No files matched your search

+67 -4
View File
@@ -16,7 +16,7 @@ export declare const productsRoute: Elysia<"/products", {
response: {};
}, {
products: {
scents: {
brands: {
get: {
body: unknown;
params: {};
@@ -32,7 +32,7 @@ export declare const productsRoute: Elysia<"/products", {
};
} & {
products: {
scents: {
brands: {
":id": {
translations: {
patch: {
@@ -46,10 +46,10 @@ export declare const productsRoute: Elysia<"/products", {
200: {
success: boolean;
translations: any[];
scent: any;
brand: any;
};
400: {
readonly message: "Invalid scent ID";
readonly message: "Invalid brand ID";
};
422: {
type: "validation";
@@ -145,6 +145,69 @@ export declare const productsRoute: Elysia<"/products", {
};
};
};
} & {
products: {
":id": {
images: {
post: {
body: {
url: string;
};
params: {
id: string;
} & {};
query: unknown;
headers: unknown;
response: {
200: {
success: boolean;
image: any;
};
400: {
readonly message: "Invalid product ID";
} | {
readonly message: "URL is required";
};
404: {
readonly message: "Product not found";
};
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
500: {
readonly success: false;
readonly message: "Failed to add product image";
};
};
};
};
};
};
} & {
products: {
post: {
body: any;
params: {};
query: unknown;
headers: unknown;
response: {
200: {
success: boolean;
product: any;
};
500: {
readonly success: false;
readonly message: "Failed to create product";
};
};
};
};
} & {
products: {
":id": {