From b4e8f9081489c09a5278fb1e1aefe947d11a7413 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Mon, 14 Oct 2024 00:22:21 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20mikaello?= =?UTF-8?q?/norwegian-national-id-validator@dd4748e2c13fc21c54d9bd1eed0510?= =?UTF-8?q?708e0efd50=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- enums/Gender.html | 6 +++--- enums/IDNumberType.html | 10 +++++----- functions/NorwegianId.html | 2 +- functions/getGender.html | 2 +- functions/idNumberContainsBirthDate.html | 2 +- functions/isValidDate.html | 2 +- functions/possibleAgeOfPersonWithIdNumber.html | 2 +- functions/possibleAgesOfPersonWithIdNumber.html | 2 +- functions/possibleBirthDateOfIdNumber.html | 2 +- functions/validateNorwegianIdNumber.html | 2 +- types/NorwegianIdObject.html | 2 +- 11 files changed, 17 insertions(+), 17 deletions(-) diff --git a/enums/Gender.html b/enums/Gender.html index 64d3fb5..ed8eed3 100644 --- a/enums/Gender.html +++ b/enums/Gender.html @@ -1,6 +1,6 @@ Gender | norwegian-national-id-validator

Birth numbers, D-number and H-number contains information about gender

-

Enumeration Members

Enumeration Members

Enumeration Members

Female: 1

If the third last digit in the ID number is even, it is a female

-
Male: 0

If the third last digit in the ID number is odd, it is a male

-
+
Male: 0

If the third last digit in the ID number is odd, it is a male

+
diff --git a/enums/IDNumberType.html b/enums/IDNumberType.html index 7ced285..4a0ad4f 100644 --- a/enums/IDNumberType.html +++ b/enums/IDNumberType.html @@ -1,18 +1,18 @@ IDNumberType | norwegian-national-id-validator

In Norway there are several different ID numbers

-

Enumeration Members

Enumeration Members

Enumeration Members

BirthNumber: 0

A national identity number (birth number) is an ID number for you who have a residence permit and are going to live in Norway for more than six months.

-
DNumber: 1

A D number is a temporary identification number that you get if you have +

DNumber: 1

A D number is a temporary identification number that you get if you have applied for protection (asylum), or if you have a residence permit and are going to stay in Norway for less than six months.

-
FHNumber: 3

A FH number is used in health care to uniquely identify patients that +

FHNumber: 3

A FH number is used in health care to uniquely identify patients that does not have a known national ID or D number. A FH number does not have any information about age or gender.

-
HNumber: 2

A H number is a number used for assistance, a unique identification of a +

HNumber: 2

A H number is a number used for assistance, a unique identification of a person that does not have a national ID or a D number or in cases where this is not known. A H number contains information about age and gender.

-
+
diff --git a/functions/NorwegianId.html b/functions/NorwegianId.html index 403e18a..4e12826 100644 --- a/functions/NorwegianId.html +++ b/functions/NorwegianId.html @@ -3,4 +3,4 @@
+

Returns NorwegianIdObject

diff --git a/functions/getGender.html b/functions/getGender.html index 80f8c66..292f2c9 100644 --- a/functions/getGender.html +++ b/functions/getGender.html @@ -1,4 +1,4 @@ getGender | norwegian-national-id-validator
  • Returns the gender based of ID number. Returns undefined when no gender information is available.

    Parameters

    • elevenDigits: string

      ID number

      -

    Returns Gender | undefined

+

Returns Gender | undefined

diff --git a/functions/idNumberContainsBirthDate.html b/functions/idNumberContainsBirthDate.html index c517168..d9a6222 100644 --- a/functions/idNumberContainsBirthDate.html +++ b/functions/idNumberContainsBirthDate.html @@ -1,3 +1,3 @@ idNumberContainsBirthDate | norwegian-national-id-validator
  • Check if idNumber contains birth date

    Parameters

    • elevenDigits: string

      idNumber

      -

    Returns boolean

+

Returns boolean

diff --git a/functions/isValidDate.html b/functions/isValidDate.html index 1a7d689..df0991e 100644 --- a/functions/isValidDate.html +++ b/functions/isValidDate.html @@ -1,3 +1,3 @@ isValidDate | norwegian-national-id-validator
  • Checks if a date is valid against another

    Parameters

    • date: Date

      Date instance

      -
    • expectedYear: string
    • expectedMonth: string
    • expectedDay: string

    Returns boolean

+
  • expectedYear: string
  • expectedMonth: string
  • expectedDay: string
  • Returns boolean

    diff --git a/functions/possibleAgeOfPersonWithIdNumber.html b/functions/possibleAgeOfPersonWithIdNumber.html index 8773dc5..503e7a7 100644 --- a/functions/possibleAgeOfPersonWithIdNumber.html +++ b/functions/possibleAgeOfPersonWithIdNumber.html @@ -1,4 +1,4 @@ possibleAgeOfPersonWithIdNumber | norwegian-national-id-validator
    • Returns the age of a person with given Norwegian national identity number. Returns undefined when birth date could not be determined (e.g. for FH-numbers and invalid ID-numbers).

      Parameters

      • elevenDigits: string

        Identification number

        -

      Returns number | undefined

    +

    Returns number | undefined

    diff --git a/functions/possibleAgesOfPersonWithIdNumber.html b/functions/possibleAgesOfPersonWithIdNumber.html index 8b954c8..cbe76e9 100644 --- a/functions/possibleAgesOfPersonWithIdNumber.html +++ b/functions/possibleAgesOfPersonWithIdNumber.html @@ -1,3 +1,3 @@ possibleAgesOfPersonWithIdNumber | norwegian-national-id-validator
    • Find possible age of person based of ID number

      Parameters

      • elevenDigits: string

        Identification number

        -

      Returns number[]

    +

    Returns number[]

    diff --git a/functions/possibleBirthDateOfIdNumber.html b/functions/possibleBirthDateOfIdNumber.html index 280cb6b..114a77b 100644 --- a/functions/possibleBirthDateOfIdNumber.html +++ b/functions/possibleBirthDateOfIdNumber.html @@ -1,3 +1,3 @@ possibleBirthDateOfIdNumber | norwegian-national-id-validator
    • Get possible birth date from ID number

      Parameters

      • elevenDigits: string

        IdNumber

        -

      Returns Date | undefined

    +

    Returns Date | undefined

    diff --git a/functions/validateNorwegianIdNumber.html b/functions/validateNorwegianIdNumber.html index e0c3ef4..11f38b2 100644 --- a/functions/validateNorwegianIdNumber.html +++ b/functions/validateNorwegianIdNumber.html @@ -4,4 +4,4 @@
    import { validateNorwegianIdNumber } from 'norwegian-national-id-validator';
    const valid = validateNorwegianIdNumber(0000000000);
    -
    +
    diff --git a/types/NorwegianIdObject.html b/types/NorwegianIdObject.html index 8881710..099686e 100644 --- a/types/NorwegianIdObject.html +++ b/types/NorwegianIdObject.html @@ -11,4 +11,4 @@
  • isHNumber: (() => boolean)

    A H number is a number used for assistance, a unique identification of a person that does not have a national ID or a D number or in cases where this is not known. A H number contains information about age and gender.

    -
  • isMale: (() => boolean)
  • isValid: (() => boolean)
  • +
  • isMale: (() => boolean)
  • isValid: (() => boolean)