@dmdata/telegram-json-types 1.1.5 → 1.1.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"anyOf":[{"$ref":"#/definitions/EewInformation.PublicCommon"},{"$ref":"#/definitions/EewInformation.PublicTesting"},{"$ref":"#/definitions/EewInformation.Cancel"}],"definitions":{"EewInformation.PublicCommon":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EewInformation.Schema"},"type":{"enum":["緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"title":{"enum":["緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["緊急地震速報"]},"body":{"$ref":"#/definitions/EewInformation.PublicCommonBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EewInformation.Schema":{"type":"object","properties":{"type":{"type":"string","enum":["eew-information"]},"version":{"type":"string","enum":["1.0.0"]}},"required":["type","version"]},"EewInformation.PublicCommonBody":{"type":"object","properties":{"isLastInfo":{"type":"boolean"},"isCanceled":{"type":"boolean"},"isWarning":{"type":"boolean"},"zones":{"type":"array","items":{"$ref":"#/definitions/EewInformation.WarningArea"}},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EewInformation.WarningArea"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EewInformation.WarningArea"}},"earthquake":{"$ref":"#/definitions/EewInformation.Earthquake"},"intensity":{"$ref":"#/definitions/EewInformation.Intensity"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EewInformation.Comments"}},"required":["comments","earthquake","isCanceled","isLastInfo","isWarning"]},"EewInformation.WarningArea":{"type":"object","properties":{"kind":{"$ref":"#/definitions/EewInformation.WarningAreaKind"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","kind","name"]},"EewInformation.WarningAreaKind":{"type":"object","properties":{"lastKind":{"$ref":"#/definitions/EewInformation.WarningAreaKindLastKind"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","lastKind","name"]},"EewInformation.WarningAreaKindLastKind":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EewInformation.Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"condition":{"enum":["仮定震源要素"],"type":"string"},"hypocenter":{"$ref":"#/definitions/EewInformation.EarthquakeHypocenter"},"magnitude":{"$ref":"#/definitions/EewInformation.EarthquakeMagnitude"}},"required":["arrivalTime","hypocenter","magnitude"]},"EewInformation.EarthquakeHypocenter":{"type":"object","properties":{"coordinate":{"anyOf":[{"type":"object","properties":{"condition":{"type":"string","enum":["不明"]}},"required":["condition"]},{"type":"object","properties":{"latitude":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"longitude":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"height":{"type":"object","properties":{"type":{"type":"string","enum":["高さ"]},"unit":{"type":"string","enum":["m"]},"value":{"type":["null","string"]}},"required":["type","unit","value"]},"geodeticSystem":{"type":"string","enum":["日本測地系"]}},"required":["geodeticSystem","latitude","longitude"]}]},"depth":{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]},"value":{"type":"string"}},"required":["type","unit","value"]},"reduce":{"$ref":"#/definitions/EewInformation.EarthquakeHypocenterReduce"},"landOrSea":{"enum":["内陸","海域"],"type":"string"},"accuracy":{"$ref":"#/definitions/EewInformation.EarthquakeHypocenterAccuracy"},"code":{"type":"string"},"name":{"type":"string"}},"required":["accuracy","code","coordinate","depth","name","reduce"]},"EewInformation.EarthquakeHypocenterReduce":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EewInformation.EarthquakeHypocenterAccuracy":{"type":"object","properties":{"epicenters":{"type":"array","items":[{"enum":["0","1","2","3","4","5","6","7","8"],"type":"string"},{"enum":["0","1","2","3","4","9"],"type":"string"}],"minItems":2,"maxItems":2},"depth":{"enum":["0","1","2","3","4","5","6","7","8"],"type":"string"},"magnitudeCalculation":{"enum":["0","2","3","4","5","6","8"],"type":"string"},"numberOfMagnitudeCalculation":{"enum":["0","1","2","3","4","5"],"type":"string"}},"required":["depth","epicenters","magnitudeCalculation","numberOfMagnitudeCalculation"]},"EewInformation.EarthquakeMagnitude":{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"},"value":{"type":["null","string"]},"condition":{"enum":["M不明"],"type":"string"}},"required":["type","unit","value"]},"EewInformation.Intensity":{"type":"object","properties":{"forecastMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastMaxInt"},"forecastLpgmMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastLpgmMaxInt"},"appendix":{"$ref":"#/definitions/EewInformation.IntensityAppendix"},"regions":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/EewInformation.IntensityRegionReached"},{"$ref":"#/definitions/EewInformation.IntensityRegionUnReached"}]}}},"required":["forecastMaxInt","regions"]},"EewInformation.IntensityForecastMaxInt":{"type":"object","properties":{"from":{"enum":["0","1","2","3","4","5+","5-","6+","6-","7","不明"],"type":"string"},"to":{"enum":["0","1","2","3","4","5+","5-","6+","6-","7","over","不明"],"type":"string"}},"required":["from","to"]},"EewInformation.IntensityForecastLpgmMaxInt":{"type":"object","properties":{"from":{"enum":["0","1","2","3","4","不明"],"type":"string"},"to":{"enum":["0","1","2","3","4","over","不明"],"type":"string"}},"required":["from","to"]},"EewInformation.IntensityAppendix":{"type":"object","properties":{"maxIntChange":{"enum":["0","1","2"],"type":"string"},"maxLpgmIntChange":{"enum":["0","1","2"],"type":"string"},"maxIntChangeReason":{"enum":["0","1","2","3","4","9"],"type":"string"}},"required":["maxIntChange","maxIntChangeReason"]},"EewInformation.IntensityRegionReached":{"type":"object","properties":{"condition":{"type":"string","enum":["既に主要動到達と推測"]},"forecastMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastMaxInt"},"forecastLpgmMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastLpgmMaxInt"},"isPlum":{"type":"boolean"},"isWarning":{"type":"boolean"},"kind":{"$ref":"#/definitions/EewInformation.IntensityRegionKind"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","condition","forecastMaxInt","isPlum","isWarning","kind","name"]},"EewInformation.IntensityRegionKind":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EewInformation.IntensityRegionUnReached":{"type":"object","properties":{"arrivalTime":{"type":"string"},"forecastMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastMaxInt"},"forecastLpgmMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastLpgmMaxInt"},"isPlum":{"type":"boolean"},"isWarning":{"type":"boolean"},"kind":{"$ref":"#/definitions/EewInformation.IntensityRegionKind"},"code":{"type":"string"},"name":{"type":"string"}},"required":["arrivalTime","code","forecastMaxInt","isPlum","isWarning","kind","name"]},"EewInformation.Comments":{"type":"object","properties":{"free":{"type":"string"},"warning":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}},"EewInformation.PublicTesting":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EewInformation.Schema"},"type":{"type":"string","enum":["緊急地震速報配信テスト"]},"title":{"type":"string","enum":["緊急地震速報配信テスト"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["緊急地震速報"]},"body":{"$ref":"#/definitions/EewInformation.PublicTestingBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EewInformation.PublicTestingBody":{"type":"object","properties":{"isLastInfo":{"type":"boolean","enum":[false]},"isCanceled":{"type":"boolean","enum":[false]},"text":{"type":"string"}},"required":["isCanceled","isLastInfo","text"]},"EewInformation.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EewInformation.Schema"},"type":{"enum":["緊急地震速報配信テスト","緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"title":{"enum":["緊急地震速報配信テスト","緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["緊急地震速報"]},"body":{"$ref":"#/definitions/EewInformation.CancelBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EewInformation.CancelBody":{"type":"object","properties":{"isLastInfo":{"type":"boolean","enum":[true]},"isCanceled":{"type":"boolean","enum":[true]},"text":{"type":"string"}},"required":["isCanceled","isLastInfo","text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|
|
1
|
+
{"anyOf":[{"$ref":"#/definitions/EewInformation.PublicCommon"},{"$ref":"#/definitions/EewInformation.PublicRealtime"},{"$ref":"#/definitions/EewInformation.PublicTesting"},{"$ref":"#/definitions/EewInformation.Cancel"}],"definitions":{"EewInformation.PublicCommon":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EewInformation.Schema"},"type":{"enum":["緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"title":{"enum":["緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["緊急地震速報"]},"body":{"$ref":"#/definitions/EewInformation.PublicCommonBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EewInformation.Schema":{"type":"object","properties":{"type":{"type":"string","enum":["eew-information"]},"version":{"type":"string","enum":["1.0.0"]}},"required":["type","version"]},"EewInformation.PublicCommonBody":{"type":"object","properties":{"isLastInfo":{"type":"boolean"},"isCanceled":{"type":"boolean"},"isWarning":{"type":"boolean"},"zones":{"type":"array","items":{"$ref":"#/definitions/EewInformation.WarningArea"}},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EewInformation.WarningArea"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EewInformation.WarningArea"}},"earthquake":{"$ref":"#/definitions/EewInformation.Earthquake"},"intensity":{"$ref":"#/definitions/EewInformation.Intensity"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EewInformation.Comments"}},"required":["comments","earthquake","isCanceled","isLastInfo","isWarning"]},"EewInformation.WarningArea":{"type":"object","properties":{"kind":{"$ref":"#/definitions/EewInformation.WarningAreaKind"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","kind","name"]},"EewInformation.WarningAreaKind":{"type":"object","properties":{"lastKind":{"$ref":"#/definitions/EewInformation.WarningAreaKindLastKind"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","lastKind","name"]},"EewInformation.WarningAreaKindLastKind":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EewInformation.Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"condition":{"enum":["仮定震源要素"],"type":"string"},"hypocenter":{"$ref":"#/definitions/EewInformation.EarthquakeHypocenter"},"magnitude":{"$ref":"#/definitions/EewInformation.EarthquakeMagnitude"}},"required":["arrivalTime","hypocenter","magnitude"]},"EewInformation.EarthquakeHypocenter":{"type":"object","properties":{"coordinate":{"anyOf":[{"type":"object","properties":{"condition":{"type":"string","enum":["不明"]}},"required":["condition"]},{"type":"object","properties":{"latitude":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"longitude":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"height":{"type":"object","properties":{"type":{"type":"string","enum":["高さ"]},"unit":{"type":"string","enum":["m"]},"value":{"type":["null","string"]}},"required":["type","unit","value"]},"geodeticSystem":{"type":"string","enum":["日本測地系"]}},"required":["geodeticSystem","latitude","longitude"]}]},"depth":{"type":"object","properties":{"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]},"value":{"type":"string"}},"required":["type","unit","value"]},"reduce":{"$ref":"#/definitions/EewInformation.EarthquakeHypocenterReduce"},"landOrSea":{"enum":["内陸","海域"],"type":"string"},"accuracy":{"$ref":"#/definitions/EewInformation.EarthquakeHypocenterAccuracy"},"code":{"type":"string"},"name":{"type":"string"}},"required":["accuracy","code","coordinate","depth","name","reduce"]},"EewInformation.EarthquakeHypocenterReduce":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EewInformation.EarthquakeHypocenterAccuracy":{"type":"object","properties":{"epicenters":{"type":"array","items":[{"enum":["0","1","2","3","4","5","6","7","8"],"type":"string"},{"enum":["0","1","2","3","4","9"],"type":"string"}],"minItems":2,"maxItems":2},"depth":{"enum":["0","1","2","3","4","5","6","7","8"],"type":"string"},"magnitudeCalculation":{"enum":["0","2","3","4","5","6","8"],"type":"string"},"numberOfMagnitudeCalculation":{"enum":["0","1","2","3","4","5"],"type":"string"}},"required":["depth","epicenters","magnitudeCalculation","numberOfMagnitudeCalculation"]},"EewInformation.EarthquakeMagnitude":{"type":"object","properties":{"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"},"value":{"type":["null","string"]},"condition":{"enum":["M不明"],"type":"string"}},"required":["type","unit","value"]},"EewInformation.Intensity":{"type":"object","properties":{"forecastMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastMaxInt"},"forecastLpgmMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastLpgmMaxInt"},"appendix":{"$ref":"#/definitions/EewInformation.IntensityAppendix"},"regions":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/EewInformation.IntensityRegionReached"},{"$ref":"#/definitions/EewInformation.IntensityRegionUnReached"}]}}},"required":["forecastMaxInt","regions"]},"EewInformation.IntensityForecastMaxInt":{"type":"object","properties":{"from":{"enum":["0","1","2","3","4","5+","5-","6+","6-","7","不明"],"type":"string"},"to":{"enum":["0","1","2","3","4","5+","5-","6+","6-","7","over","不明"],"type":"string"}},"required":["from","to"]},"EewInformation.IntensityForecastLpgmMaxInt":{"type":"object","properties":{"from":{"enum":["0","1","2","3","4","不明"],"type":"string"},"to":{"enum":["0","1","2","3","4","over","不明"],"type":"string"}},"required":["from","to"]},"EewInformation.IntensityAppendix":{"type":"object","properties":{"maxIntChange":{"enum":["0","1","2"],"type":"string"},"maxLpgmIntChange":{"enum":["0","1","2"],"type":"string"},"maxIntChangeReason":{"enum":["0","1","2","3","4","9"],"type":"string"}},"required":["maxIntChange","maxIntChangeReason"]},"EewInformation.IntensityRegionReached":{"type":"object","properties":{"condition":{"type":"string","enum":["既に主要動到達と推測"]},"forecastMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastMaxInt"},"forecastLpgmMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastLpgmMaxInt"},"isPlum":{"type":"boolean"},"isWarning":{"type":"boolean"},"kind":{"$ref":"#/definitions/EewInformation.IntensityRegionKind"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","condition","forecastMaxInt","isPlum","isWarning","kind","name"]},"EewInformation.IntensityRegionKind":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EewInformation.IntensityRegionUnReached":{"type":"object","properties":{"arrivalTime":{"type":"string"},"forecastMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastMaxInt"},"forecastLpgmMaxInt":{"$ref":"#/definitions/EewInformation.IntensityForecastLpgmMaxInt"},"isPlum":{"type":"boolean"},"isWarning":{"type":"boolean"},"kind":{"$ref":"#/definitions/EewInformation.IntensityRegionKind"},"code":{"type":"string"},"name":{"type":"string"}},"required":["arrivalTime","code","forecastMaxInt","isPlum","isWarning","kind","name"]},"EewInformation.Comments":{"type":"object","properties":{"free":{"type":"string"},"warning":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}},"EewInformation.PublicRealtime":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EewInformation.Schema"},"type":{"type":"string","enum":["リアルタイム震度"]},"title":{"type":"string","enum":["リアルタイム震度"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["緊急地震速報"]},"body":{"$ref":"#/definitions/EewInformation.PublicRealtimeBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EewInformation.PublicRealtimeBody":{"type":"object","properties":{"isLastInfo":{"type":"boolean"},"isCanceled":{"type":"boolean"},"earthquake":{"$ref":"#/definitions/EewInformation.Earthquake"},"intensity":{"$ref":"#/definitions/EewInformation.IntensityRealtime"},"text":{"type":"string"}},"required":["earthquake","isCanceled","isLastInfo"]},"EewInformation.IntensityRealtime":{"type":"object","properties":{"stations":{"type":"array","items":{"$ref":"#/definitions/EewInformation.IntensityRealtimeStation"}}},"required":["stations"]},"EewInformation.IntensityRealtimeStation":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"int":{"$ref":"#/definitions/EewInformation.IntensityClass"},"k":{"type":"string"}},"required":["code","int","k","name"]},"EewInformation.IntensityClass":{"enum":["0","1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"EewInformation.PublicTesting":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EewInformation.Schema"},"type":{"type":"string","enum":["緊急地震速報配信テスト"]},"title":{"type":"string","enum":["緊急地震速報配信テスト"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["緊急地震速報"]},"body":{"$ref":"#/definitions/EewInformation.PublicTestingBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EewInformation.PublicTestingBody":{"type":"object","properties":{"isLastInfo":{"type":"boolean","enum":[false]},"isCanceled":{"type":"boolean","enum":[false]},"text":{"type":"string"}},"required":["isCanceled","isLastInfo","text"]},"EewInformation.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EewInformation.Schema"},"type":{"enum":["リアルタイム震度","緊急地震速報配信テスト","緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"title":{"enum":["リアルタイム震度","緊急地震速報配信テスト","緊急地震速報(予報)","緊急地震速報(地震動予報)","緊急地震速報(警報)"],"type":"string"},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["緊急地震速報"]},"body":{"$ref":"#/definitions/EewInformation.CancelBody"},"_originalId":{"type":"string"},"status":{"enum":["訓練","試験","通常"],"type":"string"},"editorialOffice":{"type":"string"},"publishingOffice":{"type":"array","items":{"type":"string"}},"pressDateTime":{"type":"string"},"reportDateTime":{"type":"string"},"targetDateTime":{"type":"string"},"infoKindVersion":{"type":"string"},"headline":{"type":["null","string"]}},"required":["_originalId","_schema","body","editorialOffice","eventId","headline","infoKind","infoKindVersion","infoType","pressDateTime","publishingOffice","reportDateTime","serialNo","status","targetDateTime","title","type"]},"EewInformation.CancelBody":{"type":"object","properties":{"isLastInfo":{"type":"boolean","enum":[true]},"isCanceled":{"type":"boolean","enum":[true]},"text":{"type":"string"}},"required":["isCanceled","isLastInfo","text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|
package/package.json
CHANGED
|
@@ -99,6 +99,13 @@ export namespace EewInformation {
|
|
|
99
99
|
|
|
100
100
|
export type IntensityRegionItem = IntensityRegionReached | IntensityRegionUnReached
|
|
101
101
|
|
|
102
|
+
export interface IntensityRealtimeStation {
|
|
103
|
+
code: string;
|
|
104
|
+
name: string;
|
|
105
|
+
int: IntensityClass;
|
|
106
|
+
k: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
102
109
|
export interface Intensity {
|
|
103
110
|
forecastMaxInt: IntensityForecastMaxInt;
|
|
104
111
|
forecastLpgmMaxInt?: IntensityForecastLpgmMaxInt;
|
|
@@ -106,6 +113,10 @@ export namespace EewInformation {
|
|
|
106
113
|
regions: IntensityRegionItem[];
|
|
107
114
|
}
|
|
108
115
|
|
|
116
|
+
export interface IntensityRealtime {
|
|
117
|
+
stations: IntensityRealtimeStation[];
|
|
118
|
+
}
|
|
119
|
+
|
|
109
120
|
|
|
110
121
|
export interface Comments {
|
|
111
122
|
free?: string;
|
|
@@ -128,6 +139,14 @@ export namespace EewInformation {
|
|
|
128
139
|
comments: Comments;
|
|
129
140
|
}
|
|
130
141
|
|
|
142
|
+
export interface PublicRealtimeBody {
|
|
143
|
+
isLastInfo: boolean;
|
|
144
|
+
isCanceled: boolean;
|
|
145
|
+
earthquake: Earthquake;
|
|
146
|
+
intensity?: IntensityRealtime;
|
|
147
|
+
text?: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
131
150
|
export interface PublicTestingBody {
|
|
132
151
|
isLastInfo: false;
|
|
133
152
|
isCanceled: false;
|
|
@@ -154,6 +173,21 @@ export namespace EewInformation {
|
|
|
154
173
|
body: PublicCommonBody;
|
|
155
174
|
}
|
|
156
175
|
|
|
176
|
+
export interface PublicRealtime extends TelegramJSONMain {
|
|
177
|
+
_schema: Schema;
|
|
178
|
+
type: 'リアルタイム震度';
|
|
179
|
+
title: 'リアルタイム震度';
|
|
180
|
+
infoType: '発表' | '訂正';
|
|
181
|
+
targetDateTimeDubious: never;
|
|
182
|
+
targetDuration: never;
|
|
183
|
+
validDateTime: never;
|
|
184
|
+
eventId: string;
|
|
185
|
+
serialNo: string;
|
|
186
|
+
infoKind: '緊急地震速報';
|
|
187
|
+
body: PublicRealtimeBody;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
|
|
157
191
|
export interface PublicTesting extends TelegramJSONMain {
|
|
158
192
|
_schema: Schema;
|
|
159
193
|
type: '緊急地震速報配信テスト';
|
|
@@ -170,8 +204,8 @@ export namespace EewInformation {
|
|
|
170
204
|
|
|
171
205
|
export interface Cancel extends TelegramJSONMain {
|
|
172
206
|
_schema: Schema;
|
|
173
|
-
type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | '緊急地震速報配信テスト';
|
|
174
|
-
title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | '緊急地震速報配信テスト';
|
|
207
|
+
type: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | 'リアルタイム震度' | '緊急地震速報配信テスト';
|
|
208
|
+
title: '緊急地震速報(予報)' | '緊急地震速報(地震動予報)' | '緊急地震速報(警報)' | 'リアルタイム震度' | '緊急地震速報配信テスト';
|
|
175
209
|
infoType: '取消';
|
|
176
210
|
targetDateTimeDubious: never;
|
|
177
211
|
targetDuration: never;
|
|
@@ -182,6 +216,6 @@ export namespace EewInformation {
|
|
|
182
216
|
body: CancelBody;
|
|
183
217
|
}
|
|
184
218
|
|
|
185
|
-
export type Main = PublicCommon | PublicTesting | Cancel;
|
|
219
|
+
export type Main = PublicCommon | PublicRealtime | PublicTesting | Cancel;
|
|
186
220
|
|
|
187
221
|
}
|