Skip to content

Commit

Permalink
Edit directory user interface to reflect nullable attributes (#881)
Browse files Browse the repository at this point in the history
## Description

**BREAKING CHANGE - PUT IN MAJOR RELEASE**

Fixes the directory user interface to accurately reflect the typing of
attributes in the API.

## Documentation

Does this require changes to the WorkOS Docs? E.g. the [API
Reference](https://workos.com/docs/reference) or code snippets need
updates.

```
[x] Yes
```

Docs PR: workos/workos#23767
  • Loading branch information
blairworkos authored Nov 13, 2023
1 parent 7440bd8 commit c6f6e8e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/directory-sync/interfaces/directory-user.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ export interface DirectoryUser<
rawAttributes: TRawAttributes;
customAttributes: TCustomAttributes;
idpId: string;
firstName: string;
firstName: string | null;
emails: {
type: string;
value: string;
primary: boolean;
type?: string;
value?: string;
primary?: boolean;
}[];
username: string;
lastName: string;
username: string | null;
lastName: string | null;
jobTitle: string | null;
state: 'active' | 'inactive' | 'suspended';
createdAt: string;
Expand All @@ -41,14 +41,14 @@ export interface DirectoryUserResponse<
raw_attributes: TRawAttributes;
custom_attributes: TCustomAttributes;
idp_id: string;
first_name: string;
first_name: string | null;
emails: {
type: string;
value: string;
primary: boolean;
type?: string;
value?: string;
primary?: boolean;
}[];
username: string;
last_name: string;
username: string | null;
last_name: string | null;
job_title: string | null;
state: 'active' | 'inactive' | 'suspended';
created_at: string;
Expand Down

0 comments on commit c6f6e8e

Please sign in to comment.