@mui-toolpad-extended-tuni/users 3.0.1 → 3.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui-toolpad-extended-tuni/users",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Users microservice for MUI Toolpad Extended TUNI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -30,7 +30,7 @@
30
30
  "users"
31
31
  ],
32
32
  "license": "MIT",
33
- "sideEffects": false,
33
+ "sideEffects": ["./dist/index.es.js", "./dist/index.cjs", "./dist/configureUserBus.js"],
34
34
  "scripts": {
35
35
  "build": "tsc --skipLibCheck && vite build",
36
36
  "dev": "vite build --watch"
@@ -1,59 +0,0 @@
1
- import { navigationTypes } from '../store/useUserStore';
2
- export declare const departmentVariants: string[];
3
- export declare const preferencesVariants: navigationTypes[];
4
- export declare const randomPerson: {
5
- gender: string;
6
- name: {
7
- title: string;
8
- first: string;
9
- last: string;
10
- };
11
- location: {
12
- street: {
13
- number: number;
14
- name: string;
15
- };
16
- city: string;
17
- state: string;
18
- country: string;
19
- postcode: number;
20
- coordinates: {
21
- latitude: string;
22
- longitude: string;
23
- };
24
- timezone: {
25
- offset: string;
26
- description: string;
27
- };
28
- };
29
- email: string;
30
- login: {
31
- uuid: string;
32
- username: string;
33
- password: string;
34
- salt: string;
35
- md5: string;
36
- sha1: string;
37
- sha256: string;
38
- };
39
- dob: {
40
- date: string;
41
- age: number;
42
- };
43
- registered: {
44
- date: string;
45
- age: number;
46
- };
47
- phone: string;
48
- cell: string;
49
- id: {
50
- name: string;
51
- value: string;
52
- };
53
- picture: {
54
- large: string;
55
- medium: string;
56
- thumbnail: string;
57
- };
58
- nat: string;
59
- };
@@ -1,3 +0,0 @@
1
- import { HttpResponse } from 'msw';
2
- export declare const userHandlers: import('msw').HttpHandler[];
3
- export declare const getUserDataResponse: (userId?: string) => HttpResponse;
@@ -1,6 +0,0 @@
1
- import { UserBackendData } from './types';
2
- export declare function generateUsers(config: {
3
- teacherCount: number;
4
- studentCount: number;
5
- adminCount: number;
6
- }): Promise<UserBackendData[]>;
@@ -1,52 +0,0 @@
1
- import { PlatformRole } from 'mui-toolpad-extended-tuni';
2
- import { navigationTypes } from '../store/useUserStore';
3
- import { randomPerson } from './constants';
4
- export interface UserRawBackendData {
5
- name: string;
6
- email: string;
7
- image?: {
8
- large: string;
9
- medium: string;
10
- thumbnail: string;
11
- };
12
- department?: string;
13
- platform_roles: PlatformRole[];
14
- privacy_settings: {
15
- allow_analytics: boolean;
16
- allow_personalization: boolean;
17
- allow_communications: boolean;
18
- allow_third_party_sharing: boolean;
19
- };
20
- gdpr_consent: {
21
- accepted: boolean;
22
- accepted_date?: string;
23
- last_updated: string;
24
- };
25
- data_retention: {
26
- delete_account_after_inactivity?: number;
27
- delete_data_after_account_deletion?: number;
28
- };
29
- preferences: {
30
- navigation_type: navigationTypes;
31
- visible_course_lists: {
32
- is_student: boolean;
33
- is_student_old: boolean;
34
- is_teacher: boolean;
35
- is_teacher_old: boolean;
36
- available: boolean;
37
- };
38
- visible_navigation: string[];
39
- last_visited_courses: string[];
40
- };
41
- }
42
- export interface UserBackendData extends UserRawBackendData {
43
- id: string;
44
- created_at: string;
45
- updated_at: string;
46
- }
47
- export type UserCourseConnection = {
48
- userId: string;
49
- courseId: string;
50
- role: "teacher" | "student";
51
- };
52
- export type randomPersonFromApi = typeof randomPerson;