26 lines
1.0 KiB
TypeScript
26 lines
1.0 KiB
TypeScript
export interface UpdateBurialSiteForm {
|
|
burialSiteId: string | number;
|
|
burialSiteNameSegment1?: string;
|
|
burialSiteNameSegment2?: string;
|
|
burialSiteNameSegment3?: string;
|
|
burialSiteNameSegment4?: string;
|
|
burialSiteNameSegment5?: string;
|
|
burialSiteTypeId: string | number;
|
|
burialSiteStatusId: string | number;
|
|
cemeteryId: string | number;
|
|
cemeterySvgId: string;
|
|
burialSiteLatitude: string;
|
|
burialSiteLongitude: string;
|
|
burialSiteTypeFieldIds?: string;
|
|
[fieldValue_burialSiteTypeFieldId: string]: unknown;
|
|
}
|
|
/**
|
|
* Updates a burial site.
|
|
* @param updateForm - The burial site's updated information
|
|
* @param user - The user making the request
|
|
* @returns True if the burial site was updated.
|
|
* @throws If an active burial site with the same name already exists.
|
|
*/
|
|
export default function updateBurialSite(updateForm: UpdateBurialSiteForm, user: User): Promise<boolean>;
|
|
export declare function updateBurialSiteStatus(burialSiteId: number | string, burialSiteStatusId: number | string, user: User): Promise<boolean>;
|