cityworks 1.0.5 → 2.0.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.
@@ -1,328 +0,0 @@
1
- export declare class WorkOrder {
2
- /**
3
- * @hidden
4
- */
5
- cw: any;
6
- /**
7
- * WorkOrder Administration methods
8
- */
9
- admin: any;
10
- /**
11
- * WorkOrder Costing methods
12
- */
13
- costs: any;
14
- /**
15
- * WorkOrder Comments methods
16
- */
17
- comment: any;
18
- /**
19
- * WorkOrder Comments methods
20
- */
21
- attachments: any;
22
- /**
23
- * @hidden
24
- */
25
- constructor(cw: any);
26
- /**
27
- * Create new workorders, including linkin to Requests & Inspections (optionally)
28
- *
29
- * @category WorkOrders
30
- * @param {Object} wo_data - See /{subdirectory}/apidocs/#/data-type-infodataType=WorkOrder on the Cityworks instance
31
- * @param {Array<number>} [inspectionIds] - The inspection IDs which the workorder should be linked to.
32
- * @param {Array<number>} [requestIds] - The inspection IDs which the workorder should be linked to.
33
- * @return {Object} Returns Promise that represents an object describing the newly-created workorder
34
- */
35
- create(wo_data: Object, inspectionIds?: Array<number>, requestIds?: Array<number>): Promise<unknown>;
36
- /**
37
- * Create new workorder linked to parent workorder
38
- *
39
- * @category WorkOrders
40
- * @param {Object} wo_data - See /{subdirectory}/apidocs/#/data-type-infodataType=WorkOrder on the Cityworks instance
41
- * @param {string|number} workOrderSId - The workorder S/ID which the entities should be added to. # for SID, string for ID.
42
- * @return {Object} Returns Promise that represents an object describing the newly-created workorder
43
- */
44
- createFromParent(wo_data: Object, workOrderSId: string | number, s?: boolean): Promise<unknown>;
45
- /**
46
- * Update a WorkOrder
47
- *
48
- * @category WorkOrders
49
- * @param {object} wo_data - See /{subdirectory}/apidocs/#/data-type-infodataType=WorkOrder on the Cityworks instance
50
- * @return {Object} Returns Promise that represents an object describing the updated workorder
51
- */
52
- update(wo_data: Object): Promise<unknown>;
53
- /**
54
- * Combine WorkOrders
55
- *
56
- * @category WorkOrders
57
- * @param {Array<string>} fromWorkOrderIds - The workorder IDs which should be combined.
58
- * @param {string} toWorkOrderId - The WorkOrder ID for the single WorkOrder that should contain the info/entities from the other WorkOrders
59
- * @param {boolean} cancelCombinedWorkOrders - If the WorkOrders combined into the single should then be canceled, default is true.
60
- * @return {Object} Returns object that represents a collection of WorkOrders
61
- */
62
- combine(fromWorkOrderIds: Array<string>, toWorkOrderId: string, cancelCombinedWorkOrders?: boolean): Promise<unknown>;
63
- /**
64
- * Move a workorder's point
65
- *
66
- * @category WorkOrders
67
- * @param {string} workOrderId
68
- * @param {number} x
69
- * @param {number} y
70
- * @param {Object} projection - Should include WKT or WKID attribute. Can also include VcsWKID attribute.
71
- * @param {number} [z] - Optional Z coordinate
72
- * @return {Object} Returns Promise that represents an object describing the updated workorder
73
- */
74
- move(workOrderId: string, x: number, y: number, projection: Object, z?: number): Promise<unknown>;
75
- /**
76
- * Get a workorder by S/ID
77
- *
78
- * @category WorkOrders
79
- * @param {string|number} workOrderSId - The S/ID of the workorder to retrieve. # for SID, string for ID.
80
- * @param {boolean} s - Whether first argument is an SID (true) or an ID (false). Defaults to true.
81
- * @return {Object} Returns Promise that represents an object describing the workorder
82
- */
83
- getById(workOrderSId: string | number, s?: boolean): Promise<unknown>;
84
- /**
85
- * Get workorders by an array of S/IDs
86
- *
87
- * @category WorkOrders
88
- * @param {Array<string|number>} workOrderSIds - The workorder S/IDs to retrieve. If providing WorkOrderID, should be all strings, else provide all numbers for WorkOrderSID
89
- * @return {Object} Returns Promise that represents a collection of Objects describing the workorders
90
- */
91
- getByIds(workOrderSIds: Array<string | number>): Promise<unknown>;
92
- /**
93
- * Get instructions by an array of workorders S/IDs
94
- *
95
- * @category WorkOrders
96
- * @param {Array<string|number>} workOrderSIds - The workorder S/IDs to retrieve. If providing WorkOrderID, should be all strings, else provide all numbers for WorkOrderSID
97
- * @return {Object} Returns Promise that represents an array of String, String describing the workorder instructions
98
- */
99
- getInstructions(workOrderSIds: Array<string | number>): Promise<unknown>;
100
- /**
101
- * Get the audit log for a specific workorder
102
- *
103
- * @category WorkOrders
104
- * @param {number} workOrderSId - A WorkOrder S/ID to get the audit log for. SID is default.
105
- * @return {Object} Returns Promise that represents a collection of Cityworks Metadata Objects
106
- */
107
- getAuditLog(workOrderSId: number): Promise<unknown>;
108
- /**
109
- * Get custom field values for the workorder S/IDs
110
- *
111
- * @category WorkOrders
112
- * @param {Array<string|number>} workOrderSIds - The workorder S/IDs to retrieve. #s for SID, strings for ID.
113
- * @return {Object} Returns Promise that represents a collection of Objects describing the workorders
114
- */
115
- getCustomFieldValues(workOrderSIds: Array<string | number>): Promise<unknown>;
116
- /**
117
- * Get entities on an existing WorkOrder
118
- *
119
- * @category WorkOrders
120
- * @param {Array<string|number>} workOrderSIds - The workorder S/IDs which the entities should be added to. # for SID, string for ID.
121
- * @param {boolean} getGisData - Query gis to populate Entity.Attributes with current gis data. Defaults to true.
122
- * @return {Object} Returns object that represents a list of entities removed.
123
- */
124
- getEntities(workOrderSIds: Array<string | number>, getGisData?: boolean): Promise<unknown>;
125
- /**
126
- * Add entities to an existing WorkOrder
127
- *
128
- * @category WorkOrders
129
- * @param {string|number} workOrderSId - The workorder S/ID which the entities should be added to. # for SID, string for ID.
130
- * @param {Object} entityInfo - Entity info object including: (req) EntityType: {string}, (req) EntityUids: {Array<string>}, Facility_Id: {string}, Level_Id: {string}
131
- * @param {boolean} updateXY - Update WorkOrder xy after adding entit(y|ies), default is true.
132
- * @return {Object} Returns object that represents a list of entities removed.
133
- */
134
- addEntities(workOrderSId: string | number, entityInfo: Object, updateXY?: boolean): Promise<unknown>;
135
- /**
136
- * Update a WorkOrder entity
137
- *
138
- * @category WorkOrders
139
- * @param {string|number} workOrderSId - The workorder S/ID which the entities should be added to. # for SID, string for ID.
140
- * @param {Object} entityInfo - Entity info object including: (req) EntityType: {string}, (req) EntityUid: {string}, Facility_Id: {string}, Level_Id: {string}
141
- * @param {boolean} workComplete - Update WorkOrder completeness, default is true.
142
- * @return {Object} Returns object that represents a list of entities removed.
143
- */
144
- updateEntity(workOrderSId: string | number, entityInfo: Object, workComplete?: boolean): Promise<unknown>;
145
- /**
146
- * Remove entities from a WorkOrder. Provide WorkOrderId and either ObjectIds or EntityType and EntityUids
147
- *
148
- * @category WorkOrders
149
- * @param {number} workOrderSId - The workorder S/ID which the entities should be removed from. # for SID, string for ID.
150
- * @param {Object} entityInfo - Remove entities by WorkOrderEntity.ObjectId (not gis objectId).
151
- * @param {boolean} updateXY - Update WorkOrder xy after removing entities, default is true.
152
- * @return {Object} Returns object that represents a list of entities removed.
153
- */
154
- removeEntities(workOrderSId: string | number, entityInfo: Object, updateXY?: boolean): Promise<unknown>;
155
- /**
156
- * Cancel workorders
157
- *
158
- * @category WorkOrders
159
- * @param {Array<number>} workOrderIds - An array of the IDs to cancel the matched workorders
160
- * @param {string} [cancelReason] - A reason for cancelling the workorder(s)
161
- * @param {datetime} [dateCancelled] - The date/time that it should be indicated the workorder was cancelled
162
- * @return {Object} Returns object that represents a collection of workorders
163
- */
164
- cancel(workOrderIds: Array<number>, cancelReason?: string, dateCancelled?: Date): Promise<unknown>;
165
- /**
166
- * Uncancel workorders
167
- *
168
- * @category WorkOrders
169
- * @param {Array<number>} workOrderIds - An array of the IDs to uncancel the matched workorders
170
- * @return {Object} Returns object that represents a collection of workorders
171
- */
172
- uncancel(workOrderIds: Array<number>): Promise<unknown>;
173
- /**
174
- * Close WorkOrders
175
- *
176
- * @category WorkOrders
177
- * @param {Array<number>} workOrderIds - An array of the IDs to close the matched WorkOrders
178
- * @return {Object} Returns object that represents a collection of WorkOrders
179
- */
180
- close(workOrderIds: Array<number>): Promise<unknown>;
181
- /**
182
- * Reopen closed WorkOrders
183
- *
184
- * @category WorkOrders
185
- * @param {Array<number>} workOrderIds - An array of the IDs to reopen the matched WorkOrders
186
- * @return {Object} Returns object that represents a collection of WorkOrders
187
- */
188
- reopen(workOrderIds: Array<number>): Promise<unknown>;
189
- /**
190
- * Delete WorkOrders
191
- *
192
- * @category WorkOrders
193
- * @param {Array<number>} workOrderIds - An array of the IDs to delete the matched WorkOrders
194
- * @return {Object} Returns object that represents a collection of WorkOrder Ids which have been deleted
195
- */
196
- delete(workOrderIds: Array<number>): Promise<unknown>;
197
- /**
198
- * Get WorkOrderS/IDs connected to provided entities
199
- *
200
- * @category WorkOrder Search
201
- * @param {string} entityType - The entity type to find connected WorkOrders
202
- * @param {Array<string>} entityUIDs - The list of entities to search for connected WorkOrders
203
- * @param {boolean} s - Get WorkOrderSids. Defaults to true. When false, returned list is WorkOrderIds
204
- * @param {Object} [search] - Any additional search properties of the WorkOrder (open/closed, etc)
205
- * @return {Object} Returns Promise that represents an array of WorkOrderS/IDs
206
- */
207
- getWOsByEntities(entityType: string, entityUids: Array<string>, search?: Array<string | number>, s?: boolean): Promise<unknown>;
208
- /**
209
- * Get WorkOrderSid and description for provided WorkOrderId
210
- *
211
- * @category WorkOrder Search
212
- * @param {string} workOrderId - The WorkOrderId for which to get the WorkOrderSid and description
213
- * @return {Object} Returns Promise that represents an object with WorkOrderS/IDs & Description
214
- */
215
- getSearchList(workOrderId: string): Promise<unknown>;
216
- /**
217
- * Get WorkOrder Employee lists
218
- *
219
- * @category WorkOrder Options
220
- * @param {string} listType - Which list (endpoint) to get. Includes Supervisors & SubmitTos.
221
- * @param {boolean} includeInactiveEmployees - Whether to include inactive employees in the returned list. Defaults to false.
222
- * @param {Array<number>} [domainIds] - Filter to certain domains within the Cityworks instance.
223
- * @return {Object} Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
224
- */
225
- getEmployeeLists(listType: string, includeInactiveEmployees?: boolean, domainIds?: Array<number>): Promise<unknown>;
226
- /**
227
- * Get SubmitTo list
228
- *
229
- * @category WorkOrder Options
230
- * @param {boolean} includeInactiveEmployees - Whether to include inactive employees in the returned list. Defaults to false.
231
- * @param {Array<number>} [domainIds] - Filter to certain domains within the Cityworks instance.
232
- * @return {Object} Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
233
- */
234
- getSubmitTos(includeInactiveEmployees?: boolean, domainIds?: Array<number>): Promise<unknown>;
235
- /**
236
- * Get Supervisors list
237
- *
238
- * @category WorkOrder Options
239
- * @param {boolean} includeInactiveEmployees - Whether to include inactive employees in the returned list. Defaults to false.
240
- * @param {Array<number>} [domainIds] - Filter to certain domains within the Cityworks instance.
241
- * @return {Object} Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
242
- */
243
- getSupervisors(includeInactiveEmployees?: boolean, domainIds?: Array<number>): Promise<unknown>;
244
- /**
245
- * Get Status Options
246
- *
247
- * @category WorkOrder Options
248
- * @return {Object} Returns Promise that represents a collection of codes. See: /{subdirectory}/apidocs/#/data-type-info;dataType=CodeDesc
249
- */
250
- getStatuses(): Promise<unknown>;
251
- /**
252
- * Get Categories
253
- *
254
- * @category WorkOrder Options
255
- * @return {Object} Returns Promise that represents an array of configured workorder category code descriptions
256
- */
257
- getCategories(): Promise<unknown>;
258
- /**
259
- * Get Priorities
260
- *
261
- * @category WorkOrder Options
262
- * @return {Object} Returns Promise that represents an array of configured workorder priorities
263
- */
264
- getPriorities(): Promise<unknown>;
265
- /**
266
- * Get Cycle From
267
- *
268
- * @category WorkOrder Options
269
- * @return {Object} Returns Promise that represents an array of string/string Cycle From options for workorders
270
- */
271
- getCycleFrom(): Promise<unknown>;
272
- /**
273
- * Get Cycle Intervals
274
- *
275
- * @category WorkOrder Options
276
- * @return {Object} Returns Promise that represents an array of string/string Cycle Interval options for workorders
277
- */
278
- getCycleIntervals(): Promise<unknown>;
279
- /**
280
- * Get Cycle Types
281
- *
282
- * @category WorkOrder Options
283
- * @return {Object} Returns Promise that represents an array of string/string Cycle Type options for workorders
284
- */
285
- getCycleTypes(): Promise<unknown>;
286
- /**
287
- * Get WorkOrder Stages
288
- *
289
- * @category WorkOrder Options
290
- * @return {Object} Returns Promise that represents an array of string/string Stage options for WorkOrders
291
- */
292
- getStages(): Promise<unknown>;
293
- /**
294
- * Get Expense Types
295
- *
296
- * @category WorkOrder Options
297
- * @return {Object} Returns Promise that represents an array of string/string Expense Type options for workorders
298
- */
299
- getExpenseTypes(): Promise<unknown>;
300
- /**
301
- * Get Map Layer Fields
302
- *
303
- * @category WorkOrders
304
- * @param {string} workOrderSId - The workorder S/ID to get the map layer fields for.
305
- * @return {Object} Returns Promise that represents a collection of Objects describing the workorders
306
- */
307
- getMLFs(workOrderSId: string): Promise<unknown>;
308
- /**
309
- * Update Map Layer Fields
310
- *
311
- * @category WorkOrders
312
- * @param {string} workOrderSId - The workorder S/ID to get the map layer fields for.
313
- * @param {number} x
314
- * @param {number} y
315
- * @param {number} domainId - Should include WKT or WKID attribute. Can also include VcsWKID attribute.
316
- * @param {number} [z] - Optional Z coordinate
317
- * @return {Object} Returns Promise that represents a ...
318
- */
319
- updateMLFs(workOrderSId: string, x?: number, y?: number, domainId?: number, z?: number): Promise<unknown>;
320
- /**
321
- * Delete Map Layer Fields
322
- *
323
- * @category WorkOrders
324
- * @param {string} workOrderSId - The workorder S/ID to delete the map layer fields for.
325
- * @return {Object} Returns Promise that represents a collection of Objects describing the workorders
326
- */
327
- deleteMLFs(workOrderSId: string): Promise<unknown>;
328
- }
@@ -1,111 +0,0 @@
1
- export declare class WorkOrderAdmin {
2
- /**
3
- * @hidden
4
- */
5
- cw: any;
6
- /**
7
- * @hidden
8
- */
9
- constructor(cw: any);
10
- /**
11
- * Get entity groups
12
- *
13
- * @category WorkOrders Admin
14
- * @return {Object} Returns Promise that represents a collection of all entity groups
15
- */
16
- getEntityGroups(): Promise<unknown>;
17
- /**
18
- * Get entity types
19
- *
20
- * @category WorkOrders Admin
21
- * @return {Object} Returns Promise that represents a collection of all GIS WorkOrder entity types
22
- */
23
- getEntityTypes(entityGroups: Array<string>): Promise<unknown>;
24
- /**
25
- * Get WorkOrder templates
26
- *
27
- * @category WorkOrders Admin
28
- * @return {Object} Returns Promise that represents a collection of all WorkOrder templates
29
- */
30
- getTemplates(entityType: string, includeComments?: boolean, includeInstructions?: boolean): Promise<unknown>;
31
- /**
32
- * Update WorkOrder template
33
- *
34
- * @category WorkOrders Admin
35
- * @param {Object} wOTemplate - Obect that describes the WorkOrder Template
36
- * @return {Object} Returns Promise that represents a collection of all
37
- */
38
- updateTemplate(wOTemplate: Object): Promise<unknown>;
39
- /**
40
- * Get template group rights for provided WorkOrder Templates
41
- *
42
- * @category WorkOrders Admin
43
- * @param {Array<number>} wOTemplateIds - Array one or more WorkOrder Template IDs
44
- * @return {Object} Returns Promise that represents a collection of all
45
- */
46
- getTemplateGroupRights(wOTemplateIds: Array<number>): Promise<unknown>;
47
- /**
48
- * Get template activity services for provided WorkOrder Templates
49
- *
50
- * @category WorkOrders Admin
51
- * @param {Array<number>} wOTemplateIds - Array one or more WorkOrder Template IDs
52
- * @return {Object} Returns Promise that represents a collection of all
53
- */
54
- getTemplateActivity(wOTemplateIds: Array<number>): Promise<unknown>;
55
- /**
56
- * Get fields which will be updated when provided WorkOrder Template instance closes
57
- *
58
- * @category WorkOrders Admin
59
- * @param {Array<number>} wOTemplateIds - Array one or more WorkOrder Template IDs
60
- * @return {Object} Returns Promise that represents a collection of all
61
- */
62
- getUpdateFields(wOTemplateIds: Array<number>): Promise<unknown>;
63
- /**
64
- * Get equipment
65
- *
66
- * @category WorkOrders Admin
67
- * @param {Array<number>} wOTemplateIds - WorkOrder Template ID
68
- * @return {Object} Returns Promise that represents a collection of all
69
- */
70
- getTemplateEquipment(wOTemplateId: number): Promise<unknown>;
71
- /**
72
- * Get labor
73
- *
74
- * @category WorkOrders Admin
75
- * @param {Array<number>} wOTemplateIds - WorkOrder Template ID
76
- * @return {Object} Returns Promise that represents a collection of all
77
- */
78
- getTemplateLabor(wOTemplateId: number): Promise<unknown>;
79
- /**
80
- * Get material
81
- *
82
- * @category WorkOrders Admin
83
- * @param {number} wOTemplateId - WorkOrder Template ID
84
- * @return {Object} Returns Promise that represents a collection of all
85
- */
86
- getTemplateMaterial(wOTemplateId: number): Promise<unknown>;
87
- /**
88
- * Get map layer fields configured for provided WorkOrder template
89
- *
90
- * @category WorkOrders Admin
91
- * @param {number} wOTemplateId - WorkOrder Template ID
92
- * @return {Object} Returns Promise that represents a collection of all
93
- */
94
- getTemplateMapLayerFields(wOTemplateId: number): Promise<unknown>;
95
- /**
96
- * Get tasks configured for provided WorkOrder template
97
- *
98
- * @category WorkOrders Admin
99
- * @param {number} wOTemplateId - WorkOrder Template ID
100
- * @return {Object} Returns Promise that represents a collection of all tasks on WorkOrder template
101
- */
102
- getTemplateTasks(wOTemplateId: number): Promise<unknown>;
103
- /**
104
- * Get inspections connected to provided WorkOrder template
105
- *
106
- * @category WorkOrders Admin
107
- * @param {number} wOTemplateId - WorkOrder Template ID
108
- * @return {Object} Returns Promise that represents a collection of all tasks on WorkOrder template
109
- */
110
- getRelatedInspectionTemplates(wOTemplateId: number): Promise<unknown>;
111
- }
@@ -1,113 +0,0 @@
1
- export declare class WorkOrderCosts {
2
- /**
3
- * @hidden
4
- */
5
- cw: any;
6
- /**
7
- * Storage of object's active activityType
8
- */
9
- currentActivityType: string;
10
- /**
11
- * @hidden
12
- */
13
- constructor(cw: any);
14
- /**
15
- * Get Cost Codes
16
- *
17
- * @category Labor Costs
18
- * @param {Array<number>} employeeSids - A list of Employee IDs for which to get the job codes.
19
- * @param {boolean} commonOnly - Set to true to get the Cost Codes that are common to ALL employees in the list, otherwise get all job codes that apply to at least one employee in the list.
20
- * @return {Object} Returns Promise that represents an object describing
21
- */
22
- getCodes(employeeSids: Object, commonOnly?: boolean): Promise<unknown>;
23
- /**
24
- * Get Job Codes
25
- *
26
- * @category Labor Costs
27
- * @return {Object} Returns Promise that represents an object describing
28
- */
29
- getJobCodes(): Promise<unknown>;
30
- /**
31
- * Add WorkOrder Labor Costs
32
- *
33
- * @category WorkOrder Costs
34
- * @param {number} workOrderSid - Array of inspection labor costings
35
- * @param {number} hours - Number of hours to add
36
- * @param {Object} options - options for the work order
37
- * @return {Object} Returns Promise that represents an object describing
38
- */
39
- addLabor(workOrderSid: number, hours: number, options: Object): Promise<unknown>;
40
- /**
41
- * Get Labor Costs for WorkOrder(s)
42
- *
43
- * @category WorkOrder Costs
44
- * @param {Array<number>} workOrderSids - Array of request Ids to get costs for
45
- * @param {boolean} estimated - Whether to get estimates or actuals (defaults to false -- get actuals)
46
- * @return {Object} Returns Promise that represents an object describing
47
- */
48
- getLabor(workOrderSids: Array<number>, estimated?: boolean): Promise<unknown>;
49
- /**
50
- * Delete WorkOrder Labor Costs
51
- *
52
- * @category WorkOrder Costs
53
- * @param {Array<number>} laborCostIds - List of labor cost IDs to delete
54
- * @param {boolean} estimated - Whether to delete estimates or actuals (defaults to false -- delete actuals)
55
- * @return {Object} Returns Promise that represents an object describing
56
- */
57
- deleteLabor(laborCostIds: Array<number>, estimated?: boolean): Promise<unknown>;
58
- /**
59
- * Add WorkOrder Equipment Costs
60
- *
61
- * @category WorkOrder Costs
62
- * @param {Object} workOrderSid - the work order to add the equipment costs to
63
- * @param {Object} options - additional options
64
- * @return {Object} Returns Promise that represents an object describing
65
- */
66
- addEquipment(workOrderSid: number, options: Object): Promise<unknown>;
67
- /**
68
- * Get Equipment Costs for WorkOrder(s)
69
- *
70
- * @category WorkOrder Costs
71
- * @param {number} workOrderSid - the work order to add the equipment costs to
72
- * @param {boolean} estimated - true to get estimated costs. defaults to false
73
- * @return {Object} Returns Promise that represents an object describing
74
- */
75
- getEquipment(workOrderSid: number, estimated?: boolean): Promise<unknown>;
76
- /**
77
- * Delete WorkOrder Equipment Costs
78
- *
79
- * @category WorkOrder Costs
80
- * @param {Object}
81
- * @return {Object} Returns Promise that represents an object describing
82
- */
83
- deleteEquipment(equipmentCostIds: Array<number>, estimated?: boolean): Promise<unknown>;
84
- /**
85
- * Add WorkOrder Material Costs
86
- *
87
- * @category WorkOrder Costs
88
- * @param {number} workOrderSid - Work Order SID number to add the material to
89
- * @param {number} units - Decimal units for material
90
- * @param {Object} options - Additional work order options
91
- * @param {boolean} combineIssuesByMaterialSid - Combine issues with the same MaterialSid into a single commit, default is true
92
- * @return {Object} Returns Promise that represents a collection describing the work order material costs
93
- */
94
- addMaterial(workOrderSid: number, units: number, options: Object, combineIssuesByMaterialSid?: boolean): Promise<unknown>;
95
- /**
96
- * Get Material Costs for WorkOrder(s)
97
- *
98
- * @category WorkOrder Costs
99
- * @param {number} workOrderSid - the work order to add the equipment costs to
100
- * @param {boolean} estimated - true to get estimated costs. defaults to false and gets actuals.
101
- * @return {Object} Returns Promise that represents an object describing
102
- */
103
- getMaterial(workOrderSid: number, estimated?: boolean): Promise<unknown>;
104
- /**
105
- * Delete WorkOrder Material Costs
106
- *
107
- * @category WorkOrder Costs
108
- * @param {Array<number>} materialCostIds - list of material cost IDs to delete
109
- * @param {boolean} estimated - true to delete the estimated costs. defaults to false and deletes actuals.
110
- * @return {Object} Returns Promise that represents an object describing
111
- */
112
- deleteMaterial(materialCostIds: number, estimated?: boolean): Promise<unknown>;
113
- }