apify 3.2.0 → 3.2.1
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/README.md +4 -4
- package/actor.d.ts +110 -110
- package/actor.d.ts.map +1 -1
- package/actor.js +90 -89
- package/actor.js.map +1 -1
- package/package.json +3 -2
- package/platform_event_manager.d.ts +8 -8
- package/platform_event_manager.js +9 -9
- package/proxy_configuration.d.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/utils.d.ts +5 -0
- package/utils.d.ts.map +1 -1
- package/utils.js +36 -1
- package/utils.js.map +1 -1
package/actor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":";AAMA,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,uBAAuB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEjH,OAAO,KAAK,EACR,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,OAAO,EACP,gBAAgB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EACH,QAAQ,IAAI,cAAc,EAC1B,WAAW,EACd,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D;;;;GAIG;AACH,qBAAa,KAAK,CAAC,IAAI,SAAS,UAAU,GAAG,UAAU;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,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC3B;;;OAGG;IACH,UAAU,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAExC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC7B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,gBAAgB;IAChB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,aAAa;IAC1B,gBAAgB;IAChB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,WAAW;IACxB,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;CAItB,CAAC"}
|
package/actor.js
CHANGED
|
@@ -54,7 +54,7 @@ class Actor {
|
|
|
54
54
|
value: void 0
|
|
55
55
|
});
|
|
56
56
|
/**
|
|
57
|
-
* Whether the
|
|
57
|
+
* Whether the Actor instance was initialized. This is set by calling {@apilink Actor.init}.
|
|
58
58
|
*/
|
|
59
59
|
Object.defineProperty(this, "initialized", {
|
|
60
60
|
enumerable: true,
|
|
@@ -63,7 +63,7 @@ class Actor {
|
|
|
63
63
|
value: false
|
|
64
64
|
});
|
|
65
65
|
/**
|
|
66
|
-
* Set if the
|
|
66
|
+
* Set if the Actor called a method that requires the instance to be initialized, but did not do so.
|
|
67
67
|
* A call to `init` after this warning is emitted is considered an invalid state and will throw an error.
|
|
68
68
|
*/
|
|
69
69
|
Object.defineProperty(this, "warnedAboutMissingInitCall", {
|
|
@@ -78,11 +78,11 @@ class Actor {
|
|
|
78
78
|
this.eventManager = new platform_event_manager_1.PlatformEventManager(this.config);
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* Runs the main user function that performs the job of the
|
|
81
|
+
* Runs the main user function that performs the job of the Actor
|
|
82
82
|
* and terminates the process when the user function finishes.
|
|
83
83
|
*
|
|
84
84
|
* **The `Actor.main()` function is optional** and is provided merely for your convenience.
|
|
85
|
-
* It is mainly useful when you're running your code as an
|
|
85
|
+
* It is mainly useful when you're running your code as an Actor on the [Apify platform](https://apify.com/actors).
|
|
86
86
|
* However, if you want to use Apify SDK tools directly inside your existing projects, e.g.
|
|
87
87
|
* running in an [Express](https://expressjs.com/) server, on
|
|
88
88
|
* [Google Cloud functions](https://cloud.google.com/functions)
|
|
@@ -109,7 +109,7 @@ class Actor {
|
|
|
109
109
|
* ```javascript
|
|
110
110
|
* await Actor.main(() => {
|
|
111
111
|
* // My synchronous function that returns immediately
|
|
112
|
-
* console.log('Hello world from
|
|
112
|
+
* console.log('Hello world from Actor!');
|
|
113
113
|
* });
|
|
114
114
|
* ```
|
|
115
115
|
*
|
|
@@ -176,6 +176,7 @@ class Actor {
|
|
|
176
176
|
].join('\n'));
|
|
177
177
|
}
|
|
178
178
|
this.initialized = true;
|
|
179
|
+
(0, utils_2.checkCrawleeVersion)();
|
|
179
180
|
(0, utils_2.logSystemInfo)();
|
|
180
181
|
(0, utils_2.printOutdatedSdkWarning)();
|
|
181
182
|
// reset global config instance to respect APIFY_ prefixed env vars
|
|
@@ -260,13 +261,13 @@ class Actor {
|
|
|
260
261
|
this.config.getEventManager().off(event, listener);
|
|
261
262
|
}
|
|
262
263
|
/**
|
|
263
|
-
* Runs an
|
|
264
|
+
* Runs an Actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
264
265
|
*
|
|
265
|
-
* The result of the function is an {@apilink ActorRun} object that contains details about the
|
|
266
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the Actor run.
|
|
266
267
|
*
|
|
267
|
-
* If you want to run an
|
|
268
|
+
* If you want to run an Actor task rather than an Actor, please use the {@apilink Actor.callTask} function instead.
|
|
268
269
|
*
|
|
269
|
-
* For more information about
|
|
270
|
+
* For more information about Actors, read the [documentation](https://docs.apify.com/actor).
|
|
270
271
|
*
|
|
271
272
|
* **Example usage:**
|
|
272
273
|
*
|
|
@@ -275,9 +276,9 @@ class Actor {
|
|
|
275
276
|
* ```
|
|
276
277
|
*
|
|
277
278
|
* @param actorId
|
|
278
|
-
* Allowed formats are `username/actor-name`, `userId/actor-name` or
|
|
279
|
+
* Allowed formats are `username/actor-name`, `userId/actor-name` or Actor ID.
|
|
279
280
|
* @param [input]
|
|
280
|
-
* Input for the
|
|
281
|
+
* Input for the Actor. If it is an object, it will be stringified to
|
|
281
282
|
* JSON and its content type set to `application/json; charset=utf-8`.
|
|
282
283
|
* Otherwise the `options.contentType` parameter must be provided.
|
|
283
284
|
* @param [options]
|
|
@@ -289,12 +290,12 @@ class Actor {
|
|
|
289
290
|
return client.actor(actorId).call(input, rest);
|
|
290
291
|
}
|
|
291
292
|
/**
|
|
292
|
-
* Runs an
|
|
293
|
+
* Runs an Actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable),
|
|
293
294
|
* unlike `Actor.call`, this method just starts the run without waiting for finish.
|
|
294
295
|
*
|
|
295
|
-
* The result of the function is an {@apilink ActorRun} object that contains details about the
|
|
296
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the Actor run.
|
|
296
297
|
*
|
|
297
|
-
* For more information about
|
|
298
|
+
* For more information about Actors, read the
|
|
298
299
|
* [documentation](https://docs.apify.com/actor).
|
|
299
300
|
*
|
|
300
301
|
* **Example usage:**
|
|
@@ -304,9 +305,9 @@ class Actor {
|
|
|
304
305
|
* ```
|
|
305
306
|
*
|
|
306
307
|
* @param actorId
|
|
307
|
-
* Allowed formats are `username/actor-name`, `userId/actor-name` or
|
|
308
|
+
* Allowed formats are `username/actor-name`, `userId/actor-name` or Actor ID.
|
|
308
309
|
* @param [input]
|
|
309
|
-
* Input for the
|
|
310
|
+
* Input for the Actor. If it is an object, it will be stringified to
|
|
310
311
|
* JSON and its content type set to `application/json; charset=utf-8`.
|
|
311
312
|
* Otherwise the `options.contentType` parameter must be provided.
|
|
312
313
|
* @param [options]
|
|
@@ -318,11 +319,11 @@ class Actor {
|
|
|
318
319
|
return client.actor(actorId).start(input, rest);
|
|
319
320
|
}
|
|
320
321
|
/**
|
|
321
|
-
* Aborts given
|
|
322
|
+
* Aborts given Actor run on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
322
323
|
*
|
|
323
|
-
* The result of the function is an {@apilink ActorRun} object that contains details about the
|
|
324
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the Actor run.
|
|
324
325
|
*
|
|
325
|
-
* For more information about
|
|
326
|
+
* For more information about Actors, read the
|
|
326
327
|
* [documentation](https://docs.apify.com/actor).
|
|
327
328
|
*
|
|
328
329
|
* **Example usage:**
|
|
@@ -343,13 +344,13 @@ class Actor {
|
|
|
343
344
|
/**
|
|
344
345
|
* Runs an actor task on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
345
346
|
*
|
|
346
|
-
* The result of the function is an {@apilink ActorRun} object that contains details about the
|
|
347
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the Actor run.
|
|
347
348
|
*
|
|
348
|
-
* Note that an
|
|
349
|
-
* If you want to run an
|
|
349
|
+
* Note that an Actor task is a saved input configuration and options for an Actor.
|
|
350
|
+
* If you want to run an Actor directly rather than an Actor task, please use the
|
|
350
351
|
* {@apilink Actor.call} function instead.
|
|
351
352
|
*
|
|
352
|
-
* For more information about
|
|
353
|
+
* For more information about Actor tasks, read the [documentation](https://docs.apify.com/tasks).
|
|
353
354
|
*
|
|
354
355
|
* **Example usage:**
|
|
355
356
|
*
|
|
@@ -360,9 +361,9 @@ class Actor {
|
|
|
360
361
|
* @param taskId
|
|
361
362
|
* Allowed formats are `username/task-name`, `userId/task-name` or task ID.
|
|
362
363
|
* @param [input]
|
|
363
|
-
* Input overrides for the
|
|
364
|
+
* Input overrides for the Actor task. If it is an object, it will be stringified to
|
|
364
365
|
* JSON and its content type set to `application/json; charset=utf-8`.
|
|
365
|
-
* Provided input will be merged with
|
|
366
|
+
* Provided input will be merged with Actor task input.
|
|
366
367
|
* @param [options]
|
|
367
368
|
* @ignore
|
|
368
369
|
*/
|
|
@@ -372,14 +373,14 @@ class Actor {
|
|
|
372
373
|
return client.task(taskId).call(input, rest);
|
|
373
374
|
}
|
|
374
375
|
/**
|
|
375
|
-
* Transforms this
|
|
376
|
+
* Transforms this Actor run to an Actor run of a given Actor. The system stops the current container and starts
|
|
376
377
|
* the new container instead. All the default storages are preserved and the new input is stored under the `INPUT-METAMORPH-1` key
|
|
377
378
|
* in the same default key-value store.
|
|
378
379
|
*
|
|
379
380
|
* @param targetActorId
|
|
380
|
-
* Either `username/actor-name` or
|
|
381
|
+
* Either `username/actor-name` or Actor ID of an Actor to which we want to metamorph.
|
|
381
382
|
* @param [input]
|
|
382
|
-
* Input for the
|
|
383
|
+
* Input for the Actor. If it is an object, it will be stringified to
|
|
383
384
|
* JSON and its content type set to `application/json; charset=utf-8`.
|
|
384
385
|
* Otherwise, the `options.contentType` parameter must be provided.
|
|
385
386
|
* @param [options]
|
|
@@ -397,7 +398,7 @@ class Actor {
|
|
|
397
398
|
await (0, utils_1.sleep)(customAfterSleepMillis);
|
|
398
399
|
}
|
|
399
400
|
/**
|
|
400
|
-
* Internally reboots this
|
|
401
|
+
* Internally reboots this Actor. The system stops the current container and starts
|
|
401
402
|
* a new container with the same run ID.
|
|
402
403
|
* This can be used to get the Actor out of irrecoverable error state and continue where it left off.
|
|
403
404
|
*
|
|
@@ -422,10 +423,10 @@ class Actor {
|
|
|
422
423
|
await (0, utils_1.sleep)(customAfterSleepMillis);
|
|
423
424
|
}
|
|
424
425
|
/**
|
|
425
|
-
* Creates an ad-hoc webhook for the current
|
|
426
|
-
* For more information about Apify
|
|
426
|
+
* Creates an ad-hoc webhook for the current Actor run, which lets you receive a notification when the Actor run finished or failed.
|
|
427
|
+
* For more information about Apify Actor webhooks, please see the [documentation](https://docs.apify.com/webhooks).
|
|
427
428
|
*
|
|
428
|
-
* Note that webhooks are only supported for
|
|
429
|
+
* Note that webhooks are only supported for Actors running on the Apify platform.
|
|
429
430
|
* In local environment, the function will print a warning and have no effect.
|
|
430
431
|
*
|
|
431
432
|
* @param options
|
|
@@ -461,7 +462,7 @@ class Actor {
|
|
|
461
462
|
});
|
|
462
463
|
}
|
|
463
464
|
/**
|
|
464
|
-
* Sets the status message for the current
|
|
465
|
+
* Sets the status message for the current Actor run.
|
|
465
466
|
*
|
|
466
467
|
* @returns The return value is the Run object.
|
|
467
468
|
* For more information, see the [Actor Runs](https://docs.apify.com/api/v2#/reference/actor-runs/) API endpoints.
|
|
@@ -500,7 +501,7 @@ class Actor {
|
|
|
500
501
|
return {};
|
|
501
502
|
}
|
|
502
503
|
/**
|
|
503
|
-
* Stores an object or an array of objects to the default {@apilink Dataset} of the current
|
|
504
|
+
* Stores an object or an array of objects to the default {@apilink Dataset} of the current Actor run.
|
|
504
505
|
*
|
|
505
506
|
* This is just a convenient shortcut for {@apilink Dataset.pushData}.
|
|
506
507
|
* For example, calling the following code:
|
|
@@ -517,7 +518,7 @@ class Actor {
|
|
|
517
518
|
* For more information, see {@apilink Actor.openDataset} and {@apilink Dataset.pushData}
|
|
518
519
|
*
|
|
519
520
|
* **IMPORTANT**: Make sure to use the `await` keyword when calling `pushData()`,
|
|
520
|
-
* otherwise the
|
|
521
|
+
* otherwise the Actor process might finish before the data are stored!
|
|
521
522
|
*
|
|
522
523
|
* @param item Object or array of objects containing data to be stored in the default dataset.
|
|
523
524
|
* The objects must be serializable to JSON and the JSON representation of each object must be smaller than 9MB.
|
|
@@ -539,7 +540,7 @@ class Actor {
|
|
|
539
540
|
*
|
|
540
541
|
* @param [datasetIdOrName]
|
|
541
542
|
* ID or name of the dataset to be opened. If `null` or `undefined`,
|
|
542
|
-
* the function returns the default dataset associated with the
|
|
543
|
+
* the function returns the default dataset associated with the Actor run.
|
|
543
544
|
* @param [options]
|
|
544
545
|
* @ignore
|
|
545
546
|
*/
|
|
@@ -552,7 +553,7 @@ class Actor {
|
|
|
552
553
|
return this._openStorage(core_1.Dataset, datasetIdOrName, options);
|
|
553
554
|
}
|
|
554
555
|
/**
|
|
555
|
-
* Gets a value from the default {@apilink KeyValueStore} associated with the current
|
|
556
|
+
* Gets a value from the default {@apilink KeyValueStore} associated with the current Actor run.
|
|
556
557
|
*
|
|
557
558
|
* This is just a convenient shortcut for {@apilink KeyValueStore.getValue}.
|
|
558
559
|
* For example, calling the following code:
|
|
@@ -585,7 +586,7 @@ class Actor {
|
|
|
585
586
|
return store.getValue(key);
|
|
586
587
|
}
|
|
587
588
|
/**
|
|
588
|
-
* Stores or deletes a value in the default {@apilink KeyValueStore} associated with the current
|
|
589
|
+
* Stores or deletes a value in the default {@apilink KeyValueStore} associated with the current Actor run.
|
|
589
590
|
*
|
|
590
591
|
* This is just a convenient shortcut for {@apilink KeyValueStore.setValue}.
|
|
591
592
|
* For example, calling the following code:
|
|
@@ -621,7 +622,7 @@ class Actor {
|
|
|
621
622
|
return store.setValue(key, value, options);
|
|
622
623
|
}
|
|
623
624
|
/**
|
|
624
|
-
* Gets the
|
|
625
|
+
* Gets the Actor input value from the default {@apilink KeyValueStore} associated with the current Actor run.
|
|
625
626
|
*
|
|
626
627
|
* This is just a convenient shortcut for [`keyValueStore.getValue('INPUT')`](core/class/KeyValueStore#getValue).
|
|
627
628
|
* For example, calling the following code:
|
|
@@ -636,7 +637,7 @@ class Actor {
|
|
|
636
637
|
* ```
|
|
637
638
|
*
|
|
638
639
|
* Note that the `getInput()` function does not cache the value read from the key-value store.
|
|
639
|
-
* If you need to use the input multiple times in your
|
|
640
|
+
* If you need to use the input multiple times in your Actor,
|
|
640
641
|
* it is far more efficient to read it once and store it locally.
|
|
641
642
|
*
|
|
642
643
|
* For more information, see {@apilink Actor.openKeyValueStore}
|
|
@@ -664,7 +665,7 @@ class Actor {
|
|
|
664
665
|
return input;
|
|
665
666
|
}
|
|
666
667
|
/**
|
|
667
|
-
* Gets the
|
|
668
|
+
* Gets the Actor input value just like the {@apilink Actor.getInput} method,
|
|
668
669
|
* but throws if it is not found.
|
|
669
670
|
*/
|
|
670
671
|
async getInputOrThrow() {
|
|
@@ -685,7 +686,7 @@ class Actor {
|
|
|
685
686
|
*
|
|
686
687
|
* @param [storeIdOrName]
|
|
687
688
|
* ID or name of the key-value store to be opened. If `null` or `undefined`,
|
|
688
|
-
* the function returns the default key-value store associated with the
|
|
689
|
+
* the function returns the default key-value store associated with the Actor run.
|
|
689
690
|
* @param [options]
|
|
690
691
|
* @ignore
|
|
691
692
|
*/
|
|
@@ -710,7 +711,7 @@ class Actor {
|
|
|
710
711
|
*
|
|
711
712
|
* @param [queueIdOrName]
|
|
712
713
|
* ID or name of the request queue to be opened. If `null` or `undefined`,
|
|
713
|
-
* the function returns the default request queue associated with the
|
|
714
|
+
* the function returns the default request queue associated with the Actor run.
|
|
714
715
|
* @param [options]
|
|
715
716
|
* @ignore
|
|
716
717
|
*/
|
|
@@ -798,7 +799,7 @@ class Actor {
|
|
|
798
799
|
* @ignore
|
|
799
800
|
*/
|
|
800
801
|
getEnv() {
|
|
801
|
-
// NOTE: Don't throw if env vars are invalid to simplify local development and debugging of
|
|
802
|
+
// NOTE: Don't throw if env vars are invalid to simplify local development and debugging of Actors
|
|
802
803
|
const env = process.env || {};
|
|
803
804
|
const envVars = {};
|
|
804
805
|
for (const [shortName, fullName] of Object.entries({ ...consts_1.APIFY_ENV_VARS, ...this.getModifiedActorEnvVars() })) {
|
|
@@ -866,11 +867,11 @@ class Actor {
|
|
|
866
867
|
return Actor.getDefaultInstance().useState(name, defaultValue, options);
|
|
867
868
|
}
|
|
868
869
|
/**
|
|
869
|
-
* Runs the main user function that performs the job of the
|
|
870
|
+
* Runs the main user function that performs the job of the Actor
|
|
870
871
|
* and terminates the process when the user function finishes.
|
|
871
872
|
*
|
|
872
873
|
* **The `Actor.main()` function is optional** and is provided merely for your convenience.
|
|
873
|
-
* It is mainly useful when you're running your code as an
|
|
874
|
+
* It is mainly useful when you're running your code as an Actor on the [Apify platform](https://apify.com/actors).
|
|
874
875
|
* However, if you want to use Apify SDK tools directly inside your existing projects, e.g.
|
|
875
876
|
* running in an [Express](https://expressjs.com/) server, on
|
|
876
877
|
* [Google Cloud functions](https://cloud.google.com/functions)
|
|
@@ -897,7 +898,7 @@ class Actor {
|
|
|
897
898
|
* ```javascript
|
|
898
899
|
* await Actor.main(() => {
|
|
899
900
|
* // My synchronous function that returns immediately
|
|
900
|
-
* console.log('Hello world from
|
|
901
|
+
* console.log('Hello world from Actor!');
|
|
901
902
|
* });
|
|
902
903
|
* ```
|
|
903
904
|
*
|
|
@@ -936,7 +937,7 @@ class Actor {
|
|
|
936
937
|
return Actor.getDefaultInstance().init(options);
|
|
937
938
|
}
|
|
938
939
|
/**
|
|
939
|
-
* Gracefully exits the
|
|
940
|
+
* Gracefully exits the Actor run with the provided status message and exit code.
|
|
940
941
|
* @param messageOrOptions First parameter accepts either a string (a terminal status message) or an `ExitOptions` object.
|
|
941
942
|
* @param options Second parameter accepts an `ExitOptions` object.
|
|
942
943
|
*/
|
|
@@ -958,13 +959,13 @@ class Actor {
|
|
|
958
959
|
Actor.getDefaultInstance().off(event, listener);
|
|
959
960
|
}
|
|
960
961
|
/**
|
|
961
|
-
* Runs an
|
|
962
|
+
* Runs an Actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
962
963
|
*
|
|
963
|
-
* The result of the function is an {@apilink ActorRun} object that contains details about the
|
|
964
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the Actor run.
|
|
964
965
|
*
|
|
965
|
-
* If you want to run an
|
|
966
|
+
* If you want to run an Actor task rather than an Actor, please use the {@apilink Actor.callTask} function instead.
|
|
966
967
|
*
|
|
967
|
-
* For more information about
|
|
968
|
+
* For more information about Actors, read the [documentation](https://docs.apify.com/actor).
|
|
968
969
|
*
|
|
969
970
|
* **Example usage:**
|
|
970
971
|
*
|
|
@@ -973,9 +974,9 @@ class Actor {
|
|
|
973
974
|
* ```
|
|
974
975
|
*
|
|
975
976
|
* @param actorId
|
|
976
|
-
* Allowed formats are `username/actor-name`, `userId/actor-name` or
|
|
977
|
+
* Allowed formats are `username/actor-name`, `userId/actor-name` or Actor ID.
|
|
977
978
|
* @param [input]
|
|
978
|
-
* Input for the
|
|
979
|
+
* Input for the Actor. If it is an object, it will be stringified to
|
|
979
980
|
* JSON and its content type set to `application/json; charset=utf-8`.
|
|
980
981
|
* Otherwise the `options.contentType` parameter must be provided.
|
|
981
982
|
* @param [options]
|
|
@@ -984,15 +985,15 @@ class Actor {
|
|
|
984
985
|
return Actor.getDefaultInstance().call(actorId, input, options);
|
|
985
986
|
}
|
|
986
987
|
/**
|
|
987
|
-
* Runs an
|
|
988
|
+
* Runs an Actor task on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
988
989
|
*
|
|
989
|
-
* The result of the function is an {@apilink ActorRun} object that contains details about the
|
|
990
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the Actor run.
|
|
990
991
|
*
|
|
991
|
-
* Note that an
|
|
992
|
-
* If you want to run an
|
|
992
|
+
* Note that an Actor task is a saved input configuration and options for an Actor.
|
|
993
|
+
* If you want to run an Actor directly rather than an Actor task, please use the
|
|
993
994
|
* {@apilink Actor.call} function instead.
|
|
994
995
|
*
|
|
995
|
-
* For more information about
|
|
996
|
+
* For more information about Actor tasks, read the [documentation](https://docs.apify.com/tasks).
|
|
996
997
|
*
|
|
997
998
|
* **Example usage:**
|
|
998
999
|
*
|
|
@@ -1003,21 +1004,21 @@ class Actor {
|
|
|
1003
1004
|
* @param taskId
|
|
1004
1005
|
* Allowed formats are `username/task-name`, `userId/task-name` or task ID.
|
|
1005
1006
|
* @param [input]
|
|
1006
|
-
* Input overrides for the
|
|
1007
|
+
* Input overrides for the Actor task. If it is an object, it will be stringified to
|
|
1007
1008
|
* JSON and its content type set to `application/json; charset=utf-8`.
|
|
1008
|
-
* Provided input will be merged with
|
|
1009
|
+
* Provided input will be merged with Actor task input.
|
|
1009
1010
|
* @param [options]
|
|
1010
1011
|
*/
|
|
1011
1012
|
static async callTask(taskId, input, options = {}) {
|
|
1012
1013
|
return Actor.getDefaultInstance().callTask(taskId, input, options);
|
|
1013
1014
|
}
|
|
1014
1015
|
/**
|
|
1015
|
-
* Runs an
|
|
1016
|
+
* Runs an Actor on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable),
|
|
1016
1017
|
* unlike `Actor.call`, this method just starts the run without waiting for finish.
|
|
1017
1018
|
*
|
|
1018
|
-
* The result of the function is an {@apilink ActorRun} object that contains details about the
|
|
1019
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the Actor run.
|
|
1019
1020
|
*
|
|
1020
|
-
* For more information about
|
|
1021
|
+
* For more information about Actors, read the
|
|
1021
1022
|
* [documentation](https://docs.apify.com/actor).
|
|
1022
1023
|
*
|
|
1023
1024
|
* **Example usage:**
|
|
@@ -1027,9 +1028,9 @@ class Actor {
|
|
|
1027
1028
|
* ```
|
|
1028
1029
|
*
|
|
1029
1030
|
* @param actorId
|
|
1030
|
-
* Allowed formats are `username/actor-name`, `userId/actor-name` or
|
|
1031
|
+
* Allowed formats are `username/actor-name`, `userId/actor-name` or Actor ID.
|
|
1031
1032
|
* @param [input]
|
|
1032
|
-
* Input for the
|
|
1033
|
+
* Input for the Actor. If it is an object, it will be stringified to
|
|
1033
1034
|
* JSON and its content type set to `application/json; charset=utf-8`.
|
|
1034
1035
|
* Otherwise the `options.contentType` parameter must be provided.
|
|
1035
1036
|
* @param [options]
|
|
@@ -1038,11 +1039,11 @@ class Actor {
|
|
|
1038
1039
|
return Actor.getDefaultInstance().start(actorId, input, options);
|
|
1039
1040
|
}
|
|
1040
1041
|
/**
|
|
1041
|
-
* Aborts given
|
|
1042
|
+
* Aborts given Actor run on the Apify platform using the current user account (determined by the `APIFY_TOKEN` environment variable).
|
|
1042
1043
|
*
|
|
1043
|
-
* The result of the function is an {@apilink ActorRun} object that contains details about the
|
|
1044
|
+
* The result of the function is an {@apilink ActorRun} object that contains details about the Actor run.
|
|
1044
1045
|
*
|
|
1045
|
-
* For more information about
|
|
1046
|
+
* For more information about Actors, read the
|
|
1046
1047
|
* [documentation](https://docs.apify.com/actor).
|
|
1047
1048
|
*
|
|
1048
1049
|
* **Example usage:**
|
|
@@ -1055,14 +1056,14 @@ class Actor {
|
|
|
1055
1056
|
return Actor.getDefaultInstance().abort(runId, options);
|
|
1056
1057
|
}
|
|
1057
1058
|
/**
|
|
1058
|
-
* Transforms this
|
|
1059
|
+
* Transforms this Actor run to an Actor run of a given Actor. The system stops the current container and starts
|
|
1059
1060
|
* the new container instead. All the default storages are preserved and the new input is stored under the `INPUT-METAMORPH-1` key
|
|
1060
1061
|
* in the same default key-value store.
|
|
1061
1062
|
*
|
|
1062
1063
|
* @param targetActorId
|
|
1063
|
-
* Either `username/actor-name` or
|
|
1064
|
+
* Either `username/actor-name` or Actor ID of an Actor to which we want to metamorph.
|
|
1064
1065
|
* @param [input]
|
|
1065
|
-
* Input for the
|
|
1066
|
+
* Input for the Actor. If it is an object, it will be stringified to
|
|
1066
1067
|
* JSON and its content type set to `application/json; charset=utf-8`.
|
|
1067
1068
|
* Otherwise, the `options.contentType` parameter must be provided.
|
|
1068
1069
|
* @param [options]
|
|
@@ -1071,7 +1072,7 @@ class Actor {
|
|
|
1071
1072
|
return Actor.getDefaultInstance().metamorph(targetActorId, input, options);
|
|
1072
1073
|
}
|
|
1073
1074
|
/**
|
|
1074
|
-
* Internally reboots this
|
|
1075
|
+
* Internally reboots this Actor run. The system stops the current container and starts
|
|
1075
1076
|
* a new container with the same run id.
|
|
1076
1077
|
* This can be used to get the Actor out of irrecoverable error state and continue where it left off.
|
|
1077
1078
|
*/
|
|
@@ -1079,10 +1080,10 @@ class Actor {
|
|
|
1079
1080
|
return Actor.getDefaultInstance().reboot(options);
|
|
1080
1081
|
}
|
|
1081
1082
|
/**
|
|
1082
|
-
* Creates an ad-hoc webhook for the current
|
|
1083
|
-
* For more information about Apify
|
|
1083
|
+
* Creates an ad-hoc webhook for the current Actor run, which lets you receive a notification when the Actor run finished or failed.
|
|
1084
|
+
* For more information about Apify Actor webhooks, please see the [documentation](https://docs.apify.com/webhooks).
|
|
1084
1085
|
*
|
|
1085
|
-
* Note that webhooks are only supported for
|
|
1086
|
+
* Note that webhooks are only supported for Actors running on the Apify platform.
|
|
1086
1087
|
* In local environment, the function will print a warning and have no effect.
|
|
1087
1088
|
*
|
|
1088
1089
|
* @param options
|
|
@@ -1093,7 +1094,7 @@ class Actor {
|
|
|
1093
1094
|
return Actor.getDefaultInstance().addWebhook(options);
|
|
1094
1095
|
}
|
|
1095
1096
|
/**
|
|
1096
|
-
* Sets the status message for the current
|
|
1097
|
+
* Sets the status message for the current Actor run.
|
|
1097
1098
|
*
|
|
1098
1099
|
* @param statusMessage The status message to set.
|
|
1099
1100
|
* @param [options]
|
|
@@ -1106,7 +1107,7 @@ class Actor {
|
|
|
1106
1107
|
return Actor.getDefaultInstance().setStatusMessage(statusMessage, options);
|
|
1107
1108
|
}
|
|
1108
1109
|
/**
|
|
1109
|
-
* Stores an object or an array of objects to the default {@apilink Dataset} of the current
|
|
1110
|
+
* Stores an object or an array of objects to the default {@apilink Dataset} of the current Actor run.
|
|
1110
1111
|
*
|
|
1111
1112
|
* This is just a convenient shortcut for {@apilink Dataset.pushData}.
|
|
1112
1113
|
* For example, calling the following code:
|
|
@@ -1123,7 +1124,7 @@ class Actor {
|
|
|
1123
1124
|
* For more information, see {@apilink Actor.openDataset} and {@apilink Dataset.pushData}
|
|
1124
1125
|
*
|
|
1125
1126
|
* **IMPORTANT**: Make sure to use the `await` keyword when calling `pushData()`,
|
|
1126
|
-
* otherwise the
|
|
1127
|
+
* otherwise the Actor process might finish before the data are stored!
|
|
1127
1128
|
*
|
|
1128
1129
|
* @param item Object or array of objects containing data to be stored in the default dataset.
|
|
1129
1130
|
* The objects must be serializable to JSON and the JSON representation of each object must be smaller than 9MB.
|
|
@@ -1142,14 +1143,14 @@ class Actor {
|
|
|
1142
1143
|
*
|
|
1143
1144
|
* @param [datasetIdOrName]
|
|
1144
1145
|
* ID or name of the dataset to be opened. If `null` or `undefined`,
|
|
1145
|
-
* the function returns the default dataset associated with the
|
|
1146
|
+
* the function returns the default dataset associated with the Actor run.
|
|
1146
1147
|
* @param [options]
|
|
1147
1148
|
*/
|
|
1148
1149
|
static async openDataset(datasetIdOrName, options = {}) {
|
|
1149
1150
|
return Actor.getDefaultInstance().openDataset(datasetIdOrName, options);
|
|
1150
1151
|
}
|
|
1151
1152
|
/**
|
|
1152
|
-
* Gets a value from the default {@apilink KeyValueStore} associated with the current
|
|
1153
|
+
* Gets a value from the default {@apilink KeyValueStore} associated with the current Actor run.
|
|
1153
1154
|
*
|
|
1154
1155
|
* This is just a convenient shortcut for {@apilink KeyValueStore.getValue}.
|
|
1155
1156
|
* For example, calling the following code:
|
|
@@ -1179,7 +1180,7 @@ class Actor {
|
|
|
1179
1180
|
return Actor.getDefaultInstance().getValue(key);
|
|
1180
1181
|
}
|
|
1181
1182
|
/**
|
|
1182
|
-
* Stores or deletes a value in the default {@apilink KeyValueStore} associated with the current
|
|
1183
|
+
* Stores or deletes a value in the default {@apilink KeyValueStore} associated with the current Actor run.
|
|
1183
1184
|
*
|
|
1184
1185
|
* This is just a convenient shortcut for {@apilink KeyValueStore.setValue}.
|
|
1185
1186
|
* For example, calling the following code:
|
|
@@ -1212,7 +1213,7 @@ class Actor {
|
|
|
1212
1213
|
return Actor.getDefaultInstance().setValue(key, value, options);
|
|
1213
1214
|
}
|
|
1214
1215
|
/**
|
|
1215
|
-
* Gets the
|
|
1216
|
+
* Gets the Actor input value from the default {@apilink KeyValueStore} associated with the current Actor run.
|
|
1216
1217
|
*
|
|
1217
1218
|
* This is just a convenient shortcut for {@apilink KeyValueStore.getValue | `keyValueStore.getValue('INPUT')`}.
|
|
1218
1219
|
* For example, calling the following code:
|
|
@@ -1227,7 +1228,7 @@ class Actor {
|
|
|
1227
1228
|
* ```
|
|
1228
1229
|
*
|
|
1229
1230
|
* Note that the `getInput()` function does not cache the value read from the key-value store.
|
|
1230
|
-
* If you need to use the input multiple times in your
|
|
1231
|
+
* If you need to use the input multiple times in your Actor,
|
|
1231
1232
|
* it is far more efficient to read it once and store it locally.
|
|
1232
1233
|
*
|
|
1233
1234
|
* For more information, see {@apilink Actor.openKeyValueStore} and {@apilink KeyValueStore.getValue}.
|
|
@@ -1242,7 +1243,7 @@ class Actor {
|
|
|
1242
1243
|
return Actor.getDefaultInstance().getInput();
|
|
1243
1244
|
}
|
|
1244
1245
|
/**
|
|
1245
|
-
* Gets the
|
|
1246
|
+
* Gets the Actor input value just like the {@apilink Actor.getInput} method,
|
|
1246
1247
|
* but throws if it is not found.
|
|
1247
1248
|
*/
|
|
1248
1249
|
static async getInputOrThrow() {
|
|
@@ -1259,7 +1260,7 @@ class Actor {
|
|
|
1259
1260
|
*
|
|
1260
1261
|
* @param [storeIdOrName]
|
|
1261
1262
|
* ID or name of the key-value store to be opened. If `null` or `undefined`,
|
|
1262
|
-
* the function returns the default key-value store associated with the
|
|
1263
|
+
* the function returns the default key-value store associated with the Actor run.
|
|
1263
1264
|
* @param [options]
|
|
1264
1265
|
*/
|
|
1265
1266
|
static async openKeyValueStore(storeIdOrName, options = {}) {
|
|
@@ -1278,7 +1279,7 @@ class Actor {
|
|
|
1278
1279
|
*
|
|
1279
1280
|
* @param [queueIdOrName]
|
|
1280
1281
|
* ID or name of the request queue to be opened. If `null` or `undefined`,
|
|
1281
|
-
* the function returns the default request queue associated with the
|
|
1282
|
+
* the function returns the default request queue associated with the Actor run.
|
|
1282
1283
|
* @param [options]
|
|
1283
1284
|
*/
|
|
1284
1285
|
static async openRequestQueue(queueIdOrName, options = {}) {
|
|
@@ -1375,14 +1376,14 @@ class Actor {
|
|
|
1375
1376
|
}
|
|
1376
1377
|
this.warnedAboutMissingInitCall = true;
|
|
1377
1378
|
log_1.default.warning([
|
|
1378
|
-
`Actor.${methodCalled}() was called but the
|
|
1379
|
+
`Actor.${methodCalled}() was called but the Actor instance was not initialized.`,
|
|
1379
1380
|
'Did you forget to call Actor.init()?',
|
|
1380
1381
|
].join('\n'));
|
|
1381
1382
|
}
|
|
1382
1383
|
}
|
|
1383
1384
|
exports.Actor = Actor;
|
|
1384
1385
|
/**
|
|
1385
|
-
* Exit codes for the
|
|
1386
|
+
* Exit codes for the Actor process.
|
|
1386
1387
|
* The error codes must be in the range 1-128, to avoid collision with signal exits
|
|
1387
1388
|
* and to ensure Docker will handle them correctly!
|
|
1388
1389
|
* @internal should be removed if we decide to remove `Actor.main()`
|