ethyca-fides 2.72.0rc3__py2.py3-none-any.whl → 2.72.1__py2.py3-none-any.whl
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.
Potentially problematic release.
This version of ethyca-fides might be problematic. Click here for more details.
- {ethyca_fides-2.72.0rc3.dist-info → ethyca_fides-2.72.1.dist-info}/METADATA +1 -1
- {ethyca_fides-2.72.0rc3.dist-info → ethyca_fides-2.72.1.dist-info}/RECORD +105 -105
- fides/_version.py +3 -3
- fides/api/service/connectors/saas_connector.py +5 -0
- fides/ui-build/static/admin/404.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4496-8204168bae78092d.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-31bed1f86b89d1d8.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-40b9f1f70d27b660.js +1 -0
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-4918f86f7300ac9b.js +1 -0
- fides/ui-build/static/admin/_next/static/{3mL1zLMN4VwHF2nbDbgtg → ztD2dT_flP1ql4y4ccMaM}/_buildManifest.js +1 -1
- fides/ui-build/static/admin/add-systems/manual.html +1 -1
- fides/ui-build/static/admin/add-systems/multiple.html +1 -1
- fides/ui-build/static/admin/add-systems.html +1 -1
- fides/ui-build/static/admin/consent/configure/add-vendors.html +1 -1
- fides/ui-build/static/admin/consent/configure.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-experience.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/[id].html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices/new.html +1 -1
- fides/ui-build/static/admin/consent/privacy-notices.html +1 -1
- fides/ui-build/static/admin/consent/properties.html +1 -1
- fides/ui-build/static/admin/consent/reporting.html +1 -1
- fides/ui-build/static/admin/consent.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn]/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects/[projectUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/projects.html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-catalog/[systemId]/resources.html +1 -1
- fides/ui-build/static/admin/data-catalog.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/[systemId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId]/data-explorer.html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center/[monitorId].html +1 -1
- fides/ui-build/static/admin/data-discovery/action-center.html +1 -1
- fides/ui-build/static/admin/data-discovery/activity.html +1 -1
- fides/ui-build/static/admin/data-discovery/detection/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/detection.html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery/[resourceUrn].html +1 -1
- fides/ui-build/static/admin/data-discovery/discovery.html +1 -1
- fides/ui-build/static/admin/datamap.html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName]/[...subfieldNames].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId]/[collectionName].html +1 -1
- fides/ui-build/static/admin/dataset/[datasetId].html +1 -1
- fides/ui-build/static/admin/dataset/new.html +1 -1
- fides/ui-build/static/admin/dataset.html +1 -1
- fides/ui-build/static/admin/datastore-connection/[id].html +1 -1
- fides/ui-build/static/admin/datastore-connection/new.html +1 -1
- fides/ui-build/static/admin/datastore-connection.html +1 -1
- fides/ui-build/static/admin/index.html +1 -1
- fides/ui-build/static/admin/integrations/[id].html +1 -1
- fides/ui-build/static/admin/integrations.html +1 -1
- fides/ui-build/static/admin/login/[provider].html +1 -1
- fides/ui-build/static/admin/login.html +1 -1
- fides/ui-build/static/admin/notifications/digests/[id].html +1 -1
- fides/ui-build/static/admin/notifications/digests/new.html +1 -1
- fides/ui-build/static/admin/notifications/digests.html +1 -1
- fides/ui-build/static/admin/notifications/providers/[key].html +1 -1
- fides/ui-build/static/admin/notifications/providers/new.html +1 -1
- fides/ui-build/static/admin/notifications/providers.html +1 -1
- fides/ui-build/static/admin/notifications/templates/[id].html +1 -1
- fides/ui-build/static/admin/notifications/templates/add-template.html +1 -1
- fides/ui-build/static/admin/notifications/templates.html +1 -1
- fides/ui-build/static/admin/notifications.html +1 -1
- fides/ui-build/static/admin/poc/ant-components.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/AntForm.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikAntFormItem.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikControlled.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikField.html +1 -1
- fides/ui-build/static/admin/poc/form-experiments/FormikSpreadField.html +1 -1
- fides/ui-build/static/admin/poc/forms.html +1 -1
- fides/ui-build/static/admin/poc/table-migration.html +1 -1
- fides/ui-build/static/admin/privacy-requests/[id].html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure/storage.html +1 -1
- fides/ui-build/static/admin/privacy-requests/configure.html +1 -1
- fides/ui-build/static/admin/privacy-requests.html +1 -1
- fides/ui-build/static/admin/properties/[id].html +1 -1
- fides/ui-build/static/admin/properties/add-property.html +1 -1
- fides/ui-build/static/admin/properties.html +1 -1
- fides/ui-build/static/admin/reporting/datamap.html +1 -1
- fides/ui-build/static/admin/settings/about/alpha.html +1 -1
- fides/ui-build/static/admin/settings/about.html +1 -1
- fides/ui-build/static/admin/settings/consent/[configuration_id]/[purpose_id].html +1 -1
- fides/ui-build/static/admin/settings/consent.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/[id].html +1 -1
- fides/ui-build/static/admin/settings/custom-fields/new.html +1 -1
- fides/ui-build/static/admin/settings/custom-fields.html +1 -1
- fides/ui-build/static/admin/settings/domain-records.html +1 -1
- fides/ui-build/static/admin/settings/domains.html +1 -1
- fides/ui-build/static/admin/settings/email-templates.html +1 -1
- fides/ui-build/static/admin/settings/locations.html +1 -1
- fides/ui-build/static/admin/settings/organization.html +1 -1
- fides/ui-build/static/admin/settings/privacy-requests.html +1 -1
- fides/ui-build/static/admin/settings/regulations.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id]/test-datasets.html +1 -1
- fides/ui-build/static/admin/systems/configure/[id].html +1 -1
- fides/ui-build/static/admin/systems.html +1 -1
- fides/ui-build/static/admin/taxonomy.html +1 -1
- fides/ui-build/static/admin/user-management/new.html +1 -1
- fides/ui-build/static/admin/user-management/profile/[id].html +1 -1
- fides/ui-build/static/admin/user-management.html +1 -1
- fides/ui-build/static/admin/_next/static/chunks/4496-dd1ef427be497620.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-4b5feea248275c28.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-37eb88a387fca86f.js +0 -1
- fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-74585f6d9ff1245f.js +0 -1
- {ethyca_fides-2.72.0rc3.dist-info → ethyca_fides-2.72.1.dist-info}/WHEEL +0 -0
- {ethyca_fides-2.72.0rc3.dist-info → ethyca_fides-2.72.1.dist-info}/entry_points.txt +0 -0
- {ethyca_fides-2.72.0rc3.dist-info → ethyca_fides-2.72.1.dist-info}/licenses/LICENSE +0 -0
- {ethyca_fides-2.72.0rc3.dist-info → ethyca_fides-2.72.1.dist-info}/top_level.txt +0 -0
- /fides/ui-build/static/admin/_next/static/{3mL1zLMN4VwHF2nbDbgtg → ztD2dT_flP1ql4y4ccMaM}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/de09ed8a0adf1ca2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/de09ed8a0adf1ca2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-8eac1ea5c825c8b4.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-4f697016cf2fb1bb.js" defer=""></script><script src="/_next/static/chunks/7476-08717f00da5f89ab.js" defer=""></script><script src="/_next/static/chunks/3696-e4abb6a922b954a2.js" defer=""></script><script src="/_next/static/chunks/pages/user-management/profile/%5Bid%5D-6217433a26599521.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/de09ed8a0adf1ca2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/de09ed8a0adf1ca2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-8eac1ea5c825c8b4.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-4f697016cf2fb1bb.js" defer=""></script><script src="/_next/static/chunks/7476-08717f00da5f89ab.js" defer=""></script><script src="/_next/static/chunks/3696-e4abb6a922b954a2.js" defer=""></script><script src="/_next/static/chunks/pages/user-management/profile/%5Bid%5D-6217433a26599521.js" defer=""></script><script src="/_next/static/ztD2dT_flP1ql4y4ccMaM/_buildManifest.js" defer=""></script><script src="/_next/static/ztD2dT_flP1ql4y4ccMaM/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/user-management/profile/[id]","query":{},"buildId":"ztD2dT_flP1ql4y4ccMaM","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/de09ed8a0adf1ca2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/de09ed8a0adf1ca2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-8eac1ea5c825c8b4.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-4f697016cf2fb1bb.js" defer=""></script><script src="/_next/static/chunks/7476-08717f00da5f89ab.js" defer=""></script><script src="/_next/static/chunks/pages/user-management-b6c4bf35c003965d.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link data-next-font="" rel="preconnect" href="/" crossorigin="anonymous"/><link rel="preload" href="/_next/static/css/de09ed8a0adf1ca2.css" as="style"/><link rel="stylesheet" href="/_next/static/css/de09ed8a0adf1ca2.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-8eac1ea5c825c8b4.js" defer=""></script><script src="/_next/static/chunks/framework-c92fc3344e6fd165.js" defer=""></script><script src="/_next/static/chunks/main-090643377c8254e6.js" defer=""></script><script src="/_next/static/chunks/pages/_app-4f697016cf2fb1bb.js" defer=""></script><script src="/_next/static/chunks/7476-08717f00da5f89ab.js" defer=""></script><script src="/_next/static/chunks/pages/user-management-b6c4bf35c003965d.js" defer=""></script><script src="/_next/static/ztD2dT_flP1ql4y4ccMaM/_buildManifest.js" defer=""></script><script src="/_next/static/ztD2dT_flP1ql4y4ccMaM/_ssgManifest.js" defer=""></script><style>.data-ant-cssinjs-cache-path{content:"";}</style></head><body><div id="__next"><div style="height:100%;display:flex"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/user-management","query":{},"buildId":"ztD2dT_flP1ql4y4ccMaM","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4496],{12197:function(e){var t;t=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(s,n,i){var a,l=function(e,s,n){void 0===n&&(n={});var i,a,l,r,o=new Date(e);return(void 0===(i=n)&&(i={}),(r=t[l=s+"|"+(a=i.timeZoneName||"short")])||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:s,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),t[l]=r),r).formatToParts(o)},r=function(t,s){for(var n=l(t,s),a=[],r=0;r<n.length;r+=1){var o=n[r],d=o.type,c=o.value,u=e[d];u>=0&&(a[u]=parseInt(c,10))}var m=a[3],h=a[0]+"-"+a[1]+"-"+a[2]+" "+(24===m?0:m)+":"+a[4]+":"+a[5]+":000",f=+t;return(i.utc(h).valueOf()-(f-=f%1e3))/6e4},o=n.prototype;o.tz=function(e,t){void 0===e&&(e=a);var s,n=this.utcOffset(),l=this.toDate(),r=l.toLocaleString("en-US",{timeZone:e}),o=Math.round((l-new Date(r))/1e3/60),d=-(15*Math.round(l.getTimezoneOffset()/15))-o;if(Number(d)){if(s=i(r,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(d,!0),t){var c=s.utcOffset();s=s.add(n-c,"minute")}}else s=this.utcOffset(0,t);return s.$x.$timezone=e,s},o.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),s=l(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return s&&s.value};var d=o.startOf;o.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return d.call(this,e,t);var s=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return d.call(s,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,s){var n=s&&t,l=s||t||a,o=r(+i(),l);if("string"!=typeof e)return i(e).tz(l);var d=function(e,t,s){var n=e-60*t*1e3,i=r(n,s);if(t===i)return[n,t];var a=r(n-=60*(i-t)*1e3,s);return i===a?[n,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(i.utc(e,n).valueOf(),o,l),c=d[0],u=d[1],m=i(c).utcOffset(u);return m.$x.$timezone=l,m},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}},e.exports=t()},4496:function(e,t,s){"use strict";s.d(t,{Z:function(){return w}});var n=s(24246),i=s(20595),a=s(86677),l=s(27378),r=s(812),o=s(58452),d=s(77830),c=s(19904),u=s(39449),m=s(35493),h=s(40822),f=s(54458),g=s(27693),p=s.n(g),y=s(12197),x=s.n(y),v=s(96600),j=s.n(v),D=s(81179);p().extend(j()),p().extend(x());let{Text:S}=i.AntTypography,N="09:00",_=D.eO.MONDAY,b=[{label:"Daily",value:D.Di.DAILY},{label:"Weekly",value:D.Di.WEEKLY},{label:"Weekdays",value:D.Di.WEEKDAYS},{label:"Monthly",value:D.Di.MONTHLY}];var T=e=>{let{value:t,onChange:s,onTimezoneChange:a,timezone:r}=e,[o,d]=(0,l.useState)(D.Di.WEEKLY),[c,u]=(0,l.useState)(1),[m,h]=(0,l.useState)(!1),g=p().tz.guess(),y=r||g,x=(0,l.useMemo)(()=>{let e=new Date,t=(0,f.WU)(e,"O",{timeZone:y}),s=y.split("/");return{cityName:s[s.length-1].replace(/_/g," "),gmtOffset:t}},[y]);(0,l.useEffect)(()=>{r||null==a||a(g)},[g,a,r]),(0,l.useEffect)(()=>{if(t){let e=(0,D.se)(t);e?(h(!1),d(e.frequency),void 0!==e.dayOfMonth&&u(e.dayOfMonth)):h(!0)}},[t]),(0,l.useEffect)(()=>{let e={frequency:o,time:N,...o===D.Di.WEEKLY&&{dayOfWeek:_},...o===D.Di.MONTHLY&&{dayOfMonth:c}};try{let t=(0,D.Ns)(e);null==s||s(t)}catch(e){console.error("Error generating cron expression:",e)}},[o,c,s]);let v={frequency:o,time:N,...o===D.Di.WEEKLY&&{dayOfWeek:_},...o===D.Di.MONTHLY&&{dayOfMonth:c}};return(0,n.jsxs)(i.vyj,{direction:"vertical",size:"middle",className:"w-full",children:[m&&(0,n.jsx)(i.DUx,{message:"Custom Cron Expression",description:"This digest uses a custom cron expression that cannot be edited with the picker. Changing the schedule will replace the custom expression.",type:"warning",closable:!0,onClose:()=>h(!1)}),(0,n.jsxs)("div",{children:[(0,n.jsx)(S,{strong:!0,className:"mb-1 block",children:"Frequency"}),(0,n.jsx)(i.WPr,{value:o,onChange:d,options:b,"data-testid":"select-frequency",className:"w-full",id:"select-frequency","aria-label":"Frequency"})]}),o===D.Di.MONTHLY&&(0,n.jsxs)("div",{children:[(0,n.jsx)(S,{strong:!0,className:"mb-1 block",children:"Day of Month"}),(0,n.jsx)(i.W7D,{value:c,onChange:e=>{null!==e&&(0,D.Ch)(e)&&u(e)},min:1,max:31,"data-testid":"input-day-of-month",className:"w-full"}),c>28&&(0,n.jsx)(S,{type:"secondary",className:"mt-1 block text-xs",children:"Note: Days 29-31 will not trigger in all months"})]}),(0,n.jsx)("div",{className:"rounded-md bg-gray-50 p-3",children:(0,n.jsxs)(S,{type:"secondary",className:"text-xs",children:["Schedule: ",(0,D.qV)(v)," ",x.cityName," (",x.gmtOffset,")"]})})]})},P=e=>{let{isOpen:t,onClose:s,digestConfigId:a,digestType:l}=e,[o]=i.PPS.useForm(),[d,c]=i.Pg3.useMessage(),[u,{isLoading:m}]=(0,h.ch)(),f=async e=>{let t=await u({digest_config_id:a,digest_config_type:l,test_email:e.email});if((0,r.D4)(t)){d.error((0,r.e$)(t.error));return}d.success("Test email sent to ".concat(e.email)),o.resetFields(),s()},g=()=>{o.resetFields(),s()};return(0,n.jsxs)(i.$zI,{title:"Send Test Email",open:t,onCancel:g,footer:null,destroyOnClose:!0,children:[c,(0,n.jsxs)(i.PPS,{form:o,layout:"vertical",onFinish:f,initialValues:{email:""},children:[(0,n.jsx)(i.PPS.Item,{label:"Email Address",name:"email",rules:[{required:!0,message:"Please enter an email address"},{type:"email",message:"Please enter a valid email address"}],children:(0,n.jsx)(i.AntInput,{type:"email",placeholder:"user@example.com","data-testid":"test-email-input"})}),(0,n.jsx)(i.PPS.Item,{children:(0,n.jsxs)(i.vyj,{className:"w-full justify-end",children:[(0,n.jsx)(i.wpx,{onClick:g,"data-testid":"cancel-test-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:m,"data-testid":"send-test-btn",children:"Send Test"})]})})]})]})},w=e=>{let{initialValues:t,isLoading:s}=e,[f]=i.PPS.useForm(),g=(0,a.useRouter)(),[p,y]=i.Pg3.useMessage(),[x,v]=(0,l.useState)(!1),[j,D]=(0,l.useState)(!1),[S,N]=(0,l.useState)((null==t?void 0:t.timezone)||m.EW),[_,{isLoading:b}]=(0,h.m1)(),[w,{isLoading:A}]=(0,h.zb)(),[M]=(0,h.yG)(),O=!!(null==t?void 0:t.id),C=(0,c.Tg)([u.Sh.DIGEST_CONFIG_DELETE])&&O,E=async()=>{let e=await M({config_id:null==t?void 0:t.id,digest_config_type:u.tB.MANUAL_TASKS});if((0,r.D4)(e)){p.error((0,r.e$)(e.error)),D(!1);return}p.success("Digest configuration deleted successfully",void 0,()=>{g.push(d.DN)})},L=async e=>{var s;let{id:n,...i}=e,a={...i,messaging_service_type:i.messaging_service_type||u.qr.EMAIL,enabled:null===(s=null==t?void 0:t.enabled)||void 0===s||s,timezone:S};if(O&&n){let e=await w({config_id:n,digest_config_type:u.tB.MANUAL_TASKS,data:a});if((0,r.D4)(e)){p.error((0,r.e$)(e.error));return}p.success({content:"Digest configuration updated successfully",duration:3}),setTimeout(()=>{g.push(d.DN)},500)}else{let e=await _({digest_config_type:u.tB.MANUAL_TASKS,data:a});if((0,r.D4)(e)){p.error((0,r.e$)(e.error));return}p.success({content:"Digest configuration created successfully",duration:3}),setTimeout(()=>{g.push(d.DN)},500)}},z=t||{name:"",digest_type:u.tB.MANUAL_TASKS,messaging_service_type:u.qr.EMAIL,cron_expression:m.by,timezone:m.EW,config_metadata:null};return s?(0,n.jsx)("div",{children:"Loading..."}):(0,n.jsxs)(n.Fragment,{children:[y,(0,n.jsxs)(i.PPS,{form:f,layout:"vertical",initialValues:z,onFinish:L,className:"max-w-2xl",children:[(0,n.jsx)(i.PPS.Item,{label:"Digest Type",name:"digest_type",tooltip:"Type of content this digest will contain",children:(0,n.jsx)(i.WPr,{disabled:!0,options:[{label:"Manual Tasks",value:u.tB.MANUAL_TASKS}],"data-testid":"select-digest-type","aria-label":"Digest Type"})}),(0,n.jsx)(i.PPS.Item,{label:"Name",name:"name",rules:[{required:!0,message:"Please enter a name"}],tooltip:"A descriptive name for this digest configuration",children:(0,n.jsx)(i.AntInput,{"data-testid":"input-name",placeholder:"e.g., Weekly Manual Tasks Summary"})}),(0,n.jsx)(i.PPS.Item,{name:"id",hidden:!0,children:(0,n.jsx)(i.AntInput,{})}),(0,n.jsx)(i.PPS.Item,{name:"messaging_service_type",hidden:!0,children:(0,n.jsx)(i.AntInput,{})}),(0,n.jsx)(i.PPS.Item,{name:"cron_expression",rules:[{required:!0,message:"Please configure a schedule"}],tooltip:"Configure when the digest should be sent",children:(0,n.jsx)(T,{onTimezoneChange:N,timezone:null==t?void 0:t.timezone})}),(0,n.jsx)(i.PPS.Item,{children:(0,n.jsxs)(i.vyj,{className:"w-full justify-between",children:[(0,n.jsxs)(i.vyj,{children:[O&&(0,n.jsx)(i.wpx,{onClick:()=>v(!0),"data-testid":"test-email-btn",children:"Send test"}),C&&(0,n.jsx)(i.wpx,{danger:!0,onClick:()=>{D(!0)},"data-testid":"delete-btn",children:"Delete"})]}),(0,n.jsxs)(i.vyj,{children:[(0,n.jsx)(i.wpx,{onClick:()=>g.push(d.DN),"data-testid":"cancel-btn",children:"Cancel"}),(0,n.jsx)(i.wpx,{type:"primary",htmlType:"submit",loading:b||A,"data-testid":"submit-btn",children:O?"Update":"Create"})]})]})})]}),O&&(null==t?void 0:t.id)&&(0,n.jsx)(P,{isOpen:x,onClose:()=>v(!1),digestConfigId:t.id,digestType:u.tB.MANUAL_TASKS}),(0,n.jsx)(o.Z,{isOpen:j,onClose:()=>{D(!1)},onConfirm:E,title:"Delete digest configuration",message:(0,n.jsxs)("span",{className:"text-gray-500",children:['Are you sure you want to delete the digest "',null==t?void 0:t.name,'"? This action cannot be undone.']}),continueButtonText:"Delete",isCentered:!0,icon:(0,n.jsx)(i.aNP,{})})]})}}}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/notifications/digests-4b5feea248275c28.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7984],{69453:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/digests",function(){return s(80181)}])},129:function(e,t,s){"use strict";var i=s(24246),n=s(20595),a=s(86677),r=s(16134),l=s(25980),d=s(77830),c=s(39449),o=s(31793);t.Z=()=>{let e=(0,a.useRouter)(),t=e.pathname,{plus:s}=(0,l.hz)(),u="providers";t.startsWith(d.AD)?u="providers":t.startsWith(d.Wi)?u="templates":t.startsWith(d.DN)&&(u="digests");let h=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[c.Sh.MESSAGING_TEMPLATE_UPDATE],path:d.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[c.Sh.DIGEST_CONFIG_READ],path:d.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[c.Sh.MESSAGING_CREATE_OR_UPDATE],path:d.AD}];s||(h=h.filter(e=>!e.requiresPlus));let p=(0,r.C)(o.uu);h=h.filter(e=>e.scopes.some(e=>p.includes(e)));let g=t=>{let s=h.find(e=>e.key===t);s&&e.push(s.path)};return(0,i.jsx)("div",{className:"mb-6",children:(0,i.jsx)(n.Niu,{mode:"horizontal",selectedKeys:[u],onClick:e=>{let{key:t}=e;return g(t)},items:h})})}},80181:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return E}});var i=s(24246),n=s(20595),a=s(77213),r=s(129),l=s(58754),d=s(86677),c=s(812),o=s(77830),u=s(19904),h=s(39449),p=s(35493),g=s(40822),_=s(81179),x=s(27378);let m=()=>{var e;let t=(0,d.useRouter)(),[s,i]=(0,x.useState)(""),[n,a]=(0,x.useState)(1),[r,l]=(0,x.useState)(50),c=h.tB.MANUAL_TASKS,p=(0,u.Tg)([h.Sh.DIGEST_CONFIG_CREATE,h.Sh.DIGEST_CONFIG_UPDATE]),_=(0,u.Tg)([h.Sh.DIGEST_CONFIG_DELETE]),{data:m,isLoading:j,refetch:y}=(0,g.Q6)({digest_config_type:c,page:n,size:r}),[E,{isLoading:f}]=(0,g.yG)(),[S,T]=(0,x.useState)(!1),[v,C]=(0,x.useState)(null),N=(0,x.useMemo)(()=>{if(!(null==m?void 0:m.items))return[];if(!s)return m.items;let e=s.toLowerCase();return m.items.filter(t=>{var s;return t.name.toLowerCase().includes(e)||(null===(s=t.description)||void 0===s?void 0:s.toLowerCase().includes(e))})},[null==m?void 0:m.items,s]),A=async()=>{v&&(await E({config_id:v.id,digest_config_type:c}),T(!1),C(null),y())};return{data:N,total:null!==(e=null==m?void 0:m.total)&&void 0!==e?e:0,isLoading:j,page:n,pageSize:r,searchQuery:s,setPage:a,setPageSize:l,setSearchQuery:i,refetch:y,handleEdit:e=>{t.push(o.xn.replace("[id]",e.id))},handleDeleteClick:e=>{C(e),T(!0)},deleteModalOpen:S,configToDelete:v,confirmDelete:A,cancelDelete:()=>{T(!1),C(null)},isDeleting:f,canUpdate:p,canDelete:_}},{Search:j}=n.AntInput;var y=()=>{let e=(0,d.useRouter)(),[t,s]=n.Pg3.useMessage(),{data:a,total:r,isLoading:l,page:x,pageSize:y,searchQuery:E,setPage:f,setPageSize:S,setSearchQuery:T,handleEdit:v,canUpdate:C}=m(),[N]=(0,g.zb)(),A=(0,u.Tg)([h.Sh.DIGEST_CONFIG_CREATE]),w=async e=>{let s=await N({config_id:e.id,digest_config_type:h.tB.MANUAL_TASKS,data:{name:e.name,description:e.description,digest_type:e.digest_type,enabled:!e.enabled,messaging_service_type:e.messaging_service_type,cron_expression:e.cron_expression,timezone:e.timezone,config_metadata:e.config_metadata}});if((0,c.D4)(s)){t.error((0,c.e$)(s.error));return}t.success('Digest "'.concat(e.name,'" ').concat(e.enabled?"disabled":"enabled"," successfully"))};return(0,i.jsxs)("div",{children:[s,(0,i.jsxs)(n.jqI,{justify:"space-between",align:"center",className:"mb-4",children:[(0,i.jsx)("div",{className:"w-1/3",children:(0,i.jsx)(j,{placeholder:"Search digests...",allowClear:!0,value:E,onChange:e=>T(e.target.value),"data-testid":"search-input"})}),A&&(0,i.jsx)(n.wpx,{type:"primary",onClick:()=>{e.push(o.dx)},"data-testid":"add-digest-btn",children:"Create digest"})]}),(0,i.jsx)(n.krs,{loading:l,itemLayout:"horizontal",dataSource:a,locale:{emptyText:(0,i.jsx)("div",{className:"px-4 py-8 text-center",children:(0,i.jsxs)(n.AntTypography.Paragraph,{type:"secondary",children:["No digest configurations yet. ",(0,i.jsx)("br",{}),(0,i.jsx)(u.ZP,{scopes:[h.Sh.DIGEST_CONFIG_CREATE],children:'Click "Create digest" to get started.'})]})})},renderItem:e=>(0,i.jsxs)(n.krs.Item,{actions:C?[(0,i.jsx)(n.wpx,{type:"link",onClick:()=>v(e),"data-testid":"edit-list-btn",className:"px-1",children:"Edit"},"edit")]:[],children:[(0,i.jsx)(n.krs.Item.Meta,{title:e.name,description:(0,i.jsx)(n.vyj,{direction:"vertical",size:4,children:(0,i.jsxs)(n.vyj,{size:4,children:[(0,i.jsx)(n.j8w,{children:p.Um[e.digest_type]}),(0,i.jsx)(n.j8w,{children:p.oU[e.messaging_service_type]})]})})}),(0,i.jsxs)(n.jqI,{align:"center",gap:24,children:[(0,i.jsx)(n.AntTypography.Text,{children:(0,_.uw)(e.cron_expression)}),C&&(0,i.jsx)(n.rAg,{checked:e.enabled,onChange:()=>w(e),size:"small","data-testid":"toggle-enabled-switch"})]})]},e.id)}),r>y&&(0,i.jsx)(n.jqI,{justify:"end",className:"mt-4",children:(0,i.jsx)(n.B7X,{current:x,total:r,pageSize:y,onChange:(e,t)=>{f(e),t!==y&&S(t)},showSizeChanger:!0,showTotal:e=>"Total ".concat(e," items")})})]})},E=()=>(0,i.jsx)(a.Z,{title:"Notifications",children:(0,i.jsxs)(n.xuv,{"data-testid":"digests-management",children:[(0,i.jsx)(l.Z,{heading:"Notifications"}),(0,i.jsx)(r.Z,{}),(0,i.jsx)(n.xuv,{maxWidth:"1200px",children:(0,i.jsx)(y,{})})]})})}},function(e){e.O(0,[8212,2888,9774,179],function(){return e(e.s=69453)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/notifications/providers-37eb88a387fca86f.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1537],{30890:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/providers",function(){return i(66605)}])},77213:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(24246),s=i(20595),a=i(88038),r=i.n(a),l=i(86677);i(27378);var o=i(25980),d=i(90867),c=i(42478),u=i(77830),g=()=>{let e=(0,l.useRouter)();return(0,n.jsx)(s.xuv,{bg:"gray.50",border:"1px solid",borderColor:"blue.400",borderRadius:"md",justifyContent:"space-between",p:5,mb:5,mt:5,children:(0,n.jsxs)(s.xuv,{children:[(0,n.jsxs)(s.Kqy,{direction:{base:"column",sm:"row"},justifyContent:"space-between",children:[(0,n.jsx)(s.xvT,{fontWeight:"semibold",children:"Configure your storage and messaging provider"}),(0,n.jsx)(s.wpx,{onClick:()=>{e.push(u.AD)},children:"Configure"})]}),(0,n.jsxs)(s.xvT,{children:["Before Fides can process your privacy requests we need two simple steps to configure your storage and email client."," "]})]})})},p=e=>{let{children:t,title:i,padded:a=!0,mainProps:u}=e,p=(0,o.hz)(),f=(0,l.useRouter)(),h="/privacy-requests"===f.pathname||"/datastore-connection"===f.pathname,m=!(p.flags.messagingConfiguration&&h),{data:x}=(0,c.JE)(void 0,{skip:m}),{data:v}=(0,d.PW)(void 0,{skip:m}),y=p.flags.messagingConfiguration&&(!x||!v)&&h;return(0,n.jsxs)(s.kCb,{"data-testid":i,direction:"column",h:"100vh",children:[(0,n.jsxs)(r(),{children:[(0,n.jsxs)("title",{children:["Fides Admin UI - ",i]}),(0,n.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,n.jsxs)(s.kCb,{as:"main",direction:"column",py:a?6:0,px:a?10:0,h:a?"calc(100% - 48px)":"full",flex:1,minWidth:0,overflow:"auto",...u,children:[y?(0,n.jsx)(g,{}):null,t]})]})}},129:function(e,t,i){"use strict";var n=i(24246),s=i(20595),a=i(86677),r=i(16134),l=i(25980),o=i(77830),d=i(39449),c=i(31793);t.Z=()=>{let e=(0,a.useRouter)(),t=e.pathname,{plus:i}=(0,l.hz)(),u="providers";t.startsWith(o.AD)?u="providers":t.startsWith(o.Wi)?u="templates":t.startsWith(o.DN)&&(u="digests");let g=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[d.Sh.MESSAGING_TEMPLATE_UPDATE],path:o.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[d.Sh.DIGEST_CONFIG_READ],path:o.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[d.Sh.MESSAGING_CREATE_OR_UPDATE],path:o.AD}];i||(g=g.filter(e=>!e.requiresPlus));let p=(0,r.C)(c.uu);g=g.filter(e=>e.scopes.some(e=>p.includes(e)));let f=t=>{let i=g.find(e=>e.key===t);i&&e.push(i.path)};return(0,n.jsx)("div",{className:"mb-6",children:(0,n.jsx)(s.Niu,{mode:"horizontal",selectedKeys:[u],onClick:e=>{let{key:t}=e;return f(t)},items:g})})}},58754:function(e,t,i){"use strict";var n=i(24246),s=i(20595),a=i(70788);t.Z=e=>{let{heading:t,breadcrumbItems:i,isSticky:r=!0,children:l,rightContent:o,style:d,...c}=e;return(0,n.jsxs)("div",{...c,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...d}:{paddingBottom:"24px",...d},children:[(0,n.jsxs)(s.jqI,{justify:"space-between",children:["string"==typeof t?(0,n.jsx)(s.lQT,{className:i||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,n.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!i&&(0,n.jsx)(a.m,{className:l?"pb-4":void 0,items:i,"data-testid":"page-breadcrumb"}),l]})}},19904:function(e,t,i){"use strict";i.d(t,{Tg:function(){return r}});var n=i(24246),s=i(16134),a=i(31793);let r=e=>(0,s.C)(a.uu).filter(t=>e.includes(t)).length>0;t.ZP=e=>{let{scopes:t,children:i}=e;return r(t)?(0,n.jsx)(n.Fragment,{children:i}):null}},70788:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(24246),s=i(20595),a=i(79894),r=i.n(a),l=i(27378);let{Text:o}=s.AntTypography,d=e=>{let{items:t,...i}=e,a=(0,l.useMemo)(()=>null==t?void 0:t.map((e,i)=>{let a=i===t.length-1,l={...e},d=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,n.jsx)(o,{style:{color:"inherit",maxWidth:a?void 0:400},ellipsis:!a,id:a?"breadcrumb-current-page":void 0,children:l.title})),d)?l.title=(0,n.jsx)(s.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,n.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,n.jsx)(s.zrq,{items:a,...i})}},8125:function(e,t,i){"use strict";i.d(t,{V:function(){return a},o:function(){return d}});var n=i(27378),s=i(32735);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{enableSelection:i=!1,getRowKey:a,bulkActions:r,isLoading:l=!1,isFetching:o=!1,dataSource:d=[],totalRows:c=0,currentPage:u,pageSize:g,customTableProps:p={}}=t,f=(0,n.useCallback)(e=>{if(e&&"object"==typeof e){if(e.id)return String(e.id);if(e.key)return String(e.key)}return String(e)},[]),h=a||f,[m,x]=(0,n.useState)([]),[v,y]=(0,n.useState)([]),j=(0,n.useCallback)(()=>{x([]),y([])},[]),C=(0,n.useMemo)(()=>({selectedRowKeys:m,selectedRows:v,resetSelections:j}),[m,v,j]),b=(0,n.useMemo)(()=>{if(i)return{selectedRowKeys:m,onChange:(e,t)=>{x(e),y(t)}}},[i,m]),S=(0,n.useCallback)((t,i,n)=>{var s,a;let r=null!==(s=t.current)&&void 0!==s?s:e.pageIndex,l=null!==(a=t.pageSize)&&void 0!==a?a:e.pageSize,o=r!==e.pageIndex||l!==e.pageSize;o?(t.current&&t.current!==e.pageIndex&&e.updatePageIndex(t.current),t.pageSize&&t.pageSize!==e.pageSize&&e.updatePageSize(t.pageSize)):e.updateFilters(i||{});let d=n&&!Array.isArray(n)?n.field:void 0,c=n&&!Array.isArray(n)&&null!==n.order?n.order:void 0;o||e.updateSorting(d,c)},[e]),w=(0,n.useMemo)(()=>{var t,i,n,a,r;return{current:null!=u?u:e.pageIndex,pageSize:null!=g?g:e.pageSize,total:c,showSizeChanger:null===(a=null===(t=e.paginationConfig)||void 0===t?void 0:t.showSizeChanger)||void 0===a||a,pageSizeOptions:null!==(r=null===(n=e.paginationConfig)||void 0===n?void 0:null===(i=n.pageSizeOptions)||void 0===i?void 0:i.map(String))&&void 0!==r?r:s.VZ}},[u,e.pageIndex,g,e.pageSize,c,e.paginationConfig]),k=(0,n.useMemo)(()=>({dataSource:d,loading:l||o,pagination:w,onChange:S,rowKey:h,scroll:{x:"max-content",scrollToFirstRowOnChange:!0},size:"small",bordered:!0,...p}),[d,l,o,w,S,h,p]),_=m.map(String),T=v.length>0,z=(0,n.useCallback)(e=>{let t=null==r?void 0:r.actions.find(t=>t.key===e);return t?{disabled:!T||!!t.disabled&&t.disabled(v),loading:t.loading||!1,onClick:()=>t.onClick(v)}:{disabled:!0,loading:!1}},[r,T,v]);return(0,n.useMemo)(()=>({tableProps:k,selectionProps:b,selectionState:C,selectedRows:v,selectedKeys:_,hasSelectedRows:T,resetSelections:j,getBulkActionProps:z,isLoadingOrFetching:l||o,hasData:d.length>0}),[k,b,C,v,_,T,j,z,l,o,d.length])};var r=i(40431),l=i(17245);let o=()=>({filters:(0,r.WJ)(e=>e).withDefault({})}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{pagination:t={},sorting:i={},search:s={},onStateChange:a,disableUrlState:d=!1}=e,{pageIndex:c,pageSize:u,resetPagination:g,updatePageIndex:p,updatePageSize:f,pageSizeOptions:h,showSizeChanger:m}=(0,l.h0)({...t,disableUrlState:d}),{sortKey:x,sortOrder:v,updateSorting:y,resetSorting:j}=(0,l.rK)({...i,disableUrlState:d}),{searchQuery:C,updateSearch:b,resetSearch:S}=(0,l.Rx)({...s,disableUrlState:d}),[w,k]=(0,n.useState)({}),_=(0,n.useMemo)(()=>d?null:o(),[d]),[T,z]=(0,r.XI)(null!=_?_:{},{history:"push"}),M=(0,n.useMemo)(()=>{var e;return{pageIndex:c,pageSize:u,sortKey:x,sortOrder:v,columnFilters:d?w:null!==(e=T.filters)&&void 0!==e?e:{},searchQuery:C}},[d,w,T,c,u,x,v,C]),E=(0,n.useCallback)((e,t)=>{y(e,t),g()},[y,g]),P=(0,n.useCallback)(e=>{if(d)k(e);else{let t=Object.fromEntries(Object.entries(e).filter(e=>{let[,t]=e;return null!=t}));z({filters:Object.keys(t).length>0?t:null})}g()},[d,z,g]),A=(0,n.useCallback)(e=>{b(e),g()},[b,g]),q=(0,n.useCallback)(()=>{d?k({}):z({filters:null}),g(),j(),S()},[d,z,g,j,S]);return(0,n.useEffect)(()=>{a&&a(M)},[M,a]),{state:M,pageIndex:M.pageIndex,pageSize:M.pageSize,updatePageIndex:p,updatePageSize:f,sortKey:M.sortKey,sortOrder:M.sortOrder,updateSorting:E,columnFilters:M.columnFilters,updateFilters:P,searchQuery:M.searchQuery,updateSearch:A,resetState:q,paginationConfig:{pageSizeOptions:h,showSizeChanger:m}}}},17828:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 74.375 85",width:"20",height:"20",fill:"#fff",fillRule:"evenodd",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("use",{xlinkHref:"#A",x:"2.188",y:"2.5"}),(0,n.jsx)("symbol",{id:"A",overflow:"visible",children:(0,n.jsxs)("g",{stroke:"none",children:[(0,n.jsx)("path",{d:"M16.558 12.75L0 38.591l16.558 25.841 13.227-3.324.654-44.869-13.881-3.489z",fill:"#876929"}),(0,n.jsx)("path",{d:"M35.049 59.786l-18.491 4.645V12.75l18.491 4.645v42.391z",fill:"#d9a741"}),(0,n.jsxs)("g",{fill:"#876929",children:[(0,n.jsx)("path",{d:"M32.849 21.614L35.05 80 70 62.867l-.01-43.615-8.914 1.448-28.228.913z"}),(0,n.jsx)("path",{d:"M46.184 33.149l10.906-.632 10.778-19.164L40.612 0 30.439 4.364l15.745 28.785z"})]}),(0,n.jsx)("path",{d:"M40.612 0l27.256 13.353-10.778 19.164L40.612 0z",fill:"#d9a741"}),(0,n.jsx)("path",{d:"M35.049 5.539L57.09 44.742l3.788 22.595L35.049 80l-10.46-5.131V9.64l10.45-4.101h.01z",fill:"#876929"}),(0,n.jsx)("path",{d:"M69.991 19.251L70 62.867 35.05 80V5.539l22.041 39.203 12.899-25.491z",fill:"#d9a741"})]})})]})},44907:function(e,t,i){"use strict";var n=i(24246);i(27378),t.Z=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",preserveAspectRatio:"xMidYMid",viewBox:"-0.5 0 257 257",children:(0,n.jsx)("path",{fill:"#C02428",d:"M128.418 80.526c-26.51 0-48.884 21.475-48.884 48.728a48.197 48.197 0 0014.187 34.579 48.532 48.532 0 0034.697 14.14c26.511 0 48.875-21.476 48.875-48.719 0-27.253-22.364-48.728-48.875-48.728zm-76.22 47.895c0-41.285 33.968-75.138 75.395-75.138 41.417 0 75.385 33.853 75.385 75.138 0 2.478 0 5.788-.825 8.266-.835 7.422 4.972 13.2 12.43 13.2 12.43 0 14.08-15.678 14.08-21.466 0-55.328-45.573-100.746-101.07-100.746-55.518 0-101.07 45.418-101.07 100.746 0 55.339 45.552 100.747 101.07 100.747 29.822 0 56.333-12.388 74.56-33.03l20.703 17.342c-22.364 26.43-57.158 42.952-94.448 42.952-34.097.105-66.827-13.35-90.932-37.384C13.37 195.016-.118 162.392 0 128.411 0 58.228 57.159.432 128.418.432 198.832.432 256 58.238 256 128.432c0 28.075-13.256 51.205-40.591 51.205-11.605 0-19.053-5.787-23.2-11.565-13.255 21.476-37.29 35.508-64.626 35.508-20.017.068-39.234-7.827-53.388-21.933a74.755 74.755 0 01-22.008-53.205l.01-.02zm76.21-22.297c12.43 0 22.374 9.91 22.374 22.297 0 12.388-9.944 22.298-22.364 22.298a22.322 22.322 0 01-15.848-6.504 22.169 22.169 0 01-6.526-15.794c0-12.387 9.944-22.297 22.374-22.297h-.01z"})})},5144:function(e,t,i){"use strict";var n=i(24246);t.Z=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 256",children:(0,n.jsx)("path",{fill:"#F12E45",d:"M128 0c70.656 0 128 57.344 128 128s-57.344 128-128 128S0 198.656 0 128 57.344 0 128 0zm0 33.792c-52.224 0-94.208 41.984-94.208 94.208S75.776 222.208 128 222.208s94.208-41.984 94.208-94.208S180.224 33.792 128 33.792zm31.744 99.328c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm-63.488 0c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm63.488-63.488c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624zm-63.488 0c14.704 0 26.624 11.92 26.624 26.624 0 14.704-11.92 26.624-26.624 26.624-14.704 0-26.624-11.92-26.624-26.624 0-14.704 11.92-26.624 26.624-26.624z"})})},42478:function(e,t,i){"use strict";i.d(t,{FU:function(){return d},JE:function(){return s},Ki:function(){return u},SU:function(){return g},W:function(){return p},h9:function(){return a},jc:function(){return n},qt:function(){return o},sn:function(){return c}});let{useGetEmailInviteStatusQuery:n,useGetActiveMessagingProviderQuery:s,useCreateMessagingConfigurationMutation:a,useCreateMessagingConfigurationSecretsMutation:r,useGetMessagingConfigurationDetailsQuery:l,useGetMessagingConfigurationsQuery:o,useGetMessagingConfigurationByKeyQuery:d,useUpdateMessagingConfigurationByKeyMutation:c,useUpdateMessagingConfigurationSecretsByKeyMutation:u,useCreateTestConnectionMessageMutation:g,useDeleteMessagingConfigurationByKeyMutation:p}=i(78780).u.injectEndpoints({endpoints:e=>({getEmailInviteStatus:e.query({query:()=>({url:"/messaging/email-invite/status"}),providesTags:()=>["Email Invite Status"]}),createMessagingConfiguration:e.mutation({query:e=>({url:"messaging/config",method:"POST",body:e}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getActiveMessagingProvider:e.query({queryFn:async(e,t,i,n)=>{let s=await n({url:"messaging/default/active"});return s.error&&404===s.error.status?{data:null}:s},providesTags:["Messaging Config"]}),createMessagingConfigurationSecrets:e.mutation({query:e=>({url:"messaging/default/".concat(e.service_type,"/secret"),method:"PUT",body:e.details}),invalidatesTags:["Messaging Config","Configuration Settings"]}),getMessagingConfigurationDetails:e.query({query:e=>({url:"messaging/default/".concat(e.type)}),providesTags:["Messaging Config"]}),getMessagingConfigurations:e.query({query:()=>({url:"messaging/config"}),providesTags:["Messaging Config"]}),getMessagingConfigurationByKey:e.query({query:e=>({url:"messaging/config/".concat(e.key)}),providesTags:["Messaging Config"]}),createTestConnectionMessage:e.mutation({query:e=>({url:"messaging/test/".concat(e.service_type),method:"POST",body:e.details}),invalidatesTags:["Messaging Config"]}),updateMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"PATCH",body:e.config}),invalidatesTags:["Messaging Config","Configuration Settings"]}),updateMessagingConfigurationSecretsByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key,"/secret"),method:"PUT",body:e.secrets}),invalidatesTags:["Messaging Config","Configuration Settings"]}),deleteMessagingConfigurationByKey:e.mutation({query:e=>({url:"messaging/config/".concat(e.key),method:"DELETE"}),invalidatesTags:["Messaging Config","Configuration Settings"]})})})},66605:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return E}});var n,s,a=i(24246),r=i(77213),l=i(129),o=i(58754),d=i(19904),c=i(20595),u=i(86677),g=i(77830),p=i(47935),f=i(812),h=i(17245),m=i(27378),x=i(8125),v=i(7426),y=i(39449),j=i(17828),C=i(44907),b=i(5144),S=i(42478),w=i(51980),k=i(16394),_=e=>{let{messagingConfig:t}=e,{last_test_succeeded:i,last_test_timestamp:n}=t;if(!n)return(0,a.jsx)(c.j8w,{children:"Verify configuration"});let s=new Date(n),r=(0,k.p6)(s),l=(0,w.B)(s,new Date,{addSuffix:!0});return(0,a.jsx)(c.esZ,{title:"Last verified: ".concat(r),children:(0,a.jsxs)(c.j8w,{color:i?"success":"error","data-testid":i?"test-success":"test-error",children:[i?"Succeeded":"Failed"," ",l]})})};(n=s||(s={})).NAME="name",n.VERIFICATION_STATUS="verification_status",n.ENABLED="enabled",n.ACTIONS="actions";let T=()=>{let e=(0,u.useRouter)(),{handleError:t}=(0,h.HK)(),[i,n]=(0,m.useState)(null),[r]=(0,v.L)(),[l]=(0,S.W)(),o=(0,d.Tg)([y.Sh.MESSAGING_CREATE_OR_UPDATE]),[p,w]=(0,m.useState)(!1),[k,T]=(0,m.useState)(null),z=(0,x.o)({pagination:{defaultPageSize:25,pageSizeOptions:[25,50,100]},sorting:{validColumns:Object.values(s),defaultSortKey:"name",defaultSortOrder:"ascend"}}),{data:M,isLoading:E}=(0,S.JE)(),{data:P,isLoading:A}=(0,S.qt)();(0,m.useEffect)(()=>{M?n(M.service_type):n(null)},[M]);let q=(0,m.useCallback)(async e=>{try{let i=await r({notifications:{notification_service_type:e}});(0,f.D4)(i)?t(i.error):(n(e),c.Pg3.success(e?"Updated active messaging config":"Disabled active messaging config"))}catch(e){t(e)}},[r,t,n]),I=(0,m.useCallback)(t=>{var i,n;let s=g.GE.replace("[key]",t.key);e.push({pathname:s,query:{last_test_succeeded:null!==(i=t.last_test_succeeded)&&void 0!==i?i:"",last_test_timestamp:null!==(n=t.last_test_timestamp)&&void 0!==n?n:""}})},[e]),N=(0,m.useCallback)((e,t)=>{T({key:e,name:t}),w(!0)},[]),D=(0,m.useCallback)(async()=>{if(k)try{let e=await l({key:k.key});(0,f.D4)(e)?t(e.error):c.Pg3.success("Messaging configuration successfully deleted")}catch(e){t(e)}finally{w(!1),T(null)}},[k,l,t]),R=(0,m.useCallback)(()=>{w(!1),T(null)},[]),O=(0,m.useMemo)(()=>({enableSelection:!1,getRowKey:e=>e.key,isLoading:A||E,dataSource:(null==P?void 0:P.items)||[],totalRows:(null==P?void 0:P.total)||0,customTableProps:{size:"small",pagination:{hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["25","50","100"]}}}),[A,E,null==P?void 0:P.items,null==P?void 0:P.total]),L=(0,x.V)(z,O),F=(0,m.useMemo)(()=>[{title:"Provider type",dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsxs)(c.Ugi,{children:[(()=>{switch(t.service_type){case"mailgun":return(0,a.jsx)(C.Z,{});case"twilio_text":case"twilio_email":default:return(0,a.jsx)(b.Z,{});case"aws_ses":return(0,a.jsx)(j.Z,{})}})(),(0,a.jsx)(c.xvT,{children:e})]})},{title:"Verification status",key:"verification_status",render:(e,t)=>(0,a.jsx)(_,{messagingConfig:t})},{title:"Enabled",key:"enabled",width:100,render:(e,t)=>{let n=t.service_type===i,s=!!t.last_test_timestamp&&""!==t.last_test_timestamp&&!1===t.last_test_succeeded&&!n,r=(0,a.jsx)(c.rAg,{checked:n,disabled:s,onChange:e=>{e?q(t.service_type):q(null)}});return s?(0,a.jsx)(c.esZ,{title:"This provider cannot be enabled because its last test failed. Please fix the configuration and test again.",children:r}):r}},{title:"Actions",key:"actions",render:(e,t)=>(0,a.jsxs)(c.Ugi,{children:[o&&(0,a.jsx)(c.wpx,{onClick:e=>{e.stopPropagation(),I(t)},size:"small",icon:(0,a.jsx)(c.PJP.I8b,{}),title:"Edit","aria-label":"Edit messaging configuration","data-testid":"edit-messaging-config-btn"}),o&&(0,a.jsx)(c.wpx,{onClick:e=>{e.stopPropagation(),N(t.key,t.name)},size:"small",icon:(0,a.jsx)(c.PJP.ZNm,{}),title:"Delete","aria-label":"Delete messaging configuration","data-testid":"delete-messaging-config-btn"})]})}],[o,i,I,N,q]),Z=(0,m.useMemo)(()=>(0,a.jsx)(c.$zI,{title:"Delete messaging configuration",open:p,onCancel:R,footer:[(0,a.jsx)(c.wpx,{onClick:R,children:"Cancel"},"cancel"),(0,a.jsx)(c.wpx,{type:"primary",danger:!0,onClick:D,children:"Delete"},"delete")],children:(0,a.jsxs)(c.vyj,{direction:"vertical",children:[(0,a.jsxs)(c.xvT,{children:['Are you sure you want to delete "',(0,a.jsx)("strong",{children:null==k?void 0:k.name}),'" messaging configuration?']}),(0,a.jsx)(c.xvT,{children:"This action cannot be undone."})]})}),[p,null==k?void 0:k.name,R,D]);return{columns:F,tableProps:L.tableProps,selectionProps:L.selectionProps,userCanUpdate:o,isLoading:A||E,deleteModal:Z,handleEditConfiguration:I,handleDeleteConfiguration:N,setActiveServiceType:q}},z=()=>(0,a.jsx)(c.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",children:(0,a.jsxs)(c.gCW,{children:[(0,a.jsx)(c.xvT,{fontSize:"md",fontWeight:"600",children:"No messaging providers found."}),(0,a.jsx)(c.xvT,{fontSize:"sm",children:'Click "Add a messaging provider" to add your first messaging provider to Fides.'})]})}),M=()=>{let{columns:e,tableProps:t,userCanUpdate:i,isLoading:n,deleteModal:s}=T(),r=(0,u.useRouter)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c.xvT,{fontSize:"sm",mb:8,width:{base:"100%",lg:"70%"},children:["Fides requires a messaging provider for sending processing notices to privacy request subjects, and allows for Subject Identity Verification in privacy requests. Please follow the"," ",(0,a.jsx)(c.xvT,{as:"span",color:"complimentary.500",children:"documentation"})," ","to setup a messaging service that Fides supports. Ensure you have completed the setup for the preferred messaging provider and have the details handy prior to the following steps."]}),(0,a.jsxs)(c.kCb,{flex:1,direction:"column",overflow:"auto",children:[i&&(0,a.jsx)(c.vyj,{direction:"horizontal",style:{width:"100%",justifyContent:"flex-end",marginBottom:16},children:(0,a.jsx)(c.wpx,{onClick:()=>{r.push(g.Nu)},role:"link",type:"primary",icon:(0,a.jsx)(c.PJP.mm_,{}),iconPosition:"end","data-testid":"add-messaging-provider-btn",children:"Add a messaging provider"})}),n?(0,a.jsx)(p.I4,{rowHeight:36,numRows:5}):(0,a.jsx)(c.V5H,{...t,columns:e,locale:{emptyText:(0,a.jsx)(z,{})}})]}),s]})};var E=()=>(0,a.jsx)(r.Z,{title:"Notifications",children:(0,a.jsxs)(d.ZP,{scopes:[y.Sh.MESSAGING_CREATE_OR_UPDATE],children:[(0,a.jsx)(o.Z,{heading:"Notifications"}),(0,a.jsx)(l.Z,{}),(0,a.jsx)(M,{})]})})}},function(e){e.O(0,[431,7245,2888,9774,179],function(){return e(e.s=30890)}),_N_E=e.O()}]);
|
fides/ui-build/static/admin/_next/static/chunks/pages/notifications/templates-74585f6d9ff1245f.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6781],{42944:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/notifications/templates",function(){return s(46632)}])},35287:function(e,t,s){"use strict";var i=s(24246),a=s(20595),n=s(88038),r=s.n(n);s(27378),t.Z=e=>{let{children:t,title:s,mainProps:n}=e;return(0,i.jsxs)(a.kCb,{"data-testid":s,direction:"column",height:"calc(100vh - 48px)",width:"calc(100vw - 240px)",children:[(0,i.jsxs)(r(),{children:[(0,i.jsxs)("title",{children:["Fides Admin UI - ",s]}),(0,i.jsx)("meta",{name:"description",content:"Privacy Engineering Platform"}),(0,i.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,i.jsx)(a.kCb,{px:10,py:6,as:"main",overflow:"auto",direction:"column",flex:1,minWidth:0,...n,children:t})]})}},87361:function(e,t,s){"use strict";var i=s(24246),a=s(20595);t.Z=e=>{let{title:t,text:s,onClose:n}=e;return(0,i.jsxs)(a.Ugi,{backgroundColor:"gray.50",border:"1px solid",borderRadius:"md",justifyContent:"space-between",py:4,pr:6,pl:3,"data-testid":"empty-state",gap:2,position:"relative",children:[n&&(0,i.jsx)(a.Two,{boxSize:5,position:"absolute",right:3,top:3,zIndex:1,cursor:"pointer",p:1,onClick:n}),(0,i.jsx)(a.iid,{alignSelf:"start",color:"minos",mt:.5,flexGrow:0}),(0,i.jsxs)(a.kCb,{direction:"column",gap:2,flexGrow:1,children:[(0,i.jsx)(a.X6q,{fontSize:"md",children:t}),(0,i.jsx)(a.xvT,{fontSize:"sm",color:"gray.600",lineHeight:"5",children:s})]})]})}},129:function(e,t,s){"use strict";var i=s(24246),a=s(20595),n=s(86677),r=s(16134),l=s(25980),o=s(77830),c=s(39449),d=s(31793);t.Z=()=>{let e=(0,n.useRouter)(),t=e.pathname,{plus:s}=(0,l.hz)(),p="providers";t.startsWith(o.AD)?p="providers":t.startsWith(o.Wi)?p="templates":t.startsWith(o.DN)&&(p="digests");let u=[{key:"templates",label:"Templates",requiresPlus:!0,scopes:[c.Sh.MESSAGING_TEMPLATE_UPDATE],path:o.Wi},{key:"digests",label:"Digests",requiresPlus:!0,scopes:[c.Sh.DIGEST_CONFIG_READ],path:o.DN},{key:"providers",label:"Providers",requiresPlus:!1,scopes:[c.Sh.MESSAGING_CREATE_OR_UPDATE],path:o.AD}];s||(u=u.filter(e=>!e.requiresPlus));let m=(0,r.C)(d.uu);u=u.filter(e=>e.scopes.some(e=>m.includes(e)));let g=t=>{let s=u.find(e=>e.key===t);s&&e.push(s.path)};return(0,i.jsx)("div",{className:"mb-6",children:(0,i.jsx)(a.Niu,{mode:"horizontal",selectedKeys:[p],onClick:e=>{let{key:t}=e;return g(t)},items:u})})}},58754:function(e,t,s){"use strict";var i=s(24246),a=s(20595),n=s(70788);t.Z=e=>{let{heading:t,breadcrumbItems:s,isSticky:r=!0,children:l,rightContent:o,style:c,...d}=e;return(0,i.jsxs)("div",{...d,style:r?{position:"sticky",top:"-24px",paddingTop:"24px",paddingBottom:"24px",paddingLeft:"40px",marginLeft:"-40px",paddingRight:"40px",marginRight:"-40px",marginTop:"-24px",left:0,zIndex:20,backgroundColor:"white",...c}:{paddingBottom:"24px",...c},children:[(0,i.jsxs)(a.jqI,{justify:"space-between",children:["string"==typeof t?(0,i.jsx)(a.lQT,{className:s||l?"pb-4":void 0,level:1,"data-testid":"page-heading",children:t}):t,o&&(0,i.jsx)("div",{"data-testid":"page-header-right-content",children:o})]}),!!s&&(0,i.jsx)(n.m,{className:l?"pb-4":void 0,items:s,"data-testid":"page-breadcrumb"}),l]})}},70788:function(e,t,s){"use strict";s.d(t,{m:function(){return c}});var i=s(24246),a=s(20595),n=s(79894),r=s.n(n),l=s(27378);let{Text:o}=a.AntTypography,c=e=>{let{items:t,...s}=e,n=(0,l.useMemo)(()=>null==t?void 0:t.map((e,s)=>{let n=s===t.length-1,l={...e},c=l.onClick&&!l.href;return("string"==typeof l.title&&(l.title=(0,i.jsx)(o,{style:{color:"inherit",maxWidth:n?void 0:400},ellipsis:!n,id:n?"breadcrumb-current-page":void 0,children:l.title})),c)?l.title=(0,i.jsx)(a.wpx,{type:"text",size:"small",icon:l.icon,onClick:l.onClick,className:"ant-breadcrumb-link -mt-px px-1 text-inherit",children:l.title}):(l.icon&&(l.title=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"anticon align-text-bottom",children:l.icon}),l.title]})),l.href&&l.title&&(l.title=(0,i.jsx)(r(),{href:l.href,className:"ant-breadcrumb-link",children:l.title}),delete l.href)),l}),[t]);return(0,i.jsx)(a.zrq,{items:n,...s})}},67810:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}}),(i=a||(a={})).PRIVACY_REQUEST_REVIEW_APPROVE="privacy_request_review_approve",i.PRIVACY_REQUEST_REVIEW_DENY="privacy_request_review_deny",i.PRIVACY_REQUEST_RECEIPT="privacy_request_receipt",i.PRIVACY_REQUEST_COMPLETE_ACCESS="privacy_request_complete_access",i.PRIVACY_REQUEST_COMPLETE_DELETION="privacy_request_complete_deletion",i.SUBJECT_IDENTITY_VERIFICATION="subject_identity_verification",i.MANUAL_TASK_DIGEST="manual_task_digest";var i,a,n={[a.PRIVACY_REQUEST_COMPLETE_ACCESS]:"Access request completed",[a.PRIVACY_REQUEST_COMPLETE_DELETION]:"Erasure request completed",[a.PRIVACY_REQUEST_RECEIPT]:"Privacy request received",[a.PRIVACY_REQUEST_REVIEW_APPROVE]:"Privacy request approved",[a.PRIVACY_REQUEST_REVIEW_DENY]:"Privacy request denied",[a.SUBJECT_IDENTITY_VERIFICATION]:"Subject identity verification",[a.MANUAL_TASK_DIGEST]:"Manual task digest"}},5058:function(e,t,s){"use strict";s.d(t,{Vw:function(){return n},ms:function(){return i},pS:function(){return a},vm:function(){return r}});let{useGetSummaryMessagingTemplatesQuery:i,usePutMessagingTemplateByIdMutation:a,useCreateMessagingTemplateByTypeMutation:n,usePatchMessagingTemplateByIdMutation:r}=s(78780).u.injectEndpoints({endpoints:e=>({getSummaryMessagingTemplates:e.query({query:e=>({method:"GET",url:"plus/messaging/templates/summary",params:e}),providesTags:()=>["Property-Specific Messaging Templates"]}),putMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"PUT",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),patchMessagingTemplateById:e.mutation({query:e=>{let{templateId:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"PATCH",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]}),createMessagingTemplateByType:e.mutation({query:e=>{let{templateType:t,template:s}=e;return{url:"plus/messaging/templates/".concat(t),method:"POST",body:s}},invalidatesTags:()=>["Property-Specific Messaging Templates"]})})})},46632:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return M}});var i=s(24246),a=s(92222),n=s(59003),r=s(20595),l=s(95099),o=s.n(l),c=s(86677),d=s(27378),p=s(35287),u=s(71795),m=s(87361),g=s(46238),h=s(77830),x=s(129),f=s(58754),j=s(47935),_=s(42904),E=s(7426),v=s(67810),y=e=>{let{isOpen:t,onClose:s,onAccept:a}=e,[n,l]=(0,d.useState)(void 0),o=Object.keys(v.Z).map(e=>({value:e,label:v.Z[e]}));return(0,i.jsxs)(r.u_l,{isOpen:t,onClose:s,size:"2xl",isCentered:!0,children:[(0,i.jsx)(r.ZAr,{}),(0,i.jsxs)(r.hzk,{"data-testid":"add-messaging-template-modal",children:[(0,i.jsx)(r.xBx,{borderBottomWidth:1,fontWeight:"bold",children:"Select message template"}),(0,i.jsxs)(r.fef,{children:[(0,i.jsx)(r.xvT,{color:"gray.700",fontWeight:"medium",fontSize:"sm",marginBottom:3,marginTop:1,children:"Add a new email message by selecting a template below and clicking accept."}),(0,i.jsx)(r.xvT,{color:"gray.700",fontSize:"sm",fontWeight:"medium",marginBottom:2,children:"Choose template:"}),(0,i.jsx)(r.xuv,{"data-testid":"template-type-selector",children:(0,i.jsx)(r.WPr,{options:o,onChange:e=>{l(e)},className:"w-full","aria-label":"Select a template"})})]}),(0,i.jsx)(r.mzw,{justifyContent:"flex-start",children:(0,i.jsxs)("div",{className:"flex w-full gap-4",children:[(0,i.jsx)(r.wpx,{onClick:s,"data-testid":"cancel-btn",className:"grow",children:"Cancel"}),(0,i.jsx)(r.wpx,{onClick:()=>a(n),type:"primary","data-testid":"confirm-btn",disabled:!n,className:"grow",children:"Next"})]})})]})]})},b=s(5058),T=s(812),C=s(46628),S=s(31883),P=()=>{let e=(0,r.pmc)(),[t]=(0,b.vm)();return{toggleIsTemplateEnabled:(0,d.useCallback)(async s=>{let{isEnabled:i,templateId:a}=s,n=await t({templateId:a,template:{is_enabled:i}});if((0,S.D4)(n)){e((0,C.Vo)((0,T.e$)(n.error)));return}e((0,C.t5)("Messaging template ".concat(i?"enabled":"disabled")))},[t,e])}},R=s(64826);let w=(0,a.Cl)(),I={items:[],total:0,page:1,size:50,pages:1},A=()=>(0,i.jsx)(r.gCW,{mt:6,p:10,spacing:4,borderRadius:"base",maxW:"70%","data-testid":"no-results-notice",alignSelf:"center",margin:"auto",textAlign:"center",children:(0,i.jsxs)(r.gCW,{children:[(0,i.jsx)(r.xvT,{fontSize:"md",fontWeight:"600",children:"It looks like it's your first time here!"}),(0,i.jsxs)(r.xvT,{fontSize:"sm",children:['Add new email templates with the "Add message +" button.',(0,i.jsx)("br",{})]})]})}),k=()=>{let{isLoading:e,data:t}=(0,R.gz)({page:1,size:100}),s=null==t?void 0:t.items.filter(e=>!e.messaging_templates||0===e.messaging_templates.length),a=!!(!e&&(null==s?void 0:s.length)),n="missing-messages-notice-".concat(null==s?void 0:s.map(e=>e.id).join("-")),[l,o]=(0,u._)("notices.dismissedMessageNoticeId",""),c=n===l;return a&&!c?(0,i.jsx)(r.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(m.Z,{title:"Not all properties have messages configured.",text:(0,i.jsxs)(r.xvT,{as:"span",children:["You have properties that do not have messages configured. Users who submit privacy requests for these properties may not receive the necessary emails regarding their requests."," ",(0,i.jsx)(r.xuv,{as:"span",children:(0,i.jsx)(g.b,{label:null==s?void 0:s.map(e=>e.name).join(", ")})})]}),onClose:()=>{o(n)}})}):null},N=()=>{let{data:e}=(0,E.tB)({api_set:!1});return(null==e?void 0:e.notifications.enable_property_specific_messaging)?null:(0,i.jsx)(r.xuv,{mb:6,"data-testid":"notice-properties-without-messaging-templates",children:(0,i.jsx)(m.Z,{title:"Basic messaging enabled",text:(0,i.jsxs)(r.xvT,{as:"span",children:['In basic messaging mode, you can edit the content of your messages from this screen. Please note that in basic messaging, the "Enable" toggle does not apply. Fides also supports property specific messaging mode. Read our'," ",(0,i.jsx)(r.rUS,{href:"https://fid.es/property-specific-messaging",target:"_blank",rel:"nofollow",textDecoration:"underline",children:"docs"})," ","for more information about property specific mode or contact"," ",(0,i.jsx)(r.rUS,{href:"mailto:support@ethyca.com",textDecoration:"underline",children:"Ethyca support"})," ","to enable this mode on your Fides instance."]})})})};var M=()=>{let e=(0,c.useRouter)(),{toggleIsTemplateEnabled:t}=P(),{PAGE_SIZES:s,pageSize:l,setPageSize:u,onPreviousPageClick:m,isPreviousPageDisabled:g,onNextPageClick:E,isNextPageDisabled:T,startRange:C,endRange:S,pageIndex:R,setTotalPages:M}=(0,j.oi)(),{data:q,isLoading:z,isFetching:D}=(0,b.ms)({page:R,size:l}),{items:U,total:V,pages:W}=(0,d.useMemo)(()=>null!=q?q:I,[q]);(0,d.useEffect)(()=>{M(W)},[W,M]);let[O,B]=(0,d.useState)(!1),Y=(0,d.useMemo)(()=>[w.accessor(e=>e.type,{id:"message",cell:e=>(0,i.jsx)(j.G3,{value:v.Z[e.getValue()]}),header:e=>(0,i.jsx)(j.Rr,{value:"Message",...e}),size:150}),w.accessor(e=>(e.properties||[]).map(e=>e.name),{id:"properties",cell:e=>(0,i.jsx)(j.WP,{suffix:"properties",value:e.getValue(),...e}),header:e=>(0,i.jsx)(j.Rr,{value:"Properties",...e}),meta:{showHeaderMenu:!0},size:250}),w.accessor(e=>e.is_enabled,{id:"is_enabled",cell:e=>(0,i.jsx)(r.kCb,{align:"center",justifyContent:"flex-start",w:"full",h:"full",children:(0,i.jsx)(r.rAg,{checked:e.getValue(),onChange:s=>{t({isEnabled:s,templateId:e.row.original.id})}})}),header:e=>(0,i.jsx)(j.Rr,{value:"Enable",...e}),size:200,meta:{disableRowClick:!0}})],[t]),Z=(0,d.useMemo)(()=>o()(U,"id"),[U]),L=(0,n.b7)({getCoreRowModel:(0,a.sC)(),getFilteredRowModel:(0,a.vL)(),getSortedRowModel:(0,a.tj)(),columns:Y,data:Z,columnResizeMode:"onChange"});return(0,i.jsxs)(p.Z,{title:"Notifications",children:[(0,i.jsx)(f.Z,{heading:"Notifications"}),(0,i.jsx)(x.Z,{}),(0,i.jsx)(N,{}),(0,i.jsx)(k,{}),(0,i.jsx)(j.Q$,{children:(0,i.jsx)(r.Ugi,{alignItems:"center",spacing:4,marginLeft:"auto",children:(0,i.jsx)(r.wpx,{type:"primary","data-testid":"add-message-btn",onClick:()=>B(!0),children:"Add message +"})})}),z?(0,i.jsx)(j.I4,{rowHeight:36,numRows:15}):(0,i.jsx)(j.ZK,{tableInstance:L,onRowClick:t=>{e.push({pathname:h.mf,query:{id:t.id}})},emptyTableNotice:(0,i.jsx)(A,{})}),(0,i.jsx)(_.s8,{totalRows:V||0,pageSizes:s,setPageSize:u,onPreviousPageClick:m,isPreviousPageDisabled:g||D,onNextPageClick:E,isNextPageDisabled:T||D,startRange:C,endRange:S}),(0,i.jsx)(y,{isOpen:O,onClose:()=>B(!1),onAccept:t=>{e.push({pathname:h.fO,query:{templateType:t}})}})]})}},31883:function(e,t,s){"use strict";s.d(t,{Bw:function(){return i.Bw},D4:function(){return i.D4}});var i=s(19043)}},function(e){e.O(0,[8765,9278,346,2888,9774,179],function(){return e(e.s=42944)}),_N_E=e.O()}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|