samva 0.15.0 → 0.17.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.
- package/AGENTS.md +4 -1
- package/README.md +46 -1
- package/dist/analytics-CaqPRsry.js +207 -0
- package/dist/api-keys-Ce1Y4_Ip.js +274 -0
- package/dist/attachments-DYqVIraC.js +140 -0
- package/dist/brands-ZwuOGIWO.js +175 -0
- package/dist/campaigns-DZlz1E9E.js +522 -0
- package/dist/categories-CA4XIQAb.js +1011 -0
- package/dist/client/sdk.gen.d.ts +234 -49
- package/dist/client/types.gen.d.ts +1521 -348
- package/dist/client-DOzUrdTE.js +1115 -0
- package/dist/contact-groups-BLbFXnjq.js +446 -0
- package/dist/contacts-BbsoXXB4.js +787 -0
- package/dist/conversations-_sRHueML.js +494 -0
- package/dist/custom-fields-BHWbwlKn.js +176 -0
- package/dist/effect/analytics.js +2 -21
- package/dist/effect/api-keys.d.ts +1 -0
- package/dist/effect/api-keys.js +2 -25
- package/dist/effect/attachments.js +2 -17
- package/dist/effect/brands.d.ts +1 -1
- package/dist/effect/brands.js +3 -24
- package/dist/effect/campaigns.js +2 -33
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +3 -4
- package/dist/effect/contact-groups.js +2 -29
- package/dist/effect/contacts.d.ts +52 -0
- package/dist/effect/contacts.js +2 -47
- package/dist/effect/conversations.js +2 -35
- package/dist/effect/custom-fields.js +2 -17
- package/dist/effect/email.d.ts +3 -20
- package/dist/effect/email.js +2 -141
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +3 -0
- package/dist/effect/extension-installations.js +2 -27
- package/dist/effect/extensions.js +2 -19
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +3 -13
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated-metadata.d.ts +1631 -0
- package/dist/effect/index.d.ts +4 -1
- package/dist/effect/index.js +29 -26
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +2 -0
- package/dist/effect/mailboxes.d.ts +255 -205
- package/dist/effect/mailboxes.js +2 -2
- package/dist/effect/media.js +3 -1
- package/dist/effect/messages.d.ts +2 -2
- package/dist/effect/messages.js +3 -1
- package/dist/effect/namespaces.js +2 -19
- package/dist/effect/operations.js +2 -15
- package/dist/effect/organizations.js +2 -23
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.js +2 -19
- package/dist/effect/subscriptions.js +2 -9
- package/dist/effect/templates.d.ts +1 -1
- package/dist/effect/templates.js +3 -78
- package/dist/effect/unsubscribe-groups.js +2 -27
- package/dist/effect/webhooks.d.ts +9 -9
- package/dist/effect/webhooks.js +3 -33
- package/dist/effect/whoami.d.ts +46 -0
- package/dist/effect/whoami.js +2 -0
- package/dist/email-R0NAA9PW.js +2498 -0
- package/dist/events-CxbTUHYT.js +82 -0
- package/dist/extension-installations-CD94LPmk.js +407 -0
- package/dist/extensions-BKyNQLvu.js +220 -0
- package/dist/feedback-Bpa09JOS.js +52 -0
- package/dist/index.js +3 -3
- package/dist/{inline-attachments-UxLeyytJ.js → inline-attachments-Bi1hDltp.js} +2 -2
- package/dist/journeys-CARo_BJT.js +499 -0
- package/dist/mailboxes-BRDn7BIK.js +2470 -0
- package/dist/media-VrrtNnft.js +181 -0
- package/dist/namespaces-CcvEbG-y.js +152 -0
- package/dist/{operation-BZ5Xov-x.js → operation-n_IYgNVK.js} +85 -102
- package/dist/operations-CmB3FHwf.js +93 -0
- package/dist/organizations-A-plufWc.js +252 -0
- package/dist/promises/errors.gen.d.ts +12 -2
- package/dist/promises/index.d.ts +9 -3
- package/dist/promises/index.js +3 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-Cd6Jamqk.js → promises---Kbh-7z.js} +745 -195
- package/dist/runtime-P0l1_2-C.js +25 -0
- package/dist/scheduled-messages-DkKZRRaN.js +207 -0
- package/dist/send-Bxc0XfGE.js +722 -0
- package/dist/service-map.d.ts +101 -15
- package/dist/subscriptions-DEXYtMXg.js +67 -0
- package/dist/templates-DZomxsG7.js +2289 -0
- package/dist/unsubscribe-groups-Iqk4Isf9.js +291 -0
- package/dist/webhooks-CPXuu8Xf.js +530 -0
- package/dist/whoami-Ccz0jwlt.js +59 -0
- package/package.json +17 -3
- package/dist/categories-BGUBFdH9.js +0 -183
- package/dist/client-CDg7zJs0.js +0 -13726
- package/dist/effect/generated.d.ts +0 -64059
- package/dist/mailboxes-BH_JPmOE.js +0 -159
|
@@ -0,0 +1,2153 @@
|
|
|
1
|
+
export declare const list: ((input?: {
|
|
2
|
+
readonly status?: "active" | "archived" | "draft" | "paused" | null | undefined;
|
|
3
|
+
readonly limit?: string | null | undefined;
|
|
4
|
+
readonly cursor?: string | null | undefined;
|
|
5
|
+
} | undefined) => import("effect/Effect").Effect<{
|
|
6
|
+
readonly items: readonly {
|
|
7
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
10
|
+
readonly publishedVersion: number | null;
|
|
11
|
+
readonly publishedAt: string | null;
|
|
12
|
+
readonly createdAt: string;
|
|
13
|
+
readonly updatedAt: string;
|
|
14
|
+
}[];
|
|
15
|
+
readonly nextCursor: string | null;
|
|
16
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
|
|
17
|
+
readonly pages: (input?: {
|
|
18
|
+
readonly status?: "active" | "archived" | "draft" | "paused" | null | undefined;
|
|
19
|
+
readonly limit?: string | null | undefined;
|
|
20
|
+
readonly cursor?: string | null | undefined;
|
|
21
|
+
} | undefined) => import("effect/Stream").Stream<{
|
|
22
|
+
readonly items: readonly {
|
|
23
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
24
|
+
readonly name: string;
|
|
25
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
26
|
+
readonly publishedVersion: number | null;
|
|
27
|
+
readonly publishedAt: string | null;
|
|
28
|
+
readonly createdAt: string;
|
|
29
|
+
readonly updatedAt: string;
|
|
30
|
+
}[];
|
|
31
|
+
readonly nextCursor: string | null;
|
|
32
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
33
|
+
readonly items: (input?: {
|
|
34
|
+
readonly status?: "active" | "archived" | "draft" | "paused" | null | undefined;
|
|
35
|
+
readonly limit?: string | null | undefined;
|
|
36
|
+
readonly cursor?: string | null | undefined;
|
|
37
|
+
} | undefined) => import("effect/Stream").Stream<{
|
|
38
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
39
|
+
readonly name: string;
|
|
40
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
41
|
+
readonly publishedVersion: number | null;
|
|
42
|
+
readonly publishedAt: string | null;
|
|
43
|
+
readonly createdAt: string;
|
|
44
|
+
readonly updatedAt: string;
|
|
45
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
46
|
+
};
|
|
47
|
+
export declare const create: (input: {
|
|
48
|
+
readonly name: string;
|
|
49
|
+
readonly definition: {
|
|
50
|
+
readonly trigger: {
|
|
51
|
+
readonly type: "event";
|
|
52
|
+
readonly eventName: string;
|
|
53
|
+
} | {
|
|
54
|
+
readonly type: "contact.created";
|
|
55
|
+
} | {
|
|
56
|
+
readonly type: "contact.tag_added";
|
|
57
|
+
readonly tag: string;
|
|
58
|
+
} | {
|
|
59
|
+
readonly type: "contact.joined_group";
|
|
60
|
+
readonly groupId: string;
|
|
61
|
+
};
|
|
62
|
+
readonly rootNodeId: string;
|
|
63
|
+
readonly nodes: {
|
|
64
|
+
readonly [x: string]: {
|
|
65
|
+
readonly type: "send_email";
|
|
66
|
+
readonly config: {
|
|
67
|
+
readonly template: string;
|
|
68
|
+
readonly senderId?: string | undefined;
|
|
69
|
+
readonly templateData?: {
|
|
70
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
71
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
72
|
+
} | null)[] | {
|
|
73
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
74
|
+
} | null)[] | {
|
|
75
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
76
|
+
} | null)[] | {
|
|
77
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
78
|
+
} | null)[] | {
|
|
79
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
80
|
+
} | null)[] | {
|
|
81
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
82
|
+
} | null)[] | {
|
|
83
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
84
|
+
} | null)[] | {
|
|
85
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
86
|
+
} | null)[] | {
|
|
87
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
88
|
+
} | null)[] | {
|
|
89
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
90
|
+
} | null)[] | {
|
|
91
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
92
|
+
} | null)[] | {
|
|
93
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
94
|
+
} | null | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
};
|
|
97
|
+
readonly next: readonly {
|
|
98
|
+
readonly nodeId: string;
|
|
99
|
+
}[];
|
|
100
|
+
} | {
|
|
101
|
+
readonly type: "wait";
|
|
102
|
+
readonly config: {
|
|
103
|
+
readonly durationSeconds: number;
|
|
104
|
+
};
|
|
105
|
+
readonly next: readonly {
|
|
106
|
+
readonly nodeId: string;
|
|
107
|
+
}[];
|
|
108
|
+
} | {
|
|
109
|
+
readonly type: "wait_for_event";
|
|
110
|
+
readonly config: {
|
|
111
|
+
readonly eventName: string;
|
|
112
|
+
readonly timeoutSeconds: number;
|
|
113
|
+
};
|
|
114
|
+
readonly next: readonly {
|
|
115
|
+
readonly nodeId: string;
|
|
116
|
+
readonly outcome: "matched" | "timed_out";
|
|
117
|
+
}[];
|
|
118
|
+
} | {
|
|
119
|
+
readonly type: "branch";
|
|
120
|
+
readonly config: {
|
|
121
|
+
readonly [x: string]: undefined;
|
|
122
|
+
};
|
|
123
|
+
readonly next: readonly {
|
|
124
|
+
readonly nodeId: string;
|
|
125
|
+
readonly condition?: {
|
|
126
|
+
readonly match: "all" | "any";
|
|
127
|
+
readonly predicates: readonly ({
|
|
128
|
+
readonly type: "tag";
|
|
129
|
+
readonly tag: string;
|
|
130
|
+
readonly present: boolean;
|
|
131
|
+
} | {
|
|
132
|
+
readonly type: "property";
|
|
133
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
134
|
+
readonly comparison: {
|
|
135
|
+
readonly operator: "eq" | "neq";
|
|
136
|
+
readonly value: string | number | boolean | null;
|
|
137
|
+
} | {
|
|
138
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
139
|
+
readonly value: number;
|
|
140
|
+
} | {
|
|
141
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
142
|
+
readonly value: string;
|
|
143
|
+
} | {
|
|
144
|
+
readonly operator: "exists" | "not_exists";
|
|
145
|
+
};
|
|
146
|
+
} | {
|
|
147
|
+
readonly type: "custom_field";
|
|
148
|
+
readonly key: string;
|
|
149
|
+
readonly comparison: {
|
|
150
|
+
readonly operator: "eq" | "neq";
|
|
151
|
+
readonly value: string | number | boolean | null;
|
|
152
|
+
} | {
|
|
153
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
154
|
+
readonly value: number;
|
|
155
|
+
} | {
|
|
156
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
157
|
+
readonly value: string;
|
|
158
|
+
} | {
|
|
159
|
+
readonly operator: "exists" | "not_exists";
|
|
160
|
+
};
|
|
161
|
+
} | {
|
|
162
|
+
readonly type: "event";
|
|
163
|
+
readonly eventName: string;
|
|
164
|
+
readonly occurred: boolean;
|
|
165
|
+
})[];
|
|
166
|
+
} | undefined;
|
|
167
|
+
}[];
|
|
168
|
+
} | {
|
|
169
|
+
readonly type: "update_tags";
|
|
170
|
+
readonly config: {
|
|
171
|
+
readonly add: readonly string[];
|
|
172
|
+
readonly remove: readonly string[];
|
|
173
|
+
};
|
|
174
|
+
readonly next: readonly {
|
|
175
|
+
readonly nodeId: string;
|
|
176
|
+
}[];
|
|
177
|
+
} | {
|
|
178
|
+
readonly type: "webhook";
|
|
179
|
+
readonly config: {
|
|
180
|
+
readonly data?: {
|
|
181
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
182
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
183
|
+
} | null)[] | {
|
|
184
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
185
|
+
} | null)[] | {
|
|
186
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
187
|
+
} | null)[] | {
|
|
188
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
189
|
+
} | null)[] | {
|
|
190
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
191
|
+
} | null)[] | {
|
|
192
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
193
|
+
} | null)[] | {
|
|
194
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
195
|
+
} | null)[] | {
|
|
196
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
197
|
+
} | null)[] | {
|
|
198
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
199
|
+
} | null)[] | {
|
|
200
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
201
|
+
} | null)[] | {
|
|
202
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
203
|
+
} | null)[] | {
|
|
204
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
205
|
+
} | null | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
};
|
|
208
|
+
readonly next: readonly {
|
|
209
|
+
readonly nodeId: string;
|
|
210
|
+
}[];
|
|
211
|
+
} | {
|
|
212
|
+
readonly type: "exit";
|
|
213
|
+
readonly config: {
|
|
214
|
+
readonly [x: string]: undefined;
|
|
215
|
+
};
|
|
216
|
+
readonly next: readonly never[];
|
|
217
|
+
} | undefined;
|
|
218
|
+
};
|
|
219
|
+
readonly goal?: {
|
|
220
|
+
readonly eventName: string;
|
|
221
|
+
} | undefined;
|
|
222
|
+
readonly reentry?: boolean | undefined;
|
|
223
|
+
};
|
|
224
|
+
}) => import("effect/Effect").Effect<{
|
|
225
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
226
|
+
readonly name: string;
|
|
227
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
228
|
+
readonly revision: string;
|
|
229
|
+
readonly draft: {
|
|
230
|
+
readonly trigger: {
|
|
231
|
+
readonly type: "event";
|
|
232
|
+
readonly eventName: string;
|
|
233
|
+
} | {
|
|
234
|
+
readonly type: "contact.created";
|
|
235
|
+
} | {
|
|
236
|
+
readonly type: "contact.tag_added";
|
|
237
|
+
readonly tag: string;
|
|
238
|
+
} | {
|
|
239
|
+
readonly type: "contact.joined_group";
|
|
240
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
241
|
+
};
|
|
242
|
+
readonly rootNodeId: string;
|
|
243
|
+
readonly nodes: {
|
|
244
|
+
readonly [x: string]: {
|
|
245
|
+
readonly type: "send_email";
|
|
246
|
+
readonly config: {
|
|
247
|
+
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
248
|
+
readonly senderId?: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
249
|
+
readonly templateData?: {
|
|
250
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
readonly next: readonly [{
|
|
254
|
+
readonly nodeId: string;
|
|
255
|
+
}];
|
|
256
|
+
} | {
|
|
257
|
+
readonly type: "wait";
|
|
258
|
+
readonly config: {
|
|
259
|
+
readonly durationSeconds: number;
|
|
260
|
+
};
|
|
261
|
+
readonly next: readonly [{
|
|
262
|
+
readonly nodeId: string;
|
|
263
|
+
}];
|
|
264
|
+
} | {
|
|
265
|
+
readonly type: "wait_for_event";
|
|
266
|
+
readonly config: {
|
|
267
|
+
readonly eventName: string;
|
|
268
|
+
readonly timeoutSeconds: number;
|
|
269
|
+
};
|
|
270
|
+
readonly next: readonly [{
|
|
271
|
+
readonly nodeId: string;
|
|
272
|
+
readonly outcome: "matched" | "timed_out";
|
|
273
|
+
}, {
|
|
274
|
+
readonly nodeId: string;
|
|
275
|
+
readonly outcome: "matched" | "timed_out";
|
|
276
|
+
}];
|
|
277
|
+
} | {
|
|
278
|
+
readonly type: "branch";
|
|
279
|
+
readonly config: {
|
|
280
|
+
readonly [x: string]: never;
|
|
281
|
+
};
|
|
282
|
+
readonly next: readonly {
|
|
283
|
+
readonly nodeId: string;
|
|
284
|
+
readonly condition?: {
|
|
285
|
+
readonly match: "all" | "any";
|
|
286
|
+
readonly predicates: readonly [{
|
|
287
|
+
readonly type: "tag";
|
|
288
|
+
readonly tag: string;
|
|
289
|
+
readonly present: boolean;
|
|
290
|
+
} | {
|
|
291
|
+
readonly type: "property";
|
|
292
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
293
|
+
readonly comparison: {
|
|
294
|
+
readonly operator: "eq" | "neq";
|
|
295
|
+
readonly value: string | number | boolean | null;
|
|
296
|
+
} | {
|
|
297
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
298
|
+
readonly value: number;
|
|
299
|
+
} | {
|
|
300
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
301
|
+
readonly value: string;
|
|
302
|
+
} | {
|
|
303
|
+
readonly operator: "exists" | "not_exists";
|
|
304
|
+
};
|
|
305
|
+
} | {
|
|
306
|
+
readonly type: "custom_field";
|
|
307
|
+
readonly key: string;
|
|
308
|
+
readonly comparison: {
|
|
309
|
+
readonly operator: "eq" | "neq";
|
|
310
|
+
readonly value: string | number | boolean | null;
|
|
311
|
+
} | {
|
|
312
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
313
|
+
readonly value: number;
|
|
314
|
+
} | {
|
|
315
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
316
|
+
readonly value: string;
|
|
317
|
+
} | {
|
|
318
|
+
readonly operator: "exists" | "not_exists";
|
|
319
|
+
};
|
|
320
|
+
} | {
|
|
321
|
+
readonly type: "event";
|
|
322
|
+
readonly eventName: string;
|
|
323
|
+
readonly occurred: boolean;
|
|
324
|
+
}, ...({
|
|
325
|
+
readonly type: "tag";
|
|
326
|
+
readonly tag: string;
|
|
327
|
+
readonly present: boolean;
|
|
328
|
+
} | {
|
|
329
|
+
readonly type: "property";
|
|
330
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
331
|
+
readonly comparison: {
|
|
332
|
+
readonly operator: "eq" | "neq";
|
|
333
|
+
readonly value: string | number | boolean | null;
|
|
334
|
+
} | {
|
|
335
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
336
|
+
readonly value: number;
|
|
337
|
+
} | {
|
|
338
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
339
|
+
readonly value: string;
|
|
340
|
+
} | {
|
|
341
|
+
readonly operator: "exists" | "not_exists";
|
|
342
|
+
};
|
|
343
|
+
} | {
|
|
344
|
+
readonly type: "custom_field";
|
|
345
|
+
readonly key: string;
|
|
346
|
+
readonly comparison: {
|
|
347
|
+
readonly operator: "eq" | "neq";
|
|
348
|
+
readonly value: string | number | boolean | null;
|
|
349
|
+
} | {
|
|
350
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
351
|
+
readonly value: number;
|
|
352
|
+
} | {
|
|
353
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
354
|
+
readonly value: string;
|
|
355
|
+
} | {
|
|
356
|
+
readonly operator: "exists" | "not_exists";
|
|
357
|
+
};
|
|
358
|
+
} | {
|
|
359
|
+
readonly type: "event";
|
|
360
|
+
readonly eventName: string;
|
|
361
|
+
readonly occurred: boolean;
|
|
362
|
+
})[]];
|
|
363
|
+
};
|
|
364
|
+
}[];
|
|
365
|
+
} | {
|
|
366
|
+
readonly type: "update_tags";
|
|
367
|
+
readonly config: {
|
|
368
|
+
readonly add: readonly string[];
|
|
369
|
+
readonly remove: readonly string[];
|
|
370
|
+
};
|
|
371
|
+
readonly next: readonly [{
|
|
372
|
+
readonly nodeId: string;
|
|
373
|
+
}];
|
|
374
|
+
} | {
|
|
375
|
+
readonly type: "webhook";
|
|
376
|
+
readonly config: {
|
|
377
|
+
readonly data?: {
|
|
378
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
readonly next: readonly [{
|
|
382
|
+
readonly nodeId: string;
|
|
383
|
+
}];
|
|
384
|
+
} | {
|
|
385
|
+
readonly type: "exit";
|
|
386
|
+
readonly config: {
|
|
387
|
+
readonly [x: string]: never;
|
|
388
|
+
};
|
|
389
|
+
readonly next: readonly [];
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
readonly goal?: {
|
|
393
|
+
readonly eventName: string;
|
|
394
|
+
};
|
|
395
|
+
readonly reentry?: boolean;
|
|
396
|
+
};
|
|
397
|
+
readonly publishedVersion: number | null;
|
|
398
|
+
readonly publishedAt: string | null;
|
|
399
|
+
readonly createdAt: string;
|
|
400
|
+
readonly updatedAt: string;
|
|
401
|
+
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
402
|
+
export declare const get: (input: {
|
|
403
|
+
readonly id: string;
|
|
404
|
+
}) => import("effect/Effect").Effect<{
|
|
405
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
406
|
+
readonly name: string;
|
|
407
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
408
|
+
readonly revision: string;
|
|
409
|
+
readonly draft: {
|
|
410
|
+
readonly trigger: {
|
|
411
|
+
readonly type: "event";
|
|
412
|
+
readonly eventName: string;
|
|
413
|
+
} | {
|
|
414
|
+
readonly type: "contact.created";
|
|
415
|
+
} | {
|
|
416
|
+
readonly type: "contact.tag_added";
|
|
417
|
+
readonly tag: string;
|
|
418
|
+
} | {
|
|
419
|
+
readonly type: "contact.joined_group";
|
|
420
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
421
|
+
};
|
|
422
|
+
readonly rootNodeId: string;
|
|
423
|
+
readonly nodes: {
|
|
424
|
+
readonly [x: string]: {
|
|
425
|
+
readonly type: "send_email";
|
|
426
|
+
readonly config: {
|
|
427
|
+
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
428
|
+
readonly senderId?: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
429
|
+
readonly templateData?: {
|
|
430
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
readonly next: readonly [{
|
|
434
|
+
readonly nodeId: string;
|
|
435
|
+
}];
|
|
436
|
+
} | {
|
|
437
|
+
readonly type: "wait";
|
|
438
|
+
readonly config: {
|
|
439
|
+
readonly durationSeconds: number;
|
|
440
|
+
};
|
|
441
|
+
readonly next: readonly [{
|
|
442
|
+
readonly nodeId: string;
|
|
443
|
+
}];
|
|
444
|
+
} | {
|
|
445
|
+
readonly type: "wait_for_event";
|
|
446
|
+
readonly config: {
|
|
447
|
+
readonly eventName: string;
|
|
448
|
+
readonly timeoutSeconds: number;
|
|
449
|
+
};
|
|
450
|
+
readonly next: readonly [{
|
|
451
|
+
readonly nodeId: string;
|
|
452
|
+
readonly outcome: "matched" | "timed_out";
|
|
453
|
+
}, {
|
|
454
|
+
readonly nodeId: string;
|
|
455
|
+
readonly outcome: "matched" | "timed_out";
|
|
456
|
+
}];
|
|
457
|
+
} | {
|
|
458
|
+
readonly type: "branch";
|
|
459
|
+
readonly config: {
|
|
460
|
+
readonly [x: string]: never;
|
|
461
|
+
};
|
|
462
|
+
readonly next: readonly {
|
|
463
|
+
readonly nodeId: string;
|
|
464
|
+
readonly condition?: {
|
|
465
|
+
readonly match: "all" | "any";
|
|
466
|
+
readonly predicates: readonly [{
|
|
467
|
+
readonly type: "tag";
|
|
468
|
+
readonly tag: string;
|
|
469
|
+
readonly present: boolean;
|
|
470
|
+
} | {
|
|
471
|
+
readonly type: "property";
|
|
472
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
473
|
+
readonly comparison: {
|
|
474
|
+
readonly operator: "eq" | "neq";
|
|
475
|
+
readonly value: string | number | boolean | null;
|
|
476
|
+
} | {
|
|
477
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
478
|
+
readonly value: number;
|
|
479
|
+
} | {
|
|
480
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
481
|
+
readonly value: string;
|
|
482
|
+
} | {
|
|
483
|
+
readonly operator: "exists" | "not_exists";
|
|
484
|
+
};
|
|
485
|
+
} | {
|
|
486
|
+
readonly type: "custom_field";
|
|
487
|
+
readonly key: string;
|
|
488
|
+
readonly comparison: {
|
|
489
|
+
readonly operator: "eq" | "neq";
|
|
490
|
+
readonly value: string | number | boolean | null;
|
|
491
|
+
} | {
|
|
492
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
493
|
+
readonly value: number;
|
|
494
|
+
} | {
|
|
495
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
496
|
+
readonly value: string;
|
|
497
|
+
} | {
|
|
498
|
+
readonly operator: "exists" | "not_exists";
|
|
499
|
+
};
|
|
500
|
+
} | {
|
|
501
|
+
readonly type: "event";
|
|
502
|
+
readonly eventName: string;
|
|
503
|
+
readonly occurred: boolean;
|
|
504
|
+
}, ...({
|
|
505
|
+
readonly type: "tag";
|
|
506
|
+
readonly tag: string;
|
|
507
|
+
readonly present: boolean;
|
|
508
|
+
} | {
|
|
509
|
+
readonly type: "property";
|
|
510
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
511
|
+
readonly comparison: {
|
|
512
|
+
readonly operator: "eq" | "neq";
|
|
513
|
+
readonly value: string | number | boolean | null;
|
|
514
|
+
} | {
|
|
515
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
516
|
+
readonly value: number;
|
|
517
|
+
} | {
|
|
518
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
519
|
+
readonly value: string;
|
|
520
|
+
} | {
|
|
521
|
+
readonly operator: "exists" | "not_exists";
|
|
522
|
+
};
|
|
523
|
+
} | {
|
|
524
|
+
readonly type: "custom_field";
|
|
525
|
+
readonly key: string;
|
|
526
|
+
readonly comparison: {
|
|
527
|
+
readonly operator: "eq" | "neq";
|
|
528
|
+
readonly value: string | number | boolean | null;
|
|
529
|
+
} | {
|
|
530
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
531
|
+
readonly value: number;
|
|
532
|
+
} | {
|
|
533
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
534
|
+
readonly value: string;
|
|
535
|
+
} | {
|
|
536
|
+
readonly operator: "exists" | "not_exists";
|
|
537
|
+
};
|
|
538
|
+
} | {
|
|
539
|
+
readonly type: "event";
|
|
540
|
+
readonly eventName: string;
|
|
541
|
+
readonly occurred: boolean;
|
|
542
|
+
})[]];
|
|
543
|
+
};
|
|
544
|
+
}[];
|
|
545
|
+
} | {
|
|
546
|
+
readonly type: "update_tags";
|
|
547
|
+
readonly config: {
|
|
548
|
+
readonly add: readonly string[];
|
|
549
|
+
readonly remove: readonly string[];
|
|
550
|
+
};
|
|
551
|
+
readonly next: readonly [{
|
|
552
|
+
readonly nodeId: string;
|
|
553
|
+
}];
|
|
554
|
+
} | {
|
|
555
|
+
readonly type: "webhook";
|
|
556
|
+
readonly config: {
|
|
557
|
+
readonly data?: {
|
|
558
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
readonly next: readonly [{
|
|
562
|
+
readonly nodeId: string;
|
|
563
|
+
}];
|
|
564
|
+
} | {
|
|
565
|
+
readonly type: "exit";
|
|
566
|
+
readonly config: {
|
|
567
|
+
readonly [x: string]: never;
|
|
568
|
+
};
|
|
569
|
+
readonly next: readonly [];
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
readonly goal?: {
|
|
573
|
+
readonly eventName: string;
|
|
574
|
+
};
|
|
575
|
+
readonly reentry?: boolean;
|
|
576
|
+
};
|
|
577
|
+
readonly publishedVersion: number | null;
|
|
578
|
+
readonly publishedAt: string | null;
|
|
579
|
+
readonly createdAt: string;
|
|
580
|
+
readonly updatedAt: string;
|
|
581
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
582
|
+
export declare const update: (input: {
|
|
583
|
+
readonly id: string;
|
|
584
|
+
readonly name: string;
|
|
585
|
+
}) => import("effect/Effect").Effect<{
|
|
586
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
587
|
+
readonly name: string;
|
|
588
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
589
|
+
readonly revision: string;
|
|
590
|
+
readonly draft: {
|
|
591
|
+
readonly trigger: {
|
|
592
|
+
readonly type: "event";
|
|
593
|
+
readonly eventName: string;
|
|
594
|
+
} | {
|
|
595
|
+
readonly type: "contact.created";
|
|
596
|
+
} | {
|
|
597
|
+
readonly type: "contact.tag_added";
|
|
598
|
+
readonly tag: string;
|
|
599
|
+
} | {
|
|
600
|
+
readonly type: "contact.joined_group";
|
|
601
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
602
|
+
};
|
|
603
|
+
readonly rootNodeId: string;
|
|
604
|
+
readonly nodes: {
|
|
605
|
+
readonly [x: string]: {
|
|
606
|
+
readonly type: "send_email";
|
|
607
|
+
readonly config: {
|
|
608
|
+
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
609
|
+
readonly senderId?: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
610
|
+
readonly templateData?: {
|
|
611
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
readonly next: readonly [{
|
|
615
|
+
readonly nodeId: string;
|
|
616
|
+
}];
|
|
617
|
+
} | {
|
|
618
|
+
readonly type: "wait";
|
|
619
|
+
readonly config: {
|
|
620
|
+
readonly durationSeconds: number;
|
|
621
|
+
};
|
|
622
|
+
readonly next: readonly [{
|
|
623
|
+
readonly nodeId: string;
|
|
624
|
+
}];
|
|
625
|
+
} | {
|
|
626
|
+
readonly type: "wait_for_event";
|
|
627
|
+
readonly config: {
|
|
628
|
+
readonly eventName: string;
|
|
629
|
+
readonly timeoutSeconds: number;
|
|
630
|
+
};
|
|
631
|
+
readonly next: readonly [{
|
|
632
|
+
readonly nodeId: string;
|
|
633
|
+
readonly outcome: "matched" | "timed_out";
|
|
634
|
+
}, {
|
|
635
|
+
readonly nodeId: string;
|
|
636
|
+
readonly outcome: "matched" | "timed_out";
|
|
637
|
+
}];
|
|
638
|
+
} | {
|
|
639
|
+
readonly type: "branch";
|
|
640
|
+
readonly config: {
|
|
641
|
+
readonly [x: string]: never;
|
|
642
|
+
};
|
|
643
|
+
readonly next: readonly {
|
|
644
|
+
readonly nodeId: string;
|
|
645
|
+
readonly condition?: {
|
|
646
|
+
readonly match: "all" | "any";
|
|
647
|
+
readonly predicates: readonly [{
|
|
648
|
+
readonly type: "tag";
|
|
649
|
+
readonly tag: string;
|
|
650
|
+
readonly present: boolean;
|
|
651
|
+
} | {
|
|
652
|
+
readonly type: "property";
|
|
653
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
654
|
+
readonly comparison: {
|
|
655
|
+
readonly operator: "eq" | "neq";
|
|
656
|
+
readonly value: string | number | boolean | null;
|
|
657
|
+
} | {
|
|
658
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
659
|
+
readonly value: number;
|
|
660
|
+
} | {
|
|
661
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
662
|
+
readonly value: string;
|
|
663
|
+
} | {
|
|
664
|
+
readonly operator: "exists" | "not_exists";
|
|
665
|
+
};
|
|
666
|
+
} | {
|
|
667
|
+
readonly type: "custom_field";
|
|
668
|
+
readonly key: string;
|
|
669
|
+
readonly comparison: {
|
|
670
|
+
readonly operator: "eq" | "neq";
|
|
671
|
+
readonly value: string | number | boolean | null;
|
|
672
|
+
} | {
|
|
673
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
674
|
+
readonly value: number;
|
|
675
|
+
} | {
|
|
676
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
677
|
+
readonly value: string;
|
|
678
|
+
} | {
|
|
679
|
+
readonly operator: "exists" | "not_exists";
|
|
680
|
+
};
|
|
681
|
+
} | {
|
|
682
|
+
readonly type: "event";
|
|
683
|
+
readonly eventName: string;
|
|
684
|
+
readonly occurred: boolean;
|
|
685
|
+
}, ...({
|
|
686
|
+
readonly type: "tag";
|
|
687
|
+
readonly tag: string;
|
|
688
|
+
readonly present: boolean;
|
|
689
|
+
} | {
|
|
690
|
+
readonly type: "property";
|
|
691
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
692
|
+
readonly comparison: {
|
|
693
|
+
readonly operator: "eq" | "neq";
|
|
694
|
+
readonly value: string | number | boolean | null;
|
|
695
|
+
} | {
|
|
696
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
697
|
+
readonly value: number;
|
|
698
|
+
} | {
|
|
699
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
700
|
+
readonly value: string;
|
|
701
|
+
} | {
|
|
702
|
+
readonly operator: "exists" | "not_exists";
|
|
703
|
+
};
|
|
704
|
+
} | {
|
|
705
|
+
readonly type: "custom_field";
|
|
706
|
+
readonly key: string;
|
|
707
|
+
readonly comparison: {
|
|
708
|
+
readonly operator: "eq" | "neq";
|
|
709
|
+
readonly value: string | number | boolean | null;
|
|
710
|
+
} | {
|
|
711
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
712
|
+
readonly value: number;
|
|
713
|
+
} | {
|
|
714
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
715
|
+
readonly value: string;
|
|
716
|
+
} | {
|
|
717
|
+
readonly operator: "exists" | "not_exists";
|
|
718
|
+
};
|
|
719
|
+
} | {
|
|
720
|
+
readonly type: "event";
|
|
721
|
+
readonly eventName: string;
|
|
722
|
+
readonly occurred: boolean;
|
|
723
|
+
})[]];
|
|
724
|
+
};
|
|
725
|
+
}[];
|
|
726
|
+
} | {
|
|
727
|
+
readonly type: "update_tags";
|
|
728
|
+
readonly config: {
|
|
729
|
+
readonly add: readonly string[];
|
|
730
|
+
readonly remove: readonly string[];
|
|
731
|
+
};
|
|
732
|
+
readonly next: readonly [{
|
|
733
|
+
readonly nodeId: string;
|
|
734
|
+
}];
|
|
735
|
+
} | {
|
|
736
|
+
readonly type: "webhook";
|
|
737
|
+
readonly config: {
|
|
738
|
+
readonly data?: {
|
|
739
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
readonly next: readonly [{
|
|
743
|
+
readonly nodeId: string;
|
|
744
|
+
}];
|
|
745
|
+
} | {
|
|
746
|
+
readonly type: "exit";
|
|
747
|
+
readonly config: {
|
|
748
|
+
readonly [x: string]: never;
|
|
749
|
+
};
|
|
750
|
+
readonly next: readonly [];
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
readonly goal?: {
|
|
754
|
+
readonly eventName: string;
|
|
755
|
+
};
|
|
756
|
+
readonly reentry?: boolean;
|
|
757
|
+
};
|
|
758
|
+
readonly publishedVersion: number | null;
|
|
759
|
+
readonly publishedAt: string | null;
|
|
760
|
+
readonly createdAt: string;
|
|
761
|
+
readonly updatedAt: string;
|
|
762
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
763
|
+
export declare const remove: (input: {
|
|
764
|
+
readonly id: string;
|
|
765
|
+
}) => import("effect/Effect").Effect<{
|
|
766
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
767
|
+
readonly deleted: true;
|
|
768
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
769
|
+
export declare const replaceDraft: (input: {
|
|
770
|
+
readonly id: string;
|
|
771
|
+
readonly revision: string;
|
|
772
|
+
readonly definition: {
|
|
773
|
+
readonly trigger: {
|
|
774
|
+
readonly type: "event";
|
|
775
|
+
readonly eventName: string;
|
|
776
|
+
} | {
|
|
777
|
+
readonly type: "contact.created";
|
|
778
|
+
} | {
|
|
779
|
+
readonly type: "contact.tag_added";
|
|
780
|
+
readonly tag: string;
|
|
781
|
+
} | {
|
|
782
|
+
readonly type: "contact.joined_group";
|
|
783
|
+
readonly groupId: string;
|
|
784
|
+
};
|
|
785
|
+
readonly rootNodeId: string;
|
|
786
|
+
readonly nodes: {
|
|
787
|
+
readonly [x: string]: {
|
|
788
|
+
readonly type: "send_email";
|
|
789
|
+
readonly config: {
|
|
790
|
+
readonly template: string;
|
|
791
|
+
readonly senderId?: string | undefined;
|
|
792
|
+
readonly templateData?: {
|
|
793
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
794
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
795
|
+
} | null)[] | {
|
|
796
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
797
|
+
} | null)[] | {
|
|
798
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
799
|
+
} | null)[] | {
|
|
800
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
801
|
+
} | null)[] | {
|
|
802
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
803
|
+
} | null)[] | {
|
|
804
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
805
|
+
} | null)[] | {
|
|
806
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
807
|
+
} | null)[] | {
|
|
808
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
809
|
+
} | null)[] | {
|
|
810
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
811
|
+
} | null)[] | {
|
|
812
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
813
|
+
} | null)[] | {
|
|
814
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
815
|
+
} | null)[] | {
|
|
816
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
817
|
+
} | null | undefined;
|
|
818
|
+
} | undefined;
|
|
819
|
+
};
|
|
820
|
+
readonly next: readonly {
|
|
821
|
+
readonly nodeId: string;
|
|
822
|
+
}[];
|
|
823
|
+
} | {
|
|
824
|
+
readonly type: "wait";
|
|
825
|
+
readonly config: {
|
|
826
|
+
readonly durationSeconds: number;
|
|
827
|
+
};
|
|
828
|
+
readonly next: readonly {
|
|
829
|
+
readonly nodeId: string;
|
|
830
|
+
}[];
|
|
831
|
+
} | {
|
|
832
|
+
readonly type: "wait_for_event";
|
|
833
|
+
readonly config: {
|
|
834
|
+
readonly eventName: string;
|
|
835
|
+
readonly timeoutSeconds: number;
|
|
836
|
+
};
|
|
837
|
+
readonly next: readonly {
|
|
838
|
+
readonly nodeId: string;
|
|
839
|
+
readonly outcome: "matched" | "timed_out";
|
|
840
|
+
}[];
|
|
841
|
+
} | {
|
|
842
|
+
readonly type: "branch";
|
|
843
|
+
readonly config: {
|
|
844
|
+
readonly [x: string]: undefined;
|
|
845
|
+
};
|
|
846
|
+
readonly next: readonly {
|
|
847
|
+
readonly nodeId: string;
|
|
848
|
+
readonly condition?: {
|
|
849
|
+
readonly match: "all" | "any";
|
|
850
|
+
readonly predicates: readonly ({
|
|
851
|
+
readonly type: "tag";
|
|
852
|
+
readonly tag: string;
|
|
853
|
+
readonly present: boolean;
|
|
854
|
+
} | {
|
|
855
|
+
readonly type: "property";
|
|
856
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
857
|
+
readonly comparison: {
|
|
858
|
+
readonly operator: "eq" | "neq";
|
|
859
|
+
readonly value: string | number | boolean | null;
|
|
860
|
+
} | {
|
|
861
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
862
|
+
readonly value: number;
|
|
863
|
+
} | {
|
|
864
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
865
|
+
readonly value: string;
|
|
866
|
+
} | {
|
|
867
|
+
readonly operator: "exists" | "not_exists";
|
|
868
|
+
};
|
|
869
|
+
} | {
|
|
870
|
+
readonly type: "custom_field";
|
|
871
|
+
readonly key: string;
|
|
872
|
+
readonly comparison: {
|
|
873
|
+
readonly operator: "eq" | "neq";
|
|
874
|
+
readonly value: string | number | boolean | null;
|
|
875
|
+
} | {
|
|
876
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
877
|
+
readonly value: number;
|
|
878
|
+
} | {
|
|
879
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
880
|
+
readonly value: string;
|
|
881
|
+
} | {
|
|
882
|
+
readonly operator: "exists" | "not_exists";
|
|
883
|
+
};
|
|
884
|
+
} | {
|
|
885
|
+
readonly type: "event";
|
|
886
|
+
readonly eventName: string;
|
|
887
|
+
readonly occurred: boolean;
|
|
888
|
+
})[];
|
|
889
|
+
} | undefined;
|
|
890
|
+
}[];
|
|
891
|
+
} | {
|
|
892
|
+
readonly type: "update_tags";
|
|
893
|
+
readonly config: {
|
|
894
|
+
readonly add: readonly string[];
|
|
895
|
+
readonly remove: readonly string[];
|
|
896
|
+
};
|
|
897
|
+
readonly next: readonly {
|
|
898
|
+
readonly nodeId: string;
|
|
899
|
+
}[];
|
|
900
|
+
} | {
|
|
901
|
+
readonly type: "webhook";
|
|
902
|
+
readonly config: {
|
|
903
|
+
readonly data?: {
|
|
904
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
905
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
906
|
+
} | null)[] | {
|
|
907
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
908
|
+
} | null)[] | {
|
|
909
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
910
|
+
} | null)[] | {
|
|
911
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
912
|
+
} | null)[] | {
|
|
913
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
914
|
+
} | null)[] | {
|
|
915
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
916
|
+
} | null)[] | {
|
|
917
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
918
|
+
} | null)[] | {
|
|
919
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
920
|
+
} | null)[] | {
|
|
921
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
922
|
+
} | null)[] | {
|
|
923
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
924
|
+
} | null)[] | {
|
|
925
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
926
|
+
} | null)[] | {
|
|
927
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
928
|
+
} | null | undefined;
|
|
929
|
+
} | undefined;
|
|
930
|
+
};
|
|
931
|
+
readonly next: readonly {
|
|
932
|
+
readonly nodeId: string;
|
|
933
|
+
}[];
|
|
934
|
+
} | {
|
|
935
|
+
readonly type: "exit";
|
|
936
|
+
readonly config: {
|
|
937
|
+
readonly [x: string]: undefined;
|
|
938
|
+
};
|
|
939
|
+
readonly next: readonly never[];
|
|
940
|
+
} | undefined;
|
|
941
|
+
};
|
|
942
|
+
readonly goal?: {
|
|
943
|
+
readonly eventName: string;
|
|
944
|
+
} | undefined;
|
|
945
|
+
readonly reentry?: boolean | undefined;
|
|
946
|
+
};
|
|
947
|
+
}) => import("effect/Effect").Effect<{
|
|
948
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
949
|
+
readonly name: string;
|
|
950
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
951
|
+
readonly revision: string;
|
|
952
|
+
readonly draft: {
|
|
953
|
+
readonly trigger: {
|
|
954
|
+
readonly type: "event";
|
|
955
|
+
readonly eventName: string;
|
|
956
|
+
} | {
|
|
957
|
+
readonly type: "contact.created";
|
|
958
|
+
} | {
|
|
959
|
+
readonly type: "contact.tag_added";
|
|
960
|
+
readonly tag: string;
|
|
961
|
+
} | {
|
|
962
|
+
readonly type: "contact.joined_group";
|
|
963
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
964
|
+
};
|
|
965
|
+
readonly rootNodeId: string;
|
|
966
|
+
readonly nodes: {
|
|
967
|
+
readonly [x: string]: {
|
|
968
|
+
readonly type: "send_email";
|
|
969
|
+
readonly config: {
|
|
970
|
+
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
971
|
+
readonly senderId?: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
972
|
+
readonly templateData?: {
|
|
973
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
readonly next: readonly [{
|
|
977
|
+
readonly nodeId: string;
|
|
978
|
+
}];
|
|
979
|
+
} | {
|
|
980
|
+
readonly type: "wait";
|
|
981
|
+
readonly config: {
|
|
982
|
+
readonly durationSeconds: number;
|
|
983
|
+
};
|
|
984
|
+
readonly next: readonly [{
|
|
985
|
+
readonly nodeId: string;
|
|
986
|
+
}];
|
|
987
|
+
} | {
|
|
988
|
+
readonly type: "wait_for_event";
|
|
989
|
+
readonly config: {
|
|
990
|
+
readonly eventName: string;
|
|
991
|
+
readonly timeoutSeconds: number;
|
|
992
|
+
};
|
|
993
|
+
readonly next: readonly [{
|
|
994
|
+
readonly nodeId: string;
|
|
995
|
+
readonly outcome: "matched" | "timed_out";
|
|
996
|
+
}, {
|
|
997
|
+
readonly nodeId: string;
|
|
998
|
+
readonly outcome: "matched" | "timed_out";
|
|
999
|
+
}];
|
|
1000
|
+
} | {
|
|
1001
|
+
readonly type: "branch";
|
|
1002
|
+
readonly config: {
|
|
1003
|
+
readonly [x: string]: never;
|
|
1004
|
+
};
|
|
1005
|
+
readonly next: readonly {
|
|
1006
|
+
readonly nodeId: string;
|
|
1007
|
+
readonly condition?: {
|
|
1008
|
+
readonly match: "all" | "any";
|
|
1009
|
+
readonly predicates: readonly [{
|
|
1010
|
+
readonly type: "tag";
|
|
1011
|
+
readonly tag: string;
|
|
1012
|
+
readonly present: boolean;
|
|
1013
|
+
} | {
|
|
1014
|
+
readonly type: "property";
|
|
1015
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1016
|
+
readonly comparison: {
|
|
1017
|
+
readonly operator: "eq" | "neq";
|
|
1018
|
+
readonly value: string | number | boolean | null;
|
|
1019
|
+
} | {
|
|
1020
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1021
|
+
readonly value: number;
|
|
1022
|
+
} | {
|
|
1023
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1024
|
+
readonly value: string;
|
|
1025
|
+
} | {
|
|
1026
|
+
readonly operator: "exists" | "not_exists";
|
|
1027
|
+
};
|
|
1028
|
+
} | {
|
|
1029
|
+
readonly type: "custom_field";
|
|
1030
|
+
readonly key: string;
|
|
1031
|
+
readonly comparison: {
|
|
1032
|
+
readonly operator: "eq" | "neq";
|
|
1033
|
+
readonly value: string | number | boolean | null;
|
|
1034
|
+
} | {
|
|
1035
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1036
|
+
readonly value: number;
|
|
1037
|
+
} | {
|
|
1038
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1039
|
+
readonly value: string;
|
|
1040
|
+
} | {
|
|
1041
|
+
readonly operator: "exists" | "not_exists";
|
|
1042
|
+
};
|
|
1043
|
+
} | {
|
|
1044
|
+
readonly type: "event";
|
|
1045
|
+
readonly eventName: string;
|
|
1046
|
+
readonly occurred: boolean;
|
|
1047
|
+
}, ...({
|
|
1048
|
+
readonly type: "tag";
|
|
1049
|
+
readonly tag: string;
|
|
1050
|
+
readonly present: boolean;
|
|
1051
|
+
} | {
|
|
1052
|
+
readonly type: "property";
|
|
1053
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1054
|
+
readonly comparison: {
|
|
1055
|
+
readonly operator: "eq" | "neq";
|
|
1056
|
+
readonly value: string | number | boolean | null;
|
|
1057
|
+
} | {
|
|
1058
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1059
|
+
readonly value: number;
|
|
1060
|
+
} | {
|
|
1061
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1062
|
+
readonly value: string;
|
|
1063
|
+
} | {
|
|
1064
|
+
readonly operator: "exists" | "not_exists";
|
|
1065
|
+
};
|
|
1066
|
+
} | {
|
|
1067
|
+
readonly type: "custom_field";
|
|
1068
|
+
readonly key: string;
|
|
1069
|
+
readonly comparison: {
|
|
1070
|
+
readonly operator: "eq" | "neq";
|
|
1071
|
+
readonly value: string | number | boolean | null;
|
|
1072
|
+
} | {
|
|
1073
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1074
|
+
readonly value: number;
|
|
1075
|
+
} | {
|
|
1076
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1077
|
+
readonly value: string;
|
|
1078
|
+
} | {
|
|
1079
|
+
readonly operator: "exists" | "not_exists";
|
|
1080
|
+
};
|
|
1081
|
+
} | {
|
|
1082
|
+
readonly type: "event";
|
|
1083
|
+
readonly eventName: string;
|
|
1084
|
+
readonly occurred: boolean;
|
|
1085
|
+
})[]];
|
|
1086
|
+
};
|
|
1087
|
+
}[];
|
|
1088
|
+
} | {
|
|
1089
|
+
readonly type: "update_tags";
|
|
1090
|
+
readonly config: {
|
|
1091
|
+
readonly add: readonly string[];
|
|
1092
|
+
readonly remove: readonly string[];
|
|
1093
|
+
};
|
|
1094
|
+
readonly next: readonly [{
|
|
1095
|
+
readonly nodeId: string;
|
|
1096
|
+
}];
|
|
1097
|
+
} | {
|
|
1098
|
+
readonly type: "webhook";
|
|
1099
|
+
readonly config: {
|
|
1100
|
+
readonly data?: {
|
|
1101
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
readonly next: readonly [{
|
|
1105
|
+
readonly nodeId: string;
|
|
1106
|
+
}];
|
|
1107
|
+
} | {
|
|
1108
|
+
readonly type: "exit";
|
|
1109
|
+
readonly config: {
|
|
1110
|
+
readonly [x: string]: never;
|
|
1111
|
+
};
|
|
1112
|
+
readonly next: readonly [];
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
readonly goal?: {
|
|
1116
|
+
readonly eventName: string;
|
|
1117
|
+
};
|
|
1118
|
+
readonly reentry?: boolean;
|
|
1119
|
+
};
|
|
1120
|
+
readonly publishedVersion: number | null;
|
|
1121
|
+
readonly publishedAt: string | null;
|
|
1122
|
+
readonly createdAt: string;
|
|
1123
|
+
readonly updatedAt: string;
|
|
1124
|
+
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1125
|
+
export declare const publish: (input: {
|
|
1126
|
+
readonly id: string;
|
|
1127
|
+
readonly revision: string;
|
|
1128
|
+
}) => import("effect/Effect").Effect<{
|
|
1129
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
1130
|
+
readonly name: string;
|
|
1131
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
1132
|
+
readonly revision: string;
|
|
1133
|
+
readonly draft: {
|
|
1134
|
+
readonly trigger: {
|
|
1135
|
+
readonly type: "event";
|
|
1136
|
+
readonly eventName: string;
|
|
1137
|
+
} | {
|
|
1138
|
+
readonly type: "contact.created";
|
|
1139
|
+
} | {
|
|
1140
|
+
readonly type: "contact.tag_added";
|
|
1141
|
+
readonly tag: string;
|
|
1142
|
+
} | {
|
|
1143
|
+
readonly type: "contact.joined_group";
|
|
1144
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
1145
|
+
};
|
|
1146
|
+
readonly rootNodeId: string;
|
|
1147
|
+
readonly nodes: {
|
|
1148
|
+
readonly [x: string]: {
|
|
1149
|
+
readonly type: "send_email";
|
|
1150
|
+
readonly config: {
|
|
1151
|
+
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
1152
|
+
readonly senderId?: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
1153
|
+
readonly templateData?: {
|
|
1154
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
readonly next: readonly [{
|
|
1158
|
+
readonly nodeId: string;
|
|
1159
|
+
}];
|
|
1160
|
+
} | {
|
|
1161
|
+
readonly type: "wait";
|
|
1162
|
+
readonly config: {
|
|
1163
|
+
readonly durationSeconds: number;
|
|
1164
|
+
};
|
|
1165
|
+
readonly next: readonly [{
|
|
1166
|
+
readonly nodeId: string;
|
|
1167
|
+
}];
|
|
1168
|
+
} | {
|
|
1169
|
+
readonly type: "wait_for_event";
|
|
1170
|
+
readonly config: {
|
|
1171
|
+
readonly eventName: string;
|
|
1172
|
+
readonly timeoutSeconds: number;
|
|
1173
|
+
};
|
|
1174
|
+
readonly next: readonly [{
|
|
1175
|
+
readonly nodeId: string;
|
|
1176
|
+
readonly outcome: "matched" | "timed_out";
|
|
1177
|
+
}, {
|
|
1178
|
+
readonly nodeId: string;
|
|
1179
|
+
readonly outcome: "matched" | "timed_out";
|
|
1180
|
+
}];
|
|
1181
|
+
} | {
|
|
1182
|
+
readonly type: "branch";
|
|
1183
|
+
readonly config: {
|
|
1184
|
+
readonly [x: string]: never;
|
|
1185
|
+
};
|
|
1186
|
+
readonly next: readonly {
|
|
1187
|
+
readonly nodeId: string;
|
|
1188
|
+
readonly condition?: {
|
|
1189
|
+
readonly match: "all" | "any";
|
|
1190
|
+
readonly predicates: readonly [{
|
|
1191
|
+
readonly type: "tag";
|
|
1192
|
+
readonly tag: string;
|
|
1193
|
+
readonly present: boolean;
|
|
1194
|
+
} | {
|
|
1195
|
+
readonly type: "property";
|
|
1196
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1197
|
+
readonly comparison: {
|
|
1198
|
+
readonly operator: "eq" | "neq";
|
|
1199
|
+
readonly value: string | number | boolean | null;
|
|
1200
|
+
} | {
|
|
1201
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1202
|
+
readonly value: number;
|
|
1203
|
+
} | {
|
|
1204
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1205
|
+
readonly value: string;
|
|
1206
|
+
} | {
|
|
1207
|
+
readonly operator: "exists" | "not_exists";
|
|
1208
|
+
};
|
|
1209
|
+
} | {
|
|
1210
|
+
readonly type: "custom_field";
|
|
1211
|
+
readonly key: string;
|
|
1212
|
+
readonly comparison: {
|
|
1213
|
+
readonly operator: "eq" | "neq";
|
|
1214
|
+
readonly value: string | number | boolean | null;
|
|
1215
|
+
} | {
|
|
1216
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1217
|
+
readonly value: number;
|
|
1218
|
+
} | {
|
|
1219
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1220
|
+
readonly value: string;
|
|
1221
|
+
} | {
|
|
1222
|
+
readonly operator: "exists" | "not_exists";
|
|
1223
|
+
};
|
|
1224
|
+
} | {
|
|
1225
|
+
readonly type: "event";
|
|
1226
|
+
readonly eventName: string;
|
|
1227
|
+
readonly occurred: boolean;
|
|
1228
|
+
}, ...({
|
|
1229
|
+
readonly type: "tag";
|
|
1230
|
+
readonly tag: string;
|
|
1231
|
+
readonly present: boolean;
|
|
1232
|
+
} | {
|
|
1233
|
+
readonly type: "property";
|
|
1234
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1235
|
+
readonly comparison: {
|
|
1236
|
+
readonly operator: "eq" | "neq";
|
|
1237
|
+
readonly value: string | number | boolean | null;
|
|
1238
|
+
} | {
|
|
1239
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1240
|
+
readonly value: number;
|
|
1241
|
+
} | {
|
|
1242
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1243
|
+
readonly value: string;
|
|
1244
|
+
} | {
|
|
1245
|
+
readonly operator: "exists" | "not_exists";
|
|
1246
|
+
};
|
|
1247
|
+
} | {
|
|
1248
|
+
readonly type: "custom_field";
|
|
1249
|
+
readonly key: string;
|
|
1250
|
+
readonly comparison: {
|
|
1251
|
+
readonly operator: "eq" | "neq";
|
|
1252
|
+
readonly value: string | number | boolean | null;
|
|
1253
|
+
} | {
|
|
1254
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1255
|
+
readonly value: number;
|
|
1256
|
+
} | {
|
|
1257
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1258
|
+
readonly value: string;
|
|
1259
|
+
} | {
|
|
1260
|
+
readonly operator: "exists" | "not_exists";
|
|
1261
|
+
};
|
|
1262
|
+
} | {
|
|
1263
|
+
readonly type: "event";
|
|
1264
|
+
readonly eventName: string;
|
|
1265
|
+
readonly occurred: boolean;
|
|
1266
|
+
})[]];
|
|
1267
|
+
};
|
|
1268
|
+
}[];
|
|
1269
|
+
} | {
|
|
1270
|
+
readonly type: "update_tags";
|
|
1271
|
+
readonly config: {
|
|
1272
|
+
readonly add: readonly string[];
|
|
1273
|
+
readonly remove: readonly string[];
|
|
1274
|
+
};
|
|
1275
|
+
readonly next: readonly [{
|
|
1276
|
+
readonly nodeId: string;
|
|
1277
|
+
}];
|
|
1278
|
+
} | {
|
|
1279
|
+
readonly type: "webhook";
|
|
1280
|
+
readonly config: {
|
|
1281
|
+
readonly data?: {
|
|
1282
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
readonly next: readonly [{
|
|
1286
|
+
readonly nodeId: string;
|
|
1287
|
+
}];
|
|
1288
|
+
} | {
|
|
1289
|
+
readonly type: "exit";
|
|
1290
|
+
readonly config: {
|
|
1291
|
+
readonly [x: string]: never;
|
|
1292
|
+
};
|
|
1293
|
+
readonly next: readonly [];
|
|
1294
|
+
};
|
|
1295
|
+
};
|
|
1296
|
+
readonly goal?: {
|
|
1297
|
+
readonly eventName: string;
|
|
1298
|
+
};
|
|
1299
|
+
readonly reentry?: boolean;
|
|
1300
|
+
};
|
|
1301
|
+
readonly publishedVersion: number | null;
|
|
1302
|
+
readonly publishedAt: string | null;
|
|
1303
|
+
readonly createdAt: string;
|
|
1304
|
+
readonly updatedAt: string;
|
|
1305
|
+
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1306
|
+
export declare const pause: (input: {
|
|
1307
|
+
readonly id: string;
|
|
1308
|
+
}) => import("effect/Effect").Effect<{
|
|
1309
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
1310
|
+
readonly name: string;
|
|
1311
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
1312
|
+
readonly revision: string;
|
|
1313
|
+
readonly draft: {
|
|
1314
|
+
readonly trigger: {
|
|
1315
|
+
readonly type: "event";
|
|
1316
|
+
readonly eventName: string;
|
|
1317
|
+
} | {
|
|
1318
|
+
readonly type: "contact.created";
|
|
1319
|
+
} | {
|
|
1320
|
+
readonly type: "contact.tag_added";
|
|
1321
|
+
readonly tag: string;
|
|
1322
|
+
} | {
|
|
1323
|
+
readonly type: "contact.joined_group";
|
|
1324
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
1325
|
+
};
|
|
1326
|
+
readonly rootNodeId: string;
|
|
1327
|
+
readonly nodes: {
|
|
1328
|
+
readonly [x: string]: {
|
|
1329
|
+
readonly type: "send_email";
|
|
1330
|
+
readonly config: {
|
|
1331
|
+
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
1332
|
+
readonly senderId?: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
1333
|
+
readonly templateData?: {
|
|
1334
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1335
|
+
};
|
|
1336
|
+
};
|
|
1337
|
+
readonly next: readonly [{
|
|
1338
|
+
readonly nodeId: string;
|
|
1339
|
+
}];
|
|
1340
|
+
} | {
|
|
1341
|
+
readonly type: "wait";
|
|
1342
|
+
readonly config: {
|
|
1343
|
+
readonly durationSeconds: number;
|
|
1344
|
+
};
|
|
1345
|
+
readonly next: readonly [{
|
|
1346
|
+
readonly nodeId: string;
|
|
1347
|
+
}];
|
|
1348
|
+
} | {
|
|
1349
|
+
readonly type: "wait_for_event";
|
|
1350
|
+
readonly config: {
|
|
1351
|
+
readonly eventName: string;
|
|
1352
|
+
readonly timeoutSeconds: number;
|
|
1353
|
+
};
|
|
1354
|
+
readonly next: readonly [{
|
|
1355
|
+
readonly nodeId: string;
|
|
1356
|
+
readonly outcome: "matched" | "timed_out";
|
|
1357
|
+
}, {
|
|
1358
|
+
readonly nodeId: string;
|
|
1359
|
+
readonly outcome: "matched" | "timed_out";
|
|
1360
|
+
}];
|
|
1361
|
+
} | {
|
|
1362
|
+
readonly type: "branch";
|
|
1363
|
+
readonly config: {
|
|
1364
|
+
readonly [x: string]: never;
|
|
1365
|
+
};
|
|
1366
|
+
readonly next: readonly {
|
|
1367
|
+
readonly nodeId: string;
|
|
1368
|
+
readonly condition?: {
|
|
1369
|
+
readonly match: "all" | "any";
|
|
1370
|
+
readonly predicates: readonly [{
|
|
1371
|
+
readonly type: "tag";
|
|
1372
|
+
readonly tag: string;
|
|
1373
|
+
readonly present: boolean;
|
|
1374
|
+
} | {
|
|
1375
|
+
readonly type: "property";
|
|
1376
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1377
|
+
readonly comparison: {
|
|
1378
|
+
readonly operator: "eq" | "neq";
|
|
1379
|
+
readonly value: string | number | boolean | null;
|
|
1380
|
+
} | {
|
|
1381
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1382
|
+
readonly value: number;
|
|
1383
|
+
} | {
|
|
1384
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1385
|
+
readonly value: string;
|
|
1386
|
+
} | {
|
|
1387
|
+
readonly operator: "exists" | "not_exists";
|
|
1388
|
+
};
|
|
1389
|
+
} | {
|
|
1390
|
+
readonly type: "custom_field";
|
|
1391
|
+
readonly key: string;
|
|
1392
|
+
readonly comparison: {
|
|
1393
|
+
readonly operator: "eq" | "neq";
|
|
1394
|
+
readonly value: string | number | boolean | null;
|
|
1395
|
+
} | {
|
|
1396
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1397
|
+
readonly value: number;
|
|
1398
|
+
} | {
|
|
1399
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1400
|
+
readonly value: string;
|
|
1401
|
+
} | {
|
|
1402
|
+
readonly operator: "exists" | "not_exists";
|
|
1403
|
+
};
|
|
1404
|
+
} | {
|
|
1405
|
+
readonly type: "event";
|
|
1406
|
+
readonly eventName: string;
|
|
1407
|
+
readonly occurred: boolean;
|
|
1408
|
+
}, ...({
|
|
1409
|
+
readonly type: "tag";
|
|
1410
|
+
readonly tag: string;
|
|
1411
|
+
readonly present: boolean;
|
|
1412
|
+
} | {
|
|
1413
|
+
readonly type: "property";
|
|
1414
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1415
|
+
readonly comparison: {
|
|
1416
|
+
readonly operator: "eq" | "neq";
|
|
1417
|
+
readonly value: string | number | boolean | null;
|
|
1418
|
+
} | {
|
|
1419
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1420
|
+
readonly value: number;
|
|
1421
|
+
} | {
|
|
1422
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1423
|
+
readonly value: string;
|
|
1424
|
+
} | {
|
|
1425
|
+
readonly operator: "exists" | "not_exists";
|
|
1426
|
+
};
|
|
1427
|
+
} | {
|
|
1428
|
+
readonly type: "custom_field";
|
|
1429
|
+
readonly key: string;
|
|
1430
|
+
readonly comparison: {
|
|
1431
|
+
readonly operator: "eq" | "neq";
|
|
1432
|
+
readonly value: string | number | boolean | null;
|
|
1433
|
+
} | {
|
|
1434
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1435
|
+
readonly value: number;
|
|
1436
|
+
} | {
|
|
1437
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1438
|
+
readonly value: string;
|
|
1439
|
+
} | {
|
|
1440
|
+
readonly operator: "exists" | "not_exists";
|
|
1441
|
+
};
|
|
1442
|
+
} | {
|
|
1443
|
+
readonly type: "event";
|
|
1444
|
+
readonly eventName: string;
|
|
1445
|
+
readonly occurred: boolean;
|
|
1446
|
+
})[]];
|
|
1447
|
+
};
|
|
1448
|
+
}[];
|
|
1449
|
+
} | {
|
|
1450
|
+
readonly type: "update_tags";
|
|
1451
|
+
readonly config: {
|
|
1452
|
+
readonly add: readonly string[];
|
|
1453
|
+
readonly remove: readonly string[];
|
|
1454
|
+
};
|
|
1455
|
+
readonly next: readonly [{
|
|
1456
|
+
readonly nodeId: string;
|
|
1457
|
+
}];
|
|
1458
|
+
} | {
|
|
1459
|
+
readonly type: "webhook";
|
|
1460
|
+
readonly config: {
|
|
1461
|
+
readonly data?: {
|
|
1462
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
readonly next: readonly [{
|
|
1466
|
+
readonly nodeId: string;
|
|
1467
|
+
}];
|
|
1468
|
+
} | {
|
|
1469
|
+
readonly type: "exit";
|
|
1470
|
+
readonly config: {
|
|
1471
|
+
readonly [x: string]: never;
|
|
1472
|
+
};
|
|
1473
|
+
readonly next: readonly [];
|
|
1474
|
+
};
|
|
1475
|
+
};
|
|
1476
|
+
readonly goal?: {
|
|
1477
|
+
readonly eventName: string;
|
|
1478
|
+
};
|
|
1479
|
+
readonly reentry?: boolean;
|
|
1480
|
+
};
|
|
1481
|
+
readonly publishedVersion: number | null;
|
|
1482
|
+
readonly publishedAt: string | null;
|
|
1483
|
+
readonly createdAt: string;
|
|
1484
|
+
readonly updatedAt: string;
|
|
1485
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1486
|
+
export declare const resume: (input: {
|
|
1487
|
+
readonly id: string;
|
|
1488
|
+
}) => import("effect/Effect").Effect<{
|
|
1489
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
1490
|
+
readonly name: string;
|
|
1491
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
1492
|
+
readonly revision: string;
|
|
1493
|
+
readonly draft: {
|
|
1494
|
+
readonly trigger: {
|
|
1495
|
+
readonly type: "event";
|
|
1496
|
+
readonly eventName: string;
|
|
1497
|
+
} | {
|
|
1498
|
+
readonly type: "contact.created";
|
|
1499
|
+
} | {
|
|
1500
|
+
readonly type: "contact.tag_added";
|
|
1501
|
+
readonly tag: string;
|
|
1502
|
+
} | {
|
|
1503
|
+
readonly type: "contact.joined_group";
|
|
1504
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
1505
|
+
};
|
|
1506
|
+
readonly rootNodeId: string;
|
|
1507
|
+
readonly nodes: {
|
|
1508
|
+
readonly [x: string]: {
|
|
1509
|
+
readonly type: "send_email";
|
|
1510
|
+
readonly config: {
|
|
1511
|
+
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
1512
|
+
readonly senderId?: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
1513
|
+
readonly templateData?: {
|
|
1514
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1515
|
+
};
|
|
1516
|
+
};
|
|
1517
|
+
readonly next: readonly [{
|
|
1518
|
+
readonly nodeId: string;
|
|
1519
|
+
}];
|
|
1520
|
+
} | {
|
|
1521
|
+
readonly type: "wait";
|
|
1522
|
+
readonly config: {
|
|
1523
|
+
readonly durationSeconds: number;
|
|
1524
|
+
};
|
|
1525
|
+
readonly next: readonly [{
|
|
1526
|
+
readonly nodeId: string;
|
|
1527
|
+
}];
|
|
1528
|
+
} | {
|
|
1529
|
+
readonly type: "wait_for_event";
|
|
1530
|
+
readonly config: {
|
|
1531
|
+
readonly eventName: string;
|
|
1532
|
+
readonly timeoutSeconds: number;
|
|
1533
|
+
};
|
|
1534
|
+
readonly next: readonly [{
|
|
1535
|
+
readonly nodeId: string;
|
|
1536
|
+
readonly outcome: "matched" | "timed_out";
|
|
1537
|
+
}, {
|
|
1538
|
+
readonly nodeId: string;
|
|
1539
|
+
readonly outcome: "matched" | "timed_out";
|
|
1540
|
+
}];
|
|
1541
|
+
} | {
|
|
1542
|
+
readonly type: "branch";
|
|
1543
|
+
readonly config: {
|
|
1544
|
+
readonly [x: string]: never;
|
|
1545
|
+
};
|
|
1546
|
+
readonly next: readonly {
|
|
1547
|
+
readonly nodeId: string;
|
|
1548
|
+
readonly condition?: {
|
|
1549
|
+
readonly match: "all" | "any";
|
|
1550
|
+
readonly predicates: readonly [{
|
|
1551
|
+
readonly type: "tag";
|
|
1552
|
+
readonly tag: string;
|
|
1553
|
+
readonly present: boolean;
|
|
1554
|
+
} | {
|
|
1555
|
+
readonly type: "property";
|
|
1556
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1557
|
+
readonly comparison: {
|
|
1558
|
+
readonly operator: "eq" | "neq";
|
|
1559
|
+
readonly value: string | number | boolean | null;
|
|
1560
|
+
} | {
|
|
1561
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1562
|
+
readonly value: number;
|
|
1563
|
+
} | {
|
|
1564
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1565
|
+
readonly value: string;
|
|
1566
|
+
} | {
|
|
1567
|
+
readonly operator: "exists" | "not_exists";
|
|
1568
|
+
};
|
|
1569
|
+
} | {
|
|
1570
|
+
readonly type: "custom_field";
|
|
1571
|
+
readonly key: string;
|
|
1572
|
+
readonly comparison: {
|
|
1573
|
+
readonly operator: "eq" | "neq";
|
|
1574
|
+
readonly value: string | number | boolean | null;
|
|
1575
|
+
} | {
|
|
1576
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1577
|
+
readonly value: number;
|
|
1578
|
+
} | {
|
|
1579
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1580
|
+
readonly value: string;
|
|
1581
|
+
} | {
|
|
1582
|
+
readonly operator: "exists" | "not_exists";
|
|
1583
|
+
};
|
|
1584
|
+
} | {
|
|
1585
|
+
readonly type: "event";
|
|
1586
|
+
readonly eventName: string;
|
|
1587
|
+
readonly occurred: boolean;
|
|
1588
|
+
}, ...({
|
|
1589
|
+
readonly type: "tag";
|
|
1590
|
+
readonly tag: string;
|
|
1591
|
+
readonly present: boolean;
|
|
1592
|
+
} | {
|
|
1593
|
+
readonly type: "property";
|
|
1594
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1595
|
+
readonly comparison: {
|
|
1596
|
+
readonly operator: "eq" | "neq";
|
|
1597
|
+
readonly value: string | number | boolean | null;
|
|
1598
|
+
} | {
|
|
1599
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1600
|
+
readonly value: number;
|
|
1601
|
+
} | {
|
|
1602
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1603
|
+
readonly value: string;
|
|
1604
|
+
} | {
|
|
1605
|
+
readonly operator: "exists" | "not_exists";
|
|
1606
|
+
};
|
|
1607
|
+
} | {
|
|
1608
|
+
readonly type: "custom_field";
|
|
1609
|
+
readonly key: string;
|
|
1610
|
+
readonly comparison: {
|
|
1611
|
+
readonly operator: "eq" | "neq";
|
|
1612
|
+
readonly value: string | number | boolean | null;
|
|
1613
|
+
} | {
|
|
1614
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1615
|
+
readonly value: number;
|
|
1616
|
+
} | {
|
|
1617
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1618
|
+
readonly value: string;
|
|
1619
|
+
} | {
|
|
1620
|
+
readonly operator: "exists" | "not_exists";
|
|
1621
|
+
};
|
|
1622
|
+
} | {
|
|
1623
|
+
readonly type: "event";
|
|
1624
|
+
readonly eventName: string;
|
|
1625
|
+
readonly occurred: boolean;
|
|
1626
|
+
})[]];
|
|
1627
|
+
};
|
|
1628
|
+
}[];
|
|
1629
|
+
} | {
|
|
1630
|
+
readonly type: "update_tags";
|
|
1631
|
+
readonly config: {
|
|
1632
|
+
readonly add: readonly string[];
|
|
1633
|
+
readonly remove: readonly string[];
|
|
1634
|
+
};
|
|
1635
|
+
readonly next: readonly [{
|
|
1636
|
+
readonly nodeId: string;
|
|
1637
|
+
}];
|
|
1638
|
+
} | {
|
|
1639
|
+
readonly type: "webhook";
|
|
1640
|
+
readonly config: {
|
|
1641
|
+
readonly data?: {
|
|
1642
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1645
|
+
readonly next: readonly [{
|
|
1646
|
+
readonly nodeId: string;
|
|
1647
|
+
}];
|
|
1648
|
+
} | {
|
|
1649
|
+
readonly type: "exit";
|
|
1650
|
+
readonly config: {
|
|
1651
|
+
readonly [x: string]: never;
|
|
1652
|
+
};
|
|
1653
|
+
readonly next: readonly [];
|
|
1654
|
+
};
|
|
1655
|
+
};
|
|
1656
|
+
readonly goal?: {
|
|
1657
|
+
readonly eventName: string;
|
|
1658
|
+
};
|
|
1659
|
+
readonly reentry?: boolean;
|
|
1660
|
+
};
|
|
1661
|
+
readonly publishedVersion: number | null;
|
|
1662
|
+
readonly publishedAt: string | null;
|
|
1663
|
+
readonly createdAt: string;
|
|
1664
|
+
readonly updatedAt: string;
|
|
1665
|
+
}, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1666
|
+
export declare const archive: (input: {
|
|
1667
|
+
readonly id: string;
|
|
1668
|
+
}) => import("effect/Effect").Effect<{
|
|
1669
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyId">;
|
|
1670
|
+
readonly name: string;
|
|
1671
|
+
readonly status: "active" | "archived" | "draft" | "paused";
|
|
1672
|
+
readonly revision: string;
|
|
1673
|
+
readonly draft: {
|
|
1674
|
+
readonly trigger: {
|
|
1675
|
+
readonly type: "event";
|
|
1676
|
+
readonly eventName: string;
|
|
1677
|
+
} | {
|
|
1678
|
+
readonly type: "contact.created";
|
|
1679
|
+
} | {
|
|
1680
|
+
readonly type: "contact.tag_added";
|
|
1681
|
+
readonly tag: string;
|
|
1682
|
+
} | {
|
|
1683
|
+
readonly type: "contact.joined_group";
|
|
1684
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
1685
|
+
};
|
|
1686
|
+
readonly rootNodeId: string;
|
|
1687
|
+
readonly nodes: {
|
|
1688
|
+
readonly [x: string]: {
|
|
1689
|
+
readonly type: "send_email";
|
|
1690
|
+
readonly config: {
|
|
1691
|
+
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
1692
|
+
readonly senderId?: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
1693
|
+
readonly templateData?: {
|
|
1694
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1695
|
+
};
|
|
1696
|
+
};
|
|
1697
|
+
readonly next: readonly [{
|
|
1698
|
+
readonly nodeId: string;
|
|
1699
|
+
}];
|
|
1700
|
+
} | {
|
|
1701
|
+
readonly type: "wait";
|
|
1702
|
+
readonly config: {
|
|
1703
|
+
readonly durationSeconds: number;
|
|
1704
|
+
};
|
|
1705
|
+
readonly next: readonly [{
|
|
1706
|
+
readonly nodeId: string;
|
|
1707
|
+
}];
|
|
1708
|
+
} | {
|
|
1709
|
+
readonly type: "wait_for_event";
|
|
1710
|
+
readonly config: {
|
|
1711
|
+
readonly eventName: string;
|
|
1712
|
+
readonly timeoutSeconds: number;
|
|
1713
|
+
};
|
|
1714
|
+
readonly next: readonly [{
|
|
1715
|
+
readonly nodeId: string;
|
|
1716
|
+
readonly outcome: "matched" | "timed_out";
|
|
1717
|
+
}, {
|
|
1718
|
+
readonly nodeId: string;
|
|
1719
|
+
readonly outcome: "matched" | "timed_out";
|
|
1720
|
+
}];
|
|
1721
|
+
} | {
|
|
1722
|
+
readonly type: "branch";
|
|
1723
|
+
readonly config: {
|
|
1724
|
+
readonly [x: string]: never;
|
|
1725
|
+
};
|
|
1726
|
+
readonly next: readonly {
|
|
1727
|
+
readonly nodeId: string;
|
|
1728
|
+
readonly condition?: {
|
|
1729
|
+
readonly match: "all" | "any";
|
|
1730
|
+
readonly predicates: readonly [{
|
|
1731
|
+
readonly type: "tag";
|
|
1732
|
+
readonly tag: string;
|
|
1733
|
+
readonly present: boolean;
|
|
1734
|
+
} | {
|
|
1735
|
+
readonly type: "property";
|
|
1736
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1737
|
+
readonly comparison: {
|
|
1738
|
+
readonly operator: "eq" | "neq";
|
|
1739
|
+
readonly value: string | number | boolean | null;
|
|
1740
|
+
} | {
|
|
1741
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1742
|
+
readonly value: number;
|
|
1743
|
+
} | {
|
|
1744
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1745
|
+
readonly value: string;
|
|
1746
|
+
} | {
|
|
1747
|
+
readonly operator: "exists" | "not_exists";
|
|
1748
|
+
};
|
|
1749
|
+
} | {
|
|
1750
|
+
readonly type: "custom_field";
|
|
1751
|
+
readonly key: string;
|
|
1752
|
+
readonly comparison: {
|
|
1753
|
+
readonly operator: "eq" | "neq";
|
|
1754
|
+
readonly value: string | number | boolean | null;
|
|
1755
|
+
} | {
|
|
1756
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1757
|
+
readonly value: number;
|
|
1758
|
+
} | {
|
|
1759
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1760
|
+
readonly value: string;
|
|
1761
|
+
} | {
|
|
1762
|
+
readonly operator: "exists" | "not_exists";
|
|
1763
|
+
};
|
|
1764
|
+
} | {
|
|
1765
|
+
readonly type: "event";
|
|
1766
|
+
readonly eventName: string;
|
|
1767
|
+
readonly occurred: boolean;
|
|
1768
|
+
}, ...({
|
|
1769
|
+
readonly type: "tag";
|
|
1770
|
+
readonly tag: string;
|
|
1771
|
+
readonly present: boolean;
|
|
1772
|
+
} | {
|
|
1773
|
+
readonly type: "property";
|
|
1774
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1775
|
+
readonly comparison: {
|
|
1776
|
+
readonly operator: "eq" | "neq";
|
|
1777
|
+
readonly value: string | number | boolean | null;
|
|
1778
|
+
} | {
|
|
1779
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1780
|
+
readonly value: number;
|
|
1781
|
+
} | {
|
|
1782
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1783
|
+
readonly value: string;
|
|
1784
|
+
} | {
|
|
1785
|
+
readonly operator: "exists" | "not_exists";
|
|
1786
|
+
};
|
|
1787
|
+
} | {
|
|
1788
|
+
readonly type: "custom_field";
|
|
1789
|
+
readonly key: string;
|
|
1790
|
+
readonly comparison: {
|
|
1791
|
+
readonly operator: "eq" | "neq";
|
|
1792
|
+
readonly value: string | number | boolean | null;
|
|
1793
|
+
} | {
|
|
1794
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1795
|
+
readonly value: number;
|
|
1796
|
+
} | {
|
|
1797
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1798
|
+
readonly value: string;
|
|
1799
|
+
} | {
|
|
1800
|
+
readonly operator: "exists" | "not_exists";
|
|
1801
|
+
};
|
|
1802
|
+
} | {
|
|
1803
|
+
readonly type: "event";
|
|
1804
|
+
readonly eventName: string;
|
|
1805
|
+
readonly occurred: boolean;
|
|
1806
|
+
})[]];
|
|
1807
|
+
};
|
|
1808
|
+
}[];
|
|
1809
|
+
} | {
|
|
1810
|
+
readonly type: "update_tags";
|
|
1811
|
+
readonly config: {
|
|
1812
|
+
readonly add: readonly string[];
|
|
1813
|
+
readonly remove: readonly string[];
|
|
1814
|
+
};
|
|
1815
|
+
readonly next: readonly [{
|
|
1816
|
+
readonly nodeId: string;
|
|
1817
|
+
}];
|
|
1818
|
+
} | {
|
|
1819
|
+
readonly type: "webhook";
|
|
1820
|
+
readonly config: {
|
|
1821
|
+
readonly data?: {
|
|
1822
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1823
|
+
};
|
|
1824
|
+
};
|
|
1825
|
+
readonly next: readonly [{
|
|
1826
|
+
readonly nodeId: string;
|
|
1827
|
+
}];
|
|
1828
|
+
} | {
|
|
1829
|
+
readonly type: "exit";
|
|
1830
|
+
readonly config: {
|
|
1831
|
+
readonly [x: string]: never;
|
|
1832
|
+
};
|
|
1833
|
+
readonly next: readonly [];
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1836
|
+
readonly goal?: {
|
|
1837
|
+
readonly eventName: string;
|
|
1838
|
+
};
|
|
1839
|
+
readonly reentry?: boolean;
|
|
1840
|
+
};
|
|
1841
|
+
readonly publishedVersion: number | null;
|
|
1842
|
+
readonly publishedAt: string | null;
|
|
1843
|
+
readonly createdAt: string;
|
|
1844
|
+
readonly updatedAt: string;
|
|
1845
|
+
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
1846
|
+
export declare const getVersion: (input: {
|
|
1847
|
+
readonly id: string;
|
|
1848
|
+
readonly version: string;
|
|
1849
|
+
}) => import("effect/Effect").Effect<{
|
|
1850
|
+
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
1851
|
+
readonly version: number;
|
|
1852
|
+
readonly definition: {
|
|
1853
|
+
readonly trigger: {
|
|
1854
|
+
readonly type: "event";
|
|
1855
|
+
readonly eventName: string;
|
|
1856
|
+
} | {
|
|
1857
|
+
readonly type: "contact.created";
|
|
1858
|
+
} | {
|
|
1859
|
+
readonly type: "contact.tag_added";
|
|
1860
|
+
readonly tag: string;
|
|
1861
|
+
} | {
|
|
1862
|
+
readonly type: "contact.joined_group";
|
|
1863
|
+
readonly groupId: string & import("effect/Brand").Brand<"ContactGroupId">;
|
|
1864
|
+
};
|
|
1865
|
+
readonly rootNodeId: string;
|
|
1866
|
+
readonly nodes: {
|
|
1867
|
+
readonly [x: string]: {
|
|
1868
|
+
readonly type: "send_email";
|
|
1869
|
+
readonly config: {
|
|
1870
|
+
readonly template: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
1871
|
+
readonly senderId?: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
1872
|
+
readonly templateData?: {
|
|
1873
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
1874
|
+
};
|
|
1875
|
+
};
|
|
1876
|
+
readonly next: readonly [{
|
|
1877
|
+
readonly nodeId: string;
|
|
1878
|
+
}];
|
|
1879
|
+
} | {
|
|
1880
|
+
readonly type: "wait";
|
|
1881
|
+
readonly config: {
|
|
1882
|
+
readonly durationSeconds: number;
|
|
1883
|
+
};
|
|
1884
|
+
readonly next: readonly [{
|
|
1885
|
+
readonly nodeId: string;
|
|
1886
|
+
}];
|
|
1887
|
+
} | {
|
|
1888
|
+
readonly type: "wait_for_event";
|
|
1889
|
+
readonly config: {
|
|
1890
|
+
readonly eventName: string;
|
|
1891
|
+
readonly timeoutSeconds: number;
|
|
1892
|
+
};
|
|
1893
|
+
readonly next: readonly [{
|
|
1894
|
+
readonly nodeId: string;
|
|
1895
|
+
readonly outcome: "matched" | "timed_out";
|
|
1896
|
+
}, {
|
|
1897
|
+
readonly nodeId: string;
|
|
1898
|
+
readonly outcome: "matched" | "timed_out";
|
|
1899
|
+
}];
|
|
1900
|
+
} | {
|
|
1901
|
+
readonly type: "branch";
|
|
1902
|
+
readonly config: {
|
|
1903
|
+
readonly [x: string]: never;
|
|
1904
|
+
};
|
|
1905
|
+
readonly next: readonly {
|
|
1906
|
+
readonly nodeId: string;
|
|
1907
|
+
readonly condition?: {
|
|
1908
|
+
readonly match: "all" | "any";
|
|
1909
|
+
readonly predicates: readonly [{
|
|
1910
|
+
readonly type: "tag";
|
|
1911
|
+
readonly tag: string;
|
|
1912
|
+
readonly present: boolean;
|
|
1913
|
+
} | {
|
|
1914
|
+
readonly type: "property";
|
|
1915
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1916
|
+
readonly comparison: {
|
|
1917
|
+
readonly operator: "eq" | "neq";
|
|
1918
|
+
readonly value: string | number | boolean | null;
|
|
1919
|
+
} | {
|
|
1920
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1921
|
+
readonly value: number;
|
|
1922
|
+
} | {
|
|
1923
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1924
|
+
readonly value: string;
|
|
1925
|
+
} | {
|
|
1926
|
+
readonly operator: "exists" | "not_exists";
|
|
1927
|
+
};
|
|
1928
|
+
} | {
|
|
1929
|
+
readonly type: "custom_field";
|
|
1930
|
+
readonly key: string;
|
|
1931
|
+
readonly comparison: {
|
|
1932
|
+
readonly operator: "eq" | "neq";
|
|
1933
|
+
readonly value: string | number | boolean | null;
|
|
1934
|
+
} | {
|
|
1935
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1936
|
+
readonly value: number;
|
|
1937
|
+
} | {
|
|
1938
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1939
|
+
readonly value: string;
|
|
1940
|
+
} | {
|
|
1941
|
+
readonly operator: "exists" | "not_exists";
|
|
1942
|
+
};
|
|
1943
|
+
} | {
|
|
1944
|
+
readonly type: "event";
|
|
1945
|
+
readonly eventName: string;
|
|
1946
|
+
readonly occurred: boolean;
|
|
1947
|
+
}, ...({
|
|
1948
|
+
readonly type: "tag";
|
|
1949
|
+
readonly tag: string;
|
|
1950
|
+
readonly present: boolean;
|
|
1951
|
+
} | {
|
|
1952
|
+
readonly type: "property";
|
|
1953
|
+
readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
|
|
1954
|
+
readonly comparison: {
|
|
1955
|
+
readonly operator: "eq" | "neq";
|
|
1956
|
+
readonly value: string | number | boolean | null;
|
|
1957
|
+
} | {
|
|
1958
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1959
|
+
readonly value: number;
|
|
1960
|
+
} | {
|
|
1961
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1962
|
+
readonly value: string;
|
|
1963
|
+
} | {
|
|
1964
|
+
readonly operator: "exists" | "not_exists";
|
|
1965
|
+
};
|
|
1966
|
+
} | {
|
|
1967
|
+
readonly type: "custom_field";
|
|
1968
|
+
readonly key: string;
|
|
1969
|
+
readonly comparison: {
|
|
1970
|
+
readonly operator: "eq" | "neq";
|
|
1971
|
+
readonly value: string | number | boolean | null;
|
|
1972
|
+
} | {
|
|
1973
|
+
readonly operator: "gt" | "gte" | "lt" | "lte";
|
|
1974
|
+
readonly value: number;
|
|
1975
|
+
} | {
|
|
1976
|
+
readonly operator: "contains" | "ends_with" | "not_contains" | "starts_with";
|
|
1977
|
+
readonly value: string;
|
|
1978
|
+
} | {
|
|
1979
|
+
readonly operator: "exists" | "not_exists";
|
|
1980
|
+
};
|
|
1981
|
+
} | {
|
|
1982
|
+
readonly type: "event";
|
|
1983
|
+
readonly eventName: string;
|
|
1984
|
+
readonly occurred: boolean;
|
|
1985
|
+
})[]];
|
|
1986
|
+
};
|
|
1987
|
+
}[];
|
|
1988
|
+
} | {
|
|
1989
|
+
readonly type: "update_tags";
|
|
1990
|
+
readonly config: {
|
|
1991
|
+
readonly add: readonly string[];
|
|
1992
|
+
readonly remove: readonly string[];
|
|
1993
|
+
};
|
|
1994
|
+
readonly next: readonly [{
|
|
1995
|
+
readonly nodeId: string;
|
|
1996
|
+
}];
|
|
1997
|
+
} | {
|
|
1998
|
+
readonly type: "webhook";
|
|
1999
|
+
readonly config: {
|
|
2000
|
+
readonly data?: {
|
|
2001
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
readonly next: readonly [{
|
|
2005
|
+
readonly nodeId: string;
|
|
2006
|
+
}];
|
|
2007
|
+
} | {
|
|
2008
|
+
readonly type: "exit";
|
|
2009
|
+
readonly config: {
|
|
2010
|
+
readonly [x: string]: never;
|
|
2011
|
+
};
|
|
2012
|
+
readonly next: readonly [];
|
|
2013
|
+
};
|
|
2014
|
+
};
|
|
2015
|
+
readonly goal?: {
|
|
2016
|
+
readonly eventName: string;
|
|
2017
|
+
};
|
|
2018
|
+
readonly reentry?: boolean;
|
|
2019
|
+
};
|
|
2020
|
+
readonly publishedAt: string;
|
|
2021
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
2022
|
+
export declare const stats: (input: {
|
|
2023
|
+
readonly id: string;
|
|
2024
|
+
readonly version?: string | null | undefined;
|
|
2025
|
+
}) => import("effect/Effect").Effect<{
|
|
2026
|
+
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
2027
|
+
readonly version: number;
|
|
2028
|
+
readonly runs: {
|
|
2029
|
+
readonly active: number;
|
|
2030
|
+
readonly paused: number;
|
|
2031
|
+
readonly exited: number;
|
|
2032
|
+
readonly failed: number;
|
|
2033
|
+
};
|
|
2034
|
+
readonly nodes: readonly {
|
|
2035
|
+
readonly nodeId: string;
|
|
2036
|
+
readonly current: number;
|
|
2037
|
+
readonly entered: number;
|
|
2038
|
+
}[];
|
|
2039
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
2040
|
+
export declare const listRuns: ((input: {
|
|
2041
|
+
readonly id: string;
|
|
2042
|
+
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
2043
|
+
readonly contactId?: string | null | undefined;
|
|
2044
|
+
readonly limit?: string | null | undefined;
|
|
2045
|
+
readonly cursor?: string | null | undefined;
|
|
2046
|
+
}) => import("effect/Effect").Effect<{
|
|
2047
|
+
readonly items: readonly {
|
|
2048
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
|
|
2049
|
+
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
2050
|
+
readonly version: number;
|
|
2051
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
2052
|
+
readonly status: "active" | "exited" | "failed" | "paused";
|
|
2053
|
+
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2054
|
+
readonly failureReason: string | null;
|
|
2055
|
+
readonly currentNodeId: string | null;
|
|
2056
|
+
readonly trigger: {
|
|
2057
|
+
readonly eventId: string;
|
|
2058
|
+
readonly eventName: string;
|
|
2059
|
+
readonly properties: {
|
|
2060
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
2061
|
+
};
|
|
2062
|
+
};
|
|
2063
|
+
readonly enteredAt: string;
|
|
2064
|
+
readonly endedAt: string | null;
|
|
2065
|
+
}[];
|
|
2066
|
+
readonly nextCursor: string | null;
|
|
2067
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
|
|
2068
|
+
readonly pages: (input: {
|
|
2069
|
+
readonly id: string;
|
|
2070
|
+
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
2071
|
+
readonly contactId?: string | null | undefined;
|
|
2072
|
+
readonly limit?: string | null | undefined;
|
|
2073
|
+
readonly cursor?: string | null | undefined;
|
|
2074
|
+
}) => import("effect/Stream").Stream<{
|
|
2075
|
+
readonly items: readonly {
|
|
2076
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
|
|
2077
|
+
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
2078
|
+
readonly version: number;
|
|
2079
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
2080
|
+
readonly status: "active" | "exited" | "failed" | "paused";
|
|
2081
|
+
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2082
|
+
readonly failureReason: string | null;
|
|
2083
|
+
readonly currentNodeId: string | null;
|
|
2084
|
+
readonly trigger: {
|
|
2085
|
+
readonly eventId: string;
|
|
2086
|
+
readonly eventName: string;
|
|
2087
|
+
readonly properties: {
|
|
2088
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
2089
|
+
};
|
|
2090
|
+
};
|
|
2091
|
+
readonly enteredAt: string;
|
|
2092
|
+
readonly endedAt: string | null;
|
|
2093
|
+
}[];
|
|
2094
|
+
readonly nextCursor: string | null;
|
|
2095
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
2096
|
+
readonly items: (input: {
|
|
2097
|
+
readonly id: string;
|
|
2098
|
+
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
2099
|
+
readonly contactId?: string | null | undefined;
|
|
2100
|
+
readonly limit?: string | null | undefined;
|
|
2101
|
+
readonly cursor?: string | null | undefined;
|
|
2102
|
+
}) => import("effect/Stream").Stream<{
|
|
2103
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
|
|
2104
|
+
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
2105
|
+
readonly version: number;
|
|
2106
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
2107
|
+
readonly status: "active" | "exited" | "failed" | "paused";
|
|
2108
|
+
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2109
|
+
readonly failureReason: string | null;
|
|
2110
|
+
readonly currentNodeId: string | null;
|
|
2111
|
+
readonly trigger: {
|
|
2112
|
+
readonly eventId: string;
|
|
2113
|
+
readonly eventName: string;
|
|
2114
|
+
readonly properties: {
|
|
2115
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
2116
|
+
};
|
|
2117
|
+
};
|
|
2118
|
+
readonly enteredAt: string;
|
|
2119
|
+
readonly endedAt: string | null;
|
|
2120
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
2121
|
+
};
|
|
2122
|
+
export declare const getRun: (input: {
|
|
2123
|
+
readonly id: string;
|
|
2124
|
+
readonly runId: string;
|
|
2125
|
+
}) => import("effect/Effect").Effect<{
|
|
2126
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
|
|
2127
|
+
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
2128
|
+
readonly version: number;
|
|
2129
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
2130
|
+
readonly status: "active" | "exited" | "failed" | "paused";
|
|
2131
|
+
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2132
|
+
readonly failureReason: string | null;
|
|
2133
|
+
readonly currentNodeId: string | null;
|
|
2134
|
+
readonly trigger: {
|
|
2135
|
+
readonly eventId: string;
|
|
2136
|
+
readonly eventName: string;
|
|
2137
|
+
readonly properties: {
|
|
2138
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2141
|
+
readonly enteredAt: string;
|
|
2142
|
+
readonly endedAt: string | null;
|
|
2143
|
+
readonly steps: readonly {
|
|
2144
|
+
readonly nodeId: string;
|
|
2145
|
+
readonly type: string;
|
|
2146
|
+
readonly enteredAt: string;
|
|
2147
|
+
readonly completedAt: string | null;
|
|
2148
|
+
readonly outcome: "archived" | "completed" | "failed" | "goal" | "matched" | "timed_out" | null;
|
|
2149
|
+
readonly nextNodeId: string | null;
|
|
2150
|
+
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2151
|
+
readonly error: string | null;
|
|
2152
|
+
}[];
|
|
2153
|
+
}, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|