@davra/ui-core 1.0.0-AEP-6394.1
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/README.md +30 -0
- package/dist/style.css +1 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/components/labels/LabelInput.vue.d.ts +46 -0
- package/dist/types/components/labels/LabelsSelector.vue.d.ts +24 -0
- package/dist/types/components/labels/index.d.ts +3 -0
- package/dist/types/components/labels/labelInput.test.d.ts +1 -0
- package/dist/types/components/labels/labelsSelector.test.d.ts +1 -0
- package/dist/types/components/modals/ConfirmModal.vue.d.ts +21 -0
- package/dist/types/components/modals/DeleteModal.vue.d.ts +34 -0
- package/dist/types/components/modals/Modal.vue.d.ts +26 -0
- package/dist/types/components/modals/ViewObjectModal.vue.d.ts +44 -0
- package/dist/types/components/modals/index.d.ts +5 -0
- package/dist/types/components/utils/ScrollText.vue.d.ts +9 -0
- package/dist/types/components/utils/Snackbar.vue.d.ts +2 -0
- package/dist/types/components/utils/index.d.ts +3 -0
- package/dist/types/components/utils/snackbar.test.d.ts +1 -0
- package/dist/types/constants/MyConstants.d.ts +1 -0
- package/dist/types/constants/index.d.ts +2 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/services/davraApi.d.ts +3 -0
- package/dist/types/services/devicesCountersService.d.ts +10 -0
- package/dist/types/services/devicesCountersService.test.d.ts +1 -0
- package/dist/types/services/devicesService.d.ts +18 -0
- package/dist/types/services/devicesService.test.d.ts +1 -0
- package/dist/types/services/index.d.ts +11 -0
- package/dist/types/services/labelsService.d.ts +8 -0
- package/dist/types/services/labelsService.test.d.ts +1 -0
- package/dist/types/services/metricsCountersService.d.ts +5 -0
- package/dist/types/services/metricsCountersService.test.d.ts +1 -0
- package/dist/types/services/metricsService.d.ts +6 -0
- package/dist/types/services/metricsService.test.d.ts +1 -0
- package/dist/types/services/timeseriesService.d.ts +5 -0
- package/dist/types/services/timeseriesService.test.d.ts +1 -0
- package/dist/types/services/twinTypesService.d.ts +5 -0
- package/dist/types/services/twinTypesService.test.d.ts +1 -0
- package/dist/types/services/twinsCountersService.d.ts +6 -0
- package/dist/types/services/twinsCountersService.test.d.ts +1 -0
- package/dist/types/services/twinsService.d.ts +22 -0
- package/dist/types/services/twinsService.test.d.ts +1 -0
- package/dist/types/services/userSessionService.d.ts +12 -0
- package/dist/types/services/userSessionService.test.d.ts +1 -0
- package/dist/types/stores/alertMessages.d.ts +19 -0
- package/dist/types/stores/alertMessages.test.d.ts +1 -0
- package/dist/types/stores/devices.d.ts +42 -0
- package/dist/types/stores/devices.test.d.ts +1 -0
- package/dist/types/stores/index.d.ts +7 -0
- package/dist/types/stores/labels.d.ts +20 -0
- package/dist/types/stores/labels.test.d.ts +1 -0
- package/dist/types/stores/metrics.d.ts +39 -0
- package/dist/types/stores/metrics.test.d.ts +1 -0
- package/dist/types/stores/twinTypes.d.ts +27 -0
- package/dist/types/stores/twinTypes.test.d.ts +1 -0
- package/dist/types/stores/twins.d.ts +42 -0
- package/dist/types/stores/twins.test.d.ts +1 -0
- package/dist/types/stores/userSession.d.ts +24 -0
- package/dist/types/stores/userSession.test.d.ts +1 -0
- package/dist/types/types.d.ts +175 -0
- package/dist/types/utils/MyUtil.d.ts +5 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/ui-core.es.js +1586 -0
- package/package.json +54 -0
package/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
# UI Core
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
## Setup
|
7
|
+
|
8
|
+
> To run the library locally and be able to see your changes without having to publish a new version use [npm link](https://medium.com/dailyjs/how-to-use-npm-link-7375b6219557)
|
9
|
+
|
10
|
+
```bash
|
11
|
+
# install dependencies
|
12
|
+
npm install
|
13
|
+
|
14
|
+
# link package
|
15
|
+
npm link
|
16
|
+
|
17
|
+
# start the build with hot reload, great for testing components
|
18
|
+
npm run build:watch
|
19
|
+
|
20
|
+
# build the library, available under dist
|
21
|
+
npm run build
|
22
|
+
|
23
|
+
# run tests
|
24
|
+
npm run test
|
25
|
+
```
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
package/dist/style.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
.scroll-text[data-v-4d66a865]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word}.scroll-text[data-v-4d66a865]:hover{width:100%;text-overflow:initial;overflow:visible!important;animation-name:scroll-text-4d66a865;animation-duration:var(--2e2ac96b);animation-timing-function:linear;animation-delay:0s;animation-iteration-count:1;animation-direction:normal;animation-fill-mode:forwards}@keyframes scroll-text-4d66a865{0%{transform:translate(0)}to{transform:translate(var(--e0628022))}}@font-face{font-family:myfont;src:url(data:font/woff;base64,d09GRgABAAAAAATMAAsAAAAABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIGBGNtYXAAAAFoAAAAVAAAAFQWfNQ7Z2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAMQAAADE9iu5ZGhlYWQAAAKIAAAANgAAADYfdnyraGhlYQAAAsAAAAAkAAAAJAfCA8ZobXR4AAAC5AAAABQAAAAUCgAAAGxvY2EAAAL4AAAADAAAAAwAKAB2bWF4cAAAAwQAAAAgAAAAIAAHACxuYW1lAAADJAAAAYYAAAGGmUoJ+3Bvc3QAAASsAAAAIAAAACAAAwAAAAMDAAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6doDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOna//3//wAAAAAAIOna//3//wAB/+MWKgADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAA/8wEAAOAACkAAAEiBw4BBwYHJicuAScmIyIHDgEHBhUUFx4BFxYXNjc+ATc2NTQnLgEnJgLzKCUlPxkZEBAZGT8lJSg4MTFJFRUzM5lZWk5KWVmbNTQVFUkxMQOADw8yICEiIiEgMg8PFRVJMTE4cU5Pjk5NcG9PT5BOT204MTFJFRUAAAEAAAAAAABxV9/FXw889QALBAAAAAAA3iwcMQAAAADeLBwxAAD/zAQAA4AAAAAIAAIAAAAAAAAAAQAAA8D/wAAABAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAUEAAAAAAAAAAAAAAACAAAABAAAAAAAAAAACgAUAB4AYgABAAAABQAqAAEAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEABwAAAAEAAAAAAAIABwBgAAEAAAAAAAMABwA2AAEAAAAAAAQABwB1AAEAAAAAAAUACwAVAAEAAAAAAAYABwBLAAEAAAAAAAoAGgCKAAMAAQQJAAEADgAHAAMAAQQJAAIADgBnAAMAAQQJAAMADgA9AAMAAQQJAAQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==)}[class^=icon-],[class*=" icon-"]{font-family:myfont!important}.icon-heart:before{content:""}.global-example{color:red}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
labels: {
|
3
|
+
type: globalThis.PropType<string[]>;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
twintypes: {
|
7
|
+
type: globalThis.PropType<string[]>;
|
8
|
+
required: true;
|
9
|
+
};
|
10
|
+
labelkey: {
|
11
|
+
type: globalThis.PropType<string>;
|
12
|
+
required: true;
|
13
|
+
};
|
14
|
+
labelvalue: {
|
15
|
+
type: globalThis.PropType<string>;
|
16
|
+
required: true;
|
17
|
+
};
|
18
|
+
readonly: {
|
19
|
+
type: globalThis.PropType<boolean>;
|
20
|
+
};
|
21
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:labelkey" | "update:labelvalue" | "removelabel")[], "update:labelkey" | "update:labelvalue" | "removelabel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
|
22
|
+
labels: {
|
23
|
+
type: globalThis.PropType<string[]>;
|
24
|
+
required: true;
|
25
|
+
};
|
26
|
+
twintypes: {
|
27
|
+
type: globalThis.PropType<string[]>;
|
28
|
+
required: true;
|
29
|
+
};
|
30
|
+
labelkey: {
|
31
|
+
type: globalThis.PropType<string>;
|
32
|
+
required: true;
|
33
|
+
};
|
34
|
+
labelvalue: {
|
35
|
+
type: globalThis.PropType<string>;
|
36
|
+
required: true;
|
37
|
+
};
|
38
|
+
readonly: {
|
39
|
+
type: globalThis.PropType<boolean>;
|
40
|
+
};
|
41
|
+
}>> & {
|
42
|
+
"onUpdate:labelkey"?: ((...args: any[]) => any) | undefined;
|
43
|
+
"onUpdate:labelvalue"?: ((...args: any[]) => any) | undefined;
|
44
|
+
onRemovelabel?: ((...args: any[]) => any) | undefined;
|
45
|
+
}, {}, {}>;
|
46
|
+
export default _default;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
modelValue: {
|
3
|
+
type: globalThis.PropType<{
|
4
|
+
[key: string]: string;
|
5
|
+
}>;
|
6
|
+
required: true;
|
7
|
+
};
|
8
|
+
readonly: {
|
9
|
+
type: globalThis.PropType<boolean>;
|
10
|
+
};
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
|
12
|
+
modelValue: {
|
13
|
+
type: globalThis.PropType<{
|
14
|
+
[key: string]: string;
|
15
|
+
}>;
|
16
|
+
required: true;
|
17
|
+
};
|
18
|
+
readonly: {
|
19
|
+
type: globalThis.PropType<boolean>;
|
20
|
+
};
|
21
|
+
}>> & {
|
22
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
23
|
+
}, {}, {}>;
|
24
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
2
|
+
title: {
|
3
|
+
type: globalThis.PropType<string>;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "confirm"[], "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
|
7
|
+
title: {
|
8
|
+
type: globalThis.PropType<string>;
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
}>> & {
|
12
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
13
|
+
}, {}, {}>, {
|
14
|
+
default?(_: {}): any;
|
15
|
+
}>;
|
16
|
+
export default _default;
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
18
|
+
new (): {
|
19
|
+
$slots: S;
|
20
|
+
};
|
21
|
+
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
2
|
+
title: {
|
3
|
+
type: globalThis.PropType<string>;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
modelValue: {
|
7
|
+
type: globalThis.PropType<boolean>;
|
8
|
+
};
|
9
|
+
parentActivator: {
|
10
|
+
type: globalThis.PropType<boolean>;
|
11
|
+
};
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "confirm")[], "update:modelValue" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
|
13
|
+
title: {
|
14
|
+
type: globalThis.PropType<string>;
|
15
|
+
required: true;
|
16
|
+
};
|
17
|
+
modelValue: {
|
18
|
+
type: globalThis.PropType<boolean>;
|
19
|
+
};
|
20
|
+
parentActivator: {
|
21
|
+
type: globalThis.PropType<boolean>;
|
22
|
+
};
|
23
|
+
}>> & {
|
24
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
25
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
26
|
+
}, {}, {}>, {
|
27
|
+
default?(_: {}): any;
|
28
|
+
}>;
|
29
|
+
export default _default;
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
31
|
+
new (): {
|
32
|
+
$slots: S;
|
33
|
+
};
|
34
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
2
|
+
modelValue: {
|
3
|
+
type: globalThis.PropType<boolean>;
|
4
|
+
};
|
5
|
+
parentActivator: {
|
6
|
+
type: globalThis.PropType<boolean>;
|
7
|
+
};
|
8
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "confirm")[], "update:modelValue" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
|
9
|
+
modelValue: {
|
10
|
+
type: globalThis.PropType<boolean>;
|
11
|
+
};
|
12
|
+
parentActivator: {
|
13
|
+
type: globalThis.PropType<boolean>;
|
14
|
+
};
|
15
|
+
}>> & {
|
16
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
17
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
18
|
+
}, {}, {}>, {
|
19
|
+
default?(_: {}): any;
|
20
|
+
}>;
|
21
|
+
export default _default;
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
23
|
+
new (): {
|
24
|
+
$slots: S;
|
25
|
+
};
|
26
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
2
|
+
title: {
|
3
|
+
type: globalThis.PropType<string>;
|
4
|
+
required: true;
|
5
|
+
};
|
6
|
+
modelValue: {
|
7
|
+
type: globalThis.PropType<boolean>;
|
8
|
+
};
|
9
|
+
parentActivator: {
|
10
|
+
type: globalThis.PropType<boolean>;
|
11
|
+
};
|
12
|
+
hideActions: {
|
13
|
+
type: globalThis.PropType<boolean>;
|
14
|
+
};
|
15
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "confirm")[], "update:modelValue" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{
|
16
|
+
title: {
|
17
|
+
type: globalThis.PropType<string>;
|
18
|
+
required: true;
|
19
|
+
};
|
20
|
+
modelValue: {
|
21
|
+
type: globalThis.PropType<boolean>;
|
22
|
+
};
|
23
|
+
parentActivator: {
|
24
|
+
type: globalThis.PropType<boolean>;
|
25
|
+
};
|
26
|
+
hideActions: {
|
27
|
+
type: globalThis.PropType<boolean>;
|
28
|
+
};
|
29
|
+
}>> & {
|
30
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
31
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
32
|
+
}, {}, {}>, {
|
33
|
+
default?(_: {}): any;
|
34
|
+
actions?(_: {
|
35
|
+
confirm: () => void;
|
36
|
+
dialog: boolean;
|
37
|
+
}): any;
|
38
|
+
}>;
|
39
|
+
export default _default;
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
41
|
+
new (): {
|
42
|
+
$slots: S;
|
43
|
+
};
|
44
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>, {
|
2
|
+
default?(_: {}): any;
|
3
|
+
}>;
|
4
|
+
export default _default;
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
6
|
+
new (): {
|
7
|
+
$slots: S;
|
8
|
+
};
|
9
|
+
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
|
2
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const MAGIC_NUM = 100;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { App } from 'vue';
|
2
|
+
declare function installCoreComponents(app: App): void;
|
3
|
+
import './assets/main.scss';
|
4
|
+
export { installCoreComponents };
|
5
|
+
export * from './components';
|
6
|
+
export * from './constants';
|
7
|
+
export * from './utils';
|
8
|
+
export * from './services';
|
9
|
+
export * from './stores';
|
10
|
+
export * from './types';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { DeviceCounter, DeviceCounterMetric } from '../types';
|
2
|
+
declare const _default: {
|
3
|
+
getDevicesCountersMetric: (filters?: string | undefined) => Promise<DeviceCounterMetric[]>;
|
4
|
+
getDevicesCountersMetricByUUID: (uuid: string) => Promise<DeviceCounterMetric[]>;
|
5
|
+
getDevicesCountersMetricByUUIDs: (uuids: string[]) => Promise<DeviceCounterMetric[]>;
|
6
|
+
getDevicesCountersByUUID: (uuid: string) => Promise<DeviceCounter[]>;
|
7
|
+
getDevicesCountersLatestByUUID: (uuid: string) => Promise<any>;
|
8
|
+
getDevicesCountersLatestByUUIDs: (uuids: string[]) => Promise<any[]>;
|
9
|
+
};
|
10
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { Device } from '../types';
|
2
|
+
declare const _default: {
|
3
|
+
getDevices: (start?: number | undefined, limit?: number | undefined, sort?: string | undefined, filters?: string | undefined) => Promise<{
|
4
|
+
totalRecords: number;
|
5
|
+
records: Device[];
|
6
|
+
}>;
|
7
|
+
queryDevices: (query: any) => Promise<{
|
8
|
+
totalRecords: number;
|
9
|
+
records: Device[];
|
10
|
+
}>;
|
11
|
+
getDeviceByUUID: (uuid: string) => Promise<Device | null>;
|
12
|
+
getDeviceByUUIDs: (uuids: string[]) => Promise<{
|
13
|
+
totalRecords: number;
|
14
|
+
records: Device[];
|
15
|
+
}>;
|
16
|
+
getDeviceAttachements: (uuid: string) => Promise<any>;
|
17
|
+
};
|
18
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import UserSessionService from './userSessionService';
|
2
|
+
import DevicesCountersService from './devicesCountersService';
|
3
|
+
import TwinsCountersService from './twinsCountersService';
|
4
|
+
import DevicesService from './devicesService';
|
5
|
+
import TwinsService from './twinsService';
|
6
|
+
import TimeseriesService from './timeseriesService';
|
7
|
+
import LabelsService from './labelsService';
|
8
|
+
import MetricsService from './metricsService';
|
9
|
+
import TwinTypesService from './twinTypesService';
|
10
|
+
export * from './davraApi';
|
11
|
+
export { UserSessionService, DevicesCountersService, TwinsCountersService, DevicesService, TwinsService, TimeseriesService, MetricsService, LabelsService, TwinTypesService };
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { Twin } from '../types';
|
2
|
+
declare const _default: {
|
3
|
+
getTwins: (start?: number, limit?: number, sort?: string | undefined, filters?: string | undefined) => Promise<{
|
4
|
+
totalRecords: number;
|
5
|
+
records: Twin[];
|
6
|
+
}>;
|
7
|
+
getTwinsByTypeName: (twinTypeName: string, start?: number, limit?: number, sort?: string | undefined, searchString?: string | undefined) => Promise<{
|
8
|
+
totalRecords: number;
|
9
|
+
records: Twin[];
|
10
|
+
}>;
|
11
|
+
getTwinByUUID: (uuid: string) => Promise<Twin | null>;
|
12
|
+
getTwinByUUIDs: (uuids: string[]) => Promise<{
|
13
|
+
totalRecords: number;
|
14
|
+
records: Twin[];
|
15
|
+
}>;
|
16
|
+
getTwinAttachements: (uuid: string) => Promise<any>;
|
17
|
+
queryTwins: (query: any) => Promise<{
|
18
|
+
totalRecords: number;
|
19
|
+
records: any;
|
20
|
+
}>;
|
21
|
+
};
|
22
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { Permission, User } from '../types';
|
2
|
+
declare const _default: {
|
3
|
+
getUser: () => Promise<User | null>;
|
4
|
+
getUserPermissions: (permissions?: {
|
5
|
+
Action: string;
|
6
|
+
Resource: string;
|
7
|
+
}[]) => Promise<Permission[]>;
|
8
|
+
permissionList: {
|
9
|
+
Action: string;
|
10
|
+
}[];
|
11
|
+
};
|
12
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export declare const useAlertMessagesStore: import("pinia").StoreDefinition<"alertMessages", import("pinia")._UnwrapAll<Pick<{
|
2
|
+
snackbar: globalThis.Ref<boolean>;
|
3
|
+
snackbarText: globalThis.Ref<string>;
|
4
|
+
snackbarSeverity: globalThis.Ref<string>;
|
5
|
+
snackbarTimeout: globalThis.Ref<number>;
|
6
|
+
setSnackbarMessage: (text?: string, severity?: string, timeout?: number) => void;
|
7
|
+
}, "snackbar" | "snackbarText" | "snackbarSeverity" | "snackbarTimeout">>, Pick<{
|
8
|
+
snackbar: globalThis.Ref<boolean>;
|
9
|
+
snackbarText: globalThis.Ref<string>;
|
10
|
+
snackbarSeverity: globalThis.Ref<string>;
|
11
|
+
snackbarTimeout: globalThis.Ref<number>;
|
12
|
+
setSnackbarMessage: (text?: string, severity?: string, timeout?: number) => void;
|
13
|
+
}, never>, Pick<{
|
14
|
+
snackbar: globalThis.Ref<boolean>;
|
15
|
+
snackbarText: globalThis.Ref<string>;
|
16
|
+
snackbarSeverity: globalThis.Ref<string>;
|
17
|
+
snackbarTimeout: globalThis.Ref<number>;
|
18
|
+
setSnackbarMessage: (text?: string, severity?: string, timeout?: number) => void;
|
19
|
+
}, "setSnackbarMessage">>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import type { Ref } from 'vue';
|
2
|
+
import type { Device } from '../types';
|
3
|
+
export declare const useDevicesStore: import("pinia").StoreDefinition<"devices", import("pinia")._UnwrapAll<Pick<{
|
4
|
+
pullDevicesByUUIDs: (uuids: string[], forceClear?: boolean) => Promise<{
|
5
|
+
totalRecords: number;
|
6
|
+
records: Device[];
|
7
|
+
}>;
|
8
|
+
pullDevices: (start: number, limit: number, sort: string, filters: string) => Promise<{
|
9
|
+
totalRecords: number;
|
10
|
+
records: Device[];
|
11
|
+
}>;
|
12
|
+
devicesCollection: Ref<{
|
13
|
+
[UUID: string]: Device;
|
14
|
+
}>;
|
15
|
+
getDeviceFromUUID: (uuid: string, fromCache?: boolean) => Promise<Device | null | undefined>;
|
16
|
+
}, "devicesCollection">>, Pick<{
|
17
|
+
pullDevicesByUUIDs: (uuids: string[], forceClear?: boolean) => Promise<{
|
18
|
+
totalRecords: number;
|
19
|
+
records: Device[];
|
20
|
+
}>;
|
21
|
+
pullDevices: (start: number, limit: number, sort: string, filters: string) => Promise<{
|
22
|
+
totalRecords: number;
|
23
|
+
records: Device[];
|
24
|
+
}>;
|
25
|
+
devicesCollection: Ref<{
|
26
|
+
[UUID: string]: Device;
|
27
|
+
}>;
|
28
|
+
getDeviceFromUUID: (uuid: string, fromCache?: boolean) => Promise<Device | null | undefined>;
|
29
|
+
}, never>, Pick<{
|
30
|
+
pullDevicesByUUIDs: (uuids: string[], forceClear?: boolean) => Promise<{
|
31
|
+
totalRecords: number;
|
32
|
+
records: Device[];
|
33
|
+
}>;
|
34
|
+
pullDevices: (start: number, limit: number, sort: string, filters: string) => Promise<{
|
35
|
+
totalRecords: number;
|
36
|
+
records: Device[];
|
37
|
+
}>;
|
38
|
+
devicesCollection: Ref<{
|
39
|
+
[UUID: string]: Device;
|
40
|
+
}>;
|
41
|
+
getDeviceFromUUID: (uuid: string, fromCache?: boolean) => Promise<Device | null | undefined>;
|
42
|
+
}, "pullDevicesByUUIDs" | "pullDevices" | "getDeviceFromUUID">>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export { useAlertMessagesStore } from './alertMessages';
|
2
|
+
export { useUserSessionStore } from './userSession';
|
3
|
+
export { useDevicesStore } from './devices';
|
4
|
+
export { useTwinsStore } from './twins';
|
5
|
+
export { useLabelsStore } from './labels';
|
6
|
+
export { useTwinTypesStore } from './twinTypes';
|
7
|
+
export { useMetricsStore } from './metrics';
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import type { Ref } from 'vue';
|
2
|
+
export declare const useLabelsStore: import("pinia").StoreDefinition<"labels", import("pinia")._UnwrapAll<Pick<{
|
3
|
+
labels: Ref<string[]>;
|
4
|
+
pullLabels: () => Promise<void>;
|
5
|
+
updateLabels: (labels: {
|
6
|
+
[key: string]: string;
|
7
|
+
}) => Promise<void>;
|
8
|
+
}, "labels">>, Pick<{
|
9
|
+
labels: Ref<string[]>;
|
10
|
+
pullLabels: () => Promise<void>;
|
11
|
+
updateLabels: (labels: {
|
12
|
+
[key: string]: string;
|
13
|
+
}) => Promise<void>;
|
14
|
+
}, never>, Pick<{
|
15
|
+
labels: Ref<string[]>;
|
16
|
+
pullLabels: () => Promise<void>;
|
17
|
+
updateLabels: (labels: {
|
18
|
+
[key: string]: string;
|
19
|
+
}) => Promise<void>;
|
20
|
+
}, "pullLabels" | "updateLabels">>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import type { Ref } from 'vue';
|
2
|
+
import type { Metric, MetricCounter } from '../types';
|
3
|
+
export declare const useMetricsStore: import("pinia").StoreDefinition<"metrics", import("pinia")._UnwrapAll<Pick<{
|
4
|
+
metrics: Ref<Metric[]>;
|
5
|
+
metricsCounters: Ref<MetricCounter[]>;
|
6
|
+
pullMetrics: (ifEmpty?: boolean) => Promise<void>;
|
7
|
+
pullMetricsCounters: () => Promise<void>;
|
8
|
+
getMetricCounter: globalThis.ComputedRef<(metricName: string) => MetricCounter | undefined>;
|
9
|
+
saveMetric: (metric: Metric) => Promise<boolean>;
|
10
|
+
metricsArr: globalThis.ComputedRef<{
|
11
|
+
title: string;
|
12
|
+
label: string;
|
13
|
+
value: string;
|
14
|
+
}[]>;
|
15
|
+
}, "metrics" | "metricsCounters">>, Pick<{
|
16
|
+
metrics: Ref<Metric[]>;
|
17
|
+
metricsCounters: Ref<MetricCounter[]>;
|
18
|
+
pullMetrics: (ifEmpty?: boolean) => Promise<void>;
|
19
|
+
pullMetricsCounters: () => Promise<void>;
|
20
|
+
getMetricCounter: globalThis.ComputedRef<(metricName: string) => MetricCounter | undefined>;
|
21
|
+
saveMetric: (metric: Metric) => Promise<boolean>;
|
22
|
+
metricsArr: globalThis.ComputedRef<{
|
23
|
+
title: string;
|
24
|
+
label: string;
|
25
|
+
value: string;
|
26
|
+
}[]>;
|
27
|
+
}, "getMetricCounter" | "metricsArr">, Pick<{
|
28
|
+
metrics: Ref<Metric[]>;
|
29
|
+
metricsCounters: Ref<MetricCounter[]>;
|
30
|
+
pullMetrics: (ifEmpty?: boolean) => Promise<void>;
|
31
|
+
pullMetricsCounters: () => Promise<void>;
|
32
|
+
getMetricCounter: globalThis.ComputedRef<(metricName: string) => MetricCounter | undefined>;
|
33
|
+
saveMetric: (metric: Metric) => Promise<boolean>;
|
34
|
+
metricsArr: globalThis.ComputedRef<{
|
35
|
+
title: string;
|
36
|
+
label: string;
|
37
|
+
value: string;
|
38
|
+
}[]>;
|
39
|
+
}, "pullMetrics" | "pullMetricsCounters" | "saveMetric">>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|