Files
homaroma/apps/backend/src/routes/products.d.ts
T
2026-06-28 05:52:46 -04:00

295 lines
8.3 KiB
TypeScript

import { Elysia } from "elysia";
export declare const productsRoute: Elysia<"/products", {
decorator: {
validateVariants: (options?: any[], variants?: any[]) => void;
};
store: {};
derive: {};
resolve: {};
}, {
typebox: {};
error: {};
}, {
schema: {};
standaloneSchema: {};
macro: {};
macroFn: {};
parser: {};
response: {};
}, {
products: {
brands: {
get: {
body: unknown;
params: {};
query: unknown;
headers: unknown;
response: {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
};
};
};
};
} & {
products: {
brands: {
":id": {
translations: {
patch: {
body: unknown;
params: {
id: string;
} & {};
query: unknown;
headers: unknown;
response: {
200: {
success: boolean;
translations: any[];
brand: any;
};
400: {
readonly message: "Invalid brand ID";
};
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
};
};
};
};
};
};
} & {
products: {
get: {
body: unknown;
params: {};
query: unknown;
headers: unknown;
response: {
200: {
data: any;
meta: {
total: any;
page: number;
limit: number;
lastPage: number;
};
};
};
};
};
} & {
products: {
":id": {
get: {
body: unknown;
params: {
id: string;
} & {};
query: unknown;
headers: unknown;
response: {
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
};
};
};
};
} & {
products: {
":id": {
put: {
body: any;
params: {
id: string;
} & {};
query: unknown;
headers: unknown;
response: {
200: {
success: boolean;
product: any;
};
400: {
readonly message: "Invalid product ID";
};
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
500: {
readonly success: false;
readonly message: any;
};
};
};
};
};
} & {
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: any;
};
};
};
};
};
};
} & {
products: {
post: {
body: any;
params: {};
query: unknown;
headers: unknown;
response: {
200: {
success: boolean;
product: any;
};
500: {
readonly success: false;
readonly message: any;
};
};
};
};
} & {
products: {
bulk: {
post: {
body: any[];
params: {};
query: unknown;
headers: unknown;
response: {
200: {
success: boolean;
products: any;
};
400: {
readonly success: false;
readonly message: "Payload must be an array of products";
};
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
500: {
readonly success: false;
readonly message: any;
};
};
};
};
};
} & {
products: {
":id": {
patch: {
body: any;
params: {
id: string;
} & {};
query: unknown;
headers: unknown;
response: {
200: {
success: boolean;
product: any;
};
400: {
readonly message: "Invalid product ID";
};
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
500: {
readonly success: false;
readonly message: any;
};
};
};
};
};
}, {
derive: {};
resolve: {};
schema: {};
standaloneSchema: {};
response: {};
}, {
derive: {};
resolve: {};
schema: {};
standaloneSchema: {};
response: {};
}>;
//# sourceMappingURL=products.d.ts.map