@be-link/cs-cli-nodejs 0.0.117 → 0.0.119

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,10 +1,9 @@
1
1
  import BaseService from '../../baseService';
2
2
  import { QueryByItemCombo } from './type';
3
- import * as GDto from '../../../../types';
4
3
  declare class QueryByItemComboService extends BaseService implements QueryByItemCombo.Controller {
5
4
  prefixUrl: string;
6
- get(request: QueryByItemCombo.Request.IGet): Promise<GDto.IItemCombo>;
7
- getShortcut(request: QueryByItemCombo.Request.IGetShortcut): Promise<GDto.IItemComboShortcut>;
5
+ get(request: QueryByItemCombo.Request.IGet): Promise<QueryByItemCombo.Response.IGet>;
6
+ getShortcut(request: QueryByItemCombo.Request.IGetShortcut): Promise<QueryByItemCombo.Response.IGetShortcut>;
8
7
  mget(request: QueryByItemCombo.Request.IMGet): Promise<QueryByItemCombo.Response.IMGet[]>;
9
8
  mgetShortcut(request: QueryByItemCombo.Request.IMGetShortcut): Promise<QueryByItemCombo.Response.IMGetShortcut[]>;
10
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItemCombo/service.ts"],"names":[],"mappings":";;;;;AAAA,oEAA2C;AAG3C,wCAAuC;AAEvC,MAAM,uBAAwB,SAAQ,qBAAW;IAAjD;;QACE,cAAS,GAAW,2BAA2B,CAAA;IAyBjD,CAAC;IAvBC,GAAG,CAAC,OAAsC;QACxC,OAAO,IAAA,cAAO,EAAqC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAA;IACvF,CAAC;IAED,WAAW,CAAC,OAA8C;QACxD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAChC,OAAO,CACR,CAAA;IACH,CAAC;IAED,IAAI,CAAC,OAAuC;QAC1C,OAAO,IAAA,cAAO,EAAsC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;IAED,YAAY,CACV,OAA+C;QAE/C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,EACjC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,WAAW,GAAG,IAAI,uBAAuB,EAAE,CAAA;AACjD,kBAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemQuery/byItemCombo/service.ts"],"names":[],"mappings":";;;;;AAAA,oEAA2C;AAG3C,wCAAuC;AAEvC,MAAM,uBAAwB,SAAQ,qBAAW;IAAjD;;QACE,cAAS,GAAW,2BAA2B,CAAA;IA2BjD,CAAC;IAzBC,GAAG,CAAC,OAAsC;QACxC,OAAO,IAAA,cAAO,EAAqC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAA;IACvF,CAAC;IAED,WAAW,CACT,OAA8C;QAE9C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAChC,OAAO,CACR,CAAA;IACH,CAAC;IAED,IAAI,CAAC,OAAuC;QAC1C,OAAO,IAAA,cAAO,EAAsC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;IAED,YAAY,CACV,OAA+C;QAE/C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,EACjC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,WAAW,GAAG,IAAI,uBAAuB,EAAE,CAAA;AACjD,kBAAe,WAAW,CAAA"}
@@ -51,10 +51,38 @@ export declare namespace QueryByItemCombo {
51
51
  /** 基础套餐信息 */
52
52
  basicCombo: IItemCombo;
53
53
  }
54
+ /** 查询商品基础套餐详情返回 */
55
+ type IGet = GDto.IItemCombo & {
56
+ /** 房间销售绑定条件 */
57
+ roomSaleBindCondition: {
58
+ /** 状态:生效/未生效 */
59
+ status: CommodityEnums.CommonStatus;
60
+ /** 房型ID */
61
+ roomId: string;
62
+ /** 绑定条件 */
63
+ condition: {
64
+ /** 条件类型 */
65
+ type: CommodityEnums.ItemRoomSaleBindConditionType;
66
+ /** 条件值 */
67
+ value: number;
68
+ };
69
+ /** 销售数量 */
70
+ saleCount: number;
71
+ };
72
+ };
73
+ type IGetShortcut = GDto.IItemComboShortcut & {
74
+ /** 基础套餐信息 */
75
+ basicCombo: {
76
+ /** 套餐ID */
77
+ id: string;
78
+ /** 套餐名称 */
79
+ name: string;
80
+ };
81
+ };
54
82
  }
55
83
  interface Controller {
56
- get(request: QueryByItemCombo.Request.IGet): Promise<GDto.IItemCombo>;
57
- getShortcut(request: QueryByItemCombo.Request.IGetShortcut): Promise<GDto.IItemComboShortcut>;
84
+ get(request: QueryByItemCombo.Request.IGet): Promise<QueryByItemCombo.Response.IGet>;
85
+ getShortcut(request: QueryByItemCombo.Request.IGetShortcut): Promise<QueryByItemCombo.Response.IGetShortcut>;
58
86
  mget(request: QueryByItemCombo.Request.IMGet): Promise<QueryByItemCombo.Response.IMGet[]>;
59
87
  mgetShortcut(request: QueryByItemCombo.Request.IMGetShortcut): Promise<QueryByItemCombo.Response.IMGetShortcut[]>;
60
88
  }
@@ -35,8 +35,8 @@ declare const itemQueryService: {
35
35
  };
36
36
  byItemCombo: {
37
37
  prefixUrl: string;
38
- get(request: import("./byItemCombo/type").QueryByItemCombo.Request.IGet): Promise<import("../../../types").IItemCombo>;
39
- getShortcut(request: import("./byItemCombo/type").QueryByItemCombo.Request.IGetShortcut): Promise<import("../../../types").IItemComboShortcut>;
38
+ get(request: import("./byItemCombo/type").QueryByItemCombo.Request.IGet): Promise<import("./byItemCombo/type").QueryByItemCombo.Response.IGet>;
39
+ getShortcut(request: import("./byItemCombo/type").QueryByItemCombo.Request.IGetShortcut): Promise<import("./byItemCombo/type").QueryByItemCombo.Response.IGetShortcut>;
40
40
  mget(request: import("./byItemCombo/type").QueryByItemCombo.Request.IMGet): Promise<import("./byItemCombo/type").QueryByItemCombo.Response.IItemCombo[]>;
41
41
  mgetShortcut(request: import("./byItemCombo/type").QueryByItemCombo.Request.IMGetShortcut): Promise<import("./byItemCombo/type").QueryByItemCombo.Response.IMGetShortcut[]>;
42
42
  isPublicEnv: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/cs-cli-nodejs",
3
- "version": "0.0.117",
3
+ "version": "0.0.119",
4
4
  "description": "商品服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/types.d.ts CHANGED
@@ -140,7 +140,7 @@ export interface EntertainmentIntroItem {
140
140
  }
141
141
  export interface EntertainmentInfo {
142
142
  introduction: EntertainmentIntroItem[];
143
- description: EntertainmentDescItem;
143
+ description: CommonDescriptionItem[];
144
144
  }
145
145
  export interface IHotelItemInfo {
146
146
  /** 商品ID */