apify 3.4.0 → 3.4.1-beta.4
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 +20 -0
- package/.turbo/turbo-copy.log +4 -0
- package/LICENSE.md +183 -183
- package/README.md +1 -1
- package/dist/LICENSE.md +201 -0
- package/dist/README.md +98 -0
- package/{actor.d.ts → dist/actor.d.ts} +226 -226
- package/dist/actor.d.ts.map +1 -0
- package/{actor.js → dist/actor.js} +91 -50
- package/dist/actor.js.map +1 -0
- package/{charging.d.ts → dist/charging.d.ts} +18 -18
- package/dist/charging.d.ts.map +1 -0
- package/{charging.js → dist/charging.js} +26 -14
- package/dist/charging.js.map +1 -0
- package/{configuration.d.ts → dist/configuration.d.ts} +4 -4
- package/dist/configuration.d.ts.map +1 -0
- package/{configuration.js → dist/configuration.js} +14 -3
- package/dist/configuration.js.map +1 -0
- package/{index.d.ts → dist/index.d.ts} +6 -6
- package/dist/index.d.ts.map +1 -0
- package/{index.js → dist/index.js} +6 -6
- package/dist/index.js.map +1 -0
- package/dist/key_value_store.d.ts.map +1 -0
- package/{key_value_store.js → dist/key_value_store.js} +1 -1
- package/dist/key_value_store.js.map +1 -0
- package/dist/package.json +80 -0
- package/{platform_event_manager.d.ts → dist/platform_event_manager.d.ts} +1 -1
- package/{platform_event_manager.d.ts.map → dist/platform_event_manager.d.ts.map} +1 -1
- package/{platform_event_manager.js → dist/platform_event_manager.js} +10 -7
- package/dist/platform_event_manager.js.map +1 -0
- package/{proxy_configuration.d.ts → dist/proxy_configuration.d.ts} +1 -1
- package/dist/proxy_configuration.d.ts.map +1 -0
- package/{proxy_configuration.js → dist/proxy_configuration.js} +44 -32
- package/dist/proxy_configuration.js.map +1 -0
- package/dist/utils.d.ts.map +1 -0
- package/{utils.js → dist/utils.js} +2 -3
- package/dist/utils.js.map +1 -0
- package/package.json +9 -9
- package/actor.d.ts.map +0 -1
- package/actor.js.map +0 -1
- package/charging.d.ts.map +0 -1
- package/charging.js.map +0 -1
- package/configuration.d.ts.map +0 -1
- package/configuration.js.map +0 -1
- package/index.d.ts.map +0 -1
- package/index.js.map +0 -1
- package/key_value_store.d.ts.map +0 -1
- package/key_value_store.js.map +0 -1
- package/platform_event_manager.js.map +0 -1
- package/proxy_configuration.d.ts.map +0 -1
- package/proxy_configuration.js.map +0 -1
- package/tsconfig.build.tsbuildinfo +0 -1
- package/utils.d.ts.map +0 -1
- package/utils.js.map +0 -1
- /package/{index.mjs → dist/index.mjs} +0 -0
- /package/{key_value_store.d.ts → dist/key_value_store.d.ts} +0 -0
- /package/{utils.d.ts → dist/utils.d.ts} +0 -0
package/dist/README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Apify SDK
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/apify)
|
|
4
|
+
[](https://www.npmjs.com/package/apify)
|
|
5
|
+
[](https://discord.gg/jyEM2PRvMU)
|
|
6
|
+
[](https://github.com/apify/apify-sdk-js/actions/workflows/test-and-release.yaml)
|
|
7
|
+
|
|
8
|
+
Apify SDK provides the tools required to run your own Apify Actors. The crawlers and scraping related tools, previously included in Apify SDK (v2), have been split into a brand-new module - [`crawlee`](https://npmjs.org/crawlee), while keeping the Apify specific parts in this module.
|
|
9
|
+
|
|
10
|
+
> Would you like to work with us on Crawlee, Apify SDK or similar projects? We are hiring [Node.js engineers](https://apify.com/jobs#senior-node.js-engineer).
|
|
11
|
+
|
|
12
|
+
## Upgrading from v2
|
|
13
|
+
|
|
14
|
+
A lot of things have changed since version 2 of the Apify SDK, including the split of the crawlers to the new [`crawlee`](https://npmjs.org/crawlee) module. We've written a guide to help you easily migrate from v2 to v3. Visit the [Upgrading Guide](https://docs.apify.com/sdk/js/docs/upgrading/upgrading-to-v3) to find out what changes you need to make (especially the section related to this very [Apify SDK](https://docs.apify.com/sdk/js/docs/upgrading/upgrading-to-v3#apify-sdk)), and, if you encounter any issues, join our [Discord server](https://discord.gg/jyEM2PRvMU) for help!
|
|
15
|
+
|
|
16
|
+
## Quick Start
|
|
17
|
+
|
|
18
|
+
This short tutorial will set you up to start using Apify SDK in a minute or two.
|
|
19
|
+
If you want to learn more, proceed to the [Apify Platform](https://docs.apify.com/sdk/js/docs/guides/apify-platform)
|
|
20
|
+
guide that will take you step by step through running your Actor on Apify's platform.
|
|
21
|
+
|
|
22
|
+
Apify SDK requires [Node.js](https://nodejs.org/en/) 16 or later. Add Apify SDK to any Node.js project by running:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install apify crawlee playwright
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
> For this example, we'll also install the [`crawlee`](https://npmjs.org/crawlee) module, as it now provides the crawlers that were previously exported by Apify SDK. If you don't plan to use crawlers in your Actors, then you don't need to install it. Keep in mind that neither `playwright` nor `puppeteer` are bundled with `crawlee` in order to reduce install size and allow greater flexibility. That's why we manually install it with NPM. You can choose one, both, or neither.
|
|
29
|
+
|
|
30
|
+
There are two ways to initialize your Actor: by using the `Actor.main()` function you're probably used to, or by calling `Actor.init()` and `Actor.exit()` manually. We prefer explicitly calling `init` and `exit`.
|
|
31
|
+
|
|
32
|
+
### Using `Actor.init()` and `Actor.exit()`
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import { Actor } from 'apify';
|
|
36
|
+
import { PlaywrightCrawler } from 'crawlee';
|
|
37
|
+
|
|
38
|
+
await Actor.init();
|
|
39
|
+
|
|
40
|
+
const crawler = new PlaywrightCrawler({
|
|
41
|
+
async requestHandler({ request, page, enqueueLinks }) {
|
|
42
|
+
// Extract HTML title of the page.
|
|
43
|
+
const title = await page.title();
|
|
44
|
+
console.log(`Title of ${request.url}: ${title}`);
|
|
45
|
+
|
|
46
|
+
// Add URLs that point to the same hostname.
|
|
47
|
+
await enqueueLinks();
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
await crawler.run(['https://crawlee.dev/']);
|
|
52
|
+
|
|
53
|
+
await Actor.exit();
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Using `Actor.main()`
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { Actor } from 'apify';
|
|
60
|
+
import { PlaywrightCrawler } from 'crawlee';
|
|
61
|
+
|
|
62
|
+
await Actor.main(async () => {
|
|
63
|
+
const crawler = new PlaywrightCrawler({
|
|
64
|
+
async requestHandler({ request, page, enqueueLinks }) {
|
|
65
|
+
// Extract HTML title of the page.
|
|
66
|
+
const title = await page.title();
|
|
67
|
+
console.log(`Title of ${request.url}: ${title}`);
|
|
68
|
+
|
|
69
|
+
// Add URLs that point to the same hostname.
|
|
70
|
+
await enqueueLinks();
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
await crawler.run(['https://crawlee.dev/']);
|
|
75
|
+
});
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Support
|
|
79
|
+
|
|
80
|
+
If you find any bug or issue with the Apify SDK, please [submit an issue on GitHub](https://github.com/apify/apify-sdk-js/issues).
|
|
81
|
+
For questions, you can ask on [Stack Overflow](https://stackoverflow.com/questions/tagged/apify) or contact support@apify.com
|
|
82
|
+
|
|
83
|
+
## Contributing
|
|
84
|
+
|
|
85
|
+
Your code contributions are welcome, and you'll be praised to eternity!
|
|
86
|
+
If you have any ideas for improvements, either submit an issue or create a pull request.
|
|
87
|
+
For contribution guidelines and the code of conduct,
|
|
88
|
+
see [CONTRIBUTING.md](https://github.com/apify/apify-sdk-js/blob/master/CONTRIBUTING.md).
|
|
89
|
+
|
|
90
|
+
## License
|
|
91
|
+
|
|
92
|
+
This project is licensed under the Apache License 2.0 -
|
|
93
|
+
see the [LICENSE.md](https://github.com/apify/apify-sdk-js/blob/master/LICENSE.md) file for details.
|
|
94
|
+
|
|
95
|
+
## Acknowledgments
|
|
96
|
+
|
|
97
|
+
Many thanks to [Chema Balsas](https://www.npmjs.com/~jbalsas) for giving up the `apify` package name
|
|
98
|
+
on NPM and renaming his project to [jsdocify](https://www.npmjs.com/package/jsdocify).
|
|
@@ -3,12 +3,232 @@ import { Dataset, RequestQueue } from '@crawlee/core';
|
|
|
3
3
|
import type { Awaitable, Dictionary, SetStatusMessageOptions, StorageClient } from '@crawlee/types';
|
|
4
4
|
import type { ActorCallOptions, ApifyClientOptions, RunAbortOptions, TaskCallOptions, Webhook, WebhookEventType } from 'apify-client';
|
|
5
5
|
import { ActorRun as ClientActorRun, ApifyClient } from 'apify-client';
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import { Configuration } from './configuration';
|
|
9
|
-
import { KeyValueStore } from './key_value_store';
|
|
10
|
-
import type { ProxyConfigurationOptions } from './proxy_configuration';
|
|
11
|
-
import { ProxyConfiguration } from './proxy_configuration';
|
|
6
|
+
import type { ChargeOptions, ChargeResult } from './charging.js';
|
|
7
|
+
import { ChargingManager } from './charging.js';
|
|
8
|
+
import { Configuration } from './configuration.js';
|
|
9
|
+
import { KeyValueStore } from './key_value_store.js';
|
|
10
|
+
import type { ProxyConfigurationOptions } from './proxy_configuration.js';
|
|
11
|
+
import { ProxyConfiguration } from './proxy_configuration.js';
|
|
12
|
+
export interface InitOptions {
|
|
13
|
+
storage?: StorageClient;
|
|
14
|
+
}
|
|
15
|
+
export interface ExitOptions {
|
|
16
|
+
/** Exit with given status message */
|
|
17
|
+
statusMessage?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Amount of time, in seconds, to wait for all event handlers to finish before exiting the process.
|
|
20
|
+
* @default 30
|
|
21
|
+
*/
|
|
22
|
+
timeoutSecs?: number;
|
|
23
|
+
/** Exit code, defaults to 0 */
|
|
24
|
+
exitCode?: number;
|
|
25
|
+
/** Call `process.exit()`? Defaults to true */
|
|
26
|
+
exit?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface MainOptions extends ExitOptions, InitOptions {
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Parsed representation of the Apify environment variables.
|
|
32
|
+
* This object is returned by the {@apilink Actor.getEnv} function.
|
|
33
|
+
*/
|
|
34
|
+
export interface ApifyEnv {
|
|
35
|
+
/**
|
|
36
|
+
* ID of the Actor (ACTOR_ID)
|
|
37
|
+
*/
|
|
38
|
+
actorId: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* ID of the Actor run (ACTOR_RUN_ID)
|
|
41
|
+
*/
|
|
42
|
+
actorRunId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* ID of the Actor task (ACTOR_TASK_ID)
|
|
45
|
+
*/
|
|
46
|
+
actorTaskId: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* ID of the Actor build used in the run. (ACTOR_BUILD_ID)
|
|
49
|
+
*/
|
|
50
|
+
actorBuildId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* ID of the user who started the Actor - note that it might be
|
|
53
|
+
* different than the owner of the Actor (APIFY_USER_ID)
|
|
54
|
+
*/
|
|
55
|
+
userId: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Authentication token representing privileges given to the Actor run,
|
|
58
|
+
* it can be passed to various Apify APIs (APIFY_TOKEN)
|
|
59
|
+
*/
|
|
60
|
+
token: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Date when the Actor was started (ACTOR_STARTED_AT)
|
|
63
|
+
*/
|
|
64
|
+
startedAt: Date | null;
|
|
65
|
+
/**
|
|
66
|
+
* Date when the Actor will time out (ACTOR_TIMEOUT_AT)
|
|
67
|
+
*/
|
|
68
|
+
timeoutAt: Date | null;
|
|
69
|
+
/**
|
|
70
|
+
* ID of the key-value store where input and output data of this
|
|
71
|
+
* Actor is stored (ACTOR_DEFAULT_KEY_VALUE_STORE_ID)
|
|
72
|
+
*/
|
|
73
|
+
defaultKeyValueStoreId: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* ID of the dataset where input and output data of this
|
|
76
|
+
* Actor is stored (ACTOR_DEFAULT_DATASET_ID)
|
|
77
|
+
*/
|
|
78
|
+
defaultDatasetId: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Amount of memory allocated for the Actor,
|
|
81
|
+
* in megabytes (ACTOR_MEMORY_MBYTES)
|
|
82
|
+
*/
|
|
83
|
+
memoryMbytes: number | null;
|
|
84
|
+
/**
|
|
85
|
+
* If set to "1", the web browsers inside the Actor should run in headless
|
|
86
|
+
* mode because there is no windowing system available. (APIFY_HEADLESS)
|
|
87
|
+
*/
|
|
88
|
+
headless: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Is set to "1" if the Actor is running on Apify servers.
|
|
91
|
+
* (APIFY_IS_AT_HOME)
|
|
92
|
+
*/
|
|
93
|
+
isAtHome: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* The Apify Proxy password of the user who started the Actor. (APIFY_PROXY_PASSWORD)
|
|
96
|
+
*/
|
|
97
|
+
proxyPassword: string | null;
|
|
98
|
+
proxyHostname: string | null;
|
|
99
|
+
proxyPort: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* You can visit this page to troubleshoot your proxy connection. (APIFY_PROXY_STATUS_URL)
|
|
102
|
+
*/
|
|
103
|
+
proxyStatusUrl: string | null;
|
|
104
|
+
apiBaseUrl: string | null;
|
|
105
|
+
apiPublicBaseUrl: string | null;
|
|
106
|
+
chromeExecutablePath: string | null;
|
|
107
|
+
dedicatedCpus: string | null;
|
|
108
|
+
disableOutdatedWarning: 1 | null;
|
|
109
|
+
fact: string | null;
|
|
110
|
+
inputSecretsPrivateKeyFile: string | null;
|
|
111
|
+
inputSecretsPrivateKeyPassphrase: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* Defines the path to a local directory where KeyValueStore, Dataset, and RequestQueue
|
|
114
|
+
* store their data. Typically, it is set to ./storage. If omitted, you should define the
|
|
115
|
+
* APIFY_TOKEN environment variable instead. See more info on combination of this and
|
|
116
|
+
* APIFY_TOKEN [here](https://docs.apify.com/sdk/js/docs/guides/environment-variables#combinations-of-apify_local_storage_dir-and-apify_token)(CRAWLEE_STORAGE_DIR)
|
|
117
|
+
*/
|
|
118
|
+
localStorageDir: string | null;
|
|
119
|
+
/**
|
|
120
|
+
* Specifies the minimum log level, which can be one of the following values (in order of severity): DEBUG, INFO, WARNING and ERROR
|
|
121
|
+
* (APIFY_LOG_LEVEL)
|
|
122
|
+
*/
|
|
123
|
+
logLevel: string | null;
|
|
124
|
+
logFormat: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* Origin for the Actor run, i.e. how it was started. See [here](https://docs.apify.com/sdk/python/reference/enum/MetaOrigin)
|
|
127
|
+
* for more details. (APIFY_META_ORIGIN)
|
|
128
|
+
*/
|
|
129
|
+
metaOrigin: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* The key of the input record in the Actor’s default key-value store (ACTOR_INPUT_KEY)
|
|
132
|
+
*/
|
|
133
|
+
inputKey: string | null;
|
|
134
|
+
sdkLatestVersion: string | null;
|
|
135
|
+
systemInfoIntervalMillis: string | null;
|
|
136
|
+
workflowKey: string | null;
|
|
137
|
+
actorBuildNumber: string | null;
|
|
138
|
+
actorEventsWsUrl: string | null;
|
|
139
|
+
actorMaxPaidDatasetItems: number | null;
|
|
140
|
+
containerPort: number | null;
|
|
141
|
+
containerUrl: string | null;
|
|
142
|
+
defaultRequestQueueId: string | null;
|
|
143
|
+
}
|
|
144
|
+
export type UserFunc<T = unknown> = () => Awaitable<T>;
|
|
145
|
+
export interface CallOptions extends ActorCallOptions {
|
|
146
|
+
/**
|
|
147
|
+
* User API token that is used to run the Actor. By default, it is taken from the `APIFY_TOKEN` environment variable.
|
|
148
|
+
*/
|
|
149
|
+
token?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface CallTaskOptions extends TaskCallOptions {
|
|
152
|
+
/**
|
|
153
|
+
* User API token that is used to run the Actor. By default, it is taken from the `APIFY_TOKEN` environment variable.
|
|
154
|
+
*/
|
|
155
|
+
token?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface AbortOptions extends RunAbortOptions {
|
|
158
|
+
/**
|
|
159
|
+
* User API token that is used to run the Actor. By default, it is taken from the `APIFY_TOKEN` environment variable.
|
|
160
|
+
*/
|
|
161
|
+
token?: string;
|
|
162
|
+
/** Exit with given status message */
|
|
163
|
+
statusMessage?: string;
|
|
164
|
+
}
|
|
165
|
+
export interface WebhookOptions {
|
|
166
|
+
/**
|
|
167
|
+
* Array of event types, which you can set for Actor run, see
|
|
168
|
+
* the [Actor run events](https://docs.apify.com/webhooks/events#actor-run) in the Apify doc.
|
|
169
|
+
*/
|
|
170
|
+
eventTypes: readonly WebhookEventType[];
|
|
171
|
+
/**
|
|
172
|
+
* URL which will be requested using HTTP POST request, when Actor run will reach the set event type.
|
|
173
|
+
*/
|
|
174
|
+
requestUrl: string;
|
|
175
|
+
/**
|
|
176
|
+
* Payload template is a JSON-like string that describes the structure of the webhook POST request payload.
|
|
177
|
+
* It uses JSON syntax, extended with a double curly braces syntax for injecting variables `{{variable}}`.
|
|
178
|
+
* Those variables are resolved at the time of the webhook's dispatch, and a list of available variables with their descriptions
|
|
179
|
+
* is available in the [Apify webhook documentation](https://docs.apify.com/webhooks).
|
|
180
|
+
* If `payloadTemplate` is omitted, the default payload template is used
|
|
181
|
+
* ([view docs](https://docs.apify.com/webhooks/actions#payload-template)).
|
|
182
|
+
*/
|
|
183
|
+
payloadTemplate?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Idempotency key enables you to ensure that a webhook will not be added multiple times in case of
|
|
186
|
+
* an Actor restart or other situation that would cause the `addWebhook()` function to be called again.
|
|
187
|
+
* We suggest using the Actor run ID as the idempotency key. You can get the run ID by calling
|
|
188
|
+
* {@apilink Actor.getEnv} function.
|
|
189
|
+
*/
|
|
190
|
+
idempotencyKey?: string;
|
|
191
|
+
}
|
|
192
|
+
export interface MetamorphOptions {
|
|
193
|
+
/**
|
|
194
|
+
* Content type for the `input`. If not specified,
|
|
195
|
+
* `input` is expected to be an object that will be stringified to JSON and content type set to
|
|
196
|
+
* `application/json; charset=utf-8`. If `options.contentType` is specified, then `input` must be a
|
|
197
|
+
* `String` or `Buffer`.
|
|
198
|
+
*/
|
|
199
|
+
contentType?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Tag or number of the target Actor build to metamorph into (e.g. `beta` or `1.2.345`).
|
|
202
|
+
* If not provided, the run uses build tag or number from the default Actor run configuration (typically `latest`).
|
|
203
|
+
*/
|
|
204
|
+
build?: string;
|
|
205
|
+
/** @internal */
|
|
206
|
+
customAfterSleepMillis?: number;
|
|
207
|
+
}
|
|
208
|
+
export interface RebootOptions {
|
|
209
|
+
/** @internal */
|
|
210
|
+
customAfterSleepMillis?: number;
|
|
211
|
+
}
|
|
212
|
+
export interface OpenStorageOptions {
|
|
213
|
+
/**
|
|
214
|
+
* If set to `true` then the cloud storage is used even if the `CRAWLEE_STORAGE_DIR`
|
|
215
|
+
* environment variable is set. This way it is possible to combine local and cloud storage.
|
|
216
|
+
* @default false
|
|
217
|
+
*/
|
|
218
|
+
forceCloud?: boolean;
|
|
219
|
+
}
|
|
220
|
+
export { ClientActorRun as ActorRun };
|
|
221
|
+
/**
|
|
222
|
+
* Exit codes for the Actor process.
|
|
223
|
+
* The error codes must be in the range 1-128, to avoid collision with signal exits
|
|
224
|
+
* and to ensure Docker will handle them correctly!
|
|
225
|
+
* @internal should be removed if we decide to remove `Actor.main()`
|
|
226
|
+
*/
|
|
227
|
+
export declare const EXIT_CODES: {
|
|
228
|
+
SUCCESS: number;
|
|
229
|
+
ERROR_USER_FUNCTION_THREW: number;
|
|
230
|
+
ERROR_UNKNOWN: number;
|
|
231
|
+
};
|
|
12
232
|
/**
|
|
13
233
|
* `Actor` class serves as an alternative approach to the static helpers exported from the package. It allows to pass configuration
|
|
14
234
|
* that will be used on the instance methods. Environment variables will have precedence over this configuration.
|
|
@@ -1059,224 +1279,4 @@ export declare class Actor<Data extends Dictionary = Dictionary> {
|
|
|
1059
1279
|
private _openStorage;
|
|
1060
1280
|
private _ensureActorInit;
|
|
1061
1281
|
}
|
|
1062
|
-
export interface InitOptions {
|
|
1063
|
-
storage?: StorageClient;
|
|
1064
|
-
}
|
|
1065
|
-
export interface MainOptions extends ExitOptions, InitOptions {
|
|
1066
|
-
}
|
|
1067
|
-
/**
|
|
1068
|
-
* Parsed representation of the Apify environment variables.
|
|
1069
|
-
* This object is returned by the {@apilink Actor.getEnv} function.
|
|
1070
|
-
*/
|
|
1071
|
-
export interface ApifyEnv {
|
|
1072
|
-
/**
|
|
1073
|
-
* ID of the Actor (ACTOR_ID)
|
|
1074
|
-
*/
|
|
1075
|
-
actorId: string | null;
|
|
1076
|
-
/**
|
|
1077
|
-
* ID of the Actor run (ACTOR_RUN_ID)
|
|
1078
|
-
*/
|
|
1079
|
-
actorRunId: string | null;
|
|
1080
|
-
/**
|
|
1081
|
-
* ID of the Actor task (ACTOR_TASK_ID)
|
|
1082
|
-
*/
|
|
1083
|
-
actorTaskId: string | null;
|
|
1084
|
-
/**
|
|
1085
|
-
* ID of the Actor build used in the run. (ACTOR_BUILD_ID)
|
|
1086
|
-
*/
|
|
1087
|
-
actorBuildId: string | null;
|
|
1088
|
-
/**
|
|
1089
|
-
* ID of the user who started the Actor - note that it might be
|
|
1090
|
-
* different than the owner of the Actor (APIFY_USER_ID)
|
|
1091
|
-
*/
|
|
1092
|
-
userId: string | null;
|
|
1093
|
-
/**
|
|
1094
|
-
* Authentication token representing privileges given to the Actor run,
|
|
1095
|
-
* it can be passed to various Apify APIs (APIFY_TOKEN)
|
|
1096
|
-
*/
|
|
1097
|
-
token: string | null;
|
|
1098
|
-
/**
|
|
1099
|
-
* Date when the Actor was started (ACTOR_STARTED_AT)
|
|
1100
|
-
*/
|
|
1101
|
-
startedAt: Date | null;
|
|
1102
|
-
/**
|
|
1103
|
-
* Date when the Actor will time out (ACTOR_TIMEOUT_AT)
|
|
1104
|
-
*/
|
|
1105
|
-
timeoutAt: Date | null;
|
|
1106
|
-
/**
|
|
1107
|
-
* ID of the key-value store where input and output data of this
|
|
1108
|
-
* Actor is stored (ACTOR_DEFAULT_KEY_VALUE_STORE_ID)
|
|
1109
|
-
*/
|
|
1110
|
-
defaultKeyValueStoreId: string | null;
|
|
1111
|
-
/**
|
|
1112
|
-
* ID of the dataset where input and output data of this
|
|
1113
|
-
* Actor is stored (ACTOR_DEFAULT_DATASET_ID)
|
|
1114
|
-
*/
|
|
1115
|
-
defaultDatasetId: string | null;
|
|
1116
|
-
/**
|
|
1117
|
-
* Amount of memory allocated for the Actor,
|
|
1118
|
-
* in megabytes (ACTOR_MEMORY_MBYTES)
|
|
1119
|
-
*/
|
|
1120
|
-
memoryMbytes: number | null;
|
|
1121
|
-
/**
|
|
1122
|
-
* If set to "1", the web browsers inside the Actor should run in headless
|
|
1123
|
-
* mode because there is no windowing system available. (APIFY_HEADLESS)
|
|
1124
|
-
*/
|
|
1125
|
-
headless: string | null;
|
|
1126
|
-
/**
|
|
1127
|
-
* Is set to "1" if the Actor is running on Apify servers.
|
|
1128
|
-
* (APIFY_IS_AT_HOME)
|
|
1129
|
-
*/
|
|
1130
|
-
isAtHome: string | null;
|
|
1131
|
-
/**
|
|
1132
|
-
* The Apify Proxy password of the user who started the Actor. (APIFY_PROXY_PASSWORD)
|
|
1133
|
-
*/
|
|
1134
|
-
proxyPassword: string | null;
|
|
1135
|
-
proxyHostname: string | null;
|
|
1136
|
-
proxyPort: string | null;
|
|
1137
|
-
/**
|
|
1138
|
-
* You can visit this page to troubleshoot your proxy connection. (APIFY_PROXY_STATUS_URL)
|
|
1139
|
-
*/
|
|
1140
|
-
proxyStatusUrl: string | null;
|
|
1141
|
-
apiBaseUrl: string | null;
|
|
1142
|
-
apiPublicBaseUrl: string | null;
|
|
1143
|
-
chromeExecutablePath: string | null;
|
|
1144
|
-
dedicatedCpus: string | null;
|
|
1145
|
-
disableOutdatedWarning: 1 | null;
|
|
1146
|
-
fact: string | null;
|
|
1147
|
-
inputSecretsPrivateKeyFile: string | null;
|
|
1148
|
-
inputSecretsPrivateKeyPassphrase: string | null;
|
|
1149
|
-
/**
|
|
1150
|
-
* Defines the path to a local directory where KeyValueStore, Dataset, and RequestQueue
|
|
1151
|
-
* store their data. Typically, it is set to ./storage. If omitted, you should define the
|
|
1152
|
-
* APIFY_TOKEN environment variable instead. See more info on combination of this and
|
|
1153
|
-
* APIFY_TOKEN [here](https://docs.apify.com/sdk/js/docs/guides/environment-variables#combinations-of-apify_local_storage_dir-and-apify_token)(CRAWLEE_STORAGE_DIR)
|
|
1154
|
-
*/
|
|
1155
|
-
localStorageDir: string | null;
|
|
1156
|
-
/**
|
|
1157
|
-
* Specifies the minimum log level, which can be one of the following values (in order of severity): DEBUG, INFO, WARNING and ERROR
|
|
1158
|
-
* (APIFY_LOG_LEVEL)
|
|
1159
|
-
*/
|
|
1160
|
-
logLevel: string | null;
|
|
1161
|
-
logFormat: string | null;
|
|
1162
|
-
/**
|
|
1163
|
-
* Origin for the Actor run, i.e. how it was started. See [here](https://docs.apify.com/sdk/python/reference/enum/MetaOrigin)
|
|
1164
|
-
* for more details. (APIFY_META_ORIGIN)
|
|
1165
|
-
*/
|
|
1166
|
-
metaOrigin: string | null;
|
|
1167
|
-
/**
|
|
1168
|
-
* The key of the input record in the Actor’s default key-value store (ACTOR_INPUT_KEY)
|
|
1169
|
-
*/
|
|
1170
|
-
inputKey: string | null;
|
|
1171
|
-
sdkLatestVersion: string | null;
|
|
1172
|
-
systemInfoIntervalMillis: string | null;
|
|
1173
|
-
workflowKey: string | null;
|
|
1174
|
-
actorBuildNumber: string | null;
|
|
1175
|
-
actorEventsWsUrl: string | null;
|
|
1176
|
-
actorMaxPaidDatasetItems: number | null;
|
|
1177
|
-
containerPort: number | null;
|
|
1178
|
-
containerUrl: string | null;
|
|
1179
|
-
defaultRequestQueueId: string | null;
|
|
1180
|
-
}
|
|
1181
|
-
export type UserFunc<T = unknown> = () => Awaitable<T>;
|
|
1182
|
-
export interface CallOptions extends ActorCallOptions {
|
|
1183
|
-
/**
|
|
1184
|
-
* User API token that is used to run the Actor. By default, it is taken from the `APIFY_TOKEN` environment variable.
|
|
1185
|
-
*/
|
|
1186
|
-
token?: string;
|
|
1187
|
-
}
|
|
1188
|
-
export interface CallTaskOptions extends TaskCallOptions {
|
|
1189
|
-
/**
|
|
1190
|
-
* User API token that is used to run the Actor. By default, it is taken from the `APIFY_TOKEN` environment variable.
|
|
1191
|
-
*/
|
|
1192
|
-
token?: string;
|
|
1193
|
-
}
|
|
1194
|
-
export interface AbortOptions extends RunAbortOptions {
|
|
1195
|
-
/**
|
|
1196
|
-
* User API token that is used to run the Actor. By default, it is taken from the `APIFY_TOKEN` environment variable.
|
|
1197
|
-
*/
|
|
1198
|
-
token?: string;
|
|
1199
|
-
/** Exit with given status message */
|
|
1200
|
-
statusMessage?: string;
|
|
1201
|
-
}
|
|
1202
|
-
export interface WebhookOptions {
|
|
1203
|
-
/**
|
|
1204
|
-
* Array of event types, which you can set for Actor run, see
|
|
1205
|
-
* the [Actor run events](https://docs.apify.com/webhooks/events#actor-run) in the Apify doc.
|
|
1206
|
-
*/
|
|
1207
|
-
eventTypes: readonly WebhookEventType[];
|
|
1208
|
-
/**
|
|
1209
|
-
* URL which will be requested using HTTP POST request, when Actor run will reach the set event type.
|
|
1210
|
-
*/
|
|
1211
|
-
requestUrl: string;
|
|
1212
|
-
/**
|
|
1213
|
-
* Payload template is a JSON-like string that describes the structure of the webhook POST request payload.
|
|
1214
|
-
* It uses JSON syntax, extended with a double curly braces syntax for injecting variables `{{variable}}`.
|
|
1215
|
-
* Those variables are resolved at the time of the webhook's dispatch, and a list of available variables with their descriptions
|
|
1216
|
-
* is available in the [Apify webhook documentation](https://docs.apify.com/webhooks).
|
|
1217
|
-
* If `payloadTemplate` is omitted, the default payload template is used
|
|
1218
|
-
* ([view docs](https://docs.apify.com/webhooks/actions#payload-template)).
|
|
1219
|
-
*/
|
|
1220
|
-
payloadTemplate?: string;
|
|
1221
|
-
/**
|
|
1222
|
-
* Idempotency key enables you to ensure that a webhook will not be added multiple times in case of
|
|
1223
|
-
* an Actor restart or other situation that would cause the `addWebhook()` function to be called again.
|
|
1224
|
-
* We suggest using the Actor run ID as the idempotency key. You can get the run ID by calling
|
|
1225
|
-
* {@apilink Actor.getEnv} function.
|
|
1226
|
-
*/
|
|
1227
|
-
idempotencyKey?: string;
|
|
1228
|
-
}
|
|
1229
|
-
export interface MetamorphOptions {
|
|
1230
|
-
/**
|
|
1231
|
-
* Content type for the `input`. If not specified,
|
|
1232
|
-
* `input` is expected to be an object that will be stringified to JSON and content type set to
|
|
1233
|
-
* `application/json; charset=utf-8`. If `options.contentType` is specified, then `input` must be a
|
|
1234
|
-
* `String` or `Buffer`.
|
|
1235
|
-
*/
|
|
1236
|
-
contentType?: string;
|
|
1237
|
-
/**
|
|
1238
|
-
* Tag or number of the target Actor build to metamorph into (e.g. `beta` or `1.2.345`).
|
|
1239
|
-
* If not provided, the run uses build tag or number from the default Actor run configuration (typically `latest`).
|
|
1240
|
-
*/
|
|
1241
|
-
build?: string;
|
|
1242
|
-
/** @internal */
|
|
1243
|
-
customAfterSleepMillis?: number;
|
|
1244
|
-
}
|
|
1245
|
-
export interface RebootOptions {
|
|
1246
|
-
/** @internal */
|
|
1247
|
-
customAfterSleepMillis?: number;
|
|
1248
|
-
}
|
|
1249
|
-
export interface ExitOptions {
|
|
1250
|
-
/** Exit with given status message */
|
|
1251
|
-
statusMessage?: string;
|
|
1252
|
-
/**
|
|
1253
|
-
* Amount of time, in seconds, to wait for all event handlers to finish before exiting the process.
|
|
1254
|
-
* @default 30
|
|
1255
|
-
*/
|
|
1256
|
-
timeoutSecs?: number;
|
|
1257
|
-
/** Exit code, defaults to 0 */
|
|
1258
|
-
exitCode?: number;
|
|
1259
|
-
/** Call `process.exit()`? Defaults to true */
|
|
1260
|
-
exit?: boolean;
|
|
1261
|
-
}
|
|
1262
|
-
export interface OpenStorageOptions {
|
|
1263
|
-
/**
|
|
1264
|
-
* If set to `true` then the cloud storage is used even if the `CRAWLEE_STORAGE_DIR`
|
|
1265
|
-
* environment variable is set. This way it is possible to combine local and cloud storage.
|
|
1266
|
-
* @default false
|
|
1267
|
-
*/
|
|
1268
|
-
forceCloud?: boolean;
|
|
1269
|
-
}
|
|
1270
|
-
export { ClientActorRun as ActorRun };
|
|
1271
|
-
/**
|
|
1272
|
-
* Exit codes for the Actor process.
|
|
1273
|
-
* The error codes must be in the range 1-128, to avoid collision with signal exits
|
|
1274
|
-
* and to ensure Docker will handle them correctly!
|
|
1275
|
-
* @internal should be removed if we decide to remove `Actor.main()`
|
|
1276
|
-
*/
|
|
1277
|
-
export declare const EXIT_CODES: {
|
|
1278
|
-
SUCCESS: number;
|
|
1279
|
-
ERROR_USER_FUNCTION_THREW: number;
|
|
1280
|
-
ERROR_UNKNOWN: number;
|
|
1281
|
-
};
|
|
1282
1282
|
//# sourceMappingURL=actor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACR,oBAAoB,EACpB,YAAY,EACZ,aAAa,EAEb,aAAa,EACb,eAAe,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEH,OAAO,EAGP,YAAY,EAEf,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACR,SAAS,EAET,UAAU,EACV,uBAAuB,EACvB,aAAa,EAChB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EACR,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,OAAO,EACP,gBAAgB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAYvE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EA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