@ws-ui/store 0.2.17 → 0.2.18

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.
@@ -94,18 +94,23 @@ export declare const tryEditMethod: import("@reduxjs/toolkit").AsyncThunk<ITab<a
94
94
  }, {
95
95
  state: AppState;
96
96
  }>;
97
- export type TCreateModelFilesPayload = {
97
+ type TCreateModelFilesPayloadDataclass = {
98
98
  type: 'dataclass';
99
99
  className: string;
100
100
  collectionName: string;
101
101
  toCreate?: ClassFileTypes;
102
- } | {
102
+ expand?: boolean;
103
+ };
104
+ export type TCreateModelFilesPayload = TCreateModelFilesPayloadDataclass | {
103
105
  type: 'model';
104
106
  };
105
107
  export declare const createModelFiles: import("@reduxjs/toolkit").AsyncThunk<void, TCreateModelFilesPayload, {
106
108
  state: AppState;
107
109
  }>;
108
- export declare const fetchFolderContent: import("@reduxjs/toolkit").AsyncThunk<ITreeItem[], string, {
110
+ export declare const fetchFolderContent: import("@reduxjs/toolkit").AsyncThunk<ITreeItem[], string | {
111
+ nodePath: string;
112
+ expandDataclass?: string | undefined;
113
+ }, {
109
114
  state: AppState;
110
115
  }>;
111
116
  export declare const fetchFolderContentWithoutExpanding: import("@reduxjs/toolkit").AsyncThunk<ITreeItem[], string, {}>;
@@ -15,5 +15,5 @@ type TGetContentReturnValue = {
15
15
  };
16
16
  };
17
17
  export declare const getContent: () => TGetContentReturnValue;
18
- export declare const createClassesFolderContent: (state: AppState, children: INodeInfo[]) => Promise<ITreeItem[]>;
18
+ export declare const createClassesFolderContent: (state: AppState, children: INodeInfo[], expandDataclass?: string) => Promise<ITreeItem[]>;
19
19
  export {};
@@ -99,6 +99,7 @@ export declare const tryInjectMethod: import("@reduxjs/toolkit").AsyncThunk<ITab
99
99
  name: string;
100
100
  type?: ClassFileTypes | undefined;
101
101
  dataclass?: string | undefined;
102
+ expand?: boolean | undefined;
102
103
  }, {
103
104
  state: AppState;
104
105
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ws-ui/store",
3
3
  "private": false,
4
- "version": "0.2.17",
4
+ "version": "0.2.18",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",