@be-link/pos-cli-nodejs 1.0.171 → 1.0.172
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,6 +204,30 @@ export declare namespace Service {
|
|
|
204
204
|
orderId: string;
|
|
205
205
|
unionId: string;
|
|
206
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* 直播间订单列表分段(与 TradeOrderStatusEnum 组合筛选)
|
|
209
|
+
* - ALL:全部
|
|
210
|
+
* - UNPAID:未支付(含支付失败)
|
|
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';
|
|
218
|
+
interface queryLiveRoomOrderList<K> {
|
|
219
|
+
unionId: string;
|
|
220
|
+
phase?: LiveRoomOrderListPhase;
|
|
221
|
+
pageIndex: number;
|
|
222
|
+
pageSize: number;
|
|
223
|
+
needBlocks: K;
|
|
224
|
+
sort?: {
|
|
225
|
+
createdAt?: 'ASC' | 'DESC';
|
|
226
|
+
paidAt?: 'ASC' | 'DESC';
|
|
227
|
+
completedAt?: 'ASC' | 'DESC';
|
|
228
|
+
fulfillAt?: 'ASC' | 'DESC';
|
|
229
|
+
};
|
|
230
|
+
}
|
|
207
231
|
interface queryOrderBySkuIdList<K> {
|
|
208
232
|
/** skuId列表 */
|
|
209
233
|
skuIdList: string[];
|
|
@@ -918,6 +942,12 @@ export declare namespace Service {
|
|
|
918
942
|
};
|
|
919
943
|
infoCompleteness: 'NOT_PAID' | 'DEPOSIT_ONLY' | 'FULL';
|
|
920
944
|
}
|
|
945
|
+
type queryLiveRoomOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]> = {
|
|
946
|
+
total: number;
|
|
947
|
+
pageIndex: number;
|
|
948
|
+
pageSize: number;
|
|
949
|
+
list: DTO.QueryDataResProxy<K>[];
|
|
950
|
+
};
|
|
921
951
|
interface queryPartyOrderInfo {
|
|
922
952
|
/** 门店ID */
|
|
923
953
|
storeId: string;
|
|
@@ -1078,6 +1108,11 @@ export declare namespace Service {
|
|
|
1078
1108
|
* @path /query/user/get-live-room-order-detail
|
|
1079
1109
|
*/
|
|
1080
1110
|
getLiveRoomOrderDetail(request: Request.getLiveRoomOrderDetail): Promise<Response.getLiveRoomOrderDetail>;
|
|
1111
|
+
/**
|
|
1112
|
+
* 直播间订单列表(分页、按阶段筛选)
|
|
1113
|
+
* @path /query/user/query-live-room-order-list
|
|
1114
|
+
*/
|
|
1115
|
+
queryLiveRoomOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.queryLiveRoomOrderList<K>): Promise<Response.queryLiveRoomOrderList<K>>;
|
|
1081
1116
|
}
|
|
1082
1117
|
/** 门店维度查询 */
|
|
1083
1118
|
interface QueryByStoreController {
|
|
@@ -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
|
+
queryLiveRoomOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryLiveRoomOrderList<K>): Promise<Service.Response.queryLiveRoomOrderList<K>>;
|
|
20
21
|
}
|
|
21
22
|
declare const queryByUserService: QueryByUserService;
|
|
22
23
|
export default queryByUserService;
|
|
@@ -76,6 +76,12 @@ 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
|
+
queryLiveRoomOrderList(request) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const result = (yield (0, http_1.callApi)(this.getApiUrl(this.queryLiveRoomOrderList), request));
|
|
82
|
+
return Object.assign(Object.assign({}, result), { list: result.list.map((item) => posProxy_1.default.createProxy(item)) });
|
|
83
|
+
});
|
|
84
|
+
}
|
|
79
85
|
}
|
|
80
86
|
const queryByUserService = new QueryByUserService();
|
|
81
87
|
exports.default = queryByUserService;
|