feat: add operationId for autogenerated sdk
This commit is contained in:
1 parent
1f2b59c18d
commit
08eeb36d47
26 files changed
+323
-180
No files matched your search
@@ -28,8 +28,8 @@ const schemaBookingReferenceCreateParams = z
|
||||
type: z.string(),
|
||||
uid: z.string(),
|
||||
meetingId: z.string(),
|
||||
meetingPassword: z.string(),
|
||||
meetingUrl: z.string(),
|
||||
meetingPassword: z.string().optional(),
|
||||
meetingUrl: z.string().optional(),
|
||||
deleted: z.boolean(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as tzdb from "tzdata";
|
||||
import tzdata from "tzdata";
|
||||
import * as z from "zod";
|
||||
|
||||
// @note: This is a custom validation that checks if the timezone is valid and exists in the tzdb library
|
||||
export const timeZone = z.string().refine((tz: string) => Object.keys(tzdb.zones).includes(tz));
|
||||
export const timeZone = z.string().refine((tz: string) => Object.keys(tzdata.zones).includes(tz));
|
||||
@@ -77,6 +77,7 @@ export const schemaUserBaseBodyParams = User.pick({
|
||||
const schemaUserEditParams = z.object({
|
||||
weekStart: z.nativeEnum(weekdays).optional(),
|
||||
brandColor: z.string().min(4).max(9).regex(/^#/).optional(),
|
||||
darkBrandColor: z.string().min(4).max(9).regex(/^#/).optional(),
|
||||
timeZone: timeZone.optional(),
|
||||
bufferTime: z.number().min(0).max(86400).optional(),
|
||||
startTime: z.number().min(0).max(86400).optional(),
|
||||
@@ -87,7 +88,7 @@ const schemaUserEditParams = z.object({
|
||||
.number()
|
||||
.refine((id: number) => id > 0)
|
||||
.optional(),
|
||||
locale: z.nativeEnum(locales),
|
||||
locale: z.nativeEnum(locales).optional(),
|
||||
});
|
||||
|
||||
// @note: These are the values that are editable via PATCH method on the user Model,
|
||||
|
||||
Reference in new issue
Block a user