pakdatakit 2.2.0 → 2.3.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 (125) hide show
  1. package/DATA.md +306 -36
  2. package/README.md +178 -30
  3. package/dist/address.cjs +5 -5
  4. package/dist/address.d.cts +2 -1
  5. package/dist/address.d.ts +2 -1
  6. package/dist/address.js +3 -3
  7. package/dist/{chunk-4VSGCQ6K.cjs → chunk-2OBKPYJZ.cjs} +3 -3
  8. package/dist/chunk-33QMFE2Z.js +21244 -0
  9. package/dist/chunk-7E7L3NYS.cjs +11 -0
  10. package/dist/{chunk-TTARJWGT.js → chunk-A3HBEBXY.js} +2 -2
  11. package/dist/{chunk-3ZA265SK.cjs → chunk-AUQFA7EE.cjs} +172 -4
  12. package/dist/{chunk-HBOZIITD.js → chunk-CADQM4ZN.js} +14 -14
  13. package/dist/{chunk-3IARSCO6.cjs → chunk-DHOP7LQX.cjs} +25 -14
  14. package/dist/chunk-E6HSKRAE.js +9 -0
  15. package/dist/{chunk-33FXHM2E.cjs → chunk-ESKXG7Y6.cjs} +5 -5
  16. package/dist/{chunk-U7MWHXMF.cjs → chunk-FRBPAGEJ.cjs} +4 -4
  17. package/dist/chunk-I7UUPD3G.cjs +21252 -0
  18. package/dist/{chunk-YPPKY5XZ.js → chunk-IBZPJS4H.js} +26 -15
  19. package/dist/{chunk-CLL6VDPO.cjs → chunk-J5ARB4TE.cjs} +8 -8
  20. package/dist/{chunk-XCXFGTHW.cjs → chunk-J5ZF46NZ.cjs} +14 -14
  21. package/dist/{chunk-NZQ47NWD.js → chunk-KRYHLYN2.js} +1 -1
  22. package/dist/{chunk-RXNYY5K5.js → chunk-LQHM3ADX.js} +172 -4
  23. package/dist/{chunk-HTERSQGF.cjs → chunk-MTS6SVNP.cjs} +4 -4
  24. package/dist/chunk-N4S22XX3.js +6208 -0
  25. package/dist/chunk-OKMBYX3F.cjs +6220 -0
  26. package/dist/{chunk-6IPPANNX.js → chunk-P7LVE2TF.js} +2 -2
  27. package/dist/chunk-RZQJAZKC.js +22 -0
  28. package/dist/{chunk-PLDVGOKZ.js → chunk-S274QFFB.js} +2 -2
  29. package/dist/chunk-SQIHFEXI.cjs +25 -0
  30. package/dist/chunk-TBTWZC74.cjs +32 -0
  31. package/dist/{chunk-NAJGGUAM.cjs → chunk-TC3VRWZV.cjs} +2 -2
  32. package/dist/{chunk-I664KOWP.js → chunk-TQP2T33V.js} +5 -5
  33. package/dist/{chunk-AZV45DMG.js → chunk-V2XE3NCG.js} +2 -2
  34. package/dist/{chunk-NTD4JLDW.cjs → chunk-YTLE5K7G.cjs} +1 -1
  35. package/dist/{chunk-HUQY2WR5.js → chunk-YTSMFGTW.js} +13 -3
  36. package/dist/{chunk-EMH4IP2U.js → chunk-ZRONAQBV.js} +1 -1
  37. package/dist/class-validator.cjs +57 -0
  38. package/dist/class-validator.d.cts +57 -0
  39. package/dist/class-validator.d.ts +57 -0
  40. package/dist/class-validator.js +47 -0
  41. package/dist/cli.js +1 -1
  42. package/dist/cnic.d.cts +2 -1
  43. package/dist/cnic.d.ts +2 -1
  44. package/dist/geo.cjs +22 -6
  45. package/dist/geo.d.cts +56 -1
  46. package/dist/geo.d.ts +56 -1
  47. package/dist/geo.js +1 -1
  48. package/dist/hijri.d.cts +2 -1
  49. package/dist/hijri.d.ts +2 -1
  50. package/dist/holidays.cjs +4 -4
  51. package/dist/holidays.d.cts +2 -1
  52. package/dist/holidays.d.ts +2 -1
  53. package/dist/holidays.js +1 -1
  54. package/dist/iban.cjs +5 -5
  55. package/dist/iban.d.cts +10 -7
  56. package/dist/iban.d.ts +10 -7
  57. package/dist/iban.js +1 -1
  58. package/dist/index.cjs +106 -68
  59. package/dist/index.d.cts +5 -3
  60. package/dist/index.d.ts +5 -3
  61. package/dist/index.js +16 -14
  62. package/dist/input.cjs +9 -9
  63. package/dist/input.d.cts +2 -1
  64. package/dist/input.d.ts +2 -1
  65. package/dist/input.js +3 -3
  66. package/dist/joi.cjs +37 -0
  67. package/dist/joi.d.cts +24 -0
  68. package/dist/joi.d.ts +24 -0
  69. package/dist/joi.js +31 -0
  70. package/dist/networks.cjs +3 -3
  71. package/dist/networks.d.cts +2 -1
  72. package/dist/networks.d.ts +2 -1
  73. package/dist/networks.js +2 -2
  74. package/dist/numbers.cjs +6 -6
  75. package/dist/numbers.d.cts +2 -1
  76. package/dist/numbers.d.ts +2 -1
  77. package/dist/numbers.js +2 -2
  78. package/dist/passport.cjs +11 -0
  79. package/dist/passport.d.cts +27 -0
  80. package/dist/passport.d.ts +27 -0
  81. package/dist/passport.js +2 -0
  82. package/dist/phone.cjs +8 -8
  83. package/dist/phone.d.cts +2 -1
  84. package/dist/phone.d.ts +2 -1
  85. package/dist/phone.js +3 -3
  86. package/dist/postal.cjs +14 -6
  87. package/dist/postal.d.cts +54 -2
  88. package/dist/postal.d.ts +54 -2
  89. package/dist/postal.js +1 -1
  90. package/dist/raast.cjs +6 -6
  91. package/dist/raast.d.cts +2 -1
  92. package/dist/raast.d.ts +2 -1
  93. package/dist/raast.js +2 -2
  94. package/dist/superstruct.cjs +35 -0
  95. package/dist/superstruct.d.cts +24 -0
  96. package/dist/superstruct.d.ts +24 -0
  97. package/dist/superstruct.js +33 -0
  98. package/dist/tax.d.cts +2 -1
  99. package/dist/tax.d.ts +2 -1
  100. package/dist/valibot.cjs +12 -8
  101. package/dist/valibot.d.cts +2 -0
  102. package/dist/valibot.d.ts +2 -0
  103. package/dist/valibot.js +11 -7
  104. package/dist/vehicle.cjs +15 -0
  105. package/dist/vehicle.d.cts +43 -0
  106. package/dist/vehicle.d.ts +43 -0
  107. package/dist/vehicle.js +2 -0
  108. package/dist/whatsapp.cjs +3 -3
  109. package/dist/whatsapp.js +2 -2
  110. package/dist/words.d.cts +2 -1
  111. package/dist/words.d.ts +2 -1
  112. package/dist/yup.cjs +12 -8
  113. package/dist/yup.d.cts +2 -0
  114. package/dist/yup.d.ts +2 -0
  115. package/dist/yup.js +11 -7
  116. package/dist/zod.cjs +12 -8
  117. package/dist/zod.d.cts +2 -0
  118. package/dist/zod.d.ts +2 -0
  119. package/dist/zod.js +11 -7
  120. package/package.json +109 -11
  121. package/dist/chunk-4VVFS6FN.cjs +0 -715
  122. package/dist/chunk-GJENL6VK.cjs +0 -22
  123. package/dist/chunk-J272OMDL.js +0 -1687
  124. package/dist/chunk-LIYNKIKS.js +0 -709
  125. package/dist/chunk-SBS2GHM3.cjs +0 -1695
@@ -0,0 +1,24 @@
1
+ import * as superstruct from 'superstruct';
2
+ import { A as AdapterOptions } from './rules-GxgPiVws.cjs';
3
+
4
+ /**
5
+ * Superstruct structs for Pakistani identifiers.
6
+ *
7
+ * @example
8
+ * import { object, optional } from 'superstruct';
9
+ * import { pk } from 'pakdatakit/superstruct';
10
+ *
11
+ * const form = object({ cnic: pk.cnic(), phone: optional(pk.phone()) });
12
+ */
13
+ declare const pk: {
14
+ cnic: (options?: AdapterOptions) => superstruct.Struct<string, null>;
15
+ phone: (options?: AdapterOptions) => superstruct.Struct<string, null>;
16
+ iban: (options?: AdapterOptions) => superstruct.Struct<string, null>;
17
+ ntn: (options?: AdapterOptions) => superstruct.Struct<string, null>;
18
+ strn: (options?: AdapterOptions) => superstruct.Struct<string, null>;
19
+ landline: (options?: AdapterOptions) => superstruct.Struct<string, null>;
20
+ passport: (options?: AdapterOptions) => superstruct.Struct<string, null>;
21
+ vehiclePlate: (options?: AdapterOptions) => superstruct.Struct<string, null>;
22
+ };
23
+
24
+ export { AdapterOptions, pk };
@@ -0,0 +1,24 @@
1
+ import * as superstruct from 'superstruct';
2
+ import { A as AdapterOptions } from './rules-GxgPiVws.js';
3
+
4
+ /**
5
+ * Superstruct structs for Pakistani identifiers.
6
+ *
7
+ * @example
8
+ * import { object, optional } from 'superstruct';
9
+ * import { pk } from 'pakdatakit/superstruct';
10
+ *
11
+ * const form = object({ cnic: pk.cnic(), phone: optional(pk.phone()) });
12
+ */
13
+ declare const pk: {
14
+ cnic: (options?: AdapterOptions) => superstruct.Struct<string, null>;
15
+ phone: (options?: AdapterOptions) => superstruct.Struct<string, null>;
16
+ iban: (options?: AdapterOptions) => superstruct.Struct<string, null>;
17
+ ntn: (options?: AdapterOptions) => superstruct.Struct<string, null>;
18
+ strn: (options?: AdapterOptions) => superstruct.Struct<string, null>;
19
+ landline: (options?: AdapterOptions) => superstruct.Struct<string, null>;
20
+ passport: (options?: AdapterOptions) => superstruct.Struct<string, null>;
21
+ vehiclePlate: (options?: AdapterOptions) => superstruct.Struct<string, null>;
22
+ };
23
+
24
+ export { AdapterOptions, pk };
@@ -0,0 +1,33 @@
1
+ import { RULES } from './chunk-YTSMFGTW.js';
2
+ import './chunk-RZQJAZKC.js';
3
+ import './chunk-LQHM3ADX.js';
4
+ import './chunk-E6HSKRAE.js';
5
+ import './chunk-S274QFFB.js';
6
+ import './chunk-V2XE3NCG.js';
7
+ import './chunk-P7LVE2TF.js';
8
+ import './chunk-CEPNSHIC.js';
9
+ import './chunk-EEVNLTB4.js';
10
+ import './chunk-IBZPJS4H.js';
11
+ import './chunk-ENQ7O7VW.js';
12
+ import { refine, string } from 'superstruct';
13
+
14
+ function schema(name) {
15
+ const rule = RULES[name];
16
+ return (options = {}) => refine(
17
+ string(),
18
+ `pk-${name}`,
19
+ (value) => rule.test(value) || (options.message ?? rule.message)
20
+ );
21
+ }
22
+ var pk = {
23
+ cnic: schema("cnic"),
24
+ phone: schema("phone"),
25
+ iban: schema("iban"),
26
+ ntn: schema("ntn"),
27
+ strn: schema("strn"),
28
+ landline: schema("landline"),
29
+ passport: schema("passport"),
30
+ vehiclePlate: schema("vehiclePlate")
31
+ };
32
+
33
+ export { pk };
package/dist/tax.d.cts CHANGED
@@ -44,4 +44,5 @@ declare function validateNTN(ntn: string): boolean;
44
44
  */
45
45
  declare function validateSTRN(strn: string): boolean;
46
46
 
47
- export { type NTNInfo, type NTNType, analyzeNTN, validateNTN, validateSTRN };
47
+ export { analyzeNTN, validateNTN, validateSTRN };
48
+ export type { NTNInfo, NTNType };
package/dist/tax.d.ts CHANGED
@@ -44,4 +44,5 @@ declare function validateNTN(ntn: string): boolean;
44
44
  */
45
45
  declare function validateSTRN(strn: string): boolean;
46
46
 
47
- export { type NTNInfo, type NTNType, analyzeNTN, validateNTN, validateSTRN };
47
+ export { analyzeNTN, validateNTN, validateSTRN };
48
+ export type { NTNInfo, NTNType };
package/dist/valibot.cjs CHANGED
@@ -1,13 +1,15 @@
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 chunkTBTWZC74_cjs = require('./chunk-TBTWZC74.cjs');
4
+ require('./chunk-SQIHFEXI.cjs');
5
+ require('./chunk-AUQFA7EE.cjs');
6
+ require('./chunk-7E7L3NYS.cjs');
7
+ require('./chunk-ESKXG7Y6.cjs');
8
+ require('./chunk-MTS6SVNP.cjs');
9
+ require('./chunk-YTLE5K7G.cjs');
8
10
  require('./chunk-H6M6L26S.cjs');
9
11
  require('./chunk-HTCSHHOR.cjs');
10
- require('./chunk-3IARSCO6.cjs');
12
+ require('./chunk-DHOP7LQX.cjs');
11
13
  require('./chunk-VPBMIYO2.cjs');
12
14
  var v = require('valibot');
13
15
 
@@ -32,7 +34,7 @@ function _interopNamespace(e) {
32
34
  var v__namespace = /*#__PURE__*/_interopNamespace(v);
33
35
 
34
36
  function schema(name) {
35
- const rule = chunkGJENL6VK_cjs.RULES[name];
37
+ const rule = chunkTBTWZC74_cjs.RULES[name];
36
38
  return (options = {}) => v__namespace.pipe(v__namespace.string(), v__namespace.check(rule.test, options.message ?? rule.message));
37
39
  }
38
40
  var pk = {
@@ -41,7 +43,9 @@ var pk = {
41
43
  iban: schema("iban"),
42
44
  ntn: schema("ntn"),
43
45
  strn: schema("strn"),
44
- landline: schema("landline")
46
+ landline: schema("landline"),
47
+ passport: schema("passport"),
48
+ vehiclePlate: schema("vehiclePlate")
45
49
  };
46
50
 
47
51
  exports.pk = pk;
@@ -17,6 +17,8 @@ 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>]>;
20
22
  };
21
23
 
22
24
  export { AdapterOptions, pk };
package/dist/valibot.d.ts CHANGED
@@ -17,6 +17,8 @@ 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>]>;
20
22
  };
21
23
 
22
24
  export { AdapterOptions, pk };
package/dist/valibot.js CHANGED
@@ -1,11 +1,13 @@
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-YTSMFGTW.js';
2
+ import './chunk-RZQJAZKC.js';
3
+ import './chunk-LQHM3ADX.js';
4
+ import './chunk-E6HSKRAE.js';
5
+ import './chunk-S274QFFB.js';
6
+ import './chunk-V2XE3NCG.js';
7
+ import './chunk-P7LVE2TF.js';
6
8
  import './chunk-CEPNSHIC.js';
7
9
  import './chunk-EEVNLTB4.js';
8
- import './chunk-YPPKY5XZ.js';
10
+ import './chunk-IBZPJS4H.js';
9
11
  import './chunk-ENQ7O7VW.js';
10
12
  import * as v from 'valibot';
11
13
 
@@ -19,7 +21,9 @@ var pk = {
19
21
  iban: schema("iban"),
20
22
  ntn: schema("ntn"),
21
23
  strn: schema("strn"),
22
- landline: schema("landline")
24
+ landline: schema("landline"),
25
+ passport: schema("passport"),
26
+ vehiclePlate: schema("vehiclePlate")
23
27
  };
24
28
 
25
29
  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/words.d.cts CHANGED
@@ -46,4 +46,5 @@ declare function numberToWords(n: number, options?: NumberToWordsOptions): strin
46
46
  */
47
47
  declare function amountInWords(amount: number, options?: AmountInWordsOptions): string;
48
48
 
49
- export { type AmountInWordsOptions, type NumberToWordsOptions, type WordsLanguage, amountInWords, numberToWords };
49
+ export { amountInWords, numberToWords };
50
+ export type { AmountInWordsOptions, NumberToWordsOptions, WordsLanguage };
package/dist/words.d.ts CHANGED
@@ -46,4 +46,5 @@ declare function numberToWords(n: number, options?: NumberToWordsOptions): strin
46
46
  */
47
47
  declare function amountInWords(amount: number, options?: AmountInWordsOptions): string;
48
48
 
49
- export { type AmountInWordsOptions, type NumberToWordsOptions, type WordsLanguage, amountInWords, numberToWords };
49
+ export { amountInWords, numberToWords };
50
+ export type { AmountInWordsOptions, NumberToWordsOptions, WordsLanguage };
package/dist/yup.cjs CHANGED
@@ -1,18 +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 chunkTBTWZC74_cjs = require('./chunk-TBTWZC74.cjs');
4
+ require('./chunk-SQIHFEXI.cjs');
5
+ require('./chunk-AUQFA7EE.cjs');
6
+ require('./chunk-7E7L3NYS.cjs');
7
+ require('./chunk-ESKXG7Y6.cjs');
8
+ require('./chunk-MTS6SVNP.cjs');
9
+ require('./chunk-YTLE5K7G.cjs');
8
10
  require('./chunk-H6M6L26S.cjs');
9
11
  require('./chunk-HTCSHHOR.cjs');
10
- require('./chunk-3IARSCO6.cjs');
12
+ require('./chunk-DHOP7LQX.cjs');
11
13
  require('./chunk-VPBMIYO2.cjs');
12
14
  var yup = require('yup');
13
15
 
14
16
  function schema(name) {
15
- const rule = chunkGJENL6VK_cjs.RULES[name];
17
+ const rule = chunkTBTWZC74_cjs.RULES[name];
16
18
  return (options = {}) => yup.string().test(
17
19
  `pk-${name}`,
18
20
  options.message ?? rule.message,
@@ -26,7 +28,9 @@ var pk = {
26
28
  iban: schema("iban"),
27
29
  ntn: schema("ntn"),
28
30
  strn: schema("strn"),
29
- landline: schema("landline")
31
+ landline: schema("landline"),
32
+ passport: schema("passport"),
33
+ vehiclePlate: schema("vehiclePlate")
30
34
  };
31
35
 
32
36
  exports.pk = pk;
package/dist/yup.d.cts CHANGED
@@ -17,6 +17,8 @@ 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, "">;
20
22
  };
21
23
 
22
24
  export { AdapterOptions, pk };
package/dist/yup.d.ts CHANGED
@@ -17,6 +17,8 @@ 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, "">;
20
22
  };
21
23
 
22
24
  export { AdapterOptions, pk };
package/dist/yup.js CHANGED
@@ -1,11 +1,13 @@
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-YTSMFGTW.js';
2
+ import './chunk-RZQJAZKC.js';
3
+ import './chunk-LQHM3ADX.js';
4
+ import './chunk-E6HSKRAE.js';
5
+ import './chunk-S274QFFB.js';
6
+ import './chunk-V2XE3NCG.js';
7
+ import './chunk-P7LVE2TF.js';
6
8
  import './chunk-CEPNSHIC.js';
7
9
  import './chunk-EEVNLTB4.js';
8
- import './chunk-YPPKY5XZ.js';
10
+ import './chunk-IBZPJS4H.js';
9
11
  import './chunk-ENQ7O7VW.js';
10
12
  import { string } from 'yup';
11
13
 
@@ -24,7 +26,9 @@ var pk = {
24
26
  iban: schema("iban"),
25
27
  ntn: schema("ntn"),
26
28
  strn: schema("strn"),
27
- landline: schema("landline")
29
+ landline: schema("landline"),
30
+ passport: schema("passport"),
31
+ vehiclePlate: schema("vehiclePlate")
28
32
  };
29
33
 
30
34
  export { pk };
package/dist/zod.cjs CHANGED
@@ -1,18 +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 chunkTBTWZC74_cjs = require('./chunk-TBTWZC74.cjs');
4
+ require('./chunk-SQIHFEXI.cjs');
5
+ require('./chunk-AUQFA7EE.cjs');
6
+ require('./chunk-7E7L3NYS.cjs');
7
+ require('./chunk-ESKXG7Y6.cjs');
8
+ require('./chunk-MTS6SVNP.cjs');
9
+ require('./chunk-YTLE5K7G.cjs');
8
10
  require('./chunk-H6M6L26S.cjs');
9
11
  require('./chunk-HTCSHHOR.cjs');
10
- require('./chunk-3IARSCO6.cjs');
12
+ require('./chunk-DHOP7LQX.cjs');
11
13
  require('./chunk-VPBMIYO2.cjs');
12
14
  var zod = require('zod');
13
15
 
14
16
  function schema(name) {
15
- const rule = chunkGJENL6VK_cjs.RULES[name];
17
+ const rule = chunkTBTWZC74_cjs.RULES[name];
16
18
  return (options = {}) => zod.z.string().refine(rule.test, { message: options.message ?? rule.message });
17
19
  }
18
20
  var pk = {
@@ -21,7 +23,9 @@ var pk = {
21
23
  iban: schema("iban"),
22
24
  ntn: schema("ntn"),
23
25
  strn: schema("strn"),
24
- landline: schema("landline")
26
+ landline: schema("landline"),
27
+ passport: schema("passport"),
28
+ vehiclePlate: schema("vehiclePlate")
25
29
  };
26
30
 
27
31
  exports.pk = pk;
package/dist/zod.d.cts CHANGED
@@ -17,6 +17,8 @@ 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;
20
22
  };
21
23
 
22
24
  export { AdapterOptions, pk };
package/dist/zod.d.ts CHANGED
@@ -17,6 +17,8 @@ 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;
20
22
  };
21
23
 
22
24
  export { AdapterOptions, pk };
package/dist/zod.js CHANGED
@@ -1,11 +1,13 @@
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-YTSMFGTW.js';
2
+ import './chunk-RZQJAZKC.js';
3
+ import './chunk-LQHM3ADX.js';
4
+ import './chunk-E6HSKRAE.js';
5
+ import './chunk-S274QFFB.js';
6
+ import './chunk-V2XE3NCG.js';
7
+ import './chunk-P7LVE2TF.js';
6
8
  import './chunk-CEPNSHIC.js';
7
9
  import './chunk-EEVNLTB4.js';
8
- import './chunk-YPPKY5XZ.js';
10
+ import './chunk-IBZPJS4H.js';
9
11
  import './chunk-ENQ7O7VW.js';
10
12
  import { z } from 'zod';
11
13
 
@@ -19,7 +21,9 @@ var pk = {
19
21
  iban: schema("iban"),
20
22
  ntn: schema("ntn"),
21
23
  strn: schema("strn"),
22
- landline: schema("landline")
24
+ landline: schema("landline"),
25
+ passport: schema("passport"),
26
+ vehiclePlate: schema("vehiclePlate")
23
27
  };
24
28
 
25
29
  export { pk };