@be-link/ecommerce-product-service-node-sdk 0.1.45 → 0.1.46
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.
|
@@ -25,6 +25,7 @@ declare class ProductService extends BaseService implements Service.ProductContr
|
|
|
25
25
|
updatePurchaseLimit(request: Service.Request.updatePurchaseLimit): Promise<void>;
|
|
26
26
|
updateSkuStock(request: Service.Request.updateSkuStock[]): Promise<void>;
|
|
27
27
|
updateSkuPrice(request: Service.Request.updateSkuPrice[]): Promise<void>;
|
|
28
|
+
updateSkuGrossWeight(request: Service.Request.updateSkuGrossWeight[]): Promise<void>;
|
|
28
29
|
queryProductSkuListWithDel(request: Service.Request.queryProductSkuListWithDel): Promise<Service.Response.queryProductSkuList>;
|
|
29
30
|
getClassification(request: Service.Request.getClassification): Promise<Service.Response.getClassification>;
|
|
30
31
|
getAllClassifications(request: Service.Request.getAllClassifications): Promise<Service.Response.getAllClassifications>;
|
|
@@ -90,6 +90,9 @@ let ProductService = class ProductService extends BaseService_1.default {
|
|
|
90
90
|
updateSkuPrice(request) {
|
|
91
91
|
return (0, http_1.callApi)(this.getApiUrl(this.updateSkuPrice), request);
|
|
92
92
|
}
|
|
93
|
+
updateSkuGrossWeight(request) {
|
|
94
|
+
return (0, http_1.callApi)(this.getApiUrl(this.updateSkuGrossWeight), request);
|
|
95
|
+
}
|
|
93
96
|
queryProductSkuListWithDel(request) {
|
|
94
97
|
return (0, http_1.callApi)(this.getApiUrl(this.queryProductSkuListWithDel), request);
|
|
95
98
|
}
|
|
@@ -223,6 +226,11 @@ __decorate([
|
|
|
223
226
|
(0, tsoa_1.Post)('update-sku-price'),
|
|
224
227
|
__param(0, (0, tsoa_1.Body)())
|
|
225
228
|
], ProductService.prototype, "updateSkuPrice", null);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, tsoa_1.OperationId)('更新商品sku毛重'),
|
|
231
|
+
(0, tsoa_1.Post)('update-sku-gross-weight'),
|
|
232
|
+
__param(0, (0, tsoa_1.Body)())
|
|
233
|
+
], ProductService.prototype, "updateSkuGrossWeight", null);
|
|
226
234
|
__decorate([
|
|
227
235
|
(0, tsoa_1.OperationId)('获取商品+规格信息(包含删除的规格)'),
|
|
228
236
|
(0, tsoa_1.Post)('query-product-sku-list-with-del'),
|
|
@@ -36,6 +36,10 @@ export declare namespace ProductService {
|
|
|
36
36
|
price: number;
|
|
37
37
|
/** 会员价(分) */
|
|
38
38
|
memberPrice: number;
|
|
39
|
+
/** 商品效期(天) */
|
|
40
|
+
shelfLifeDays: number;
|
|
41
|
+
/** 毛重(克) */
|
|
42
|
+
grossWeight: number;
|
|
39
43
|
/** 库存 */
|
|
40
44
|
stock: number;
|
|
41
45
|
/** SKU编码 */
|
|
@@ -111,6 +115,10 @@ export declare namespace ProductService {
|
|
|
111
115
|
purchasePrice?: number;
|
|
112
116
|
/** 会员价(分) */
|
|
113
117
|
memberPrice?: number;
|
|
118
|
+
/** 商品效期(天) */
|
|
119
|
+
shelfLifeDays?: number;
|
|
120
|
+
/** 毛重(克) */
|
|
121
|
+
grossWeight?: number;
|
|
114
122
|
/** SKU编码 */
|
|
115
123
|
skuCode?: string;
|
|
116
124
|
/** 多SKU编码 */
|
|
@@ -382,6 +390,12 @@ export declare namespace ProductService {
|
|
|
382
390
|
/** 会员价(分) */
|
|
383
391
|
memberPrice?: number;
|
|
384
392
|
}
|
|
393
|
+
interface updateSkuGrossWeight {
|
|
394
|
+
/** SKU Id */
|
|
395
|
+
skuId: string;
|
|
396
|
+
/** 毛重(克) */
|
|
397
|
+
grossWeight: number;
|
|
398
|
+
}
|
|
385
399
|
interface queryProductSkuListWithDel {
|
|
386
400
|
/** 0 开始 */
|
|
387
401
|
pageIndex: number;
|
|
@@ -516,6 +530,10 @@ export declare namespace ProductService {
|
|
|
516
530
|
price: number;
|
|
517
531
|
/** 会员价 */
|
|
518
532
|
memberPrice: number;
|
|
533
|
+
/** 商品效期(天) */
|
|
534
|
+
shelfLifeDays: number;
|
|
535
|
+
/** 毛重(克) */
|
|
536
|
+
grossWeight: number;
|
|
519
537
|
/** 库存 */
|
|
520
538
|
stock: number;
|
|
521
539
|
/** 商品上下架状态 */
|
|
@@ -604,6 +622,10 @@ export declare namespace ProductService {
|
|
|
604
622
|
strikethroughPrice: number;
|
|
605
623
|
/** 会员价(分) */
|
|
606
624
|
memberPrice: number;
|
|
625
|
+
/** 商品效期(天) */
|
|
626
|
+
shelfLifeDays: number;
|
|
627
|
+
/** 毛重(克) */
|
|
628
|
+
grossWeight: number;
|
|
607
629
|
/** SKU编码 */
|
|
608
630
|
skuCode: string;
|
|
609
631
|
/** SKU排序(需求 163 新增) */
|
|
@@ -694,6 +716,10 @@ export declare namespace ProductService {
|
|
|
694
716
|
purchasePrice: number;
|
|
695
717
|
/** 会员价(分) */
|
|
696
718
|
memberPrice: number;
|
|
719
|
+
/** 商品效期(天) */
|
|
720
|
+
shelfLifeDays: number;
|
|
721
|
+
/** 毛重(克) */
|
|
722
|
+
grossWeight: number;
|
|
697
723
|
/** SKU编码 */
|
|
698
724
|
skuCode: string;
|
|
699
725
|
/** 多SKU编码 */
|
|
@@ -851,6 +877,8 @@ export declare namespace ProductService {
|
|
|
851
877
|
updateSkuStock(request: ProductService.Request.updateSkuStock[]): Promise<void>;
|
|
852
878
|
/** 更新商品sku价格 */
|
|
853
879
|
updateSkuPrice(request: ProductService.Request.updateSkuPrice[]): Promise<void>;
|
|
880
|
+
/** 更新商品sku毛重 */
|
|
881
|
+
updateSkuGrossWeight(request: ProductService.Request.updateSkuGrossWeight[]): Promise<void>;
|
|
854
882
|
/**
|
|
855
883
|
* 获取商品+规格信息(包含删除的规格)
|
|
856
884
|
*/
|