Skip to content

Commit 76b1eb8

Browse files
authored
feat: Sync with Seam API via 106e91dcac372b5daa27ba6fb32d46a4cfa73ec5 (#2443)
1 parent f189d9d commit 76b1eb8

File tree

2 files changed

+218
-0
lines changed

2 files changed

+218
-0
lines changed

src/lib/seam/connect/openapi.ts

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49837,6 +49837,179 @@ export default {
4983749837
'x-undocumented': 'Internal endpoint for customer portals.',
4983849838
},
4983949839
},
49840+
'/seam/customer/v1/reservations/get': {
49841+
get: {
49842+
description:
49843+
'Returns a single reservation for a specific customer by reservation ID.',
49844+
operationId: 'seamCustomerV1ReservationsGetGet',
49845+
parameters: [
49846+
{
49847+
in: 'query',
49848+
name: 'reservation_id',
49849+
schema: {
49850+
description: 'ID of the reservation to retrieve.',
49851+
format: 'uuid',
49852+
type: 'string',
49853+
},
49854+
},
49855+
{
49856+
in: 'query',
49857+
name: 'reservation_key',
49858+
schema: {
49859+
description: 'Key of the reservation to retrieve.',
49860+
type: 'string',
49861+
},
49862+
},
49863+
],
49864+
responses: {
49865+
200: {
49866+
content: {
49867+
'application/json': {
49868+
schema: {
49869+
properties: {
49870+
ok: { type: 'boolean' },
49871+
reservation: {
49872+
properties: {
49873+
access_methods: {
49874+
items: { $ref: '#/components/schemas/access_method' },
49875+
type: 'array',
49876+
},
49877+
created_at: { format: 'date-time', type: 'string' },
49878+
ends_at: {
49879+
format: 'date-time',
49880+
nullable: true,
49881+
type: 'string',
49882+
},
49883+
guest_name: { nullable: true, type: 'string' },
49884+
name: { nullable: true, type: 'string' },
49885+
reservation_id: { format: 'uuid', type: 'string' },
49886+
reservation_key: { type: 'string' },
49887+
starts_at: {
49888+
format: 'date-time',
49889+
nullable: true,
49890+
type: 'string',
49891+
},
49892+
},
49893+
required: [
49894+
'reservation_id',
49895+
'reservation_key',
49896+
'name',
49897+
'starts_at',
49898+
'ends_at',
49899+
'created_at',
49900+
'guest_name',
49901+
'access_methods',
49902+
],
49903+
type: 'object',
49904+
},
49905+
},
49906+
required: ['reservation', 'ok'],
49907+
type: 'object',
49908+
},
49909+
},
49910+
},
49911+
description: 'OK',
49912+
},
49913+
400: { description: 'Bad Request' },
49914+
401: { description: 'Unauthorized' },
49915+
},
49916+
security: [{ client_session_with_customer: [] }],
49917+
summary: '/seam/customer/v1/reservations/get',
49918+
tags: [],
49919+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'],
49920+
'x-fern-sdk-method-name': 'get',
49921+
'x-fern-sdk-return-value': 'reservation',
49922+
'x-response-key': 'reservation',
49923+
'x-title': 'Get Reservation for Customer',
49924+
'x-undocumented': 'Internal endpoint for customer portals.',
49925+
},
49926+
post: {
49927+
description:
49928+
'Returns a single reservation for a specific customer by reservation ID.',
49929+
operationId: 'seamCustomerV1ReservationsGetPost',
49930+
requestBody: {
49931+
content: {
49932+
'application/json': {
49933+
schema: {
49934+
properties: {
49935+
reservation_id: {
49936+
description: 'ID of the reservation to retrieve.',
49937+
format: 'uuid',
49938+
type: 'string',
49939+
},
49940+
reservation_key: {
49941+
description: 'Key of the reservation to retrieve.',
49942+
type: 'string',
49943+
},
49944+
},
49945+
type: 'object',
49946+
},
49947+
},
49948+
},
49949+
},
49950+
responses: {
49951+
200: {
49952+
content: {
49953+
'application/json': {
49954+
schema: {
49955+
properties: {
49956+
ok: { type: 'boolean' },
49957+
reservation: {
49958+
properties: {
49959+
access_methods: {
49960+
items: { $ref: '#/components/schemas/access_method' },
49961+
type: 'array',
49962+
},
49963+
created_at: { format: 'date-time', type: 'string' },
49964+
ends_at: {
49965+
format: 'date-time',
49966+
nullable: true,
49967+
type: 'string',
49968+
},
49969+
guest_name: { nullable: true, type: 'string' },
49970+
name: { nullable: true, type: 'string' },
49971+
reservation_id: { format: 'uuid', type: 'string' },
49972+
reservation_key: { type: 'string' },
49973+
starts_at: {
49974+
format: 'date-time',
49975+
nullable: true,
49976+
type: 'string',
49977+
},
49978+
},
49979+
required: [
49980+
'reservation_id',
49981+
'reservation_key',
49982+
'name',
49983+
'starts_at',
49984+
'ends_at',
49985+
'created_at',
49986+
'guest_name',
49987+
'access_methods',
49988+
],
49989+
type: 'object',
49990+
},
49991+
},
49992+
required: ['reservation', 'ok'],
49993+
type: 'object',
49994+
},
49995+
},
49996+
},
49997+
description: 'OK',
49998+
},
49999+
400: { description: 'Bad Request' },
50000+
401: { description: 'Unauthorized' },
50001+
},
50002+
security: [{ client_session_with_customer: [] }],
50003+
summary: '/seam/customer/v1/reservations/get',
50004+
tags: [],
50005+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'],
50006+
'x-fern-sdk-method-name': 'get',
50007+
'x-fern-sdk-return-value': 'reservation',
50008+
'x-response-key': 'reservation',
50009+
'x-title': 'Get Reservation for Customer',
50010+
'x-undocumented': 'Internal endpoint for customer portals.',
50011+
},
50012+
},
4984050013
'/seam/customer/v1/reservations/list': {
4984150014
get: {
4984250015
description:
@@ -49851,6 +50024,15 @@ export default {
4985150024
type: 'string',
4985250025
},
4985350026
},
50027+
{
50028+
in: 'query',
50029+
name: 'space_id',
50030+
schema: {
50031+
description: 'Filter reservations by space ID (UUID).',
50032+
format: 'uuid',
50033+
type: 'string',
50034+
},
50035+
},
4985450036
{
4985550037
in: 'query',
4985650038
name: 'limit',
@@ -49980,6 +50162,11 @@ export default {
4998050162
nullable: true,
4998150163
type: 'string',
4998250164
},
50165+
space_id: {
50166+
description: 'Filter reservations by space ID (UUID).',
50167+
format: 'uuid',
50168+
type: 'string',
50169+
},
4998350170
space_key: {
4998450171
description: 'Filter reservations by space key.',
4998550172
type: 'string',

src/lib/seam/connect/route-types.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69109,6 +69109,35 @@ export type Routes = {
6910969109
}
6911069110
}
6911169111
}
69112+
'/seam/customer/v1/reservations/get': {
69113+
route: '/seam/customer/v1/reservations/get'
69114+
method: 'GET' | 'POST'
69115+
queryParams: {}
69116+
jsonBody: {}
69117+
commonParams: {
69118+
/** ID of the reservation to retrieve. */
69119+
reservation_id?: string | undefined
69120+
/** Key of the reservation to retrieve. */
69121+
reservation_key?: string | undefined
69122+
}
69123+
formData: {}
69124+
jsonResponse: {
69125+
reservation: {
69126+
reservation_id: string
69127+
reservation_key: string
69128+
name: string | null
69129+
starts_at: string | null
69130+
ends_at: string | null
69131+
created_at: string
69132+
guest_name: string | null
69133+
access_methods: {
69134+
access_method_id: string
69135+
mode: string
69136+
is_issued: boolean
69137+
}[]
69138+
}
69139+
}
69140+
}
6911269141
'/seam/customer/v1/reservations/list': {
6911369142
route: '/seam/customer/v1/reservations/list'
6911469143
method: 'GET' | 'POST'
@@ -69117,6 +69146,8 @@ export type Routes = {
6911769146
commonParams: {
6911869147
/** Filter reservations by space key. */
6911969148
space_key?: string | undefined
69149+
/** Filter reservations by space ID (UUID). */
69150+
space_id?: string | undefined
6912069151
/** Maximum number of records to return per page. */
6912169152
limit?: number
6912269153
/** Timestamp by which to limit returned reservations. Returns reservations created before this timestamp. */

0 commit comments

Comments
 (0)