shared-ritm 1.2.119 → 1.2.120

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.
@@ -1,18 +1,4 @@
1
1
  import ApiService from '../settings/ApiService';
2
- export type LoginPayload = {
3
- email: string;
4
- password: string;
5
- };
6
- export type LoginResponse = {
7
- token: string;
8
- user: any;
9
- };
10
- export type ChangePasswordPayload = {
11
- password: string;
12
- password_confirmation: string;
13
- };
14
- export type ChangePasswordResponse = any;
15
- export type ConfigResponse = any;
16
2
  declare class AuthService extends ApiService {
17
3
  login(email: string, password: string): Promise<any>;
18
4
  loginPhoto(photo: any): Promise<any>;
@@ -0,0 +1,76 @@
1
+ export type LoginPayload = {
2
+ email: string;
3
+ password: string;
4
+ };
5
+ export type Api_Auth_User_Education = {
6
+ created_at: string;
7
+ display_name: string;
8
+ id: string;
9
+ name: string;
10
+ };
11
+ export type Api_Auth_User_Photo = {
12
+ id: string;
13
+ name: string;
14
+ path: string;
15
+ type: string;
16
+ };
17
+ export type Api_Auth_User_Position = {
18
+ description: string;
19
+ display_name: string;
20
+ id: string;
21
+ name: string;
22
+ };
23
+ export type Api_User_Roles_Permissions = {
24
+ created_at: string;
25
+ description: string;
26
+ display_name: string;
27
+ id: string;
28
+ name: string;
29
+ updated_at: string;
30
+ };
31
+ export type Api_Auth_User_Role = {
32
+ display_name: string;
33
+ id: string;
34
+ name: string;
35
+ permissions: Api_User_Roles_Permissions[];
36
+ };
37
+ export type Api_Auth_User_Team = {
38
+ display_name: string;
39
+ id: string;
40
+ name: string;
41
+ roles: Api_Auth_User_Role[];
42
+ };
43
+ export type Api_Auth_User = {
44
+ RFID: string;
45
+ avatar_id: null | string;
46
+ avatar_path: null | string;
47
+ dismissal_at: null | string;
48
+ divisions: string;
49
+ educations: Api_Auth_User_Education[];
50
+ email: string;
51
+ email_verified_at: string;
52
+ first_name: string;
53
+ full_name: string;
54
+ id: string;
55
+ last_name: string;
56
+ passes: any[];
57
+ patronymic: string;
58
+ personnel_number: number;
59
+ phone: string;
60
+ photos: Api_Auth_User_Photo[];
61
+ positions: Api_Auth_User_Position[];
62
+ profession: string;
63
+ roles: Api_Auth_User_Role[];
64
+ security_warnings: any[];
65
+ teams: Api_Auth_User_Team[];
66
+ };
67
+ export type Api_Auth_Login = {
68
+ token: string;
69
+ user: Api_Auth_User;
70
+ };
71
+ export type ChangePasswordPayload = {
72
+ password: string;
73
+ password_confirmation: string;
74
+ };
75
+ export type ChangePasswordResponse = any;
76
+ export type ConfigResponse = any;
@@ -52,6 +52,7 @@ export type { NotificationType } from './utils/notification';
52
52
  export { notificationSettings } from './utils/notification';
53
53
  export * from './utils/helpers';
54
54
  export * from './api/types/Api_Service';
55
+ export * from './api/types/Api_Auth';
55
56
  export * from './api/types/Api_Tasks';
56
57
  export * from './api/types/Api_Repairs';
57
58
  export * from './api/types/Api_Projects';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.119",
3
+ "version": "1.2.120",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -1,43 +1,32 @@
1
1
  import ApiService from '../settings/ApiService'
2
-
3
- export type LoginPayload = {
4
- email: string
5
- password: string
6
- }
7
-
8
- export type LoginResponse = {
9
- token: string
10
- user: any
11
- }
12
-
13
- export type ChangePasswordPayload = {
14
- password: string
15
- password_confirmation: string
16
- }
17
-
18
- export type ChangePasswordResponse = any
19
- export type ConfigResponse = any
2
+ import {
3
+ Api_Auth_Login,
4
+ ChangePasswordPayload,
5
+ ChangePasswordResponse,
6
+ ConfigResponse,
7
+ LoginPayload,
8
+ } from '@/api/types/Api_Auth'
20
9
 
21
10
  class AuthService extends ApiService {
22
11
  public login(email: string, password: string) {
23
- return this.post<LoginPayload, LoginResponse>(`/login`, {
12
+ return this.post<LoginPayload, Api_Auth_Login>(`/login`, {
24
13
  email,
25
14
  password,
26
15
  })
27
16
  }
28
17
 
29
18
  public loginPhoto(photo: any) {
30
- return this.post<any, LoginResponse>(`/login/from_photo`, { photo })
19
+ return this.post<any, Api_Auth_Login>(`/login/from_photo`, { photo })
31
20
  }
32
21
 
33
22
  public loginVideo(data: any) {
34
- return this.post<any, LoginResponse>(`/login/video`, data, {
23
+ return this.post<any, Api_Auth_Login>(`/login/video`, data, {
35
24
  transformRequest: d => d,
36
25
  })
37
26
  }
38
27
 
39
28
  public logout() {
40
- return this.post<null, LoginResponse>(`/logout`, null)
29
+ return this.post<null, Api_Auth_Login>(`/logout`, null)
41
30
  }
42
31
 
43
32
  public userInfo() {
@@ -0,0 +1,86 @@
1
+ export type LoginPayload = {
2
+ email: string
3
+ password: string
4
+ }
5
+
6
+ export type Api_Auth_User_Education = {
7
+ created_at: string
8
+ display_name: string
9
+ id: string
10
+ name: string
11
+ }
12
+
13
+ export type Api_Auth_User_Photo = {
14
+ id: string
15
+ name: string
16
+ path: string
17
+ type: string
18
+ }
19
+
20
+ export type Api_Auth_User_Position = {
21
+ description: string
22
+ display_name: string
23
+ id: string
24
+ name: string
25
+ }
26
+
27
+ export type Api_User_Roles_Permissions = {
28
+ created_at: string
29
+ description: string
30
+ display_name: string
31
+ id: string
32
+ name: string
33
+ updated_at: string
34
+ }
35
+
36
+ export type Api_Auth_User_Role = {
37
+ display_name: string
38
+ id: string
39
+ name: string
40
+ permissions: Api_User_Roles_Permissions[]
41
+ }
42
+
43
+ export type Api_Auth_User_Team = {
44
+ display_name: string
45
+ id: string
46
+ name: string
47
+ roles: Api_Auth_User_Role[]
48
+ }
49
+
50
+ export type Api_Auth_User = {
51
+ RFID: string
52
+ avatar_id: null | string
53
+ avatar_path: null | string
54
+ dismissal_at: null | string
55
+ divisions: string
56
+ educations: Api_Auth_User_Education[]
57
+ email: string
58
+ email_verified_at: string
59
+ first_name: string
60
+ full_name: string
61
+ id: string
62
+ last_name: string
63
+ passes: any[]
64
+ patronymic: string
65
+ personnel_number: number
66
+ phone: string
67
+ photos: Api_Auth_User_Photo[]
68
+ positions: Api_Auth_User_Position[]
69
+ profession: string
70
+ roles: Api_Auth_User_Role[]
71
+ security_warnings: any[]
72
+ teams: Api_Auth_User_Team[]
73
+ }
74
+
75
+ export type Api_Auth_Login = {
76
+ token: string
77
+ user: Api_Auth_User
78
+ }
79
+
80
+ export type ChangePasswordPayload = {
81
+ password: string
82
+ password_confirmation: string
83
+ }
84
+
85
+ export type ChangePasswordResponse = any
86
+ export type ConfigResponse = any
package/src/index.ts CHANGED
@@ -1,122 +1,123 @@
1
- import './shared/styles/general.css'
2
- import AppButton from './common/app-button/AppButton.vue'
3
- import AppCheckbox from './common/app-checkbox/AppCheckbox.vue'
4
- import AppDatePicker from './common/app-date-picker/AppDatePicker.vue'
5
- import AppDatepicker from './common/app-datepicker/AppDatepicker.vue'
6
- import AppInput from './common/app-input/AppInput.vue'
7
- import AppInputNew from './common/app-input-new/AppInputNew.vue'
8
- import AppInputSearch from './common/app-input-search/AppInputSearch.vue'
9
- import AppLayout from './common/app-layout/AppLayout.vue'
10
- import AppLayoutHeader from './common/app-layout/components/AppLayoutHeader.vue'
11
- import AppLayoutPage from './common/app-layout/components/AppLayoutPage.vue'
12
- import AppLoader from './common/app-loader/index.vue'
13
- import AppSelect from './common/app-select/AppSelect.vue'
14
- import AppSheet from './common/app-sheet/AppSheet.vue'
15
- import AppSheetNew from './common/app-sheet-new/AppSheetNew.vue'
16
- import AppSidebar from './common/app-sidebar/AppSidebar.vue'
17
- import AppToggle from './common/app-toggle/AppToggle.vue'
18
- import AppWrapper from './common/app-wrapper/AppWrapper.vue'
19
- import AppConfirmDialog from './common/app-dialogs/AppConfirmDialog.vue'
20
- import AppDropdown from './common/app-dropdown/AppDropdown.vue'
21
- import AppTablePagination from './common/app-table/components/TablePagination.vue'
22
- import AppTableSearch from './common/app-table/components/TableSearch.vue'
23
- import AppTableModal from './common/app-table/components/TableModal.vue'
24
- import AppTable from './common/app-table/AppTable.vue'
25
- import AppTableLayout from './common/app-table/AppTableLayout.vue'
26
- import AppModalSelect from './common/app-table/components/ModalSelect.vue'
27
-
28
- import ApiService from './api/settings/ApiService'
29
- import useGanttService from './api/services/GanttService'
30
- import useMetricsService from './api/services/MetricsService'
31
- import useProjectsService from './api/services/ProjectsService'
32
- import useRepairsService from './api/services/RepairsService'
33
- import useTasksService from './api/services/TasksService'
34
- import useAuthService from './api/services/AuthService'
35
- import useFileService from './api/services/FileService'
36
- import useVideoService from './api/services/VideoService'
37
- import useUserService from './api/services/UserService'
38
- import useInstrumentsService from './api/services/InstrumentsService'
39
- import useControlsService from './api/services/ControlsService'
40
- import useSearchService from './api/services/SearchService'
41
- import useModulesService from './api/services/ModulesService'
42
- import useCommentsService from './api/services/CommentsService'
43
- import useEquipmentService from './api/services/EquipmentService'
44
- import useBrigadesService from './api/services/BrigadesService'
45
-
46
- import useFaceApiHelper from './utils/faceApiHelper'
47
-
48
- export {
49
- AppButton,
50
- AppCheckbox,
51
- AppDatepicker,
52
- AppDatePicker,
53
- AppInput,
54
- AppInputNew,
55
- AppInputSearch,
56
- AppLayout,
57
- AppLayoutHeader,
58
- AppLayoutPage,
59
- AppLoader,
60
- AppSelect,
61
- AppSheet,
62
- AppSheetNew,
63
- AppSidebar,
64
- AppToggle,
65
- AppWrapper,
66
- AppConfirmDialog,
67
- AppDropdown,
68
- AppTablePagination,
69
- AppTableSearch,
70
- AppTableModal,
71
- AppTable,
72
- AppTableLayout,
73
- AppModalSelect,
74
- }
75
-
76
- export {
77
- ApiService,
78
- useAuthService,
79
- useGanttService,
80
- useMetricsService,
81
- useProjectsService,
82
- useRepairsService,
83
- useTasksService,
84
- useFileService,
85
- useControlsService,
86
- useVideoService,
87
- useUserService,
88
- useInstrumentsService,
89
- useSearchService,
90
- useModulesService,
91
- useCommentsService,
92
- useFaceApiHelper,
93
- useEquipmentService,
94
- useBrigadesService,
95
- }
96
-
97
- export { useBaseTable } from './common/app-table/controllers/useBaseTable'
98
- export { useTableModel } from './common/app-table/controllers/useTableModel'
99
- export { useColumnSelector } from './common/app-table/controllers/useColumnSelector'
100
-
101
- export type { FilterOption, TableModel, TableColumn } from './common/app-table/controllers/useTableModel'
102
-
103
- export type { NotificationType } from './utils/notification'
104
- export { notificationSettings } from './utils/notification'
105
-
106
- export * from './utils/helpers'
107
-
108
- export * from './api/types/Api_Service'
109
- export * from './api/types/Api_Tasks'
110
- export * from './api/types/Api_Repairs'
111
- export * from './api/types/Api_Projects'
112
- export * from './api/types/Api_Controls'
113
- export * from './api/types/Api_Instruments'
114
- export * from './api/types/Api_Search'
115
- export * from './api/types/Api_User'
116
- export * from './api/types/Api_Comment'
117
- export * from './api/types/Api_Files'
118
- export * from './api/types/Api_Video'
119
- export * from './api/types/Api_Equipment'
120
- export * from './api/types/Api_Brigades'
121
- export * from './api/types/Api_Modules'
122
- // export * from '../types/Api_Metrics'
1
+ import './shared/styles/general.css'
2
+ import AppButton from './common/app-button/AppButton.vue'
3
+ import AppCheckbox from './common/app-checkbox/AppCheckbox.vue'
4
+ import AppDatePicker from './common/app-date-picker/AppDatePicker.vue'
5
+ import AppDatepicker from './common/app-datepicker/AppDatepicker.vue'
6
+ import AppInput from './common/app-input/AppInput.vue'
7
+ import AppInputNew from './common/app-input-new/AppInputNew.vue'
8
+ import AppInputSearch from './common/app-input-search/AppInputSearch.vue'
9
+ import AppLayout from './common/app-layout/AppLayout.vue'
10
+ import AppLayoutHeader from './common/app-layout/components/AppLayoutHeader.vue'
11
+ import AppLayoutPage from './common/app-layout/components/AppLayoutPage.vue'
12
+ import AppLoader from './common/app-loader/index.vue'
13
+ import AppSelect from './common/app-select/AppSelect.vue'
14
+ import AppSheet from './common/app-sheet/AppSheet.vue'
15
+ import AppSheetNew from './common/app-sheet-new/AppSheetNew.vue'
16
+ import AppSidebar from './common/app-sidebar/AppSidebar.vue'
17
+ import AppToggle from './common/app-toggle/AppToggle.vue'
18
+ import AppWrapper from './common/app-wrapper/AppWrapper.vue'
19
+ import AppConfirmDialog from './common/app-dialogs/AppConfirmDialog.vue'
20
+ import AppDropdown from './common/app-dropdown/AppDropdown.vue'
21
+ import AppTablePagination from './common/app-table/components/TablePagination.vue'
22
+ import AppTableSearch from './common/app-table/components/TableSearch.vue'
23
+ import AppTableModal from './common/app-table/components/TableModal.vue'
24
+ import AppTable from './common/app-table/AppTable.vue'
25
+ import AppTableLayout from './common/app-table/AppTableLayout.vue'
26
+ import AppModalSelect from './common/app-table/components/ModalSelect.vue'
27
+
28
+ import ApiService from './api/settings/ApiService'
29
+ import useGanttService from './api/services/GanttService'
30
+ import useMetricsService from './api/services/MetricsService'
31
+ import useProjectsService from './api/services/ProjectsService'
32
+ import useRepairsService from './api/services/RepairsService'
33
+ import useTasksService from './api/services/TasksService'
34
+ import useAuthService from './api/services/AuthService'
35
+ import useFileService from './api/services/FileService'
36
+ import useVideoService from './api/services/VideoService'
37
+ import useUserService from './api/services/UserService'
38
+ import useInstrumentsService from './api/services/InstrumentsService'
39
+ import useControlsService from './api/services/ControlsService'
40
+ import useSearchService from './api/services/SearchService'
41
+ import useModulesService from './api/services/ModulesService'
42
+ import useCommentsService from './api/services/CommentsService'
43
+ import useEquipmentService from './api/services/EquipmentService'
44
+ import useBrigadesService from './api/services/BrigadesService'
45
+
46
+ import useFaceApiHelper from './utils/faceApiHelper'
47
+
48
+ export {
49
+ AppButton,
50
+ AppCheckbox,
51
+ AppDatepicker,
52
+ AppDatePicker,
53
+ AppInput,
54
+ AppInputNew,
55
+ AppInputSearch,
56
+ AppLayout,
57
+ AppLayoutHeader,
58
+ AppLayoutPage,
59
+ AppLoader,
60
+ AppSelect,
61
+ AppSheet,
62
+ AppSheetNew,
63
+ AppSidebar,
64
+ AppToggle,
65
+ AppWrapper,
66
+ AppConfirmDialog,
67
+ AppDropdown,
68
+ AppTablePagination,
69
+ AppTableSearch,
70
+ AppTableModal,
71
+ AppTable,
72
+ AppTableLayout,
73
+ AppModalSelect,
74
+ }
75
+
76
+ export {
77
+ ApiService,
78
+ useAuthService,
79
+ useGanttService,
80
+ useMetricsService,
81
+ useProjectsService,
82
+ useRepairsService,
83
+ useTasksService,
84
+ useFileService,
85
+ useControlsService,
86
+ useVideoService,
87
+ useUserService,
88
+ useInstrumentsService,
89
+ useSearchService,
90
+ useModulesService,
91
+ useCommentsService,
92
+ useFaceApiHelper,
93
+ useEquipmentService,
94
+ useBrigadesService,
95
+ }
96
+
97
+ export { useBaseTable } from './common/app-table/controllers/useBaseTable'
98
+ export { useTableModel } from './common/app-table/controllers/useTableModel'
99
+ export { useColumnSelector } from './common/app-table/controllers/useColumnSelector'
100
+
101
+ export type { FilterOption, TableModel, TableColumn } from './common/app-table/controllers/useTableModel'
102
+
103
+ export type { NotificationType } from './utils/notification'
104
+ export { notificationSettings } from './utils/notification'
105
+
106
+ export * from './utils/helpers'
107
+
108
+ export * from './api/types/Api_Service'
109
+ export * from './api/types/Api_Auth'
110
+ export * from './api/types/Api_Tasks'
111
+ export * from './api/types/Api_Repairs'
112
+ export * from './api/types/Api_Projects'
113
+ export * from './api/types/Api_Controls'
114
+ export * from './api/types/Api_Instruments'
115
+ export * from './api/types/Api_Search'
116
+ export * from './api/types/Api_User'
117
+ export * from './api/types/Api_Comment'
118
+ export * from './api/types/Api_Files'
119
+ export * from './api/types/Api_Video'
120
+ export * from './api/types/Api_Equipment'
121
+ export * from './api/types/Api_Brigades'
122
+ export * from './api/types/Api_Modules'
123
+ // export * from '../types/Api_Metrics'