diff --git a/src/lib/seam/connect/internal/schemas.ts b/src/lib/seam/connect/internal/schemas.ts index d3042676..3e5e6015 100644 --- a/src/lib/seam/connect/internal/schemas.ts +++ b/src/lib/seam/connect/internal/schemas.ts @@ -73,6 +73,7 @@ export { resident_resource, room_resource, space, + space_customer_data, neutral_resource as space_resource, staff_member_resource, tenant_resource, diff --git a/src/lib/seam/connect/models/spaces/space.ts b/src/lib/seam/connect/models/spaces/space.ts index 73c27c5d..1d0f54ee 100644 --- a/src/lib/seam/connect/models/spaces/space.ts +++ b/src/lib/seam/connect/models/spaces/space.ts @@ -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 @@ -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. diff --git a/src/lib/seam/connect/openapi.ts b/src/lib/seam/connect/openapi.ts index 8fb842b2..3e5f2763 100644 --- a/src/lib/seam/connect/openapi.ts +++ b/src/lib/seam/connect/openapi.ts @@ -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', @@ -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.', @@ -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.', @@ -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.', diff --git a/src/lib/seam/connect/route-types.ts b/src/lib/seam/connect/route-types.ts index 233220a7..bf70240b 100644 --- a/src/lib/seam/connect/route-types.ts +++ b/src/lib/seam/connect/route-types.ts @@ -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 /** */ @@ -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 /** */ @@ -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 /** */ @@ -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 /** */ @@ -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: {} @@ -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 /** */ @@ -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 /** */ @@ -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 /** */ @@ -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 /** */ @@ -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: {} @@ -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 /** */ @@ -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 /** */