shared-ritm 1.1.26 → 1.1.27
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/shared-ritm.es.js +29502 -10502
- package/dist/shared-ritm.umd.js +22 -12
- package/dist/types/api/services/FileService.d.ts +7 -0
- package/dist/types/api/types/Api_Files.d.ts +3 -0
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/api/services/FileService.ts +15 -0
- package/src/api/types/Api_Files.ts +1 -0
- package/src/index.ts +60 -58
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import ApiService, { ResponseApi } from '@/api/settings/ApiService';
|
|
2
|
+
import { Api_Files_Responsible_Dto } from '@/api/types/Api_Files';
|
|
3
|
+
declare class FileService extends ApiService {
|
|
4
|
+
uploadFile(data: FormData): Promise<ResponseApi<Api_Files_Responsible_Dto>>;
|
|
5
|
+
}
|
|
6
|
+
export default function useFileService(): FileService;
|
|
7
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -19,9 +19,10 @@ import useProjectsService from '@/api/services/ProjectsService';
|
|
|
19
19
|
import useRepairsService from '@/api/services/RepairsService';
|
|
20
20
|
import useTasksService from '@/api/services/TasksService';
|
|
21
21
|
import useAuthService from '@/api/services/AuthService';
|
|
22
|
+
import useFileService from '@/api/services/FileService';
|
|
22
23
|
import ApiService from '@/api/settings/ApiService';
|
|
23
24
|
export { AppButton, AppCheckbox, AppDatePicker, AppInput, AppInputSearch, AppLayout, AppLayoutHeader, AppLoader, AppSelect, AppSheet, AppSidebar, AppToggle, AppWrapper, AppConfirmDialog, };
|
|
24
|
-
export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, };
|
|
25
|
+
export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, useFileService, };
|
|
25
26
|
export type { NotificationType } from './utils/notification';
|
|
26
27
|
export { notificationSettings } from './utils/notification';
|
|
27
28
|
export * from './api/types/Api_Tasks';
|
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import ApiService, { ResponseApi } from '@/api/settings/ApiService'
|
|
2
|
+
import { Api_Files_Responsible_Dto } from '@/api/types/Api_Files'
|
|
3
|
+
|
|
4
|
+
class FileService extends ApiService {
|
|
5
|
+
public async uploadFile(data: FormData): Promise<ResponseApi<Api_Files_Responsible_Dto>> {
|
|
6
|
+
return await this.post(`/upload-file`, data)
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
let api: FileService
|
|
11
|
+
|
|
12
|
+
export default function useFileService() {
|
|
13
|
+
if (!api) api = new FileService()
|
|
14
|
+
return api
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Api_Files_Responsible_Dto = { file: string }[]
|
package/src/index.ts
CHANGED
|
@@ -1,58 +1,60 @@
|
|
|
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 AppInput from '@/common/app-input/AppInput.vue'
|
|
6
|
-
import AppInputSearch from '@/common/app-input-search/AppInputSearch.vue'
|
|
7
|
-
import AppLayout from '@/common/app-layout/AppLayout.vue'
|
|
8
|
-
import AppLayoutHeader from '@/common/app-layout/components/AppLayoutHeader.vue'
|
|
9
|
-
import AppLoader from '@/common/app-loader/index.vue'
|
|
10
|
-
import AppSelect from '@/common/app-select/AppSelect.vue'
|
|
11
|
-
import AppSheet from '@/common/app-sheet/AppSheet.vue'
|
|
12
|
-
import AppSidebar from '@/common/app-sidebar/AppSidebar.vue'
|
|
13
|
-
import AppToggle from '@/common/app-toggle/AppToggle.vue'
|
|
14
|
-
import AppWrapper from '@/common/app-wrapper/AppWrapper.vue'
|
|
15
|
-
import AppConfirmDialog from '@/common/app-dialogs/AppConfirmDialog.vue'
|
|
16
|
-
|
|
17
|
-
import useGanttService from '@/api/services/GanttService'
|
|
18
|
-
import useMetricsService from '@/api/services/MetricsService'
|
|
19
|
-
import useProjectsService from '@/api/services/ProjectsService'
|
|
20
|
-
import useRepairsService from '@/api/services/RepairsService'
|
|
21
|
-
import useTasksService from '@/api/services/TasksService'
|
|
22
|
-
import useAuthService from '@/api/services/AuthService'
|
|
23
|
-
import
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export
|
|
56
|
-
|
|
57
|
-
export * from './api/types/
|
|
58
|
-
|
|
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 AppInput from '@/common/app-input/AppInput.vue'
|
|
6
|
+
import AppInputSearch from '@/common/app-input-search/AppInputSearch.vue'
|
|
7
|
+
import AppLayout from '@/common/app-layout/AppLayout.vue'
|
|
8
|
+
import AppLayoutHeader from '@/common/app-layout/components/AppLayoutHeader.vue'
|
|
9
|
+
import AppLoader from '@/common/app-loader/index.vue'
|
|
10
|
+
import AppSelect from '@/common/app-select/AppSelect.vue'
|
|
11
|
+
import AppSheet from '@/common/app-sheet/AppSheet.vue'
|
|
12
|
+
import AppSidebar from '@/common/app-sidebar/AppSidebar.vue'
|
|
13
|
+
import AppToggle from '@/common/app-toggle/AppToggle.vue'
|
|
14
|
+
import AppWrapper from '@/common/app-wrapper/AppWrapper.vue'
|
|
15
|
+
import AppConfirmDialog from '@/common/app-dialogs/AppConfirmDialog.vue'
|
|
16
|
+
|
|
17
|
+
import useGanttService from '@/api/services/GanttService'
|
|
18
|
+
import useMetricsService from '@/api/services/MetricsService'
|
|
19
|
+
import useProjectsService from '@/api/services/ProjectsService'
|
|
20
|
+
import useRepairsService from '@/api/services/RepairsService'
|
|
21
|
+
import useTasksService from '@/api/services/TasksService'
|
|
22
|
+
import useAuthService from '@/api/services/AuthService'
|
|
23
|
+
import useFileService from '@/api/services/FileService'
|
|
24
|
+
import ApiService from '@/api/settings/ApiService'
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
AppButton,
|
|
28
|
+
AppCheckbox,
|
|
29
|
+
AppDatePicker,
|
|
30
|
+
AppInput,
|
|
31
|
+
AppInputSearch,
|
|
32
|
+
AppLayout,
|
|
33
|
+
AppLayoutHeader,
|
|
34
|
+
AppLoader,
|
|
35
|
+
AppSelect,
|
|
36
|
+
AppSheet,
|
|
37
|
+
AppSidebar,
|
|
38
|
+
AppToggle,
|
|
39
|
+
AppWrapper,
|
|
40
|
+
AppConfirmDialog,
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
ApiService,
|
|
45
|
+
useAuthService,
|
|
46
|
+
useGanttService,
|
|
47
|
+
useMetricsService,
|
|
48
|
+
useProjectsService,
|
|
49
|
+
useRepairsService,
|
|
50
|
+
useTasksService,
|
|
51
|
+
useFileService,
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type { NotificationType } from './utils/notification'
|
|
55
|
+
export { notificationSettings } from './utils/notification'
|
|
56
|
+
|
|
57
|
+
export * from './api/types/Api_Tasks'
|
|
58
|
+
export * from './api/types/Api_Repairs'
|
|
59
|
+
export * from './api/types/Api_Projects'
|
|
60
|
+
// export * from '@/api/types/Api_Metrics'
|