UNPKG

@awhere/api

Version:

The awesome aWhere API for JavaScript.

75 lines 2.8 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var PrototypeBase_1 = __importDefault(require("../PrototypeBase")); var OAuthClientAuthorized = /** @class */ (function (_super) { __extends(OAuthClientAuthorized, _super); function OAuthClientAuthorized(props) { if (props === void 0) { props = {}; } var _this = _super.call(this, props) || this; _this._id = props._id || OAuthClientAuthorized.generateId(); if (props.client !== undefined) { _this.client = props.client; } if (props.user !== undefined) { _this.user = props.user; } if (props.scope !== undefined) { _this.scope = props.scope; } return _this; } OAuthClientAuthorized.generateId = function () { return _super.generateId.call(this, 'awhere.core.oauth-client-authorized'); }; Object.defineProperty(OAuthClientAuthorized.prototype, "client", { get: function () { return this._client; }, set: function (value) { this._client = value; }, enumerable: false, configurable: true }); Object.defineProperty(OAuthClientAuthorized.prototype, "user", { get: function () { return this._user; }, set: function (value) { this._user = value; }, enumerable: false, configurable: true }); Object.defineProperty(OAuthClientAuthorized.prototype, "scope", { get: function () { return this._scope; }, set: function (value) { this._scope = value; }, enumerable: false, configurable: true }); return OAuthClientAuthorized; }(PrototypeBase_1.default)); exports.default = OAuthClientAuthorized; //# sourceMappingURL=OAuthClientAuthorized.js.map