* Prevent two payment apps from being enabled * Find the enabled payment app to update the event type * Add string * Add tests * Type fix * Abstract check for multiple payment app logic * Type check * Address feedback * chore: Enable One Payment App Per Event Type (#12414) Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Co-authored-by: Morgan Vernay <morgan@cal.com> * Fix bug * Fix test * Clean up * Fix test * Fix test --------- Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: Alex van Andel <me@alexvanandel.com> Co-authored-by: Omar López <zomars@me.com> Co-authored-by: Morgan Vernay <morgan@cal.com> Co-authored-by: Keith Williams <keithwillcode@gmail.com>
11 lines
331 B
TypeScript
11 lines
331 B
TypeScript
// It's the shared zod for all EventType apps for their data in eventType.metadata.apps
|
|
import { z } from "zod";
|
|
|
|
export const eventTypeAppCardZod = z.object({
|
|
enabled: z.boolean().optional(),
|
|
credentialId: z.number().optional(),
|
|
appCategories: z.array(z.string()).optional(),
|
|
});
|
|
|
|
export const appKeysSchema = z.object({});
|