tsch-ej-numbers
Advanced tools
Comparing version 1.3.20241223 to 1.4.20241224
export declare const APP: { | ||
dateOfFirstDraw: string; | ||
countries: { | ||
name: string; | ||
alpha2Code: string; | ||
alpha3Code: string; | ||
numericValue: string; | ||
}[]; | ||
}; |
@@ -6,2 +6,107 @@ "use strict"; | ||
dateOfFirstDraw: "23.03.2012", | ||
countries: [ | ||
// https://www.iban.com/country-codes | ||
{ | ||
name: "Germany", | ||
alpha2Code: "DE", | ||
alpha3Code: "DEU", | ||
numericValue: "276", | ||
}, | ||
{ | ||
name: "Iceland", | ||
alpha2Code: "IS", | ||
alpha3Code: "ISL", | ||
numericValue: "352", | ||
}, | ||
{ | ||
name: "Croatia", | ||
alpha2Code: "HR", | ||
alpha3Code: "HRV", | ||
numericValue: "191", | ||
}, | ||
{ | ||
name: "Norway", | ||
alpha2Code: "NO", | ||
alpha3Code: "NOR", | ||
numericValue: "578", | ||
}, | ||
{ | ||
name: "Latvia", | ||
alpha2Code: "LV", | ||
alpha3Code: "LVA", | ||
numericValue: "428", | ||
}, | ||
{ | ||
name: "Lithuania", | ||
alpha2Code: "LT", | ||
alpha3Code: "LTU", | ||
numericValue: "440", | ||
}, | ||
{ | ||
name: "Sweden", | ||
alpha2Code: "SE", | ||
alpha3Code: "SWE", | ||
numericValue: "752", | ||
}, | ||
{ | ||
name: "Spain", | ||
alpha2Code: "ES", | ||
alpha3Code: "ESP", | ||
numericValue: "724", | ||
}, | ||
{ | ||
name: "Denmark", | ||
alpha2Code: "DK", | ||
alpha3Code: "DNK", | ||
numericValue: "208", | ||
}, | ||
{ | ||
name: "Finland", | ||
alpha2Code: "FI", | ||
alpha3Code: "FIN", | ||
numericValue: "246", | ||
}, | ||
{ | ||
name: "Italy", | ||
alpha2Code: "IT", | ||
alpha3Code: "ITA", | ||
numericValue: "380", | ||
}, | ||
{ | ||
name: "Netherlands", | ||
alpha2Code: "NL", | ||
alpha3Code: "NLD", | ||
numericValue: "528", | ||
}, | ||
{ | ||
name: "Slovenia", | ||
alpha2Code: "SI", | ||
alpha3Code: "SVN", | ||
numericValue: "705", | ||
}, | ||
{ | ||
name: "Slovakia", | ||
alpha2Code: "SK", | ||
alpha3Code: "SVK", | ||
numericValue: "703", | ||
}, | ||
{ | ||
name: "Estonia", | ||
alpha2Code: "EE", | ||
alpha3Code: "EST", | ||
numericValue: "233", | ||
}, | ||
{ | ||
name: "Hungary", | ||
alpha2Code: "HU", | ||
alpha3Code: "HUN", | ||
numericValue: "348", | ||
}, | ||
{ | ||
name: "Czechia", | ||
alpha2Code: "CZ", | ||
alpha3Code: "CZE", | ||
numericValue: "203", | ||
}, | ||
], | ||
}; |
@@ -24,1 +24,7 @@ import { TDecades } from "./types/decade.types"; | ||
export declare function getTuesdayFridayCount(): TTuesdayFriday; | ||
export declare function getCountries(): { | ||
name: string; | ||
alpha2Code: string; | ||
alpha3Code: string; | ||
numericValue: string; | ||
}[]; |
@@ -17,2 +17,3 @@ "use strict"; | ||
exports.getTuesdayFridayCount = getTuesdayFridayCount; | ||
exports.getCountries = getCountries; | ||
var record_class_one_handler_1 = require("./handlers/record-class-one.handler"); | ||
@@ -32,2 +33,3 @@ var record_decades_count_handler_1 = require("./handlers/record-decades-count.handler"); | ||
var record_tuesday_friday_count_handler_1 = require("./handlers/record-tuesday-friday-count.handler"); | ||
var country_handler_1 = require("./handlers/country.handler"); | ||
function getRecords(limit) { | ||
@@ -81,1 +83,4 @@ if (limit === void 0) { limit = 0; } | ||
} | ||
function getCountries() { | ||
return (0, country_handler_1.handleGetCountries)(); | ||
} |
{ | ||
"name": "tsch-ej-numbers", | ||
"version": "1.3.20241223", | ||
"version": "1.4.20241224", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -95,2 +95,3 @@ # tsch-ej-numbers | ||
| getTuesdayFridayCount | 1.3.x | | ||
| getCountries | 1.4.x | | ||
@@ -354,1 +355,22 @@ <hr/> | ||
``` | ||
<hr/> | ||
### getCountries() | ||
Returns an array of objects for EuroJackpot countries with according codes. | ||
- result example: [... { | ||
name: "Germany", | ||
alpha2Code: "DE", | ||
alpha3Code: "DEU", | ||
numericValue: "276", | ||
}, ...] | ||
Code: | ||
``` | ||
import { getCountries } from "tsch-ej-numbers"; | ||
console.log(getCountries()); | ||
``` |
1927987
108
60751
375