@be-link/pos-cli-nodejs 1.0.20 → 1.0.21

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.
Files changed (234) hide show
  1. package/package.json +1 -1
  2. package/.github/workflows/JMeter.yml +0 -92
  3. package/.husky/commit-msg +0 -4
  4. package/.versionrc +0 -22
  5. package/CHANGELOG.md +0 -586
  6. package/Makefile +0 -4
  7. package/ceshi.jmx +0 -326
  8. package/ci/index.ts +0 -73
  9. package/commitlint.config.js +0 -3
  10. package/dist/README.md +0 -40
  11. package/dist/package.json +0 -53
  12. package/docs/.nojekyll +0 -1
  13. package/docs/assets/highlight.css +0 -71
  14. package/docs/assets/main.js +0 -59
  15. package/docs/assets/navigation.js +0 -1
  16. package/docs/assets/search.js +0 -1
  17. package/docs/assets/style.css +0 -1383
  18. package/docs/classes/_internal_.OrderCoreService.html +0 -351
  19. package/docs/classes/_internal_.OrderFulfillService.html +0 -489
  20. package/docs/classes/_internal_.OrderJobService.html +0 -229
  21. package/docs/classes/_internal_.OrderNoteService.html +0 -177
  22. package/docs/classes/_internal_.QueryByCommodityService.html +0 -311
  23. package/docs/classes/_internal_.QueryByStoreService.html +0 -133
  24. package/docs/classes/_internal_.QueryByUserService.html +0 -283
  25. package/docs/classes/_internal_.QueryByWebService.html +0 -133
  26. package/docs/classes/_internal_.default.html +0 -82
  27. package/docs/enums/_internal_.Constants.ApplicablePeopleEnum.html +0 -90
  28. package/docs/enums/_internal_.Constants.ItineraryTypeEnum.html +0 -82
  29. package/docs/enums/_internal_.Constants.ModifyOperatorRoleEnum.html +0 -114
  30. package/docs/enums/_internal_.Constants.NoteStatusEnum.html +0 -82
  31. package/docs/enums/_internal_.Constants.NoteTypeEnum.html +0 -106
  32. package/docs/enums/_internal_.Constants.OperatorRoleEnum.html +0 -114
  33. package/docs/enums/_internal_.Constants.PayToolEnum.html +0 -82
  34. package/docs/enums/_internal_.Constants.PaymentTypeEnum.html +0 -98
  35. package/docs/enums/_internal_.Constants.PromotionTypeEnum.html +0 -82
  36. package/docs/enums/_internal_.Constants.PurchaseSkuStatusEnum.html +0 -82
  37. package/docs/enums/_internal_.Constants.ShuttleTypeEnum.html +0 -82
  38. package/docs/enums/_internal_.Constants.TradeOperatorRoleEnum.html +0 -98
  39. package/docs/enums/_internal_.Constants.TradeOrderStatusEnum.html +0 -146
  40. package/docs/enums/_internal_.Constants.TransportationTypeEnum.html +0 -114
  41. package/docs/enums/_internal_.QueryDataBlock.html +0 -121
  42. package/docs/index.html +0 -68
  43. package/docs/interfaces/_internal_.Content.html +0 -81
  44. package/docs/interfaces/_internal_.CostInclusionJson.html +0 -81
  45. package/docs/interfaces/_internal_.CouponSnapShotInfo.html +0 -133
  46. package/docs/interfaces/_internal_.CreditInfo.html +0 -73
  47. package/docs/interfaces/_internal_.IPositiveAttributes.html +0 -161
  48. package/docs/interfaces/_internal_.IPositiveChangeSkuRecord.html +0 -145
  49. package/docs/interfaces/_internal_.IPositiveItemInfo.html +0 -413
  50. package/docs/interfaces/_internal_.IPositiveOrder.html +0 -263
  51. package/docs/interfaces/_internal_.IPositivePaymentInfo.html +0 -153
  52. package/docs/interfaces/_internal_.IPositivePromotionInfo.html +0 -129
  53. package/docs/interfaces/_internal_.IPositiveSkuInfo.html +0 -332
  54. package/docs/interfaces/_internal_.IWxPaymentInfo.html +0 -95
  55. package/docs/interfaces/_internal_.ItinerarySchedule.html +0 -89
  56. package/docs/interfaces/_internal_.OrderCoreController.html +0 -321
  57. package/docs/interfaces/_internal_.OrderJobController.html +0 -201
  58. package/docs/interfaces/_internal_.OrderNoteController.html +0 -156
  59. package/docs/interfaces/_internal_.ProductDetail.html +0 -81
  60. package/docs/interfaces/_internal_.PurchasingInstruction.html +0 -81
  61. package/docs/interfaces/_internal_.QueryByCommodityController.html +0 -284
  62. package/docs/interfaces/_internal_.QueryByStoreController.html +0 -115
  63. package/docs/interfaces/_internal_.QueryByUserController.html +0 -258
  64. package/docs/interfaces/_internal_.QueryByWebController.html +0 -115
  65. package/docs/interfaces/_internal_.QueryDataBlockTypeMap.html +0 -125
  66. package/docs/interfaces/_internal_.SubContent.html +0 -81
  67. package/docs/interfaces/_internal_.addShuttleInfo.html +0 -129
  68. package/docs/interfaces/_internal_.aiBuildNoteInfo.html +0 -73
  69. package/docs/interfaces/_internal_.batchUpsertItineraryInfo.html +0 -202
  70. package/docs/interfaces/_internal_.bindTouristToOrder.html +0 -97
  71. package/docs/interfaces/_internal_.calculateUserConsumeInfo.html +0 -89
  72. package/docs/interfaces/_internal_.changeNoteStatus.html +0 -97
  73. package/docs/interfaces/_internal_.changeOrderContactInfo.html +0 -97
  74. package/docs/interfaces/_internal_.changeOrderSku.html +0 -105
  75. package/docs/interfaces/_internal_.confirmMealInfo.html +0 -81
  76. package/docs/interfaces/_internal_.createNote.html +0 -105
  77. package/docs/interfaces/_internal_.createScheduleNotice.html +0 -89
  78. package/docs/interfaces/_internal_.getItineraryCount.html +0 -73
  79. package/docs/interfaces/_internal_.getOrderById.html +0 -86
  80. package/docs/interfaces/_internal_.getOrderCount.html +0 -193
  81. package/docs/interfaces/_internal_.getPartyOrderCount.html +0 -97
  82. package/docs/interfaces/_internal_.getStoreOrderCount.html +0 -121
  83. package/docs/interfaces/_internal_.getTourismInfoByOrderId-1.html +0 -229
  84. package/docs/interfaces/_internal_.getTourismInfoByOrderId.html +0 -73
  85. package/docs/interfaces/_internal_.getUserOrderCount.html +0 -97
  86. package/docs/interfaces/_internal_.importPreCheck.html +0 -112
  87. package/docs/interfaces/_internal_.isOrderCanAddTourists.html +0 -73
  88. package/docs/interfaces/_internal_.markItineraryRead.html +0 -81
  89. package/docs/interfaces/_internal_.markOrderPurchaseInsurance.html +0 -73
  90. package/docs/interfaces/_internal_.markServiceNoticeAuth.html +0 -73
  91. package/docs/interfaces/_internal_.markServiceNoticeRead.html +0 -81
  92. package/docs/interfaces/_internal_.mgetUserOrderCountList-1.html +0 -54
  93. package/docs/interfaces/_internal_.mgetUserOrderCountList.html +0 -81
  94. package/docs/interfaces/_internal_.modifyOrderMealInfo.html +0 -81
  95. package/docs/interfaces/_internal_.multiSendSmsToTourist.html +0 -81
  96. package/docs/interfaces/_internal_.multiSendVoiceToTourist.html +0 -81
  97. package/docs/interfaces/_internal_.orderCreate-1.html +0 -122
  98. package/docs/interfaces/_internal_.orderCreate.html +0 -208
  99. package/docs/interfaces/_internal_.orderFulfillController.html +0 -452
  100. package/docs/interfaces/_internal_.orderPaid.html +0 -97
  101. package/docs/interfaces/_internal_.orderSettled.html +0 -89
  102. package/docs/interfaces/_internal_.platformReject.html +0 -97
  103. package/docs/interfaces/_internal_.preCheckTourists.html +0 -89
  104. package/docs/interfaces/_internal_.queryItineraryInfoByOrderIdList-1.html +0 -54
  105. package/docs/interfaces/_internal_.queryItineraryInfoByOrderIdList.html +0 -65
  106. package/docs/interfaces/_internal_.queryItineraryList-1.html +0 -81
  107. package/docs/interfaces/_internal_.queryItineraryList.html +0 -89
  108. package/docs/interfaces/_internal_.queryNoteByOrderIdList.html +0 -73
  109. package/docs/interfaces/_internal_.queryOrder.html +0 -102
  110. package/docs/interfaces/_internal_.queryOrderByIdList.html +0 -86
  111. package/docs/interfaces/_internal_.queryOrderBySkuIdList.html +0 -94
  112. package/docs/interfaces/_internal_.queryOrderChangeSkuRecords.html +0 -73
  113. package/docs/interfaces/_internal_.queryOrderList.html +0 -210
  114. package/docs/interfaces/_internal_.queryOrderMergeRecordByOrderId-1.html +0 -123
  115. package/docs/interfaces/_internal_.queryOrderMergeRecordByOrderId.html +0 -73
  116. package/docs/interfaces/_internal_.queryPartyOrderInfo-1.html +0 -81
  117. package/docs/interfaces/_internal_.queryPartyOrderInfo.html +0 -113
  118. package/docs/interfaces/_internal_.queryPeriodTradeOrderList-1.html +0 -89
  119. package/docs/interfaces/_internal_.queryPeriodTradeOrderList.html +0 -51
  120. package/docs/interfaces/_internal_.queryPeriodTradeOrderOperatorList-1.html +0 -137
  121. package/docs/interfaces/_internal_.queryPeriodTradeOrderOperatorList.html +0 -89
  122. package/docs/interfaces/_internal_.queryRollingSalesStatistics-1.html +0 -113
  123. package/docs/interfaces/_internal_.queryRollingSalesStatistics.html +0 -129
  124. package/docs/interfaces/_internal_.querySaleItem-1.html +0 -81
  125. package/docs/interfaces/_internal_.querySaleItem.html +0 -105
  126. package/docs/interfaces/_internal_.queryShuttleInfoByOrderId-1.html +0 -169
  127. package/docs/interfaces/_internal_.queryShuttleInfoByOrderId.html +0 -73
  128. package/docs/interfaces/_internal_.queryStoreOrderList.html +0 -165
  129. package/docs/interfaces/_internal_.querySubOrderListByRootOrderId.html +0 -94
  130. package/docs/interfaces/_internal_.queryTopSaleItem-1.html +0 -81
  131. package/docs/interfaces/_internal_.queryTopSaleItem.html +0 -97
  132. package/docs/interfaces/_internal_.queryTourismInfoInOrderIdList.html +0 -73
  133. package/docs/interfaces/_internal_.queryUnionIdListByTimeRange.html +0 -89
  134. package/docs/interfaces/_internal_.queryUserOrder.html +0 -153
  135. package/docs/interfaces/_internal_.sendOrderPaidNotification.html +0 -73
  136. package/docs/interfaces/_internal_.submittedToSupplier.html +0 -89
  137. package/docs/interfaces/_internal_.supplierConfirmed.html +0 -89
  138. package/docs/interfaces/_internal_.supplierRejected.html +0 -97
  139. package/docs/interfaces/_internal_.thirdOrderInfoConfirmed.html +0 -105
  140. package/docs/interfaces/_internal_.updateShuttleInfo.html +0 -129
  141. package/docs/interfaces/_internal_.updateTradeOrderRoomCount.html +0 -94
  142. package/docs/interfaces/_internal_.updateTradeOrderTouristsInfo.html +0 -139
  143. package/docs/modules/_internal_.Constants.html +0 -71
  144. package/docs/modules/_internal_.html +0 -180
  145. package/docs/modules.html +0 -62
  146. package/docs/types/_internal_.QueryDataRes.html +0 -56
  147. package/docs/types/_internal_.Record.html +0 -58
  148. package/docs/types/_internal_.importPreCheck-1.html +0 -66
  149. package/docs/types/_internal_.queryNoteByOrderIdList-1.html +0 -106
  150. package/docs/types/_internal_.queryTourismInfoInOrderIdList-1.html +0 -48
  151. package/docs/variables/PosConstants.html +0 -50
  152. package/docs/variables/orderCoreService.html +0 -47
  153. package/docs/variables/orderFulfillService.html +0 -47
  154. package/docs/variables/orderJobService.html +0 -47
  155. package/docs/variables/orderNoteService.html +0 -47
  156. package/docs/variables/queryByCommodityService.html +0 -47
  157. package/docs/variables/queryByStoreService.html +0 -47
  158. package/docs/variables/queryByUserService.html +0 -47
  159. package/docs/variables/queryByWebService.html +0 -47
  160. package/jest.config.js +0 -194
  161. package/src/errors/BizError.ts +0 -10
  162. package/src/errors/SystemError.ts +0 -10
  163. package/src/index.ts +0 -33
  164. package/src/pos/http.ts +0 -70
  165. package/src/pos/modules/dataMigrate/service.ts +0 -18
  166. package/src/pos/modules/dataMigrate/types.ts +0 -11
  167. package/src/pos/modules/orderCore/service.ts +0 -55
  168. package/src/pos/modules/orderCore/types.ts +0 -320
  169. package/src/pos/modules/orderFulfill/service.ts +0 -120
  170. package/src/pos/modules/orderFulfill/types.ts +0 -526
  171. package/src/pos/modules/orderJob/service.ts +0 -72
  172. package/src/pos/modules/orderJob/types.ts +0 -42
  173. package/src/pos/modules/orderNote/service.ts +0 -29
  174. package/src/pos/modules/orderNote/types.ts +0 -76
  175. package/src/pos/modules/orderQuery/commodity.ts +0 -59
  176. package/src/pos/modules/orderQuery/store.ts +0 -24
  177. package/src/pos/modules/orderQuery/supplier.ts +0 -34
  178. package/src/pos/modules/orderQuery/types.ts +0 -1126
  179. package/src/pos/modules/orderQuery/user.ts +0 -83
  180. package/src/pos/modules/orderQuery/web.ts +0 -26
  181. package/src/pos/modules/service.ts +0 -31
  182. package/src/types.ts +0 -1079
  183. package/src/utils/env.ts +0 -14
  184. package/src/utils/string.ts +0 -6
  185. package/tsconfig.json +0 -114
  186. package/typedoc.json +0 -15
  187. /package/{dist/errors → errors}/BizError.d.ts +0 -0
  188. /package/{dist/errors → errors}/BizError.js +0 -0
  189. /package/{dist/errors → errors}/SystemError.d.ts +0 -0
  190. /package/{dist/errors → errors}/SystemError.js +0 -0
  191. /package/{dist/index.d.ts → index.d.ts} +0 -0
  192. /package/{dist/index.js → index.js} +0 -0
  193. /package/{dist/pos → pos}/http.d.ts +0 -0
  194. /package/{dist/pos → pos}/http.js +0 -0
  195. /package/{dist/pos → pos}/modules/dataMigrate/service.d.ts +0 -0
  196. /package/{dist/pos → pos}/modules/dataMigrate/service.js +0 -0
  197. /package/{dist/pos → pos}/modules/dataMigrate/types.d.ts +0 -0
  198. /package/{dist/pos → pos}/modules/dataMigrate/types.js +0 -0
  199. /package/{dist/pos → pos}/modules/orderCore/service.d.ts +0 -0
  200. /package/{dist/pos → pos}/modules/orderCore/service.js +0 -0
  201. /package/{dist/pos → pos}/modules/orderCore/types.d.ts +0 -0
  202. /package/{dist/pos → pos}/modules/orderCore/types.js +0 -0
  203. /package/{dist/pos → pos}/modules/orderFulfill/service.d.ts +0 -0
  204. /package/{dist/pos → pos}/modules/orderFulfill/service.js +0 -0
  205. /package/{dist/pos → pos}/modules/orderFulfill/types.d.ts +0 -0
  206. /package/{dist/pos → pos}/modules/orderFulfill/types.js +0 -0
  207. /package/{dist/pos → pos}/modules/orderJob/service.d.ts +0 -0
  208. /package/{dist/pos → pos}/modules/orderJob/service.js +0 -0
  209. /package/{dist/pos → pos}/modules/orderJob/types.d.ts +0 -0
  210. /package/{dist/pos → pos}/modules/orderJob/types.js +0 -0
  211. /package/{dist/pos → pos}/modules/orderNote/service.d.ts +0 -0
  212. /package/{dist/pos → pos}/modules/orderNote/service.js +0 -0
  213. /package/{dist/pos → pos}/modules/orderNote/types.d.ts +0 -0
  214. /package/{dist/pos → pos}/modules/orderNote/types.js +0 -0
  215. /package/{dist/pos → pos}/modules/orderQuery/commodity.d.ts +0 -0
  216. /package/{dist/pos → pos}/modules/orderQuery/commodity.js +0 -0
  217. /package/{dist/pos → pos}/modules/orderQuery/store.d.ts +0 -0
  218. /package/{dist/pos → pos}/modules/orderQuery/store.js +0 -0
  219. /package/{dist/pos → pos}/modules/orderQuery/supplier.d.ts +0 -0
  220. /package/{dist/pos → pos}/modules/orderQuery/supplier.js +0 -0
  221. /package/{dist/pos → pos}/modules/orderQuery/types.d.ts +0 -0
  222. /package/{dist/pos → pos}/modules/orderQuery/types.js +0 -0
  223. /package/{dist/pos → pos}/modules/orderQuery/user.d.ts +0 -0
  224. /package/{dist/pos → pos}/modules/orderQuery/user.js +0 -0
  225. /package/{dist/pos → pos}/modules/orderQuery/web.d.ts +0 -0
  226. /package/{dist/pos → pos}/modules/orderQuery/web.js +0 -0
  227. /package/{dist/pos → pos}/modules/service.d.ts +0 -0
  228. /package/{dist/pos → pos}/modules/service.js +0 -0
  229. /package/{dist/types.d.ts → types.d.ts} +0 -0
  230. /package/{dist/types.js → types.js} +0 -0
  231. /package/{dist/utils → utils}/env.d.ts +0 -0
  232. /package/{dist/utils → utils}/env.js +0 -0
  233. /package/{dist/utils → utils}/string.d.ts +0 -0
  234. /package/{dist/utils → utils}/string.js +0 -0
@@ -1,76 +0,0 @@
1
- import * as PosConstants from 'vitality-meta/enums/pos'
2
- import * as DTO from '../../../types'
3
-
4
- export namespace Service {
5
-
6
- export namespace Request {
7
- export interface createNote {
8
- /** 备注内容 */
9
- content: string,
10
- /** 操作人角色 */
11
- operatorRole: PosConstants.OperatorRoleEnum,
12
- /** 操作人 */
13
- operatorUser: string,
14
- /** 订单id */
15
- tradeOrderId: string,
16
- /** 备注类型 */
17
- type: PosConstants.NoteTypeEnum
18
- }
19
- export interface queryNoteByOrderIdList {
20
- /** 订单Id列表 */
21
- orderIdList: string[]
22
- /** 备注类型列表 */
23
- typeList?: PosConstants.NoteTypeEnum[]
24
- /** 备注来源列表 */
25
- operatorRoleList?: PosConstants.OperatorRoleEnum[]
26
- }
27
- export interface aiBuildNoteInfo {
28
- /** 内容 */
29
- content: string
30
- }
31
- export interface changeNoteStatus {
32
- /** 备注Id */
33
- noteId: string
34
- /** 状态 */
35
- status: PosConstants.NoteStatusEnum
36
- /** 修改人 */
37
- modifyOperatorUser: string
38
- /** 修改人类型 */
39
- modifyOperatorRole: PosConstants.ModifyOperatorRoleEnum
40
- }
41
- }
42
-
43
- export namespace Response {
44
- export type queryNoteByOrderIdList = DTO.IPositiveNoteInfo[]
45
- }
46
-
47
- export interface OrderNoteController {
48
- /**
49
- * 创建订单备注
50
- * @returns 备注id
51
- * @path /note/create-note
52
- */
53
- createNote(request: Request.createNote): Promise<string>
54
- /**
55
- * 根据订单id列表查询备注
56
- * @path /note/query-note-by-order-id-list
57
- */
58
- queryNoteByOrderIdList(request: Request.queryNoteByOrderIdList): Promise<Response.queryNoteByOrderIdList>
59
- /**
60
- * 查询未完成备注的订单Id
61
- * @returns 订单Id列表
62
- * @path /note/query-unfinished-note-order-id-list
63
- */
64
- queryUnFinishedNoteOrderIdList(): Promise<string[]>
65
- /**
66
- * ai构建备注信息
67
- * @path /note/ai-build-note-info
68
- */
69
- aiBuildNoteInfo(request: Request.aiBuildNoteInfo): Promise<string>
70
- /**
71
- * 修改备注状态
72
- * @path /note/change-note-status
73
- */
74
- changeNoteStatus(request: Request.changeNoteStatus): Promise<void>
75
- }
76
- }
@@ -1,59 +0,0 @@
1
- import BaseService from '../service'
2
- import { Service } from './types'
3
- import { callApi } from '../../http'
4
- import * as DTO from '../../../types'
5
-
6
- class QueryByCommodityService extends BaseService implements Service.QueryByCommodityController {
7
-
8
- protected prefixUrl = '/query/commodity'
9
-
10
- queryTopSaleItem(request: Service.Request.queryTopSaleItem): Promise<Service.Response.queryTopSaleItem[]> {
11
- return callApi<Service.QueryByCommodityController['queryTopSaleItem']>(this.getApiUrl(this.queryTopSaleItem), request)
12
- }
13
- querySaleItem(request: Service.Request.querySaleItem): Promise<Service.Response.querySaleItem[]> {
14
- return callApi<Service.QueryByCommodityController['querySaleItem']>(this.getApiUrl(this.querySaleItem), request)
15
- }
16
- queryOrderInDepartureDate<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryOrderInDepartureDate<K>): Promise<DTO.QueryDataRes<K>[]> {
17
- return callApi<Service.QueryByCommodityController['queryOrderInDepartureDate']>(this.getApiUrl(this.queryOrderInDepartureDate), request)
18
- }
19
- queryOrderBySkuIdList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryOrderBySkuIdList<K>): Promise<DTO.QueryDataRes<K>[]> {
20
- return callApi<Service.QueryByCommodityController['queryOrderBySkuIdList']>(this.getApiUrl(this.queryOrderBySkuIdList), request)
21
- }
22
- queryItineraryList(request: Service.Request.queryItineraryList): Promise<Service.Response.queryItineraryList[]> {
23
- return callApi<Service.QueryByCommodityController['queryItineraryList']>(this.getApiUrl(this.queryItineraryList), request)
24
- }
25
- getItineraryCount(request: Service.Request.getItineraryCount): Promise<number> {
26
- return callApi<Service.QueryByCommodityController['getItineraryCount']>(this.getApiUrl(this.getItineraryCount), request)
27
- }
28
- queryPartyOrderInfo(request: Service.Request.queryPartyOrderInfo): Promise<Service.Response.queryPartyOrderInfo[]> {
29
- return callApi<Service.QueryByCommodityController['queryPartyOrderInfo']>(this.getApiUrl(this.queryPartyOrderInfo), request)
30
- }
31
- queryPartyOrderDetail<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.IQueryPartyOrderDetail<K>): Promise<DTO.QueryDataRes<K>[]> {
32
- return callApi<Service.QueryByCommodityController['queryPartyOrderDetail']>(this.getApiUrl(this.queryPartyOrderDetail), request)
33
- }
34
- getPartyOrderCount(request: Service.Request.getPartyOrderCount): Promise<number> {
35
- return callApi<Service.QueryByCommodityController['getPartyOrderCount']>(this.getApiUrl(this.getPartyOrderCount), request)
36
- }
37
- queryPeriodTradeOrderList(request: Service.Request.queryPeriodTradeOrderList): Promise<Service.Response.queryPeriodTradeOrderList[]> {
38
- return callApi<Service.QueryByCommodityController['queryPeriodTradeOrderList']>(this.getApiUrl(this.queryPeriodTradeOrderList), request)
39
- }
40
- queryPeriodTradeOrderOperatorList(request: Service.Request.queryPeriodTradeOrderOperatorList): Promise<Service.Response.queryPeriodTradeOrderOperatorList[]> {
41
- return callApi<Service.QueryByCommodityController['queryPeriodTradeOrderOperatorList']>(this.getApiUrl(this.queryPeriodTradeOrderOperatorList), request)
42
- }
43
- queryItemSalesInfoInDays(request: Service.Request.IQueryItemSaleInfoInDays): Promise<Service.Response.IQueryItemSaleInfoInDays[]> {
44
- return callApi<Service.QueryByCommodityController['queryItemSalesInfoInDays']>(this.getApiUrl(this.queryItemSalesInfoInDays), request)
45
- }
46
- getRollingSalesStatisticsTotalAmount(request: Service.Request.getRollingSalesStatisticsTotalAmount): Promise<number> {
47
- return callApi<Service.QueryByCommodityController['getRollingSalesStatisticsTotalAmount']>(this.getApiUrl(this.getRollingSalesStatisticsTotalAmount), request)
48
- }
49
- queryRollingSalesStatistics(request: Service.Request.queryRollingSalesStatistics): Promise<Service.Response.queryRollingSalesStatistics> {
50
- return callApi<Service.QueryByCommodityController['queryRollingSalesStatistics']>(this.getApiUrl(this.queryRollingSalesStatistics), request)
51
- }
52
- queryItemOrderCountAndRejectCount(request: Service.Request.IQueryItemOrderCountAndRejectCount): Promise<Service.Response.IQueryItemOrderCountAndRejectCount> {
53
- return callApi<Service.QueryByCommodityController['queryItemOrderCountAndRejectCount']>(this.getApiUrl(this.queryItemOrderCountAndRejectCount), request)
54
- }
55
- }
56
-
57
- const queryByCommodityService = new QueryByCommodityService()
58
-
59
- export default queryByCommodityService
@@ -1,24 +0,0 @@
1
- import BaseService from '../service'
2
- import { Service } from './types'
3
- import { callApi } from '../../http'
4
- import * as DTO from '../../../types'
5
-
6
- class QueryByStoreService extends BaseService implements Service.QueryByStoreController {
7
-
8
- protected prefixUrl = '/query/store'
9
-
10
- queryRejectReasons(request: Service.Request.queryRejectReasons): Promise<Service.Response.queryRejectReasons> {
11
- return callApi<Service.QueryByStoreController['queryRejectReasons']>(this.getApiUrl(this.queryRejectReasons), request)
12
- }
13
- queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryStoreOrderList<K>): Promise<DTO.QueryDataRes<K>[]> {
14
- return callApi<Service.QueryByStoreController['queryOrderList']>(this.getApiUrl(this.queryOrderList), request)
15
- }
16
- getOrderCount(request: Service.Request.getStoreOrderCount): Promise<number> {
17
- return callApi<Service.QueryByStoreController['getOrderCount']>(this.getApiUrl(this.getOrderCount), request)
18
- }
19
-
20
- }
21
-
22
- const queryByStoreService = new QueryByStoreService()
23
-
24
- export default queryByStoreService
@@ -1,34 +0,0 @@
1
- import BaseService from '../service'
2
- import { Service } from './types'
3
- import { callApi } from '../../http'
4
- import * as DTO from '../../../types'
5
-
6
- class QueryBySupplierService extends BaseService implements Service.QueryBySupplierController {
7
- protected prefixUrl = '/query/supplier'
8
-
9
- queryRejectReasons(request: Service.Request.queryRejectReasons): Promise<Service.Response.queryRejectReasons> {
10
- return callApi<Service.QueryBySupplierController['queryRejectReasons']>(this.getApiUrl(this.queryRejectReasons), request)
11
- }
12
- queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.querySupplierOrderList<K>): Promise<DTO.QueryDataRes<K>[]> {
13
- return callApi<Service.QueryBySupplierController['queryOrderList']>(this.getApiUrl(this.queryOrderList), request)
14
- }
15
- getOrderCount(request: Service.Request.getSupplierOrderCount): Promise<number> {
16
- return callApi<Service.QueryBySupplierController['getOrderCount']>(this.getApiUrl(this.getOrderCount), request)
17
- }
18
- queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.IQueryOrderForStatisticsForSupplier<K>): Promise<DTO.QueryDataRes<K>[]> {
19
- return callApi<Service.QueryBySupplierController['queryOrderForStatistics']>(this.getApiUrl(this.queryOrderForStatistics), request)
20
- }
21
- mgetOrderQuantity(request: Service.Request.mgetOrderQuantity): Promise<Record<string, number>> {
22
- return callApi<Service.QueryBySupplierController['mgetOrderQuantity']>(this.getApiUrl(this.mgetOrderQuantity), request)
23
- }
24
- queryDepartureGroupList(request: Service.Request.queryDepartureGroupList): Promise<Service.Response.queryDepartureGroupList[]> {
25
- return callApi<Service.QueryBySupplierController['queryDepartureGroupList']>(this.getApiUrl(this.queryDepartureGroupList), request)
26
- }
27
- getDepartureGroupCount(request: Service.Request.getDepartureGroupCount): Promise<number> {
28
- return callApi<Service.QueryBySupplierController['getDepartureGroupCount']>(this.getApiUrl(this.getDepartureGroupCount), request)
29
- }
30
- }
31
-
32
- const queryByStoreService = new QueryBySupplierService()
33
-
34
- export default queryByStoreService