Commit f0c31d9
committed
feat: Incorporate optional and nullable properties into generated types
Update to @seamapi/blueprint@0.60.0, which adds isOptional and
isNullable properties to the blueprint, and update the codegen to
generate types that accurately reflect optionality and nullability:
- Compute isOptionalParamsOk from the blueprint request parameters
instead of falling back to true. Endpoint methods now require the
parameters argument when an endpoint has required parameters.
- Generate response types directly from RouteResponse instead of
wrapping in SetNonNullable<Required<...>>, which stripped the
optional and nullable markers from response keys that are genuinely
optional or nullable (e.g., /events/get may return either event or
message). Remove the now-unused SetNonNullable helper type.
- Update to @seamapi/types@1.974.0 and regenerate all routes.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ymgiD6xCZXPhepJy9Fprz1 parent 9540ba7 commit f0c31d9
84 files changed
Lines changed: 863 additions & 1345 deletions
File tree
- codegen
- layouts/partials
- lib/layouts
- src/lib
- seam/connect/routes
- access-codes
- simulate
- unmanaged
- access-grants
- unmanaged
- access-methods
- unmanaged
- acs
- access-groups
- unmanaged
- credential-pools
- credential-provisioning-automations
- credentials
- unmanaged
- encoders
- simulate
- entrances
- systems
- users
- unmanaged
- action-attempts
- bridges
- client-sessions
- connect-webviews
- connected-accounts
- simulate
- customers
- reservations
- devices
- simulate
- unmanaged
- events
- instant-keys
- locks
- simulate
- noise-sensors
- noise-thresholds
- simulate
- phones
- simulate
- seam
- console/v1
- lynx-migration
- sites
- timelines
- workspace/feature-flags
- customer/v1
- access-grants
- access-methods
- automation-runs
- automations
- connector-customers
- connectors
- external-sites
- ical
- customers
- automations
- encoders
- events
- portals
- reservations
- settings
- vertical-resource-aliases
- spaces
- staff-members
- partner/v1/building-blocks/spaces
- spaces
- thermostats
- daily-programs
- schedules
- simulate
- unstable-partner/building-blocks
- user-identities
- enrollment-automations
- unmanaged
- webhooks
- workspaces
- customization-profiles
- test/seam/connect
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
Lines changed: 26 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments