-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into upgrade-dub
- Loading branch information
Showing
241 changed files
with
3,376 additions
and
1,818 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
undecided: | ||
- "@calcom/app-store-cli" | ||
- "@calcom/platform-constants" | ||
- "@calcom/platform-enums" | ||
- "@calcom/platform-types" | ||
- "@calcom/platform-utils" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
undecided: | ||
- calcom-monorepo | ||
- "@calcom/app-store-cli" | ||
- "@calcom/platform-constants" | ||
- "@calcom/platform-enums" | ||
- "@calcom/platform-types" | ||
- "@calcom/platform-utils" | ||
- "@calcom/prisma" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
undecided: | ||
- "@calcom/app-store-cli" | ||
- "@calcom/platform-constants" | ||
- "@calcom/platform-enums" | ||
- "@calcom/platform-types" | ||
- "@calcom/platform-utils" | ||
- "@calcom/prisma" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
undecided: | ||
- calcom-monorepo | ||
- "@calcom/prisma" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
"@axiomhq/winston": "^1.2.0", | ||
"@calcom/platform-constants": "*", | ||
"@calcom/platform-enums": "*", | ||
"@calcom/platform-libraries": "npm:@calcom/[email protected].81", | ||
"@calcom/platform-libraries": "npm:@calcom/[email protected].85", | ||
"@calcom/platform-libraries-0.0.2": "npm:@calcom/[email protected]", | ||
"@calcom/platform-types": "*", | ||
"@calcom/platform-utils": "*", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -332,6 +332,7 @@ describe("Bookings Endpoints 2024-08-13", () => { | |
metadata: { | ||
userId: "100", | ||
}, | ||
guests: ["[email protected]"], | ||
}; | ||
|
||
const beforeCreate = new Date(); | ||
|
@@ -376,7 +377,9 @@ describe("Bookings Endpoints 2024-08-13", () => { | |
name: body.attendee.name, | ||
email: body.attendee.email, | ||
...body.bookingFieldsResponses, | ||
guests: body.guests, | ||
}); | ||
expect(data.guests).toEqual(body.guests); | ||
|
||
// Check createdAt date is between the time of the request and after the request | ||
const createdAtDate = new Date(data.createdAt); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ import { ApiProperty, ApiPropertyOptional, PartialType } from "@nestjs/swagger"; | |
import { Transform } from "class-transformer"; | ||
import { IsDate, IsInt, IsOptional, IsString, IsEnum, isDate } from "class-validator"; | ||
|
||
import { SkipTakePagination } from "@calcom/platform-types"; | ||
|
||
export enum OutOfOfficeReason { | ||
UNSPECIFIED = "unspecified", | ||
VACATION = "vacation", | ||
|
@@ -80,3 +82,47 @@ export class CreateOutOfOfficeEntryDto { | |
} | ||
|
||
export class UpdateOutOfOfficeEntryDto extends PartialType(CreateOutOfOfficeEntryDto) {} | ||
|
||
export enum SortOrder { | ||
asc = "asc", | ||
desc = "desc", | ||
} | ||
type SortOrderType = keyof typeof SortOrder; | ||
|
||
export class GetOutOfOfficeEntryFiltersDTO extends SkipTakePagination { | ||
@IsOptional() | ||
@IsEnum(SortOrder, { | ||
message: 'SortStart must be either "asc" or "desc".', | ||
}) | ||
@ApiProperty({ | ||
required: false, | ||
description: "Sort results by their start time in ascending or descending order.", | ||
example: "?sortStart=asc OR ?sortStart=desc", | ||
enum: SortOrder, | ||
}) | ||
sortStart?: SortOrderType; | ||
|
||
@IsOptional() | ||
@IsEnum(SortOrder, { | ||
message: 'SortEnd must be either "asc" or "desc".', | ||
}) | ||
@ApiProperty({ | ||
required: false, | ||
description: "Sort results by their end time in ascending or descending order.", | ||
example: "?sortEnd=asc OR ?sortEnd=desc", | ||
enum: SortOrder, | ||
}) | ||
sortEnd?: SortOrderType; | ||
} | ||
|
||
export class GetOrgUsersOutOfOfficeEntryFiltersDTO extends GetOutOfOfficeEntryFiltersDTO { | ||
@IsString() | ||
@IsOptional() | ||
@ApiProperty({ | ||
type: String, | ||
required: false, | ||
description: "Filter ooo entries by the user email address. user must be within your organization.", | ||
example: "[email protected]", | ||
}) | ||
email?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.