@be-link/pos-cli-nodejs 1.0.198 → 1.0.202
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/orderAbnormalFollow/service.d.ts +12 -0
- package/pos/modules/orderAbnormalFollow/service.js +30 -0
- package/pos/modules/orderAbnormalFollow/types.d.ts +61 -0
- package/pos/modules/orderAbnormalFollow/types.js +2 -0
- package/pos/modules/orderNote/types.d.ts +2 -0
- package/types.d.ts +14 -0
package/index.d.ts
CHANGED
|
@@ -18,9 +18,10 @@ import { ItemInfoProxy } from './utils/posProxy/itemInfoProxy';
|
|
|
18
18
|
import { SkuInfoProxy } from './utils/posProxy/skuInfoProxy';
|
|
19
19
|
import { VenueInfoProxy } from './utils/posProxy/venueInfoProxy';
|
|
20
20
|
import orderTouristMaterialService from './pos/modules/orderTourMaterial/service';
|
|
21
|
+
import orderAbnormalFollowService from './pos/modules/orderAbnormalFollow/service';
|
|
21
22
|
export {
|
|
22
23
|
/** 业务模块 */
|
|
23
|
-
orderCoreService, orderFulfillService, queryByCommodityService, queryByStoreService, queryByUserService, queryByWebService, queryBySupplierService, queryByPandoraService, orderNoteService, orderJobService, dataMigrateService, orderTouristMaterialService,
|
|
24
|
+
orderCoreService, orderFulfillService, queryByCommodityService, queryByStoreService, queryByUserService, queryByWebService, queryBySupplierService, queryByPandoraService, orderNoteService, orderJobService, dataMigrateService, orderTouristMaterialService, orderAbnormalFollowService,
|
|
24
25
|
/** 枚举类 */
|
|
25
26
|
PosConstants, PosDto,
|
|
26
27
|
/** 错误类 */
|
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.orderTouristMaterialService = exports.dataMigrateService = exports.orderJobService = exports.orderNoteService = exports.queryByPandoraService = 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.orderAbnormalFollowService = exports.orderTouristMaterialService = exports.dataMigrateService = exports.orderJobService = exports.orderNoteService = exports.queryByPandoraService = 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"));
|
|
@@ -67,3 +67,5 @@ const venueInfoProxy_1 = require("./utils/posProxy/venueInfoProxy");
|
|
|
67
67
|
Object.defineProperty(exports, "VenueInfoProxy", { enumerable: true, get: function () { return venueInfoProxy_1.VenueInfoProxy; } });
|
|
68
68
|
const service_6 = __importDefault(require("./pos/modules/orderTourMaterial/service"));
|
|
69
69
|
exports.orderTouristMaterialService = service_6.default;
|
|
70
|
+
const service_7 = __importDefault(require("./pos/modules/orderAbnormalFollow/service"));
|
|
71
|
+
exports.orderAbnormalFollowService = service_7.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.202",
|
|
4
4
|
"description": "正向订单服务Nodejs客户端",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"axios": "0.27.2",
|
|
40
40
|
"axios-retry": "^4.0.0",
|
|
41
41
|
"uuid": "^9.0.1",
|
|
42
|
-
"vitality-meta": "1.0.
|
|
42
|
+
"vitality-meta": "1.0.236",
|
|
43
43
|
"@be-link/cs-cli-nodejs": "0.1.100",
|
|
44
44
|
"lodash": "4.17.21"
|
|
45
45
|
},
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import BaseService from '../service';
|
|
2
|
+
import { Service } from './types';
|
|
3
|
+
declare class OrderAbnormalFollowService extends BaseService implements Service.OrderAbnormalFollowController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
upsertFollow(request: Service.Request.upsertFollow): Promise<void>;
|
|
6
|
+
listByOrderIds(request: Service.Request.listByOrderIds): Promise<Service.Response.listByOrderIds>;
|
|
7
|
+
markUserReminded(request: Service.Request.markUserReminded): Promise<boolean>;
|
|
8
|
+
softDelete(request: Service.Request.softDelete): Promise<void>;
|
|
9
|
+
countByTypeInScope(request: Service.Request.countByTypeInScope): Promise<number>;
|
|
10
|
+
}
|
|
11
|
+
declare const orderAbnormalFollowService: OrderAbnormalFollowService;
|
|
12
|
+
export default orderAbnormalFollowService;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 service_1 = __importDefault(require("../service"));
|
|
7
|
+
const http_1 = require("../../http");
|
|
8
|
+
class OrderAbnormalFollowService extends service_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/abnormal-follow';
|
|
12
|
+
}
|
|
13
|
+
upsertFollow(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.upsertFollow), request);
|
|
15
|
+
}
|
|
16
|
+
listByOrderIds(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.listByOrderIds), request);
|
|
18
|
+
}
|
|
19
|
+
markUserReminded(request) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.markUserReminded), request);
|
|
21
|
+
}
|
|
22
|
+
softDelete(request) {
|
|
23
|
+
return (0, http_1.callApi)(this.getApiUrl(this.softDelete), request);
|
|
24
|
+
}
|
|
25
|
+
countByTypeInScope(request) {
|
|
26
|
+
return (0, http_1.callApi)(this.getApiUrl(this.countByTypeInScope), request);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const orderAbnormalFollowService = new OrderAbnormalFollowService();
|
|
30
|
+
exports.default = orderAbnormalFollowService;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AbnormalType, FollowStatus } from 'vitality-meta/enums/omc';
|
|
2
|
+
import * as DTO from '../../../types';
|
|
3
|
+
export declare namespace Service {
|
|
4
|
+
namespace Request {
|
|
5
|
+
interface upsertFollow {
|
|
6
|
+
id?: string;
|
|
7
|
+
orderId: string;
|
|
8
|
+
abnormalType: AbnormalType;
|
|
9
|
+
status?: FollowStatus;
|
|
10
|
+
followUnionId?: string;
|
|
11
|
+
remindedAt?: number;
|
|
12
|
+
}
|
|
13
|
+
interface listByOrderIds {
|
|
14
|
+
orderIds: string[];
|
|
15
|
+
}
|
|
16
|
+
interface markUserReminded {
|
|
17
|
+
orderId: string;
|
|
18
|
+
abnormalType: AbnormalType.APPEND_FAILED | AbnormalType.UPCOMING;
|
|
19
|
+
followUnionId: string;
|
|
20
|
+
}
|
|
21
|
+
interface softDelete {
|
|
22
|
+
orderId: string;
|
|
23
|
+
abnormalType: AbnormalType;
|
|
24
|
+
}
|
|
25
|
+
interface countByTypeInScope {
|
|
26
|
+
followUnionIds: string[];
|
|
27
|
+
abnormalType: AbnormalType;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
namespace Response {
|
|
31
|
+
type listByOrderIds = DTO.IOrderAbnormalFollowRow[];
|
|
32
|
+
type countByTypeInScope = number;
|
|
33
|
+
}
|
|
34
|
+
interface OrderAbnormalFollowController {
|
|
35
|
+
/**
|
|
36
|
+
* 写入/更新异常跟进记录
|
|
37
|
+
* @path /abnormal-follow/upsert-follow
|
|
38
|
+
*/
|
|
39
|
+
upsertFollow(request: Request.upsertFollow): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* 按订单 ID 列表查询跟进记录
|
|
42
|
+
* @path /abnormal-follow/list-by-order-ids
|
|
43
|
+
*/
|
|
44
|
+
listByOrderIds(request: Request.listByOrderIds): Promise<Response.listByOrderIds>;
|
|
45
|
+
/**
|
|
46
|
+
* 标记已提醒用户
|
|
47
|
+
* @path /abnormal-follow/mark-user-reminded
|
|
48
|
+
*/
|
|
49
|
+
markUserReminded(request: Request.markUserReminded): Promise<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* 软删除跟进记录
|
|
52
|
+
* @path /abnormal-follow/soft-delete
|
|
53
|
+
*/
|
|
54
|
+
softDelete(request: Request.softDelete): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* 按范围统计异常跟进数量
|
|
57
|
+
* @path /abnormal-follow/count-by-type-in-scope
|
|
58
|
+
*/
|
|
59
|
+
countByTypeInScope(request: Request.countByTypeInScope): Promise<number>;
|
|
60
|
+
}
|
|
61
|
+
}
|
package/types.d.ts
CHANGED
|
@@ -897,6 +897,8 @@ export interface IPositiveNoteInfo {
|
|
|
897
897
|
_createTime: number;
|
|
898
898
|
/** 更新时间 */
|
|
899
899
|
_updateTime: number;
|
|
900
|
+
/** 图片 URL 列表 */
|
|
901
|
+
images: string[];
|
|
900
902
|
}
|
|
901
903
|
export interface IPositiveChangeSkuRecord {
|
|
902
904
|
/** 变更记录Id */
|
|
@@ -1320,3 +1322,15 @@ export type QueryDataRes<K extends (keyof QueryDataBlockTypeMap)[]> = {
|
|
|
1320
1322
|
export type QueryDataResProxy<K extends (keyof QueryDataBlockTypeProxyMap)[]> = {
|
|
1321
1323
|
[key in K[number]]: QueryDataBlockTypeProxyMap[key];
|
|
1322
1324
|
};
|
|
1325
|
+
/** 订单异常跟进记录 */
|
|
1326
|
+
export interface IOrderAbnormalFollowRow {
|
|
1327
|
+
id: string;
|
|
1328
|
+
orderId: string;
|
|
1329
|
+
abnormalType: string;
|
|
1330
|
+
status: string;
|
|
1331
|
+
followUnionId: string;
|
|
1332
|
+
remindedAt: number;
|
|
1333
|
+
createdAt: number;
|
|
1334
|
+
updatedAt: number;
|
|
1335
|
+
deletedAt: number;
|
|
1336
|
+
}
|