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