@be-link/pos-cli-nodejs 1.0.173 → 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
|
@@ -958,11 +958,22 @@ export declare namespace Service {
|
|
|
958
958
|
/** 定金已支付时返回:定金单价(分) */
|
|
959
959
|
depositUnitFee?: number;
|
|
960
960
|
}
|
|
961
|
+
/**
|
|
962
|
+
* 直播间订单列表:开关信息(POS `queryLiveRoomOrderList` 聚合)
|
|
963
|
+
*/
|
|
964
|
+
interface ILiveRoomOrderListSwitchInfo {
|
|
965
|
+
/** 是否存在差价单 */
|
|
966
|
+
hasAdjustmentOrder: boolean;
|
|
967
|
+
/** 是否需要出行材料(与 orderTouristMaterialService.queryExists 一致) */
|
|
968
|
+
needTourMaterial: boolean;
|
|
969
|
+
}
|
|
961
970
|
type queryLiveRoomOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]> = {
|
|
962
971
|
total: number;
|
|
963
972
|
pageIndex: number;
|
|
964
973
|
pageSize: number;
|
|
965
|
-
list: DTO.QueryDataResProxy<K>
|
|
974
|
+
list: (DTO.QueryDataResProxy<K> & {
|
|
975
|
+
switchInfo: ILiveRoomOrderListSwitchInfo;
|
|
976
|
+
})[];
|
|
966
977
|
};
|
|
967
978
|
interface queryPartyOrderInfo {
|
|
968
979
|
/** 门店ID */
|
|
@@ -82,7 +82,9 @@ class QueryByUserService extends service_1.default {
|
|
|
82
82
|
queryLiveRoomOrderList(request) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
84
|
const result = (yield (0, http_1.callApi)(this.getApiUrl(this.queryLiveRoomOrderList), request));
|
|
85
|
-
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)) });
|
|
86
88
|
});
|
|
87
89
|
}
|
|
88
90
|
}
|