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