Skip to content

Commit eb4b6f7

Browse files
authored
feat: Sync with Seam API via aa1f8770700bb94628426aa1d8fdc47d2d3983c9 (#2743)
1 parent eb66e7b commit eb4b6f7

File tree

3 files changed

+282
-169
lines changed

3 files changed

+282
-169
lines changed

src/lib/seam/connect/models/devices/device.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,16 +879,21 @@ export const device = z
879879
Properties of the device.
880880
`),
881881
location: z
882-
// todo: optional instead of nullable
883882
.object({
884883
location_name: z.string().optional()
885884
.describe(`Name of the device location.
886885
`),
887-
timezone: z.string().optional()
886+
time_zone: z.string().optional()
888887
.describe(`Time zone of the device location.
889888
`),
889+
timezone: z.string().optional().describe(`
890+
---
891+
deprecated: Use \`time_zone\` instead.
892+
---
893+
Time zone of the device location.
894+
`),
890895
})
891-
.nullable().describe(`
896+
.optional().describe(`
892897
---
893898
property_group_key: hardware
894899
---

src/lib/seam/connect/openapi.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11739,16 +11739,21 @@ export default {
1173911739
},
1174011740
location: {
1174111741
description: 'Location information for the device.',
11742-
nullable: true,
1174311742
properties: {
1174411743
location_name: {
1174511744
description: 'Name of the device location.\n ',
1174611745
type: 'string',
1174711746
},
11748-
timezone: {
11747+
time_zone: {
1174911748
description: 'Time zone of the device location.\n ',
1175011749
type: 'string',
1175111750
},
11751+
timezone: {
11752+
deprecated: true,
11753+
description: 'Time zone of the device location.',
11754+
type: 'string',
11755+
'x-deprecated': 'Use `time_zone` instead.',
11756+
},
1175211757
},
1175311758
type: 'object',
1175411759
'x-property-group-key': 'hardware',
@@ -15042,7 +15047,6 @@ export default {
1504215047
'display_name',
1504315048
'capabilities_supported',
1504415049
'properties',
15045-
'location',
1504615050
'connected_account_id',
1504715051
'workspace_id',
1504815052
'errors',
@@ -29885,16 +29889,21 @@ export default {
2988529889
is_managed: { enum: [false], type: 'boolean' },
2988629890
location: {
2988729891
description: 'Location information for the device.',
29888-
nullable: true,
2988929892
properties: {
2989029893
location_name: {
2989129894
description: 'Name of the device location.\n ',
2989229895
type: 'string',
2989329896
},
29894-
timezone: {
29897+
time_zone: {
2989529898
description: 'Time zone of the device location.\n ',
2989629899
type: 'string',
2989729900
},
29901+
timezone: {
29902+
deprecated: true,
29903+
description: 'Time zone of the device location.',
29904+
type: 'string',
29905+
'x-deprecated': 'Use `time_zone` instead.',
29906+
},
2989829907
},
2989929908
type: 'object',
2990029909
'x-property-group-key': 'hardware',
@@ -30695,7 +30704,6 @@ export default {
3069530704
'device_id',
3069630705
'device_type',
3069730706
'connected_account_id',
30698-
'location',
3069930707
'capabilities_supported',
3070030708
'workspace_id',
3070130709
'errors',

0 commit comments

Comments
 (0)