Skip to content

Commit d7272dc

Browse files
authored
Merge pull request #97 from apptreesoftware/eyu_20251002
Add getWorkOrderChargeToAccount function
2 parents 111c442 + dae38d3 commit d7272dc

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

famis_client.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ import {
119119
Warehouse,
120120
Watcher,
121121
WorkOrder,
122+
WorkOrderChargeToAccount,
122123
WorkOrderComment,
123124
WorkType
124125
} from './model/famis_models';
@@ -746,6 +747,10 @@ export class FamisClient {
746747
return this.patchObject<PatchWorkOrderRequest, WorkOrder>(workOrder, 'workorders', workOrderId);
747748
}
748749

750+
async getWorkOrderChargeToAccount(context: QueryContext): Promise<Result<WorkOrderChargeToAccount>> {
751+
return this.getAll<WorkOrderChargeToAccount>(context, 'workorderchargetoaccounts');
752+
}
753+
749754
//
750755

751756
//#region attachments

model/famis_models.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,15 @@ export interface WorkOrder {
11821182
Watchers?: Watcher[];
11831183
}
11841184

1185+
export interface WorkOrderChargeToAccount {
1186+
Id: number;
1187+
RequestId: number;
1188+
RequestExternalId?: string;
1189+
Description?: string;
1190+
Number?: string;
1191+
IsDefault?: boolean;
1192+
}
1193+
11851194
export interface Watcher {
11861195
Id: number;
11871196
RequestId: number;
@@ -1491,6 +1500,7 @@ export interface Asset {
14911500
SubSpaceExternalId?: string;
14921501
AutoAssignedToExternalId?: string;
14931502
// Expandable properties
1503+
Property?: Property;
14941504
Space?: Space;
14951505
AssetUdfs?: Udf[];
14961506
AssetModel?: AssetModel;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "facility360",
3-
"version": "1.0.32",
3+
"version": "1.0.33",
44
"description": "A Node based 360Facility client SDK",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)