linting
parent
d46a94db07
commit
dcbaad753b
|
|
@ -1,8 +1,8 @@
|
|||
import { type DateString, type TimeString } from '@cityssm/utils-datetime';
|
||||
export interface AddContractCommentForm {
|
||||
contractId: number | string;
|
||||
comment: string;
|
||||
commentDateString?: DateString;
|
||||
commentTimeString?: TimeString;
|
||||
contractId: number | string;
|
||||
}
|
||||
export default function addContractComment(commentForm: AddContractCommentForm, user: User): Promise<number>;
|
||||
|
|
|
|||
|
|
@ -10,10 +10,11 @@ import {
|
|||
import { acquireConnection } from './pool.js'
|
||||
|
||||
export interface AddContractCommentForm {
|
||||
contractId: number | string
|
||||
|
||||
comment: string
|
||||
commentDateString?: DateString
|
||||
commentTimeString?: TimeString
|
||||
contractId: number | string
|
||||
}
|
||||
|
||||
export default async function addContractComment(
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
import { type DateString } from '@cityssm/utils-datetime';
|
||||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import { type DateString } from '@cityssm/utils-datetime';
|
||||
export interface AddForm {
|
||||
contractId: string | number;
|
||||
contractId: number | string;
|
||||
deceasedName: string;
|
||||
deceasedAddress1: string;
|
||||
deceasedAddress2: string;
|
||||
deceasedCity: string;
|
||||
deceasedProvince: string;
|
||||
deceasedPostalCode: string;
|
||||
birthDateString: DateString | '';
|
||||
deceasedProvince: string;
|
||||
birthDateString: '' | DateString;
|
||||
birthPlace: string;
|
||||
deathDateString: DateString | '';
|
||||
deathDateString: '' | DateString;
|
||||
deathPlace: string;
|
||||
deathAge: string | number;
|
||||
deathAge: number | string;
|
||||
deathAgePeriod: string;
|
||||
intermentContainerTypeId: string | number;
|
||||
intermentContainerTypeId: number | string;
|
||||
}
|
||||
export default function addContractInterment(contractForm: AddForm, user: User, connectedDatabase?: PoolConnection): Promise<number>;
|
||||
|
|
|
|||
|
|
@ -1,23 +1,29 @@
|
|||
import { type DateString, dateStringToInteger } from '@cityssm/utils-datetime'
|
||||
import type { PoolConnection } from 'better-sqlite-pool'
|
||||
|
||||
import { type DateString, dateStringToInteger } from '@cityssm/utils-datetime'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
export interface AddForm {
|
||||
contractId: string | number
|
||||
contractId: number | string
|
||||
|
||||
deceasedName: string
|
||||
|
||||
deceasedAddress1: string
|
||||
deceasedAddress2: string
|
||||
deceasedCity: string
|
||||
deceasedProvince: string
|
||||
deceasedPostalCode: string
|
||||
birthDateString: DateString | ''
|
||||
deceasedProvince: string
|
||||
|
||||
birthDateString: '' | DateString
|
||||
birthPlace: string
|
||||
deathDateString: DateString | ''
|
||||
deathDateString: '' | DateString
|
||||
deathPlace: string
|
||||
deathAge: string | number
|
||||
|
||||
deathAge: number | string
|
||||
deathAgePeriod: string
|
||||
intermentContainerTypeId: string | number
|
||||
|
||||
intermentContainerTypeId: number | string
|
||||
}
|
||||
|
||||
export default async function addContractInterment(
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
export interface AddTransactionForm {
|
||||
contractId: string | number;
|
||||
contractId: number | string;
|
||||
transactionDateString?: string;
|
||||
transactionTimeString?: string;
|
||||
transactionAmount: string | number;
|
||||
externalReceiptNumber: string;
|
||||
transactionAmount: number | string;
|
||||
transactionNote: string;
|
||||
}
|
||||
export default function addContractTransaction(contractTransactionForm: AddTransactionForm, user: User): Promise<number>;
|
||||
|
|
|
|||
|
|
@ -8,11 +8,13 @@ import {
|
|||
import { acquireConnection } from './pool.js'
|
||||
|
||||
export interface AddTransactionForm {
|
||||
contractId: string | number
|
||||
contractId: number | string
|
||||
|
||||
transactionDateString?: string
|
||||
transactionTimeString?: string
|
||||
transactionAmount: string | number
|
||||
|
||||
externalReceiptNumber: string
|
||||
transactionAmount: number | string
|
||||
transactionNote: string
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue