Skip to content

Commit

Permalink
export types
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Jul 17, 2024
1 parent f8df967 commit abc8948
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
26 changes: 24 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand All @@ -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'
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit abc8948

Please sign in to comment.