apify-client 2.20.1-beta.6 → 2.20.1-beta.8
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/dist/apify_client.d.ts +237 -25
- package/dist/apify_client.d.ts.map +1 -1
- package/dist/apify_client.js +234 -25
- package/dist/apify_client.js.map +1 -1
- package/dist/bundle.js +2042 -253
- package/dist/bundle.js.map +1 -1
- package/dist/resource_clients/actor.d.ts +322 -31
- package/dist/resource_clients/actor.d.ts.map +1 -1
- package/dist/resource_clients/actor.js +167 -19
- package/dist/resource_clients/actor.js.map +1 -1
- package/dist/resource_clients/actor_collection.d.ts +34 -3
- package/dist/resource_clients/actor_collection.d.ts.map +1 -1
- package/dist/resource_clients/actor_collection.js +34 -3
- package/dist/resource_clients/actor_collection.js.map +1 -1
- package/dist/resource_clients/actor_env_var.d.ts +34 -3
- package/dist/resource_clients/actor_env_var.d.ts.map +1 -1
- package/dist/resource_clients/actor_env_var.js +34 -3
- package/dist/resource_clients/actor_env_var.js.map +1 -1
- package/dist/resource_clients/actor_env_var_collection.d.ts +37 -3
- package/dist/resource_clients/actor_env_var_collection.d.ts.map +1 -1
- package/dist/resource_clients/actor_env_var_collection.js +37 -3
- package/dist/resource_clients/actor_env_var_collection.js.map +1 -1
- package/dist/resource_clients/actor_version.d.ts +42 -6
- package/dist/resource_clients/actor_version.d.ts.map +1 -1
- package/dist/resource_clients/actor_version.js +42 -6
- package/dist/resource_clients/actor_version.js.map +1 -1
- package/dist/resource_clients/actor_version_collection.d.ts +35 -3
- package/dist/resource_clients/actor_version_collection.d.ts.map +1 -1
- package/dist/resource_clients/actor_version_collection.js +35 -3
- package/dist/resource_clients/actor_version_collection.js.map +1 -1
- package/dist/resource_clients/build.d.ts +123 -11
- package/dist/resource_clients/build.d.ts.map +1 -1
- package/dist/resource_clients/build.js +93 -11
- package/dist/resource_clients/build.js.map +1 -1
- package/dist/resource_clients/build_collection.d.ts +27 -2
- package/dist/resource_clients/build_collection.d.ts.map +1 -1
- package/dist/resource_clients/build_collection.js +27 -2
- package/dist/resource_clients/build_collection.js.map +1 -1
- package/dist/resource_clients/dataset.d.ts +221 -15
- package/dist/resource_clients/dataset.d.ts.map +1 -1
- package/dist/resource_clients/dataset.js +185 -15
- package/dist/resource_clients/dataset.js.map +1 -1
- package/dist/resource_clients/dataset_collection.d.ts +32 -3
- package/dist/resource_clients/dataset_collection.d.ts.map +1 -1
- package/dist/resource_clients/dataset_collection.js +32 -3
- package/dist/resource_clients/dataset_collection.js.map +1 -1
- package/dist/resource_clients/key_value_store.d.ts +219 -26
- package/dist/resource_clients/key_value_store.d.ts.map +1 -1
- package/dist/resource_clients/key_value_store.js +172 -25
- package/dist/resource_clients/key_value_store.js.map +1 -1
- package/dist/resource_clients/key_value_store_collection.d.ts +32 -3
- package/dist/resource_clients/key_value_store_collection.d.ts.map +1 -1
- package/dist/resource_clients/key_value_store_collection.js +32 -3
- package/dist/resource_clients/key_value_store_collection.js.map +1 -1
- package/dist/resource_clients/log.d.ts +34 -3
- package/dist/resource_clients/log.d.ts.map +1 -1
- package/dist/resource_clients/log.js +34 -3
- package/dist/resource_clients/log.js.map +1 -1
- package/dist/resource_clients/request_queue.d.ts +290 -19
- package/dist/resource_clients/request_queue.d.ts.map +1 -1
- package/dist/resource_clients/request_queue.js +233 -19
- package/dist/resource_clients/request_queue.js.map +1 -1
- package/dist/resource_clients/request_queue_collection.d.ts +31 -3
- package/dist/resource_clients/request_queue_collection.d.ts.map +1 -1
- package/dist/resource_clients/request_queue_collection.js +31 -3
- package/dist/resource_clients/request_queue_collection.js.map +1 -1
- package/dist/resource_clients/run.d.ts +224 -27
- package/dist/resource_clients/run.d.ts.map +1 -1
- package/dist/resource_clients/run.js +200 -27
- package/dist/resource_clients/run.js.map +1 -1
- package/dist/resource_clients/run_collection.d.ts +27 -2
- package/dist/resource_clients/run_collection.d.ts.map +1 -1
- package/dist/resource_clients/run_collection.js +27 -2
- package/dist/resource_clients/run_collection.js.map +1 -1
- package/dist/resource_clients/schedule.d.ts +65 -4
- package/dist/resource_clients/schedule.d.ts.map +1 -1
- package/dist/resource_clients/schedule.js +42 -4
- package/dist/resource_clients/schedule.js.map +1 -1
- package/dist/resource_clients/schedule_collection.d.ts +35 -3
- package/dist/resource_clients/schedule_collection.d.ts.map +1 -1
- package/dist/resource_clients/schedule_collection.js +35 -3
- package/dist/resource_clients/schedule_collection.js.map +1 -1
- package/dist/resource_clients/store_collection.d.ts +26 -2
- package/dist/resource_clients/store_collection.d.ts.map +1 -1
- package/dist/resource_clients/store_collection.js +26 -2
- package/dist/resource_clients/store_collection.js.map +1 -1
- package/dist/resource_clients/task.d.ts +110 -11
- package/dist/resource_clients/task.d.ts.map +1 -1
- package/dist/resource_clients/task.js +83 -11
- package/dist/resource_clients/task.js.map +1 -1
- package/dist/resource_clients/task_collection.d.ts +35 -8
- package/dist/resource_clients/task_collection.d.ts.map +1 -1
- package/dist/resource_clients/task_collection.js +35 -8
- package/dist/resource_clients/task_collection.js.map +1 -1
- package/dist/resource_clients/user.d.ts +41 -4
- package/dist/resource_clients/user.d.ts.map +1 -1
- package/dist/resource_clients/user.js +41 -4
- package/dist/resource_clients/user.js.map +1 -1
- package/dist/resource_clients/webhook.d.ts +66 -5
- package/dist/resource_clients/webhook.d.ts.map +1 -1
- package/dist/resource_clients/webhook.js +48 -5
- package/dist/resource_clients/webhook.js.map +1 -1
- package/dist/resource_clients/webhook_collection.d.ts +34 -3
- package/dist/resource_clients/webhook_collection.d.ts.map +1 -1
- package/dist/resource_clients/webhook_collection.js +34 -3
- package/dist/resource_clients/webhook_collection.js.map +1 -1
- package/dist/resource_clients/webhook_dispatch.d.ts +22 -1
- package/dist/resource_clients/webhook_dispatch.d.ts.map +1 -1
- package/dist/resource_clients/webhook_dispatch.js +22 -1
- package/dist/resource_clients/webhook_dispatch.js.map +1 -1
- package/dist/resource_clients/webhook_dispatch_collection.d.ts +24 -2
- package/dist/resource_clients/webhook_dispatch_collection.d.ts.map +1 -1
- package/dist/resource_clients/webhook_dispatch_collection.js +24 -2
- package/dist/resource_clients/webhook_dispatch_collection.js.map +1 -1
- package/dist/utils.d.ts +42 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,47 +3,135 @@ import type { ApiClientSubResourceOptions } from '../base/api_client';
|
|
|
3
3
|
import { ResourceClient } from '../base/resource_client';
|
|
4
4
|
import type { ActorDefinition } from './actor';
|
|
5
5
|
import { LogClient } from './log';
|
|
6
|
+
/**
|
|
7
|
+
* Client for managing a specific Actor build.
|
|
8
|
+
*
|
|
9
|
+
* Builds are created when an Actor is built from source code. This client provides methods
|
|
10
|
+
* to get build details, wait for the build to finish, abort it, and access its logs.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```javascript
|
|
14
|
+
* const client = new ApifyClient({ token: 'my-token' });
|
|
15
|
+
* const buildClient = client.build('my-build-id');
|
|
16
|
+
*
|
|
17
|
+
* // Get build details
|
|
18
|
+
* const build = await buildClient.get();
|
|
19
|
+
*
|
|
20
|
+
* // Wait for the build to finish
|
|
21
|
+
* const finishedBuild = await buildClient.waitForFinish();
|
|
22
|
+
*
|
|
23
|
+
* // Access build logs
|
|
24
|
+
* const log = await buildClient.log().get();
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @see https://docs.apify.com/platform/actors/running/runs-and-builds#builds
|
|
28
|
+
*/
|
|
6
29
|
export declare class BuildClient extends ResourceClient {
|
|
7
30
|
/**
|
|
8
31
|
* @hidden
|
|
9
32
|
*/
|
|
10
33
|
constructor(options: ApiClientSubResourceOptions);
|
|
11
34
|
/**
|
|
12
|
-
*
|
|
35
|
+
* Gets the Actor build object from the Apify API.
|
|
36
|
+
*
|
|
37
|
+
* @param options - Get options
|
|
38
|
+
* @param options.waitForFinish - Maximum time to wait (in seconds, max 60s) for the build to finish on the API side before returning. Default is 0 (returns immediately).
|
|
39
|
+
* @returns The Build object, or `undefined` if it does not exist
|
|
40
|
+
* @see https://docs.apify.com/api/v2/actor-build-get
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```javascript
|
|
44
|
+
* // Get build status immediately
|
|
45
|
+
* const build = await client.build('build-id').get();
|
|
46
|
+
* console.log(`Status: ${build.status}`);
|
|
47
|
+
*
|
|
48
|
+
* // Wait up to 60 seconds for build to finish
|
|
49
|
+
* const build = await client.build('build-id').get({ waitForFinish: 60 });
|
|
50
|
+
* ```
|
|
13
51
|
*/
|
|
14
52
|
get(options?: BuildClientGetOptions): Promise<Build | undefined>;
|
|
15
53
|
/**
|
|
16
|
-
*
|
|
54
|
+
* Aborts the Actor build.
|
|
55
|
+
*
|
|
56
|
+
* Stops the build process immediately. The build will have an `ABORTED` status.
|
|
57
|
+
*
|
|
58
|
+
* @returns The updated Build object with `ABORTED` status
|
|
59
|
+
* @see https://docs.apify.com/api/v2/actor-build-abort-post
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```javascript
|
|
63
|
+
* await client.build('build-id').abort();
|
|
64
|
+
* ```
|
|
17
65
|
*/
|
|
18
66
|
abort(): Promise<Build>;
|
|
19
67
|
/**
|
|
20
|
-
*
|
|
68
|
+
* Deletes the Actor build.
|
|
69
|
+
*
|
|
70
|
+
* @see https://docs.apify.com/api/v2/actor-build-delete
|
|
21
71
|
*/
|
|
22
72
|
delete(): Promise<void>;
|
|
23
73
|
/**
|
|
24
|
-
*
|
|
74
|
+
* Retrieves the OpenAPI definition for the Actor build.
|
|
75
|
+
*
|
|
76
|
+
* @returns The OpenAPI definition object.
|
|
77
|
+
* @see https://docs.apify.com/api/v2/actor-build-openapi-json-get
|
|
25
78
|
*/
|
|
26
79
|
getOpenApiDefinition(): Promise<OpenApiDefinition>;
|
|
27
80
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
81
|
+
* Waits for the Actor build to finish and returns the finished Build object.
|
|
82
|
+
*
|
|
83
|
+
* The promise resolves when the build reaches a terminal state (`SUCCEEDED`, `FAILED`, `ABORTED`, or `TIMED-OUT`).
|
|
84
|
+
* If `waitSecs` is provided and the timeout is reached, the promise resolves with the unfinished
|
|
85
|
+
* Build object (status will be `RUNNING` or `READY`). The promise is NOT rejected based on build status.
|
|
31
86
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
87
|
+
* Unlike the `waitForFinish` parameter in {@link get}, this method can wait indefinitely
|
|
88
|
+
* by polling the build status. It uses the `waitForFinish` parameter internally (max 60s per call)
|
|
89
|
+
* and continuously polls until the build finishes or the timeout is reached.
|
|
35
90
|
*
|
|
36
91
|
* This is useful when you need to immediately start a run after a build finishes.
|
|
92
|
+
*
|
|
93
|
+
* @param options - Wait options
|
|
94
|
+
* @param options.waitSecs - Maximum time to wait for the build to finish, in seconds. If omitted, waits indefinitely.
|
|
95
|
+
* @returns The Build object (finished or still building if timeout was reached)
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```javascript
|
|
99
|
+
* // Wait indefinitely for build to finish
|
|
100
|
+
* const build = await client.build('build-id').waitForFinish();
|
|
101
|
+
* console.log(`Build finished with status: ${build.status}`);
|
|
102
|
+
*
|
|
103
|
+
* // Start a run immediately after build succeeds
|
|
104
|
+
* const build = await client.build('build-id').waitForFinish();
|
|
105
|
+
* if (build.status === 'SUCCEEDED') {
|
|
106
|
+
* const run = await client.actor('my-actor').start();
|
|
107
|
+
* }
|
|
108
|
+
* ```
|
|
37
109
|
*/
|
|
38
110
|
waitForFinish(options?: BuildClientWaitForFinishOptions): Promise<Build>;
|
|
39
111
|
/**
|
|
40
|
-
*
|
|
112
|
+
* Returns a client for accessing the log of this Actor build.
|
|
113
|
+
*
|
|
114
|
+
* @returns A client for accessing the build's log
|
|
115
|
+
* @see https://docs.apify.com/api/v2/actor-build-log-get
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```javascript
|
|
119
|
+
* // Get build log
|
|
120
|
+
* const log = await client.build('build-id').log().get();
|
|
121
|
+
* console.log(log);
|
|
122
|
+
* ```
|
|
41
123
|
*/
|
|
42
124
|
log(): LogClient;
|
|
43
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Options for getting a Build.
|
|
128
|
+
*/
|
|
44
129
|
export interface BuildClientGetOptions {
|
|
45
130
|
waitForFinish?: number;
|
|
46
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* Options for waiting for a Build to finish.
|
|
134
|
+
*/
|
|
47
135
|
export interface BuildClientWaitForFinishOptions {
|
|
48
136
|
/**
|
|
49
137
|
* Maximum time to wait for the build to finish, in seconds.
|
|
@@ -52,11 +140,20 @@ export interface BuildClientWaitForFinishOptions {
|
|
|
52
140
|
*/
|
|
53
141
|
waitSecs?: number;
|
|
54
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Metadata about how a Build was initiated.
|
|
145
|
+
*/
|
|
55
146
|
export interface BuildMeta {
|
|
56
147
|
origin: string;
|
|
57
148
|
clientIp: string;
|
|
58
149
|
userAgent: string;
|
|
59
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Represents an Actor build.
|
|
153
|
+
*
|
|
154
|
+
* Builds compile Actor source code and prepare it for execution. Each build has a unique ID
|
|
155
|
+
* and can be tagged (e.g., 'latest', 'beta') for easy reference.
|
|
156
|
+
*/
|
|
60
157
|
export interface Build {
|
|
61
158
|
id: string;
|
|
62
159
|
actId: string;
|
|
@@ -81,20 +178,35 @@ export interface Build {
|
|
|
81
178
|
usageUsd?: BuildUsage;
|
|
82
179
|
actorDefinition?: ActorDefinition;
|
|
83
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* Resource usage for an Actor build.
|
|
183
|
+
*/
|
|
84
184
|
export interface BuildUsage {
|
|
85
185
|
ACTOR_COMPUTE_UNITS?: number;
|
|
86
186
|
}
|
|
187
|
+
/**
|
|
188
|
+
* Runtime statistics for an Actor build.
|
|
189
|
+
*/
|
|
87
190
|
export interface BuildStats {
|
|
88
191
|
durationMillis: number;
|
|
89
192
|
runTimeSecs: number;
|
|
90
193
|
computeUnits: number;
|
|
91
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
* Configuration options used for an Actor build.
|
|
197
|
+
*/
|
|
92
198
|
export interface BuildOptions {
|
|
93
199
|
useCache?: boolean;
|
|
94
200
|
betaPackages?: boolean;
|
|
95
201
|
memoryMbytes?: number;
|
|
96
202
|
diskMbytes?: number;
|
|
97
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* OpenAPI specification for an Actor.
|
|
206
|
+
*
|
|
207
|
+
* Defines the Actor's API interface in OpenAPI 3.0 format, useful for integration
|
|
208
|
+
* with tools like ChatGPT plugins and other API consumers.
|
|
209
|
+
*/
|
|
98
210
|
export interface OpenApiDefinition {
|
|
99
211
|
openapi: string;
|
|
100
212
|
info: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/resource_clients/build.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,qBAAa,WAAY,SAAQ,cAAc;IAC3C;;OAEG;gBACS,OAAO,EAAE,2BAA2B;IAOhD
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/resource_clients/build.ts"],"names":[],"mappings":"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"}
|
|
@@ -6,6 +6,29 @@ const ow_1 = tslib_1.__importDefault(require("ow"));
|
|
|
6
6
|
const resource_client_1 = require("../base/resource_client");
|
|
7
7
|
const utils_1 = require("../utils");
|
|
8
8
|
const log_1 = require("./log");
|
|
9
|
+
/**
|
|
10
|
+
* Client for managing a specific Actor build.
|
|
11
|
+
*
|
|
12
|
+
* Builds are created when an Actor is built from source code. This client provides methods
|
|
13
|
+
* to get build details, wait for the build to finish, abort it, and access its logs.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```javascript
|
|
17
|
+
* const client = new ApifyClient({ token: 'my-token' });
|
|
18
|
+
* const buildClient = client.build('my-build-id');
|
|
19
|
+
*
|
|
20
|
+
* // Get build details
|
|
21
|
+
* const build = await buildClient.get();
|
|
22
|
+
*
|
|
23
|
+
* // Wait for the build to finish
|
|
24
|
+
* const finishedBuild = await buildClient.waitForFinish();
|
|
25
|
+
*
|
|
26
|
+
* // Access build logs
|
|
27
|
+
* const log = await buildClient.log().get();
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @see https://docs.apify.com/platform/actors/running/runs-and-builds#builds
|
|
31
|
+
*/
|
|
9
32
|
class BuildClient extends resource_client_1.ResourceClient {
|
|
10
33
|
/**
|
|
11
34
|
* @hidden
|
|
@@ -17,7 +40,22 @@ class BuildClient extends resource_client_1.ResourceClient {
|
|
|
17
40
|
});
|
|
18
41
|
}
|
|
19
42
|
/**
|
|
20
|
-
*
|
|
43
|
+
* Gets the Actor build object from the Apify API.
|
|
44
|
+
*
|
|
45
|
+
* @param options - Get options
|
|
46
|
+
* @param options.waitForFinish - Maximum time to wait (in seconds, max 60s) for the build to finish on the API side before returning. Default is 0 (returns immediately).
|
|
47
|
+
* @returns The Build object, or `undefined` if it does not exist
|
|
48
|
+
* @see https://docs.apify.com/api/v2/actor-build-get
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```javascript
|
|
52
|
+
* // Get build status immediately
|
|
53
|
+
* const build = await client.build('build-id').get();
|
|
54
|
+
* console.log(`Status: ${build.status}`);
|
|
55
|
+
*
|
|
56
|
+
* // Wait up to 60 seconds for build to finish
|
|
57
|
+
* const build = await client.build('build-id').get({ waitForFinish: 60 });
|
|
58
|
+
* ```
|
|
21
59
|
*/
|
|
22
60
|
async get(options = {}) {
|
|
23
61
|
(0, ow_1.default)(options, ow_1.default.object.exactShape({
|
|
@@ -26,7 +64,17 @@ class BuildClient extends resource_client_1.ResourceClient {
|
|
|
26
64
|
return this._get(options);
|
|
27
65
|
}
|
|
28
66
|
/**
|
|
29
|
-
*
|
|
67
|
+
* Aborts the Actor build.
|
|
68
|
+
*
|
|
69
|
+
* Stops the build process immediately. The build will have an `ABORTED` status.
|
|
70
|
+
*
|
|
71
|
+
* @returns The updated Build object with `ABORTED` status
|
|
72
|
+
* @see https://docs.apify.com/api/v2/actor-build-abort-post
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```javascript
|
|
76
|
+
* await client.build('build-id').abort();
|
|
77
|
+
* ```
|
|
30
78
|
*/
|
|
31
79
|
async abort() {
|
|
32
80
|
const response = await this.httpClient.call({
|
|
@@ -37,13 +85,18 @@ class BuildClient extends resource_client_1.ResourceClient {
|
|
|
37
85
|
return (0, utils_1.cast)((0, utils_1.parseDateFields)((0, utils_1.pluckData)(response.data)));
|
|
38
86
|
}
|
|
39
87
|
/**
|
|
40
|
-
*
|
|
88
|
+
* Deletes the Actor build.
|
|
89
|
+
*
|
|
90
|
+
* @see https://docs.apify.com/api/v2/actor-build-delete
|
|
41
91
|
*/
|
|
42
92
|
async delete() {
|
|
43
93
|
return this._delete();
|
|
44
94
|
}
|
|
45
95
|
/**
|
|
46
|
-
*
|
|
96
|
+
* Retrieves the OpenAPI definition for the Actor build.
|
|
97
|
+
*
|
|
98
|
+
* @returns The OpenAPI definition object.
|
|
99
|
+
* @see https://docs.apify.com/api/v2/actor-build-openapi-json-get
|
|
47
100
|
*/
|
|
48
101
|
async getOpenApiDefinition() {
|
|
49
102
|
const response = await this.httpClient.call({
|
|
@@ -54,15 +107,34 @@ class BuildClient extends resource_client_1.ResourceClient {
|
|
|
54
107
|
return response.data;
|
|
55
108
|
}
|
|
56
109
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
110
|
+
* Waits for the Actor build to finish and returns the finished Build object.
|
|
111
|
+
*
|
|
112
|
+
* The promise resolves when the build reaches a terminal state (`SUCCEEDED`, `FAILED`, `ABORTED`, or `TIMED-OUT`).
|
|
113
|
+
* If `waitSecs` is provided and the timeout is reached, the promise resolves with the unfinished
|
|
114
|
+
* Build object (status will be `RUNNING` or `READY`). The promise is NOT rejected based on build status.
|
|
60
115
|
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
116
|
+
* Unlike the `waitForFinish` parameter in {@link get}, this method can wait indefinitely
|
|
117
|
+
* by polling the build status. It uses the `waitForFinish` parameter internally (max 60s per call)
|
|
118
|
+
* and continuously polls until the build finishes or the timeout is reached.
|
|
64
119
|
*
|
|
65
120
|
* This is useful when you need to immediately start a run after a build finishes.
|
|
121
|
+
*
|
|
122
|
+
* @param options - Wait options
|
|
123
|
+
* @param options.waitSecs - Maximum time to wait for the build to finish, in seconds. If omitted, waits indefinitely.
|
|
124
|
+
* @returns The Build object (finished or still building if timeout was reached)
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```javascript
|
|
128
|
+
* // Wait indefinitely for build to finish
|
|
129
|
+
* const build = await client.build('build-id').waitForFinish();
|
|
130
|
+
* console.log(`Build finished with status: ${build.status}`);
|
|
131
|
+
*
|
|
132
|
+
* // Start a run immediately after build succeeds
|
|
133
|
+
* const build = await client.build('build-id').waitForFinish();
|
|
134
|
+
* if (build.status === 'SUCCEEDED') {
|
|
135
|
+
* const run = await client.actor('my-actor').start();
|
|
136
|
+
* }
|
|
137
|
+
* ```
|
|
66
138
|
*/
|
|
67
139
|
async waitForFinish(options = {}) {
|
|
68
140
|
(0, ow_1.default)(options, ow_1.default.object.exactShape({
|
|
@@ -71,7 +143,17 @@ class BuildClient extends resource_client_1.ResourceClient {
|
|
|
71
143
|
return this._waitForFinish(options);
|
|
72
144
|
}
|
|
73
145
|
/**
|
|
74
|
-
*
|
|
146
|
+
* Returns a client for accessing the log of this Actor build.
|
|
147
|
+
*
|
|
148
|
+
* @returns A client for accessing the build's log
|
|
149
|
+
* @see https://docs.apify.com/api/v2/actor-build-log-get
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```javascript
|
|
153
|
+
* // Get build log
|
|
154
|
+
* const log = await client.build('build-id').log().get();
|
|
155
|
+
* console.log(log);
|
|
156
|
+
* ```
|
|
75
157
|
*/
|
|
76
158
|
log() {
|
|
77
159
|
return new log_1.LogClient(this._subResourceOptions({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/resource_clients/build.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAKpB,6DAAyD;AACzD,oCAA4D;AAE5D,+BAAkC;AAElC,MAAa,WAAY,SAAQ,gCAAc;IAC3C;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,cAAc;YAC5B,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/resource_clients/build.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAKpB,6DAAyD;AACzD,oCAA4D;AAE5D,+BAAkC;AAElC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,WAAY,SAAQ,gCAAc;IAC3C;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,cAAc;YAC5B,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,GAAG,CAAC,UAAiC,EAAE;QACzC,IAAA,YAAE,EACE,OAAO,EACP,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC;YACjB,aAAa,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;SACpC,CAAC,CACL,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,KAAK;QACP,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YACxC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;SACzB,CAAC,CAAC;QAEH,OAAO,IAAA,YAAI,EAAC,IAAA,uBAAe,EAAC,IAAA,iBAAS,EAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB;QACtB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YACxC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;YAC9B,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;SACzB,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACzB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,KAAK,CAAC,aAAa,CAAC,UAA2C,EAAE;QAC7D,IAAA,YAAE,EACE,OAAO,EACP,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC;YACjB,QAAQ,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;SAC/B,CAAC,CACL,CAAC;QAEF,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,GAAG;QACC,OAAO,IAAI,eAAS,CAChB,IAAI,CAAC,mBAAmB,CAAC;YACrB,YAAY,EAAE,KAAK;SACtB,CAAC,CACL,CAAC;IACN,CAAC;CACJ;AArJD,kCAqJC"}
|
|
@@ -2,19 +2,40 @@ import type { ApiClientOptionsWithOptionalResourcePath } from '../base/api_clien
|
|
|
2
2
|
import { ResourceCollectionClient } from '../base/resource_collection_client';
|
|
3
3
|
import type { PaginatedIterator, PaginatedList, PaginationOptions } from '../utils';
|
|
4
4
|
import type { Build } from './build';
|
|
5
|
+
/**
|
|
6
|
+
* Client for managing the collection of Actor builds.
|
|
7
|
+
*
|
|
8
|
+
* Provides methods to list Actor builds across all Actors or for a specific Actor.
|
|
9
|
+
* To access an individual build, use the `build()` method on the main ApifyClient.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```javascript
|
|
13
|
+
* const client = new ApifyClient({ token: 'my-token' });
|
|
14
|
+
*
|
|
15
|
+
* // List all builds
|
|
16
|
+
* const buildsClient = client.builds();
|
|
17
|
+
* const { items } = await buildsClient.list();
|
|
18
|
+
*
|
|
19
|
+
* // List builds for a specific Actor
|
|
20
|
+
* const actorBuildsClient = client.actor('my-actor-id').builds();
|
|
21
|
+
* const { items: actorBuilds } = await actorBuildsClient.list();
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @see https://docs.apify.com/platform/actors/running/runs-and-builds#builds
|
|
25
|
+
*/
|
|
5
26
|
export declare class BuildCollectionClient extends ResourceCollectionClient {
|
|
6
27
|
/**
|
|
7
28
|
* @hidden
|
|
8
29
|
*/
|
|
9
30
|
constructor(options: ApiClientOptionsWithOptionalResourcePath);
|
|
10
31
|
/**
|
|
11
|
-
*
|
|
32
|
+
* Lists all Actor builds.
|
|
12
33
|
*
|
|
13
34
|
* Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched
|
|
14
35
|
* items in a single API call is limited.
|
|
15
36
|
* ```javascript
|
|
16
37
|
* const paginatedList = await client.list(options);
|
|
17
|
-
|
|
38
|
+
* ```
|
|
18
39
|
*
|
|
19
40
|
* Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are
|
|
20
41
|
* retrieved.
|
|
@@ -22,6 +43,10 @@ export declare class BuildCollectionClient extends ResourceCollectionClient {
|
|
|
22
43
|
* ```javascript
|
|
23
44
|
* for await (const singleItem of client.list(options)) {...}
|
|
24
45
|
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param options - Pagination and sorting options.
|
|
48
|
+
* @returns A paginated iterator of Actor builds.
|
|
49
|
+
* @see https://docs.apify.com/api/v2/actor-builds-get
|
|
25
50
|
*/
|
|
26
51
|
list(options?: BuildCollectionClientListOptions): PaginatedIterator<BuildCollectionClientListItem>;
|
|
27
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build_collection.d.ts","sourceRoot":"","sources":["../../src/resource_clients/build_collection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACpF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,qBAAa,qBAAsB,SAAQ,wBAAwB;IAC/D;;OAEG;gBACS,OAAO,EAAE,wCAAwC;IAO7D
|
|
1
|
+
{"version":3,"file":"build_collection.d.ts","sourceRoot":"","sources":["../../src/resource_clients/build_collection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACpF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,qBAAsB,SAAQ,wBAAwB;IAC/D;;OAEG;gBACS,OAAO,EAAE,wCAAwC;IAO7D;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,CAAC,OAAO,GAAE,gCAAqC,GAAG,iBAAiB,CAAC,6BAA6B,CAAC;CAYzG;AAED,MAAM,WAAW,gCAAiC,SAAQ,iBAAiB;IACvE,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,6BAA6B,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,CAAC,CAAC,GAC3G,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC;AAEnD,MAAM,MAAM,+BAA+B,GAAG,aAAa,CAAC,6BAA6B,CAAC,CAAC"}
|
|
@@ -4,6 +4,27 @@ exports.BuildCollectionClient = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ow_1 = tslib_1.__importDefault(require("ow"));
|
|
6
6
|
const resource_collection_client_1 = require("../base/resource_collection_client");
|
|
7
|
+
/**
|
|
8
|
+
* Client for managing the collection of Actor builds.
|
|
9
|
+
*
|
|
10
|
+
* Provides methods to list Actor builds across all Actors or for a specific Actor.
|
|
11
|
+
* To access an individual build, use the `build()` method on the main ApifyClient.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```javascript
|
|
15
|
+
* const client = new ApifyClient({ token: 'my-token' });
|
|
16
|
+
*
|
|
17
|
+
* // List all builds
|
|
18
|
+
* const buildsClient = client.builds();
|
|
19
|
+
* const { items } = await buildsClient.list();
|
|
20
|
+
*
|
|
21
|
+
* // List builds for a specific Actor
|
|
22
|
+
* const actorBuildsClient = client.actor('my-actor-id').builds();
|
|
23
|
+
* const { items: actorBuilds } = await actorBuildsClient.list();
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see https://docs.apify.com/platform/actors/running/runs-and-builds#builds
|
|
27
|
+
*/
|
|
7
28
|
class BuildCollectionClient extends resource_collection_client_1.ResourceCollectionClient {
|
|
8
29
|
/**
|
|
9
30
|
* @hidden
|
|
@@ -15,13 +36,13 @@ class BuildCollectionClient extends resource_collection_client_1.ResourceCollect
|
|
|
15
36
|
});
|
|
16
37
|
}
|
|
17
38
|
/**
|
|
18
|
-
*
|
|
39
|
+
* Lists all Actor builds.
|
|
19
40
|
*
|
|
20
41
|
* Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched
|
|
21
42
|
* items in a single API call is limited.
|
|
22
43
|
* ```javascript
|
|
23
44
|
* const paginatedList = await client.list(options);
|
|
24
|
-
|
|
45
|
+
* ```
|
|
25
46
|
*
|
|
26
47
|
* Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are
|
|
27
48
|
* retrieved.
|
|
@@ -29,6 +50,10 @@ class BuildCollectionClient extends resource_collection_client_1.ResourceCollect
|
|
|
29
50
|
* ```javascript
|
|
30
51
|
* for await (const singleItem of client.list(options)) {...}
|
|
31
52
|
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param options - Pagination and sorting options.
|
|
55
|
+
* @returns A paginated iterator of Actor builds.
|
|
56
|
+
* @see https://docs.apify.com/api/v2/actor-builds-get
|
|
32
57
|
*/
|
|
33
58
|
list(options = {}) {
|
|
34
59
|
(0, ow_1.default)(options, ow_1.default.object.exactShape({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build_collection.js","sourceRoot":"","sources":["../../src/resource_clients/build_collection.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAGpB,mFAA8E;AAI9E,MAAa,qBAAsB,SAAQ,qDAAwB;IAC/D;;OAEG;IACH,YAAY,OAAiD;QACzD,KAAK,CAAC;YACF,GAAG,OAAO;YACV,YAAY,EAAE,OAAO,CAAC,YAAY,IAAI,cAAc;SACvD,CAAC,CAAC;IACP,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"build_collection.js","sourceRoot":"","sources":["../../src/resource_clients/build_collection.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAGpB,mFAA8E;AAI9E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,qBAAsB,SAAQ,qDAAwB;IAC/D;;OAEG;IACH,YAAY,OAAiD;QACzD,KAAK,CAAC;YACF,GAAG,OAAO;YACV,YAAY,EAAE,OAAO,CAAC,YAAY,IAAI,cAAc;SACvD,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,CAAC,UAA4C,EAAE;QAC/C,IAAA,YAAE,EACE,OAAO,EACP,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC;YACjB,KAAK,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YACzB,MAAM,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YAC1B,IAAI,EAAE,YAAE,CAAC,QAAQ,CAAC,OAAO;SAC5B,CAAC,CACL,CAAC;QAEF,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;CACJ;AA3CD,sDA2CC"}
|