@brownandroot/api 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +20 -1
- package/dist/index.js +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ export interface DropdownOption {
|
|
|
45
45
|
value: number | string;
|
|
46
46
|
label: string;
|
|
47
47
|
}
|
|
48
|
+
export interface PaytypeDropdownOption extends DropdownOption {
|
|
49
|
+
payClass: string | null;
|
|
50
|
+
}
|
|
48
51
|
/**
|
|
49
52
|
* LLM log entry matching the API response shape.
|
|
50
53
|
*/
|
|
@@ -139,6 +142,19 @@ export interface Workorder {
|
|
|
139
142
|
parentWorkOrder: string | null;
|
|
140
143
|
workOrder2: string | null;
|
|
141
144
|
}
|
|
145
|
+
export interface Jobtypejobstep {
|
|
146
|
+
id: string;
|
|
147
|
+
grp: string | null;
|
|
148
|
+
jobType: string | null;
|
|
149
|
+
jobStep: string | null;
|
|
150
|
+
description: string | null;
|
|
151
|
+
payclass: string | null;
|
|
152
|
+
isActive: boolean;
|
|
153
|
+
createdBy: string;
|
|
154
|
+
createdAt: string;
|
|
155
|
+
updatedBy: string | null;
|
|
156
|
+
updatedAt: string | null;
|
|
157
|
+
}
|
|
142
158
|
export declare class ApiHubClient {
|
|
143
159
|
private baseUrl;
|
|
144
160
|
private apiKey;
|
|
@@ -174,9 +190,12 @@ export declare class ApiHubClient {
|
|
|
174
190
|
getCostcodesDropdown(): Promise<DropdownOption[]>;
|
|
175
191
|
getCostcode(id: string): Promise<Costcode>;
|
|
176
192
|
getPaytypes(): Promise<Paytype[]>;
|
|
177
|
-
getPaytypesDropdown(): Promise<
|
|
193
|
+
getPaytypesDropdown(): Promise<PaytypeDropdownOption[]>;
|
|
178
194
|
getPaytype(id: string): Promise<Paytype>;
|
|
179
195
|
getWorkorders(): Promise<Workorder[]>;
|
|
180
196
|
getWorkordersDropdown(): Promise<DropdownOption[]>;
|
|
181
197
|
getWorkorder(id: string): Promise<Workorder>;
|
|
198
|
+
getJobtypejobsteps(): Promise<Jobtypejobstep[]>;
|
|
199
|
+
getJobtypejobstepsDropdown(): Promise<DropdownOption[]>;
|
|
200
|
+
getJobtypejobstep(id: string): Promise<Jobtypejobstep>;
|
|
182
201
|
}
|
package/dist/index.js
CHANGED
|
@@ -118,4 +118,16 @@ export class ApiHubClient {
|
|
|
118
118
|
async getWorkorder(id) {
|
|
119
119
|
return this.request(`/workorders/${encodeURIComponent(id)}`);
|
|
120
120
|
}
|
|
121
|
+
// -----------------------------------------------------------------------
|
|
122
|
+
// Job Type / Job Steps
|
|
123
|
+
// -----------------------------------------------------------------------
|
|
124
|
+
async getJobtypejobsteps() {
|
|
125
|
+
return this.request('/jobtypejobsteps');
|
|
126
|
+
}
|
|
127
|
+
async getJobtypejobstepsDropdown() {
|
|
128
|
+
return this.request('/jobtypejobsteps/dropdown');
|
|
129
|
+
}
|
|
130
|
+
async getJobtypejobstep(id) {
|
|
131
|
+
return this.request(`/jobtypejobsteps/${encodeURIComponent(id)}`);
|
|
132
|
+
}
|
|
121
133
|
}
|