@zeplin/sdk
Version:
Zeplin API client for JavaScript
96 lines (95 loc) • 7.2 kB
JavaScript
;
require("core-js/modules/es.object.define-property.js");
require("core-js/modules/es.object.set-prototype-of.js");
require("core-js/modules/es.function.bind.js");
require("core-js/modules/es.object.get-prototype-of.js");
require("core-js/modules/es.reflect.construct.js");
require("core-js/modules/es.object.create.js");
require("core-js/modules/es.symbol.iterator.js");
require("core-js/modules/es.array.iterator.js");
require("core-js/modules/es.string.iterator.js");
require("core-js/modules/web.dom-collections.iterator.js");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ZeplinApi = void 0;
require("core-js/modules/es.symbol.to-primitive.js");
require("core-js/modules/es.date.to-primitive.js");
require("core-js/modules/es.symbol.js");
require("core-js/modules/es.symbol.description.js");
require("core-js/modules/es.object.to-string.js");
require("core-js/modules/es.number.constructor.js");
var _axios = _interopRequireDefault(require("axios"));
var _base = require("./base");
var _authorizationApi = require("./apis/authorization-api");
var _colorsApi = require("./apis/colors-api");
var _componentsApi = require("./apis/components-api");
var _connectedComponentsApi = require("./apis/connected-components-api");
var _designTokensApi = require("./apis/design-tokens-api");
var _flowsApi = require("./apis/flows-api");
var _notificationsApi = require("./apis/notifications-api");
var _organizationsApi = require("./apis/organizations-api");
var _projectsApi = require("./apis/projects-api");
var _screensApi = require("./apis/screens-api");
var _spacingApi = require("./apis/spacing-api");
var _styleguidesApi = require("./apis/styleguides-api");
var _textStylesApi = require("./apis/text-styles-api");
var _usersApi = require("./apis/users-api");
var _variableCollectionsApi = require("./apis/variable-collections-api");
var _webhooksApi = require("./apis/webhooks-api");
var _webhooks = require("./utilities/webhooks");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
function _inherits(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 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* tslint:disable */ /* eslint-disable */ /**
* Zeplin API
* Access your resources in Zeplin
*
* Contact: support@zeplin.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
var ZeplinApi = /*#__PURE__*/function (_BaseAPI) {
_inherits(ZeplinApi, _BaseAPI);
var _super = _createSuper(ZeplinApi);
function ZeplinApi(configuration) {
var _this;
var basePath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _base.BASE_PATH;
var axios = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _axios["default"];
_classCallCheck(this, ZeplinApi);
_this = _super.call(this, configuration, basePath, axios);
_this.basePath = basePath;
_this.axios = axios;
_this.authorization = new _authorizationApi.AuthorizationApi(configuration, basePath, axios);
_this.colors = new _colorsApi.ColorsApi(configuration, basePath, axios);
_this.components = new _componentsApi.ComponentsApi(configuration, basePath, axios);
_this.connectedComponents = new _connectedComponentsApi.ConnectedComponentsApi(configuration, basePath, axios);
_this.designTokens = new _designTokensApi.DesignTokensApi(configuration, basePath, axios);
_this.flows = new _flowsApi.FlowsApi(configuration, basePath, axios);
_this.notifications = new _notificationsApi.NotificationsApi(configuration, basePath, axios);
_this.organizations = new _organizationsApi.OrganizationsApi(configuration, basePath, axios);
_this.projects = new _projectsApi.ProjectsApi(configuration, basePath, axios);
_this.screens = new _screensApi.ScreensApi(configuration, basePath, axios);
_this.spacing = new _spacingApi.SpacingApi(configuration, basePath, axios);
_this.styleguides = new _styleguidesApi.StyleguidesApi(configuration, basePath, axios);
_this.textStyles = new _textStylesApi.TextStylesApi(configuration, basePath, axios);
_this.users = new _usersApi.UsersApi(configuration, basePath, axios);
_this.variableCollections = new _variableCollectionsApi.VariableCollectionsApi(configuration, basePath, axios);
_this.webhooks = new _webhooksApi.WebhooksApi(configuration, basePath, axios);
return _this;
}
return ZeplinApi;
}(_base.BaseAPI);
exports.ZeplinApi = ZeplinApi;
_defineProperty(ZeplinApi, "Webhooks", _webhooks.Webhooks);