@be-link/ecommerce-backend-bff-service-node-sdk 0.1.44 → 0.1.46
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/cjs/bff/modules/pandora/dataJob/service.d.ts +25 -0
- package/cjs/bff/modules/pandora/dataJob/service.js +35 -0
- package/cjs/bff/modules/pandora/dataJob/types.d.ts +105 -0
- package/esm/bff/modules/pandora/dataJob/service.d.ts +25 -0
- package/esm/bff/modules/pandora/dataJob/service.mjs +35 -0
- package/esm/bff/modules/pandora/dataJob/types.d.ts +105 -0
- package/package.json +2 -2
|
@@ -43,4 +43,29 @@ export declare class DataJobService extends BaseService implements DataJobServic
|
|
|
43
43
|
* @returns Promise,解析为标准响应格式
|
|
44
44
|
*/
|
|
45
45
|
syncOperationRecordsToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
46
|
+
/**
|
|
47
|
+
* 从飞书表格批量导入店长数据
|
|
48
|
+
* @returns Promise,解析为标准响应格式
|
|
49
|
+
*/
|
|
50
|
+
importStoreManagersFromFeishu(request: DataJobServiceTypes.Request.importStoreManagersFromFeishu): Promise<StandardResponse<DataJobServiceTypes.Response.importStoreManagersFromFeishu>>;
|
|
51
|
+
/**
|
|
52
|
+
* 从飞书表格批量导入店员数据
|
|
53
|
+
* @returns Promise,解析为标准响应格式
|
|
54
|
+
*/
|
|
55
|
+
importStoreClerksFromFeishu(request: DataJobServiceTypes.Request.importStoreClerksFromFeishu): Promise<StandardResponse<DataJobServiceTypes.Response.importStoreClerksFromFeishu>>;
|
|
56
|
+
/**
|
|
57
|
+
* 从飞书表格批量导入BD数据
|
|
58
|
+
* @returns Promise,解析为标准响应格式
|
|
59
|
+
*/
|
|
60
|
+
importBDsFromFeishu(request: DataJobServiceTypes.Request.importBDsFromFeishu): Promise<StandardResponse<DataJobServiceTypes.Response.importBDsFromFeishu>>;
|
|
61
|
+
/**
|
|
62
|
+
* 从飞书表格批量导入BDM数据
|
|
63
|
+
* @returns Promise,解析为标准响应格式
|
|
64
|
+
*/
|
|
65
|
+
importBDMsFromFeishu(request: DataJobServiceTypes.Request.importBDMsFromFeishu): Promise<StandardResponse<DataJobServiceTypes.Response.importBDMsFromFeishu>>;
|
|
66
|
+
/**
|
|
67
|
+
* 构建店长/店员缓存
|
|
68
|
+
* @returns Promise,解析为标准响应格式
|
|
69
|
+
*/
|
|
70
|
+
buildStoreStaffCache(): Promise<StandardResponse<DataJobServiceTypes.Response.buildStoreStaffCache>>;
|
|
46
71
|
}
|
|
@@ -64,5 +64,40 @@ class DataJobService extends BaseService_1.default {
|
|
|
64
64
|
syncOperationRecordsToOld() {
|
|
65
65
|
return this.request(this.syncOperationRecordsToOld, {});
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* 从飞书表格批量导入店长数据
|
|
69
|
+
* @returns Promise,解析为标准响应格式
|
|
70
|
+
*/
|
|
71
|
+
importStoreManagersFromFeishu(request) {
|
|
72
|
+
return this.request(this.importStoreManagersFromFeishu, request);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* 从飞书表格批量导入店员数据
|
|
76
|
+
* @returns Promise,解析为标准响应格式
|
|
77
|
+
*/
|
|
78
|
+
importStoreClerksFromFeishu(request) {
|
|
79
|
+
return this.request(this.importStoreClerksFromFeishu, request);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 从飞书表格批量导入BD数据
|
|
83
|
+
* @returns Promise,解析为标准响应格式
|
|
84
|
+
*/
|
|
85
|
+
importBDsFromFeishu(request) {
|
|
86
|
+
return this.request(this.importBDsFromFeishu, request);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* 从飞书表格批量导入BDM数据
|
|
90
|
+
* @returns Promise,解析为标准响应格式
|
|
91
|
+
*/
|
|
92
|
+
importBDMsFromFeishu(request) {
|
|
93
|
+
return this.request(this.importBDMsFromFeishu, request);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* 构建店长/店员缓存
|
|
97
|
+
* @returns Promise,解析为标准响应格式
|
|
98
|
+
*/
|
|
99
|
+
buildStoreStaffCache() {
|
|
100
|
+
return this.request(this.buildStoreStaffCache, {});
|
|
101
|
+
}
|
|
67
102
|
}
|
|
68
103
|
exports.DataJobService = DataJobService;
|
|
@@ -11,6 +11,39 @@ export declare namespace DataJobServiceTypes {
|
|
|
11
11
|
*/
|
|
12
12
|
interface syncToOld {
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* 从飞书表格批量导入店长数据
|
|
16
|
+
*/
|
|
17
|
+
interface importStoreManagersFromFeishu {
|
|
18
|
+
objToken: string;
|
|
19
|
+
tableId: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 从飞书表格批量导入店员数据
|
|
23
|
+
*/
|
|
24
|
+
interface importStoreClerksFromFeishu {
|
|
25
|
+
objToken: string;
|
|
26
|
+
tableId: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 从飞书表格批量导入BD数据
|
|
30
|
+
*/
|
|
31
|
+
interface importBDsFromFeishu {
|
|
32
|
+
objToken: string;
|
|
33
|
+
tableId: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 从飞书表格批量导入BDM数据
|
|
37
|
+
*/
|
|
38
|
+
interface importBDMsFromFeishu {
|
|
39
|
+
objToken: string;
|
|
40
|
+
tableId: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 构建店长/店员缓存(不需要参数)
|
|
44
|
+
*/
|
|
45
|
+
interface buildStoreStaffCache {
|
|
46
|
+
}
|
|
14
47
|
}
|
|
15
48
|
namespace Response {
|
|
16
49
|
/**
|
|
@@ -27,6 +60,58 @@ export declare namespace DataJobServiceTypes {
|
|
|
27
60
|
success: boolean;
|
|
28
61
|
message?: string;
|
|
29
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* 从飞书表格批量导入店长数据响应
|
|
65
|
+
*/
|
|
66
|
+
interface importStoreManagersFromFeishu {
|
|
67
|
+
success: boolean;
|
|
68
|
+
message: string;
|
|
69
|
+
totalCount: number;
|
|
70
|
+
createdCount: number;
|
|
71
|
+
existingCount: number;
|
|
72
|
+
skippedCount: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* 从飞书表格批量导入店员数据响应
|
|
76
|
+
*/
|
|
77
|
+
interface importStoreClerksFromFeishu {
|
|
78
|
+
success: boolean;
|
|
79
|
+
message: string;
|
|
80
|
+
totalCount: number;
|
|
81
|
+
createdCount: number;
|
|
82
|
+
existingCount: number;
|
|
83
|
+
skippedCount: number;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 从飞书表格批量导入BD数据响应
|
|
87
|
+
*/
|
|
88
|
+
interface importBDsFromFeishu {
|
|
89
|
+
success: boolean;
|
|
90
|
+
message: string;
|
|
91
|
+
totalCount: number;
|
|
92
|
+
createdCount: number;
|
|
93
|
+
existingCount: number;
|
|
94
|
+
skippedCount: number;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* 从飞书表格批量导入BDM数据响应
|
|
98
|
+
*/
|
|
99
|
+
interface importBDMsFromFeishu {
|
|
100
|
+
success: boolean;
|
|
101
|
+
message: string;
|
|
102
|
+
totalCount: number;
|
|
103
|
+
createdCount: number;
|
|
104
|
+
existingCount: number;
|
|
105
|
+
skippedCount: number;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 构建店长/店员缓存响应
|
|
109
|
+
*/
|
|
110
|
+
interface buildStoreStaffCache {
|
|
111
|
+
success: boolean;
|
|
112
|
+
message: string;
|
|
113
|
+
cachedCount: number;
|
|
114
|
+
}
|
|
30
115
|
}
|
|
31
116
|
/**
|
|
32
117
|
* DataJob Controller 接口定义
|
|
@@ -60,5 +145,25 @@ export declare namespace DataJobServiceTypes {
|
|
|
60
145
|
* 同步操作记录到旧系统
|
|
61
146
|
*/
|
|
62
147
|
syncOperationRecordsToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
148
|
+
/**
|
|
149
|
+
* 从飞书表格批量导入店长数据
|
|
150
|
+
*/
|
|
151
|
+
importStoreManagersFromFeishu(request: Request.importStoreManagersFromFeishu): Promise<StandardResponse<Response.importStoreManagersFromFeishu>>;
|
|
152
|
+
/**
|
|
153
|
+
* 从飞书表格批量导入店员数据
|
|
154
|
+
*/
|
|
155
|
+
importStoreClerksFromFeishu(request: Request.importStoreClerksFromFeishu): Promise<StandardResponse<Response.importStoreClerksFromFeishu>>;
|
|
156
|
+
/**
|
|
157
|
+
* 从飞书表格批量导入BD数据
|
|
158
|
+
*/
|
|
159
|
+
importBDsFromFeishu(request: Request.importBDsFromFeishu): Promise<StandardResponse<Response.importBDsFromFeishu>>;
|
|
160
|
+
/**
|
|
161
|
+
* 从飞书表格批量导入BDM数据
|
|
162
|
+
*/
|
|
163
|
+
importBDMsFromFeishu(request: Request.importBDMsFromFeishu): Promise<StandardResponse<Response.importBDMsFromFeishu>>;
|
|
164
|
+
/**
|
|
165
|
+
* 构建店长/店员缓存
|
|
166
|
+
*/
|
|
167
|
+
buildStoreStaffCache(): Promise<StandardResponse<Response.buildStoreStaffCache>>;
|
|
63
168
|
}
|
|
64
169
|
}
|
|
@@ -43,4 +43,29 @@ export declare class DataJobService extends BaseService implements DataJobServic
|
|
|
43
43
|
* @returns Promise,解析为标准响应格式
|
|
44
44
|
*/
|
|
45
45
|
syncOperationRecordsToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
46
|
+
/**
|
|
47
|
+
* 从飞书表格批量导入店长数据
|
|
48
|
+
* @returns Promise,解析为标准响应格式
|
|
49
|
+
*/
|
|
50
|
+
importStoreManagersFromFeishu(request: DataJobServiceTypes.Request.importStoreManagersFromFeishu): Promise<StandardResponse<DataJobServiceTypes.Response.importStoreManagersFromFeishu>>;
|
|
51
|
+
/**
|
|
52
|
+
* 从飞书表格批量导入店员数据
|
|
53
|
+
* @returns Promise,解析为标准响应格式
|
|
54
|
+
*/
|
|
55
|
+
importStoreClerksFromFeishu(request: DataJobServiceTypes.Request.importStoreClerksFromFeishu): Promise<StandardResponse<DataJobServiceTypes.Response.importStoreClerksFromFeishu>>;
|
|
56
|
+
/**
|
|
57
|
+
* 从飞书表格批量导入BD数据
|
|
58
|
+
* @returns Promise,解析为标准响应格式
|
|
59
|
+
*/
|
|
60
|
+
importBDsFromFeishu(request: DataJobServiceTypes.Request.importBDsFromFeishu): Promise<StandardResponse<DataJobServiceTypes.Response.importBDsFromFeishu>>;
|
|
61
|
+
/**
|
|
62
|
+
* 从飞书表格批量导入BDM数据
|
|
63
|
+
* @returns Promise,解析为标准响应格式
|
|
64
|
+
*/
|
|
65
|
+
importBDMsFromFeishu(request: DataJobServiceTypes.Request.importBDMsFromFeishu): Promise<StandardResponse<DataJobServiceTypes.Response.importBDMsFromFeishu>>;
|
|
66
|
+
/**
|
|
67
|
+
* 构建店长/店员缓存
|
|
68
|
+
* @returns Promise,解析为标准响应格式
|
|
69
|
+
*/
|
|
70
|
+
buildStoreStaffCache(): Promise<StandardResponse<DataJobServiceTypes.Response.buildStoreStaffCache>>;
|
|
46
71
|
}
|
|
@@ -58,4 +58,39 @@ export class DataJobService extends BaseService {
|
|
|
58
58
|
syncOperationRecordsToOld() {
|
|
59
59
|
return this.request(this.syncOperationRecordsToOld, {});
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* 从飞书表格批量导入店长数据
|
|
63
|
+
* @returns Promise,解析为标准响应格式
|
|
64
|
+
*/
|
|
65
|
+
importStoreManagersFromFeishu(request) {
|
|
66
|
+
return this.request(this.importStoreManagersFromFeishu, request);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* 从飞书表格批量导入店员数据
|
|
70
|
+
* @returns Promise,解析为标准响应格式
|
|
71
|
+
*/
|
|
72
|
+
importStoreClerksFromFeishu(request) {
|
|
73
|
+
return this.request(this.importStoreClerksFromFeishu, request);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 从飞书表格批量导入BD数据
|
|
77
|
+
* @returns Promise,解析为标准响应格式
|
|
78
|
+
*/
|
|
79
|
+
importBDsFromFeishu(request) {
|
|
80
|
+
return this.request(this.importBDsFromFeishu, request);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* 从飞书表格批量导入BDM数据
|
|
84
|
+
* @returns Promise,解析为标准响应格式
|
|
85
|
+
*/
|
|
86
|
+
importBDMsFromFeishu(request) {
|
|
87
|
+
return this.request(this.importBDMsFromFeishu, request);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* 构建店长/店员缓存
|
|
91
|
+
* @returns Promise,解析为标准响应格式
|
|
92
|
+
*/
|
|
93
|
+
buildStoreStaffCache() {
|
|
94
|
+
return this.request(this.buildStoreStaffCache, {});
|
|
95
|
+
}
|
|
61
96
|
}
|
|
@@ -11,6 +11,39 @@ export declare namespace DataJobServiceTypes {
|
|
|
11
11
|
*/
|
|
12
12
|
interface syncToOld {
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* 从飞书表格批量导入店长数据
|
|
16
|
+
*/
|
|
17
|
+
interface importStoreManagersFromFeishu {
|
|
18
|
+
objToken: string;
|
|
19
|
+
tableId: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 从飞书表格批量导入店员数据
|
|
23
|
+
*/
|
|
24
|
+
interface importStoreClerksFromFeishu {
|
|
25
|
+
objToken: string;
|
|
26
|
+
tableId: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 从飞书表格批量导入BD数据
|
|
30
|
+
*/
|
|
31
|
+
interface importBDsFromFeishu {
|
|
32
|
+
objToken: string;
|
|
33
|
+
tableId: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 从飞书表格批量导入BDM数据
|
|
37
|
+
*/
|
|
38
|
+
interface importBDMsFromFeishu {
|
|
39
|
+
objToken: string;
|
|
40
|
+
tableId: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 构建店长/店员缓存(不需要参数)
|
|
44
|
+
*/
|
|
45
|
+
interface buildStoreStaffCache {
|
|
46
|
+
}
|
|
14
47
|
}
|
|
15
48
|
namespace Response {
|
|
16
49
|
/**
|
|
@@ -27,6 +60,58 @@ export declare namespace DataJobServiceTypes {
|
|
|
27
60
|
success: boolean;
|
|
28
61
|
message?: string;
|
|
29
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* 从飞书表格批量导入店长数据响应
|
|
65
|
+
*/
|
|
66
|
+
interface importStoreManagersFromFeishu {
|
|
67
|
+
success: boolean;
|
|
68
|
+
message: string;
|
|
69
|
+
totalCount: number;
|
|
70
|
+
createdCount: number;
|
|
71
|
+
existingCount: number;
|
|
72
|
+
skippedCount: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* 从飞书表格批量导入店员数据响应
|
|
76
|
+
*/
|
|
77
|
+
interface importStoreClerksFromFeishu {
|
|
78
|
+
success: boolean;
|
|
79
|
+
message: string;
|
|
80
|
+
totalCount: number;
|
|
81
|
+
createdCount: number;
|
|
82
|
+
existingCount: number;
|
|
83
|
+
skippedCount: number;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 从飞书表格批量导入BD数据响应
|
|
87
|
+
*/
|
|
88
|
+
interface importBDsFromFeishu {
|
|
89
|
+
success: boolean;
|
|
90
|
+
message: string;
|
|
91
|
+
totalCount: number;
|
|
92
|
+
createdCount: number;
|
|
93
|
+
existingCount: number;
|
|
94
|
+
skippedCount: number;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* 从飞书表格批量导入BDM数据响应
|
|
98
|
+
*/
|
|
99
|
+
interface importBDMsFromFeishu {
|
|
100
|
+
success: boolean;
|
|
101
|
+
message: string;
|
|
102
|
+
totalCount: number;
|
|
103
|
+
createdCount: number;
|
|
104
|
+
existingCount: number;
|
|
105
|
+
skippedCount: number;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 构建店长/店员缓存响应
|
|
109
|
+
*/
|
|
110
|
+
interface buildStoreStaffCache {
|
|
111
|
+
success: boolean;
|
|
112
|
+
message: string;
|
|
113
|
+
cachedCount: number;
|
|
114
|
+
}
|
|
30
115
|
}
|
|
31
116
|
/**
|
|
32
117
|
* DataJob Controller 接口定义
|
|
@@ -60,5 +145,25 @@ export declare namespace DataJobServiceTypes {
|
|
|
60
145
|
* 同步操作记录到旧系统
|
|
61
146
|
*/
|
|
62
147
|
syncOperationRecordsToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
148
|
+
/**
|
|
149
|
+
* 从飞书表格批量导入店长数据
|
|
150
|
+
*/
|
|
151
|
+
importStoreManagersFromFeishu(request: Request.importStoreManagersFromFeishu): Promise<StandardResponse<Response.importStoreManagersFromFeishu>>;
|
|
152
|
+
/**
|
|
153
|
+
* 从飞书表格批量导入店员数据
|
|
154
|
+
*/
|
|
155
|
+
importStoreClerksFromFeishu(request: Request.importStoreClerksFromFeishu): Promise<StandardResponse<Response.importStoreClerksFromFeishu>>;
|
|
156
|
+
/**
|
|
157
|
+
* 从飞书表格批量导入BD数据
|
|
158
|
+
*/
|
|
159
|
+
importBDsFromFeishu(request: Request.importBDsFromFeishu): Promise<StandardResponse<Response.importBDsFromFeishu>>;
|
|
160
|
+
/**
|
|
161
|
+
* 从飞书表格批量导入BDM数据
|
|
162
|
+
*/
|
|
163
|
+
importBDMsFromFeishu(request: Request.importBDMsFromFeishu): Promise<StandardResponse<Response.importBDMsFromFeishu>>;
|
|
164
|
+
/**
|
|
165
|
+
* 构建店长/店员缓存
|
|
166
|
+
*/
|
|
167
|
+
buildStoreStaffCache(): Promise<StandardResponse<Response.buildStoreStaffCache>>;
|
|
63
168
|
}
|
|
64
169
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@be-link/ecommerce-backend-bff-service-node-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.46",
|
|
4
4
|
"description": "EcommerceBackendBffService Node.js SDK",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./cjs/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@be-link/ecommerce-trade-service-node-sdk": "^0.1.25",
|
|
28
28
|
"@be-link/ecommerce-backend-user-service-node-sdk": "^0.1.11",
|
|
29
29
|
"@be-link/ecommerce-volcengine-open-api-sdk": "^1.0.22",
|
|
30
|
-
"@be-link/ecommerce-client-backend-service-node-sdk": "^0.1.
|
|
30
|
+
"@be-link/ecommerce-client-backend-service-node-sdk": "^0.1.18",
|
|
31
31
|
"@be-link/ecommerce-tag-service-node-sdk": "^0.1.1",
|
|
32
32
|
"@be-link/ecommerce-store-service-node-sdk": "^0.1.8",
|
|
33
33
|
"@be-link/ecommerce-promotion-service-node-sdk": "^0.1.3",
|