iobroker.solarprognose 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Scrounger <scrounger@gmx.net>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ ![Logo](admin/solarprognose.png)
2
+
3
+ # ioBroker.solarprognose
4
+
5
+ [![NPM version](https://img.shields.io/npm/v/iobroker.solarprognose.svg)](https://www.npmjs.com/package/iobroker.solarprognose)
6
+ [![Downloads](https://img.shields.io/npm/dm/iobroker.solarprognose.svg)](https://www.npmjs.com/package/iobroker.solarprognose)
7
+ ![Number of Installations](https://iobroker.live/badges/solarprognose-installed.svg)
8
+ ![Current version in stable repository](https://iobroker.live/badges/solarprognose-stable.svg)
9
+
10
+ [![NPM](https://nodei.co/npm/iobroker.solarprognose.png?downloads=true)](https://nodei.co/npm/iobroker.solarprognose/)
11
+
12
+ **Tests:** ![Test and Release](https://github.com/Scrounger/ioBroker.solarprognose/workflows/Test%20and%20Release/badge.svg)
13
+
14
+ ## solarprognose adapter for ioBroker
15
+
16
+ Solar forecast based on the API from solarprognose.de
17
+
18
+ ## Important API Settings
19
+
20
+ In the api settings of solarprgnose.de you have to do the following:
21
+
22
+ - Under Settings -> User profile all time zone `UTC (UTC -00:00)` must be selected
23
+ - Under Settings -> User settings, `Use the user timezone in the API` must be activated
24
+
25
+ ## Changelog
26
+
27
+ <!--
28
+ Placeholder for the next version (at the beginning of the line):
29
+ ### **WORK IN PROGRESS**
30
+ -->
31
+ ### 1.0.0 (2024-10-08)
32
+
33
+ - (Scrounger) initial release
34
+
35
+ ## License
36
+
37
+ MIT License
38
+
39
+ Copyright (c) 2024 Scrounger <scrounger@gmx.net>
40
+
41
+ Permission is hereby granted, free of charge, to any person obtaining a copy
42
+ of this software and associated documentation files (the "Software"), to deal
43
+ in the Software without restriction, including without limitation the rights
44
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
45
+ copies of the Software, and to permit persons to whom the Software is
46
+ furnished to do so, subject to the following conditions:
47
+
48
+ The above copyright notice and this permission notice shall be included in all
49
+ copies or substantial portions of the Software.
50
+
51
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
52
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
53
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
54
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
55
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
56
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
57
+ SOFTWARE.
@@ -0,0 +1,31 @@
1
+ {
2
+ "solarprognose adapter settings": "Adaptereinstellungen für Solarprognose",
3
+ "projectUsername": "Projekt/Benutzername",
4
+ "accessToken": "Zugriffstoken",
5
+ "You like the adapter? Then support me.": "Dir gefällt der Adapter? Dann unterstütze mich.",
6
+ "login data": "Anmeldedaten",
7
+ "jsonTable": "JSON-Tabelle",
8
+ "statusResponse": "API-Statusantwort",
9
+ "lastUpdate": "letzte Aktualisierung der Daten",
10
+ "solarprognoseItem": "Typ",
11
+ "solarprognoseId": "Id",
12
+ "location": "Standort",
13
+ "plant": "Anlage",
14
+ "inverter": "Wechselrichter",
15
+ "module_field": "Modulfeld",
16
+ "date": "Datum und Uhrzeit",
17
+ "power": "Leistung",
18
+ "energy": "Energie Gesamt kumuliert",
19
+ "forecast": "Vorhersage",
20
+ "hourlyEnabled": "stündlich",
21
+ "dailyEnabled": "täglich",
22
+ "dailyMax": "max. Tage",
23
+ "inXDays": "in {0} Tagen",
24
+ "today": "Heute",
25
+ "xOClock": "{0} Uhr",
26
+ "solarprognoseAlgorithm": "Algorithmus",
27
+ "dividerApiSettings": "API-Einstellungen",
28
+ "api settings": "API-Einstellungen",
29
+ "myLocation": "Standort",
30
+ "tomorrow": "Morgen"
31
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "solarprognose adapter settings": "Adapter settings for solarprognose",
3
+ "projectUsername": "Project / Username",
4
+ "accessToken": "Access token",
5
+ "You like the adapter? Then support me.": "You like the adapter? Then support me.",
6
+ "login data": "Login data",
7
+ "jsonTable": "JSON Table",
8
+ "statusResponse": "api status response",
9
+ "lastUpdate": "last update of the data",
10
+ "solarprognoseItem": "item",
11
+ "solarprognoseId": "id",
12
+ "solarprognoseAlgorithm": "algorithm",
13
+ "myLocation": "location",
14
+ "plant": "plant",
15
+ "inverter": "inverter",
16
+ "module_field": "module field",
17
+ "date": "date and time",
18
+ "power": "power",
19
+ "energy": "total energy cumulated",
20
+ "forecast": "forecast",
21
+ "hourlyEnabled": "hourly",
22
+ "dailyEnabled": "daily",
23
+ "dailyMax": "max. days",
24
+ "inXDays": "in {0} days",
25
+ "today": "today",
26
+ "tomorrow": "tomorrow",
27
+ "xOClock": "{0} o'clock",
28
+ "api settings": "API settings"
29
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "solarprognose adapter settings": "Configuración del adaptador para solarprognose",
3
+ "projectUsername": "Proyecto / Nombre de usuario",
4
+ "accessToken": "token de acceso",
5
+ "You like the adapter? Then support me.": "¿Te gusta el adaptador? Entonces apóyame.",
6
+ "login data": "Datos de inicio de sesión",
7
+ "jsonTable": "Tabla JSON",
8
+ "statusResponse": "respuesta de estado de API",
9
+ "lastUpdate": "última actualización de los datos",
10
+ "solarprognoseItem": "artículo",
11
+ "solarprognoseId": "identificación",
12
+ "location": "ubicación",
13
+ "plant": "planta",
14
+ "inverter": "inversor",
15
+ "module_field": "campo del módulo",
16
+ "date": "fecha y hora",
17
+ "power": "fuerza",
18
+ "energy": "energía total acumulada",
19
+ "forecast": "pronóstico",
20
+ "hourlyEnabled": "cada hora",
21
+ "dailyEnabled": "a diario",
22
+ "dailyMax": "máx. días",
23
+ "inXDays": "en {0} días",
24
+ "today": "hoy",
25
+ "xOClock": "{0} en punto",
26
+ "solarprognoseAlgorithm": "algoritmo",
27
+ "dividerApiSettings": "Configuración de API",
28
+ "api settings": "Configuración de API",
29
+ "myLocation": "ubicación",
30
+ "tomorrow": "mañana"
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "solarprognose adapter settings": "Paramètres de l'adaptateur pour le pronostic solaire",
3
+ "projectUsername": "Projet / Nom d'utilisateur",
4
+ "accessToken": "Jeton d'accès",
5
+ "You like the adapter? Then support me.": "Vous aimez l'adaptateur ? Alors soutenez-moi.",
6
+ "login data": "Données de connexion",
7
+ "jsonTable": "Tableau JSON",
8
+ "statusResponse": "réponse sur l'état de l'API",
9
+ "lastUpdate": "dernière mise à jour des données",
10
+ "solarprognoseItem": "article",
11
+ "solarprognoseId": "identifiant",
12
+ "location": "emplacement",
13
+ "plant": "usine",
14
+ "inverter": "onduleur",
15
+ "module_field": "champ de module",
16
+ "date": "date et heure",
17
+ "power": "pouvoir",
18
+ "energy": "énergie totale cumulée",
19
+ "forecast": "prévision",
20
+ "hourlyEnabled": "horaire",
21
+ "dailyEnabled": "tous les jours",
22
+ "dailyMax": "maximum. jours",
23
+ "inXDays": "dans {0} jours",
24
+ "today": "aujourd'hui",
25
+ "xOClock": "{0} heures",
26
+ "solarprognoseAlgorithm": "algorithme",
27
+ "dividerApiSettings": "Paramètres de l'API",
28
+ "api settings": "Paramètres de l'API",
29
+ "myLocation": "emplacement",
30
+ "tomorrow": "demain"
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "solarprognose adapter settings": "Impostazioni dell'adattatore per la prognosi solare",
3
+ "projectUsername": "Progetto/nome utente",
4
+ "accessToken": "Token di accesso",
5
+ "You like the adapter? Then support me.": "Ti piace l'adattatore? Allora sostienimi.",
6
+ "login data": "Dati di accesso",
7
+ "jsonTable": "Tabella JSON",
8
+ "statusResponse": "risposta sullo stato dell'API",
9
+ "lastUpdate": "ultimo aggiornamento dei dati",
10
+ "solarprognoseItem": "articolo",
11
+ "solarprognoseId": "id",
12
+ "location": "posizione",
13
+ "plant": "pianta",
14
+ "inverter": "inverter",
15
+ "module_field": "campo del modulo",
16
+ "date": "data e ora",
17
+ "power": "energia",
18
+ "energy": "energia totale accumulata",
19
+ "forecast": "previsione",
20
+ "hourlyEnabled": "ogni ora",
21
+ "dailyEnabled": "quotidiano",
22
+ "dailyMax": "massimo giorni",
23
+ "inXDays": "tra {0} giorni",
24
+ "today": "Oggi",
25
+ "xOClock": "{0} in punto",
26
+ "solarprognoseAlgorithm": "algoritmo",
27
+ "dividerApiSettings": "Impostazioni dell'API",
28
+ "api settings": "Impostazioni dell'API",
29
+ "myLocation": "posizione",
30
+ "tomorrow": "Domani"
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "solarprognose adapter settings": "Adapterinstellingen voor zonneprognose",
3
+ "projectUsername": "Project-/gebruikersnaam",
4
+ "accessToken": "Toegangstoken",
5
+ "You like the adapter? Then support me.": "Vind je de adapter leuk? Steun mij dan.",
6
+ "login data": "Login gegevens",
7
+ "jsonTable": "JSON-tabel",
8
+ "statusResponse": "API-statusreactie",
9
+ "lastUpdate": "laatste update van de gegevens",
10
+ "solarprognoseItem": "item",
11
+ "solarprognoseId": "Identiteitskaart",
12
+ "location": "locatie",
13
+ "plant": "plant",
14
+ "inverter": "omvormer",
15
+ "module_field": "moduleveld",
16
+ "date": "datum en tijd",
17
+ "power": "stroom",
18
+ "energy": "totale energie gecumuleerd",
19
+ "forecast": "voorspelling",
20
+ "hourlyEnabled": "per uur",
21
+ "dailyEnabled": "dagelijks",
22
+ "dailyMax": "maximaal dagen",
23
+ "inXDays": "over {0} dagen",
24
+ "today": "Vandaag",
25
+ "xOClock": "{0} uur",
26
+ "solarprognoseAlgorithm": "algoritme",
27
+ "dividerApiSettings": "API-instellingen",
28
+ "api settings": "API-instellingen",
29
+ "myLocation": "locatie",
30
+ "tomorrow": "morgen"
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "solarprognose adapter settings": "Ustawienia adaptera dla solarprognose",
3
+ "projectUsername": "Projekt / nazwa użytkownika",
4
+ "accessToken": "Token dostępu",
5
+ "You like the adapter? Then support me.": "Podoba Ci się adapter? Więc wesprzyj mnie.",
6
+ "login data": "Dane logowania",
7
+ "jsonTable": "Tabela JSON",
8
+ "statusResponse": "odpowiedź na stan interfejsu API",
9
+ "lastUpdate": "ostatnia aktualizacja danych",
10
+ "solarprognoseItem": "przedmiot",
11
+ "solarprognoseId": "id",
12
+ "location": "lokalizacja",
13
+ "plant": "zakład",
14
+ "inverter": "falownik",
15
+ "module_field": "pole modułu",
16
+ "date": "data i godzina",
17
+ "power": "moc",
18
+ "energy": "całkowita skumulowana energia",
19
+ "forecast": "prognoza",
20
+ "hourlyEnabled": "cogodzinny",
21
+ "dailyEnabled": "codziennie",
22
+ "dailyMax": "maks. dni",
23
+ "inXDays": "za {0} dni",
24
+ "today": "Dzisiaj",
25
+ "xOClock": "{0} godzina",
26
+ "solarprognoseAlgorithm": "algorytm",
27
+ "dividerApiSettings": "Ustawienia API",
28
+ "api settings": "Ustawienia API",
29
+ "myLocation": "lokalizacja",
30
+ "tomorrow": "jutro"
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "solarprognose adapter settings": "Configurações do adaptador para solarprognose",
3
+ "projectUsername": "Projeto/Nome de usuário",
4
+ "accessToken": "Token de acesso",
5
+ "You like the adapter? Then support me.": "Você gostou do adaptador? Então me apoie.",
6
+ "login data": "Dados de login",
7
+ "jsonTable": "Tabela JSON",
8
+ "statusResponse": "resposta de status da API",
9
+ "lastUpdate": "última atualização dos dados",
10
+ "solarprognoseItem": "item",
11
+ "solarprognoseId": "eu ia",
12
+ "location": "localização",
13
+ "plant": "plantar",
14
+ "inverter": "inversor",
15
+ "module_field": "campo do módulo",
16
+ "date": "data e hora",
17
+ "power": "poder",
18
+ "energy": "energia total acumulada",
19
+ "forecast": "previsão",
20
+ "hourlyEnabled": "de hora em hora",
21
+ "dailyEnabled": "diário",
22
+ "dailyMax": "máx. dias",
23
+ "inXDays": "em {0} dias",
24
+ "today": "hoje",
25
+ "xOClock": "{0} horas",
26
+ "solarprognoseAlgorithm": "algoritmo",
27
+ "dividerApiSettings": "Configurações de API",
28
+ "api settings": "Configurações de API",
29
+ "myLocation": "localização",
30
+ "tomorrow": "amanhã"
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "solarprognose adapter settings": "Настройки адаптера для Solarprognose",
3
+ "projectUsername": "Проект / Имя пользователя",
4
+ "accessToken": "Токен доступа",
5
+ "You like the adapter? Then support me.": "Вам нравится адаптер? Тогда поддержите меня.",
6
+ "login data": "Данные для входа",
7
+ "jsonTable": "Таблица JSON",
8
+ "statusResponse": "ответ на статус API",
9
+ "lastUpdate": "последнее обновление данных",
10
+ "solarprognoseItem": "элемент",
11
+ "solarprognoseId": "идентификатор",
12
+ "location": "расположение",
13
+ "plant": "растение",
14
+ "inverter": "инвертор",
15
+ "module_field": "поле модуля",
16
+ "date": "дата и время",
17
+ "power": "власть",
18
+ "energy": "полная накопленная энергия",
19
+ "forecast": "прогноз",
20
+ "hourlyEnabled": "ежечасно",
21
+ "dailyEnabled": "ежедневно",
22
+ "dailyMax": "макс. дни",
23
+ "inXDays": "через {0} дней",
24
+ "today": "сегодня",
25
+ "xOClock": "{0} часов",
26
+ "solarprognoseAlgorithm": "алгоритм",
27
+ "dividerApiSettings": "настройки API",
28
+ "api settings": "настройки API",
29
+ "myLocation": "расположение",
30
+ "tomorrow": "завтра"
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "solarprognose adapter settings": "Налаштування адаптера для solarprognose",
3
+ "projectUsername": "Проект / Ім'я користувача",
4
+ "accessToken": "Маркер доступу",
5
+ "You like the adapter? Then support me.": "Вам подобається адаптер? Тоді підтримай мене.",
6
+ "login data": "Логін дані",
7
+ "jsonTable": "Таблиця JSON",
8
+ "statusResponse": "відповідь на статус API",
9
+ "lastUpdate": "останнє оновлення даних",
10
+ "solarprognoseItem": "пункт",
11
+ "solarprognoseId": "id",
12
+ "location": "розташування",
13
+ "plant": "завод",
14
+ "inverter": "інвертор",
15
+ "module_field": "поле модуля",
16
+ "date": "дата і час",
17
+ "power": "потужність",
18
+ "energy": "загальна накопичена енергія",
19
+ "forecast": "прогноз",
20
+ "hourlyEnabled": "погодинно",
21
+ "dailyEnabled": "щодня",
22
+ "dailyMax": "макс. днів",
23
+ "inXDays": "через {0} днів",
24
+ "today": "сьогодні",
25
+ "xOClock": "{0} год",
26
+ "solarprognoseAlgorithm": "алгоритм",
27
+ "dividerApiSettings": "Налаштування API",
28
+ "api settings": "Налаштування API",
29
+ "myLocation": "розташування",
30
+ "tomorrow": "завтра"
31
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "solarprognose adapter settings": "Solarprognose 的适配器设置",
3
+ "projectUsername": "项目/用户名",
4
+ "accessToken": "访问令牌",
5
+ "You like the adapter? Then support me.": "你喜欢这个适配器吗?那就支持我吧。",
6
+ "login data": "登录数据",
7
+ "jsonTable": "JSON 表",
8
+ "statusResponse": "API状态响应",
9
+ "lastUpdate": "数据的最后更新",
10
+ "solarprognoseItem": "物品",
11
+ "solarprognoseId": "ID",
12
+ "location": "地点",
13
+ "plant": "植物",
14
+ "inverter": "逆变器",
15
+ "module_field": "模块字段",
16
+ "date": "日期和时间",
17
+ "power": "力量",
18
+ "energy": "累计总能量",
19
+ "forecast": "预报",
20
+ "hourlyEnabled": "每小时",
21
+ "dailyEnabled": "日常的",
22
+ "dailyMax": "最大限度。天",
23
+ "inXDays": "{0} 天后",
24
+ "today": "今天",
25
+ "xOClock": "{0} 点",
26
+ "solarprognoseAlgorithm": "算法",
27
+ "dividerApiSettings": "API设置",
28
+ "api settings": "API设置",
29
+ "myLocation": "地点",
30
+ "tomorrow": "明天"
31
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "i18n": true,
3
+ "type": "panel",
4
+ "items": {
5
+ "donation_link": {
6
+ "type": "staticLink",
7
+ "text": "You like the adapter? Then support me.",
8
+ "sm": 12,
9
+ "button": true,
10
+ "newLine": true,
11
+ "href": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VWAXSTS634G88&source=url",
12
+ "style": {
13
+ "justifyContent": "flex-start !important"
14
+ }
15
+ },
16
+ "dividerCredentials": {
17
+ "newLine": true,
18
+ "type": "header",
19
+ "text": "login data",
20
+ "size": 2
21
+ },
22
+ "project": {
23
+ "newLine": true,
24
+ "type": "text",
25
+ "label": "projectUsername",
26
+ "sm": 12,
27
+ "md": 2
28
+ },
29
+ "accessToken": {
30
+ "type": "password",
31
+ "label": "accessToken",
32
+ "sm": 12,
33
+ "md": 2
34
+ },
35
+ "dividerApiSettings": {
36
+ "newLine": true,
37
+ "type": "header",
38
+ "text": "api settings",
39
+ "size": 2
40
+ },
41
+ "solarprognoseItem": {
42
+ "newLine": true,
43
+ "type": "select",
44
+ "label": "solarprognoseItem",
45
+ "options": [
46
+ {
47
+ "label": "myLocation",
48
+ "value": "location"
49
+ },
50
+ {
51
+ "label": "plant",
52
+ "value": "plant"
53
+ },
54
+ {
55
+ "label": "inverter",
56
+ "value": "inverter"
57
+ },
58
+ {
59
+ "label": "module_field",
60
+ "value": "module_field"
61
+ }
62
+ ],
63
+ "sm": 12,
64
+ "md": 2
65
+ },
66
+ "solarprognoseId": {
67
+ "type": "number",
68
+ "label": "solarprognoseId",
69
+ "sm": 12,
70
+ "md": 2
71
+ },
72
+ "solarprognoseAlgorithm": {
73
+ "type": "select",
74
+ "label": "solarprognoseAlgorithm",
75
+ "options": [
76
+ {
77
+ "label": "own-v1",
78
+ "value": "own-v1"
79
+ },
80
+ {
81
+ "label": "mosmix",
82
+ "value": "mosmix"
83
+ },
84
+ {
85
+ "label": "clearsky",
86
+ "value": "clearsky"
87
+ }
88
+ ],
89
+ "sm": 12,
90
+ "md": 2
91
+ },
92
+ "dividerForecast": {
93
+ "newLine": true,
94
+ "type": "header",
95
+ "text": "forecast",
96
+ "size": 2
97
+ },
98
+ "dailyMax": {
99
+ "newLine": true,
100
+ "type": "number",
101
+ "label": "dailyMax",
102
+ "min": 0,
103
+ "max": 20,
104
+ "sm": 12,
105
+ "md": 4
106
+ },
107
+ "jsonTableEnabled": {
108
+ "newLine": true,
109
+ "type": "checkbox",
110
+ "label": "jsonTable",
111
+ "sm": 12,
112
+ "md": 2
113
+ },
114
+ "hourlyEnabled": {
115
+ "newLine": true,
116
+ "type": "checkbox",
117
+ "label": "hourlyEnabled",
118
+ "sm": 12,
119
+ "md": 1
120
+ },
121
+ "dailyEnabled": {
122
+ "newLine": true,
123
+ "type": "checkbox",
124
+ "label": "dailyEnabled",
125
+ "sm": 12,
126
+ "md": 1
127
+ }
128
+ }
129
+ }
Binary file
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var helper_exports = {};
20
+ __export(helper_exports, {
21
+ zeroPad: () => zeroPad
22
+ });
23
+ module.exports = __toCommonJS(helper_exports);
24
+ function zeroPad(source, places) {
25
+ const zero = places - source.toString().length + 1;
26
+ return Array(+(zero > 0 && zero)).join("0") + source;
27
+ }
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ zeroPad
31
+ });
32
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/lib/helper.ts"],
4
+ "sourcesContent": ["export function zeroPad(source: any, places: number): string {\r\n const zero = places - source.toString().length + 1;\r\n return Array(+(zero > 0 && zero)).join('0') + source;\r\n}"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,QAAQ,QAAa,QAAwB;AACzD,QAAM,OAAO,SAAS,OAAO,SAAS,EAAE,SAAS;AACjD,SAAO,MAAM,EAAE,OAAO,KAAK,KAAK,EAAE,KAAK,GAAG,IAAI;AAClD;",
6
+ "names": []
7
+ }