@es-joy/jsoe 0.26.1 → 0.27.0

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 (124) hide show
  1. package/.gitignore +10 -0
  2. package/.npmignore +9 -0
  3. package/CHANGES.md +43 -0
  4. package/README.md +3 -3
  5. package/badges/coverage-badge.svg +1 -1
  6. package/dist/formats/schema.d.ts.map +1 -1
  7. package/dist/fundamentalTypes/arrayType.d.ts.map +1 -1
  8. package/dist/fundamentalTypes/stringType.d.ts.map +1 -1
  9. package/dist/index.js +2 -2
  10. package/dist/index.js.map +1 -1
  11. package/dist/typeChoices.d.ts.map +1 -1
  12. package/dist/types.d.ts.map +1 -1
  13. package/eslint.config.js +36 -27
  14. package/package.json +12 -11
  15. package/pnpm-workspace.yaml +3 -2
  16. package/src/formats/schema.js +35 -6
  17. package/src/fundamentalTypes/arrayType.js +30 -6
  18. package/src/fundamentalTypes/stringType.js +5 -0
  19. package/src/typeChoices.js +3 -1
  20. package/src/types.js +7 -0
  21. package/vendor/typeson-registry/dist/index.js +83 -10
  22. package/vendor/zod/classic/checks.d.ts +1 -1
  23. package/vendor/zod/classic/checks.js +1 -1
  24. package/vendor/zod/classic/external.d.ts +1 -1
  25. package/vendor/zod/classic/external.js +1 -1
  26. package/vendor/zod/classic/from-json-schema.js +245 -24
  27. package/vendor/zod/classic/schemas.d.ts +17 -1
  28. package/vendor/zod/classic/schemas.js +77 -29
  29. package/vendor/zod/core/api.d.ts +6 -4
  30. package/vendor/zod/core/api.js +17 -2
  31. package/vendor/zod/core/checks.d.ts +1 -1
  32. package/vendor/zod/core/checks.js +0 -96
  33. package/vendor/zod/core/compile.d.ts +18 -4
  34. package/vendor/zod/core/compile.js +146 -67
  35. package/vendor/zod/core/doc.js +7 -2
  36. package/vendor/zod/core/errors.js +2 -5
  37. package/vendor/zod/core/json-schema-generator.js +2 -2
  38. package/vendor/zod/core/json-schema-processors.d.ts +17 -0
  39. package/vendor/zod/core/json-schema-processors.js +195 -64
  40. package/vendor/zod/core/memoizer.js +72 -23
  41. package/vendor/zod/core/parse.js +37 -16
  42. package/vendor/zod/core/regexes.d.ts +2 -0
  43. package/vendor/zod/core/regexes.js +8 -4
  44. package/vendor/zod/core/schemas.d.ts +42 -7
  45. package/vendor/zod/core/schemas.js +301 -94
  46. package/vendor/zod/core/to-json-schema.d.ts +7 -3
  47. package/vendor/zod/core/to-json-schema.js +8 -7
  48. package/vendor/zod/core/util.d.ts +25 -4
  49. package/vendor/zod/core/util.js +160 -143
  50. package/vendor/zod/core/versions.d.ts +1 -1
  51. package/vendor/zod/core/versions.js +2 -2
  52. package/vendor/zod/core/visit.js +12 -0
  53. package/vendor/zod/locales/ar.js +1 -0
  54. package/vendor/zod/locales/az.js +1 -0
  55. package/vendor/zod/locales/be.js +1 -0
  56. package/vendor/zod/locales/bg.js +1 -0
  57. package/vendor/zod/locales/bn.js +1 -0
  58. package/vendor/zod/locales/ca.js +1 -0
  59. package/vendor/zod/locales/ckb.js +1 -0
  60. package/vendor/zod/locales/cs.js +1 -0
  61. package/vendor/zod/locales/da.js +1 -0
  62. package/vendor/zod/locales/de.js +1 -0
  63. package/vendor/zod/locales/el.js +1 -0
  64. package/vendor/zod/locales/en.js +1 -0
  65. package/vendor/zod/locales/eo.js +1 -0
  66. package/vendor/zod/locales/es.js +1 -0
  67. package/vendor/zod/locales/fa.js +1 -0
  68. package/vendor/zod/locales/fi.js +1 -0
  69. package/vendor/zod/locales/fr-CA.js +1 -0
  70. package/vendor/zod/locales/fr.js +1 -0
  71. package/vendor/zod/locales/gu.js +1 -0
  72. package/vendor/zod/locales/he.js +1 -0
  73. package/vendor/zod/locales/hi.js +1 -0
  74. package/vendor/zod/locales/hr.js +1 -0
  75. package/vendor/zod/locales/hu.js +1 -0
  76. package/vendor/zod/locales/hy.js +1 -0
  77. package/vendor/zod/locales/id.js +1 -0
  78. package/vendor/zod/locales/index.d.ts +1 -0
  79. package/vendor/zod/locales/index.js +1 -0
  80. package/vendor/zod/locales/is.js +1 -0
  81. package/vendor/zod/locales/it.js +1 -0
  82. package/vendor/zod/locales/ja.js +1 -0
  83. package/vendor/zod/locales/ka.js +1 -0
  84. package/vendor/zod/locales/km.js +1 -0
  85. package/vendor/zod/locales/kn.js +1 -0
  86. package/vendor/zod/locales/ko.js +1 -0
  87. package/vendor/zod/locales/lt.js +1 -0
  88. package/vendor/zod/locales/mk.js +1 -0
  89. package/vendor/zod/locales/ms.js +1 -0
  90. package/vendor/zod/locales/ne.js +1 -0
  91. package/vendor/zod/locales/nl.js +1 -0
  92. package/vendor/zod/locales/nn.js +1 -0
  93. package/vendor/zod/locales/no.js +1 -0
  94. package/vendor/zod/locales/ota.js +1 -0
  95. package/vendor/zod/locales/pl.js +1 -0
  96. package/vendor/zod/locales/ps.js +1 -0
  97. package/vendor/zod/locales/pt-BR.js +1 -0
  98. package/vendor/zod/locales/pt.js +1 -0
  99. package/vendor/zod/locales/ro.js +1 -0
  100. package/vendor/zod/locales/ru.js +1 -0
  101. package/vendor/zod/locales/sk.js +1 -0
  102. package/vendor/zod/locales/sl.js +1 -0
  103. package/vendor/zod/locales/sv.js +1 -0
  104. package/vendor/zod/locales/ta.js +1 -0
  105. package/vendor/zod/locales/tg.d.ts +4 -0
  106. package/vendor/zod/locales/tg.js +116 -0
  107. package/vendor/zod/locales/th.js +1 -0
  108. package/vendor/zod/locales/tk.js +1 -0
  109. package/vendor/zod/locales/tr.js +1 -0
  110. package/vendor/zod/locales/uk.js +1 -0
  111. package/vendor/zod/locales/ur.js +1 -0
  112. package/vendor/zod/locales/uz.js +1 -0
  113. package/vendor/zod/locales/vi.js +1 -0
  114. package/vendor/zod/locales/yo.js +1 -0
  115. package/vendor/zod/locales/zh-CN.js +1 -0
  116. package/vendor/zod/locales/zh-TW.js +1 -0
  117. package/vendor/zod/mini/checks.d.ts +1 -1
  118. package/vendor/zod/mini/checks.js +1 -1
  119. package/vendor/zod/mini/external.d.ts +1 -1
  120. package/vendor/zod/mini/external.js +1 -1
  121. package/vendor/zod/mini/schemas.d.ts +8 -0
  122. package/vendor/zod/mini/schemas.js +19 -2
  123. package/vendor/zodexy/dist/esm/index.js +34 -1
  124. package/vendor/zodexy/dist/schema.zodexy.json +18 -0
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-streng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kreditkortnummer",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "input",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-String",
40
40
  e164: "E.164-Nummer",
41
41
  credit_card: "Kreditkartennummer",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "Eingabe",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "συμβολοσειρά JSON",
40
40
  e164: "αριθμός E.164",
41
41
  credit_card: "αριθμός πιστωτικής κάρτας",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "είσοδος",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON string",
40
40
  e164: "E.164 number",
41
41
  credit_card: "credit card number",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "input",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-karaktraro",
40
40
  e164: "E.164-nombro",
41
41
  credit_card: "kreditkarta numero",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "enigo",
44
45
  };
@@ -38,6 +38,7 @@ const error = () => {
38
38
  json_string: "cadena JSON",
39
39
  e164: "número E.164",
40
40
  credit_card: "número de tarjeta de crédito",
41
+ iban: "IBAN",
41
42
  jwt: "JWT",
42
43
  template_literal: "entrada",
43
44
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON رشته",
40
40
  e164: "E.164 عدد",
41
41
  credit_card: "شماره کارت اعتباری",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "ورودی",
44
45
  };
@@ -43,6 +43,7 @@ const error = () => {
43
43
  json_string: "JSON-merkkijono",
44
44
  e164: "E.164-luku",
45
45
  credit_card: "luottokortin numero",
46
+ iban: "IBAN",
46
47
  jwt: "JWT",
47
48
  template_literal: "templaattimerkkijono",
48
49
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "chaîne JSON",
40
40
  e164: "numéro E.164",
41
41
  credit_card: "numéro de carte de crédit",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "entrée",
44
45
  };
@@ -38,6 +38,7 @@ const error = () => {
38
38
  json_string: "chaîne de caractères JSON",
39
39
  e164: "numéro au format E.164",
40
40
  credit_card: "numéro de carte de crédit",
41
+ iban: "IBAN",
41
42
  jwt: "JWT",
42
43
  template_literal: "entrée",
43
44
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON સ્ટ્રિંગ",
40
40
  e164: "E.164 નંબર",
41
41
  credit_card: "ક્રેડિટ કાર્ડ નંબર",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "ઇનપુટ",
44
45
  };
@@ -78,6 +78,7 @@ const error = () => {
78
78
  json_string: { label: "מחרוזת JSON", gender: "f" },
79
79
  e164: { label: "מספר E.164", gender: "m" },
80
80
  credit_card: { label: "מספר כרטיס אשראי", gender: "m" },
81
+ iban: { label: "IBAN", gender: "m" },
81
82
  jwt: { label: "JWT", gender: "m" },
82
83
  template_literal: { label: "קלט", gender: "m" },
83
84
  ends_with: { label: "קלט", gender: "m" },
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON स्ट्रिंग",
40
40
  e164: "E.164 संख्या",
41
41
  credit_card: "क्रेडिट कार्ड संख्या",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "इनपुट",
44
45
  };
@@ -38,6 +38,7 @@ const error = () => {
38
38
  json_string: "JSON tekst",
39
39
  e164: "E.164 broj",
40
40
  credit_card: "broj kreditne kartice",
41
+ iban: "IBAN",
41
42
  jwt: "JWT",
42
43
  template_literal: "unos",
43
44
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON string",
40
40
  e164: "E.164 szám",
41
41
  credit_card: "hitelkártyaszám",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "bemenet",
44
45
  };
@@ -79,6 +79,7 @@ const error = () => {
79
79
  json_string: "JSON տող",
80
80
  e164: "E.164 համար",
81
81
  credit_card: "կրեդիտ քարտի համար",
82
+ iban: "IBAN",
82
83
  jwt: "JWT",
83
84
  template_literal: "մուտք",
84
85
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "string JSON",
40
40
  e164: "angka E.164",
41
41
  credit_card: "nomor kartu kredit",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "input",
44
45
  };
@@ -49,6 +49,7 @@ export { default as sk } from "./sk.js";
49
49
  export { default as sl } from "./sl.js";
50
50
  export { default as sv } from "./sv.js";
51
51
  export { default as ta } from "./ta.js";
52
+ export { default as tg } from "./tg.js";
52
53
  export { default as th } from "./th.js";
53
54
  export { default as tk } from "./tk.js";
54
55
  export { default as tr } from "./tr.js";
@@ -49,6 +49,7 @@ export { default as sk } from "./sk.js";
49
49
  export { default as sl } from "./sl.js";
50
50
  export { default as sv } from "./sv.js";
51
51
  export { default as ta } from "./ta.js";
52
+ export { default as tg } from "./tg.js";
52
53
  export { default as th } from "./th.js";
53
54
  export { default as tk } from "./tk.js";
54
55
  export { default as tr } from "./tr.js";
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON strengur",
40
40
  e164: "E.164 tölugildi",
41
41
  credit_card: "kreditkortanúmer",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "gildi",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "stringa JSON",
40
40
  e164: "numero E.164",
41
41
  credit_card: "numero di carta di credito",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "input",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON文字列",
40
40
  e164: "E.164番号",
41
41
  credit_card: "クレジットカード番号",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "入力値",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON ველი",
40
40
  e164: "E.164 ნომერი",
41
41
  credit_card: "საკრედიტო ბარათის ნომერი",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "შეყვანა",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ខ្សែអក្សរ JSON",
40
40
  e164: "លេខ E.164",
41
41
  credit_card: "លេខប័ណ្ណឥណទាន",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "ទិន្នន័យបញ្ចូល",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSONಸ್ಟ್ರಿಂಗ್",
40
40
  e164: "E.164 ಸಂಖ್ಯೆ",
41
41
  credit_card: "ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "ಇನ್ಪುಟ್",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON 문자열",
40
40
  e164: "E.164 번호",
41
41
  credit_card: "신용카드 번호",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "입력",
44
45
  };
@@ -121,6 +121,7 @@ const error = () => {
121
121
  json_string: "JSON eilutė",
122
122
  e164: "E.164 numeris",
123
123
  credit_card: "kredito kortelės numeris",
124
+ iban: "IBAN",
124
125
  jwt: "JWT",
125
126
  template_literal: "įvestis",
126
127
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON низа",
40
40
  e164: "E.164 број",
41
41
  credit_card: "број на кредитна картичка",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "внес",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "string JSON",
40
40
  e164: "nombor E.164",
41
41
  credit_card: "nombor kad kredit",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "input",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON स्ट्रिङ",
40
40
  e164: "E.164 नम्बर",
41
41
  credit_card: "क्रेडिट कार्ड नम्बर",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "इनपुट",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON string",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "creditcardnummer",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "invoer",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-streng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kredittkortnummer",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "input",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-streng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kredittkortnummer",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "input",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON metin",
40
40
  e164: "E.164 sayısı",
41
41
  credit_card: "i'tibâr kartı numarası",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "giren",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ciąg znaków w formacie JSON",
40
40
  e164: "liczba E.164",
41
41
  credit_card: "numer karty kredytowej",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "wejście",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON متن",
40
40
  e164: "د E.164 شمېره",
41
41
  credit_card: "د کریډیټ کارت شمیره",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "ورودي",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "o texto JSON",
40
40
  e164: "o número E.164",
41
41
  credit_card: "o número de cartão de crédito",
42
+ iban: "o IBAN",
42
43
  jwt: "o JWT",
43
44
  template_literal: "a entrada",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "o texto JSON",
40
40
  e164: "o número E.164",
41
41
  credit_card: "o número de cartão de crédito",
42
+ iban: "o IBAN",
42
43
  jwt: "o JWT",
43
44
  template_literal: "a entrada",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "șir JSON",
40
40
  e164: "număr E.164",
41
41
  credit_card: "număr de card de credit",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "intrare",
44
45
  };
@@ -89,6 +89,7 @@ const error = () => {
89
89
  json_string: "JSON строка",
90
90
  e164: "номер E.164",
91
91
  credit_card: "номер кредитной карты",
92
+ iban: "IBAN",
92
93
  jwt: "JWT",
93
94
  template_literal: "ввод",
94
95
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "reťazec vo formáte JSON",
40
40
  e164: "číslo E.164",
41
41
  credit_card: "číslo kreditnej karty",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "vstup",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON niz",
40
40
  e164: "E.164 številka",
41
41
  credit_card: "številka kreditne kartice",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "vnos",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-sträng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kreditkortsnummer",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "mall-literal",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON சரம்",
40
40
  e164: "E.164 எண்",
41
41
  credit_card: "கடன் அட்டை எண்",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "input",
44
45
  };
@@ -0,0 +1,4 @@
1
+ import type * as errors from "../core/errors.js";
2
+ export default function (): {
3
+ localeError: errors.$ZodErrorMap;
4
+ };
@@ -0,0 +1,116 @@
1
+ import * as util from "../core/util.js";
2
+ const error = () => {
3
+ // singular units after numerals in Tajik
4
+ const Sizable = {
5
+ string: { unit: "аломат", verb: "дошта бошад" },
6
+ file: { unit: "байт", verb: "дошта бошад" },
7
+ array: { unit: "унсур", verb: "дошта бошад" },
8
+ set: { unit: "унсур", verb: "дошта бошад" },
9
+ map: { unit: "сабт", verb: "дошта бошад" },
10
+ };
11
+ function getSizing(origin) {
12
+ return Sizable[origin] ?? null;
13
+ }
14
+ const FormatDictionary = {
15
+ regex: "вуруд",
16
+ email: "суроғаи email",
17
+ url: "URL",
18
+ emoji: "эмоҷи",
19
+ uuid: "UUID",
20
+ uuidv4: "UUIDv4",
21
+ uuidv6: "UUIDv6",
22
+ nanoid: "nanoid",
23
+ guid: "GUID",
24
+ cuid: "cuid",
25
+ cuid2: "cuid2",
26
+ ulid: "ULID",
27
+ xid: "XID",
28
+ ksuid: "KSUID",
29
+ datetime: "санаву вақти ISO",
30
+ date: "санаи ISO",
31
+ time: "вақти ISO",
32
+ duration: "давомнокии ISO",
33
+ ipv4: "суроғаи IPv4",
34
+ ipv6: "суроғаи IPv6",
35
+ mac: "суроғаи MAC",
36
+ cidrv4: "маҳдудаи IPv4",
37
+ cidrv6: "маҳдудаи IPv6",
38
+ base64: "сатри дар формати base64",
39
+ base64url: "сатри дар формати base64url",
40
+ json_string: "сатри JSON",
41
+ e164: "рақами E.164",
42
+ credit_card: "рақами корти кредитӣ",
43
+ iban: "IBAN",
44
+ jwt: "JWT",
45
+ template_literal: "вуруд",
46
+ };
47
+ const TypeDictionary = {
48
+ nan: "NaN",
49
+ number: "рақам",
50
+ string: "сатр",
51
+ array: "массив",
52
+ object: "объект",
53
+ date: "сана",
54
+ };
55
+ return (issue) => {
56
+ switch (issue.code) {
57
+ case "invalid_type": {
58
+ const expected = TypeDictionary[issue.expected] ?? issue.expected;
59
+ const receivedType = util.parsedType(issue.input);
60
+ const received = TypeDictionary[receivedType] ?? receivedType;
61
+ return `Вуруди нодуруст: ${expected} интизор мерафт, ${received} гирифта шуд`;
62
+ }
63
+ case "invalid_value":
64
+ if (issue.values.length === 1)
65
+ return `Вуруди нодуруст: ${util.stringifyPrimitive(issue.values[0])} интизор мерафт`;
66
+ return `Интихоби нодуруст: яке аз ${util.joinValues(issue.values, "|")} интизор мерафт`;
67
+ case "too_big": {
68
+ const adj = issue.inclusive ? "<=" : "<";
69
+ const sizing = getSizing(issue.origin);
70
+ if (sizing)
71
+ return `Хеле калон: ${issue.origin ?? "қимат"} бояд ${adj}${issue.maximum.toString()} ${sizing.unit} ${sizing.verb}`;
72
+ return `Хеле калон: ${issue.origin ?? "қимат"} бояд ${adj}${issue.maximum.toString()} бошад`;
73
+ }
74
+ case "too_small": {
75
+ const adj = issue.inclusive ? ">=" : ">";
76
+ const sizing = getSizing(issue.origin);
77
+ if (sizing)
78
+ return `Хеле хурд: ${issue.origin} бояд ${adj}${issue.minimum.toString()} ${sizing.unit} ${sizing.verb}`;
79
+ return `Хеле хурд: ${issue.origin} бояд ${adj}${issue.minimum.toString()} бошад`;
80
+ }
81
+ case "invalid_format": {
82
+ const _issue = issue;
83
+ if (_issue.format === "starts_with")
84
+ return `Сатри нодуруст: бояд бо "${_issue.prefix}" оғоз шавад`;
85
+ if (_issue.format === "ends_with")
86
+ return `Сатри нодуруст: бояд бо "${_issue.suffix}" анҷом ёбад`;
87
+ if (_issue.format === "includes")
88
+ return `Сатри нодуруст: бояд "${_issue.includes}"-ро дар бар гирад`;
89
+ if (_issue.format === "regex")
90
+ return `Сатри нодуруст: бояд ба намунаи ${_issue.pattern} мувофиқат кунад`;
91
+ return `${FormatDictionary[_issue.format] ?? issue.format}-и нодуруст`;
92
+ }
93
+ case "not_multiple_of":
94
+ return `Рақами нодуруст: бояд ба ${issue.divisor} бе бақия тақсим шавад`;
95
+ case "unrecognized_keys":
96
+ return `Калид${issue.keys.length > 1 ? "ҳои" : "и"} номаълум: ${util.joinValues(issue.keys, ", ")}`;
97
+ case "invalid_key":
98
+ return `Калиди нодуруст дар ${issue.origin}`;
99
+ case "invalid_union":
100
+ if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
101
+ const opts = issue.options.map((o) => `'${o}'`).join(" | ");
102
+ return `Қимати нодурусти дискриминатор: ${opts} интизор мерафт`;
103
+ }
104
+ return "Вуруди нодуруст";
105
+ case "invalid_element":
106
+ return `Қимати нодуруст дар ${issue.origin}`;
107
+ default:
108
+ return `Вуруди нодуруст`;
109
+ }
110
+ };
111
+ };
112
+ export default function () {
113
+ return {
114
+ localeError: error(),
115
+ };
116
+ }
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ข้อความแบบ JSON",
40
40
  e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",
41
41
  credit_card: "หมายเลขบัตรเครดิต",
42
+ iban: "IBAN",
42
43
  jwt: "โทเคน JWT",
43
44
  template_literal: "ข้อมูลที่ป้อน",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON setiri",
40
40
  e164: "E.164 nomeri",
41
41
  credit_card: "kredit kartynyň nomeri",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "şablon",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON dizesi",
40
40
  e164: "E.164 sayısı",
41
41
  credit_card: "kredi kartı numarası",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "Şablon dizesi",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "рядок JSON",
40
40
  e164: "номер E.164",
41
41
  credit_card: "номер кредитної картки",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "вхідні дані",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "جے ایس او این سٹرنگ",
40
40
  e164: "ای 164 نمبر",
41
41
  credit_card: "کریڈٹ کارڈ نمبر",
42
+ iban: "IBAN",
42
43
  jwt: "جے ڈبلیو ٹی",
43
44
  template_literal: "ان پٹ",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON satr",
40
40
  e164: "E.164 raqam",
41
41
  credit_card: "kredit karta raqami",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "kirish",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "chuỗi JSON",
40
40
  e164: "số E.164",
41
41
  credit_card: "số thẻ tín dụng",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "đầu vào",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ọ̀rọ̀ JSON",
40
40
  e164: "nọ́mbà E.164",
41
41
  credit_card: "nọmba kaadi gbese",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "ẹ̀rọ ìbáwọlé",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON字符串",
40
40
  e164: "E.164号码",
41
41
  credit_card: "信用卡号",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "输入",
44
45
  };
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON 字串",
40
40
  e164: "E.164 數值",
41
41
  credit_card: "信用卡號",
42
+ iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "輸入",
44
45
  };
@@ -1 +1 @@
1
- export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _properties as properties, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
1
+ export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
@@ -1 +1 @@
1
- export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _properties as properties, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
1
+ export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";