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

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.
Files changed (117) hide show
  1. package/cjs/bff/modules/pandora/orderQuery/types.d.ts +4 -9
  2. package/cjs/bff/modules/pandora/product/types.d.ts +2 -2
  3. package/cjs/bff/modules/pandora/room/service.d.ts +0 -6
  4. package/cjs/bff/modules/pandora/room/service.js +0 -8
  5. package/cjs/bff/modules/pandora/room/types.d.ts +2 -21
  6. package/cjs/bff/modules/pandora/user/service.d.ts +0 -1
  7. package/cjs/bff/modules/pandora/user/service.js +0 -3
  8. package/cjs/bff/modules/pandora/user/types.d.ts +0 -16
  9. package/cjs/enums.d.ts +0 -6
  10. package/cjs/enums.js +5 -21
  11. package/cjs/index.d.ts +12 -41
  12. package/cjs/index.js +33 -54
  13. package/cjs/utils/env.js +2 -2
  14. package/cjs/utils/http.js +1 -1
  15. package/esm/bff/modules/pandora/orderQuery/types.d.ts +4 -9
  16. package/esm/bff/modules/pandora/product/types.d.ts +2 -2
  17. package/esm/bff/modules/pandora/room/service.d.ts +0 -6
  18. package/esm/bff/modules/pandora/room/service.mjs +0 -8
  19. package/esm/bff/modules/pandora/room/types.d.ts +2 -21
  20. package/esm/bff/modules/pandora/user/service.d.ts +0 -1
  21. package/esm/bff/modules/pandora/user/service.mjs +0 -3
  22. package/esm/bff/modules/pandora/user/types.d.ts +0 -16
  23. package/esm/enums.d.ts +0 -6
  24. package/esm/enums.mjs +0 -10
  25. package/esm/index.d.ts +12 -41
  26. package/esm/index.mjs +12 -33
  27. package/esm/utils/env.mjs +2 -2
  28. package/esm/utils/http.mjs +1 -1
  29. package/package.json +9 -11
  30. package/cjs/bff/modules/pandora/pointRule/service.d.ts +0 -53
  31. package/cjs/bff/modules/pandora/pointRule/service.js +0 -75
  32. package/cjs/bff/modules/pandora/pointRule/types.d.ts +0 -38
  33. package/cjs/bff/modules/pandora/pointRule/types.js +0 -2
  34. package/cjs/bff/modules/pandora/pointsMall/service.d.ts +0 -47
  35. package/cjs/bff/modules/pandora/pointsMall/service.js +0 -67
  36. package/cjs/bff/modules/pandora/pointsMall/types.d.ts +0 -177
  37. package/cjs/bff/modules/pandora/pointsMall/types.js +0 -2
  38. package/cjs/bff/modules/pandora/store/service.d.ts +0 -95
  39. package/cjs/bff/modules/pandora/store/service.js +0 -131
  40. package/cjs/bff/modules/pandora/store/types.d.ts +0 -879
  41. package/cjs/bff/modules/pandora/store/types.js +0 -2
  42. package/cjs/bff/modules/pandora/task/service.d.ts +0 -65
  43. package/cjs/bff/modules/pandora/task/service.js +0 -91
  44. package/cjs/bff/modules/pandora/task/types.d.ts +0 -36
  45. package/cjs/bff/modules/pandora/task/types.js +0 -2
  46. package/cjs/bff/modules/pandora/taskWatch/service.d.ts +0 -23
  47. package/cjs/bff/modules/pandora/taskWatch/service.js +0 -35
  48. package/cjs/bff/modules/pandora/taskWatch/types.d.ts +0 -15
  49. package/cjs/bff/modules/pandora/taskWatch/types.js +0 -2
  50. package/cjs/bff/modules/pandora/userManager/service/address.service.d.ts +0 -12
  51. package/cjs/bff/modules/pandora/userManager/service/address.service.js +0 -32
  52. package/cjs/bff/modules/pandora/userManager/service/coupon.service.d.ts +0 -11
  53. package/cjs/bff/modules/pandora/userManager/service/coupon.service.js +0 -29
  54. package/cjs/bff/modules/pandora/userManager/service/index.d.ts +0 -5
  55. package/cjs/bff/modules/pandora/userManager/service/index.js +0 -21
  56. package/cjs/bff/modules/pandora/userManager/service/point.service.d.ts +0 -13
  57. package/cjs/bff/modules/pandora/userManager/service/point.service.js +0 -35
  58. package/cjs/bff/modules/pandora/userManager/service/region.service.d.ts +0 -14
  59. package/cjs/bff/modules/pandora/userManager/service/region.service.js +0 -38
  60. package/cjs/bff/modules/pandora/userManager/service/user.service.d.ts +0 -12
  61. package/cjs/bff/modules/pandora/userManager/service/user.service.js +0 -32
  62. package/cjs/bff/modules/pandora/userManager/types/address.types.d.ts +0 -18
  63. package/cjs/bff/modules/pandora/userManager/types/address.types.js +0 -6
  64. package/cjs/bff/modules/pandora/userManager/types/coupon.types.d.ts +0 -17
  65. package/cjs/bff/modules/pandora/userManager/types/coupon.types.js +0 -6
  66. package/cjs/bff/modules/pandora/userManager/types/index.d.ts +0 -5
  67. package/cjs/bff/modules/pandora/userManager/types/index.js +0 -21
  68. package/cjs/bff/modules/pandora/userManager/types/point.types.d.ts +0 -19
  69. package/cjs/bff/modules/pandora/userManager/types/point.types.js +0 -6
  70. package/cjs/bff/modules/pandora/userManager/types/region.types.d.ts +0 -20
  71. package/cjs/bff/modules/pandora/userManager/types/region.types.js +0 -6
  72. package/cjs/bff/modules/pandora/userManager/types/user.types.d.ts +0 -18
  73. package/cjs/bff/modules/pandora/userManager/types/user.types.js +0 -6
  74. package/esm/bff/modules/pandora/pointRule/service.d.ts +0 -53
  75. package/esm/bff/modules/pandora/pointRule/service.mjs +0 -68
  76. package/esm/bff/modules/pandora/pointRule/types.d.ts +0 -38
  77. package/esm/bff/modules/pandora/pointRule/types.mjs +0 -1
  78. package/esm/bff/modules/pandora/pointsMall/service.d.ts +0 -47
  79. package/esm/bff/modules/pandora/pointsMall/service.mjs +0 -60
  80. package/esm/bff/modules/pandora/pointsMall/types.d.ts +0 -177
  81. package/esm/bff/modules/pandora/pointsMall/types.mjs +0 -1
  82. package/esm/bff/modules/pandora/store/service.d.ts +0 -95
  83. package/esm/bff/modules/pandora/store/service.mjs +0 -124
  84. package/esm/bff/modules/pandora/store/types.d.ts +0 -879
  85. package/esm/bff/modules/pandora/store/types.mjs +0 -1
  86. package/esm/bff/modules/pandora/task/service.d.ts +0 -65
  87. package/esm/bff/modules/pandora/task/service.mjs +0 -84
  88. package/esm/bff/modules/pandora/task/types.d.ts +0 -36
  89. package/esm/bff/modules/pandora/task/types.mjs +0 -1
  90. package/esm/bff/modules/pandora/taskWatch/service.d.ts +0 -23
  91. package/esm/bff/modules/pandora/taskWatch/service.mjs +0 -28
  92. package/esm/bff/modules/pandora/taskWatch/types.d.ts +0 -15
  93. package/esm/bff/modules/pandora/taskWatch/types.mjs +0 -1
  94. package/esm/bff/modules/pandora/userManager/service/address.service.d.ts +0 -12
  95. package/esm/bff/modules/pandora/userManager/service/address.service.mjs +0 -25
  96. package/esm/bff/modules/pandora/userManager/service/coupon.service.d.ts +0 -11
  97. package/esm/bff/modules/pandora/userManager/service/coupon.service.mjs +0 -22
  98. package/esm/bff/modules/pandora/userManager/service/index.d.ts +0 -5
  99. package/esm/bff/modules/pandora/userManager/service/index.mjs +0 -5
  100. package/esm/bff/modules/pandora/userManager/service/point.service.d.ts +0 -13
  101. package/esm/bff/modules/pandora/userManager/service/point.service.mjs +0 -28
  102. package/esm/bff/modules/pandora/userManager/service/region.service.d.ts +0 -14
  103. package/esm/bff/modules/pandora/userManager/service/region.service.mjs +0 -31
  104. package/esm/bff/modules/pandora/userManager/service/user.service.d.ts +0 -12
  105. package/esm/bff/modules/pandora/userManager/service/user.service.mjs +0 -25
  106. package/esm/bff/modules/pandora/userManager/types/address.types.d.ts +0 -18
  107. package/esm/bff/modules/pandora/userManager/types/address.types.mjs +0 -3
  108. package/esm/bff/modules/pandora/userManager/types/coupon.types.d.ts +0 -17
  109. package/esm/bff/modules/pandora/userManager/types/coupon.types.mjs +0 -3
  110. package/esm/bff/modules/pandora/userManager/types/index.d.ts +0 -5
  111. package/esm/bff/modules/pandora/userManager/types/index.mjs +0 -5
  112. package/esm/bff/modules/pandora/userManager/types/point.types.d.ts +0 -19
  113. package/esm/bff/modules/pandora/userManager/types/point.types.mjs +0 -3
  114. package/esm/bff/modules/pandora/userManager/types/region.types.d.ts +0 -20
  115. package/esm/bff/modules/pandora/userManager/types/region.types.mjs +0 -3
  116. package/esm/bff/modules/pandora/userManager/types/user.types.d.ts +0 -18
  117. package/esm/bff/modules/pandora/userManager/types/user.types.mjs +0 -3
@@ -59,12 +59,6 @@ export declare namespace PandoraUserService {
59
59
  interface getStoreOptions {
60
60
  name?: string;
61
61
  }
62
- /**
63
- * 批量获取用户名称
64
- */
65
- interface getUserNamesByIds {
66
- ids: string[];
67
- }
68
62
  }
69
63
  namespace Response {
70
64
  /**
@@ -167,15 +161,6 @@ export declare namespace PandoraUserService {
167
161
  name: string;
168
162
  }>;
169
163
  }
170
- /**
171
- * 批量获取用户名称响应
172
- */
173
- interface getUserNamesByIds {
174
- users: Array<{
175
- id: string;
176
- name: string;
177
- }>;
178
- }
179
164
  }
180
165
  /**
181
166
  * User Controller 接口定义
@@ -189,6 +174,5 @@ export declare namespace PandoraUserService {
189
174
  getUserInfoByRole(): Promise<StandardResponse<Response.getUserInfoByRole>>;
190
175
  getUserRolePermissions(request: Request.getUserRolePermissions): Promise<StandardResponse<Response.getUserRolePermissions>>;
191
176
  getStoreOptions(request: Request.getStoreOptions): Promise<StandardResponse<Response.getStoreOptions>>;
192
- getUserNamesByIds(request: Request.getUserNamesByIds): Promise<StandardResponse<Response.getUserNamesByIds>>;
193
177
  }
194
178
  }
package/esm/enums.d.ts CHANGED
@@ -3,11 +3,5 @@
3
3
  * 集中管理所有第三方服务 SDK 的枚举和常量
4
4
  */
5
5
  export { ENUM as PRODUCT_SERVICE_ENUM } from '@be-link/ecommerce-product-service-node-sdk/enum';
6
- export { ENUM as STORE_SERVICE_ENUM } from '@be-link/ecommerce-store-service-node-sdk/enums';
7
- export { ENUM as PROMOTION_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
8
6
  export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
9
7
  export { ENUM as PROMOTION_SERVICE_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
10
- export { ENUM as USER_SERVICE_ENUM } from '@be-link/ecommerce-user-service-node-sdk/enum';
11
- export { ENUM as TRADE_SERVICE_ENUM } from '@be-link/ecommerce-trade-service-node-sdk/enums';
12
- export { ENUM as TASK_CENTER_ENUM } from '@be-link/ecommerce-task-center-service-node-sdk/enum';
13
- export { ENUM as BACKEND_SERVICE_ENUM } from '@be-link/ecommerce-backend-user-service-node-sdk/enum';
package/esm/enums.mjs CHANGED
@@ -4,17 +4,7 @@
4
4
  */
5
5
  // 商品服务枚举
6
6
  export { ENUM as PRODUCT_SERVICE_ENUM } from '@be-link/ecommerce-product-service-node-sdk/enum';
7
- export { ENUM as STORE_SERVICE_ENUM } from '@be-link/ecommerce-store-service-node-sdk/enums';
8
- export { ENUM as PROMOTION_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
9
7
  // 直播间枚举
10
8
  export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
11
9
  // 优惠券服务枚举
12
10
  export { ENUM as PROMOTION_SERVICE_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
13
- // 用户服务枚举
14
- export { ENUM as USER_SERVICE_ENUM } from '@be-link/ecommerce-user-service-node-sdk/enum';
15
- // 交易服务枚举
16
- export { ENUM as TRADE_SERVICE_ENUM } from '@be-link/ecommerce-trade-service-node-sdk/enums';
17
- // 任务中心服务枚举
18
- export { ENUM as TASK_CENTER_ENUM } from '@be-link/ecommerce-task-center-service-node-sdk/enum';
19
- // 后台用户枚举
20
- export { ENUM as BACKEND_SERVICE_ENUM } from '@be-link/ecommerce-backend-user-service-node-sdk/enum';
package/esm/index.d.ts CHANGED
@@ -1,34 +1,24 @@
1
- import { PandoraStoreService } from './bff/modules/pandora/store/service';
1
+ import { PandoraExampleService } from './bff/modules/pandora/example/service';
2
2
  import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
3
3
  import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service';
4
4
  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
- import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
13
8
  import { PandoraRoleService } from './bff/modules/pandora/role/service';
14
- import { PandoraRoomService } from './bff/modules/pandora/room/service';
15
9
  import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service';
16
10
  import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service';
17
11
  import { PandoraUserService } from './bff/modules/pandora/user/service';
18
- import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service';
19
- import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service';
20
- import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service';
21
- import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service';
22
- import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service';
23
- import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service';
24
- import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service';
25
- import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service';
26
- import { PandoraTaskService } from './bff/modules/pandora/task/service';
27
- import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service';
28
- import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service';
12
+ import { PandoraProductService } from './bff/modules/pandora/product/service';
13
+ import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
14
+ import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
15
+ import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
16
+ import { PandoraRoomService } from './bff/modules/pandora/room/service';
29
17
  import { PandoraAwardService } from './bff/modules/pandora/award/service';
30
18
  import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service';
31
19
  import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service';
20
+ import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service';
21
+ import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service';
32
22
  import { SdkOptions } from './types';
33
23
  /**
34
24
  * Pandora 平台 SDK(管理后台)
@@ -51,34 +41,21 @@ export declare class PandoraSDK {
51
41
  storeClerk: PandoraStoreClerkService;
52
42
  storeManager: PandoraStoreManagerService;
53
43
  user: PandoraUserService;
54
- userManagement: PandoraUserManagementService;
55
- pointManagement: PandoraPointManagementService;
56
- couponManagement: PandoraCouponManagementService;
57
- addressManagement: PandoraAddressManagementService;
58
- regionManagement: PandoraRegionManagementService;
59
44
  product: PandoraProductService;
60
45
  productExp: PandoraProductExpService;
61
46
  productLive: PandoraProductLiveService;
62
47
  coupon: PandoraCouponService;
63
- pointMall: PandoraPointsMallService;
64
- /**
65
- * Pandora 门店服务模块
66
- */
67
- store: PandoraStoreService;
68
48
  award: PandoraAwardService;
69
49
  /**
70
50
  * 直播间模块
71
51
  */
72
52
  room: PandoraRoomService;
73
- orderQuery: PandoraOrderQueryService;
74
- orderCore: PandoraOrderCoreService;
75
- task: PandoraTaskService;
76
- taskWatch: PandoraTaskWatchService;
77
- pointRule: PandoraPointRuleService;
78
53
  /**
79
54
  * 加盟商模块
80
55
  */
81
56
  franchisee: PandoraFranchiseeService;
57
+ orderQuery: PandoraOrderQueryService;
58
+ orderCore: PandoraOrderCoreService;
82
59
  /**
83
60
  * 使用配置选项初始化 Pandora SDK
84
61
  * @param options - SDK 配置,包含凭证回调函数
@@ -112,13 +89,12 @@ export declare class MiniProgramSDK {
112
89
  */
113
90
  constructor(options: SdkOptions);
114
91
  }
115
- export { BizError, SdkError, SystemError } from './errors';
116
- export { IRequestStrategy, SdkOptions, StandardResponse } from './types';
92
+ export { SdkError, BizError, SystemError } from './errors';
93
+ export { SdkOptions, IRequestStrategy, StandardResponse } from './types';
117
94
  export * from './enums';
118
95
  export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
119
96
  export { MiniprogramAuthService as MiniprogramAuthServiceTypes } from './bff/modules/miniprogram/auth/types';
120
97
  export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
121
- export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types';
122
98
  export { PandoraAuthService as PandoraAuthServiceTypes } from './bff/modules/pandora/auth/types';
123
99
  export { PandoraBDService as PandoraBDServiceTypes } from './bff/modules/pandora/bd/types';
124
100
  export { PandoraBDMService as PandoraBDMServiceTypes } from './bff/modules/pandora/bdm/types';
@@ -127,18 +103,13 @@ export { PandoraRoleService as PandoraRoleServiceTypes } from './bff/modules/pan
127
103
  export { PandoraStoreClerkService as PandoraStoreClerkServiceTypes } from './bff/modules/pandora/storeClerk/types';
128
104
  export { PandoraStoreManagerService as PandoraStoreManagerServiceTypes } from './bff/modules/pandora/storeManager/types';
129
105
  export { PandoraUserService as PandoraUserServiceTypes } from './bff/modules/pandora/user/types';
130
- export * from './bff/modules/pandora/userManager/types';
131
106
  export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
132
107
  export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
133
108
  export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
134
109
  export { PandoraOrderQueryService as PandoraOrderQueryServiceTypes } from './bff/modules/pandora/orderQuery/types';
135
110
  export { PandoraOrderCoreService as PandoraOrderCoreServiceTypes } from './bff/modules/pandora/orderCore/types';
136
- export { PandoraTaskService as PandoraTaskServiceTypes } from './bff/modules/pandora/task/types';
137
- export { PandoraTaskWatchService as PandoraTaskWatchServiceTypes } from './bff/modules/pandora/taskWatch/types';
138
- export { PandoraPointRuleService as PandoraPointRuleServiceTypes } from './bff/modules/pandora/pointRule/types';
139
111
  export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
140
112
  export { CouponService as PandoraCouponServiceTypes } from './bff/modules/pandora/coupon/types';
141
- export { PointMallService as PointMallServiceTypes } from './bff/modules/pandora/pointsMall/types';
142
113
  export { AwardService as PandoraAwardServiceTypes } from './bff/modules/pandora/award/types';
143
114
  export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff/modules/pandora/franchisee/types';
144
115
  export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
package/esm/index.mjs CHANGED
@@ -1,35 +1,25 @@
1
- import { PandoraStoreService } from './bff/modules/pandora/store/service.mjs';
1
+ import { HttpClient } from './bff/request/client.mjs';
2
+ import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
2
3
  import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service.mjs';
3
4
  import { MiniprogramAuthServiceClass } from './bff/modules/miniprogram/auth/service.mjs';
4
5
  import { PandoraAuthService } from './bff/modules/pandora/auth/service.mjs';
5
6
  import { PandoraBDService } from './bff/modules/pandora/bd/service.mjs';
6
7
  import { PandoraBDMService } from './bff/modules/pandora/bdm/service.mjs';
7
8
  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
- import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service.mjs';
13
9
  import { PandoraRoleService } from './bff/modules/pandora/role/service.mjs';
14
- import { PandoraRoomService } from './bff/modules/pandora/room/service.mjs';
15
10
  import { PandoraStoreClerkService } from './bff/modules/pandora/storeClerk/service.mjs';
16
11
  import { PandoraStoreManagerService } from './bff/modules/pandora/storeManager/service.mjs';
17
12
  import { PandoraUserService } from './bff/modules/pandora/user/service.mjs';
18
- import { PandoraUserManagementService } from './bff/modules/pandora/userManager/service/user.service.mjs';
19
- import { PandoraPointManagementService } from './bff/modules/pandora/userManager/service/point.service.mjs';
20
- import { PandoraCouponManagementService } from './bff/modules/pandora/userManager/service/coupon.service.mjs';
21
- import { PandoraAddressManagementService } from './bff/modules/pandora/userManager/service/address.service.mjs';
22
- import { PandoraRegionManagementService } from './bff/modules/pandora/userManager/service/region.service.mjs';
23
- import { HttpClient } from './bff/request/client.mjs';
24
- import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service.mjs';
25
- import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service.mjs';
26
- import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service.mjs';
27
- import { PandoraTaskService } from './bff/modules/pandora/task/service.mjs';
28
- import { PandoraTaskWatchService } from './bff/modules/pandora/taskWatch/service.mjs';
29
- import { PandoraPointRuleService } from './bff/modules/pandora/pointRule/service.mjs';
13
+ import { PandoraProductService } from './bff/modules/pandora/product/service.mjs';
14
+ import { PandoraProductExpService } from './bff/modules/pandora/productExp/service.mjs';
15
+ import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service.mjs';
16
+ import { PandoraCouponService } from './bff/modules/pandora/coupon/service.mjs';
17
+ import { PandoraRoomService } from './bff/modules/pandora/room/service.mjs';
30
18
  import { PandoraAwardService } from './bff/modules/pandora/award/service.mjs';
31
19
  import { PandoraFranchiseeService } from './bff/modules/pandora/franchisee/service.mjs';
32
20
  import { MiniprogramFranchiseeService } from './bff/modules/miniprogram/franchisee/service.mjs';
21
+ import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service.mjs';
22
+ import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service.mjs';
33
23
  /**
34
24
  * Pandora 平台 SDK(管理后台)
35
25
  * 包含所有 Pandora 平台相关的服务
@@ -55,22 +45,12 @@ export class PandoraSDK {
55
45
  this.product = new PandoraProductService(this.http);
56
46
  this.productExp = new PandoraProductExpService(this.http);
57
47
  this.productLive = new PandoraProductLiveService(this.http);
58
- this.store = new PandoraStoreService(this.http);
59
48
  this.room = new PandoraRoomService(this.http);
60
49
  this.coupon = new PandoraCouponService(this.http);
61
- this.userManagement = new PandoraUserManagementService(this.http);
62
- this.pointManagement = new PandoraPointManagementService(this.http);
63
- this.couponManagement = new PandoraCouponManagementService(this.http);
64
- this.addressManagement = new PandoraAddressManagementService(this.http);
65
- this.regionManagement = new PandoraRegionManagementService(this.http);
66
- this.pointMall = new PandoraPointsMallService(this.http);
67
- this.orderQuery = new PandoraOrderQueryService(this.http);
68
- this.orderCore = new PandoraOrderCoreService(this.http);
69
- this.task = new PandoraTaskService(this.http);
70
- this.taskWatch = new PandoraTaskWatchService(this.http);
71
- this.pointRule = new PandoraPointRuleService(this.http);
72
50
  this.award = new PandoraAwardService(this.http);
73
51
  this.franchisee = new PandoraFranchiseeService(this.http);
52
+ this.orderQuery = new PandoraOrderQueryService(this.http);
53
+ this.orderCore = new PandoraOrderCoreService(this.http);
74
54
  }
75
55
  }
76
56
  /**
@@ -93,7 +73,6 @@ export class MiniProgramSDK {
93
73
  }
94
74
  // ==================== 导出 ====================
95
75
  // 错误类
96
- export { BizError, SdkError, SystemError } from './errors/index.mjs';
76
+ export { SdkError, BizError, SystemError } from './errors/index.mjs';
97
77
  // 枚举和常量
98
78
  export * from './enums.mjs';
99
- export * from './bff/modules/pandora/userManager/types/index.mjs';
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.1.0",
4
4
  "description": "EcommerceBackendBffService Node.js SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./cjs/index.js",
@@ -24,21 +24,19 @@
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",
27
+ "@be-link/ecommerce-trade-service-node-sdk": "0.1.1",
28
+ "@be-link/ecommerce-backend-user-service-node-sdk": "^0.0.8",
29
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",
30
+ "@be-link/ecommerce-client-backend-service-node-sdk": "^0.0.7",
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.0.12",
33
+ "@be-link/ecommerce-promotion-service-node-sdk": "^0.1.2",
34
+ "axios": "1.13.2",
35
+ "@be-link/ecommerce-product-service-node-sdk": "0.0.32"
38
36
  },
39
37
  "devDependencies": {
40
- "@types/node": "^20.0.0",
41
38
  "tsoa": "^6.4.0",
39
+ "@types/node": "^20.0.0",
42
40
  "typescript": "^5.0.0"
43
41
  }
44
42
  }
@@ -1,53 +0,0 @@
1
- import { PandoraPointRuleService as Service } from './types';
2
- import BaseService from '../../BaseService';
3
- import type { StandardResponse } from '../../../../types';
4
- /**
5
- * PandoraPointRuleService - Pandora 积分规则服务模块
6
- * 提供积分规则管理相关的 API 方法
7
- * 平台: pandora
8
- */
9
- export declare class PandoraPointRuleService extends BaseService implements Service.PointRuleController {
10
- protected prefixUrl: string;
11
- /**
12
- * 创建积分规则
13
- * @param request - 请求参数
14
- * @returns Promise,解析为标准响应格式
15
- */
16
- createPointRule(request: Service.Request.createPointRule): Promise<StandardResponse<Service.Response.createPointRule>>;
17
- /**
18
- * 修改积分规则
19
- * @param request - 请求参数
20
- * @returns Promise,解析为标准响应格式
21
- */
22
- updatePointRule(request: Service.Request.updatePointRule): Promise<StandardResponse<Service.Response.updatePointRule>>;
23
- /**
24
- * 删除积分规则
25
- * @param request - 请求参数
26
- * @returns Promise,解析为标准响应格式
27
- */
28
- deletePointRule(request: Service.Request.deletePointRule): Promise<StandardResponse<Service.Response.deletePointRule>>;
29
- /**
30
- * 查询积分规则
31
- * @param request - 请求参数
32
- * @returns Promise,解析为标准响应格式
33
- */
34
- queryPointRule(request: Service.Request.queryPointRule): Promise<StandardResponse<Service.Response.queryPointRule>>;
35
- /**
36
- * 查询商品命中的积分规则
37
- * @param request - 请求参数
38
- * @returns Promise,解析为标准响应格式
39
- */
40
- queryPointRuleByProduct(request: Service.Request.queryPointRuleByProduct): Promise<StandardResponse<Service.Response.queryPointRuleByProduct>>;
41
- /**
42
- * 根据规则ID查询关联的商品列表
43
- * @param request - 请求参数
44
- * @returns Promise,解析为标准响应格式
45
- */
46
- queryProductsByRuleId(request: Service.Request.queryProductsByRuleId): Promise<StandardResponse<Service.Response.queryProductsByRuleId>>;
47
- /**
48
- * 查询积分规则操作日志
49
- * @param request - 请求参数
50
- * @returns Promise,解析为标准响应格式
51
- */
52
- queryPointRuleOperationLog(request: Service.Request.queryPointRuleOperationLog): Promise<StandardResponse<Service.Response.queryPointRuleOperationLog>>;
53
- }
@@ -1,75 +0,0 @@
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.PandoraPointRuleService = void 0;
7
- const BaseService_1 = __importDefault(require("../../BaseService"));
8
- /**
9
- * PandoraPointRuleService - Pandora 积分规则服务模块
10
- * 提供积分规则管理相关的 API 方法
11
- * 平台: pandora
12
- */
13
- class PandoraPointRuleService extends BaseService_1.default {
14
- constructor() {
15
- super(...arguments);
16
- this.prefixUrl = '/pointRule';
17
- }
18
- /**
19
- * 创建积分规则
20
- * @param request - 请求参数
21
- * @returns Promise,解析为标准响应格式
22
- */
23
- createPointRule(request) {
24
- return this.request(this.createPointRule, request);
25
- }
26
- /**
27
- * 修改积分规则
28
- * @param request - 请求参数
29
- * @returns Promise,解析为标准响应格式
30
- */
31
- updatePointRule(request) {
32
- return this.request(this.updatePointRule, request);
33
- }
34
- /**
35
- * 删除积分规则
36
- * @param request - 请求参数
37
- * @returns Promise,解析为标准响应格式
38
- */
39
- deletePointRule(request) {
40
- return this.request(this.deletePointRule, request);
41
- }
42
- /**
43
- * 查询积分规则
44
- * @param request - 请求参数
45
- * @returns Promise,解析为标准响应格式
46
- */
47
- queryPointRule(request) {
48
- return this.request(this.queryPointRule, request);
49
- }
50
- /**
51
- * 查询商品命中的积分规则
52
- * @param request - 请求参数
53
- * @returns Promise,解析为标准响应格式
54
- */
55
- queryPointRuleByProduct(request) {
56
- return this.request(this.queryPointRuleByProduct, request);
57
- }
58
- /**
59
- * 根据规则ID查询关联的商品列表
60
- * @param request - 请求参数
61
- * @returns Promise,解析为标准响应格式
62
- */
63
- queryProductsByRuleId(request) {
64
- return this.request(this.queryProductsByRuleId, request);
65
- }
66
- /**
67
- * 查询积分规则操作日志
68
- * @param request - 请求参数
69
- * @returns Promise,解析为标准响应格式
70
- */
71
- queryPointRuleOperationLog(request) {
72
- return this.request(this.queryPointRuleOperationLog, request);
73
- }
74
- }
75
- exports.PandoraPointRuleService = PandoraPointRuleService;
@@ -1,38 +0,0 @@
1
- import type { PointRuleControllerTypes } from '@be-link/ecommerce-task-center-service-node-sdk';
2
- import { StandardResponse } from '../../../../types';
3
- export declare namespace PandoraPointRuleService {
4
- namespace Request {
5
- type createPointRule = PointRuleControllerTypes.Request.createPointRule;
6
- type updatePointRule = PointRuleControllerTypes.Request.updatePointRule;
7
- type deletePointRule = PointRuleControllerTypes.Request.deletePointRule;
8
- type queryPointRule = PointRuleControllerTypes.Request.queryPointRule;
9
- type queryPointRuleByProduct = PointRuleControllerTypes.Request.queryPointRuleByProduct;
10
- type queryProductsByRuleId = PointRuleControllerTypes.Request.queryProductsByRuleId;
11
- type queryPointRuleOperationLog = PointRuleControllerTypes.Request.queryPointRuleOperationLog;
12
- }
13
- namespace Response {
14
- type createPointRule = PointRuleControllerTypes.Response.createPointRule;
15
- type updatePointRule = PointRuleControllerTypes.Response.updatePointRule;
16
- type deletePointRule = PointRuleControllerTypes.Response.deletePointRule;
17
- type queryPointRule = PointRuleControllerTypes.Response.queryPointRule;
18
- type queryPointRuleByProduct = PointRuleControllerTypes.Response.queryPointRuleByProduct;
19
- type queryProductsByRuleId = PointRuleControllerTypes.Response.queryProductsByRuleId;
20
- type queryPointRuleOperationLog = PointRuleControllerTypes.Response.queryPointRuleOperationLog;
21
- }
22
- interface PointRuleController {
23
- /** 创建积分规则 */
24
- createPointRule(request: Request.createPointRule): Promise<StandardResponse<Response.createPointRule>>;
25
- /** 修改积分规则 */
26
- updatePointRule(request: Request.updatePointRule): Promise<StandardResponse<Response.updatePointRule>>;
27
- /** 删除积分规则 */
28
- deletePointRule(request: Request.deletePointRule): Promise<StandardResponse<Response.deletePointRule>>;
29
- /** 查询积分规则 */
30
- queryPointRule(request: Request.queryPointRule): Promise<StandardResponse<Response.queryPointRule>>;
31
- /** 查询商品命中的积分规则 */
32
- queryPointRuleByProduct(request: Request.queryPointRuleByProduct): Promise<StandardResponse<Response.queryPointRuleByProduct>>;
33
- /** 根据规则ID查询关联的商品列表 */
34
- queryProductsByRuleId(request: Request.queryProductsByRuleId): Promise<StandardResponse<Response.queryProductsByRuleId>>;
35
- /** 查询积分规则操作日志 */
36
- queryPointRuleOperationLog(request: Request.queryPointRuleOperationLog): Promise<StandardResponse<Response.queryPointRuleOperationLog>>;
37
- }
38
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,47 +0,0 @@
1
- import { PointMallService } from './types';
2
- import BaseService from '../../BaseService';
3
- import type { StandardResponse } from '../../../../types';
4
- /**
5
- * PandoraPointsMallService - Pandora Points Mall 服务模块
6
- * 提供积分商城管理相关的 API 方法
7
- * 平台: pandora
8
- */
9
- export declare class PandoraPointsMallService extends BaseService implements PointMallService.Controller.PointsMallController {
10
- protected prefixUrl: string;
11
- /**
12
- * 批量创建积分商城商品
13
- * @param request - 请求参数
14
- * @returns Promise,解析为标准响应格式
15
- */
16
- batchCreateProducts(request: PointMallService.Request.batchCreateProducts): Promise<StandardResponse<PointMallService.Response.batchCreateProducts>>;
17
- /**
18
- * 批量编辑积分商城商品
19
- * @param request - 请求参数
20
- * @returns Promise,解析为标准响应格式
21
- */
22
- batchUpdateProducts(request: PointMallService.Request.batchUpdateProducts): Promise<StandardResponse<void>>;
23
- /**
24
- * 批量是否开启
25
- * @param request - 请求参数
26
- * @returns Promise,解析为标准响应格式
27
- */
28
- batchToggleProductEnabled(request: PointMallService.Request.batchToggleProductEnabled): Promise<StandardResponse<void>>;
29
- /**
30
- * 根据条件查询积分商城商品
31
- * @param request - 请求参数
32
- * @returns Promise,解析为标准响应格式
33
- */
34
- queryProducts(request: PointMallService.Request.queryProducts): Promise<StandardResponse<PointMallService.Response.queryProducts>>;
35
- /**
36
- * 根据商品ID查询商品详情
37
- * @param request - 请求参数
38
- * @returns Promise,解析为标准响应格式
39
- */
40
- getProductDetail(request: PointMallService.Request.getProductDetail): Promise<StandardResponse<PointMallService.Response.getProductDetail>>;
41
- /**
42
- * 查询开启且上架的积分商城列表
43
- * @param request - 请求参数
44
- * @returns Promise,解析为标准响应格式
45
- */
46
- queryEnabledAndOnlineProducts(request: PointMallService.Request.queryEnabledAndOnlineProducts): Promise<StandardResponse<PointMallService.Response.queryEnabledAndOnlineProducts>>;
47
- }
@@ -1,67 +0,0 @@
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.PandoraPointsMallService = void 0;
7
- const BaseService_1 = __importDefault(require("../../BaseService"));
8
- /**
9
- * PandoraPointsMallService - Pandora Points Mall 服务模块
10
- * 提供积分商城管理相关的 API 方法
11
- * 平台: pandora
12
- */
13
- class PandoraPointsMallService extends BaseService_1.default {
14
- constructor() {
15
- super(...arguments);
16
- this.prefixUrl = '/pandora/points-mall';
17
- }
18
- /**
19
- * 批量创建积分商城商品
20
- * @param request - 请求参数
21
- * @returns Promise,解析为标准响应格式
22
- */
23
- batchCreateProducts(request) {
24
- return this.request(this.batchCreateProducts, request);
25
- }
26
- /**
27
- * 批量编辑积分商城商品
28
- * @param request - 请求参数
29
- * @returns Promise,解析为标准响应格式
30
- */
31
- batchUpdateProducts(request) {
32
- return this.request(this.batchUpdateProducts, request);
33
- }
34
- /**
35
- * 批量是否开启
36
- * @param request - 请求参数
37
- * @returns Promise,解析为标准响应格式
38
- */
39
- batchToggleProductEnabled(request) {
40
- return this.request(this.batchToggleProductEnabled, request);
41
- }
42
- /**
43
- * 根据条件查询积分商城商品
44
- * @param request - 请求参数
45
- * @returns Promise,解析为标准响应格式
46
- */
47
- queryProducts(request) {
48
- return this.request(this.queryProducts, request);
49
- }
50
- /**
51
- * 根据商品ID查询商品详情
52
- * @param request - 请求参数
53
- * @returns Promise,解析为标准响应格式
54
- */
55
- getProductDetail(request) {
56
- return this.request(this.getProductDetail, request);
57
- }
58
- /**
59
- * 查询开启且上架的积分商城列表
60
- * @param request - 请求参数
61
- * @returns Promise,解析为标准响应格式
62
- */
63
- queryEnabledAndOnlineProducts(request) {
64
- return this.request(this.queryEnabledAndOnlineProducts, request);
65
- }
66
- }
67
- exports.PandoraPointsMallService = PandoraPointsMallService;