This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createMachine, DoneInvokeEvent, interpret } from "xstate"; | |
| import DataLoader from "dataloader"; | |
| import { chunk } from "lodash"; | |
| type Mode = "DryRun" | "Live"; | |
| type AuthUser = { id: string }; | |
| type BatchRecord = { email: string; active: boolean }; | |
| type AppRecord = { id: string; email: string; active: boolean }; | |
| type DBAction = "NOTHING" | "CREATE" | "UPDATE" | "DELETE"; | |
| type SalesforceAction = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const examinationSessionMachine = Machine({ | |
| id: "session", | |
| initial: "inSession", | |
| states: { | |
| init: { | |
| on: { | |
| LOAD: "loading" | |
| } | |
| }, | |
| loading: { |