@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
398 lines • 13 kB
TypeScript
import { z } from 'zod';
export declare const InventoryAvailabilitySchema: z.ZodObject<{
inv_mast_uid: z.ZodNumber;
item_id: z.ZodString;
description: z.ZodString;
qty_on_hand: z.ZodNumber;
default_selling_unit: z.ZodString;
type: z.ZodUnion<[z.ZodLiteral<"prophet21">, z.ZodLiteral<"products">]>;
}, "strip", z.ZodTypeAny, {
type: "prophet21" | "products";
description: string;
inv_mast_uid: number;
item_id: string;
qty_on_hand: number;
default_selling_unit: string;
}, {
type: "prophet21" | "products";
description: string;
inv_mast_uid: number;
item_id: string;
qty_on_hand: number;
default_selling_unit: string;
}>;
export declare const InventoryAvailabilityParamsSchema: z.ZodObject<{
q: z.ZodString;
}, "strip", z.ZodTypeAny, {
q: string;
}, {
q: string;
}>;
export declare const InventoryAdjustmentSchema: z.ZodObject<{
inv_mast_uid: z.ZodNumber;
qty_on_hand: z.ZodNumber;
reason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
inv_mast_uid: number;
qty_on_hand: number;
reason?: string | undefined;
}, {
inv_mast_uid: number;
qty_on_hand: number;
reason?: string | undefined;
}>;
export declare const InventoryAdjustRequestSchema: z.ZodObject<{
adjustments: z.ZodArray<z.ZodObject<{
inv_mast_uid: z.ZodNumber;
qty_on_hand: z.ZodNumber;
reason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
inv_mast_uid: number;
qty_on_hand: number;
reason?: string | undefined;
}, {
inv_mast_uid: number;
qty_on_hand: number;
reason?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
adjustments: {
inv_mast_uid: number;
qty_on_hand: number;
reason?: string | undefined;
}[];
}, {
adjustments: {
inv_mast_uid: number;
qty_on_hand: number;
reason?: string | undefined;
}[];
}>;
export declare const InventoryReceiptSchema: z.ZodObject<{
inv_mast_uid: z.ZodNumber;
qty_received: z.ZodNumber;
po_number: z.ZodOptional<z.ZodString>;
lot_number: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
inv_mast_uid: number;
qty_received: number;
po_number?: string | undefined;
lot_number?: string | undefined;
}, {
inv_mast_uid: number;
qty_received: number;
po_number?: string | undefined;
lot_number?: string | undefined;
}>;
export declare const InventoryReceiveRequestSchema: z.ZodObject<{
receipts: z.ZodArray<z.ZodObject<{
inv_mast_uid: z.ZodNumber;
qty_received: z.ZodNumber;
po_number: z.ZodOptional<z.ZodString>;
lot_number: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
inv_mast_uid: number;
qty_received: number;
po_number?: string | undefined;
lot_number?: string | undefined;
}, {
inv_mast_uid: number;
qty_received: number;
po_number?: string | undefined;
lot_number?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
receipts: {
inv_mast_uid: number;
qty_received: number;
po_number?: string | undefined;
lot_number?: string | undefined;
}[];
}, {
receipts: {
inv_mast_uid: number;
qty_received: number;
po_number?: string | undefined;
lot_number?: string | undefined;
}[];
}>;
export declare const TransferItemSchema: z.ZodObject<{
inv_mast_uid: z.ZodNumber;
qty_to_transfer: z.ZodNumber;
reason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
inv_mast_uid: number;
qty_to_transfer: number;
reason?: string | undefined;
}, {
inv_mast_uid: number;
qty_to_transfer: number;
reason?: string | undefined;
}>;
export declare const TransferRequestSchema: z.ZodObject<{
to_warehouse_uid: z.ZodNumber;
transfers: z.ZodArray<z.ZodObject<{
inv_mast_uid: z.ZodNumber;
qty_to_transfer: z.ZodNumber;
reason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
inv_mast_uid: number;
qty_to_transfer: number;
reason?: string | undefined;
}, {
inv_mast_uid: number;
qty_to_transfer: number;
reason?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
to_warehouse_uid: number;
transfers: {
inv_mast_uid: number;
qty_to_transfer: number;
reason?: string | undefined;
}[];
}, {
to_warehouse_uid: number;
transfers: {
inv_mast_uid: number;
qty_to_transfer: number;
reason?: string | undefined;
}[];
}>;
export declare const WarrantyInfoSchema: z.ZodObject<{
model_no: z.ZodOptional<z.ZodString>;
serial_no: z.ZodOptional<z.ZodString>;
warranty_type: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
}, {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
}>;
export declare const UsageItemSchema: z.ZodObject<{
inv_mast_uid: z.ZodNumber;
inv_profile_line_type: z.ZodUnion<[z.ZodLiteral<"prophet21">, z.ZodLiteral<"products">]>;
qty_used: z.ZodNumber;
warranty: z.ZodOptional<z.ZodObject<{
model_no: z.ZodOptional<z.ZodString>;
serial_no: z.ZodOptional<z.ZodString>;
warranty_type: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
}, {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
inv_mast_uid: number;
inv_profile_line_type: "prophet21" | "products";
qty_used: number;
warranty?: {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
} | undefined;
}, {
inv_mast_uid: number;
inv_profile_line_type: "prophet21" | "products";
qty_used: number;
warranty?: {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
} | undefined;
}>;
export declare const UsageRequestSchema: z.ZodObject<{
job_description: z.ZodString;
department: z.ZodOptional<z.ZodString>;
usage_items: z.ZodArray<z.ZodObject<{
inv_mast_uid: z.ZodNumber;
inv_profile_line_type: z.ZodUnion<[z.ZodLiteral<"prophet21">, z.ZodLiteral<"products">]>;
qty_used: z.ZodNumber;
warranty: z.ZodOptional<z.ZodObject<{
model_no: z.ZodOptional<z.ZodString>;
serial_no: z.ZodOptional<z.ZodString>;
warranty_type: z.ZodOptional<z.ZodString>;
notes: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
}, {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
inv_mast_uid: number;
inv_profile_line_type: "prophet21" | "products";
qty_used: number;
warranty?: {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
} | undefined;
}, {
inv_mast_uid: number;
inv_profile_line_type: "prophet21" | "products";
qty_used: number;
warranty?: {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
} | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
job_description: string;
usage_items: {
inv_mast_uid: number;
inv_profile_line_type: "prophet21" | "products";
qty_used: number;
warranty?: {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
} | undefined;
}[];
department?: string | undefined;
}, {
job_description: string;
usage_items: {
inv_mast_uid: number;
inv_profile_line_type: "prophet21" | "products";
qty_used: number;
warranty?: {
notes?: string | undefined;
model_no?: string | undefined;
serial_no?: string | undefined;
warranty_type?: string | undefined;
} | undefined;
}[];
department?: string | undefined;
}>;
export declare const InventoryAvailabilityResponseSchema: z.ZodEffects<z.ZodObject<{
count: z.ZodNumber;
data: z.ZodArray<z.ZodObject<{
inv_mast_uid: z.ZodNumber;
item_id: z.ZodString;
description: z.ZodString;
qty_on_hand: z.ZodNumber;
default_selling_unit: z.ZodString;
type: z.ZodUnion<[z.ZodLiteral<"prophet21">, z.ZodLiteral<"products">]>;
}, "strip", z.ZodTypeAny, {
type: "prophet21" | "products";
description: string;
inv_mast_uid: number;
item_id: string;
qty_on_hand: number;
default_selling_unit: string;
}, {
type: "prophet21" | "products";
description: string;
inv_mast_uid: number;
item_id: string;
qty_on_hand: number;
default_selling_unit: string;
}>, "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: {
type: "prophet21" | "products";
description: string;
inv_mast_uid: number;
item_id: string;
qty_on_hand: number;
default_selling_unit: string;
}[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
type: "prophet21" | "products";
description: string;
inv_mast_uid: number;
item_id: string;
qty_on_hand: number;
default_selling_unit: string;
}[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>, {
params: Record<string, unknown> | unknown[];
data: {
type: "prophet21" | "products";
description: string;
inv_mast_uid: number;
item_id: string;
qty_on_hand: number;
default_selling_unit: string;
}[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}, {
params: Record<string, unknown> | unknown[];
data: {
type: "prophet21" | "products";
description: string;
inv_mast_uid: number;
item_id: string;
qty_on_hand: number;
default_selling_unit: string;
}[];
options: Record<string, unknown> | unknown[];
status: number;
message: string;
count: number;
total: number;
totalResults: number;
}>;
export type InventoryAvailability = z.infer<typeof InventoryAvailabilitySchema>;
export type InventoryAvailabilityParams = z.infer<typeof InventoryAvailabilityParamsSchema>;
export type InventoryAdjustment = z.infer<typeof InventoryAdjustmentSchema>;
export type InventoryAdjustRequest = z.infer<typeof InventoryAdjustRequestSchema>;
export type InventoryReceipt = z.infer<typeof InventoryReceiptSchema>;
export type InventoryReceiveRequest = z.infer<typeof InventoryReceiveRequestSchema>;
export type TransferItem = z.infer<typeof TransferItemSchema>;
export type TransferRequest = z.infer<typeof TransferRequestSchema>;
export type WarrantyInfo = z.infer<typeof WarrantyInfoSchema>;
export type UsageItem = z.infer<typeof UsageItemSchema>;
export type UsageRequest = z.infer<typeof UsageRequestSchema>;
//# sourceMappingURL=inventory.d.ts.map