Skip to content

Commit 91be153

Browse files
authored
feat: Sync with Seam API via 918a6ba4f546dafe260770d8c4546195aece782d (#2417)
1 parent 893f9d8 commit 91be153

File tree

3 files changed

+277
-0
lines changed

3 files changed

+277
-0
lines changed

src/lib/seam/connect/models/customer/customer-portal.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { z } from 'zod'
22

3+
import { location_key_aliases } from './location-resources.js'
4+
35
const base_feature = z.object({
46
exclude: z
57
.boolean()
@@ -48,6 +50,12 @@ export const portal_configuration = z
4850
.boolean()
4951
.default(false)
5052
.describe('Whether the portal is embedded in another application.'),
53+
landing_page: z
54+
.object({
55+
manage: location_key_aliases.optional(),
56+
})
57+
.optional()
58+
.describe('Configuration for the landing page when the portal loads.'),
5159
})
5260
.default({
5361
features: {

src/lib/seam/connect/openapi.ts

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38450,6 +38450,72 @@ export default {
3845038450
'Whether the portal is embedded in another application.',
3845138451
type: 'boolean',
3845238452
},
38453+
landing_page: {
38454+
description:
38455+
'Configuration for the landing page when the portal loads.',
38456+
properties: {
38457+
manage: {
38458+
oneOf: [
38459+
{
38460+
properties: { space_key: { type: 'string' } },
38461+
required: ['space_key'],
38462+
type: 'object',
38463+
},
38464+
{
38465+
properties: {
38466+
property_key: { type: 'string' },
38467+
},
38468+
required: ['property_key'],
38469+
type: 'object',
38470+
},
38471+
{
38472+
properties: { room_key: { type: 'string' } },
38473+
required: ['room_key'],
38474+
type: 'object',
38475+
},
38476+
{
38477+
properties: {
38478+
common_area_key: { type: 'string' },
38479+
},
38480+
required: ['common_area_key'],
38481+
type: 'object',
38482+
},
38483+
{
38484+
properties: { unit_key: { type: 'string' } },
38485+
required: ['unit_key'],
38486+
type: 'object',
38487+
},
38488+
{
38489+
properties: {
38490+
facility_key: { type: 'string' },
38491+
},
38492+
required: ['facility_key'],
38493+
type: 'object',
38494+
},
38495+
{
38496+
properties: {
38497+
building_key: { type: 'string' },
38498+
},
38499+
required: ['building_key'],
38500+
type: 'object',
38501+
},
38502+
{
38503+
properties: { listing_key: { type: 'string' } },
38504+
required: ['listing_key'],
38505+
type: 'object',
38506+
},
38507+
{
38508+
properties: {
38509+
property_listing_key: { type: 'string' },
38510+
},
38511+
required: ['property_listing_key'],
38512+
type: 'object',
38513+
},
38514+
],
38515+
},
38516+
},
38517+
type: 'object',
38518+
},
3845338519
},
3845438520
type: 'object',
3845538521
},
@@ -49232,6 +49298,72 @@ export default {
4923249298
type: 'object',
4923349299
},
4923449300
is_embedded: { type: 'boolean' },
49301+
landing_page: {
49302+
properties: {
49303+
manage: {
49304+
oneOf: [
49305+
{
49306+
properties: { space_key: { type: 'string' } },
49307+
required: ['space_key'],
49308+
type: 'object',
49309+
},
49310+
{
49311+
properties: {
49312+
property_key: { type: 'string' },
49313+
},
49314+
required: ['property_key'],
49315+
type: 'object',
49316+
},
49317+
{
49318+
properties: { room_key: { type: 'string' } },
49319+
required: ['room_key'],
49320+
type: 'object',
49321+
},
49322+
{
49323+
properties: {
49324+
common_area_key: { type: 'string' },
49325+
},
49326+
required: ['common_area_key'],
49327+
type: 'object',
49328+
},
49329+
{
49330+
properties: { unit_key: { type: 'string' } },
49331+
required: ['unit_key'],
49332+
type: 'object',
49333+
},
49334+
{
49335+
properties: {
49336+
facility_key: { type: 'string' },
49337+
},
49338+
required: ['facility_key'],
49339+
type: 'object',
49340+
},
49341+
{
49342+
properties: {
49343+
building_key: { type: 'string' },
49344+
},
49345+
required: ['building_key'],
49346+
type: 'object',
49347+
},
49348+
{
49349+
properties: {
49350+
listing_key: { type: 'string' },
49351+
},
49352+
required: ['listing_key'],
49353+
type: 'object',
49354+
},
49355+
{
49356+
properties: {
49357+
property_listing_key: { type: 'string' },
49358+
},
49359+
required: ['property_listing_key'],
49360+
type: 'object',
49361+
},
49362+
],
49363+
},
49364+
},
49365+
type: 'object',
49366+
},
4923549367
},
4923649368
type: 'object',
4923749369
},
@@ -49328,6 +49460,72 @@ export default {
4932849460
type: 'object',
4932949461
},
4933049462
is_embedded: { type: 'boolean' },
49463+
landing_page: {
49464+
properties: {
49465+
manage: {
49466+
oneOf: [
49467+
{
49468+
properties: { space_key: { type: 'string' } },
49469+
required: ['space_key'],
49470+
type: 'object',
49471+
},
49472+
{
49473+
properties: {
49474+
property_key: { type: 'string' },
49475+
},
49476+
required: ['property_key'],
49477+
type: 'object',
49478+
},
49479+
{
49480+
properties: { room_key: { type: 'string' } },
49481+
required: ['room_key'],
49482+
type: 'object',
49483+
},
49484+
{
49485+
properties: {
49486+
common_area_key: { type: 'string' },
49487+
},
49488+
required: ['common_area_key'],
49489+
type: 'object',
49490+
},
49491+
{
49492+
properties: { unit_key: { type: 'string' } },
49493+
required: ['unit_key'],
49494+
type: 'object',
49495+
},
49496+
{
49497+
properties: {
49498+
facility_key: { type: 'string' },
49499+
},
49500+
required: ['facility_key'],
49501+
type: 'object',
49502+
},
49503+
{
49504+
properties: {
49505+
building_key: { type: 'string' },
49506+
},
49507+
required: ['building_key'],
49508+
type: 'object',
49509+
},
49510+
{
49511+
properties: {
49512+
listing_key: { type: 'string' },
49513+
},
49514+
required: ['listing_key'],
49515+
type: 'object',
49516+
},
49517+
{
49518+
properties: {
49519+
property_listing_key: { type: 'string' },
49520+
},
49521+
required: ['property_listing_key'],
49522+
type: 'object',
49523+
},
49524+
],
49525+
},
49526+
},
49527+
type: 'object',
49528+
},
4933149529
},
4933249530
type: 'object',
4933349531
},

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

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36031,6 +36031,42 @@ export type Routes = {
3603136031
}
3603236032
/** Whether the portal is embedded in another application. */
3603336033
is_embedded?: boolean
36034+
/** Configuration for the landing page when the portal loads. */
36035+
landing_page?:
36036+
| {
36037+
manage?:
36038+
| (
36039+
| {
36040+
space_key: string
36041+
}
36042+
| {
36043+
property_key: string
36044+
}
36045+
| {
36046+
room_key: string
36047+
}
36048+
| {
36049+
common_area_key: string
36050+
}
36051+
| {
36052+
unit_key: string
36053+
}
36054+
| {
36055+
facility_key: string
36056+
}
36057+
| {
36058+
building_key: string
36059+
}
36060+
| {
36061+
listing_key: string
36062+
}
36063+
| {
36064+
property_listing_key: string
36065+
}
36066+
)
36067+
| undefined
36068+
}
36069+
| undefined
3603436070
} & {
3603536071
customer_data?:
3603636072
| {
@@ -68618,6 +68654,41 @@ export type Routes = {
6861868654
}
6861968655
| undefined
6862068656
is_embedded?: boolean | undefined
68657+
landing_page?:
68658+
| {
68659+
manage?:
68660+
| (
68661+
| {
68662+
space_key: string
68663+
}
68664+
| {
68665+
property_key: string
68666+
}
68667+
| {
68668+
room_key: string
68669+
}
68670+
| {
68671+
common_area_key: string
68672+
}
68673+
| {
68674+
unit_key: string
68675+
}
68676+
| {
68677+
facility_key: string
68678+
}
68679+
| {
68680+
building_key: string
68681+
}
68682+
| {
68683+
listing_key: string
68684+
}
68685+
| {
68686+
property_listing_key: string
68687+
}
68688+
)
68689+
| undefined
68690+
}
68691+
| undefined
6862168692
/** Business vertical of the customer portal. */
6862268693
business_vertical?:
6862368694
| (

0 commit comments

Comments
 (0)