@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
39 lines • 1.81 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CashDrawerListParamsSchema = exports.CashDrawerSchema = void 0;
const zod_1 = require("zod");
// Cash Drawer Schema
exports.CashDrawerSchema = zod_1.z.object({
cashDrawerId: zod_1.z.string().max(8),
companyId: zod_1.z.string().max(8),
cashDrawerDescription: zod_1.z.string().max(30),
currentSequenceNo: zod_1.z.number(),
openingBalance: zod_1.z.number().nullable(),
withdrawals: zod_1.z.number().nullable(),
deposits: zod_1.z.number().nullable(),
currentBalance: zod_1.z.number(),
drawerOpen: zod_1.z.string().max(1),
bankNo: zod_1.z.number().nullable(),
cashOnHandAccountNumber: zod_1.z.string().max(32),
deleteFlag: zod_1.z.string().max(1),
dateCreated: zod_1.z.string().regex(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/),
dateLastModified: zod_1.z.string().regex(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/),
lastMaintainedBy: zod_1.z.string().max(30),
cashCardLoad: zod_1.z.number().nullable(),
cashDrawerUid: zod_1.z.number().int(),
locIdForBranchConflict: zod_1.z.number().nullable(),
defaultCloseBranchId: zod_1.z.string().max(8).nullable(),
updateCd: zod_1.z.number().int(),
statusCd: zod_1.z.number().int(),
processCd: zod_1.z.number().int(),
});
// Cash Drawer List Parameters Schema
exports.CashDrawerListParamsSchema = zod_1.z.object({
companyId: zod_1.z.string().optional(),
limit: zod_1.z.number().int().min(1).max(1000).default(10).optional(),
offset: zod_1.z.number().int().min(0).default(0).optional(),
orderBy: zod_1.z.string().default('cash_drawer_uid|ASC').optional(),
q: zod_1.z.string().optional(),
statusCd: zod_1.z.number().int().default(704).optional(),
});
//# sourceMappingURL=cash-drawer.js.map