@etsoo/smarterp-core 1.1.65 → 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.
Files changed (80) hide show
  1. package/__tests__/OrgApi.ts +9 -9
  2. package/lib/cjs/CoreApp.d.ts +16 -5
  3. package/lib/cjs/CoreApp.js +10 -1
  4. package/lib/cjs/OrgApi.d.ts +0 -9
  5. package/lib/cjs/OrgApi.js +0 -9
  6. package/lib/cjs/ReportApi.d.ts +62 -0
  7. package/lib/cjs/ReportApi.js +68 -0
  8. package/lib/cjs/dto/report/OrderDailyReportData.d.ts +26 -0
  9. package/lib/cjs/dto/report/OrderDailyReportQueryData.d.ts +56 -0
  10. package/lib/cjs/dto/report/OrderMonthlyReportData.d.ts +26 -0
  11. package/lib/cjs/dto/report/OrderMonthlyReportData.js +2 -0
  12. package/lib/cjs/dto/report/OrderMonthlyReportQueryData.d.ts +56 -0
  13. package/lib/cjs/dto/report/OrderMonthlyReportQueryData.js +2 -0
  14. package/lib/cjs/dto/report/PeriodReportData.d.ts +16 -0
  15. package/lib/cjs/dto/report/PeriodReportData.js +2 -0
  16. package/lib/cjs/dto/report/TitleReportData.d.ts +16 -0
  17. package/lib/cjs/dto/report/TitleReportData.js +2 -0
  18. package/lib/cjs/index.d.ts +11 -2
  19. package/lib/cjs/index.js +17 -2
  20. package/lib/cjs/rq/report/OrderDailyReportQueryRQ.d.ts +22 -0
  21. package/lib/cjs/rq/report/OrderDailyReportQueryRQ.js +2 -0
  22. package/lib/cjs/rq/report/OrderDailyReportRQ.d.ts +22 -0
  23. package/lib/cjs/rq/report/OrderDailyReportRQ.js +2 -0
  24. package/lib/cjs/rq/report/OrderMonthlyReportQueryRQ.d.ts +22 -0
  25. package/lib/cjs/rq/report/OrderMonthlyReportQueryRQ.js +2 -0
  26. package/lib/cjs/rq/report/OrderMonthlyReportRQ.d.ts +22 -0
  27. package/lib/cjs/rq/report/OrderMonthlyReportRQ.js +2 -0
  28. package/lib/cjs/rq/report/OrgUsageReportRQ.js +2 -0
  29. package/lib/mjs/CoreApp.d.ts +16 -5
  30. package/lib/mjs/CoreApp.js +10 -1
  31. package/lib/mjs/OrgApi.d.ts +0 -9
  32. package/lib/mjs/OrgApi.js +0 -9
  33. package/lib/mjs/ReportApi.d.ts +62 -0
  34. package/lib/mjs/ReportApi.js +64 -0
  35. package/lib/mjs/dto/report/OrderDailyReportData.d.ts +26 -0
  36. package/lib/mjs/dto/report/OrderDailyReportQueryData.d.ts +56 -0
  37. package/lib/mjs/dto/report/OrderMonthlyReportData.d.ts +26 -0
  38. package/lib/mjs/dto/report/OrderMonthlyReportData.js +1 -0
  39. package/lib/mjs/dto/report/OrderMonthlyReportQueryData.d.ts +56 -0
  40. package/lib/mjs/dto/report/OrderMonthlyReportQueryData.js +1 -0
  41. package/lib/mjs/dto/report/PeriodReportData.d.ts +16 -0
  42. package/lib/mjs/dto/report/PeriodReportData.js +1 -0
  43. package/lib/mjs/dto/report/TitleReportData.d.ts +16 -0
  44. package/lib/mjs/dto/report/TitleReportData.js +1 -0
  45. package/lib/mjs/index.d.ts +11 -2
  46. package/lib/mjs/index.js +17 -2
  47. package/lib/mjs/rq/report/OrderDailyReportQueryRQ.d.ts +22 -0
  48. package/lib/mjs/rq/report/OrderDailyReportQueryRQ.js +1 -0
  49. package/lib/mjs/rq/report/OrderDailyReportRQ.d.ts +22 -0
  50. package/lib/mjs/rq/report/OrderDailyReportRQ.js +1 -0
  51. package/lib/mjs/rq/report/OrderMonthlyReportQueryRQ.d.ts +22 -0
  52. package/lib/mjs/rq/report/OrderMonthlyReportQueryRQ.js +1 -0
  53. package/lib/mjs/rq/report/OrderMonthlyReportRQ.d.ts +22 -0
  54. package/lib/mjs/rq/report/OrderMonthlyReportRQ.js +1 -0
  55. package/lib/mjs/rq/report/OrgUsageReportRQ.js +1 -0
  56. package/package.json +1 -1
  57. package/src/CoreApp.ts +21 -6
  58. package/src/OrgApi.ts +0 -12
  59. package/src/ReportApi.ts +92 -0
  60. package/src/dto/report/OrderDailyReportData.ts +29 -0
  61. package/src/dto/report/OrderDailyReportQueryData.ts +65 -0
  62. package/src/dto/report/OrderMonthlyReportData.ts +29 -0
  63. package/src/dto/report/OrderMonthlyReportQueryData.ts +65 -0
  64. package/src/dto/report/PeriodReportData.ts +17 -0
  65. package/src/dto/report/TitleReportData.ts +17 -0
  66. package/src/index.ts +19 -2
  67. package/src/rq/report/OrderDailyReportQueryRQ.ts +25 -0
  68. package/src/rq/report/OrderDailyReportRQ.ts +25 -0
  69. package/src/rq/report/OrderMonthlyReportQueryRQ.ts +25 -0
  70. package/src/rq/report/OrderMonthlyReportRQ.ts +25 -0
  71. package/lib/cjs/dto/org/OrgReportData.d.ts +0 -38
  72. package/lib/mjs/dto/org/OrgReportData.d.ts +0 -38
  73. package/src/dto/org/OrgReportData.ts +0 -41
  74. /package/lib/cjs/dto/{org/OrgReportData.js → report/OrderDailyReportData.js} +0 -0
  75. /package/lib/cjs/{rq/org/OrgUsageReportRQ.js → dto/report/OrderDailyReportQueryData.js} +0 -0
  76. /package/lib/cjs/rq/{org → report}/OrgUsageReportRQ.d.ts +0 -0
  77. /package/lib/mjs/dto/{org/OrgReportData.js → report/OrderDailyReportData.js} +0 -0
  78. /package/lib/mjs/{rq/org/OrgUsageReportRQ.js → dto/report/OrderDailyReportQueryData.js} +0 -0
  79. /package/lib/mjs/rq/{org → report}/OrgUsageReportRQ.d.ts +0 -0
  80. /package/src/rq/{org → report}/OrgUsageReportRQ.ts +0 -0
@@ -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