@mailmodo/cli 0.0.56-beta.pr58.106 → 0.0.56-beta.pr58.108

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.
@@ -32,7 +32,7 @@ function shortSeq(id) {
32
32
  }
33
33
  export function renderEntries(ctx, data) {
34
34
  const { entries, limit, page, total } = data;
35
- ctx.log(`\n ${'Time'.padEnd(TIME_W)}${'Email'.padEnd(EMAIL_W)}` +
35
+ ctx.log(`\n ${'Time'.padEnd(TIME_W)}${'Template'.padEnd(EMAIL_W)}` +
36
36
  `${'Sequence'.padEnd(SEQ_W)}${'Status'.padEnd(STATUS_W)}Contact`);
37
37
  ctx.log(` ${'─'.repeat(CONTACT_COL + 28)}`);
38
38
  if (!entries?.length) {
@@ -15,7 +15,7 @@ const OUTPUT_CHOICES = [
15
15
  ];
16
16
  const GROUP_BY_CHOICES = [
17
17
  { name: 'None (totals only)', value: 'none' },
18
- { name: 'Email ID', value: 'emailId' },
18
+ { name: 'Email template', value: 'emailId' },
19
19
  { name: 'Sequence ID', value: 'sequenceId' },
20
20
  { name: 'Day', value: 'day' },
21
21
  { name: 'Hour', value: 'hour' },
@@ -71,10 +71,12 @@ export async function promptReportFlags(flags) {
71
71
  default: flags.output,
72
72
  message: 'Output mode:',
73
73
  });
74
- const groupBy = await select({
75
- choices: GROUP_BY_CHOICES,
76
- default: flags['group-by'],
77
- message: 'Group by:',
78
- });
74
+ const groupBy = output === 'summary'
75
+ ? await select({
76
+ choices: GROUP_BY_CHOICES,
77
+ default: flags['group-by'],
78
+ message: 'Group by:',
79
+ })
80
+ : 'none';
79
81
  return { ...flags, ...timeRange, 'group-by': groupBy, output };
80
82
  }
@@ -932,5 +932,5 @@
932
932
  ]
933
933
  }
934
934
  },
935
- "version": "0.0.56-beta.pr58.106"
935
+ "version": "0.0.56-beta.pr58.108"
936
936
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mailmodo/cli",
3
3
  "description": "Email lifecycle automation for the AI-native builder generation.",
4
- "version": "0.0.56-beta.pr58.106",
4
+ "version": "0.0.56-beta.pr58.108",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"