Skip to content

Commit

Permalink
fix input type
Browse files Browse the repository at this point in the history
  • Loading branch information
supalarry committed Dec 20, 2024
1 parent eea1dd8 commit fb46683
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 68 deletions.
44 changes: 8 additions & 36 deletions apps/api/v2/swagger/documentation.json
Original file line number Diff line number Diff line change
Expand Up @@ -7747,8 +7747,7 @@
"type": {
"type": "string",
"example": "name",
"description": "DEPRECATED: pass `slug` property instead. only allowed value for type is `name`",
"deprecated": true
"description": "only allowed value for type is `name`"
},
"label": {
"type": "string"
Expand All @@ -7773,8 +7772,7 @@
"type": {
"type": "string",
"example": "email",
"description": "DEPRECATED: pass `slug` property instead. only allowed value for type is `email`",
"deprecated": true
"description": "only allowed value for type is `email`"
},
"label": {
"type": "string"
Expand Down Expand Up @@ -7820,11 +7818,7 @@
}
},
"required": [
"slug",
"required",
"hidden",
"label",
"placeholder"
"slug"
]
},
"NotesDefaultFieldInput_2024_06_14": {
Expand Down Expand Up @@ -7854,11 +7848,7 @@
}
},
"required": [
"slug",
"required",
"hidden",
"label",
"placeholder"
"slug"
]
},
"GuestsDefaultFieldInput_2024_06_14": {
Expand Down Expand Up @@ -7888,11 +7878,7 @@
}
},
"required": [
"slug",
"required",
"hidden",
"label",
"placeholder"
"slug"
]
},
"RescheduleReasonDefaultFieldInput_2024_06_14": {
Expand Down Expand Up @@ -7922,11 +7908,7 @@
}
},
"required": [
"slug",
"required",
"hidden",
"label",
"placeholder"
"slug"
]
},
"BookerLayouts_2024_06_14": {
Expand Down Expand Up @@ -8499,8 +8481,7 @@
"boolean"
],
"example": "email",
"description": "DEPRECATED: pass `slug` property instead. only allowed value for type is `email`",
"deprecated": true,
"description": "only allowed value for type is `email`",
"default": "email"
},
"label": {
Expand Down Expand Up @@ -8555,8 +8536,7 @@
"boolean"
],
"example": "name",
"description": "DEPRECATED: pass `slug` property instead. only allowed value for type is `name`",
"deprecated": true,
"description": "only allowed value for type is `name`",
"default": "name"
},
"label": {
Expand Down Expand Up @@ -8670,8 +8650,6 @@
},
"required": [
"slug",
"required",
"hidden",
"isDefault",
"type"
]
Expand Down Expand Up @@ -8722,8 +8700,6 @@
},
"required": [
"slug",
"required",
"hidden",
"isDefault",
"type"
]
Expand Down Expand Up @@ -8774,8 +8750,6 @@
},
"required": [
"slug",
"required",
"hidden",
"isDefault",
"type"
]
Expand Down Expand Up @@ -8826,8 +8800,6 @@
},
"required": [
"slug",
"required",
"hidden",
"isDefault",
"type"
]
Expand Down
28 changes: 12 additions & 16 deletions docs/api-reference/v2/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7179,8 +7179,7 @@
"type": {
"type": "string",
"example": "name",
"description": "DEPRECATED: pass `slug` property instead. only allowed value for type is `name`",
"deprecated": true
"description": "only allowed value for type is `name`"
},
"label": {
"type": "string"
Expand All @@ -7201,8 +7200,7 @@
"type": {
"type": "string",
"example": "email",
"description": "DEPRECATED: pass `slug` property instead. only allowed value for type is `email`",
"deprecated": true
"description": "only allowed value for type is `email`"
},
"label": {
"type": "string"
Expand Down Expand Up @@ -7243,7 +7241,7 @@
"description": "Disable this booking field if the URL contains query parameter with key equal to the slug and prefill it with the provided value. For example, if URL contains query parameter `&title=journey`, the title field will be prefilled with this value and disabled."
}
},
"required": ["slug", "required", "hidden", "label", "placeholder"]
"required": ["slug"]
},
"NotesDefaultFieldInput_2024_06_14": {
"type": "object",
Expand Down Expand Up @@ -7271,7 +7269,7 @@
"description": "Disable this booking field if the URL contains query parameter with key equal to the slug and prefill it with the provided value. For example, if URL contains query parameter `&notes=journey`, the notes field will be prefilled with this value and disabled."
}
},
"required": ["slug", "required", "hidden", "label", "placeholder"]
"required": ["slug"]
},
"GuestsDefaultFieldInput_2024_06_14": {
"type": "object",
Expand Down Expand Up @@ -7299,7 +7297,7 @@
"description": "Disable this booking field if the URL contains query parameter with key equal to the slug and prefill it with the provided value. For example, if URL contains query parameter `&guests=bob@cal.com`, the guests field will be prefilled with this value and disabled."
}
},
"required": ["slug", "required", "hidden", "label", "placeholder"]
"required": ["slug"]
},
"RescheduleReasonDefaultFieldInput_2024_06_14": {
"type": "object",
Expand Down Expand Up @@ -7327,7 +7325,7 @@
"description": "Disable this booking field if the URL contains query parameter with key equal to the slug and prefill it with the provided value. For example, if URL contains query parameter `&rescheduleReason=travel`, the rescheduleReason field will be prefilled with this value and disabled."
}
},
"required": ["slug", "required", "hidden", "label", "placeholder"]
"required": ["slug"]
},
"BookerLayouts_2024_06_14": {
"type": "object",
Expand Down Expand Up @@ -7853,8 +7851,7 @@
"boolean"
],
"example": "email",
"description": "DEPRECATED: pass `slug` property instead. only allowed value for type is `email`",
"deprecated": true,
"description": "only allowed value for type is `email`",
"default": "email"
},
"label": {
Expand Down Expand Up @@ -7904,8 +7901,7 @@
"boolean"
],
"example": "name",
"description": "DEPRECATED: pass `slug` property instead. only allowed value for type is `name`",
"deprecated": true,
"description": "only allowed value for type is `name`",
"default": "name"
},
"label": {
Expand Down Expand Up @@ -8000,7 +7996,7 @@
"default": "textarea"
}
},
"required": ["slug", "required", "hidden", "isDefault", "type"]
"required": ["slug", "isDefault", "type"]
},
"TitleDefaultFieldOutput_2024_06_14": {
"type": "object",
Expand Down Expand Up @@ -8040,7 +8036,7 @@
"default": "text"
}
},
"required": ["slug", "required", "hidden", "isDefault", "type"]
"required": ["slug", "isDefault", "type"]
},
"NotesDefaultFieldOutput_2024_06_14": {
"type": "object",
Expand Down Expand Up @@ -8080,7 +8076,7 @@
"default": "textarea"
}
},
"required": ["slug", "required", "hidden", "isDefault", "type"]
"required": ["slug", "isDefault", "type"]
},
"GuestsDefaultFieldOutput_2024_06_14": {
"type": "object",
Expand Down Expand Up @@ -8120,7 +8116,7 @@
"default": "multiemail"
}
},
"required": ["slug", "required", "hidden", "isDefault", "type"]
"required": ["slug", "isDefault", "type"]
},
"AddressFieldOutput_2024_06_14": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,26 @@ export class TitleDefaultFieldInput_2024_06_14 {
slug!: "title";

@IsBoolean()
@DocsProperty()
@IsOptional()
@DocsPropertyOptional()
required?: boolean;

@IsBoolean()
@IsOptional()
@DocsProperty({
@DocsPropertyOptional({
description:
"If true show under event type settings but don't show this booking field in the Booker. If false show in both.",
})
hidden?: boolean;

@IsString()
@IsOptional()
@DocsProperty()
@DocsPropertyOptional()
label?: string;

@IsString()
@IsOptional()
@DocsProperty()
@DocsPropertyOptional()
placeholder?: string;

@IsBoolean()
Expand All @@ -128,25 +129,26 @@ export class NotesDefaultFieldInput_2024_06_14 {
slug!: "notes";

@IsBoolean()
@DocsProperty()
@IsOptional()
@DocsPropertyOptional()
required?: boolean;

@IsBoolean()
@IsOptional()
@DocsProperty({
@DocsPropertyOptional({
description:
"If true show under event type settings but don't show this booking field in the Booker. If false show in both.",
})
hidden?: boolean;

@IsString()
@IsOptional()
@DocsProperty()
@DocsPropertyOptional()
label?: string;

@IsString()
@IsOptional()
@DocsProperty()
@DocsPropertyOptional()
placeholder?: string;

@IsBoolean()
Expand All @@ -167,25 +169,26 @@ export class GuestsDefaultFieldInput_2024_06_14 {
slug!: "guests";

@IsBoolean()
@DocsProperty()
@IsOptional()
@DocsPropertyOptional()
required?: boolean;

@IsBoolean()
@IsOptional()
@DocsProperty({
@DocsPropertyOptional({
description:
"If true show under event type settings but don't show this booking field in the Booker. If false show in both.",
})
hidden?: boolean;

@IsString()
@IsOptional()
@DocsProperty()
@DocsPropertyOptional()
label?: string;

@IsString()
@IsOptional()
@DocsProperty()
@DocsPropertyOptional()
placeholder?: string;

@IsBoolean()
Expand All @@ -209,25 +212,26 @@ export class RescheduleReasonDefaultFieldInput_2024_06_14 {
slug!: "rescheduleReason";

@IsBoolean()
@DocsProperty()
@IsOptional()
@DocsPropertyOptional()
required?: boolean;

@IsBoolean()
@IsOptional()
@DocsProperty({
@DocsPropertyOptional({
description:
"If true show under event type settings but don't show this booking field in the Booker. If false show in both.",
})
hidden?: boolean;

@IsString()
@IsOptional()
@DocsProperty()
@DocsPropertyOptional()
label?: string;

@IsString()
@IsOptional()
@DocsProperty()
@DocsPropertyOptional()
placeholder?: string;

@IsBoolean()
Expand Down

0 comments on commit fb46683

Please sign in to comment.