0.4.0 • Published 11 months ago

@cityssm/worktech-api v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Unofficial WorkTech API for Node

DeepSource Maintainability

This package assists with integrations between WorkTech and other systems. It is not meant to be a complete API, and it is not endorsed by WorkTech.

The queries used were discovered using tools like SQL Profiler, and are subject to change and break with WorkTech application updates.

Before using this package, especially for update purposes, be sure to run the queries against a test system!

Sample Functions

  • getEquipmentByEquipmentId(equipmentId: string): Promise<EquipmentItem | undefined>;
  • getItemByItemId(itemId: string): Promise<ResourceItem | undefined>;
  • getWorkOrderByWorkOrderNumber(workOrderNumber: string): Promise<WorkOrder | undefined>;
  • getWorkOrderResourcesByWorkOrderNumber(workOrderNumber: string): Promise<WorkOrderResource[]>;
  • getWorkOrderResourcesByStartDate(startDateString: DateString): Promise<WorkOrderResource[]>;
  • getJobByJobId(jobId: string): Promise<Job | undefined>;
  • getActivityByActivityId(activityId: string): Promise<Activity | undefined>;
  • getObjectCodeByObjectCode(objectCode: string): Promise<ObjectCode | undefined>;

For a complete list, see index.ts.

Sample Update Functions

  • addWorkOrderResource(workOrderResource: AddWorkOrderResource): Promise<BigIntString>;
  • updateWorkOrderResource(workOrderResource: WorkOrderResource): Promise<boolean>;
  • deleteWorkOrderResource(workOrderResourceId: BigIntString): Promise<boolean>;
0.3.0

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.3.2

11 months ago

0.4.0

11 months ago

0.3.1

11 months ago

0.1.0

1 year ago