|
| 1 | +import { type z } from 'zod'; |
| 2 | + |
1 | 3 | import { type HistoryEvent } from '@/__generated__/proto-ts/uber/cadence/api/v1/HistoryEvent'; |
2 | 4 |
|
3 | 5 | import formatActivityTaskCancelRequestedEvent from '../format-workflow-history-event/format-activity-task-cancel-requested-event'; |
@@ -379,3 +381,173 @@ export const getFormatHistoryEventSchema = function (event: HistoryEvent) { |
379 | 381 | return unExistingEventType(event.attributes); // should not be unreachable, used to show a type error if not all attributes cases are covered |
380 | 382 | } |
381 | 383 | }; |
| 384 | + |
| 385 | +export type FormattedWorkflowExecutionStartedEvent = z.infer< |
| 386 | + typeof formatWorkflowExecutionStartedEventSchema |
| 387 | +>; |
| 388 | +export type FormattedWorkflowExecutionCompletedEvent = z.infer< |
| 389 | + typeof formatWorkflowExecutionCompletedEventSchema |
| 390 | +>; |
| 391 | +export type FormattedWorkflowExecutionFailedEvent = z.infer< |
| 392 | + typeof formatWorkflowExecutionFailedEventSchema |
| 393 | +>; |
| 394 | +export type FormattedWorkflowExecutionTimedOutEvent = z.infer< |
| 395 | + typeof formatWorkflowExecutionTimedOutEventSchema |
| 396 | +>; |
| 397 | +export type FormattedWorkflowExecutionSignaledEvent = z.infer< |
| 398 | + typeof formatWorkflowExecutionSignaledEventSchema |
| 399 | +>; |
| 400 | +export type FormattedWorkflowExecutionTerminatedEvent = z.infer< |
| 401 | + typeof formatWorkflowExecutionTerminatedEventSchema |
| 402 | +>; |
| 403 | +export type FormattedWorkflowExecutionCanceledEvent = z.infer< |
| 404 | + typeof formatWorkflowExecutionCanceledEventSchema |
| 405 | +>; |
| 406 | +export type FormattedWorkflowExecutionContinuedAsNewEvent = z.infer< |
| 407 | + typeof formatWorkflowExecutionContinuedAsNewEventSchema |
| 408 | +>; |
| 409 | +export type FormattedWorkflowExecutionCancelRequestedEventAttributesSchema = |
| 410 | + z.infer<typeof formatWorkflowExecutionCancelRequestedEventAttributesSchema>; |
| 411 | +export type FormattedDecisionTaskCompletedEvent = z.infer< |
| 412 | + typeof formatDecisionTaskCompletedEventSchema |
| 413 | +>; |
| 414 | +export type FormattedDecisionTaskFailedEvent = z.infer< |
| 415 | + typeof formatDecisionTaskFailedEventSchema |
| 416 | +>; |
| 417 | +export type FormattedDecisionTaskScheduledEvent = z.infer< |
| 418 | + typeof formatDecisionTaskScheduledEventSchema |
| 419 | +>; |
| 420 | +export type FormattedDecisionTaskStartedEvent = z.infer< |
| 421 | + typeof formatDecisionTaskStartedEventSchema |
| 422 | +>; |
| 423 | +export type FormattedDecisionTaskTimedOutEvent = z.infer< |
| 424 | + typeof formatDecisionTaskTimedOutEventSchema |
| 425 | +>; |
| 426 | +export type FormattedActivityTaskCancelRequestedEvent = z.infer< |
| 427 | + typeof formatActivityTaskCancelRequestedEventSchema |
| 428 | +>; |
| 429 | +export type FormattedActivityTaskCanceledEvent = z.infer< |
| 430 | + typeof formatActivityTaskCanceledEventSchema |
| 431 | +>; |
| 432 | +export type FormattedActivityTaskCompletedEvent = z.infer< |
| 433 | + typeof formatActivityTaskCompletedEventSchema |
| 434 | +>; |
| 435 | +export type FormattedActivityTaskFailedEvent = z.infer< |
| 436 | + typeof formatActivityTaskFailedEventSchema |
| 437 | +>; |
| 438 | +export type FormattedActivityTaskScheduledEvent = z.infer< |
| 439 | + typeof formatActivityTaskScheduledEventSchema |
| 440 | +>; |
| 441 | +export type FormattedActivityTaskStartedEvent = z.infer< |
| 442 | + typeof formatActivityTaskStartedEventSchema |
| 443 | +>; |
| 444 | +export type FormattedActivityTaskTimedOutEvent = z.infer< |
| 445 | + typeof formatActivityTaskTimedOutEventSchema |
| 446 | +>; |
| 447 | +export type FormattedRequestCancelActivityTaskFailedEvent = z.infer< |
| 448 | + typeof formatRequestCancelActivityTaskFailedEventSchema |
| 449 | +>; |
| 450 | +export type FormattedTimerCanceledEvent = z.infer< |
| 451 | + typeof formatTimerCanceledEventSchema |
| 452 | +>; |
| 453 | +export type FormattedTimerFiredEvent = z.infer< |
| 454 | + typeof formatTimerFiredEventSchema |
| 455 | +>; |
| 456 | +export type FormattedTimerStartedEvent = z.infer< |
| 457 | + typeof formatTimerStartedEventSchema |
| 458 | +>; |
| 459 | +export type FormattedCancelTimerFailedEvent = z.infer< |
| 460 | + typeof formatCancelTimerFailedEventSchema |
| 461 | +>; |
| 462 | +export type FormattedMarkerRecordedEvent = z.infer< |
| 463 | + typeof formatMarkerRecordedEventSchema |
| 464 | +>; |
| 465 | +export type FormattedExternalWorkflowExecutionCancelRequestedEvent = z.infer< |
| 466 | + typeof formatExternalWorkflowExecutionCancelRequestedEventSchema |
| 467 | +>; |
| 468 | +export type FormattedExternalWorkflowExecutionSignaledEvent = z.infer< |
| 469 | + typeof formatExternalWorkflowExecutionSignaledEventSchema |
| 470 | +>; |
| 471 | +export type FormattedSignalExternalWorkflowExecutionFailedEvent = z.infer< |
| 472 | + typeof formatSignalExternalWorkflowExecutionFailedEventSchema |
| 473 | +>; |
| 474 | +export type FormattedSignalExternalWorkflowExecutionInitiatedEvent = z.infer< |
| 475 | + typeof formatSignalExternalWorkflowExecutionInitiatedEventSchema |
| 476 | +>; |
| 477 | +export type FormattedRequestCancelExternalWorkflowExecutionFailedEvent = |
| 478 | + z.infer<typeof formatRequestCancelExternalWorkflowExecutionFailedEventSchema>; |
| 479 | +export type FormattedRequestCancelExternalWorkflowExecutionInitiatedEvent = |
| 480 | + z.infer< |
| 481 | + typeof formatRequestCancelExternalWorkflowExecutionInitiatedEventSchema |
| 482 | + >; |
| 483 | +export type FormattedChildWorkflowExecutionCanceledEvent = z.infer< |
| 484 | + typeof formatChildWorkflowExecutionCanceledEventSchema |
| 485 | +>; |
| 486 | +export type FormattedChildWorkflowExecutionCompletedEvent = z.infer< |
| 487 | + typeof formatChildWorkflowExecutionCompletedEventSchema |
| 488 | +>; |
| 489 | +export type FormattedChildWorkflowExecutionFailedEvent = z.infer< |
| 490 | + typeof formatChildWorkflowExecutionFailedEventSchema |
| 491 | +>; |
| 492 | +export type FormattedChildWorkflowExecutionStartedEvent = z.infer< |
| 493 | + typeof formatChildWorkflowExecutionStartedEventSchema |
| 494 | +>; |
| 495 | +export type FormattedChildWorkflowExecutionTerminatedEvent = z.infer< |
| 496 | + typeof formatChildWorkflowExecutionTerminatedEventSchema |
| 497 | +>; |
| 498 | +export type FormattedChildWorkflowExecutionTimedOutEvent = z.infer< |
| 499 | + typeof formatChildWorkflowExecutionTimedOutEventSchema |
| 500 | +>; |
| 501 | +export type FormattedStartChildWorkflowExecutionFailedEvent = z.infer< |
| 502 | + typeof formatStartChildWorkflowExecutionFailedEventSchema |
| 503 | +>; |
| 504 | +export type FormattedStartChildWorkflowExecutionInitiatedEvent = z.infer< |
| 505 | + typeof formatStartChildWorkflowExecutionInitiatedEventSchema |
| 506 | +>; |
| 507 | +export type FormattedUpsertWorkflowSearchAttributesEvent = z.infer< |
| 508 | + typeof formatUpsertWorkflowSearchAttributesEventSchema |
| 509 | +>; |
| 510 | + |
| 511 | +export type FormattedHistoryEvent = |
| 512 | + | FormattedWorkflowExecutionStartedEvent |
| 513 | + | FormattedWorkflowExecutionCompletedEvent |
| 514 | + | FormattedWorkflowExecutionFailedEvent |
| 515 | + | FormattedWorkflowExecutionTimedOutEvent |
| 516 | + | FormattedWorkflowExecutionSignaledEvent |
| 517 | + | FormattedWorkflowExecutionTerminatedEvent |
| 518 | + | FormattedWorkflowExecutionCanceledEvent |
| 519 | + | FormattedWorkflowExecutionContinuedAsNewEvent |
| 520 | + | FormattedWorkflowExecutionCancelRequestedEventAttributesSchema |
| 521 | + | FormattedDecisionTaskCompletedEvent |
| 522 | + | FormattedDecisionTaskFailedEvent |
| 523 | + | FormattedDecisionTaskScheduledEvent |
| 524 | + | FormattedDecisionTaskStartedEvent |
| 525 | + | FormattedDecisionTaskTimedOutEvent |
| 526 | + | FormattedActivityTaskCancelRequestedEvent |
| 527 | + | FormattedActivityTaskCanceledEvent |
| 528 | + | FormattedActivityTaskCompletedEvent |
| 529 | + | FormattedActivityTaskFailedEvent |
| 530 | + | FormattedActivityTaskScheduledEvent |
| 531 | + | FormattedActivityTaskStartedEvent |
| 532 | + | FormattedActivityTaskTimedOutEvent |
| 533 | + | FormattedRequestCancelActivityTaskFailedEvent |
| 534 | + | FormattedTimerCanceledEvent |
| 535 | + | FormattedTimerFiredEvent |
| 536 | + | FormattedTimerStartedEvent |
| 537 | + | FormattedCancelTimerFailedEvent |
| 538 | + | FormattedMarkerRecordedEvent |
| 539 | + | FormattedExternalWorkflowExecutionCancelRequestedEvent |
| 540 | + | FormattedExternalWorkflowExecutionSignaledEvent |
| 541 | + | FormattedSignalExternalWorkflowExecutionFailedEvent |
| 542 | + | FormattedSignalExternalWorkflowExecutionInitiatedEvent |
| 543 | + | FormattedRequestCancelExternalWorkflowExecutionFailedEvent |
| 544 | + | FormattedRequestCancelExternalWorkflowExecutionInitiatedEvent |
| 545 | + | FormattedChildWorkflowExecutionCanceledEvent |
| 546 | + | FormattedChildWorkflowExecutionCompletedEvent |
| 547 | + | FormattedChildWorkflowExecutionFailedEvent |
| 548 | + | FormattedChildWorkflowExecutionStartedEvent |
| 549 | + | FormattedChildWorkflowExecutionTerminatedEvent |
| 550 | + | FormattedChildWorkflowExecutionTimedOutEvent |
| 551 | + | FormattedStartChildWorkflowExecutionFailedEvent |
| 552 | + | FormattedStartChildWorkflowExecutionInitiatedEvent |
| 553 | + | FormattedUpsertWorkflowSearchAttributesEvent; |
0 commit comments