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
@@ -0,0 +1,91 @@
1
+ /**
2
+ * One band of the salaried rate table: income above `over` (and up to
3
+ * `upTo`) pays `fixed` plus `rate` percent of the amount above `over`.
4
+ */
5
+ interface SalaryTaxSlab {
6
+ /** Lower bound in rupees (income must exceed it). */
7
+ over: number;
8
+ /** Upper bound in rupees, or `null` for the top band. */
9
+ upTo: number | null;
10
+ /** Tax on the income up to `over`, in rupees. */
11
+ fixed: number;
12
+ /** Percent of the income above `over`. */
13
+ rate: number;
14
+ }
15
+ /** The salaried rate table for one tax year (1 July to 30 June). */
16
+ interface SalaryTaxYear {
17
+ /** The tax year, named after the June it ends in: 2026 is 1 July 2025 to 30 June 2026. */
18
+ taxYear: number;
19
+ /** `YYYY-MM-DD`, always 1 July. */
20
+ from: string;
21
+ /** `YYYY-MM-DD`, always 30 June. */
22
+ to: string;
23
+ /** The law that sets the table. */
24
+ law: string;
25
+ /** Official document. */
26
+ source: string;
27
+ slabs: SalaryTaxSlab[];
28
+ }
29
+ /** Options for {@link calculateSalaryTax} and {@link calculateMonthlySalaryTax}. */
30
+ interface SalaryTaxOptions {
31
+ /** Tax year, e.g. `2026`. Takes precedence over `date`. */
32
+ taxYear?: number;
33
+ /** A day in the tax year (`YYYY-MM-DD` or a `Date`). Defaults to today. */
34
+ date?: string | Date;
35
+ }
36
+ /** Result of {@link calculateSalaryTax}. */
37
+ interface SalaryTax {
38
+ /** Tax for the year, in rupees, rounded half up to the paisa. */
39
+ tax: number;
40
+ /** `tax / 12`, rounded half up to the paisa. */
41
+ monthly: number;
42
+ /** `tax` as a percent of the income, rounded half up to 2 decimals. */
43
+ effectiveRate: number;
44
+ /** The band the income falls in. */
45
+ slab: SalaryTaxSlab;
46
+ taxYear: number;
47
+ }
48
+ /** The tax year (July to June) that contains a date, or `null` for an invalid date. */
49
+ declare function getTaxYear(date?: string | Date): number | null;
50
+ /**
51
+ * Returns the salaried rate table for a tax year: Division I of Part I of
52
+ * the First Schedule to the Income Tax Ordinance 2001, clause (2), which
53
+ * applies when salary is more than 75% of taxable income.
54
+ *
55
+ * Covers tax years 2020 to 2027, each from FBR's consolidated Ordinance.
56
+ *
57
+ * @param taxYear - e.g. `2026` (1 July 2025 to 30 June 2026). Defaults to
58
+ * the current tax year.
59
+ * @returns The table, or `null` for a year that is not covered. Never throws.
60
+ */
61
+ declare function getSalaryTaxSlabs(taxYear?: number): SalaryTaxYear | null;
62
+ /** Which tax years {@link getSalaryTaxSlabs} covers, oldest first. */
63
+ declare function getSalaryTaxYears(): number[];
64
+ /**
65
+ * Income tax on a salaried individual's taxable income for a tax year, from
66
+ * the salaried rate table (see {@link getSalaryTaxSlabs}).
67
+ *
68
+ * The rate table only: the surcharge, tax credits, exemptions, the separate
69
+ * pension rate and withholding adjustments are not applied.
70
+ *
71
+ * @param annualIncome - Taxable income for the year in rupees, 0 to 1
72
+ * trillion (at most 2 decimals count)
73
+ * @returns The tax, or `null` for an invalid amount or a tax year that is
74
+ * not covered. Never throws.
75
+ *
76
+ * @example
77
+ * calculateSalaryTax(1_800_000, { taxYear: 2026 });
78
+ * // { tax: 72000, monthly: 6000, effectiveRate: 4, slab: { over: 1200000, … }, taxYear: 2026 }
79
+ */
80
+ declare function calculateSalaryTax(annualIncome: number, options?: SalaryTaxOptions): SalaryTax | null;
81
+ /**
82
+ * {@link calculateSalaryTax} for a monthly salary: the income is
83
+ * `monthlySalary × 12`, and `monthly` is the tax to withhold each month.
84
+ *
85
+ * @example
86
+ * calculateMonthlySalaryTax(150_000, { taxYear: 2026 })?.monthly; // 6000
87
+ */
88
+ declare function calculateMonthlySalaryTax(monthlySalary: number, options?: SalaryTaxOptions): SalaryTax | null;
89
+
90
+ export { calculateMonthlySalaryTax, calculateSalaryTax, getSalaryTaxSlabs, getSalaryTaxYears, getTaxYear };
91
+ export type { SalaryTax, SalaryTaxOptions, SalaryTaxSlab, SalaryTaxYear };
@@ -0,0 +1,2 @@
1
+ export { calculateMonthlySalaryTax, calculateSalaryTax, getSalaryTaxSlabs, getSalaryTaxYears, getTaxYear } from './chunk-5RGX4DWF.js';
2
+ import './chunk-5EY5DQS7.js';
package/dist/index.cjs CHANGED
@@ -1,31 +1,41 @@
1
1
  'use strict';
2
2
 
3
- var chunkNAJGGUAM_cjs = require('./chunk-NAJGGUAM.cjs');
3
+ var chunkTC3VRWZV_cjs = require('./chunk-TC3VRWZV.cjs');
4
4
  var chunkHIZQBWNW_cjs = require('./chunk-HIZQBWNW.cjs');
5
- var chunkU7MWHXMF_cjs = require('./chunk-U7MWHXMF.cjs');
6
- var chunk3ZA265SK_cjs = require('./chunk-3ZA265SK.cjs');
7
- var chunk33FXHM2E_cjs = require('./chunk-33FXHM2E.cjs');
8
- var chunkHTERSQGF_cjs = require('./chunk-HTERSQGF.cjs');
9
- require('./chunk-NTD4JLDW.cjs');
10
- var chunk4VSGCQ6K_cjs = require('./chunk-4VSGCQ6K.cjs');
5
+ var chunkESKXG7Y6_cjs = require('./chunk-ESKXG7Y6.cjs');
6
+ var chunkYDUXIENX_cjs = require('./chunk-YDUXIENX.cjs');
7
+ var chunk2OBKPYJZ_cjs = require('./chunk-2OBKPYJZ.cjs');
11
8
  var chunkH6M6L26S_cjs = require('./chunk-H6M6L26S.cjs');
12
- var chunkKEHCTYLO_cjs = require('./chunk-KEHCTYLO.cjs');
13
- var chunk47P7HILD_cjs = require('./chunk-47P7HILD.cjs');
14
- var chunk4VVFS6FN_cjs = require('./chunk-4VVFS6FN.cjs');
9
+ var chunkXVEG53NN_cjs = require('./chunk-XVEG53NN.cjs');
10
+ var chunkSQIHFEXI_cjs = require('./chunk-SQIHFEXI.cjs');
11
+ var chunkJ5ZF46NZ_cjs = require('./chunk-J5ZF46NZ.cjs');
12
+ var chunkCYJJ7KGC_cjs = require('./chunk-CYJJ7KGC.cjs');
13
+ var chunk5DDHO5Z7_cjs = require('./chunk-5DDHO5Z7.cjs');
14
+ var chunkTVL6RDAU_cjs = require('./chunk-TVL6RDAU.cjs');
15
+ var chunkDHOP7LQX_cjs = require('./chunk-DHOP7LQX.cjs');
16
+ var chunkMTS6SVNP_cjs = require('./chunk-MTS6SVNP.cjs');
17
+ var chunkAUQFA7EE_cjs = require('./chunk-AUQFA7EE.cjs');
18
+ require('./chunk-YTLE5K7G.cjs');
19
+ var chunk7E7L3NYS_cjs = require('./chunk-7E7L3NYS.cjs');
20
+ var chunkQFPEFD67_cjs = require('./chunk-QFPEFD67.cjs');
21
+ var chunkI7UUPD3G_cjs = require('./chunk-I7UUPD3G.cjs');
22
+ var chunkYQFI7W3I_cjs = require('./chunk-YQFI7W3I.cjs');
15
23
  var chunkHTCSHHOR_cjs = require('./chunk-HTCSHHOR.cjs');
24
+ var chunkYPAWNWFD_cjs = require('./chunk-YPAWNWFD.cjs');
25
+ var chunk5UCRHVI4_cjs = require('./chunk-5UCRHVI4.cjs');
26
+ var chunkCF6AMRBU_cjs = require('./chunk-CF6AMRBU.cjs');
27
+ require('./chunk-SF4ECUZ6.cjs');
16
28
  var chunkLVHTH4P7_cjs = require('./chunk-LVHTH4P7.cjs');
17
- var chunk34CJGJ67_cjs = require('./chunk-34CJGJ67.cjs');
18
- var chunkXCXFGTHW_cjs = require('./chunk-XCXFGTHW.cjs');
19
- var chunkCYJJ7KGC_cjs = require('./chunk-CYJJ7KGC.cjs');
20
- var chunk3IARSCO6_cjs = require('./chunk-3IARSCO6.cjs');
29
+ var chunk33GOK7EE_cjs = require('./chunk-33GOK7EE.cjs');
30
+ require('./chunk-E6GWBOKV.cjs');
21
31
  require('./chunk-VPBMIYO2.cjs');
22
32
 
23
33
  // src/data-version.ts
24
- var dataVersion = "2026-11-07";
34
+ var dataVersion = "2026-11-18";
25
35
 
26
36
  Object.defineProperty(exports, "createWhatsAppLink", {
27
37
  enumerable: true,
28
- get: function () { return chunkNAJGGUAM_cjs.createWhatsAppLink; }
38
+ get: function () { return chunkTC3VRWZV_cjs.createWhatsAppLink; }
29
39
  });
30
40
  Object.defineProperty(exports, "amountInWords", {
31
41
  enumerable: true,
@@ -35,133 +45,261 @@ Object.defineProperty(exports, "numberToWords", {
35
45
  enumerable: true,
36
46
  get: function () { return chunkHIZQBWNW_cjs.numberToWords; }
37
47
  });
38
- Object.defineProperty(exports, "checkCNICInput", {
48
+ Object.defineProperty(exports, "analyzePhone", {
39
49
  enumerable: true,
40
- get: function () { return chunkU7MWHXMF_cjs.checkCNICInput; }
50
+ get: function () { return chunkESKXG7Y6_cjs.analyzePhone; }
41
51
  });
42
- Object.defineProperty(exports, "checkIBANInput", {
52
+ Object.defineProperty(exports, "formatPhone", {
43
53
  enumerable: true,
44
- get: function () { return chunkU7MWHXMF_cjs.checkIBANInput; }
54
+ get: function () { return chunkESKXG7Y6_cjs.formatPhone; }
45
55
  });
46
- Object.defineProperty(exports, "checkPhoneInput", {
56
+ Object.defineProperty(exports, "validatePhone", {
47
57
  enumerable: true,
48
- get: function () { return chunkU7MWHXMF_cjs.checkPhoneInput; }
58
+ get: function () { return chunkESKXG7Y6_cjs.validatePhone; }
49
59
  });
50
- Object.defineProperty(exports, "formatCNICInput", {
60
+ Object.defineProperty(exports, "ADDRESS_WEIGHTS", {
51
61
  enumerable: true,
52
- get: function () { return chunkU7MWHXMF_cjs.formatCNICInput; }
62
+ get: function () { return chunkYDUXIENX_cjs.ADDRESS_WEIGHTS; }
53
63
  });
54
- Object.defineProperty(exports, "formatIBANInput", {
64
+ Object.defineProperty(exports, "phoneRiskSignals", {
55
65
  enumerable: true,
56
- get: function () { return chunkU7MWHXMF_cjs.formatIBANInput; }
66
+ get: function () { return chunkYDUXIENX_cjs.phoneRiskSignals; }
57
67
  });
58
- Object.defineProperty(exports, "formatPhoneInput", {
68
+ Object.defineProperty(exports, "scoreAddress", {
59
69
  enumerable: true,
60
- get: function () { return chunkU7MWHXMF_cjs.formatPhoneInput; }
70
+ get: function () { return chunkYDUXIENX_cjs.scoreAddress; }
61
71
  });
62
- Object.defineProperty(exports, "analyzeNumber", {
72
+ Object.defineProperty(exports, "createMerchantQr", {
63
73
  enumerable: true,
64
- get: function () { return chunk3ZA265SK_cjs.analyzeNumber; }
74
+ get: function () { return chunk2OBKPYJZ_cjs.createMerchantQr; }
65
75
  });
66
- Object.defineProperty(exports, "getAreaCode", {
76
+ Object.defineProperty(exports, "createRaastP2PQr", {
67
77
  enumerable: true,
68
- get: function () { return chunk3ZA265SK_cjs.getAreaCode; }
78
+ get: function () { return chunk2OBKPYJZ_cjs.createRaastP2PQr; }
69
79
  });
70
- Object.defineProperty(exports, "getNumberType", {
80
+ Object.defineProperty(exports, "parseRaastQr", {
71
81
  enumerable: true,
72
- get: function () { return chunk3ZA265SK_cjs.getNumberType; }
82
+ get: function () { return chunk2OBKPYJZ_cjs.parseRaastQr; }
73
83
  });
74
- Object.defineProperty(exports, "validateLandline", {
84
+ Object.defineProperty(exports, "validateRaastQr", {
75
85
  enumerable: true,
76
- get: function () { return chunk3ZA265SK_cjs.validateLandline; }
86
+ get: function () { return chunk2OBKPYJZ_cjs.validateRaastQr; }
77
87
  });
78
- Object.defineProperty(exports, "analyzePhone", {
88
+ Object.defineProperty(exports, "analyzeNTN", {
79
89
  enumerable: true,
80
- get: function () { return chunk33FXHM2E_cjs.analyzePhone; }
90
+ get: function () { return chunkH6M6L26S_cjs.analyzeNTN; }
81
91
  });
82
- Object.defineProperty(exports, "formatPhone", {
92
+ Object.defineProperty(exports, "validateNTN", {
83
93
  enumerable: true,
84
- get: function () { return chunk33FXHM2E_cjs.formatPhone; }
94
+ get: function () { return chunkH6M6L26S_cjs.validateNTN; }
85
95
  });
86
- Object.defineProperty(exports, "validatePhone", {
96
+ Object.defineProperty(exports, "validateSTRN", {
87
97
  enumerable: true,
88
- get: function () { return chunk33FXHM2E_cjs.validatePhone; }
98
+ get: function () { return chunkH6M6L26S_cjs.validateSTRN; }
89
99
  });
90
- Object.defineProperty(exports, "getNetwork", {
100
+ Object.defineProperty(exports, "compareUrdu", {
91
101
  enumerable: true,
92
- get: function () { return chunkHTERSQGF_cjs.getNetwork; }
102
+ get: function () { return chunkXVEG53NN_cjs.compareUrdu; }
93
103
  });
94
- Object.defineProperty(exports, "createMerchantQr", {
104
+ Object.defineProperty(exports, "isRTL", {
95
105
  enumerable: true,
96
- get: function () { return chunk4VSGCQ6K_cjs.createMerchantQr; }
106
+ get: function () { return chunkXVEG53NN_cjs.isRTL; }
97
107
  });
98
- Object.defineProperty(exports, "createRaastP2PQr", {
108
+ Object.defineProperty(exports, "normalizeRomanUrdu", {
99
109
  enumerable: true,
100
- get: function () { return chunk4VSGCQ6K_cjs.createRaastP2PQr; }
110
+ get: function () { return chunkXVEG53NN_cjs.normalizeRomanUrdu; }
101
111
  });
102
- Object.defineProperty(exports, "parseRaastQr", {
112
+ Object.defineProperty(exports, "normalizeText", {
103
113
  enumerable: true,
104
- get: function () { return chunk4VSGCQ6K_cjs.parseRaastQr; }
114
+ get: function () { return chunkXVEG53NN_cjs.normalizeText; }
105
115
  });
106
- Object.defineProperty(exports, "validateRaastQr", {
116
+ Object.defineProperty(exports, "slugify", {
107
117
  enumerable: true,
108
- get: function () { return chunk4VSGCQ6K_cjs.validateRaastQr; }
118
+ get: function () { return chunkXVEG53NN_cjs.slugify; }
109
119
  });
110
- Object.defineProperty(exports, "analyzeNTN", {
120
+ Object.defineProperty(exports, "toEnglishDigits", {
111
121
  enumerable: true,
112
- get: function () { return chunkH6M6L26S_cjs.analyzeNTN; }
122
+ get: function () { return chunkXVEG53NN_cjs.toEnglishDigits; }
113
123
  });
114
- Object.defineProperty(exports, "validateNTN", {
124
+ Object.defineProperty(exports, "toUrduDigits", {
115
125
  enumerable: true,
116
- get: function () { return chunkH6M6L26S_cjs.validateNTN; }
126
+ get: function () { return chunkXVEG53NN_cjs.toUrduDigits; }
117
127
  });
118
- Object.defineProperty(exports, "validateSTRN", {
128
+ Object.defineProperty(exports, "wrapBidi", {
119
129
  enumerable: true,
120
- get: function () { return chunkH6M6L26S_cjs.validateSTRN; }
130
+ get: function () { return chunkXVEG53NN_cjs.wrapBidi; }
121
131
  });
122
- Object.defineProperty(exports, "normalizeRomanUrdu", {
132
+ Object.defineProperty(exports, "parseVehiclePlate", {
123
133
  enumerable: true,
124
- get: function () { return chunkKEHCTYLO_cjs.normalizeRomanUrdu; }
134
+ get: function () { return chunkSQIHFEXI_cjs.parseVehiclePlate; }
125
135
  });
126
- Object.defineProperty(exports, "normalizeText", {
136
+ Object.defineProperty(exports, "validateVehiclePlate", {
127
137
  enumerable: true,
128
- get: function () { return chunkKEHCTYLO_cjs.normalizeText; }
138
+ get: function () { return chunkSQIHFEXI_cjs.validateVehiclePlate; }
129
139
  });
130
- Object.defineProperty(exports, "toEnglishDigits", {
140
+ Object.defineProperty(exports, "getHolidaysOn", {
131
141
  enumerable: true,
132
- get: function () { return chunkKEHCTYLO_cjs.toEnglishDigits; }
142
+ get: function () { return chunkJ5ZF46NZ_cjs.getHolidaysOn; }
133
143
  });
134
- Object.defineProperty(exports, "toUrduDigits", {
144
+ Object.defineProperty(exports, "getPakistanHolidays", {
145
+ enumerable: true,
146
+ get: function () { return chunkJ5ZF46NZ_cjs.getPakistanHolidays; }
147
+ });
148
+ Object.defineProperty(exports, "isPakistanHoliday", {
149
+ enumerable: true,
150
+ get: function () { return chunkJ5ZF46NZ_cjs.isPakistanHoliday; }
151
+ });
152
+ Object.defineProperty(exports, "formatHijri", {
153
+ enumerable: true,
154
+ get: function () { return chunkCYJJ7KGC_cjs.formatHijri; }
155
+ });
156
+ Object.defineProperty(exports, "fromHijri", {
157
+ enumerable: true,
158
+ get: function () { return chunkCYJJ7KGC_cjs.fromHijri; }
159
+ });
160
+ Object.defineProperty(exports, "getHijriMonthName", {
161
+ enumerable: true,
162
+ get: function () { return chunkCYJJ7KGC_cjs.getHijriMonthName; }
163
+ });
164
+ Object.defineProperty(exports, "isRamadan", {
165
+ enumerable: true,
166
+ get: function () { return chunkCYJJ7KGC_cjs.isRamadan; }
167
+ });
168
+ Object.defineProperty(exports, "toHijri", {
169
+ enumerable: true,
170
+ get: function () { return chunkCYJJ7KGC_cjs.toHijri; }
171
+ });
172
+ Object.defineProperty(exports, "calculateMonthlySalaryTax", {
173
+ enumerable: true,
174
+ get: function () { return chunk5DDHO5Z7_cjs.calculateMonthlySalaryTax; }
175
+ });
176
+ Object.defineProperty(exports, "calculateSalaryTax", {
177
+ enumerable: true,
178
+ get: function () { return chunk5DDHO5Z7_cjs.calculateSalaryTax; }
179
+ });
180
+ Object.defineProperty(exports, "getSalaryTaxSlabs", {
181
+ enumerable: true,
182
+ get: function () { return chunk5DDHO5Z7_cjs.getSalaryTaxSlabs; }
183
+ });
184
+ Object.defineProperty(exports, "getSalaryTaxYears", {
185
+ enumerable: true,
186
+ get: function () { return chunk5DDHO5Z7_cjs.getSalaryTaxYears; }
187
+ });
188
+ Object.defineProperty(exports, "getTaxYear", {
189
+ enumerable: true,
190
+ get: function () { return chunk5DDHO5Z7_cjs.getTaxYear; }
191
+ });
192
+ Object.defineProperty(exports, "checkCNICInput", {
193
+ enumerable: true,
194
+ get: function () { return chunkTVL6RDAU_cjs.checkCNICInput; }
195
+ });
196
+ Object.defineProperty(exports, "checkIBANInput", {
135
197
  enumerable: true,
136
- get: function () { return chunkKEHCTYLO_cjs.toUrduDigits; }
198
+ get: function () { return chunkTVL6RDAU_cjs.checkIBANInput; }
199
+ });
200
+ Object.defineProperty(exports, "checkPhoneInput", {
201
+ enumerable: true,
202
+ get: function () { return chunkTVL6RDAU_cjs.checkPhoneInput; }
203
+ });
204
+ Object.defineProperty(exports, "formatCNICInput", {
205
+ enumerable: true,
206
+ get: function () { return chunkTVL6RDAU_cjs.formatCNICInput; }
207
+ });
208
+ Object.defineProperty(exports, "formatIBANInput", {
209
+ enumerable: true,
210
+ get: function () { return chunkTVL6RDAU_cjs.formatIBANInput; }
211
+ });
212
+ Object.defineProperty(exports, "formatPhoneInput", {
213
+ enumerable: true,
214
+ get: function () { return chunkTVL6RDAU_cjs.formatPhoneInput; }
215
+ });
216
+ Object.defineProperty(exports, "getBankFromIBAN", {
217
+ enumerable: true,
218
+ get: function () { return chunkDHOP7LQX_cjs.getBankFromIBAN; }
219
+ });
220
+ Object.defineProperty(exports, "getBankInfo", {
221
+ enumerable: true,
222
+ get: function () { return chunkDHOP7LQX_cjs.getBankInfo; }
223
+ });
224
+ Object.defineProperty(exports, "getBanks", {
225
+ enumerable: true,
226
+ get: function () { return chunkDHOP7LQX_cjs.getBanks; }
227
+ });
228
+ Object.defineProperty(exports, "validateIBAN", {
229
+ enumerable: true,
230
+ get: function () { return chunkDHOP7LQX_cjs.validateIBAN; }
231
+ });
232
+ Object.defineProperty(exports, "getNetwork", {
233
+ enumerable: true,
234
+ get: function () { return chunkMTS6SVNP_cjs.getNetwork; }
235
+ });
236
+ Object.defineProperty(exports, "analyzeNumber", {
237
+ enumerable: true,
238
+ get: function () { return chunkAUQFA7EE_cjs.analyzeNumber; }
239
+ });
240
+ Object.defineProperty(exports, "getAreaCode", {
241
+ enumerable: true,
242
+ get: function () { return chunkAUQFA7EE_cjs.getAreaCode; }
243
+ });
244
+ Object.defineProperty(exports, "getNumberType", {
245
+ enumerable: true,
246
+ get: function () { return chunkAUQFA7EE_cjs.getNumberType; }
247
+ });
248
+ Object.defineProperty(exports, "validateLandline", {
249
+ enumerable: true,
250
+ get: function () { return chunkAUQFA7EE_cjs.validateLandline; }
251
+ });
252
+ Object.defineProperty(exports, "validatePassport", {
253
+ enumerable: true,
254
+ get: function () { return chunk7E7L3NYS_cjs.validatePassport; }
137
255
  });
138
256
  Object.defineProperty(exports, "formatAddress", {
139
257
  enumerable: true,
140
- get: function () { return chunk47P7HILD_cjs.formatAddress; }
258
+ get: function () { return chunkQFPEFD67_cjs.formatAddress; }
141
259
  });
142
260
  Object.defineProperty(exports, "parseAddress", {
143
261
  enumerable: true,
144
- get: function () { return chunk47P7HILD_cjs.parseAddress; }
262
+ get: function () { return chunkQFPEFD67_cjs.parseAddress; }
145
263
  });
146
264
  Object.defineProperty(exports, "getCityByPostalCode", {
147
265
  enumerable: true,
148
- get: function () { return chunk4VVFS6FN_cjs.getCityByPostalCode; }
266
+ get: function () { return chunkI7UUPD3G_cjs.getCityByPostalCode; }
267
+ });
268
+ Object.defineProperty(exports, "getPostOffice", {
269
+ enumerable: true,
270
+ get: function () { return chunkI7UUPD3G_cjs.getPostOffice; }
149
271
  });
150
272
  Object.defineProperty(exports, "getPostalAreas", {
151
273
  enumerable: true,
152
- get: function () { return chunk4VVFS6FN_cjs.getPostalAreas; }
274
+ get: function () { return chunkI7UUPD3G_cjs.getPostalAreas; }
153
275
  });
154
276
  Object.defineProperty(exports, "getPostalCode", {
155
277
  enumerable: true,
156
- get: function () { return chunk4VVFS6FN_cjs.getPostalCode; }
278
+ get: function () { return chunkI7UUPD3G_cjs.getPostalCode; }
157
279
  });
158
280
  Object.defineProperty(exports, "getPostalCodes", {
159
281
  enumerable: true,
160
- get: function () { return chunk4VVFS6FN_cjs.getPostalCodes; }
282
+ get: function () { return chunkI7UUPD3G_cjs.getPostalCodes; }
283
+ });
284
+ Object.defineProperty(exports, "searchPostOffices", {
285
+ enumerable: true,
286
+ get: function () { return chunkI7UUPD3G_cjs.searchPostOffices; }
161
287
  });
162
288
  Object.defineProperty(exports, "searchPostalCodes", {
163
289
  enumerable: true,
164
- get: function () { return chunk4VVFS6FN_cjs.searchPostalCodes; }
290
+ get: function () { return chunkI7UUPD3G_cjs.searchPostalCodes; }
291
+ });
292
+ Object.defineProperty(exports, "parseElectricityRef", {
293
+ enumerable: true,
294
+ get: function () { return chunkYQFI7W3I_cjs.parseElectricityRef; }
295
+ });
296
+ Object.defineProperty(exports, "validateElectricityRef", {
297
+ enumerable: true,
298
+ get: function () { return chunkYQFI7W3I_cjs.validateElectricityRef; }
299
+ });
300
+ Object.defineProperty(exports, "validateGasConsumerNumber", {
301
+ enumerable: true,
302
+ get: function () { return chunkYQFI7W3I_cjs.validateGasConsumerNumber; }
165
303
  });
166
304
  Object.defineProperty(exports, "getCNICInfo", {
167
305
  enumerable: true,
@@ -171,80 +309,84 @@ Object.defineProperty(exports, "validateCNIC", {
171
309
  enumerable: true,
172
310
  get: function () { return chunkHTCSHHOR_cjs.validateCNIC; }
173
311
  });
174
- Object.defineProperty(exports, "formatLakh", {
312
+ Object.defineProperty(exports, "mapCourierStatus", {
175
313
  enumerable: true,
176
- get: function () { return chunkLVHTH4P7_cjs.formatLakh; }
314
+ get: function () { return chunkYPAWNWFD_cjs.mapCourierStatus; }
177
315
  });
178
- Object.defineProperty(exports, "formatPKR", {
316
+ Object.defineProperty(exports, "normalizeCityForCourier", {
179
317
  enumerable: true,
180
- get: function () { return chunkLVHTH4P7_cjs.formatPKR; }
318
+ get: function () { return chunkYPAWNWFD_cjs.normalizeCityForCourier; }
181
319
  });
182
- Object.defineProperty(exports, "getDistrictProvince", {
320
+ Object.defineProperty(exports, "FBR_DI_SPEC_VERSION", {
183
321
  enumerable: true,
184
- get: function () { return chunk34CJGJ67_cjs.getDistrictProvince; }
322
+ get: function () { return chunk5UCRHVI4_cjs.FBR_DI_SPEC_VERSION; }
185
323
  });
186
- Object.defineProperty(exports, "getDistrictsByProvince", {
324
+ Object.defineProperty(exports, "buildFbrInvoice", {
187
325
  enumerable: true,
188
- get: function () { return chunk34CJGJ67_cjs.getDistrictsByProvince; }
326
+ get: function () { return chunk5UCRHVI4_cjs.buildFbrInvoice; }
189
327
  });
190
- Object.defineProperty(exports, "getProvince", {
328
+ Object.defineProperty(exports, "expectedSalesTax", {
191
329
  enumerable: true,
192
- get: function () { return chunk34CJGJ67_cjs.getProvince; }
330
+ get: function () { return chunk5UCRHVI4_cjs.expectedSalesTax; }
193
331
  });
194
- Object.defineProperty(exports, "searchCities", {
332
+ Object.defineProperty(exports, "validateFbrInvoice", {
195
333
  enumerable: true,
196
- get: function () { return chunk34CJGJ67_cjs.searchCities; }
334
+ get: function () { return chunk5UCRHVI4_cjs.validateFbrInvoice; }
197
335
  });
198
- Object.defineProperty(exports, "searchDistricts", {
336
+ Object.defineProperty(exports, "calculateSalesTax", {
199
337
  enumerable: true,
200
- get: function () { return chunk34CJGJ67_cjs.searchDistricts; }
338
+ get: function () { return chunkCF6AMRBU_cjs.calculateSalesTax; }
201
339
  });
202
- Object.defineProperty(exports, "getHolidaysOn", {
340
+ Object.defineProperty(exports, "getSalesTaxRate", {
203
341
  enumerable: true,
204
- get: function () { return chunkXCXFGTHW_cjs.getHolidaysOn; }
342
+ get: function () { return chunkCF6AMRBU_cjs.getSalesTaxRate; }
205
343
  });
206
- Object.defineProperty(exports, "getPakistanHolidays", {
344
+ Object.defineProperty(exports, "splitInclusive", {
207
345
  enumerable: true,
208
- get: function () { return chunkXCXFGTHW_cjs.getPakistanHolidays; }
346
+ get: function () { return chunkCF6AMRBU_cjs.splitInclusive; }
209
347
  });
210
- Object.defineProperty(exports, "isPakistanHoliday", {
348
+ Object.defineProperty(exports, "formatLakh", {
211
349
  enumerable: true,
212
- get: function () { return chunkXCXFGTHW_cjs.isPakistanHoliday; }
350
+ get: function () { return chunkLVHTH4P7_cjs.formatLakh; }
213
351
  });
214
- Object.defineProperty(exports, "formatHijri", {
352
+ Object.defineProperty(exports, "formatPKR", {
215
353
  enumerable: true,
216
- get: function () { return chunkCYJJ7KGC_cjs.formatHijri; }
354
+ get: function () { return chunkLVHTH4P7_cjs.formatPKR; }
217
355
  });
218
- Object.defineProperty(exports, "fromHijri", {
356
+ Object.defineProperty(exports, "getDistrictProvince", {
219
357
  enumerable: true,
220
- get: function () { return chunkCYJJ7KGC_cjs.fromHijri; }
358
+ get: function () { return chunk33GOK7EE_cjs.getDistrictProvince; }
221
359
  });
222
- Object.defineProperty(exports, "getHijriMonthName", {
360
+ Object.defineProperty(exports, "getDistrictsByProvince", {
223
361
  enumerable: true,
224
- get: function () { return chunkCYJJ7KGC_cjs.getHijriMonthName; }
362
+ get: function () { return chunk33GOK7EE_cjs.getDistrictsByProvince; }
225
363
  });
226
- Object.defineProperty(exports, "isRamadan", {
364
+ Object.defineProperty(exports, "getDivisionOfDistrict", {
227
365
  enumerable: true,
228
- get: function () { return chunkCYJJ7KGC_cjs.isRamadan; }
366
+ get: function () { return chunk33GOK7EE_cjs.getDivisionOfDistrict; }
229
367
  });
230
- Object.defineProperty(exports, "toHijri", {
368
+ Object.defineProperty(exports, "getDivisions", {
231
369
  enumerable: true,
232
- get: function () { return chunkCYJJ7KGC_cjs.toHijri; }
370
+ get: function () { return chunk33GOK7EE_cjs.getDivisions; }
233
371
  });
234
- Object.defineProperty(exports, "getBankFromIBAN", {
372
+ Object.defineProperty(exports, "getProvince", {
235
373
  enumerable: true,
236
- get: function () { return chunk3IARSCO6_cjs.getBankFromIBAN; }
374
+ get: function () { return chunk33GOK7EE_cjs.getProvince; }
237
375
  });
238
- Object.defineProperty(exports, "getBankInfo", {
376
+ Object.defineProperty(exports, "getTehsilDistrict", {
239
377
  enumerable: true,
240
- get: function () { return chunk3IARSCO6_cjs.getBankInfo; }
378
+ get: function () { return chunk33GOK7EE_cjs.getTehsilDistrict; }
241
379
  });
242
- Object.defineProperty(exports, "getBanks", {
380
+ Object.defineProperty(exports, "getTehsils", {
243
381
  enumerable: true,
244
- get: function () { return chunk3IARSCO6_cjs.getBanks; }
382
+ get: function () { return chunk33GOK7EE_cjs.getTehsils; }
245
383
  });
246
- Object.defineProperty(exports, "validateIBAN", {
384
+ Object.defineProperty(exports, "searchCities", {
385
+ enumerable: true,
386
+ get: function () { return chunk33GOK7EE_cjs.searchCities; }
387
+ });
388
+ Object.defineProperty(exports, "searchDistricts", {
247
389
  enumerable: true,
248
- get: function () { return chunk3IARSCO6_cjs.validateIBAN; }
390
+ get: function () { return chunk33GOK7EE_cjs.searchDistricts; }
249
391
  });
250
392
  exports.dataVersion = dataVersion;
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { CNICInfo, getCNICInfo, validateCNIC } from './cnic.cjs';
2
2
  export { PhoneAnalysis, analyzePhone, formatPhone, validatePhone } from './phone.cjs';
3
3
  export { NetworkName, getNetwork } from './networks.cjs';
4
- export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './geo.cjs';
4
+ export { getDistrictProvince, getDistrictsByProvince, getDivisionOfDistrict, getDivisions, getProvince, getTehsilDistrict, getTehsils, searchCities, searchDistricts } from './geo.cjs';
5
5
  export { formatLakh, formatPKR } from './format.cjs';
6
6
  export { createWhatsAppLink } from './whatsapp.cjs';
7
7
  export { BankInfo, BankType, getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './iban.cjs';
8
- export { getCityByPostalCode, getPostalAreas, getPostalCode, getPostalCodes, searchPostalCodes } from './postal.cjs';
8
+ export { PostOffice, getCityByPostalCode, getPostOffice, getPostalAreas, getPostalCode, getPostalCodes, searchPostOffices, searchPostalCodes } from './postal.cjs';
9
9
  export { ParsedAddress, formatAddress, parseAddress } from './address.cjs';
10
- export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits } from './text.cjs';
10
+ export { BidiDirection, SlugScript, SlugifyOptions, compareUrdu, isRTL, normalizeRomanUrdu, normalizeText, slugify, toEnglishDigits, toUrduDigits, wrapBidi } from './text.cjs';
11
11
  export { HijriDate, HijriOptions, formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri } from './hijri.cjs';
12
12
  export { AmountInWordsOptions, NumberToWordsOptions, WordsLanguage, amountInWords, numberToWords } from './words.cjs';
13
13
  export { NTNInfo, NTNType, analyzeNTN, validateNTN, validateSTRN } from './tax.cjs';
@@ -15,11 +15,19 @@ export { NumberInfo, NumberType, analyzeNumber, getAreaCode, getNumberType, vali
15
15
  export { MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastDuration, RaastP2PQrOptions, RaastQrError, RaastQrValidation, RaastQrWarning, ValidateRaastQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr } from './raast.cjs';
16
16
  export { Holiday, HolidayId, HolidayOptions, IslamicHolidayId, getHolidaysOn, getPakistanHolidays, isPakistanHoliday } from './holidays.cjs';
17
17
  export { InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './input.cjs';
18
+ export { validatePassport } from './passport.cjs';
19
+ export { VehiclePlate, parseVehiclePlate, validateVehiclePlate } from './vehicle.cjs';
20
+ export { ADDRESS_WEIGHTS, AddressPart, AddressScore, PhoneRiskFlag, phoneRiskSignals, scoreAddress } from './quality.cjs';
21
+ export { SalesTaxAmounts, SalesTaxKind, SalesTaxOptions, SalesTaxRate, SalesTaxRateQuery, calculateSalesTax, getSalesTaxRate, splitInclusive } from './salestax.cjs';
22
+ export { ElectricityRef, ElectricityRefType, GasCompany, parseElectricityRef, validateElectricityRef, validateGasConsumerNumber } from './bills.cjs';
23
+ export { Courier, CourierStatus, mapCourierStatus, normalizeCityForCourier } from './courier.cjs';
24
+ export { FBR_DI_SPEC_VERSION, FbrInvoice, FbrInvoiceBuild, FbrInvoiceError, FbrInvoiceInput, FbrInvoiceItem, FbrInvoiceItemInput, FbrInvoiceTotals, FbrInvoiceType, FbrInvoiceValidation, FbrInvoiceValidationOptions, FbrRegistrationType, buildFbrInvoice, expectedSalesTax, validateFbrInvoice } from './fbr-invoice.cjs';
25
+ export { SalaryTax, SalaryTaxOptions, SalaryTaxSlab, SalaryTaxYear, calculateMonthlySalaryTax, calculateSalaryTax, getSalaryTaxSlabs, getSalaryTaxYears, getTaxYear } from './incometax.cjs';
18
26
 
19
27
  /**
20
28
  * Date (YYYY-MM-DD) the bundled datasets were last checked against their
21
29
  * sources. See DATA.md for what each dataset is based on.
22
30
  */
23
- declare const dataVersion = "2026-11-07";
31
+ declare const dataVersion = "2026-11-18";
24
32
 
25
33
  export { dataVersion };