apify-client 3.0.0-beta.102 → 3.0.0-beta.103
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.
|
@@ -94,6 +94,9 @@ export declare class RunClient extends ResourceClient {
|
|
|
94
94
|
* and resource allocation. The run effectively becomes a run of the target Actor with new input.
|
|
95
95
|
* This is useful for chaining Actor executions or implementing complex workflows.
|
|
96
96
|
*
|
|
97
|
+
* Only the run itself can metamorph: the client must use the run's own API token, which the run gets
|
|
98
|
+
* in the `APIFY_TOKEN` environment variable. With any other token, the API rejects the request.
|
|
99
|
+
*
|
|
97
100
|
* @param targetActorId - ID or username/name of the target Actor
|
|
98
101
|
* @param input - Input for the target Actor: an object or array serialized to JSON, or raw bytes sent as they
|
|
99
102
|
* are. Omit it to metamorph without input.
|
|
@@ -105,8 +108,9 @@ export declare class RunClient extends ResourceClient {
|
|
|
105
108
|
*
|
|
106
109
|
* @example
|
|
107
110
|
* ```javascript
|
|
108
|
-
* //
|
|
109
|
-
* const
|
|
111
|
+
* // Inside the run: transform it into another Actor
|
|
112
|
+
* const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
|
|
113
|
+
* const metamorphedRun = await client.run(process.env.ACTOR_RUN_ID).metamorph(
|
|
110
114
|
* 'target-actor-id',
|
|
111
115
|
* { url: 'https://example.com' }
|
|
112
116
|
* );
|
|
@@ -153,6 +153,9 @@ export class RunClient extends ResourceClient {
|
|
|
153
153
|
* and resource allocation. The run effectively becomes a run of the target Actor with new input.
|
|
154
154
|
* This is useful for chaining Actor executions or implementing complex workflows.
|
|
155
155
|
*
|
|
156
|
+
* Only the run itself can metamorph: the client must use the run's own API token, which the run gets
|
|
157
|
+
* in the `APIFY_TOKEN` environment variable. With any other token, the API rejects the request.
|
|
158
|
+
*
|
|
156
159
|
* @param targetActorId - ID or username/name of the target Actor
|
|
157
160
|
* @param input - Input for the target Actor: an object or array serialized to JSON, or raw bytes sent as they
|
|
158
161
|
* are. Omit it to metamorph without input.
|
|
@@ -164,8 +167,9 @@ export class RunClient extends ResourceClient {
|
|
|
164
167
|
*
|
|
165
168
|
* @example
|
|
166
169
|
* ```javascript
|
|
167
|
-
* //
|
|
168
|
-
* const
|
|
170
|
+
* // Inside the run: transform it into another Actor
|
|
171
|
+
* const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
|
|
172
|
+
* const metamorphedRun = await client.run(process.env.ACTOR_RUN_ID).metamorph(
|
|
169
173
|
* 'target-actor-id',
|
|
170
174
|
* { url: 'https://example.com' }
|
|
171
175
|
* );
|