@be-link/pos-cli-nodejs 1.0.98 → 1.0.100

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "1.0.98",
3
+ "version": "1.0.100",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,7 +4,8 @@ import { Service } from './types';
4
4
  declare class OrderTouristMaterialService extends BaseService implements Service.Controller {
5
5
  protected prefixUrl: string;
6
6
  get(request: Service.Request.IGet): Promise<ITradeOrderTourMaterialInfo>;
7
- queryExists(request: Service.Request.IQueryExists): Promise<Record<string, number>>;
7
+ queryExists(request: Service.Request.IQueryExists): Promise<Record<string, boolean>>;
8
+ getTourMaterialInfo(request: Service.Request.IGetTourMaterialInfo): Promise<Service.Response.IGetTourMaterialInfo>;
8
9
  }
9
10
  declare const orderTouristMaterialService: OrderTouristMaterialService;
10
11
  export default orderTouristMaterialService;
@@ -16,6 +16,9 @@ class OrderTouristMaterialService extends service_1.default {
16
16
  async queryExists(request) {
17
17
  return (0, http_1.callApi)(this.getApiUrl(this.queryExists), request);
18
18
  }
19
+ async getTourMaterialInfo(request) {
20
+ return (0, http_1.callApi)(this.getApiUrl(this.getTourMaterialInfo), request);
21
+ }
19
22
  }
20
23
  const orderTouristMaterialService = new OrderTouristMaterialService();
21
24
  exports.default = orderTouristMaterialService;
@@ -1,4 +1,5 @@
1
- import { ITradeOrderTourMaterialInfo } from '../../../types';
1
+ import * as PosEnums from 'vitality-meta/enums/pos';
2
+ import { ITourMaterialSnapshot, ITradeOrderTourMaterialInfo } from '../../../types';
2
3
  export declare namespace Service {
3
4
  namespace Request {
4
5
  interface IGet {
@@ -7,12 +8,22 @@ export declare namespace Service {
7
8
  interface IQueryExists {
8
9
  orderIds: string[];
9
10
  }
11
+ interface IGetTourMaterialInfo {
12
+ orderId: string;
13
+ }
14
+ }
15
+ namespace Response {
16
+ interface IGetTourMaterialInfo extends ITourMaterialSnapshot {
17
+ orderId: string;
18
+ Process: PosEnums.TouristMaterialTotalStatus[];
19
+ }
10
20
  }
11
- namespace Response { }
12
21
  interface Controller {
13
22
  /** 获取订单上的商品出行人材料快照信息 */
14
23
  get(request: Request.IGet): Promise<ITradeOrderTourMaterialInfo>;
15
24
  /** 查询订单上是否存在商品出行材料快照信息 */
16
- queryExists(request: Request.IQueryExists): Promise<Record<string, number>>;
25
+ queryExists(request: Request.IQueryExists): Promise<Record<string, boolean>>;
26
+ /** 获取商品出行材料快照信息 */
27
+ getTourMaterialInfo(request: Request.IGetTourMaterialInfo): Promise<Response.IGetTourMaterialInfo>;
17
28
  }
18
29
  }