@superoffice/webapi 11.3.1349 → 11.5.755

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.
Files changed (90) hide show
  1. package/dist/cjs/AppointmentAgent.d.ts +7 -0
  2. package/dist/cjs/AppointmentAgent.d.ts.map +1 -1
  3. package/dist/cjs/AppointmentAgent.js +24 -0
  4. package/dist/cjs/AppointmentAgent.js.map +1 -1
  5. package/dist/cjs/BLOBAgent.d.ts +41 -41
  6. package/dist/cjs/Carriers.d.ts +238 -57
  7. package/dist/cjs/Carriers.d.ts.map +1 -1
  8. package/dist/cjs/Converters.d.ts +9 -3
  9. package/dist/cjs/Converters.d.ts.map +1 -1
  10. package/dist/cjs/Converters.js +147 -61
  11. package/dist/cjs/Converters.js.map +1 -1
  12. package/dist/cjs/DashAgent.d.ts +46 -0
  13. package/dist/cjs/DashAgent.d.ts.map +1 -1
  14. package/dist/cjs/DashAgent.js +100 -0
  15. package/dist/cjs/DashAgent.js.map +1 -1
  16. package/dist/cjs/DiagnosticsAgent.d.ts +15 -0
  17. package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
  18. package/dist/cjs/DiagnosticsAgent.js +33 -0
  19. package/dist/cjs/DiagnosticsAgent.js.map +1 -1
  20. package/dist/cjs/Enums.d.ts +17 -0
  21. package/dist/cjs/Enums.d.ts.map +1 -1
  22. package/dist/cjs/Enums.js +21 -3
  23. package/dist/cjs/Enums.js.map +1 -1
  24. package/dist/cjs/PersonAgent.d.ts +20 -3
  25. package/dist/cjs/PersonAgent.d.ts.map +1 -1
  26. package/dist/cjs/PersonAgent.js +35 -0
  27. package/dist/cjs/PersonAgent.js.map +1 -1
  28. package/dist/cjs/SelectionAgent.d.ts +19 -2
  29. package/dist/cjs/SelectionAgent.d.ts.map +1 -1
  30. package/dist/cjs/SelectionAgent.js +35 -0
  31. package/dist/cjs/SelectionAgent.js.map +1 -1
  32. package/dist/cjs/TicketAgent.d.ts +15 -0
  33. package/dist/cjs/TicketAgent.d.ts.map +1 -1
  34. package/dist/cjs/TicketAgent.js +33 -0
  35. package/dist/cjs/TicketAgent.js.map +1 -1
  36. package/dist/cjs/UserAgent.d.ts +16 -0
  37. package/dist/cjs/UserAgent.d.ts.map +1 -1
  38. package/dist/cjs/UserAgent.js +34 -0
  39. package/dist/cjs/UserAgent.js.map +1 -1
  40. package/dist/esm/AppointmentAgent.d.ts +7 -0
  41. package/dist/esm/AppointmentAgent.d.ts.map +1 -1
  42. package/dist/esm/AppointmentAgent.js +24 -0
  43. package/dist/esm/AppointmentAgent.js.map +1 -1
  44. package/dist/esm/BLOBAgent.d.ts +41 -41
  45. package/dist/esm/Carriers.d.ts +238 -57
  46. package/dist/esm/Carriers.d.ts.map +1 -1
  47. package/dist/esm/Converters.d.ts +9 -3
  48. package/dist/esm/Converters.d.ts.map +1 -1
  49. package/dist/esm/Converters.js +114 -34
  50. package/dist/esm/Converters.js.map +1 -1
  51. package/dist/esm/DashAgent.d.ts +46 -0
  52. package/dist/esm/DashAgent.d.ts.map +1 -1
  53. package/dist/esm/DashAgent.js +100 -0
  54. package/dist/esm/DashAgent.js.map +1 -1
  55. package/dist/esm/DiagnosticsAgent.d.ts +15 -0
  56. package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
  57. package/dist/esm/DiagnosticsAgent.js +33 -0
  58. package/dist/esm/DiagnosticsAgent.js.map +1 -1
  59. package/dist/esm/Enums.d.ts +17 -0
  60. package/dist/esm/Enums.d.ts.map +1 -1
  61. package/dist/esm/Enums.js +18 -0
  62. package/dist/esm/Enums.js.map +1 -1
  63. package/dist/esm/PersonAgent.d.ts +20 -3
  64. package/dist/esm/PersonAgent.d.ts.map +1 -1
  65. package/dist/esm/PersonAgent.js +35 -0
  66. package/dist/esm/PersonAgent.js.map +1 -1
  67. package/dist/esm/SelectionAgent.d.ts +19 -2
  68. package/dist/esm/SelectionAgent.d.ts.map +1 -1
  69. package/dist/esm/SelectionAgent.js +35 -0
  70. package/dist/esm/SelectionAgent.js.map +1 -1
  71. package/dist/esm/TicketAgent.d.ts +15 -0
  72. package/dist/esm/TicketAgent.d.ts.map +1 -1
  73. package/dist/esm/TicketAgent.js +33 -0
  74. package/dist/esm/TicketAgent.js.map +1 -1
  75. package/dist/esm/UserAgent.d.ts +16 -0
  76. package/dist/esm/UserAgent.d.ts.map +1 -1
  77. package/dist/esm/UserAgent.js +34 -0
  78. package/dist/esm/UserAgent.js.map +1 -1
  79. package/package.json +3 -3
  80. package/src/AppointmentAgent.ts +30 -0
  81. package/src/BLOBAgent.ts +41 -41
  82. package/src/Carriers.ts +319 -73
  83. package/src/Converters.ts +140 -41
  84. package/src/DashAgent.ts +170 -0
  85. package/src/DiagnosticsAgent.ts +56 -0
  86. package/src/Enums.ts +19 -0
  87. package/src/PersonAgent.ts +63 -3
  88. package/src/SelectionAgent.ts +62 -2
  89. package/src/TicketAgent.ts +56 -0
  90. package/src/UserAgent.ts +58 -0
@@ -140,26 +140,26 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
140
140
  /**
141
141
  * Returns the project image that is displayed in the CRM application.
142
142
  * @param request - ProjectId
143
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
143
+ * @returns The project image.
144
144
  */
145
145
  getProjectImageAsync(request: carriers.BLOB_GetProjectImageRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
146
146
  /**
147
147
  * Returns the project image that is displayed in the CRM application.
148
148
  * @param projectId - The project id of the project the image belongs to.
149
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
149
+ * @returns The project image.
150
150
  */
151
151
  getProjectImageAsync(projectId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
152
152
  private _getPersonImageAsync;
153
153
  /**
154
154
  * Returns the person image that is displayed in the CRM application.
155
155
  * @param request - PersonId
156
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
156
+ * @returns The person image.
157
157
  */
158
158
  getPersonImageAsync(request: carriers.BLOB_GetPersonImageRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
159
159
  /**
160
160
  * Returns the person image that is displayed in the CRM application.
161
161
  * @param personId - The person id of the person the image belongs to.
162
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
162
+ * @returns The person image.
163
163
  */
164
164
  getPersonImageAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
165
165
  private _setProjectImageAsync;
@@ -172,7 +172,7 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
172
172
  /**
173
173
  * Stores the project image that is displayed in the CRM application.
174
174
  * @param projectId - The project id of the project the image belongs to.
175
- * @param image - The image that is stored on the project (System.Drawing.Image)
175
+ * @param image - The project image.
176
176
  * @returns
177
177
  */
178
178
  setProjectImageAsync(projectId: number, image: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
@@ -186,7 +186,7 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
186
186
  /**
187
187
  * Stores the person image that is displayed in the CRM application.
188
188
  * @param personId - The person id of the person the image belongs to.
189
- * @param image - The image that is stored on the person (System.Drawing.Image)
189
+ * @param image - The person image.
190
190
  * @returns
191
191
  */
192
192
  setPersonImageAsync(personId: number, image: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
@@ -213,8 +213,8 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
213
213
  saveProjectImageAsync(request: carriers.BLOB_SaveProjectImageRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
214
214
  /**
215
215
  * Saves a project image that is displayed in the CRM application&apos;s project image selection dialog to the database.
216
- * @param description - Image description. Should be image name (e.g. winter.jpg) for project images
217
- * @param image - The project image (System.Drawing.Image)
216
+ * @param description - Image description. Should be image name (e.g. winter.jpg) for project images.
217
+ * @param image - The project image.
218
218
  * @returns
219
219
  */
220
220
  saveProjectImageAsync(description: string, image: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
@@ -288,28 +288,28 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
288
288
  /**
289
289
  * Stores an image in the database without linking it to a project or a person. It is possible to ChangePersonImage or ChangeProjectImage to attach image later.
290
290
  * @param request - Type, Image, Description
291
- * @returns The blob id
291
+ * @returns The blob id.
292
292
  */
293
293
  saveImageStreamAsync(request: carriers.BLOB_SaveImageStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<number>;
294
294
  /**
295
295
  * Stores an image in the database without linking it to a project or a person. It is possible to ChangePersonImage or ChangeProjectImage to attach image later.
296
296
  * @param type - The type of the image.
297
- * @param image - Image to store
298
- * @param description - Image description
299
- * @returns The blob id
297
+ * @param image - Image to store.
298
+ * @param description - Image description.
299
+ * @returns The blob id.
300
300
  */
301
301
  saveImageStreamAsync(type: enums.BlobLinkType, image: ArrayBuffer | string, description: string, webapi_options?: base.WebApiRequestOptions): Promise<number>;
302
302
  private _getProductImageAsync;
303
303
  /**
304
304
  * Returns the product image (rank=1) that is displayed in the CRM application.
305
305
  * @param request - ProductId
306
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
306
+ * @returns The product image.
307
307
  */
308
308
  getProductImageAsync(request: carriers.BLOB_GetProductImageRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
309
309
  /**
310
310
  * Returns the product image (rank=1) that is displayed in the CRM application.
311
311
  * @param productId - The product id of the product the image belongs to.
312
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
312
+ * @returns The product image.
313
313
  */
314
314
  getProductImageAsync(productId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
315
315
  private _setProductImageAsync;
@@ -322,7 +322,7 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
322
322
  /**
323
323
  * Stores the product image that is displayed in the CRM application. The image is scaled down to max 1000x1000. This method operates only the main (rank=1) image; future extensions may support multiple images. A thumbnail of size 75x75 is also automatically set.
324
324
  * @param productId - The product id of the product the image belongs to.
325
- * @param image - The image that is stored on the product (System.Drawing.Image), scaled down to no more than 1000x1000
325
+ * @param image - The product image, scaled down to no more than 1000x1000.
326
326
  * @returns
327
327
  */
328
328
  setProductImageAsync(productId: number, image: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
@@ -330,13 +330,13 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
330
330
  /**
331
331
  * Returns the product thumbnail that is displayed in the CRM application.
332
332
  * @param request - ProductId
333
- * @returns The thumbnail as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
333
+ * @returns The product thumbnail.
334
334
  */
335
335
  getProductThumbnailAsync(request: carriers.BLOB_GetProductThumbnailRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
336
336
  /**
337
337
  * Returns the product thumbnail that is displayed in the CRM application.
338
338
  * @param productId - The product id of the product the thumbnail belongs to.
339
- * @returns The thumbnail as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
339
+ * @returns The product thumbnail.
340
340
  */
341
341
  getProductThumbnailAsync(productId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
342
342
  private _setProductThumbnailAsync;
@@ -349,7 +349,7 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
349
349
  /**
350
350
  * Stores the product thumbnail that is displayed in the CRM application. The image is scaled down to max 200x200 pixels.
351
351
  * @param productId - The product id of the product the image belongs to.
352
- * @param image - The image that is stored on the product (System.Drawing.Image); scaled down to no more than 200x200
352
+ * @param image - The product thumbnail, scaled down to no more than 200x200.
353
353
  * @returns
354
354
  */
355
355
  setProductThumbnailAsync(productId: number, image: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
@@ -371,71 +371,71 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
371
371
  /**
372
372
  * Returns the quoteline image (rank=1) that is displayed in the CRM application.
373
373
  * @param request - QuoteLineId
374
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
374
+ * @returns The quote line image.
375
375
  */
376
376
  getQuoteLineImageAsync(request: carriers.BLOB_GetQuoteLineImageRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
377
377
  /**
378
378
  * Returns the quoteline image (rank=1) that is displayed in the CRM application.
379
379
  * @param quoteLineId - The product id of the quoteline the image belongs to.
380
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
380
+ * @returns The quote line image.
381
381
  */
382
382
  getQuoteLineImageAsync(quoteLineId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
383
383
  private _getPersonImageWithSizeAsync;
384
384
  /**
385
385
  * Returns the person image that is displayed in the CRM application with a specified maximum size.
386
386
  * @param request - PersonId, Width, Height
387
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a jpeg/base64 encoded string.)
387
+ * @returns The person image.
388
388
  */
389
389
  getPersonImageWithSizeAsync(request: carriers.BLOB_GetPersonImageWithSizeRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
390
390
  /**
391
391
  * Returns the person image that is displayed in the CRM application with a specified maximum size.
392
392
  * @param personId - The person id of the person the image belongs to.
393
- * @param width - The maximum with of the returned image. Specify <= 0 to preserve aspect ratio of existing image
394
- * @param height - The maximum height of the returned image. Specify <= 0 to preserve aspect ratio of existing image
395
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a jpeg/base64 encoded string.)
393
+ * @param width - The maximum with of the returned image. Specify <= 0 to preserve aspect ratio of existing image.
394
+ * @param height - The maximum height of the returned image. Specify <= 0 to preserve aspect ratio of existing image.
395
+ * @returns The person image.
396
396
  */
397
397
  getPersonImageWithSizeAsync(personId: number, width: number, height: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
398
398
  private _getProjectImageWithSizeAsync;
399
399
  /**
400
400
  * Returns the project image that is displayed in the CRM application with a specified maximum size.
401
401
  * @param request - ProjectId, Width, Height
402
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a jpeg/base64 encoded string.)
402
+ * @returns The project image.
403
403
  */
404
404
  getProjectImageWithSizeAsync(request: carriers.BLOB_GetProjectImageWithSizeRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
405
405
  /**
406
406
  * Returns the project image that is displayed in the CRM application with a specified maximum size.
407
407
  * @param projectId - The project id of the project the image belongs to.
408
- * @param width - The maximum with of the returned image. Specify <= 0 to preserve aspect ratio of existing image
409
- * @param height - The maximum height of the returned image. Specify <= 0 to preserve aspect ratio of existing image
410
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a jpeg/base64 encoded string.)
408
+ * @param width - The maximum with of the returned image. Specify <= 0 to preserve aspect ratio of existing image.
409
+ * @param height - The maximum height of the returned image. Specify <= 0 to preserve aspect ratio of existing image.
410
+ * @returns The project image.
411
411
  */
412
412
  getProjectImageWithSizeAsync(projectId: number, width: number, height: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
413
413
  private _getChatImageWithSizeAsync;
414
414
  /**
415
415
  * Returns the chat image that is displayed in chat with a specified maximum size.
416
416
  * @param request - ChatTopicId, Width, Height
417
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a jpeg/base64 encoded string.)
417
+ * @returns The chat image.
418
418
  */
419
419
  getChatImageWithSizeAsync(request: carriers.BLOB_GetChatImageWithSizeRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
420
420
  /**
421
421
  * Returns the chat image that is displayed in chat with a specified maximum size.
422
422
  * @param chatTopicId - The project id of the project the image belongs to.
423
- * @param width - The maximum with of the returned image. Specify <= 0 to preserve aspect ratio of existing image
424
- * @param height - The maximum height of the returned image. Specify <= 0 to preserve aspect ratio of existing image
425
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a jpeg/base64 encoded string.)
423
+ * @param width - The maximum with of the returned image. Specify <= 0 to preserve aspect ratio of existing image.
424
+ * @param height - The maximum height of the returned image. Specify <= 0 to preserve aspect ratio of existing image.
425
+ * @returns The chat image.
426
426
  */
427
427
  getChatImageWithSizeAsync(chatTopicId: number, width: number, height: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
428
428
  private _getContactImageAsync;
429
429
  /**
430
430
  * Returns the contact image that is displayed in the CRM application.
431
431
  * @param request - ContactId
432
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
432
+ * @returns The contact image.
433
433
  */
434
434
  getContactImageAsync(request: carriers.BLOB_GetContactImageRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
435
435
  /**
436
436
  * Returns the contact image that is displayed in the CRM application.
437
437
  * @param contactId - The contact id of the contact the image belongs to.
438
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
438
+ * @returns The contact image.
439
439
  */
440
440
  getContactImageAsync(contactId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
441
441
  private _setContactImageAsync;
@@ -448,7 +448,7 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
448
448
  /**
449
449
  * Stores the contact image that is displayed in the CRM application.
450
450
  * @param contactId - The contact id of the contact the image belongs to.
451
- * @param image - The image that is stored on the contact (System.Drawing.Image)
451
+ * @param image - The contact image.
452
452
  * @returns
453
453
  */
454
454
  setContactImageAsync(contactId: number, image: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
@@ -483,28 +483,28 @@ export declare class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
483
483
  /**
484
484
  * Returns the contact image that is displayed in the CRM application with a specified maximum size.
485
485
  * @param request - ContactId, Width, Height
486
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a jpeg/base64 encoded string.)
486
+ * @returns The contact image.
487
487
  */
488
488
  getContactImageWithSizeAsync(request: carriers.BLOB_GetContactImageWithSizeRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
489
489
  /**
490
490
  * Returns the contact image that is displayed in the CRM application with a specified maximum size.
491
491
  * @param contactId - The contact id of the Contact the image belongs to.
492
- * @param width - The maximum with of the returned image. Specify <= 0 to preserve aspect ratio of existing image
493
- * @param height - The maximum height of the returned image. Specify <= 0 to preserve aspect ratio of existing image
494
- * @returns The image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a jpeg/base64 encoded string.)
492
+ * @param width - The maximum with of the returned image. Specify <= 0 to preserve aspect ratio of existing image.
493
+ * @param height - The maximum height of the returned image. Specify <= 0 to preserve aspect ratio of existing image.
494
+ * @returns The contact image.
495
495
  */
496
496
  getContactImageWithSizeAsync(contactId: number, width: number, height: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
497
497
  private _getOutputFromBatchAsync;
498
498
  /**
499
499
  * Get the output of a batchtask as a stream
500
500
  * @param request - BatchTaskId
501
- * @returns The binary object as a Stream
501
+ * @returns The binary object as a Stream.
502
502
  */
503
503
  getOutputFromBatchAsync(request: carriers.BLOB_GetOutputFromBatchRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
504
504
  /**
505
505
  * Get the output of a batchtask as a stream
506
506
  * @param batchTaskId - The ID of the batchtask that created the output data
507
- * @returns The binary object as a Stream
507
+ * @returns The binary object as a Stream.
508
508
  */
509
509
  getOutputFromBatchAsync(batchTaskId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
510
510
  private _cleanupBatchTaskAsync;