@etsoo/smarterp-core 1.0.44 → 1.0.46

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 (52) hide show
  1. package/lib/cjs/CoreApp.d.ts +31 -1
  2. package/lib/cjs/CoreApp.js +28 -0
  3. package/lib/cjs/MemberApi.d.ts +3 -3
  4. package/lib/cjs/OrgApi.d.ts +27 -2
  5. package/lib/cjs/OrgApi.js +29 -0
  6. package/lib/cjs/PublicApi.d.ts +8 -0
  7. package/lib/cjs/PublicApi.js +9 -0
  8. package/lib/cjs/UserApi.d.ts +2 -2
  9. package/lib/cjs/dto/public/ChinaPinData.d.ts +31 -0
  10. package/lib/cjs/dto/public/ChinaPinData.js +2 -0
  11. package/lib/cjs/i18n/en.json +3 -1
  12. package/lib/cjs/i18n/zh-Hans.json +3 -1
  13. package/lib/cjs/i18n/zh-Hant.json +3 -1
  14. package/lib/cjs/index.d.ts +3 -0
  15. package/lib/cjs/index.js +3 -0
  16. package/lib/cjs/rq/org/SendEmailMessage.d.ts +59 -0
  17. package/lib/cjs/rq/org/SendEmailMessage.js +23 -0
  18. package/lib/cjs/rq/org/SendSMSMessage.d.ts +36 -0
  19. package/lib/cjs/rq/org/SendSMSMessage.js +2 -0
  20. package/lib/mjs/CoreApp.d.ts +31 -1
  21. package/lib/mjs/CoreApp.js +29 -1
  22. package/lib/mjs/MemberApi.d.ts +3 -3
  23. package/lib/mjs/OrgApi.d.ts +27 -2
  24. package/lib/mjs/OrgApi.js +29 -0
  25. package/lib/mjs/PublicApi.d.ts +8 -0
  26. package/lib/mjs/PublicApi.js +9 -0
  27. package/lib/mjs/UserApi.d.ts +2 -2
  28. package/lib/mjs/dto/public/ChinaPinData.d.ts +31 -0
  29. package/lib/mjs/dto/public/ChinaPinData.js +1 -0
  30. package/lib/mjs/i18n/en.json +3 -1
  31. package/lib/mjs/i18n/zh-Hans.json +3 -1
  32. package/lib/mjs/i18n/zh-Hant.json +3 -1
  33. package/lib/mjs/index.d.ts +3 -0
  34. package/lib/mjs/index.js +3 -0
  35. package/lib/mjs/rq/org/SendEmailMessage.d.ts +59 -0
  36. package/lib/mjs/rq/org/SendEmailMessage.js +20 -0
  37. package/lib/mjs/rq/org/SendSMSMessage.d.ts +36 -0
  38. package/lib/mjs/rq/org/SendSMSMessage.js +1 -0
  39. package/package.json +6 -6
  40. package/src/CoreApp.ts +53 -0
  41. package/src/MemberApi.ts +4 -4
  42. package/src/OrgApi.ts +37 -3
  43. package/src/PublicApi.ts +11 -0
  44. package/src/UserApi.ts +3 -3
  45. package/src/dto/public/ChinaPinData.ts +35 -0
  46. package/src/i18n/en.json +3 -1
  47. package/src/i18n/zh-Hans.json +3 -1
  48. package/src/i18n/zh-Hant.json +3 -1
  49. package/src/index.ts +3 -0
  50. package/src/rq/org/SendEmailMessage.ts +67 -0
  51. package/src/rq/org/SendSMSMessage.ts +41 -0
  52. package/vite.config.mts +5 -0
@@ -0,0 +1,35 @@
1
+ /**
2
+ * China Pin Data
3
+ * 中国身份证数据
4
+ */
5
+ export type ChinaPinData = {
6
+ /**
7
+ * State num id
8
+ * 州省数字编号
9
+ */
10
+ stateNum: string;
11
+
12
+ /**
13
+ * City num id
14
+ * 城市数字编号
15
+ */
16
+ cityNum: string;
17
+
18
+ /**
19
+ * District number id
20
+ * 区县数字编号
21
+ */
22
+ districtNum: string;
23
+
24
+ /**
25
+ * Birthday
26
+ * 出生日期
27
+ */
28
+ birthday: string | Date;
29
+
30
+ /**
31
+ * Is female
32
+ * 是否为女性
33
+ */
34
+ isFemale: boolean;
35
+ };
package/src/i18n/en.json CHANGED
@@ -27,9 +27,11 @@
27
27
  "expandNavMenuAriaLabel": "Expand navigation menu",
28
28
  "fileName": "File name",
29
29
  "fullName": "Full name",
30
+ "idContact": "Contact",
30
31
  "idCustomer": "Customer",
32
+ "idOrg": "Organization",
31
33
  "idSupplier": "Supplier",
32
- "idUser": "User/Org.",
34
+ "idUser": "User",
33
35
  "identifier": "Identifier",
34
36
  "identityType": "Identity type",
35
37
  "inviteMember": "Invite member",
@@ -27,9 +27,11 @@
27
27
  "expandNavMenuAriaLabel": "展开导航菜单",
28
28
  "fileName": "文件名",
29
29
  "fullName": "全称",
30
+ "idContact": "联系人",
30
31
  "idCustomer": "客户",
32
+ "idOrg": "机构",
31
33
  "idSupplier": "供应商",
32
- "idUser": "用户/机构",
34
+ "idUser": "用户",
33
35
  "identifier": "标识",
34
36
  "identityType": "对象身份",
35
37
  "inviteMember": "邀请成员",
@@ -30,9 +30,11 @@
30
30
  "latinFamilyName": "姓氏(拼音)",
31
31
  "latinGivenName": "名(拼音)",
32
32
  "lightMode": "淺色模式",
33
+ "idContact": "聯絡人",
33
34
  "idCustomer": "客戶",
35
+ "idOrg": "機構",
34
36
  "idSupplier": "供應商",
35
- "idUser": "使用者/機構",
37
+ "idUser": "用户",
36
38
  "identifier": "標識",
37
39
  "identityType": "對象身份",
38
40
  "inviteMember": "邀請成員",
package/src/index.ts CHANGED
@@ -21,6 +21,7 @@ export * from "./dto/org/OrgQueryDto";
21
21
  export * from "./dto/org/OrgReadDto";
22
22
  export * from "./dto/org/OrgUpdateReadDto";
23
23
 
24
+ export * from "./dto/public/ChinaPinData";
24
25
  export * from "./dto/public/CurrencyItem";
25
26
  export * from "./dto/public/MemberInvitationDto";
26
27
  export * from "./dto/public/PlaceCommon";
@@ -60,6 +61,8 @@ export * from "./rq/org/OrgGetMyRQ";
60
61
  export * from "./rq/org/OrgListRQ";
61
62
  export * from "./rq/org/OrgQueryRQ";
62
63
  export * from "./rq/org/OrgUpdateRQ";
64
+ export * from "./rq/org/SendEmailMessage";
65
+ export * from "./rq/org/SendSMSMessage";
63
66
 
64
67
  export * from "./rq/public/AcceptInvitationRQ";
65
68
  export * from "./rq/public/CreateBarcodeRQ";
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Email importance
3
+ * 邮件重要性
4
+ */
5
+ export enum EmailImportance {
6
+ Low = "Low",
7
+ Normal = "Normal",
8
+ High = "High"
9
+ }
10
+
11
+ /**
12
+ * Email priority
13
+ * 邮件优先级
14
+ */
15
+ export enum EmailPriority {
16
+ NonUrgent = "NonUrgent",
17
+ Normal = "Normal",
18
+ Urgent = "Urgent"
19
+ }
20
+
21
+ /**
22
+ * Send email message
23
+ * 发送邮件消息
24
+ */
25
+ export type SendEmailMessage = {
26
+ /**
27
+ * Subject
28
+ * 主题
29
+ */
30
+ subject: string;
31
+
32
+ /**
33
+ * Body
34
+ * 内容
35
+ */
36
+ body: string;
37
+
38
+ /**
39
+ * Recipients
40
+ * 收件人
41
+ */
42
+ to: string[];
43
+
44
+ /**
45
+ * CC
46
+ * 抄送人
47
+ */
48
+ cc?: string[];
49
+
50
+ /**
51
+ * BCC
52
+ * 密送人
53
+ */
54
+ bcc?: string[];
55
+
56
+ /**
57
+ * Importance
58
+ * 重要性
59
+ */
60
+ importance?: EmailImportance;
61
+
62
+ /**
63
+ * Priority
64
+ * 优先级
65
+ */
66
+ priority?: EmailPriority;
67
+ };
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Send SMS message
3
+ * 发送短信消息
4
+ */
5
+ export type SendSMSMessage = {
6
+ /**
7
+ * Kind
8
+ * 类型
9
+ */
10
+ kind: string;
11
+
12
+ /**
13
+ * Culture
14
+ * 文化
15
+ */
16
+ culture: string;
17
+
18
+ /**
19
+ * Region
20
+ * 地区
21
+ */
22
+ region: string;
23
+
24
+ /**
25
+ * Mobiles
26
+ * 移动号码
27
+ */
28
+ to: string[];
29
+
30
+ /**
31
+ * Template id
32
+ * 模板编号
33
+ */
34
+ templateId?: string;
35
+
36
+ /**
37
+ * Body
38
+ * 内容
39
+ */
40
+ body: string;
41
+ };
package/vite.config.mts CHANGED
@@ -4,6 +4,11 @@ import react from "@vitejs/plugin-react";
4
4
  export default defineConfig({
5
5
  plugins: [react()],
6
6
  test: {
7
+ server: {
8
+ deps: {
9
+ inline: [/@mui\/x-data-grid.*/]
10
+ }
11
+ },
7
12
  globals: true,
8
13
  environment: "jsdom",
9
14
  include: ["__tests__/**/*.ts(x)?"],