cityworks 2.0.0 → 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.
@@ -0,0 +1,406 @@
1
+ export declare class CaseFinancial {
2
+ /**
3
+ * @hidden
4
+ */
5
+ cw: any;
6
+ /**
7
+ * @hidden
8
+ */
9
+ constructor(cw: Object);
10
+ /**
11
+ * Adds a fee to the case specified by the CaObectId.
12
+ *
13
+ * @category Case Fees
14
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the fee
15
+ * @param {number} feeSetupId - The fee setup id for the fee to add to the case.
16
+ * @param {Object} [options] - See /{subdirectory}/apidocs/#/service-info/Pll/CaseFees for more options. (Checkboxes -- Autorecalculate -- are Y/N strings)
17
+ * @return {Object} Returns Promise that represents an object describing the newly-added fee. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
18
+ */
19
+ addFee(caObjectId: number, feeSetupId: number, options?: Object): Promise<unknown>;
20
+ /**
21
+ * Add Case Fee Payment. Adds a payment to the case fee specified by caObjectId.
22
+ *
23
+ * @category Case Payments
24
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the fee
25
+ * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/CasePayment for more options, including required fields.
26
+ * @return {Object} Returns Promise that represents an object describing the newly-added payment. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentItemBase
27
+ */
28
+ addPayment(caObjectId: number, options: Object): Promise<unknown>;
29
+ /**
30
+ * Make a Payment. Adds a payment to the case fee(s) specified.
31
+ *
32
+ * @category Case Payments
33
+ * @param {Array<Array<string>>} payments - The Case Object ID for the case to which to add the fee
34
+ * @param {Array<number>} caseFees - Fees this payment should be applied to. Array of CaFeeIds values.
35
+ * @param {stringName:string,AddressLine1?:string,AddressLine2?:string,AddressLine3?:string,CityName?:string,CommentText?:string,Email?:string,FaxNumber?:string,PhoneHome?:string,PhoneMobile?:string,PhoneWork?:string,PhoneWorkExt?:string,StateCode?:string,WebSiteUrl?:string,ZipCode?:string,CountryCode?:string} payerInfo - Payer info for the payment being made.
36
+ * @return {Object} Returns Promise that represents an object describing the newly-added payment.
37
+ */
38
+ makePayment(payments: Array<Array<string>>, caseFees: Array<number>, payerInfo?: {
39
+ stringName: string;
40
+ AddressLine1?: string;
41
+ AddressLine2?: string;
42
+ AddressLine3?: string;
43
+ CityName?: string;
44
+ CommentText?: string;
45
+ Email?: string;
46
+ FaxNumber?: string;
47
+ PhoneHome?: string;
48
+ PhoneMobile?: string;
49
+ PhoneWork?: string;
50
+ PhoneWorkExt?: string;
51
+ StateCode?: string;
52
+ WebSiteUrl?: string;
53
+ ZipCode?: string;
54
+ CountryCode?: string;
55
+ }): Promise<unknown>;
56
+ /**
57
+ * Add Case Payment Refund. Refunds a payment on the case payment specified by caPaymentId.
58
+ *
59
+ * @category Case Payment Refunds
60
+ * @param {number} caPaymentId - The Case Payment ID for the case payment which to refund
61
+ * @param {number} refundAmount - The amount to refund
62
+ * @param {string} comment - A comment to append to the refund
63
+ * @return {Object} Returns Promise that represents an object describing the newly-added payment refund. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentRefundItemBase
64
+ */
65
+ addRefund(caPaymentId: number, refundAmount: number, comment: string): Promise<unknown>;
66
+ /**
67
+ * Add Case Deposit Payment. Adds a payment to the case deposit specified by CaDepositId.
68
+ *
69
+ * @category Case Payments
70
+ * @param {number} caDepositId - The Case Deposit ID for the case deposit to which to add the fee
71
+ * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/CasePayment for more options, including required fields.
72
+ * @return {Object} Returns Promise that represents an object describing the newly-added payment. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentItemBase
73
+ */
74
+ addDepositPayment(caDepositId: number, options: Object): Promise<unknown>;
75
+ /**
76
+ * Adds a deposit to the case specified by the CaObectId.
77
+ *
78
+ * @category Case Deposits
79
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the fee
80
+ * @param {number} depositId - The deposit setup id for the deposit to add to the case.
81
+ * @param {number} [amount] - The amount of the deposit (optional)
82
+ * @param {string} [comment] - Comment text to add to the deposit (optional)
83
+ * @return {Object} Returns Promise that represents an object describing the newly-added deposit. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaDepositItemBase
84
+ */
85
+ addDeposit(caObjectId: number, depositId: number, amount?: number, comment?: string): Promise<unknown>;
86
+ /**
87
+ * Adds an instrument to the case specified by the CaObectId.
88
+ *
89
+ * @category Case Instruments
90
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the instrument
91
+ * @param {number} instTypeId - The instrument type id for the instrument being added to the case.
92
+ * @param {number} amount - The amount of the instrument
93
+ * @param {Date} dateExpire - The datetime for the instrument to expire.
94
+ * @param {Object} [options] - See /{subdirectory}/apidocs/#/service-info/Pll/CaseInstrument for more options.
95
+ * @return {Object} Returns Promise that represents an object describing the newly-added instrument. See /{subdirectory}/apidocs/#/service-info/Pll/CaseInstrument
96
+ */
97
+ addInstrument(caObjectId: number, instTypeId: number, amount: number, dateExpire: Date, options?: Object): Promise<unknown>;
98
+ /**
99
+ * Updates a fee specified by the CaFeeId.
100
+ *
101
+ * @category Case Fees
102
+ * @param {number} caFeeId - The Fee ID for the specific instance of the fee you wish to update
103
+ * @param {Object} [options] - See /{subdirectory}/apidocs/#/service-info/Pll/CaseFees for more options. (Checkboxes -- Autorecalculate -- are Y/N strings)
104
+ * @return {Object} Returns Promise that represents an object describing the updated fee. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
105
+ */
106
+ updateFee(caFeeId: number, options?: Object): Promise<unknown>;
107
+ /**
108
+ * Void a refund.
109
+ *
110
+ * @category Case Refund Payment
111
+ * @param {number} caPaymentRefundId - The Refund ID for the specific refund to void
112
+ * @param {String} voided - A string. No clue.
113
+ * @return {Object} Returns Promise that represents an object describing the voided refund. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentRefundItemBase
114
+ */
115
+ voidRefund(caPaymentRefundId: number, voided: string): Promise<unknown>;
116
+ /**
117
+ * Adds Default Case Fees. Adds fees to the case specified by the CaObectId and BusCaseId.
118
+ *
119
+ * @category Case Fees
120
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the default fees
121
+ * @param {number} busCaseId - The business case ID whose default fees should be added to the case
122
+ * @return {Object} Returns Promise that represents a collection of Fee Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
123
+ */
124
+ addDefaultFees(caObjectId: number, busCaseId: number): Promise<unknown>;
125
+ /**
126
+ * Adds Default Case Deposits. Adds deposits to the case specified by the CaObectId and BusCaseId.
127
+ *
128
+ * @category Case Deposits
129
+ * @param {number} caObjectId - The Case Object ID for the case to which to add the default deposits
130
+ * @param {number} busCaseId - The business case ID whose default deposits should be added to the case
131
+ * @return {Object} Returns Promise that represents a collection of Deposit Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaDepositItemBase
132
+ */
133
+ addDefaultDeposits(caObjectId: number, busCaseId: number): Promise<unknown>;
134
+ /**
135
+ * Gets the fees from the case specified by the CaObectId.
136
+ *
137
+ * @category Case Fees
138
+ * @param {number} caObjectId - The Case Object ID for the case to which to get the fees
139
+ * @return {Object} Returns Promise that represents a collection of Case Fees.
140
+ */
141
+ getFees(caObjectId: number): Promise<unknown>;
142
+ /**
143
+ * Get Case Deposit by Case ObjectId.
144
+ *
145
+ * @category Case Deposits
146
+ * @param {number} caObjectId - The Case Object ID for the case to which to get the deposits
147
+ * @return {Object} Returns Promise that represents a collection of Case Deposits.
148
+ */
149
+ getDeposits(caObjectId: number): Promise<unknown>;
150
+ /**
151
+ * Get Case Payments by Case ObjectId
152
+ *
153
+ * @category Case Payments
154
+ * @param {number} caObjectId - The Case Object ID for the case to which to get the payments
155
+ * @return {Object} Returns Promise that represents a collection of Case Payments.
156
+ */
157
+ getPayments(caObjectId: number): Promise<unknown>;
158
+ /**
159
+ * Gets the instruments from the case specified by the CaObectId.
160
+ *
161
+ * @category Case Instruments
162
+ * @param {number} caObjectId - The Case Object ID for the case to which to get the fees
163
+ * @return {Object} Returns Promise that represents a collection of Case Instruments.
164
+ */
165
+ getInstruments(caObjectId: number): Promise<unknown>;
166
+ /**
167
+ * Delete the fee specified by the caFeeId.
168
+ *
169
+ * @category Case Fees
170
+ * @param {number} caFeeId - The Case Fee ID which should be deleted
171
+ * @return {Object} Returns Promise that represents a Case Fee object.
172
+ */
173
+ deleteFee(caFeeId: number): Promise<unknown>;
174
+ /**
175
+ * Delete Case Fees by Case ObjectId. Delete from the system all Fees linked to a specific Case as specified by the Case Id parameter (CaObjectId).
176
+ *
177
+ * @category Case Fees
178
+ * @param {number} caObjectId - The Case Object ID whose fees should be deleted
179
+ * @return {Object} Returns Promise that represents a number (?)
180
+ */
181
+ deleteFeesByCaseId(caObjectId: number): Promise<unknown>;
182
+ /**
183
+ * Delete a Case Payment by Id. Delete a specific case payment by CaPaymentId.
184
+ *
185
+ * @category Case Payments
186
+ * @param {number} caPaymentId - The Case Payment ID which should be deleted
187
+ * @return {Object} Returns Promise that represents a Case Payment object.
188
+ */
189
+ deletePayment(caFeeId: number): Promise<unknown>;
190
+ /**
191
+ * Delete Case Payment Refund. Removes a refund on a payment.
192
+ *
193
+ * @category Case Payment Refunds
194
+ * @param {number} caPaymentRefundId - The Case Payment ID for the case payment which to refund
195
+ * @return {Object} Returns Promise that represents an object describing the deleted payment refund. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPaymentRefundItemBase
196
+ */
197
+ deleteRefund(caPaymentRefundId: number): Promise<unknown>;
198
+ /**
199
+ * Delete Case Payments by Case ObjectId. Delete from the system all payments associated to a specific case as specified by the case id (CaObjectId)
200
+ *
201
+ * @category Case Payments
202
+ * @param {number} caObjectId - The Case Object ID whose payments should be deleted
203
+ * @return {Object} Returns Promise that represents a number (?)
204
+ */
205
+ deletePaymentsByCaseId(caObjectId: number): Promise<unknown>;
206
+ /**
207
+ * Delete the fee specified by the caFeeId.
208
+ *
209
+ * @category Case Deposits
210
+ * @param {number} caDepositId - The Case Deposit ID which should be deleted
211
+ * @return {Object} Returns Promise that represents a collection of Case Deposits.
212
+ */
213
+ deleteDeposit(caDepositId: number): Promise<unknown>;
214
+ /**
215
+ * Delete Case Fees by Case ObjectId. Delete from the system all Fees linked to a specific Case as specified by the Case Id parameter (CaObjectId).
216
+ *
217
+ * @category Case Deposits
218
+ * @param {number} caObjectId - The Case Object ID whose fees should be deleted
219
+ * @return {Object} Returns Promise that represents a number (?)
220
+ */
221
+ deleteDepositsByCaseId(caObjectId: number): Promise<unknown>;
222
+ /**
223
+ * Delete the instrument specified by the caInstrumentId.
224
+ *
225
+ * @category Case Instruments
226
+ * @param {number} caInstrumentId - The Case Instrument ID which should be deleted
227
+ * @return {Object} Returns Promise that represents a Case Instrument.
228
+ */
229
+ deleteInstrument(caInstrumentId: number): Promise<unknown>;
230
+ /**
231
+ * Delete Case Instruments by Case ObjectId. Delete from the system all Instruments linked to a specific Case as specified by the Case Id parameter (CaObjectId).
232
+ *
233
+ * @category Case Instruments
234
+ * @param {number} caObjectId - The Case Object ID whose instruments should be deleted
235
+ * @return {Object} Returns Promise that represents a number (?)
236
+ */
237
+ deleteInstrumentsByCaseId(caObjectId: number): Promise<unknown>;
238
+ /**
239
+ * Search for Case Fees. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
240
+ *
241
+ * @category Case Fees
242
+ * @param {Object} filters - The parameter(s) to search by
243
+ * @return {Object} Returns Promise that represents an Array of case fee IDs
244
+ */
245
+ searchFees(filters: Object): Promise<unknown>;
246
+ /**
247
+ * Search for Case Payments. Include one or more of the search fields. A logical 'and' operation is applied for multiple search fields.
248
+ *
249
+ * @category Case Payments
250
+ * @param {Object} filters - The filters to search for matched Case Payments
251
+ * @return {Object} Returns Promise that represents an Array of case payment IDs
252
+ */
253
+ searchPayments(filters: Object): Promise<unknown>;
254
+ /**
255
+ * Search for Case Payment Refunds. Include one or more of the search fields. A logical 'and' operation is applied for multiple search fields.
256
+ *
257
+ * @category Case Payment Refunds
258
+ * @param {Object} filters - The filters to search for matched Case Payments.
259
+ * @return {Object} Returns Promise that represents an Array of case payment refund IDs
260
+ */
261
+ searchRefunds(filters: Object): Promise<unknown>;
262
+ /**
263
+ * Get the Escrow Fees for a specific case template (BusCaseId).
264
+ *
265
+ * @category Case Escrow
266
+ * @param {number} busCaseId - The business case ID whose default fees should be added to the case
267
+ * @return {Object} Returns Promise that represents a collection of Fee Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
268
+ */
269
+ getEscrowFees(busCaseId: number): Promise<unknown>;
270
+ /**
271
+ * Add an Escrow Payment. Adds a payment to the case.
272
+ *
273
+ * @category Case Escrow
274
+ * @param {number} escrowPaymentItems - The escrow payment items to add to the case (See: /{subdirectory}/apidocs/#/data-type-info;dataType=EscrowPaymentItem)
275
+ * @return {Object} Returns Promise that represents a collection of Escrow Paymnent Items that were added.
276
+ */
277
+ addEscrowPayment(escrowPaymentItems: Array<Object>): Promise<unknown>;
278
+ /**
279
+ * Search for Escrow Payments
280
+ *
281
+ * @category Case Escrow
282
+ * @param {number} caObectId - The business case ID whose default fees should be added to the case
283
+ * @return {Object} Returns Promise that represents a collection of Fee Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
284
+ */
285
+ /**
286
+ * Get the Escrow Fees for a specific case template (BusCaseId).
287
+ *
288
+ * @category Case Escrow
289
+ * @param {number} busCaseId - The business case ID whose default fees should be added to the case
290
+ * @return {Object} Returns Promise that represents a collection of Fee Items. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
291
+ */
292
+ updateEscrowPayment(busCaseId: number): Promise<unknown>;
293
+ /**
294
+ * Search for Case Deposits. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
295
+ *
296
+ * @category Case Deposits
297
+ * @param {Object} filters - The parameters to search by.
298
+ * @return {Object} Returns Promise that represents an Array of case fee IDs
299
+ */
300
+ searchDeposits(filters: Object): Promise<unknown>;
301
+ /**
302
+ * Get All Fee Templates
303
+ *
304
+ * @category Case Fees
305
+ * @return {Object} Returns Promise that represents an object describing the newly-added fee. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaFeesItemBase
306
+ */
307
+ getAllFeeTemplates(): Promise<unknown>;
308
+ /**
309
+ * Search for Fees. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
310
+ *
311
+ * @category Case Fees
312
+ * @param {Object} filters - The parameters to search by
313
+ * @return {Object} Returns Promise that represents an Array of case fee IDs
314
+ */
315
+ searchFeeTemplates(filters: Object): Promise<unknown>;
316
+ /**
317
+ * Search for Case Instruments. Include at least one of the search fields. A logical 'and' operation is applied for multiple search fields.
318
+ *
319
+ * @category Case Instruments
320
+ * @param {Object} filters - The parameters to search by (AddressLine1, Amount, CaInstrumentId, CityName, CommentText, Company, ContactEmail, ContactName, ContactPhone, CountryCode, InstTypeId, SerialNumber, StateCode, ZipCode)
321
+ * @return {Object} Returns Promise that represents an Array of case instrument IDs
322
+ */
323
+ searchCaseInstruments(filters: Object): Promise<unknown>;
324
+ /**
325
+ * Get the Defined Instruments
326
+ *
327
+ * @category Instruments
328
+ * @param {Object} options - the options to filter the instruments returned by
329
+ * @return {Object} Returns Promise that represents an Array of CaInstrumentItem
330
+ */
331
+ getInstrumentList(options: Object): Promise<unknown>;
332
+ /**
333
+ * Adds a release to a case instrument specified by the caInstrumentId. Must provide either amountReleased OR percentReleased
334
+ *
335
+ * @category Case Instrument Releases
336
+ * @param {number} caInstrumentId - The Case Instrument ID to which to add the instrument release
337
+ * @param {number} releasedBy - UserID to attach to the release.
338
+ * @param {Date} dateReleased - The date of the release
339
+ * @param {number} [amountReleased] - The amount to be released
340
+ * @param {number} [percentReleased] - OR the percent to be released
341
+ * @param {string} [comment] - Comment to attach to the release
342
+ * @return {Object} Returns Promise that represents an object describing the newly-added instrument release. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaInstReleasesItemBase
343
+ */
344
+ addCaseInstrumentRelease(caInstrumentId: number, releasedBy: number, dateReleased: Date, amountReleased?: number, percentReleased?: number, comment?: string): Promise<unknown>;
345
+ /**
346
+ * Deletes a release specified by the caInstReleasesId.
347
+ *
348
+ * @category Case Instrument Releases
349
+ * @param {number} caInstReleasesId - The Case Instrument Release ID to delete
350
+ * @return {Object} Returns Promise that represents an object describing the deleted instrument release. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaInstReleasesItemBase
351
+ */
352
+ deleteCaseInstrumentRelease(caInstReleasesId: number): Promise<unknown>;
353
+ /**
354
+ * Search for Case Instrument Releases. Include one or more of the search fields. A logical 'and' operation is applied for muliple search fields.
355
+ *
356
+ * @category Case Instrument Releases
357
+ * @param {Object} filters - Specify at least one of the following: AmountReleased, CaInstReleasesId, CaInstrumentId, CommentText, PercentReleased, ReleasedBy
358
+ * @return {Object} Returns Promise that represents an Array of Case Instruments resulting from the search
359
+ */
360
+ searchCaseInstrumentReleases(filters: Object): Promise<unknown>;
361
+ /**
362
+ * Get All Fees
363
+ *
364
+ * @category Fees
365
+ * @return {Object} Returns Promise that represents a collection of FeeSetups. See /{subdirectory}/apidocs/#/data-type-info;dataType=FeeSetupItemBase
366
+ */
367
+ fees(): Promise<unknown>;
368
+ /**
369
+ * Search for Fees. Include one or more of the search fields. A logical 'and' operation is applied for muliple search fields.
370
+ *
371
+ * @category Fees
372
+ * @param {Object} filters - Specify at least one.
373
+ * @return {Object} Returns Promise that represents a collection of FeeSetups. See /{subdirectory}/apidocs/#/data-type-info;dataType=FeeSetupItemBase
374
+ */
375
+ searchAvailableFees(filters: {
376
+ AccountCode?: string;
377
+ FeeCode?: string;
378
+ FeeDesc?: string;
379
+ FeeSetupId?: number;
380
+ FeeTypeId?: number;
381
+ }): Promise<unknown>;
382
+ /**
383
+ * Get all tender types configured
384
+ *
385
+ * @category Tender Types
386
+ * @return {Object} Returns Promise that represents a collection of tender type objects. See /{subdirectory}/apidocs/#/data-type-info;dataType=TenderTypeItem
387
+ */
388
+ getTenderTypes(): Promise<unknown>;
389
+ /**
390
+ * Adds a tender type configuration
391
+ *
392
+ * @category Tender Types
393
+ * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/TenderType
394
+ * @return {Object} Returns Promise that represents an object describing the newly-added tender type. See /{subdirectory}/apidocs/#/data-type-info;dataType=TenderTypeItem
395
+ */
396
+ addTenderType(options: Object): Promise<unknown>;
397
+ /**
398
+ * Update a tender type configuration
399
+ *
400
+ * @category Tender Types
401
+ * @param {number} tenderTypeId - ID of the tender type to update
402
+ * @param {Object} options - See /{subdirectory}/apidocs/#/service-info/Pll/TenderType
403
+ * @return {Object} Returns Promise that represents an object describing the newly-added tender type. See /{subdirectory}/apidocs/#/data-type-info;dataType=TenderTypeItem
404
+ */
405
+ updateTenderType(tenderTypeId: number, options: Object): Promise<unknown>;
406
+ }
@@ -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
+ }
@@ -0,0 +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
+ }