Skip to content

Commit

Permalink
chore: Rename maxCostPerRun (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
novotnyj authored Oct 1, 2024
1 parent d25cd6f commit cc28237
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/resource_clients/actor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ export class ActorClient extends ResourceClient {
waitForFinish: ow.optional.number,
webhooks: ow.optional.array.ofType(ow.object),
maxItems: ow.optional.number.not.negative,
maxCostPerRun: ow.optional.number.not.negative,
maxCostPerRunUsd: ow.optional.number.not.negative,
}));

const { waitForFinish, timeout, memory, build, maxItems, maxCostPerRun } = options;
const { waitForFinish, timeout, memory, build, maxItems, maxCostPerRunUsd } = options;

const params = {
waitForFinish,
Expand All @@ -80,7 +80,7 @@ export class ActorClient extends ResourceClient {
build,
webhooks: stringifyWebhooksToBase64(options.webhooks),
maxItems,
maxCostPerRun,
maxCostPerRunUsd,
};

const request: AxiosRequestConfig = {
Expand Down Expand Up @@ -121,7 +121,7 @@ export class ActorClient extends ResourceClient {
waitSecs: ow.optional.number.not.negative,
webhooks: ow.optional.array.ofType(ow.object),
maxItems: ow.optional.number.not.negative,
maxCostPerRun: ow.optional.number.not.negative,
maxCostPerRunUsd: ow.optional.number.not.negative,
}));

const { waitSecs, ...startOptions } = options;
Expand Down Expand Up @@ -350,7 +350,7 @@ export interface ActorStartOptions {
*/
maxItems?: number;

// TODO(PPE): add maxCostPerRun after finished
// TODO(PPE): add maxCostPerRunUsd after finished
}

export interface ActorCallOptions extends Omit<ActorStartOptions, 'waitForFinish'> {
Expand Down
8 changes: 4 additions & 4 deletions src/resource_clients/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ export class TaskClient extends ResourceClient {
waitForFinish: ow.optional.number,
webhooks: ow.optional.array.ofType(ow.object),
maxItems: ow.optional.number.not.negative,
maxCostPerRun: ow.optional.number.not.negative,
maxCostPerRunUsd: ow.optional.number.not.negative,
}));

const { waitForFinish, timeout, memory, build, maxItems, maxCostPerRun } = options;
const { waitForFinish, timeout, memory, build, maxItems, maxCostPerRunUsd } = options;

const params = {
waitForFinish,
Expand All @@ -77,7 +77,7 @@ export class TaskClient extends ResourceClient {
build,
webhooks: stringifyWebhooksToBase64(options.webhooks),
maxItems,
maxCostPerRun,
maxCostPerRunUsd,
};

const request: ApifyRequestConfig = {
Expand Down Expand Up @@ -111,7 +111,7 @@ export class TaskClient extends ResourceClient {
waitSecs: ow.optional.number.not.negative,
webhooks: ow.optional.array.ofType(ow.object),
maxItems: ow.optional.number.not.negative,
maxCostPerRun: ow.optional.number.not.negative,
maxCostPerRunUsd: ow.optional.number.not.negative,
}));

const { waitSecs, ...startOptions } = options;
Expand Down

0 comments on commit cc28237

Please sign in to comment.