eventbrite
Version:
The official JavaScript SDK for the Eventbrite v3 API
3 lines (2 loc) • 2.25 kB
JavaScript
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){if("function"==typeof define&&define.amd)define(["exports","./baseApi"],e);else if("undefined"!=typeof exports)e(exports,require("./baseApi"));else{var n={};e(n,t.baseApi),t.organizations=n}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(t,f){"use strict";function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(i){var f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e,n,o=a(i);if(f){var r=a(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return e=this,!(n=t)||"object"!==_typeof(n)&&"function"!=typeof n?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):n}}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationsApi=void 0;var e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(i,f.BaseApi);var e,n,o,r=s(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.apply(this,arguments)}return e=i,(n=[{key:"getByUser",value:function(t){return this.request("/users/".concat(t,"/organizations/"))}}])&&u(e.prototype,n),o&&u(e,o),i}();t.OrganizationsApi=e});
//# sourceMappingURL=organizations.min.js.map