@dmdata/telegram-json-types 1.1.0 → 1.1.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 CHANGED
@@ -1,12 +1,14 @@
1
- # @dmdata/telegram-json-type
1
+ # @dmdata/telegram-json-types
2
2
 
3
3
  ## 概要
4
- DMDATA.JP が提供する [JSON Schema](https://dmdata.jp/doc/reference/conversion/json/) の、TypeScript型定義(作成中)を公開しています。
4
+
5
+ DMDATA.JP が提供する [JSON Schema](https://dmdata.jp/doc/reference/conversion/json/) の、TypeScript型定義を公開しています。
5
6
 
6
7
  ## 使い方
7
8
 
8
9
  ### インストール
9
- `$ npm i -D @dmdata/telegram-json-type`
10
+
11
+ `$ npm i -D @dmdata/telegram-json-types`
10
12
 
11
13
  ### 型の使用
12
14
 
@@ -22,7 +24,7 @@ const data = await fetch('https://data.api.dmdata.jp/v1/...')
22
24
 
23
25
  Telegram JSON が、仕様通り整合するかチェックすることができます。
24
26
 
25
- `$ npm i @dmdata/telegram-json-type ajv`
27
+ `$ npm i @dmdata/telegram-json-types ajv`
26
28
 
27
29
  ```typescript
28
30
  import { getJSchema } from '@dmdata/telegram-json-types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmdata/telegram-json-types",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "scripts": {
5
5
  "build:jschema": "npx tsc --project jschema/tsconfig.json",
6
6
  "build:dist-jschema": "node ./dist/build.js",
@@ -9,6 +9,10 @@
9
9
  "test": "jest",
10
10
  "type-test": "npm run build:dist-jschema && npm run test"
11
11
  },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/pdmdss/telegram-json-types"
15
+ },
12
16
  "types": "index.d.ts",
13
17
  "main": "./dist/jschema-load.js",
14
18
  "keywords": [],
package/types/index.d.ts CHANGED
@@ -14,6 +14,26 @@ import * as WeatherTornado from './schema/weather-tornado';
14
14
  import * as WeatherTyphoon from './schema/weather-typhoon';
15
15
  import * as WeatherLandslide from './schema/weather-landslide';
16
16
  import * as WeatherRiverFlood from './schema/weather-river-flood';
17
+ import { TelegramJSONMain } from './main';
18
+
19
+ type All =
20
+ EarthquakeInformation.v1_0_0.Main |
21
+ EarthquakeInformation.v1_1_0.Main |
22
+ EarthquakeExplanation.v1_0_0.Main |
23
+ EarthquakeCounts.v1_0_0.Main |
24
+ EarthquakeHypocenterUpdate.v1_0_0.Main |
25
+ EarthquakeNankai.v1_0_0.Main |
26
+ EewInformation.v1_0_0.Main |
27
+ TsunamiInformation.v1_0_0.Main |
28
+ VolcanoInformation.v1_0_0.Main |
29
+ WeatherInformation.v1_0_0.Main |
30
+ WeatherImpactSociety.v1_0_0.Main |
31
+ WeatherEarly.v1_0_0.Main |
32
+ WeatherWarning.v1_0_0.Main |
33
+ WeatherTornado.v1_0_0.Main |
34
+ WeatherTyphoon.v1_0_0.Main |
35
+ WeatherLandslide.v1_0_0.Main |
36
+ WeatherRiverFlood.v1_0_0.Main;
17
37
 
18
38
  export {
19
39
  EarthquakeInformation,
@@ -31,5 +51,7 @@ export {
31
51
  WeatherTornado,
32
52
  WeatherTyphoon,
33
53
  WeatherLandslide,
34
- WeatherRiverFlood
54
+ WeatherRiverFlood,
55
+ TelegramJSONMain,
56
+ All
35
57
  };
@@ -1,4 +1,4 @@
1
- import { EarthquakeExplanation as v1_0_0 } from './1.0.0';
1
+ import { EarthquakeNankai as v1_0_0 } from './1.0.0';
2
2
 
3
3
 
4
4
  export {