Skip to content

Commit

Permalink
Streamlining and aligning the Curriculum Model API usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
buchananwill committed Apr 13, 2024
1 parent 796c4c8 commit 30a48fb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/api/dtos/CarouselLeanDtoSchema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { z } from 'zod';
export const CarouselLeanDtoSchema = z.object({
id: z.string().uuid(),
carouselOrdinal: z.number(),
});
export type CarouselLeanDto = z.infer<typeof CarouselLeanDtoSchema>;
9 changes: 9 additions & 0 deletions app/api/dtos/WorkSeriesSchemaBundleDtoSchema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { WorkSeriesBundleItemDtoSchema } from './WorkSeriesBundleItemDtoSchema';
import { z } from 'zod';
export const WorkSeriesSchemaBundleDtoSchema = z.object({
id: z.number(),
workProjectSeriesSchemaIds: z.array(z.string()),
workSeriesBundleItems: z.array(WorkSeriesBundleItemDtoSchema),
name: z.string(),
});
export type WorkSeriesSchemaBundleDto = z.infer<typeof WorkSeriesSchemaBundleDtoSchema>;

0 comments on commit 30a48fb

Please sign in to comment.