@brownandroot/api 0.8.0 → 0.9.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 +16 -0
- package/dist/index.js +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -139,6 +139,19 @@ export interface Workorder {
|
|
|
139
139
|
parentWorkOrder: string | null;
|
|
140
140
|
workOrder2: string | null;
|
|
141
141
|
}
|
|
142
|
+
export interface Jobtypejobstep {
|
|
143
|
+
id: string;
|
|
144
|
+
grp: string | null;
|
|
145
|
+
jobType: string | null;
|
|
146
|
+
jobStep: string | null;
|
|
147
|
+
description: string | null;
|
|
148
|
+
payclass: string | null;
|
|
149
|
+
isActive: boolean;
|
|
150
|
+
createdBy: string;
|
|
151
|
+
createdAt: string;
|
|
152
|
+
updatedBy: string | null;
|
|
153
|
+
updatedAt: string | null;
|
|
154
|
+
}
|
|
142
155
|
export declare class ApiHubClient {
|
|
143
156
|
private baseUrl;
|
|
144
157
|
private apiKey;
|
|
@@ -179,4 +192,7 @@ export declare class ApiHubClient {
|
|
|
179
192
|
getWorkorders(): Promise<Workorder[]>;
|
|
180
193
|
getWorkordersDropdown(): Promise<DropdownOption[]>;
|
|
181
194
|
getWorkorder(id: string): Promise<Workorder>;
|
|
195
|
+
getJobtypejobsteps(): Promise<Jobtypejobstep[]>;
|
|
196
|
+
getJobtypejobstepsDropdown(): Promise<DropdownOption[]>;
|
|
197
|
+
getJobtypejobstep(id: string): Promise<Jobtypejobstep>;
|
|
182
198
|
}
|
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
|
}
|