@be-link/pos-cli-nodejs 0.0.17 → 0.0.18

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/enums.d.ts ADDED
@@ -0,0 +1,154 @@
1
+ /** 状态枚举 */
2
+ export declare enum TradeOrderStatusEnum {
3
+ /** 未支付 */
4
+ NOT_PAID = "NOT_PAID",
5
+ /** 支付失败 */
6
+ PAY_FAILED = "PAY_FAILED",
7
+ /** 支付成功 */
8
+ PAY_SUCCEED = "PAY_SUCCEED",
9
+ /** 待确认 */
10
+ PENDING = "PENDING",
11
+ /** 待供应商确认 */
12
+ PENDING_FOR_SUPPLIER = "PENDING_FOR_SUPPLIER",
13
+ /** 待履约 */
14
+ READY_TO_FULFILL = "READY_TO_FULFILL",
15
+ /** 履约中 */
16
+ FULFILLING = "FULFILLING",
17
+ /** 完结 */
18
+ SUCCEED = "SUCCEED",
19
+ /** 关闭 */
20
+ CLOSED = "CLOSED",
21
+ /** 供应商拒单 */
22
+ SUPPLIER_REJECTED = "SUPPLIER_REJECTED"
23
+ }
24
+ /** 订单操作角色枚举 */
25
+ export declare enum TradeOperatorRoleEnum {
26
+ /** 用户 */
27
+ USER = "USER",
28
+ /** 员工 */
29
+ STAFF = "STAFF",
30
+ /** 系统 */
31
+ SYSTEM = "SYSTEM",
32
+ /** 供应商 */
33
+ SUPPLIER = "SUPPLIER"
34
+ }
35
+ /** 备注操作人角色枚举 */
36
+ export declare enum OperatorRoleEnum {
37
+ /** 用户 */
38
+ USER = "USER",
39
+ /** 系统 */
40
+ SYSTEM = "SYSTEM",
41
+ /** 企微 */
42
+ QW = "QW",
43
+ /**飞书 */
44
+ FEISHU = "FEISHU",
45
+ /** 员工 */
46
+ STAFF = "STAFF",
47
+ /** 商家 */
48
+ MERCHANT = "MERCHANT"
49
+ }
50
+ /** 备注类型枚举 */
51
+ export declare enum NoteStatusEnum {
52
+ /** 未完成 */
53
+ UNFINISHED = "UNFINISHED",
54
+ /** 已完成 */
55
+ FINISHED = "FINISHED"
56
+ }
57
+ /** 备注状态修改人角色枚举 */
58
+ export declare enum ModifyOperatorRoleEnum {
59
+ /** 企微 */
60
+ QW = "QW",
61
+ /** 系统 */
62
+ SYSTEM = "SYSTEM",
63
+ /** 用户 */
64
+ USER = "USER",
65
+ /** 飞书 */
66
+ FEISHU = "FEISHU",
67
+ /** 员工 */
68
+ STAFF = "STAFF",
69
+ /** 商家 */
70
+ MERCHANT = "MERCHANT"
71
+ }
72
+ /** 备注类型枚举 */
73
+ export declare enum NoteTypeEnum {
74
+ /** 用户 */
75
+ USER = "USER",
76
+ /** 商家 */
77
+ MERCHANT = "MERCHANT",
78
+ /** 系统 */
79
+ SYSTEM = "SYSTEM",
80
+ /** 企微 */
81
+ QW = "QW",
82
+ /** 员工 */
83
+ STAFF = "STAFF"
84
+ }
85
+ /** 支付方式 */
86
+ export declare enum PaymentTypeEnum {
87
+ /** 一次性支付 */
88
+ SINGLE_PAYMENT = "SINGLE_PAYMENT",
89
+ /** 预定金额 */
90
+ DEPOSIT = "DEPOSIT",
91
+ /** 尾款支付 */
92
+ FINAL = "FINAL",
93
+ /** 金币抵扣 */
94
+ CREDIT = "CREDIT"
95
+ }
96
+ /** 支付工具类型 */
97
+ export declare enum PayToolEnum {
98
+ /** 微信支付 */
99
+ WX_PAY = "WX_PAY",
100
+ /** 金币抵扣 */
101
+ CREDIT = "CREDIT"
102
+ }
103
+ /** 优惠工具 */
104
+ export declare enum PromotionTypeEnum {
105
+ /** 优惠券 */
106
+ COUPON = "COUPON",
107
+ /** 会员价 */
108
+ MEMBER_REDUCE = "MEMBER_REDUCE"
109
+ }
110
+ /** 购买sku状态枚举 */
111
+ export declare enum PurchaseSkuStatusEnum {
112
+ /** 有效 */
113
+ VALID = "VALID",
114
+ /** 无效 */
115
+ INVALID = "INVALID"
116
+ }
117
+ /** 使用人群枚举 */
118
+ export declare enum ApplicablePeopleEnum {
119
+ /** 成人 */
120
+ ADULT = "ADULT",
121
+ /** 儿童 */
122
+ CHILDREN = "CHILDREN",
123
+ /** 单房差 */
124
+ SUPPLEMENT_SINGLE_ROOM = "SUPPLEMENT_SINGLE_ROOM"
125
+ }
126
+ /** 旅游行程类型枚举 */
127
+ export declare enum ItineraryTypeEnum {
128
+ /** 去程 */
129
+ DEPARTURE = "DEPARTURE",
130
+ /** 返程 */
131
+ RETURN = "RETURN"
132
+ }
133
+ /** 交通方式枚举 */
134
+ export declare enum TransportationTypeEnum {
135
+ /** 飞机 */
136
+ AIRPLANE = "AIRPLANE",
137
+ /** 火车 */
138
+ TRAIN = "TRAIN",
139
+ /** 动车 */
140
+ BULLET_TRAIN = "BULLET_TRAIN",
141
+ /** 高铁 */
142
+ HIGH_SPEED_RAIL = "HIGH_SPEED_RAIL",
143
+ /** 大巴 */
144
+ BUS = "BUS",
145
+ /** 无 */
146
+ ABSENT = "ABSENT"
147
+ }
148
+ /** 班车类型枚举 */
149
+ export declare enum ShuttleTypeEnum {
150
+ /** 去程 */
151
+ DEPARTURE = "DEPARTURE",
152
+ /** 返程 */
153
+ RETURN = "RETURN"
154
+ }
package/enums.js ADDED
@@ -0,0 +1,178 @@
1
+ "use strict";
2
+ // ======================== 订单相关枚举 ========================
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ShuttleTypeEnum = exports.TransportationTypeEnum = exports.ItineraryTypeEnum = exports.ApplicablePeopleEnum = exports.PurchaseSkuStatusEnum = exports.PromotionTypeEnum = exports.PayToolEnum = exports.PaymentTypeEnum = exports.NoteTypeEnum = exports.ModifyOperatorRoleEnum = exports.NoteStatusEnum = exports.OperatorRoleEnum = exports.TradeOperatorRoleEnum = exports.TradeOrderStatusEnum = void 0;
5
+ /** 状态枚举 */
6
+ var TradeOrderStatusEnum;
7
+ (function (TradeOrderStatusEnum) {
8
+ /** 未支付 */
9
+ TradeOrderStatusEnum["NOT_PAID"] = "NOT_PAID";
10
+ /** 支付失败 */
11
+ TradeOrderStatusEnum["PAY_FAILED"] = "PAY_FAILED";
12
+ /** 支付成功 */
13
+ TradeOrderStatusEnum["PAY_SUCCEED"] = "PAY_SUCCEED";
14
+ /** 待确认 */
15
+ TradeOrderStatusEnum["PENDING"] = "PENDING";
16
+ /** 待供应商确认 */
17
+ TradeOrderStatusEnum["PENDING_FOR_SUPPLIER"] = "PENDING_FOR_SUPPLIER";
18
+ /** 待履约 */
19
+ TradeOrderStatusEnum["READY_TO_FULFILL"] = "READY_TO_FULFILL";
20
+ /** 履约中 */
21
+ TradeOrderStatusEnum["FULFILLING"] = "FULFILLING";
22
+ /** 完结 */
23
+ TradeOrderStatusEnum["SUCCEED"] = "SUCCEED";
24
+ /** 关闭 */
25
+ TradeOrderStatusEnum["CLOSED"] = "CLOSED";
26
+ /** 供应商拒单 */
27
+ TradeOrderStatusEnum["SUPPLIER_REJECTED"] = "SUPPLIER_REJECTED";
28
+ })(TradeOrderStatusEnum || (exports.TradeOrderStatusEnum = TradeOrderStatusEnum = {}));
29
+ /** 订单操作角色枚举 */
30
+ var TradeOperatorRoleEnum;
31
+ (function (TradeOperatorRoleEnum) {
32
+ /** 用户 */
33
+ TradeOperatorRoleEnum["USER"] = "USER";
34
+ /** 员工 */
35
+ TradeOperatorRoleEnum["STAFF"] = "STAFF";
36
+ /** 系统 */
37
+ TradeOperatorRoleEnum["SYSTEM"] = "SYSTEM";
38
+ /** 供应商 */
39
+ TradeOperatorRoleEnum["SUPPLIER"] = "SUPPLIER";
40
+ })(TradeOperatorRoleEnum || (exports.TradeOperatorRoleEnum = TradeOperatorRoleEnum = {}));
41
+ // ======================== 订单备注相关枚举 ========================
42
+ /** 备注操作人角色枚举 */
43
+ var OperatorRoleEnum;
44
+ (function (OperatorRoleEnum) {
45
+ /** 用户 */
46
+ OperatorRoleEnum["USER"] = "USER";
47
+ /** 系统 */
48
+ OperatorRoleEnum["SYSTEM"] = "SYSTEM";
49
+ /** 企微 */
50
+ OperatorRoleEnum["QW"] = "QW";
51
+ /**飞书 */
52
+ OperatorRoleEnum["FEISHU"] = "FEISHU";
53
+ /** 员工 */
54
+ OperatorRoleEnum["STAFF"] = "STAFF";
55
+ /** 商家 */
56
+ OperatorRoleEnum["MERCHANT"] = "MERCHANT";
57
+ })(OperatorRoleEnum || (exports.OperatorRoleEnum = OperatorRoleEnum = {}));
58
+ /** 备注类型枚举 */
59
+ var NoteStatusEnum;
60
+ (function (NoteStatusEnum) {
61
+ /** 未完成 */
62
+ NoteStatusEnum["UNFINISHED"] = "UNFINISHED";
63
+ /** 已完成 */
64
+ NoteStatusEnum["FINISHED"] = "FINISHED";
65
+ })(NoteStatusEnum || (exports.NoteStatusEnum = NoteStatusEnum = {}));
66
+ /** 备注状态修改人角色枚举 */
67
+ var ModifyOperatorRoleEnum;
68
+ (function (ModifyOperatorRoleEnum) {
69
+ /** 企微 */
70
+ ModifyOperatorRoleEnum["QW"] = "QW";
71
+ /** 系统 */
72
+ ModifyOperatorRoleEnum["SYSTEM"] = "SYSTEM";
73
+ /** 用户 */
74
+ ModifyOperatorRoleEnum["USER"] = "USER";
75
+ /** 飞书 */
76
+ ModifyOperatorRoleEnum["FEISHU"] = "FEISHU";
77
+ /** 员工 */
78
+ ModifyOperatorRoleEnum["STAFF"] = "STAFF";
79
+ /** 商家 */
80
+ ModifyOperatorRoleEnum["MERCHANT"] = "MERCHANT";
81
+ })(ModifyOperatorRoleEnum || (exports.ModifyOperatorRoleEnum = ModifyOperatorRoleEnum = {}));
82
+ /** 备注类型枚举 */
83
+ var NoteTypeEnum;
84
+ (function (NoteTypeEnum) {
85
+ /** 用户 */
86
+ NoteTypeEnum["USER"] = "USER";
87
+ /** 商家 */
88
+ NoteTypeEnum["MERCHANT"] = "MERCHANT";
89
+ /** 系统 */
90
+ NoteTypeEnum["SYSTEM"] = "SYSTEM";
91
+ /** 企微 */
92
+ NoteTypeEnum["QW"] = "QW";
93
+ /** 员工 */
94
+ NoteTypeEnum["STAFF"] = "STAFF";
95
+ })(NoteTypeEnum || (exports.NoteTypeEnum = NoteTypeEnum = {}));
96
+ // ======================== 订单支付相关枚举 ========================
97
+ /** 支付方式 */
98
+ var PaymentTypeEnum;
99
+ (function (PaymentTypeEnum) {
100
+ /** 一次性支付 */
101
+ PaymentTypeEnum["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
102
+ /** 预定金额 */
103
+ PaymentTypeEnum["DEPOSIT"] = "DEPOSIT";
104
+ /** 尾款支付 */
105
+ PaymentTypeEnum["FINAL"] = "FINAL";
106
+ /** 金币抵扣 */
107
+ PaymentTypeEnum["CREDIT"] = "CREDIT";
108
+ })(PaymentTypeEnum || (exports.PaymentTypeEnum = PaymentTypeEnum = {}));
109
+ /** 支付工具类型 */
110
+ var PayToolEnum;
111
+ (function (PayToolEnum) {
112
+ /** 微信支付 */
113
+ PayToolEnum["WX_PAY"] = "WX_PAY";
114
+ /** 金币抵扣 */
115
+ PayToolEnum["CREDIT"] = "CREDIT";
116
+ })(PayToolEnum || (exports.PayToolEnum = PayToolEnum = {}));
117
+ // ======================== 订单营销相关枚举 ========================
118
+ /** 优惠工具 */
119
+ var PromotionTypeEnum;
120
+ (function (PromotionTypeEnum) {
121
+ /** 优惠券 */
122
+ PromotionTypeEnum["COUPON"] = "COUPON";
123
+ /** 会员价 */
124
+ PromotionTypeEnum["MEMBER_REDUCE"] = "MEMBER_REDUCE";
125
+ })(PromotionTypeEnum || (exports.PromotionTypeEnum = PromotionTypeEnum = {}));
126
+ // ======================== 订单sku相关枚举 ========================
127
+ /** 购买sku状态枚举 */
128
+ var PurchaseSkuStatusEnum;
129
+ (function (PurchaseSkuStatusEnum) {
130
+ /** 有效 */
131
+ PurchaseSkuStatusEnum["VALID"] = "VALID";
132
+ /** 无效 */
133
+ PurchaseSkuStatusEnum["INVALID"] = "INVALID";
134
+ })(PurchaseSkuStatusEnum || (exports.PurchaseSkuStatusEnum = PurchaseSkuStatusEnum = {}));
135
+ /** 使用人群枚举 */
136
+ var ApplicablePeopleEnum;
137
+ (function (ApplicablePeopleEnum) {
138
+ /** 成人 */
139
+ ApplicablePeopleEnum["ADULT"] = "ADULT";
140
+ /** 儿童 */
141
+ ApplicablePeopleEnum["CHILDREN"] = "CHILDREN";
142
+ /** 单房差 */
143
+ ApplicablePeopleEnum["SUPPLEMENT_SINGLE_ROOM"] = "SUPPLEMENT_SINGLE_ROOM";
144
+ })(ApplicablePeopleEnum || (exports.ApplicablePeopleEnum = ApplicablePeopleEnum = {}));
145
+ // ======================== 旅游行程信息相关枚举 ========================
146
+ /** 旅游行程类型枚举 */
147
+ var ItineraryTypeEnum;
148
+ (function (ItineraryTypeEnum) {
149
+ /** 去程 */
150
+ ItineraryTypeEnum["DEPARTURE"] = "DEPARTURE";
151
+ /** 返程 */
152
+ ItineraryTypeEnum["RETURN"] = "RETURN";
153
+ })(ItineraryTypeEnum || (exports.ItineraryTypeEnum = ItineraryTypeEnum = {}));
154
+ /** 交通方式枚举 */
155
+ var TransportationTypeEnum;
156
+ (function (TransportationTypeEnum) {
157
+ /** 飞机 */
158
+ TransportationTypeEnum["AIRPLANE"] = "AIRPLANE";
159
+ /** 火车 */
160
+ TransportationTypeEnum["TRAIN"] = "TRAIN";
161
+ /** 动车 */
162
+ TransportationTypeEnum["BULLET_TRAIN"] = "BULLET_TRAIN";
163
+ /** 高铁 */
164
+ TransportationTypeEnum["HIGH_SPEED_RAIL"] = "HIGH_SPEED_RAIL";
165
+ /** 大巴 */
166
+ TransportationTypeEnum["BUS"] = "BUS";
167
+ /** 无 */
168
+ TransportationTypeEnum["ABSENT"] = "ABSENT";
169
+ })(TransportationTypeEnum || (exports.TransportationTypeEnum = TransportationTypeEnum = {}));
170
+ // ======================== 班车相关枚举 ========================
171
+ /** 班车类型枚举 */
172
+ var ShuttleTypeEnum;
173
+ (function (ShuttleTypeEnum) {
174
+ /** 去程 */
175
+ ShuttleTypeEnum["DEPARTURE"] = "DEPARTURE";
176
+ /** 返程 */
177
+ ShuttleTypeEnum["RETURN"] = "RETURN";
178
+ })(ShuttleTypeEnum || (exports.ShuttleTypeEnum = ShuttleTypeEnum = {}));
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { POS } from './types';
1
+ import * as PosConstants from './enums';
2
2
  import orderCoreService from './pos/modules/orderCore/service';
3
3
  import orderFulfillService from './pos/modules/orderFulfill/service';
4
4
  import queryByCommodityService from './pos/modules/orderQuery/commodity';
@@ -7,7 +7,8 @@ import queryByUserService from './pos/modules/orderQuery/user';
7
7
  import queryByWebService from './pos/modules/orderQuery/web';
8
8
  import orderNoteService from './pos/modules/orderNote/service';
9
9
  import orderJobService from './pos/modules/orderJob/service';
10
+ export {
10
11
  /** 业务模块 */
11
- export { orderCoreService, orderFulfillService, queryByCommodityService, queryByStoreService, queryByUserService, queryByWebService, orderNoteService, orderJobService, };
12
+ orderCoreService, orderFulfillService, queryByCommodityService, queryByStoreService, queryByUserService, queryByWebService, orderNoteService, orderJobService,
12
13
  /** 枚举类 */
13
- export declare var PosConstants: typeof POS.Constants;
14
+ PosConstants };
package/index.js CHANGED
@@ -1,9 +1,34 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.orderJobService = exports.orderNoteService = exports.queryByWebService = exports.queryByUserService = exports.queryByStoreService = exports.queryByCommodityService = exports.orderFulfillService = exports.orderCoreService = void 0;
29
+ exports.PosConstants = exports.orderJobService = exports.orderNoteService = exports.queryByWebService = exports.queryByUserService = exports.queryByStoreService = exports.queryByCommodityService = exports.orderFulfillService = exports.orderCoreService = void 0;
30
+ const PosConstants = __importStar(require("./enums"));
31
+ exports.PosConstants = PosConstants;
7
32
  const service_1 = __importDefault(require("./pos/modules/orderCore/service"));
8
33
  exports.orderCoreService = service_1.default;
9
34
  const service_2 = __importDefault(require("./pos/modules/orderFulfill/service"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,4 +1,4 @@
1
- import { POS } from "../../../types";
1
+ import * as PosConstants from '../../../enums';
2
2
  export declare namespace Service {
3
3
  namespace Request {
4
4
  interface orderCreate {
@@ -104,7 +104,7 @@ export declare namespace Service {
104
104
  /** 操作人 */
105
105
  operator: string;
106
106
  /** 操作人角色 */
107
- operatorRole: POS.Constants.TradeOperatorRoleEnum;
107
+ operatorRole: PosConstants.TradeOperatorRoleEnum;
108
108
  }
109
109
  interface platformReject {
110
110
  /** 订单id */
@@ -112,7 +112,7 @@ export declare namespace Service {
112
112
  /** 操作人 */
113
113
  operator: string;
114
114
  /** 操作人角色 */
115
- operatorRole: POS.Constants.TradeOperatorRoleEnum;
115
+ operatorRole: PosConstants.TradeOperatorRoleEnum;
116
116
  /** 拒单原因 */
117
117
  reason: string;
118
118
  }
@@ -122,7 +122,7 @@ export declare namespace Service {
122
122
  /** 操作人 */
123
123
  operator: string;
124
124
  /** 操作人角色 */
125
- operatorRole: POS.Constants.TradeOperatorRoleEnum;
125
+ operatorRole: PosConstants.TradeOperatorRoleEnum;
126
126
  /** 拒单原因 */
127
127
  reason: string;
128
128
  }
@@ -132,7 +132,7 @@ export declare namespace Service {
132
132
  /** 操作人 */
133
133
  operator: string;
134
134
  /** 操作人角色 */
135
- operatorRole: POS.Constants.TradeOperatorRoleEnum;
135
+ operatorRole: PosConstants.TradeOperatorRoleEnum;
136
136
  }
137
137
  interface sendOrderPaidNotification {
138
138
  /** 订单Id */
@@ -152,7 +152,7 @@ export declare namespace Service {
152
152
  /** 操作人 */
153
153
  operator: 'SYSTEM';
154
154
  /** 操作人角色 */
155
- operatorRole: POS.Constants.OperatorRoleEnum;
155
+ operatorRole: PosConstants.OperatorRoleEnum;
156
156
  }
157
157
  interface changeOrderContactInfo {
158
158
  /** 联系人姓名 */
@@ -1,3 +1,4 @@
1
+ import * as PosConstants from '../../../enums';
1
2
  import { POS } from "../../../types";
2
3
  export declare namespace Service {
3
4
  namespace Request {
@@ -23,7 +24,7 @@ export declare namespace Service {
23
24
  /** 返程 */
24
25
  RETURN?: {
25
26
  /** 交通方式 */
26
- transportationType: POS.Constants.TransportationTypeEnum;
27
+ transportationType: PosConstants.TransportationTypeEnum;
27
28
  /** 始发点 */
28
29
  departureStation?: string;
29
30
  /** 集合时间 */
@@ -115,7 +116,7 @@ export declare namespace Service {
115
116
  }
116
117
  interface addShuttleInfo {
117
118
  /** 班车类型 */
118
- type: POS.Constants.ShuttleTypeEnum;
119
+ type: PosConstants.ShuttleTypeEnum;
119
120
  /** 车牌号 */
120
121
  carNo: string;
121
122
  /** 上车点/下车点 */
@@ -308,9 +309,9 @@ export declare namespace Service {
308
309
  interface queryItineraryInfoByOrderIdList {
309
310
  [tradeOrderIdList: string]: {
310
311
  /** 类型 */
311
- type: POS.Constants.ItineraryTypeEnum;
312
+ type: PosConstants.ItineraryTypeEnum;
312
313
  /** 交通方式 */
313
- transportationType: POS.Constants.TransportationTypeEnum;
314
+ transportationType: PosConstants.TransportationTypeEnum;
314
315
  /** 始发点 */
315
316
  departureStation: string;
316
317
  /** 集合时间 */
@@ -348,7 +349,7 @@ export declare namespace Service {
348
349
  /** 班车信息Id */
349
350
  _id: string;
350
351
  /** 班车类型 */
351
- type: POS.Constants.ShuttleTypeEnum;
352
+ type: PosConstants.ShuttleTypeEnum;
352
353
  /** 车牌号 */
353
354
  carNo: string;
354
355
  /** 上车点/下车点 */
@@ -1,17 +1,17 @@
1
- import { POS } from "../../../types";
1
+ import * as PosConstants from '../../../enums';
2
2
  export declare namespace Service {
3
3
  namespace Request {
4
4
  interface createNote {
5
5
  /** 备注内容 */
6
6
  content: string;
7
7
  /** 操作人角色 */
8
- operatorRole: POS.Constants.OperatorRoleEnum;
8
+ operatorRole: PosConstants.OperatorRoleEnum;
9
9
  /** 操作人 */
10
10
  operatorUser: string;
11
11
  /** 订单id */
12
12
  tradeOrderId: string;
13
13
  /** 备注类型 */
14
- type: POS.Constants.NoteTypeEnum;
14
+ type: PosConstants.NoteTypeEnum;
15
15
  }
16
16
  interface queryNoteByOrderIdList {
17
17
  /** 订单Id列表 */
@@ -25,7 +25,7 @@ export declare namespace Service {
25
25
  /** 备注Id */
26
26
  noteId: string;
27
27
  /** 状态 */
28
- status: POS.Constants.NoteStatusEnum;
28
+ status: PosConstants.NoteStatusEnum;
29
29
  /** 修改人 */
30
30
  modifyOperatorUser: string;
31
31
  /** 修改人类型 */
@@ -43,19 +43,19 @@ export declare namespace Service {
43
43
  /** 更新时间 */
44
44
  _updateTime: number;
45
45
  /** 操作人身份 */
46
- operatorRole: POS.Constants.OperatorRoleEnum;
46
+ operatorRole: PosConstants.OperatorRoleEnum;
47
47
  /** 操作人 */
48
48
  operatorUser: string;
49
49
  /** 备注内容 */
50
50
  content: string;
51
51
  /** 备注状态,未完成/已完成 */
52
- status: POS.Constants.NoteStatusEnum;
52
+ status: PosConstants.NoteStatusEnum;
53
53
  /** 备注状态修改人 */
54
54
  modifyOperatorUser: string;
55
55
  /** 备注状态修改人角色 */
56
- modifyOperatorRole: POS.Constants.ModifyOperatorRoleEnum;
56
+ modifyOperatorRole: PosConstants.ModifyOperatorRoleEnum;
57
57
  /** 备注类型,如用户备注,商家备注 */
58
- type: POS.Constants.NoteTypeEnum;
58
+ type: PosConstants.NoteTypeEnum;
59
59
  }[];
60
60
  }
61
61
  interface OrderNoteController {
@@ -1,3 +1,4 @@
1
+ import * as PosConstants from '../../../enums';
1
2
  import { POS } from '../../../types';
2
3
  export declare namespace Service {
3
4
  namespace Request {
@@ -11,7 +12,7 @@ export declare namespace Service {
11
12
  /** 用户id */
12
13
  unionId: string;
13
14
  /** 订单状态列表 */
14
- statusList?: POS.Constants.TradeOrderStatusEnum[];
15
+ statusList?: PosConstants.TradeOrderStatusEnum[];
15
16
  /** 二级类目 */
16
17
  categoryTwoList?: string[];
17
18
  /** 履约时间 */
@@ -27,14 +28,14 @@ export declare namespace Service {
27
28
  /** 用户id列表 */
28
29
  unionIdList: string[];
29
30
  /** 订单状态列表 */
30
- statusList?: POS.Constants.TradeOrderStatusEnum[];
31
+ statusList?: PosConstants.TradeOrderStatusEnum[];
31
32
  }
32
33
  interface queryUserOrder<K> {
33
34
  condition: {
34
35
  /** 用户id */
35
36
  unionId: string;
36
37
  /** 订单状态列表 */
37
- statusList?: POS.Constants.TradeOrderStatusEnum[];
38
+ statusList?: PosConstants.TradeOrderStatusEnum[];
38
39
  /** 二级类目 */
39
40
  categoryTwoList?: string[];
40
41
  /** 是否是会员订单 */
@@ -62,7 +63,7 @@ export declare namespace Service {
62
63
  /** 用户id */
63
64
  unionId: string;
64
65
  /** 订单状态列表 */
65
- statusList?: POS.Constants.TradeOrderStatusEnum[];
66
+ statusList?: PosConstants.TradeOrderStatusEnum[];
66
67
  /** 需要查询的块 */
67
68
  needBlocks: K;
68
69
  }
@@ -100,7 +101,7 @@ export declare namespace Service {
100
101
  /** 结束出团日期 */
101
102
  endTime: number;
102
103
  /** 订单状态列表 */
103
- statusList?: POS.Constants.TradeOrderStatusEnum[];
104
+ statusList?: PosConstants.TradeOrderStatusEnum[];
104
105
  /** 二级类目列表 */
105
106
  categoryTwoList?: string[];
106
107
  needBlocks: K;
@@ -116,7 +117,7 @@ export declare namespace Service {
116
117
  /** 主单id */
117
118
  rootOrderIdList: string[];
118
119
  /** 订单状态列表 */
119
- statusList?: POS.Constants.TradeOrderStatusEnum[];
120
+ statusList?: PosConstants.TradeOrderStatusEnum[];
120
121
  /** 是否合并 */
121
122
  isMerged?: boolean;
122
123
  };
@@ -127,7 +128,7 @@ export declare namespace Service {
127
128
  /** skuId列表 */
128
129
  skuIdList: string[];
129
130
  /** 订单状态列表 */
130
- statusList?: POS.Constants.TradeOrderStatusEnum[];
131
+ statusList?: PosConstants.TradeOrderStatusEnum[];
131
132
  /** 需要查询的块 */
132
133
  needBlocks: K;
133
134
  }
@@ -145,7 +146,7 @@ export declare namespace Service {
145
146
  /** 创建时间(结束) */
146
147
  endTime: number;
147
148
  /** 订单状态列表 */
148
- statusList: POS.Constants.TradeOrderStatusEnum[];
149
+ statusList: PosConstants.TradeOrderStatusEnum[];
149
150
  }
150
151
  interface queryItineraryList {
151
152
  /** 商品id列表 */
@@ -175,7 +176,7 @@ export declare namespace Service {
175
176
  /** 页面条数 */
176
177
  pageSize: number;
177
178
  /** 订单状态 */
178
- status?: POS.Constants.TradeOrderStatusEnum;
179
+ status?: PosConstants.TradeOrderStatusEnum;
179
180
  }
180
181
  interface getPartyOrderCount {
181
182
  /** 类目 */
@@ -185,7 +186,7 @@ export declare namespace Service {
185
186
  /** 商品名称 */
186
187
  itemName?: string;
187
188
  /** 订单状态 */
188
- status?: POS.Constants.TradeOrderStatusEnum;
189
+ status?: PosConstants.TradeOrderStatusEnum;
189
190
  }
190
191
  interface queryOrderList<K> {
191
192
  /** 条件 */
@@ -430,7 +431,7 @@ export declare namespace Service {
430
431
  /** 操作人 */
431
432
  operator: string;
432
433
  /** 操作人角色 */
433
- operatorRole: POS.Constants.OperatorRoleEnum;
434
+ operatorRole: PosConstants.OperatorRoleEnum;
434
435
  /** 操作时间 */
435
436
  _createTime: number;
436
437
  /** 酒店名称 */
package/types.d.ts CHANGED
@@ -1,160 +1,7 @@
1
+ import * as PosConstants from './enums';
1
2
  export declare namespace POS {
2
3
  /** 常量枚举 */
3
4
  namespace Constants {
4
- /** 状态枚举 */
5
- enum TradeOrderStatusEnum {
6
- /** 未支付 */
7
- NOT_PAID = "NOT_PAID",
8
- /** 支付失败 */
9
- PAY_FAILED = "PAY_FAILED",
10
- /** 支付成功 */
11
- PAY_SUCCEED = "PAY_SUCCEED",
12
- /** 待确认 */
13
- PENDING = "PENDING",
14
- /** 待供应商确认 */
15
- PENDING_FOR_SUPPLIER = "PENDING_FOR_SUPPLIER",
16
- /** 待履约 */
17
- READY_TO_FULFILL = "READY_TO_FULFILL",
18
- /** 履约中 */
19
- FULFILLING = "FULFILLING",
20
- /** 完结 */
21
- SUCCEED = "SUCCEED",
22
- /** 关闭 */
23
- CLOSED = "CLOSED",
24
- /** 供应商拒单 */
25
- SUPPLIER_REJECTED = "SUPPLIER_REJECTED"
26
- }
27
- /** 订单操作角色枚举 */
28
- enum TradeOperatorRoleEnum {
29
- /** 用户 */
30
- USER = "USER",
31
- /** 员工 */
32
- STAFF = "STAFF",
33
- /** 系统 */
34
- SYSTEM = "SYSTEM",
35
- /** 供应商 */
36
- SUPPLIER = "SUPPLIER"
37
- }
38
- /** 备注操作人角色枚举 */
39
- enum OperatorRoleEnum {
40
- /** 用户 */
41
- USER = "USER",
42
- /** 系统 */
43
- SYSTEM = "SYSTEM",
44
- /** 企微 */
45
- QW = "QW",
46
- /**飞书 */
47
- FEISHU = "FEISHU",
48
- /** 员工 */
49
- STAFF = "STAFF",
50
- /** 商家 */
51
- MERCHANT = "MERCHANT"
52
- }
53
- /** 备注类型枚举 */
54
- enum NoteStatusEnum {
55
- /** 未完成 */
56
- UNFINISHED = "UNFINISHED",
57
- /** 已完成 */
58
- FINISHED = "FINISHED"
59
- }
60
- /** 备注状态修改人角色枚举 */
61
- enum ModifyOperatorRoleEnum {
62
- /** 企微 */
63
- QW = "QW",
64
- /** 系统 */
65
- SYSTEM = "SYSTEM",
66
- /** 用户 */
67
- USER = "USER",
68
- /** 飞书 */
69
- FEISHU = "FEISHU",
70
- /** 员工 */
71
- STAFF = "STAFF",
72
- /** 商家 */
73
- MERCHANT = "MERCHANT"
74
- }
75
- /** 备注类型枚举 */
76
- enum NoteTypeEnum {
77
- /** 用户 */
78
- USER = "USER",
79
- /** 商家 */
80
- MERCHANT = "MERCHANT",
81
- /** 系统 */
82
- SYSTEM = "SYSTEM",
83
- /** 企微 */
84
- QW = "QW",
85
- /** 员工 */
86
- STAFF = "STAFF"
87
- }
88
- /** 支付方式 */
89
- enum PaymentTypeEnum {
90
- /** 一次性支付 */
91
- SINGLE_PAYMENT = "SINGLE_PAYMENT",
92
- /** 预定金额 */
93
- DEPOSIT = "DEPOSIT",
94
- /** 尾款支付 */
95
- FINAL = "FINAL",
96
- /** 金币抵扣 */
97
- CREDIT = "CREDIT"
98
- }
99
- /** 支付工具类型 */
100
- enum PayToolEnum {
101
- /** 微信支付 */
102
- WX_PAY = "WX_PAY",
103
- /** 金币抵扣 */
104
- CREDIT = "CREDIT"
105
- }
106
- /** 优惠工具 */
107
- enum PromotionTypeEnum {
108
- /** 优惠券 */
109
- COUPON = "COUPON",
110
- /** 会员价 */
111
- MEMBER_REDUCE = "MEMBER_REDUCE"
112
- }
113
- /** 购买sku状态枚举 */
114
- enum PurchaseSkuStatusEnum {
115
- /** 有效 */
116
- VALID = "VALID",
117
- /** 无效 */
118
- INVALID = "INVALID"
119
- }
120
- /** 使用人群枚举 */
121
- enum ApplicablePeopleEnum {
122
- /** 成人 */
123
- ADULT = "ADULT",
124
- /** 儿童 */
125
- CHILDREN = "CHILDREN",
126
- /** 单房差 */
127
- SUPPLEMENT_SINGLE_ROOM = "SUPPLEMENT_SINGLE_ROOM"
128
- }
129
- /** 旅游行程类型枚举 */
130
- enum ItineraryTypeEnum {
131
- /** 去程 */
132
- DEPARTURE = "DEPARTURE",
133
- /** 返程 */
134
- RETURN = "RETURN"
135
- }
136
- /** 交通方式枚举 */
137
- enum TransportationTypeEnum {
138
- /** 飞机 */
139
- AIRPLANE = "AIRPLANE",
140
- /** 火车 */
141
- TRAIN = "TRAIN",
142
- /** 动车 */
143
- BULLET_TRAIN = "BULLET_TRAIN",
144
- /** 高铁 */
145
- HIGH_SPEED_RAIL = "HIGH_SPEED_RAIL",
146
- /** 大巴 */
147
- BUS = "BUS",
148
- /** 无 */
149
- ABSENT = "ABSENT"
150
- }
151
- /** 班车类型枚举 */
152
- enum ShuttleTypeEnum {
153
- /** 去程 */
154
- DEPARTURE = "DEPARTURE",
155
- /** 返程 */
156
- RETURN = "RETURN"
157
- }
158
5
  /** 订单查询结果和查询块的映射 */
159
6
  interface QueryDataBlockTypeMap {
160
7
  /** 订单Id */
@@ -189,7 +36,7 @@ export declare namespace POS {
189
36
  /** 更新时间 */
190
37
  updatedAt: number;
191
38
  /** 订单状态 */
192
- status: Constants.TradeOrderStatusEnum;
39
+ status: typeof PosConstants.TradeOrderStatusEnum;
193
40
  /** 快照:支付时间 */
194
41
  paidAt: number;
195
42
  /** 订单履约时间 */
@@ -412,7 +259,7 @@ export declare namespace POS {
412
259
  /** 更新时间 */
413
260
  _updateTime: number;
414
261
  /** SKU 适用人群类型 */
415
- applicablePeople: Constants.ApplicablePeopleEnum;
262
+ applicablePeople: typeof PosConstants.ApplicablePeopleEnum;
416
263
  /** SKU 套餐 */
417
264
  combo?: string;
418
265
  /** SKU 费用天数 */
@@ -503,9 +350,9 @@ export declare namespace POS {
503
350
  /** 支付关联的交易订单ID */
504
351
  tradeOrderId: string;
505
352
  /** 支付类型 */
506
- type: Constants.PaymentTypeEnum;
353
+ type: typeof PosConstants.PaymentTypeEnum;
507
354
  /** 支付工具 */
508
- payTool: Constants.PayToolEnum;
355
+ payTool: typeof PosConstants.PayToolEnum;
509
356
  /** 支付总金额 */
510
357
  totalFee: number;
511
358
  /** 外部系统中的支付交易ID */
@@ -553,7 +400,7 @@ export declare namespace POS {
553
400
  /** 与营销关联的业务的唯一标识符。 */
554
401
  bizId: string;
555
402
  /** 营销类型。 */
556
- type: Constants.PromotionTypeEnum;
403
+ type: typeof PosConstants.PromotionTypeEnum;
557
404
  /** 与营销关联的 SKU 列表。 */
558
405
  skuIdList: string[];
559
406
  /** 营销价格。 */
@@ -573,9 +420,9 @@ export declare namespace POS {
573
420
  /** 人员身份证号 */
574
421
  idCard: string;
575
422
  /** 行程类型 */
576
- type: Constants.ItineraryTypeEnum;
423
+ type: typeof PosConstants.ItineraryTypeEnum;
577
424
  /** 交通工具类型 */
578
- transportationType: Constants.TransportationTypeEnum;
425
+ transportationType: typeof PosConstants.TransportationTypeEnum;
579
426
  /** 出发站 */
580
427
  departureStation: string;
581
428
  /** 集合时间 */
@@ -703,7 +550,7 @@ export declare namespace POS {
703
550
  /** 班车记录Id */
704
551
  id: string;
705
552
  /** 班车类型 */
706
- type: Constants.ShuttleTypeEnum;
553
+ type: typeof PosConstants.ShuttleTypeEnum;
707
554
  /** 车牌号 */
708
555
  carNo: string;
709
556
  /** 出发站 */
@@ -729,19 +576,19 @@ export declare namespace POS {
729
576
  /** 订单Id */
730
577
  tradeOrderId: string;
731
578
  /** 操作人角色 */
732
- operatorRole: Constants.OperatorRoleEnum;
579
+ operatorRole: typeof PosConstants.OperatorRoleEnum;
733
580
  /** 操作人 */
734
581
  operatorUser: string;
735
582
  /** 内容 */
736
583
  content: string;
737
584
  /** 备注状态 */
738
- status: Constants.NoteStatusEnum;
585
+ status: typeof PosConstants.NoteStatusEnum;
739
586
  /** 修改人角色 */
740
- modifyOperatorRole?: Constants.ModifyOperatorRoleEnum;
587
+ modifyOperatorRole?: typeof PosConstants.ModifyOperatorRoleEnum;
741
588
  /** 修改人 */
742
589
  modifyOperatorUser?: string;
743
590
  /** 备注类型 */
744
- type: Constants.OperatorRoleEnum;
591
+ type: typeof PosConstants.OperatorRoleEnum;
745
592
  }
746
593
  interface IPositiveChangeSkuRecord {
747
594
  /** 变更记录Id */
package/types.js CHANGED
@@ -1,185 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.POS = void 0;
4
- var POS;
5
- (function (POS) {
6
- /** 常量枚举 */
7
- let Constants;
8
- (function (Constants) {
9
- // ======================== 订单相关枚举 ========================
10
- /** 状态枚举 */
11
- let TradeOrderStatusEnum;
12
- (function (TradeOrderStatusEnum) {
13
- /** 未支付 */
14
- TradeOrderStatusEnum["NOT_PAID"] = "NOT_PAID";
15
- /** 支付失败 */
16
- TradeOrderStatusEnum["PAY_FAILED"] = "PAY_FAILED";
17
- /** 支付成功 */
18
- TradeOrderStatusEnum["PAY_SUCCEED"] = "PAY_SUCCEED";
19
- /** 待确认 */
20
- TradeOrderStatusEnum["PENDING"] = "PENDING";
21
- /** 待供应商确认 */
22
- TradeOrderStatusEnum["PENDING_FOR_SUPPLIER"] = "PENDING_FOR_SUPPLIER";
23
- /** 待履约 */
24
- TradeOrderStatusEnum["READY_TO_FULFILL"] = "READY_TO_FULFILL";
25
- /** 履约中 */
26
- TradeOrderStatusEnum["FULFILLING"] = "FULFILLING";
27
- /** 完结 */
28
- TradeOrderStatusEnum["SUCCEED"] = "SUCCEED";
29
- /** 关闭 */
30
- TradeOrderStatusEnum["CLOSED"] = "CLOSED";
31
- /** 供应商拒单 */
32
- TradeOrderStatusEnum["SUPPLIER_REJECTED"] = "SUPPLIER_REJECTED";
33
- })(TradeOrderStatusEnum = Constants.TradeOrderStatusEnum || (Constants.TradeOrderStatusEnum = {}));
34
- /** 订单操作角色枚举 */
35
- let TradeOperatorRoleEnum;
36
- (function (TradeOperatorRoleEnum) {
37
- /** 用户 */
38
- TradeOperatorRoleEnum["USER"] = "USER";
39
- /** 员工 */
40
- TradeOperatorRoleEnum["STAFF"] = "STAFF";
41
- /** 系统 */
42
- TradeOperatorRoleEnum["SYSTEM"] = "SYSTEM";
43
- /** 供应商 */
44
- TradeOperatorRoleEnum["SUPPLIER"] = "SUPPLIER";
45
- })(TradeOperatorRoleEnum = Constants.TradeOperatorRoleEnum || (Constants.TradeOperatorRoleEnum = {}));
46
- // ======================== 订单备注相关枚举 ========================
47
- /** 备注操作人角色枚举 */
48
- let OperatorRoleEnum;
49
- (function (OperatorRoleEnum) {
50
- /** 用户 */
51
- OperatorRoleEnum["USER"] = "USER";
52
- /** 系统 */
53
- OperatorRoleEnum["SYSTEM"] = "SYSTEM";
54
- /** 企微 */
55
- OperatorRoleEnum["QW"] = "QW";
56
- /**飞书 */
57
- OperatorRoleEnum["FEISHU"] = "FEISHU";
58
- /** 员工 */
59
- OperatorRoleEnum["STAFF"] = "STAFF";
60
- /** 商家 */
61
- OperatorRoleEnum["MERCHANT"] = "MERCHANT";
62
- })(OperatorRoleEnum = Constants.OperatorRoleEnum || (Constants.OperatorRoleEnum = {}));
63
- /** 备注类型枚举 */
64
- let NoteStatusEnum;
65
- (function (NoteStatusEnum) {
66
- /** 未完成 */
67
- NoteStatusEnum["UNFINISHED"] = "UNFINISHED";
68
- /** 已完成 */
69
- NoteStatusEnum["FINISHED"] = "FINISHED";
70
- })(NoteStatusEnum = Constants.NoteStatusEnum || (Constants.NoteStatusEnum = {}));
71
- /** 备注状态修改人角色枚举 */
72
- let ModifyOperatorRoleEnum;
73
- (function (ModifyOperatorRoleEnum) {
74
- /** 企微 */
75
- ModifyOperatorRoleEnum["QW"] = "QW";
76
- /** 系统 */
77
- ModifyOperatorRoleEnum["SYSTEM"] = "SYSTEM";
78
- /** 用户 */
79
- ModifyOperatorRoleEnum["USER"] = "USER";
80
- /** 飞书 */
81
- ModifyOperatorRoleEnum["FEISHU"] = "FEISHU";
82
- /** 员工 */
83
- ModifyOperatorRoleEnum["STAFF"] = "STAFF";
84
- /** 商家 */
85
- ModifyOperatorRoleEnum["MERCHANT"] = "MERCHANT";
86
- })(ModifyOperatorRoleEnum = Constants.ModifyOperatorRoleEnum || (Constants.ModifyOperatorRoleEnum = {}));
87
- /** 备注类型枚举 */
88
- let NoteTypeEnum;
89
- (function (NoteTypeEnum) {
90
- /** 用户 */
91
- NoteTypeEnum["USER"] = "USER";
92
- /** 商家 */
93
- NoteTypeEnum["MERCHANT"] = "MERCHANT";
94
- /** 系统 */
95
- NoteTypeEnum["SYSTEM"] = "SYSTEM";
96
- /** 企微 */
97
- NoteTypeEnum["QW"] = "QW";
98
- /** 员工 */
99
- NoteTypeEnum["STAFF"] = "STAFF";
100
- })(NoteTypeEnum = Constants.NoteTypeEnum || (Constants.NoteTypeEnum = {}));
101
- // ======================== 订单支付相关枚举 ========================
102
- /** 支付方式 */
103
- let PaymentTypeEnum;
104
- (function (PaymentTypeEnum) {
105
- /** 一次性支付 */
106
- PaymentTypeEnum["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
107
- /** 预定金额 */
108
- PaymentTypeEnum["DEPOSIT"] = "DEPOSIT";
109
- /** 尾款支付 */
110
- PaymentTypeEnum["FINAL"] = "FINAL";
111
- /** 金币抵扣 */
112
- PaymentTypeEnum["CREDIT"] = "CREDIT";
113
- })(PaymentTypeEnum = Constants.PaymentTypeEnum || (Constants.PaymentTypeEnum = {}));
114
- /** 支付工具类型 */
115
- let PayToolEnum;
116
- (function (PayToolEnum) {
117
- /** 微信支付 */
118
- PayToolEnum["WX_PAY"] = "WX_PAY";
119
- /** 金币抵扣 */
120
- PayToolEnum["CREDIT"] = "CREDIT";
121
- })(PayToolEnum = Constants.PayToolEnum || (Constants.PayToolEnum = {}));
122
- // ======================== 订单营销相关枚举 ========================
123
- /** 优惠工具 */
124
- let PromotionTypeEnum;
125
- (function (PromotionTypeEnum) {
126
- /** 优惠券 */
127
- PromotionTypeEnum["COUPON"] = "COUPON";
128
- /** 会员价 */
129
- PromotionTypeEnum["MEMBER_REDUCE"] = "MEMBER_REDUCE";
130
- })(PromotionTypeEnum = Constants.PromotionTypeEnum || (Constants.PromotionTypeEnum = {}));
131
- // ======================== 订单sku相关枚举 ========================
132
- /** 购买sku状态枚举 */
133
- let PurchaseSkuStatusEnum;
134
- (function (PurchaseSkuStatusEnum) {
135
- /** 有效 */
136
- PurchaseSkuStatusEnum["VALID"] = "VALID";
137
- /** 无效 */
138
- PurchaseSkuStatusEnum["INVALID"] = "INVALID";
139
- })(PurchaseSkuStatusEnum = Constants.PurchaseSkuStatusEnum || (Constants.PurchaseSkuStatusEnum = {}));
140
- /** 使用人群枚举 */
141
- let ApplicablePeopleEnum;
142
- (function (ApplicablePeopleEnum) {
143
- /** 成人 */
144
- ApplicablePeopleEnum["ADULT"] = "ADULT";
145
- /** 儿童 */
146
- ApplicablePeopleEnum["CHILDREN"] = "CHILDREN";
147
- /** 单房差 */
148
- ApplicablePeopleEnum["SUPPLEMENT_SINGLE_ROOM"] = "SUPPLEMENT_SINGLE_ROOM";
149
- })(ApplicablePeopleEnum = Constants.ApplicablePeopleEnum || (Constants.ApplicablePeopleEnum = {}));
150
- // ======================== 旅游行程信息相关枚举 ========================
151
- /** 旅游行程类型枚举 */
152
- let ItineraryTypeEnum;
153
- (function (ItineraryTypeEnum) {
154
- /** 去程 */
155
- ItineraryTypeEnum["DEPARTURE"] = "DEPARTURE";
156
- /** 返程 */
157
- ItineraryTypeEnum["RETURN"] = "RETURN";
158
- })(ItineraryTypeEnum = Constants.ItineraryTypeEnum || (Constants.ItineraryTypeEnum = {}));
159
- /** 交通方式枚举 */
160
- let TransportationTypeEnum;
161
- (function (TransportationTypeEnum) {
162
- /** 飞机 */
163
- TransportationTypeEnum["AIRPLANE"] = "AIRPLANE";
164
- /** 火车 */
165
- TransportationTypeEnum["TRAIN"] = "TRAIN";
166
- /** 动车 */
167
- TransportationTypeEnum["BULLET_TRAIN"] = "BULLET_TRAIN";
168
- /** 高铁 */
169
- TransportationTypeEnum["HIGH_SPEED_RAIL"] = "HIGH_SPEED_RAIL";
170
- /** 大巴 */
171
- TransportationTypeEnum["BUS"] = "BUS";
172
- /** 无 */
173
- TransportationTypeEnum["ABSENT"] = "ABSENT";
174
- })(TransportationTypeEnum = Constants.TransportationTypeEnum || (Constants.TransportationTypeEnum = {}));
175
- // ======================== 班车相关枚举 ========================
176
- /** 班车类型枚举 */
177
- let ShuttleTypeEnum;
178
- (function (ShuttleTypeEnum) {
179
- /** 去程 */
180
- ShuttleTypeEnum["DEPARTURE"] = "DEPARTURE";
181
- /** 返程 */
182
- ShuttleTypeEnum["RETURN"] = "RETURN";
183
- })(ShuttleTypeEnum = Constants.ShuttleTypeEnum || (Constants.ShuttleTypeEnum = {}));
184
- })(Constants = POS.Constants || (POS.Constants = {}));
185
- })(POS || (exports.POS = POS = {}));