@clickview/lite 0.0.10-rc.0 → 0.0.11-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apps/default/LiteDefaultApplication.d.ts +1 -0
- package/dist/apps/default/views/mock-testing/MockRequests.d.ts +12 -0
- package/dist/apps/default/views/mock-testing/MockView.d.ts +2 -0
- package/dist/apps/search/components/filter-actions/FilterActions.d.ts +2 -0
- package/dist/apps/search/components/filter-types/checkbox-filter/CheckboxFilter.d.ts +2 -0
- package/dist/apps/search/components/filter-types/dropdown-filter/DropdownFilter.d.ts +7 -0
- package/dist/apps/search/components/filter-types/index.d.ts +3 -1
- package/dist/apps/search/components/filter-types/radio-filter/year-level/YearLevelRadioFilter.d.ts +7 -0
- package/dist/apps/search/components/scoped-search-bar/ScopedSearchBar.d.ts +18 -0
- package/dist/apps/search/components/scoped-search-bar/partial-loading/PartialScopedSearchBar.d.ts +2 -0
- package/dist/apps/search/components/search-filters/PartialSearchFilters.d.ts +6 -1
- package/dist/apps/search/components/search-filters/SearchFilters.d.ts +5 -1
- package/dist/apps/search/flight-requests/SearchRequests.d.ts +1 -1
- package/dist/apps/search/interfaces/SearchFilter.d.ts +7 -5
- package/dist/apps/search/reducers/FilterReducer.d.ts +14 -10
- package/dist/apps/search/utils/FilterHelper.d.ts +38 -6
- package/dist/apps/user-manager/LiteUserManagerApplication.d.ts +16 -0
- package/dist/apps/user-manager/components/edit-student-details/EditStudentDetails.d.ts +10 -0
- package/dist/apps/user-manager/components/edit-teacher-details/EditTeacherDetails.d.ts +10 -0
- package/dist/apps/user-manager/components/index.d.ts +4 -0
- package/dist/apps/user-manager/components/manage-users-list/ManageUsersList.d.ts +8 -0
- package/dist/apps/user-manager/components/manage-users-list/partial-loading/PartialManageUsersList.d.ts +2 -0
- package/dist/apps/user-manager/components/manage-users-list/students/ManageStudentItem.d.ts +9 -0
- package/dist/apps/user-manager/components/manage-users-list/teachers/ManageTeacherItem.d.ts +9 -0
- package/dist/apps/user-manager/components/user-details-form/UserDetailsForm.d.ts +11 -0
- package/dist/apps/user-manager/components/year-level-select/YearLevelSelect.d.ts +9 -0
- package/dist/apps/user-manager/enums/index.d.ts +1 -0
- package/dist/apps/user-manager/enums/mocks/MockUserType.d.ts +4 -0
- package/dist/apps/user-manager/flight-requests/ClassroomRequests.d.ts +4 -0
- package/dist/apps/user-manager/flight-requests/SchoolUserRequests.d.ts +21 -0
- package/dist/apps/user-manager/flight-requests/YearLevelRequests.d.ts +4 -0
- package/dist/apps/user-manager/interfaces/EditUserRequest.d.ts +8 -0
- package/dist/apps/user-manager/interfaces/index.d.ts +6 -0
- package/dist/apps/user-manager/interfaces/mocks/MockClassroom.d.ts +3 -0
- package/dist/apps/user-manager/interfaces/mocks/MockStudent.d.ts +7 -0
- package/dist/apps/user-manager/interfaces/mocks/MockTeacher.d.ts +5 -0
- package/dist/apps/user-manager/interfaces/mocks/MockUserRole.d.ts +3 -0
- package/dist/apps/user-manager/interfaces/mocks/MockYearLevel.d.ts +3 -0
- package/dist/apps/user-manager/validation/index.d.ts +1 -0
- package/dist/apps/user-manager/validation/user-validation/UserValidationSchema.d.ts +14 -0
- package/dist/apps/user-manager/views/create-student/CreateStudentView.d.ts +6 -0
- package/dist/apps/user-manager/views/create-teacher/CreateTeacherView.d.ts +6 -0
- package/dist/apps/user-manager/views/edit-student/EditStudentView.d.ts +7 -0
- package/dist/apps/user-manager/views/edit-teacher/EditTeacherView.d.ts +7 -0
- package/dist/apps/user-manager/views/remove-user/RemoveUserView.d.ts +8 -0
- package/dist/apps/user-manager/views/school-student-manager/SchoolStudentManagerView.d.ts +7 -0
- package/dist/apps/user-manager/views/school-student-manager/empty-state/SchoolStudentManagerEmptyState.d.ts +2 -0
- package/dist/apps/user-manager/views/school-teacher-manager/SchoolTeacherManagerView.d.ts +11 -0
- package/dist/apps/user-manager/views/school-teacher-manager/empty-state/SchoolTeacherManagerEmptyState.d.ts +2 -0
- package/dist/bundle.js +1 -1
- package/dist/en.json +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/lite-app.css +5 -1
- package/dist/shared/constants/LiteActions.d.ts +8 -0
- package/dist/shared/constants/LiteRadioChannels.d.ts +1 -0
- package/dist/shared/flight-requests/VideoRequests.d.ts +7 -0
- package/dist/shared/hooks/index.d.ts +1 -0
- package/dist/shared/hooks/useBulkCheckboxManager.d.ts +17 -0
- package/dist/shared/hooks/useVideoMixin.d.ts +2 -0
- package/package.json +7 -7
- package/typings/utils/imports.d.ts +6 -1
|
@@ -20,6 +20,7 @@ export declare class DefaultApplication extends ReactApplication {
|
|
|
20
20
|
editUpload(uploadId: string): void;
|
|
21
21
|
series(id: string, params: HashObject): void;
|
|
22
22
|
favoriteVideos(params: HashObject): void;
|
|
23
|
+
mock(): void;
|
|
23
24
|
catchAllRoutes(): void;
|
|
24
25
|
notFound(): void;
|
|
25
26
|
error(): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Flight, Xhr } from '@clickview/common';
|
|
2
|
+
export interface Todo {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
done: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const MockRequests: {
|
|
8
|
+
getTodos(): Flight.SimulatedRequest;
|
|
9
|
+
addTodo(text: string, success: () => void, error: (xhr: Xhr) => void): Flight.SimulatedRequest;
|
|
10
|
+
updateTodo(todo: Todo): Flight.SimulatedRequest;
|
|
11
|
+
deleteTodo(id: string): Flight.SimulatedRequest;
|
|
12
|
+
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FilterPayloadType } from 'apps/search/reducers';
|
|
3
3
|
interface FilterActionsProps extends FilterPayloadType {
|
|
4
|
+
className?: string;
|
|
4
5
|
}
|
|
5
6
|
export declare function FilterActions(props: FilterActionsProps): JSX.Element;
|
|
6
7
|
export declare namespace FilterActions {
|
|
7
8
|
var defaultProps: {
|
|
8
9
|
active: boolean;
|
|
10
|
+
className: string;
|
|
9
11
|
};
|
|
10
12
|
}
|
|
11
13
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './checkbox-filter/CheckboxFilter';
|
|
2
2
|
export * from './more-filters/MoreFilters';
|
|
3
|
-
export * from './radio-filter/RadioFilter';
|
|
4
3
|
export * from './switch-filter/SwitchFilter';
|
|
4
|
+
export * from './dropdown-filter/DropdownFilter';
|
|
5
|
+
export * from './radio-filter/RadioFilter';
|
|
6
|
+
export * from './radio-filter/year-level/YearLevelRadioFilter';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ScopedSearchBarProps {
|
|
3
|
+
id: string;
|
|
4
|
+
onSubmit?: (query: string) => void;
|
|
5
|
+
name?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
queryParamName?: string;
|
|
9
|
+
debounceTime?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function ScopedSearchBar(props: ScopedSearchBarProps): JSX.Element;
|
|
12
|
+
export declare namespace ScopedSearchBar {
|
|
13
|
+
var defaultProps: {
|
|
14
|
+
debounceTime: number;
|
|
15
|
+
queryParamName: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
interface PartialSearchFiltersProps {
|
|
3
|
+
count?: number;
|
|
4
|
+
hideHeading?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function PartialSearchFilters({ count, hideHeading }: PartialSearchFiltersProps): JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HashObject } from '@clickview/common';
|
|
3
|
+
import { SearchFilter, MoreFilters } from 'apps/search/interfaces';
|
|
3
4
|
interface SearchFiltersProps {
|
|
4
5
|
queryParams: HashObject;
|
|
6
|
+
mainFilters: SearchFilter[];
|
|
7
|
+
moreFilters?: MoreFilters;
|
|
8
|
+
hideHeading?: boolean;
|
|
5
9
|
}
|
|
6
|
-
export declare function SearchFilters(
|
|
10
|
+
export declare function SearchFilters(props: SearchFiltersProps): JSX.Element;
|
|
7
11
|
export {};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type FilterIds = 'sortName' | 'yearLevel' | 'objectType' | 'ratings' | 'interactives' | 'clips' | 'classroom' | 'moreFilters';
|
|
3
|
+
export declare type FilterType = 'radio' | 'checkbox' | 'switch' | 'more-filters' | 'rating' | 'dropdown';
|
|
3
4
|
export interface SearchFilter {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
id: FilterIds;
|
|
6
|
+
name: string;
|
|
6
7
|
type: FilterType;
|
|
7
8
|
description?: string;
|
|
8
9
|
options?: FilterOption[];
|
|
10
|
+
customComponent?: (props?: any) => JSX.Element;
|
|
9
11
|
}
|
|
10
12
|
export interface MoreFilters extends SearchFilter {
|
|
11
13
|
filters: SearchFilter[];
|
|
12
14
|
}
|
|
13
15
|
export interface FilterOption {
|
|
16
|
+
id: string;
|
|
14
17
|
name: string;
|
|
15
|
-
label: string;
|
|
16
18
|
default?: boolean;
|
|
17
19
|
}
|
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ReducerActions } from '@clickview/common';
|
|
3
|
-
import { SearchFilter,
|
|
3
|
+
import { SearchFilter, FilterIds, FilterOption } from 'apps/search/interfaces';
|
|
4
4
|
export declare type FilterState = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
active: boolean;
|
|
6
|
+
selection?: FilterOption[];
|
|
7
|
+
};
|
|
8
|
+
declare type FilterStateHashFilters = {
|
|
9
|
+
[key in FilterIds]: FilterState;
|
|
10
|
+
};
|
|
11
|
+
export declare type FilterStateHash = FilterStateHashFilters & {
|
|
12
|
+
bulkReset?: boolean;
|
|
9
13
|
};
|
|
10
|
-
export declare type FilterActionType = 'apply' | 'reset' | 'bulk-reset';
|
|
14
|
+
export declare type FilterActionType = 'apply' | 'reset' | 'bulk-reset' | 'trigger-reset';
|
|
11
15
|
export interface FilterPayloadType {
|
|
12
16
|
filter: SearchFilter;
|
|
13
17
|
active: boolean;
|
|
14
|
-
selection?: FilterOption;
|
|
18
|
+
selection?: FilterOption[];
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
17
21
|
* Context
|
|
18
22
|
*/
|
|
19
23
|
interface FilterContextType {
|
|
20
|
-
state:
|
|
24
|
+
state: FilterStateHash;
|
|
21
25
|
dispatch: React.Dispatch<ReducerActions<FilterActionType>>;
|
|
22
26
|
}
|
|
23
27
|
export declare const FilterContext: import("react").Context<FilterContextType>;
|
|
24
28
|
/**
|
|
25
|
-
* Reducer - root level keys should match the filter object's corresponding "
|
|
29
|
+
* Reducer - root level keys should match the filter object's corresponding "id" field
|
|
26
30
|
*/
|
|
27
|
-
export declare function FilterReducer(state:
|
|
31
|
+
export declare function FilterReducer(state: FilterStateHash, action: ReducerActions<FilterActionType, FilterPayloadType>): FilterStateHash;
|
|
28
32
|
export {};
|
|
@@ -1,14 +1,46 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HashObject } from '@clickview/common';
|
|
3
3
|
import { SearchFilter, MoreFilters, FilterType, FilterProps, FilterOption } from 'apps/search/interfaces';
|
|
4
|
-
import {
|
|
4
|
+
import { FilterStateHash, FilterPayloadType, FilterState } from 'apps/search/reducers';
|
|
5
|
+
import { MockYearLevel, MockClassroom } from 'apps/user-manager/interfaces';
|
|
6
|
+
interface WithStatementObject {
|
|
7
|
+
sortKey?: string;
|
|
8
|
+
sortValue?: string;
|
|
9
|
+
assocs?: string[];
|
|
10
|
+
}
|
|
11
|
+
declare type FiltersDictionary = {
|
|
12
|
+
[key: string]: (options?: any) => SearchFilter;
|
|
13
|
+
};
|
|
14
|
+
export declare const Filters: FiltersDictionary;
|
|
5
15
|
export declare const FilterHelper: {
|
|
6
|
-
getMainFilters(): SearchFilter[];
|
|
7
16
|
getMoreFilters(): MoreFilters;
|
|
8
17
|
mapTypeToComponent(type: FilterType): (props: FilterProps) => JSX.Element;
|
|
9
|
-
deriveInitialStateFromQuery(queryParams?: HashObject<any>, mainFilters?: SearchFilter[], moreFilters?: MoreFilters):
|
|
10
|
-
buildQueryParams(queryParams: HashObject<any>, state: FilterPayloadType): HashObject<any>;
|
|
18
|
+
deriveInitialStateFromQuery(queryParams?: HashObject<any>, mainFilters?: SearchFilter[], moreFilters?: MoreFilters): FilterStateHash;
|
|
11
19
|
hasActiveFilters(queryParams: HashObject<any>): boolean;
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
getLabel(filter: SearchFilter, filterState: FilterState): string;
|
|
21
|
+
buildQueryParams(queryParams: HashObject<any>, state: FilterPayloadType): HashObject<any>;
|
|
22
|
+
/**
|
|
23
|
+
* This returns an object of all of the query params our search requests will pass to the backend endpoint.
|
|
24
|
+
* This usually consists of:
|
|
25
|
+
* q = the query string e.g. 'shakespeare'
|
|
26
|
+
* filter = the filter string e.g. '{interactives:true,classroom:classroom-2-a,classroom:classroom-2-b}'
|
|
27
|
+
* query = the with statement e.g. '{orderbydesc:name}series,season,interactives,resources,subtitles'
|
|
28
|
+
*/
|
|
29
|
+
getBackendQueryParams(queryParams: HashObject<any>): HashObject<any>;
|
|
30
|
+
/**
|
|
31
|
+
* This functions purpose is to convert a with statement string into an object that is easy to use
|
|
32
|
+
* in mock backends for sorting/filtering mock data. It doesn't need to be efficient, as it should
|
|
33
|
+
* never ever be used in production
|
|
34
|
+
*/
|
|
35
|
+
convertWithStatementToObject(withStatement: string): WithStatementObject;
|
|
36
|
+
revertFilterString(filterString: string): HashObject<any>;
|
|
37
|
+
/**
|
|
38
|
+
* Helpers below this comment return hard coded filter options for a particular filter.
|
|
39
|
+
* If you are adding a new filter with hard coded options, add a new function here.
|
|
40
|
+
*/
|
|
41
|
+
getObjectTypeOptions(): FilterOption[];
|
|
42
|
+
getNameSortOptions(): FilterOption[];
|
|
43
|
+
getYearLevelOptions(yearLevels: MockYearLevel[]): FilterOption[];
|
|
44
|
+
getClassroomOptions(classrooms: MockClassroom[]): FilterOption[];
|
|
14
45
|
};
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Core, ReactApplication, HashObject } from '@clickview/common';
|
|
2
|
+
import { TeacherLayoutViewOptions, TeacherLayoutView } from 'shared/layouts';
|
|
3
|
+
export declare class UserManagerApplication extends ReactApplication {
|
|
4
|
+
protected layout: TeacherLayoutView;
|
|
5
|
+
get name(): string;
|
|
6
|
+
static get router(): any;
|
|
7
|
+
get channelName(): string;
|
|
8
|
+
protected get layoutOptions(): Core.LayoutOptions<TeacherLayoutViewOptions>;
|
|
9
|
+
studentManager(queryParams?: HashObject): void;
|
|
10
|
+
teacherManager(queryParams?: HashObject): void;
|
|
11
|
+
newStudent(): void;
|
|
12
|
+
editStudent(params: HashObject): void;
|
|
13
|
+
newTeacher(): void;
|
|
14
|
+
editTeacher(params: HashObject): void;
|
|
15
|
+
removeUsers(params: HashObject): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EditUserRequest, MockYearLevel, MockStudent } from 'apps/user-manager/interfaces';
|
|
3
|
+
interface EditStudentDetailsProps {
|
|
4
|
+
user?: MockStudent;
|
|
5
|
+
saveUser: (data: EditUserRequest) => void;
|
|
6
|
+
onClickCancel: () => void;
|
|
7
|
+
yearLevels: MockYearLevel[];
|
|
8
|
+
}
|
|
9
|
+
export declare function EditStudentDetails(props: EditStudentDetailsProps): React.ReactElement;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EditUserRequest, MockUserRole, MockTeacher } from 'apps/user-manager/interfaces';
|
|
3
|
+
interface EditUserDetailsProps {
|
|
4
|
+
user?: MockTeacher;
|
|
5
|
+
saveUser: (data: EditUserRequest) => void;
|
|
6
|
+
onClickCancel: () => void;
|
|
7
|
+
userRoles: MockUserRole[];
|
|
8
|
+
}
|
|
9
|
+
export declare function EditTeacherDetails(props: EditUserDetailsProps): React.ReactElement;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MockStudent } from 'apps/user-manager/interfaces';
|
|
3
|
+
interface ManageStudentItemProps {
|
|
4
|
+
user: MockStudent;
|
|
5
|
+
isChecked: boolean;
|
|
6
|
+
onToggleCheckbox: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ManageStudentItem(props: ManageStudentItemProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MockTeacher } from 'apps/user-manager/views/school-teacher-manager/SchoolTeacherManagerView';
|
|
3
|
+
interface ManageTeacherItemProps {
|
|
4
|
+
user: MockTeacher;
|
|
5
|
+
isChecked: boolean;
|
|
6
|
+
onToggleCheckbox: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ManageTeacherItem(props: ManageTeacherItemProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MockYearLevel, MockUserRole } from 'apps/user-manager/interfaces';
|
|
3
|
+
import { MockUserType } from 'apps/user-manager/enums';
|
|
4
|
+
interface UserDetailsFormProps {
|
|
5
|
+
onClickCancel: () => void;
|
|
6
|
+
yearLevels?: MockYearLevel[];
|
|
7
|
+
userRoles?: MockUserRole[];
|
|
8
|
+
userType: MockUserType;
|
|
9
|
+
}
|
|
10
|
+
export declare function UserDetailsForm(props: UserDetailsFormProps): React.ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MockYearLevel } from 'apps/user-manager/interfaces';
|
|
3
|
+
interface YearLevelSelectProps {
|
|
4
|
+
yearLevels: MockYearLevel[];
|
|
5
|
+
onSelect: (id: string) => void;
|
|
6
|
+
selected?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function YearLevelSelect(props: YearLevelSelectProps): React.ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mocks/MockUserType';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Flight, HashObject } from '@clickview/common';
|
|
2
|
+
import { EditUserRequest } from 'apps/user-manager/interfaces';
|
|
3
|
+
export declare const SchoolUserRequests: {
|
|
4
|
+
/**
|
|
5
|
+
* School student management
|
|
6
|
+
*/
|
|
7
|
+
getSchoolStudents(queryObject?: HashObject<any>): Flight.SimulatedRequest;
|
|
8
|
+
removeStudentsFromSchool(ids: string[], onDone: () => void): Flight.SimulatedRequest;
|
|
9
|
+
getStudent(id: string): Flight.SimulatedRequest;
|
|
10
|
+
createStudent(user: EditUserRequest, success?: () => void, error?: () => void): Flight.SimulatedRequest;
|
|
11
|
+
updateStudent(user: EditUserRequest, success?: () => void, error?: () => void): Flight.SimulatedRequest;
|
|
12
|
+
/**
|
|
13
|
+
* School teacher management
|
|
14
|
+
*/
|
|
15
|
+
getSchoolTeachers(queryObject?: HashObject<any>): Flight.SimulatedRequest;
|
|
16
|
+
removeTeachersFromSchool(ids: string[], onDone: () => void): Flight.SimulatedRequest;
|
|
17
|
+
getTeacher(id: string): Flight.SimulatedRequest;
|
|
18
|
+
createTeacher(user: EditUserRequest, success?: () => void, error?: () => void): Flight.SimulatedRequest;
|
|
19
|
+
updateTeacher(user: EditUserRequest, success?: () => void, error?: () => void): Flight.SimulatedRequest;
|
|
20
|
+
getUserRoles(): Flight.SimulatedRequest;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user-validation/UserValidationSchema';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const TeacherValidationSchema: import("yup").ObjectSchema<import("yup").Shape<import("yup").Shape<object, {
|
|
2
|
+
name: string;
|
|
3
|
+
surname: string;
|
|
4
|
+
email: string;
|
|
5
|
+
}>, {
|
|
6
|
+
userRole: string;
|
|
7
|
+
}>>;
|
|
8
|
+
export declare const StudentValidationSchema: import("yup").ObjectSchema<import("yup").Shape<import("yup").Shape<object, {
|
|
9
|
+
name: string;
|
|
10
|
+
surname: string;
|
|
11
|
+
email: string;
|
|
12
|
+
}>, {
|
|
13
|
+
yearLevel: string;
|
|
14
|
+
}>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopupViewProps } from '@clickview/shared';
|
|
3
|
+
interface RemoveUserViewProps {
|
|
4
|
+
userIds: string[];
|
|
5
|
+
userType: 'student' | 'teacher';
|
|
6
|
+
}
|
|
7
|
+
export declare function RemoveUserView(props: RemoveUserViewProps & PopupViewProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HashObject } from '@clickview/common';
|
|
3
|
+
interface SchoolStudentManagerViewProps {
|
|
4
|
+
queryParams: HashObject;
|
|
5
|
+
}
|
|
6
|
+
export declare function SchoolStudentManagerView(props: SchoolStudentManagerViewProps): JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HashObject } from '@clickview/common';
|
|
3
|
+
import { User, BaseObject } from '@clickview/shared';
|
|
4
|
+
export declare type MockTeacher = User & {
|
|
5
|
+
userRole: BaseObject;
|
|
6
|
+
};
|
|
7
|
+
interface SchoolTeacherManagerViewProps {
|
|
8
|
+
queryParams: HashObject;
|
|
9
|
+
}
|
|
10
|
+
export declare function SchoolTeacherManagerView(props: SchoolTeacherManagerViewProps): JSX.Element;
|
|
11
|
+
export {};
|