Unify interfaces

This commit is contained in:
adrinr 2023-03-14 12:14:57 +01:00
parent 81e086680d
commit 437672a6a3
1 changed files with 2 additions and 27 deletions

View File

@ -1,4 +1,4 @@
export interface ScimUser { export interface ScimUserResponse {
schemas: ["urn:ietf:params:scim:schemas:core:2.0:User"] schemas: ["urn:ietf:params:scim:schemas:core:2.0:User"]
id: string id: string
externalId: string externalId: string
@ -26,7 +26,7 @@ export interface ScimUser {
export interface ScimListResponse { export interface ScimListResponse {
schemas: ["urn:ietf:params:scim:api:messages:2.0:ListResponse"] schemas: ["urn:ietf:params:scim:api:messages:2.0:ListResponse"]
totalResults: number totalResults: number
Resources: ScimUser[] Resources: ScimUserResponse[]
startIndex: number startIndex: number
itemsPerPage: number itemsPerPage: number
} }
@ -56,28 +56,3 @@ export interface ScimUserRequest {
} }
roles: [] roles: []
} }
export interface ScimUserResponse {
schemas: ["urn:ietf:params:scim:schemas:core:2.0:User"]
id: string
externalId: string
meta: {
resourceType: "User"
created: string
lastModified: string
}
userName: string
name: {
formatted: string
familyName: string
givenName: string
}
active: boolean
emails: [
{
value: string
type: "work"
primary: true
}
]
}