39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
import type { PoolConnection } from 'better-sqlite-pool';
|
|
import { type DateString, type TimeString } from '@cityssm/utils-datetime';
|
|
export interface AddContractForm {
|
|
[fieldValue_contractTypeFieldId: `fieldValue_${string}`]: unknown;
|
|
birthDateString?: '' | DateString;
|
|
birthPlace?: string;
|
|
burialSiteId: number | string;
|
|
committalTypeId?: number | string;
|
|
contractEndDateString: '' | DateString;
|
|
contractStartDateString: '' | DateString;
|
|
contractTypeFieldIds?: string;
|
|
contractTypeId: number | string;
|
|
deathAge?: string;
|
|
deathAgePeriod?: string;
|
|
deathDateString?: '' | DateString;
|
|
deathPlace?: string;
|
|
deceasedAddress1?: string;
|
|
deceasedAddress2?: string;
|
|
deceasedCity?: string;
|
|
deceasedName?: string;
|
|
deceasedPostalCode?: string;
|
|
deceasedProvince?: string;
|
|
funeralDateString?: '' | DateString;
|
|
funeralDirectorName?: string;
|
|
funeralHomeId?: number | string;
|
|
funeralTimeString?: '' | TimeString;
|
|
intermentContainerTypeId?: number | string;
|
|
purchaserAddress1?: string;
|
|
purchaserAddress2?: string;
|
|
purchaserCity?: string;
|
|
purchaserEmail?: string;
|
|
purchaserName?: string;
|
|
purchaserPhoneNumber?: string;
|
|
purchaserPostalCode?: string;
|
|
purchaserProvince?: string;
|
|
purchaserRelationship?: string;
|
|
}
|
|
export default function addContract(addForm: AddContractForm, user: User, connectedDatabase?: PoolConnection): Promise<number>;
|