@etsoo/smarterp-core 1.1.64 → 1.1.66
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/__tests__/OrgApi.ts +9 -9
- package/lib/cjs/CoreApp.d.ts +16 -5
- package/lib/cjs/CoreApp.js +10 -1
- package/lib/cjs/OrgApi.d.ts +0 -9
- package/lib/cjs/OrgApi.js +0 -9
- package/lib/cjs/PublicApi.d.ts +1 -2
- package/lib/cjs/PublicApi.js +2 -3
- package/lib/cjs/ReportApi.d.ts +62 -0
- package/lib/cjs/ReportApi.js +68 -0
- package/lib/cjs/dto/report/OrderDailyReportData.d.ts +26 -0
- package/lib/cjs/dto/report/OrderDailyReportQueryData.d.ts +56 -0
- package/lib/cjs/dto/report/OrderMonthlyReportData.d.ts +26 -0
- package/lib/cjs/dto/report/OrderMonthlyReportData.js +2 -0
- package/lib/cjs/dto/report/OrderMonthlyReportQueryData.d.ts +56 -0
- package/lib/cjs/dto/report/OrderMonthlyReportQueryData.js +2 -0
- package/lib/cjs/dto/report/PeriodReportData.d.ts +16 -0
- package/lib/cjs/dto/report/PeriodReportData.js +2 -0
- package/lib/cjs/dto/report/TitleReportData.d.ts +16 -0
- package/lib/cjs/dto/report/TitleReportData.js +2 -0
- package/lib/cjs/index.d.ts +11 -2
- package/lib/cjs/index.js +17 -2
- package/lib/cjs/rq/report/OrderDailyReportQueryRQ.d.ts +22 -0
- package/lib/cjs/rq/report/OrderDailyReportQueryRQ.js +2 -0
- package/lib/cjs/rq/report/OrderDailyReportRQ.d.ts +22 -0
- package/lib/cjs/rq/report/OrderDailyReportRQ.js +2 -0
- package/lib/cjs/rq/report/OrderMonthlyReportQueryRQ.d.ts +22 -0
- package/lib/cjs/rq/report/OrderMonthlyReportQueryRQ.js +2 -0
- package/lib/cjs/rq/report/OrderMonthlyReportRQ.d.ts +22 -0
- package/lib/cjs/rq/report/OrderMonthlyReportRQ.js +2 -0
- package/lib/cjs/rq/report/OrgUsageReportRQ.js +2 -0
- package/lib/mjs/CoreApp.d.ts +16 -5
- package/lib/mjs/CoreApp.js +10 -1
- package/lib/mjs/OrgApi.d.ts +0 -9
- package/lib/mjs/OrgApi.js +0 -9
- package/lib/mjs/PublicApi.d.ts +1 -2
- package/lib/mjs/PublicApi.js +2 -3
- package/lib/mjs/ReportApi.d.ts +62 -0
- package/lib/mjs/ReportApi.js +64 -0
- package/lib/mjs/dto/report/OrderDailyReportData.d.ts +26 -0
- package/lib/mjs/dto/report/OrderDailyReportQueryData.d.ts +56 -0
- package/lib/mjs/dto/report/OrderMonthlyReportData.d.ts +26 -0
- package/lib/mjs/dto/report/OrderMonthlyReportData.js +1 -0
- package/lib/mjs/dto/report/OrderMonthlyReportQueryData.d.ts +56 -0
- package/lib/mjs/dto/report/OrderMonthlyReportQueryData.js +1 -0
- package/lib/mjs/dto/report/PeriodReportData.d.ts +16 -0
- package/lib/mjs/dto/report/PeriodReportData.js +1 -0
- package/lib/mjs/dto/report/TitleReportData.d.ts +16 -0
- package/lib/mjs/dto/report/TitleReportData.js +1 -0
- package/lib/mjs/index.d.ts +11 -2
- package/lib/mjs/index.js +17 -2
- package/lib/mjs/rq/report/OrderDailyReportQueryRQ.d.ts +22 -0
- package/lib/mjs/rq/report/OrderDailyReportQueryRQ.js +1 -0
- package/lib/mjs/rq/report/OrderDailyReportRQ.d.ts +22 -0
- package/lib/mjs/rq/report/OrderDailyReportRQ.js +1 -0
- package/lib/mjs/rq/report/OrderMonthlyReportQueryRQ.d.ts +22 -0
- package/lib/mjs/rq/report/OrderMonthlyReportQueryRQ.js +1 -0
- package/lib/mjs/rq/report/OrderMonthlyReportRQ.d.ts +22 -0
- package/lib/mjs/rq/report/OrderMonthlyReportRQ.js +1 -0
- package/lib/mjs/rq/report/OrgUsageReportRQ.js +1 -0
- package/package.json +1 -1
- package/src/CoreApp.ts +21 -6
- package/src/OrgApi.ts +0 -12
- package/src/PublicApi.ts +2 -11
- package/src/ReportApi.ts +92 -0
- package/src/dto/report/OrderDailyReportData.ts +29 -0
- package/src/dto/report/OrderDailyReportQueryData.ts +65 -0
- package/src/dto/report/OrderMonthlyReportData.ts +29 -0
- package/src/dto/report/OrderMonthlyReportQueryData.ts +65 -0
- package/src/dto/report/PeriodReportData.ts +17 -0
- package/src/dto/report/TitleReportData.ts +17 -0
- package/src/index.ts +19 -2
- package/src/rq/report/OrderDailyReportQueryRQ.ts +25 -0
- package/src/rq/report/OrderDailyReportRQ.ts +25 -0
- package/src/rq/report/OrderMonthlyReportQueryRQ.ts +25 -0
- package/src/rq/report/OrderMonthlyReportRQ.ts +25 -0
- package/lib/cjs/dto/org/OrgReportData.d.ts +0 -38
- package/lib/mjs/dto/org/OrgReportData.d.ts +0 -38
- package/src/dto/org/OrgReportData.ts +0 -41
- /package/lib/cjs/dto/{org/OrgReportData.js → report/OrderDailyReportData.js} +0 -0
- /package/lib/cjs/{rq/org/OrgUsageReportRQ.js → dto/report/OrderDailyReportQueryData.js} +0 -0
- /package/lib/cjs/rq/{org → report}/OrgUsageReportRQ.d.ts +0 -0
- /package/lib/mjs/dto/{org/OrgReportData.js → report/OrderDailyReportData.js} +0 -0
- /package/lib/mjs/{rq/org/OrgUsageReportRQ.js → dto/report/OrderDailyReportQueryData.js} +0 -0
- /package/lib/mjs/rq/{org → report}/OrgUsageReportRQ.d.ts +0 -0
- /package/src/rq/{org → report}/OrgUsageReportRQ.ts +0 -0
package/src/index.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from "./dto/member/MemberQueryDto";
|
|
|
19
19
|
export * from "./dto/member/MemberReadDto";
|
|
20
20
|
export * from "./dto/member/MemberUpdateReadDto";
|
|
21
21
|
|
|
22
|
+
// Org
|
|
22
23
|
export * from "./dto/org/CoreApiService";
|
|
23
24
|
export * from "./dto/org/OrgDownloadKind";
|
|
24
25
|
export * from "./dto/org/OrgGetMyData";
|
|
@@ -27,12 +28,12 @@ export * from "./dto/org/OrgQueryApiData";
|
|
|
27
28
|
export * from "./dto/org/OrgQueryDto";
|
|
28
29
|
export * from "./dto/org/OrgQueryResourceData";
|
|
29
30
|
export * from "./dto/org/OrgReadDto";
|
|
30
|
-
export * from "./dto/org/OrgReportData";
|
|
31
31
|
export * from "./dto/org/OrgResourceItem";
|
|
32
32
|
export * from "./dto/org/OrgUpdateApiReadDto";
|
|
33
33
|
export * from "./dto/org/OrgUpdateReadDto";
|
|
34
34
|
export * from "./dto/org/OrgUpdateResourceReadData";
|
|
35
35
|
|
|
36
|
+
// Public
|
|
36
37
|
export * from "./dto/public/AvatarState";
|
|
37
38
|
export * from "./dto/public/ChinaPinData";
|
|
38
39
|
export * from "./dto/public/CurrencyItem";
|
|
@@ -47,6 +48,14 @@ export * from "./dto/user/DeviceListDto";
|
|
|
47
48
|
export * from "./dto/user/UserIdentifierData";
|
|
48
49
|
export * from "./dto/user/UserUpdateReadDto";
|
|
49
50
|
|
|
51
|
+
// Report
|
|
52
|
+
export * from "./dto/report/OrderDailyReportData";
|
|
53
|
+
export * from "./dto/report/OrderDailyReportQueryData";
|
|
54
|
+
export * from "./dto/report/OrderMonthlyReportData";
|
|
55
|
+
export * from "./dto/report/OrderMonthlyReportQueryData";
|
|
56
|
+
export * from "./dto/report/PeriodReportData";
|
|
57
|
+
export * from "./dto/report/TitleReportData";
|
|
58
|
+
|
|
50
59
|
// i18n
|
|
51
60
|
export * from "./i18n/CoreCulture";
|
|
52
61
|
|
|
@@ -76,6 +85,7 @@ export * from "./rq/member/MemberListRQ";
|
|
|
76
85
|
export * from "./rq/member/MemberQueryRQ";
|
|
77
86
|
export * from "./rq/member/MemberUpdateRQ";
|
|
78
87
|
|
|
88
|
+
// Org
|
|
79
89
|
export * from "./rq/org/OrgCreateApiRQ";
|
|
80
90
|
export * from "./rq/org/OrgCreateResourceRQ";
|
|
81
91
|
export * from "./rq/org/OrgCreateRQ";
|
|
@@ -86,12 +96,12 @@ export * from "./rq/org/OrgQueryApiRQ";
|
|
|
86
96
|
export * from "./rq/org/OrgQueryResourceRQ";
|
|
87
97
|
export * from "./rq/org/OrgQueryRQ";
|
|
88
98
|
export * from "./rq/org/OrgUpdateApiRQ";
|
|
89
|
-
export * from "./rq/org/OrgUsageReportRQ";
|
|
90
99
|
export * from "./rq/org/OrgUpdateRQ";
|
|
91
100
|
export * from "./rq/org/SendEmailMessage";
|
|
92
101
|
export * from "./rq/org/SendProfileEmailRQ";
|
|
93
102
|
export * from "./rq/org/SendSMSMessage";
|
|
94
103
|
|
|
104
|
+
// Public
|
|
95
105
|
export * from "./rq/public/AcceptInvitationRQ";
|
|
96
106
|
export * from "./rq/public/CreateBarcodeRQ";
|
|
97
107
|
export * from "./rq/public/ParseNameRQ";
|
|
@@ -102,6 +112,13 @@ export * from "./rq/public/TimeZoneRQ";
|
|
|
102
112
|
export * from "./rq/user/AuditHistoryRQ";
|
|
103
113
|
export * from "./rq/user/UserUpdateRQ";
|
|
104
114
|
|
|
115
|
+
// Report
|
|
116
|
+
export * from "./rq/report/OrderDailyReportQueryRQ";
|
|
117
|
+
export * from "./rq/report/OrderDailyReportRQ";
|
|
118
|
+
export * from "./rq/report/OrderMonthlyReportQueryRQ";
|
|
119
|
+
export * from "./rq/report/OrderMonthlyReportRQ";
|
|
120
|
+
export * from "./rq/report/OrgUsageReportRQ";
|
|
121
|
+
|
|
105
122
|
// APIs
|
|
106
123
|
export * from "./AppApi";
|
|
107
124
|
export * from "./AuthCodeApi";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AppActionData, QueryRQ } from "@etsoo/appscript";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Order daily report query request
|
|
5
|
+
* 订单日报表查询请求
|
|
6
|
+
*/
|
|
7
|
+
export type OrderDailyReportQueryRQ = QueryRQ & {
|
|
8
|
+
/**
|
|
9
|
+
* Action signed data
|
|
10
|
+
* 操作签名数据
|
|
11
|
+
*/
|
|
12
|
+
action: AppActionData;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Start date
|
|
16
|
+
* 开始日期
|
|
17
|
+
*/
|
|
18
|
+
startDate?: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* End date
|
|
22
|
+
* 结束日期
|
|
23
|
+
*/
|
|
24
|
+
endDate?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AppActionData } from "@etsoo/appscript";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Order daily report request data
|
|
5
|
+
* 订单日报表请求数据
|
|
6
|
+
*/
|
|
7
|
+
export type OrderDailyReportRQ = {
|
|
8
|
+
/**
|
|
9
|
+
* Action signed data
|
|
10
|
+
* 操作签名数据
|
|
11
|
+
*/
|
|
12
|
+
Action: AppActionData;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Start date
|
|
16
|
+
* 开始日期
|
|
17
|
+
*/
|
|
18
|
+
StartDate?: string; // DateOnly maps to string (ISO format: YYYY-MM-DD)
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Days to cover
|
|
22
|
+
* 覆盖的天数
|
|
23
|
+
*/
|
|
24
|
+
Days?: number;
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AppActionData, QueryRQ } from "@etsoo/appscript";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Order monthly report query request data
|
|
5
|
+
* 订单月报表查询请求数据
|
|
6
|
+
*/
|
|
7
|
+
export type OrderMonthlyReportQueryRQ = QueryRQ & {
|
|
8
|
+
/**
|
|
9
|
+
* Action signed data
|
|
10
|
+
* 操作签名数据
|
|
11
|
+
*/
|
|
12
|
+
action: AppActionData;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Start date
|
|
16
|
+
* 开始日期
|
|
17
|
+
*/
|
|
18
|
+
startDate?: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* End date
|
|
22
|
+
* 结束日期
|
|
23
|
+
*/
|
|
24
|
+
endDate?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AppActionData } from "@etsoo/appscript";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Order monthly report request data
|
|
5
|
+
* 订单月报表请求数据
|
|
6
|
+
*/
|
|
7
|
+
export type OrderMonthlyReportRQ = {
|
|
8
|
+
/**
|
|
9
|
+
* Action signed data
|
|
10
|
+
* 操作签名数据
|
|
11
|
+
*/
|
|
12
|
+
Action: AppActionData;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Year
|
|
16
|
+
* 年
|
|
17
|
+
*/
|
|
18
|
+
Year?: number;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Whether to include last year data
|
|
22
|
+
* 是否包含去年数据
|
|
23
|
+
*/
|
|
24
|
+
HasLastYear?: boolean;
|
|
25
|
+
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Organization usage report data
|
|
3
|
-
* 机构使用报告数据
|
|
4
|
-
*/
|
|
5
|
-
type OrgUsageReportData = {
|
|
6
|
-
/**
|
|
7
|
-
* Period
|
|
8
|
-
* 周期
|
|
9
|
-
*/
|
|
10
|
-
period: number;
|
|
11
|
-
/**
|
|
12
|
-
* Qty.
|
|
13
|
-
* 数量
|
|
14
|
-
*/
|
|
15
|
-
qty: number;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Organization amount report data
|
|
19
|
-
* 机构金额报告数据
|
|
20
|
-
*/
|
|
21
|
-
type OrgAmountReportData = {
|
|
22
|
-
/**
|
|
23
|
-
* Period
|
|
24
|
-
* 周期
|
|
25
|
-
*/
|
|
26
|
-
period: number;
|
|
27
|
-
/**
|
|
28
|
-
* Amount
|
|
29
|
-
* 金额
|
|
30
|
-
*/
|
|
31
|
-
amount: number;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Organization report data
|
|
35
|
-
* 机构报告数据
|
|
36
|
-
*/
|
|
37
|
-
export type OrgReportData = OrgUsageReportData | OrgAmountReportData;
|
|
38
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Organization usage report data
|
|
3
|
-
* 机构使用报告数据
|
|
4
|
-
*/
|
|
5
|
-
type OrgUsageReportData = {
|
|
6
|
-
/**
|
|
7
|
-
* Period
|
|
8
|
-
* 周期
|
|
9
|
-
*/
|
|
10
|
-
period: number;
|
|
11
|
-
/**
|
|
12
|
-
* Qty.
|
|
13
|
-
* 数量
|
|
14
|
-
*/
|
|
15
|
-
qty: number;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Organization amount report data
|
|
19
|
-
* 机构金额报告数据
|
|
20
|
-
*/
|
|
21
|
-
type OrgAmountReportData = {
|
|
22
|
-
/**
|
|
23
|
-
* Period
|
|
24
|
-
* 周期
|
|
25
|
-
*/
|
|
26
|
-
period: number;
|
|
27
|
-
/**
|
|
28
|
-
* Amount
|
|
29
|
-
* 金额
|
|
30
|
-
*/
|
|
31
|
-
amount: number;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Organization report data
|
|
35
|
-
* 机构报告数据
|
|
36
|
-
*/
|
|
37
|
-
export type OrgReportData = OrgUsageReportData | OrgAmountReportData;
|
|
38
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Organization usage report data
|
|
3
|
-
* 机构使用报告数据
|
|
4
|
-
*/
|
|
5
|
-
type OrgUsageReportData = {
|
|
6
|
-
/**
|
|
7
|
-
* Period
|
|
8
|
-
* 周期
|
|
9
|
-
*/
|
|
10
|
-
period: number;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Qty.
|
|
14
|
-
* 数量
|
|
15
|
-
*/
|
|
16
|
-
qty: number;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Organization amount report data
|
|
21
|
-
* 机构金额报告数据
|
|
22
|
-
*/
|
|
23
|
-
type OrgAmountReportData = {
|
|
24
|
-
/**
|
|
25
|
-
* Period
|
|
26
|
-
* 周期
|
|
27
|
-
*/
|
|
28
|
-
period: number;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Amount
|
|
32
|
-
* 金额
|
|
33
|
-
*/
|
|
34
|
-
amount: number;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Organization report data
|
|
39
|
-
* 机构报告数据
|
|
40
|
-
*/
|
|
41
|
-
export type OrgReportData = OrgUsageReportData | OrgAmountReportData;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|