@medusajs/medusa
Version:
Building blocks for digital commerce
561 lines • 18.1 kB
TypeScript
import { z } from "zod";
export declare const AdminGetOrdersOrderParams: z.ZodObject<{
fields: z.ZodOptional<z.ZodString>;
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
status: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
$eq: any;
$ne: any;
$in: any;
$nin: any;
$like: any;
$ilike: any;
$re: any;
$contains: any;
$gt: any;
$gte: any;
$lt: any;
$lte: any;
}, "strip", z.ZodTypeAny, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}>]>>;
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
$eq: any;
$ne: any;
$in: any;
$nin: any;
$like: any;
$ilike: any;
$re: any;
$contains: any;
$gt: any;
$gte: any;
$lt: any;
$lte: any;
}, "strip", z.ZodTypeAny, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}>]>>;
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
$eq: any;
$ne: any;
$in: any;
$nin: any;
$like: any;
$ilike: any;
$re: any;
$contains: any;
$gt: any;
$gte: any;
$lt: any;
$lte: any;
}, "strip", z.ZodTypeAny, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}>]>>;
}, "strip", z.ZodTypeAny, {
fields?: string | undefined;
id?: string | string[] | undefined;
status?: string | string[] | undefined;
created_at?: any;
updated_at?: any;
deleted_at?: any;
}, {
fields?: string | undefined;
id?: string | string[] | undefined;
status?: string | string[] | undefined;
created_at?: any;
updated_at?: any;
deleted_at?: any;
}>;
export type AdminGetOrdersOrderParamsType = z.infer<typeof AdminGetOrdersOrderParams>;
/**
* Parameters used to filter and configure the pagination of the retrieved order.
*/
export declare const AdminGetOrdersParams: z.ZodObject<{
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
fields: z.ZodOptional<z.ZodString>;
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
order_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
status: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
$eq: any;
$ne: any;
$in: any;
$nin: any;
$like: any;
$ilike: any;
$re: any;
$contains: any;
$gt: any;
$gte: any;
$lt: any;
$lte: any;
}, "strip", z.ZodTypeAny, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}>]>>;
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
$eq: any;
$ne: any;
$in: any;
$nin: any;
$like: any;
$ilike: any;
$re: any;
$contains: any;
$gt: any;
$gte: any;
$lt: any;
$lte: any;
}, "strip", z.ZodTypeAny, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}>]>>;
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
$eq: any;
$ne: any;
$in: any;
$nin: any;
$like: any;
$ilike: any;
$re: any;
$contains: any;
$gt: any;
$gte: any;
$lt: any;
$lte: any;
}, "strip", z.ZodTypeAny, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}, {
$eq?: any;
$ne?: any;
$in?: any;
$nin?: any;
$like?: any;
$ilike?: any;
$re?: any;
$contains?: any;
$gt?: any;
$gte?: any;
$lt?: any;
$lte?: any;
}>]>>;
}, "strip", z.ZodTypeAny, {
offset: number;
limit: number;
order?: string | undefined;
fields?: string | undefined;
with_deleted?: boolean | undefined;
id?: string | string[] | undefined;
order_id?: string | string[] | undefined;
status?: string | string[] | undefined;
created_at?: any;
updated_at?: any;
deleted_at?: any;
}, {
order?: string | undefined;
fields?: string | undefined;
offset?: unknown;
limit?: unknown;
with_deleted?: unknown;
id?: string | string[] | undefined;
order_id?: string | string[] | undefined;
status?: string | string[] | undefined;
created_at?: any;
updated_at?: any;
deleted_at?: any;
}>;
export type AdminGetOrdersParamsType = z.infer<typeof AdminGetOrdersParams>;
export declare const AdminPostReturnsReqSchema: z.ZodObject<{
order_id: z.ZodString;
location_id: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
internal_note: z.ZodOptional<z.ZodString>;
no_notification: z.ZodOptional<z.ZodBoolean>;
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
}, "strip", z.ZodTypeAny, {
order_id: string;
location_id?: string | undefined;
description?: string | undefined;
internal_note?: string | undefined;
no_notification?: boolean | undefined;
metadata?: Record<string, unknown> | null | undefined;
}, {
order_id: string;
location_id?: string | undefined;
description?: string | undefined;
internal_note?: string | undefined;
no_notification?: boolean | undefined;
metadata?: Record<string, unknown> | null | undefined;
}>;
export type AdminPostReturnsReqSchemaType = z.infer<typeof AdminPostReturnsReqSchema>;
export declare const AdminPostReturnsReturnReqSchema: z.ZodObject<{
location_id: z.ZodOptional<z.ZodString>;
no_notification: z.ZodOptional<z.ZodBoolean>;
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
}, "strip", z.ZodTypeAny, {
location_id?: string | undefined;
no_notification?: boolean | undefined;
metadata?: Record<string, unknown> | null | undefined;
}, {
location_id?: string | undefined;
no_notification?: boolean | undefined;
metadata?: Record<string, unknown> | null | undefined;
}>;
export type AdminPostReturnsReturnReqSchemaType = z.infer<typeof AdminPostReturnsReturnReqSchema>;
export declare const AdminPostOrderExchangesReqSchema: z.ZodObject<{
order_id: z.ZodString;
description: z.ZodOptional<z.ZodString>;
internal_note: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
}, "strip", z.ZodTypeAny, {
order_id: string;
description?: string | undefined;
internal_note?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
}, {
order_id: string;
description?: string | undefined;
internal_note?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
}>;
export type AdminPostOrderExchangesReqSchemaType = z.infer<typeof AdminPostOrderExchangesReqSchema>;
export declare const AdminPostReceiveReturnsReqSchema: z.ZodObject<{
internal_note: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
}, "strip", z.ZodTypeAny, {
internal_note?: string | undefined;
description?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
}, {
internal_note?: string | undefined;
description?: string | undefined;
metadata?: Record<string, unknown> | null | undefined;
}>;
export type AdminPostReceiveReturnsReqSchemaType = z.infer<typeof AdminPostReceiveReturnsReqSchema>;
export declare const AdminPostReceiveReturnItemsReqSchema: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
quantity: z.ZodNumber;
internal_note: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: string;
quantity: number;
internal_note?: string | undefined;
}, {
id: string;
quantity: number;
internal_note?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
items: {
id: string;
quantity: number;
internal_note?: string | undefined;
}[];
}, {
items: {
id: string;
quantity: number;
internal_note?: string | undefined;
}[];
}>;
export type AdminPostReceiveReturnItemsReqSchemaType = z.infer<typeof AdminPostReceiveReturnItemsReqSchema>;
export declare const AdminPostCancelReturnReqSchema: z.ZodObject<{
no_notification: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
no_notification?: boolean | undefined;
}, {
no_notification?: boolean | undefined;
}>;
export type AdminPostCancelReturnReqSchemaType = z.infer<typeof AdminPostCancelReturnReqSchema>;
export declare const AdminPostReturnsShippingReqSchema: z.ZodObject<{
shipping_option_id: z.ZodString;
custom_amount: z.ZodOptional<z.ZodNumber>;
description: z.ZodOptional<z.ZodString>;
internal_note: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, "strip", z.ZodTypeAny, {
shipping_option_id: string;
custom_amount?: number | undefined;
description?: string | undefined;
internal_note?: string | undefined;
metadata?: Record<string, unknown> | undefined;
}, {
shipping_option_id: string;
custom_amount?: number | undefined;
description?: string | undefined;
internal_note?: string | undefined;
metadata?: Record<string, unknown> | undefined;
}>;
export type AdminPostReturnsShippingReqSchemaType = z.infer<typeof AdminPostReturnsShippingReqSchema>;
export declare const AdminPostReturnsShippingActionReqSchema: z.ZodObject<{
custom_amount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
}, "strip", z.ZodTypeAny, {
custom_amount?: number | null | undefined;
internal_note?: string | null | undefined;
metadata?: Record<string, unknown> | null | undefined;
}, {
custom_amount?: number | null | undefined;
internal_note?: string | null | undefined;
metadata?: Record<string, unknown> | null | undefined;
}>;
export type AdminPostReturnsShippingActionReqSchemaType = z.infer<typeof AdminPostReturnsShippingActionReqSchema>;
export declare const AdminPostReturnsRequestItemsReqSchema: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
quantity: z.ZodNumber;
description: z.ZodOptional<z.ZodString>;
internal_note: z.ZodOptional<z.ZodString>;
reason_id: z.ZodOptional<z.ZodString>;
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, "strip", z.ZodTypeAny, {
id: string;
quantity: number;
description?: string | undefined;
internal_note?: string | undefined;
reason_id?: string | undefined;
metadata?: Record<string, unknown> | undefined;
}, {
id: string;
quantity: number;
description?: string | undefined;
internal_note?: string | undefined;
reason_id?: string | undefined;
metadata?: Record<string, unknown> | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
items: {
id: string;
quantity: number;
description?: string | undefined;
internal_note?: string | undefined;
reason_id?: string | undefined;
metadata?: Record<string, unknown> | undefined;
}[];
}, {
items: {
id: string;
quantity: number;
description?: string | undefined;
internal_note?: string | undefined;
reason_id?: string | undefined;
metadata?: Record<string, unknown> | undefined;
}[];
}>;
export type AdminPostReturnsRequestItemsReqSchemaType = z.infer<typeof AdminPostReturnsRequestItemsReqSchema>;
export declare const AdminPostReturnsReceiveItemsReqSchema: z.ZodObject<{
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
quantity: z.ZodNumber;
description: z.ZodOptional<z.ZodString>;
internal_note: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: string;
quantity: number;
description?: string | undefined;
internal_note?: string | undefined;
}, {
id: string;
quantity: number;
description?: string | undefined;
internal_note?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
items: {
id: string;
quantity: number;
description?: string | undefined;
internal_note?: string | undefined;
}[];
}, {
items: {
id: string;
quantity: number;
description?: string | undefined;
internal_note?: string | undefined;
}[];
}>;
export type AdminPostReturnsReceiveItemsReqSchemaType = z.infer<typeof AdminPostReturnsReceiveItemsReqSchema>;
export declare const AdminPostReturnsRequestItemsActionReqSchema: z.ZodObject<{
quantity: z.ZodOptional<z.ZodNumber>;
internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
reason_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
}, "strip", z.ZodTypeAny, {
quantity?: number | undefined;
internal_note?: string | null | undefined;
reason_id?: string | null | undefined;
metadata?: Record<string, unknown> | null | undefined;
}, {
quantity?: number | undefined;
internal_note?: string | null | undefined;
reason_id?: string | null | undefined;
metadata?: Record<string, unknown> | null | undefined;
}>;
export type AdminPostReturnsRequestItemsActionReqSchemaType = z.infer<typeof AdminPostReturnsRequestItemsActionReqSchema>;
export declare const AdminPostReturnsReceiveItemsActionReqSchema: z.ZodObject<{
quantity: z.ZodOptional<z.ZodNumber>;
internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
}, "strip", z.ZodTypeAny, {
quantity?: number | undefined;
internal_note?: string | null | undefined;
}, {
quantity?: number | undefined;
internal_note?: string | null | undefined;
}>;
export type AdminPostReturnsReceiveItemsActionReqSchemaType = z.infer<typeof AdminPostReturnsReceiveItemsActionReqSchema>;
export declare const AdminPostReturnsDismissItemsActionReqSchema: z.ZodObject<{
quantity: z.ZodOptional<z.ZodNumber>;
internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
}, "strip", z.ZodTypeAny, {
quantity?: number | undefined;
internal_note?: string | null | undefined;
}, {
quantity?: number | undefined;
internal_note?: string | null | undefined;
}>;
export type AdminPostReturnsDismissItemsActionReqSchemaType = z.infer<typeof AdminPostReturnsDismissItemsActionReqSchema>;
export declare const AdminPostReturnsConfirmRequestReqSchema: z.ZodObject<{
no_notification: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
no_notification?: boolean | undefined;
}, {
no_notification?: boolean | undefined;
}>;
export type AdminPostReturnsConfirmRequestReqSchemaType = z.infer<typeof AdminPostReturnsConfirmRequestReqSchema>;
//# sourceMappingURL=validators.d.ts.map