siar-client 0.1.3 → 2.2.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/dist/client/authentication/AuthenticationService.cjs +75 -0
- package/dist/client/authentication/AuthenticationService.d.ts +44 -0
- package/dist/client/authentication/AuthenticationService.d.ts.map +1 -0
- package/dist/client/authentication/AuthenticationService.js +75 -0
- package/dist/client/authentication/AuthenticationService.js.map +1 -0
- package/dist/client/data/DataService.cjs +7 -6
- package/dist/client/data/DataService.d.ts.map +1 -1
- package/dist/client/data/DataService.js +7 -6
- package/dist/client/data/DataService.js.map +1 -1
- package/dist/client/information/InformationService.cjs +34 -19
- package/dist/client/information/InformationService.d.ts +8 -3
- package/dist/client/information/InformationService.d.ts.map +1 -1
- package/dist/client/information/InformationService.js +34 -19
- package/dist/client/information/InformationService.js.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/Consts.cjs +2 -0
- package/dist/internal/Consts.d.ts +2 -0
- package/dist/internal/Consts.d.ts.map +1 -0
- package/dist/internal/Consts.js +2 -0
- package/dist/internal/Consts.js.map +1 -0
- package/dist/internal/Models.d.ts +1 -1
- package/dist/internal/authentication/Models.cjs +2 -0
- package/dist/internal/authentication/Models.d.ts +15 -0
- package/dist/internal/authentication/Models.d.ts.map +1 -0
- package/dist/internal/authentication/Models.js +2 -0
- package/dist/internal/authentication/Models.js.map +1 -0
- package/dist/internal/information/Models.d.ts +47 -30
- package/dist/internal/information/Models.d.ts.map +1 -1
- package/dist/mappers/Mappers.cjs +15 -2
- package/dist/mappers/Mappers.d.ts +6 -2
- package/dist/mappers/Mappers.d.ts.map +1 -1
- package/dist/mappers/Mappers.js +15 -2
- package/dist/mappers/Mappers.js.map +1 -1
- package/dist/public/SIARClient.cjs +23 -0
- package/dist/public/SIARClient.d.ts +21 -0
- package/dist/public/SIARClient.d.ts.map +1 -1
- package/dist/public/SIARClient.js +23 -0
- package/dist/public/SIARClient.js.map +1 -1
- package/dist/public/information/Models.cjs +9 -8
- package/dist/public/information/Models.d.ts +24 -6
- package/dist/public/information/Models.d.ts.map +1 -1
- package/dist/public/information/Models.js +9 -8
- package/dist/public/information/Models.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ export type { HourlyData, DailyData, WeeklyData, MonthlyData, } from "./public/d
|
|
|
2
2
|
export { DataType, Scope } from "./public/data/Models.js";
|
|
3
3
|
export { SIARClient } from "./public/SIARClient.js";
|
|
4
4
|
export type { DataPetitionParams } from "./client/data/DataService.js";
|
|
5
|
+
export { InformationCategory } from "./public/information/Models.js";
|
|
6
|
+
export type { AutonomousCommunity, Province, Station, AccessInformation, } from "./public/information/Models.js";
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAW,GACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,YAAY,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAW,GACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,YAAY,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,YAAY,EACV,mBAAmB,EACnB,QAAQ,EACR,OAAO,EACP,iBAAiB,GAClB,MAAM,gCAAgC,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Consts.d.ts","sourceRoot":"","sources":["../../src/internal/Consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,EAAE,MAA+C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Consts.js","sourceRoot":"","sources":["../../src/internal/Consts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAW,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Encrypted string returned by the API
|
|
3
|
+
*/
|
|
4
|
+
export interface CadenaCifrada {
|
|
5
|
+
Datos: string;
|
|
6
|
+
MensajeRespuesta: string | null;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Authentication token returned by the API
|
|
10
|
+
*/
|
|
11
|
+
export interface TokenAutenticacion {
|
|
12
|
+
Datos: string;
|
|
13
|
+
MensajeRespuesta: string | null;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Models.d.ts","sourceRoot":"","sources":["../../../src/internal/authentication/Models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Models.js","sourceRoot":"","sources":["../../../src/internal/authentication/Models.ts"],"names":[],"mappings":""}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface CCAA {
|
|
5
5
|
/** Identificador de la CCAA */
|
|
6
|
-
|
|
6
|
+
CCAA: string;
|
|
7
7
|
/** Descripción de la CCAA */
|
|
8
|
-
|
|
8
|
+
Codigo: string;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Información de una Provincia
|
|
@@ -13,57 +13,74 @@ export interface CCAA {
|
|
|
13
13
|
export interface Provincia {
|
|
14
14
|
/** Nombre de la Provincia */
|
|
15
15
|
Provincia: string;
|
|
16
|
-
/** Código de la
|
|
16
|
+
/** Código que identifica a la provincia para su uso en los servicios de la Web API. */
|
|
17
17
|
Codigo: string;
|
|
18
|
-
/** Código de
|
|
18
|
+
/** Código de tres letras que identifica a la C.A. */
|
|
19
19
|
Codigo_CCAA: string;
|
|
20
|
+
/** ID numérico */
|
|
21
|
+
IdProvincia: number;
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* Información de una Estación
|
|
23
25
|
*/
|
|
24
26
|
export interface Estacion {
|
|
25
|
-
/**
|
|
26
|
-
Altitud: number;
|
|
27
|
-
/** Código de la estación */
|
|
28
|
-
Codigo: string;
|
|
29
|
-
/** Nombre de la estación */
|
|
27
|
+
/** Nombre de la estación meteorológica */
|
|
30
28
|
Estacion: string;
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
/**
|
|
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 */
|
|
29
|
+
/** Código identificador de la estación (único dentro de la provincia) */
|
|
30
|
+
Codigo: string;
|
|
31
|
+
/** Nombre del término municipal donde está ubicada la estación */
|
|
42
32
|
Termino: string;
|
|
43
|
-
/** Coordenada
|
|
33
|
+
/** Coordenada de longitud en formato DMS (grados, minutos, segundos) */
|
|
34
|
+
Longitud: string;
|
|
35
|
+
/** Coordenada de latitud en formato DMS (grados, minutos, segundos) */
|
|
36
|
+
Latitud: string;
|
|
37
|
+
/** Altura de la estación sobre el nivel del mar (en metros) */
|
|
38
|
+
Altitud: number;
|
|
39
|
+
/** Coordenada UTM en el eje X (Este) */
|
|
44
40
|
XUTM: number;
|
|
45
|
-
/** Coordenada Y
|
|
41
|
+
/** Coordenada UTM en el eje Y (Norte) */
|
|
46
42
|
YUTM: number;
|
|
43
|
+
/** Huso geográfico UTM correspondiente */
|
|
44
|
+
Huso: number;
|
|
45
|
+
/** Fecha de instalación de la estación (formato ISO 8601) */
|
|
46
|
+
Fecha_Instalacion: string;
|
|
47
|
+
/** Fecha de baja de la estación (null si está activa) */
|
|
48
|
+
Fecha_Baja: string | null;
|
|
49
|
+
/** Indica si la estación es del ministerio o de C.A. */
|
|
50
|
+
Red_estacion: string;
|
|
51
|
+
/** ID numérico que identifica a la provincia */
|
|
52
|
+
IdProvincia: number;
|
|
53
|
+
/** Identificador interno único de la estación */
|
|
54
|
+
IdEstacion: number;
|
|
47
55
|
}
|
|
48
56
|
/**
|
|
49
57
|
* Información sobre accesos y limitaciones
|
|
50
58
|
*/
|
|
51
59
|
export interface InformacionAccesos {
|
|
52
|
-
/** Número de
|
|
60
|
+
/** Número de peticiones realizadas por el usuario en el último minuto */
|
|
53
61
|
NumAccesosMinutoActual: number;
|
|
54
|
-
/** Número máximo de
|
|
62
|
+
/** Número máximo de peticiones permitidas por minuto con el token actual */
|
|
55
63
|
MaxAccesosMinuto: number;
|
|
56
|
-
/** Número de
|
|
64
|
+
/** Número total de peticiones realizadas en el día actual */
|
|
57
65
|
NumAccesosDiaActual: number;
|
|
58
|
-
/** Número máximo de
|
|
66
|
+
/** Número máximo de peticiones permitidas por día */
|
|
59
67
|
MaxAccesosDia: number;
|
|
60
|
-
/** Número de registros
|
|
68
|
+
/** Número total de registros descargados en el último minuto */
|
|
61
69
|
RegistrosAcumuladosMinuto: number;
|
|
62
|
-
/**
|
|
70
|
+
/** Límite máximo de registros que pueden descargarse por minuto */
|
|
63
71
|
MaxRegistrosMinuto: number;
|
|
64
|
-
/**
|
|
72
|
+
/** Total de registros descargados en el día actual */
|
|
65
73
|
RegistrosAcumuladosDia: number;
|
|
66
|
-
/**
|
|
74
|
+
/** Límite máximo de registros que se pueden descargar en un solo día */
|
|
67
75
|
MaxRegistrosDia: number;
|
|
68
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Información de un código de validación
|
|
79
|
+
*/
|
|
80
|
+
export interface CodigoValidacion {
|
|
81
|
+
/** Descripción del código de validación */
|
|
82
|
+
Descripcion: string;
|
|
83
|
+
/** ID del código de validación */
|
|
84
|
+
IdCodigoValidacion: string;
|
|
85
|
+
}
|
|
69
86
|
//# sourceMappingURL=Models.d.ts.map
|
|
@@ -1 +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,
|
|
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,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,yEAAyE;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,wDAAwD;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,yEAAyE;IACzE,sBAAsB,EAAE,MAAM,CAAC;IAC/B,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE,yBAAyB,EAAE,MAAM,CAAC;IAClC,mEAAmE;IACnE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,wEAAwE;IACxE,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,kBAAkB,EAAE,MAAM,CAAC;CAC5B"}
|
package/dist/mappers/Mappers.cjs
CHANGED
|
@@ -110,8 +110,8 @@ exports.mapDatoMensualToMonthlyData =(dato) {
|
|
|
110
110
|
*/
|
|
111
111
|
exports.mapCCAA =(ccaa) {
|
|
112
112
|
return {
|
|
113
|
-
id: ccaa.
|
|
114
|
-
description: ccaa.
|
|
113
|
+
id: ccaa.Codigo,
|
|
114
|
+
description: ccaa.CCAA,
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
@@ -122,6 +122,7 @@ exports.mapProvincia =(provincia) {
|
|
|
122
122
|
name: provincia.Provincia,
|
|
123
123
|
code: provincia.Codigo,
|
|
124
124
|
ccaaCode: provincia.Codigo_CCAA,
|
|
125
|
+
id: provincia.IdProvincia,
|
|
125
126
|
};
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
@@ -140,6 +141,9 @@ exports.mapEstacion =(estacion) {
|
|
|
140
141
|
municipality: estacion.Termino,
|
|
141
142
|
utmX: estacion.XUTM,
|
|
142
143
|
utmY: estacion.YUTM,
|
|
144
|
+
networkType: estacion.Red_estacion,
|
|
145
|
+
provinceId: estacion.IdProvincia,
|
|
146
|
+
stationId: estacion.IdEstacion,
|
|
143
147
|
};
|
|
144
148
|
}
|
|
145
149
|
/**
|
|
@@ -157,4 +161,13 @@ exports.mapInformacionAccesos =(info) {
|
|
|
157
161
|
maxRecordsPerDay: info.MaxRegistrosDia,
|
|
158
162
|
};
|
|
159
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Maps CodigoValidacion to ValidationCode
|
|
166
|
+
*/
|
|
167
|
+
exports.mapCodigoValidacion =(codigo) {
|
|
168
|
+
return {
|
|
169
|
+
description: codigo.Descripcion,
|
|
170
|
+
id: codigo.IdCodigoValidacion,
|
|
171
|
+
};
|
|
172
|
+
}
|
|
160
173
|
//# sourceMappingURL=Mappers.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { AutonomousCommunity, Province, Station, AccessInformation } from "../public/information/Models.js";
|
|
1
|
+
import type { AutonomousCommunity, Province, Station, AccessInformation, ValidationCode } from "../public/information/Models.js";
|
|
2
2
|
import type { HourlyData, DailyData, WeeklyData, MonthlyData } from "../index.js";
|
|
3
3
|
import type { DatoHorario, DatoDiario, DatoSemanal, DatoMensual } from "../internal/data/Models.js";
|
|
4
|
-
import type { CCAA, Provincia, Estacion, InformacionAccesos } from "../internal/information/Models.js";
|
|
4
|
+
import type { CCAA, Provincia, Estacion, InformacionAccesos, CodigoValidacion } from "../internal/information/Models.js";
|
|
5
5
|
/**
|
|
6
6
|
* Maps DatoHorario to HourlyData
|
|
7
7
|
*/
|
|
@@ -34,4 +34,8 @@ export declare function mapEstacion(estacion: Estacion): Station;
|
|
|
34
34
|
* Maps InformacionAccesos to AccessInformation
|
|
35
35
|
*/
|
|
36
36
|
export declare function mapInformacionAccesos(info: InformacionAccesos): AccessInformation;
|
|
37
|
+
/**
|
|
38
|
+
* Maps CodigoValidacion to ValidationCode
|
|
39
|
+
*/
|
|
40
|
+
export declare function mapCodigoValidacion(codigo: CodigoValidacion): ValidationCode;
|
|
37
41
|
//# sourceMappingURL=Mappers.d.ts.map
|
|
@@ -1 +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,
|
|
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,EACjB,cAAc,EACf,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,EAClB,gBAAgB,EACjB,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,CAO3D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAiBvD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,kBAAkB,GACvB,iBAAiB,CAWnB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,GAAG,cAAc,CAK5E"}
|
package/dist/mappers/Mappers.js
CHANGED
|
@@ -110,8 +110,8 @@ export function mapDatoMensualToMonthlyData(dato) {
|
|
|
110
110
|
*/
|
|
111
111
|
export function mapCCAA(ccaa) {
|
|
112
112
|
return {
|
|
113
|
-
id: ccaa.
|
|
114
|
-
description: ccaa.
|
|
113
|
+
id: ccaa.Codigo,
|
|
114
|
+
description: ccaa.CCAA,
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
@@ -122,6 +122,7 @@ export function mapProvincia(provincia) {
|
|
|
122
122
|
name: provincia.Provincia,
|
|
123
123
|
code: provincia.Codigo,
|
|
124
124
|
ccaaCode: provincia.Codigo_CCAA,
|
|
125
|
+
id: provincia.IdProvincia,
|
|
125
126
|
};
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
@@ -140,6 +141,9 @@ export function mapEstacion(estacion) {
|
|
|
140
141
|
municipality: estacion.Termino,
|
|
141
142
|
utmX: estacion.XUTM,
|
|
142
143
|
utmY: estacion.YUTM,
|
|
144
|
+
networkType: estacion.Red_estacion,
|
|
145
|
+
provinceId: estacion.IdProvincia,
|
|
146
|
+
stationId: estacion.IdEstacion,
|
|
143
147
|
};
|
|
144
148
|
}
|
|
145
149
|
/**
|
|
@@ -157,4 +161,13 @@ export function mapInformacionAccesos(info) {
|
|
|
157
161
|
maxRecordsPerDay: info.MaxRegistrosDia,
|
|
158
162
|
};
|
|
159
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Maps CodigoValidacion to ValidationCode
|
|
166
|
+
*/
|
|
167
|
+
export function mapCodigoValidacion(codigo) {
|
|
168
|
+
return {
|
|
169
|
+
description: codigo.Descripcion,
|
|
170
|
+
id: codigo.IdCodigoValidacion,
|
|
171
|
+
};
|
|
172
|
+
}
|
|
160
173
|
//# sourceMappingURL=Mappers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mappers.js","sourceRoot":"","sources":["../../src/mappers/Mappers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Mappers.js","sourceRoot":"","sources":["../../src/mappers/Mappers.ts"],"names":[],"mappings":"AA2BA;;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,EAAE,IAAI,CAAC,QAAQ;QACtB,IAAI,EAAE,IAAI,CAAC,KAAK;KACjB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAAgB;IACvD,OAAO;QACL,cAAc,EAAE,IAAI,CAAC,SAAS;QAC9B,cAAc,EAAE,IAAI,CAAC,OAAO;QAC5B,kBAAkB,EAAE,IAAI,CAAC,aAAa;QACtC,cAAc,EAAE,IAAI,CAAC,OAAO;QAC5B,kBAAkB,EAAE,IAAI,CAAC,aAAa;QACtC,WAAW,EAAE,IAAI,CAAC,YAAY;QAC9B,WAAW,EAAE,IAAI,CAAC,UAAU;QAC5B,eAAe,EAAE,IAAI,CAAC,YAAY;QAClC,WAAW,EAAE,IAAI,CAAC,UAAU;QAC5B,eAAe,EAAE,IAAI,CAAC,YAAY;QAClC,YAAY,EAAE,IAAI,CAAC,SAAS;QAC5B,gBAAgB,EAAE,IAAI,CAAC,SAAS;QAChC,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,gBAAgB,EAAE,IAAI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AU,mBAAmB,CAAC,MAAwB;IAC1D,OAAO;QACL,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,EAAE,EAAE,MAAM,CAAC,kBAAkB;KAC9B,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const { DataPetitionService, } = require('../client/data/DataService.js');
|
|
2
2
|
const { InformationService } = require('../client/information/InformationService.js');
|
|
3
|
+
const { AuthenticationService } = require('../client/authentication/AuthenticationService.js');
|
|
3
4
|
/**
|
|
4
5
|
* Wrapper around the SIAR API services.
|
|
5
6
|
*/
|
|
@@ -8,6 +9,7 @@ exports.SIARClient = {
|
|
|
8
9
|
this.apiKey = apiKey;
|
|
9
10
|
this.dataPetitionService = new DataPetitionService(this.apiKey);
|
|
10
11
|
this.informationService = new InformationService(this.apiKey);
|
|
12
|
+
this.authenticationService = new AuthenticationService();
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Fetch hourly data (recorded every 30 minutes, 48 data points per day).
|
|
@@ -66,5 +68,26 @@ exports.SIARClient = {
|
|
|
66
68
|
fetchStations() {
|
|
67
69
|
return this.informationService.fetchStations();
|
|
68
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Encrypt a string (user identifier or password) using SIAR API encryption.
|
|
73
|
+
* @param text String to encrypt
|
|
74
|
+
* @returns Promise resolving to the encrypted string
|
|
75
|
+
*/
|
|
76
|
+
encryptString(text) {
|
|
77
|
+
return this.authenticationService.encryptString(text);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Obtain an authentication token for accessing SIAR protected services.
|
|
81
|
+
* This method performs the complete authentication process:
|
|
82
|
+
* 1. Encrypts the user identifier
|
|
83
|
+
* 2. Encrypts the password
|
|
84
|
+
* 3. Obtains the authentication token
|
|
85
|
+
*
|
|
86
|
+
* @param params Authentication parameters (userId and password)
|
|
87
|
+
* @returns Promise resolving to the authentication token
|
|
88
|
+
*/
|
|
89
|
+
obtainToken(params) {
|
|
90
|
+
return this.authenticationService.obtainToken(params);
|
|
91
|
+
}
|
|
69
92
|
}
|
|
70
93
|
//# sourceMappingURL=SIARClient.js.map
|
|
@@ -7,6 +7,7 @@ export declare class SIARClient {
|
|
|
7
7
|
private apiKey;
|
|
8
8
|
private dataPetitionService;
|
|
9
9
|
private informationService;
|
|
10
|
+
private authenticationService;
|
|
10
11
|
constructor(apiKey: string);
|
|
11
12
|
/**
|
|
12
13
|
* Fetch hourly data (recorded every 30 minutes, 48 data points per day).
|
|
@@ -51,5 +52,25 @@ export declare class SIARClient {
|
|
|
51
52
|
* @returns Promise resolving to the list of stations
|
|
52
53
|
*/
|
|
53
54
|
fetchStations(): Promise<import("./Models.js").GeneralResponse<import("./information/Models.js").Station[]>>;
|
|
55
|
+
/**
|
|
56
|
+
* Encrypt a string (user identifier or password) using SIAR API encryption.
|
|
57
|
+
* @param text String to encrypt
|
|
58
|
+
* @returns Promise resolving to the encrypted string
|
|
59
|
+
*/
|
|
60
|
+
encryptString(text: string): Promise<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Obtain an authentication token for accessing SIAR protected services.
|
|
63
|
+
* This method performs the complete authentication process:
|
|
64
|
+
* 1. Encrypts the user identifier
|
|
65
|
+
* 2. Encrypts the password
|
|
66
|
+
* 3. Obtains the authentication token
|
|
67
|
+
*
|
|
68
|
+
* @param params Authentication parameters (userId and password)
|
|
69
|
+
* @returns Promise resolving to the authentication token
|
|
70
|
+
*/
|
|
71
|
+
obtainToken(params: {
|
|
72
|
+
userId: string;
|
|
73
|
+
password: string;
|
|
74
|
+
}): Promise<string>;
|
|
54
75
|
}
|
|
55
76
|
//# sourceMappingURL=SIARClient.d.ts.map
|
|
@@ -1 +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;
|
|
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;AAGvC,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;IAC/C,OAAO,CAAC,qBAAqB,CAAwB;gBAEzC,MAAM,EAAE,MAAM;IAO1B;;;;;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;IAIpB;;;;OAIG;IACI,aAAa,CAAC,IAAI,EAAE,MAAM;IAIjC;;;;;;;;;OASG;IACI,WAAW,CAAC,MAAM,EAAE;QACzB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,GAAG,OAAO,CAAC,MAAM,CAAC;CAGpB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DataPetitionService, } from "../client/data/DataService.js";
|
|
2
2
|
import { InformationService } from "../client/information/InformationService.js";
|
|
3
|
+
import { AuthenticationService } from "../client/authentication/AuthenticationService.js";
|
|
3
4
|
/**
|
|
4
5
|
* Wrapper around the SIAR API services.
|
|
5
6
|
*/
|
|
@@ -8,6 +9,7 @@ export class SIARClient {
|
|
|
8
9
|
this.apiKey = apiKey;
|
|
9
10
|
this.dataPetitionService = new DataPetitionService(this.apiKey);
|
|
10
11
|
this.informationService = new InformationService(this.apiKey);
|
|
12
|
+
this.authenticationService = new AuthenticationService();
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* Fetch hourly data (recorded every 30 minutes, 48 data points per day).
|
|
@@ -66,5 +68,26 @@ export class SIARClient {
|
|
|
66
68
|
fetchStations() {
|
|
67
69
|
return this.informationService.fetchStations();
|
|
68
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Encrypt a string (user identifier or password) using SIAR API encryption.
|
|
73
|
+
* @param text String to encrypt
|
|
74
|
+
* @returns Promise resolving to the encrypted string
|
|
75
|
+
*/
|
|
76
|
+
encryptString(text) {
|
|
77
|
+
return this.authenticationService.encryptString(text);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Obtain an authentication token for accessing SIAR protected services.
|
|
81
|
+
* This method performs the complete authentication process:
|
|
82
|
+
* 1. Encrypts the user identifier
|
|
83
|
+
* 2. Encrypts the password
|
|
84
|
+
* 3. Obtains the authentication token
|
|
85
|
+
*
|
|
86
|
+
* @param params Authentication parameters (userId and password)
|
|
87
|
+
* @returns Promise resolving to the authentication token
|
|
88
|
+
*/
|
|
89
|
+
obtainToken(params) {
|
|
90
|
+
return this.authenticationService.obtainToken(params);
|
|
91
|
+
}
|
|
69
92
|
}
|
|
70
93
|
//# sourceMappingURL=SIARClient.js.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"SIARClient.js","sourceRoot":"","sources":["../../src/public/SIARClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAE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AC;IAClD,CAAC;IAED;;;OAGG;IACI,aAAa;QAClB,OAAO,IAAI,CAAC,kBAAkB,CAAC,aAAa,EAAE,CAAC;IACjD,CAAC;IAED;;;;OAIG;IACI,aAAa,CAAC,IAAY;QAC/B,OAAO,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;;;OASG;IACI,WAAW,CAAC,MAGlB;QACC,OAAO,IAAI,CAAC,qBAAqB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Available information types in the SIAR API
|
|
3
3
|
*/
|
|
4
|
-
export var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
export var InformationCategory;
|
|
5
|
+
(function (InformationCategory) {
|
|
6
|
+
InformationCategory["AutonomousCommunity"] = "CCAA";
|
|
7
|
+
InformationCategory["Province"] = "PROVINCIAS";
|
|
8
|
+
InformationCategory["Station"] = "ESTACIONES";
|
|
9
|
+
InformationCategory["Access"] = "ACCESOS";
|
|
10
|
+
InformationCategory["ValidationCode"] = "CODIGOSVALIDACION";
|
|
11
|
+
})(InformationCategory || (InformationCategory = {}));
|
|
11
12
|
//# sourceMappingURL=Models.js.map
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Available information types in the SIAR API
|
|
3
3
|
*/
|
|
4
|
-
export declare enum
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export declare enum InformationCategory {
|
|
5
|
+
AutonomousCommunity = "CCAA",
|
|
6
|
+
Province = "PROVINCIAS",
|
|
7
|
+
Station = "ESTACIONES",
|
|
8
|
+
Access = "ACCESOS",
|
|
9
|
+
ValidationCode = "CODIGOSVALIDACION"
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* Autonomous Community information
|
|
@@ -26,6 +27,8 @@ export interface Province {
|
|
|
26
27
|
code: string;
|
|
27
28
|
/** Code of the autonomous community to which the province belongs */
|
|
28
29
|
ccaaCode: string;
|
|
30
|
+
/** Province ID */
|
|
31
|
+
id: number;
|
|
29
32
|
}
|
|
30
33
|
/**
|
|
31
34
|
* Station information
|
|
@@ -53,6 +56,21 @@ export interface Station {
|
|
|
53
56
|
utmX: number;
|
|
54
57
|
/** UTM Y coordinate */
|
|
55
58
|
utmY: number;
|
|
59
|
+
/** Network type (ministry or autonomous community) */
|
|
60
|
+
networkType: string;
|
|
61
|
+
/** Province ID */
|
|
62
|
+
provinceId: number;
|
|
63
|
+
/** Station ID */
|
|
64
|
+
stationId: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Validation code information
|
|
68
|
+
*/
|
|
69
|
+
export interface ValidationCode {
|
|
70
|
+
/** Description of the validation code */
|
|
71
|
+
description: string;
|
|
72
|
+
/** Validation code ID */
|
|
73
|
+
id: string;
|
|
56
74
|
}
|
|
57
75
|
/**
|
|
58
76
|
* Access information and limitations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Models.d.ts","sourceRoot":"","sources":["../../../src/public/information/Models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,
|
|
1
|
+
{"version":3,"file":"Models.d.ts","sourceRoot":"","sources":["../../../src/public/information/Models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,mBAAmB,SAAS;IAC5B,QAAQ,eAAe;IACvB,OAAO,eAAe;IACtB,MAAM,YAAY;IAClB,cAAc,sBAAsB;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,W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E,MAAM,CAAC;IAC1B,0DAA0D;IAC1D,oBAAoB,EAAE,MAAM,CAAC;IAC7B,yCAAyC;IACzC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Available information types in the SIAR API
|
|
3
3
|
*/
|
|
4
|
-
export var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
export var InformationCategory;
|
|
5
|
+
(function (InformationCategory) {
|
|
6
|
+
InformationCategory["AutonomousCommunity"] = "CCAA";
|
|
7
|
+
InformationCategory["Province"] = "PROVINCIAS";
|
|
8
|
+
InformationCategory["Station"] = "ESTACIONES";
|
|
9
|
+
InformationCategory["Access"] = "ACCESOS";
|
|
10
|
+
InformationCategory["ValidationCode"] = "CODIGOSVALIDACION";
|
|
11
|
+
})(InformationCategory || (InformationCategory = {}));
|
|
11
12
|
//# sourceMappingURL=Models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Models.js","sourceRoot":"","sources":["../../../src/public/information/Models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"Models.js","sourceRoot":"","sources":["../../../src/public/information/Models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,mDAA4B,CAAA;IAC5B,8CAAuB,CAAA;IACvB,6CAAsB,CAAA;IACtB,yCAAkB,CAAA;IAClB,2DAAoC,CAAA;AACtC,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|