@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)}${'
|
|
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
|
|
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 =
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED