@be-link/pos-cli-nodejs 1.0.202 → 1.0.204

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.202",
3
+ "version": "1.0.204",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -7,6 +7,7 @@ declare class OrderNoteService extends BaseService implements Service.OrderNoteC
7
7
  queryUnFinishedNoteOrderIdList(): Promise<string[]>;
8
8
  aiBuildNoteInfo(request: Service.Request.aiBuildNoteInfo): Promise<string>;
9
9
  changeNoteStatus(request: Service.Request.changeNoteStatus): Promise<void>;
10
+ queryNoteById(request: Service.Request.queryNoteById): Promise<Service.Response.queryNoteById>;
10
11
  }
11
12
  declare const orderNoteService: OrderNoteService;
12
13
  export default orderNoteService;
@@ -25,6 +25,9 @@ class OrderNoteService extends service_1.default {
25
25
  changeNoteStatus(request) {
26
26
  return (0, http_1.callApi)(this.getApiUrl(this.changeNoteStatus), request);
27
27
  }
28
+ queryNoteById(request) {
29
+ return (0, http_1.callApi)(this.getApiUrl(this.queryNoteById), request);
30
+ }
28
31
  }
29
32
  const orderNoteService = new OrderNoteService();
30
33
  exports.default = orderNoteService;
@@ -40,9 +40,14 @@ export declare namespace Service {
40
40
  /** 修改人类型 */
41
41
  modifyOperatorRole: PosConstants.ModifyOperatorRoleEnum;
42
42
  }
43
+ interface queryNoteById {
44
+ /** 备注Id */
45
+ noteId: string;
46
+ }
43
47
  }
44
48
  namespace Response {
45
49
  type queryNoteByOrderIdList = DTO.IPositiveNoteInfo[];
50
+ type queryNoteById = DTO.IPositiveNoteInfo | null;
46
51
  }
47
52
  interface OrderNoteController {
48
53
  /**
@@ -72,5 +77,11 @@ export declare namespace Service {
72
77
  * @path /note/change-note-status
73
78
  */
74
79
  changeNoteStatus(request: Request.changeNoteStatus): Promise<void>;
80
+ /**
81
+ * 根据备注id查询单条备注
82
+ * @returns 备注,不存在时为 null
83
+ * @path /note/query-note-by-id
84
+ */
85
+ queryNoteById(request: Request.queryNoteById): Promise<Response.queryNoteById>;
75
86
  }
76
87
  }
package/types.d.ts CHANGED
@@ -1106,6 +1106,8 @@ export interface IOrderOperatorRecord {
1106
1106
  toStatus: PosConstants.TradeOrderStatusEnum;
1107
1107
  /** 原因 */
1108
1108
  reason: string;
1109
+ /** 创建时间 */
1110
+ _createTime?: number;
1109
1111
  }
1110
1112
  export interface ITradeTourismInfo {
1111
1113
  /** 订单id */