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
16 changes: 11 additions & 5 deletions src/lib/seam/connect/models/customer/customer-portal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ const base_manage_feature = base_feature.extend({
const base_organize_feature = base_feature

const base_configure_feature = base_feature.extend({
customization_profile_id: z
.string()
.uuid()
.optional()
.describe('The ID of the customization profile to use for the portal.'),
allow_access_automation_rule_customization: z
.boolean()
.default(false)
Expand Down Expand Up @@ -98,6 +93,16 @@ export const portal_configuration_base = z.object({
})
.optional()
.describe('Configuration for the landing page when the portal loads.'),
locale: z
.enum(['en-US', 'pt-PT', 'auto'])
.optional()
.default('auto')
.describe('The locale to use for the portal.'),
customization_profile_id: z
.string()
.uuid()
.optional()
.describe('The ID of the customization profile to use for the portal.'),
})

export const portal_configuration = portal_configuration_base
Expand All @@ -120,6 +125,7 @@ export const portal_configuration = portal_configuration_base
},
},
is_embedded: false,
locale: 'auto',
})
.describe(`Configuration for a customer portal`)

Expand Down
55 changes: 37 additions & 18 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41075,9 +41075,16 @@ export default {
organize: { exclude: false },
},
is_embedded: false,
locale: 'auto',
},
description: 'Configuration for a customer portal',
properties: {
customization_profile_id: {
description:
'The ID of the customization profile to use for the portal.',
format: 'uuid',
type: 'string',
},
features: {
default: {},
properties: {
Expand All @@ -41098,12 +41105,6 @@ export default {
'Indicates whether the customer can customize the Instant Key profile for their properties.',
type: 'boolean',
},
customization_profile_id: {
description:
'The ID of the customization profile to use for the portal.',
format: 'uuid',
type: 'string',
},
exclude: {
default: false,
description:
Expand Down Expand Up @@ -41312,6 +41313,12 @@ export default {
},
type: 'object',
},
locale: {
default: 'auto',
description: 'The locale to use for the portal.',
enum: ['en-US', 'pt-PT', 'auto'],
type: 'string',
},
},
type: 'object',
},
Expand Down Expand Up @@ -53927,6 +53934,12 @@ export default {
],
type: 'string',
},
customization_profile_id: {
description:
'The ID of the customization profile to use for the portal.',
format: 'uuid',
type: 'string',
},
features: {
default: { $ref: '#/components/schemas/access_code' },
properties: {
Expand All @@ -53949,12 +53962,6 @@ export default {
'Indicates whether the customer can customize the Instant Key profile for their properties.',
type: 'boolean',
},
customization_profile_id: {
description:
'The ID of the customization profile to use for the portal.',
format: 'uuid',
type: 'string',
},
exclude: {
default: false,
description:
Expand Down Expand Up @@ -54173,6 +54180,12 @@ export default {
},
type: 'object',
},
locale: {
default: 'auto',
description: 'The locale to use for the portal.',
enum: ['en-US', 'pt-PT', 'auto'],
type: 'string',
},
},
type: 'object',
},
Expand Down Expand Up @@ -54239,6 +54252,12 @@ export default {
],
type: 'string',
},
customization_profile_id: {
description:
'The ID of the customization profile to use for the portal.',
format: 'uuid',
type: 'string',
},
features: {
default: { $ref: '#/components/schemas/access_code' },
properties: {
Expand All @@ -54261,12 +54280,6 @@ export default {
'Indicates whether the customer can customize the Instant Key profile for their properties.',
type: 'boolean',
},
customization_profile_id: {
description:
'The ID of the customization profile to use for the portal.',
format: 'uuid',
type: 'string',
},
exclude: {
default: false,
description:
Expand Down Expand Up @@ -54485,6 +54498,12 @@ export default {
},
type: 'object',
},
locale: {
default: 'auto',
description: 'The locale to use for the portal.',
enum: ['en-US', 'pt-PT', 'auto'],
type: 'string',
},
},
type: 'object',
},
Expand Down
12 changes: 8 additions & 4 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30495,8 +30495,6 @@ export type Routes = {
configure?: {
/** Whether to exclude this feature from the portal. */
exclude?: boolean
/** The ID of the customization profile to use for the portal. */
customization_profile_id?: string | undefined
/** Indicates whether the customer can customize the access automation rules for their properties. */
allow_access_automation_rule_customization?: boolean
/** Indicates whether the customer can customize the Instant Key profile for their properties. */
Expand Down Expand Up @@ -30557,6 +30555,10 @@ export type Routes = {
| undefined
}
| undefined
/** The locale to use for the portal. */
locale?: 'en-US' | 'pt-PT' | 'auto'
/** The ID of the customization profile to use for the portal. */
customization_profile_id?: string | undefined
} & {
customer_data?:
| {
Expand Down Expand Up @@ -64438,8 +64440,6 @@ export type Routes = {
configure?: {
/** Whether to exclude this feature from the portal. */
exclude?: boolean
/** The ID of the customization profile to use for the portal. */
customization_profile_id?: string | undefined
/** Indicates whether the customer can customize the access automation rules for their properties. */
allow_access_automation_rule_customization?: boolean
/** Indicates whether the customer can customize the Instant Key profile for their properties. */
Expand Down Expand Up @@ -64500,6 +64500,10 @@ export type Routes = {
| undefined
}
| undefined
/** The locale to use for the portal. */
locale?: 'en-US' | 'pt-PT' | 'auto'
/** The ID of the customization profile to use for the portal. */
customization_profile_id?: string | undefined
/** Business vertical of the customer portal. */
business_vertical?:
| (
Expand Down