@mailmodo/cli 0.0.23 → 0.0.24-beta.pr26.41
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.
- package/dist/commands/deploy/index.js +17 -6
- package/oclif.manifest.json +35 -35
- package/package.json +1 -1
|
@@ -118,7 +118,7 @@ export default class Deploy extends BaseCommand {
|
|
|
118
118
|
monthlyCap: project?.monthlyCap ?? DEFAULT_MONTHLY_CAP,
|
|
119
119
|
product: this.buildProductSection(project),
|
|
120
120
|
senderDetails: this.buildSenderSection(project),
|
|
121
|
-
webhookUrl: project
|
|
121
|
+
...(project?.webhookUrl ? { webhookUrl: project.webhookUrl } : {}),
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
async confirmDeploy(yamlConfig, flags) {
|
|
@@ -200,12 +200,23 @@ export default class Deploy extends BaseCommand {
|
|
|
200
200
|
this.log(` ${'─'.repeat(53)}\n`);
|
|
201
201
|
this.log(` ${chalk.cyan(sdkSnippet.install ?? 'npm install @mailmodo/sdk')}\n`);
|
|
202
202
|
this.log(` ${chalk.dim("import { track, identify } from '@mailmodo/sdk'")}\n`);
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
this.log(` ${chalk.dim(
|
|
203
|
+
if (sdkSnippet.examples) {
|
|
204
|
+
this.log(` ${chalk.dim('// Example usage:')}`);
|
|
205
|
+
this.log(` ${chalk.dim(sdkSnippet.examples.track)}`);
|
|
206
|
+
this.log(` ${chalk.dim(sdkSnippet.examples.identify)}\n`);
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
const trackCalls = [...new Set(sdkSnippet.trackCalls ?? [])];
|
|
209
|
+
for (const call of trackCalls) {
|
|
210
|
+
this.log(` ${chalk.dim(call)}`);
|
|
211
|
+
}
|
|
212
|
+
if (trackCalls.length > 0)
|
|
213
|
+
this.log('');
|
|
214
|
+
const identifyCalls = [...new Set(sdkSnippet.identifyCalls ?? [])];
|
|
215
|
+
for (const call of identifyCalls) {
|
|
216
|
+
this.log(` ${chalk.dim(call)}`);
|
|
217
|
+
}
|
|
218
|
+
if (identifyCalls.length > 0)
|
|
219
|
+
this.log('');
|
|
209
220
|
this.log(` Full SDK docs: ${chalk.cyan('mailmodo.com/docs/sdk')}\n`);
|
|
210
221
|
this.log(` ${'─'.repeat(53)}\n`);
|
|
211
222
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -53,15 +53,13 @@
|
|
|
53
53
|
"index.js"
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
|
-
"
|
|
56
|
+
"deploy": {
|
|
57
57
|
"aliases": [],
|
|
58
58
|
"args": {},
|
|
59
|
-
"description": "
|
|
59
|
+
"description": "Deploy email sequences and verify sending domain",
|
|
60
60
|
"examples": [
|
|
61
|
-
"<%= config.bin %>
|
|
62
|
-
"<%= config.bin %>
|
|
63
|
-
"<%= config.bin %> contacts --export # GDPR CSV → contacts.csv",
|
|
64
|
-
"<%= config.bin %> contacts --delete sarah@example.com"
|
|
61
|
+
"<%= config.bin %> deploy",
|
|
62
|
+
"<%= config.bin %> deploy --yes"
|
|
65
63
|
],
|
|
66
64
|
"flags": {
|
|
67
65
|
"json": {
|
|
@@ -76,31 +74,11 @@
|
|
|
76
74
|
"name": "yes",
|
|
77
75
|
"allowNo": false,
|
|
78
76
|
"type": "boolean"
|
|
79
|
-
},
|
|
80
|
-
"delete": {
|
|
81
|
-
"description": "GDPR hard delete a contact by email",
|
|
82
|
-
"name": "delete",
|
|
83
|
-
"hasDynamicHelp": false,
|
|
84
|
-
"multiple": false,
|
|
85
|
-
"type": "option"
|
|
86
|
-
},
|
|
87
|
-
"export": {
|
|
88
|
-
"description": "Export all contacts as GDPR-compliant CSV (writes contacts.csv in the current directory)",
|
|
89
|
-
"name": "export",
|
|
90
|
-
"allowNo": false,
|
|
91
|
-
"type": "boolean"
|
|
92
|
-
},
|
|
93
|
-
"search": {
|
|
94
|
-
"description": "Search for a contact by email",
|
|
95
|
-
"name": "search",
|
|
96
|
-
"hasDynamicHelp": false,
|
|
97
|
-
"multiple": false,
|
|
98
|
-
"type": "option"
|
|
99
77
|
}
|
|
100
78
|
},
|
|
101
79
|
"hasDynamicHelp": false,
|
|
102
80
|
"hiddenAliases": [],
|
|
103
|
-
"id": "
|
|
81
|
+
"id": "deploy",
|
|
104
82
|
"pluginAlias": "@mailmodo/cli",
|
|
105
83
|
"pluginName": "@mailmodo/cli",
|
|
106
84
|
"pluginType": "core",
|
|
@@ -110,17 +88,19 @@
|
|
|
110
88
|
"relativePath": [
|
|
111
89
|
"dist",
|
|
112
90
|
"commands",
|
|
113
|
-
"
|
|
91
|
+
"deploy",
|
|
114
92
|
"index.js"
|
|
115
93
|
]
|
|
116
94
|
},
|
|
117
|
-
"
|
|
95
|
+
"contacts": {
|
|
118
96
|
"aliases": [],
|
|
119
97
|
"args": {},
|
|
120
|
-
"description": "
|
|
98
|
+
"description": "Manage contacts — search, export, or delete",
|
|
121
99
|
"examples": [
|
|
122
|
-
"<%= config.bin %>
|
|
123
|
-
"<%= config.bin %>
|
|
100
|
+
"<%= config.bin %> contacts",
|
|
101
|
+
"<%= config.bin %> contacts --search sarah@example.com",
|
|
102
|
+
"<%= config.bin %> contacts --export # GDPR CSV → contacts.csv",
|
|
103
|
+
"<%= config.bin %> contacts --delete sarah@example.com"
|
|
124
104
|
],
|
|
125
105
|
"flags": {
|
|
126
106
|
"json": {
|
|
@@ -135,11 +115,31 @@
|
|
|
135
115
|
"name": "yes",
|
|
136
116
|
"allowNo": false,
|
|
137
117
|
"type": "boolean"
|
|
118
|
+
},
|
|
119
|
+
"delete": {
|
|
120
|
+
"description": "GDPR hard delete a contact by email",
|
|
121
|
+
"name": "delete",
|
|
122
|
+
"hasDynamicHelp": false,
|
|
123
|
+
"multiple": false,
|
|
124
|
+
"type": "option"
|
|
125
|
+
},
|
|
126
|
+
"export": {
|
|
127
|
+
"description": "Export all contacts as GDPR-compliant CSV (writes contacts.csv in the current directory)",
|
|
128
|
+
"name": "export",
|
|
129
|
+
"allowNo": false,
|
|
130
|
+
"type": "boolean"
|
|
131
|
+
},
|
|
132
|
+
"search": {
|
|
133
|
+
"description": "Search for a contact by email",
|
|
134
|
+
"name": "search",
|
|
135
|
+
"hasDynamicHelp": false,
|
|
136
|
+
"multiple": false,
|
|
137
|
+
"type": "option"
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
"hasDynamicHelp": false,
|
|
141
141
|
"hiddenAliases": [],
|
|
142
|
-
"id": "
|
|
142
|
+
"id": "contacts",
|
|
143
143
|
"pluginAlias": "@mailmodo/cli",
|
|
144
144
|
"pluginName": "@mailmodo/cli",
|
|
145
145
|
"pluginType": "core",
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"relativePath": [
|
|
150
150
|
"dist",
|
|
151
151
|
"commands",
|
|
152
|
-
"
|
|
152
|
+
"contacts",
|
|
153
153
|
"index.js"
|
|
154
154
|
]
|
|
155
155
|
},
|
|
@@ -634,5 +634,5 @@
|
|
|
634
634
|
]
|
|
635
635
|
}
|
|
636
636
|
},
|
|
637
|
-
"version": "0.0.
|
|
637
|
+
"version": "0.0.24-beta.pr26.41"
|
|
638
638
|
}
|