apify 3.0.4-beta.43 → 3.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.
- package/{dist/actor.d.ts → actor.d.ts} +102 -126
- package/actor.d.ts.map +1 -0
- package/{dist/actor.js → actor.js} +124 -130
- package/actor.js.map +1 -0
- package/{dist/configuration.d.ts → configuration.d.ts} +4 -0
- package/{dist/configuration.d.ts.map → configuration.d.ts.map} +1 -1
- package/{dist/configuration.js → configuration.js} +2 -0
- package/configuration.js.map +1 -0
- package/{dist/index.d.ts → index.d.ts} +2 -1
- package/{dist/index.d.ts.map → index.d.ts.map} +1 -1
- package/index.js +21 -0
- package/index.js.map +1 -0
- package/{dist/index.mjs → index.mjs} +7 -0
- package/{dist/key_value_store.d.ts → key_value_store.d.ts} +0 -0
- package/{dist/key_value_store.d.ts.map → key_value_store.d.ts.map} +0 -0
- package/{dist/key_value_store.js → key_value_store.js} +0 -0
- package/{dist/key_value_store.js.map → key_value_store.js.map} +0 -0
- package/package.json +19 -17
- package/{dist/platform_event_manager.d.ts → platform_event_manager.d.ts} +3 -3
- package/{dist/platform_event_manager.d.ts.map → platform_event_manager.d.ts.map} +0 -0
- package/{dist/platform_event_manager.js → platform_event_manager.js} +3 -3
- package/{dist/platform_event_manager.js.map → platform_event_manager.js.map} +0 -0
- package/{dist/proxy_configuration.d.ts → proxy_configuration.d.ts} +9 -9
- package/{dist/proxy_configuration.d.ts.map → proxy_configuration.d.ts.map} +0 -0
- package/{dist/proxy_configuration.js → proxy_configuration.js} +8 -8
- package/{dist/proxy_configuration.js.map → proxy_configuration.js.map} +0 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/{dist/utils.d.ts → utils.d.ts} +0 -0
- package/{dist/utils.d.ts.map → utils.d.ts.map} +0 -0
- package/{dist/utils.js → utils.js} +0 -0
- package/{dist/utils.js.map → utils.js.map} +0 -0
- package/.turbo/turbo-build.log +0 -21
- package/.turbo/turbo-copy.log +0 -5
- package/dist/LICENSE.md +0 -201
- package/dist/README.md +0 -98
- package/dist/actor.d.ts.map +0 -1
- package/dist/actor.js.map +0 -1
- package/dist/configuration.js.map +0 -1
- package/dist/index.js +0 -13
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -69
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { ActorStartOptions, ApifyClientOptions, RunAbortOptions, TaskStartOptions, Webhook, WebhookEventType } from 'apify-client';
|
|
3
3
|
import { ActorRun as ClientActorRun, ApifyClient } from 'apify-client';
|
|
4
|
-
import type { ConfigurationOptions, EventManager, EventTypeName, RecordOptions } from '@crawlee/core';
|
|
4
|
+
import type { ConfigurationOptions, EventManager, EventTypeName, RecordOptions, UseStateOptions } from '@crawlee/core';
|
|
5
5
|
import { Dataset, RequestQueue } from '@crawlee/core';
|
|
6
6
|
import type { Awaitable, Dictionary, StorageClient } from '@crawlee/types';
|
|
7
7
|
import type { ProxyConfigurationOptions } from './proxy_configuration';
|
|
@@ -9,25 +9,25 @@ import { ProxyConfiguration } from './proxy_configuration';
|
|
|
9
9
|
import { KeyValueStore } from './key_value_store';
|
|
10
10
|
import { Configuration } from './configuration';
|
|
11
11
|
/**
|
|
12
|
-
* `
|
|
12
|
+
* `Actor` class serves as an alternative approach to the static helpers exported from the package. It allows to pass configuration
|
|
13
13
|
* that will be used on the instance methods. Environment variables will have precedence over this configuration.
|
|
14
|
-
* See {@
|
|
14
|
+
* See {@apilink Configuration} for details about what can be configured and what are the default values.
|
|
15
15
|
*/
|
|
16
16
|
export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
17
17
|
/** @internal */
|
|
18
18
|
static _instance: Actor;
|
|
19
19
|
/**
|
|
20
|
-
* Configuration of this SDK instance (provided to its constructor). See {@
|
|
20
|
+
* Configuration of this SDK instance (provided to its constructor). See {@apilink Configuration} for details.
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
23
|
readonly config: Configuration;
|
|
24
24
|
/**
|
|
25
|
-
* Default {@
|
|
25
|
+
* Default {@apilink ApifyClient} instance.
|
|
26
26
|
* @internal
|
|
27
27
|
*/
|
|
28
28
|
readonly apifyClient: ApifyClient;
|
|
29
29
|
/**
|
|
30
|
-
* Default {@
|
|
30
|
+
* Default {@apilink EventManager} instance.
|
|
31
31
|
* @internal
|
|
32
32
|
*/
|
|
33
33
|
readonly eventManager: EventManager;
|
|
@@ -49,7 +49,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
49
49
|
* - When running on the Apify platform (i.e. `APIFY_IS_AT_HOME` environment variable is set),
|
|
50
50
|
* it sets up a connection to listen for platform events.
|
|
51
51
|
* For example, to get a notification about an imminent migration to another server.
|
|
52
|
-
* See {@
|
|
52
|
+
* See {@apilink Actor.events} for details.
|
|
53
53
|
* - It checks that either `APIFY_TOKEN` or `APIFY_LOCAL_STORAGE_DIR` environment variable
|
|
54
54
|
* is defined. If not, the functions sets `APIFY_LOCAL_STORAGE_DIR` to `./apify_storage`
|
|
55
55
|
* inside the current working directory. This is to simplify running code examples.
|
|
@@ -119,32 +119,20 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
119
119
|
*/
|
|
120
120
|
off(event: EventTypeName, listener?: (...args: any[]) => any): void;
|
|
121
121
|
/**
|
|
122
|
-
* Runs an actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable)
|
|
123
|
-
* waits for the actor to finish and fetches its output.
|
|
124
|
-
*
|
|
125
|
-
* By passing the `waitSecs` option you can reduce the maximum amount of time to wait for the run to finish.
|
|
126
|
-
* If the value is less than or equal to zero, the function returns immediately after the run is started.
|
|
122
|
+
* Runs an actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
127
123
|
*
|
|
128
|
-
* The result of the function is an {@
|
|
129
|
-
* that contains details about the actor run and its output (if any).
|
|
124
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
130
125
|
*
|
|
131
|
-
* If you want to run an actor task rather than an actor, please use the
|
|
132
|
-
* {@link Actor.callTask} function instead.
|
|
126
|
+
* If you want to run an actor task rather than an actor, please use the {@apilink Actor.callTask} function instead.
|
|
133
127
|
*
|
|
134
|
-
* For more information about actors, read the
|
|
135
|
-
* [documentation](https://docs.apify.com/actor).
|
|
128
|
+
* For more information about actors, read the [documentation](https://docs.apify.com/actor).
|
|
136
129
|
*
|
|
137
130
|
* **Example usage:**
|
|
138
131
|
*
|
|
139
132
|
* ```javascript
|
|
140
133
|
* const run = await Actor.call('apify/hello-world', { myInput: 123 });
|
|
141
|
-
* console.log(`Received message: ${run.output.body.message}`);
|
|
142
134
|
* ```
|
|
143
135
|
*
|
|
144
|
-
* Internally, the `call()` function invokes the
|
|
145
|
-
* [Run actor](https://apify.com/docs/api/v2#/reference/actors/run-collection/run-actor)
|
|
146
|
-
* and several other API endpoints to obtain the output.
|
|
147
|
-
*
|
|
148
136
|
* @param actorId
|
|
149
137
|
* Allowed formats are `username/actor-name`, `userId/actor-name` or actor ID.
|
|
150
138
|
* @param [input]
|
|
@@ -159,7 +147,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
159
147
|
* Runs an actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable),
|
|
160
148
|
* unlike `Actor.call`, this method just starts the run without waiting for finish.
|
|
161
149
|
*
|
|
162
|
-
* The result of the function is an {@
|
|
150
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
163
151
|
*
|
|
164
152
|
* For more information about actors, read the
|
|
165
153
|
* [documentation](https://docs.apify.com/actor).
|
|
@@ -183,7 +171,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
183
171
|
/**
|
|
184
172
|
* Aborts given actor run on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
185
173
|
*
|
|
186
|
-
* The result of the function is an {@
|
|
174
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
187
175
|
*
|
|
188
176
|
* For more information about actors, read the
|
|
189
177
|
* [documentation](https://docs.apify.com/actor).
|
|
@@ -197,18 +185,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
197
185
|
*/
|
|
198
186
|
abort(runId: string, options?: AbortOptions): Promise<ClientActorRun>;
|
|
199
187
|
/**
|
|
200
|
-
* Runs an actor task on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable)
|
|
201
|
-
* waits for the task to finish and fetches its output.
|
|
202
|
-
*
|
|
203
|
-
* By passing the `waitSecs` option you can reduce the maximum amount of time to wait for the run to finish.
|
|
204
|
-
* If the value is less than or equal to zero, the function returns immediately after the run is started.
|
|
188
|
+
* Runs an actor task on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
205
189
|
*
|
|
206
|
-
* The result of the function is an {@
|
|
207
|
-
* that contains details about the actor run and its output (if any).
|
|
190
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
208
191
|
*
|
|
209
192
|
* Note that an actor task is a saved input configuration and options for an actor.
|
|
210
193
|
* If you want to run an actor directly rather than an actor task, please use the
|
|
211
|
-
* {@
|
|
194
|
+
* {@apilink Actor.call} function instead.
|
|
212
195
|
*
|
|
213
196
|
* For more information about actor tasks, read the [documentation](https://docs.apify.com/tasks).
|
|
214
197
|
*
|
|
@@ -216,13 +199,8 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
216
199
|
*
|
|
217
200
|
* ```javascript
|
|
218
201
|
* const run = await Actor.callTask('bob/some-task');
|
|
219
|
-
* console.log(`Received message: ${run.output.body.message}`);
|
|
220
202
|
* ```
|
|
221
203
|
*
|
|
222
|
-
* Internally, the `callTask()` function calls the
|
|
223
|
-
* [Run task](https://apify.com/docs/api/v2#/reference/actor-tasks/run-collection/run-task)
|
|
224
|
-
* and several other API endpoints to obtain the output.
|
|
225
|
-
*
|
|
226
204
|
* @param taskId
|
|
227
205
|
* Allowed formats are `username/task-name`, `userId/task-name` or task ID.
|
|
228
206
|
* @param [input]
|
|
@@ -278,9 +256,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
278
256
|
*/
|
|
279
257
|
setStatusMessage(statusMessage: string): Promise<ClientActorRun>;
|
|
280
258
|
/**
|
|
281
|
-
* Stores an object or an array of objects to the default {@
|
|
259
|
+
* Stores an object or an array of objects to the default {@apilink Dataset} of the current actor run.
|
|
282
260
|
*
|
|
283
|
-
* This is just a convenient shortcut for {@
|
|
261
|
+
* This is just a convenient shortcut for {@apilink Dataset.pushData}.
|
|
284
262
|
* For example, calling the following code:
|
|
285
263
|
* ```javascript
|
|
286
264
|
* await Actor.pushData({ myValue: 123 });
|
|
@@ -292,7 +270,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
292
270
|
* await dataset.pushData({ myValue: 123 });
|
|
293
271
|
* ```
|
|
294
272
|
*
|
|
295
|
-
* For more information, see {@
|
|
273
|
+
* For more information, see {@apilink Actor.openDataset} and {@apilink Dataset.pushData}
|
|
296
274
|
*
|
|
297
275
|
* **IMPORTANT**: Make sure to use the `await` keyword when calling `pushData()`,
|
|
298
276
|
* otherwise the actor process might finish before the data are stored!
|
|
@@ -303,13 +281,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
303
281
|
*/
|
|
304
282
|
pushData(item: Data | Data[]): Promise<void>;
|
|
305
283
|
/**
|
|
306
|
-
* Opens a dataset and returns a promise resolving to an instance of the {@
|
|
284
|
+
* Opens a dataset and returns a promise resolving to an instance of the {@apilink Dataset} class.
|
|
307
285
|
*
|
|
308
286
|
* Datasets are used to store structured data where each object stored has the same attributes,
|
|
309
287
|
* such as online store products or real estate offers.
|
|
310
288
|
* The actual data is stored either on the local filesystem or in the cloud.
|
|
311
289
|
*
|
|
312
|
-
* For more details and code examples, see the {@
|
|
290
|
+
* For more details and code examples, see the {@apilink Dataset} class.
|
|
313
291
|
*
|
|
314
292
|
* @param [datasetIdOrName]
|
|
315
293
|
* ID or name of the dataset to be opened. If `null` or `undefined`,
|
|
@@ -319,9 +297,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
319
297
|
*/
|
|
320
298
|
openDataset(datasetIdOrName?: string | null, options?: OpenStorageOptions): Promise<Dataset<Data>>;
|
|
321
299
|
/**
|
|
322
|
-
* Gets a value from the default {@
|
|
300
|
+
* Gets a value from the default {@apilink KeyValueStore} associated with the current actor run.
|
|
323
301
|
*
|
|
324
|
-
* This is just a convenient shortcut for {@
|
|
302
|
+
* This is just a convenient shortcut for {@apilink KeyValueStore.getValue}.
|
|
325
303
|
* For example, calling the following code:
|
|
326
304
|
* ```javascript
|
|
327
305
|
* const value = await Actor.getValue('my-key');
|
|
@@ -333,10 +311,10 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
333
311
|
* const value = await store.getValue('my-key');
|
|
334
312
|
* ```
|
|
335
313
|
*
|
|
336
|
-
* To store the value to the default key-value store, you can use the {@
|
|
314
|
+
* To store the value to the default key-value store, you can use the {@apilink Actor.setValue} function.
|
|
337
315
|
*
|
|
338
|
-
* For more information, see {@
|
|
339
|
-
* and {@
|
|
316
|
+
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
317
|
+
* and {@apilink KeyValueStore.getValue}.
|
|
340
318
|
*
|
|
341
319
|
* @param key Unique record key.
|
|
342
320
|
* @returns
|
|
@@ -348,9 +326,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
348
326
|
*/
|
|
349
327
|
getValue<T = unknown>(key: string): Promise<T | null>;
|
|
350
328
|
/**
|
|
351
|
-
* Stores or deletes a value in the default {@
|
|
329
|
+
* Stores or deletes a value in the default {@apilink KeyValueStore} associated with the current actor run.
|
|
352
330
|
*
|
|
353
|
-
* This is just a convenient shortcut for {@
|
|
331
|
+
* This is just a convenient shortcut for {@apilink KeyValueStore.setValue}.
|
|
354
332
|
* For example, calling the following code:
|
|
355
333
|
* ```javascript
|
|
356
334
|
* await Actor.setValue('OUTPUT', { foo: "bar" });
|
|
@@ -362,10 +340,10 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
362
340
|
* await store.setValue('OUTPUT', { foo: "bar" });
|
|
363
341
|
* ```
|
|
364
342
|
*
|
|
365
|
-
* To get a value from the default key-value store, you can use the {@
|
|
343
|
+
* To get a value from the default key-value store, you can use the {@apilink Actor.getValue} function.
|
|
366
344
|
*
|
|
367
|
-
* For more information, see {@
|
|
368
|
-
* and {@
|
|
345
|
+
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
346
|
+
* and {@apilink KeyValueStore.getValue}.
|
|
369
347
|
*
|
|
370
348
|
* @param key
|
|
371
349
|
* Unique record key.
|
|
@@ -380,7 +358,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
380
358
|
*/
|
|
381
359
|
setValue<T>(key: string, value: T | null, options?: RecordOptions): Promise<void>;
|
|
382
360
|
/**
|
|
383
|
-
* Gets the actor input value from the default {@
|
|
361
|
+
* Gets the actor input value from the default {@apilink KeyValueStore} associated with the current actor run.
|
|
384
362
|
*
|
|
385
363
|
* This is just a convenient shortcut for [`keyValueStore.getValue('INPUT')`](core/class/KeyValueStore#getValue).
|
|
386
364
|
* For example, calling the following code:
|
|
@@ -398,8 +376,8 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
398
376
|
* If you need to use the input multiple times in your actor,
|
|
399
377
|
* it is far more efficient to read it once and store it locally.
|
|
400
378
|
*
|
|
401
|
-
* For more information, see {@
|
|
402
|
-
* and {@
|
|
379
|
+
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
380
|
+
* and {@apilink KeyValueStore.getValue}.
|
|
403
381
|
*
|
|
404
382
|
* @returns
|
|
405
383
|
* Returns a promise that resolves to an object, string
|
|
@@ -410,13 +388,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
410
388
|
*/
|
|
411
389
|
getInput<T = Dictionary | string | Buffer>(): Promise<T | null>;
|
|
412
390
|
/**
|
|
413
|
-
* Opens a key-value store and returns a promise resolving to an instance of the {@
|
|
391
|
+
* Opens a key-value store and returns a promise resolving to an instance of the {@apilink KeyValueStore} class.
|
|
414
392
|
*
|
|
415
393
|
* Key-value stores are used to store records or files, along with their MIME content type.
|
|
416
394
|
* The records are stored and retrieved using a unique key.
|
|
417
395
|
* The actual data is stored either on a local filesystem or in the Apify cloud.
|
|
418
396
|
*
|
|
419
|
-
* For more details and code examples, see the {@
|
|
397
|
+
* For more details and code examples, see the {@apilink KeyValueStore} class.
|
|
420
398
|
*
|
|
421
399
|
* @param [storeIdOrName]
|
|
422
400
|
* ID or name of the key-value store to be opened. If `null` or `undefined`,
|
|
@@ -427,14 +405,14 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
427
405
|
openKeyValueStore(storeIdOrName?: string | null, options?: OpenStorageOptions): Promise<KeyValueStore>;
|
|
428
406
|
/**
|
|
429
407
|
* Opens a request queue and returns a promise resolving to an instance
|
|
430
|
-
* of the {@
|
|
408
|
+
* of the {@apilink RequestQueue} class.
|
|
431
409
|
*
|
|
432
|
-
* {@
|
|
410
|
+
* {@apilink RequestQueue} represents a queue of URLs to crawl, which is stored either on local filesystem or in the cloud.
|
|
433
411
|
* The queue is used for deep crawling of websites, where you start with several URLs and then
|
|
434
412
|
* recursively follow links to other pages. The data structure supports both breadth-first
|
|
435
413
|
* and depth-first crawling orders.
|
|
436
414
|
*
|
|
437
|
-
* For more details and code examples, see the {@
|
|
415
|
+
* For more details and code examples, see the {@apilink RequestQueue} class.
|
|
438
416
|
*
|
|
439
417
|
* @param [queueIdOrName]
|
|
440
418
|
* ID or name of the request queue to be opened. If `null` or `undefined`,
|
|
@@ -445,13 +423,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
445
423
|
openRequestQueue(queueIdOrName?: string | null, options?: OpenStorageOptions): Promise<RequestQueue>;
|
|
446
424
|
/**
|
|
447
425
|
* Creates a proxy configuration and returns a promise resolving to an instance
|
|
448
|
-
* of the {@
|
|
426
|
+
* of the {@apilink ProxyConfiguration} class that is already initialized.
|
|
449
427
|
*
|
|
450
428
|
* Configures connection to a proxy server with the provided options. Proxy servers are used to prevent target websites from blocking
|
|
451
429
|
* your crawlers based on IP address rate limits or blacklists. Setting proxy configuration in your crawlers automatically configures
|
|
452
430
|
* them to use the selected proxies for all connections.
|
|
453
431
|
*
|
|
454
|
-
* For more details and code examples, see the {@
|
|
432
|
+
* For more details and code examples, see the {@apilink ProxyConfiguration} class.
|
|
455
433
|
*
|
|
456
434
|
* ```javascript
|
|
457
435
|
*
|
|
@@ -483,7 +461,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
483
461
|
useApifyProxy?: boolean;
|
|
484
462
|
}): Promise<ProxyConfiguration | undefined>;
|
|
485
463
|
/**
|
|
486
|
-
* Returns a new {@
|
|
464
|
+
* Returns a new {@apilink ApifyEnv} object which contains information parsed from all the `APIFY_XXX` environment variables.
|
|
487
465
|
*
|
|
488
466
|
* For the list of the `APIFY_XXX` environment variables, see
|
|
489
467
|
* [Actor documentation](https://docs.apify.com/actor/run#environment-variables).
|
|
@@ -505,6 +483,26 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
505
483
|
* @ignore
|
|
506
484
|
*/
|
|
507
485
|
isAtHome(): boolean;
|
|
486
|
+
/**
|
|
487
|
+
* Easily create and manage state values. All state values are automatically persisted.
|
|
488
|
+
*
|
|
489
|
+
* Values can be modified by simply using the assignment operator.
|
|
490
|
+
*
|
|
491
|
+
* @param name The name of the store to use.
|
|
492
|
+
* @param defaultValue If the store does not yet have a value in it, the value will be initialized with the `defaultValue` you provide.
|
|
493
|
+
* @param options An optional object parameter where a custom `keyValueStoreName` and `config` can be passed in.
|
|
494
|
+
*/
|
|
495
|
+
useState<State extends Dictionary = Dictionary>(name?: string, defaultValue?: State, options?: UseStateOptions): Promise<State>;
|
|
496
|
+
/**
|
|
497
|
+
* Easily create and manage state values. All state values are automatically persisted.
|
|
498
|
+
*
|
|
499
|
+
* Values can be modified by simply using the assignment operator.
|
|
500
|
+
*
|
|
501
|
+
* @param name The name of the store to use.
|
|
502
|
+
* @param defaultValue If the store does not yet have a value in it, the value will be initialized with the `defaultValue` you provide.
|
|
503
|
+
* @param options An optional object parameter where a custom `keyValueStoreName` and `config` can be passed in.
|
|
504
|
+
*/
|
|
505
|
+
static useState<State extends Dictionary = Dictionary>(name?: string, defaultValue?: State, options?: UseStateOptions): Promise<State>;
|
|
508
506
|
/**
|
|
509
507
|
* Runs the main user function that performs the job of the actor
|
|
510
508
|
* and terminates the process when the user function finishes.
|
|
@@ -522,7 +520,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
522
520
|
* - When running on the Apify platform (i.e. `APIFY_IS_AT_HOME` environment variable is set),
|
|
523
521
|
* it sets up a connection to listen for platform events.
|
|
524
522
|
* For example, to get a notification about an imminent migration to another server.
|
|
525
|
-
* See {@
|
|
523
|
+
* See {@apilink Actor.events} for details.
|
|
526
524
|
* - It checks that either `APIFY_TOKEN` or `APIFY_LOCAL_STORAGE_DIR` environment variable
|
|
527
525
|
* is defined. If not, the functions sets `APIFY_LOCAL_STORAGE_DIR` to `./apify_storage`
|
|
528
526
|
* inside the current working directory. This is to simplify running code examples.
|
|
@@ -576,32 +574,20 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
576
574
|
static on(event: EventTypeName, listener: (...args: any[]) => any): void;
|
|
577
575
|
static off(event: EventTypeName, listener?: (...args: any[]) => any): void;
|
|
578
576
|
/**
|
|
579
|
-
* Runs an actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable)
|
|
580
|
-
* waits for the actor to finish and fetches its output.
|
|
577
|
+
* Runs an actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
581
578
|
*
|
|
582
|
-
*
|
|
583
|
-
* If the value is less than or equal to zero, the function returns immediately after the run is started.
|
|
579
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
584
580
|
*
|
|
585
|
-
*
|
|
586
|
-
* that contains details about the actor run and its output (if any).
|
|
581
|
+
* If you want to run an actor task rather than an actor, please use the {@apilink Actor.callTask} function instead.
|
|
587
582
|
*
|
|
588
|
-
*
|
|
589
|
-
* {@link Actor.callTask} function instead.
|
|
590
|
-
*
|
|
591
|
-
* For more information about actors, read the
|
|
592
|
-
* [documentation](https://docs.apify.com/actor).
|
|
583
|
+
* For more information about actors, read the [documentation](https://docs.apify.com/actor).
|
|
593
584
|
*
|
|
594
585
|
* **Example usage:**
|
|
595
586
|
*
|
|
596
587
|
* ```javascript
|
|
597
588
|
* const run = await Actor.call('apify/hello-world', { myInput: 123 });
|
|
598
|
-
* console.log(`Received message: ${run.output.body.message}`);
|
|
599
589
|
* ```
|
|
600
590
|
*
|
|
601
|
-
* Internally, the `call()` function invokes the
|
|
602
|
-
* [Run actor](https://apify.com/docs/api/v2#/reference/actors/run-collection/run-actor)
|
|
603
|
-
* and several other API endpoints to obtain the output.
|
|
604
|
-
*
|
|
605
591
|
* @param actorId
|
|
606
592
|
* Allowed formats are `username/actor-name`, `userId/actor-name` or actor ID.
|
|
607
593
|
* @param [input]
|
|
@@ -612,18 +598,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
612
598
|
*/
|
|
613
599
|
static call(actorId: string, input?: unknown, options?: CallOptions): Promise<ClientActorRun>;
|
|
614
600
|
/**
|
|
615
|
-
* Runs an actor task on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable)
|
|
616
|
-
* waits for the task to finish and fetches its output.
|
|
601
|
+
* Runs an actor task on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
617
602
|
*
|
|
618
|
-
*
|
|
619
|
-
* If the value is less than or equal to zero, the function returns immediately after the run is started.
|
|
620
|
-
*
|
|
621
|
-
* The result of the function is an {@link ActorRun} object
|
|
622
|
-
* that contains details about the actor run and its output (if any).
|
|
603
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
623
604
|
*
|
|
624
605
|
* Note that an actor task is a saved input configuration and options for an actor.
|
|
625
606
|
* If you want to run an actor directly rather than an actor task, please use the
|
|
626
|
-
* {@
|
|
607
|
+
* {@apilink Actor.call} function instead.
|
|
627
608
|
*
|
|
628
609
|
* For more information about actor tasks, read the [documentation](https://docs.apify.com/tasks).
|
|
629
610
|
*
|
|
@@ -631,13 +612,8 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
631
612
|
*
|
|
632
613
|
* ```javascript
|
|
633
614
|
* const run = await Actor.callTask('bob/some-task');
|
|
634
|
-
* console.log(`Received message: ${run.output.body.message}`);
|
|
635
615
|
* ```
|
|
636
616
|
*
|
|
637
|
-
* Internally, the `callTask()` function calls the
|
|
638
|
-
* [Run task](https://apify.com/docs/api/v2#/reference/actor-tasks/run-collection/run-task)
|
|
639
|
-
* and several other API endpoints to obtain the output.
|
|
640
|
-
*
|
|
641
617
|
* @param taskId
|
|
642
618
|
* Allowed formats are `username/task-name`, `userId/task-name` or task ID.
|
|
643
619
|
* @param [input]
|
|
@@ -651,7 +627,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
651
627
|
* Runs an actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable),
|
|
652
628
|
* unlike `Actor.call`, this method just starts the run without waiting for finish.
|
|
653
629
|
*
|
|
654
|
-
* The result of the function is an {@
|
|
630
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
655
631
|
*
|
|
656
632
|
* For more information about actors, read the
|
|
657
633
|
* [documentation](https://docs.apify.com/actor).
|
|
@@ -674,7 +650,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
674
650
|
/**
|
|
675
651
|
* Aborts given actor run on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
676
652
|
*
|
|
677
|
-
* The result of the function is an {@
|
|
653
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
678
654
|
*
|
|
679
655
|
* For more information about actors, read the
|
|
680
656
|
* [documentation](https://docs.apify.com/actor).
|
|
@@ -726,9 +702,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
726
702
|
*/
|
|
727
703
|
static setStatusMessage(statusMessage: string): Promise<ClientActorRun>;
|
|
728
704
|
/**
|
|
729
|
-
* Stores an object or an array of objects to the default {@
|
|
705
|
+
* Stores an object or an array of objects to the default {@apilink Dataset} of the current actor run.
|
|
730
706
|
*
|
|
731
|
-
* This is just a convenient shortcut for {@
|
|
707
|
+
* This is just a convenient shortcut for {@apilink Dataset.pushData}.
|
|
732
708
|
* For example, calling the following code:
|
|
733
709
|
* ```javascript
|
|
734
710
|
* await Actor.pushData({ myValue: 123 });
|
|
@@ -740,7 +716,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
740
716
|
* await dataset.pushData({ myValue: 123 });
|
|
741
717
|
* ```
|
|
742
718
|
*
|
|
743
|
-
* For more information, see {@
|
|
719
|
+
* For more information, see {@apilink Actor.openDataset} and {@apilink Dataset.pushData}
|
|
744
720
|
*
|
|
745
721
|
* **IMPORTANT**: Make sure to use the `await` keyword when calling `pushData()`,
|
|
746
722
|
* otherwise the actor process might finish before the data are stored!
|
|
@@ -750,13 +726,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
750
726
|
*/
|
|
751
727
|
static pushData<Data extends Dictionary = Dictionary>(item: Data | Data[]): Promise<void>;
|
|
752
728
|
/**
|
|
753
|
-
* Opens a dataset and returns a promise resolving to an instance of the {@
|
|
729
|
+
* Opens a dataset and returns a promise resolving to an instance of the {@apilink Dataset} class.
|
|
754
730
|
*
|
|
755
731
|
* Datasets are used to store structured data where each object stored has the same attributes,
|
|
756
732
|
* such as online store products or real estate offers.
|
|
757
733
|
* The actual data is stored either on the local filesystem or in the cloud.
|
|
758
734
|
*
|
|
759
|
-
* For more details and code examples, see the {@
|
|
735
|
+
* For more details and code examples, see the {@apilink Dataset} class.
|
|
760
736
|
*
|
|
761
737
|
* @param [datasetIdOrName]
|
|
762
738
|
* ID or name of the dataset to be opened. If `null` or `undefined`,
|
|
@@ -765,9 +741,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
765
741
|
*/
|
|
766
742
|
static openDataset<Data extends Dictionary = Dictionary>(datasetIdOrName?: string | null, options?: OpenStorageOptions): Promise<Dataset<Data>>;
|
|
767
743
|
/**
|
|
768
|
-
* Gets a value from the default {@
|
|
744
|
+
* Gets a value from the default {@apilink KeyValueStore} associated with the current actor run.
|
|
769
745
|
*
|
|
770
|
-
* This is just a convenient shortcut for {@
|
|
746
|
+
* This is just a convenient shortcut for {@apilink KeyValueStore.getValue}.
|
|
771
747
|
* For example, calling the following code:
|
|
772
748
|
* ```javascript
|
|
773
749
|
* const value = await Actor.getValue('my-key');
|
|
@@ -779,10 +755,10 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
779
755
|
* const value = await store.getValue('my-key');
|
|
780
756
|
* ```
|
|
781
757
|
*
|
|
782
|
-
* To store the value to the default key-value store, you can use the {@
|
|
758
|
+
* To store the value to the default key-value store, you can use the {@apilink Actor.setValue} function.
|
|
783
759
|
*
|
|
784
|
-
* For more information, see {@
|
|
785
|
-
* and {@
|
|
760
|
+
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
761
|
+
* and {@apilink KeyValueStore.getValue}.
|
|
786
762
|
*
|
|
787
763
|
* @param key Unique record key.
|
|
788
764
|
* @returns
|
|
@@ -793,9 +769,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
793
769
|
*/
|
|
794
770
|
static getValue<T = unknown>(key: string): Promise<T | null>;
|
|
795
771
|
/**
|
|
796
|
-
* Stores or deletes a value in the default {@
|
|
772
|
+
* Stores or deletes a value in the default {@apilink KeyValueStore} associated with the current actor run.
|
|
797
773
|
*
|
|
798
|
-
* This is just a convenient shortcut for {@
|
|
774
|
+
* This is just a convenient shortcut for {@apilink KeyValueStore.setValue}.
|
|
799
775
|
* For example, calling the following code:
|
|
800
776
|
* ```javascript
|
|
801
777
|
* await Actor.setValue('OUTPUT', { foo: "bar" });
|
|
@@ -807,10 +783,10 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
807
783
|
* await store.setValue('OUTPUT', { foo: "bar" });
|
|
808
784
|
* ```
|
|
809
785
|
*
|
|
810
|
-
* To get a value from the default key-value store, you can use the {@
|
|
786
|
+
* To get a value from the default key-value store, you can use the {@apilink Actor.getValue} function.
|
|
811
787
|
*
|
|
812
|
-
* For more information, see {@
|
|
813
|
-
* and {@
|
|
788
|
+
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
789
|
+
* and {@apilink KeyValueStore.getValue}.
|
|
814
790
|
*
|
|
815
791
|
* @param key
|
|
816
792
|
* Unique record key.
|
|
@@ -824,9 +800,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
824
800
|
*/
|
|
825
801
|
static setValue<T>(key: string, value: T | null, options?: RecordOptions): Promise<void>;
|
|
826
802
|
/**
|
|
827
|
-
* Gets the actor input value from the default {@
|
|
803
|
+
* Gets the actor input value from the default {@apilink KeyValueStore} associated with the current actor run.
|
|
828
804
|
*
|
|
829
|
-
* This is just a convenient shortcut for {@
|
|
805
|
+
* This is just a convenient shortcut for {@apilink KeyValueStore.getValue | `keyValueStore.getValue('INPUT')`}.
|
|
830
806
|
* For example, calling the following code:
|
|
831
807
|
* ```javascript
|
|
832
808
|
* const input = await Actor.getInput();
|
|
@@ -842,7 +818,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
842
818
|
* If you need to use the input multiple times in your actor,
|
|
843
819
|
* it is far more efficient to read it once and store it locally.
|
|
844
820
|
*
|
|
845
|
-
* For more information, see {@
|
|
821
|
+
* For more information, see {@apilink Actor.openKeyValueStore} and {@apilink KeyValueStore.getValue}.
|
|
846
822
|
*
|
|
847
823
|
* @returns
|
|
848
824
|
* Returns a promise that resolves to an object, string
|
|
@@ -852,13 +828,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
852
828
|
*/
|
|
853
829
|
static getInput<T = Dictionary | string | Buffer>(): Promise<T | null>;
|
|
854
830
|
/**
|
|
855
|
-
* Opens a key-value store and returns a promise resolving to an instance of the {@
|
|
831
|
+
* Opens a key-value store and returns a promise resolving to an instance of the {@apilink KeyValueStore} class.
|
|
856
832
|
*
|
|
857
833
|
* Key-value stores are used to store records or files, along with their MIME content type.
|
|
858
834
|
* The records are stored and retrieved using a unique key.
|
|
859
835
|
* The actual data is stored either on a local filesystem or in the Apify cloud.
|
|
860
836
|
*
|
|
861
|
-
* For more details and code examples, see the {@
|
|
837
|
+
* For more details and code examples, see the {@apilink KeyValueStore} class.
|
|
862
838
|
*
|
|
863
839
|
* @param [storeIdOrName]
|
|
864
840
|
* ID or name of the key-value store to be opened. If `null` or `undefined`,
|
|
@@ -868,14 +844,14 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
868
844
|
static openKeyValueStore(storeIdOrName?: string | null, options?: OpenStorageOptions): Promise<KeyValueStore>;
|
|
869
845
|
/**
|
|
870
846
|
* Opens a request queue and returns a promise resolving to an instance
|
|
871
|
-
* of the {@
|
|
847
|
+
* of the {@apilink RequestQueue} class.
|
|
872
848
|
*
|
|
873
|
-
* {@
|
|
849
|
+
* {@apilink RequestQueue} represents a queue of URLs to crawl, which is stored either on local filesystem or in the cloud.
|
|
874
850
|
* The queue is used for deep crawling of websites, where you start with several URLs and then
|
|
875
851
|
* recursively follow links to other pages. The data structure supports both breadth-first
|
|
876
852
|
* and depth-first crawling orders.
|
|
877
853
|
*
|
|
878
|
-
* For more details and code examples, see the {@
|
|
854
|
+
* For more details and code examples, see the {@apilink RequestQueue} class.
|
|
879
855
|
*
|
|
880
856
|
* @param [queueIdOrName]
|
|
881
857
|
* ID or name of the request queue to be opened. If `null` or `undefined`,
|
|
@@ -885,13 +861,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
885
861
|
static openRequestQueue(queueIdOrName?: string | null, options?: OpenStorageOptions): Promise<RequestQueue>;
|
|
886
862
|
/**
|
|
887
863
|
* Creates a proxy configuration and returns a promise resolving to an instance
|
|
888
|
-
* of the {@
|
|
864
|
+
* of the {@apilink ProxyConfiguration} class that is already initialized.
|
|
889
865
|
*
|
|
890
866
|
* Configures connection to a proxy server with the provided options. Proxy servers are used to prevent target websites from blocking
|
|
891
867
|
* your crawlers based on IP address rate limits or blacklists. Setting proxy configuration in your crawlers automatically configures
|
|
892
868
|
* them to use the selected proxies for all connections.
|
|
893
869
|
*
|
|
894
|
-
* For more details and code examples, see the {@
|
|
870
|
+
* For more details and code examples, see the {@apilink ProxyConfiguration} class.
|
|
895
871
|
*
|
|
896
872
|
* ```javascript
|
|
897
873
|
*
|
|
@@ -922,7 +898,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
922
898
|
useApifyProxy?: boolean;
|
|
923
899
|
}): Promise<ProxyConfiguration | undefined>;
|
|
924
900
|
/**
|
|
925
|
-
* Returns a new {@
|
|
901
|
+
* Returns a new {@apilink ApifyEnv} object which contains information parsed from all the `APIFY_XXX` environment variables.
|
|
926
902
|
*
|
|
927
903
|
* For the list of the `APIFY_XXX` environment variables, see
|
|
928
904
|
* [Actor documentation](https://docs.apify.com/actor/run#environment-variables).
|
|
@@ -941,9 +917,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
941
917
|
* Returns `true` when code is running on Apify platform and `false` otherwise (for example locally).
|
|
942
918
|
*/
|
|
943
919
|
static isAtHome(): boolean;
|
|
944
|
-
/** Default {@
|
|
920
|
+
/** Default {@apilink ApifyClient} instance. */
|
|
945
921
|
static get apifyClient(): ApifyClient;
|
|
946
|
-
/** Default {@
|
|
922
|
+
/** Default {@apilink Configuration} instance. */
|
|
947
923
|
static get config(): Configuration;
|
|
948
924
|
/** @internal */
|
|
949
925
|
static getDefaultInstance(): Actor;
|
|
@@ -956,7 +932,7 @@ export interface MainOptions extends ExitOptions, InitOptions {
|
|
|
956
932
|
}
|
|
957
933
|
/**
|
|
958
934
|
* Parsed representation of the `APIFY_XXX` environmental variables.
|
|
959
|
-
* This object is returned by the {@
|
|
935
|
+
* This object is returned by the {@apilink Actor.getEnv} function.
|
|
960
936
|
*/
|
|
961
937
|
export interface ApifyEnv {
|
|
962
938
|
/**
|
|
@@ -1047,7 +1023,7 @@ export interface WebhookOptions {
|
|
|
1047
1023
|
* Idempotency key enables you to ensure that a webhook will not be added multiple times in case of
|
|
1048
1024
|
* an actor restart or other situation that would cause the `addWebhook()` function to be called again.
|
|
1049
1025
|
* We suggest using the actor run ID as the idempotency key. You can get the run ID by calling
|
|
1050
|
-
* {@
|
|
1026
|
+
* {@apilink Actor.getEnv} function.
|
|
1051
1027
|
*/
|
|
1052
1028
|
idempotencyKey?: string;
|
|
1053
1029
|
}
|
package/actor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":";AAMA,OAAO,KAAK,EACR,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,OAAO,EACP,gBAAgB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EACH,QAAQ,IAAI,cAAc,EAC1B,WAAW,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACR,oBAAoB,EACpB,YAAY,EACZ,aAAa,EAEb,aAAa,EACb,eAAe,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEH,OAAO,EAEP,YAAY,EAGf,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIxF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;A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