cityworks 1.0.6 → 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.
- package/README.md +9 -2
- package/package.json +12 -12
- package/dist/activity_link.d.ts +0 -84
- package/dist/attachments.d.ts +0 -75
- package/dist/briefcase.d.ts +0 -241
- package/dist/case_admin.d.ts +0 -349
- package/dist/case_assets.d.ts +0 -89
- package/dist/case_data.d.ts +0 -213
- package/dist/case_financial.d.ts +0 -348
- package/dist/case_workflow.d.ts +0 -187
- package/dist/comments.d.ts +0 -53
- package/dist/error.d.ts +0 -57
- package/dist/general.d.ts +0 -78
- package/dist/gis.d.ts +0 -92
- package/dist/index.d.ts +0 -224
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/index.m.js +0 -2
- package/dist/index.m.js.map +0 -1
- package/dist/index.modern.mjs +0 -2
- package/dist/index.modern.mjs.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/dist/inspection.d.ts +0 -349
- package/dist/inspection_admin.d.ts +0 -25
- package/dist/inspection_costs.d.ts +0 -86
- package/dist/message_queue.d.ts +0 -73
- package/dist/query.d.ts +0 -108
- package/dist/request.d.ts +0 -372
- package/dist/request_admin.d.ts +0 -18
- package/dist/request_costs.d.ts +0 -54
- package/dist/search.d.ts +0 -138
- package/dist/workorder.d.ts +0 -328
- package/dist/workorder_admin.d.ts +0 -111
- package/dist/workorder_costs.d.ts +0 -113
package/dist/inspection.d.ts
DELETED
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
export declare class Inspection {
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
cw: any;
|
|
6
|
-
/**
|
|
7
|
-
* Inspection Administration methods
|
|
8
|
-
*/
|
|
9
|
-
admin?: any;
|
|
10
|
-
/**
|
|
11
|
-
* Inspection Administration methods
|
|
12
|
-
*/
|
|
13
|
-
attachments?: any;
|
|
14
|
-
/**
|
|
15
|
-
* Inspection Costing methods
|
|
16
|
-
*/
|
|
17
|
-
costs: any;
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
constructor(cw: any);
|
|
22
|
-
/**
|
|
23
|
-
* Create new inspection
|
|
24
|
-
*
|
|
25
|
-
* @category Inspections
|
|
26
|
-
* @param {Object} insp_data - See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
|
|
27
|
-
* @return {Object} Returns Promise that represents an object describing the newly-created inspection
|
|
28
|
-
*/
|
|
29
|
-
create(insp_data: Object): Promise<unknown>;
|
|
30
|
-
/**
|
|
31
|
-
* Create inspections from an array of entities
|
|
32
|
-
*
|
|
33
|
-
* @category Inspections
|
|
34
|
-
* @param {Object} insp_data - See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
|
|
35
|
-
* @return {Object} Returns Promise that represents a collection of objects describing the newly-created inspections
|
|
36
|
-
*/
|
|
37
|
-
createFromEntities(insp_data: Object): Promise<unknown>;
|
|
38
|
-
/**
|
|
39
|
-
* Create an inspection from a parent inspection (TODO: what parent!?)
|
|
40
|
-
*
|
|
41
|
-
* @category Inspections
|
|
42
|
-
* @param {object} insp_data - See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
|
|
43
|
-
* @return {Object} Returns object that represents an object describing the newly-created inspection
|
|
44
|
-
*/
|
|
45
|
-
createFromParent(insp_data: Object): Promise<unknown>;
|
|
46
|
-
/**
|
|
47
|
-
* Create an inspection from a service request
|
|
48
|
-
*
|
|
49
|
-
* @category Inspections
|
|
50
|
-
* @param {object} insp_data - See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
|
|
51
|
-
* @return {Object} Returns object that represents an object describing the newly-created inspection
|
|
52
|
-
*/
|
|
53
|
-
createFromServiceRequest(insp_data: Object): Promise<unknown>;
|
|
54
|
-
/**
|
|
55
|
-
* Create an inspection from a WorkOrder
|
|
56
|
-
*
|
|
57
|
-
* @category Inspections
|
|
58
|
-
* @param {object} insp_data - See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
|
|
59
|
-
* @return {Object} Returns object that represents an object describing the newly-created inspection
|
|
60
|
-
*/
|
|
61
|
-
createFromWorkOrder(insp_data: Object): Promise<unknown>;
|
|
62
|
-
/**
|
|
63
|
-
* Update an inspection
|
|
64
|
-
*
|
|
65
|
-
* @category Inspections
|
|
66
|
-
* @param {object} insp_data - See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on the Cityworks instance
|
|
67
|
-
* @return {Object} Returns Promise that represents an object describing the updated inspection
|
|
68
|
-
*/
|
|
69
|
-
update(insp_data: Object): Promise<unknown>;
|
|
70
|
-
/**
|
|
71
|
-
* Get an inspection by ID
|
|
72
|
-
*
|
|
73
|
-
* @category Inspections
|
|
74
|
-
* @param {number} inspectionId - The inspection ID to retrieve
|
|
75
|
-
* @return {Object} Returns Promise that represents an object describing the inspection
|
|
76
|
-
*/
|
|
77
|
-
getById(inspectionId: number): Promise<unknown>;
|
|
78
|
-
/**
|
|
79
|
-
* Get inspections by array of IDs
|
|
80
|
-
*
|
|
81
|
-
* @category Inspections
|
|
82
|
-
* @param {Array<number>} inspectionIds - The inspection IDs to retrieve
|
|
83
|
-
* @return {Object} Returns Promise that represents a collection of Objects describing the inspections
|
|
84
|
-
*/
|
|
85
|
-
getByIds(inspectionIds: Array<number>): Promise<unknown>;
|
|
86
|
-
/**
|
|
87
|
-
* Cancel inspections
|
|
88
|
-
*
|
|
89
|
-
* @category Inspections
|
|
90
|
-
* @param {Array<number>} inspectionIds - An array of the IDs to cancel the matched inspections
|
|
91
|
-
* @param {string} [cancelReason] - A reason for cancelling the inspection(s)
|
|
92
|
-
* @param {datetime} [dateCancelled] - The date/time that it should be indicated the inspection was cancelled
|
|
93
|
-
* @return {Object} Returns object that represents a collection of inspections
|
|
94
|
-
*/
|
|
95
|
-
cancel(inspectionIds: Array<number>, cancelReason?: string, dateCancelled?: Date): Promise<unknown>;
|
|
96
|
-
/**
|
|
97
|
-
* Uncancel inspections
|
|
98
|
-
*
|
|
99
|
-
* @category Requests
|
|
100
|
-
* @param {Array<number>} inspectionIds - An array of the IDs to uncancel the matched requests
|
|
101
|
-
* @return {Object} Returns object that represents a collection of requests
|
|
102
|
-
*/
|
|
103
|
-
uncancel(inspectionIds: Array<number>): Promise<unknown>;
|
|
104
|
-
/**
|
|
105
|
-
* Close inspections
|
|
106
|
-
*
|
|
107
|
-
* @category Inspections
|
|
108
|
-
* @param {Array<number>} inspectionIds - An array of the IDs to close the matched inspections
|
|
109
|
-
* @return {Object} Returns object that represents a collection of inspections
|
|
110
|
-
*/
|
|
111
|
-
close(inspectionIds: Array<number>): Promise<unknown>;
|
|
112
|
-
/**
|
|
113
|
-
* Reopen closed inspections
|
|
114
|
-
*
|
|
115
|
-
* @category Inspections
|
|
116
|
-
* @param {Array<number>} inspectionIds - An array of the IDs to reopen the matched inspections
|
|
117
|
-
* @return {Object} Returns object that represents a collection of inspections
|
|
118
|
-
*/
|
|
119
|
-
reopen(inspectionIds: Array<number>): Promise<unknown>;
|
|
120
|
-
/**
|
|
121
|
-
* Delete inspections
|
|
122
|
-
*
|
|
123
|
-
* @category Inspections
|
|
124
|
-
* @param {Array<number>} inspectionIds - An array of the IDs to delete the matched inspections
|
|
125
|
-
* @return {Object} Returns object that represents a collection of inspection Ids which have been deleted
|
|
126
|
-
*/
|
|
127
|
-
delete(inspectionIds: Array<number>): Promise<unknown>;
|
|
128
|
-
/**
|
|
129
|
-
* Search for inspections
|
|
130
|
-
*
|
|
131
|
-
* @category Inspection Search
|
|
132
|
-
* @param {Object} searchData - The search information to retrieve matched inspections, see instance docs: /{subdirectory}/apidocs/#/service-info/Ams/Inspection
|
|
133
|
-
* @return {Object} Returns Promise that represents an array of the matching inspection IDs
|
|
134
|
-
*/
|
|
135
|
-
search(searchData: Object): Promise<unknown>;
|
|
136
|
-
/**
|
|
137
|
-
* Get the records on the basis of inspectionId, only populates InspectionId, InspTemplateName, and Location properties
|
|
138
|
-
*
|
|
139
|
-
* @category Inspection Object Search
|
|
140
|
-
* @param {string} inspectionId - ???, see instance docs: /{subdirectory}/apidocs/#/service-info/Ams/Inspection
|
|
141
|
-
* @return {Object} Returns Promise that represents a collection of the matching (limited) inspection objects
|
|
142
|
-
*/
|
|
143
|
-
searchObject(inspectionId: string): Promise<unknown>;
|
|
144
|
-
/**
|
|
145
|
-
* Get list of statuses
|
|
146
|
-
*
|
|
147
|
-
* @category Inspection Options
|
|
148
|
-
* @return {Object} Returns object that represents an array of all possible statuses for an Inspection
|
|
149
|
-
*/
|
|
150
|
-
statuses(): Promise<unknown>;
|
|
151
|
-
/**
|
|
152
|
-
* Get inspection submit to list
|
|
153
|
-
*
|
|
154
|
-
* @category Inspection Options
|
|
155
|
-
* @param {boolean} [includeInactiveEmployees] - whether to include inactive employees in the return. Defaults to false.
|
|
156
|
-
* @param {boolean} [domainIds] - which domains to include in the return, default to All domains
|
|
157
|
-
* @return {Object} Returns object that represents a collection of all possible employees for an Inspection's SubmitTo
|
|
158
|
-
*/
|
|
159
|
-
submitTos(includeInactiveEmployees?: boolean, domainIds?: Array<number>): Promise<unknown>;
|
|
160
|
-
/**
|
|
161
|
-
* Add an entity to an existing inspection
|
|
162
|
-
* This method requires an Entity/Asset to be specified. You can either specify the Entity Type and its UID or a WorkOrderEntityBase Object.
|
|
163
|
-
*
|
|
164
|
-
* @category Inspections
|
|
165
|
-
* @param {Object} entity - Either of two attribute combinations are valid: entityType & entityUid OR Entity as a fully-inflated WorkOrderEntity (WorkOrderEntityBase) object.
|
|
166
|
-
* @param {number} inspectionId - An Inspection ID to attach the entity/asset to.
|
|
167
|
-
* @param {boolean} updateXY - Provide a boolean to whether the inspection's X/Y coordinates should be updated. Default is true.
|
|
168
|
-
* @param {Object} facility - Add Facility_Id for the Facility Identifier and Level_id for the Facility Level Identifier. Defaults to empty so that no facility is specified.
|
|
169
|
-
* @return {Object} Returns object that represents an object which describes an Inspection Entity
|
|
170
|
-
*/
|
|
171
|
-
connectAsset(entity: {
|
|
172
|
-
EntityType?: string;
|
|
173
|
-
EntityUid?: string;
|
|
174
|
-
Entity?: Object;
|
|
175
|
-
}, inspectionId: number, updateXY?: boolean, facility?: {
|
|
176
|
-
Facility_Id?: string;
|
|
177
|
-
Level_Id?: string;
|
|
178
|
-
}): Promise<unknown>;
|
|
179
|
-
/**
|
|
180
|
-
* Get the answers for inspections
|
|
181
|
-
*
|
|
182
|
-
* @category Inspections
|
|
183
|
-
* @param {Array<number>} inspections - An Array of one or more Inspection IDs
|
|
184
|
-
* @return {Object} Returns Promise that represents a collection of Inspection Answers
|
|
185
|
-
*/
|
|
186
|
-
getAnswers(inspections: Array<number>): Promise<unknown>;
|
|
187
|
-
/**
|
|
188
|
-
* Get the audit log for a specific Inspection
|
|
189
|
-
*
|
|
190
|
-
* @category Inspections
|
|
191
|
-
* @param {number} inspectionId - An Inspection ID to get the audit log for
|
|
192
|
-
* @return {Object} Returns Promise that represents a collection of Cityworks Metadata Objects
|
|
193
|
-
*/
|
|
194
|
-
getAuditLog(inspectionId: number): Promise<unknown>;
|
|
195
|
-
/**
|
|
196
|
-
* Create a search definition. Save the definition by setting SaveDefinition = true and supplying a SearchName.
|
|
197
|
-
*
|
|
198
|
-
* @category Inspections
|
|
199
|
-
* @param {Object} searchData - Search data variables. See /{subdirectory}/apidocs/#/service-info/Ams/Inspection
|
|
200
|
-
* @param {number} [searchName] - What to name your search (if it should be saved)
|
|
201
|
-
* @param {number} [sharedWithin] - What group or domain to share the search to.
|
|
202
|
-
* @param {boolean} saveDefinition - Whether or not to save the search definition. Defaults to true when a search name is specified.
|
|
203
|
-
* @param {boolean} enableEurl - Whether or not to enable EURL for the saved search. Defaults to true.
|
|
204
|
-
* @return {Object} Returns Promise that represents a collection of Cityworks Metadata Objects
|
|
205
|
-
*/
|
|
206
|
-
createSearchDefinition(searchData: Object, searchName?: string, sharedWithin?: number, saveDefinition?: boolean, enableEurl?: boolean): Promise<unknown>;
|
|
207
|
-
/**
|
|
208
|
-
* Get cycle from
|
|
209
|
-
*
|
|
210
|
-
* @category Inspection Options
|
|
211
|
-
* @return {Object} Returns Promise that represents ... I have no idea what this endpoint does
|
|
212
|
-
*/
|
|
213
|
-
getCycleFrom(): Promise<unknown>;
|
|
214
|
-
/**
|
|
215
|
-
* Get cycle intervals
|
|
216
|
-
*
|
|
217
|
-
* @category Inspection Options
|
|
218
|
-
* @return {Object} Returns Promise that represents a Dictionary of the cycle intervals available
|
|
219
|
-
*/
|
|
220
|
-
getCycleIntervals(): Promise<unknown>;
|
|
221
|
-
/**
|
|
222
|
-
* Get cycle types
|
|
223
|
-
*
|
|
224
|
-
* @category Inspection Options
|
|
225
|
-
* @return {Object} Returns Promise that represents a Dictionary of the cycle types available
|
|
226
|
-
*/
|
|
227
|
-
getCycleTypes(): Promise<unknown>;
|
|
228
|
-
/**
|
|
229
|
-
* Get districts
|
|
230
|
-
*
|
|
231
|
-
* @category Inspection Options
|
|
232
|
-
* @return {Object} Returns Promise that represents an Array of the districts
|
|
233
|
-
*/
|
|
234
|
-
getDistricts(): Promise<unknown>;
|
|
235
|
-
/**
|
|
236
|
-
* Get Inspection Employee lists. Abstraction done here, though only one employee list field, AFAIK.
|
|
237
|
-
*
|
|
238
|
-
* @category Inspection Options
|
|
239
|
-
* @param {string} listType - Which list (endpoint) to get. Includes only SubmitTos.
|
|
240
|
-
* @param {boolean} includeInactiveEmployees - Whether to include inactive employees in the returned list. Defaults to false.
|
|
241
|
-
* @param {Array<number>} [domainIds] - Filter to certain domains within the Cityworks instance.
|
|
242
|
-
* @return {Object} Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
|
|
243
|
-
*/
|
|
244
|
-
getEmployeeLists(listType: string, includeInactiveEmployees?: boolean, domainIds?: Array<number>): Promise<unknown>;
|
|
245
|
-
/**
|
|
246
|
-
* Get SubmitTo list
|
|
247
|
-
*
|
|
248
|
-
* @category WorkOrder Options
|
|
249
|
-
* @param {boolean} includeInactiveEmployees - Whether to include inactive employees in the returned list. Defaults to false.
|
|
250
|
-
* @param {Array<number>} [domainIds] - Filter to certain domains within the Cityworks instance.
|
|
251
|
-
* @return {Object} Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
|
|
252
|
-
*/
|
|
253
|
-
getSubmitTos(includeInactiveEmployees?: boolean, domainIds?: Array<number>): Promise<unknown>;
|
|
254
|
-
/**
|
|
255
|
-
* Move inspection by InspectionId. Must provide well known id (WKID) or well known text (WKT)
|
|
256
|
-
*
|
|
257
|
-
* @category Inspections
|
|
258
|
-
* @param {number} inspectionId - The ID of the inspection that should be moved
|
|
259
|
-
* @param {number} x - The X coordinate for the move
|
|
260
|
-
* @param {number} y - The Y coordinate for the move
|
|
261
|
-
* @param {Object} projection - Should include at least WKT _or_ WKID attribute. Can also include VcsWKID attribute.
|
|
262
|
-
* @param {number} [z] - the optional Z coordinate for the move
|
|
263
|
-
* @return {Object} Returns Promise that represents an object describing the updated GISPoint
|
|
264
|
-
*/
|
|
265
|
-
move(inspectionId: number, x: number, y: number, projection: {
|
|
266
|
-
WKID?: string;
|
|
267
|
-
WKT?: string;
|
|
268
|
-
VcsWKID?: string;
|
|
269
|
-
}, z?: number): Promise<unknown>;
|
|
270
|
-
/**
|
|
271
|
-
* Get inspection templates
|
|
272
|
-
*
|
|
273
|
-
* @category Inspection Templates
|
|
274
|
-
* @param {Array<string>} [entityTypes] - The Entity Type(s) to return potential inspections for
|
|
275
|
-
* @param {boolean} [canCreate] - If true, only return templates the user can create, ignored if false or null, default is true
|
|
276
|
-
* @param {Object} [options] - An object which can include: [IncludeInactive]: boolean, MaximumDateModified: Date, MinimumDateModified: Date, TemplateIds: Array<number>
|
|
277
|
-
* @return {Object} Returns Promise that represents a collection of all Inspections matching the provided parameters
|
|
278
|
-
*/
|
|
279
|
-
getTemplates(entityTypes?: Array<string>, canCreate?: boolean, options?: {
|
|
280
|
-
IncludeInactive?: boolean;
|
|
281
|
-
MaximumDateModified?: Date;
|
|
282
|
-
MinimumDateModified?: Date;
|
|
283
|
-
TemplateIds?: Array<number>;
|
|
284
|
-
}): Promise<unknown>;
|
|
285
|
-
/**
|
|
286
|
-
* Get a list of templates by IDs
|
|
287
|
-
*
|
|
288
|
-
* @category Inspection Templates
|
|
289
|
-
* @param {Array<number>} inspectionIds - An array of the IDs to retrieve the matched inspections
|
|
290
|
-
* @param {Object} [options] - An object which can include: [IncludeInactive]: boolean, MaximumDateModified: Date, MinimumDateModified: Date, TemplateIds: Array<number>
|
|
291
|
-
* @return {Object} Returns object that represents an object describing the inspection
|
|
292
|
-
*/
|
|
293
|
-
getTemplatesByIds(inspTemplateIds: Array<number>, options?: {
|
|
294
|
-
MaximumDateModified?: Date;
|
|
295
|
-
MinimumDateModified?: Date;
|
|
296
|
-
}): Promise<unknown>;
|
|
297
|
-
/**
|
|
298
|
-
* Get entity types for inspection template(s)
|
|
299
|
-
*
|
|
300
|
-
* @category Inspection Templates
|
|
301
|
-
* @param {Array<number>} inspTemplateIds - An array of the IDs to reopen the matched inspections
|
|
302
|
-
* @return {Object} Returns object that represents an array of Entity Types
|
|
303
|
-
*/
|
|
304
|
-
getTemplateEntityTypes(inspTemplateIds: Array<number>): Promise<unknown>;
|
|
305
|
-
/**
|
|
306
|
-
* Get the questions and answers for inspection template(s)
|
|
307
|
-
*
|
|
308
|
-
* @category Inspection Templates
|
|
309
|
-
* @param {Array<number>} inspTemplateIds - An array of the IDs to reopen the matched inspections
|
|
310
|
-
* @return {Object} Returns object that represents an array which contains a list of InspQuestionPanel for the template
|
|
311
|
-
*/
|
|
312
|
-
getQA(inspTemplateIds: Array<number>): Promise<unknown>;
|
|
313
|
-
/**
|
|
314
|
-
* Get inspection template question conditions
|
|
315
|
-
*
|
|
316
|
-
* @category Inspection Templates
|
|
317
|
-
* @param {Array<number>} inspTemplateIds - An array of template IDs to get the matched inspection template Question conditions for
|
|
318
|
-
* @return {Object} Returns object that represents an array which contains a dictionary of InspQuestion IDs to configs
|
|
319
|
-
*/
|
|
320
|
-
getQConditions(inspTemplateIds: Array<number>): Promise<unknown>;
|
|
321
|
-
/**
|
|
322
|
-
* Get Map Layer Fields
|
|
323
|
-
*
|
|
324
|
-
* @category Inspections
|
|
325
|
-
* @param {number} requestId - The inspection ID to get the map layer fields for.
|
|
326
|
-
* @return {Object} Returns Promise that represents a collection of Objects describing the inspections
|
|
327
|
-
*/
|
|
328
|
-
getMLFs(requestId: number): Promise<unknown>;
|
|
329
|
-
/**
|
|
330
|
-
* Update Map Layer Fields
|
|
331
|
-
*
|
|
332
|
-
* @category Inspections
|
|
333
|
-
* @param {number} requestId - The inspection ID to get the map layer fields for.
|
|
334
|
-
* @param {number} x
|
|
335
|
-
* @param {number} y
|
|
336
|
-
* @param {number} domainId - Domain ID
|
|
337
|
-
* @param {number} [z] - Optional Z coordinate
|
|
338
|
-
* @return {Object} Returns Promise that represents a ...
|
|
339
|
-
*/
|
|
340
|
-
updateMLFs(requestId: number, x?: number, y?: number, domainId?: number, z?: number): Promise<unknown>;
|
|
341
|
-
/**
|
|
342
|
-
* Delete Map Layer Fields
|
|
343
|
-
*
|
|
344
|
-
* @category Inspections
|
|
345
|
-
* @param {number} inspectionId - The inspection ID to delete the map layer fields for.
|
|
346
|
-
* @return {Object} Returns Promise that represents a collection of Objects describing the workorders
|
|
347
|
-
*/
|
|
348
|
-
deleteMLFs(inspectionId: number): Promise<unknown>;
|
|
349
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare class InspectionAdmin {
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
cw: any;
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
constructor(cw: any);
|
|
10
|
-
/**
|
|
11
|
-
* Get inspection templates
|
|
12
|
-
*
|
|
13
|
-
* @category Inspection Templates
|
|
14
|
-
* @param {Array<string>} [entityTypes] - The Entity Type(s) to return potential inspections for
|
|
15
|
-
* @param {boolean} [canCreate] - If true, only return templates the user can create, ignored if false or null, default is true
|
|
16
|
-
* @param {Object} [options] - An object which can include: [IncludeInactive]: boolean, MaximumDateModified: Date, MinimumDateModified: Date, TemplateIds: Array<number>
|
|
17
|
-
* @return {Object} Returns Promise that represents a collection of all Inspections matching the provided parameters
|
|
18
|
-
*/
|
|
19
|
-
getTemplates(entityTypes?: Array<string>, canCreate?: boolean, options?: {
|
|
20
|
-
IncludeInactive?: boolean;
|
|
21
|
-
MaximumDateModified?: Date;
|
|
22
|
-
MinimumDateModified?: Date;
|
|
23
|
-
TemplateIds?: Array<number>;
|
|
24
|
-
}): Promise<unknown>;
|
|
25
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export declare class InspectionCosts {
|
|
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 Inspection Labor Costs
|
|
32
|
-
*
|
|
33
|
-
* @category Inspection Costs
|
|
34
|
-
* @param {number} inspectionId - Inspection ID to add labor costs to
|
|
35
|
-
* @param {number} hours - The hours to add to the inspection
|
|
36
|
-
* @param {Object} options - Additional settings for hours setting
|
|
37
|
-
* @param {boolean} estimated - Boolean, get estimated or real costs, defaults to false (get real by default)
|
|
38
|
-
* @return {Object} Returns Promise that represents an object describing
|
|
39
|
-
*/
|
|
40
|
-
addLabor(inspectionId: number, hours: number, options?: object, estimated?: boolean): Promise<unknown>;
|
|
41
|
-
/**
|
|
42
|
-
* Get Labor Costs for a specific list of Inspections
|
|
43
|
-
*
|
|
44
|
-
* @category Inspection Costs
|
|
45
|
-
* @param {Array<int>} inspectionIds - An array of inspection IDs to get associated costs for.
|
|
46
|
-
* @param {boolean} estimated - Boolean, get estimated or real costs, defaults to false (get real by default)
|
|
47
|
-
* @return {Object} Returns Promise that represents an object describing
|
|
48
|
-
*/
|
|
49
|
-
getLabor(inspectionIds: Array<number>, estimated?: boolean): Promise<unknown>;
|
|
50
|
-
/**
|
|
51
|
-
* Delete Inspection Labor Costs
|
|
52
|
-
*
|
|
53
|
-
* @category Inspection Costs
|
|
54
|
-
* @param {Array<int>} laborCostIds - An array of inspection labor cost IDs to delete
|
|
55
|
-
* @param {boolean} estimated - Boolean, delete estimated or real costs, defaults to false (delete real by default)
|
|
56
|
-
* @return {Object} Returns Promise that represents an object describing
|
|
57
|
-
*/
|
|
58
|
-
deleteLabor(laborCostIds: Array<number>, estimated?: boolean): Promise<unknown>;
|
|
59
|
-
/**
|
|
60
|
-
* Add Inspection Equipment Costs
|
|
61
|
-
*
|
|
62
|
-
* @category Inspection Costs
|
|
63
|
-
* @param {Object} inspectionId - the inspection to add the equipment costs to
|
|
64
|
-
* @param {Object} options - additional options
|
|
65
|
-
* @return {Object} Returns Promise that represents an object describing
|
|
66
|
-
*/
|
|
67
|
-
addEquipment(inspectionId: number, options: Object): Promise<unknown>;
|
|
68
|
-
/**
|
|
69
|
-
* Get Equipment Costs for Inspection(s)
|
|
70
|
-
*
|
|
71
|
-
* @category Inspection Costs
|
|
72
|
-
* @param {Array<number>} inspectionIds - the inspection to get the equipment costs for.
|
|
73
|
-
* @param {Object} estimated - get estimated equipment costs. Defaults to false.
|
|
74
|
-
* @return {Object} Returns Promise that represents an object describing
|
|
75
|
-
*/
|
|
76
|
-
getEquipment(inspectionIds: number, estimated?: boolean): Promise<unknown>;
|
|
77
|
-
/**
|
|
78
|
-
* Delete Inspection Equipment Costs
|
|
79
|
-
*
|
|
80
|
-
* @category Inspection Costs
|
|
81
|
-
* @param {Array<number>} equipmentCostIds - the equipment cost IDs to delete.
|
|
82
|
-
* @param {Object} estimated - delete estimated equipment costs. Defaults to false.
|
|
83
|
-
* @return {Object} Returns Promise that represents an object describing
|
|
84
|
-
*/
|
|
85
|
-
deleteEquipment(equipmentCostIds: Array<number>, estimated?: boolean): Promise<unknown>;
|
|
86
|
-
}
|
package/dist/message_queue.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export declare class MessageQueue {
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
cw: any;
|
|
6
|
-
/**
|
|
7
|
-
* Statuses -
|
|
8
|
-
* Pending: 0,
|
|
9
|
-
* Processing: 1,
|
|
10
|
-
* Complete: 2,
|
|
11
|
-
* Failed: 3
|
|
12
|
-
*/
|
|
13
|
-
status: Object;
|
|
14
|
-
/**
|
|
15
|
-
* Hook Types -
|
|
16
|
-
* Unknown: 0,
|
|
17
|
-
* ActivityUpdate: 1,
|
|
18
|
-
* Email: 2,
|
|
19
|
-
* WebHook: 3
|
|
20
|
-
*/
|
|
21
|
-
hook_types: Object;
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
constructor(cw: any);
|
|
26
|
-
/**
|
|
27
|
-
* Process Webhook MessageQueue records by MessageQueueId
|
|
28
|
-
*
|
|
29
|
-
* @param {Array<number>} [ids] - List of MessageQueueId values
|
|
30
|
-
* @param {boolean} [delete_successful] - automatically delete messages that complete with successful execution, default is false
|
|
31
|
-
* @return {Array<>} Returns Promise object that represents a collection of QueueMessages which have been processed
|
|
32
|
-
*/
|
|
33
|
-
processMessages(ids: Array<number>, delete_successful?: boolean): Promise<unknown>;
|
|
34
|
-
/**
|
|
35
|
-
* Get Messages specified in list of MessageQueueIds
|
|
36
|
-
*
|
|
37
|
-
* @param {Array<number>} ids - List of MessageQueueId values
|
|
38
|
-
* @param {string} status -
|
|
39
|
-
* @param {number} [maxcount] - Maximum number returned. Defaults to 15
|
|
40
|
-
* @return {Array<>} Returns Promise object that represents a collection of QueueMessages which have been processed
|
|
41
|
-
*/
|
|
42
|
-
get(ids: Array<number>, status: string, maxcount?: number): Promise<unknown>;
|
|
43
|
-
/**
|
|
44
|
-
* Delete Messages specified in list of MessageQueueIds
|
|
45
|
-
*
|
|
46
|
-
* @param {Array<number>} ids - List of MessageQueueId values
|
|
47
|
-
* @param {string} status - automatically delete messages that complete with successful execution, default is false
|
|
48
|
-
* @param {number} [hours_to_keep] - utomatically delete messages that complete with successful execution, default is false
|
|
49
|
-
* @return {Array<>} Returns Promise object that represents a collection of QueueMessages which have been processed
|
|
50
|
-
*/
|
|
51
|
-
delete(ids: Array<number>, status: string, hours_to_keep?: number): Promise<unknown>;
|
|
52
|
-
preferences(): Promise<unknown>;
|
|
53
|
-
search(parameters: any, max_results?: number): Promise<unknown>;
|
|
54
|
-
/**
|
|
55
|
-
* Update queue message
|
|
56
|
-
*
|
|
57
|
-
* @param {Object} parameters - Provide allowed parameters:
|
|
58
|
-
*
|
|
59
|
-
* {
|
|
60
|
-
* HookId: number,
|
|
61
|
-
* Id: number,
|
|
62
|
-
* Packet: string,
|
|
63
|
-
* Result: string,
|
|
64
|
-
* Status: string, // Available options: Pending, Processing, Complete, Failed
|
|
65
|
-
* HookType: string // Available options: Unknown, ActivityUpdate, Email, WebHook
|
|
66
|
-
* }
|
|
67
|
-
*
|
|
68
|
-
* @return {Object} Returns Promise object that represents an Object with the desired GIS service definitions
|
|
69
|
-
*/
|
|
70
|
-
update(parameters: any): Promise<unknown>;
|
|
71
|
-
updateMessageStatus(ids: number[], status: string, hours_to_keep?: number): Promise<unknown>;
|
|
72
|
-
getWebooks(hook_ids: any): Promise<unknown>;
|
|
73
|
-
}
|
package/dist/query.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
interface DynamicVariableMap {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}
|
|
4
|
-
interface DynamicResponseDefinition {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
export declare class Query {
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
cw: any;
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
constructor(cw: any);
|
|
16
|
-
/**
|
|
17
|
-
* Build a query using query language syntax or by specifying a saved query ID
|
|
18
|
-
*
|
|
19
|
-
* @category Query
|
|
20
|
-
* @param {number} query - Query to run (specify syntax or queryID)
|
|
21
|
-
* @param {Object} options - Other options. See: /{subdirectory}/apidocs/#/service-info/General/Query
|
|
22
|
-
* @param {number} [domainId] - The domain ID of the domain to search, defaut is authenticated user's current domain
|
|
23
|
-
* @return {Object} Returns Promise object that represents a list of Objects
|
|
24
|
-
*/
|
|
25
|
-
build(query: number | string, options?: {
|
|
26
|
-
Page?: number;
|
|
27
|
-
PageSize?: number;
|
|
28
|
-
SortDescending?: boolean;
|
|
29
|
-
SortField?: string;
|
|
30
|
-
Variables?: DynamicVariableMap;
|
|
31
|
-
}, domainId?: number): Promise<unknown>;
|
|
32
|
-
/**
|
|
33
|
-
* Get available query types
|
|
34
|
-
*
|
|
35
|
-
* @category Query
|
|
36
|
-
* @return {Object} Returns Promise object that represents a list of Objects
|
|
37
|
-
*/
|
|
38
|
-
getTypes(): Promise<unknown>;
|
|
39
|
-
/**
|
|
40
|
-
* Get info about query types
|
|
41
|
-
*
|
|
42
|
-
* @category Query
|
|
43
|
-
* @param {boolean} includeDefaultSchemasInclude - Include schemas (Work Order, Service Request, etc), default is true.
|
|
44
|
-
* @param {boolean} includeGisSchemas - Include gis schemas, ddefault is true.
|
|
45
|
-
* @param {number} [domainId] - The domain ID of the domain to search, defaut is authenticated user's current domain
|
|
46
|
-
* @return {Object} Returns Promise object that represents a list of Objects
|
|
47
|
-
*/
|
|
48
|
-
getTypesInfo(includeDefaultSchemasInclude?: boolean, includeGisSchemas?: boolean, domainId?: number): Promise<unknown>;
|
|
49
|
-
/**
|
|
50
|
-
* Validate a query string
|
|
51
|
-
*
|
|
52
|
-
* @category Query
|
|
53
|
-
* @param {string} query - The query to validate
|
|
54
|
-
* @param {DynamicVariableMap} variables - Required if the query includes variables
|
|
55
|
-
* @param {number} [domainId] - The domain ID of the domain to search, defaut is authenticated user's current domain
|
|
56
|
-
* @return {Object} Returns Promise object that represents a list of Objects
|
|
57
|
-
*/
|
|
58
|
-
validateQuery(query: string, variables: DynamicVariableMap, domainId?: number): Promise<unknown>;
|
|
59
|
-
/**
|
|
60
|
-
* Validate a query response definition
|
|
61
|
-
*
|
|
62
|
-
* @category Query
|
|
63
|
-
* @param {string} queryType - The query to validate
|
|
64
|
-
* @param {DynamicResponseDefinition} responseDefinition - Required if the query includes variables
|
|
65
|
-
* @param {number} [domainId] - The domain ID of the domain to search, defaut is authenticated user's current domain
|
|
66
|
-
* @return {Object} Returns Promise object that represents a list of Objects
|
|
67
|
-
*/
|
|
68
|
-
validateResponseDefinition(queryType: string, responseDefinition: DynamicResponseDefinition, domainId?: number): Promise<unknown>;
|
|
69
|
-
/**
|
|
70
|
-
* Get schema for specified query type
|
|
71
|
-
*
|
|
72
|
-
* @category Query
|
|
73
|
-
* @param {string} queryType - Specify Query Type
|
|
74
|
-
* @param {number} [domainId] - The domain ID of the domain to search, defaut is authenticated user's current domain. Used to determine query field configuration for the schema fields.
|
|
75
|
-
* @return {Object} Returns Promise object that represents a list of Objects
|
|
76
|
-
*/
|
|
77
|
-
getSchema(queryType: string, domainId?: number): Promise<unknown>;
|
|
78
|
-
/**
|
|
79
|
-
* Run a query using query language syntax
|
|
80
|
-
*
|
|
81
|
-
* @category Query
|
|
82
|
-
* @param {number} query - Query syntax string or saved query ID to run. If you want to append addt'l query items to a saved query, add QueryValue in the options
|
|
83
|
-
* @param {Object} options - Other options. See: /{subdirectory}/apidocs/#/service-info/General/Query
|
|
84
|
-
* @return {Object} Returns Promise object that represents a list of Objects
|
|
85
|
-
*/
|
|
86
|
-
run(query: string, options?: {
|
|
87
|
-
QueryValue?: string;
|
|
88
|
-
Page?: number;
|
|
89
|
-
PageSize?: number;
|
|
90
|
-
ResponseFields?: any;
|
|
91
|
-
SortDescending?: boolean;
|
|
92
|
-
SortField?: string;
|
|
93
|
-
Variables?: DynamicVariableMap;
|
|
94
|
-
}): Promise<unknown>;
|
|
95
|
-
/**
|
|
96
|
-
* Get a list of the saved queries the current user can access.
|
|
97
|
-
*
|
|
98
|
-
* @category Query
|
|
99
|
-
* @param {Array<string>} queryTypes - Get the saved queries for a particular type, default is all types
|
|
100
|
-
* @param {boolean} createdOnly - Get only queries created by the current user, default is get all queries current user can access
|
|
101
|
-
* @param {boolean} includeQuery - Restrict GIS searches to specified entity types
|
|
102
|
-
* @param {boolean} [visibleToMobile] - Filter visibility to mobile. Default ignore visibility to mobile.
|
|
103
|
-
* @param {number} [domainId] - The domain ID of the domain to search, defaut is authenticated user's current domain
|
|
104
|
-
* @return {Object} Returns Promise object that represents a collection of SavedQueries
|
|
105
|
-
*/
|
|
106
|
-
getSaved(queryTypes?: Array<string>, createdOnly?: boolean, includeQuery?: boolean, visibleToMobile?: boolean, domainId?: number): Promise<unknown>;
|
|
107
|
-
}
|
|
108
|
-
export {};
|