Skip to content

Commit 05024ba

Browse files
refactor(api): consolidate cloud endpoint validators and type definitions
- Move cloud endpoint validator schemas from rest-typings to api implementation - Inline isCloudConfirmationPollProps, isCloudCreateRegistrationIntentProps, and isCloudManualRegisterProps validators into cloud.ts - Chain endpoint definitions using fluent API pattern for better organization - Extract CloudEndpoints type from chained API definition using ExtractRoutesFromAPI utility - Remove unused CloudRegistrationStatus import and endpoint type definitions from rest-typings - Update module declaration to extend CloudEndpoints from implementation instead of duplicating types - Add comment clarifying remaining type exports are for ui-client compatibility
1 parent 305a242 commit 05024ba

3 files changed

Lines changed: 239 additions & 239 deletions

File tree

.changeset/swift-ways-leave.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@rocket.chat/rest-typings': minor
3+
'@rocket.chat/meteor': minor
4+
---
5+
6+
Migrates cloud endpoint validators (`cloud.manualRegister`, `cloud.createRegistrationIntent`, `cloud.confirmationPoll`) from `rest-typings` into the API implementation, aligning them with the OpenAPI typed route pattern

0 commit comments

Comments
 (0)