apify-client 2.24.1-beta.6 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +31 -1
- package/dist/bundle.js.map +1 -1
- package/dist/resource_clients/task.d.ts +49 -1
- package/dist/resource_clients/task.js +28 -0
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -17196,6 +17196,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17196
17196
|
ow__rspack_import_6_default()(newFields, (ow__rspack_import_6_default().object));
|
|
17197
17197
|
return this._update(newFields);
|
|
17198
17198
|
}
|
|
17199
|
+
/**
|
|
17200
|
+
* Publishes the task on its public landing page, by setting `isPublic` through
|
|
17201
|
+
* {@apilink TaskClient.update}.
|
|
17202
|
+
*
|
|
17203
|
+
* The task's Actor must be public and the task must have its public display configuration
|
|
17204
|
+
* (`publicConfig`) set up first. Requires write permission to both the task and its Actor.
|
|
17205
|
+
* Publishing an already published task does nothing.
|
|
17206
|
+
*
|
|
17207
|
+
* @returns The task object.
|
|
17208
|
+
* @see https://docs.apify.com/api/v2/actor-task-put
|
|
17209
|
+
*/ async publish() {
|
|
17210
|
+
return this.update({
|
|
17211
|
+
isPublic: true
|
|
17212
|
+
});
|
|
17213
|
+
}
|
|
17214
|
+
/**
|
|
17215
|
+
* Unpublishes the task from its public landing page, by setting `isPublic` through
|
|
17216
|
+
* {@apilink TaskClient.update}.
|
|
17217
|
+
*
|
|
17218
|
+
* The public display configuration (`publicConfig`) is preserved, so the task can be
|
|
17219
|
+
* published again without re-entering it. Requires write permission to both the task and its
|
|
17220
|
+
* Actor. Unpublishing a task that is not published does nothing.
|
|
17221
|
+
*
|
|
17222
|
+
* @returns The task object.
|
|
17223
|
+
* @see https://docs.apify.com/api/v2/actor-task-put
|
|
17224
|
+
*/ async unpublish() {
|
|
17225
|
+
return this.update({
|
|
17226
|
+
isPublic: false
|
|
17227
|
+
});
|
|
17228
|
+
}
|
|
17199
17229
|
/**
|
|
17200
17230
|
* Deletes the Task.
|
|
17201
17231
|
*
|
|
@@ -18123,7 +18153,7 @@ function isStream(value) {
|
|
|
18123
18153
|
function getVersionData() {
|
|
18124
18154
|
if (true) {
|
|
18125
18155
|
return {
|
|
18126
|
-
version: "2.
|
|
18156
|
+
version: "2.25.0"
|
|
18127
18157
|
};
|
|
18128
18158
|
}
|
|
18129
18159
|
// eslint-disable-next-line
|