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
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare class CasePeople {
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
cw: any;
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
constructor(cw: Object);
|
|
10
|
+
/**
|
|
11
|
+
* Add a people record to a case
|
|
12
|
+
*
|
|
13
|
+
* @category Case People
|
|
14
|
+
* @param {number} caObjectId - The Case Object ID for the case to which to add the person
|
|
15
|
+
* @param {number} name - The name of the person to add to the case.
|
|
16
|
+
* @param {Object} [options] - See /{subdirectory}/apidocs/#/service-info/Pll/CasePeople for more options.
|
|
17
|
+
* @return {Object} Returns Promise that represents an object describing the newly-added person. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPeopleItemBase
|
|
18
|
+
*/
|
|
19
|
+
add(caObjectId: number, name: string, options?: Object): Promise<unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Get all the people roles available
|
|
22
|
+
*
|
|
23
|
+
* @category Case People
|
|
24
|
+
* @return {Object} Returns Promise that represents an collection of configured People Roles
|
|
25
|
+
*/
|
|
26
|
+
getRoles(): Promise<unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* Get people records attached to a specific case
|
|
29
|
+
*
|
|
30
|
+
* @category Case People
|
|
31
|
+
* @param {number} caObjectId - The Case Object ID for the case to which to add the person
|
|
32
|
+
* @return {Object} Returns Promise that represents an object describing the newly-added person. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPeopleItemBase
|
|
33
|
+
*/
|
|
34
|
+
get(caObjectId: number): Promise<unknown>;
|
|
35
|
+
/**
|
|
36
|
+
* Delete specific people records
|
|
37
|
+
*
|
|
38
|
+
* @category Case People
|
|
39
|
+
* @param {number} caPeopleId - The Case Object ID for the case to which to add the person
|
|
40
|
+
* @return {Object} Returns Promise that represents the result of the delete operation.
|
|
41
|
+
*/
|
|
42
|
+
delete(caPeopleId: number): Promise<unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* Delete all people records attached to a specific case
|
|
45
|
+
*
|
|
46
|
+
* @category Case People
|
|
47
|
+
* @param {number} caObjectId - The Case Object ID for the case to which to add the person
|
|
48
|
+
* @return {Object} Returns Promise that represents the result of the delete operation.
|
|
49
|
+
*/
|
|
50
|
+
deleteAll(caObjectId: number): Promise<unknown>;
|
|
51
|
+
/**
|
|
52
|
+
* Search for people records
|
|
53
|
+
*
|
|
54
|
+
* @category Case People
|
|
55
|
+
* @param {number} searchOptions - Where you specify search options that assume a logical 'and' operation
|
|
56
|
+
* @param {boolean} idsOnly - If you only wants the IDs of the people records that match the search criteria, set this to true. Otherwise, set it to false.
|
|
57
|
+
* @return {Object} Returns Promise that represents an array of people record IDs that match the search criteria.
|
|
58
|
+
*/
|
|
59
|
+
search(searchOptions: {
|
|
60
|
+
AddressLine1: string;
|
|
61
|
+
AddressLine2: string;
|
|
62
|
+
CaObjectId: number;
|
|
63
|
+
CaPeopleId: number;
|
|
64
|
+
CityName: string;
|
|
65
|
+
CountryCode: string;
|
|
66
|
+
CountryName: string;
|
|
67
|
+
Email: string;
|
|
68
|
+
Name: string;
|
|
69
|
+
PhoneHome: string;
|
|
70
|
+
PhoneMobile: string;
|
|
71
|
+
PhoneWork: string;
|
|
72
|
+
RoleCode: string;
|
|
73
|
+
RoleDesc: string;
|
|
74
|
+
RoleId: number;
|
|
75
|
+
StateCode: string;
|
|
76
|
+
StateName: string;
|
|
77
|
+
ZipCode: string;
|
|
78
|
+
}, idsOnly?: boolean): Promise<unknown>;
|
|
79
|
+
}
|
package/dist/case_workflow.d.ts
CHANGED
|
@@ -1,187 +1,187 @@
|
|
|
1
|
-
export declare class CaseWorkflow {
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
cw: any;
|
|
6
|
-
/**
|
|
7
|
-
* Task sub-methods
|
|
8
|
-
*/
|
|
9
|
-
task: Object;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
constructor(cw: any);
|
|
14
|
-
/**
|
|
15
|
-
* Adds a task to the case specified by the CaObectId.
|
|
16
|
-
*
|
|
17
|
-
* @category Tasks
|
|
18
|
-
* @param {number} caObjectId - The Case Object to attach the task to
|
|
19
|
-
* @param {number} taskId - The task ID to add to the case workflow
|
|
20
|
-
* @param {number} startPoint - The start point in the workflow for the task
|
|
21
|
-
* @param {number} endPoint - The end point in the workflow for the task
|
|
22
|
-
* @param {Object} [options] - Options for the Task. See /{subdirectory}/apidocs/#/service-info/Pll/CaseTask
|
|
23
|
-
* @return {Object} Returns Promise that represents an object describing CaTaskItemBase.
|
|
24
|
-
*/
|
|
25
|
-
addTask(caObjectId: number, taskId: number, startPoint: number, endPoint: number, options?: Object): Promise<unknown>;
|
|
26
|
-
/**
|
|
27
|
-
* Add Task Result
|
|
28
|
-
*
|
|
29
|
-
* @category Task Results
|
|
30
|
-
* @param {number} caObjectId - The Case Object to attach the task to
|
|
31
|
-
* @param {number} caTaskId - The Case task ID to add the result to
|
|
32
|
-
* @param {number} resultCode - The result Code
|
|
33
|
-
* @param {number} resultID - The result ID
|
|
34
|
-
* @param {number} resultSetID - The result set ID
|
|
35
|
-
* @param {Object} [options] - Options for the Task. See /{subdirectory}/apidocs/#/service-info/Pll/CaseTaskResults
|
|
36
|
-
* @return {Object} Returns Promise that represents an object describing CaTaskResultsItem.
|
|
37
|
-
*/
|
|
38
|
-
addTaskResult(caObjectId: number, caTaskId: number, resultCode: number, resultID: number, resultSetID: number, options?: Object): Promise<unknown>;
|
|
39
|
-
/**
|
|
40
|
-
* Add Task Comment
|
|
41
|
-
*
|
|
42
|
-
* @category Comments
|
|
43
|
-
* @param {number} caTaskId - The Case task ID of the task to add the comment to
|
|
44
|
-
* @param {string} comment - The comment text
|
|
45
|
-
* @return {Object} Returns Promise that represents an object describing CaTaskCommentsItemBase.
|
|
46
|
-
*/
|
|
47
|
-
addTaskComment(caTaskId: number, comment: string): Promise<unknown>;
|
|
48
|
-
/**
|
|
49
|
-
* Get tasks by CaObjectId
|
|
50
|
-
*
|
|
51
|
-
* @category Tasks
|
|
52
|
-
* @param {number} caObjectId - The Case Object to get the attached tasks
|
|
53
|
-
* @param {boolean} checkRelatedItems - Wherther to check related items. Defaults to false.
|
|
54
|
-
* @return {Object} Returns Promise that represents a collection of the CaTaskItemBases.
|
|
55
|
-
*/
|
|
56
|
-
getTasksByCaseId(caObjectId: number, checkRelatedItems?: boolean): Promise<unknown>;
|
|
57
|
-
/**
|
|
58
|
-
* Get tasks by TaskIds
|
|
59
|
-
*
|
|
60
|
-
* @category Tasks
|
|
61
|
-
* @param {Array<number>} caTaskIds - The IDs of the tasks to retrieve
|
|
62
|
-
* @param {boolean} checkRelatedItems - Wherther to check related items. Defaults to false.
|
|
63
|
-
* @return {Object} Returns Promise that represents a collection of the CaTaskItemBases.
|
|
64
|
-
*/
|
|
65
|
-
getTasksById(caTaskIds: Array<number>, checkRelatedItems?: boolean): Promise<unknown>;
|
|
66
|
-
/**
|
|
67
|
-
* Get CaTaskResultsItem by CaTaskIds
|
|
68
|
-
*
|
|
69
|
-
* @category Task Results
|
|
70
|
-
* @param {Array<number>} caTaskIds - The IDs of the tasks for which to retrieve results
|
|
71
|
-
* @return {Object} Returns Promise that represents a collection of CaTaskResultsItems.
|
|
72
|
-
*/
|
|
73
|
-
getResultsByTaskId(caTaskIds: Array<number>): Promise<unknown>;
|
|
74
|
-
/**
|
|
75
|
-
* Search for CaseTaskComments by CaTaskId
|
|
76
|
-
*
|
|
77
|
-
* @category Comments
|
|
78
|
-
* @param {number} caTaskId - The task ID for which to retrieve attached comments
|
|
79
|
-
* @return {Object} Returns Promise that represents a collection of CommentRecords.
|
|
80
|
-
*/
|
|
81
|
-
getCommentsForTask(caTaskId: number): Promise<unknown>;
|
|
82
|
-
/**
|
|
83
|
-
* Search for CaseTaskComments by CaTaskId
|
|
84
|
-
*
|
|
85
|
-
* @category Comments
|
|
86
|
-
* @param {Array<number>} caTaskIds - The task IDs for which to retrieve attached comments
|
|
87
|
-
* @return {Object} Returns Promise that represents a collection of CaTaskCommentsItemBase.
|
|
88
|
-
*/
|
|
89
|
-
getCommentsForTasks(caTaskIds: Array<number>): Promise<unknown>;
|
|
90
|
-
/**
|
|
91
|
-
* Updates a task
|
|
92
|
-
*
|
|
93
|
-
* @category Tasks
|
|
94
|
-
* @param {number} caTaskId - The Case Object to attach the task to
|
|
95
|
-
* @param {Object} [options] - Options for Task. See /{subdirectory}/apidocs/#/service-info/Pll/CaseTask
|
|
96
|
-
* @return {Object} Returns Promise that represents an object describing CaTaskItemBase.
|
|
97
|
-
*/
|
|
98
|
-
updateTask(caTaskId: number, options?: Object): Promise<unknown>;
|
|
99
|
-
/**
|
|
100
|
-
* Update Task Comment
|
|
101
|
-
*
|
|
102
|
-
* @category Comments
|
|
103
|
-
* @param {number} caTaskCommentId - The Case task ID of the task to add the comment to
|
|
104
|
-
* @param {string} comment - The comment text
|
|
105
|
-
* @param {number} commentId - Probably unnecessary?
|
|
106
|
-
* @return {Object} Returns Promise that represents an object describing CaTaskCommentsItemBase.
|
|
107
|
-
*/
|
|
108
|
-
updateTaskComment(caTaskCommentId: number, comment: string, commentId?: number): Promise<unknown>;
|
|
109
|
-
/**
|
|
110
|
-
* Updates a task
|
|
111
|
-
*
|
|
112
|
-
* @category Tasks
|
|
113
|
-
* @param {number} caTaskId - The Case Object to attach the task to
|
|
114
|
-
* @param {string} resultCode - The result code to set for the specified Task
|
|
115
|
-
* @param {Object} [options] - Options for Task. Specify either or both TaskCompletedBy & TaskCompleteDate. See /{subdirectory}/apidocs/#/service-info/Pll/CaseTask
|
|
116
|
-
* @return {Object} Returns Promise that represents an object describing CaTaskItemBase.
|
|
117
|
-
*/
|
|
118
|
-
setTaskResult(caTaskId: number, resultCode: string, options?: Object): Promise<unknown>;
|
|
119
|
-
/**
|
|
120
|
-
* Deletes a task by TaskID
|
|
121
|
-
*
|
|
122
|
-
* @category Tasks
|
|
123
|
-
* @param {number} caTaskId - The caTaskId for the task which should be deleted
|
|
124
|
-
* @return {Object} Returns Promise that represents an object describing CaTaskItemBase.
|
|
125
|
-
*/
|
|
126
|
-
deleteTask(caTaskId: number): Promise<unknown>;
|
|
127
|
-
/**
|
|
128
|
-
* Deletes a task by TaskID
|
|
129
|
-
*
|
|
130
|
-
* @category Tasks
|
|
131
|
-
* @param {number} caTaskId - The caTaskId for the task which should be deleted
|
|
132
|
-
* @return {Object} Returns Promise that represents the number of the CaObjectID
|
|
133
|
-
*/
|
|
134
|
-
deleteTasksOnCase(caObjectId: number): Promise<unknown>;
|
|
135
|
-
/**
|
|
136
|
-
* Deletes tasks by TaskID
|
|
137
|
-
*
|
|
138
|
-
* @category Comments
|
|
139
|
-
* @param {Array<number>} caTaskCommentIds - The comments to delete
|
|
140
|
-
* @return {Object} Returns Promise that represents a dictionary of comment IDs.
|
|
141
|
-
*/
|
|
142
|
-
deleteTaskComments(caTaskCommentIds: Array<number>): Promise<unknown>;
|
|
143
|
-
/**
|
|
144
|
-
* Search for Case Tasks. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields
|
|
145
|
-
*
|
|
146
|
-
* @category Tasks
|
|
147
|
-
* @param {Object} filters - The parameters to search by. (ResponsibleUserId, TaskAvailable, TaskComplete, TaskType)
|
|
148
|
-
* @return {Object} Returns Promise that represents a collection of resulting CaTaskIDs
|
|
149
|
-
*/
|
|
150
|
-
searchForTasks(filters?: Object): Promise<unknown>;
|
|
151
|
-
/**
|
|
152
|
-
* Search for CaseTaskResults Objects. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields
|
|
153
|
-
*
|
|
154
|
-
* @category Task Results
|
|
155
|
-
* @param {Object} filters - The parameters to search by. See: /{subdirectory}/apidocs/#/service-info/Pll/CaseTaskResults
|
|
156
|
-
* @return {Object} Returns Promise that represents a collection of resulting CaTaskResultsItem
|
|
157
|
-
*/
|
|
158
|
-
searchForTaskResults(filters?: Object): Promise<unknown>;
|
|
159
|
-
/**
|
|
160
|
-
* Adds a task to the case specified by the CaObectId.
|
|
161
|
-
*
|
|
162
|
-
* @category Task Attachments
|
|
163
|
-
* @param {number} caTaskId - The Task ID to attach the document to
|
|
164
|
-
* @param {number} caObjectId - The Case Object ID
|
|
165
|
-
* @param {string} docName - The file name as it should display in the system
|
|
166
|
-
* @param {string} locationType - The location of the file...leave blank
|
|
167
|
-
* @param {any} file - The binary string for the file
|
|
168
|
-
* @return {Object} Returns Promise that represents an object describing added Attachment
|
|
169
|
-
*/
|
|
170
|
-
addTaskAttachment(caTaskId: number, caObjectId: number, docName: number, file: any, locationType?: string): Promise<unknown>;
|
|
171
|
-
/**
|
|
172
|
-
* Gets each Document Attached to the specified Task
|
|
173
|
-
*
|
|
174
|
-
* @category Task Attachments
|
|
175
|
-
* @param {number} caTaskId - The Task ID to attach the document to
|
|
176
|
-
* @return {Object} Returns Promise that represents a collection of objects describing each Attachment on the provided task
|
|
177
|
-
*/
|
|
178
|
-
getTaskAttachments(caTaskId: number): Promise<unknown>;
|
|
179
|
-
/**
|
|
180
|
-
* Deletes a task attachment by caRelDocId (Related Case Document ID). Same as RelDocs delete for case.
|
|
181
|
-
*
|
|
182
|
-
* @category Task Attachments
|
|
183
|
-
* @param {number} caRelDocId - The caRelDocId for the related document which should be deleted
|
|
184
|
-
* @return {Object} Returns Promise that represents the an object describing the deleted document.
|
|
185
|
-
*/
|
|
186
|
-
deleteTaskAttachment(caRelDocId: number): Promise<unknown>;
|
|
187
|
-
}
|
|
1
|
+
export declare class CaseWorkflow {
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
cw: any;
|
|
6
|
+
/**
|
|
7
|
+
* Task sub-methods
|
|
8
|
+
*/
|
|
9
|
+
task: Object;
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(cw: any);
|
|
14
|
+
/**
|
|
15
|
+
* Adds a task to the case specified by the CaObectId.
|
|
16
|
+
*
|
|
17
|
+
* @category Tasks
|
|
18
|
+
* @param {number} caObjectId - The Case Object to attach the task to
|
|
19
|
+
* @param {number} taskId - The task ID to add to the case workflow
|
|
20
|
+
* @param {number} startPoint - The start point in the workflow for the task
|
|
21
|
+
* @param {number} endPoint - The end point in the workflow for the task
|
|
22
|
+
* @param {Object} [options] - Options for the Task. See /{subdirectory}/apidocs/#/service-info/Pll/CaseTask
|
|
23
|
+
* @return {Object} Returns Promise that represents an object describing CaTaskItemBase.
|
|
24
|
+
*/
|
|
25
|
+
addTask(caObjectId: number, taskId: number, startPoint: number, endPoint: number, options?: Object): Promise<unknown>;
|
|
26
|
+
/**
|
|
27
|
+
* Add Task Result
|
|
28
|
+
*
|
|
29
|
+
* @category Task Results
|
|
30
|
+
* @param {number} caObjectId - The Case Object to attach the task to
|
|
31
|
+
* @param {number} caTaskId - The Case task ID to add the result to
|
|
32
|
+
* @param {number} resultCode - The result Code
|
|
33
|
+
* @param {number} resultID - The result ID
|
|
34
|
+
* @param {number} resultSetID - The result set ID
|
|
35
|
+
* @param {Object} [options] - Options for the Task. See /{subdirectory}/apidocs/#/service-info/Pll/CaseTaskResults
|
|
36
|
+
* @return {Object} Returns Promise that represents an object describing CaTaskResultsItem.
|
|
37
|
+
*/
|
|
38
|
+
addTaskResult(caObjectId: number, caTaskId: number, resultCode: number, resultID: number, resultSetID: number, options?: Object): Promise<unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* Add Task Comment
|
|
41
|
+
*
|
|
42
|
+
* @category Comments
|
|
43
|
+
* @param {number} caTaskId - The Case task ID of the task to add the comment to
|
|
44
|
+
* @param {string} comment - The comment text
|
|
45
|
+
* @return {Object} Returns Promise that represents an object describing CaTaskCommentsItemBase.
|
|
46
|
+
*/
|
|
47
|
+
addTaskComment(caTaskId: number, comment: string): Promise<unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* Get tasks by CaObjectId
|
|
50
|
+
*
|
|
51
|
+
* @category Tasks
|
|
52
|
+
* @param {number} caObjectId - The Case Object to get the attached tasks
|
|
53
|
+
* @param {boolean} checkRelatedItems - Wherther to check related items. Defaults to false.
|
|
54
|
+
* @return {Object} Returns Promise that represents a collection of the CaTaskItemBases.
|
|
55
|
+
*/
|
|
56
|
+
getTasksByCaseId(caObjectId: number, checkRelatedItems?: boolean): Promise<unknown>;
|
|
57
|
+
/**
|
|
58
|
+
* Get tasks by TaskIds
|
|
59
|
+
*
|
|
60
|
+
* @category Tasks
|
|
61
|
+
* @param {Array<number>} caTaskIds - The IDs of the tasks to retrieve
|
|
62
|
+
* @param {boolean} checkRelatedItems - Wherther to check related items. Defaults to false.
|
|
63
|
+
* @return {Object} Returns Promise that represents a collection of the CaTaskItemBases.
|
|
64
|
+
*/
|
|
65
|
+
getTasksById(caTaskIds: Array<number>, checkRelatedItems?: boolean): Promise<unknown>;
|
|
66
|
+
/**
|
|
67
|
+
* Get CaTaskResultsItem by CaTaskIds
|
|
68
|
+
*
|
|
69
|
+
* @category Task Results
|
|
70
|
+
* @param {Array<number>} caTaskIds - The IDs of the tasks for which to retrieve results
|
|
71
|
+
* @return {Object} Returns Promise that represents a collection of CaTaskResultsItems.
|
|
72
|
+
*/
|
|
73
|
+
getResultsByTaskId(caTaskIds: Array<number>): Promise<unknown>;
|
|
74
|
+
/**
|
|
75
|
+
* Search for CaseTaskComments by CaTaskId
|
|
76
|
+
*
|
|
77
|
+
* @category Comments
|
|
78
|
+
* @param {number} caTaskId - The task ID for which to retrieve attached comments
|
|
79
|
+
* @return {Object} Returns Promise that represents a collection of CommentRecords.
|
|
80
|
+
*/
|
|
81
|
+
getCommentsForTask(caTaskId: number): Promise<unknown>;
|
|
82
|
+
/**
|
|
83
|
+
* Search for CaseTaskComments by CaTaskId
|
|
84
|
+
*
|
|
85
|
+
* @category Comments
|
|
86
|
+
* @param {Array<number>} caTaskIds - The task IDs for which to retrieve attached comments
|
|
87
|
+
* @return {Object} Returns Promise that represents a collection of CaTaskCommentsItemBase.
|
|
88
|
+
*/
|
|
89
|
+
getCommentsForTasks(caTaskIds: Array<number>): Promise<unknown>;
|
|
90
|
+
/**
|
|
91
|
+
* Updates a task
|
|
92
|
+
*
|
|
93
|
+
* @category Tasks
|
|
94
|
+
* @param {number} caTaskId - The Case Object to attach the task to
|
|
95
|
+
* @param {Object} [options] - Options for Task. See /{subdirectory}/apidocs/#/service-info/Pll/CaseTask
|
|
96
|
+
* @return {Object} Returns Promise that represents an object describing CaTaskItemBase.
|
|
97
|
+
*/
|
|
98
|
+
updateTask(caTaskId: number, options?: Object): Promise<unknown>;
|
|
99
|
+
/**
|
|
100
|
+
* Update Task Comment
|
|
101
|
+
*
|
|
102
|
+
* @category Comments
|
|
103
|
+
* @param {number} caTaskCommentId - The Case task ID of the task to add the comment to
|
|
104
|
+
* @param {string} comment - The comment text
|
|
105
|
+
* @param {number} commentId - Probably unnecessary?
|
|
106
|
+
* @return {Object} Returns Promise that represents an object describing CaTaskCommentsItemBase.
|
|
107
|
+
*/
|
|
108
|
+
updateTaskComment(caTaskCommentId: number, comment: string, commentId?: number): Promise<unknown>;
|
|
109
|
+
/**
|
|
110
|
+
* Updates a task
|
|
111
|
+
*
|
|
112
|
+
* @category Tasks
|
|
113
|
+
* @param {number} caTaskId - The Case Object to attach the task to
|
|
114
|
+
* @param {string} resultCode - The result code to set for the specified Task
|
|
115
|
+
* @param {Object} [options] - Options for Task. Specify either or both TaskCompletedBy & TaskCompleteDate. See /{subdirectory}/apidocs/#/service-info/Pll/CaseTask
|
|
116
|
+
* @return {Object} Returns Promise that represents an object describing CaTaskItemBase.
|
|
117
|
+
*/
|
|
118
|
+
setTaskResult(caTaskId: number, resultCode: string, options?: Object): Promise<unknown>;
|
|
119
|
+
/**
|
|
120
|
+
* Deletes a task by TaskID
|
|
121
|
+
*
|
|
122
|
+
* @category Tasks
|
|
123
|
+
* @param {number} caTaskId - The caTaskId for the task which should be deleted
|
|
124
|
+
* @return {Object} Returns Promise that represents an object describing CaTaskItemBase.
|
|
125
|
+
*/
|
|
126
|
+
deleteTask(caTaskId: number): Promise<unknown>;
|
|
127
|
+
/**
|
|
128
|
+
* Deletes a task by TaskID
|
|
129
|
+
*
|
|
130
|
+
* @category Tasks
|
|
131
|
+
* @param {number} caTaskId - The caTaskId for the task which should be deleted
|
|
132
|
+
* @return {Object} Returns Promise that represents the number of the CaObjectID
|
|
133
|
+
*/
|
|
134
|
+
deleteTasksOnCase(caObjectId: number): Promise<unknown>;
|
|
135
|
+
/**
|
|
136
|
+
* Deletes tasks by TaskID
|
|
137
|
+
*
|
|
138
|
+
* @category Comments
|
|
139
|
+
* @param {Array<number>} caTaskCommentIds - The comments to delete
|
|
140
|
+
* @return {Object} Returns Promise that represents a dictionary of comment IDs.
|
|
141
|
+
*/
|
|
142
|
+
deleteTaskComments(caTaskCommentIds: Array<number>): Promise<unknown>;
|
|
143
|
+
/**
|
|
144
|
+
* Search for Case Tasks. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields
|
|
145
|
+
*
|
|
146
|
+
* @category Tasks
|
|
147
|
+
* @param {Object} filters - The parameters to search by. (ResponsibleUserId, TaskAvailable, TaskComplete, TaskType)
|
|
148
|
+
* @return {Object} Returns Promise that represents a collection of resulting CaTaskIDs
|
|
149
|
+
*/
|
|
150
|
+
searchForTasks(filters?: Object): Promise<unknown>;
|
|
151
|
+
/**
|
|
152
|
+
* Search for CaseTaskResults Objects. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields
|
|
153
|
+
*
|
|
154
|
+
* @category Task Results
|
|
155
|
+
* @param {Object} filters - The parameters to search by. See: /{subdirectory}/apidocs/#/service-info/Pll/CaseTaskResults
|
|
156
|
+
* @return {Object} Returns Promise that represents a collection of resulting CaTaskResultsItem
|
|
157
|
+
*/
|
|
158
|
+
searchForTaskResults(filters?: Object): Promise<unknown>;
|
|
159
|
+
/**
|
|
160
|
+
* Adds a task to the case specified by the CaObectId.
|
|
161
|
+
*
|
|
162
|
+
* @category Task Attachments
|
|
163
|
+
* @param {number} caTaskId - The Task ID to attach the document to
|
|
164
|
+
* @param {number} caObjectId - The Case Object ID
|
|
165
|
+
* @param {string} docName - The file name as it should display in the system
|
|
166
|
+
* @param {string} locationType - The location of the file...leave blank
|
|
167
|
+
* @param {any} file - The binary string for the file
|
|
168
|
+
* @return {Object} Returns Promise that represents an object describing added Attachment
|
|
169
|
+
*/
|
|
170
|
+
addTaskAttachment(caTaskId: number, caObjectId: number, docName: number, file: any, locationType?: string): Promise<unknown>;
|
|
171
|
+
/**
|
|
172
|
+
* Gets each Document Attached to the specified Task
|
|
173
|
+
*
|
|
174
|
+
* @category Task Attachments
|
|
175
|
+
* @param {number} caTaskId - The Task ID to attach the document to
|
|
176
|
+
* @return {Object} Returns Promise that represents a collection of objects describing each Attachment on the provided task
|
|
177
|
+
*/
|
|
178
|
+
getTaskAttachments(caTaskId: number): Promise<unknown>;
|
|
179
|
+
/**
|
|
180
|
+
* Deletes a task attachment by caRelDocId (Related Case Document ID). Same as RelDocs delete for case.
|
|
181
|
+
*
|
|
182
|
+
* @category Task Attachments
|
|
183
|
+
* @param {number} caRelDocId - The caRelDocId for the related document which should be deleted
|
|
184
|
+
* @return {Object} Returns Promise that represents the an object describing the deleted document.
|
|
185
|
+
*/
|
|
186
|
+
deleteTaskAttachment(caRelDocId: number): Promise<unknown>;
|
|
187
|
+
}
|
package/dist/comments.d.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import ReversibleMap from 'reversible-map';
|
|
2
|
-
/**
|
|
3
|
-
* A plugin that contains "comments" methods
|
|
4
|
-
*/
|
|
5
|
-
export declare class Comments {
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
cw: any;
|
|
10
|
-
/**
|
|
11
|
-
* Storage of all potential activity types which comments can be attached to: Unknown, Request, WorkOrder, CaTask, CaObject, CaCorrection, Project, Contract
|
|
12
|
-
*/
|
|
13
|
-
activityTypes: ReversibleMap<string, number>;
|
|
14
|
-
/**
|
|
15
|
-
* Storage of object's active activityType
|
|
16
|
-
*/
|
|
17
|
-
currentActivityType: string;
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
constructor(cw: any, activityType: string);
|
|
22
|
-
/**
|
|
23
|
-
* Add a comment - for adding a comment to an object when the object is already known. Always call comment.add from request, case, workorder, or inspection.
|
|
24
|
-
*
|
|
25
|
-
* @param {number} sid - The SID of the activity to which the comment should be attached
|
|
26
|
-
* @param {string} comment - The text for the comment
|
|
27
|
-
* @return {Object} Returns a Promise which represents a CommentRecord object
|
|
28
|
-
*/
|
|
29
|
-
add(sid: number, comment: string): Promise<unknown>;
|
|
30
|
-
/**
|
|
31
|
-
* Update a comment
|
|
32
|
-
*
|
|
33
|
-
* @param {number} id - The ID of the comment which should be updated
|
|
34
|
-
* @param {string} comment - The new text for the updated comment
|
|
35
|
-
* @return {Object} Returns a Promise which represents a CommentRecord object
|
|
36
|
-
*/
|
|
37
|
-
update(id: number, comment: string): Promise<unknown>;
|
|
38
|
-
/**
|
|
39
|
-
* Get comments for activity items
|
|
40
|
-
*
|
|
41
|
-
* @param {Array<number>} sids - The options SIDs to get comments for.
|
|
42
|
-
* @return {Object} Returns Promise object that represents a collection of available comments
|
|
43
|
-
*/
|
|
44
|
-
get(sids: Array<number>): Promise<unknown>;
|
|
45
|
-
/**
|
|
46
|
-
* Get pre-defined comments for activityTypes
|
|
47
|
-
*
|
|
48
|
-
* @param {number} problemSid - The ProblemSid if currentActivityType is (Service) Request
|
|
49
|
-
* @param {string} [category] - Only applies to WorkOrder and ServiceRequest category comments.
|
|
50
|
-
* @return {Object} Returns Promise object that represents a collection of available comment templates.
|
|
51
|
-
*/
|
|
52
|
-
getPredefined(problemSid?: number, category?: string): Promise<unknown>;
|
|
53
|
-
}
|
|
1
|
+
import ReversibleMap from 'reversible-map';
|
|
2
|
+
/**
|
|
3
|
+
* A plugin that contains "comments" methods
|
|
4
|
+
*/
|
|
5
|
+
export declare class Comments {
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
cw: any;
|
|
10
|
+
/**
|
|
11
|
+
* Storage of all potential activity types which comments can be attached to: Unknown, Request, WorkOrder, CaTask, CaObject, CaCorrection, Project, Contract
|
|
12
|
+
*/
|
|
13
|
+
activityTypes: ReversibleMap<string, number>;
|
|
14
|
+
/**
|
|
15
|
+
* Storage of object's active activityType
|
|
16
|
+
*/
|
|
17
|
+
currentActivityType: string;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
constructor(cw: any, activityType: string);
|
|
22
|
+
/**
|
|
23
|
+
* Add a comment - for adding a comment to an object when the object is already known. Always call comment.add from request, case, workorder, or inspection.
|
|
24
|
+
*
|
|
25
|
+
* @param {number} sid - The SID of the activity to which the comment should be attached
|
|
26
|
+
* @param {string} comment - The text for the comment
|
|
27
|
+
* @return {Object} Returns a Promise which represents a CommentRecord object
|
|
28
|
+
*/
|
|
29
|
+
add(sid: number, comment: string): Promise<unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* Update a comment
|
|
32
|
+
*
|
|
33
|
+
* @param {number} id - The ID of the comment which should be updated
|
|
34
|
+
* @param {string} comment - The new text for the updated comment
|
|
35
|
+
* @return {Object} Returns a Promise which represents a CommentRecord object
|
|
36
|
+
*/
|
|
37
|
+
update(id: number, comment: string): Promise<unknown>;
|
|
38
|
+
/**
|
|
39
|
+
* Get comments for activity items
|
|
40
|
+
*
|
|
41
|
+
* @param {Array<number>} sids - The options SIDs to get comments for.
|
|
42
|
+
* @return {Object} Returns Promise object that represents a collection of available comments
|
|
43
|
+
*/
|
|
44
|
+
get(sids: Array<number>): Promise<unknown>;
|
|
45
|
+
/**
|
|
46
|
+
* Get pre-defined comments for activityTypes
|
|
47
|
+
*
|
|
48
|
+
* @param {number} problemSid - The ProblemSid if currentActivityType is (Service) Request
|
|
49
|
+
* @param {string} [category] - Only applies to WorkOrder and ServiceRequest category comments.
|
|
50
|
+
* @return {Object} Returns Promise object that represents a collection of available comment templates.
|
|
51
|
+
*/
|
|
52
|
+
getPredefined(problemSid?: number, category?: string): Promise<unknown>;
|
|
53
|
+
}
|