cityworks 2.0.0 → 2.1.1

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.
@@ -0,0 +1,349 @@
1
+ export declare class CaseAdmin {
2
+ /**
3
+ * @hidden
4
+ */
5
+ cw: any;
6
+ /**
7
+ * @hidden
8
+ */
9
+ constructor(cw: any);
10
+ /**
11
+ * Add Business Case Template
12
+ *
13
+ * @category Case Templates
14
+ * @param {Object} data - The Business Case Template options.
15
+ * @return {Object} Returns Promise that represents an object describing the created case template. See: /{subdirectory}/apidocs/#/data-type-info;dataType=BusinessCaseItem
16
+ */
17
+ addBusinessCaseTemplate(data: Object): Promise<unknown>;
18
+ /**
19
+ * Update Business Case Template
20
+ *
21
+ * @category Case Templates
22
+ * @param {number} busCaseId - The Business Case ID to update
23
+ * @param {Object} data - The Business Case Template options.
24
+ * @return {Object} Returns Promise that represents an object describing the updated case template. See: /{subdirectory}/apidocs/#/data-type-info;dataType=BusinessCaseItem
25
+ */
26
+ updateBusinessCaseTemplate(busCaseId: number, options: Object): Promise<unknown>;
27
+ /**
28
+ * Get Business Case Templates
29
+ *
30
+ * @category Case Templates
31
+ * @return {Object} Returns Promise that represents a collection of Business Case Templates
32
+ */
33
+ getBusinessCaseTemplates(): Promise<unknown>;
34
+ /**
35
+ * Add Case Type
36
+ *
37
+ * @category Types & SubTypes
38
+ * @param {string} caseTypeName - The case type name
39
+ * @param {string} caseTypeDesciption - The case type description
40
+ * @param {Object} options - The other options for the Case Type
41
+ * @return {Object} Returns Promise that represents an object describing the added case type
42
+ */
43
+ addCaseType(caseTypeName: string, caseTypeDesciption: string, options: Object): Promise<unknown>;
44
+ /**
45
+ * Update Case Type
46
+ *
47
+ * @category Types & SubTypes
48
+ * @param {number} caseTypeId - The case Type ID
49
+ * @param {Object} options - The other options for the Case Type
50
+ * @return {Object} Returns Promise that represents an object describing the updated case type
51
+ */
52
+ updateCaseType(caseTypeId: number, options?: Object): Promise<unknown>;
53
+ /**
54
+ * Get Case Types
55
+ *
56
+ * @category Types & SubTypes
57
+ * @return {Object} Returns Promise that represents a collection of CaseTypeItems
58
+ */
59
+ getCaseTypes(): Promise<unknown>;
60
+ /**
61
+ * Search for CaseTypes. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
62
+ *
63
+ * @category Types & SubTypes
64
+ * @param {Object} filters - The parameter(s) to search by (CaseType, CaseTypeDesc, CaseTypeId)
65
+ * @return {Object} Returns Promise that represents an Array of CaseTypeIDs
66
+ */
67
+ searchCaseTypeIDs(filters: Object): Promise<unknown>;
68
+ /**
69
+ * Search for CaseTypes. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
70
+ *
71
+ * @category Types & SubTypes
72
+ * @param {Object} filters - The parameter(s) to search by (CaseType, CaseTypeDesc, CaseTypeId)
73
+ * @return {Object} Returns Promise that represents a collection of CaseTypeItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=CaseTypeItem
74
+ */
75
+ searchCaseTypeObjects(filters: Object): Promise<unknown>;
76
+ /**
77
+ * Add SubType
78
+ *
79
+ * @category Types & SubTypes
80
+ * @param {string} subTypeName - The SubTypeId
81
+ * @param {string} subTypeDescription - The SubTypeId
82
+ * @param {Object} options - Other SubType options.
83
+ * @return {Object} Returns Promise that represents an object describing the added SubTypeItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=SubTypeItem
84
+ */
85
+ addSubtype(subTypeName: string, subTypeDescription: string, options?: Object): Promise<unknown>;
86
+ /**
87
+ * Update SubType
88
+ *
89
+ * @category Types & SubTypes
90
+ * @param {number} subTypeId - The SubTypeId
91
+ * @param {Object} options - The case Object ID
92
+ * @return {Object} Returns Promise that represents an object describing the updated SubTypeItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=SubTypeItem
93
+ */
94
+ updateSubtype(subTypeId: number, options?: Object): Promise<unknown>;
95
+ /**
96
+ * Get SubTypes
97
+ *
98
+ * @category Types & SubTypes
99
+ * @return {Object} Returns Promise that represents a collection of SubTypeItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=SubTypeItem
100
+ */
101
+ getSubtypes(): Promise<unknown>;
102
+ /**
103
+ * Get all Fees
104
+ *
105
+ * @category Fees
106
+ * @return {Object} Returns Promise that represents an object describing the added DepartmentItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DepartmentItem
107
+ */
108
+ getFees(): Promise<unknown>;
109
+ /**
110
+ * Search for Fees. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
111
+ *
112
+ * @param {Object} filters - The parameter(s) to search by (AccountCode, FeeCode, FeeDesc, FeeSetupId, FeeTypeId).
113
+ * @return {Object} Returns Promise that represents an Array of FeeSetupIDs
114
+ */
115
+ searchFees(filters: {
116
+ AccountCode?: string;
117
+ FeeCode?: string;
118
+ FeeDesc?: string;
119
+ FeeSetupId?: number;
120
+ FeeTypeId?: number;
121
+ }): Promise<unknown>;
122
+ /**
123
+ * Get all Expirations
124
+ *
125
+ * @category Expirations
126
+ * @return {Object} Returns Promise that represents a collection of ExpirationTypeItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=ExpirationTypeItem
127
+ */
128
+ getExpirations(): Promise<unknown>;
129
+ /**
130
+ * Add an Expiration type
131
+ *
132
+ * @category Expirations
133
+ * @param {Object} options - Must specify OrgId and ExpirationDescType attributes. See: /{subdirectory}/apidocs/#/service-info/Pll/ExpirationType
134
+ * @return {Object} Returns Promise that represents an object describing the newly-added ExpirationTypeItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=ExpirationTypeItem
135
+ */
136
+ addExpiration(options?: Object): Promise<unknown>;
137
+ /**
138
+ * Get all Deposits
139
+ *
140
+ * @category Deposits
141
+ * @return {Object} Returns Promise that represents a collection of DepositItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DepositItemBase
142
+ */
143
+ getDeposits(): Promise<unknown>;
144
+ /**
145
+ * Search Deposits. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
146
+ *
147
+ * @param {Object} filters - The parameter(s) to search by (AccountCode, DepositCode, DepositDesc, DepositId, DepositTypeId).
148
+ * @return {Object} Returns Promise that represents an Array of FeeSetupIDs
149
+ */
150
+ searchDeposits(filters: {
151
+ AccountCode?: string;
152
+ DepositCode?: string;
153
+ DepositDesc?: string;
154
+ DepositId?: number;
155
+ DepositTypeId?: number;
156
+ }): Promise<unknown>;
157
+ /**
158
+ * Get all Disciplines
159
+ *
160
+ * @category Disciplines
161
+ * @return {Object} Returns Promise that represents a collection of DisciplineItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DisciplineItem
162
+ */
163
+ getDisciplines(): Promise<unknown>;
164
+ /**
165
+ * Add Department
166
+ *
167
+ * @category Departments & Divisions
168
+ * @param {string} departmentCode - The SubTypeId
169
+ * @param {string} departmentName - The SubTypeId
170
+ * @param {Object} options - Other SubType options.
171
+ * @return {Object} Returns Promise that represents an object describing the added DepartmentItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DepartmentItem
172
+ */
173
+ addDepartment(departmentCode: string, departmentName: string, options?: Object): Promise<unknown>;
174
+ /**
175
+ * Get Departments
176
+ *
177
+ * @category Departments & Divisions
178
+ * @return {Object} Returns Promise that represents a collection of SubTypeItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DepartmentItem
179
+ */
180
+ getDepartments(): Promise<unknown>;
181
+ /**
182
+ * Add Division
183
+ *
184
+ * @category Departments & Divisions
185
+ * @return {Object} Returns Promise that represents an object describing the newly-added DivisionItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DivisionItem
186
+ */
187
+ addDivision(departmentId: number, divisionName: string, options?: Object): Promise<unknown>;
188
+ /**
189
+ * Get all Divisions
190
+ *
191
+ * @category Departments & Divisions
192
+ * @return {Object} Returns Promise that represents a collection of DivisionItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=DivisionItem
193
+ */
194
+ getDivisions(): Promise<unknown>;
195
+ /**
196
+ * Add Inspection Time Block
197
+ *
198
+ * @category Inspections
199
+ * @param {string} labelText - Label for the time block
200
+ * @param {string} startTime - Start time in 24 hour format (HH:mm)
201
+ * @param {string} endTime - End time in 24 hour format (HH:mm)
202
+ * @param {Object} inspTimeBlocksDetails - See: /{subdirectory}/apidocs/#/data-type-info;dataType=InspTimeBlocksDetailItem
203
+ * @return {Object} Returns Promise that represents an object describing the newly-added InspectionTimeBlocksItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=InspectionTimeBlocksItem
204
+ */
205
+ addInspectionTimeBlock(labelText: string, startTime: string, endTime: string, inspTimeBlocksDetails?: Object): Promise<unknown>;
206
+ /**
207
+ * Get all Inspection Time Blocks
208
+ *
209
+ * @category Inspections
210
+ * @return {Object} Returns Promise that represents a collection of InspectionTimeBlocksItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=InspectionTimeBlocksItem
211
+ */
212
+ getInspectionTimeBlocks(): Promise<unknown>;
213
+ /**
214
+ * Get all NotificationCases
215
+ *
216
+ * @category Notifications
217
+ * @return {Object} Returns Promise that represents a collection of NotificationCaseItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NotificationCaseItem
218
+ */
219
+ getNotificationCases(): Promise<unknown>;
220
+ /**
221
+ * Get all Notification Types
222
+ *
223
+ * @category Notifications
224
+ * @return {Object} Returns Promise that represents a collection of NotificationCaseItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NotificationTypeItem
225
+ */
226
+ getNotificationTypes(): Promise<unknown>;
227
+ /**
228
+ * Add Numbering Group
229
+ *
230
+ * @category NumberingGroups
231
+ * @param {number} options - attributes or update
232
+ * @return {Object} Returns Promise that represents an object describing the newly-added NumberingGroupItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NumberingGroupItem
233
+ */
234
+ addNumberingGroup(options: Object): Promise<unknown>;
235
+ /**
236
+ * Update Numbering Group
237
+ *
238
+ * @category NumberingGroups
239
+ * @param {number} numberingGroupId - ID of NumberGroup to update
240
+ * @param {number} options - updates attributes
241
+ * @return {Object} Returns Promise that represents an object describing the newly-added HolidaysItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NumberingGroupItem
242
+ */
243
+ updateNumberingGroup(numberingGroupId: number, options?: Object): Promise<unknown>;
244
+ /**
245
+ * Get all Numbering Groups
246
+ *
247
+ * @category NumberingGroups
248
+ * @return {Object} Returns Promise that represents a collection of NumberingGroupItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NumberingGroupItem
249
+ */
250
+ getNumberingGroups(): Promise<unknown>;
251
+ /**
252
+ * Add Person
253
+ *
254
+ * @category People
255
+ * @param {string} name - Name of person
256
+ * @param {Object} options - attributes for new person
257
+ * @return {Object} Returns Promise that represents an object describing the newly-added NumberingGroupItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=NumberingGroupItem
258
+ */
259
+ addPerson(name: string, options: Object): Promise<unknown>;
260
+ /**
261
+ * Get all People
262
+ *
263
+ * @category People
264
+ * @return {Object} Returns Promise that represents a collection of PeopleItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=PeopleItem
265
+ */
266
+ getPeople(): Promise<unknown>;
267
+ /**
268
+ * Add People Role
269
+ *
270
+ * @category People
271
+ * @param {string} name - Name of person
272
+ * @param {Object} options - attributes for new person. See: /{subdirectory}/apidocs/#/service-info/Pll/PeopleRole
273
+ * @return {Object} Returns Promise that represents an object describing the newly-added PeopleRoleItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=PeopleRoleItem
274
+ */
275
+ addPeopleRole(roleCode: string, options: Object): Promise<unknown>;
276
+ /**
277
+ * Get all PeopleRoles
278
+ *
279
+ * @category People
280
+ * @return {Object} Returns Promise that represents a collection of PeopleRoleItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=PeopleRoleItem
281
+ */
282
+ getPeopleRoles(): Promise<unknown>;
283
+ /**
284
+ * Add TaskResultDetail
285
+ *
286
+ * @category TaskResults
287
+ * @param {Object} options - attributes for new TaskResultDetail. See: /{subdirectory}/apidocs/#/service-info/Pll/TaskResultDetail
288
+ * @return {Object} Returns Promise that represents an object describing the newly-added TaskResultDetailItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=TaskResultDetailItem
289
+ */
290
+ addTaskResultDetail(options: Object): Promise<unknown>;
291
+ /**
292
+ * Update TaskResultDetail
293
+ *
294
+ * @category TaskResults
295
+ * @param {string} resultDetailId - Result Detail ID
296
+ * @param {Object} options - attributes for new person. See: /{subdirectory}/apidocs/#/service-info/Pll/TaskResultDetail
297
+ * @return {Object} Returns Promise that represents an object describing the newly-added TaskResultDetailItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=TaskResultDetailItem
298
+ */
299
+ updateTaskResultDetail(resultDetailId: number, options: Object): Promise<unknown>;
300
+ /**
301
+ * Get all TaskResultDetails
302
+ *
303
+ * @category TaskResults
304
+ * @return {Object} Returns Promise that represents a collection of PeopleRoleItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=PeopleRoleItem
305
+ */
306
+ getTaskResultDetails(): Promise<unknown>;
307
+ /**
308
+ * Add TaskResultFeeInsert
309
+ *
310
+ * @category TaskResults
311
+ * @param {Object} options - attributes for new TaskResultFeeInsert. See: /{subdirectory}/apidocs/#/service-info/Pll/TaskResultFeeInsert
312
+ * @return {Object} Returns Promise that represents an object describing the newly-added TaskResultFeeInsertItem. See: /{subdirectory}/apidocs/#/data-type-info;dataType=TaskResultFeeInsertItem
313
+ */
314
+ addTaskResultFeeInsert(options: Object): Promise<unknown>;
315
+ /**
316
+ * Delete TaskResultFeeInsert
317
+ *
318
+ * @category TaskResults
319
+ * @param {number} taskResultFeeInsertId - ID for TaskResultFeeInsert to be deleted.
320
+ * @return {Object} Returns Promise that represents the ID Number of the deleted TaskResultFeeInsertItem.
321
+ */
322
+ deleteTaskResultFeeInsert(taskResultFeeInsertId: number): Promise<unknown>;
323
+ /**
324
+ * Delete TaskResultFeeInsert(s) by Task ID
325
+ *
326
+ * @category TaskResults
327
+ * @param {number} taskId - ID for Task parent of TaskResultFeeInsert(s) to be deleted.
328
+ * @return {Object} Returns Promise that represents the ID Number of the Task parent of the deleted TaskResultFeeInsertItem(s).
329
+ */
330
+ deleteTaskResultFeeInsertByTaskId(taskId: number): Promise<unknown>;
331
+ /**
332
+ * Update TaskResultFeeInsert
333
+ *
334
+ * @category TaskResults
335
+ * @param {number} taskResultFeeInsertId - ID for TaskResultFeeInsert to be updated.
336
+ * @param {number} taskId - Updated TaskID
337
+ * @param {number} taskResultId - Updated TaskResultId
338
+ * @param {number} [feeSetupId] - Fee setup ID update for TaskResultFeeInsert
339
+ * @return {Object} Returns Promise that represents the ID Number of the updated TaskResultFeeInsertItem.
340
+ */
341
+ updateTaskResultFeeInsert(taskResultFeeInsertId: number, taskId: number, taskResultId: number, feeSetupId?: number): Promise<unknown>;
342
+ /**
343
+ * Get all TaskResultFeeInsert
344
+ *
345
+ * @category TaskResults
346
+ * @return {Object} Returns Promise that represents a collection of TaskResultFeeInsertItems. See: /{subdirectory}/apidocs/#/data-type-info;dataType=TaskResultFeeInsertItem
347
+ */
348
+ getTaskResultFeeInsert(): Promise<unknown>;
349
+ }
@@ -0,0 +1,89 @@
1
+ export declare class CaseAssets {
2
+ /**
3
+ * @hidden
4
+ */
5
+ cw: any;
6
+ /**
7
+ * @hidden
8
+ */
9
+ constructor(cw: any);
10
+ /**
11
+ * Attach asset to case
12
+ *
13
+ * @category Case Assets
14
+ * @param {number} caObjectId - The Case Object to attach the data group to.
15
+ * @param {boolean} updateXY - Whether or not to update the Case's X/Y values when attaching the asset. Defaults to true.
16
+ * @param {Object} [options] - Options for CaseDataGroup including Address, AddressId, AssetId, AssetObjectId, AssetType, CityName, CrossStreet, DateExpired, ExpiredFlag, Facility_Id, FeatureAssetId, FeatureClass, FeatureObjectId, LegacyId, Level_Id, LndObjectId, Location, MasterFlag, ObjectId, StateCode, StreetDirection, StreetFraction, StreetName, StreetNumber, StreetPostDir, StreetType, Suite, TileNo, UpdateCaseData, XCoord, YCoord, ZCoord, and ZipCode
17
+ * @return {Object} Returns Promise that represents an object describing CaAddress.
18
+ * // {"AddressId":OBJECTID,"AssetId":"GUID","AssetType":"ASSET_NAME","CaObjectId":CA_OBJECTID,"FeatureAssetId":"GUID","FeatureClass":"ASSET_NAME","FeatureObjectId":OBJECTID,"Location":"Address string","ObjectId":"OBJECTID","XCoord":,"YCoord":,"UpdateCaseData":false}
19
+ */
20
+ attach(caObjectId: number, updateXY?: boolean, options?: {
21
+ Address?: string;
22
+ AddressId?: number;
23
+ AssetId?: string;
24
+ AssetObjectId?: number;
25
+ AssetType?: string;
26
+ CityName?: string;
27
+ CrossStreet?: string;
28
+ DateExpired?: string;
29
+ ExpiredFlag?: string;
30
+ Facility_Id?: string;
31
+ FeatureAssetId?: string;
32
+ FeatureClass?: string;
33
+ FeatureObjectId?: number;
34
+ LegacyId?: string;
35
+ Level_Id?: string;
36
+ LndObjectId?: number;
37
+ Location?: string;
38
+ MasterFlag?: string;
39
+ ObjectId?: string;
40
+ StateCode?: string;
41
+ StreetDirection?: string;
42
+ StreetFraction?: string;
43
+ StreetName?: string;
44
+ StreetNumber?: number;
45
+ StreetPostDir?: string;
46
+ StreetType?: string;
47
+ Suite?: string;
48
+ TileNo?: string;
49
+ UpdateCaseData?: boolean;
50
+ XCoord?: number;
51
+ YCoord?: number;
52
+ ZCoord?: number;
53
+ ZipCode?: string;
54
+ }): Promise<unknown>;
55
+ /**
56
+ * Detach specific asset from case
57
+ *
58
+ * @category Case Assets
59
+ * @param {number} caObjectId - The Case Object to attach the data group to.
60
+ * @param {boolean} updateXY - Whether or not to update the Case's X/Y values when detaching the assets. Defaults to true.
61
+ * @return {Object} Returns Promise that represents a collection of the default CaDataGroupItemBases.
62
+ */
63
+ detach(caAddressId: number, updateXY?: boolean): Promise<unknown>;
64
+ /**
65
+ * Detach all assets from case
66
+ *
67
+ * @category Case Assets
68
+ * @param {number} caObjectId - The Case Object to detach the assets from.
69
+ * @param {boolean} updateXY - Whether or not to update the Case's X/Y values when detaching the asset(s). Defaults to false.
70
+ * @return {Object} Returns Promise that represents a collection of detached CaAddressIds.
71
+ */
72
+ detachAll(caObjectId: number, updateXY?: boolean): Promise<unknown>;
73
+ /**
74
+ * Get assets attached to a specific case
75
+ *
76
+ * @category Case Assets
77
+ * @param {number} caObjectId - The Case Object from which to get attached assets
78
+ * @return {Object} Returns Promise that represents a collection of the default CaAddresses.
79
+ */
80
+ getForCase(caObjectId: number): Promise<unknown>;
81
+ /**
82
+ * Search for Case Assets. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields
83
+ *
84
+ * @category Case Assets
85
+ * @param {Object} filters - The parameters to search by. (AssetType, CaAddressId, CaObjectId, CityName, ExpiredFlag, StateCode, StateName, StreetName, StreetNumber, Suite, ZipCode)
86
+ * @return {Object} Returns Promise that represents an Array of resulting CaAddresses
87
+ */
88
+ search(filters?: Object): Promise<unknown>;
89
+ }
@@ -0,0 +1,216 @@
1
+ export declare class CaseData {
2
+ /**
3
+ * @hidden
4
+ */
5
+ cw: any;
6
+ /**
7
+ * @hidden
8
+ */
9
+ constructor(cw: any);
10
+ /**
11
+ * Add Case Data Group
12
+ *
13
+ * @category Data Groups
14
+ * @param {number} caObjectId - The Case Object to attach the data group to.
15
+ * @param {number} caseDataGroupId - CaseDataGroupId as defined in CaseDataGroup admin.
16
+ * @param {string} groupCode - The Group Code.
17
+ * @param {Object} [options] - Options for CaseDataGroup including GroupDesc, GroupSum, and SumFlag
18
+ * @return {Object} Returns Promise that represents an object describing CaDataGroupItemBase.
19
+ */
20
+ addGroup(caObjectId: number, caseDataGroupId: number, groupCode: string, options?: {
21
+ GroupDesc?: string;
22
+ GroupSum?: number;
23
+ SumFlag?: string;
24
+ }): Promise<unknown>;
25
+ /**
26
+ * Add Default Case Data Groups
27
+ *
28
+ * @category Data Groups
29
+ * @param {number} caObjectId - The Case Object to attach the data group to.
30
+ * @param {number} busCaseId - The business case ID
31
+ * @return {Object} Returns Promise that represents a collection of the default CaDataGroupItemBases.
32
+ */
33
+ addDefaultGroups(caObjectId: number, busCaseId: number): Promise<unknown>;
34
+ /**
35
+ * Adds a data detail entry to the case data group specified by the CaDataGroupId. The CaDataGroupId is associated to a case.
36
+ *
37
+ * @category Data Groups
38
+ * @param {number} caseDataDetailId - The Data Detail template ID
39
+ * @param {number} caDataGroupId - The Case Instance Data Group ID
40
+ * @param {string} columnSequence - The column sequence
41
+ * @param {string} detailCode - The detail Code
42
+ * @param {number} detailSequence - The detail order number
43
+ * @param {Object} [options] - Other options for CaseDataDetail. See WIPAdd here: /{subdirectory}/apidocs/#/service-info/Pll/CaseDataDetail
44
+ * @return {Object} Returns Promise that represents an object describing CaDataDetailItemBase.
45
+ */
46
+ wipAddDetail(caseDataDetailId: number, caDataGroupId: number, columnSequence: string, detailCode: string, detailSequence: number, options?: Object): Promise<unknown>;
47
+ /**
48
+ * Get groups by CaObjectId
49
+ *
50
+ * @category Data Groups
51
+ * @param {number} caseId - The Case Object to get the attached data groups.
52
+ * @return {Object} Returns Promise that represents a collection of the CaDataGroupItemBases.
53
+ */
54
+ getGroupsByCaseId(caseId: number): Promise<unknown>;
55
+ /**
56
+ * Delete Case Data Groups by Case Object ID.
57
+ *
58
+ * @category Data Groups
59
+ * @param {number} caObjectId - The Case Object to attach the data group to.
60
+ * @return {Object} Returns Promise that represents a number that is the CaObjectId (?)
61
+ */
62
+ deleteGroupsByCaseId(caObjectId: number): Promise<unknown>;
63
+ /**
64
+ * Search for Case Data Groups. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields
65
+ *
66
+ * @category Data Groups
67
+ * @param {Object} filters - The parameters to search by. (CaDataGroupId, CaseDataGroupId, GroupCode, GroupDesc, GroupSum, SumFlag)
68
+ * @return {Object} Returns Promise that represents a number that is the CaObjectId (?)
69
+ */
70
+ searchForGroups(filters?: Object): Promise<Array<any>>;
71
+ /**
72
+ * Get Case Data Groups by Case ObjectId
73
+ *
74
+ * @category Data Groups
75
+ * @param {string} entityType - The entity type to check
76
+ * @param {string} entityUid - The specific entityUID to check
77
+ * @param {Object} options - The other options for checkGIS. Either CaObjectId or CaseDataGroupId is required.
78
+ * @return {Object} Returns Promise that represents a collection of the default CaDataGroupItemBases.
79
+ */
80
+ checkGIS(entityType: string, entityUid: string, options: {
81
+ CaObjectId?: number;
82
+ CaseDataGroupId?: number;
83
+ CaseDataDetailId?: number;
84
+ }): Promise<unknown>;
85
+ /**
86
+ * Update data groups on a case based on asset value mappings.
87
+ *
88
+ * @category Data Groups
89
+ * @param {number} caObjectId - The case to update
90
+ * @param {string} entityType - The entity type to check
91
+ * @param {string} entityUid - The specific entityUID to check
92
+ * @param {number} [caDataGroupId] - The specific data group ID to limit updates to
93
+ * @return {Object} Returns Promise that represents a collection of the default CaDataGroupItemBases.
94
+ */
95
+ updateGroupsFromAsset(caObjectId: number, entityType: string, entityUid: string, caDataGroupId?: number): Promise<unknown>;
96
+ /**
97
+ * Attach Case Data Detail
98
+ *
99
+ * @category Data Details
100
+ * @param {number} caDataGroupId - The Case Data Group ID to attach the data detail to.
101
+ * @param {number} caseDataDetailId - caseDataDetailId to attach.
102
+ * @param {Object} [options] - Options
103
+ * @return {Object} Returns Promise that represents an object describing CaDataGroupItemBase.
104
+ */
105
+ addDetail(caDataGroupId: number, caseDataDetailId: number, options?: Object): Promise<unknown>;
106
+ /**
107
+ * Update Case Data Detail
108
+ *
109
+ * @category Data Details
110
+ * @param {number} caDataDetailId - The Case Data Group ID to attach the data detail to.
111
+ * @param {Object} [options] - Options
112
+ * @return {Object} Returns Promise that represents an object describing CaDataGroupItemBase.
113
+ */
114
+ updateDetail(caDataDetailId: number, options?: Object): Promise<unknown>;
115
+ /**
116
+ * Lock Case Data Detail
117
+ *
118
+ * @category Data Details
119
+ * @param {number} caDataDetailId - The Case Data Detail ID to lock
120
+ * @return {Object} Returns Promise which represents an object describing the CaDataDetailItem.
121
+ */
122
+ lockDetail(caDataDetailId: number): Promise<unknown>;
123
+ /**
124
+ * Unlock Case Data Detail
125
+ *
126
+ * @category Data Details
127
+ * @param {number} caDataDetailId - The Case Data Group ID to unlock
128
+ * @return {Object} Returns Promise which represents an object describing the CaDataDetailItem.
129
+ */
130
+ unlockDetail(caDataDetailId: number): Promise<unknown>;
131
+ /**
132
+ * Search for Case Data Details. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields
133
+ *
134
+ * @category Data Details
135
+ * @param {Object} filters - The parameters to search by. (CaDataGroupId, CaseDataGroupId, GroupCode, GroupDesc, GroupSum, SumFlag)
136
+ * @return {Object} Returns Promise that represents an object describing CaDataDetailItemBase.
137
+ */
138
+ searchForDetails(filters?: Object): Promise<Array<any>>;
139
+ /**
140
+ * Adds a list of possible values to the data detail entry specified by the CaDataDetailId.
141
+ *
142
+ * @category Data List Values
143
+ * @param {number} caDataDetailId - The Case Object to attach the data group to.
144
+ * @param {string} listValue - The Group Code.
145
+ * @return {Object} Returns Promise that represents an object describing CaDataListValuesItemBase.
146
+ */
147
+ addListValue(caDataDetailId: number, listValue: string): Promise<unknown>;
148
+ /**
149
+ * Delete by Id (Ca Data List Id)
150
+ *
151
+ * @category Data List Values
152
+ * @param {number} CaDataListId - The Case Data List ID
153
+ * @return {Object} Returns Promise that represents an object describing CaDataListValuesItemBase.
154
+ */
155
+ deleteListValue(caDataDetailId: number): Promise<unknown>;
156
+ /**
157
+ * Search for List Value IDs. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields
158
+ *
159
+ * @category Data List Values
160
+ * @param {Object} filters - The parameters to search by. (CaDataDetailId, CaDataListId, ListValue)
161
+ * @return {Object} Returns Promise that represents an Array of resulting CaDataListIds
162
+ */
163
+ searchForListValueIds(filters?: Object): Promise<unknown>;
164
+ /**
165
+ * Search for List Value Objects. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields
166
+ *
167
+ * @category Data List Values
168
+ * @param {Object} filters - The parameters to search by. (CaDataDetailId, CaDataListId, ListValue, CaDataGroupId)
169
+ * @return {Object} Returns Promise that represents a collection of resulting CaDataListValuesItemBase objects
170
+ */
171
+ searchForListValueObjects(filters?: Object): Promise<unknown>;
172
+ /**
173
+ * Set a data detail item's value without needing to find the type
174
+ *
175
+ * @category Data Details
176
+ * @param dataDetailId - The data detail item's ID
177
+ * @param {any} value - the value to set the data detail item to
178
+ * @param {number} rate - the rate to set the data detail item to
179
+ * @param {number} quantity - the quantitye to set the data detail item to
180
+ * @returns Promise that represents
181
+ */
182
+ updateDetailItemValue(dataDetailId: number, value: any, rate?: number, quantity?: number): Promise<unknown>;
183
+ /**
184
+ * Get the Case Data Details for a Case by Case ID
185
+ *
186
+ * @category Data Details
187
+ * @param {number} caseId - The case ID to get the details for
188
+ * @return {Object} Returns Promise that represents a collection of Case Data Detail Items
189
+ */
190
+ getAllDataDetails(caseId: number): Promise<Array<any>>;
191
+ /**
192
+ * Set Case Data Detail Items for a Case by GroupCode.ItemCode syntax reference
193
+ *
194
+ * @category Data Details
195
+ * @param {number} caseId - The case ID to get the details for
196
+ * @param {Object} items - The parameters to search by. (DataGroup/Item string, Value) (e.g. {code: 'GroupCode.ItemCode', value: 'Value goes here'})
197
+ * @return {Object} Returns Promise that represents a collection
198
+ */
199
+ setCaseData(caseId: number, items: Array<{
200
+ code: string;
201
+ value: any;
202
+ rate?: number;
203
+ quantity?: number;
204
+ }>): Promise<unknown>;
205
+ /**
206
+ * Set Case Data Detail Item for a Case by GroupCode.ItemCode syntax reference
207
+ * This is a convenience method that allows you to set a single detail item without needing to find the type. Reference it within {instance}.briefcase.data.setCaseDataItem.
208
+ *
209
+ * @category Data Details
210
+ * @param {number} caseId - The Case ID to set the detail for
211
+ * @param {string} detailGroupAndItemCode - The parameters to search (e.g. 'GroupCode.ItemCode')
212
+ * @param {any} value - The value to set the specified detail to
213
+ * @return {Object} Returns Promise
214
+ */
215
+ setCaseDataItem(caseId: number, detailGroupAndItemCode: string, value: any, rate?: number, quantity?: number): Promise<unknown>;
216
+ }