-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't share billing periods between frontend and workers for now
- Loading branch information
1 parent
9c134ee
commit 4340e15
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import { z } from 'zod'; | ||
import { allBillingPeriods } from '../../../../support-frontend/assets/helpers/productPrice/billingPeriods'; | ||
|
||
export const billingPeriodSchema = z.enum(allBillingPeriods); | ||
export const billingPeriodSchema = z.union([ | ||
z.literal('Monthly'), //TODO: share this with support-frontend, when I did this knip complained about unused exports so I'll look into it later | ||
z.literal('Annual'), | ||
z.literal('Quarterly'), | ||
]); | ||
export type BillingPeriod = z.infer<typeof billingPeriodSchema>; |