@dexteel/mesf-core 3.4.0 → 3.5.0

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,4 @@
1
+ export interface Area {
2
+ AssetId: number;
3
+ IsArea: boolean | null;
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface Asset {
2
+ AssetId: number;
3
+ ParentAssetId: number | null;
4
+ AssetName: string;
5
+ IsAsset: boolean;
6
+ }
@@ -0,0 +1,77 @@
1
+ import { Area } from "../models/Area";
2
+ import { Asset } from "../models/Asset";
3
+ export declare const UserReducer: import("@reduxjs/toolkit").Slice<{
4
+ userLastName: string;
5
+ userId: number | null;
6
+ defaultAreaId: number | string | null;
7
+ listAllAssets: Asset[];
8
+ listAllAssetsExtensions: Area[];
9
+ areasList: any[];
10
+ }, {
11
+ setUserId(state: import("immer/dist/internal").WritableDraft<{
12
+ userLastName: string;
13
+ userId: number | null;
14
+ defaultAreaId: number | string | null;
15
+ listAllAssets: Asset[];
16
+ listAllAssetsExtensions: Area[];
17
+ areasList: any[];
18
+ }>, { payload }: {
19
+ payload: any;
20
+ type: string;
21
+ }): void;
22
+ setUserLastName(state: import("immer/dist/internal").WritableDraft<{
23
+ userLastName: string;
24
+ userId: number | null;
25
+ defaultAreaId: number | string | null;
26
+ listAllAssets: Asset[];
27
+ listAllAssetsExtensions: Area[];
28
+ areasList: any[];
29
+ }>, { payload }: {
30
+ payload: any;
31
+ type: string;
32
+ }): void;
33
+ setDefaultAreaId(state: import("immer/dist/internal").WritableDraft<{
34
+ userLastName: string;
35
+ userId: number | null;
36
+ defaultAreaId: number | string | null;
37
+ listAllAssets: Asset[];
38
+ listAllAssetsExtensions: Area[];
39
+ areasList: any[];
40
+ }>, { payload }: {
41
+ payload: any;
42
+ type: string;
43
+ }): void;
44
+ setListAllAssets(state: import("immer/dist/internal").WritableDraft<{
45
+ userLastName: string;
46
+ userId: number | null;
47
+ defaultAreaId: number | string | null;
48
+ listAllAssets: Asset[];
49
+ listAllAssetsExtensions: Area[];
50
+ areasList: any[];
51
+ }>, { payload }: {
52
+ payload: any;
53
+ type: string;
54
+ }): void;
55
+ setListAllAssetsExtensions(state: import("immer/dist/internal").WritableDraft<{
56
+ userLastName: string;
57
+ userId: number | null;
58
+ defaultAreaId: number | string | null;
59
+ listAllAssets: Asset[];
60
+ listAllAssetsExtensions: Area[];
61
+ areasList: any[];
62
+ }>, { payload }: {
63
+ payload: any;
64
+ type: string;
65
+ }): void;
66
+ setAreasList(state: import("immer/dist/internal").WritableDraft<{
67
+ userLastName: string;
68
+ userId: number | null;
69
+ defaultAreaId: number | string | null;
70
+ listAllAssets: Asset[];
71
+ listAllAssetsExtensions: Area[];
72
+ areasList: any[];
73
+ }>, { payload }: {
74
+ payload: any;
75
+ type: string;
76
+ }): void;
77
+ }, "__">;
@@ -0,0 +1,45 @@
1
+ export declare const getUser: (UserId: number, UserName: string | null) => Promise<{
2
+ ok: boolean;
3
+ data: any;
4
+ message?: undefined;
5
+ } | {
6
+ ok: boolean;
7
+ message: any;
8
+ data?: undefined;
9
+ }>;
10
+ export declare const getUTLSettings: () => Promise<{
11
+ ok: boolean;
12
+ data: any;
13
+ message?: undefined;
14
+ } | {
15
+ ok: boolean;
16
+ message: any;
17
+ data?: undefined;
18
+ }>;
19
+ export declare const upsertDefaultAreaId: (UserId: number, DefaultAreaId: number | null) => Promise<{
20
+ ok: boolean;
21
+ data: any;
22
+ message?: undefined;
23
+ } | {
24
+ ok: boolean;
25
+ message: any;
26
+ data?: undefined;
27
+ }>;
28
+ export declare const getAssets: () => Promise<{
29
+ ok: boolean;
30
+ data: any;
31
+ message?: undefined;
32
+ } | {
33
+ ok: boolean;
34
+ message: any;
35
+ data?: undefined;
36
+ }>;
37
+ export declare const GetAssetsExtension: () => Promise<{
38
+ ok: boolean;
39
+ data: any;
40
+ message?: undefined;
41
+ } | {
42
+ ok: boolean;
43
+ message: any;
44
+ data?: undefined;
45
+ }>;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "scripts": {
8
- "prepublish": "rimraf -rf ./dist && npm run build",
8
+ "prepublishOnly": "rimraf -rf ./dist && npm run build",
9
9
  "build": "rimraf -rf ./dist && rollup -c",
10
10
  "watch": "cross-env rollup -wc",
11
11
  "start": "cross-env rollup -wc"