Skip to content

Commit

Permalink
Minor fix to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
williamzhao87 committed May 29, 2023
1 parent 6133290 commit af9eed4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,16 @@ export interface CreateWorkerOptions extends JobRouterUpsertWorkerOptionalParams
totalCapacity?: number;
}

// Warning: (ae-forgotten-export) The symbol "JobRouterDeclineJobActionOptionalParams" needs to be exported by the entry point index.d.ts
//
// @public
export interface DeclineJobOfferOptions extends JobRouterDeclineJobActionOptionalParams {
reofferTimeUtc?: Date;
}

// @public
export interface DeclineJobOfferRequest {
reofferTimeUtc?: Date;
}

// @public
export interface DirectMapRule extends RouterRule {
kind: "direct-map-rule";
Expand Down Expand Up @@ -377,6 +380,11 @@ export type JobRouterCompleteJobActionResponse = {
body: any;
};

// @public
export interface JobRouterDeclineJobActionOptionalParams extends coreClient.OperationOptions {
declineJobOfferRequest?: DeclineJobOfferRequest;
}

// @public
export type JobRouterDeclineJobActionResponse = {
body: any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ export {
JobRouterUpsertJobOptionalParams,
JobRouterUpsertWorkerOptionalParams,
JobRouterReclassifyJobActionOptionalParams,
JobRouterDeclineJobActionOptionalParams,
DeclineJobOfferRequest,
ClassificationPolicyItem,
DistributionPolicyItem,
ExceptionPolicyItem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ export class RouterClient {
offerId: string,
options: DeclineJobOfferOptions = {}
): Promise<JobRouterDeclineJobActionResponse> {
if (options.reofferTimeUtc) {
options.declineJobOfferRequest = {
reofferTimeUtc: options.reofferTimeUtc
}
}
return this.client.jobRouter.declineJobAction(workerId, offerId, options);
}

Expand Down

0 comments on commit af9eed4

Please sign in to comment.