Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/seam/connect/internal/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export {
resident_resource,
room_resource,
space,
space_customer_data,
neutral_resource as space_resource,
staff_member_resource,
tenant_resource,
Expand Down
26 changes: 26 additions & 0 deletions src/lib/seam/connect/models/spaces/space.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
import { z } from 'zod'

const time_of_day_re = /^([01]\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/

export const space_customer_data = z
.object({
time_zone: z
.string()
.nullish()
.describe('IANA time zone for the space, e.g. America/Los_Angeles.'),
default_checkin_time: z
.string()
.regex(time_of_day_re)
.nullish()
.describe(
'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.',
),
default_checkout_time: z
.string()
.regex(time_of_day_re)
.nullish()
.describe(
'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.',
),
})
.describe('Reservation/stay-related defaults for the space.')

export const space = z.object({
space_id: z.string().uuid().describe('ID of the space.'),
workspace_id: z
Expand All @@ -24,6 +49,7 @@ export const space = z.object({
.string()
.optional()
.describe('Customer key associated with the space.'),
customer_data: space_customer_data.optional(),
parent_space_id: z.string().uuid().optional().describe(`
---
undocumented: Only used internally.
Expand Down
107 changes: 107 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25784,6 +25784,32 @@ export default {
format: 'date-time',
type: 'string',
},
customer_data: {
description: 'Reservation/stay-related defaults for the space.',
properties: {
default_checkin_time: {
description:
'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.',
nullable: true,
pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
type: 'string',
},
default_checkout_time: {
description:
'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.',
nullable: true,
pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
type: 'string',
},
time_zone: {
description:
'IANA time zone for the space, e.g. America/Los_Angeles.',
nullable: true,
type: 'string',
},
},
type: 'object',
},
customer_key: {
description: 'Customer key associated with the space.',
type: 'string',
Expand Down Expand Up @@ -73637,6 +73663,33 @@ export default {
items: { format: 'uuid', type: 'string' },
type: 'array',
},
customer_data: {
description:
'Reservation/stay-related defaults for the space.',
properties: {
default_checkin_time: {
description:
'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.',
nullable: true,
pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
type: 'string',
},
default_checkout_time: {
description:
'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.',
nullable: true,
pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
type: 'string',
},
time_zone: {
description:
'IANA time zone for the space, e.g. America/Los_Angeles.',
nullable: true,
type: 'string',
},
},
type: 'object',
},
customer_key: {
description:
'Customer key for which you want to create the space.',
Expand Down Expand Up @@ -74602,6 +74655,33 @@ export default {
items: { format: 'uuid', type: 'string' },
type: 'array',
},
customer_data: {
description:
'Reservation/stay-related defaults for the space. Only the keys you provide are updated; omit a key to leave it unchanged. Pass null on a key to clear it.',
properties: {
default_checkin_time: {
description:
'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.',
nullable: true,
pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
type: 'string',
},
default_checkout_time: {
description:
'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.',
nullable: true,
pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
type: 'string',
},
time_zone: {
description:
'IANA time zone for the space, e.g. America/Los_Angeles.',
nullable: true,
type: 'string',
},
},
type: 'object',
},
customer_key: {
description:
'Customer key for which you want to update the space.',
Expand Down Expand Up @@ -74678,6 +74758,33 @@ export default {
items: { format: 'uuid', type: 'string' },
type: 'array',
},
customer_data: {
description:
'Reservation/stay-related defaults for the space. Only the keys you provide are updated; omit a key to leave it unchanged. Pass null on a key to clear it.',
properties: {
default_checkin_time: {
description:
'Default check-in time for reservations at the space, as HH:mm or HH:mm:ss.',
nullable: true,
pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
type: 'string',
},
default_checkout_time: {
description:
'Default check-out time for reservations at the space, as HH:mm or HH:mm:ss.',
nullable: true,
pattern: '^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$',
type: 'string',
},
time_zone: {
description:
'IANA time zone for the space, e.g. America/Los_Angeles.',
nullable: true,
type: 'string',
},
},
type: 'object',
},
customer_key: {
description:
'Customer key for which you want to update the space.',
Expand Down
132 changes: 132 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12870,6 +12870,17 @@ export type Routes = {
acs_entrance_count: number
/** Customer key associated with the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
/** */
parent_space_id?: string | undefined
/** */
Expand Down Expand Up @@ -18033,6 +18044,17 @@ export type Routes = {
acs_entrance_count: number
/** Customer key associated with the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
/** */
parent_space_id?: string | undefined
/** */
Expand Down Expand Up @@ -80670,6 +80692,17 @@ export type Routes = {
acs_entrance_count: number
/** Customer key associated with the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
/** */
parent_space_id?: string | undefined
/** */
Expand Down Expand Up @@ -80712,6 +80745,17 @@ export type Routes = {
acs_entrance_count: number
/** Customer key associated with the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
/** */
parent_space_id?: string | undefined
/** */
Expand Down Expand Up @@ -81831,6 +81875,17 @@ export type Routes = {
acs_entrance_ids?: string[] | undefined
/** Customer key for which you want to create the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
}
commonParams: {}
formData: {}
Expand All @@ -81855,6 +81910,17 @@ export type Routes = {
acs_entrance_count: number
/** Customer key associated with the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
/** */
parent_space_id?: string | undefined
/** */
Expand Down Expand Up @@ -81912,6 +81978,17 @@ export type Routes = {
acs_entrance_count: number
/** Customer key associated with the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
/** */
parent_space_id?: string | undefined
/** */
Expand Down Expand Up @@ -81975,6 +82052,17 @@ export type Routes = {
acs_entrance_count: number
/** Customer key associated with the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
/** */
parent_space_id?: string | undefined
/** */
Expand Down Expand Up @@ -84316,6 +84404,17 @@ export type Routes = {
acs_entrance_count: number
/** Customer key associated with the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
/** */
parent_space_id?: string | undefined
/** */
Expand Down Expand Up @@ -84380,6 +84479,17 @@ export type Routes = {
acs_entrance_ids?: string[] | undefined
/** Customer key for which you want to update the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. Only the keys you provide are updated; omit a key to leave it unchanged. Pass null on a key to clear it. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
}
commonParams: {}
formData: {}
Expand All @@ -84404,6 +84514,17 @@ export type Routes = {
acs_entrance_count: number
/** Customer key associated with the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
/** */
parent_space_id?: string | undefined
/** */
Expand Down Expand Up @@ -114365,6 +114486,17 @@ export type Routes = {
acs_entrance_count: number
/** Customer key associated with the space. */
customer_key?: string | undefined
/** Reservation/stay-related defaults for the space. */
customer_data?:
| {
/** IANA time zone for the space, e.g. America/Los_Angeles. */
time_zone?: (string | null) | undefined
/** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkin_time?: (string | null) | undefined
/** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
default_checkout_time?: (string | null) | undefined
}
| undefined
/** */
parent_space_id?: string | undefined
/** */
Expand Down
Loading