@dmdata/telegram-json-types 1.1.9 → 1.1.10
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/EarthquakeInformation.PublicVXSE51"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE52"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE53"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE62"},{"$ref":"#/definitions/EarthquakeInformation.PublicVZSE40"},{"$ref":"#/definitions/EarthquakeInformation.Cancel"}],"definitions":{"EarthquakeInformation.PublicVXSE51":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["震度速報"]},"title":{"type":"string","enum":["震度速報"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["震度速報"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE51"},"_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"]},"EarthquakeInformation.Schema":{"type":"object","properties":{"type":{"type":"string","enum":["earthquake-information"]},"version":{"type":"string","enum":["1.1.0"]}},"required":["type","version"]},"EarthquakeInformation.PublicBodyVXSE51":{"type":"object","properties":{"intensity":{"$ref":"#/definitions/EarthquakeInformation.IntensityVXSE51"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/Omit<EarthquakeInformation.Comments,\"var\">"}},"required":["comments","intensity"]},"EarthquakeInformation.IntensityVXSE51":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxInt"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxInt"}}},"required":["maxInt","prefectures","regions"]},"EarthquakeInformation.IntensityClass":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"EarthquakeInformation.IntensityMaxInt":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","maxInt","name"]},"Omit<EarthquakeInformation.Comments,\"var\">":{"type":"object","properties":{"free":{"type":"string"},"forecast":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}},"EarthquakeInformation.PublicVXSE52":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["震源に関する情報"]},"title":{"type":"string","enum":["震源に関する情報"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["震源速報"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE52"},"_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"]},"EarthquakeInformation.PublicBodyVXSE52":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/Omit<EarthquakeInformation.Comments,\"var\">"}},"required":["comments","earthquake"]},"Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"hypocenter":{"$ref":"#/definitions/Hypocenter"},"magnitude":{"anyOf":[{"$ref":"#/definitions/MagnitudeNormal"},{"$ref":"#/definitions/MagnitudeUnknown"}]}},"required":["arrivalTime","hypocenter","magnitude","originTime"]},"Hypocenter":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"coordinate":{"anyOf":[{"$ref":"#/definitions/CoordinateUnknown"},{"$ref":"#/definitions/CoordinateNormal<\"日本測地系\"|undefined>"}]},"depth":{"anyOf":[{"$ref":"#/definitions/DepthNormal"},{"$ref":"#/definitions/DepthShallow"},{"$ref":"#/definitions/DepthDeep"},{"$ref":"#/definitions/DepthUnknown"}]},"detailed":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"auxiliary":{"type":"object","properties":{"text":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"direction":{"type":"string"},"distance":{"$ref":"#/definitions/Omit<UnitValueNotNull<never,\"km\",never>,\"type\"|\"condition\">"}},"required":["code","direction","distance","name","text"]},"source":{"enum":["PTWC","USGS","WCATWC"],"type":"string"}},"required":["code","coordinate","depth","name"]},"CoordinateUnknown":{"type":"object","properties":{"condition":{"type":"string","enum":["不明"]}},"required":["condition"]},"CoordinateNormal<\"日本測地系\"|undefined>":{"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":"string"}},"required":["type","unit","value"]},"geodeticSystem":{"enum":["日本測地系"],"type":"string"}},"required":["latitude","longitude"]},"DepthNormal":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit","value"]},"DepthShallow":{"type":"object","properties":{"value":{"type":"string","enum":["0"]},"condition":{"type":"string","enum":["ごく浅い"]},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["condition","type","unit","value"]},"DepthDeep":{"type":"object","properties":{"value":{"type":"string","enum":["700"]},"condition":{"type":"string","enum":["700km以上"]},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["condition","type","unit","value"]},"DepthUnknown":{"type":"object","properties":{"value":{"type":"null"},"condition":{"type":"string","enum":["不明"]},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["condition","type","unit","value"]},"Omit<UnitValueNotNull<never,\"km\",never>,\"type\"|\"condition\">":{"type":"object","properties":{"unit":{"type":"string","enum":["km"]},"value":{"type":"string"}},"required":["unit","value"]},"MagnitudeNormal":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit","value"]},"MagnitudeUnknown":{"type":"object","properties":{"value":{"type":"null"},"condition":{"enum":["M不明","M8を超える巨大地震"],"type":"string"},"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["condition","type","unit","value"]},"EarthquakeInformation.PublicVXSE53":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["震源・震度に関する情報"]},"title":{"enum":["遠地地震に関する情報","震源・震度情報"],"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["地震情報"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE53"},"_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"]},"EarthquakeInformation.PublicBodyVXSE53":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"intensity":{"$ref":"#/definitions/EarthquakeInformation.IntensityVXSE53"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EarthquakeInformation.Comments"}},"required":["comments","earthquake"]},"EarthquakeInformation.IntensityVXSE53":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"}},"cities":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityCity"}},"stations":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityStation"}}},"required":["cities","maxInt","prefectures","regions","stations"]},"EarthquakeInformation.IntensityMaxIntOnRevise":{"type":"object","properties":{"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EarthquakeInformation.IntensityCity":{"type":"object","properties":{"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EarthquakeInformation.IntensityStation":{"type":"object","properties":{"int":{"enum":["!5-","1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","int","name"]},"EarthquakeInformation.Comments":{"type":"object","properties":{"free":{"type":"string"},"forecast":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]},"var":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}},"EarthquakeInformation.PublicVXSE62":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.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/EarthquakeInformation.PublicBodyVXSE62"},"_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"]},"EarthquakeInformation.PublicBodyVXSE62":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"intensity":{"$ref":"#/definitions/EarthquakeInformation.IntensityVXSE62"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EarthquakeInformation.Comments"}},"required":["comments","earthquake"]},"EarthquakeInformation.IntensityVXSE62":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"maxLpgmInt":{"$ref":"#/definitions/EarthquakeInformation.LpgmIntensityClass"},"lpgmCategory":{"$ref":"#/definitions/EarthquakeInformation.LpgmCategory"},"prefectures":{"type":"array","items":{"allOf":[{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"},{"type":"object","properties":{"maxLpgmInt":{"$ref":"#/definitions/EarthquakeInformation.LpgmIntensityClass"}},"required":["maxLpgmInt"]}]}},"regions":{"type":"array","items":{"allOf":[{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"},{"type":"object","properties":{"maxLpgmInt":{"$ref":"#/definitions/EarthquakeInformation.LpgmIntensityClass"}},"required":["maxLpgmInt"]}]}},"stations":{"type":"array","items":{"allOf":[{"$ref":"#/definitions/EarthquakeInformation.IntensityStation"},{"type":"object","properties":{"lpgmInt":{"$ref":"#/definitions/EarthquakeInformation.LpgmIntensityClass"},"sva":{"type":"object","properties":{"unit":{"type":"string","enum":["cm/s"]},"value":{"type":"string"}},"required":["unit","value"]},"prePeriods":{"type":"array","items":{"type":"object","properties":{"periodicBand":{"type":"object","properties":{"unit":{"type":"string","enum":["秒台"]},"value":{"type":"string"}},"required":["unit","value"]},"lpgmInt":{"$ref":"#/definitions/EarthquakeInformation.LpgmIntensityClass"},"sva":{"type":"object","properties":{"unit":{"type":"string","enum":["cm/s"]},"value":{"type":"string"}},"required":["unit","value"]}},"required":["lpgmInt","periodicBand","sva"]}}},"required":["lpgmInt","prePeriods","sva"]}]}}},"required":["lpgmCategory","maxInt","maxLpgmInt","prefectures","regions","stations"]},"EarthquakeInformation.LpgmIntensityClass":{"enum":["0","1","2","3","4"],"type":"string"},"EarthquakeInformation.LpgmCategory":{"enum":["1","2","3","4"],"type":"string"},"EarthquakeInformation.PublicVZSE40":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["地震・津波に関するお知らせ"]},"title":{"type":"string","enum":["地震・津波に関するお知らせ"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["地震・津波に関するお知らせ"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXZSE40"},"_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"]},"EarthquakeInformation.PublicBodyVXZSE40":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"EarthquakeInformation.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"enum":["地震・津波に関するお知らせ","長周期地震動に関する観測情報","震度速報","震源に関する情報","震源・震度に関する情報"],"type":"string"},"title":{"enum":["地震・津波に関するお知らせ","遠地地震に関する情報","長周期地震動に関する観測情報","震度速報","震源に関する情報","震源・震度情報"],"type":"string"},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"infoKind":{"enum":["地震・津波に関するお知らせ","地震情報","長周期地震動に関する観測情報","震度速報","震源速報"],"type":"string"},"body":{"$ref":"#/definitions/EarthquakeInformation.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"},"serialNo":{"type":["null","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"]},"EarthquakeInformation.CancelBody":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|
|
1
|
+
{"anyOf":[{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE51"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE52"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE53"},{"$ref":"#/definitions/EarthquakeInformation.PublicVXSE62"},{"$ref":"#/definitions/EarthquakeInformation.PublicVZSE40"},{"$ref":"#/definitions/EarthquakeInformation.Cancel"}],"definitions":{"EarthquakeInformation.PublicVXSE51":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["震度速報"]},"title":{"type":"string","enum":["震度速報"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["震度速報"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE51"},"_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"]},"EarthquakeInformation.Schema":{"type":"object","properties":{"type":{"type":"string","enum":["earthquake-information"]},"version":{"type":"string","enum":["1.1.0"]}},"required":["type","version"]},"EarthquakeInformation.PublicBodyVXSE51":{"type":"object","properties":{"intensity":{"$ref":"#/definitions/EarthquakeInformation.IntensityVXSE51"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/Omit<EarthquakeInformation.Comments,\"var\">"}},"required":["comments","intensity"]},"EarthquakeInformation.IntensityVXSE51":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxInt"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxInt"}}},"required":["maxInt","prefectures","regions"]},"EarthquakeInformation.IntensityClass":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"EarthquakeInformation.IntensityMaxInt":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","maxInt","name"]},"Omit<EarthquakeInformation.Comments,\"var\">":{"type":"object","properties":{"free":{"type":"string"},"forecast":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}},"EarthquakeInformation.PublicVXSE52":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["震源に関する情報"]},"title":{"type":"string","enum":["震源に関する情報"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["震源速報"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE52"},"_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"]},"EarthquakeInformation.PublicBodyVXSE52":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/Omit<EarthquakeInformation.Comments,\"var\">"}},"required":["comments","earthquake"]},"Earthquake":{"type":"object","properties":{"originTime":{"type":"string"},"arrivalTime":{"type":"string"},"hypocenter":{"$ref":"#/definitions/Hypocenter"},"magnitude":{"anyOf":[{"$ref":"#/definitions/MagnitudeNormal"},{"$ref":"#/definitions/MagnitudeUnknown"}]}},"required":["arrivalTime","hypocenter","magnitude","originTime"]},"Hypocenter":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"coordinate":{"anyOf":[{"$ref":"#/definitions/CoordinateUnknown"},{"$ref":"#/definitions/CoordinateNormal<\"日本測地系\"|undefined>"}]},"depth":{"anyOf":[{"$ref":"#/definitions/DepthNormal"},{"$ref":"#/definitions/DepthShallow"},{"$ref":"#/definitions/DepthDeep"},{"$ref":"#/definitions/DepthUnknown"}]},"detailed":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"auxiliary":{"type":"object","properties":{"text":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"direction":{"type":"string"},"distance":{"$ref":"#/definitions/Omit<UnitValueNotNull<never,\"km\",never>,\"type\"|\"condition\">"}},"required":["code","direction","distance","name","text"]},"source":{"enum":["PTWC","USGS","WCATWC"],"type":"string"}},"required":["code","coordinate","depth","name"]},"CoordinateUnknown":{"type":"object","properties":{"condition":{"type":"string","enum":["不明"]}},"required":["condition"]},"CoordinateNormal<\"日本測地系\"|undefined>":{"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":"string"}},"required":["type","unit","value"]},"geodeticSystem":{"enum":["日本測地系"],"type":"string"}},"required":["latitude","longitude"]},"DepthNormal":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["type","unit","value"]},"DepthShallow":{"type":"object","properties":{"value":{"type":"string","enum":["0"]},"condition":{"type":"string","enum":["ごく浅い"]},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["condition","type","unit","value"]},"DepthDeep":{"type":"object","properties":{"value":{"type":"string","enum":["700"]},"condition":{"type":"string","enum":["700km以上"]},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["condition","type","unit","value"]},"DepthUnknown":{"type":"object","properties":{"value":{"type":"null"},"condition":{"type":"string","enum":["不明"]},"type":{"type":"string","enum":["深さ"]},"unit":{"type":"string","enum":["km"]}},"required":["condition","type","unit","value"]},"Omit<UnitValueNotNull<never,\"km\",never>,\"type\"|\"condition\">":{"type":"object","properties":{"unit":{"type":"string","enum":["km"]},"value":{"type":"string"}},"required":["unit","value"]},"MagnitudeNormal":{"type":"object","properties":{"value":{"type":"string"},"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["type","unit","value"]},"MagnitudeUnknown":{"type":"object","properties":{"value":{"type":"null"},"condition":{"enum":["M不明","M8を超える巨大地震"],"type":"string"},"type":{"type":"string","enum":["マグニチュード"]},"unit":{"enum":["M","Mj"],"type":"string"}},"required":["condition","type","unit","value"]},"EarthquakeInformation.PublicVXSE53":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["震源・震度に関する情報"]},"title":{"enum":["遠地地震に関する情報","震源・震度情報"],"type":"string"},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"string"},"infoKind":{"type":"string","enum":["地震情報"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXSE53"},"_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"]},"EarthquakeInformation.PublicBodyVXSE53":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"intensity":{"$ref":"#/definitions/EarthquakeInformation.IntensityVXSE53"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EarthquakeInformation.Comments"}},"required":["comments","earthquake"]},"EarthquakeInformation.IntensityVXSE53":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"prefectures":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"}},"regions":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"}},"cities":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityCity"}},"stations":{"type":"array","items":{"$ref":"#/definitions/EarthquakeInformation.IntensityStation"}}},"required":["cities","maxInt","prefectures","regions","stations"]},"EarthquakeInformation.IntensityMaxIntOnRevise":{"type":"object","properties":{"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EarthquakeInformation.IntensityCity":{"type":"object","properties":{"maxInt":{"enum":["1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]},"EarthquakeInformation.IntensityStation":{"type":"object","properties":{"int":{"enum":["!5-","1","2","3","4","5+","5-","6+","6-","7"],"type":"string"},"revise":{"enum":["上方修正","追加"],"type":"string"},"condition":{"enum":["震度5弱以上未入電"],"type":"string"},"code":{"type":"string"},"name":{"type":"string"}},"required":["code","int","name"]},"EarthquakeInformation.Comments":{"type":"object","properties":{"free":{"type":"string"},"forecast":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]},"var":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"string"}}},"required":["codes","text"]}}},"EarthquakeInformation.PublicVXSE62":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.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/EarthquakeInformation.PublicBodyVXSE62"},"_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"]},"EarthquakeInformation.PublicBodyVXSE62":{"type":"object","properties":{"earthquake":{"$ref":"#/definitions/Earthquake"},"intensity":{"$ref":"#/definitions/EarthquakeInformation.IntensityVXSE62"},"text":{"type":"string"},"comments":{"$ref":"#/definitions/EarthquakeInformation.Comments"}},"required":["comments","earthquake"]},"EarthquakeInformation.IntensityVXSE62":{"type":"object","properties":{"maxInt":{"$ref":"#/definitions/EarthquakeInformation.IntensityClass"},"maxLgInt":{"$ref":"#/definitions/EarthquakeInformation.LgIntensityClass"},"lgCategory":{"$ref":"#/definitions/EarthquakeInformation.LgCategory"},"prefectures":{"type":"array","items":{"allOf":[{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"},{"type":"object","properties":{"maxLgInt":{"$ref":"#/definitions/EarthquakeInformation.LgIntensityClass"}},"required":["maxLgInt"]}]}},"regions":{"type":"array","items":{"allOf":[{"$ref":"#/definitions/EarthquakeInformation.IntensityMaxIntOnRevise"},{"type":"object","properties":{"maxLgInt":{"$ref":"#/definitions/EarthquakeInformation.LgIntensityClass"}},"required":["maxLgInt"]}]}},"stations":{"type":"array","items":{"allOf":[{"$ref":"#/definitions/EarthquakeInformation.IntensityStation"},{"type":"object","properties":{"lgInt":{"$ref":"#/definitions/EarthquakeInformation.LgIntensityClass"},"sva":{"type":"object","properties":{"unit":{"type":"string","enum":["cm/s"]},"value":{"type":"string"}},"required":["unit","value"]},"prePeriods":{"type":"array","items":{"type":"object","properties":{"periodicBand":{"type":"object","properties":{"unit":{"type":"string","enum":["秒台"]},"value":{"type":"string"}},"required":["unit","value"]},"lgInt":{"$ref":"#/definitions/EarthquakeInformation.LgIntensityClass"},"sva":{"type":"object","properties":{"unit":{"type":"string","enum":["cm/s"]},"value":{"type":"string"}},"required":["unit","value"]}},"required":["lgInt","periodicBand","sva"]}}},"required":["lgInt","prePeriods","sva"]}]}}},"required":["lgCategory","maxInt","maxLgInt","prefectures","regions","stations"]},"EarthquakeInformation.LgIntensityClass":{"enum":["0","1","2","3","4"],"type":"string"},"EarthquakeInformation.LgCategory":{"enum":["1","2","3","4"],"type":"string"},"EarthquakeInformation.PublicVZSE40":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"type":"string","enum":["地震・津波に関するお知らせ"]},"title":{"type":"string","enum":["地震・津波に関するお知らせ"]},"infoType":{"enum":["発表","訂正"],"type":"string"},"eventId":{"type":"string"},"serialNo":{"type":"null"},"infoKind":{"type":"string","enum":["地震・津波に関するお知らせ"]},"body":{"$ref":"#/definitions/EarthquakeInformation.PublicBodyVXZSE40"},"_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"]},"EarthquakeInformation.PublicBodyVXZSE40":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"EarthquakeInformation.Cancel":{"type":"object","properties":{"_schema":{"$ref":"#/definitions/EarthquakeInformation.Schema"},"type":{"enum":["地震・津波に関するお知らせ","長周期地震動に関する観測情報","震度速報","震源に関する情報","震源・震度に関する情報"],"type":"string"},"title":{"enum":["地震・津波に関するお知らせ","遠地地震に関する情報","長周期地震動に関する観測情報","震度速報","震源に関する情報","震源・震度情報"],"type":"string"},"infoType":{"type":"string","enum":["取消"]},"eventId":{"type":"string"},"infoKind":{"enum":["地震・津波に関するお知らせ","地震情報","長周期地震動に関する観測情報","震度速報","震源速報"],"type":"string"},"body":{"$ref":"#/definitions/EarthquakeInformation.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"},"serialNo":{"type":["null","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"]},"EarthquakeInformation.CancelBody":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"$schema":"http://json-schema.org/draft-07/schema#"}
|
package/package.json
CHANGED
|
@@ -8,8 +8,8 @@ export namespace EarthquakeInformation {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export type IntensityClass = '1' | '2' | '3' | '4' | '5-' | '5+' | '6-' | '6+' | '7';
|
|
11
|
-
export type
|
|
12
|
-
export type
|
|
11
|
+
export type LgIntensityClass = '0' | '1' | '2' | '3' | '4';
|
|
12
|
+
export type LgCategory = '1' | '2' | '3' | '4';
|
|
13
13
|
|
|
14
14
|
export interface IntensityMaxInt extends Components.CodeName {
|
|
15
15
|
maxInt: IntensityClass;
|
|
@@ -32,18 +32,18 @@ export namespace EarthquakeInformation {
|
|
|
32
32
|
condition?: '震度5弱以上未入電';
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export type
|
|
36
|
-
|
|
35
|
+
export type IntensityLgMaxInt = IntensityMaxIntOnRevise & {
|
|
36
|
+
maxLgInt: LgIntensityClass;
|
|
37
37
|
};
|
|
38
|
-
export type
|
|
38
|
+
export type IntensityLgStationPrePeriod = {
|
|
39
39
|
periodicBand: Components.UnitValueNotNull<never, '秒台'>;
|
|
40
|
-
|
|
40
|
+
lgInt: LgIntensityClass;
|
|
41
41
|
sva: Components.UnitValueNotNull<never, 'cm/s'>;
|
|
42
42
|
};
|
|
43
|
-
export type
|
|
44
|
-
|
|
43
|
+
export type IntensityLgStation = IntensityStation & {
|
|
44
|
+
lgInt: LgIntensityClass;
|
|
45
45
|
sva: Components.UnitValueNotNull<never, 'cm/s'>;
|
|
46
|
-
prePeriods:
|
|
46
|
+
prePeriods: IntensityLgStationPrePeriod[];
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export interface Comments {
|
|
@@ -75,11 +75,11 @@ export namespace EarthquakeInformation {
|
|
|
75
75
|
|
|
76
76
|
export interface IntensityVXSE62 {
|
|
77
77
|
maxInt: IntensityClass;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
prefectures:
|
|
81
|
-
regions:
|
|
82
|
-
stations:
|
|
78
|
+
maxLgInt: LgIntensityClass;
|
|
79
|
+
lgCategory: LgCategory;
|
|
80
|
+
prefectures: IntensityLgMaxInt[];
|
|
81
|
+
regions: IntensityLgMaxInt[];
|
|
82
|
+
stations: IntensityLgStation[];
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
|