@plyaz/config 1.2.2 → 1.3.1
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/api.d.ts +54 -0
- package/dist/app.d.ts +30 -0
- package/dist/chains/contracts.d.ts +33 -0
- package/dist/chains/supportedChains.d.ts +21 -4
- package/dist/domains.d.ts +9 -0
- package/dist/features.d.ts +15 -0
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/locale/address.d.ts +154 -0
- package/dist/locale/countries.d.ts +753 -0
- package/dist/locale/currencies.d.ts +135 -0
- package/dist/locale/formats.d.ts +156 -0
- package/dist/locale/index.d.ts +14 -0
- package/dist/locale/iso.d.ts +73 -0
- package/dist/locale/languages.d.ts +20 -0
- package/dist/locale/phone.d.ts +130 -0
- package/dist/locales.d.ts +32 -0
- package/dist/math/constants.d.ts +4 -0
- package/dist/providers/alchemy.d.ts +27 -0
- package/dist/providers/oauth.d.ts +48 -0
- package/dist/security.d.ts +8 -0
- package/dist/social.cjs.map +1 -1
- package/dist/social.d.ts +36 -0
- package/dist/social.mjs.map +1 -1
- package/dist/utils/hash/constants.d.ts +282 -0
- package/dist/utils/hash/index.d.ts +8 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/string/constants.d.ts +90 -0
- package/package.json +3 -2
- package/dist/constants.d.ts +0 -3
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Address Formatting Constants
|
|
3
|
+
*
|
|
4
|
+
* Constants for address validation and formatting across different countries.
|
|
5
|
+
*
|
|
6
|
+
* @module locale/address
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Address formatting and validation constants
|
|
10
|
+
*/
|
|
11
|
+
export declare const ADDRESS_FORMATS: {
|
|
12
|
+
/**
|
|
13
|
+
* US ZIP code length
|
|
14
|
+
*/
|
|
15
|
+
readonly US_ZIP_LENGTH: 5;
|
|
16
|
+
/**
|
|
17
|
+
* US ZIP+4 code length
|
|
18
|
+
*/
|
|
19
|
+
readonly US_ZIP_PLUS4_LENGTH: 9;
|
|
20
|
+
/**
|
|
21
|
+
* US ZIP+4 separator
|
|
22
|
+
*/
|
|
23
|
+
readonly US_ZIP_SEPARATOR: "-";
|
|
24
|
+
/**
|
|
25
|
+
* Canadian postal code length
|
|
26
|
+
*/
|
|
27
|
+
readonly CA_POSTAL_CODE_LENGTH: 6;
|
|
28
|
+
/**
|
|
29
|
+
* UK postcode minimum length
|
|
30
|
+
*/
|
|
31
|
+
readonly UK_POSTCODE_MIN_LENGTH: 5;
|
|
32
|
+
/**
|
|
33
|
+
* UK postcode maximum length
|
|
34
|
+
*/
|
|
35
|
+
readonly UK_POSTCODE_MAX_LENGTH: 8;
|
|
36
|
+
/**
|
|
37
|
+
* German postal code length
|
|
38
|
+
*/
|
|
39
|
+
readonly DE_POSTAL_CODE_LENGTH: 5;
|
|
40
|
+
/**
|
|
41
|
+
* French postal code length
|
|
42
|
+
*/
|
|
43
|
+
readonly FR_POSTAL_CODE_LENGTH: 5;
|
|
44
|
+
/**
|
|
45
|
+
* Japanese postal code length
|
|
46
|
+
*/
|
|
47
|
+
readonly JP_POSTAL_CODE_LENGTH: 7;
|
|
48
|
+
/**
|
|
49
|
+
* Australian postal code length
|
|
50
|
+
*/
|
|
51
|
+
readonly AU_POSTAL_CODE_LENGTH: 4;
|
|
52
|
+
/**
|
|
53
|
+
* Brazilian CEP code length
|
|
54
|
+
*/
|
|
55
|
+
readonly BR_CEP_LENGTH: 8;
|
|
56
|
+
/**
|
|
57
|
+
* State/Province code length
|
|
58
|
+
*/
|
|
59
|
+
readonly STATE_CODE_LENGTH: 2;
|
|
60
|
+
/**
|
|
61
|
+
* State/Province full name maximum length
|
|
62
|
+
*/
|
|
63
|
+
readonly STATE_NAME_MAX_LENGTH: 50;
|
|
64
|
+
/**
|
|
65
|
+
* Maximum address line length
|
|
66
|
+
*/
|
|
67
|
+
readonly MAX_ADDRESS_LINE_LENGTH: 100;
|
|
68
|
+
/**
|
|
69
|
+
* Minimum address line length
|
|
70
|
+
*/
|
|
71
|
+
readonly MIN_ADDRESS_LINE_LENGTH: 3;
|
|
72
|
+
/**
|
|
73
|
+
* Maximum city name length
|
|
74
|
+
*/
|
|
75
|
+
readonly MAX_CITY_LENGTH: 50;
|
|
76
|
+
/**
|
|
77
|
+
* Minimum city name length
|
|
78
|
+
*/
|
|
79
|
+
readonly MIN_CITY_LENGTH: 2;
|
|
80
|
+
/**
|
|
81
|
+
* Maximum country name length
|
|
82
|
+
*/
|
|
83
|
+
readonly MAX_COUNTRY_LENGTH: 56;
|
|
84
|
+
/**
|
|
85
|
+
* Maximum building number length
|
|
86
|
+
*/
|
|
87
|
+
readonly MAX_BUILDING_NUMBER_LENGTH: 10;
|
|
88
|
+
/**
|
|
89
|
+
* Maximum apartment/suite number length
|
|
90
|
+
*/
|
|
91
|
+
readonly MAX_UNIT_NUMBER_LENGTH: 10;
|
|
92
|
+
/**
|
|
93
|
+
* PO Box number maximum length
|
|
94
|
+
*/
|
|
95
|
+
readonly MAX_PO_BOX_LENGTH: 10;
|
|
96
|
+
/**
|
|
97
|
+
* Maximum number of address lines
|
|
98
|
+
*/
|
|
99
|
+
readonly MAX_ADDRESS_LINES: 3;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Address field types
|
|
103
|
+
*/
|
|
104
|
+
export declare const ADDRESS_FIELDS: {
|
|
105
|
+
/**
|
|
106
|
+
* Street address line 1
|
|
107
|
+
*/
|
|
108
|
+
readonly ADDRESS_LINE_1: "addressLine1";
|
|
109
|
+
/**
|
|
110
|
+
* Street address line 2
|
|
111
|
+
*/
|
|
112
|
+
readonly ADDRESS_LINE_2: "addressLine2";
|
|
113
|
+
/**
|
|
114
|
+
* City or locality
|
|
115
|
+
*/
|
|
116
|
+
readonly CITY: "city";
|
|
117
|
+
/**
|
|
118
|
+
* State or province
|
|
119
|
+
*/
|
|
120
|
+
readonly STATE: "state";
|
|
121
|
+
/**
|
|
122
|
+
* Postal or ZIP code
|
|
123
|
+
*/
|
|
124
|
+
readonly POSTAL_CODE: "postalCode";
|
|
125
|
+
/**
|
|
126
|
+
* Country
|
|
127
|
+
*/
|
|
128
|
+
readonly COUNTRY: "country";
|
|
129
|
+
/**
|
|
130
|
+
* Building number
|
|
131
|
+
*/
|
|
132
|
+
readonly BUILDING_NUMBER: "buildingNumber";
|
|
133
|
+
/**
|
|
134
|
+
* Unit/Apartment number
|
|
135
|
+
*/
|
|
136
|
+
readonly UNIT_NUMBER: "unitNumber";
|
|
137
|
+
/**
|
|
138
|
+
* PO Box
|
|
139
|
+
*/
|
|
140
|
+
readonly PO_BOX: "poBox";
|
|
141
|
+
/**
|
|
142
|
+
* District or neighborhood
|
|
143
|
+
*/
|
|
144
|
+
readonly DISTRICT: "district";
|
|
145
|
+
/**
|
|
146
|
+
* County
|
|
147
|
+
*/
|
|
148
|
+
readonly COUNTY: "county";
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Type exports
|
|
152
|
+
*/
|
|
153
|
+
export type AddressFormat = (typeof ADDRESS_FORMATS)[keyof typeof ADDRESS_FORMATS];
|
|
154
|
+
export type AddressField = (typeof ADDRESS_FIELDS)[keyof typeof ADDRESS_FIELDS];
|