rename types files
parent
3da2aad21b
commit
a167ef4a16
|
|
@ -11,7 +11,7 @@ import exitHook from 'exit-hook'
|
|||
import { initializeDatabase } from '../database/initializeDatabase.js'
|
||||
import { DEBUG_NAMESPACE } from '../debug.config.js'
|
||||
import { getConfigProperty } from '../helpers/config.helpers.js'
|
||||
import type { WorkerMessage } from '../types/applicationTypes.js'
|
||||
import type { WorkerMessage } from '../types/application.types.js'
|
||||
import version from '../version.js'
|
||||
|
||||
const debug = Debug(`${DEBUG_NAMESPACE}:www:${process.pid}`)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { getConfigProperty } from '../../../helpers/config.helpers.js'
|
||||
import { testAdmin } from '../../../test/_globals.js'
|
||||
import type { Fee } from '../../../types/recordTypes.js'
|
||||
import type { Fee } from '../../../types/record.types.js'
|
||||
import { ajaxDelayMillis, login, logout } from '../../support/index.js'
|
||||
|
||||
describe('Admin - Fee Management', () => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { getConfigProperty } from '../../../helpers/config.helpers.js'
|
||||
import { testUpdate } from '../../../test/_globals.js'
|
||||
import type { Cemetery } from '../../../types/recordTypes.js'
|
||||
import type { Cemetery } from '../../../types/record.types.js'
|
||||
import { login, logout } from '../../support/index.js'
|
||||
|
||||
describe('Update - Cemeteries', () => {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { Config } from '../types/configTypes.js';
|
||||
import type { Config } from '../types/config.types.js';
|
||||
export declare const config: Config;
|
||||
export default config;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Config } from '../types/configTypes.js'
|
||||
import type { Config } from '../types/config.types.js'
|
||||
|
||||
export const config: Config = {
|
||||
aliases: {},
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
export declare const config: import("../types/configTypes.js").Config;
|
||||
export declare const config: import("../types/config.types.js").Config;
|
||||
export default config;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { Config } from '../types/configTypes.js';
|
||||
import type { Config } from '../types/config.types.js';
|
||||
export declare const config: Config;
|
||||
export default config;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Config } from '../types/configTypes.js'
|
||||
import type { Config } from '../types/config.types.js'
|
||||
|
||||
import { config as cemeteryConfig } from './config.baseOntario.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { config as MSSQLConfig } from 'mssql';
|
||||
import type { ConfigActiveDirectory, ConfigBurialSiteNameSegments, ConfigNtfyStartup, DynamicsGPLookup } from '../types/configTypes.js';
|
||||
import type { ConfigActiveDirectory, ConfigBurialSiteNameSegments, ConfigNtfyStartup, DynamicsGPLookup } from '../types/config.types.js';
|
||||
export declare const configDefaultValues: {
|
||||
activeDirectory: ConfigActiveDirectory;
|
||||
'application.applicationName': string;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import type {
|
|||
ConfigBurialSiteNameSegments,
|
||||
ConfigNtfyStartup,
|
||||
DynamicsGPLookup
|
||||
} from '../types/configTypes.js'
|
||||
} from '../types/config.types.js'
|
||||
|
||||
export const configDefaultValues = {
|
||||
activeDirectory: undefined as unknown as ConfigActiveDirectory,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { Config } from '../types/configTypes.js';
|
||||
import type { Config } from '../types/config.types.js';
|
||||
export declare const config: Config;
|
||||
export default config;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Config } from '../types/configTypes.js'
|
||||
import type { Config } from '../types/config.types.js'
|
||||
|
||||
import { config as cemeteryConfig } from './config.baseSsm.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import {
|
|||
calculateFeeAmount,
|
||||
calculateTaxAmount
|
||||
} from '../helpers/functions.fee.js'
|
||||
import type { Contract, Fee } from '../types/recordTypes.js'
|
||||
import type { Contract, Fee } from '../types/record.types.js'
|
||||
|
||||
import getContract from './getContract.js'
|
||||
import getFee from './getFee.js'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { dateToString } from '@cityssm/utils-datetime'
|
||||
|
||||
import type { Contract } from '../types/recordTypes.js'
|
||||
import type { Contract } from '../types/record.types.js'
|
||||
|
||||
import addContract from './addContract.js'
|
||||
import addContractComment from './addContractComment.js'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { BurialSite } from '../types/recordTypes.js';
|
||||
import type { BurialSite } from '../types/record.types.js';
|
||||
export default function getBurialSite(burialSiteId: number | string): Promise<BurialSite | undefined>;
|
||||
export declare function getBurialSiteByBurialSiteName(burialSiteName: string): Promise<BurialSite | undefined>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { BurialSite } from '../types/recordTypes.js'
|
||||
import type { BurialSite } from '../types/record.types.js'
|
||||
|
||||
import getBurialSiteComments from './getBurialSiteComments.js'
|
||||
import getBurialSiteFields from './getBurialSiteFields.js'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { BurialSiteComment } from '../types/recordTypes.js';
|
||||
import type { BurialSiteComment } from '../types/record.types.js';
|
||||
export default function getBurialSiteComments(burialSiteId: number | string, connectedDatabase?: PoolConnection): Promise<BurialSiteComment[]>;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
timeIntegerToString
|
||||
} from '@cityssm/utils-datetime'
|
||||
|
||||
import type { BurialSiteComment } from '../types/recordTypes.js'
|
||||
import type { BurialSiteComment } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { BurialSiteField } from '../types/recordTypes.js';
|
||||
import type { BurialSiteField } from '../types/record.types.js';
|
||||
export default function getBurialSiteFields(burialSiteId: number | string, connectedDatabase?: PoolConnection): Promise<BurialSiteField[]>;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool'
|
||||
|
||||
import type { BurialSiteField } from '../types/recordTypes.js'
|
||||
import type { BurialSiteField } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { BurialSiteStatus } from '../types/recordTypes.js';
|
||||
import type { BurialSiteStatus } from '../types/record.types.js';
|
||||
interface GetFilters {
|
||||
cemeteryId?: number | string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { BurialSiteStatus } from '../types/recordTypes.js'
|
||||
import type { BurialSiteStatus } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
import type { BurialSiteStatus } from '../types/recordTypes.js';
|
||||
import type { BurialSiteStatus } from '../types/record.types.js';
|
||||
export default function getBurialSiteStatuses(): Promise<BurialSiteStatus[]>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { BurialSiteStatus } from '../types/recordTypes.js'
|
||||
import type { BurialSiteStatus } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
import { updateRecordOrderNumber } from './updateRecordOrderNumber.js'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { BurialSiteTypeField } from '../types/recordTypes.js';
|
||||
import type { BurialSiteTypeField } from '../types/record.types.js';
|
||||
export default function getBurialSiteTypeFields(burialSiteTypeId: number, connectedDatabase?: PoolConnection): Promise<BurialSiteTypeField[]>;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool'
|
||||
|
||||
import type { BurialSiteTypeField } from '../types/recordTypes.js'
|
||||
import type { BurialSiteTypeField } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
import { updateRecordOrderNumber } from './updateRecordOrderNumber.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { BurialSiteType } from '../types/recordTypes.js';
|
||||
import type { BurialSiteType } from '../types/record.types.js';
|
||||
interface BurialSiteTypeSummary extends BurialSiteType {
|
||||
lotCount: number;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { BurialSiteType } from '../types/recordTypes.js'
|
||||
import type { BurialSiteType } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
import type { BurialSiteType } from '../types/recordTypes.js';
|
||||
import type { BurialSiteType } from '../types/record.types.js';
|
||||
export default function getBurialSiteTypes(): Promise<BurialSiteType[]>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { BurialSiteType } from '../types/recordTypes.js'
|
||||
import type { BurialSiteType } from '../types/record.types.js'
|
||||
|
||||
import getBurialSiteTypeFields from './getBurialSiteTypeFields.js'
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { BurialSite } from '../types/recordTypes.js';
|
||||
import type { BurialSite } from '../types/record.types.js';
|
||||
export interface GetBurialSitesFilters {
|
||||
burialSiteNameSearchType?: '' | 'endsWith' | 'startsWith';
|
||||
burialSiteName?: string;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import type { PoolConnection } from 'better-sqlite-pool'
|
|||
import { dateToInteger } from '@cityssm/utils-datetime'
|
||||
|
||||
import { getBurialSiteNameWhereClause } from '../helpers/functions.sqlFilters.js'
|
||||
import type { BurialSite } from '../types/recordTypes.js'
|
||||
import type { BurialSite } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Cemetery } from '../types/recordTypes.js';
|
||||
import type { Cemetery } from '../types/record.types.js';
|
||||
export default function getCemeteries(filters?: {
|
||||
parentCemeteryId?: number | string;
|
||||
}): Promise<Cemetery[]>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Cemetery } from '../types/recordTypes.js'
|
||||
import type { Cemetery } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { Cemetery } from '../types/recordTypes.js';
|
||||
import type { Cemetery } from '../types/record.types.js';
|
||||
export default function getCemetery(cemeteryId: number | string, connectedDatabase?: PoolConnection): Promise<Cemetery | undefined>;
|
||||
export declare function getCemeteryByKey(cemeteryKey: string, connectedDatabase?: PoolConnection): Promise<Cemetery | undefined>;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool'
|
||||
|
||||
import type { Cemetery } from '../types/recordTypes.js'
|
||||
import type { Cemetery } from '../types/record.types.js'
|
||||
|
||||
import getCemeteries from './getCemeteries.js'
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
import type { CommittalType } from '../types/recordTypes.js';
|
||||
import type { CommittalType } from '../types/record.types.js';
|
||||
export default function getCommittalTypes(): Promise<CommittalType[]>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { CommittalType } from '../types/recordTypes.js'
|
||||
import type { CommittalType } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
import { updateRecordOrderNumber } from './updateRecordOrderNumber.js'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { Contract } from '../types/recordTypes.js';
|
||||
import type { Contract } from '../types/record.types.js';
|
||||
export default function getContract(contractId: number | string, connectedDatabase?: PoolConnection): Promise<Contract | undefined>;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import type { PoolConnection } from 'better-sqlite-pool'
|
|||
|
||||
import { dateIntegerToString, timeIntegerToPeriodString, timeIntegerToString } from '@cityssm/utils-datetime'
|
||||
|
||||
import type { Contract } from '../types/recordTypes.js'
|
||||
import type { Contract } from '../types/record.types.js'
|
||||
|
||||
import getContractComments from './getContractComments.js'
|
||||
import getContractFees from './getContractFees.js'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { ContractComment } from '../types/recordTypes.js';
|
||||
import type { ContractComment } from '../types/record.types.js';
|
||||
export default function getContractComments(contractId: number | string, connectedDatabase?: PoolConnection): Promise<ContractComment[]>;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
timeIntegerToString
|
||||
} from '@cityssm/utils-datetime'
|
||||
|
||||
import type { ContractComment } from '../types/recordTypes.js'
|
||||
import type { ContractComment } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { ContractFee } from '../types/recordTypes.js';
|
||||
import type { ContractFee } from '../types/record.types.js';
|
||||
export default function getContractFees(contractId: number | string, connectedDatabase?: PoolConnection): Promise<ContractFee[]>;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool'
|
||||
|
||||
import type { ContractFee } from '../types/recordTypes.js'
|
||||
import type { ContractFee } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { ContractField } from '../types/recordTypes.js';
|
||||
import type { ContractField } from '../types/record.types.js';
|
||||
export default function getContractField(contractId: number | string, connectedDatabase?: PoolConnection): Promise<ContractField[]>;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool'
|
||||
|
||||
import type { ContractField } from '../types/recordTypes.js'
|
||||
import type { ContractField } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { ContractInterment } from '../types/recordTypes.js';
|
||||
import type { ContractInterment } from '../types/record.types.js';
|
||||
export default function getContractInterments(contractId: number | string, connectedDatabase?: PoolConnection): Promise<ContractInterment[]>;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import {
|
|||
dateIntegerToString
|
||||
} from '@cityssm/utils-datetime'
|
||||
|
||||
import type { ContractInterment } from '../types/recordTypes.js'
|
||||
import type { ContractInterment } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { ContractTransaction } from '../types/recordTypes.js';
|
||||
import type { ContractTransaction } from '../types/record.types.js';
|
||||
export default function GetContractTransactions(contractId: number | string, options: {
|
||||
includeIntegrations: boolean;
|
||||
}, connectedDatabase?: PoolConnection): Promise<ContractTransaction[]>;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import {
|
|||
|
||||
import { getConfigProperty } from '../helpers/config.helpers.js'
|
||||
import { getDynamicsGPDocument } from '../helpers/functions.dynamicsGP.js'
|
||||
import type { ContractTransaction } from '../types/recordTypes.js'
|
||||
import type { ContractTransaction } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { ContractTypeField } from '../types/recordTypes.js';
|
||||
import type { ContractTypeField } from '../types/record.types.js';
|
||||
export default function getContractTypeFields(contractTypeId?: number, connectedDatabase?: PoolConnection): Promise<ContractTypeField[]>;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool'
|
||||
|
||||
import type { ContractTypeField } from '../types/recordTypes.js'
|
||||
import type { ContractTypeField } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
import { updateRecordOrderNumber } from './updateRecordOrderNumber.js'
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
import type { ContractType } from '../types/recordTypes.js';
|
||||
import type { ContractType } from '../types/record.types.js';
|
||||
export default function getContractTypes(): Promise<ContractType[]>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { ContractType } from '../types/recordTypes.js'
|
||||
import type { ContractType } from '../types/record.types.js'
|
||||
|
||||
import getContractTypeFields from './getContractTypeFields.js'
|
||||
import getContractTypePrints from './getContractTypePrints.js'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import { type DateString } from '@cityssm/utils-datetime';
|
||||
import type { Contract } from '../types/recordTypes.js';
|
||||
import type { Contract } from '../types/record.types.js';
|
||||
export interface GetContractsFilters {
|
||||
burialSiteId?: number | string;
|
||||
contractEffectiveDateString?: string;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import {
|
|||
getContractTimeWhereClause,
|
||||
getDeceasedNameWhereClause
|
||||
} from '../helpers/functions.sqlFilters.js'
|
||||
import type { Contract } from '../types/recordTypes.js'
|
||||
import type { Contract } from '../types/record.types.js'
|
||||
|
||||
import getContractFees from './getContractFees.js'
|
||||
import getContractInterments from './getContractInterments.js'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { Fee } from '../types/recordTypes.js';
|
||||
import type { Fee } from '../types/record.types.js';
|
||||
export default function getFee(feeId: number | string, connectedDatabase?: PoolConnection): Promise<Fee | undefined>;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool'
|
||||
|
||||
import type { Fee } from '../types/recordTypes.js'
|
||||
import type { Fee } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { FeeCategory } from '../types/recordTypes.js';
|
||||
import type { FeeCategory } from '../types/record.types.js';
|
||||
interface GetFeeCategoriesFilters {
|
||||
burialSiteTypeId?: number | string;
|
||||
contractTypeId?: number | string;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool'
|
||||
|
||||
import type { FeeCategory } from '../types/recordTypes.js'
|
||||
import type { FeeCategory } from '../types/record.types.js'
|
||||
|
||||
import getFees from './getFees.js'
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { Fee } from '../types/recordTypes.js';
|
||||
import type { Fee } from '../types/record.types.js';
|
||||
interface GetFeesFilters {
|
||||
burialSiteTypeId?: number | string;
|
||||
contractTypeId?: number | string;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool'
|
||||
|
||||
import type { Fee } from '../types/recordTypes.js'
|
||||
import type { Fee } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
import { updateRecordOrderNumber } from './updateRecordOrderNumber.js'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { FuneralHome } from '../types/recordTypes.js';
|
||||
import type { FuneralHome } from '../types/record.types.js';
|
||||
export default function getFuneralHome(funeralHomeId: number | string): Promise<FuneralHome | undefined>;
|
||||
export declare function getFuneralHomeByKey(funeralHomeKey: string): Promise<FuneralHome | undefined>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Cemetery, FuneralHome } from '../types/recordTypes.js'
|
||||
import type { Cemetery, FuneralHome } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
import type { FuneralHome } from '../types/recordTypes.js';
|
||||
import type { FuneralHome } from '../types/record.types.js';
|
||||
export default function getFuneralHomes(): Promise<FuneralHome[]>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Cemetery, FuneralHome } from '../types/recordTypes.js'
|
||||
import type { Cemetery, FuneralHome } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
import type { IntermentContainerType } from '../types/recordTypes.js';
|
||||
import type { IntermentContainerType } from '../types/record.types.js';
|
||||
export default function getIntermentContainerTypes(): Promise<IntermentContainerType[]>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { IntermentContainerType } from '../types/recordTypes.js'
|
||||
import type { IntermentContainerType } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
import { updateRecordOrderNumber } from './updateRecordOrderNumber.js'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { WorkOrder } from '../types/recordTypes.js';
|
||||
import type { WorkOrder } from '../types/record.types.js';
|
||||
interface WorkOrderOptions {
|
||||
includeBurialSites: boolean;
|
||||
includeComments: boolean;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import type { PoolConnection } from 'better-sqlite-pool'
|
|||
|
||||
import { dateIntegerToString } from '@cityssm/utils-datetime'
|
||||
|
||||
import type { WorkOrder } from '../types/recordTypes.js'
|
||||
import type { WorkOrder } from '../types/record.types.js'
|
||||
|
||||
import getBurialSites from './getBurialSites.js'
|
||||
import getContracts from './getContracts.js'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { WorkOrderComment } from '../types/recordTypes.js';
|
||||
import type { WorkOrderComment } from '../types/record.types.js';
|
||||
export default function getWorkOrderComments(workOrderId: number | string, connectedDatabase?: PoolConnection): Promise<WorkOrderComment[]>;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
timeIntegerToString
|
||||
} from '@cityssm/utils-datetime'
|
||||
|
||||
import type { WorkOrderComment } from '../types/recordTypes.js'
|
||||
import type { WorkOrderComment } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
import type { WorkOrderMilestoneType } from '../types/recordTypes.js';
|
||||
import type { WorkOrderMilestoneType } from '../types/record.types.js';
|
||||
export default function getWorkOrderMilestoneTypes(): Promise<WorkOrderMilestoneType[]>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { WorkOrderMilestoneType } from '../types/recordTypes.js'
|
||||
import type { WorkOrderMilestoneType } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
import { updateRecordOrderNumber } from './updateRecordOrderNumber.js'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import { type DateString } from '@cityssm/utils-datetime';
|
||||
import type { WorkOrderMilestone } from '../types/recordTypes.js';
|
||||
import type { WorkOrderMilestone } from '../types/record.types.js';
|
||||
export interface WorkOrderMilestoneFilters {
|
||||
workOrderId?: number | string;
|
||||
workOrderMilestoneTypeIds?: string;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
} from '@cityssm/utils-datetime'
|
||||
|
||||
import { getConfigProperty } from '../helpers/config.helpers.js'
|
||||
import type { WorkOrderMilestone } from '../types/recordTypes.js'
|
||||
import type { WorkOrderMilestone } from '../types/record.types.js'
|
||||
|
||||
import getBurialSites from './getBurialSites.js'
|
||||
import getContracts from './getContracts.js'
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
import type { WorkOrderType } from '../types/recordTypes.js';
|
||||
import type { WorkOrderType } from '../types/record.types.js';
|
||||
export default function getWorkOrderTypes(): Promise<WorkOrderType[]>;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { WorkOrderType } from '../types/recordTypes.js'
|
||||
import type { WorkOrderType } from '../types/record.types.js'
|
||||
|
||||
import { acquireConnection } from './pool.js'
|
||||
import { updateRecordOrderNumber } from './updateRecordOrderNumber.js'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { PoolConnection } from 'better-sqlite-pool';
|
||||
import type { WorkOrder } from '../types/recordTypes.js';
|
||||
import type { WorkOrder } from '../types/record.types.js';
|
||||
export interface GetWorkOrdersFilters {
|
||||
workOrderTypeId?: number | string;
|
||||
workOrderOpenDateString?: string;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
getBurialSiteNameWhereClause,
|
||||
getDeceasedNameWhereClause
|
||||
} from '../helpers/functions.sqlFilters.js'
|
||||
import type { WorkOrder } from '../types/recordTypes.js'
|
||||
import type { WorkOrder } from '../types/record.types.js'
|
||||
|
||||
import getBurialSites from './getBurialSites.js'
|
||||
import getContracts from './getContracts.js'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Fee } from '../types/recordTypes.js'
|
||||
import type { Fee } from '../types/record.types.js'
|
||||
|
||||
import getFee from './getFee.js'
|
||||
import { acquireConnection } from './pool.js'
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import getWorkOrderMilestones, {
|
|||
} from '../../database/getWorkOrderMilestones.js'
|
||||
import { getConfigProperty } from '../../helpers/config.helpers.js'
|
||||
import { getPrintConfig } from '../../helpers/functions.print.js'
|
||||
import type { WorkOrderMilestone } from '../../types/recordTypes.js'
|
||||
import type { WorkOrderMilestone } from '../../types/record.types.js'
|
||||
|
||||
const calendarCompany = 'cityssm.github.io'
|
||||
const calendarProduct = getConfigProperty('application.applicationName')
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
getBurialSiteTypes
|
||||
} from '../../helpers/functions.cache.js'
|
||||
import { getBurialSiteImages } from '../../helpers/images.helpers.js'
|
||||
import type { BurialSite } from '../../types/recordTypes.js'
|
||||
import type { BurialSite } from '../../types/record.types.js'
|
||||
|
||||
export default async function handler(
|
||||
request: Request,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import type { Request, Response } from 'express'
|
|||
import getCemeteries from '../../database/getCemeteries.js'
|
||||
import { getConfigProperty } from '../../helpers/config.helpers.js'
|
||||
import { getCemeterySVGs } from '../../helpers/images.helpers.js'
|
||||
import type { Cemetery } from '../../types/recordTypes.js'
|
||||
import type { Cemetery } from '../../types/record.types.js'
|
||||
|
||||
export default async function handler(
|
||||
_request: Request,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import getBurialSite from '../../database/getBurialSite.js'
|
|||
import getFuneralHomes from '../../database/getFuneralHomes.js'
|
||||
import { getConfigProperty } from '../../helpers/config.helpers.js'
|
||||
import { getCommittalTypes, getContractTypes, getIntermentContainerTypes } from '../../helpers/functions.cache.js'
|
||||
import type { Contract } from '../../types/recordTypes.js'
|
||||
import type { Contract } from '../../types/record.types.js'
|
||||
|
||||
export default async function handler(
|
||||
request: Request,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import {
|
|||
getAllContractTypeFields,
|
||||
getContractTypeById
|
||||
} from '../../helpers/functions.cache.js'
|
||||
import type { ContractType } from '../../types/recordTypes.js'
|
||||
import type { ContractType } from '../../types/record.types.js'
|
||||
|
||||
export default async function handler(
|
||||
request: Request<unknown, unknown, { contractTypeId: string }>,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import type { Request, Response } from 'express'
|
|||
|
||||
import getContract from '../../database/getContract.js'
|
||||
import getFeeCategories from '../../database/getFeeCategories.js'
|
||||
import type { Contract } from '../../types/recordTypes.js'
|
||||
import type { Contract } from '../../types/record.types.js'
|
||||
|
||||
export default async function handler(
|
||||
request: Request<unknown, unknown, { contractId: string }>,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { Request, Response } from 'express'
|
||||
|
||||
import { getConfigProperty } from '../../helpers/config.helpers.js'
|
||||
import type { FuneralHome } from '../../types/recordTypes.js'
|
||||
import type { FuneralHome } from '../../types/record.types.js'
|
||||
|
||||
export default function handler(_request: Request, response: Response): void {
|
||||
const funeralHome: FuneralHome = {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import type { Request, Response } from 'express'
|
|||
import { dateToInteger, dateToString } from '@cityssm/utils-datetime'
|
||||
|
||||
import { getWorkOrderTypes } from '../../helpers/functions.cache.js'
|
||||
import type { WorkOrder } from '../../types/recordTypes.js'
|
||||
import type { WorkOrder } from '../../types/record.types.js'
|
||||
|
||||
export default async function handler(
|
||||
request: Request,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import { DEBUG_NAMESPACE } from '../debug.config.js'
|
|||
import type {
|
||||
CacheBurialSiteIdsWorkerMessage,
|
||||
ClearNextPreviousBurialSiteIdsCacheWorkerMessage
|
||||
} from '../types/applicationTypes.js'
|
||||
} from '../types/application.types.js'
|
||||
|
||||
import { getConfigProperty } from './config.helpers.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Contract, ContractFee } from '../types/recordTypes.js';
|
||||
import type { Contract, ContractFee } from '../types/record.types.js';
|
||||
export declare function getFeesByFeeCategory(contract: Contract, feeCategory: string, feeCategoryContains?: boolean): ContractFee[];
|
||||
export declare function getFieldValueByContractTypeField(contract: Contract, contractTypeField: string): string | undefined;
|
||||
export declare function getTransactionTotal(contract: Contract): number;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type {
|
||||
Contract,
|
||||
ContractFee
|
||||
} from '../types/recordTypes.js'
|
||||
} from '../types/record.types.js'
|
||||
|
||||
export function getFeesByFeeCategory(
|
||||
contract: Contract,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { BurialSiteStatus, BurialSiteType, CommittalType, ContractType, ContractTypeField, IntermentContainerType, WorkOrderMilestoneType, WorkOrderType } from '../types/recordTypes.js';
|
||||
import type { BurialSiteStatus, BurialSiteType, CommittalType, ContractType, ContractTypeField, IntermentContainerType, WorkOrderMilestoneType, WorkOrderType } from '../types/record.types.js';
|
||||
export declare function getBurialSiteStatusByBurialSiteStatus(burialSiteStatus: string): Promise<BurialSiteStatus | undefined>;
|
||||
export declare function getBurialSiteStatusById(burialSiteStatusId: number): Promise<BurialSiteStatus | undefined>;
|
||||
export declare function getBurialSiteStatuses(): Promise<BurialSiteStatus[]>;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import { DEBUG_NAMESPACE } from '../debug.config.js'
|
|||
import type {
|
||||
ClearCacheWorkerMessage,
|
||||
WorkerMessage
|
||||
} from '../types/applicationTypes.js'
|
||||
} from '../types/application.types.js'
|
||||
import type {
|
||||
BurialSiteStatus,
|
||||
BurialSiteType,
|
||||
|
|
@ -27,7 +27,7 @@ import type {
|
|||
IntermentContainerType,
|
||||
WorkOrderMilestoneType,
|
||||
WorkOrderType
|
||||
} from '../types/recordTypes.js'
|
||||
} from '../types/record.types.js'
|
||||
|
||||
import { getConfigProperty } from './config.helpers.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
import type { DynamicsGPDocument } from '../types/recordTypes.js';
|
||||
import type { DynamicsGPDocument } from '../types/record.types.js';
|
||||
export declare function getDynamicsGPDocument(documentNumber: string): Promise<DynamicsGPDocument | undefined>;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import {
|
|||
DynamicsGP
|
||||
} from '@cityssm/dynamics-gp'
|
||||
|
||||
import type { DynamicsGPLookup } from '../types/configTypes.js'
|
||||
import type { DynamicsGPDocument } from '../types/recordTypes.js'
|
||||
import type { DynamicsGPLookup } from '../types/config.types.js'
|
||||
import type { DynamicsGPDocument } from '../types/record.types.js'
|
||||
|
||||
import { getConfigProperty } from './config.helpers.js'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
import type { Contract, Fee } from '../types/recordTypes.js';
|
||||
import type { Contract, Fee } from '../types/record.types.js';
|
||||
export declare function calculateFeeAmount(fee: Fee, contract: Contract): number;
|
||||
export declare function calculateTaxAmount(fee: Fee, feeAmount: number): number;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Contract, Fee } from '../types/recordTypes.js'
|
||||
import type { Contract, Fee } from '../types/record.types.js'
|
||||
|
||||
export function calculateFeeAmount(
|
||||
fee: Fee,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { BurialSite, Contract, WorkOrder } from '../types/recordTypes.js';
|
||||
import type { BurialSite, Contract, WorkOrder } from '../types/record.types.js';
|
||||
interface PrintConfig {
|
||||
params: string[];
|
||||
title: string;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import * as dateTimeFunctions from '@cityssm/utils-datetime'
|
|||
import getBurialSite from '../database/getBurialSite.js'
|
||||
import getContract from '../database/getContract.js'
|
||||
import getWorkOrder from '../database/getWorkOrder.js'
|
||||
import type { BurialSite, Contract, WorkOrder } from '../types/recordTypes.js'
|
||||
import type { BurialSite, Contract, WorkOrder } from '../types/record.types.js'
|
||||
|
||||
import * as configFunctions from './config.helpers.js'
|
||||
import * as contractFunctions from './contracts.helpers.js'
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue