apify 3.0.3-beta.53 → 3.0.3-beta.63
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-copy.log +2 -2
- package/dist/actor.d.ts +75 -75
- package/dist/actor.d.ts.map +1 -1
- package/dist/actor.js +73 -73
- package/dist/actor.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/package.json +2 -2
- package/dist/platform_event_manager.d.ts +3 -3
- package/dist/platform_event_manager.js +3 -3
- package/dist/proxy_configuration.d.ts +9 -9
- package/dist/proxy_configuration.js +8 -8
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-copy.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
apify:copy: cache hit, replaying output
|
|
1
|
+
apify:copy: cache hit, replaying output 9a36fb0b60cce9d0
|
|
2
2
|
apify:copy:
|
|
3
|
-
apify:copy: > apify@3.0.3-beta.
|
|
3
|
+
apify:copy: > apify@3.0.3-beta.63+82937ddc copy
|
|
4
4
|
apify:copy: > ts-node -T ../../scripts/copy.ts --readme=local
|
|
5
5
|
apify:copy:
|
package/dist/actor.d.ts
CHANGED
|
@@ -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.
|
|
@@ -125,11 +125,11 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
125
125
|
* By passing the `waitSecs` option you can reduce the maximum amount of time to wait for the run to finish.
|
|
126
126
|
* If the value is less than or equal to zero, the function returns immediately after the run is started.
|
|
127
127
|
*
|
|
128
|
-
* The result of the function is an {@
|
|
128
|
+
* The result of the function is an {@apilink ActorRun} object
|
|
129
129
|
* that contains details about the actor run and its output (if any).
|
|
130
130
|
*
|
|
131
131
|
* If you want to run an actor task rather than an actor, please use the
|
|
132
|
-
* {@
|
|
132
|
+
* {@apilink Actor.callTask} function instead.
|
|
133
133
|
*
|
|
134
134
|
* For more information about actors, read the
|
|
135
135
|
* [documentation](https://docs.apify.com/actor).
|
|
@@ -159,7 +159,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
159
159
|
* Runs an actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable),
|
|
160
160
|
* unlike `Actor.call`, this method just starts the run without waiting for finish.
|
|
161
161
|
*
|
|
162
|
-
* The result of the function is an {@
|
|
162
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
163
163
|
*
|
|
164
164
|
* For more information about actors, read the
|
|
165
165
|
* [documentation](https://docs.apify.com/actor).
|
|
@@ -183,7 +183,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
183
183
|
/**
|
|
184
184
|
* Aborts given actor run on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
185
185
|
*
|
|
186
|
-
* The result of the function is an {@
|
|
186
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
187
187
|
*
|
|
188
188
|
* For more information about actors, read the
|
|
189
189
|
* [documentation](https://docs.apify.com/actor).
|
|
@@ -203,12 +203,12 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
203
203
|
* By passing the `waitSecs` option you can reduce the maximum amount of time to wait for the run to finish.
|
|
204
204
|
* If the value is less than or equal to zero, the function returns immediately after the run is started.
|
|
205
205
|
*
|
|
206
|
-
* The result of the function is an {@
|
|
206
|
+
* The result of the function is an {@apilink ActorRun} object
|
|
207
207
|
* that contains details about the actor run and its output (if any).
|
|
208
208
|
*
|
|
209
209
|
* Note that an actor task is a saved input configuration and options for an actor.
|
|
210
210
|
* If you want to run an actor directly rather than an actor task, please use the
|
|
211
|
-
* {@
|
|
211
|
+
* {@apilink Actor.call} function instead.
|
|
212
212
|
*
|
|
213
213
|
* For more information about actor tasks, read the [documentation](https://docs.apify.com/tasks).
|
|
214
214
|
*
|
|
@@ -278,9 +278,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
278
278
|
*/
|
|
279
279
|
setStatusMessage(statusMessage: string): Promise<ClientActorRun>;
|
|
280
280
|
/**
|
|
281
|
-
* Stores an object or an array of objects to the default {@
|
|
281
|
+
* Stores an object or an array of objects to the default {@apilink Dataset} of the current actor run.
|
|
282
282
|
*
|
|
283
|
-
* This is just a convenient shortcut for {@
|
|
283
|
+
* This is just a convenient shortcut for {@apilink Dataset.pushData}.
|
|
284
284
|
* For example, calling the following code:
|
|
285
285
|
* ```javascript
|
|
286
286
|
* await Actor.pushData({ myValue: 123 });
|
|
@@ -292,7 +292,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
292
292
|
* await dataset.pushData({ myValue: 123 });
|
|
293
293
|
* ```
|
|
294
294
|
*
|
|
295
|
-
* For more information, see {@
|
|
295
|
+
* For more information, see {@apilink Actor.openDataset} and {@apilink Dataset.pushData}
|
|
296
296
|
*
|
|
297
297
|
* **IMPORTANT**: Make sure to use the `await` keyword when calling `pushData()`,
|
|
298
298
|
* otherwise the actor process might finish before the data are stored!
|
|
@@ -303,13 +303,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
303
303
|
*/
|
|
304
304
|
pushData(item: Data | Data[]): Promise<void>;
|
|
305
305
|
/**
|
|
306
|
-
* Opens a dataset and returns a promise resolving to an instance of the {@
|
|
306
|
+
* Opens a dataset and returns a promise resolving to an instance of the {@apilink Dataset} class.
|
|
307
307
|
*
|
|
308
308
|
* Datasets are used to store structured data where each object stored has the same attributes,
|
|
309
309
|
* such as online store products or real estate offers.
|
|
310
310
|
* The actual data is stored either on the local filesystem or in the cloud.
|
|
311
311
|
*
|
|
312
|
-
* For more details and code examples, see the {@
|
|
312
|
+
* For more details and code examples, see the {@apilink Dataset} class.
|
|
313
313
|
*
|
|
314
314
|
* @param [datasetIdOrName]
|
|
315
315
|
* ID or name of the dataset to be opened. If `null` or `undefined`,
|
|
@@ -319,9 +319,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
319
319
|
*/
|
|
320
320
|
openDataset(datasetIdOrName?: string | null, options?: OpenStorageOptions): Promise<Dataset<Data>>;
|
|
321
321
|
/**
|
|
322
|
-
* Gets a value from the default {@
|
|
322
|
+
* Gets a value from the default {@apilink KeyValueStore} associated with the current actor run.
|
|
323
323
|
*
|
|
324
|
-
* This is just a convenient shortcut for {@
|
|
324
|
+
* This is just a convenient shortcut for {@apilink KeyValueStore.getValue}.
|
|
325
325
|
* For example, calling the following code:
|
|
326
326
|
* ```javascript
|
|
327
327
|
* const value = await Actor.getValue('my-key');
|
|
@@ -333,10 +333,10 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
333
333
|
* const value = await store.getValue('my-key');
|
|
334
334
|
* ```
|
|
335
335
|
*
|
|
336
|
-
* To store the value to the default key-value store, you can use the {@
|
|
336
|
+
* To store the value to the default key-value store, you can use the {@apilink Actor.setValue} function.
|
|
337
337
|
*
|
|
338
|
-
* For more information, see {@
|
|
339
|
-
* and {@
|
|
338
|
+
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
339
|
+
* and {@apilink KeyValueStore.getValue}.
|
|
340
340
|
*
|
|
341
341
|
* @param key Unique record key.
|
|
342
342
|
* @returns
|
|
@@ -348,9 +348,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
348
348
|
*/
|
|
349
349
|
getValue<T = unknown>(key: string): Promise<T | null>;
|
|
350
350
|
/**
|
|
351
|
-
* Stores or deletes a value in the default {@
|
|
351
|
+
* Stores or deletes a value in the default {@apilink KeyValueStore} associated with the current actor run.
|
|
352
352
|
*
|
|
353
|
-
* This is just a convenient shortcut for {@
|
|
353
|
+
* This is just a convenient shortcut for {@apilink KeyValueStore.setValue}.
|
|
354
354
|
* For example, calling the following code:
|
|
355
355
|
* ```javascript
|
|
356
356
|
* await Actor.setValue('OUTPUT', { foo: "bar" });
|
|
@@ -362,10 +362,10 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
362
362
|
* await store.setValue('OUTPUT', { foo: "bar" });
|
|
363
363
|
* ```
|
|
364
364
|
*
|
|
365
|
-
* To get a value from the default key-value store, you can use the {@
|
|
365
|
+
* To get a value from the default key-value store, you can use the {@apilink Actor.getValue} function.
|
|
366
366
|
*
|
|
367
|
-
* For more information, see {@
|
|
368
|
-
* and {@
|
|
367
|
+
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
368
|
+
* and {@apilink KeyValueStore.getValue}.
|
|
369
369
|
*
|
|
370
370
|
* @param key
|
|
371
371
|
* Unique record key.
|
|
@@ -380,7 +380,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
380
380
|
*/
|
|
381
381
|
setValue<T>(key: string, value: T | null, options?: RecordOptions): Promise<void>;
|
|
382
382
|
/**
|
|
383
|
-
* Gets the actor input value from the default {@
|
|
383
|
+
* Gets the actor input value from the default {@apilink KeyValueStore} associated with the current actor run.
|
|
384
384
|
*
|
|
385
385
|
* This is just a convenient shortcut for [`keyValueStore.getValue('INPUT')`](core/class/KeyValueStore#getValue).
|
|
386
386
|
* For example, calling the following code:
|
|
@@ -398,8 +398,8 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
398
398
|
* If you need to use the input multiple times in your actor,
|
|
399
399
|
* it is far more efficient to read it once and store it locally.
|
|
400
400
|
*
|
|
401
|
-
* For more information, see {@
|
|
402
|
-
* and {@
|
|
401
|
+
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
402
|
+
* and {@apilink KeyValueStore.getValue}.
|
|
403
403
|
*
|
|
404
404
|
* @returns
|
|
405
405
|
* Returns a promise that resolves to an object, string
|
|
@@ -410,13 +410,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
410
410
|
*/
|
|
411
411
|
getInput<T = Dictionary | string | Buffer>(): Promise<T | null>;
|
|
412
412
|
/**
|
|
413
|
-
* Opens a key-value store and returns a promise resolving to an instance of the {@
|
|
413
|
+
* Opens a key-value store and returns a promise resolving to an instance of the {@apilink KeyValueStore} class.
|
|
414
414
|
*
|
|
415
415
|
* Key-value stores are used to store records or files, along with their MIME content type.
|
|
416
416
|
* The records are stored and retrieved using a unique key.
|
|
417
417
|
* The actual data is stored either on a local filesystem or in the Apify cloud.
|
|
418
418
|
*
|
|
419
|
-
* For more details and code examples, see the {@
|
|
419
|
+
* For more details and code examples, see the {@apilink KeyValueStore} class.
|
|
420
420
|
*
|
|
421
421
|
* @param [storeIdOrName]
|
|
422
422
|
* ID or name of the key-value store to be opened. If `null` or `undefined`,
|
|
@@ -427,14 +427,14 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
427
427
|
openKeyValueStore(storeIdOrName?: string | null, options?: OpenStorageOptions): Promise<KeyValueStore>;
|
|
428
428
|
/**
|
|
429
429
|
* Opens a request queue and returns a promise resolving to an instance
|
|
430
|
-
* of the {@
|
|
430
|
+
* of the {@apilink RequestQueue} class.
|
|
431
431
|
*
|
|
432
|
-
* {@
|
|
432
|
+
* {@apilink RequestQueue} represents a queue of URLs to crawl, which is stored either on local filesystem or in the cloud.
|
|
433
433
|
* The queue is used for deep crawling of websites, where you start with several URLs and then
|
|
434
434
|
* recursively follow links to other pages. The data structure supports both breadth-first
|
|
435
435
|
* and depth-first crawling orders.
|
|
436
436
|
*
|
|
437
|
-
* For more details and code examples, see the {@
|
|
437
|
+
* For more details and code examples, see the {@apilink RequestQueue} class.
|
|
438
438
|
*
|
|
439
439
|
* @param [queueIdOrName]
|
|
440
440
|
* ID or name of the request queue to be opened. If `null` or `undefined`,
|
|
@@ -445,13 +445,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
445
445
|
openRequestQueue(queueIdOrName?: string | null, options?: OpenStorageOptions): Promise<RequestQueue>;
|
|
446
446
|
/**
|
|
447
447
|
* Creates a proxy configuration and returns a promise resolving to an instance
|
|
448
|
-
* of the {@
|
|
448
|
+
* of the {@apilink ProxyConfiguration} class that is already initialized.
|
|
449
449
|
*
|
|
450
450
|
* Configures connection to a proxy server with the provided options. Proxy servers are used to prevent target websites from blocking
|
|
451
451
|
* your crawlers based on IP address rate limits or blacklists. Setting proxy configuration in your crawlers automatically configures
|
|
452
452
|
* them to use the selected proxies for all connections.
|
|
453
453
|
*
|
|
454
|
-
* For more details and code examples, see the {@
|
|
454
|
+
* For more details and code examples, see the {@apilink ProxyConfiguration} class.
|
|
455
455
|
*
|
|
456
456
|
* ```javascript
|
|
457
457
|
*
|
|
@@ -483,7 +483,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
483
483
|
useApifyProxy?: boolean;
|
|
484
484
|
}): Promise<ProxyConfiguration | undefined>;
|
|
485
485
|
/**
|
|
486
|
-
* Returns a new {@
|
|
486
|
+
* Returns a new {@apilink ApifyEnv} object which contains information parsed from all the `APIFY_XXX` environment variables.
|
|
487
487
|
*
|
|
488
488
|
* For the list of the `APIFY_XXX` environment variables, see
|
|
489
489
|
* [Actor documentation](https://docs.apify.com/actor/run#environment-variables).
|
|
@@ -522,7 +522,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
522
522
|
* - When running on the Apify platform (i.e. `APIFY_IS_AT_HOME` environment variable is set),
|
|
523
523
|
* it sets up a connection to listen for platform events.
|
|
524
524
|
* For example, to get a notification about an imminent migration to another server.
|
|
525
|
-
* See {@
|
|
525
|
+
* See {@apilink Actor.events} for details.
|
|
526
526
|
* - It checks that either `APIFY_TOKEN` or `APIFY_LOCAL_STORAGE_DIR` environment variable
|
|
527
527
|
* is defined. If not, the functions sets `APIFY_LOCAL_STORAGE_DIR` to `./apify_storage`
|
|
528
528
|
* inside the current working directory. This is to simplify running code examples.
|
|
@@ -582,11 +582,11 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
582
582
|
* By passing the `waitSecs` option you can reduce the maximum amount of time to wait for the run to finish.
|
|
583
583
|
* If the value is less than or equal to zero, the function returns immediately after the run is started.
|
|
584
584
|
*
|
|
585
|
-
* The result of the function is an {@
|
|
585
|
+
* The result of the function is an {@apilink ActorRun} object
|
|
586
586
|
* that contains details about the actor run and its output (if any).
|
|
587
587
|
*
|
|
588
588
|
* If you want to run an actor task rather than an actor, please use the
|
|
589
|
-
* {@
|
|
589
|
+
* {@apilink Actor.callTask} function instead.
|
|
590
590
|
*
|
|
591
591
|
* For more information about actors, read the
|
|
592
592
|
* [documentation](https://docs.apify.com/actor).
|
|
@@ -618,12 +618,12 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
618
618
|
* By passing the `waitSecs` option you can reduce the maximum amount of time to wait for the run to finish.
|
|
619
619
|
* If the value is less than or equal to zero, the function returns immediately after the run is started.
|
|
620
620
|
*
|
|
621
|
-
* The result of the function is an {@
|
|
621
|
+
* The result of the function is an {@apilink ActorRun} object
|
|
622
622
|
* that contains details about the actor run and its output (if any).
|
|
623
623
|
*
|
|
624
624
|
* Note that an actor task is a saved input configuration and options for an actor.
|
|
625
625
|
* If you want to run an actor directly rather than an actor task, please use the
|
|
626
|
-
* {@
|
|
626
|
+
* {@apilink Actor.call} function instead.
|
|
627
627
|
*
|
|
628
628
|
* For more information about actor tasks, read the [documentation](https://docs.apify.com/tasks).
|
|
629
629
|
*
|
|
@@ -651,7 +651,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
651
651
|
* Runs an actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable),
|
|
652
652
|
* unlike `Actor.call`, this method just starts the run without waiting for finish.
|
|
653
653
|
*
|
|
654
|
-
* The result of the function is an {@
|
|
654
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
655
655
|
*
|
|
656
656
|
* For more information about actors, read the
|
|
657
657
|
* [documentation](https://docs.apify.com/actor).
|
|
@@ -674,7 +674,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
674
674
|
/**
|
|
675
675
|
* Aborts given actor run on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
676
676
|
*
|
|
677
|
-
* The result of the function is an {@
|
|
677
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the actor run.
|
|
678
678
|
*
|
|
679
679
|
* For more information about actors, read the
|
|
680
680
|
* [documentation](https://docs.apify.com/actor).
|
|
@@ -726,9 +726,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
726
726
|
*/
|
|
727
727
|
static setStatusMessage(statusMessage: string): Promise<ClientActorRun>;
|
|
728
728
|
/**
|
|
729
|
-
* Stores an object or an array of objects to the default {@
|
|
729
|
+
* Stores an object or an array of objects to the default {@apilink Dataset} of the current actor run.
|
|
730
730
|
*
|
|
731
|
-
* This is just a convenient shortcut for {@
|
|
731
|
+
* This is just a convenient shortcut for {@apilink Dataset.pushData}.
|
|
732
732
|
* For example, calling the following code:
|
|
733
733
|
* ```javascript
|
|
734
734
|
* await Actor.pushData({ myValue: 123 });
|
|
@@ -740,7 +740,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
740
740
|
* await dataset.pushData({ myValue: 123 });
|
|
741
741
|
* ```
|
|
742
742
|
*
|
|
743
|
-
* For more information, see {@
|
|
743
|
+
* For more information, see {@apilink Actor.openDataset} and {@apilink Dataset.pushData}
|
|
744
744
|
*
|
|
745
745
|
* **IMPORTANT**: Make sure to use the `await` keyword when calling `pushData()`,
|
|
746
746
|
* otherwise the actor process might finish before the data are stored!
|
|
@@ -750,13 +750,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
750
750
|
*/
|
|
751
751
|
static pushData<Data extends Dictionary = Dictionary>(item: Data | Data[]): Promise<void>;
|
|
752
752
|
/**
|
|
753
|
-
* Opens a dataset and returns a promise resolving to an instance of the {@
|
|
753
|
+
* Opens a dataset and returns a promise resolving to an instance of the {@apilink Dataset} class.
|
|
754
754
|
*
|
|
755
755
|
* Datasets are used to store structured data where each object stored has the same attributes,
|
|
756
756
|
* such as online store products or real estate offers.
|
|
757
757
|
* The actual data is stored either on the local filesystem or in the cloud.
|
|
758
758
|
*
|
|
759
|
-
* For more details and code examples, see the {@
|
|
759
|
+
* For more details and code examples, see the {@apilink Dataset} class.
|
|
760
760
|
*
|
|
761
761
|
* @param [datasetIdOrName]
|
|
762
762
|
* ID or name of the dataset to be opened. If `null` or `undefined`,
|
|
@@ -765,9 +765,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
765
765
|
*/
|
|
766
766
|
static openDataset<Data extends Dictionary = Dictionary>(datasetIdOrName?: string | null, options?: OpenStorageOptions): Promise<Dataset<Data>>;
|
|
767
767
|
/**
|
|
768
|
-
* Gets a value from the default {@
|
|
768
|
+
* Gets a value from the default {@apilink KeyValueStore} associated with the current actor run.
|
|
769
769
|
*
|
|
770
|
-
* This is just a convenient shortcut for {@
|
|
770
|
+
* This is just a convenient shortcut for {@apilink KeyValueStore.getValue}.
|
|
771
771
|
* For example, calling the following code:
|
|
772
772
|
* ```javascript
|
|
773
773
|
* const value = await Actor.getValue('my-key');
|
|
@@ -779,10 +779,10 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
779
779
|
* const value = await store.getValue('my-key');
|
|
780
780
|
* ```
|
|
781
781
|
*
|
|
782
|
-
* To store the value to the default key-value store, you can use the {@
|
|
782
|
+
* To store the value to the default key-value store, you can use the {@apilink Actor.setValue} function.
|
|
783
783
|
*
|
|
784
|
-
* For more information, see {@
|
|
785
|
-
* and {@
|
|
784
|
+
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
785
|
+
* and {@apilink KeyValueStore.getValue}.
|
|
786
786
|
*
|
|
787
787
|
* @param key Unique record key.
|
|
788
788
|
* @returns
|
|
@@ -793,9 +793,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
793
793
|
*/
|
|
794
794
|
static getValue<T = unknown>(key: string): Promise<T | null>;
|
|
795
795
|
/**
|
|
796
|
-
* Stores or deletes a value in the default {@
|
|
796
|
+
* Stores or deletes a value in the default {@apilink KeyValueStore} associated with the current actor run.
|
|
797
797
|
*
|
|
798
|
-
* This is just a convenient shortcut for {@
|
|
798
|
+
* This is just a convenient shortcut for {@apilink KeyValueStore.setValue}.
|
|
799
799
|
* For example, calling the following code:
|
|
800
800
|
* ```javascript
|
|
801
801
|
* await Actor.setValue('OUTPUT', { foo: "bar" });
|
|
@@ -807,10 +807,10 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
807
807
|
* await store.setValue('OUTPUT', { foo: "bar" });
|
|
808
808
|
* ```
|
|
809
809
|
*
|
|
810
|
-
* To get a value from the default key-value store, you can use the {@
|
|
810
|
+
* To get a value from the default key-value store, you can use the {@apilink Actor.getValue} function.
|
|
811
811
|
*
|
|
812
|
-
* For more information, see {@
|
|
813
|
-
* and {@
|
|
812
|
+
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
813
|
+
* and {@apilink KeyValueStore.getValue}.
|
|
814
814
|
*
|
|
815
815
|
* @param key
|
|
816
816
|
* Unique record key.
|
|
@@ -824,9 +824,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
824
824
|
*/
|
|
825
825
|
static setValue<T>(key: string, value: T | null, options?: RecordOptions): Promise<void>;
|
|
826
826
|
/**
|
|
827
|
-
* Gets the actor input value from the default {@
|
|
827
|
+
* Gets the actor input value from the default {@apilink KeyValueStore} associated with the current actor run.
|
|
828
828
|
*
|
|
829
|
-
* This is just a convenient shortcut for {@
|
|
829
|
+
* This is just a convenient shortcut for {@apilink KeyValueStore.getValue | `keyValueStore.getValue('INPUT')`}.
|
|
830
830
|
* For example, calling the following code:
|
|
831
831
|
* ```javascript
|
|
832
832
|
* const input = await Actor.getInput();
|
|
@@ -842,7 +842,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
842
842
|
* If you need to use the input multiple times in your actor,
|
|
843
843
|
* it is far more efficient to read it once and store it locally.
|
|
844
844
|
*
|
|
845
|
-
* For more information, see {@
|
|
845
|
+
* For more information, see {@apilink Actor.openKeyValueStore} and {@apilink KeyValueStore.getValue}.
|
|
846
846
|
*
|
|
847
847
|
* @returns
|
|
848
848
|
* Returns a promise that resolves to an object, string
|
|
@@ -852,13 +852,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
852
852
|
*/
|
|
853
853
|
static getInput<T = Dictionary | string | Buffer>(): Promise<T | null>;
|
|
854
854
|
/**
|
|
855
|
-
* Opens a key-value store and returns a promise resolving to an instance of the {@
|
|
855
|
+
* Opens a key-value store and returns a promise resolving to an instance of the {@apilink KeyValueStore} class.
|
|
856
856
|
*
|
|
857
857
|
* Key-value stores are used to store records or files, along with their MIME content type.
|
|
858
858
|
* The records are stored and retrieved using a unique key.
|
|
859
859
|
* The actual data is stored either on a local filesystem or in the Apify cloud.
|
|
860
860
|
*
|
|
861
|
-
* For more details and code examples, see the {@
|
|
861
|
+
* For more details and code examples, see the {@apilink KeyValueStore} class.
|
|
862
862
|
*
|
|
863
863
|
* @param [storeIdOrName]
|
|
864
864
|
* ID or name of the key-value store to be opened. If `null` or `undefined`,
|
|
@@ -868,14 +868,14 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
868
868
|
static openKeyValueStore(storeIdOrName?: string | null, options?: OpenStorageOptions): Promise<KeyValueStore>;
|
|
869
869
|
/**
|
|
870
870
|
* Opens a request queue and returns a promise resolving to an instance
|
|
871
|
-
* of the {@
|
|
871
|
+
* of the {@apilink RequestQueue} class.
|
|
872
872
|
*
|
|
873
|
-
* {@
|
|
873
|
+
* {@apilink RequestQueue} represents a queue of URLs to crawl, which is stored either on local filesystem or in the cloud.
|
|
874
874
|
* The queue is used for deep crawling of websites, where you start with several URLs and then
|
|
875
875
|
* recursively follow links to other pages. The data structure supports both breadth-first
|
|
876
876
|
* and depth-first crawling orders.
|
|
877
877
|
*
|
|
878
|
-
* For more details and code examples, see the {@
|
|
878
|
+
* For more details and code examples, see the {@apilink RequestQueue} class.
|
|
879
879
|
*
|
|
880
880
|
* @param [queueIdOrName]
|
|
881
881
|
* ID or name of the request queue to be opened. If `null` or `undefined`,
|
|
@@ -885,13 +885,13 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
885
885
|
static openRequestQueue(queueIdOrName?: string | null, options?: OpenStorageOptions): Promise<RequestQueue>;
|
|
886
886
|
/**
|
|
887
887
|
* Creates a proxy configuration and returns a promise resolving to an instance
|
|
888
|
-
* of the {@
|
|
888
|
+
* of the {@apilink ProxyConfiguration} class that is already initialized.
|
|
889
889
|
*
|
|
890
890
|
* Configures connection to a proxy server with the provided options. Proxy servers are used to prevent target websites from blocking
|
|
891
891
|
* your crawlers based on IP address rate limits or blacklists. Setting proxy configuration in your crawlers automatically configures
|
|
892
892
|
* them to use the selected proxies for all connections.
|
|
893
893
|
*
|
|
894
|
-
* For more details and code examples, see the {@
|
|
894
|
+
* For more details and code examples, see the {@apilink ProxyConfiguration} class.
|
|
895
895
|
*
|
|
896
896
|
* ```javascript
|
|
897
897
|
*
|
|
@@ -922,7 +922,7 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
922
922
|
useApifyProxy?: boolean;
|
|
923
923
|
}): Promise<ProxyConfiguration | undefined>;
|
|
924
924
|
/**
|
|
925
|
-
* Returns a new {@
|
|
925
|
+
* Returns a new {@apilink ApifyEnv} object which contains information parsed from all the `APIFY_XXX` environment variables.
|
|
926
926
|
*
|
|
927
927
|
* For the list of the `APIFY_XXX` environment variables, see
|
|
928
928
|
* [Actor documentation](https://docs.apify.com/actor/run#environment-variables).
|
|
@@ -941,9 +941,9 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
941
941
|
* Returns `true` when code is running on Apify platform and `false` otherwise (for example locally).
|
|
942
942
|
*/
|
|
943
943
|
static isAtHome(): boolean;
|
|
944
|
-
/** Default {@
|
|
944
|
+
/** Default {@apilink ApifyClient} instance. */
|
|
945
945
|
static get apifyClient(): ApifyClient;
|
|
946
|
-
/** Default {@
|
|
946
|
+
/** Default {@apilink Configuration} instance. */
|
|
947
947
|
static get config(): Configuration;
|
|
948
948
|
/** @internal */
|
|
949
949
|
static getDefaultInstance(): Actor;
|
|
@@ -956,7 +956,7 @@ export interface MainOptions extends ExitOptions, InitOptions {
|
|
|
956
956
|
}
|
|
957
957
|
/**
|
|
958
958
|
* Parsed representation of the `APIFY_XXX` environmental variables.
|
|
959
|
-
* This object is returned by the {@
|
|
959
|
+
* This object is returned by the {@apilink Actor.getEnv} function.
|
|
960
960
|
*/
|
|
961
961
|
export interface ApifyEnv {
|
|
962
962
|
/**
|
|
@@ -1047,7 +1047,7 @@ export interface WebhookOptions {
|
|
|
1047
1047
|
* Idempotency key enables you to ensure that a webhook will not be added multiple times in case of
|
|
1048
1048
|
* an actor restart or other situation that would cause the `addWebhook()` function to be called again.
|
|
1049
1049
|
* We suggest using the actor run ID as the idempotency key. You can get the run ID by calling
|
|
1050
|
-
* {@
|
|
1050
|
+
* {@apilink Actor.getEnv} function.
|
|
1051
1051
|
*/
|
|
1052
1052
|
idempotencyKey?: string;
|
|
1053
1053
|
}
|
package/dist/actor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":";AAIA,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,EAChB,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,EAA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