pakdatakit 2.2.1 → 2.5.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 (154) hide show
  1. package/DATA.md +512 -34
  2. package/LICENSE +1 -1
  3. package/NOTICE +14 -0
  4. package/README.md +472 -28
  5. package/dist/address.cjs +6 -5
  6. package/dist/address.js +4 -3
  7. package/dist/bills.cjs +19 -0
  8. package/dist/bills.d.cts +63 -0
  9. package/dist/bills.d.ts +63 -0
  10. package/dist/bills.js +2 -0
  11. package/dist/{chunk-4VSGCQ6K.cjs → chunk-2OBKPYJZ.cjs} +3 -3
  12. package/dist/chunk-33GOK7EE.cjs +5312 -0
  13. package/dist/chunk-33QMFE2Z.js +21244 -0
  14. package/dist/chunk-34U2ZMHR.js +194 -0
  15. package/dist/chunk-4GSBHJX6.js +165 -0
  16. package/dist/chunk-5DDHO5Z7.cjs +565 -0
  17. package/dist/chunk-5EY5DQS7.js +51 -0
  18. package/dist/chunk-5RGX4DWF.js +559 -0
  19. package/dist/chunk-5UCRHVI4.cjs +302 -0
  20. package/dist/{chunk-TTARJWGT.js → chunk-7DY26QPN.js} +2 -2
  21. package/dist/chunk-7E7L3NYS.cjs +11 -0
  22. package/dist/{chunk-3ZA265SK.cjs → chunk-AUQFA7EE.cjs} +172 -4
  23. package/dist/{chunk-QKH7W2CC.js → chunk-B7DOQ5QF.js} +6 -5
  24. package/dist/{chunk-HBOZIITD.js → chunk-CADQM4ZN.js} +14 -14
  25. package/dist/chunk-CF6AMRBU.cjs +198 -0
  26. package/dist/chunk-CZOZB4K3.js +61 -0
  27. package/dist/{chunk-3IARSCO6.cjs → chunk-DHOP7LQX.cjs} +25 -14
  28. package/dist/chunk-E2XU6NOW.js +909 -0
  29. package/dist/chunk-E6GWBOKV.cjs +911 -0
  30. package/dist/chunk-E6HSKRAE.js +9 -0
  31. package/dist/chunk-EA3SIHYT.js +313 -0
  32. package/dist/{chunk-33FXHM2E.cjs → chunk-ESKXG7Y6.cjs} +5 -5
  33. package/dist/chunk-I7UUPD3G.cjs +21252 -0
  34. package/dist/{chunk-YPPKY5XZ.js → chunk-IBZPJS4H.js} +26 -15
  35. package/dist/chunk-IDTRFOQW.js +35 -0
  36. package/dist/{chunk-XCXFGTHW.cjs → chunk-J5ZF46NZ.cjs} +14 -14
  37. package/dist/{chunk-NZQ47NWD.js → chunk-KRYHLYN2.js} +1 -1
  38. package/dist/{chunk-RXNYY5K5.js → chunk-LQHM3ADX.js} +172 -4
  39. package/dist/{chunk-HTERSQGF.cjs → chunk-MTS6SVNP.cjs} +4 -4
  40. package/dist/chunk-OTI7HY55.js +297 -0
  41. package/dist/{chunk-6IPPANNX.js → chunk-P7LVE2TF.js} +2 -2
  42. package/dist/{chunk-47P7HILD.cjs → chunk-QFPEFD67.cjs} +9 -8
  43. package/dist/chunk-RZQJAZKC.js +22 -0
  44. package/dist/{chunk-PLDVGOKZ.js → chunk-S274QFFB.js} +2 -2
  45. package/dist/chunk-SF4ECUZ6.cjs +56 -0
  46. package/dist/chunk-SQIHFEXI.cjs +25 -0
  47. package/dist/{chunk-NAJGGUAM.cjs → chunk-TC3VRWZV.cjs} +2 -2
  48. package/dist/{chunk-U7MWHXMF.cjs → chunk-TVL6RDAU.cjs} +4 -4
  49. package/dist/chunk-UYFTXD4P.js +168 -0
  50. package/dist/{chunk-AZV45DMG.js → chunk-V2XE3NCG.js} +2 -2
  51. package/dist/chunk-XCFZKCV2.cjs +37 -0
  52. package/dist/chunk-XOTCIXY6.js +5301 -0
  53. package/dist/chunk-XVEG53NN.cjs +322 -0
  54. package/dist/chunk-YDUXIENX.cjs +172 -0
  55. package/dist/chunk-YPAWNWFD.cjs +168 -0
  56. package/dist/chunk-YQFI7W3I.cjs +65 -0
  57. package/dist/{chunk-NTD4JLDW.cjs → chunk-YTLE5K7G.cjs} +1 -1
  58. package/dist/{chunk-EMH4IP2U.js → chunk-ZRONAQBV.js} +1 -1
  59. package/dist/class-validator.cjs +65 -0
  60. package/dist/class-validator.d.cts +63 -0
  61. package/dist/class-validator.d.ts +63 -0
  62. package/dist/class-validator.js +54 -0
  63. package/dist/cli.js +1 -1
  64. package/dist/courier.cjs +16 -0
  65. package/dist/courier.d.cts +51 -0
  66. package/dist/courier.d.ts +51 -0
  67. package/dist/courier.js +3 -0
  68. package/dist/fbr-invoice.cjs +25 -0
  69. package/dist/fbr-invoice.d.cts +170 -0
  70. package/dist/fbr-invoice.d.ts +170 -0
  71. package/dist/fbr-invoice.js +4 -0
  72. package/dist/geo.cjs +23 -6
  73. package/dist/geo.d.cts +56 -1
  74. package/dist/geo.d.ts +56 -1
  75. package/dist/geo.js +2 -1
  76. package/dist/holidays.cjs +4 -4
  77. package/dist/holidays.js +1 -1
  78. package/dist/iban.cjs +5 -5
  79. package/dist/iban.d.cts +8 -6
  80. package/dist/iban.d.ts +8 -6
  81. package/dist/iban.js +1 -1
  82. package/dist/incometax.cjs +27 -0
  83. package/dist/incometax.d.cts +91 -0
  84. package/dist/incometax.d.ts +91 -0
  85. package/dist/incometax.js +2 -0
  86. package/dist/index.cjs +253 -111
  87. package/dist/index.d.cts +12 -4
  88. package/dist/index.d.ts +12 -4
  89. package/dist/index.js +25 -15
  90. package/dist/input.cjs +9 -9
  91. package/dist/input.js +3 -3
  92. package/dist/joi.cjs +43 -0
  93. package/dist/joi.d.cts +25 -0
  94. package/dist/joi.d.ts +25 -0
  95. package/dist/joi.js +37 -0
  96. package/dist/networks.cjs +3 -3
  97. package/dist/networks.js +2 -2
  98. package/dist/numbers.cjs +6 -6
  99. package/dist/numbers.js +2 -2
  100. package/dist/passport.cjs +11 -0
  101. package/dist/passport.d.cts +27 -0
  102. package/dist/passport.d.ts +27 -0
  103. package/dist/passport.js +2 -0
  104. package/dist/phone.cjs +8 -8
  105. package/dist/phone.js +3 -3
  106. package/dist/postal.cjs +14 -6
  107. package/dist/postal.d.cts +54 -2
  108. package/dist/postal.d.ts +54 -2
  109. package/dist/postal.js +1 -1
  110. package/dist/quality.cjs +25 -0
  111. package/dist/quality.d.cts +62 -0
  112. package/dist/quality.d.ts +62 -0
  113. package/dist/quality.js +8 -0
  114. package/dist/raast.cjs +6 -6
  115. package/dist/raast.js +2 -2
  116. package/dist/salestax.cjs +20 -0
  117. package/dist/salestax.d.cts +106 -0
  118. package/dist/salestax.d.ts +106 -0
  119. package/dist/salestax.js +3 -0
  120. package/dist/superstruct.cjs +41 -0
  121. package/dist/superstruct.d.cts +25 -0
  122. package/dist/superstruct.d.ts +25 -0
  123. package/dist/superstruct.js +39 -0
  124. package/dist/text.cjs +21 -5
  125. package/dist/text.d.cts +90 -1
  126. package/dist/text.d.ts +90 -1
  127. package/dist/text.js +1 -1
  128. package/dist/valibot.cjs +18 -8
  129. package/dist/valibot.d.cts +3 -0
  130. package/dist/valibot.d.ts +3 -0
  131. package/dist/valibot.js +17 -7
  132. package/dist/vehicle.cjs +15 -0
  133. package/dist/vehicle.d.cts +43 -0
  134. package/dist/vehicle.d.ts +43 -0
  135. package/dist/vehicle.js +2 -0
  136. package/dist/whatsapp.cjs +3 -3
  137. package/dist/whatsapp.js +2 -2
  138. package/dist/yup.cjs +18 -8
  139. package/dist/yup.d.cts +3 -0
  140. package/dist/yup.d.ts +3 -0
  141. package/dist/yup.js +17 -7
  142. package/dist/zod.cjs +18 -8
  143. package/dist/zod.d.cts +3 -0
  144. package/dist/zod.d.ts +3 -0
  145. package/dist/zod.js +17 -7
  146. package/package.json +167 -6
  147. package/dist/chunk-34CJGJ67.cjs +0 -1697
  148. package/dist/chunk-4VVFS6FN.cjs +0 -715
  149. package/dist/chunk-E6DT2DWQ.js +0 -1689
  150. package/dist/chunk-GJENL6VK.cjs +0 -22
  151. package/dist/chunk-HUQY2WR5.js +0 -20
  152. package/dist/chunk-JKE4AMSZ.js +0 -47
  153. package/dist/chunk-KEHCTYLO.cjs +0 -52
  154. package/dist/chunk-LIYNKIKS.js +0 -709
package/dist/text.d.cts CHANGED
@@ -30,5 +30,94 @@ declare function toUrduDigits(text: string): string;
30
30
  * @returns Text with English digits
31
31
  */
32
32
  declare function toEnglishDigits(text: string): string;
33
+ /** Which letters {@link slugify} keeps. */
34
+ type SlugScript = 'any' | 'latin' | 'urdu';
35
+ /** Options for {@link slugify}. */
36
+ interface SlugifyOptions {
37
+ /**
38
+ * `any` (default) keeps Latin and Urdu letters, `latin` keeps only `a-z`,
39
+ * `urdu` keeps only Urdu letters. Digits are always kept, as `0-9`.
40
+ */
41
+ script?: SlugScript;
42
+ }
43
+ /**
44
+ * Turns text into a URL slug: lower-case words joined by `-`.
45
+ *
46
+ * Urdu letters are kept as they are (no transliteration: Urdu does not write
47
+ * short vowels, so there is no single Roman spelling). Diacritics, tatweel
48
+ * and zero-width characters are dropped, the Arabic look-alikes ك ي ى become
49
+ * the Urdu ک ی ی, Urdu and Arabic-Indic digits become `0-9`, and accented
50
+ * Latin-1 letters lose their accents (`é` → `e`, `ß` → `ss`). Anything else
51
+ * separates words.
52
+ *
53
+ * @example
54
+ * slugify('Lahore Fort, 2024'); // "lahore-fort-2024"
55
+ * slugify('لاہور قلعہ'); // "لاہور-قلعہ"
56
+ * slugify('لاہور Fort', { script: 'latin' }); // "fort"
57
+ * slugify('کراچی ۲۰۲۴', { script: 'urdu' }); // "کراچی-2024"
58
+ *
59
+ * @returns The slug, or `''` when nothing is left (or the input is not a
60
+ * string). Never throws.
61
+ */
62
+ declare function slugify(input: string, options?: SlugifyOptions): string;
63
+ /**
64
+ * Compares two strings in Urdu alphabetical order, for `Array.sort`.
65
+ *
66
+ * Letters follow the Unicode CLDR collation for Urdu (`ur`, CLDR 49):
67
+ * ا آ ب بھ پ پھ ت تھ ٹ ٹھ ث ج جھ چ چھ ح خ د دھ ڈ ڈھ ذ ر رھ ڑ ڑھ ز ژ س ش ص ض
68
+ * ط ظ ع غ ف ق ک کھ گ گھ ل لھ م مھ ن نھ ں ںھ و وھ ہ ھ ۃ ء ی یھ ے. A letter
69
+ * joined with ھ is a letter of its own (so بھ comes after every other ب
70
+ * word). أ ؤ ۂ ئ ۓ sort as ا و ہ ی ے and come just after them when words are
71
+ * otherwise equal, and diacritics only break ties, in CLDR's order.
72
+ *
73
+ * Outside the Urdu letters: spaces and punctuation come first, then digits
74
+ * digit by digit (Urdu, Arabic-Indic and ASCII digits are equal; `10` comes
75
+ * before `2`), then Urdu letters, then other Arabic-script characters (the
76
+ * look-alikes ك ي ى ه ة, which CLDR does not treat as Urdu letters), then
77
+ * everything else by code point, ignoring ASCII case. Strings that are
78
+ * still equal are ordered by code point, so the result is 0 only for
79
+ * identical strings.
80
+ *
81
+ * @example
82
+ * ['ے', 'بھائی', 'آم', 'باغ', 'اب'].sort(compareUrdu);
83
+ * // ["اب", "آم", "باغ", "بھائی", "ے"]
84
+ *
85
+ * @returns `-1`, `0` or `1`. A value that is not a string is treated as
86
+ * `''`. Never throws.
87
+ */
88
+ declare function compareUrdu(a: string, b: string): -1 | 0 | 1;
89
+ /**
90
+ * Whether text reads right to left: its first letter is from a right-to-left
91
+ * script such as Urdu or Arabic. Digits, punctuation and spaces are skipped,
92
+ * as in the Unicode bidirectional algorithm's paragraph rule.
93
+ *
94
+ * @example
95
+ * isRTL('سلام'); // true
96
+ * isRTL('123 سلام'); // true
97
+ * isRTL('Order نمبر'); // false
98
+ *
99
+ * @returns `false` when there is no letter, or the input is not a string.
100
+ * Never throws.
101
+ */
102
+ declare function isRTL(text: string): boolean;
103
+ /** Direction for {@link wrapBidi}. */
104
+ type BidiDirection = 'auto' | 'rtl' | 'ltr';
105
+ /**
106
+ * Wraps text in Unicode directional isolates, so a name or number in one
107
+ * direction does not reorder the sentence around it (for example an English
108
+ * order number inside an Urdu message).
109
+ *
110
+ * Uses FIRST STRONG ISOLATE (U+2068) by default, RIGHT-TO-LEFT ISOLATE
111
+ * (U+2067) for `rtl` and LEFT-TO-RIGHT ISOLATE (U+2066) for `ltr`, closed
112
+ * with POP DIRECTIONAL ISOLATE (U+2069). Any other direction is `auto`.
113
+ *
114
+ * @example
115
+ * `آرڈر ${wrapBidi('PDK-1042')} بھیج دیا گیا`;
116
+ *
117
+ * @returns The wrapped text, or `''` when the input is not a string. Never
118
+ * throws.
119
+ */
120
+ declare function wrapBidi(text: string, direction?: BidiDirection): string;
33
121
 
34
- export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits };
122
+ export { compareUrdu, isRTL, normalizeRomanUrdu, normalizeText, slugify, toEnglishDigits, toUrduDigits, wrapBidi };
123
+ export type { BidiDirection, SlugScript, SlugifyOptions };
package/dist/text.d.ts CHANGED
@@ -30,5 +30,94 @@ declare function toUrduDigits(text: string): string;
30
30
  * @returns Text with English digits
31
31
  */
32
32
  declare function toEnglishDigits(text: string): string;
33
+ /** Which letters {@link slugify} keeps. */
34
+ type SlugScript = 'any' | 'latin' | 'urdu';
35
+ /** Options for {@link slugify}. */
36
+ interface SlugifyOptions {
37
+ /**
38
+ * `any` (default) keeps Latin and Urdu letters, `latin` keeps only `a-z`,
39
+ * `urdu` keeps only Urdu letters. Digits are always kept, as `0-9`.
40
+ */
41
+ script?: SlugScript;
42
+ }
43
+ /**
44
+ * Turns text into a URL slug: lower-case words joined by `-`.
45
+ *
46
+ * Urdu letters are kept as they are (no transliteration: Urdu does not write
47
+ * short vowels, so there is no single Roman spelling). Diacritics, tatweel
48
+ * and zero-width characters are dropped, the Arabic look-alikes ك ي ى become
49
+ * the Urdu ک ی ی, Urdu and Arabic-Indic digits become `0-9`, and accented
50
+ * Latin-1 letters lose their accents (`é` → `e`, `ß` → `ss`). Anything else
51
+ * separates words.
52
+ *
53
+ * @example
54
+ * slugify('Lahore Fort, 2024'); // "lahore-fort-2024"
55
+ * slugify('لاہور قلعہ'); // "لاہور-قلعہ"
56
+ * slugify('لاہور Fort', { script: 'latin' }); // "fort"
57
+ * slugify('کراچی ۲۰۲۴', { script: 'urdu' }); // "کراچی-2024"
58
+ *
59
+ * @returns The slug, or `''` when nothing is left (or the input is not a
60
+ * string). Never throws.
61
+ */
62
+ declare function slugify(input: string, options?: SlugifyOptions): string;
63
+ /**
64
+ * Compares two strings in Urdu alphabetical order, for `Array.sort`.
65
+ *
66
+ * Letters follow the Unicode CLDR collation for Urdu (`ur`, CLDR 49):
67
+ * ا آ ب بھ پ پھ ت تھ ٹ ٹھ ث ج جھ چ چھ ح خ د دھ ڈ ڈھ ذ ر رھ ڑ ڑھ ز ژ س ش ص ض
68
+ * ط ظ ع غ ف ق ک کھ گ گھ ل لھ م مھ ن نھ ں ںھ و وھ ہ ھ ۃ ء ی یھ ے. A letter
69
+ * joined with ھ is a letter of its own (so بھ comes after every other ب
70
+ * word). أ ؤ ۂ ئ ۓ sort as ا و ہ ی ے and come just after them when words are
71
+ * otherwise equal, and diacritics only break ties, in CLDR's order.
72
+ *
73
+ * Outside the Urdu letters: spaces and punctuation come first, then digits
74
+ * digit by digit (Urdu, Arabic-Indic and ASCII digits are equal; `10` comes
75
+ * before `2`), then Urdu letters, then other Arabic-script characters (the
76
+ * look-alikes ك ي ى ه ة, which CLDR does not treat as Urdu letters), then
77
+ * everything else by code point, ignoring ASCII case. Strings that are
78
+ * still equal are ordered by code point, so the result is 0 only for
79
+ * identical strings.
80
+ *
81
+ * @example
82
+ * ['ے', 'بھائی', 'آم', 'باغ', 'اب'].sort(compareUrdu);
83
+ * // ["اب", "آم", "باغ", "بھائی", "ے"]
84
+ *
85
+ * @returns `-1`, `0` or `1`. A value that is not a string is treated as
86
+ * `''`. Never throws.
87
+ */
88
+ declare function compareUrdu(a: string, b: string): -1 | 0 | 1;
89
+ /**
90
+ * Whether text reads right to left: its first letter is from a right-to-left
91
+ * script such as Urdu or Arabic. Digits, punctuation and spaces are skipped,
92
+ * as in the Unicode bidirectional algorithm's paragraph rule.
93
+ *
94
+ * @example
95
+ * isRTL('سلام'); // true
96
+ * isRTL('123 سلام'); // true
97
+ * isRTL('Order نمبر'); // false
98
+ *
99
+ * @returns `false` when there is no letter, or the input is not a string.
100
+ * Never throws.
101
+ */
102
+ declare function isRTL(text: string): boolean;
103
+ /** Direction for {@link wrapBidi}. */
104
+ type BidiDirection = 'auto' | 'rtl' | 'ltr';
105
+ /**
106
+ * Wraps text in Unicode directional isolates, so a name or number in one
107
+ * direction does not reorder the sentence around it (for example an English
108
+ * order number inside an Urdu message).
109
+ *
110
+ * Uses FIRST STRONG ISOLATE (U+2068) by default, RIGHT-TO-LEFT ISOLATE
111
+ * (U+2067) for `rtl` and LEFT-TO-RIGHT ISOLATE (U+2066) for `ltr`, closed
112
+ * with POP DIRECTIONAL ISOLATE (U+2069). Any other direction is `auto`.
113
+ *
114
+ * @example
115
+ * `آرڈر ${wrapBidi('PDK-1042')} بھیج دیا گیا`;
116
+ *
117
+ * @returns The wrapped text, or `''` when the input is not a string. Never
118
+ * throws.
119
+ */
120
+ declare function wrapBidi(text: string, direction?: BidiDirection): string;
33
121
 
34
- export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits };
122
+ export { compareUrdu, isRTL, normalizeRomanUrdu, normalizeText, slugify, toEnglishDigits, toUrduDigits, wrapBidi };
123
+ export type { BidiDirection, SlugScript, SlugifyOptions };
package/dist/text.js CHANGED
@@ -1,2 +1,2 @@
1
- export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits } from './chunk-JKE4AMSZ.js';
1
+ export { compareUrdu, isRTL, normalizeRomanUrdu, normalizeText, slugify, toEnglishDigits, toUrduDigits, wrapBidi } from './chunk-EA3SIHYT.js';
2
2
  import './chunk-ENQ7O7VW.js';
package/dist/valibot.cjs CHANGED
@@ -1,13 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunkGJENL6VK_cjs = require('./chunk-GJENL6VK.cjs');
4
- require('./chunk-3ZA265SK.cjs');
5
- require('./chunk-33FXHM2E.cjs');
6
- require('./chunk-HTERSQGF.cjs');
7
- require('./chunk-NTD4JLDW.cjs');
3
+ var chunkXCFZKCV2_cjs = require('./chunk-XCFZKCV2.cjs');
4
+ require('./chunk-ESKXG7Y6.cjs');
5
+ require('./chunk-YDUXIENX.cjs');
8
6
  require('./chunk-H6M6L26S.cjs');
7
+ require('./chunk-SQIHFEXI.cjs');
8
+ require('./chunk-DHOP7LQX.cjs');
9
+ require('./chunk-MTS6SVNP.cjs');
10
+ require('./chunk-AUQFA7EE.cjs');
11
+ require('./chunk-YTLE5K7G.cjs');
12
+ require('./chunk-7E7L3NYS.cjs');
13
+ require('./chunk-QFPEFD67.cjs');
14
+ require('./chunk-I7UUPD3G.cjs');
9
15
  require('./chunk-HTCSHHOR.cjs');
10
- require('./chunk-3IARSCO6.cjs');
16
+ require('./chunk-33GOK7EE.cjs');
17
+ require('./chunk-E6GWBOKV.cjs');
11
18
  require('./chunk-VPBMIYO2.cjs');
12
19
  var v = require('valibot');
13
20
 
@@ -32,7 +39,7 @@ function _interopNamespace(e) {
32
39
  var v__namespace = /*#__PURE__*/_interopNamespace(v);
33
40
 
34
41
  function schema(name) {
35
- const rule = chunkGJENL6VK_cjs.RULES[name];
42
+ const rule = chunkXCFZKCV2_cjs.RULES[name];
36
43
  return (options = {}) => v__namespace.pipe(v__namespace.string(), v__namespace.check(rule.test, options.message ?? rule.message));
37
44
  }
38
45
  var pk = {
@@ -41,7 +48,10 @@ var pk = {
41
48
  iban: schema("iban"),
42
49
  ntn: schema("ntn"),
43
50
  strn: schema("strn"),
44
- landline: schema("landline")
51
+ landline: schema("landline"),
52
+ passport: schema("passport"),
53
+ vehiclePlate: schema("vehiclePlate"),
54
+ codPhone: schema("codPhone")
45
55
  };
46
56
 
47
57
  exports.pk = pk;
@@ -17,6 +17,9 @@ declare const pk: {
17
17
  ntn: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
18
18
  strn: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
19
19
  landline: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
20
+ passport: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
21
+ vehiclePlate: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
22
+ codPhone: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
20
23
  };
21
24
 
22
25
  export { AdapterOptions, pk };
package/dist/valibot.d.ts CHANGED
@@ -17,6 +17,9 @@ declare const pk: {
17
17
  ntn: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
18
18
  strn: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
19
19
  landline: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
20
+ passport: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
21
+ vehiclePlate: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
22
+ codPhone: (options?: AdapterOptions) => v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, string>]>;
20
23
  };
21
24
 
22
25
  export { AdapterOptions, pk };
package/dist/valibot.js CHANGED
@@ -1,11 +1,18 @@
1
- import { RULES } from './chunk-HUQY2WR5.js';
2
- import './chunk-RXNYY5K5.js';
3
- import './chunk-PLDVGOKZ.js';
4
- import './chunk-AZV45DMG.js';
5
- import './chunk-6IPPANNX.js';
1
+ import { RULES } from './chunk-IDTRFOQW.js';
2
+ import './chunk-S274QFFB.js';
3
+ import './chunk-UYFTXD4P.js';
6
4
  import './chunk-CEPNSHIC.js';
5
+ import './chunk-RZQJAZKC.js';
6
+ import './chunk-IBZPJS4H.js';
7
+ import './chunk-V2XE3NCG.js';
8
+ import './chunk-LQHM3ADX.js';
9
+ import './chunk-P7LVE2TF.js';
10
+ import './chunk-E6HSKRAE.js';
11
+ import './chunk-B7DOQ5QF.js';
12
+ import './chunk-33QMFE2Z.js';
7
13
  import './chunk-EEVNLTB4.js';
8
- import './chunk-YPPKY5XZ.js';
14
+ import './chunk-XOTCIXY6.js';
15
+ import './chunk-E2XU6NOW.js';
9
16
  import './chunk-ENQ7O7VW.js';
10
17
  import * as v from 'valibot';
11
18
 
@@ -19,7 +26,10 @@ var pk = {
19
26
  iban: schema("iban"),
20
27
  ntn: schema("ntn"),
21
28
  strn: schema("strn"),
22
- landline: schema("landline")
29
+ landline: schema("landline"),
30
+ passport: schema("passport"),
31
+ vehiclePlate: schema("vehiclePlate"),
32
+ codPhone: schema("codPhone")
23
33
  };
24
34
 
25
35
  export { pk };
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var chunkSQIHFEXI_cjs = require('./chunk-SQIHFEXI.cjs');
4
+ require('./chunk-VPBMIYO2.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "parseVehiclePlate", {
9
+ enumerable: true,
10
+ get: function () { return chunkSQIHFEXI_cjs.parseVehiclePlate; }
11
+ });
12
+ Object.defineProperty(exports, "validateVehiclePlate", {
13
+ enumerable: true,
14
+ get: function () { return chunkSQIHFEXI_cjs.validateVehiclePlate; }
15
+ });
@@ -0,0 +1,43 @@
1
+ /** Result of {@link parseVehiclePlate}. */
2
+ interface VehiclePlate {
3
+ /** Letters before the number, e.g. `LEA`. */
4
+ series: string;
5
+ /** Digits of the registration number, e.g. `1234`. */
6
+ number: string;
7
+ /** Two-digit year printed on some older Punjab plates, e.g. `19`; otherwise `null`. */
8
+ year: string | null;
9
+ /** Series and number joined with a dash, e.g. `LEA-1234` (without the year). */
10
+ formatted: string;
11
+ }
12
+ /**
13
+ * Splits a Pakistani vehicle registration number into its series letters,
14
+ * number and optional year, e.g. `LEA-1234` or `ABC 123`.
15
+ *
16
+ * There is no single national format: each province's excise department sets
17
+ * its own, and several changed in 2024–2026 (numbers that stay with the
18
+ * owner, new series). This accepts the common shape shared by all of them:
19
+ * 1–4 letters, then 1–4 digits, optionally followed by the two-digit year
20
+ * that older Punjab plates carry (`LEA-1234-19`). Series letters are not
21
+ * checked against a list of districts, as no official list is published.
22
+ * Pass the registration number only, without labels such as "ICT" or
23
+ * "PUNJAB" printed elsewhere on the plate. Sources: see DATA.md.
24
+ *
25
+ * @example
26
+ * parseVehiclePlate('lea 1234');
27
+ * // { series: 'LEA', number: '1234', year: null, formatted: 'LEA-1234' }
28
+ *
29
+ * @param plate - Registration number as written on the plate
30
+ * @returns The parts, or `null` if it does not have the common shape
31
+ */
32
+ declare function parseVehiclePlate(plate: string): VehiclePlate | null;
33
+ /**
34
+ * Validates the format of a Pakistani vehicle registration number. Checks the
35
+ * common shape only; see {@link parseVehiclePlate}.
36
+ *
37
+ * @param plate - Registration number to validate
38
+ * @returns `true` if the format is valid
39
+ */
40
+ declare function validateVehiclePlate(plate: string): boolean;
41
+
42
+ export { parseVehiclePlate, validateVehiclePlate };
43
+ export type { VehiclePlate };
@@ -0,0 +1,43 @@
1
+ /** Result of {@link parseVehiclePlate}. */
2
+ interface VehiclePlate {
3
+ /** Letters before the number, e.g. `LEA`. */
4
+ series: string;
5
+ /** Digits of the registration number, e.g. `1234`. */
6
+ number: string;
7
+ /** Two-digit year printed on some older Punjab plates, e.g. `19`; otherwise `null`. */
8
+ year: string | null;
9
+ /** Series and number joined with a dash, e.g. `LEA-1234` (without the year). */
10
+ formatted: string;
11
+ }
12
+ /**
13
+ * Splits a Pakistani vehicle registration number into its series letters,
14
+ * number and optional year, e.g. `LEA-1234` or `ABC 123`.
15
+ *
16
+ * There is no single national format: each province's excise department sets
17
+ * its own, and several changed in 2024–2026 (numbers that stay with the
18
+ * owner, new series). This accepts the common shape shared by all of them:
19
+ * 1–4 letters, then 1–4 digits, optionally followed by the two-digit year
20
+ * that older Punjab plates carry (`LEA-1234-19`). Series letters are not
21
+ * checked against a list of districts, as no official list is published.
22
+ * Pass the registration number only, without labels such as "ICT" or
23
+ * "PUNJAB" printed elsewhere on the plate. Sources: see DATA.md.
24
+ *
25
+ * @example
26
+ * parseVehiclePlate('lea 1234');
27
+ * // { series: 'LEA', number: '1234', year: null, formatted: 'LEA-1234' }
28
+ *
29
+ * @param plate - Registration number as written on the plate
30
+ * @returns The parts, or `null` if it does not have the common shape
31
+ */
32
+ declare function parseVehiclePlate(plate: string): VehiclePlate | null;
33
+ /**
34
+ * Validates the format of a Pakistani vehicle registration number. Checks the
35
+ * common shape only; see {@link parseVehiclePlate}.
36
+ *
37
+ * @param plate - Registration number to validate
38
+ * @returns `true` if the format is valid
39
+ */
40
+ declare function validateVehiclePlate(plate: string): boolean;
41
+
42
+ export { parseVehiclePlate, validateVehiclePlate };
43
+ export type { VehiclePlate };
@@ -0,0 +1,2 @@
1
+ export { parseVehiclePlate, validateVehiclePlate } from './chunk-RZQJAZKC.js';
2
+ import './chunk-ENQ7O7VW.js';
package/dist/whatsapp.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkNAJGGUAM_cjs = require('./chunk-NAJGGUAM.cjs');
4
- require('./chunk-NTD4JLDW.cjs');
3
+ var chunkTC3VRWZV_cjs = require('./chunk-TC3VRWZV.cjs');
4
+ require('./chunk-YTLE5K7G.cjs');
5
5
  require('./chunk-VPBMIYO2.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "createWhatsAppLink", {
10
10
  enumerable: true,
11
- get: function () { return chunkNAJGGUAM_cjs.createWhatsAppLink; }
11
+ get: function () { return chunkTC3VRWZV_cjs.createWhatsAppLink; }
12
12
  });
package/dist/whatsapp.js CHANGED
@@ -1,3 +1,3 @@
1
- export { createWhatsAppLink } from './chunk-EMH4IP2U.js';
2
- import './chunk-6IPPANNX.js';
1
+ export { createWhatsAppLink } from './chunk-ZRONAQBV.js';
2
+ import './chunk-P7LVE2TF.js';
3
3
  import './chunk-ENQ7O7VW.js';
package/dist/yup.cjs CHANGED
@@ -1,18 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var chunkGJENL6VK_cjs = require('./chunk-GJENL6VK.cjs');
4
- require('./chunk-3ZA265SK.cjs');
5
- require('./chunk-33FXHM2E.cjs');
6
- require('./chunk-HTERSQGF.cjs');
7
- require('./chunk-NTD4JLDW.cjs');
3
+ var chunkXCFZKCV2_cjs = require('./chunk-XCFZKCV2.cjs');
4
+ require('./chunk-ESKXG7Y6.cjs');
5
+ require('./chunk-YDUXIENX.cjs');
8
6
  require('./chunk-H6M6L26S.cjs');
7
+ require('./chunk-SQIHFEXI.cjs');
8
+ require('./chunk-DHOP7LQX.cjs');
9
+ require('./chunk-MTS6SVNP.cjs');
10
+ require('./chunk-AUQFA7EE.cjs');
11
+ require('./chunk-YTLE5K7G.cjs');
12
+ require('./chunk-7E7L3NYS.cjs');
13
+ require('./chunk-QFPEFD67.cjs');
14
+ require('./chunk-I7UUPD3G.cjs');
9
15
  require('./chunk-HTCSHHOR.cjs');
10
- require('./chunk-3IARSCO6.cjs');
16
+ require('./chunk-33GOK7EE.cjs');
17
+ require('./chunk-E6GWBOKV.cjs');
11
18
  require('./chunk-VPBMIYO2.cjs');
12
19
  var yup = require('yup');
13
20
 
14
21
  function schema(name) {
15
- const rule = chunkGJENL6VK_cjs.RULES[name];
22
+ const rule = chunkXCFZKCV2_cjs.RULES[name];
16
23
  return (options = {}) => yup.string().test(
17
24
  `pk-${name}`,
18
25
  options.message ?? rule.message,
@@ -26,7 +33,10 @@ var pk = {
26
33
  iban: schema("iban"),
27
34
  ntn: schema("ntn"),
28
35
  strn: schema("strn"),
29
- landline: schema("landline")
36
+ landline: schema("landline"),
37
+ passport: schema("passport"),
38
+ vehiclePlate: schema("vehiclePlate"),
39
+ codPhone: schema("codPhone")
30
40
  };
31
41
 
32
42
  exports.pk = pk;
package/dist/yup.d.cts CHANGED
@@ -17,6 +17,9 @@ declare const pk: {
17
17
  ntn: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
18
18
  strn: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
19
19
  landline: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
20
+ passport: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
21
+ vehiclePlate: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
22
+ codPhone: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
20
23
  };
21
24
 
22
25
  export { AdapterOptions, pk };
package/dist/yup.d.ts CHANGED
@@ -17,6 +17,9 @@ declare const pk: {
17
17
  ntn: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
18
18
  strn: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
19
19
  landline: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
20
+ passport: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
21
+ vehiclePlate: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
22
+ codPhone: (options?: AdapterOptions) => yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
20
23
  };
21
24
 
22
25
  export { AdapterOptions, pk };
package/dist/yup.js CHANGED
@@ -1,11 +1,18 @@
1
- import { RULES } from './chunk-HUQY2WR5.js';
2
- import './chunk-RXNYY5K5.js';
3
- import './chunk-PLDVGOKZ.js';
4
- import './chunk-AZV45DMG.js';
5
- import './chunk-6IPPANNX.js';
1
+ import { RULES } from './chunk-IDTRFOQW.js';
2
+ import './chunk-S274QFFB.js';
3
+ import './chunk-UYFTXD4P.js';
6
4
  import './chunk-CEPNSHIC.js';
5
+ import './chunk-RZQJAZKC.js';
6
+ import './chunk-IBZPJS4H.js';
7
+ import './chunk-V2XE3NCG.js';
8
+ import './chunk-LQHM3ADX.js';
9
+ import './chunk-P7LVE2TF.js';
10
+ import './chunk-E6HSKRAE.js';
11
+ import './chunk-B7DOQ5QF.js';
12
+ import './chunk-33QMFE2Z.js';
7
13
  import './chunk-EEVNLTB4.js';
8
- import './chunk-YPPKY5XZ.js';
14
+ import './chunk-XOTCIXY6.js';
15
+ import './chunk-E2XU6NOW.js';
9
16
  import './chunk-ENQ7O7VW.js';
10
17
  import { string } from 'yup';
11
18
 
@@ -24,7 +31,10 @@ var pk = {
24
31
  iban: schema("iban"),
25
32
  ntn: schema("ntn"),
26
33
  strn: schema("strn"),
27
- landline: schema("landline")
34
+ landline: schema("landline"),
35
+ passport: schema("passport"),
36
+ vehiclePlate: schema("vehiclePlate"),
37
+ codPhone: schema("codPhone")
28
38
  };
29
39
 
30
40
  export { pk };
package/dist/zod.cjs CHANGED
@@ -1,18 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var chunkGJENL6VK_cjs = require('./chunk-GJENL6VK.cjs');
4
- require('./chunk-3ZA265SK.cjs');
5
- require('./chunk-33FXHM2E.cjs');
6
- require('./chunk-HTERSQGF.cjs');
7
- require('./chunk-NTD4JLDW.cjs');
3
+ var chunkXCFZKCV2_cjs = require('./chunk-XCFZKCV2.cjs');
4
+ require('./chunk-ESKXG7Y6.cjs');
5
+ require('./chunk-YDUXIENX.cjs');
8
6
  require('./chunk-H6M6L26S.cjs');
7
+ require('./chunk-SQIHFEXI.cjs');
8
+ require('./chunk-DHOP7LQX.cjs');
9
+ require('./chunk-MTS6SVNP.cjs');
10
+ require('./chunk-AUQFA7EE.cjs');
11
+ require('./chunk-YTLE5K7G.cjs');
12
+ require('./chunk-7E7L3NYS.cjs');
13
+ require('./chunk-QFPEFD67.cjs');
14
+ require('./chunk-I7UUPD3G.cjs');
9
15
  require('./chunk-HTCSHHOR.cjs');
10
- require('./chunk-3IARSCO6.cjs');
16
+ require('./chunk-33GOK7EE.cjs');
17
+ require('./chunk-E6GWBOKV.cjs');
11
18
  require('./chunk-VPBMIYO2.cjs');
12
19
  var zod = require('zod');
13
20
 
14
21
  function schema(name) {
15
- const rule = chunkGJENL6VK_cjs.RULES[name];
22
+ const rule = chunkXCFZKCV2_cjs.RULES[name];
16
23
  return (options = {}) => zod.z.string().refine(rule.test, { message: options.message ?? rule.message });
17
24
  }
18
25
  var pk = {
@@ -21,7 +28,10 @@ var pk = {
21
28
  iban: schema("iban"),
22
29
  ntn: schema("ntn"),
23
30
  strn: schema("strn"),
24
- landline: schema("landline")
31
+ landline: schema("landline"),
32
+ passport: schema("passport"),
33
+ vehiclePlate: schema("vehiclePlate"),
34
+ codPhone: schema("codPhone")
25
35
  };
26
36
 
27
37
  exports.pk = pk;
package/dist/zod.d.cts CHANGED
@@ -17,6 +17,9 @@ declare const pk: {
17
17
  ntn: (options?: AdapterOptions) => z.ZodString;
18
18
  strn: (options?: AdapterOptions) => z.ZodString;
19
19
  landline: (options?: AdapterOptions) => z.ZodString;
20
+ passport: (options?: AdapterOptions) => z.ZodString;
21
+ vehiclePlate: (options?: AdapterOptions) => z.ZodString;
22
+ codPhone: (options?: AdapterOptions) => z.ZodString;
20
23
  };
21
24
 
22
25
  export { AdapterOptions, pk };
package/dist/zod.d.ts CHANGED
@@ -17,6 +17,9 @@ declare const pk: {
17
17
  ntn: (options?: AdapterOptions) => z.ZodString;
18
18
  strn: (options?: AdapterOptions) => z.ZodString;
19
19
  landline: (options?: AdapterOptions) => z.ZodString;
20
+ passport: (options?: AdapterOptions) => z.ZodString;
21
+ vehiclePlate: (options?: AdapterOptions) => z.ZodString;
22
+ codPhone: (options?: AdapterOptions) => z.ZodString;
20
23
  };
21
24
 
22
25
  export { AdapterOptions, pk };
package/dist/zod.js CHANGED
@@ -1,11 +1,18 @@
1
- import { RULES } from './chunk-HUQY2WR5.js';
2
- import './chunk-RXNYY5K5.js';
3
- import './chunk-PLDVGOKZ.js';
4
- import './chunk-AZV45DMG.js';
5
- import './chunk-6IPPANNX.js';
1
+ import { RULES } from './chunk-IDTRFOQW.js';
2
+ import './chunk-S274QFFB.js';
3
+ import './chunk-UYFTXD4P.js';
6
4
  import './chunk-CEPNSHIC.js';
5
+ import './chunk-RZQJAZKC.js';
6
+ import './chunk-IBZPJS4H.js';
7
+ import './chunk-V2XE3NCG.js';
8
+ import './chunk-LQHM3ADX.js';
9
+ import './chunk-P7LVE2TF.js';
10
+ import './chunk-E6HSKRAE.js';
11
+ import './chunk-B7DOQ5QF.js';
12
+ import './chunk-33QMFE2Z.js';
7
13
  import './chunk-EEVNLTB4.js';
8
- import './chunk-YPPKY5XZ.js';
14
+ import './chunk-XOTCIXY6.js';
15
+ import './chunk-E2XU6NOW.js';
9
16
  import './chunk-ENQ7O7VW.js';
10
17
  import { z } from 'zod';
11
18
 
@@ -19,7 +26,10 @@ var pk = {
19
26
  iban: schema("iban"),
20
27
  ntn: schema("ntn"),
21
28
  strn: schema("strn"),
22
- landline: schema("landline")
29
+ landline: schema("landline"),
30
+ passport: schema("passport"),
31
+ vehiclePlate: schema("vehiclePlate"),
32
+ codPhone: schema("codPhone")
23
33
  };
24
34
 
25
35
  export { pk };