rename types files

pull/11/head
Dan Gowans 2025-04-24 09:24:25 -04:00
parent 3da2aad21b
commit a167ef4a16
130 changed files with 160 additions and 165 deletions

View File

@ -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}`)

View File

@ -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', () => {

View File

@ -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', () => {

View File

@ -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;

View File

@ -1,4 +1,4 @@
import type { Config } from '../types/configTypes.js'
import type { Config } from '../types/config.types.js'
export const config: Config = {
aliases: {},

View File

@ -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;

View File

@ -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;

View File

@ -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'

View File

@ -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;

View File

@ -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,

View File

@ -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;

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -1,4 +1,4 @@
import type { BurialSiteStatus } from '../types/recordTypes.js';
import type { BurialSiteStatus } from '../types/record.types.js';
interface GetFilters {
cemeteryId?: number | string;
}

View File

@ -1,4 +1,4 @@
import type { BurialSiteStatus } from '../types/recordTypes.js'
import type { BurialSiteStatus } from '../types/record.types.js'
import { acquireConnection } from './pool.js'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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;
}

View File

@ -1,4 +1,4 @@
import type { BurialSiteType } from '../types/recordTypes.js'
import type { BurialSiteType } from '../types/record.types.js'
import { acquireConnection } from './pool.js'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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;

View File

@ -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'

View File

@ -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[]>;

View File

@ -1,4 +1,4 @@
import type { Cemetery } from '../types/recordTypes.js'
import type { Cemetery } from '../types/record.types.js'
import { acquireConnection } from './pool.js'

View File

@ -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>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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;

View File

@ -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'

View File

@ -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>;

View File

@ -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'

View File

@ -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;

View File

@ -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'

View File

@ -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;

View File

@ -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'

View File

@ -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>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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;

View File

@ -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'

View File

@ -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[]>;

View File

@ -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'

View File

@ -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;

View File

@ -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'

View File

@ -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'

View File

@ -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')

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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 }>,

View File

@ -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 }>,

View File

@ -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 = {

View File

@ -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,

View File

@ -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'

View File

@ -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;

View File

@ -1,7 +1,7 @@
import type {
Contract,
ContractFee
} from '../types/recordTypes.js'
} from '../types/record.types.js'
export function getFeesByFeeCategory(
contract: Contract,

View File

@ -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[]>;

View File

@ -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'

View File

@ -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>;

View File

@ -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'

View File

@ -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;

View File

@ -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,

View File

@ -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;

View File

@ -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