cityworks 1.0.6 → 2.1.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/dist/activity_link.d.ts +84 -84
- package/dist/attachments.d.ts +134 -75
- package/dist/briefcase.d.ts +274 -241
- package/dist/case_admin.d.ts +349 -349
- package/dist/case_assets.d.ts +89 -89
- package/dist/case_data.d.ts +214 -213
- package/dist/case_financial.d.ts +406 -348
- package/dist/case_people.d.ts +79 -0
- package/dist/case_workflow.d.ts +187 -187
- package/dist/comments.d.ts +53 -53
- package/dist/error.d.ts +57 -57
- package/dist/general.d.ts +78 -78
- package/dist/gis.d.ts +92 -92
- package/dist/index.d.ts +231 -224
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.m.js +1 -1
- package/dist/index.m.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/inspection.d.ts +354 -349
- package/dist/inspection_admin.d.ts +25 -25
- package/dist/inspection_costs.d.ts +86 -86
- package/dist/message_queue.d.ts +73 -73
- package/dist/query.d.ts +108 -108
- package/dist/report.d.ts +28 -0
- package/dist/request.d.ts +369 -372
- package/dist/request_admin.d.ts +18 -18
- package/dist/request_costs.d.ts +54 -54
- package/dist/search.d.ts +138 -138
- package/dist/workorder.d.ts +333 -328
- package/dist/workorder_admin.d.ts +111 -111
- package/dist/workorder_costs.d.ts +113 -113
- package/package.json +12 -12
|
@@ -1,25 +1,25 @@
|
|
|
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
|
+
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 +1,86 @@
|
|
|
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
|
-
}
|
|
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
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
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
|
-
}
|
|
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
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
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 {};
|
|
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 {};
|
package/dist/report.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class Report {
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
cw: any;
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
constructor(cw: any);
|
|
10
|
+
/**
|
|
11
|
+
* Get the pdf "print" report for a specific CW node item
|
|
12
|
+
*
|
|
13
|
+
* @category Reports
|
|
14
|
+
* @param {string} type - The node type (case, workorder, inspection, request)
|
|
15
|
+
* @param {number} node_id - CaseDataGroupId as defined in CaseDataGroup admin.
|
|
16
|
+
* @param {string} fileName - The filename of the report.
|
|
17
|
+
* @return {Object} Returns Promise that represents a file stream of a pdf
|
|
18
|
+
*/
|
|
19
|
+
print(type: string, node_id: number | Array<number>, fileName?: string): Promise<unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Get the custom pdf report from a CW 15.x instance
|
|
22
|
+
*
|
|
23
|
+
* @category Reports
|
|
24
|
+
* @param {number} report_id - CaseDataGroupId as defined in CaseDataGroup admin.
|
|
25
|
+
* @return {Object} Returns Promise that represents a file stream of a pdf
|
|
26
|
+
*/
|
|
27
|
+
get(type: string, node_id: number, fileName: string): Promise<unknown>;
|
|
28
|
+
}
|