shared-ritm 1.0.3 → 1.0.5

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.
@@ -0,0 +1,24 @@
1
+ import { AxiosRequestConfig, AxiosResponse } from 'axios';
2
+ export declare enum ApiServiceType {
3
+ SERVICE_AUTH = "SERVICE_AUTH"
4
+ }
5
+ export type ResponseApi<T> = {
6
+ count: number;
7
+ current_page: number;
8
+ data: T;
9
+ per_page: number;
10
+ total: number;
11
+ total_pages: number;
12
+ };
13
+ export default class ApiService {
14
+ private axiosInstance;
15
+ constructor();
16
+ private getToken;
17
+ private removeToken;
18
+ private logout;
19
+ private handleError;
20
+ protected get<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
21
+ protected delete<T>(url: string, options?: AxiosRequestConfig): Promise<AxiosResponse<T, any>>;
22
+ protected post<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
23
+ protected put<T1, T2>(url: string, payload: T1, options?: AxiosRequestConfig): Promise<T2>;
24
+ }
@@ -0,0 +1,7 @@
1
+ import { default as ApiService } from './ApiService';
2
+ declare class GanttService extends ApiService {
3
+ fetchCriticalPathTasks(params: string): Promise<any>;
4
+ fetchGanttList(params: string): Promise<any>;
5
+ }
6
+ export default function useGanttService(): GanttService;
7
+ export {};
@@ -0,0 +1,21 @@
1
+ import { default as ApiService, ResponseApi } from './ApiService';
2
+ declare class MetricsService extends ApiService {
3
+ fetchPieProjects(queryString: string): Promise<ResponseApi<any>>;
4
+ fetchPieTasks(queryString: string): Promise<ResponseApi<any>>;
5
+ fetchPiePersonnel(queryString: string): Promise<ResponseApi<any>>;
6
+ fetchPiePersonnelInfo(params: string): Promise<any>;
7
+ fetchPieWorkZone(queryString: string): Promise<ResponseApi<any>>;
8
+ fetchPieCriticalPath(queryString: string): Promise<any[]>;
9
+ fetchPieCriticalPathInfo(params: string): Promise<any>;
10
+ fetchPieTmc(queryString: string): Promise<ResponseApi<any>>;
11
+ fetchPieTmcInfo(params: string): Promise<any>;
12
+ fetchPieUntimelyClosedTask(queryString: string): Promise<any[]>;
13
+ fetchPieUntimelyClosedTaskInfo(params: string): Promise<any>;
14
+ fetchPieAdditionalTasks(queryString: string): Promise<any[]>;
15
+ fetchPieAdditionalTasksInfo(params: string): Promise<any>;
16
+ fetchPersonnel(queryString: string): Promise<any[]>;
17
+ fetchPieExpired(queryString: string): Promise<any[]>;
18
+ fetchPieExpiredInfo(params: string): Promise<any>;
19
+ }
20
+ export default function useMetricsService(): MetricsService;
21
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as ApiService, ResponseApi } from './ApiService';
2
+ import { Api_Tasks_Task_Dto } from './types/Api_Tasks';
3
+ declare class ProjectsService extends ApiService {
4
+ fetchProjectById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
5
+ }
6
+ export default function useProjectsService(): ProjectsService;
7
+ export {};
@@ -0,0 +1,15 @@
1
+ import { default as ApiService, ResponseApi } from './ApiService';
2
+ import { Api_Create_Repair_With_Equipments, Api_Equipment_Full_Dto, Api_Repair_Dto, Api_Update_Repair, OptionFilters } from './types/Api_Repairs';
3
+ declare class RepairsService extends ApiService {
4
+ fetchFilters(fullParams: string): Promise<OptionFilters>;
5
+ fetchRepairs(isQuery: boolean, queries?: string, hasTeams?: boolean | string, teamsFilter?: string): Promise<ResponseApi<Api_Repair_Dto[]>>;
6
+ fetchEquipment(): Promise<ResponseApi<Api_Equipment_Full_Dto[]>>;
7
+ createRepair(payload: Api_Create_Repair_With_Equipments): Promise<any>;
8
+ startRepair(id: string): Promise<void>;
9
+ finishRepair(id: string): Promise<void>;
10
+ finishPreparationProject(id: string): Promise<void>;
11
+ updateRepair(payload: Api_Update_Repair, id: string): Promise<void>;
12
+ deleteRepair(id: string): Promise<import('axios').AxiosResponse<any, any>>;
13
+ }
14
+ export default function useRepairsService(): RepairsService;
15
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as ApiService, ResponseApi } from './ApiService';
2
+ import { Api_Tasks_Task_Dto } from './types/Api_Tasks';
3
+ declare class TasksService extends ApiService {
4
+ fetchTaskById(id: string): Promise<ResponseApi<Api_Tasks_Task_Dto>>;
5
+ }
6
+ export default function useTasksService(): TasksService;
7
+ export {};
File without changes
@@ -0,0 +1,49 @@
1
+ export type Api_Team = {
2
+ id: string;
3
+ display_name: string;
4
+ };
5
+ export type Api_Equipment_Short_Dto = {
6
+ id: string;
7
+ name: string;
8
+ };
9
+ export type Api_Repairs = {
10
+ id: string;
11
+ name: string;
12
+ };
13
+ export type Api_Projects = {
14
+ id: string;
15
+ name: string;
16
+ };
17
+ export type OptionFilters = {
18
+ teams?: Api_Team[];
19
+ equipments?: Api_Equipment_Short_Dto[];
20
+ };
21
+ export type Api_Equipment_Full_Dto = {
22
+ id: string;
23
+ model: null | string;
24
+ name: string;
25
+ registration_number: string;
26
+ repair_frequency: number;
27
+ repair_range: number;
28
+ };
29
+ export type Api_Create_Repair_With_Equipments = {
30
+ name: string;
31
+ display_name: string;
32
+ description: string;
33
+ equipment_id: string;
34
+ };
35
+ export type Api_Update_Repair = {
36
+ name?: string;
37
+ display_name?: string;
38
+ description: string;
39
+ };
40
+ export type Api_Repair_Dto = {
41
+ id: string;
42
+ name: string;
43
+ display_name: string;
44
+ description: string;
45
+ start_date: string;
46
+ end_date: string;
47
+ projects: Api_Projects[];
48
+ equipments: Api_Equipment_Full_Dto[];
49
+ };
@@ -0,0 +1,93 @@
1
+ export type Api_Tasks_Responsible_Dto = {
2
+ id: string;
3
+ first_name: string;
4
+ last_name: string;
5
+ patronymic: string;
6
+ full_name: string;
7
+ };
8
+ export type Api_Tasks_Assigned_Dto = {
9
+ id: string;
10
+ first_name: string;
11
+ last_name: string;
12
+ patronymic: null | string;
13
+ full_name: string;
14
+ };
15
+ export type Api_Tasks_Status_Dto = {
16
+ id: string;
17
+ name: string;
18
+ title: string;
19
+ };
20
+ export type Api_Tasks_Project_Dto = {
21
+ id: string;
22
+ name: string;
23
+ teams: string[];
24
+ };
25
+ export type Api_Tasks_Position_Dto = {
26
+ id: string;
27
+ name: string;
28
+ display_name: string;
29
+ };
30
+ export type Api_Tasks_Position_Assigned_Dto = {
31
+ id: number;
32
+ user: {
33
+ id: string;
34
+ full_name: string;
35
+ };
36
+ position: Api_Tasks_Position_Dto;
37
+ };
38
+ export type Api_Tasks_Teams_Dto = {
39
+ id: string;
40
+ name: string;
41
+ display_name: string;
42
+ };
43
+ export type Api_Tasks_Equipment_Dto = {
44
+ id: string;
45
+ name: string;
46
+ model: string;
47
+ registration_number: string;
48
+ created_at: string;
49
+ updated_at: string;
50
+ repair_frequency: number;
51
+ repair_range: number;
52
+ };
53
+ export type Api_Tasks_Task_Dto = {
54
+ id: string;
55
+ name: string;
56
+ type: string;
57
+ project_id: string;
58
+ description: string;
59
+ subtask_counter: number;
60
+ subtasks: Api_Tasks_Task_Dto[];
61
+ state_id: null | string;
62
+ start_date: string;
63
+ end_date: string;
64
+ deadline: string;
65
+ plan_date: string;
66
+ time_to_complete: null | string | number;
67
+ time_to_complete_sec: number;
68
+ priority: number;
69
+ work_zone_id: null | string;
70
+ location_id: null | string;
71
+ target: any;
72
+ status: Api_Tasks_Status_Dto;
73
+ project: Api_Tasks_Project_Dto;
74
+ position: Api_Tasks_Position_Dto[];
75
+ assigned: Api_Tasks_Assigned_Dto[];
76
+ instruments: any[];
77
+ warehouse: any[];
78
+ responsible: Api_Tasks_Responsible_Dto[];
79
+ position_assigned: Api_Tasks_Position_Assigned_Dto[];
80
+ comments: any[];
81
+ files: any[];
82
+ teams: Api_Tasks_Teams_Dto[];
83
+ work_zone: string;
84
+ planned_start: null | string;
85
+ planned_end: null | string;
86
+ fact_start_date: string;
87
+ fact_end_date: null | string;
88
+ work_sec: number;
89
+ pause_sec: number;
90
+ repair_object: null | string;
91
+ isPause: boolean;
92
+ equipment: Api_Tasks_Equipment_Dto[];
93
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,73 @@
1
+ interface QBtnProps {
2
+ size?: string | undefined;
3
+ type?: string | undefined;
4
+ to?: string | any | undefined;
5
+ replace?: boolean | undefined;
6
+ href?: string | undefined;
7
+ target?: string | undefined;
8
+ label?: string | number | undefined;
9
+ icon?: string | undefined;
10
+ iconRight?: string | undefined;
11
+ outline?: boolean | undefined;
12
+ flat?: boolean | undefined;
13
+ unelevated?: boolean | undefined;
14
+ rounded?: boolean | undefined;
15
+ push?: boolean | undefined;
16
+ square?: boolean | undefined;
17
+ glossy?: boolean | undefined;
18
+ fab?: boolean | undefined;
19
+ fabMini?: boolean | undefined;
20
+ padding?: string | undefined;
21
+ color?: string | undefined;
22
+ textColor?: string | undefined;
23
+ noCaps?: boolean | undefined;
24
+ noWrap?: boolean | undefined;
25
+ dense?: boolean | undefined;
26
+ ripple?: boolean | any | undefined;
27
+ tabindex?: number | string | undefined;
28
+ align?: 'left' | 'right' | 'center' | 'around' | 'between' | 'evenly' | undefined;
29
+ stack?: boolean | undefined;
30
+ stretch?: boolean | undefined;
31
+ loading?: boolean | undefined;
32
+ round?: boolean | undefined;
33
+ percentage?: number | undefined;
34
+ darkPercentage?: boolean | undefined;
35
+ }
36
+ interface Props extends QBtnProps {
37
+ disable?: boolean | ((...args: any[]) => boolean);
38
+ tooltip?: string;
39
+ uppercase?: boolean;
40
+ xSmall?: boolean;
41
+ small?: boolean;
42
+ large?: boolean;
43
+ fullWidth?: boolean;
44
+ wrap?: boolean;
45
+ largeIcon?: boolean;
46
+ modelValue?: boolean;
47
+ badge?: string | boolean | number;
48
+ badgeColor?: string;
49
+ badgeInline?: boolean;
50
+ link?: boolean;
51
+ }
52
+ declare function __VLS_template(): {
53
+ slots: {
54
+ default?(_: {}): any;
55
+ };
56
+ refs: {};
57
+ attrs: Partial<{}>;
58
+ };
59
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
60
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
+ click: (...args: any[]) => void;
62
+ "update:modelValue": (...args: any[]) => void;
63
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
64
+ onClick?: ((...args: any[]) => any) | undefined;
65
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
66
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
67
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
68
+ export default _default;
69
+ type __VLS_WithTemplateSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { default as AppTestButton } from './common/app-test-button/AppTestButton.vue';
2
+ declare const useAppButton: {
3
+ install: (app: {
4
+ component: (a: string, b: unknown) => void;
5
+ }) => void;
6
+ };
7
+ export { useAppButton, AppTestButton };
package/dist/main.d.ts ADDED
File without changes
@@ -0,0 +1,21 @@
1
+ import { openBlock as c, createElementBlock as r, createElementVNode as p } from "vue";
2
+ const l = (t, s) => {
3
+ const n = t.__vccOpts || t;
4
+ for (const [o, e] of s)
5
+ n[o] = e;
6
+ return n;
7
+ }, u = {};
8
+ function _(t, s) {
9
+ return c(), r("div", null, s[0] || (s[0] = [
10
+ p("button", null, "sssssssssssssssss", -1)
11
+ ]));
12
+ }
13
+ const f = /* @__PURE__ */ l(u, [["render", _]]), m = {
14
+ install: function(t) {
15
+ t.component("AppTestButton", f);
16
+ }
17
+ };
18
+ export {
19
+ f as AppTestButton,
20
+ m as useAppButton
21
+ };
@@ -0,0 +1 @@
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.MyVueLibrary={},e.Vue))})(this,function(e,t){"use strict";const i=(n,s)=>{const u=n.__vccOpts||n;for(const[f,d]of s)u[f]=d;return u},c={};function p(n,s){return t.openBlock(),t.createElementBlock("div",null,s[0]||(s[0]=[t.createElementVNode("button",null,"sssssssssssssssss",-1)]))}const o=i(c,[["render",p]]),r={install:function(n){n.component("AppTestButton",o)}};e.AppTestButton=o,e.useAppButton=r,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,12 @@
1
+ import { Quasar, Notify, Loading, Dialog } from 'quasar';
2
+ declare const quasarUserOptions: {
3
+ config: {
4
+ dark: boolean;
5
+ };
6
+ plugins: {
7
+ Notify: Notify;
8
+ Loading: Loading;
9
+ Dialog: Dialog;
10
+ };
11
+ };
12
+ export { Quasar, quasarUserOptions };
@@ -0,0 +1,21 @@
1
+ import { openBlock as c, createElementBlock as r, createElementVNode as p } from "vue";
2
+ const l = (t, s) => {
3
+ const n = t.__vccOpts || t;
4
+ for (const [o, e] of s)
5
+ n[o] = e;
6
+ return n;
7
+ }, u = {};
8
+ function _(t, s) {
9
+ return c(), r("div", null, s[0] || (s[0] = [
10
+ p("button", null, "sssssssssssssssss", -1)
11
+ ]));
12
+ }
13
+ const f = /* @__PURE__ */ l(u, [["render", _]]), m = {
14
+ install: function(t) {
15
+ t.component("AppTestButton", f);
16
+ }
17
+ };
18
+ export {
19
+ f as AppTestButton,
20
+ m as useAppButton
21
+ };