@jclvsh/dropspace 2.25.0 → 2.27.0
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.
|
@@ -27,6 +27,7 @@ export function registerLaunchCommands(program, client) {
|
|
|
27
27
|
.option("-d, --description <text>", "product description")
|
|
28
28
|
.option("--platforms <list>", "comma-separated platforms", parseList)
|
|
29
29
|
.option("--url <url>", "product URL")
|
|
30
|
+
.option("--track-links", "post the product URL as tracked redirects; clicks show in analytics")
|
|
30
31
|
.option("--schedule <datetime>", "ISO 8601 schedule datetime")
|
|
31
32
|
.option("--persona <id>", "persona ID for tone/style")
|
|
32
33
|
.option("--dropspace-platforms <list>", "platforms for official dropspace accounts", parseList)
|
|
@@ -47,6 +48,8 @@ export function registerLaunchCommands(program, client) {
|
|
|
47
48
|
body.platforms = opts.platforms;
|
|
48
49
|
if (opts.url)
|
|
49
50
|
body.product_url = opts.url;
|
|
51
|
+
if (opts.trackLinks)
|
|
52
|
+
body.track_links = true;
|
|
50
53
|
if (opts.schedule)
|
|
51
54
|
body.scheduled_date = opts.schedule;
|
|
52
55
|
if (opts.persona)
|
package/dist/tools/launches.js
CHANGED
|
@@ -90,6 +90,10 @@ export function registerLaunchTools(server, client) {
|
|
|
90
90
|
.url()
|
|
91
91
|
.optional()
|
|
92
92
|
.describe("product URL — scraped to generate content; can substitute for product_description"),
|
|
93
|
+
track_links: z
|
|
94
|
+
.boolean()
|
|
95
|
+
.optional()
|
|
96
|
+
.describe("swap product_url in post copy for tracked redirects (twitter, linkedin, facebook, reddit, youtube); clicks show as metrics.tracked_clicks in analytics"),
|
|
93
97
|
scheduled_date: z
|
|
94
98
|
.string()
|
|
95
99
|
.optional()
|
package/dist/tools/webhooks.js
CHANGED
|
@@ -37,7 +37,7 @@ export function registerWebhookTools(server, client) {
|
|
|
37
37
|
.refine((u) => u.startsWith("https://"), {
|
|
38
38
|
message: "webhook url must use https",
|
|
39
39
|
})
|
|
40
|
-
.describe("HTTPS webhook URL"),
|
|
40
|
+
.describe("HTTPS webhook URL. a Slack incoming webhook URL (hooks.slack.com/services/...) gets readable Slack messages instead of signed JSON"),
|
|
41
41
|
events: z
|
|
42
42
|
.array(z.enum(WEBHOOK_EVENTS))
|
|
43
43
|
.min(1)
|