Skip to content

Commit dd13277

Browse files
committed
Update shared
1 parent 5f964f3 commit dd13277

3 files changed

Lines changed: 7 additions & 19 deletions

File tree

public/swagger/swagger.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,12 +2419,12 @@
24192419
"description": "The length of the meeting, denoted in **ISO 8601** format. - Example:\n - **1 hour** → `'PT1H'`\n - **2 hours, 30 minutes** → `'PT2H30M'`\n- `'P'` is the duration designator. - `'T'` separates date and time components. - `'H'` (hours) and `'M'` (minutes) specify the time duration. - If omitted, the default duration is **30 minutes** (`'PT30M'`).\n",
24202420
"example": "PT2H30M"
24212421
},
2422-
"startTime": {
2422+
"startRangeTime": {
24232423
"type": "string",
24242424
"format": "date-time",
24252425
"description": "The start of the meeting denoted in *ISO 8601* format In the format: yyyy-mm-ddThh:mm:ssZ Where lowercase letters are replaced by their numerical values\n"
24262426
},
2427-
"endTime": {
2427+
"endRangeTime": {
24282428
"type": "string",
24292429
"format": "date-time",
24302430
"description": "The start of the meeting denoted in *ISO 8601* format In the format: yyyy-mm-ddThh:mm:ssZ Where lowercase letters are replaced by their numerical values\n"
@@ -2540,16 +2540,6 @@
25402540
},
25412541
"description": "Array of all the attendees user id"
25422542
},
2543-
"startTime": {
2544-
"type": "string",
2545-
"format": "date-time",
2546-
"description": "The start of the meeting denoted in *ISO 8601* format In the format: yyyy-mm-ddThh:mm:ssZ Where lowercase letters are replaced by their numerical values\n"
2547-
},
2548-
"endTime": {
2549-
"type": "string",
2550-
"format": "date-time",
2551-
"description": "The start of the meeting denoted in *ISO 8601* format In the format: yyyy-mm-ddThh:mm:ssZ Where lowercase letters are replaced by their numerical values\n"
2552-
},
25532543
"location": {
25542544
"type": "string",
25552545
"description": "The location of the meeting"

shared

src/types/client.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ type ReschedulingRequestOldMeeting = {
2727
type ReschedulingRequestNewMeeting = {
2828
title: string;
2929
meetingDuration: string;
30-
startTime: string;
31-
endTime: string;
30+
startRangeTime?: string | undefined;
31+
endRangeTime?: string | undefined;
3232
location: string;
3333
attendees: Array<number> | null;
3434
};
@@ -454,8 +454,8 @@ const ReschedulingRequestNewMeeting: z.ZodType<ReschedulingRequestNewMeeting> =
454454
.object({
455455
title: z.string(),
456456
meetingDuration: z.string(),
457-
startTime: z.string().datetime({ offset: true }),
458-
endTime: z.string().datetime({ offset: true }),
457+
startRangeTime: z.string().datetime({ offset: true }).optional(),
458+
endRangeTime: z.string().datetime({ offset: true }).optional(),
459459
location: z.string(),
460460
attendees: z.array(z.number().int()).nullable(),
461461
})
@@ -483,8 +483,6 @@ const ReschedulingRequestBodySchema = z
483483
title: z.string(),
484484
meetingDuration: z.string(),
485485
attendees: z.array(z.number().int()),
486-
startTime: z.string().datetime({ offset: true }),
487-
endTime: z.string().datetime({ offset: true }),
488486
location: z.string(),
489487
startRangeTime: z.string().datetime({ offset: true }),
490488
endRangeTime: z.string().datetime({ offset: true }),

0 commit comments

Comments
 (0)