@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
324 lines • 10.9 kB
TypeScript
import { z } from 'zod';
export declare const ItemsListParamsSchema: 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">>;
} & {
itemId: z.ZodOptional<z.ZodString>;
online: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Y">, z.ZodLiteral<"N">]>>;
statusCd: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<700>, z.ZodLiteral<704>, z.ZodLiteral<705>]>>;
}, "strip", z.ZodTypeAny, {
limit?: number | undefined;
offset?: number | undefined;
edgeCache?: 3 | 2 | 1 | 4 | 5 | 8 | undefined;
statusCd?: 700 | 704 | 705 | undefined;
itemId?: string | undefined;
online?: "Y" | "N" | undefined;
}, {
limit?: number | undefined;
offset?: number | undefined;
edgeCache?: 3 | 2 | 1 | 4 | "1" | 5 | 8 | "2" | "3" | "4" | "5" | "8" | undefined;
statusCd?: 700 | 704 | 705 | undefined;
itemId?: string | undefined;
online?: "Y" | "N" | undefined;
}>;
/** Item document - key field only, passthrough for API flexibility */
export declare const ItemDocumentSchema: z.ZodObject<{
inv_mast_uid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
inv_mast_uid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
inv_mast_uid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export declare const ItemsListDataSchema: z.ZodArray<z.ZodObject<{
inv_mast_uid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
inv_mast_uid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
inv_mast_uid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
export declare const ItemsListResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodArray<z.ZodObject<{
inv_mast_uid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
inv_mast_uid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
inv_mast_uid: 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<{
inv_mast_uid: 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<{
inv_mast_uid: 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<{
inv_mast_uid: 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<{
inv_mast_uid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
/** Item detail - key field only, passthrough for API flexibility */
export declare const ItemDetailSchema: z.ZodObject<{
invMastUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
invMastUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
invMastUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export declare const ItemDetailResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodObject<{
invMastUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
invMastUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
invMastUid: 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: {
invMastUid: 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: {
invMastUid: 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: {
invMastUid: 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: {
invMastUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
/** Item update request - passthrough for flexible input */
export declare const ItemUpdateRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
export declare const ItemOperationResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodObject<{
invMastUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
invMastUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
invMastUid: 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: {
invMastUid: 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: {
invMastUid: 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: {
invMastUid: 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: {
invMastUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export declare const ItemRefreshResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodObject<{
invMastUid: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
invMastUid: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
invMastUid: 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: {
invMastUid: 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: {
invMastUid: 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: {
invMastUid: 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: {
invMastUid: number;
} & {
[k: string]: unknown;
};
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export type ItemsListParams = z.infer<typeof ItemsListParamsSchema>;
export type ItemDocument = z.infer<typeof ItemDocumentSchema>;
export type ItemsListData = z.infer<typeof ItemsListDataSchema>;
export type ItemsListResponse = z.infer<typeof ItemsListResponseSchema>;
export type ItemDetail = z.infer<typeof ItemDetailSchema>;
export type ItemDetailResponse = z.infer<typeof ItemDetailResponseSchema>;
export type ItemUpdateRequest = z.infer<typeof ItemUpdateRequestSchema>;
export type ItemOperationResponse = z.infer<typeof ItemOperationResponseSchema>;
export type ItemRefreshResponse = z.infer<typeof ItemRefreshResponseSchema>;
//# sourceMappingURL=items.d.ts.map