@sava-info-systems/api-maker-with-extensions 1.14.0 → 1.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[7368],{7368:(xe,S,s)=>{s.r(S),s.d(S,{SandboxSettingsM:()=>fe});var O=s(7664),D=s(3726),y=s(7359),M=s(5249),r=s(5861),e=s(4946),u=s(6990),v=s(3157),c=s(328),k=s(1162),h=s(553),I=s(4371),x=s(5852),b=s(3835),w=s(5405),Z=s(9961),p=s(5219),T=s(7414),U=s(2304),N=s(4977),P=s(3429),E=s(1344),J=s(7240),g=s(95),_=s(6814),R=s(8147),G=s(1861),q=s(756),f=s(5431),K=s(7680),C=s(4844),A=s(3259),Y=s(2660);function F(a,l){1&a&&(e.TgZ(0,"tr")(1,"th"),e._uU(2,"Name"),e.qZA(),e.TgZ(3,"th",28),e._uU(4,"Action"),e.qZA()())}function H(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"div",31)(1,"button",32),e.NdJ("click",function(n){e.CHM(t);const o=e.oxw().$implicit,d=e.oxw();return e.KtG(d.editAllowedOrigin(n,o))}),e._UZ(2,"i",33),e.qZA(),e.TgZ(3,"button",34),e.NdJ("click",function(n){e.CHM(t);const o=e.oxw().$implicit,d=e.oxw();return e.KtG(d.removeAllowedOrigin(n,o))}),e._UZ(4,"i",35),e.qZA()()}}function L(a,l){if(1&a&&(e.TgZ(0,"tr",29)(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e.YNc(4,H,5,0,"div",30),e.qZA()()),2&a){const t=l.$implicit;e.Q6J("pSelectableRow",t),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("ngIf",!t.isReadOnly)}}function Q(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"button",36),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.save())}),e._UZ(1,"i",37),e.TgZ(2,"span"),e._uU(3,"Save"),e.qZA()()}}let V=(()=>{class a{authCS;userS;eventCenterCS;notificationS;cs;confirmationService;modalId="idAllowedOriginModal";subscriptions=[];allowedOriginsGridData=[];saveSettings=new e.vpe;gridKeyAllowedOrigins="name";allowedOriginModel={domainName:"",domainNameBak:""};exampleOrigin=location.origin;allowedOriginData={mode:c.D.ADD};EFormMode=c.D;selectedRowsUI=[];constructor(t,i,n,o,d,m){this.authCS=t,this.userS=i,this.eventCenterCS=n,this.notificationS=o,this.cs=d,this.confirmationService=m}ngOnInit(){}save(){var t=this;return(0,r.Z)(function*(){if(t.allowedOriginData.mode===c.D.ADD)t.allowedOriginsGridData.push({name:t.allowedOriginModel.domainName});else{const i=t.allowedOriginsGridData.findIndex(n=>n.name===t.allowedOriginModel.domainNameBak);t.allowedOriginsGridData[i].name=t.allowedOriginModel.domainName}t.allowedOriginsGridData=u.uniqBy(t.allowedOriginsGridData,"name"),t.saveSettings.emit(),t.hideAllowedOriginModal()})()}showAllowedOriginModal(){$("#idAllowedOriginModal").modal("show")}hideAllowedOriginModal(){$("#idAllowedOriginModal").modal("hide")}addAllowedOrigin(){var t=this;return(0,r.Z)(function*(){t.allowedOriginModel.domainNameBak=t.allowedOriginModel.domainName="",t.allowedOriginData.mode=c.D.ADD,t.showAllowedOriginModal()})()}editAllowedOrigin(t,i){var n=this;return(0,r.Z)(function*(){n.allowedOriginModel.domainNameBak=n.allowedOriginModel.domainName=i.name,n.allowedOriginData.mode=c.D.EDIT,n.showAllowedOriginModal()})()}doubleClick(){this.editAllowedOrigin(null,this.selectedRowsUI[0]).then()}removeAllowedOrigin(t,i){var n=this;return(0,r.Z)(function*(){var o;n.confirmationService.confirm({message:n.cs.amUserSandboxDepSetting.removePermanentAllowedOriginConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(o=(0,r.Z)(function*(){yield n.removeAO(t,i)}),function(){return o.apply(this,arguments)})})})()}removeAO(t,i){var n=this;return(0,r.Z)(function*(){const o=n.allowedOriginsGridData.findIndex(d=>d.name===i.name);n.allowedOriginsGridData.splice(o,1),n.saveSettings.emit()})()}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}static \u0275fac=function(i){return new(i||a)(e.Y36(x.D),e.Y36(b.K),e.Y36(w.M),e.Y36(Z.W),e.Y36(T.L),e.Y36(p.YP))};static \u0275cmp=e.Xpm({type:a,selectors:[["allowed-origin-c"]],inputs:{allowedOriginsGridData:["allowedOrigins","allowedOriginsGridData"]},outputs:{saveSettings:"saveSettings"},decls:37,vars:10,consts:[[1,"card","shadow-sm","mt-2","mr-1","mb-5",2,"height","384px"],[1,"card-header"],[1,"fas","fa-link","text-yellow","fa-fw","mr-1"],["pTooltip","Add New",1,"float-right","cursor-pointer","mr-1",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],[1,"card-body","p-0","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","350px",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["aria-hidden","true","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal",3,"id"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header"],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],["aria-label","Close","data-dismiss","modal","type","button",1,"close"],["aria-hidden","true"],[1,"fas","fa-window-close"],[1,"modal-body"],[1,"form-group","row","mt-3","mb-0"],[1,"col-4","col-form-label","col-form-label-sm","text-right"],[1,"col-6"],["name","name","spellcheck","false","type","text","placeholder","Please provide domain name",1,"form-control","form-control-sm",3,"ngModel","blur","ngModelChange"],[1,"form-group","row"],[1,"col-form-label","col-form-label-sm","text-info","font-monospaced"],[1,"modal-footer"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"click",4,"ngIf"],[2,"width","100px"],[3,"pSelectableRow"],["class","text-center",4,"ngIf"],[1,"text-center"],["pTooltip","Edit","tooltipPosition","left",1,"btn","btn-xsm-custom","mr-1",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw","cursor-pointer"],["pTooltip","Permanent Delete","tooltipPosition","left",1,"btn","btn-xsm-custom","ml-1",3,"click"],[1,"far","fa-trash-alt","fa-fw","cursor-pointer","text-danger"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"]],template:function(i,n){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"i",2),e._uU(4," Allowed Origins"),e.qZA(),e.TgZ(5,"span",3),e.NdJ("click",function(){return n.addAllowedOrigin()}),e._UZ(6,"i",4),e.qZA()(),e.TgZ(7,"div",5)(8,"p-table",6),e.NdJ("selectionChange",function(d){return n.selectedRowsUI=d})("dblclick",function(){return n.doubleClick()}),e.YNc(9,F,5,0,"ng-template",7),e.YNc(10,L,5,3,"ng-template",8),e.qZA()()(),e.TgZ(11,"div",9)(12,"div",10)(13,"div",11)(14,"div",12)(15,"span"),e._UZ(16,"i",13),e._uU(17," Allowed Origins"),e.qZA(),e.TgZ(18,"button",14)(19,"span",15),e._UZ(20,"i",16),e.qZA()()(),e.TgZ(21,"div",17)(22,"div",18)(23,"label",19),e._uU(24,"Domain name"),e.qZA(),e.TgZ(25,"div",20)(26,"input",21),e.NdJ("blur",function(){return n.allowedOriginModel.domainName=n.allowedOriginModel.domainName.toLowerCase()})("ngModelChange",function(d){return n.allowedOriginModel.domainName=d}),e.qZA()()(),e.TgZ(27,"div",22),e._UZ(28,"label",19),e.TgZ(29,"div",20)(30,"label",23),e._uU(31),e.qZA()()()(),e.TgZ(32,"div",24)(33,"button",25),e._UZ(34,"i",26),e._uU(35," Close"),e.qZA(),e.YNc(36,Q,4,0,"button",27),e.qZA()()()()),2&i&&(e.xp6(8),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",n.selectedRowsUI)("dataKey",n.gridKeyAllowedOrigins)("scrollable",!0)("value",n.allowedOriginsGridData),e.xp6(3),e.s9C("id",n.modalId),e.xp6(15),e.Q6J("ngModel",n.allowedOriginModel.domainName),e.xp6(5),e.hij("(Ex: ",n.exampleOrigin,")"),e.xp6(5),e.Q6J("ngIf",n.allowedOriginData.mode!==n.EFormMode.VIEW))},dependencies:[g.Fj,g.JJ,g.On,_.O5,Y.y,f.iA,p.jx,f.Ei,A.u],encapsulation:2})}return a})();const B=["addNpmLibC"],j=["allowedOriginC"],W=["SandboxSettingsPkgVersionsModalC"];function z(a,l){1&a&&(e.TgZ(0,"tr"),e._UZ(1,"th",49)(2,"th",50),e.TgZ(3,"th",51),e._uU(4,"Version"),e.qZA(),e.TgZ(5,"th"),e._uU(6,"Name"),e.qZA(),e.TgZ(7,"th",52),e._uU(8,"Sub Dependencies"),e.qZA(),e.TgZ(9,"th",53),e._uU(10,"Third Party API"),e.qZA(),e.TgZ(11,"th",54),e._uU(12,"Default"),e.qZA(),e.TgZ(13,"th",55),e._uU(14,"Action"),e.qZA()())}function X(a,l){1&a&&e._UZ(0,"i",64)}function ee(a,l){1&a&&e._UZ(0,"i",65)}function te(a,l){if(1&a&&(e.TgZ(0,"div",67),e._uU(1),e.qZA()),2&a){const t=l.$implicit;e.xp6(1),e.AsE("",t.name," @",t.version,"")}}function ne(a,l){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,te,2,2,"div",66),e.qZA()),2&a){const t=l.$implicit;e.xp6(1),e.Q6J("ngForOf",t.dependencies)}}function ie(a,l){1&a&&e._UZ(0,"i",68)}function ae(a,l){1&a&&e._UZ(0,"i",68)}function oe(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"div",61)(1,"button",69),e.NdJ("click",function(n){e.CHM(t);const o=e.oxw().$implicit,d=e.oxw(2);return e.KtG(d.editData(n,o))}),e._UZ(2,"i",70),e.qZA(),e.TgZ(3,"button",71),e.NdJ("click",function(n){e.CHM(t);const o=e.oxw().$implicit,d=e.oxw(2);return e.KtG(d.removePermanentDialog(n,o))}),e._UZ(4,"i",72),e.qZA()()}}function se(a,l){if(1&a&&(e.TgZ(0,"tr",56)(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e.YNc(4,X,1,0,"i",57),e.YNc(5,ee,1,0,"i",58),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA(),e.TgZ(8,"td"),e._uU(9),e.qZA(),e.TgZ(10,"td")(11,"div",59),e.YNc(12,ne,2,1,"div",60),e.qZA()(),e.TgZ(13,"td",61),e.YNc(14,ie,1,0,"i",62),e.qZA(),e.TgZ(15,"td",61),e.YNc(16,ae,1,0,"i",62),e.qZA(),e.TgZ(17,"td"),e.YNc(18,oe,5,0,"div",63),e.qZA()()),2&a){const t=l.$implicit,i=l.rowIndex;e.Q6J("pSelectableRow",t),e.xp6(2),e.Oqu(i+1),e.xp6(2),e.Q6J("ngIf",t.active),e.xp6(1),e.Q6J("ngIf",!t.active),e.xp6(2),e.Oqu(t.version),e.xp6(2),e.Oqu(t.name),e.xp6(3),e.Q6J("ngForOf",t.subDependencies),e.xp6(2),e.Q6J("ngIf",t.isThirdPartyApi),e.xp6(2),e.Q6J("ngIf",t.isDefault),e.xp6(2),e.Q6J("ngIf",!t.isReadOnly)}}function le(a,l){1&a&&(e.TgZ(0,"tr"),e._UZ(1,"th",49),e.TgZ(2,"th",51),e._uU(3,"Version"),e.qZA(),e.TgZ(4,"th"),e._uU(5,"Name"),e.qZA(),e.TgZ(6,"th",73),e._uU(7,"Third Party API"),e.qZA(),e.TgZ(8,"th",51),e._uU(9,"Default"),e.qZA()())}function de(a,l){1&a&&e._UZ(0,"i",68)}function re(a,l){1&a&&e._UZ(0,"i",68)}function ce(a,l){if(1&a&&(e.TgZ(0,"tr",56)(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.TgZ(7,"td"),e.YNc(8,de,1,0,"i",62),e.qZA(),e.TgZ(9,"td"),e.YNc(10,re,1,0,"i",62),e.qZA()()),2&a){const t=l.$implicit,i=l.rowIndex;e.Q6J("pSelectableRow",t),e.xp6(2),e.Oqu(i+1),e.xp6(2),e.Oqu(t.version),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("ngIf",t.isThirdPartyApi),e.xp6(2),e.Q6J("ngIf",t.isDefault)}}function ge(a,l){1&a&&e._UZ(0,"p-progressSpinner",74)}function me(a,l){if(1&a){const t=e.EpF();e.TgZ(0,"div",5)(1,"div",6)(2,"button",7),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.loadGridData())}),e._UZ(3,"i",8),e._uU(4," Refresh "),e.qZA(),e.TgZ(5,"button",9),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.saveSettings(n.EFormMode.EDIT))}),e._UZ(6,"i",10),e._uU(7," Save "),e.qZA()(),e.TgZ(8,"div",11)(9,"div",12)(10,"span"),e._UZ(11,"i",13),e._uU(12," Settings"),e.qZA()(),e.TgZ(13,"div",14)(14,"div",15)(15,"div",16)(16,"label",17),e._uU(17,"Sandbox Count"),e.qZA(),e.TgZ(18,"input",18),e.NdJ("ngModelChange",function(n){e.CHM(t);const o=e.oxw();return e.KtG(o.settings.sandbox.sandboxCountOverrideAdmin=n)}),e.qZA(),e.TgZ(19,"div",19)(20,"span",20)(21,"span"),e._uU(22,"1 CPU core will have one process and one process will have these many sandbox."),e.qZA(),e._UZ(23,"br"),e.TgZ(24,"span"),e._uU(25,"Ideally it should be 1-2."),e.qZA()()()(),e.TgZ(26,"div",21)(27,"label",17),e._uU(28,"Automatic Sandbox Restart In Seconds"),e.qZA(),e.TgZ(29,"input",22),e.NdJ("ngModelChange",function(n){e.CHM(t);const o=e.oxw();return e.KtG(o.settings.sandbox.automaticSandboxRestartInSeconds=n)}),e.qZA(),e.TgZ(30,"div",19)(31,"span",20)(32,"span",23),e._uU(33,"All sandbox will be restarted automatically after these many seconds across all servers, without failing any request."),e.qZA(),e._UZ(34,"br"),e.qZA()()()()()(),e.TgZ(35,"div",11)(36,"div",12)(37,"span"),e._UZ(38,"i",24),e._uU(39," Sandbox Dependencies"),e.qZA(),e.TgZ(40,"div",25)(41,"a",26),e._UZ(42,"img",27),e.qZA()(),e.TgZ(43,"span",28),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.showLibraryModel())}),e._UZ(44,"i",29),e.qZA()(),e.TgZ(45,"div",30)(46,"p-tabView",31)(47,"p-tabPanel",32)(48,"p-table",33),e.NdJ("selectionChange",function(n){e.CHM(t);const o=e.oxw();return e.KtG(o.selectedRowsUI=n)})("dblclick",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.summaryTableDoubleClick())}),e.YNc(49,z,15,0,"ng-template",34),e.YNc(50,se,19,10,"ng-template",35),e.qZA()(),e.TgZ(51,"p-tabPanel",36)(52,"p-table",37),e.NdJ("selectionChange",function(n){e.CHM(t);const o=e.oxw();return e.KtG(o.selectedRowsPackageJson=n)}),e.YNc(53,le,10,0,"ng-template",34),e.YNc(54,ce,11,6,"ng-template",35),e.qZA()()(),e.YNc(55,ge,1,0,"p-progressSpinner",38),e.qZA()(),e.TgZ(56,"div",11)(57,"div",12)(58,"span"),e._UZ(59,"i",39),e._uU(60," Docker File"),e.qZA(),e.TgZ(61,"span",40),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.resetDockerfileToDefault())}),e._UZ(62,"i",41),e.qZA(),e.TgZ(63,"span",42),e.NdJ("click",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.showDockerImageBuildLogs())}),e._UZ(64,"i",43),e.qZA()(),e.TgZ(65,"div",44)(66,"app-monaco-editor",45),e.NdJ("editorGenerated",function(n){e.CHM(t);const o=e.oxw();return e.KtG(o.editorGenerated(n))}),e.qZA()()(),e.TgZ(67,"allowed-origin-c",46,47),e.NdJ("saveSettings",function(){e.CHM(t);const n=e.oxw();return e.KtG(n.saveSettings(n.EFormMode.EDIT))}),e.qZA(),e.TgZ(69,"div",48),e._uU(70,"\xa0"),e.qZA()()}if(2&a){const t=e.oxw();e.xp6(18),e.Q6J("ngModel",t.settings.sandbox.sandboxCountOverrideAdmin),e.xp6(11),e.Q6J("ngModel",t.settings.sandbox.automaticSandboxRestartInSeconds),e.xp6(19),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",t.selectedRowsUI)("dataKey",t.gridKey)("scrollable",!0)("value",t.packageSummary),e.xp6(4),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",t.selectedRowsPackageJson)("dataKey",t.gridKey)("scrollable",!0)("value",t.finalPackageJson),e.xp6(3),e.Q6J("ngIf",t.loading.form),e.xp6(11),e.Q6J("editorOptions",t.editorOptionsDocker),e.xp6(1),e.Q6J("allowedOrigins",t.settings.allowedOrigins)}}const pe=[{path:"main",component:(()=>{class a{authCS;userS;eventCenterCS;notificationS;confirmationService;cs;monacoS;tpStoreApiVersionS;instanceS;feStoreCS;generalCS;STORE_BE_HOST_PORT=h.N.STORE_BE_HOST_PORT;BE_HOST_PORT=h.N.BE_HOST_PORT;subscriptions=[];data={mode:c.D.ADD,eventChannel:new e.vpe,formData:void 0};packageSummary=[];selectedRowsUI=[];gridKey="rowId";counter;EFormMode=c.D;finalPackageJson=[];selectedRowsPackageJson=[];showAll=!1;loading={form:!1};settings;tpNpmPackageAndVersion={};tpApiVersionIdMap;tpApiBundleIdMap;editorDocker;editorOptionsDocker={readOnly:!1,language:"dockerfile",contextmenu:!0};addNpmLibC;allowedOriginC;SandboxSettingsPkgVersionsModalC;constructor(t,i,n,o,d,m,ue,_e,Se,ve,he){this.authCS=t,this.userS=i,this.eventCenterCS=n,this.notificationS=o,this.confirmationService=d,this.cs=m,this.monacoS=ue,this.tpStoreApiVersionS=_e,this.instanceS=Se,this.feStoreCS=ve,this.generalCS=he}ngOnInit(){var t=this;return(0,r.Z)(function*(){t.subscriptions.push(t.eventCenterCS.sandboxDep.subscribe(i=>{if(t.data.mode===c.D.ADD){for(const n of t.packageSummary)if(n.name===i.name&&n.isDefault)return void t.notificationS.showError("You can not override default package.");t.packageSummary.unshift(i),t.rowIdSet(),t.notificationS.showSuccess(t.cs.amUserSandboxDepSetting.addSuccess),t.addNpmLibC.hideModal()}})),yield t.loadGridData(),t.generalCS.setNewTitle("API Maker - Sandbox Settings")})()}loadGridData(){var t=this;return(0,r.Z)(function*(){const i=yield t.userS.getAdminSettings(t.authCS.getUserId()).toPromise();t.settings=i.data||{},t.packageSummary=t.settings.sandbox.dependenciesUI.nodeJS,t.finalPackageJson=t.settings.sandbox.dependencies.nodeJS;const n=t.settings.allowedOrigins||[];t.settings.sandbox&&(t.settings.sandbox.automaticSandboxRestartInSeconds=t.settings.sandbox.automaticSandboxRestartInSeconds||null),n.sort(),t.settings.allowedOrigins=u.map(n,o=>({name:o})),t.rowIdSet();for(const o of t.finalPackageJson)o.rowId=(t.counter++).toString();t.generalCS.setValueInEditor(t,"editorDocker",t.settings.dockerFile||"")})()}editorGenerated(t){var i=this;return(0,r.Z)(function*(){i.editorDocker=t,yield i.monacoS.loadSchemaEditorSettings(i.BE_HOST_PORT,i.authCS.getUserId(),null),i.monacoS.addSaveCodeKeyBinding(t,n=>{i.saveSettings()})})()}rowIdSet(){this.counter=1;for(const t of this.packageSummary)t.rowId=(this.counter++).toString()}showLibraryModel(){this.data.formData=void 0,this.data.mode=c.D.ADD,this.data.eventChannel.emit({action:v.F.OPEN_FORM_IN_ADD_MODE}),this.addNpmLibC.showModal()}saveSettings(t){var i=this;return(0,r.Z)(function*(){try{const n=i.authCS.getUserId();if(i?.settings?.sandbox?.sandboxCountOverrideAdmin>5)return void i.notificationS.showError("More than 5 sandbox are not allowed.");const o={settings:{sandbox:{sandboxCountOverrideAdmin:i.settings.sandbox.sandboxCountOverrideAdmin,automaticSandboxRestartInSeconds:i.settings.sandbox.automaticSandboxRestartInSeconds||null,dependencies:{nodeJS:i.packageSummary.filter(m=>!m.isReadOnly&&!m.isThirdPartyApi&&!m.isDefault)}},dockerFile:i.editorDocker.getValue(),allowedOrigins:u.map(i.allowedOriginC.allowedOriginsGridData,"name").sort()}};(yield i.userS.put(n,o,{select:k.iH._id}).toPromise())&&(t===c.D.EDIT?i.notificationS.showSuccess(i.cs.amUserSandboxDepSetting.editSuccess):"DELETE"===t?i.notificationS.showSuccess(i.cs.amUserSandboxDepSetting.removePermanent):t||i.notificationS.showSuccess("Success")),i.loadGridData().then()}catch(n){i.loading.form=!1,i.notificationS.showErrorFromResponse(n.error||n,"Unable to save settings.")}})()}removePermanentDialog(t,i){var n=this;return(0,r.Z)(function*(){var o;t.stopPropagation(),t.preventDefault(),n.confirmationService.confirm({message:n.cs.amUserSandboxDepSetting.removePermanentConfirm,header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:(o=(0,r.Z)(function*(){yield n.removePermanent(i)}),function(){return o.apply(this,arguments)})})})()}removePermanent(t){var i=this;return(0,r.Z)(function*(){i.packageSummary.splice(i.packageSummary.indexOf(t),1),i.saveSettings("DELETE").then()})()}loadDependenciesAndSchemas(){var t=this;return(0,r.Z)(function*(){const{tpNpmPackageAndVersion:i,tpApiBundleIdMap:n,tpApiVersionIdMap:o}=(yield t.instanceS.getInstalledPackagesAndSchemas().toPromise()).data;t.tpNpmPackageAndVersion=i,t.tpApiBundleIdMap=n,t.tpApiVersionIdMap=o})()}commonPackageAddRemoveTasks(){var t=this;return(0,r.Z)(function*(){yield t.loadDependenciesAndSchemas()})()}editData(t,i){var n=this;return(0,r.Z)(function*(){t?.stopPropagation(),t?.preventDefault(),n.data.formData=i,n.data.mode=c.D.EDIT,n.data.eventChannel.emit({action:v.F.OPEN_FORM_IN_EDIT_MODE}),yield n.SandboxSettingsPkgVersionsModalC.showPkgVersions(i.name)})()}hideNpmLibModel(){this.addNpmLibC.hideModal()}resetDockerfileToDefault(){var t=this;return(0,r.Z)(function*(){try{const i=yield t.feStoreCS.geDefaultDockerfile(t.BE_HOST_PORT);t.editorDocker.setValue(i.data)}catch(i){t.notificationS.showErrorFromResponse(i.error||i,"Unable to reset docker file.")}})()}showDockerImageBuildLogs(){var t=this;return(0,r.Z)(function*(){const i=t.eventCenterCS.headerC,n=i.systemLogsModelC.systemLogsListC.filterOptions.find(o=>o.value===I.g.DOCKER_IMAGE_BUILD_LOGS);i.showSystemLogsModal(n)})()}summaryTableDoubleClick(){var t=this;setTimeout((0,r.Z)(function*(){if(t.selectedRowsUI[0]){let i;for(const n of t.packageSummary)n[t.gridKey]===t.selectedRowsUI[0].rowId&&(i=n);i&&!i.isReadOnly&&(yield t.editData(null,i))}}),100)}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}static \u0275fac=function(i){return new(i||a)(e.Y36(x.D),e.Y36(b.K),e.Y36(w.M),e.Y36(Z.W),e.Y36(p.YP),e.Y36(T.L),e.Y36(U.b),e.Y36(N.f),e.Y36(P.E),e.Y36(E.e),e.Y36(J.b))};static \u0275cmp=e.Xpm({type:a,selectors:[["app-sandbox-settings-c"]],viewQuery:function(i,n){if(1&i&&(e.Gf(B,5),e.Gf(j,5),e.Gf(W,5)),2&i){let o;e.iGM(o=e.CRH())&&(n.addNpmLibC=o.first),e.iGM(o=e.CRH())&&(n.allowedOriginC=o.first),e.iGM(o=e.CRH())&&(n.SandboxSettingsPkgVersionsModalC=o.first)}},decls:6,vars:9,consts:[["class","pt-1 pl-5 pr-5 full-body overflow-auto",4,"ngIf"],[3,"data","pkgVersionModal","modalId","hostAndPort"],["addNpmLibC",""],[3,"modalId","hostAndPort","data","dependencies","saveUpdateSandboxDep","hideLibraryModelEventEmitter","installed"],["pkgVersionsModalC","","SandboxSettingsPkgVersionsModalC",""],[1,"pt-1","pl-5","pr-5","full-body","overflow-auto"],[1,"cursor-pointer","text-right","mr-1"],[1,"btn","btn-primary","btn-sm","mt-1","mr-1",3,"click"],[1,"fas","fa-sync-alt","text-info","fa-fw","cursor-pointer"],[1,"btn","btn-success","btn-sm","mt-1",3,"click"],[1,"fas","fa-save","fa-fw","cursor-pointer"],[1,"card","shadow-sm","mt-2","mr-1"],[1,"card-header"],[1,"fas","fa-cog","text-danger","fa-fw","mr-1"],[1,"card-body","p-3","overflow-hidden"],[1,"container"],[1,"row"],[1,"col-4","col-form-label","col-form-label-sm","text-right"],["name","Setting","type","number","placeholder","Please provide value",1,"col-2","form-control","form-control-sm",3,"ngModel","ngModelChange"],[1,"col-6","pr-0"],[1,"small","text-info"],[1,"row","mt-3"],["name","automaticSandboxRestartInSeconds","type","number","placeholder","Automatic sandbox restart in seconds",1,"col-2","form-control","form-control-sm",3,"ngModel","ngModelChange"],[1,"mt-2","d-inline-block"],[1,"fas","fa-box","text-warning","fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/settings/sandboxSettings.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-2","mr-1","mt-n1",2,"font-size","25px"],["tooltipPosition","left","pTooltip","Add New",1,"float-right","cursor-pointer","mr-1",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],[1,"card-body","p-2","overflow-hidden"],[1,"w-100"],["header","Summary"],["styleClass","p-datatable-striped","scrollHeight","400px",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],["header","Final package.json"],["styleClass","p-datatable-striped","scrollHeight","400px",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"fab","fa-docker","fa-fw","mr-1","text-info"],["tooltipPosition","left","pTooltip","Reset dockerfile to default",1,"float-right","cursor-pointer","ml-2",3,"click"],[1,"fas","fa-undo","text-warning","fa-fw"],["tooltipPosition","left","pTooltip","View logs of docker image build",1,"float-right","cursor-pointer","ml-2",3,"click"],[1,"fas","fa-water","text-info","fa-fw"],[1,"card-body","p-1","overflow-hidden",2,"height","400px"],[3,"editorOptions","editorGenerated"],[3,"allowedOrigins","saveSettings"],["allowedOriginC",""],[1,"mb-5"],[2,"width","55px"],[2,"width","40px"],[2,"width","100px"],[2,"width","200px"],[1,"text-center",2,"width","150px"],[1,"text-center",2,"width","100px"],[1,"text-center",2,"width","130px"],[3,"pSelectableRow"],["class","fas fa-circle fa-fw text-success text-v-small",4,"ngIf"],["class","fas fa-circle fa-fw text-muted text-v-small",4,"ngIf"],[1,"small"],[4,"ngFor","ngForOf"],[1,"text-center"],["class","fas fa-check fa-fw text-success pt-1",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"fas","fa-circle","fa-fw","text-success","text-v-small"],[1,"fas","fa-circle","fa-fw","text-muted","text-v-small"],["class","pl-3",4,"ngFor","ngForOf"],[1,"pl-3"],[1,"fas","fa-check","fa-fw","text-success","pt-1"],["pTooltip","Edit","tooltipPosition","left",1,"btn","btn-xsm-custom","mr-1",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw","cursor-pointer"],["pTooltip","Permanent Delete","tooltipPosition","left",1,"btn","btn-xsm-custom","ml-1",3,"click"],[1,"far","fa-trash-alt","fa-fw","cursor-pointer","text-danger"],[2,"width","150px"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(i,n){if(1&i&&(e.YNc(0,me,71,17,"div",0),e._UZ(1,"find-npm-package",1,2),e.TgZ(3,"app-sandbox-settings-pkg-versions-modal",3,4),e.NdJ("saveUpdateSandboxDep",function(d){return n.saveSettings(d)})("hideLibraryModelEventEmitter",function(){return n.hideNpmLibModel()})("installed",function(){return n.commonPackageAddRemoveTasks()}),e.qZA()),2&i){const o=e.MAs(4);e.Q6J("ngIf",n.settings),e.xp6(1),e.Q6J("data",n.data)("pkgVersionModal",o)("modalId","idAddNpmSandboxSettings")("hostAndPort",n.STORE_BE_HOST_PORT),e.xp6(2),e.Q6J("modalId","idAddNpmSandboxSettingsEdit")("hostAndPort",n.STORE_BE_HOST_PORT)("data",n.data)("dependencies",n.tpNpmPackageAndVersion)}},dependencies:[g.Fj,g.wV,g.JJ,g.On,_.sg,_.O5,R.K,G.S,q.O,f.iA,p.jx,f.Ei,K.G,C.xf,C.x4,A.u,V],encapsulation:2})}return a})(),canActivate:[D.P]}];let fe=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=e.oAB({type:a});static \u0275inj=e.cJS({imports:[O.Bz.forChild(pe),y.u,M.ApiTestingM]})}return a})()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[7987],{1137:(D,C,a)=>{a.d(C,{u:()=>ne});var m=a(5861),l=a(3157),d=a(328),p=a(6990),E=a(9361),u=a(1162),I=a(7672),g=a(553),M=a(5085),P=a(1601),f=a(3531),O=a(9989),e=a(4946),S=a(9961),F=a(7629),T=a(7240),A=a(3429),b=a(7414),U=a(5852),R=a(2304),B=a(2915),y=a(6814),x=a(2660),Z=a(8917),L=a(5860),W=a(756),K=a(7680),h=a(4844),N=a(3259),H=a(5025);const J=["QuillEditorC"],Q=["insertCodeModalC"],G=["monacoEditorModalC"];function V(s,_){if(1&s&&e._UZ(0,"span",31),2&s){const t=e.oxw();e.Q6J("innerHTML",t.userNoteHtml,e.oJD)}}function w(s,_){1&s&&(e.TgZ(0,"span"),e._UZ(1,"i",32),e._uU(2," Add Custom API"),e.qZA())}function Y(s,_){1&s&&(e.TgZ(0,"span"),e._UZ(1,"i",33),e._uU(2," View Custom API"),e.qZA())}function j(s,_){if(1&s&&(e.TgZ(0,"span"),e._UZ(1,"i",34),e._uU(2," Edit Custom API "),e.TgZ(3,"span",35),e._uU(4),e.qZA()()),2&s){const t=e.oxw();e.xp6(4),e.Oqu((null==t.updateObj?null:t.updateObj.name)||"")}}function k(s,_){if(1&s){const t=e.EpF();e.TgZ(0,"div",36)(1,"app-monaco-editor",37),e.NdJ("editorGenerated",function(o){e.CHM(t);const i=e.oxw();return e.KtG(i.editorGeneratedBasicInfo(o))}),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("editorOptions",t.editorOptionsSchema)}}function X(s,_){if(1&s){const t=e.EpF();e.TgZ(0,"div",36)(1,"app-monaco-editor",37),e.NdJ("editorGenerated",function(o){e.CHM(t);const i=e.oxw();return e.KtG(i.editorGenerated(o))}),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("editorOptions",t.editorOptionsSchema)}}function z(s,_){if(1&s){const t=e.EpF();e.TgZ(0,"a",38),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.viewError())}),e._uU(1,"View error"),e.qZA()}}function q(s,_){1&s&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function ee(s,_){1&s&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function te(s,_){if(1&s){const t=e.EpF();e.TgZ(0,"button",39),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.save())}),e._UZ(1,"i",40),e.YNc(2,q,2,0,"span",5),e.YNc(3,ee,2,0,"span",5),e.qZA()}if(2&s){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.data.mode===t.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",t.data.mode===t.EFormMode.EDIT)}}function oe(s,_){1&s&&e._UZ(0,"p-progressSpinner",41)}let ne=(()=>{class s{ns;functionS;generalS;instanceS;constantsS;authCS;monacoS;eventCenterS;generalCS;data;loading={form:!1};EFormMode=d.D;subscriptions=[];EAPIAccessType=I.di;editorFunctions;editorFunctionsBasicInfo;editorOptionsSchema={readOnly:!1,language:"typescript",contextmenu:!0};lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};updateObj;QuillEditorC;userNoteHtml='\n <span class="font-weight-bold text-success">Note:</span><br/>\n <span>Name might be used in code,<br/> so consider changing in code also.</span>\n ';BE_HOST_PORT=g.N.BE_HOST_PORT;DOCS_HOST_PORT=g.N.DOCS_HOST_PORT;shouldLoadMonacoEditor=!1;insertCodeModalC;viewDockerfileModelC;constructor(t,n,o,i,r,c,ae,se,ie){this.ns=t,this.functionS=n,this.generalS=o,this.instanceS=i,this.constantsS=r,this.authCS=c,this.monacoS=ae,this.eventCenterS=se,this.generalCS=ie}ngOnInit(){var t=this;this.subscriptions.push(this.data.eventChannel.subscribe(function(){var n=(0,m.Z)(function*(o){if(o)if(o.action===l.F.OPEN_FORM_IN_EDIT_MODE||o.action===l.F.OPEN_FORM_IN_VIEW_MODE){const i=yield t.functionS.getById(t.data.formData._id).toPromise();t.updateObj=i.data,t.generalCS.setValueInEditor(t,"editorFunctionsBasicInfo",i.data?.functionBasicInfo||""),t.generalCS.setValueInEditor(t,"editorFunctions",i.data?.functionCode||""),t.generalCS.setValueInEditor(t,"QuillEditorC",i.data?.apiDocs||"");const r={};t.updateObj.separateSandboxSettings?.enableSeparateSandboxForThis&&(r.enableSeparateSandboxForThis=t.updateObj.separateSandboxSettings.enableSeparateSandboxForThis,r.allowAllPackagesOfAdmin=t.updateObj.separateSandboxSettings?.packages?.allowAllPackagesOfAdmin??!1),yield t.monacoS.loadTypesInMonaco(t.BE_HOST_PORT,t.authCS.getUserId(),r)}else if(o.action===l.F.OPEN_FORM_IN_ADD_MODE){const i=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,M.R.CUSTOM_API_JSON).toPromise(),r=yield t.instanceS.getDefaultContent(t.BE_HOST_PORT,M.R.CUSTOM_APIS).toPromise();t.generalCS.setValueInEditor(t,"editorFunctionsBasicInfo",i.data),t.generalCS.setValueInEditor(t,"editorFunctions",r.data),setTimeout(()=>{t.QuillEditorC.quill.setContents([{insert:"### API "},{insert:"Documentation",attributes:{bold:!0}},{insert:"\n"}])},1e3),t.updateObj={}}});return function(o){return n.apply(this,arguments)}}()))}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idFunctionForm").modal("show")},100)}hideModal(){$("#idFunctionForm").modal("hide")}save(){var t=this;return(0,m.Z)(function*(){let o;o=t.data.formData&&t.data.formData._id?(yield t.functionS.getById(t.data.formData._id).toPromise()).data:{};const i=p.find(o.versions||[],{isActive:!0});i&&(i.apiCodeStr=t.editorFunctions.getValue());let r=Object.assign({},o,{});r.user=t.authCS.getUserId(),r.functionCode=t.editorFunctions.getValue(),r.functionBasicInfo=t.editorFunctionsBasicInfo.getValue(),r.apiDocs=t.QuillEditorC.getValue();for(const c of r?.versions||[])c.version=c.version.toString();r=Object.assign({},t.updateObj||{},r);try{let c;t.loading.form=!0,t.lastError=void 0,t.data.mode===d.D.ADD?c=yield t.functionS.post(r).toPromise():t.data.mode===d.D.EDIT&&(c=yield t.functionS.replace(r._id,r,{select:u.iH._id}).toPromise()),t.ns.showSuccess(t.data.mode===d.D.ADD?t.constantsS.functions.addSuccess:t.constantsS.functions.editSuccess),t.data.eventChannel.emit({action:t.data.mode===d.D.ADD?l.F.SAVED:l.F.UPDATED}),t.eventCenterS.customApiSavedAndUpdate.next(!0),t.loading.form=!1}catch(c){t.ns.showErrorMessageFromErrorObject(c),t.loading.form=!1,t.lastError=c.error}})()}selectedTabTitle;tabSelected(t){this.selectedTabTitle=(t.originalEvent.originalTarget||t.originalEvent.currentTarget).text}setMessageReceiver(){this.generalCS.messageReceivedFor=void 0===this.selectedTabTitle||"Basic Info"===this.selectedTabTitle?E.H.Settings:E.H.All}showInsertCodeModel(){this.setMessageReceiver(),this.insertCodeModalC.showModal(f.b.FunManFormC)}editorGenerated(t){var n=this;return(0,m.Z)(function*(){n.editorFunctions=t,yield n.monacoS.loadSchemaEditorSettings(n.BE_HOST_PORT,n.authCS.getUserId(),null),n.monacoS.addSaveCodeKeyBinding(t,o=>{n.data.mode!==d.D.VIEW&&n.save()}),n.monacoS.addInsertCodeKeyBinding(t,o=>{n.data.mode!==d.D.VIEW&&(n.setMessageReceiver(),n.insertCodeModalC.showModal(f.b.FunManFormC))}),n.subscriptions.push(n.generalS.messageReceived.subscribe(o=>{o.type&&o.type===O.g.TEXT_COPIED&&"Code"===n.selectedTabTitle&&o.componentName===f.b.FunManFormC&&(n.monacoS.insertAtCursor(t,o.selectedText),n.insertCodeModalC.hideModal())}))})()}editorGeneratedBasicInfo(t){var n=this;return(0,m.Z)(function*(){n.editorFunctionsBasicInfo=t,yield n.monacoS.loadSchemaEditorSettings(n.BE_HOST_PORT,n.authCS.getUserId(),null),n.monacoS.addSaveCodeKeyBinding(t,o=>{n.data.mode!==d.D.VIEW&&n.save()}),n.monacoS.addInsertCodeKeyBinding(t,o=>{n.data.mode!==d.D.VIEW&&(n.setMessageReceiver(),n.insertCodeModalC.showModal(f.b.FunManFormC))}),n.subscriptions.push(n.generalS.messageReceived.subscribe(o=>{o.type&&o.type===O.g.TEXT_COPIED&&o.componentName===f.b.FunManFormC&&(void 0===n.selectedTabTitle||"Basic Info"===n.selectedTabTitle)&&(n.monacoS.insertAtCursor(t,o.selectedText),n.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),P.d.json)}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.customApiSavedAndUpdate.next(!1)}static \u0275fac=function(n){return new(n||s)(e.Y36(S.W),e.Y36(F.d),e.Y36(T.b),e.Y36(A.E),e.Y36(b.L),e.Y36(U.D),e.Y36(R.b),e.Y36(B.u),e.Y36(T.b))};static \u0275cmp=e.Xpm({type:s,selectors:[["app-w-fun-man-form"]],viewQuery:function(n,o){if(1&n&&(e.Gf(J,5),e.Gf(Q,5),e.Gf(G,5)),2&n){let i;e.iGM(i=e.CRH())&&(o.QuillEditorC=i.first),e.iGM(i=e.CRH())&&(o.insertCodeModalC=i.first),e.iGM(i=e.CRH())&&(o.viewDockerfileModelC=i.first)}},inputs:{data:"data"},decls:37,vars:14,consts:[["template",""],["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idFunctionForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],["href","https://docs.apimaker.dev/v1/docs/apis-all/custom-apis/user-created-custom-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-2","mr-1","mt-n2",2,"font-size","25px"],[1,"modal-body","overflow-auto"],[3,"onChange"],["header","Basic Info"],["class","overflow-hidden","style","height: calc(100vh - 188px);",4,"ngIf"],["header","Code"],["header","Docs"],["QuillEditorC",""],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[3,"innerHTML"],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"ml-2","font-weight-normal","small","text-muted"],[1,"overflow-hidden",2,"height","calc(100vh - 188px)"],[3,"isSchemaEditor","editorOptions","editorGenerated"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(n,o){1&n&&(e.YNc(0,V,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4),e.YNc(6,w,3,0,"span",5),e.YNc(7,Y,3,0,"span",5),e.YNc(8,j,5,1,"span",5),e.TgZ(9,"div",6)(10,"button",7),e.NdJ("click",function(){return o.hideModal()}),e.TgZ(11,"span",8),e._UZ(12,"i",9),e.qZA()(),e.TgZ(13,"span",10),e.NdJ("click",function(){return o.showInsertCodeModel()}),e._UZ(14,"i",11),e.qZA(),e.TgZ(15,"a",12),e._UZ(16,"img",13),e.qZA()()(),e.TgZ(17,"div",14)(18,"p-tabView",15),e.NdJ("onChange",function(r){return o.tabSelected(r)}),e.TgZ(19,"p-tabPanel",16),e.YNc(20,k,2,2,"div",17),e.qZA(),e.TgZ(21,"p-tabPanel",18),e.YNc(22,X,2,2,"div",17),e.qZA(),e.TgZ(23,"p-tabPanel",19),e._UZ(24,"app-quill-editor",null,20),e.qZA()()(),e.TgZ(26,"div",21),e.YNc(27,z,2,0,"a",22),e.TgZ(28,"button",23),e.NdJ("click",function(){return o.hideModal()}),e._UZ(29,"i",24),e._uU(30," Close"),e.qZA(),e.YNc(31,te,4,2,"button",25),e.qZA(),e.YNc(32,oe,1,0,"p-progressSpinner",26),e.qZA()()(),e._UZ(33,"app-insert-code-modal",27,28)(35,"app-monaco-editor-modal",29,30)),2&n&&(e.xp6(6),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT),e.xp6(12),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(2),e.Q6J("ngIf",o.shouldLoadMonacoEditor),e.xp6(5),e.Q6J("ngIf",o.lastError),e.xp6(4),e.Q6J("ngIf",o.data.mode!==o.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",o.loading.form),e.xp6(1),e.Q6J("frameId","idInsertCodeCusApi")("modalId","idInsertCodeCusApiForm")("docsHostPort",o.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalInCustomApi")("editorOptionsMonacoEditorModal",o.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[y.O5,x.y,Z.l,L.P,W.O,K.G,h.xf,h.x4,N.u,H.A],encapsulation:2})}return s})()},7987:(D,C,a)=>{a.d(C,{X:()=>E});var m=a(7359),l=a(4950),p=(a(1137),a(4946));let E=(()=>{class u{static \u0275fac=function(M){return new(M||u)};static \u0275mod=p.oAB({type:u});static \u0275inj=p.cJS({imports:[m.u,l.A]})}return u})()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[885],{8487:(ee,Z,s)=>{s.d(Z,{L:()=>k});var g=s(5861),e=s(95),p=s(1162),u=s(328),m=s(3157),M=s(9490),t=s(4946),I=s(9961),S=s(1042),C=s(7240),A=s(7414),y=s(5852),F=s(2304),O=s(1429),L=s(5405),P=s(6814),w=s(2660),b=s(7680),W=s(3965),K=s(8057);function N(l,h){1&l&&(t.TgZ(0,"span"),t._UZ(1,"i",34),t._uU(2," Add Interval"),t.qZA())}function B(l,h){1&l&&(t.TgZ(0,"span"),t._UZ(1,"i",35),t._uU(2," View Interval"),t.qZA())}function J(l,h){1&l&&(t.TgZ(0,"span"),t._UZ(1,"i",36),t._uU(2," Edit Interval"),t.qZA())}function Y(l,h){1&l&&(t.TgZ(0,"div",39)(1,"a",40),t._uU(2,"Reference"),t.qZA()())}function V(l,h){if(1&l){const i=t.EpF();t.TgZ(0,"div",15)(1,"label",16),t._uU(2,"Custom"),t.qZA(),t.TgZ(3,"div",14)(4,"input",37),t.NdJ("blur",function(d){t.CHM(i);const D=t.oxw();return t.KtG(D.validateCronExpression(d))}),t.qZA(),t.YNc(5,Y,3,0,"div",38),t.qZA()()}if(2&l){const i=t.oxw();t.xp6(5),t.Q6J("ngIf",i.form.get("timeInterval").value===i.ESchedulerInterval.CUSTOM)}}function U(l,h){1&l&&(t.TgZ(0,"div",41)(1,"div",42)(2,"div",43)(3,"div",44),t._uU(4,"Custom CRON writing guide"),t.qZA(),t.TgZ(5,"div",45)(6,"table",46)(7,"tr")(8,"td",47),t._uU(9,"Seconds"),t.qZA(),t.TgZ(10,"td",48),t._uU(11," : "),t.qZA(),t.TgZ(12,"td",49),t._uU(13,"0-59"),t.qZA()(),t.TgZ(14,"tr")(15,"td",47),t._uU(16,"Minutes"),t.qZA(),t.TgZ(17,"td",48),t._uU(18," : "),t.qZA(),t.TgZ(19,"td",49),t._uU(20,"0-59"),t.qZA()(),t.TgZ(21,"tr")(22,"td",47),t._uU(23,"Hours"),t.qZA(),t.TgZ(24,"td",48),t._uU(25," : "),t.qZA(),t.TgZ(26,"td",49),t._uU(27,"0-23"),t.qZA()(),t.TgZ(28,"tr")(29,"td",47),t._uU(30,"Day of Month"),t.qZA(),t.TgZ(31,"td",48),t._uU(32," : "),t.qZA(),t.TgZ(33,"td",49),t._uU(34,"1-31"),t.qZA()(),t.TgZ(35,"tr")(36,"td",47),t._uU(37,"Months"),t.qZA(),t.TgZ(38,"td",48),t._uU(39," : "),t.qZA(),t.TgZ(40,"td",49),t._uU(41,"0-11 (Jan-Dec)"),t.qZA()(),t.TgZ(42,"tr")(43,"td",47),t._uU(44,"Day of Week"),t.qZA(),t.TgZ(45,"td",48),t._uU(46," : "),t.qZA(),t.TgZ(47,"td",49),t._uU(48,"0-6 (Sun-Sat)"),t.qZA()()()()(),t.TgZ(49,"div",50)(50,"span"),t._uU(51,"Note:- "),t.qZA(),t.TgZ(52,"span")(53,"a",40),t._uU(54,"Reference"),t.qZA(),t._uU(55," is having only 5 fields and this cron expression support 6 fields, precision upto seconds."),t.qZA()()()())}function Q(l,h){1&l&&(t.TgZ(0,"span"),t._uU(1,"Save"),t.qZA())}function q(l,h){1&l&&(t.TgZ(0,"span"),t._uU(1,"Update interval"),t.qZA())}function G(l,h){if(1&l){const i=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(i);const d=t.oxw();return t.KtG(d.save())}),t._UZ(1,"i",52),t.YNc(2,Q,2,0,"span",4),t.YNc(3,q,2,0,"span",4),t.qZA()}if(2&l){const i=t.oxw();t.Q6J("disabled",i.form.invalid),t.xp6(2),t.Q6J("ngIf",i.data.mode===i.EFormMode.ADD),t.xp6(1),t.Q6J("ngIf",i.data.mode===i.EFormMode.EDIT)}}function x(l,h){1&l&&t._UZ(0,"p-progressSpinner",53)}let k=(()=>{class l{fb;ns;schedulerS;generalS;constantsS;authCS;monacoS;dataProviderS;eventCenterCS;data;loading={form:!1};EFormMode=u.D;form;ESchedulerInterval=M.M;subscriptions=[];intervalList=[];timezoneList=[];constructor(i,c,d,D,R,H,j,z,X){this.fb=i,this.ns=c,this.schedulerS=d,this.generalS=D,this.constantsS=R,this.authCS=H,this.monacoS=j,this.dataProviderS=z,this.eventCenterCS=X}ngOnInit(){var i=this;this.intervalList=this.dataProviderS.getSchedulerIntervals(),this.timezoneList=this.dataProviderS.getTimeZones(),this.createForm(),this.subscriptions.push(this.data.eventChannel.subscribe(function(){var c=(0,g.Z)(function*(d){d&&(i.form.enable(),d.action===m.F.OPEN_FORM_IN_EDIT_MODE?(i.form.reset(),i.form.patchValue(i.data.formData)):d.action===m.F.OPEN_FORM_IN_VIEW_MODE?(i.form.patchValue(i.data.formData),i.form.reset(),i.form.disable()):d.action===m.F.OPEN_FORM_IN_ADD_MODE&&(i.form.reset(),i.form.get("active").setValue(!1)))});return function(d){return c.apply(this,arguments)}}()))}createForm(){this.form=this.fb.group({timeZone:[null,[e.kI.required]],timeInterval:[null,[e.kI.required]],customInterval:[null,[]],active:[null,[]]}),this.manageValidations()}showModal(){$("#idIntervals").modal("show"),this.form.get(p._h.active).setValue(!0)}hideModal(){$("#idIntervals").modal("hide")}manageValidations(){const i=this.form.get("timeInterval"),c=this.form.get("customInterval");i.valueChanges.subscribe(d=>{c.setValidators(d===M.M.CUSTOM?[e.kI.required]:[]),c.updateValueAndValidity()})}validateCronExpression(i){var c=this;return(0,g.Z)(function*(){const d=c.form.get("customInterval"),D=d.value;(yield c.schedulerS.isCronExpressionValid(D).toPromise()).data.valid||d.setValue("")})()}save(){var i=this;return(0,g.Z)(function*(){const c=i.form.value;try{if(i.data.mode===u.D.ADD)i.eventCenterCS.intervalArr.next(c);else if(i.data.mode===u.D.EDIT){const d=Object.assign(i.data.formData,c);i.eventCenterCS.intervalArr.next(d)}i.data.eventChannel.emit({action:i.data.mode===u.D.ADD?m.F.SAVED:m.F.UPDATED})}catch(d){console.log(d)}})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(c){return new(c||l)(t.Y36(e.qu),t.Y36(I.W),t.Y36(S.Z),t.Y36(C.b),t.Y36(A.L),t.Y36(y.D),t.Y36(F.b),t.Y36(O.B),t.Y36(L.M))};static \u0275cmp=t.Xpm({type:l,selectors:[["app-intervals-add-edit"]],inputs:{data:"data"},decls:50,vars:13,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idIntervals","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close"],["aria-hidden","true"],[1,"fas","fa-window-close"],["href","https://docs.apimaker.dev/v1/docs/apis-all/schedulers/user-created-schedulers-api.html#interval-time","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],[1,"modal-body","overflow-auto"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-8"],[1,"row"],[1,"col-4","col-form-label","col-form-label-sm","text-right"],[1,"col-2","input-group","input-group-sm"],[1,"input-group-prepend"],["id","spanTimeInterval",1,"input-group-text","form-control","form-control-sm"],[1,"col-10","pl-0"],["formControlName","timeInterval","optionLabel","name","optionValue","id","filterBy","name","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter"],[1,"col-4"],["class","row",4,"ngIf"],["formControlName","timeZone","optionLabel","name","optionValue","id","filterBy","name","appendTo","body","styleClass","w-100 p-input-filled",3,"options","filter"],[1,"col-6","col-form-label","col-form-label-sm","text-right"],[1,"col-6","col-form-label","col-form-label-sm","align-middle","mb-0","pt-1"],["formControlName","active",3,"binary"],["class","form-group row mt-5",4,"ngIf"],[1,"modal-footer"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],["formControlName","customInterval","name","customInterval","placeholder","Custom","spellcheck","false","type","text",1,"form-control","form-control-sm",3,"blur"],["class","text-center",4,"ngIf"],[1,"text-center"],["href","https://crontab.guru","target","_blank",1,"text-info",2,"text-decoration","underline"],[1,"form-group","row","mt-5"],[1,"col-12"],[1,"border"],[1,"h6","border-bottom","p-3","m-0","text-center"],[1,"p-3","font-monospaced"],[1,"table","table-sm","table-condensed","w-100","mb-0"],[1,"text-right","pr-1","border-0",2,"width","49%"],[1,"border-0",2,"width","10px"],[1,"border-0"],[1,"text-center","small","border-left","border-right","border-bottom","p-2"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(c,d){1&c&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,N,3,0,"span",4),t.YNc(5,B,3,0,"span",4),t.YNc(6,J,3,0,"span",4),t.TgZ(7,"div",5)(8,"button",6)(9,"span",7),t._UZ(10,"i",8),t.qZA()(),t.TgZ(11,"a",9),t._UZ(12,"img",10),t.qZA()()(),t.TgZ(13,"div",11)(14,"form",12)(15,"div",13)(16,"div",14)(17,"div",15)(18,"label",16),t._uU(19,"Time Interval"),t.qZA(),t.TgZ(20,"div",14)(21,"div",15)(22,"div",17)(23,"div",18)(24,"span",19),t._uU(25,"Every "),t.qZA()()(),t.TgZ(26,"div",20),t._UZ(27,"p-dropdown",21),t.qZA()()()()(),t.TgZ(28,"div",22),t.YNc(29,V,6,1,"div",23),t.qZA()(),t.TgZ(30,"div",13)(31,"div",14)(32,"div",15)(33,"label",16),t._uU(34,"Time Zone"),t.qZA(),t.TgZ(35,"div",14),t._UZ(36,"p-dropdown",24),t.qZA()()(),t.TgZ(37,"div",22)(38,"div",15)(39,"label",25),t._uU(40,"Active"),t.qZA(),t.TgZ(41,"label",26),t._UZ(42,"p-checkbox",27),t.qZA()()()(),t.YNc(43,U,56,0,"div",28),t.qZA()(),t.TgZ(44,"div",29)(45,"button",30),t._UZ(46,"i",31),t._uU(47," Close"),t.qZA(),t.YNc(48,G,4,3,"button",32),t.qZA(),t.YNc(49,x,1,0,"p-progressSpinner",33),t.qZA()()()),2&c&&(t.xp6(4),t.Q6J("ngIf",d.data.mode===d.EFormMode.ADD),t.xp6(1),t.Q6J("ngIf",d.data.mode===d.EFormMode.VIEW),t.xp6(1),t.Q6J("ngIf",d.data.mode===d.EFormMode.EDIT),t.xp6(8),t.Q6J("formGroup",d.form),t.xp6(13),t.Q6J("options",d.intervalList)("filter",!0),t.xp6(2),t.Q6J("ngIf",d.form.get("timeInterval").value===d.ESchedulerInterval.CUSTOM),t.xp6(7),t.Q6J("options",d.timezoneList)("filter",!0),t.xp6(6),t.Q6J("binary",!0),t.xp6(1),t.Q6J("ngIf",d.form.get("timeInterval").value===d.ESchedulerInterval.CUSTOM),t.xp6(5),t.Q6J("ngIf",d.data.mode!==d.EFormMode.VIEW),t.xp6(1),t.Q6J("ngIf",d.loading.form))},dependencies:[e._Y,e.Fj,e.JJ,e.JL,e.sg,e.u,P.O5,w.y,b.G,W.Lt,K.XZ],encapsulation:2})}return l})()},8479:(ee,Z,s)=>{s.d(Z,{o:()=>ve});var g=s(5861),e=s(4946),p=s(95),u=s(3157),m=s(328),M=s(6990),I=s(9490),S=s(9361),C=s(1162),A=s(553),y=s(5085),F=s(1601),O=s(3531),L=s(9989),P=s(9961),w=s(1042),b=s(7240),W=s(7414),K=s(5852),N=s(2304),B=s(3429),J=s(5405),Y=s(2915),V=s(1429),U=s(6814),Q=s(2660),q=s(5860),G=s(756),x=s(5431),k=s(5219),l=s(7680),h=s(4844),i=s(3259),c=s(8057),d=s(5025),D=s(8487);const R=["intervalsAddEditC"],H=["insertCodeModalC"],j=["monacoEditorModalC"];function z(r,f){1&r&&(e.TgZ(0,"span"),e._UZ(1,"i",52),e._uU(2," Add Scheduler"),e.qZA())}function X(r,f){1&r&&(e.TgZ(0,"span"),e._UZ(1,"i",53),e._uU(2," View Scheduler"),e.qZA())}function te(r,f){if(1&r&&(e.TgZ(0,"span"),e._UZ(1,"i",54),e._uU(2," Edit Scheduler "),e.TgZ(3,"span",55),e._uU(4),e.qZA()()),2&r){const o=e.oxw();e.xp6(4),e.Oqu(o.form.get("name").value)}}function ae(r,f){if(1&r&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&r){const o=e.oxw();e.xp6(1),e.hij("The system will allow ",o.form.get(o.ISchedulerProps.schedulerTimeoutInMinutes).value," minutes for the scheduler to complete its work.")}}function oe(r,f){if(1&r){const o=e.EpF();e.TgZ(0,"div",57)(1,"app-monaco-editor",58),e.NdJ("editorGenerated",function(n){e.CHM(o);const _=e.oxw();return e.KtG(_.editorGenerated(n))}),e.qZA()()}if(2&r){const o=e.oxw();e.xp6(1),e.Q6J("isSchemaEditor",!0)("editorOptions",o.editorOptionsSchedulers)}}function ne(r,f){if(1&r){const o=e.EpF();e.TgZ(0,"span",59),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.add())}),e._UZ(1,"i",60),e.qZA()}}function se(r,f){1&r&&(e.TgZ(0,"tr"),e._UZ(1,"th",61),e.TgZ(2,"th"),e._uU(3,"Time Interval"),e.qZA(),e.TgZ(4,"th"),e._uU(5,"Time Zone"),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Custom Interval"),e.qZA(),e.TgZ(8,"th",62),e._uU(9,"Action"),e.qZA()())}function re(r,f){1&r&&e._UZ(0,"i",67)}function ie(r,f){1&r&&e._UZ(0,"i",68)}function de(r,f){if(1&r){const o=e.EpF();e.TgZ(0,"div",69)(1,"button",70),e.NdJ("click",function(n){e.CHM(o);const _=e.oxw().$implicit,v=e.oxw();return e.KtG(v.edit(n,_))}),e._UZ(2,"i",71),e.qZA(),e.TgZ(3,"button",72),e.NdJ("click",function(n){e.CHM(o);const _=e.oxw().$implicit,v=e.oxw();return e.KtG(v.deleteInterval(n,_))}),e._UZ(4,"i",73),e.qZA()()}}function le(r,f){if(1&r&&(e.TgZ(0,"tr",63)(1,"td"),e.YNc(2,re,1,0,"i",64),e.YNc(3,ie,1,0,"i",65),e.qZA(),e.TgZ(4,"td")(5,"span"),e._uU(6),e.qZA()(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td")(10,"span"),e._uU(11),e.qZA()(),e.TgZ(12,"td"),e.YNc(13,de,5,0,"div",66),e.qZA()()),2&r){const o=f.$implicit,a=e.oxw();e.Q6J("pSelectableRow",o),e.xp6(2),e.Q6J("ngIf",o.active),e.xp6(1),e.Q6J("ngIf",!o.active),e.xp6(3),e.hij("Every ",a.intervalListMap[o.timeInterval].name,""),e.xp6(2),e.Oqu(o.timeZone),e.xp6(3),e.Oqu(a.intervalListMap[o.timeInterval].name===a.ESchedulerInterval.CUSTOM?o.customInterval:""),e.xp6(2),e.Q6J("ngIf",!o.isReadOnly&&a.data.mode!==a.EFormMode.VIEW)}}function _e(r,f){if(1&r){const o=e.EpF();e.TgZ(0,"a",74),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.viewError())}),e._uU(1,"View error"),e.qZA()}}function ce(r,f){1&r&&(e.TgZ(0,"span"),e._uU(1,"Save"),e.qZA())}function me(r,f){1&r&&(e.TgZ(0,"span"),e._uU(1,"Update"),e.qZA())}function ue(r,f){if(1&r){const o=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(o);const n=e.oxw();return e.KtG(n.save(!0))}),e._UZ(1,"i",76),e.YNc(2,ce,2,0,"span",4),e.YNc(3,me,2,0,"span",4),e.qZA()}if(2&r){const o=e.oxw();e.Q6J("disabled",o.form.invalid),e.xp6(2),e.Q6J("ngIf",o.data.mode===o.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",o.data.mode===o.EFormMode.EDIT)}}function pe(r,f){1&r&&e._UZ(0,"p-progressSpinner",77)}const fe=function(r){return{"text-danger font-weight-bold":r}};let ve=(()=>{class r{fb;ns;schedulerS;generalS;constantsS;authCS;monacoS;instanceS;notificationS;eventCenterCS;eventCenterS;dataProviderS;generalCS;data;loading={form:!1};EFormMode=m.D;form;subscriptions=[];ESchedulerInterval=I.M;editorSchedulers;editorOptionsSchedulers={readOnly:!1,language:"typescript",contextmenu:!0};intervalList=[];selectedRows=[];rows=[];rowsMap={};dataItem={mode:m.D.ADD,eventChannel:new e.vpe,formData:void 0};intervalListMap={};gridKey="id";idCounter=0;BE_HOST_PORT=A.N.BE_HOST_PORT;DOCS_HOST_PORT=A.N.DOCS_HOST_PORT;shouldLoadMonacoEditor=!1;lastError;editorOptionsMonacoEditorModal={readOnly:!0,language:"json",contextmenu:!0};ISchedulerProps=C.qH;intervalsAddEditC;insertCodeModalC;viewDockerfileModelC;constructor(o,a,n,_,v,T,E,he,Ee,ge,Me,Ie,Ce){this.fb=o,this.ns=a,this.schedulerS=n,this.generalS=_,this.constantsS=v,this.authCS=T,this.monacoS=E,this.instanceS=he,this.notificationS=Ee,this.eventCenterCS=ge,this.eventCenterS=Me,this.dataProviderS=Ie,this.generalCS=Ce}ngOnInit(){var o=this;this.intervalList=this.dataProviderS.getSchedulerIntervals(),this.intervalListMap=M.keyBy(this.intervalList,C.GR.id),this.createForm(),this.subscriptions.push(this.data.eventChannel.subscribe(function(){var a=(0,g.Z)(function*(n){if(n)if(o.form.enable(),n.action===u.F.OPEN_FORM_IN_EDIT_MODE)yield o.updateEditCommon();else if(n.action===u.F.OPEN_FORM_IN_VIEW_MODE)yield o.updateEditCommon(),o.form.disable();else if(n.action===u.F.OPEN_FORM_IN_ADD_MODE){o.form.reset(),o.rows=[];const _=yield o.instanceS.getDefaultContent(o.BE_HOST_PORT,y.R.SCHEDULERS).toPromise();o.generalCS.setValueInEditor(o,"editorSchedulers",_.data),o.form.get(C.qH.isActive).setValue(!1),o.form.get(C.qH.runOnNativeProcess).setValue(!1)}});return function(n){return a.apply(this,arguments)}}())),this.subscriptions.push(this.dataItem.eventChannel.subscribe(function(){var a=(0,g.Z)(function*(n){n&&(o.form.enable(),(n.action===u.F.SAVED||n.action===u.F.UPDATED)&&(o.intervalsAddEditC.hideModal(),o.loadGridData()))});return function(n){return a.apply(this,arguments)}}())),this.subscriptions.push(this.eventCenterCS.intervalArr.subscribe(a=>{this.dataItem.mode===m.D.ADD&&(this.rows.unshift(a),this.loadGridData())}))}createForm(){this.form=this.fb.group({name:[null,[p.kI.required]],schedulerTimeoutInMinutes:[null,[p.kI.min(1),p.kI.max(43200)]],isActive:[null,[]],runOnNativeProcess:[null,[]]})}showInsertCodeModel(){this.generalCS.messageReceivedFor=S.H.All,this.insertCodeModalC.showModal(O.b.SchedulerManFormC)}updateEditCommon(){var o=this;return(0,g.Z)(function*(){const a=yield o.schedulerS.getById(o.data.formData._id).toPromise();o.form.reset(),o.form.patchValue(a.data),o.rows=a.data?.intervalArr||[],o.generalCS.setValueInEditor(o,"editorSchedulers",a.data?.schedulerCode||""),o.loadGridData()})()}loadGridData(){this.selectedRows=[];for(const o of this.rows)o.id=this.idCounter++;this.rowsMap=M.keyBy(this.rows,this.gridKey)}reqActiveIndex=0;tabIndexReq={Basic:0,Code:1,Intervals:2};save(o){var a=this;return(0,g.Z)(function*(){const n=a.form.getRawValue();let _;_=a.data.formData&&a.data.formData._id?(yield a.schedulerS.getById(a.data.formData._id).toPromise()).data:{};const v=M.find(_.versions||[],{isActive:!0});v&&(v.apiCodeStr=a.editorSchedulers.getValue());const T=Object.assign({},_,n);T.user=a.authCS.getUserId(),T.intervalArr=a.rows,T.schedulerCode=a.editorSchedulers.getValue();for(const E of T?.versions||[])E.version=E.version.toString();try{let E;a.loading.form=!0,a.lastError=void 0,a.data.mode===m.D.ADD?E=yield a.schedulerS.post(T).toPromise():a.data.mode===m.D.EDIT&&(E=yield a.schedulerS.put(a.data.formData._id,T,{select:C.iH._id}).toPromise()),a.ns.showSuccess(a.data.mode===m.D.ADD?a.constantsS.schedulers.addSuccess:a.constantsS.schedulers.editSuccess),a.data.eventChannel.emit({action:a.data.mode===m.D.ADD?u.F.SAVED:u.F.UPDATED,closeModal:o}),a.form.get("name").disable(),a.eventCenterS.schedulerSavedAndUpdate.next(!0),a.loading.form=!1}catch(E){"Please Provide Interval."===E.error.errors[0].message&&(a.reqActiveIndex=a.tabIndexReq.Intervals),a.loading.form=!1,a.ns.showErrorFromResponse(E.error||E,"Unable to save scheduler."),a.lastError=E.error}})()}showModal(){this.lastError=void 0,this.shouldLoadMonacoEditor=!0,setTimeout(()=>{$("#idSchedulerForm").modal("show")},100)}hideModal(){$("#idSchedulerForm").modal("hide")}add(){this.dataItem.formData=void 0,this.dataItem.mode=m.D.ADD,this.dataItem.eventChannel.emit({action:u.F.OPEN_FORM_IN_ADD_MODE}),this.intervalsAddEditC.showModal()}view(){this.dataItem.formData=this.rowsMap[this.selectedRows[0]],this.dataItem.mode=m.D.VIEW,this.dataItem.eventChannel.emit({action:u.F.OPEN_FORM_IN_VIEW_MODE}),this.intervalsAddEditC.showModal()}edit(o,a){o.stopPropagation(),o.preventDefault(),this.dataItem.formData=a,this.dataItem.mode=m.D.EDIT,this.dataItem.eventChannel.emit({action:u.F.OPEN_FORM_IN_EDIT_MODE}),this.intervalsAddEditC.showModal()}deleteInterval(o,a){o.stopPropagation(),o.preventDefault(),this.rows.splice(this.rows.indexOf(a),1),this.notificationS.showSuccess(this.constantsS.interval.removePermanent)}editorGenerated(o){var a=this;return(0,g.Z)(function*(){a.editorSchedulers=o,yield a.monacoS.loadSchemaEditorSettings(a.BE_HOST_PORT,a.authCS.getUserId(),null),a.monacoS.addSaveCodeKeyBinding(o,n=>{a.form.valid&&a.save(!0)}),a.monacoS.addInsertCodeKeyBinding(o,n=>{a.generalCS.messageReceivedFor=S.H.All,a.data.mode!==m.D.VIEW&&a.insertCodeModalC.showModal(O.b.SchedulerManFormC)}),a.subscriptions.push(a.generalS.messageReceived.subscribe(n=>{n.type&&n.type===L.g.TEXT_COPIED&&n.componentName===O.b.SchedulerManFormC&&(a.monacoS.insertAtCursor(o,n.selectedText),a.insertCodeModalC.hideModal())}))})()}viewError(){this.viewDockerfileModelC.showModal(this.generalS.stringify(this.lastError),F.d.json)}dblClickIntervalOpenModel(o){this.selectedRows.length&&this.data.mode!==m.D.VIEW&&this.edit(o,this.selectedRows[0])}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions),this.eventCenterS.schedulerSavedAndUpdate.next(!1)}static \u0275fac=function(a){return new(a||r)(e.Y36(p.qu),e.Y36(P.W),e.Y36(w.Z),e.Y36(b.b),e.Y36(W.L),e.Y36(K.D),e.Y36(N.b),e.Y36(B.E),e.Y36(P.W),e.Y36(J.M),e.Y36(Y.u),e.Y36(V.B),e.Y36(b.b))};static \u0275cmp=e.Xpm({type:r,selectors:[["app-w-scheduler-man-form"]],viewQuery:function(a,n){if(1&a&&(e.Gf(R,5),e.Gf(H,5),e.Gf(j,5)),2&a){let _;e.iGM(_=e.CRH())&&(n.intervalsAddEditC=_.first),e.iGM(_=e.CRH())&&(n.insertCodeModalC=_.first),e.iGM(_=e.CRH())&&(n.viewDockerfileModelC=_.first)}},inputs:{data:"data"},decls:69,vars:30,consts:[["aria-hidden","true","aria-labelledby","exampleModalLabel","id","idSchedulerForm","role","dialog","data-backdrop","static","data-keyboard","false",1,"modal"],["role","document",1,"modal-dialog","modal-full"],[1,"modal-content"],[1,"modal-header"],[4,"ngIf"],[1,"float-right"],["aria-label","Close","data-dismiss","modal","type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"fas","fa-window-close"],["pTooltip","Insert Code","sava-no-dbl-click","",1,"cursor-pointer","mr-1",2,"font-size","1.4em",3,"click"],[1,"fas","fa-info-circle","text-info","fa-fw"],["href","https://docs.apimaker.dev/v1/docs/apis-all/schedulers/user-created-schedulers-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n2",2,"font-size","25px"],[1,"modal-body","overflow-auto"],[1,"w-100",3,"activeIndex","activeIndexChange"],["header","Basic Info"],[1,"container","pt-3",3,"formGroup"],[1,"form-group","row"],[1,"col-3","col-form-label","col-form-label-sm","text-right"],[1,"col-7"],["formControlName","name","name","name","spellcheck","false","type","text","placeholder","Please provide name",1,"form-control","form-control-sm"],["formControlName","schedulerTimeoutInMinutes","name","schedulerTimeoutInMinutes","spellcheck","false","type","number","placeholder","10",1,"form-control","form-control-sm",3,"min"],["class","mt-1px small text-info",4,"ngIf"],[1,"align-middle","mb-0","pt-1"],["formControlName","isActive","label","Active",3,"binary"],["formControlName","runOnNativeProcess","pTooltip","Code will run on actual process and not in sandbox, so be careful with code. You can not use sandbox packages in this mode. You can use all Node.js packages + some packages on which API Maker is dependent on. You can use features of global variable 'g'.","label","Run Native",3,"ngClass","binary"],["header","Code"],["class","overflow-hidden mb-3","style","height: calc(100vh - 270px);",4,"ngIf"],["header","Intervals"],[1,"overflow-auto",2,"height","calc(100vh - 206px)"],[1,"card","shadow-sm","h-100","mr-1","ml-1"],[1,"card-header"],[1,"fas","fa-stopwatch","text-warning","fa-fw","mr-1"],["href","https://docs.apimaker.dev/v1/docs/apis-all/schedulers/user-created-schedulers-api.html#create-intervals-in-scheduler","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"float-right","fa-fw","ml-3","mr-1",2,"font-size","25px"],["class","float-right cursor-pointer ml-3","pTooltip","Add New",3,"click",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","200px",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange","dblclick"],["pTemplate","header"],["pTemplate","body"],[1,"modal-footer"],["href","javascript:;","class","text-danger",3,"click",4,"ngIf"],["data-dismiss","modal","type","button",1,"btn","btn-sm","btn-secondary",3,"click"],[1,"fas","fa-times","text-danger","fa-fw"],["class","btn btn-primary btn-sm","sava-no-dbl-click","","type","button",3,"disabled","click",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"data"],["intervalsAddEditC",""],[3,"frameId","modalId","docsHostPort"],["insertCodeModalC",""],[3,"modalId","editorOptionsMonacoEditorModal","modalTitle"],["monacoEditorModalC",""],[1,"fas","fa-plus","text-success","fa-fw","mr-1"],[1,"far","fa-eye","text-info","fa-fw","mr-1"],[1,"fas","fa-pencil-alt","text-light","fa-fw","mr-1"],[1,"ml-2","font-weight-normal","small","text-muted"],[1,"mt-1px","small","text-info"],[1,"overflow-hidden","mb-3",2,"height","calc(100vh - 270px)"],[3,"isSchemaEditor","editorOptions","editorGenerated"],["pTooltip","Add New",1,"float-right","cursor-pointer","ml-3",3,"click"],[1,"fas","fa-plus","text-success","fa-fw"],[2,"width","40px"],[2,"width","100px"],[3,"pSelectableRow"],["class","fas fa-circle fa-fw text-success text-v-small",4,"ngIf"],["class","fas fa-circle fa-fw text-muted text-v-small",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"fas","fa-circle","fa-fw","text-success","text-v-small"],[1,"fas","fa-circle","fa-fw","text-muted","text-v-small"],[1,"text-center"],["pTooltip","Edit",1,"btn","btn-xsm-custom","mr-1",3,"click"],[1,"fas","fa-pencil-alt","text-light","fa-fw","cursor-pointer"],["pTooltip","Delete",1,"btn","btn-xsm-custom","ml-1",3,"click"],[1,"far","fa-trash-alt","text-danger","fa-fw","cursor-pointer"],["href","javascript:;",1,"text-danger",3,"click"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"disabled","click"],[1,"fas","fa-save","text-success","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(a,n){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.YNc(4,z,3,0,"span",4),e.YNc(5,X,3,0,"span",4),e.YNc(6,te,5,1,"span",4),e.TgZ(7,"div",5)(8,"button",6),e.NdJ("click",function(){return n.hideModal()}),e.TgZ(9,"span",7),e._UZ(10,"i",8),e.qZA()(),e.TgZ(11,"span",9),e.NdJ("click",function(){return n.showInsertCodeModel()}),e._UZ(12,"i",10),e.qZA(),e.TgZ(13,"a",11),e._UZ(14,"img",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"p-tabView",14),e.NdJ("activeIndexChange",function(v){return n.reqActiveIndex=v}),e.TgZ(17,"p-tabPanel",15)(18,"form",16)(19,"div",17)(20,"label",18),e._uU(21,"Name"),e.qZA(),e.TgZ(22,"div",19),e._UZ(23,"input",20),e.qZA()(),e.TgZ(24,"div",17)(25,"label",18),e._uU(26,"Timeout in minutes"),e.qZA(),e.TgZ(27,"div",19),e._UZ(28,"input",21),e.YNc(29,ae,2,1,"span",22),e.qZA()(),e.TgZ(30,"div",17),e._UZ(31,"label",18),e.TgZ(32,"div",19)(33,"label",23),e._UZ(34,"p-checkbox",24),e.qZA()()(),e.TgZ(35,"div",17),e._UZ(36,"label",18),e.TgZ(37,"div",19)(38,"label",23),e._UZ(39,"p-checkbox",25),e.qZA()()()()(),e.TgZ(40,"p-tabPanel",26),e.YNc(41,oe,2,2,"div",27),e.qZA(),e.TgZ(42,"p-tabPanel",28)(43,"div",29)(44,"div",30)(45,"div",31)(46,"span"),e._UZ(47,"i",32),e._uU(48," Interval"),e.qZA(),e.TgZ(49,"a",33),e._UZ(50,"img",34),e.qZA(),e.YNc(51,ne,2,0,"span",35),e.qZA(),e.TgZ(52,"div",36)(53,"p-table",37),e.NdJ("selectionChange",function(v){return n.selectedRows=v})("dblclick",function(v){return n.dblClickIntervalOpenModel(v)}),e.YNc(54,se,10,0,"ng-template",38),e.YNc(55,le,14,7,"ng-template",39),e.qZA()()()()()()(),e.TgZ(56,"div",40),e.YNc(57,_e,2,0,"a",41),e.TgZ(58,"button",42),e.NdJ("click",function(){return n.hideModal()}),e._UZ(59,"i",43),e._uU(60," Close"),e.qZA(),e.YNc(61,ue,4,3,"button",44),e.qZA(),e.YNc(62,pe,1,0,"p-progressSpinner",45),e.qZA()()(),e._UZ(63,"app-intervals-add-edit",46,47)(65,"app-insert-code-modal",48,49)(67,"app-monaco-editor-modal",50,51)),2&a&&(e.xp6(4),e.Q6J("ngIf",n.data.mode===n.EFormMode.ADD),e.xp6(1),e.Q6J("ngIf",n.data.mode===n.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",n.data.mode===n.EFormMode.EDIT),e.xp6(10),e.Q6J("activeIndex",n.reqActiveIndex),e.xp6(2),e.Q6J("formGroup",n.form),e.xp6(10),e.Q6J("min",1),e.xp6(1),e.Q6J("ngIf",n.form.get(n.ISchedulerProps.schedulerTimeoutInMinutes).value),e.xp6(5),e.Q6J("binary",!0),e.xp6(5),e.Q6J("ngClass",e.VKq(28,fe,!0===n.form.get(n.ISchedulerProps.runOnNativeProcess).value))("binary",!0),e.xp6(2),e.Q6J("ngIf",n.shouldLoadMonacoEditor),e.xp6(10),e.Q6J("ngIf",n.data.mode!==n.EFormMode.VIEW),e.xp6(2),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",n.selectedRows)("dataKey",n.gridKey)("scrollable",!0)("value",n.rows),e.xp6(4),e.Q6J("ngIf",n.lastError),e.xp6(4),e.Q6J("ngIf",n.data.mode!==n.EFormMode.VIEW),e.xp6(1),e.Q6J("ngIf",n.loading.form),e.xp6(1),e.Q6J("data",n.dataItem),e.xp6(2),e.Q6J("frameId","idInsertCodeSchedulers")("modalId","idInsertCodeSchedulersForm")("docsHostPort",n.DOCS_HOST_PORT),e.xp6(2),e.Q6J("modalId","idMonacoEditorModalInScheduler")("editorOptionsMonacoEditorModal",n.editorOptionsMonacoEditorModal)("modalTitle","Error info"))},dependencies:[p._Y,p.Fj,p.wV,p.JJ,p.JL,p.qQ,p.sg,p.u,U.mk,U.O5,Q.y,q.P,G.O,x.iA,k.jx,x.Ei,l.G,h.xf,h.x4,i.u,c.XZ,d.A,D.L],encapsulation:2})}return r})()},885:(ee,Z,s)=>{s.d(Z,{R:()=>t});var g=s(7359),u=(s(8479),s(8487),s(4950)),m=s(4946);let t=(()=>{class I{static \u0275fac=function(A){return new(A||I)};static \u0275mod=m.oAB({type:I});static \u0275inj=m.cJS({imports:[g.u,u.A]})}return I})()}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[9575],{9006:(m,f,n)=>{n.d(f,{G:()=>F});var p=n(5861),l=n(1162),u=n(7848),t=n(4946),d=n(3429),g=n(9961),Z=n(7240),s=n(6814),U=n(7680),c=n(4844);function T(a,o){1&a&&t._UZ(0,"i",35)}function x(a,o){1&a&&t._UZ(0,"i",50)}function A(a,o){1&a&&t._UZ(0,"i",51)}function q(a,o){1&a&&t._UZ(0,"i",35)}function h(a,o){1&a&&t._UZ(0,"i",50)}function b(a,o){1&a&&t._UZ(0,"i",51)}function O(a,o){1&a&&t._UZ(0,"i",35)}function P(a,o){1&a&&t._UZ(0,"i",50)}function v(a,o){1&a&&t._UZ(0,"i",51)}function E(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Process Logs Path"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&a){const e=t.oxw().$implicit;t.xp6(4),t.Oqu(e.usefulEnv.logFilePath)}}function I(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Logs Cleanup Interval"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&a){const e=t.oxw().$implicit;t.xp6(4),t.Oqu(e.usefulEnv.logs__logRemoveSchedulerInterval)}}function C(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Max Logs Count To Keep In Log DB"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&a){const e=t.oxw().$implicit;t.xp6(4),t.Oqu(e.usefulEnv.logs__maxLogsCount.toLocaleString("en-IN"))}}function D(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Redis Value Expires In"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&a){const e=t.oxw().$implicit;t.xp6(4),t.hij("",e.usefulEnv.redisExternal__redisValueExpireInSeconds.toLocaleString("en-IN")," Seconds")}}function N(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Max Chars To Cache In Redis"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&a){const e=t.oxw().$implicit;t.xp6(4),t.Oqu(e.usefulEnv.redisExternal__maxCharsResToCache.toLocaleString("en-IN"))}}function w(a,o){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&a){const e=t.oxw().$implicit;t.xp6(1),t.hij(" \u2192 ",e.databaseName,"")}}const M=function(a){return{"text-danger font-weight-bold":a}},S=function(a){return{"text-success font-weight-bold":a}};function R(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._UZ(2,"img",52),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.YNc(6,w,2,1,"span",45),t.qZA(),t.TgZ(7,"td",53),t._uU(8),t.qZA(),t.TgZ(9,"td",54),t._uU(10),t.qZA(),t.TgZ(11,"td",54),t._uU(12),t.qZA()()),2&a){const e=o.$implicit,r=t.oxw(3);t.xp6(2),t.Akn("MONGO_DB"==e.type?"width:0.5rem; margin-right: 6px;":"width:1rem"),t.s9C("src",r.getInstanceIconUrl(e.type),t.LSH),t.s9C("alt",e.type),t.xp6(1),t.hij(" ",e.type," "),t.xp6(2),t.Oqu(e.instanceName),t.xp6(1),t.Q6J("ngIf",e.databaseName),t.xp6(2),t.Oqu(e.cMax),t.xp6(1),t.Q6J("ngClass",t.VKq(12,M,e.cMax===e.cShared)),t.xp6(1),t.Oqu(e.cShared),t.xp6(1),t.Q6J("ngClass",t.VKq(14,S,e.cAvailable>0)),t.xp6(1),t.Oqu(e.cAvailable)}}function y(a,o){if(1&a&&(t.TgZ(0,"p-tabPanel",10)(1,"div",1)(2,"div",11)(3,"div",12)(4,"table",13)(5,"tr",14)(6,"td",15),t._UZ(7,"i",16),t._uU(8," Worker Information"),t.qZA()(),t.TgZ(9,"tr")(10,"td",17),t._UZ(11,"i",18),t._uU(12," Is Master"),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA()(),t.TgZ(15,"tr")(16,"td"),t._UZ(17,"i",19),t._uU(18," Unique Id"),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.qZA()(),t.TgZ(21,"tr")(22,"td"),t._UZ(23,"i",20),t._uU(24," Total Workers"),t.qZA(),t.TgZ(25,"td"),t._uU(26),t.qZA()(),t.TgZ(27,"tr")(28,"td"),t._UZ(29,"i",21),t._uU(30," Host + Port"),t.qZA(),t.TgZ(31,"td"),t._uU(32),t.qZA()()(),t.TgZ(33,"table",13)(34,"tr",14)(35,"td",22),t.YNc(36,T,1,0,"i",23),t.YNc(37,x,1,0,"i",24),t.YNc(38,A,1,0,"i",25),t.TgZ(39,"span"),t._uU(40,"OS Memory Information"),t.qZA()()(),t.TgZ(41,"tr")(42,"td",17),t._UZ(43,"i",26),t._uU(44," Total Memory"),t.qZA(),t.TgZ(45,"td"),t._uU(46),t.qZA()(),t.TgZ(47,"tr")(48,"td"),t._UZ(49,"i",27),t._uU(50," Free Memory"),t.qZA(),t.TgZ(51,"td",28),t._uU(52),t.qZA()()(),t.TgZ(53,"table",29)(54,"tr",14)(55,"td",22),t._UZ(56,"i",30),t._uU(57," Process Memory Information"),t.qZA()(),t.TgZ(58,"tr")(59,"td",17),t._UZ(60,"i",31),t._uU(61," Total Use (RSS)"),t.qZA(),t.TgZ(62,"td",28),t._uU(63),t.qZA()(),t.TgZ(64,"tr")(65,"td"),t._UZ(66,"i",32),t._uU(67," External"),t.qZA(),t.TgZ(68,"td"),t._uU(69),t.qZA()(),t.TgZ(70,"tr")(71,"td"),t._UZ(72,"i",33),t._uU(73," Heap Total"),t.qZA(),t.TgZ(74,"td"),t._uU(75),t.qZA()(),t.TgZ(76,"tr")(77,"td"),t._UZ(78,"i",34),t._uU(79," Heap Used"),t.qZA(),t.TgZ(80,"td"),t._uU(81),t.qZA()()()(),t.TgZ(82,"div",12)(83,"table",13)(84,"tr",14)(85,"td",22),t.YNc(86,q,1,0,"i",23),t.YNc(87,h,1,0,"i",24),t.YNc(88,b,1,0,"i",25),t._uU(89," Platform Information "),t.qZA()(),t.TgZ(90,"tr")(91,"td",17),t._UZ(92,"i",35),t._uU(93," Platform"),t.qZA(),t.TgZ(94,"td"),t.YNc(95,O,1,0,"i",23),t.YNc(96,P,1,0,"i",24),t.YNc(97,v,1,0,"i",25),t.TgZ(98,"span"),t._uU(99),t.qZA()()(),t.TgZ(100,"tr")(101,"td"),t._UZ(102,"i",36),t._uU(103," Host Name"),t.qZA(),t.TgZ(104,"td"),t._uU(105),t.qZA()(),t.TgZ(106,"tr")(107,"td"),t._UZ(108,"i",37),t._uU(109," Home Directory"),t.qZA(),t.TgZ(110,"td"),t._uU(111),t.qZA()(),t.TgZ(112,"tr")(113,"td"),t._UZ(114,"i",38),t._uU(115," Temp Directory"),t.qZA(),t.TgZ(116,"td"),t._uU(117),t.qZA()(),t.TgZ(118,"tr")(119,"td"),t._UZ(120,"i",39),t._uU(121," CPU Count"),t.qZA(),t.TgZ(122,"td"),t._uU(123),t.qZA()(),t.TgZ(124,"tr")(125,"td"),t._UZ(126,"i",39),t._uU(127," CPU Info"),t.qZA(),t.TgZ(128,"td",40),t._uU(129),t.qZA()(),t.TgZ(130,"tr")(131,"td"),t._UZ(132,"i",41),t._uU(133," Up Time"),t.qZA(),t.TgZ(134,"td"),t._uU(135),t.qZA()(),t.TgZ(136,"tr")(137,"td"),t._UZ(138,"i",42),t._uU(139," Node.js Version"),t.qZA(),t.TgZ(140,"td",40),t._uU(141),t.qZA()(),t.TgZ(142,"tr")(143,"td"),t._UZ(144,"i",42),t._uU(145," Node Options"),t.qZA(),t.TgZ(146,"td"),t._uU(147),t.qZA()()()()(),t.TgZ(148,"div",43)(149,"table",29)(150,"tr",14)(151,"td",44),t._UZ(152,"i",39),t._uU(153," Some Important Environment Variables"),t.qZA()(),t.TgZ(154,"tr")(155,"td",17),t._uU(156,"Max Memory Limit Of Sandbox Node.js Process"),t.qZA(),t.TgZ(157,"td"),t._uU(158),t.qZA()(),t.TgZ(159,"tr")(160,"td"),t._uU(161,"Env File Path"),t.qZA(),t.TgZ(162,"td"),t._uU(163),t.qZA()(),t.YNc(164,E,5,1,"tr",45),t.TgZ(165,"tr")(166,"td"),t._uU(167,"Oracle Client Path"),t.qZA(),t.TgZ(168,"td"),t._uU(169),t.qZA()(),t.TgZ(170,"tr")(171,"td"),t._uU(172,"Logging enabled"),t.qZA(),t.TgZ(173,"td"),t._uU(174),t.qZA()(),t.YNc(175,I,5,1,"tr",45),t.YNc(176,C,5,1,"tr",45),t.YNc(177,D,5,1,"tr",45),t.YNc(178,N,5,1,"tr",45),t.TgZ(179,"tr")(180,"td"),t._uU(181,"JWT Expires In"),t.qZA(),t.TgZ(182,"td"),t._uU(183),t.qZA()(),t.TgZ(184,"tr")(185,"td"),t._uU(186,"JWT Issuer"),t.qZA(),t.TgZ(187,"td"),t._uU(188),t.qZA()(),t.TgZ(189,"tr")(190,"td"),t._uU(191,"Encrypted Data Valid Till Sent By FE"),t.qZA(),t.TgZ(192,"td"),t._uU(193),t.qZA()(),t.TgZ(194,"tr")(195,"td"),t._uU(196,"Refresh Token Is Valid Till"),t.qZA(),t.TgZ(197,"td"),t._uU(198),t.qZA()(),t.TgZ(199,"tr")(200,"td"),t._uU(201,"Response Compress If Larger Than These Many Bytes"),t.qZA(),t.TgZ(202,"td"),t._uU(203),t.qZA()(),t.TgZ(204,"tr")(205,"td"),t._uU(206,"Maximum Body Size Allowed To Accept"),t.qZA(),t.TgZ(207,"td"),t._uU(208),t.qZA()(),t.TgZ(209,"tr")(210,"td"),t._uU(211,"Cron Time Zone"),t.qZA(),t.TgZ(212,"td"),t._uU(213),t.qZA()(),t.TgZ(214,"tr")(215,"td"),t._uU(216,"Store URL"),t.qZA(),t.TgZ(217,"td"),t._uU(218),t.qZA()(),t.TgZ(219,"tr")(220,"td"),t._uU(221,"Maximum Test Users For UI"),t.qZA(),t.TgZ(222,"td"),t._uU(223),t.qZA()(),t.TgZ(224,"tr")(225,"td"),t._uU(226,"Uploaded File Cleaning Scheduler Cron"),t.qZA(),t.TgZ(227,"td"),t._uU(228),t.qZA()(),t.TgZ(229,"tr")(230,"td"),t._uU(231,"Uploaded File Remove Older Than This Time"),t.qZA(),t.TgZ(232,"td"),t._uU(233),t.qZA()()()(),t.TgZ(234,"div",43)(235,"table",29)(236,"tr",14)(237,"td",44),t._UZ(238,"i",46),t._uU(239," DB Connections"),t.qZA()(),t.TgZ(240,"tr")(241,"td",47),t._uU(242," Type"),t.qZA(),t.TgZ(243,"td"),t._uU(244," Name"),t.qZA(),t.TgZ(245,"td",48),t._uU(246," Max"),t.qZA(),t.TgZ(247,"td",48),t._uU(248," Shared"),t.qZA(),t.TgZ(249,"td",48),t._uU(250," Available"),t.qZA()(),t.YNc(251,R,13,16,"tr",49),t.qZA()()()()),2&a){const e=o.$implicit;t.s9C("header","Worker - "+e.workerId),t.xp6(14),t.Oqu(e.isMaster),t.xp6(6),t.Oqu(e.uniqueProcessId),t.xp6(6),t.Oqu(e.totalWorkers),t.xp6(6),t.Oqu(e.beHostPort),t.xp6(4),t.Q6J("ngIf","linux"===e.platform),t.xp6(1),t.Q6J("ngIf","darwin"===e.platform),t.xp6(1),t.Q6J("ngIf","win32"===e.platform),t.xp6(8),t.Oqu(e.totalMemory),t.xp6(6),t.Oqu(e.freeMemory),t.xp6(11),t.Oqu(e.memory.rss),t.xp6(6),t.Oqu(e.memory.externalUsage),t.xp6(6),t.Oqu(e.memory.heapTotal),t.xp6(6),t.Oqu(e.memory.heapUsed),t.xp6(5),t.Q6J("ngIf","linux"===e.platform),t.xp6(1),t.Q6J("ngIf","darwin"===e.platform),t.xp6(1),t.Q6J("ngIf","win32"===e.platform),t.xp6(7),t.Q6J("ngIf","linux"===e.platform),t.xp6(1),t.Q6J("ngIf","darwin"===e.platform),t.xp6(1),t.Q6J("ngIf","win32"===e.platform),t.xp6(2),t.Oqu(e.platform),t.xp6(6),t.Oqu(e.hostName),t.xp6(6),t.Oqu(e.homeDir),t.xp6(6),t.Oqu(e.tempDir),t.xp6(6),t.Oqu(e.countCPUs),t.xp6(6),t.Oqu(e.cpuModel),t.xp6(6),t.Oqu(e.upTime),t.xp6(6),t.Oqu(e.nodeVersion),t.xp6(6),t.Oqu(e.nodeOptions),t.xp6(11),t.hij("",e.usefulEnv.sandbox__sandboxMaxOldSpaceMB," MB"),t.xp6(5),t.Oqu(e.usefulEnv.envPath),t.xp6(1),t.Q6J("ngIf",e.usefulEnv.logs__enable),t.xp6(5),t.Oqu(e.usefulEnv.oracleClientPath),t.xp6(5),t.Oqu(e.usefulEnv.logs__enable),t.xp6(1),t.Q6J("ngIf",e.usefulEnv.logs__enable),t.xp6(1),t.Q6J("ngIf",e.usefulEnv.logs__enable),t.xp6(1),t.Q6J("ngIf",e.usefulEnv.externalResiProvided),t.xp6(1),t.Q6J("ngIf",e.usefulEnv.externalResiProvided),t.xp6(5),t.hij("",e.usefulEnv.jwtOptions__expiresIn.toLocaleString("en-IN")," Seconds"),t.xp6(5),t.Oqu(e.usefulEnv.jwtOptions__issuer),t.xp6(5),t.hij("",e.usefulEnv.feTransferDataValidityInSecondsDefault.toLocaleString("en-IN")," Seconds"),t.xp6(5),t.hij("",e.usefulEnv.refreshTokenValidForS," Seconds"),t.xp6(5),t.Oqu(e.usefulEnv.compressThreshold.toLocaleString("en-IN")),t.xp6(5),t.hij("",e.usefulEnv.bodyLimit.toLocaleString("en-IN")," Byte"),t.xp6(5),t.Oqu(e.usefulEnv.cron_job_time_zone),t.xp6(5),t.Oqu(e.usefulEnv.store_url),t.xp6(5),t.Oqu(e.usefulEnv.maximum_test_user_count.toLocaleString("en-IN")),t.xp6(5),t.Oqu(e.usefulEnv.uploadedFileCleaningSchedulerCron),t.xp6(5),t.hij("",e.usefulEnv.uploadedFileRemoveOlderThanThisTimeInSeconds.toLocaleString("en-IN")," Seconds"),t.xp6(18),t.Q6J("ngForOf",e.dbConnections)}}function L(a,o){if(1&a&&(t.TgZ(0,"p-tabPanel",10)(1,"p-tabView"),t.YNc(2,y,252,50,"p-tabPanel",8),t.qZA()()),2&a){const e=o.$implicit;t.s9C("header",e.name),t.xp6(2),t.Q6J("ngForOf",e.value)}}function B(a,o){1&a&&t._UZ(0,"p-progressSpinner",55)}let F=(()=>{class a{instanceS;ns;generalS;iDetailedSystemInfoObject;groupHost;groupHostArr=[];loading={grid:!1};constructor(e,r,i){this.instanceS=e,this.ns=r,this.generalS=i}ngOnInit(){this.getOriginal(),this.generalS.setNewTitle("API Maker - Nodes Dashboard")}getOriginal(){var e=this;return(0,p.Z)(function*(){e.loading.grid=!0;try{e.iDetailedSystemInfoObject=(yield e.instanceS.getFullSystemInfo().toPromise()).data,e.groupHost=_.groupBy(e.iDetailedSystemInfoObject,l.GR.hostName);for(const r in e.groupHost){const i={name:r,value:e.groupHost[r]||[]};e.groupHostArr.push(i),i.value=_.orderBy(i.value||[],[W=>W.workerId],[l.Wc.asc])}e.groupHostArr=_.orderBy(e.groupHostArr,[r=>(r.name||"").toLowerCase()],[l.Wc.asc])}catch(r){console.log(r),e.ns.showErrorFromResponse(r.error||r,"Unable to load server information.")}e.loading.grid=!1})()}getInstanceIconUrl(e){return e===u.d.SQL_SERVER_DB?"./assets/images/svg/Microsoft_SQL_Server_DB_No_Logo.svg":e===u.d.ORACLE_DB?"./assets/images/svg/Oracle_DB_No_Logo.svg":`./assets/images/svg/${e}.svg`}static \u0275fac=function(r){return new(r||a)(t.Y36(d.E),t.Y36(g.W),t.Y36(Z.b))};static \u0275cmp=t.Xpm({type:a,selectors:[["app-dash-root-nodes"]],decls:12,vars:2,consts:[["id","about",1,"mt-3"],[1,"container"],[1,"row"],[1,"col-lg-8","mx-auto"],[1,"text-center","mb-3","mt-3"],["src","/assets/images/icons/nodes.svg","alt","Server Nodes Dashboard",1,"fa-fw","mr-1"],[1,"mt-3"],[1,"card-body","p-0","h-100","overflow-hidden"],[3,"header",4,"ngFor","ngForOf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"header"],[1,"row","mt-3"],[1,"col-lg-6","mx-auto"],[1,"table","table-hover","table-striped","table-bordered","table-sm",2,"background-color","#3F3F3F"],[1,"bg-gradient"],["colspan","2",1,"text-center","fw-bold","border",2,"background-color","#272727"],[1,"fas","fa-cubes","fa-fw"],[2,"width","40%"],[1,"fas","fa-star","fa-fw"],[1,"fas","fa-fingerprint","fa-fw"],[1,"fas","fa-hands","fa-fw"],[1,"fas","fa-network-wired","fa-fw"],["colspan","2",1,"text-center","fw-bold",2,"background-color","#272727"],["class","fab fa-linux fa-fw",4,"ngIf"],["class","fab fa-apple fa-fw",4,"ngIf"],["class","fab fa-windows fa-fw",4,"ngIf"],[1,"fas","fa-square","fa-fw"],[1,"far","fa-square","fa-fw"],[1,"text-info","fw-bold"],[1,"table","table-hover","table-striped","table-bordered","mt-3","table-sm",2,"background-color","#3F3F3F"],[1,"fas","fa-memory","fa-fw"],[1,"fas","fa-rss","fa-fw"],[1,"fas","fa-outdent","fa-fw"],[1,"far","fa-circle","fa-fw"],[1,"fas","fa-circle-notch","fa-fw"],[1,"fab","fa-linux","fa-fw"],[1,"far","fa-user","fa-fw"],[1,"fas","fa-home","fa-fw"],[1,"fas","fa-folder","fa-fw"],[1,"fas","fa-microchip","fa-fw"],[1,"text-success"],[1,"fas","fa-hourglass-start","fa-fw"],[1,"fab","fa-node-js","fa-fw"],[1,"pb-3"],["colspan","5",1,"text-center","fw-bold",2,"background-color","#272727"],[4,"ngIf"],[1,"fas","fa-database","fa-fw"],[2,"width","250px"],[1,"text-center",2,"width","70px"],[4,"ngFor","ngForOf"],[1,"fab","fa-apple","fa-fw"],[1,"fab","fa-windows","fa-fw"],[3,"src","alt"],[1,"text-center"],[1,"text-center",3,"ngClass"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(r,i){1&r&&(t.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h3",4),t._UZ(5,"img",5),t._uU(6," Server Nodes Dashboard"),t.qZA()()()()(),t.TgZ(7,"section",6)(8,"div",7)(9,"p-tabView"),t.YNc(10,L,3,2,"p-tabPanel",8),t.qZA()(),t.YNc(11,B,1,0,"p-progressSpinner",9),t.qZA()),2&r&&(t.xp6(10),t.Q6J("ngForOf",i.groupHostArr),t.xp6(1),t.Q6J("ngIf",i.loading.grid))},dependencies:[s.mk,s.sg,s.O5,U.G,c.xf,c.x4],styles:["table[_ngcontent-%COMP%]{background-color:#3f3f3f}td[_ngcontent-%COMP%]{border-color:#4b4a4a!important;padding:10px}"]})}return a})()},9575:(m,f,n)=>{n.d(f,{Q:()=>Z});var p=n(7664),l=n(7359),u=n(3726),t=n(9006),d=n(4946);const g=[{path:"",component:t.G,canActivate:[u.P]}];let Z=(()=>{class s{static \u0275fac=function(T){return new(T||s)};static \u0275mod=d.oAB({type:s});static \u0275inj=d.cJS({imports:[p.Bz.forChild(g),l.u]})}return s})()}}]);
1
+ "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[9575],{9006:(m,f,n)=>{n.d(f,{G:()=>F});var p=n(5861),l=n(1162),u=n(7848),t=n(4946),d=n(3429),g=n(9961),Z=n(7240),s=n(6814),U=n(7680),c=n(4844);function T(a,o){1&a&&t._UZ(0,"i",35)}function x(a,o){1&a&&t._UZ(0,"i",50)}function A(a,o){1&a&&t._UZ(0,"i",51)}function q(a,o){1&a&&t._UZ(0,"i",35)}function h(a,o){1&a&&t._UZ(0,"i",50)}function b(a,o){1&a&&t._UZ(0,"i",51)}function O(a,o){1&a&&t._UZ(0,"i",35)}function P(a,o){1&a&&t._UZ(0,"i",50)}function v(a,o){1&a&&t._UZ(0,"i",51)}function E(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Process Logs Path"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&a){const e=t.oxw().$implicit;t.xp6(4),t.Oqu(e.usefulEnv.logFilePath)}}function I(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Logs Cleanup Interval"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&a){const e=t.oxw().$implicit;t.xp6(4),t.Oqu(e.usefulEnv.logs__logRemoveSchedulerInterval)}}function C(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Max Logs Count To Keep In Log DB"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&a){const e=t.oxw().$implicit;t.xp6(4),t.Oqu(e.usefulEnv.logs__maxLogsCount.toLocaleString("en-IN"))}}function D(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Redis Value Expires In"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&a){const e=t.oxw().$implicit;t.xp6(4),t.hij("",e.usefulEnv.redisExternal__redisValueExpireInSeconds.toLocaleString("en-IN")," Seconds")}}function N(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._uU(2,"Max Chars To Cache In Redis"),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA()()),2&a){const e=t.oxw().$implicit;t.xp6(4),t.Oqu(e.usefulEnv.redisExternal__maxCharsResToCache.toLocaleString("en-IN"))}}function w(a,o){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&a){const e=t.oxw().$implicit;t.xp6(1),t.hij(" \u2192 ",e.databaseName,"")}}const M=function(a){return{"text-danger font-weight-bold":a}},S=function(a){return{"text-success font-weight-bold":a}};function R(a,o){if(1&a&&(t.TgZ(0,"tr")(1,"td"),t._UZ(2,"img",52),t._uU(3),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.YNc(6,w,2,1,"span",45),t.qZA(),t.TgZ(7,"td",53),t._uU(8),t.qZA(),t.TgZ(9,"td",54),t._uU(10),t.qZA(),t.TgZ(11,"td",54),t._uU(12),t.qZA()()),2&a){const e=o.$implicit,r=t.oxw(3);t.xp6(2),t.Akn("MONGO_DB"==e.type?"width:0.5rem; margin-right: 6px;":"width:1rem"),t.s9C("src",r.getInstanceIconUrl(e.type),t.LSH),t.s9C("alt",e.type),t.xp6(1),t.hij(" ",e.type," "),t.xp6(2),t.Oqu(e.instanceName),t.xp6(1),t.Q6J("ngIf",e.databaseName),t.xp6(2),t.Oqu(e.cMax),t.xp6(1),t.Q6J("ngClass",t.VKq(12,M,e.cMax===e.cShared)),t.xp6(1),t.Oqu(e.cShared),t.xp6(1),t.Q6J("ngClass",t.VKq(14,S,e.cAvailable>0)),t.xp6(1),t.Oqu(e.cAvailable)}}function y(a,o){if(1&a&&(t.TgZ(0,"p-tabPanel",10)(1,"div",1)(2,"div",11)(3,"div",12)(4,"table",13)(5,"tr",14)(6,"td",15),t._UZ(7,"i",16),t._uU(8," Worker Information"),t.qZA()(),t.TgZ(9,"tr")(10,"td",17),t._UZ(11,"i",18),t._uU(12," Is Master"),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA()(),t.TgZ(15,"tr")(16,"td"),t._UZ(17,"i",19),t._uU(18," Unique Id"),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.qZA()(),t.TgZ(21,"tr")(22,"td"),t._UZ(23,"i",20),t._uU(24," Total Workers"),t.qZA(),t.TgZ(25,"td"),t._uU(26),t.qZA()(),t.TgZ(27,"tr")(28,"td"),t._UZ(29,"i",21),t._uU(30," Host + Port"),t.qZA(),t.TgZ(31,"td"),t._uU(32),t.qZA()()(),t.TgZ(33,"table",13)(34,"tr",14)(35,"td",22),t.YNc(36,T,1,0,"i",23),t.YNc(37,x,1,0,"i",24),t.YNc(38,A,1,0,"i",25),t.TgZ(39,"span"),t._uU(40,"OS Memory Information"),t.qZA()()(),t.TgZ(41,"tr")(42,"td",17),t._UZ(43,"i",26),t._uU(44," Total Memory"),t.qZA(),t.TgZ(45,"td"),t._uU(46),t.qZA()(),t.TgZ(47,"tr")(48,"td"),t._UZ(49,"i",27),t._uU(50," Free Memory"),t.qZA(),t.TgZ(51,"td",28),t._uU(52),t.qZA()()(),t.TgZ(53,"table",29)(54,"tr",14)(55,"td",22),t._UZ(56,"i",30),t._uU(57," Process Memory Information"),t.qZA()(),t.TgZ(58,"tr")(59,"td",17),t._UZ(60,"i",31),t._uU(61," Total Use (RSS)"),t.qZA(),t.TgZ(62,"td",28),t._uU(63),t.qZA()(),t.TgZ(64,"tr")(65,"td"),t._UZ(66,"i",32),t._uU(67," External"),t.qZA(),t.TgZ(68,"td"),t._uU(69),t.qZA()(),t.TgZ(70,"tr")(71,"td"),t._UZ(72,"i",33),t._uU(73," Heap Total"),t.qZA(),t.TgZ(74,"td"),t._uU(75),t.qZA()(),t.TgZ(76,"tr")(77,"td"),t._UZ(78,"i",34),t._uU(79," Heap Used"),t.qZA(),t.TgZ(80,"td"),t._uU(81),t.qZA()()()(),t.TgZ(82,"div",12)(83,"table",13)(84,"tr",14)(85,"td",22),t.YNc(86,q,1,0,"i",23),t.YNc(87,h,1,0,"i",24),t.YNc(88,b,1,0,"i",25),t._uU(89," Platform Information "),t.qZA()(),t.TgZ(90,"tr")(91,"td",17),t._UZ(92,"i",35),t._uU(93," Platform"),t.qZA(),t.TgZ(94,"td"),t.YNc(95,O,1,0,"i",23),t.YNc(96,P,1,0,"i",24),t.YNc(97,v,1,0,"i",25),t.TgZ(98,"span"),t._uU(99),t.qZA()()(),t.TgZ(100,"tr")(101,"td"),t._UZ(102,"i",36),t._uU(103," Host Name"),t.qZA(),t.TgZ(104,"td"),t._uU(105),t.qZA()(),t.TgZ(106,"tr")(107,"td"),t._UZ(108,"i",37),t._uU(109," Home Directory"),t.qZA(),t.TgZ(110,"td"),t._uU(111),t.qZA()(),t.TgZ(112,"tr")(113,"td"),t._UZ(114,"i",38),t._uU(115," Temp Directory"),t.qZA(),t.TgZ(116,"td"),t._uU(117),t.qZA()(),t.TgZ(118,"tr")(119,"td"),t._UZ(120,"i",39),t._uU(121," CPU Count"),t.qZA(),t.TgZ(122,"td"),t._uU(123),t.qZA()(),t.TgZ(124,"tr")(125,"td"),t._UZ(126,"i",39),t._uU(127," CPU Info"),t.qZA(),t.TgZ(128,"td",40),t._uU(129),t.qZA()(),t.TgZ(130,"tr")(131,"td"),t._UZ(132,"i",41),t._uU(133," Up Time"),t.qZA(),t.TgZ(134,"td"),t._uU(135),t.qZA()(),t.TgZ(136,"tr")(137,"td"),t._UZ(138,"i",42),t._uU(139," Node.js Version"),t.qZA(),t.TgZ(140,"td",40),t._uU(141),t.qZA()(),t.TgZ(142,"tr")(143,"td"),t._UZ(144,"i",42),t._uU(145," Node Options"),t.qZA(),t.TgZ(146,"td"),t._uU(147),t.qZA()()()()(),t.TgZ(148,"div",43)(149,"table",29)(150,"tr",14)(151,"td",44),t._UZ(152,"i",39),t._uU(153," Some Important Environment Variables"),t.qZA()(),t.TgZ(154,"tr")(155,"td",17),t._uU(156,"Max Memory Limit Of Sandbox Node.js Process"),t.qZA(),t.TgZ(157,"td"),t._uU(158),t.qZA()(),t.TgZ(159,"tr")(160,"td"),t._uU(161,"Env File Path"),t.qZA(),t.TgZ(162,"td"),t._uU(163),t.qZA()(),t.YNc(164,E,5,1,"tr",45),t.TgZ(165,"tr")(166,"td"),t._uU(167,"Oracle Client Path"),t.qZA(),t.TgZ(168,"td"),t._uU(169),t.qZA()(),t.TgZ(170,"tr")(171,"td"),t._uU(172,"Logging enabled"),t.qZA(),t.TgZ(173,"td"),t._uU(174),t.qZA()(),t.YNc(175,I,5,1,"tr",45),t.YNc(176,C,5,1,"tr",45),t.YNc(177,D,5,1,"tr",45),t.YNc(178,N,5,1,"tr",45),t.TgZ(179,"tr")(180,"td"),t._uU(181,"JWT Expires In"),t.qZA(),t.TgZ(182,"td"),t._uU(183),t.qZA()(),t.TgZ(184,"tr")(185,"td"),t._uU(186,"JWT Issuer"),t.qZA(),t.TgZ(187,"td"),t._uU(188),t.qZA()(),t.TgZ(189,"tr")(190,"td"),t._uU(191,"Encrypted Data Valid Till Sent By FE"),t.qZA(),t.TgZ(192,"td"),t._uU(193),t.qZA()(),t.TgZ(194,"tr")(195,"td"),t._uU(196,"Refresh Token Is Valid Till"),t.qZA(),t.TgZ(197,"td"),t._uU(198),t.qZA()(),t.TgZ(199,"tr")(200,"td"),t._uU(201,"Response Compress If Larger Than These Many Bytes"),t.qZA(),t.TgZ(202,"td"),t._uU(203),t.qZA()(),t.TgZ(204,"tr")(205,"td"),t._uU(206,"Maximum Body Size Allowed To Accept"),t.qZA(),t.TgZ(207,"td"),t._uU(208),t.qZA()(),t.TgZ(209,"tr")(210,"td"),t._uU(211,"Cron Time Zone"),t.qZA(),t.TgZ(212,"td"),t._uU(213),t.qZA()(),t.TgZ(214,"tr")(215,"td"),t._uU(216,"Store URL"),t.qZA(),t.TgZ(217,"td"),t._uU(218),t.qZA()(),t.TgZ(219,"tr")(220,"td"),t._uU(221,"Maximum Test Users For UI"),t.qZA(),t.TgZ(222,"td"),t._uU(223),t.qZA()(),t.TgZ(224,"tr")(225,"td"),t._uU(226,"Uploaded File Cleaning Scheduler Cron"),t.qZA(),t.TgZ(227,"td"),t._uU(228),t.qZA()(),t.TgZ(229,"tr")(230,"td"),t._uU(231,"Uploaded File Remove Older Than This Time"),t.qZA(),t.TgZ(232,"td"),t._uU(233),t.qZA()(),t.TgZ(234,"tr")(235,"td"),t._uU(236,"Maximum characters allowed in console.log"),t.qZA(),t.TgZ(237,"td"),t._uU(238),t.qZA()()()(),t.TgZ(239,"div",43)(240,"table",29)(241,"tr",14)(242,"td",44),t._UZ(243,"i",46),t._uU(244," DB Connections"),t.qZA()(),t.TgZ(245,"tr")(246,"td",47),t._uU(247," Type"),t.qZA(),t.TgZ(248,"td"),t._uU(249," Name"),t.qZA(),t.TgZ(250,"td",48),t._uU(251," Max"),t.qZA(),t.TgZ(252,"td",48),t._uU(253," Shared"),t.qZA(),t.TgZ(254,"td",48),t._uU(255," Available"),t.qZA()(),t.YNc(256,R,13,16,"tr",49),t.qZA()()()()),2&a){const e=o.$implicit;t.s9C("header","Worker - "+e.workerId),t.xp6(14),t.Oqu(e.isMaster),t.xp6(6),t.Oqu(e.uniqueProcessId),t.xp6(6),t.Oqu(e.totalWorkers),t.xp6(6),t.Oqu(e.beHostPort),t.xp6(4),t.Q6J("ngIf","linux"===e.platform),t.xp6(1),t.Q6J("ngIf","darwin"===e.platform),t.xp6(1),t.Q6J("ngIf","win32"===e.platform),t.xp6(8),t.Oqu(e.totalMemory),t.xp6(6),t.Oqu(e.freeMemory),t.xp6(11),t.Oqu(e.memory.rss),t.xp6(6),t.Oqu(e.memory.externalUsage),t.xp6(6),t.Oqu(e.memory.heapTotal),t.xp6(6),t.Oqu(e.memory.heapUsed),t.xp6(5),t.Q6J("ngIf","linux"===e.platform),t.xp6(1),t.Q6J("ngIf","darwin"===e.platform),t.xp6(1),t.Q6J("ngIf","win32"===e.platform),t.xp6(7),t.Q6J("ngIf","linux"===e.platform),t.xp6(1),t.Q6J("ngIf","darwin"===e.platform),t.xp6(1),t.Q6J("ngIf","win32"===e.platform),t.xp6(2),t.Oqu(e.platform),t.xp6(6),t.Oqu(e.hostName),t.xp6(6),t.Oqu(e.homeDir),t.xp6(6),t.Oqu(e.tempDir),t.xp6(6),t.Oqu(e.countCPUs),t.xp6(6),t.Oqu(e.cpuModel),t.xp6(6),t.Oqu(e.upTime),t.xp6(6),t.Oqu(e.nodeVersion),t.xp6(6),t.Oqu(e.nodeOptions),t.xp6(11),t.hij("",e.usefulEnv.sandbox__sandboxMaxOldSpaceMB," MB"),t.xp6(5),t.Oqu(e.usefulEnv.envPath),t.xp6(1),t.Q6J("ngIf",e.usefulEnv.logs__enable),t.xp6(5),t.Oqu(e.usefulEnv.oracleClientPath),t.xp6(5),t.Oqu(e.usefulEnv.logs__enable),t.xp6(1),t.Q6J("ngIf",e.usefulEnv.logs__enable),t.xp6(1),t.Q6J("ngIf",e.usefulEnv.logs__enable),t.xp6(1),t.Q6J("ngIf",e.usefulEnv.externalResiProvided),t.xp6(1),t.Q6J("ngIf",e.usefulEnv.externalResiProvided),t.xp6(5),t.hij("",e.usefulEnv.jwtOptions__expiresIn.toLocaleString("en-IN")," Seconds"),t.xp6(5),t.Oqu(e.usefulEnv.jwtOptions__issuer),t.xp6(5),t.hij("",e.usefulEnv.feTransferDataValidityInSecondsDefault.toLocaleString("en-IN")," Seconds"),t.xp6(5),t.hij("",e.usefulEnv.refreshTokenValidForS," Seconds"),t.xp6(5),t.Oqu(e.usefulEnv.compressThreshold.toLocaleString("en-IN")),t.xp6(5),t.hij("",e.usefulEnv.bodyLimit.toLocaleString("en-IN")," Byte"),t.xp6(5),t.Oqu(e.usefulEnv.cron_job_time_zone),t.xp6(5),t.Oqu(e.usefulEnv.store_url),t.xp6(5),t.Oqu(e.usefulEnv.maximum_test_user_count.toLocaleString("en-IN")),t.xp6(5),t.Oqu(e.usefulEnv.uploadedFileCleaningSchedulerCron),t.xp6(5),t.hij("",e.usefulEnv.uploadedFileRemoveOlderThanThisTimeInSeconds.toLocaleString("en-IN")," Seconds"),t.xp6(5),t.hij("",e.usefulEnv.redisInternal__maxCharsToStoreInConsoleLogs.toLocaleString("en-IN")," Characters"),t.xp6(18),t.Q6J("ngForOf",e.dbConnections)}}function L(a,o){if(1&a&&(t.TgZ(0,"p-tabPanel",10)(1,"p-tabView"),t.YNc(2,y,257,51,"p-tabPanel",8),t.qZA()()),2&a){const e=o.$implicit;t.s9C("header",e.name),t.xp6(2),t.Q6J("ngForOf",e.value)}}function B(a,o){1&a&&t._UZ(0,"p-progressSpinner",55)}let F=(()=>{class a{instanceS;ns;generalS;iDetailedSystemInfoObject;groupHost;groupHostArr=[];loading={grid:!1};constructor(e,r,i){this.instanceS=e,this.ns=r,this.generalS=i}ngOnInit(){this.getOriginal(),this.generalS.setNewTitle("API Maker - Nodes Dashboard")}getOriginal(){var e=this;return(0,p.Z)(function*(){e.loading.grid=!0;try{e.iDetailedSystemInfoObject=(yield e.instanceS.getFullSystemInfo().toPromise()).data,e.groupHost=_.groupBy(e.iDetailedSystemInfoObject,l.GR.hostName);for(const r in e.groupHost){const i={name:r,value:e.groupHost[r]||[]};e.groupHostArr.push(i),i.value=_.orderBy(i.value||[],[W=>W.workerId],[l.Wc.asc])}e.groupHostArr=_.orderBy(e.groupHostArr,[r=>(r.name||"").toLowerCase()],[l.Wc.asc])}catch(r){console.log(r),e.ns.showErrorFromResponse(r.error||r,"Unable to load server information.")}e.loading.grid=!1})()}getInstanceIconUrl(e){return e===u.d.SQL_SERVER_DB?"./assets/images/svg/Microsoft_SQL_Server_DB_No_Logo.svg":e===u.d.ORACLE_DB?"./assets/images/svg/Oracle_DB_No_Logo.svg":`./assets/images/svg/${e}.svg`}static \u0275fac=function(r){return new(r||a)(t.Y36(d.E),t.Y36(g.W),t.Y36(Z.b))};static \u0275cmp=t.Xpm({type:a,selectors:[["app-dash-root-nodes"]],decls:12,vars:2,consts:[["id","about",1,"mt-3"],[1,"container"],[1,"row"],[1,"col-lg-8","mx-auto"],[1,"text-center","mb-3","mt-3"],["src","/assets/images/icons/nodes.svg","alt","Server Nodes Dashboard",1,"fa-fw","mr-1"],[1,"mt-3"],[1,"card-body","p-0","h-100","overflow-hidden"],[3,"header",4,"ngFor","ngForOf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"header"],[1,"row","mt-3"],[1,"col-lg-6","mx-auto"],[1,"table","table-hover","table-striped","table-bordered","table-sm",2,"background-color","#3F3F3F"],[1,"bg-gradient"],["colspan","2",1,"text-center","fw-bold","border",2,"background-color","#272727"],[1,"fas","fa-cubes","fa-fw"],[2,"width","40%"],[1,"fas","fa-star","fa-fw"],[1,"fas","fa-fingerprint","fa-fw"],[1,"fas","fa-hands","fa-fw"],[1,"fas","fa-network-wired","fa-fw"],["colspan","2",1,"text-center","fw-bold",2,"background-color","#272727"],["class","fab fa-linux fa-fw",4,"ngIf"],["class","fab fa-apple fa-fw",4,"ngIf"],["class","fab fa-windows fa-fw",4,"ngIf"],[1,"fas","fa-square","fa-fw"],[1,"far","fa-square","fa-fw"],[1,"text-info","fw-bold"],[1,"table","table-hover","table-striped","table-bordered","mt-3","table-sm",2,"background-color","#3F3F3F"],[1,"fas","fa-memory","fa-fw"],[1,"fas","fa-rss","fa-fw"],[1,"fas","fa-outdent","fa-fw"],[1,"far","fa-circle","fa-fw"],[1,"fas","fa-circle-notch","fa-fw"],[1,"fab","fa-linux","fa-fw"],[1,"far","fa-user","fa-fw"],[1,"fas","fa-home","fa-fw"],[1,"fas","fa-folder","fa-fw"],[1,"fas","fa-microchip","fa-fw"],[1,"text-success"],[1,"fas","fa-hourglass-start","fa-fw"],[1,"fab","fa-node-js","fa-fw"],[1,"pb-3"],["colspan","5",1,"text-center","fw-bold",2,"background-color","#272727"],[4,"ngIf"],[1,"fas","fa-database","fa-fw"],[2,"width","250px"],[1,"text-center",2,"width","70px"],[4,"ngFor","ngForOf"],[1,"fab","fa-apple","fa-fw"],[1,"fab","fa-windows","fa-fw"],[3,"src","alt"],[1,"text-center"],[1,"text-center",3,"ngClass"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(r,i){1&r&&(t.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h3",4),t._UZ(5,"img",5),t._uU(6," Server Nodes Dashboard"),t.qZA()()()()(),t.TgZ(7,"section",6)(8,"div",7)(9,"p-tabView"),t.YNc(10,L,3,2,"p-tabPanel",8),t.qZA()(),t.YNc(11,B,1,0,"p-progressSpinner",9),t.qZA()),2&r&&(t.xp6(10),t.Q6J("ngForOf",i.groupHostArr),t.xp6(1),t.Q6J("ngIf",i.loading.grid))},dependencies:[s.mk,s.sg,s.O5,U.G,c.xf,c.x4],styles:["table[_ngcontent-%COMP%]{background-color:#3f3f3f}td[_ngcontent-%COMP%]{border-color:#4b4a4a!important;padding:10px}"]})}return a})()},9575:(m,f,n)=>{n.d(f,{Q:()=>Z});var p=n(7664),l=n(7359),u=n(3726),t=n(9006),d=n(4946);const g=[{path:"",component:t.G,canActivate:[u.P]}];let Z=(()=>{class s{static \u0275fac=function(T){return new(T||s)};static \u0275mod=d.oAB({type:s});static \u0275inj=d.cJS({imports:[p.Bz.forChild(g),l.u]})}return s})()}}]);
@@ -144,6 +144,7 @@ export enum ICustomApiProps {
144
144
  errorList = 'errorList',
145
145
  runOnNativeProcess = 'runOnNativeProcess',
146
146
  swaggerDocs = 'swaggerDocs',
147
+ separateSandboxSettings = 'separateSandboxSettings',
147
148
  }
148
149
 
149
150
  export enum IGroupProps {
@@ -256,6 +256,7 @@ export enum EErrorType {
256
256
  schemaNotFound = 'schemaNotFound',
257
257
  emailNotValid = 'emailNotValid',
258
258
  enumValidation = 'enumValidation',
259
+ virtualFieldUsedInFind = 'virtualFieldUsedInFind',
259
260
  }
260
261
 
261
262
  // Main interfaces
@@ -284,8 +285,25 @@ export interface ISchemaProperty { // Add new schema property in ValidateDBSchem
284
285
  collection?: string; // used as strings in _.get
285
286
  table?: string;
286
287
 
287
- // this column value will be return after nested save.
288
- column?: string; // user can define column of target collection here. so no need to define t_key in deep property. Used in getDataForDeep // used as strings in _.get
288
+ /**
289
+ * user can define column of target collection here. so no need to define t_key in deep property.
290
+ * this column value will be return after nested save.
291
+ * */
292
+ column?: string;
293
+
294
+ /**
295
+ * Used in virtual field deep populate.<br/>
296
+ * Current table's which column is used to generate this virtual field.
297
+ * */
298
+ s_columnVirtualLinker?: string;
299
+
300
+ /**
301
+ * Used for columns where isVirtualField is true.
302
+ * Need to place column name of target table which holds primary key value of this table.
303
+ * It is optional when target table has only one column, in which `collection/table` value is this collection/table name.
304
+ * */
305
+ t_columnVirtualLinker?: string;
306
+
289
307
  isPrimaryKey?: boolean;
290
308
 
291
309
  /** Database will take care of assigning incremental value for this field. */
@@ -312,6 +330,12 @@ export interface ISchemaProperty { // Add new schema property in ValidateDBSchem
312
330
  * By using optimistic concurrency control, you can ensure that updates are not overwritten by concurrent modifications, maintaining data integrity.<br/>
313
331
  * */
314
332
  isConcurrencyControlField?: boolean;
333
+
334
+ /**
335
+ * If true, means it is not actual field in database and just field in schema.
336
+ * Means we want it to use in deep populate and master save to get & store data in one API call.
337
+ * */
338
+ isVirtualField?: boolean;
315
339
  }
316
340
 
317
341
  export interface IIsAutoIncrementByAM {
@@ -343,7 +367,7 @@ export interface IPropertyConversion {
343
367
  * This default value will be converted to that type and applied.<br/>
344
368
  * Empty string and null values will be treated based on configuration.
345
369
  * */
346
- defaults?: IPropertyConversionDefaults
370
+ defaults?: IPropertyConversionDefaults;
347
371
 
348
372
  /** enable encryption for this property */
349
373
  encryption?: boolean | IEncryptionDescription;
@@ -590,11 +614,20 @@ export interface IQueryFormat {
590
614
 
591
615
  export interface IApiParamsDeepFormat {
592
616
  s_key: string;
617
+ /**
618
+ * Used in virtual field deep populate.<br/>
619
+ * Value of which key is used to compare with value of t_keyColumnVirtualLinker in target collection(t_col).
620
+ * */
621
+ s_keyColumnVirtualLinker?: string;
622
+
593
623
  // t_apiPath?: string;
594
624
  t_instance?: string;
595
625
  t_db?: string;
596
626
  t_col?: string;
627
+ /** Primary key of target collection/table */
597
628
  t_key?: string;
629
+ /** Column of target table which holds data to link to current table */
630
+ t_keyColumnVirtualLinker?: string;
598
631
  deep?: IApiParamsDeepFormat[] | string[] | string;
599
632
  select?: any;
600
633
 
@@ -607,6 +640,21 @@ export interface IApiParamsDeepFormat {
607
640
  // We process skip & limit while setting multiple data.
608
641
  skip?: number;
609
642
  limit?: number;
643
+
644
+ /**
645
+ * Can be used for fields having `isVirtualField: true` in schema.
646
+ * chunk = System will get data in chunks from database. It is default method with chunk size = 1000. <br/>
647
+ * one_by_one = System will get nested data one by one for each object. It should be used when we are using limit & skip for target table and it has large amount of data.<br/>
648
+ * */
649
+ fetchingTechnique?: 'chunk' | 'one_by_one';
650
+
651
+ /**
652
+ * Can be used for fields having `isVirtualField: true` in schema.
653
+ * */
654
+ fetchingTechniqueSettings?: {
655
+ /** Default : 1000 */
656
+ chunkSize?: number;
657
+ }
610
658
  }
611
659
 
612
660
  export interface IDeepFormat extends IApiParamsDeepFormat {
@@ -689,7 +737,7 @@ export interface IArrayOperationBody {
689
737
  export interface IArrayOperation {
690
738
  operation?: EArrayOperation;
691
739
  path?: string;
692
- dataToPush?: any[]; // $push, used for push operation. Array/Object of data to pushe in array.
740
+ dataToPush?: any[]; // $push, used for push operation. Array/Object of data to push in array.
693
741
  queryToRemove?: any; // $pull, query to remove docs from array.
694
742
  dataToPull?: any[]; // $pullAll, array of items which will be removed from array.
695
743
  direction?: -1 | 1; // $pop, -1 remove first, 1 remove last.
@@ -740,20 +788,55 @@ export interface ICustomApiSettingsTypes extends IAuthTokenInfoCommon {
740
788
  reqQueryParametersSchema?: ISchemaType;
741
789
 
742
790
  /**
743
- * 👉 If true, code will execute on original Node.js process and not in sandbox.<br/>
744
- * 👉 It makes code execution fast, Do not use it if you don't know what you are doing.<br/>
745
- * 👉 Bad code can make entire server freeze and give weird behaviour.<br/>
746
- * 👉 So, it can not use sandbox packages.<br/>
747
- * 👉 It can use Node.js inbuilt packages.<br/>
748
- * 👉 It can use packages from package.json of api_maker_be.<br/>
749
- * 👉 You can use all features of global variable 'g'.<br/>
791
+ * - If true, code will execute on original Node.js process and not in sandbox.<br/>
792
+ * - It makes code execution fast, Do not use it if you don't know what you are doing.<br/>
793
+ * - Bad code can make entire server freeze and give weird behaviour.<br/>
794
+ * - So, it can not use sandbox packages.<br/>
795
+ * - It can use Node.js inbuilt packages.<br/>
796
+ * - It can use packages from package.json of api_maker_be.<br/>
797
+ * - You can use all features of global variable 'g'.<br/>
750
798
  */
751
799
  runOnNativeProcess?: boolean;
752
800
 
753
- // calculated property
754
- errorList: string[]; // list of all errors thrown by this API.
755
- pathAndRequestMethod?: string;
801
+ /** list of all errors thrown by this API. */
802
+ errorList: string[];
756
803
  swaggerDocs?: ISwaggerDocsObj;
804
+
805
+ /** if runOnNativeProcess is true, these settings will have no effect. "Automatic Sandbox Restart In Seconds" will have no effect when this setting is provided. */
806
+ separateSandboxSettings?: ISeparateSandboxSettings;
807
+ }
808
+
809
+ export interface ISeparateSandboxSettings {
810
+ /**
811
+ * ex: Sandbox_Group_1, system will create separate sandbox for this particular entity and "Automatic Sandbox Restart In Seconds" will have no effect on this sandbox.
812
+ * All the packages of custom APIs having value "Sandbox_Group_1" will be available during execution.
813
+ * */
814
+ enableSeparateSandboxForThis?: string;
815
+
816
+ /**
817
+ * If any "separateSandboxSettings" has value in this, it will be used instead of "Sandbox Settings" DockerFile
818
+ * */
819
+ dockerFileOfSandbox?: string;
820
+
821
+ /** It works when we have enableSeparateSandboxForThis as true. */
822
+ packages?: {
823
+ /** If true, this sandbox will have all the packages of admin. */
824
+ allowAllPackagesOfAdmin?: boolean;
825
+
826
+ /** If allowAllPackagesOfAdmin == false, then this settings will be applicable and these packages will be installed on this particular sandbox. */
827
+ sandboxPackages?: {
828
+ name: string;
829
+ version: string;
830
+ }[];
831
+ }
832
+
833
+ /** Sandbox will be restarted automatically based on these settings without failing any request. */
834
+ autoRestart?: {
835
+ /**
836
+ * - It will work when enableSeparateSandboxForThis is true. <br/>
837
+ * - Sandbox will be restarted after it passes these much of time, after its creation. */
838
+ afterTheseMuchSeconds?: number;
839
+ }
757
840
  }
758
841
 
759
842
  export interface ISwaggerDocsObj {
@@ -776,7 +859,7 @@ export interface ISwaggerParametersEntity {
776
859
  example?: any,
777
860
  default?: any;
778
861
  enum?: any[];
779
- }
862
+ };
780
863
  }
781
864
 
782
865
  export enum ESwaggerParamInType {
@@ -1270,6 +1353,8 @@ export interface ICodeRunByResponse {
1270
1353
  workerId: string;
1271
1354
  port: number;
1272
1355
  publishToRedis?: boolean; // true = if request received by redis.
1356
+ enableSeparateSandboxForThis: string;
1357
+ allowAllPackagesOfAdmin: boolean;
1273
1358
  }
1274
1359
 
1275
1360
  export interface IAPIAccessGroupMeta {
package/dist/index.html CHANGED
@@ -146,5 +146,5 @@
146
146
  </style>
147
147
  </noscript>
148
148
 
149
- <script src="runtime.83de819192a264a1.js" type="module"></script><script src="polyfills.a6d93c3e94967b29.js" type="module"></script><script src="main.949138f5212140d3.js" type="module"></script></body>
149
+ <script src="runtime.bfd9b30f865686f0.js" type="module"></script><script src="polyfills.a6d93c3e94967b29.js" type="module"></script><script src="main.7af59190ebaf6c36.js" type="module"></script></body>
150
150
  </html>