@cowliss/cli 0.5.0 → 0.6.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.
@@ -12,7 +12,6 @@ import { defineJourney } from "@cowliss/cli/journeys";
12
12
  export default defineJourney({
13
13
  trigger: { event: "checkout_started" },
14
14
  purpose: "emailMarketing",
15
- senderIdentity: "cowliss-default",
16
15
  tags: ["demo", "checkout"],
17
16
  run: async (event, api) => {
18
17
  const purchased = await api.waitForEvent("purchase_completed", {
@@ -9,8 +9,7 @@
9
9
  "activity": "sendEmail",
10
10
  "input": {
11
11
  "template": "abandoned-checkout",
12
- "props": { "firstName": "Ada" },
13
- "senderIdentity": "cowliss-default"
12
+ "props": { "firstName": "Ada" }
14
13
  }
15
14
  }
16
15
  ]
@@ -21,7 +21,6 @@ import { defineJourney } from "@cowliss/cli/journeys";
21
21
  export default defineJourney({
22
22
  trigger: { event: "*" },
23
23
  purpose: "emailMarketing",
24
- senderIdentity: "cowliss-default",
25
24
  tags: ["demo", "retention"],
26
25
  run: async (_event, api) => {
27
26
  await api.traits.set("active_30d", true);
@@ -13,10 +13,10 @@ import { defineJourney } from "@cowliss/cli/journeys";
13
13
  export default defineJourney({
14
14
  trigger: { event: "plan_upgraded", appId: "app_b" },
15
15
  purpose: "emailMarketing",
16
- // A named identity rather than the default: a pitch for your other product
17
- // reads better from a product address than from the one your receipts come
18
- // from. Create it under Settings, Domains, sender identities.
19
- senderIdentity: "product-news",
16
+ // An address of its own rather than the shared one: a pitch for your other
17
+ // product reads better from a product address than from the one your
18
+ // receipts come from. Verify its domain under Settings, Domains first.
19
+ from: "Product News <product-news@example.com>",
20
20
  tags: ["demo", "cross-app"],
21
21
  run: async (_event, api) => {
22
22
  await api.sleep("1d");
@@ -10,7 +10,7 @@
10
10
  "input": {
11
11
  "template": "cross-app-pitch",
12
12
  "props": { "plan": "pro" },
13
- "senderIdentity": "product-news"
13
+ "from": "Product News <product-news@example.com>"
14
14
  }
15
15
  }
16
16
  ]
@@ -12,7 +12,6 @@ import { defineJourney } from "@cowliss/cli/journeys";
12
12
  export default defineJourney({
13
13
  trigger: { event: "purchase_completed" },
14
14
  purpose: "emailMarketing",
15
- senderIdentity: "cowliss-default",
16
15
  tags: ["demo", "retention"],
17
16
  run: async (_event, api) => {
18
17
  await api.traits.set("purchased_recently", true);
@@ -15,7 +15,7 @@
15
15
  { "activity": "unsetTrait", "input": { "key": "purchased_recently" } },
16
16
  {
17
17
  "activity": "sendEmail",
18
- "input": { "template": "winback", "senderIdentity": "cowliss-default" }
18
+ "input": { "template": "winback" }
19
19
  }
20
20
  ]
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cowliss/cli",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "cow": "./dist/index.js"