You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The ID of the click in Dub. You can read this value from `dub_id` cookie.",
13
+
"The unique ID of the click that the lead conversion event is attributed to. You can read this value from `dub_id` cookie.",
14
14
),
15
15
eventName: z
16
16
.string({required_error: "eventName is required"})
17
17
.trim()
18
18
.min(1,"eventName is required")
19
19
.max(255)
20
-
.describe("The name of the lead event to track.")
20
+
.describe(
21
+
"The name of the lead event to track. Can also be used as a unique identifier to associate a given lead event for a customer for a subsequent sale event (via the `leadEventName` prop in `/track/sale`).",
.default("")// Remove this after migrating users from customerId to externalId
33
34
.describe(
34
-
"This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.",
35
+
"The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer.",
35
36
),
36
-
customerId: z
37
-
.string()
38
-
.trim()
39
-
.max(100)
40
-
.nullish()
41
-
.default(null)
42
-
.describe(
43
-
"This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.",
44
-
)
45
-
.openapi({deprecated: true}),
46
37
customerName: z
47
38
.string()
48
39
.max(100)
49
40
.nullish()
50
41
.default(null)
51
-
.describe("Name of the customer in the client's app."),
42
+
.describe(
43
+
"The name of the customer. If not passed, a random name will be generated (e.g. “Big Red Caribou”).",
44
+
),
52
45
customerEmail: z
53
46
.string()
54
47
.email()
55
48
.max(100)
56
49
.nullish()
57
50
.default(null)
58
-
.describe("Email of the customer in the client's app."),
51
+
.describe("The email address of the customer."),
59
52
customerAvatar: z
60
53
.string()
61
54
.nullish()
62
55
.default(null)
63
-
.describe("Avatar of the customer in the client's app."),
56
+
.describe("The avatar URL of the customer."),
57
+
mode: z
58
+
.enum(["async","wait"])
59
+
.default("async")
60
+
.describe(
61
+
"The mode to use for tracking the lead event. `async` will not block the request; `wait` will block the request until the lead event is fully recorded in Dub.",
"Additional metadata to be stored with the lead event. Max 10,000 characters.",
73
72
),
74
-
mode: z
75
-
.enum(["async","wait"])
76
-
.default("async")
77
-
.describe(
78
-
"The mode to use for tracking the lead event. `async` will not block the request; `wait` will block the request until the lead event is fully recorded in Dub.",
.describe("The currency of the sale. Accepts ISO 4217 currency codes."),
42
+
leadEventName: z
43
+
.string()
44
+
.nullish()
45
+
.default(null)
46
+
.describe(
47
+
"The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event, which is the default behavior).",
"Additional metadata to be stored with the sale event. Max 10,000 characters.",
64
59
),
65
-
leadEventName: z
66
-
.string()
67
-
.nullish()
68
-
.default(null)
69
-
.describe(
70
-
"The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event, which is the default behavior).",
0 commit comments