Skip to content

Commit

Permalink
feat: Add workspace.company_name (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Jun 5, 2024
1 parent ae3de3a commit 7eee5e9
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 9 deletions.
13 changes: 12 additions & 1 deletion src/lib/seam/connect/models/workspaces/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ import { z } from 'zod'
export const workspace = z.object({
workspace_id: z.string().uuid(),
name: z.string(),
company_name: z.string(),
is_sandbox: z.boolean(),
connect_partner_name: z.string().nullable(),
connect_partner_name: z
.string()
.nullable()
.describe(
`
---
deprecated: use company_name
---
`,
)
.nullable(),
})
16 changes: 13 additions & 3 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3729,14 +3729,21 @@ export default {
},
workspace: {
properties: {
connect_partner_name: { nullable: true, type: 'string' },
company_name: { type: 'string' },
connect_partner_name: {
description:
'\n ---\n deprecated: use company_name\n ---\n ',
nullable: true,
type: 'string',
},
is_sandbox: { type: 'boolean' },
name: { type: 'string' },
workspace_id: { format: 'uuid', type: 'string' },
},
required: [
'workspace_id',
'name',
'company_name',
'is_sandbox',
'connect_partner_name',
],
Expand Down Expand Up @@ -12707,8 +12714,11 @@ export default {
'application/json': {
schema: {
properties: {
company_name: { type: 'string' },
connect_partner_name: {
description: 'The name shown inside the connect webview',
description:
'\n ---\n deprecated: use company_name\n ---\n ',
nullable: true,
type: 'string',
},
is_sandbox: { default: false, type: 'boolean' },
Expand All @@ -12719,7 +12729,7 @@ export default {
},
webview_primary_button_color: { type: 'string' },
},
required: ['name', 'connect_partner_name'],
required: ['name'],
type: 'object',
},
},
Expand Down
33 changes: 28 additions & 5 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22074,8 +22074,13 @@ export interface Routes {
queryParams: {}
jsonBody: {
name: string
/** The name shown inside the connect webview */
connect_partner_name: string
company_name?: string | undefined
/**
---
deprecated: use company_name
---
*/
connect_partner_name?: ((string | null) | null) | undefined
is_sandbox?: boolean
webview_primary_button_color?: string | undefined
webview_logo_shape?: ('circle' | 'square') | undefined
Expand All @@ -22086,8 +22091,14 @@ export interface Routes {
workspace: {
workspace_id: string
name: string
company_name: string
is_sandbox: boolean
connect_partner_name: string | null
/**
---
deprecated: use company_name
---
*/
connect_partner_name: (string | null) | null
}
}
}
Expand All @@ -22102,8 +22113,14 @@ export interface Routes {
workspace: {
workspace_id: string
name: string
company_name: string
is_sandbox: boolean
connect_partner_name: string | null
/**
---
deprecated: use company_name
---
*/
connect_partner_name: (string | null) | null
}
}
}
Expand All @@ -22118,8 +22135,14 @@ export interface Routes {
workspaces: Array<{
workspace_id: string
name: string
company_name: string
is_sandbox: boolean
connect_partner_name: string | null
/**
---
deprecated: use company_name
---
*/
connect_partner_name: (string | null) | null
}>
}
}
Expand Down

0 comments on commit 7eee5e9

Please sign in to comment.