@bharat-ui/data 0.1.2 → 0.1.3
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.
- package/dist/pincode.d.ts +7 -2
- package/dist/pincode.d.ts.map +1 -1
- package/dist/pincode.js +81 -0
- package/package.json +1 -1
package/dist/pincode.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
export interface PincodeEntry {
|
|
2
|
-
district
|
|
2
|
+
district?: string;
|
|
3
3
|
state: string;
|
|
4
4
|
zone: string;
|
|
5
|
-
headPO
|
|
5
|
+
headPO?: string;
|
|
6
6
|
}
|
|
7
|
+
export interface PincodePrefixEntry {
|
|
8
|
+
state: string;
|
|
9
|
+
zone: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const PINCODE_PREFIX: Record<string, PincodePrefixEntry>;
|
|
7
12
|
export declare const PINCODE_DATA: Record<string, PincodeEntry>;
|
|
8
13
|
//# sourceMappingURL=pincode.d.ts.map
|
package/dist/pincode.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pincode.d.ts","sourceRoot":"","sources":["../src/pincode.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"pincode.d.ts","sourceRoot":"","sources":["../src/pincode.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAgF7D,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAuvBrD,CAAC"}
|
package/dist/pincode.js
CHANGED
|
@@ -1,3 +1,84 @@
|
|
|
1
|
+
export const PINCODE_PREFIX = {
|
|
2
|
+
// Zone 1 — Northern
|
|
3
|
+
"11": { state: "Delhi", zone: "Northern" },
|
|
4
|
+
"12": { state: "Haryana", zone: "Northern" },
|
|
5
|
+
"13": { state: "Punjab", zone: "Northern" },
|
|
6
|
+
"14": { state: "Punjab", zone: "Northern" },
|
|
7
|
+
"15": { state: "Punjab", zone: "Northern" },
|
|
8
|
+
"16": { state: "Chandigarh", zone: "Northern" },
|
|
9
|
+
"17": { state: "Himachal Pradesh", zone: "Northern" },
|
|
10
|
+
"18": { state: "Jammu & Kashmir", zone: "Northern" },
|
|
11
|
+
"19": { state: "Jammu & Kashmir", zone: "Northern" },
|
|
12
|
+
// Zone 2 — Northern (UP / Uttarakhand)
|
|
13
|
+
"20": { state: "Uttar Pradesh", zone: "Northern" },
|
|
14
|
+
"21": { state: "Uttar Pradesh", zone: "Northern" },
|
|
15
|
+
"22": { state: "Uttar Pradesh", zone: "Northern" },
|
|
16
|
+
"23": { state: "Uttar Pradesh", zone: "Northern" },
|
|
17
|
+
"24": { state: "Uttarakhand", zone: "Northern" },
|
|
18
|
+
"25": { state: "Uttar Pradesh", zone: "Northern" },
|
|
19
|
+
"26": { state: "Uttar Pradesh", zone: "Northern" },
|
|
20
|
+
"27": { state: "Uttar Pradesh", zone: "Northern" },
|
|
21
|
+
"28": { state: "Uttar Pradesh", zone: "Northern" },
|
|
22
|
+
// Zone 3 — Western (Rajasthan / Gujarat)
|
|
23
|
+
"30": { state: "Rajasthan", zone: "Western" },
|
|
24
|
+
"31": { state: "Rajasthan", zone: "Western" },
|
|
25
|
+
"32": { state: "Rajasthan", zone: "Western" },
|
|
26
|
+
"33": { state: "Rajasthan", zone: "Western" },
|
|
27
|
+
"34": { state: "Rajasthan", zone: "Western" },
|
|
28
|
+
"36": { state: "Gujarat", zone: "Western" },
|
|
29
|
+
"37": { state: "Gujarat", zone: "Western" },
|
|
30
|
+
"38": { state: "Gujarat", zone: "Western" },
|
|
31
|
+
"39": { state: "Gujarat", zone: "Western" },
|
|
32
|
+
// Zone 4 — Western (Maharashtra / MP / Chhattisgarh / Goa)
|
|
33
|
+
"40": { state: "Maharashtra", zone: "Western" },
|
|
34
|
+
"41": { state: "Maharashtra", zone: "Western" },
|
|
35
|
+
"42": { state: "Maharashtra", zone: "Western" },
|
|
36
|
+
"43": { state: "Maharashtra", zone: "Western" },
|
|
37
|
+
"44": { state: "Maharashtra", zone: "Western" },
|
|
38
|
+
"45": { state: "Madhya Pradesh", zone: "Western" },
|
|
39
|
+
"46": { state: "Madhya Pradesh", zone: "Western" },
|
|
40
|
+
"47": { state: "Madhya Pradesh", zone: "Western" },
|
|
41
|
+
"48": { state: "Madhya Pradesh", zone: "Western" },
|
|
42
|
+
"49": { state: "Chhattisgarh", zone: "Western" },
|
|
43
|
+
// Zone 5 — Southern (AP / Telangana / Karnataka)
|
|
44
|
+
"50": { state: "Telangana", zone: "Southern" },
|
|
45
|
+
"51": { state: "Telangana", zone: "Southern" },
|
|
46
|
+
"52": { state: "Andhra Pradesh", zone: "Southern" },
|
|
47
|
+
"53": { state: "Andhra Pradesh", zone: "Southern" },
|
|
48
|
+
"56": { state: "Karnataka", zone: "Southern" },
|
|
49
|
+
"57": { state: "Karnataka", zone: "Southern" },
|
|
50
|
+
"58": { state: "Karnataka", zone: "Southern" },
|
|
51
|
+
"59": { state: "Karnataka", zone: "Southern" },
|
|
52
|
+
// Zone 6 — Southern (Tamil Nadu / Kerala / Puducherry)
|
|
53
|
+
"60": { state: "Tamil Nadu", zone: "Southern" },
|
|
54
|
+
"61": { state: "Tamil Nadu", zone: "Southern" },
|
|
55
|
+
"62": { state: "Tamil Nadu", zone: "Southern" },
|
|
56
|
+
"63": { state: "Tamil Nadu", zone: "Southern" },
|
|
57
|
+
"64": { state: "Tamil Nadu", zone: "Southern" },
|
|
58
|
+
"65": { state: "Tamil Nadu", zone: "Southern" },
|
|
59
|
+
"66": { state: "Kerala", zone: "Southern" },
|
|
60
|
+
"67": { state: "Kerala", zone: "Southern" },
|
|
61
|
+
"68": { state: "Kerala", zone: "Southern" },
|
|
62
|
+
"69": { state: "Kerala", zone: "Southern" },
|
|
63
|
+
// Zone 7 — Eastern (WB / NE / Odisha / Andaman)
|
|
64
|
+
"70": { state: "West Bengal", zone: "Eastern" },
|
|
65
|
+
"71": { state: "West Bengal", zone: "Eastern" },
|
|
66
|
+
"72": { state: "West Bengal", zone: "Eastern" },
|
|
67
|
+
"73": { state: "West Bengal", zone: "Eastern" },
|
|
68
|
+
"74": { state: "West Bengal", zone: "Eastern" },
|
|
69
|
+
"75": { state: "Odisha", zone: "Eastern" },
|
|
70
|
+
"76": { state: "Odisha", zone: "Eastern" },
|
|
71
|
+
"77": { state: "Odisha", zone: "Eastern" },
|
|
72
|
+
"78": { state: "Assam", zone: "Eastern" },
|
|
73
|
+
"79": { state: "Assam", zone: "Eastern" },
|
|
74
|
+
// Zone 8 — Eastern (Bihar / Jharkhand)
|
|
75
|
+
"80": { state: "Bihar", zone: "Eastern" },
|
|
76
|
+
"81": { state: "Bihar", zone: "Eastern" },
|
|
77
|
+
"82": { state: "Jharkhand", zone: "Eastern" },
|
|
78
|
+
"83": { state: "Jharkhand", zone: "Eastern" },
|
|
79
|
+
"84": { state: "Bihar", zone: "Eastern" },
|
|
80
|
+
"85": { state: "Bihar", zone: "Eastern" },
|
|
81
|
+
};
|
|
1
82
|
export const PINCODE_DATA = {
|
|
2
83
|
// ── DELHI ────────────────────────────────────────────────────
|
|
3
84
|
"110001": { district: "Central Delhi", state: "Delhi", zone: "Northern", headPO: "Delhi GPO" },
|