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 @@
{"version":3,"file":"iremindermanager.js","sourceRoot":"","sources":["iremindermanager.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
{"version":3,"file":"itaskmanager.js","sourceRoot":"","sources":["itaskmanager.ts"],"names":[],"mappings":""}
@@ -0,0 +1,181 @@
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 Communications;
(function (Communications) {
let Managers;
(function (Managers) {
class ReminderManager extends Platform.Core.BaseManager {
static Instance() {
if (this._instance === undefined)
this._instance = new ReminderManager();
return this._instance;
}
getReminders(ReminderType, pagesize) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/reminders/platform/getunreadreminders/ReminderType/' + ReminderType + '/PageSize/' + pagesize;
return yield this.dataHelper().getAsync(url).then(function (response) {
return JSON.parse(response.result);
});
});
}
changeReminderStatus(reminderid, status) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/reminders/platform/changereminderstatus/reminderid/' + reminderid + '/status/' + status;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getUnreadRemindersCount(ReminderType) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/reminders/platform/unreadreminderscount/remindertype/' + ReminderType;
return yield this.dataHelper().getAsync(url).then(function (response) {
return response;
});
});
}
getUnreadRemindersCountByUserId() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/reminders/platform/getunreadreminderscount';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
saveInstantReminder(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/instantreminders/platform/saveinstantreminder';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
sendInstantReminder(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/instantreminders/platform/sendinstantreminder';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getInstantReminder(instantreminderid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/instantreminders/platform/Getinstantreminder/instantreminderid/' + instantreminderid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getRemindersWithType(ExecutedActionId, IsTask) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/reminders/platform/getreminders/executedactionid/' + ExecutedActionId + '/istask/' + IsTask;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
updateIsDuplicate(instantreminderid, Isduplicate) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/instantreminders/platform/UpdateIsduplicate/instantreminderid/' + instantreminderid + '/Isduplicate/' + Isduplicate;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
getRecipients(instantreminderid, isduplicate) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/instantreminders/platform/Getrecipients/instantreminderid/' + instantreminderid + '/isduplicate/' + isduplicate;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response.result = JSON.parse(response.result);
}
return response;
});
});
}
markAsReadUnreadReminders(reminders) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/reminders/platform/MarkallUnreadreminders';
return yield this.dataHelper().postAsync(url, reminders).then(function (response) {
return response;
});
});
}
ChangeAllReminderStatusAsRead() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/reminders/platform/ChangeReminderStatusAsRead/np';
return yield this.dataHelper().postAsync(url, null).then(function (response) {
return response;
});
});
}
ExportSingleInstantReminder(Instantreminderid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/instantreminders/platform/ExportInstantReminder/InstantReminderId/' + Instantreminderid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response = response.result;
}
return response;
});
});
}
ExportInstantReminders() {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/instantreminders/platform/ExportAllnstantReminders';
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result != null) {
response = response.result;
}
return response;
});
});
}
SendToAll(refguid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/instantreminders/platform/SendInstantReminderToAllTenants/RefGuid/' + refguid;
return yield this.dataHelper().postAsync(url, null).then(function (response) {
if (response.result != null) {
response = response.result;
}
return response;
});
});
}
}
Managers.ReminderManager = ReminderManager;
})(Managers = Communications.Managers || (Communications.Managers = {}));
})(Communications = Platform.Communications || (Platform.Communications = {}));
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
})(Unibase || (Unibase = {}));
File diff suppressed because one or more lines are too long
@@ -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{static Instance(){return this._instance===undefined&&(this._instance=new i),this._instance}getReminders(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/unibase/reminders/platform/getunreadreminders/ReminderType/"+n+"/PageSize/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return JSON.parse(n.result)})})}changeReminderStatus(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/unibase/reminders/platform/changereminderstatus/reminderid/"+n+"/status/"+t;return yield this.dataHelper().postAsync(i,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getUnreadRemindersCount(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/reminders/platform/unreadreminderscount/remindertype/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n})})}getUnreadRemindersCountByUserId(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync("apis/v4/unibase/reminders/platform/getunreadreminderscount").then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}saveInstantReminder(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/instantreminders/platform/saveinstantreminder",n).then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}sendInstantReminder(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/instantreminders/platform/sendinstantreminder",n).then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}getInstantReminder(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/instantreminders/platform/Getinstantreminder/instantreminderid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}getRemindersWithType(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/unibase/reminders/platform/getreminders/executedactionid/"+n+"/istask/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}updateIsDuplicate(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/unibase/instantreminders/platform/UpdateIsduplicate/instantreminderid/"+n+"/Isduplicate/"+t;return yield this.dataHelper().postAsync(i,null).then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}getRecipients(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/unibase/instantreminders/platform/Getrecipients/instantreminderid/"+n+"/isduplicate/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!=null&&(n.result=JSON.parse(n.result)),n})})}markAsReadUnreadReminders(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/reminders/platform/MarkallUnreadreminders",n).then(function(n){return n})})}ChangeAllReminderStatusAsRead(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/unibase/reminders/platform/ChangeReminderStatusAsRead/np",null).then(function(n){return n})})}ExportSingleInstantReminder(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/instantreminders/platform/ExportInstantReminder/InstantReminderId/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!=null&&(n=n.result),n})})}ExportInstantReminders(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().getAsync("apis/v4/unibase/instantreminders/platform/ExportAllnstantReminders").then(function(n){return n.result!=null&&(n=n.result),n})})}SendToAll(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/instantreminders/platform/SendInstantReminderToAllTenants/RefGuid/"+n;return yield this.dataHelper().postAsync(t,null).then(function(n){return n.result!=null&&(n=n.result),n})})}}t.ReminderManager=i})(i=t.Managers||(t.Managers={}))})(t=n.Communications||(n.Communications={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));
@@ -0,0 +1,79 @@
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 Communications;
(function (Communications) {
let Managers;
(function (Managers) {
class TaskManager extends Unibase.Platform.Core.BaseManager {
getTasks(taskid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/communications/tasks/gettask/taskid/' + taskid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
changeApprovalStatus(obj) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/communications/tasks/changeapprovalstatus';
return yield this.dataHelper().postAsync(url, obj).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getTasksByRefId(refid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/communications/tasks/gettasksByrefid/refid/' + refid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getTaskByRefId(refid, taskid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/communications/tasks/gettaskByrefid/refid/' + refid + '/taskid/' + taskid;
return yield this.dataHelper().getAsync(url).then(function (response) {
if (response.result !== null)
response.result = JSON.parse(response.result);
return response;
});
});
}
getTasksByRefGuid(refguid) {
return __awaiter(this, void 0, void 0, function* () {
const url = 'apis/v4/unibase/communications/tasks/gettasksByrefguid/refguid/' + refguid;
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 TaskManager();
return this._instance;
}
}
Managers.TaskManager = TaskManager;
})(Managers = Communications.Managers || (Communications.Managers = {}));
})(Communications = Platform.Communications || (Platform.Communications = {}));
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
})(Unibase || (Unibase = {}));
@@ -0,0 +1 @@
{"version":3,"file":"taskmanager.js","sourceRoot":"","sources":["taskmanager.ts"],"names":[],"mappings":";;;;;;;;;AACA,IAAU,OAAO,CA4DhB;AA5DD,WAAU,OAAO;IACb,IAAiB,QAAQ,CA0DxB;IA1DD,WAAiB,QAAQ;QACrB,IAAiB,cAAc,CAwD9B;QAxDD,WAAiB,cAAc;YAC3B,IAAiB,QAAQ,CAsDxB;YAtDD,WAAiB,QAAQ;gBACrB,MAAa,WAAY,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAExD,QAAQ,CAAC,MAAc;;4BACzB,MAAM,GAAG,GAAG,sDAAsD,GAAG,MAAM,CAAC;4BAC5E,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAChE,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,CAAC,MAAc,EAAE,MAAc,EAAE,MAAc;;4BACrE,MAAM,GAAG,GAAG,mEAAmE,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,CAAC;4BACrI,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,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C,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,WAAW,EAAE,CAAC;wBACvC,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBAEJ;gBApDY,oBAAW,cAoDvB,CAAA;YACL,CAAC,EAtDgB,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,QAsDxB;QACL,CAAC,EAxDgB,cAAc,GAAd,uBAAc,KAAd,uBAAc,QAwD9B;IACL,CAAC,EA1DgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QA0DxB;AACL,CAAC,EA5DS,OAAO,KAAP,OAAO,QA4DhB"}
+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(t){let i;(function(t){let i;(function(t){class i extends n.Platform.Core.BaseManager{getTasks(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/communications/tasks/gettask/taskid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}changeApprovalStatus(n,t,i){return __awaiter(this,void 0,void 0,function*(){const r="apis/v4/unibase/communications/tasks/changeapprovalstatus/taskid/"+n+"/status/"+t+"/reason/"+i;return yield this.dataHelper().postAsync(r,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getTasksByRefId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/communications/tasks/gettasksByrefid/refid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getTaskByRefId(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/unibase/communications/tasks/gettaskByrefid/refid/"+n+"/taskid/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getTasksByRefGuid(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/unibase/communications/tasks/gettasksByrefguid/refguid/"+n;return yield this.dataHelper().getAsync(t).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.TaskManager=i})(i=t.Managers||(t.Managers={}))})(i=t.Communications||(t.Communications={}))})(t=n.Platform||(n.Platform={}))})(Unibase||(Unibase={}));