diff --git a/CHANGES.md b/CHANGES.md index b2465dd..bbdcc1c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,8 @@ +## 0.1.8 ## + +* Improve errors +* Add support for immediate requests + ## 0.1.7 ## * Bug fixes diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index dbdfb47..fd30ae6 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -1 +1 @@ -var typedoc = typedoc || {};typedoc.search = typedoc.search || {};typedoc.search.data = {"kinds":{"4":"Enumeration","16":"Enumeration member","32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","262144":"Accessor"},"rows":[{"id":0,"kind":4,"name":"WorldAssemblyCouncil","url":"enums/worldassemblycouncil.html","classes":"tsd-kind-enum"},{"id":1,"kind":16,"name":"GeneralAssembly","url":"enums/worldassemblycouncil.html#generalassembly","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"WorldAssemblyCouncil"},{"id":2,"kind":16,"name":"SecurityCouncil","url":"enums/worldassemblycouncil.html#securitycouncil","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"WorldAssemblyCouncil"},{"id":3,"kind":4,"name":"TelegramType","url":"enums/telegramtype.html","classes":"tsd-kind-enum"},{"id":4,"kind":16,"name":"Recruitment","url":"enums/telegramtype.html#recruitment","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"TelegramType"},{"id":5,"kind":16,"name":"NonRecruitment","url":"enums/telegramtype.html#nonrecruitment","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"TelegramType"},{"id":6,"kind":256,"name":"PrivateShardsAuth","url":"interfaces/privateshardsauth.html","classes":"tsd-kind-interface"},{"id":7,"kind":1024,"name":"password","url":"interfaces/privateshardsauth.html#password","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PrivateShardsAuth"},{"id":8,"kind":1024,"name":"pin","url":"interfaces/privateshardsauth.html#pin","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PrivateShardsAuth"},{"id":9,"kind":1024,"name":"updatePin","url":"interfaces/privateshardsauth.html#updatepin","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PrivateShardsAuth"},{"id":10,"kind":1024,"name":"autologin","url":"interfaces/privateshardsauth.html#autologin","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PrivateShardsAuth"},{"id":11,"kind":1024,"name":"updateAutologin","url":"interfaces/privateshardsauth.html#updateautologin","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PrivateShardsAuth"},{"id":12,"kind":256,"name":"Cache","url":"interfaces/cache.html","classes":"tsd-kind-interface tsd-is-not-exported"},{"id":13,"kind":256,"name":"ApiRequest","url":"interfaces/apirequest.html","classes":"tsd-kind-interface tsd-is-not-exported"},{"id":14,"kind":1024,"name":"tg","url":"interfaces/apirequest.html#tg","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"ApiRequest"},{"id":15,"kind":1024,"name":"func","url":"interfaces/apirequest.html#func","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"ApiRequest"},{"id":16,"kind":65536,"name":"__type","url":"interfaces/apirequest.html#func.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"ApiRequest.func"},{"id":17,"kind":1024,"name":"reject","url":"interfaces/apirequest.html#reject","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"ApiRequest"},{"id":18,"kind":65536,"name":"__type","url":"interfaces/apirequest.html#reject.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"ApiRequest.reject"},{"id":19,"kind":128,"name":"NsApi","url":"classes/nsapi.html","classes":"tsd-kind-class"},{"id":20,"kind":1024,"name":"_userAgent","url":"classes/nsapi.html#_useragent","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":21,"kind":1024,"name":"_delay","url":"classes/nsapi.html#_delay","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":22,"kind":1024,"name":"_apiDelayMillis","url":"classes/nsapi.html#_apidelaymillis","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":23,"kind":1024,"name":"_recruitTgDelayMillis","url":"classes/nsapi.html#_recruittgdelaymillis","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":24,"kind":1024,"name":"_nonRecruitTgDelayMillis","url":"classes/nsapi.html#_nonrecruittgdelaymillis","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":25,"kind":1024,"name":"_reqQueue","url":"classes/nsapi.html#_reqqueue","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":26,"kind":1024,"name":"_reqInterval","url":"classes/nsapi.html#_reqinterval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":27,"kind":1024,"name":"_reqLast","url":"classes/nsapi.html#_reqlast","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":28,"kind":1024,"name":"_tgReqLast","url":"classes/nsapi.html#_tgreqlast","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":29,"kind":1024,"name":"_reqInProgress","url":"classes/nsapi.html#_reqinprogress","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":30,"kind":1024,"name":"_reqCache","url":"classes/nsapi.html#_reqcache","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":31,"kind":1024,"name":"_reqCacheEnabled","url":"classes/nsapi.html#_reqcacheenabled","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":32,"kind":1024,"name":"_reqCacheValiditySecs","url":"classes/nsapi.html#_reqcachevaliditysecs","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":33,"kind":1024,"name":"_blockExistingRequests","url":"classes/nsapi.html#_blockexistingrequests","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":34,"kind":1024,"name":"_blockNewRequests","url":"classes/nsapi.html#_blocknewrequests","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":35,"kind":1024,"name":"_cleanup","url":"classes/nsapi.html#_cleanup","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":36,"kind":512,"name":"constructor","url":"classes/nsapi.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"NsApi"},{"id":37,"kind":262144,"name":"userAgent","url":"classes/nsapi.html#useragent","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":38,"kind":262144,"name":"delay","url":"classes/nsapi.html#delay","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":39,"kind":262144,"name":"apiDelayMillis","url":"classes/nsapi.html#apidelaymillis","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":40,"kind":262144,"name":"nonRecruitTgDelayMillis","url":"classes/nsapi.html#nonrecruittgdelaymillis","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":41,"kind":262144,"name":"recruitTgDelayMillis","url":"classes/nsapi.html#recruittgdelaymillis","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":42,"kind":262144,"name":"blockExistingRequests","url":"classes/nsapi.html#blockexistingrequests","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":43,"kind":262144,"name":"blockNewRequests","url":"classes/nsapi.html#blocknewrequests","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":44,"kind":262144,"name":"reqInProgress","url":"classes/nsapi.html#reqinprogress","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"NsApi"},{"id":45,"kind":262144,"name":"reqQueued","url":"classes/nsapi.html#reqqueued","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"NsApi"},{"id":46,"kind":2048,"name":"clearQueue","url":"classes/nsapi.html#clearqueue","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":47,"kind":262144,"name":"requestCacheEnabled","url":"classes/nsapi.html#requestcacheenabled","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":48,"kind":262144,"name":"requestCacheValiditySecs","url":"classes/nsapi.html#requestcachevaliditysecs","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":49,"kind":2048,"name":"clearRequestCache","url":"classes/nsapi.html#clearrequestcache","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":50,"kind":2048,"name":"cleanup","url":"classes/nsapi.html#cleanup","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":51,"kind":2048,"name":"nationRequest","url":"classes/nsapi.html#nationrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":52,"kind":2048,"name":"regionRequest","url":"classes/nsapi.html#regionrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":53,"kind":2048,"name":"worldRequest","url":"classes/nsapi.html#worldrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":54,"kind":2048,"name":"worldAssemblyRequest","url":"classes/nsapi.html#worldassemblyrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":55,"kind":2048,"name":"telegramRequest","url":"classes/nsapi.html#telegramrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":56,"kind":2048,"name":"authenticateRequest","url":"classes/nsapi.html#authenticaterequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":57,"kind":2048,"name":"xmlRequest","url":"classes/nsapi.html#xmlrequest","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":58,"kind":2048,"name":"apiPath","url":"classes/nsapi.html#apipath","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":59,"kind":2048,"name":"apiRequest","url":"classes/nsapi.html#apirequest","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":60,"kind":2048,"name":"toId","url":"classes/nsapi.html#toid","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static","parent":"NsApi"},{"id":61,"kind":32,"name":"xmlParser","url":"globals.html#xmlparser","classes":"tsd-kind-variable tsd-is-not-exported"},{"id":62,"kind":32,"name":"VERSION","url":"globals.html#version","classes":"tsd-kind-variable"},{"id":63,"kind":32,"name":"API_VERSION","url":"globals.html#api_version","classes":"tsd-kind-variable"}]}; \ No newline at end of file +var typedoc = typedoc || {};typedoc.search = typedoc.search || {};typedoc.search.data = {"kinds":{"4":"Enumeration","16":"Enumeration member","32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","262144":"Accessor"},"rows":[{"id":0,"kind":4,"name":"WorldAssemblyCouncil","url":"enums/worldassemblycouncil.html","classes":"tsd-kind-enum"},{"id":1,"kind":16,"name":"GeneralAssembly","url":"enums/worldassemblycouncil.html#generalassembly","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"WorldAssemblyCouncil"},{"id":2,"kind":16,"name":"SecurityCouncil","url":"enums/worldassemblycouncil.html#securitycouncil","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"WorldAssemblyCouncil"},{"id":3,"kind":4,"name":"TelegramType","url":"enums/telegramtype.html","classes":"tsd-kind-enum"},{"id":4,"kind":16,"name":"Recruitment","url":"enums/telegramtype.html#recruitment","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"TelegramType"},{"id":5,"kind":16,"name":"NonRecruitment","url":"enums/telegramtype.html#nonrecruitment","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"TelegramType"},{"id":6,"kind":256,"name":"PrivateShardsAuth","url":"interfaces/privateshardsauth.html","classes":"tsd-kind-interface"},{"id":7,"kind":1024,"name":"password","url":"interfaces/privateshardsauth.html#password","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PrivateShardsAuth"},{"id":8,"kind":1024,"name":"pin","url":"interfaces/privateshardsauth.html#pin","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PrivateShardsAuth"},{"id":9,"kind":1024,"name":"updatePin","url":"interfaces/privateshardsauth.html#updatepin","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PrivateShardsAuth"},{"id":10,"kind":1024,"name":"autologin","url":"interfaces/privateshardsauth.html#autologin","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PrivateShardsAuth"},{"id":11,"kind":1024,"name":"updateAutologin","url":"interfaces/privateshardsauth.html#updateautologin","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PrivateShardsAuth"},{"id":12,"kind":128,"name":"ApiError","url":"classes/apierror.html","classes":"tsd-kind-class"},{"id":13,"kind":1024,"name":"message","url":"classes/apierror.html#message","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ApiError"},{"id":14,"kind":1024,"name":"responseCode","url":"classes/apierror.html#responsecode","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ApiError"},{"id":15,"kind":1024,"name":"responseText","url":"classes/apierror.html#responsetext","classes":"tsd-kind-property tsd-parent-kind-class","parent":"ApiError"},{"id":16,"kind":512,"name":"constructor","url":"classes/apierror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ApiError"},{"id":17,"kind":1024,"name":"name","url":"classes/apierror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"ApiError"},{"id":18,"kind":1024,"name":"message","url":"classes/apierror.html#message-1","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"ApiError"},{"id":19,"kind":1024,"name":"stack","url":"classes/apierror.html#stack","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"ApiError"},{"id":20,"kind":1024,"name":"Error","url":"classes/apierror.html#error","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"ApiError"},{"id":21,"kind":256,"name":"Cache","url":"interfaces/cache.html","classes":"tsd-kind-interface tsd-is-not-exported"},{"id":22,"kind":256,"name":"ApiRequest","url":"interfaces/apirequest.html","classes":"tsd-kind-interface tsd-is-not-exported"},{"id":23,"kind":1024,"name":"tg","url":"interfaces/apirequest.html#tg","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"ApiRequest"},{"id":24,"kind":1024,"name":"func","url":"interfaces/apirequest.html#func","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"ApiRequest"},{"id":25,"kind":65536,"name":"__type","url":"interfaces/apirequest.html#func.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"ApiRequest.func"},{"id":26,"kind":1024,"name":"reject","url":"interfaces/apirequest.html#reject","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-not-exported","parent":"ApiRequest"},{"id":27,"kind":65536,"name":"__type","url":"interfaces/apirequest.html#reject.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"ApiRequest.reject"},{"id":28,"kind":128,"name":"NsApi","url":"classes/nsapi.html","classes":"tsd-kind-class"},{"id":29,"kind":1024,"name":"_userAgent","url":"classes/nsapi.html#_useragent","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":30,"kind":1024,"name":"_delay","url":"classes/nsapi.html#_delay","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":31,"kind":1024,"name":"_apiDelayMillis","url":"classes/nsapi.html#_apidelaymillis","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":32,"kind":1024,"name":"_recruitTgDelayMillis","url":"classes/nsapi.html#_recruittgdelaymillis","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":33,"kind":1024,"name":"_nonRecruitTgDelayMillis","url":"classes/nsapi.html#_nonrecruittgdelaymillis","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":34,"kind":1024,"name":"_reqQueue","url":"classes/nsapi.html#_reqqueue","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":35,"kind":1024,"name":"_reqInterval","url":"classes/nsapi.html#_reqinterval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":36,"kind":1024,"name":"_reqLast","url":"classes/nsapi.html#_reqlast","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":37,"kind":1024,"name":"_tgReqLast","url":"classes/nsapi.html#_tgreqlast","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":38,"kind":1024,"name":"_reqInProgress","url":"classes/nsapi.html#_reqinprogress","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":39,"kind":1024,"name":"_reqCache","url":"classes/nsapi.html#_reqcache","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":40,"kind":1024,"name":"_reqCacheEnabled","url":"classes/nsapi.html#_reqcacheenabled","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":41,"kind":1024,"name":"_reqCacheValiditySecs","url":"classes/nsapi.html#_reqcachevaliditysecs","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":42,"kind":1024,"name":"_blockExistingRequests","url":"classes/nsapi.html#_blockexistingrequests","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":43,"kind":1024,"name":"_blockNewRequests","url":"classes/nsapi.html#_blocknewrequests","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":44,"kind":1024,"name":"_cleanup","url":"classes/nsapi.html#_cleanup","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":45,"kind":512,"name":"constructor","url":"classes/nsapi.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"NsApi"},{"id":46,"kind":262144,"name":"userAgent","url":"classes/nsapi.html#useragent","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":47,"kind":262144,"name":"delay","url":"classes/nsapi.html#delay","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":48,"kind":262144,"name":"apiDelayMillis","url":"classes/nsapi.html#apidelaymillis","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":49,"kind":262144,"name":"nonRecruitTgDelayMillis","url":"classes/nsapi.html#nonrecruittgdelaymillis","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":50,"kind":262144,"name":"recruitTgDelayMillis","url":"classes/nsapi.html#recruittgdelaymillis","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":51,"kind":262144,"name":"blockExistingRequests","url":"classes/nsapi.html#blockexistingrequests","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":52,"kind":262144,"name":"blockNewRequests","url":"classes/nsapi.html#blocknewrequests","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":53,"kind":262144,"name":"reqInProgress","url":"classes/nsapi.html#reqinprogress","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"NsApi"},{"id":54,"kind":262144,"name":"reqQueued","url":"classes/nsapi.html#reqqueued","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"NsApi"},{"id":55,"kind":2048,"name":"clearQueue","url":"classes/nsapi.html#clearqueue","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":56,"kind":262144,"name":"requestCacheEnabled","url":"classes/nsapi.html#requestcacheenabled","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":57,"kind":262144,"name":"requestCacheValiditySecs","url":"classes/nsapi.html#requestcachevaliditysecs","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"NsApi"},{"id":58,"kind":2048,"name":"clearRequestCache","url":"classes/nsapi.html#clearrequestcache","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":59,"kind":2048,"name":"cleanup","url":"classes/nsapi.html#cleanup","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":60,"kind":2048,"name":"nationRequest","url":"classes/nsapi.html#nationrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":61,"kind":2048,"name":"regionRequest","url":"classes/nsapi.html#regionrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":62,"kind":2048,"name":"worldRequest","url":"classes/nsapi.html#worldrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":63,"kind":2048,"name":"worldAssemblyRequest","url":"classes/nsapi.html#worldassemblyrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":64,"kind":2048,"name":"telegramRequest","url":"classes/nsapi.html#telegramrequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":65,"kind":2048,"name":"authenticateRequest","url":"classes/nsapi.html#authenticaterequest","classes":"tsd-kind-method tsd-parent-kind-class","parent":"NsApi"},{"id":66,"kind":2048,"name":"xmlRequest","url":"classes/nsapi.html#xmlrequest","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":67,"kind":2048,"name":"apiPath","url":"classes/nsapi.html#apipath","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":68,"kind":2048,"name":"apiRequest","url":"classes/nsapi.html#apirequest","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"NsApi"},{"id":69,"kind":2048,"name":"toId","url":"classes/nsapi.html#toid","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private tsd-is-static","parent":"NsApi"},{"id":70,"kind":32,"name":"xmlParser","url":"globals.html#xmlparser","classes":"tsd-kind-variable tsd-is-not-exported"},{"id":71,"kind":32,"name":"VERSION","url":"globals.html#version","classes":"tsd-kind-variable"},{"id":72,"kind":32,"name":"API_VERSION","url":"globals.html#api_version","classes":"tsd-kind-variable"}]}; \ No newline at end of file diff --git a/docs/classes/apierror.html b/docs/classes/apierror.html new file mode 100644 index 0000000..3de5a51 --- /dev/null +++ b/docs/classes/apierror.html @@ -0,0 +1,399 @@ + + + + + + ApiError | nsapi + + + + + +
+
+
+
+ +
+
+ Options +
+
+ All +
    +
  • Public
  • +
  • Public/Protected
  • +
  • All
  • +
+
+ + + + + + +
+
+ Menu +
+
+
+
+
+
+ +

Class ApiError

+
+
+
+
+
+
+
+
+
+

Error thrown during API requests.

+
+
+
+
+

Hierarchy

+
    +
  • + Error +
      +
    • + ApiError +
    • +
    +
  • +
+
+
+

Index

+
+
+
+

Constructors

+ +
+
+

Properties

+ +
+
+
+
+
+

Constructors

+
+ +

constructor

+
    +
  • new ApiError(message: string, responseCode?: number, responseText?: string): ApiError
  • +
+
    +
  • + +
    +
    +

    Initializes a new instance of the ApiError class.

    +
    +
    +

    Parameters

    +
      +
    • +
      message: string
      +
      +
      +

      The message associated with the error.

      +
      +
      +
    • +
    • +
      Optional responseCode: number
      +
      +
      +

      The HTTP response code returned by the API.

      +
      +
      +
    • +
    • +
      Optional responseText: string
      +
      +
      +

      The HTTP response text returned by the API.

      +
      +
      +
    • +
    +

    Returns ApiError

    +
  • +
+
+
+
+

Properties

+
+ +

message

+
message: string
+ +
+
+

The message associated with the error.

+
+
+
+
+ +

Optional responseCode

+
responseCode: number
+ +
+
+

The HTTP response code returned by the API.

+
+
+
+
+ +

Optional responseText

+
responseText: string
+ +
+
+

The HTTP response text returned by the API.

+
+
+
+
+ +

Static Error

+
Error: ErrorConstructor
+ +
+
+ +

Static message

+
message: string
+ +
+
+ +

Static name

+
name: string
+ +
+
+ +

Static Optional stack

+
stack: string
+ +
+
+
+ +
+
+ +
+

Generated using TypeDoc

+
+
+ + + + \ No newline at end of file diff --git a/docs/classes/nsapi.html b/docs/classes/nsapi.html index 461305e..f6fe379 100644 --- a/docs/classes/nsapi.html +++ b/docs/classes/nsapi.html @@ -155,13 +155,13 @@

Constructors

constructor

Returns NsApi

@@ -249,7 +268,7 @@

Private _apiDelayMill
_apiDelayMillis: number
@@ -259,7 +278,7 @@

Private _blockExisting_blockExistingRequests: boolean @@ -269,7 +288,7 @@

Private _blockNewRequ
_blockNewRequests: boolean
@@ -279,7 +298,7 @@

Private _cleanup

_cleanup: boolean
@@ -289,7 +308,7 @@

Private _delay

_delay: boolean
@@ -299,7 +318,7 @@

Private _nonRecruitTg
_nonRecruitTgDelayMillis: number
@@ -309,7 +328,7 @@

Private _recruitTgDelay_recruitTgDelayMillis: number @@ -319,7 +338,7 @@

Private _reqCache

_reqCache: Cache
@@ -329,7 +348,7 @@

Private _reqCacheEnab
_reqCacheEnabled: boolean
@@ -339,7 +358,7 @@

Private _reqCacheVali
_reqCacheValiditySecs: number
@@ -349,7 +368,7 @@

Private _reqInProgress

_reqInProgress: boolean @@ -359,7 +378,7 @@

Private _reqInterval

_reqInterval: any
@@ -369,7 +388,7 @@

Private _reqLast

_reqLast: number
@@ -379,7 +398,7 @@

Private _reqQueue

_reqQueue: ApiRequest[]
@@ -389,7 +408,7 @@

Private _tgReqLast_tgReqLast: number @@ -399,7 +418,7 @@

Private _userAgent

_userAgent: string
@@ -417,7 +436,7 @@

apiDelayMillis

  • @@ -430,7 +449,7 @@

    Returns number
    @@ -459,7 +478,7 @@

    blockExistingRequests

  • @@ -473,7 +492,7 @@

    Returns boolean
    @@ -503,7 +522,7 @@

    blockNewRequests

  • @@ -517,7 +536,7 @@

    Returns boolean
    @@ -547,7 +566,7 @@

    delay

  • @@ -561,7 +580,7 @@

    Returns boolean
    @@ -591,7 +610,7 @@

    nonRecruitTgDelayMillis

  • @@ -604,7 +623,7 @@

    Returns number
    @@ -633,7 +652,7 @@

    recruitTgDelayMillis

  • @@ -646,7 +665,7 @@

    Returns number
    @@ -674,7 +693,7 @@

    reqInProgress

  • @@ -696,7 +715,7 @@

    reqQueued

  • @@ -719,7 +738,7 @@

    requestCacheEnabled

  • @@ -732,7 +751,7 @@

    Returns boolean
    @@ -761,7 +780,7 @@

    requestCacheValiditySecs

  • @@ -775,7 +794,7 @@

    Returns number
    @@ -805,7 +824,7 @@

    userAgent

  • @@ -818,7 +837,7 @@

    Returns string
    @@ -849,7 +868,7 @@

    Private apiPath

  • @@ -877,7 +896,7 @@

    Private apiRequest

  • @@ -922,7 +941,7 @@

    authenticateRequest

  • @@ -970,7 +989,7 @@

    cleanup

  • @@ -994,7 +1013,7 @@

    clearQueue

  • @@ -1016,7 +1035,7 @@

    clearRequestCache

  • @@ -1038,7 +1057,7 @@

    nationRequest

  • @@ -1101,7 +1120,7 @@

    regionRequest

  • @@ -1158,7 +1177,7 @@

    telegramRequest

  • @@ -1216,7 +1235,7 @@

    worldAssemblyRequest

  • @@ -1273,7 +1292,7 @@

    worldRequest

  • @@ -1324,7 +1343,7 @@

    Private xmlRequest

  • @@ -1381,7 +1400,7 @@

    Static
    @@ -1418,6 +1437,9 @@

    Returns string WorldAssemblyCouncil

  • +
  • + ApiError +
    • diff --git a/docs/enums/telegramtype.html b/docs/enums/telegramtype.html index 4c3119e..3b93356 100644 --- a/docs/enums/telegramtype.html +++ b/docs/enums/telegramtype.html @@ -149,6 +149,9 @@

      Recruitment

    • WorldAssemblyCouncil
    • +
    • + ApiError +
    • NsApi
    • diff --git a/docs/enums/worldassemblycouncil.html b/docs/enums/worldassemblycouncil.html index c9312fb..7d2bfe1 100644 --- a/docs/enums/worldassemblycouncil.html +++ b/docs/enums/worldassemblycouncil.html @@ -150,6 +150,9 @@

      SecurityCouncil

      +
    • + ApiError +
    • NsApi
    • diff --git a/docs/globals.html b/docs/globals.html index 943a69b..02e745f 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -77,6 +77,7 @@

      Enumerations

      Classes

      @@ -119,7 +120,7 @@

      API_VERSION

      VERSION

      -
      VERSION: string = "0.1.7"
      +
      VERSION: string = "0.1.8"