@be-link/pos-cli-nodejs 1.0.85 → 1.0.86
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/index.d.ts +2 -1
- package/index.js +3 -1
- package/package.json +2 -2
- package/pos/modules/orderTouristMaterial/service.d.ts +8 -0
- package/pos/modules/orderTouristMaterial/service.js +18 -0
- package/pos/modules/orderTouristMaterial/types.d.ts +16 -0
- package/pos/modules/orderTouristMaterial/types.js +2 -0
package/index.d.ts
CHANGED
|
@@ -16,9 +16,10 @@ import { ComboInfoProxy } from './utils/posProxy/comboInfoProxy';
|
|
|
16
16
|
import { ItemInfoProxy } from './utils/posProxy/itemInfoProxy';
|
|
17
17
|
import { SkuInfoProxy } from './utils/posProxy/skuInfoProxy';
|
|
18
18
|
import { VenueInfoProxy } from './utils/posProxy/venueInfoProxy';
|
|
19
|
+
import orderTouristMaterialService from './pos/modules/orderTouristMaterial/service';
|
|
19
20
|
export {
|
|
20
21
|
/** 业务模块 */
|
|
21
|
-
orderCoreService, orderFulfillService, queryByCommodityService, queryByStoreService, queryByUserService, queryByWebService, queryBySupplierService, orderNoteService, orderJobService, dataMigrateService,
|
|
22
|
+
orderCoreService, orderFulfillService, queryByCommodityService, queryByStoreService, queryByUserService, queryByWebService, queryBySupplierService, orderNoteService, orderJobService, dataMigrateService, orderTouristMaterialService,
|
|
22
23
|
/** 枚举类 */
|
|
23
24
|
PosConstants, PosDto,
|
|
24
25
|
/** 错误类 */
|
package/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.VenueInfoProxy = exports.ComboInfoProxy = exports.SkuInfoProxy = exports.ItemInfoProxy = exports.PosProxyFactory = exports.BizError = exports.PosDto = exports.PosConstants = exports.dataMigrateService = exports.orderJobService = exports.orderNoteService = exports.queryBySupplierService = exports.queryByWebService = exports.queryByUserService = exports.queryByStoreService = exports.queryByCommodityService = exports.orderFulfillService = exports.orderCoreService = void 0;
|
|
29
|
+
exports.VenueInfoProxy = exports.ComboInfoProxy = exports.SkuInfoProxy = exports.ItemInfoProxy = exports.PosProxyFactory = exports.BizError = exports.PosDto = exports.PosConstants = exports.orderTouristMaterialService = exports.dataMigrateService = exports.orderJobService = exports.orderNoteService = exports.queryBySupplierService = exports.queryByWebService = exports.queryByUserService = exports.queryByStoreService = exports.queryByCommodityService = exports.orderFulfillService = exports.orderCoreService = void 0;
|
|
30
30
|
const PosConstants = __importStar(require("vitality-meta/enums/pos"));
|
|
31
31
|
exports.PosConstants = PosConstants;
|
|
32
32
|
const PosDto = __importStar(require("./types"));
|
|
@@ -63,3 +63,5 @@ const skuInfoProxy_1 = require("./utils/posProxy/skuInfoProxy");
|
|
|
63
63
|
Object.defineProperty(exports, "SkuInfoProxy", { enumerable: true, get: function () { return skuInfoProxy_1.SkuInfoProxy; } });
|
|
64
64
|
const venueInfoProxy_1 = require("./utils/posProxy/venueInfoProxy");
|
|
65
65
|
Object.defineProperty(exports, "VenueInfoProxy", { enumerable: true, get: function () { return venueInfoProxy_1.VenueInfoProxy; } });
|
|
66
|
+
const service_6 = __importDefault(require("./pos/modules/orderTouristMaterial/service"));
|
|
67
|
+
exports.orderTouristMaterialService = service_6.default;
|
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.86",
|
|
4
4
|
"description": "正向订单服务Nodejs客户端",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"axios": "0.27.2",
|
|
50
50
|
"axios-retry": "^4.0.0",
|
|
51
51
|
"uuid": "^9.0.1",
|
|
52
|
-
"vitality-meta": "1.0.
|
|
52
|
+
"vitality-meta": "1.0.196",
|
|
53
53
|
"@be-link/cs-cli-nodejs": "0.1.1",
|
|
54
54
|
"lodash": "4.17.21"
|
|
55
55
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import BaseService from '../service';
|
|
2
|
+
import { Service } from './types';
|
|
3
|
+
declare class OrderTouristMaterialService extends BaseService implements Service.Controller {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
createTouristMaterial(request: Service.Request.ICreateTouristMaterial): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
declare const orderTouristMaterialService: OrderTouristMaterialService;
|
|
8
|
+
export default orderTouristMaterialService;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const http_1 = require("../../http");
|
|
7
|
+
const service_1 = __importDefault(require("../service"));
|
|
8
|
+
class OrderTouristMaterialService extends service_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/tourist-material';
|
|
12
|
+
}
|
|
13
|
+
createTouristMaterial(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.createTouristMaterial), request);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const orderTouristMaterialService = new OrderTouristMaterialService();
|
|
18
|
+
exports.default = orderTouristMaterialService;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as PosEnums from 'vitality-meta/enums/pos';
|
|
2
|
+
export declare namespace Service {
|
|
3
|
+
namespace Request {
|
|
4
|
+
interface ICreateTouristMaterial {
|
|
5
|
+
orderId: string;
|
|
6
|
+
itemId: string;
|
|
7
|
+
touristMaterialInfos: Record<string, PosEnums.TouristMaterialVisaTypeEnum>;
|
|
8
|
+
adjustmentOrderId?: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
namespace Response { }
|
|
12
|
+
interface Controller {
|
|
13
|
+
/** 创建出行人材料 */
|
|
14
|
+
createTouristMaterial(request: Request.ICreateTouristMaterial): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
}
|