From abc8948d8a84c54aa03648fca6fc4a129c87e53d Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Wed, 17 Jul 2024 13:54:10 -0400 Subject: [PATCH] export types --- index.d.ts | 3 +++ index.ts | 26 ++++++++++++++++++++++++-- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 30 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index 85490a9..9889812 100644 --- a/index.d.ts +++ b/index.d.ts @@ -148,3 +148,6 @@ export { addWorkOrderResource } from './queries/workOrders/addWorkOrderResource. export { getWorkOrderResourcesByStartDate, getWorkOrderResourcesByStartDateTimeRange, getWorkOrderResourcesByWorkOrderNumber } from './queries/workOrders/getWorkOrderResources.js'; export { updateWorkOrderResource } from './queries/workOrders/updateWorkOrderResource.js'; export { deleteWorkOrderResource } from './queries/workOrders/deleteWorkOrderResource.js'; +export type { ResourceItem } from './queries/items/types.js'; +export type { Job, Activity, ObjectCode, JobActivityObjectCode } from './queries/jobs/types.js'; +export type { WorkOrder, WorkOrderResource } from './queries/workOrders/types.js'; diff --git a/index.ts b/index.ts index bf07411..42776ab 100644 --- a/index.ts +++ b/index.ts @@ -5,7 +5,10 @@ import { type AccountNumberSource, getAccountNumberByWorkOrderNumberAndObjectCode } from './helpers/getAccountNumber.js' -import { type AddResourceItem, addResourceItem } from './queries/items/addResourceItem.js' +import { + type AddResourceItem, + addResourceItem +} from './queries/items/addResourceItem.js' import { getItemByItemId } from './queries/items/getItems.js' import type { ResourceItem } from './queries/items/types.js' import { @@ -298,7 +301,10 @@ export class WorkTechAPI { export { getAccountNumberByWorkOrderNumberAndObjectCode } from './helpers/getAccountNumber.js' export { getItemByItemId } from './queries/items/getItems.js' -export { type AddResourceItem, addResourceItem } from './queries/items/addResourceItem.js' +export { + type AddResourceItem, + addResourceItem +} from './queries/items/addResourceItem.js' export { getActivityByActivityId, @@ -322,3 +328,19 @@ export { } from './queries/workOrders/getWorkOrderResources.js' export { updateWorkOrderResource } from './queries/workOrders/updateWorkOrderResource.js' export { deleteWorkOrderResource } from './queries/workOrders/deleteWorkOrderResource.js' + +/* + * Export Types + */ + +export type { ResourceItem } from './queries/items/types.js' +export type { + Job, + Activity, + ObjectCode, + JobActivityObjectCode +} from './queries/jobs/types.js' +export type { + WorkOrder, + WorkOrderResource +} from './queries/workOrders/types.js' diff --git a/package-lock.json b/package-lock.json index 28f6028..ed2678e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cityssm/worktech-api", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cityssm/worktech-api", - "version": "0.3.0", + "version": "0.3.1", "license": "MIT", "dependencies": { "@cityssm/mssql-multi-pool": "^3.1.5", diff --git a/package.json b/package.json index 710e8d3..6f57b9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cityssm/worktech-api", - "version": "0.3.0", + "version": "0.3.1", "description": "Integrations with the WorkTech work order management system.", "type": "module", "exports": "./index.js",