@be-link/ecommerce-product-service-node-sdk 0.0.13 → 0.0.15

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.
package/enum.d.ts CHANGED
@@ -66,6 +66,14 @@ export declare namespace ENUM {
66
66
  JZH = "\u4EC5\u9650\u6C5F\u6D59\u6CAA\u53D1\u8D27",
67
67
  REMOTE_AREAS = "\u504F\u8FDC\u5730\u533A\u4E0D\u53D1\u8D27"
68
68
  }
69
+ enum STORE_SCOPE_TYPE {
70
+ VISIBLE = "VISIBLE",
71
+ INVISIBLE = "INVISIBLE"
72
+ }
73
+ enum STORE_SCOPE_TYPE_CHINESE {
74
+ VISIBLE = "\u53EF\u89C1",
75
+ INVISIBLE = "\u4E0D\u53EF\u89C1"
76
+ }
69
77
  }
70
78
  namespace TASK_ENUM {
71
79
  enum STATUS {
package/enum.js CHANGED
@@ -86,6 +86,16 @@ var ENUM;
86
86
  FREIGHT_TYPE_CHINESE["JZH"] = "\u4EC5\u9650\u6C5F\u6D59\u6CAA\u53D1\u8D27";
87
87
  FREIGHT_TYPE_CHINESE["REMOTE_AREAS"] = "\u504F\u8FDC\u5730\u533A\u4E0D\u53D1\u8D27";
88
88
  })(FREIGHT_TYPE_CHINESE = PRODUCT_ENUM.FREIGHT_TYPE_CHINESE || (PRODUCT_ENUM.FREIGHT_TYPE_CHINESE = {}));
89
+ let STORE_SCOPE_TYPE;
90
+ (function (STORE_SCOPE_TYPE) {
91
+ STORE_SCOPE_TYPE["VISIBLE"] = "VISIBLE";
92
+ STORE_SCOPE_TYPE["INVISIBLE"] = "INVISIBLE";
93
+ })(STORE_SCOPE_TYPE = PRODUCT_ENUM.STORE_SCOPE_TYPE || (PRODUCT_ENUM.STORE_SCOPE_TYPE = {}));
94
+ let STORE_SCOPE_TYPE_CHINESE;
95
+ (function (STORE_SCOPE_TYPE_CHINESE) {
96
+ STORE_SCOPE_TYPE_CHINESE["VISIBLE"] = "\u53EF\u89C1";
97
+ STORE_SCOPE_TYPE_CHINESE["INVISIBLE"] = "\u4E0D\u53EF\u89C1";
98
+ })(STORE_SCOPE_TYPE_CHINESE = PRODUCT_ENUM.STORE_SCOPE_TYPE_CHINESE || (PRODUCT_ENUM.STORE_SCOPE_TYPE_CHINESE = {}));
89
99
  })(PRODUCT_ENUM = ENUM.PRODUCT_ENUM || (ENUM.PRODUCT_ENUM = {}));
90
100
  let TASK_ENUM;
91
101
  (function (TASK_ENUM) {
@@ -15,6 +15,8 @@ declare class ProductService extends BaseService implements Service.ProductContr
15
15
  querySkuBaseInfo(request: Service.Request.querySkuBaseInfo): Promise<Service.Response.querySkuBaseInfo[]>;
16
16
  getProductDetail(request: Service.Request.detail): Promise<Service.Response.getProductDetail>;
17
17
  isSoldOut(request: Service.Request.isSoldOut): Promise<Service.Response.isSoldOut>;
18
+ deleteScheduledTask(request: Service.Request.deleteScheduledTask): Promise<void>;
19
+ getProductSkuInfo(request: Service.Request.getProductSkuInfo): Promise<Service.Response.getProductSkuInfo>;
18
20
  }
19
21
  export declare const productService: ProductService;
20
22
  export default productService;
@@ -60,6 +60,12 @@ let ProductService = class ProductService extends BaseService_1.default {
60
60
  isSoldOut(request) {
61
61
  return (0, http_1.callApi)(this.getApiUrl(this.isSoldOut), request);
62
62
  }
63
+ deleteScheduledTask(request) {
64
+ return (0, http_1.callApi)(this.getApiUrl(this.deleteScheduledTask), request);
65
+ }
66
+ getProductSkuInfo(request) {
67
+ return (0, http_1.callApi)(this.getApiUrl(this.getProductSkuInfo), request);
68
+ }
63
69
  };
64
70
  __decorate([
65
71
  (0, tsoa_1.OperationId)('商品列表'),
@@ -126,6 +132,16 @@ __decorate([
126
132
  (0, tsoa_1.Post)('is-sold-out'),
127
133
  __param(0, (0, tsoa_1.Body)())
128
134
  ], ProductService.prototype, "isSoldOut", null);
135
+ __decorate([
136
+ (0, tsoa_1.OperationId)('删除定时任务'),
137
+ (0, tsoa_1.Post)('delete-scheduled-task'),
138
+ __param(0, (0, tsoa_1.Body)())
139
+ ], ProductService.prototype, "deleteScheduledTask", null);
140
+ __decorate([
141
+ (0, tsoa_1.OperationId)('获取商品和sku信息 s端'),
142
+ (0, tsoa_1.Post)('get-product-sku-info'),
143
+ __param(0, (0, tsoa_1.Body)())
144
+ ], ProductService.prototype, "getProductSkuInfo", null);
129
145
  ProductService = __decorate([
130
146
  (0, tsoa_1.Route)('product'),
131
147
  (0, tsoa_1.Tags)('Product')
@@ -35,6 +35,7 @@ export declare namespace ProductService {
35
35
  * 定时任务接口
36
36
  */
37
37
  interface ScheduledTask {
38
+ id?: string;
38
39
  scheduledTime: number;
39
40
  status: string;
40
41
  }
@@ -145,12 +146,21 @@ export declare namespace ProductService {
145
146
  interface isSoldOut {
146
147
  skuId: string;
147
148
  }
149
+ interface deleteScheduledTask {
150
+ taskId: string;
151
+ }
152
+ interface getProductSkuInfo {
153
+ productId: string;
154
+ skuIds?: string[];
155
+ skuCodes?: string[];
156
+ }
148
157
  }
149
158
  namespace Response {
150
159
  interface create {
151
160
  productId: string;
152
161
  }
153
162
  interface queryScheduledTask {
163
+ id: string;
154
164
  scheduledTime: number;
155
165
  status: string;
156
166
  operationType: string;
@@ -245,6 +255,46 @@ export declare namespace ProductService {
245
255
  skuId: string;
246
256
  soldOut: boolean;
247
257
  }
258
+ interface getProductSkuInfo {
259
+ productInfo: {
260
+ productId: string;
261
+ productType: string;
262
+ productName: string;
263
+ isCombo: number;
264
+ mainImg: string;
265
+ imgList: string[];
266
+ productDesc: string;
267
+ categoryId: string;
268
+ twoCategoryId: string;
269
+ threeCategoryId: string;
270
+ pickType: string;
271
+ dispatchType: string;
272
+ storageMethod: string;
273
+ classification: string;
274
+ stockUnit: string;
275
+ status: string;
276
+ needVerify: number;
277
+ verifyPeriod: VerifyPeriod | null;
278
+ miniSaleQuantity: number;
279
+ purchaseLimit: number;
280
+ freightTemplate: string[] | null;
281
+ visibleStores: string[] | null;
282
+ invisibleStores: string[] | null;
283
+ };
284
+ skuList: {
285
+ skuId: string;
286
+ attrs: Attr[];
287
+ price: number;
288
+ strikethroughPrice: number;
289
+ purchasePrice: number;
290
+ skuCode: string;
291
+ multiSkuCodes: string[];
292
+ bindSkus: BindSku[];
293
+ showBindSkus: number;
294
+ hasBindSkus: number;
295
+ hasMultiSkuCodes: number;
296
+ }[];
297
+ }
248
298
  }
249
299
  /**
250
300
  * ProductLive Controller 接口定义
@@ -302,5 +352,13 @@ export declare namespace ProductService {
302
352
  * 是否售罄-C端
303
353
  */
304
354
  isSoldOut(request: ProductService.Request.isSoldOut): Promise<ProductService.Response.isSoldOut>;
355
+ /**
356
+ * 删除定时任务
357
+ */
358
+ deleteScheduledTask(request: ProductService.Request.deleteScheduledTask): Promise<void>;
359
+ /**
360
+ * 获取商品和sku信息 s端
361
+ */
362
+ getProductSkuInfo(request: ProductService.Request.getProductSkuInfo): Promise<ProductService.Response.getProductSkuInfo>;
305
363
  }
306
364
  }
@@ -7,6 +7,8 @@ declare class ProductExpService extends BaseService implements Service.ProductEx
7
7
  getLiveGroupList(request: Service.Request.getLiveGroupList): Promise<Service.Response.getLiveGroupList>;
8
8
  addLiveGroup(request: Service.Request.addLiveGroup): Promise<Service.Response.addLiveGroup>;
9
9
  productCategoryList(request: Service.Request.productCategoryList): Promise<Service.ProductCategory[]>;
10
+ setStoreScope(request: Service.Request.setStoreScope): Promise<void>;
11
+ queryStoreScope(request: Service.Request.queryStoreScope): Promise<Service.Response.queryStoreScope>;
10
12
  }
11
13
  export declare const productExpService: ProductExpService;
12
14
  export default productExpService;
@@ -36,6 +36,12 @@ let ProductExpService = class ProductExpService extends BaseService_1.default {
36
36
  productCategoryList(request) {
37
37
  return (0, http_1.callApi)(this.getApiUrl(this.productCategoryList), request);
38
38
  }
39
+ setStoreScope(request) {
40
+ return (0, http_1.callApi)(this.getApiUrl(this.setStoreScope), request);
41
+ }
42
+ queryStoreScope(request) {
43
+ return (0, http_1.callApi)(this.getApiUrl(this.queryStoreScope), request);
44
+ }
39
45
  };
40
46
  __decorate([
41
47
  (0, tsoa_1.OperationId)('获取供应商列表'),
@@ -62,6 +68,16 @@ __decorate([
62
68
  (0, tsoa_1.Post)('product-category-list'),
63
69
  __param(0, (0, tsoa_1.Body)())
64
70
  ], ProductExpService.prototype, "productCategoryList", null);
71
+ __decorate([
72
+ (0, tsoa_1.OperationId)('设置门店范围'),
73
+ (0, tsoa_1.Post)('set-store-scope'),
74
+ __param(0, (0, tsoa_1.Body)())
75
+ ], ProductExpService.prototype, "setStoreScope", null);
76
+ __decorate([
77
+ (0, tsoa_1.OperationId)('获取门店范围'),
78
+ (0, tsoa_1.Post)('query-store-scope'),
79
+ __param(0, (0, tsoa_1.Body)())
80
+ ], ProductExpService.prototype, "queryStoreScope", null);
65
81
  ProductExpService = __decorate([
66
82
  (0, tsoa_1.Route)('product-exp'),
67
83
  (0, tsoa_1.Tags)('Product-exp')
@@ -26,6 +26,14 @@ export declare namespace ProductExpService {
26
26
  level: number;
27
27
  parentId?: string;
28
28
  }
29
+ interface setStoreScope {
30
+ productId: string;
31
+ type: string;
32
+ storeIds: string[];
33
+ }
34
+ interface queryStoreScope {
35
+ productId: string;
36
+ }
29
37
  }
30
38
  namespace Response {
31
39
  interface addSupplier {
@@ -58,6 +66,10 @@ export declare namespace ProductExpService {
58
66
  stock: number;
59
67
  }[];
60
68
  }
69
+ interface queryStoreScope {
70
+ type: string;
71
+ storeIds: string[];
72
+ }
61
73
  }
62
74
  /**
63
75
  * ProductLive Controller 接口定义
@@ -83,5 +95,13 @@ export declare namespace ProductExpService {
83
95
  * 商品分类列表
84
96
  */
85
97
  productCategoryList(request: ProductExpService.Request.productCategoryList): Promise<ProductExpService.ProductCategory[]>;
98
+ /**
99
+ * 设置门店范围
100
+ */
101
+ setStoreScope(request: ProductExpService.Request.setStoreScope): Promise<void>;
102
+ /**
103
+ * 获取门店范围
104
+ */
105
+ queryStoreScope(request: ProductExpService.Request.queryStoreScope): Promise<ProductExpService.Response.queryStoreScope>;
86
106
  }
87
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-product-service-node-sdk",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "EcommerceProductService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",