@be-link/ecommerce-backend-bff-service-node-sdk 0.0.78 → 0.0.80

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.
@@ -22,7 +22,7 @@ export declare namespace StoreUserRelationService {
22
22
  /** 删除时间 */
23
23
  deletedAt: number;
24
24
  /** 门店id */
25
- storeId: number;
25
+ storeId: string;
26
26
  /** 用户 Pandora ID */
27
27
  userPandoraId: string;
28
28
  }
@@ -59,40 +59,42 @@ export declare namespace StoreUserRelationService {
59
59
  */
60
60
  interface bindUserToStore {
61
61
  /** 门店id */
62
- storeId: number;
62
+ storeId: string;
63
63
  /** 用户 Pandora ID 列表 */
64
64
  userPandoraIds: string[];
65
65
  /** 操作者 Pandora ID */
66
- operatorPandoraId: string;
66
+ operator: string;
67
67
  }
68
68
  /**
69
69
  * 批量绑定用户到门店请求 - 不允许重复绑定
70
70
  */
71
71
  interface batchBindUserToStore {
72
72
  /** 门店id */
73
- storeId: number;
73
+ storeId: string;
74
74
  /** 用户 Pandora ID 列表 */
75
75
  userPandoraIds: string[];
76
76
  /** 操作者 Pandora ID */
77
- operatorPandoraId: string;
77
+ operator: string;
78
78
  }
79
79
  /**
80
80
  * 解绑用户请求(批量)
81
81
  */
82
82
  interface unbindUserFromStore {
83
83
  /** 门店id */
84
- storeId: number;
84
+ storeId: string;
85
85
  /** 用户 Pandora ID 列表 */
86
86
  userPandoraIds: string[];
87
87
  /** 操作者 Pandora ID */
88
- operatorPandoraId: string;
88
+ operator: string;
89
89
  }
90
90
  /**
91
91
  * 获取门店用户列表请求
92
92
  */
93
93
  interface getStoreUsers {
94
94
  /** 门店id */
95
- storeId: number;
95
+ storeId: string;
96
+ page: number;
97
+ pageSize: number;
96
98
  }
97
99
  /**
98
100
  * 获取用户绑定记录请求
@@ -101,7 +103,7 @@ export declare namespace StoreUserRelationService {
101
103
  /** 用户 Pandora ID */
102
104
  userPandoraId?: string;
103
105
  /** 门店id */
104
- storeId?: number;
106
+ storeId?: string;
105
107
  /** 页码 */
106
108
  page?: number;
107
109
  /** 每页数量 */
package/cjs/enums.d.ts CHANGED
@@ -7,5 +7,5 @@ export { ENUM as STORE_SERVICE_ENUM } from '@be-link/ecommerce-store-service-nod
7
7
  export { ENUM as PROMOTION_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
8
8
  export { ENUM as ROOM_SERVICE_ENUM } from '@be-link/ecommerce-client-backend-service-node-sdk/enum';
9
9
  export { ENUM as PROMOTION_SERVICE_ENUM } from '@be-link/ecommerce-promotion-service-node-sdk/enum';
10
- export { ENUMS as TRADE_SERVICE_ENUM } from '@be-link/ecommerce-trade-service-node-sdk';
10
+ export { ENUM as TRADE_SERVICE_ENUM } from '@be-link/ecommerce-trade-service-node-sdk/enums';
11
11
  export { ENUM as TASK_CENTER_ENUM } from '@be-link/ecommerce-task-center-service-node-sdk/enum';
package/cjs/enums.js CHANGED
@@ -19,8 +19,8 @@ Object.defineProperty(exports, "ROOM_SERVICE_ENUM", { enumerable: true, get: fun
19
19
  var enum_4 = require("@be-link/ecommerce-promotion-service-node-sdk/enum");
20
20
  Object.defineProperty(exports, "PROMOTION_SERVICE_ENUM", { enumerable: true, get: function () { return enum_4.ENUM; } });
21
21
  // 交易服务枚举
22
- var ecommerce_trade_service_node_sdk_1 = require("@be-link/ecommerce-trade-service-node-sdk");
23
- Object.defineProperty(exports, "TRADE_SERVICE_ENUM", { enumerable: true, get: function () { return ecommerce_trade_service_node_sdk_1.ENUMS; } });
22
+ var enums_2 = require("@be-link/ecommerce-trade-service-node-sdk/enums");
23
+ Object.defineProperty(exports, "TRADE_SERVICE_ENUM", { enumerable: true, get: function () { return enums_2.ENUM; } });
24
24
  // 任务中心服务枚举
25
25
  var enum_5 = require("@be-link/ecommerce-task-center-service-node-sdk/enum");
26
26
  Object.defineProperty(exports, "TASK_CENTER_ENUM", { enumerable: true, get: function () { return enum_5.ENUM; } });
@@ -21,7 +21,7 @@ export declare namespace PointMallService {
21
21
  /** 兑换类型 */
22
22
  exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
23
23
  /** 是否开启 */
24
- enabled: number;
24
+ enabled: boolean;
25
25
  /** 排序权重 */
26
26
  sortOrder: number;
27
27
  }
@@ -33,8 +33,8 @@ export declare namespace PointMallService {
33
33
  productId: string;
34
34
  skuSpecs: string[];
35
35
  salePrice: number;
36
- online: number;
37
- enabled: number;
36
+ online: boolean;
37
+ enabled: boolean;
38
38
  exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
39
39
  stock: number;
40
40
  limitPerUser?: number;
@@ -60,7 +60,7 @@ export declare namespace PointMallService {
60
60
  pointsRequired?: number;
61
61
  couponRequired?: number;
62
62
  exchangeType: PROMOTION_SERVICE_ENUM.POINT_MALL.ExchangeType;
63
- enabled?: number;
63
+ enabled?: boolean;
64
64
  sortOrder?: number;
65
65
  }
66
66
  export interface CreateProduct extends BaseParams {
@@ -81,16 +81,16 @@ export declare namespace PointMallService {
81
81
  /** 主键ID列表 */
82
82
  ids: string[];
83
83
  /** 是否开启 */
84
- enabled: number;
84
+ enabled: boolean;
85
85
  }
86
86
  /** 根据条件查询积分商城商品 */
87
87
  export interface queryProducts {
88
88
  /** 商品ID */
89
89
  productIds?: string[];
90
90
  /** 是否上架,传null/undefined表示不筛选 */
91
- online?: number | null | undefined;
91
+ online?: boolean | null | undefined;
92
92
  /** 是否开启,传null/undefined表示不筛选 */
93
- enabled?: number | null | undefined;
93
+ enabled?: boolean | null | undefined;
94
94
  /** 页码 */
95
95
  page?: number;
96
96
  /** 每页数量 */
@@ -108,9 +108,9 @@ export declare namespace PointMallService {
108
108
  /** 商品ID */
109
109
  productId: string;
110
110
  /** 是否上架 */
111
- online?: number;
111
+ online?: boolean;
112
112
  /** 是否开启 */
113
- enabled?: number;
113
+ enabled?: boolean;
114
114
  }
115
115
  export {};
116
116
  }
@@ -81,9 +81,9 @@ export declare namespace PandoraProductService {
81
81
  /** 价格(分) */
82
82
  price: number;
83
83
  /** 划线价(分) */
84
- strikethroughPrice: number;
84
+ strikethroughPrice?: number;
85
85
  /** 采购价(分) */
86
- purchasePrice: number;
86
+ purchasePrice?: number;
87
87
  /** SKU编码 */
88
88
  skuCode?: string;
89
89
  /** 多SKU编码 */
@@ -122,7 +122,7 @@ export declare namespace PandoraProductService {
122
122
  /** 提货方式 */
123
123
  pickType: string;
124
124
  /** 发货方式 */
125
- dispatchType: string;
125
+ dispatchType?: string;
126
126
  /** 存储方式 */
127
127
  storageMethod: string;
128
128
  /** 商品分类 */
@@ -350,6 +350,8 @@ export declare namespace PandoraProductService {
350
350
  storageMethod: string;
351
351
  /** 配货方式 */
352
352
  dispatchType: string;
353
+ /** 限购 */
354
+ purchaseLimit: number;
353
355
  /** 价格 */
354
356
  price: number;
355
357
  /** 库存 */
@@ -6,126 +6,150 @@ import type { StandardResponse } from '../../../../types';
6
6
  * 提供门店管理相关的 API 方法
7
7
  * 平台: pandora
8
8
  */
9
- export declare class PandoraStoreService extends BaseService implements Service.Controller.StoreController {
9
+ export declare class PandoraStoreService extends BaseService implements Service.StoreController {
10
10
  protected prefixUrl: string;
11
11
  /**
12
12
  * 创建门店
13
13
  * @param request - 请求参数
14
14
  * @returns Promise,解析为标准响应格式
15
15
  */
16
- createStore(request: Service.Request.createStore): Promise<StandardResponse<Service.Response.createStore>>;
16
+ createStore(request: Service.Request.CreateStore): Promise<StandardResponse<Service.Response.CreateStore>>;
17
17
  /**
18
18
  * 绑定店长
19
19
  * @param request - 请求参数
20
20
  * @returns Promise,解析为标准响应格式
21
21
  */
22
- bindStoreManager(request: Service.Request.bindStoreManager): Promise<StandardResponse<Service.Response.bindStoreManager>>;
22
+ bindStoreManager(request: Service.Request.BindStoreManager): Promise<StandardResponse<Service.Response.BindStoreManager>>;
23
23
  /**
24
24
  * 解绑店长
25
25
  * @param request - 请求参数
26
26
  * @returns Promise,解析为标准响应格式
27
27
  */
28
- unbindStoreManager(request: Service.Request.unbindStoreManager): Promise<StandardResponse<Service.Response.unbindStoreManager>>;
28
+ unbindStoreManager(request: Service.Request.UnbindStoreManager): Promise<StandardResponse<Service.Response.UnbindStoreManager>>;
29
29
  /**
30
30
  * 绑定BD
31
31
  * @param request - 请求参数
32
32
  * @returns Promise,解析为标准响应格式
33
33
  */
34
- bindBD(request: Service.Request.bindBD): Promise<StandardResponse<Service.Response.bindBD>>;
34
+ bindBD(request: Service.Request.BindBD): Promise<StandardResponse<Service.Response.BindBD>>;
35
+ /**
36
+ * 批量绑定BD
37
+ * @param request - 请求参数
38
+ * @returns Promise,解析为标准响应格式
39
+ */
40
+ batchBindBD(request: Service.Request.BatchBindBD): Promise<StandardResponse<Service.Response.BatchBindBD>>;
35
41
  /**
36
42
  * 解绑BD
37
43
  * @param request - 请求参数
38
44
  * @returns Promise,解析为标准响应格式
39
45
  */
40
- unbindBD(request: Service.Request.unbindBD): Promise<StandardResponse<Service.Response.unbindBD>>;
46
+ unbindBD(request: Service.Request.UnbindBD): Promise<StandardResponse<Service.Response.UnbindBD>>;
47
+ /**
48
+ * 批量解绑BD
49
+ * @param request - 请求参数
50
+ * @returns Promise,解析为标准响应格式
51
+ */
52
+ batchUnbindBD(request: Service.Request.BatchUnbindBD): Promise<StandardResponse<Service.Response.BatchUnbindBD>>;
41
53
  /**
42
54
  * 绑定加盟商
43
55
  * @param request - 请求参数
44
56
  * @returns Promise,解析为标准响应格式
45
57
  */
46
- bindFranchisee(request: Service.Request.bindFranchisee): Promise<StandardResponse<Service.Response.bindFranchisee>>;
58
+ bindFranchisee(request: Service.Request.BindFranchisee): Promise<StandardResponse<Service.Response.BindFranchisee>>;
47
59
  /**
48
60
  * 解绑加盟商
49
61
  * @param request - 请求参数
50
62
  * @returns Promise,解析为标准响应格式
51
63
  */
52
- unbindFranchisee(request: Service.Request.unbindFranchisee): Promise<StandardResponse<Service.Response.unbindFranchisee>>;
64
+ unbindFranchisee(request: Service.Request.UnbindFranchisee): Promise<StandardResponse<Service.Response.UnbindFranchisee>>;
53
65
  /**
54
66
  * 编辑门店信息
55
67
  * @param request - 请求参数
56
68
  * @returns Promise,解析为标准响应格式
57
69
  */
58
- updateStoreInfo(request: Service.Request.updateStoreInfo): Promise<StandardResponse<Service.Response.updateStoreInfo>>;
70
+ updateStoreInfo(request: Service.Request.UpdateStoreInfo): Promise<StandardResponse<Service.Response.UpdateStoreInfo>>;
59
71
  /**
60
72
  * 批量修改门店经营状态
61
73
  * @param request - 请求参数
62
74
  * @returns Promise,解析为标准响应格式
63
75
  */
64
- batchUpdateBusinessStatus(request: Service.Request.batchUpdateBusinessStatus): Promise<StandardResponse<Service.Response.batchUpdateBusinessStatus>>;
76
+ batchUpdateBusinessStatus(request: Service.Request.BatchUpdateBusinessStatus): Promise<StandardResponse<Service.Response.BatchUpdateBusinessStatus>>;
65
77
  /**
66
78
  * 更新群直播时间
67
79
  * @param request - 请求参数
68
80
  * @returns Promise,解析为标准响应格式
69
81
  */
70
- updateLiveTime(request: Service.Request.updateLiveTime): Promise<StandardResponse<Service.Response.updateLiveTime>>;
82
+ updateLiveTime(request: Service.Request.UpdateLiveTime): Promise<StandardResponse<Service.Response.UpdateLiveTime>>;
71
83
  /**
72
84
  * 门店继承
73
85
  * @param request - 请求参数
74
86
  * @returns Promise,解析为标准响应格式
75
87
  */
76
- inheritStore(request: Service.Request.inheritStore): Promise<StandardResponse<Service.Response.inheritStore>>;
88
+ inheritStore(request: Service.Request.InheritStore): Promise<StandardResponse<Service.Response.InheritStore>>;
77
89
  /**
78
90
  * 获取门店详情
79
91
  * @param request - 请求参数
80
92
  * @returns Promise,解析为标准响应格式
81
93
  */
82
- getStoreDetail(request: Service.Request.getStoreDetail): Promise<StandardResponse<Service.Response.getStoreDetail>>;
94
+ getStoreDetail(request: Service.Request.GetStoreDetail): Promise<StandardResponse<Service.Response.GetStoreDetail>>;
83
95
  /**
84
96
  * 批量获取门店信息
85
97
  * @param request - 请求参数
86
98
  * @returns Promise,解析为标准响应格式
87
99
  */
88
- batchGetStoreInfo(request: Service.Request.batchGetStoreInfo): Promise<StandardResponse<Service.Response.batchGetStoreInfo>>;
100
+ batchGetStoreInfo(request: Service.Request.BatchGetStoreInfo): Promise<StandardResponse<Service.Response.BatchGetStoreInfo>>;
89
101
  /**
90
102
  * 获取门店列表
91
103
  * @param request - 请求参数
92
104
  * @returns Promise,解析为标准响应格式
93
105
  */
94
- getStoreList(request: Service.Request.getStoreList): Promise<StandardResponse<Service.Response.getStoreList>>;
106
+ getStoreList(request: Service.Request.GetStoreList): Promise<StandardResponse<Service.Response.GetStoreList>>;
95
107
  /**
96
108
  * 创建门店分组
97
109
  * @param request - 请求参数
98
110
  * @returns Promise,解析为标准响应格式
99
111
  */
100
- createStoreGroup(request: Service.Request.createStoreGroup): Promise<StandardResponse<Service.Response.createStoreGroup>>;
112
+ createStoreGroup(request: Service.Request.CreateTag): Promise<Service.Response.CreateTag>;
101
113
  /**
102
114
  * 编辑门店分组
103
115
  * @param request - 请求参数
104
116
  * @returns Promise,解析为标准响应格式
105
117
  */
106
- editStoreGroup(request: Service.Request.editStoreGroup): Promise<StandardResponse<Service.Response.editStoreGroup>>;
118
+ editStoreGroup(request: Service.Request.BatchTag): Promise<Service.Response.BatchTag>;
107
119
  /**
108
120
  * 删除门店分组
109
121
  * @param request - 请求参数
110
122
  * @returns Promise,解析为标准响应格式
111
123
  */
112
- deleteStoreGroup(request: Service.Request.deleteStoreGroup): Promise<StandardResponse<Service.Response.deleteStoreGroup>>;
124
+ deleteStoreGroup(request: Service.Request.DeleteStoreGroup): Promise<StandardResponse<Service.Response.DeleteStoreGroup>>;
113
125
  /**
114
126
  * 查询门店分组列表
115
127
  * @param request - 请求参数
116
128
  * @returns Promise,解析为标准响应格式
117
129
  */
118
- getStoreGroupList(request: Service.Request.getStoreGroupList): Promise<StandardResponse<Service.Response.getStoreGroupList>>;
130
+ getStoreGroupList(request: Service.Request.QueryStoreGroupList): Promise<Service.Response.QueryStoreGroupList>;
119
131
  /**
120
132
  * 查询门店分组标签列表
121
133
  * @param request - 请求参数
122
134
  * @returns Promise,解析为标准响应格式
123
135
  */
124
- queryTagsByGroup(request: Service.Request.queryTagsByGroup): Promise<StandardResponse<Service.Response.queryTagsByGroup>>;
136
+ queryTagsByGroup(request: Service.Request.QueryTagsByGroup): Promise<StandardResponse<Service.Response.QueryTagsByGroup>>;
137
+ /**
138
+ * 根据门店名称获取门店ID
139
+ * @param request - 请求参数
140
+ * @returns Promise,解析为标准响应格式
141
+ */
142
+ getStoreIdByName(request: Service.Request.GetStoreIdByName): Promise<StandardResponse<Service.Response.GetStoreIdByName>>;
125
143
  /**
126
144
  * 查询门店列表通过标签ID
127
145
  * @param request - 请求参数
128
146
  * @returns Promise,解析为标准响应格式
129
147
  */
130
- queryStoresByTagId(request: Service.Request.queryStoresByTagId): Promise<StandardResponse<Service.Response.queryStoresByTagId>>;
148
+ queryStoresByTagId(request: Service.Request.QueryStoresByTagId): Promise<Service.Response.QueryStoresByTagId>;
149
+ /**
150
+ * 批量查询门店标签
151
+ * @param request - 请求参数
152
+ * @returns Promise,解析为标准响应格式
153
+ */
154
+ batchQueryTagsByStores(request: Service.Request.BatchQueryTagsByStores): Promise<Service.Response.BatchQueryTagsByStores>;
131
155
  }
@@ -41,6 +41,14 @@ export class PandoraStoreService extends BaseService {
41
41
  bindBD(request) {
42
42
  return this.request(this.bindBD, request);
43
43
  }
44
+ /**
45
+ * 批量绑定BD
46
+ * @param request - 请求参数
47
+ * @returns Promise,解析为标准响应格式
48
+ */
49
+ batchBindBD(request) {
50
+ return this.request(this.batchBindBD, request);
51
+ }
44
52
  /**
45
53
  * 解绑BD
46
54
  * @param request - 请求参数
@@ -49,6 +57,14 @@ export class PandoraStoreService extends BaseService {
49
57
  unbindBD(request) {
50
58
  return this.request(this.unbindBD, request);
51
59
  }
60
+ /**
61
+ * 批量解绑BD
62
+ * @param request - 请求参数
63
+ * @returns Promise,解析为标准响应格式
64
+ */
65
+ batchUnbindBD(request) {
66
+ return this.request(this.batchUnbindBD, request);
67
+ }
52
68
  /**
53
69
  * 绑定加盟商
54
70
  * @param request - 请求参数
@@ -161,6 +177,14 @@ export class PandoraStoreService extends BaseService {
161
177
  queryTagsByGroup(request) {
162
178
  return this.request(this.queryTagsByGroup, request);
163
179
  }
180
+ /**
181
+ * 根据门店名称获取门店ID
182
+ * @param request - 请求参数
183
+ * @returns Promise,解析为标准响应格式
184
+ */
185
+ getStoreIdByName(request) {
186
+ return this.request(this.getStoreIdByName, request);
187
+ }
164
188
  /**
165
189
  * 查询门店列表通过标签ID
166
190
  * @param request - 请求参数
@@ -169,4 +193,12 @@ export class PandoraStoreService extends BaseService {
169
193
  queryStoresByTagId(request) {
170
194
  return this.request(this.queryStoresByTagId, request);
171
195
  }
196
+ /**
197
+ * 批量查询门店标签
198
+ * @param request - 请求参数
199
+ * @returns Promise,解析为标准响应格式
200
+ */
201
+ batchQueryTagsByStores(request) {
202
+ return this.request(this.batchQueryTagsByStores, request);
203
+ }
172
204
  }