@plyaz/config 1.2.1 → 1.3.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/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 +31 -22
- 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 +2 -2
- package/dist/social.cjs.map +1 -1
- package/dist/social.d.ts +41 -0
- package/dist/social.mjs +2 -2
- package/dist/social.mjs.map +1 -1
- package/dist/utils/string/constants.d.ts +90 -0
- package/package.json +1 -1
- package/dist/constants.d.ts +0 -3
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Currency Code Constants
|
|
3
|
+
*
|
|
4
|
+
* ISO 4217 currency codes for international currencies.
|
|
5
|
+
*
|
|
6
|
+
* @module locale/currencies
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Common currency codes (ISO 4217)
|
|
10
|
+
*/
|
|
11
|
+
export declare const CURRENCY_CODES: {
|
|
12
|
+
readonly USD: "USD";
|
|
13
|
+
readonly EUR: "EUR";
|
|
14
|
+
readonly GBP: "GBP";
|
|
15
|
+
readonly JPY: "JPY";
|
|
16
|
+
readonly CHF: "CHF";
|
|
17
|
+
readonly CAD: "CAD";
|
|
18
|
+
readonly AUD: "AUD";
|
|
19
|
+
readonly CNY: "CNY";
|
|
20
|
+
readonly INR: "INR";
|
|
21
|
+
readonly KRW: "KRW";
|
|
22
|
+
readonly SGD: "SGD";
|
|
23
|
+
readonly HKD: "HKD";
|
|
24
|
+
readonly TWD: "TWD";
|
|
25
|
+
readonly THB: "THB";
|
|
26
|
+
readonly IDR: "IDR";
|
|
27
|
+
readonly MYR: "MYR";
|
|
28
|
+
readonly PHP: "PHP";
|
|
29
|
+
readonly VND: "VND";
|
|
30
|
+
readonly BDT: "BDT";
|
|
31
|
+
readonly PKR: "PKR";
|
|
32
|
+
readonly LKR: "LKR";
|
|
33
|
+
readonly SEK: "SEK";
|
|
34
|
+
readonly NOK: "NOK";
|
|
35
|
+
readonly DKK: "DKK";
|
|
36
|
+
readonly PLN: "PLN";
|
|
37
|
+
readonly CZK: "CZK";
|
|
38
|
+
readonly HUF: "HUF";
|
|
39
|
+
readonly RON: "RON";
|
|
40
|
+
readonly BGN: "BGN";
|
|
41
|
+
readonly HRK: "HRK";
|
|
42
|
+
readonly RSD: "RSD";
|
|
43
|
+
readonly ISK: "ISK";
|
|
44
|
+
readonly BRL: "BRL";
|
|
45
|
+
readonly MXN: "MXN";
|
|
46
|
+
readonly ARS: "ARS";
|
|
47
|
+
readonly CLP: "CLP";
|
|
48
|
+
readonly COP: "COP";
|
|
49
|
+
readonly PEN: "PEN";
|
|
50
|
+
readonly UYU: "UYU";
|
|
51
|
+
readonly VES: "VES";
|
|
52
|
+
readonly BOB: "BOB";
|
|
53
|
+
readonly PYG: "PYG";
|
|
54
|
+
readonly CRC: "CRC";
|
|
55
|
+
readonly GTQ: "GTQ";
|
|
56
|
+
readonly HNL: "HNL";
|
|
57
|
+
readonly NIO: "NIO";
|
|
58
|
+
readonly PAB: "PAB";
|
|
59
|
+
readonly DOP: "DOP";
|
|
60
|
+
readonly JMD: "JMD";
|
|
61
|
+
readonly TTD: "TTD";
|
|
62
|
+
readonly BBD: "BBD";
|
|
63
|
+
readonly AED: "AED";
|
|
64
|
+
readonly SAR: "SAR";
|
|
65
|
+
readonly QAR: "QAR";
|
|
66
|
+
readonly KWD: "KWD";
|
|
67
|
+
readonly BHD: "BHD";
|
|
68
|
+
readonly OMR: "OMR";
|
|
69
|
+
readonly JOD: "JOD";
|
|
70
|
+
readonly ILS: "ILS";
|
|
71
|
+
readonly TRY: "TRY";
|
|
72
|
+
readonly IQD: "IQD";
|
|
73
|
+
readonly IRR: "IRR";
|
|
74
|
+
readonly LBP: "LBP";
|
|
75
|
+
readonly SYP: "SYP";
|
|
76
|
+
readonly ZAR: "ZAR";
|
|
77
|
+
readonly NGN: "NGN";
|
|
78
|
+
readonly EGP: "EGP";
|
|
79
|
+
readonly KES: "KES";
|
|
80
|
+
readonly GHS: "GHS";
|
|
81
|
+
readonly MAD: "MAD";
|
|
82
|
+
readonly TND: "TND";
|
|
83
|
+
readonly DZD: "DZD";
|
|
84
|
+
readonly ETB: "ETB";
|
|
85
|
+
readonly TZS: "TZS";
|
|
86
|
+
readonly UGX: "UGX";
|
|
87
|
+
readonly ZMW: "ZMW";
|
|
88
|
+
readonly BWP: "BWP";
|
|
89
|
+
readonly MUR: "MUR";
|
|
90
|
+
readonly NZD: "NZD";
|
|
91
|
+
readonly FJD: "FJD";
|
|
92
|
+
readonly PGK: "PGK";
|
|
93
|
+
readonly RUB: "RUB";
|
|
94
|
+
readonly UAH: "UAH";
|
|
95
|
+
readonly BYN: "BYN";
|
|
96
|
+
readonly KZT: "KZT";
|
|
97
|
+
readonly UZS: "UZS";
|
|
98
|
+
readonly AZN: "AZN";
|
|
99
|
+
readonly GEL: "GEL";
|
|
100
|
+
readonly AMD: "AMD";
|
|
101
|
+
readonly BTC: "BTC";
|
|
102
|
+
readonly ETH: "ETH";
|
|
103
|
+
readonly USDT: "USDT";
|
|
104
|
+
readonly USDC: "USDC";
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Currency metadata
|
|
108
|
+
*/
|
|
109
|
+
export declare const CURRENCY_INFO: {
|
|
110
|
+
/**
|
|
111
|
+
* Currencies with no decimal places
|
|
112
|
+
*/
|
|
113
|
+
readonly NO_DECIMAL_CURRENCIES: readonly ["JPY", "KRW", "VND", "IDR", "CLP", "ISK", "TWD"];
|
|
114
|
+
/**
|
|
115
|
+
* Currencies with 3 decimal places
|
|
116
|
+
*/
|
|
117
|
+
readonly THREE_DECIMAL_CURRENCIES: readonly ["BHD", "IQD", "JOD", "KWD", "OMR", "TND"];
|
|
118
|
+
/**
|
|
119
|
+
* Major reserve currencies
|
|
120
|
+
*/
|
|
121
|
+
readonly RESERVE_CURRENCIES: readonly ["USD", "EUR", "GBP", "JPY", "CNY"];
|
|
122
|
+
/**
|
|
123
|
+
* G7 currencies
|
|
124
|
+
*/
|
|
125
|
+
readonly G7_CURRENCIES: readonly ["USD", "EUR", "GBP", "JPY", "CAD"];
|
|
126
|
+
/**
|
|
127
|
+
* Default decimal places for most currencies
|
|
128
|
+
*/
|
|
129
|
+
readonly DEFAULT_DECIMAL_PLACES: 2;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Type exports
|
|
133
|
+
*/
|
|
134
|
+
export type CurrencyCode = (typeof CURRENCY_CODES)[keyof typeof CURRENCY_CODES];
|
|
135
|
+
export type CurrencyInfo = (typeof CURRENCY_INFO)[keyof typeof CURRENCY_INFO];
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale and Date Formatting Constants
|
|
3
|
+
*
|
|
4
|
+
* Constants for formatting dates, numbers, and locale-specific values.
|
|
5
|
+
*
|
|
6
|
+
* @module locale/formats
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Number and currency formatting constants
|
|
10
|
+
*/
|
|
11
|
+
export declare const LOCALE_FORMATS: {
|
|
12
|
+
/**
|
|
13
|
+
* Locale separator character
|
|
14
|
+
*/
|
|
15
|
+
readonly LOCALE_SEPARATOR: "-";
|
|
16
|
+
/**
|
|
17
|
+
* BCP 47 separator character
|
|
18
|
+
*/
|
|
19
|
+
readonly BCP47_SEPARATOR: "-";
|
|
20
|
+
/**
|
|
21
|
+
* Currency decimal places
|
|
22
|
+
*/
|
|
23
|
+
readonly CURRENCY_DECIMALS: 2;
|
|
24
|
+
/**
|
|
25
|
+
* Currency symbol placement (before/after)
|
|
26
|
+
*/
|
|
27
|
+
readonly CURRENCY_SYMBOL_BEFORE: true;
|
|
28
|
+
/**
|
|
29
|
+
* Thousands separator
|
|
30
|
+
*/
|
|
31
|
+
readonly THOUSANDS_SEPARATOR: ",";
|
|
32
|
+
/**
|
|
33
|
+
* Decimal separator
|
|
34
|
+
*/
|
|
35
|
+
readonly DECIMAL_SEPARATOR: ".";
|
|
36
|
+
/**
|
|
37
|
+
* Maximum locale string length
|
|
38
|
+
*/
|
|
39
|
+
readonly MAX_LOCALE_LENGTH: 35;
|
|
40
|
+
/**
|
|
41
|
+
* Minimum locale string length
|
|
42
|
+
*/
|
|
43
|
+
readonly MIN_LOCALE_LENGTH: 2;
|
|
44
|
+
/**
|
|
45
|
+
* Percentage decimal places
|
|
46
|
+
*/
|
|
47
|
+
readonly PERCENTAGE_DECIMALS: 2;
|
|
48
|
+
/**
|
|
49
|
+
* Default number of fraction digits
|
|
50
|
+
*/
|
|
51
|
+
readonly DEFAULT_FRACTION_DIGITS: 2;
|
|
52
|
+
/**
|
|
53
|
+
* Maximum fraction digits
|
|
54
|
+
*/
|
|
55
|
+
readonly MAX_FRACTION_DIGITS: 20;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Date and time formatting patterns
|
|
59
|
+
*/
|
|
60
|
+
export declare const DATE_FORMATS: {
|
|
61
|
+
/**
|
|
62
|
+
* ISO 8601 date format
|
|
63
|
+
*/
|
|
64
|
+
readonly ISO_DATE: "YYYY-MM-DD";
|
|
65
|
+
/**
|
|
66
|
+
* ISO 8601 datetime format
|
|
67
|
+
*/
|
|
68
|
+
readonly ISO_DATETIME: "YYYY-MM-DDTHH:mm:ss.sssZ";
|
|
69
|
+
/**
|
|
70
|
+
* ISO 8601 time format
|
|
71
|
+
*/
|
|
72
|
+
readonly ISO_TIME: "HH:mm:ss";
|
|
73
|
+
/**
|
|
74
|
+
* US date format
|
|
75
|
+
*/
|
|
76
|
+
readonly US_DATE: "MM/DD/YYYY";
|
|
77
|
+
/**
|
|
78
|
+
* European date format
|
|
79
|
+
*/
|
|
80
|
+
readonly EU_DATE: "DD/MM/YYYY";
|
|
81
|
+
/**
|
|
82
|
+
* UK date format
|
|
83
|
+
*/
|
|
84
|
+
readonly UK_DATE: "DD/MM/YYYY";
|
|
85
|
+
/**
|
|
86
|
+
* Japanese date format
|
|
87
|
+
*/
|
|
88
|
+
readonly JP_DATE: "YYYY/MM/DD";
|
|
89
|
+
/**
|
|
90
|
+
* Short date format
|
|
91
|
+
*/
|
|
92
|
+
readonly SHORT_DATE: "MMM DD";
|
|
93
|
+
/**
|
|
94
|
+
* Long date format
|
|
95
|
+
*/
|
|
96
|
+
readonly LONG_DATE: "MMMM DD, YYYY";
|
|
97
|
+
/**
|
|
98
|
+
* Full date format
|
|
99
|
+
*/
|
|
100
|
+
readonly FULL_DATE: "dddd, MMMM DD, YYYY";
|
|
101
|
+
/**
|
|
102
|
+
* Time format 12-hour
|
|
103
|
+
*/
|
|
104
|
+
readonly TIME_12H: "hh:mm A";
|
|
105
|
+
/**
|
|
106
|
+
* Time format 24-hour
|
|
107
|
+
*/
|
|
108
|
+
readonly TIME_24H: "HH:mm";
|
|
109
|
+
/**
|
|
110
|
+
* Time with seconds 12-hour
|
|
111
|
+
*/
|
|
112
|
+
readonly TIME_12H_SECONDS: "hh:mm:ss A";
|
|
113
|
+
/**
|
|
114
|
+
* Time with seconds 24-hour
|
|
115
|
+
*/
|
|
116
|
+
readonly TIME_24H_SECONDS: "HH:mm:ss";
|
|
117
|
+
/**
|
|
118
|
+
* Relative time threshold in seconds
|
|
119
|
+
*/
|
|
120
|
+
readonly RELATIVE_TIME_THRESHOLD: 86400;
|
|
121
|
+
/**
|
|
122
|
+
* Month/Year format
|
|
123
|
+
*/
|
|
124
|
+
readonly MONTH_YEAR: "MMMM YYYY";
|
|
125
|
+
/**
|
|
126
|
+
* Short month/Year format
|
|
127
|
+
*/
|
|
128
|
+
readonly SHORT_MONTH_YEAR: "MMM YYYY";
|
|
129
|
+
/**
|
|
130
|
+
* Year only format
|
|
131
|
+
*/
|
|
132
|
+
readonly YEAR_ONLY: "YYYY";
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Text direction constants
|
|
136
|
+
*/
|
|
137
|
+
export declare const TEXT_DIRECTION: {
|
|
138
|
+
/**
|
|
139
|
+
* Left-to-right
|
|
140
|
+
*/
|
|
141
|
+
readonly LTR: "ltr";
|
|
142
|
+
/**
|
|
143
|
+
* Right-to-left
|
|
144
|
+
*/
|
|
145
|
+
readonly RTL: "rtl";
|
|
146
|
+
/**
|
|
147
|
+
* Auto-detect
|
|
148
|
+
*/
|
|
149
|
+
readonly AUTO: "auto";
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Type exports
|
|
153
|
+
*/
|
|
154
|
+
export type LocaleFormat = (typeof LOCALE_FORMATS)[keyof typeof LOCALE_FORMATS];
|
|
155
|
+
export type DateFormat = (typeof DATE_FORMATS)[keyof typeof DATE_FORMATS];
|
|
156
|
+
export type TextDirectionValue = (typeof TEXT_DIRECTION)[keyof typeof TEXT_DIRECTION];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale Module
|
|
3
|
+
*
|
|
4
|
+
* Central export point for all localization-related constants and utilities.
|
|
5
|
+
*
|
|
6
|
+
* @module locale
|
|
7
|
+
*/
|
|
8
|
+
export * from './iso';
|
|
9
|
+
export * from './formats';
|
|
10
|
+
export * from './phone';
|
|
11
|
+
export * from './address';
|
|
12
|
+
export * from './currencies';
|
|
13
|
+
export * from './countries';
|
|
14
|
+
export * from './languages';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ISO Standards Constants
|
|
3
|
+
*
|
|
4
|
+
* International Organization for Standardization (ISO) code lengths
|
|
5
|
+
* and standards used for country codes, language codes, currencies, etc.
|
|
6
|
+
*
|
|
7
|
+
* @module locale/iso
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* ISO code length standards
|
|
11
|
+
*/
|
|
12
|
+
export declare const ISO_STANDARDS: {
|
|
13
|
+
/**
|
|
14
|
+
* ISO 3166-1 alpha-2 country code length (e.g., "US", "GB", "FR")
|
|
15
|
+
*/
|
|
16
|
+
readonly ISO_COUNTRY_CODE_LENGTH: 2;
|
|
17
|
+
/**
|
|
18
|
+
* ISO 3166-1 alpha-3 country code length (e.g., "USA", "GBR", "FRA")
|
|
19
|
+
*/
|
|
20
|
+
readonly ISO_COUNTRY_CODE_ALPHA3_LENGTH: 3;
|
|
21
|
+
/**
|
|
22
|
+
* ISO 639-1 language code length (e.g., "en", "fr", "es")
|
|
23
|
+
*/
|
|
24
|
+
readonly ISO_LANGUAGE_CODE_LENGTH: 2;
|
|
25
|
+
/**
|
|
26
|
+
* ISO 639-2 language code length (e.g., "eng", "fra", "spa")
|
|
27
|
+
*/
|
|
28
|
+
readonly ISO_LANGUAGE_CODE_ALPHA3_LENGTH: 3;
|
|
29
|
+
/**
|
|
30
|
+
* ISO 4217 currency code length (e.g., "USD", "EUR", "GBP")
|
|
31
|
+
*/
|
|
32
|
+
readonly ISO_CURRENCY_CODE_LENGTH: 3;
|
|
33
|
+
/**
|
|
34
|
+
* ISO 8601 date format length (YYYY-MM-DD)
|
|
35
|
+
*/
|
|
36
|
+
readonly ISO_DATE_LENGTH: 10;
|
|
37
|
+
/**
|
|
38
|
+
* ISO 8601 datetime format length (YYYY-MM-DDTHH:mm:ss.sssZ)
|
|
39
|
+
*/
|
|
40
|
+
readonly ISO_DATETIME_LENGTH: 24;
|
|
41
|
+
/**
|
|
42
|
+
* ISO 8601 time format length (HH:mm:ss)
|
|
43
|
+
*/
|
|
44
|
+
readonly ISO_TIME_LENGTH: 8;
|
|
45
|
+
/**
|
|
46
|
+
* ISO week date format length (YYYY-Www)
|
|
47
|
+
*/
|
|
48
|
+
readonly ISO_WEEK_DATE_LENGTH: 8;
|
|
49
|
+
/**
|
|
50
|
+
* BCP 47 language tag minimum length (e.g., "en")
|
|
51
|
+
*/
|
|
52
|
+
readonly BCP47_MIN_LENGTH: 2;
|
|
53
|
+
/**
|
|
54
|
+
* BCP 47 language tag with region (e.g., "en-US")
|
|
55
|
+
*/
|
|
56
|
+
readonly BCP47_WITH_REGION_LENGTH: 5;
|
|
57
|
+
/**
|
|
58
|
+
* RFC 5646 maximum language tag length
|
|
59
|
+
*/
|
|
60
|
+
readonly RFC5646_MAX_LENGTH: 35;
|
|
61
|
+
/**
|
|
62
|
+
* ISO 3166-1 numeric country code length
|
|
63
|
+
*/
|
|
64
|
+
readonly ISO_NUMERIC_COUNTRY_CODE_LENGTH: 3;
|
|
65
|
+
/**
|
|
66
|
+
* ISO 639-3 language code length
|
|
67
|
+
*/
|
|
68
|
+
readonly ISO_639_3_LENGTH: 3;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Type for ISO standard values
|
|
72
|
+
*/
|
|
73
|
+
export type IsoStandard = (typeof ISO_STANDARDS)[keyof typeof ISO_STANDARDS];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common Locale Constants
|
|
3
|
+
*
|
|
4
|
+
* BCP 47 language tags for common locales worldwide.
|
|
5
|
+
*
|
|
6
|
+
* @module locale/locales
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Locale regions
|
|
10
|
+
*/
|
|
11
|
+
export declare const LOCALE_REGIONS: {
|
|
12
|
+
readonly AMERICAS: readonly ["en-US", "es-MX", "pt-BR", "en-CA", "fr-CA"];
|
|
13
|
+
readonly EUROPE: readonly ["en-GB", "de-DE", "fr-FR", "it-IT", "es-ES", "nl-NL"];
|
|
14
|
+
readonly ASIA_PACIFIC: readonly ["zh-CN", "ja-JP", "ko-KR", "hi-IN", "en-AU"];
|
|
15
|
+
readonly MIDDLE_EAST_AFRICA: readonly ["ar-SA", "he-IL", "tr-TR", "en-ZA"];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Type exports
|
|
19
|
+
*/
|
|
20
|
+
export type LocaleRegion = (typeof LOCALE_REGIONS)[keyof typeof LOCALE_REGIONS];
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phone Number Formatting Constants
|
|
3
|
+
*
|
|
4
|
+
* Constants for phone number validation and formatting across different countries.
|
|
5
|
+
*
|
|
6
|
+
* @module locale/phone
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Phone number formats and validation
|
|
10
|
+
*/
|
|
11
|
+
export declare const PHONE_FORMATS: {
|
|
12
|
+
/**
|
|
13
|
+
* International prefix
|
|
14
|
+
*/
|
|
15
|
+
readonly INTERNATIONAL_PREFIX: "+";
|
|
16
|
+
/**
|
|
17
|
+
* International direct dialing prefix
|
|
18
|
+
*/
|
|
19
|
+
readonly IDD_PREFIX: "00";
|
|
20
|
+
/**
|
|
21
|
+
* US country code
|
|
22
|
+
*/
|
|
23
|
+
readonly US_COUNTRY_CODE: "1";
|
|
24
|
+
/**
|
|
25
|
+
* UK country code
|
|
26
|
+
*/
|
|
27
|
+
readonly UK_COUNTRY_CODE: "44";
|
|
28
|
+
/**
|
|
29
|
+
* Germany country code
|
|
30
|
+
*/
|
|
31
|
+
readonly DE_COUNTRY_CODE: "49";
|
|
32
|
+
/**
|
|
33
|
+
* France country code
|
|
34
|
+
*/
|
|
35
|
+
readonly FR_COUNTRY_CODE: "33";
|
|
36
|
+
/**
|
|
37
|
+
* Japan country code
|
|
38
|
+
*/
|
|
39
|
+
readonly JP_COUNTRY_CODE: "81";
|
|
40
|
+
/**
|
|
41
|
+
* China country code
|
|
42
|
+
*/
|
|
43
|
+
readonly CN_COUNTRY_CODE: "86";
|
|
44
|
+
/**
|
|
45
|
+
* India country code
|
|
46
|
+
*/
|
|
47
|
+
readonly IN_COUNTRY_CODE: "91";
|
|
48
|
+
/**
|
|
49
|
+
* Brazil country code
|
|
50
|
+
*/
|
|
51
|
+
readonly BR_COUNTRY_CODE: "55";
|
|
52
|
+
/**
|
|
53
|
+
* US phone number length (without country code)
|
|
54
|
+
*/
|
|
55
|
+
readonly US_PHONE_LENGTH: 10;
|
|
56
|
+
/**
|
|
57
|
+
* UK phone number length (without country code)
|
|
58
|
+
*/
|
|
59
|
+
readonly UK_PHONE_LENGTH: 10;
|
|
60
|
+
/**
|
|
61
|
+
* International phone minimum length
|
|
62
|
+
*/
|
|
63
|
+
readonly MIN_PHONE_LENGTH: 7;
|
|
64
|
+
/**
|
|
65
|
+
* International phone maximum length
|
|
66
|
+
*/
|
|
67
|
+
readonly MAX_PHONE_LENGTH: 15;
|
|
68
|
+
/**
|
|
69
|
+
* E.164 format maximum length (with +)
|
|
70
|
+
*/
|
|
71
|
+
readonly E164_MAX_LENGTH: 16;
|
|
72
|
+
/**
|
|
73
|
+
* E.164 format minimum length (with +)
|
|
74
|
+
*/
|
|
75
|
+
readonly E164_MIN_LENGTH: 8;
|
|
76
|
+
/**
|
|
77
|
+
* Area code length (US)
|
|
78
|
+
*/
|
|
79
|
+
readonly US_AREA_CODE_LENGTH: 3;
|
|
80
|
+
/**
|
|
81
|
+
* Exchange code length (US)
|
|
82
|
+
*/
|
|
83
|
+
readonly US_EXCHANGE_CODE_LENGTH: 3;
|
|
84
|
+
/**
|
|
85
|
+
* Line number length (US)
|
|
86
|
+
*/
|
|
87
|
+
readonly US_LINE_NUMBER_LENGTH: 4;
|
|
88
|
+
/**
|
|
89
|
+
* Extension maximum length
|
|
90
|
+
*/
|
|
91
|
+
readonly MAX_EXTENSION_LENGTH: 6;
|
|
92
|
+
/**
|
|
93
|
+
* Country code maximum length
|
|
94
|
+
*/
|
|
95
|
+
readonly MAX_COUNTRY_CODE_LENGTH: 3;
|
|
96
|
+
/**
|
|
97
|
+
* National number maximum length
|
|
98
|
+
*/
|
|
99
|
+
readonly MAX_NATIONAL_NUMBER_LENGTH: 15;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Phone number format patterns
|
|
103
|
+
*/
|
|
104
|
+
export declare const PHONE_PATTERNS: {
|
|
105
|
+
/**
|
|
106
|
+
* US phone format pattern
|
|
107
|
+
*/
|
|
108
|
+
readonly US_FORMAT: "(XXX) XXX-XXXX";
|
|
109
|
+
/**
|
|
110
|
+
* UK phone format pattern
|
|
111
|
+
*/
|
|
112
|
+
readonly UK_FORMAT: "XXXX XXX XXXX";
|
|
113
|
+
/**
|
|
114
|
+
* International format pattern
|
|
115
|
+
*/
|
|
116
|
+
readonly INTERNATIONAL_FORMAT: "+X XXX XXX XXXX";
|
|
117
|
+
/**
|
|
118
|
+
* E.164 format pattern
|
|
119
|
+
*/
|
|
120
|
+
readonly E164_FORMAT: "+XXXXXXXXXXXX";
|
|
121
|
+
/**
|
|
122
|
+
* Extension format
|
|
123
|
+
*/
|
|
124
|
+
readonly EXTENSION_FORMAT: "ext. XXXX";
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Type exports
|
|
128
|
+
*/
|
|
129
|
+
export type PhoneFormat = (typeof PHONE_FORMATS)[keyof typeof PHONE_FORMATS];
|
|
130
|
+
export type PhonePattern = (typeof PHONE_PATTERNS)[keyof typeof PHONE_PATTERNS];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default locale for the application (ISO 639-1 language code)
|
|
3
|
+
*/
|
|
4
|
+
export declare const DEFAULT_LOCALE = "en";
|
|
5
|
+
/**
|
|
6
|
+
* List of supported locale codes for the application
|
|
7
|
+
*/
|
|
8
|
+
export declare const SUPPORTED_LOCALES: readonly ["en", "es", "pt"];
|
|
9
|
+
/**
|
|
10
|
+
* Default timezone for the application (IANA timezone identifier)
|
|
11
|
+
*/
|
|
12
|
+
export declare const TIMEZONE = "America/Sao_Paulo";
|
|
13
|
+
/**
|
|
14
|
+
* Default timezone offset from UTC
|
|
15
|
+
*/
|
|
16
|
+
export declare const TIMEZONE_OFFSET = -3;
|
|
17
|
+
/**
|
|
18
|
+
* Default country code (ISO 3166-1 alpha-2)
|
|
19
|
+
*/
|
|
20
|
+
export declare const DEFAULT_COUNTRY = "BR";
|
|
21
|
+
/**
|
|
22
|
+
* Default currency code (ISO 4217)
|
|
23
|
+
*/
|
|
24
|
+
export declare const DEFAULT_CURRENCY = "BRL";
|
|
25
|
+
/**
|
|
26
|
+
* Default language code (ISO 639-1)
|
|
27
|
+
*/
|
|
28
|
+
export declare const DEFAULT_LANGUAGE = "en";
|
|
29
|
+
/**
|
|
30
|
+
* Type for supported locales
|
|
31
|
+
*/
|
|
32
|
+
export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
|
package/dist/math/constants.d.ts
CHANGED
|
@@ -187,6 +187,10 @@ export declare const NUMBER_SYSTEM: {
|
|
|
187
187
|
* Mathematical and percentage constants
|
|
188
188
|
*/
|
|
189
189
|
export declare const MATH_CONSTANTS: {
|
|
190
|
+
/**
|
|
191
|
+
* Maximum percentage value
|
|
192
|
+
*/
|
|
193
|
+
readonly PERCENTAGE_MAX: 100;
|
|
190
194
|
/**
|
|
191
195
|
* Half value (50%)
|
|
192
196
|
*/
|
|
@@ -1,11 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alchemy blockchain provider configuration
|
|
3
|
+
*/
|
|
1
4
|
export declare const ALCHEMY_CONFIG: {
|
|
5
|
+
/**
|
|
6
|
+
* Alchemy API key from environment
|
|
7
|
+
*/
|
|
2
8
|
apiKey: string;
|
|
9
|
+
/**
|
|
10
|
+
* RPC URLs for different blockchain networks
|
|
11
|
+
*/
|
|
3
12
|
rpcUrls: {
|
|
13
|
+
/**
|
|
14
|
+
* Ethereum mainnet RPC URL
|
|
15
|
+
*/
|
|
4
16
|
ethereum: string;
|
|
17
|
+
/**
|
|
18
|
+
* Polygon mainnet RPC URL
|
|
19
|
+
*/
|
|
5
20
|
polygon: string;
|
|
21
|
+
/**
|
|
22
|
+
* Arbitrum mainnet RPC URL
|
|
23
|
+
*/
|
|
6
24
|
arbitrum: string;
|
|
25
|
+
/**
|
|
26
|
+
* Optimism mainnet RPC URL
|
|
27
|
+
*/
|
|
7
28
|
optimism: string;
|
|
29
|
+
/**
|
|
30
|
+
* Base mainnet RPC URL
|
|
31
|
+
*/
|
|
8
32
|
base: string;
|
|
33
|
+
/**
|
|
34
|
+
* Solana mainnet RPC URL
|
|
35
|
+
*/
|
|
9
36
|
solana: string;
|
|
10
37
|
};
|
|
11
38
|
};
|
|
@@ -1,20 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OAuth provider configurations
|
|
3
|
+
*/
|
|
1
4
|
export declare const OAUTH_PROVIDERS: {
|
|
5
|
+
/**
|
|
6
|
+
* Google OAuth configuration
|
|
7
|
+
*/
|
|
2
8
|
readonly google: {
|
|
9
|
+
/**
|
|
10
|
+
* Google OAuth client ID
|
|
11
|
+
*/
|
|
3
12
|
readonly clientId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Google OAuth client secret
|
|
15
|
+
*/
|
|
4
16
|
readonly clientSecret: string;
|
|
17
|
+
/**
|
|
18
|
+
* Google OAuth redirect URI
|
|
19
|
+
*/
|
|
5
20
|
readonly redirectUri: string;
|
|
21
|
+
/**
|
|
22
|
+
* Google OAuth permission scopes
|
|
23
|
+
*/
|
|
6
24
|
readonly scopes: readonly ["openid", "profile", "email"];
|
|
7
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* Discord OAuth configuration
|
|
28
|
+
*/
|
|
8
29
|
readonly discord: {
|
|
30
|
+
/**
|
|
31
|
+
* Discord OAuth client ID
|
|
32
|
+
*/
|
|
9
33
|
readonly clientId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Discord OAuth client secret
|
|
36
|
+
*/
|
|
10
37
|
readonly clientSecret: string;
|
|
38
|
+
/**
|
|
39
|
+
* Discord OAuth redirect URI
|
|
40
|
+
*/
|
|
11
41
|
readonly redirectUri: string;
|
|
42
|
+
/**
|
|
43
|
+
* Discord OAuth permission scopes
|
|
44
|
+
*/
|
|
12
45
|
readonly scopes: readonly ["identify", "email"];
|
|
13
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Facebook OAuth configuration
|
|
49
|
+
*/
|
|
14
50
|
readonly facebook: {
|
|
51
|
+
/**
|
|
52
|
+
* Facebook OAuth client ID
|
|
53
|
+
*/
|
|
15
54
|
readonly clientId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Facebook OAuth client secret
|
|
57
|
+
*/
|
|
16
58
|
readonly clientSecret: string;
|
|
59
|
+
/**
|
|
60
|
+
* Facebook OAuth redirect URI
|
|
61
|
+
*/
|
|
17
62
|
readonly redirectUri: string;
|
|
63
|
+
/**
|
|
64
|
+
* Facebook OAuth permission scopes
|
|
65
|
+
*/
|
|
18
66
|
readonly scopes: readonly ["public_profile", "email"];
|
|
19
67
|
};
|
|
20
68
|
};
|
package/dist/security.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security and compliance configuration
|
|
3
|
+
*/
|
|
1
4
|
export declare const SECURITY: {
|
|
5
|
+
/**
|
|
6
|
+
* ISO country codes for blocked regions (sanctions/compliance)
|
|
7
|
+
* KP: North Korea, SY: Syria, IR: Iran, CU: Cuba, SD: Sudan, SO: Somalia
|
|
8
|
+
* UA-CR: Ukraine-Crimea, UA-DP: Ukraine-Donetsk, UA-LU: Ukraine-Luhansk
|
|
9
|
+
*/
|
|
2
10
|
readonly BLOCKED_REGIONS: readonly ["KP", "SY", "IR", "CU", "SD", "SO", "UA-CR", "UA-DP", "UA-LU"];
|
|
3
11
|
};
|
package/dist/social.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use strict';// @plyaz package - Built with tsup
|
|
2
|
-
var t={x:"https://x.com/Plyaz_",instagram:"https://instagram.com/plyaz_",linkedin:"https://linkedin.com/company/plyaz"},o={docs:"https://plyaz.gitbook.io/plyaz",community:"https://community.plyaz.co.uk",support:"mailto:help@plyaz.co.uk"};
|
|
3
|
-
exports.PRODUCT_LINKS=o;exports.SOCIAL_LINKS=t;//# sourceMappingURL=social.cjs.map
|
|
2
|
+
var t={x:"https://x.com/Plyaz_",instagram:"https://instagram.com/plyaz_",linkedin:"https://linkedin.com/company/plyaz"},o={docs:"https://plyaz.gitbook.io/plyaz",community:"https://community.plyaz.co.uk",support:"mailto:help@plyaz.co.uk"},p={INITIAL_POSTS_TO_SHOW:3,POSTS_INCREMENT:3,ANIMATION_DELAY:100};
|
|
3
|
+
exports.BLOG=p;exports.PRODUCT_LINKS=o;exports.SOCIAL_LINKS=t;//# sourceMappingURL=social.cjs.map
|
|
4
4
|
//# sourceMappingURL=social.cjs.map
|