222 lines
5.7 KiB
TypeScript
222 lines
5.7 KiB
TypeScript
import { Elysia } from "elysia";
|
|
export declare const ordersRoute: Elysia<"/orders", {
|
|
decorator: {};
|
|
store: {};
|
|
derive: {};
|
|
resolve: {};
|
|
}, {
|
|
typebox: {};
|
|
error: {};
|
|
}, {
|
|
schema: {};
|
|
standaloneSchema: {};
|
|
macro: {};
|
|
macroFn: {};
|
|
parser: {};
|
|
response: {};
|
|
}, {
|
|
orders: {
|
|
get: {
|
|
body: unknown;
|
|
params: {};
|
|
query: unknown;
|
|
headers: unknown;
|
|
response: {
|
|
[x: string]: any;
|
|
[x: number]: any;
|
|
[x: symbol]: any;
|
|
};
|
|
};
|
|
};
|
|
} & {
|
|
orders: {
|
|
":id": {
|
|
get: {
|
|
body: unknown;
|
|
params: {
|
|
id: string;
|
|
} & {};
|
|
query: unknown;
|
|
headers: unknown;
|
|
response: {
|
|
[x: string]: any;
|
|
[x: number]: any;
|
|
[x: symbol]: any;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} & {
|
|
orders: {
|
|
post: {
|
|
body: {
|
|
discountAmount?: number;
|
|
customerId?: number | null;
|
|
subtotal?: number;
|
|
promoLevel1Name?: string | null;
|
|
promoLevel1Disc?: number;
|
|
promoLevel2Name?: string | null;
|
|
promoLevel2Disc?: number;
|
|
couponCode?: string | null;
|
|
pointsUsed?: number;
|
|
pointsDiscount?: number;
|
|
items: {
|
|
variantId?: number;
|
|
variantName?: string;
|
|
productImage?: string;
|
|
productId: number;
|
|
quantity: number;
|
|
priceAtPurchase: number;
|
|
productName: string;
|
|
}[];
|
|
totalAmount: number;
|
|
customerName: string;
|
|
shippingFee: number;
|
|
customerEmail: string;
|
|
customerPhone: string;
|
|
shippingAddress: string;
|
|
};
|
|
params: {};
|
|
query: unknown;
|
|
headers: unknown;
|
|
response: {
|
|
[x: string]: any;
|
|
[x: number]: any;
|
|
[x: symbol]: any;
|
|
};
|
|
};
|
|
};
|
|
} & {
|
|
orders: {
|
|
":id": {
|
|
status: {
|
|
patch: {
|
|
body: {
|
|
status: string;
|
|
};
|
|
params: {
|
|
id: string;
|
|
} & {};
|
|
query: unknown;
|
|
headers: unknown;
|
|
response: {
|
|
[x: string]: any;
|
|
[x: number]: any;
|
|
[x: symbol]: any;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} & {
|
|
orders: {
|
|
":id": {
|
|
slip: {
|
|
patch: {
|
|
body: {
|
|
paymentSlipUrl: string;
|
|
};
|
|
params: {
|
|
id: string;
|
|
} & {};
|
|
query: unknown;
|
|
headers: unknown;
|
|
response: {
|
|
[x: string]: any;
|
|
[x: number]: any;
|
|
[x: symbol]: any;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} & {
|
|
orders: {
|
|
":id": {
|
|
tracking: {
|
|
patch: {
|
|
body: {
|
|
trackingNo: string;
|
|
};
|
|
params: {
|
|
id: string;
|
|
} & {};
|
|
query: unknown;
|
|
headers: unknown;
|
|
response: {
|
|
[x: string]: any;
|
|
[x: number]: any;
|
|
[x: symbol]: any;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} & {
|
|
orders: {
|
|
customer: {
|
|
":customerId": {
|
|
get: {
|
|
body: unknown;
|
|
params: {
|
|
customerId: string;
|
|
} & {};
|
|
query: unknown;
|
|
headers: unknown;
|
|
response: {
|
|
[x: string]: any;
|
|
[x: number]: any;
|
|
[x: symbol]: any;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} & {
|
|
orders: {
|
|
track: {
|
|
post: {
|
|
body: {
|
|
phone: string;
|
|
orderId: number;
|
|
};
|
|
params: {};
|
|
query: unknown;
|
|
headers: unknown;
|
|
response: {
|
|
200: {
|
|
error: string;
|
|
success?: never;
|
|
orderId?: never;
|
|
} | {
|
|
success: boolean;
|
|
orderId: any;
|
|
error?: never;
|
|
};
|
|
422: {
|
|
type: "validation";
|
|
on: string;
|
|
summary?: string;
|
|
message?: string;
|
|
found?: unknown;
|
|
property?: string;
|
|
expected?: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}, {
|
|
derive: {};
|
|
resolve: {};
|
|
schema: {};
|
|
standaloneSchema: {};
|
|
response: {};
|
|
}, {
|
|
derive: {};
|
|
resolve: {};
|
|
schema: {};
|
|
standaloneSchema: {};
|
|
response: {};
|
|
}>;
|
|
//# sourceMappingURL=orders.d.ts.map
|