Comparing version 1.5.0 to 1.6.0
var typedoc = typedoc || {}; | ||
typedoc.search = typedoc.search || {}; | ||
typedoc.search.data = {"kinds":{"4":"Enumeration","16":"Enumeration member","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method"},"rows":[{"id":0,"kind":256,"name":"IBaseResponse","url":"interfaces/ibaseresponse.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"statusCode","url":"interfaces/ibaseresponse.html#statuscode","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBaseResponse"},{"id":2,"kind":1024,"name":"statusMessage","url":"interfaces/ibaseresponse.html#statusmessage","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBaseResponse"},{"id":3,"kind":1024,"name":"message","url":"interfaces/ibaseresponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBaseResponse"},{"id":4,"kind":256,"name":"IErrorResponse","url":"interfaces/ierrorresponse.html","classes":"tsd-kind-interface"},{"id":5,"kind":1024,"name":"error","url":"interfaces/ierrorresponse.html#error","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IErrorResponse"},{"id":6,"kind":1024,"name":"statusCode","url":"interfaces/ierrorresponse.html#statuscode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IErrorResponse"},{"id":7,"kind":1024,"name":"statusMessage","url":"interfaces/ierrorresponse.html#statusmessage","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IErrorResponse"},{"id":8,"kind":1024,"name":"message","url":"interfaces/ierrorresponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IErrorResponse"},{"id":9,"kind":128,"name":"ApiError","url":"classes/apierror.html","classes":"tsd-kind-class"},{"id":10,"kind":1024,"name":"statusCode","url":"classes/apierror.html#statuscode","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ApiError"},{"id":11,"kind":1024,"name":"statusMessage","url":"classes/apierror.html#statusmessage","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ApiError"},{"id":12,"kind":1024,"name":"message","url":"classes/apierror.html#message","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"ApiError"},{"id":13,"kind":1024,"name":"error","url":"classes/apierror.html#error","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ApiError"},{"id":14,"kind":512,"name":"constructor","url":"classes/apierror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ApiError"},{"id":15,"kind":1024,"name":"name","url":"classes/apierror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ApiError"},{"id":16,"kind":1024,"name":"stack","url":"classes/apierror.html#stack","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"ApiError"},{"id":17,"kind":1024,"name":"Error","url":"classes/apierror.html#error-1","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"ApiError"},{"id":18,"kind":256,"name":"IConstruction","url":"interfaces/iconstruction.html","classes":"tsd-kind-interface"},{"id":19,"kind":1024,"name":"time","url":"interfaces/iconstruction.html#time","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IConstruction"},{"id":20,"kind":1024,"name":"ships","url":"interfaces/iconstruction.html#ships","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IConstruction"},{"id":21,"kind":256,"name":"IBuildResponse","url":"interfaces/ibuildresponse.html","classes":"tsd-kind-interface"},{"id":22,"kind":1024,"name":"construction","url":"interfaces/ibuildresponse.html#construction","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBuildResponse"},{"id":23,"kind":1024,"name":"statusCode","url":"interfaces/ibuildresponse.html#statuscode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IBuildResponse"},{"id":24,"kind":1024,"name":"statusMessage","url":"interfaces/ibuildresponse.html#statusmessage","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IBuildResponse"},{"id":25,"kind":1024,"name":"message","url":"interfaces/ibuildresponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IBuildResponse"},{"id":26,"kind":256,"name":"INames","url":"interfaces/inames.html","classes":"tsd-kind-interface"},{"id":27,"kind":1024,"name":"en","url":"interfaces/inames.html#en","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INames"},{"id":28,"kind":1024,"name":"cn","url":"interfaces/inames.html#cn","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INames"},{"id":29,"kind":1024,"name":"jp","url":"interfaces/inames.html#jp","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INames"},{"id":30,"kind":1024,"name":"kr","url":"interfaces/inames.html#kr","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INames"},{"id":31,"kind":256,"name":"ISkin","url":"interfaces/iskin.html","classes":"tsd-kind-interface"},{"id":32,"kind":1024,"name":"title","url":"interfaces/iskin.html#title","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ISkin"},{"id":33,"kind":1024,"name":"image","url":"interfaces/iskin.html#image","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ISkin"},{"id":34,"kind":256,"name":"IStars","url":"interfaces/istars.html","classes":"tsd-kind-interface"},{"id":35,"kind":1024,"name":"value","url":"interfaces/istars.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStars"},{"id":36,"kind":1024,"name":"count","url":"interfaces/istars.html#count","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStars"},{"id":37,"kind":256,"name":"IStatsItem","url":"interfaces/istatsitem.html","classes":"tsd-kind-interface"},{"id":38,"kind":1024,"name":"name","url":"interfaces/istatsitem.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStatsItem"},{"id":39,"kind":1024,"name":"image","url":"interfaces/istatsitem.html#image","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStatsItem"},{"id":40,"kind":1024,"name":"value","url":"interfaces/istatsitem.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStatsItem"},{"id":41,"kind":256,"name":"IStats","url":"interfaces/istats.html","classes":"tsd-kind-interface"},{"id":42,"kind":1024,"name":"base","url":"interfaces/istats.html#base","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStats"},{"id":43,"kind":1024,"name":"100","url":"interfaces/istats.html#100","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStats"},{"id":44,"kind":1024,"name":"120","url":"interfaces/istats.html#120","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStats"},{"id":45,"kind":256,"name":"IMiscellaneousInfo","url":"interfaces/imiscellaneousinfo.html","classes":"tsd-kind-interface"},{"id":46,"kind":1024,"name":"link","url":"interfaces/imiscellaneousinfo.html#link","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneousInfo"},{"id":47,"kind":1024,"name":"name","url":"interfaces/imiscellaneousinfo.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneousInfo"},{"id":48,"kind":256,"name":"IMiscellaneous","url":"interfaces/imiscellaneous.html","classes":"tsd-kind-interface"},{"id":49,"kind":1024,"name":"artist","url":"interfaces/imiscellaneous.html#artist","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneous"},{"id":50,"kind":1024,"name":"web","url":"interfaces/imiscellaneous.html#web","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneous"},{"id":51,"kind":1024,"name":"pixiv","url":"interfaces/imiscellaneous.html#pixiv","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneous"},{"id":52,"kind":1024,"name":"twitter","url":"interfaces/imiscellaneous.html#twitter","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneous"},{"id":53,"kind":1024,"name":"voiceActress","url":"interfaces/imiscellaneous.html#voiceactress","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneous"},{"id":54,"kind":256,"name":"IShip","url":"interfaces/iship.html","classes":"tsd-kind-interface"},{"id":55,"kind":1024,"name":"wikiUrl","url":"interfaces/iship.html#wikiurl","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":56,"kind":1024,"name":"id","url":"interfaces/iship.html#id","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":57,"kind":1024,"name":"names","url":"interfaces/iship.html#names","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":58,"kind":1024,"name":"thumbnail","url":"interfaces/iship.html#thumbnail","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":59,"kind":1024,"name":"skins","url":"interfaces/iship.html#skins","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":60,"kind":1024,"name":"buildTime","url":"interfaces/iship.html#buildtime","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":61,"kind":1024,"name":"rarity","url":"interfaces/iship.html#rarity","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":62,"kind":1024,"name":"stars","url":"interfaces/iship.html#stars","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":63,"kind":1024,"name":"class","url":"interfaces/iship.html#class","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":64,"kind":1024,"name":"nationality","url":"interfaces/iship.html#nationality","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":65,"kind":1024,"name":"nationalityShort","url":"interfaces/iship.html#nationalityshort","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":66,"kind":1024,"name":"hullType","url":"interfaces/iship.html#hulltype","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":67,"kind":1024,"name":"stats","url":"interfaces/iship.html#stats","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":68,"kind":1024,"name":"miscellaneous","url":"interfaces/iship.html#miscellaneous","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":69,"kind":256,"name":"IShipResponse","url":"interfaces/ishipresponse.html","classes":"tsd-kind-interface"},{"id":70,"kind":1024,"name":"ship","url":"interfaces/ishipresponse.html#ship","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShipResponse"},{"id":71,"kind":1024,"name":"statusCode","url":"interfaces/ishipresponse.html#statuscode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IShipResponse"},{"id":72,"kind":1024,"name":"statusMessage","url":"interfaces/ishipresponse.html#statusmessage","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IShipResponse"},{"id":73,"kind":1024,"name":"message","url":"interfaces/ishipresponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IShipResponse"},{"id":74,"kind":256,"name":"IBaseShip","url":"interfaces/ibaseship.html","classes":"tsd-kind-interface"},{"id":75,"kind":1024,"name":"id","url":"interfaces/ibaseship.html#id","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBaseShip"},{"id":76,"kind":1024,"name":"name","url":"interfaces/ibaseship.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBaseShip"},{"id":77,"kind":256,"name":"IOptions","url":"interfaces/ioptions.html","classes":"tsd-kind-interface"},{"id":78,"kind":1024,"name":"userAgent","url":"interfaces/ioptions.html#useragent","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IOptions"},{"id":79,"kind":4,"name":"Order","url":"enums/order.html","classes":"tsd-kind-enum"},{"id":80,"kind":16,"name":"RARITY","url":"enums/order.html#rarity","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":81,"kind":16,"name":"TYPE","url":"enums/order.html#type","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":82,"kind":16,"name":"AFFILIATION","url":"enums/order.html#affiliation","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Order"},{"id":83,"kind":128,"name":"AzurLane","url":"classes/azurlane.html","classes":"tsd-kind-class"},{"id":84,"kind":1024,"name":"options","url":"classes/azurlane.html#options","classes":"tsd-kind-property tsd-parent-kind-class","parent":"AzurLane"},{"id":85,"kind":512,"name":"constructor","url":"classes/azurlane.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"AzurLane"},{"id":86,"kind":2048,"name":"getShipByName","url":"classes/azurlane.html#getshipbyname","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":87,"kind":2048,"name":"getShipById","url":"classes/azurlane.html#getshipbyid","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":88,"kind":2048,"name":"getShips","url":"classes/azurlane.html#getships","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":89,"kind":2048,"name":"getShipsWithRarity","url":"classes/azurlane.html#getshipswithrarity","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":90,"kind":2048,"name":"getShipsWithType","url":"classes/azurlane.html#getshipswithtype","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":91,"kind":2048,"name":"getShipsWithAffiliation","url":"classes/azurlane.html#getshipswithaffiliation","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":92,"kind":2048,"name":"getBuildInfo","url":"classes/azurlane.html#getbuildinfo","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"}]}; | ||
typedoc.search.data = {"kinds":{"4":"Enumeration","16":"Enumeration member","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method"},"rows":[{"id":0,"kind":256,"name":"IBaseResponse","url":"interfaces/ibaseresponse.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"statusCode","url":"interfaces/ibaseresponse.html#statuscode","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBaseResponse"},{"id":2,"kind":1024,"name":"statusMessage","url":"interfaces/ibaseresponse.html#statusmessage","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBaseResponse"},{"id":3,"kind":1024,"name":"message","url":"interfaces/ibaseresponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBaseResponse"},{"id":4,"kind":256,"name":"IErrorResponse","url":"interfaces/ierrorresponse.html","classes":"tsd-kind-interface"},{"id":5,"kind":1024,"name":"error","url":"interfaces/ierrorresponse.html#error","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IErrorResponse"},{"id":6,"kind":1024,"name":"statusCode","url":"interfaces/ierrorresponse.html#statuscode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IErrorResponse"},{"id":7,"kind":1024,"name":"statusMessage","url":"interfaces/ierrorresponse.html#statusmessage","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IErrorResponse"},{"id":8,"kind":1024,"name":"message","url":"interfaces/ierrorresponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IErrorResponse"},{"id":9,"kind":128,"name":"ApiError","url":"classes/apierror.html","classes":"tsd-kind-class"},{"id":10,"kind":1024,"name":"statusCode","url":"classes/apierror.html#statuscode","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ApiError"},{"id":11,"kind":1024,"name":"statusMessage","url":"classes/apierror.html#statusmessage","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ApiError"},{"id":12,"kind":1024,"name":"message","url":"classes/apierror.html#message","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"ApiError"},{"id":13,"kind":1024,"name":"error","url":"classes/apierror.html#error","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ApiError"},{"id":14,"kind":512,"name":"constructor","url":"classes/apierror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ApiError"},{"id":15,"kind":1024,"name":"name","url":"classes/apierror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ApiError"},{"id":16,"kind":1024,"name":"stack","url":"classes/apierror.html#stack","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"ApiError"},{"id":17,"kind":1024,"name":"Error","url":"classes/apierror.html#error-1","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"ApiError"},{"id":18,"kind":256,"name":"IConstruction","url":"interfaces/iconstruction.html","classes":"tsd-kind-interface"},{"id":19,"kind":1024,"name":"time","url":"interfaces/iconstruction.html#time","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IConstruction"},{"id":20,"kind":1024,"name":"ships","url":"interfaces/iconstruction.html#ships","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IConstruction"},{"id":21,"kind":256,"name":"IBuildResponse","url":"interfaces/ibuildresponse.html","classes":"tsd-kind-interface"},{"id":22,"kind":1024,"name":"construction","url":"interfaces/ibuildresponse.html#construction","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBuildResponse"},{"id":23,"kind":1024,"name":"statusCode","url":"interfaces/ibuildresponse.html#statuscode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IBuildResponse"},{"id":24,"kind":1024,"name":"statusMessage","url":"interfaces/ibuildresponse.html#statusmessage","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IBuildResponse"},{"id":25,"kind":1024,"name":"message","url":"interfaces/ibuildresponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IBuildResponse"},{"id":26,"kind":256,"name":"INames","url":"interfaces/inames.html","classes":"tsd-kind-interface"},{"id":27,"kind":1024,"name":"en","url":"interfaces/inames.html#en","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INames"},{"id":28,"kind":1024,"name":"cn","url":"interfaces/inames.html#cn","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INames"},{"id":29,"kind":1024,"name":"jp","url":"interfaces/inames.html#jp","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INames"},{"id":30,"kind":1024,"name":"kr","url":"interfaces/inames.html#kr","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"INames"},{"id":31,"kind":256,"name":"ISkin","url":"interfaces/iskin.html","classes":"tsd-kind-interface"},{"id":32,"kind":1024,"name":"title","url":"interfaces/iskin.html#title","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ISkin"},{"id":33,"kind":1024,"name":"image","url":"interfaces/iskin.html#image","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ISkin"},{"id":34,"kind":256,"name":"IStars","url":"interfaces/istars.html","classes":"tsd-kind-interface"},{"id":35,"kind":1024,"name":"value","url":"interfaces/istars.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStars"},{"id":36,"kind":1024,"name":"count","url":"interfaces/istars.html#count","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStars"},{"id":37,"kind":256,"name":"IStatsItem","url":"interfaces/istatsitem.html","classes":"tsd-kind-interface"},{"id":38,"kind":1024,"name":"name","url":"interfaces/istatsitem.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStatsItem"},{"id":39,"kind":1024,"name":"image","url":"interfaces/istatsitem.html#image","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStatsItem"},{"id":40,"kind":1024,"name":"value","url":"interfaces/istatsitem.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStatsItem"},{"id":41,"kind":256,"name":"IStats","url":"interfaces/istats.html","classes":"tsd-kind-interface"},{"id":42,"kind":1024,"name":"base","url":"interfaces/istats.html#base","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStats"},{"id":43,"kind":1024,"name":"level100","url":"interfaces/istats.html#level100","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStats"},{"id":44,"kind":1024,"name":"level120","url":"interfaces/istats.html#level120","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStats"},{"id":45,"kind":1024,"name":"retrofit100","url":"interfaces/istats.html#retrofit100","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStats"},{"id":46,"kind":1024,"name":"retrofit120","url":"interfaces/istats.html#retrofit120","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IStats"},{"id":47,"kind":256,"name":"IMiscellaneousInfo","url":"interfaces/imiscellaneousinfo.html","classes":"tsd-kind-interface"},{"id":48,"kind":1024,"name":"link","url":"interfaces/imiscellaneousinfo.html#link","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneousInfo"},{"id":49,"kind":1024,"name":"name","url":"interfaces/imiscellaneousinfo.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneousInfo"},{"id":50,"kind":256,"name":"IMiscellaneous","url":"interfaces/imiscellaneous.html","classes":"tsd-kind-interface"},{"id":51,"kind":1024,"name":"artist","url":"interfaces/imiscellaneous.html#artist","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneous"},{"id":52,"kind":1024,"name":"web","url":"interfaces/imiscellaneous.html#web","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneous"},{"id":53,"kind":1024,"name":"pixiv","url":"interfaces/imiscellaneous.html#pixiv","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneous"},{"id":54,"kind":1024,"name":"twitter","url":"interfaces/imiscellaneous.html#twitter","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneous"},{"id":55,"kind":1024,"name":"voiceActress","url":"interfaces/imiscellaneous.html#voiceactress","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IMiscellaneous"},{"id":56,"kind":256,"name":"IShip","url":"interfaces/iship.html","classes":"tsd-kind-interface"},{"id":57,"kind":1024,"name":"wikiUrl","url":"interfaces/iship.html#wikiurl","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":58,"kind":1024,"name":"id","url":"interfaces/iship.html#id","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":59,"kind":1024,"name":"names","url":"interfaces/iship.html#names","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":60,"kind":1024,"name":"thumbnail","url":"interfaces/iship.html#thumbnail","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":61,"kind":1024,"name":"skins","url":"interfaces/iship.html#skins","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":62,"kind":1024,"name":"buildTime","url":"interfaces/iship.html#buildtime","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":63,"kind":1024,"name":"rarity","url":"interfaces/iship.html#rarity","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":64,"kind":1024,"name":"stars","url":"interfaces/iship.html#stars","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":65,"kind":1024,"name":"class","url":"interfaces/iship.html#class","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":66,"kind":1024,"name":"nationality","url":"interfaces/iship.html#nationality","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":67,"kind":1024,"name":"nationalityShort","url":"interfaces/iship.html#nationalityshort","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":68,"kind":1024,"name":"hullType","url":"interfaces/iship.html#hulltype","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":69,"kind":1024,"name":"stats","url":"interfaces/iship.html#stats","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":70,"kind":1024,"name":"miscellaneous","url":"interfaces/iship.html#miscellaneous","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShip"},{"id":71,"kind":256,"name":"IShipResponse","url":"interfaces/ishipresponse.html","classes":"tsd-kind-interface"},{"id":72,"kind":1024,"name":"ship","url":"interfaces/ishipresponse.html#ship","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IShipResponse"},{"id":73,"kind":1024,"name":"statusCode","url":"interfaces/ishipresponse.html#statuscode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IShipResponse"},{"id":74,"kind":1024,"name":"statusMessage","url":"interfaces/ishipresponse.html#statusmessage","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IShipResponse"},{"id":75,"kind":1024,"name":"message","url":"interfaces/ishipresponse.html#message","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"IShipResponse"},{"id":76,"kind":256,"name":"IBaseShip","url":"interfaces/ibaseship.html","classes":"tsd-kind-interface"},{"id":77,"kind":1024,"name":"id","url":"interfaces/ibaseship.html#id","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBaseShip"},{"id":78,"kind":1024,"name":"name","url":"interfaces/ibaseship.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IBaseShip"},{"id":79,"kind":256,"name":"IOptions","url":"interfaces/ioptions.html","classes":"tsd-kind-interface"},{"id":80,"kind":1024,"name":"userAgent","url":"interfaces/ioptions.html#useragent","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IOptions"},{"id":81,"kind":4,"name":"Category","url":"enums/category.html","classes":"tsd-kind-enum"},{"id":82,"kind":16,"name":"RARITY","url":"enums/category.html#rarity","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Category"},{"id":83,"kind":16,"name":"TYPE","url":"enums/category.html#type","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Category"},{"id":84,"kind":16,"name":"AFFILIATION","url":"enums/category.html#affiliation","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"Category"},{"id":85,"kind":128,"name":"AzurLane","url":"classes/azurlane.html","classes":"tsd-kind-class"},{"id":86,"kind":1024,"name":"options","url":"classes/azurlane.html#options","classes":"tsd-kind-property tsd-parent-kind-class","parent":"AzurLane"},{"id":87,"kind":512,"name":"constructor","url":"classes/azurlane.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"AzurLane"},{"id":88,"kind":2048,"name":"getShipByName","url":"classes/azurlane.html#getshipbyname","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":89,"kind":2048,"name":"getShipById","url":"classes/azurlane.html#getshipbyid","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":90,"kind":2048,"name":"getShips","url":"classes/azurlane.html#getships","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":91,"kind":2048,"name":"getShipsWithRarity","url":"classes/azurlane.html#getshipswithrarity","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":92,"kind":2048,"name":"getShipsWithType","url":"classes/azurlane.html#getshipswithtype","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":93,"kind":2048,"name":"getShipsWithAffiliation","url":"classes/azurlane.html#getshipswithaffiliation","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"},{"id":94,"kind":2048,"name":"getBuildInfo","url":"classes/azurlane.html#getbuildinfo","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AzurLane"}]}; |
@@ -86,2 +86,3 @@ /// <reference types="node" /> | ||
export interface IOptions { | ||
token: string; | ||
userAgent?: string; | ||
@@ -104,3 +105,3 @@ } | ||
*/ | ||
constructor(options?: IOptions); | ||
constructor(options: IOptions); | ||
/** | ||
@@ -107,0 +108,0 @@ * @since 0.0.1 |
@@ -59,6 +59,7 @@ 'use strict'; | ||
this.baseUrl = "https://azurlane-api.herokuapp.com/v2"; | ||
this.options = options ? options : {}; | ||
this.options.userAgent = (options && options.userAgent) ? options.userAgent : `AzurLane/v1.5.0 (https://www.npmjs.com/package/azurlane)`; | ||
this.options = options; | ||
this.options.userAgent = options.userAgent ? options.userAgent : "AzurLane/v1.6.0 (https://www.npmjs.com/package/azurlane)"; | ||
this._axiosOptions = { | ||
headers: { | ||
"Authorization": this.options.token, | ||
"User-Agent": this.options.userAgent | ||
@@ -65,0 +66,0 @@ } |
{ | ||
"name": "azurlane", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Api wrapper for the azur lane api", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
@@ -32,3 +32,3 @@ <div align="center"> | ||
```js | ||
const { AzurLane, Order } = require("azurlane"); | ||
const { AzurLane, Category } = require("azurlane"); | ||
const azurlane = new AzurLane(); | ||
@@ -42,3 +42,3 @@ | ||
// Get an array of ships with rarity "Super Rare" | ||
const ships = await azurlane.getShips(Order.RARITY, "Super Rare"); | ||
const ships = await azurlane.getShips(Category.RARITY, "Super Rare"); | ||
for (let i = 0; i < ships.length; i++) { | ||
@@ -50,3 +50,3 @@ console.log(`[${ships[i].id}] = ${ships[i].name}`); // [036] = San Diego | ||
// Also catches any api errors that might occur like 400, 429, 500 http errors | ||
// Api errors extend the default error class, have a look at https://kurozeropb.github.io/AzurLane/classes/apierror.html for information | ||
// Api errors extend the default error class, have a look at https://azurlane-api.github.io/AzurLane/classes/apierror.html for information | ||
main().catch(console.error); | ||
@@ -56,4 +56,4 @@ ``` | ||
## Docs | ||
- Module Docs: https://kurozeropb.github.io/AzurLane/ | ||
- Api Docs: https://kurozeropb.github.io/al-api/ | ||
- Module Docs: https://azurlane-api.github.io/AzurLane/ | ||
- Api Docs: https://azurlane-api.github.io/azurlane-api/ | ||
@@ -63,2 +63,2 @@ I recommend looking at the api docs to see what data is returned before spamming the api with useless requests only to see what it actually returns. | ||
## Support | ||
![discord](https://discordapp.com/api/v6/guilds/240059867744698368/widget.png?style=banner2) | ||
![discord](https://discordapp.com/api/v6/guilds/240059867744698368/widget.png?style=banner2) |
@@ -9,2 +9,3 @@ import axios, { AxiosRequestConfig } from "axios"; | ||
export interface IOptions { | ||
token: string; | ||
userAgent?: string; | ||
@@ -30,8 +31,9 @@ } | ||
*/ | ||
public constructor(options?: IOptions) { | ||
this.options = options ? options : {}; | ||
this.options.userAgent = (options && options.userAgent) ? options.userAgent : `AzurLane/v1.5.0 (https://www.npmjs.com/package/azurlane)`; | ||
public constructor(options: IOptions) { | ||
this.options = options; | ||
this.options.userAgent = options.userAgent ? options.userAgent : "AzurLane/v1.6.0 (https://www.npmjs.com/package/azurlane)"; | ||
this._axiosOptions = { | ||
headers: { | ||
"Authorization": this.options.token, | ||
"User-Agent": this.options.userAgent | ||
@@ -38,0 +40,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
648870
3189
60