This repository has been archived on 2024-09-23. You can view files and clone it, but cannot push or open issues or pull requests.
rocketchat-scim/rest.ts
2022-02-15 13:38:33 +01:00

62 lines
1.2 KiB
TypeScript

interface IUserCreate {
email: string;
name: string;
password: string;
username: string;
active?: boolean;
roles?: Array<string>;
joinDefaultChannels?: boolean;
requirePasswordChange?: boolean;
sendWelcomeEmail?: boolean;
verified?: boolean;
customFields?: any;
}
interface IUserUpdate {
userId: string;
data: {
email?: string;
name?: string;
password?: string;
username?: string;
active?: boolean;
roles?: Array<string>;
joinDefaultChannels?: boolean;
requirePasswordChange?: boolean;
sendWelcomeEmail?: boolean;
verified?: boolean;
customFields?: any;
};
}
interface IUserDelete {
userId: string;
confirmRelinquish?: boolean;
}
interface IUser {
_id: string;
emails: Array<{ address: string; verified: boolean }>;
name: string;
username: string;
active?: boolean;
createdAt: string;
_updatedAt?: string;
}
interface ITeam {
_id: string;
name: string;
active?: boolean;
createdAt: string;
_updatedAt?: string;
}
interface ITeamMember {
user: {
_id: string;
name: string;
username: string;
};
createdAt: string;
}