@be-link/pos-cli-nodejs 0.0.105 → 0.0.108
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@be-link/pos-cli-nodejs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.108",
|
|
4
4
|
"description": "正向订单服务Nodejs客户端",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"jest": "29.7.0",
|
|
40
40
|
"standard-version": "^9.5.0",
|
|
41
41
|
"ts-jest": "29.1.1",
|
|
42
|
+
"ts-node": "^10.9.2",
|
|
42
43
|
"typedoc": "0.25.2",
|
|
43
44
|
"typedoc-plugin-missing-exports": "2.1.0",
|
|
44
45
|
"typescript": "5.2.2"
|
|
@@ -46,6 +47,6 @@
|
|
|
46
47
|
"dependencies": {
|
|
47
48
|
"axios": "0.27.2",
|
|
48
49
|
"uuid": "^9.0.1",
|
|
49
|
-
"vitality-meta": "
|
|
50
|
+
"vitality-meta": "1.0.49"
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -32,6 +32,7 @@ declare class OrderFulfillService extends BaseService implements Service.orderFu
|
|
|
32
32
|
markItineraryRead(request: Service.Request.markItineraryRead): Promise<void>;
|
|
33
33
|
markServiceNoticeAuth(request: Service.Request.markServiceNoticeAuth): Promise<void>;
|
|
34
34
|
mgetSkuChangeCount(request: string[]): Promise<Record<string, number>>;
|
|
35
|
+
markOrderHasSentWXNotification(request: Service.Request.markOrderHasSentWXNotification): Promise<void>;
|
|
35
36
|
}
|
|
36
37
|
declare const orderFulfillService: OrderFulfillService;
|
|
37
38
|
export default orderFulfillService;
|
|
@@ -97,6 +97,9 @@ class OrderFulfillService extends service_1.default {
|
|
|
97
97
|
mgetSkuChangeCount(request) {
|
|
98
98
|
return (0, http_1.callApi)(this.getApiUrl(this.mgetSkuChangeCount), request);
|
|
99
99
|
}
|
|
100
|
+
markOrderHasSentWXNotification(request) {
|
|
101
|
+
return (0, http_1.callApi)(this.getApiUrl(this.markOrderHasSentWXNotification), request);
|
|
102
|
+
}
|
|
100
103
|
}
|
|
101
104
|
const orderFulfillService = new OrderFulfillService();
|
|
102
105
|
exports.default = orderFulfillService;
|
|
@@ -6,6 +6,10 @@ export declare namespace Service {
|
|
|
6
6
|
/** 订单id */
|
|
7
7
|
orderIdList: string[];
|
|
8
8
|
}
|
|
9
|
+
interface markOrderHasSentWXNotification {
|
|
10
|
+
/** 订单id */
|
|
11
|
+
orderIdList: string[];
|
|
12
|
+
}
|
|
9
13
|
interface getTourismInfoByOrderId {
|
|
10
14
|
/** 订单id */
|
|
11
15
|
tradeOrderId: string;
|
|
@@ -417,6 +421,11 @@ export declare namespace Service {
|
|
|
417
421
|
* @path /fulfill/mark-service-notice-auth
|
|
418
422
|
*/
|
|
419
423
|
markServiceNoticeAuth(request: Request.markServiceNoticeAuth): Promise<void>;
|
|
424
|
+
/**
|
|
425
|
+
* 标记订单发送微信通知
|
|
426
|
+
* @path /fulfill/mark-order-has-sent-wx-notification
|
|
427
|
+
*/
|
|
428
|
+
markOrderHasSentWXNotification(request: Request.markOrderHasSentWXNotification): Promise<void>;
|
|
420
429
|
/**
|
|
421
430
|
* 获取订单履约信息
|
|
422
431
|
* @path /fulfill/get-tourism-info-by-order-id
|
package/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as PosConstants from 'vitality-meta/enums/pos';
|
|
2
|
+
import * as commodityConstants from 'vitality-meta/enums/commodity';
|
|
2
3
|
/**
|
|
3
4
|
* 订单正向结构
|
|
4
5
|
*/
|
|
@@ -170,6 +171,8 @@ export interface IPositiveItemInfo {
|
|
|
170
171
|
isSelfLead: number;
|
|
171
172
|
/** 是否需要建群(旅游) */
|
|
172
173
|
needWxGroup: number;
|
|
174
|
+
/** 合同类型(旅游) */
|
|
175
|
+
contractType: commodityConstants.TourContractTypeEnum;
|
|
173
176
|
/** 行程安排 */
|
|
174
177
|
itinerarySchedule: ItinerarySchedule[];
|
|
175
178
|
/** 最低市场价 */
|