@be-link/pos-cli-nodejs 1.0.88 → 1.0.89
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/orderTourMaterial/service.d.ts +9 -0
- package/pos/modules/orderTourMaterial/service.js +18 -0
- package/pos/modules/orderTourMaterial/types.d.ts +13 -0
- package/pos/modules/orderTourMaterial/types.js +2 -0
- package/types.d.ts +78 -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/orderTourMaterial/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/orderTourMaterial/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.89",
|
|
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.197",
|
|
53
53
|
"@be-link/cs-cli-nodejs": "0.1.1",
|
|
54
54
|
"lodash": "4.17.21"
|
|
55
55
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ITradeOrderTourMaterialInfo } from '../../../types';
|
|
2
|
+
import BaseService from '../service';
|
|
3
|
+
import { Service } from './types';
|
|
4
|
+
declare class OrderTouristMaterialService extends BaseService implements Service.Controller {
|
|
5
|
+
protected prefixUrl: string;
|
|
6
|
+
get(request: Service.Request.IGet): Promise<ITradeOrderTourMaterialInfo>;
|
|
7
|
+
}
|
|
8
|
+
declare const orderTouristMaterialService: OrderTouristMaterialService;
|
|
9
|
+
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
|
+
async get(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.get), request);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const orderTouristMaterialService = new OrderTouristMaterialService();
|
|
18
|
+
exports.default = orderTouristMaterialService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ITradeOrderTourMaterialInfo } from '../../../types';
|
|
2
|
+
export declare namespace Service {
|
|
3
|
+
namespace Request {
|
|
4
|
+
interface IGet {
|
|
5
|
+
orderId: string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
namespace Response { }
|
|
9
|
+
interface Controller {
|
|
10
|
+
/** 获取订单上的商品出行人材料快照信息 */
|
|
11
|
+
get(request: Request.IGet): Promise<ITradeOrderTourMaterialInfo>;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as PosConstants from 'vitality-meta/enums/pos';
|
|
2
|
+
import * as commodityEnums from 'vitality-meta/enums/commodity';
|
|
2
3
|
import * as commodityConstants from 'vitality-meta/enums/commodity';
|
|
3
4
|
import * as CSDto from '@be-link/cs-cli-nodejs/types';
|
|
4
5
|
import * as ServiceVenueDto from '@be-link/cs-cli-nodejs/cs/modules/serviceVenue/types';
|
|
@@ -1201,6 +1202,83 @@ export interface IPositiveOrderInvoice {
|
|
|
1201
1202
|
/** 备注 */
|
|
1202
1203
|
remark?: string;
|
|
1203
1204
|
}
|
|
1205
|
+
export interface ITradeOrderTourMaterialInfo {
|
|
1206
|
+
/**
|
|
1207
|
+
* ID
|
|
1208
|
+
*/
|
|
1209
|
+
_id: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* 商品快照创建时间
|
|
1212
|
+
*/
|
|
1213
|
+
createdAt: number;
|
|
1214
|
+
/**
|
|
1215
|
+
* 商品快照更新时间
|
|
1216
|
+
*/
|
|
1217
|
+
updatedAt: number;
|
|
1218
|
+
/**
|
|
1219
|
+
* 商品Id
|
|
1220
|
+
*/
|
|
1221
|
+
itemId: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* 商品出行材料快照信息
|
|
1224
|
+
*/
|
|
1225
|
+
tourMaterialSnapShot: ITourMaterialSnapshot;
|
|
1226
|
+
/**
|
|
1227
|
+
* 出行材料类型
|
|
1228
|
+
*/
|
|
1229
|
+
tourMaterialType: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* 代办费用
|
|
1232
|
+
*/
|
|
1233
|
+
agentCharge: number;
|
|
1234
|
+
/**
|
|
1235
|
+
* 整单出行材料状态(0:未完成 1:已完成)
|
|
1236
|
+
*/
|
|
1237
|
+
tourMaterialStatus: number;
|
|
1238
|
+
}
|
|
1239
|
+
/** 商品出行材料项信息 */
|
|
1240
|
+
export interface ITourMaterialItem {
|
|
1241
|
+
/** 材料项id */
|
|
1242
|
+
id?: string;
|
|
1243
|
+
createdAt?: number;
|
|
1244
|
+
updatedAt?: number;
|
|
1245
|
+
deletedAt?: number;
|
|
1246
|
+
/** 商品id */
|
|
1247
|
+
itemId: string;
|
|
1248
|
+
/** 标题 */
|
|
1249
|
+
title: string;
|
|
1250
|
+
/** 签证类型 */
|
|
1251
|
+
visaType: commodityEnums.TourMaterialVisaType;
|
|
1252
|
+
/** 收集类型 */
|
|
1253
|
+
collectType: commodityEnums.TourMaterialCollectType;
|
|
1254
|
+
/** 具体要求 */
|
|
1255
|
+
specificInfo: string;
|
|
1256
|
+
/** 实例图片 */
|
|
1257
|
+
imgs: string[];
|
|
1258
|
+
/** 是否可用 */
|
|
1259
|
+
isEnable: boolean;
|
|
1260
|
+
}
|
|
1261
|
+
/** 商品出行材料快照信息信息 */
|
|
1262
|
+
export interface ITourMaterialSnapshot {
|
|
1263
|
+
/** 商品id */
|
|
1264
|
+
id: string;
|
|
1265
|
+
createdAt?: number;
|
|
1266
|
+
updatedAt?: number;
|
|
1267
|
+
/** 材料类型 */
|
|
1268
|
+
materialType: commodityEnums.TourMaterialType;
|
|
1269
|
+
/** 代办费用 */
|
|
1270
|
+
agentCharge: bigint;
|
|
1271
|
+
/** 是否面签 */
|
|
1272
|
+
visaInterview: boolean;
|
|
1273
|
+
/** 是否消签 */
|
|
1274
|
+
visaCancel: boolean;
|
|
1275
|
+
/** 是否可用 */
|
|
1276
|
+
isEnable: boolean;
|
|
1277
|
+
/** 材料项1:实体材料或 代办材料*/
|
|
1278
|
+
items: ITourMaterialItem[];
|
|
1279
|
+
/** 材料项2:自备材料 */
|
|
1280
|
+
items2?: ITourMaterialItem[];
|
|
1281
|
+
}
|
|
1204
1282
|
/** 订单查询结果 */
|
|
1205
1283
|
export type QueryDataRes<K extends (keyof QueryDataBlockTypeMap)[]> = {
|
|
1206
1284
|
[key in K[number]]: QueryDataBlockTypeMap[key];
|