diff --git a/sdk/communication/communication-job-router/review/communication-job-router.api.md b/sdk/communication/communication-job-router/review/communication-job-router.api.md index 68804fc231a0..67e68df7f6dd 100644 --- a/sdk/communication/communication-job-router/review/communication-job-router.api.md +++ b/sdk/communication/communication-job-router/review/communication-job-router.api.md @@ -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"; @@ -377,6 +380,11 @@ export type JobRouterCompleteJobActionResponse = { body: any; }; +// @public +export interface JobRouterDeclineJobActionOptionalParams extends coreClient.OperationOptions { + declineJobOfferRequest?: DeclineJobOfferRequest; +} + // @public export type JobRouterDeclineJobActionResponse = { body: any; diff --git a/sdk/communication/communication-job-router/src/models/models.ts b/sdk/communication/communication-job-router/src/models/models.ts index 0c1315ff9757..d18b286ec146 100644 --- a/sdk/communication/communication-job-router/src/models/models.ts +++ b/sdk/communication/communication-job-router/src/models/models.ts @@ -65,6 +65,8 @@ export { JobRouterUpsertJobOptionalParams, JobRouterUpsertWorkerOptionalParams, JobRouterReclassifyJobActionOptionalParams, + JobRouterDeclineJobActionOptionalParams, + DeclineJobOfferRequest, ClassificationPolicyItem, DistributionPolicyItem, ExceptionPolicyItem, diff --git a/sdk/communication/communication-job-router/src/routerClient.ts b/sdk/communication/communication-job-router/src/routerClient.ts index 4d733a415c81..fb9c1695b205 100644 --- a/sdk/communication/communication-job-router/src/routerClient.ts +++ b/sdk/communication/communication-job-router/src/routerClient.ts @@ -310,6 +310,11 @@ export class RouterClient { offerId: string, options: DeclineJobOfferOptions = {} ): Promise { + if (options.reofferTimeUtc) { + options.declineJobOfferRequest = { + reofferTimeUtc: options.reofferTimeUtc, + }; + } return this.client.jobRouter.declineJobAction(workerId, offerId, options); }