@be-link/pos-cli-nodejs 1.0.232 → 1.0.233

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.232",
3
+ "version": "1.0.233",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "repository": {
package/types.d.ts CHANGED
@@ -132,6 +132,10 @@ export interface IPositiveAttributes {
132
132
  isMigratedItemOrder: boolean;
133
133
  /** 是否为同程视频号订单 */
134
134
  isTongchengVideoAccountOrder: boolean;
135
+ /** 是否为自动接单订单 */
136
+ isAutoConfirmedOrder?: boolean;
137
+ /** 供应商是否已知晓 */
138
+ isSupplierAcknowledged?: boolean;
135
139
  /** 跟团游不成团状态 GroupFormationStatusEnum:null 非不成团 / PENDING / RESCHEDULING / RESOLVED */
136
140
  isGroupFormationFailed: string | null;
137
141
  /** 不成团操作时间(毫秒时间戳,仅存于 attributes JSON) */
@@ -0,0 +1 @@
1
+ export {};
package/types.test.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const positiveAttributes = {
4
+ isAutoConfirmedOrder: true,
5
+ isSupplierAcknowledged: false,
6
+ };
7
+ const isAutoConfirmedOrder = 1;
8
+ const isSupplierAcknowledged = 0;
9
+ // @ts-expect-error 原始订单结构中的布尔属性统一映射为数值
10
+ const invalidIsAutoConfirmedOrder = true;
11
+ describe('订单属性类型', () => {
12
+ it('IPositiveAttributes 声明布尔字段,IRawOrderStructure 映射为数值字段', () => {
13
+ expect(positiveAttributes.isAutoConfirmedOrder).toBe(true);
14
+ expect(positiveAttributes.isSupplierAcknowledged).toBe(false);
15
+ expect(isAutoConfirmedOrder).toBe(1);
16
+ expect(isSupplierAcknowledged).toBe(0);
17
+ expect(invalidIsAutoConfirmedOrder).toBe(true);
18
+ });
19
+ });