@bharat-ui/data 0.1.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.
- package/README.md +17 -0
- package/package.json +24 -0
- package/src/ifsc.ts +35 -0
- package/src/pincode.ts +39 -0
- package/tsconfig.json +9 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @bharat-ui/data
|
|
2
|
+
|
|
3
|
+
Static datasets for Indian validators — IFSC bank data and Pincode → district mapping.
|
|
4
|
+
Used internally by `@bharat-ui/validators`.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
\`\`\`bash
|
|
9
|
+
npm install @bharat-ui/data
|
|
10
|
+
\`\`\`
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
\`\`\`ts
|
|
15
|
+
import { IFSC_DATA } from '@bharat-ui/data/ifsc';
|
|
16
|
+
import { PINCODE_DATA } from '@bharat-ui/data/pincode';
|
|
17
|
+
\`\`\`
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bharat-ui/data",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./ifsc": {
|
|
8
|
+
"import": "./dist/ifsc.js",
|
|
9
|
+
"types": "./dist/ifsc.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"./pincode": {
|
|
12
|
+
"import": "./dist/pincode.js",
|
|
13
|
+
"types": "./dist/pincode.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc",
|
|
18
|
+
"check-types": "tsc --noEmit"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@bharat-ui/typescript-config": "*",
|
|
22
|
+
"typescript": "5.9.2"
|
|
23
|
+
}
|
|
24
|
+
}
|
package/src/ifsc.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface IFSCEntry {
|
|
2
|
+
bank: string;
|
|
3
|
+
branch: string;
|
|
4
|
+
address: string;
|
|
5
|
+
city: string;
|
|
6
|
+
state: string;
|
|
7
|
+
contact: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const IFSC_DATA: Record<string, IFSCEntry> = {
|
|
11
|
+
SBIN0001234: {
|
|
12
|
+
bank: "State Bank of India",
|
|
13
|
+
branch: "Vadodara Main",
|
|
14
|
+
address: "Vadodara Main Branch, RC Dutt Road",
|
|
15
|
+
city: "Vadodara",
|
|
16
|
+
state: "Gujarat",
|
|
17
|
+
contact: "02652234567",
|
|
18
|
+
},
|
|
19
|
+
HDFC0001234: {
|
|
20
|
+
bank: "HDFC Bank",
|
|
21
|
+
branch: "Vadodara",
|
|
22
|
+
address: "Race Course Circle, Vadodara",
|
|
23
|
+
city: "Vadodara",
|
|
24
|
+
state: "Gujarat",
|
|
25
|
+
contact: "02652345678",
|
|
26
|
+
},
|
|
27
|
+
ICIC0001234: {
|
|
28
|
+
bank: "ICICI Bank",
|
|
29
|
+
branch: "Alkapuri Vadodara",
|
|
30
|
+
address: "Alkapuri, Vadodara",
|
|
31
|
+
city: "Vadodara",
|
|
32
|
+
state: "Gujarat",
|
|
33
|
+
contact: "02652456789",
|
|
34
|
+
},
|
|
35
|
+
};
|
package/src/pincode.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface PincodeEntry {
|
|
2
|
+
district: string;
|
|
3
|
+
state: string;
|
|
4
|
+
zone: string;
|
|
5
|
+
headPO: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const PINCODE_DATA: Record<string, PincodeEntry> = {
|
|
9
|
+
"390001": {
|
|
10
|
+
district: "Vadodara",
|
|
11
|
+
state: "Gujarat",
|
|
12
|
+
zone: "Western",
|
|
13
|
+
headPO: "Vadodara HO",
|
|
14
|
+
},
|
|
15
|
+
"400001": {
|
|
16
|
+
district: "Mumbai",
|
|
17
|
+
state: "Maharashtra",
|
|
18
|
+
zone: "Western",
|
|
19
|
+
headPO: "Mumbai GPO",
|
|
20
|
+
},
|
|
21
|
+
"110001": {
|
|
22
|
+
district: "Central Delhi",
|
|
23
|
+
state: "Delhi",
|
|
24
|
+
zone: "Northern",
|
|
25
|
+
headPO: "Delhi GPO",
|
|
26
|
+
},
|
|
27
|
+
"800001": {
|
|
28
|
+
district: "Patna",
|
|
29
|
+
state: "Bihar",
|
|
30
|
+
zone: "Eastern",
|
|
31
|
+
headPO: "Patna GPO",
|
|
32
|
+
},
|
|
33
|
+
"851101": {
|
|
34
|
+
district: "Begusarai",
|
|
35
|
+
state: "Bihar",
|
|
36
|
+
zone: "Eastern",
|
|
37
|
+
headPO: "Begusarai HO",
|
|
38
|
+
},
|
|
39
|
+
};
|