samva 0.21.0 → 0.22.1
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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +14 -3
- package/dist/client/sdk.gen.js +39 -0
- package/dist/client/types.gen.d.ts +93 -6
- package/dist/effect/analytics.d.ts +6 -41
- package/dist/effect/api-keys.d.ts +8 -236
- package/dist/effect/attachments.d.ts +4 -43
- package/dist/effect/brands.d.ts +6 -155
- package/dist/effect/campaigns.d.ts +12 -868
- package/dist/effect/contact-groups.d.ts +10 -135
- package/dist/effect/contacts.d.ts +21 -727
- package/dist/effect/conversations.d.ts +13 -681
- package/dist/effect/custom-fields.d.ts +4 -44
- package/dist/effect/email.d.ts +61 -1299
- package/dist/effect/events.d.ts +2 -32
- package/dist/effect/extension-installations.d.ts +9 -213
- package/dist/effect/extensions.d.ts +5 -95
- package/dist/effect/feedback.d.ts +1 -4
- package/dist/effect/generated/shared.d.ts +16 -4
- package/dist/effect/generated/shared.js +6 -0
- package/dist/effect/generated/templates.d.ts +286 -0
- package/dist/effect/generated/templates.js +36 -2
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +12 -0
- package/dist/effect/generated-metadata.d.ts +5 -0
- package/dist/effect/generated-metadata.js +1 -0
- package/dist/effect/internal/client.d.ts +5 -1
- package/dist/effect/internal/operation.d.ts +3 -3
- package/dist/effect/internal/send.d.ts +3 -3
- package/dist/effect/journeys.d.ts +167 -1836
- package/dist/effect/mailboxes.d.ts +60 -2362
- package/dist/effect/media.d.ts +5 -66
- package/dist/effect/messages.d.ts +9 -264
- package/dist/effect/namespaces.d.ts +8 -55
- package/dist/effect/operations.d.ts +3 -84
- package/dist/effect/organizations.d.ts +7 -161
- package/dist/effect/scheduled-messages.d.ts +5 -401
- package/dist/effect/subscriptions.d.ts +1 -4
- package/dist/effect/templates.d.ts +39 -1453
- package/dist/effect/templates.js +3 -1
- package/dist/effect/unsubscribe-groups.d.ts +9 -70
- package/dist/effect/webhooks.d.ts +15 -145
- package/dist/effect/whoami.d.ts +1 -46
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +4 -0
- package/dist/service-map.js +1 -0
- package/package.json +7 -7
|
@@ -2,18 +2,7 @@ export declare const list: ((input?: {
|
|
|
2
2
|
readonly status?: "active" | "archived" | "draft" | "paused" | null | undefined;
|
|
3
3
|
readonly limit?: string | null | undefined;
|
|
4
4
|
readonly cursor?: string | null | undefined;
|
|
5
|
-
} | undefined) => import("
|
|
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("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
5
|
+
} | undefined) => import("./internal/operation").OperationResult<"journeysList">) & {
|
|
17
6
|
readonly pages: (input?: {
|
|
18
7
|
readonly status?: "active" | "archived" | "draft" | "paused" | null | undefined;
|
|
19
8
|
readonly limit?: string | null | undefined;
|
|
@@ -221,12 +210,21 @@ export declare const create: (input: {
|
|
|
221
210
|
} | undefined;
|
|
222
211
|
readonly reentry?: boolean | undefined;
|
|
223
212
|
};
|
|
224
|
-
}) => import("
|
|
225
|
-
|
|
213
|
+
}) => import("./internal/operation").OperationResult<"journeysCreate">;
|
|
214
|
+
export declare const get: (input: {
|
|
215
|
+
readonly id: string;
|
|
216
|
+
}) => import("./internal/operation").OperationResult<"journeysGet">;
|
|
217
|
+
export declare const update: (input: {
|
|
218
|
+
readonly id: string;
|
|
226
219
|
readonly name: string;
|
|
227
|
-
|
|
220
|
+
}) => import("./internal/operation").OperationResult<"journeysUpdate">;
|
|
221
|
+
export declare const remove: (input: {
|
|
222
|
+
readonly id: string;
|
|
223
|
+
}) => import("./internal/operation").OperationResult<"journeysRemove">;
|
|
224
|
+
export declare const replaceDraft: (input: {
|
|
225
|
+
readonly id: string;
|
|
228
226
|
readonly revision: string;
|
|
229
|
-
readonly
|
|
227
|
+
readonly definition: {
|
|
230
228
|
readonly trigger: {
|
|
231
229
|
readonly type: "event";
|
|
232
230
|
readonly eventName: string;
|
|
@@ -237,91 +235,74 @@ export declare const create: (input: {
|
|
|
237
235
|
readonly tag: string;
|
|
238
236
|
} | {
|
|
239
237
|
readonly type: "contact.joined_group";
|
|
240
|
-
readonly groupId: string
|
|
238
|
+
readonly groupId: string;
|
|
241
239
|
};
|
|
242
240
|
readonly rootNodeId: string;
|
|
243
241
|
readonly nodes: {
|
|
244
242
|
readonly [x: string]: {
|
|
245
243
|
readonly type: "send_email";
|
|
246
244
|
readonly config: {
|
|
247
|
-
readonly template: string
|
|
248
|
-
readonly senderId?: string
|
|
245
|
+
readonly template: string;
|
|
246
|
+
readonly senderId?: string | undefined;
|
|
249
247
|
readonly templateData?: {
|
|
250
|
-
readonly [x: string]:
|
|
251
|
-
|
|
248
|
+
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 | {
|
|
249
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
250
|
+
} | null)[] | {
|
|
251
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
252
|
+
} | null)[] | {
|
|
253
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
254
|
+
} | null)[] | {
|
|
255
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
256
|
+
} | null)[] | {
|
|
257
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
258
|
+
} | null)[] | {
|
|
259
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
260
|
+
} | null)[] | {
|
|
261
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
262
|
+
} | null)[] | {
|
|
263
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
264
|
+
} | null)[] | {
|
|
265
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
266
|
+
} | null)[] | {
|
|
267
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
268
|
+
} | null)[] | {
|
|
269
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
270
|
+
} | null)[] | {
|
|
271
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
272
|
+
} | null | undefined;
|
|
273
|
+
} | undefined;
|
|
252
274
|
};
|
|
253
|
-
readonly next: readonly
|
|
275
|
+
readonly next: readonly {
|
|
254
276
|
readonly nodeId: string;
|
|
255
|
-
}];
|
|
277
|
+
}[];
|
|
256
278
|
} | {
|
|
257
279
|
readonly type: "wait";
|
|
258
280
|
readonly config: {
|
|
259
281
|
readonly durationSeconds: number;
|
|
260
282
|
};
|
|
261
|
-
readonly next: readonly
|
|
283
|
+
readonly next: readonly {
|
|
262
284
|
readonly nodeId: string;
|
|
263
|
-
}];
|
|
285
|
+
}[];
|
|
264
286
|
} | {
|
|
265
287
|
readonly type: "wait_for_event";
|
|
266
288
|
readonly config: {
|
|
267
289
|
readonly eventName: string;
|
|
268
290
|
readonly timeoutSeconds: number;
|
|
269
291
|
};
|
|
270
|
-
readonly next: readonly
|
|
271
|
-
readonly nodeId: string;
|
|
272
|
-
readonly outcome: "matched" | "timed_out";
|
|
273
|
-
}, {
|
|
292
|
+
readonly next: readonly {
|
|
274
293
|
readonly nodeId: string;
|
|
275
294
|
readonly outcome: "matched" | "timed_out";
|
|
276
|
-
}];
|
|
295
|
+
}[];
|
|
277
296
|
} | {
|
|
278
297
|
readonly type: "branch";
|
|
279
298
|
readonly config: {
|
|
280
|
-
readonly [x: string]:
|
|
299
|
+
readonly [x: string]: undefined;
|
|
281
300
|
};
|
|
282
301
|
readonly next: readonly {
|
|
283
302
|
readonly nodeId: string;
|
|
284
303
|
readonly condition?: {
|
|
285
304
|
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
|
-
}, ...({
|
|
305
|
+
readonly predicates: readonly ({
|
|
325
306
|
readonly type: "tag";
|
|
326
307
|
readonly tag: string;
|
|
327
308
|
readonly present: boolean;
|
|
@@ -359,8 +340,8 @@ export declare const create: (input: {
|
|
|
359
340
|
readonly type: "event";
|
|
360
341
|
readonly eventName: string;
|
|
361
342
|
readonly occurred: boolean;
|
|
362
|
-
})[]
|
|
363
|
-
};
|
|
343
|
+
})[];
|
|
344
|
+
} | undefined;
|
|
364
345
|
}[];
|
|
365
346
|
} | {
|
|
366
347
|
readonly type: "update_tags";
|
|
@@ -368,1758 +349,138 @@ export declare const create: (input: {
|
|
|
368
349
|
readonly add: readonly string[];
|
|
369
350
|
readonly remove: readonly string[];
|
|
370
351
|
};
|
|
371
|
-
readonly next: readonly
|
|
352
|
+
readonly next: readonly {
|
|
372
353
|
readonly nodeId: string;
|
|
373
|
-
}];
|
|
354
|
+
}[];
|
|
374
355
|
} | {
|
|
375
356
|
readonly type: "webhook";
|
|
376
357
|
readonly config: {
|
|
377
358
|
readonly data?: {
|
|
378
|
-
readonly [x: string]:
|
|
379
|
-
|
|
359
|
+
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 | {
|
|
360
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
361
|
+
} | null)[] | {
|
|
362
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
363
|
+
} | null)[] | {
|
|
364
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
365
|
+
} | null)[] | {
|
|
366
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
367
|
+
} | null)[] | {
|
|
368
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
369
|
+
} | null)[] | {
|
|
370
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
371
|
+
} | null)[] | {
|
|
372
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
373
|
+
} | null)[] | {
|
|
374
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
375
|
+
} | null)[] | {
|
|
376
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
377
|
+
} | null)[] | {
|
|
378
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
379
|
+
} | null)[] | {
|
|
380
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
381
|
+
} | null)[] | {
|
|
382
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
383
|
+
} | null | undefined;
|
|
384
|
+
} | undefined;
|
|
380
385
|
};
|
|
381
|
-
readonly next: readonly
|
|
386
|
+
readonly next: readonly {
|
|
382
387
|
readonly nodeId: string;
|
|
383
|
-
}];
|
|
388
|
+
}[];
|
|
384
389
|
} | {
|
|
385
390
|
readonly type: "exit";
|
|
386
391
|
readonly config: {
|
|
387
|
-
readonly [x: string]:
|
|
392
|
+
readonly [x: string]: undefined;
|
|
388
393
|
};
|
|
389
|
-
readonly next: readonly [];
|
|
390
|
-
};
|
|
394
|
+
readonly next: readonly never[];
|
|
395
|
+
} | undefined;
|
|
391
396
|
};
|
|
392
397
|
readonly goal?: {
|
|
393
398
|
readonly eventName: string;
|
|
394
|
-
};
|
|
395
|
-
readonly reentry?: boolean;
|
|
399
|
+
} | undefined;
|
|
400
|
+
readonly reentry?: boolean | undefined;
|
|
396
401
|
};
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
readonly createdAt: string;
|
|
400
|
-
readonly updatedAt: string;
|
|
401
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
402
|
-
export declare const get: (input: {
|
|
402
|
+
}) => import("./internal/operation").OperationResult<"journeysReplaceDraft">;
|
|
403
|
+
export declare const publish: (input: {
|
|
403
404
|
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
405
|
readonly revision: string;
|
|
409
|
-
|
|
406
|
+
}) => import("./internal/operation").OperationResult<"journeysPublish">;
|
|
407
|
+
export declare const pause: (input: {
|
|
408
|
+
readonly id: string;
|
|
409
|
+
}) => import("./internal/operation").OperationResult<"journeysPause">;
|
|
410
|
+
export declare const resume: (input: {
|
|
411
|
+
readonly id: string;
|
|
412
|
+
}) => import("./internal/operation").OperationResult<"journeysResume">;
|
|
413
|
+
export declare const archive: (input: {
|
|
414
|
+
readonly id: string;
|
|
415
|
+
}) => import("./internal/operation").OperationResult<"journeysArchive">;
|
|
416
|
+
export declare const getVersion: (input: {
|
|
417
|
+
readonly id: string;
|
|
418
|
+
readonly version: string;
|
|
419
|
+
}) => import("./internal/operation").OperationResult<"journeysGetVersion">;
|
|
420
|
+
export declare const stats: (input: {
|
|
421
|
+
readonly id: string;
|
|
422
|
+
readonly version?: string | null | undefined;
|
|
423
|
+
}) => import("./internal/operation").OperationResult<"journeysStats">;
|
|
424
|
+
export declare const listRuns: ((input: {
|
|
425
|
+
readonly id: string;
|
|
426
|
+
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
427
|
+
readonly contactId?: string | null | undefined;
|
|
428
|
+
readonly limit?: string | null | undefined;
|
|
429
|
+
readonly cursor?: string | null | undefined;
|
|
430
|
+
}) => import("./internal/operation").OperationResult<"journeysListRuns">) & {
|
|
431
|
+
readonly pages: (input: {
|
|
432
|
+
readonly id: string;
|
|
433
|
+
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
434
|
+
readonly contactId?: string | null | undefined;
|
|
435
|
+
readonly limit?: string | null | undefined;
|
|
436
|
+
readonly cursor?: string | null | undefined;
|
|
437
|
+
}) => import("effect/Stream").Stream<{
|
|
438
|
+
readonly items: readonly {
|
|
439
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
|
|
440
|
+
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
441
|
+
readonly version: number;
|
|
442
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
443
|
+
readonly status: "active" | "exited" | "failed" | "paused";
|
|
444
|
+
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
445
|
+
readonly failureReason: string | null;
|
|
446
|
+
readonly currentNodeId: string | null;
|
|
447
|
+
readonly holdReason: string | null;
|
|
448
|
+
readonly holdUntil: string | null;
|
|
449
|
+
readonly trigger: {
|
|
450
|
+
readonly eventId: string;
|
|
451
|
+
readonly eventName: string;
|
|
452
|
+
readonly properties: {
|
|
453
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
readonly enteredAt: string;
|
|
457
|
+
readonly endedAt: string | null;
|
|
458
|
+
}[];
|
|
459
|
+
readonly nextCursor: string | null;
|
|
460
|
+
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
461
|
+
readonly items: (input: {
|
|
462
|
+
readonly id: string;
|
|
463
|
+
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
464
|
+
readonly contactId?: string | null | undefined;
|
|
465
|
+
readonly limit?: string | null | undefined;
|
|
466
|
+
readonly cursor?: string | null | undefined;
|
|
467
|
+
}) => import("effect/Stream").Stream<{
|
|
468
|
+
readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
|
|
469
|
+
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
470
|
+
readonly version: number;
|
|
471
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
472
|
+
readonly status: "active" | "exited" | "failed" | "paused";
|
|
473
|
+
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
474
|
+
readonly failureReason: string | null;
|
|
475
|
+
readonly currentNodeId: string | null;
|
|
476
|
+
readonly holdReason: string | null;
|
|
477
|
+
readonly holdUntil: string | null;
|
|
410
478
|
readonly trigger: {
|
|
411
|
-
readonly
|
|
479
|
+
readonly eventId: string;
|
|
412
480
|
readonly eventName: string;
|
|
413
|
-
|
|
414
|
-
|
|
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("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").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("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").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("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").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("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").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("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").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("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").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("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").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("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").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("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").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("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").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 holdReason: string | null;
|
|
2057
|
-
readonly holdUntil: string | null;
|
|
2058
|
-
readonly trigger: {
|
|
2059
|
-
readonly eventId: string;
|
|
2060
|
-
readonly eventName: string;
|
|
2061
|
-
readonly properties: {
|
|
2062
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2063
|
-
};
|
|
2064
|
-
};
|
|
2065
|
-
readonly enteredAt: string;
|
|
2066
|
-
readonly endedAt: string | null;
|
|
2067
|
-
}[];
|
|
2068
|
-
readonly nextCursor: string | null;
|
|
2069
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
|
|
2070
|
-
readonly pages: (input: {
|
|
2071
|
-
readonly id: string;
|
|
2072
|
-
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
2073
|
-
readonly contactId?: string | null | undefined;
|
|
2074
|
-
readonly limit?: string | null | undefined;
|
|
2075
|
-
readonly cursor?: string | null | undefined;
|
|
2076
|
-
}) => import("effect/Stream").Stream<{
|
|
2077
|
-
readonly items: readonly {
|
|
2078
|
-
readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
|
|
2079
|
-
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
2080
|
-
readonly version: number;
|
|
2081
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
2082
|
-
readonly status: "active" | "exited" | "failed" | "paused";
|
|
2083
|
-
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2084
|
-
readonly failureReason: string | null;
|
|
2085
|
-
readonly currentNodeId: string | null;
|
|
2086
|
-
readonly holdReason: string | null;
|
|
2087
|
-
readonly holdUntil: string | null;
|
|
2088
|
-
readonly trigger: {
|
|
2089
|
-
readonly eventId: string;
|
|
2090
|
-
readonly eventName: string;
|
|
2091
|
-
readonly properties: {
|
|
2092
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2093
|
-
};
|
|
2094
|
-
};
|
|
2095
|
-
readonly enteredAt: string;
|
|
2096
|
-
readonly endedAt: string | null;
|
|
2097
|
-
}[];
|
|
2098
|
-
readonly nextCursor: string | null;
|
|
2099
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
2100
|
-
readonly items: (input: {
|
|
2101
|
-
readonly id: string;
|
|
2102
|
-
readonly status?: "active" | "exited" | "failed" | "paused" | null | undefined;
|
|
2103
|
-
readonly contactId?: string | null | undefined;
|
|
2104
|
-
readonly limit?: string | null | undefined;
|
|
2105
|
-
readonly cursor?: string | null | undefined;
|
|
2106
|
-
}) => import("effect/Stream").Stream<{
|
|
2107
|
-
readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
|
|
2108
|
-
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
2109
|
-
readonly version: number;
|
|
2110
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
2111
|
-
readonly status: "active" | "exited" | "failed" | "paused";
|
|
2112
|
-
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2113
|
-
readonly failureReason: string | null;
|
|
2114
|
-
readonly currentNodeId: string | null;
|
|
2115
|
-
readonly holdReason: string | null;
|
|
2116
|
-
readonly holdUntil: string | null;
|
|
2117
|
-
readonly trigger: {
|
|
2118
|
-
readonly eventId: string;
|
|
2119
|
-
readonly eventName: string;
|
|
2120
|
-
readonly properties: {
|
|
2121
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2122
|
-
};
|
|
481
|
+
readonly properties: {
|
|
482
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
483
|
+
};
|
|
2123
484
|
};
|
|
2124
485
|
readonly enteredAt: string;
|
|
2125
486
|
readonly endedAt: string | null;
|
|
@@ -2128,34 +489,4 @@ export declare const listRuns: ((input: {
|
|
|
2128
489
|
export declare const getRun: (input: {
|
|
2129
490
|
readonly id: string;
|
|
2130
491
|
readonly runId: string;
|
|
2131
|
-
}) => import("
|
|
2132
|
-
readonly id: string & import("effect/Brand").Brand<"JourneyRunId">;
|
|
2133
|
-
readonly journeyId: string & import("effect/Brand").Brand<"JourneyId">;
|
|
2134
|
-
readonly version: number;
|
|
2135
|
-
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
2136
|
-
readonly status: "active" | "exited" | "failed" | "paused";
|
|
2137
|
-
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2138
|
-
readonly failureReason: string | null;
|
|
2139
|
-
readonly currentNodeId: string | null;
|
|
2140
|
-
readonly holdReason: string | null;
|
|
2141
|
-
readonly holdUntil: string | null;
|
|
2142
|
-
readonly trigger: {
|
|
2143
|
-
readonly eventId: string;
|
|
2144
|
-
readonly eventName: string;
|
|
2145
|
-
readonly properties: {
|
|
2146
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
2147
|
-
};
|
|
2148
|
-
};
|
|
2149
|
-
readonly enteredAt: string;
|
|
2150
|
-
readonly endedAt: string | null;
|
|
2151
|
-
readonly steps: readonly {
|
|
2152
|
-
readonly nodeId: string;
|
|
2153
|
-
readonly type: string;
|
|
2154
|
-
readonly enteredAt: string;
|
|
2155
|
-
readonly completedAt: string | null;
|
|
2156
|
-
readonly outcome: "archived" | "completed" | "failed" | "goal" | "matched" | "timed_out" | null;
|
|
2157
|
-
readonly nextNodeId: string | null;
|
|
2158
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
2159
|
-
readonly error: string | null;
|
|
2160
|
-
}[];
|
|
2161
|
-
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
492
|
+
}) => import("./internal/operation").OperationResult<"journeysGetRun">;
|