@be-link/ecommerce-backend-bff-service-node-sdk 0.0.119 → 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.
@@ -1,68 +1,113 @@
1
1
  import { StandardResponse } from '../../../../types';
2
2
  export declare namespace PandoraProductExpService {
3
3
  interface ProductCategory {
4
+ /** 分类ID */
4
5
  id: string;
6
+ /** 父级ID */
5
7
  parentId: string;
8
+ /** 层级 */
6
9
  level: number;
10
+ /** 分类名称 */
7
11
  categoryName: string;
8
12
  }
9
13
  namespace Request {
10
14
  interface getSupplierList {
15
+ /** 页码,0开始 */
11
16
  pageIndex: number;
17
+ /** 每页数量 */
12
18
  pageSize: number;
19
+ /** 供应商名称,模糊匹配 */
13
20
  supplierName?: string;
14
21
  }
15
22
  interface addSupplier {
23
+ /** 供应商名称 */
16
24
  supplierName: string;
17
25
  }
18
26
  interface getLiveGroupList {
27
+ /** 页码,0开始 */
19
28
  pageIndex: number;
29
+ /** 每页数量 */
20
30
  pageSize: number;
31
+ /** 直播分组名称,模糊匹配 */
21
32
  liveGroupName?: string;
22
33
  }
23
34
  interface addLiveGroup {
35
+ /** 直播分组名称 */
24
36
  liveGroupName: string;
25
37
  }
26
38
  interface productCategoryList {
39
+ /** 分类层级 */
27
40
  level: number;
41
+ /** 父分类ID */
28
42
  parentId?: string;
29
43
  }
44
+ interface setStoreScope {
45
+ /** 商品Id */
46
+ productId: string;
47
+ /** 类型 VISIBLE | INVISIBLE */
48
+ type: string;
49
+ /** 门店Id列表 */
50
+ storeIds: string[];
51
+ }
52
+ interface queryStoreScope {
53
+ /** 商品Id */
54
+ productId: string;
55
+ }
30
56
  }
31
57
  namespace Response {
32
58
  interface addSupplier {
59
+ /** 供应商Id */
33
60
  supplierId: string;
34
61
  }
35
62
  interface getSupplierList {
36
63
  total: number;
37
64
  list: {
65
+ /** 供应商Id */
38
66
  supplierId: string;
67
+ /** 供应商名称 */
39
68
  supplierName: string;
40
69
  }[];
41
70
  }
42
71
  interface addLiveGroup {
72
+ /** 直播分组Id */
43
73
  liveGroupId: string;
44
74
  }
45
75
  interface getLiveGroupList {
46
76
  total: number;
47
77
  list: {
78
+ /** 直播分组Id */
48
79
  liveGroupId: string;
80
+ /** 直播分组名称 */
49
81
  liveGroupName: string;
50
82
  }[];
51
83
  }
52
84
  interface list {
53
85
  total: number;
54
86
  list: {
87
+ /** 商品ID */
55
88
  productId: string;
89
+ /** 商品名称 */
56
90
  productName: string;
91
+ /** 商品图片 */
57
92
  productImage: string;
93
+ /** 价格 */
58
94
  price: number;
95
+ /** 库存 */
59
96
  stock: number;
60
97
  }[];
61
98
  }
62
99
  interface getProductManagerList {
100
+ /** 产品经理ID */
63
101
  productManagerId: string;
102
+ /** 产品经理名称 */
64
103
  productManagerName: string;
65
104
  }
105
+ interface queryStoreScope {
106
+ /** 类型 VISIBLE | INVISIBLE */
107
+ type: string;
108
+ /** 门店Id列表 */
109
+ storeIds: string[];
110
+ }
66
111
  }
67
112
  /**
68
113
  * ProductLive Controller 接口定义
@@ -87,10 +132,18 @@ export declare namespace PandoraProductExpService {
87
132
  /**
88
133
  * 获取产品经理列表
89
134
  */
90
- getProductManagerList(): Promise<StandardResponse<PandoraProductExpService.Response.getProductManagerList>>;
135
+ getProductManagerList(): Promise<StandardResponse<PandoraProductExpService.Response.getProductManagerList[]>>;
91
136
  /**
92
137
  * 商品分类列表
93
138
  */
94
139
  productCategoryList(request: PandoraProductExpService.Request.productCategoryList): Promise<StandardResponse<PandoraProductExpService.ProductCategory[]>>;
140
+ /**
141
+ * 设置门店范围
142
+ */
143
+ setStoreScope(request: PandoraProductExpService.Request.setStoreScope): Promise<StandardResponse<void>>;
144
+ /**
145
+ * 获取门店范围
146
+ */
147
+ queryStoreScope(request: PandoraProductExpService.Request.queryStoreScope): Promise<StandardResponse<PandoraProductExpService.Response.queryStoreScope>>;
95
148
  }
96
149
  }
@@ -2,12 +2,17 @@ import { StandardResponse } from '../../../../types';
2
2
  export declare namespace PandoraProductLiveService {
3
3
  namespace Request {
4
4
  interface list {
5
+ /** 0 开始 */
5
6
  pageIndex: number;
7
+ /** 每页数量 */
6
8
  pageSize: number;
9
+ /** 直播间ID */
7
10
  liveRoomId: string;
8
11
  }
9
12
  interface operate {
13
+ /** 商品ID */
10
14
  productId: string;
15
+ /** 直播间ID */
11
16
  liveRoomId: string;
12
17
  }
13
18
  }
@@ -15,10 +20,15 @@ export declare namespace PandoraProductLiveService {
15
20
  interface list {
16
21
  total: number;
17
22
  list: {
23
+ /** 商品ID */
18
24
  productId: string;
25
+ /** 商品名称 */
19
26
  productName: string;
27
+ /** 商品图片 */
20
28
  productImage: string;
29
+ /** 价格 */
21
30
  price: number;
31
+ /** 库存 */
22
32
  stock: number;
23
33
  }[];
24
34
  }
@@ -9,11 +9,17 @@ import type { StandardResponse } from '../../../../types';
9
9
  export declare class PandoraOrderCoreService extends BaseService implements Service.OrderCoreController {
10
10
  protected prefixUrl: string;
11
11
  /**
12
- * 发货
12
+ * 单个订单发货
13
13
  * @param request - 请求参数
14
14
  * @returns Promise,解析为标准响应格式
15
15
  */
16
16
  shipOrder(request: Service.Request.shipOrder): Promise<StandardResponse<Service.Response.shipOrder>>;
17
+ /**
18
+ * 批量订单发货
19
+ * @param request - 请求参数
20
+ * @returns Promise,解析为标准响应格式
21
+ */
22
+ batchShipOrder(request: Service.Request.batchShipOrder): Promise<StandardResponse<Service.Response.batchShipOrder>>;
17
23
  /**
18
24
  * 更新订单地址
19
25
  * @param request - 请求参数
@@ -10,13 +10,21 @@ export class PandoraOrderCoreService extends BaseService {
10
10
  this.prefixUrl = '/pandora/order-core';
11
11
  }
12
12
  /**
13
- * 发货
13
+ * 单个订单发货
14
14
  * @param request - 请求参数
15
15
  * @returns Promise,解析为标准响应格式
16
16
  */
17
17
  shipOrder(request) {
18
18
  return this.request(this.shipOrder, request);
19
19
  }
20
+ /**
21
+ * 批量订单发货
22
+ * @param request - 请求参数
23
+ * @returns Promise,解析为标准响应格式
24
+ */
25
+ batchShipOrder(request) {
26
+ return this.request(this.batchShipOrder, request);
27
+ }
20
28
  /**
21
29
  * 更新订单地址
22
30
  * @param request - 请求参数
@@ -1,15 +1,20 @@
1
1
  import type { POS } from '@be-link/ecommerce-trade-service-node-sdk';
2
+ import { StandardResponse } from '../../../../types';
2
3
  export declare namespace PandoraOrderCoreService {
3
4
  namespace Request {
4
5
  type shipOrder = POS.PosOrderCoreTypes.ByWeb.Request.IShipOrder;
6
+ type batchShipOrder = POS.PosOrderCoreTypes.ByWeb.Request.IBatchShipOrder;
5
7
  type updateOrderAddress = POS.PosOrderCoreTypes.ByWeb.Request.IUpdateOrderAddress;
6
8
  }
7
9
  namespace Response {
8
10
  type shipOrder = POS.PosOrderCoreTypes.ByWeb.Response.IShipOrder;
11
+ type batchShipOrder = POS.PosOrderCoreTypes.ByWeb.Response.IBatchShipOrder;
9
12
  type updateOrderAddress = POS.PosOrderCoreTypes.ByWeb.Response.IUpdateOrderAddress;
10
13
  }
11
14
  interface OrderCoreController {
12
- shipOrder(request: Request.shipOrder): any;
13
- updateOrderAddress(request: Request.updateOrderAddress): any;
15
+ /** 单个订单发货 */
16
+ shipOrder(request: Request.shipOrder): Promise<StandardResponse<Response.shipOrder>>;
17
+ /** 更新订单地址 */
18
+ updateOrderAddress(request: Request.updateOrderAddress): Promise<StandardResponse<Response.updateOrderAddress>>;
14
19
  }
15
20
  }
@@ -55,7 +55,7 @@ export declare class PandoraProductService extends BaseService implements Servic
55
55
  * @param request - 请求参数
56
56
  * @returns Promise,解析为标准响应格式
57
57
  */
58
- export(request: Service.Request.list): Promise<StandardResponse<void>>;
58
+ export(request: Service.Request.list): Promise<StandardResponse<Service.Response.productDetail>>;
59
59
  /**
60
60
  * 获取商品信息(不含规格信息)
61
61
  * @param request - 请求参数
@@ -67,11 +67,29 @@ export declare class PandoraProductService extends BaseService implements Servic
67
67
  * @param request - 请求参数
68
68
  * @returns Promise,解析为标准响应格式
69
69
  */
70
- queryProductSkuList(request: Service.Request.queryProductList): Promise<StandardResponse<Service.Response.queryProductSkuList>>;
70
+ queryProductSkuList(request: Service.Request.queryProductSkuList): Promise<StandardResponse<Service.Response.queryProductSkuList>>;
71
71
  /**
72
72
  * 商品二维码
73
73
  * @param request - 请求参数
74
74
  * @returns Promise,解析为标准响应格式
75
75
  */
76
76
  productQrCode(request: Service.Request.productQrCode): Promise<StandardResponse<Service.Response.productQrCode>>;
77
+ /**
78
+ * 删除定时任务
79
+ * @param request - 请求参数
80
+ * @returns Promise,解析为标准响应格式
81
+ */
82
+ deleteScheduledTask(request: Service.Request.deleteScheduledTask): Promise<StandardResponse<void>>;
83
+ /**
84
+ * 根据商品名获取商品id列表
85
+ * @param request - 请求参数
86
+ * @returns Promise,解析为标准响应格式
87
+ */
88
+ searchProductByName(request: Service.Request.searchProductByName): Promise<StandardResponse<Service.Response.searchProductByName[]>>;
89
+ /**
90
+ * 获取绑定的SKU信息
91
+ * @param request - 请求参数
92
+ * @returns Promise,解析为标准响应格式
93
+ */
94
+ queryBindSkus(request: Service.Request.queryBindSkus): Promise<StandardResponse<Service.Response.queryBindSkus[]>>;
77
95
  }
@@ -97,4 +97,28 @@ export class PandoraProductService extends BaseService {
97
97
  productQrCode(request) {
98
98
  return this.request(this.productQrCode, request);
99
99
  }
100
+ /**
101
+ * 删除定时任务
102
+ * @param request - 请求参数
103
+ * @returns Promise,解析为标准响应格式
104
+ */
105
+ deleteScheduledTask(request) {
106
+ return this.request(this.deleteScheduledTask, request);
107
+ }
108
+ /**
109
+ * 根据商品名获取商品id列表
110
+ * @param request - 请求参数
111
+ * @returns Promise,解析为标准响应格式
112
+ */
113
+ searchProductByName(request) {
114
+ return this.request(this.searchProductByName, request);
115
+ }
116
+ /**
117
+ * 获取绑定的SKU信息
118
+ * @param request - 请求参数
119
+ * @returns Promise,解析为标准响应格式
120
+ */
121
+ queryBindSkus(request) {
122
+ return this.request(this.queryBindSkus, request);
123
+ }
100
124
  }