♻️ Re-organize workspace folders
This commit is contained in:
11
packages/schemas/features/billing/invoice.ts
Normal file
11
packages/schemas/features/billing/invoice.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export const invoiceSchema = z.object({
|
||||
id: z.string(),
|
||||
url: z.string(),
|
||||
amount: z.number(),
|
||||
currency: z.string(),
|
||||
date: z.number().nullable(),
|
||||
})
|
||||
|
||||
export type Invoice = z.infer<typeof invoiceSchema>
|
9
packages/schemas/features/billing/subscription.ts
Normal file
9
packages/schemas/features/billing/subscription.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export const subscriptionSchema = z.object({
|
||||
additionalChatsIndex: z.number(),
|
||||
additionalStorageIndex: z.number(),
|
||||
currency: z.enum(['eur', 'usd']),
|
||||
})
|
||||
|
||||
export type Subscription = z.infer<typeof subscriptionSchema>
|
Reference in New Issue
Block a user