refactor: platform default event types (#19225)
* feat: add areDefaultEventTypesEnabled to PlatformOAuthClient * feat: specify areDefaultEventTypesEnabled when creating OAuth client * feat: specify areDefaultEventTypesEnabled when updating OAuth client * feat: display areDefaultEventTypesEnabled in OAuth clients list * refactor: set areDefaultEventTypesEnabled by default to false on API level * feat: v2 API CREATE managed user toggle default event types * refactor: centralize OAuth inputs and outputs in platform/types * fix: correct response types for OAuth hooks * refactor: web/lib/hooks/settings/platform/oauth-clients/useOAuthClients.ts * refactor: web/lib/hooks/settings/platform/oauth-clients/useOAuthClients.ts * refactor: split web OAuth hooks into separate files * refactor: split web OAuth hooks into separate files * docs: v2 OAuth client inputs and outputs * refactor: update and create oauth client inputs
This commit is contained in:
@@ -7181,11 +7181,16 @@
|
||||
},
|
||||
"areEmailsEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"areDefaultEventTypesEnabled": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "If true, when creating a managed user the managed user will have 4 default event types: 30 and 60 minutes without Cal video, 30 and 60 minutes with Cal video. Set this as false if you want to create a managed user and then manually create event types for the user."
|
||||
}
|
||||
},
|
||||
"required": ["name", "redirectUris", "permissions"]
|
||||
},
|
||||
"DataDto": {
|
||||
"CreateOAuthClientOutput": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"clientId": {
|
||||
@@ -7214,7 +7219,7 @@
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/DataDto"
|
||||
"$ref": "#/components/schemas/CreateOAuthClientOutput"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -7276,6 +7281,15 @@
|
||||
"type": "string",
|
||||
"example": "2024-03-23T08:33:21.851Z"
|
||||
},
|
||||
"areEmailsEnabled": {
|
||||
"type": "boolean",
|
||||
"example": true
|
||||
},
|
||||
"areDefaultEventTypesEnabled": {
|
||||
"type": "boolean",
|
||||
"example": true,
|
||||
"description": "If enabled, when creating a managed user the managed user will have 4 default event types: 30 and 60 minutes without Cal video, 30 and 60 minutes with Cal video. Leave this disabled if you want to create a managed user and then manually create event types for the user."
|
||||
},
|
||||
"bookingRedirectUri": {
|
||||
"type": "string",
|
||||
"example": "https://example.com/booking-redirect"
|
||||
@@ -7287,13 +7301,19 @@
|
||||
"bookingRescheduleRedirectUri": {
|
||||
"type": "string",
|
||||
"example": "https://example.com/booking-reschedule"
|
||||
},
|
||||
"areEmailsEnabled": {
|
||||
"type": "boolean",
|
||||
"example": false
|
||||
}
|
||||
},
|
||||
"required": ["id", "name", "secret", "permissions", "redirectUris", "organizationId", "createdAt"]
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"secret",
|
||||
"permissions",
|
||||
"redirectUris",
|
||||
"organizationId",
|
||||
"createdAt",
|
||||
"areEmailsEnabled",
|
||||
"areDefaultEventTypesEnabled"
|
||||
]
|
||||
},
|
||||
"GetOAuthClientsResponseDto": {
|
||||
"type": "object",
|
||||
@@ -7352,6 +7372,10 @@
|
||||
},
|
||||
"areEmailsEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"areDefaultEventTypesEnabled": {
|
||||
"type": "boolean",
|
||||
"description": "If true, when creating a managed user the managed user will have 4 default event types: 30 and 60 minutes without Cal video, 30 and 60 minutes with Cal video. Set this as false if you want to create a managed user and then manually create event types for the user."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user