namazu-ts 0.1.1 → 0.2.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/dist/browser/index.js +31380 -6236
- package/dist/client.d.ts +6 -2
- package/dist/node/index.js +29580 -4433
- package/dist/sismomap.d.ts +12 -0
- package/dist/types.d.ts +83 -0
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Client.html +7 -3
- package/docs/classes/SismoMap.html +11 -5
- package/docs/functions/EventToEventGeoJSON.html +1 -1
- package/docs/functions/createMap.html +1 -1
- package/docs/index.html +2 -1
- package/docs/modules.html +1 -1
- package/docs/types/EventPhases.html +1 -0
- package/docs/types/GeoJSON.html +1 -0
- package/docs/types/InfosPhase.html +14 -0
- package/docs/types/Station.html +3 -0
- package/docs/types/StationGeoJSON.html +3 -0
- package/docs/types/StationPhases.html +1 -0
- package/docs/types/Zone.html +3 -0
- package/docs/types/Zones.html +3 -0
- package/docs/variables/ZoneNames.html +1 -0
- package/docs/variables/eventTypes.html +1 -1
- package/package.json +11 -7
- package/src/client.ts +62 -1
- package/src/maputils.ts +32 -38
- package/src/sismomap.ts +277 -64
- package/src/types.ts +98 -0
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { CleanedFDSNQueryOptions, FDSNQueryOptions } from './types';
|
|
2
|
+
import { CleanedFDSNQueryOptions, EventPhases, FDSNQueryOptions, Zones } from './types';
|
|
3
3
|
import { Result } from 'neverthrow';
|
|
4
|
-
import { Form, Question, Survey, City, Testimony, QuestionChoice, Answer, EventGeoJSON, SisEvent as NamazuEvent } from './types';
|
|
4
|
+
import { Form, Question, Survey, City, Testimony, QuestionChoice, Answer, EventGeoJSON, SisEvent as NamazuEvent, StationGeoJSON } from './types';
|
|
5
5
|
export declare class Client {
|
|
6
6
|
private axiosInstance;
|
|
7
7
|
constructor(baseUrl: string);
|
|
@@ -37,5 +37,9 @@ export declare class Client {
|
|
|
37
37
|
* <!> IF YOU WANT TO CAST AS NAMAZU TYPE LATER, SET format:'json'
|
|
38
38
|
*/
|
|
39
39
|
cleanQuery(options: FDSNQueryOptions): Result<CleanedFDSNQueryOptions, Error>;
|
|
40
|
+
getZones(): Promise<Zones>;
|
|
41
|
+
getZoneNameByEvent(event: EventGeoJSON): Promise<string>;
|
|
42
|
+
getStationsByZoneName(zoneName: string): Promise<StationGeoJSON>;
|
|
43
|
+
getEventPhases(event: EventGeoJSON): Promise<EventPhases>;
|
|
40
44
|
}
|
|
41
45
|
export declare const eventTypes: Map<string, string>;
|