@optimiser/common 1.0.403 → 1.0.404

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -260,10 +260,11 @@ declare function CreateBanquetingVATSettingsData(msp_d: AnyObjectInterface, db:
260
260
  declare function CheckReportFolderAccess(report: AnyObjectInterface, db: Db, msp_d: AnyObjectInterface, folderActiveStatus?: boolean): Promise<boolean>;
261
261
  /**
262
262
  * TODO: Return On behalf String in Calendar Invitation mails
263
- * @param fromUser From User Name
263
+ * @param {string} fromUser From User Name
264
+ * @param {boolean} isIgnoreTemplate boolean flag pass true to get only fromUser
264
265
  * @returns string
265
266
  */
266
- declare function GetMailFromString(fromUser: string): string;
267
+ declare function GetMailFromString(fromUser: string, isIgnoreTemplate?: boolean): string;
267
268
  /**
268
269
  * TODO: Return On behalf String in Calendar Invitation mails
269
270
  * @param fromUser From User Name
@@ -5491,11 +5491,13 @@ function CheckReportFolderAccess(report, db, msp_d, folderActiveStatus) {
5491
5491
  exports.CheckReportFolderAccess = CheckReportFolderAccess;
5492
5492
  /**
5493
5493
  * TODO: Return On behalf String in Calendar Invitation mails
5494
- * @param fromUser From User Name
5494
+ * @param {string} fromUser From User Name
5495
+ * @param {boolean} isIgnoreTemplate boolean flag pass true to get only fromUser
5495
5496
  * @returns string
5496
5497
  */
5497
- function GetMailFromString(fromUser) {
5498
- return "Optimiser (on behalf of ".concat(fromUser, ")");
5498
+ function GetMailFromString(fromUser, isIgnoreTemplate) {
5499
+ if (isIgnoreTemplate === void 0) { isIgnoreTemplate = false; }
5500
+ return isIgnoreTemplate ? fromUser : "Optimiser (on behalf of ".concat(fromUser, ")");
5499
5501
  }
5500
5502
  exports.GetMailFromString = GetMailFromString;
5501
5503
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.403",
3
+ "version": "1.0.404",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {