@be-link/pos-cli-nodejs 1.0.16 → 1.0.17
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/.github/workflows/JMeter.yml +92 -0
- package/.husky/commit-msg +4 -0
- package/.versionrc +22 -0
- package/CHANGELOG.md +584 -0
- package/Makefile +4 -0
- package/ceshi.jmx +326 -0
- package/ci/index.ts +73 -0
- package/commitlint.config.js +3 -0
- package/dist/README.md +40 -0
- package/dist/package.json +53 -0
- package/{pos → dist/pos}/modules/orderFulfill/service.d.ts +1 -0
- package/{pos → dist/pos}/modules/orderFulfill/service.js +3 -0
- package/{pos → dist/pos}/modules/orderFulfill/types.d.ts +14 -0
- package/{types.d.ts → dist/types.d.ts} +5 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +71 -0
- package/docs/assets/main.js +59 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1383 -0
- package/docs/classes/_internal_.OrderCoreService.html +351 -0
- package/docs/classes/_internal_.OrderFulfillService.html +489 -0
- package/docs/classes/_internal_.OrderJobService.html +229 -0
- package/docs/classes/_internal_.OrderNoteService.html +177 -0
- package/docs/classes/_internal_.QueryByCommodityService.html +311 -0
- package/docs/classes/_internal_.QueryByStoreService.html +133 -0
- package/docs/classes/_internal_.QueryByUserService.html +283 -0
- package/docs/classes/_internal_.QueryByWebService.html +133 -0
- package/docs/classes/_internal_.default.html +82 -0
- package/docs/enums/_internal_.Constants.ApplicablePeopleEnum.html +90 -0
- package/docs/enums/_internal_.Constants.ItineraryTypeEnum.html +82 -0
- package/docs/enums/_internal_.Constants.ModifyOperatorRoleEnum.html +114 -0
- package/docs/enums/_internal_.Constants.NoteStatusEnum.html +82 -0
- package/docs/enums/_internal_.Constants.NoteTypeEnum.html +106 -0
- package/docs/enums/_internal_.Constants.OperatorRoleEnum.html +114 -0
- package/docs/enums/_internal_.Constants.PayToolEnum.html +82 -0
- package/docs/enums/_internal_.Constants.PaymentTypeEnum.html +98 -0
- package/docs/enums/_internal_.Constants.PromotionTypeEnum.html +82 -0
- package/docs/enums/_internal_.Constants.PurchaseSkuStatusEnum.html +82 -0
- package/docs/enums/_internal_.Constants.ShuttleTypeEnum.html +82 -0
- package/docs/enums/_internal_.Constants.TradeOperatorRoleEnum.html +98 -0
- package/docs/enums/_internal_.Constants.TradeOrderStatusEnum.html +146 -0
- package/docs/enums/_internal_.Constants.TransportationTypeEnum.html +114 -0
- package/docs/enums/_internal_.QueryDataBlock.html +121 -0
- package/docs/index.html +68 -0
- package/docs/interfaces/_internal_.Content.html +81 -0
- package/docs/interfaces/_internal_.CostInclusionJson.html +81 -0
- package/docs/interfaces/_internal_.CouponSnapShotInfo.html +133 -0
- package/docs/interfaces/_internal_.CreditInfo.html +73 -0
- package/docs/interfaces/_internal_.IPositiveAttributes.html +161 -0
- package/docs/interfaces/_internal_.IPositiveChangeSkuRecord.html +145 -0
- package/docs/interfaces/_internal_.IPositiveItemInfo.html +413 -0
- package/docs/interfaces/_internal_.IPositiveOrder.html +263 -0
- package/docs/interfaces/_internal_.IPositivePaymentInfo.html +153 -0
- package/docs/interfaces/_internal_.IPositivePromotionInfo.html +129 -0
- package/docs/interfaces/_internal_.IPositiveSkuInfo.html +332 -0
- package/docs/interfaces/_internal_.IWxPaymentInfo.html +95 -0
- package/docs/interfaces/_internal_.ItinerarySchedule.html +89 -0
- package/docs/interfaces/_internal_.OrderCoreController.html +321 -0
- package/docs/interfaces/_internal_.OrderJobController.html +201 -0
- package/docs/interfaces/_internal_.OrderNoteController.html +156 -0
- package/docs/interfaces/_internal_.ProductDetail.html +81 -0
- package/docs/interfaces/_internal_.PurchasingInstruction.html +81 -0
- package/docs/interfaces/_internal_.QueryByCommodityController.html +284 -0
- package/docs/interfaces/_internal_.QueryByStoreController.html +115 -0
- package/docs/interfaces/_internal_.QueryByUserController.html +258 -0
- package/docs/interfaces/_internal_.QueryByWebController.html +115 -0
- package/docs/interfaces/_internal_.QueryDataBlockTypeMap.html +125 -0
- package/docs/interfaces/_internal_.SubContent.html +81 -0
- package/docs/interfaces/_internal_.addShuttleInfo.html +129 -0
- package/docs/interfaces/_internal_.aiBuildNoteInfo.html +73 -0
- package/docs/interfaces/_internal_.batchUpsertItineraryInfo.html +202 -0
- package/docs/interfaces/_internal_.bindTouristToOrder.html +97 -0
- package/docs/interfaces/_internal_.calculateUserConsumeInfo.html +89 -0
- package/docs/interfaces/_internal_.changeNoteStatus.html +97 -0
- package/docs/interfaces/_internal_.changeOrderContactInfo.html +97 -0
- package/docs/interfaces/_internal_.changeOrderSku.html +105 -0
- package/docs/interfaces/_internal_.confirmMealInfo.html +81 -0
- package/docs/interfaces/_internal_.createNote.html +105 -0
- package/docs/interfaces/_internal_.createScheduleNotice.html +89 -0
- package/docs/interfaces/_internal_.getItineraryCount.html +73 -0
- package/docs/interfaces/_internal_.getOrderById.html +86 -0
- package/docs/interfaces/_internal_.getOrderCount.html +193 -0
- package/docs/interfaces/_internal_.getPartyOrderCount.html +97 -0
- package/docs/interfaces/_internal_.getStoreOrderCount.html +121 -0
- package/docs/interfaces/_internal_.getTourismInfoByOrderId-1.html +229 -0
- package/docs/interfaces/_internal_.getTourismInfoByOrderId.html +73 -0
- package/docs/interfaces/_internal_.getUserOrderCount.html +97 -0
- package/docs/interfaces/_internal_.importPreCheck.html +112 -0
- package/docs/interfaces/_internal_.isOrderCanAddTourists.html +73 -0
- package/docs/interfaces/_internal_.markItineraryRead.html +81 -0
- package/docs/interfaces/_internal_.markOrderPurchaseInsurance.html +73 -0
- package/docs/interfaces/_internal_.markServiceNoticeAuth.html +73 -0
- package/docs/interfaces/_internal_.markServiceNoticeRead.html +81 -0
- package/docs/interfaces/_internal_.mgetUserOrderCountList-1.html +54 -0
- package/docs/interfaces/_internal_.mgetUserOrderCountList.html +81 -0
- package/docs/interfaces/_internal_.modifyOrderMealInfo.html +81 -0
- package/docs/interfaces/_internal_.multiSendSmsToTourist.html +81 -0
- package/docs/interfaces/_internal_.multiSendVoiceToTourist.html +81 -0
- package/docs/interfaces/_internal_.orderCreate-1.html +122 -0
- package/docs/interfaces/_internal_.orderCreate.html +208 -0
- package/docs/interfaces/_internal_.orderFulfillController.html +452 -0
- package/docs/interfaces/_internal_.orderPaid.html +97 -0
- package/docs/interfaces/_internal_.orderSettled.html +89 -0
- package/docs/interfaces/_internal_.platformReject.html +97 -0
- package/docs/interfaces/_internal_.preCheckTourists.html +89 -0
- package/docs/interfaces/_internal_.queryItineraryInfoByOrderIdList-1.html +54 -0
- package/docs/interfaces/_internal_.queryItineraryInfoByOrderIdList.html +65 -0
- package/docs/interfaces/_internal_.queryItineraryList-1.html +81 -0
- package/docs/interfaces/_internal_.queryItineraryList.html +89 -0
- package/docs/interfaces/_internal_.queryNoteByOrderIdList.html +73 -0
- package/docs/interfaces/_internal_.queryOrder.html +102 -0
- package/docs/interfaces/_internal_.queryOrderByIdList.html +86 -0
- package/docs/interfaces/_internal_.queryOrderBySkuIdList.html +94 -0
- package/docs/interfaces/_internal_.queryOrderChangeSkuRecords.html +73 -0
- package/docs/interfaces/_internal_.queryOrderList.html +210 -0
- package/docs/interfaces/_internal_.queryOrderMergeRecordByOrderId-1.html +123 -0
- package/docs/interfaces/_internal_.queryOrderMergeRecordByOrderId.html +73 -0
- package/docs/interfaces/_internal_.queryPartyOrderInfo-1.html +81 -0
- package/docs/interfaces/_internal_.queryPartyOrderInfo.html +113 -0
- package/docs/interfaces/_internal_.queryPeriodTradeOrderList-1.html +89 -0
- package/docs/interfaces/_internal_.queryPeriodTradeOrderList.html +51 -0
- package/docs/interfaces/_internal_.queryPeriodTradeOrderOperatorList-1.html +137 -0
- package/docs/interfaces/_internal_.queryPeriodTradeOrderOperatorList.html +89 -0
- package/docs/interfaces/_internal_.queryRollingSalesStatistics-1.html +113 -0
- package/docs/interfaces/_internal_.queryRollingSalesStatistics.html +129 -0
- package/docs/interfaces/_internal_.querySaleItem-1.html +81 -0
- package/docs/interfaces/_internal_.querySaleItem.html +105 -0
- package/docs/interfaces/_internal_.queryShuttleInfoByOrderId-1.html +169 -0
- package/docs/interfaces/_internal_.queryShuttleInfoByOrderId.html +73 -0
- package/docs/interfaces/_internal_.queryStoreOrderList.html +165 -0
- package/docs/interfaces/_internal_.querySubOrderListByRootOrderId.html +94 -0
- package/docs/interfaces/_internal_.queryTopSaleItem-1.html +81 -0
- package/docs/interfaces/_internal_.queryTopSaleItem.html +97 -0
- package/docs/interfaces/_internal_.queryTourismInfoInOrderIdList.html +73 -0
- package/docs/interfaces/_internal_.queryUnionIdListByTimeRange.html +89 -0
- package/docs/interfaces/_internal_.queryUserOrder.html +153 -0
- package/docs/interfaces/_internal_.sendOrderPaidNotification.html +73 -0
- package/docs/interfaces/_internal_.submittedToSupplier.html +89 -0
- package/docs/interfaces/_internal_.supplierConfirmed.html +89 -0
- package/docs/interfaces/_internal_.supplierRejected.html +97 -0
- package/docs/interfaces/_internal_.thirdOrderInfoConfirmed.html +105 -0
- package/docs/interfaces/_internal_.updateShuttleInfo.html +129 -0
- package/docs/interfaces/_internal_.updateTradeOrderRoomCount.html +94 -0
- package/docs/interfaces/_internal_.updateTradeOrderTouristsInfo.html +139 -0
- package/docs/modules/_internal_.Constants.html +71 -0
- package/docs/modules/_internal_.html +180 -0
- package/docs/modules.html +62 -0
- package/docs/types/_internal_.QueryDataRes.html +56 -0
- package/docs/types/_internal_.Record.html +58 -0
- package/docs/types/_internal_.importPreCheck-1.html +66 -0
- package/docs/types/_internal_.queryNoteByOrderIdList-1.html +106 -0
- package/docs/types/_internal_.queryTourismInfoInOrderIdList-1.html +48 -0
- package/docs/variables/PosConstants.html +50 -0
- package/docs/variables/orderCoreService.html +47 -0
- package/docs/variables/orderFulfillService.html +47 -0
- package/docs/variables/orderJobService.html +47 -0
- package/docs/variables/orderNoteService.html +47 -0
- package/docs/variables/queryByCommodityService.html +47 -0
- package/docs/variables/queryByStoreService.html +47 -0
- package/docs/variables/queryByUserService.html +47 -0
- package/docs/variables/queryByWebService.html +47 -0
- package/jest.config.js +194 -0
- package/package.json +1 -1
- package/src/errors/BizError.ts +10 -0
- package/src/errors/SystemError.ts +10 -0
- package/src/index.ts +33 -0
- package/src/pos/http.ts +70 -0
- package/src/pos/modules/dataMigrate/service.ts +18 -0
- package/src/pos/modules/dataMigrate/types.ts +11 -0
- package/src/pos/modules/orderCore/service.ts +55 -0
- package/src/pos/modules/orderCore/types.ts +320 -0
- package/src/pos/modules/orderFulfill/service.ts +120 -0
- package/src/pos/modules/orderFulfill/types.ts +526 -0
- package/src/pos/modules/orderJob/service.ts +72 -0
- package/src/pos/modules/orderJob/types.ts +42 -0
- package/src/pos/modules/orderNote/service.ts +29 -0
- package/src/pos/modules/orderNote/types.ts +76 -0
- package/src/pos/modules/orderQuery/commodity.ts +59 -0
- package/src/pos/modules/orderQuery/store.ts +24 -0
- package/src/pos/modules/orderQuery/supplier.ts +34 -0
- package/src/pos/modules/orderQuery/types.ts +1124 -0
- package/src/pos/modules/orderQuery/user.ts +83 -0
- package/src/pos/modules/orderQuery/web.ts +26 -0
- package/src/pos/modules/service.ts +31 -0
- package/src/types.ts +1079 -0
- package/src/utils/env.ts +14 -0
- package/src/utils/string.ts +6 -0
- package/tsconfig.json +114 -0
- package/typedoc.json +15 -0
- /package/{errors → dist/errors}/BizError.d.ts +0 -0
- /package/{errors → dist/errors}/BizError.js +0 -0
- /package/{errors → dist/errors}/SystemError.d.ts +0 -0
- /package/{errors → dist/errors}/SystemError.js +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{pos → dist/pos}/http.d.ts +0 -0
- /package/{pos → dist/pos}/http.js +0 -0
- /package/{pos → dist/pos}/modules/dataMigrate/service.d.ts +0 -0
- /package/{pos → dist/pos}/modules/dataMigrate/service.js +0 -0
- /package/{pos → dist/pos}/modules/dataMigrate/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/dataMigrate/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderCore/service.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderCore/service.js +0 -0
- /package/{pos → dist/pos}/modules/orderCore/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderCore/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderFulfill/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderJob/service.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderJob/service.js +0 -0
- /package/{pos → dist/pos}/modules/orderJob/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderJob/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderNote/service.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderNote/service.js +0 -0
- /package/{pos → dist/pos}/modules/orderNote/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderNote/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/commodity.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/commodity.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/store.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/store.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/supplier.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/supplier.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/types.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/types.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/user.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/user.js +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/web.d.ts +0 -0
- /package/{pos → dist/pos}/modules/orderQuery/web.js +0 -0
- /package/{pos → dist/pos}/modules/service.d.ts +0 -0
- /package/{pos → dist/pos}/modules/service.js +0 -0
- /package/{types.js → dist/types.js} +0 -0
- /package/{utils → dist/utils}/env.d.ts +0 -0
- /package/{utils → dist/utils}/env.js +0 -0
- /package/{utils → dist/utils}/string.d.ts +0 -0
- /package/{utils → dist/utils}/string.js +0 -0
package/ceshi.jmx
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.2">
|
|
3
|
+
<hashTree>
|
|
4
|
+
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="测试计划" enabled="true">
|
|
5
|
+
<boolProp name="TestPlan.functional_mode">false</boolProp>
|
|
6
|
+
<boolProp name="TestPlan.tearDown_on_shutdown">false</boolProp>
|
|
7
|
+
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
|
|
8
|
+
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true">
|
|
9
|
+
<collectionProp name="Arguments.arguments"/>
|
|
10
|
+
</elementProp>
|
|
11
|
+
</TestPlan>
|
|
12
|
+
<hashTree>
|
|
13
|
+
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="线程组-一日聚" enabled="true">
|
|
14
|
+
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
|
|
15
|
+
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true">
|
|
16
|
+
<stringProp name="LoopController.loops">1</stringProp>
|
|
17
|
+
<boolProp name="LoopController.continue_forever">false</boolProp>
|
|
18
|
+
</elementProp>
|
|
19
|
+
<stringProp name="ThreadGroup.num_threads">1</stringProp>
|
|
20
|
+
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
|
|
21
|
+
<boolProp name="ThreadGroup.delayedStart">false</boolProp>
|
|
22
|
+
<boolProp name="ThreadGroup.scheduler">false</boolProp>
|
|
23
|
+
<stringProp name="ThreadGroup.duration"></stringProp>
|
|
24
|
+
<stringProp name="ThreadGroup.delay"></stringProp>
|
|
25
|
+
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
|
|
26
|
+
</ThreadGroup>
|
|
27
|
+
<hashTree>
|
|
28
|
+
<ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="【测试】HTTP请求默认值" enabled="true">
|
|
29
|
+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true">
|
|
30
|
+
<collectionProp name="Arguments.arguments"/>
|
|
31
|
+
</elementProp>
|
|
32
|
+
<stringProp name="HTTPSampler.domain">pos-app-74680-5-1304510571.sh.run.tcloudbase.com</stringProp>
|
|
33
|
+
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
34
|
+
</ConfigTestElement>
|
|
35
|
+
<hashTree/>
|
|
36
|
+
<ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="【生产】HTTP请求默认值" enabled="false">
|
|
37
|
+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true">
|
|
38
|
+
<collectionProp name="Arguments.arguments"/>
|
|
39
|
+
</elementProp>
|
|
40
|
+
<stringProp name="HTTPSampler.domain">pos-app-60660-10-1304510571.sh.run.tcloudbase.com</stringProp>
|
|
41
|
+
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
42
|
+
</ConfigTestElement>
|
|
43
|
+
<hashTree/>
|
|
44
|
+
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP信息头管理器" enabled="true">
|
|
45
|
+
<collectionProp name="HeaderManager.headers">
|
|
46
|
+
<elementProp name="" elementType="Header">
|
|
47
|
+
<stringProp name="Header.name">content-type</stringProp>
|
|
48
|
+
<stringProp name="Header.value">application/json;charset=UTF-8</stringProp>
|
|
49
|
+
</elementProp>
|
|
50
|
+
<elementProp name="" elementType="Header">
|
|
51
|
+
<stringProp name="Header.name">X-TCB-Trace</stringProp>
|
|
52
|
+
<stringProp name="Header.value">eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjoie1wibG9naW5UeXBlXCI6XCJVU0VSTkFNRVwiLFwiZW52TmFtZVwiOlwiZGV2LTFncHA1M2p1M2NlYjQ2YzdcIixcInV1aWRcIjpcImI0MDA1YTUxNzg0ODQ2OWFhNDY2ZjdiZjIzNjMxNTBmXCJ9IiwiaWF0IjoxNzA0NDM0Njc4LCJleHAiOjE3MDQ0MzgyNzh9.-OUHS8bexgYQ_T5ZRM6qmSiLvqjdXwODU9Ivxu_DeMQ;1704428386</stringProp>
|
|
53
|
+
</elementProp>
|
|
54
|
+
<elementProp name="" elementType="Header">
|
|
55
|
+
<stringProp name="Header.name">X-TCB-Region</stringProp>
|
|
56
|
+
<stringProp name="Header.value">ap-shanghai</stringProp>
|
|
57
|
+
</elementProp>
|
|
58
|
+
<elementProp name="" elementType="Header">
|
|
59
|
+
<stringProp name="Header.name">X-SDK-Version</stringProp>
|
|
60
|
+
<stringProp name="Header.value">@cloudbase/js-sdk/1.7.2</stringProp>
|
|
61
|
+
</elementProp>
|
|
62
|
+
<elementProp name="" elementType="Header">
|
|
63
|
+
<stringProp name="Header.name">User-Agent</stringProp>
|
|
64
|
+
<stringProp name="Header.value">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36</stringProp>
|
|
65
|
+
</elementProp>
|
|
66
|
+
<elementProp name="" elementType="Header">
|
|
67
|
+
<stringProp name="Header.name">Referer</stringProp>
|
|
68
|
+
<stringProp name="Header.value">http://dev.8848top.cn/</stringProp>
|
|
69
|
+
</elementProp>
|
|
70
|
+
<elementProp name="" elementType="Header">
|
|
71
|
+
<stringProp name="Header.name">Pragma</stringProp>
|
|
72
|
+
<stringProp name="Header.value">no-cache</stringProp>
|
|
73
|
+
</elementProp>
|
|
74
|
+
<elementProp name="" elementType="Header">
|
|
75
|
+
<stringProp name="Header.name">Origin</stringProp>
|
|
76
|
+
<stringProp name="Header.value">http://dev.8848top.cn</stringProp>
|
|
77
|
+
</elementProp>
|
|
78
|
+
<elementProp name="" elementType="Header">
|
|
79
|
+
<stringProp name="Header.name">Connection</stringProp>
|
|
80
|
+
<stringProp name="Header.value">keep-alive</stringProp>
|
|
81
|
+
</elementProp>
|
|
82
|
+
<elementProp name="" elementType="Header">
|
|
83
|
+
<stringProp name="Header.name">x-seqid</stringProp>
|
|
84
|
+
<stringProp name="Header.value">65edfc66968b4</stringProp>
|
|
85
|
+
</elementProp>
|
|
86
|
+
</collectionProp>
|
|
87
|
+
</HeaderManager>
|
|
88
|
+
<hashTree/>
|
|
89
|
+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="------>core/order-create【一日聚】" enabled="true">
|
|
90
|
+
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
91
|
+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
92
|
+
<collectionProp name="Arguments.arguments">
|
|
93
|
+
<elementProp name="" elementType="HTTPArgument">
|
|
94
|
+
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
95
|
+
<stringProp name="Argument.value">{
|
|
96
|
+
"basicInfo": {
|
|
97
|
+
"actuallyPaidFee": 1,
|
|
98
|
+
"contactInfo": {
|
|
99
|
+
"mobile": "15082917111",
|
|
100
|
+
"name": "路飞"
|
|
101
|
+
},
|
|
102
|
+
"fromUnionId": "",
|
|
103
|
+
"fromUserRole": "",
|
|
104
|
+
"openId": "o6uai4sahaHBEBiMbZRPN2KNiigY",
|
|
105
|
+
"sceneInfo": {
|
|
106
|
+
"appScene": 1089,
|
|
107
|
+
"scene1": "102",
|
|
108
|
+
"scene2": ""
|
|
109
|
+
},
|
|
110
|
+
"rootOrderId": "",
|
|
111
|
+
"unionId": "o-RM65vodxOUsyx3gETh_EJwNCzA"
|
|
112
|
+
},
|
|
113
|
+
"commodityInfo": {
|
|
114
|
+
"itemId": "65968e32b567aabccd21b484",
|
|
115
|
+
"skuList": [
|
|
116
|
+
{
|
|
117
|
+
"quantity": 1,
|
|
118
|
+
"skuId": "65a88f83ae0495ca73dc7b38"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"fulfillInfo": {
|
|
123
|
+
"cakeCouponCode": null
|
|
124
|
+
},
|
|
125
|
+
"promotionInfo": {
|
|
126
|
+
"useCreditCoin": false,
|
|
127
|
+
"useItemCoupon": true,
|
|
128
|
+
"useOrderCoupon": true
|
|
129
|
+
},
|
|
130
|
+
"tourismInfo": {}
|
|
131
|
+
}</stringProp>
|
|
132
|
+
<stringProp name="Argument.metadata">=</stringProp>
|
|
133
|
+
</elementProp>
|
|
134
|
+
</collectionProp>
|
|
135
|
+
</elementProp>
|
|
136
|
+
<stringProp name="HTTPSampler.protocol">https</stringProp>
|
|
137
|
+
<stringProp name="HTTPSampler.path">/core/order-create</stringProp>
|
|
138
|
+
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
139
|
+
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
140
|
+
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
141
|
+
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
142
|
+
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
143
|
+
<boolProp name="HTTPSampler.BROWSER_COMPATIBLE_MULTIPART">false</boolProp>
|
|
144
|
+
<boolProp name="HTTPSampler.image_parser">false</boolProp>
|
|
145
|
+
<boolProp name="HTTPSampler.concurrentDwn">false</boolProp>
|
|
146
|
+
<stringProp name="HTTPSampler.concurrentPool">6</stringProp>
|
|
147
|
+
<boolProp name="HTTPSampler.md5">false</boolProp>
|
|
148
|
+
<intProp name="HTTPSampler.ipSourceType">0</intProp>
|
|
149
|
+
<stringProp name="TestPlan.comments">创建一日聚订单(dev "itemId": "65968e32b567aabccd21b484","skuId": "65a88f83ae0495ca73dc7b38")("itemId": "65a797650aeca5e9bd935e9b", "skuId": "65b086cd8f3ec8155f244962",)</stringProp>
|
|
150
|
+
</HTTPSamplerProxy>
|
|
151
|
+
<hashTree>
|
|
152
|
+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="正则表达式提取器" enabled="true">
|
|
153
|
+
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
|
|
154
|
+
<boolProp name="RegexExtractor.default_empty_value">false</boolProp>
|
|
155
|
+
<stringProp name="RegexExtractor.refname">tradeOrderId</stringProp>
|
|
156
|
+
<stringProp name="RegexExtractor.regex">"tradeOrderId"\s*:\s*"([^"]+)"</stringProp>
|
|
157
|
+
<stringProp name="RegexExtractor.template">$1$</stringProp>
|
|
158
|
+
<stringProp name="RegexExtractor.match_number">0</stringProp>
|
|
159
|
+
</RegexExtractor>
|
|
160
|
+
<hashTree/>
|
|
161
|
+
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON断言" enabled="false">
|
|
162
|
+
<stringProp name="JSON_PATH">$.message</stringProp>
|
|
163
|
+
<stringProp name="EXPECTED_VALUE">success</stringProp>
|
|
164
|
+
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
165
|
+
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
166
|
+
<boolProp name="INVERT">false</boolProp>
|
|
167
|
+
<boolProp name="ISREGEX">true</boolProp>
|
|
168
|
+
</JSONPathAssertion>
|
|
169
|
+
<hashTree/>
|
|
170
|
+
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="查看结果树" enabled="true">
|
|
171
|
+
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
|
172
|
+
<objProp>
|
|
173
|
+
<name>saveConfig</name>
|
|
174
|
+
<value class="SampleSaveConfiguration">
|
|
175
|
+
<time>true</time>
|
|
176
|
+
<latency>true</latency>
|
|
177
|
+
<timestamp>true</timestamp>
|
|
178
|
+
<success>true</success>
|
|
179
|
+
<label>true</label>
|
|
180
|
+
<code>true</code>
|
|
181
|
+
<message>true</message>
|
|
182
|
+
<threadName>true</threadName>
|
|
183
|
+
<dataType>true</dataType>
|
|
184
|
+
<encoding>false</encoding>
|
|
185
|
+
<assertions>true</assertions>
|
|
186
|
+
<subresults>true</subresults>
|
|
187
|
+
<responseData>false</responseData>
|
|
188
|
+
<samplerData>false</samplerData>
|
|
189
|
+
<xml>false</xml>
|
|
190
|
+
<fieldNames>true</fieldNames>
|
|
191
|
+
<responseHeaders>false</responseHeaders>
|
|
192
|
+
<requestHeaders>false</requestHeaders>
|
|
193
|
+
<responseDataOnError>false</responseDataOnError>
|
|
194
|
+
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
|
|
195
|
+
<assertionsResultsToSave>0</assertionsResultsToSave>
|
|
196
|
+
<bytes>true</bytes>
|
|
197
|
+
<sentBytes>true</sentBytes>
|
|
198
|
+
<url>true</url>
|
|
199
|
+
<threadCounts>true</threadCounts>
|
|
200
|
+
<idleTime>true</idleTime>
|
|
201
|
+
<connectTime>true</connectTime>
|
|
202
|
+
</value>
|
|
203
|
+
</objProp>
|
|
204
|
+
<stringProp name="filename"></stringProp>
|
|
205
|
+
</ResultCollector>
|
|
206
|
+
<hashTree/>
|
|
207
|
+
</hashTree>
|
|
208
|
+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="------>query/user/get-order-by-id" enabled="false">
|
|
209
|
+
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
210
|
+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
211
|
+
<collectionProp name="Arguments.arguments">
|
|
212
|
+
<elementProp name="" elementType="HTTPArgument">
|
|
213
|
+
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
|
214
|
+
<stringProp name="Argument.value">{
|
|
215
|
+

|
|
216
|
+
"id": "65d30519db39e0c4a4a9589f54",
|
|
217
|
+
"needBlocks": ["basicInfo","promotionInfo","_id"]
|
|
218
|
+

|
|
219
|
+
}
|
|
220
|
+
</stringProp>
|
|
221
|
+
<stringProp name="Argument.metadata">=</stringProp>
|
|
222
|
+
</elementProp>
|
|
223
|
+
</collectionProp>
|
|
224
|
+
</elementProp>
|
|
225
|
+
<stringProp name="HTTPSampler.path">/query/user/get-order-by-id</stringProp>
|
|
226
|
+
<stringProp name="HTTPSampler.method">POST</stringProp>
|
|
227
|
+
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
228
|
+
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
229
|
+
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
230
|
+
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
231
|
+
<boolProp name="HTTPSampler.BROWSER_COMPATIBLE_MULTIPART">false</boolProp>
|
|
232
|
+
<boolProp name="HTTPSampler.image_parser">false</boolProp>
|
|
233
|
+
<boolProp name="HTTPSampler.concurrentDwn">false</boolProp>
|
|
234
|
+
<stringProp name="HTTPSampler.concurrentPool">6</stringProp>
|
|
235
|
+
<boolProp name="HTTPSampler.md5">false</boolProp>
|
|
236
|
+
<intProp name="HTTPSampler.ipSourceType">0</intProp>
|
|
237
|
+
</HTTPSamplerProxy>
|
|
238
|
+
<hashTree>
|
|
239
|
+
<JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="JSON断言" enabled="false">
|
|
240
|
+
<stringProp name="JSON_PATH">$.data.basicInfo.status</stringProp>
|
|
241
|
+
<stringProp name="EXPECTED_VALUE">NOT_PAID</stringProp>
|
|
242
|
+
<boolProp name="JSONVALIDATION">true</boolProp>
|
|
243
|
+
<boolProp name="EXPECT_NULL">false</boolProp>
|
|
244
|
+
<boolProp name="INVERT">false</boolProp>
|
|
245
|
+
<boolProp name="ISREGEX">true</boolProp>
|
|
246
|
+
</JSONPathAssertion>
|
|
247
|
+
<hashTree/>
|
|
248
|
+
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="查看结果树" enabled="true">
|
|
249
|
+
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
|
250
|
+
<objProp>
|
|
251
|
+
<name>saveConfig</name>
|
|
252
|
+
<value class="SampleSaveConfiguration">
|
|
253
|
+
<time>true</time>
|
|
254
|
+
<latency>true</latency>
|
|
255
|
+
<timestamp>true</timestamp>
|
|
256
|
+
<success>true</success>
|
|
257
|
+
<label>true</label>
|
|
258
|
+
<code>true</code>
|
|
259
|
+
<message>true</message>
|
|
260
|
+
<threadName>true</threadName>
|
|
261
|
+
<dataType>true</dataType>
|
|
262
|
+
<encoding>false</encoding>
|
|
263
|
+
<assertions>true</assertions>
|
|
264
|
+
<subresults>true</subresults>
|
|
265
|
+
<responseData>false</responseData>
|
|
266
|
+
<samplerData>false</samplerData>
|
|
267
|
+
<xml>false</xml>
|
|
268
|
+
<fieldNames>true</fieldNames>
|
|
269
|
+
<responseHeaders>false</responseHeaders>
|
|
270
|
+
<requestHeaders>false</requestHeaders>
|
|
271
|
+
<responseDataOnError>false</responseDataOnError>
|
|
272
|
+
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
|
|
273
|
+
<assertionsResultsToSave>0</assertionsResultsToSave>
|
|
274
|
+
<bytes>true</bytes>
|
|
275
|
+
<sentBytes>true</sentBytes>
|
|
276
|
+
<url>true</url>
|
|
277
|
+
<threadCounts>true</threadCounts>
|
|
278
|
+
<idleTime>true</idleTime>
|
|
279
|
+
<connectTime>true</connectTime>
|
|
280
|
+
</value>
|
|
281
|
+
</objProp>
|
|
282
|
+
<stringProp name="filename"></stringProp>
|
|
283
|
+
</ResultCollector>
|
|
284
|
+
<hashTree/>
|
|
285
|
+
</hashTree>
|
|
286
|
+
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="查看结果树" enabled="true">
|
|
287
|
+
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
|
288
|
+
<objProp>
|
|
289
|
+
<name>saveConfig</name>
|
|
290
|
+
<value class="SampleSaveConfiguration">
|
|
291
|
+
<time>true</time>
|
|
292
|
+
<latency>true</latency>
|
|
293
|
+
<timestamp>true</timestamp>
|
|
294
|
+
<success>true</success>
|
|
295
|
+
<label>true</label>
|
|
296
|
+
<code>true</code>
|
|
297
|
+
<message>true</message>
|
|
298
|
+
<threadName>true</threadName>
|
|
299
|
+
<dataType>true</dataType>
|
|
300
|
+
<encoding>false</encoding>
|
|
301
|
+
<assertions>true</assertions>
|
|
302
|
+
<subresults>true</subresults>
|
|
303
|
+
<responseData>false</responseData>
|
|
304
|
+
<samplerData>false</samplerData>
|
|
305
|
+
<xml>false</xml>
|
|
306
|
+
<fieldNames>true</fieldNames>
|
|
307
|
+
<responseHeaders>false</responseHeaders>
|
|
308
|
+
<requestHeaders>false</requestHeaders>
|
|
309
|
+
<responseDataOnError>false</responseDataOnError>
|
|
310
|
+
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
|
|
311
|
+
<assertionsResultsToSave>0</assertionsResultsToSave>
|
|
312
|
+
<bytes>true</bytes>
|
|
313
|
+
<sentBytes>true</sentBytes>
|
|
314
|
+
<url>true</url>
|
|
315
|
+
<threadCounts>true</threadCounts>
|
|
316
|
+
<idleTime>true</idleTime>
|
|
317
|
+
<connectTime>true</connectTime>
|
|
318
|
+
</value>
|
|
319
|
+
</objProp>
|
|
320
|
+
<stringProp name="filename"></stringProp>
|
|
321
|
+
</ResultCollector>
|
|
322
|
+
<hashTree/>
|
|
323
|
+
</hashTree>
|
|
324
|
+
</hashTree>
|
|
325
|
+
</hashTree>
|
|
326
|
+
</jmeterTestPlan>
|
package/ci/index.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as fs from 'fs'
|
|
2
|
+
import * as path from 'path'
|
|
3
|
+
import inquirer from 'inquirer'
|
|
4
|
+
import { spawn } from 'child_process'
|
|
5
|
+
|
|
6
|
+
let content = fs.readFileSync(path.resolve(__dirname, '../package.json'), { encoding: 'utf-8' })
|
|
7
|
+
const packageContent = JSON.parse(content as string)
|
|
8
|
+
const version = packageContent.version;
|
|
9
|
+
const reg = /([0-9])\.([0-9])\.([0-9]+)(?:(\-\w*)\.([0-9]+))?/g;
|
|
10
|
+
const execs: any[] = reg.exec(version) as Array<any>;
|
|
11
|
+
console.log("当前 version: ", version)
|
|
12
|
+
const addOne = (num: string) => Number(num) + 1;
|
|
13
|
+
const getVersion = ([major, minor, patch]: Array<string| number>) => `${major}.${minor}.${patch}`
|
|
14
|
+
|
|
15
|
+
const getVersionLists = () => ([
|
|
16
|
+
//major
|
|
17
|
+
{
|
|
18
|
+
name: 'major version update: ' + getVersion([addOne(execs[1]), 0, 0]),
|
|
19
|
+
value: 'major',
|
|
20
|
+
},
|
|
21
|
+
// minor
|
|
22
|
+
{
|
|
23
|
+
name: 'minor version update: ' + getVersion([execs[1], addOne(execs[2]), execs[3]]),
|
|
24
|
+
value: 'minor'
|
|
25
|
+
},
|
|
26
|
+
// patch
|
|
27
|
+
{
|
|
28
|
+
name: 'patch version update: ' + getVersion([execs[1], execs[2], addOne(execs[3])]),
|
|
29
|
+
value: 'patch'
|
|
30
|
+
},
|
|
31
|
+
// beta
|
|
32
|
+
{
|
|
33
|
+
name: 'beta version update: ' + getVersion([execs[1], execs[2], addOne(execs[3])]) + `-beta.${addOne(execs[5] || -1)}`,
|
|
34
|
+
value: 'beta'
|
|
35
|
+
}
|
|
36
|
+
])
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
const onSelectVersion = async () => {
|
|
40
|
+
const versions = getVersionLists();
|
|
41
|
+
inquirer.prompt([
|
|
42
|
+
{
|
|
43
|
+
name: 'mode',
|
|
44
|
+
type: 'list',
|
|
45
|
+
message: '请选择需要发布的版本',
|
|
46
|
+
choices: versions,
|
|
47
|
+
default: [version[0]]
|
|
48
|
+
}
|
|
49
|
+
]).then(result => {
|
|
50
|
+
// 更新版本号
|
|
51
|
+
// const standardVersion = path.resolve(__dirname, '../node_modules/.bin/standard-version')
|
|
52
|
+
const script = `npm run update:${result.mode} && npm run build && cd dist && npm publish && cd ..`
|
|
53
|
+
runScript(script)
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
onSelectVersion()
|
|
57
|
+
|
|
58
|
+
function runScript(script: string) {
|
|
59
|
+
if(!script) return
|
|
60
|
+
|
|
61
|
+
const childProcess = spawn(script,{
|
|
62
|
+
shell: true
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
childProcess.stderr.on('data', chunk=>{
|
|
66
|
+
console.log("stderr data", chunk.toString())
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
childProcess.stdout.on('data', chunk=>{
|
|
70
|
+
console.log(chunk.toString())
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
}
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# pos-cli-nodejs
|
|
2
|
+
正向订单服务Nodejs客户端
|
|
3
|
+
|
|
4
|
+
## 安装
|
|
5
|
+
```
|
|
6
|
+
npm install @be-link/pos-cli-nodejs
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## 使用
|
|
10
|
+
|
|
11
|
+
### 配置环境变量
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
CONTAINER_ENV = SFC(云函数) || CLOUD_RUN(云托管)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
SDK依赖`CONTAINER_ENV`来识别当前运行环境,默认为`SFC`, 请根据使用SDK的环境来配置该变量。
|
|
18
|
+
|
|
19
|
+
当`CONTAINER_ENV`为`SFC`时,SDK会从公网访问POS, 否则使用内网域名(更快, 更安全).
|
|
20
|
+
|
|
21
|
+
### 引入模块
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
// 订单操作类
|
|
25
|
+
import { orderCoreService } from '@be-link/pos-cli-nodejs'
|
|
26
|
+
// 订单履约类
|
|
27
|
+
import { orderFulfillService } from '@be-link/pos-cli-nodejs'
|
|
28
|
+
// 商品维度查询订单
|
|
29
|
+
import { queryByCommodityService } from '@be-link/pos-cli-nodejs'
|
|
30
|
+
// 用户维度查询订单
|
|
31
|
+
import { queryByUserService } from '@be-link/pos-cli-nodejs'
|
|
32
|
+
// 门店维度查询订单
|
|
33
|
+
import { queryByStoreService } from '@be-link/pos-cli-nodejs'
|
|
34
|
+
// web端后台查询订单
|
|
35
|
+
import { queryByWebService } from '@be-link/pos-cli-nodejs'
|
|
36
|
+
// 订单备注类
|
|
37
|
+
import { orderNoteService } from '@be-link/pos-cli-nodejs'
|
|
38
|
+
// 枚举类
|
|
39
|
+
import { PosConstants } from '@be-link/pos-cli-nodejs'
|
|
40
|
+
```
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@be-link/pos-cli-nodejs",
|
|
3
|
+
"version": "1.0.17",
|
|
4
|
+
"description": "正向订单服务Nodejs客户端",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "rm -rf ./dist && tsc && cp package.json README.md ./dist/",
|
|
8
|
+
"test": "npx jest",
|
|
9
|
+
"gen-doc": "npx typedoc --options typedoc.json",
|
|
10
|
+
"update:major": "standard-version --release-as major",
|
|
11
|
+
"update:minor": "standard-version --release-as minor",
|
|
12
|
+
"update:patch": "standard-version --release-as patch",
|
|
13
|
+
"update:beta": "standard-version --prerelease beta",
|
|
14
|
+
"publish": "ts-node ./ci/index"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/snowmountain-top/pos-cli-nodejs.git"
|
|
19
|
+
},
|
|
20
|
+
"author": "dev@8848top.com",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/snowmountain-top/pos-cli-nodejs/issues"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/snowmountain-top/pos-cli-nodejs#readme",
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"registry": "https://registry.npmjs.org/"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@commitlint/cli": "^18.4.3",
|
|
32
|
+
"@commitlint/config-conventional": "^18.4.3",
|
|
33
|
+
"@types/inquirer": "^9.0.7",
|
|
34
|
+
"@types/jest": "29.5.6",
|
|
35
|
+
"@types/node": "^20.8.9",
|
|
36
|
+
"@types/uuid": "^9.0.6",
|
|
37
|
+
"husky": "^8.0.3",
|
|
38
|
+
"inquirer": "8.2.6",
|
|
39
|
+
"jest": "29.7.0",
|
|
40
|
+
"standard-version": "^9.5.0",
|
|
41
|
+
"ts-jest": "29.1.1",
|
|
42
|
+
"ts-node": "^10.9.2",
|
|
43
|
+
"typedoc": "0.25.2",
|
|
44
|
+
"typedoc-plugin-missing-exports": "2.1.0",
|
|
45
|
+
"typescript": "5.2.2"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"axios": "0.27.2",
|
|
49
|
+
"axios-retry": "^4.0.0",
|
|
50
|
+
"uuid": "^9.0.1",
|
|
51
|
+
"vitality-meta": "1.0.74"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -25,6 +25,7 @@ declare class OrderFulfillService extends BaseService implements Service.orderFu
|
|
|
25
25
|
addShuttleInfo(request: Service.Request.addShuttleInfo): Promise<void>;
|
|
26
26
|
changeOrderSku(request: Service.Request.changeOrderSku): Promise<void>;
|
|
27
27
|
confirmMealInfo(request: Service.Request.confirmMealInfo): Promise<void>;
|
|
28
|
+
updateContract(request: Service.Request.updateContract): Promise<void>;
|
|
28
29
|
updateShuttleInfo(request: Service.Request.updateShuttleInfo): Promise<void>;
|
|
29
30
|
updateTradeOrderRoomCount(request: Service.Request.updateTradeOrderRoomCount): Promise<void>;
|
|
30
31
|
updateTradeOrderTouristsInfo(request: Service.Request.updateTradeOrderTouristsInfo): Promise<void>;
|
|
@@ -76,6 +76,9 @@ class OrderFulfillService extends service_1.default {
|
|
|
76
76
|
confirmMealInfo(request) {
|
|
77
77
|
return (0, http_1.callApi)(this.getApiUrl(this.confirmMealInfo), request);
|
|
78
78
|
}
|
|
79
|
+
updateContract(request) {
|
|
80
|
+
return (0, http_1.callApi)(this.getApiUrl(this.updateContract), request);
|
|
81
|
+
}
|
|
79
82
|
updateShuttleInfo(request) {
|
|
80
83
|
return (0, http_1.callApi)(this.getApiUrl(this.updateShuttleInfo), request);
|
|
81
84
|
}
|
|
@@ -221,6 +221,15 @@ export declare namespace Service {
|
|
|
221
221
|
/** 餐食信息 */
|
|
222
222
|
mealInfo: string;
|
|
223
223
|
}
|
|
224
|
+
interface updateContract {
|
|
225
|
+
/** 订单号 */
|
|
226
|
+
tradeOrderId: string;
|
|
227
|
+
/** 合同列表 */
|
|
228
|
+
contractFile: {
|
|
229
|
+
name: string;
|
|
230
|
+
url: string;
|
|
231
|
+
}[];
|
|
232
|
+
}
|
|
224
233
|
interface createScheduleNotice {
|
|
225
234
|
/** 订单id */
|
|
226
235
|
tradeOrderId: string;
|
|
@@ -408,6 +417,11 @@ export declare namespace Service {
|
|
|
408
417
|
* @path /fulfill/confirm-meal-info
|
|
409
418
|
*/
|
|
410
419
|
confirmMealInfo(request: Request.confirmMealInfo): Promise<void>;
|
|
420
|
+
/**
|
|
421
|
+
* 商家端上传合同
|
|
422
|
+
* @path /fulfill/update-contract
|
|
423
|
+
*/
|
|
424
|
+
updateContract(request: Request.updateContract): Promise<void>;
|
|
411
425
|
/**
|
|
412
426
|
* 查询订单改期记录
|
|
413
427
|
* @path /fulfill/query-order-change-sku-records
|
|
@@ -608,6 +608,11 @@ export interface IPositiveFulfillmentInfo {
|
|
|
608
608
|
customMealInfo: string;
|
|
609
609
|
/** 权益信息 */
|
|
610
610
|
rightsInfo: string[];
|
|
611
|
+
/** 境外合同文件 */
|
|
612
|
+
contractFile?: {
|
|
613
|
+
name: string;
|
|
614
|
+
url: string;
|
|
615
|
+
}[];
|
|
611
616
|
}
|
|
612
617
|
export interface TradeOrderMergeRecordResource {
|
|
613
618
|
/** 资源类型 */
|
package/docs/.nojekyll
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--light-hl-0: #001080;
|
|
3
|
+
--dark-hl-0: #9CDCFE;
|
|
4
|
+
--light-hl-1: #000000;
|
|
5
|
+
--dark-hl-1: #D4D4D4;
|
|
6
|
+
--light-hl-2: #0070C1;
|
|
7
|
+
--dark-hl-2: #4FC1FF;
|
|
8
|
+
--light-hl-3: #795E26;
|
|
9
|
+
--dark-hl-3: #DCDCAA;
|
|
10
|
+
--light-hl-4: #008000;
|
|
11
|
+
--dark-hl-4: #6A9955;
|
|
12
|
+
--light-hl-5: #AF00DB;
|
|
13
|
+
--dark-hl-5: #C586C0;
|
|
14
|
+
--light-hl-6: #A31515;
|
|
15
|
+
--dark-hl-6: #CE9178;
|
|
16
|
+
--light-code-background: #FFFFFF;
|
|
17
|
+
--dark-code-background: #1E1E1E;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (prefers-color-scheme: light) { :root {
|
|
21
|
+
--hl-0: var(--light-hl-0);
|
|
22
|
+
--hl-1: var(--light-hl-1);
|
|
23
|
+
--hl-2: var(--light-hl-2);
|
|
24
|
+
--hl-3: var(--light-hl-3);
|
|
25
|
+
--hl-4: var(--light-hl-4);
|
|
26
|
+
--hl-5: var(--light-hl-5);
|
|
27
|
+
--hl-6: var(--light-hl-6);
|
|
28
|
+
--code-background: var(--light-code-background);
|
|
29
|
+
} }
|
|
30
|
+
|
|
31
|
+
@media (prefers-color-scheme: dark) { :root {
|
|
32
|
+
--hl-0: var(--dark-hl-0);
|
|
33
|
+
--hl-1: var(--dark-hl-1);
|
|
34
|
+
--hl-2: var(--dark-hl-2);
|
|
35
|
+
--hl-3: var(--dark-hl-3);
|
|
36
|
+
--hl-4: var(--dark-hl-4);
|
|
37
|
+
--hl-5: var(--dark-hl-5);
|
|
38
|
+
--hl-6: var(--dark-hl-6);
|
|
39
|
+
--code-background: var(--dark-code-background);
|
|
40
|
+
} }
|
|
41
|
+
|
|
42
|
+
:root[data-theme='light'] {
|
|
43
|
+
--hl-0: var(--light-hl-0);
|
|
44
|
+
--hl-1: var(--light-hl-1);
|
|
45
|
+
--hl-2: var(--light-hl-2);
|
|
46
|
+
--hl-3: var(--light-hl-3);
|
|
47
|
+
--hl-4: var(--light-hl-4);
|
|
48
|
+
--hl-5: var(--light-hl-5);
|
|
49
|
+
--hl-6: var(--light-hl-6);
|
|
50
|
+
--code-background: var(--light-code-background);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:root[data-theme='dark'] {
|
|
54
|
+
--hl-0: var(--dark-hl-0);
|
|
55
|
+
--hl-1: var(--dark-hl-1);
|
|
56
|
+
--hl-2: var(--dark-hl-2);
|
|
57
|
+
--hl-3: var(--dark-hl-3);
|
|
58
|
+
--hl-4: var(--dark-hl-4);
|
|
59
|
+
--hl-5: var(--dark-hl-5);
|
|
60
|
+
--hl-6: var(--dark-hl-6);
|
|
61
|
+
--code-background: var(--dark-code-background);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.hl-0 { color: var(--hl-0); }
|
|
65
|
+
.hl-1 { color: var(--hl-1); }
|
|
66
|
+
.hl-2 { color: var(--hl-2); }
|
|
67
|
+
.hl-3 { color: var(--hl-3); }
|
|
68
|
+
.hl-4 { color: var(--hl-4); }
|
|
69
|
+
.hl-5 { color: var(--hl-5); }
|
|
70
|
+
.hl-6 { color: var(--hl-6); }
|
|
71
|
+
pre, code { background: var(--code-background); }
|