fix: enable event-type booking field url with api v2 (#19577)
* fix: enable event-type booking field url with api v2 * fixup! fix: enable event-type booking field url with api v2 * fixup! fixup! fix: enable event-type booking field url with api v2 * fixup! fixup! fixup! fix: enable event-type booking field url with api v2
This commit is contained in:
@@ -7893,6 +7893,41 @@
|
||||
},
|
||||
"required": ["type", "slug", "label", "required", "hidden"]
|
||||
},
|
||||
"UrlFieldInput_2024_06_14": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"example": "url",
|
||||
"description": "only allowed value for type is `url`"
|
||||
},
|
||||
"slug": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking",
|
||||
"example": "some-slug"
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"example": "Please enter your text"
|
||||
},
|
||||
"required": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"placeholder": {
|
||||
"type": "string",
|
||||
"example": "e.g., Enter url here"
|
||||
},
|
||||
"disableOnPrefill": {
|
||||
"type": "boolean",
|
||||
"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 the slug is `video-url` and the URL contains query parameter `&video-url=https://youtube.com/abc`the url field will be prefilled with this value and disabled."
|
||||
},
|
||||
"hidden": {
|
||||
"type": "boolean",
|
||||
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
|
||||
}
|
||||
},
|
||||
"required": ["type", "slug", "label", "required", "placeholder", "hidden"]
|
||||
},
|
||||
"BusinessDaysWindow_2024_06_14": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -8444,6 +8479,9 @@
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/BooleanFieldInput_2024_06_14"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/UrlFieldInput_2024_06_14"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -8807,7 +8845,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "email",
|
||||
"description": "only allowed value for type is `email`",
|
||||
@@ -8858,7 +8897,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "name",
|
||||
"description": "only allowed value for type is `name`. Used for having 1 booking field for both first name and last name.",
|
||||
@@ -9096,7 +9136,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "address",
|
||||
"description": "only allowed value for type is `address`"
|
||||
@@ -9152,7 +9193,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "boolean",
|
||||
"description": "only allowed value for type is `boolean`"
|
||||
@@ -9203,7 +9245,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "checkbox",
|
||||
"description": "only allowed value for type is `checkbox`"
|
||||
@@ -9262,7 +9305,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "multiemail",
|
||||
"description": "only allowed value for type is `multiemail`"
|
||||
@@ -9318,7 +9362,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "multiselect",
|
||||
"description": "only allowed value for type is `multiselect`"
|
||||
@@ -9359,6 +9404,63 @@
|
||||
},
|
||||
"required": ["type", "slug", "label", "required", "options", "hidden", "isDefault"]
|
||||
},
|
||||
"UrlFieldOutput_2024_06_14": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"name",
|
||||
"email",
|
||||
"phone",
|
||||
"address",
|
||||
"text",
|
||||
"number",
|
||||
"textarea",
|
||||
"select",
|
||||
"multiselect",
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "url",
|
||||
"description": "only allowed value for type is `url`"
|
||||
},
|
||||
"slug": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier for the field in format `some-slug`. It is used to access response to this booking field during the booking",
|
||||
"example": "some-slug"
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"example": "Please enter your text"
|
||||
},
|
||||
"required": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"placeholder": {
|
||||
"type": "string",
|
||||
"example": "e.g., Enter url here"
|
||||
},
|
||||
"disableOnPrefill": {
|
||||
"type": "boolean",
|
||||
"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 the slug is `video-url` and the URL contains query parameter `&video-url=https://youtube.com/abc`the url field will be prefilled with this value and disabled."
|
||||
},
|
||||
"hidden": {
|
||||
"type": "boolean",
|
||||
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
|
||||
},
|
||||
"isDefault": {
|
||||
"type": "object",
|
||||
"default": false,
|
||||
"description": "This property is always false because it's not default field but custom field",
|
||||
"example": false
|
||||
}
|
||||
},
|
||||
"required": ["type", "slug", "label", "required", "hidden", "isDefault"]
|
||||
},
|
||||
"NumberFieldOutput_2024_06_14": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -9377,7 +9479,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "number",
|
||||
"description": "only allowed value for type is `number`"
|
||||
@@ -9433,7 +9536,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "phone",
|
||||
"description": "only allowed value for type is `phone`"
|
||||
@@ -9487,7 +9591,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "radio",
|
||||
"description": "only allowed value for type is `radio`"
|
||||
@@ -9546,7 +9651,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "select",
|
||||
"description": "only allowed value for type is `select`"
|
||||
@@ -9609,7 +9715,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "textarea",
|
||||
"description": "only allowed value for type is `textarea`"
|
||||
@@ -9665,7 +9772,8 @@
|
||||
"multiemail",
|
||||
"checkbox",
|
||||
"radio",
|
||||
"boolean"
|
||||
"boolean",
|
||||
"url"
|
||||
],
|
||||
"example": "text",
|
||||
"description": "only allowed value for type is `text`"
|
||||
@@ -9816,6 +9924,9 @@
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/BooleanFieldOutput_2024_06_14"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/UrlFieldOutput_2024_06_14"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -11490,6 +11601,9 @@
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/BooleanFieldInput_2024_06_14"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/UrlFieldInput_2024_06_14"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -11854,6 +11968,9 @@
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/BooleanFieldOutput_2024_06_14"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/UrlFieldOutput_2024_06_14"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user