import { UUID } from 'angular2-uuid'; import { IBaseQuery } from './ibase-query'; export declare namespace ViewedSystemTour { interface IViewedSystemTour extends IBaseQuery { userId: UUID; systemTour: any; whenEnded: string; id: UUID; } } export declare namespace UserSecretAnswer { interface IUserSecretAnswer extends IBaseQuery { username: string; secretQuestionId: UUID; answer: string; answerNumber: number; id: UUID; } } export declare namespace UserPreference { interface IUserPreference extends IBaseQuery { userId: UUID; data: string; systemPreference: any; id: UUID; } } export declare namespace User { interface IAccount extends IBaseQuery { firstName: string; lastName: string; emailAddress: string; username: string; roleGroupId: UUID; businessId: UUID; corporationId: UUID; location: string; jobTitle: string; photoFileId: any; whenLoggedIn: any; id: UUID; } interface IStaffOnDuty extends IBaseQuery { firstName: string; lastName: string; isExcluded: boolean; businessId: UUID; id: UUID; } interface IUser extends IBaseQuery { legacyId: string; firstName: string; lastName: string; emailAddress: string; businessId: UUID; corporationId: UUID; jobTitle: string; username: string; whenCreated: string; isConfirmed: boolean; passwordFailuresSinceLastSuccess: number; lastPasswordFailureDate: any; passwordChangedDate: any; roleGroupId: UUID; id: UUID; } interface IUsersWithIntegration extends IBaseQuery { userIntegrationId: UUID; userIntegrationType: any; externalId: string; id: UUID; } interface IUserWithRoleGroup extends IBaseQuery { corporationId: UUID; roleGroupId: UUID; name: string; id: UUID; } } export declare namespace TurnAway { interface ITurnAway extends IBaseQuery { userId: UUID; businessId: UUID; whenRecorded: string; id: UUID; } } export declare namespace TrainingCourse { interface ITrainingCourse extends IBaseQuery { corporationId: UUID; name: string; description: string; id: UUID; } } export declare namespace SystemMessage { interface ISystemMessage extends IBaseQuery { message: string; colourType: any; senderFirstName: string; senderLastName: string; id: UUID; } } export declare namespace SystemAlert { interface IActiveSystemAlert extends IBaseQuery { subject: string; message: string; distributionType: any; colourType: any; isClosable: boolean; whenCreated: string; distributedTo: string; id: UUID; } interface IUnreadOpenSystemAlert extends IBaseQuery { subject: string; message: string; distributionType: any; colourType: any; isClosable: boolean; userId: UUID; whenAlerted: any; userSystemAlertId: UUID; id: UUID; } } export declare namespace SecretQuestion { interface ISecretQuestion extends IBaseQuery { corporationId: UUID; question: string; id: UUID; } interface IUserSecretQuestion extends IBaseQuery { corporationId: UUID; userId: UUID; question: string; id: UUID; } } export declare namespace RoleGroupPermission { interface IRoleGroupPermission extends IBaseQuery { corporationId: UUID; roleGroupId: UUID; permissionId: UUID; value: number; name: string; permissionType: number; id: UUID; } } export declare namespace RoleGroup { interface IRoleGroup extends IBaseQuery { name: string; corporationId: UUID; whenDeleted: any; id: UUID; } } export declare namespace Permission { interface IPermission extends IBaseQuery { name: string; description: string; permissionType: number; id: UUID; } } export declare namespace Period { interface IPeriod extends IBaseQuery { businessId: UUID; childId: UUID; carerId: any; reservationId: UUID; whenStart: string; whenCollected: any; boxNumber: string; pagerNumber: string; isNotified: boolean; id: UUID; } } export declare namespace ParentaStaffUserIntegration { interface IParentaStaffUserIntegration extends IBaseQuery { userId: UUID; externalId: string; parentaStaffUserIntegrationType: any; id: UUID; } } export declare namespace ParentaStaffUser { interface IParentaStaffUser extends IBaseQuery { firstName: string; lastName: string; emailAddress: string; isConfirmed: boolean; parentaStaffRoleId: any; id: UUID; } } export declare namespace Notification { interface IAllNotifications extends IBaseQuery { userId: UUID; message: string; action: string; actionType: any; whenNotified: string; whenRead: string; notificationType: any; id: UUID; } interface IUnreadNotifications extends IBaseQuery { userId: UUID; message: string; action: string; actionType: any; whenNotified: string; whenRead: any; notificationType: any; id: UUID; } } export declare namespace Feature { interface IFeature extends IBaseQuery { name: string; description: string; id: UUID; } } export declare namespace Diary { interface IAttachedUser extends IBaseQuery { businessId: UUID; firstName: string; lastName: string; customDiaryEventId: UUID; id: UUID; } interface ICustomDiaryEvent extends IBaseQuery { subject: string; notes: string; diaryEventTypeId: UUID; whenFrom: string; whenTo: string; rooms: string; businessId: UUID; customDiaryEventSeriesId: any; numberOfUsers: number; legacyRef: string; id: UUID; } interface ICustomDiaryEventSeries extends IBaseQuery { whenFrom: string; whenTo: string; recurrenceType: any; totalInSeries: any; businessId: UUID; legacyRef: string; id: UUID; } interface IDiaryEventType extends IBaseQuery { name: string; businessId: any; isDeletable: boolean; whenDeleted: any; id: UUID; } } export declare namespace CarePlanStaffTraining { interface ICarePlanStaffTraining extends IBaseQuery { corporationId: UUID; staffId: UUID; carePlanId: UUID; trainingCourseId: UUID; dateTaken: string; id: UUID; } } export declare namespace CarePlan { interface ICarePlan extends IBaseQuery { corporationId: UUID; childId: UUID; carerId: UUID; reviewDate: string; isRequired: any; details: string; affects: string; treatmentRequired: string; additionalSupport: string; trainingRequired: string; id: UUID; } } export declare namespace BusinessPreference { interface IBusinessPreference extends IBaseQuery { businessId: UUID; data: string; systemPreference: number; id: UUID; } } export declare namespace BusinessIntegration { interface IBusinessIntegration extends IBaseQuery { businessId: UUID; data: string; businessIntegrationType: any; id: UUID; } } export declare namespace BusinessHours { interface IBusinessHours extends IBaseQuery { businessId: UUID; dayOfWeek: number; openingTimeHours: number; openingTimeMinutes: number; closingTimeHours: number; closingTimeMinutes: number; id: UUID; } } export declare namespace BusinessHoliday { interface IBusinessHoliday extends IBaseQuery { businessId: UUID; startDate: string; endDate: string; openingTimeHours: number; openingTimeMinutes: number; closingTimeHours: number; closingTimeMinutes: number; reference: string; holidayType: number; id: UUID; } } export declare namespace Business { interface IBusiness extends IBaseQuery { corporationId: any; legacyId: string; name: string; addressIdentifier: string; addressLine1: string; addressLine2: string; city: string; postcode: string; county: string; region: string; parentaSystemId: any; emailAddress: string; isActive: boolean; officeType: number; id: UUID; } } export declare namespace Allergy { interface IAllergy extends IBaseQuery { corporationId: UUID; name: string; id: UUID; } }