@ws-ui/store 1.5.15 → 1.6.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.
@@ -223,7 +223,7 @@ export declare const createNewFileAndOpen: import('@reduxjs/toolkit').AsyncThunk
223
223
  rejectedMeta?: unknown;
224
224
  }>;
225
225
  export declare const createNewNode: import('@reduxjs/toolkit').AsyncThunk<{
226
- file: IAddFolderResponse;
226
+ file: import('@ws-ui/shared').IAddFolderResponse;
227
227
  parentNode: ITreeItem;
228
228
  }, {
229
229
  fileName: string;
@@ -7,7 +7,7 @@ export type TRawData = Partial<{
7
7
  }>;
8
8
  forceLogin: boolean;
9
9
  }>;
10
- export type TPermissionOption = Pick<IPermission, 'applyTo' | 'type'>;
10
+ export type TPermissionOption = Pick<IPermission, 'applyTo' | 'type' | 'subType'>;
11
11
  export type TAction = 'read' | 'create' | 'update' | 'drop' | 'execute' | 'promote';
12
12
  export type IRolesState = ISanitized & {
13
13
  flags: ITabFlags;
@@ -28,18 +28,21 @@ export type TRole = Required<IRole>;
28
28
  export declare enum EPermissionType {
29
29
  DATACLASS = "dataclass",
30
30
  METHOD = "method",
31
- DS_METHOD = "dsMethod",
32
- DATACLASS_METHOD = "dataclassMethod",
33
- ENTITY_METHOD = "entityMethod",
34
- ENTITY_SEL_METHOD = "entityselMethod",
35
31
  ATTRIBUTE = "attribute",
36
32
  DATASTORE = "datastore",
37
33
  SINGLETON = "singleton",
38
34
  SINGLETON_METHOD = "singletonMethod"
39
35
  }
36
+ export declare enum ESubPermissionType {
37
+ DS_METHOD = "dsMethod",
38
+ DATACLASS_METHOD = "dataclassMethod",
39
+ ENTITY_METHOD = "entityMethod",
40
+ ENTITY_SEL_METHOD = "entityselMethod"
41
+ }
40
42
  export interface IPermission {
41
43
  applyTo: string;
42
44
  type: EPermissionType;
45
+ subType?: ESubPermissionType;
43
46
  read?: string | string[];
44
47
  create?: string | string[];
45
48
  update?: string | string[];
@@ -51,6 +54,7 @@ export interface IResourcesByPermission {
51
54
  [id: string]: {
52
55
  applyTo: IPermission['applyTo'];
53
56
  type: IPermission['type'];
57
+ subType?: IPermission['subType'];
54
58
  }[];
55
59
  }
56
60
  /**
@@ -70,6 +74,7 @@ export interface IResourcePermission {
70
74
  export interface IResource {
71
75
  resource: string;
72
76
  type: EPermissionType;
77
+ subType?: ESubPermissionType;
73
78
  permissions: IResourcePermission[];
74
79
  exists?: boolean;
75
80
  }
@@ -185,7 +185,9 @@ export declare const copyToClipBoard: import('@reduxjs/toolkit').ActionCreatorWi
185
185
  }, "root/removeWebformState">, resetComponentState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
186
186
  path: string;
187
187
  id: string;
188
- state: WebformState;
188
+ state?: WebformState;
189
+ lang?: string;
190
+ resetAll?: boolean;
189
191
  }, "root/resetComponentState">, addDefaultWebformState: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
190
192
  path: string;
191
193
  state: WebformState;
@@ -2,7 +2,12 @@ import { Dispatch } from '@reduxjs/toolkit';
2
2
  import { IFileInfoResponse, IMultilineMessage, INodeInfo, ITab, WebformState } from '@ws-ui/shared';
3
3
  import { AppState } from '..';
4
4
  import { ClassFileTypes, TActionRenameDataSource } from './types';
5
- export declare const fetchFiles: import('@reduxjs/toolkit').AsyncThunk<any, void, {
5
+ export declare const fetchFiles: import('@reduxjs/toolkit').AsyncThunk<{
6
+ name: string;
7
+ type: import('@ws-ui/shared').FileFolderTypeWithContent;
8
+ date: string;
9
+ path: string;
10
+ }[], void, {
6
11
  state?: unknown;
7
12
  dispatch?: Dispatch;
8
13
  extra?: unknown;
@@ -32,7 +32,9 @@ export type TActionUpdateStateConditionDs = PayloadAction<{
32
32
  export type TResetComponentState = PayloadAction<{
33
33
  path: string;
34
34
  id: string;
35
- state: WebformState;
35
+ state?: WebformState;
36
+ lang?: string;
37
+ resetAll?: boolean;
36
38
  }>;
37
39
  export type TActionSetDefaultWebformStates = PayloadAction<{
38
40
  path: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ws-ui/store",
3
- "version": "1.5.15",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@reduxjs/toolkit": "^1.7.1",
24
- "@ws-ui/icons": "1.5.15",
25
- "@ws-ui/shared": "1.5.15",
24
+ "@ws-ui/icons": "1.6.0",
25
+ "@ws-ui/shared": "1.6.0",
26
26
  "lodash": "^4.17.21",
27
27
  "minimatch": "^10.0.1",
28
28
  "react": "^17.0.2",