Skip to content

Commit

Permalink
chore: regenerate client SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
helmturner committed May 16, 2024
1 parent cee0a95 commit 73281ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type Draft = Partial<{
export type DatabaseObject = {
id: number;
created: string;
updated?: string | undefined;
updated?: (null | string) | undefined;
};
export type ProposalState =
| {
Expand Down Expand Up @@ -119,7 +119,7 @@ const Draft: z.ZodType<Draft> = z
const DatabaseObject: z.ZodType<DatabaseObject> = z.object({
id: z.number().int(),
created: z.string().datetime({ offset: true }),
updated: z.string().datetime({ offset: true }).optional(),
updated: z.union([z.null(), z.string()]).optional(),
});
const DraftIndex: z.ZodType<DraftIndex> = Paginated.and(
z.object({ drafts: z.array(Draft.and(DatabaseObject)) }),
Expand Down Expand Up @@ -157,7 +157,7 @@ const ProposalIndex: z.ZodType<ProposalIndex> = Paginated.and(
proposals: z.array(Proposal.and(ProposalState).and(DatabaseObject)),
}),
);
const Expirable = z.object({ expires: z.string().datetime({ offset: true }) });
const Expirable = z.object({ expires: z.union([z.null(), z.string()]) });

export const schemas = {
Paginated,
Expand Down

0 comments on commit 73281ee

Please sign in to comment.