apify 2.3.1-beta.4 → 3.0.0-alpha.2

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.
Files changed (211) hide show
  1. package/README.md +6 -5
  2. package/package.json +69 -128
  3. package/build/actor.d.ts +0 -113
  4. package/build/actor.d.ts.map +0 -1
  5. package/build/actor.js +0 -582
  6. package/build/actor.js.map +0 -1
  7. package/build/apify.d.ts +0 -752
  8. package/build/apify.d.ts.map +0 -1
  9. package/build/apify.js +0 -877
  10. package/build/apify.js.map +0 -1
  11. package/build/autoscaling/autoscaled_pool.d.ts +0 -384
  12. package/build/autoscaling/autoscaled_pool.d.ts.map +0 -1
  13. package/build/autoscaling/autoscaled_pool.js +0 -557
  14. package/build/autoscaling/autoscaled_pool.js.map +0 -1
  15. package/build/autoscaling/snapshotter.d.ts +0 -278
  16. package/build/autoscaling/snapshotter.d.ts.map +0 -1
  17. package/build/autoscaling/snapshotter.js +0 -447
  18. package/build/autoscaling/snapshotter.js.map +0 -1
  19. package/build/autoscaling/system_status.d.ts +0 -224
  20. package/build/autoscaling/system_status.d.ts.map +0 -1
  21. package/build/autoscaling/system_status.js +0 -228
  22. package/build/autoscaling/system_status.js.map +0 -1
  23. package/build/browser_launchers/browser_launcher.d.ts +0 -154
  24. package/build/browser_launchers/browser_launcher.d.ts.map +0 -1
  25. package/build/browser_launchers/browser_launcher.js +0 -160
  26. package/build/browser_launchers/browser_launcher.js.map +0 -1
  27. package/build/browser_launchers/browser_plugin.d.ts +0 -23
  28. package/build/browser_launchers/browser_plugin.d.ts.map +0 -1
  29. package/build/browser_launchers/browser_plugin.js +0 -25
  30. package/build/browser_launchers/browser_plugin.js.map +0 -1
  31. package/build/browser_launchers/playwright_launcher.d.ts +0 -131
  32. package/build/browser_launchers/playwright_launcher.d.ts.map +0 -1
  33. package/build/browser_launchers/playwright_launcher.js +0 -150
  34. package/build/browser_launchers/playwright_launcher.js.map +0 -1
  35. package/build/browser_launchers/puppeteer_launcher.d.ts +0 -153
  36. package/build/browser_launchers/puppeteer_launcher.d.ts.map +0 -1
  37. package/build/browser_launchers/puppeteer_launcher.js +0 -197
  38. package/build/browser_launchers/puppeteer_launcher.js.map +0 -1
  39. package/build/cache_container.d.ts +0 -31
  40. package/build/cache_container.d.ts.map +0 -1
  41. package/build/cache_container.js +0 -48
  42. package/build/cache_container.js.map +0 -1
  43. package/build/configuration.d.ts +0 -226
  44. package/build/configuration.d.ts.map +0 -1
  45. package/build/configuration.js +0 -325
  46. package/build/configuration.js.map +0 -1
  47. package/build/constants.d.ts +0 -37
  48. package/build/constants.d.ts.map +0 -1
  49. package/build/constants.js +0 -41
  50. package/build/constants.js.map +0 -1
  51. package/build/crawlers/basic_crawler.d.ts +0 -443
  52. package/build/crawlers/basic_crawler.d.ts.map +0 -1
  53. package/build/crawlers/basic_crawler.js +0 -664
  54. package/build/crawlers/basic_crawler.js.map +0 -1
  55. package/build/crawlers/browser_crawler.d.ts +0 -512
  56. package/build/crawlers/browser_crawler.d.ts.map +0 -1
  57. package/build/crawlers/browser_crawler.js +0 -540
  58. package/build/crawlers/browser_crawler.js.map +0 -1
  59. package/build/crawlers/cheerio_crawler.d.ts +0 -931
  60. package/build/crawlers/cheerio_crawler.d.ts.map +0 -1
  61. package/build/crawlers/cheerio_crawler.js +0 -913
  62. package/build/crawlers/cheerio_crawler.js.map +0 -1
  63. package/build/crawlers/crawler_extension.d.ts +0 -10
  64. package/build/crawlers/crawler_extension.d.ts.map +0 -1
  65. package/build/crawlers/crawler_extension.js +0 -19
  66. package/build/crawlers/crawler_extension.js.map +0 -1
  67. package/build/crawlers/crawler_utils.d.ts +0 -34
  68. package/build/crawlers/crawler_utils.d.ts.map +0 -1
  69. package/build/crawlers/crawler_utils.js +0 -87
  70. package/build/crawlers/crawler_utils.js.map +0 -1
  71. package/build/crawlers/playwright_crawler.d.ts +0 -448
  72. package/build/crawlers/playwright_crawler.d.ts.map +0 -1
  73. package/build/crawlers/playwright_crawler.js +0 -299
  74. package/build/crawlers/playwright_crawler.js.map +0 -1
  75. package/build/crawlers/puppeteer_crawler.d.ts +0 -425
  76. package/build/crawlers/puppeteer_crawler.d.ts.map +0 -1
  77. package/build/crawlers/puppeteer_crawler.js +0 -299
  78. package/build/crawlers/puppeteer_crawler.js.map +0 -1
  79. package/build/crawlers/statistics.d.ts +0 -185
  80. package/build/crawlers/statistics.d.ts.map +0 -1
  81. package/build/crawlers/statistics.js +0 -331
  82. package/build/crawlers/statistics.js.map +0 -1
  83. package/build/enqueue_links/click_elements.d.ts +0 -179
  84. package/build/enqueue_links/click_elements.d.ts.map +0 -1
  85. package/build/enqueue_links/click_elements.js +0 -434
  86. package/build/enqueue_links/click_elements.js.map +0 -1
  87. package/build/enqueue_links/enqueue_links.d.ts +0 -117
  88. package/build/enqueue_links/enqueue_links.d.ts.map +0 -1
  89. package/build/enqueue_links/enqueue_links.js +0 -163
  90. package/build/enqueue_links/enqueue_links.js.map +0 -1
  91. package/build/enqueue_links/shared.d.ts +0 -42
  92. package/build/enqueue_links/shared.d.ts.map +0 -1
  93. package/build/enqueue_links/shared.js +0 -121
  94. package/build/enqueue_links/shared.js.map +0 -1
  95. package/build/errors.d.ts +0 -29
  96. package/build/errors.d.ts.map +0 -1
  97. package/build/errors.js +0 -38
  98. package/build/errors.js.map +0 -1
  99. package/build/events.d.ts +0 -11
  100. package/build/events.d.ts.map +0 -1
  101. package/build/events.js +0 -147
  102. package/build/events.js.map +0 -1
  103. package/build/index.d.ts +0 -4
  104. package/build/index.d.ts.map +0 -1
  105. package/build/index.js +0 -7
  106. package/build/index.js.map +0 -1
  107. package/build/main.d.ts +0 -179
  108. package/build/main.d.ts.map +0 -1
  109. package/build/main.js +0 -81
  110. package/build/main.js.map +0 -1
  111. package/build/playwright_utils.d.ts +0 -9
  112. package/build/playwright_utils.d.ts.map +0 -1
  113. package/build/playwright_utils.js +0 -90
  114. package/build/playwright_utils.js.map +0 -1
  115. package/build/proxy_configuration.d.ts +0 -411
  116. package/build/proxy_configuration.d.ts.map +0 -1
  117. package/build/proxy_configuration.js +0 -517
  118. package/build/proxy_configuration.js.map +0 -1
  119. package/build/pseudo_url.d.ts +0 -86
  120. package/build/pseudo_url.d.ts.map +0 -1
  121. package/build/pseudo_url.js +0 -153
  122. package/build/pseudo_url.js.map +0 -1
  123. package/build/puppeteer_request_interception.d.ts +0 -8
  124. package/build/puppeteer_request_interception.d.ts.map +0 -1
  125. package/build/puppeteer_request_interception.js +0 -235
  126. package/build/puppeteer_request_interception.js.map +0 -1
  127. package/build/puppeteer_utils.d.ts +0 -250
  128. package/build/puppeteer_utils.d.ts.map +0 -1
  129. package/build/puppeteer_utils.js +0 -551
  130. package/build/puppeteer_utils.js.map +0 -1
  131. package/build/request.d.ts +0 -180
  132. package/build/request.d.ts.map +0 -1
  133. package/build/request.js +0 -261
  134. package/build/request.js.map +0 -1
  135. package/build/request_list.d.ts +0 -581
  136. package/build/request_list.d.ts.map +0 -1
  137. package/build/request_list.js +0 -826
  138. package/build/request_list.js.map +0 -1
  139. package/build/serialization.d.ts +0 -5
  140. package/build/serialization.d.ts.map +0 -1
  141. package/build/serialization.js +0 -139
  142. package/build/serialization.js.map +0 -1
  143. package/build/session_pool/errors.d.ts +0 -11
  144. package/build/session_pool/errors.d.ts.map +0 -1
  145. package/build/session_pool/errors.js +0 -18
  146. package/build/session_pool/errors.js.map +0 -1
  147. package/build/session_pool/events.d.ts +0 -5
  148. package/build/session_pool/events.d.ts.map +0 -1
  149. package/build/session_pool/events.js +0 -6
  150. package/build/session_pool/events.js.map +0 -1
  151. package/build/session_pool/session.d.ts +0 -286
  152. package/build/session_pool/session.d.ts.map +0 -1
  153. package/build/session_pool/session.js +0 -355
  154. package/build/session_pool/session.js.map +0 -1
  155. package/build/session_pool/session_pool.d.ts +0 -280
  156. package/build/session_pool/session_pool.d.ts.map +0 -1
  157. package/build/session_pool/session_pool.js +0 -393
  158. package/build/session_pool/session_pool.js.map +0 -1
  159. package/build/session_pool/session_utils.d.ts +0 -4
  160. package/build/session_pool/session_utils.d.ts.map +0 -1
  161. package/build/session_pool/session_utils.js +0 -24
  162. package/build/session_pool/session_utils.js.map +0 -1
  163. package/build/stealth/hiding_tricks.d.ts +0 -22
  164. package/build/stealth/hiding_tricks.d.ts.map +0 -1
  165. package/build/stealth/hiding_tricks.js +0 -308
  166. package/build/stealth/hiding_tricks.js.map +0 -1
  167. package/build/stealth/stealth.d.ts +0 -56
  168. package/build/stealth/stealth.d.ts.map +0 -1
  169. package/build/stealth/stealth.js +0 -125
  170. package/build/stealth/stealth.js.map +0 -1
  171. package/build/storages/dataset.d.ts +0 -288
  172. package/build/storages/dataset.d.ts.map +0 -1
  173. package/build/storages/dataset.js +0 -480
  174. package/build/storages/dataset.js.map +0 -1
  175. package/build/storages/key_value_store.d.ts +0 -243
  176. package/build/storages/key_value_store.d.ts.map +0 -1
  177. package/build/storages/key_value_store.js +0 -462
  178. package/build/storages/key_value_store.js.map +0 -1
  179. package/build/storages/request_queue.d.ts +0 -318
  180. package/build/storages/request_queue.d.ts.map +0 -1
  181. package/build/storages/request_queue.js +0 -636
  182. package/build/storages/request_queue.js.map +0 -1
  183. package/build/storages/storage_manager.d.ts +0 -87
  184. package/build/storages/storage_manager.d.ts.map +0 -1
  185. package/build/storages/storage_manager.js +0 -150
  186. package/build/storages/storage_manager.js.map +0 -1
  187. package/build/tsconfig.tsbuildinfo +0 -1
  188. package/build/typedefs.d.ts +0 -146
  189. package/build/typedefs.d.ts.map +0 -1
  190. package/build/typedefs.js +0 -88
  191. package/build/typedefs.js.map +0 -1
  192. package/build/utils.d.ts +0 -175
  193. package/build/utils.d.ts.map +0 -1
  194. package/build/utils.js +0 -731
  195. package/build/utils.js.map +0 -1
  196. package/build/utils_log.d.ts +0 -41
  197. package/build/utils_log.d.ts.map +0 -1
  198. package/build/utils_log.js +0 -192
  199. package/build/utils_log.js.map +0 -1
  200. package/build/utils_request.d.ts +0 -77
  201. package/build/utils_request.d.ts.map +0 -1
  202. package/build/utils_request.js +0 -385
  203. package/build/utils_request.js.map +0 -1
  204. package/build/utils_social.d.ts +0 -210
  205. package/build/utils_social.d.ts.map +0 -1
  206. package/build/utils_social.js +0 -787
  207. package/build/utils_social.js.map +0 -1
  208. package/build/validators.d.ts +0 -23
  209. package/build/validators.d.ts.map +0 -1
  210. package/build/validators.js +0 -29
  211. package/build/validators.js.map +0 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Apify SDK: The scalable web crawling and scraping library for JavaScript
1
+ # Crawlee: The scalable web crawling and scraping library for JavaScript
2
2
 
3
3
  <!-- Mirror this part to src/index.js -->
4
4
 
@@ -24,10 +24,10 @@ Thanks to tools like [Playwright](https://github.com/microsoft/playwright), [Pup
24
24
  [Cheerio](https://www.npmjs.com/package/cheerio), it is easy to write Node.js code to extract data from web pages. But
25
25
  eventually things will get complicated. For example, when you try to:
26
26
 
27
- - Perform a deep crawl of an entire website using a persistent queue of URLs.
28
- - Run your scraping code on a list of 100k URLs in a CSV file, without losing any data when your code crashes.
29
- - Rotate proxies to hide your browser origin and keep user-like sessions.
30
- - Disable browser fingerprinting protections used by websites.
27
+ - Perform a deep crawl of an entire website using a persistent queue of URLs.
28
+ - Run your scraping code on a list of 100k URLs in a CSV file, without losing any data when your code crashes.
29
+ - Rotate proxies to hide your browser origin and keep user-like sessions.
30
+ - Disable browser fingerprinting protections used by websites.
31
31
 
32
32
  Python has [Scrapy](https://scrapy.org/) for these tasks, but there was no such library for **JavaScript, the language of
33
33
  the web**. The use of JavaScript is natural, since the same language is used to write the scripts as well as the data extraction code running in a
@@ -92,6 +92,7 @@ If you want to learn more, proceed to the [Getting Started](https://sdk.apify.co
92
92
  tutorial that will take you step by step through creating your first scraper.
93
93
 
94
94
  ### Local stand-alone usage
95
+
95
96
  Apify SDK requires [Node.js](https://nodejs.org/en/) 15.10 or later.
96
97
  Add Apify SDK to any Node.js project by running:
97
98
 
package/package.json CHANGED
@@ -1,132 +1,73 @@
1
1
  {
2
- "name": "apify",
3
- "version": "2.3.1-beta.4",
4
- "description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
5
- "engines": {
6
- "node": ">=15.10.0"
7
- },
8
- "main": "build/index.js",
9
- "types": "build/index.d.ts",
10
- "keywords": [
11
- "apify",
12
- "headless",
13
- "chrome",
14
- "puppeteer",
15
- "crawler",
16
- "scraper"
17
- ],
18
- "author": {
19
- "name": "Apify",
20
- "email": "support@apify.com",
21
- "url": "https://apify.com"
22
- },
23
- "contributors": [
24
- "Jan Curn <jan@apify.com>",
25
- "Marek Trunkat <marek@apify.com>",
26
- "Ondra Urban <ondra@apify.com>"
27
- ],
28
- "license": "Apache-2.0",
29
- "repository": {
30
- "type": "git",
31
- "url": "git+https://github.com/apify/apify-js"
32
- },
33
- "bugs": {
34
- "url": "https://github.com/apify/apify-js/issues"
35
- },
36
- "homepage": "https://sdk.apify.com/",
37
- "files": [
38
- "build"
39
- ],
40
- "scripts": {
41
- "build": "npm run clean && tsc -p tsconfig.json && node ./tools/typescript_fixes.js",
42
- "build-docs": "npm run build && node ./website/tools/build_docs.js",
43
- "build-readme": "node ./tools/build_readme.js",
44
- "test": "npm run build && jest",
45
- "prepare": "npm run build",
46
- "prepublishOnly": "(test $CI || (echo \"Publishing is reserved to CI!\"; exit 1))",
47
- "clean": "rimraf ./build",
48
- "lint": "eslint ./src ./test",
49
- "lint:fix": "eslint ./src ./test --ext .js,.jsx --fix"
50
- },
51
- "dependencies": {
52
- "@apify/consts": "^1.3.0",
53
- "@apify/datastructures": "^1.0.1",
54
- "@apify/log": "^1.1.1",
55
- "@apify/ps-tree": "^1.1.4",
56
- "@apify/storage-local": "^2.0.2",
57
- "@apify/timeout": "^0.2.1",
58
- "@apify/utilities": "^1.1.2",
59
- "apify-client": "^2.2.0",
60
- "browser-pool": "^3.1.0",
61
- "cheerio": "1.0.0-rc.10",
62
- "content-type": "^1.0.4",
63
- "got-scraping": "^3.2.7",
64
- "htmlparser2": "^7.0.0",
65
- "iconv-lite": "^0.6.3",
66
- "jquery": "^3.6.0",
67
- "mime-types": "^2.1.31",
68
- "ow": "^0.28.0",
69
- "rimraf": "^3.0.2",
70
- "semver": "^7.3.5",
71
- "stream-json": "^1.7.2",
72
- "tough-cookie": "^4.0.0",
73
- "underscore": "^1.13.0",
74
- "ws": "^7.5.3"
75
- },
76
- "peerDependencies": {
77
- "playwright": "^1.11.0",
78
- "puppeteer": ">= 9.x <= 13.x"
79
- },
80
- "peerDependenciesMeta": {
81
- "playwright": {
82
- "optional": true
2
+ "name": "apify",
3
+ "version": "3.0.0-alpha.2",
4
+ "description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
5
+ "engines": {
6
+ "node": ">=16.0.0"
83
7
  },
84
- "puppeteer": {
85
- "optional": true
8
+ "types": "index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./index.mjs",
12
+ "require": "./index.js"
13
+ }
14
+ },
15
+ "keywords": [
16
+ "apify",
17
+ "headless",
18
+ "chrome",
19
+ "puppeteer",
20
+ "crawler",
21
+ "scraper"
22
+ ],
23
+ "author": {
24
+ "name": "Apify",
25
+ "email": "support@apify.com",
26
+ "url": "https://apify.com"
27
+ },
28
+ "contributors": [
29
+ "Jan Curn <jan@apify.com>",
30
+ "Marek Trunkat <marek@apify.com>",
31
+ "Ondra Urban <ondra@apify.com>"
32
+ ],
33
+ "license": "Apache-2.0",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/apify/apify-js"
37
+ },
38
+ "bugs": {
39
+ "url": "https://github.com/apify/apify-js/issues"
40
+ },
41
+ "homepage": "https://sdk.apify.com/",
42
+ "files": [
43
+ "dist"
44
+ ],
45
+ "scripts": {
46
+ "build": "npm run clean && npm run compile && npm run copy && npm run fixApifyExport",
47
+ "clean": "rimraf ./dist",
48
+ "compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./index.js ./index.mjs",
49
+ "copy": "ts-node -T ../../scripts/copy.ts",
50
+ "fixApifyExport": "ts-node -T ../../scripts/temp_fix_apify_exports.ts"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "dependencies": {
56
+ "@crawlee/core": "^3.0.0-alpha.2",
57
+ "@crawlee/utils": "^3.0.0-alpha.2",
58
+ "semver": "^7.3.5",
59
+ "apify-client": "^2.2.1-beta.5"
60
+ },
61
+ "peerDependencies": {
62
+ "playwright": "^1.11.0",
63
+ "puppeteer": ">= 9.x <= 13.x"
64
+ },
65
+ "peerDependenciesMeta": {
66
+ "playwright": {
67
+ "optional": true
68
+ },
69
+ "puppeteer": {
70
+ "optional": true
71
+ }
86
72
  }
87
- },
88
- "devDependencies": {
89
- "@apify/eslint-config": "^0.3.0",
90
- "@apify/tsconfig": "^0.1.0",
91
- "@babel/cli": "^7.14.8",
92
- "@babel/core": "^7.14.8",
93
- "@babel/eslint-parser": "^7.14.7",
94
- "@babel/plugin-syntax-class-properties": "^7.12.13",
95
- "@babel/preset-env": "^7.14.8",
96
- "@babel/register": "^7.14.5",
97
- "@types/content-type": "^1.1.5",
98
- "@types/domhandler": "^2.4.2",
99
- "@types/fs-extra": "^9.0.12",
100
- "@types/htmlparser2": "^3.10.3",
101
- "@types/jest": "^27.0.1",
102
- "@types/node": "^16.0.0",
103
- "@types/ps-tree": "^1.1.1",
104
- "@types/request-promise-native": "^1.0.18",
105
- "@types/rimraf": "^3.0.2",
106
- "@types/semver": "^7.3.7",
107
- "@types/sinon": "^10.0.0",
108
- "@types/tough-cookie": "^4.0.1",
109
- "@types/underscore": "^1.11.3",
110
- "@types/ws": "^7.4.7",
111
- "basic-auth-parser": "^0.0.2",
112
- "body-parser": "^1.19.0",
113
- "eslint": "^8.2.0",
114
- "express": "^4.17.1",
115
- "fpcollect": "^1.0.4",
116
- "fpscanner": "^0.1.5",
117
- "fs-extra": "^10.0.0",
118
- "jest": "^27.1.1",
119
- "jest-circus": "^27.1.1",
120
- "playwright": "1.21.0",
121
- "portastic": "^1.0.1",
122
- "proxy": "^1.0.2",
123
- "proxy-chain": "^2.0.1-beta.0",
124
- "puppeteer": "13.5.2",
125
- "sinon": "^12.0.0",
126
- "sinon-stub-promise": "^4.0.0",
127
- "ts-jest": "^27.0.5",
128
- "typescript": "4.5.5",
129
- "ua-parser-js": "^1.0.0",
130
- "why-is-node-running": "^2.2.0"
131
- }
132
73
  }
package/build/actor.d.ts DELETED
@@ -1,113 +0,0 @@
1
- export function getEnv(): ApifyEnv;
2
- export function main(userFunc: UserFunc): void;
3
- export function call(actId: string, input?: {
4
- [x: string]: any;
5
- } | undefined, options?: {
6
- contentType?: string | undefined;
7
- token?: string | undefined;
8
- memoryMbytes?: number | undefined;
9
- timeoutSecs?: number | undefined;
10
- build?: string | undefined;
11
- waitSecs?: number | undefined;
12
- fetchOutput?: boolean | undefined;
13
- disableBodyParser?: boolean | undefined;
14
- webhooks?: AdhocWebhook[] | undefined;
15
- } | undefined): Promise<ActorRun>;
16
- export function callTask(taskId: string, input?: {
17
- [x: string]: any;
18
- } | undefined, options?: {
19
- token?: string | undefined;
20
- memoryMbytes?: number | undefined;
21
- timeoutSecs?: number | undefined;
22
- build?: string | undefined;
23
- waitSecs?: number | undefined;
24
- webhooks?: AdhocWebhook[] | undefined;
25
- } | undefined): Promise<ActorRun>;
26
- export function metamorph(targetActorId: string, input?: {
27
- [x: string]: any;
28
- } | undefined, options?: {
29
- contentType?: string | undefined;
30
- build?: string | undefined;
31
- } | undefined): Promise<void>;
32
- export function addWebhook(options: {
33
- eventTypes: EventTypes;
34
- requestUrl: string;
35
- payloadTemplate?: string | undefined;
36
- idempotencyKey?: string | undefined;
37
- }): Promise<WebhookRun | undefined>;
38
- /**
39
- * Parsed representation of the `APIFY_XXX` environmental variables.
40
- * This object is returned by the {@link ApifygetEnv } function.
41
- */
42
- export type ApifyEnv = {
43
- /**
44
- * ID of the actor (APIFY_ACTOR_ID)
45
- */
46
- actorId: string | null;
47
- /**
48
- * ID of the actor run (APIFY_ACTOR_RUN_ID)
49
- */
50
- actorRunId: string | null;
51
- /**
52
- * ID of the actor task (APIFY_ACTOR_TASK_ID)
53
- */
54
- actorTaskId: string | null;
55
- /**
56
- * ID of the user who started the actor - note that it might be
57
- * different than the owner ofthe actor (APIFY_USER_ID)
58
- */
59
- userId: string | null;
60
- /**
61
- * Authentication token representing privileges given to the actor run,
62
- * it can be passed to various Apify APIs (APIFY_TOKEN)
63
- */
64
- token: string | null;
65
- /**
66
- * Date when the actor was started (APIFY_STARTED_AT)
67
- */
68
- startedAt: Date | null;
69
- /**
70
- * Date when the actor will time out (APIFY_TIMEOUT_AT)
71
- */
72
- timeoutAt: Date | null;
73
- /**
74
- * ID of the key-value store where input and output data of this
75
- * actor is stored (APIFY_DEFAULT_KEY_VALUE_STORE_ID)
76
- */
77
- defaultKeyValueStoreId: string | null;
78
- /**
79
- * ID of the dataset where input and output data of this
80
- * actor is stored (APIFY_DEFAULT_DATASET_ID)
81
- */
82
- defaultDatasetId: string | null;
83
- /**
84
- * Amount of memory allocated for the actor,
85
- * in megabytes (APIFY_MEMORY_MBYTES)
86
- */
87
- memoryMbytes: number | null;
88
- };
89
- export type EventTypes = Array<('ACTOR.RUN.SUCCEEDED' | 'ACTOR.RUN.ABORTED' | 'ACTOR.RUN.CREATED' | 'ACTOR.RUN.FAILED' | 'ACTOR.RUN.TIMED_OUT')>;
90
- export type UserFunc = () => Promise<void>;
91
- export type AdhocWebhook = {
92
- eventTypes: EventTypes;
93
- requestUrl: string;
94
- idempotencyKey?: string | undefined;
95
- payloadTemplate?: string | undefined;
96
- };
97
- export type WebhookRun = {
98
- id: string;
99
- createdAt: string;
100
- modifiedAt: string;
101
- userId: string;
102
- isAdHoc: boolean;
103
- eventTypes: EventTypes;
104
- condition: any;
105
- ignoreSslErrors: boolean;
106
- doNotRetry: boolean;
107
- requestUrl: string;
108
- payloadTemplate: string;
109
- lastDispatch: any;
110
- stats: any;
111
- };
112
- import { ActorRun } from "./typedefs";
113
- //# sourceMappingURL=actor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../src/actor.js"],"names":[],"mappings":"AA0EO,0BAFM,QAAQ,CAqBpB;AA0EM,+BAPI,QAAQ,QA8DlB;AAkFM,4BA5CI,MAAM;;;;;;;;;;;;gBAqCJ,QAAQ,QAAQ,CAAC,CAyE7B;AAgEM,iCAlCI,MAAM;;;;;;;;;gBA2BJ,QAAQ,QAAQ,CAAC,CAqE7B;AAkCM,yCAtBI,MAAM;;;;;gBAgBJ,QAAQ,IAAI,CAAC,CAmCzB;AAmDM;IAxBwB,UAAU;IAGb,UAAU,EAA3B,MAAM;IAEW,eAAe;IAOf,cAAc;IAK9B,QAAQ,UAAU,GAAC,SAAS,CAAC,CAqCxC;;;;;;;;;aAvlBa,MAAM,GAAC,IAAI;;;;gBACX,MAAM,GAAC,IAAI;;;;iBACX,MAAM,GAAC,IAAI;;;;;YACX,MAAM,GAAC,IAAI;;;;;WAEX,MAAM,GAAC,IAAI;;;;eAEX,IAAI,GAAC,IAAI;;;;eACT,IAAI,GAAC,IAAI;;;;;4BACT,MAAM,GAAC,IAAI;;;;;sBAEX,MAAM,GAAC,IAAI;;;;;kBAEX,MAAM,GAAC,IAAI;;yBAKZ,MAAM,CAAC,qBAAqB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,kBAAkB,GAAG,qBAAqB,CAAC,CAAC;6BAsCxH,QAAQ,IAAI,CAAC;;;gBAkIX,MAAM;;;;;QAgVN,MAAM;eACN,MAAM;gBACN,MAAM;YACN,MAAM;aACN,OAAO;;;qBAGP,OAAO;gBACP,OAAO;gBACP,MAAM;qBACN,MAAM"}