From 56d335372ea3160785037fac397d02b558747ad9 Mon Sep 17 00:00:00 2001 From: miteshsavani810 Date: Tue, 1 Aug 2023 19:26:42 +0530 Subject: [PATCH] PREAPPS-7390: Introduced serverUrl property --- src/batch-client/index.ts | 2 ++ src/batch-client/types.ts | 1 + 2 files changed, 3 insertions(+) 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;