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

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.
Files changed (35) hide show
  1. package/dist/commands/deploy/index.js +3 -5
  2. package/dist/commands/init/index.js +3 -11
  3. package/dist/commands/login/index.js +5 -2
  4. package/dist/lib/api-client.d.ts +0 -2
  5. package/dist/lib/api-client.js +2 -2
  6. package/dist/lib/base-command.d.ts +13 -10
  7. package/dist/lib/base-command.js +27 -86
  8. package/dist/lib/commands/login/output.d.ts +2 -2
  9. package/dist/lib/commands/login/output.js +18 -5
  10. package/dist/lib/config.d.ts +0 -2
  11. package/dist/lib/config.js +10 -19
  12. package/dist/lib/constants.d.ts +2 -3
  13. package/dist/lib/constants.js +5 -4
  14. package/dist/lib/messages.d.ts +0 -18
  15. package/dist/lib/messages.js +0 -38
  16. package/dist/lib/templates/missing-templates.d.ts +1 -1
  17. package/dist/lib/templates/missing-templates.js +2 -2
  18. package/dist/lib/yaml-config.d.ts +0 -1
  19. package/dist/lib/yaml-config.js +0 -8
  20. package/oclif.manifest.json +1 -168
  21. package/package.json +1 -1
  22. package/dist/commands/report/index.d.ts +0 -22
  23. package/dist/commands/report/index.js +0 -123
  24. package/dist/lib/commands/report/output-entries.d.ts +0 -2
  25. package/dist/lib/commands/report/output-entries.js +0 -59
  26. package/dist/lib/commands/report/output-timeseries.d.ts +0 -2
  27. package/dist/lib/commands/report/output-timeseries.js +0 -28
  28. package/dist/lib/commands/report/output.d.ts +0 -3
  29. package/dist/lib/commands/report/output.js +0 -56
  30. package/dist/lib/commands/report/payload.d.ts +0 -2
  31. package/dist/lib/commands/report/payload.js +0 -49
  32. package/dist/lib/commands/report/prompt.d.ts +0 -2
  33. package/dist/lib/commands/report/prompt.js +0 -82
  34. package/dist/lib/commands/report/types.d.ts +0 -97
  35. package/dist/lib/commands/report/types.js +0 -1
@@ -1,97 +0,0 @@
1
- import type { ApiResponse } from '../../api-client.js';
2
- export interface ReportFilters {
3
- contactEmails?: string[];
4
- emailIds?: string[];
5
- events?: string[];
6
- sequenceIds?: string[];
7
- }
8
- export type ReportTimeRange = {
9
- from: string;
10
- to: string;
11
- } | {
12
- preset: string;
13
- };
14
- export interface ReportPayload {
15
- filters?: ReportFilters;
16
- groupBy: string;
17
- limit?: number;
18
- output: string;
19
- page?: number;
20
- timeRange?: ReportTimeRange;
21
- }
22
- export interface ReportGroup {
23
- bounceRate: number;
24
- bounced: number;
25
- clickRate: number;
26
- clicked: number;
27
- complained: number;
28
- delivered: number;
29
- key: string;
30
- openRate: number;
31
- opened: number;
32
- sent: number;
33
- skipped: number;
34
- unsubscribed: number;
35
- }
36
- export type ReportTotals = Omit<ReportGroup, 'key'>;
37
- export interface SummaryResponse {
38
- groupBy: string;
39
- groups: ReportGroup[];
40
- timeRange: {
41
- from: string;
42
- to: string;
43
- };
44
- totals: ReportTotals;
45
- }
46
- export interface EntryRecord {
47
- contact: string;
48
- emailId: string;
49
- reason?: null | string;
50
- sequenceId: string;
51
- status: string;
52
- timestamp: string;
53
- }
54
- export interface EntriesResponse {
55
- entries: EntryRecord[];
56
- limit: number;
57
- page: number;
58
- timeRange: {
59
- from: string;
60
- to: string;
61
- };
62
- total: number;
63
- }
64
- export type TimeseriesPoint = ReportTotals & {
65
- ts: string;
66
- };
67
- export interface TimeseriesResponse {
68
- bucket: string;
69
- series: TimeseriesPoint[];
70
- timeRange: {
71
- from: string;
72
- to: string;
73
- };
74
- }
75
- export type ReportResponse = EntriesResponse | SummaryResponse | TimeseriesResponse;
76
- export type ReportFlags = {
77
- contact?: string[];
78
- 'email-id'?: string[];
79
- event?: string[];
80
- from?: string;
81
- 'group-by': string;
82
- limit: number;
83
- output: string;
84
- page: number;
85
- preset?: string;
86
- sequence?: string[];
87
- to?: string;
88
- };
89
- export type ReportCtx = {
90
- log(msg?: string): void;
91
- onApiError(resp: {
92
- error?: string;
93
- status: number;
94
- }): never;
95
- post<T = Record<string, unknown>>(path: string, body?: unknown): Promise<ApiResponse<T>>;
96
- spinner<T>(text: string, json: boolean, work: () => Promise<T>): Promise<T>;
97
- };
@@ -1 +0,0 @@
1
- export {};