@be-link/ecommerce-trade-service-node-sdk 0.0.54 → 0.0.56

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/enums.d.ts CHANGED
@@ -184,7 +184,11 @@ export declare namespace ENUM {
184
184
  /** 支付有礼订单 */
185
185
  PAY_GIFT = "PAY_GIFT",
186
186
  /** 满赠订单 */
187
- FULL_GIFT = "FULL_GIFT"
187
+ FULL_GIFT = "FULL_GIFT",
188
+ /** 一元入会订单 */
189
+ ONE_RMB_MEMBER = "ONE_RMB_MEMBER",
190
+ /** 黑钻会员订单 */
191
+ BLACK_DIAMOND_MEMBER = "BLACK_DIAMOND_MEMBER"
188
192
  }
189
193
  enum OrderPromotionType {
190
194
  /** 满减优惠券 */
package/enums.js CHANGED
@@ -206,6 +206,10 @@ var ENUM;
206
206
  OrderType["PAY_GIFT"] = "PAY_GIFT";
207
207
  /** 满赠订单 */
208
208
  OrderType["FULL_GIFT"] = "FULL_GIFT";
209
+ /** 一元入会订单 */
210
+ OrderType["ONE_RMB_MEMBER"] = "ONE_RMB_MEMBER";
211
+ /** 黑钻会员订单 */
212
+ OrderType["BLACK_DIAMOND_MEMBER"] = "BLACK_DIAMOND_MEMBER";
209
213
  })(OrderType = ENUM.OrderType || (ENUM.OrderType = {}));
210
214
  let OrderPromotionType;
211
215
  (function (OrderPromotionType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-trade-service-node-sdk",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "description": "EcommerceTradeService Node.js SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.d.ts CHANGED
@@ -34,7 +34,7 @@ export interface ITradeOrderAttributes {
34
34
  isVirtual: boolean;
35
35
  isVerification: boolean;
36
36
  isOneRmbMember: boolean;
37
- isFreeGift: boolean;
37
+ isPayGift: boolean;
38
38
  isLivePlayback: boolean;
39
39
  createdAt: number;
40
40
  updatedAt: number;
package/utils/http.js CHANGED
@@ -82,7 +82,8 @@ async function callApi(url, request) {
82
82
  console.error(`ecommerce-trade-service 异常: ${axiosError.message},requestId: ${requestId}`);
83
83
  console.info('响应信息', data.message);
84
84
  console.error('异常堆栈', JSON.stringify(error.stack));
85
- throw new Error(data.errorType + ' - ' + data.message);
85
+ // throw new Error(data.errorType + ' - ' + data.message)
86
+ throw error;
86
87
  }
87
88
  // 调用dns模块解析url
88
89
  const dns = await Promise.resolve().then(() => __importStar(require('dns')));