@cellaware/utils 8.3.5 → 8.3.7

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.
@@ -290,18 +290,18 @@ export async function summarizeConditionMarkdown(condition, localeMessageFn) {
290
290
  let ruleStr = '';
291
291
  switch (condition.rule) {
292
292
  case ConditionalFormatRule.BETWEEN:
293
- ruleStr = `**${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}** ${condition.value} **${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, 'conditional-format-rule-and')}** ${condition.value2}`;
293
+ ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} ${condition.value} ${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, 'conditional-format-rule-and')} ${condition.value2}`;
294
294
  break;
295
295
  case ConditionalFormatRule.BLANK:
296
296
  case ConditionalFormatRule.NOT_BLANK:
297
- ruleStr = `**${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}**`;
297
+ ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}`;
298
298
  break;
299
299
  default:
300
300
  if (condition.dataType === 'text') {
301
- ruleStr = `**${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}** '${condition.value}'`;
301
+ ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} '${condition.value}'`;
302
302
  }
303
303
  else {
304
- ruleStr = `**${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}** ${condition.value}`;
304
+ ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} ${condition.value}`;
305
305
  }
306
306
  break;
307
307
  }
@@ -311,18 +311,18 @@ export async function summarizeConditionHtml(condition, localeMessageFn) {
311
311
  let ruleStr = '';
312
312
  switch (condition.rule) {
313
313
  case ConditionalFormatRule.BETWEEN:
314
- ruleStr = `<b>${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}</b> ${condition.value} <b>${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, 'conditional-format-rule-and')}</b> ${condition.value2}`;
314
+ ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} ${condition.value} ${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, 'conditional-format-rule-and')} ${condition.value2}`;
315
315
  break;
316
316
  case ConditionalFormatRule.BLANK:
317
317
  case ConditionalFormatRule.NOT_BLANK:
318
- ruleStr = `<b>${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}</b>`;
318
+ ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}`;
319
319
  break;
320
320
  default:
321
321
  if (condition.dataType === 'text') {
322
- ruleStr = `<b>${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}</b> '${condition.value}'`;
322
+ ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} '${condition.value}'`;
323
323
  }
324
324
  else {
325
- ruleStr = `<b>${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)}</b> ${condition.value}`;
325
+ ruleStr = `${await localeMessageFn(CHATWMS_DEFAULT_LANGUAGE, condition.rule)} ${condition.value}`;
326
326
  }
327
327
  break;
328
328
  }
@@ -77,3 +77,13 @@ export interface ReportUsage {
77
77
  datetime: Date;
78
78
  customerLevel?: boolean;
79
79
  }
80
+ export interface ReportSchedule {
81
+ scheduleId: string;
82
+ reportId: string;
83
+ cronExpression: string;
84
+ popup?: boolean;
85
+ emails?: string[];
86
+ clientId: string;
87
+ userId: string;
88
+ }
89
+ export declare function initReportSchedule(): ReportSchedule;
@@ -31,3 +31,15 @@ export function initReportLineResult() {
31
31
  chartRows: []
32
32
  };
33
33
  }
34
+ export function initReportSchedule() {
35
+ return {
36
+ scheduleId: '',
37
+ reportId: '',
38
+ cronExpression: '',
39
+ popup: false,
40
+ emails: [],
41
+ // subscriptions: [],
42
+ clientId: '',
43
+ userId: ''
44
+ };
45
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "8.3.5",
3
+ "version": "8.3.7",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",