apify-client 3.0.0-beta.0 → 3.0.0-beta.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.
- package/README.md +2 -2
- package/dist/apify_api_error.js +5 -9
- package/dist/apify_client.d.ts +27 -27
- package/dist/apify_client.js +86 -91
- package/dist/argument_validation_error.js +1 -5
- package/dist/base/api_client.d.ts +3 -3
- package/dist/base/api_client.js +6 -10
- package/dist/base/resource_client.d.ts +1 -1
- package/dist/base/resource_client.js +14 -18
- package/dist/base/resource_collection_client.d.ts +2 -2
- package/dist/base/resource_collection_client.js +6 -10
- package/dist/body_parser.js +6 -11
- package/dist/bundle.js +8 -8
- package/dist/bundle.js.map +1 -1
- package/dist/generated/api.d.ts +20522 -0
- package/dist/generated/api.js +5 -0
- package/dist/http_client.d.ts +2 -2
- package/dist/http_client.js +23 -28
- package/dist/index.d.ts +32 -32
- package/dist/index.js +31 -36
- package/dist/interceptors.d.ts +1 -1
- package/dist/interceptors.js +14 -19
- package/dist/models.d.ts +1072 -0
- package/dist/models.js +86 -0
- package/dist/resource_clients/actor.d.ts +13 -459
- package/dist/resource_clients/actor.js +67 -71
- package/dist/resource_clients/actor_collection.d.ts +7 -12
- package/dist/resource_clients/actor_collection.js +14 -18
- package/dist/resource_clients/actor_env_var.d.ts +3 -3
- package/dist/resource_clients/actor_env_var.js +4 -8
- package/dist/resource_clients/actor_env_var_collection.d.ts +4 -4
- package/dist/resource_clients/actor_env_var_collection.js +5 -9
- package/dist/resource_clients/actor_version.d.ts +7 -44
- package/dist/resource_clients/actor_version.js +12 -22
- package/dist/resource_clients/actor_version_collection.d.ts +4 -4
- package/dist/resource_clients/actor_version_collection.js +5 -9
- package/dist/resource_clients/build.d.ts +5 -80
- package/dist/resource_clients/build.js +11 -15
- package/dist/resource_clients/build_collection.d.ts +5 -5
- package/dist/resource_clients/build_collection.js +8 -12
- package/dist/resource_clients/dataset.d.ts +5 -71
- package/dist/resource_clients/dataset.js +72 -76
- package/dist/resource_clients/dataset_collection.d.ts +4 -4
- package/dist/resource_clients/dataset_collection.js +15 -19
- package/dist/resource_clients/key_value_store.d.ts +4 -73
- package/dist/resource_clients/key_value_store.js +60 -63
- package/dist/resource_clients/key_value_store_collection.d.ts +4 -4
- package/dist/resource_clients/key_value_store_collection.js +15 -19
- package/dist/resource_clients/log.d.ts +2 -2
- package/dist/resource_clients/log.js +15 -22
- package/dist/resource_clients/request_queue.d.ts +17 -176
- package/dist/resource_clients/request_queue.js +93 -98
- package/dist/resource_clients/request_queue_collection.d.ts +4 -4
- package/dist/resource_clients/request_queue_collection.js +13 -17
- package/dist/resource_clients/run.d.ts +8 -8
- package/dist/resource_clients/run.js +46 -50
- package/dist/resource_clients/run_collection.d.ts +4 -4
- package/dist/resource_clients/run_collection.js +13 -17
- package/dist/resource_clients/schedule.d.ts +6 -84
- package/dist/resource_clients/schedule.js +7 -18
- package/dist/resource_clients/schedule_collection.d.ts +4 -4
- package/dist/resource_clients/schedule_collection.js +10 -14
- package/dist/resource_clients/store_collection.d.ts +5 -33
- package/dist/resource_clients/store_collection.js +13 -17
- package/dist/resource_clients/task.d.ts +9 -79
- package/dist/resource_clients/task.js +44 -48
- package/dist/resource_clients/task_collection.d.ts +6 -5
- package/dist/resource_clients/task_collection.js +9 -13
- package/dist/resource_clients/user.d.ts +5 -181
- package/dist/resource_clients/user.js +8 -21
- package/dist/resource_clients/webhook.d.ts +6 -65
- package/dist/resource_clients/webhook.js +8 -12
- package/dist/resource_clients/webhook_collection.d.ts +4 -4
- package/dist/resource_clients/webhook_collection.js +10 -14
- package/dist/resource_clients/webhook_dispatch.d.ts +5 -38
- package/dist/resource_clients/webhook_dispatch.js +3 -12
- package/dist/resource_clients/webhook_dispatch_collection.d.ts +4 -4
- package/dist/resource_clients/webhook_dispatch_collection.js +8 -12
- package/dist/statistics.js +5 -9
- package/dist/timezones.js +1 -2
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +41 -56
- package/package.json +16 -9
- package/dist/index.mjs +0 -42
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-client",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.2",
|
|
4
4
|
"description": "Apify API client for JavaScript",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.0.0"
|
|
7
7
|
},
|
|
8
|
+
"type": "module",
|
|
8
9
|
"main": "dist/index.js",
|
|
9
|
-
"module": "dist/index.mjs",
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
11
11
|
"browser": "dist/bundle.js",
|
|
12
12
|
"unpkg": "dist/bundle.js",
|
|
@@ -14,10 +14,9 @@
|
|
|
14
14
|
"./package.json": "./package.json",
|
|
15
15
|
"./browser": "./dist/bundle.js",
|
|
16
16
|
".": {
|
|
17
|
-
"import": "./dist/index.mjs",
|
|
18
|
-
"require": "./dist/index.js",
|
|
19
17
|
"types": "./dist/index.d.ts",
|
|
20
|
-
"browser": "./dist/bundle.js"
|
|
18
|
+
"browser": "./dist/bundle.js",
|
|
19
|
+
"default": "./dist/index.js"
|
|
21
20
|
}
|
|
22
21
|
},
|
|
23
22
|
"keywords": [
|
|
@@ -49,8 +48,14 @@
|
|
|
49
48
|
"homepage": "https://docs.apify.com/api/client/js/",
|
|
50
49
|
"files": [
|
|
51
50
|
"dist",
|
|
52
|
-
"!dist/*.tsbuildinfo"
|
|
51
|
+
"!dist/*.tsbuildinfo",
|
|
52
|
+
"!dist/spec_guards.*"
|
|
53
53
|
],
|
|
54
|
+
"apify": {
|
|
55
|
+
"openapiSpec": {
|
|
56
|
+
"version": "v2-2026-08-03T111309Z"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
54
59
|
"dependencies": {
|
|
55
60
|
"@apify/consts": "^2.50.0",
|
|
56
61
|
"@apify/log": "^2.2.6",
|
|
@@ -83,7 +88,7 @@
|
|
|
83
88
|
"compression": "^1.7.4",
|
|
84
89
|
"esbuild": "0.28.2",
|
|
85
90
|
"express": "^5.0.0",
|
|
86
|
-
"
|
|
91
|
+
"openapi-typescript": "7.13.0",
|
|
87
92
|
"oxfmt": "0.65.0",
|
|
88
93
|
"oxlint": "1.79.0",
|
|
89
94
|
"oxlint-tsgolint": "7.0.2001",
|
|
@@ -104,7 +109,6 @@
|
|
|
104
109
|
},
|
|
105
110
|
"scripts": {
|
|
106
111
|
"build": "pnpm clean && pnpm build:node && pnpm build:browser",
|
|
107
|
-
"postbuild": "gen-esm-wrapper dist/index.js dist/index.mjs",
|
|
108
112
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
109
113
|
"test": "pnpm build && vitest run --project unit",
|
|
110
114
|
"test:integration": "vitest run --project integration",
|
|
@@ -113,11 +117,14 @@
|
|
|
113
117
|
"lint": "oxlint --type-aware",
|
|
114
118
|
"lint:fix": "oxlint --type-aware --fix",
|
|
115
119
|
"tsc-check-tests": "tsc --noEmit --project test/tsconfig.json",
|
|
120
|
+
"tsc-check-scripts": "tsc --noEmit --project tsconfig.scripts.json",
|
|
116
121
|
"format": "oxfmt",
|
|
117
122
|
"format:check": "oxfmt --check",
|
|
118
123
|
"api:extract": "pnpm build && pnpm dlx github:apify/api-extractor-report --packages=. --extract-command='pnpm api:extract'",
|
|
119
124
|
"api:check": "pnpm dlx github:apify/api-extractor-report --packages=. --extract-command='pnpm api:extract' --verify",
|
|
120
125
|
"build:node": "tsc",
|
|
121
|
-
"build:browser": "rsbuild build"
|
|
126
|
+
"build:browser": "rsbuild build",
|
|
127
|
+
"spec:fetch": "node scripts/openapi_spec.mts fetch",
|
|
128
|
+
"generate:types": "node scripts/openapi_spec.mts fetch && node scripts/generate_types.mts && node scripts/openapi_spec.mts record-version"
|
|
122
129
|
}
|
|
123
130
|
}
|
package/dist/index.mjs
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import mod from "./index.js";
|
|
2
|
-
|
|
3
|
-
export default mod;
|
|
4
|
-
export const ActorClient = mod.ActorClient;
|
|
5
|
-
export const ActorCollectionClient = mod.ActorCollectionClient;
|
|
6
|
-
export const ActorEnvVarClient = mod.ActorEnvVarClient;
|
|
7
|
-
export const ActorEnvVarCollectionClient = mod.ActorEnvVarCollectionClient;
|
|
8
|
-
export const ActorListSortBy = mod.ActorListSortBy;
|
|
9
|
-
export const ActorSourceType = mod.ActorSourceType;
|
|
10
|
-
export const ActorVersionClient = mod.ActorVersionClient;
|
|
11
|
-
export const ActorVersionCollectionClient = mod.ActorVersionCollectionClient;
|
|
12
|
-
export const ApifyApiError = mod.ApifyApiError;
|
|
13
|
-
export const ApifyClient = mod.ApifyClient;
|
|
14
|
-
export const ArgumentValidationError = mod.ArgumentValidationError;
|
|
15
|
-
export const BuildClient = mod.BuildClient;
|
|
16
|
-
export const BuildCollectionClient = mod.BuildCollectionClient;
|
|
17
|
-
export const DatasetClient = mod.DatasetClient;
|
|
18
|
-
export const DatasetCollectionClient = mod.DatasetCollectionClient;
|
|
19
|
-
export const DownloadItemsFormat = mod.DownloadItemsFormat;
|
|
20
|
-
export const InvalidResponseBodyError = mod.InvalidResponseBodyError;
|
|
21
|
-
export const KeyValueStoreClient = mod.KeyValueStoreClient;
|
|
22
|
-
export const KeyValueStoreCollectionClient = mod.KeyValueStoreCollectionClient;
|
|
23
|
-
export const LogClient = mod.LogClient;
|
|
24
|
-
export const LoggerActorRedirect = mod.LoggerActorRedirect;
|
|
25
|
-
export const PlatformFeature = mod.PlatformFeature;
|
|
26
|
-
export const RequestQueueClient = mod.RequestQueueClient;
|
|
27
|
-
export const RequestQueueCollectionClient = mod.RequestQueueCollectionClient;
|
|
28
|
-
export const RunClient = mod.RunClient;
|
|
29
|
-
export const RunCollectionClient = mod.RunCollectionClient;
|
|
30
|
-
export const ScheduleActions = mod.ScheduleActions;
|
|
31
|
-
export const ScheduleClient = mod.ScheduleClient;
|
|
32
|
-
export const ScheduleCollectionClient = mod.ScheduleCollectionClient;
|
|
33
|
-
export const StoreCollectionClient = mod.StoreCollectionClient;
|
|
34
|
-
export const StreamedLog = mod.StreamedLog;
|
|
35
|
-
export const TaskClient = mod.TaskClient;
|
|
36
|
-
export const TaskCollectionClient = mod.TaskCollectionClient;
|
|
37
|
-
export const UserClient = mod.UserClient;
|
|
38
|
-
export const WebhookClient = mod.WebhookClient;
|
|
39
|
-
export const WebhookCollectionClient = mod.WebhookCollectionClient;
|
|
40
|
-
export const WebhookDispatchClient = mod.WebhookDispatchClient;
|
|
41
|
-
export const WebhookDispatchCollectionClient = mod.WebhookDispatchCollectionClient;
|
|
42
|
-
export const WebhookDispatchStatus = mod.WebhookDispatchStatus;
|