11/*
2- Copyright 2022 The Dapr Authors
2+ Copyright 2024 The Dapr Authors
33Licensed under the Apache License, Version 2.0 (the "License");
44you may not use this file except in compliance with the License.
55You may obtain a copy of the License at
@@ -15,7 +15,7 @@ import { TaskHubGrpcClient } from "kaibocai-durabletask-js";
1515import * as grpc from "@grpc/grpc-js" ;
1616import { WorkflowState } from "./WorkflowState" ;
1717import { generateInterceptors } from "../internal/ApiTokenClientInterceptor" ;
18- import { TWorkflow } from "../types/Workflow.type" ;
18+ import { TWorkflow } from "../../ types/workflow /Workflow.type" ;
1919import { getFunctionName } from "../internal" ;
2020
2121export default class WorkflowClient {
@@ -27,10 +27,10 @@ export default class WorkflowClient {
2727 * @param {grpc.ChannelOptions | undefined } options - Additional options for configuring the gRPC channel.
2828 */
2929 constructor ( hostAddress ?: string , options ?: grpc . ChannelOptions ) {
30- this . _innerClient = this . _buildInnerClient ( hostAddress , options ) ;
30+ this . _innerClient = this . buildInnerClient ( hostAddress , options ) ;
3131 }
3232
33- _buildInnerClient ( hostAddress = "127.0.0.1:50001" , options : grpc . ChannelOptions = { } ) : TaskHubGrpcClient {
33+ private buildInnerClient ( hostAddress = "127.0.0.1:50001" , options : grpc . ChannelOptions = { } ) : TaskHubGrpcClient {
3434 const innerOptions = {
3535 ...options ,
3636 interceptors : [ generateInterceptors ( ) , ...( options ?. interceptors ?? [ ] ) ] ,
@@ -42,6 +42,9 @@ export default class WorkflowClient {
4242 * Schedules a new workflow using the DurableTask client.
4343 *
4444 * @param {TWorkflow | string } workflow - The Workflow or the name of the workflow to be scheduled.
45+ * @param {any } [input] - The input to be provided to the scheduled workflow.
46+ * @param {string } [instanceId] - An optional unique identifier for the workflow instance.
47+ * @param {Date } [startAt] - An optional date and time at which the workflow should start.
4548 * @return {Promise<string> } A Promise resolving to the unique ID of the scheduled workflow instance.
4649 */
4750 public async scheduleNewWorkflow (
0 commit comments