@be-link/ecommerce-product-service-node-sdk 0.0.9 → 0.0.11

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.
@@ -13,6 +13,8 @@ declare class ProductService extends BaseService implements Service.ProductContr
13
13
  queryProductList(request: Service.Request.queryProductList): Promise<Service.Response.queryProductList>;
14
14
  queryProductSkuList(request: Service.Request.queryProductList): Promise<Service.Response.queryProductSkuList>;
15
15
  querySkuBaseInfo(request: Service.Request.querySkuBaseInfo): Promise<Service.Response.querySkuBaseInfo[]>;
16
+ getProductDetail(request: Service.Request.detail): Promise<Service.Response.getProductDetail>;
17
+ isSoldOut(request: Service.Request.isSoldOut): Promise<Service.Response.isSoldOut>;
16
18
  }
17
19
  export declare const productService: ProductService;
18
20
  export default productService;
@@ -54,6 +54,12 @@ let ProductService = class ProductService extends BaseService_1.default {
54
54
  querySkuBaseInfo(request) {
55
55
  return (0, http_1.callApi)(this.getApiUrl(this.querySkuBaseInfo), request);
56
56
  }
57
+ getProductDetail(request) {
58
+ return (0, http_1.callApi)(this.getApiUrl(this.getProductDetail), request);
59
+ }
60
+ isSoldOut(request) {
61
+ return (0, http_1.callApi)(this.getApiUrl(this.isSoldOut), request);
62
+ }
57
63
  };
58
64
  __decorate([
59
65
  (0, tsoa_1.OperationId)('商品列表'),
@@ -110,6 +116,16 @@ __decorate([
110
116
  (0, tsoa_1.Post)('query-sku-base-info'),
111
117
  __param(0, (0, tsoa_1.Body)())
112
118
  ], ProductService.prototype, "querySkuBaseInfo", null);
119
+ __decorate([
120
+ (0, tsoa_1.OperationId)('获取商品详情-C端'),
121
+ (0, tsoa_1.Post)('get-product-detail'),
122
+ __param(0, (0, tsoa_1.Body)())
123
+ ], ProductService.prototype, "getProductDetail", null);
124
+ __decorate([
125
+ (0, tsoa_1.OperationId)('是否售罄-C端'),
126
+ (0, tsoa_1.Post)('is-sold-out'),
127
+ __param(0, (0, tsoa_1.Body)())
128
+ ], ProductService.prototype, "isSoldOut", null);
113
129
  ProductService = __decorate([
114
130
  (0, tsoa_1.Route)('product'),
115
131
  (0, tsoa_1.Tags)('Product')
@@ -51,6 +51,7 @@ export declare namespace ProductService {
51
51
  multiSkuCodes: string[];
52
52
  bindSkus: BindSku[];
53
53
  stock: number;
54
+ showBindSkus: number;
54
55
  }
55
56
  /**
56
57
  * 产品信息接口
@@ -132,12 +133,20 @@ export declare namespace ProductService {
132
133
  productNames?: string[];
133
134
  skuCodes?: string[];
134
135
  isCombo?: number;
136
+ pickTypes?: string[];
137
+ dispatchTypes?: string[];
138
+ storageMethods?: string[];
139
+ classifications?: string[];
140
+ status?: string;
135
141
  }
136
142
  interface querySkuBaseInfo {
137
143
  skuIds?: string[];
138
144
  productIds?: string[];
139
145
  fields: (keyof SkuField)[];
140
146
  }
147
+ interface isSoldOut {
148
+ skuId: string;
149
+ }
141
150
  }
142
151
  namespace Response {
143
152
  interface create {
@@ -204,6 +213,40 @@ export declare namespace ProductService {
204
213
  productId: string;
205
214
  skuId: string;
206
215
  }
216
+ interface getProductDetail {
217
+ productInfo: {
218
+ productId: string;
219
+ productType: string;
220
+ productName: string;
221
+ isCombo: number;
222
+ mainImg: string;
223
+ imgList: string[];
224
+ productDesc: string;
225
+ pickType: string;
226
+ dispatchType: string;
227
+ storageMethod: string;
228
+ classification: string;
229
+ stockUnit: string;
230
+ status: string;
231
+ miniSaleQuantity: number;
232
+ purchaseLimit: number;
233
+ freightTemplate: string[] | null;
234
+ visibleStores: string[] | null;
235
+ invisibleStores: string[] | null;
236
+ };
237
+ skuList: {
238
+ skuId: string;
239
+ attrs: Attr[];
240
+ price: number;
241
+ strikethroughPrice: number;
242
+ skuCode: string;
243
+ stock: number;
244
+ }[];
245
+ }
246
+ interface isSoldOut {
247
+ skuId: string;
248
+ soldOut: boolean;
249
+ }
207
250
  }
208
251
  /**
209
252
  * ProductLive Controller 接口定义
@@ -253,5 +296,13 @@ export declare namespace ProductService {
253
296
  * 获取商品SKU基础信息
254
297
  */
255
298
  querySkuBaseInfo(request: ProductService.Request.querySkuBaseInfo): Promise<ProductService.Response.querySkuBaseInfo[]>;
299
+ /**
300
+ * 获取商品详情-C端
301
+ */
302
+ getProductDetail(request: ProductService.Request.detail): Promise<ProductService.Response.getProductDetail>;
303
+ /**
304
+ * 是否售罄-C端
305
+ */
306
+ isSoldOut(request: ProductService.Request.isSoldOut): Promise<ProductService.Response.isSoldOut>;
256
307
  }
257
308
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-product-service-node-sdk",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "EcommerceProductService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",