@nocobase/plugin-verification 1.7.0-beta.3 → 1.7.0-beta.31

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 (76) hide show
  1. package/dist/client/1d2d85cba43aed14.js +10 -0
  2. package/dist/client/{providerTypes/index.d.ts → VerificationMenu.d.ts} +5 -4
  3. package/dist/client/c88007c6800b52fb.js +10 -0
  4. package/dist/client/index.d.ts +7 -0
  5. package/dist/client/index.js +1 -1
  6. package/dist/client/locale/index.d.ts +1 -1
  7. package/dist/client/otp-verification/VerificationCode.d.ts +16 -0
  8. package/dist/client/otp-verification/sms/AdminSettingsForm.d.ts +12 -0
  9. package/dist/client/otp-verification/sms/BindForm.d.ts +11 -0
  10. package/dist/client/otp-verification/sms/VerificationForm.d.ts +11 -0
  11. package/dist/client/otp-verification/sms/index.d.ts +26 -0
  12. package/dist/client/otp-verification/sms/provider-manager.d.ts +19 -0
  13. package/dist/client/{VerificationProviders.d.ts → otp-verification/sms/providers/AliyunSettings.d.ts} +1 -1
  14. package/dist/{server/actions/index.d.ts → client/otp-verification/sms/providers/TencentSettings.d.ts} +2 -3
  15. package/dist/client/schemas/verificators.d.ts +66 -0
  16. package/dist/client/verification-manager/index.d.ts +32 -0
  17. package/dist/client/{ProviderOptions.d.ts → verificators/VerificatorSelect.d.ts} +1 -2
  18. package/dist/client/verificators/Verificators.d.ts +12 -0
  19. package/dist/client/verificators/verification-types.d.ts +24 -0
  20. package/dist/collections/verificators.d.ts +50 -0
  21. package/dist/collections/verificators.js +70 -0
  22. package/dist/constants.d.ts +11 -0
  23. package/dist/constants.js +42 -0
  24. package/dist/externalVersion.js +13 -13
  25. package/dist/locale/en-US.json +17 -1
  26. package/dist/locale/nl-NL.json +12 -12
  27. package/dist/locale/zh-CN.json +19 -2
  28. package/dist/node_modules/@alicloud/dysmsapi20170525/dist/client.js +2 -2
  29. package/dist/node_modules/@alicloud/dysmsapi20170525/package.json +1 -1
  30. package/dist/node_modules/@alicloud/openapi-client/dist/client.js +2 -2
  31. package/dist/node_modules/@alicloud/openapi-client/package.json +1 -1
  32. package/dist/node_modules/@alicloud/tea-util/dist/client.js +1 -1
  33. package/dist/node_modules/@alicloud/tea-util/package.json +1 -1
  34. package/dist/node_modules/tencentcloud-sdk-nodejs/package.json +1 -1
  35. package/dist/node_modules/tencentcloud-sdk-nodejs/tencentcloud/index.js +2 -2
  36. package/dist/server/Plugin.d.ts +5 -16
  37. package/dist/server/Plugin.js +57 -72
  38. package/dist/server/actions/verificators.d.ts +18 -0
  39. package/dist/server/actions/verificators.js +175 -0
  40. package/dist/server/{actions/verifications.d.ts → collections/otp-records.d.ts} +2 -2
  41. package/dist/server/collections/otp-records.js +75 -0
  42. package/dist/server/collections/users-verificators.d.ts +14 -0
  43. package/dist/server/collections/users-verificators.js +58 -0
  44. package/dist/server/collections/verificators.d.ts +10 -0
  45. package/dist/server/{actions/index.js → collections/verificators.js} +10 -19
  46. package/dist/server/constants.d.ts +0 -2
  47. package/dist/server/constants.js +2 -8
  48. package/dist/server/index.d.ts +5 -2
  49. package/dist/server/index.js +12 -5
  50. package/dist/server/migrations/20250111192640-providers2verificators.d.ts +14 -0
  51. package/dist/server/migrations/20250111192640-providers2verificators.js +97 -0
  52. package/dist/server/otp-verification/index.d.ts +25 -0
  53. package/dist/server/otp-verification/index.js +94 -0
  54. package/dist/server/otp-verification/sms/index.d.ts +37 -0
  55. package/dist/server/otp-verification/sms/index.js +87 -0
  56. package/dist/server/{providers/Provider.d.ts → otp-verification/sms/providers/index.d.ts} +2 -4
  57. package/dist/server/{providers/Provider.js → otp-verification/sms/providers/index.js} +8 -10
  58. package/dist/server/{providers → otp-verification/sms/providers}/sms-aliyun.d.ts +3 -3
  59. package/dist/server/{providers → otp-verification/sms/providers}/sms-aliyun.js +4 -4
  60. package/dist/server/{providers → otp-verification/sms/providers}/sms-tencent.d.ts +3 -3
  61. package/dist/server/{providers → otp-verification/sms/providers}/sms-tencent.js +4 -4
  62. package/dist/server/otp-verification/sms/resource/sms-otp-providers.d.ts +16 -0
  63. package/dist/server/otp-verification/sms/resource/sms-otp-providers.js +41 -0
  64. package/dist/server/otp-verification/sms/resource/sms-otp.d.ts +18 -0
  65. package/dist/server/otp-verification/sms/resource/sms-otp.js +141 -0
  66. package/dist/server/verification-manager.d.ts +68 -0
  67. package/dist/server/verification-manager.js +223 -0
  68. package/dist/server/verification.d.ts +70 -0
  69. package/dist/server/verification.js +70 -0
  70. package/package.json +8 -6
  71. package/dist/client/7551e1f2e04bca2f.js +0 -10
  72. package/dist/client/providerTypes/sms-aliyun.d.ts +0 -66
  73. package/dist/client/providerTypes/sms-tencent.d.ts +0 -66
  74. package/dist/server/actions/verifications.js +0 -146
  75. package/dist/server/providers/index.d.ts +0 -15
  76. package/dist/server/providers/index.js +0 -52
@@ -8,19 +8,19 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@formily/antd-v5": "1.1.9",
12
- "@formily/core": "2.3.0",
13
- "@formily/react": "2.3.0",
14
- "ahooks": "3.7.8",
11
+ "@nocobase/client": "1.7.0-beta.31",
15
12
  "react": "18.2.0",
16
- "@nocobase/client": "1.7.0-beta.3",
17
- "antd": "5.12.8",
18
- "@nocobase/actions": "1.7.0-beta.3",
19
- "@nocobase/database": "1.7.0-beta.3",
20
- "@nocobase/resourcer": "1.7.0-beta.3",
21
- "@nocobase/server": "1.7.0-beta.3",
22
- "@nocobase/utils": "1.7.0-beta.3",
23
- "react-i18next": "11.18.6",
13
+ "antd": "5.24.2",
24
14
  "@formily/shared": "2.3.2",
25
- "dayjs": "1.11.10"
15
+ "@formily/react": "2.3.0",
16
+ "@formily/core": "2.3.0",
17
+ "@nocobase/server": "1.7.0-beta.31",
18
+ "@nocobase/utils": "1.7.0-beta.31",
19
+ "@nocobase/actions": "1.7.0-beta.31",
20
+ "@nocobase/database": "1.7.0-beta.31",
21
+ "react-i18next": "11.18.6",
22
+ "react-router-dom": "6.28.1",
23
+ "@formily/antd-v5": "1.2.3",
24
+ "@ant-design/icons": "5.6.1",
25
+ "dayjs": "1.11.13"
26
26
  };
@@ -18,5 +18,21 @@
18
18
  "Not a valid cellphone number, please re-enter": "Not a valid cellphone number, please re-enter",
19
19
  "Please don't retry in {{time}} seconds": "Please don't retry in {{time}} seconds",
20
20
  "You are trying so frequently, please slow down": "You are trying so frequently, please slow down",
21
- "Verification code is invalid": "Verification code is invalid"
21
+ "Verification code is invalid": "Verification code is invalid",
22
+ "SMS OTP": "SMS OTP",
23
+ "Get one-time codes sent to your phone via SMS to complete authentication requests.": "Get one-time codes sent to your phone via SMS to complete authentication requests.",
24
+ "Unbind": "Unbind",
25
+ "Bind": "Bind",
26
+ "Configured": "Configured",
27
+ "Unbind verificator": "Unbind verificator",
28
+ "Not configured": "Not configured",
29
+ "Unbound successfully": "Unbound successfully",
30
+ "Bound successfully": "Bound successfully",
31
+ "Verification type": "Verification type",
32
+ "Provider": "Provider",
33
+ "Verificator": "Verificator",
34
+ "Verificators": "Verificators",
35
+ "The following types of verificators are available:": "The following types of verifications are available: ",
36
+ "Go to": "Go to",
37
+ "create verificators": "create verificators"
22
38
  }
@@ -1,22 +1,22 @@
1
1
  {
2
- "Verification": "Verification",
3
- "Verification providers": "Verification providers",
2
+ "Verification": "Verificatie",
3
+ "Verification providers": "Verificatieproviders",
4
4
  "Provider type": "Provider type",
5
5
  "Aliyun SMS": "Aliyun SMS",
6
6
  "Access Key ID": "Access Key ID",
7
7
  "Access Key Secret": "Access Key Secret",
8
8
  "Endpoint": "Endpoint",
9
- "Sign": "Sign",
10
- "Template code": "Template code",
9
+ "Sign": "Handtekening",
10
+ "Template code": "Sjablooncode",
11
11
  "Secret Id": "Secret Id",
12
12
  "Secret Key": "Secret Key",
13
- "Region": "Region",
14
- "Sign name": "Sign name",
13
+ "Region": "Regio",
14
+ "Sign name": "Handtekening naam",
15
15
  "Sms sdk app id": "Sms sdk app id",
16
- "Template Id": "Template Id",
17
- "Verification send failed, please try later or contact to administrator": "Verification send failed, please try later or contact to administrator",
18
- "Not a valid cellphone number, please re-enter": "Not a valid cellphone number, please re-enter",
19
- "Please don't retry in {{time}} seconds": "Please don't retry in {{time}} seconds",
20
- "You are trying so frequently, please slow down": "You are trying so frequently, please slow down",
21
- "Verification code is invalid": "Verification code is invalid"
16
+ "Template Id": "Sjabloon Id",
17
+ "Verification send failed, please try later or contact to administrator": "Verificatie verzenden mislukt, probeer het later opnieuw of neem contact op met de beheerder",
18
+ "Not a valid cellphone number, please re-enter": "Geen geldig telefoonnummer, probeer opnieuw in te voeren",
19
+ "Please don't retry in {{time}} seconds": "Probeer niet opnieuw binnen {{time}} seconden",
20
+ "You are trying so frequently, please slow down": "Je probeert te vaak, probeer langzamer",
21
+ "Verification code is invalid": "Verificatiecode is ongeldig"
22
22
  }
@@ -1,8 +1,9 @@
1
1
  {
2
- "Verification": "验证码",
2
+ "Verification": "验证",
3
3
  "Verification providers": "验证码提供商",
4
4
  "Provider type": "提供商类型",
5
5
  "Aliyun SMS": "阿里云短信服务",
6
+ "Tencent SMS": "腾讯云短信服务",
6
7
  "Access Key ID": "Access Key ID",
7
8
  "Access Key Secret": "Access Key Secret",
8
9
  "Endpoint": "接入点",
@@ -18,5 +19,21 @@
18
19
  "Not a valid cellphone number, please re-enter": "不是有效的手机号,请重新输入",
19
20
  "Please don't retry in {{time}} seconds": "请 {{time}} 秒后再试",
20
21
  "You are trying so frequently, please slow down": "您的操作太频繁,请稍后再试",
21
- "Verification code is invalid": "无效的验证码"
22
+ "Verification code is invalid": "无效的验证码",
23
+ "SMS OTP": "短信验证码",
24
+ "Get one-time codes sent to your phone via SMS to complete authentication requests.": "获取一次性短信验证码,以完成身份验证请求。",
25
+ "Unbind": "解绑",
26
+ "Bind": "绑定",
27
+ "Configured": "已配置",
28
+ "Unbind verificator": "解绑验证器",
29
+ "Not configured": "未配置",
30
+ "Unbound successfully": "解绑成功",
31
+ "Bound successfully": "绑定成功",
32
+ "Verification type": "验证类型",
33
+ "Provider": "服务商",
34
+ "Verificator": "验证器",
35
+ "Verificators": "验证器",
36
+ "The following types of verificators are available:": "以下类型的验证器可选:",
37
+ "Go to": "前往",
38
+ "create verificators": "创建验证器"
22
39
  }