botasaurus-desktop-api 4.1.86 → 4.1.88

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/dist/bundle.js CHANGED
@@ -3001,7 +3001,7 @@ const api = new Api({ apiUrl: 'https://example.com' })`);
3001
3001
  }
3002
3002
  }
3003
3003
  async getTasks() {
3004
- let { page = 1, perPage, withResults = true } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3004
+ let { page = 1, perPage, withResults = true, parentTaskId } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3005
3005
  page: 1,
3006
3006
  withResults: true
3007
3007
  };
@@ -3011,6 +3011,7 @@ const api = new Api({ apiUrl: 'https://example.com' })`);
3011
3011
  * @param page The page number for pagination.
3012
3012
  * @param perPage The number of tasks to return per page.
3013
3013
  * @param withResults Whether to include the task results in the response.
3014
+ * @param parentTaskId Filter tasks by parent task ID.
3014
3015
  * @return A dictionary containing the task results and pagination information.
3015
3016
  */ const url = this._makeApiUrl("tasks");
3016
3017
  const params = {
@@ -3018,6 +3019,7 @@ const api = new Api({ apiUrl: 'https://example.com' })`);
3018
3019
  };
3019
3020
  if (page !== undefined && page !== null) params.page = page;
3020
3021
  if (perPage !== undefined && perPage !== null) params.per_page = perPage;
3022
+ if (parentTaskId !== undefined && parentTaskId !== null) params.parent_task_id = parentTaskId;
3021
3023
  try {
3022
3024
  const response = await axios__WEBPACK_IMPORTED_MODULE_1__["default"].get(url, {
3023
3025
  params
@@ -8004,7 +8006,7 @@ __webpack_require__.hu = (chunkId) => ('' + chunkId + '.' + __webpack_require__.
8004
8006
  })();
8005
8007
  // webpack/runtime/get_full_hash
8006
8008
  (() => {
8007
- __webpack_require__.h = () => ("94e1e84fee824fd4")
8009
+ __webpack_require__.h = () => ("775ccca5c31f8cc2")
8008
8010
  })();
8009
8011
  // webpack/runtime/get_main_filename/update manifest
8010
8012
  (() => {