This commit is contained in:
2023-03-11 17:30:20 +00:00
commit b6c4e025bc
5124 changed files with 1153349 additions and 0 deletions
@@ -0,0 +1,80 @@
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 Automation;
(function (Automation) {
let Managers;
(function (Managers) {
class CommentManager extends Platform.Core.BaseManager {
getMyCommentsByGuid(refGuid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/communications/getmycommentsbyguid/refGuid/' + refGuid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getCommentsByParentId(Id) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/communications/getcommentsbyparentid/commentid/' + Id;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getCommentByCommentId(commentId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/communications/getcomment/commentid/' + commentId;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
saveComment(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/communications/savecomment';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
deleteComment(id) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/platform/communications/deletecomment/commentid/' + id;
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 CommentManager();
}
return this.instance;
}
}
Managers.CommentManager = CommentManager;
})(Managers = Automation.Managers || (Automation.Managers = {}));
})(Automation = Platform.Automation || (Platform.Automation = {}));
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
})(Unibase || (Unibase = {}));
@@ -0,0 +1 @@
{"version":3,"file":"commentmanager.js","sourceRoot":"","sources":["commentmanager.ts"],"names":[],"mappings":"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"}
+1
View File
@@ -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{getMyCommentsByGuid(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/platform/communications/getmycommentsbyguid/refGuid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getCommentsByParentId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/platform/communications/getcommentsbyparentid/commentid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getCommentByCommentId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/platform/communications/getcomment/commentid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}saveComment(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/platform/communications/savecomment",n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}deleteComment(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/platform/communications/deletecomment/commentid/"+n;return yield this.dataHelper().postAsync(t,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.CommentManager=i})(i=t.Managers||(t.Managers={}))})(t=n.Automation||(n.Automation={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
@@ -0,0 +1 @@
{"version":3,"file":"icommentmanager.js","sourceRoot":"","sources":["icommentmanager.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
{"version":3,"file":"irulemanager.js","sourceRoot":"","sources":["irulemanager.ts"],"names":[],"mappings":""}
@@ -0,0 +1,52 @@
var Unibase;
(function (Unibase) {
let Platform;
(function (Platform) {
let Automation;
(function (Automation) {
let Managers;
(function (Managers) {
class NotificationGroupManager extends Platform.Core.BaseManager {
static Instance() {
if (this.instance == undefined) {
this.instance = new NotificationGroupManager();
}
return this.instance;
}
saveNotificationGroup(model) {
const url = 'apis/v4/unibase/NotificationGroup/platform/SaveNotificationGroup';
return this.dataHelper().postAsync(url, model).then(function (response) {
return response;
});
}
GetNotificationGroupInfo(GroupId) {
const url = 'apis/v4/unibase/NotificationGroup/platform/GetNotificationGroupById/GroupId/' + GroupId;
return this.dataHelper().getAsync(url).then(function (response) {
var res = response.result;
if (response.result != null) {
res = JSON.parse(response.result);
}
return res;
});
}
GetNotificationGroups() {
const url = 'apis/v4/unibase/NotificationGroup/platform/GetNotificationGroups';
return this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response.result;
});
}
GetCurrentIndex() {
const url = 'apis/v4/unibase/NotificationGroup/platform/GetCurrentIndex';
return this.dataHelper().getAsync(url).then(function (response) {
return response;
});
}
}
Managers.NotificationGroupManager = NotificationGroupManager;
})(Managers = Automation.Managers || (Automation.Managers = {}));
})(Automation = Platform.Automation || (Platform.Automation = {}));
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
})(Unibase || (Unibase = {}));
@@ -0,0 +1 @@
{"version":3,"file":"notificationgroupmanager.js","sourceRoot":"","sources":["notificationgroupmanager.ts"],"names":[],"mappings":"AAAA,IAAU,OAAO,CAqDhB;AArDD,WAAU,OAAO;IACb,IAAiB,QAAQ,CAmDxB;IAnDD,WAAiB,QAAQ;QACrB,IAAiB,UAAU,CAiD1B;QAjDD,WAAiB,UAAU;YACvB,IAAiB,QAAQ,CA+CxB;YA/CD,WAAiB,QAAQ;gBACrB,MAAa,wBAAyB,SAAQ,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAEnE,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,QAAQ,IAAI,SAAS,EAAE;4BAC5B,IAAI,CAAC,QAAQ,GAAG,IAAI,wBAAwB,EAAE,CAAC;yBAClD;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;oBACD,qBAAqB,CAAC,KAAK;wBAEvB,MAAM,GAAG,GAAG,kEAAkE,CAAC;wBAC/E,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;4BAClE,OAAO,QAAQ,CAAC;wBACpB,CAAC,CAAC,CAAC;oBACP,CAAC;oBACD,wBAAwB,CAAC,OAAO;wBAE5B,MAAM,GAAG,GAAG,8EAA8E,GAAG,OAAO,CAAC;wBACrG,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;4BAC1D,IAAI,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAA;4BACzB,IAAI,QAAQ,CAAC,MAAM,IAAI,IAAI,EAAE;gCACzB,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;6BACrC;4BACD,OAAO,GAAG,CAAC;wBACf,CAAC,CAAC,CAAC;oBACP,CAAC;oBACD,qBAAqB;wBACjB,MAAM,GAAG,GAAG,kEAAkE,CAAC;wBAC/E,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;4BAC1D,IAAI,QAAQ,CAAC,MAAM,IAAI,IAAI,EAAE;gCACzB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;6BACjD;4BACD,OAAO,QAAQ,CAAC,MAAM,CAAC;wBAC3B,CAAC,CAAC,CAAC;oBACP,CAAC;oBACD,eAAe;wBACX,MAAM,GAAG,GAAG,4DAA4D,CAAC;wBACzE,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;4BAC1D,OAAO,QAAQ,CAAC;wBACpB,CAAC,CAAC,CAAC;oBACP,CAAC;iBAKJ;gBA7CY,iCAAwB,2BA6CpC,CAAA;YACL,CAAC,EA/CgB,QAAQ,GAAR,mBAAQ,KAAR,mBAAQ,QA+CxB;QACL,CAAC,EAjDgB,UAAU,GAAV,mBAAU,KAAV,mBAAU,QAiD1B;IACL,CAAC,EAnDgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAmDxB;AACL,CAAC,EArDS,OAAO,KAAP,OAAO,QAqDhB"}
@@ -0,0 +1,579 @@
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 Automation;
(function (Automation) {
let Managers;
(function (Managers) {
class RuleManager extends Platform.Core.BaseManager {
static Instance() {
if (this._instance === undefined)
this._instance = new RuleManager();
return this._instance;
}
saveRule(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/saverule';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
DeleteTemplateKeys(Templatekeyid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/DeleteEventTemplateKey/templatekeyid/' + Templatekeyid;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
return response;
});
});
}
getNotificationRules(installedappid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getnotificationrules/installedappid/' + installedappid;
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
getRule(ruleid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getrule/RuleId/' + ruleid + '';
let ruleinfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
ruleinfo = JSON.parse(response.result);
return ruleinfo;
});
});
}
getRuleEvents(ruleid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getruleevents/RuleId/' + ruleid + '';
let ruleeventinfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
ruleeventinfo = JSON.parse(response.result);
return ruleeventinfo;
});
});
}
getRuleEventsByEventGroupId(eventgroupid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getruleeventsbyeventgroupid/EventGroupId/' + eventgroupid + '';
let ruleeventinfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
ruleeventinfo = JSON.parse(response.result);
return ruleeventinfo;
});
});
}
saveRuleFlow(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/updateruleflow';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
saveRuleAction(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/saveruleaction';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getRuleAction(ruleactionid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getruleaction/RuleActionId/' + ruleactionid;
let ruleactioninfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
ruleactioninfo = JSON.parse(response.result);
return ruleactioninfo;
});
});
}
getAllRuleActions() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/_GetRuleActions';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response = JSON.parse(response.result);
}
return response;
});
});
}
getRuleActionsByInstalledApp(installedappid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/GetAllRuleActionsByInstalledAppId/installedappid/' + installedappid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response = JSON.parse(response.result);
}
return response;
});
});
}
getRuleActions(ruleid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getruleactions/RuleId/' + ruleid;
let ruleactioninfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
ruleactioninfo = JSON.parse(response.result);
return ruleactioninfo;
});
});
}
getRuleActionByEventGroupId(eventgroupid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getruleactionbyeventgroupid/EventGroupId/' + eventgroupid;
let ruleactioninfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
ruleactioninfo = JSON.parse(response.result);
return ruleactioninfo;
});
});
}
saveRuleEvent(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/saveruleevent';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
saveAdvRuleEvent(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/SaveAdvRuleEvent';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getRuleConditions(ruleid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getruleconditions/RuleId/' + ruleid;
let ruleconditioninfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
ruleconditioninfo = JSON.parse(response.result);
return ruleconditioninfo;
});
});
}
getRuleActionConditions(ruleid, ruleactionid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getruleactionconditions/RuleId/' + ruleid + '/RuleActionId/' + ruleactionid;
let ruleconditioninfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
ruleconditioninfo = JSON.parse(response.result);
return ruleconditioninfo;
});
});
}
saveEventTemplate(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/savetemplate';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
saveEventTemplates(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/savetemplates/List';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getEventTemplateKeys(templateid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/geteventtemplatekeys/TemplateId/' + templateid + '';
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
getInstalledApps() {
return __awaiter(this, void 0, void 0, function* () {
var installedapps;
const url = 'apis/v4/unibase/platform/apps/getinstalledapps';
return yield this.dataHelper().getAsync(url).then(function (response) {
installedapps = JSON.parse(response.result);
return installedapps;
});
});
}
saveRuleProvider(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/saveruleprovider';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
loadRuleProviders(InstalledAppId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getruleprovidersbyappid/InstalledAppId/' + InstalledAppId;
let ruleproviderinfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
ruleproviderinfo = JSON.parse(response.result);
return ruleproviderinfo;
});
});
}
getRuleProvider(ruleproviderid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getruleprovider/RuleProviderId/' + ruleproviderid;
let ruleproviderinfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
ruleproviderinfo = JSON.parse(response.result);
return ruleproviderinfo;
});
});
}
getTokens(ruleproviderid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getTokenss/RuleProviderId/' + ruleproviderid;
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
getContactColumns(ruleproviderid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getContactColumns/RuleProviderId/' + ruleproviderid;
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
getResultActions(ruleactionid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getResultActions/RuleActionId/' + ruleactionid;
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
getEventGroups(ruleid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/geteventgroups/RuleId/' + ruleid + '';
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
getActions() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getactions';
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
getEventTemplateNotesByLanguageId(doctypeid, languageid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/geteventtemplatenotesbylanguageid/DoctypeId/' + doctypeid + '/LanguageId/' + languageid;
let eventtemplatenoteinfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
eventtemplatenoteinfo = JSON.parse(response.result);
return eventtemplatenoteinfo;
});
});
}
refreshNotes(doctypeid, isrefresh) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/refreshnotes/DoctypeId/' + doctypeid + '/Isrefresh/' + isrefresh;
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
alert(response.message);
return response;
});
});
}
getRecipientProviders() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getrecipientproviders';
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
getActionRecipient(ruleactionid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getactionrecipient/RuleActionId/' + ruleactionid;
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
getAction(actionid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getaction/ActionId/' + actionid;
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
exportRuleProiders() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/exportruleproviders/';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = response.result;
}
return response;
});
});
}
exportSingleRuleProiders(ruleproviderid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/ExportSingleProvider/ruleproviderid/' + ruleproviderid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = response.result;
}
return response;
});
});
}
exportSingleRule(ruleid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/ExportSingleRule/RuleId/' + ruleid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = response.result;
}
return response;
});
});
}
exportRules() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/exportrules/';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = response.result;
}
return response;
});
});
}
getTimeLineLogs(refid, installedappid, ispriority) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/gettimelinelogs/refid/' + refid + '/installedappid/' + installedappid + '/ispriority/' + ispriority;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
deleteEventGroup(EventGroupId) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/deleteeventgroup/EventGroupId/' + EventGroupId;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result != null) {
response.result = response.result;
}
return response;
});
});
}
ExecutedActions() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/executedactions';
return yield this.dataHelper().getAsync(url).then(function (response) {
response.result = JSON.parse(response.result);
return response;
});
});
}
ExecutedActionsList(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/executedactionslist';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
response.result = JSON.parse(response.result);
return response;
});
});
}
UpdateRuleActionStatus(RuleActionId, Status) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/changeruleactionstatus/RuleActionId/' + RuleActionId + '/Status/' + Status;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getActiveRules(ruleid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getactiverules/RuleId/' + ruleid;
let activeruleinfo;
return yield this.dataHelper().getAsync(url).then(function (response) {
activeruleinfo = JSON.parse(response.result);
return activeruleinfo;
});
});
}
UpdateActiveRuleStatus(ActiveRuleId, Status) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/changeactiverulestatus/ActiveRuleId/' + ActiveRuleId + '/Status/' + Status;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
UpdateRuleScheduler(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/updatescheduledrule';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getSelectedRecipientsData(RecipientProviderId, SelectedIds, IdColumn) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getselectedrecipientsdata/recipientproviderid/' + RecipientProviderId + '/selectedids/' + SelectedIds + '/idcolumn/' + IdColumn;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getCreateFormsByInstalledAppId(Installedappid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/getCreateFormsByInstalledAppId/installedappid/' + Installedappid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getExternalContactsFromReport(reportid) {
return __awaiter(this, void 0, void 0, function* () {
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;
});
});
}
exporteventtemplates() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/ExportAllTemplates';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null) {
response = response.result;
}
return response;
});
});
}
exportsingletemplate(doctypeid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/ExportSingleDoctemplate/doctypeid/' + doctypeid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null) {
response = response.result;
}
return response;
});
});
}
GetFollwersByPkid(pkid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/GetFollowersByPkId/PrimaryKeyId/' + pkid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
GetFollwersByVersionGuid(versionGuid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/GetFollowersByVersionGuid/versionguid/' + versionGuid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
refreshNotificationProviders() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/RefreshNotificationProviders/np';
return yield this.dataHelper().postAsync(url, "{}").then(function (response) {
MessageHelper.Instance().showSuccess(response.message, "Unibase_ValidationSummary");
return response;
});
});
}
getImportLogs(logtype) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/notificationrule/platform/GetImportLogs/logType/' + logtype;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
}
Managers.RuleManager = RuleManager;
})(Managers = Automation.Managers || (Automation.Managers = {}));
})(Automation = Platform.Automation || (Platform.Automation = {}));
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
})(Unibase || (Unibase = {}));
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long