Skip to content

Commit

Permalink
fix: User identity props on ACS user can be optional and nullable (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Apr 6, 2024
1 parent 123d9c4 commit bd15209
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/lib/seam/connect/models/acs/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const acs_user = z
is_suspended: z.boolean(),
access_schedule: schedule.optional(),
user_identity_id: z.string().optional(),
user_identity_email_address: z.string().optional(),
user_identity_phone_number: z.string().optional(),
user_identity_email_address: z.string().nullable().optional(),
user_identity_phone_number: z.string().nullable().optional(),
})
.merge(user_fields)

Expand Down
4 changes: 2 additions & 2 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,9 @@ export default {
hid_acs_system_id: { format: 'uuid', type: 'string' },
is_suspended: { type: 'boolean' },
phone_number: { nullable: true, type: 'string' },
user_identity_email_address: { type: 'string' },
user_identity_email_address: { nullable: true, type: 'string' },
user_identity_id: { type: 'string' },
user_identity_phone_number: { type: 'string' },
user_identity_phone_number: { nullable: true, type: 'string' },
workspace_id: { format: 'uuid', type: 'string' },
},
required: [
Expand Down
20 changes: 10 additions & 10 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,8 @@ export interface Routes {
}
| undefined
user_identity_id?: string | undefined
user_identity_email_address?: string | undefined
user_identity_phone_number?: string | undefined
user_identity_email_address?: (string | null) | undefined
user_identity_phone_number?: (string | null) | undefined
full_name?: string | undefined
/**
---
Expand Down Expand Up @@ -1512,8 +1512,8 @@ export interface Routes {
}
| undefined
user_identity_id?: string | undefined
user_identity_email_address?: string | undefined
user_identity_phone_number?: string | undefined
user_identity_email_address?: (string | null) | undefined
user_identity_phone_number?: (string | null) | undefined
full_name?: string | undefined
/**
---
Expand Down Expand Up @@ -1572,8 +1572,8 @@ export interface Routes {
}
| undefined
user_identity_id?: string | undefined
user_identity_email_address?: string | undefined
user_identity_phone_number?: string | undefined
user_identity_email_address?: (string | null) | undefined
user_identity_phone_number?: (string | null) | undefined
full_name?: string | undefined
/**
---
Expand Down Expand Up @@ -1624,8 +1624,8 @@ export interface Routes {
}
| undefined
user_identity_id?: string | undefined
user_identity_email_address?: string | undefined
user_identity_phone_number?: string | undefined
user_identity_email_address?: (string | null) | undefined
user_identity_phone_number?: (string | null) | undefined
full_name?: string | undefined
/**
---
Expand Down Expand Up @@ -11997,8 +11997,8 @@ export interface Routes {
}
| undefined
user_identity_id?: string | undefined
user_identity_email_address?: string | undefined
user_identity_phone_number?: string | undefined
user_identity_email_address?: (string | null) | undefined
user_identity_phone_number?: (string | null) | undefined
full_name?: string | undefined
/**
---
Expand Down

0 comments on commit bd15209

Please sign in to comment.