CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/lib/api/schema/purchases/common.ts
Views: 688
1
import { z } from "../../framework";
2
3
export const PurchaseIdSchema = z.number().min(0).describe("Purchase id.");
4
5
export type PurchaseId = z.infer<typeof PurchaseIdSchema>;
6
7
export const InvoiceIdSchema = z.number().min(0).describe("Invoice id.");
8
9
export type InvoiceId = z.infer<typeof InvoiceIdSchema>;
10
11
export const DayStatementIdSchema = z
12
.number()
13
.min(0)
14
.describe("Daily statement id.");
15
16
export type DayStatementId = z.infer<typeof DayStatementIdSchema>;
17
18
export const MonthStatementIdSchema = z
19
.number()
20
.min(0)
21
.describe("Monthly statement id.");
22
23
export type MonthStatementId = z.infer<typeof MonthStatementIdSchema>;
24
25