@steedos/data-import 2.2.52-beta.7 → 2.2.53-beta.3

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/LICENSE.txt CHANGED
@@ -6,14 +6,11 @@ To determine under which license you may use a file from the Steedos source code
6
6
  please resort to the header of that file.
7
7
 
8
8
  If the file has no header, the following rules apply
9
- 1. project templates are licensed under MIT, see License.MIT.txt
10
- 2. enterprise features are licensed under Steedos Enterprise Terms, see License.enterprise.txt
11
- 3. source code that is neither (1) nor (2) is licensed under AGPL, see License.AGPL.txt
9
+ 1. enterprise features are licensed under Steedos Enterprise Terms, see License.enterprise.txt
10
+ 2. source code that is neither (1) is licensed under MIT, see https://opensource.org/licenses/MIT
12
11
 
13
12
  On request, licenses under different terms are available.
14
13
 
15
- Project templates can be found in the folders steedos-projects/
16
-
17
14
  Source code of enterprise features are files that
18
15
  * are in folders named "ee" or start with "ee_", or in subfolders of such folders.
19
16
  * contain the strings "ee_" in its filename name.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ *
3
+ * @param importObjId
4
+ * @param userSession
5
+ * @param fileId 如果指定了fileId,则使用此id; 否则使用importObject的file
6
+ * @returns
7
+ */
8
+ export declare function importWithCmsFile(importObjId: any, userSession: any, importObjectHistoryId: any, fileId: any): Promise<{
9
+ status: string;
10
+ msg: string;
11
+ queueImportId: any;
12
+ importObjectHistoryId: any;
13
+ }>;
14
+ export declare function importWithExcelFile(file: any, options: any): Promise<void>;
15
+ export declare function filetoRecords(file: any, options: any): Promise<any>;
16
+ export declare function importWithRecords(recordDatas: any, options: any): Promise<{
17
+ errorList: any[];
18
+ total_count: any;
19
+ success_count: any;
20
+ failure_count: any;
21
+ }>;
package/package.json CHANGED
@@ -1,28 +1,24 @@
1
1
  {
2
2
  "name": "@steedos/data-import",
3
- "version": "2.2.52-beta.7",
3
+ "version": "2.2.53-beta.3",
4
4
  "main": "lib/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
7
7
  "build": "tsc"
8
8
  },
9
9
  "dependencies": {
10
- "@steedos/core": "2.2.52-beta.7",
11
- "@steedos/objectql": "2.2.52-beta.7",
10
+ "@steedos/core": "2.2.53-beta.3",
11
+ "@steedos/objectql": "2.2.53-beta.3",
12
12
  "dotenv-flow": "^3.1.0",
13
+ "lodash": "^4.17.21",
13
14
  "node-xlsx": "^0.16.1"
14
15
  },
15
16
  "devDependencies": {
16
- "mocha": "^5",
17
- "nodemon": "^2.0.2",
18
- "ts-node": "^8.0.3",
19
- "typescript": "^3.9.3",
20
- "uglify-es": "^3.3.9",
21
- "uglify-js": "^3.10.0"
17
+ "typescript": "4.6.3"
22
18
  },
23
19
  "private": false,
24
20
  "publishConfig": {
25
21
  "access": "public"
26
22
  },
27
- "gitHead": "ecf8b1cc86813d63697cca572cde7a4d996643d6"
23
+ "gitHead": "5782f1171133c05cce158adef71e527d970ef50e"
28
24
  }
@@ -13,7 +13,7 @@ public:
13
13
  folder: "./storage"
14
14
  plugins:
15
15
  - "@steedos/accounts"
16
- - "@steedos/plugin-enterprise"
16
+ - "@steedos/plugin-company"
17
17
  tenant:
18
18
  enable_register: true
19
19
  enable_forget_password: false