Этот коммит содержится в:
2023-03-11 17:30:20 +00:00
Коммит b6c4e025bc
5124 изменённых файлов: 1153349 добавлений и 0 удалений
+683
Просмотреть файл
@@ -0,0 +1,683 @@
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;
});
});
}
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;
});
});
}
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 = {}));
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
поставляемый Исполняемый файл
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Просмотреть файл
+1
Просмотреть файл
@@ -0,0 +1 @@
{"version":3,"file":"iappmanager.js","sourceRoot":"","sources":["iappmanager.ts"],"names":[],"mappings":""}
Просмотреть файл
+1
Просмотреть файл
@@ -0,0 +1 @@
{"version":3,"file":"ipartitionmanager.js","sourceRoot":"","sources":["ipartitionmanager.ts"],"names":[],"mappings":""}
Просмотреть файл
+1
Просмотреть файл
@@ -0,0 +1 @@
{"version":3,"file":"istagemanager.js","sourceRoot":"","sources":["istagemanager.ts"],"names":[],"mappings":""}
+49
Просмотреть файл
@@ -0,0 +1,49 @@
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 PartitionManager extends Platform.Core.BaseManager {
createPartitionTables(PartitionId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/partitions/createpartitiontables/partitionid/' + PartitionId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
refreshAllPartitions() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/partitions/refreshallpartitions/np';
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
static Instance() {
if (this._instance === undefined)
this._instance = new PartitionManager();
return this._instance;
}
}
Managers.PartitionManager = PartitionManager;
})(Managers = Apps.Managers || (Apps.Managers = {}));
})(Apps = Platform.Apps || (Platform.Apps = {}));
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
})(Unibase || (Unibase = {}));
+1
Просмотреть файл
@@ -0,0 +1 @@
{"version":3,"file":"partitionmanager.js","sourceRoot":"","sources":["partitionmanager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,OAAO,CAiChB;AAjCD,WAAU,OAAO;IACb,IAAiB,QAAQ,CA+BxB;IA/BD,WAAiB,QAAQ;QACrB,IAAiB,IAAI,CA6BpB;QA7BD,WAAiB,IAAI;YACjB,IAAiB,QAAQ,CA2BxB;YA3BD,WAAiB,QAAQ;gBACrB,MAAa,gBAAiB,SAAQ,SAAA,IAAI,CAAC,WAAW;oBAC5C,qBAAqB,CAAC,WAAW;;4BACnC,MAAM,GAAG,GAAG,wEAAwE,GAAG,WAAW,CAAC;4BACnG,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCACvE,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI;oCACxB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBACK,oBAAoB;;4BACtB,MAAM,GAAG,GAAG,6DAA6D,CAAC;4BAC1E,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCACvE,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI;oCACxB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBAED,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,EAAE,CAAC;wBAC5C,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBAEJ;gBAxBY,yBAAgB,mBAwB5B,CAAA;YAEL,CAAC,EA3BgB,QAAQ,GAAR,aAAQ,KAAR,aAAQ,QA2BxB;QACL,CAAC,EA7BgB,IAAI,GAAJ,aAAI,KAAJ,aAAI,QA6BpB;IACL,CAAC,EA/BgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QA+BxB;AACL,CAAC,EAjCS,OAAO,KAAP,OAAO,QAiChB"}
поставляемый Исполняемый файл
+1
Просмотреть файл
@@ -0,0 +1 @@
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Unibase;(function(n){let t;(function(n){let t;(function(t){let i;(function(t){class i extends n.Core.BaseManager{createPartitionTables(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/platform/partitions/createpartitiontables/partitionid/"+n;return yield this.dataHelper().postAsync(t,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}refreshAllPartitions(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/platform/partitions/refreshallpartitions/np",null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this._instance===undefined&&(this._instance=new i),this._instance}}t.PartitionManager=i})(i=t.Managers||(t.Managers={}))})(t=n.Apps||(n.Apps={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
+344
Просмотреть файл
@@ -0,0 +1,344 @@
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 StageManager extends Platform.Core.BaseManager {
getStages(installedappid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getstages/installedappid/' + installedappid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getStagesByStageStatus(stagestatusid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getstagesbystagestatusid/stagestatusid/' + stagestatusid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getStagesByInstalledAppandRefStatus(installedappid, refstatusid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getstagesbyinstalledappandrefstatusid/installedappid/' + installedappid + '/refstatusid/' + refstatusid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getStageByStageName(installedappid, stagename) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getstagebystagename/installedappid/' + installedappid + '/stagename/' + stagename;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getStage(stageid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getstage/stageid/' + stageid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
saveStage(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/savestage';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
deleteStage(id) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/deletestage/stageid/' + id;
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
return response;
});
});
}
changeStage(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/changestage';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
changeStageRoles(stageid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getchangestageroles/stageid/' + stageid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
updateStageIndex(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/updatestageindexes';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getallchangeStageRoles(installedAppId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getallchangestageroles/installedappid/' + installedAppId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getStageStatuses(appkeyid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getstagestatuses/appkeyid/' + appkeyid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getStageStatus(stagestatusid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getstagestatus/id/' + stagestatusid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
saveStageStatus(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/savestagestatus';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
deleteStageStatus(id) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/deletestagestatus/id/' + id;
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getStageRoles(stageid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getstageroles/' + stageid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
addViewStage(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/addviewrole';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
addChangeStage(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/addchangerole';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
removeViewStage(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/removeviewrole';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
removeChangeStage(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/removechangerole';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
setAsViewable(stageid, viewable) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/setstageasviewable/stageid/' + stageid + '/viewall/' + viewable;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
setAsChangable(stageid, changable) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/setstageaschangable/stageid/' + stageid + '/changeall/' + changable;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getStageReasons(stageid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getstagereasons/' + stageid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
deleteStageReasons(reasonid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/deletestagereason/reasonid/' + reasonid;
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
return response;
});
});
}
saveStageChange(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/savestagechange';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
getStageChangeReasons(stageid, refguid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/stagechangereasons/stageid/' + stageid + '/refguid/' + refguid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
getStageChangesByCommentId(commentid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/GetStageChangesAsyncByCommentId/commentid/' + commentid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
setDefaultForAll(stageid, defaultForAll, appId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/setdefaultforall/stageid/' + stageid + '/defaultforall/' + defaultForAll + '/installedappid/' + appId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
saveDefaultRoles(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/savedefaultstageroles';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
getDefaultStageRoles(appId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/getdefaultstageroles/installedappid/' + appId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != "")
response.result = JSON.parse(response.result);
return response;
});
});
}
bulkStageUpdate(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/apps/bulkstageupdate';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
static Instance() {
if (this._instance === undefined)
this._instance = new StageManager();
return this._instance;
}
}
Managers.StageManager = StageManager;
})(Managers = Apps.Managers || (Apps.Managers = {}));
})(Apps = Platform.Apps || (Platform.Apps = {}));
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
})(Unibase || (Unibase = {}));
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
поставляемый Исполняемый файл
Различия файлов скрыты, потому что одна или несколько строк слишком длинны