@be-link/pos-cli-nodejs 0.0.4 → 0.0.7
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/README.md +2 -0
- package/index.d.ts +1 -16
- package/index.js +1 -1
- package/package.json +1 -1
- package/pos/modules/orderCore/types.d.ts +24 -2
- package/pos/modules/orderQuery/types.d.ts +4 -4
- package/types.d.ts +20 -8
package/README.md
CHANGED
|
@@ -35,4 +35,6 @@ import { queryByStoreService } from '@be-link/pos-cli-nodejs'
|
|
|
35
35
|
import { queryByWebService } from '@be-link/pos-cli-nodejs'
|
|
36
36
|
// 订单备注类
|
|
37
37
|
import { orderNoteService } from '@be-link/pos-cli-nodejs'
|
|
38
|
+
// 枚举类
|
|
39
|
+
import { PosConstants } from '@be-link/pos-cli-nodejs'
|
|
38
40
|
```
|
package/index.d.ts
CHANGED
|
@@ -10,19 +10,4 @@ import orderJobService from './pos/modules/orderJob/service';
|
|
|
10
10
|
/** 业务模块 */
|
|
11
11
|
export { orderCoreService, orderFulfillService, queryByCommodityService, queryByStoreService, queryByUserService, queryByWebService, orderNoteService, orderJobService, };
|
|
12
12
|
/** 枚举类 */
|
|
13
|
-
export declare const PosConstants:
|
|
14
|
-
TradeOrderStatusEnum: typeof POS.Constants.TradeOrderStatusEnum;
|
|
15
|
-
TradeOperatorRoleEnum: typeof POS.Constants.TradeOperatorRoleEnum;
|
|
16
|
-
OperatorRoleEnum: typeof POS.Constants.OperatorRoleEnum;
|
|
17
|
-
NoteStatusEnum: typeof POS.Constants.NoteStatusEnum;
|
|
18
|
-
ModifyOperatorRoleEnum: typeof POS.Constants.ModifyOperatorRoleEnum;
|
|
19
|
-
NoteTypeEnum: typeof POS.Constants.NoteTypeEnum;
|
|
20
|
-
PaymentTypeEnum: typeof POS.Constants.PaymentTypeEnum;
|
|
21
|
-
PayToolEnum: typeof POS.Constants.PayToolEnum;
|
|
22
|
-
PromotionTypeEnum: typeof POS.Constants.PromotionTypeEnum;
|
|
23
|
-
PurchaseSkuStatusEnum: typeof POS.Constants.PurchaseSkuStatusEnum;
|
|
24
|
-
ApplicablePeopleEnum: typeof POS.Constants.ApplicablePeopleEnum;
|
|
25
|
-
ItineraryTypeEnum: typeof POS.Constants.ItineraryTypeEnum;
|
|
26
|
-
TransportationTypeEnum: typeof POS.Constants.TransportationTypeEnum;
|
|
27
|
-
ShuttleTypeEnum: typeof POS.Constants.ShuttleTypeEnum;
|
|
28
|
-
};
|
|
13
|
+
export declare const PosConstants: typeof POS.Constants;
|
package/index.js
CHANGED
|
@@ -22,4 +22,4 @@ exports.orderNoteService = service_3.default;
|
|
|
22
22
|
const service_4 = __importDefault(require("./pos/modules/orderJob/service"));
|
|
23
23
|
exports.orderJobService = service_4.default;
|
|
24
24
|
/** 枚举类 */
|
|
25
|
-
exports.PosConstants =
|
|
25
|
+
exports.PosConstants = types_1.POS.Constants;
|
package/package.json
CHANGED
|
@@ -6,6 +6,8 @@ export declare namespace Service {
|
|
|
6
6
|
basicInfo: {
|
|
7
7
|
/** 用户id */
|
|
8
8
|
unionId: string;
|
|
9
|
+
/** openId */
|
|
10
|
+
openId: string;
|
|
9
11
|
/** 实际支付 */
|
|
10
12
|
actuallyPaidFee: number;
|
|
11
13
|
/** 交易场景 */
|
|
@@ -23,6 +25,8 @@ export declare namespace Service {
|
|
|
23
25
|
fromUnionId: string;
|
|
24
26
|
/** 来源人身份 */
|
|
25
27
|
fromUnionRole: string;
|
|
28
|
+
/** 主单Id */
|
|
29
|
+
rootOrderId?: string;
|
|
26
30
|
};
|
|
27
31
|
/** 出行人信息 */
|
|
28
32
|
tourismInfo: {
|
|
@@ -33,7 +37,7 @@ export declare namespace Service {
|
|
|
33
37
|
mobile: string;
|
|
34
38
|
};
|
|
35
39
|
/** 出行人id列表 */
|
|
36
|
-
touristIdList: string;
|
|
40
|
+
touristIdList: string[];
|
|
37
41
|
};
|
|
38
42
|
/** 商品信息 */
|
|
39
43
|
commodityInfo: {
|
|
@@ -43,7 +47,7 @@ export declare namespace Service {
|
|
|
43
47
|
skuList: {
|
|
44
48
|
skuId: string;
|
|
45
49
|
quantity: number;
|
|
46
|
-
};
|
|
50
|
+
}[];
|
|
47
51
|
};
|
|
48
52
|
/** 优惠信息 */
|
|
49
53
|
promotionInfo: {
|
|
@@ -56,6 +60,24 @@ export declare namespace Service {
|
|
|
56
60
|
/** 是否使用积分 */
|
|
57
61
|
useCreditCoin: boolean;
|
|
58
62
|
};
|
|
63
|
+
/** 履约信息 */
|
|
64
|
+
fulfillInfo?: {
|
|
65
|
+
/** 房间信息 */
|
|
66
|
+
roomInfo?: {
|
|
67
|
+
/** 单床房 */
|
|
68
|
+
SINGLE_BED: {
|
|
69
|
+
/** 数量 */
|
|
70
|
+
count: number;
|
|
71
|
+
};
|
|
72
|
+
/** 双床房 */
|
|
73
|
+
DOUBLE_BED: {
|
|
74
|
+
/** 数量 */
|
|
75
|
+
count: number;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
/** 自定义餐食 */
|
|
79
|
+
customMealInfo: string;
|
|
80
|
+
};
|
|
59
81
|
}
|
|
60
82
|
interface orderPaid {
|
|
61
83
|
/** 订单id*/
|
|
@@ -27,13 +27,13 @@ export declare namespace Service {
|
|
|
27
27
|
/** 标记信息 */
|
|
28
28
|
[QueryDataBlock.attributes]: POS.DTO.IPositiveAttributes;
|
|
29
29
|
/** 商品快照信息 */
|
|
30
|
-
[QueryDataBlock.itemInfo]: POS.DTO.IPositiveItemInfo;
|
|
30
|
+
[QueryDataBlock.itemInfo]: POS.DTO.IPositiveItemInfo[];
|
|
31
31
|
/** sku快照信息 */
|
|
32
|
-
[QueryDataBlock.skuInfo]: POS.DTO.IPositiveSkuInfo;
|
|
32
|
+
[QueryDataBlock.skuInfo]: POS.DTO.IPositiveSkuInfo[];
|
|
33
33
|
/** 支付信息 */
|
|
34
|
-
[QueryDataBlock.paymentInfo]: POS.DTO.IPositivePaymentInfo;
|
|
34
|
+
[QueryDataBlock.paymentInfo]: POS.DTO.IPositivePaymentInfo[];
|
|
35
35
|
/** 营销信息 */
|
|
36
|
-
[QueryDataBlock.promotionInfo]: POS.DTO.IPositivePromotionInfo;
|
|
36
|
+
[QueryDataBlock.promotionInfo]: POS.DTO.IPositivePromotionInfo[];
|
|
37
37
|
}
|
|
38
38
|
/** 订单查询结果 */
|
|
39
39
|
type QueryDataRes<K extends DTO.QueryDataBlock[]> = {
|
package/types.d.ts
CHANGED
|
@@ -286,7 +286,11 @@ export declare namespace POS {
|
|
|
286
286
|
*/
|
|
287
287
|
interface IPositiveItemInfo {
|
|
288
288
|
/** 商品ID */
|
|
289
|
-
|
|
289
|
+
_id: string;
|
|
290
|
+
/** 创建时间 */
|
|
291
|
+
_createTime: number;
|
|
292
|
+
/** 更新时间 */
|
|
293
|
+
_updateTime: number;
|
|
290
294
|
/** 取消政策 */
|
|
291
295
|
cancellationPolicy: string;
|
|
292
296
|
/** 一级类目 */
|
|
@@ -374,7 +378,11 @@ export declare namespace POS {
|
|
|
374
378
|
}
|
|
375
379
|
interface IPositiveSkuInfo {
|
|
376
380
|
/** SKU ID */
|
|
377
|
-
|
|
381
|
+
_id: string;
|
|
382
|
+
/** 创建时间 */
|
|
383
|
+
_createTime: number;
|
|
384
|
+
/** 更新时间 */
|
|
385
|
+
_updateTime: number;
|
|
378
386
|
/** SKU 适用人群类型 */
|
|
379
387
|
applicablePeople: Constants.ApplicablePeopleEnum;
|
|
380
388
|
/** SKU 套餐 */
|
|
@@ -407,10 +415,6 @@ export declare namespace POS {
|
|
|
407
415
|
volunteerMobile?: string;
|
|
408
416
|
/** 提示 */
|
|
409
417
|
tips?: string;
|
|
410
|
-
/** 合同 */
|
|
411
|
-
contract?: any;
|
|
412
|
-
/** 保险 */
|
|
413
|
-
certificateOfInsurance?: any;
|
|
414
418
|
};
|
|
415
419
|
/** SKU 所属商品 ID */
|
|
416
420
|
itemId: string;
|
|
@@ -510,7 +514,7 @@ export declare namespace POS {
|
|
|
510
514
|
}
|
|
511
515
|
interface IPositivePromotionInfo {
|
|
512
516
|
/** 营销记录Id */
|
|
513
|
-
|
|
517
|
+
_id: string;
|
|
514
518
|
/** 订单Id */
|
|
515
519
|
tradeOrderId: string;
|
|
516
520
|
/** 与营销关联的业务的唯一标识符。 */
|
|
@@ -678,7 +682,7 @@ export declare namespace POS {
|
|
|
678
682
|
}
|
|
679
683
|
interface IPositiveNoteInfo {
|
|
680
684
|
/** 备注Id */
|
|
681
|
-
|
|
685
|
+
_id: string;
|
|
682
686
|
/** 订单Id */
|
|
683
687
|
tradeOrderId: string;
|
|
684
688
|
/** 操作人角色 */
|
|
@@ -718,5 +722,13 @@ export declare namespace POS {
|
|
|
718
722
|
/** 附件文件的URL列表 */
|
|
719
723
|
attachment: string[];
|
|
720
724
|
}
|
|
725
|
+
interface IRawOrderStructure {
|
|
726
|
+
basicInfo: DTO.IPositiveOrder;
|
|
727
|
+
attributes?: DTO.IPositiveAttributes[];
|
|
728
|
+
itemInfo?: DTO.IPositiveItemInfo[];
|
|
729
|
+
skuInfo?: DTO.IPositiveSkuInfo[];
|
|
730
|
+
paymentInfo?: DTO.IPositivePaymentInfo[];
|
|
731
|
+
promotionInfo?: DTO.IPositivePromotionInfo[];
|
|
732
|
+
}
|
|
721
733
|
}
|
|
722
734
|
}
|