@marteye/studiojs 1.1.22 → 1.1.24
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/utils/eartag.d.ts +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type CountryCode = keyof typeof EarTag.countryCodes;
|
|
2
|
+
export default class EarTag {
|
|
3
|
+
static regexISO24631: RegExp;
|
|
4
|
+
static countryCodes: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
static get countryCodesByNumber(): {
|
|
8
|
+
[code: string]: CountryCode;
|
|
9
|
+
};
|
|
10
|
+
private normalisedCountryCode;
|
|
11
|
+
private _raw;
|
|
12
|
+
get raw(): string;
|
|
13
|
+
private _isEartag;
|
|
14
|
+
isEartag(): boolean;
|
|
15
|
+
private _isoCountryCode?;
|
|
16
|
+
get isoCountryCode(): string | undefined;
|
|
17
|
+
private _nationalIdentifier?;
|
|
18
|
+
get nationalIdentifier(): string | undefined;
|
|
19
|
+
constructor(input: string, fallbackCountryCode?: CountryCode | string | null);
|
|
20
|
+
static parse(str: string, fallbackCountryCode?: CountryCode): EarTag;
|
|
21
|
+
static format(str: string): string | null;
|
|
22
|
+
toString(): string;
|
|
23
|
+
isISO24631(): boolean;
|
|
24
|
+
toISO24631(): string;
|
|
25
|
+
}
|