refactor: v2 team event type assignAllTeamMembers (#20400)
* fix: platform seed data * fix: assignAllTeamMembers: true excludes team owners in platform * refactor: platform plan guard explicit error message * refactor: require either hosts or assignAllTeamMembers=true * refactor: require either hosts or assignAllTeamMembers=true * fix: before creating or updating team event type check if doesnt exist with that slug * chore: regenerate docs * test: can update round robin that had assign all team members true * fix: platform guard spec test * fix: seed platform membership role * fix: test ts error
This commit is contained in:
@@ -11699,7 +11699,8 @@
|
||||
"role": {
|
||||
"type": "string",
|
||||
"default": "MEMBER",
|
||||
"enum": ["MEMBER", "OWNER", "ADMIN"]
|
||||
"enum": ["MEMBER", "OWNER", "ADMIN"],
|
||||
"description": "If you are platform customer then managed users should only have MEMBER role."
|
||||
},
|
||||
"disableImpersonation": {
|
||||
"type": "boolean",
|
||||
@@ -12036,6 +12037,7 @@
|
||||
"description": "The scheduling type for the team event - collective, roundRobin or managed."
|
||||
},
|
||||
"hosts": {
|
||||
"description": "Hosts contain specific team members you want to assign to this event type, but if you want to assign all team members, use `assignAllTeamMembers: true` instead and omit this field. For platform customers the hosts can include userIds only of managed users.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Host"
|
||||
@@ -12078,7 +12080,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["lengthInMinutes", "title", "slug", "schedulingType", "hosts"]
|
||||
"required": ["lengthInMinutes", "title", "slug", "schedulingType"]
|
||||
},
|
||||
"CreateTeamEventTypeOutput": {
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user