123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716 |
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
- };
- var Unibase;
- (function (Unibase) {
- let Platform;
- (function (Platform) {
- let Apps;
- (function (Apps) {
- let Managers;
- (function (Managers) {
- class AppManager extends Platform.Core.BaseManager {
- getAppGroups() {
- return __awaiter(this, void 0, void 0, function* () {
- let appgroupname = 'Sales';
- const url = 'apis/v4/unibase/platform/apps/' + appgroupname;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- previewDocument(documentFileId) {
- var instance = this;
- Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile('platform/files/managers/filemanager.js', function () {
- Unibase.Platform.Files.Managers.FileManager.Instance().getDocumentFile(documentFileId).then(function (response) {
- var filePath = response.result.DocumentFilePath;
- var result = response.result;
- var byteCharacters = atob(result.FileData);
- var byteNumbers = new Array(byteCharacters.length);
- for (var i = 0; i < byteCharacters.length; i++) {
- byteNumbers[i] = byteCharacters.charCodeAt(i);
- }
- var byteArray = new Uint8Array(byteNumbers);
- var file = new Blob([byteArray], { type: result.DocumentFilePath + ';base64' });
- var fileURL = URL.createObjectURL(file);
- var fileName = result.DocumentFileName + "." + result.FileType;
- window.open(result.DocumentFilePath);
- });
- });
- }
- refreshApps() {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/refreshapps/np';
- return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getParentApps() {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getparentapps';
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- updateAppProvider(appproviderid, datalistid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/updatereportid/appproviderid/' + appproviderid + '/datalistid/' + datalistid;
- var result = "";
- yield this.dataHelper().post(url, null, function (response) {
- result = JSON.parse(response.result);
- }, function (response) {
- result = JSON.parse(response.result);
- });
- return result;
- });
- }
- saveDynamicApp(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/savedynamicapp';
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- updateDynamicApp(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/updatedynamicapp';
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- geAppInfoandappConfigurationInfo(installeappid, appconfigurationid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getappinfoandconfigurationinfo/installedappid/' + installeappid + '/appconfigurationid/' + appconfigurationid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- updateAppStatus(installedAppId, statusId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/updateappstatus/installedappid/' + installedAppId + '/statusid/' + statusId;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- updateWishList(installedAppId, statusId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/updatewishlist/installedappid/' + installedAppId + '/status/' + statusId;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- saveStatus(statusid, doctypeid, recordid, versionguid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/savestatus/statusid/' + statusid + '/doctypeid/' + doctypeid + '/recordid/' + recordid + '/versionguid/' + versionguid;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getInstallApp(installeappid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getinstalledapp/id/' + installeappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getAppVersion(versionid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getappversionid/id/' + versionid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getApp(appid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getappid/id/' + appid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- appUniqueId(uniqueid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getappuniqueid/appuniqueid/' + uniqueid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getUniqueId(uniqueid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getuniqueid/uniqueid/' + uniqueid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getDocumentFileId(documentid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getdocumentfileid/id/' + documentid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getWidgetVersion(widgetid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getwidgetid/id/' + widgetid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getDashboardVersion(portletid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getportletid/id/' + portletid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getCurrentDashboardVersion(portletid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getcurrentportletversion/id/' + portletid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getReportVersion(reportId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getreportid/id/' + reportId;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getCurrentReportVersion(reportId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getcurrentversiond/id/' + reportId;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getAllApps(installeappid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getallapps/installedappid/' + installeappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getInstallAppId(uniqueid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getinstalledappid/uniqueid/' + uniqueid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null && response.result != "") {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getInstalledApps() {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getinstalledapps';
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getChildApps(installedappid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getchildapps/parentid/' + installedappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getChilds(installedappid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getchilds/parentid/' + installedappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getdependentApps(installedappid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getdependentapps/' + installedappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- updateAppIndex(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/updateindexes/';
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- duplicateApp(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/duplicateapp';
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getAppPermission(apppermissionid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getapppermission/apppermissionid/' + apppermissionid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- getAppPermissions(installedAppId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getapppermissions/installedappid/' + installedAppId;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- saveAppPermission(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/saveapppermissionid';
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- deleteAppPermission(apppermissionid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/deleteapppermission/apppermissionid/' + apppermissionid;
- return yield this.dataHelper().postAsync(url, null);
- });
- }
- getAppPermissionBySystemName(installedAppId, SystemName) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getapppermissions/installedappid/' + installedAppId + "/systemname/" + SystemName;
- var approlesettings;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- getAllAppConfigurations(installedappid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getappconfigurations/installedappid/' + installedappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getListAppConfigurations(installedappid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/listappconfigurations/installedappid/' + installedappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getDetailAppConfigurations(installedappid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/detailappconfigurations/installedappid/' + installedappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getFormAppConfigurations(installedappid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getformconfigurations/installedappid/' + installedappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getAppConfiguration(appconfigurationid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getconfiguration/id/' + appconfigurationid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getAppConfigurationByUniqueId(uniqueId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getconfiguration/uniqueid/' + uniqueId;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- saveAppConfiguration(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/saveappconfiguration';
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- deleteAppConfiguration(appConfigurationId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/delete/id/' + appConfigurationId;
- return yield this.dataHelper().postAsync(url, null);
- });
- }
- updateConfigurationStatus(appConfigurationId, statusId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/updatestatus/appconfigurationid/' + appConfigurationId + '/statusid/' + statusId;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getUserApps() {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/userapps/contactid/" + Platform.Membership.Infos.Identity.getCurrentUser().userId;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- getMyApps() {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/myapps";
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- exportApp(installedappid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/exportapp/' + installedappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = response.result;
- }
- return response;
- });
- });
- }
- exportAppRoleSettings() {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/exportapprolesettings';
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = response.result;
- }
- return response;
- });
- });
- }
- saveVersion(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- debugger;
- const url = 'apis/v4/unibase/platform/apps/saveversion';
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getCurrentVersionByApp(installedappid) {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/getcurrentversionbyapp/" + installedappid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- return response;
- });
- });
- }
- saveLatestVersionFromC02(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/upgradeversionsave";
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- upgradeApp(installedappid, versionno) {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/upgradeappversion/installedappid/" + installedappid + "/versionno/" + versionno;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- upgradeAvailableApp(installedappid) {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/UpgradeAppAvailable/installedappid/" + installedappid;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- upgradeWidgetVersionAvailable(widgetid) {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/upgradewidgetversionavailable/widgetid/" + widgetid;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- upgradeDashboardVersionAvailable(portletid) {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/upgradedashboardversionavailable/portletid/" + portletid;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- debugger;
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- upgradeReportVersionAvailable(reportId) {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/upgradereportversion/reportid/" + reportId;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- debugger;
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- checkAppPermission(installedAppId) {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/checkapppermission/installedappid/" + installedAppId;
- return yield this.dataHelper().postAsync(url, null).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- exportAppPermissions(appId) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/exportapppermissions/installedappid/' + appId;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = response.result;
- }
- return response;
- });
- });
- }
- getSettingApps() {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getsettingapps';
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getDevApps() {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getdevapps';
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- executeProc(procName) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/executestoredprocedure/procname/' + procName;
- return yield this.dataHelper().postAsync(url, '{}').then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- getActiveUserApps() {
- return __awaiter(this, void 0, void 0, function* () {
- var url = "apis/v4/unibase/platform/apps/getactiveuserapps";
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- getConfigurationApps() {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/unibase/platform/apps/getconfigurationapps';
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result != null) {
- response.result = JSON.parse(response.result);
- }
- return response;
- });
- });
- }
- static Instance() {
- if (this._instance === undefined)
- this._instance = new AppManager();
- return this._instance;
- }
- }
- Managers.AppManager = AppManager;
- })(Managers = Apps.Managers || (Apps.Managers = {}));
- })(Apps = Platform.Apps || (Platform.Apps = {}));
- })(Platform = Unibase.Platform || (Unibase.Platform = {}));
- })(Unibase || (Unibase = {}));
|