@be-link/pos-cli-nodejs 1.0.172 → 1.0.175
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
|
@@ -204,20 +204,14 @@ export declare namespace Service {
|
|
|
204
204
|
orderId: string;
|
|
205
205
|
unionId: string;
|
|
206
206
|
}
|
|
207
|
-
/**
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
* - DEPOSIT_ONLY:已付定金 / 待预约
|
|
212
|
-
* - AFTER_DEPOSIT:已付尾款后的履约链路(不含未付、不含仅定金)
|
|
213
|
-
* - PENDING_CONFIRM:待确认
|
|
214
|
-
* - PENDING_TRAVEL:待出行(待履约、履约中)
|
|
215
|
-
* - COMPLETED:已出行(完结)
|
|
216
|
-
*/
|
|
217
|
-
type LiveRoomOrderListPhase = 'ALL' | 'UNPAID' | 'DEPOSIT_ONLY' | 'AFTER_DEPOSIT' | 'PENDING_CONFIRM' | 'PENDING_TRAVEL' | 'COMPLETED';
|
|
207
|
+
/** 电商服务:直播间订单简要信息查询 */
|
|
208
|
+
interface getLiveRoomOrderEcommerceInfo {
|
|
209
|
+
orderId: string;
|
|
210
|
+
}
|
|
218
211
|
interface queryLiveRoomOrderList<K> {
|
|
219
212
|
unionId: string;
|
|
220
|
-
|
|
213
|
+
/** 订单状态列表,不传表示全部 */
|
|
214
|
+
statusList?: PosConstants.TradeOrderStatusEnum[];
|
|
221
215
|
pageIndex: number;
|
|
222
216
|
pageSize: number;
|
|
223
217
|
needBlocks: K;
|
|
@@ -942,11 +936,44 @@ export declare namespace Service {
|
|
|
942
936
|
};
|
|
943
937
|
infoCompleteness: 'NOT_PAID' | 'DEPOSIT_ONLY' | 'FULL';
|
|
944
938
|
}
|
|
939
|
+
/** 电商服务:直播间订单简要信息 */
|
|
940
|
+
interface getLiveRoomOrderEcommerceInfo {
|
|
941
|
+
orderId: string;
|
|
942
|
+
liveRoomId: string;
|
|
943
|
+
storeId: string;
|
|
944
|
+
unionId: string;
|
|
945
|
+
paymentStatus: 'PAID' | 'UNPAID';
|
|
946
|
+
refundStatus: string;
|
|
947
|
+
orderStatus: PosConstants.TradeOrderStatusEnum;
|
|
948
|
+
itemId: string;
|
|
949
|
+
skuId: string;
|
|
950
|
+
quantity: number;
|
|
951
|
+
originalFee: number;
|
|
952
|
+
actuallyPaidFee: number;
|
|
953
|
+
remainFee: number;
|
|
954
|
+
paidAt: number;
|
|
955
|
+
createdAt: number;
|
|
956
|
+
/** 定金已支付时返回:定金份数 */
|
|
957
|
+
depositQuantity?: number;
|
|
958
|
+
/** 定金已支付时返回:定金单价(分) */
|
|
959
|
+
depositUnitFee?: number;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* 直播间订单列表:开关信息(POS `queryLiveRoomOrderList` 聚合)
|
|
963
|
+
*/
|
|
964
|
+
interface ILiveRoomOrderListSwitchInfo {
|
|
965
|
+
/** 是否存在差价单 */
|
|
966
|
+
hasAdjustmentOrder: boolean;
|
|
967
|
+
/** 是否需要出行材料(与 orderTouristMaterialService.queryExists 一致) */
|
|
968
|
+
needTourMaterial: boolean;
|
|
969
|
+
}
|
|
945
970
|
type queryLiveRoomOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]> = {
|
|
946
971
|
total: number;
|
|
947
972
|
pageIndex: number;
|
|
948
973
|
pageSize: number;
|
|
949
|
-
list: DTO.QueryDataResProxy<K>
|
|
974
|
+
list: (DTO.QueryDataResProxy<K> & {
|
|
975
|
+
switchInfo: ILiveRoomOrderListSwitchInfo;
|
|
976
|
+
})[];
|
|
950
977
|
};
|
|
951
978
|
interface queryPartyOrderInfo {
|
|
952
979
|
/** 门店ID */
|
|
@@ -1108,6 +1135,11 @@ export declare namespace Service {
|
|
|
1108
1135
|
* @path /query/user/get-live-room-order-detail
|
|
1109
1136
|
*/
|
|
1110
1137
|
getLiveRoomOrderDetail(request: Request.getLiveRoomOrderDetail): Promise<Response.getLiveRoomOrderDetail>;
|
|
1138
|
+
/**
|
|
1139
|
+
* 电商服务:直播间订单简要信息查询
|
|
1140
|
+
* @path /query/user/get-live-room-order-ecommerce-info
|
|
1141
|
+
*/
|
|
1142
|
+
getLiveRoomOrderEcommerceInfo(request: Request.getLiveRoomOrderEcommerceInfo): Promise<Response.getLiveRoomOrderEcommerceInfo>;
|
|
1111
1143
|
/**
|
|
1112
1144
|
* 直播间订单列表(分页、按阶段筛选)
|
|
1113
1145
|
* @path /query/user/query-live-room-order-list
|
|
@@ -17,6 +17,7 @@ declare class QueryByUserService extends BaseService implements Service.QueryByU
|
|
|
17
17
|
queryUnionIdListByTimeRange(request: Service.Request.queryUnionIdListByTimeRange): Promise<string[]>;
|
|
18
18
|
queryOrderMergeRecordByOrderId(request: Service.Request.queryOrderMergeRecordByOrderId): Promise<Service.Response.queryOrderMergeRecordByOrderId[]>;
|
|
19
19
|
getLiveRoomOrderDetail(request: Service.Request.getLiveRoomOrderDetail): Promise<Service.Response.getLiveRoomOrderDetail>;
|
|
20
|
+
getLiveRoomOrderEcommerceInfo(request: Service.Request.getLiveRoomOrderEcommerceInfo): Promise<Service.Response.getLiveRoomOrderEcommerceInfo>;
|
|
20
21
|
queryLiveRoomOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryLiveRoomOrderList<K>): Promise<Service.Response.queryLiveRoomOrderList<K>>;
|
|
21
22
|
}
|
|
22
23
|
declare const queryByUserService: QueryByUserService;
|
|
@@ -76,10 +76,15 @@ class QueryByUserService extends service_1.default {
|
|
|
76
76
|
getLiveRoomOrderDetail(request) {
|
|
77
77
|
return (0, http_1.callApi)(this.getApiUrl(this.getLiveRoomOrderDetail), request);
|
|
78
78
|
}
|
|
79
|
+
getLiveRoomOrderEcommerceInfo(request) {
|
|
80
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getLiveRoomOrderEcommerceInfo), request);
|
|
81
|
+
}
|
|
79
82
|
queryLiveRoomOrderList(request) {
|
|
80
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
84
|
const result = (yield (0, http_1.callApi)(this.getApiUrl(this.queryLiveRoomOrderList), request));
|
|
82
|
-
return Object.assign(Object.assign({}, result), {
|
|
85
|
+
return Object.assign(Object.assign({}, result), {
|
|
86
|
+
// createProxy 入参类型不含 switchInfo;运行时展开原始订单会带上 switchInfo
|
|
87
|
+
list: result.list.map((item) => posProxy_1.default.createProxy(item)) });
|
|
83
88
|
});
|
|
84
89
|
}
|
|
85
90
|
}
|
package/types.d.ts
CHANGED