@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
453 lines • 17.4 kB
TypeScript
import { z } from 'zod';
/** Item variant header - key field only, passthrough for API flexibility */
export declare const ItemVariantHeaderSchema: z.ZodObject<{
itemVariantHdrUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantHdrUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantHdrUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
/** Item variant line - key field only, passthrough for API flexibility */
export declare const ItemVariantLineSchema: z.ZodObject<{
itemVariantLineUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
/** Complete variant with lines - passthrough for API flexibility */
export declare const ItemVariantDetailSchema: z.ZodObject<{
itemVariantHdrUid: z.ZodNumber;
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
itemVariantLineUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantHdrUid: z.ZodNumber;
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
itemVariantLineUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantHdrUid: z.ZodNumber;
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
itemVariantLineUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">>;
}, z.ZodTypeAny, "passthrough">>;
/** Create variant header request - passthrough for flexible input */
export declare const CreateItemVariantHeaderRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
/** Update variant header request - passthrough for flexible input */
export declare const UpdateItemVariantHeaderRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
/** Create variant line request - passthrough for flexible input */
export declare const CreateItemVariantLineRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
/** Update variant line request - passthrough for flexible input */
export declare const UpdateItemVariantLineRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
/** Variant list params - passthrough for flexible input */
export declare const ItemVariantListParamsSchema: z.ZodObject<{
limit: z.ZodOptional<z.ZodNumber>;
offset: z.ZodOptional<z.ZodNumber>;
} & {
edgeCache: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<8>, z.ZodLiteral<"1">, z.ZodLiteral<"2">, z.ZodLiteral<"3">, z.ZodLiteral<"4">, z.ZodLiteral<"5">, z.ZodLiteral<"8">]>, 3 | 2 | 1 | 4 | 5 | 8, 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8">>;
} & {
baseInvMastUid: z.ZodOptional<z.ZodNumber>;
variantType: z.ZodOptional<z.ZodString>;
isActive: z.ZodOptional<z.ZodString>;
orderBy: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
limit?: number | undefined;
offset?: number | undefined;
edgeCache?: 3 | 2 | 1 | 4 | 5 | 8 | undefined;
orderBy?: string | undefined;
isActive?: string | undefined;
baseInvMastUid?: number | undefined;
variantType?: string | undefined;
}, {
limit?: number | undefined;
offset?: number | undefined;
edgeCache?: 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined;
orderBy?: string | undefined;
isActive?: string | undefined;
baseInvMastUid?: number | undefined;
variantType?: string | undefined;
}>;
export declare const ItemVariantHeaderResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodObject<{
itemVariantHdrUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantHdrUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantHdrUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
message: z.ZodString;
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
status: z.ZodNumber;
total: z.ZodNumber;
totalResults: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantHdrUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantHdrUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantHdrUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantHdrUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export declare const ItemVariantHeaderListResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodArray<z.ZodObject<{
itemVariantHdrUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantHdrUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantHdrUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
message: z.ZodString;
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
status: z.ZodNumber;
total: z.ZodNumber;
totalResults: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
params: Record<string, unknown> | unknown[];
data: z.objectOutputType<{
itemVariantHdrUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: z.objectInputType<{
itemVariantHdrUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>, {
params: Record<string, unknown> | unknown[];
data: z.objectOutputType<{
itemVariantHdrUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: z.objectInputType<{
itemVariantHdrUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export declare const ItemVariantLineResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodObject<{
itemVariantLineUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
message: z.ZodString;
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
status: z.ZodNumber;
total: z.ZodNumber;
totalResults: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantLineUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantLineUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantLineUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantLineUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export declare const ItemVariantLineListResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodArray<z.ZodObject<{
itemVariantLineUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
message: z.ZodString;
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
status: z.ZodNumber;
total: z.ZodNumber;
totalResults: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
params: Record<string, unknown> | unknown[];
data: z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>, {
params: Record<string, unknown> | unknown[];
data: z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export declare const ItemVariantDetailResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodObject<{
itemVariantHdrUid: z.ZodNumber;
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
itemVariantLineUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantHdrUid: z.ZodNumber;
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
itemVariantLineUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantHdrUid: z.ZodNumber;
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
itemVariantLineUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">>;
}, z.ZodTypeAny, "passthrough">>;
message: z.ZodString;
options: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
params: z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
status: z.ZodNumber;
total: z.ZodNumber;
totalResults: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantHdrUid: number;
variants?: z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[] | undefined;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantHdrUid: number;
variants?: z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[] | undefined;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantHdrUid: number;
variants?: z.objectOutputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[] | undefined;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
itemVariantHdrUid: number;
variants?: z.objectInputType<{
itemVariantLineUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[] | undefined;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export type ItemVariantHeader = z.infer<typeof ItemVariantHeaderSchema>;
export type ItemVariantLine = z.infer<typeof ItemVariantLineSchema>;
export type ItemVariantDetail = z.infer<typeof ItemVariantDetailSchema>;
export type CreateItemVariantHeaderRequest = z.infer<typeof CreateItemVariantHeaderRequestSchema>;
export type UpdateItemVariantHeaderRequest = z.infer<typeof UpdateItemVariantHeaderRequestSchema>;
export type CreateItemVariantLineRequest = z.infer<typeof CreateItemVariantLineRequestSchema>;
export type UpdateItemVariantLineRequest = z.infer<typeof UpdateItemVariantLineRequestSchema>;
export type ItemVariantListParams = z.infer<typeof ItemVariantListParamsSchema>;
export type ItemVariantHeaderResponse = z.infer<typeof ItemVariantHeaderResponseSchema>;
export type ItemVariantHeaderListResponse = z.infer<typeof ItemVariantHeaderListResponseSchema>;
export type ItemVariantLineResponse = z.infer<typeof ItemVariantLineResponseSchema>;
export type ItemVariantLineListResponse = z.infer<typeof ItemVariantLineListResponseSchema>;
export type ItemVariantDetailResponse = z.infer<typeof ItemVariantDetailResponseSchema>;
//# sourceMappingURL=variants.d.ts.map