diff --git a/src/batch-client/index.ts b/src/batch-client/index.ts index 940e693c..a9e9a9df 100644 --- a/src/batch-client/index.ts +++ b/src/batch-client/index.ts @@ -285,6 +285,7 @@ export class ZimbraBatchClient { public localStoreClient: any; public notifier: Notifier; public origin: string; + public serverUrl: string; public sessionId: any; public soapPathname: string; private agent?: any; @@ -298,6 +299,7 @@ export class ZimbraBatchClient { private userAgent?: {}; constructor(options: ZimbraClientOptions = {}) { + this.serverUrl = options.serverUrl !== undefined ? options.serverUrl : ''; this.sessionHandler = options.sessionHandler; this.userAgent = options.userAgent; this.jwtToken = options.jwtToken; diff --git a/src/batch-client/types.ts b/src/batch-client/types.ts index 5d5610f0..a0d00d3f 100644 --- a/src/batch-client/types.ts +++ b/src/batch-client/types.ts @@ -68,6 +68,7 @@ export interface ZimbraClientOptions { jwtToken?: string; localStoreClient?: any; notificationHandler?: NotificationHandler; + serverUrl?: string; sessionHandler?: SessionHandler; soapPathname?: string; userAgent?: UserAgent;