@be-link/cs-cli-nodejs 0.0.64 → 0.0.65

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.
@@ -0,0 +1,73 @@
1
+ import { CommonStatus } from 'vitality-meta/enums/commodity';
2
+ export declare namespace RoomStockNamespace {
3
+ namespace DTO {
4
+ interface IRoomStock {
5
+ id: string;
6
+ status: CommonStatus;
7
+ venueId: string;
8
+ supplierId: string;
9
+ roomType: 'DOUBLE_BED' | 'SINGLE_BED';
10
+ roomId: string;
11
+ date: number;
12
+ stock: number;
13
+ createdAt: number;
14
+ updatedAt: number;
15
+ deletedAt: number;
16
+ }
17
+ }
18
+ namespace Request {
19
+ interface IQueryBySupplier {
20
+ supplierId: string;
21
+ statusList: CommonStatus[];
22
+ beginTime?: number;
23
+ endTime?: number;
24
+ dates?: number[];
25
+ }
26
+ interface IChangeStock {
27
+ supplierId: string;
28
+ roomId: string;
29
+ dates: number[];
30
+ operation: 'ADD' | 'SUB';
31
+ count: number;
32
+ }
33
+ interface ICreateStock {
34
+ supplier: string;
35
+ roomId: string;
36
+ dates: number[];
37
+ stock: number;
38
+ }
39
+ interface IUpdateStatus {
40
+ supplierId: string;
41
+ roomId: string;
42
+ dates: number[];
43
+ status: CommonStatus;
44
+ }
45
+ interface IDeductStock {
46
+ supplierId: string;
47
+ roomIds: string[];
48
+ dates: number[];
49
+ count: number;
50
+ }
51
+ interface IRollbackStock {
52
+ supplierId: string;
53
+ roomIds: string[];
54
+ dates: number[];
55
+ count: number;
56
+ }
57
+ }
58
+ namespace Response { }
59
+ interface Service {
60
+ /** 根据供应商查询库存信息 */
61
+ queryBySupplier(request: Request.IQueryBySupplier): Promise<DTO.IRoomStock[]>;
62
+ /** 创建库存记录 */
63
+ create(request: Request.ICreateStock): Promise<void>;
64
+ /** 更变库存数量 */
65
+ changeStock(request: Request.IChangeStock): Promise<void>;
66
+ /** 更新库存状态 */
67
+ updateStatus(request: Request.IUpdateStatus): Promise<void>;
68
+ /** 扣减库存 */
69
+ deductStock(request: Request.IDeductStock): Promise<void>;
70
+ /** 回滚库存 */
71
+ rollbackStock(request: Request.IRollbackStock): Promise<void>;
72
+ }
73
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/cs/modules/roomStock/type.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/cs-cli-nodejs",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "商品服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {