shared-ritm 1.2.110 → 1.2.112
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/index.css +1 -1
- package/dist/shared-ritm.es.js +3637 -3615
- package/dist/shared-ritm.umd.js +141 -141
- package/dist/types/api/services/ModulesService.d.ts +19 -0
- package/dist/types/api/services/VideoService.d.ts +1 -0
- package/dist/types/api/types/Api_Instruments.d.ts +1 -1
- package/dist/types/api/types/Api_Modules.d.ts +19 -0
- package/dist/types/index.d.ts +5 -3
- package/package.json +1 -1
- package/src/api/services/ModulesService.ts +27 -0
- package/src/api/services/VideoService.ts +4 -0
- package/src/api/types/Api_Instruments.ts +1 -1
- package/src/api/types/Api_Modules.ts +21 -0
- package/src/common/app-input-new/AppInputNew.vue +9 -1
- package/src/index.ts +5 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import ApiService from '../settings/ApiService';
|
|
2
|
+
import { Api_Module, Api_Module_Create } from '../types/Api_Modules';
|
|
3
|
+
declare class ModulesService extends ApiService {
|
|
4
|
+
detectModule(id: string): Promise<{
|
|
5
|
+
data: string;
|
|
6
|
+
status: number;
|
|
7
|
+
}>;
|
|
8
|
+
createModule(model: Api_Module_Create): Promise<Api_Module>;
|
|
9
|
+
editModule({ id, model }: {
|
|
10
|
+
id: string;
|
|
11
|
+
model: Partial<Api_Module_Create>;
|
|
12
|
+
}): Promise<Api_Module>;
|
|
13
|
+
deleteModule(id: string): Promise<{
|
|
14
|
+
data: boolean;
|
|
15
|
+
status: number;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
export default function useModulesService(): ModulesService;
|
|
19
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import { Api_Video_Source_Create, Api_Video_Source_Search, Api_Work_Zone, Api_Wo
|
|
|
4
4
|
declare class VideoService extends ApiService {
|
|
5
5
|
startVideoAnalytics(): Promise<boolean>;
|
|
6
6
|
reloadVideoAnalytics(ids: string[]): Promise<any>;
|
|
7
|
+
hardReloadStream(): Promise<any>;
|
|
7
8
|
fetchWorkZones(params?: any): Promise<ResponseApi<Api_Work_Zone_Search[]>>;
|
|
8
9
|
fetchWorkZone(id: string): Promise<ResponseApi<Api_Work_Zone>>;
|
|
9
10
|
editWorkZone(id: string, body: {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Api_Search_Module } from '@/api/types/Api_Search';
|
|
2
|
+
import { Api_Instrument, Api_Instrument_Location } from '@/api/types/Api_Instruments';
|
|
3
|
+
export type Api_Module_Create = Pick<Api_Search_Module, 'RFID' | 'inventory_number' | 'title' | 'type'> & {
|
|
4
|
+
user_id: string;
|
|
5
|
+
teams: string[];
|
|
6
|
+
};
|
|
7
|
+
export type Api_Module = Api_Search_Module & {
|
|
8
|
+
auth_count: number;
|
|
9
|
+
auth_failed_count: number;
|
|
10
|
+
instrument: Pick<Api_Instrument, 'id' | 'RFID' | 'instrument_id' | 'inventory_number' | 'name'> | null;
|
|
11
|
+
inventory_completed_count: number;
|
|
12
|
+
location: Pick<Api_Instrument_Location, 'id' | 'name' | 'title' | 'state_id' | 'description'> | null;
|
|
13
|
+
location_id: string | null;
|
|
14
|
+
team_id: string | null;
|
|
15
|
+
tun: unknown;
|
|
16
|
+
user_id: string;
|
|
17
|
+
warehouse_id: string | null;
|
|
18
|
+
work_zones: unknown[];
|
|
19
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import AppLayoutPage from './common/app-layout/components/AppLayoutPage.vue';
|
|
|
12
12
|
import AppLoader from './common/app-loader/index.vue';
|
|
13
13
|
import AppSelect from './common/app-select/AppSelect.vue';
|
|
14
14
|
import AppSheet from './common/app-sheet/AppSheet.vue';
|
|
15
|
-
import AppSheetNew from '
|
|
15
|
+
import AppSheetNew from './common/app-sheet-new/AppSheetNew.vue';
|
|
16
16
|
import AppSidebar from './common/app-sidebar/AppSidebar.vue';
|
|
17
17
|
import AppToggle from './common/app-toggle/AppToggle.vue';
|
|
18
18
|
import AppWrapper from './common/app-wrapper/AppWrapper.vue';
|
|
@@ -37,12 +37,13 @@ import useUserService from './api/services/UserService';
|
|
|
37
37
|
import useInstrumentsService from './api/services/InstrumentsService';
|
|
38
38
|
import useControlsService from './api/services/ControlsService';
|
|
39
39
|
import useSearchService from './api/services/SearchService';
|
|
40
|
+
import useModulesService from './api/services/ModulesService';
|
|
40
41
|
import useCommentsService from './api/services/CommentsService';
|
|
41
42
|
import useEquipmentService from './api/services/EquipmentService';
|
|
42
|
-
import useBrigadesService from '
|
|
43
|
+
import useBrigadesService from './api/services/BrigadesService';
|
|
43
44
|
import useFaceApiHelper from './utils/faceApiHelper';
|
|
44
45
|
export { AppButton, AppCheckbox, AppDatepicker, AppDatePicker, AppInput, AppInputNew, AppInputSearch, AppLayout, AppLayoutHeader, AppLayoutPage, AppLoader, AppSelect, AppSheet, AppSheetNew, AppSidebar, AppToggle, AppWrapper, AppConfirmDialog, AppDropdown, AppTablePagination, AppTableSearch, AppTableModal, AppTable, AppTableLayout, AppModalSelect, };
|
|
45
|
-
export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, useFileService, useControlsService, useVideoService, useUserService, useInstrumentsService, useSearchService, useCommentsService, useFaceApiHelper, useEquipmentService, useBrigadesService, };
|
|
46
|
+
export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, useFileService, useControlsService, useVideoService, useUserService, useInstrumentsService, useSearchService, useModulesService, useCommentsService, useFaceApiHelper, useEquipmentService, useBrigadesService, };
|
|
46
47
|
export { useBaseTable } from './common/app-table/controllers/useBaseTable';
|
|
47
48
|
export { useTableModel } from './common/app-table/controllers/useTableModel';
|
|
48
49
|
export { useColumnSelector } from './common/app-table/controllers/useColumnSelector';
|
|
@@ -63,3 +64,4 @@ export * from './api/types/Api_Files';
|
|
|
63
64
|
export * from './api/types/Api_Video';
|
|
64
65
|
export * from './api/types/Api_Equipment';
|
|
65
66
|
export * from './api/types/Api_Brigades';
|
|
67
|
+
export * from './api/types/Api_Modules';
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import ApiService from '../settings/ApiService'
|
|
2
|
+
import { Api_Module, Api_Module_Create } from '../types/Api_Modules'
|
|
3
|
+
|
|
4
|
+
class ModulesService extends ApiService {
|
|
5
|
+
public async detectModule(id: string): Promise<{ data: string; status: number }> {
|
|
6
|
+
return await this.get(`module/${id}/detect`)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
public async createModule(model: Api_Module_Create): Promise<Api_Module> {
|
|
10
|
+
return await this.post('admin/modules', model)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public async editModule({ id, model }: { id: string; model: Partial<Api_Module_Create> }): Promise<Api_Module> {
|
|
14
|
+
return await this.put(`admin/modules/${id}`, model)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public deleteModule(id: string): Promise<{ data: boolean; status: number }> {
|
|
18
|
+
return this.delete(`admin/modules/${id}`)
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
let api: ModulesService
|
|
23
|
+
|
|
24
|
+
export default function useModulesService() {
|
|
25
|
+
if (!api) api = new ModulesService()
|
|
26
|
+
return api
|
|
27
|
+
}
|
|
@@ -16,6 +16,10 @@ class VideoService extends ApiService {
|
|
|
16
16
|
return this.post('/horizon/video-source/reload', { video_source_ids: ids })
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
public hardReloadStream(): Promise<any> {
|
|
20
|
+
return this.post('horizon/video-source/streams/add', null)
|
|
21
|
+
}
|
|
22
|
+
|
|
19
23
|
public async fetchWorkZones(params?: any): Promise<ResponseApi<Api_Work_Zone_Search[]>> {
|
|
20
24
|
return await this.get('/search/work_zones', { params })
|
|
21
25
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Api_Search_Module } from '@/api/types/Api_Search'
|
|
2
|
+
import { Api_Instrument, Api_Instrument_Location } from '@/api/types/Api_Instruments'
|
|
3
|
+
|
|
4
|
+
export type Api_Module_Create = Pick<Api_Search_Module, 'RFID' | 'inventory_number' | 'title' | 'type'> & {
|
|
5
|
+
user_id: string
|
|
6
|
+
teams: string[]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type Api_Module = Api_Search_Module & {
|
|
10
|
+
auth_count: number
|
|
11
|
+
auth_failed_count: number
|
|
12
|
+
instrument: Pick<Api_Instrument, 'id' | 'RFID' | 'instrument_id' | 'inventory_number' | 'name'> | null
|
|
13
|
+
inventory_completed_count: number
|
|
14
|
+
location: Pick<Api_Instrument_Location, 'id' | 'name' | 'title' | 'state_id' | 'description'> | null
|
|
15
|
+
location_id: string | null
|
|
16
|
+
team_id: string | null
|
|
17
|
+
tun: unknown
|
|
18
|
+
user_id: string
|
|
19
|
+
warehouse_id: string | null
|
|
20
|
+
work_zones: unknown[]
|
|
21
|
+
}
|
|
@@ -34,7 +34,15 @@
|
|
|
34
34
|
class="cursor-pointer clear-input"
|
|
35
35
|
@click="model = null"
|
|
36
36
|
/>
|
|
37
|
-
<q-btn
|
|
37
|
+
<q-btn
|
|
38
|
+
v-if="uuid && !disable && !readonly"
|
|
39
|
+
flat
|
|
40
|
+
no-caps
|
|
41
|
+
label="UUID"
|
|
42
|
+
size="sm"
|
|
43
|
+
class="q-ml-sm uuid-btn"
|
|
44
|
+
@click="model = uuidv4()"
|
|
45
|
+
/>
|
|
38
46
|
<q-icon
|
|
39
47
|
v-if="copyable"
|
|
40
48
|
name="content_copy"
|
package/src/index.ts
CHANGED
|
@@ -12,7 +12,7 @@ import AppLayoutPage from './common/app-layout/components/AppLayoutPage.vue'
|
|
|
12
12
|
import AppLoader from './common/app-loader/index.vue'
|
|
13
13
|
import AppSelect from './common/app-select/AppSelect.vue'
|
|
14
14
|
import AppSheet from './common/app-sheet/AppSheet.vue'
|
|
15
|
-
import AppSheetNew from '
|
|
15
|
+
import AppSheetNew from './common/app-sheet-new/AppSheetNew.vue'
|
|
16
16
|
import AppSidebar from './common/app-sidebar/AppSidebar.vue'
|
|
17
17
|
import AppToggle from './common/app-toggle/AppToggle.vue'
|
|
18
18
|
import AppWrapper from './common/app-wrapper/AppWrapper.vue'
|
|
@@ -38,9 +38,10 @@ import useUserService from './api/services/UserService'
|
|
|
38
38
|
import useInstrumentsService from './api/services/InstrumentsService'
|
|
39
39
|
import useControlsService from './api/services/ControlsService'
|
|
40
40
|
import useSearchService from './api/services/SearchService'
|
|
41
|
+
import useModulesService from './api/services/ModulesService'
|
|
41
42
|
import useCommentsService from './api/services/CommentsService'
|
|
42
43
|
import useEquipmentService from './api/services/EquipmentService'
|
|
43
|
-
import useBrigadesService from '
|
|
44
|
+
import useBrigadesService from './api/services/BrigadesService'
|
|
44
45
|
|
|
45
46
|
import useFaceApiHelper from './utils/faceApiHelper'
|
|
46
47
|
|
|
@@ -86,6 +87,7 @@ export {
|
|
|
86
87
|
useUserService,
|
|
87
88
|
useInstrumentsService,
|
|
88
89
|
useSearchService,
|
|
90
|
+
useModulesService,
|
|
89
91
|
useCommentsService,
|
|
90
92
|
useFaceApiHelper,
|
|
91
93
|
useEquipmentService,
|
|
@@ -116,4 +118,5 @@ export * from './api/types/Api_Files'
|
|
|
116
118
|
export * from './api/types/Api_Video'
|
|
117
119
|
export * from './api/types/Api_Equipment'
|
|
118
120
|
export * from './api/types/Api_Brigades'
|
|
121
|
+
export * from './api/types/Api_Modules'
|
|
119
122
|
// export * from '../types/Api_Metrics'
|