@medusajs/medusa
Version:
Building blocks for digital commerce
260 lines • 6.42 kB
TypeScript
import { ApiKeyType } from "@medusajs/framework/utils";
import { z } from "zod";
export declare const AdminGetApiKeyParams: z.ZodObject<{
fields: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
fields?: string | undefined;
}, {
fields?: string | undefined;
}>;
export declare const AdminGetApiKeysParamsFields: z.ZodObject<{
q: z.ZodOptional<z.ZodString>;
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
token: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
type: z.ZodOptional<z.ZodNativeEnum<typeof ApiKeyType>>;
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;
}>]>>;
revoked_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, {
q?: string | undefined;
id?: string | string[] | undefined;
title?: string | string[] | undefined;
token?: string | string[] | undefined;
type?: ApiKeyType | undefined;
created_at?: any;
updated_at?: any;
deleted_at?: any;
revoked_at?: any;
}, {
q?: string | undefined;
id?: string | string[] | undefined;
title?: string | string[] | undefined;
token?: string | string[] | undefined;
type?: ApiKeyType | undefined;
created_at?: any;
updated_at?: any;
deleted_at?: any;
revoked_at?: any;
}>;
export type AdminGetApiKeysParamsType = z.infer<typeof AdminGetApiKeysParams>;
export declare const AdminGetApiKeysParams: z.ZodObject<{
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
[x: string]: any;
}, {
[x: string]: any;
}>, "many">>>;
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
[x: string]: any;
}, {
[x: string]: any;
}>, "many">>>;
}, "strip", z.ZodTypeAny, {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
$and?: {
[x: string]: any;
}[] | undefined;
$or?: {
[x: string]: any;
}[] | undefined;
}, {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
$and?: {
[x: string]: any;
}[] | undefined;
$or?: {
[x: string]: any;
}[] | undefined;
}>;
export type AdminCreateApiKeyType = z.infer<typeof AdminCreateApiKey>;
export declare const AdminCreateApiKey: z.ZodObject<{
title: z.ZodString;
type: z.ZodNativeEnum<typeof ApiKeyType>;
}, "strip", z.ZodTypeAny, {
type: ApiKeyType;
title: string;
}, {
type: ApiKeyType;
title: string;
}>;
export type AdminUpdateApiKeyType = z.infer<typeof AdminUpdateApiKey>;
export declare const AdminUpdateApiKey: z.ZodObject<{
title: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
}, {
title: string;
}>;
export type AdminRevokeApiKeyType = z.infer<typeof AdminRevokeApiKey>;
export declare const AdminRevokeApiKey: z.ZodObject<{
revoke_in: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
revoke_in?: number | undefined;
}, {
revoke_in?: number | undefined;
}>;
//# sourceMappingURL=validators.d.ts.map