siar-client 0.0.1
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/README.md +19 -0
- package/dist/client/data/DataService.d.ts +72 -0
- package/dist/client/data/DataService.d.ts.map +1 -0
- package/dist/client/data/DataService.js +136 -0
- package/dist/client/data/DataService.js.map +1 -0
- package/dist/client/information/InformationService.d.ts +52 -0
- package/dist/client/information/InformationService.d.ts.map +1 -0
- package/dist/client/information/InformationService.js +126 -0
- package/dist/client/information/InformationService.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/Models.d.ts +10 -0
- package/dist/internal/Models.d.ts.map +1 -0
- package/dist/internal/Models.js +2 -0
- package/dist/internal/Models.js.map +1 -0
- package/dist/internal/data/Models.d.ts +179 -0
- package/dist/internal/data/Models.d.ts.map +1 -0
- package/dist/internal/data/Models.js +2 -0
- package/dist/internal/data/Models.js.map +1 -0
- package/dist/internal/information/Models.d.ts +69 -0
- package/dist/internal/information/Models.d.ts.map +1 -0
- package/dist/internal/information/Models.js +2 -0
- package/dist/internal/information/Models.js.map +1 -0
- package/dist/mappers/Mappers.d.ts +37 -0
- package/dist/mappers/Mappers.d.ts.map +1 -0
- package/dist/mappers/Mappers.js +160 -0
- package/dist/mappers/Mappers.js.map +1 -0
- package/dist/public/Models.d.ts +5 -0
- package/dist/public/Models.d.ts.map +1 -0
- package/dist/public/Models.js +2 -0
- package/dist/public/Models.js.map +1 -0
- package/dist/public/SIARClient.d.ts +55 -0
- package/dist/public/SIARClient.d.ts.map +1 -0
- package/dist/public/SIARClient.js +73 -0
- package/dist/public/SIARClient.js.map +1 -0
- package/dist/public/data/Models.d.ts +196 -0
- package/dist/public/data/Models.d.ts.map +1 -0
- package/dist/public/data/Models.js +20 -0
- package/dist/public/data/Models.js.map +1 -0
- package/dist/public/information/Models.d.ts +78 -0
- package/dist/public/information/Models.d.ts.map +1 -0
- package/dist/public/information/Models.js +11 -0
- package/dist/public/information/Models.js.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Models.js","sourceRoot":"","sources":["../../../src/internal/data/Models.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Información de una Comunidad Autónoma
|
|
3
|
+
*/
|
|
4
|
+
export interface CCAA {
|
|
5
|
+
/** Identificador de la CCAA */
|
|
6
|
+
Identificador: string;
|
|
7
|
+
/** Descripción de la CCAA */
|
|
8
|
+
Descripcion: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Información de una Provincia
|
|
12
|
+
*/
|
|
13
|
+
export interface Provincia {
|
|
14
|
+
/** Nombre de la Provincia */
|
|
15
|
+
Provincia: string;
|
|
16
|
+
/** Código de la Provincia */
|
|
17
|
+
Codigo: string;
|
|
18
|
+
/** Código de la Comunidad Autónoma a la que pertenece la Provincia*/
|
|
19
|
+
Codigo_CCAA: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Información de una Estación
|
|
23
|
+
*/
|
|
24
|
+
export interface Estacion {
|
|
25
|
+
/** Altitud de la estación en metros */
|
|
26
|
+
Altitud: number;
|
|
27
|
+
/** Código de la estación */
|
|
28
|
+
Codigo: string;
|
|
29
|
+
/** Nombre de la estación */
|
|
30
|
+
Estacion: string;
|
|
31
|
+
/** Fecha de baja de la estación */
|
|
32
|
+
Fecha_Baja: string | null;
|
|
33
|
+
/** Fecha de instalación de la estación */
|
|
34
|
+
Fecha_Instalacion: string;
|
|
35
|
+
/** Huso horario */
|
|
36
|
+
Huso: number;
|
|
37
|
+
/** Latitud de la estación */
|
|
38
|
+
Latitud: string;
|
|
39
|
+
/** Longitud de la estación */
|
|
40
|
+
Longitud: string;
|
|
41
|
+
/** Término municipal */
|
|
42
|
+
Termino: string;
|
|
43
|
+
/** Coordenada X UTM */
|
|
44
|
+
XUTM: number;
|
|
45
|
+
/** Coordenada Y UTM */
|
|
46
|
+
YUTM: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Información sobre accesos y limitaciones
|
|
50
|
+
*/
|
|
51
|
+
export interface InformacionAccesos {
|
|
52
|
+
/** Número de accesos realizados en el minuto actual */
|
|
53
|
+
NumAccesosMinutoActual: number;
|
|
54
|
+
/** Número máximo de accesos permitidos por minuto */
|
|
55
|
+
MaxAccesosMinuto: number;
|
|
56
|
+
/** Número de accesos realizados en el día actual */
|
|
57
|
+
NumAccesosDiaActual: number;
|
|
58
|
+
/** Número máximo de accesos permitidos por día */
|
|
59
|
+
MaxAccesosDia: number;
|
|
60
|
+
/** Número de registros acumulados en el minuto actual */
|
|
61
|
+
RegistrosAcumuladosMinuto: number;
|
|
62
|
+
/** Número máximo de registros permitidos por minuto */
|
|
63
|
+
MaxRegistrosMinuto: number;
|
|
64
|
+
/** Número de registros acumulados en el día actual */
|
|
65
|
+
RegistrosAcumuladosDia: number;
|
|
66
|
+
/** Número máximo de registros permitidos por día */
|
|
67
|
+
MaxRegistrosDia: number;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=Models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Models.d.ts","sourceRoot":"","sources":["../../../src/internal/information/Models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,+BAA+B;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,wBAAwB;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,uDAAuD;IACvD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qDAAqD;IACrD,gBAAgB,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,yBAAyB,EAAE,MAAM,CAAC;IAClC,uDAAuD;IACvD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,oDAAoD;IACpD,eAAe,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Models.js","sourceRoot":"","sources":["../../../src/internal/information/Models.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { AutonomousCommunity, Province, Station, AccessInformation } from "../public/information/Models.js";
|
|
2
|
+
import type { HourlyData, DailyData, WeeklyData, MonthlyData } from "../index.js";
|
|
3
|
+
import type { DatoHorario, DatoDiario, DatoSemanal, DatoMensual } from "../internal/data/Models.js";
|
|
4
|
+
import type { CCAA, Provincia, Estacion, InformacionAccesos } from "../internal/information/Models.js";
|
|
5
|
+
/**
|
|
6
|
+
* Maps DatoHorario to HourlyData
|
|
7
|
+
*/
|
|
8
|
+
export declare function mapDatoHorarioToHourlyData(dato: DatoHorario): HourlyData;
|
|
9
|
+
/**
|
|
10
|
+
* Maps DatoDiario to DailyData
|
|
11
|
+
*/
|
|
12
|
+
export declare function mapDatoDiarioToDailyData(dato: DatoDiario): DailyData;
|
|
13
|
+
/**
|
|
14
|
+
* Maps DatoSemanal to WeeklyData
|
|
15
|
+
*/
|
|
16
|
+
export declare function mapDatoSemanalToWeeklyData(dato: DatoSemanal): WeeklyData;
|
|
17
|
+
/**
|
|
18
|
+
* Maps DatoMensual to MonthlyData
|
|
19
|
+
*/
|
|
20
|
+
export declare function mapDatoMensualToMonthlyData(dato: DatoMensual): MonthlyData;
|
|
21
|
+
/**
|
|
22
|
+
* Maps CCAA to AutonomousCommunity
|
|
23
|
+
*/
|
|
24
|
+
export declare function mapCCAA(ccaa: CCAA): AutonomousCommunity;
|
|
25
|
+
/**
|
|
26
|
+
* Maps Provincia to ProvinceInfo
|
|
27
|
+
*/
|
|
28
|
+
export declare function mapProvincia(provincia: Provincia): Province;
|
|
29
|
+
/**
|
|
30
|
+
* Maps Estacion to StationInfo
|
|
31
|
+
*/
|
|
32
|
+
export declare function mapEstacion(estacion: Estacion): Station;
|
|
33
|
+
/**
|
|
34
|
+
* Maps InformacionAccesos to AccessInformation
|
|
35
|
+
*/
|
|
36
|
+
export declare function mapInformacionAccesos(info: InformacionAccesos): AccessInformation;
|
|
37
|
+
//# sourceMappingURL=Mappers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mappers.d.ts","sourceRoot":"","sources":["../../src/mappers/Mappers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,QAAQ,EACR,OAAO,EACP,iBAAiB,EAClB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,WAAW,EACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,kBAAkB,EACnB,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,CAcxE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS,CA0BpE;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,CAyBxE;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,CA0B1E;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,mBAAmB,CAKvD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,QAAQ,CAM3D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAcvD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,kBAAkB,GACvB,iBAAiB,CAWnB"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maps DatoHorario to HourlyData
|
|
3
|
+
*/
|
|
4
|
+
export function mapDatoHorarioToHourlyData(dato) {
|
|
5
|
+
return {
|
|
6
|
+
timeMinutes: dato.HoraMin,
|
|
7
|
+
avgTemperature: dato.TempMedia,
|
|
8
|
+
avgHumidity: dato.HumedadMedia,
|
|
9
|
+
windSpeed: dato.VelViento,
|
|
10
|
+
windDirection: dato.DirViento,
|
|
11
|
+
radiation: dato.Radiacion,
|
|
12
|
+
precipitation: dato.Precipitacion,
|
|
13
|
+
soilTemperature1: dato.TempSuelo1,
|
|
14
|
+
soilTemperature2: dato.TempSuelo2,
|
|
15
|
+
station: dato.Estacion,
|
|
16
|
+
date: dato.Fecha,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Maps DatoDiario to DailyData
|
|
21
|
+
*/
|
|
22
|
+
export function mapDatoDiarioToDailyData(dato) {
|
|
23
|
+
return {
|
|
24
|
+
avgTemperature: dato.TempMedia,
|
|
25
|
+
maxTemperature: dato.TempMax,
|
|
26
|
+
timeMaxTemperature: dato.HorMinTempMax,
|
|
27
|
+
minTemperature: dato.TempMin,
|
|
28
|
+
timeMinTemperature: dato.HorMinTempMin,
|
|
29
|
+
avgHumidity: dato.HumedadMedia,
|
|
30
|
+
maxHumidity: dato.HumedadMax,
|
|
31
|
+
timeMaxHumidity: dato.HorMinHumMax,
|
|
32
|
+
minHumidity: dato.HumedadMin,
|
|
33
|
+
timeMinHumidity: dato.HorMinHumMin,
|
|
34
|
+
avgWindSpeed: dato.VelViento,
|
|
35
|
+
avgWindDirection: dato.DirViento,
|
|
36
|
+
maxWindSpeed: dato.VelVientoMax,
|
|
37
|
+
timeMaxWindSpeed: dato.HorMinVelMax,
|
|
38
|
+
windDirectionAtMaxSpeed: dato.DirVientoVelMax,
|
|
39
|
+
radiation: dato.Radiacion,
|
|
40
|
+
precipitation: dato.Precipitacion,
|
|
41
|
+
soilTemperature1: dato.TempSuelo1,
|
|
42
|
+
soilTemperature2: dato.TempSuelo2,
|
|
43
|
+
etPenmanMonteith: dato.EtPMon,
|
|
44
|
+
pePenmanMonteith: dato.PePMon,
|
|
45
|
+
station: dato.Estacion,
|
|
46
|
+
date: dato.Fecha,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Maps DatoSemanal to WeeklyData
|
|
51
|
+
*/
|
|
52
|
+
export function mapDatoSemanalToWeeklyData(dato) {
|
|
53
|
+
return {
|
|
54
|
+
year: dato.Año,
|
|
55
|
+
week: dato.Semana,
|
|
56
|
+
avgTemperature: dato.TempMedia,
|
|
57
|
+
maxTemperature: dato.TempMax,
|
|
58
|
+
timeMaxTemperature: dato.DiaHorMinTempMax,
|
|
59
|
+
minTemperature: dato.TempMin,
|
|
60
|
+
timeMinTemperature: dato.DiaHorMinTempMin,
|
|
61
|
+
avgHumidity: dato.HumedadMedia,
|
|
62
|
+
maxHumidity: dato.HumedadMax,
|
|
63
|
+
timeMaxHumidity: dato.DiaHorMinHumMax,
|
|
64
|
+
minHumidity: dato.HumedadMin,
|
|
65
|
+
timeMinHumidity: dato.DiaHorMinHumMin,
|
|
66
|
+
avgWindSpeed: dato.VelViento,
|
|
67
|
+
avgWindDirection: dato.DirViento,
|
|
68
|
+
maxWindSpeed: dato.VelVientoMax,
|
|
69
|
+
timeMaxWindSpeed: dato.DiaHorMinVelMax,
|
|
70
|
+
windDirectionAtMaxSpeed: dato.DirVientoVelMax,
|
|
71
|
+
radiation: dato.Radiacion,
|
|
72
|
+
precipitation: dato.Precipitacion,
|
|
73
|
+
etPenmanMonteith: dato.EtPMon,
|
|
74
|
+
pePenmanMonteith: dato.PePMon,
|
|
75
|
+
station: dato.Estacion,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Maps DatoMensual to MonthlyData
|
|
80
|
+
*/
|
|
81
|
+
export function mapDatoMensualToMonthlyData(dato) {
|
|
82
|
+
return {
|
|
83
|
+
year: dato.Año,
|
|
84
|
+
month: dato.Mes,
|
|
85
|
+
numDays: dato.NumDias,
|
|
86
|
+
avgTemperature: dato.TempMedia,
|
|
87
|
+
maxTemperature: dato.TempMax,
|
|
88
|
+
timeMaxTemperature: dato.DiaHorMinTempMax,
|
|
89
|
+
minTemperature: dato.TempMin,
|
|
90
|
+
timeMinTemperature: dato.DiaHorMinTempMin,
|
|
91
|
+
avgHumidity: dato.HumedadMedia,
|
|
92
|
+
maxHumidity: dato.HumedadMax,
|
|
93
|
+
timeMaxHumidity: dato.DiaHorMinHumMax,
|
|
94
|
+
minHumidity: dato.HumedadMin,
|
|
95
|
+
timeMinHumidity: dato.DiaHorMinHumMin,
|
|
96
|
+
avgWindSpeed: dato.VelViento,
|
|
97
|
+
avgWindDirection: dato.DirViento,
|
|
98
|
+
maxWindSpeed: dato.VelVientoMax,
|
|
99
|
+
timeMaxWindSpeed: dato.DiaHorMinVelMax,
|
|
100
|
+
windDirectionAtMaxSpeed: dato.DirVientoVelMax,
|
|
101
|
+
radiation: dato.Radiacion,
|
|
102
|
+
precipitation: dato.Precipitacion,
|
|
103
|
+
etPenmanMonteith: dato.EtPMon,
|
|
104
|
+
pePenmanMonteith: dato.PePMon,
|
|
105
|
+
station: dato.Estacion,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Maps CCAA to AutonomousCommunity
|
|
110
|
+
*/
|
|
111
|
+
export function mapCCAA(ccaa) {
|
|
112
|
+
return {
|
|
113
|
+
id: ccaa.Identificador,
|
|
114
|
+
description: ccaa.Descripcion,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Maps Provincia to ProvinceInfo
|
|
119
|
+
*/
|
|
120
|
+
export function mapProvincia(provincia) {
|
|
121
|
+
return {
|
|
122
|
+
name: provincia.Provincia,
|
|
123
|
+
code: provincia.Codigo,
|
|
124
|
+
ccaaCode: provincia.Codigo_CCAA,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Maps Estacion to StationInfo
|
|
129
|
+
*/
|
|
130
|
+
export function mapEstacion(estacion) {
|
|
131
|
+
return {
|
|
132
|
+
code: estacion.Codigo,
|
|
133
|
+
description: estacion.Estacion,
|
|
134
|
+
altitude: estacion.Altitud,
|
|
135
|
+
installationDate: estacion.Fecha_Instalacion,
|
|
136
|
+
deactivationDate: estacion.Fecha_Baja,
|
|
137
|
+
timezone: estacion.Huso,
|
|
138
|
+
latitude: estacion.Latitud,
|
|
139
|
+
longitude: estacion.Longitud,
|
|
140
|
+
municipality: estacion.Termino,
|
|
141
|
+
utmX: estacion.XUTM,
|
|
142
|
+
utmY: estacion.YUTM,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Maps InformacionAccesos to AccessInformation
|
|
147
|
+
*/
|
|
148
|
+
export function mapInformacionAccesos(info) {
|
|
149
|
+
return {
|
|
150
|
+
accessesCurrentMinute: info.NumAccesosMinutoActual,
|
|
151
|
+
maxAccessesPerMinute: info.MaxAccesosMinuto,
|
|
152
|
+
accessesCurrentDay: info.NumAccesosDiaActual,
|
|
153
|
+
maxAccessesPerDay: info.MaxAccesosDia,
|
|
154
|
+
recordsCurrentMinute: info.RegistrosAcumuladosMinuto,
|
|
155
|
+
maxRecordsPerMinute: info.MaxRegistrosMinuto,
|
|
156
|
+
recordsCurrentDay: info.RegistrosAcumuladosDia,
|
|
157
|
+
maxRecordsPerDay: info.MaxRegistrosDia,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=Mappers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mappers.js","sourceRoot":"","sources":["../../src/mappers/Mappers.ts"],"names":[],"mappings":"AAyBA;;GAEG;AACH,MAAM,UAAU,0BAA0B,CAAC,IAAiB;IAC1D,OAAO;QACL,WAAW,EAAE,IAAI,CAAC,OAAO;QACzB,cAAc,EAAE,IAAI,CAAC,SAAS;QAC9B,WAAW,EAAE,IAAI,CAAC,YAAY;QAC9B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,aAAa,EAAE,IAAI,CAAC,SAAS;QAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,gBAAgB,EAAE,IAAI,CAAC,UAAU;QACjC,gBAAgB,EAAE,IAAI,CAAC,UAAU;QACjC,OAAO,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AC,IAAI;QACnB,IAAI,EAAE,QAAQ,CAAC,IAAI;KACpB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CACnC,IAAwB;IAExB,OAAO;QACL,qBAAqB,EAAE,IAAI,CAAC,sBAAsB;QAClD,oBAAoB,EAAE,IAAI,CAAC,gBAAgB;QAC3C,kBAAkB,EAAE,IAAI,CAAC,mBAAmB;QAC5C,iBAAiB,EAAE,IAAI,CAAC,aAAa;QACrC,oBAAoB,EAAE,IAAI,CAAC,yBAAyB;QACpD,mBAAmB,EAAE,IAAI,CAAC,kBAAkB;QAC5C,iBAAiB,EAAE,IAAI,CAAC,sBAAsB;QAC9C,gBAAgB,EAAE,IAAI,CAAC,eAAe;KACvC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Models.d.ts","sourceRoot":"","sources":["../../src/public/Models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Models.js","sourceRoot":"","sources":["../../src/public/Models.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type DataPetitionParams } from "../client/data/DataService.js";
|
|
2
|
+
import type { Scope } from "./data/Models.js";
|
|
3
|
+
/**
|
|
4
|
+
* Wrapper around the SIAR API services.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SIARClient {
|
|
7
|
+
private apiKey;
|
|
8
|
+
private dataPetitionService;
|
|
9
|
+
private informationService;
|
|
10
|
+
constructor(apiKey: string);
|
|
11
|
+
/**
|
|
12
|
+
* Fetch hourly data (recorded every 30 minutes, 48 data points per day).
|
|
13
|
+
* @param ambito — Scope of the petition (CCAA, Province, Station)
|
|
14
|
+
* @param params — Petition parameters
|
|
15
|
+
* @returns — Promise resolving to hourly data
|
|
16
|
+
*/
|
|
17
|
+
fetchHourlyData(scope: Scope, params: DataPetitionParams): Promise<import("./Models.js").GeneralResponse<import("./data/Models.js").HourlyData[]>>;
|
|
18
|
+
/**
|
|
19
|
+
* Fetch daily data.
|
|
20
|
+
* @param ambito Scope of the petition (CCAA, Province, Station)
|
|
21
|
+
* @param params Petition parameters
|
|
22
|
+
* @returns Promise resolving to daily data
|
|
23
|
+
*/
|
|
24
|
+
fetchDailyData(scope: Scope, params: DataPetitionParams): Promise<import("./Models.js").GeneralResponse<import("./data/Models.js").DailyData[]>>;
|
|
25
|
+
/**
|
|
26
|
+
* Fetch weekly data.
|
|
27
|
+
* @param ambito Scope of the petition (CCAA, Province, Station)
|
|
28
|
+
* @param params Petition parameters
|
|
29
|
+
* @returns Promise resolving to weekly data
|
|
30
|
+
*/
|
|
31
|
+
fetchWeeklyData(scope: Scope, params: DataPetitionParams): Promise<import("./Models.js").GeneralResponse<import("./data/Models.js").WeeklyData[]>>;
|
|
32
|
+
/**
|
|
33
|
+
* Fetch monthly data.
|
|
34
|
+
* @param ambito Scope of the petition (CCAA, Province, Station)
|
|
35
|
+
* @param params Petition parameters
|
|
36
|
+
* @returns Promise resolving to monthly data
|
|
37
|
+
*/
|
|
38
|
+
fetchMonthlyData(scope: Scope, params: DataPetitionParams): Promise<import("./Models.js").GeneralResponse<import("./data/Models.js").MonthlyData[]>>;
|
|
39
|
+
/**
|
|
40
|
+
* Fetch identifiers and descriptions of authorized autonomous communities.
|
|
41
|
+
* @returns Promise resolving to the list of autonomous communities
|
|
42
|
+
*/
|
|
43
|
+
fetchAutonomousCommunities(): Promise<import("./Models.js").GeneralResponse<import("./information/Models.js").AutonomousCommunity[]>>;
|
|
44
|
+
/**
|
|
45
|
+
* Fetch identifiers and descriptions of authorized provinces.
|
|
46
|
+
* @returns Promise resolving to the list of provinces
|
|
47
|
+
*/
|
|
48
|
+
fetchProvinces(): Promise<import("./Models.js").GeneralResponse<import("./information/Models.js").Province[]>>;
|
|
49
|
+
/**
|
|
50
|
+
* Fetch identifiers and descriptions of authorized stations.
|
|
51
|
+
* @returns Promise resolving to the list of stations
|
|
52
|
+
*/
|
|
53
|
+
fetchStations(): Promise<import("./Models.js").GeneralResponse<import("./information/Models.js").Station[]>>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=SIARClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SIARClient.d.ts","sourceRoot":"","sources":["../../src/public/SIARClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;GAEG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,mBAAmB,CAAsB;IACjD,OAAO,CAAC,kBAAkB,CAAqB;gBAEnC,MAAM,EAAE,MAAM;IAM1B;;;;;OAKG;IACI,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB;IAI/D;;;;;OAKG;IACI,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB;IAI9D;;;;;OAKG;IACI,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB;IAI/D;;;;;OAKG;IACI,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB;IAIhE;;;OAGG;IACI,0BAA0B;IAIjC;;;OAGG;IACI,cAAc;IAIrB;;;OAGG;IACI,aAAa;CAGrB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { DataPetitionService, } from "../client/data/DataService.js";
|
|
2
|
+
import { InformationService } from "../client/information/InformationService.js";
|
|
3
|
+
/**
|
|
4
|
+
* Wrapper around the SIAR API services.
|
|
5
|
+
*/
|
|
6
|
+
export class SIARClient {
|
|
7
|
+
apiKey;
|
|
8
|
+
dataPetitionService;
|
|
9
|
+
informationService;
|
|
10
|
+
constructor(apiKey) {
|
|
11
|
+
this.apiKey = apiKey;
|
|
12
|
+
this.dataPetitionService = new DataPetitionService(this.apiKey);
|
|
13
|
+
this.informationService = new InformationService(this.apiKey);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Fetch hourly data (recorded every 30 minutes, 48 data points per day).
|
|
17
|
+
* @param ambito — Scope of the petition (CCAA, Province, Station)
|
|
18
|
+
* @param params — Petition parameters
|
|
19
|
+
* @returns — Promise resolving to hourly data
|
|
20
|
+
*/
|
|
21
|
+
fetchHourlyData(scope, params) {
|
|
22
|
+
return this.dataPetitionService.fetchHourlyData(scope, params);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Fetch daily data.
|
|
26
|
+
* @param ambito Scope of the petition (CCAA, Province, Station)
|
|
27
|
+
* @param params Petition parameters
|
|
28
|
+
* @returns Promise resolving to daily data
|
|
29
|
+
*/
|
|
30
|
+
fetchDailyData(scope, params) {
|
|
31
|
+
return this.dataPetitionService.fetchDailyData(scope, params);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Fetch weekly data.
|
|
35
|
+
* @param ambito Scope of the petition (CCAA, Province, Station)
|
|
36
|
+
* @param params Petition parameters
|
|
37
|
+
* @returns Promise resolving to weekly data
|
|
38
|
+
*/
|
|
39
|
+
fetchWeeklyData(scope, params) {
|
|
40
|
+
return this.dataPetitionService.fetchWeeklyData(scope, params);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Fetch monthly data.
|
|
44
|
+
* @param ambito Scope of the petition (CCAA, Province, Station)
|
|
45
|
+
* @param params Petition parameters
|
|
46
|
+
* @returns Promise resolving to monthly data
|
|
47
|
+
*/
|
|
48
|
+
fetchMonthlyData(scope, params) {
|
|
49
|
+
return this.dataPetitionService.fetchMonthlyData(scope, params);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Fetch identifiers and descriptions of authorized autonomous communities.
|
|
53
|
+
* @returns Promise resolving to the list of autonomous communities
|
|
54
|
+
*/
|
|
55
|
+
fetchAutonomousCommunities() {
|
|
56
|
+
return this.informationService.fetchAutonomousCommunities();
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Fetch identifiers and descriptions of authorized provinces.
|
|
60
|
+
* @returns Promise resolving to the list of provinces
|
|
61
|
+
*/
|
|
62
|
+
fetchProvinces() {
|
|
63
|
+
return this.informationService.fetchProvinces();
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Fetch identifiers and descriptions of authorized stations.
|
|
67
|
+
* @returns Promise resolving to the list of stations
|
|
68
|
+
*/
|
|
69
|
+
fetchStations() {
|
|
70
|
+
return this.informationService.fetchStations();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=SIARClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SIARClient.js","sourceRoot":"","sources":["../../src/public/SIARClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAGjF;;GAEG;AACH,MAAM,OAAO,UAAU;IACb,MAAM,CAAS;IACf,mBAAmB,CAAsB;IACzC,kBAAkB,CAAqB;IAE/C,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,mBAAmB,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChE,IAAI,CAAC,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IACI,eAAe,CAAC,KAAY,EAAE,MAA0B;QAC7D,OAAO,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACI,cAAc,CAAC,KAAY,EAAE,MAA0B;QAC5D,OAAO,IAAI,CAAC,mBAAmB,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAChE,CAAC;IAED;;;;;OAKG;IACI,eAAe,CAAC,KAAY,EAAE,MAA0B;QAC7D,OAAO,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,KAAY,EAAE,MAA0B;QAC9D,OAAO,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAClE,CAAC;IAED;;;OAGG;IACI,0BAA0B;QAC/B,OAAO,IAAI,CAAC,kBAAkB,CAAC,0BAA0B,EAAE,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACI,cAAc;QACnB,OAAO,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE,CAAC;IAClD,CAAC;IAED;;;OAGG;IACI,aAAa;QAClB,OAAO,IAAI,CAAC,kBAAkB,CAAC,aAAa,EAAE,CAAC;IACjD,CAAC;CACF"}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipos de datos disponibles en la API SIAR
|
|
3
|
+
*/
|
|
4
|
+
export declare enum DataType {
|
|
5
|
+
Hourly = "Horarios",
|
|
6
|
+
Daily = "Diarios",
|
|
7
|
+
Weekly = "Semanales",
|
|
8
|
+
Monthly = "Mensuales"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Ámbitos de petición disponibles
|
|
12
|
+
*/
|
|
13
|
+
export declare enum Scope {
|
|
14
|
+
AutonomousCommunity = "CCAA",
|
|
15
|
+
Province = "Provincia",
|
|
16
|
+
Station = "Estacion"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Hourly data - Recorded every half hour (48 data points per day)
|
|
20
|
+
*/
|
|
21
|
+
export interface HourlyData {
|
|
22
|
+
/** Hour and minutes (0-30) */
|
|
23
|
+
timeMinutes: number;
|
|
24
|
+
/** Average temperature in °C */
|
|
25
|
+
avgTemperature: number;
|
|
26
|
+
/** Average humidity in % */
|
|
27
|
+
avgHumidity: number;
|
|
28
|
+
/** Wind speed in m/s */
|
|
29
|
+
windSpeed: number;
|
|
30
|
+
/** Wind direction in degrees */
|
|
31
|
+
windDirection: number;
|
|
32
|
+
/** Solar radiation in MJ/m² */
|
|
33
|
+
radiation: number;
|
|
34
|
+
/** Precipitation in mm */
|
|
35
|
+
precipitation: number;
|
|
36
|
+
/** Soil temperature 1 in °C (can be null) */
|
|
37
|
+
soilTemperature1: number | null;
|
|
38
|
+
/** Soil temperature 2 in °C (can be null) */
|
|
39
|
+
soilTemperature2: number | null;
|
|
40
|
+
/** Station code */
|
|
41
|
+
station: string;
|
|
42
|
+
/** Data date (ISO 8601 format) */
|
|
43
|
+
date: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Daily data
|
|
47
|
+
*/
|
|
48
|
+
export interface DailyData {
|
|
49
|
+
/** Average temperature in °C */
|
|
50
|
+
avgTemperature: number;
|
|
51
|
+
/** Maximum temperature in °C */
|
|
52
|
+
maxTemperature: number;
|
|
53
|
+
/** Hour and minute of maximum temperature (HHMM format) */
|
|
54
|
+
timeMaxTemperature: number;
|
|
55
|
+
/** Minimum temperature in °C */
|
|
56
|
+
minTemperature: number;
|
|
57
|
+
/** Hour and minute of minimum temperature (HHMM format) */
|
|
58
|
+
timeMinTemperature: number;
|
|
59
|
+
/** Average humidity in % */
|
|
60
|
+
avgHumidity: number;
|
|
61
|
+
/** Maximum humidity in % */
|
|
62
|
+
maxHumidity: number;
|
|
63
|
+
/** Hour and minute of maximum humidity (HHMM format) */
|
|
64
|
+
timeMaxHumidity: number;
|
|
65
|
+
/** Minimum humidity in % */
|
|
66
|
+
minHumidity: number;
|
|
67
|
+
/** Hour and minute of minimum humidity (HHMM format) */
|
|
68
|
+
timeMinHumidity: number;
|
|
69
|
+
/** Average wind speed in m/s */
|
|
70
|
+
avgWindSpeed: number;
|
|
71
|
+
/** Average wind direction in degrees */
|
|
72
|
+
avgWindDirection: number;
|
|
73
|
+
/** Maximum wind speed in m/s */
|
|
74
|
+
maxWindSpeed: number;
|
|
75
|
+
/** Hour and minute of maximum wind speed (HHMM format) */
|
|
76
|
+
timeMaxWindSpeed: number;
|
|
77
|
+
/** Wind direction at maximum wind speed in degrees */
|
|
78
|
+
windDirectionAtMaxSpeed: number;
|
|
79
|
+
/** Solar radiation in MJ/m² */
|
|
80
|
+
radiation: number;
|
|
81
|
+
/** Precipitation in mm */
|
|
82
|
+
precipitation: number;
|
|
83
|
+
/** Soil temperature 1 in °C (can be null) */
|
|
84
|
+
soilTemperature1: number | null;
|
|
85
|
+
/** Soil temperature 2 in °C (can be null) */
|
|
86
|
+
soilTemperature2: number | null;
|
|
87
|
+
/** Reference evapotranspiration Penman-Monteith method in mm */
|
|
88
|
+
etPenmanMonteith: number;
|
|
89
|
+
/** Effective precipitation Penman-Monteith method in mm */
|
|
90
|
+
pePenmanMonteith: number;
|
|
91
|
+
/** Station code */
|
|
92
|
+
station: string;
|
|
93
|
+
/** Data date (ISO 8601 format) */
|
|
94
|
+
date: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Weekly data
|
|
98
|
+
*/
|
|
99
|
+
export interface WeeklyData {
|
|
100
|
+
/** Year */
|
|
101
|
+
year: number;
|
|
102
|
+
/** Week number */
|
|
103
|
+
week: number;
|
|
104
|
+
/** Average temperature in °C */
|
|
105
|
+
avgTemperature: number;
|
|
106
|
+
/** Maximum temperature in °C */
|
|
107
|
+
maxTemperature: number;
|
|
108
|
+
/** Day, hour and minute of maximum temperature (ISO 8601 format) */
|
|
109
|
+
timeMaxTemperature: string;
|
|
110
|
+
/** Minimum temperature in °C */
|
|
111
|
+
minTemperature: number;
|
|
112
|
+
/** Day, hour and minute of minimum temperature (ISO 8601 format) */
|
|
113
|
+
timeMinTemperature: string;
|
|
114
|
+
/** Average humidity in % */
|
|
115
|
+
avgHumidity: number;
|
|
116
|
+
/** Maximum humidity in % */
|
|
117
|
+
maxHumidity: number;
|
|
118
|
+
/** Day, hour and minute of maximum humidity (ISO 8601 format) */
|
|
119
|
+
timeMaxHumidity: string;
|
|
120
|
+
/** Minimum humidity in % */
|
|
121
|
+
minHumidity: number;
|
|
122
|
+
/** Day, hour and minute of minimum humidity (ISO 8601 format) */
|
|
123
|
+
timeMinHumidity: string;
|
|
124
|
+
/** Average wind speed in m/s */
|
|
125
|
+
avgWindSpeed: number;
|
|
126
|
+
/** Average wind direction in degrees */
|
|
127
|
+
avgWindDirection: number;
|
|
128
|
+
/** Maximum wind speed in m/s */
|
|
129
|
+
maxWindSpeed: number;
|
|
130
|
+
/** Day, hour and minute of maximum wind speed (ISO 8601 format) */
|
|
131
|
+
timeMaxWindSpeed: string;
|
|
132
|
+
/** Wind direction at maximum wind speed in degrees */
|
|
133
|
+
windDirectionAtMaxSpeed: number;
|
|
134
|
+
/** Solar radiation in MJ/m² */
|
|
135
|
+
radiation: number;
|
|
136
|
+
/** Precipitation in mm */
|
|
137
|
+
precipitation: number;
|
|
138
|
+
/** Reference evapotranspiration Penman-Monteith method in mm */
|
|
139
|
+
etPenmanMonteith: number;
|
|
140
|
+
/** Effective precipitation Penman-Monteith method in mm */
|
|
141
|
+
pePenmanMonteith: number;
|
|
142
|
+
/** Station code */
|
|
143
|
+
station: string;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Monthly data
|
|
147
|
+
*/
|
|
148
|
+
export interface MonthlyData {
|
|
149
|
+
/** Year */
|
|
150
|
+
year: number;
|
|
151
|
+
/** Month (1-12) */
|
|
152
|
+
month: number;
|
|
153
|
+
/** Number of days in the month */
|
|
154
|
+
numDays: number;
|
|
155
|
+
/** Average temperature in °C */
|
|
156
|
+
avgTemperature: number;
|
|
157
|
+
/** Maximum temperature in °C */
|
|
158
|
+
maxTemperature: number;
|
|
159
|
+
/** Day, hour and minute of maximum temperature (ISO 8601 format) */
|
|
160
|
+
timeMaxTemperature: string;
|
|
161
|
+
/** Minimum temperature in °C */
|
|
162
|
+
minTemperature: number;
|
|
163
|
+
/** Day, hour and minute of minimum temperature (ISO 8601 format) */
|
|
164
|
+
timeMinTemperature: string;
|
|
165
|
+
/** Average humidity in % */
|
|
166
|
+
avgHumidity: number;
|
|
167
|
+
/** Maximum humidity in % */
|
|
168
|
+
maxHumidity: number;
|
|
169
|
+
/** Day, hour and minute of maximum humidity (ISO 8601 format) */
|
|
170
|
+
timeMaxHumidity: string;
|
|
171
|
+
/** Minimum humidity in % */
|
|
172
|
+
minHumidity: number;
|
|
173
|
+
/** Day, hour and minute of minimum humidity (ISO 8601 format) */
|
|
174
|
+
timeMinHumidity: string;
|
|
175
|
+
/** Average wind speed in m/s */
|
|
176
|
+
avgWindSpeed: number;
|
|
177
|
+
/** Average wind direction in degrees */
|
|
178
|
+
avgWindDirection: number;
|
|
179
|
+
/** Maximum wind speed in m/s */
|
|
180
|
+
maxWindSpeed: number;
|
|
181
|
+
/** Day, hour and minute of maximum wind speed (ISO 8601 format) */
|
|
182
|
+
timeMaxWindSpeed: string;
|
|
183
|
+
/** Wind direction at maximum wind speed in degrees */
|
|
184
|
+
windDirectionAtMaxSpeed: number;
|
|
185
|
+
/** Solar radiation in MJ/m² */
|
|
186
|
+
radiation: number;
|
|
187
|
+
/** Precipitation in mm */
|
|
188
|
+
precipitation: number;
|
|
189
|
+
/** Reference evapotranspiration Penman-Monteith method in mm */
|
|
190
|
+
etPenmanMonteith: number;
|
|
191
|
+
/** Effective precipitation Penman-Monteith method in mm */
|
|
192
|
+
pePenmanMonteith: number;
|
|
193
|
+
/** Station code */
|
|
194
|
+
station: string;
|
|
195
|
+
}
|
|
196
|
+
//# sourceMappingURL=Models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Models.d.ts","sourceRoot":"","sources":["../../../src/public/data/Models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,QAAQ;IAClB,MAAM,aAAa;IACnB,KAAK,YAAY;IACjB,MAAM,cAAc;IACpB,OAAO,cAAc;CACtB;AAED;;GAEG;AACH,oBAAY,KAAK;IACf,mBAAmB,SAAS;IAC5B,QAAQ,cAAc;IACtB,OAAO,aAAa;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,8BAA8B;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,6CAA6C;IAC7C,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,gCAAgC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gCAAgC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,eAAe,EAAE,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