feat: max-seats-per-time-slot (#20213)
* feat: max-seats-per-time-slot * fix : test * enhancements * enhancements * fix:test * fix:test
This commit is contained in:
1 parent
cb365117b3
commit
8d59c2fc16
7 files changed
+32
-9
No files matched your search
@@ -70,3 +70,4 @@ export const API_VERSIONS = [
|
||||
export type API_VERSIONS_ENUM = (typeof API_VERSIONS)[number];
|
||||
export type API_VERSIONS_TYPE = typeof API_VERSIONS;
|
||||
export const CAL_API_VERSION_HEADER = "cal-api-version";
|
||||
export const MAX_SEATS_PER_TIME_SLOT = 1000;
|
||||
@@ -1,10 +1,13 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { IsBoolean, IsInt, IsOptional, Min } from "class-validator";
|
||||
import { IsBoolean, IsInt, IsOptional, Min, Max } from "class-validator";
|
||||
|
||||
import { MAX_SEATS_PER_TIME_SLOT } from "@calcom/platform-constants";
|
||||
|
||||
// Class representing the seat options
|
||||
export class Seats_2024_06_14 {
|
||||
@IsInt()
|
||||
@Min(1)
|
||||
@Max(MAX_SEATS_PER_TIME_SLOT)
|
||||
@ApiProperty({
|
||||
description: "Number of seats available per time slot",
|
||||
example: 4,
|
||||
|
||||
Reference in new issue
Block a user