apify-client 3.0.0-beta.52 → 3.0.0-beta.54
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/apify_api_error.d.ts +4 -4
- package/dist/apify_api_error.js +1 -1
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/dist/generated/api.d.ts +173 -177
- package/dist/generated/schemas.d.ts +51 -101
- package/dist/generated/schemas.js +91 -94
- package/dist/http_clients/base.d.ts +2 -4
- package/dist/models.d.ts +157 -180
- package/dist/models.js +6 -4
- package/dist/resource_clients/actor.d.ts +7 -7
- package/dist/resource_clients/actor.js +2 -2
- package/dist/resource_clients/actor_collection.d.ts +10 -10
- package/dist/resource_clients/actor_collection.js +1 -1
- package/dist/resource_clients/actor_env_var.d.ts +3 -3
- package/dist/resource_clients/actor_env_var_collection.d.ts +4 -4
- package/dist/resource_clients/actor_version.d.ts +5 -5
- package/dist/resource_clients/actor_version_collection.d.ts +4 -4
- package/dist/resource_clients/build.d.ts +1 -1
- package/dist/resource_clients/build_collection.d.ts +4 -4
- package/dist/resource_clients/dataset.d.ts +4 -4
- package/dist/resource_clients/dataset.js +2 -2
- package/dist/resource_clients/dataset_collection.d.ts +4 -4
- package/dist/resource_clients/dataset_collection.js +1 -1
- package/dist/resource_clients/key_value_store.d.ts +6 -6
- package/dist/resource_clients/key_value_store.js +2 -2
- package/dist/resource_clients/key_value_store_collection.d.ts +4 -4
- package/dist/resource_clients/key_value_store_collection.js +1 -1
- package/dist/resource_clients/request_queue.d.ts +18 -18
- package/dist/resource_clients/request_queue.js +3 -3
- package/dist/resource_clients/request_queue_collection.d.ts +4 -4
- package/dist/resource_clients/request_queue_collection.js +1 -1
- package/dist/resource_clients/run.d.ts +15 -15
- package/dist/resource_clients/run.js +7 -7
- package/dist/resource_clients/run_collection.d.ts +2 -2
- package/dist/resource_clients/schedule.d.ts +3 -3
- package/dist/resource_clients/schedule.js +1 -1
- package/dist/resource_clients/store_collection.d.ts +3 -3
- package/dist/resource_clients/task.d.ts +3 -3
- package/dist/resource_clients/task_collection.d.ts +3 -3
- package/dist/resource_clients/user.d.ts +4 -4
- package/dist/resource_clients/webhook.d.ts +5 -5
- package/dist/resource_clients/webhook.js +2 -2
- package/dist/resource_clients/webhook_collection.d.ts +3 -3
- package/dist/resource_clients/webhook_collection.js +1 -1
- package/dist/utils.d.ts +3 -3
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@ import type { ApiClientSubResourceOptions } from '../base/api_client.js';
|
|
|
2
2
|
import { ResourceCollectionClient } from '../base/resource_collection_client.js';
|
|
3
3
|
import type { TimeoutOptions } from '../timeouts.js';
|
|
4
4
|
import type { PaginatedIterator, PaginationOptions } from '../utils.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { WebhookResource, WebhookUpdateData } from './webhook.js';
|
|
6
6
|
/**
|
|
7
7
|
* Client for managing the collection of Webhooks.
|
|
8
8
|
*
|
|
@@ -52,7 +52,7 @@ export declare class WebhookCollectionClient extends ResourceCollectionClient {
|
|
|
52
52
|
* @returns A paginated iterator of webhooks.
|
|
53
53
|
* @see https://docs.apify.com/api/v2/webhooks-get
|
|
54
54
|
*/
|
|
55
|
-
list(options?: WebhookCollectionListOptions): PaginatedIterator<Omit<
|
|
55
|
+
list(options?: WebhookCollectionListOptions): PaginatedIterator<Omit<WebhookResource, 'payloadTemplate' | 'headersTemplate'>>;
|
|
56
56
|
/**
|
|
57
57
|
* Creates a new webhook.
|
|
58
58
|
*
|
|
@@ -62,7 +62,7 @@ export declare class WebhookCollectionClient extends ResourceCollectionClient {
|
|
|
62
62
|
* @returns The created webhook object.
|
|
63
63
|
* @see https://docs.apify.com/api/v2/webhooks-post
|
|
64
64
|
*/
|
|
65
|
-
create(webhook?: WebhookUpdateData, options?: TimeoutOptions): Promise<
|
|
65
|
+
create(webhook?: WebhookUpdateData, options?: TimeoutOptions): Promise<WebhookResource>;
|
|
66
66
|
}
|
|
67
67
|
export interface WebhookCollectionListOptions extends PaginationOptions, TimeoutOptions {
|
|
68
68
|
desc?: boolean;
|
|
@@ -79,6 +79,6 @@ export class WebhookCollectionClient extends ResourceCollectionClient {
|
|
|
79
79
|
async create(webhook, options = {}) {
|
|
80
80
|
parseArgument(webhook, webhookCreateSchema);
|
|
81
81
|
const { timeoutSecs = 'short', signal } = parseArgument(options, timeoutOptionsSchema, 'TimeoutOptions');
|
|
82
|
-
return this.createResource(schemas.
|
|
82
|
+
return this.createResource(schemas.WebhookResource(), webhook, timeoutSecs, signal);
|
|
83
83
|
}
|
|
84
84
|
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
import type { ApifyApiError } from './apify_api_error.js';
|
|
5
5
|
import { parseArgument } from '@apify/validations';
|
|
6
6
|
import type { ApifyResponse } from './http_clients/index.js';
|
|
7
|
-
import type {
|
|
7
|
+
import type { ListOfRequests, RequestQueueClientListRequestsOptions } from './resource_clients/request_queue.js';
|
|
8
8
|
import type { WebhookUpdateData } from './resource_clients/webhook.js';
|
|
9
9
|
/**
|
|
10
10
|
* Smallest request body, in bytes, that is worth compressing. A smaller body already fits in a single network
|
|
@@ -121,14 +121,14 @@ export declare function isStream(value: unknown): value is Readable;
|
|
|
121
121
|
export declare class RequestQueuePaginationIterator {
|
|
122
122
|
#private;
|
|
123
123
|
constructor(options: RequestQueuePaginationIteratorOptions);
|
|
124
|
-
[Symbol.asyncIterator](): AsyncIterator<
|
|
124
|
+
[Symbol.asyncIterator](): AsyncIterator<ListOfRequests>;
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
127
|
* Options for creating a pagination iterator.
|
|
128
128
|
*/
|
|
129
129
|
export interface RequestQueuePaginationIteratorOptions {
|
|
130
130
|
maxPageLimit: number;
|
|
131
|
-
getPage: (opts: RequestQueueClientListRequestsOptions) => Promise<
|
|
131
|
+
getPage: (opts: RequestQueueClientListRequestsOptions) => Promise<ListOfRequests>;
|
|
132
132
|
limit?: number;
|
|
133
133
|
cursor?: string;
|
|
134
134
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-client",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.54",
|
|
4
4
|
"description": "Apify API client for JavaScript",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.13.0"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@apify/oxlint-config": "^0.3.0",
|
|
80
80
|
"@apify/tsconfig": "^0.2.0",
|
|
81
|
-
"@crawlee/puppeteer": "4.0.0-rc.
|
|
81
|
+
"@crawlee/puppeteer": "4.0.0-rc.1",
|
|
82
82
|
"@rsbuild/core": "^2.2.10",
|
|
83
83
|
"@rsbuild/plugin-node-polyfill": "^1.4.6",
|
|
84
84
|
"@rspack/cli": "^2.2.8",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"esbuild": "0.28.2",
|
|
93
93
|
"express": "^5.2.1",
|
|
94
94
|
"oxfmt": "0.72.0",
|
|
95
|
-
"oxlint": "1.
|
|
95
|
+
"oxlint": "1.87.0",
|
|
96
96
|
"oxlint-tsgolint": "7.0.2003",
|
|
97
97
|
"puppeteer": "^25.12.0",
|
|
98
98
|
"rimraf": "^6.1.3",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"devEngines": {
|
|
107
107
|
"packageManager": {
|
|
108
108
|
"name": "pnpm",
|
|
109
|
-
"version": "12.
|
|
109
|
+
"version": "12.10.1",
|
|
110
110
|
"onFail": "warn"
|
|
111
111
|
}
|
|
112
112
|
},
|