@nucypher/taco
Version:
### [`nucypher/taco-web`](../../README.md)
49 lines (48 loc) • 1.81 kB
TypeScript
import { z } from 'zod';
export declare const JsonApiConditionType = "json-api";
export declare const jsonApiConditionSchema: z.ZodObject<z.objectUtil.extendShape<{
conditionType: z.ZodString;
}, {
conditionType: z.ZodDefault<z.ZodLiteral<"json-api">>;
endpoint: z.ZodEffects<z.ZodString, string, string>;
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
query: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
authorizationToken: z.ZodOptional<z.ZodString>;
returnValueTest: z.ZodObject<z.objectUtil.extendShape<{
index: z.ZodOptional<z.ZodNumber>;
comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!="]>;
}, {
value: z.ZodType<any, z.ZodTypeDef, any>;
}>, "strip", z.ZodTypeAny, {
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=";
value?: any;
index?: number | undefined;
}, {
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=";
value?: any;
index?: number | undefined;
}>;
}>, "strip", z.ZodTypeAny, {
conditionType: "json-api";
returnValueTest: {
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=";
value?: any;
index?: number | undefined;
};
endpoint: string;
parameters?: Record<string, unknown> | undefined;
query?: string | undefined;
authorizationToken?: string | undefined;
}, {
returnValueTest: {
comparator: "==" | ">" | "<" | ">=" | "<=" | "!=";
value?: any;
index?: number | undefined;
};
endpoint: string;
conditionType?: "json-api" | undefined;
parameters?: Record<string, unknown> | undefined;
query?: string | undefined;
authorizationToken?: string | undefined;
}>;
export type JsonApiConditionProps = z.infer<typeof jsonApiConditionSchema>;