meteo-lt-sdk 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.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +280 -0
  3. package/dist/__tests__/test-utils.d.ts +240 -0
  4. package/dist/__tests__/test-utils.d.ts.map +1 -0
  5. package/dist/__tests__/test-utils.js +278 -0
  6. package/dist/__tests__/test-utils.js.map +1 -0
  7. package/dist/api/hydro-stations.d.ts +133 -0
  8. package/dist/api/hydro-stations.d.ts.map +1 -0
  9. package/dist/api/hydro-stations.js +148 -0
  10. package/dist/api/hydro-stations.js.map +1 -0
  11. package/dist/api/index.d.ts +8 -0
  12. package/dist/api/index.d.ts.map +1 -0
  13. package/dist/api/index.js +8 -0
  14. package/dist/api/index.js.map +1 -0
  15. package/dist/api/places.d.ts +78 -0
  16. package/dist/api/places.d.ts.map +1 -0
  17. package/dist/api/places.js +87 -0
  18. package/dist/api/places.js.map +1 -0
  19. package/dist/api/stations.d.ts +80 -0
  20. package/dist/api/stations.d.ts.map +1 -0
  21. package/dist/api/stations.js +89 -0
  22. package/dist/api/stations.js.map +1 -0
  23. package/dist/client/MeteoClient.d.ts +85 -0
  24. package/dist/client/MeteoClient.d.ts.map +1 -0
  25. package/dist/client/MeteoClient.js +92 -0
  26. package/dist/client/MeteoClient.js.map +1 -0
  27. package/dist/client/config.d.ts +57 -0
  28. package/dist/client/config.d.ts.map +1 -0
  29. package/dist/client/config.js +29 -0
  30. package/dist/client/config.js.map +1 -0
  31. package/dist/client/http.d.ts +36 -0
  32. package/dist/client/http.d.ts.map +1 -0
  33. package/dist/client/http.js +115 -0
  34. package/dist/client/http.js.map +1 -0
  35. package/dist/client/index.d.ts +8 -0
  36. package/dist/client/index.d.ts.map +1 -0
  37. package/dist/client/index.js +7 -0
  38. package/dist/client/index.js.map +1 -0
  39. package/dist/client/rate-limiter.d.ts +64 -0
  40. package/dist/client/rate-limiter.d.ts.map +1 -0
  41. package/dist/client/rate-limiter.js +150 -0
  42. package/dist/client/rate-limiter.js.map +1 -0
  43. package/dist/index.d.ts +36 -0
  44. package/dist/index.d.ts.map +1 -0
  45. package/dist/index.js +43 -0
  46. package/dist/index.js.map +1 -0
  47. package/dist/schemas/coordinates.d.ts +26 -0
  48. package/dist/schemas/coordinates.d.ts.map +1 -0
  49. package/dist/schemas/coordinates.js +32 -0
  50. package/dist/schemas/coordinates.js.map +1 -0
  51. package/dist/schemas/forecasts.d.ts +93 -0
  52. package/dist/schemas/forecasts.d.ts.map +1 -0
  53. package/dist/schemas/forecasts.js +38 -0
  54. package/dist/schemas/forecasts.js.map +1 -0
  55. package/dist/schemas/hydro-stations.d.ts +172 -0
  56. package/dist/schemas/hydro-stations.d.ts.map +1 -0
  57. package/dist/schemas/hydro-stations.js +99 -0
  58. package/dist/schemas/hydro-stations.js.map +1 -0
  59. package/dist/schemas/index.d.ts +10 -0
  60. package/dist/schemas/index.d.ts.map +1 -0
  61. package/dist/schemas/index.js +15 -0
  62. package/dist/schemas/index.js.map +1 -0
  63. package/dist/schemas/places.d.ts +77 -0
  64. package/dist/schemas/places.d.ts.map +1 -0
  65. package/dist/schemas/places.js +45 -0
  66. package/dist/schemas/places.js.map +1 -0
  67. package/dist/schemas/stations.d.ts +167 -0
  68. package/dist/schemas/stations.d.ts.map +1 -0
  69. package/dist/schemas/stations.js +69 -0
  70. package/dist/schemas/stations.js.map +1 -0
  71. package/dist/types/conditions.d.ts +47 -0
  72. package/dist/types/conditions.d.ts.map +1 -0
  73. package/dist/types/conditions.js +132 -0
  74. package/dist/types/conditions.js.map +1 -0
  75. package/dist/types/coordinates.d.ts +63 -0
  76. package/dist/types/coordinates.d.ts.map +1 -0
  77. package/dist/types/coordinates.js +58 -0
  78. package/dist/types/coordinates.js.map +1 -0
  79. package/dist/types/errors.d.ts +94 -0
  80. package/dist/types/errors.d.ts.map +1 -0
  81. package/dist/types/errors.js +116 -0
  82. package/dist/types/errors.js.map +1 -0
  83. package/dist/types/forecasts.d.ts +49 -0
  84. package/dist/types/forecasts.d.ts.map +1 -0
  85. package/dist/types/forecasts.js +6 -0
  86. package/dist/types/forecasts.js.map +1 -0
  87. package/dist/types/hydro-stations.d.ts +143 -0
  88. package/dist/types/hydro-stations.d.ts.map +1 -0
  89. package/dist/types/hydro-stations.js +6 -0
  90. package/dist/types/hydro-stations.js.map +1 -0
  91. package/dist/types/index.d.ts +14 -0
  92. package/dist/types/index.d.ts.map +1 -0
  93. package/dist/types/index.js +9 -0
  94. package/dist/types/index.js.map +1 -0
  95. package/dist/types/places.d.ts +54 -0
  96. package/dist/types/places.d.ts.map +1 -0
  97. package/dist/types/places.js +6 -0
  98. package/dist/types/places.js.map +1 -0
  99. package/dist/types/stations.d.ts +90 -0
  100. package/dist/types/stations.d.ts.map +1 -0
  101. package/dist/types/stations.js +6 -0
  102. package/dist/types/stations.js.map +1 -0
  103. package/package.json +90 -0
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @fileoverview Zod schemas for forecast data validation.
3
+ * @module meteo-lt-sdk/schemas/forecasts
4
+ */
5
+ import { z } from 'zod';
6
+ import { placeDetailsSchema, forecastTypeSchema } from './places.js';
7
+ import { FORECAST_CONDITION_CODES } from '../types/conditions.js';
8
+ /**
9
+ * Schema for forecast condition codes.
10
+ * Allows null for unknown conditions.
11
+ */
12
+ const forecastConditionCodeSchema = z.enum(FORECAST_CONDITION_CODES).nullable();
13
+ /**
14
+ * Schema for a single forecast timestamp.
15
+ */
16
+ export const forecastTimestampSchema = z.object({
17
+ forecastTimeUtc: z.string().regex(/^\d{4}-\d{2}-\d{2}(?: \d{2}:\d{2}:\d{2})?$/),
18
+ airTemperature: z.number(),
19
+ feelsLikeTemperature: z.number(),
20
+ windSpeed: z.number().nonnegative(),
21
+ windGust: z.number().nonnegative(),
22
+ windDirection: z.number().min(0).max(360),
23
+ cloudCover: z.number().min(0).max(100),
24
+ seaLevelPressure: z.number().positive(),
25
+ relativeHumidity: z.number().min(0).max(100),
26
+ totalPrecipitation: z.number().nonnegative(),
27
+ conditionCode: forecastConditionCodeSchema,
28
+ });
29
+ /**
30
+ * Schema for a complete forecast response.
31
+ */
32
+ export const forecastSchema = z.object({
33
+ place: placeDetailsSchema,
34
+ forecastType: forecastTypeSchema,
35
+ forecastCreationTimeUtc: z.string(),
36
+ forecastTimestamps: z.array(forecastTimestampSchema),
37
+ });
38
+ //# sourceMappingURL=forecasts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forecasts.js","sourceRoot":"","sources":["../../src/schemas/forecasts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAGlE;;;GAGG;AACH,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,4CAA4C,CAAC;IAC/E,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAClC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACtC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC5C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IAC5C,aAAa,EAAE,2BAA2B;CAC3C,CAAwC,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,kBAAkB;IACzB,YAAY,EAAE,kBAAkB;IAChC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;IACnC,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;CACrD,CAA+B,CAAC"}
@@ -0,0 +1,172 @@
1
+ /**
2
+ * @fileoverview Zod schemas for hydrological station data validation.
3
+ * @module meteo-lt-sdk/schemas/hydro-stations
4
+ */
5
+ import { z } from 'zod';
6
+ /**
7
+ * Schema for hydro station summary (list item and details).
8
+ */
9
+ export declare const hydroStationSummarySchema: z.ZodObject<{
10
+ code: z.ZodString;
11
+ name: z.ZodString;
12
+ waterBody: z.ZodString;
13
+ coordinates: z.ZodObject<{
14
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
15
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
16
+ }, z.core.$strip>;
17
+ }, z.core.$strip>;
18
+ /**
19
+ * Schema for an array of hydro station summaries.
20
+ */
21
+ export declare const hydroStationSummaryArraySchema: z.ZodArray<z.ZodObject<{
22
+ code: z.ZodString;
23
+ name: z.ZodString;
24
+ waterBody: z.ZodString;
25
+ coordinates: z.ZodObject<{
26
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
27
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
28
+ }, z.core.$strip>;
29
+ }, z.core.$strip>>;
30
+ /**
31
+ * Schema for hydro observation type.
32
+ */
33
+ export declare const hydroObservationTypeSchema: z.ZodEnum<{
34
+ measured: "measured";
35
+ historical: "historical";
36
+ }>;
37
+ /**
38
+ * Schema for hydro observation type info.
39
+ */
40
+ export declare const hydroObservationTypeInfoSchema: z.ZodObject<{
41
+ type: z.ZodEnum<{
42
+ measured: "measured";
43
+ historical: "historical";
44
+ }>;
45
+ description: z.ZodString;
46
+ }, z.core.$strip>;
47
+ /**
48
+ * Schema for hydro station with available observation types.
49
+ */
50
+ export declare const hydroStationObservationTypesSchema: z.ZodObject<{
51
+ station: z.ZodObject<{
52
+ code: z.ZodString;
53
+ name: z.ZodString;
54
+ waterBody: z.ZodString;
55
+ coordinates: z.ZodObject<{
56
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
57
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
58
+ }, z.core.$strip>;
59
+ }, z.core.$strip>;
60
+ observationTypes: z.ZodArray<z.ZodObject<{
61
+ type: z.ZodEnum<{
62
+ measured: "measured";
63
+ historical: "historical";
64
+ }>;
65
+ description: z.ZodString;
66
+ }, z.core.$strip>>;
67
+ }, z.core.$strip>;
68
+ /**
69
+ * Schema for measured data time range.
70
+ */
71
+ export declare const measuredDataRangeSchema: z.ZodObject<{
72
+ startTimeUtc: z.ZodString;
73
+ endTimeUtc: z.ZodString;
74
+ }, z.core.$strip>;
75
+ /**
76
+ * Schema for historical data date range.
77
+ */
78
+ export declare const historicalDataRangeSchema: z.ZodObject<{
79
+ startDateUtc: z.ZodString;
80
+ endDateUtc: z.ZodString;
81
+ }, z.core.$strip>;
82
+ /**
83
+ * Schema for measured observations info response.
84
+ */
85
+ export declare const hydroStationMeasuredInfoSchema: z.ZodObject<{
86
+ station: z.ZodObject<{
87
+ code: z.ZodString;
88
+ name: z.ZodString;
89
+ waterBody: z.ZodString;
90
+ coordinates: z.ZodObject<{
91
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
92
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
93
+ }, z.core.$strip>;
94
+ }, z.core.$strip>;
95
+ observationsDataRange: z.ZodObject<{
96
+ startTimeUtc: z.ZodString;
97
+ endTimeUtc: z.ZodString;
98
+ }, z.core.$strip>;
99
+ }, z.core.$strip>;
100
+ /**
101
+ * Schema for historical observations info response.
102
+ */
103
+ export declare const hydroStationHistoricalInfoSchema: z.ZodObject<{
104
+ station: z.ZodObject<{
105
+ code: z.ZodString;
106
+ name: z.ZodString;
107
+ waterBody: z.ZodString;
108
+ coordinates: z.ZodObject<{
109
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
110
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
111
+ }, z.core.$strip>;
112
+ }, z.core.$strip>;
113
+ observationsDataRange: z.ZodObject<{
114
+ startDateUtc: z.ZodString;
115
+ endDateUtc: z.ZodString;
116
+ }, z.core.$strip>;
117
+ }, z.core.$strip>;
118
+ /**
119
+ * Schema for a measured hydrological observation.
120
+ */
121
+ export declare const measuredHydroObservationSchema: z.ZodObject<{
122
+ observationTimeUtc: z.ZodString;
123
+ waterLevel: z.ZodNullable<z.ZodNumber>;
124
+ waterTemperature: z.ZodNullable<z.ZodNumber>;
125
+ }, z.core.$strip>;
126
+ /**
127
+ * Schema for a historical hydrological observation.
128
+ */
129
+ export declare const historicalHydroObservationSchema: z.ZodObject<{
130
+ observationDateUtc: z.ZodString;
131
+ waterLevel: z.ZodNullable<z.ZodNumber>;
132
+ waterDischarge: z.ZodNullable<z.ZodNumber>;
133
+ }, z.core.$strip>;
134
+ /**
135
+ * Schema for measured observations response.
136
+ */
137
+ export declare const hydroStationMeasuredObservationsSchema: z.ZodObject<{
138
+ station: z.ZodObject<{
139
+ code: z.ZodString;
140
+ name: z.ZodString;
141
+ waterBody: z.ZodString;
142
+ coordinates: z.ZodObject<{
143
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
144
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
145
+ }, z.core.$strip>;
146
+ }, z.core.$strip>;
147
+ observations: z.ZodArray<z.ZodObject<{
148
+ observationTimeUtc: z.ZodString;
149
+ waterLevel: z.ZodNullable<z.ZodNumber>;
150
+ waterTemperature: z.ZodNullable<z.ZodNumber>;
151
+ }, z.core.$strip>>;
152
+ }, z.core.$strip>;
153
+ /**
154
+ * Schema for historical observations response.
155
+ */
156
+ export declare const hydroStationHistoricalObservationsSchema: z.ZodObject<{
157
+ station: z.ZodObject<{
158
+ code: z.ZodString;
159
+ name: z.ZodString;
160
+ waterBody: z.ZodString;
161
+ coordinates: z.ZodObject<{
162
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
163
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
164
+ }, z.core.$strip>;
165
+ }, z.core.$strip>;
166
+ observations: z.ZodArray<z.ZodObject<{
167
+ observationDateUtc: z.ZodString;
168
+ waterLevel: z.ZodNullable<z.ZodNumber>;
169
+ waterDischarge: z.ZodNullable<z.ZodNumber>;
170
+ }, z.core.$strip>>;
171
+ }, z.core.$strip>;
172
+ //# sourceMappingURL=hydro-stations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hydro-stations.d.ts","sourceRoot":"","sources":["../../src/schemas/hydro-stations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;iBAKK,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;kBAAqC,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;EAGK,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;iBAGK,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;iBAGK,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;iBAGK,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;iBAGK,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;iBAGK,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;iBAGK,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;iBAIK,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;iBAIK,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;iBAGK,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;iBAGK,CAAC"}
@@ -0,0 +1,99 @@
1
+ /**
2
+ * @fileoverview Zod schemas for hydrological station data validation.
3
+ * @module meteo-lt-sdk/schemas/hydro-stations
4
+ */
5
+ import { z } from 'zod';
6
+ import { coordinatesSchema } from './coordinates.js';
7
+ /**
8
+ * Schema for hydro station summary (list item and details).
9
+ */
10
+ export const hydroStationSummarySchema = z.object({
11
+ code: z.string().min(1),
12
+ name: z.string().min(1),
13
+ waterBody: z.string().min(1),
14
+ coordinates: coordinatesSchema,
15
+ });
16
+ /**
17
+ * Schema for an array of hydro station summaries.
18
+ */
19
+ export const hydroStationSummaryArraySchema = z.array(hydroStationSummarySchema);
20
+ /**
21
+ * Schema for hydro observation type.
22
+ */
23
+ export const hydroObservationTypeSchema = z.enum([
24
+ 'measured',
25
+ 'historical',
26
+ ]);
27
+ /**
28
+ * Schema for hydro observation type info.
29
+ */
30
+ export const hydroObservationTypeInfoSchema = z.object({
31
+ type: hydroObservationTypeSchema,
32
+ description: z.string(),
33
+ });
34
+ /**
35
+ * Schema for hydro station with available observation types.
36
+ */
37
+ export const hydroStationObservationTypesSchema = z.object({
38
+ station: hydroStationSummarySchema,
39
+ observationTypes: z.array(hydroObservationTypeInfoSchema),
40
+ });
41
+ /**
42
+ * Schema for measured data time range.
43
+ */
44
+ export const measuredDataRangeSchema = z.object({
45
+ startTimeUtc: z.string(),
46
+ endTimeUtc: z.string(),
47
+ });
48
+ /**
49
+ * Schema for historical data date range.
50
+ */
51
+ export const historicalDataRangeSchema = z.object({
52
+ startDateUtc: z.string(),
53
+ endDateUtc: z.string(),
54
+ });
55
+ /**
56
+ * Schema for measured observations info response.
57
+ */
58
+ export const hydroStationMeasuredInfoSchema = z.object({
59
+ station: hydroStationSummarySchema,
60
+ observationsDataRange: measuredDataRangeSchema,
61
+ });
62
+ /**
63
+ * Schema for historical observations info response.
64
+ */
65
+ export const hydroStationHistoricalInfoSchema = z.object({
66
+ station: hydroStationSummarySchema,
67
+ observationsDataRange: historicalDataRangeSchema,
68
+ });
69
+ /**
70
+ * Schema for a measured hydrological observation.
71
+ */
72
+ export const measuredHydroObservationSchema = z.object({
73
+ observationTimeUtc: z.string(),
74
+ waterLevel: z.number().nullable(),
75
+ waterTemperature: z.number().nullable(),
76
+ });
77
+ /**
78
+ * Schema for a historical hydrological observation.
79
+ */
80
+ export const historicalHydroObservationSchema = z.object({
81
+ observationDateUtc: z.string(),
82
+ waterLevel: z.number().nullable(),
83
+ waterDischarge: z.number().nullable(),
84
+ });
85
+ /**
86
+ * Schema for measured observations response.
87
+ */
88
+ export const hydroStationMeasuredObservationsSchema = z.object({
89
+ station: hydroStationSummarySchema,
90
+ observations: z.array(measuredHydroObservationSchema),
91
+ });
92
+ /**
93
+ * Schema for historical observations response.
94
+ */
95
+ export const hydroStationHistoricalObservationsSchema = z.object({
96
+ station: hydroStationSummarySchema,
97
+ observations: z.array(historicalHydroObservationSchema),
98
+ });
99
+ //# sourceMappingURL=hydro-stations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hydro-stations.js","sourceRoot":"","sources":["../../src/schemas/hydro-stations.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @fileoverview Schema exports for the Meteo.lt SDK.
3
+ * @module meteo-lt-sdk/schemas
4
+ */
5
+ export { latitudeSchema, longitudeSchema, coordinatesSchema } from './coordinates.js';
6
+ export { placeSummarySchema, placeSummaryArraySchema, placeDetailsSchema, forecastTypeSchema, forecastTypeInfoSchema, placeForecastTypesSchema, } from './places.js';
7
+ export { forecastTimestampSchema, forecastSchema, } from './forecasts.js';
8
+ export { stationSummarySchema, stationSummaryArraySchema, stationDetailsSchema, observationsDataRangeSchema, stationObservationsInfoSchema, observationSchema, stationObservationsSchema, } from './stations.js';
9
+ export { hydroStationSummarySchema, hydroStationSummaryArraySchema, hydroObservationTypeSchema, hydroObservationTypeInfoSchema, hydroStationObservationTypesSchema, measuredDataRangeSchema, historicalDataRangeSchema, hydroStationMeasuredInfoSchema, hydroStationHistoricalInfoSchema, measuredHydroObservationSchema, historicalHydroObservationSchema, hydroStationMeasuredObservationsSchema, hydroStationHistoricalObservationsSchema, } from './hydro-stations.js';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,uBAAuB,EACvB,cAAc,GACf,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC9B,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,gCAAgC,EAChC,8BAA8B,EAC9B,gCAAgC,EAChC,sCAAsC,EACtC,wCAAwC,GACzC,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @fileoverview Schema exports for the Meteo.lt SDK.
3
+ * @module meteo-lt-sdk/schemas
4
+ */
5
+ // Coordinate schemas
6
+ export { latitudeSchema, longitudeSchema, coordinatesSchema } from './coordinates.js';
7
+ // Place schemas
8
+ export { placeSummarySchema, placeSummaryArraySchema, placeDetailsSchema, forecastTypeSchema, forecastTypeInfoSchema, placeForecastTypesSchema, } from './places.js';
9
+ // Forecast schemas
10
+ export { forecastTimestampSchema, forecastSchema, } from './forecasts.js';
11
+ // Station schemas
12
+ export { stationSummarySchema, stationSummaryArraySchema, stationDetailsSchema, observationsDataRangeSchema, stationObservationsInfoSchema, observationSchema, stationObservationsSchema, } from './stations.js';
13
+ // Hydro station schemas
14
+ export { hydroStationSummarySchema, hydroStationSummaryArraySchema, hydroObservationTypeSchema, hydroObservationTypeInfoSchema, hydroStationObservationTypesSchema, measuredDataRangeSchema, historicalDataRangeSchema, hydroStationMeasuredInfoSchema, hydroStationHistoricalInfoSchema, measuredHydroObservationSchema, historicalHydroObservationSchema, hydroStationMeasuredObservationsSchema, hydroStationHistoricalObservationsSchema, } from './hydro-stations.js';
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,qBAAqB;AACrB,OAAO,EACL,cAAc,EACd,eAAe,EACf,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AAE1B,gBAAgB;AAChB,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,aAAa,CAAC;AAErB,mBAAmB;AACnB,OAAO,EACL,uBAAuB,EACvB,cAAc,GACf,MAAM,gBAAgB,CAAC;AAExB,kBAAkB;AAClB,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AAEvB,wBAAwB;AACxB,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC9B,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,gCAAgC,EAChC,8BAA8B,EAC9B,gCAAgC,EAChC,sCAAsC,EACtC,wCAAwC,GACzC,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * @fileoverview Zod schemas for place data validation.
3
+ * @module meteo-lt-sdk/schemas/places
4
+ */
5
+ import { z } from 'zod';
6
+ /**
7
+ * Schema for place summary (list item).
8
+ */
9
+ export declare const placeSummarySchema: z.ZodObject<{
10
+ code: z.ZodString;
11
+ name: z.ZodString;
12
+ administrativeDivision: z.ZodString;
13
+ countryCode: z.ZodString;
14
+ coordinates: z.ZodObject<{
15
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
16
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
17
+ }, z.core.$strip>;
18
+ }, z.core.$strip>;
19
+ /**
20
+ * Schema for an array of place summaries.
21
+ */
22
+ export declare const placeSummaryArraySchema: z.ZodArray<z.ZodObject<{
23
+ code: z.ZodString;
24
+ name: z.ZodString;
25
+ administrativeDivision: z.ZodString;
26
+ countryCode: z.ZodString;
27
+ coordinates: z.ZodObject<{
28
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
29
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
30
+ }, z.core.$strip>;
31
+ }, z.core.$strip>>;
32
+ /**
33
+ * Schema for detailed place information.
34
+ */
35
+ export declare const placeDetailsSchema: z.ZodObject<{
36
+ code: z.ZodString;
37
+ name: z.ZodString;
38
+ administrativeDivision: z.ZodString;
39
+ countryCode: z.ZodString;
40
+ coordinates: z.ZodObject<{
41
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
42
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
43
+ }, z.core.$strip>;
44
+ country: z.ZodString;
45
+ }, z.core.$strip>;
46
+ /**
47
+ * Schema for forecast type identifier.
48
+ */
49
+ export declare const forecastTypeSchema: z.ZodLiteral<"long-term">;
50
+ /**
51
+ * Schema for forecast type info.
52
+ */
53
+ export declare const forecastTypeInfoSchema: z.ZodObject<{
54
+ type: z.ZodLiteral<"long-term">;
55
+ description: z.ZodString;
56
+ }, z.core.$strip>;
57
+ /**
58
+ * Schema for place with available forecast types.
59
+ */
60
+ export declare const placeForecastTypesSchema: z.ZodObject<{
61
+ place: z.ZodObject<{
62
+ code: z.ZodString;
63
+ name: z.ZodString;
64
+ administrativeDivision: z.ZodString;
65
+ countryCode: z.ZodString;
66
+ coordinates: z.ZodObject<{
67
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
68
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
69
+ }, z.core.$strip>;
70
+ country: z.ZodString;
71
+ }, z.core.$strip>;
72
+ forecastTypes: z.ZodArray<z.ZodObject<{
73
+ type: z.ZodLiteral<"long-term">;
74
+ description: z.ZodString;
75
+ }, z.core.$strip>>;
76
+ }, z.core.$strip>;
77
+ //# sourceMappingURL=places.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"places.d.ts","sourceRoot":"","sources":["../../src/schemas/places.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;iBAMK,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;kBAA8B,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;iBAEK,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,kBAAkB,2BAA2D,CAAC;AAE3F;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;iBAGK,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;iBAGK,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @fileoverview Zod schemas for place data validation.
3
+ * @module meteo-lt-sdk/schemas/places
4
+ */
5
+ import { z } from 'zod';
6
+ import { coordinatesSchema } from './coordinates.js';
7
+ /**
8
+ * Schema for place summary (list item).
9
+ */
10
+ export const placeSummarySchema = z.object({
11
+ code: z.string().min(1),
12
+ name: z.string().min(1),
13
+ administrativeDivision: z.string(),
14
+ countryCode: z.string().length(2),
15
+ coordinates: coordinatesSchema,
16
+ });
17
+ /**
18
+ * Schema for an array of place summaries.
19
+ */
20
+ export const placeSummaryArraySchema = z.array(placeSummarySchema);
21
+ /**
22
+ * Schema for detailed place information.
23
+ */
24
+ export const placeDetailsSchema = placeSummarySchema.extend({
25
+ country: z.string().min(1),
26
+ });
27
+ /**
28
+ * Schema for forecast type identifier.
29
+ */
30
+ export const forecastTypeSchema = z.literal('long-term');
31
+ /**
32
+ * Schema for forecast type info.
33
+ */
34
+ export const forecastTypeInfoSchema = z.object({
35
+ type: forecastTypeSchema,
36
+ description: z.string(),
37
+ });
38
+ /**
39
+ * Schema for place with available forecast types.
40
+ */
41
+ export const placeForecastTypesSchema = z.object({
42
+ place: placeDetailsSchema,
43
+ forecastTypes: z.array(forecastTypeInfoSchema),
44
+ });
45
+ //# sourceMappingURL=places.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"places.js","sourceRoot":"","sources":["../../src/schemas/places.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AASrD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACjC,WAAW,EAAE,iBAAiB;CAC/B,CAAmC,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,CAAC;IAC1D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC3B,CAAmC,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAmC,CAAC;AAE3F;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAuC,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,kBAAkB;IACzB,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC;CAC/C,CAAyC,CAAC"}
@@ -0,0 +1,167 @@
1
+ /**
2
+ * @fileoverview Zod schemas for meteorological station data validation.
3
+ * @module meteo-lt-sdk/schemas/stations
4
+ */
5
+ import { z } from 'zod';
6
+ /**
7
+ * Schema for station summary (list item).
8
+ */
9
+ export declare const stationSummarySchema: z.ZodObject<{
10
+ code: z.ZodString;
11
+ name: z.ZodString;
12
+ coordinates: z.ZodObject<{
13
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
14
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
15
+ }, z.core.$strip>;
16
+ }, z.core.$strip>;
17
+ /**
18
+ * Schema for an array of station summaries.
19
+ */
20
+ export declare const stationSummaryArraySchema: z.ZodArray<z.ZodObject<{
21
+ code: z.ZodString;
22
+ name: z.ZodString;
23
+ coordinates: z.ZodObject<{
24
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
25
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
26
+ }, z.core.$strip>;
27
+ }, z.core.$strip>>;
28
+ /**
29
+ * Schema for detailed station information.
30
+ */
31
+ export declare const stationDetailsSchema: z.ZodObject<{
32
+ code: z.ZodString;
33
+ name: z.ZodString;
34
+ coordinates: z.ZodObject<{
35
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
36
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
37
+ }, z.core.$strip>;
38
+ type: z.ZodString;
39
+ }, z.core.$strip>;
40
+ /**
41
+ * Schema for observations data range.
42
+ */
43
+ export declare const observationsDataRangeSchema: z.ZodObject<{
44
+ startTimeUtc: z.ZodString;
45
+ endTimeUtc: z.ZodString;
46
+ }, z.core.$strip>;
47
+ /**
48
+ * Schema for station observations info response.
49
+ */
50
+ export declare const stationObservationsInfoSchema: z.ZodObject<{
51
+ station: z.ZodObject<{
52
+ code: z.ZodString;
53
+ name: z.ZodString;
54
+ coordinates: z.ZodObject<{
55
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
56
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>;
59
+ observationsDataRange: z.ZodObject<{
60
+ startTimeUtc: z.ZodString;
61
+ endTimeUtc: z.ZodString;
62
+ }, z.core.$strip>;
63
+ }, z.core.$strip>;
64
+ /**
65
+ * Schema for a single observation data point.
66
+ * Most fields are nullable since not all stations measure all parameters.
67
+ */
68
+ export declare const observationSchema: z.ZodObject<{
69
+ observationTimeUtc: z.ZodString;
70
+ airTemperature: z.ZodNullable<z.ZodNumber>;
71
+ feelsLikeTemperature: z.ZodNullable<z.ZodNumber>;
72
+ windSpeed: z.ZodNullable<z.ZodNumber>;
73
+ windGust: z.ZodNullable<z.ZodNumber>;
74
+ windDirection: z.ZodNullable<z.ZodNumber>;
75
+ cloudCover: z.ZodNullable<z.ZodNumber>;
76
+ seaLevelPressure: z.ZodNullable<z.ZodNumber>;
77
+ relativeHumidity: z.ZodNullable<z.ZodNumber>;
78
+ precipitation: z.ZodNullable<z.ZodNumber>;
79
+ conditionCode: z.ZodNullable<z.ZodEnum<{
80
+ clear: "clear";
81
+ "partly-cloudy": "partly-cloudy";
82
+ "cloudy-with-sunny-intervals": "cloudy-with-sunny-intervals";
83
+ cloudy: "cloudy";
84
+ "light-rain": "light-rain";
85
+ rain: "rain";
86
+ "heavy-rain": "heavy-rain";
87
+ thunder: "thunder";
88
+ "isolated-thunderstorms": "isolated-thunderstorms";
89
+ thunderstorms: "thunderstorms";
90
+ "light-sleet": "light-sleet";
91
+ sleet: "sleet";
92
+ "freezing-rain": "freezing-rain";
93
+ hail: "hail";
94
+ "light-snow": "light-snow";
95
+ snow: "snow";
96
+ "heavy-snow": "heavy-snow";
97
+ fog: "fog";
98
+ "variable-cloudiness": "variable-cloudiness";
99
+ "rain-showers": "rain-showers";
100
+ "light-rain-at-times": "light-rain-at-times";
101
+ "rain-at-times": "rain-at-times";
102
+ "sleet-showers": "sleet-showers";
103
+ "sleet-at-times": "sleet-at-times";
104
+ "snow-showers": "snow-showers";
105
+ "light-snow-at-times": "light-snow-at-times";
106
+ "snow-at-times": "snow-at-times";
107
+ snowstorm: "snowstorm";
108
+ squall: "squall";
109
+ }>>;
110
+ }, z.core.$strip>;
111
+ /**
112
+ * Schema for station observations response.
113
+ */
114
+ export declare const stationObservationsSchema: z.ZodObject<{
115
+ station: z.ZodObject<{
116
+ code: z.ZodString;
117
+ name: z.ZodString;
118
+ coordinates: z.ZodObject<{
119
+ latitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Latitude, number>>;
120
+ longitude: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("../index.js").Longitude, number>>;
121
+ }, z.core.$strip>;
122
+ }, z.core.$strip>;
123
+ observations: z.ZodArray<z.ZodObject<{
124
+ observationTimeUtc: z.ZodString;
125
+ airTemperature: z.ZodNullable<z.ZodNumber>;
126
+ feelsLikeTemperature: z.ZodNullable<z.ZodNumber>;
127
+ windSpeed: z.ZodNullable<z.ZodNumber>;
128
+ windGust: z.ZodNullable<z.ZodNumber>;
129
+ windDirection: z.ZodNullable<z.ZodNumber>;
130
+ cloudCover: z.ZodNullable<z.ZodNumber>;
131
+ seaLevelPressure: z.ZodNullable<z.ZodNumber>;
132
+ relativeHumidity: z.ZodNullable<z.ZodNumber>;
133
+ precipitation: z.ZodNullable<z.ZodNumber>;
134
+ conditionCode: z.ZodNullable<z.ZodEnum<{
135
+ clear: "clear";
136
+ "partly-cloudy": "partly-cloudy";
137
+ "cloudy-with-sunny-intervals": "cloudy-with-sunny-intervals";
138
+ cloudy: "cloudy";
139
+ "light-rain": "light-rain";
140
+ rain: "rain";
141
+ "heavy-rain": "heavy-rain";
142
+ thunder: "thunder";
143
+ "isolated-thunderstorms": "isolated-thunderstorms";
144
+ thunderstorms: "thunderstorms";
145
+ "light-sleet": "light-sleet";
146
+ sleet: "sleet";
147
+ "freezing-rain": "freezing-rain";
148
+ hail: "hail";
149
+ "light-snow": "light-snow";
150
+ snow: "snow";
151
+ "heavy-snow": "heavy-snow";
152
+ fog: "fog";
153
+ "variable-cloudiness": "variable-cloudiness";
154
+ "rain-showers": "rain-showers";
155
+ "light-rain-at-times": "light-rain-at-times";
156
+ "rain-at-times": "rain-at-times";
157
+ "sleet-showers": "sleet-showers";
158
+ "sleet-at-times": "sleet-at-times";
159
+ "snow-showers": "snow-showers";
160
+ "light-snow-at-times": "light-snow-at-times";
161
+ "snow-at-times": "snow-at-times";
162
+ snowstorm: "snowstorm";
163
+ squall: "squall";
164
+ }>>;
165
+ }, z.core.$strip>>;
166
+ }, z.core.$strip>;
167
+ //# sourceMappingURL=stations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stations.d.ts","sourceRoot":"","sources":["../../src/schemas/stations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;iBAIK,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;kBAAgC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;iBAEK,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;iBAGK,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;iBAGK,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYK,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGK,CAAC"}