remove chat data and ownerCalendar

This commit is contained in:
Peter Maquiran
2024-11-06 08:24:37 +01:00
parent 52d333ad16
commit ecb2f6c08e
39 changed files with 1845 additions and 264 deletions
@@ -6,13 +6,16 @@ export class AgendaPermission{
constructor() {
if(SessionStore.exist) {
for (let calendar of SessionStore?.user?.OwnerCalendars) {
this.hasOwnCalendar = true
}
// for (let calendar of SessionStore?.user?.OwnerCalendars) {
// this.hasOwnCalendar = true
// }
for (let sharedCalendar of SessionStore?.user?.SharedCalendars) {
this.hasSharedCalendar = true
}
// for (let sharedCalendar of SessionStore?.user?.SharedCalendars) {
// this.hasSharedCalendar = true
// }
this.hasOwnCalendar = true
this.hasSharedCalendar = true
}
}
get access () {
-51
View File
@@ -10,31 +10,10 @@ export class LoginUserRespose {
BasicAuthKey: string;
UserId: number;
Authorization: string;
ChatData: {
status: string,
data: {
userId: string,
authToken: string
}
}
Email: string
FullName: string
OwnerCalendars: {
CalendarId: string
CalendarName: "Oficial" | "Pessoal";
CalendarRoleId: string;
Id: number;
}[]
RoleDescription: string
RoleID: number
SharedCalendars: {
CalendarId: string
CalendarName: "Oficial" | "Pessoal";
CalendarRoleId: string;
Id: number;
OwnerUserId: string;
TypeShare: number;
}[]
UserName: string
Profile: any;
UserPermissions: any;
@@ -53,40 +32,10 @@ export class UserSession {
BasicAuthKey: string;
UserId: number;
Authorization: string;
ChatData: {
status: string,
data: {
userId: string,
authToken: string
}
}
Email: string
FullName: string
ManagerName: string
OwnerCalendars: {
CalendarId: string
CalendarName: "Oficial" | "Pessoal";
CalendarRoleId: string;
Id: number;
OwnerUserId: any
}[]
RoleDescription: string
RoleID: number
SharedCalendars: {
CalendarId: string
CalendarName: "Oficial" | "Pessoal";
/**
* @description User Role Id
*/
CalendarRoleId: string;
Id: number;
OwnerUserId: string;
TypeShare: number;
/**
* @description deprecated
*/
CalendarToken: string;
}[]
UserName: string
Password: string
RochetChatUserId: string