@be-link/ecommerce-backend-bff-service-node-sdk 0.0.65 → 0.0.66

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 (75) hide show
  1. package/cjs/bff/modules/pandora/coupon/service.d.ts +59 -0
  2. package/cjs/bff/modules/pandora/coupon/service.js +83 -0
  3. package/cjs/bff/modules/pandora/coupon/types.d.ts +401 -0
  4. package/cjs/bff/modules/pandora/pointsMall/service.d.ts +53 -0
  5. package/cjs/bff/modules/pandora/pointsMall/service.js +75 -0
  6. package/cjs/bff/modules/pandora/pointsMall/types.d.ts +193 -0
  7. package/cjs/bff/modules/pandora/product/service.d.ts +13 -1
  8. package/cjs/bff/modules/pandora/product/service.js +16 -0
  9. package/cjs/bff/modules/pandora/product/types.d.ts +197 -11
  10. package/cjs/bff/modules/pandora/productExp/service.d.ts +17 -5
  11. package/cjs/bff/modules/pandora/productExp/service.js +23 -7
  12. package/cjs/bff/modules/pandora/productExp/types.d.ts +84 -16
  13. package/cjs/bff/modules/pandora/productLive/service.d.ts +1 -1
  14. package/cjs/bff/modules/pandora/productLive/types.d.ts +11 -1
  15. package/cjs/bff/modules/pandora/room/service.d.ts +6 -0
  16. package/cjs/bff/modules/pandora/room/service.js +8 -0
  17. package/cjs/bff/modules/pandora/room/types.d.ts +21 -2
  18. package/cjs/bff/modules/pandora/store/service.d.ts +125 -0
  19. package/cjs/bff/modules/pandora/store/service.js +171 -0
  20. package/cjs/bff/modules/pandora/store/types.d.ts +786 -0
  21. package/cjs/bff/modules/pandora/store/types.js +2 -0
  22. package/cjs/bff/modules/pandora/storeUserRelation/service.d.ts +41 -0
  23. package/cjs/bff/modules/pandora/storeUserRelation/service.js +59 -0
  24. package/cjs/bff/modules/pandora/storeUserRelation/types.d.ts +221 -0
  25. package/cjs/bff/modules/pandora/storeUserRelation/types.js +2 -0
  26. package/cjs/enums.d.ts +3 -0
  27. package/cjs/enums.js +10 -3
  28. package/cjs/index.d.ts +23 -6
  29. package/cjs/index.js +18 -12
  30. package/esm/bff/modules/pandora/coupon/service.d.ts +59 -0
  31. package/esm/bff/modules/pandora/coupon/service.mjs +76 -0
  32. package/esm/bff/modules/pandora/coupon/types.d.ts +401 -0
  33. package/esm/bff/modules/pandora/pointsMall/service.d.ts +53 -0
  34. package/esm/bff/modules/pandora/pointsMall/service.mjs +68 -0
  35. package/esm/bff/modules/pandora/pointsMall/types.d.ts +193 -0
  36. package/esm/bff/modules/pandora/product/service.d.ts +13 -1
  37. package/esm/bff/modules/pandora/product/service.mjs +16 -0
  38. package/esm/bff/modules/pandora/product/types.d.ts +197 -11
  39. package/esm/bff/modules/pandora/productExp/service.d.ts +17 -5
  40. package/esm/bff/modules/pandora/productExp/service.mjs +23 -7
  41. package/esm/bff/modules/pandora/productExp/types.d.ts +84 -16
  42. package/esm/bff/modules/pandora/productLive/service.d.ts +1 -1
  43. package/esm/bff/modules/pandora/productLive/types.d.ts +11 -1
  44. package/esm/bff/modules/pandora/room/service.d.ts +6 -0
  45. package/esm/bff/modules/pandora/room/service.mjs +8 -0
  46. package/esm/bff/modules/pandora/room/types.d.ts +21 -2
  47. package/esm/bff/modules/pandora/store/service.d.ts +125 -0
  48. package/esm/bff/modules/pandora/store/service.mjs +164 -0
  49. package/esm/bff/modules/pandora/store/types.d.ts +786 -0
  50. package/esm/bff/modules/pandora/store/types.mjs +1 -0
  51. package/esm/bff/modules/pandora/storeUserRelation/service.d.ts +41 -0
  52. package/esm/bff/modules/pandora/storeUserRelation/service.mjs +52 -0
  53. package/esm/bff/modules/pandora/storeUserRelation/types.d.ts +221 -0
  54. package/esm/bff/modules/pandora/storeUserRelation/types.mjs +1 -0
  55. package/esm/enums.d.ts +3 -0
  56. package/esm/enums.mjs +4 -0
  57. package/esm/index.d.ts +23 -6
  58. package/esm/index.mjs +10 -4
  59. package/package.json +8 -5
  60. package/cjs/bff/modules/pandora/orderCore/service.d.ts +0 -23
  61. package/cjs/bff/modules/pandora/orderCore/service.js +0 -35
  62. package/cjs/bff/modules/pandora/orderCore/types.d.ts +0 -15
  63. package/cjs/bff/modules/pandora/orderQuery/service.d.ts +0 -35
  64. package/cjs/bff/modules/pandora/orderQuery/service.js +0 -51
  65. package/cjs/bff/modules/pandora/orderQuery/types.d.ts +0 -21
  66. package/esm/bff/modules/pandora/orderCore/service.d.ts +0 -23
  67. package/esm/bff/modules/pandora/orderCore/service.mjs +0 -28
  68. package/esm/bff/modules/pandora/orderCore/types.d.ts +0 -15
  69. package/esm/bff/modules/pandora/orderQuery/service.d.ts +0 -35
  70. package/esm/bff/modules/pandora/orderQuery/service.mjs +0 -44
  71. package/esm/bff/modules/pandora/orderQuery/types.d.ts +0 -21
  72. /package/cjs/bff/modules/pandora/{orderCore → coupon}/types.js +0 -0
  73. /package/cjs/bff/modules/pandora/{orderQuery → pointsMall}/types.js +0 -0
  74. /package/esm/bff/modules/pandora/{orderCore → coupon}/types.mjs +0 -0
  75. /package/esm/bff/modules/pandora/{orderQuery → pointsMall}/types.mjs +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,41 @@
1
+ import { StoreUserRelationService as Service } from './types';
2
+ import BaseService from '../../BaseService';
3
+ import type { StandardResponse } from '../../../../types';
4
+ /**
5
+ * PandoraStoreUserRelationService - Pandora 门店用户关系服务模块
6
+ * 提供门店用户绑定关系管理相关的 API 方法
7
+ * 平台: pandora
8
+ */
9
+ export declare class PandoraStoreUserRelationService extends BaseService implements Service.StoreUserRelationController {
10
+ protected prefixUrl: string;
11
+ /**
12
+ * 绑定用户到门店(允许换绑)
13
+ * @param request - 请求参数
14
+ * @returns Promise,解析为标准响应格式
15
+ */
16
+ bindUserToStore(request: Service.Request.bindUserToStore): Promise<StandardResponse<Service.Response.bindUserToStore>>;
17
+ /**
18
+ * 批量绑定用户到门店(不允许重复绑定)
19
+ * @param request - 请求参数
20
+ * @returns Promise,解析为标准响应格式
21
+ */
22
+ batchBindUserToStore(request: Service.Request.batchBindUserToStore): Promise<StandardResponse<Service.Response.batchBindUserToStore>>;
23
+ /**
24
+ * 解绑用户
25
+ * @param request - 请求参数
26
+ * @returns Promise,解析为标准响应格式
27
+ */
28
+ unbindUserFromStore(request: Service.Request.unbindUserFromStore): Promise<StandardResponse<Service.Response.unbindUserFromStore>>;
29
+ /**
30
+ * 获取门店用户列表
31
+ * @param request - 请求参数
32
+ * @returns Promise,解析为标准响应格式
33
+ */
34
+ getStoreUsers(request: Service.Request.getStoreUsers): Promise<StandardResponse<Service.Response.getStoreUsers>>;
35
+ /**
36
+ * 获取用户绑定记录
37
+ * @param request - 请求参数
38
+ * @returns Promise,解析为标准响应格式
39
+ */
40
+ getUserBindingRecords(request: Service.Request.getUserBindingRecords): Promise<StandardResponse<Service.Response.getUserBindingRecords>>;
41
+ }
@@ -0,0 +1,59 @@
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.PandoraStoreUserRelationService = void 0;
7
+ const BaseService_1 = __importDefault(require("../../BaseService"));
8
+ /**
9
+ * PandoraStoreUserRelationService - Pandora 门店用户关系服务模块
10
+ * 提供门店用户绑定关系管理相关的 API 方法
11
+ * 平台: pandora
12
+ */
13
+ class PandoraStoreUserRelationService extends BaseService_1.default {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.prefixUrl = '/pandora/store-user-relation';
17
+ }
18
+ /**
19
+ * 绑定用户到门店(允许换绑)
20
+ * @param request - 请求参数
21
+ * @returns Promise,解析为标准响应格式
22
+ */
23
+ bindUserToStore(request) {
24
+ return this.request(this.bindUserToStore, request);
25
+ }
26
+ /**
27
+ * 批量绑定用户到门店(不允许重复绑定)
28
+ * @param request - 请求参数
29
+ * @returns Promise,解析为标准响应格式
30
+ */
31
+ batchBindUserToStore(request) {
32
+ return this.request(this.batchBindUserToStore, request);
33
+ }
34
+ /**
35
+ * 解绑用户
36
+ * @param request - 请求参数
37
+ * @returns Promise,解析为标准响应格式
38
+ */
39
+ unbindUserFromStore(request) {
40
+ return this.request(this.unbindUserFromStore, request);
41
+ }
42
+ /**
43
+ * 获取门店用户列表
44
+ * @param request - 请求参数
45
+ * @returns Promise,解析为标准响应格式
46
+ */
47
+ getStoreUsers(request) {
48
+ return this.request(this.getStoreUsers, request);
49
+ }
50
+ /**
51
+ * 获取用户绑定记录
52
+ * @param request - 请求参数
53
+ * @returns Promise,解析为标准响应格式
54
+ */
55
+ getUserBindingRecords(request) {
56
+ return this.request(this.getUserBindingRecords, request);
57
+ }
58
+ }
59
+ exports.PandoraStoreUserRelationService = PandoraStoreUserRelationService;
@@ -0,0 +1,221 @@
1
+ import { StandardResponse } from '../../../../types';
2
+ /**
3
+ * StoreUserRelation Service 的类型定义
4
+ * 基于 @be-link/ecommerce-store-service-node-sdk 的类型定义
5
+ * 使用命名空间组织类型,与后端 SDK 保持一致
6
+ */
7
+ export declare namespace StoreUserRelationService {
8
+ /**
9
+ * 实体定义
10
+ */
11
+ namespace Entity {
12
+ /**
13
+ * 门店用户绑定关系
14
+ */
15
+ interface StoreUserRelation {
16
+ /** 关系id */
17
+ id: string;
18
+ /** 创建时间 */
19
+ createdAt: number;
20
+ /** 更新时间 */
21
+ updatedAt: number;
22
+ /** 删除时间 */
23
+ deletedAt: number;
24
+ /** 门店id */
25
+ storeId: number;
26
+ /** 用户 Pandora ID */
27
+ userPandoraId: string;
28
+ }
29
+ /**
30
+ * 门店用户绑定关系记录
31
+ */
32
+ interface StoreUserRelationRecord {
33
+ /** 记录id */
34
+ id: string;
35
+ /** 绑定时间 */
36
+ createdAt: number;
37
+ /** 更新时间 */
38
+ updatedAt: number;
39
+ /** 删除时间 */
40
+ deletedAt: number;
41
+ /** 修改前门店id */
42
+ beforeStoreId: number;
43
+ /** 修改后门店id */
44
+ afterStoreId: number;
45
+ /** 用户 Pandora ID */
46
+ userPandoraId: string;
47
+ /** 操作类型:绑定;解绑 */
48
+ actionType: string;
49
+ /** 操作者 Pandora ID */
50
+ operatorPandoraId: string;
51
+ }
52
+ }
53
+ /**
54
+ * 请求参数定义
55
+ */
56
+ namespace Request {
57
+ /**
58
+ * 绑定用户到门店请求(批量)- 允许换绑
59
+ */
60
+ interface bindUserToStore {
61
+ /** 门店id */
62
+ storeId: number;
63
+ /** 用户 Pandora ID 列表 */
64
+ userPandoraIds: string[];
65
+ /** 操作者 Pandora ID */
66
+ operatorPandoraId: string;
67
+ }
68
+ /**
69
+ * 批量绑定用户到门店请求 - 不允许重复绑定
70
+ */
71
+ interface batchBindUserToStore {
72
+ /** 门店id */
73
+ storeId: number;
74
+ /** 用户 Pandora ID 列表 */
75
+ userPandoraIds: string[];
76
+ /** 操作者 Pandora ID */
77
+ operatorPandoraId: string;
78
+ }
79
+ /**
80
+ * 解绑用户请求(批量)
81
+ */
82
+ interface unbindUserFromStore {
83
+ /** 门店id */
84
+ storeId: number;
85
+ /** 用户 Pandora ID 列表 */
86
+ userPandoraIds: string[];
87
+ /** 操作者 Pandora ID */
88
+ operatorPandoraId: string;
89
+ }
90
+ /**
91
+ * 获取门店用户列表请求
92
+ */
93
+ interface getStoreUsers {
94
+ /** 门店id */
95
+ storeId: number;
96
+ }
97
+ /**
98
+ * 获取用户绑定记录请求
99
+ */
100
+ interface getUserBindingRecords {
101
+ /** 用户 Pandora ID */
102
+ userPandoraId?: string;
103
+ /** 门店id */
104
+ storeId?: number;
105
+ /** 页码 */
106
+ page?: number;
107
+ /** 每页数量 */
108
+ pageSize?: number;
109
+ }
110
+ }
111
+ /**
112
+ * 响应数据定义
113
+ */
114
+ namespace Response {
115
+ /**
116
+ * 绑定用户到门店响应(批量)- 允许换绑
117
+ */
118
+ interface bindUserToStore {
119
+ /** 是否成功 */
120
+ success: boolean;
121
+ /** 成功绑定的关系列表 */
122
+ relations: Array<{
123
+ /** 用户 Pandora ID */
124
+ userPandoraId: string;
125
+ /** 关系id */
126
+ relationId: string;
127
+ }>;
128
+ /** 失败的用户列表 */
129
+ failedUsers?: Array<{
130
+ /** 用户 Pandora ID */
131
+ userPandoraId: string;
132
+ /** 失败原因 */
133
+ reason: string;
134
+ }>;
135
+ }
136
+ /**
137
+ * 批量绑定用户到门店响应 - 不允许重复绑定
138
+ */
139
+ interface batchBindUserToStore {
140
+ /** 是否成功 */
141
+ success: boolean;
142
+ /** 成功绑定的关系列表 */
143
+ relations: Array<{
144
+ /** 用户 Pandora ID */
145
+ userPandoraId: string;
146
+ /** 关系id */
147
+ relationId: string;
148
+ }>;
149
+ /** 失败的用户列表(已绑定其他门店) */
150
+ failedUsers?: Array<{
151
+ /** 用户 Pandora ID */
152
+ userPandoraId: string;
153
+ /** 失败原因 */
154
+ reason: string;
155
+ /** 已绑定的门店ID */
156
+ boundStoreId?: number;
157
+ }>;
158
+ }
159
+ /**
160
+ * 解绑用户响应(批量)
161
+ */
162
+ interface unbindUserFromStore {
163
+ /** 是否成功 */
164
+ success: boolean;
165
+ /** 成功解绑的用户 Pandora ID 列表 */
166
+ unboundUserIds: string[];
167
+ /** 失败的用户列表 */
168
+ failedUsers?: Array<{
169
+ /** 用户 Pandora ID */
170
+ userPandoraId: string;
171
+ /** 失败原因 */
172
+ reason: string;
173
+ }>;
174
+ }
175
+ /**
176
+ * 获取门店用户列表响应
177
+ */
178
+ interface getStoreUsers {
179
+ /** 用户关系列表 */
180
+ users: Entity.StoreUserRelation[];
181
+ }
182
+ /**
183
+ * 获取用户绑定记录响应
184
+ */
185
+ interface getUserBindingRecords {
186
+ /** 绑定记录列表 */
187
+ records: Entity.StoreUserRelationRecord[];
188
+ /** 总数 */
189
+ total: number;
190
+ /** 当前页 */
191
+ page: number;
192
+ /** 每页数量 */
193
+ pageSize: number;
194
+ }
195
+ }
196
+ /**
197
+ * StoreUserRelation Controller 接口定义
198
+ */
199
+ interface StoreUserRelationController {
200
+ /**
201
+ * 绑定用户到门店(允许换绑)
202
+ */
203
+ bindUserToStore(request: StoreUserRelationService.Request.bindUserToStore): Promise<StandardResponse<StoreUserRelationService.Response.bindUserToStore>>;
204
+ /**
205
+ * 批量绑定用户到门店(不允许重复绑定)
206
+ */
207
+ batchBindUserToStore(request: StoreUserRelationService.Request.batchBindUserToStore): Promise<StandardResponse<StoreUserRelationService.Response.batchBindUserToStore>>;
208
+ /**
209
+ * 解绑用户
210
+ */
211
+ unbindUserFromStore(request: StoreUserRelationService.Request.unbindUserFromStore): Promise<StandardResponse<StoreUserRelationService.Response.unbindUserFromStore>>;
212
+ /**
213
+ * 获取门店用户列表
214
+ */
215
+ getStoreUsers(request: StoreUserRelationService.Request.getStoreUsers): Promise<StandardResponse<StoreUserRelationService.Response.getStoreUsers>>;
216
+ /**
217
+ * 获取用户绑定记录
218
+ */
219
+ getUserBindingRecords(request: StoreUserRelationService.Request.getUserBindingRecords): Promise<StandardResponse<StoreUserRelationService.Response.getUserBindingRecords>>;
220
+ }
221
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/cjs/enums.d.ts CHANGED
@@ -3,4 +3,7 @@
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';
6
8
  export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
9
+ export { ENUM as PROMOTION_SERVICE_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
package/cjs/enums.js CHANGED
@@ -4,10 +4,17 @@
4
4
  * 集中管理所有第三方服务 SDK 的枚举和常量
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.ROOM_SERVICE_ENUM = exports.PRODUCT_SERVICE_ENUM = void 0;
7
+ exports.PROMOTION_SERVICE_ENUM = exports.ROOM_SERVICE_ENUM = exports.PROMOTION_ENUM = exports.STORE_SERVICE_ENUM = exports.PRODUCT_SERVICE_ENUM = void 0;
8
8
  // 商品服务枚举
9
9
  var enum_1 = require("@be-link/ecommerce-product-service-node-sdk/enum");
10
10
  Object.defineProperty(exports, "PRODUCT_SERVICE_ENUM", { enumerable: true, get: function () { return enum_1.ENUM; } });
11
+ var enums_1 = require("@be-link/ecommerce-store-service-node-sdk/enums");
12
+ Object.defineProperty(exports, "STORE_SERVICE_ENUM", { enumerable: true, get: function () { return enums_1.ENUM; } });
13
+ var enum_2 = require("@be-link/ecommerce-promotion-service-node-sdk/enum");
14
+ Object.defineProperty(exports, "PROMOTION_ENUM", { enumerable: true, get: function () { return enum_2.ENUM; } });
11
15
  // 直播间枚举
12
- var enum_2 = require("@be-link/ecommerce-client-backend-service-node-sdk/enum");
13
- Object.defineProperty(exports, "ROOM_SERVICE_ENUM", { enumerable: true, get: function () { return enum_2.ENUM; } });
16
+ var enum_3 = require("@be-link/ecommerce-client-backend-service-node-sdk/enum");
17
+ Object.defineProperty(exports, "ROOM_SERVICE_ENUM", { enumerable: true, get: function () { return enum_3.ENUM; } });
18
+ // 优惠券服务枚举
19
+ var enum_4 = require("@be-link/ecommerce-promotion-service-node-sdk/enum");
20
+ Object.defineProperty(exports, "PROMOTION_SERVICE_ENUM", { enumerable: true, get: function () { return enum_4.ENUM; } });
package/cjs/index.d.ts CHANGED
@@ -1,10 +1,13 @@
1
1
  import { PandoraExampleService } from './bff/modules/pandora/example/service';
2
+ import { PandoraStoreService } from './bff/modules/pandora/store/service';
3
+ import { PandoraStoreUserRelationService } from './bff/modules/pandora/storeUserRelation/service';
2
4
  import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
3
5
  import { PandoraProductService } from './bff/modules/pandora/product/service';
4
6
  import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
5
7
  import { PandoraProductLiveService } from './bff/modules/pandora/productLive/service';
6
- import { PandoraOrderQueryService } from './bff/modules/pandora/orderQuery/service';
7
- import { PandoraOrderCoreService } from './bff/modules/pandora/orderCore/service';
8
+ import { PandoraCouponService } from './bff/modules/pandora/coupon/service';
9
+ import { PandoraRoomService } from './bff/modules/pandora/room/service';
10
+ import { PandoraPointsMallService } from './bff/modules/pandora/pointsMall/service';
8
11
  import { SdkOptions } from './types';
9
12
  /**
10
13
  * Pandora 平台 SDK(管理后台)
@@ -22,8 +25,20 @@ export declare class PandoraSDK {
22
25
  product: PandoraProductService;
23
26
  productExp: PandoraProductExpService;
24
27
  productLive: PandoraProductLiveService;
25
- orderQuery: PandoraOrderQueryService;
26
- orderCore: PandoraOrderCoreService;
28
+ coupon: PandoraCouponService;
29
+ pointMall: PandoraPointsMallService;
30
+ /**
31
+ * Pandora 门店服务模块
32
+ */
33
+ store: PandoraStoreService;
34
+ /**
35
+ * Pandora 门店用户关系服务模块
36
+ */
37
+ storeUserRelation: PandoraStoreUserRelationService;
38
+ /**
39
+ * 直播间模块
40
+ */
41
+ room: PandoraRoomService;
27
42
  /**
28
43
  * 使用配置选项初始化 Pandora SDK
29
44
  * @param options - SDK 配置,包含凭证回调函数
@@ -54,9 +69,11 @@ export { SdkOptions, IRequestStrategy, StandardResponse } from './types';
54
69
  export * from './enums';
55
70
  export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
56
71
  export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
72
+ export { StoreService as PandoraStoreServiceTypes } from './bff/modules/pandora/store/types';
73
+ export { StoreUserRelationService as PandoraStoreUserRelationServiceTypes } from './bff/modules/pandora/storeUserRelation/types';
57
74
  export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
58
75
  export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
59
76
  export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
60
- export { PandoraOrderQueryService as PandoraOrderQueryServiceTypes } from './bff/modules/pandora/orderQuery/types';
61
- export { PandoraOrderCoreService as PandoraOrderCoreServiceTypes } from './bff/modules/pandora/orderCore/types';
62
77
  export { RoomService as PandoraRoomServiceTypes } from './bff/modules/pandora/room/types';
78
+ export { CouponService as PandoraCouponServiceTypes } from './bff/modules/pandora/coupon/types';
79
+ export { PointMallService as PointMallServiceTypes } from './bff/modules/pandora/pointsMall/types';
package/cjs/index.js CHANGED
@@ -17,12 +17,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.SystemError = exports.BizError = exports.SdkError = exports.MiniProgramSDK = exports.PandoraSDK = void 0;
18
18
  const client_1 = require("./bff/request/client");
19
19
  const service_1 = require("./bff/modules/pandora/example/service");
20
- const service_2 = require("./bff/modules/miniprogram/demo/service");
21
- const service_3 = require("./bff/modules/pandora/product/service");
22
- const service_4 = require("./bff/modules/pandora/productExp/service");
23
- const service_5 = require("./bff/modules/pandora/productLive/service");
24
- const service_6 = require("./bff/modules/pandora/orderQuery/service");
25
- const service_7 = require("./bff/modules/pandora/orderCore/service");
20
+ const service_2 = require("./bff/modules/pandora/store/service");
21
+ const service_3 = require("./bff/modules/pandora/storeUserRelation/service");
22
+ const service_4 = require("./bff/modules/miniprogram/demo/service");
23
+ const service_5 = require("./bff/modules/pandora/product/service");
24
+ const service_6 = require("./bff/modules/pandora/productExp/service");
25
+ const service_7 = require("./bff/modules/pandora/productLive/service");
26
+ const service_8 = require("./bff/modules/pandora/coupon/service");
27
+ const service_9 = require("./bff/modules/pandora/room/service");
28
+ const service_10 = require("./bff/modules/pandora/pointsMall/service");
26
29
  /**
27
30
  * Pandora 平台 SDK(管理后台)
28
31
  * 包含所有 Pandora 平台相关的服务
@@ -37,11 +40,14 @@ class PandoraSDK {
37
40
  this.http = new client_1.HttpClient(options);
38
41
  // 使用 HttpClient 实例化所有 Pandora 服务模块
39
42
  this.example = new service_1.PandoraExampleService(this.http);
40
- this.product = new service_3.PandoraProductService(this.http);
41
- this.productExp = new service_4.PandoraProductExpService(this.http);
42
- this.productLive = new service_5.PandoraProductLiveService(this.http);
43
- this.orderQuery = new service_6.PandoraOrderQueryService(this.http);
44
- this.orderCore = new service_7.PandoraOrderCoreService(this.http);
43
+ this.product = new service_5.PandoraProductService(this.http);
44
+ this.productExp = new service_6.PandoraProductExpService(this.http);
45
+ this.productLive = new service_7.PandoraProductLiveService(this.http);
46
+ this.store = new service_2.PandoraStoreService(this.http);
47
+ this.storeUserRelation = new service_3.PandoraStoreUserRelationService(this.http);
48
+ this.room = new service_9.PandoraRoomService(this.http);
49
+ this.coupon = new service_8.PandoraCouponService(this.http);
50
+ this.pointMall = new service_10.PandoraPointsMallService(this.http);
45
51
  }
46
52
  }
47
53
  exports.PandoraSDK = PandoraSDK;
@@ -58,7 +64,7 @@ class MiniProgramSDK {
58
64
  // 使用提供的选项初始化 HttpClient
59
65
  this.http = new client_1.HttpClient(options);
60
66
  // 使用 HttpClient 实例化所有小程序服务模块
61
- this.demo = new service_2.MiniProgramDemoService(this.http);
67
+ this.demo = new service_4.MiniProgramDemoService(this.http);
62
68
  }
63
69
  }
64
70
  exports.MiniProgramSDK = MiniProgramSDK;
@@ -0,0 +1,59 @@
1
+ import { CouponService as Service } from './types';
2
+ import BaseService from '../../BaseService';
3
+ import type { StandardResponse } from '../../../../types';
4
+ /**
5
+ * PandoraCouponService - Pandora Coupon 服务模块
6
+ * 提供 Pandora Coupon 相关的 API 方法
7
+ * 平台: pandora
8
+ */
9
+ export declare class PandoraCouponService extends BaseService implements Service.CouponTemplateController {
10
+ protected prefixUrl: string;
11
+ /**
12
+ * 创建券模版
13
+ * @param request - 请求参数
14
+ * @returns Promise,解析为标准响应格式
15
+ */
16
+ createCouponTemplate(request: Service.Request.createCouponTemplate): Promise<StandardResponse<void>>;
17
+ /**
18
+ * 作废券模版
19
+ * @param request - 请求参数
20
+ * @returns Promise,解析为标准响应格式
21
+ */
22
+ abandonCouponTemplate(request: Service.Request.abandonCouponTemplate): Promise<StandardResponse<void>>;
23
+ /**
24
+ * 获取券模版列表
25
+ * @param request - 请求参数
26
+ * @returns Promise,解析为标准响应格式
27
+ */
28
+ getCouponTemplateList(request: Service.Request.getCouponTemplateList): Promise<StandardResponse<Service.Response.getCouponTemplateList>>;
29
+ /**
30
+ * 增加券库存
31
+ * @param request - 请求参数
32
+ * @returns Promise,解析为标准响应格式
33
+ */
34
+ addCouponStock(request: Service.Request.addCouponStock): Promise<StandardResponse<Service.Response.addCouponStock>>;
35
+ /**
36
+ * 获取券模版详情
37
+ * @param request - 请求参数
38
+ * @returns Promise,解析为标准响应格式
39
+ */
40
+ getCouponTemplateDetail(request: Service.Request.getCouponTemplateDetail): Promise<StandardResponse<Service.Response.getCouponTemplateDetail>>;
41
+ /**
42
+ * 同步券至火山直播
43
+ * @param request - 请求参数
44
+ * @returns Promise,解析为标准响应格式
45
+ */
46
+ syncCouponToLive(request: Service.Request.syncCouponToLive): Promise<StandardResponse<void>>;
47
+ /**
48
+ * 修改券模版适用商品
49
+ * @param request - 请求参数
50
+ * @returns Promise,解析为标准响应格式
51
+ */
52
+ updateCouponTemplateScope(request: Service.Request.updateCouponTemplateProduct): Promise<StandardResponse<void>>;
53
+ /**
54
+ * 获取券模版的使用商品
55
+ * @param request - 请求参数
56
+ * @returns Promise,解析为标准响应格式
57
+ */
58
+ getProductScopeList(request: Service.Request.getProductScopeList): Promise<StandardResponse<Service.Response.getProductScopeList>>;
59
+ }
@@ -0,0 +1,76 @@
1
+ import BaseService from '../../BaseService.mjs';
2
+ /**
3
+ * PandoraCouponService - Pandora Coupon 服务模块
4
+ * 提供 Pandora Coupon 相关的 API 方法
5
+ * 平台: pandora
6
+ */
7
+ export class PandoraCouponService extends BaseService {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.prefixUrl = '/pandora/coupon';
11
+ }
12
+ /**
13
+ * 创建券模版
14
+ * @param request - 请求参数
15
+ * @returns Promise,解析为标准响应格式
16
+ */
17
+ createCouponTemplate(request) {
18
+ return this.request(this.createCouponTemplate, request);
19
+ }
20
+ /**
21
+ * 作废券模版
22
+ * @param request - 请求参数
23
+ * @returns Promise,解析为标准响应格式
24
+ */
25
+ abandonCouponTemplate(request) {
26
+ return this.request(this.abandonCouponTemplate, request);
27
+ }
28
+ /**
29
+ * 获取券模版列表
30
+ * @param request - 请求参数
31
+ * @returns Promise,解析为标准响应格式
32
+ */
33
+ getCouponTemplateList(request) {
34
+ return this.request(this.getCouponTemplateList, request);
35
+ }
36
+ /**
37
+ * 增加券库存
38
+ * @param request - 请求参数
39
+ * @returns Promise,解析为标准响应格式
40
+ */
41
+ addCouponStock(request) {
42
+ return this.request(this.addCouponStock, request);
43
+ }
44
+ /**
45
+ * 获取券模版详情
46
+ * @param request - 请求参数
47
+ * @returns Promise,解析为标准响应格式
48
+ */
49
+ getCouponTemplateDetail(request) {
50
+ return this.request(this.getCouponTemplateDetail, request);
51
+ }
52
+ /**
53
+ * 同步券至火山直播
54
+ * @param request - 请求参数
55
+ * @returns Promise,解析为标准响应格式
56
+ */
57
+ syncCouponToLive(request) {
58
+ return this.request(this.syncCouponToLive, request);
59
+ }
60
+ /**
61
+ * 修改券模版适用商品
62
+ * @param request - 请求参数
63
+ * @returns Promise,解析为标准响应格式
64
+ */
65
+ updateCouponTemplateScope(request) {
66
+ return this.request(this.updateCouponTemplateScope, request);
67
+ }
68
+ /**
69
+ * 获取券模版的使用商品
70
+ * @param request - 请求参数
71
+ * @returns Promise,解析为标准响应格式
72
+ */
73
+ getProductScopeList(request) {
74
+ return this.request(this.getProductScopeList, request);
75
+ }
76
+ }