vkontakte-api
Advanced tools
Comparing version 1.13.0 to 1.15.0
@@ -5,2 +5,4 @@ # Changelog | ||
## [1.15.0](https://github.com/wolframdeus/vk-api/compare/v1.14.0...v1.15.0) (2020-11-05) | ||
## [1.13.0](https://github.com/wolframdeus/vk-api/compare/v1.11.5...v1.13.0) (2020-08-22) | ||
@@ -11,5 +13,33 @@ | ||
* **users:** add users.search method ([cbafaf5](https://github.com/wolframdeus/vk-api/commit/cbafaf5c524cf29345b2b6a4bbb74649b02d2e00)) | ||
## [1.14.0](https://github.com/wolframdeus/vk-api/compare/v1.11.5...v1.14.0) (2020-11-05) | ||
### Features | ||
* **statevents:** add addMiniApps method ([0cf9801](https://github.com/wolframdeus/vk-api/commit/0cf980140999377a5245f1ee8dac146f36485b68)) | ||
* **users:** add new methods ([8469c13](https://github.com/wolframdeus/vk-api/commit/8469c139a41f56eafe13fc45a1613211a28ed4e4)) | ||
<<<<<<< HEAD | ||
### Bug Fixes | ||
* **gulp:** исправить баг сборки проекта ([1b6dfce](https://github.com/wolframdeus/vk-api/commit/1b6dfce0cdcd1f22fc98ab89b6e1b62bfa6affee)) | ||
## [1.13.0](https://github.com/wolframdeus/vk-api/compare/v1.11.5...v1.13.0) (2020-11-05) | ||
### Features | ||
* **statevents:** add addMiniApps method ([0cf9801](https://github.com/wolframdeus/vk-api/commit/0cf980140999377a5245f1ee8dac146f36485b68)) | ||
* **users:** add new methods ([8469c13](https://github.com/wolframdeus/vk-api/commit/8469c139a41f56eafe13fc45a1613211a28ed4e4)) | ||
### Bug Fixes | ||
* **gulp:** исправить баг сборки проекта ([1b6dfce](https://github.com/wolframdeus/vk-api/commit/1b6dfce0cdcd1f22fc98ab89b6e1b62bfa6affee)) | ||
======= | ||
* **users:** add users.search method ([cbafaf5](https://github.com/wolframdeus/vk-api/commit/cbafaf5c524cf29345b2b6a4bbb74649b02d2e00)) | ||
>>>>>>> 0b8c677dd46c1fc4438496d601f29fc3d0a08eb8 | ||
@@ -16,0 +46,0 @@ ## [1.12.0](https://github.com/wolframdeus/vk-api/compare/v1.11.5...v1.12.0) (2020-08-22) |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var EventEmitter=function(){function e(){var e=this;this.listeners={},this.on=function(t,n){t in e.listeners||(e.listeners[t]=[]),e.listeners[t].push(n)},this.off=function(t,n){if(t in e.listeners){var i=e.listeners[t].indexOf(n);-1===i&&(e.listeners[t].splice(i,1),0===e.listeners[t].length&&delete e.listeners[t])}}}return e.prototype.emit=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];null===(t=this.listeners[e])||void 0===t||t.forEach(function(e){return e.apply(void 0,n)})},e}();exports.EventEmitter=EventEmitter; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EventEmitter=void 0;var EventEmitter=function(){function e(){var e=this;this.listeners={},this.on=function(t,i){t in e.listeners||(e.listeners[t]=[]),e.listeners[t].push(i)},this.off=function(t,i){if(t in e.listeners){var n=e.listeners[t].indexOf(i);-1===n&&(e.listeners[t].splice(n,1),0===e.listeners[t].length&&delete e.listeners[t])}}}return e.prototype.emit=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];null===(t=this.listeners[e])||void 0===t||t.forEach(function(e){return e.apply(void 0,i)})},e}();exports.EventEmitter=EventEmitter; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./EventEmitter")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./EventEmitter"),exports),__exportStar(require("./types"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./multithreading")),__export(require("./types")),__export(require("./VKAPI")),__export(require("./VKError")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,i){void 0===i&&(i=t),e[i]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./multithreading"),exports),__exportStar(require("./types"),exports),__exportStar(require("./VKAPI"),exports),__exportStar(require("./VKError"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./VKAPIProvider")),__export(require("./VKAPIConsumer")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,i){void 0===i&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,i){void 0===i&&(i=t),e[i]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./VKAPIProvider"),exports),__exportStar(require("./VKAPIConsumer"),exports),__exportStar(require("./types"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";function isNonNullObject(e){return"object"==typeof e&&null!==e}function extendsVKAPIMessage(e){return isNonNullObject(e)&&"string"==typeof e.tunnelName&&"number"==typeof e.processId&&"string"==typeof e.requestId&&!0===e.isVKAPIMessage}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isNonNullObject=isNonNullObject,exports.extendsVKAPIMessage=extendsVKAPIMessage; | ||
"use strict";function isNonNullObject(e){return"object"==typeof e&&null!==e}function extendsVKAPIMessage(e){return isNonNullObject(e)&&"string"==typeof e.tunnelName&&"number"==typeof e.processId&&"string"==typeof e.requestId&&!0===e.isVKAPIMessage}Object.defineProperty(exports,"__esModule",{value:!0}),exports.extendsVKAPIMessage=exports.isNonNullObject=void 0,exports.isNonNullObject=isNonNullObject,exports.extendsVKAPIMessage=extendsVKAPIMessage; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./utils")),__export(require("./VKAPIConsumer")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./utils"),exports),__exportStar(require("./types"),exports),__exportStar(require("./VKAPIConsumer"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var utils_1=require("../utils");function isVKAPIRequestProcessedMessage(e){return utils_1.extendsVKAPIMessage(e)&&"request-processed"===e.type&&(void 0!==e.error||null===e.error)&&"data"in e}exports.isVKAPIRequestProcessedMessage=isVKAPIRequestProcessedMessage; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isVKAPIRequestProcessedMessage=void 0;var utils_1=require("../utils");function isVKAPIRequestProcessedMessage(e){return utils_1.extendsVKAPIMessage(e)&&"request-processed"===e.type&&(void 0!==e.error||null===e.error)&&"data"in e}exports.isVKAPIRequestProcessedMessage=isVKAPIRequestProcessedMessage; |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function o(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0});var utils_1=require("./utils"),VKAPICore_1=require("../../VKAPICore"),VKAPIConsumer=function(e){function r(r){void 0===r&&(r={});var t=e.call(this)||this;if(t.requestId="0",t.addRequestToQueue=function(e){if(!process.send)throw new Error('Unable to process VKAPI request from slave due to there is no "process.send" method available. It looks like it was created in main thread, but not in fork');var r=(parseInt(t.requestId)+1).toString(16),o=process.pid,s={tunnelName:t.tunnelName,processId:o,requestId:r,isVKAPIMessage:!0,type:"process-request",config:e};return process.send(s),t.requestId=r,new Promise(function(e,s){var n=function(u){if(utils_1.isVKAPIRequestProcessedMessage(u)&&u.tunnelName===t.tunnelName&&u.requestId===r&&u.processId===o){if(process.off("message",n),u.error)return s(u.error);e(u.data)}};process.on("message",n)})},!process.send)throw new Error('Unable to create VKAPIConsumer due to there is no "process.send" method available. It looks like it was created in main thread, but not in fork');var o=r.tunnelName,s=void 0===o?"":o;return t.tunnelName=s,t.init(t.addRequestToQueue),t}return __extends(r,e),r}(VKAPICore_1.VKAPICore);exports.VKAPIConsumer=VKAPIConsumer,exports.VKAPISlave=VKAPIConsumer; | ||
"use strict";var __extends=this&&this.__extends||function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])})(r,t)};return function(r,t){function o(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.VKAPISlave=exports.VKAPIConsumer=void 0;var utils_1=require("./utils"),VKAPICore_1=require("../../VKAPICore"),VKAPIConsumer=function(e){function r(r){void 0===r&&(r={});var t=e.call(this)||this;if(t.requestId="0",t.addRequestToQueue=function(e){if(!process.send)throw new Error('Unable to process VKAPI request from slave due to there is no "process.send" method available. It looks like it was created in main thread, but not in fork');var r=(parseInt(t.requestId)+1).toString(16),o=process.pid,s={tunnelName:t.tunnelName,processId:o,requestId:r,isVKAPIMessage:!0,type:"process-request",config:e};return process.send(s),t.requestId=r,new Promise(function(e,s){var n=function(u){if(utils_1.isVKAPIRequestProcessedMessage(u)&&u.tunnelName===t.tunnelName&&u.requestId===r&&u.processId===o){if(process.off("message",n),u.error)return s(u.error);e(u.data)}};process.on("message",n)})},!process.send)throw new Error('Unable to create VKAPIConsumer due to there is no "process.send" method available. It looks like it was created in main thread, but not in fork');var o=r.tunnelName,s=void 0===o?"":o;return t.tunnelName=s,t.init(t.addRequestToQueue),t}return __extends(r,e),r}(VKAPICore_1.VKAPICore);exports.VKAPIConsumer=VKAPIConsumer,exports.VKAPISlave=VKAPIConsumer; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./utils")),__export(require("./VKAPIProvider")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./types"),exports),__exportStar(require("./utils"),exports),__exportStar(require("./VKAPIProvider"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var utils_1=require("../utils");function isVKAPIProcessRequestMessage(e){return utils_1.extendsVKAPIMessage(e)&&"process-request"===e.type&&utils_1.isNonNullObject(e.config)&&"string"==typeof e.config.method&&utils_1.isNonNullObject(e.config.params)}exports.isVKAPIProcessRequestMessage=isVKAPIProcessRequestMessage; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isVKAPIProcessRequestMessage=void 0;var utils_1=require("../utils");function isVKAPIProcessRequestMessage(e){return utils_1.extendsVKAPIMessage(e)&&"process-request"===e.type&&utils_1.isNonNullObject(e.config)&&"string"==typeof e.config.method&&utils_1.isNonNullObject(e.config.params)}exports.isVKAPIProcessRequestMessage=isVKAPIProcessRequestMessage; |
@@ -1,1 +0,1 @@ | ||
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(s,o){function i(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}u((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var r,n,s,o,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(s=2&o[0]?n.return:o[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,o[1])).done)return s;switch(n=0,s&&(o=[2&o[0],s.value]),o[0]){case 0:case 1:s=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(6===o[0]&&i.label<s[1]){i.label=s[1],s=o;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(o);break}s[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],n=0}finally{r=s=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(exports,"__esModule",{value:!0});var utils_1=require("./utils"),VKAPIProvider=function(){function e(e){var t=e.instance,r=e.workers,n=e.tunnelName,s=void 0===n?"":n;this.instance=t,this.workers=r,this.tunnelName=s}return e.prototype.init=function(){var e=this;this.workers.forEach(function(t){t.on("message",function(r){return __awaiter(e,void 0,void 0,function(){var e,n,s,o,i,a,u;return __generator(this,function(c){switch(c.label){case 0:if(!utils_1.isVKAPIProcessRequestMessage(r)||this.tunnelName!==r.tunnelName)return[3,5];e=r.requestId,n=r.processId,s=r.config,o=null,i=null,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.instance.addRequestToQueue(s)];case 2:return i=c.sent(),[3,4];case 3:return a=c.sent(),o=a,[3,4];case 4:u={tunnelName:this.tunnelName,processId:n,requestId:e,isVKAPIMessage:!0,type:"request-processed",error:o,data:i},t.send(u),c.label=5;case 5:return[2]}})})})})},e}();exports.VKAPIProvider=VKAPIProvider,exports.VKAPIMaster=VKAPIProvider; | ||
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,s){function i(e){try{u(n.next(e))}catch(e){s(e)}}function a(e){try{u(n.throw(e))}catch(e){s(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}u((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var r,n,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.VKAPIMaster=exports.VKAPIProvider=void 0;var utils_1=require("./utils"),VKAPIProvider=function(){function e(e){var t=e.instance,r=e.workers,n=e.tunnelName,o=void 0===n?"":n;this.instance=t,this.workers=r,this.tunnelName=o}return e.prototype.init=function(){var e=this;this.workers.forEach(function(t){t.on("message",function(r){return __awaiter(e,void 0,void 0,function(){var e,n,o,s,i,a,u;return __generator(this,function(c){switch(c.label){case 0:if(!utils_1.isVKAPIProcessRequestMessage(r)||this.tunnelName!==r.tunnelName)return[3,5];e=r.requestId,n=r.processId,o=r.config,s=null,i=null,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.instance.addRequestToQueue(o)];case 2:return i=c.sent(),[3,4];case 3:return a=c.sent(),s=a,[3,4];case 4:u={tunnelName:this.tunnelName,processId:n,requestId:e,isVKAPIMessage:!0,type:"request-processed",error:s,data:i},t.send(u),c.label=5;case 5:return[2]}})})})})},e}();exports.VKAPIProvider=VKAPIProvider,exports.VKAPIMaster=VKAPIProvider; |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function s(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(r[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(r[s[n]]=t[s[n]])}return r};Object.defineProperty(exports,"__esModule",{value:!0});var Repository_1=require("../Repository"),utils_1=require("../../utils"),DatabaseRepository=function(t){function e(e){var r=t.call(this,"database",e)||this;return r.getChairs=r.r("getChairs"),r.getCities=r.r("getCities",function(t){var e=t.needAll,r=__rest(t,["needAll"]);return __assign(__assign({},r),{needAll:utils_1.formatOptionalBoolean(e)})}),r.getCitiesById=r.r("getCitiesById",function(t){var e=t.cityIds,r=__rest(t,["cityIds"]);return __assign(__assign({},r),{cityIds:utils_1.formatOptionalArray(e)})}),r.getCountries=r.r("getCountries",function(t){var e=t.code,r=t.needAll,s=__rest(t,["code","needAll"]);return __assign(__assign({},s),{needAll:utils_1.formatOptionalBoolean(r),code:utils_1.formatOptionalArray(e)})}),r.getCountriesById=r.r("getCountriesById",function(t){var e=t.countryIds,r=__rest(t,["countryIds"]);return __assign(__assign({},r),{countryIds:utils_1.formatOptionalArray(e)})}),r.getFaculties=r.r("getFaculties"),r.getMetroStations=r.r("getMetroStations",function(t){var e=t.extended,r=__rest(t,["extended"]);return __assign(__assign({},r),{extended:utils_1.formatOptionalBoolean(e)})}),r.getMetroStationsById=r.r("getMetroStationsById",function(t){var e=t.stationIds,r=__rest(t,["stationIds"]);return __assign(__assign({},r),{stationIds:utils_1.formatOptionalArray(e)})}),r.getRegions=r.r("getRegions"),r.getSchoolClasses=r.r("getSchoolClasses"),r.getSchools=r.r("getSchools"),r.getUniversities=r.r("getUniversities"),r}return __extends(e,t),e}(Repository_1.Repository);exports.DatabaseRepository=DatabaseRepository; | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function s(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(r[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(s=Object.getOwnPropertySymbols(t);o<s.length;o++)e.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(t,s[o])&&(r[s[o]]=t[s[o]])}return r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DatabaseRepository=void 0;var Repository_1=require("../Repository"),utils_1=require("../../utils"),DatabaseRepository=function(t){function e(e){var r=t.call(this,"database",e)||this;return r.getChairs=r.r("getChairs"),r.getCities=r.r("getCities",function(t){var e=t.needAll,r=__rest(t,["needAll"]);return __assign(__assign({},r),{needAll:utils_1.formatOptionalBoolean(e)})}),r.getCitiesById=r.r("getCitiesById",function(t){var e=t.cityIds,r=__rest(t,["cityIds"]);return __assign(__assign({},r),{cityIds:utils_1.formatOptionalArray(e)})}),r.getCountries=r.r("getCountries",function(t){var e=t.code,r=t.needAll,s=__rest(t,["code","needAll"]);return __assign(__assign({},s),{needAll:utils_1.formatOptionalBoolean(r),code:utils_1.formatOptionalArray(e)})}),r.getCountriesById=r.r("getCountriesById",function(t){var e=t.countryIds,r=__rest(t,["countryIds"]);return __assign(__assign({},r),{countryIds:utils_1.formatOptionalArray(e)})}),r.getFaculties=r.r("getFaculties"),r.getMetroStations=r.r("getMetroStations",function(t){var e=t.extended,r=__rest(t,["extended"]);return __assign(__assign({},r),{extended:utils_1.formatOptionalBoolean(e)})}),r.getMetroStationsById=r.r("getMetroStationsById",function(t){var e=t.stationIds,r=__rest(t,["stationIds"]);return __assign(__assign({},r),{stationIds:utils_1.formatOptionalArray(e)})}),r.getRegions=r.r("getRegions"),r.getSchoolClasses=r.r("getSchoolClasses"),r.getSchools=r.r("getSchools"),r.getUniversities=r.r("getUniversities"),r}return __extends(e,t),e}(Repository_1.Repository);exports.DatabaseRepository=DatabaseRepository; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./DatabaseRepository")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./DatabaseRepository"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./DatabaseRepository")),__export(require("./MessagesRepository")),__export(require("./NotificationsRepository")),__export(require("./StatEventsRepository")),__export(require("./StatsRepository")),__export(require("./StreamingRepository")),__export(require("./UsersRepository")),__export(require("./UtilsRepository")),__export(require("./WidgetsRepository")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,o){void 0===o&&(o=t),e[o]=r[t]}),__exportStar=this&&this.__exportStar||function(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||__createBinding(r,e,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./DatabaseRepository"),exports),__exportStar(require("./MessagesRepository"),exports),__exportStar(require("./NotificationsRepository"),exports),__exportStar(require("./StatEventsRepository"),exports),__exportStar(require("./StatsRepository"),exports),__exportStar(require("./StreamingRepository"),exports),__exportStar(require("./UsersRepository"),exports),__exportStar(require("./UtilsRepository"),exports),__exportStar(require("./WidgetsRepository"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./MessagesRepository")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./MessagesRepository"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(e[o[n]]=t[o[n]])}return e};Object.defineProperty(exports,"__esModule",{value:!0});var Repository_1=require("../Repository"),utils_1=require("../../utils"),MessagesRepository=function(t){function r(r){var e=t.call(this,"messages",r)||this;return e.send=e.r("send",function(t){var r=t.randomId,e=__rest(t,["randomId"]),o=void 0===r?Math.floor(1e7*Math.random()):r;return __assign(__assign({},e),"userIds"in e?{userIds:utils_1.formatOptionalArray(e.userIds),randomId:o}:{randomId:o})}),e}return __extends(r,t),r}(Repository_1.Repository);exports.MessagesRepository=MessagesRepository; | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])})(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var s in r=arguments[e])Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(t);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(e[o[s]]=t[o[s]])}return e};Object.defineProperty(exports,"__esModule",{value:!0}),exports.MessagesRepository=void 0;var Repository_1=require("../Repository"),utils_1=require("../../utils"),MessagesRepository=function(t){function r(r){var e=t.call(this,"messages",r)||this;return e.send=e.r("send",function(t){var r=t.randomId,e=__rest(t,["randomId"]),o=void 0===r?Math.floor(1e7*Math.random()):r;return __assign(__assign({},e),"userIds"in e?{userIds:utils_1.formatOptionalArray(e.userIds),randomId:o}:{randomId:o})}),e}return __extends(r,t),r}(Repository_1.Repository);exports.MessagesRepository=MessagesRepository; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./NotificationsRepository")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./NotificationsRepository"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(e[o[n]]=t[o[n]])}return e};Object.defineProperty(exports,"__esModule",{value:!0});var Repository_1=require("../Repository"),utils_1=require("../../utils"),NotificationsRepository=function(t){function r(r){var e=t.call(this,"notifications",r)||this;return e.markAsViewed=e.r("markAsViewed"),e.sendMessage=e.r("sendMessage",function(t){var r=t.userIds,e=__rest(t,["userIds"]);return __assign(__assign({},e),{userIds:utils_1.formatOptionalArray(r)})}),e}return __extends(r,t),r}(Repository_1.Repository);exports.NotificationsRepository=NotificationsRepository; | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])})(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var s in r=arguments[e])Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(t);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(e[o[s]]=t[o[s]])}return e};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NotificationsRepository=void 0;var Repository_1=require("../Repository"),utils_1=require("../../utils"),NotificationsRepository=function(t){function r(r){var e=t.call(this,"notifications",r)||this;return e.markAsViewed=e.r("markAsViewed"),e.sendMessage=e.r("sendMessage",function(t){var r=t.userIds,e=__rest(t,["userIds"]);return __assign(__assign({},e),{userIds:utils_1.formatOptionalArray(r)})}),e}return __extends(r,t),r}(Repository_1.Repository);exports.NotificationsRepository=NotificationsRepository; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Repository=function(){function e(e,t){this.sendRequest=function(r){var o=r.method,n=r.params;return t({method:e+"."+o,params:n})}}return e.prototype.r=function(e,t){var r=this;return function(o){return r.sendRequest({method:e,params:t?t(o):o})}},e}();exports.Repository=Repository; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Repository=void 0;var Repository=function(){function e(e,t){this.sendRequest=function(r){var o=r.method,s=r.params;return t({method:e+"."+o,params:s})}}return e.prototype.r=function(e,t){var r=this;return function(o){return r.sendRequest({method:e,params:t?t(o):o})}},e}();exports.Repository=Repository; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./StatEventsRepository")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./StatEventsRepository"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(e,o)};return function(e,o){function r(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}();Object.defineProperty(exports,"__esModule",{value:!0});var Repository_1=require("../Repository"),StatEventsRepository=function(t){function e(e){var o=t.call(this,"statEvents",e)||this;return o.addMiniAppsCustom=o.r("addMiniAppsCustom"),o.addMiniApps=o.r("addMiniApps"),o}return __extends(e,t),e}(Repository_1.Repository);exports.StatEventsRepository=StatEventsRepository; | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.StatEventsRepository=void 0;var Repository_1=require("../Repository"),StatEventsRepository=function(t){function e(e){var r=t.call(this,"statEvents",e)||this;return r.addMiniAppsCustom=r.r("addMiniAppsCustom",function(t){var e=t.events,r=__rest(t,["events"]),n=e.map(function(t){var e=t.json,r=t.timestamp,n=__rest(t,["json","timestamp"]);return __assign(__assign({},n),{json:"object"==typeof e?JSON.stringify(e):void 0,timestamp:"number"==typeof r?r:void 0===r?void 0:r.getTime()})});return __assign(__assign({},r),{events:n})}),r.addMiniApps=r.r("addMiniApps"),r}return __extends(e,t),e}(Repository_1.Repository);exports.StatEventsRepository=StatEventsRepository; |
/** | ||
* @see https://vk.com/dev/statEvents.addMiniAppsCustom | ||
*/ | ||
export interface AddMiniAppsCustomParams { | ||
export declare type AddMiniAppsCustomParams = { | ||
events: Array<{ | ||
event: string; | ||
userId: number; | ||
}>; | ||
} | ||
timezone?: string; | ||
miniAppId: number; | ||
url: string; | ||
vkPlatform: string; | ||
json?: Record<any, any>; | ||
timestamp?: Date | number; | ||
} & ({ | ||
typeNavgo: { | ||
type: 'type_mini_app_custom_event_item'; | ||
}; | ||
} | { | ||
typeView: { | ||
type: 'type_mini_app_custom_event_item'; | ||
}; | ||
} | { | ||
typeClick: { | ||
type: 'type_mini_app_custom_event_item'; | ||
}; | ||
})>; | ||
}; | ||
export declare type AddMiniAppsCustomResult = 1; | ||
@@ -11,0 +29,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./StatsRepository")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./StatsRepository"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var s in r=arguments[e])Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(t);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(e[o[s]]=t[o[s]])}return e};Object.defineProperty(exports,"__esModule",{value:!0});var Repository_1=require("../Repository"),utils_1=require("../../utils"),StatsRepository=function(t){function r(r){var e=t.call(this,"stats",r)||this;return e.get=e.r("get",function(t){var r=t.extended,e=t.filters,o=__rest(t,["extended","filters"]);return __assign(__assign({},o),{extended:utils_1.formatOptionalBoolean(r),filters:utils_1.formatOptionalArray(e)})}),e.getPostReach=e.r("getPostReach",function(t){var r=t.postIds,e=__rest(t,["postIds"]);return __assign(__assign({},e),{postIds:utils_1.formatOptionalArray(r)})}),e.trackVisitor=e.r("trackVisitor"),e}return __extends(r,t),r}(Repository_1.Repository);exports.StatsRepository=StatsRepository; | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])})(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var s in r=arguments[e])Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(t);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(e[o[s]]=t[o[s]])}return e};Object.defineProperty(exports,"__esModule",{value:!0}),exports.StatsRepository=void 0;var Repository_1=require("../Repository"),utils_1=require("../../utils"),StatsRepository=function(t){function r(r){var e=t.call(this,"stats",r)||this;return e.get=e.r("get",function(t){var r=t.extended,e=t.filters,o=__rest(t,["extended","filters"]);return __assign(__assign({},o),{extended:utils_1.formatOptionalBoolean(r),filters:utils_1.formatOptionalArray(e)})}),e.getPostReach=e.r("getPostReach",function(t){var r=t.postIds,e=__rest(t,["postIds"]);return __assign(__assign({},e),{postIds:utils_1.formatOptionalArray(r)})}),e.trackVisitor=e.r("trackVisitor"),e}return __extends(r,t),r}(Repository_1.Repository);exports.StatsRepository=StatsRepository; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./StreamingRepository")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./StreamingRepository"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0});var Repository_1=require("../Repository"),StreamingRepository=function(t){function e(e){var r=t.call(this,"streaming",e)||this;return r.getServerUrl=r.r("getServerUrl"),r.getSettings=r.r("getSettings"),r.getStats=r.r("getStats"),r.getStem=r.r("getStem"),r.setSettings=r.r("setSettings"),r}return __extends(e,t),e}(Repository_1.Repository);exports.StreamingRepository=StreamingRepository; | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.StreamingRepository=void 0;var Repository_1=require("../Repository"),StreamingRepository=function(t){function e(e){var r=t.call(this,"streaming",e)||this;return r.getServerUrl=r.r("getServerUrl"),r.getSettings=r.r("getSettings"),r.getStats=r.r("getStats"),r.getStem=r.r("getStem"),r.setSettings=r.r("setSettings"),r}return __extends(e,t),e}(Repository_1.Repository);exports.StreamingRepository=StreamingRepository; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./UsersRepository")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./UsersRepository"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var s in r=arguments[e])Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(t);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(e[o[s]]=t[o[s]])}return e};Object.defineProperty(exports,"__esModule",{value:!0});var Repository_1=require("../Repository"),utils_1=require("../../utils"),UsersRepository=function(t){function r(r){var e=t.call(this,"users",r)||this;return e.get=e.r("get",function(t){var r=t.userIds,e=t.fields,o=__rest(t,["userIds","fields"]);return __assign(__assign({},o),{userIds:utils_1.formatOptionalArray(r),fields:utils_1.formatOptionalArray(e)})}),e.getFollowers=e.r("getFollowers",function(t){var r=t.fields,e=__rest(t,["fields"]);return __assign(__assign({},e),{fields:utils_1.formatOptionalArray(r)})}),e.getSubscriptions=e.r("getSubscriptions",function(t){var r=t.fields,e=t.extended,o=__rest(t,["fields","extended"]);return __assign(__assign({},o),{extended:utils_1.formatOptionalBoolean(e),fields:utils_1.formatOptionalArray(r)})}),e.report=e.r("getSubscriptions"),e.search=e.r("search",function(t){var r=t.sort,e=t.online,o=t.hasPhoto,s=__rest(t,["sort","online","hasPhoto"]);return __assign({sort:void 0===r?void 0:"number"==typeof r?r:utils_1.toPseudoBoolean("popularity"===r),online:utils_1.formatOptionalBoolean(e),hasPhoto:utils_1.formatOptionalBoolean(o)},s)}),e}return __extends(r,t),r}(Repository_1.Repository);exports.UsersRepository=UsersRepository; | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])})(r,e)};return function(r,e){function o(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var s in r=arguments[e])Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(t);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(e[o[s]]=t[o[s]])}return e};Object.defineProperty(exports,"__esModule",{value:!0}),exports.UsersRepository=void 0;var Repository_1=require("../Repository"),utils_1=require("../../utils"),UsersRepository=function(t){function r(r){var e=t.call(this,"users",r)||this;return e.get=e.r("get",function(t){var r=t.userIds,e=t.fields,o=__rest(t,["userIds","fields"]);return __assign(__assign({},o),{userIds:utils_1.formatOptionalArray(r),fields:utils_1.formatOptionalArray(e)})}),e.getFollowers=e.r("getFollowers",function(t){var r=t.fields,e=__rest(t,["fields"]);return __assign(__assign({},e),{fields:utils_1.formatOptionalArray(r)})}),e.getSubscriptions=e.r("getSubscriptions",function(t){var r=t.fields,e=t.extended,o=__rest(t,["fields","extended"]);return __assign(__assign({},o),{extended:utils_1.formatOptionalBoolean(e),fields:utils_1.formatOptionalArray(r)})}),e.report=e.r("getSubscriptions"),e.search=e.r("search",function(t){var r=t.sort,e=t.online,o=t.hasPhoto,s=__rest(t,["sort","online","hasPhoto"]);return __assign({sort:void 0===r?void 0:"number"==typeof r?r:utils_1.toPseudoBoolean("popularity"===r),online:utils_1.formatOptionalBoolean(e),hasPhoto:utils_1.formatOptionalBoolean(o)},s)}),e}return __extends(r,t),r}(Repository_1.Repository);exports.UsersRepository=UsersRepository; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./UtilsRepository")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./UtilsRepository"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};Object.defineProperty(exports,"__esModule",{value:!0});var Repository_1=require("../Repository"),utils_1=require("../../utils"),UtilsRepository=function(t){function e(e){var r=t.call(this,"utils",e)||this;return r.checkLink=r.r("checkLink"),r.deleteFromLastShortened=r.r("deleteFromLastShortened"),r.getLastShortenedLinks=r.r("getLastShortenedLinks"),r.getLinkStats=r.r("getLinkStats",function(t){var e=t.extended,r=__rest(t,["extended"]);return __assign(__assign({},r),{extended:utils_1.formatOptionalBoolean(e)})}),r.getServerTime=r.r("getServerTime"),r.getShortLink=r.r("getShortLink",function(t){var e=t.private,r=__rest(t,["private"]);return __assign(__assign({},r),{private:utils_1.formatOptionalBoolean(e)})}),r.resolveScreenName=r.r("resolveScreenName"),r}return __extends(e,t),e}(Repository_1.Repository);exports.UtilsRepository=UtilsRepository; | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]])}return r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.UtilsRepository=void 0;var Repository_1=require("../Repository"),utils_1=require("../../utils"),UtilsRepository=function(t){function e(e){var r=t.call(this,"utils",e)||this;return r.checkLink=r.r("checkLink"),r.deleteFromLastShortened=r.r("deleteFromLastShortened"),r.getLastShortenedLinks=r.r("getLastShortenedLinks"),r.getLinkStats=r.r("getLinkStats",function(t){var e=t.extended,r=__rest(t,["extended"]);return __assign(__assign({},r),{extended:utils_1.formatOptionalBoolean(e)})}),r.getServerTime=r.r("getServerTime"),r.getShortLink=r.r("getShortLink",function(t){var e=t.private,r=__rest(t,["private"]);return __assign(__assign({},r),{private:utils_1.formatOptionalBoolean(e)})}),r.resolveScreenName=r.r("resolveScreenName"),r}return __extends(e,t),e}(Repository_1.Repository);exports.UtilsRepository=UtilsRepository; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./WidgetsRepository")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./WidgetsRepository"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]])}return r};Object.defineProperty(exports,"__esModule",{value:!0});var Repository_1=require("../Repository"),utils_1=require("../../utils"),WidgetsRepository=function(t){function e(e){var r=t.call(this,"widget",e)||this;return r.getComments=r.r("getComments",function(t){var e=t.fields,r=__rest(t,["fields"]);return __assign(__assign({},r),{fields:utils_1.formatOptionalArray(e)})}),r.getPages=r.r("getPages"),r}return __extends(e,t),e}(Repository_1.Repository);exports.WidgetsRepository=WidgetsRepository; | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(e,r)};return function(e,r){function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)},__rest=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]])}return r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.WidgetsRepository=void 0;var Repository_1=require("../Repository"),utils_1=require("../../utils"),WidgetsRepository=function(t){function e(e){var r=t.call(this,"widget",e)||this;return r.getComments=r.r("getComments",function(t){var e=t.fields,r=__rest(t,["fields"]);return __assign(__assign({},r),{fields:utils_1.formatOptionalArray(e)})}),r.getPages=r.r("getPages"),r}return __extends(e,t),e}(Repository_1.Repository);exports.WidgetsRepository=WidgetsRepository; |
@@ -1,1 +0,1 @@ | ||
"use strict";var EventAttachmentMemberStatusEnum;Object.defineProperty(exports,"__esModule",{value:!0}),function(t){t[t.SureJoin=0]="SureJoin",t[t.MaybeJoin=1]="MaybeJoin",t[t.NotJoin=2]="NotJoin"}(EventAttachmentMemberStatusEnum=exports.EventAttachmentMemberStatusEnum||(exports.EventAttachmentMemberStatusEnum={})); | ||
"use strict";var EventAttachmentMemberStatusEnum;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EventAttachmentMemberStatusEnum=void 0,function(t){t[t.SureJoin=0]="SureJoin",t[t.MaybeJoin=1]="MaybeJoin",t[t.NotJoin=2]="NotJoin"}(EventAttachmentMemberStatusEnum=exports.EventAttachmentMemberStatusEnum||(exports.EventAttachmentMemberStatusEnum={})); |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./objects")),__export(require("./attachments")),__export(require("./shared")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./objects"),exports),__exportStar(require("./attachments"),exports),__exportStar(require("./shared"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var AudioGenreEnum;Object.defineProperty(exports,"__esModule",{value:!0}),function(e){e[e.Rock=1]="Rock",e[e.Pop=2]="Pop",e[e.RapAndHipHop=3]="RapAndHipHop",e[e.EasyListening=4]="EasyListening",e[e.HouseAndDance=5]="HouseAndDance",e[e.Instrumental=6]="Instrumental",e[e.Metal=7]="Metal",e[e.Dubstep=8]="Dubstep",e[e.DrumAndBass=10]="DrumAndBass",e[e.Trance=11]="Trance",e[e.Chanson=12]="Chanson",e[e.Ethnic=13]="Ethnic",e[e.AcousticAndVocal=14]="AcousticAndVocal",e[e.Reggae=15]="Reggae",e[e.Classical=16]="Classical",e[e.IndiePop=17]="IndiePop",e[e.Other=18]="Other",e[e.Speech=19]="Speech",e[e.Alternative=21]="Alternative",e[e.ElectropopAndDisco=22]="ElectropopAndDisco",e[e.JazzAndBlues=1001]="JazzAndBlues"}(AudioGenreEnum=exports.AudioGenreEnum||(exports.AudioGenreEnum={})); | ||
"use strict";var AudioGenreEnum;Object.defineProperty(exports,"__esModule",{value:!0}),exports.AudioGenreEnum=void 0,function(e){e[e.Rock=1]="Rock",e[e.Pop=2]="Pop",e[e.RapAndHipHop=3]="RapAndHipHop",e[e.EasyListening=4]="EasyListening",e[e.HouseAndDance=5]="HouseAndDance",e[e.Instrumental=6]="Instrumental",e[e.Metal=7]="Metal",e[e.Dubstep=8]="Dubstep",e[e.DrumAndBass=10]="DrumAndBass",e[e.Trance=11]="Trance",e[e.Chanson=12]="Chanson",e[e.Ethnic=13]="Ethnic",e[e.AcousticAndVocal=14]="AcousticAndVocal",e[e.Reggae=15]="Reggae",e[e.Classical=16]="Classical",e[e.IndiePop=17]="IndiePop",e[e.Other=18]="Other",e[e.Speech=19]="Speech",e[e.Alternative=21]="Alternative",e[e.ElectropopAndDisco=22]="ElectropopAndDisco",e[e.JazzAndBlues=1001]="JazzAndBlues"}(AudioGenreEnum=exports.AudioGenreEnum||(exports.AudioGenreEnum={})); |
@@ -1,1 +0,1 @@ | ||
"use strict";var DocTypeEnum;Object.defineProperty(exports,"__esModule",{value:!0}),function(e){e[e.Text=1]="Text",e[e.Archive=2]="Archive",e[e.Gif=3]="Gif",e[e.Image=4]="Image",e[e.Audio=5]="Audio",e[e.Video=6]="Video",e[e.EBook=7]="EBook",e[e.Unknown=8]="Unknown"}(DocTypeEnum=exports.DocTypeEnum||(exports.DocTypeEnum={})); | ||
"use strict";var DocTypeEnum;Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocTypeEnum=void 0,function(e){e[e.Text=1]="Text",e[e.Archive=2]="Archive",e[e.Gif=3]="Gif",e[e.Image=4]="Image",e[e.Audio=5]="Audio",e[e.Video=6]="Video",e[e.EBook=7]="EBook",e[e.Unknown=8]="Unknown"}(DocTypeEnum=exports.DocTypeEnum||(exports.DocTypeEnum={})); |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./audio")),__export(require("./doc")),__export(require("./market-item")),__export(require("./page")),__export(require("./user")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(r,e,t,o){void 0===o&&(o=t),Object.defineProperty(r,o,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,o){void 0===o&&(o=t),r[o]=e[t]}),__exportStar=this&&this.__exportStar||function(r,e){for(var t in r)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||__createBinding(e,r,t)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./audio"),exports),__exportStar(require("./button"),exports),__exportStar(require("./doc"),exports),__exportStar(require("./link"),exports),__exportStar(require("./market-album"),exports),__exportStar(require("./market-item"),exports),__exportStar(require("./note"),exports),__exportStar(require("./page"),exports),__exportStar(require("./photo"),exports),__exportStar(require("./place"),exports),__exportStar(require("./poll"),exports),__exportStar(require("./post"),exports),__exportStar(require("./post-source"),exports),__exportStar(require("./shared"),exports),__exportStar(require("./sticker"),exports),__exportStar(require("./user"),exports),__exportStar(require("./video"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var MarketItemAvailabilityEnum;Object.defineProperty(exports,"__esModule",{value:!0}),function(e){e[e.Available=0]="Available",e[e.Deleted=1]="Deleted",e[e.Unavailable=2]="Unavailable"}(MarketItemAvailabilityEnum=exports.MarketItemAvailabilityEnum||(exports.MarketItemAvailabilityEnum={})); | ||
"use strict";var MarketItemAvailabilityEnum;Object.defineProperty(exports,"__esModule",{value:!0}),exports.MarketItemAvailabilityEnum=void 0,function(e){e[e.Available=0]="Available",e[e.Deleted=1]="Deleted",e[e.Unavailable=2]="Unavailable"}(MarketItemAvailabilityEnum=exports.MarketItemAvailabilityEnum||(exports.MarketItemAvailabilityEnum={})); |
@@ -1,1 +0,1 @@ | ||
"use strict";var PageAccessEnum;Object.defineProperty(exports,"__esModule",{value:!0}),function(e){e[e.Admins=0]="Admins",e[e.Participants=1]="Participants",e[e.Everybody=2]="Everybody"}(PageAccessEnum=exports.PageAccessEnum||(exports.PageAccessEnum={})); | ||
"use strict";var PageAccessEnum;Object.defineProperty(exports,"__esModule",{value:!0}),exports.PageAccessEnum=void 0,function(e){e[e.Admins=0]="Admins",e[e.Participants=1]="Participants",e[e.Everybody=2]="Everybody"}(PageAccessEnum=exports.PageAccessEnum||(exports.PageAccessEnum={})); |
@@ -136,3 +136,3 @@ import { PseudoBooleanType } from '../shared'; | ||
deactivated: 'deleted' | 'banned'; | ||
} | ({ | ||
} | { | ||
about?: string; | ||
@@ -296,3 +296,3 @@ activities?: string; | ||
wallDefault?: 'owner' | 'all'; | ||
})); | ||
}); | ||
export {}; |
@@ -1,1 +0,1 @@ | ||
"use strict";var FriendStatusEnum,PlatformEnum,PoliticalEnum,PeopleMainEnum,LifeMainEnum,SmokingEnum,AlcoholEnum,RelationsStatusEnum,SchoolTypeEnum,SexEnum;Object.defineProperty(exports,"__esModule",{value:!0}),function(e){e[e.NotFriend=0]="NotFriend",e[e.RequestSent=1]="RequestSent",e[e.IsSubscribed=2]="IsSubscribed",e[e.IsFriend=3]="IsFriend"}(FriendStatusEnum=exports.FriendStatusEnum||(exports.FriendStatusEnum={})),function(e){e[e.Mobile=1]="Mobile",e[e.IPhone=2]="IPhone",e[e.IPad=3]="IPad",e[e.Android=4]="Android",e[e.WindowsPhone=5]="WindowsPhone",e[e.Windows10=6]="Windows10",e[e.Desktop=7]="Desktop"}(PlatformEnum=exports.PlatformEnum||(exports.PlatformEnum={})),function(e){e[e.Communist=1]="Communist",e[e.Socialist=2]="Socialist",e[e.Moderate=3]="Moderate",e[e.Liberal=4]="Liberal",e[e.Conservative=5]="Conservative",e[e.Monarchical=6]="Monarchical",e[e.Ultraconservative=7]="Ultraconservative",e[e.Indifferent=8]="Indifferent",e[e.Libertarian=9]="Libertarian"}(PoliticalEnum=exports.PoliticalEnum||(exports.PoliticalEnum={})),function(e){e[e.SmartAndCreative=1]="SmartAndCreative",e[e.KindnessAndHonesty=2]="KindnessAndHonesty",e[e.BeautyAndHealth=3]="BeautyAndHealth",e[e.PowerAndWealth=4]="PowerAndWealth",e[e.CourageAndPerseverance=5]="CourageAndPerseverance",e[e.HumorAndLoveForLife=6]="HumorAndLoveForLife"}(PeopleMainEnum=exports.PeopleMainEnum||(exports.PeopleMainEnum={})),function(e){e[e.FamilyAndChildren=1]="FamilyAndChildren",e[e.CareerAndMoney=2]="CareerAndMoney",e[e.EntertainmentAndRecreation=3]="EntertainmentAndRecreation",e[e.ScienceAndResearch=4]="ScienceAndResearch",e[e.ImprovingTheWorld=5]="ImprovingTheWorld",e[e.SelfDevelopment=6]="SelfDevelopment",e[e.BeautyAndArt=7]="BeautyAndArt",e[e.FameAndInfluence=8]="FameAndInfluence"}(LifeMainEnum=exports.LifeMainEnum||(exports.LifeMainEnum={})),function(e){e[e.SharplyNegative=1]="SharplyNegative",e[e.Negative=2]="Negative",e[e.Compromise=3]="Compromise",e[e.Neutral=4]="Neutral",e[e.Positive=5]="Positive"}(SmokingEnum=exports.SmokingEnum||(exports.SmokingEnum={})),function(e){e[e.SharplyNegative=1]="SharplyNegative",e[e.Negative=2]="Negative",e[e.Compromise=3]="Compromise",e[e.Neutral=4]="Neutral",e[e.Positive=5]="Positive"}(AlcoholEnum=exports.AlcoholEnum||(exports.AlcoholEnum={})),function(e){e[e.Unknown=0]="Unknown",e[e.NotMarried=1]="NotMarried",e[e.HasFriend=2]="HasFriend",e[e.Betrothed=3]="Betrothed",e[e.Married=4]="Married",e[e.Complicated=5]="Complicated",e[e.ActiveSearch=6]="ActiveSearch",e[e.InLove=7]="InLove",e[e.CivilMarried=8]="CivilMarried"}(RelationsStatusEnum=exports.RelationsStatusEnum||(exports.RelationsStatusEnum={})),function(e){e[e.School=0]="School",e[e.Gymnasium=1]="Gymnasium",e[e.Lyceum=2]="Lyceum",e[e.BoardingSchool=3]="BoardingSchool",e[e.EveningSchool=4]="EveningSchool",e[e.MusicSchool=5]="MusicSchool",e[e.SportsSchool=6]="SportsSchool",e[e.ArtSchool=7]="ArtSchool",e[e.College=8]="College",e[e.ProfessionalLyceum=9]="ProfessionalLyceum",e[e.TechnicalSchool=10]="TechnicalSchool",e[e.PTU=11]="PTU",e[e.Institute=12]="Institute",e[e.ArtisticSchool=12]="ArtisticSchool"}(SchoolTypeEnum=exports.SchoolTypeEnum||(exports.SchoolTypeEnum={})),function(e){e[e.Unknown=0]="Unknown",e[e.Female=1]="Female",e[e.Male=2]="Male"}(SexEnum=exports.SexEnum||(exports.SexEnum={})); | ||
"use strict";var FriendStatusEnum,PlatformEnum,PoliticalEnum,PeopleMainEnum,LifeMainEnum,SmokingEnum,AlcoholEnum,RelationsStatusEnum,SchoolTypeEnum,SexEnum;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SexEnum=exports.SchoolTypeEnum=exports.RelationsStatusEnum=exports.AlcoholEnum=exports.SmokingEnum=exports.LifeMainEnum=exports.PeopleMainEnum=exports.PoliticalEnum=exports.PlatformEnum=exports.FriendStatusEnum=void 0,function(e){e[e.NotFriend=0]="NotFriend",e[e.RequestSent=1]="RequestSent",e[e.IsSubscribed=2]="IsSubscribed",e[e.IsFriend=3]="IsFriend"}(FriendStatusEnum=exports.FriendStatusEnum||(exports.FriendStatusEnum={})),function(e){e[e.Mobile=1]="Mobile",e[e.IPhone=2]="IPhone",e[e.IPad=3]="IPad",e[e.Android=4]="Android",e[e.WindowsPhone=5]="WindowsPhone",e[e.Windows10=6]="Windows10",e[e.Desktop=7]="Desktop"}(PlatformEnum=exports.PlatformEnum||(exports.PlatformEnum={})),function(e){e[e.Communist=1]="Communist",e[e.Socialist=2]="Socialist",e[e.Moderate=3]="Moderate",e[e.Liberal=4]="Liberal",e[e.Conservative=5]="Conservative",e[e.Monarchical=6]="Monarchical",e[e.Ultraconservative=7]="Ultraconservative",e[e.Indifferent=8]="Indifferent",e[e.Libertarian=9]="Libertarian"}(PoliticalEnum=exports.PoliticalEnum||(exports.PoliticalEnum={})),function(e){e[e.SmartAndCreative=1]="SmartAndCreative",e[e.KindnessAndHonesty=2]="KindnessAndHonesty",e[e.BeautyAndHealth=3]="BeautyAndHealth",e[e.PowerAndWealth=4]="PowerAndWealth",e[e.CourageAndPerseverance=5]="CourageAndPerseverance",e[e.HumorAndLoveForLife=6]="HumorAndLoveForLife"}(PeopleMainEnum=exports.PeopleMainEnum||(exports.PeopleMainEnum={})),function(e){e[e.FamilyAndChildren=1]="FamilyAndChildren",e[e.CareerAndMoney=2]="CareerAndMoney",e[e.EntertainmentAndRecreation=3]="EntertainmentAndRecreation",e[e.ScienceAndResearch=4]="ScienceAndResearch",e[e.ImprovingTheWorld=5]="ImprovingTheWorld",e[e.SelfDevelopment=6]="SelfDevelopment",e[e.BeautyAndArt=7]="BeautyAndArt",e[e.FameAndInfluence=8]="FameAndInfluence"}(LifeMainEnum=exports.LifeMainEnum||(exports.LifeMainEnum={})),function(e){e[e.SharplyNegative=1]="SharplyNegative",e[e.Negative=2]="Negative",e[e.Compromise=3]="Compromise",e[e.Neutral=4]="Neutral",e[e.Positive=5]="Positive"}(SmokingEnum=exports.SmokingEnum||(exports.SmokingEnum={})),function(e){e[e.SharplyNegative=1]="SharplyNegative",e[e.Negative=2]="Negative",e[e.Compromise=3]="Compromise",e[e.Neutral=4]="Neutral",e[e.Positive=5]="Positive"}(AlcoholEnum=exports.AlcoholEnum||(exports.AlcoholEnum={})),function(e){e[e.Unknown=0]="Unknown",e[e.NotMarried=1]="NotMarried",e[e.HasFriend=2]="HasFriend",e[e.Betrothed=3]="Betrothed",e[e.Married=4]="Married",e[e.Complicated=5]="Complicated",e[e.ActiveSearch=6]="ActiveSearch",e[e.InLove=7]="InLove",e[e.CivilMarried=8]="CivilMarried"}(RelationsStatusEnum=exports.RelationsStatusEnum||(exports.RelationsStatusEnum={})),function(e){e[e.School=0]="School",e[e.Gymnasium=1]="Gymnasium",e[e.Lyceum=2]="Lyceum",e[e.BoardingSchool=3]="BoardingSchool",e[e.EveningSchool=4]="EveningSchool",e[e.MusicSchool=5]="MusicSchool",e[e.SportsSchool=6]="SportsSchool",e[e.ArtSchool=7]="ArtSchool",e[e.College=8]="College",e[e.ProfessionalLyceum=9]="ProfessionalLyceum",e[e.TechnicalSchool=10]="TechnicalSchool",e[e.PTU=11]="PTU",e[e.Institute=12]="Institute",e[e.ArtisticSchool=12]="ArtisticSchool"}(SchoolTypeEnum=exports.SchoolTypeEnum||(exports.SchoolTypeEnum={})),function(e){e[e.Unknown=0]="Unknown",e[e.Female=1]="Female",e[e.Male=2]="Male"}(SexEnum=exports.SexEnum||(exports.SexEnum={})); |
@@ -1,1 +0,1 @@ | ||
"use strict";var LangEnum;Object.defineProperty(exports,"__esModule",{value:!0}),function(E){E[E.RU=0]="RU",E[E.UK=1]="UK",E[E.BE=2]="BE",E[E.EN=3]="EN",E[E.ES=4]="ES",E[E.FI=5]="FI",E[E.DE=6]="DE",E[E.IT=7]="IT"}(LangEnum=exports.LangEnum||(exports.LangEnum={})); | ||
"use strict";var LangEnum;Object.defineProperty(exports,"__esModule",{value:!0}),exports.LangEnum=void 0,function(n){n[n.RU=0]="RU",n[n.UK=1]="UK",n[n.BE=2]="BE",n[n.EN=3]="EN",n[n.ES=4]="ES",n[n.FI=5]="FI",n[n.DE=6]="DE",n[n.IT=7]="IT"}(LangEnum=exports.LangEnum||(exports.LangEnum={})); |
@@ -1,1 +0,1 @@ | ||
"use strict";function createRecursiveKeysFormatter(e){var o=function(t){return null===t?null:Array.isArray(t)?t.map(o):"object"==typeof t?Object.keys(t).reduce(function(r,a){return r[e(a)]=o(t[a]),r},{}):t};return o}function toSnakeCase(e){return e.replace(/[A-Z]/g,function(e){return"_"+e.toLowerCase()})}function toCamelCase(e){return e.replace(/_./g,function(e){return e.slice(1).toUpperCase()})}function toPseudoBoolean(e){return e?1:0}function formatOptionalBoolean(e){return void 0===e?void 0:"boolean"==typeof e?toPseudoBoolean(e):e}function formatOptionalArray(e){return void 0===e?e:e.join(",")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.toSnakeCase=toSnakeCase,exports.recursiveToSnakeCase=createRecursiveKeysFormatter(toSnakeCase),exports.toCamelCase=toCamelCase,exports.recursiveToCamelCase=createRecursiveKeysFormatter(toCamelCase),exports.toPseudoBoolean=toPseudoBoolean,exports.formatOptionalBoolean=formatOptionalBoolean,exports.formatOptionalArray=formatOptionalArray; | ||
"use strict";function createRecursiveKeysFormatter(e){var o=function(t){return null===t?null:Array.isArray(t)?t.map(o):"object"==typeof t?Object.keys(t).reduce(function(r,a){return r[e(a)]=o(t[a]),r},{}):t};return o}function toSnakeCase(e){return e.replace(/[A-Z]/g,function(e){return"_"+e.toLowerCase()})}function toCamelCase(e){return e.replace(/_./g,function(e){return e.slice(1).toUpperCase()})}function toPseudoBoolean(e){return e?1:0}function formatOptionalBoolean(e){return void 0===e?void 0:"boolean"==typeof e?toPseudoBoolean(e):e}function formatOptionalArray(e){return void 0===e?e:e.join(",")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatOptionalArray=exports.formatOptionalBoolean=exports.toPseudoBoolean=exports.recursiveToCamelCase=exports.toCamelCase=exports.recursiveToSnakeCase=exports.toSnakeCase=void 0,exports.toSnakeCase=toSnakeCase,exports.recursiveToSnakeCase=createRecursiveKeysFormatter(toSnakeCase),exports.toCamelCase=toCamelCase,exports.recursiveToCamelCase=createRecursiveKeysFormatter(toCamelCase),exports.toPseudoBoolean=toPseudoBoolean,exports.formatOptionalBoolean=formatOptionalBoolean,exports.formatOptionalArray=formatOptionalArray; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./VKAPI")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./types"),exports),__exportStar(require("./VKAPI"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{a(n.next(e))}catch(e){i(e)}}function u(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,u)}a((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var isomorphic_fetch_1=__importDefault(require("isomorphic-fetch")),VKError_1=require("../VKError"),EventEmitter_1=require("../EventEmitter"),utils_1=require("../utils"),VKAPICore_1=require("../VKAPICore"),REQUEST_PERFORMED="request-performed",VKAPI=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.queue=[],r.isQueueProcessing=!1,r.eventEmitter=new EventEmitter_1.EventEmitter,r.accessToken=null,r.sendRequest=function(e){return __awaiter(r,void 0,void 0,function(){var t,r,n,o,i,s;return __generator(this,function(u){switch(u.label){case 0:return t=e.method,r=e.params,n=utils_1.recursiveToSnakeCase(__assign({v:this.v,accessToken:this.accessToken,lang:this.lang},r)),o=Object.entries(n).map(function(e){var t=e[0],r=e[1],n="object"==typeof r?JSON.stringify(r):String(r);return encodeURIComponent(t)+"="+encodeURIComponent(n)}).join("&"),i="https://api.vk.com/method/"+t,this.isBrowser?[2,new Promise(function(e,t){var r="__vkapicallback"+Math.random().toString().slice(2),n=document.createElement("script");n.src=i+"?"+o+"&callback="+r,window[r]=function(r){if(document.head.removeChild(n),null==r?void 0:r.response)return e(utils_1.recursiveToCamelCase(r.response));t(new VKError_1.VKError(utils_1.recursiveToCamelCase((null==r?void 0:r.error)||{})))},document.head.appendChild(n)})]:[4,isomorphic_fetch_1.default(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 1:return[4,u.sent().json()];case 2:if("response"in(s=u.sent()))return[2,utils_1.recursiveToCamelCase(s.response)];throw new VKError_1.VKError(utils_1.recursiveToCamelCase((null==s?void 0:s.error)||{}))}})})},r.addRequestToQueue=function(e){var t=Symbol();r.queue.push({config:e,ref:t});var n=new Promise(function(e,n){var o=function(i,s,u){if(t===i){if(r.eventEmitter.off(REQUEST_PERFORMED,o),s)return n(s);e(u)}};r.eventEmitter.on(REQUEST_PERFORMED,o)});return r.processQueue(),n};var n=t.rps,o=void 0===n?3:n,i=t.accessToken,s=t.v,u=void 0===s?"5.110":s,a=t.lang,c=void 0===a?"ru":a,l=t.isBrowser,f=void 0!==l&&l;return r.accessToken=i||null,r.v=u,r.lang=c,r.timeout=Math.ceil(1e3/o),r.isBrowser=f,r.init(r.addRequestToQueue),r}return __extends(t,e),t.prototype.processQueue=function(){return __awaiter(this,void 0,void 0,function(){var e,t=this;return __generator(this,function(r){switch(r.label){case 0:return this.isQueueProcessing||0===this.queue.length?[2]:(this.isQueueProcessing=!0,(e=this.queue.map(function(e,r){return new Promise(function(n){setTimeout(function(){return __awaiter(t,void 0,void 0,function(){var t,r,o,i,s;return __generator(this,function(u){switch(u.label){case 0:t=e.config,r=e.ref,o=null,i=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.sendRequest(t)];case 2:return i=u.sent(),[3,4];case 3:return s=u.sent(),o=s,[3,4];case 4:return this.eventEmitter.emit(REQUEST_PERFORMED,r,o,i),this.queue.splice(this.queue.indexOf(e),1),n(),[2]}})})},r*t.timeout)})})).push(new Promise(function(e){setTimeout(e,t.queue.length*t.timeout)})),[4,Promise.all(e)]);case 1:return r.sent(),this.isQueueProcessing=!1,[2,this.processQueue()]}})})},t}(VKAPICore_1.VKAPICore);exports.VKAPI=VKAPI; | ||
"use strict";var __extends=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{a(n.next(e))}catch(e){i(e)}}function u(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,u)}a((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.VKAPI=void 0;var isomorphic_fetch_1=__importDefault(require("isomorphic-fetch")),VKError_1=require("../VKError"),EventEmitter_1=require("../EventEmitter"),utils_1=require("../utils"),VKAPICore_1=require("../VKAPICore"),REQUEST_PERFORMED="request-performed",VKAPI=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.queue=[],r.isQueueProcessing=!1,r.eventEmitter=new EventEmitter_1.EventEmitter,r.accessToken=null,r.sendRequest=function(e){return __awaiter(r,void 0,void 0,function(){var t,r,n,o,i,s;return __generator(this,function(u){switch(u.label){case 0:return t=e.method,r=e.params,n=utils_1.recursiveToSnakeCase(__assign({v:this.v,accessToken:this.accessToken,lang:this.lang},r)),o=Object.entries(n).map(function(e){var t=e[0],r=e[1],n="object"==typeof r?JSON.stringify(r):String(r);return encodeURIComponent(t)+"="+encodeURIComponent(n)}).join("&"),i="https://api.vk.com/method/"+t,this.isBrowser?[2,new Promise(function(e,t){var r="__vkapicallback"+Math.random().toString().slice(2),n=document.createElement("script");n.src=i+"?"+o+"&callback="+r,window[r]=function(r){if(document.head.removeChild(n),null==r?void 0:r.response)return e(utils_1.recursiveToCamelCase(r.response));t(new VKError_1.VKError(utils_1.recursiveToCamelCase((null==r?void 0:r.error)||{})))},document.head.appendChild(n)})]:[4,isomorphic_fetch_1.default(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 1:return[4,u.sent().json()];case 2:if("response"in(s=u.sent()))return[2,utils_1.recursiveToCamelCase(s.response)];throw new VKError_1.VKError(utils_1.recursiveToCamelCase((null==s?void 0:s.error)||{}))}})})},r.addRequestToQueue=function(e){var t=Symbol();r.queue.push({config:e,ref:t});var n=new Promise(function(e,n){var o=function(i,s,u){if(t===i){if(r.eventEmitter.off(REQUEST_PERFORMED,o),s)return n(s);e(u)}};r.eventEmitter.on(REQUEST_PERFORMED,o)});return r.processQueue(),n};var n=t.rps,o=void 0===n?3:n,i=t.accessToken,s=t.v,u=void 0===s?"5.110":s,a=t.lang,c=void 0===a?"ru":a,l=t.isBrowser,f=void 0!==l&&l;return r.accessToken=i||null,r.v=u,r.lang=c,r.timeout=Math.ceil(1e3/o),r.isBrowser=f,r.init(r.addRequestToQueue),r}return __extends(t,e),t.prototype.processQueue=function(){return __awaiter(this,void 0,void 0,function(){var e,t=this;return __generator(this,function(r){switch(r.label){case 0:return this.isQueueProcessing||0===this.queue.length?[2]:(this.isQueueProcessing=!0,(e=this.queue.map(function(e,r){return new Promise(function(n){setTimeout(function(){return __awaiter(t,void 0,void 0,function(){var t,r,o,i,s;return __generator(this,function(u){switch(u.label){case 0:t=e.config,r=e.ref,o=null,i=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.sendRequest(t)];case 2:return i=u.sent(),[3,4];case 3:return s=u.sent(),o=s,[3,4];case 4:return this.eventEmitter.emit(REQUEST_PERFORMED,r,o,i),this.queue.splice(this.queue.indexOf(e),1),n(),[2]}})})},r*t.timeout)})})).push(new Promise(function(e){setTimeout(e,t.queue.length*t.timeout)})),[4,Promise.all(e)]);case 1:return r.sent(),this.isQueueProcessing=!1,[2,this.processQueue()]}})})},t}(VKAPICore_1.VKAPICore);exports.VKAPI=VKAPI; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./VKAPICore")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./VKAPICore"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var MessagesRepository_1=require("../repositories/MessagesRepository"),NotificationsRepository_1=require("../repositories/NotificationsRepository"),StatEventsRepository_1=require("../repositories/StatEventsRepository"),StatsRepository_1=require("../repositories/StatsRepository"),StreamingRepository_1=require("../repositories/StreamingRepository"),UsersRepository_1=require("../repositories/UsersRepository"),UtilsRepository_1=require("../repositories/UtilsRepository"),WidgetsRepository_1=require("../repositories/WidgetsRepository"),DatabaseRepository_1=require("../repositories/DatabaseRepository"),notImplemented=function(){throw new Error("Unable to call repository method due to VKAPICore was not initialized")},VKAPICore=function(){function e(){this.database=new DatabaseRepository_1.DatabaseRepository(notImplemented),this.messages=new MessagesRepository_1.MessagesRepository(notImplemented),this.notifications=new NotificationsRepository_1.NotificationsRepository(notImplemented),this.statEvents=new StatEventsRepository_1.StatEventsRepository(notImplemented),this.stats=new StatsRepository_1.StatsRepository(notImplemented),this.streaming=new StreamingRepository_1.StreamingRepository(notImplemented),this.users=new UsersRepository_1.UsersRepository(notImplemented),this.utils=new UtilsRepository_1.UtilsRepository(notImplemented),this.widgets=new WidgetsRepository_1.WidgetsRepository(notImplemented)}return e.prototype.init=function(e){this.database=new DatabaseRepository_1.DatabaseRepository(e),this.messages=new MessagesRepository_1.MessagesRepository(e),this.notifications=new NotificationsRepository_1.NotificationsRepository(e),this.statEvents=new StatEventsRepository_1.StatEventsRepository(e),this.stats=new StatsRepository_1.StatsRepository(e),this.streaming=new StreamingRepository_1.StreamingRepository(e),this.users=new UsersRepository_1.UsersRepository(e),this.utils=new UtilsRepository_1.UtilsRepository(e),this.widgets=new WidgetsRepository_1.WidgetsRepository(e)},e}();exports.VKAPICore=VKAPICore; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VKAPICore=void 0;var MessagesRepository_1=require("../repositories/MessagesRepository"),NotificationsRepository_1=require("../repositories/NotificationsRepository"),StatEventsRepository_1=require("../repositories/StatEventsRepository"),StatsRepository_1=require("../repositories/StatsRepository"),StreamingRepository_1=require("../repositories/StreamingRepository"),UsersRepository_1=require("../repositories/UsersRepository"),UtilsRepository_1=require("../repositories/UtilsRepository"),WidgetsRepository_1=require("../repositories/WidgetsRepository"),DatabaseRepository_1=require("../repositories/DatabaseRepository"),notImplemented=function(){throw new Error("Unable to call repository method due to VKAPICore was not initialized")},VKAPICore=function(){function e(){this.database=new DatabaseRepository_1.DatabaseRepository(notImplemented),this.messages=new MessagesRepository_1.MessagesRepository(notImplemented),this.notifications=new NotificationsRepository_1.NotificationsRepository(notImplemented),this.statEvents=new StatEventsRepository_1.StatEventsRepository(notImplemented),this.stats=new StatsRepository_1.StatsRepository(notImplemented),this.streaming=new StreamingRepository_1.StreamingRepository(notImplemented),this.users=new UsersRepository_1.UsersRepository(notImplemented),this.utils=new UtilsRepository_1.UtilsRepository(notImplemented),this.widgets=new WidgetsRepository_1.WidgetsRepository(notImplemented)}return e.prototype.init=function(e){this.database=new DatabaseRepository_1.DatabaseRepository(e),this.messages=new MessagesRepository_1.MessagesRepository(e),this.notifications=new NotificationsRepository_1.NotificationsRepository(e),this.statEvents=new StatEventsRepository_1.StatEventsRepository(e),this.stats=new StatsRepository_1.StatsRepository(e),this.streaming=new StreamingRepository_1.StreamingRepository(e),this.users=new UsersRepository_1.UsersRepository(e),this.utils=new UtilsRepository_1.UtilsRepository(e),this.widgets=new WidgetsRepository_1.WidgetsRepository(e)},e}();exports.VKAPICore=VKAPICore; |
@@ -1,1 +0,1 @@ | ||
"use strict";function __export(e){for(var r in e)exports.hasOwnProperty(r)||(exports[r]=e[r])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(require("./types")),__export(require("./utils")),__export(require("./VKError")); | ||
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./types"),exports),__exportStar(require("./utils"),exports),__exportStar(require("./VKError"),exports); |
@@ -1,1 +0,1 @@ | ||
"use strict";var ErrorsEnum;Object.defineProperty(exports,"__esModule",{value:!0}),function(e){e[e.Unknown=1]="Unknown",e[e.ApplicationDisabled=2]="ApplicationDisabled",e[e.UnknownMethod=3]="UnknownMethod",e[e.IncorrectSign=4]="IncorrectSign",e[e.AuthorizationFailed=5]="AuthorizationFailed",e[e.TooManyRequests=6]="TooManyRequests",e[e.PermissionDenied=7]="PermissionDenied",e[e.InvalidRequest=8]="InvalidRequest",e[e.FloodControl=9]="FloodControl",e[e.InternalError=10]="InternalError",e[e.ApplicationTestModeRestriction=11]="ApplicationTestModeRestriction",e[e.CaptchaRequired=14]="CaptchaRequired",e[e.AccessDenied=15]="AccessDenied",e[e.HttpAuthFailed=16]="HttpAuthFailed",e[e.ValidationRequired=17]="ValidationRequired",e[e.UserDeletedOrBanned=18]="UserDeletedOrBanned",e[e.PermissionForNonStandaloneDenied=20]="PermissionForNonStandaloneDenied",e[e.PermissionAllowedForStandaloneAndOpenAPI=21]="PermissionAllowedForStandaloneAndOpenAPI",e[e.MethodDisabled=23]="MethodDisabled",e[e.ConfirmationRequired=24]="ConfirmationRequired",e[e.GroupAuthFailed=27]="GroupAuthFailed",e[e.AppAuthFailed=28]="AppAuthFailed",e[e.RateLimitReached=29]="RateLimitReached",e[e.PrivateProfile=30]="PrivateProfile",e[e.NotImplemented=33]="NotImplemented",e[e.ParameterMissingOrInvalid=100]="ParameterMissingOrInvalid",e[e.InvalidAppId=101]="InvalidAppId",e[e.NotFound=104]="NotFound",e[e.InvalidUserId=113]="InvalidUserId",e[e.InvalidTimestamp=150]="InvalidTimestamp",e[e.AlbumAccessDenied=200]="AlbumAccessDenied",e[e.AudioAccessDenied=201]="AudioAccessDenied",e[e.GroupAccessDenied=203]="GroupAccessDenied",e[e.WallPostAccessDenied=210]="WallPostAccessDenied",e[e.AlbumFull=300]="AlbumFull",e[e.ApplicationVotesDisabled=500]="ApplicationVotesDisabled",e[e.NoAccessToOperationsWithObject=600]="NoAccessToOperationsWithObject",e[e.Ads=603]="Ads",e[e.ApplicationNotInstalledInCommunity=711]="ApplicationNotInstalledInCommunity",e[e.UserInBlackList=900]="UserInBlackList",e[e.MessagesFromCommunityNotAllowed=901]="MessagesFromCommunityNotAllowed",e[e.MessagesPrivacyRestriction=902]="MessagesPrivacyRestriction",e[e.KeyboardFormatInvalid=911]="KeyboardFormatInvalid",e[e.ChatBotFeature=912]="ChatBotFeature",e[e.TooManyForwardedMessages=913]="TooManyForwardedMessages",e[e.MessageTooLong=914]="MessageTooLong",e[e.NoAccessToChat=917]="NoAccessToChat",e[e.UnableToForward=921]="UnableToForward",e[e.NotAdminOfChat=925]="NotAdminOfChat",e[e.ContactNotFound=936]="ContactNotFound",e[e.TooManyPostsInMessages=940]="TooManyPostsInMessages",e[e.InvalidIntent=943]="InvalidIntent",e[e.IntentLimitsOverflow=944]="IntentLimitsOverflow",e[e.ChatDisabled=945]="ChatDisabled",e[e.ChatNotSupported=946]="ChatNotSupported",e[e.CaptchaNeeded=3300]="CaptchaNeeded",e[e.PhoneValidationNeeded=3301]="PhoneValidationNeeded",e[e.PasswordValidationNeeded=3302]="PasswordValidationNeeded",e[e.OtpAppValidationNeeded=3303]="OtpAppValidationNeeded",e[e.EmailConfirmationNeeded=3304]="EmailConfirmationNeeded",e[e.AssertVotes=3305]="AssertVotes",e[e.TokenExtensionRequired=3609]="TokenExtensionRequired"}(ErrorsEnum=exports.ErrorsEnum||(exports.ErrorsEnum={})); | ||
"use strict";var ErrorsEnum;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorsEnum=void 0,function(e){e[e.Unknown=1]="Unknown",e[e.ApplicationDisabled=2]="ApplicationDisabled",e[e.UnknownMethod=3]="UnknownMethod",e[e.IncorrectSign=4]="IncorrectSign",e[e.AuthorizationFailed=5]="AuthorizationFailed",e[e.TooManyRequests=6]="TooManyRequests",e[e.PermissionDenied=7]="PermissionDenied",e[e.InvalidRequest=8]="InvalidRequest",e[e.FloodControl=9]="FloodControl",e[e.InternalError=10]="InternalError",e[e.ApplicationTestModeRestriction=11]="ApplicationTestModeRestriction",e[e.CaptchaRequired=14]="CaptchaRequired",e[e.AccessDenied=15]="AccessDenied",e[e.HttpAuthFailed=16]="HttpAuthFailed",e[e.ValidationRequired=17]="ValidationRequired",e[e.UserDeletedOrBanned=18]="UserDeletedOrBanned",e[e.PermissionForNonStandaloneDenied=20]="PermissionForNonStandaloneDenied",e[e.PermissionAllowedForStandaloneAndOpenAPI=21]="PermissionAllowedForStandaloneAndOpenAPI",e[e.MethodDisabled=23]="MethodDisabled",e[e.ConfirmationRequired=24]="ConfirmationRequired",e[e.GroupAuthFailed=27]="GroupAuthFailed",e[e.AppAuthFailed=28]="AppAuthFailed",e[e.RateLimitReached=29]="RateLimitReached",e[e.PrivateProfile=30]="PrivateProfile",e[e.NotImplemented=33]="NotImplemented",e[e.ParameterMissingOrInvalid=100]="ParameterMissingOrInvalid",e[e.InvalidAppId=101]="InvalidAppId",e[e.NotFound=104]="NotFound",e[e.InvalidUserId=113]="InvalidUserId",e[e.InvalidTimestamp=150]="InvalidTimestamp",e[e.AlbumAccessDenied=200]="AlbumAccessDenied",e[e.AudioAccessDenied=201]="AudioAccessDenied",e[e.GroupAccessDenied=203]="GroupAccessDenied",e[e.WallPostAccessDenied=210]="WallPostAccessDenied",e[e.AlbumFull=300]="AlbumFull",e[e.ApplicationVotesDisabled=500]="ApplicationVotesDisabled",e[e.NoAccessToOperationsWithObject=600]="NoAccessToOperationsWithObject",e[e.Ads=603]="Ads",e[e.ApplicationNotInstalledInCommunity=711]="ApplicationNotInstalledInCommunity",e[e.UserInBlackList=900]="UserInBlackList",e[e.MessagesFromCommunityNotAllowed=901]="MessagesFromCommunityNotAllowed",e[e.MessagesPrivacyRestriction=902]="MessagesPrivacyRestriction",e[e.KeyboardFormatInvalid=911]="KeyboardFormatInvalid",e[e.ChatBotFeature=912]="ChatBotFeature",e[e.TooManyForwardedMessages=913]="TooManyForwardedMessages",e[e.MessageTooLong=914]="MessageTooLong",e[e.NoAccessToChat=917]="NoAccessToChat",e[e.UnableToForward=921]="UnableToForward",e[e.NotAdminOfChat=925]="NotAdminOfChat",e[e.ContactNotFound=936]="ContactNotFound",e[e.TooManyPostsInMessages=940]="TooManyPostsInMessages",e[e.InvalidIntent=943]="InvalidIntent",e[e.IntentLimitsOverflow=944]="IntentLimitsOverflow",e[e.ChatDisabled=945]="ChatDisabled",e[e.ChatNotSupported=946]="ChatNotSupported",e[e.CaptchaNeeded=3300]="CaptchaNeeded",e[e.PhoneValidationNeeded=3301]="PhoneValidationNeeded",e[e.PasswordValidationNeeded=3302]="PasswordValidationNeeded",e[e.OtpAppValidationNeeded=3303]="OtpAppValidationNeeded",e[e.EmailConfirmationNeeded=3304]="EmailConfirmationNeeded",e[e.AssertVotes=3305]="AssertVotes",e[e.TokenExtensionRequired=3609]="TokenExtensionRequired"}(ErrorsEnum=exports.ErrorsEnum||(exports.ErrorsEnum={})); |
@@ -1,1 +0,1 @@ | ||
"use strict";function isVKError(r){return r instanceof Error&&"data"in r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isVKError=isVKError; | ||
"use strict";function isVKError(r){return r instanceof Error&&"data"in r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.isVKError=void 0,exports.isVKError=isVKError; |
@@ -1,1 +0,1 @@ | ||
"use strict";var __extends=this&&this.__extends||function(){var t=function(r,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])})(r,o)};return function(r,o){function e(){this.constructor=r}t(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:!0});var VKError=function(t){function r(r){var o=t.call(this,JSON.stringify(r))||this;return o.data=r,o}return __extends(r,t),r}(Error);exports.VKError=VKError; | ||
"use strict";var __extends=this&&this.__extends||function(){var r=function(t,o){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])})(t,o)};return function(t,o){function e(){this.constructor=t}r(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.VKError=void 0;var VKError=function(r){function t(t){var o=r.call(this,JSON.stringify(t))||this;return o.data=t,o}return __extends(t,r),t}(Error);exports.VKError=VKError; |
{ | ||
"name": "vkontakte-api", | ||
"version": "1.13.0", | ||
"version": "1.15.0", | ||
"description": "TypeScript library to make requests performing to VK API simple", | ||
@@ -38,15 +38,15 @@ "homepage": "https://github.com/wolframdeus/vk-api", | ||
"@babel/preset-env": "^7.10.3", | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-conventional": "^11.0.0", | ||
"@types/isomorphic-fetch": "^0.0.35", | ||
"@types/isomorphic-form-data": "^2.0.0", | ||
"@types/node": "^13.13.5", | ||
"@typescript-eslint/eslint-plugin": "^2.31.0", | ||
"@typescript-eslint/parser": "^2.31.0", | ||
"@types/node": "^14.14.6", | ||
"@typescript-eslint/eslint-plugin": "^4.6.1", | ||
"@typescript-eslint/parser": "^4.6.1", | ||
"babel-loader": "^8.1.0", | ||
"commitizen": "^4.1.2", | ||
"conventional-github-releaser": "^3.1.3", | ||
"cz-conventional-changelog": "3.2.0", | ||
"cz-conventional-changelog": "3.3.0", | ||
"dotenv": "^8.2.0", | ||
"dotenv-cli": "^3.1.0", | ||
"dotenv-cli": "^4.0.0", | ||
"eslint": "^7.0.0", | ||
@@ -61,12 +61,12 @@ "gulp": "^4.0.2", | ||
"rimraf": "^3.0.2", | ||
"standard-version": "^8.0.1", | ||
"ts-loader": "^7.0.5", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.8.3", | ||
"webpack": "^4.43.0", | ||
"webpack-cli": "^3.3.12", | ||
"standard-version": "^9.0.0", | ||
"ts-loader": "^8.0.9", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.0.5", | ||
"webpack": "^5.4.0", | ||
"webpack-cli": "^4.2.0", | ||
"webpack-dev-server": "^3.11.0" | ||
}, | ||
"dependencies": { | ||
"isomorphic-fetch": "^2.2.1" | ||
"isomorphic-fetch": "^3.0.0" | ||
}, | ||
@@ -73,0 +73,0 @@ "config": { |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances 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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 5 instances in 1 package
240143
229
4335
+ Addedisomorphic-fetch@3.0.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)
Updatedisomorphic-fetch@^3.0.0