From f8cebeba4eb2278089b86d7537c97c05ff515602 Mon Sep 17 00:00:00 2001 From: adrinr Date: Fri, 10 Mar 2023 11:05:25 +0100 Subject: [PATCH] Add create types --- .../types/src/api/web/global/scim/users.ts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/packages/types/src/api/web/global/scim/users.ts b/packages/types/src/api/web/global/scim/users.ts index 079436e9ae..eba122e436 100644 --- a/packages/types/src/api/web/global/scim/users.ts +++ b/packages/types/src/api/web/global/scim/users.ts @@ -30,3 +30,54 @@ export interface ScimListResponse { startIndex: number itemsPerPage: number } + +export interface ScimUserRequest { + schemas: [ + "urn:ietf:params:scim:schemas:core:2.0:User", + "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User" + ] + externalId: string + userName: string + active: boolean + emails: [ + { + primary: true + type: "work" + value: string + } + ] + meta: { + resourceType: "User" + } + name: { + formatted: string + familyName: string + givenName: string + } + 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 + } + ] +}