@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.
- package/package.json +17 -14
- package/{dist/pos → pos}/modules/orderQuery/types.d.ts +1 -1
- package/{dist/pos → pos}/modules/orderQuery/user.d.ts +1 -1
- package/{dist/pos → pos}/modules/orderQuery/user.js +4 -2
- package/{dist/types.d.ts → types.d.ts} +36 -5
- package/utils/posProxy/comboInfoProxy.d.ts +19 -0
- package/utils/posProxy/comboInfoProxy.js +30 -0
- package/utils/posProxy/index.d.ts +5 -0
- package/utils/posProxy/index.js +40 -0
- package/utils/posProxy/itemInfoProxy.d.ts +129 -0
- package/utils/posProxy/itemInfoProxy.js +105 -0
- package/utils/posProxy/skuInfoProxy.d.ts +70 -0
- package/utils/posProxy/skuInfoProxy.js +83 -0
- package/utils/posProxy/venueInfoProxy.d.ts +22 -0
- package/utils/posProxy/venueInfoProxy.js +30 -0
- package/.github/workflows/JMeter.yml +0 -92
- package/.husky/commit-msg +0 -4
- package/.versionrc +0 -22
- package/CHANGELOG.md +0 -599
- package/Makefile +0 -4
- package/ceshi.jmx +0 -326
- package/ci/index.ts +0 -73
- package/commitlint.config.js +0 -3
- package/dist/README.md +0 -40
- package/dist/package.json +0 -54
- package/jest.config.js +0 -194
- package/src/errors/BizError.ts +0 -10
- package/src/errors/SystemError.ts +0 -10
- package/src/index.ts +0 -33
- package/src/pos/http.ts +0 -70
- package/src/pos/modules/dataMigrate/service.ts +0 -18
- package/src/pos/modules/dataMigrate/types.ts +0 -11
- package/src/pos/modules/orderCore/service.ts +0 -80
- package/src/pos/modules/orderCore/types.ts +0 -418
- package/src/pos/modules/orderFulfill/service.ts +0 -126
- package/src/pos/modules/orderFulfill/types.ts +0 -548
- package/src/pos/modules/orderJob/service.ts +0 -87
- package/src/pos/modules/orderJob/types.ts +0 -54
- package/src/pos/modules/orderNote/service.ts +0 -29
- package/src/pos/modules/orderNote/types.ts +0 -78
- package/src/pos/modules/orderQuery/commodity.ts +0 -59
- package/src/pos/modules/orderQuery/store.ts +0 -24
- package/src/pos/modules/orderQuery/supplier.ts +0 -34
- package/src/pos/modules/orderQuery/types.ts +0 -1159
- package/src/pos/modules/orderQuery/user.ts +0 -83
- package/src/pos/modules/orderQuery/web.ts +0 -26
- package/src/pos/modules/service.ts +0 -31
- package/src/types.ts +0 -1237
- package/src/utils/env.ts +0 -14
- package/src/utils/string.ts +0 -6
- package/tsconfig.json +0 -114
- package/typedoc.json +0 -15
- /package/{dist/errors → errors}/BizError.d.ts +0 -0
- /package/{dist/errors → errors}/BizError.js +0 -0
- /package/{dist/errors → errors}/SystemError.d.ts +0 -0
- /package/{dist/errors → errors}/SystemError.js +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/pos → pos}/http.d.ts +0 -0
- /package/{dist/pos → pos}/http.js +0 -0
- /package/{dist/pos → pos}/modules/dataMigrate/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/dataMigrate/service.js +0 -0
- /package/{dist/pos → pos}/modules/dataMigrate/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/dataMigrate/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderCore/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderCore/service.js +0 -0
- /package/{dist/pos → pos}/modules/orderCore/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderCore/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderFulfill/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderFulfill/service.js +0 -0
- /package/{dist/pos → pos}/modules/orderFulfill/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderFulfill/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderJob/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderJob/service.js +0 -0
- /package/{dist/pos → pos}/modules/orderJob/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderJob/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderNote/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderNote/service.js +0 -0
- /package/{dist/pos → pos}/modules/orderNote/types.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderNote/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/commodity.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/commodity.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/store.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/store.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/supplier.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/supplier.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/types.js +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/web.d.ts +0 -0
- /package/{dist/pos → pos}/modules/orderQuery/web.js +0 -0
- /package/{dist/pos → pos}/modules/service.d.ts +0 -0
- /package/{dist/pos → pos}/modules/service.js +0 -0
- /package/{dist/types.js → types.js} +0 -0
- /package/{dist/utils → utils}/env.d.ts +0 -0
- /package/{dist/utils → utils}/env.js +0 -0
- /package/{dist/utils → utils}/string.d.ts +0 -0
- /package/{dist/utils → utils}/string.js +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PosDto } from '../..';
|
|
2
|
+
export declare abstract class VenueInfoProxy {
|
|
3
|
+
abstract get raw(): PosDto.IStore | PosDto.IPositiveVenueInfo;
|
|
4
|
+
abstract get id(): string;
|
|
5
|
+
abstract get name(): string;
|
|
6
|
+
}
|
|
7
|
+
declare class VenueInfoProxyV1 extends VenueInfoProxy {
|
|
8
|
+
private readonly orderVenueInfo;
|
|
9
|
+
constructor(orderVenueInfo: PosDto.IStore);
|
|
10
|
+
get raw(): PosDto.IStore;
|
|
11
|
+
get id(): string;
|
|
12
|
+
get name(): string;
|
|
13
|
+
}
|
|
14
|
+
declare class VenueInfoProxyV2 extends VenueInfoProxy {
|
|
15
|
+
private readonly orderVenueInfo;
|
|
16
|
+
constructor(orderVenueInfo: PosDto.IPositiveVenueInfo);
|
|
17
|
+
get raw(): PosDto.IPositiveVenueInfo;
|
|
18
|
+
get id(): string;
|
|
19
|
+
get name(): string;
|
|
20
|
+
}
|
|
21
|
+
export declare function createVenueInfoProxy(orderVenueInfo: PosDto.IStore | PosDto.IPositiveVenueInfo, version: 'V1' | 'V2'): VenueInfoProxyV1 | VenueInfoProxyV2;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createVenueInfoProxy = exports.VenueInfoProxy = void 0;
|
|
4
|
+
class VenueInfoProxy {
|
|
5
|
+
}
|
|
6
|
+
exports.VenueInfoProxy = VenueInfoProxy;
|
|
7
|
+
class VenueInfoProxyV1 extends VenueInfoProxy {
|
|
8
|
+
constructor(orderVenueInfo) {
|
|
9
|
+
super();
|
|
10
|
+
this.orderVenueInfo = orderVenueInfo;
|
|
11
|
+
}
|
|
12
|
+
get raw() { return this.orderVenueInfo; }
|
|
13
|
+
get id() { return this.orderVenueInfo._id; }
|
|
14
|
+
get name() { return this.orderVenueInfo.name; }
|
|
15
|
+
}
|
|
16
|
+
class VenueInfoProxyV2 extends VenueInfoProxy {
|
|
17
|
+
constructor(orderVenueInfo) {
|
|
18
|
+
super();
|
|
19
|
+
this.orderVenueInfo = orderVenueInfo;
|
|
20
|
+
}
|
|
21
|
+
get raw() { return this.orderVenueInfo; }
|
|
22
|
+
get id() { return this.orderVenueInfo.id; }
|
|
23
|
+
get name() { return this.orderVenueInfo.venueInfo.name; }
|
|
24
|
+
}
|
|
25
|
+
function createVenueInfoProxy(orderVenueInfo, version) {
|
|
26
|
+
if (version === 'V2')
|
|
27
|
+
return new VenueInfoProxyV2(orderVenueInfo);
|
|
28
|
+
return new VenueInfoProxyV1(orderVenueInfo);
|
|
29
|
+
}
|
|
30
|
+
exports.createVenueInfoProxy = createVenueInfoProxy;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# This is a workflow to help you run all JMeter scripts with Actions
|
|
2
|
-
|
|
3
|
-
name: jmeter
|
|
4
|
-
|
|
5
|
-
# Controls when the workflow will run
|
|
6
|
-
on:
|
|
7
|
-
# Triggers the workflow on push or pull request events but only for the main branch
|
|
8
|
-
push:
|
|
9
|
-
branches: [master, feature-jm]
|
|
10
|
-
|
|
11
|
-
# Allows you to run this workflow manually from the Actions tab
|
|
12
|
-
workflow_dispatch:
|
|
13
|
-
|
|
14
|
-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
15
|
-
jobs:
|
|
16
|
-
# This workflow contains a single job called "build"
|
|
17
|
-
build:
|
|
18
|
-
# The type of runner that the job will run on
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
permissions:
|
|
21
|
-
contents: read
|
|
22
|
-
packages: write
|
|
23
|
-
|
|
24
|
-
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
25
|
-
steps:
|
|
26
|
-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
27
|
-
- uses: actions/checkout@v2
|
|
28
|
-
- name: Install zip
|
|
29
|
-
run: |
|
|
30
|
-
sudo apt-get install zip
|
|
31
|
-
|
|
32
|
-
- name: where are the files?
|
|
33
|
-
run: |
|
|
34
|
-
pwd
|
|
35
|
-
ls
|
|
36
|
-
|
|
37
|
-
- name: Create reports directory
|
|
38
|
-
run: |
|
|
39
|
-
mkdir reports
|
|
40
|
-
|
|
41
|
-
- name: JMeter Test
|
|
42
|
-
uses: QAInsights/PerfAction@v5.6.2
|
|
43
|
-
with:
|
|
44
|
-
test-plan-path: ceshi.jmx
|
|
45
|
-
args: "-e -o ./reports/html/"
|
|
46
|
-
|
|
47
|
-
- name: Upload Results
|
|
48
|
-
uses: actions/upload-artifact@v3
|
|
49
|
-
with:
|
|
50
|
-
name: jmeter-results
|
|
51
|
-
path: result.jtl
|
|
52
|
-
if-no-files-found: error
|
|
53
|
-
|
|
54
|
-
- name: Upload HTML Reports
|
|
55
|
-
uses: actions/upload-artifact@v3
|
|
56
|
-
with:
|
|
57
|
-
name: jmeter-html-reports
|
|
58
|
-
path: reports
|
|
59
|
-
if-no-files-found: error
|
|
60
|
-
|
|
61
|
-
- name: Download Artifact
|
|
62
|
-
uses: actions/download-artifact@v3
|
|
63
|
-
with:
|
|
64
|
-
name: jmeter-html-reports
|
|
65
|
-
path: ./download
|
|
66
|
-
|
|
67
|
-
- name: Create ZIP
|
|
68
|
-
run: |
|
|
69
|
-
cd ./download/
|
|
70
|
-
pwd
|
|
71
|
-
ls
|
|
72
|
-
zip -r jmeter-html-reports.zip html
|
|
73
|
-
chmod 777 jmeter-html-reports.zip
|
|
74
|
-
|
|
75
|
-
- name: Upload ZIP Artifact
|
|
76
|
-
uses: actions/upload-artifact@v3
|
|
77
|
-
with:
|
|
78
|
-
name: jmeter-html-reports.zip
|
|
79
|
-
path: ./download/jmeter-html-reports.zip
|
|
80
|
-
|
|
81
|
-
- name: Send email with test report
|
|
82
|
-
uses: dawidd6/action-send-mail@v2
|
|
83
|
-
with:
|
|
84
|
-
server_address: smtp.qq.com
|
|
85
|
-
server_port: 465
|
|
86
|
-
username: 3373930160@qq.com
|
|
87
|
-
password: yrwajecvfrgidahh
|
|
88
|
-
subject: JMeter Test Report,zip版本
|
|
89
|
-
body: Please find attached the JMeter test report.
|
|
90
|
-
to: 3373930160@qq.com,duduzi0520@gmail.com
|
|
91
|
-
from: 3373930160@qq.com
|
|
92
|
-
attachments: ./download/jmeter-html-reports.zip
|
package/.husky/commit-msg
DELETED
package/.versionrc
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"header":"# 更新日志 \n\n",
|
|
3
|
-
"types": [
|
|
4
|
-
{"type": "feat", "section": "✨ Features | 新功能"},
|
|
5
|
-
{"type": "fix", "section": "🐛 Bug Fixes | Bug 修复"},
|
|
6
|
-
{"type": "perf", "section":"⚡ Performance Improvements | 性能优化"},
|
|
7
|
-
{"type": "revert", "section":"⏪ Reverts | 回退"},
|
|
8
|
-
{"type": "chore", "section":"📦 Chores | 其他更新"},
|
|
9
|
-
{"type": "docs", "section":"📝 Documentation | 文档"},
|
|
10
|
-
{"type": "style", "section":"💄 Styles | 风格", "hidden": true},
|
|
11
|
-
{"type": "refactor", "section":"♻ Code Refactoring | 代码重构"},
|
|
12
|
-
{"type": "test", "section":"✅ Tests | 测试"},
|
|
13
|
-
{"type": "build", "section":"👷 Build System | 构建"},
|
|
14
|
-
{"type": "ci", "section":"🔧 Continuous Integration | CI 配置"}
|
|
15
|
-
],
|
|
16
|
-
"skip": {
|
|
17
|
-
"bump": false,
|
|
18
|
-
"changelog": false,
|
|
19
|
-
"commit": false,
|
|
20
|
-
"tag": false
|
|
21
|
-
}
|
|
22
|
-
}
|