@be-link/ecommerce-backend-bff-service-node-sdk 0.0.118 → 0.0.120

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.
@@ -1,4 +1,5 @@
1
1
  import { StandardResponse } from '../../../../types';
2
+ import { PandoraCommonService } from '../../pandora/common/types';
2
3
  /**
3
4
  * Miniprogram Auth Module Type Definitions
4
5
  * 小程序认证模块类型定义
@@ -48,20 +49,7 @@ export declare namespace MiniprogramAuthService {
48
49
  * 获取用户菜单权限响应
49
50
  */
50
51
  interface getUserMenuPermissions {
51
- rules: Array<{
52
- id: string;
53
- name: string;
54
- path: string;
55
- isShow: number;
56
- sort: number;
57
- pid: string;
58
- type: string;
59
- icon: string;
60
- status: string;
61
- platform: string;
62
- background: string;
63
- ruleKey: string;
64
- }>;
52
+ rules: PandoraCommonService.Response.RuleNode[];
65
53
  }
66
54
  /**
67
55
  * 获取微信UnionId响应
@@ -78,6 +66,7 @@ export declare namespace MiniprogramAuthService {
78
66
  code: 0 | 1;
79
67
  msg: string;
80
68
  token: string;
69
+ userId: string;
81
70
  roles: RoleItem[];
82
71
  }
83
72
  type getBindPhone = string;
@@ -88,6 +77,7 @@ export declare namespace MiniprogramAuthService {
88
77
  code: 0;
89
78
  msg: string;
90
79
  token: string;
80
+ userId: string;
91
81
  roles: RoleItem[];
92
82
  }
93
83
  /**
@@ -96,6 +86,7 @@ export declare namespace MiniprogramAuthService {
96
86
  interface accountLogin {
97
87
  code: 0;
98
88
  msg: string;
89
+ userId: string;
99
90
  token: string;
100
91
  roles: RoleItem[];
101
92
  }
@@ -1,4 +1,5 @@
1
1
  import { StandardResponse } from '../../../../types';
2
+ import { PandoraCommonService } from '../common/types';
2
3
  export declare namespace PandoraAuthService {
3
4
  interface RoleItem {
4
5
  id: string;
@@ -24,8 +25,6 @@ export declare namespace PandoraAuthService {
24
25
  * 获取用户菜单权限
25
26
  */
26
27
  interface getUserMenuPermissions {
27
- id: string;
28
- roleId: string;
29
28
  }
30
29
  }
31
30
  namespace Response {
@@ -33,6 +32,7 @@ export declare namespace PandoraAuthService {
33
32
  * 登录响应
34
33
  */
35
34
  interface login {
35
+ userId: string;
36
36
  token: string;
37
37
  roles: RoleItem[];
38
38
  }
@@ -58,20 +58,7 @@ export declare namespace PandoraAuthService {
58
58
  * 获取用户菜单权限响应
59
59
  */
60
60
  interface getUserMenuPermissions {
61
- rules: Array<{
62
- id: string;
63
- name: string;
64
- path: string;
65
- isShow: number;
66
- sort: number;
67
- pid: string;
68
- type: string;
69
- icon: string;
70
- status: string;
71
- platform: string;
72
- background: string;
73
- ruleKey: string;
74
- }>;
61
+ rules: PandoraCommonService.Response.RuleNode[];
75
62
  }
76
63
  }
77
64
  /**
@@ -26,10 +26,4 @@ export declare class PandoraOrderQueryService extends BaseService implements Ser
26
26
  * @returns Promise,解析为标准响应格式
27
27
  */
28
28
  getOrderAddress(request: Service.Request.getOrderAddress): Promise<StandardResponse<Service.Response.getOrderAddress>>;
29
- /**
30
- * 逆向订单列表(退款订单)
31
- * @param request - 请求参数
32
- * @returns Promise,解析为标准响应格式
33
- */
34
- reverseOrderList(request: Service.Request.reverseOrderList): Promise<StandardResponse<Service.Response.reverseOrderList>>;
35
29
  }
@@ -39,13 +39,5 @@ class PandoraOrderQueryService extends BaseService_1.default {
39
39
  getOrderAddress(request) {
40
40
  return this.request(this.getOrderAddress, request);
41
41
  }
42
- /**
43
- * 逆向订单列表(退款订单)
44
- * @param request - 请求参数
45
- * @returns Promise,解析为标准响应格式
46
- */
47
- reverseOrderList(request) {
48
- return this.request(this.reverseOrderList, request);
49
- }
50
42
  }
51
43
  exports.PandoraOrderQueryService = PandoraOrderQueryService;
@@ -5,7 +5,7 @@ export declare namespace PandoraOrderQueryService {
5
5
  type list = POS.PosOrderQueryTypes.ByWeb.Request.IOrderList;
6
6
  type orderDetail = POS.PosOrderQueryTypes.ByWeb.Request.IOrderDetail;
7
7
  type getOrderAddress = POS.PosOrderQueryTypes.ByWeb.Request.IGetOrderAddress;
8
- type reverseOrderList = ROS.RosOrderQueryByWebTypes.RosOrderQueryService.Request.IOrderList;
8
+ type reverseOrderList = ROS.RosOrderQueryTypes.ByUser.Request.IRefundOrderList;
9
9
  }
10
10
  namespace Response {
11
11
  type list = POS.PosOrderQueryTypes.ByWeb.Response.IList;
@@ -9,7 +9,6 @@ export declare namespace PandoraRoleService {
9
9
  roleName: string;
10
10
  rules: string[];
11
11
  canCreateAccount: number;
12
- parentId?: string;
13
12
  }
14
13
  /**
15
14
  * 更新角色
@@ -31,7 +30,6 @@ export declare namespace PandoraRoleService {
31
30
  */
32
31
  interface roleList {
33
32
  roleName?: string;
34
- operatorRoleId: string;
35
33
  isPreset: number;
36
34
  }
37
35
  /**
@@ -39,15 +37,11 @@ export declare namespace PandoraRoleService {
39
37
  */
40
38
  interface getRolePermissions {
41
39
  roleId: string;
42
- operatorUserId?: string;
43
- operatorRoleId?: string;
44
40
  }
45
41
  /**
46
42
  * 获取创建角色时的权限树(用于创建角色页面回显)
47
43
  */
48
44
  interface getPermissionsForCreate {
49
- operatorUserId: string;
50
- operatorRoleId: string;
51
45
  }
52
46
  }
53
47
  namespace Response {
@@ -115,6 +115,7 @@ export declare namespace StoreService {
115
115
  bdmName?: string;
116
116
  /** 店长ID */
117
117
  storeManagerDisplayId?: string;
118
+ storeManagerUnionId?: string;
118
119
  /** 店长姓名 */
119
120
  storeManagerName?: string;
120
121
  /** 工作机 uid,工作机手机号和授权手机号做系统匹配 */
@@ -255,6 +256,14 @@ export declare namespace StoreService {
255
256
  telephone?: string;
256
257
  /** 联系人 */
257
258
  contactName?: string;
259
+ /** 经营状态:UNBOUND_MANAGER-未开业, OPERATING-营业中, CLOSED-已打烊 */
260
+ businessStatus?: string;
261
+ /** 商家合作类型:UNCONFIGURED-未配置, INDEPENDENT_STORE-独立店, STORE_IN_STORE-联营店, DRIVAGE-引流店 */
262
+ merchantCooperationType?: string;
263
+ /** 门店类型:UNCONFIGURED-未配置, SELF_OPERATED-自营, FRANCHISE-加盟 */
264
+ storeType?: string;
265
+ /** 拉新类型: UNCONFIGURED-未配置, PLATFORM-平台拉新, STORE_MANAGER-店长拉新, AGILE_BROADCAST-敏捷上播 */
266
+ isPlatformNewCustomerOperation?: string;
258
267
  };
259
268
  /** 门店结算信息 */
260
269
  settlementInfo?: {
@@ -361,9 +370,12 @@ export declare namespace StoreService {
361
370
  storeType?: string;
362
371
  /** 拉新类型: UNCONFIGURED-未配置, PLATFORM-平台拉新, STORE_MANAGER-店长拉新, AGILE_BROADCAST-敏捷上播 */
363
372
  isPlatformNewCustomerOperation?: string;
364
- };
365
- /** 门店地址信息 */
366
- addressInfo?: {
373
+ /** 门店名称 */
374
+ storeName?: string;
375
+ /** 联系电话 */
376
+ telephone?: string;
377
+ /** 联系人 */
378
+ contactName?: string;
367
379
  /** 省 */
368
380
  province?: string;
369
381
  /** 市 */
@@ -13,7 +13,6 @@ export declare namespace PandoraUserService {
13
13
  storeIds: string[];
14
14
  warehouseIds: string[];
15
15
  extraRules?: string[];
16
- operatorRoleId: string;
17
16
  }
18
17
  /**
19
18
  * 更新账号
package/cjs/index.d.ts CHANGED
@@ -5,15 +5,9 @@ import { PandoraAuthService } from './bff/modules/pandora/auth/service';
5
5
  import { PandoraBDService } from './bff/modules/pandora/bd/service';
6
6
  import { PandoraBDMService } from './bff/modules/pandora/bdm/service';
7
7
  import { PandoraCommonService } from './bff/modules/pandora/common/service';
8
- import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
9
- import { PandoraExampleService } from './bff/modules/pandora/example/service';
10
- import { PandoraProductService } from './bff/modules/pandora/product/service';
11
- import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
12
8
  import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
13
9
  import { PandoraRoleService } from './bff/modules/pandora/role/service';
14
10
  import { PandoraRoomService } from './bff/modules/pandora/room/service';
15
- import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
16
- import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
17
11
  import { PandoraUserService } from './bff/modules/pandora/user/service';
18
12
  import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service';
19
13
  import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service';
@@ -26,6 +20,12 @@ import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service
26
20
  import { PandoraTaskService } from './bff/modules/pandora/task/service';
27
21
  import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service';
28
22
  import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service';
23
+ import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
24
+ import { PandoraExampleService } from './bff/modules/pandora/example/service';
25
+ import { PandoraProductService } from './bff/modules/pandora/product/service';
26
+ import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
27
+ import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
28
+ import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
29
29
  import { PandoraAwardService } from './bff/modules/pandora/award/service';
30
30
  import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
31
31
  import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
@@ -60,11 +60,14 @@ export declare class PandoraSDK {
60
60
  productExp: PandoraProductExpService;
61
61
  productLive: PandoraProductLiveService;
62
62
  coupon: PandoraCouponService;
63
- pointMall: PandoraPointsMallService;
64
63
  /**
65
64
  * Pandora 门店服务模块
66
65
  */
67
66
  store: PandoraStoreService;
67
+ pointMall: PandoraPointsMallService;
68
+ /**
69
+ * Pandora 门店用户关系服务模块
70
+ */
68
71
  award: PandoraAwardService;
69
72
  /**
70
73
  * 直播间模块
@@ -133,8 +136,8 @@ export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff
133
136
  export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
134
137
  export { PandoraOrderQueryService as PandoraOrderQueryServiceTypes } from './bff/modules/pandora/orderQuery/types';
135
138
  export { PandoraOrderCoreService as PandoraOrderCoreServiceTypes } from './bff/modules/pandora/orderCore/types';
136
- export { PandoraTaskService as PandoraTaskServiceTypes } from './bff/modules/pandora/task/types';
137
139
  export { PandoraTaskWatchService as PandoraTaskWatchServiceTypes } from './bff/modules/pandora/taskWatch/types';
140
+ export { PandoraTaskService as PandoraTaskServiceTypes } from './bff/modules/pandora/task/types';
138
141
  export { PandoraPointRuleService as PandoraPointRuleServiceTypes } from './bff/modules/pandora/pointRule/types';
139
142
  export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
140
143
  export { CouponService as PandoraCouponServiceTypes } from './bff/modules/pandora/coupon/types';
package/cjs/index.js CHANGED
@@ -22,28 +22,28 @@ const service_4 = require("./bff/modules/pandora/auth/service");
22
22
  const service_5 = require("./bff/modules/pandora/bd/service");
23
23
  const service_6 = require("./bff/modules/pandora/bdm/service");
24
24
  const service_7 = require("./bff/modules/pandora/common/service");
25
- const service_8 = require("./bff/modules/pandora/coupon/service");
26
- const service_9 = require("./bff/modules/pandora/example/service");
27
- const service_10 = require("./bff/modules/pandora/product/service");
28
- const service_11 = require("./bff/modules/pandora/productExp/service");
29
- const service_12 = require("./bff/modules/pandora/productLive/service");
30
- const service_13 = require("./bff/modules/pandora/role/service");
31
- const service_14 = require("./bff/modules/pandora/room/service");
32
- const service_15 = require("./bff/modules/pandora/storeClerk/service");
33
- const service_16 = require("./bff/modules/pandora/storeManager/service");
34
- const service_17 = require("./bff/modules/pandora/user/service");
25
+ const service_8 = require("./bff/modules/pandora/productLive/service");
26
+ const service_9 = require("./bff/modules/pandora/role/service");
27
+ const service_10 = require("./bff/modules/pandora/room/service");
28
+ const service_11 = require("./bff/modules/pandora/user/service");
35
29
  const user_service_1 = require("./bff/modules/pandora/userManager/service/user.service");
36
30
  const point_service_1 = require("./bff/modules/pandora/userManager/service/point.service");
37
31
  const coupon_service_1 = require("./bff/modules/pandora/userManager/service/coupon.service");
38
32
  const address_service_1 = require("./bff/modules/pandora/userManager/service/address.service");
39
33
  const region_service_1 = require("./bff/modules/pandora/userManager/service/region.service");
40
34
  const client_1 = require("./bff/request/client");
41
- const service_18 = require("./bff/modules/pandora/pointsMall/service");
42
- const service_19 = require("./bff/modules/pandora/orderQuery/service");
43
- const service_20 = require("./bff/modules/pandora/orderCore/service");
44
- const service_21 = require("./bff/modules/pandora/task/service");
45
- const service_22 = require("./bff/modules/pandora/taskWatch/service");
46
- const service_23 = require("./bff/modules/pandora/pointRule/service");
35
+ const service_12 = require("./bff/modules/pandora/pointsMall/service");
36
+ const service_13 = require("./bff/modules/pandora/orderQuery/service");
37
+ const service_14 = require("./bff/modules/pandora/orderCore/service");
38
+ const service_15 = require("./bff/modules/pandora/task/service");
39
+ const service_16 = require("./bff/modules/pandora/taskWatch/service");
40
+ const service_17 = require("./bff/modules/pandora/pointRule/service");
41
+ const service_18 = require("./bff/modules/pandora/coupon/service");
42
+ const service_19 = require("./bff/modules/pandora/example/service");
43
+ const service_20 = require("./bff/modules/pandora/product/service");
44
+ const service_21 = require("./bff/modules/pandora/productExp/service");
45
+ const service_22 = require("./bff/modules/pandora/storeClerk/service");
46
+ const service_23 = require("./bff/modules/pandora/storeManager/service");
47
47
  const service_24 = require("./bff/modules/pandora/award/service");
48
48
  const service_25 = require("./bff/modules/pandora/franchisee/service");
49
49
  const service_26 = require("./bff/modules/miniprogram/franchisee/service");
@@ -60,32 +60,44 @@ class PandoraSDK {
60
60
  // 使用提供的选项初始化 HttpClient
61
61
  this.http = new client_1.HttpClient(options);
62
62
  // 使用 HttpClient 实例化所有 Pandora 服务模块
63
- this.example = new service_9.PandoraExampleService(this.http);
63
+ this.example = new service_19.PandoraExampleService(this.http);
64
64
  this.auth = new service_4.PandoraAuthService(this.http);
65
65
  this.bd = new service_5.PandoraBDService(this.http);
66
66
  this.bdm = new service_6.PandoraBDMService(this.http);
67
67
  this.common = new service_7.PandoraCommonService(this.http);
68
- this.role = new service_13.PandoraRoleService(this.http);
69
- this.storeClerk = new service_15.PandoraStoreClerkService(this.http);
70
- this.storeManager = new service_16.PandoraStoreManagerService(this.http);
71
- this.user = new service_17.PandoraUserService(this.http);
72
- this.product = new service_10.PandoraProductService(this.http);
73
- this.productExp = new service_11.PandoraProductExpService(this.http);
74
- this.productLive = new service_12.PandoraProductLiveService(this.http);
68
+ this.role = new service_9.PandoraRoleService(this.http);
69
+ this.storeClerk = new service_22.PandoraStoreClerkService(this.http);
70
+ this.storeManager = new service_23.PandoraStoreManagerService(this.http);
71
+ this.user = new service_11.PandoraUserService(this.http);
72
+ this.product = new service_20.PandoraProductService(this.http);
73
+ this.productExp = new service_21.PandoraProductExpService(this.http);
74
+ this.productLive = new service_8.PandoraProductLiveService(this.http);
75
75
  this.store = new service_1.PandoraStoreService(this.http);
76
- this.room = new service_14.PandoraRoomService(this.http);
77
- this.coupon = new service_8.PandoraCouponService(this.http);
76
+ this.room = new service_10.PandoraRoomService(this.http);
77
+ this.coupon = new service_18.PandoraCouponService(this.http);
78
78
  this.userManagement = new user_service_1.PandoraUserManagementService(this.http);
79
79
  this.pointManagement = new point_service_1.PandoraPointManagementService(this.http);
80
80
  this.couponManagement = new coupon_service_1.PandoraCouponManagementService(this.http);
81
81
  this.addressManagement = new address_service_1.PandoraAddressManagementService(this.http);
82
82
  this.regionManagement = new region_service_1.PandoraRegionManagementService(this.http);
83
- this.pointMall = new service_18.PandoraPointsMallService(this.http);
84
- this.orderQuery = new service_19.PandoraOrderQueryService(this.http);
85
- this.orderCore = new service_20.PandoraOrderCoreService(this.http);
86
- this.task = new service_21.PandoraTaskService(this.http);
87
- this.taskWatch = new service_22.PandoraTaskWatchService(this.http);
88
- this.pointRule = new service_23.PandoraPointRuleService(this.http);
83
+ this.pointMall = new service_12.PandoraPointsMallService(this.http);
84
+ this.orderQuery = new service_13.PandoraOrderQueryService(this.http);
85
+ this.orderCore = new service_14.PandoraOrderCoreService(this.http);
86
+ this.task = new service_15.PandoraTaskService(this.http);
87
+ this.taskWatch = new service_16.PandoraTaskWatchService(this.http);
88
+ this.pointRule = new service_17.PandoraPointRuleService(this.http);
89
+ this.award = new service_24.PandoraAwardService(this.http);
90
+ this.franchisee = new service_25.PandoraFranchiseeService(this.http);
91
+ this.userManagement = new user_service_1.PandoraUserManagementService(this.http);
92
+ this.pointManagement = new point_service_1.PandoraPointManagementService(this.http);
93
+ this.couponManagement = new coupon_service_1.PandoraCouponManagementService(this.http);
94
+ this.addressManagement = new address_service_1.PandoraAddressManagementService(this.http);
95
+ this.regionManagement = new region_service_1.PandoraRegionManagementService(this.http);
96
+ this.pointMall = new service_12.PandoraPointsMallService(this.http);
97
+ this.orderQuery = new service_13.PandoraOrderQueryService(this.http);
98
+ this.orderCore = new service_14.PandoraOrderCoreService(this.http);
99
+ this.task = new service_15.PandoraTaskService(this.http);
100
+ this.pointRule = new service_17.PandoraPointRuleService(this.http);
89
101
  this.award = new service_24.PandoraAwardService(this.http);
90
102
  this.franchisee = new service_25.PandoraFranchiseeService(this.http);
91
103
  }
package/cjs/utils/env.js CHANGED
@@ -21,8 +21,8 @@ function getContainerHost(environment) {
21
21
  // 生产环境和测试环境使用不同的主机地址
22
22
  // TODO 生产url
23
23
  return environment === 'production'
24
- ? 'http://bxbvjnca.tfs.cwl9ok0a.mk2u3r3l.com:8090' // 生产环境
25
- : 'https://backend-bff-service-196345-5-1304510571.sh.run.tcloudbase.com'; // 测试环境
24
+ ? '' // 生产环境
25
+ : 'https://ecommerce-dev.wejourney.top/b-bff'; // 测试环境
26
26
  }
27
27
  /**
28
28
  * 根据环境获取微信云环境标识符
package/cjs/utils/http.js CHANGED
@@ -31,7 +31,7 @@ async function callApi(url, request) {
31
31
  console.error(`ecommerce-backend-bff-service 异常: ${axiosError.message},requestId: ${requestId}`);
32
32
  console.info('响应信息', data.message);
33
33
  console.error('异常堆栈', JSON.stringify(error.stack));
34
- throw new Error(data.errorType + ' - ' + data.message);
34
+ throw error;
35
35
  }
36
36
  console.error(`ecommerce-backend-bff-service 未知异常: ${axiosError.message}`, error.stack);
37
37
  throw error;
@@ -1,4 +1,5 @@
1
1
  import { StandardResponse } from '../../../../types';
2
+ import { PandoraCommonService } from '../../pandora/common/types';
2
3
  /**
3
4
  * Miniprogram Auth Module Type Definitions
4
5
  * 小程序认证模块类型定义
@@ -48,20 +49,7 @@ export declare namespace MiniprogramAuthService {
48
49
  * 获取用户菜单权限响应
49
50
  */
50
51
  interface getUserMenuPermissions {
51
- rules: Array<{
52
- id: string;
53
- name: string;
54
- path: string;
55
- isShow: number;
56
- sort: number;
57
- pid: string;
58
- type: string;
59
- icon: string;
60
- status: string;
61
- platform: string;
62
- background: string;
63
- ruleKey: string;
64
- }>;
52
+ rules: PandoraCommonService.Response.RuleNode[];
65
53
  }
66
54
  /**
67
55
  * 获取微信UnionId响应
@@ -78,6 +66,7 @@ export declare namespace MiniprogramAuthService {
78
66
  code: 0 | 1;
79
67
  msg: string;
80
68
  token: string;
69
+ userId: string;
81
70
  roles: RoleItem[];
82
71
  }
83
72
  type getBindPhone = string;
@@ -88,6 +77,7 @@ export declare namespace MiniprogramAuthService {
88
77
  code: 0;
89
78
  msg: string;
90
79
  token: string;
80
+ userId: string;
91
81
  roles: RoleItem[];
92
82
  }
93
83
  /**
@@ -96,6 +86,7 @@ export declare namespace MiniprogramAuthService {
96
86
  interface accountLogin {
97
87
  code: 0;
98
88
  msg: string;
89
+ userId: string;
99
90
  token: string;
100
91
  roles: RoleItem[];
101
92
  }
@@ -1,4 +1,5 @@
1
1
  import { StandardResponse } from '../../../../types';
2
+ import { PandoraCommonService } from '../common/types';
2
3
  export declare namespace PandoraAuthService {
3
4
  interface RoleItem {
4
5
  id: string;
@@ -24,8 +25,6 @@ export declare namespace PandoraAuthService {
24
25
  * 获取用户菜单权限
25
26
  */
26
27
  interface getUserMenuPermissions {
27
- id: string;
28
- roleId: string;
29
28
  }
30
29
  }
31
30
  namespace Response {
@@ -33,6 +32,7 @@ export declare namespace PandoraAuthService {
33
32
  * 登录响应
34
33
  */
35
34
  interface login {
35
+ userId: string;
36
36
  token: string;
37
37
  roles: RoleItem[];
38
38
  }
@@ -58,20 +58,7 @@ export declare namespace PandoraAuthService {
58
58
  * 获取用户菜单权限响应
59
59
  */
60
60
  interface getUserMenuPermissions {
61
- rules: Array<{
62
- id: string;
63
- name: string;
64
- path: string;
65
- isShow: number;
66
- sort: number;
67
- pid: string;
68
- type: string;
69
- icon: string;
70
- status: string;
71
- platform: string;
72
- background: string;
73
- ruleKey: string;
74
- }>;
61
+ rules: PandoraCommonService.Response.RuleNode[];
75
62
  }
76
63
  }
77
64
  /**
@@ -26,10 +26,4 @@ export declare class PandoraOrderQueryService extends BaseService implements Ser
26
26
  * @returns Promise,解析为标准响应格式
27
27
  */
28
28
  getOrderAddress(request: Service.Request.getOrderAddress): Promise<StandardResponse<Service.Response.getOrderAddress>>;
29
- /**
30
- * 逆向订单列表(退款订单)
31
- * @param request - 请求参数
32
- * @returns Promise,解析为标准响应格式
33
- */
34
- reverseOrderList(request: Service.Request.reverseOrderList): Promise<StandardResponse<Service.Response.reverseOrderList>>;
35
29
  }
@@ -33,12 +33,4 @@ export class PandoraOrderQueryService extends BaseService {
33
33
  getOrderAddress(request) {
34
34
  return this.request(this.getOrderAddress, request);
35
35
  }
36
- /**
37
- * 逆向订单列表(退款订单)
38
- * @param request - 请求参数
39
- * @returns Promise,解析为标准响应格式
40
- */
41
- reverseOrderList(request) {
42
- return this.request(this.reverseOrderList, request);
43
- }
44
36
  }
@@ -5,7 +5,7 @@ export declare namespace PandoraOrderQueryService {
5
5
  type list = POS.PosOrderQueryTypes.ByWeb.Request.IOrderList;
6
6
  type orderDetail = POS.PosOrderQueryTypes.ByWeb.Request.IOrderDetail;
7
7
  type getOrderAddress = POS.PosOrderQueryTypes.ByWeb.Request.IGetOrderAddress;
8
- type reverseOrderList = ROS.RosOrderQueryByWebTypes.RosOrderQueryService.Request.IOrderList;
8
+ type reverseOrderList = ROS.RosOrderQueryTypes.ByUser.Request.IRefundOrderList;
9
9
  }
10
10
  namespace Response {
11
11
  type list = POS.PosOrderQueryTypes.ByWeb.Response.IList;
@@ -9,7 +9,6 @@ export declare namespace PandoraRoleService {
9
9
  roleName: string;
10
10
  rules: string[];
11
11
  canCreateAccount: number;
12
- parentId?: string;
13
12
  }
14
13
  /**
15
14
  * 更新角色
@@ -31,7 +30,6 @@ export declare namespace PandoraRoleService {
31
30
  */
32
31
  interface roleList {
33
32
  roleName?: string;
34
- operatorRoleId: string;
35
33
  isPreset: number;
36
34
  }
37
35
  /**
@@ -39,15 +37,11 @@ export declare namespace PandoraRoleService {
39
37
  */
40
38
  interface getRolePermissions {
41
39
  roleId: string;
42
- operatorUserId?: string;
43
- operatorRoleId?: string;
44
40
  }
45
41
  /**
46
42
  * 获取创建角色时的权限树(用于创建角色页面回显)
47
43
  */
48
44
  interface getPermissionsForCreate {
49
- operatorUserId: string;
50
- operatorRoleId: string;
51
45
  }
52
46
  }
53
47
  namespace Response {
@@ -115,6 +115,7 @@ export declare namespace StoreService {
115
115
  bdmName?: string;
116
116
  /** 店长ID */
117
117
  storeManagerDisplayId?: string;
118
+ storeManagerUnionId?: string;
118
119
  /** 店长姓名 */
119
120
  storeManagerName?: string;
120
121
  /** 工作机 uid,工作机手机号和授权手机号做系统匹配 */
@@ -255,6 +256,14 @@ export declare namespace StoreService {
255
256
  telephone?: string;
256
257
  /** 联系人 */
257
258
  contactName?: string;
259
+ /** 经营状态:UNBOUND_MANAGER-未开业, OPERATING-营业中, CLOSED-已打烊 */
260
+ businessStatus?: string;
261
+ /** 商家合作类型:UNCONFIGURED-未配置, INDEPENDENT_STORE-独立店, STORE_IN_STORE-联营店, DRIVAGE-引流店 */
262
+ merchantCooperationType?: string;
263
+ /** 门店类型:UNCONFIGURED-未配置, SELF_OPERATED-自营, FRANCHISE-加盟 */
264
+ storeType?: string;
265
+ /** 拉新类型: UNCONFIGURED-未配置, PLATFORM-平台拉新, STORE_MANAGER-店长拉新, AGILE_BROADCAST-敏捷上播 */
266
+ isPlatformNewCustomerOperation?: string;
258
267
  };
259
268
  /** 门店结算信息 */
260
269
  settlementInfo?: {
@@ -361,9 +370,12 @@ export declare namespace StoreService {
361
370
  storeType?: string;
362
371
  /** 拉新类型: UNCONFIGURED-未配置, PLATFORM-平台拉新, STORE_MANAGER-店长拉新, AGILE_BROADCAST-敏捷上播 */
363
372
  isPlatformNewCustomerOperation?: string;
364
- };
365
- /** 门店地址信息 */
366
- addressInfo?: {
373
+ /** 门店名称 */
374
+ storeName?: string;
375
+ /** 联系电话 */
376
+ telephone?: string;
377
+ /** 联系人 */
378
+ contactName?: string;
367
379
  /** 省 */
368
380
  province?: string;
369
381
  /** 市 */
@@ -13,7 +13,6 @@ export declare namespace PandoraUserService {
13
13
  storeIds: string[];
14
14
  warehouseIds: string[];
15
15
  extraRules?: string[];
16
- operatorRoleId: string;
17
16
  }
18
17
  /**
19
18
  * 更新账号
package/esm/index.d.ts CHANGED
@@ -5,15 +5,9 @@ import { PandoraAuthService } from './bff/modules/pandora/auth/service';
5
5
  import { PandoraBDService } from './bff/modules/pandora/bd/service';
6
6
  import { PandoraBDMService } from './bff/modules/pandora/bdm/service';
7
7
  import { PandoraCommonService } from './bff/modules/pandora/common/service';
8
- import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
9
- import { PandoraExampleService } from './bff/modules/pandora/example/service';
10
- import { PandoraProductService } from './bff/modules/pandora/product/service';
11
- import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
12
8
  import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
13
9
  import { PandoraRoleService } from './bff/modules/pandora/role/service';
14
10
  import { PandoraRoomService } from './bff/modules/pandora/room/service';
15
- import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
16
- import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
17
11
  import { PandoraUserService } from './bff/modules/pandora/user/service';
18
12
  import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service';
19
13
  import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service';
@@ -26,6 +20,12 @@ import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service
26
20
  import { PandoraTaskService } from './bff/modules/pandora/task/service';
27
21
  import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service';
28
22
  import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service';
23
+ import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
24
+ import { PandoraExampleService } from './bff/modules/pandora/example/service';
25
+ import { PandoraProductService } from './bff/modules/pandora/product/service';
26
+ import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
27
+ import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
28
+ import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
29
29
  import { PandoraAwardService } from './bff/modules/pandora/award/service';
30
30
  import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
31
31
  import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
@@ -60,11 +60,14 @@ export declare class PandoraSDK {
60
60
  productExp: PandoraProductExpService;
61
61
  productLive: PandoraProductLiveService;
62
62
  coupon: PandoraCouponService;
63
- pointMall: PandoraPointsMallService;
64
63
  /**
65
64
  * Pandora 门店服务模块
66
65
  */
67
66
  store: PandoraStoreService;
67
+ pointMall: PandoraPointsMallService;
68
+ /**
69
+ * Pandora 门店用户关系服务模块
70
+ */
68
71
  award: PandoraAwardService;
69
72
  /**
70
73
  * 直播间模块
@@ -133,8 +136,8 @@ export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff
133
136
  export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
134
137
  export { PandoraOrderQueryService as PandoraOrderQueryServiceTypes } from './bff/modules/pandora/orderQuery/types';
135
138
  export { PandoraOrderCoreService as PandoraOrderCoreServiceTypes } from './bff/modules/pandora/orderCore/types';
136
- export { PandoraTaskService as PandoraTaskServiceTypes } from './bff/modules/pandora/task/types';
137
139
  export { PandoraTaskWatchService as PandoraTaskWatchServiceTypes } from './bff/modules/pandora/taskWatch/types';
140
+ export { PandoraTaskService as PandoraTaskServiceTypes } from './bff/modules/pandora/task/types';
138
141
  export { PandoraPointRuleService as PandoraPointRuleServiceTypes } from './bff/modules/pandora/pointRule/types';
139
142
  export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
140
143
  export { CouponService as PandoraCouponServiceTypes } from './bff/modules/pandora/coupon/types';
package/esm/index.mjs CHANGED
@@ -5,15 +5,9 @@ import { PandoraAuthService } from './bff/modules/pandora/auth/service.mjs';
5
5
  import { PandoraBDService } from './bff/modules/pandora/bd/service.mjs';
6
6
  import { PandoraBDMService } from './bff/modules/pandora/bdm/service.mjs';
7
7
  import { PandoraCommonService } from './bff/modules/pandora/common/service.mjs';
8
- import { PandoraCouponService } from './bff/modules/pandora/coupon/service.mjs';
9
- import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
10
- import { PandoraProductService } from './bff/modules/pandora/product/service.mjs';
11
- import { PandoraProductExpService } from './bff/modules/pandora/productExp/service.mjs';
12
8
  import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service.mjs';
13
9
  import { PandoraRoleService } from './bff/modules/pandora/role/service.mjs';
14
10
  import { PandoraRoomService } from './bff/modules/pandora/room/service.mjs';
15
- import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service.mjs';
16
- import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
17
11
  import { PandoraUserService } from './bff/modules/pandora/user/service.mjs';
18
12
  import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service.mjs';
19
13
  import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service.mjs';
@@ -27,6 +21,12 @@ import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service
27
21
  import { PandoraTaskService } from './bff/modules/pandora/task/service.mjs';
28
22
  import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service.mjs';
29
23
  import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service.mjs';
24
+ import { PandoraCouponService } from './bff/modules/pandora/coupon/service.mjs';
25
+ import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
26
+ import { PandoraProductService } from './bff/modules/pandora/product/service.mjs';
27
+ import { PandoraProductExpService } from './bff/modules/pandora/productExp/service.mjs';
28
+ import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service.mjs';
29
+ import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
30
30
  import { PandoraAwardService } from './bff/modules/pandora/award/service.mjs';
31
31
  import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service.mjs';
32
32
  import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service.mjs';
@@ -71,6 +71,18 @@ export class PandoraSDK {
71
71
  this.pointRule = new PandoraPointRuleService(this.http);
72
72
  this.award = new PandoraAwardService(this.http);
73
73
  this.franchisee = new PandoraFranchiseeService(this.http);
74
+ this.userManagement = new PandoraUserManagementService(this.http);
75
+ this.pointManagement = new PandoraPointManagementService(this.http);
76
+ this.couponManagement = new PandoraCouponManagementService(this.http);
77
+ this.addressManagement = new PandoraAddressManagementService(this.http);
78
+ this.regionManagement = new PandoraRegionManagementService(this.http);
79
+ this.pointMall = new PandoraPointsMallService(this.http);
80
+ this.orderQuery = new PandoraOrderQueryService(this.http);
81
+ this.orderCore = new PandoraOrderCoreService(this.http);
82
+ this.task = new PandoraTaskService(this.http);
83
+ this.pointRule = new PandoraPointRuleService(this.http);
84
+ this.award = new PandoraAwardService(this.http);
85
+ this.franchisee = new PandoraFranchiseeService(this.http);
74
86
  }
75
87
  }
76
88
  /**
package/esm/utils/env.mjs CHANGED
@@ -15,8 +15,8 @@ export function getContainerHost(environment) {
15
15
  // 生产环境和测试环境使用不同的主机地址
16
16
  // TODO 生产url
17
17
  return environment === 'production'
18
- ? 'http://bxbvjnca.tfs.cwl9ok0a.mk2u3r3l.com:8090' // 生产环境
19
- : 'https://backend-bff-service-196345-5-1304510571.sh.run.tcloudbase.com'; // 测试环境
18
+ ? '' // 生产环境
19
+ : 'https://ecommerce-dev.wejourney.top/b-bff'; // 测试环境
20
20
  }
21
21
  /**
22
22
  * 根据环境获取微信云环境标识符
@@ -25,7 +25,7 @@ export async function callApi(url, request) {
25
25
  console.error(`ecommerce-backend-bff-service 异常: ${axiosError.message},requestId: ${requestId}`);
26
26
  console.info('响应信息', data.message);
27
27
  console.error('异常堆栈', JSON.stringify(error.stack));
28
- throw new Error(data.errorType + ' - ' + data.message);
28
+ throw error;
29
29
  }
30
30
  console.error(`ecommerce-backend-bff-service 未知异常: ${axiosError.message}`, error.stack);
31
31
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-backend-bff-service-node-sdk",
3
- "version": "0.0.118",
3
+ "version": "0.0.120",
4
4
  "description": "EcommerceBackendBffService Node.js SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./cjs/index.js",
@@ -24,21 +24,21 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@be-link/ecommerce-backend-user-service-node-sdk": "^0.0.10",
28
- "@be-link/ecommerce-product-service-node-sdk": "^0.0.32",
29
- "@be-link/ecommerce-volcengine-open-api-sdk": "^1.0.11",
30
- "@be-link/ecommerce-client-backend-service-node-sdk": "^0.0.19",
31
- "@be-link/ecommerce-store-service-node-sdk": "^0.1.2",
32
- "@be-link/ecommerce-user-service-node-sdk": "0.0.28",
33
- "@be-link/ecommerce-trade-service-node-sdk": "0.0.64",
34
- "@be-link/ecommerce-task-center-service-node-sdk": "^0.0.45",
27
+ "@be-link/ecommerce-trade-service-node-sdk": "^0.1.3",
28
+ "@be-link/ecommerce-backend-user-service-node-sdk": "^0.1.6",
29
+ "@be-link/ecommerce-volcengine-open-api-sdk": "^1.0.22",
30
+ "@be-link/ecommerce-client-backend-service-node-sdk": "^0.1.1",
35
31
  "@be-link/ecommerce-tag-service-node-sdk": "^0.1.1",
36
- "@be-link/ecommerce-promotion-service-node-sdk": "^0.0.36",
37
- "axios": "1.13.2"
32
+ "@be-link/ecommerce-store-service-node-sdk": "^0.1.3",
33
+ "@be-link/ecommerce-promotion-service-node-sdk": "^0.1.3",
34
+ "axios": "^1.13.2",
35
+ "@be-link/ecommerce-user-service-node-sdk": "^0.1.8",
36
+ "@be-link/ecommerce-product-service-node-sdk": "^0.1.2",
37
+ "@be-link/ecommerce-task-center-service-node-sdk": "^0.1.6"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/node": "^20.0.0",
41
40
  "tsoa": "^6.4.0",
41
+ "@types/node": "^20.0.0",
42
42
  "typescript": "^5.0.0"
43
43
  }
44
44
  }