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:
1 parent
07789ba697
commit
e437dfa000
35 files changed
+519
-138
No files matched your search
@@ -7635,6 +7635,11 @@
|
||||
},
|
||||
"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": [
|
||||
@@ -7643,7 +7648,7 @@
|
||||
"permissions"
|
||||
]
|
||||
},
|
||||
"DataDto": {
|
||||
"CreateOAuthClientOutput": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"clientId": {
|
||||
@@ -7678,7 +7683,7 @@
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/DataDto"
|
||||
"$ref": "#/components/schemas/CreateOAuthClientOutput"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -7748,6 +7753,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"
|
||||
@@ -7759,10 +7773,6 @@
|
||||
"bookingRescheduleRedirectUri": {
|
||||
"type": "string",
|
||||
"example": "https://example.com/booking-reschedule"
|
||||
},
|
||||
"areEmailsEnabled": {
|
||||
"type": "boolean",
|
||||
"example": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -7772,7 +7782,9 @@
|
||||
"permissions",
|
||||
"redirectUris",
|
||||
"organizationId",
|
||||
"createdAt"
|
||||
"createdAt",
|
||||
"areEmailsEnabled",
|
||||
"areDefaultEventTypesEnabled"
|
||||
]
|
||||
},
|
||||
"GetOAuthClientsResponseDto": {
|
||||
@@ -7844,6 +7856,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