@be-link/pos-cli-nodejs 1.0.51-beta.0 → 1.0.51-beta.2

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 (96) hide show
  1. package/package.json +17 -14
  2. package/{dist/pos → pos}/modules/orderQuery/types.d.ts +1 -1
  3. package/{dist/pos → pos}/modules/orderQuery/user.d.ts +1 -1
  4. package/{dist/pos → pos}/modules/orderQuery/user.js +4 -2
  5. package/{dist/types.d.ts → types.d.ts} +36 -5
  6. package/utils/posProxy/comboInfoProxy.d.ts +19 -0
  7. package/utils/posProxy/comboInfoProxy.js +30 -0
  8. package/utils/posProxy/index.d.ts +5 -0
  9. package/utils/posProxy/index.js +40 -0
  10. package/utils/posProxy/itemInfoProxy.d.ts +129 -0
  11. package/utils/posProxy/itemInfoProxy.js +105 -0
  12. package/utils/posProxy/skuInfoProxy.d.ts +70 -0
  13. package/utils/posProxy/skuInfoProxy.js +83 -0
  14. package/utils/posProxy/venueInfoProxy.d.ts +22 -0
  15. package/utils/posProxy/venueInfoProxy.js +30 -0
  16. package/.github/workflows/JMeter.yml +0 -92
  17. package/.husky/commit-msg +0 -4
  18. package/.versionrc +0 -22
  19. package/CHANGELOG.md +0 -599
  20. package/Makefile +0 -4
  21. package/ceshi.jmx +0 -326
  22. package/ci/index.ts +0 -73
  23. package/commitlint.config.js +0 -3
  24. package/dist/README.md +0 -40
  25. package/dist/package.json +0 -54
  26. package/jest.config.js +0 -194
  27. package/src/errors/BizError.ts +0 -10
  28. package/src/errors/SystemError.ts +0 -10
  29. package/src/index.ts +0 -33
  30. package/src/pos/http.ts +0 -70
  31. package/src/pos/modules/dataMigrate/service.ts +0 -18
  32. package/src/pos/modules/dataMigrate/types.ts +0 -11
  33. package/src/pos/modules/orderCore/service.ts +0 -80
  34. package/src/pos/modules/orderCore/types.ts +0 -418
  35. package/src/pos/modules/orderFulfill/service.ts +0 -126
  36. package/src/pos/modules/orderFulfill/types.ts +0 -548
  37. package/src/pos/modules/orderJob/service.ts +0 -87
  38. package/src/pos/modules/orderJob/types.ts +0 -54
  39. package/src/pos/modules/orderNote/service.ts +0 -29
  40. package/src/pos/modules/orderNote/types.ts +0 -78
  41. package/src/pos/modules/orderQuery/commodity.ts +0 -59
  42. package/src/pos/modules/orderQuery/store.ts +0 -24
  43. package/src/pos/modules/orderQuery/supplier.ts +0 -34
  44. package/src/pos/modules/orderQuery/types.ts +0 -1159
  45. package/src/pos/modules/orderQuery/user.ts +0 -83
  46. package/src/pos/modules/orderQuery/web.ts +0 -26
  47. package/src/pos/modules/service.ts +0 -31
  48. package/src/types.ts +0 -1237
  49. package/src/utils/env.ts +0 -14
  50. package/src/utils/string.ts +0 -6
  51. package/tsconfig.json +0 -114
  52. package/typedoc.json +0 -15
  53. /package/{dist/errors → errors}/BizError.d.ts +0 -0
  54. /package/{dist/errors → errors}/BizError.js +0 -0
  55. /package/{dist/errors → errors}/SystemError.d.ts +0 -0
  56. /package/{dist/errors → errors}/SystemError.js +0 -0
  57. /package/{dist/index.d.ts → index.d.ts} +0 -0
  58. /package/{dist/index.js → index.js} +0 -0
  59. /package/{dist/pos → pos}/http.d.ts +0 -0
  60. /package/{dist/pos → pos}/http.js +0 -0
  61. /package/{dist/pos → pos}/modules/dataMigrate/service.d.ts +0 -0
  62. /package/{dist/pos → pos}/modules/dataMigrate/service.js +0 -0
  63. /package/{dist/pos → pos}/modules/dataMigrate/types.d.ts +0 -0
  64. /package/{dist/pos → pos}/modules/dataMigrate/types.js +0 -0
  65. /package/{dist/pos → pos}/modules/orderCore/service.d.ts +0 -0
  66. /package/{dist/pos → pos}/modules/orderCore/service.js +0 -0
  67. /package/{dist/pos → pos}/modules/orderCore/types.d.ts +0 -0
  68. /package/{dist/pos → pos}/modules/orderCore/types.js +0 -0
  69. /package/{dist/pos → pos}/modules/orderFulfill/service.d.ts +0 -0
  70. /package/{dist/pos → pos}/modules/orderFulfill/service.js +0 -0
  71. /package/{dist/pos → pos}/modules/orderFulfill/types.d.ts +0 -0
  72. /package/{dist/pos → pos}/modules/orderFulfill/types.js +0 -0
  73. /package/{dist/pos → pos}/modules/orderJob/service.d.ts +0 -0
  74. /package/{dist/pos → pos}/modules/orderJob/service.js +0 -0
  75. /package/{dist/pos → pos}/modules/orderJob/types.d.ts +0 -0
  76. /package/{dist/pos → pos}/modules/orderJob/types.js +0 -0
  77. /package/{dist/pos → pos}/modules/orderNote/service.d.ts +0 -0
  78. /package/{dist/pos → pos}/modules/orderNote/service.js +0 -0
  79. /package/{dist/pos → pos}/modules/orderNote/types.d.ts +0 -0
  80. /package/{dist/pos → pos}/modules/orderNote/types.js +0 -0
  81. /package/{dist/pos → pos}/modules/orderQuery/commodity.d.ts +0 -0
  82. /package/{dist/pos → pos}/modules/orderQuery/commodity.js +0 -0
  83. /package/{dist/pos → pos}/modules/orderQuery/store.d.ts +0 -0
  84. /package/{dist/pos → pos}/modules/orderQuery/store.js +0 -0
  85. /package/{dist/pos → pos}/modules/orderQuery/supplier.d.ts +0 -0
  86. /package/{dist/pos → pos}/modules/orderQuery/supplier.js +0 -0
  87. /package/{dist/pos → pos}/modules/orderQuery/types.js +0 -0
  88. /package/{dist/pos → pos}/modules/orderQuery/web.d.ts +0 -0
  89. /package/{dist/pos → pos}/modules/orderQuery/web.js +0 -0
  90. /package/{dist/pos → pos}/modules/service.d.ts +0 -0
  91. /package/{dist/pos → pos}/modules/service.js +0 -0
  92. /package/{dist/types.js → types.js} +0 -0
  93. /package/{dist/utils → utils}/env.d.ts +0 -0
  94. /package/{dist/utils → utils}/env.js +0 -0
  95. /package/{dist/utils → utils}/string.d.ts +0 -0
  96. /package/{dist/utils → utils}/string.js +0 -0
@@ -1,29 +0,0 @@
1
- import BaseService from "../service"
2
- import { callApi } from "../../http"
3
- import { Service } from './types'
4
-
5
- class OrderNoteService extends BaseService implements Service.OrderNoteController {
6
-
7
- protected prefixUrl = '/note'
8
-
9
- createNote(request: Service.Request.createNote): Promise<string> {
10
- return callApi<Service.OrderNoteController['createNote']>(this.getApiUrl(this.createNote), request)
11
- }
12
- queryNoteByOrderIdList(request: Service.Request.queryNoteByOrderIdList): Promise<Service.Response.queryNoteByOrderIdList> {
13
- return callApi<Service.OrderNoteController['queryNoteByOrderIdList']>(this.getApiUrl(this.queryNoteByOrderIdList), request)
14
- }
15
- queryUnFinishedNoteOrderIdList(): Promise<string[]> {
16
- return callApi<Service.OrderNoteController['queryUnFinishedNoteOrderIdList']>(this.getApiUrl(this.queryUnFinishedNoteOrderIdList))
17
- }
18
- aiBuildNoteInfo(request: Service.Request.aiBuildNoteInfo): Promise<string> {
19
- return callApi<Service.OrderNoteController['aiBuildNoteInfo']>(this.getApiUrl(this.aiBuildNoteInfo), request)
20
- }
21
- changeNoteStatus(request: Service.Request.changeNoteStatus): Promise<void> {
22
- return callApi<Service.OrderNoteController['changeNoteStatus']>(this.getApiUrl(this.changeNoteStatus), request)
23
- }
24
-
25
- }
26
-
27
- const orderNoteService = new OrderNoteService()
28
-
29
- export default orderNoteService
@@ -1,78 +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
- status?: PosConstants.NoteStatusEnum
20
- }
21
- export interface queryNoteByOrderIdList {
22
- /** 订单Id列表 */
23
- orderIdList: string[]
24
- /** 备注类型列表 */
25
- typeList?: PosConstants.NoteTypeEnum[]
26
- /** 备注来源列表 */
27
- operatorRoleList?: PosConstants.OperatorRoleEnum[]
28
- }
29
- export interface aiBuildNoteInfo {
30
- /** 内容 */
31
- content: string
32
- }
33
- export interface changeNoteStatus {
34
- /** 备注Id */
35
- noteId: string
36
- /** 状态 */
37
- status: PosConstants.NoteStatusEnum
38
- /** 修改人 */
39
- modifyOperatorUser: string
40
- /** 修改人类型 */
41
- modifyOperatorRole: PosConstants.ModifyOperatorRoleEnum
42
- }
43
- }
44
-
45
- export namespace Response {
46
- export type queryNoteByOrderIdList = DTO.IPositiveNoteInfo[]
47
- }
48
-
49
- export interface OrderNoteController {
50
- /**
51
- * 创建订单备注
52
- * @returns 备注id
53
- * @path /note/create-note
54
- */
55
- createNote(request: Request.createNote): Promise<string>
56
- /**
57
- * 根据订单id列表查询备注
58
- * @path /note/query-note-by-order-id-list
59
- */
60
- queryNoteByOrderIdList(request: Request.queryNoteByOrderIdList): Promise<Response.queryNoteByOrderIdList>
61
- /**
62
- * 查询未完成备注的订单Id
63
- * @returns 订单Id列表
64
- * @path /note/query-unfinished-note-order-id-list
65
- */
66
- queryUnFinishedNoteOrderIdList(): Promise<string[]>
67
- /**
68
- * ai构建备注信息
69
- * @path /note/ai-build-note-info
70
- */
71
- aiBuildNoteInfo(request: Request.aiBuildNoteInfo): Promise<string>
72
- /**
73
- * 修改备注状态
74
- * @path /note/change-note-status
75
- */
76
- changeNoteStatus(request: Request.changeNoteStatus): Promise<void>
77
- }
78
- }
@@ -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