(schema: z.ZodTypeAny)
| 163 | }; |
| 164 | |
| 165 | export function waitForEventSchema(schema: z.ZodTypeAny) { |
| 166 | return z.object({ |
| 167 | id: z.string(), |
| 168 | name: z.string(), |
| 169 | source: z.string(), |
| 170 | payload: schema, |
| 171 | timestamp: z.coerce.date(), |
| 172 | context: z.any().optional(), |
| 173 | accountId: z.string().optional(), |
| 174 | }); |
| 175 | } |
| 176 | |
| 177 | export type NotificationEvents = { |
| 178 | runSucceeeded: (notification: SuccessfulRunNotification<any>) => void; |
no outgoing calls
no test coverage detected
searching dependent graphs…