@sava-info-systems/api-maker-with-extensions 1.16.0 → 1.17.0
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.
- package/dist/1097.a379bf7f8a734471.js +1 -0
- package/dist/1558.939ac758cd13195b.js +1 -0
- package/dist/1754.9e41b76a3386cae8.js +1 -0
- package/dist/2295.df48af7c1949d583.js +1 -0
- package/dist/2473.d934970e79ae8da4.js +1 -0
- package/dist/{4186.4e5b3bceb5ffad14.js → 4186.7bc2dcf9efa9b2f2.js} +1 -1
- package/dist/4211.982cb41fe043e117.js +1 -0
- package/dist/4575.f2aa50bc44c89e38.js +1 -0
- package/dist/4842.0193581bd67ed602.js +1 -0
- package/dist/{5249.00fc4d449ff668c8.js → 5249.56d7d31ad405def9.js} +1 -1
- package/dist/5334.4acf3d5504b04b16.js +1 -0
- package/dist/5421.e768cc14f2572282.js +1 -0
- package/dist/5765.1f6a809df411f41b.js +1 -0
- package/dist/6393.249487638df29b1e.js +1 -0
- package/dist/7436.7567f48d90151049.js +1 -0
- package/dist/8125.5423cbe9088fc925.js +1 -0
- package/dist/8266.4bf02925174f068a.js +1 -0
- package/dist/{9243.44e2fc29cd1da80a.js → 9243.841dae0ce64c872e.js} +1 -1
- package/dist/assets/schema-types/InterfaceProps.ts +3 -0
- package/dist/assets/schema-types/store-types.ts +2 -1
- package/dist/assets/schema-types/types.ts +79 -2
- package/dist/index.html +1 -1
- package/dist/main.e4498d2115f483ed.js +1 -0
- package/dist/{runtime.d3eb8eb136f2057b.js → runtime.774a8bbd76c257e7.js} +1 -1
- package/main.js +1 -1
- package/package.json +5 -5
- package/sandbox/assets/schema-types/types.js +57 -0
- package/sandbox/sandbox.js +1 -1
- package/src/assets/schema-types/store-types.ts +2 -1
- package/src/assets/schema-types/types.ts +79 -2
- package/src/json/DefaultEmptyMongoSchema.ts +64 -0
- package/dist/1097.93410906761036e0.js +0 -1
- package/dist/1558.b0504b87dbc60e4b.js +0 -1
- package/dist/1754.09ac603fa4d44261.js +0 -1
- package/dist/2295.cf92db135cf32bb2.js +0 -1
- package/dist/2473.8123cc439eda637a.js +0 -1
- package/dist/4211.3572093523629c8c.js +0 -1
- package/dist/4575.76e4ecd321978636.js +0 -1
- package/dist/4842.26c25ee0683af565.js +0 -1
- package/dist/5334.ae508cb156cd6c5a.js +0 -1
- package/dist/5421.69bd4fa26bea6cc5.js +0 -1
- package/dist/5765.683dcb62389e5337.js +0 -1
- package/dist/6393.f02d7e3c243aabae.js +0 -1
- package/dist/7436.50b383b05362c4e4.js +0 -1
- package/dist/8125.85199a13de4117ed.js +0 -1
- package/dist/8266.fae1fe097b233698.js +0 -1
- package/dist/assets/images/cloud/setup-on-server.svg +0 -51
- package/dist/assets/images/logo/logo_cloud.svg +0 -15
- package/dist/main.79b429ca4d354930.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[9243],{3824:(G,S,a)=>{a.d(S,{d:()=>j});var m=a(5861),u=a(6212),E=a(6990),M=a(5085),D=a(1162),e=a(4946),n=a(7240),U=a(9961),y=a(2189),Z=a(5852),W=a(7414),B=a(2915),K=a(1429),N=a(6814),w=a(5431),Y=a(5219),J=a(7680);function Q(I,b){1&I&&(e.TgZ(0,"tr")(1,"th"),e._uU(2,"Name"),e.qZA()())}function F(I,b){if(1&I&&(e.TgZ(0,"tr",8)(1,"td"),e._uU(2),e.qZA()()),2&I){const o=b.$implicit;e.Q6J("pSelectableRow",o),e.xp6(2),e.Oqu(o.name)}}function H(I,b){1&I&&e._UZ(0,"p-progressSpinner",9)}let j=(()=>{class I{generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;dataProviderS;cd;loading={grid:!1};subscriptions=[];rows;rowsMap={};selectedRows=[];gridKey="id";isFilterLogTable=!1;typeIsGroup;constructor(o,h,T,O,c,x,s,d){this.generalS=o,this.notificationS=h,this.navigationCS=T,this.authCS=O,this.constantsS=c,this.eventCenterS=x,this.dataProviderS=s,this.cd=d}ngOnInit(){const o=this.dataProviderS.getApiCategoriesForWebSocketAndGroup();"GROUP"===this.typeIsGroup&&(this.rows=o.filter(h=>h.id!==M.R.SCHEDULERS&&h.id!==M.R.EVENTS)),"LOG_PROFILE"===this.typeIsGroup&&(this.rows=o),this.init()}init(){var o=this;return(0,m.Z)(function*(){o.rowsMap=E.keyBy(o.rows,D.GR.id),o.eventCenterS.apiCategory.selectedApiCategory.next([]);const h=o.navigationCS.getQueryParam(u.p.api_category);o.rowsMap[h]&&(o.eventCenterS.apiCategory.selectedApiCategory.next([o.rowsMap[h]]),o.selectedRows.length=0,o.selectedRows.push(o.rowsMap[h]),yield o.fillData()),o.subscriptions.push(o.eventCenterS.group.selectedGroups.subscribe(function(){var T=(0,m.Z)(function*(O){O.length&&o.commonGetQueryParam()});return function(O){return T.apply(this,arguments)}}())),o.isFilterLogTable&&o.commonGetQueryParam(),o.loading.grid=!1})()}commonGetQueryParam(){this.navigationCS.getQueryParam(u.p.api_category)||(setTimeout(()=>{this.navigationCS.setQueryParam(u.p.api_category,M.R.INSTANCES)},0),this.eventCenterS.apiCategory.selectedApiCategory.next([this.rows[0]]),this.selectedRows=[],this.selectedRows.push(this.rows[0])),this.cd.markForCheck()}resetDependents(){var o=this;return(0,m.Z)(function*(){o.eventCenterS.apiCategory.selectedApiCategory.next([]),yield o.navigationCS.setQueryParam(u.p.api_category,null)})()}apiCategorySelected(){var o=this;return(0,m.Z)(function*(){o.resetDependents(),o.fillData()})()}fillData(){var o=this;return(0,m.Z)(function*(){if(!o.selectedRows.length)return void o.resetDependents();const h=o.selectedRows[0];h&&(o.eventCenterS.apiCategory.selectedApiCategory.next(o.selectedRows),yield o.navigationCS.setQueryParam(u.p.api_category,h.id))})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(h){return new(h||I)(e.Y36(n.b),e.Y36(U.W),e.Y36(y.S),e.Y36(Z.D),e.Y36(W.L),e.Y36(B.u),e.Y36(K.B),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:I,selectors:[["app-w-api-categories"]],inputs:{isFilterLogTable:"isFilterLogTable",typeIsGroup:"typeIsGroup"},decls:10,vars:7,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],[1,"fas","fa-border-none","text-warning","fa-fw"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(h,T){1&h&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"i",2),e._uU(4," API Categories"),e.qZA()(),e.TgZ(5,"div",3)(6,"p-table",4),e.NdJ("selectionChange",function(c){return T.selectedRows=c})("selectionChange",function(){return T.apiCategorySelected()}),e.YNc(7,Q,3,0,"ng-template",5),e.YNc(8,F,3,2,"ng-template",6),e.qZA(),e.YNc(9,H,1,0,"p-progressSpinner",7),e.qZA()()),2&h&&(e.xp6(6),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",T.selectedRows)("dataKey",T.gridKey)("scrollable",!0)("value",T.rows),e.xp6(3),e.Q6J("ngIf",T.loading.grid))},dependencies:[N.O5,w.iA,Y.jx,w.Ei,J.G],changeDetection:0})}return I})()},2777:(G,S,a)=>{a.d(S,{u:()=>D});var m=a(4056),E=(a(3824),a(4946));let D=(()=>{class e{static \u0275fac=function(y){return new(y||e)};static \u0275mod=E.oAB({type:e});static \u0275inj=E.cJS({imports:[m.u]})}return e})()},356:(G,S,a)=>{a.d(S,{T:()=>O});var m=a(5861),u=a(6990),L=a(3620),M=a(1162),D=a(6925),e=a(9394),n=a(4946),U=a(3429),y=a(2915),Z=a(7414),W=a(6162),B=a(7240),K=a(95),N=a(6814),w=a(5219),Y=a(1396),J=a(7680),Q=a(3259),F=a(8057);function H(c,x){if(1&c){const s=n.EpF();n.TgZ(0,"span",8)(1,"label",9)(2,"p-checkbox",10),n.NdJ("ngModelChange",function(_){n.CHM(s);const A=n.oxw();return n.KtG(A.eventCenterS.group.apisRegex.allInstanceApis=_)}),n.qZA()()()}if(2&c){const s=n.oxw();n.xp6(2),n.Q6J("ngModel",s.eventCenterS.group.apisRegex.allInstanceApis)("binary",!0)}}function j(c,x){if(1&c&&(n.TgZ(0,"div")(1,"div",11),n._uU(2),n.qZA()()),2&c){const s=n.oxw();n.xp6(2),n.Oqu(s.constantsS.group.allApisPermitted)}}function I(c,x){if(1&c&&(n.TgZ(0,"span",19),n._uU(1),n.qZA()),2&c){const s=n.oxw().$implicit;n.xp6(1),n.hij(" [",s.category,"] ")}}function b(c,x){if(1&c){const s=n.EpF();n.TgZ(0,"div",20)(1,"p-checkbox",21),n.NdJ("ngModelChange",function(_){n.CHM(s);const A=n.oxw().$implicit;return n.KtG(A.saveResponseInLog=_)})("click",function(_){n.CHM(s);const A=n.oxw(3);return n.KtG(A.generalS.stopPropagation(_))}),n.qZA()()}if(2&c){const s=n.oxw().$implicit;n.xp6(1),n.Q6J("ngModel",s.saveResponseInLog)("binary",!0)}}function o(c,x){if(1&c&&(n.TgZ(0,"div",16),n._uU(1),n.YNc(2,I,2,1,"span",17),n.YNc(3,b,2,2,"div",18),n.qZA()),2&c){const s=x.$implicit,d=n.oxw(2);n.xp6(1),n.hij(" ",s.name," "),n.xp6(1),n.Q6J("ngIf",!s.level1&&s.category),n.xp6(1),n.Q6J("ngIf",s.level2&&d.isLPM&&d.selectedRows.indexOf(s)>=0&&s.id!==d.EAPIId.GEN_GET_ALL_STREAM&&s.id!==d.EAPIId.SCHEMA_GET_ALL_STREAM&&s.id!==d.EAPIId.GEN_POST_QUERY_STREAM&&s.id!==d.EAPIId.SCHEMA_POST_QUERY_STREAM)}}function h(c,x){1&c&&n._UZ(0,"p-progressSpinner",22)}function T(c,x){if(1&c){const s=n.EpF();n.TgZ(0,"div",12)(1,"p-tree",13),n.NdJ("selectionChange",function(_){n.CHM(s);const A=n.oxw();return n.KtG(A.selectedRows=_)})("selectionChange",function(){n.CHM(s);const _=n.oxw();return n.KtG(_.checkedChange())}),n.YNc(2,o,4,3,"ng-template",14),n.qZA(),n.YNc(3,h,1,0,"p-progressSpinner",15),n.qZA()}if(2&c){const s=n.oxw();n.xp6(1),n.Q6J("value",s.supportedApiGroups)("selection",s.selectedRows)("metaKeySelection",!1),n.xp6(2),n.Q6J("ngIf",s.loading.grid)}}let O=(()=>{class c{instanceS;eventCenterS;constantsS;dbCellCommonS;generalS;cd;isLPM=!1;isDependentOnGroup=!1;isFilterLogTable=!1;treeViewId="";loading={grid:!1};subscriptions=[];supportedApiGroups=[];supportedApiArr=[];allTreeItemsMap={};ERequestMethod=D.Yp;EAPIId=e.pj;selectedRows=[];key="_id";constructor(s,d,_,A,l,v){this.instanceS=s,this.eventCenterS=d,this.constantsS=_,this.dbCellCommonS=A,this.generalS=l,this.cd=v}ngOnInit(){var s=this;this.subscriptions.push(this.eventCenterS.collection.selectedCollections.pipe((0,L.b)(300)).subscribe(function(){var d=(0,m.Z)(function*(_){yield s.loadSupportedAPIs()});return function(_){return d.apply(this,arguments)}}()))}loadSupportedAPIs(){var s=this;return(0,m.Z)(function*(){const d=s.eventCenterS.collection.selectedCollections.value;if(!d.length)return void(yield s.resetGridAndUrl());s.loading.grid=!0,!s.isLPM&&!s.isDependentOnGroup&&(yield s.resetGridAndUrl()),s.supportedApiArr=(yield s.instanceS.instanceAPIList(d)).data,s.allTreeItemsMap=u.keyBy(s.supportedApiArr,M.iH._id);const _=u.groupBy(s.supportedApiArr,M.aV.collectionId),A=[];for(const l in _)A.push({field:M.aV.collectionId,value:l,children:_[l]});for(const l of A){const v=l.children[0],$=v.instanceName+":"+v.databaseName+":"+v.collectionName;if(l.name=l.value,l._id=$,l.level1=!0,l.isGroup=!0,l.instanceName=v.instanceName,l.category=v.category,l.instanceName=v.instanceName,l.databaseName=v.databaseName,l.collectionName=v.collectionName,l.children=l.children,s.isLPM)for(const k of l.children||[])k.level2=!0;s.allTreeItemsMap[l._id]=l;for(const k of l?.children||[])k.parent=l}for(const l of A)s.generalS.convertKTreeItemToPrimeNGTreeItem(l);if(s.isLPM&&s.eventCenterS.group.selectedGroups.value[0]?.queryParams?.supportedApiNames?.length){const l=s.eventCenterS.group.selectedGroups.value[0];for(const v of l?.queryParams?.supportedApiNames)s.allTreeItemsMap[v]&&(s.allTreeItemsMap[v].saveResponseInLog=l.supportedApiLog?.[v]?.saveResponseInLog||!1)}if(s.eventCenterS.group.supportedApiIds.value.length&&s.isDependentOnGroup){const l=u.intersection(u.keys(s.allTreeItemsMap),s.eventCenterS.group.supportedApiIds.value);s.generalS.setDataInSelectedRowsFromIdArr(l,s.selectedRows,s.allTreeItemsMap),s.eventCenterS.group.supportedApiIds.next(l)}if(s.eventCenterS.filterInLog.supportedApiIds.value.length&&s.isFilterLogTable){const l=u.intersection(u.keys(s.allTreeItemsMap),s.eventCenterS.filterInLog.supportedApiIds.value);s.generalS.setDataInSelectedRowsFromIdArr(l,s.selectedRows,s.allTreeItemsMap),s.eventCenterS.filterInLog.supportedApiIds.next(l),s.isFilterLogTable&&s.dbCellCommonS.extractNameAndSetForLogTable(l,s.allTreeItemsMap,"supportedApiNames","id")}s.setDataInEventCenter(),s.supportedApiGroups=A,s.loading.grid=!1,s.cd.detectChanges()})()}resetGridAndUrl(){var s=this;return(0,m.Z)(function*(){s.supportedApiGroups=[],s.supportedApiArr=[],s.allTreeItemsMap={},s.eventCenterS.group.supportedAPIs.next([]),s.eventCenterS.filterInLog.supportedAPIs.next([])})()}checkedChange(){var s=this;setTimeout((0,m.Z)(function*(){for(const d in s.allTreeItemsMap){const _=s.allTreeItemsMap[d];-1===s.selectedRows.indexOf(_)&&(_.saveResponseInLog=!1)}s.setDataInEventCenter(),s.cd.detectChanges()}),100)}setDataInEventCenter(){const s=this.selectedRows;this.isDependentOnGroup&&(this.eventCenterS.group.supportedAPIs.next(s),this.eventCenterS.group.selectedSupportedAPIs.next(s)),this.isFilterLogTable&&this.eventCenterS.filterInLog.supportedAPIs.next(s),this.isDependentOnGroup&&this.eventCenterS.group.supportedApiIds.next(u.map(this.selectedRows,"_id")),this.isFilterLogTable&&(this.eventCenterS.filterInLog.supportedApiIds.next(u.map(this.selectedRows,"_id")),this.dbCellCommonS.extractNameAndSetForLogTable(u.map(this.selectedRows,"_id"),this.allTreeItemsMap,"supportedApiNames","id"))}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(d){return new(d||c)(n.Y36(U.E),n.Y36(y.u),n.Y36(Z.L),n.Y36(W.m),n.Y36(B.b),n.Y36(n.sBO))};static \u0275cmp=n.Xpm({type:c,selectors:[["app-w-supported-api"]],inputs:{isLPM:"isLPM",isDependentOnGroup:"isDependentOnGroup",isFilterLogTable:"isFilterLogTable",treeViewId:"treeViewId"},decls:10,vars:3,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],[1,"fas","fa-stream","text-warning","fa-fw","mr-1"],["class","float-right cursor-pointer","tooltipPosition","left","pTooltip","All APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"position-relative","border-top","h-100"],[4,"ngIf"],["class","h-100",4,"ngIf"],["tooltipPosition","left","pTooltip","All APIs",1,"float-right","cursor-pointer"],[1,"mb-0","mt--2px"],[3,"ngModel","binary","ngModelChange"],[1,"p-2","text-center","text-success"],[1,"h-100"],["scrollHeight","flex","selectionMode","checkbox",1,"w-full",3,"value","selection","metaKeySelection","selectionChange"],["pTemplate","default"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"w-100","prevent-text-selection","cursor-pointer","pt-1","pb-1"],["class","float-right small mr-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"float-right","small","mr-1"],[1,"mt-1"],["label","Save Response In Log",3,"ngModel","binary","ngModelChange","click"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(d,_){1&d&&(n.TgZ(0,"div",0)(1,"div",1)(2,"span"),n._UZ(3,"i",2),n._uU(4," Supported APIs"),n.qZA(),n.YNc(5,H,3,2,"span",3),n.qZA(),n.TgZ(6,"div",4)(7,"div",5),n.YNc(8,j,3,1,"div",6),n.YNc(9,T,4,4,"div",7),n.qZA()()()),2&d&&(n.xp6(5),n.Q6J("ngIf",_.isDependentOnGroup),n.xp6(3),n.Q6J("ngIf",_.eventCenterS.group.apisRegex.allInstances||_.eventCenterS.filterInLog.apisRegex.allInstances||_.eventCenterS.group.apisRegex.allDatabases||_.eventCenterS.group.apisRegex.allCollections||_.eventCenterS.group.apisRegex.allInstanceApis),n.xp6(1),n.Q6J("ngIf",!(_.eventCenterS.group.apisRegex.allInstances||_.eventCenterS.filterInLog.apisRegex.allInstances||_.eventCenterS.group.apisRegex.allDatabases||_.eventCenterS.group.apisRegex.allCollections||_.eventCenterS.group.apisRegex.allInstanceApis)))},dependencies:[K.JJ,K.On,N.O5,w.jx,Y.mp,J.G,Q.u,F.XZ],encapsulation:2})}return c})()},1434:(G,S,a)=>{a.d(S,{B:()=>D});var m=a(4056),E=(a(356),a(4946));let D=(()=>{class e{static \u0275fac=function(y){return new(y||e)};static \u0275mod=E.oAB({type:e});static \u0275inj=E.cJS({imports:[m.u]})}return e})()},8651:(G,S,a)=>{a.d(S,{A:()=>re});var m=a(5861),u=a(6990),L=a(7672),M=a(5085),D=a(921),e=a(4946),n=a(5852),U=a(2915),y=a(7414),Z=a(7240),W=a(2559),B=a(7664),K=a(95),N=a(6814),w=a(5219),Y=a(1396),J=a(7680),Q=a(3259),F=a(8057);function H(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"span",11)(1,"label",12)(2,"p-checkbox",13),e.NdJ("ngModelChange",function(p){e.CHM(t);const f=e.oxw();return e.KtG(f.eventCenterS.group.apisRegex.allThirdPartyApis=p)}),e.qZA()()()}if(2&r){const t=e.oxw();e.xp6(2),e.Q6J("ngModel",t.eventCenterS.group.apisRegex.allThirdPartyApis)("binary",!0)}}function j(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"span",11)(1,"label",12)(2,"p-checkbox",13),e.NdJ("ngModelChange",function(p){e.CHM(t);const f=e.oxw();return e.KtG(f.eventCenterS.filterInLog.apisRegex.allThirdPartyApis=p)}),e.qZA()()()}if(2&r){const t=e.oxw();e.xp6(2),e.Q6J("ngModel",t.eventCenterS.filterInLog.apisRegex.allThirdPartyApis)("binary",!0)}}function I(r,g){if(1&r&&(e.TgZ(0,"div")(1,"div",14),e._uU(2),e.qZA()()),2&r){const t=e.oxw();e.xp6(2),e.Oqu(t.constantsS.group.allThirdPartyApisPermitted)}}function b(r,g){1&r&&(e.TgZ(0,"span"),e._uU(1,"[Public]"),e.qZA())}function o(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"div",24)(1,"p-checkbox",25),e.NdJ("ngModelChange",function(p){e.CHM(t);const f=e.oxw().$implicit;return e.KtG(f.saveResponseInLog=p)})("click",function(p){e.CHM(t);const f=e.oxw(4);return e.KtG(f.generalS.stopPropagation(p))}),e.qZA()()}if(2&r){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngModel",t.saveResponseInLog)("binary",!0)}}function h(r,g){if(1&r&&(e.TgZ(0,"div",21)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"span",22),e.YNc(4,b,2,0,"span",9),e.qZA(),e.YNc(5,o,2,2,"div",23),e.qZA()),2&r){const t=g.$implicit,i=e.oxw(3);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("ngIf",t.apiAccessType===i.EAPIAccessType.IS_PUBLIC),e.xp6(1),e.Q6J("ngIf",t.level2&&i.isLPM&&i.selectedRows.indexOf(t)>=0)}}function T(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"p-tree",19),e.NdJ("selectionChange",function(p){e.CHM(t);const f=e.oxw(2);return e.KtG(f.selectedRows=p)})("selectionChange",function(){e.CHM(t);const p=e.oxw(2);return e.KtG(p.checkedChange())}),e.YNc(1,h,6,3,"ng-template",20),e.qZA()}if(2&r){const t=e.oxw(2);e.Q6J("value",t.supportedApiListData)("selection",t.selectedRows)}}function O(r,g){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.name,"")}}function c(r,g){if(1&r&&(e.TgZ(0,"span",38),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.name)}}function x(r,g){if(1&r&&(e.TgZ(0,"span",39),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" [",t.path,"]")}}function s(r,g){1&r&&(e.TgZ(0,"span",40),e._uU(1,"[AM-User]"),e.qZA())}function d(r,g){1&r&&(e.TgZ(0,"span",41),e._uU(1,"No-Access"),e.qZA())}function _(r,g){1&r&&(e.TgZ(0,"span",42),e._uU(1,"[Public]"),e.qZA())}function A(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[DB-User]"),e.qZA())}function l(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[AWS]"),e.qZA())}function v(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[Azure]"),e.qZA())}function $(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[Google]"),e.qZA())}const k=function(){return["/api-info/api-testing/testing"]},V=function(r,g,t){return{at_category:"THIRD_PARTY_APIS",at_bundleName:r,at_apiVersion:g,at_api:t}};function X(r,g){if(1&r&&(e.TgZ(0,"span",3)(1,"a",44),e.NdJ("click",function(i){return i.stopPropagation()}),e._UZ(2,"i",45),e.qZA()()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("routerLink",e.DdM(2,k))("queryParams",e.kEZ(3,V,t.bundleName,t.apiVersion,t._id))}}const z=function(){return{width:"55px"}};function q(r,g){if(1&r&&(e.TgZ(0,"span",46),e._UZ(1,"i",47),e.qZA()),2&r){const t=e.oxw().$implicit;e.Q6J("ngStyle",t.level1?"":e.DdM(1,z))}}function ee(r,g){1&r&&(e.TgZ(0,"span",48),e._uU(1,"[Public]"),e.qZA())}const te=function(r,g,t,i){return{get:r,put:g,post:t,delete:i}};function ne(r,g){if(1&r&&(e.TgZ(0,"div",27)(1,"span",28),e._uU(2),e.qZA(),e.YNc(3,O,2,1,"span",9),e.YNc(4,c,2,1,"span",29),e.YNc(5,x,2,1,"span",30),e.YNc(6,s,2,0,"span",31),e.YNc(7,d,2,0,"span",32),e.YNc(8,_,2,0,"span",33),e.YNc(9,A,2,0,"span",34),e.YNc(10,l,2,0,"span",34),e.YNc(11,v,2,0,"span",34),e.YNc(12,$,2,0,"span",34),e.YNc(13,X,3,7,"span",35),e.YNc(14,q,2,2,"span",36),e.TgZ(15,"span",22),e.YNc(16,ee,2,0,"span",37),e.qZA()()),2&r){const t=g.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngClass",e.l5B(15,te,t.requestMethod===i.ERequestMethod.GET,t.requestMethod===i.ERequestMethod.PUT,t.requestMethod===i.ERequestMethod.POST,t.requestMethod===i.ERequestMethod.DELETE)),e.xp6(1),e.hij("",t.requestMethod," "),e.xp6(1),e.Q6J("ngIf",!t.level1),e.xp6(1),e.Q6J("ngIf",t.level1),e.xp6(1),e.Q6J("ngIf",t.level2),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAmAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.noAccess),e.xp6(1),e.Q6J("ngIf",t.level2&&t.isPublic),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAmDBAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAwsAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAzureAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasGoogleAuth),e.xp6(1),e.Q6J("ngIf",t.level2),e.xp6(1),e.Q6J("ngIf",t.isThirdPartyAPISettings),e.xp6(2),e.Q6J("ngIf",t.apiAccessType===i.EAPIAccessType.IS_PUBLIC)}}function se(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"p-tree",26),e.NdJ("selectionChange",function(p){e.CHM(t);const f=e.oxw(2);return e.KtG(f.selectedRows=p)})("selectionChange",function(){e.CHM(t);const p=e.oxw(2);return e.KtG(p.selectedKeysChange())}),e.YNc(1,ne,17,20,"ng-template",20),e.qZA()}if(2&r){const t=e.oxw(2);e.Q6J("value",t.supportedApiListData)("selection",t.selectedRows)}}function ie(r,g){1&r&&e._UZ(0,"p-progressSpinner",49)}function ae(r,g){if(1&r&&(e.TgZ(0,"div",15),e.YNc(1,T,2,2,"p-tree",16),e.YNc(2,se,2,2,"p-tree",17),e.YNc(3,ie,1,0,"p-progressSpinner",18),e.qZA()),2&r){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.isDependentOnGroup||t.isFilterLogTable),e.xp6(1),e.Q6J("ngIf",!t.isDependentOnGroup&&!t.isFilterLogTable),e.xp6(1),e.Q6J("ngIf",t.loading.grid)}}let re=(()=>{class r{authCS;eventCenterS;constantsS;generalS;cd;tpInstalledApisS;router;isDependentOnGroup=!1;isLPM=!1;isFilterLogTable=!1;ERequestMethod=L.Yp;EUserType=D.dN;EAPIAccessType=L.di;loading={grid:!1};subscriptions=[];supportedApiListData=[];allTreeItemsMap={};allTreeItemsMapNameId={};selectedRows=[];key="_id";selectedItem;saveResponseInLog={};constructor(t,i,p,f,C,P,R){this.authCS=t,this.eventCenterS=i,this.constantsS=p,this.generalS=f,this.cd=C,this.tpInstalledApisS=P,this.router=R}ngOnInit(){var t=this;this.isDependentOnGroup&&this.subscriptions.push(this.eventCenterS.group.selectedGroups.subscribe(function(){var i=(0,m.Z)(function*(p){p.length&&setTimeout((0,m.Z)(function*(){yield t.loadThirdPartyAPIList(p[0])}),1e3)});return function(p){return i.apply(this,arguments)}}())),this.subscriptions.push(this.eventCenterS.filterInLog.refreshGrid.subscribe(i=>{i&&this.loadThirdPartyAPIList().then()})),this.loadThirdPartyAPIList().then(),this.generalS.setNewTitle("API Maker - Third Party APIs")}loadThirdPartyAPIList(t){var i=this;return(0,m.Z)(function*(){const p=i.allTreeItemsMap||{};if(i.isDependentOnGroup&&!t)return void(yield i.resetGridAndUrl());i.loading.grid=!0,yield i.resetGridAndUrl();const f=(yield i.tpInstalledApisS.thirdPartyAPIKTree(i.isLPM).toPromise()).data;for(const C of f)i.generalS.convertKTreeItemToPrimeNGTreeItem(C);i.supportedApiListData=f,i.allTreeItemsMap={},i.allTreeItemsMapNameId={},i.getMapOfAllItems(i.allTreeItemsMap,i.supportedApiListData),i.allTreeItemsMapNameId={};for(const C of Object.keys(i.allTreeItemsMap)){const P=i.allTreeItemsMap[C],R=[];P.bundleName&&R.push(P.bundleName),P.apiVersion&&R.push(P.apiVersion),P.apiName&&R.push(P.apiName),P.nameId=R.join(":"),i.allTreeItemsMapNameId[P.nameId]=P}if(i.generalS.setIsExpandedStateFromOldMap(p,i.allTreeItemsMap),i.isDependentOnGroup)if(i.eventCenterS.group.thirdPartyApiIds&&i.eventCenterS.group.thirdPartyApiIds.value.length){const C=u.intersection(u.keys(i.allTreeItemsMap),i.eventCenterS.group.thirdPartyApiIds.value);i.eventCenterS.group.thirdPartyApiIds.next(C),i.generalS.setDataInSelectedRowsFromIdArr(C,i.selectedRows,i.allTreeItemsMap),i.setDataInEventCenter()}else i.selectedRows=[];if(i.isFilterLogTable)if(i.eventCenterS.filterInLog.thirdPartyApiIds&&i.eventCenterS.filterInLog.thirdPartyApiIds.value.length){const C=u.intersection(u.keys(i.allTreeItemsMap),i.eventCenterS.filterInLog.thirdPartyApiIds.value);i.eventCenterS.filterInLog.thirdPartyApiIds.next(C),i.generalS.setDataInSelectedRowsFromIdArr(C,i.selectedRows,i.allTreeItemsMap),i.setDataInEventCenter()}else i.selectedRows=[];if(i.isLPM&&i.eventCenterS.group.selectedGroups.value[0]?.queryParams?.thirdPartyApiNames?.length){const C=i.eventCenterS.group.selectedGroups.value[0];for(const P of C?.queryParams?.thirdPartyApiNames){const R=i.allTreeItemsMapNameId[P];R&&(R.saveResponseInLog=C.thirdPartyApisLog?.[P]?.saveResponseInLog||!1)}i.setDataInEventCenter()}i.loading.grid=!1,i.cd.detectChanges()})()}resetGridAndUrl(){var t=this;return(0,m.Z)(function*(){t.supportedApiListData=[],t.allTreeItemsMap={},t.allTreeItemsMapNameId={}})()}checkedChange(){var t=this;setTimeout((0,m.Z)(function*(){for(const i in t.allTreeItemsMap){const p=t.allTreeItemsMap[i];-1===t.selectedRows.indexOf(p)&&(p.saveResponseInLog=!1)}t.setDataInEventCenter(),t.cd.detectChanges()}),100)}selectedKeysChange(){if(this.selectedRows.length){const t=this.selectedRows[0];t?.bundleName&&this.generalS.setNewTitle(t.bundleName,M.R.THIRD_PARTY_APIS),this.eventCenterS.tpApiSettings.apiSelected.next(t)}}getMapOfAllItems(t,i){for(const p of i)if(t[p._id]=p,p.children&&p.children.length){for(const f of p.children)f.parent=p;this.getMapOfAllItems(t,p.children)}}setDataInEventCenter(){this.isDependentOnGroup&&(this.eventCenterS.group.thirdPartyAPIs.next(this.selectedRows),this.eventCenterS.group.selectedThirdPartyAPIs.next(this.selectedRows),this.eventCenterS.group.thirdPartyApiIds.next(this.getThirdPartyIdArr())),this.isFilterLogTable&&(this.eventCenterS.filterInLog.thirdPartyAPIs.next(this.selectedRows),this.eventCenterS.filterInLog.thirdPartyApiIds.next(this.getThirdPartyIdArr()))}getThirdPartyIdArr(){const t=[];for(const i of this.selectedRows){const p=i._id;this.generalS.isValidMongodbID(p)&&t.push(p)}return t}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}undefined=void 0;static \u0275fac=function(i){return new(i||r)(e.Y36(n.D),e.Y36(U.u),e.Y36(y.L),e.Y36(Z.b),e.Y36(e.sBO),e.Y36(W.d),e.Y36(B.F0))};static \u0275cmp=e.Xpm({type:r,selectors:[["app-w-supported-tp-api"]],inputs:{isDependentOnGroup:["IsDependentOnGroup","isDependentOnGroup"],isLPM:"isLPM",isFilterLogTable:"isFilterLogTable"},decls:14,vars:4,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/third-party.svg","alt","Third Party API",1,"fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/apis-all/thirdParty-apis/installed-third-party-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],["class","float-right cursor-pointer","tooltipPosition","left","pTooltip","All Third Party APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"position-relative","border-top","h-100"],[4,"ngIf"],["class","h-100",4,"ngIf"],["tooltipPosition","left","pTooltip","All Third Party APIs",1,"float-right","cursor-pointer"],[1,"align-middle","mb-0","mt--2px"],[3,"ngModel","binary","ngModelChange"],[1,"p-2","text-center","text-success"],[1,"h-100"],["class","w-full system-api-grid-height","scrollHeight","flex","selectionMode","checkbox",3,"value","selection","selectionChange",4,"ngIf"],["class","w-full","scrollHeight","calc(100vh - 94px)","selectionMode","multiple",3,"value","selection","selectionChange",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["scrollHeight","flex","selectionMode","checkbox",1,"w-full","system-api-grid-height",3,"value","selection","selectionChange"],["pTemplate","default"],[1,"w-100","prevent-text-selection","cursor-pointer","pt-1","pb-1"],[1,"text-monospace","font-weight-bold","font-italic","float-right",2,"font-size","xx-small"],["class","mt-1",4,"ngIf"],[1,"mt-1"],["label","Save Response In Log",3,"ngModel","binary","ngModelChange","click"],["scrollHeight","calc(100vh - 94px)","selectionMode","multiple",1,"w-full",3,"value","selection","selectionChange"],[1,"w-100","prevent-text-selection","cursor-pointer"],["pTooltip","Request Type",1,"small","font-weight-bold","mr-1",3,"ngClass"],["pTooltip","API Name","class","mr-1",4,"ngIf"],["class","text-muted small","pTooltip","API Path",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced text-success ml-2",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced text-warning",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced text-success",4,"ngIf"],["class","float-right",4,"ngIf"],["class","float-right",3,"ngStyle",4,"ngIf"],["class","public-class",4,"ngIf"],["pTooltip","API Name",1,"mr-1"],["pTooltip","API Path",1,"text-muted","small"],[1,"d-inline-block","ml-1","small","font-monospaced"],[1,"d-inline-block","ml-1","small","font-monospaced","text-success","ml-2"],[1,"d-inline-block","ml-1","small","font-monospaced","text-warning"],[1,"d-inline-block","ml-1","small","font-monospaced","text-success"],["href","javascript:","tooltipPosition","left","pTooltip","Test API",1,"btn","btn-xsm-custom","mr-3",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],[1,"float-right",3,"ngStyle"],[1,"fas","fa-cog","text-danger","fa-fw","mr-2"],[1,"public-class"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(i,p){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"img",2),e._uU(4," Installed Third Party APIs"),e.qZA(),e.TgZ(5,"div",3)(6,"a",4),e._UZ(7,"img",5),e.qZA()(),e.YNc(8,H,3,2,"span",6),e.YNc(9,j,3,2,"span",6),e.qZA(),e.TgZ(10,"div",7)(11,"div",8),e.YNc(12,I,3,1,"div",9),e.YNc(13,ae,4,3,"div",10),e.qZA()()()),2&i&&(e.xp6(8),e.Q6J("ngIf",p.isDependentOnGroup),e.xp6(1),e.Q6J("ngIf",p.isFilterLogTable),e.xp6(3),e.Q6J("ngIf",p.eventCenterS.group.apisRegex.allThirdPartyApis||p.eventCenterS.filterInLog.apisRegex.allThirdPartyApis),e.xp6(1),e.Q6J("ngIf",!(p.eventCenterS.group.apisRegex.allThirdPartyApis||p.eventCenterS.filterInLog.apisRegex.allThirdPartyApis)))},dependencies:[K.JJ,K.On,N.mk,N.O5,N.PC,B.rH,w.jx,Y.mp,J.G,Q.u,F.XZ],styles:[".public-class{display:inline-block;padding-top:5px;padding-right:15px}.get{color:var(--accent-success)}.put{color:var(--brand-secondary)}.post{color:var(--accent-warning)}.delete{color:var(--accent-error)}\n"],encapsulation:2})}return r})()},7705:(G,S,a)=>{a.d(S,{L:()=>e});var m=a(4056),E=(a(8651),a(4946));let e=(()=>{class n{static \u0275fac=function(Z){return new(Z||n)};static \u0275mod=E.oAB({type:n});static \u0275inj=E.cJS({imports:[m.u]})}return n})()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[9243],{3824:(G,S,a)=>{a.d(S,{d:()=>j});var m=a(5861),u=a(6212),E=a(6990),M=a(5085),D=a(1162),e=a(4946),n=a(7240),U=a(9961),y=a(2189),Z=a(5852),W=a(7414),B=a(2915),K=a(1429),N=a(6814),w=a(5431),Y=a(5219),J=a(7680);function Q(I,b){1&I&&(e.TgZ(0,"tr")(1,"th"),e._uU(2,"Name"),e.qZA()())}function F(I,b){if(1&I&&(e.TgZ(0,"tr",8)(1,"td"),e._uU(2),e.qZA()()),2&I){const o=b.$implicit;e.Q6J("pSelectableRow",o),e.xp6(2),e.Oqu(o.name)}}function H(I,b){1&I&&e._UZ(0,"p-progressSpinner",9)}let j=(()=>{class I{generalS;notificationS;navigationCS;authCS;constantsS;eventCenterS;dataProviderS;cd;loading={grid:!1};subscriptions=[];rows;rowsMap={};selectedRows=[];gridKey="id";isFilterLogTable=!1;typeIsGroup;constructor(o,h,T,O,c,x,s,d){this.generalS=o,this.notificationS=h,this.navigationCS=T,this.authCS=O,this.constantsS=c,this.eventCenterS=x,this.dataProviderS=s,this.cd=d}ngOnInit(){const o=this.dataProviderS.getApiCategoriesForWebSocketAndGroup();"GROUP"===this.typeIsGroup&&(this.rows=o.filter(h=>h.id!==M.R.SCHEDULERS&&h.id!==M.R.EVENTS)),"LOG_PROFILE"===this.typeIsGroup&&(this.rows=o),this.init()}init(){var o=this;return(0,m.Z)(function*(){o.rowsMap=E.keyBy(o.rows,D.GR.id),o.eventCenterS.apiCategory.selectedApiCategory.next([]);const h=o.navigationCS.getQueryParam(u.p.api_category);o.rowsMap[h]&&(o.eventCenterS.apiCategory.selectedApiCategory.next([o.rowsMap[h]]),o.selectedRows.length=0,o.selectedRows.push(o.rowsMap[h]),yield o.fillData()),o.subscriptions.push(o.eventCenterS.group.selectedGroups.subscribe(function(){var T=(0,m.Z)(function*(O){O.length&&o.commonGetQueryParam()});return function(O){return T.apply(this,arguments)}}())),o.isFilterLogTable&&o.commonGetQueryParam(),o.loading.grid=!1})()}commonGetQueryParam(){this.navigationCS.getQueryParam(u.p.api_category)||(setTimeout(()=>{this.navigationCS.setQueryParam(u.p.api_category,M.R.INSTANCES)},0),this.eventCenterS.apiCategory.selectedApiCategory.next([this.rows[0]]),this.selectedRows=[],this.selectedRows.push(this.rows[0])),this.cd.markForCheck()}resetDependents(){var o=this;return(0,m.Z)(function*(){o.eventCenterS.apiCategory.selectedApiCategory.next([]),yield o.navigationCS.setQueryParam(u.p.api_category,null)})()}apiCategorySelected(){var o=this;return(0,m.Z)(function*(){o.resetDependents(),o.fillData()})()}fillData(){var o=this;return(0,m.Z)(function*(){if(!o.selectedRows.length)return void o.resetDependents();const h=o.selectedRows[0];h&&(o.eventCenterS.apiCategory.selectedApiCategory.next(o.selectedRows),yield o.navigationCS.setQueryParam(u.p.api_category,h.id))})()}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(h){return new(h||I)(e.Y36(n.b),e.Y36(U.W),e.Y36(y.S),e.Y36(Z.D),e.Y36(W.L),e.Y36(B.u),e.Y36(K.B),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:I,selectors:[["app-w-api-categories"]],inputs:{isFilterLogTable:"isFilterLogTable",typeIsGroup:"typeIsGroup"},decls:10,vars:7,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],[1,"fas","fa-border-none","text-warning","fa-fw"],[1,"card-body","p-0","h-100","overflow-hidden"],["styleClass","p-datatable-striped","scrollHeight","flex",3,"selectionMode","metaKeySelection","selection","dataKey","scrollable","value","selectionChange"],["pTemplate","header"],["pTemplate","body"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[3,"pSelectableRow"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(h,T){1&h&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"i",2),e._uU(4," API Categories"),e.qZA()(),e.TgZ(5,"div",3)(6,"p-table",4),e.NdJ("selectionChange",function(c){return T.selectedRows=c})("selectionChange",function(){return T.apiCategorySelected()}),e.YNc(7,Q,3,0,"ng-template",5),e.YNc(8,F,3,2,"ng-template",6),e.qZA(),e.YNc(9,H,1,0,"p-progressSpinner",7),e.qZA()()),2&h&&(e.xp6(6),e.Q6J("selectionMode","multiple")("metaKeySelection",!0)("selection",T.selectedRows)("dataKey",T.gridKey)("scrollable",!0)("value",T.rows),e.xp6(3),e.Q6J("ngIf",T.loading.grid))},dependencies:[N.O5,w.iA,Y.jx,w.Ei,J.G],changeDetection:0})}return I})()},2777:(G,S,a)=>{a.d(S,{u:()=>D});var m=a(4056),E=(a(3824),a(4946));let D=(()=>{class e{static \u0275fac=function(y){return new(y||e)};static \u0275mod=E.oAB({type:e});static \u0275inj=E.cJS({imports:[m.u]})}return e})()},356:(G,S,a)=>{a.d(S,{T:()=>O});var m=a(5861),u=a(6990),L=a(3620),M=a(1162),D=a(6925),e=a(9394),n=a(4946),U=a(3429),y=a(2915),Z=a(7414),W=a(6162),B=a(7240),K=a(95),N=a(6814),w=a(5219),Y=a(1396),J=a(7680),Q=a(3259),F=a(8057);function H(c,x){if(1&c){const s=n.EpF();n.TgZ(0,"span",8)(1,"label",9)(2,"p-checkbox",10),n.NdJ("ngModelChange",function(_){n.CHM(s);const A=n.oxw();return n.KtG(A.eventCenterS.group.apisRegex.allInstanceApis=_)}),n.qZA()()()}if(2&c){const s=n.oxw();n.xp6(2),n.Q6J("ngModel",s.eventCenterS.group.apisRegex.allInstanceApis)("binary",!0)}}function j(c,x){if(1&c&&(n.TgZ(0,"div")(1,"div",11),n._uU(2),n.qZA()()),2&c){const s=n.oxw();n.xp6(2),n.Oqu(s.constantsS.group.allApisPermitted)}}function I(c,x){if(1&c&&(n.TgZ(0,"span",19),n._uU(1),n.qZA()),2&c){const s=n.oxw().$implicit;n.xp6(1),n.hij(" [",s.category,"] ")}}function b(c,x){if(1&c){const s=n.EpF();n.TgZ(0,"div",20)(1,"p-checkbox",21),n.NdJ("ngModelChange",function(_){n.CHM(s);const A=n.oxw().$implicit;return n.KtG(A.saveResponseInLog=_)})("click",function(_){n.CHM(s);const A=n.oxw(3);return n.KtG(A.generalS.stopPropagation(_))}),n.qZA()()}if(2&c){const s=n.oxw().$implicit;n.xp6(1),n.Q6J("ngModel",s.saveResponseInLog)("binary",!0)}}function o(c,x){if(1&c&&(n.TgZ(0,"div",16),n._uU(1),n.YNc(2,I,2,1,"span",17),n.YNc(3,b,2,2,"div",18),n.qZA()),2&c){const s=x.$implicit,d=n.oxw(2);n.xp6(1),n.hij(" ",s.name," "),n.xp6(1),n.Q6J("ngIf",!s.level1&&s.category),n.xp6(1),n.Q6J("ngIf",s.level2&&d.isLPM&&d.selectedRows.indexOf(s)>=0&&s.id!==d.EAPIId.GEN_GET_ALL_STREAM&&s.id!==d.EAPIId.SCHEMA_GET_ALL_STREAM&&s.id!==d.EAPIId.GEN_POST_QUERY_STREAM&&s.id!==d.EAPIId.SCHEMA_POST_QUERY_STREAM)}}function h(c,x){1&c&&n._UZ(0,"p-progressSpinner",22)}function T(c,x){if(1&c){const s=n.EpF();n.TgZ(0,"div",12)(1,"p-tree",13),n.NdJ("selectionChange",function(_){n.CHM(s);const A=n.oxw();return n.KtG(A.selectedRows=_)})("selectionChange",function(){n.CHM(s);const _=n.oxw();return n.KtG(_.checkedChange())}),n.YNc(2,o,4,3,"ng-template",14),n.qZA(),n.YNc(3,h,1,0,"p-progressSpinner",15),n.qZA()}if(2&c){const s=n.oxw();n.xp6(1),n.Q6J("value",s.supportedApiGroups)("selection",s.selectedRows)("metaKeySelection",!1),n.xp6(2),n.Q6J("ngIf",s.loading.grid)}}let O=(()=>{class c{instanceS;eventCenterS;constantsS;dbCellCommonS;generalS;cd;isLPM=!1;isDependentOnGroup=!1;isFilterLogTable=!1;treeViewId="";loading={grid:!1};subscriptions=[];supportedApiGroups=[];supportedApiArr=[];allTreeItemsMap={};ERequestMethod=D.Yp;EAPIId=e.pj;selectedRows=[];key="_id";constructor(s,d,_,A,l,v){this.instanceS=s,this.eventCenterS=d,this.constantsS=_,this.dbCellCommonS=A,this.generalS=l,this.cd=v}ngOnInit(){var s=this;this.subscriptions.push(this.eventCenterS.collection.selectedCollections.pipe((0,L.b)(300)).subscribe(function(){var d=(0,m.Z)(function*(_){yield s.loadSupportedAPIs()});return function(_){return d.apply(this,arguments)}}()))}loadSupportedAPIs(){var s=this;return(0,m.Z)(function*(){const d=s.eventCenterS.collection.selectedCollections.value;if(!d.length)return void(yield s.resetGridAndUrl());s.loading.grid=!0,!s.isLPM&&!s.isDependentOnGroup&&(yield s.resetGridAndUrl()),s.supportedApiArr=(yield s.instanceS.instanceAPIList(d)).data,s.allTreeItemsMap=u.keyBy(s.supportedApiArr,M.iH._id);const _=u.groupBy(s.supportedApiArr,M.aV.collectionId),A=[];for(const l in _)A.push({field:M.aV.collectionId,value:l,children:_[l]});for(const l of A){const v=l.children[0],$=v.instanceName+":"+v.databaseName+":"+v.collectionName;if(l.name=l.value,l._id=$,l.level1=!0,l.isGroup=!0,l.instanceName=v.instanceName,l.category=v.category,l.instanceName=v.instanceName,l.databaseName=v.databaseName,l.collectionName=v.collectionName,l.children=l.children,s.isLPM)for(const k of l.children||[])k.level2=!0;s.allTreeItemsMap[l._id]=l;for(const k of l?.children||[])k.parent=l}for(const l of A)s.generalS.convertKTreeItemToPrimeNGTreeItem(l);if(s.isLPM&&s.eventCenterS.group.selectedGroups.value[0]?.queryParams?.supportedApiNames?.length){const l=s.eventCenterS.group.selectedGroups.value[0];for(const v of l?.queryParams?.supportedApiNames)s.allTreeItemsMap[v]&&(s.allTreeItemsMap[v].saveResponseInLog=l.supportedApiLog?.[v]?.saveResponseInLog||!1)}if(s.eventCenterS.group.supportedApiIds.value.length&&s.isDependentOnGroup){const l=u.intersection(u.keys(s.allTreeItemsMap),s.eventCenterS.group.supportedApiIds.value);s.generalS.setDataInSelectedRowsFromIdArr(l,s.selectedRows,s.allTreeItemsMap),s.eventCenterS.group.supportedApiIds.next(l)}if(s.eventCenterS.filterInLog.supportedApiIds.value.length&&s.isFilterLogTable){const l=u.intersection(u.keys(s.allTreeItemsMap),s.eventCenterS.filterInLog.supportedApiIds.value);s.generalS.setDataInSelectedRowsFromIdArr(l,s.selectedRows,s.allTreeItemsMap),s.eventCenterS.filterInLog.supportedApiIds.next(l),s.isFilterLogTable&&s.dbCellCommonS.extractNameAndSetForLogTable(l,s.allTreeItemsMap,"supportedApiNames","id")}s.setDataInEventCenter(),s.supportedApiGroups=A,s.loading.grid=!1,s.cd.detectChanges()})()}resetGridAndUrl(){var s=this;return(0,m.Z)(function*(){s.supportedApiGroups=[],s.supportedApiArr=[],s.allTreeItemsMap={},s.eventCenterS.group.supportedAPIs.next([]),s.eventCenterS.filterInLog.supportedAPIs.next([])})()}checkedChange(){var s=this;setTimeout((0,m.Z)(function*(){for(const d in s.allTreeItemsMap){const _=s.allTreeItemsMap[d];-1===s.selectedRows.indexOf(_)&&(_.saveResponseInLog=!1)}s.setDataInEventCenter(),s.cd.detectChanges()}),100)}setDataInEventCenter(){const s=this.selectedRows;this.isDependentOnGroup&&(this.eventCenterS.group.supportedAPIs.next(s),this.eventCenterS.group.selectedSupportedAPIs.next(s)),this.isFilterLogTable&&this.eventCenterS.filterInLog.supportedAPIs.next(s),this.isDependentOnGroup&&this.eventCenterS.group.supportedApiIds.next(u.map(this.selectedRows,"_id")),this.isFilterLogTable&&(this.eventCenterS.filterInLog.supportedApiIds.next(u.map(this.selectedRows,"_id")),this.dbCellCommonS.extractNameAndSetForLogTable(u.map(this.selectedRows,"_id"),this.allTreeItemsMap,"supportedApiNames","id"))}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}static \u0275fac=function(d){return new(d||c)(n.Y36(U.E),n.Y36(y.u),n.Y36(Z.L),n.Y36(W.m),n.Y36(B.b),n.Y36(n.sBO))};static \u0275cmp=n.Xpm({type:c,selectors:[["app-w-supported-api"]],inputs:{isLPM:"isLPM",isDependentOnGroup:"isDependentOnGroup",isFilterLogTable:"isFilterLogTable",treeViewId:"treeViewId"},decls:10,vars:3,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],[1,"fas","fa-stream","text-warning","fa-fw","mr-1"],["class","float-right cursor-pointer","tooltipPosition","left","pTooltip","All APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"position-relative","border-top","h-100"],[4,"ngIf"],["class","h-100",4,"ngIf"],["tooltipPosition","left","pTooltip","All APIs",1,"float-right","cursor-pointer"],[1,"mb-0","mt--2px"],[3,"ngModel","binary","ngModelChange"],[1,"p-2","text-center","text-success"],[1,"h-100"],["scrollHeight","flex","selectionMode","checkbox",1,"w-full",3,"value","selection","metaKeySelection","selectionChange"],["pTemplate","default"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],[1,"w-100","prevent-text-selection","cursor-pointer","pt-1","pb-1"],["class","float-right small mr-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"float-right","small","mr-1"],[1,"mt-1"],["label","Save Response In Log",3,"ngModel","binary","ngModelChange","click"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(d,_){1&d&&(n.TgZ(0,"div",0)(1,"div",1)(2,"span"),n._UZ(3,"i",2),n._uU(4," Supported APIs"),n.qZA(),n.YNc(5,H,3,2,"span",3),n.qZA(),n.TgZ(6,"div",4)(7,"div",5),n.YNc(8,j,3,1,"div",6),n.YNc(9,T,4,4,"div",7),n.qZA()()()),2&d&&(n.xp6(5),n.Q6J("ngIf",_.isDependentOnGroup),n.xp6(3),n.Q6J("ngIf",_.eventCenterS.group.apisRegex.allInstances||_.eventCenterS.filterInLog.apisRegex.allInstances||_.eventCenterS.group.apisRegex.allDatabases||_.eventCenterS.group.apisRegex.allCollections||_.eventCenterS.group.apisRegex.allInstanceApis),n.xp6(1),n.Q6J("ngIf",!(_.eventCenterS.group.apisRegex.allInstances||_.eventCenterS.filterInLog.apisRegex.allInstances||_.eventCenterS.group.apisRegex.allDatabases||_.eventCenterS.group.apisRegex.allCollections||_.eventCenterS.group.apisRegex.allInstanceApis)))},dependencies:[K.JJ,K.On,N.O5,w.jx,Y.mp,J.G,Q.u,F.XZ],encapsulation:2})}return c})()},1434:(G,S,a)=>{a.d(S,{B:()=>D});var m=a(4056),E=(a(356),a(4946));let D=(()=>{class e{static \u0275fac=function(y){return new(y||e)};static \u0275mod=E.oAB({type:e});static \u0275inj=E.cJS({imports:[m.u]})}return e})()},8651:(G,S,a)=>{a.d(S,{A:()=>re});var m=a(5861),u=a(6990),L=a(7672),M=a(5085),D=a(921),e=a(4946),n=a(5852),U=a(2915),y=a(7414),Z=a(7240),W=a(2559),B=a(7664),K=a(95),N=a(6814),w=a(5219),Y=a(1396),J=a(7680),Q=a(3259),F=a(8057);function H(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"span",11)(1,"label",12)(2,"p-checkbox",13),e.NdJ("ngModelChange",function(p){e.CHM(t);const f=e.oxw();return e.KtG(f.eventCenterS.group.apisRegex.allThirdPartyApis=p)}),e.qZA()()()}if(2&r){const t=e.oxw();e.xp6(2),e.Q6J("ngModel",t.eventCenterS.group.apisRegex.allThirdPartyApis)("binary",!0)}}function j(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"span",11)(1,"label",12)(2,"p-checkbox",13),e.NdJ("ngModelChange",function(p){e.CHM(t);const f=e.oxw();return e.KtG(f.eventCenterS.filterInLog.apisRegex.allThirdPartyApis=p)}),e.qZA()()()}if(2&r){const t=e.oxw();e.xp6(2),e.Q6J("ngModel",t.eventCenterS.filterInLog.apisRegex.allThirdPartyApis)("binary",!0)}}function I(r,g){if(1&r&&(e.TgZ(0,"div")(1,"div",14),e._uU(2),e.qZA()()),2&r){const t=e.oxw();e.xp6(2),e.Oqu(t.constantsS.group.allThirdPartyApisPermitted)}}function b(r,g){1&r&&(e.TgZ(0,"span"),e._uU(1,"[Public]"),e.qZA())}function o(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"div",24)(1,"p-checkbox",25),e.NdJ("ngModelChange",function(p){e.CHM(t);const f=e.oxw().$implicit;return e.KtG(f.saveResponseInLog=p)})("click",function(p){e.CHM(t);const f=e.oxw(4);return e.KtG(f.generalS.stopPropagation(p))}),e.qZA()()}if(2&r){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngModel",t.saveResponseInLog)("binary",!0)}}function h(r,g){if(1&r&&(e.TgZ(0,"div",21)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"span",22),e.YNc(4,b,2,0,"span",9),e.qZA(),e.YNc(5,o,2,2,"div",23),e.qZA()),2&r){const t=g.$implicit,i=e.oxw(3);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("ngIf",t.apiAccessType===i.EAPIAccessType.IS_PUBLIC),e.xp6(1),e.Q6J("ngIf",t.level2&&i.isLPM&&i.selectedRows.indexOf(t)>=0)}}function T(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"p-tree",19),e.NdJ("selectionChange",function(p){e.CHM(t);const f=e.oxw(2);return e.KtG(f.selectedRows=p)})("selectionChange",function(){e.CHM(t);const p=e.oxw(2);return e.KtG(p.checkedChange())}),e.YNc(1,h,6,3,"ng-template",20),e.qZA()}if(2&r){const t=e.oxw(2);e.Q6J("value",t.supportedApiListData)("selection",t.selectedRows)}}function O(r,g){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.name,"")}}function c(r,g){if(1&r&&(e.TgZ(0,"span",38),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.name)}}function x(r,g){if(1&r&&(e.TgZ(0,"span",39),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" [",t.path,"]")}}function s(r,g){1&r&&(e.TgZ(0,"span",40),e._uU(1,"[AM-User]"),e.qZA())}function d(r,g){1&r&&(e.TgZ(0,"span",41),e._uU(1,"No-Access"),e.qZA())}function _(r,g){1&r&&(e.TgZ(0,"span",42),e._uU(1,"[Public]"),e.qZA())}function A(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[DB-User]"),e.qZA())}function l(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[AWS]"),e.qZA())}function v(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[Azure]"),e.qZA())}function $(r,g){1&r&&(e.TgZ(0,"span",43),e._uU(1,"[Google]"),e.qZA())}const k=function(){return["/api-info/api-testing/testing"]},V=function(r,g,t){return{at_category:"THIRD_PARTY_APIS",at_bundleName:r,at_apiVersion:g,at_api:t}};function X(r,g){if(1&r&&(e.TgZ(0,"span",3)(1,"a",44),e.NdJ("click",function(i){return i.stopPropagation()}),e._UZ(2,"i",45),e.qZA()()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("routerLink",e.DdM(2,k))("queryParams",e.kEZ(3,V,t.bundleName,t.apiVersion,t._id))}}const z=function(){return{width:"55px"}};function q(r,g){if(1&r&&(e.TgZ(0,"span",46),e._UZ(1,"i",47),e.qZA()),2&r){const t=e.oxw().$implicit;e.Q6J("ngStyle",t.level1?"":e.DdM(1,z))}}function ee(r,g){1&r&&(e.TgZ(0,"span",48),e._uU(1,"[Public]"),e.qZA())}const te=function(r,g,t,i){return{get:r,put:g,post:t,delete:i}};function ne(r,g){if(1&r&&(e.TgZ(0,"div",27)(1,"span",28),e._uU(2),e.qZA(),e.YNc(3,O,2,1,"span",9),e.YNc(4,c,2,1,"span",29),e.YNc(5,x,2,1,"span",30),e.YNc(6,s,2,0,"span",31),e.YNc(7,d,2,0,"span",32),e.YNc(8,_,2,0,"span",33),e.YNc(9,A,2,0,"span",34),e.YNc(10,l,2,0,"span",34),e.YNc(11,v,2,0,"span",34),e.YNc(12,$,2,0,"span",34),e.YNc(13,X,3,7,"span",35),e.YNc(14,q,2,2,"span",36),e.TgZ(15,"span",22),e.YNc(16,ee,2,0,"span",37),e.qZA()()),2&r){const t=g.$implicit,i=e.oxw(3);e.xp6(1),e.Q6J("ngClass",e.l5B(15,te,t.requestMethod===i.ERequestMethod.GET,t.requestMethod===i.ERequestMethod.PUT,t.requestMethod===i.ERequestMethod.POST,t.requestMethod===i.ERequestMethod.DELETE)),e.xp6(1),e.hij("",t.requestMethod," "),e.xp6(1),e.Q6J("ngIf",!t.level1),e.xp6(1),e.Q6J("ngIf",t.level1),e.xp6(1),e.Q6J("ngIf",t.level2),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAmAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.noAccess),e.xp6(1),e.Q6J("ngIf",t.level2&&t.isPublic),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAmDBAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAwsAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasAzureAuth),e.xp6(1),e.Q6J("ngIf",t.level2&&t.hasGoogleAuth),e.xp6(1),e.Q6J("ngIf",t.level2),e.xp6(1),e.Q6J("ngIf",t.isThirdPartyAPISettings),e.xp6(2),e.Q6J("ngIf",t.apiAccessType===i.EAPIAccessType.IS_PUBLIC)}}function se(r,g){if(1&r){const t=e.EpF();e.TgZ(0,"p-tree",26),e.NdJ("selectionChange",function(p){e.CHM(t);const f=e.oxw(2);return e.KtG(f.selectedRows=p)})("selectionChange",function(){e.CHM(t);const p=e.oxw(2);return e.KtG(p.selectedKeysChange())}),e.YNc(1,ne,17,20,"ng-template",20),e.qZA()}if(2&r){const t=e.oxw(2);e.Q6J("value",t.supportedApiListData)("selection",t.selectedRows)}}function ie(r,g){1&r&&e._UZ(0,"p-progressSpinner",49)}function ae(r,g){if(1&r&&(e.TgZ(0,"div",15),e.YNc(1,T,2,2,"p-tree",16),e.YNc(2,se,2,2,"p-tree",17),e.YNc(3,ie,1,0,"p-progressSpinner",18),e.qZA()),2&r){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.isDependentOnGroup||t.isFilterLogTable),e.xp6(1),e.Q6J("ngIf",!t.isDependentOnGroup&&!t.isFilterLogTable),e.xp6(1),e.Q6J("ngIf",t.loading.grid)}}let re=(()=>{class r{authCS;eventCenterS;constantsS;generalS;cd;tpInstalledApisS;router;isDependentOnGroup=!1;isLPM=!1;isFilterLogTable=!1;ERequestMethod=L.Yp;EUserType=D.d;EAPIAccessType=L.di;loading={grid:!1};subscriptions=[];supportedApiListData=[];allTreeItemsMap={};allTreeItemsMapNameId={};selectedRows=[];key="_id";selectedItem;saveResponseInLog={};constructor(t,i,p,f,C,P,R){this.authCS=t,this.eventCenterS=i,this.constantsS=p,this.generalS=f,this.cd=C,this.tpInstalledApisS=P,this.router=R}ngOnInit(){var t=this;this.isDependentOnGroup&&this.subscriptions.push(this.eventCenterS.group.selectedGroups.subscribe(function(){var i=(0,m.Z)(function*(p){p.length&&setTimeout((0,m.Z)(function*(){yield t.loadThirdPartyAPIList(p[0])}),1e3)});return function(p){return i.apply(this,arguments)}}())),this.subscriptions.push(this.eventCenterS.filterInLog.refreshGrid.subscribe(i=>{i&&this.loadThirdPartyAPIList().then()})),this.loadThirdPartyAPIList().then(),this.generalS.setNewTitle("API Maker - Third Party APIs")}loadThirdPartyAPIList(t){var i=this;return(0,m.Z)(function*(){const p=i.allTreeItemsMap||{};if(i.isDependentOnGroup&&!t)return void(yield i.resetGridAndUrl());i.loading.grid=!0,yield i.resetGridAndUrl();const f=(yield i.tpInstalledApisS.thirdPartyAPIKTree(i.isLPM).toPromise()).data;for(const C of f)i.generalS.convertKTreeItemToPrimeNGTreeItem(C);i.supportedApiListData=f,i.allTreeItemsMap={},i.allTreeItemsMapNameId={},i.getMapOfAllItems(i.allTreeItemsMap,i.supportedApiListData),i.allTreeItemsMapNameId={};for(const C of Object.keys(i.allTreeItemsMap)){const P=i.allTreeItemsMap[C],R=[];P.bundleName&&R.push(P.bundleName),P.apiVersion&&R.push(P.apiVersion),P.apiName&&R.push(P.apiName),P.nameId=R.join(":"),i.allTreeItemsMapNameId[P.nameId]=P}if(i.generalS.setIsExpandedStateFromOldMap(p,i.allTreeItemsMap),i.isDependentOnGroup)if(i.eventCenterS.group.thirdPartyApiIds&&i.eventCenterS.group.thirdPartyApiIds.value.length){const C=u.intersection(u.keys(i.allTreeItemsMap),i.eventCenterS.group.thirdPartyApiIds.value);i.eventCenterS.group.thirdPartyApiIds.next(C),i.generalS.setDataInSelectedRowsFromIdArr(C,i.selectedRows,i.allTreeItemsMap),i.setDataInEventCenter()}else i.selectedRows=[];if(i.isFilterLogTable)if(i.eventCenterS.filterInLog.thirdPartyApiIds&&i.eventCenterS.filterInLog.thirdPartyApiIds.value.length){const C=u.intersection(u.keys(i.allTreeItemsMap),i.eventCenterS.filterInLog.thirdPartyApiIds.value);i.eventCenterS.filterInLog.thirdPartyApiIds.next(C),i.generalS.setDataInSelectedRowsFromIdArr(C,i.selectedRows,i.allTreeItemsMap),i.setDataInEventCenter()}else i.selectedRows=[];if(i.isLPM&&i.eventCenterS.group.selectedGroups.value[0]?.queryParams?.thirdPartyApiNames?.length){const C=i.eventCenterS.group.selectedGroups.value[0];for(const P of C?.queryParams?.thirdPartyApiNames){const R=i.allTreeItemsMapNameId[P];R&&(R.saveResponseInLog=C.thirdPartyApisLog?.[P]?.saveResponseInLog||!1)}i.setDataInEventCenter()}i.loading.grid=!1,i.cd.detectChanges()})()}resetGridAndUrl(){var t=this;return(0,m.Z)(function*(){t.supportedApiListData=[],t.allTreeItemsMap={},t.allTreeItemsMapNameId={}})()}checkedChange(){var t=this;setTimeout((0,m.Z)(function*(){for(const i in t.allTreeItemsMap){const p=t.allTreeItemsMap[i];-1===t.selectedRows.indexOf(p)&&(p.saveResponseInLog=!1)}t.setDataInEventCenter(),t.cd.detectChanges()}),100)}selectedKeysChange(){if(this.selectedRows.length){const t=this.selectedRows[0];t?.bundleName&&this.generalS.setNewTitle(t.bundleName,M.R.THIRD_PARTY_APIS),this.eventCenterS.tpApiSettings.apiSelected.next(t)}}getMapOfAllItems(t,i){for(const p of i)if(t[p._id]=p,p.children&&p.children.length){for(const f of p.children)f.parent=p;this.getMapOfAllItems(t,p.children)}}setDataInEventCenter(){this.isDependentOnGroup&&(this.eventCenterS.group.thirdPartyAPIs.next(this.selectedRows),this.eventCenterS.group.selectedThirdPartyAPIs.next(this.selectedRows),this.eventCenterS.group.thirdPartyApiIds.next(this.getThirdPartyIdArr())),this.isFilterLogTable&&(this.eventCenterS.filterInLog.thirdPartyAPIs.next(this.selectedRows),this.eventCenterS.filterInLog.thirdPartyApiIds.next(this.getThirdPartyIdArr()))}getThirdPartyIdArr(){const t=[];for(const i of this.selectedRows){const p=i._id;this.generalS.isValidMongodbID(p)&&t.push(p)}return t}ngOnDestroy(){this.generalS.unsubscribe(this.subscriptions)}undefined=void 0;static \u0275fac=function(i){return new(i||r)(e.Y36(n.D),e.Y36(U.u),e.Y36(y.L),e.Y36(Z.b),e.Y36(e.sBO),e.Y36(W.d),e.Y36(B.F0))};static \u0275cmp=e.Xpm({type:r,selectors:[["app-w-supported-tp-api"]],inputs:{isDependentOnGroup:["IsDependentOnGroup","isDependentOnGroup"],isLPM:"isLPM",isFilterLogTable:"isFilterLogTable"},decls:14,vars:4,consts:[[1,"card","shadow-sm","h-100"],[1,"card-header"],["src","/assets/images/icons/third-party.svg","alt","Third Party API",1,"fa-fw","mr-1"],[1,"float-right"],["href","https://docs.apimaker.dev/v1/docs/apis-all/thirdParty-apis/installed-third-party-api.html","target","_blank"],["src","/assets/images/logo/logo_docs.svg",1,"fa-fw","ml-3","mr-1","mt-n1",2,"font-size","25px"],["class","float-right cursor-pointer","tooltipPosition","left","pTooltip","All Third Party APIs",4,"ngIf"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"position-relative","border-top","h-100"],[4,"ngIf"],["class","h-100",4,"ngIf"],["tooltipPosition","left","pTooltip","All Third Party APIs",1,"float-right","cursor-pointer"],[1,"align-middle","mb-0","mt--2px"],[3,"ngModel","binary","ngModelChange"],[1,"p-2","text-center","text-success"],[1,"h-100"],["class","w-full system-api-grid-height","scrollHeight","flex","selectionMode","checkbox",3,"value","selection","selectionChange",4,"ngIf"],["class","w-full","scrollHeight","calc(100vh - 94px)","selectionMode","multiple",3,"value","selection","selectionChange",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s",4,"ngIf"],["scrollHeight","flex","selectionMode","checkbox",1,"w-full","system-api-grid-height",3,"value","selection","selectionChange"],["pTemplate","default"],[1,"w-100","prevent-text-selection","cursor-pointer","pt-1","pb-1"],[1,"text-monospace","font-weight-bold","font-italic","float-right",2,"font-size","xx-small"],["class","mt-1",4,"ngIf"],[1,"mt-1"],["label","Save Response In Log",3,"ngModel","binary","ngModelChange","click"],["scrollHeight","calc(100vh - 94px)","selectionMode","multiple",1,"w-full",3,"value","selection","selectionChange"],[1,"w-100","prevent-text-selection","cursor-pointer"],["pTooltip","Request Type",1,"small","font-weight-bold","mr-1",3,"ngClass"],["pTooltip","API Name","class","mr-1",4,"ngIf"],["class","text-muted small","pTooltip","API Path",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced text-success ml-2",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced text-warning",4,"ngIf"],["class","d-inline-block ml-1 small font-monospaced text-success",4,"ngIf"],["class","float-right",4,"ngIf"],["class","float-right",3,"ngStyle",4,"ngIf"],["class","public-class",4,"ngIf"],["pTooltip","API Name",1,"mr-1"],["pTooltip","API Path",1,"text-muted","small"],[1,"d-inline-block","ml-1","small","font-monospaced"],[1,"d-inline-block","ml-1","small","font-monospaced","text-success","ml-2"],[1,"d-inline-block","ml-1","small","font-monospaced","text-warning"],[1,"d-inline-block","ml-1","small","font-monospaced","text-success"],["href","javascript:","tooltipPosition","left","pTooltip","Test API",1,"btn","btn-xsm-custom","mr-3",3,"routerLink","queryParams","click"],[1,"fas","fa-vial","text-info","fa-fw","test-tube","pt-1"],[1,"float-right",3,"ngStyle"],[1,"fas","fa-cog","text-danger","fa-fw","mr-2"],[1,"public-class"],["styleClass","w-4rem h-4rem","strokeWidth","4","animationDuration",".5s"]],template:function(i,p){1&i&&(e.TgZ(0,"div",0)(1,"div",1)(2,"span"),e._UZ(3,"img",2),e._uU(4," Installed Third Party APIs"),e.qZA(),e.TgZ(5,"div",3)(6,"a",4),e._UZ(7,"img",5),e.qZA()(),e.YNc(8,H,3,2,"span",6),e.YNc(9,j,3,2,"span",6),e.qZA(),e.TgZ(10,"div",7)(11,"div",8),e.YNc(12,I,3,1,"div",9),e.YNc(13,ae,4,3,"div",10),e.qZA()()()),2&i&&(e.xp6(8),e.Q6J("ngIf",p.isDependentOnGroup),e.xp6(1),e.Q6J("ngIf",p.isFilterLogTable),e.xp6(3),e.Q6J("ngIf",p.eventCenterS.group.apisRegex.allThirdPartyApis||p.eventCenterS.filterInLog.apisRegex.allThirdPartyApis),e.xp6(1),e.Q6J("ngIf",!(p.eventCenterS.group.apisRegex.allThirdPartyApis||p.eventCenterS.filterInLog.apisRegex.allThirdPartyApis)))},dependencies:[K.JJ,K.On,N.mk,N.O5,N.PC,B.rH,w.jx,Y.mp,J.G,Q.u,F.XZ],styles:[".public-class{display:inline-block;padding-top:5px;padding-right:15px}.get{color:var(--accent-success)}.put{color:var(--brand-secondary)}.post{color:var(--accent-warning)}.delete{color:var(--accent-error)}\n"],encapsulation:2})}return r})()},7705:(G,S,a)=>{a.d(S,{L:()=>e});var m=a(4056),E=(a(8651),a(4946));let e=(()=>{class n{static \u0275fac=function(Z){return new(Z||n)};static \u0275mod=E.oAB({type:n});static \u0275inj=E.cJS({imports:[m.u]})}return n})()}}]);
|
|
@@ -122,6 +122,7 @@ export enum ITPInstalledApiProps {
|
|
|
122
122
|
apiDocs = 'apiDocs',
|
|
123
123
|
apiJsonStr = 'apiJsonStr',
|
|
124
124
|
swaggerDocs = 'swaggerDocs',
|
|
125
|
+
fileUpload = 'fileUpload',
|
|
125
126
|
|
|
126
127
|
// calculatedProperty
|
|
127
128
|
nameForGroup = 'nameForGroup',
|
|
@@ -158,6 +159,7 @@ export enum ICustomApiProps {
|
|
|
158
159
|
runOnNativeProcess = 'runOnNativeProcess',
|
|
159
160
|
swaggerDocs = 'swaggerDocs',
|
|
160
161
|
separateSandboxSettings = 'separateSandboxSettings',
|
|
162
|
+
fileUpload = 'fileUpload',
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
export enum IGroupProps {
|
|
@@ -302,6 +304,7 @@ export enum ITPInstalledApiFieldsCommonWithStoreProps {
|
|
|
302
304
|
reqBodySchema = 'reqBodySchema',
|
|
303
305
|
reqQueryParametersSchema = 'reqQueryParametersSchema',
|
|
304
306
|
errorList = 'errorList',
|
|
307
|
+
fileUpload = 'fileUpload',
|
|
305
308
|
}
|
|
306
309
|
|
|
307
310
|
export enum IAmStoreAPIBundleProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISchemaType, ISwaggerDocsObj } from './types';
|
|
1
|
+
import { IFileUploadSettings, ISchemaType, ISwaggerDocsObj } from './types';
|
|
2
2
|
|
|
3
3
|
export interface IApiSchema {
|
|
4
4
|
name: string;
|
|
@@ -15,6 +15,7 @@ export interface IApiSchema {
|
|
|
15
15
|
reqQueryParametersSchema?: ISchemaType;
|
|
16
16
|
errorList: string[];
|
|
17
17
|
swaggerDocs?: ISwaggerDocsObj;
|
|
18
|
+
fileUpload?: IFileUploadSettings;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export type IApiSchemaUI = Omit<IApiSchema, 'headers' | 'autoAddHeaders' | 'queryParams' | 'autoAddQueryParams' | 'requestBodyTypeSupported'>;
|
|
@@ -186,10 +186,10 @@ export interface IBaseParams {
|
|
|
186
186
|
|
|
187
187
|
// calculated fields from database field
|
|
188
188
|
/** database name given by user and it will be converted to masked database. ex: inventory_db */
|
|
189
|
-
dbEnvironment?: string;
|
|
189
|
+
dbEnvironment?: string;
|
|
190
190
|
|
|
191
191
|
/** Actual database name on which operation is getting performed. ex: inventory_db_dev_1 */
|
|
192
|
-
dbUser?: string;
|
|
192
|
+
dbUser?: string;
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* If true, it will not throw cycle error.
|
|
@@ -804,6 +804,29 @@ export interface ICustomApiSettingsTypes extends IAuthTokenInfoCommon {
|
|
|
804
804
|
|
|
805
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
806
|
separateSandboxSettings?: ISeparateSandboxSettings;
|
|
807
|
+
|
|
808
|
+
fileUpload?: IFileUploadSettings;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export interface IFileUploadSettings {
|
|
812
|
+
/** Default true, Allow file upload feature. */
|
|
813
|
+
enable?: boolean;
|
|
814
|
+
|
|
815
|
+
/** System will only allow file upload on these fields only. */
|
|
816
|
+
allowFileUploadFields?: EFilesVariables[];
|
|
817
|
+
|
|
818
|
+
validations?: {
|
|
819
|
+
[key in EFilesVariables]?: IFileUploadSettingsValidations;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
export interface IFileUploadSettingsValidations {
|
|
824
|
+
/** System will throw error if file size is less than given size */
|
|
825
|
+
minFileSizeBytes?: number;
|
|
826
|
+
/** System will throw error if file size is greater than given size */
|
|
827
|
+
maxFileSizeBytes?: number;
|
|
828
|
+
/** ex: ['.png', '.jpeg', '.jpg'] */
|
|
829
|
+
allowedExtensionsArr?: string[];
|
|
807
830
|
}
|
|
808
831
|
|
|
809
832
|
export interface ISeparateSandboxSettings {
|
|
@@ -1503,6 +1526,60 @@ export interface ITestCaseSandboxCode {
|
|
|
1503
1526
|
|
|
1504
1527
|
export type ITestCaseSandboxCode_P = Partial<ITestCaseSandboxCode>;
|
|
1505
1528
|
|
|
1529
|
+
export enum EFilesVariables {
|
|
1530
|
+
files = 'files',
|
|
1531
|
+
files1 = 'files1',
|
|
1532
|
+
files2 = 'files2',
|
|
1533
|
+
files3 = 'files3',
|
|
1534
|
+
files4 = 'files4',
|
|
1535
|
+
files5 = 'files5',
|
|
1536
|
+
files6 = 'files6',
|
|
1537
|
+
files7 = 'files7',
|
|
1538
|
+
files8 = 'files8',
|
|
1539
|
+
files9 = 'files9',
|
|
1540
|
+
files10 = 'files10',
|
|
1541
|
+
files11 = 'files11',
|
|
1542
|
+
files12 = 'files12',
|
|
1543
|
+
files13 = 'files13',
|
|
1544
|
+
files14 = 'files14',
|
|
1545
|
+
files15 = 'files15',
|
|
1546
|
+
files16 = 'files16',
|
|
1547
|
+
files17 = 'files17',
|
|
1548
|
+
files18 = 'files18',
|
|
1549
|
+
files19 = 'files19',
|
|
1550
|
+
files20 = 'files20',
|
|
1551
|
+
files21 = 'files21',
|
|
1552
|
+
files22 = 'files22',
|
|
1553
|
+
files23 = 'files23',
|
|
1554
|
+
files24 = 'files24',
|
|
1555
|
+
files25 = 'files25',
|
|
1556
|
+
files26 = 'files26',
|
|
1557
|
+
files27 = 'files27',
|
|
1558
|
+
files28 = 'files28',
|
|
1559
|
+
files29 = 'files29',
|
|
1560
|
+
files30 = 'files30',
|
|
1561
|
+
files31 = 'files31',
|
|
1562
|
+
files32 = 'files32',
|
|
1563
|
+
files33 = 'files33',
|
|
1564
|
+
files34 = 'files34',
|
|
1565
|
+
files35 = 'files35',
|
|
1566
|
+
files36 = 'files36',
|
|
1567
|
+
files37 = 'files37',
|
|
1568
|
+
files38 = 'files38',
|
|
1569
|
+
files39 = 'files39',
|
|
1570
|
+
files40 = 'files40',
|
|
1571
|
+
files41 = 'files41',
|
|
1572
|
+
files42 = 'files42',
|
|
1573
|
+
files43 = 'files43',
|
|
1574
|
+
files44 = 'files44',
|
|
1575
|
+
files45 = 'files45',
|
|
1576
|
+
files46 = 'files46',
|
|
1577
|
+
files47 = 'files47',
|
|
1578
|
+
files48 = 'files48',
|
|
1579
|
+
files49 = 'files49',
|
|
1580
|
+
files50 = 'files50',
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1506
1583
|
// ==== DB Master configurations Start ====
|
|
1507
1584
|
|
|
1508
1585
|
export interface IUIMakerURLQueryParams {
|
package/dist/index.html
CHANGED
|
@@ -146,5 +146,5 @@
|
|
|
146
146
|
</style>
|
|
147
147
|
</noscript>
|
|
148
148
|
|
|
149
|
-
<script src="runtime.
|
|
149
|
+
<script src="runtime.774a8bbd76c257e7.js" type="module"></script><script src="polyfills.a6d93c3e94967b29.js" type="module"></script><script src="main.e4498d2115f483ed.js" type="module"></script></body>
|
|
150
150
|
</html>
|