You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Specifies the maximum cost of the Actor run. This parameter is useful for pay-per-event Actors, as it allows you to limit the amount charged to your subscription. You can access the maximum cost in your Actor by using the ACTOR_MAX_TOTAL_CHARGE_USD environment variable.",
57
58
optional: true,
58
59
},
59
-
webhooks: {
60
+
webhook: {
60
61
type: "string",
61
-
label: "Webhooks",
62
-
description: "Specifies optional webhooks associated with the Actor run, which can be used to receive a notification e.g. when the Actor finished or failed. The value is a Base64-encoded JSON array of objects defining the webhooks. For more information, see [Webhooks documentation](https://docs.apify.com/platform/integrations/webhooks).",
62
+
label: "Webhook",
63
+
description: "Specifies optional webhook associated with the Actor run, which can be used to receive a notification e.g. when the Actor finished or failed.",
63
64
optional: true,
65
+
reloadProps: true,
64
66
},
65
67
},
66
68
methods: {
@@ -179,6 +181,14 @@ export default {
179
181
};
180
182
}
181
183
}
184
+
if(this.webhook){
185
+
props.eventTypes={
186
+
type: "string[]",
187
+
label: "Event Types",
188
+
description: "The types of events to send to the webhook",
189
+
options: EVENT_TYPES,
190
+
};
191
+
}
182
192
returnprops;
183
193
},
184
194
asyncrun({ $ }){
@@ -199,7 +209,8 @@ export default {
199
209
maxItems,
200
210
maxTotalChargeUsd,
201
211
waitForFinish,
202
-
webhooks,
212
+
webhook,
213
+
eventTypes,
203
214
...data
204
215
}=this;
205
216
@@ -219,10 +230,18 @@ export default {
219
230
maxItems,
220
231
maxTotalChargeUsd,
221
232
waitForFinish,
222
-
webhooks,
233
+
webhooks: webhook
234
+
? {
235
+
eventTypes,
236
+
requestUrl: webhook,
237
+
}
238
+
: undefined,
223
239
},
224
240
});
225
-
$.export("$summary",`Successfully started actor run with ID: ${response.data.id}`);
241
+
constsummary=this.runAsynchronously
242
+
? `Successfully started actor run with ID: ${response.data.id}`
243
+
: `Successfully ran actor with ID: ${this.actorId}`;
0 commit comments