Iniit
Этот коммит содержится в:
@@ -0,0 +1,39 @@
|
||||
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 Analytics;
|
||||
(function (Analytics) {
|
||||
let Managers;
|
||||
(function (Managers) {
|
||||
class ChartManager extends Platform.Core.BaseManager {
|
||||
getChartColumns(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/chartcolumns/reportid/' + reportid;
|
||||
var chartcolumns;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
chartcolumns = JSON.parse(response.result);
|
||||
return chartcolumns;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new ChartManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.ChartManager = ChartManager;
|
||||
})(Managers = Analytics.Managers || (Analytics.Managers = {}));
|
||||
})(Analytics = Platform.Analytics || (Platform.Analytics = {}));
|
||||
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
|
||||
})(Unibase || (Unibase = {}));
|
||||
Исполняемый файл
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"chartmanager.js","sourceRoot":"","sources":["chartmanager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,OAAO,CA0BhB;AA1BD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAwBxB;IAxBD,WAAiB,QAAQ;QACrB,IAAiB,SAAS,CAsBzB;QAtBD,WAAiB,SAAS;YACtB,IAAiB,QAAQ,CAoBxB;YApBD,WAAiB,QAAQ;gBACrB,MAAa,YAAa,SAAQ,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAEjD,eAAe,CAAC,QAAgB;;4BAClC,MAAM,GAAG,GAAG,2DAA2D,GAAG,QAAQ,CAAC;4BACnF,IAAI,YAA2B,CAAC;4BAChC,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAChE,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAC3C,OAAO,YAAY,CAAC;4BACxB,CAAC,CAAC,CAAC;wBAEP,CAAC;qBAAA;oBAGD,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,YAAY,EAAE,CAAC;wBACxC,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBAlBY,qBAAY,eAkBxB,CAAA;YACL,CAAC,EApBgB,QAAQ,GAAR,kBAAQ,KAAR,kBAAQ,QAoBxB;QACL,CAAC,EAtBgB,SAAS,GAAT,kBAAS,KAAT,kBAAS,QAsBzB;IACL,CAAC,EAxBgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAwBxB;AACL,CAAC,EA1BS,OAAO,KAAP,OAAO,QA0BhB"}
|
||||
@@ -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{getChartColumns(n){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/unibase/platform/analytics/chartcolumns/reportid/"+n;var t;return yield this.dataHelper().getAsync(i).then(function(n){return t=JSON.parse(n.result)})})}static Instance(){return this._instance===undefined&&(this._instance=new i),this._instance}}t.ChartManager=i})(i=t.Managers||(t.Managers={}))})(t=n.Analytics||(n.Analytics={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
|
||||
Исполняемый файл
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ichartmanager.js","sourceRoot":"","sources":["ichartmanager.ts"],"names":[],"mappings":""}
|
||||
Исполняемый файл
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ireportmanager.js","sourceRoot":"","sources":["ireportmanager.ts"],"names":[],"mappings":""}
|
||||
Исполняемый файл
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iviewermanager.js","sourceRoot":"","sources":["iviewermanager.ts"],"names":[],"mappings":""}
|
||||
@@ -0,0 +1,619 @@
|
||||
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 Analytics;
|
||||
(function (Analytics) {
|
||||
let Managers;
|
||||
(function (Managers) {
|
||||
class ReportManager extends Platform.Core.BaseManager {
|
||||
updatecolumns(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/datalistcolumnstring/reportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getViewableReports() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/viewablereportgroups';
|
||||
var groups;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getViewableReportsByparentgroupid(parentid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/viewablereportgroupswithparent/' + parentid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportGroupById(reportgroupid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/reportgroup/reportgroupid/' + reportgroupid;
|
||||
var groups;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportGroupByName(groupname) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/reportgroupname/reportgroupname/' + groupname;
|
||||
var groups;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null && response.result !== "")
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveReportGroup(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/savereportgroup';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
exportGroupreports(reportgroupid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/exportgroupreports/reportgroupid/' + reportgroupid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteReportGroup(reportgroupid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/deletereportgroup/reportgroupid/' + reportgroupid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportGroups() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/integrations/reportgroup/getreportfolders';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportsbyGroupId(groupid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/integrations/reportgroup/getreportbygroupid/reportgroupid/' + groupid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
checkReportGroupDependency(groupid, parentGroupId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/checkreportgroupdependency/groupid/' + groupid + '/parentgroupid/' + parentGroupId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updateReportGroupStatus(groupid, statusId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/updatereportgroupstatus/reportgroupid/' + groupid + '/statusid/' + statusId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportById(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/report/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportByUniqueId(uniqueid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/reportbyuniqueid/' + uniqueid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportByUniqueIdEncoded(encodedUniqueId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/reportbyuniqueidencoded/' + encodedUniqueId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "" && response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReports() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/getallreports';
|
||||
var reports;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
reports = JSON.parse(response.result);
|
||||
return reports;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportCategoriesByReportId(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/reportcategories/reportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportInfo(repObj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/reportinfo';
|
||||
return yield this.dataHelper().postAsync(url, repObj).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getFullReportInfo(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = `apis/v4/unibase/platform/analytics/getfullreportinfo/${reportid}`;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getSubReports(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let term = null;
|
||||
const url = 'apis/v4/unibase/platform/analytics/subreports/reportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getSubReportById(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let term = null;
|
||||
const url = 'apis/v4/unibase/platform/analytics/subreportsbyid/subreportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveReport(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/report';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteReport(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/deletereport/reportid/' + reportid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getColumns(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let term = null;
|
||||
const url = 'apis/v4/unibase/platform/analytics/reportcolumns/reportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getIsContactReportColumns(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let term = null;
|
||||
const url = 'apis/v4/unibase/platform/analytics/getiscontactreportcolumns/reportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportColumnsByAppId(installedAppId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/getreportcolumnsbyappid/installedappid/' + installedAppId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportColumnByAliasName(reportid, aliasName) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/getreportcolumnbyaliasname/reportid/' + reportid + '/aliasname/' + aliasName;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDataLists() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/datalists/getallnoninternaldatalists';
|
||||
var dataList;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
dataList = JSON.parse(response.result);
|
||||
return dataList;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDataListColumns(datalistid, term, parameters) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/datalistcolumns/datalistid/' + datalistid + '/term/' + term + '/parameters/' + parameters;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTableData(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/reportpreviewdata';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTenureData(postdata) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/tenuredata';
|
||||
return yield this.dataHelper().postAsync(url, postdata).then(function (response) {
|
||||
return JSON.parse(response.result);
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportNamesByGroup(reportgroupid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/reports/reportgroupid/' + reportgroupid;
|
||||
var reportDetails;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshReports() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/refreshreports/np';
|
||||
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
|
||||
return response.message;
|
||||
});
|
||||
});
|
||||
}
|
||||
getHeaderColumns(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/headers/reportid/' + reportid;
|
||||
var headers;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
headers = JSON.parse(response.result);
|
||||
return headers;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDynamicFilterData(reportid, columnname) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/dynamicfilterdata/reportid/' + reportid + '/columnname/' + columnname;
|
||||
var dynamicfilters;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
dynamicfilters = JSON.parse(response.result);
|
||||
return dynamicfilters;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDynamicFilterCascadingData(dynamicFilObj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/dynamicfiltercascadingdata';
|
||||
return yield this.dataHelper().postAsync(url, dynamicFilObj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDynamicFilters(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/dynamicfilters/reportid/' + reportid;
|
||||
var commonfilters;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
commonfilters = JSON.parse(response.result);
|
||||
return commonfilters;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportViewerData(repObj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/tabledata';
|
||||
return yield this.dataHelper().postAsync(url, repObj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportCount(repObj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/tablecount';
|
||||
return yield this.dataHelper().postAsync(url, repObj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getDistinctColumnData(datalistid, columnname, aggregationtypeid, fromdate, todate) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/distinctcolumndata/datalistid/' + datalistid + '/columnname/' + columnname + '/aggregationtypeid/' + aggregationtypeid + '/fromdate/' + fromdate + '/todate/' + todate;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response.result;
|
||||
});
|
||||
});
|
||||
}
|
||||
startDownloadLargeFile(repObj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/downloadreportlargefile';
|
||||
return yield this.dataHelper().postAsync(url, repObj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteDynamicFilter(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/deletedynamicfilter/reportid/' + reportid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCommonFilters(portletid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/commonfilters/portletid/' + portletid;
|
||||
var commonfilters;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result != "")
|
||||
commonfilters = JSON.parse(response.result);
|
||||
return commonfilters;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCommonFilterColumns(portletid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/commonfiltercolumns/portletid/' + portletid;
|
||||
var commonfiltercolumns;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
commonfiltercolumns = JSON.parse(response.result);
|
||||
return commonfiltercolumns;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCommonFilterColumnsByCommonFilterId(commonfilterid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/commonfiltercolumnsbycommonfilterid/commonfilterid/' + commonfilterid;
|
||||
var commonfiltercolumns;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
commonfiltercolumns = JSON.parse(response.result);
|
||||
return commonfiltercolumns;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCommonFiltersByWidgetId(widgetid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/commonfiltercolumnsbywidgetid/widgetid/' + widgetid;
|
||||
var commonfiltercolumns;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
commonfiltercolumns = JSON.parse(response.result);
|
||||
return commonfiltercolumns;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCommonFilterColumnData(cfObj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/commonfiltercolumndata';
|
||||
return yield this.dataHelper().postAsync(url, cfObj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCommonFilterTreeData(cfObj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/getcommonfiltertreedata';
|
||||
return yield this.dataHelper().postAsync(url, cfObj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteCommonFilterColumnId(commonfiltercolumnid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/deletecommonfiltercolumn/commonfiltercolumnid/' + commonfiltercolumnid;
|
||||
return yield this.dataHelper().postAsync(url, commonfiltercolumnid).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteCommonFilter(commonfilterid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/deletecommonfilter/commonfilterid/' + commonfilterid;
|
||||
return yield this.dataHelper().postAsync(url, commonfilterid).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
exportCommonFilter(commonfilterid, portletId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/exportcommonfilters/commonfilterid/' + commonfilterid + "/portletid/" + portletId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
exportReports() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/exportreports/';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
exportreport(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/exportreport/reportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportRoles(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/reportroles/reportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
addReportRole(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/savereportrole';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
removeReportRole(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/removereportrole';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
setViewable(reportId, viewAll) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/setasviewable/reportid/' + reportId + '/viewall/' + viewAll;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveReportRoleSettings(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/savereportrolesetting';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
refreshStaticObj(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/refreshstaticreportobj/reportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveDynamicFilter(reportid, array) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/savedynamicfilter/' + reportid + "/List";
|
||||
return yield this.dataHelper().postAsync(url, array).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updateReportStatus(reportid, statusid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/updatereportstatus/reportid/' + reportid + "/statusid/" + statusid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
duplicateReport(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/duplicatereport';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
exportDynamicFilters(reportId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/exportdynamicfilters/reportid/' + reportId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new ReportManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.ReportManager = ReportManager;
|
||||
})(Managers = Analytics.Managers || (Analytics.Managers = {}));
|
||||
})(Analytics = Platform.Analytics || (Platform.Analytics = {}));
|
||||
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
|
||||
})(Unibase || (Unibase = {}));
|
||||
Исполняемый файл
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
@@ -0,0 +1,247 @@
|
||||
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 Analytics;
|
||||
(function (Analytics) {
|
||||
let Managers;
|
||||
(function (Managers) {
|
||||
class ViewerManager extends Platform.Core.BaseManager {
|
||||
getTemplateViews() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/templateviews';
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTemplateView(templateviewid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/templateview/' + templateviewid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportTemplate(ReportId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/templateview/reportid/' + ReportId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return JSON.parse(response.result);
|
||||
});
|
||||
});
|
||||
}
|
||||
getSubTemplate(templateviewid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/subtemplates/templateviewid/' + templateviewid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveTemplateView(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/templateview';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteTemplate(templateviewid, reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/deletetemplateview/templateviewid/' + templateviewid + '/reportid/' + reportid;
|
||||
return yield this.dataHelper().postAsync(url, templateviewid).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getTemplates(templateNames) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/gettempates/tempatenames/' + templateNames;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCalendarView(calendarviewid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/calendarview/' + calendarviewid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveCalendarView(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/calendarview';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getMapView(mapviewid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/mapview/' + mapviewid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
saveMapView(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/mapview';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getCardView(CardViewId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/cardview/' + CardViewId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return JSON.parse(response.result);
|
||||
});
|
||||
});
|
||||
}
|
||||
getCardViewerData(repObj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/kanban';
|
||||
return yield this.dataHelper().postAsync(url, repObj).then(function (response) {
|
||||
return JSON.parse(response.result);
|
||||
});
|
||||
});
|
||||
}
|
||||
saveCardView(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/cardview';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getReportViewerTypes(reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/viewertypes/reportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
deleteViewer(reportid, viewerid, viewertypeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/deleteviewer/reportid/' + reportid + "/viewerid/" + viewerid + "/viewertypeid/" + viewertypeid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null) {
|
||||
response.result = JSON.parse(response.result);
|
||||
}
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
updateViewerStatus(viewerid, viewertypeid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/updateviewerstatus/viewerid/' + viewerid + "/viewertypeid/" + viewertypeid;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getViewer(viewerid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/getviewer/viewerid/' + viewerid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
getViewerRoles(viewerid, reportid) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/getviewerroles/viewerid/' + viewerid + '/reportid/' + reportid;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
addViewerRole(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/saveviewerrole';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
removeViewerRole(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/removeviewerrole';
|
||||
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
setViewable(viewerid, viewAll, viewerTypeId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/setasviewerviewable/viewerid/' + viewerid + '/viewall/' + viewAll + '/viewerTypeId/' + viewerTypeId;
|
||||
return yield this.dataHelper().postAsync(url, null).then(function (response) {
|
||||
if (response.result !== null)
|
||||
response.result = JSON.parse(response.result);
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
exportViewers(viewerId, reportId) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/unibase/platform/analytics/exportreportviewers/reportid/' + reportId + '/viewerid/' + viewerId;
|
||||
return yield this.dataHelper().getAsync(url).then(function (response) {
|
||||
return response;
|
||||
});
|
||||
});
|
||||
}
|
||||
static Instance() {
|
||||
if (this._instance === undefined)
|
||||
this._instance = new ViewerManager();
|
||||
return this._instance;
|
||||
}
|
||||
}
|
||||
Managers.ViewerManager = ViewerManager;
|
||||
})(Managers = Analytics.Managers || (Analytics.Managers = {}));
|
||||
})(Analytics = Platform.Analytics || (Platform.Analytics = {}));
|
||||
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
|
||||
})(Unibase || (Unibase = {}));
|
||||
Исполняемый файл
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Ссылка в новой задаче
Block a user