@be-link/ecommerce-backend-bff-service-node-sdk 0.1.42 → 0.1.43
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/miniprogram/franchisee/service.d.ts +1 -0
- package/cjs/bff/modules/miniprogram/franchisee/service.js +3 -0
- package/cjs/bff/modules/miniprogram/franchisee/types.d.ts +24 -0
- package/cjs/bff/modules/pandora/dataJob/service.d.ts +46 -0
- package/cjs/bff/modules/pandora/dataJob/service.js +68 -0
- package/cjs/bff/modules/pandora/dataJob/types.d.ts +64 -0
- package/cjs/bff/modules/pandora/dataJob/types.js +2 -0
- package/cjs/bff/modules/pandora/product/types.d.ts +2 -0
- package/cjs/bff/modules/pandora/store/types.d.ts +6 -6
- package/cjs/index.d.ts +6 -0
- package/cjs/index.js +2 -0
- package/esm/bff/modules/miniprogram/franchisee/service.d.ts +1 -0
- package/esm/bff/modules/miniprogram/franchisee/service.mjs +3 -0
- package/esm/bff/modules/miniprogram/franchisee/types.d.ts +24 -0
- package/esm/bff/modules/pandora/dataJob/service.d.ts +46 -0
- package/esm/bff/modules/pandora/dataJob/service.mjs +61 -0
- package/esm/bff/modules/pandora/dataJob/types.d.ts +64 -0
- package/esm/bff/modules/pandora/dataJob/types.mjs +1 -0
- package/esm/bff/modules/pandora/product/types.d.ts +2 -0
- package/esm/bff/modules/pandora/store/types.d.ts +6 -6
- package/esm/index.d.ts +6 -0
- package/esm/index.mjs +2 -0
- package/package.json +3 -3
|
@@ -9,4 +9,5 @@ import type { StandardResponse } from '../../../../types';
|
|
|
9
9
|
export declare class MiniprogramFranchiseeService extends BaseService implements Service.FranchiseeController {
|
|
10
10
|
protected prefixUrl: string;
|
|
11
11
|
getFranchiseeIdByUserId(request: Service.Request.getFranchiseeIdByUserId): Promise<StandardResponse<Service.Response.getFranchiseeIdByUserId>>;
|
|
12
|
+
checkAndUpdateAccountInfo(request: Service.Request.checkAndUpdateAccountInfo): Promise<StandardResponse<Service.Response.checkAndUpdateAccountInfo>>;
|
|
12
13
|
}
|
|
@@ -18,5 +18,8 @@ class MiniprogramFranchiseeService extends BaseService_1.default {
|
|
|
18
18
|
getFranchiseeIdByUserId(request) {
|
|
19
19
|
return this.request(this.getFranchiseeIdByUserId, request);
|
|
20
20
|
}
|
|
21
|
+
checkAndUpdateAccountInfo(request) {
|
|
22
|
+
return this.request(this.checkAndUpdateAccountInfo, request);
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
exports.MiniprogramFranchiseeService = MiniprogramFranchiseeService;
|
|
@@ -7,6 +7,23 @@ export declare namespace MiniprogramFranchiseeService {
|
|
|
7
7
|
interface getFranchiseeIdByUserId {
|
|
8
8
|
userId: string;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* 校验并更新加盟商账户信息
|
|
12
|
+
*/
|
|
13
|
+
interface checkAndUpdateAccountInfo {
|
|
14
|
+
id: string;
|
|
15
|
+
enterpriseName?: string;
|
|
16
|
+
enterpriseType?: string;
|
|
17
|
+
legalRepresentative?: string;
|
|
18
|
+
businessLicense?: string;
|
|
19
|
+
supplementalAgreement?: string[];
|
|
20
|
+
accountName?: string;
|
|
21
|
+
accountNumber?: string;
|
|
22
|
+
bankName?: string;
|
|
23
|
+
bankBranchName?: string;
|
|
24
|
+
contactMobile?: string;
|
|
25
|
+
lastEditor?: string;
|
|
26
|
+
}
|
|
10
27
|
}
|
|
11
28
|
namespace Response {
|
|
12
29
|
/**
|
|
@@ -15,11 +32,18 @@ export declare namespace MiniprogramFranchiseeService {
|
|
|
15
32
|
interface getFranchiseeIdByUserId {
|
|
16
33
|
id: string;
|
|
17
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* 校验并更新加盟商账户信息响应
|
|
37
|
+
*/
|
|
38
|
+
interface checkAndUpdateAccountInfo {
|
|
39
|
+
success: boolean;
|
|
40
|
+
}
|
|
18
41
|
}
|
|
19
42
|
/**
|
|
20
43
|
* Franchisee Controller 接口定义
|
|
21
44
|
*/
|
|
22
45
|
interface FranchiseeController {
|
|
23
46
|
getFranchiseeIdByUserId(request: Request.getFranchiseeIdByUserId): Promise<StandardResponse<Response.getFranchiseeIdByUserId>>;
|
|
47
|
+
checkAndUpdateAccountInfo(request: Request.checkAndUpdateAccountInfo): Promise<StandardResponse<Response.checkAndUpdateAccountInfo>>;
|
|
24
48
|
}
|
|
25
49
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DataJobServiceTypes } from './types';
|
|
2
|
+
import BaseService from '../../BaseService';
|
|
3
|
+
import type { StandardResponse } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* DataJobService - Pandora DataJob 服务模块
|
|
6
|
+
* 提供数据迁移和同步相关的 API 方法
|
|
7
|
+
* 平台: pandora
|
|
8
|
+
*/
|
|
9
|
+
export declare class DataJobService extends BaseService implements DataJobServiceTypes.DataJobController {
|
|
10
|
+
protected prefixUrl: string;
|
|
11
|
+
/**
|
|
12
|
+
* 迁移数据
|
|
13
|
+
* @returns Promise,解析为标准响应格式
|
|
14
|
+
*/
|
|
15
|
+
migrateData(): Promise<StandardResponse<DataJobServiceTypes.Response.migrateData>>;
|
|
16
|
+
/**
|
|
17
|
+
* 同步用户到旧系统
|
|
18
|
+
* @returns Promise,解析为标准响应格式
|
|
19
|
+
*/
|
|
20
|
+
syncUsersToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
21
|
+
/**
|
|
22
|
+
* 同步角色到旧系统
|
|
23
|
+
* @returns Promise,解析为标准响应格式
|
|
24
|
+
*/
|
|
25
|
+
syncRolesToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
26
|
+
/**
|
|
27
|
+
* 同步规则到旧系统
|
|
28
|
+
* @returns Promise,解析为标准响应格式
|
|
29
|
+
*/
|
|
30
|
+
syncRulesToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
31
|
+
/**
|
|
32
|
+
* 同步加盟商到旧系统
|
|
33
|
+
* @returns Promise,解析为标准响应格式
|
|
34
|
+
*/
|
|
35
|
+
syncFranchiseesToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
36
|
+
/**
|
|
37
|
+
* 同步结算关系拉链到旧系统
|
|
38
|
+
* @returns Promise,解析为标准响应格式
|
|
39
|
+
*/
|
|
40
|
+
syncSettleRelationZippersToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
41
|
+
/**
|
|
42
|
+
* 同步操作记录到旧系统
|
|
43
|
+
* @returns Promise,解析为标准响应格式
|
|
44
|
+
*/
|
|
45
|
+
syncOperationRecordsToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.DataJobService = void 0;
|
|
7
|
+
const BaseService_1 = __importDefault(require("../../BaseService"));
|
|
8
|
+
/**
|
|
9
|
+
* DataJobService - Pandora DataJob 服务模块
|
|
10
|
+
* 提供数据迁移和同步相关的 API 方法
|
|
11
|
+
* 平台: pandora
|
|
12
|
+
*/
|
|
13
|
+
class DataJobService extends BaseService_1.default {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.prefixUrl = '/pandora/data-job';
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 迁移数据
|
|
20
|
+
* @returns Promise,解析为标准响应格式
|
|
21
|
+
*/
|
|
22
|
+
migrateData() {
|
|
23
|
+
return this.request(this.migrateData, {});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 同步用户到旧系统
|
|
27
|
+
* @returns Promise,解析为标准响应格式
|
|
28
|
+
*/
|
|
29
|
+
syncUsersToOld() {
|
|
30
|
+
return this.request(this.syncUsersToOld, {});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 同步角色到旧系统
|
|
34
|
+
* @returns Promise,解析为标准响应格式
|
|
35
|
+
*/
|
|
36
|
+
syncRolesToOld() {
|
|
37
|
+
return this.request(this.syncRolesToOld, {});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 同步规则到旧系统
|
|
41
|
+
* @returns Promise,解析为标准响应格式
|
|
42
|
+
*/
|
|
43
|
+
syncRulesToOld() {
|
|
44
|
+
return this.request(this.syncRulesToOld, {});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 同步加盟商到旧系统
|
|
48
|
+
* @returns Promise,解析为标准响应格式
|
|
49
|
+
*/
|
|
50
|
+
syncFranchiseesToOld() {
|
|
51
|
+
return this.request(this.syncFranchiseesToOld, {});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 同步结算关系拉链到旧系统
|
|
55
|
+
* @returns Promise,解析为标准响应格式
|
|
56
|
+
*/
|
|
57
|
+
syncSettleRelationZippersToOld() {
|
|
58
|
+
return this.request(this.syncSettleRelationZippersToOld, {});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 同步操作记录到旧系统
|
|
62
|
+
* @returns Promise,解析为标准响应格式
|
|
63
|
+
*/
|
|
64
|
+
syncOperationRecordsToOld() {
|
|
65
|
+
return this.request(this.syncOperationRecordsToOld, {});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.DataJobService = DataJobService;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../types';
|
|
2
|
+
export declare namespace DataJobServiceTypes {
|
|
3
|
+
namespace Request {
|
|
4
|
+
/**
|
|
5
|
+
* 迁移数据(不需要参数)
|
|
6
|
+
*/
|
|
7
|
+
interface migrateData {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 同步到旧系统(不需要参数)
|
|
11
|
+
*/
|
|
12
|
+
interface syncToOld {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
namespace Response {
|
|
16
|
+
/**
|
|
17
|
+
* 迁移数据响应
|
|
18
|
+
*/
|
|
19
|
+
interface migrateData {
|
|
20
|
+
success: boolean;
|
|
21
|
+
message?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 同步到旧系统响应
|
|
25
|
+
*/
|
|
26
|
+
interface syncToOld {
|
|
27
|
+
success: boolean;
|
|
28
|
+
message?: string;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* DataJob Controller 接口定义
|
|
33
|
+
*/
|
|
34
|
+
interface DataJobController {
|
|
35
|
+
/**
|
|
36
|
+
* 迁移数据
|
|
37
|
+
*/
|
|
38
|
+
migrateData(): Promise<StandardResponse<Response.migrateData>>;
|
|
39
|
+
/**
|
|
40
|
+
* 同步用户到旧系统
|
|
41
|
+
*/
|
|
42
|
+
syncUsersToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
43
|
+
/**
|
|
44
|
+
* 同步角色到旧系统
|
|
45
|
+
*/
|
|
46
|
+
syncRolesToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
47
|
+
/**
|
|
48
|
+
* 同步规则到旧系统
|
|
49
|
+
*/
|
|
50
|
+
syncRulesToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
51
|
+
/**
|
|
52
|
+
* 同步加盟商到旧系统
|
|
53
|
+
*/
|
|
54
|
+
syncFranchiseesToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
55
|
+
/**
|
|
56
|
+
* 同步结算关系拉链到旧系统
|
|
57
|
+
*/
|
|
58
|
+
syncSettleRelationZippersToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
59
|
+
/**
|
|
60
|
+
* 同步操作记录到旧系统
|
|
61
|
+
*/
|
|
62
|
+
syncOperationRecordsToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StandardResponse } from '../../../../types';
|
|
2
|
+
import { ENUM } from '@be-link/ecommerce-store-service-node-sdk';
|
|
2
3
|
export declare namespace StoreService {
|
|
3
4
|
/**
|
|
4
5
|
* 实体定义
|
|
@@ -64,7 +65,7 @@ export declare namespace StoreService {
|
|
|
64
65
|
/** 直播时间 毫秒级时间戳 */
|
|
65
66
|
liveTime: number;
|
|
66
67
|
/** 免润期(天) */
|
|
67
|
-
gracePeriod:
|
|
68
|
+
gracePeriod: string;
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
70
71
|
* 门店仓配信息
|
|
@@ -232,6 +233,7 @@ export declare namespace StoreService {
|
|
|
232
233
|
* 请求参数定义
|
|
233
234
|
*/
|
|
234
235
|
namespace Request {
|
|
236
|
+
import STORE_ENUM = ENUM.STORE_ENUM;
|
|
235
237
|
/**
|
|
236
238
|
* 创建门店请求(创建时填写)
|
|
237
239
|
*/
|
|
@@ -269,10 +271,8 @@ export declare namespace StoreService {
|
|
|
269
271
|
settlementInfo?: {
|
|
270
272
|
/** 结算分佣比例 */
|
|
271
273
|
settlementCommissionRate?: any;
|
|
272
|
-
/** 直播时间 毫秒级时间戳 */
|
|
273
|
-
liveTime?: number;
|
|
274
274
|
/** 免润期(天) */
|
|
275
|
-
gracePeriod
|
|
275
|
+
gracePeriod: string;
|
|
276
276
|
};
|
|
277
277
|
/** 门店仓配信息 */
|
|
278
278
|
warehouseDeliveryInfo?: {
|
|
@@ -396,7 +396,7 @@ export declare namespace StoreService {
|
|
|
396
396
|
/** 直播时间 毫秒级时间戳 */
|
|
397
397
|
liveTime?: number;
|
|
398
398
|
/** 免润期(天) */
|
|
399
|
-
gracePeriod
|
|
399
|
+
gracePeriod: string;
|
|
400
400
|
};
|
|
401
401
|
/** 门店仓配信息 */
|
|
402
402
|
warehouseDeliveryInfo?: {
|
|
@@ -478,7 +478,7 @@ export declare namespace StoreService {
|
|
|
478
478
|
/** 门店统计数据查询块 */
|
|
479
479
|
statisticsQuery?: QueryBlock.Statistics;
|
|
480
480
|
/** 需要返回的响应块(数据表)列表 */
|
|
481
|
-
responseBlocks?:
|
|
481
|
+
responseBlocks?: STORE_ENUM.RESPONSE_BLOCK_TYPE[];
|
|
482
482
|
}
|
|
483
483
|
/**
|
|
484
484
|
* 根据门店名称获取门店ID请求
|
package/cjs/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import { PandoraAwardService } from './bff/modules/pandora/award/service';
|
|
|
34
34
|
import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
|
|
35
35
|
import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
|
|
36
36
|
import { MiniprogramVerificationService } from './bff/modules/miniprogram/verification/service';
|
|
37
|
+
import { DataJobService } from './bff/modules/pandora/dataJob/service';
|
|
37
38
|
import { SdkOptions } from './types';
|
|
38
39
|
/**
|
|
39
40
|
* Pandora 平台 SDK(管理后台)
|
|
@@ -93,6 +94,10 @@ export declare class PandoraSDK {
|
|
|
93
94
|
* 加盟商模块
|
|
94
95
|
*/
|
|
95
96
|
franchisee: PandoraFranchiseeService;
|
|
97
|
+
/**
|
|
98
|
+
* 数据任务模块
|
|
99
|
+
*/
|
|
100
|
+
dataJob: DataJobService;
|
|
96
101
|
/**
|
|
97
102
|
* 使用配置选项初始化 Pandora SDK
|
|
98
103
|
* @param options - SDK 配置,包含凭证回调函数
|
|
@@ -167,3 +172,4 @@ export { AwardService as PandoraAwardServiceTypes } from './bff/modules/pandora/
|
|
|
167
172
|
export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff/modules/pandora/franchisee/types';
|
|
168
173
|
export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
|
|
169
174
|
export { MiniprogramVerificationService as MiniprogramVerificationServiceTypes } from './bff/modules/miniprogram/verification/types';
|
|
175
|
+
export { DataJobServiceTypes } from './bff/modules/pandora/dataJob/types';
|
package/cjs/index.js
CHANGED
|
@@ -52,6 +52,7 @@ const service_28 = require("./bff/modules/pandora/award/service");
|
|
|
52
52
|
const service_29 = require("./bff/modules/pandora/franchisee/service");
|
|
53
53
|
const service_30 = require("./bff/modules/miniprogram/franchisee/service");
|
|
54
54
|
const service_31 = require("./bff/modules/miniprogram/verification/service");
|
|
55
|
+
const service_32 = require("./bff/modules/pandora/dataJob/service");
|
|
55
56
|
/**
|
|
56
57
|
* Pandora 平台 SDK(管理后台)
|
|
57
58
|
* 包含所有 Pandora 平台相关的服务
|
|
@@ -108,6 +109,7 @@ class PandoraSDK {
|
|
|
108
109
|
this.pointRule = new service_21.PandoraPointRuleService(this.http);
|
|
109
110
|
this.award = new service_28.PandoraAwardService(this.http);
|
|
110
111
|
this.franchisee = new service_29.PandoraFranchiseeService(this.http);
|
|
112
|
+
this.dataJob = new service_32.DataJobService(this.http);
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
exports.PandoraSDK = PandoraSDK;
|
|
@@ -9,4 +9,5 @@ import type { StandardResponse } from '../../../../types';
|
|
|
9
9
|
export declare class MiniprogramFranchiseeService extends BaseService implements Service.FranchiseeController {
|
|
10
10
|
protected prefixUrl: string;
|
|
11
11
|
getFranchiseeIdByUserId(request: Service.Request.getFranchiseeIdByUserId): Promise<StandardResponse<Service.Response.getFranchiseeIdByUserId>>;
|
|
12
|
+
checkAndUpdateAccountInfo(request: Service.Request.checkAndUpdateAccountInfo): Promise<StandardResponse<Service.Response.checkAndUpdateAccountInfo>>;
|
|
12
13
|
}
|
|
@@ -12,4 +12,7 @@ export class MiniprogramFranchiseeService extends BaseService {
|
|
|
12
12
|
getFranchiseeIdByUserId(request) {
|
|
13
13
|
return this.request(this.getFranchiseeIdByUserId, request);
|
|
14
14
|
}
|
|
15
|
+
checkAndUpdateAccountInfo(request) {
|
|
16
|
+
return this.request(this.checkAndUpdateAccountInfo, request);
|
|
17
|
+
}
|
|
15
18
|
}
|
|
@@ -7,6 +7,23 @@ export declare namespace MiniprogramFranchiseeService {
|
|
|
7
7
|
interface getFranchiseeIdByUserId {
|
|
8
8
|
userId: string;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* 校验并更新加盟商账户信息
|
|
12
|
+
*/
|
|
13
|
+
interface checkAndUpdateAccountInfo {
|
|
14
|
+
id: string;
|
|
15
|
+
enterpriseName?: string;
|
|
16
|
+
enterpriseType?: string;
|
|
17
|
+
legalRepresentative?: string;
|
|
18
|
+
businessLicense?: string;
|
|
19
|
+
supplementalAgreement?: string[];
|
|
20
|
+
accountName?: string;
|
|
21
|
+
accountNumber?: string;
|
|
22
|
+
bankName?: string;
|
|
23
|
+
bankBranchName?: string;
|
|
24
|
+
contactMobile?: string;
|
|
25
|
+
lastEditor?: string;
|
|
26
|
+
}
|
|
10
27
|
}
|
|
11
28
|
namespace Response {
|
|
12
29
|
/**
|
|
@@ -15,11 +32,18 @@ export declare namespace MiniprogramFranchiseeService {
|
|
|
15
32
|
interface getFranchiseeIdByUserId {
|
|
16
33
|
id: string;
|
|
17
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* 校验并更新加盟商账户信息响应
|
|
37
|
+
*/
|
|
38
|
+
interface checkAndUpdateAccountInfo {
|
|
39
|
+
success: boolean;
|
|
40
|
+
}
|
|
18
41
|
}
|
|
19
42
|
/**
|
|
20
43
|
* Franchisee Controller 接口定义
|
|
21
44
|
*/
|
|
22
45
|
interface FranchiseeController {
|
|
23
46
|
getFranchiseeIdByUserId(request: Request.getFranchiseeIdByUserId): Promise<StandardResponse<Response.getFranchiseeIdByUserId>>;
|
|
47
|
+
checkAndUpdateAccountInfo(request: Request.checkAndUpdateAccountInfo): Promise<StandardResponse<Response.checkAndUpdateAccountInfo>>;
|
|
24
48
|
}
|
|
25
49
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DataJobServiceTypes } from './types';
|
|
2
|
+
import BaseService from '../../BaseService';
|
|
3
|
+
import type { StandardResponse } from '../../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* DataJobService - Pandora DataJob 服务模块
|
|
6
|
+
* 提供数据迁移和同步相关的 API 方法
|
|
7
|
+
* 平台: pandora
|
|
8
|
+
*/
|
|
9
|
+
export declare class DataJobService extends BaseService implements DataJobServiceTypes.DataJobController {
|
|
10
|
+
protected prefixUrl: string;
|
|
11
|
+
/**
|
|
12
|
+
* 迁移数据
|
|
13
|
+
* @returns Promise,解析为标准响应格式
|
|
14
|
+
*/
|
|
15
|
+
migrateData(): Promise<StandardResponse<DataJobServiceTypes.Response.migrateData>>;
|
|
16
|
+
/**
|
|
17
|
+
* 同步用户到旧系统
|
|
18
|
+
* @returns Promise,解析为标准响应格式
|
|
19
|
+
*/
|
|
20
|
+
syncUsersToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
21
|
+
/**
|
|
22
|
+
* 同步角色到旧系统
|
|
23
|
+
* @returns Promise,解析为标准响应格式
|
|
24
|
+
*/
|
|
25
|
+
syncRolesToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
26
|
+
/**
|
|
27
|
+
* 同步规则到旧系统
|
|
28
|
+
* @returns Promise,解析为标准响应格式
|
|
29
|
+
*/
|
|
30
|
+
syncRulesToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
31
|
+
/**
|
|
32
|
+
* 同步加盟商到旧系统
|
|
33
|
+
* @returns Promise,解析为标准响应格式
|
|
34
|
+
*/
|
|
35
|
+
syncFranchiseesToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
36
|
+
/**
|
|
37
|
+
* 同步结算关系拉链到旧系统
|
|
38
|
+
* @returns Promise,解析为标准响应格式
|
|
39
|
+
*/
|
|
40
|
+
syncSettleRelationZippersToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
41
|
+
/**
|
|
42
|
+
* 同步操作记录到旧系统
|
|
43
|
+
* @returns Promise,解析为标准响应格式
|
|
44
|
+
*/
|
|
45
|
+
syncOperationRecordsToOld(): Promise<StandardResponse<DataJobServiceTypes.Response.syncToOld>>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import BaseService from '../../BaseService.mjs';
|
|
2
|
+
/**
|
|
3
|
+
* DataJobService - Pandora DataJob 服务模块
|
|
4
|
+
* 提供数据迁移和同步相关的 API 方法
|
|
5
|
+
* 平台: pandora
|
|
6
|
+
*/
|
|
7
|
+
export class DataJobService extends BaseService {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.prefixUrl = '/pandora/data-job';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 迁移数据
|
|
14
|
+
* @returns Promise,解析为标准响应格式
|
|
15
|
+
*/
|
|
16
|
+
migrateData() {
|
|
17
|
+
return this.request(this.migrateData, {});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 同步用户到旧系统
|
|
21
|
+
* @returns Promise,解析为标准响应格式
|
|
22
|
+
*/
|
|
23
|
+
syncUsersToOld() {
|
|
24
|
+
return this.request(this.syncUsersToOld, {});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 同步角色到旧系统
|
|
28
|
+
* @returns Promise,解析为标准响应格式
|
|
29
|
+
*/
|
|
30
|
+
syncRolesToOld() {
|
|
31
|
+
return this.request(this.syncRolesToOld, {});
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 同步规则到旧系统
|
|
35
|
+
* @returns Promise,解析为标准响应格式
|
|
36
|
+
*/
|
|
37
|
+
syncRulesToOld() {
|
|
38
|
+
return this.request(this.syncRulesToOld, {});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 同步加盟商到旧系统
|
|
42
|
+
* @returns Promise,解析为标准响应格式
|
|
43
|
+
*/
|
|
44
|
+
syncFranchiseesToOld() {
|
|
45
|
+
return this.request(this.syncFranchiseesToOld, {});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 同步结算关系拉链到旧系统
|
|
49
|
+
* @returns Promise,解析为标准响应格式
|
|
50
|
+
*/
|
|
51
|
+
syncSettleRelationZippersToOld() {
|
|
52
|
+
return this.request(this.syncSettleRelationZippersToOld, {});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 同步操作记录到旧系统
|
|
56
|
+
* @returns Promise,解析为标准响应格式
|
|
57
|
+
*/
|
|
58
|
+
syncOperationRecordsToOld() {
|
|
59
|
+
return this.request(this.syncOperationRecordsToOld, {});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { StandardResponse } from '../../../../types';
|
|
2
|
+
export declare namespace DataJobServiceTypes {
|
|
3
|
+
namespace Request {
|
|
4
|
+
/**
|
|
5
|
+
* 迁移数据(不需要参数)
|
|
6
|
+
*/
|
|
7
|
+
interface migrateData {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 同步到旧系统(不需要参数)
|
|
11
|
+
*/
|
|
12
|
+
interface syncToOld {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
namespace Response {
|
|
16
|
+
/**
|
|
17
|
+
* 迁移数据响应
|
|
18
|
+
*/
|
|
19
|
+
interface migrateData {
|
|
20
|
+
success: boolean;
|
|
21
|
+
message?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 同步到旧系统响应
|
|
25
|
+
*/
|
|
26
|
+
interface syncToOld {
|
|
27
|
+
success: boolean;
|
|
28
|
+
message?: string;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* DataJob Controller 接口定义
|
|
33
|
+
*/
|
|
34
|
+
interface DataJobController {
|
|
35
|
+
/**
|
|
36
|
+
* 迁移数据
|
|
37
|
+
*/
|
|
38
|
+
migrateData(): Promise<StandardResponse<Response.migrateData>>;
|
|
39
|
+
/**
|
|
40
|
+
* 同步用户到旧系统
|
|
41
|
+
*/
|
|
42
|
+
syncUsersToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
43
|
+
/**
|
|
44
|
+
* 同步角色到旧系统
|
|
45
|
+
*/
|
|
46
|
+
syncRolesToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
47
|
+
/**
|
|
48
|
+
* 同步规则到旧系统
|
|
49
|
+
*/
|
|
50
|
+
syncRulesToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
51
|
+
/**
|
|
52
|
+
* 同步加盟商到旧系统
|
|
53
|
+
*/
|
|
54
|
+
syncFranchiseesToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
55
|
+
/**
|
|
56
|
+
* 同步结算关系拉链到旧系统
|
|
57
|
+
*/
|
|
58
|
+
syncSettleRelationZippersToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
59
|
+
/**
|
|
60
|
+
* 同步操作记录到旧系统
|
|
61
|
+
*/
|
|
62
|
+
syncOperationRecordsToOld(): Promise<StandardResponse<Response.syncToOld>>;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StandardResponse } from '../../../../types';
|
|
2
|
+
import { ENUM } from '@be-link/ecommerce-store-service-node-sdk';
|
|
2
3
|
export declare namespace StoreService {
|
|
3
4
|
/**
|
|
4
5
|
* 实体定义
|
|
@@ -64,7 +65,7 @@ export declare namespace StoreService {
|
|
|
64
65
|
/** 直播时间 毫秒级时间戳 */
|
|
65
66
|
liveTime: number;
|
|
66
67
|
/** 免润期(天) */
|
|
67
|
-
gracePeriod:
|
|
68
|
+
gracePeriod: string;
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
70
71
|
* 门店仓配信息
|
|
@@ -232,6 +233,7 @@ export declare namespace StoreService {
|
|
|
232
233
|
* 请求参数定义
|
|
233
234
|
*/
|
|
234
235
|
namespace Request {
|
|
236
|
+
import STORE_ENUM = ENUM.STORE_ENUM;
|
|
235
237
|
/**
|
|
236
238
|
* 创建门店请求(创建时填写)
|
|
237
239
|
*/
|
|
@@ -269,10 +271,8 @@ export declare namespace StoreService {
|
|
|
269
271
|
settlementInfo?: {
|
|
270
272
|
/** 结算分佣比例 */
|
|
271
273
|
settlementCommissionRate?: any;
|
|
272
|
-
/** 直播时间 毫秒级时间戳 */
|
|
273
|
-
liveTime?: number;
|
|
274
274
|
/** 免润期(天) */
|
|
275
|
-
gracePeriod
|
|
275
|
+
gracePeriod: string;
|
|
276
276
|
};
|
|
277
277
|
/** 门店仓配信息 */
|
|
278
278
|
warehouseDeliveryInfo?: {
|
|
@@ -396,7 +396,7 @@ export declare namespace StoreService {
|
|
|
396
396
|
/** 直播时间 毫秒级时间戳 */
|
|
397
397
|
liveTime?: number;
|
|
398
398
|
/** 免润期(天) */
|
|
399
|
-
gracePeriod
|
|
399
|
+
gracePeriod: string;
|
|
400
400
|
};
|
|
401
401
|
/** 门店仓配信息 */
|
|
402
402
|
warehouseDeliveryInfo?: {
|
|
@@ -478,7 +478,7 @@ export declare namespace StoreService {
|
|
|
478
478
|
/** 门店统计数据查询块 */
|
|
479
479
|
statisticsQuery?: QueryBlock.Statistics;
|
|
480
480
|
/** 需要返回的响应块(数据表)列表 */
|
|
481
|
-
responseBlocks?:
|
|
481
|
+
responseBlocks?: STORE_ENUM.RESPONSE_BLOCK_TYPE[];
|
|
482
482
|
}
|
|
483
483
|
/**
|
|
484
484
|
* 根据门店名称获取门店ID请求
|
package/esm/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ import { PandoraAwardService } from './bff/modules/pandora/award/service';
|
|
|
34
34
|
import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
|
|
35
35
|
import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
|
|
36
36
|
import { MiniprogramVerificationService } from './bff/modules/miniprogram/verification/service';
|
|
37
|
+
import { DataJobService } from './bff/modules/pandora/dataJob/service';
|
|
37
38
|
import { SdkOptions } from './types';
|
|
38
39
|
/**
|
|
39
40
|
* Pandora 平台 SDK(管理后台)
|
|
@@ -93,6 +94,10 @@ export declare class PandoraSDK {
|
|
|
93
94
|
* 加盟商模块
|
|
94
95
|
*/
|
|
95
96
|
franchisee: PandoraFranchiseeService;
|
|
97
|
+
/**
|
|
98
|
+
* 数据任务模块
|
|
99
|
+
*/
|
|
100
|
+
dataJob: DataJobService;
|
|
96
101
|
/**
|
|
97
102
|
* 使用配置选项初始化 Pandora SDK
|
|
98
103
|
* @param options - SDK 配置,包含凭证回调函数
|
|
@@ -167,3 +172,4 @@ export { AwardService as PandoraAwardServiceTypes } from './bff/modules/pandora/
|
|
|
167
172
|
export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff/modules/pandora/franchisee/types';
|
|
168
173
|
export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
|
|
169
174
|
export { MiniprogramVerificationService as MiniprogramVerificationServiceTypes } from './bff/modules/miniprogram/verification/types';
|
|
175
|
+
export { DataJobServiceTypes } from './bff/modules/pandora/dataJob/types';
|
package/esm/index.mjs
CHANGED
|
@@ -35,6 +35,7 @@ import { PandoraAwardService } from './bff/modules/pandora/award/service.mjs';
|
|
|
35
35
|
import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service.mjs';
|
|
36
36
|
import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service.mjs';
|
|
37
37
|
import { MiniprogramVerificationService } from './bff/modules/miniprogram/verification/service.mjs';
|
|
38
|
+
import { DataJobService } from './bff/modules/pandora/dataJob/service.mjs';
|
|
38
39
|
/**
|
|
39
40
|
* Pandora 平台 SDK(管理后台)
|
|
40
41
|
* 包含所有 Pandora 平台相关的服务
|
|
@@ -91,6 +92,7 @@ export class PandoraSDK {
|
|
|
91
92
|
this.pointRule = new PandoraPointRuleService(this.http);
|
|
92
93
|
this.award = new PandoraAwardService(this.http);
|
|
93
94
|
this.franchisee = new PandoraFranchiseeService(this.http);
|
|
95
|
+
this.dataJob = new DataJobService(this.http);
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
/**
|
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.43",
|
|
4
4
|
"description": "EcommerceBackendBffService Node.js SDK",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./cjs/index.js",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"@be-link/ecommerce-volcengine-open-api-sdk": "^1.0.22",
|
|
30
30
|
"@be-link/ecommerce-client-backend-service-node-sdk": "^0.1.17",
|
|
31
31
|
"@be-link/ecommerce-tag-service-node-sdk": "^0.1.1",
|
|
32
|
-
"@be-link/ecommerce-store-service-node-sdk": "^0.1.
|
|
32
|
+
"@be-link/ecommerce-store-service-node-sdk": "^0.1.8",
|
|
33
33
|
"@be-link/ecommerce-promotion-service-node-sdk": "^0.1.3",
|
|
34
34
|
"axios": "^1.13.2",
|
|
35
35
|
"@be-link/ecommerce-user-service-node-sdk": "^0.1.20",
|
|
36
|
-
"@be-link/ecommerce-product-service-node-sdk": "^0.1.
|
|
36
|
+
"@be-link/ecommerce-product-service-node-sdk": "^0.1.7",
|
|
37
37
|
"@be-link/ecommerce-task-center-service-node-sdk": "^0.1.11"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|