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
package/dist/error.d.ts
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
export interface CWErrorMsgs {
|
|
2
|
-
MessageType: number;
|
|
3
|
-
Code: number;
|
|
4
|
-
Service: string;
|
|
5
|
-
Name: string;
|
|
6
|
-
DebugDetails: string;
|
|
7
|
-
DisplayText: string;
|
|
8
|
-
InnerMessage: string | null;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* CWErrorInt interface definition for implementation by CWError
|
|
12
|
-
*
|
|
13
|
-
* `{name: string, code: number, message: string, info?: string}`
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
export interface CWErrorInt {
|
|
17
|
-
name: string;
|
|
18
|
-
code: number;
|
|
19
|
-
message: string;
|
|
20
|
-
error_messages?: Array<CWErrorMsgs>;
|
|
21
|
-
info?: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* CWError implements a custom error class for this codebase with additional information
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
export declare class CWError implements CWErrorInt {
|
|
28
|
-
/**
|
|
29
|
-
* Just statically set to "Cityworks Exception" for now
|
|
30
|
-
*/
|
|
31
|
-
name: string;
|
|
32
|
-
/**
|
|
33
|
-
* Number for the thrown error (Efforts were made to make these unique when thrown throughout the codebase)
|
|
34
|
-
*/
|
|
35
|
-
code: number;
|
|
36
|
-
/**
|
|
37
|
-
* The error message
|
|
38
|
-
*/
|
|
39
|
-
message: string;
|
|
40
|
-
/**
|
|
41
|
-
* The error message
|
|
42
|
-
*/
|
|
43
|
-
error_messages: Array<CWErrorMsgs>;
|
|
44
|
-
/**
|
|
45
|
-
* Object stuffed with any other information one wishes to include in the thrown error
|
|
46
|
-
*/
|
|
47
|
-
info?: string;
|
|
48
|
-
/**
|
|
49
|
-
* CWError implements a custom error class for this codebase with additional information
|
|
50
|
-
*
|
|
51
|
-
* @param {number} code - Number for the thrown error (Efforts were made to make these unique when thrown throughout the codebase)
|
|
52
|
-
* @param {string} message - The error message
|
|
53
|
-
* @param {Object} info - Object stuffed with any other information one wishes to include in the thrown error
|
|
54
|
-
* @return {Object} Returns instance of CWError object
|
|
55
|
-
*/
|
|
56
|
-
constructor(code: number, message: string, info?: any);
|
|
57
|
-
}
|
|
1
|
+
export interface CWErrorMsgs {
|
|
2
|
+
MessageType: number;
|
|
3
|
+
Code: number;
|
|
4
|
+
Service: string;
|
|
5
|
+
Name: string;
|
|
6
|
+
DebugDetails: string;
|
|
7
|
+
DisplayText: string;
|
|
8
|
+
InnerMessage: string | null;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* CWErrorInt interface definition for implementation by CWError
|
|
12
|
+
*
|
|
13
|
+
* `{name: string, code: number, message: string, info?: string}`
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export interface CWErrorInt {
|
|
17
|
+
name: string;
|
|
18
|
+
code: number;
|
|
19
|
+
message: string;
|
|
20
|
+
error_messages?: Array<CWErrorMsgs>;
|
|
21
|
+
info?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* CWError implements a custom error class for this codebase with additional information
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class CWError implements CWErrorInt {
|
|
28
|
+
/**
|
|
29
|
+
* Just statically set to "Cityworks Exception" for now
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Number for the thrown error (Efforts were made to make these unique when thrown throughout the codebase)
|
|
34
|
+
*/
|
|
35
|
+
code: number;
|
|
36
|
+
/**
|
|
37
|
+
* The error message
|
|
38
|
+
*/
|
|
39
|
+
message: string;
|
|
40
|
+
/**
|
|
41
|
+
* The error message
|
|
42
|
+
*/
|
|
43
|
+
error_messages: Array<CWErrorMsgs>;
|
|
44
|
+
/**
|
|
45
|
+
* Object stuffed with any other information one wishes to include in the thrown error
|
|
46
|
+
*/
|
|
47
|
+
info?: string;
|
|
48
|
+
/**
|
|
49
|
+
* CWError implements a custom error class for this codebase with additional information
|
|
50
|
+
*
|
|
51
|
+
* @param {number} code - Number for the thrown error (Efforts were made to make these unique when thrown throughout the codebase)
|
|
52
|
+
* @param {string} message - The error message
|
|
53
|
+
* @param {Object} info - Object stuffed with any other information one wishes to include in the thrown error
|
|
54
|
+
* @return {Object} Returns instance of CWError object
|
|
55
|
+
*/
|
|
56
|
+
constructor(code: number, message: string, info?: any);
|
|
57
|
+
}
|
package/dist/general.d.ts
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A plugin that contains "general" methods for a Cityworks install
|
|
3
|
-
*/
|
|
4
|
-
export declare class General {
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
cw: any;
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
constructor(cw: any);
|
|
13
|
-
/**
|
|
14
|
-
* Get notifications for currently authenticated user
|
|
15
|
-
*
|
|
16
|
-
* @return {Object} Returns Promise object that represents a collection of available notifications
|
|
17
|
-
*/
|
|
18
|
-
notifications(): Promise<unknown>;
|
|
19
|
-
/**
|
|
20
|
-
* Find out if the current user is watching a particular activity (case, task, null [as a string])
|
|
21
|
-
*
|
|
22
|
-
* @param {string} activityType - which activity type the following ID will be for.
|
|
23
|
-
* @param {number} activityId - activity Case or CaseTask (task instance) ID to check
|
|
24
|
-
* @return {Object} Returns Promise object that represents a boolean indicating the currently authenticated user is watching the provided activity
|
|
25
|
-
*/
|
|
26
|
-
amIWatching(activityType: any, activityId: number): Promise<unknown>;
|
|
27
|
-
/**
|
|
28
|
-
* Get CwMetatData by Type and CwSid
|
|
29
|
-
*
|
|
30
|
-
* @param {Array<number>} Ids
|
|
31
|
-
* @param {string} TableName - INSPECTION, REQUEST, WORKORDER require View permission on the activities
|
|
32
|
-
* @return {Object} Returns Promise object that represents a
|
|
33
|
-
*/
|
|
34
|
-
getActivityMetadataByIds(ids: Array<number>, table: string): Promise<unknown>;
|
|
35
|
-
/**
|
|
36
|
-
* Get recent history for authenticated user
|
|
37
|
-
*
|
|
38
|
-
* @return {Object} Returns Promise object that represents a collection of RecentActivity objects
|
|
39
|
-
*/
|
|
40
|
-
getHistory(): Promise<unknown>;
|
|
41
|
-
/**
|
|
42
|
-
* Get cost summary for WorkOrder entities
|
|
43
|
-
*
|
|
44
|
-
* @param {Array<number>} ObjectIds
|
|
45
|
-
* @return {Object} Returns Promise object that represents a
|
|
46
|
-
*/
|
|
47
|
-
getWOEntityCostSummary(object_ids: Array<number>): Promise<unknown>;
|
|
48
|
-
/**
|
|
49
|
-
* Get cost summary for WorkOrder entities selected through a search definition
|
|
50
|
-
*
|
|
51
|
-
* @param {number} SearchId - Search Definition Id
|
|
52
|
-
* @return {Object} Returns Promise object that represents a
|
|
53
|
-
*/
|
|
54
|
-
searchWOEntityCostSummary(search_id: number): Promise<unknown>;
|
|
55
|
-
/**
|
|
56
|
-
* Get Holidays
|
|
57
|
-
*
|
|
58
|
-
* @param {Date} startDate - Date to search for Holidays, including this date.
|
|
59
|
-
* @param {Date} [endDate] - If not specified, Holidays _on_ startDate are returned. If specified, Holidays on startDate up to, but not including endDate are returned.
|
|
60
|
-
* @return {Object} Returns Promise object that represents a list of the holiday(s) found
|
|
61
|
-
*/
|
|
62
|
-
getHolidays(startDate: Date, endDate?: Date): Promise<unknown>;
|
|
63
|
-
/**
|
|
64
|
-
* Add Holidays
|
|
65
|
-
*
|
|
66
|
-
* @param {Date} holiday - The holiday's date
|
|
67
|
-
* @param {string} description - The holiday's name/description
|
|
68
|
-
* @return {Object} Returns Promise object that represents a
|
|
69
|
-
*/
|
|
70
|
-
addHolidays(holiday: Date, description: string): Promise<unknown>;
|
|
71
|
-
/**
|
|
72
|
-
* Delete Holidays
|
|
73
|
-
*
|
|
74
|
-
* @param {Array<Date>} holidays - List of datetimes which should have holidays deleted
|
|
75
|
-
* @return {Object} Returns Promise object that represents a
|
|
76
|
-
*/
|
|
77
|
-
deleteHolidays(holidays: Array<Date>): Promise<unknown>;
|
|
78
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* A plugin that contains "general" methods for a Cityworks install
|
|
3
|
+
*/
|
|
4
|
+
export declare class General {
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
cw: any;
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
constructor(cw: any);
|
|
13
|
+
/**
|
|
14
|
+
* Get notifications for currently authenticated user
|
|
15
|
+
*
|
|
16
|
+
* @return {Object} Returns Promise object that represents a collection of available notifications
|
|
17
|
+
*/
|
|
18
|
+
notifications(): Promise<unknown>;
|
|
19
|
+
/**
|
|
20
|
+
* Find out if the current user is watching a particular activity (case, task, null [as a string])
|
|
21
|
+
*
|
|
22
|
+
* @param {string} activityType - which activity type the following ID will be for.
|
|
23
|
+
* @param {number} activityId - activity Case or CaseTask (task instance) ID to check
|
|
24
|
+
* @return {Object} Returns Promise object that represents a boolean indicating the currently authenticated user is watching the provided activity
|
|
25
|
+
*/
|
|
26
|
+
amIWatching(activityType: any, activityId: number): Promise<unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* Get CwMetatData by Type and CwSid
|
|
29
|
+
*
|
|
30
|
+
* @param {Array<number>} Ids
|
|
31
|
+
* @param {string} TableName - INSPECTION, REQUEST, WORKORDER require View permission on the activities
|
|
32
|
+
* @return {Object} Returns Promise object that represents a
|
|
33
|
+
*/
|
|
34
|
+
getActivityMetadataByIds(ids: Array<number>, table: string): Promise<unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* Get recent history for authenticated user
|
|
37
|
+
*
|
|
38
|
+
* @return {Object} Returns Promise object that represents a collection of RecentActivity objects
|
|
39
|
+
*/
|
|
40
|
+
getHistory(): Promise<unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Get cost summary for WorkOrder entities
|
|
43
|
+
*
|
|
44
|
+
* @param {Array<number>} ObjectIds
|
|
45
|
+
* @return {Object} Returns Promise object that represents a
|
|
46
|
+
*/
|
|
47
|
+
getWOEntityCostSummary(object_ids: Array<number>): Promise<unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* Get cost summary for WorkOrder entities selected through a search definition
|
|
50
|
+
*
|
|
51
|
+
* @param {number} SearchId - Search Definition Id
|
|
52
|
+
* @return {Object} Returns Promise object that represents a
|
|
53
|
+
*/
|
|
54
|
+
searchWOEntityCostSummary(search_id: number): Promise<unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* Get Holidays
|
|
57
|
+
*
|
|
58
|
+
* @param {Date} startDate - Date to search for Holidays, including this date.
|
|
59
|
+
* @param {Date} [endDate] - If not specified, Holidays _on_ startDate are returned. If specified, Holidays on startDate up to, but not including endDate are returned.
|
|
60
|
+
* @return {Object} Returns Promise object that represents a list of the holiday(s) found
|
|
61
|
+
*/
|
|
62
|
+
getHolidays(startDate: Date, endDate?: Date): Promise<unknown>;
|
|
63
|
+
/**
|
|
64
|
+
* Add Holidays
|
|
65
|
+
*
|
|
66
|
+
* @param {Date} holiday - The holiday's date
|
|
67
|
+
* @param {string} description - The holiday's name/description
|
|
68
|
+
* @return {Object} Returns Promise object that represents a
|
|
69
|
+
*/
|
|
70
|
+
addHolidays(holiday: Date, description: string): Promise<unknown>;
|
|
71
|
+
/**
|
|
72
|
+
* Delete Holidays
|
|
73
|
+
*
|
|
74
|
+
* @param {Array<Date>} holidays - List of datetimes which should have holidays deleted
|
|
75
|
+
* @return {Object} Returns Promise object that represents a
|
|
76
|
+
*/
|
|
77
|
+
deleteHolidays(holidays: Array<Date>): Promise<unknown>;
|
|
78
|
+
}
|
package/dist/gis.d.ts
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
export declare class Gis {
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
cw: any;
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
constructor(cw: any);
|
|
10
|
-
/**
|
|
11
|
-
* Get gis service configuration for user, group, domain, or service id
|
|
12
|
-
*
|
|
13
|
-
* @param {string} [whichType] - domain, group, mapservice, or user
|
|
14
|
-
* @param {number} [whichId] - domain, group, mapservice, or user Id
|
|
15
|
-
* @param {number} [getGisData] - If true, check for feature server JSON data, default is true
|
|
16
|
-
* @param {Array<string>} [context] Filter returned list by specific context, i.e. Office, Field, Mobile, Public, etc. Default is all.
|
|
17
|
-
* @return {Object} Returns Promise object that represents an Object with the desired GIS service definitions
|
|
18
|
-
*/
|
|
19
|
-
getConfig(whichType: any, whichId: any, getGisData?: boolean, context?: Array<string>): Promise<unknown>;
|
|
20
|
-
/**
|
|
21
|
-
* Get domain gis services
|
|
22
|
-
*
|
|
23
|
-
* @param {number} domainId - The mobile map cache Id to download
|
|
24
|
-
* @return {Object} Returns Promise object that represents an Object with the domain's default GIS services
|
|
25
|
-
*/
|
|
26
|
-
domain(domainId: any, getGisData?: boolean): Promise<unknown>;
|
|
27
|
-
/**
|
|
28
|
-
* Download mobile map cache
|
|
29
|
-
*
|
|
30
|
-
* @param {number} cacheId - The mobile map cache Id to download
|
|
31
|
-
* @return {Object} Returns Promise object that represents a streaming download (?)
|
|
32
|
-
*/
|
|
33
|
-
downloadMobile(cacheId: any, getGisData?: boolean): Promise<unknown>;
|
|
34
|
-
/**
|
|
35
|
-
* Get initial extent for user
|
|
36
|
-
*
|
|
37
|
-
* @return {Object} Returns Promise object that represents ... (?)
|
|
38
|
-
*/
|
|
39
|
-
initialExtent(): Promise<unknown>;
|
|
40
|
-
/**
|
|
41
|
-
* Get service request gis services
|
|
42
|
-
*
|
|
43
|
-
* @param {number} requestId - The WorkOrder to check against.
|
|
44
|
-
* @param {boolean} getGisData - If true, check for feature server JSON data, default is true.
|
|
45
|
-
* @return {Object} Returns Promise object that represents an Object with the specified request's entit(y|ies)
|
|
46
|
-
*/
|
|
47
|
-
request(requestId: any, getGisData?: boolean): Promise<unknown>;
|
|
48
|
-
/**
|
|
49
|
-
* Get inspection gis services
|
|
50
|
-
*
|
|
51
|
-
* @param {number} inspectionId - The WorkOrder to check against.
|
|
52
|
-
* @param {boolean} getGisData - If true, check for feature server JSON data, default is true.
|
|
53
|
-
* @return {Object} Returns Promise object that represents an Object with the specified inspection's entity
|
|
54
|
-
*/
|
|
55
|
-
inspection(inspectionId: any, getGisData?: boolean): Promise<unknown>;
|
|
56
|
-
/**
|
|
57
|
-
* Get workorder gis services
|
|
58
|
-
*
|
|
59
|
-
* @param {number} workOrderSid - The WorkOrder to check against.
|
|
60
|
-
* @param {boolean} getGisData - If true, check for feature server JSON data, default is true.
|
|
61
|
-
* @return {Object} Returns Promise object that represents an Object with the specified WorkOrder's entit(y|ies)
|
|
62
|
-
*/
|
|
63
|
-
workOrder(workOrderSid: any, getGisData?: boolean): Promise<unknown>;
|
|
64
|
-
/**
|
|
65
|
-
* Get service request gis services
|
|
66
|
-
*
|
|
67
|
-
* @param {Array<string>} [context] Filter returned list by specific context, i.e. Office, Field, Mobile, Public, etc. Default is all.
|
|
68
|
-
* @param {boolean} [allDomains] services assigned to any domain the user belongs to, default is true
|
|
69
|
-
* @param {boolean} [allGroups] services assigned to any groups the user belongs to regardless of domain, default is true
|
|
70
|
-
* @param {boolean} [getGisData] If true, check for feature server JSON data, default is true
|
|
71
|
-
* @return {Object} Returns Promise object that represents an Object with the user's GIS services
|
|
72
|
-
*/
|
|
73
|
-
user(context?: Array<string>, allDomains?: boolean, allGroups?: boolean, getGisData?: boolean): Promise<unknown>;
|
|
74
|
-
/**
|
|
75
|
-
* Get Geocode server info by ServerId
|
|
76
|
-
*
|
|
77
|
-
* @param {number} ServiceId
|
|
78
|
-
* @return {Object} Returns Promise object that represents an object describing the provided Geocoder service configuration
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* Get currently selected entities from the Cityworks install's session for your user
|
|
82
|
-
* @return {Object} Returns Promise object that represents an Object with the currently-selected entities
|
|
83
|
-
*/
|
|
84
|
-
selectedEntities(): Promise<unknown>;
|
|
85
|
-
/**
|
|
86
|
-
* Get attributes available for provided entity
|
|
87
|
-
*
|
|
88
|
-
* @param {string} entityType - The entity type to describe
|
|
89
|
-
* @return {Object} Returns Promise object that represents a collection of attribute description objects
|
|
90
|
-
*/
|
|
91
|
-
getEntityAttributes(entityType: string): Promise<unknown>;
|
|
92
|
-
}
|
|
1
|
+
export declare class Gis {
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
cw: any;
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
constructor(cw: any);
|
|
10
|
+
/**
|
|
11
|
+
* Get gis service configuration for user, group, domain, or service id
|
|
12
|
+
*
|
|
13
|
+
* @param {string} [whichType] - domain, group, mapservice, or user
|
|
14
|
+
* @param {number} [whichId] - domain, group, mapservice, or user Id
|
|
15
|
+
* @param {number} [getGisData] - If true, check for feature server JSON data, default is true
|
|
16
|
+
* @param {Array<string>} [context] Filter returned list by specific context, i.e. Office, Field, Mobile, Public, etc. Default is all.
|
|
17
|
+
* @return {Object} Returns Promise object that represents an Object with the desired GIS service definitions
|
|
18
|
+
*/
|
|
19
|
+
getConfig(whichType: any, whichId: any, getGisData?: boolean, context?: Array<string>): Promise<unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Get domain gis services
|
|
22
|
+
*
|
|
23
|
+
* @param {number} domainId - The mobile map cache Id to download
|
|
24
|
+
* @return {Object} Returns Promise object that represents an Object with the domain's default GIS services
|
|
25
|
+
*/
|
|
26
|
+
domain(domainId: any, getGisData?: boolean): Promise<unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* Download mobile map cache
|
|
29
|
+
*
|
|
30
|
+
* @param {number} cacheId - The mobile map cache Id to download
|
|
31
|
+
* @return {Object} Returns Promise object that represents a streaming download (?)
|
|
32
|
+
*/
|
|
33
|
+
downloadMobile(cacheId: any, getGisData?: boolean): Promise<unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* Get initial extent for user
|
|
36
|
+
*
|
|
37
|
+
* @return {Object} Returns Promise object that represents ... (?)
|
|
38
|
+
*/
|
|
39
|
+
initialExtent(): Promise<unknown>;
|
|
40
|
+
/**
|
|
41
|
+
* Get service request gis services
|
|
42
|
+
*
|
|
43
|
+
* @param {number} requestId - The WorkOrder to check against.
|
|
44
|
+
* @param {boolean} getGisData - If true, check for feature server JSON data, default is true.
|
|
45
|
+
* @return {Object} Returns Promise object that represents an Object with the specified request's entit(y|ies)
|
|
46
|
+
*/
|
|
47
|
+
request(requestId: any, getGisData?: boolean): Promise<unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* Get inspection gis services
|
|
50
|
+
*
|
|
51
|
+
* @param {number} inspectionId - The WorkOrder to check against.
|
|
52
|
+
* @param {boolean} getGisData - If true, check for feature server JSON data, default is true.
|
|
53
|
+
* @return {Object} Returns Promise object that represents an Object with the specified inspection's entity
|
|
54
|
+
*/
|
|
55
|
+
inspection(inspectionId: any, getGisData?: boolean): Promise<unknown>;
|
|
56
|
+
/**
|
|
57
|
+
* Get workorder gis services
|
|
58
|
+
*
|
|
59
|
+
* @param {number} workOrderSid - The WorkOrder to check against.
|
|
60
|
+
* @param {boolean} getGisData - If true, check for feature server JSON data, default is true.
|
|
61
|
+
* @return {Object} Returns Promise object that represents an Object with the specified WorkOrder's entit(y|ies)
|
|
62
|
+
*/
|
|
63
|
+
workOrder(workOrderSid: any, getGisData?: boolean): Promise<unknown>;
|
|
64
|
+
/**
|
|
65
|
+
* Get service request gis services
|
|
66
|
+
*
|
|
67
|
+
* @param {Array<string>} [context] Filter returned list by specific context, i.e. Office, Field, Mobile, Public, etc. Default is all.
|
|
68
|
+
* @param {boolean} [allDomains] services assigned to any domain the user belongs to, default is true
|
|
69
|
+
* @param {boolean} [allGroups] services assigned to any groups the user belongs to regardless of domain, default is true
|
|
70
|
+
* @param {boolean} [getGisData] If true, check for feature server JSON data, default is true
|
|
71
|
+
* @return {Object} Returns Promise object that represents an Object with the user's GIS services
|
|
72
|
+
*/
|
|
73
|
+
user(context?: Array<string>, allDomains?: boolean, allGroups?: boolean, getGisData?: boolean): Promise<unknown>;
|
|
74
|
+
/**
|
|
75
|
+
* Get Geocode server info by ServerId
|
|
76
|
+
*
|
|
77
|
+
* @param {number} ServiceId
|
|
78
|
+
* @return {Object} Returns Promise object that represents an object describing the provided Geocoder service configuration
|
|
79
|
+
*/
|
|
80
|
+
/**
|
|
81
|
+
* Get currently selected entities from the Cityworks install's session for your user
|
|
82
|
+
* @return {Object} Returns Promise object that represents an Object with the currently-selected entities
|
|
83
|
+
*/
|
|
84
|
+
selectedEntities(): Promise<unknown>;
|
|
85
|
+
/**
|
|
86
|
+
* Get attributes available for provided entity
|
|
87
|
+
*
|
|
88
|
+
* @param {string} entityType - The entity type to describe
|
|
89
|
+
* @return {Object} Returns Promise object that represents a collection of attribute description objects
|
|
90
|
+
*/
|
|
91
|
+
getEntityAttributes(entityType: string): Promise<unknown>;
|
|
92
|
+
}
|