@steedos/data-import 2.2.52 → 2.2.53-beta.2

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 @@
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,15 +1,16 @@
1
1
  {
2
2
  "name": "@steedos/data-import",
3
- "version": "2.2.52",
3
+ "version": "2.2.53-beta.2",
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",
11
- "@steedos/objectql": "2.2.52",
10
+ "@steedos/core": "2.2.53-beta.2",
11
+ "@steedos/objectql": "2.2.53-beta.2",
12
12
  "dotenv-flow": "^3.1.0",
13
+ "lodash": "^4.17.21",
13
14
  "node-xlsx": "^0.16.1"
14
15
  },
15
16
  "devDependencies": {
@@ -19,5 +20,5 @@
19
20
  "publishConfig": {
20
21
  "access": "public"
21
22
  },
22
- "gitHead": "1447c9ca4fb57a49233704f50a7d757aff0c5027"
23
+ "gitHead": "d6d2230d72af49a72fc546093b553463cd2f0e9d"
23
24
  }