@be-link/pos-cli-nodejs 1.0.50 → 1.0.51-beta.1
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 +3 -2
- package/types.d.ts +131 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@be-link/pos-cli-nodejs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51-beta.1",
|
|
4
4
|
"description": "正向订单服务Nodejs客户端",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"axios": "0.27.2",
|
|
49
49
|
"axios-retry": "^4.0.0",
|
|
50
50
|
"uuid": "^9.0.1",
|
|
51
|
-
"vitality-meta": "1.0.165"
|
|
51
|
+
"vitality-meta": "1.0.165",
|
|
52
|
+
"@be-link/cs-cli-nodejs": "0.1.1"
|
|
52
53
|
}
|
|
53
54
|
}
|
package/types.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as PosConstants from 'vitality-meta/enums/pos';
|
|
2
2
|
import * as commodityConstants from 'vitality-meta/enums/commodity';
|
|
3
|
+
import * as CSDto from '@be-link/cs-cli-nodejs/types';
|
|
4
|
+
import * as ServiceVenueDto from '@be-link/cs-cli-nodejs/cs/modules/serviceVenue/types';
|
|
5
|
+
import { CommonSaleStatus } from 'vitality-meta/enums/commodity';
|
|
3
6
|
/**
|
|
4
7
|
* 订单正向结构
|
|
5
8
|
*/
|
|
@@ -100,6 +103,8 @@ export interface IPositiveAttributes {
|
|
|
100
103
|
groupBookingType: number;
|
|
101
104
|
/** 是否班车信息需要确认 */
|
|
102
105
|
isShuttleBusNeedCheck: boolean;
|
|
106
|
+
/** 是否是迁移商品订单 */
|
|
107
|
+
isMigratedItemOrder: boolean;
|
|
103
108
|
/** 快照创建时间 */
|
|
104
109
|
createdAt: number;
|
|
105
110
|
/** 快照更新时间 */
|
|
@@ -273,6 +278,21 @@ export interface IPositiveItemInfo {
|
|
|
273
278
|
/** 更新时间 */
|
|
274
279
|
updatedAt: number;
|
|
275
280
|
}
|
|
281
|
+
export type IPositiveItemInfoV2 = {
|
|
282
|
+
_id: string;
|
|
283
|
+
name: string;
|
|
284
|
+
categoryOne: string;
|
|
285
|
+
categoryTwo: string;
|
|
286
|
+
venueId: string;
|
|
287
|
+
supplierId: string;
|
|
288
|
+
basicInfo: CSDto.IItemBasicInfo;
|
|
289
|
+
attributes: CSDto.IItemAttributes;
|
|
290
|
+
hotelItemInfo?: CSDto.IHotelItemInfo;
|
|
291
|
+
/** 金币信息 */
|
|
292
|
+
creditInfo: CreditInfo;
|
|
293
|
+
createdAt: number;
|
|
294
|
+
updatedAt: number;
|
|
295
|
+
};
|
|
276
296
|
export interface IPositiveSkuInfo {
|
|
277
297
|
/** SKU ID */
|
|
278
298
|
_id: string;
|
|
@@ -383,6 +403,8 @@ export interface IPositiveSkuInfo {
|
|
|
383
403
|
settlementPrice: number;
|
|
384
404
|
};
|
|
385
405
|
};
|
|
406
|
+
/** sku类型 */
|
|
407
|
+
type: PosConstants.SkuTypeEnum;
|
|
386
408
|
/** 剩余数量 */
|
|
387
409
|
remainQuantity: number;
|
|
388
410
|
/** 一级类目 */
|
|
@@ -394,6 +416,67 @@ export interface IPositiveSkuInfo {
|
|
|
394
416
|
/** sku快照更新时间 */
|
|
395
417
|
updatedAt: number;
|
|
396
418
|
}
|
|
419
|
+
export interface IPositiveSkuInfoV2 {
|
|
420
|
+
_id: string;
|
|
421
|
+
skuCreatedAt: number;
|
|
422
|
+
skuUpdatedAt: number;
|
|
423
|
+
categoryOne: string;
|
|
424
|
+
categoryTwo: string;
|
|
425
|
+
itemId: string;
|
|
426
|
+
comboId: string;
|
|
427
|
+
status: string;
|
|
428
|
+
stock: number;
|
|
429
|
+
departureDate: number;
|
|
430
|
+
quantity: number;
|
|
431
|
+
salePrice: number;
|
|
432
|
+
settlementPrice: number;
|
|
433
|
+
memberPrice: number;
|
|
434
|
+
memberPriceLimitCnt: number;
|
|
435
|
+
singleRoomPrice: number;
|
|
436
|
+
singleRoomSettlementPrice: number;
|
|
437
|
+
saleBeginTime: number;
|
|
438
|
+
saleEndTime: number;
|
|
439
|
+
lastUpdateStockTime: number;
|
|
440
|
+
type: PosConstants.SkuTypeEnum;
|
|
441
|
+
skuSnapShotId: string;
|
|
442
|
+
remainQuantity: number;
|
|
443
|
+
createdAt: number;
|
|
444
|
+
updatedAt: number;
|
|
445
|
+
}
|
|
446
|
+
export interface IPositiveShuttleBusSkuInfo {
|
|
447
|
+
itemId: string;
|
|
448
|
+
quantity: number;
|
|
449
|
+
relationInfo: {
|
|
450
|
+
id: string;
|
|
451
|
+
createdAt: number;
|
|
452
|
+
updatedAt: number;
|
|
453
|
+
deletedAt: number;
|
|
454
|
+
itemId: string;
|
|
455
|
+
supplierId: string;
|
|
456
|
+
routeId: string;
|
|
457
|
+
status: CommonSaleStatus;
|
|
458
|
+
salePrice: number;
|
|
459
|
+
settlementPrice: number;
|
|
460
|
+
saleDesc: string;
|
|
461
|
+
minOrderCount: number;
|
|
462
|
+
isLimitStock: number;
|
|
463
|
+
pickUpTime: string;
|
|
464
|
+
};
|
|
465
|
+
type: PosConstants.SkuTypeEnum;
|
|
466
|
+
skuSnapShotId: string;
|
|
467
|
+
remainQuantity: number;
|
|
468
|
+
createdAt: number;
|
|
469
|
+
updatedAt: number;
|
|
470
|
+
}
|
|
471
|
+
export type IPositiveOrderComboInfo = {
|
|
472
|
+
id: string;
|
|
473
|
+
createdAt: number;
|
|
474
|
+
updatedAt: number;
|
|
475
|
+
orderId: string;
|
|
476
|
+
comboInfo: CSDto.IItemCombo | CSDto.IItemComboShortcut;
|
|
477
|
+
comboId: string;
|
|
478
|
+
type: PosConstants.ComboTypeEnum;
|
|
479
|
+
};
|
|
397
480
|
export interface IWxPaymentInfo {
|
|
398
481
|
appId: string;
|
|
399
482
|
nonceStr: string;
|
|
@@ -458,6 +541,38 @@ export interface CouponSnapShotInfo {
|
|
|
458
541
|
/** 优惠券的使用限制。 */
|
|
459
542
|
usageLimit: any;
|
|
460
543
|
}
|
|
544
|
+
export interface IPositiveRoomInfo {
|
|
545
|
+
id: string;
|
|
546
|
+
createdAt: number;
|
|
547
|
+
updatedAt: number;
|
|
548
|
+
deletedAt: number;
|
|
549
|
+
orderId: string;
|
|
550
|
+
roomInfo: ServiceVenueDto.ServiceVenue.Response.IGetRoomTypeInfoRes;
|
|
551
|
+
roomId: string;
|
|
552
|
+
}
|
|
553
|
+
export interface IPositiveVenueInfo {
|
|
554
|
+
id: string;
|
|
555
|
+
createdAt: number;
|
|
556
|
+
updatedAt: number;
|
|
557
|
+
deletedAt: number;
|
|
558
|
+
orderId: string;
|
|
559
|
+
venueInfo: ServiceVenueDto.ServiceVenue.Response.IGetServiceVenueInfoRes;
|
|
560
|
+
venueId: string;
|
|
561
|
+
}
|
|
562
|
+
export interface IPositiveFeeDetailInfo {
|
|
563
|
+
id: string;
|
|
564
|
+
createdAt: number;
|
|
565
|
+
updatedAt: number;
|
|
566
|
+
deletedAt: number;
|
|
567
|
+
orderId: string;
|
|
568
|
+
itemId: string;
|
|
569
|
+
comboId: string;
|
|
570
|
+
skuId: string;
|
|
571
|
+
value: number;
|
|
572
|
+
quantity: number;
|
|
573
|
+
type: string;
|
|
574
|
+
desc: string;
|
|
575
|
+
}
|
|
461
576
|
export interface IPositivePromotionInfo {
|
|
462
577
|
/** 营销记录Id */
|
|
463
578
|
_id: string;
|
|
@@ -826,26 +941,18 @@ export interface IStore {
|
|
|
826
941
|
export interface IRawOrderStructure {
|
|
827
942
|
basicInfo: IPositiveOrder;
|
|
828
943
|
attributes?: {
|
|
829
|
-
|
|
830
|
-
isFirstTrade: number;
|
|
831
|
-
hasMergedOrder: number;
|
|
832
|
-
isMerged: number;
|
|
833
|
-
isMealInfoModified: number;
|
|
834
|
-
isMealInfoConfirmed: number;
|
|
835
|
-
isPurchasedInsurance: number;
|
|
836
|
-
buyerWxNotificationIsRead: number;
|
|
837
|
-
hasSentWXNotification: number;
|
|
838
|
-
isAuthSendItineraryInfoSubscribeMessage: number;
|
|
839
|
-
isTouristsCompletely: number;
|
|
840
|
-
isShuttleBusNeedCheck: number;
|
|
841
|
-
isGroupMainOrder: number;
|
|
842
|
-
isGroupSubOrder: number;
|
|
843
|
-
groupBookingType: number;
|
|
944
|
+
[K in keyof Omit<IPositiveAttributes, 'id' | 'createdAt' | 'updatedAt'>]: number;
|
|
844
945
|
};
|
|
845
946
|
commodityInfo?: (IPositiveItemInfo & {
|
|
846
947
|
skus: IPositiveSkuInfo[];
|
|
847
948
|
storeInfo?: IStore;
|
|
848
949
|
})[];
|
|
950
|
+
itemInfo?: IPositiveItemInfoV2;
|
|
951
|
+
skuInfoList?: (IPositiveSkuInfoV2 | IPositiveShuttleBusSkuInfo)[];
|
|
952
|
+
comboInfoList?: IPositiveOrderComboInfo[];
|
|
953
|
+
roomInfoList?: IPositiveRoomInfo[];
|
|
954
|
+
venueInfo?: IPositiveVenueInfo;
|
|
955
|
+
feeDetailInfoList?: IPositiveFeeDetailInfo[];
|
|
849
956
|
paymentInfo?: IPositivePaymentInfo[];
|
|
850
957
|
promotionInfo?: IPositivePromotionInfo[];
|
|
851
958
|
}
|
|
@@ -990,7 +1097,15 @@ export interface QueryDataBlockTypeMap {
|
|
|
990
1097
|
storeInfo: IStore;
|
|
991
1098
|
})[];
|
|
992
1099
|
/** sku快照信息 */
|
|
993
|
-
skuInfo: IPositiveSkuInfo[];
|
|
1100
|
+
skuInfo: (IPositiveSkuInfo | IPositiveShuttleBusSkuInfo | IPositiveSkuInfoV2)[];
|
|
1101
|
+
/** 套餐快照信息 */
|
|
1102
|
+
comboInfo: IPositiveOrderComboInfo[];
|
|
1103
|
+
/** 房型快照信息 */
|
|
1104
|
+
roomInfo: IPositiveRoomInfo[];
|
|
1105
|
+
/** 场所快照信息 */
|
|
1106
|
+
venueInfo: IPositiveVenueInfo;
|
|
1107
|
+
/** 费用明细信息 */
|
|
1108
|
+
feeDetailInfoList: IPositiveFeeDetailInfo[];
|
|
994
1109
|
/** 支付信息 */
|
|
995
1110
|
paymentInfo: IPositivePaymentInfo[];
|
|
996
1111
|
/** 营销信息 */
|