UNPKG

@abaplint/core

Version:
31 lines 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Oauth2Profile = void 0; const xml_utils_1 = require("../xml_utils"); const _abstract_object_1 = require("./_abstract_object"); class Oauth2Profile extends _abstract_object_1.AbstractObject { getType() { return "OA2P"; } getAllowedNaming() { return { maxLength: 30, allowNamespace: true, }; } getDescription() { // todo return undefined; } listScopes() { var _a, _b, _c; const ret = []; const parsed = super.parseRaw2(); for (const t of (0, xml_utils_1.xmlToArray)((_c = (_b = (_a = parsed.abapGit["asx:abap"]["asx:values"]) === null || _a === void 0 ? void 0 : _a.PROFILE) === null || _b === void 0 ? void 0 : _b.T_SCOPES) === null || _c === void 0 ? void 0 : _c.OA2P_SCOPES)) { ret.push(t.SCOPE); } return ret; } } exports.Oauth2Profile = Oauth2Profile; //# sourceMappingURL=oauth2_profile.js.map