@budiauktioner/buildi-primitives 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/CHANGELOG.md +51 -0
- package/LICENSE +21 -0
- package/README.md +253 -0
- package/THIRD_PARTY_NOTICES.md +52 -0
- package/dist/banking/index.cjs +6491 -0
- package/dist/banking/index.cjs.map +1 -0
- package/dist/banking/index.d.cts +58 -0
- package/dist/banking/index.d.ts +58 -0
- package/dist/banking/index.js +6464 -0
- package/dist/banking/index.js.map +1 -0
- package/dist/contact/index.cjs +6678 -0
- package/dist/contact/index.cjs.map +1 -0
- package/dist/contact/index.d.cts +709 -0
- package/dist/contact/index.d.ts +709 -0
- package/dist/contact/index.js +6586 -0
- package/dist/contact/index.js.map +1 -0
- package/dist/country-BhD51LDL.d.cts +433 -0
- package/dist/country-p0n0EVQ9.d.ts +433 -0
- package/dist/finance/index.cjs +3592 -0
- package/dist/finance/index.cjs.map +1 -0
- package/dist/finance/index.d.cts +83 -0
- package/dist/finance/index.d.ts +83 -0
- package/dist/finance/index.js +3584 -0
- package/dist/finance/index.js.map +1 -0
- package/dist/geography/index.cjs +4227 -0
- package/dist/geography/index.cjs.map +1 -0
- package/dist/geography/index.d.cts +34 -0
- package/dist/geography/index.d.ts +34 -0
- package/dist/geography/index.js +4202 -0
- package/dist/geography/index.js.map +1 -0
- package/dist/index.cjs +14087 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +75 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.js +13868 -0
- package/dist/index.js.map +1 -0
- package/dist/isin-EeVPpNWu.d.ts +39 -0
- package/dist/isin-ZlQLBVm8.d.cts +39 -0
- package/dist/organization/index.cjs +2376 -0
- package/dist/organization/index.cjs.map +1 -0
- package/dist/organization/index.d.cts +117 -0
- package/dist/organization/index.d.ts +117 -0
- package/dist/organization/index.js +2346 -0
- package/dist/organization/index.js.map +1 -0
- package/dist/person/index.cjs +1144 -0
- package/dist/person/index.cjs.map +1 -0
- package/dist/person/index.d.cts +60 -0
- package/dist/person/index.d.ts +60 -0
- package/dist/person/index.js +1125 -0
- package/dist/person/index.js.map +1 -0
- package/dist/person-full-name-Cmc9Ynuc.d.cts +82 -0
- package/dist/person-full-name-D6Hbsab6.d.ts +82 -0
- package/dist/phone-number-C24--ggy.d.ts +139 -0
- package/dist/phone-number-DZ-YxCQQ.d.cts +139 -0
- package/dist/property/index.cjs +487 -0
- package/dist/property/index.cjs.map +1 -0
- package/dist/property/index.d.cts +56 -0
- package/dist/property/index.d.ts +56 -0
- package/dist/property/index.js +480 -0
- package/dist/property/index.js.map +1 -0
- package/dist/sample-data/index.cjs +12310 -0
- package/dist/sample-data/index.cjs.map +1 -0
- package/dist/sample-data/index.d.cts +260 -0
- package/dist/sample-data/index.d.ts +260 -0
- package/dist/sample-data/index.js +12302 -0
- package/dist/sample-data/index.js.map +1 -0
- package/dist/swedish-address-DNC3ftRF.d.cts +297 -0
- package/dist/swedish-address-GMzjqgxb.d.ts +297 -0
- package/dist/swedish-bank-account-holder-name-BFJ8h1aO.d.cts +45 -0
- package/dist/swedish-bank-account-holder-name-CAAru07F.d.ts +45 -0
- package/dist/swedish-municipality-DlUS7g7h.d.cts +87 -0
- package/dist/swedish-municipality-nDRHYRAd.d.ts +87 -0
- package/dist/swedish-organization-name-D7NvERxA.d.cts +33 -0
- package/dist/swedish-organization-name-rR0Q836C.d.ts +33 -0
- package/dist/swedish-organization-number-Bcj7V_lh.d.cts +130 -0
- package/dist/swedish-organization-number-DM8dpXwR.d.ts +130 -0
- package/dist/swedish-organization-type-CZOdETwG.d.cts +29 -0
- package/dist/swedish-organization-type-CZOdETwG.d.ts +29 -0
- package/dist/swedish-personal-identity-number-BiIg4io3.d.ts +149 -0
- package/dist/swedish-personal-identity-number-Cp9Coz55.d.cts +149 -0
- package/dist/swedish-property-designation-BM-gdd9x.d.ts +46 -0
- package/dist/swedish-property-designation-BaHXufqV.d.cts +46 -0
- package/dist/swedish-sni-code-Ccsswpni.d.ts +53 -0
- package/dist/swedish-sni-code-CuJFyM6l.d.cts +53 -0
- package/dist/swedish-swish-number-CL6Gx_h3.d.cts +397 -0
- package/dist/swedish-swish-number-DDG3mNDg.d.ts +397 -0
- package/dist/text-candidate-qg2bD9PY.d.cts +110 -0
- package/dist/text-candidate-qg2bD9PY.d.ts +110 -0
- package/dist/text-scanning/index.cjs +10414 -0
- package/dist/text-scanning/index.cjs.map +1 -0
- package/dist/text-scanning/index.d.cts +153 -0
- package/dist/text-scanning/index.d.ts +153 -0
- package/dist/text-scanning/index.js +10406 -0
- package/dist/text-scanning/index.js.map +1 -0
- package/dist/validation/index.cjs +83 -0
- package/dist/validation/index.cjs.map +1 -0
- package/dist/validation/index.d.cts +63 -0
- package/dist/validation/index.d.ts +63 -0
- package/dist/validation/index.js +79 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/web/index.cjs +3994 -0
- package/dist/web/index.cjs.map +1 -0
- package/dist/web/index.d.cts +203 -0
- package/dist/web/index.d.ts +203 -0
- package/dist/web/index.js +3987 -0
- package/dist/web/index.js.map +1 -0
- package/package.json +211 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { P as PrimitiveTypeInfo, T as TextCandidate } from './text-candidate-qg2bD9PY.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An International Securities Identification Number (ISO 6166), e.g. `SE0000108656`.
|
|
5
|
+
* 2-letter country code + 9-character NSIN + 1 Luhn check digit.
|
|
6
|
+
*/
|
|
7
|
+
declare class Isin {
|
|
8
|
+
static readonly typeInfo: PrimitiveTypeInfo;
|
|
9
|
+
/** The 12-character ISIN in uppercase, e.g. `SE0000108656`. */
|
|
10
|
+
readonly value: string;
|
|
11
|
+
/** ISO 3166-1 alpha-2 country code (chars 1-2), e.g. `SE`. */
|
|
12
|
+
get countryCode(): string;
|
|
13
|
+
/** National Securities Identifying Number (chars 3-11), e.g. `000010865`. */
|
|
14
|
+
get nsin(): string;
|
|
15
|
+
/** Luhn check digit (last char), e.g. `6`. */
|
|
16
|
+
get checkDigit(): string;
|
|
17
|
+
private constructor();
|
|
18
|
+
static tryParse(input: string | null | undefined): Isin | null;
|
|
19
|
+
static parse(input: string): Isin;
|
|
20
|
+
static isValid(input: string | null | undefined): boolean;
|
|
21
|
+
static format(input: string | null | undefined, options?: {
|
|
22
|
+
fallbackToTrimmedInputWhenInvalid?: boolean;
|
|
23
|
+
}): string | null;
|
|
24
|
+
static normalize(input: string | null | undefined, options?: {
|
|
25
|
+
fallbackToTrimmedInputWhenInvalid?: boolean;
|
|
26
|
+
}): string | null;
|
|
27
|
+
static isNormalized(input: string | null | undefined): boolean;
|
|
28
|
+
toNormalizedString(): string;
|
|
29
|
+
toString(): string;
|
|
30
|
+
static findCandidatesInText(text: string): readonly TextCandidate<Isin>[];
|
|
31
|
+
equals(other: Isin | null | undefined): boolean;
|
|
32
|
+
compareTo(other: Isin | null | undefined): number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Masks the ISIN preserving the country code, e.g. `SE0000108656` → `SE**********`.
|
|
36
|
+
*/
|
|
37
|
+
declare function maskIsin(isin: Isin): string;
|
|
38
|
+
|
|
39
|
+
export { Isin as I, maskIsin as m };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { P as PrimitiveTypeInfo, T as TextCandidate } from './text-candidate-qg2bD9PY.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An International Securities Identification Number (ISO 6166), e.g. `SE0000108656`.
|
|
5
|
+
* 2-letter country code + 9-character NSIN + 1 Luhn check digit.
|
|
6
|
+
*/
|
|
7
|
+
declare class Isin {
|
|
8
|
+
static readonly typeInfo: PrimitiveTypeInfo;
|
|
9
|
+
/** The 12-character ISIN in uppercase, e.g. `SE0000108656`. */
|
|
10
|
+
readonly value: string;
|
|
11
|
+
/** ISO 3166-1 alpha-2 country code (chars 1-2), e.g. `SE`. */
|
|
12
|
+
get countryCode(): string;
|
|
13
|
+
/** National Securities Identifying Number (chars 3-11), e.g. `000010865`. */
|
|
14
|
+
get nsin(): string;
|
|
15
|
+
/** Luhn check digit (last char), e.g. `6`. */
|
|
16
|
+
get checkDigit(): string;
|
|
17
|
+
private constructor();
|
|
18
|
+
static tryParse(input: string | null | undefined): Isin | null;
|
|
19
|
+
static parse(input: string): Isin;
|
|
20
|
+
static isValid(input: string | null | undefined): boolean;
|
|
21
|
+
static format(input: string | null | undefined, options?: {
|
|
22
|
+
fallbackToTrimmedInputWhenInvalid?: boolean;
|
|
23
|
+
}): string | null;
|
|
24
|
+
static normalize(input: string | null | undefined, options?: {
|
|
25
|
+
fallbackToTrimmedInputWhenInvalid?: boolean;
|
|
26
|
+
}): string | null;
|
|
27
|
+
static isNormalized(input: string | null | undefined): boolean;
|
|
28
|
+
toNormalizedString(): string;
|
|
29
|
+
toString(): string;
|
|
30
|
+
static findCandidatesInText(text: string): readonly TextCandidate<Isin>[];
|
|
31
|
+
equals(other: Isin | null | undefined): boolean;
|
|
32
|
+
compareTo(other: Isin | null | undefined): number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Masks the ISIN preserving the country code, e.g. `SE0000108656` → `SE**********`.
|
|
36
|
+
*/
|
|
37
|
+
declare function maskIsin(isin: Isin): string;
|
|
38
|
+
|
|
39
|
+
export { Isin as I, maskIsin as m };
|