import z$1, { z } from 'zod'; type EmploymentTypeId = { employmentTypeId: string; }; interface EmploymentType { id: string; title: string; createdAt: string | Date; updatedAt: string | Date; } interface EmploymentTypeCreateInput { id?: string; title: string; countOvertime?: boolean; createdAt?: string | Date; updatedAt?: string | Date; } type EmploymentTypeUpdateInput = Partial; declare const employmentTypeIdSchema: z.ZodObject<{ employmentTypeId: z.ZodString; }, "strip", z.ZodTypeAny, { employmentTypeId: string; }, { employmentTypeId: string; }>; declare const employmentTypeCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; title: z.ZodString; countOvertime: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; id?: string | undefined; countOvertime?: boolean | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }, { title: string; id?: string | undefined; countOvertime?: boolean | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }>; declare const employmentTypeUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; title: z.ZodOptional; countOvertime: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; title?: string | undefined; countOvertime?: boolean | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }, { id?: string | undefined; title?: string | undefined; countOvertime?: boolean | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }>; declare const locationHoursStatsIdSchema: z.ZodObject<{ locationHoursStatsId: z.ZodString; }, "strip", z.ZodTypeAny, { locationHoursStatsId: string; }, { locationHoursStatsId: string; }>; declare const locationHoursStatsCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; locationId: z.ZodOptional; date: z.ZodString; totalHours: z.ZodNumber; positionId: z.ZodOptional>; weekday: z.ZodNumber; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: string; totalHours: number; weekday: number; id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locationId?: string | undefined; positionId?: string | null | undefined; }, { date: string; totalHours: number; weekday: number; id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locationId?: string | undefined; positionId?: string | null | undefined; }>; declare const locationHoursStatsUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; locationId: z.ZodOptional>; date: z.ZodOptional; totalHours: z.ZodOptional; positionId: z.ZodOptional>>; weekday: z.ZodOptional; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locationId?: string | undefined; date?: string | undefined; totalHours?: number | undefined; positionId?: string | null | undefined; weekday?: number | undefined; }, { id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locationId?: string | undefined; date?: string | undefined; totalHours?: number | undefined; positionId?: string | null | undefined; weekday?: number | undefined; }>; declare const locationHoursStatsGetComparisonSchema: z.ZodObject<{ date: z.ZodOptional; }, "strip", z.ZodTypeAny, { date?: string | undefined; }, { date?: string | undefined; }>; type LocationHoursStatsId = { locationHoursStatsId: string; }; interface LocationHoursStats { id: string; locationId: string; date: string; totalHours: number; weekday: number; createdAt: string; updatedAt: string; location?: Location; } interface LocationHoursStatsCreateInput { id?: string; locationId?: string; date: string; totalHours: number; weekday: number; createdAt?: string; updatedAt?: string; } type LocationHoursStatsUpdateInput = Partial; type RosterLocationHoursStatsMap = { [locationId: string]: { [positionId: string]: { [dateKey: string]: { averageHours: number; currentDayHours: number; difference: number; previousWeeksHours: number[]; }; }; total: { [dateKey: string]: { averageHours: number; currentDayHours: number; difference: number; previousWeeksHours: number[]; }; }; }; }; type LocationHoursStatsGetComparisonInput = z.infer; type LocationHoursStatsGetComparisonOutput = { averageHours: number; currentDayHours: number; difference: number; previousWeeksHours: number[]; } | { [positionId: string]: { [dateKey: string]: { averageHours: number; currentDayHours: number; difference: number; previousWeeksHours: number[]; }; }; total: { [dateKey: string]: { averageHours: number; currentDayHours: number; difference: number; previousWeeksHours: number[]; }; }; }; interface RevenueStreams { id: string; idExt: string; rs_total: string; rs_1: string | null; rs_2: string | null; rs_3: string | null; brand: string | null; locationId: string | null; business_segment: string | null; production_value_indicator: string | null; detail_type: string | null; default_pricelist: string | null; default_payment: string | null; default_terms: string | null; active: boolean; customerId: string; createdAt: string; updatedAt: string; customer?: MagnoliCustomer; location?: Location; } interface RevenueStreamsCreateInput { id?: string; idExt: string; rs_total: string; rs_1?: string | null; rs_2?: string | null; rs_3?: string | null; brand?: string | null; locationId?: string | null; business_segment?: string | null; production_value_indicator?: string | null; detail_type?: string | null; default_pricelist?: string | null; default_payment?: string | null; default_terms?: string | null; active?: boolean; customerId?: string; createdAt?: string; updatedAt?: string; } type RevenueStreamsUpdateInput = Partial; declare const revenueStreamsCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; idExt: z.ZodString; rs_total: z.ZodString; rs_1: z.ZodNullable>; rs_2: z.ZodNullable>; rs_3: z.ZodNullable>; brand: z.ZodNullable>; locationId: z.ZodNullable>; business_segment: z.ZodNullable>; production_value_indicator: z.ZodNullable>; detail_type: z.ZodNullable>; default_pricelist: z.ZodNullable>; default_payment: z.ZodNullable>; default_terms: z.ZodNullable>; active: z.ZodOptional; customerId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { idExt: string; rs_total: string; id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locationId?: string | null | undefined; rs_1?: string | null | undefined; rs_2?: string | null | undefined; rs_3?: string | null | undefined; brand?: string | null | undefined; business_segment?: string | null | undefined; production_value_indicator?: string | null | undefined; detail_type?: string | null | undefined; default_pricelist?: string | null | undefined; default_payment?: string | null | undefined; default_terms?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; }, { idExt: string; rs_total: string; id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locationId?: string | null | undefined; rs_1?: string | null | undefined; rs_2?: string | null | undefined; rs_3?: string | null | undefined; brand?: string | null | undefined; business_segment?: string | null | undefined; production_value_indicator?: string | null | undefined; detail_type?: string | null | undefined; default_pricelist?: string | null | undefined; default_payment?: string | null | undefined; default_terms?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; }>; declare const revenueStreamsUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; idExt: z.ZodOptional; rs_total: z.ZodOptional; rs_1: z.ZodOptional>>; rs_2: z.ZodOptional>>; rs_3: z.ZodOptional>>; brand: z.ZodOptional>>; locationId: z.ZodOptional>>; business_segment: z.ZodOptional>>; production_value_indicator: z.ZodOptional>>; detail_type: z.ZodOptional>>; default_pricelist: z.ZodOptional>>; default_payment: z.ZodOptional>>; default_terms: z.ZodOptional>>; active: z.ZodOptional>; customerId: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locationId?: string | null | undefined; idExt?: string | undefined; rs_total?: string | undefined; rs_1?: string | null | undefined; rs_2?: string | null | undefined; rs_3?: string | null | undefined; brand?: string | null | undefined; business_segment?: string | null | undefined; production_value_indicator?: string | null | undefined; detail_type?: string | null | undefined; default_pricelist?: string | null | undefined; default_payment?: string | null | undefined; default_terms?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; }, { id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; locationId?: string | null | undefined; idExt?: string | undefined; rs_total?: string | undefined; rs_1?: string | null | undefined; rs_2?: string | null | undefined; rs_3?: string | null | undefined; brand?: string | null | undefined; business_segment?: string | null | undefined; production_value_indicator?: string | null | undefined; detail_type?: string | null | undefined; default_pricelist?: string | null | undefined; default_payment?: string | null | undefined; default_terms?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; }>; type ClockedShiftHistoryId = { clockedShiftHistoryId: string; }; interface ClockedShiftHistory { id: string; clockedShiftId: string; changedById: string; changeType: string; oldValue: any; newValue: any; reason: string | null; createdAt: string | Date; updatedAt: string | Date; changedBy?: MagnoliUser | null; clockedShift?: ClockedShift | null; } interface ClockedShiftHistoryCreateInput { id?: string; clockedShiftId?: string; changedById?: string; changeType: string; oldValue?: any; newValue?: any; reason?: string | null; createdAt?: string | Date; updatedAt?: string | Date; } type ClockedShiftHistoryUpdateInput = Partial; declare const clockedShiftHistoryIdSchema: z.ZodObject<{ clockedShiftHistoryId: z.ZodString; }, "strip", z.ZodTypeAny, { clockedShiftHistoryId: string; }, { clockedShiftHistoryId: string; }>; declare const clockedShiftHistoryCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; clockedShiftId: z.ZodOptional; changedById: z.ZodOptional; changeType: z.ZodEnum<["APPROVAL_STATUS_CHANGE", "BUSINESS_SEGMENT_CHANGE", "CLOCK_IN_TIME_CHANGE", "CLOCK_OUT_TIME_CHANGE", "DEPARTMENT_CHANGE", "EMPLOYEE_CHANGE", "LOCATION_CHANGE", "MANUAL_CREATION", "MULTIPLE_CHANGES", "NOTES_CHANGE", "STATUS_CHANGE", "SHIFT_BREAK_CHANGE", "TIME_TO_FIRST_ACTIVITY_CHANGE"]>; oldValue: z.ZodOptional; newValue: z.ZodOptional; reason: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { changeType: "APPROVAL_STATUS_CHANGE" | "BUSINESS_SEGMENT_CHANGE" | "CLOCK_IN_TIME_CHANGE" | "CLOCK_OUT_TIME_CHANGE" | "DEPARTMENT_CHANGE" | "EMPLOYEE_CHANGE" | "LOCATION_CHANGE" | "MANUAL_CREATION" | "MULTIPLE_CHANGES" | "NOTES_CHANGE" | "STATUS_CHANGE" | "SHIFT_BREAK_CHANGE" | "TIME_TO_FIRST_ACTIVITY_CHANGE"; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; changedById?: string | undefined; oldValue?: any; newValue?: any; reason?: string | null | undefined; }, { changeType: "APPROVAL_STATUS_CHANGE" | "BUSINESS_SEGMENT_CHANGE" | "CLOCK_IN_TIME_CHANGE" | "CLOCK_OUT_TIME_CHANGE" | "DEPARTMENT_CHANGE" | "EMPLOYEE_CHANGE" | "LOCATION_CHANGE" | "MANUAL_CREATION" | "MULTIPLE_CHANGES" | "NOTES_CHANGE" | "STATUS_CHANGE" | "SHIFT_BREAK_CHANGE" | "TIME_TO_FIRST_ACTIVITY_CHANGE"; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; changedById?: string | undefined; oldValue?: any; newValue?: any; reason?: string | null | undefined; }>; declare const clockedShiftHistoryUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; clockedShiftId: z.ZodOptional>; changedById: z.ZodOptional>; changeType: z.ZodOptional>; oldValue: z.ZodOptional>; newValue: z.ZodOptional>; reason: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; changedById?: string | undefined; changeType?: "APPROVAL_STATUS_CHANGE" | "BUSINESS_SEGMENT_CHANGE" | "CLOCK_IN_TIME_CHANGE" | "CLOCK_OUT_TIME_CHANGE" | "DEPARTMENT_CHANGE" | "EMPLOYEE_CHANGE" | "LOCATION_CHANGE" | "MANUAL_CREATION" | "MULTIPLE_CHANGES" | "NOTES_CHANGE" | "STATUS_CHANGE" | "SHIFT_BREAK_CHANGE" | "TIME_TO_FIRST_ACTIVITY_CHANGE" | undefined; oldValue?: any; newValue?: any; reason?: string | null | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; changedById?: string | undefined; changeType?: "APPROVAL_STATUS_CHANGE" | "BUSINESS_SEGMENT_CHANGE" | "CLOCK_IN_TIME_CHANGE" | "CLOCK_OUT_TIME_CHANGE" | "DEPARTMENT_CHANGE" | "EMPLOYEE_CHANGE" | "LOCATION_CHANGE" | "MANUAL_CREATION" | "MULTIPLE_CHANGES" | "NOTES_CHANGE" | "STATUS_CHANGE" | "SHIFT_BREAK_CHANGE" | "TIME_TO_FIRST_ACTIVITY_CHANGE" | undefined; oldValue?: any; newValue?: any; reason?: string | null | undefined; }>; declare const ClockedShiftChangeType: { readonly APPROVAL_STATUS_CHANGE: "APPROVAL_STATUS_CHANGE"; readonly BUSINESS_SEGMENT_CHANGE: "BUSINESS_SEGMENT_CHANGE"; readonly CLOCK_IN_TIME_CHANGE: "CLOCK_IN_TIME_CHANGE"; readonly CLOCK_OUT_TIME_CHANGE: "CLOCK_OUT_TIME_CHANGE"; readonly DEPARTMENT_CHANGE: "DEPARTMENT_CHANGE"; readonly EMPLOYEE_CHANGE: "EMPLOYEE_CHANGE"; readonly LOCATION_CHANGE: "LOCATION_CHANGE"; readonly MANUAL_CREATION: "MANUAL_CREATION"; readonly MULTIPLE_CHANGES: "MULTIPLE_CHANGES"; readonly NOTES_CHANGE: "NOTES_CHANGE"; readonly STATUS_CHANGE: "STATUS_CHANGE"; readonly TIME_TO_FIRST_ACTIVITY_CHANGE: "TIME_TO_FIRST_ACTIVITY_CHANGE"; readonly SHIFT_BREAK_CHANGE: "SHIFT_BREAK_CHANGE"; }; type ClockedShiftChangeType = keyof typeof ClockedShiftChangeType; type ShiftCommentId = { shiftCommentId: string; }; interface ShiftComment { id: string; content: string; clockedShiftId: string; employeeId: string | null; approverId: string | null; parentId: string | null; isResolved: boolean; createdAt: string | Date; updatedAt: string | Date; author?: { id: string; name: string; email: string; }; approver?: MagnoliUser; clockedShift?: ClockedShift; employee?: Employee; parent?: ShiftComment; replies?: ShiftComment[]; } interface ShiftCommentCreateInput { id?: string; content: string; clockedShiftId?: string; employeeId?: string | null; approverId?: string | null; parentId?: string | null; isResolved?: boolean; createdAt?: string | Date; updatedAt?: string | Date; } type ShiftCommentUpdateInput = Partial; declare const shiftCommentIdSchema: z.ZodObject<{ shiftCommentId: z.ZodString; }, "strip", z.ZodTypeAny, { shiftCommentId: string; }, { shiftCommentId: string; }>; declare const shiftCommentCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; content: z.ZodString; clockedShiftId: z.ZodOptional; employeeId: z.ZodNullable>; approverId: z.ZodNullable>; parentId: z.ZodNullable>; isResolved: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { content: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | null | undefined; approverId?: string | null | undefined; parentId?: string | null | undefined; isResolved?: boolean | undefined; }, { content: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | null | undefined; approverId?: string | null | undefined; parentId?: string | null | undefined; isResolved?: boolean | undefined; }>; declare const shiftCommentUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; content: z.ZodOptional; clockedShiftId: z.ZodOptional>; employeeId: z.ZodOptional>>; approverId: z.ZodOptional>>; parentId: z.ZodOptional>>; isResolved: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; content?: string | undefined; employeeId?: string | null | undefined; approverId?: string | null | undefined; parentId?: string | null | undefined; isResolved?: boolean | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; content?: string | undefined; employeeId?: string | null | undefined; approverId?: string | null | undefined; parentId?: string | null | undefined; isResolved?: boolean | undefined; }>; declare const CommentAuthorTypeEnum: { readonly USER: "USER"; readonly EMPLOYEE: "EMPLOYEE"; }; type CommentAuthorTypeEnum = keyof typeof CommentAuthorTypeEnum; declare const magnoliUserIdSchema: z.ZodObject<{ magnoliUserId: z.ZodString; }, "strip", z.ZodTypeAny, { magnoliUserId: string; }, { magnoliUserId: string; }>; declare const magnoliUserCreateInputSchema: z.ZodEffects; name: z.ZodString; email: z.ZodNullable>; phone: z.ZodNullable>>; avatar: z.ZodNullable>; status: z.ZodOptional>; customerId: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; isVerified: z.ZodOptional; verificationOtp: z.ZodNullable>; verificationOtpExpires: z.ZodNullable>; }, "strip", z.ZodTypeAny, { name: string; status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }, { name: string; status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }>, { name: string; status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }, { name: string; status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }>; declare const magnoliUserUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; name: z.ZodOptional; email: z.ZodOptional>>; phone: z.ZodOptional>>>; avatar: z.ZodOptional>>; status: z.ZodOptional>>; customerId: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; isVerified: z.ZodOptional>; verificationOtp: z.ZodOptional>>; verificationOtpExpires: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; name?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }, { status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; name?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }>; declare const magnoliUserGetInputSchema: z.ZodObject<{ email: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; email: string; }, { id: string; email: string; }>; declare const magnoliUserUpsertInputSchema: z.ZodObject<{ create: z.ZodEffects; name: z.ZodString; email: z.ZodNullable>; phone: z.ZodNullable>>; avatar: z.ZodNullable>; status: z.ZodOptional>; customerId: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; isVerified: z.ZodOptional; verificationOtp: z.ZodNullable>; verificationOtpExpires: z.ZodNullable>; }, "strip", z.ZodTypeAny, { name: string; status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }, { name: string; status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }>, { name: string; status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }, { name: string; status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }>; update: z.ZodObject<{ id: z.ZodOptional>; name: z.ZodOptional; email: z.ZodOptional>>; phone: z.ZodOptional>>>; avatar: z.ZodOptional>>; status: z.ZodOptional>>; customerId: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; isVerified: z.ZodOptional>; verificationOtp: z.ZodOptional>>; verificationOtpExpires: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; name?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }, { status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; name?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }>; }, "strip", z.ZodTypeAny, { create: { name: string; status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }; update: { status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; name?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }; }, { create: { name: string; status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }; update: { status?: "ACTIVE" | "INACTIVE" | "SUSPENDED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | null | undefined; name?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; avatar?: string | null | undefined; isVerified?: boolean | undefined; verificationOtp?: string | null | undefined; verificationOtpExpires?: Date | null | undefined; }; }>; type MagnoliUserId = { magnoliUserId: string; }; interface MagnoliUser { id: string; name: string; email: string | null; phone: string | null; avatar: string | null; status: string; customerId: string | null; createdAt: string | Date; updatedAt: string | Date; isVerified: boolean; verificationOtp: string | null; verificationOtpExpires: string | Date | null; shiftHistoryChanges?: ClockedShiftHistory[] | null; customer?: MagnoliCustomer | null; authoredShifts?: ScheduledShift[] | null; comments?: ShiftComment[] | null; employees?: Employee[] | null; } interface MagnoliUserCreateInput { id?: string; name: string; email?: string | null; phone?: string | null; avatar?: string | null; status?: string; customerId?: string | null; createdAt?: string | Date; updatedAt?: string | Date; isVerified?: boolean; verificationOtp?: string | null; verificationOtpExpires?: string | Date | null; } type MagnoliUserUpdateInput = Partial; type MagnoliUserGetInput = z.infer; type MagnoliUserUpsertInput = z.infer; declare const MagnoliUserStatusEnum: { readonly ACTIVE: "ACTIVE"; readonly INACTIVE: "INACTIVE"; readonly SUSPENDED: "SUSPENDED"; }; type MagnoliUserStatusEnum = keyof typeof MagnoliUserStatusEnum; declare const permissionSlugEnumSchema: z.ZodNativeEnum<{ readonly ALLOW_EARLY_CLOCK_IN: "ALLOW_EARLY_CLOCK_IN"; readonly ALLOW_VIEW_PAYROLL: "ALLOW_VIEW_PAYROLL"; readonly ALLOW_MANAGE_PERMISSIONS: "ALLOW_MANAGE_PERMISSIONS"; readonly ALLOW_UNSCHEDULED_CLOCK_IN: "ALLOW_UNSCHEDULED_CLOCK_IN"; readonly ALLOW_VIEW_EDIT_ROSTER: "ALLOW_VIEW_EDIT_ROSTER"; readonly ALLOW_VIEW_EDIT_EMPLOYEES: "ALLOW_VIEW_EDIT_EMPLOYEES"; readonly ALLOW_VIEW_EDIT_LOCATIONS: "ALLOW_VIEW_EDIT_LOCATIONS"; readonly ALLOW_VIEW_EDIT_POSITIONS: "ALLOW_VIEW_EDIT_POSITIONS"; readonly ALLOW_VIEW_EDIT_BUSINESS_SEGMENTS: "ALLOW_VIEW_EDIT_BUSINESS_SEGMENTS"; readonly ALLOW_VIEW_EDIT_DEPARTMENTS: "ALLOW_VIEW_EDIT_DEPARTMENTS"; readonly ALLOW_VIEW_EDIT_TIME_APPROVALS: "ALLOW_VIEW_EDIT_TIME_APPROVALS"; readonly ALLOW_VIEW_EDIT_B2B_CUSTOMERS: "ALLOW_VIEW_EDIT_B2B_CUSTOMERS"; readonly ALLOW_VIEW_EDIT_CRM_CUSTOMERS: "ALLOW_VIEW_EDIT_CRM_CUSTOMERS"; readonly ALLOW_VIEW_LOT_MANAGER: "ALLOW_VIEW_LOT_MANAGER"; readonly ALLOW_VIEW_ORDERS: "ALLOW_VIEW_ORDERS"; readonly ALLOW_VIEW_EDIT_CUSTOMER_SETTINGS: "ALLOW_VIEW_EDIT_CUSTOMER_SETTINGS"; readonly ALLOW_VIEW_EDIT_COMPANY_SETTINGS: "ALLOW_VIEW_EDIT_COMPANY_SETTINGS"; readonly ALLOW_VIEW_EDIT_NOTIFICATION_SETTINGS: "ALLOW_VIEW_EDIT_NOTIFICATION_SETTINGS"; readonly ALLOW_EDIT_PRO_STATION_SETTINGS: "ALLOW_EDIT_PRO_STATION_SETTINGS"; readonly PRO_DRIVER_MODE: "PRO_DRIVER_MODE"; readonly PRO_ASSISTED_ASSEMBLY_SCAN: "PRO_ASSISTED_ASSEMBLY_SCAN"; readonly PRO_ASSISTED_ASSEMBLY_ADMIN: "PRO_ASSISTED_ASSEMBLY_ADMIN"; readonly ALLOW_ACCESS_POS: "ALLOW_ACCESS_POS"; readonly PRO_SPOTTING: "PRO_SPOTTING"; readonly PRO_PRESSING: "PRO_PRESSING"; readonly PRO_ALTERATION: "PRO_ALTERATION"; readonly PRO_FOLDING: "PRO_FOLDING"; readonly PRO_DISPATCH: "PRO_DISPATCH"; readonly PRO_INSPECTION: "PRO_INSPECTION"; readonly RUN_PAYROLL: "RUN_PAYROLL"; readonly ALLOW_MANAGE_POS_SETTINGS: "ALLOW_MANAGE_POS_SETTINGS"; readonly ALLOW_MANAGE_RACKS: "ALLOW_MANAGE_RACKS"; readonly ALLOW_MANAGE_RULES: "ALLOW_MANAGE_RULES"; readonly ALLOW_VIEW_EDIT_PTO: "ALLOW_VIEW_EDIT_PTO"; readonly ALLOW_DELETE_COMPANY: "ALLOW_DELETE_COMPANY"; readonly ALLOW_VIEW_FINANCIAL_KPIS: "ALLOW_VIEW_FINANCIAL_KPIS"; readonly ALLOW_VIEW_EDIT_ROUTES: "ALLOW_VIEW_EDIT_ROUTES"; readonly ALLOW_EDIT_ORDERS: "ALLOW_EDIT_ORDERS"; }>; declare const permissionAreaEnumSchema: z.ZodNativeEnum<{ readonly HQ: "HQ"; readonly PRO_STATION: "PRO_STATION"; readonly POS: "POS"; readonly CRM: "CRM"; readonly B2B: "B2B"; readonly ADMIN: "ADMIN"; readonly EMPLOYEE_MANAGEMENT: "EMPLOYEE_MANAGEMENT"; readonly FINANCE: "FINANCE"; readonly ROUTES: "ROUTES"; readonly PRODUCTION: "PRODUCTION"; }>; declare const permissionIdSchema: z.ZodObject<{ permissionId: z.ZodString; }, "strip", z.ZodTypeAny, { permissionId: string; }, { permissionId: string; }>; declare const permissionCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; slug: z.ZodNativeEnum<{ readonly ALLOW_EARLY_CLOCK_IN: "ALLOW_EARLY_CLOCK_IN"; readonly ALLOW_VIEW_PAYROLL: "ALLOW_VIEW_PAYROLL"; readonly ALLOW_MANAGE_PERMISSIONS: "ALLOW_MANAGE_PERMISSIONS"; readonly ALLOW_UNSCHEDULED_CLOCK_IN: "ALLOW_UNSCHEDULED_CLOCK_IN"; readonly ALLOW_VIEW_EDIT_ROSTER: "ALLOW_VIEW_EDIT_ROSTER"; readonly ALLOW_VIEW_EDIT_EMPLOYEES: "ALLOW_VIEW_EDIT_EMPLOYEES"; readonly ALLOW_VIEW_EDIT_LOCATIONS: "ALLOW_VIEW_EDIT_LOCATIONS"; readonly ALLOW_VIEW_EDIT_POSITIONS: "ALLOW_VIEW_EDIT_POSITIONS"; readonly ALLOW_VIEW_EDIT_BUSINESS_SEGMENTS: "ALLOW_VIEW_EDIT_BUSINESS_SEGMENTS"; readonly ALLOW_VIEW_EDIT_DEPARTMENTS: "ALLOW_VIEW_EDIT_DEPARTMENTS"; readonly ALLOW_VIEW_EDIT_TIME_APPROVALS: "ALLOW_VIEW_EDIT_TIME_APPROVALS"; readonly ALLOW_VIEW_EDIT_B2B_CUSTOMERS: "ALLOW_VIEW_EDIT_B2B_CUSTOMERS"; readonly ALLOW_VIEW_EDIT_CRM_CUSTOMERS: "ALLOW_VIEW_EDIT_CRM_CUSTOMERS"; readonly ALLOW_VIEW_LOT_MANAGER: "ALLOW_VIEW_LOT_MANAGER"; readonly ALLOW_VIEW_ORDERS: "ALLOW_VIEW_ORDERS"; readonly ALLOW_VIEW_EDIT_CUSTOMER_SETTINGS: "ALLOW_VIEW_EDIT_CUSTOMER_SETTINGS"; readonly ALLOW_VIEW_EDIT_COMPANY_SETTINGS: "ALLOW_VIEW_EDIT_COMPANY_SETTINGS"; readonly ALLOW_VIEW_EDIT_NOTIFICATION_SETTINGS: "ALLOW_VIEW_EDIT_NOTIFICATION_SETTINGS"; readonly ALLOW_EDIT_PRO_STATION_SETTINGS: "ALLOW_EDIT_PRO_STATION_SETTINGS"; readonly PRO_DRIVER_MODE: "PRO_DRIVER_MODE"; readonly PRO_ASSISTED_ASSEMBLY_SCAN: "PRO_ASSISTED_ASSEMBLY_SCAN"; readonly PRO_ASSISTED_ASSEMBLY_ADMIN: "PRO_ASSISTED_ASSEMBLY_ADMIN"; readonly ALLOW_ACCESS_POS: "ALLOW_ACCESS_POS"; readonly PRO_SPOTTING: "PRO_SPOTTING"; readonly PRO_PRESSING: "PRO_PRESSING"; readonly PRO_ALTERATION: "PRO_ALTERATION"; readonly PRO_FOLDING: "PRO_FOLDING"; readonly PRO_DISPATCH: "PRO_DISPATCH"; readonly PRO_INSPECTION: "PRO_INSPECTION"; readonly RUN_PAYROLL: "RUN_PAYROLL"; readonly ALLOW_MANAGE_POS_SETTINGS: "ALLOW_MANAGE_POS_SETTINGS"; readonly ALLOW_MANAGE_RACKS: "ALLOW_MANAGE_RACKS"; readonly ALLOW_MANAGE_RULES: "ALLOW_MANAGE_RULES"; readonly ALLOW_VIEW_EDIT_PTO: "ALLOW_VIEW_EDIT_PTO"; readonly ALLOW_DELETE_COMPANY: "ALLOW_DELETE_COMPANY"; readonly ALLOW_VIEW_FINANCIAL_KPIS: "ALLOW_VIEW_FINANCIAL_KPIS"; readonly ALLOW_VIEW_EDIT_ROUTES: "ALLOW_VIEW_EDIT_ROUTES"; readonly ALLOW_EDIT_ORDERS: "ALLOW_EDIT_ORDERS"; }>; title: z.ZodString; area: z.ZodNativeEnum<{ readonly HQ: "HQ"; readonly PRO_STATION: "PRO_STATION"; readonly POS: "POS"; readonly CRM: "CRM"; readonly B2B: "B2B"; readonly ADMIN: "ADMIN"; readonly EMPLOYEE_MANAGEMENT: "EMPLOYEE_MANAGEMENT"; readonly FINANCE: "FINANCE"; readonly ROUTES: "ROUTES"; readonly PRODUCTION: "PRODUCTION"; }>; description: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; positionIds: z.ZodOptional>; }, "strip", z.ZodTypeAny, { title: string; slug: "ALLOW_EARLY_CLOCK_IN" | "ALLOW_VIEW_PAYROLL" | "ALLOW_MANAGE_PERMISSIONS" | "ALLOW_UNSCHEDULED_CLOCK_IN" | "ALLOW_VIEW_EDIT_ROSTER" | "ALLOW_VIEW_EDIT_EMPLOYEES" | "ALLOW_VIEW_EDIT_LOCATIONS" | "ALLOW_VIEW_EDIT_POSITIONS" | "ALLOW_VIEW_EDIT_BUSINESS_SEGMENTS" | "ALLOW_VIEW_EDIT_DEPARTMENTS" | "ALLOW_VIEW_EDIT_TIME_APPROVALS" | "ALLOW_VIEW_EDIT_B2B_CUSTOMERS" | "ALLOW_VIEW_EDIT_CRM_CUSTOMERS" | "ALLOW_VIEW_LOT_MANAGER" | "ALLOW_VIEW_ORDERS" | "ALLOW_VIEW_EDIT_CUSTOMER_SETTINGS" | "ALLOW_VIEW_EDIT_COMPANY_SETTINGS" | "ALLOW_VIEW_EDIT_NOTIFICATION_SETTINGS" | "ALLOW_EDIT_PRO_STATION_SETTINGS" | "PRO_DRIVER_MODE" | "PRO_ASSISTED_ASSEMBLY_SCAN" | "PRO_ASSISTED_ASSEMBLY_ADMIN" | "ALLOW_ACCESS_POS" | "PRO_SPOTTING" | "PRO_PRESSING" | "PRO_ALTERATION" | "PRO_FOLDING" | "PRO_DISPATCH" | "PRO_INSPECTION" | "RUN_PAYROLL" | "ALLOW_MANAGE_POS_SETTINGS" | "ALLOW_MANAGE_RACKS" | "ALLOW_MANAGE_RULES" | "ALLOW_VIEW_EDIT_PTO" | "ALLOW_DELETE_COMPANY" | "ALLOW_VIEW_FINANCIAL_KPIS" | "ALLOW_VIEW_EDIT_ROUTES" | "ALLOW_EDIT_ORDERS"; area: "HQ" | "PRO_STATION" | "POS" | "CRM" | "B2B" | "ADMIN" | "EMPLOYEE_MANAGEMENT" | "FINANCE" | "ROUTES" | "PRODUCTION"; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; description?: string | null | undefined; positionIds?: string[] | undefined; }, { title: string; slug: "ALLOW_EARLY_CLOCK_IN" | "ALLOW_VIEW_PAYROLL" | "ALLOW_MANAGE_PERMISSIONS" | "ALLOW_UNSCHEDULED_CLOCK_IN" | "ALLOW_VIEW_EDIT_ROSTER" | "ALLOW_VIEW_EDIT_EMPLOYEES" | "ALLOW_VIEW_EDIT_LOCATIONS" | "ALLOW_VIEW_EDIT_POSITIONS" | "ALLOW_VIEW_EDIT_BUSINESS_SEGMENTS" | "ALLOW_VIEW_EDIT_DEPARTMENTS" | "ALLOW_VIEW_EDIT_TIME_APPROVALS" | "ALLOW_VIEW_EDIT_B2B_CUSTOMERS" | "ALLOW_VIEW_EDIT_CRM_CUSTOMERS" | "ALLOW_VIEW_LOT_MANAGER" | "ALLOW_VIEW_ORDERS" | "ALLOW_VIEW_EDIT_CUSTOMER_SETTINGS" | "ALLOW_VIEW_EDIT_COMPANY_SETTINGS" | "ALLOW_VIEW_EDIT_NOTIFICATION_SETTINGS" | "ALLOW_EDIT_PRO_STATION_SETTINGS" | "PRO_DRIVER_MODE" | "PRO_ASSISTED_ASSEMBLY_SCAN" | "PRO_ASSISTED_ASSEMBLY_ADMIN" | "ALLOW_ACCESS_POS" | "PRO_SPOTTING" | "PRO_PRESSING" | "PRO_ALTERATION" | "PRO_FOLDING" | "PRO_DISPATCH" | "PRO_INSPECTION" | "RUN_PAYROLL" | "ALLOW_MANAGE_POS_SETTINGS" | "ALLOW_MANAGE_RACKS" | "ALLOW_MANAGE_RULES" | "ALLOW_VIEW_EDIT_PTO" | "ALLOW_DELETE_COMPANY" | "ALLOW_VIEW_FINANCIAL_KPIS" | "ALLOW_VIEW_EDIT_ROUTES" | "ALLOW_EDIT_ORDERS"; area: "HQ" | "PRO_STATION" | "POS" | "CRM" | "B2B" | "ADMIN" | "EMPLOYEE_MANAGEMENT" | "FINANCE" | "ROUTES" | "PRODUCTION"; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; description?: string | null | undefined; positionIds?: string[] | undefined; }>; declare const permissionUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; slug: z.ZodOptional>; title: z.ZodOptional; area: z.ZodOptional>; description: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; positionIds: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id?: string | undefined; title?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; slug?: "ALLOW_EARLY_CLOCK_IN" | "ALLOW_VIEW_PAYROLL" | "ALLOW_MANAGE_PERMISSIONS" | "ALLOW_UNSCHEDULED_CLOCK_IN" | "ALLOW_VIEW_EDIT_ROSTER" | "ALLOW_VIEW_EDIT_EMPLOYEES" | "ALLOW_VIEW_EDIT_LOCATIONS" | "ALLOW_VIEW_EDIT_POSITIONS" | "ALLOW_VIEW_EDIT_BUSINESS_SEGMENTS" | "ALLOW_VIEW_EDIT_DEPARTMENTS" | "ALLOW_VIEW_EDIT_TIME_APPROVALS" | "ALLOW_VIEW_EDIT_B2B_CUSTOMERS" | "ALLOW_VIEW_EDIT_CRM_CUSTOMERS" | "ALLOW_VIEW_LOT_MANAGER" | "ALLOW_VIEW_ORDERS" | "ALLOW_VIEW_EDIT_CUSTOMER_SETTINGS" | "ALLOW_VIEW_EDIT_COMPANY_SETTINGS" | "ALLOW_VIEW_EDIT_NOTIFICATION_SETTINGS" | "ALLOW_EDIT_PRO_STATION_SETTINGS" | "PRO_DRIVER_MODE" | "PRO_ASSISTED_ASSEMBLY_SCAN" | "PRO_ASSISTED_ASSEMBLY_ADMIN" | "ALLOW_ACCESS_POS" | "PRO_SPOTTING" | "PRO_PRESSING" | "PRO_ALTERATION" | "PRO_FOLDING" | "PRO_DISPATCH" | "PRO_INSPECTION" | "RUN_PAYROLL" | "ALLOW_MANAGE_POS_SETTINGS" | "ALLOW_MANAGE_RACKS" | "ALLOW_MANAGE_RULES" | "ALLOW_VIEW_EDIT_PTO" | "ALLOW_DELETE_COMPANY" | "ALLOW_VIEW_FINANCIAL_KPIS" | "ALLOW_VIEW_EDIT_ROUTES" | "ALLOW_EDIT_ORDERS" | undefined; area?: "HQ" | "PRO_STATION" | "POS" | "CRM" | "B2B" | "ADMIN" | "EMPLOYEE_MANAGEMENT" | "FINANCE" | "ROUTES" | "PRODUCTION" | undefined; description?: string | null | undefined; positionIds?: string[] | undefined; }, { id?: string | undefined; title?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; slug?: "ALLOW_EARLY_CLOCK_IN" | "ALLOW_VIEW_PAYROLL" | "ALLOW_MANAGE_PERMISSIONS" | "ALLOW_UNSCHEDULED_CLOCK_IN" | "ALLOW_VIEW_EDIT_ROSTER" | "ALLOW_VIEW_EDIT_EMPLOYEES" | "ALLOW_VIEW_EDIT_LOCATIONS" | "ALLOW_VIEW_EDIT_POSITIONS" | "ALLOW_VIEW_EDIT_BUSINESS_SEGMENTS" | "ALLOW_VIEW_EDIT_DEPARTMENTS" | "ALLOW_VIEW_EDIT_TIME_APPROVALS" | "ALLOW_VIEW_EDIT_B2B_CUSTOMERS" | "ALLOW_VIEW_EDIT_CRM_CUSTOMERS" | "ALLOW_VIEW_LOT_MANAGER" | "ALLOW_VIEW_ORDERS" | "ALLOW_VIEW_EDIT_CUSTOMER_SETTINGS" | "ALLOW_VIEW_EDIT_COMPANY_SETTINGS" | "ALLOW_VIEW_EDIT_NOTIFICATION_SETTINGS" | "ALLOW_EDIT_PRO_STATION_SETTINGS" | "PRO_DRIVER_MODE" | "PRO_ASSISTED_ASSEMBLY_SCAN" | "PRO_ASSISTED_ASSEMBLY_ADMIN" | "ALLOW_ACCESS_POS" | "PRO_SPOTTING" | "PRO_PRESSING" | "PRO_ALTERATION" | "PRO_FOLDING" | "PRO_DISPATCH" | "PRO_INSPECTION" | "RUN_PAYROLL" | "ALLOW_MANAGE_POS_SETTINGS" | "ALLOW_MANAGE_RACKS" | "ALLOW_MANAGE_RULES" | "ALLOW_VIEW_EDIT_PTO" | "ALLOW_DELETE_COMPANY" | "ALLOW_VIEW_FINANCIAL_KPIS" | "ALLOW_VIEW_EDIT_ROUTES" | "ALLOW_EDIT_ORDERS" | undefined; area?: "HQ" | "PRO_STATION" | "POS" | "CRM" | "B2B" | "ADMIN" | "EMPLOYEE_MANAGEMENT" | "FINANCE" | "ROUTES" | "PRODUCTION" | undefined; description?: string | null | undefined; positionIds?: string[] | undefined; }>; declare const permissionGetSchema: z.ZodObject<{ query: z.ZodObject<{ email: z.ZodOptional; id: z.ZodOptional; employeeId: z.ZodOptional; permissionId: z.ZodOptional; }, "strip", z.ZodTypeAny, { id?: string | undefined; employeeId?: string | undefined; email?: string | undefined; permissionId?: string | undefined; }, { id?: string | undefined; employeeId?: string | undefined; email?: string | undefined; permissionId?: string | undefined; }>; }, "strip", z.ZodTypeAny, { query: { id?: string | undefined; employeeId?: string | undefined; email?: string | undefined; permissionId?: string | undefined; }; }, { query: { id?: string | undefined; employeeId?: string | undefined; email?: string | undefined; permissionId?: string | undefined; }; }>; declare const PermissionAreaEnum: { readonly HQ: "HQ"; readonly PRO_STATION: "PRO_STATION"; readonly POS: "POS"; readonly CRM: "CRM"; readonly B2B: "B2B"; readonly ADMIN: "ADMIN"; readonly EMPLOYEE_MANAGEMENT: "EMPLOYEE_MANAGEMENT"; readonly FINANCE: "FINANCE"; readonly ROUTES: "ROUTES"; readonly PRODUCTION: "PRODUCTION"; }; type PermissionAreaEnum = keyof typeof PermissionAreaEnum; declare const PermissionSlugEnum: { readonly ALLOW_EARLY_CLOCK_IN: "ALLOW_EARLY_CLOCK_IN"; readonly ALLOW_VIEW_PAYROLL: "ALLOW_VIEW_PAYROLL"; readonly ALLOW_MANAGE_PERMISSIONS: "ALLOW_MANAGE_PERMISSIONS"; readonly ALLOW_UNSCHEDULED_CLOCK_IN: "ALLOW_UNSCHEDULED_CLOCK_IN"; readonly ALLOW_VIEW_EDIT_ROSTER: "ALLOW_VIEW_EDIT_ROSTER"; readonly ALLOW_VIEW_EDIT_EMPLOYEES: "ALLOW_VIEW_EDIT_EMPLOYEES"; readonly ALLOW_VIEW_EDIT_LOCATIONS: "ALLOW_VIEW_EDIT_LOCATIONS"; readonly ALLOW_VIEW_EDIT_POSITIONS: "ALLOW_VIEW_EDIT_POSITIONS"; readonly ALLOW_VIEW_EDIT_BUSINESS_SEGMENTS: "ALLOW_VIEW_EDIT_BUSINESS_SEGMENTS"; readonly ALLOW_VIEW_EDIT_DEPARTMENTS: "ALLOW_VIEW_EDIT_DEPARTMENTS"; readonly ALLOW_VIEW_EDIT_TIME_APPROVALS: "ALLOW_VIEW_EDIT_TIME_APPROVALS"; readonly ALLOW_VIEW_EDIT_B2B_CUSTOMERS: "ALLOW_VIEW_EDIT_B2B_CUSTOMERS"; readonly ALLOW_VIEW_EDIT_CRM_CUSTOMERS: "ALLOW_VIEW_EDIT_CRM_CUSTOMERS"; readonly ALLOW_VIEW_LOT_MANAGER: "ALLOW_VIEW_LOT_MANAGER"; readonly ALLOW_VIEW_ORDERS: "ALLOW_VIEW_ORDERS"; readonly ALLOW_VIEW_EDIT_CUSTOMER_SETTINGS: "ALLOW_VIEW_EDIT_CUSTOMER_SETTINGS"; readonly ALLOW_VIEW_EDIT_COMPANY_SETTINGS: "ALLOW_VIEW_EDIT_COMPANY_SETTINGS"; readonly ALLOW_VIEW_EDIT_NOTIFICATION_SETTINGS: "ALLOW_VIEW_EDIT_NOTIFICATION_SETTINGS"; readonly ALLOW_EDIT_PRO_STATION_SETTINGS: "ALLOW_EDIT_PRO_STATION_SETTINGS"; readonly PRO_DRIVER_MODE: "PRO_DRIVER_MODE"; readonly PRO_ASSISTED_ASSEMBLY_SCAN: "PRO_ASSISTED_ASSEMBLY_SCAN"; readonly PRO_ASSISTED_ASSEMBLY_ADMIN: "PRO_ASSISTED_ASSEMBLY_ADMIN"; readonly ALLOW_ACCESS_POS: "ALLOW_ACCESS_POS"; readonly PRO_SPOTTING: "PRO_SPOTTING"; readonly PRO_PRESSING: "PRO_PRESSING"; readonly PRO_ALTERATION: "PRO_ALTERATION"; readonly PRO_FOLDING: "PRO_FOLDING"; readonly PRO_DISPATCH: "PRO_DISPATCH"; readonly PRO_INSPECTION: "PRO_INSPECTION"; readonly RUN_PAYROLL: "RUN_PAYROLL"; readonly ALLOW_MANAGE_POS_SETTINGS: "ALLOW_MANAGE_POS_SETTINGS"; readonly ALLOW_MANAGE_RACKS: "ALLOW_MANAGE_RACKS"; readonly ALLOW_MANAGE_RULES: "ALLOW_MANAGE_RULES"; readonly ALLOW_VIEW_EDIT_PTO: "ALLOW_VIEW_EDIT_PTO"; readonly ALLOW_DELETE_COMPANY: "ALLOW_DELETE_COMPANY"; readonly ALLOW_VIEW_FINANCIAL_KPIS: "ALLOW_VIEW_FINANCIAL_KPIS"; readonly ALLOW_VIEW_EDIT_ROUTES: "ALLOW_VIEW_EDIT_ROUTES"; readonly ALLOW_EDIT_ORDERS: "ALLOW_EDIT_ORDERS"; }; type PermissionSlugEnum = keyof typeof PermissionSlugEnum; type PermissionId = { permissionId: string; }; interface Permission { id: string; slug: PermissionSlugEnum; title: string; area: PermissionAreaEnum; description: string | null; createdAt: string | Date; updatedAt: string | Date; positions?: PermissionPosition[]; } interface PermissionCreateInput { id?: string; slug: PermissionSlugEnum; title: string; area: PermissionAreaEnum; description?: string | null; createdAt?: string | Date; updatedAt?: string | Date; positionIds?: string[]; } type PermissionUpdateInput = Partial; type PermissionGet = z.infer; type PermissionPositionId = { permissionPositionId: string; }; interface PermissionPosition { id: string; permissionId: string; positionId: string; createdAt: string | Date; updatedAt: string | Date; permission?: Permission; position?: Position; } interface PermissionPositionCreateInput { id?: string; permissionId?: string; positionId?: string; createdAt?: string | Date; updatedAt?: string | Date; } type PermissionPositionUpdateInput = Partial; declare const permissionPositionIdSchema: z.ZodObject<{ permissionPositionId: z.ZodString; }, "strip", z.ZodTypeAny, { permissionPositionId: string; }, { permissionPositionId: string; }>; declare const permissionPositionCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; permissionId: z.ZodOptional; positionId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; positionId?: string | undefined; permissionId?: string | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; positionId?: string | undefined; permissionId?: string | undefined; }>; declare const permissionPositionUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; permissionId: z.ZodOptional>; positionId: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; positionId?: string | undefined; permissionId?: string | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; positionId?: string | undefined; permissionId?: string | undefined; }>; type PositionId = { positionId: string; }; interface Position { id: string; title: string; customerId: string; businessSegmentId: string | null; emoji: string | null; createdAt: string | Date; updatedAt: string | Date; DefaultSchedule?: DefaultSchedule[]; employees?: Employee[]; permissions?: PermissionPosition[]; businessSegment?: BusinessSegment; customer?: MagnoliCustomer; scheduledShifts?: ScheduledShift[]; } interface PositionCreateInput { id?: string; title: string; customerId?: string; businessSegmentId: string; emoji?: string | null; createdAt?: string | Date; updatedAt?: string | Date; } type PositionUpdateInput = Partial; declare const positionIdSchema: z.ZodObject<{ positionId: z.ZodString; }, "strip", z.ZodTypeAny, { positionId: string; }, { positionId: string; }>; declare const positionCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; title: z.ZodString; customerId: z.ZodOptional; businessSegmentId: z.ZodString; emoji: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; businessSegmentId: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; emoji?: string | null | undefined; }, { title: string; businessSegmentId: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; emoji?: string | null | undefined; }>; declare const positionUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; title: z.ZodOptional; customerId: z.ZodOptional>; businessSegmentId: z.ZodOptional; emoji: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; title?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; businessSegmentId?: string | undefined; emoji?: string | null | undefined; }, { id?: string | undefined; title?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; businessSegmentId?: string | undefined; emoji?: string | null | undefined; }>; declare const shiftBreakEventIdSchema: z.ZodObject<{ shiftBreakEventId: z.ZodString; }, "strip", z.ZodTypeAny, { shiftBreakEventId: string; }, { shiftBreakEventId: string; }>; declare const shiftBreakEventCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; clockedShiftId: z.ZodOptional; name: z.ZodString; isPaid: z.ZodOptional; startTime: z.ZodDate; endTime: z.ZodNullable>; defaultBreakId: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; defaultBreakIds: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }, { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }>; declare const shiftBreakEventUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; clockedShiftId: z.ZodOptional>; name: z.ZodOptional; isPaid: z.ZodOptional>; startTime: z.ZodOptional; endTime: z.ZodOptional>>; defaultBreakId: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; defaultBreakIds: z.ZodOptional>>>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; name?: string | undefined; isPaid?: boolean | undefined; startTime?: Date | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; name?: string | undefined; isPaid?: boolean | undefined; startTime?: Date | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }>; declare const shiftBreakEventStartSchema: z.ZodObject<{ isPaid: z.ZodBoolean; defaultBreakId: z.ZodString; }, "strip", z.ZodTypeAny, { isPaid: boolean; defaultBreakId: string; }, { isPaid: boolean; defaultBreakId: string; }>; type ShiftBreakEventId = { shiftBreakEventId: string; }; interface ShiftBreakEvent { id: string; clockedShiftId: string; name: string; isPaid: boolean; startTime: string | Date; endTime: string | Date | null; defaultBreakId: string | null; createdAt: string | Date; updatedAt: string | Date; clockedShift?: ClockedShift | null; defaultBreak?: DefaultBreak | null; } interface ShiftBreakEventCreateInput { id?: string; clockedShiftId?: string; name: string; isPaid?: boolean; startTime: string | Date; endTime?: string | Date | null; defaultBreakId?: string | null; defaultBreakIds?: string[] | null; createdAt?: string | Date; updatedAt?: string | Date; } type ShiftBreakEventUpdateInput = Partial; type ShiftBreakEventStartInput = z.infer; declare const defaultBreakCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; isPaid: z.ZodOptional; setOneInHours: z.ZodNullable>; durationMin: z.ZodNumber; customerId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; durationMin: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; isPaid?: boolean | undefined; setOneInHours?: number | null | undefined; }, { name: string; durationMin: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; isPaid?: boolean | undefined; setOneInHours?: number | null | undefined; }>; declare const defaultBreakUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; name: z.ZodOptional; isPaid: z.ZodOptional>; setOneInHours: z.ZodOptional>>; durationMin: z.ZodOptional; customerId: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; name?: string | undefined; isPaid?: boolean | undefined; setOneInHours?: number | null | undefined; durationMin?: number | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; name?: string | undefined; isPaid?: boolean | undefined; setOneInHours?: number | null | undefined; durationMin?: number | undefined; }>; declare const defaultBreakGetInputSchema: z.ZodObject<{ query: z.ZodObject<{ id: z.ZodOptional; name: z.ZodOptional; isPaid: z.ZodNullable>; setOneInHours: z.ZodNullable>; durationMin: z.ZodOptional; customerId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; name?: string | undefined; isPaid?: boolean | null | undefined; setOneInHours?: number | null | undefined; durationMin?: number | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; name?: string | undefined; isPaid?: boolean | null | undefined; setOneInHours?: number | null | undefined; durationMin?: number | undefined; }>; }, "strip", z.ZodTypeAny, { query: { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; name?: string | undefined; isPaid?: boolean | null | undefined; setOneInHours?: number | null | undefined; durationMin?: number | undefined; }; }, { query: { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; name?: string | undefined; isPaid?: boolean | null | undefined; setOneInHours?: number | null | undefined; durationMin?: number | undefined; }; }>; declare const defaultBreaksBulkUpsertSchema: z.ZodArray; isPaid: z.ZodBoolean; name: z.ZodString; setOneInHours: z.ZodNullable>; }, "strip", z.ZodTypeAny, { name: string; isPaid: boolean; durationMin: number; id?: string | undefined; setOneInHours?: number | null | undefined; }, { name: string; isPaid: boolean; durationMin: number; id?: string | undefined; setOneInHours?: number | null | undefined; }>, "many">; interface DefaultBreak { id: string; name: string; isPaid: boolean; setOneInHours: number | null; durationMin: number; customerId: string; createdAt: string | Date; updatedAt: string | Date; customer?: MagnoliCustomer; shiftBreaks?: ShiftBreakEvent[]; defaultSchedules?: DefaultSchedule[]; scheduledShift?: ScheduledShift[]; } interface DefaultBreakCreateInput { id?: string; name: string; isPaid?: boolean; setOneInHours?: number | null; durationMin: number; customerId?: string; createdAt?: string | Date; updatedAt?: string | Date; } type DefaultBreakUpdateInput = Partial; type DefaultBreakGetInput = z.infer; type DefaultBreaksBulkUpsertInput = z.infer; declare const sheduledShiftIdSchema: z.ZodObject<{ scheduledShiftId: z.ZodString; }, "strip", z.ZodTypeAny, { scheduledShiftId: string; }, { scheduledShiftId: string; }>; declare const scheduledShiftCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; startDate: z.ZodDate; endDate: z.ZodDate; startTime: z.ZodString; endTime: z.ZodString; locationId: z.ZodOptional; employeeId: z.ZodNullable>; positionId: z.ZodNullable>; source: z.ZodOptional>>; authorId: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; businessSegmentId: z.ZodNullable>; defaultBreaks: z.ZodOptional>; }, "strip", z.ZodTypeAny, { startTime: string; endTime: string; startDate: Date; endDate: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; positionId?: string | null | undefined; employeeId?: string | null | undefined; businessSegmentId?: string | null | undefined; source?: "DEFAULT" | "MANUAL" | undefined; authorId?: string | null | undefined; defaultBreaks?: string[] | undefined; }, { startTime: string; endTime: string; startDate: Date; endDate: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; positionId?: string | null | undefined; employeeId?: string | null | undefined; businessSegmentId?: string | null | undefined; source?: "DEFAULT" | "MANUAL" | undefined; authorId?: string | null | undefined; defaultBreaks?: string[] | undefined; }>; declare const scheduledShiftUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; startDate: z.ZodOptional; endDate: z.ZodOptional; startTime: z.ZodOptional; endTime: z.ZodOptional; locationId: z.ZodOptional>; employeeId: z.ZodOptional>>; positionId: z.ZodOptional>>; source: z.ZodOptional>>>; authorId: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; businessSegmentId: z.ZodOptional>>; defaultBreaks: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; positionId?: string | null | undefined; employeeId?: string | null | undefined; businessSegmentId?: string | null | undefined; startTime?: string | undefined; endTime?: string | undefined; startDate?: Date | undefined; endDate?: Date | undefined; source?: "DEFAULT" | "MANUAL" | undefined; authorId?: string | null | undefined; defaultBreaks?: string[] | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; positionId?: string | null | undefined; employeeId?: string | null | undefined; businessSegmentId?: string | null | undefined; startTime?: string | undefined; endTime?: string | undefined; startDate?: Date | undefined; endDate?: Date | undefined; source?: "DEFAULT" | "MANUAL" | undefined; authorId?: string | null | undefined; defaultBreaks?: string[] | undefined; }>; declare const scheduledShiftGetByPeriodSchema: z.ZodObject<{ startDate: z.ZodString; positionId: z.ZodOptional; locationId: z.ZodOptional; }, "strip", z.ZodTypeAny, { startDate: string; locationId?: string | undefined; positionId?: string | undefined; }, { startDate: string; locationId?: string | undefined; positionId?: string | undefined; }>; declare const scheduledShiftScheduleDefaultsSchema: z.ZodObject<{ weekStart: z.ZodString; departmentId: z.ZodOptional; employeeIds: z.ZodOptional>; locationId: z.ZodOptional; positionId: z.ZodOptional; }, "strip", z.ZodTypeAny, { weekStart: string; locationId?: string | undefined; positionId?: string | undefined; departmentId?: string | undefined; employeeIds?: string[] | undefined; }, { weekStart: string; locationId?: string | undefined; positionId?: string | undefined; departmentId?: string | undefined; employeeIds?: string[] | undefined; }>; declare const scheduledShiftDeleteEmployeeShiftsForWeekSchema: z.ZodObject<{ employeeId: z.ZodString; startDate: z.ZodString; locationId: z.ZodString; positionId: z.ZodOptional; }, "strip", z.ZodTypeAny, { locationId: string; employeeId: string; startDate: string; positionId?: string | undefined; }, { locationId: string; employeeId: string; startDate: string; positionId?: string | undefined; }>; type ScheduledShiftId = { scheduledShiftId: string; }; interface ScheduledShift { id: string; startDate: string | Date; endDate: string | Date; startTime: string; endTime: string; locationId: string; employeeId: string | null; positionId: string | null; source: string; authorId: string | null; createdAt: string | Date; updatedAt: string | Date; businessSegmentId: string | null; clockedShifts?: ClockedShift[] | null; author?: MagnoliUser | null; businessSegment?: BusinessSegment | null; employee?: Employee | null; location?: Location | null; position?: Position | null; defaultBreaks?: DefaultBreak[] | null; } interface ScheduledShiftCreateInput { id?: string; startDate: string | Date; endDate: string | Date; startTime: string; endTime: string; locationId?: string; employeeId?: string | null; positionId?: string | null; source: string; authorId?: string | null; createdAt?: string | Date; updatedAt?: string | Date; businessSegmentId?: string | null; defaultBreaks?: string[]; } type ScheduledShiftWithTotalPaidDuration = T & { totalPaidDuration: number; }; type ScheduledShiftUpdateInput = Partial; type TimeCategories = { duration: string; shiftId: string; timeSlots: string[]; type: string; }; type RosterScheduledShift = Omit & { defaultBreaks: any[]; timeCategories?: TimeCategories[]; startDate: string; endDate: string; hiddenForDisplay?: boolean; originalStartDate?: string; originalStartTime?: string; }; type ScheduledShiftGetByPeriodRequest = z.infer; type ScheduledShiftScheduleDefaultsRequest = z.infer; type ScheduledShiftScheduleDefaultsResponse = { shifts: Array; period: { start: string; end: string; }; errors?: { employeeId: string; conflictDate: string; error: Error; message: string; }[] | { employeeId: string; startDate: string; endDate: string; error: string; }[]; }; type ScheduledShiftDeleteEmployeeShiftsForWeekRequest = z.infer; declare const ShiftSourceEnum: { readonly DEFAULT: "DEFAULT"; readonly MANUAL: "MANUAL"; }; type ShiftSourceEnum = keyof typeof ShiftSourceEnum; declare const ShiftStatusEnum: { readonly IN_PROGRESS: "IN_PROGRESS"; readonly COMPLETED: "COMPLETED"; }; type ShiftStatusEnum = keyof typeof ShiftStatusEnum; declare const locationIdSchema: z.ZodObject<{ locationId: z.ZodString; }, "strip", z.ZodTypeAny, { locationId: string; }, { locationId: string; }>; declare const locationMetadataSchema: z.ZodNullable>; yelpReviewUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; }, { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; }>>>; routeId: z.ZodNullable>; routeOverridden: z.ZodOptional; comments: z.ZodNullable>; }, "strip", z.ZodTypeAny, { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; }, { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; }>>>; type LocationMetadata = z.infer; declare const locationCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; magnoliCustomerId: z.ZodNullable>; description: z.ZodNullable>; phone: z.ZodNullable>; address1: z.ZodNullable>; address2: z.ZodNullable>; city: z.ZodNullable>; state: z.ZodNullable>; zip: z.ZodNullable>; country: z.ZodNullable>; active: z.ZodOptional; metadata: z.ZodNullable>; yelpReviewUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; }, { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; }>>>; routeId: z.ZodNullable>; routeOverridden: z.ZodOptional; comments: z.ZodNullable>; }, "strip", z.ZodTypeAny, { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; }, { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; }>>>; businessSegmentId: z.ZodNullable>; }, "strip", z.ZodTypeAny, { name: string; id?: string | undefined; active?: boolean | undefined; phone?: string | null | undefined; description?: string | null | undefined; businessSegmentId?: string | null | undefined; magnoliCustomerId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; country?: string | null | undefined; metadata?: { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; } | null | undefined; }, { name: string; id?: string | undefined; active?: boolean | undefined; phone?: string | null | undefined; description?: string | null | undefined; businessSegmentId?: string | null | undefined; magnoliCustomerId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; country?: string | null | undefined; metadata?: { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; } | null | undefined; }>; declare const locationUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodOptional; description: z.ZodNullable>; phone: z.ZodNullable>; address1: z.ZodNullable>; address2: z.ZodNullable>; city: z.ZodNullable>; state: z.ZodNullable>; zip: z.ZodNullable>; country: z.ZodNullable>; active: z.ZodOptional; metadata: z.ZodNullable>; yelpReviewUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; }, { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; }>>>; routeId: z.ZodNullable>; routeOverridden: z.ZodOptional; comments: z.ZodNullable>; }, "strip", z.ZodTypeAny, { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; }, { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; }>>>; businessSegmentId: z.ZodNullable>; }, "strip", z.ZodTypeAny, { id?: string | undefined; active?: boolean | undefined; name?: string | undefined; phone?: string | null | undefined; description?: string | null | undefined; businessSegmentId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; country?: string | null | undefined; metadata?: { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; } | null | undefined; }, { id?: string | undefined; active?: boolean | undefined; name?: string | undefined; phone?: string | null | undefined; description?: string | null | undefined; businessSegmentId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; country?: string | null | undefined; metadata?: { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; } | null | undefined; }>; declare const locationGetInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodOptional; magnoliCustomerId: z.ZodOptional; businessSegmentId: z.ZodNullable>; active: z.ZodOptional; }, "strip", z.ZodTypeAny, { id?: string | undefined; active?: boolean | undefined; name?: string | undefined; businessSegmentId?: string | null | undefined; magnoliCustomerId?: string | undefined; }, { id?: string | undefined; active?: boolean | undefined; name?: string | undefined; businessSegmentId?: string | null | undefined; magnoliCustomerId?: string | undefined; }>; type LocationId = { locationId: string; }; interface Location { id: string; name: string; active: boolean; magnoliCustomerId: string; description?: string | null; phone?: string | null; address1?: string | null; address2?: string | null; city?: string | null; state?: string | null; zip?: string | null; country?: string | null; businessSegmentId?: string | null; createdAt: Date; updatedAt: Date; clockedShifts?: ClockedShift[]; DefaultSchedule?: DefaultSchedule[]; employees?: Employee[]; businessSegment?: BusinessSegment | null; magnoliCustomer?: MagnoliCustomer; hoursStats?: LocationHoursStats[]; revenueStreams?: RevenueStreams[]; scheduledShift?: ScheduledShift[]; metadata?: LocationMetadata; } interface LocationCreateInput { id?: string; name: string; magnoliCustomerId: string; description?: string | null; phone?: string | null; address1?: string | null; address2?: string | null; city?: string | null; state?: string | null; zip?: string | null; country?: string | null; active?: boolean; businessSegmentId?: string | null; metadata?: LocationMetadata; } interface LocationUpdateInput { id?: string; name?: string; description?: string | null; phone?: string | null; address1?: string | null; address2?: string | null; city?: string | null; state?: string | null; zip?: string | null; country?: string | null; active?: boolean; businessSegmentId?: string | null; metadata?: LocationMetadata; } interface LocationGetInput { id?: string; name?: string; customerId?: string; businessSegmentId?: string | null; active?: boolean; } interface ItemClass { id: string; name: string; createdAt: string; updatedAt: string; active: boolean; itemCategories?: ItemCategory[]; } interface ItemClassCreateInput { id?: string; name: string; createdAt?: string; updatedAt?: string; active?: boolean; } type ItemClassUpdateInput = Partial; interface ItemCategory { id: string; name: string; priority: number | null; createdAt: string | Date; updatedAt: string | Date; active: boolean; items?: Item[]; itemClass?: ItemClass; } interface ItemCategoryCreateInput { id?: string; name: string; itemClassId?: string; priority?: number | null; createdAt?: string | Date; updatedAt?: string | Date; active?: boolean; } type ItemCategoryUpdateInput = Partial; interface AssemblyCategory { id: string; name: string; createdAt: string; updatedAt: string; itemTypeServices?: ItemTypeService[]; } interface AssemblyCategoryCreateInput { id?: string; name: string; createdAt?: string; updatedAt?: string; } type AssemblyCategoryUpdateInput = Partial; interface CleaningDepartment { id: string; name: string; createdAt: string; updatedAt: string; itemTypeServices?: ItemTypeService[]; } interface CleaningDepartmentCreateInput { id?: string; name: string; createdAt?: string; updatedAt?: string; } type CleaningDepartmentUpdateInput = Partial; interface FinishingDepartment { id: string; name: string; createdAt: string; updatedAt: string; itemTypeServices?: ItemTypeService[]; } interface FinishingDepartmentCreateInput { id?: string; name: string; createdAt?: string; updatedAt?: string; } type FinishingDepartmentUpdateInput = Partial; interface ContactPreference { id: string; textNotification: boolean; emailNotification: boolean; textPromotion: boolean; emailPromotion: boolean; createdAt: string | Date; updatedAt: string | Date; customers?: Customer[]; } interface ContactPreferenceCreateInput { id?: string; textNotification: boolean; emailNotification: boolean; textPromotion: boolean; emailPromotion: boolean; createdAt?: string | Date; updatedAt?: string | Date; } type ContactPreferenceUpdateInput = Partial; interface CustomerLog { id: string; customerId: string; action: string; type: string; description: string; metadata: any | null; createdAt: string | Date; customer?: Customer; } interface CustomerLogCreateInput { id?: string; customerId?: string; action: string; type: string; description: string; metadata?: any | null; createdAt?: string | Date; } type CustomerLogUpdateInput = Partial; interface CustomerNote { id: string; customerId: string; title: string; content: string; createdBy: string; createdAt: string | Date; updatedAt: string | Date; customer?: Customer; } interface CustomerNoteCreateInput { id?: string; customerId?: string; title: string; content: string; createdBy: string; createdAt?: string | Date; updatedAt?: string | Date; } type CustomerNoteUpdateInput = Partial; interface ExecLog { id: string; executionId: string; execution?: Execution; ts: Date; phase: string; message: string; data: any | null; } declare const LogPhase: { /** Message dispatched/scheduled to queue */ DISPATCH: string; /** Worker called external API/handler */ WORKER_CALL: string; /** Retry scheduled for later */ RETRY_SCHEDULED: string; /** Message sent to dead letter queue */ DLQ: string; /** Execution completed (success or cancelled) */ COMPLETE: string; /** Administrative action (manual intervention) */ ADMIN: string; }; type LogPhase = (typeof LogPhase)[keyof typeof LogPhase]; interface Execution { id: string; occurrenceId: string; occurrence?: Occurrence; status: string; traceId: string | null; createdAt: Date; updatedAt: Date; logs?: ExecLog[]; } interface ExecutionCreateOutput { message: string; execution: { executionId: string; occurrenceId: string; messageId: string; scheduledAt: string; }; } declare const ExecStatus: { PENDING: string; RUNNING: string; SUCCEEDED: string; FAILED: string; DEAD_LETTER: string; CANCELLED: string; }; type ExecStatus = (typeof ExecStatus)[keyof typeof ExecStatus]; interface Occurrence { id: string; taskId: string; task?: Task; scheduledAt: Date; payload: any | null; messageId: string; scheduledSequenceNumber: bigint | null; execution?: Execution | null; createdAt: Date; updatedAt: Date; } declare function createTaskCreateInputSchema(defaultPayloadSchema: T): z.ZodObject<{ id: z.ZodOptional; taskType: z.ZodNativeEnum<{ readonly PICKUP_RECURRING: "pickup.recurring"; readonly INVOICE_CREATION: "invoice.creation"; readonly INVOICE_AUTOPAY: "invoice.autopay"; readonly MANAGER_NOTIFICATION: "manager.notification"; readonly CUSTOMER_SMS_TRANSACTIONAL: "customer.sms.transactional"; readonly CUSTOMER_SMS_PROMOTIONAL: "customer.sms.promotional"; readonly CUSTOMER_EMAIL_TRANSACTIONAL: "customer.email.transactional"; }>; startDate: z.ZodDate; schedule: z.ZodEffects; state: z.ZodDefault>; stopDate: z.ZodNullable>; timezone: z.ZodNullable>; defaultPayload: z.ZodNullable>; firstScheduledAt: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; taskType: z.ZodNativeEnum<{ readonly PICKUP_RECURRING: "pickup.recurring"; readonly INVOICE_CREATION: "invoice.creation"; readonly INVOICE_AUTOPAY: "invoice.autopay"; readonly MANAGER_NOTIFICATION: "manager.notification"; readonly CUSTOMER_SMS_TRANSACTIONAL: "customer.sms.transactional"; readonly CUSTOMER_SMS_PROMOTIONAL: "customer.sms.promotional"; readonly CUSTOMER_EMAIL_TRANSACTIONAL: "customer.email.transactional"; }>; startDate: z.ZodDate; schedule: z.ZodEffects; state: z.ZodDefault>; stopDate: z.ZodNullable>; timezone: z.ZodNullable>; defaultPayload: z.ZodNullable>; firstScheduledAt: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{ id: z.ZodOptional; taskType: z.ZodNativeEnum<{ readonly PICKUP_RECURRING: "pickup.recurring"; readonly INVOICE_CREATION: "invoice.creation"; readonly INVOICE_AUTOPAY: "invoice.autopay"; readonly MANAGER_NOTIFICATION: "manager.notification"; readonly CUSTOMER_SMS_TRANSACTIONAL: "customer.sms.transactional"; readonly CUSTOMER_SMS_PROMOTIONAL: "customer.sms.promotional"; readonly CUSTOMER_EMAIL_TRANSACTIONAL: "customer.email.transactional"; }>; startDate: z.ZodDate; schedule: z.ZodEffects; state: z.ZodDefault>; stopDate: z.ZodNullable>; timezone: z.ZodNullable>; defaultPayload: z.ZodNullable>; firstScheduledAt: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>; declare const taskCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; taskType: z.ZodNativeEnum<{ readonly PICKUP_RECURRING: "pickup.recurring"; readonly INVOICE_CREATION: "invoice.creation"; readonly INVOICE_AUTOPAY: "invoice.autopay"; readonly MANAGER_NOTIFICATION: "manager.notification"; readonly CUSTOMER_SMS_TRANSACTIONAL: "customer.sms.transactional"; readonly CUSTOMER_SMS_PROMOTIONAL: "customer.sms.promotional"; readonly CUSTOMER_EMAIL_TRANSACTIONAL: "customer.email.transactional"; }>; startDate: z.ZodDate; schedule: z.ZodEffects; state: z.ZodDefault>; stopDate: z.ZodNullable>; timezone: z.ZodNullable>; defaultPayload: z.ZodNullable>; firstScheduledAt: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { startDate: Date; state: "ACTIVE" | "PAUSED" | "ARCHIVED"; taskType: "pickup.recurring" | "invoice.creation" | "invoice.autopay" | "manager.notification" | "customer.sms.transactional" | "customer.sms.promotional" | "customer.email.transactional"; schedule: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; stopDate?: Date | null | undefined; timezone?: string | null | undefined; defaultPayload?: any; firstScheduledAt?: Date | null | undefined; }, { startDate: Date; taskType: "pickup.recurring" | "invoice.creation" | "invoice.autopay" | "manager.notification" | "customer.sms.transactional" | "customer.sms.promotional" | "customer.email.transactional"; schedule: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; state?: "ACTIVE" | "PAUSED" | "ARCHIVED" | undefined; stopDate?: Date | null | undefined; timezone?: string | null | undefined; defaultPayload?: any; firstScheduledAt?: Date | null | undefined; }>; declare const taskUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; taskType: z.ZodOptional>; startDate: z.ZodOptional; schedule: z.ZodOptional>; state: z.ZodOptional>>; stopDate: z.ZodOptional>>; timezone: z.ZodOptional>>; defaultPayload: z.ZodOptional>>; firstScheduledAt: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; startDate?: Date | undefined; state?: "ACTIVE" | "PAUSED" | "ARCHIVED" | undefined; taskType?: "pickup.recurring" | "invoice.creation" | "invoice.autopay" | "manager.notification" | "customer.sms.transactional" | "customer.sms.promotional" | "customer.email.transactional" | undefined; schedule?: string | undefined; stopDate?: Date | null | undefined; timezone?: string | null | undefined; defaultPayload?: any; firstScheduledAt?: Date | null | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; startDate?: Date | undefined; state?: "ACTIVE" | "PAUSED" | "ARCHIVED" | undefined; taskType?: "pickup.recurring" | "invoice.creation" | "invoice.autopay" | "manager.notification" | "customer.sms.transactional" | "customer.sms.promotional" | "customer.email.transactional" | undefined; schedule?: string | undefined; stopDate?: Date | null | undefined; timezone?: string | null | undefined; defaultPayload?: any; firstScheduledAt?: Date | null | undefined; }>; declare const recurringInvoiceTaskCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; taskType: z.ZodNativeEnum<{ readonly PICKUP_RECURRING: "pickup.recurring"; readonly INVOICE_CREATION: "invoice.creation"; readonly INVOICE_AUTOPAY: "invoice.autopay"; readonly MANAGER_NOTIFICATION: "manager.notification"; readonly CUSTOMER_SMS_TRANSACTIONAL: "customer.sms.transactional"; readonly CUSTOMER_SMS_PROMOTIONAL: "customer.sms.promotional"; readonly CUSTOMER_EMAIL_TRANSACTIONAL: "customer.email.transactional"; }>; startDate: z.ZodDate; schedule: z.ZodEffects; state: z.ZodDefault>; stopDate: z.ZodNullable>; timezone: z.ZodNullable>; defaultPayload: z.ZodNullable; common: z.ZodObject<{ customerId: z.ZodString; magnoliCustomerId: z.ZodString; }, "strip", z.ZodTypeAny, { customerId: string; magnoliCustomerId: string; }, { customerId: string; magnoliCustomerId: string; }>; }, "strip", z.ZodTypeAny, { data: { customerId: string; customerName: string; timeOfDay: string; paymentTerms: string; }; common: { customerId: string; magnoliCustomerId: string; }; }, { data: { customerId: string; customerName: string; timeOfDay: string; paymentTerms: string; }; common: { customerId: string; magnoliCustomerId: string; }; }>>>; firstScheduledAt: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { startDate: Date; state: "ACTIVE" | "PAUSED" | "ARCHIVED"; taskType: "pickup.recurring" | "invoice.creation" | "invoice.autopay" | "manager.notification" | "customer.sms.transactional" | "customer.sms.promotional" | "customer.email.transactional"; schedule: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; stopDate?: Date | null | undefined; timezone?: string | null | undefined; defaultPayload?: { data: { customerId: string; customerName: string; timeOfDay: string; paymentTerms: string; }; common: { customerId: string; magnoliCustomerId: string; }; } | null | undefined; firstScheduledAt?: Date | null | undefined; }, { startDate: Date; taskType: "pickup.recurring" | "invoice.creation" | "invoice.autopay" | "manager.notification" | "customer.sms.transactional" | "customer.sms.promotional" | "customer.email.transactional"; schedule: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; state?: "ACTIVE" | "PAUSED" | "ARCHIVED" | undefined; stopDate?: Date | null | undefined; timezone?: string | null | undefined; defaultPayload?: { data: { customerId: string; customerName: string; timeOfDay: string; paymentTerms: string; }; common: { customerId: string; magnoliCustomerId: string; }; } | null | undefined; firstScheduledAt?: Date | null | undefined; }>; declare const taskGetSchema: z.ZodObject<{ taskType: z.ZodOptional>; state: z.ZodOptional; page: z.ZodOptional; limit: z.ZodOptional; }, "strip", z.ZodTypeAny, { state?: string | undefined; taskType?: "pickup.recurring" | "invoice.creation" | "invoice.autopay" | "manager.notification" | "customer.sms.transactional" | "customer.sms.promotional" | "customer.email.transactional" | undefined; page?: number | undefined; limit?: number | undefined; }, { state?: string | undefined; taskType?: "pickup.recurring" | "invoice.creation" | "invoice.autopay" | "manager.notification" | "customer.sms.transactional" | "customer.sms.promotional" | "customer.email.transactional" | undefined; page?: number | undefined; limit?: number | undefined; }>; declare const taskGetByIdSchema: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; declare const TaskType: { readonly PICKUP_RECURRING: "pickup.recurring"; readonly INVOICE_CREATION: "invoice.creation"; readonly INVOICE_AUTOPAY: "invoice.autopay"; readonly MANAGER_NOTIFICATION: "manager.notification"; readonly CUSTOMER_SMS_TRANSACTIONAL: "customer.sms.transactional"; readonly CUSTOMER_SMS_PROMOTIONAL: "customer.sms.promotional"; readonly CUSTOMER_EMAIL_TRANSACTIONAL: "customer.email.transactional"; }; type TaskType = (typeof TaskType)[keyof typeof TaskType]; declare const TaskState: { readonly ACTIVE: "ACTIVE"; readonly PAUSED: "PAUSED"; readonly ARCHIVED: "ARCHIVED"; }; type TaskState = (typeof TaskState)[keyof typeof TaskState]; interface Task { id: string; taskType: string; state: string; startDate: Date; stopDate: Date | null; timezone: string | null; defaultPayload: T; schedule: string; createdAt: Date; updatedAt: Date; occurrences?: Occurrence[]; } type TaskCreateInput = z$1.infer; type TaskCreateOutput = { task: Task; firstOccurrence: Occurrence; }; type TaskCancelScheduledOutput = { cancelled: number; note: string; }; type TaskPauseOutput = { note: string; task: Task; }; type TaskReplayExecutionOutput = { message: string; newMessageId: string; newOccurrenceId: string; originalExecutionId: string; scheduledAt: string; }; type TaskUpdateInput = Partial; type TaskEnqueueNextExecutionInput = { occurrenceId: string; taskId: string; taskType: TaskType; currentPayload: any; }; type TasksGetQuery = { customerId?: string; limit?: string | number; magnoliCustomerId?: string; page?: string | number; search?: string; state?: string; taskType?: string; }; type RecurringInvoiceTaskCreateInput = z$1.infer; type RecurringInvoiceApiOutput = { invoice: OrderInvoice | null; reason: "CREATED" | "OVERLAPPING" | "NO_ORDERS"; }; type RecurringInvoiceQueueMsg = QueueMsg<{ schedule: string; data: NonNullable["data"]; metadata: { periodStart: string; periodEnd: string; scheduledAt: string; }; }>; type RecurringPickupQueueMsg = QueueMsg<{ data: PickupRequestCreateInput; common: { customerId?: string; magnoliCustomerId?: string; }; }>; type BusinessDate = string; declare enum TimeSlot { AM = "AM", PM = "PM" } declare const businessDateSchema: z.ZodString; declare const timeSlotSchema: z.ZodNativeEnum; /** * Phone number schemas for API contracts. * * We validate "phone-like" inputs at the API boundary: * - allow common formatting: spaces, dashes, parentheses * - allow optional leading `+` * - allow optional extension markers: ext, ext., extension, x * * NOTE: This is intentionally format validation (digits count) and not a full * country-aware validation. Canonicalization to E.164 should be done on the * backend using the shared phone normalizer. */ declare const phoneLikeSchema: z.ZodEffects; declare const phoneLikeOptionalNullableSchema: z.ZodNullable>>; type Nullable = T | null; type Optional = T | undefined; interface PaginationParams { limit?: string; page?: string; } interface PaginatedOutput { items: T[]; total: number; } type IdSchema = { id: string; }; declare const idSchema: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; declare const paginationSchema: z.ZodObject<{ limit: z.ZodOptional; page: z.ZodOptional; }, "strip", z.ZodTypeAny, { page?: string | undefined; limit?: string | undefined; }, { page?: string | undefined; limit?: string | undefined; }>; interface Paginated { data: T[]; limit: number; page: number; total: number; totalPages: number; } type MessageOutput = { message: string; }; type QueueMsg = { taskId: string; occurrenceId: string; taskType: TaskType; messageId: string; scheduledAt: string; payload: T; }; type TAppType = "hq" | "pos" | "pro-station" | "metal-progetti" | "service"; declare const orderBagIdSchema: z.ZodObject<{ orderBagId: z.ZodString; employeeId: z.ZodOptional; }, "strip", z.ZodTypeAny, { orderBagId: string; employeeId?: string | undefined; }, { orderBagId: string; employeeId?: string | undefined; }>; declare const orderBagCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; barcode: z.ZodNullable>; rackId: z.ZodNullable>; rackedBy: z.ZodNullable>; bagType: z.ZodOptional; shopRackId: z.ZodNullable>; status: z.ZodOptional>; orderItemsIds: z.ZodOptional>; rackName: z.ZodNullable>; slotId: z.ZodNullable>; slotName: z.ZodNullable>; assembledAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: OrderBagStatus | undefined; id?: string | undefined; updatedAt?: Date | undefined; barcode?: string | null | undefined; rackId?: string | null | undefined; rackedBy?: string | null | undefined; bagType?: string | undefined; shopRackId?: string | null | undefined; orderItemsIds?: string[] | undefined; rackName?: string | null | undefined; slotId?: string | null | undefined; slotName?: string | null | undefined; assembledAt?: Date | undefined; }, { status?: OrderBagStatus | undefined; id?: string | undefined; updatedAt?: Date | undefined; barcode?: string | null | undefined; rackId?: string | null | undefined; rackedBy?: string | null | undefined; bagType?: string | undefined; shopRackId?: string | null | undefined; orderItemsIds?: string[] | undefined; rackName?: string | null | undefined; slotId?: string | null | undefined; slotName?: string | null | undefined; assembledAt?: Date | undefined; }>; declare const orderBagUpdateInputSchema: z.ZodObject<{ barcode: z.ZodOptional>>; rackedBy: z.ZodOptional>>; bagType: z.ZodOptional>; shopRackId: z.ZodOptional>>; status: z.ZodOptional>>; orderItemsIds: z.ZodOptional>>; rackName: z.ZodOptional>>; slotId: z.ZodOptional>>; slotName: z.ZodOptional>>; assembledAt: z.ZodOptional>; updatedAt: z.ZodOptional>; } & { employeeId: z.ZodString; rackId: z.ZodString; id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; employeeId: string; rackId: string; status?: OrderBagStatus | undefined; updatedAt?: Date | undefined; barcode?: string | null | undefined; rackedBy?: string | null | undefined; bagType?: string | undefined; shopRackId?: string | null | undefined; orderItemsIds?: string[] | undefined; rackName?: string | null | undefined; slotId?: string | null | undefined; slotName?: string | null | undefined; assembledAt?: Date | undefined; }, { id: string; employeeId: string; rackId: string; status?: OrderBagStatus | undefined; updatedAt?: Date | undefined; barcode?: string | null | undefined; rackedBy?: string | null | undefined; bagType?: string | undefined; shopRackId?: string | null | undefined; orderItemsIds?: string[] | undefined; rackName?: string | null | undefined; slotId?: string | null | undefined; slotName?: string | null | undefined; assembledAt?: Date | undefined; }>; declare enum OrderBagType { GARMENT_BAG = "garment_bag", PREMIUM_GARMENT_BAG = "premium_garment_bag", LAUNDRY_BAG = "laundry_bag", LAUNDRY_BOX = "laundry_box" } interface OrderBag { id: string; barcode: string | null; orderItems?: OrderItem[]; rackId: string | null; rackedBy: string | null; bagType: OrderBagType; assembledAt: string; shopRackId: string | null; shopRack?: ShopRack; status: string; metadata?: any | null; updatedAt: string; } interface OrderBagCreateInput { id?: string; barcode?: string | null; rackId?: string | null; rackedBy?: string | null; bagType?: OrderBagType; assembledAt?: string; shopRackId?: string | null; status?: OrderBagStatus; updatedAt?: string; rackName?: string | null; slotId?: string | null; slotName?: string | null; orderItemsIds?: string[]; } type OrderBagUpdateInput = z.infer; interface ShopRack { id: string; name: string; saleLocationId: string; saleLocation?: MCLocation; orderBags?: OrderBag[]; active: boolean; createdAt: string; updatedAt: string; } interface ShopRackCreateInput { id?: string; name: string; saleLocationId?: string; active?: boolean; createdAt?: string; updatedAt?: string; } type ShopRackUpdateInput = Partial; interface MCLocation { id: string; magnoliCustomerId: string; name: string; magnoliCustomer?: PosMagnoliCustomer; saleOrders?: Order[]; shopRacks?: ShopRack[]; active: boolean; default: boolean; createdAt: string | Date; updatedAt: string | Date; } interface MCLocationCreateInput { id?: string; magnoliCustomerId?: string; name: string; active?: boolean; default?: boolean; createdAt?: string | Date; updatedAt?: string | Date; } type MCLocationUpdateInput = Partial; interface CustomerLocation { id: string; customerId: string; alias: string; name?: string; address1: string; address2: string | null; city: string | null; state: string | null; zip: string | null; country: string | null; active: boolean; createdAt: string | Date; updatedAt: string | Date; customer?: Customer; deliveryOrders?: Order[]; } interface CustomerLocationCreateInput { id?: string; customerId?: string; alias: string; name?: string; address1: string; address2?: string | null; city?: string | null; state?: string | null; zip?: string | null; country?: string | null; active?: boolean; createdAt?: string | Date; updatedAt?: string | Date; metadata?: { routeId?: string | null; routeOverridden?: boolean; comments?: string; } | null; } type CustomerLocationUpdateInput = Partial; interface Option { id: string; name: string; optionCategory: string; createdAt: string | Date; updatedAt: string | Date; active: boolean; displayPrice?: number; OrderItem?: OrderItem[]; priceListItems?: PriceListItems[]; items?: Item[]; } interface OptionCreateInput { id?: string; name: string; optionCategory: string; createdAt?: string | Date; updatedAt?: string | Date; active?: boolean; } type OptionUpdateInput = Partial; interface Service { id: string; name: string; createdAt: string | Date; updatedAt: string | Date; active: boolean; displayPrice?: number; itemTypeServices?: ItemTypeService[]; OrderItem?: OrderItem[]; priceListItems?: PriceListItems[]; } interface ServiceCreateInput { id?: string; name: string; createdAt?: string | Date; updatedAt?: string | Date; active?: boolean; } type ServiceUpdateInput = Partial; type PriceListItemId = { itemId: string; }; type PriceListItems = { id: string; pricelistId: string; valueType: string; value: number; displayPrice?: number | null; active: boolean; alias: string | null; referenceType: string | null; itemId: string | null; itemTypeId: string | null; serviceId: string | null; optionId: string | null; blocker: string | null; createdAt: string; updatedAt: string; item?: Item; itemType?: ItemType; option?: Option; pricelist?: Pricelist; service?: Service; }; type PriceListItemType = { id: string; value: number; displayPrice?: number | null; valueType: string; alias: string | null; referenceType: string | null; active: boolean; itemId: string | null; itemTypeId: string | null; serviceId: string | null; optionId: string | null; pricelistId: string; createdAt: string; updatedAt: string; item?: { id: string; name: string; }; itemType?: { id: string; name: string; }; service?: { id: string; name: string; }; option?: { id: string; name: string; }; blocker?: string; }; type PriceListItemCreateInput = { id?: string; pricelistId?: string; valueType: string; value: number; displayPrice?: number | null; alias?: string | null; referenceType?: string | null; itemId?: string | null; itemTypeId?: string | null; serviceId?: string | null; optionId?: string | null; createdAt?: string; updatedAt?: string; active?: boolean; }; type PriceListItemsUpdateInput = Partial; type PriceListItemsBulkUpdateInput = { items: Partial[]; }; type PriceListItemsCombinationsOutput = { items: Array<{ id: string; name: string; itemTypes: Array<{ id: string; name: string; services: Array<{ id: string; name: string; }>; }>; }>; }; type PriceListItemCombinationsOutput = { items: Array<{ id: string; name: string; }>; itemTypes: Array<{ id: string; name: string; }>; services: Array<{ id: string; name: string; }>; options: Array<{ id: string; name: string; }>; }; type PricelistItemOutput = { id: string; value: number; displayPrice?: number | null; valueType: string; alias?: string | null; blocker?: string | null; referenceType: string | null; active: boolean; pricelistId: string; itemId?: string | null; itemTypeId?: string | null; serviceId?: string | null; optionId?: string | null; createdAt: string; updatedAt: string; item?: { name: string; } | null; itemType?: { name: string; } | null; service?: { name: string; } | null; option?: { name: string; } | null; }; type PriceListItemsOutput = { active: PricelistItemOutput[]; inactive: PricelistItemOutput[]; }; declare const priceListItemInputSchema: z.ZodEffects; value: z.ZodNumber; displayPrice: z.ZodNullable>; alias: z.ZodOptional>; itemId: z.ZodOptional; itemTypeId: z.ZodOptional; optionId: z.ZodOptional>; serviceId: z.ZodOptional; valueType: z.ZodOptional; active: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayPrice?: number | null | undefined; alias?: string | null | undefined; itemId?: string | undefined; itemTypeId?: string | undefined; optionId?: string | null | undefined; serviceId?: string | undefined; valueType?: string | undefined; }, { value: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayPrice?: number | null | undefined; alias?: string | null | undefined; itemId?: string | undefined; itemTypeId?: string | undefined; optionId?: string | null | undefined; serviceId?: string | undefined; valueType?: string | undefined; }>, { value: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayPrice?: number | null | undefined; alias?: string | null | undefined; itemId?: string | undefined; itemTypeId?: string | undefined; optionId?: string | null | undefined; serviceId?: string | undefined; valueType?: string | undefined; }, { value: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayPrice?: number | null | undefined; alias?: string | null | undefined; itemId?: string | undefined; itemTypeId?: string | undefined; optionId?: string | null | undefined; serviceId?: string | undefined; valueType?: string | undefined; }>; declare const priceListItemBulkUpdateInputSchema: z.ZodObject<{ items: z.ZodArray; value: z.ZodNumber; displayPrice: z.ZodNullable>; alias: z.ZodOptional>; itemId: z.ZodOptional; itemTypeId: z.ZodOptional; optionId: z.ZodOptional>; serviceId: z.ZodOptional; valueType: z.ZodOptional; active: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayPrice?: number | null | undefined; alias?: string | null | undefined; itemId?: string | undefined; itemTypeId?: string | undefined; optionId?: string | null | undefined; serviceId?: string | undefined; valueType?: string | undefined; }, { value: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayPrice?: number | null | undefined; alias?: string | null | undefined; itemId?: string | undefined; itemTypeId?: string | undefined; optionId?: string | null | undefined; serviceId?: string | undefined; valueType?: string | undefined; }>, { value: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayPrice?: number | null | undefined; alias?: string | null | undefined; itemId?: string | undefined; itemTypeId?: string | undefined; optionId?: string | null | undefined; serviceId?: string | undefined; valueType?: string | undefined; }, { value: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayPrice?: number | null | undefined; alias?: string | null | undefined; itemId?: string | undefined; itemTypeId?: string | undefined; optionId?: string | null | undefined; serviceId?: string | undefined; valueType?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { items: { value: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayPrice?: number | null | undefined; alias?: string | null | undefined; itemId?: string | undefined; itemTypeId?: string | undefined; optionId?: string | null | undefined; serviceId?: string | undefined; valueType?: string | undefined; }[]; }, { items: { value: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayPrice?: number | null | undefined; alias?: string | null | undefined; itemId?: string | undefined; itemTypeId?: string | undefined; optionId?: string | null | undefined; serviceId?: string | undefined; valueType?: string | undefined; }[]; }>; interface RevenueStream { id: string; name: string; pricelistId: string; createdAt: string; updatedAt: string; active: boolean; orders?: Order[]; pricelist?: Pricelist; } interface RevenueStreamCreateInput { id?: string; name: string; pricelistId?: string; createdAt?: string; updatedAt?: string; active?: boolean; } type RevenueStreamUpdateInput = Partial; type PricelistId = { pricelistId: string; }; type GarmentDetailsConfig = { barcodeSetting: BarcodeSettings; garmentSetting: GarmentDetails; }; type Pricelist = { id: string; magnoliCustomerId: string; name: string; active: boolean; tax: any | null; fees: any | null; garmentDetails?: GarmentDetailsConfig | null; alterationPricelist?: AlterationPricelist[]; orders?: Order[]; priceListItems?: PriceListItems[]; magnoliCustomer?: PosMagnoliCustomer; revenueStreams?: RevenueStream[]; slaDays: number | null; isDefault?: boolean; rules?: PricelistRules | null; priceListRules?: ApiPriceListRule[] | null; displayCompanyName: string | null; displayCompanyAddress1: string | null; displayCompanyAddress2: string | null; displayCompanyPhone: string | null; displayCompanyEmail: string | null; displayCompanyLogo: string | null; displayCompanyWebsite: string | null; displayCompanyCity: string | null; displayCompanyState: string | null; displayCompanyZip: string | null; createdAt: string | Date; updatedAt: string | Date; }; type PricelistCreateInput = { id?: string; magnoliCustomerId?: string; name: string; active?: boolean; tax?: any | null; fees?: any | null; garmentDetails?: GarmentDetailsConfig; slaDays?: number; rules?: PriceListRule[] | PricelistRules; isDefault?: boolean; priceListRules?: PriceListRule[] | PricelistRules; displayCompanyName?: string | null; displayCompanyAddress1?: string | null; displayCompanyAddress2?: string | null; displayCompanyPhone?: string | null; displayCompanyEmail?: string | null; displayCompanyLogo?: string | null; displayCompanyWebsite?: string | null; displayCompanyCity?: string | null; displayCompanyState?: string | null; displayCompanyZip?: string | null; createdAt?: string | Date; updatedAt?: string | Date; }; type PricelistUpdateInput = Partial; type PricelistParamsInput = { customerId?: string; customerName?: string; saleLocationId?: string; deliveryLocationId?: string; magnoliCustomerId: string; }; type PriceListRule = { customerId?: string; locationId?: string; ruleType: "customer" | "location"; }; type PriceListId = { pricelistId: string; }; type ApiPriceListRule = { active: boolean; createdAt: string; customer?: unknown; customerId: string; id: string; location?: never; locationId?: never; pricelistId: string; ruleType: "customer"; updatedAt: string; } | { active: boolean; createdAt: string; customer?: unknown; customerId?: never; id: string; location?: unknown; locationId: string; pricelistId: string; ruleType: "location"; updatedAt: string; }; type PricelistRules = Array<{ customerId: string; locationId?: never; ruleType: "customer"; } | { customerId?: never; locationId: string; ruleType: "location"; }>; type BarcodeSettings = "Required" | "Optional"; type GarmentDetails = "PhotoAndDetailsRequired" | "PhotoRequired" | "RequireDetailsIfNoPhoto" | "RequirePhotoIfNoDetails" | "PhotoAndDetailsOptional"; declare const priceListCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; active: z.ZodDefault>; displayCompanyAddress1: z.ZodUnion<[z.ZodOptional, z.ZodNull]>; displayCompanyAddress2: z.ZodUnion<[z.ZodOptional, z.ZodNull]>; displayCompanyCity: z.ZodUnion<[z.ZodOptional, z.ZodNull]>; displayCompanyEmail: z.ZodUnion<[z.ZodUnion<[z.ZodOptional, z.ZodEffects, null, "">]>, z.ZodNull]>; displayCompanyLogo: z.ZodUnion<[z.ZodOptional, z.ZodNull]>; displayCompanyName: z.ZodUnion<[z.ZodOptional, z.ZodNull]>; displayCompanyPhone: z.ZodUnion<[z.ZodOptional, z.ZodNull]>; displayCompanyState: z.ZodUnion<[z.ZodOptional, z.ZodNull]>; displayCompanyWebsite: z.ZodUnion<[z.ZodUnion<[z.ZodOptional, z.ZodEffects, null, "">]>, z.ZodNull]>; displayCompanyZip: z.ZodUnion<[z.ZodOptional, z.ZodNull]>; fees: z.ZodNullable>; isDefault: z.ZodDefault>; rule: z.ZodOptional; rules: z.ZodOptional>; locationId: z.ZodNullable>; ruleType: z.ZodEnum<["customer", "location"]>; }, "strip", z.ZodTypeAny, { ruleType: "location" | "customer"; locationId?: string | null | undefined; customerId?: string | null | undefined; }, { ruleType: "location" | "customer"; locationId?: string | null | undefined; customerId?: string | null | undefined; }>, "many">>>; slaDays: z.ZodDefault, z.ZodNull]>>; tax: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { active: boolean; name: string; isDefault: boolean; slaDays: number | null; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; displayCompanyAddress1?: string | null | undefined; displayCompanyAddress2?: string | null | undefined; displayCompanyCity?: string | null | undefined; displayCompanyEmail?: string | null | undefined; displayCompanyLogo?: string | null | undefined; displayCompanyName?: string | null | undefined; displayCompanyPhone?: string | null | undefined; displayCompanyState?: string | null | undefined; displayCompanyWebsite?: string | null | undefined; displayCompanyZip?: string | null | undefined; fees?: any; rule?: any; rules?: { ruleType: "location" | "customer"; locationId?: string | null | undefined; customerId?: string | null | undefined; }[] | null | undefined; tax?: any; }, { name: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; displayCompanyAddress1?: string | null | undefined; displayCompanyAddress2?: string | null | undefined; displayCompanyCity?: string | null | undefined; displayCompanyEmail?: string | null | undefined; displayCompanyLogo?: string | null | undefined; displayCompanyName?: string | null | undefined; displayCompanyPhone?: string | null | undefined; displayCompanyState?: string | null | undefined; displayCompanyWebsite?: string | null | undefined; displayCompanyZip?: string | null | undefined; fees?: any; isDefault?: boolean | undefined; rule?: any; rules?: { ruleType: "location" | "customer"; locationId?: string | null | undefined; customerId?: string | null | undefined; }[] | null | undefined; slaDays?: number | null | undefined; tax?: any; }>; declare const priceListIdInputSchema: z.ZodObject<{ pricelistId: z.ZodString; }, "strip", z.ZodTypeAny, { pricelistId: string; }, { pricelistId: string; }>; declare enum OrderLogAction { ORDER_CREATED = "ORDER_CREATED", STATUS_CHANGE = "STATUS_CHANGE", ITEM_ADDED = "ITEM_ADDED", ITEM_REMOVED = "ITEM_REMOVED", ITEM_UPDATED = "ITEM_UPDATED", ITEM_STATUS_CHANGE = "ITEM_STATUS_CHANGE", BAG_STATUS_CHANGE = "BAG_STATUS_CHANGE", BAG_CHANGED = "BAG_UPDATED", ORDER_PROPERTY_CHANGE = "ORDER_PROPERTY_CHANGE", ORDER_TOTAL_CHANGE = "ORDER_TOTAL_CHANGE", ORDER_SPLIT = "ORDER_SPLIT", DRIVER_ASSIGNED = "DRIVER_ASSIGNED", DELIVERED = "DELIVERED", RETURNED = "RETURNED", PAID_PARTIALLY = "PAID_PARTIALLY", PAID_FULLY = "PAID_FULLY", REFUNDED_PARTIALLY = "REFUNDED_PARTIALLY", REFUNDED_FULLY = "REFUNDED_FULLY", PAID = "PAID", VOIDED = "VOIDED", ORDER_PAID = "ORDER_PAID", ORDER_RETURNED = "ORDER_RETURNED", ORDER_STATUS_UPDATED = "ORDER_STATUS_UPDATED", ORDER_DUE_DATE_CHANGED = "ORDER_DUE_DATE_CHANGED", ORDER_PRICE_ADJUSTMENT = "ORDER_PRICE_ADJUSTMENT", ITEM_DETAILED = "ITEM_DETAILED", ITEM_REDETAILED = "ITEM_REDETAILED", ITEM_SENT_BACK = "ITEM_SENT_BACK", ITEM_REDO = "ITEM_REDO", ITEM_RETURNED = "ITEM_RETURNED", ITEM_ADDED_TO_BAG = "ITEM_ADDED_TO_BAG", ITEM_REMOVED_FROM_BAG = "ITEM_REMOVED_FROM_BAG", ITEM_STATUS_CHANGED = "ITEM_STATUS_CHANGED" } type OrderLogInput = { orderId: string; authorId: string; action: OrderLogAction; orderItemId?: string; barcode?: string; details?: Record; }; interface OrderLog { id: string; orderId: string; createdAt: string; order?: Order; action: OrderLogAction | string; authorId: string | null; data: any | null; orderItemId?: string | null; barcode?: string | null; } interface OrderLogCreateInput { id?: string; orderId?: string; createdAt?: string; action: OrderLogAction | string; authorId?: string | null; data?: any | null; orderItemId?: string | null; barcode?: string | null; } type OrderLogUpdateInput = Partial; type CardOnFileSettings = { provider: "card-on-file" | "ipos"; iposAuthToken: string; iposTpn: string; preauthAmountCents: number; }; declare enum PaymentMethodSource { POS = "POS", CRM = "CRM" } declare enum PaymentMethodType { CASH = "CASH", CREDIT_CARD = "CREDIT_CARD", DEBIT_CARD = "DEBIT_CARD", BANK_TRANSFER = "BANK_TRANSFER", EMAIL_INVOICE = "EMAIL_INVOICE", CHECK = "CHECK", OTHER = "OTHER" } interface PaymentMethod { id: string; name: string; type: PaymentMethodType; source?: PaymentMethodSource | null; defaultCurrency: CurrencyEnum | null; magnoliCustomerId: string | null; settings: any | null; global: boolean; active: boolean; createdAt: string | Date; updatedAt: string | Date; } type PaymentMethodSettings = CardOnFileSettings | DejavooSettings | CashSettings | Record; interface PaymentMethodCreateInput { id?: string; name: string; type: PaymentMethodType; source?: PaymentMethodSource | null; defaultCurrency?: CurrencyEnum | null; magnoliCustomerId?: string | null; settings?: PaymentMethodSettings | null; global?: boolean; active?: boolean; createdAt?: string | Date; updatedAt?: string | Date; } type PaymentMethodUpdateInput = Partial; declare const paymentMethodSourceSchema: z.ZodEnum<["POS", "CRM"]>; declare const paymentMethodCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; type: z.ZodNativeEnum; magnoliCustomerId: z.ZodString; source: z.ZodNullable>>; defaultCurrency: z.ZodNullable>>; settings: z.ZodNullable>; global: z.ZodDefault>; active: z.ZodDefault>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: PaymentMethodType; active: boolean; name: string; magnoliCustomerId: string; global: boolean; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; source?: "POS" | "CRM" | null | undefined; defaultCurrency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "NZD" | "CHF" | "JPY" | "UAH" | null | undefined; settings?: any; }, { type: PaymentMethodType; name: string; magnoliCustomerId: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; source?: "POS" | "CRM" | null | undefined; defaultCurrency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "NZD" | "CHF" | "JPY" | "UAH" | null | undefined; settings?: any; global?: boolean | undefined; }>; declare const paymentMethodUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; name: z.ZodOptional; type: z.ZodOptional>; magnoliCustomerId: z.ZodOptional; source: z.ZodOptional>>>; defaultCurrency: z.ZodOptional>>>; settings: z.ZodOptional>>; global: z.ZodOptional>>; active: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: PaymentMethodType | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; name?: string | undefined; source?: "POS" | "CRM" | null | undefined; magnoliCustomerId?: string | undefined; defaultCurrency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "NZD" | "CHF" | "JPY" | "UAH" | null | undefined; settings?: any; global?: boolean | undefined; }, { type?: PaymentMethodType | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; name?: string | undefined; source?: "POS" | "CRM" | null | undefined; magnoliCustomerId?: string | undefined; defaultCurrency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "NZD" | "CHF" | "JPY" | "UAH" | null | undefined; settings?: any; global?: boolean | undefined; }>; type DejavooSettings = { provider: "dejavoo"; [key: string]: unknown; }; type CashSettings = { provider?: never; [key: string]: unknown; }; declare const paymentIdSchema: z.ZodObject<{ paymentId: z.ZodString; }, "strip", z.ZodTypeAny, { paymentId: string; }, { paymentId: string; }>; declare const paymentCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; orderInvoiceId: z.ZodString; amount: z.ZodNumber; status: z.ZodNullable>>; createdBy: z.ZodNullable>; paymentMethodId: z.ZodNullable>; customerCardId: z.ZodNullable>; paymentDate: z.ZodNullable>; currency: z.ZodNullable>>; notes: z.ZodNullable>; reference: z.ZodNullable>; tip: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { amount: number; orderInvoiceId: string; status?: "PENDING" | "FAILED" | "CANCELLED" | "PAID" | "AUTHORIZED" | "DISPUTED" | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; createdBy?: string | null | undefined; paymentMethodId?: string | null | undefined; customerCardId?: string | null | undefined; paymentDate?: Date | null | undefined; currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "NZD" | "CHF" | "JPY" | "UAH" | null | undefined; reference?: any; tip?: number | null | undefined; }, { amount: number; orderInvoiceId: string; status?: "PENDING" | "FAILED" | "CANCELLED" | "PAID" | "AUTHORIZED" | "DISPUTED" | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; createdBy?: string | null | undefined; paymentMethodId?: string | null | undefined; customerCardId?: string | null | undefined; paymentDate?: Date | null | undefined; currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "NZD" | "CHF" | "JPY" | "UAH" | null | undefined; reference?: any; tip?: number | null | undefined; }>; declare const paymentUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; orderInvoiceId: z.ZodOptional; amount: z.ZodOptional; status: z.ZodOptional>>>; createdBy: z.ZodOptional>>; paymentMethodId: z.ZodOptional>>; customerCardId: z.ZodOptional>>; paymentDate: z.ZodOptional>>; currency: z.ZodOptional>>>; notes: z.ZodOptional>>; reference: z.ZodOptional>>; tip: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status?: "PENDING" | "FAILED" | "CANCELLED" | "PAID" | "AUTHORIZED" | "DISPUTED" | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; amount?: number | undefined; notes?: string | null | undefined; orderInvoiceId?: string | undefined; createdBy?: string | null | undefined; paymentMethodId?: string | null | undefined; customerCardId?: string | null | undefined; paymentDate?: Date | null | undefined; currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "NZD" | "CHF" | "JPY" | "UAH" | null | undefined; reference?: any; tip?: number | null | undefined; }, { status?: "PENDING" | "FAILED" | "CANCELLED" | "PAID" | "AUTHORIZED" | "DISPUTED" | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; amount?: number | undefined; notes?: string | null | undefined; orderInvoiceId?: string | undefined; createdBy?: string | null | undefined; paymentMethodId?: string | null | undefined; customerCardId?: string | null | undefined; paymentDate?: Date | null | undefined; currency?: "USD" | "EUR" | "GBP" | "CAD" | "AUD" | "NZD" | "CHF" | "JPY" | "UAH" | null | undefined; reference?: any; tip?: number | null | undefined; }>; declare const payOrderSchema: z.ZodObject<{ orderId: z.ZodString; paymentMethodId: z.ZodString; customerCardId: z.ZodOptional; amount: z.ZodNumber; currency: z.ZodOptional; notes: z.ZodOptional; employeeId: z.ZodString; paymentMethodData: z.ZodOptional>; }, "strip", z.ZodTypeAny, { employeeId: string; amount: number; paymentMethodId: string; orderId: string; notes?: string | undefined; customerCardId?: string | undefined; currency?: string | undefined; paymentMethodData?: { tpn: string; terminalAuthKey: string; } | undefined; }, { employeeId: string; amount: number; paymentMethodId: string; orderId: string; notes?: string | undefined; customerCardId?: string | undefined; currency?: string | undefined; paymentMethodData?: { tpn: string; terminalAuthKey: string; } | undefined; }>; declare const confirmPaymentSchema: z.ZodObject<{ paymentId: z.ZodString; paymentMethodId: z.ZodString; customerCardId: z.ZodOptional; amount: z.ZodNumber; currency: z.ZodOptional; rawData: z.ZodOptional; notes: z.ZodOptional; employeeId: z.ZodString; }, "strip", z.ZodTypeAny, { employeeId: string; amount: number; paymentId: string; paymentMethodId: string; notes?: string | undefined; customerCardId?: string | undefined; currency?: string | undefined; rawData?: any; }, { employeeId: string; amount: number; paymentId: string; paymentMethodId: string; notes?: string | undefined; customerCardId?: string | undefined; currency?: string | undefined; rawData?: any; }>; declare const PaymentStatusEnum: { readonly AUTHORIZED: "AUTHORIZED"; readonly PENDING: "PENDING"; readonly PAID: "PAID"; readonly CANCELLED: "CANCELLED"; readonly FAILED: "FAILED"; readonly DISPUTED: "DISPUTED"; }; type PaymentStatusEnum = keyof typeof PaymentStatusEnum; declare const CurrencyEnum: { readonly USD: "USD"; readonly EUR: "EUR"; readonly GBP: "GBP"; readonly CAD: "CAD"; readonly AUD: "AUD"; readonly NZD: "NZD"; readonly CHF: "CHF"; readonly JPY: "JPY"; readonly UAH: "UAH"; }; type CurrencyEnum = keyof typeof CurrencyEnum; type PaymentId = z.infer; interface Payment { id: string; orderInvoiceId: string; orderInvoice?: OrderInvoice; status: PaymentStatusEnum | null; createdBy: string | null; paymentMethodId: string | null; customerCardId?: string | null; paymentMethod?: PaymentMethod; paymentDate: string | null; amount: number; currency: CurrencyEnum | null; notes: string | null; reference: any | null; tip: number | null; createdAt: string; updatedAt: string; } interface PaymentCreateInput { id?: string; orderInvoiceId: string; status?: PaymentStatusEnum | null; createdBy?: string | null; paymentMethodId?: string | null; customerCardId?: string | null; paymentDate?: string | null; amount: number; currency?: CurrencyEnum | null; notes?: string | null; reference?: any | null; tip?: number | null; createdAt?: string; updatedAt?: string; } type PaymentUpdateInput = Partial; interface PreflightInput { orderId: string; paymentMethodId: string; customerCardId?: string; amount: number; currency: string; employeeId: string; notes?: string; paymentMethodData?: { tpn: string; terminalAuthKey: string; }; } type CreditCardSaleInput = z.infer; type ConfirmPaymentInput = z.infer; declare enum InvoicePaymentQueueStatus { SCHEDULED = "scheduled", PAID = "paid", FAILED = "failed" } type InvoiceAutopayMetadata = { status?: InvoicePaymentQueueStatus; attemptCount: number; lastAttemptAt?: string | null; lastAttemptCardId?: string | null; lastError?: string | null; nextAttemptAt?: string | null; }; type InvoiceAutopayTaskPayload = { invoiceId: string; attempt: number; customerCardId?: string; isManualRetry?: boolean; }; type InvoiceAutopayAttemptResult = { success: boolean; retryInSeconds?: number; reason?: string; }; declare const LocationOwnerEnum: { readonly MAGNOLI_CUSTOMER: "MAGNOLI_CUSTOMER"; readonly COMPANY: "COMPANY"; readonly CUSTOMER: "CUSTOMER"; }; type LocationOwnerEnum = keyof typeof LocationOwnerEnum; interface PosLocation { id: string; magnoliCustomerId: string; customerId: string | null; name: string | null; owner: string; address1: string | null; address2: string | null; city: string | null; state: string | null; zip: string | null; country: string | null; active: boolean; default: boolean; createdAt: string | Date; updatedAt: string | Date; magnoliCustomer?: PosMagnoliCustomer; saleOrders?: Order[]; deliveryOrders?: Order[]; shopRacks?: ShopRack[]; metadata?: { routeId?: string | null; routeOverridden?: boolean; comments?: string; } | null; } interface PosLocationCreateInput { id?: string; magnoliCustomerId: string; name?: string | null; alias?: string | null; address1?: string | null; address2?: string | null; city?: string | null; state?: string | null; zip?: string | null; country?: string | null; active?: boolean; default?: boolean; createdAt?: string | Date; updatedAt?: string | Date; metadata?: { routeId?: string | null; routeOverridden?: boolean; comments?: string; } | null; } type PosLocationUpdateInput = Partial; declare const BusinessLocationTypeEnum: { readonly STORE: "STORE"; readonly ROUTE_STOP: "ROUTE_STOP"; readonly HQ: "HQ"; readonly BUSINESS_ADDRESS: "BUSINESS_ADDRESS"; }; type BusinessLocationTypeEnum = keyof typeof BusinessLocationTypeEnum; interface BusinessLocation { id: string; type: BusinessLocationTypeEnum | null; title: string; description: string | null; phone: string | null; address1: string | null; address2: string | null; city: string | null; state: string | null; zip: string | null; country: string | null; fullAddress: string | null; active: boolean; magnoliCustomerId: string; createdAt: string; updatedAt: string; } interface BusinessLocationCreateInput { id?: string; type?: BusinessLocationTypeEnum | null; title: string; description?: string | null; phone?: string | null; address1?: string | null; address2?: string | null; city?: string | null; state?: string | null; zip?: string | null; country?: string | null; fullAddress?: string | null; active?: boolean; owner?: LocationOwnerEnum; magnoliCustomerId: string; createdAt?: string; updatedAt?: string; } type BusinessLocationUpdateInput = Partial; declare const posLocationCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; magnoliCustomerId: z.ZodNullable>; name: z.ZodNullable>; owner: z.ZodDefault>; address1: z.ZodNullable>; address2: z.ZodNullable>; city: z.ZodNullable>; state: z.ZodNullable>; zip: z.ZodNullable>; country: z.ZodNullable>; active: z.ZodOptional; default: z.ZodOptional; metadata: z.ZodNullable>; yelpReviewUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; }, { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; }>>>; routeId: z.ZodNullable>; routeOverridden: z.ZodOptional; comments: z.ZodNullable>; }, "strip", z.ZodTypeAny, { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; }, { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; }>>>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { owner: "MAGNOLI_CUSTOMER" | "COMPANY" | "CUSTOMER"; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; name?: string | null | undefined; magnoliCustomerId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; country?: string | null | undefined; metadata?: { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; } | null | undefined; default?: boolean | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; name?: string | null | undefined; magnoliCustomerId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; country?: string | null | undefined; metadata?: { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; } | null | undefined; owner?: "MAGNOLI_CUSTOMER" | "COMPANY" | "CUSTOMER" | undefined; default?: boolean | undefined; }>; declare const posLocationUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; magnoliCustomerId: z.ZodOptional>>; name: z.ZodOptional>>; owner: z.ZodOptional>>; address1: z.ZodOptional>>; address2: z.ZodOptional>>; city: z.ZodOptional>>; state: z.ZodOptional>>; zip: z.ZodOptional>>; country: z.ZodOptional>>; active: z.ZodOptional>; default: z.ZodOptional>; metadata: z.ZodOptional>; yelpReviewUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; }, { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; }>>>; routeId: z.ZodNullable>; routeOverridden: z.ZodOptional; comments: z.ZodNullable>; }, "strip", z.ZodTypeAny, { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; }, { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; }>>>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; name?: string | null | undefined; magnoliCustomerId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; country?: string | null | undefined; metadata?: { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; } | null | undefined; owner?: "MAGNOLI_CUSTOMER" | "COMPANY" | "CUSTOMER" | undefined; default?: boolean | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; name?: string | null | undefined; magnoliCustomerId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; country?: string | null | undefined; metadata?: { reviewPageUrl?: { gmbReviewUrl?: string | null | undefined; yelpReviewUrl?: string | null | undefined; } | null | undefined; routeId?: string | null | undefined; routeOverridden?: boolean | undefined; comments?: string | null | undefined; } | null | undefined; owner?: "MAGNOLI_CUSTOMER" | "COMPANY" | "CUSTOMER" | undefined; default?: boolean | undefined; }>; declare const orderInvoiceIdSchema: z.ZodObject<{ orderInvoiceId: z.ZodString; }, "strip", z.ZodTypeAny, { orderInvoiceId: string; }, { orderInvoiceId: string; }>; declare const orderInvoiceCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; orderAmount: z.ZodNumber; dueAmount: z.ZodNumber; createdBy: z.ZodNullable>; status: z.ZodNullable>>; dueDate: z.ZodNullable>; invoiceDate: z.ZodNullable>; paymentDate: z.ZodNullable>; metadata: z.ZodNullable>; paidAmount: z.ZodNullable>; taxAmount: z.ZodNullable>; customerId: z.ZodString; magnoliCustomerId: z.ZodNullable>; displayAmount: z.ZodNullable>; orderIds: z.ZodNullable>>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { customerId: string; orderAmount: number; dueAmount: number; status?: "PENDING" | "CANCELLED" | "PAID" | "DRAFT" | "PARTIALLY_PAID" | "PROCESSED" | "REFUNDED" | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; magnoliCustomerId?: string | null | undefined; metadata?: any; createdBy?: string | null | undefined; paymentDate?: string | null | undefined; dueDate?: string | null | undefined; invoiceDate?: string | null | undefined; paidAmount?: number | null | undefined; taxAmount?: number | null | undefined; displayAmount?: number | null | undefined; orderIds?: string[] | null | undefined; }, { customerId: string; orderAmount: number; dueAmount: number; status?: "PENDING" | "CANCELLED" | "PAID" | "DRAFT" | "PARTIALLY_PAID" | "PROCESSED" | "REFUNDED" | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; magnoliCustomerId?: string | null | undefined; metadata?: any; createdBy?: string | null | undefined; paymentDate?: string | null | undefined; dueDate?: string | null | undefined; invoiceDate?: string | null | undefined; paidAmount?: number | null | undefined; taxAmount?: number | null | undefined; displayAmount?: number | null | undefined; orderIds?: string[] | null | undefined; }>; declare const orderInvoiceUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; orderAmount: z.ZodOptional; dueAmount: z.ZodOptional; createdBy: z.ZodOptional>>; status: z.ZodOptional>>>; dueDate: z.ZodOptional>>; invoiceDate: z.ZodOptional>>; paymentDate: z.ZodOptional>>; metadata: z.ZodOptional>>; paidAmount: z.ZodOptional>>; taxAmount: z.ZodOptional>>; customerId: z.ZodOptional; magnoliCustomerId: z.ZodOptional>>; displayAmount: z.ZodOptional>>; orderIds: z.ZodOptional>>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status?: "PENDING" | "CANCELLED" | "PAID" | "DRAFT" | "PARTIALLY_PAID" | "PROCESSED" | "REFUNDED" | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; magnoliCustomerId?: string | null | undefined; metadata?: any; createdBy?: string | null | undefined; paymentDate?: string | null | undefined; orderAmount?: number | undefined; dueAmount?: number | undefined; dueDate?: string | null | undefined; invoiceDate?: string | null | undefined; paidAmount?: number | null | undefined; taxAmount?: number | null | undefined; displayAmount?: number | null | undefined; orderIds?: string[] | null | undefined; }, { status?: "PENDING" | "CANCELLED" | "PAID" | "DRAFT" | "PARTIALLY_PAID" | "PROCESSED" | "REFUNDED" | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; magnoliCustomerId?: string | null | undefined; metadata?: any; createdBy?: string | null | undefined; paymentDate?: string | null | undefined; orderAmount?: number | undefined; dueAmount?: number | undefined; dueDate?: string | null | undefined; invoiceDate?: string | null | undefined; paidAmount?: number | null | undefined; taxAmount?: number | null | undefined; displayAmount?: number | null | undefined; orderIds?: string[] | null | undefined; }>; declare const InvoiceStatus: { readonly DRAFT: "DRAFT"; readonly PENDING: "PENDING"; readonly PARTIALLY_PAID: "PARTIALLY_PAID"; readonly PROCESSED: "PROCESSED"; readonly PAID: "PAID"; readonly CANCELLED: "CANCELLED"; readonly REFUNDED: "REFUNDED"; }; type InvoiceStatus = keyof typeof InvoiceStatus; interface OrderInvoice { id: string; createdBy?: string; status?: InvoiceStatus; dueDate: string; invoiceDate: string; paymentDate?: string; metadata?: OrderInvoiceMetadata; orderAmount: number; displayAmount?: number | null; paidAmount?: number; notes?: string; terms?: string; taxAmount?: number; dueAmount: number; orders?: Order[]; customer?: Customer; customerId: string | null; magnoliCustomerId: string | null; magnoliCustomer?: PosMagnoliCustomer; payments?: Payment[]; createdAt?: string; updatedAt?: string; } type OrderInvoiceCreateInput = z.infer; type OrderInvoiceUpdateInput = Partial; interface OrderInvoiceCreationInfo { customers: Customer[]; locations: PosLocation[]; status: InvoiceStatus[]; } interface OrderIvoicesGetOutput { data: OrderInvoice[]; metadata: { current: { amounts: { totalDueAmount: number; totalPaidAmount: number; }; overdueInvoices: number; paidInvoices: number; totalInvoices: number; }; overall: { amounts: { totalDueAmount: number; totalPaidAmount: number; }; overdueInvoices: number; paidInvoices: number; totalInvoices: number; }; }; } interface OrderInvoiceAdjustment { total?: number; price?: number; quantity?: number; } interface OrderInvoiceTaskInfo { periodEnd: string; periodStart: string; schedule: string; scheduledAt: string; } interface OrderInvoiceMetadata { adjustments?: OrderInvoiceAdjustment[]; paymentTerms?: string; task?: OrderInvoiceTaskInfo; [k: string]: unknown; } declare const AdjustmentRuleActionEnum: { readonly CHANGE_ORDER_DUE_DATE: "CHANGE_ORDER_DUE_DATE"; }; type AdjustmentRuleActionEnum = keyof typeof AdjustmentRuleActionEnum; interface OrderAdjustmentRule { id: string; name: string; description: string | null; isAuto: boolean; modificationType: string | null; targetType: string | null; targetingRules: { targetType: "order" | "orderItem"; targetId?: string; }[] | null; calculationRules: any | null; actionRules?: AdjustmentRuleActionData | null; magnoliCustomerId: string; magnoliCustomer?: PosMagnoliCustomer; active: boolean; alias?: string | null; dateStart: string | Date | null; dateEnd: string | Date | null; orderAdjustments?: OrderAdjustment[]; createdAt: string | Date; updatedAt: string | Date; } interface ChangeDueDateActionData { daysNumber: number; direction: "less" | "more"; } interface AdjustmentRuleActionData { action: AdjustmentRuleActionEnum; data: Record; } declare const actionRulesSchema: z.ZodNullable; data: z.ZodObject<{ daysNumber: z.ZodNumber; direction: z.ZodEnum<["less", "more"]>; }, "strip", z.ZodTypeAny, { daysNumber: number; direction: "less" | "more"; }, { daysNumber: number; direction: "less" | "more"; }>; }, "strip", z.ZodTypeAny, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }>>>; declare const orderAdjustmentRuleGetInputSchema: z.ZodObject<{ modificationType: z.ZodOptional>; active: z.ZodOptional; targetType: z.ZodOptional>; }, "strip", z.ZodTypeAny, { active?: boolean | undefined; modificationType?: "discount" | "surcharge" | undefined; targetType?: "order" | "orderItem" | undefined; }, { active?: boolean | undefined; modificationType?: "discount" | "surcharge" | undefined; targetType?: "order" | "orderItem" | undefined; }>; declare const orderAdjustmentRuleCreateSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; description: z.ZodOptional; isAuto: z.ZodDefault>; alias: z.ZodNullable>; modificationType: z.ZodEnum<["discount", "surcharge"]>; targetType: z.ZodEnum<["order", "orderItem"]>; targetingRules: z.ZodOptional; calculationRules: z.ZodObject<{ type: z.ZodEnum<["fixed_amount", "percentage"]>; value: z.ZodNumber; displayValue: z.ZodNullable>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: number; type: "fixed_amount" | "percentage"; description?: string | undefined; displayValue?: number | null | undefined; }, { value: number; type: "fixed_amount" | "percentage"; description?: string | undefined; displayValue?: number | null | undefined; }>; actionRules: z.ZodNullable; data: z.ZodObject<{ daysNumber: z.ZodNumber; direction: z.ZodEnum<["less", "more"]>; }, "strip", z.ZodTypeAny, { daysNumber: number; direction: "less" | "more"; }, { daysNumber: number; direction: "less" | "more"; }>; }, "strip", z.ZodTypeAny, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }>>>; pricelistId: z.ZodOptional>; active: z.ZodDefault>; dateStart: z.ZodOptional; dateEnd: z.ZodOptional; }, "strip", z.ZodTypeAny, { active: boolean; name: string; modificationType: "discount" | "surcharge"; targetType: "order" | "orderItem"; isAuto: boolean; calculationRules: { value: number; type: "fixed_amount" | "percentage"; description?: string | undefined; displayValue?: number | null | undefined; }; id?: string | undefined; description?: string | undefined; alias?: string | null | undefined; pricelistId?: string | null | undefined; targetingRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; dateStart?: string | undefined; dateEnd?: string | undefined; }, { name: string; modificationType: "discount" | "surcharge"; targetType: "order" | "orderItem"; calculationRules: { value: number; type: "fixed_amount" | "percentage"; description?: string | undefined; displayValue?: number | null | undefined; }; id?: string | undefined; active?: boolean | undefined; description?: string | undefined; alias?: string | null | undefined; pricelistId?: string | null | undefined; isAuto?: boolean | undefined; targetingRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; dateStart?: string | undefined; dateEnd?: string | undefined; }>; declare const orderAdjustmentRuleUpdateSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodOptional; description: z.ZodOptional; isAuto: z.ZodOptional; alias: z.ZodNullable>; modificationType: z.ZodOptional>; targetType: z.ZodOptional>; targetingRules: z.ZodOptional; calculationRules: z.ZodOptional; value: z.ZodNumber; displayValue: z.ZodNullable>; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: number; type: "fixed_amount" | "percentage"; description?: string | undefined; displayValue?: number | null | undefined; }, { value: number; type: "fixed_amount" | "percentage"; description?: string | undefined; displayValue?: number | null | undefined; }>>; actionRules: z.ZodNullable; data: z.ZodObject<{ daysNumber: z.ZodNumber; direction: z.ZodEnum<["less", "more"]>; }, "strip", z.ZodTypeAny, { daysNumber: number; direction: "less" | "more"; }, { daysNumber: number; direction: "less" | "more"; }>; }, "strip", z.ZodTypeAny, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }>>>; pricelistId: z.ZodOptional>; active: z.ZodOptional; dateStart: z.ZodOptional; dateEnd: z.ZodOptional; }, "strip", z.ZodTypeAny, { id?: string | undefined; active?: boolean | undefined; name?: string | undefined; description?: string | undefined; alias?: string | null | undefined; pricelistId?: string | null | undefined; modificationType?: "discount" | "surcharge" | undefined; targetType?: "order" | "orderItem" | undefined; isAuto?: boolean | undefined; targetingRules?: any; calculationRules?: { value: number; type: "fixed_amount" | "percentage"; description?: string | undefined; displayValue?: number | null | undefined; } | undefined; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; dateStart?: string | undefined; dateEnd?: string | undefined; }, { id?: string | undefined; active?: boolean | undefined; name?: string | undefined; description?: string | undefined; alias?: string | null | undefined; pricelistId?: string | null | undefined; modificationType?: "discount" | "surcharge" | undefined; targetType?: "order" | "orderItem" | undefined; isAuto?: boolean | undefined; targetingRules?: any; calculationRules?: { value: number; type: "fixed_amount" | "percentage"; description?: string | undefined; displayValue?: number | null | undefined; } | undefined; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; dateStart?: string | undefined; dateEnd?: string | undefined; }>; declare const ruleIdParamsSchema: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; declare const orderAdjustmentRuleOutputSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodNullable; isAuto: z.ZodBoolean; modificationType: z.ZodNullable; targetType: z.ZodNullable; targetingRules: z.ZodNullable; calculationRules: z.ZodNullable; actionRules: z.ZodOptional; data: z.ZodObject<{ daysNumber: z.ZodNumber; direction: z.ZodEnum<["less", "more"]>; }, "strip", z.ZodTypeAny, { daysNumber: number; direction: "less" | "more"; }, { daysNumber: number; direction: "less" | "more"; }>; }, "strip", z.ZodTypeAny, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }>>>>>; magnoliCustomerId: z.ZodString; pricelistId: z.ZodNullable; active: z.ZodBoolean; dateStart: z.ZodNullable; dateEnd: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; pricelist: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }, { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }>; declare const orderAdjustmentRulesListOutputSchema: z.ZodObject<{ rules: z.ZodArray; isAuto: z.ZodBoolean; modificationType: z.ZodNullable; targetType: z.ZodNullable; targetingRules: z.ZodNullable; calculationRules: z.ZodNullable; actionRules: z.ZodOptional; data: z.ZodObject<{ daysNumber: z.ZodNumber; direction: z.ZodEnum<["less", "more"]>; }, "strip", z.ZodTypeAny, { daysNumber: number; direction: "less" | "more"; }, { daysNumber: number; direction: "less" | "more"; }>; }, "strip", z.ZodTypeAny, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }>>>>>; magnoliCustomerId: z.ZodString; pricelistId: z.ZodNullable; active: z.ZodBoolean; dateStart: z.ZodNullable; dateEnd: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; pricelist: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }, { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }>, "many">; total: z.ZodNumber; page: z.ZodOptional; limit: z.ZodOptional; }, "strip", z.ZodTypeAny, { total: number; rules: { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }[]; page?: number | undefined; limit?: number | undefined; }, { total: number; rules: { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }[]; page?: number | undefined; limit?: number | undefined; }>; declare const orderAdjustmentRulesByPricelistOutputSchema: z.ZodObject<{ activeRules: z.ZodArray; isAuto: z.ZodBoolean; modificationType: z.ZodNullable; targetType: z.ZodNullable; targetingRules: z.ZodNullable; calculationRules: z.ZodNullable; actionRules: z.ZodOptional; data: z.ZodObject<{ daysNumber: z.ZodNumber; direction: z.ZodEnum<["less", "more"]>; }, "strip", z.ZodTypeAny, { daysNumber: number; direction: "less" | "more"; }, { daysNumber: number; direction: "less" | "more"; }>; }, "strip", z.ZodTypeAny, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }>>>>>; magnoliCustomerId: z.ZodString; pricelistId: z.ZodNullable; active: z.ZodBoolean; dateStart: z.ZodNullable; dateEnd: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; pricelist: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }, { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }>, "many">; inactiveRules: z.ZodArray; isAuto: z.ZodBoolean; modificationType: z.ZodNullable; targetType: z.ZodNullable; targetingRules: z.ZodNullable; calculationRules: z.ZodNullable; actionRules: z.ZodOptional; data: z.ZodObject<{ daysNumber: z.ZodNumber; direction: z.ZodEnum<["less", "more"]>; }, "strip", z.ZodTypeAny, { daysNumber: number; direction: "less" | "more"; }, { daysNumber: number; direction: "less" | "more"; }>; }, "strip", z.ZodTypeAny, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }, { data: { daysNumber: number; direction: "less" | "more"; }; action: string; }>>>>>; magnoliCustomerId: z.ZodString; pricelistId: z.ZodNullable; active: z.ZodBoolean; dateStart: z.ZodNullable; dateEnd: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; pricelist: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }, { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { activeRules: { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }[]; inactiveRules: { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }[]; }, { activeRules: { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }[]; inactiveRules: { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; description: string | null; magnoliCustomerId: string; pricelistId: string | null; modificationType: string | null; targetType: string | null; isAuto: boolean; dateStart: string | null; dateEnd: string | null; targetingRules?: any; calculationRules?: any; actionRules?: { data: { daysNumber: number; direction: "less" | "more"; }; action: string; } | null | undefined; pricelist?: { id: string; name: string; } | null | undefined; }[]; }>; type OrderAdjustmentRuleCreateInput = z.infer; type OrderAdjustmentRuleUpdateInput = z.infer; type RuleIdParams = z.infer; type OrderAdjustmentRuleOutput = z.infer; type OrderAdjustmentRulesListOutput = z.infer; type OrderAdjustmentRulesByPricelistOutput = z.infer; interface OrderAdjustment { id: string; name: string; targets: any | null; alias?: string | null; amount: number; ruleReferenceId: string | null; orderId: string; rule?: OrderAdjustmentRule; order?: Order; createdAt: string | Date; } interface OrderAdjustmentCreateInput { id?: string; name: string; targets?: any | null; alias?: string | null; amount: number; ruleReferenceId?: string | null; orderId?: string; createdAt?: string | Date; } type OrderAdjustmentUpdateInput = Partial; declare const orderAdjustmentCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; amount: z.ZodNumber; targets: z.ZodNullable>; ruleReferenceId: z.ZodNullable>; orderId: z.ZodOptional; createdAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; amount: number; id?: string | undefined; createdAt?: Date | undefined; orderId?: string | undefined; targets?: any; ruleReferenceId?: string | null | undefined; }, { name: string; amount: number; id?: string | undefined; createdAt?: Date | undefined; orderId?: string | undefined; targets?: any; ruleReferenceId?: string | null | undefined; }>; declare const orderIdSchema: z.ZodObject<{ orderId: z.ZodString; }, "strip", z.ZodTypeAny, { orderId: string; }, { orderId: string; }>; declare const orderCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; saleLocationId: z.ZodNullable>; deliveryLocationId: z.ZodNullable>; revenueStreamId: z.ZodNullable>; parentOrderId: z.ZodNullable>; pricelistId: z.ZodOptional; customerId: z.ZodOptional; deliveryDate: z.ZodNullable>; orderType: z.ZodNullable>; status: z.ZodDefault>>; total: z.ZodNumber; displayTotal: z.ZodOptional; metadata: z.ZodNullable>; invoiceId: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; orderDate: z.ZodOptional; dueDate: z.ZodNullable>; extractedAt: z.ZodNullable>; bags: z.ZodOptional; bagType: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; barcode?: string | undefined; bagType?: string | undefined; }, { id: string; barcode?: string | undefined; bagType?: string | undefined; }>, "many">>; orderAdjustmentRules: z.ZodDefault; orderItemId: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "order" | "orderItem"; ruleId: string; orderItemId?: string | undefined; }, { type: "order" | "orderItem"; ruleId: string; orderItemId?: string | undefined; }>, "many">>>; items: z.ZodArray; price: z.ZodNumber; displayPrice: z.ZodOptional; quantity: z.ZodNumber; orderId: z.ZodOptional; itemId: z.ZodNullable>; itemTypeId: z.ZodNullable>; serviceId: z.ZodNullable>; optionId: z.ZodNullable>; customerWardrobeId: z.ZodNullable>; parentOrderItemId: z.ZodNullable>; orderBagId: z.ZodNullable>; priceListItemId: z.ZodOptional; notes: z.ZodNullable>; metadata: z.ZodNullable>; status: z.ZodNullable>; bagBarcode: z.ZodNullable>; alterations: z.ZodOptional>; orderItemId: z.ZodOptional>; alterationPricelistId: z.ZodOptional>>; alterationsId: z.ZodOptional; value: z.ZodOptional>; displayPrice: z.ZodOptional>>; quantity: z.ZodOptional>; measurement: z.ZodOptional>>; notes: z.ZodOptional>>; status: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }, { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }>, "many">>; customerWardrobe: z.ZodOptional; barcode: z.ZodString; brand: z.ZodNullable>; color: z.ZodNullable>; fabric: z.ZodNullable>; photos: z.ZodNullable>; notes: z.ZodNullable>; assemblyGrouping: z.ZodNullable>; customerId: z.ZodOptional; active: z.ZodOptional; temporary: z.ZodOptional; colorIds: z.ZodOptional>; patternIds: z.ZodOptional>; fabricIds: z.ZodOptional>; metadata: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; }, { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; }>>; options: z.ZodOptional>; optionIds: z.ZodOptional>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { quantity: number; price: number; options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }, { quantity: number; price: number; options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { status: "draft" | "pick_up_request" | "drop_ticket" | "in_production" | "ready" | "split" | "returned" | "cancelled" | "voided"; total: number; items: { quantity: number; price: number; options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }[]; orderAdjustmentRules: { type: "order" | "orderItem"; ruleId: string; orderItemId?: string | undefined; }[]; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; metadata?: any; pricelistId?: string | undefined; dueDate?: Date | null | undefined; saleLocationId?: string | null | undefined; deliveryLocationId?: string | null | undefined; revenueStreamId?: string | null | undefined; parentOrderId?: string | null | undefined; deliveryDate?: Date | null | undefined; orderType?: string | null | undefined; displayTotal?: number | undefined; invoiceId?: string | null | undefined; orderDate?: Date | undefined; extractedAt?: Date | null | undefined; bags?: { id: string; barcode?: string | undefined; bagType?: string | undefined; }[] | undefined; }, { total: number; items: { quantity: number; price: number; options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }[]; status?: "draft" | "pick_up_request" | "drop_ticket" | "in_production" | "ready" | "split" | "returned" | "cancelled" | "voided" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; metadata?: any; pricelistId?: string | undefined; dueDate?: Date | null | undefined; saleLocationId?: string | null | undefined; deliveryLocationId?: string | null | undefined; revenueStreamId?: string | null | undefined; parentOrderId?: string | null | undefined; deliveryDate?: Date | null | undefined; orderType?: string | null | undefined; displayTotal?: number | undefined; invoiceId?: string | null | undefined; orderDate?: Date | undefined; extractedAt?: Date | null | undefined; bags?: { id: string; barcode?: string | undefined; bagType?: string | undefined; }[] | undefined; orderAdjustmentRules?: { type: "order" | "orderItem"; ruleId: string; orderItemId?: string | undefined; }[] | undefined; }>; declare const orderUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; saleLocationId: z.ZodOptional>>; deliveryLocationId: z.ZodOptional>>; revenueStreamId: z.ZodOptional>>; parentOrderId: z.ZodOptional>>; pricelistId: z.ZodOptional>; customerId: z.ZodOptional>; deliveryDate: z.ZodOptional>>; orderType: z.ZodOptional>>; status: z.ZodOptional>>>; total: z.ZodOptional; displayTotal: z.ZodOptional>; metadata: z.ZodOptional>>; invoiceId: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; orderDate: z.ZodOptional>; dueDate: z.ZodOptional>>; extractedAt: z.ZodOptional>>; bags: z.ZodOptional; bagType: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; barcode?: string | undefined; bagType?: string | undefined; }, { id: string; barcode?: string | undefined; bagType?: string | undefined; }>, "many">>>; orderAdjustmentRules: z.ZodOptional; orderItemId: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "order" | "orderItem"; ruleId: string; orderItemId?: string | undefined; }, { type: "order" | "orderItem"; ruleId: string; orderItemId?: string | undefined; }>, "many">>>>; items: z.ZodOptional; price: z.ZodNumber; displayPrice: z.ZodOptional; quantity: z.ZodNumber; orderId: z.ZodOptional; itemId: z.ZodNullable>; itemTypeId: z.ZodNullable>; serviceId: z.ZodNullable>; optionId: z.ZodNullable>; customerWardrobeId: z.ZodNullable>; parentOrderItemId: z.ZodNullable>; orderBagId: z.ZodNullable>; priceListItemId: z.ZodOptional; notes: z.ZodNullable>; metadata: z.ZodNullable>; status: z.ZodNullable>; bagBarcode: z.ZodNullable>; alterations: z.ZodOptional>; orderItemId: z.ZodOptional>; alterationPricelistId: z.ZodOptional>>; alterationsId: z.ZodOptional; value: z.ZodOptional>; displayPrice: z.ZodOptional>>; quantity: z.ZodOptional>; measurement: z.ZodOptional>>; notes: z.ZodOptional>>; status: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }, { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }>, "many">>; customerWardrobe: z.ZodOptional; barcode: z.ZodString; brand: z.ZodNullable>; color: z.ZodNullable>; fabric: z.ZodNullable>; photos: z.ZodNullable>; notes: z.ZodNullable>; assemblyGrouping: z.ZodNullable>; customerId: z.ZodOptional; active: z.ZodOptional; temporary: z.ZodOptional; colorIds: z.ZodOptional>; patternIds: z.ZodOptional>; fabricIds: z.ZodOptional>; metadata: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; }, { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; }>>; options: z.ZodOptional>; optionIds: z.ZodOptional>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { quantity: number; price: number; options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }, { quantity: number; price: number; options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { status?: "draft" | "pick_up_request" | "drop_ticket" | "in_production" | "ready" | "split" | "returned" | "cancelled" | "voided" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; total?: number | undefined; customerId?: string | undefined; metadata?: any; items?: { quantity: number; price: number; options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }[] | undefined; pricelistId?: string | undefined; dueDate?: Date | null | undefined; saleLocationId?: string | null | undefined; deliveryLocationId?: string | null | undefined; revenueStreamId?: string | null | undefined; parentOrderId?: string | null | undefined; deliveryDate?: Date | null | undefined; orderType?: string | null | undefined; displayTotal?: number | undefined; invoiceId?: string | null | undefined; orderDate?: Date | undefined; extractedAt?: Date | null | undefined; bags?: { id: string; barcode?: string | undefined; bagType?: string | undefined; }[] | undefined; orderAdjustmentRules?: { type: "order" | "orderItem"; ruleId: string; orderItemId?: string | undefined; }[] | undefined; }, { status?: "draft" | "pick_up_request" | "drop_ticket" | "in_production" | "ready" | "split" | "returned" | "cancelled" | "voided" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; total?: number | undefined; customerId?: string | undefined; metadata?: any; items?: { quantity: number; price: number; options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }[] | undefined; pricelistId?: string | undefined; dueDate?: Date | null | undefined; saleLocationId?: string | null | undefined; deliveryLocationId?: string | null | undefined; revenueStreamId?: string | null | undefined; parentOrderId?: string | null | undefined; deliveryDate?: Date | null | undefined; orderType?: string | null | undefined; displayTotal?: number | undefined; invoiceId?: string | null | undefined; orderDate?: Date | undefined; extractedAt?: Date | null | undefined; bags?: { id: string; barcode?: string | undefined; bagType?: string | undefined; }[] | undefined; orderAdjustmentRules?: { type: "order" | "orderItem"; ruleId: string; orderItemId?: string | undefined; }[] | undefined; }>; declare const extractOrderInputSchema: z.ZodObject<{ orderIds: z.ZodArray; employeeId: z.ZodString; employeeName: z.ZodString; }, "strip", z.ZodTypeAny, { employeeId: string; orderIds: string[]; employeeName: string; }, { employeeId: string; orderIds: string[]; employeeName: string; }>; interface Order { id: string; saleLocationId: string | null; deliveryLocationId: string | null; revenueStreamId: string | null; parentOrderId: string | null; pricelistId: string; customerId: string; deliveryDate: string | null; orderType: string | null; status: string; total: number; displayTotal?: number; metadata: any | null; invoiceId: string | null; createdAt: string | Date; updatedAt: string | Date; customer?: Customer; saleLocation?: MCLocation; deliveryLocation?: CustomerLocation; parentOrder?: Order; childOrders?: Order[]; pricelist?: Pricelist; revenueStream?: RevenueStream; orderLogs?: OrderLog[]; invoice?: OrderInvoice; orderAdjustments?: OrderAdjustment[]; items?: OrderItem[]; orderDate: string; extractedAt: string | Date | null; dueDate: string | null | Date; bags?: { id: string; barcode: string; bagType?: OrderBagType; }[]; } interface OrderCreateInput { id?: string; saleLocationId?: string | null; deliveryLocationId?: string | null; revenueStreamId?: string | null; parentOrderId?: string | null; pricelistId?: string; customerId?: string; deliveryDate?: string | null; orderType?: string | null; status?: OrderStatus; total: number; displayTotal?: number; metadata?: any | null; invoiceId?: string | null; createdAt?: string | Date; updatedAt?: string | Date; orderDate?: string; extractedAt?: string | Date | null; dueDate?: string | null | Date; bags?: { id: string; barcode: string; }[]; orderAdjustmentRules?: { ruleId: string; type: "order" | "orderItem"; orderItemId?: string; }[]; items: OrderItemCreateInput[]; } type OrderUpdateInput = Partial; type ExtractOrderInput = z.infer; interface OrderGetByIdOutput { id: string; customer: { id: string; firstName: string; lastName: string | null; email: string | null; phone: string | null; }; pricelist: { id: string; name: string; }; saleLocation: { id: string; name: string; } | null; deliveryLocation: string; groupedItems: Record; dueDate: string; } interface OrderTotals { itemsSubtotal: number; orderAdjustmentsTotal: number; finalTotal: number; displayTotal?: number; } interface AdjustmentSummary { totalDiscounts: number; totalSurcharges: number; adjustmentCount: number; } interface CalculateOrderPriceOutput { totals: OrderTotals; orderAdjustmentRules: OrderAdjustmentRule[]; summary: AdjustmentSummary; } interface LotManagerReport { agent: string; brand: string; dueAmount: number; dueQuantity: number; lateAmount: number; lateQuantity: number; type: string; upcomingAmount: number; upcomingQuantity: number; source: "MAGNOLI_POS" | "EXTERNAL_DATA_POS"; } interface GarmentItem { customerName: string; detailingStaffNameExt: string; dueDate: Date; garmentId: string; itemDescription: string; orderId: string; orderItemId: string; productionBucketExt: string; quantity: number; statusDisplayExternal: string; } interface ExternalLotReport { date: string; segments: ExternalLotSegment[]; } interface ExternalLotSegment { dueQuantity: number; dueValue: number; lateQuantity: number; lateValue: number; rsId: string; upcomingQuantity: number; upcomingValue: number; } declare enum OrderDueStatusEnum { DUE = "due", LATE = "late", UPCOMING = "upcoming" } type OrderDueStatus = "due" | "late" | "upcoming"; type GetLotManagerReportInput = { timezone: string; }; type GetLotManagerReportParams = { date?: string; customerId?: string; startDate?: string; endDate?: string; agent?: string; brand?: string; segment?: string; type?: string | string[]; timezone?: string; }; type GetLotManagerReportOutput = Array; type GetLotManagerReportByRsIdRequest = { timezone: string; source: "MAGNOLI_POS" | "EXTERNAL_DATA_POS"; }; type GetLotManagerReportByRsIdRequestParams = { date: string; status: "due" | "late" | "upcoming"; filter?: string; rsId: string; source: "MAGNOLI_POS" | "EXTERNAL_DATA_POS"; timezone?: string; }; interface LotManagerCustomer { id: string; fullName: string; emailExt: Nullable; phoneExt: Nullable; email: Nullable; phone: string; } interface LotManagerOrder { id: string; orderNumber: string; dueDate: string; orderDate: string; source: string; customer: LotManagerCustomer; totalAmount: number; } interface LotManagerOrderItem { id: string; garmentId: string; itemDescription: string; quantity: number; netAmount: number; status: string; productionBucket: string; detailingStaffName: string; } interface OrderWithItems { order: LotManagerOrder; items: LotManagerOrderItem[]; } type GetLotManagerReportByRsIdResponse = Array; interface OrderIdsResponse { count: number; filter: "due" | "late" | "upcoming"; orderIds: string[]; fullData: OrderWithItems[]; rsId: string; source: "MAGNOLI_POS" | "EXTERNAL_DATA_POS"; } interface LocationAggregationData { agent: string; brand: string; type: string; saleLocationId: string | null; late: { amount: number; quantity: number; }; due: { amount: number; quantity: number; }; upcoming: { amount: number; quantity: number; }; } interface PosLotReport { saleLocation: string; saleLocationId?: string; lateQuantity: number; dueQuantity: number; upcomingQuantity: number; } type GetPosLotReportRequest = { saleLocation: string; timezone?: string; }; type GetPosLotReportResponse = PosLotReport; declare const ordersGetSchema: z.ZodObject<{ agent: z.ZodOptional; barcode: z.ZodOptional; brand: z.ZodOptional; customerName: z.ZodOptional; dueDate: z.ZodOptional; garmentBrand: z.ZodOptional; garmentFabric: z.ZodOptional; garmentType: z.ZodOptional; orderId: z.ZodOptional; specialCare: z.ZodOptional; status: z.ZodOptional; orderType: z.ZodOptional; invoiceStatus: z.ZodOptional; deliveryLocations: z.ZodOptional; updatedAfter: z.ZodOptional; startDate: z.ZodOptional; endDate: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; invoiceAttached: z.ZodOptional; isTerminalStatus: z.ZodOptional; page: z.ZodOptional; limit: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: string | undefined; brand?: string | undefined; customerId?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; magnoliCustomerId?: string | undefined; customerName?: string | undefined; page?: number | undefined; limit?: number | undefined; barcode?: string | undefined; orderId?: string | undefined; dueDate?: string | undefined; orderType?: string | undefined; agent?: string | undefined; garmentBrand?: string | undefined; garmentFabric?: string | undefined; garmentType?: string | undefined; specialCare?: string | undefined; invoiceStatus?: string | undefined; deliveryLocations?: string | undefined; updatedAfter?: string | undefined; invoiceAttached?: string | undefined; isTerminalStatus?: string | undefined; }, { status?: string | undefined; brand?: string | undefined; customerId?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; magnoliCustomerId?: string | undefined; customerName?: string | undefined; page?: number | undefined; limit?: number | undefined; barcode?: string | undefined; orderId?: string | undefined; dueDate?: string | undefined; orderType?: string | undefined; agent?: string | undefined; garmentBrand?: string | undefined; garmentFabric?: string | undefined; garmentType?: string | undefined; specialCare?: string | undefined; invoiceStatus?: string | undefined; deliveryLocations?: string | undefined; updatedAfter?: string | undefined; invoiceAttached?: string | undefined; isTerminalStatus?: string | undefined; }>; declare const ordersGetByIdSchema: z.ZodObject<{ source: z.ZodEnum<["MAGNOLI_POS", "EXTERNAL_DATA_POS"]>; }, "strip", z.ZodTypeAny, { source: "MAGNOLI_POS" | "EXTERNAL_DATA_POS"; }, { source: "MAGNOLI_POS" | "EXTERNAL_DATA_POS"; }>; /** * Comprehensive schema for order query parameters used across all systems */ declare const orderQueryParamsSchema: z.ZodObject<{ page: z.ZodOptional; limit: z.ZodOptional; sortBy: z.ZodOptional; sortOrder: z.ZodOptional>; customerId: z.ZodOptional; customerName: z.ZodOptional; orderIds: z.ZodOptional; status: z.ZodOptional; statusOperator: z.ZodOptional; orderType: z.ZodOptional; startDate: z.ZodOptional; endDate: z.ZodOptional; dueDate: z.ZodOptional; startDueDate: z.ZodOptional; endDueDate: z.ZodOptional; dateOperator: z.ZodOptional; dueDateOperator: z.ZodOptional; updatedAfter: z.ZodOptional; deliveryLocations: z.ZodOptional; deliveryLocation: z.ZodOptional; saleLocation: z.ZodOptional; saleLocationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; invoiceStatus: z.ZodOptional; barcode: z.ZodOptional; agent: z.ZodOptional; invoiceAttached: z.ZodOptional; isTerminalStatus: z.ZodOptional; includeReturned: z.ZodOptional; dueStatus: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status?: string | undefined; customerId?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; magnoliCustomerId?: string | undefined; customerName?: string | undefined; page?: number | undefined; limit?: number | undefined; barcode?: string | undefined; dueDate?: string | undefined; orderIds?: string | undefined; saleLocationId?: string | undefined; orderType?: string | undefined; agent?: string | undefined; invoiceStatus?: string | undefined; deliveryLocations?: string | undefined; updatedAfter?: string | undefined; invoiceAttached?: string | undefined; isTerminalStatus?: string | undefined; sortBy?: string | undefined; sortOrder?: "asc" | "desc" | undefined; statusOperator?: string | undefined; startDueDate?: string | undefined; endDueDate?: string | undefined; dateOperator?: string | undefined; dueDateOperator?: string | undefined; deliveryLocation?: string | undefined; saleLocation?: string | undefined; includeReturned?: string | undefined; dueStatus?: OrderDueStatusEnum | undefined; }, { status?: string | undefined; customerId?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; magnoliCustomerId?: string | undefined; customerName?: string | undefined; page?: number | undefined; limit?: number | undefined; barcode?: string | undefined; dueDate?: string | undefined; orderIds?: string | undefined; saleLocationId?: string | undefined; orderType?: string | undefined; agent?: string | undefined; invoiceStatus?: string | undefined; deliveryLocations?: string | undefined; updatedAfter?: string | undefined; invoiceAttached?: string | undefined; isTerminalStatus?: string | undefined; sortBy?: string | undefined; sortOrder?: "asc" | "desc" | undefined; statusOperator?: string | undefined; startDueDate?: string | undefined; endDueDate?: string | undefined; dateOperator?: string | undefined; dueDateOperator?: string | undefined; deliveryLocation?: string | undefined; saleLocation?: string | undefined; includeReturned?: string | undefined; dueStatus?: OrderDueStatusEnum | undefined; }>; type OrderQueryParams = z.infer; declare const valetReportQuerySchema: z.ZodObject<{ endDate: z.ZodString; startDate: z.ZodString; }, "strip", z.ZodTypeAny, { startDate: string; endDate: string; }, { startDate: string; endDate: string; }>; type ValetReportQuery = z.infer; interface ExternalDataOrderCustomer { createdAt: string; emailExt: Nullable; externalId: string; fullName: string; id: string; phoneExt: Nullable; priceListExt: string; updatedAt: string; accountType: Nullable; agent: Nullable; applyUpcharges: Nullable; billingCity: Nullable; billingEmail: Nullable; billingState: Nullable; billingStreet: Nullable; billingStreet2: Nullable; billingZip: Nullable; businessBrandId: Nullable; businessBrandName: Nullable; companyName: Nullable; creditBalance: Nullable; creditCardAddedAt: Nullable; creditCardExpirationDate: Nullable; creditCardStatus: Nullable; currentBalance: Nullable; customKeyword1: Nullable; customKeyword2: Nullable; customKeyword3: Nullable; customKeyword4: Nullable; customKeyword5: Nullable; customKeyword6: Nullable; customKeyword7: Nullable; customerPortalLink: Nullable; deliveryAccount: Nullable; deliveryCity: Nullable; deliveryPreference: Nullable; deliveryState: Nullable; deliveryStreet: Nullable; deliveryStreet2: Nullable; deliveryZip: Nullable; demographic: Nullable; dueBalance: Nullable; fifthReturnAmount: Nullable; fifthReturnDate: Nullable; fifthVisitAmount: Nullable; fifthVisitDate: Nullable; firstName: Nullable; firstReturnAmount: Nullable; firstReturnDate: Nullable; firstVisitAmount: Nullable; firstVisitDate: Nullable; fourthReturnAmount: Nullable; fourthReturnDate: Nullable; fourthVisitAmount: Nullable; fourthVisitDate: Nullable; frequency: Nullable; group: Nullable; hasCardOnFile: Nullable; homePhone: Nullable; inventory: Nullable; isActive: Nullable; isLockers: Nullable; lastName: Nullable; lastVisitDate: Nullable; lost: Nullable; netBalance: Nullable; ninetyBalance: Nullable; ninetyOnePlusBalance: Nullable; ordersCount: Nullable; paidWithMasterAccount: Nullable; paymentAccount: Nullable; paymentTerm: Nullable; percentile: Nullable; piecesCount: Nullable; priceListId: Nullable; promotions: Nullable; promotionsCombined: Nullable; registerDate: Nullable; registerLocation: Nullable; registerStaff: Nullable; route: Nullable; routeConversionDate: Nullable; routeDaysDisplay: Nullable; routeStop: Nullable; secondReturnAmount: Nullable; secondReturnDate: Nullable; secondVisitAmount: Nullable; secondVisitDate: Nullable; sendEmails: Nullable; sendMarketing: Nullable; sendMarketingEmail: Nullable; sendMarketingSms: Nullable; sendTexts: Nullable; sixtyBalance: Nullable; spendingChange: Nullable; spendingLast4Months: Nullable; spendingLastMonth: Nullable; spendingLastYear: Nullable; spendingMonthly: Nullable; spendingMonthlyYTD: Nullable; spendingTotal: Nullable; spendingYTD: Nullable; sumReceivables: Nullable; taxExempt: Nullable; thirdReturnAmount: Nullable; thirdReturnDate: Nullable; thirdVisitAmount: Nullable; thirdVisitDate: Nullable; thirtyBalance: Nullable; } interface ExternalDataOrder { createdAt: string; customer: ExternalDataOrderCustomer; date: string; dateDetailedExt: string; dueDate: string; externalId: string; id: string; priceListNameExt: string; rackedLocation: string; revenueStreamExt: string; source: string; status: string; totalAmount: number; } interface OrderFilters { agent?: string; barcode?: string; customerId?: string; dueDate?: string; garmentBrand?: string; garmentFabric?: string; garmentType?: string; limit?: number; offset?: number; orderId?: string; specialCare?: string; status?: string; } interface ExternalDataOrderMatch { order: ExternalDataOrder; } interface ExternalDataOrdersResponse { matches: ExternalDataOrderMatch[]; } interface ExternalDataGarment { id: string; externalId: string; customerId: string; barcode: string; garmentBrand: string; colors: Nullable; pattern: Nullable; fabrics: Nullable; createdAt: string; updatedAt: string; } interface ExternalDataOrderItemOptionOption { id: string; name: string; type: string; description: string; createdAt: string; updatedAt: string; } interface ExternalDataOrderItemOption { id: string; itemId: string; optionId: string; createdAt: string; updatedAt: string; option: ExternalDataOrderItemOptionOption; } interface ExternalDataOrderItem { id: string; externalId: string; itemDescriptionExt: string; quantity: number; statusDisplayExternal: Nullable; detailingStaffNameExt: Nullable; garment: ExternalDataGarment; grossAmountExternal: string; netAmountExternal: string; discountSumExt: string; itemOptions: ExternalDataOrderItemOption[]; } interface ExternalDataOrderBag { id: string; externalId: Nullable; dateRacked: Nullable; rackIdExt: Nullable; rackedLocation: Nullable; items: ExternalDataOrderItem[]; } type MagnoliPosOrdersResponse = { limit: number; orders: Order[]; page: number; total: number; totalPages: number; }; interface UpdateOrderStatusRequest { orderIds: string[]; status: OrderStatus; employeeId?: string; reference?: string; receiptNumber?: string; signedBy?: string; } interface UpdateOrdersStatusResponse { message: string; status: "success" | "error"; results: { "": { status: "success"; newStatus: "READY" | "RETURNED"; }; }; errors?: { orderId: string; error: string; }[]; } type OrdersGetRequest = z.infer; type OrdersGetByIdRequest = z.infer; interface OrdersGetByIdResponse { match: boolean; order: ExternalDataOrder; bags: ExternalDataOrderBag[]; } interface ExtractOrdersResponse { status: "error" | "success"; errors?: Record; results?: Record; } declare enum OrderStatus { DRAFT = "draft", PICKUP_REQUEST = "pick_up_request", DROP_TICKET = "drop_ticket", IN_PRODUCTION = "in_production", READY = "ready", DELETED = "deleted", SPLIT = "split", RETURNED = "returned", CANCELLED = "cancelled", VOIDED = "voided" } declare enum OrderType { RETAIL = "retail", UNIFORM = "uniform", VALET = "valet", ROUTE = "route" } declare enum OrderItemStatus { NEW = "new", DETAILED = "detailed", SPOTTED = "spotted", PRESSED = "pressed", ALTERED = "altered", INSPECTED = "inspected", ASSEMBLED = "assembled", BAGGED = "bagged", SPLIT = "split", RETURNED = "returned", DELETED = "deleted" } declare enum OrderBagStatus { PRE_BAG = "pre_bag", LAUNDRY_BAG = "laundry_bag", BAGGED = "bagged", ASSEMBLED = "assembled", COLLECTED = "collected", DISPATCHED = "dispatched", ON_MANIFEST = "on_manifest", ON_VAN = "on_van", IN_SHOP = "in_shop", HANGING_INVENTORY = "hanging_inventory", RETURNED = "returned", VOIDED = "voided" } interface OrderSummary { id: string; orderType: string; status: string; } interface OrderIdsByStatus { completed: OrderSummary[]; delivery: OrderSummary[]; late: OrderSummary[]; processing: OrderSummary[]; ready: OrderSummary[]; rushIncomplete: OrderSummary[]; total: OrderSummary[]; } interface ValetReportSummary { completed: number; customerId: string; customerName: string; delivery: number; late: number; percentReturned: number; processing: number; ready: number; rushIncomplete: number; total: number; orderIds: OrderIdsByStatus; } interface ValetAggregatedResponse { summary: ValetReportSummary[]; total: number; page: number; limit: number; totalPages: number; } interface OrderSummaryOutput { id: string; orderType: OrderType; orderDate: Date; dueDate: Date | null; customer?: { id: string; name: string; }; status: string; total: number; displayTotal?: number; saleLocation?: { id: string; name: string; } | null; deliveryLocation?: { id: string; alias: string; } | null; itemsCount: number; parentOrderId?: string; } interface OrderItem { id: string; orderId: string; itemId: string | null; itemTypeId: string | null; serviceId: string | null; optionId: string | null; customerWardrobeId: string | null; parentOrderItemId: string | null; orderBagId: string | null; price: number; displayPrice?: number; quantity: number; notes: string | null; metadata: any | null; status: string | null; alias?: string | null; createdAt: string | Date; updatedAt: string | Date; alterationsOrderItems?: Alteration[]; customerWardrobe?: CustomerWardrobe; item?: Item; itemType?: ItemType; option?: Option; options?: Option[]; order?: Order; parentOrderItem?: OrderItem; childOrderItems?: OrderItem[]; service?: Service; orderBag?: OrderBag; } interface OrderItemCreateInput { id?: string; orderId?: string; itemId?: string | null; itemTypeId?: string | null; serviceId?: string | null; optionId?: string | null; customerWardrobeId?: string | null; parentOrderItemId?: string | null; orderBagId?: string | null; priceListItemId?: string; price: number; displayPrice?: number; quantity: number; notes?: string | null; metadata?: any | null; status?: string | null; bagBarcode?: string | null; alterations?: Array>; customerWardrobe?: CustomerWardrobeCreateInput; options?: string[]; optionIds?: string[]; createdAt?: string | Date; updatedAt?: string | Date; orderBag?: { id: string; barcode?: string | null; bagType?: OrderBagType; }; } type OrderItemUpdateInput = Partial; type UpdateOrderItemsStatusResponse = { message: string; status: "success" | "error"; errors?: { orderItemId: string; error: string; }[]; }; type BoxWashnFoldItemsResponse = { boxInfo: { bagId: string; slotId?: string; slotName?: string; rackName?: string; items: { itemCount: number; itemName: string; itemTypeName: string; price: number; }[]; }; business: { address1: string; address2?: string | undefined; city: string; logo: string; name: string; phone: string; state: string; zip: string; }; customer: { address1: string; address2?: string | undefined; city: string; name: string; phone: string; state: string; zip: string; }; order: { metadata: any; type: string; room?: { name?: string; number?: string; }; surcharge?: Array<{ name: string; price: number; }>; totalPrice?: number; totalItemsCount?: number; orderId: string; orderStatus: string; washnFoldBatchesCount: number; dueDate?: string; }; }; interface PrinterRetailReceipPayload { business?: { name: string; address1: string; address2?: string; city: string; state: string; zip: string; logo?: string; phone?: string; }; customer: { name: string; address1?: string; address2?: string; city?: string; state?: string; zip?: string; phone?: string; }; } interface DropTicket extends PrinterRetailReceipPayload { order: { orderId: string; itemCount: number; }; } interface OrderReceipt extends PrinterRetailReceipPayload { order: { id: string; type: OrderType | string; dueDate?: string; orderLocationName?: string; surcharge?: { name: string; price: number; }[]; totalPrice?: number; room?: { name: string; number: string; }; totalPaid?: number; totalDue?: number; totalItemsCount?: number; }; bag?: { id: string; rackId?: string; rackedBy?: string; }; items: { ids: string[]; itemName: string; itemNotes?: string; itemServiceName: string; itemSpeciaCaresName?: string; itemTypeName: string; barcode: string; brand?: string; color?: string; fabric?: string; price?: number; quantity: number; }[]; } interface OrderItemNotes { publicNotes?: string | null; privateNotes?: string | null; } declare const orderItemCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; price: z.ZodNumber; displayPrice: z.ZodOptional; quantity: z.ZodNumber; orderId: z.ZodOptional; itemId: z.ZodNullable>; itemTypeId: z.ZodNullable>; serviceId: z.ZodNullable>; optionId: z.ZodNullable>; customerWardrobeId: z.ZodNullable>; parentOrderItemId: z.ZodNullable>; orderBagId: z.ZodNullable>; priceListItemId: z.ZodOptional; notes: z.ZodNullable>; metadata: z.ZodNullable>; status: z.ZodNullable>; bagBarcode: z.ZodNullable>; alterations: z.ZodOptional>; orderItemId: z.ZodOptional>; alterationPricelistId: z.ZodOptional>>; alterationsId: z.ZodOptional; value: z.ZodOptional>; displayPrice: z.ZodOptional>>; quantity: z.ZodOptional>; measurement: z.ZodOptional>>; notes: z.ZodOptional>>; status: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }, { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }>, "many">>; customerWardrobe: z.ZodOptional; barcode: z.ZodString; brand: z.ZodNullable>; color: z.ZodNullable>; fabric: z.ZodNullable>; photos: z.ZodNullable>; notes: z.ZodNullable>; assemblyGrouping: z.ZodNullable>; customerId: z.ZodOptional; active: z.ZodOptional; temporary: z.ZodOptional; colorIds: z.ZodOptional>; patternIds: z.ZodOptional>; fabricIds: z.ZodOptional>; metadata: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; }, { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; }>>; options: z.ZodOptional>; optionIds: z.ZodOptional>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { quantity: number; price: number; options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }, { quantity: number; price: number; options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }>; declare const orderItemUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; price: z.ZodOptional; displayPrice: z.ZodOptional>; quantity: z.ZodOptional; orderId: z.ZodOptional>; itemId: z.ZodOptional>>; itemTypeId: z.ZodOptional>>; serviceId: z.ZodOptional>>; optionId: z.ZodOptional>>; customerWardrobeId: z.ZodOptional>>; parentOrderItemId: z.ZodOptional>>; orderBagId: z.ZodOptional>>; priceListItemId: z.ZodOptional>; notes: z.ZodOptional>>; metadata: z.ZodOptional>>; status: z.ZodOptional>>; bagBarcode: z.ZodOptional>>; alterations: z.ZodOptional>>; orderItemId: z.ZodOptional>>; alterationPricelistId: z.ZodOptional>>>; alterationsId: z.ZodOptional>; value: z.ZodOptional>>; displayPrice: z.ZodOptional>>>; quantity: z.ZodOptional>>; measurement: z.ZodOptional>>>; notes: z.ZodOptional>>>; status: z.ZodOptional>>>; createdAt: z.ZodOptional>>; updatedAt: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }, { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }>, "many">>>; customerWardrobe: z.ZodOptional>; barcode: z.ZodOptional; brand: z.ZodOptional>>; color: z.ZodOptional>>; fabric: z.ZodOptional>>; photos: z.ZodOptional>>; notes: z.ZodOptional>>; assemblyGrouping: z.ZodOptional>>; customerId: z.ZodOptional>; active: z.ZodOptional>; temporary: z.ZodOptional>; colorIds: z.ZodOptional>>; patternIds: z.ZodOptional>>; fabricIds: z.ZodOptional>>; metadata: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; barcode?: string | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; barcode?: string | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; }>>>; options: z.ZodOptional>>; optionIds: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; quantity?: number | undefined; price?: number | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; barcode?: string | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }, { options?: string[] | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; metadata?: any; notes?: string | null | undefined; orderBagId?: string | null | undefined; displayPrice?: number | undefined; itemId?: string | null | undefined; itemTypeId?: string | null | undefined; optionId?: string | null | undefined; serviceId?: string | null | undefined; orderId?: string | undefined; quantity?: number | undefined; price?: number | undefined; customerWardrobeId?: string | null | undefined; parentOrderItemId?: string | null | undefined; priceListItemId?: string | undefined; bagBarcode?: string | null | undefined; alterations?: { value?: number | undefined; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; alterationsId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; orderItemId?: string | undefined; alterationPricelistId?: string | null | undefined; }[] | undefined; customerWardrobe?: { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; barcode?: string | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; } | undefined; optionIds?: string[] | undefined; }>; interface CustomerWardrobe { id: string; barcode: string; brand: string | null; color?: string | null; fabric?: string | null; photos: any | null; notes: string | null; assemblyGrouping: string | null; customerId: string; customer?: Customer; orderItems?: OrderItem[]; fabrics?: GarmentFabric[]; colors?: GarmentColor[]; patterns?: GarmentPattern[]; metadata: any | null; active: boolean; temporary: boolean; createdAt: string | Date; updatedAt: string | Date; } interface CustomerWardrobeCreateInput { id?: string; barcode: string; brand?: string | null; color?: string | null; fabric?: string | null; photos?: any | null; notes?: string | null; assemblyGrouping?: string | null; customerId?: string; metadata?: any | null; active?: boolean; colorIds?: string[] | null; patternIds?: string[] | null; fabricIds?: string[] | null; temporary?: boolean; createdAt?: string | Date; updatedAt?: string | Date; } type CustomerWardrobeUpdateInput = Partial; interface CustomerWardrobeListItem extends Omit { customerName: string; customerPhone: string | null; photos: any; metadata?: any; createdAt: Date; updatedAt: Date; } interface CSVImportCustomerWardrobeRow { barcode: string; brand?: string; color?: string; fabric?: string; itemName?: string; specialCares?: string; assemblyGrouping?: string; customerName?: string; customerPhone?: string; colors?: GarmentColor[]; fabrics?: GarmentFabric[]; patterns?: GarmentPattern[]; } interface ImportResult { success: boolean; created: number; updated: number; errors: string[]; customers: { created: number; reused: number; }; processedWardrobes: Array<{ rowNumber: number; barcode: string; customerName: string | null; customerPhone: string | null; brand: string | null; color?: string | null; fabric?: string | null; colors?: GarmentColor[]; fabrics?: GarmentFabric[]; patterns?: GarmentPattern[]; assemblyGrouping: string | null; itemName: string | null; specialCares: string | null; errorDescription: string; status: "created" | "updated" | "error"; }>; processedCustomers: Array<{ id: string; name: string; phone: string | null; email: string | null; action: "created" | "reused" | "updated"; }>; } interface CustomerWardrobeLightweight { id: string; barcode: string; brand: string | null; color?: string | null; fabric?: string | null; photos: any | null; notes: string | null; assemblyGrouping: string | null; colors?: GarmentColor[]; fabrics?: GarmentFabric[]; patterns?: GarmentPattern[]; } type CustomerWardrobeLightweightResponse = ApiResponse; interface CustomerWardrobeItem extends Omit { description: string; itemTypeId: string; notes?: string; photos?: string[]; specialCareInstructions?: string; createdAt: string; updatedAt?: string; metadata?: Record; assemblyGrouping?: string; brand?: string; orderItems?: Array<{ id: string; metadata?: Record; itemTypeId?: string; serviceId?: string; createdAt?: string | Date; order?: { id: string; orderType?: string; metadata?: Record; createdAt?: string | Date; }; }>; } interface GetCustomerWardrobeResponse { wardrobe: CustomerWardrobeItem[]; pagination?: { page: number; limit: number; total: number; totalPages: number; hasNextPage: boolean; hasPreviousPage: boolean; }; } /** * Unified wardrobe response type */ interface UnifiedWardrobeResponse extends Pick, Partial>, Required>, Partial>, Partial> { photos?: string[]; metadata?: Record | null; item?: (Pick & { itemCategoryId?: Item["itemCategoryId"] | null; }) | null; itemType?: Pick | null; } declare const customerWardrobeCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; barcode: z.ZodString; brand: z.ZodNullable>; color: z.ZodNullable>; fabric: z.ZodNullable>; photos: z.ZodNullable>; notes: z.ZodNullable>; assemblyGrouping: z.ZodNullable>; customerId: z.ZodOptional; active: z.ZodOptional; temporary: z.ZodOptional; colorIds: z.ZodOptional>; patternIds: z.ZodOptional>; fabricIds: z.ZodOptional>; metadata: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; }, { barcode: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; brand?: string | null | undefined; active?: boolean | undefined; customerId?: string | undefined; metadata?: any; notes?: string | null | undefined; color?: string | null | undefined; fabric?: string | null | undefined; photos?: any; assemblyGrouping?: string | null | undefined; temporary?: boolean | undefined; colorIds?: string[] | undefined; patternIds?: string[] | undefined; fabricIds?: string[] | undefined; }>; declare const PickupRequestStatusEnum: z.ZodNativeEnum; declare const routeRuleTypeSchema: z.ZodNativeEnum; declare const AddressInputSchema: z.ZodObject<{ address1: z.ZodOptional; address2: z.ZodOptional>; city: z.ZodOptional; state: z.ZodOptional; zip: z.ZodString; country: z.ZodOptional; }, "strip", z.ZodTypeAny, { zip: string; address1?: string | undefined; address2?: string | null | undefined; city?: string | undefined; state?: string | undefined; country?: string | undefined; }, { zip: string; address1?: string | undefined; address2?: string | null | undefined; city?: string | undefined; state?: string | undefined; country?: string | undefined; }>; declare const crudRouteSchema: z.ZodObject<{ body: z.ZodObject<{ name: z.ZodString; weekdays: z.ZodOptional>; startTimeMins: z.ZodOptional>; endTimeMins: z.ZodOptional>; pricelistId: z.ZodOptional; defaultDriverId: z.ZodOptional>; active: z.ZodOptional; notificationEmails: z.ZodDefault>>; notificationPhones: z.ZodDefault>>; }, "strip", z.ZodTypeAny, { name: string; notificationEmails: string[]; notificationPhones: string[]; active?: boolean | undefined; pricelistId?: string | undefined; weekdays?: number[] | undefined; startTimeMins?: number | null | undefined; endTimeMins?: number | null | undefined; defaultDriverId?: string | null | undefined; }, { name: string; active?: boolean | undefined; pricelistId?: string | undefined; weekdays?: number[] | undefined; startTimeMins?: number | null | undefined; endTimeMins?: number | null | undefined; defaultDriverId?: string | null | undefined; notificationEmails?: string[] | undefined; notificationPhones?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { body: { name: string; notificationEmails: string[]; notificationPhones: string[]; active?: boolean | undefined; pricelistId?: string | undefined; weekdays?: number[] | undefined; startTimeMins?: number | null | undefined; endTimeMins?: number | null | undefined; defaultDriverId?: string | null | undefined; }; }, { body: { name: string; active?: boolean | undefined; pricelistId?: string | undefined; weekdays?: number[] | undefined; startTimeMins?: number | null | undefined; endTimeMins?: number | null | undefined; defaultDriverId?: string | null | undefined; notificationEmails?: string[] | undefined; notificationPhones?: string[] | undefined; }; }>; declare const getAvailableRequestsFiltersSchema: z.ZodObject<{ query: z.ZodOptional; endDate: z.ZodOptional; dueStartDate: z.ZodOptional; dueEndDate: z.ZodOptional; status: z.ZodOptional; statusOperator: z.ZodOptional>; pickupStatus: z.ZodOptional, z.ZodObject<{ in: z.ZodOptional>; notIn: z.ZodOptional>; }, "strip", z.ZodTypeAny, { in?: string[] | undefined; notIn?: string[] | undefined; }, { in?: string[] | undefined; notIn?: string[] | undefined; }>]>>; dropOffStatus: z.ZodOptional, z.ZodObject<{ in: z.ZodOptional>; notIn: z.ZodOptional>; }, "strip", z.ZodTypeAny, { in?: string[] | undefined; notIn?: string[] | undefined; }, { in?: string[] | undefined; notIn?: string[] | undefined; }>]>>; routeName: z.ZodOptional; customerName: z.ZodOptional; locationName: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; customerName?: string | undefined; statusOperator?: "in" | "notIn" | undefined; dueStartDate?: string | undefined; dueEndDate?: string | undefined; pickupStatus?: string | string[] | { in?: string[] | undefined; notIn?: string[] | undefined; } | undefined; dropOffStatus?: string | string[] | { in?: string[] | undefined; notIn?: string[] | undefined; } | undefined; routeName?: string | undefined; locationName?: string | undefined; }, { status?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; customerName?: string | undefined; statusOperator?: "in" | "notIn" | undefined; dueStartDate?: string | undefined; dueEndDate?: string | undefined; pickupStatus?: string | string[] | { in?: string[] | undefined; notIn?: string[] | undefined; } | undefined; dropOffStatus?: string | string[] | { in?: string[] | undefined; notIn?: string[] | undefined; } | undefined; routeName?: string | undefined; locationName?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { query?: { status?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; customerName?: string | undefined; statusOperator?: "in" | "notIn" | undefined; dueStartDate?: string | undefined; dueEndDate?: string | undefined; pickupStatus?: string | string[] | { in?: string[] | undefined; notIn?: string[] | undefined; } | undefined; dropOffStatus?: string | string[] | { in?: string[] | undefined; notIn?: string[] | undefined; } | undefined; routeName?: string | undefined; locationName?: string | undefined; } | undefined; }, { query?: { status?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; customerName?: string | undefined; statusOperator?: "in" | "notIn" | undefined; dueStartDate?: string | undefined; dueEndDate?: string | undefined; pickupStatus?: string | string[] | { in?: string[] | undefined; notIn?: string[] | undefined; } | undefined; dropOffStatus?: string | string[] | { in?: string[] | undefined; notIn?: string[] | undefined; } | undefined; routeName?: string | undefined; locationName?: string | undefined; } | undefined; }>; type GetAvailableRequestsFiltersInput = z.infer; declare const updateDropOffRequestSchema: z.ZodObject<{ body: z.ZodObject<{ deliveryDate: z.ZodOptional; status: z.ZodOptional; metadata: z.ZodOptional>; addressId: z.ZodOptional; routeId: z.ZodOptional; active: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: string | undefined; active?: boolean | undefined; routeId?: string | undefined; metadata?: Record | undefined; addressId?: string | undefined; deliveryDate?: string | undefined; }, { status?: string | undefined; active?: boolean | undefined; routeId?: string | undefined; metadata?: Record | undefined; addressId?: string | undefined; deliveryDate?: string | undefined; }>; }, "strip", z.ZodTypeAny, { body: { status?: string | undefined; active?: boolean | undefined; routeId?: string | undefined; metadata?: Record | undefined; addressId?: string | undefined; deliveryDate?: string | undefined; }; }, { body: { status?: string | undefined; active?: boolean | undefined; routeId?: string | undefined; metadata?: Record | undefined; addressId?: string | undefined; deliveryDate?: string | undefined; }; }>; type UpdateDropOffRequestInput = z.infer; declare const updatePickupRequestSchema: z.ZodObject<{ body: z.ZodObject<{ pickupDate: z.ZodOptional; dueDate: z.ZodOptional; status: z.ZodOptional; metadata: z.ZodOptional>; addressId: z.ZodOptional; routeId: z.ZodOptional; active: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: string | undefined; active?: boolean | undefined; routeId?: string | undefined; metadata?: Record | undefined; addressId?: string | undefined; pickupDate?: string | undefined; dueDate?: string | undefined; }, { status?: string | undefined; active?: boolean | undefined; routeId?: string | undefined; metadata?: Record | undefined; addressId?: string | undefined; pickupDate?: string | undefined; dueDate?: string | undefined; }>; }, "strip", z.ZodTypeAny, { body: { status?: string | undefined; active?: boolean | undefined; routeId?: string | undefined; metadata?: Record | undefined; addressId?: string | undefined; pickupDate?: string | undefined; dueDate?: string | undefined; }; }, { body: { status?: string | undefined; active?: boolean | undefined; routeId?: string | undefined; metadata?: Record | undefined; addressId?: string | undefined; pickupDate?: string | undefined; dueDate?: string | undefined; }; }>; type UpdatePickupRequestInput = z.infer; declare const attachDropOffToManifestSchema: z.ZodObject<{ body: z.ZodObject<{ orderId: z.ZodString; manifestId: z.ZodString; }, "strip", z.ZodTypeAny, { orderId: string; manifestId: string; }, { orderId: string; manifestId: string; }>; }, "strip", z.ZodTypeAny, { body: { orderId: string; manifestId: string; }; }, { body: { orderId: string; manifestId: string; }; }>; type AttachDropOffToManifestInput = z.infer; declare const createRouteRuleSchema: z.ZodObject<{ body: z.ZodObject<{ routeId: z.ZodString; ruleType: z.ZodNativeEnum; zipCode: z.ZodNullable>; locationId: z.ZodNullable>; customerId: z.ZodNullable>; active: z.ZodDefault>; }, "strip", z.ZodTypeAny, { active: boolean; routeId: string; ruleType: RouteRuleType; locationId?: string | null | undefined; customerId?: string | null | undefined; zipCode?: string | null | undefined; }, { routeId: string; ruleType: RouteRuleType; locationId?: string | null | undefined; active?: boolean | undefined; customerId?: string | null | undefined; zipCode?: string | null | undefined; }>; }, "strip", z.ZodTypeAny, { body: { active: boolean; routeId: string; ruleType: RouteRuleType; locationId?: string | null | undefined; customerId?: string | null | undefined; zipCode?: string | null | undefined; }; }, { body: { routeId: string; ruleType: RouteRuleType; locationId?: string | null | undefined; active?: boolean | undefined; customerId?: string | null | undefined; zipCode?: string | null | undefined; }; }>; declare const updateRouteRuleSchema: z.ZodObject<{ body: z.ZodObject<{ ruleType: z.ZodOptional>; zipCode: z.ZodNullable>; locationId: z.ZodNullable>; customerId: z.ZodNullable>; active: z.ZodOptional; }, "strip", z.ZodTypeAny, { locationId?: string | null | undefined; active?: boolean | undefined; customerId?: string | null | undefined; ruleType?: RouteRuleType | undefined; zipCode?: string | null | undefined; }, { locationId?: string | null | undefined; active?: boolean | undefined; customerId?: string | null | undefined; ruleType?: RouteRuleType | undefined; zipCode?: string | null | undefined; }>; }, "strip", z.ZodTypeAny, { body: { locationId?: string | null | undefined; active?: boolean | undefined; customerId?: string | null | undefined; ruleType?: RouteRuleType | undefined; zipCode?: string | null | undefined; }; }, { body: { locationId?: string | null | undefined; active?: boolean | undefined; customerId?: string | null | undefined; ruleType?: RouteRuleType | undefined; zipCode?: string | null | undefined; }; }>; declare const getRouteRulesSchema: z.ZodObject<{ params: z.ZodObject<{ routeId: z.ZodString; }, "strip", z.ZodTypeAny, { routeId: string; }, { routeId: string; }>; }, "strip", z.ZodTypeAny, { params: { routeId: string; }; }, { params: { routeId: string; }; }>; declare const routeRuleParamsSchema: z.ZodObject<{ params: z.ZodObject<{ routeId: z.ZodString; ruleId: z.ZodString; }, "strip", z.ZodTypeAny, { routeId: string; ruleId: string; }, { routeId: string; ruleId: string; }>; }, "strip", z.ZodTypeAny, { params: { routeId: string; ruleId: string; }; }, { params: { routeId: string; ruleId: string; }; }>; type CreateRouteRuleInput = z.infer; type UpdateRouteRuleInput = z.infer; type GetRouteRulesInput = z.infer; type RouteRuleParamsInput = z.infer; interface RouteRuleMeta { id: string; ruleType: RouteRuleType; zipCode?: string | null; locationId?: string | null; customerId?: string | null; active: boolean; } interface Route { id: string; name: string; pricelistId: string; weekdays: number[]; active: boolean; startTimeMins?: number | null; endTimeMins?: number | null; notificationEmails: string[]; notificationPhones: string[]; defaultDriverId?: string | null; createdAt: string; updatedAt: string; pricelist: Pricelist; routeRulesMeta?: RouteRuleMeta[]; } interface RouteSummary { id: string; name: string; defaultDriverId?: string | null; } interface RouteDay { date: string; am: RouteDaySlot; pm: RouteDaySlot; } interface RouteWeekSchedule { route: RouteSummary; days: RouteDay[]; } type CrudRouteInput = z.infer; declare enum PickupRequestStatus { NEW = "new", SCHEDULED = "scheduled", ASSIGNED = "assigned", PICKED_UP = "picked_up", DETAILED = "detailed", CANCELLED = "cancelled" } declare enum DropOffRequestStatus { NEW = "new", SCHEDULED = "scheduled", ROUTED = "routed", DELIVERED = "delivered", CANCELLED = "cancelled" } declare enum RequestType { PICKUP = "PICKUP", DROP_OFF = "DROP_OFF" } declare enum RouteRuleType { ZIP = "zip", LOCATION = "location", CUSTOMER = "customer" } interface DropOffRequest { id: string; customerId: string; addressId: string; routeId?: string | null; manifestId?: string | null; routeOverride: boolean; status: DropOffRequestStatus; orderDate: string; deliveryDate?: string | null; metadata?: Record | null; driverId?: string | null; updatedAt: string; } type CreatePickupRequestResponse = Omit & { data?: { pickupRequest: PickupRequest; warning?: string; }; }; type RouteRequestStatus = PickupRequestStatus | DropOffRequestStatus; interface ScheduleRequest { id: string; type: RequestType; status: RouteRequestStatus; orderDate: string; slot: TimeSlot; routeId?: string | null; routeName?: string | null; customerName: string; addressLine1: string; city?: string; state?: string; zip?: string; } interface RouteDaySlot { pickups: number; dropoffs: number; requests?: ScheduleRequest[]; } type GetWeekScheduleResponse = ApiResponse<{ range: WeekRange; routes: RouteWeekSchedule[]; }>; type GetPickupRequestsBacklogResponse = ApiResponse<{ range: WeekRange; requests: ScheduleRequest[]; }>; type StatusFilterValue = string | string[] | { in?: string[]; notIn?: string[]; }; type PickupStatusFilter = PickupRequestStatus | PickupRequestStatus[] | { in?: PickupRequestStatus[]; notIn?: PickupRequestStatus[]; }; type DropOffStatusFilter = DropOffRequestStatus | DropOffRequestStatus[] | { in?: DropOffRequestStatus[]; notIn?: DropOffRequestStatus[]; }; type RequestMetadata = Record | null; interface RelatedOrder { id: string; status: string; pricelistId: string; pricelistName: string; } interface RelatedDropOffRequest { id: string; status: string; deliveryDate: string | null; } interface RelatedPickupRequest { id: string; status: string; pickupDate: string | null; } interface PickupRequestItem { id: string; magnoliCustomerId: string; customerId: string; addressId: string; routeId: string | null; routeOverride: boolean; status: PickupRequestStatus; createdAt: string; pickupDate: string | null; dueDate: string | null; metadata: RequestMetadata; driverId: string | null; detailedById: string | null; updatedAt: string; active: boolean; sequence: number | null; slot: TimeSlot; magnoliCustomer: { id: string; name: string; }; customer: { id: string; firstName: string; lastName: string | null; phone: string | null; email: string | null; }; address: { id: string; name: string | null; address1: string | null; address2: string | null; city: string | null; state: string | null; zip: string | null; }; route: { id: string; name: string; } | null; relatedOrders: RelatedOrder[]; relatedDropOffRequests: RelatedDropOffRequest[]; } interface DropOffRequestItem { id: string; magnoliCustomerId: string; customerId: string; addressId: string; routeId: string | null; manifestId: string | null; routeOverride: boolean; status: DropOffRequestStatus; orderDate: string; deliveryDate: string | null; metadata: RequestMetadata; driverId: string | null; updatedAt: string; active: boolean; sequence: number | null; slot: TimeSlot; magnoliCustomer: { id: string; name: string; }; customer: { id: string; firstName: string; lastName: string | null; phone: string | null; email: string | null; }; address: { id: string; name: string | null; address1: string | null; address2: string | null; city: string | null; state: string | null; zip: string | null; }; route: { id: string; name: string; } | null; relatedOrders: RelatedOrder[]; relatedPickupRequests: RelatedPickupRequest[]; } interface AvailableRequestsFiltersQuery { startDate?: string; endDate?: string; dueStartDate?: string; dueEndDate?: string; status?: string; statusOperator?: "in" | "notIn"; pickupStatus?: PickupStatusFilter; dropOffStatus?: DropOffStatusFilter; routeName?: string; customerName?: string; locationName?: string; driverId?: string; magnoliCustomerId?: string; } interface AvailableRequestsData { pickupRequests: PickupRequestItem[]; dropOffRequests: DropOffRequestItem[]; total: number; pickupTotal: number; dropOffTotal: number; } interface AvailableDropOffRequestsData { dropOffRequests: DropOffRequestItem[]; total: number; } interface OrderPickupDropoffRequest { orderId: string; pickupRequestId: string | null; dropOffRequestId: string | null; createdAt: string; updatedAt: string; } interface RouteRule { id: string; routeId: string; ruleType: RouteRuleType; zipCode?: string | null; locationId?: string | null; customerId?: string | null; active: boolean; createdAt: string; updatedAt: string; location?: PosLocation | null; customer?: Customer | null; } interface GetMatchingRoutesQuery { customerId?: string; deliveryLocationId?: string; zipCode?: string; } type GetMatchingRoutesResponse = ApiResponse; declare const customerLocationDetailsSchemaCrm: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; address: z.ZodString; city: z.ZodString; state: z.ZodString; zip: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; city: string; state: string; zip: string; address: string; id?: string | undefined; }, { name: string; city: string; state: string; zip: string; address: string; id?: string | undefined; }>; declare const customerRecordMetadataSchema: z.ZodObject<{ isOnboarded: z.ZodOptional; notesOnManifests: z.ZodOptional; optInMarketing: z.ZodOptional; optInNotifications: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ isOnboarded: z.ZodOptional; notesOnManifests: z.ZodOptional; optInMarketing: z.ZodOptional; optInNotifications: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ isOnboarded: z.ZodOptional; notesOnManifests: z.ZodOptional; optInMarketing: z.ZodOptional; optInNotifications: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; declare const customerLocationSchemaCrm: z.ZodOptional; name: z.ZodString; address: z.ZodString; city: z.ZodString; state: z.ZodString; zip: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; city: string; state: string; zip: string; address: string; id?: string | undefined; }, { name: string; city: string; state: string; zip: string; address: string; id?: string | undefined; }>>; declare const customerUpdateInputSchemaCrm: z.ZodObject<{ customer: z.ZodObject<{ id: z.ZodOptional; firstName: z.ZodString; lastName: z.ZodString; phone: z.ZodNullable>; email: z.ZodNullable>; customerType: z.ZodOptional>; metadata: z.ZodNullable; notesOnManifests: z.ZodOptional; optInMarketing: z.ZodOptional; optInNotifications: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ isOnboarded: z.ZodOptional; notesOnManifests: z.ZodOptional; optInMarketing: z.ZodOptional; optInNotifications: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ isOnboarded: z.ZodOptional; notesOnManifests: z.ZodOptional; optInMarketing: z.ZodOptional; optInNotifications: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>>; active: z.ZodDefault; }, "strip", z.ZodTypeAny, { active: boolean; firstName: string; lastName: string; id?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; metadata?: z.objectOutputType<{ isOnboarded: z.ZodOptional; notesOnManifests: z.ZodOptional; optInMarketing: z.ZodOptional; optInNotifications: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | null | undefined; customerType?: "ROUTE" | "INDIVIDUAL" | undefined; }, { firstName: string; lastName: string; id?: string | undefined; active?: boolean | undefined; email?: string | null | undefined; phone?: string | null | undefined; metadata?: z.objectInputType<{ isOnboarded: z.ZodOptional; notesOnManifests: z.ZodOptional; optInMarketing: z.ZodOptional; optInNotifications: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | null | undefined; customerType?: "ROUTE" | "INDIVIDUAL" | undefined; }>; location: z.ZodOptional; name: z.ZodString; address: z.ZodString; city: z.ZodString; state: z.ZodString; zip: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; city: string; state: string; zip: string; address: string; id?: string | undefined; }, { name: string; city: string; state: string; zip: string; address: string; id?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { customer: { active: boolean; firstName: string; lastName: string; id?: string | undefined; email?: string | null | undefined; phone?: string | null | undefined; metadata?: z.objectOutputType<{ isOnboarded: z.ZodOptional; notesOnManifests: z.ZodOptional; optInMarketing: z.ZodOptional; optInNotifications: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | null | undefined; customerType?: "ROUTE" | "INDIVIDUAL" | undefined; }; location?: { name: string; city: string; state: string; zip: string; address: string; id?: string | undefined; } | undefined; }, { customer: { firstName: string; lastName: string; id?: string | undefined; active?: boolean | undefined; email?: string | null | undefined; phone?: string | null | undefined; metadata?: z.objectInputType<{ isOnboarded: z.ZodOptional; notesOnManifests: z.ZodOptional; optInMarketing: z.ZodOptional; optInNotifications: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | null | undefined; customerType?: "ROUTE" | "INDIVIDUAL" | undefined; }; location?: { name: string; city: string; state: string; zip: string; address: string; id?: string | undefined; } | undefined; }>; interface PickupRequest { id: string; magnoliCustomerId: string; customerId: string; addressId: string; routeOverride: boolean; status: PickupRequestStatus; slot: TimeSlot; routeId?: string | null; dropoffDate?: string | Date | null; pickupDate?: string | Date | null; metadata?: { notes?: string; pickupPartOfDay?: TimeSlot; dropoffPartOfDay?: TimeSlot; isRecurring?: boolean; recurringStopDate?: string | Date | null; } | null; driverId?: string | null; detailedById?: string | null; createdAt: string | Date; updatedAt: string | Date; magnoliCustomer?: MagnoliCustomer; customer?: Customer; address?: Location; route?: Route | null; driver?: Employee | null; detailedBy?: MagnoliUser | null; orderPickupRequests?: OrderPickupDropoffRequest[]; } type PickupRequestCreateInput = z$1.infer; type PickupRequestUpdateInput = Partial; interface AvailablePickupFiltersQuery { customerName?: string; dueEndDate?: string; dueStartDate?: string; endDate?: string; locationName?: string; routeName?: string; startDate?: string; pickupStartDate?: string; pickupEndDate?: string; status?: string; statusOperator?: "in" | "notIn"; } type GetPickupByIdOutput = StandardResponse; type PickupRequestGetByIdInput = { id: string; }; type AvailablePickupData = PickupRequestItem; interface GetAvailablePickupData { pickupRequests: AvailablePickupData[]; total: number; } type GetAvailablePickupOutput = StandardResponse; declare const pickupRequestStatusSchema: z.ZodNativeEnum; declare const pickupRequestCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; magnoliCustomerId: z.ZodString; customerId: z.ZodString; addressId: z.ZodString; routeOverride: z.ZodOptional; routeId: z.ZodNullable>; status: z.ZodOptional>; dropoffDate: z.ZodNullable>; pickupDate: z.ZodNullable>; slot: z.ZodDefault>>; metadata: z.ZodNullable; pickupPartOfDay: z.ZodOptional>; dropoffPartOfDay: z.ZodOptional>; isRecurring: z.ZodOptional; recurringStopDate: z.ZodOptional; }, "strip", z.ZodTypeAny, { notes?: string | undefined; pickupPartOfDay?: TimeSlot | undefined; dropoffPartOfDay?: TimeSlot | undefined; isRecurring?: boolean | undefined; recurringStopDate?: string | undefined; }, { notes?: string | undefined; pickupPartOfDay?: TimeSlot | undefined; dropoffPartOfDay?: TimeSlot | undefined; isRecurring?: boolean | undefined; recurringStopDate?: string | undefined; }>>>; driverId: z.ZodNullable>; detailedById: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { customerId: string; magnoliCustomerId: string; addressId: string; slot: TimeSlot; status?: PickupRequestStatus | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; routeId?: string | null | undefined; metadata?: { notes?: string | undefined; pickupPartOfDay?: TimeSlot | undefined; dropoffPartOfDay?: TimeSlot | undefined; isRecurring?: boolean | undefined; recurringStopDate?: string | undefined; } | null | undefined; routeOverride?: boolean | undefined; dropoffDate?: string | null | undefined; pickupDate?: string | null | undefined; driverId?: string | null | undefined; detailedById?: string | null | undefined; }, { customerId: string; magnoliCustomerId: string; addressId: string; status?: PickupRequestStatus | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; routeId?: string | null | undefined; metadata?: { notes?: string | undefined; pickupPartOfDay?: TimeSlot | undefined; dropoffPartOfDay?: TimeSlot | undefined; isRecurring?: boolean | undefined; recurringStopDate?: string | undefined; } | null | undefined; routeOverride?: boolean | undefined; dropoffDate?: string | null | undefined; pickupDate?: string | null | undefined; slot?: TimeSlot | undefined; driverId?: string | null | undefined; detailedById?: string | null | undefined; }>; declare const pickupRequestUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; addressId: z.ZodOptional; routeOverride: z.ZodOptional>; routeId: z.ZodOptional>>; status: z.ZodOptional>>; dropoffDate: z.ZodOptional>>; pickupDate: z.ZodOptional>>; slot: z.ZodOptional>>>; metadata: z.ZodOptional; pickupPartOfDay: z.ZodOptional>; dropoffPartOfDay: z.ZodOptional>; isRecurring: z.ZodOptional; recurringStopDate: z.ZodOptional; }, "strip", z.ZodTypeAny, { notes?: string | undefined; pickupPartOfDay?: TimeSlot | undefined; dropoffPartOfDay?: TimeSlot | undefined; isRecurring?: boolean | undefined; recurringStopDate?: string | undefined; }, { notes?: string | undefined; pickupPartOfDay?: TimeSlot | undefined; dropoffPartOfDay?: TimeSlot | undefined; isRecurring?: boolean | undefined; recurringStopDate?: string | undefined; }>>>>; driverId: z.ZodOptional>>; detailedById: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status?: PickupRequestStatus | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; routeId?: string | null | undefined; magnoliCustomerId?: string | undefined; metadata?: { notes?: string | undefined; pickupPartOfDay?: TimeSlot | undefined; dropoffPartOfDay?: TimeSlot | undefined; isRecurring?: boolean | undefined; recurringStopDate?: string | undefined; } | null | undefined; addressId?: string | undefined; routeOverride?: boolean | undefined; dropoffDate?: string | null | undefined; pickupDate?: string | null | undefined; slot?: TimeSlot | undefined; driverId?: string | null | undefined; detailedById?: string | null | undefined; }, { status?: PickupRequestStatus | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; routeId?: string | null | undefined; magnoliCustomerId?: string | undefined; metadata?: { notes?: string | undefined; pickupPartOfDay?: TimeSlot | undefined; dropoffPartOfDay?: TimeSlot | undefined; isRecurring?: boolean | undefined; recurringStopDate?: string | undefined; } | null | undefined; addressId?: string | undefined; routeOverride?: boolean | undefined; dropoffDate?: string | null | undefined; pickupDate?: string | null | undefined; slot?: TimeSlot | undefined; driverId?: string | null | undefined; detailedById?: string | null | undefined; }>; declare const getAvailablePickupFiltersSchema: z.ZodObject<{ query: z.ZodObject<{ startDate: z.ZodOptional; endDate: z.ZodOptional; dueStartDate: z.ZodOptional; dueEndDate: z.ZodOptional; pickupStartDate: z.ZodOptional; pickupEndDate: z.ZodOptional; status: z.ZodOptional; statusOperator: z.ZodOptional>; routeName: z.ZodOptional; customerName: z.ZodOptional; locationName: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; customerName?: string | undefined; statusOperator?: "in" | "notIn" | undefined; dueStartDate?: string | undefined; dueEndDate?: string | undefined; routeName?: string | undefined; locationName?: string | undefined; pickupStartDate?: string | undefined; pickupEndDate?: string | undefined; }, { status?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; customerName?: string | undefined; statusOperator?: "in" | "notIn" | undefined; dueStartDate?: string | undefined; dueEndDate?: string | undefined; routeName?: string | undefined; locationName?: string | undefined; pickupStartDate?: string | undefined; pickupEndDate?: string | undefined; }>; }, "strip", z.ZodTypeAny, { query: { status?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; customerName?: string | undefined; statusOperator?: "in" | "notIn" | undefined; dueStartDate?: string | undefined; dueEndDate?: string | undefined; routeName?: string | undefined; locationName?: string | undefined; pickupStartDate?: string | undefined; pickupEndDate?: string | undefined; }; }, { query: { status?: string | undefined; startDate?: string | undefined; endDate?: string | undefined; customerName?: string | undefined; statusOperator?: "in" | "notIn" | undefined; dueStartDate?: string | undefined; dueEndDate?: string | undefined; routeName?: string | undefined; locationName?: string | undefined; pickupStartDate?: string | undefined; pickupEndDate?: string | undefined; }; }>; declare const pickupRequestGetByIdSchema: z.ZodObject<{ params: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { params: { id: string; }; }, { params: { id: string; }; }>; declare const pickupRequestUpdateSchema: z.ZodObject<{ id: z.ZodString; customerId: z.ZodOptional; addressId: z.ZodOptional; pickupDate: z.ZodNullable>; dueDate: z.ZodNullable>; routeId: z.ZodNullable>; routeOverride: z.ZodOptional; status: z.ZodOptional>; driverId: z.ZodNullable>; detailedById: z.ZodNullable>; metadata: z.ZodNullable>>; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; status?: PickupRequestStatus | undefined; updatedAt?: string | undefined; customerId?: string | undefined; routeId?: string | null | undefined; metadata?: Record | null | undefined; addressId?: string | undefined; routeOverride?: boolean | undefined; pickupDate?: string | null | undefined; driverId?: string | null | undefined; detailedById?: string | null | undefined; dueDate?: string | null | undefined; }, { id: string; status?: PickupRequestStatus | undefined; updatedAt?: string | undefined; customerId?: string | undefined; routeId?: string | null | undefined; metadata?: Record | null | undefined; addressId?: string | undefined; routeOverride?: boolean | undefined; pickupDate?: string | null | undefined; driverId?: string | null | undefined; detailedById?: string | null | undefined; dueDate?: string | null | undefined; }>; declare enum CustomerTypeEnum { UNIFORM = "Uniform", VALET = "Valet", INDIVIDUAL = "Individual", BUSINESS = "Business", ROUTE = "Route" } type CustomerRecordMetadata = z.infer; interface Customer { id: string; magnoliCustomerId: string; firstName: string; lastName: string | null; phone: string | null; email: string | null; contactPreferenceId: string | null; suffix: string | null; createdAt: string | Date; updatedAt: string | Date; active: boolean; metadata?: CustomerRecordMetadata; contactPreference?: ContactPreference; customerType?: CustomerTypeEnum; magnoliCustomer?: PosMagnoliCustomer; logs?: CustomerLog[]; customerNotes?: CustomerNote[]; customerWardrobes?: CustomerWardrobe[]; orders?: Order[]; customerLocations?: CustomerLocation[]; invoices?: OrderInvoice[]; priceListRules?: PriceListRule[]; pickupRequests?: PickupRequest[]; dropOffRequests?: DropOffRequest[]; } interface CustomerCreateInput { id?: string; magnoliCustomerId?: string; customerType?: CustomerTypeEnum; firstName: string; lastName?: string | null; phone?: string | null; email?: string | null; contactPreferenceId?: string; metadata?: CustomerRecordMetadata; suffix?: string | null; createdAt?: string | Date; updatedAt?: string | Date; active?: boolean; notes?: CustomerNoteCreateInput[]; } type CustomerUpdateInput = Partial; interface CustomerSearchOutput { id: string; firstName: string; lastName: string; phone: string; } interface CustomerSearchInput { includeNotes?: boolean; includeLogs?: boolean; search?: string; includeWardrobe?: boolean; } type B2BCustomerDetailsFormData = { customer: { id?: string; firstName: string; suffix?: string | null; email?: string; customerType: CustomerTypeEnum; metadata?: Record | null; priceListId?: string; active: boolean; }; defaultLocation?: { id?: string; name: string; address1: string; address2?: string; city: string; state: string; zip: string; }; }; type AllowedCrmCustomerType = CustomerTypeEnum.ROUTE | CustomerTypeEnum.INDIVIDUAL; type CrmCustomerLocation = z.infer; type CrmCustomerDetailsFormData = z.infer; type B2BCustomersList = { id: string; firstName: string; openOrdersCount?: number; openOrdersTotal?: number; }; type CrmCustomersList = { firstName: string; id: string; lastName?: null | string; openOrdersCount?: number; openOrdersTotal?: number; phone?: null | string; email?: null | string; location?: { name?: string | null; address?: string | null; city?: string | null; state?: string | null; zip?: string | null; } | null; }; type CustomerUpdateInputCrm = z.infer; interface Subscription { id: string; magnoliCustomerId: string; timeframe: string; createdAt: string; updatedAt: string; active: boolean; magnoliCustomer?: PosMagnoliCustomer; } interface SubscriptionCreateInput { id?: string; magnoliCustomerId?: string; timeframe: string; createdAt?: string; updatedAt?: string; active?: boolean; } type SubscriptionUpdateInput = Partial; interface PosMagnoliCustomer { id: string; name: string; lastSyncedAt: string | Date | null; createdAt: string | Date; updatedAt: string | Date; active: boolean; customers?: Customer[]; itemTypes?: ItemType[]; locations?: MCLocation[]; pricelists?: Pricelist[]; PricelistRule?: PriceListRule[]; subscriptions?: Subscription[]; invoices?: OrderInvoice[]; paymentMethods?: PaymentMethod[]; orderAdjustmentRules?: OrderAdjustmentRule[]; } interface PosMagnoliCustomerCreateInput { id?: string; name: string; lastSyncedAt?: string | Date | null; createdAt?: string | Date; updatedAt?: string | Date; active?: boolean; } type PosMagnoliCustomerUpdateInput = Partial; interface ItemType { id: string; name: string; magnoliCustomerId: string; createdAt: string | Date; updatedAt: string | Date; active: boolean; magnoliCustomer?: PosMagnoliCustomer; itemTypeServices?: ItemTypeService[]; OrderItem?: OrderItem[]; priceListItems?: PriceListItems[]; } interface ItemTypeCreateInput { id?: string; name: string; magnoliCustomerId?: string; createdAt?: string | Date; updatedAt?: string | Date; active?: boolean; } type ItemTypeUpdateInput = Partial; declare const itemTypeSchema: z.ZodObject<{ active: z.ZodBoolean; createdAt: z.ZodString; id: z.ZodString; magnoliCustomerId: z.ZodNullable; name: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; magnoliCustomerId: string | null; }, { id: string; createdAt: string; updatedAt: string; active: boolean; name: string; magnoliCustomerId: string | null; }>; declare const itemTypeUpsertInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; active: z.ZodDefault>; }, "strip", z.ZodTypeAny, { active: boolean; name: string; id?: string | undefined; }, { name: string; id?: string | undefined; active?: boolean | undefined; }>; declare const itemTypeBulkUpsertInputSchema: z.ZodObject<{ items: z.ZodArray; name: z.ZodString; active: z.ZodDefault>; }, "strip", z.ZodTypeAny, { active: boolean; name: string; id?: string | undefined; }, { name: string; id?: string | undefined; active?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { items: { active: boolean; name: string; id?: string | undefined; }[]; }, { items: { name: string; id?: string | undefined; active?: boolean | undefined; }[]; }>; type ItemTypeSchema = z.infer; type ItemTypeUpsertInput = z.infer; type ItemTypeBulkUpsertInput = z.infer; declare const itemTypeServiceUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional; itemId: z.ZodString; itemTypeId: z.ZodString; serviceId: z.ZodString; active: z.ZodBoolean; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { active: boolean; itemId: string; itemTypeId: string; serviceId: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }, { active: boolean; itemId: string; itemTypeId: string; serviceId: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }>; declare const itemTypeServiceGetInputSchema: z.ZodObject<{ includeNulls: z.ZodOptional>; }, "strip", z.ZodTypeAny, { includeNulls?: boolean | undefined; }, { includeNulls?: string | undefined; }>; declare const itemTypeServiceBulkUpdateInputSchema: z.ZodObject<{ items: z.ZodArray; itemId: z.ZodString; itemTypeId: z.ZodString; serviceId: z.ZodString; active: z.ZodBoolean; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { active: boolean; itemId: string; itemTypeId: string; serviceId: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }, { active: boolean; itemId: string; itemTypeId: string; serviceId: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { items: { active: boolean; itemId: string; itemTypeId: string; serviceId: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }[]; }, { items: { active: boolean; itemId: string; itemTypeId: string; serviceId: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }[]; }>; type ItemTypeService = { id: string; itemId: string; itemTypeId: string; serviceId: string; productionDays: number | null; cleaningDepartmentId: string | null; cleaningValue: number | null; finishingDepartmentId: string | null; finishingValue: number | null; assemblyCategoryId: string | null; assemblyValue: number | null; active: boolean; magnoliCustomerId: string | null; createdAt: string | Date; updatedAt: string | Date; assemblyCategory?: AssemblyCategory; cleaningDepartment?: CleaningDepartment; finishingDepartment?: FinishingDepartment; item?: Item; itemType?: ItemType; service?: Service; }; type ItemTypeServiceCreateInput = { id?: string; itemId?: string; itemTypeId?: string; serviceId?: string; productionDays?: number | null; cleaningDepartmentId?: string | null; cleaningValue?: number | null; finishingDepartmentId?: string | null; finishingValue?: number | null; assemblyCategoryId?: string | null; assemblyValue?: number | null; active?: boolean; createdAt?: string | Date; updatedAt?: string | Date; }; type ItemTypeServiceUpdateInput = Partial; type ItemTypeServiceGetInput = z.infer; type ItemTypeServiceGetOutput = { id: string; itemTypeId: string; serviceId: string; active: boolean; itemType?: { id: string; name: string; }; item?: { id: string; name: string; }; service?: { id: string; name: string; }; }; type GetItemTypeServicesInput = { includeNulls?: string; }; type ItemId = { itemId: string; }; interface Item { id: string; name: string; itemCategoryId: string; active: boolean; createdAt: string | Date; updatedAt: string | Date; displayPrice?: number; alterationPricelist?: AlterationPricelist[]; itemCategory?: ItemCategory; itemTypeServices?: ItemTypeService[]; OrderItem?: OrderItem[]; priceListItems?: PriceListItems[]; options?: Option[]; } interface ItemCreateInput { id?: string; name: string; itemCategoryId?: string; active?: boolean; createdAt?: string | Date; updatedAt?: string | Date; } type ItemUpdateInput = Partial; interface AlterationPricelist { id: string; valueType: string; value: number; pricelistId: string; referenceType: string; alterationsId: string | null; itemId: string | null; createdAt: string; updatedAt: string; active: boolean; alterationOrderItems?: AlterationsOrderItem[]; alteration?: Alterations; item?: Item; pricelist?: Pricelist; } interface AlterationPricelistCreateInput { id?: string; valueType: string; value: number; pricelistId?: string; referenceType: string; alterationsId?: string | null; itemId?: string | null; createdAt?: string; updatedAt?: string; active?: boolean; } type AlterationPricelistUpdateInput = Partial; interface AlterationsOrderItem { id: string; orderItemId: string; alterationPricelistId: string | null; alterationId: string | null; price: number; notes: string | null; status: string | null; createdAt: string; updatedAt: string; alteration?: Alterations; alterationPricelist?: AlterationPricelist; orderItem?: OrderItem; } interface AlterationOrderItemCreateInput { id?: string; orderItemId?: string; alterationPricelistId?: string | null; alterationsId?: string; value?: number; displayPrice?: number | null; quantity?: number; measurement?: number | null; notes?: string | null; status?: string | null; createdAt?: string; updatedAt?: string; } type AlterationOrderItemUpdateInput = Partial; interface Alterations { id: string; type: string; area: string; alterationDimensionId: string; alias: string; createdAt: string | Date; updatedAt: string | Date; active: boolean; alterationOrderItems?: AlterationsOrderItem[]; alterationPricelist?: AlterationPricelist[]; } interface Alteration { id: string; alterationsId: string; referenceType: string; A: string; B: string; itemId: string | null; value: number; displayPrice: number | null; valueType: string; pricelistId?: string; active?: boolean; quantity?: number; measurement?: number | null; notes?: string | null; status?: string | null; item?: { id: string; name: string; } | null; createdAt: string | Date; updatedAt: string | Date; } interface AlterationsCreateInput { id?: string; type: string; area: string; alterationDimensionId?: string; alias: string; createdAt?: string | Date; updatedAt?: string | Date; active?: boolean; } type AlterationsUpdateInput = Partial; type AlterationPricelistItemType = Alteration; interface AlterationPricelistItemsUpdateInput { id?: string; alterationsId: string; value: number; valueType?: string; displayPrice?: number | null; active?: boolean; itemId?: string | null; pricelistId?: string; referenceType?: string; A?: string; B?: string; quantity?: number; measurement?: number | null; notes?: string | null; status?: string | null; createdAt?: string | Date; updatedAt?: string | Date; } interface AlterationPricelistItemsOutput { active: Alteration[]; inactive: (Alteration & { blocker?: string; validationDetails?: any; })[]; } interface AlterationPricelistItemBulkUpdateInput { items: AlterationPricelistItemsUpdateInput[]; } interface AlterationPricelistIdInput { pricelistId: string; } interface AlterationPricelistItemsCombinationsOutput { items: Array<{ id: string; name: string; alterations: Alteration[]; }>; } interface AlterationItemsOutput { items: Array<{ id: string; name: string; }>; alterations: Alteration[]; } declare const alterationPricelistItemsUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional; alterationsId: z.ZodString; value: z.ZodNumber; valueType: z.ZodOptional; displayPrice: z.ZodOptional>; active: z.ZodOptional; itemId: z.ZodOptional>; pricelistId: z.ZodOptional; referenceType: z.ZodOptional; A: z.ZodOptional; B: z.ZodOptional; quantity: z.ZodOptional; measurement: z.ZodOptional>; notes: z.ZodOptional>; status: z.ZodOptional>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: number; alterationsId: string; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; itemId?: string | null | undefined; valueType?: string | undefined; pricelistId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; referenceType?: string | undefined; A?: string | undefined; B?: string | undefined; }, { value: number; alterationsId: string; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; itemId?: string | null | undefined; valueType?: string | undefined; pricelistId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; referenceType?: string | undefined; A?: string | undefined; B?: string | undefined; }>; declare const alterationPricelistItemBulkUpdateInputSchema: z.ZodObject<{ items: z.ZodArray; alterationsId: z.ZodString; value: z.ZodNumber; valueType: z.ZodOptional; displayPrice: z.ZodOptional>; active: z.ZodOptional; itemId: z.ZodOptional>; pricelistId: z.ZodOptional; referenceType: z.ZodOptional; A: z.ZodOptional; B: z.ZodOptional; quantity: z.ZodOptional; measurement: z.ZodOptional>; notes: z.ZodOptional>; status: z.ZodOptional>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: number; alterationsId: string; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; itemId?: string | null | undefined; valueType?: string | undefined; pricelistId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; referenceType?: string | undefined; A?: string | undefined; B?: string | undefined; }, { value: number; alterationsId: string; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; itemId?: string | null | undefined; valueType?: string | undefined; pricelistId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; referenceType?: string | undefined; A?: string | undefined; B?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { items: { value: number; alterationsId: string; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; itemId?: string | null | undefined; valueType?: string | undefined; pricelistId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; referenceType?: string | undefined; A?: string | undefined; B?: string | undefined; }[]; }, { items: { value: number; alterationsId: string; status?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; notes?: string | null | undefined; displayPrice?: number | null | undefined; itemId?: string | null | undefined; valueType?: string | undefined; pricelistId?: string | undefined; quantity?: number | undefined; measurement?: number | null | undefined; referenceType?: string | undefined; A?: string | undefined; B?: string | undefined; }[]; }>; declare const alterationPricelistIdInputSchema: z.ZodObject<{ pricelistId: z.ZodString; }, "strip", z.ZodTypeAny, { pricelistId: string; }, { pricelistId: string; }>; interface AlterationActionInstructions { id: string; description: string; alterationActionId: string; createdAt: string | Date; updatedAt: string | Date; alterationAction?: AlterationActions; alterationOrderItems?: AlterationsOrderItem[]; alterationPricelist?: AlterationPricelist[]; } interface AlterationActionInstructionsCreateInput { id?: string; description: string; alterationActionId?: string; createdAt?: string | Date; updatedAt?: string | Date; } type AlterationActionInstructionsUpdateInput = Partial; interface AlterationDimensions { id: string; name: string; createdAt: string; updatedAt: string; active: boolean; alterationActions?: AlterationActions[]; alerations?: Alterations[]; } interface AlterationDimensionsCreateInput { id?: string; name: string; createdAt?: string; updatedAt?: string; active?: boolean; } type AlterationDimensionsUpdateInput = Partial; interface AlterationClass { id: string; name: string; createdAt: string; updatedAt: string; active: boolean; alterationRelations?: AlterationRelations[]; } interface AlterationClassCreateInput { id?: string; name: string; createdAt?: string; updatedAt?: string; active?: boolean; } type AlterationClassUpdateInput = Partial; interface AlterationSpecifications { id: string; name: string; isDefault: boolean; active: boolean; createdAt: string | Date; updatedAt: string | Date; alterationOrderItems?: AlterationsOrderItem[]; alterationPricelist?: AlterationPricelist[]; alterationRelations?: AlterationRelations[]; } interface AlterationSpecificationsCreateInput { id?: string; name: string; isDefault?: boolean; active?: boolean; createdAt?: string | Date; updatedAt?: string | Date; } type AlterationSpecificationsUpdateInput = Partial; interface AlterationRelations { id: string; itemId: string; alterationClassId: string; alterationId: string; alterationActionId: string; alterationSpecificationId: string; createdAt: string | Date; updatedAt: string | Date; active: boolean; alterationAction?: AlterationActions; alterationClass?: AlterationClass; alteration?: Alterations; alterationSpecification?: AlterationSpecifications; item?: Item; } interface AlterationRelationsCreateInput { id?: string; itemId?: string; alterationClassId?: string; alterationId?: string; alterationActionId?: string; alterationSpecificationId?: string; createdAt?: string | Date; updatedAt?: string | Date; active?: boolean; } type AlterationRelationsUpdateInput = Partial; interface AlterationActions { id: string; alterationDimensionId: string; name: string; createdAt: string | Date; updatedAt: string | Date; isDefault: boolean; active: boolean; alterationActionInstructions?: AlterationActionInstructions[]; alterationDimension?: AlterationDimensions; alterationOrderItems?: AlterationsOrderItem[]; alterationPricelist?: AlterationPricelist[]; alterationRelations?: AlterationRelations[]; } interface AlterationActionsCreateInput { id?: string; alterationDimensionId?: string; name: string; createdAt?: string | Date; updatedAt?: string | Date; isDefault?: boolean; active?: boolean; } type AlterationActionsUpdateInput = Partial; interface AlterationOptions { id: string; type: string; name: string; isDefault: boolean; createdAt: string; updatedAt: string; alterationPricelist?: AlterationPricelist[]; } interface AlterationOptionsCreateInput { id?: string; type: string; name: string; isDefault?: boolean; createdAt?: string; updatedAt?: string; } type AlterationOptionsUpdateInput = Partial; interface FileUploadResult { key: string; contentType: string; size: number; url: string; metadata?: Record; } interface UploadFileMetadata { context?: string; orderId?: string; orderItemId?: string; customerWardrobeId?: string; orderType?: OrderType | string; barcode?: string; photoType?: string; sequence?: number; } declare const GARMENT_PHOTO_TYPES: readonly ["Front", "Back", "Scan SCU", "Care Label", "Damage", "Other"]; type GarmentPhotoType = (typeof GARMENT_PHOTO_TYPES)[number]; type UploadGarmentPhotoArgs = UploadFileMetadata & { file: File; }; interface GarmentBrand { id: string; name: string; isCouture: boolean; premium: number | null; magnoliCustomerId: string | null; createdAt: string; updatedAt: string; } interface GarmentBrandCreateInput { id?: string; name: string; isCouture?: boolean; premium?: number | null; magnoliCustomerId?: string | null; createdAt?: string; updatedAt?: string; } type GarmentBrandUpdateInput = Partial; interface GarmentColor { id?: string; name?: string; hex?: string; createdAt?: string | Date; active?: boolean; } interface GarmentColorCreateInput { id?: string; name: string; hex: string; createdAt?: string | Date; active?: boolean; } type GarmentColorUpdateInput = Partial; interface GarmentFabric { id?: string; name?: string; description?: string | null; createdAt?: string | Date; active?: boolean; } interface GarmentFabricCreateInput { id?: string; name: string; description?: string | null; createdAt?: string | Date; active?: boolean; } type GarmentFabricUpdateInput = Partial; interface GarmentPattern { id?: string; name?: string; createdAt?: string | Date; } interface GarmentPatternCreateInput { id?: string; name: string; createdAt?: string | Date; } type GarmentPatternUpdateInput = Partial; declare enum PriceListItemsLogAction { ITEM_CREATED = "ITEM_CREATED", ITEM_UPDATED = "ITEM_UPDATED", ITEM_ACTIVATED = "ITEM_ACTIVATED", ITEM_DEACTIVATED = "ITEM_DEACTIVATED", PRICE_CHANGED = "PRICE_CHANGED", CASCADE_DEACTIVATION = "CASCADE_DEACTIVATION" } type PriceListItemsLogActionData = { [PriceListItemsLogAction.ITEM_CREATED]: { createdBy: string; createdByName: string; }; [PriceListItemsLogAction.ITEM_UPDATED]: { updatedBy: string; updatedByName: string; changes: Array<{ field: string; before: any; after: any; }>; }; [PriceListItemsLogAction.ITEM_ACTIVATED]: { activatedBy: string; activatedByName: string; }; [PriceListItemsLogAction.ITEM_DEACTIVATED]: { deactivatedBy: string; deactivatedByName: string; }; [PriceListItemsLogAction.PRICE_CHANGED]: { changedBy: string; changedByName: string; priceFrom: number; priceTo: number; }; [PriceListItemsLogAction.CASCADE_DEACTIVATION]: { deactivatedBy: string; deactivatedByName: string; reason: string; itemTypeServiceId?: string; itemTypeServiceName?: string; }; }; type PriceListItemsLogOutput = { id: string; priceListItemId: string; pricelistId: string; createdAt: Date; action: string; authorId?: string; authorName?: string; before?: any; after?: any; }; interface AliasCombination { itemId: string; itemTypeId: string; serviceId: string; optionId: string; alias: string | null; price: number; } interface ItemTypeServiceRelation { itemId: string; itemTypeId: string; serviceId: string; specialCareIds: string[]; } interface Catalog { categories: ItemCategory[]; items: (Item & { price?: number; alias?: string; })[]; itemTypes: (ItemType & { price?: number; alias?: string; })[]; services: (Service & { price?: number; alias?: string; })[]; specialCares: (Option & { price?: number; alias?: string; })[]; priceListId: string; slaDays: number; relations: { itemTypeServiceRelations: ItemTypeServiceRelation[]; }; aliasCombinations: AliasCombination[]; adjustmentRules: OrderAdjustmentRule[]; alterations?: Alteration[]; } interface CatalogGetInput { customerName?: string; saleLocationId?: string; deliveryLocationId?: string; } declare const proStationLogIdSchema: z.ZodObject<{ proStationLogId: z.ZodString; }, "strip", z.ZodTypeAny, { proStationLogId: string; }, { proStationLogId: string; }>; declare const proStationLogCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; employeeId: z.ZodOptional; businessSegmentId: z.ZodOptional; clockedShiftId: z.ZodOptional; data: z.ZodOptional; actionType: z.ZodType; metadata: z.ZodObject<{ ip: z.ZodString; }, "strip", z.ZodTypeAny, { ip: string; }, { ip: string; }>; sentBackTo: z.ZodOptional>; resolvedAt: z.ZodOptional; order: z.ZodOptional>; orderItems: z.ZodOptional>; orderBag: z.ZodOptional>; }, "strip", z.ZodTypeAny, { metadata: { ip: string; }; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; actionType: ProStationLogActionType; order?: Order | undefined; orderItems?: OrderItem[] | undefined; sentBackTo?: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection" | undefined; resolvedAt?: string | undefined; orderBag?: OrderBag | undefined; }, { metadata: { ip: string; }; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; actionType: ProStationLogActionType; order?: Order | undefined; orderItems?: OrderItem[] | undefined; sentBackTo?: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection" | undefined; resolvedAt?: string | undefined; orderBag?: OrderBag | undefined; }>>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; data?: { metadata: { ip: string; }; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; actionType: ProStationLogActionType; order?: Order | undefined; orderItems?: OrderItem[] | undefined; sentBackTo?: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection" | undefined; resolvedAt?: string | undefined; orderBag?: OrderBag | undefined; } | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; data?: { metadata: { ip: string; }; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; actionType: ProStationLogActionType; order?: Order | undefined; orderItems?: OrderItem[] | undefined; sentBackTo?: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection" | undefined; resolvedAt?: string | undefined; orderBag?: OrderBag | undefined; } | undefined; }>; declare const proStationLogUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; employeeId: z.ZodOptional>; businessSegmentId: z.ZodOptional>; clockedShiftId: z.ZodOptional>; data: z.ZodOptional; actionType: z.ZodType; metadata: z.ZodObject<{ ip: z.ZodString; }, "strip", z.ZodTypeAny, { ip: string; }, { ip: string; }>; sentBackTo: z.ZodOptional>; resolvedAt: z.ZodOptional; order: z.ZodOptional>; orderItems: z.ZodOptional>; orderBag: z.ZodOptional>; }, "strip", z.ZodTypeAny, { metadata: { ip: string; }; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; actionType: ProStationLogActionType; order?: Order | undefined; orderItems?: OrderItem[] | undefined; sentBackTo?: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection" | undefined; resolvedAt?: string | undefined; orderBag?: OrderBag | undefined; }, { metadata: { ip: string; }; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; actionType: ProStationLogActionType; order?: Order | undefined; orderItems?: OrderItem[] | undefined; sentBackTo?: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection" | undefined; resolvedAt?: string | undefined; orderBag?: OrderBag | undefined; }>>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; data?: { metadata: { ip: string; }; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; actionType: ProStationLogActionType; order?: Order | undefined; orderItems?: OrderItem[] | undefined; sentBackTo?: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection" | undefined; resolvedAt?: string | undefined; orderBag?: OrderBag | undefined; } | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; data?: { metadata: { ip: string; }; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; actionType: ProStationLogActionType; order?: Order | undefined; orderItems?: OrderItem[] | undefined; sentBackTo?: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection" | undefined; resolvedAt?: string | undefined; orderBag?: OrderBag | undefined; } | undefined; }>; declare const proStationLogGetReportSchema: z.ZodObject<{ employeeId: z.ZodString; clockedShiftId: z.ZodString; }, "strip", z.ZodTypeAny, { clockedShiftId: string; employeeId: string; }, { clockedShiftId: string; employeeId: string; }>; declare const proStationLogGetGarmentDetailsSchema: z.ZodObject<{ barcode: z.ZodString; }, "strip", z.ZodTypeAny, { barcode: string; }, { barcode: string; }>; declare const proStationLogGetEmployeeLogsSchema: z.ZodObject<{ clockedShiftId: z.ZodString; employeeId: z.ZodString; }, "strip", z.ZodTypeAny, { clockedShiftId: string; employeeId: string; }, { clockedShiftId: string; employeeId: string; }>; declare const proStationLogScanGarmentSchema: z.ZodObject<{ barcode: z.ZodOptional>; businessSegment: z.ZodString; businessSubSegment: z.ZodOptional>>; clockedShiftId: z.ZodString; employeeId: z.ZodString; garmentType: z.ZodOptional>; hotelName: z.ZodOptional>; }, "strip", z.ZodTypeAny, { clockedShiftId: string; employeeId: string; businessSegment: string; barcode?: string | null | undefined; garmentType?: string | null | undefined; businessSubSegment?: "VALET" | "UNIFORM" | null | undefined; hotelName?: string | null | undefined; }, { clockedShiftId: string; employeeId: string; businessSegment: string; barcode?: string | null | undefined; garmentType?: string | null | undefined; businessSubSegment?: "VALET" | "UNIFORM" | null | undefined; hotelName?: string | null | undefined; }>; declare const proStationLogScanBarcodeInputSchema: z.ZodObject<{ barcode: z.ZodOptional; clockedShiftId: z.ZodString; stationType: z.ZodOptional; rackId: z.ZodOptional; }, "strip", z.ZodTypeAny, { clockedShiftId: string; barcode?: string | undefined; rackId?: string | undefined; stationType?: string | undefined; }, { clockedShiftId: string; barcode?: string | undefined; rackId?: string | undefined; stationType?: string | undefined; }>; declare const proStationLogScanBagByDriverInputSchema: z.ZodObject<{ bagId: z.ZodString; clockedShiftId: z.ZodString; stationType: z.ZodNativeEnum<{ readonly PERSONAL: "personal"; readonly SPOTTING: "spotting"; readonly PRESSING: "pressing"; readonly FOLDING: "folding"; readonly ALTERATIONS: "alterations"; readonly ASSISTED_ASSEMBLY_MOBILE: "assistedAssemblyMobile"; readonly ASSISTED_ASSEMBLY_DESKTOP: "assistedAssemblyDesktop"; readonly DRIVER_MOBILE: "driverMobile"; readonly DRIVER_DESKTOP: "driverDesktop"; readonly DISPATCH: "dispatch"; readonly INSPECTION: "inspection"; }>; }, "strip", z.ZodTypeAny, { clockedShiftId: string; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; bagId: string; }, { clockedShiftId: string; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; bagId: string; }>; type ProStationLogId = { proStationLogId: string; }; type ProStationLogActionType = "SCAN_BARCODE" | "EXTRACT_ORDER_ITEM" | "EXTRACT_ORDER" | "EXTRACT_BAG" | "PUT_BAG_ON_MANIFEST" | "SENDBACK" | "REWORK_FIX" | "UNKNOWN_BARCODE"; interface ProStationLog { id: string; employeeId: string; businessSegmentId: string; clockedShiftId: string; data: any; createdAt: string; updatedAt: string; businessSegment?: BusinessSegment | null; clockedShift?: ClockedShift | null; employee?: Employee | null; barcode?: string | null; } interface ProStationLogCreateInput { id?: string; employeeId?: string; businessSegmentId?: string; clockedShiftId?: string; data?: any; createdAt?: string; updatedAt?: string; } type ProStationLogUpdateInput = Partial; type ProStationLogGetReport = z.infer; type ProStationLogGetReportOutput = Array<{ activeHours: number; category: string; nbcRatio: number; noBarcodePieces: number; ppoh: Nullable; totalPieces: number; withBarcodePieces: number; }>; type ProStationLogGetEmployeeLogs = z.infer; type ProStationLogGetGarmentDetails = z.infer; type ProStationLogGetGarmentDetailsOutput = { message?: string; status: "error" | "success"; orderItem?: OrderItem; }; type ProStationLogScanGarment = z.infer; type ProStationLogScanBarcodeInput = z.infer; type ProStationLogScanBagByDriverInput = z.infer; type ProStationLogScanBarcodeOutput = { message: string; payload: ProStationLogScanBarcodeOutputPayload; status: "error" | "success"; }; type ProStationLogScanBarcodeOutputPayload = { businessSegmentId?: string; estimatedSlot?: TEstimatedSlot; orderItem?: OrderItem; orderItems?: OrderItem[]; garment?: CustomerWardrobeLightweight; errors?: string[]; groupingCounts?: TAssemblyGroupingCounts; order?: { customer?: { name?: string; }; dueDate?: string | Date | null; id?: string; }; related?: { inProductionUnracked?: OrderItem[]; bagged?: OrderItem[]; occupiedInOtherSlots?: { slotNumber: number; items: OrderItem[]; }[]; }; }; type ProStationLogOrderForDeliveryOutput = { message: string; status: "error" | "success"; errors?: string[]; data?: { orders: { orderId: string; orderType: string; orderStatus: OrderStatus; orderDate: string; orderDueDate: string; customer?: { id: string; name: string; }; deliveryLocation?: { id: string; name?: string; address1?: string; address2?: string; city?: string; state?: string; zip?: string; }; bagsData: { bagId: string; itemsCount: number; bagStatus: OrderBagStatus; }[]; orderItemsCount?: number; adjustments?: Pick[]; }[]; scannedBag?: { bagId: string; }; }; }; type ProStationExtractBagLogData = { actionType: "EXTRACT_BAG"; stationType: ProStationTypeEnum; bagId: string; rackId: string; slotId: string; metadata?: { rackedById?: string; slotNumber?: string; ip?: string; }; }; type ProStationLogWithRelations = { barcode?: null | string; businessSegment?: { name: string; }; businessSegmentId: string; clockedShiftId: string; createdAt: string; data: any; employee?: { email: null | string; firstName: string; lastName: string; tel: null | string; }; employeeId: string; id: string; updatedAt: string; }; type FoldingScanResult = FoldingScanResultError | FoldingScanResultSuccess; type FoldingScanResultError = { errors: string[]; message: string; success: false; }; type FoldingScanResultSuccess = { businessSegmentId: string; message: string; orderItems: OrderItem[]; success: true; }; type ScanOutcome = { additionalPayload?: any; errors: string[]; message: string; status: "error"; } | { log: SuccessLog; message: string; payload: ProStationLogScanBarcodeOutputPayload; status: "success"; }; type StationActionResult = { error?: string | string[]; estimatedSlot?: TEstimatedSlot; message: string; payload?: Record; }; type SuccessLog = { actionType: "NO_BARCODE" | "SCAN_BARCODE"; businessSegmentId: string; orderItems?: OrderItem[]; }; declare const ProStationsLogBusinessSubSegmentEnum: { readonly VALET: "VALET"; readonly UNIFORM: "UNIFORM"; }; type ProStationsLogBusinessSubSegmentEnum = keyof typeof ProStationsLogBusinessSubSegmentEnum; declare const ProStationTypeEnum: { readonly PERSONAL: "personal"; readonly SPOTTING: "spotting"; readonly PRESSING: "pressing"; readonly FOLDING: "folding"; readonly ALTERATIONS: "alterations"; readonly ASSISTED_ASSEMBLY_MOBILE: "assistedAssemblyMobile"; readonly ASSISTED_ASSEMBLY_DESKTOP: "assistedAssemblyDesktop"; readonly DRIVER_MOBILE: "driverMobile"; readonly DRIVER_DESKTOP: "driverDesktop"; readonly DISPATCH: "dispatch"; readonly INSPECTION: "inspection"; }; type ProStationTypeEnum = (typeof ProStationTypeEnum)[keyof typeof ProStationTypeEnum]; declare const segmentsInClockedShiftIdSchema: z.ZodObject<{ segmentsInClockedShiftId: z.ZodString; }, "strip", z.ZodTypeAny, { segmentsInClockedShiftId: string; }, { segmentsInClockedShiftId: string; }>; declare const segmentsInClockedShiftCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; date: z.ZodDate; setSegmentTo: z.ZodNullable>; employeeId: z.ZodNullable>; clockedShiftId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | null | undefined; setSegmentTo?: string | null | undefined; }, { date: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | null | undefined; setSegmentTo?: string | null | undefined; }>; declare const segmentsInClockedShiftUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; date: z.ZodOptional; setSegmentTo: z.ZodOptional>>; employeeId: z.ZodOptional>>; clockedShiftId: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; date?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | null | undefined; setSegmentTo?: string | null | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; date?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | null | undefined; setSegmentTo?: string | null | undefined; }>; declare const segmentsInClockedShiftGetSchema: z.ZodObject<{ id: z.ZodOptional; clockedShiftId: z.ZodOptional; setSegmentTo: z.ZodNullable>; employeeId: z.ZodNullable>; date: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; date?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | null | undefined; setSegmentTo?: string | null | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; date?: Date | undefined; clockedShiftId?: string | undefined; employeeId?: string | null | undefined; setSegmentTo?: string | null | undefined; }>; declare const segmentInClockedShiftChangeSchema: z.ZodObject<{ clockedShiftId: z.ZodString; setSegmentTo: z.ZodOptional; employeeId: z.ZodOptional; }, "strip", z.ZodTypeAny, { clockedShiftId: string; employeeId?: string | undefined; setSegmentTo?: string | undefined; }, { clockedShiftId: string; employeeId?: string | undefined; setSegmentTo?: string | undefined; }>; type SegmentInClockedShiftId = { segmentInClockedShiftId: string; }; type SegmentsInClockedShift = { id: string; date: string | Date; setSegmentTo: string | null; employeeId: string | null; clockedShiftId: string; createdAt: string | Date; updatedAt: string | Date; clockedShift?: ClockedShift | null; employee?: Employee | null; businessSegment?: BusinessSegment | null; }; interface SegmentsInClockedShiftCreateInput { id?: string; date: string | Date; setSegmentTo?: string | null; employeeId?: string | null; clockedShiftId?: string; createdAt?: string | Date; updatedAt?: string | Date; } type SegmentsInClockedShiftUpdateInput = Partial; type SegmentsInClockedShiftGet = z.infer; type SegmentInClockedShiftChange = z.infer; declare enum ManifestStatus { ACTIVE = "ACTIVE",//not all orders are in READY = "READY",//all orders are in CANCELLED = "CANCELLED", DELIVERED = "DELIVERED", DRAFT = "DRAFT", VOIDED = "VOIDED" } type BagInManifest = { bagId: string; bagStatus: OrderBagStatus; itemsCount: number; }; type CustomerMetadata = { customer?: { id: string; name: string; }; deliveryLocation?: { address1?: string; address2?: string; city?: string; id: string; name?: string; state?: string; zip?: string; }; }; type ManifestsForDelivery = { [manifestId: string]: { customer: CustomerMetadata; manifestStatus: string; plannedDate?: BusinessDate; orders: OrderInManifest[]; }; }; type OrderDataInManifest = { bagsData: BagInManifest[]; orderDate: string; orderDueDate: string; orderId: string; orderStatus: OrderStatus; orderType: string; orderItemsCount?: number; adjustments?: Pick[]; }; type OrderInManifest = { orderData: OrderDataInManifest; addedAt?: string; orderId: string; }; type DeliverManifestRequest = { manifestId: string; employeeId: string; reference?: string; receiptNumber?: string; signedBy?: string; }; type DispatchRouteSummary = { routeId: string; routeName?: string; defaultDriverId?: string | null; totalOrders: number; collectedOrders: number; rushOrders: number; collectedRushOrders: number; }; type DeliveryLocationSummary = { deliveryLocationId: string; deliveryLocationName?: string; totalOrders: number; dueTodayOrders: number; lateOrders: number; dueTodayRushOrders: number; lateRushOrders: number; }; type DispatchRoutesResponse = { routes: DispatchRouteSummary[]; deliveryLocations: DeliveryLocationSummary[]; }; type OrderForDelivery = { id: string; orderType: string | null; status: string; createdAt: Date; dueDate: Date | null; customer?: { id: string; firstName: string | null; lastName: string | null; } | null; deliveryLocation?: { id: string; name: string | null; address1: string | null; address2: string | null; city: string | null; state: string | null; zip: string | null; } | null; items: { orderBagId: string | null; }[]; adjustments?: Pick[]; }; type OrderDeliveryData = { order: OrderForDelivery; bagsData: BagInManifest[]; adjustments: Pick[]; orderItemsCount: number; }; declare const displayAddressSchema: z.ZodObject<{ address1: z.ZodOptional; address2: z.ZodOptional; city: z.ZodOptional; state: z.ZodOptional; zip: z.ZodOptional; notesOnManifests: z.ZodOptional; }, "strip", z.ZodTypeAny, { address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; notesOnManifests?: string | undefined; }, { address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; notesOnManifests?: string | undefined; }>; declare const customerMetadataSchema: z.ZodObject<{ customer: z.ZodOptional>; deliveryLocation: z.ZodOptional; address1: z.ZodOptional; address2: z.ZodOptional; city: z.ZodOptional; state: z.ZodOptional; zip: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; }, { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { customer?: { id: string; name: string; } | undefined; deliveryLocation?: { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; } | undefined; }, { customer?: { id: string; name: string; } | undefined; deliveryLocation?: { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; } | undefined; }>; declare const deliveryManifestPrintCustomerSchema: z.ZodObject<{ id: z.ZodString; displayCompanyName: z.ZodString; displayCompanyAddress1: z.ZodString; displayCompanyAddress2: z.ZodString; displayCompanyPhone: z.ZodString; name: z.ZodString; metadata: z.ZodOptional; address2: z.ZodOptional; city: z.ZodOptional; state: z.ZodOptional; zip: z.ZodOptional; notesOnManifests: z.ZodOptional; }, "strip", z.ZodTypeAny, { address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; notesOnManifests?: string | undefined; }, { address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; notesOnManifests?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { id: string; name: string; displayCompanyAddress1: string; displayCompanyAddress2: string; displayCompanyName: string; displayCompanyPhone: string; metadata?: { address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; notesOnManifests?: string | undefined; } | undefined; }, { id: string; name: string; displayCompanyAddress1: string; displayCompanyAddress2: string; displayCompanyName: string; displayCompanyPhone: string; metadata?: { address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; notesOnManifests?: string | undefined; } | undefined; }>; declare const deliveryManifestPrintDeliveryLocationSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; address1: z.ZodOptional; address2: z.ZodOptional; city: z.ZodOptional; state: z.ZodOptional; zip: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; }, { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; }>; declare const getDeliveryManifestPrintBodySchema: z.ZodObject<{ copies: z.ZodOptional; manifestIds: z.ZodArray; orderIds: z.ZodArray; orderId: z.ZodOptional; employee: z.ZodObject<{ customerId: z.ZodString; firstName: z.ZodString; lastName: z.ZodString; }, "strip", z.ZodTypeAny, { customerId: string; firstName: string; lastName: string; }, { customerId: string; firstName: string; lastName: string; }>; customerId: z.ZodOptional; }, "strip", z.ZodTypeAny, { employee: { customerId: string; firstName: string; lastName: string; }; orderIds: string[]; manifestIds: string[]; customerId?: string | undefined; orderId?: string | undefined; copies?: number | undefined; }, { employee: { customerId: string; firstName: string; lastName: string; }; orderIds: string[]; manifestIds: string[]; customerId?: string | undefined; orderId?: string | undefined; copies?: number | undefined; }>; declare const getDeliveryManifestPrintRequestBodySchema: z.ZodObject<{ copies: z.ZodOptional>; customerId: z.ZodOptional; manifestIds: z.ZodOptional>; orderIds: z.ZodOptional>; }, "strip", z.ZodTypeAny, { customerId?: string | undefined; orderIds?: string[] | undefined; copies?: number | undefined; manifestIds?: string[] | undefined; }, { customerId?: string | undefined; orderIds?: string[] | undefined; copies?: number | undefined; manifestIds?: string[] | undefined; }>; declare const getDeliveryManifestPrintQuerySchema: z.ZodObject<{ driverId: z.ZodOptional; }, "strip", z.ZodTypeAny, { driverId?: string | undefined; }, { driverId?: string | undefined; }>; declare const deliveryManifestCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; customerId: z.ZodString; mcId: z.ZodOptional; orders: z.ZodNullable>; createdById: z.ZodOptional; assignedToId: z.ZodNullable>; customerMetadata: z.ZodNullable>; deliveryLocation: z.ZodOptional; address1: z.ZodOptional; address2: z.ZodOptional; city: z.ZodOptional; state: z.ZodOptional; zip: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; }, { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { customer?: { id: string; name: string; } | undefined; deliveryLocation?: { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; } | undefined; }, { customer?: { id: string; name: string; } | undefined; deliveryLocation?: { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; } | undefined; }>>>; status: z.ZodOptional; slot: z.ZodDefault>; sequence: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { customerId: string; slot: TimeSlot; status?: string | undefined; id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; mcId?: string | undefined; orders?: unknown; createdById?: string | undefined; assignedToId?: string | null | undefined; customerMetadata?: { customer?: { id: string; name: string; } | undefined; deliveryLocation?: { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; } | undefined; } | null | undefined; sequence?: number | null | undefined; }, { customerId: string; status?: string | undefined; id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; slot?: TimeSlot | undefined; mcId?: string | undefined; orders?: unknown; createdById?: string | undefined; assignedToId?: string | null | undefined; customerMetadata?: { customer?: { id: string; name: string; } | undefined; deliveryLocation?: { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; } | undefined; } | null | undefined; sequence?: number | null | undefined; }>; declare const deliveryManifestUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; customerId: z.ZodOptional; mcId: z.ZodOptional>; orders: z.ZodOptional>>; createdById: z.ZodOptional>; assignedToId: z.ZodOptional>>; customerMetadata: z.ZodOptional>; deliveryLocation: z.ZodOptional; address1: z.ZodOptional; address2: z.ZodOptional; city: z.ZodOptional; state: z.ZodOptional; zip: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; }, { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { customer?: { id: string; name: string; } | undefined; deliveryLocation?: { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; } | undefined; }, { customer?: { id: string; name: string; } | undefined; deliveryLocation?: { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; } | undefined; }>>>>; status: z.ZodOptional>; slot: z.ZodOptional>>; sequence: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status?: string | undefined; id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; customerId?: string | undefined; slot?: TimeSlot | undefined; mcId?: string | undefined; orders?: unknown; createdById?: string | undefined; assignedToId?: string | null | undefined; customerMetadata?: { customer?: { id: string; name: string; } | undefined; deliveryLocation?: { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; } | undefined; } | null | undefined; sequence?: number | null | undefined; }, { status?: string | undefined; id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; customerId?: string | undefined; slot?: TimeSlot | undefined; mcId?: string | undefined; orders?: unknown; createdById?: string | undefined; assignedToId?: string | null | undefined; customerMetadata?: { customer?: { id: string; name: string; } | undefined; deliveryLocation?: { id: string; name?: string | undefined; address1?: string | undefined; address2?: string | undefined; city?: string | undefined; state?: string | undefined; zip?: string | undefined; } | undefined; } | null | undefined; sequence?: number | null | undefined; }>; declare const deliveryManifestsQuerySchema: z.ZodObject<{ assigneeIds: z.ZodOptional; createdFrom: z.ZodOptional; createdTo: z.ZodOptional; customerId: z.ZodOptional; plannedFrom: z.ZodOptional; plannedTo: z.ZodOptional; routeIds: z.ZodOptional>; status: z.ZodOptional; includeDelivered: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: string | undefined; customerId?: string | undefined; assigneeIds?: string | undefined; createdFrom?: string | undefined; createdTo?: string | undefined; plannedFrom?: string | undefined; plannedTo?: string | undefined; routeIds?: string[] | undefined; includeDelivered?: boolean | undefined; }, { status?: string | undefined; customerId?: string | undefined; assigneeIds?: string | undefined; createdFrom?: string | undefined; createdTo?: string | undefined; plannedFrom?: string | undefined; plannedTo?: string | undefined; routeIds?: string[] | undefined; includeDelivered?: boolean | undefined; }>; declare const getDeliveryManifestPrintSchema: { body: z.ZodObject<{ copies: z.ZodOptional>; customerId: z.ZodOptional; manifestIds: z.ZodOptional>; orderIds: z.ZodOptional>; }, "strip", z.ZodTypeAny, { customerId?: string | undefined; orderIds?: string[] | undefined; copies?: number | undefined; manifestIds?: string[] | undefined; }, { customerId?: string | undefined; orderIds?: string[] | undefined; copies?: number | undefined; manifestIds?: string[] | undefined; }>; query: z.ZodObject<{ driverId: z.ZodOptional; }, "strip", z.ZodTypeAny, { driverId?: string | undefined; }, { driverId?: string | undefined; }>; }; declare const updateDeliveryManifestBodySchema: z.ZodEffects>; routeId: z.ZodOptional>; status: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: string | undefined; routeId?: string | null | undefined; assignedToId?: string | null | undefined; }, { status?: string | undefined; routeId?: string | null | undefined; assignedToId?: string | null | undefined; }>, { status?: string | undefined; routeId?: string | null | undefined; assignedToId?: string | null | undefined; }, { status?: string | undefined; routeId?: string | null | undefined; assignedToId?: string | null | undefined; }>; declare const updateDeliveryManifestRequestSchema: { body: z.ZodEffects>; routeId: z.ZodOptional>; status: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: string | undefined; routeId?: string | null | undefined; assignedToId?: string | null | undefined; }, { status?: string | undefined; routeId?: string | null | undefined; assignedToId?: string | null | undefined; }>, { status?: string | undefined; routeId?: string | null | undefined; assignedToId?: string | null | undefined; }, { status?: string | undefined; routeId?: string | null | undefined; assignedToId?: string | null | undefined; }>; params: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }; declare const stageDeliveryManifestRequestSchema: z.ZodObject<{ params: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { params: { id: string; }; }, { params: { id: string; }; }>; type StageDeliveryManifestRequest = z.infer; declare const reassignManifestRouteSchema: z.ZodObject<{ body: z.ZodObject<{ routeId: z.ZodString; }, "strip", z.ZodTypeAny, { routeId: string; }, { routeId: string; }>; params: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; }, "strip", z.ZodTypeAny, { params: { id: string; }; body: { routeId: string; }; }, { params: { id: string; }; body: { routeId: string; }; }>; declare const reorderManifestsBodySchema: z.ZodObject<{ updates: z.ZodArray>; }, "strip", z.ZodTypeAny, { manifestId: string; sequence: number; slot?: TimeSlot | undefined; }, { manifestId: string; sequence: number; slot?: TimeSlot | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { updates: { manifestId: string; sequence: number; slot?: TimeSlot | undefined; }[]; }, { updates: { manifestId: string; sequence: number; slot?: TimeSlot | undefined; }[]; }>; type ReassignManifestRouteRequest = z.infer; type DisplayAddress = z.infer; type DeliveryManifestPrintCustomer = z.infer; type DeliveryManifestPrintDeliveryLocation = z.infer; type GetDeliveryManifestPrintQuery = z.infer; type GetDeliveryManifestPrintBody = z.infer; type DeliveryManifestCreateInput = z.infer; type GetDeliveryManifestPrintParams = Pick & Pick; interface DeliveryManifest { id: string; mcId: string; plannedDate?: BusinessDate; mc?: MagnoliCustomer; orders: unknown | null; createdById: string; createdBy?: Employee; assignedToId: string | null; assignedTo?: Employee; customerId: string; customerMetadata: CustomerMetadata | null; status: string; sequence: number | null; slot: TimeSlot; createdAt: string; updatedAt: string; } interface DeliveryManifestResponse { customer?: CustomerMetadata["customer"]; deliveredBy?: string; deliveryLocation?: CustomerMetadata["deliveryLocation"]; orders: OrderInManifest[]; } interface DeliveryManifestPrintResponse { customer: CustomerMetadata["customer"]; deliveredBy?: string; deliveryLocation: CustomerMetadata["deliveryLocation"]; orders: OrderInManifest[]; } interface BagData { bagId: string; bagStatus: OrderBagStatus; itemsCount: number; } interface ManifestOrderData { orderId: string; bagsData: BagData[]; orderDate: string; orderType: OrderType; orderStatus: OrderStatus; orderDueDate: string; } interface OrderRawData { orderId: string; orderData: ManifestOrderData; } type DeliveryManifestUpdateInput = Partial; interface ReturnedItemDetail { acl: string; adjustments: number; bagId: string; dueDate: string; garmentDetails: string; garmentType: string; grossAmount: number; guestName: string; listAmount: number; orderId: string; qty: number; roomId: string; saleDate: string; status: string; tagId: string; } interface ValetManifestItem { adjustments: number; bagId: string; dueDate: string; guestName: string; isBoxed: boolean; listAmount: number; orderGrandTotal: number; orderId: string; orderTotal: number; qty: number; roomNumber: string; saleDate: string; surcharge: string; surchargeFee: number; } interface ValetManifestData { companyAddress: string; companyName: string; companyPhone: string; date: string; items: ValetManifestItem[]; locationName: string; orderId: string; returnedItems: ReturnedItemDetail[]; valetAs: string; } type DeliveryManifestsQuery = z.infer; type GetDeliveryManifestPrintRequest = { body: z.infer; query: z.infer; }; type UpdateDeliveryManifestRequest = { body: z.infer; params: z.infer; }; type ReorderManifestsBody = z.infer; declare const employeeCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; firstName: z.ZodString; lastName: z.ZodString; workDays: z.ZodArray; positionId: z.ZodString; locationId: z.ZodNullable>; address1: z.ZodNullable>; address2: z.ZodNullable>; city: z.ZodNullable>; state: z.ZodNullable>; zip: z.ZodNullable>; departmentId: z.ZodNullable>; proStationInterfaceLanguage: z.ZodNullable>; status: z.ZodEnum<["ACTIVE", "INACTIVE", "ON_LEAVE"]>; workStart: z.ZodNullable>; workEnd: z.ZodNullable>; tel: z.ZodNullable>>; payrollId: z.ZodNullable>; email: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; customerId: z.ZodOptional; magnoliUserId: z.ZodNullable>; startDate: z.ZodNullable>; endDate: z.ZodNullable>; employmentTypeId: z.ZodNullable>; regularRate: z.ZodNullable>; barcode: z.ZodNullable>; businessSegmentId: z.ZodNullable>; inactivatedAt: z.ZodNullable>; managerId: z.ZodNullable>; pin: z.ZodNullable>; }, "strip", z.ZodTypeAny, { status: "ACTIVE" | "INACTIVE" | "ON_LEAVE"; positionId: string; firstName: string; lastName: string; workDays: number[]; employmentTypeId?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; customerId?: string | undefined; magnoliUserId?: string | null | undefined; email?: string | null | undefined; businessSegmentId?: string | null | undefined; startDate?: Date | null | undefined; endDate?: Date | null | undefined; departmentId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; barcode?: string | null | undefined; proStationInterfaceLanguage?: string | null | undefined; workStart?: string | null | undefined; workEnd?: string | null | undefined; tel?: string | null | undefined; payrollId?: string | null | undefined; regularRate?: string | null | undefined; inactivatedAt?: Date | null | undefined; managerId?: string | null | undefined; pin?: string | null | undefined; }, { status: "ACTIVE" | "INACTIVE" | "ON_LEAVE"; positionId: string; firstName: string; lastName: string; workDays: number[]; employmentTypeId?: string | null | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; customerId?: string | undefined; magnoliUserId?: string | null | undefined; email?: string | null | undefined; businessSegmentId?: string | null | undefined; startDate?: Date | null | undefined; endDate?: Date | null | undefined; departmentId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; barcode?: string | null | undefined; proStationInterfaceLanguage?: string | null | undefined; workStart?: string | null | undefined; workEnd?: string | null | undefined; tel?: string | null | undefined; payrollId?: string | null | undefined; regularRate?: string | null | undefined; inactivatedAt?: Date | null | undefined; managerId?: string | null | undefined; pin?: string | null | undefined; }>; declare const employeeUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; firstName: z.ZodOptional; lastName: z.ZodOptional; workDays: z.ZodOptional>; positionId: z.ZodOptional; locationId: z.ZodOptional>>; address1: z.ZodOptional>>; address2: z.ZodOptional>>; city: z.ZodOptional>>; state: z.ZodOptional>>; zip: z.ZodOptional>>; departmentId: z.ZodOptional>>; proStationInterfaceLanguage: z.ZodOptional>>; status: z.ZodOptional>; workStart: z.ZodOptional>>; workEnd: z.ZodOptional>>; tel: z.ZodOptional>>>; payrollId: z.ZodOptional>>; email: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; customerId: z.ZodOptional>; magnoliUserId: z.ZodOptional>>; startDate: z.ZodOptional>>; endDate: z.ZodOptional>>; employmentTypeId: z.ZodOptional>>; regularRate: z.ZodOptional>>; barcode: z.ZodOptional>>; businessSegmentId: z.ZodOptional>>; inactivatedAt: z.ZodOptional>>; managerId: z.ZodOptional>>; pin: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { employmentTypeId?: string | null | undefined; status?: "ACTIVE" | "INACTIVE" | "ON_LEAVE" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; positionId?: string | undefined; customerId?: string | undefined; magnoliUserId?: string | null | undefined; email?: string | null | undefined; businessSegmentId?: string | null | undefined; startDate?: Date | null | undefined; endDate?: Date | null | undefined; departmentId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; barcode?: string | null | undefined; firstName?: string | undefined; lastName?: string | undefined; workDays?: number[] | undefined; proStationInterfaceLanguage?: string | null | undefined; workStart?: string | null | undefined; workEnd?: string | null | undefined; tel?: string | null | undefined; payrollId?: string | null | undefined; regularRate?: string | null | undefined; inactivatedAt?: Date | null | undefined; managerId?: string | null | undefined; pin?: string | null | undefined; }, { employmentTypeId?: string | null | undefined; status?: "ACTIVE" | "INACTIVE" | "ON_LEAVE" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; positionId?: string | undefined; customerId?: string | undefined; magnoliUserId?: string | null | undefined; email?: string | null | undefined; businessSegmentId?: string | null | undefined; startDate?: Date | null | undefined; endDate?: Date | null | undefined; departmentId?: string | null | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | null | undefined; zip?: string | null | undefined; barcode?: string | null | undefined; firstName?: string | undefined; lastName?: string | undefined; workDays?: number[] | undefined; proStationInterfaceLanguage?: string | null | undefined; workStart?: string | null | undefined; workEnd?: string | null | undefined; tel?: string | null | undefined; payrollId?: string | null | undefined; regularRate?: string | null | undefined; inactivatedAt?: Date | null | undefined; managerId?: string | null | undefined; pin?: string | null | undefined; }>; declare const employeeGetSchema: z.ZodObject<{ position: z.ZodOptional; department: z.ZodOptional; location: z.ZodOptional; status: z.ZodOptional; barcode: z.ZodOptional; id: z.ZodOptional; tel: z.ZodOptional; email: z.ZodOptional; badge: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: string | undefined; id?: string | undefined; email?: string | undefined; location?: string | undefined; position?: string | undefined; barcode?: string | undefined; tel?: string | undefined; department?: string | undefined; badge?: string | undefined; }, { status?: string | undefined; id?: string | undefined; email?: string | undefined; location?: string | undefined; position?: string | undefined; barcode?: string | undefined; tel?: string | undefined; department?: string | undefined; badge?: string | undefined; }>; declare const employeeGetByBadgeSchema: z.ZodObject<{ badge: z.ZodString; }, "strip", z.ZodTypeAny, { badge: string; }, { badge: string; }>; declare const employeeGetShiftsSchema: z.ZodObject<{ weekStart: z.ZodOptional; }, "strip", z.ZodTypeAny, { weekStart?: string | undefined; }, { weekStart?: string | undefined; }>; type AbsenceTypeId = { absenceTypeId: string; }; interface AbsenceType { id: string; name: string; code: string; customerId: string; createdAt: string | Date; updatedAt: string | Date; customer?: MagnoliCustomer; } interface AbsenceTypeCreateInput { id?: string; name: string; code: string; customerId?: string; createdAt?: string | Date; updatedAt?: string | Date; } type AbsenceTypeUpdateInput = Partial; declare const absenceTypeIdSchema: z.ZodObject<{ absenceTypeId: z.ZodString; }, "strip", z.ZodTypeAny, { absenceTypeId: string; }, { absenceTypeId: string; }>; declare const absenceTypeCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; code: z.ZodString; customerId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { code: string; name: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; }, { code: string; name: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; }>; declare const absenceTypeUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; name: z.ZodOptional; code: z.ZodOptional; customerId: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { code?: string | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; name?: string | undefined; }, { code?: string | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; name?: string | undefined; }>; declare const AbsenceStatusEnum: { readonly PENDING: "PENDING"; readonly APPROVED: "APPROVED"; readonly REJECTED: "REJECTED"; }; type AbsenceStatusEnum = keyof typeof AbsenceStatusEnum; type AbsenceId = { absenceId: string; }; interface AbsenceGetByPeriodRequest { dateFrom?: string; dateTo?: string; employeeId?: string; status?: string; absenceTypeId?: string; } interface Absence { id: string; employeeId: string; absenceTypeId: string; customerId: string; status: string; comment: string | null; startDate: string | Date; endDate: string | Date; createdAt: string | Date; updatedAt: string | Date; employee?: Employee; absenceType?: AbsenceType; customer?: MagnoliCustomer; } interface AbsenceCreateInput { id?: string; startDate: string | Date; endDate: string | Date; status: AbsenceStatusEnum; employeeId?: string; absenceTypeId?: string; customerId?: string; comment?: string | null; createdAt?: string | Date; updatedAt?: string | Date; } type AbsenceUpdateInput = Partial; declare const absenceIdSchema: z.ZodObject<{ absenceId: z.ZodString; }, "strip", z.ZodTypeAny, { absenceId: string; }, { absenceId: string; }>; declare const absenceCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; startDate: z.ZodDate; endDate: z.ZodDate; comment: z.ZodOptional; status: z.ZodDefault>; employeeId: z.ZodOptional; absenceTypeId: z.ZodOptional; customerId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "PENDING" | "APPROVED" | "REJECTED"; startDate: Date; endDate: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; employeeId?: string | undefined; absenceTypeId?: string | undefined; comment?: string | undefined; }, { startDate: Date; endDate: Date; status?: "PENDING" | "APPROVED" | "REJECTED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; employeeId?: string | undefined; absenceTypeId?: string | undefined; comment?: string | undefined; }>; declare const absenceUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; startDate: z.ZodOptional; endDate: z.ZodOptional; comment: z.ZodOptional>; status: z.ZodOptional>>; employeeId: z.ZodOptional>; absenceTypeId: z.ZodOptional>; customerId: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { status?: "PENDING" | "APPROVED" | "REJECTED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; employeeId?: string | undefined; startDate?: Date | undefined; endDate?: Date | undefined; absenceTypeId?: string | undefined; comment?: string | undefined; }, { status?: "PENDING" | "APPROVED" | "REJECTED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; employeeId?: string | undefined; startDate?: Date | undefined; endDate?: Date | undefined; absenceTypeId?: string | undefined; comment?: string | undefined; }>; type EmployeeId = { employeeId: string; }; interface Employee { id: string; firstName: string; lastName: string; workDays: number[]; positionId: string | null; locationId: string | null; departmentId: string | null; proStationInterfaceLanguage: string | null; status: string; workStart: string | null; workEnd: string | null; city: string | null; tel: string | null; payrollId: string | null; email: string | null; address1: string | null; address2: string | null; state: string | null; zip: string | null; createdAt: string | Date; updatedAt: string | Date; customerId: string; magnoliUserId: string | null; startDate: string | Date | null; endDate: string | Date | null; employmentTypeId: string | null; regularRate: string | null; barcode: string | null; businessSegmentId: string | null; inactivatedAt: string | Date | null; managerId: string | null; clockedShifts?: ClockedShift[]; defaultSchedules?: DefaultSchedule[]; businessSegment?: BusinessSegment | null; customer?: MagnoliCustomer | null; department?: Department | null; employmentType?: EmploymentType | null; location?: Location | null; position?: Position | null; magnoliUser?: MagnoliUser | null; proStationsLogs?: ProStationLog[]; scheduledShift?: ScheduledShift[]; SegmentsInClockedShift?: SegmentsInClockedShift[]; comments?: ShiftComment[]; manager?: Employee | null; managedEmployees?: Employee[]; deliveryManifestsCreated?: DeliveryManifest[]; deliveryManifestsAssigned?: DeliveryManifest[]; } type EmployeeCreateInput = z.infer; type EmployeeUpdateInput = z.infer; type EmployeeShift = { id: string; startDate: string; endDate: string | null; startTime: string; endTime: string | null; locationId: string; departmentId?: string | null; breaks: Array; businessSegmentId: string | null; status?: string; hasUnresolvedQuestions?: boolean; shiftType: "scheduled" | "clocked"; }; type EmployeeOvertimes = { regularTime: string; ot8: string; ot24: string; ot40: string; }; type EmployeeGetShiftsResponse = { employee: Employee; absences: Absence[]; weekDays: Array<{ startDate: string; }>; shifts: EmployeeShift[]; }; type EmployeeGetRequest = z.infer; type EmployeeGetByBadgeRequest = z.infer; type EmployeeGetShiftsRequest = z.infer; declare const EmployeeStatusEnum: { readonly ACTIVE: "ACTIVE"; readonly INACTIVE: "INACTIVE"; readonly ON_LEAVE: "ON_LEAVE"; }; type EmployeeStatusEnum = keyof typeof EmployeeStatusEnum; declare const defaultScheduleIdSchema: z.ZodObject<{ defaultScheduleId: z.ZodString; }, "strip", z.ZodTypeAny, { defaultScheduleId: string; }, { defaultScheduleId: string; }>; declare const defaultScheduleCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; weekDay: z.ZodNumber; startTime: z.ZodString; endTime: z.ZodString; locationId: z.ZodNullable>; departmentId: z.ZodNullable>; positionId: z.ZodNullable>; isDayOff: z.ZodOptional; employeeId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; defaultBreaks: z.ZodNullable>>; }, "strip", z.ZodTypeAny, { startTime: string; endTime: string; weekDay: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; positionId?: string | null | undefined; employeeId?: string | undefined; defaultBreaks?: string[] | null | undefined; departmentId?: string | null | undefined; isDayOff?: boolean | undefined; }, { startTime: string; endTime: string; weekDay: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; positionId?: string | null | undefined; employeeId?: string | undefined; defaultBreaks?: string[] | null | undefined; departmentId?: string | null | undefined; isDayOff?: boolean | undefined; }>; declare const defaultScheduleUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; weekDay: z.ZodOptional; startTime: z.ZodOptional; endTime: z.ZodOptional; locationId: z.ZodOptional>>; departmentId: z.ZodOptional>>; positionId: z.ZodOptional>>; isDayOff: z.ZodOptional>; employeeId: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; defaultBreaks: z.ZodOptional>>>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; positionId?: string | null | undefined; employeeId?: string | undefined; startTime?: string | undefined; endTime?: string | undefined; defaultBreaks?: string[] | null | undefined; departmentId?: string | null | undefined; weekDay?: number | undefined; isDayOff?: boolean | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; positionId?: string | null | undefined; employeeId?: string | undefined; startTime?: string | undefined; endTime?: string | undefined; defaultBreaks?: string[] | null | undefined; departmentId?: string | null | undefined; weekDay?: number | undefined; isDayOff?: boolean | undefined; }>; declare const defaultScheduleBulkCreateSchema: z.ZodObject<{ defaultSchedules: z.ZodArray; weekDay: z.ZodNumber; startTime: z.ZodString; endTime: z.ZodString; locationId: z.ZodNullable>; departmentId: z.ZodNullable>; positionId: z.ZodNullable>; isDayOff: z.ZodOptional; employeeId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; defaultBreaks: z.ZodNullable>>; }, "strip", z.ZodTypeAny, { startTime: string; endTime: string; weekDay: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; positionId?: string | null | undefined; employeeId?: string | undefined; defaultBreaks?: string[] | null | undefined; departmentId?: string | null | undefined; isDayOff?: boolean | undefined; }, { startTime: string; endTime: string; weekDay: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; positionId?: string | null | undefined; employeeId?: string | undefined; defaultBreaks?: string[] | null | undefined; departmentId?: string | null | undefined; isDayOff?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { defaultSchedules: { startTime: string; endTime: string; weekDay: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; positionId?: string | null | undefined; employeeId?: string | undefined; defaultBreaks?: string[] | null | undefined; departmentId?: string | null | undefined; isDayOff?: boolean | undefined; }[]; }, { defaultSchedules: { startTime: string; endTime: string; weekDay: number; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | null | undefined; positionId?: string | null | undefined; employeeId?: string | undefined; defaultBreaks?: string[] | null | undefined; departmentId?: string | null | undefined; isDayOff?: boolean | undefined; }[]; }>; type DefaultScheduleId = { defaultScheduleId: string; }; interface DefaultSchedule { id: string; weekDay: number; startTime: string; endTime: string; locationId: string | null; departmentId: string | null; positionId: string | null; isDayOff: boolean; employeeId: string; createdAt: string | Date; updatedAt: string | Date; department?: Department; employee?: Employee; location?: Location; position?: Position; defaultBreaks?: DefaultBreak[]; } interface DefaultScheduleCreateInput { id?: string; weekDay: number; startTime: string; endTime: string; locationId?: string | null; departmentId?: string | null; positionId?: string | null; isDayOff?: boolean; employeeId?: string; createdAt?: string | Date; updatedAt?: string | Date; defaultBreaks?: string[] | null; } type DefaultScheduleUpdateInput = Partial; type DefaultScheduleBulkCreateInput = z.infer; type DepartmentId = { departmentId: string; }; interface Department { id: string; title: string; createdAt: string | Date; updatedAt: string | Date; customerId: string; businessSegmentId: string | null; clockedShifts?: ClockedShift[]; DefaultSchedule?: DefaultSchedule[]; businessSegment?: BusinessSegment; customer?: MagnoliCustomer; employees?: Employee[]; } interface DepartmentCreateInput { id?: string; title: string; createdAt?: string | Date; updatedAt?: string | Date; customerId?: string; businessSegmentId?: string | null; } type DepartmentUpdateInput = Partial; declare const departmentIdSchema: z.ZodObject<{ departmentId: z.ZodString; }, "strip", z.ZodTypeAny, { departmentId: string; }, { departmentId: string; }>; declare const departmentCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; title: z.ZodString; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; customerId: z.ZodOptional; businessSegmentId: z.ZodNullable>; }, "strip", z.ZodTypeAny, { title: string; id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; customerId?: string | undefined; businessSegmentId?: string | null | undefined; }, { title: string; id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; customerId?: string | undefined; businessSegmentId?: string | null | undefined; }>; declare const departmentUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; title: z.ZodOptional; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; customerId: z.ZodOptional>; businessSegmentId: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id?: string | undefined; title?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; customerId?: string | undefined; businessSegmentId?: string | null | undefined; }, { id?: string | undefined; title?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; customerId?: string | undefined; businessSegmentId?: string | null | undefined; }>; declare const shiftFlagIdSchema: z.ZodObject<{ shiftFlagId: z.ZodString; }, "strip", z.ZodTypeAny, { shiftFlagId: string; }, { shiftFlagId: string; }>; declare const shiftFlagCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; clockedShiftId: z.ZodOptional; type: z.ZodString; description: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }, { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }>; declare const shiftFlagUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; clockedShiftId: z.ZodOptional>; type: z.ZodOptional; description: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }, { type?: string | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }>; declare const shiftFlagGetInputSchema: z.ZodObject<{ query: z.ZodObject<{ id: z.ZodOptional; clockedShiftId: z.ZodOptional; type: z.ZodOptional; description: z.ZodOptional; }, "strip", z.ZodTypeAny, { type?: string | undefined; id?: string | undefined; clockedShiftId?: string | undefined; description?: string | undefined; }, { type?: string | undefined; id?: string | undefined; clockedShiftId?: string | undefined; description?: string | undefined; }>; }, "strip", z.ZodTypeAny, { query: { type?: string | undefined; id?: string | undefined; clockedShiftId?: string | undefined; description?: string | undefined; }; }, { query: { type?: string | undefined; id?: string | undefined; clockedShiftId?: string | undefined; description?: string | undefined; }; }>; declare const shiftFlagBulkCreateSchema: z.ZodOptional; clockedShiftId: z.ZodOptional; type: z.ZodString; description: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }, { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }>, "many">>; type ShiftFlagId = { shiftFlagId: string; }; interface ShiftFlag { id: string; clockedShiftId: string; type: string; description: string | null; createdAt: string | Date; updatedAt: string | Date; clockedShift?: ClockedShift; } interface ShiftFlagCreateInput { id?: string; clockedShiftId?: string; type: string; description?: string | null; createdAt?: string | Date; updatedAt?: string | Date; } type ShiftFlagUpdateInput = Partial; type ShiftFlagGetInput = z.infer; declare const ShiftFlagTypeEnum: { readonly LATE_CLOCK_IN: "LATE_CLOCK_IN"; readonly EARLY_CLOCK_OUT: "EARLY_CLOCK_OUT"; readonly MISSED_BREAK: "MISSED_BREAK"; readonly OVERTIME: "OVERTIME"; readonly INCOMPLETE_SHIFT: "INCOMPLETE_SHIFT"; readonly UNSCHEDULED_SHIFT: "UNSCHEDULED_SHIFT"; readonly UNPLANNED_SHIFT: "UNPLANNED_SHIFT"; readonly NO_SHOW: "NO_SHOW"; readonly LONG_SHIFT: "LONG_SHIFT"; readonly LONG_BREAK: "LONG_BREAK"; }; type ShiftFlagTypeEnum = keyof typeof ShiftFlagTypeEnum; type ClockedShiftId = { clockedShiftId: string; }; interface ClockedShift { id: string; employeeId: string; locationId: string; departmentId: string | null; businessSegmentId: string | null; clockInTime: string | Date; clockOutTime: string | Date | null; scheduledShiftId: string | null; status: string; timeCategories: any | null; ppoh: Array | null; createdAt: string | Date; updatedAt: string | Date; regularRate: string | null; timeToFirstActivity: number | null; businessSegment?: BusinessSegment | null; department?: Department | null; employee?: Employee | null; location?: Location | null; scheduledShift?: ScheduledShift | null; history?: ClockedShiftHistory[] | null; proStationsLogs?: ProStationLog[] | null; SegmentsInClockedShift?: SegmentsInClockedShift[] | null; breaks?: ShiftBreakEvent[] | null; comments?: ShiftComment[] | null; flags?: ShiftFlag[] | null; } interface ClockedShiftCreateInput { id?: string; employeeId?: string; locationId?: string; departmentId?: string | null; businessSegmentId?: string | null; ppoh?: Array | null; clockInTime: string | Date; clockOutTime?: string | Date | null; scheduledShiftId?: string | null; status?: string; regularRate?: string | null; timeCategories?: any | null; createdAt?: string | Date; updatedAt?: string | Date; timeToFirstActivity?: number | null; flags?: ShiftFlagCreateInput[]; breaks?: ShiftBreakEventCreateInput[]; } type ClockedShiftUpdateInput = Partial; interface ClockedShiftApproval { id: string; employeeId: string; locationId: string; businessSegmentId: null | string; departmentId: null | string; clockInTime: string | Date; clockOutTime: string | Date | null; status: string; createdAt: string | Date; updatedAt: string | Date; scheduledShift: Nullable; timeCategories: Array<{ duration: string; shiftId: string; timeSlots: string[]; type: string; }>; calculations: { breakHours: number; breaksByType: { [key: string]: { count: number; totalHours: number; }; }; totalHours: number; workedHours: number; }; breaks: Array; department: Nullable; employee: Employee; location: Location; flags: Array; ppoh: Array | null; } type PPOHItem = { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; reworkedPieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }; type GetClockedShiftByIdResponse = { success: boolean; data: ClockedShiftApproval; message: string; count: number; breakCount?: number; flagCount?: number; statusCode?: number; }; type ClockedShiftGetByPeriodRequest = z.infer; type ClockedShiftGetByPeriodResponse = { success: boolean; data: { id: string; employeeName: string; department: string; position: string; date: Date; flag: string; regularTime: string | number; overtimeHours: string | number; breakTime: string | number; standardTime: number; timeToFirstActivity: Nullable; status: string; hasMealBreak: boolean; clockInTime: Date; clockOutTime: Date | null; ppoh: Array | null; }[]; period: { start: string; end: string; }; count: number; }; type ClockedShiftClockInRequest = z.infer; type ClockedShiftGetEmployeeActiveShiftResponse = { success: boolean; data: Nullable; }>; message: string; count: number; statusCode?: number; }; type ClockedShiftUpdateStatusInput = z.infer; type ClockedShiftUpdateStatusOutput = { success: boolean; data: string[]; message: string; errors: { message: string; id: string; }[]; }; declare const clockedShiftIdSchema: z.ZodObject<{ clockedShiftId: z.ZodString; }, "strip", z.ZodTypeAny, { clockedShiftId: string; }, { clockedShiftId: string; }>; declare const clockedShiftCreateInputSchema: z.ZodEffects; employeeId: z.ZodString; locationId: z.ZodString; departmentId: z.ZodString; businessSegmentId: z.ZodString; clockInTime: z.ZodDate; clockOutTime: z.ZodNullable>; scheduledShiftId: z.ZodNullable>; status: z.ZodOptional>; timeCategories: z.ZodNullable>; createdAt: z.ZodOptional; regularRate: z.ZodNullable>; updatedAt: z.ZodOptional; timeToFirstActivity: z.ZodNullable>; breaks: z.ZodDefault; clockedShiftId: z.ZodOptional; name: z.ZodString; isPaid: z.ZodOptional; startTime: z.ZodDate; endTime: z.ZodNullable>; defaultBreakId: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; defaultBreakIds: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }, { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }>, { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }, { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }>, "many">>>; ppoh: z.ZodDefault, "many">>>>; flags: z.ZodOptional; clockedShiftId: z.ZodOptional; type: z.ZodString; description: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }, { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; breaks: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[]; ppoh: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; }, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; breaks: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[]; ppoh: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; }, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; breaks: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[]; ppoh: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; }, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; breaks: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[]; ppoh: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; }, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; breaks: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[]; ppoh: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; }, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; breaks: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[]; ppoh: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; }, { locationId: string; employeeId: string; businessSegmentId: string; departmentId: string; clockInTime: Date; status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; scheduledShiftId?: string | null | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>; declare const clockedShiftUpdateInputSchema: z.ZodEffects>; employeeId: z.ZodOptional; locationId: z.ZodOptional; departmentId: z.ZodOptional; businessSegmentId: z.ZodOptional; clockInTime: z.ZodOptional; clockOutTime: z.ZodOptional>>; scheduledShiftId: z.ZodOptional>>; status: z.ZodOptional>>; timeCategories: z.ZodOptional>>; createdAt: z.ZodOptional>; regularRate: z.ZodOptional>>; updatedAt: z.ZodOptional>; timeToFirstActivity: z.ZodOptional>>; breaks: z.ZodOptional; clockedShiftId: z.ZodOptional; name: z.ZodString; isPaid: z.ZodOptional; startTime: z.ZodDate; endTime: z.ZodNullable>; defaultBreakId: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; defaultBreakIds: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }, { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }>, { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }, { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }>, "many">>>>; ppoh: z.ZodOptional, "many">>>>>; flags: z.ZodOptional; clockedShiftId: z.ZodOptional; type: z.ZodString; description: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }, { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }>, "many">>>; }, "strip", z.ZodTypeAny, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; locationId?: string | undefined; employeeId?: string | undefined; businessSegmentId?: string | undefined; scheduledShiftId?: string | null | undefined; departmentId?: string | undefined; regularRate?: string | null | undefined; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; clockInTime?: Date | undefined; clockOutTime?: Date | null | undefined; timeCategories?: any; timeToFirstActivity?: number | null | undefined; breaks?: { name: string; startTime: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; isPaid?: boolean | undefined; endTime?: Date | null | undefined; defaultBreakId?: string | null | undefined; defaultBreakIds?: string[] | undefined; }[] | undefined; ppoh?: { businessSegmentId: string; category: string; activeHours: number; nbcRatio: number; noBarcodePieces: number; withBarcodePieces: number; totalPieces: number; ppoh: number; }[] | null | undefined; }>; declare const clockedShiftGetByPeriodSchema: z.ZodObject<{ date: z.ZodOptional; dateFrom: z.ZodOptional; dateTo: z.ZodOptional; employeeId: z.ZodOptional; departmentId: z.ZodOptional; locationId: z.ZodOptional; status: z.ZodOptional>; positionId: z.ZodOptional; flag: z.ZodOptional; }, "strip", z.ZodTypeAny, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; locationId?: string | undefined; date?: string | undefined; positionId?: string | undefined; employeeId?: string | undefined; departmentId?: string | undefined; dateFrom?: string | undefined; dateTo?: string | undefined; flag?: string | undefined; }, { status?: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED" | undefined; locationId?: string | undefined; date?: string | undefined; positionId?: string | undefined; employeeId?: string | undefined; departmentId?: string | undefined; dateFrom?: string | undefined; dateTo?: string | undefined; flag?: string | undefined; }>; declare const clockedShiftClockInSchema: z.ZodObject<{ employeeId: z.ZodString; locationId: z.ZodString; scheduledShiftId: z.ZodNullable; flags: z.ZodOptional; clockedShiftId: z.ZodOptional; type: z.ZodString; description: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }, { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { locationId: string; employeeId: string; scheduledShiftId: string | null; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; }, { locationId: string; employeeId: string; scheduledShiftId: string | null; flags?: { type: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; clockedShiftId?: string | undefined; description?: string | null | undefined; }[] | undefined; }>; declare const clockedShiftUpdateStatusInputSchema: z.ZodObject<{ clockedShiftIds: z.ZodArray; status: z.ZodEnum<["DRAFT", "ACTIVE", "PENDING", "APPROVED", "INQUIRIES", "CLEARED"]>; }, "strip", z.ZodTypeAny, { status: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED"; clockedShiftIds: string[]; }, { status: "ACTIVE" | "PENDING" | "DRAFT" | "APPROVED" | "INQUIRIES" | "CLEARED"; clockedShiftIds: string[]; }>; declare const ClockedShiftStatusEnum: { readonly ACTIVE: "ACTIVE"; readonly PENDING: "PENDING"; readonly APPROVED: "APPROVED"; readonly INQUIRIES: "INQUIRIES"; readonly CLEARED: "CLEARED"; readonly DRAFT: "DRAFT"; readonly PAID: "PAID"; readonly INACTIVE: "INACTIVE"; }; type ClockedShiftStatusEnum = keyof typeof ClockedShiftStatusEnum; type BusinessSegmentId = { businessSegmentId: string; }; interface BusinessSegment { id: string; name: string; customerId: string; createdAt: string | Date; updatedAt: string | Date; customer?: MagnoliCustomer; clockedShifts?: ClockedShift[]; departments?: Department[]; employees?: Employee[]; locations?: Location[]; positions?: Position[]; proStationsLogs?: ProStationLog[]; scheduledShift?: ScheduledShift[]; SegmentsInClockedShift?: SegmentsInClockedShift[]; } interface BusinessSegmentCreateInput { id?: string; name: string; customerId?: string; createdAt?: string | Date; updatedAt?: string | Date; } type BusinessSegmentUpdateInput = Partial; declare const businessSegmentIdSchema: z.ZodObject<{ businessSegmentId: z.ZodString; }, "strip", z.ZodTypeAny, { businessSegmentId: string; }, { businessSegmentId: string; }>; declare const businessSegmentCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; customerId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; }, { name: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; }>; declare const businessSegmentUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; name: z.ZodOptional; customerId: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; name?: string | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; name?: string | undefined; }>; declare const MagnoliCustomerPayrollPeriodEnum: { readonly WEEKLY: "WEEKLY"; readonly BIWEEKLY: "BIWEEKLY"; readonly MONTHLY: "MONTHLY"; }; type MagnoliCustomerPayrollPeriodEnum = keyof typeof MagnoliCustomerPayrollPeriodEnum; declare enum CustomerSettingsOrderSource { EXTERNAL_DATA_POS = "EXTERNAL_DATA_POS", MAGNOLI_POS = "MAGNOLI_POS", NONE = "NONE", ALL = "ALL" } type MagnoliCustomerSettingsId = { magnoliCustomerSettingsId: string; }; interface MagnoliCustomerSettings { id: string; customerId: string; createdAt: string | Date; updatedAt: string | Date; posSettings: { orderSources: { valet: CustomerSettingsOrderSource[]; uniform: CustomerSettingsOrderSource[]; retail: CustomerSettingsOrderSource[]; }; reports?: { salesSheetUrl: string; }; } | null; payrollSettings: { overtimePayMultiplier: number; payrollPeriod: MagnoliCustomerPayrollPeriodEnum; }; timeclockSettings: { canFinishUnpaidBreakEarly: boolean; finishUnpaidBreakEarlyThreshold: number; canStartShiftEarly: boolean; startShiftEarlyThreshold: number; registerNoBarcodeIfNotRecognized: boolean; allowRestBreak: boolean; longShiftDeltaMinutes: number; lateClockInThreshold: number; }; rosterSettings: { ot24Enabled: boolean; ot24PayThreshold: number; defaultShiftLength: number; overtimeThreshold: number; californiaOvertimeEnabled: boolean; californiaOvertimeCooldownHours: number; }; customer?: MagnoliCustomer; } interface MagnoliCustomerSettingsCreateInput { id?: string; customerId?: string; createdAt?: string | Date; updatedAt?: string | Date; posSettings?: any | null; payrollSettings?: any; timeclockSettings?: any; rosterSettings?: any; } type MagnoliCustomerSettingsUpdateInput = Partial; interface MagnoliCustomerSettingsGetInput { magnoliCustomerId?: string; } declare const magnoliCustomerSettingsIdSchema: z.ZodObject<{ magnoliCustomerSettingsId: z.ZodString; }, "strip", z.ZodTypeAny, { magnoliCustomerSettingsId: string; }, { magnoliCustomerSettingsId: string; }>; declare const magnoliCustomerSettingsCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; customerId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; posSettings: z.ZodNullable, "many">>; uniform: z.ZodDefault, "many">>; retail: z.ZodDefault, "many">>; }, "strip", z.ZodTypeAny, { retail: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; uniform: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; valet: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; }, { retail?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; uniform?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; valet?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; }>; reports: z.ZodNullable>; }, "strip", z.ZodTypeAny, { salesSheetUrl?: string | null | undefined; }, { salesSheetUrl?: string | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { orderSources: { retail: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; uniform: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; valet: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; }; reports?: { salesSheetUrl?: string | null | undefined; } | null | undefined; }, { orderSources: { retail?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; uniform?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; valet?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; }; reports?: { salesSheetUrl?: string | null | undefined; } | null | undefined; }>>; payrollSettings: z.ZodObject<{ overtimePayMultiplier: z.ZodDefault; biweeklyStartWeek: z.ZodNullable>; payrollPeriod: z.ZodDefault>; }, "strip", z.ZodTypeAny, { overtimePayMultiplier: number; payrollPeriod: "WEEKLY" | "BIWEEKLY" | "MONTHLY"; biweeklyStartWeek?: number | null | undefined; }, { overtimePayMultiplier?: number | undefined; biweeklyStartWeek?: number | null | undefined; payrollPeriod?: "WEEKLY" | "BIWEEKLY" | "MONTHLY" | undefined; }>; timeclockSettings: z.ZodObject<{ canFinishUnpaidBreakEarly: z.ZodDefault; finishUnpaidBreakEarlyThreshold: z.ZodDefault; canStartShiftEarly: z.ZodDefault; startShiftEarlyThreshold: z.ZodDefault; registerNoBarcodeIfNotRecognized: z.ZodDefault; allowRestBreak: z.ZodDefault; longShiftDeltaMinutes: z.ZodDefault; lateClockInThreshold: z.ZodDefault; }, "strip", z.ZodTypeAny, { canFinishUnpaidBreakEarly: boolean; finishUnpaidBreakEarlyThreshold: number; canStartShiftEarly: boolean; startShiftEarlyThreshold: number; registerNoBarcodeIfNotRecognized: boolean; allowRestBreak: boolean; longShiftDeltaMinutes: number; lateClockInThreshold: number; }, { canFinishUnpaidBreakEarly?: boolean | undefined; finishUnpaidBreakEarlyThreshold?: number | undefined; canStartShiftEarly?: boolean | undefined; startShiftEarlyThreshold?: number | undefined; registerNoBarcodeIfNotRecognized?: boolean | undefined; allowRestBreak?: boolean | undefined; longShiftDeltaMinutes?: number | undefined; lateClockInThreshold?: number | undefined; }>; rosterSettings: z.ZodObject<{ ot24Enabled: z.ZodDefault; ot24PayThreshold: z.ZodDefault; defaultShiftLength: z.ZodDefault; overtimeThreshold: z.ZodDefault; californiaOvertimeEnabled: z.ZodDefault; californiaOvertimeCooldownHours: z.ZodDefault; }, "strip", z.ZodTypeAny, { ot24Enabled: boolean; ot24PayThreshold: number; defaultShiftLength: number; overtimeThreshold: number; californiaOvertimeEnabled: boolean; californiaOvertimeCooldownHours: number; }, { ot24Enabled?: boolean | undefined; ot24PayThreshold?: number | undefined; defaultShiftLength?: number | undefined; overtimeThreshold?: number | undefined; californiaOvertimeEnabled?: boolean | undefined; californiaOvertimeCooldownHours?: number | undefined; }>; }, "strip", z.ZodTypeAny, { posSettings: { orderSources: { retail: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; uniform: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; valet: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; }; reports?: { salesSheetUrl?: string | null | undefined; } | null | undefined; } | null; payrollSettings: { overtimePayMultiplier: number; payrollPeriod: "WEEKLY" | "BIWEEKLY" | "MONTHLY"; biweeklyStartWeek?: number | null | undefined; }; timeclockSettings: { canFinishUnpaidBreakEarly: boolean; finishUnpaidBreakEarlyThreshold: number; canStartShiftEarly: boolean; startShiftEarlyThreshold: number; registerNoBarcodeIfNotRecognized: boolean; allowRestBreak: boolean; longShiftDeltaMinutes: number; lateClockInThreshold: number; }; rosterSettings: { ot24Enabled: boolean; ot24PayThreshold: number; defaultShiftLength: number; overtimeThreshold: number; californiaOvertimeEnabled: boolean; californiaOvertimeCooldownHours: number; }; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; }, { posSettings: { orderSources: { retail?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; uniform?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; valet?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; }; reports?: { salesSheetUrl?: string | null | undefined; } | null | undefined; } | null; payrollSettings: { overtimePayMultiplier?: number | undefined; biweeklyStartWeek?: number | null | undefined; payrollPeriod?: "WEEKLY" | "BIWEEKLY" | "MONTHLY" | undefined; }; timeclockSettings: { canFinishUnpaidBreakEarly?: boolean | undefined; finishUnpaidBreakEarlyThreshold?: number | undefined; canStartShiftEarly?: boolean | undefined; startShiftEarlyThreshold?: number | undefined; registerNoBarcodeIfNotRecognized?: boolean | undefined; allowRestBreak?: boolean | undefined; longShiftDeltaMinutes?: number | undefined; lateClockInThreshold?: number | undefined; }; rosterSettings: { ot24Enabled?: boolean | undefined; ot24PayThreshold?: number | undefined; defaultShiftLength?: number | undefined; overtimeThreshold?: number | undefined; californiaOvertimeEnabled?: boolean | undefined; californiaOvertimeCooldownHours?: number | undefined; }; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; }>; declare const magnoliCustomerSettingsUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; customerId: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; posSettings: z.ZodOptional, "many">>; uniform: z.ZodDefault, "many">>; retail: z.ZodDefault, "many">>; }, "strip", z.ZodTypeAny, { retail: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; uniform: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; valet: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; }, { retail?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; uniform?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; valet?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; }>; reports: z.ZodNullable>; }, "strip", z.ZodTypeAny, { salesSheetUrl?: string | null | undefined; }, { salesSheetUrl?: string | null | undefined; }>>>; }, "strip", z.ZodTypeAny, { orderSources: { retail: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; uniform: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; valet: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; }; reports?: { salesSheetUrl?: string | null | undefined; } | null | undefined; }, { orderSources: { retail?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; uniform?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; valet?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; }; reports?: { salesSheetUrl?: string | null | undefined; } | null | undefined; }>>>; payrollSettings: z.ZodOptional; biweeklyStartWeek: z.ZodNullable>; payrollPeriod: z.ZodDefault>; }, "strip", z.ZodTypeAny, { overtimePayMultiplier: number; payrollPeriod: "WEEKLY" | "BIWEEKLY" | "MONTHLY"; biweeklyStartWeek?: number | null | undefined; }, { overtimePayMultiplier?: number | undefined; biweeklyStartWeek?: number | null | undefined; payrollPeriod?: "WEEKLY" | "BIWEEKLY" | "MONTHLY" | undefined; }>>; timeclockSettings: z.ZodOptional; finishUnpaidBreakEarlyThreshold: z.ZodDefault; canStartShiftEarly: z.ZodDefault; startShiftEarlyThreshold: z.ZodDefault; registerNoBarcodeIfNotRecognized: z.ZodDefault; allowRestBreak: z.ZodDefault; longShiftDeltaMinutes: z.ZodDefault; lateClockInThreshold: z.ZodDefault; }, "strip", z.ZodTypeAny, { canFinishUnpaidBreakEarly: boolean; finishUnpaidBreakEarlyThreshold: number; canStartShiftEarly: boolean; startShiftEarlyThreshold: number; registerNoBarcodeIfNotRecognized: boolean; allowRestBreak: boolean; longShiftDeltaMinutes: number; lateClockInThreshold: number; }, { canFinishUnpaidBreakEarly?: boolean | undefined; finishUnpaidBreakEarlyThreshold?: number | undefined; canStartShiftEarly?: boolean | undefined; startShiftEarlyThreshold?: number | undefined; registerNoBarcodeIfNotRecognized?: boolean | undefined; allowRestBreak?: boolean | undefined; longShiftDeltaMinutes?: number | undefined; lateClockInThreshold?: number | undefined; }>>; rosterSettings: z.ZodOptional; ot24PayThreshold: z.ZodDefault; defaultShiftLength: z.ZodDefault; overtimeThreshold: z.ZodDefault; californiaOvertimeEnabled: z.ZodDefault; californiaOvertimeCooldownHours: z.ZodDefault; }, "strip", z.ZodTypeAny, { ot24Enabled: boolean; ot24PayThreshold: number; defaultShiftLength: number; overtimeThreshold: number; californiaOvertimeEnabled: boolean; californiaOvertimeCooldownHours: number; }, { ot24Enabled?: boolean | undefined; ot24PayThreshold?: number | undefined; defaultShiftLength?: number | undefined; overtimeThreshold?: number | undefined; californiaOvertimeEnabled?: boolean | undefined; californiaOvertimeCooldownHours?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; posSettings?: { orderSources: { retail: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; uniform: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; valet: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[]; }; reports?: { salesSheetUrl?: string | null | undefined; } | null | undefined; } | null | undefined; payrollSettings?: { overtimePayMultiplier: number; payrollPeriod: "WEEKLY" | "BIWEEKLY" | "MONTHLY"; biweeklyStartWeek?: number | null | undefined; } | undefined; timeclockSettings?: { canFinishUnpaidBreakEarly: boolean; finishUnpaidBreakEarlyThreshold: number; canStartShiftEarly: boolean; startShiftEarlyThreshold: number; registerNoBarcodeIfNotRecognized: boolean; allowRestBreak: boolean; longShiftDeltaMinutes: number; lateClockInThreshold: number; } | undefined; rosterSettings?: { ot24Enabled: boolean; ot24PayThreshold: number; defaultShiftLength: number; overtimeThreshold: number; californiaOvertimeEnabled: boolean; californiaOvertimeCooldownHours: number; } | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; posSettings?: { orderSources: { retail?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; uniform?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; valet?: ("MAGNOLI_POS" | "EXTERNAL_DATA_POS")[] | undefined; }; reports?: { salesSheetUrl?: string | null | undefined; } | null | undefined; } | null | undefined; payrollSettings?: { overtimePayMultiplier?: number | undefined; biweeklyStartWeek?: number | null | undefined; payrollPeriod?: "WEEKLY" | "BIWEEKLY" | "MONTHLY" | undefined; } | undefined; timeclockSettings?: { canFinishUnpaidBreakEarly?: boolean | undefined; finishUnpaidBreakEarlyThreshold?: number | undefined; canStartShiftEarly?: boolean | undefined; startShiftEarlyThreshold?: number | undefined; registerNoBarcodeIfNotRecognized?: boolean | undefined; allowRestBreak?: boolean | undefined; longShiftDeltaMinutes?: number | undefined; lateClockInThreshold?: number | undefined; } | undefined; rosterSettings?: { ot24Enabled?: boolean | undefined; ot24PayThreshold?: number | undefined; defaultShiftLength?: number | undefined; overtimeThreshold?: number | undefined; californiaOvertimeEnabled?: boolean | undefined; californiaOvertimeCooldownHours?: number | undefined; } | undefined; }>; declare const magnoliCustomerSettingsGetSchema: z.ZodObject<{ query: z.ZodObject<{ magnoliCustomerId: z.ZodOptional; }, "strip", z.ZodTypeAny, { magnoliCustomerId?: string | undefined; }, { magnoliCustomerId?: string | undefined; }>; }, "strip", z.ZodTypeAny, { query: { magnoliCustomerId?: string | undefined; }; }, { query: { magnoliCustomerId?: string | undefined; }; }>; declare const notificationTypeEnumSchema: z.ZodNativeEnum<{ readonly EMPLOYEE_LATE_FOR_SHIFT: "EMPLOYEE_LATE_FOR_SHIFT"; readonly LATE_CLOCK_OUT: "LATE_CLOCK_OUT"; readonly LATE_RETURN_FROM_LUNCH: "LATE_RETURN_FROM_LUNCH"; readonly UPCOMING_SHIFT_START: "UPCOMING_SHIFT_START"; readonly PAID_BREAK_ENDING: "PAID_BREAK_ENDING"; readonly NEW_PICKUP_REQUEST: "NEW_PICKUP_REQUEST"; }>; declare const notificationSettingIdSchema: z.ZodObject<{ notificationSettingId: z.ZodString; }, "strip", z.ZodTypeAny, { notificationSettingId: string; }, { notificationSettingId: string; }>; declare const notificationSettingCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; magnoliCustomerId: z.ZodString; role: z.ZodNativeEnum<{ readonly MANAGER: "MANAGER"; readonly EMPLOYEE: "EMPLOYEE"; }>; type: z.ZodNativeEnum<{ readonly EMPLOYEE_LATE_FOR_SHIFT: "EMPLOYEE_LATE_FOR_SHIFT"; readonly LATE_CLOCK_OUT: "LATE_CLOCK_OUT"; readonly LATE_RETURN_FROM_LUNCH: "LATE_RETURN_FROM_LUNCH"; readonly UPCOMING_SHIFT_START: "UPCOMING_SHIFT_START"; readonly PAID_BREAK_ENDING: "PAID_BREAK_ENDING"; readonly NEW_PICKUP_REQUEST: "NEW_PICKUP_REQUEST"; }>; description: z.ZodNullable>; enabled: z.ZodOptional; threshold: z.ZodNullable>; cost: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "EMPLOYEE_LATE_FOR_SHIFT" | "LATE_CLOCK_OUT" | "LATE_RETURN_FROM_LUNCH" | "UPCOMING_SHIFT_START" | "PAID_BREAK_ENDING" | "NEW_PICKUP_REQUEST"; magnoliCustomerId: string; role: "EMPLOYEE" | "MANAGER"; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; description?: string | null | undefined; enabled?: boolean | undefined; threshold?: number | null | undefined; cost?: number | null | undefined; }, { type: "EMPLOYEE_LATE_FOR_SHIFT" | "LATE_CLOCK_OUT" | "LATE_RETURN_FROM_LUNCH" | "UPCOMING_SHIFT_START" | "PAID_BREAK_ENDING" | "NEW_PICKUP_REQUEST"; magnoliCustomerId: string; role: "EMPLOYEE" | "MANAGER"; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; description?: string | null | undefined; enabled?: boolean | undefined; threshold?: number | null | undefined; cost?: number | null | undefined; }>; declare const notificationSettingUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; magnoliCustomerId: z.ZodOptional; role: z.ZodOptional>; type: z.ZodOptional>; description: z.ZodOptional>>; enabled: z.ZodOptional>; threshold: z.ZodOptional>>; cost: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: "EMPLOYEE_LATE_FOR_SHIFT" | "LATE_CLOCK_OUT" | "LATE_RETURN_FROM_LUNCH" | "UPCOMING_SHIFT_START" | "PAID_BREAK_ENDING" | "NEW_PICKUP_REQUEST" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; description?: string | null | undefined; magnoliCustomerId?: string | undefined; role?: "EMPLOYEE" | "MANAGER" | undefined; enabled?: boolean | undefined; threshold?: number | null | undefined; cost?: number | null | undefined; }, { type?: "EMPLOYEE_LATE_FOR_SHIFT" | "LATE_CLOCK_OUT" | "LATE_RETURN_FROM_LUNCH" | "UPCOMING_SHIFT_START" | "PAID_BREAK_ENDING" | "NEW_PICKUP_REQUEST" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; description?: string | null | undefined; magnoliCustomerId?: string | undefined; role?: "EMPLOYEE" | "MANAGER" | undefined; enabled?: boolean | undefined; threshold?: number | null | undefined; cost?: number | null | undefined; }>; declare const notificationSettingGetByRoleTypeInputSchema: z.ZodObject<{ role: z.ZodNativeEnum<{ readonly MANAGER: "MANAGER"; readonly EMPLOYEE: "EMPLOYEE"; }>; type: z.ZodNativeEnum<{ readonly EMPLOYEE_LATE_FOR_SHIFT: "EMPLOYEE_LATE_FOR_SHIFT"; readonly LATE_CLOCK_OUT: "LATE_CLOCK_OUT"; readonly LATE_RETURN_FROM_LUNCH: "LATE_RETURN_FROM_LUNCH"; readonly UPCOMING_SHIFT_START: "UPCOMING_SHIFT_START"; readonly PAID_BREAK_ENDING: "PAID_BREAK_ENDING"; readonly NEW_PICKUP_REQUEST: "NEW_PICKUP_REQUEST"; }>; }, "strip", z.ZodTypeAny, { type: "EMPLOYEE_LATE_FOR_SHIFT" | "LATE_CLOCK_OUT" | "LATE_RETURN_FROM_LUNCH" | "UPCOMING_SHIFT_START" | "PAID_BREAK_ENDING" | "NEW_PICKUP_REQUEST"; role: "EMPLOYEE" | "MANAGER"; }, { type: "EMPLOYEE_LATE_FOR_SHIFT" | "LATE_CLOCK_OUT" | "LATE_RETURN_FROM_LUNCH" | "UPCOMING_SHIFT_START" | "PAID_BREAK_ENDING" | "NEW_PICKUP_REQUEST"; role: "EMPLOYEE" | "MANAGER"; }>; type NotificationSettingId = { notificationSettingId: string; }; interface NotificationSetting { id: string; magnoliCustomerId: string; description: string | null; role: string; type: string; enabled: boolean; threshold: number | null; cost: number | null; createdAt: string | Date; updatedAt: string | Date; magnoliCustomer?: MagnoliCustomer; notificationLogs?: NotificationLog[]; } interface NotificationSettingCreateInput { id?: string; magnoliCustomerId: string; description?: string | null; role: string; type: string; enabled?: boolean; threshold?: number | null; cost?: number | null; createdAt?: string | Date; updatedAt?: string | Date; } type NotificationSettingUpdateInput = Partial; type NotificationSettingGetByRoleTypeInput = z.infer; declare const NotificationRoleEnum: { readonly MANAGER: "MANAGER"; readonly EMPLOYEE: "EMPLOYEE"; }; type NotificationRoleEnum = keyof typeof NotificationRoleEnum; declare const NotificationTypeEnum: { readonly EMPLOYEE_LATE_FOR_SHIFT: "EMPLOYEE_LATE_FOR_SHIFT"; readonly LATE_CLOCK_OUT: "LATE_CLOCK_OUT"; readonly LATE_RETURN_FROM_LUNCH: "LATE_RETURN_FROM_LUNCH"; readonly UPCOMING_SHIFT_START: "UPCOMING_SHIFT_START"; readonly PAID_BREAK_ENDING: "PAID_BREAK_ENDING"; readonly NEW_PICKUP_REQUEST: "NEW_PICKUP_REQUEST"; }; type NotificationTypeEnum = keyof typeof NotificationTypeEnum; type NotificationLogId = { notificationLogId: string; }; interface NotificationLog { id: string; channel: string; type: string; status: string; data: Record; createdAt: string | Date; updatedAt: string | Date; notificationSettingId: string | null; notificationSetting?: NotificationSetting | null; } interface NotificationLogCreateInput { id?: string; channel: string; type: string; status: string; data?: Record; createdAt?: string | Date; updatedAt?: string | Date; notificationSettingId?: string | null; } type NotificationLogUpdateInput = Partial; declare const notificationLogIdSchema: z.ZodObject<{ notificationLogId: z.ZodString; }, "strip", z.ZodTypeAny, { notificationLogId: string; }, { notificationLogId: string; }>; declare const notificationLogCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; channel: z.ZodNativeEnum<{ readonly SMS: "SMS"; readonly EMAIL: "EMAIL"; }>; type: z.ZodNativeEnum<{ readonly EMPLOYEE_LATE_FOR_SHIFT: "EMPLOYEE_LATE_FOR_SHIFT"; readonly LATE_CLOCK_OUT: "LATE_CLOCK_OUT"; readonly LATE_RETURN_FROM_LUNCH: "LATE_RETURN_FROM_LUNCH"; readonly UPCOMING_SHIFT_START: "UPCOMING_SHIFT_START"; readonly PAID_BREAK_ENDING: "PAID_BREAK_ENDING"; readonly NEW_PICKUP_REQUEST: "NEW_PICKUP_REQUEST"; }>; status: z.ZodNativeEnum<{ readonly SCHEDULED: "SCHEDULED"; readonly PENDING: "PENDING"; readonly SENT: "SENT"; readonly FAILED: "FAILED"; readonly CANCELLED: "CANCELLED"; }>; data: z.ZodOptional>; notificationSettingId: z.ZodNullable>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: "EMPLOYEE_LATE_FOR_SHIFT" | "LATE_CLOCK_OUT" | "LATE_RETURN_FROM_LUNCH" | "UPCOMING_SHIFT_START" | "PAID_BREAK_ENDING" | "NEW_PICKUP_REQUEST"; status: "PENDING" | "FAILED" | "CANCELLED" | "SCHEDULED" | "SENT"; channel: "SMS" | "EMAIL"; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; data?: Record | undefined; notificationSettingId?: string | null | undefined; }, { type: "EMPLOYEE_LATE_FOR_SHIFT" | "LATE_CLOCK_OUT" | "LATE_RETURN_FROM_LUNCH" | "UPCOMING_SHIFT_START" | "PAID_BREAK_ENDING" | "NEW_PICKUP_REQUEST"; status: "PENDING" | "FAILED" | "CANCELLED" | "SCHEDULED" | "SENT"; channel: "SMS" | "EMAIL"; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; data?: Record | undefined; notificationSettingId?: string | null | undefined; }>; declare const notificationLogUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; channel: z.ZodOptional>; type: z.ZodOptional>; status: z.ZodOptional>; data: z.ZodOptional>>; notificationSettingId: z.ZodOptional>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: "EMPLOYEE_LATE_FOR_SHIFT" | "LATE_CLOCK_OUT" | "LATE_RETURN_FROM_LUNCH" | "UPCOMING_SHIFT_START" | "PAID_BREAK_ENDING" | "NEW_PICKUP_REQUEST" | undefined; status?: "PENDING" | "FAILED" | "CANCELLED" | "SCHEDULED" | "SENT" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; data?: Record | undefined; notificationSettingId?: string | null | undefined; channel?: "SMS" | "EMAIL" | undefined; }, { type?: "EMPLOYEE_LATE_FOR_SHIFT" | "LATE_CLOCK_OUT" | "LATE_RETURN_FROM_LUNCH" | "UPCOMING_SHIFT_START" | "PAID_BREAK_ENDING" | "NEW_PICKUP_REQUEST" | undefined; status?: "PENDING" | "FAILED" | "CANCELLED" | "SCHEDULED" | "SENT" | undefined; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; data?: Record | undefined; notificationSettingId?: string | null | undefined; channel?: "SMS" | "EMAIL" | undefined; }>; declare const NotificationChannelEnum: { readonly SMS: "SMS"; readonly EMAIL: "EMAIL"; }; type NotificationChannelEnum = keyof typeof NotificationChannelEnum; declare const NotificationStatusEnum: { readonly SCHEDULED: "SCHEDULED"; readonly PENDING: "PENDING"; readonly SENT: "SENT"; readonly FAILED: "FAILED"; readonly CANCELLED: "CANCELLED"; }; type NotificationStatusEnum = keyof typeof NotificationStatusEnum; declare const magnoliCustomerIdSchema: z.ZodObject<{ magnoliCustomerId: z.ZodString; }, "strip", z.ZodTypeAny, { magnoliCustomerId: string; }, { magnoliCustomerId: string; }>; declare const magnoliUserInputSchema: z.ZodObject<{ magnoliUserName: z.ZodString; magnoliPhone: z.ZodEffects; }, "strip", z.ZodTypeAny, { magnoliUserName: string; magnoliPhone: string; }, { magnoliUserName: string; magnoliPhone: string; }>; declare const magnoliCustomerCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; magnoliUser: z.ZodObject<{ magnoliUserName: z.ZodString; magnoliPhone: z.ZodEffects; }, "strip", z.ZodTypeAny, { magnoliUserName: string; magnoliPhone: string; }, { magnoliUserName: string; magnoliPhone: string; }>; website: z.ZodNullable>; dayWeekStarts: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; billingEmail: z.ZodNullable>; emergencyPhone: z.ZodNullable>>; address1: z.ZodNullable>; address2: z.ZodNullable>; city: z.ZodNullable>; primaryEmail: z.ZodNullable>; primaryPhone: z.ZodNullable>>; slogan: z.ZodNullable>; logoUrl: z.ZodNullable>; state: z.ZodString; taxId: z.ZodNullable>; timeZone: z.ZodNullable>; zip: z.ZodNullable>; }, "strip", z.ZodTypeAny, { name: string; state: string; magnoliUser: { magnoliUserName: string; magnoliPhone: string; }; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; zip?: string | null | undefined; website?: string | null | undefined; dayWeekStarts?: number | undefined; billingEmail?: string | null | undefined; emergencyPhone?: string | null | undefined; primaryEmail?: string | null | undefined; primaryPhone?: string | null | undefined; slogan?: string | null | undefined; logoUrl?: string | null | undefined; taxId?: string | null | undefined; timeZone?: string | null | undefined; }, { name: string; state: string; magnoliUser: { magnoliUserName: string; magnoliPhone: string; }; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; zip?: string | null | undefined; website?: string | null | undefined; dayWeekStarts?: number | undefined; billingEmail?: string | null | undefined; emergencyPhone?: string | null | undefined; primaryEmail?: string | null | undefined; primaryPhone?: string | null | undefined; slogan?: string | null | undefined; logoUrl?: string | null | undefined; taxId?: string | null | undefined; timeZone?: string | null | undefined; }>; declare const magnoliCustomerUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; name: z.ZodOptional; magnoliUser: z.ZodOptional; }, "strip", z.ZodTypeAny, { magnoliUserName: string; magnoliPhone: string; }, { magnoliUserName: string; magnoliPhone: string; }>>; website: z.ZodOptional>>; dayWeekStarts: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; billingEmail: z.ZodOptional>>; emergencyPhone: z.ZodOptional>>>; address1: z.ZodOptional>>; address2: z.ZodOptional>>; city: z.ZodOptional>>; primaryEmail: z.ZodOptional>>; primaryPhone: z.ZodOptional>>>; slogan: z.ZodOptional>>; logoUrl: z.ZodOptional>>; state: z.ZodOptional; taxId: z.ZodOptional>>; timeZone: z.ZodOptional>>; zip: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; name?: string | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | undefined; zip?: string | null | undefined; magnoliUser?: { magnoliUserName: string; magnoliPhone: string; } | undefined; website?: string | null | undefined; dayWeekStarts?: number | undefined; billingEmail?: string | null | undefined; emergencyPhone?: string | null | undefined; primaryEmail?: string | null | undefined; primaryPhone?: string | null | undefined; slogan?: string | null | undefined; logoUrl?: string | null | undefined; taxId?: string | null | undefined; timeZone?: string | null | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; name?: string | undefined; address1?: string | null | undefined; address2?: string | null | undefined; city?: string | null | undefined; state?: string | undefined; zip?: string | null | undefined; magnoliUser?: { magnoliUserName: string; magnoliPhone: string; } | undefined; website?: string | null | undefined; dayWeekStarts?: number | undefined; billingEmail?: string | null | undefined; emergencyPhone?: string | null | undefined; primaryEmail?: string | null | undefined; primaryPhone?: string | null | undefined; slogan?: string | null | undefined; logoUrl?: string | null | undefined; taxId?: string | null | undefined; timeZone?: string | null | undefined; }>; declare const magnoliCustomerGetInputSchema: z.ZodEffects; email: z.ZodOptional; }, z.UnknownKeysParam, z.ZodTypeAny, { id?: string | undefined; email?: string | undefined; }, { id?: string | undefined; email?: string | undefined; }>, { id?: string | undefined; email?: string | undefined; }, { id?: string | undefined; email?: string | undefined; }>; declare const magnoliCustomerJoinCompanyInputSchema: z.ZodObject<{ companyName: z.ZodString; }, "strip", z.ZodTypeAny, { companyName: string; }, { companyName: string; }>; declare const magnoliCustomerGetByMagnoliUserEmailSchema: z.ZodObject<{ magnoliUserEmail: z.ZodString; }, "strip", z.ZodTypeAny, { magnoliUserEmail: string; }, { magnoliUserEmail: string; }>; type MagnoliCustomerId = { magnoliCustomerId: string; }; interface MagnoliUserInput { magnoliUserName: string; magnoliPhone: string; } interface MagnoliCustomer { id: string; name: string; website: string | null; dayWeekStarts: number; createdAt: string | Date; updatedAt: string | Date; billingEmail: string | null; emergencyPhone: string | null; address1: string | null; address2: string | null; city: string | null; primaryEmail: string | null; primaryPhone: string | null; slogan: string | null; logoUrl: string | null; status: string; state: string; taxId: string | null; timeZone: string | null; zip: string | null; businessSegments?: BusinessSegment[]; defaultBreaks?: DefaultBreak[]; departments?: Department[]; employees?: Employee[]; locations?: Location[]; settings?: MagnoliCustomerSettings; users?: MagnoliUser[]; positions?: Position[]; revenueStreams?: RevenueStreams[]; notificationLogs?: NotificationLog[]; notificationSettings?: NotificationSetting[]; assemblyRacks?: AssemblyRack[]; deliveryManifests?: DeliveryManifest[]; } interface MagnoliCustomerCreateInput { id?: string; name: string; magnoliUser: MagnoliUserInput; website?: string | null; dayWeekStarts?: number; createdAt?: string | Date; updatedAt?: string | Date; billingEmail?: string | null; status?: string; emergencyPhone?: string | null; address1?: string | null; address2?: string | null; city?: string | null; primaryEmail?: string | null; primaryPhone?: string | null; slogan?: string | null; logoUrl?: string | null; state: string; taxId?: string | null; timeZone?: string | null; zip?: string | null; } type MagnoliCustomerUpdateInput = Partial; type MagnoliCustomerGetInput = z.infer; type MagnoliCustomerJoinCompanyInput = z.infer; type MagnoliCustomerGetByMagnoliUserEmail = z.infer; interface AssemblyRackSlotLog { id: string; assemblyRackSlotId: string; assemblyRackSlot?: AssemblyRackSlot; logData: any; createdAt: string; updatedAt: string; } interface AssemblyRackSlotLogCreateInput { id?: string; assemblyRackSlotId?: string; logData: any; createdAt?: string; updatedAt?: string; } type AssemblyRackSlotLogUpdateInput = Partial; declare const assemblyRackSlotLogCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; assemblyRackSlotId: z.ZodOptional; logData: z.ZodAny; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; assemblyRackSlotId?: string | undefined; logData?: any; }, { id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; assemblyRackSlotId?: string | undefined; logData?: any; }>; declare const assemblyRackSlotLogUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; assemblyRackSlotId: z.ZodOptional>; logData: z.ZodOptional; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; assemblyRackSlotId?: string | undefined; logData?: any; }, { id?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; assemblyRackSlotId?: string | undefined; logData?: any; }>; interface AssemblyRackSlot { id: string; assemblyRackId: string; assemblyRack?: AssemblyRack; slotNumber: number; slotStatus: string; orderItems: any | null; assemblyRackSlotLogs?: AssemblyRackSlotLog[]; } interface AssemblyRackSlotCreateInput { id?: string; assemblyRackId?: string; slotNumber: number; slotStatus?: string; orderItems?: any | null; } type AssemblyRackSlotUpdateInput = Partial; interface TAssemblyRackSlotData { assemblyGrouping?: AssemblyGroupingEnum; lastUsed?: string; orderId?: string; orderItems?: OrderItem[]; orderItemsCount?: number; slotId: string; slotNumber: number; status: string; } declare const assemblyRackSlotCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; assemblyRackId: z.ZodOptional; slotNumber: z.ZodNumber; slotStatus: z.ZodOptional; }, "strip", z.ZodTypeAny, { slotNumber: number; id?: string | undefined; assemblyRackId?: string | undefined; slotStatus?: any; }, { slotNumber: number; id?: string | undefined; assemblyRackId?: string | undefined; slotStatus?: any; }>; declare const assemblyRackSlotUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; assemblyRackId: z.ZodOptional>; slotNumber: z.ZodOptional; slotStatus: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; assemblyRackId?: string | undefined; slotNumber?: number | undefined; slotStatus?: any; }, { id?: string | undefined; assemblyRackId?: string | undefined; slotNumber?: number | undefined; slotStatus?: any; }>; declare const bagSlotItemsRequestSchema: z.ZodObject<{ body: z.ZodObject<{ clockedShiftId: z.ZodString; stationType: z.ZodNativeEnum<{ readonly PERSONAL: "personal"; readonly SPOTTING: "spotting"; readonly PRESSING: "pressing"; readonly FOLDING: "folding"; readonly ALTERATIONS: "alterations"; readonly ASSISTED_ASSEMBLY_MOBILE: "assistedAssemblyMobile"; readonly ASSISTED_ASSEMBLY_DESKTOP: "assistedAssemblyDesktop"; readonly DRIVER_MOBILE: "driverMobile"; readonly DRIVER_DESKTOP: "driverDesktop"; readonly DISPATCH: "dispatch"; readonly INSPECTION: "inspection"; }>; }, "strip", z.ZodTypeAny, { clockedShiftId: string; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; }, { clockedShiftId: string; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; }>; params: z.ZodObject<{ slotId: z.ZodString; }, "strip", z.ZodTypeAny, { slotId: string; }, { slotId: string; }>; }, "strip", z.ZodTypeAny, { params: { slotId: string; }; body: { clockedShiftId: string; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; }; }, { params: { slotId: string; }; body: { clockedShiftId: string; stationType: "alterations" | "personal" | "spotting" | "pressing" | "folding" | "assistedAssemblyMobile" | "assistedAssemblyDesktop" | "driverMobile" | "driverDesktop" | "dispatch" | "inspection"; }; }>; declare const bagSlotItemsParamsSchema: z.ZodObject<{ slotId: z.ZodString; }, "strip", z.ZodTypeAny, { slotId: string; }, { slotId: string; }>; declare const clearSlotItemSchema: z.ZodObject<{ body: z.ZodObject<{ orderItemId: z.ZodString; }, "strip", z.ZodTypeAny, { orderItemId: string; }, { orderItemId: string; }>; params: z.ZodObject<{ slotId: z.ZodString; }, "strip", z.ZodTypeAny, { slotId: string; }, { slotId: string; }>; }, "strip", z.ZodTypeAny, { params: { slotId: string; }; body: { orderItemId: string; }; }, { params: { slotId: string; }; body: { orderItemId: string; }; }>; declare const AssemblyRackSlotStatusEnum: { readonly AVAILABLE: "AVAILABLE"; readonly OCCUPIED: "OCCUPIED"; readonly PARTIALLY_OCCUPIED: "PARTIALLY_OCCUPIED"; readonly BLOCKED: "BLOCKED"; readonly ISSUES: "ISSUES"; }; type AssemblyRackSlotStatusEnum = keyof typeof AssemblyRackSlotStatusEnum; declare const assemblyRackIdSchema: z.ZodObject<{ assemblyRackId: z.ZodString; }, "strip", z.ZodTypeAny, { assemblyRackId: string; }, { assemblyRackId: string; }>; declare const assemblyRackCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; targetLocations: z.ZodNullable>>; slotCapacity: z.ZodNumber; magnoliCustomerId: z.ZodOptional; orderInfoCache: z.ZodNullable>; active: z.ZodOptional; slotsCount: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; slotCapacity: number; slotsCount: number; id?: string | undefined; active?: boolean | undefined; magnoliCustomerId?: string | undefined; targetLocations?: string[] | null | undefined; orderInfoCache?: any; }, { name: string; slotCapacity: number; slotsCount: number; id?: string | undefined; active?: boolean | undefined; magnoliCustomerId?: string | undefined; targetLocations?: string[] | null | undefined; orderInfoCache?: any; }>; declare const assemblyRackUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; active: z.ZodOptional>; name: z.ZodOptional; magnoliCustomerId: z.ZodOptional>; targetLocations: z.ZodOptional>>>; slotCapacity: z.ZodOptional; orderInfoCache: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id?: string | undefined; active?: boolean | undefined; name?: string | undefined; magnoliCustomerId?: string | undefined; targetLocations?: string[] | null | undefined; slotCapacity?: number | undefined; orderInfoCache?: any; }, { id?: string | undefined; active?: boolean | undefined; name?: string | undefined; magnoliCustomerId?: string | undefined; targetLocations?: string[] | null | undefined; slotCapacity?: number | undefined; orderInfoCache?: any; }>; declare const rackOrderItemInputSchema: z.ZodObject<{ body: z.ZodEffects, ProStationLogScanBarcodeOutputPayload, ProStationLogScanBarcodeOutputPayload>; }, "strip", z.ZodTypeAny, { body: ProStationLogScanBarcodeOutputPayload; }, { body: ProStationLogScanBarcodeOutputPayload; }>; declare const idEmployeeSchema: z.ZodObject<{ body: z.ZodObject<{ orderIds: z.ZodArray; clockedShiftId: z.ZodString; }, "strip", z.ZodTypeAny, { clockedShiftId: string; orderIds: string[]; }, { clockedShiftId: string; orderIds: string[]; }>; }, "strip", z.ZodTypeAny, { body: { clockedShiftId: string; orderIds: string[]; }; }, { body: { clockedShiftId: string; orderIds: string[]; }; }>; declare const AssemblyGroupingEnum: { readonly HERS: "Hers"; readonly HIMS: "Hims"; readonly THEIRS: "Theirs"; }; type AssemblyGroupingEnum = keyof typeof AssemblyGroupingEnum; declare const AssemblyGroupIcons: Record; interface AssemblyRack { id: string; name: string; targetLocations: any | null; slotCapacity: number; magnoliCustomerId: string; magnoliCustomer?: MagnoliCustomer; slots?: AssemblyRackSlot[]; orderInfoCache: any | null; active: boolean; _count?: { slots: number; }; } interface AssemblyRackCreateInput { id?: string; name: string; targetLocations?: any | null; slotCapacity: number; magnoliCustomerId?: string; orderInfoCache?: any | null; active?: boolean; slotsCount: number; } type AssemblyRackUpdateInput = Partial; type RackOrderItemInput = z.infer; interface TRackingResponse { message: string; error?: string | string[]; estimatedSlot?: TEstimatedSlot; bagInfo?: TBagInfo; payload?: { related?: { inProductionUnracked?: OrderItem[]; bagged?: OrderItem[]; occupiedInOtherSlots?: { slotNumber: number; items: OrderItem[]; }[]; }; }; } interface TEstimatedSlot { slotNumber?: number; rackId?: string; slotId?: string; action?: "estimated" | "assigned"; } type TBagInfo = { baggedDate: string; bagId: string; orderItemsIds: string[]; }; interface AssemblyOrderSummary { id: string; customerName: string; dueDate: string; status: OrderStatus; totalItemsCount: number; rackedItemsCount: number; extractedAt?: string; bags?: Array<{ id: string; itemCount: number; status: OrderBagStatus; bagType?: OrderBagType; }>; } interface AssemblyOrderDetails extends AssemblyOrderSummary { deliveryLocation: string; groupedItems?: Record; orderItems: Array<{ id: string; bagId?: string; barcode?: string; garmentName: string; garmentTypeName?: string; garmentBrand?: string; color?: string; fabric?: string; grouping?: AssemblyGroupingEnum; quantity?: number; status: OrderItemStatus; slotNumber?: number; slotId?: string; }>; } interface TAssemblyGroupingCounts { racked: number; total: number; } type TAssemblyOrderItem = { assemblyCategoryId?: string; assemblyGrouping?: string; assemblyValue?: number; orderId: string; orderItemId: string; }; interface TAssemblyRack { name?: string; orderInfoCache?: TAssemblyRackOrderInfoCache; rackId: string; slotCapacity?: number; slots?: TAssemblyRackSlot[]; targetLocations?: string[]; } type TAssemblyRackOrderInfoCache = TAssemblyRackOrderInfoEntry[]; interface TAssemblyRackOrderInfoEntry { createdDate: string; orderId: string; orderStatus: OrderStatus; } interface TAssemblyRackSlot { orderItems?: TAssemblyOrderItem[]; slotId: string; slotNumber: number; status: AssemblyRackSlotStatusEnum; } interface TBagLabelPayload { business?: { name: string; address1: string; address2?: string; city: string; state: string; zip: string; logo?: string; phone?: string; }; customer: { name: string; address1?: string; address2?: string; city?: string; phone?: string; state?: string; zip?: string; }; order: { id: string; type: OrderType; dueDate?: string; orderLocationName?: string; surcharge?: { name: string; price: number; }[]; totalPrice?: number; totalItemsCount: number; room?: { name: string; number: string; }; }; bag: { id: string; rackId?: string; rackName?: string; rackedBy?: string; slotId?: string; slotName?: string; }; items: { ids: string[]; itemName: string; itemNotes?: string; itemServiceName: string; itemSpeciaCaresName?: string; itemTypeName: string; barcode: string; brand?: string; color?: string; fabric?: string; price?: number; quantity?: number; adjustmentNames?: string[]; }[]; } interface AutoAssemblyOrderForMetal extends StandardResponse { data: { orders: MapOrder[]; assemblyRackId?: string; }; } interface MapOrder { orderId: string; status: string; itemCount: string; lastUpdatedAt: Date; deliveryLocationId?: string; labelInfo: { brand: { brandName: string; brandPhone?: string; brandWebsite?: string; }; saleLocation?: { saleLocationName: string; saleLocationPhone?: string; saleLocationAddress1?: string; saleLocationAddress2?: string; saleLocationCity?: string; saleLocationState?: string; saleLocationZip?: string; }; customer: { customerName: string; customerPhone?: string; customerAddress1?: string; customerAddress2?: string; customerCity?: string; customerState?: string; customerZip?: string; }; orderSaleDate: string; orderDueDate?: string; orderTotals?: { discounts?: string; surcharges?: string; taxes?: string; total?: string; paid?: string; due?: string; }; }; batches: { id: string; items: { id: string; barcode: string; description: string; bagId?: string; status: string; assemblyPercentage?: string; labelInfo?: { totals?: { price: string; count?: string; discounts?: string; surcharges?: string; taxes?: string; totals?: string; }; }; location: string[]; }[]; bags: { id: string; status?: string; isPreBag?: boolean; extractionArm?: string; }[]; }[]; } interface BamOrder { orderId: string; status: string; itemCount: string; lastUpdatedAt: Date; deliveryLocationId?: string; deliveryLocationName?: string; dueDate?: string; surcharges?: string[]; customer?: { name: string; lastName?: string; id: string; }; bags: { id: string; status?: string; extractionArm?: string; items: { id: string; barcode: string; description: string; status: string; }[]; }[]; } declare const authRequestOTPInputSchema: z.ZodObject<{ email: z.ZodString; }, "strip", z.ZodTypeAny, { email: string; }, { email: string; }>; declare const authValidateOTPInputSchema: z.ZodObject<{ email: z.ZodString; otp: z.ZodString; }, "strip", z.ZodTypeAny, { email: string; otp: string; }, { email: string; otp: string; }>; declare const authSignOutInputSchema: z.ZodObject<{ refreshToken: z.ZodString; }, "strip", z.ZodTypeAny, { refreshToken: string; }, { refreshToken: string; }>; type MessageResponse = { message: string; }; type AuthRequestOTPRequest = z.infer; type AuthValidateOTPRequest = z.infer; type AuthJwtPayload = { customerId?: null | string; email: string | null; employee?: null | Employee; sub: string; appType: TAppType; }; type AuthSignOutRequest = z.infer; type AuthTokensResponse = { accessToken: string; refreshToken: string; }; declare const FoldingAssignBagBodySchema: z.ZodObject<{ employeeId: z.ZodString; forceNewSlot: z.ZodOptional; orderBagId: z.ZodString; rackId: z.ZodString; }, "strip", z.ZodTypeAny, { employeeId: string; orderBagId: string; rackId: string; forceNewSlot?: boolean | undefined; }, { employeeId: string; orderBagId: string; rackId: string; forceNewSlot?: boolean | undefined; }>; declare const FoldingBoxSlotItemsBodySchema: z.ZodObject<{ clockedShiftId: z.ZodString; stationType: z.ZodString; }, "strip", z.ZodTypeAny, { clockedShiftId: string; stationType: string; }, { clockedShiftId: string; stationType: string; }>; declare const FoldingClearBagBodySchema: z.ZodObject<{ bagId: z.ZodString; }, "strip", z.ZodTypeAny, { bagId: string; }, { bagId: string; }>; declare const FoldingAssignBagToSlotBodySchema: z.ZodObject<{ barcode: z.ZodString; }, "strip", z.ZodTypeAny, { barcode: string; }, { barcode: string; }>; declare const FoldingSlotIdParamsSchema: z.ZodObject<{ slotId: z.ZodString; }, "strip", z.ZodTypeAny, { slotId: string; }, { slotId: string; }>; declare const FoldingAssignBagToSlotParamsSchema: z.ZodObject<{ rackId: z.ZodString; slotId: z.ZodString; }, "strip", z.ZodTypeAny, { rackId: string; slotId: string; }, { rackId: string; slotId: string; }>; declare const FoldingEstimateQuerySchema: z.ZodObject<{ orderBagId: z.ZodString; rackId: z.ZodString; }, "strip", z.ZodTypeAny, { orderBagId: string; rackId: string; }, { orderBagId: string; rackId: string; }>; type THealthCheckResponse = { status: string; database: { status: "connected" | "disconnected"; }; version: string | undefined; environment: string | undefined; apiVersion: string | undefined; timestamp: string; uptime: number; memory: any; cpu: any; }; declare const payrollDateRangeSchema: z.ZodEffects; toDate: z.ZodEffects; }, "strip", z.ZodTypeAny, { fromDate: string; toDate: string; }, { fromDate: string; toDate: string; }>, { fromDate: string; toDate: string; }, { fromDate: string; toDate: string; }>; declare const payrollCalculateSchema: z.ZodObject<{ query: z.ZodEffects; toDate: z.ZodEffects; }, "strip", z.ZodTypeAny, { fromDate: string; toDate: string; }, { fromDate: string; toDate: string; }>, { fromDate: string; toDate: string; }, { fromDate: string; toDate: string; }>; }, "strip", z.ZodTypeAny, { query: { fromDate: string; toDate: string; }; }, { query: { fromDate: string; toDate: string; }; }>; declare const payrollCalculateForEmployeeSchema: z.ZodObject<{ query: z.ZodEffects; toDate: z.ZodEffects; }, "strip", z.ZodTypeAny, { fromDate: string; toDate: string; }, { fromDate: string; toDate: string; }>, { fromDate: string; toDate: string; }, { fromDate: string; toDate: string; }>; params: z.ZodObject<{ employeeId: z.ZodString; }, "strip", z.ZodTypeAny, { employeeId: string; }, { employeeId: string; }>; }, "strip", z.ZodTypeAny, { params: { employeeId: string; }; query: { fromDate: string; toDate: string; }; }, { params: { employeeId: string; }; query: { fromDate: string; toDate: string; }; }>; type PayrollEmployee = { customerId: string; department?: null | { id: string; name: string; }; firstName: string; payrollId?: null | string; id: string; lastName: string; position?: null | { id: string; title: string; }; regularRate?: null | string; status: string; }; type PayrollEmployeeHours = { overtime: number; regular: number; total: number; unpaidMealBreakHours: number; }; type PayrollEmployeePayment = { overtime: number; regular: number; total: number; }; type PayrollFlagStatistic = { count: number; percentage: number; shiftsWithFlag: number; type: string; }; type PayrollEmployeePayrollDetails = { employee: PayrollEmployeePayrollInfo; hours: PayrollEmployeeHours; payment: PayrollEmployeePayment; shiftDetails: PayrollShiftDetails[]; flagStatistics?: PayrollFlagStatistic[]; shifts: number; unpaidMealBreakHours: number; }; type PayrollEmployeePayrollInfo = { department: string; firstName: string; payrollId: string; hourlyRate: number; id: string; lastName: string; position: string; }; type PayrollShiftDetails = { status: string; regularRate: number | null; flags?: ShiftFlag[]; breaks: { duration: number; endTime: Date; id: string; startTime: Date; }[]; clockInTime: Date; clockOutTime: Date; date: string; department: string; employeeId: string; hours: { overtime: number; regular: number; total: number; }; id: string; payment: { overtime: number; regular: number; total: number; }; position: string; unpaidMealBreakHours: number; }; type PayrollDateRange = z.infer; type PayrollCalculateRequest = z.infer; type PayrollCalculateForEmployeeRequest = z.infer; type PayrollCalculateResponse = { employees: PayrollEmployeePayrollDetails[]; fromDate: Date; toDate: Date; }; declare const refreshTokenIdSchema: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; declare const refreshTokenCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; token: z.ZodString; expiresAt: z.ZodDate; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; sub: z.ZodString; }, "strip", z.ZodTypeAny, { sub: string; token: string; expiresAt: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }, { sub: string; token: string; expiresAt: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; }>; declare const refreshTokenUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; token: z.ZodOptional; expiresAt: z.ZodOptional; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; sub: z.ZodOptional; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; sub?: string | undefined; token?: string | undefined; expiresAt?: Date | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; sub?: string | undefined; token?: string | undefined; expiresAt?: Date | undefined; }>; declare const refreshTokenGetByUserIdSchema: z.ZodObject<{ userId: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; }, { userId: string; }>; declare const refreshTokenRefreshSchema: z.ZodObject<{ refreshToken: z.ZodString; employeeId: z.ZodOptional; }, "strip", z.ZodTypeAny, { refreshToken: string; employeeId?: string | undefined; }, { refreshToken: string; employeeId?: string | undefined; }>; declare const refreshTokenDeleteByUserIdSchema: z.ZodObject<{ userId: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; }, { userId: string; }>; type RefreshTokenId = { id: string; }; interface RefreshToken { id: string; token: string; expiresAt: string | Date; createdAt: string | Date; updatedAt: string | Date; } interface RefreshTokenCreateInput { id?: string; token: string; expiresAt: string | Date; createdAt?: string | Date; updatedAt?: string | Date; sub: string; } type RefreshTokenUpdateInput = Partial; type RefreshTokenGetByUserIdInput = z.infer; type RefreshTokenRefreshInput = z.infer; declare const rosterGetDataSchema: z.ZodObject<{ date: z.ZodString; locationId: z.ZodOptional; positionId: z.ZodOptional; employeeId: z.ZodOptional; departmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: string; locationId?: string | undefined; positionId?: string | undefined; employeeId?: string | undefined; departmentId?: string | undefined; }, { date: string; locationId?: string | undefined; positionId?: string | undefined; employeeId?: string | undefined; departmentId?: string | undefined; }>; declare const rosterGetWeeklyTotalsSchema: z.ZodObject<{ date: z.ZodString; locationId: z.ZodOptional; positionId: z.ZodOptional; employeeId: z.ZodOptional; departmentId: z.ZodOptional; }, "strip", z.ZodTypeAny, { date: string; locationId?: string | undefined; positionId?: string | undefined; employeeId?: string | undefined; departmentId?: string | undefined; }, { date: string; locationId?: string | undefined; positionId?: string | undefined; employeeId?: string | undefined; departmentId?: string | undefined; }>; interface WeeklyTotals { [key: string]: { hours: number; }; } type WeekBoundaries = { end: string; start: string; weekDays: { date: string; }[]; weekStartsOn: number; }; type RosterGetDataInput = z.infer; type RosterGetDataOutput = { weekDays: { date: string; }[]; shiftMap: { [key: string]: RosterScheduledShift[]; }; locationHoursStats: RosterLocationHoursStatsMap; groupedCombinations: Record; version: string; employeeAbsences: Record; employeesOvertimes: { [employeeId: string]: EmployeeOvertimes; }; }; type RosterGetWeeklyTotalsInput = z.infer; type RosterGetWeeklyTotalsOutput = { weekStart: string; weekEnd: string; location: string; data: { totals: WeeklyTotals; overtimes?: { [employeeId: string]: EmployeeOvertimes; }; }; }; type RosterV2Response = { events: Array<{ absenceTypeId: string; allDay: true; code?: string; employeeId: string; end: string; id: string; start: string; status: "APPROVED" | "PENDING" | "REJECTED"; type: "absence"; } | { actualLocationId?: string; actualPositionId?: string; breaks?: { end: string; id: string; isPaid: boolean; name: string; start: string; }[]; employeeId: string; end: string; id: string; lane?: number; locationId: string; placeholderReason?: "DIFFERENT_LOCATION" | "DIFFERENT_POSITION"; positionId: string; segments?: { end: string; start: string; type: "OT8" | "OT24" | "OT40" | "RT"; }[]; source?: "DEFAULT" | "MANUAL" | "PLACEHOLDER"; start: string; type: "shift"; }>; indices?: { byDay?: Record; byEmployee?: Record; byLocation?: Record; byPosition?: Record; }; locationHoursStats: Record; lookups?: { absenceTypes?: { code: string; id: string; name: string; used: boolean; }[]; businessSegments: { id: string; name: string; used: boolean; }[]; defaultBreaks: { durationMin: number; id: string; isPaid: boolean; name: string; used: boolean; }[]; departments: { id: string; title: string; used: boolean; }[]; employees: { businessSegmentId?: string; departmentId?: string; firstName: string; id: string; lastName: string; locationId?: string; positionId?: string; tel?: string; used: boolean; }[]; locations: { id: string; title: string; used: boolean; }[]; positions: { emoji?: string; id: string; title: string; used: boolean; }[]; }; meta: { filters: { departmentIds: string[]; employeeIds: string[]; locationIds: string[]; positionIds: string[]; week: string; }; generatedAt: string; groupBy: "location" | "position"; range: { end: string; start: string; }; timezone: string; }; timeTotals: { employees: Record; }; }; interface OrderNotificationsDispatchBody { orderId: string; newStatus: OrderStatus; order?: OrderNotificationContext; } interface OrderNotificationContext { id: string; orderType?: string; total?: number; displayTotal?: number; customer: OrderNotificationCustomer; saleLocation?: { id?: string; name?: string; } | null; deliveryLocation?: { id?: string; name?: string; } | null; } interface OrderNotificationCustomer { id: string; firstName?: string; lastName?: string | null; phone?: string | null; magnoliCustomerId: string; magnoliCustomer?: { name?: string; }; } interface NotificationDispatchResult { queued: boolean; reason?: string; } type PickupNotificationContext = { id: string; magnoliCustomerId: string; magnoliCustomer?: { name?: string; }; route?: Route; customer?: OrderNotificationCustomer; }; type PickupNotificationsDispatchBody = { pickupRequestId: string; newStatus: PickupRequestStatus; pickup?: PickupNotificationContext; }; interface PaymentNotificationsDispatchBody { invoiceId: string; orderId?: string; newStatus: InvoicePaymentQueueStatus; payment?: PaymentNotificationContext; } interface PaymentNotificationContext { invoiceId: string; orderId?: string; customer?: OrderNotificationCustomer; order?: { id: string; total?: number; displayTotal?: number; }; } declare const notificationTemplateIdSchema: z.ZodObject<{ notificationTemplateId: z.ZodString; }, "strip", z.ZodTypeAny, { notificationTemplateId: string; }, { notificationTemplateId: string; }>; declare const notificationTemplateSourceEnumSchema: z.ZodEnum<["EMAIL", "SMS", "BOTH"]>; declare const notificationTemplateNameSchema: z.ZodEnum<["login.otp", "join.company", "new.pickup.request"]>; declare const notificationTemplateCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; name: z.ZodEnum<["login.otp", "join.company", "new.pickup.request"]>; source: z.ZodEnum<["EMAIL", "SMS", "BOTH"]>; textBody: z.ZodString; subject: z.ZodNullable>; htmlBody: z.ZodNullable>; description: z.ZodNullable>; variables: z.ZodNullable>>; magnoliCustomerId: z.ZodNullable>; active: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { name: "login.otp" | "join.company" | "new.pickup.request"; source: "SMS" | "EMAIL" | "BOTH"; textBody: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; description?: string | null | undefined; magnoliCustomerId?: string | null | undefined; subject?: string | null | undefined; htmlBody?: string | null | undefined; variables?: Record | null | undefined; }, { name: "login.otp" | "join.company" | "new.pickup.request"; source: "SMS" | "EMAIL" | "BOTH"; textBody: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; description?: string | null | undefined; magnoliCustomerId?: string | null | undefined; subject?: string | null | undefined; htmlBody?: string | null | undefined; variables?: Record | null | undefined; }>; declare const notificationTemplateUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; name: z.ZodOptional>; source: z.ZodOptional>; textBody: z.ZodOptional; subject: z.ZodOptional>>; htmlBody: z.ZodOptional>>; description: z.ZodOptional>>; variables: z.ZodOptional>>>; magnoliCustomerId: z.ZodOptional>>; active: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; name?: "login.otp" | "join.company" | "new.pickup.request" | undefined; description?: string | null | undefined; source?: "SMS" | "EMAIL" | "BOTH" | undefined; magnoliCustomerId?: string | null | undefined; textBody?: string | undefined; subject?: string | null | undefined; htmlBody?: string | null | undefined; variables?: Record | null | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; active?: boolean | undefined; name?: "login.otp" | "join.company" | "new.pickup.request" | undefined; description?: string | null | undefined; source?: "SMS" | "EMAIL" | "BOTH" | undefined; magnoliCustomerId?: string | null | undefined; textBody?: string | undefined; subject?: string | null | undefined; htmlBody?: string | null | undefined; variables?: Record | null | undefined; }>; declare const notificationTemplateGetQuerySchema: z.ZodObject<{ page: z.ZodOptional; limit: z.ZodOptional; source: z.ZodOptional>; name: z.ZodOptional>; active: z.ZodOptional; magnoliCustomerId: z.ZodOptional; search: z.ZodOptional; }, "strip", z.ZodTypeAny, { active?: string | undefined; name?: "login.otp" | "join.company" | "new.pickup.request" | undefined; source?: "SMS" | "EMAIL" | "BOTH" | undefined; magnoliCustomerId?: string | undefined; page?: string | undefined; limit?: string | undefined; search?: string | undefined; }, { active?: string | undefined; name?: "login.otp" | "join.company" | "new.pickup.request" | undefined; source?: "SMS" | "EMAIL" | "BOTH" | undefined; magnoliCustomerId?: string | undefined; page?: string | undefined; limit?: string | undefined; search?: string | undefined; }>; declare const transactionalEmailEnvelopeSchema: z.ZodObject<{ taskId: z.ZodString; occurrenceId: z.ZodString; taskType: z.ZodString; messageId: z.ZodOptional; scheduledAt: z.ZodOptional; payload: z.ZodObject<{ to: z.ZodString; templateName: z.ZodEnum<["login.otp", "join.company", "new.pickup.request"]>; variables: z.ZodOptional>; magnoliCustomerId: z.ZodOptional; replyTo: z.ZodOptional; cc: z.ZodOptional; bcc: z.ZodOptional; tag: z.ZodOptional; meta: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ communicationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ communicationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { to: string; templateName: "login.otp" | "join.company" | "new.pickup.request"; magnoliCustomerId?: string | undefined; variables?: Record | undefined; replyTo?: string | undefined; cc?: string | undefined; bcc?: string | undefined; tag?: string | undefined; meta?: z.objectOutputType<{ communicationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { to: string; templateName: "login.otp" | "join.company" | "new.pickup.request"; magnoliCustomerId?: string | undefined; variables?: Record | undefined; replyTo?: string | undefined; cc?: string | undefined; bcc?: string | undefined; tag?: string | undefined; meta?: z.objectInputType<{ communicationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>; }, "strip", z.ZodTypeAny, { taskType: string; taskId: string; occurrenceId: string; payload: { to: string; templateName: "login.otp" | "join.company" | "new.pickup.request"; magnoliCustomerId?: string | undefined; variables?: Record | undefined; replyTo?: string | undefined; cc?: string | undefined; bcc?: string | undefined; tag?: string | undefined; meta?: z.objectOutputType<{ communicationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }; messageId?: string | undefined; scheduledAt?: string | undefined; }, { taskType: string; taskId: string; occurrenceId: string; payload: { to: string; templateName: "login.otp" | "join.company" | "new.pickup.request"; magnoliCustomerId?: string | undefined; variables?: Record | undefined; replyTo?: string | undefined; cc?: string | undefined; bcc?: string | undefined; tag?: string | undefined; meta?: z.objectInputType<{ communicationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }; messageId?: string | undefined; scheduledAt?: string | undefined; }>; declare const transactionalEmailPayloadSchema: z.ZodObject<{ to: z.ZodString; templateName: z.ZodEnum<["login.otp", "join.company", "new.pickup.request"]>; variables: z.ZodOptional>; magnoliCustomerId: z.ZodOptional; replyTo: z.ZodOptional; cc: z.ZodOptional; bcc: z.ZodOptional; tag: z.ZodOptional; meta: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ communicationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ communicationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { to: string; templateName: "login.otp" | "join.company" | "new.pickup.request"; magnoliCustomerId?: string | undefined; variables?: Record | undefined; replyTo?: string | undefined; cc?: string | undefined; bcc?: string | undefined; tag?: string | undefined; meta?: z.objectOutputType<{ communicationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }, { to: string; templateName: "login.otp" | "join.company" | "new.pickup.request"; magnoliCustomerId?: string | undefined; variables?: Record | undefined; replyTo?: string | undefined; cc?: string | undefined; bcc?: string | undefined; tag?: string | undefined; meta?: z.objectInputType<{ communicationId: z.ZodOptional; magnoliCustomerId: z.ZodOptional; customerId: z.ZodOptional; orderId: z.ZodOptional; invoiceId: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; }>; type NotificationTemplateId = { notificationTemplateId: string; }; declare const NotificationTemplateNameEnum: { LOGIN_OTP: string; JOIN_COMPANY: string; NEW_PICKUP_REQUEST: string; }; type NotificationTemplateNameEnum = (typeof NotificationTemplateNameEnum)[keyof typeof NotificationTemplateNameEnum]; interface NotificationTemplate { id: string; name: string; source: string; subject: string | null; htmlBody: string | null; textBody: string; description: string | null; variables: Record | null; magnoliCustomerId: string | null; active: boolean; createdAt: string | Date; updatedAt: string | Date; magnoliCustomer?: MagnoliCustomer; } interface NotificationTemplateCreateInput { id?: string; name: string; source: string; subject?: string | null; htmlBody?: string | null; textBody: string; description?: string | null; variables?: Record | null; magnoliCustomerId?: string | null; active?: boolean; createdAt?: string | Date; updatedAt?: string | Date; } type NotificationTemplateUpdateInput = Partial; type NotificationTemplateGetQuery = z$1.infer; type TransactionalEmailEnvelope = z$1.infer; type TransactionalEmailPayload = z$1.infer; interface DeleteTemplateOutput { success: boolean; id: string; name: string; hardDelete: boolean; } interface RenderedTemplate { subject: string | null; htmlBody: string | null; textBody: string; } interface RenderedTemplate { subject: string | null; htmlBody: string | null; textBody: string; } interface TemplatePreviewOutput { template: { id: string; name: string; source: string; }; variables: Record; rendered: { subject?: string | null; htmlBody?: string | null; textBody: string; }; } interface SendEmailOptions { to: string; templateName: string; variables?: Record; magnoliCustomerId?: string; replyTo?: string; cc?: string; bcc?: string; tag?: string; trackOpens?: boolean; } interface SendEmailResult { success: boolean; messageId?: string; errorCode?: number; message?: string; } interface SendRawEmailOptions { to: string; subject: string; htmlBody?: string; textBody?: string; replyTo?: string; cc?: string; bcc?: string; tag?: string; trackOpens?: boolean; } type PayrollSnapshotId = { payrollSnapshotId: string; }; interface PayrollSnapshot { id: string; customerId: string; totals: { totalHours: number; totalRegularHours: number; totalOvertimeHours: number; totalAmount: number; totalRegularAmount: number; totalOvertimeAmount: number; }; payrollPeriodStart: string | Date; payrollPeriodEnd: string | Date; processedById: string; employeeData: { id: string; fullName: string; totalHours: number; totalAmount: number; regularRate: number; clockedShiftIds: string[]; }[]; metadata: { externalSystemPayrollId?: string; photo?: string; referenceNumber?: string; }; createdAt: string | Date; updatedAt: string | Date; customer?: MagnoliCustomer; processedBy?: MagnoliUser; } interface PayrollSnapshotCreateInput { id?: string; customerId?: string; totals: { totalHours: number; totalRegularHours: number; totalOvertimeHours: number; totalAmount: number; totalRegularAmount: number; totalOvertimeAmount: number; }; payrollPeriodStart: string | Date; payrollPeriodEnd: string | Date; processedById?: string; employeeData: { id: string; fullName: string; totalHours: number; totalAmount: number; regularRate: number; clockedShiftIds: string[]; }[]; metadata: { externalSystemPayrollId?: string; totalAmount?: number; photo?: string; referenceNumber?: string; }; createdAt?: string | Date; updatedAt?: string | Date; } type PayrollSnapshotUpdateInput = Partial; declare const payrollSnapshotIdSchema: z.ZodObject<{ payrollSnapshotId: z.ZodString; }, "strip", z.ZodTypeAny, { payrollSnapshotId: string; }, { payrollSnapshotId: string; }>; declare const payrollSnapshotCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; customerId: z.ZodOptional; totals: z.ZodObject<{ totalHours: z.ZodDefault; totalRegularHours: z.ZodDefault; totalOvertimeHours: z.ZodDefault; totalAmount: z.ZodDefault; totalRegularAmount: z.ZodDefault; totalOvertimeAmount: z.ZodDefault; }, "strip", z.ZodTypeAny, { totalHours: number; totalRegularHours: number; totalOvertimeHours: number; totalAmount: number; totalRegularAmount: number; totalOvertimeAmount: number; }, { totalHours?: number | undefined; totalRegularHours?: number | undefined; totalOvertimeHours?: number | undefined; totalAmount?: number | undefined; totalRegularAmount?: number | undefined; totalOvertimeAmount?: number | undefined; }>; payrollPeriodStart: z.ZodDate; payrollPeriodEnd: z.ZodDate; processedById: z.ZodOptional; employeeData: z.ZodDefault; }, "strip", z.ZodTypeAny, { id: string; totalHours: number; regularRate: number; clockedShiftIds: string[]; totalAmount: number; fullName: string; }, { id: string; totalHours: number; regularRate: number; clockedShiftIds: string[]; totalAmount: number; fullName: string; }>, "many">>; metadata: z.ZodDefault; photo: z.ZodOptional; referenceNumber: z.ZodOptional; }, "strip", z.ZodTypeAny, { externalSystemPayrollId?: string | undefined; photo?: string | undefined; referenceNumber?: string | undefined; }, { externalSystemPayrollId?: string | undefined; photo?: string | undefined; referenceNumber?: string | undefined; }>>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { metadata: { externalSystemPayrollId?: string | undefined; photo?: string | undefined; referenceNumber?: string | undefined; }; totals: { totalHours: number; totalRegularHours: number; totalOvertimeHours: number; totalAmount: number; totalRegularAmount: number; totalOvertimeAmount: number; }; payrollPeriodStart: Date; payrollPeriodEnd: Date; employeeData: { id: string; totalHours: number; regularRate: number; clockedShiftIds: string[]; totalAmount: number; fullName: string; }[]; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; processedById?: string | undefined; }, { totals: { totalHours?: number | undefined; totalRegularHours?: number | undefined; totalOvertimeHours?: number | undefined; totalAmount?: number | undefined; totalRegularAmount?: number | undefined; totalOvertimeAmount?: number | undefined; }; payrollPeriodStart: Date; payrollPeriodEnd: Date; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; metadata?: { externalSystemPayrollId?: string | undefined; photo?: string | undefined; referenceNumber?: string | undefined; } | undefined; processedById?: string | undefined; employeeData?: { id: string; totalHours: number; regularRate: number; clockedShiftIds: string[]; totalAmount: number; fullName: string; }[] | undefined; }>; declare const payrollSnapshotUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; customerId: z.ZodOptional>; totals: z.ZodOptional; totalRegularHours: z.ZodDefault; totalOvertimeHours: z.ZodDefault; totalAmount: z.ZodDefault; totalRegularAmount: z.ZodDefault; totalOvertimeAmount: z.ZodDefault; }, "strip", z.ZodTypeAny, { totalHours: number; totalRegularHours: number; totalOvertimeHours: number; totalAmount: number; totalRegularAmount: number; totalOvertimeAmount: number; }, { totalHours?: number | undefined; totalRegularHours?: number | undefined; totalOvertimeHours?: number | undefined; totalAmount?: number | undefined; totalRegularAmount?: number | undefined; totalOvertimeAmount?: number | undefined; }>>; payrollPeriodStart: z.ZodOptional; payrollPeriodEnd: z.ZodOptional; processedById: z.ZodOptional>; employeeData: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; totalHours: number; regularRate: number; clockedShiftIds: string[]; totalAmount: number; fullName: string; }, { id: string; totalHours: number; regularRate: number; clockedShiftIds: string[]; totalAmount: number; fullName: string; }>, "many">>>; metadata: z.ZodOptional; photo: z.ZodOptional; referenceNumber: z.ZodOptional; }, "strip", z.ZodTypeAny, { externalSystemPayrollId?: string | undefined; photo?: string | undefined; referenceNumber?: string | undefined; }, { externalSystemPayrollId?: string | undefined; photo?: string | undefined; referenceNumber?: string | undefined; }>>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; metadata?: { externalSystemPayrollId?: string | undefined; photo?: string | undefined; referenceNumber?: string | undefined; } | undefined; totals?: { totalHours: number; totalRegularHours: number; totalOvertimeHours: number; totalAmount: number; totalRegularAmount: number; totalOvertimeAmount: number; } | undefined; payrollPeriodStart?: Date | undefined; payrollPeriodEnd?: Date | undefined; processedById?: string | undefined; employeeData?: { id: string; totalHours: number; regularRate: number; clockedShiftIds: string[]; totalAmount: number; fullName: string; }[] | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; customerId?: string | undefined; metadata?: { externalSystemPayrollId?: string | undefined; photo?: string | undefined; referenceNumber?: string | undefined; } | undefined; totals?: { totalHours?: number | undefined; totalRegularHours?: number | undefined; totalOvertimeHours?: number | undefined; totalAmount?: number | undefined; totalRegularAmount?: number | undefined; totalOvertimeAmount?: number | undefined; } | undefined; payrollPeriodStart?: Date | undefined; payrollPeriodEnd?: Date | undefined; processedById?: string | undefined; employeeData?: { id: string; totalHours: number; regularRate: number; clockedShiftIds: string[]; totalAmount: number; fullName: string; }[] | undefined; }>; interface LaborVsSalesDay { date: string; revenue: number; volume: number; laborHours: number; laborCost: number; laborToRevenue: number; } interface LaborVsSalesWeek { weekStart: string; days: LaborVsSalesDay[]; totals: { revenue: number; volume: number; laborCost: number; laborHours: number; laborToRevenue: number; }; } interface LaborVsSalesChartPoint { weekStart: string; salesVolume: number; laborToRevenue: number; } interface WeeklyFinanceReportResponse { weekStartsOn: number; weeks: LaborVsSalesWeek[] | SalesByWeek[]; chartData: LaborVsSalesChartPoint[]; } interface SalesByDay { date: string; revenue: number; volume: number; pricePerPiece: number; } interface SalesByWeek { weekStart: string; days: SalesByDay[]; totals: { revenue: number; volume: number; pricePerPiece: number; }; } interface ReconciliationSummary { expected: number; scanned: number; ok: number; missing: number; new: number; } interface ReconciliationPayload { expected: string[]; scanned: string[]; diff: { ok: string[]; missing: string[]; new: string[]; }; } interface ReconciliationCreateInput { shopRackId: string; } interface ReconciliationScanInput { bagId: string; } interface ReconciliationFilters { shopRackId?: string; saleLocationId?: string; performedByUserId?: string; startDate?: string; endDate?: string; page?: number; limit?: number; } interface ReconciliationSessionState { id: string; shopRackId: string; expectedBags: string[]; scannedBags: string[]; isCompleted: boolean; scanHistory?: Array<{ bagId: string; success: boolean; message: string; isExpected?: boolean; isAlreadyScanned?: boolean; }>; } interface ReconciliationResponseBase { id: string; shopRackId: string; saleLocationId: string; performedByUserId: string; performedAt: string | Date; summary: ReconciliationSummary; payloadJson: TPayload; createdAt: string | Date; updatedAt: string | Date; shopRack: { id: string; name: string; saleLocationId: string; }; saleLocation: { id: string; name: string | null; }; } type ReconciliationResponse = ReconciliationResponseBase; interface EnrichedReconciliationResponse extends ReconciliationResponseBase { /** Detailed information per-bag returned by POS */ enrichedPayload: EnrichedReconciliationPayload; } interface ReconciliationListItem { id: string; shopRackId: string; saleLocationId: string; performedByUserId: string; performedAt: string; summary: ReconciliationSummary; payloadJson: ReconciliationPayload; shopRack: { id: string; name: string | null; }; saleLocation: { id: string; name: string | null; }; performedBy: { id: string; firstName: string; lastName: string; }; } interface ReconciliationDetail extends ReconciliationListItem { metadata?: { isCompleted: boolean; completedAt?: string; }; } interface GenerateReportResponse { reconciliation: ReconciliationResponse; missingBagsLabeled: number; newBagsLabeled: number; } interface BagReconciliationLabel { status: "missing" | "new"; date: string; reconciliationId: string; } interface WrongStoreWarningPayload { type: "WRONG_STORE"; bagId: string; bagSaleLocationId?: string | null; bagSaleLocationName?: string | null; expectedSaleLocationId?: string | null; expectedSaleLocationName?: string | null; } interface ReconciliationListResponse { data: ReconciliationListItem[]; pagination: { currentPage: number; total: number; totalPages: number; }; } interface BagDetail { bagId: string; orderId: string; customerName: string; dueDate: Date | null; itemCount: number; } interface EnrichedReconciliationPayload { diff: { missing: BagDetail[]; new: BagDetail[]; ok: BagDetail[]; }; expected: BagDetail[]; scanned: BagDetail[]; } declare const reconciliationSummarySchema: z.ZodObject<{ expected: z.ZodNumber; scanned: z.ZodNumber; ok: z.ZodNumber; missing: z.ZodNumber; new: z.ZodNumber; }, "strip", z.ZodTypeAny, { expected: number; new: number; missing: number; scanned: number; ok: number; }, { expected: number; new: number; missing: number; scanned: number; ok: number; }>; declare const reconciliationPayloadSchema: z.ZodObject<{ expected: z.ZodArray; scanned: z.ZodArray; diff: z.ZodObject<{ ok: z.ZodArray; missing: z.ZodArray; new: z.ZodArray; }, "strip", z.ZodTypeAny, { new: string[]; missing: string[]; ok: string[]; }, { new: string[]; missing: string[]; ok: string[]; }>; }, "strip", z.ZodTypeAny, { expected: string[]; scanned: string[]; diff: { new: string[]; missing: string[]; ok: string[]; }; }, { expected: string[]; scanned: string[]; diff: { new: string[]; missing: string[]; ok: string[]; }; }>; declare const reconciliationCreateSchema: z.ZodObject<{ body: z.ZodObject<{ shopRackId: z.ZodString; }, "strip", z.ZodTypeAny, { shopRackId: string; }, { shopRackId: string; }>; }, "strip", z.ZodTypeAny, { body: { shopRackId: string; }; }, { body: { shopRackId: string; }; }>; declare const reconciliationScanSchema: z.ZodObject<{ body: z.ZodObject<{ bagId: z.ZodString; }, "strip", z.ZodTypeAny, { bagId: string; }, { bagId: string; }>; }, "strip", z.ZodTypeAny, { body: { bagId: string; }; }, { body: { bagId: string; }; }>; declare const reconciliationFiltersSchema: z.ZodObject<{ query: z.ZodOptional; saleLocationId: z.ZodOptional; performedByUserId: z.ZodOptional; startDate: z.ZodOptional; endDate: z.ZodOptional; page: z.ZodOptional, z.ZodNumber>>; limit: z.ZodOptional, z.ZodNumber>>; }, "strip", z.ZodTypeAny, { startDate?: string | undefined; endDate?: string | undefined; page?: number | undefined; limit?: number | undefined; shopRackId?: string | undefined; saleLocationId?: string | undefined; performedByUserId?: string | undefined; }, { startDate?: string | undefined; endDate?: string | undefined; page?: string | undefined; limit?: string | undefined; shopRackId?: string | undefined; saleLocationId?: string | undefined; performedByUserId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { query?: { startDate?: string | undefined; endDate?: string | undefined; page?: number | undefined; limit?: number | undefined; shopRackId?: string | undefined; saleLocationId?: string | undefined; performedByUserId?: string | undefined; } | undefined; }, { query?: { startDate?: string | undefined; endDate?: string | undefined; page?: string | undefined; limit?: string | undefined; shopRackId?: string | undefined; saleLocationId?: string | undefined; performedByUserId?: string | undefined; } | undefined; }>; declare const reconciliationParamsSchema: z.ZodObject<{ params: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; body: z.ZodOptional; query: z.ZodOptional; }, "strip", z.ZodTypeAny, { params: { id: string; }; query?: any; body?: any; }, { params: { id: string; }; query?: any; body?: any; }>; declare const bagReconciliationLabelSchema: z.ZodObject<{ status: z.ZodEnum<["missing", "new"]>; date: z.ZodString; reconciliationId: z.ZodString; }, "strip", z.ZodTypeAny, { status: "new" | "missing"; date: string; reconciliationId: string; }, { status: "new" | "missing"; date: string; reconciliationId: string; }>; declare const reconciliationSessionStateSchema: z.ZodObject<{ id: z.ZodString; shopRackId: z.ZodString; expectedBags: z.ZodArray; scannedBags: z.ZodArray; isCompleted: z.ZodBoolean; scanHistory: z.ZodOptional; isAlreadyScanned: z.ZodOptional; }, "strip", z.ZodTypeAny, { success: boolean; message: string; bagId: string; isExpected?: boolean | undefined; isAlreadyScanned?: boolean | undefined; }, { success: boolean; message: string; bagId: string; isExpected?: boolean | undefined; isAlreadyScanned?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; shopRackId: string; expectedBags: string[]; scannedBags: string[]; isCompleted: boolean; scanHistory?: { success: boolean; message: string; bagId: string; isExpected?: boolean | undefined; isAlreadyScanned?: boolean | undefined; }[] | undefined; }, { id: string; shopRackId: string; expectedBags: string[]; scannedBags: string[]; isCompleted: boolean; scanHistory?: { success: boolean; message: string; bagId: string; isExpected?: boolean | undefined; isAlreadyScanned?: boolean | undefined; }[] | undefined; }>; declare enum RackType { ASSEMBLY = "assembly", SHOP = "shop", STORAGE = "storage", FOLDING = "folding" } interface RackListItem { active: boolean; id: string; name: string; rackType: RackType; slotCapacity?: number; slotsCount?: number; targetLocations?: string[]; } interface GeneratedBarcode { barcode: string; slotId?: string; } interface ShopRackWithSlots { id: string; name: string; saleLocationId: string; saleLocation?: { id: string; name: string; }; active: boolean; type: string; slots: ShopRackSlot[]; } interface ShopRackSlot { id: string; slotName: string; slotBarcode: string; active: boolean; shopRackId?: string; saleLocationId?: string; } interface ShopRackCreateInputWithType { active?: boolean; name: string; saleLocationId: string; type: RackType.SHOP; } interface ShopRackUpdateInputWithType { active?: boolean; name?: string; saleLocationId?: string; type?: RackType.SHOP; } interface ShopRackSlotCreateInput { slotName: string; slotBarcode?: string; } interface ShopRackSlotUpdateInput { slotName?: string; slotBarcode?: string; active?: boolean; } interface ShopRackSlotBulkCreateInput { slots: Array<{ slotBarcode: string; slotName: string; }>; } interface ShopRackSlotSkipped { reason: string; slotBarcode: string; slotName: string; } interface ShopRackSlotBulkCreateResponse { data: { created: ShopRackSlot[]; skipped: ShopRackSlotSkipped[]; }; errors: string[]; message: string; status: string; } type RackCreateInput = (AssemblyRackCreateInput & { type: RackType.ASSEMBLY; }) | ShopRackCreateInputWithType; type RackUpdateInput = (AssemblyRackUpdateInput & { type?: RackType.ASSEMBLY; }) | ShopRackUpdateInputWithType; type RackResponse = AssemblyRack | ShopRackWithSlots; interface GetRackByIdResponse { id: string; name: string; orders: Array<{ id: string; orderStatus?: OrderStatus; invoiceStatus?: InvoiceStatus; customer: { id: string; name: string; phone?: string; }; dueDate?: Date; bags: Array<{ id: string; bagType: OrderBagType; itemCount: number; status: string; slot?: { id: string; slotName: string; slotBarcode: string; } | null; }>; }>; } interface SlotByBarcodeResponse { id: string; shopRackId: string; saleLocationId: string; slotName: string; slotBarcode: string; active?: boolean; createdAt?: string | Date; updatedAt?: string | Date; shopRack?: { id: string; name: string; }; orderBags?: Array<{ id: string; status: string; assembledAt: string | Date | null; }>; } interface HangingInventoryReport { [saleLocationId: string]: { saleLocationName: string; bags: HangingInventoryBag[]; }; } interface HangingInventoryBag { bagId: string; fullName: string; quantity: number; value: number; aging: number; isMisracked: boolean; } interface HangingInventoryDetail { customerName: string; customerPhoneNumber: string; returnLocation: string; items: HangingInventoryItem[]; totalValue: number; } interface HangingInventoryItem { itemName: string; brand: string; colors: string; specialCares: string; value: number; } interface UseShopRacksReturn { error: null | string; isLoading: boolean; orders: GetRackByIdResponse["orders"]; racks: GetRacksByShopIdResponse[]; selectedOrderId: null | string; selectedRack: GetRacksByShopIdResponse | null; selectOrder: (id: string) => void; selectRack: (id: string) => void; shopId: string; } interface GetRacksByShopIdResponse { id: string; name: string; } interface RacksWithSlotsResponse { id: string; name: string; displayName: string; slots: Array<{ id: string; slotName: string; slotBarcode: string; }>; } interface BagsBySlotResponse { slot: { id: string; slotName: string; slotBarcode: string; }; orders: Array<{ id: string; orderStatus: string; invoiceStatus: string; customer: { id: string; name: string; phone?: string; }; dueDate?: Date; bags: Array<{ id: string; bagType: OrderBagType; itemCount: number; status: string; slot: { id: string; slotName: string; slotBarcode: string; }; }>; }>; } interface Slot { id: string; slotName: string; slotBarcode: string; } interface RackWithSlots { id: string; name: string; displayName: string; slots: Slot[]; } interface RackSlotSelectorProps { onSlotSelect: (slot: { id: string; slotName: string; slotBarcode: string; rackName: string; }) => void; selectedSlot?: { id: string; slotName: string; slotBarcode: string; rackName: string; } | null; } interface SlotSelectorProps { rackId: string; selectedSlot: Slot | null; onSlotSelect: (slot: Slot | null) => void; } interface CustomRackSelectorProps { racks: GetRacksByShopIdResponse[]; selectedRack: GetRacksByShopIdResponse | null; onRackSelect: (rackId: string) => void; onAssignBagClick: () => void; } declare const shopRackCreateInputWithTypeSchema: z.ZodObject<{ active: z.ZodOptional; name: z.ZodString; saleLocationId: z.ZodString; type: z.ZodLiteral; }, "strip", z.ZodTypeAny, { type: RackType.SHOP; name: string; saleLocationId: string; active?: boolean | undefined; }, { type: RackType.SHOP; name: string; saleLocationId: string; active?: boolean | undefined; }>; declare const shopRackUpdateInputWithTypeSchema: z.ZodObject<{ active: z.ZodOptional; name: z.ZodOptional; saleLocationId: z.ZodOptional; type: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: RackType.SHOP | undefined; active?: boolean | undefined; name?: string | undefined; saleLocationId?: string | undefined; }, { type?: RackType.SHOP | undefined; active?: boolean | undefined; name?: string | undefined; saleLocationId?: string | undefined; }>; declare const shopRackSlotCreateInputSchema: z.ZodObject<{ slotName: z.ZodString; slotBarcode: z.ZodOptional; }, "strip", z.ZodTypeAny, { slotName: string; slotBarcode?: string | undefined; }, { slotName: string; slotBarcode?: string | undefined; }>; declare const shopRackSlotUpdateInputSchema: z.ZodObject<{ slotName: z.ZodOptional; slotBarcode: z.ZodOptional; active: z.ZodOptional; }, "strip", z.ZodTypeAny, { active?: boolean | undefined; slotName?: string | undefined; slotBarcode?: string | undefined; }, { active?: boolean | undefined; slotName?: string | undefined; slotBarcode?: string | undefined; }>; declare const rackListItemSchema: z.ZodObject<{ active: z.ZodBoolean; id: z.ZodString; name: z.ZodString; rackType: z.ZodNativeEnum; slotCapacity: z.ZodOptional; slotsCount: z.ZodOptional; targetLocations: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id: string; active: boolean; name: string; rackType: RackType; targetLocations?: string[] | undefined; slotCapacity?: number | undefined; slotsCount?: number | undefined; }, { id: string; active: boolean; name: string; rackType: RackType; targetLocations?: string[] | undefined; slotCapacity?: number | undefined; slotsCount?: number | undefined; }>; declare const generatedBarcodeSchema: z.ZodObject<{ barcode: z.ZodString; slotId: z.ZodOptional; }, "strip", z.ZodTypeAny, { barcode: string; slotId?: string | undefined; }, { barcode: string; slotId?: string | undefined; }>; declare const getRackByIdResponseSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; orders: z.ZodArray; }, "strip", z.ZodTypeAny, { id: string; name: string; phone?: string | undefined; }, { id: string; name: string; phone?: string | undefined; }>; dueDate: z.ZodOptional; bags: z.ZodArray>; }, "strip", z.ZodTypeAny, { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; } | null; bagType: string; itemCount: number; }, { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; } | null; bagType: string; itemCount: number; }>, "many">; }, "strip", z.ZodTypeAny, { status: string; id: string; customer: { id: string; name: string; phone?: string | undefined; }; bags: { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; } | null; bagType: string; itemCount: number; }[]; dueDate?: Date | undefined; }, { status: string; id: string; customer: { id: string; name: string; phone?: string | undefined; }; bags: { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; } | null; bagType: string; itemCount: number; }[]; dueDate?: Date | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; name: string; orders: { status: string; id: string; customer: { id: string; name: string; phone?: string | undefined; }; bags: { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; } | null; bagType: string; itemCount: number; }[]; dueDate?: Date | undefined; }[]; }, { id: string; name: string; orders: { status: string; id: string; customer: { id: string; name: string; phone?: string | undefined; }; bags: { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; } | null; bagType: string; itemCount: number; }[]; dueDate?: Date | undefined; }[]; }>; declare const hangingInventoryBagSchema: z.ZodObject<{ bagId: z.ZodString; fullName: z.ZodString; quantity: z.ZodNumber; value: z.ZodNumber; aging: z.ZodNumber; isMisracked: z.ZodBoolean; }, "strip", z.ZodTypeAny, { value: number; quantity: number; bagId: string; fullName: string; aging: number; isMisracked: boolean; }, { value: number; quantity: number; bagId: string; fullName: string; aging: number; isMisracked: boolean; }>; declare const hangingInventoryReportSchema: z.ZodRecord, "many">; }, "strip", z.ZodTypeAny, { bags: { value: number; quantity: number; bagId: string; fullName: string; aging: number; isMisracked: boolean; }[]; saleLocationName: string; }, { bags: { value: number; quantity: number; bagId: string; fullName: string; aging: number; isMisracked: boolean; }[]; saleLocationName: string; }>>; declare const hangingInventoryItemSchema: z.ZodObject<{ itemName: z.ZodString; brand: z.ZodString; colors: z.ZodString; specialCares: z.ZodString; value: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: number; brand: string; colors: string; itemName: string; specialCares: string; }, { value: number; brand: string; colors: string; itemName: string; specialCares: string; }>; declare const hangingInventoryDetailSchema: z.ZodObject<{ customerName: z.ZodString; customerPhoneNumber: z.ZodString; returnLocation: z.ZodString; items: z.ZodArray, "many">; totalValue: z.ZodNumber; }, "strip", z.ZodTypeAny, { customerName: string; items: { value: number; brand: string; colors: string; itemName: string; specialCares: string; }[]; customerPhoneNumber: string; returnLocation: string; totalValue: number; }, { customerName: string; items: { value: number; brand: string; colors: string; itemName: string; specialCares: string; }[]; customerPhoneNumber: string; returnLocation: string; totalValue: number; }>; declare const getRacksByShopIdResponseSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; declare const racksWithSlotsResponseSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; displayName: z.ZodString; slots: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { id: string; name: string; displayName: string; slots: { id: string; slotName: string; slotBarcode: string; }[]; }, { id: string; name: string; displayName: string; slots: { id: string; slotName: string; slotBarcode: string; }[]; }>; declare const bagsBySlotResponseSchema: z.ZodObject<{ slot: z.ZodObject<{ id: z.ZodString; slotName: z.ZodString; slotBarcode: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; slotName: string; slotBarcode: string; }, { id: string; slotName: string; slotBarcode: string; }>; orders: z.ZodArray; }, "strip", z.ZodTypeAny, { id: string; name: string; phone?: string | undefined; }, { id: string; name: string; phone?: string | undefined; }>; dueDate: z.ZodOptional; bags: z.ZodArray; }, "strip", z.ZodTypeAny, { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; }; bagType: string; itemCount: number; }, { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; }; bagType: string; itemCount: number; }>, "many">; }, "strip", z.ZodTypeAny, { id: string; customer: { id: string; name: string; phone?: string | undefined; }; bags: { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; }; bagType: string; itemCount: number; }[]; invoiceStatus: string; orderStatus: string; dueDate?: string | undefined; }, { id: string; customer: { id: string; name: string; phone?: string | undefined; }; bags: { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; }; bagType: string; itemCount: number; }[]; invoiceStatus: string; orderStatus: string; dueDate?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { slot: { id: string; slotName: string; slotBarcode: string; }; orders: { id: string; customer: { id: string; name: string; phone?: string | undefined; }; bags: { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; }; bagType: string; itemCount: number; }[]; invoiceStatus: string; orderStatus: string; dueDate?: string | undefined; }[]; }, { slot: { id: string; slotName: string; slotBarcode: string; }; orders: { id: string; customer: { id: string; name: string; phone?: string | undefined; }; bags: { status: string; id: string; slot: { id: string; slotName: string; slotBarcode: string; }; bagType: string; itemCount: number; }[]; invoiceStatus: string; orderStatus: string; dueDate?: string | undefined; }[]; }>; declare const slotSchema: z.ZodObject<{ id: z.ZodString; slotName: z.ZodString; slotBarcode: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; slotName: string; slotBarcode: string; }, { id: string; slotName: string; slotBarcode: string; }>; declare const rackWithSlotsSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; displayName: z.ZodString; slots: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { id: string; name: string; displayName: string; slots: { id: string; slotName: string; slotBarcode: string; }[]; }, { id: string; name: string; displayName: string; slots: { id: string; slotName: string; slotBarcode: string; }[]; }>; type DeliveryAppSettingsId = { deliveryAppSettingsId: string; }; interface DeliveryAppSettings { id: string; magnoliCustomerId: string; magnoliCustomerName: string; deliveryAppUrl: string; settings: { deliveryAppUrl: string | null; customerIOSiteId: string | null; customerIOApiKey: string | null; googleTagManagerId: string | null; logo: string | null; pageTitle: string | null; metaDescription: string | null; metaKeywords: string | null; favicon: string | null; gmbUrl: string | null; yelpReviewUrl: string | null; contacts: { email: string | null; phone: string | null; facebook: string | null; instagram: string | null; twitter: string | null; }; } | null; createdAt: string | Date; updatedAt: string | Date; } interface DeliveryAppSettingsCreateInput { id?: string; magnoliCustomerId: string; magnoliCustomerName: string; deliveryAppUrl: string; settings?: { deliveryAppUrl: string | null; customerIOSiteId: string | null; customerIOApiKey: string | null; googleTagManagerId: string | null; logo: string | null; pageTitle: string | null; metaDescription: string | null; metaKeywords: string | null; favicon: string | null; gmbUrl: string | null; yelpReviewUrl: string | null; contacts: { email: string | null; phone: string | null; facebook: string | null; instagram: string | null; twitter: string | null; }; } | null; createdAt?: string | Date; updatedAt?: string | Date; } type DeliveryAppSettingsUpdateInput = Partial; declare const deliveryAppSettingsIdSchema: z.ZodObject<{ deliveryAppSettingsId: z.ZodString; }, "strip", z.ZodTypeAny, { deliveryAppSettingsId: string; }, { deliveryAppSettingsId: string; }>; declare const deliveryAppSettingsCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; magnoliCustomerId: z.ZodString; magnoliCustomerName: z.ZodString; deliveryAppUrl: z.ZodString; settings: z.ZodNullable>; customerIOSiteId: z.ZodNullable>; customerIOApiKey: z.ZodNullable>; googleTagManagerId: z.ZodNullable>; gmbUrl: z.ZodNullable>; yelpReviewUrl: z.ZodNullable>; contacts: z.ZodNullable>; phone: z.ZodNullable>; facebook: z.ZodNullable>; instagram: z.ZodNullable>; twitter: z.ZodNullable>; }, "strip", z.ZodTypeAny, { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; }, { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; }>>>; logo: z.ZodNullable>; pageTitle: z.ZodNullable>; metaDescription: z.ZodNullable>; metaKeywords: z.ZodNullable>; favicon: z.ZodNullable>; }, "strip", z.ZodTypeAny, { yelpReviewUrl?: string | null | undefined; deliveryAppUrl?: string | null | undefined; customerIOSiteId?: string | null | undefined; customerIOApiKey?: string | null | undefined; googleTagManagerId?: string | null | undefined; gmbUrl?: string | null | undefined; contacts?: { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; } | null | undefined; logo?: string | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; metaKeywords?: string | null | undefined; favicon?: string | null | undefined; }, { yelpReviewUrl?: string | null | undefined; deliveryAppUrl?: string | null | undefined; customerIOSiteId?: string | null | undefined; customerIOApiKey?: string | null | undefined; googleTagManagerId?: string | null | undefined; gmbUrl?: string | null | undefined; contacts?: { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; } | null | undefined; logo?: string | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; metaKeywords?: string | null | undefined; favicon?: string | null | undefined; }>>>; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { magnoliCustomerId: string; magnoliCustomerName: string; deliveryAppUrl: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; settings?: { yelpReviewUrl?: string | null | undefined; deliveryAppUrl?: string | null | undefined; customerIOSiteId?: string | null | undefined; customerIOApiKey?: string | null | undefined; googleTagManagerId?: string | null | undefined; gmbUrl?: string | null | undefined; contacts?: { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; } | null | undefined; logo?: string | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; metaKeywords?: string | null | undefined; favicon?: string | null | undefined; } | null | undefined; }, { magnoliCustomerId: string; magnoliCustomerName: string; deliveryAppUrl: string; id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; settings?: { yelpReviewUrl?: string | null | undefined; deliveryAppUrl?: string | null | undefined; customerIOSiteId?: string | null | undefined; customerIOApiKey?: string | null | undefined; googleTagManagerId?: string | null | undefined; gmbUrl?: string | null | undefined; contacts?: { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; } | null | undefined; logo?: string | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; metaKeywords?: string | null | undefined; favicon?: string | null | undefined; } | null | undefined; }>; declare const deliveryAppSettingsUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; magnoliCustomerId: z.ZodOptional; magnoliCustomerName: z.ZodOptional; deliveryAppUrl: z.ZodOptional; settings: z.ZodOptional>; customerIOSiteId: z.ZodNullable>; customerIOApiKey: z.ZodNullable>; googleTagManagerId: z.ZodNullable>; gmbUrl: z.ZodNullable>; yelpReviewUrl: z.ZodNullable>; contacts: z.ZodNullable>; phone: z.ZodNullable>; facebook: z.ZodNullable>; instagram: z.ZodNullable>; twitter: z.ZodNullable>; }, "strip", z.ZodTypeAny, { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; }, { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; }>>>; logo: z.ZodNullable>; pageTitle: z.ZodNullable>; metaDescription: z.ZodNullable>; metaKeywords: z.ZodNullable>; favicon: z.ZodNullable>; }, "strip", z.ZodTypeAny, { yelpReviewUrl?: string | null | undefined; deliveryAppUrl?: string | null | undefined; customerIOSiteId?: string | null | undefined; customerIOApiKey?: string | null | undefined; googleTagManagerId?: string | null | undefined; gmbUrl?: string | null | undefined; contacts?: { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; } | null | undefined; logo?: string | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; metaKeywords?: string | null | undefined; favicon?: string | null | undefined; }, { yelpReviewUrl?: string | null | undefined; deliveryAppUrl?: string | null | undefined; customerIOSiteId?: string | null | undefined; customerIOApiKey?: string | null | undefined; googleTagManagerId?: string | null | undefined; gmbUrl?: string | null | undefined; contacts?: { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; } | null | undefined; logo?: string | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; metaKeywords?: string | null | undefined; favicon?: string | null | undefined; }>>>>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; magnoliCustomerId?: string | undefined; settings?: { yelpReviewUrl?: string | null | undefined; deliveryAppUrl?: string | null | undefined; customerIOSiteId?: string | null | undefined; customerIOApiKey?: string | null | undefined; googleTagManagerId?: string | null | undefined; gmbUrl?: string | null | undefined; contacts?: { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; } | null | undefined; logo?: string | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; metaKeywords?: string | null | undefined; favicon?: string | null | undefined; } | null | undefined; magnoliCustomerName?: string | undefined; deliveryAppUrl?: string | undefined; }, { id?: string | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; magnoliCustomerId?: string | undefined; settings?: { yelpReviewUrl?: string | null | undefined; deliveryAppUrl?: string | null | undefined; customerIOSiteId?: string | null | undefined; customerIOApiKey?: string | null | undefined; googleTagManagerId?: string | null | undefined; gmbUrl?: string | null | undefined; contacts?: { email?: string | null | undefined; phone?: string | null | undefined; facebook?: string | null | undefined; instagram?: string | null | undefined; twitter?: string | null | undefined; } | null | undefined; logo?: string | null | undefined; pageTitle?: string | null | undefined; metaDescription?: string | null | undefined; metaKeywords?: string | null | undefined; favicon?: string | null | undefined; } | null | undefined; magnoliCustomerName?: string | undefined; deliveryAppUrl?: string | undefined; }>; type EventId = { eventId: string; }; interface Event { id: string; type: string; payload: any | null; status: string; attempts: number; lastError: string | null; customerId: string | null; createdAt: string | Date; receivedAt: string | Date; } interface EventCreateInput { id?: string; type: string; payload?: any | null; status?: string; attempts?: number; lastError?: string | null; customerId?: string | null; createdAt?: string | Date; receivedAt?: string | Date; } type EventUpdateInput = Partial; declare const eventIdSchema: z.ZodObject<{ eventId: z.ZodString; }, "strip", z.ZodTypeAny, { eventId: string; }, { eventId: string; }>; declare const eventCreateInputSchema: z.ZodObject<{ id: z.ZodOptional; type: z.ZodString; payload: z.ZodNullable>; status: z.ZodOptional; attempts: z.ZodOptional; lastError: z.ZodNullable>; customerId: z.ZodNullable>; createdAt: z.ZodOptional; receivedAt: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; status?: string | undefined; id?: string | undefined; createdAt?: Date | undefined; customerId?: string | null | undefined; payload?: any; attempts?: number | undefined; lastError?: string | null | undefined; receivedAt?: Date | undefined; }, { type: string; status?: string | undefined; id?: string | undefined; createdAt?: Date | undefined; customerId?: string | null | undefined; payload?: any; attempts?: number | undefined; lastError?: string | null | undefined; receivedAt?: Date | undefined; }>; declare const eventUpdateInputSchema: z.ZodObject<{ id: z.ZodOptional>; type: z.ZodOptional; payload: z.ZodOptional>>; status: z.ZodOptional>; attempts: z.ZodOptional>; lastError: z.ZodOptional>>; customerId: z.ZodOptional>>; createdAt: z.ZodOptional>; receivedAt: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type?: string | undefined; status?: string | undefined; id?: string | undefined; createdAt?: Date | undefined; customerId?: string | null | undefined; payload?: any; attempts?: number | undefined; lastError?: string | null | undefined; receivedAt?: Date | undefined; }, { type?: string | undefined; status?: string | undefined; id?: string | undefined; createdAt?: Date | undefined; customerId?: string | null | undefined; payload?: any; attempts?: number | undefined; lastError?: string | null | undefined; receivedAt?: Date | undefined; }>; type CrmNotificationTemplateId = { notificationTemplateId: string; }; /** * Notification Template Trigger Type Enum * Determines what type of event triggers this template */ declare enum TriggerType { ORDER = "ORDER", PICKUP = "PICKUP", PAYMENT = "PAYMENT" } /** * Notification Template Channel * Currently only SMS is supported */ type CrmNotificationTemplateChannel = "SMS"; /** * CRM Notification Template for SMS notifications * Used for order status changes, pickup request status changes, and payment failures * Distinct from email NotificationTemplate in notifications module */ interface CrmNotificationTemplate { id: string; magnoliCustomerId: string; triggerType: TriggerType; triggerStatus: string; channel: CrmNotificationTemplateChannel; triggerOrderType: OrderType.ROUTE | OrderType.RETAIL | null; name: string | null; body: string; phoneNumberFrom: string | null; active: boolean; createdAt: string | Date; updatedAt: string | Date; } /** * Input for creating a CRM notification template */ interface CrmNotificationTemplateCreateInput { triggerType: TriggerType; triggerStatus: string; channel?: CrmNotificationTemplateChannel; triggerOrderType?: OrderType.ROUTE | OrderType.RETAIL | null; name?: string | null; body: string; phoneNumberFrom?: string | null; active?: boolean; } /** * Input for updating a CRM notification template * All fields are optional except those that identify the template */ type CrmNotificationTemplateUpdateInput = Partial> & { name?: string | null; body?: string; phoneNumberFrom?: string | null; active?: boolean; triggerType?: TriggerType; triggerStatus?: string; channel?: CrmNotificationTemplateChannel; triggerOrderType?: OrderType.ROUTE | OrderType.RETAIL | null; }; /** * Query parameters for listing CRM notification templates */ interface CrmNotificationTemplateListQuery { search?: string; triggerType?: TriggerType; triggerStatus?: string; triggerOrderType?: OrderType.ROUTE | OrderType.RETAIL | null; active?: boolean; } /** * Helper type for ORDER trigger status values */ type OrderTriggerStatus = OrderStatus; /** * Helper type for PICKUP trigger status values */ type PickupTriggerStatus = PickupRequestStatus; /** * Helper type for PAYMENT trigger status values */ type PaymentTriggerStatus = InvoicePaymentQueueStatus; /** * Schema for CRM notification template ID parameter */ declare const crmNotificationTemplateIdSchema: z.ZodObject<{ notificationTemplateId: z.ZodString; }, "strip", z.ZodTypeAny, { notificationTemplateId: string; }, { notificationTemplateId: string; }>; /** * Schema for trigger type enum */ declare const crmNotificationTemplateTriggerTypeSchema: z.ZodNativeEnum; /** * Schema for channel enum (currently only SMS) */ declare const crmNotificationTemplateChannelSchema: z.ZodEnum<["SMS"]>; /** * Schema for ORDER trigger status values */ declare const orderTriggerStatusSchema: z.ZodNativeEnum; /** * Schema for PICKUP trigger status values */ declare const pickupTriggerStatusSchema: z.ZodNativeEnum; /** * Schema for PAYMENT trigger status values */ declare const paymentTriggerStatusSchema: z.ZodNativeEnum; /** * Schema for trigger status (can be ORDER, PICKUP, or PAYMENT status) * Validated at runtime based on triggerType */ declare const crmNotificationTemplateTriggerStatusSchema: z.ZodString; /** * Schema for E.164 phone number format */ declare const e164PhoneNumberSchema: z.ZodOptional>; /** * Schema for creating a CRM notification template */ declare const crmNotificationTemplateCreateInputSchema: z.ZodEffects; triggerStatus: z.ZodString; channel: z.ZodDefault>; triggerOrderType: z.ZodOptional>>; name: z.ZodOptional>; body: z.ZodString; phoneNumberFrom: z.ZodOptional>; active: z.ZodDefault; }, "strip", z.ZodTypeAny, { active: boolean; body: string; channel: "SMS"; triggerType: TriggerType; triggerStatus: string; name?: string | null | undefined; triggerOrderType?: OrderType | null | undefined; phoneNumberFrom?: string | null | undefined; }, { body: string; triggerType: TriggerType; triggerStatus: string; active?: boolean | undefined; name?: string | null | undefined; channel?: "SMS" | undefined; triggerOrderType?: OrderType | null | undefined; phoneNumberFrom?: string | null | undefined; }>, { active: boolean; body: string; channel: "SMS"; triggerType: TriggerType; triggerStatus: string; name?: string | null | undefined; triggerOrderType?: OrderType | null | undefined; phoneNumberFrom?: string | null | undefined; }, { body: string; triggerType: TriggerType; triggerStatus: string; active?: boolean | undefined; name?: string | null | undefined; channel?: "SMS" | undefined; triggerOrderType?: OrderType | null | undefined; phoneNumberFrom?: string | null | undefined; }>, { active: boolean; body: string; channel: "SMS"; triggerType: TriggerType; triggerStatus: string; name?: string | null | undefined; triggerOrderType?: OrderType | null | undefined; phoneNumberFrom?: string | null | undefined; }, { body: string; triggerType: TriggerType; triggerStatus: string; active?: boolean | undefined; name?: string | null | undefined; channel?: "SMS" | undefined; triggerOrderType?: OrderType | null | undefined; phoneNumberFrom?: string | null | undefined; }>; /** * Schema for updating a CRM notification template */ declare const crmNotificationTemplateUpdateInputSchema: z.ZodObject<{ name: z.ZodOptional>>; body: z.ZodOptional>; phoneNumberFrom: z.ZodOptional>>; active: z.ZodOptional>; triggerOrderType: z.ZodOptional>>>; }, "strip", z.ZodTypeAny, { active?: boolean | undefined; name?: string | null | undefined; body?: string | undefined; triggerOrderType?: OrderType | null | undefined; phoneNumberFrom?: string | null | undefined; }, { active?: boolean | undefined; name?: string | null | undefined; body?: string | undefined; triggerOrderType?: OrderType | null | undefined; phoneNumberFrom?: string | null | undefined; }>; /** * Schema for query parameters when listing CRM notification templates */ declare const crmNotificationTemplateListQuerySchema: z.ZodObject<{ search: z.ZodOptional; triggerType: z.ZodOptional>; triggerStatus: z.ZodOptional; triggerOrderType: z.ZodOptional>>; active: z.ZodOptional; }, "strip", z.ZodTypeAny, { active?: boolean | undefined; search?: string | undefined; triggerType?: TriggerType | undefined; triggerStatus?: string | undefined; triggerOrderType?: OrderType | null | undefined; }, { active?: boolean | undefined; search?: string | undefined; triggerType?: TriggerType | undefined; triggerStatus?: string | undefined; triggerOrderType?: OrderType | null | undefined; }>; interface CrmOrderRecord { id: string; type: "pickupRequest" | "pickupRequestWithOrder" | "order"; pickupRequest: PickupRequestData | null; order: OrderData | null; dropOffRequest: DropOffRequestData | null; customer: CustomerData; address: AddressData | null; route: RouteData | null; createdAt: string; } interface PickupRequestData { id: string; magnoliCustomerId: string; customerId: string; addressId: string; routeId: string | null; routeOverride: boolean; status: string; createdAt: string; dueDate: string | null; pickupDate: string | null; metadata: Record | null; driverId: string | null; detailedById: string | null; updatedAt: string; magnoliCustomer: MagnoliCustomerData; customer: CustomerData; address: AddressData; route: RouteData | null; } interface OrderData { id: string; customerId: string; pricelistId: string; saleLocationId: string | null; deliveryLocationId: string | null; revenueStreamId: string | null; parentOrderId: string | null; deliveryDate: string | null; orderType: string | null; status: string; total: number; displayTotal: number | null; metadata: Record | null; invoiceId: string | null; createdAt: string; updatedAt: string; orderDate: string | null; dueDate: string | null; extractedAt: string | null; customer: CustomerData; pricelist: PricelistData; deliveryLocation: AddressData | null; saleLocation: AddressData | null; items: OrderItemData[]; } interface DropOffRequestData { id: string; magnoliCustomerId: string; customerId: string; addressId: string; routeId: string | null; manifestId: string | null; routeOverride: boolean; status: string; orderDate: string; deliveryDate: string | null; metadata: Record | null; driverId: string | null; updatedAt: string; magnoliCustomer: MagnoliCustomerData; customer: CustomerData; address: AddressData; route: RouteData | null; } interface CustomerData { id: string; firstName: string; lastName: string; phone: string | null; email: string | null; } interface AddressData { id: string; name: string | null; address1: string | null; address2: string | null; city: string | null; state: string | null; zip: string | null; } interface RouteData { id: string; name: string; } interface MagnoliCustomerData { id: string; name: string; } interface PricelistData { id: string; name: string; displayCompanyName?: string | null; displayCompanyAddress1?: string | null; displayCompanyAddress2?: string | null; displayCompanyPhone?: string | null; displayCompanyEmail?: string | null; displayCompanyLogo?: string | null; displayCompanyWebsite?: string | null; displayCompanyCity?: string | null; displayCompanyState?: string | null; displayCompanyZip?: string | null; } interface CustomerWardrobeData { id: string; barcode: string | null; brand: string | null; notes: string | null; assemblyGrouping: string | null; photos: Record | null; colors?: ColorData[]; fabrics?: FabricData[]; patterns?: PatternData[]; } interface OrderItemData { id: string; orderId: string; itemId: string | null; itemTypeId: string | null; serviceId: string | null; customerWardrobeId: string | null; parentOrderItemId: string | null; orderBagId: string | null; orderBag?: OrderBagData | null; alterationOrderItems?: AlterationOrderItemData[]; customerWardrobe?: CustomerWardrobeData | null; options?: OptionData[]; price: number; displayPrice: number | null; quantity: number; notes: string | null; metadata: Record | null; status: string | null; createdAt: string; updatedAt: string; item: ItemData | null; itemType: ItemTypeData | null; service: ServiceData | null; } interface AlterationOrderItemData { id: string; price: number; notes: string | null; status: string | null; alteration: { id: string; alias: string; } | null; alterationAction: { id: string; name: string; } | null; alterationSpecification: { id: string; name: string; } | null; } interface OptionData { id: string; name: string; } interface ColorData { id: string; name: string; } interface FabricData { id: string; name: string; } interface PatternData { id: string; name: string; } interface ItemData { id: string; name: string; } interface OrderBagData { id: string; status: string | null; } interface ItemTypeData { id: string; name: string; } interface ServiceData { id: string; name: string; } interface CrmOrderResponse { status: "success" | "error"; message: string; data: CrmOrderRecord | null; } interface CrmOrdersResponse { status: "success" | "error"; message: string; data: { records: CrmOrderRecord[]; total: number; pickupRequestCount: number; orderCount: number; linkedCount: number; }; } interface CrmOrdersFilters { startDate?: string; endDate?: string; customerId?: string; customerName?: string; status?: string; orderType?: string; routeId?: string; } declare const orderFeedbackSchema: z.ZodObject<{ sentiment: z.ZodEnum<["p", "n"]>; issues: z.ZodDefault>>; otherText: z.ZodOptional; contact: z.ZodDefault>; notes: z.ZodOptional; name: z.ZodOptional; phone: z.ZodOptional; email: z.ZodOptional; submittedAt: z.ZodOptional; source: z.ZodDefault>; magnoliCustomerId: z.ZodOptional; }, "strip", z.ZodTypeAny, { issues: string[]; source: string; sentiment: "p" | "n"; contact: boolean; name?: string | undefined; email?: string | undefined; phone?: string | undefined; magnoliCustomerId?: string | undefined; notes?: string | undefined; otherText?: string | undefined; submittedAt?: string | undefined; }, { sentiment: "p" | "n"; issues?: string[] | undefined; name?: string | undefined; email?: string | undefined; phone?: string | undefined; source?: string | undefined; magnoliCustomerId?: string | undefined; notes?: string | undefined; otherText?: string | undefined; contact?: boolean | undefined; submittedAt?: string | undefined; }>; declare const orderFeedbackUpdateSchema: z.ZodObject<{ feedback: z.ZodObject<{ sentiment: z.ZodEnum<["p", "n"]>; issues: z.ZodDefault>>; otherText: z.ZodOptional; contact: z.ZodDefault>; notes: z.ZodOptional; name: z.ZodOptional; phone: z.ZodOptional; email: z.ZodOptional; submittedAt: z.ZodOptional; source: z.ZodDefault>; magnoliCustomerId: z.ZodOptional; }, "strip", z.ZodTypeAny, { issues: string[]; source: string; sentiment: "p" | "n"; contact: boolean; name?: string | undefined; email?: string | undefined; phone?: string | undefined; magnoliCustomerId?: string | undefined; notes?: string | undefined; otherText?: string | undefined; submittedAt?: string | undefined; }, { sentiment: "p" | "n"; issues?: string[] | undefined; name?: string | undefined; email?: string | undefined; phone?: string | undefined; source?: string | undefined; magnoliCustomerId?: string | undefined; notes?: string | undefined; otherText?: string | undefined; contact?: boolean | undefined; submittedAt?: string | undefined; }>; }, "strip", z.ZodTypeAny, { feedback: { issues: string[]; source: string; sentiment: "p" | "n"; contact: boolean; name?: string | undefined; email?: string | undefined; phone?: string | undefined; magnoliCustomerId?: string | undefined; notes?: string | undefined; otherText?: string | undefined; submittedAt?: string | undefined; }; }, { feedback: { sentiment: "p" | "n"; issues?: string[] | undefined; name?: string | undefined; email?: string | undefined; phone?: string | undefined; source?: string | undefined; magnoliCustomerId?: string | undefined; notes?: string | undefined; otherText?: string | undefined; contact?: boolean | undefined; submittedAt?: string | undefined; }; }>; type OrderFeedback = z.infer; type OrderFeedbackUpdateRequest = z.infer; declare const orderFeedbackInfoResponseSchema: z.ZodObject<{ data: z.ZodObject<{ displayCompanyLogo: z.ZodNullable; gmbUrl: z.ZodNullable; yelpUrl: z.ZodNullable; orderId: z.ZodNullable; customerName: z.ZodNullable; }, "strip", z.ZodTypeAny, { customerName: string | null; displayCompanyLogo: string | null; orderId: string | null; gmbUrl: string | null; yelpUrl: string | null; }, { customerName: string | null; displayCompanyLogo: string | null; orderId: string | null; gmbUrl: string | null; yelpUrl: string | null; }>; }, "strip", z.ZodTypeAny, { data: { customerName: string | null; displayCompanyLogo: string | null; orderId: string | null; gmbUrl: string | null; yelpUrl: string | null; }; }, { data: { customerName: string | null; displayCompanyLogo: string | null; orderId: string | null; gmbUrl: string | null; yelpUrl: string | null; }; }>; type OrderFeedbackInfoResponse = z.infer; type CrmFeedbackData = OrderFeedbackInfoResponse["data"]; type CrmFeedbackResponse = { status: "success"; message: string; data: CrmFeedbackData; } | { status: "error"; message: string; data: null; }; interface CrmFeedbackInfoResponse { success: boolean; data: CrmFeedbackData; } interface CrmFeedbackUpdateResponse { success: boolean; data: CrmFeedbackData; } declare const listCustomerCardsSchema: z.ZodObject<{ customerId: z.ZodString; }, "strip", z.ZodTypeAny, { customerId: string; }, { customerId: string; }>; declare const tokenizeCustomerCardSchema: z.ZodObject<{ paymentTokenId: z.ZodString; customerId: z.ZodString; magnoliCustomerId: z.ZodString; paymentMethodId: z.ZodOptional; brand: z.ZodOptional>; last4: z.ZodOptional>; expMonth: z.ZodOptional>; expYear: z.ZodOptional>; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { customerId: string; magnoliCustomerId: string; paymentTokenId: string; brand?: string | null | undefined; metadata?: Record | undefined; paymentMethodId?: string | undefined; last4?: string | null | undefined; expMonth?: number | null | undefined; expYear?: number | null | undefined; }, { customerId: string; magnoliCustomerId: string; paymentTokenId: string; brand?: string | null | undefined; metadata?: Record | undefined; paymentMethodId?: string | undefined; last4?: string | null | undefined; expMonth?: number | null | undefined; expYear?: number | null | undefined; }>; declare const customerCardIdParamsSchema: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; declare const customerIdBodySchema: z.ZodObject<{ customerId: z.ZodString; }, "strip", z.ZodTypeAny, { customerId: string; }, { customerId: string; }>; declare const createCustomerCardSchema: z.ZodObject<{ customerId: z.ZodString; magnoliCustomerId: z.ZodString; cardToken: z.ZodString; brand: z.ZodOptional>; last4: z.ZodOptional>; expMonth: z.ZodOptional>; expYear: z.ZodOptional>; isDefault: z.ZodOptional; metadata: z.ZodOptional>; }, "strip", z.ZodTypeAny, { customerId: string; magnoliCustomerId: string; cardToken: string; brand?: string | null | undefined; metadata?: Record | undefined; isDefault?: boolean | undefined; last4?: string | null | undefined; expMonth?: number | null | undefined; expYear?: number | null | undefined; }, { customerId: string; magnoliCustomerId: string; cardToken: string; brand?: string | null | undefined; metadata?: Record | undefined; isDefault?: boolean | undefined; last4?: string | null | undefined; expMonth?: number | null | undefined; expYear?: number | null | undefined; }>; declare const setDefaultCustomerCardSchema: z.ZodObject<{ params: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; body: z.ZodObject<{ customerId: z.ZodString; }, "strip", z.ZodTypeAny, { customerId: string; }, { customerId: string; }>; }, "strip", z.ZodTypeAny, { params: { id: string; }; body: { customerId: string; }; }, { params: { id: string; }; body: { customerId: string; }; }>; declare const removeCustomerCardSchema: z.ZodObject<{ params: z.ZodObject<{ id: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; }, { id: string; }>; query: z.ZodObject<{ customerId: z.ZodString; }, "strip", z.ZodTypeAny, { customerId: string; }, { customerId: string; }>; }, "strip", z.ZodTypeAny, { params: { id: string; }; query: { customerId: string; }; }, { params: { id: string; }; query: { customerId: string; }; }>; type CustomerCardStatus = "active" | "inactive"; type CustomerCard = { id: string; customerId: string; magnoliCustomerId: string; cardToken: string; brand?: string | null; last4?: string | null; expMonth?: number | null; expYear?: number | null; status: CustomerCardStatus; isDefault: boolean; metadata?: Record | null; createdAt?: Date | string; updatedAt?: Date | string; }; type TokenizeCustomerCardRequest = { paymentTokenId: string; customerId: string; magnoliCustomerId: string; paymentMethodId?: string; brand?: string | null; last4?: string | null; expMonth?: number | null; expYear?: number | null; metadata?: Record | null; isDefault?: boolean; }; type CreateCustomerCardInput = { customerId: string; magnoliCustomerId: string; cardToken: string; brand?: string | null; last4?: string | null; expMonth?: number | null; expYear?: number | null; isDefault?: boolean; metadata?: Record | null; }; /** * Schema for validating card-on-file settings * Used when creating/updating card-on-file payment methods */ declare const cardOnFileSettingsSchema: z.ZodObject<{ provider: z.ZodEnum<["card-on-file", "ipos"]>; iposAuthToken: z.ZodString; iposTpn: z.ZodString; preauthAmountCents: z.ZodNumber; }, "strip", z.ZodTypeAny, { provider: "card-on-file" | "ipos"; iposAuthToken: string; iposTpn: string; preauthAmountCents: number; }, { provider: "card-on-file" | "ipos"; iposAuthToken: string; iposTpn: string; preauthAmountCents: number; }>; /** * Schema for upserting a card-on-file payment method * This is a specialized schema for CRM card-on-file payment methods * It enforces that: * - type is always CREDIT_CARD * - settings must match CardOnFileSettings structure * - magnoliCustomerId is required */ declare const upsertCardOnFilePaymentMethodSchema: z.ZodObject<{ body: z.ZodObject<{ id: z.ZodOptional; name: z.ZodString; type: z.ZodEnum<["CREDIT_CARD"]>; settings: z.ZodObject<{ provider: z.ZodEnum<["card-on-file", "ipos"]>; iposAuthToken: z.ZodString; iposTpn: z.ZodString; preauthAmountCents: z.ZodNumber; }, "strip", z.ZodTypeAny, { provider: "card-on-file" | "ipos"; iposAuthToken: string; iposTpn: string; preauthAmountCents: number; }, { provider: "card-on-file" | "ipos"; iposAuthToken: string; iposTpn: string; preauthAmountCents: number; }>; active: z.ZodDefault>; magnoliCustomerId: z.ZodString; }, "strip", z.ZodTypeAny, { type: "CREDIT_CARD"; active: boolean; name: string; magnoliCustomerId: string; settings: { provider: "card-on-file" | "ipos"; iposAuthToken: string; iposTpn: string; preauthAmountCents: number; }; id?: string | undefined; }, { type: "CREDIT_CARD"; name: string; magnoliCustomerId: string; settings: { provider: "card-on-file" | "ipos"; iposAuthToken: string; iposTpn: string; preauthAmountCents: number; }; id?: string | undefined; active?: boolean | undefined; }>; }, "strip", z.ZodTypeAny, { body: { type: "CREDIT_CARD"; active: boolean; name: string; magnoliCustomerId: string; settings: { provider: "card-on-file" | "ipos"; iposAuthToken: string; iposTpn: string; preauthAmountCents: number; }; id?: string | undefined; }; }, { body: { type: "CREDIT_CARD"; name: string; magnoliCustomerId: string; settings: { provider: "card-on-file" | "ipos"; iposAuthToken: string; iposTpn: string; preauthAmountCents: number; }; id?: string | undefined; active?: boolean | undefined; }; }>; /** * Date utilities shared across projects. * - BusinessDate is a local-date string in the format YYYY-MM-DD. * - `dateToBusinessDate` safely accepts Date | string | null | undefined. * - Strings may be BusinessDate, ISO-like, or numeric timestamps (ms or s). * - `fromBusinessDateToDate` produces a Date at local noon to avoid TZ shifts. * - `formatDbDate` wraps `dateToBusinessDate` for DB-friendly conversion. */ /** * Convert input into a local BusinessDate (YYYY-MM-DD). * Overloads provide type-safe returns for nullable and string inputs. */ declare function dateToBusinessDate(date: Date): BusinessDate; declare function dateToBusinessDate(date: null | undefined): undefined; declare function dateToBusinessDate(date: string): BusinessDate | undefined; declare function dateToBusinessDate(input: Date | string | null | undefined): BusinessDate | undefined; /** * Parses a BusinessDate string into a Date at 12:00:00 local time. * Using noon avoids off-by-one day issues around DST and timezone offsets. */ declare function fromBusinessDateToDate(value: BusinessDate): Date; /** * Safely formats possible DB/Prisma values to BusinessDate. * - Accepts Date, ISO string, BusinessDate, or numeric timestamp string. * - Returns undefined if the value cannot be parsed. */ declare function formatDbDate(date: Date): BusinessDate; declare function formatDbDate(date: string): BusinessDate | undefined; declare function formatDbDate(date: null | undefined): undefined; declare function formatDbDate(date: Date | string | null | undefined): BusinessDate | undefined; /** * Formats a DB DATE value into a BusinessDate (YYYY-MM-DD) using UTC fields. * This avoids timezone drift when serializing DATE-only columns from the DB. */ declare function formatDbDateToBusinessDate(date: Date): BusinessDate; declare const deviceEnrollmentRequestSchema: z.ZodObject<{ deviceName: z.ZodString; appType: z.ZodEnum<["hq", "pos", "pro-station"]>; }, "strip", z.ZodTypeAny, { deviceName: string; appType: "hq" | "pos" | "pro-station"; }, { deviceName: string; appType: "hq" | "pos" | "pro-station"; }>; declare const deviceEnrollmentResponseSchema: z.ZodObject<{ deviceId: z.ZodString; deviceSecret: z.ZodString; }, "strip", z.ZodTypeAny, { deviceId: string; deviceSecret: string; }, { deviceId: string; deviceSecret: string; }>; declare const pinLoginRequestSchema: z.ZodObject<{ deviceId: z.ZodString; deviceSecret: z.ZodString; identifier: z.ZodString; identifierType: z.ZodEnum<["barcode", "phone"]>; pin: z.ZodString; }, "strip", z.ZodTypeAny, { pin: string; deviceId: string; deviceSecret: string; identifier: string; identifierType: "phone" | "barcode"; }, { pin: string; deviceId: string; deviceSecret: string; identifier: string; identifierType: "phone" | "barcode"; }>; type DeviceEnrollmentRequest = z.infer; type DeviceEnrollmentResponse = z.infer; type PinLoginRequest = z.infer; type StandardResponse = { message: string; status: "success" | "error"; errors?: string[]; data?: Record; }; type ApiResponse = { message: string; status: "success" | "error"; errors?: string[]; data?: T; }; interface WeekRange { startDate: string; endDate: string; timezone: string; } export { type Absence, type AbsenceCreateInput, type AbsenceGetByPeriodRequest, type AbsenceId, AbsenceStatusEnum, type AbsenceType, type AbsenceTypeCreateInput, type AbsenceTypeId, type AbsenceTypeUpdateInput, type AbsenceUpdateInput, type AddressData, AddressInputSchema, type AdjustmentRuleActionData, AdjustmentRuleActionEnum, type AdjustmentSummary, type AliasCombination, type AllowedCrmCustomerType, type Alteration, type AlterationActionInstructions, type AlterationActionInstructionsCreateInput, type AlterationActionInstructionsUpdateInput, type AlterationActions, type AlterationActionsCreateInput, type AlterationActionsUpdateInput, type AlterationClass, type AlterationClassCreateInput, type AlterationClassUpdateInput, type AlterationDimensions, type AlterationDimensionsCreateInput, type AlterationDimensionsUpdateInput, type AlterationItemsOutput, type AlterationOptions, type AlterationOptionsCreateInput, type AlterationOptionsUpdateInput, type AlterationOrderItemCreateInput, type AlterationOrderItemData, type AlterationOrderItemUpdateInput, type AlterationPricelist, type AlterationPricelistCreateInput, type AlterationPricelistIdInput, type AlterationPricelistItemBulkUpdateInput, type AlterationPricelistItemType, type AlterationPricelistItemsCombinationsOutput, type AlterationPricelistItemsOutput, type AlterationPricelistItemsUpdateInput, type AlterationPricelistUpdateInput, type AlterationRelations, type AlterationRelationsCreateInput, type AlterationRelationsUpdateInput, type AlterationSpecifications, type AlterationSpecificationsCreateInput, type AlterationSpecificationsUpdateInput, type Alterations, type AlterationsCreateInput, type AlterationsOrderItem, type AlterationsUpdateInput, type ApiPriceListRule, type ApiResponse, type AssemblyCategory, type AssemblyCategoryCreateInput, type AssemblyCategoryUpdateInput, AssemblyGroupIcons, AssemblyGroupingEnum, type AssemblyOrderDetails, type AssemblyOrderSummary, type AssemblyRack, type AssemblyRackCreateInput, type AssemblyRackSlot, type AssemblyRackSlotCreateInput, type AssemblyRackSlotLog, type AssemblyRackSlotLogCreateInput, type AssemblyRackSlotLogUpdateInput, AssemblyRackSlotStatusEnum, type AssemblyRackSlotUpdateInput, type AssemblyRackUpdateInput, type AttachDropOffToManifestInput, type AuthJwtPayload, type AuthRequestOTPRequest, type AuthSignOutRequest, type AuthTokensResponse, type AuthValidateOTPRequest, type AutoAssemblyOrderForMetal, type AvailableDropOffRequestsData, type AvailablePickupData, type AvailablePickupFiltersQuery, type AvailableRequestsData, type AvailableRequestsFiltersQuery, type B2BCustomerDetailsFormData, type B2BCustomersList, type BagData, type BagDetail, type BagInManifest, type BagReconciliationLabel, type BagsBySlotResponse, type BamOrder, type BarcodeSettings, type BoxWashnFoldItemsResponse, type BusinessDate, type BusinessLocation, type BusinessLocationCreateInput, BusinessLocationTypeEnum, type BusinessLocationUpdateInput, type BusinessSegment, type BusinessSegmentCreateInput, type BusinessSegmentId, type BusinessSegmentUpdateInput, type CSVImportCustomerWardrobeRow, type CalculateOrderPriceOutput, type CardOnFileSettings, type CashSettings, type Catalog, type CatalogGetInput, type ChangeDueDateActionData, type CleaningDepartment, type CleaningDepartmentCreateInput, type CleaningDepartmentUpdateInput, type ClockedShift, type ClockedShiftApproval, ClockedShiftChangeType, type ClockedShiftClockInRequest, type ClockedShiftCreateInput, type ClockedShiftGetByPeriodRequest, type ClockedShiftGetByPeriodResponse, type ClockedShiftGetEmployeeActiveShiftResponse, type ClockedShiftHistory, type ClockedShiftHistoryCreateInput, type ClockedShiftHistoryId, type ClockedShiftHistoryUpdateInput, type ClockedShiftId, ClockedShiftStatusEnum, type ClockedShiftUpdateInput, type ClockedShiftUpdateStatusInput, type ClockedShiftUpdateStatusOutput, type ColorData, CommentAuthorTypeEnum, type ConfirmPaymentInput, type ContactPreference, type ContactPreferenceCreateInput, type ContactPreferenceUpdateInput, type CreateCustomerCardInput, type CreatePickupRequestResponse, type CreateRouteRuleInput, type CreditCardSaleInput, type CrmCustomerDetailsFormData, type CrmCustomerLocation, type CrmCustomersList, type CrmFeedbackData, type CrmFeedbackInfoResponse, type CrmFeedbackResponse, type CrmFeedbackUpdateResponse, type CrmNotificationTemplate, type CrmNotificationTemplateChannel, type CrmNotificationTemplateCreateInput, type CrmNotificationTemplateId, type CrmNotificationTemplateListQuery, type CrmNotificationTemplateUpdateInput, type CrmOrderRecord, type CrmOrderResponse, type CrmOrdersFilters, type CrmOrdersResponse, type CrudRouteInput, CurrencyEnum, type CustomRackSelectorProps, type Customer, type CustomerCard, type CustomerCardStatus, type CustomerCreateInput, type CustomerData, type CustomerLocation, type CustomerLocationCreateInput, type CustomerLocationUpdateInput, type CustomerLog, type CustomerLogCreateInput, type CustomerLogUpdateInput, type CustomerMetadata, type CustomerNote, type CustomerNoteCreateInput, type CustomerNoteUpdateInput, type CustomerRecordMetadata, type CustomerSearchInput, type CustomerSearchOutput, CustomerSettingsOrderSource, CustomerTypeEnum, type CustomerUpdateInput, type CustomerUpdateInputCrm, type CustomerWardrobe, type CustomerWardrobeCreateInput, type CustomerWardrobeData, type CustomerWardrobeItem, type CustomerWardrobeLightweight, type CustomerWardrobeLightweightResponse, type CustomerWardrobeListItem, type CustomerWardrobeUpdateInput, type DefaultBreak, type DefaultBreakCreateInput, type DefaultBreakGetInput, type DefaultBreakUpdateInput, type DefaultBreaksBulkUpsertInput, type DefaultSchedule, type DefaultScheduleBulkCreateInput, type DefaultScheduleCreateInput, type DefaultScheduleId, type DefaultScheduleUpdateInput, type DejavooSettings, type DeleteTemplateOutput, type DeliverManifestRequest, type DeliveryAppSettings, type DeliveryAppSettingsCreateInput, type DeliveryAppSettingsId, type DeliveryAppSettingsUpdateInput, type DeliveryLocationSummary, type DeliveryManifest, type DeliveryManifestCreateInput, type DeliveryManifestPrintCustomer, type DeliveryManifestPrintDeliveryLocation, type DeliveryManifestPrintResponse, type DeliveryManifestResponse, type DeliveryManifestUpdateInput, type DeliveryManifestsQuery, type Department, type DepartmentCreateInput, type DepartmentId, type DepartmentUpdateInput, type DeviceEnrollmentRequest, type DeviceEnrollmentResponse, type DispatchRouteSummary, type DispatchRoutesResponse, type DisplayAddress, type DropOffRequest, type DropOffRequestData, type DropOffRequestItem, DropOffRequestStatus, type DropOffStatusFilter, type DropTicket, type Employee, type EmployeeCreateInput, type EmployeeGetByBadgeRequest, type EmployeeGetRequest, type EmployeeGetShiftsRequest, type EmployeeGetShiftsResponse, type EmployeeId, type EmployeeOvertimes, type EmployeeShift, EmployeeStatusEnum, type EmployeeUpdateInput, type EmploymentType, type EmploymentTypeCreateInput, type EmploymentTypeId, type EmploymentTypeUpdateInput, type EnrichedReconciliationPayload, type EnrichedReconciliationResponse, type Event, type EventCreateInput, type EventId, type EventUpdateInput, type ExecLog, ExecStatus, type Execution, type ExecutionCreateOutput, type ExternalDataGarment, type ExternalDataOrder, type ExternalDataOrderBag, type ExternalDataOrderCustomer, type ExternalDataOrderItem, type ExternalDataOrderItemOption, type ExternalDataOrderItemOptionOption, type ExternalDataOrderMatch, type ExternalDataOrdersResponse, type ExternalLotReport, type ExternalLotSegment, type ExtractOrderInput, type ExtractOrdersResponse, type FabricData, type FileUploadResult, type FinishingDepartment, type FinishingDepartmentCreateInput, type FinishingDepartmentUpdateInput, FoldingAssignBagBodySchema, FoldingAssignBagToSlotBodySchema, FoldingAssignBagToSlotParamsSchema, FoldingBoxSlotItemsBodySchema, FoldingClearBagBodySchema, FoldingEstimateQuerySchema, type FoldingScanResult, type FoldingScanResultError, type FoldingScanResultSuccess, FoldingSlotIdParamsSchema, GARMENT_PHOTO_TYPES, type GarmentBrand, type GarmentBrandCreateInput, type GarmentBrandUpdateInput, type GarmentColor, type GarmentColorCreateInput, type GarmentColorUpdateInput, type GarmentDetails, type GarmentDetailsConfig, type GarmentFabric, type GarmentFabricCreateInput, type GarmentFabricUpdateInput, type GarmentItem, type GarmentPattern, type GarmentPatternCreateInput, type GarmentPatternUpdateInput, type GarmentPhotoType, type GenerateReportResponse, type GeneratedBarcode, type GetAvailablePickupData, type GetAvailablePickupOutput, type GetAvailableRequestsFiltersInput, type GetClockedShiftByIdResponse, type GetCustomerWardrobeResponse, type GetDeliveryManifestPrintBody, type GetDeliveryManifestPrintParams, type GetDeliveryManifestPrintQuery, type GetDeliveryManifestPrintRequest, type GetItemTypeServicesInput, type GetLotManagerReportByRsIdRequest, type GetLotManagerReportByRsIdRequestParams, type GetLotManagerReportByRsIdResponse, type GetLotManagerReportInput, type GetLotManagerReportOutput, type GetLotManagerReportParams, type GetMatchingRoutesQuery, type GetMatchingRoutesResponse, type GetPickupByIdOutput, type GetPickupRequestsBacklogResponse, type GetPosLotReportRequest, type GetPosLotReportResponse, type GetRackByIdResponse, type GetRacksByShopIdResponse, type GetRouteRulesInput, type GetWeekScheduleResponse, type HangingInventoryBag, type HangingInventoryDetail, type HangingInventoryItem, type HangingInventoryReport, type IdSchema, type ImportResult, type InvoiceAutopayAttemptResult, type InvoiceAutopayMetadata, type InvoiceAutopayTaskPayload, InvoicePaymentQueueStatus, InvoiceStatus, type Item, type ItemCategory, type ItemCategoryCreateInput, type ItemCategoryUpdateInput, type ItemClass, type ItemClassCreateInput, type ItemClassUpdateInput, type ItemCreateInput, type ItemData, type ItemId, type ItemType, type ItemTypeBulkUpsertInput, type ItemTypeCreateInput, type ItemTypeData, type ItemTypeSchema, type ItemTypeService, type ItemTypeServiceCreateInput, type ItemTypeServiceGetInput, type ItemTypeServiceGetOutput, type ItemTypeServiceRelation, type ItemTypeServiceUpdateInput, type ItemTypeUpdateInput, type ItemTypeUpsertInput, type ItemUpdateInput, type LaborVsSalesChartPoint, type LaborVsSalesDay, type LaborVsSalesWeek, type Location, type LocationAggregationData, type LocationCreateInput, type LocationGetInput, type LocationHoursStats, type LocationHoursStatsCreateInput, type LocationHoursStatsGetComparisonInput, type LocationHoursStatsGetComparisonOutput, type LocationHoursStatsId, type LocationHoursStatsUpdateInput, type LocationId, type LocationMetadata, LocationOwnerEnum, type LocationUpdateInput, LogPhase, type LotManagerCustomer, type LotManagerOrder, type LotManagerOrderItem, type LotManagerReport, type MCLocation, type MCLocationCreateInput, type MCLocationUpdateInput, type MagnoliCustomer, type MagnoliCustomerCreateInput, type MagnoliCustomerData, type MagnoliCustomerGetByMagnoliUserEmail, type MagnoliCustomerGetInput, type MagnoliCustomerId, type MagnoliCustomerJoinCompanyInput, MagnoliCustomerPayrollPeriodEnum, type MagnoliCustomerSettings, type MagnoliCustomerSettingsCreateInput, type MagnoliCustomerSettingsGetInput, type MagnoliCustomerSettingsId, type MagnoliCustomerSettingsUpdateInput, type MagnoliCustomerUpdateInput, type MagnoliPosOrdersResponse, type MagnoliUser, type MagnoliUserCreateInput, type MagnoliUserGetInput, type MagnoliUserId, type MagnoliUserInput, MagnoliUserStatusEnum, type MagnoliUserUpdateInput, type MagnoliUserUpsertInput, type ManifestOrderData, ManifestStatus, type ManifestsForDelivery, type MapOrder, type MessageOutput, type MessageResponse, NotificationChannelEnum, type NotificationDispatchResult, type NotificationLog, type NotificationLogCreateInput, type NotificationLogId, type NotificationLogUpdateInput, NotificationRoleEnum, type NotificationSetting, type NotificationSettingCreateInput, type NotificationSettingGetByRoleTypeInput, type NotificationSettingId, type NotificationSettingUpdateInput, NotificationStatusEnum, type NotificationTemplate, type NotificationTemplateCreateInput, type NotificationTemplateGetQuery, type NotificationTemplateId, NotificationTemplateNameEnum, type NotificationTemplateUpdateInput, NotificationTypeEnum, type Nullable, type Occurrence, type Option, type OptionCreateInput, type OptionData, type OptionUpdateInput, type Optional, type Order, type OrderAdjustment, type OrderAdjustmentCreateInput, type OrderAdjustmentRule, type OrderAdjustmentRuleCreateInput, type OrderAdjustmentRuleOutput, type OrderAdjustmentRuleUpdateInput, type OrderAdjustmentRulesByPricelistOutput, type OrderAdjustmentRulesListOutput, type OrderAdjustmentUpdateInput, type OrderBag, type OrderBagCreateInput, type OrderBagData, OrderBagStatus, OrderBagType, type OrderBagUpdateInput, type OrderCreateInput, type OrderData, type OrderDataInManifest, type OrderDeliveryData, type OrderDueStatus, OrderDueStatusEnum, type OrderFeedback, type OrderFeedbackInfoResponse, type OrderFeedbackUpdateRequest, type OrderFilters, type OrderForDelivery, type OrderGetByIdOutput, type OrderIdsByStatus, type OrderIdsResponse, type OrderInManifest, type OrderInvoice, type OrderInvoiceAdjustment, type OrderInvoiceCreateInput, type OrderInvoiceCreationInfo, type OrderInvoiceMetadata, type OrderInvoiceTaskInfo, type OrderInvoiceUpdateInput, type OrderItem, type OrderItemCreateInput, type OrderItemData, type OrderItemNotes, OrderItemStatus, type OrderItemUpdateInput, type OrderIvoicesGetOutput, type OrderLog, OrderLogAction, type OrderLogCreateInput, type OrderLogInput, type OrderLogUpdateInput, type OrderNotificationContext, type OrderNotificationCustomer, type OrderNotificationsDispatchBody, type OrderPickupDropoffRequest, type OrderQueryParams, type OrderRawData, type OrderReceipt, OrderStatus, type OrderSummary, type OrderSummaryOutput, type OrderTotals, type OrderTriggerStatus, OrderType, type OrderUpdateInput, type OrderWithItems, type OrdersGetByIdRequest, type OrdersGetByIdResponse, type OrdersGetRequest, type PPOHItem, type Paginated, type PaginatedOutput, type PaginationParams, type PatternData, type Payment, type PaymentCreateInput, type PaymentId, type PaymentMethod, type PaymentMethodCreateInput, type PaymentMethodSettings, PaymentMethodSource, PaymentMethodType, type PaymentMethodUpdateInput, type PaymentNotificationContext, type PaymentNotificationsDispatchBody, PaymentStatusEnum, type PaymentTriggerStatus, type PaymentUpdateInput, type PayrollCalculateForEmployeeRequest, type PayrollCalculateRequest, type PayrollCalculateResponse, type PayrollDateRange, type PayrollEmployee, type PayrollEmployeeHours, type PayrollEmployeePayment, type PayrollEmployeePayrollDetails, type PayrollEmployeePayrollInfo, type PayrollFlagStatistic, type PayrollShiftDetails, type PayrollSnapshot, type PayrollSnapshotCreateInput, type PayrollSnapshotId, type PayrollSnapshotUpdateInput, type Permission, PermissionAreaEnum, type PermissionCreateInput, type PermissionGet, type PermissionId, type PermissionPosition, type PermissionPositionCreateInput, type PermissionPositionId, type PermissionPositionUpdateInput, PermissionSlugEnum, type PermissionUpdateInput, type PickupNotificationContext, type PickupNotificationsDispatchBody, type PickupRequest, type PickupRequestCreateInput, type PickupRequestData, type PickupRequestGetByIdInput, type PickupRequestItem, PickupRequestStatus, PickupRequestStatusEnum, type PickupRequestUpdateInput, type PickupStatusFilter, type PickupTriggerStatus, type PinLoginRequest, type PosLocation, type PosLocationCreateInput, type PosLocationUpdateInput, type PosLotReport, type PosMagnoliCustomer, type PosMagnoliCustomerCreateInput, type PosMagnoliCustomerUpdateInput, type Position, type PositionCreateInput, type PositionId, type PositionUpdateInput, type PreflightInput, type PriceListId, type PriceListItemCombinationsOutput, type PriceListItemCreateInput, type PriceListItemId, type PriceListItemType, type PriceListItems, type PriceListItemsBulkUpdateInput, type PriceListItemsCombinationsOutput, PriceListItemsLogAction, type PriceListItemsLogActionData, type PriceListItemsLogOutput, type PriceListItemsOutput, type PriceListItemsUpdateInput, type PriceListRule, type Pricelist, type PricelistCreateInput, type PricelistData, type PricelistId, type PricelistItemOutput, type PricelistParamsInput, type PricelistRules, type PricelistUpdateInput, type PrinterRetailReceipPayload, type ProStationExtractBagLogData, type ProStationLog, type ProStationLogActionType, type ProStationLogCreateInput, type ProStationLogGetEmployeeLogs, type ProStationLogGetGarmentDetails, type ProStationLogGetGarmentDetailsOutput, type ProStationLogGetReport, type ProStationLogGetReportOutput, type ProStationLogId, type ProStationLogOrderForDeliveryOutput, type ProStationLogScanBagByDriverInput, type ProStationLogScanBarcodeInput, type ProStationLogScanBarcodeOutput, type ProStationLogScanBarcodeOutputPayload, type ProStationLogScanGarment, type ProStationLogUpdateInput, type ProStationLogWithRelations, ProStationTypeEnum, ProStationsLogBusinessSubSegmentEnum, type QueueMsg, type RackCreateInput, type RackListItem, type RackOrderItemInput, type RackResponse, type RackSlotSelectorProps, RackType, type RackUpdateInput, type RackWithSlots, type RacksWithSlotsResponse, type ReassignManifestRouteRequest, type ReconciliationCreateInput, type ReconciliationDetail, type ReconciliationFilters, type ReconciliationListItem, type ReconciliationListResponse, type ReconciliationPayload, type ReconciliationResponse, type ReconciliationResponseBase, type ReconciliationScanInput, type ReconciliationSessionState, type ReconciliationSummary, type RecurringInvoiceApiOutput, type RecurringInvoiceQueueMsg, type RecurringInvoiceTaskCreateInput, type RecurringPickupQueueMsg, type RefreshToken, type RefreshTokenCreateInput, type RefreshTokenGetByUserIdInput, type RefreshTokenId, type RefreshTokenRefreshInput, type RefreshTokenUpdateInput, type RelatedDropOffRequest, type RelatedOrder, type RelatedPickupRequest, type RenderedTemplate, type ReorderManifestsBody, type RequestMetadata, RequestType, type ReturnedItemDetail, type RevenueStream, type RevenueStreamCreateInput, type RevenueStreamUpdateInput, type RevenueStreams, type RevenueStreamsCreateInput, type RevenueStreamsUpdateInput, type RosterGetDataInput, type RosterGetDataOutput, type RosterGetWeeklyTotalsInput, type RosterGetWeeklyTotalsOutput, type RosterLocationHoursStatsMap, type RosterScheduledShift, type RosterV2Response, type Route, type RouteData, type RouteDay, type RouteDaySlot, type RouteRequestStatus, type RouteRule, type RouteRuleMeta, type RouteRuleParamsInput, RouteRuleType, type RouteSummary, type RouteWeekSchedule, type RuleIdParams, type SalesByDay, type SalesByWeek, type ScanOutcome, type ScheduleRequest, type ScheduledShift, type ScheduledShiftCreateInput, type ScheduledShiftDeleteEmployeeShiftsForWeekRequest, type ScheduledShiftGetByPeriodRequest, type ScheduledShiftId, type ScheduledShiftScheduleDefaultsRequest, type ScheduledShiftScheduleDefaultsResponse, type ScheduledShiftUpdateInput, type ScheduledShiftWithTotalPaidDuration, type SegmentInClockedShiftChange, type SegmentInClockedShiftId, type SegmentsInClockedShift, type SegmentsInClockedShiftCreateInput, type SegmentsInClockedShiftGet, type SegmentsInClockedShiftUpdateInput, type SendEmailOptions, type SendEmailResult, type SendRawEmailOptions, type Service, type ServiceCreateInput, type ServiceData, type ServiceUpdateInput, type ShiftBreakEvent, type ShiftBreakEventCreateInput, type ShiftBreakEventId, type ShiftBreakEventStartInput, type ShiftBreakEventUpdateInput, type ShiftComment, type ShiftCommentCreateInput, type ShiftCommentId, type ShiftCommentUpdateInput, type ShiftFlag, type ShiftFlagCreateInput, type ShiftFlagGetInput, type ShiftFlagId, ShiftFlagTypeEnum, type ShiftFlagUpdateInput, ShiftSourceEnum, ShiftStatusEnum, type ShopRack, type ShopRackCreateInput, type ShopRackCreateInputWithType, type ShopRackSlot, type ShopRackSlotBulkCreateInput, type ShopRackSlotBulkCreateResponse, type ShopRackSlotCreateInput, type ShopRackSlotSkipped, type ShopRackSlotUpdateInput, type ShopRackUpdateInput, type ShopRackUpdateInputWithType, type ShopRackWithSlots, type Slot, type SlotByBarcodeResponse, type SlotSelectorProps, type StageDeliveryManifestRequest, type StandardResponse, type StationActionResult, type StatusFilterValue, type Subscription, type SubscriptionCreateInput, type SubscriptionUpdateInput, type SuccessLog, type TAppType, type TAssemblyGroupingCounts, type TAssemblyOrderItem, type TAssemblyRack, type TAssemblyRackOrderInfoCache, type TAssemblyRackOrderInfoEntry, type TAssemblyRackSlot, type TAssemblyRackSlotData, type TBagInfo, type TBagLabelPayload, type TEstimatedSlot, type THealthCheckResponse, type TRackingResponse, type Task, type TaskCancelScheduledOutput, type TaskCreateInput, type TaskCreateOutput, type TaskEnqueueNextExecutionInput, type TaskPauseOutput, type TaskReplayExecutionOutput, TaskState, TaskType, type TaskUpdateInput, type TasksGetQuery, type TemplatePreviewOutput, type TimeCategories, TimeSlot, type TokenizeCustomerCardRequest, type TransactionalEmailEnvelope, type TransactionalEmailPayload, TriggerType, type UnifiedWardrobeResponse, type UpdateDeliveryManifestRequest, type UpdateDropOffRequestInput, type UpdateOrderItemsStatusResponse, type UpdateOrderStatusRequest, type UpdateOrdersStatusResponse, type UpdatePickupRequestInput, type UpdateRouteRuleInput, type UploadFileMetadata, type UploadGarmentPhotoArgs, type UseShopRacksReturn, type ValetAggregatedResponse, type ValetManifestData, type ValetManifestItem, type ValetReportQuery, type ValetReportSummary, type WeekBoundaries, type WeekRange, type WeeklyFinanceReportResponse, type WeeklyTotals, type WrongStoreWarningPayload, absenceCreateInputSchema, absenceIdSchema, absenceTypeCreateInputSchema, absenceTypeIdSchema, absenceTypeUpdateInputSchema, absenceUpdateInputSchema, actionRulesSchema, alterationPricelistIdInputSchema, alterationPricelistItemBulkUpdateInputSchema, alterationPricelistItemsUpdateInputSchema, assemblyRackCreateInputSchema, assemblyRackIdSchema, assemblyRackSlotCreateInputSchema, assemblyRackSlotLogCreateInputSchema, assemblyRackSlotLogUpdateInputSchema, assemblyRackSlotUpdateInputSchema, assemblyRackUpdateInputSchema, attachDropOffToManifestSchema, authRequestOTPInputSchema, authSignOutInputSchema, authValidateOTPInputSchema, bagReconciliationLabelSchema, bagSlotItemsParamsSchema, bagSlotItemsRequestSchema, bagsBySlotResponseSchema, businessDateSchema, businessSegmentCreateInputSchema, businessSegmentIdSchema, businessSegmentUpdateInputSchema, cardOnFileSettingsSchema, clearSlotItemSchema, clockedShiftClockInSchema, clockedShiftCreateInputSchema, clockedShiftGetByPeriodSchema, clockedShiftHistoryCreateInputSchema, clockedShiftHistoryIdSchema, clockedShiftHistoryUpdateInputSchema, clockedShiftIdSchema, clockedShiftUpdateInputSchema, clockedShiftUpdateStatusInputSchema, confirmPaymentSchema, createCustomerCardSchema, createRouteRuleSchema, createTaskCreateInputSchema, crmNotificationTemplateChannelSchema, crmNotificationTemplateCreateInputSchema, crmNotificationTemplateIdSchema, crmNotificationTemplateListQuerySchema, crmNotificationTemplateTriggerStatusSchema, crmNotificationTemplateTriggerTypeSchema, crmNotificationTemplateUpdateInputSchema, crudRouteSchema, customerCardIdParamsSchema, customerIdBodySchema, customerLocationDetailsSchemaCrm, customerLocationSchemaCrm, customerMetadataSchema, customerRecordMetadataSchema, customerUpdateInputSchemaCrm, customerWardrobeCreateInputSchema, dateToBusinessDate, defaultBreakCreateInputSchema, defaultBreakGetInputSchema, defaultBreakUpdateInputSchema, defaultBreaksBulkUpsertSchema, defaultScheduleBulkCreateSchema, defaultScheduleCreateInputSchema, defaultScheduleIdSchema, defaultScheduleUpdateInputSchema, deliveryAppSettingsCreateInputSchema, deliveryAppSettingsIdSchema, deliveryAppSettingsUpdateInputSchema, deliveryManifestCreateInputSchema, deliveryManifestPrintCustomerSchema, deliveryManifestPrintDeliveryLocationSchema, deliveryManifestUpdateInputSchema, deliveryManifestsQuerySchema, departmentCreateInputSchema, departmentIdSchema, departmentUpdateInputSchema, deviceEnrollmentRequestSchema, deviceEnrollmentResponseSchema, displayAddressSchema, e164PhoneNumberSchema, employeeCreateInputSchema, employeeGetByBadgeSchema, employeeGetSchema, employeeGetShiftsSchema, employeeUpdateInputSchema, employmentTypeCreateInputSchema, employmentTypeIdSchema, employmentTypeUpdateInputSchema, eventCreateInputSchema, eventIdSchema, eventUpdateInputSchema, extractOrderInputSchema, formatDbDate, formatDbDateToBusinessDate, fromBusinessDateToDate, generatedBarcodeSchema, getAvailablePickupFiltersSchema, getAvailableRequestsFiltersSchema, getDeliveryManifestPrintBodySchema, getDeliveryManifestPrintQuerySchema, getDeliveryManifestPrintRequestBodySchema, getDeliveryManifestPrintSchema, getRackByIdResponseSchema, getRacksByShopIdResponseSchema, getRouteRulesSchema, hangingInventoryBagSchema, hangingInventoryDetailSchema, hangingInventoryItemSchema, hangingInventoryReportSchema, idEmployeeSchema, idSchema, itemTypeBulkUpsertInputSchema, itemTypeSchema, itemTypeServiceBulkUpdateInputSchema, itemTypeServiceGetInputSchema, itemTypeServiceUpdateInputSchema, itemTypeUpsertInputSchema, listCustomerCardsSchema, locationCreateInputSchema, locationGetInputSchema, locationHoursStatsCreateInputSchema, locationHoursStatsGetComparisonSchema, locationHoursStatsIdSchema, locationHoursStatsUpdateInputSchema, locationIdSchema, locationMetadataSchema, locationUpdateInputSchema, magnoliCustomerCreateInputSchema, magnoliCustomerGetByMagnoliUserEmailSchema, magnoliCustomerGetInputSchema, magnoliCustomerIdSchema, magnoliCustomerJoinCompanyInputSchema, magnoliCustomerSettingsCreateInputSchema, magnoliCustomerSettingsGetSchema, magnoliCustomerSettingsIdSchema, magnoliCustomerSettingsUpdateInputSchema, magnoliCustomerUpdateInputSchema, magnoliUserCreateInputSchema, magnoliUserGetInputSchema, magnoliUserIdSchema, magnoliUserInputSchema, magnoliUserUpdateInputSchema, magnoliUserUpsertInputSchema, notificationLogCreateInputSchema, notificationLogIdSchema, notificationLogUpdateInputSchema, notificationSettingCreateInputSchema, notificationSettingGetByRoleTypeInputSchema, notificationSettingIdSchema, notificationSettingUpdateInputSchema, notificationTemplateCreateInputSchema, notificationTemplateGetQuerySchema, notificationTemplateIdSchema, notificationTemplateNameSchema, notificationTemplateSourceEnumSchema, notificationTemplateUpdateInputSchema, notificationTypeEnumSchema, orderAdjustmentCreateInputSchema, orderAdjustmentRuleCreateSchema, orderAdjustmentRuleGetInputSchema, orderAdjustmentRuleOutputSchema, orderAdjustmentRuleUpdateSchema, orderAdjustmentRulesByPricelistOutputSchema, orderAdjustmentRulesListOutputSchema, orderBagCreateInputSchema, orderBagIdSchema, orderBagUpdateInputSchema, orderCreateInputSchema, orderFeedbackInfoResponseSchema, orderFeedbackSchema, orderFeedbackUpdateSchema, orderIdSchema, orderInvoiceCreateInputSchema, orderInvoiceIdSchema, orderInvoiceUpdateInputSchema, orderItemCreateInputSchema, orderItemUpdateInputSchema, orderQueryParamsSchema, orderTriggerStatusSchema, orderUpdateInputSchema, ordersGetByIdSchema, ordersGetSchema, paginationSchema, payOrderSchema, paymentCreateInputSchema, paymentIdSchema, paymentMethodCreateInputSchema, paymentMethodSourceSchema, paymentMethodUpdateInputSchema, paymentTriggerStatusSchema, paymentUpdateInputSchema, payrollCalculateForEmployeeSchema, payrollCalculateSchema, payrollDateRangeSchema, payrollSnapshotCreateInputSchema, payrollSnapshotIdSchema, payrollSnapshotUpdateInputSchema, permissionAreaEnumSchema, permissionCreateInputSchema, permissionGetSchema, permissionIdSchema, permissionPositionCreateInputSchema, permissionPositionIdSchema, permissionPositionUpdateInputSchema, permissionSlugEnumSchema, permissionUpdateInputSchema, phoneLikeOptionalNullableSchema, phoneLikeSchema, pickupRequestCreateInputSchema, pickupRequestGetByIdSchema, pickupRequestStatusSchema, pickupRequestUpdateInputSchema, pickupRequestUpdateSchema, pickupTriggerStatusSchema, pinLoginRequestSchema, posLocationCreateInputSchema, posLocationUpdateInputSchema, positionCreateInputSchema, positionIdSchema, positionUpdateInputSchema, priceListCreateInputSchema, priceListIdInputSchema, priceListItemBulkUpdateInputSchema, priceListItemInputSchema, proStationLogCreateInputSchema, proStationLogGetEmployeeLogsSchema, proStationLogGetGarmentDetailsSchema, proStationLogGetReportSchema, proStationLogIdSchema, proStationLogScanBagByDriverInputSchema, proStationLogScanBarcodeInputSchema, proStationLogScanGarmentSchema, proStationLogUpdateInputSchema, rackListItemSchema, rackOrderItemInputSchema, rackWithSlotsSchema, racksWithSlotsResponseSchema, reassignManifestRouteSchema, reconciliationCreateSchema, reconciliationFiltersSchema, reconciliationParamsSchema, reconciliationPayloadSchema, reconciliationScanSchema, reconciliationSessionStateSchema, reconciliationSummarySchema, recurringInvoiceTaskCreateInputSchema, refreshTokenCreateInputSchema, refreshTokenDeleteByUserIdSchema, refreshTokenGetByUserIdSchema, refreshTokenIdSchema, refreshTokenRefreshSchema, refreshTokenUpdateInputSchema, removeCustomerCardSchema, reorderManifestsBodySchema, revenueStreamsCreateInputSchema, revenueStreamsUpdateInputSchema, rosterGetDataSchema, rosterGetWeeklyTotalsSchema, routeRuleParamsSchema, routeRuleTypeSchema, ruleIdParamsSchema, scheduledShiftCreateInputSchema, scheduledShiftDeleteEmployeeShiftsForWeekSchema, scheduledShiftGetByPeriodSchema, scheduledShiftScheduleDefaultsSchema, scheduledShiftUpdateInputSchema, segmentInClockedShiftChangeSchema, segmentsInClockedShiftCreateInputSchema, segmentsInClockedShiftGetSchema, segmentsInClockedShiftIdSchema, segmentsInClockedShiftUpdateInputSchema, setDefaultCustomerCardSchema, sheduledShiftIdSchema, shiftBreakEventCreateInputSchema, shiftBreakEventIdSchema, shiftBreakEventStartSchema, shiftBreakEventUpdateInputSchema, shiftCommentCreateInputSchema, shiftCommentIdSchema, shiftCommentUpdateInputSchema, shiftFlagBulkCreateSchema, shiftFlagCreateInputSchema, shiftFlagGetInputSchema, shiftFlagIdSchema, shiftFlagUpdateInputSchema, shopRackCreateInputWithTypeSchema, shopRackSlotCreateInputSchema, shopRackSlotUpdateInputSchema, shopRackUpdateInputWithTypeSchema, slotSchema, stageDeliveryManifestRequestSchema, taskCreateInputSchema, taskGetByIdSchema, taskGetSchema, taskUpdateInputSchema, timeSlotSchema, tokenizeCustomerCardSchema, transactionalEmailEnvelopeSchema, transactionalEmailPayloadSchema, updateDeliveryManifestBodySchema, updateDeliveryManifestRequestSchema, updateDropOffRequestSchema, updatePickupRequestSchema, updateRouteRuleSchema, upsertCardOnFilePaymentMethodSchema, valetReportQuerySchema };