Adds a toggle behind the Go button on the Payments page to automatically run the MH batch payment check on a user-selected day of week and hour. Default is off. - Schema: added autoMhCheckEnabled, autoMhCheckDayOfWeek, autoMhCheckHour to User model - Backend: new mhBatchPaymentService (shared logic), GET/PUT /auto-mh-check-setting routes, hourly cron job that fires on matching day+hour - Frontend: toggle + day select (Mon–Sun) + time select (hourly) that persist immediately to DB Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 lines
1.4 KiB
TypeScript
38 lines
1.4 KiB
TypeScript
import * as z from 'zod';
|
|
// prettier-ignore
|
|
export const UserInputSchema = z.object({
|
|
id: z.number().int(),
|
|
username: z.string(),
|
|
password: z.string(),
|
|
autoBackupEnabled: z.boolean(),
|
|
autoBackupHour: z.number().int(),
|
|
usbBackupEnabled: z.boolean(),
|
|
usbBackupHour: z.number().int(),
|
|
autoMhCheckEnabled: z.boolean(),
|
|
autoMhCheckDayOfWeek: z.number().int(),
|
|
autoMhCheckHour: z.number().int(),
|
|
patients: z.array(z.unknown()),
|
|
appointments: z.array(z.unknown()),
|
|
staff: z.array(z.unknown()),
|
|
npiProviders: z.array(z.unknown()),
|
|
claims: z.array(z.unknown()),
|
|
insuranceCredentials: z.array(z.unknown()),
|
|
shoppingVendors: z.array(z.unknown()),
|
|
updatedPayments: z.array(z.unknown()),
|
|
backups: z.array(z.unknown()),
|
|
backupDestinations: z.array(z.unknown()),
|
|
notifications: z.array(z.unknown()),
|
|
cloudFolders: z.array(z.unknown()),
|
|
cloudFiles: z.array(z.unknown()),
|
|
communications: z.array(z.unknown()),
|
|
twilioSettings: z.unknown().optional().nullable(),
|
|
aiSettings: z.unknown().optional().nullable(),
|
|
officeHours: z.unknown().optional().nullable(),
|
|
officeContact: z.unknown().optional().nullable(),
|
|
procedureTimeslot: z.unknown().optional().nullable(),
|
|
insuranceContacts: z.array(z.unknown()),
|
|
patientConversations: z.array(z.unknown())
|
|
}).strict();
|
|
|
|
export type UserInputType = z.infer<typeof UserInputSchema>;
|