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:
1 parent
17f493a488
commit
e67e073f04
14 files changed
+625
-35
No files matched your search
@@ -12818,7 +12818,8 @@
|
||||
"MEMBER",
|
||||
"OWNER",
|
||||
"ADMIN"
|
||||
]
|
||||
],
|
||||
"description": "If you are platform customer then managed users should only have MEMBER role."
|
||||
},
|
||||
"disableImpersonation": {
|
||||
"type": "boolean",
|
||||
@@ -13202,6 +13203,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"
|
||||
@@ -13248,8 +13250,7 @@
|
||||
"lengthInMinutes",
|
||||
"title",
|
||||
"slug",
|
||||
"schedulingType",
|
||||
"hosts"
|
||||
"schedulingType"
|
||||
]
|
||||
},
|
||||
"CreateTeamEventTypeOutput": {
|
||||
|
||||
Reference in new issue
Block a user