Ghost
New
phantomknight287
/
saturn
public
The operating system for your freelance business.
Star
0
Fork
0
Code
Issues
0
Pull requests
0
main
1
branch
Go to file
t
Code
saturn
src
app
(organization)
[org]
projects
common.ts
Staging (#68)
90eccbb
4 months ago
13 lines · 470 B
1
import
z
from
'
zod
'
2
3
export
const
createProjectSchema
=
4
organizationId
:
z
.
string
5
orgSlug
:
z
.
string
6
name
:
z
.
string
7
dueDate
:
z
.
date
8
description
:
z
.
string
9
invoiceFromName
:
z
.
string
10
invoiceFromAddress
:
z
.
string
11
invoiceToName
:
z
.
string
12
invoiceToAddress
:
z
.
string
13
}
)
z
.
object
(
{
()
.
min
(
1
)
,
()
.
min
(
1
)
,
()
.
min
(
1
,
'
Project name is required
'
)
,
()
.
optional
()
,
()
.
optional
()
,
()
.
max
(
200
)
.
optional
()
,
()
.
max
(
1000
)
.
optional
()
,
()
.
max
(
200
)
.
optional
()
,
()
.
max
(
1000
)
.
optional
()
,