pakdatakit 2.5.1 → 2.7.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 (92) hide show
  1. package/DATA.md +83 -7
  2. package/README.md +94 -31
  3. package/dist/{chunk-LQHM3ADX.js → chunk-33JPVN33.js} +11 -6
  4. package/dist/{chunk-XCFZKCV2.cjs → chunk-36K225SE.cjs} +14 -9
  5. package/dist/{chunk-CEPNSHIC.js → chunk-3OCMTNQ7.js} +1 -1
  6. package/dist/{chunk-YDUXIENX.cjs → chunk-4YLSPXBZ.cjs} +2 -2
  7. package/dist/{chunk-2OBKPYJZ.cjs → chunk-6AIN4FKB.cjs} +12 -4
  8. package/dist/chunk-7NTUEHQV.cjs +69 -0
  9. package/dist/{chunk-KRYHLYN2.js → chunk-BATPA7GN.js} +12 -4
  10. package/dist/chunk-CKCOK6X4.js +64 -0
  11. package/dist/{chunk-7DY26QPN.js → chunk-CRYCAMWC.js} +1 -1
  12. package/dist/{chunk-TVL6RDAU.cjs → chunk-EGF4CINK.cjs} +2 -2
  13. package/dist/{chunk-XVEG53NN.cjs → chunk-GOGEMCGG.cjs} +84 -0
  14. package/dist/chunk-NDW52ZK3.js +85 -0
  15. package/dist/chunk-NLSIAPZG.cjs +90 -0
  16. package/dist/{chunk-IDTRFOQW.js → chunk-OYQJQE5R.js} +10 -5
  17. package/dist/{chunk-5RGX4DWF.js → chunk-SGGQ6XB2.js} +46 -14
  18. package/dist/{chunk-UYFTXD4P.js → chunk-T6K46DGW.js} +1 -1
  19. package/dist/{chunk-AUQFA7EE.cjs → chunk-VSIVT5RT.cjs} +11 -6
  20. package/dist/{chunk-H6M6L26S.cjs → chunk-VZIBHQC7.cjs} +2 -2
  21. package/dist/{chunk-EA3SIHYT.js → chunk-WYNM5ZWY.js} +84 -1
  22. package/dist/{chunk-5DDHO5Z7.cjs → chunk-XWGSREI5.cjs} +46 -14
  23. package/dist/class-validator.cjs +18 -9
  24. package/dist/class-validator.d.cts +12 -3
  25. package/dist/class-validator.d.ts +12 -3
  26. package/dist/class-validator.js +17 -9
  27. package/dist/cli.js +1 -1
  28. package/dist/cnic.cjs +11 -3
  29. package/dist/cnic.d.cts +80 -3
  30. package/dist/cnic.d.ts +80 -3
  31. package/dist/cnic.js +1 -1
  32. package/dist/format.cjs +11 -3
  33. package/dist/format.d.cts +57 -1
  34. package/dist/format.d.ts +57 -1
  35. package/dist/format.js +1 -1
  36. package/dist/incometax.cjs +6 -6
  37. package/dist/incometax.d.cts +51 -7
  38. package/dist/incometax.d.ts +51 -7
  39. package/dist/incometax.js +1 -1
  40. package/dist/index.cjs +67 -47
  41. package/dist/index.d.cts +5 -5
  42. package/dist/index.d.ts +5 -5
  43. package/dist/index.js +10 -10
  44. package/dist/input.cjs +8 -8
  45. package/dist/input.js +2 -2
  46. package/dist/joi.cjs +10 -8
  47. package/dist/joi.d.cts +2 -1
  48. package/dist/joi.d.ts +2 -1
  49. package/dist/joi.js +9 -7
  50. package/dist/numbers.cjs +5 -5
  51. package/dist/numbers.d.cts +28 -5
  52. package/dist/numbers.d.ts +28 -5
  53. package/dist/numbers.js +1 -1
  54. package/dist/quality.cjs +5 -5
  55. package/dist/quality.js +2 -2
  56. package/dist/raast.cjs +5 -5
  57. package/dist/raast.d.cts +17 -6
  58. package/dist/raast.d.ts +17 -6
  59. package/dist/raast.js +1 -1
  60. package/dist/{rules-GxgPiVws.d.cts → rules-GEELAOfb.d.cts} +5 -0
  61. package/dist/{rules-GxgPiVws.d.ts → rules-GEELAOfb.d.ts} +5 -0
  62. package/dist/superstruct.cjs +10 -8
  63. package/dist/superstruct.d.cts +2 -1
  64. package/dist/superstruct.d.ts +2 -1
  65. package/dist/superstruct.js +9 -7
  66. package/dist/tax.cjs +5 -5
  67. package/dist/tax.d.cts +8 -2
  68. package/dist/tax.d.ts +8 -2
  69. package/dist/tax.js +2 -2
  70. package/dist/text.cjs +13 -9
  71. package/dist/text.d.cts +40 -4
  72. package/dist/text.d.ts +40 -4
  73. package/dist/text.js +1 -1
  74. package/dist/valibot.cjs +16 -8
  75. package/dist/valibot.d.cts +2 -1
  76. package/dist/valibot.d.ts +2 -1
  77. package/dist/valibot.js +15 -7
  78. package/dist/words.d.cts +4 -1
  79. package/dist/words.d.ts +4 -1
  80. package/dist/yup.cjs +10 -8
  81. package/dist/yup.d.cts +2 -1
  82. package/dist/yup.d.ts +2 -1
  83. package/dist/yup.js +9 -7
  84. package/dist/zod.cjs +12 -8
  85. package/dist/zod.d.cts +2 -1
  86. package/dist/zod.d.ts +2 -1
  87. package/dist/zod.js +11 -7
  88. package/package.json +2 -2
  89. package/dist/chunk-6TSKA2PH.js +0 -38
  90. package/dist/chunk-EEVNLTB4.js +0 -32
  91. package/dist/chunk-HTCSHHOR.cjs +0 -35
  92. package/dist/chunk-LVHTH4P7.cjs +0 -41
package/dist/index.cjs CHANGED
@@ -3,35 +3,35 @@
3
3
  var chunkTC3VRWZV_cjs = require('./chunk-TC3VRWZV.cjs');
4
4
  var chunkHIZQBWNW_cjs = require('./chunk-HIZQBWNW.cjs');
5
5
  var chunkESKXG7Y6_cjs = require('./chunk-ESKXG7Y6.cjs');
6
- var chunkYDUXIENX_cjs = require('./chunk-YDUXIENX.cjs');
7
- var chunk2OBKPYJZ_cjs = require('./chunk-2OBKPYJZ.cjs');
8
- var chunkH6M6L26S_cjs = require('./chunk-H6M6L26S.cjs');
9
- var chunkXVEG53NN_cjs = require('./chunk-XVEG53NN.cjs');
6
+ var chunk4YLSPXBZ_cjs = require('./chunk-4YLSPXBZ.cjs');
7
+ var chunk6AIN4FKB_cjs = require('./chunk-6AIN4FKB.cjs');
8
+ var chunkVZIBHQC7_cjs = require('./chunk-VZIBHQC7.cjs');
9
+ var chunkGOGEMCGG_cjs = require('./chunk-GOGEMCGG.cjs');
10
10
  var chunkSQIHFEXI_cjs = require('./chunk-SQIHFEXI.cjs');
11
11
  var chunkJ5ZF46NZ_cjs = require('./chunk-J5ZF46NZ.cjs');
12
12
  var chunkCYJJ7KGC_cjs = require('./chunk-CYJJ7KGC.cjs');
13
- var chunk5DDHO5Z7_cjs = require('./chunk-5DDHO5Z7.cjs');
14
- var chunkTVL6RDAU_cjs = require('./chunk-TVL6RDAU.cjs');
13
+ var chunkXWGSREI5_cjs = require('./chunk-XWGSREI5.cjs');
14
+ var chunkEGF4CINK_cjs = require('./chunk-EGF4CINK.cjs');
15
15
  var chunkDHOP7LQX_cjs = require('./chunk-DHOP7LQX.cjs');
16
16
  var chunkMTS6SVNP_cjs = require('./chunk-MTS6SVNP.cjs');
17
- var chunkAUQFA7EE_cjs = require('./chunk-AUQFA7EE.cjs');
17
+ var chunkVSIVT5RT_cjs = require('./chunk-VSIVT5RT.cjs');
18
18
  require('./chunk-YTLE5K7G.cjs');
19
19
  var chunk7E7L3NYS_cjs = require('./chunk-7E7L3NYS.cjs');
20
20
  var chunkQFPEFD67_cjs = require('./chunk-QFPEFD67.cjs');
21
21
  var chunkI7UUPD3G_cjs = require('./chunk-I7UUPD3G.cjs');
22
22
  var chunkYQFI7W3I_cjs = require('./chunk-YQFI7W3I.cjs');
23
- var chunkHTCSHHOR_cjs = require('./chunk-HTCSHHOR.cjs');
23
+ var chunk7NTUEHQV_cjs = require('./chunk-7NTUEHQV.cjs');
24
24
  var chunkYPAWNWFD_cjs = require('./chunk-YPAWNWFD.cjs');
25
25
  var chunk5UCRHVI4_cjs = require('./chunk-5UCRHVI4.cjs');
26
26
  var chunkCF6AMRBU_cjs = require('./chunk-CF6AMRBU.cjs');
27
27
  require('./chunk-SF4ECUZ6.cjs');
28
- var chunkLVHTH4P7_cjs = require('./chunk-LVHTH4P7.cjs');
28
+ var chunkNLSIAPZG_cjs = require('./chunk-NLSIAPZG.cjs');
29
29
  var chunk33GOK7EE_cjs = require('./chunk-33GOK7EE.cjs');
30
30
  require('./chunk-E6GWBOKV.cjs');
31
31
  require('./chunk-VPBMIYO2.cjs');
32
32
 
33
33
  // src/data-version.ts
34
- var dataVersion = "2026-11-18";
34
+ var dataVersion = "2026-11-22";
35
35
 
36
36
  Object.defineProperty(exports, "createWhatsAppLink", {
37
37
  enumerable: true,
@@ -59,75 +59,79 @@ Object.defineProperty(exports, "validatePhone", {
59
59
  });
60
60
  Object.defineProperty(exports, "ADDRESS_WEIGHTS", {
61
61
  enumerable: true,
62
- get: function () { return chunkYDUXIENX_cjs.ADDRESS_WEIGHTS; }
62
+ get: function () { return chunk4YLSPXBZ_cjs.ADDRESS_WEIGHTS; }
63
63
  });
64
64
  Object.defineProperty(exports, "phoneRiskSignals", {
65
65
  enumerable: true,
66
- get: function () { return chunkYDUXIENX_cjs.phoneRiskSignals; }
66
+ get: function () { return chunk4YLSPXBZ_cjs.phoneRiskSignals; }
67
67
  });
68
68
  Object.defineProperty(exports, "scoreAddress", {
69
69
  enumerable: true,
70
- get: function () { return chunkYDUXIENX_cjs.scoreAddress; }
70
+ get: function () { return chunk4YLSPXBZ_cjs.scoreAddress; }
71
71
  });
72
72
  Object.defineProperty(exports, "createMerchantQr", {
73
73
  enumerable: true,
74
- get: function () { return chunk2OBKPYJZ_cjs.createMerchantQr; }
74
+ get: function () { return chunk6AIN4FKB_cjs.createMerchantQr; }
75
75
  });
76
76
  Object.defineProperty(exports, "createRaastP2PQr", {
77
77
  enumerable: true,
78
- get: function () { return chunk2OBKPYJZ_cjs.createRaastP2PQr; }
78
+ get: function () { return chunk6AIN4FKB_cjs.createRaastP2PQr; }
79
79
  });
80
80
  Object.defineProperty(exports, "parseRaastQr", {
81
81
  enumerable: true,
82
- get: function () { return chunk2OBKPYJZ_cjs.parseRaastQr; }
82
+ get: function () { return chunk6AIN4FKB_cjs.parseRaastQr; }
83
83
  });
84
84
  Object.defineProperty(exports, "validateRaastQr", {
85
85
  enumerable: true,
86
- get: function () { return chunk2OBKPYJZ_cjs.validateRaastQr; }
86
+ get: function () { return chunk6AIN4FKB_cjs.validateRaastQr; }
87
87
  });
88
88
  Object.defineProperty(exports, "analyzeNTN", {
89
89
  enumerable: true,
90
- get: function () { return chunkH6M6L26S_cjs.analyzeNTN; }
90
+ get: function () { return chunkVZIBHQC7_cjs.analyzeNTN; }
91
91
  });
92
92
  Object.defineProperty(exports, "validateNTN", {
93
93
  enumerable: true,
94
- get: function () { return chunkH6M6L26S_cjs.validateNTN; }
94
+ get: function () { return chunkVZIBHQC7_cjs.validateNTN; }
95
95
  });
96
96
  Object.defineProperty(exports, "validateSTRN", {
97
97
  enumerable: true,
98
- get: function () { return chunkH6M6L26S_cjs.validateSTRN; }
98
+ get: function () { return chunkVZIBHQC7_cjs.validateSTRN; }
99
99
  });
100
100
  Object.defineProperty(exports, "compareUrdu", {
101
101
  enumerable: true,
102
- get: function () { return chunkXVEG53NN_cjs.compareUrdu; }
102
+ get: function () { return chunkGOGEMCGG_cjs.compareUrdu; }
103
103
  });
104
104
  Object.defineProperty(exports, "isRTL", {
105
105
  enumerable: true,
106
- get: function () { return chunkXVEG53NN_cjs.isRTL; }
106
+ get: function () { return chunkGOGEMCGG_cjs.isRTL; }
107
107
  });
108
108
  Object.defineProperty(exports, "normalizeRomanUrdu", {
109
109
  enumerable: true,
110
- get: function () { return chunkXVEG53NN_cjs.normalizeRomanUrdu; }
110
+ get: function () { return chunkGOGEMCGG_cjs.normalizeRomanUrdu; }
111
111
  });
112
112
  Object.defineProperty(exports, "normalizeText", {
113
113
  enumerable: true,
114
- get: function () { return chunkXVEG53NN_cjs.normalizeText; }
114
+ get: function () { return chunkGOGEMCGG_cjs.normalizeText; }
115
+ });
116
+ Object.defineProperty(exports, "romanUrduKey", {
117
+ enumerable: true,
118
+ get: function () { return chunkGOGEMCGG_cjs.romanUrduKey; }
115
119
  });
116
120
  Object.defineProperty(exports, "slugify", {
117
121
  enumerable: true,
118
- get: function () { return chunkXVEG53NN_cjs.slugify; }
122
+ get: function () { return chunkGOGEMCGG_cjs.slugify; }
119
123
  });
120
124
  Object.defineProperty(exports, "toEnglishDigits", {
121
125
  enumerable: true,
122
- get: function () { return chunkXVEG53NN_cjs.toEnglishDigits; }
126
+ get: function () { return chunkGOGEMCGG_cjs.toEnglishDigits; }
123
127
  });
124
128
  Object.defineProperty(exports, "toUrduDigits", {
125
129
  enumerable: true,
126
- get: function () { return chunkXVEG53NN_cjs.toUrduDigits; }
130
+ get: function () { return chunkGOGEMCGG_cjs.toUrduDigits; }
127
131
  });
128
132
  Object.defineProperty(exports, "wrapBidi", {
129
133
  enumerable: true,
130
- get: function () { return chunkXVEG53NN_cjs.wrapBidi; }
134
+ get: function () { return chunkGOGEMCGG_cjs.wrapBidi; }
131
135
  });
132
136
  Object.defineProperty(exports, "parseVehiclePlate", {
133
137
  enumerable: true,
@@ -171,47 +175,47 @@ Object.defineProperty(exports, "toHijri", {
171
175
  });
172
176
  Object.defineProperty(exports, "calculateMonthlySalaryTax", {
173
177
  enumerable: true,
174
- get: function () { return chunk5DDHO5Z7_cjs.calculateMonthlySalaryTax; }
178
+ get: function () { return chunkXWGSREI5_cjs.calculateMonthlySalaryTax; }
175
179
  });
176
180
  Object.defineProperty(exports, "calculateSalaryTax", {
177
181
  enumerable: true,
178
- get: function () { return chunk5DDHO5Z7_cjs.calculateSalaryTax; }
182
+ get: function () { return chunkXWGSREI5_cjs.calculateSalaryTax; }
179
183
  });
180
184
  Object.defineProperty(exports, "getSalaryTaxSlabs", {
181
185
  enumerable: true,
182
- get: function () { return chunk5DDHO5Z7_cjs.getSalaryTaxSlabs; }
186
+ get: function () { return chunkXWGSREI5_cjs.getSalaryTaxSlabs; }
183
187
  });
184
188
  Object.defineProperty(exports, "getSalaryTaxYears", {
185
189
  enumerable: true,
186
- get: function () { return chunk5DDHO5Z7_cjs.getSalaryTaxYears; }
190
+ get: function () { return chunkXWGSREI5_cjs.getSalaryTaxYears; }
187
191
  });
188
192
  Object.defineProperty(exports, "getTaxYear", {
189
193
  enumerable: true,
190
- get: function () { return chunk5DDHO5Z7_cjs.getTaxYear; }
194
+ get: function () { return chunkXWGSREI5_cjs.getTaxYear; }
191
195
  });
192
196
  Object.defineProperty(exports, "checkCNICInput", {
193
197
  enumerable: true,
194
- get: function () { return chunkTVL6RDAU_cjs.checkCNICInput; }
198
+ get: function () { return chunkEGF4CINK_cjs.checkCNICInput; }
195
199
  });
196
200
  Object.defineProperty(exports, "checkIBANInput", {
197
201
  enumerable: true,
198
- get: function () { return chunkTVL6RDAU_cjs.checkIBANInput; }
202
+ get: function () { return chunkEGF4CINK_cjs.checkIBANInput; }
199
203
  });
200
204
  Object.defineProperty(exports, "checkPhoneInput", {
201
205
  enumerable: true,
202
- get: function () { return chunkTVL6RDAU_cjs.checkPhoneInput; }
206
+ get: function () { return chunkEGF4CINK_cjs.checkPhoneInput; }
203
207
  });
204
208
  Object.defineProperty(exports, "formatCNICInput", {
205
209
  enumerable: true,
206
- get: function () { return chunkTVL6RDAU_cjs.formatCNICInput; }
210
+ get: function () { return chunkEGF4CINK_cjs.formatCNICInput; }
207
211
  });
208
212
  Object.defineProperty(exports, "formatIBANInput", {
209
213
  enumerable: true,
210
- get: function () { return chunkTVL6RDAU_cjs.formatIBANInput; }
214
+ get: function () { return chunkEGF4CINK_cjs.formatIBANInput; }
211
215
  });
212
216
  Object.defineProperty(exports, "formatPhoneInput", {
213
217
  enumerable: true,
214
- get: function () { return chunkTVL6RDAU_cjs.formatPhoneInput; }
218
+ get: function () { return chunkEGF4CINK_cjs.formatPhoneInput; }
215
219
  });
216
220
  Object.defineProperty(exports, "getBankFromIBAN", {
217
221
  enumerable: true,
@@ -235,19 +239,19 @@ Object.defineProperty(exports, "getNetwork", {
235
239
  });
236
240
  Object.defineProperty(exports, "analyzeNumber", {
237
241
  enumerable: true,
238
- get: function () { return chunkAUQFA7EE_cjs.analyzeNumber; }
242
+ get: function () { return chunkVSIVT5RT_cjs.analyzeNumber; }
239
243
  });
240
244
  Object.defineProperty(exports, "getAreaCode", {
241
245
  enumerable: true,
242
- get: function () { return chunkAUQFA7EE_cjs.getAreaCode; }
246
+ get: function () { return chunkVSIVT5RT_cjs.getAreaCode; }
243
247
  });
244
248
  Object.defineProperty(exports, "getNumberType", {
245
249
  enumerable: true,
246
- get: function () { return chunkAUQFA7EE_cjs.getNumberType; }
250
+ get: function () { return chunkVSIVT5RT_cjs.getNumberType; }
247
251
  });
248
252
  Object.defineProperty(exports, "validateLandline", {
249
253
  enumerable: true,
250
- get: function () { return chunkAUQFA7EE_cjs.validateLandline; }
254
+ get: function () { return chunkVSIVT5RT_cjs.validateLandline; }
251
255
  });
252
256
  Object.defineProperty(exports, "validatePassport", {
253
257
  enumerable: true,
@@ -301,13 +305,21 @@ Object.defineProperty(exports, "validateGasConsumerNumber", {
301
305
  enumerable: true,
302
306
  get: function () { return chunkYQFI7W3I_cjs.validateGasConsumerNumber; }
303
307
  });
308
+ Object.defineProperty(exports, "findCNICs", {
309
+ enumerable: true,
310
+ get: function () { return chunk7NTUEHQV_cjs.findCNICs; }
311
+ });
304
312
  Object.defineProperty(exports, "getCNICInfo", {
305
313
  enumerable: true,
306
- get: function () { return chunkHTCSHHOR_cjs.getCNICInfo; }
314
+ get: function () { return chunk7NTUEHQV_cjs.getCNICInfo; }
315
+ });
316
+ Object.defineProperty(exports, "maskCNICs", {
317
+ enumerable: true,
318
+ get: function () { return chunk7NTUEHQV_cjs.maskCNICs; }
307
319
  });
308
320
  Object.defineProperty(exports, "validateCNIC", {
309
321
  enumerable: true,
310
- get: function () { return chunkHTCSHHOR_cjs.validateCNIC; }
322
+ get: function () { return chunk7NTUEHQV_cjs.validateCNIC; }
311
323
  });
312
324
  Object.defineProperty(exports, "mapCourierStatus", {
313
325
  enumerable: true,
@@ -345,13 +357,21 @@ Object.defineProperty(exports, "splitInclusive", {
345
357
  enumerable: true,
346
358
  get: function () { return chunkCF6AMRBU_cjs.splitInclusive; }
347
359
  });
360
+ Object.defineProperty(exports, "formatAmountInput", {
361
+ enumerable: true,
362
+ get: function () { return chunkNLSIAPZG_cjs.formatAmountInput; }
363
+ });
348
364
  Object.defineProperty(exports, "formatLakh", {
349
365
  enumerable: true,
350
- get: function () { return chunkLVHTH4P7_cjs.formatLakh; }
366
+ get: function () { return chunkNLSIAPZG_cjs.formatLakh; }
351
367
  });
352
368
  Object.defineProperty(exports, "formatPKR", {
353
369
  enumerable: true,
354
- get: function () { return chunkLVHTH4P7_cjs.formatPKR; }
370
+ get: function () { return chunkNLSIAPZG_cjs.formatPKR; }
371
+ });
372
+ Object.defineProperty(exports, "parseAmount", {
373
+ enumerable: true,
374
+ get: function () { return chunkNLSIAPZG_cjs.parseAmount; }
355
375
  });
356
376
  Object.defineProperty(exports, "getDistrictProvince", {
357
377
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
- export { CNICInfo, getCNICInfo, validateCNIC } from './cnic.cjs';
1
+ export { CNICInfo, CNICMatch, MaskCNICsOptions, MaskedText, findCNICs, getCNICInfo, maskCNICs, validateCNIC } from './cnic.cjs';
2
2
  export { PhoneAnalysis, analyzePhone, formatPhone, validatePhone } from './phone.cjs';
3
3
  export { NetworkName, getNetwork } from './networks.cjs';
4
4
  export { getDistrictProvince, getDistrictsByProvince, getDivisionOfDistrict, getDivisions, getProvince, getTehsilDistrict, getTehsils, searchCities, searchDistricts } from './geo.cjs';
5
- export { formatLakh, formatPKR } from './format.cjs';
5
+ export { ParsedAmount, formatAmountInput, formatLakh, formatPKR, parseAmount } from './format.cjs';
6
6
  export { createWhatsAppLink } from './whatsapp.cjs';
7
7
  export { BankInfo, BankType, getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './iban.cjs';
8
8
  export { PostOffice, getCityByPostalCode, getPostOffice, getPostalAreas, getPostalCode, getPostalCodes, searchPostOffices, searchPostalCodes } from './postal.cjs';
9
9
  export { ParsedAddress, formatAddress, parseAddress } from './address.cjs';
10
- export { BidiDirection, SlugScript, SlugifyOptions, compareUrdu, isRTL, normalizeRomanUrdu, normalizeText, slugify, toEnglishDigits, toUrduDigits, wrapBidi } from './text.cjs';
10
+ export { BidiDirection, SlugScript, SlugifyOptions, compareUrdu, isRTL, normalizeRomanUrdu, normalizeText, romanUrduKey, 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';
@@ -22,12 +22,12 @@ export { SalesTaxAmounts, SalesTaxKind, SalesTaxOptions, SalesTaxRate, SalesTaxR
22
22
  export { ElectricityRef, ElectricityRefType, GasCompany, parseElectricityRef, validateElectricityRef, validateGasConsumerNumber } from './bills.cjs';
23
23
  export { Courier, CourierStatus, mapCourierStatus, normalizeCityForCourier } from './courier.cjs';
24
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';
25
+ export { SalaryTax, SalaryTaxOptions, SalaryTaxSlab, SalaryTaxSurcharge, SalaryTaxYear, calculateMonthlySalaryTax, calculateSalaryTax, getSalaryTaxSlabs, getSalaryTaxYears, getTaxYear } from './incometax.cjs';
26
26
 
27
27
  /**
28
28
  * Date (YYYY-MM-DD) the bundled datasets were last checked against their
29
29
  * sources. See DATA.md for what each dataset is based on.
30
30
  */
31
- declare const dataVersion = "2026-11-18";
31
+ declare const dataVersion = "2026-11-22";
32
32
 
33
33
  export { dataVersion };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- export { CNICInfo, getCNICInfo, validateCNIC } from './cnic.js';
1
+ export { CNICInfo, CNICMatch, MaskCNICsOptions, MaskedText, findCNICs, getCNICInfo, maskCNICs, validateCNIC } from './cnic.js';
2
2
  export { PhoneAnalysis, analyzePhone, formatPhone, validatePhone } from './phone.js';
3
3
  export { NetworkName, getNetwork } from './networks.js';
4
4
  export { getDistrictProvince, getDistrictsByProvince, getDivisionOfDistrict, getDivisions, getProvince, getTehsilDistrict, getTehsils, searchCities, searchDistricts } from './geo.js';
5
- export { formatLakh, formatPKR } from './format.js';
5
+ export { ParsedAmount, formatAmountInput, formatLakh, formatPKR, parseAmount } from './format.js';
6
6
  export { createWhatsAppLink } from './whatsapp.js';
7
7
  export { BankInfo, BankType, getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './iban.js';
8
8
  export { PostOffice, getCityByPostalCode, getPostOffice, getPostalAreas, getPostalCode, getPostalCodes, searchPostOffices, searchPostalCodes } from './postal.js';
9
9
  export { ParsedAddress, formatAddress, parseAddress } from './address.js';
10
- export { BidiDirection, SlugScript, SlugifyOptions, compareUrdu, isRTL, normalizeRomanUrdu, normalizeText, slugify, toEnglishDigits, toUrduDigits, wrapBidi } from './text.js';
10
+ export { BidiDirection, SlugScript, SlugifyOptions, compareUrdu, isRTL, normalizeRomanUrdu, normalizeText, romanUrduKey, slugify, toEnglishDigits, toUrduDigits, wrapBidi } from './text.js';
11
11
  export { HijriDate, HijriOptions, formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri } from './hijri.js';
12
12
  export { AmountInWordsOptions, NumberToWordsOptions, WordsLanguage, amountInWords, numberToWords } from './words.js';
13
13
  export { NTNInfo, NTNType, analyzeNTN, validateNTN, validateSTRN } from './tax.js';
@@ -22,12 +22,12 @@ export { SalesTaxAmounts, SalesTaxKind, SalesTaxOptions, SalesTaxRate, SalesTaxR
22
22
  export { ElectricityRef, ElectricityRefType, GasCompany, parseElectricityRef, validateElectricityRef, validateGasConsumerNumber } from './bills.js';
23
23
  export { Courier, CourierStatus, mapCourierStatus, normalizeCityForCourier } from './courier.js';
24
24
  export { FBR_DI_SPEC_VERSION, FbrInvoice, FbrInvoiceBuild, FbrInvoiceError, FbrInvoiceInput, FbrInvoiceItem, FbrInvoiceItemInput, FbrInvoiceTotals, FbrInvoiceType, FbrInvoiceValidation, FbrInvoiceValidationOptions, FbrRegistrationType, buildFbrInvoice, expectedSalesTax, validateFbrInvoice } from './fbr-invoice.js';
25
- export { SalaryTax, SalaryTaxOptions, SalaryTaxSlab, SalaryTaxYear, calculateMonthlySalaryTax, calculateSalaryTax, getSalaryTaxSlabs, getSalaryTaxYears, getTaxYear } from './incometax.js';
25
+ export { SalaryTax, SalaryTaxOptions, SalaryTaxSlab, SalaryTaxSurcharge, SalaryTaxYear, calculateMonthlySalaryTax, calculateSalaryTax, getSalaryTaxSlabs, getSalaryTaxYears, getTaxYear } from './incometax.js';
26
26
 
27
27
  /**
28
28
  * Date (YYYY-MM-DD) the bundled datasets were last checked against their
29
29
  * sources. See DATA.md for what each dataset is based on.
30
30
  */
31
- declare const dataVersion = "2026-11-18";
31
+ declare const dataVersion = "2026-11-22";
32
32
 
33
33
  export { dataVersion };
package/dist/index.js CHANGED
@@ -1,34 +1,34 @@
1
1
  export { createWhatsAppLink } from './chunk-ZRONAQBV.js';
2
2
  export { amountInWords, numberToWords } from './chunk-BR4QLZPX.js';
3
3
  export { analyzePhone, formatPhone, validatePhone } from './chunk-S274QFFB.js';
4
- export { ADDRESS_WEIGHTS, phoneRiskSignals, scoreAddress } from './chunk-UYFTXD4P.js';
5
- export { createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr } from './chunk-KRYHLYN2.js';
6
- export { analyzeNTN, validateNTN, validateSTRN } from './chunk-CEPNSHIC.js';
7
- export { compareUrdu, isRTL, normalizeRomanUrdu, normalizeText, slugify, toEnglishDigits, toUrduDigits, wrapBidi } from './chunk-EA3SIHYT.js';
4
+ export { ADDRESS_WEIGHTS, phoneRiskSignals, scoreAddress } from './chunk-T6K46DGW.js';
5
+ export { createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr } from './chunk-BATPA7GN.js';
6
+ export { analyzeNTN, validateNTN, validateSTRN } from './chunk-3OCMTNQ7.js';
7
+ export { compareUrdu, isRTL, normalizeRomanUrdu, normalizeText, romanUrduKey, slugify, toEnglishDigits, toUrduDigits, wrapBidi } from './chunk-WYNM5ZWY.js';
8
8
  export { parseVehiclePlate, validateVehiclePlate } from './chunk-RZQJAZKC.js';
9
9
  export { getHolidaysOn, getPakistanHolidays, isPakistanHoliday } from './chunk-CADQM4ZN.js';
10
10
  export { formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri } from './chunk-Z5JEIQVW.js';
11
- export { calculateMonthlySalaryTax, calculateSalaryTax, getSalaryTaxSlabs, getSalaryTaxYears, getTaxYear } from './chunk-5RGX4DWF.js';
12
- export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './chunk-7DY26QPN.js';
11
+ export { calculateMonthlySalaryTax, calculateSalaryTax, getSalaryTaxSlabs, getSalaryTaxYears, getTaxYear } from './chunk-SGGQ6XB2.js';
12
+ export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './chunk-CRYCAMWC.js';
13
13
  export { getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './chunk-IBZPJS4H.js';
14
14
  export { getNetwork } from './chunk-V2XE3NCG.js';
15
- export { analyzeNumber, getAreaCode, getNumberType, validateLandline } from './chunk-LQHM3ADX.js';
15
+ export { analyzeNumber, getAreaCode, getNumberType, validateLandline } from './chunk-33JPVN33.js';
16
16
  import './chunk-P7LVE2TF.js';
17
17
  export { validatePassport } from './chunk-E6HSKRAE.js';
18
18
  export { formatAddress, parseAddress } from './chunk-B7DOQ5QF.js';
19
19
  export { getCityByPostalCode, getPostOffice, getPostalAreas, getPostalCode, getPostalCodes, searchPostOffices, searchPostalCodes } from './chunk-33QMFE2Z.js';
20
20
  export { parseElectricityRef, validateElectricityRef, validateGasConsumerNumber } from './chunk-CZOZB4K3.js';
21
- export { getCNICInfo, validateCNIC } from './chunk-EEVNLTB4.js';
21
+ export { findCNICs, getCNICInfo, maskCNICs, validateCNIC } from './chunk-CKCOK6X4.js';
22
22
  export { mapCourierStatus, normalizeCityForCourier } from './chunk-4GSBHJX6.js';
23
23
  export { FBR_DI_SPEC_VERSION, buildFbrInvoice, expectedSalesTax, validateFbrInvoice } from './chunk-OTI7HY55.js';
24
24
  export { calculateSalesTax, getSalesTaxRate, splitInclusive } from './chunk-34U2ZMHR.js';
25
25
  import './chunk-5EY5DQS7.js';
26
- export { formatLakh, formatPKR } from './chunk-6TSKA2PH.js';
26
+ export { formatAmountInput, formatLakh, formatPKR, parseAmount } from './chunk-NDW52ZK3.js';
27
27
  export { getDistrictProvince, getDistrictsByProvince, getDivisionOfDistrict, getDivisions, getProvince, getTehsilDistrict, getTehsils, searchCities, searchDistricts } from './chunk-XOTCIXY6.js';
28
28
  import './chunk-E2XU6NOW.js';
29
29
  import './chunk-ENQ7O7VW.js';
30
30
 
31
31
  // src/data-version.ts
32
- var dataVersion = "2026-11-18";
32
+ var dataVersion = "2026-11-22";
33
33
 
34
34
  export { dataVersion };
package/dist/input.cjs CHANGED
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
2
 
3
- var chunkTVL6RDAU_cjs = require('./chunk-TVL6RDAU.cjs');
3
+ var chunkEGF4CINK_cjs = require('./chunk-EGF4CINK.cjs');
4
4
  require('./chunk-DHOP7LQX.cjs');
5
5
  require('./chunk-YTLE5K7G.cjs');
6
- require('./chunk-HTCSHHOR.cjs');
6
+ require('./chunk-7NTUEHQV.cjs');
7
7
  require('./chunk-VPBMIYO2.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "checkCNICInput", {
12
12
  enumerable: true,
13
- get: function () { return chunkTVL6RDAU_cjs.checkCNICInput; }
13
+ get: function () { return chunkEGF4CINK_cjs.checkCNICInput; }
14
14
  });
15
15
  Object.defineProperty(exports, "checkIBANInput", {
16
16
  enumerable: true,
17
- get: function () { return chunkTVL6RDAU_cjs.checkIBANInput; }
17
+ get: function () { return chunkEGF4CINK_cjs.checkIBANInput; }
18
18
  });
19
19
  Object.defineProperty(exports, "checkPhoneInput", {
20
20
  enumerable: true,
21
- get: function () { return chunkTVL6RDAU_cjs.checkPhoneInput; }
21
+ get: function () { return chunkEGF4CINK_cjs.checkPhoneInput; }
22
22
  });
23
23
  Object.defineProperty(exports, "formatCNICInput", {
24
24
  enumerable: true,
25
- get: function () { return chunkTVL6RDAU_cjs.formatCNICInput; }
25
+ get: function () { return chunkEGF4CINK_cjs.formatCNICInput; }
26
26
  });
27
27
  Object.defineProperty(exports, "formatIBANInput", {
28
28
  enumerable: true,
29
- get: function () { return chunkTVL6RDAU_cjs.formatIBANInput; }
29
+ get: function () { return chunkEGF4CINK_cjs.formatIBANInput; }
30
30
  });
31
31
  Object.defineProperty(exports, "formatPhoneInput", {
32
32
  enumerable: true,
33
- get: function () { return chunkTVL6RDAU_cjs.formatPhoneInput; }
33
+ get: function () { return chunkEGF4CINK_cjs.formatPhoneInput; }
34
34
  });
package/dist/input.js CHANGED
@@ -1,5 +1,5 @@
1
- export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './chunk-7DY26QPN.js';
1
+ export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput } from './chunk-CRYCAMWC.js';
2
2
  import './chunk-IBZPJS4H.js';
3
3
  import './chunk-P7LVE2TF.js';
4
- import './chunk-EEVNLTB4.js';
4
+ import './chunk-CKCOK6X4.js';
5
5
  import './chunk-ENQ7O7VW.js';
package/dist/joi.cjs CHANGED
@@ -1,18 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkXCFZKCV2_cjs = require('./chunk-XCFZKCV2.cjs');
3
+ var chunk36K225SE_cjs = require('./chunk-36K225SE.cjs');
4
4
  require('./chunk-ESKXG7Y6.cjs');
5
- require('./chunk-YDUXIENX.cjs');
6
- require('./chunk-H6M6L26S.cjs');
5
+ require('./chunk-4YLSPXBZ.cjs');
6
+ require('./chunk-VZIBHQC7.cjs');
7
7
  require('./chunk-SQIHFEXI.cjs');
8
8
  require('./chunk-DHOP7LQX.cjs');
9
9
  require('./chunk-MTS6SVNP.cjs');
10
- require('./chunk-AUQFA7EE.cjs');
10
+ require('./chunk-VSIVT5RT.cjs');
11
11
  require('./chunk-YTLE5K7G.cjs');
12
12
  require('./chunk-7E7L3NYS.cjs');
13
13
  require('./chunk-QFPEFD67.cjs');
14
14
  require('./chunk-I7UUPD3G.cjs');
15
- require('./chunk-HTCSHHOR.cjs');
15
+ require('./chunk-7NTUEHQV.cjs');
16
+ require('./chunk-NLSIAPZG.cjs');
16
17
  require('./chunk-33GOK7EE.cjs');
17
18
  require('./chunk-E6GWBOKV.cjs');
18
19
  require('./chunk-VPBMIYO2.cjs');
@@ -23,9 +24,9 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
23
24
  var Joi__default = /*#__PURE__*/_interopDefault(Joi);
24
25
 
25
26
  function schema(name) {
26
- const rule = chunkXCFZKCV2_cjs.RULES[name];
27
+ const rule = chunk36K225SE_cjs.RULES[name];
27
28
  return (options = {}) => Joi__default.default.string().custom(
28
- (value, helpers) => rule.test(value) ? value : helpers.message({ custom: options.message ?? rule.message })
29
+ (value, helpers) => rule.test(value, options) ? value : helpers.message({ custom: options.message ?? rule.message })
29
30
  );
30
31
  }
31
32
  var pk = {
@@ -37,7 +38,8 @@ var pk = {
37
38
  landline: schema("landline"),
38
39
  passport: schema("passport"),
39
40
  vehiclePlate: schema("vehiclePlate"),
40
- codPhone: schema("codPhone")
41
+ codPhone: schema("codPhone"),
42
+ amount: schema("amount")
41
43
  };
42
44
 
43
45
  exports.pk = pk;
package/dist/joi.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Joi from 'joi';
2
- import { A as AdapterOptions } from './rules-GxgPiVws.cjs';
2
+ import { A as AdapterOptions } from './rules-GEELAOfb.cjs';
3
3
 
4
4
  /**
5
5
  * Joi schemas for Pakistani identifiers.
@@ -20,6 +20,7 @@ declare const pk: {
20
20
  passport: (options?: AdapterOptions) => Joi.StringSchema<string>;
21
21
  vehiclePlate: (options?: AdapterOptions) => Joi.StringSchema<string>;
22
22
  codPhone: (options?: AdapterOptions) => Joi.StringSchema<string>;
23
+ amount: (options?: AdapterOptions) => Joi.StringSchema<string>;
23
24
  };
24
25
 
25
26
  export { AdapterOptions, pk };
package/dist/joi.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Joi from 'joi';
2
- import { A as AdapterOptions } from './rules-GxgPiVws.js';
2
+ import { A as AdapterOptions } from './rules-GEELAOfb.js';
3
3
 
4
4
  /**
5
5
  * Joi schemas for Pakistani identifiers.
@@ -20,6 +20,7 @@ declare const pk: {
20
20
  passport: (options?: AdapterOptions) => Joi.StringSchema<string>;
21
21
  vehiclePlate: (options?: AdapterOptions) => Joi.StringSchema<string>;
22
22
  codPhone: (options?: AdapterOptions) => Joi.StringSchema<string>;
23
+ amount: (options?: AdapterOptions) => Joi.StringSchema<string>;
23
24
  };
24
25
 
25
26
  export { AdapterOptions, pk };
package/dist/joi.js CHANGED
@@ -1,16 +1,17 @@
1
- import { RULES } from './chunk-IDTRFOQW.js';
1
+ import { RULES } from './chunk-OYQJQE5R.js';
2
2
  import './chunk-S274QFFB.js';
3
- import './chunk-UYFTXD4P.js';
4
- import './chunk-CEPNSHIC.js';
3
+ import './chunk-T6K46DGW.js';
4
+ import './chunk-3OCMTNQ7.js';
5
5
  import './chunk-RZQJAZKC.js';
6
6
  import './chunk-IBZPJS4H.js';
7
7
  import './chunk-V2XE3NCG.js';
8
- import './chunk-LQHM3ADX.js';
8
+ import './chunk-33JPVN33.js';
9
9
  import './chunk-P7LVE2TF.js';
10
10
  import './chunk-E6HSKRAE.js';
11
11
  import './chunk-B7DOQ5QF.js';
12
12
  import './chunk-33QMFE2Z.js';
13
- import './chunk-EEVNLTB4.js';
13
+ import './chunk-CKCOK6X4.js';
14
+ import './chunk-NDW52ZK3.js';
14
15
  import './chunk-XOTCIXY6.js';
15
16
  import './chunk-E2XU6NOW.js';
16
17
  import './chunk-ENQ7O7VW.js';
@@ -19,7 +20,7 @@ import Joi from 'joi';
19
20
  function schema(name) {
20
21
  const rule = RULES[name];
21
22
  return (options = {}) => Joi.string().custom(
22
- (value, helpers) => rule.test(value) ? value : helpers.message({ custom: options.message ?? rule.message })
23
+ (value, helpers) => rule.test(value, options) ? value : helpers.message({ custom: options.message ?? rule.message })
23
24
  );
24
25
  }
25
26
  var pk = {
@@ -31,7 +32,8 @@ var pk = {
31
32
  landline: schema("landline"),
32
33
  passport: schema("passport"),
33
34
  vehiclePlate: schema("vehiclePlate"),
34
- codPhone: schema("codPhone")
35
+ codPhone: schema("codPhone"),
36
+ amount: schema("amount")
35
37
  };
36
38
 
37
39
  export { pk };
package/dist/numbers.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkAUQFA7EE_cjs = require('./chunk-AUQFA7EE.cjs');
3
+ var chunkVSIVT5RT_cjs = require('./chunk-VSIVT5RT.cjs');
4
4
  require('./chunk-YTLE5K7G.cjs');
5
5
  require('./chunk-VPBMIYO2.cjs');
6
6
 
@@ -8,17 +8,17 @@ require('./chunk-VPBMIYO2.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "analyzeNumber", {
10
10
  enumerable: true,
11
- get: function () { return chunkAUQFA7EE_cjs.analyzeNumber; }
11
+ get: function () { return chunkVSIVT5RT_cjs.analyzeNumber; }
12
12
  });
13
13
  Object.defineProperty(exports, "getAreaCode", {
14
14
  enumerable: true,
15
- get: function () { return chunkAUQFA7EE_cjs.getAreaCode; }
15
+ get: function () { return chunkVSIVT5RT_cjs.getAreaCode; }
16
16
  });
17
17
  Object.defineProperty(exports, "getNumberType", {
18
18
  enumerable: true,
19
- get: function () { return chunkAUQFA7EE_cjs.getNumberType; }
19
+ get: function () { return chunkVSIVT5RT_cjs.getNumberType; }
20
20
  });
21
21
  Object.defineProperty(exports, "validateLandline", {
22
22
  enumerable: true,
23
- get: function () { return chunkAUQFA7EE_cjs.validateLandline; }
23
+ get: function () { return chunkVSIVT5RT_cjs.validateLandline; }
24
24
  });
@@ -1,4 +1,8 @@
1
- /** Kind of Pakistani telephone number. */
1
+ /**
2
+ * Kind of Pakistani telephone number. `'personal'` is never returned since
3
+ * 2.7.0 (0122 numbers have no PTA source; see DATA.md); it stays in the type
4
+ * so existing code compiles, and will be removed in 3.0.
5
+ */
2
6
  type NumberType = 'mobile' | 'landline' | 'uan' | 'toll-free' | 'premium' | 'personal';
3
7
  /** Result of {@link analyzeNumber}. */
4
8
  interface NumberInfo {
@@ -14,7 +18,8 @@ interface NumberInfo {
14
18
  }
15
19
  /**
16
20
  * Identifies and formats any Pakistani telephone number: mobile, landline,
17
- * UAN (`111`), toll-free (`0800`), premium-rate (`0900`) or personal (`0122`).
21
+ * UAN (`111`), toll-free (`0800`) or premium-rate (`0900`). 0122 numbers are
22
+ * not recognised: no PTA document lists them (see DATA.md).
18
23
  *
19
24
  * @example
20
25
  * analyzeNumber('021-111-825-888');
@@ -35,13 +40,31 @@ declare function analyzeNumber(phone: string): NumberInfo | null;
35
40
  * @returns Number type, or `null` if it is not a valid Pakistani number
36
41
  */
37
42
  declare function getNumberType(phone: string): NumberType | null;
43
+ /** Options for {@link validateLandline}. */
44
+ interface LandlineOptions {
45
+ /**
46
+ * Also accept the non-geographic service numbers a business may give as
47
+ * its landline: UAN (`021-111-123-456`, `111-123-456`), toll-free
48
+ * (`0800-12345`) and premium rate (`0900-12345`). Default `false`.
49
+ */
50
+ services?: boolean;
51
+ }
38
52
  /**
39
53
  * Validates a Pakistani landline (fixed-line) number such as `042-35761234`.
54
+ * With `{ services: true }` it also accepts UAN, toll-free and premium-rate
55
+ * numbers; {@link analyzeNumber} tells them apart with its `type` field.
56
+ *
57
+ * @example
58
+ * validateLandline('042-35761234'); // true
59
+ * validateLandline('021-111-123-456'); // false
60
+ * validateLandline('021-111-123-456', { services: true }); // true
40
61
  *
41
62
  * @param phone - Number in local or international format
42
- * @returns `true` for a valid landline number
63
+ * @param options - `services: true` to accept UAN, toll-free and premium numbers
64
+ * @returns `true` for a valid landline number (or service number, with
65
+ * `services`). Never throws.
43
66
  */
44
- declare function validateLandline(phone: string): boolean;
67
+ declare function validateLandline(phone: string, options?: LandlineOptions): boolean;
45
68
  /**
46
69
  * Returns the landline area code for a city, with trunk prefix (e.g. `"042"`).
47
70
  *
@@ -51,4 +74,4 @@ declare function validateLandline(phone: string): boolean;
51
74
  declare function getAreaCode(city: string): string | null;
52
75
 
53
76
  export { analyzeNumber, getAreaCode, getNumberType, validateLandline };
54
- export type { NumberInfo, NumberType };
77
+ export type { LandlineOptions, NumberInfo, NumberType };