@bigbinary/neeto-integrations-frontend 4.0.22 → 4.0.24

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.
Files changed (62) hide show
  1. package/app/javascript/src/translations/ar.json +4 -0
  2. package/app/javascript/src/translations/bg.json +4 -0
  3. package/app/javascript/src/translations/ca.json +4 -0
  4. package/app/javascript/src/translations/cs.json +4 -0
  5. package/app/javascript/src/translations/da.json +4 -0
  6. package/app/javascript/src/translations/de.json +4 -0
  7. package/app/javascript/src/translations/en.json +4 -0
  8. package/app/javascript/src/translations/es-MX.json +4 -0
  9. package/app/javascript/src/translations/es.json +4 -0
  10. package/app/javascript/src/translations/et.json +4 -0
  11. package/app/javascript/src/translations/fi.json +4 -0
  12. package/app/javascript/src/translations/fil.json +4 -0
  13. package/app/javascript/src/translations/fr.json +4 -0
  14. package/app/javascript/src/translations/he.json +4 -0
  15. package/app/javascript/src/translations/hi.json +4 -0
  16. package/app/javascript/src/translations/hr.json +4 -0
  17. package/app/javascript/src/translations/hu.json +4 -0
  18. package/app/javascript/src/translations/id.json +4 -0
  19. package/app/javascript/src/translations/it.json +4 -0
  20. package/app/javascript/src/translations/ja.json +4 -0
  21. package/app/javascript/src/translations/ko.json +4 -0
  22. package/app/javascript/src/translations/nl.json +4 -0
  23. package/app/javascript/src/translations/pl.json +4 -0
  24. package/app/javascript/src/translations/pt-BR.json +4 -0
  25. package/app/javascript/src/translations/pt.json +4 -0
  26. package/app/javascript/src/translations/ro.json +4 -0
  27. package/app/javascript/src/translations/ru.json +4 -0
  28. package/app/javascript/src/translations/sk.json +4 -0
  29. package/app/javascript/src/translations/sl.json +4 -0
  30. package/app/javascript/src/translations/sv.json +4 -0
  31. package/app/javascript/src/translations/th.json +4 -0
  32. package/app/javascript/src/translations/tr.json +4 -0
  33. package/app/javascript/src/translations/uk.json +4 -0
  34. package/app/javascript/src/translations/vi.json +4 -0
  35. package/app/javascript/src/translations/zh-CN.json +4 -0
  36. package/app/javascript/src/translations/zh-TW.json +4 -0
  37. package/dist/.ready +1 -1
  38. package/dist/Daily.js +2 -2
  39. package/dist/DailyForm.js +2 -2
  40. package/dist/{Form-BMGo6rYf.js → Form-Cleq_dYO.js} +2 -2
  41. package/dist/{Form-BMGo6rYf.js.map → Form-Cleq_dYO.js.map} +1 -1
  42. package/dist/{Form-jUyTYnHM.js → Form-DmeRCf_T.js} +2 -2
  43. package/dist/{Form-jUyTYnHM.js.map → Form-DmeRCf_T.js.map} +1 -1
  44. package/dist/Telnyx.js +1 -1
  45. package/dist/Twilio.js +1 -1
  46. package/dist/Zoom.js +1 -1
  47. package/dist/cjs/Daily.js +2 -2
  48. package/dist/cjs/DailyForm.js +2 -2
  49. package/dist/cjs/Telnyx.js +1 -1
  50. package/dist/cjs/Twilio.js +1 -1
  51. package/dist/cjs/Zoom.js +1 -1
  52. package/dist/cjs/index.js +104 -10
  53. package/dist/cjs/index.js.map +1 -1
  54. package/dist/index.js +106 -10
  55. package/dist/index.js.map +1 -1
  56. package/dist/{query-DWavsm0z.js → query-B3RhGrNb.js} +6 -3
  57. package/dist/query-B3RhGrNb.js.map +1 -0
  58. package/dist/{query-tu4TNsM9.js → query-CySi2Ki7.js} +7 -2
  59. package/dist/query-CySi2Ki7.js.map +1 -0
  60. package/package.json +7 -7
  61. package/dist/query-DWavsm0z.js.map +0 -1
  62. package/dist/query-tu4TNsM9.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Form-jUyTYnHM.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js","../app/javascript/src/components/Integrations/Daily/constants.js","../app/javascript/src/components/Integrations/Daily/Form.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_DAILY_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_DAILY_URL, { daily: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst dailiesApi = { create, show, destroy };\n\nexport default dailiesApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport dailiesApi from \"apis/dailies\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useCreateDaily = (options = {}) =>\n useMutationWithInvalidation(dailiesApi.create, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n ...options,\n });\n\nexport const useFetchDaily = () =>\n useQuery({\n queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],\n queryFn: dailiesApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useDestroyDaily = ({ onSuccess }) =>\n useMutationWithInvalidation(dailiesApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n onSuccess,\n });\n","import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const MANAGE_DAILY_CO_FORM_INITIAL_VALUES = { apiKey: \"\" };\n\nexport const DAILY_CO_VALIDATION_SCHEMA = yup.object().shape({\n apiKey: yup\n .string()\n .trim()\n .required(\n t(\"neetoIntegrations.errors.required\", {\n entity: t(\"neetoIntegrations.daily.apiKey\"),\n })\n ),\n});\n","import { useState } from \"react\";\n\nimport i18next from \"i18next\";\nimport { withTitle } from \"neetocommons/react-utils\";\nimport CardLayout from \"neetomolecules/CardLayout\";\nimport Container from \"neetomolecules/Container\";\nimport Header from \"neetomolecules/Header\";\nimport { Button, Spinner, Typography } from \"neetoui\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoui/formik\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport WalkthroughModal from \"components/WalkthroughModal\";\nimport { useCreateDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport {\n MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n DAILY_CO_VALIDATION_SCHEMA,\n} from \"./constants\";\n\nconst Form = ({ helpDocUrl, videoUrl, onConnect, breadcrumbs }) => {\n const { t } = useTranslation();\n const history = useHistory();\n\n const [isDemoModalOpen, setIsDemoModalOpen] = useState(false);\n\n const { mutate: createDaily, isPending: isConnecting } = useCreateDaily({\n onSuccess: () => onConnect?.(),\n });\n\n const handleSubmit = payload => createDaily(payload);\n\n if (isConnecting) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <Container isHeaderFixed>\n <Header\n {...{ breadcrumbs }}\n title={t(\"neetoIntegrations.daily.connect.title\")}\n titleHelpPopoverProps={{\n title: t(\"neetoIntegrations.daily.connect.title\"),\n description: (\n <Typography lineHeight=\"normal\" style=\"body2\">\n <Trans\n i18nKey=\"neetoIntegrations.daily.helpDoc\"\n components={{\n videoLink: (\n <Button\n style=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n ),\n }}\n />\n </Typography>\n ),\n helpLinkProps: {\n href: helpDocUrl,\n \"data-testid\": \"api-key-help-doc-link\",\n },\n }}\n />\n <div className=\"w-full\">\n <FormikForm\n formikProps={{\n initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n validationSchema: DAILY_CO_VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <CardLayout\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isConnecting}\n submitButtonProps={{\n label: t(\"neetoIntegrations.common.connect\"),\n }}\n />\n }\n >\n <Input\n autoFocus\n required\n label={t(\"neetoIntegrations.daily.apiKey\")}\n name=\"apiKey\"\n />\n </CardLayout>\n </FormikForm>\n <WalkthroughModal\n {...{ videoUrl }}\n isOpen={isDemoModalOpen}\n onClose={() => setIsDemoModalOpen(false)}\n />\n </div>\n </Container>\n );\n};\nexport default withTitle(\n Form,\n i18next.t(\"neetoIntegrations.browserTitles.integrations.dailyco\")\n);\n"],"names":["create","payload","axios","post","INTEGRATIONS_ENGINE_DAILY_URL","daily","show","get","destroy","dailiesApi","useCreateDaily","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","QUERY_KEYS","DAILY_CO_DETAILS","useFetchDaily","useQuery","queryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyDaily","_ref","onSuccess","MANAGE_DAILY_CO_FORM_INITIAL_VALUES","apiKey","DAILY_CO_VALIDATION_SCHEMA","yup","object","shape","string","trim","required","t","entity","Form","helpDocUrl","videoUrl","onConnect","breadcrumbs","_useTranslation","useTranslation","history","useHistory","_useState","useState","_useState2","_slicedToArray","isDemoModalOpen","setIsDemoModalOpen","_useCreateDaily","createDaily","mutate","isConnecting","isPending","handleSubmit","_jsx","className","children","Spinner","_jsxs","Container","isHeaderFixed","Header","title","titleHelpPopoverProps","description","Typography","lineHeight","style","Trans","i18nKey","components","videoLink","Button","onClick","helpLinkProps","href","FormikForm","formikProps","initialValues","validationSchema","onSubmit","CardLayout","actionBlock","ActionBlock","cancelButtonProps","goBack","isSubmitting","submitButtonProps","label","Input","autoFocus","name","WalkthroughModal","isOpen","onClose","withTitle","i18next"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,mCAA6B,EAAE;AAAEC,IAAAA,KAAK,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,KAAK,CAACK,GAAG,CAACH,mCAA6B,CAAC;AAAA,CAAA;AAE3D,IAAMI,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAACE,mCAA6B,CAAC;AAAA,CAAA;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,WAAW,eACT5B,cAAA,CAAC6B,WAAW,EAAA;AACVC,YAAAA,iBAAiB,EAAE;cAAEX,OAAO,EAAE,SAATA,OAAOA,GAAA;AAAA,gBAAA,OAAQjC,OAAO,CAAC6C,MAAM,EAAE;AAAA,cAAA;aAAG;AACvDC,YAAAA,YAAY,EAAEnC,YAAa;AAC3BoC,YAAAA,iBAAiB,EAAE;cACjBC,KAAK,EAAEzD,CAAC,CAAC,kCAAkC;AAC7C;AAAE,WACH,CACF;UAAAyB,QAAA,eAEDF,cAAA,CAACmC,KAAK,EAAA;YACJC,SAAS,EAAA,IAAA;YACT5D,QAAQ,EAAA,IAAA;AACR0D,YAAAA,KAAK,EAAEzD,CAAC,CAAC,gCAAgC,CAAE;AAC3C4D,YAAAA,IAAI,EAAC;WACN;SACS;AAAC,OACH,CAAC,eACbrC,cAAA,CAACsC,gBAAgB,EAAA;AACTzD,QAAAA,QAAQ,EAARA,QAAQ;AACd0D,QAAAA,MAAM,EAAE/C,eAAgB;QACxBgD,OAAO,EAAE,SAATA,OAAOA,GAAA;UAAA,OAAQ/C,kBAAkB,CAAC,KAAK,CAAC;AAAA,QAAA;AAAC,OAC1C,CAAC;AAAA,KACC,CAAC;AAAA,GACG,CAAC;AAEhB,CAAC;AACD,WAAegD,oBAAS,CACtB9D,MAAI,EACJ+D,OAAO,CAACjE,CAAC,CAAC,sDAAsD,CAClE,CAAC;;;;;;"}
1
+ {"version":3,"file":"Form-DmeRCf_T.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js","../app/javascript/src/components/Integrations/Daily/constants.js","../app/javascript/src/components/Integrations/Daily/Form.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_DAILY_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_DAILY_URL, { daily: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst dailiesApi = { create, show, destroy };\n\nexport default dailiesApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport dailiesApi from \"apis/dailies\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useCreateDaily = (options = {}) =>\n useMutationWithInvalidation(dailiesApi.create, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n ...options,\n });\n\nexport const useFetchDaily = () =>\n useQuery({\n queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],\n queryFn: dailiesApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useDestroyDaily = ({ onSuccess }) =>\n useMutationWithInvalidation(dailiesApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n onSuccess,\n });\n","import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const MANAGE_DAILY_CO_FORM_INITIAL_VALUES = { apiKey: \"\" };\n\nexport const DAILY_CO_VALIDATION_SCHEMA = yup.object().shape({\n apiKey: yup\n .string()\n .trim()\n .required(\n t(\"neetoIntegrations.errors.required\", {\n entity: t(\"neetoIntegrations.daily.apiKey\"),\n })\n ),\n});\n","import { useState } from \"react\";\n\nimport i18next from \"i18next\";\nimport { withTitle } from \"neetocommons/react-utils\";\nimport CardLayout from \"neetomolecules/CardLayout\";\nimport Container from \"neetomolecules/Container\";\nimport Header from \"neetomolecules/Header\";\nimport { Button, Spinner, Typography } from \"neetoui\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoui/formik\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport WalkthroughModal from \"components/WalkthroughModal\";\nimport { useCreateDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport {\n MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n DAILY_CO_VALIDATION_SCHEMA,\n} from \"./constants\";\n\nconst Form = ({ helpDocUrl, videoUrl, onConnect, breadcrumbs }) => {\n const { t } = useTranslation();\n const history = useHistory();\n\n const [isDemoModalOpen, setIsDemoModalOpen] = useState(false);\n\n const { mutate: createDaily, isPending: isConnecting } = useCreateDaily({\n onSuccess: () => onConnect?.(),\n });\n\n const handleSubmit = payload => createDaily(payload);\n\n if (isConnecting) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <Container isHeaderFixed>\n <Header\n {...{ breadcrumbs }}\n title={t(\"neetoIntegrations.daily.connect.title\")}\n titleHelpPopoverProps={{\n title: t(\"neetoIntegrations.daily.connect.title\"),\n description: (\n <Typography lineHeight=\"normal\" style=\"body2\">\n <Trans\n i18nKey=\"neetoIntegrations.daily.helpDoc\"\n components={{\n videoLink: (\n <Button\n style=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n ),\n }}\n />\n </Typography>\n ),\n helpLinkProps: {\n href: helpDocUrl,\n \"data-testid\": \"api-key-help-doc-link\",\n },\n }}\n />\n <div className=\"w-full\">\n <FormikForm\n formikProps={{\n initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n validationSchema: DAILY_CO_VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <CardLayout\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isConnecting}\n submitButtonProps={{\n label: t(\"neetoIntegrations.common.connect\"),\n }}\n />\n }\n >\n <Input\n autoFocus\n required\n label={t(\"neetoIntegrations.daily.apiKey\")}\n name=\"apiKey\"\n />\n </CardLayout>\n </FormikForm>\n <WalkthroughModal\n {...{ videoUrl }}\n isOpen={isDemoModalOpen}\n onClose={() => setIsDemoModalOpen(false)}\n />\n </div>\n </Container>\n );\n};\nexport default withTitle(\n Form,\n i18next.t(\"neetoIntegrations.browserTitles.integrations.dailyco\")\n);\n"],"names":["create","payload","axios","post","INTEGRATIONS_ENGINE_DAILY_URL","daily","show","get","destroy","dailiesApi","useCreateDaily","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","QUERY_KEYS","DAILY_CO_DETAILS","useFetchDaily","useQuery","queryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyDaily","_ref","onSuccess","MANAGE_DAILY_CO_FORM_INITIAL_VALUES","apiKey","DAILY_CO_VALIDATION_SCHEMA","yup","object","shape","string","trim","required","t","entity","Form","helpDocUrl","videoUrl","onConnect","breadcrumbs","_useTranslation","useTranslation","history","useHistory","_useState","useState","_useState2","_slicedToArray","isDemoModalOpen","setIsDemoModalOpen","_useCreateDaily","createDaily","mutate","isConnecting","isPending","handleSubmit","_jsx","className","children","Spinner","_jsxs","Container","isHeaderFixed","Header","title","titleHelpPopoverProps","description","Typography","lineHeight","style","Trans","i18nKey","components","videoLink","Button","onClick","helpLinkProps","href","FormikForm","formikProps","initialValues","validationSchema","onSubmit","CardLayout","actionBlock","ActionBlock","cancelButtonProps","goBack","isSubmitting","submitButtonProps","label","Input","autoFocus","name","WalkthroughModal","isOpen","onClose","withTitle","i18next"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,mCAA6B,EAAE;AAAEC,IAAAA,KAAK,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,KAAK,CAACK,GAAG,CAACH,mCAA6B,CAAC;AAAA,CAAA;AAE3D,IAAMI,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAACE,mCAA6B,CAAC;AAAA,CAAA;AAEjE,IAAMK,UAA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A,CAAC6B,WAAW,EAAA;AACVC,YAAAA,iBAAiB,EAAE;cAAEX,OAAO,EAAE,SAATA,OAAOA,GAAA;AAAA,gBAAA,OAAQjC,OAAO,CAAC6C,MAAM,EAAE;AAAA,cAAA;aAAG;AACvDC,YAAAA,YAAY,EAAEnC,YAAa;AAC3BoC,YAAAA,iBAAiB,EAAE;cACjBC,KAAK,EAAEzD,CAAC,CAAC,kCAAkC;AAC7C;AAAE,WACH,CACF;UAAAyB,QAAA,eAEDF,cAAA,CAACmC,KAAK,EAAA;YACJC,SAAS,EAAA,IAAA;YACT5D,QAAQ,EAAA,IAAA;AACR0D,YAAAA,KAAK,EAAEzD,CAAC,CAAC,gCAAgC,CAAE;AAC3C4D,YAAAA,IAAI,EAAC;WACN;SACS;AAAC,OACH,CAAC,eACbrC,cAAA,CAACsC,gBAAgB,EAAA;AACTzD,QAAAA,QAAQ,EAARA,QAAQ;AACd0D,QAAAA,MAAM,EAAE/C,eAAgB;QACxBgD,OAAO,EAAE,SAATA,OAAOA,GAAA;UAAA,OAAQ/C,kBAAkB,CAAC,KAAK,CAAC;AAAA,QAAA;AAAC,OAC1C,CAAC;AAAA,KACC,CAAC;AAAA,GACG,CAAC;AAEhB,CAAC;AACD,WAAegD,oBAAS,CACtB9D,MAAI,EACJ+D,OAAO,CAACjE,CAAC,CAAC,sDAAsD,CAClE,CAAC;;;;;;"}
package/dist/Telnyx.js CHANGED
@@ -12,7 +12,7 @@ import { prop, isEmpty } from 'ramda';
12
12
  import { useQuery, useMutation } from '@tanstack/react-query';
13
13
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
14
14
  import axios from 'axios';
15
- import { T as TELNYX_SMS_CONFIGURATION_URL, c as TELNYX_PHONE_NUMBERS_URL, Q as QUERY_KEYS } from './query-DWavsm0z.js';
15
+ import { a as TELNYX_SMS_CONFIGURATION_URL, b as TELNYX_PHONE_NUMBERS_URL, Q as QUERY_KEYS } from './query-B3RhGrNb.js';
16
16
  import { t } from 'i18next';
17
17
  import * as yup from 'yup';
18
18
  import { jsx, jsxs } from 'react/jsx-runtime';
package/dist/Twilio.js CHANGED
@@ -13,7 +13,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
13
13
  import { useMutationWithInvalidation, useStateWithDependency } from '@bigbinary/neeto-commons-frontend/react-utils';
14
14
  import { useQuery } from '@tanstack/react-query';
15
15
  import axios from 'axios';
16
- import { d as TWILIO_CONFIGURATION_BASE_URL, Q as QUERY_KEYS } from './query-DWavsm0z.js';
16
+ import { T as TWILIO_CONFIGURATION_BASE_URL, Q as QUERY_KEYS } from './query-B3RhGrNb.js';
17
17
  import i18next from 'i18next';
18
18
  import * as yup from 'yup';
19
19
 
package/dist/Zoom.js CHANGED
@@ -9,7 +9,7 @@ import { useQuery } from '@tanstack/react-query';
9
9
  import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
10
10
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
11
11
  import axios from 'axios';
12
- import { I as INTEGRATION_DETAILS_URL, a as INTEGRATIONS_ENGINE_ZOOM_URL, Q as QUERY_KEYS } from './query-DWavsm0z.js';
12
+ import { c as INTEGRATION_DETAILS_URL, e as INTEGRATIONS_ENGINE_ZOOM_URL, Q as QUERY_KEYS } from './query-B3RhGrNb.js';
13
13
  import { jsx } from 'react/jsx-runtime';
14
14
  import '@babel/runtime/helpers/defineProperty';
15
15
  import '@bigbinary/neeto-icons/Check';
package/dist/cjs/Daily.js CHANGED
@@ -3,7 +3,7 @@
3
3
  var i18next = require('i18next');
4
4
  var neetoCist = require('@bigbinary/neeto-cist');
5
5
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
6
- var DailyForm = require('../Form-jUyTYnHM.js');
6
+ var DailyForm = require('../Form-DmeRCf_T.js');
7
7
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
8
8
  var React = require('react');
9
9
  var utils = require('@bigbinary/neeto-commons-frontend/utils');
@@ -29,7 +29,7 @@ require('@babel/runtime/helpers/defineProperty');
29
29
  require('@tanstack/react-query');
30
30
  require('@bigbinary/neeto-commons-frontend/constants');
31
31
  require('axios');
32
- require('../query-tu4TNsM9.js');
32
+ require('../query-CySi2Ki7.js');
33
33
  require('yup');
34
34
  require('@bigbinary/neeto-icons/Check');
35
35
  require('@bigbinary/neeto-icons/ExternalLink');
@@ -16,7 +16,7 @@ require('@bigbinary/neetoui/formik/ActionBlock');
16
16
  require('react-i18next');
17
17
  require('react-router-dom');
18
18
  require('./WalkthroughModal.js');
19
- var DailyForm = require('../Form-jUyTYnHM.js');
19
+ var DailyForm = require('../Form-DmeRCf_T.js');
20
20
  require('react/jsx-runtime');
21
21
  require('@bigbinary/neeto-cist');
22
22
  require('@bigbinary/neeto-commons-frontend/react-utils/withT');
@@ -25,7 +25,7 @@ require('@babel/runtime/helpers/defineProperty');
25
25
  require('@tanstack/react-query');
26
26
  require('@bigbinary/neeto-commons-frontend/constants');
27
27
  require('axios');
28
- require('../query-tu4TNsM9.js');
28
+ require('../query-CySi2Ki7.js');
29
29
  require('yup');
30
30
 
31
31
 
@@ -14,7 +14,7 @@ var ramda = require('ramda');
14
14
  var reactQuery = require('@tanstack/react-query');
15
15
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
16
16
  var axios = require('axios');
17
- var query = require('../query-tu4TNsM9.js');
17
+ var query = require('../query-CySi2Ki7.js');
18
18
  var i18next = require('i18next');
19
19
  var yup = require('yup');
20
20
  var jsxRuntime = require('react/jsx-runtime');
@@ -15,7 +15,7 @@ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
15
15
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
16
16
  var reactQuery = require('@tanstack/react-query');
17
17
  var axios = require('axios');
18
- var query = require('../query-tu4TNsM9.js');
18
+ var query = require('../query-CySi2Ki7.js');
19
19
  var i18next = require('i18next');
20
20
  var yup = require('yup');
21
21
 
package/dist/cjs/Zoom.js CHANGED
@@ -11,7 +11,7 @@ var reactQuery = require('@tanstack/react-query');
11
11
  var constants = require('@bigbinary/neeto-commons-frontend/constants');
12
12
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
13
13
  var axios = require('axios');
14
- var query = require('../query-tu4TNsM9.js');
14
+ var query = require('../query-CySi2Ki7.js');
15
15
  var jsxRuntime = require('react/jsx-runtime');
16
16
  require('@babel/runtime/helpers/defineProperty');
17
17
  require('@bigbinary/neeto-icons/Check');
package/dist/cjs/index.js CHANGED
@@ -2,8 +2,18 @@
2
2
 
3
3
  var Manage = require('./Manage.js');
4
4
  var DisconnectAlert = require('./DisconnectAlert.js');
5
+ var Tag = require('@bigbinary/neetoui/Tag');
6
+ var ramda = require('ramda');
7
+ var reactI18next = require('react-i18next');
8
+ var reactRouterDom = require('react-router-dom');
9
+ var reactQuery = require('@tanstack/react-query');
10
+ var constants = require('@bigbinary/neeto-commons-frontend/constants');
11
+ var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
12
+ var axios = require('axios');
13
+ var query = require('../query-CySi2Ki7.js');
14
+ var jsxRuntime = require('react/jsx-runtime');
5
15
  var Daily = require('./Daily.js');
6
- var DailyForm = require('../Form-jUyTYnHM.js');
16
+ var DailyForm = require('../Form-DmeRCf_T.js');
7
17
  var GoogleCalendar = require('./GoogleCalendar.js');
8
18
  var Telnyx = require('./Telnyx.js');
9
19
  var Twilio = require('./Twilio.js');
@@ -15,14 +25,12 @@ var Finish = require('./Finish.js');
15
25
  var WalkthroughModal = require('./WalkthroughModal.js');
16
26
  require('@babel/runtime/helpers/defineProperty');
17
27
  require('@bigbinary/neeto-cist');
18
- require('@bigbinary/neeto-commons-frontend/react-utils');
19
28
  require('@bigbinary/neeto-icons/Check');
20
29
  require('@bigbinary/neeto-icons/ExternalLink');
21
30
  require('@bigbinary/neetoui/Button');
22
31
  require('@bigbinary/neetoui/Callout');
23
32
  require('@bigbinary/neetoui/Tooltip');
24
33
  require('@bigbinary/neetoui/Typography');
25
- require('react/jsx-runtime');
26
34
  require('@babel/runtime/helpers/objectWithoutProperties');
27
35
  require('@bigbinary/neeto-commons-frontend/react-utils/withT');
28
36
  require('@bigbinary/neetoui/Alert');
@@ -33,34 +41,119 @@ require('@bigbinary/neeto-commons-frontend/utils');
33
41
  require('@bigbinary/neeto-icons/misc/Daily');
34
42
  require('@bigbinary/neeto-molecules/CopyToClipboardButton');
35
43
  require('@bigbinary/neetoui/Spinner');
36
- require('react-i18next');
37
44
  require('@bigbinary/neeto-molecules/CardLayout');
38
45
  require('@bigbinary/neeto-molecules/Container');
39
46
  require('@bigbinary/neeto-molecules/Header');
40
47
  require('@bigbinary/neetoui/formik/Input');
41
48
  require('@bigbinary/neetoui/formik/Form');
42
49
  require('@bigbinary/neetoui/formik/ActionBlock');
43
- require('react-router-dom');
44
- require('@tanstack/react-query');
45
- require('@bigbinary/neeto-commons-frontend/constants');
46
- require('axios');
47
- require('../query-tu4TNsM9.js');
48
50
  require('yup');
49
51
  require('@babel/runtime/helpers/toConsumableArray');
50
52
  require('@bigbinary/neeto-icons/misc/GoogleCalendar');
51
53
  require('@bigbinary/neeto-icons/misc/Google');
52
54
  require('@bigbinary/neeto-molecules/PageLoader');
53
55
  require('@bigbinary/neetoui/formik/Select');
54
- require('ramda');
55
56
  require('@bigbinary/neeto-icons/misc/Zoom');
56
57
  require('@bigbinary/neetoui/Modal');
57
58
  require('classnames');
58
59
  require('../index-dxk7jTL7.js');
59
60
 
61
+ var fetch = function fetch() {
62
+ return axios.get(query.DISCONNECTION_ALERTS_URL);
63
+ };
64
+ var destroyAll = function destroyAll(ids) {
65
+ return axios["delete"]("".concat(query.DISCONNECTION_ALERTS_URL, "/destroy_all"), {
66
+ params: {
67
+ ids: ids
68
+ }
69
+ });
70
+ };
71
+ var disconnectionAlertsApi = {
72
+ fetch: fetch,
73
+ destroyAll: destroyAll
74
+ };
60
75
 
76
+ var useFetchDisconnectionAlerts = function useFetchDisconnectionAlerts() {
77
+ return reactQuery.useQuery({
78
+ queryKey: query.disconnectionAlertsQueryKey,
79
+ queryFn: disconnectionAlertsApi.fetch,
80
+ staleTime: constants.DEFAULT_STALE_TIME,
81
+ refetchOnWindowFocus: "always"
82
+ });
83
+ };
84
+ var useDismissDisconnectionAlerts = function useDismissDisconnectionAlerts() {
85
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
86
+ _onSuccess = _ref.onSuccess;
87
+ return reactUtils.useMutationWithInvalidation(disconnectionAlertsApi.destroyAll, {
88
+ keysToInvalidate: [query.disconnectionAlertsQueryKey],
89
+ onSuccess: function onSuccess() {
90
+ return _onSuccess === null || _onSuccess === void 0 ? void 0 : _onSuccess();
91
+ }
92
+ });
93
+ };
94
+
95
+ var IntegrationLinks = function IntegrationLinks(_ref) {
96
+ var alerts = _ref.alerts,
97
+ integrationRouteMap = _ref.integrationRouteMap;
98
+ return alerts.map(function (alert, index) {
99
+ var _integrationRouteMap$ = integrationRouteMap[alert.serviceName],
100
+ label = _integrationRouteMap$.label,
101
+ path = _integrationRouteMap$.path;
102
+ var linkPath = alert.redirectPath || path;
103
+ return /*#__PURE__*/jsxRuntime.jsxs("span", {
104
+ children: [index > 0 && ", ", /*#__PURE__*/jsxRuntime.jsx(reactRouterDom.Link, {
105
+ className: "font-semibold underline",
106
+ to: linkPath,
107
+ children: label
108
+ })]
109
+ }, alert.id);
110
+ });
111
+ };
112
+ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_ref2) {
113
+ var _ref2$integrationRout = _ref2.integrationRouteMap,
114
+ integrationRouteMap = _ref2$integrationRout === void 0 ? {} : _ref2$integrationRout;
115
+ reactI18next.useTranslation();
116
+ var _useFetchDisconnectio = useFetchDisconnectionAlerts(),
117
+ _useFetchDisconnectio2 = _useFetchDisconnectio.data,
118
+ _useFetchDisconnectio3 = _useFetchDisconnectio2 === void 0 ? {} : _useFetchDisconnectio2,
119
+ _useFetchDisconnectio4 = _useFetchDisconnectio3.disconnectionAlerts,
120
+ alerts = _useFetchDisconnectio4 === void 0 ? [] : _useFetchDisconnectio4;
121
+ var _useDismissDisconnect = useDismissDisconnectionAlerts(),
122
+ dismissAlerts = _useDismissDisconnect.mutate;
123
+ var knownAlerts = alerts.filter(function (alert) {
124
+ return integrationRouteMap[alert.serviceName];
125
+ });
126
+ if (ramda.isEmpty(knownAlerts)) return null;
127
+ return /*#__PURE__*/jsxRuntime.jsx(Tag, {
128
+ className: "neeto-molecules-sticky-ribbon w-full p-2.5 text-center",
129
+ "data-testid": "disconnected-integrations-ribbon",
130
+ size: "large",
131
+ style: "warning",
132
+ onClose: function onClose() {
133
+ return dismissAlerts(knownAlerts.map(function (alert) {
134
+ return alert.id;
135
+ }));
136
+ },
137
+ children: /*#__PURE__*/jsxRuntime.jsx("span", {
138
+ className: "w-full",
139
+ children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
140
+ count: knownAlerts.length,
141
+ defaults: "Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.",
142
+ i18nKey: "neetoIntegrations.disconnectionRibbon.message",
143
+ components: {
144
+ integrations: /*#__PURE__*/jsxRuntime.jsx(IntegrationLinks, {
145
+ integrationRouteMap: integrationRouteMap,
146
+ alerts: knownAlerts
147
+ })
148
+ }
149
+ })
150
+ })
151
+ });
152
+ };
61
153
 
62
154
  exports.Manage = Manage;
63
155
  exports.DisconnectAlert = DisconnectAlert;
156
+ exports.disconnectionAlertsQueryKey = query.disconnectionAlertsQueryKey;
64
157
  exports.Daily = Daily;
65
158
  exports.DailyForm = DailyForm.Form;
66
159
  exports.GoogleCalendar = GoogleCalendar;
@@ -72,4 +165,5 @@ exports.Connect = Connect;
72
165
  exports.Demo = Demo;
73
166
  exports.Finish = Finish;
74
167
  exports.WalkthroughModal = WalkthroughModal;
168
+ exports.DisconnectedIntegrationsRibbon = DisconnectedIntegrationsRibbon;
75
169
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../app/javascript/src/apis/disconnection_alerts.js","../../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js","../../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { DISCONNECTION_ALERTS_URL } from \"src/constants/urls\";\n\nconst fetch = () => axios.get(DISCONNECTION_ALERTS_URL);\n\nconst destroyAll = ids =>\n axios.delete(`${DISCONNECTION_ALERTS_URL}/destroy_all`, { params: { ids } });\n\nconst disconnectionAlertsApi = { fetch, destroyAll };\n\nexport default disconnectionAlertsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport disconnectionAlertsApi from \"apis/disconnection_alerts\";\nimport { disconnectionAlertsQueryKey } from \"src/constants/query\";\n\nexport const useFetchDisconnectionAlerts = () =>\n useQuery({\n queryKey: disconnectionAlertsQueryKey,\n queryFn: disconnectionAlertsApi.fetch,\n staleTime: DEFAULT_STALE_TIME,\n refetchOnWindowFocus: \"always\",\n });\n\nexport const useDismissDisconnectionAlerts = ({ onSuccess } = {}) =>\n useMutationWithInvalidation(disconnectionAlertsApi.destroyAll, {\n keysToInvalidate: [disconnectionAlertsQueryKey],\n onSuccess: () => onSuccess?.(),\n });\n","import { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport {\n useFetchDisconnectionAlerts,\n useDismissDisconnectionAlerts,\n} from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link className=\"font-semibold underline\" to={linkPath}>\n {label}\n </Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const { mutate: dismissAlerts } = useDismissDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isEmpty(knownAlerts)) return null;\n\n return (\n <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => dismissAlerts(knownAlerts.map(alert => alert.id))}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults=\"Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.\"\n i18nKey=\"neetoIntegrations.disconnectionRibbon.message\"\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n }}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["fetch","axios","get","DISCONNECTION_ALERTS_URL","destroyAll","ids","concat","params","disconnectionAlertsApi","useFetchDisconnectionAlerts","useQuery","queryKey","disconnectionAlertsQueryKey","queryFn","staleTime","DEFAULT_STALE_TIME","refetchOnWindowFocus","useDismissDisconnectionAlerts","_ref","arguments","length","undefined","onSuccess","useMutationWithInvalidation","keysToInvalidate","IntegrationLinks","alerts","integrationRouteMap","map","alert","index","_integrationRouteMap$","serviceName","label","path","linkPath","redirectPath","_jsxs","children","_jsx","Link","className","to","id","DisconnectedIntegrationsRibbon","_ref2","_ref2$integrationRout","useTranslation","_useFetchDisconnectio","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","_useDismissDisconnect","dismissAlerts","mutate","knownAlerts","filter","isEmpty","Tag","size","style","onClose","Trans","count","defaults","i18nKey","components","integrations"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,KAAK,GAAG,SAARA,KAAKA,GAAA;AAAA,EAAA,OAASC,KAAK,CAACC,GAAG,CAACC,8BAAwB,CAAC;AAAA,CAAA;AAEvD,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAGC,GAAG,EAAA;AAAA,EAAA,OACpBJ,KAAK,CAAA,QAAA,CAAO,CAAA,EAAA,CAAAK,MAAA,CAAIH,8BAAwB,EAAA,cAAA,CAAA,EAAgB;AAAEI,IAAAA,MAAM,EAAE;AAAEF,MAAAA,GAAG,EAAHA;AAAI;AAAE,GAAC,CAAC;AAAA,CAAA;AAE9E,IAAMG,sBAAsB,GAAG;AAAER,EAAAA,KAAK,EAALA,KAAK;AAAEI,EAAAA,UAAU,EAAVA;AAAW,CAAC;;ACF7C,IAAMK,2BAA2B,GAAG,SAA9BA,2BAA2BA,GAAA;AAAA,EAAA,OACtCC,mBAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAEC,iCAA2B;IACrCC,OAAO,EAAEL,sBAAsB,CAACR,KAAK;AACrCc,IAAAA,SAAS,EAAEC,4BAAkB;AAC7BC,IAAAA,oBAAoB,EAAE;AACxB,GAAC,CAAC;AAAA,CAAA;AAEG,IAAMC,6BAA6B,GAAG,SAAhCA,6BAA6BA,GAAA;AAAA,EAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAoB,EAAE;IAAhBG,UAAS,GAAAJ,IAAA,CAATI,SAAS;AAAA,EAAA,OACvDC,sCAA2B,CAACf,sBAAsB,CAACJ,UAAU,EAAE;IAC7DoB,gBAAgB,EAAE,CAACZ,iCA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AgB,EAAA;AACTE,YAAAA,mBAAmB,EAAnBA,mBAAmB;AACzBD,YAAAA,MAAM,EAAE+B;WACT;AAEL;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;;;;;;;;;;;;;;;"}
package/dist/index.js CHANGED
@@ -1,7 +1,17 @@
1
1
  export { default as Manage } from './Manage.js';
2
2
  export { default as DisconnectAlert } from './DisconnectAlert.js';
3
+ import Tag from '@bigbinary/neetoui/Tag';
4
+ import { isEmpty } from 'ramda';
5
+ import { useTranslation, Trans } from 'react-i18next';
6
+ import { Link } from 'react-router-dom';
7
+ import { useQuery } from '@tanstack/react-query';
8
+ import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
9
+ import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
10
+ import axios from 'axios';
11
+ import { D as DISCONNECTION_ALERTS_URL, d as disconnectionAlertsQueryKey } from './query-B3RhGrNb.js';
12
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
13
  export { default as Daily } from './Daily.js';
4
- export { F as DailyForm } from './Form-BMGo6rYf.js';
14
+ export { F as DailyForm } from './Form-Cleq_dYO.js';
5
15
  export { default as GoogleCalendar } from './GoogleCalendar.js';
6
16
  export { default as Telnyx } from './Telnyx.js';
7
17
  export { default as Twilio } from './Twilio.js';
@@ -13,14 +23,12 @@ export { default as Finish } from './Finish.js';
13
23
  export { default as WalkthroughModal } from './WalkthroughModal.js';
14
24
  import '@babel/runtime/helpers/defineProperty';
15
25
  import '@bigbinary/neeto-cist';
16
- import '@bigbinary/neeto-commons-frontend/react-utils';
17
26
  import '@bigbinary/neeto-icons/Check';
18
27
  import '@bigbinary/neeto-icons/ExternalLink';
19
28
  import '@bigbinary/neetoui/Button';
20
29
  import '@bigbinary/neetoui/Callout';
21
30
  import '@bigbinary/neetoui/Tooltip';
22
31
  import '@bigbinary/neetoui/Typography';
23
- import 'react/jsx-runtime';
24
32
  import '@babel/runtime/helpers/objectWithoutProperties';
25
33
  import '@bigbinary/neeto-commons-frontend/react-utils/withT';
26
34
  import '@bigbinary/neetoui/Alert';
@@ -31,27 +39,115 @@ import '@bigbinary/neeto-commons-frontend/utils';
31
39
  import '@bigbinary/neeto-icons/misc/Daily';
32
40
  import '@bigbinary/neeto-molecules/CopyToClipboardButton';
33
41
  import '@bigbinary/neetoui/Spinner';
34
- import 'react-i18next';
35
42
  import '@bigbinary/neeto-molecules/CardLayout';
36
43
  import '@bigbinary/neeto-molecules/Container';
37
44
  import '@bigbinary/neeto-molecules/Header';
38
45
  import '@bigbinary/neetoui/formik/Input';
39
46
  import '@bigbinary/neetoui/formik/Form';
40
47
  import '@bigbinary/neetoui/formik/ActionBlock';
41
- import 'react-router-dom';
42
- import '@tanstack/react-query';
43
- import '@bigbinary/neeto-commons-frontend/constants';
44
- import 'axios';
45
- import './query-DWavsm0z.js';
46
48
  import 'yup';
47
49
  import '@babel/runtime/helpers/toConsumableArray';
48
50
  import '@bigbinary/neeto-icons/misc/GoogleCalendar';
49
51
  import '@bigbinary/neeto-icons/misc/Google';
50
52
  import '@bigbinary/neeto-molecules/PageLoader';
51
53
  import '@bigbinary/neetoui/formik/Select';
52
- import 'ramda';
53
54
  import '@bigbinary/neeto-icons/misc/Zoom';
54
55
  import '@bigbinary/neetoui/Modal';
55
56
  import 'classnames';
56
57
  import './index-MS1ts-9f.js';
58
+
59
+ var fetch = function fetch() {
60
+ return axios.get(DISCONNECTION_ALERTS_URL);
61
+ };
62
+ var destroyAll = function destroyAll(ids) {
63
+ return axios["delete"]("".concat(DISCONNECTION_ALERTS_URL, "/destroy_all"), {
64
+ params: {
65
+ ids: ids
66
+ }
67
+ });
68
+ };
69
+ var disconnectionAlertsApi = {
70
+ fetch: fetch,
71
+ destroyAll: destroyAll
72
+ };
73
+
74
+ var useFetchDisconnectionAlerts = function useFetchDisconnectionAlerts() {
75
+ return useQuery({
76
+ queryKey: disconnectionAlertsQueryKey,
77
+ queryFn: disconnectionAlertsApi.fetch,
78
+ staleTime: DEFAULT_STALE_TIME,
79
+ refetchOnWindowFocus: "always"
80
+ });
81
+ };
82
+ var useDismissDisconnectionAlerts = function useDismissDisconnectionAlerts() {
83
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
84
+ _onSuccess = _ref.onSuccess;
85
+ return useMutationWithInvalidation(disconnectionAlertsApi.destroyAll, {
86
+ keysToInvalidate: [disconnectionAlertsQueryKey],
87
+ onSuccess: function onSuccess() {
88
+ return _onSuccess === null || _onSuccess === void 0 ? void 0 : _onSuccess();
89
+ }
90
+ });
91
+ };
92
+
93
+ var IntegrationLinks = function IntegrationLinks(_ref) {
94
+ var alerts = _ref.alerts,
95
+ integrationRouteMap = _ref.integrationRouteMap;
96
+ return alerts.map(function (alert, index) {
97
+ var _integrationRouteMap$ = integrationRouteMap[alert.serviceName],
98
+ label = _integrationRouteMap$.label,
99
+ path = _integrationRouteMap$.path;
100
+ var linkPath = alert.redirectPath || path;
101
+ return /*#__PURE__*/jsxs("span", {
102
+ children: [index > 0 && ", ", /*#__PURE__*/jsx(Link, {
103
+ className: "font-semibold underline",
104
+ to: linkPath,
105
+ children: label
106
+ })]
107
+ }, alert.id);
108
+ });
109
+ };
110
+ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_ref2) {
111
+ var _ref2$integrationRout = _ref2.integrationRouteMap,
112
+ integrationRouteMap = _ref2$integrationRout === void 0 ? {} : _ref2$integrationRout;
113
+ useTranslation();
114
+ var _useFetchDisconnectio = useFetchDisconnectionAlerts(),
115
+ _useFetchDisconnectio2 = _useFetchDisconnectio.data,
116
+ _useFetchDisconnectio3 = _useFetchDisconnectio2 === void 0 ? {} : _useFetchDisconnectio2,
117
+ _useFetchDisconnectio4 = _useFetchDisconnectio3.disconnectionAlerts,
118
+ alerts = _useFetchDisconnectio4 === void 0 ? [] : _useFetchDisconnectio4;
119
+ var _useDismissDisconnect = useDismissDisconnectionAlerts(),
120
+ dismissAlerts = _useDismissDisconnect.mutate;
121
+ var knownAlerts = alerts.filter(function (alert) {
122
+ return integrationRouteMap[alert.serviceName];
123
+ });
124
+ if (isEmpty(knownAlerts)) return null;
125
+ return /*#__PURE__*/jsx(Tag, {
126
+ className: "neeto-molecules-sticky-ribbon w-full p-2.5 text-center",
127
+ "data-testid": "disconnected-integrations-ribbon",
128
+ size: "large",
129
+ style: "warning",
130
+ onClose: function onClose() {
131
+ return dismissAlerts(knownAlerts.map(function (alert) {
132
+ return alert.id;
133
+ }));
134
+ },
135
+ children: /*#__PURE__*/jsx("span", {
136
+ className: "w-full",
137
+ children: /*#__PURE__*/jsx(Trans, {
138
+ count: knownAlerts.length,
139
+ defaults: "Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.",
140
+ i18nKey: "neetoIntegrations.disconnectionRibbon.message",
141
+ components: {
142
+ integrations: /*#__PURE__*/jsx(IntegrationLinks, {
143
+ integrationRouteMap: integrationRouteMap,
144
+ alerts: knownAlerts
145
+ })
146
+ }
147
+ })
148
+ })
149
+ });
150
+ };
151
+
152
+ export { DisconnectedIntegrationsRibbon, disconnectionAlertsQueryKey };
57
153
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../app/javascript/src/apis/disconnection_alerts.js","../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js","../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { DISCONNECTION_ALERTS_URL } from \"src/constants/urls\";\n\nconst fetch = () => axios.get(DISCONNECTION_ALERTS_URL);\n\nconst destroyAll = ids =>\n axios.delete(`${DISCONNECTION_ALERTS_URL}/destroy_all`, { params: { ids } });\n\nconst disconnectionAlertsApi = { fetch, destroyAll };\n\nexport default disconnectionAlertsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport disconnectionAlertsApi from \"apis/disconnection_alerts\";\nimport { disconnectionAlertsQueryKey } from \"src/constants/query\";\n\nexport const useFetchDisconnectionAlerts = () =>\n useQuery({\n queryKey: disconnectionAlertsQueryKey,\n queryFn: disconnectionAlertsApi.fetch,\n staleTime: DEFAULT_STALE_TIME,\n refetchOnWindowFocus: \"always\",\n });\n\nexport const useDismissDisconnectionAlerts = ({ onSuccess } = {}) =>\n useMutationWithInvalidation(disconnectionAlertsApi.destroyAll, {\n keysToInvalidate: [disconnectionAlertsQueryKey],\n onSuccess: () => onSuccess?.(),\n });\n","import { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport {\n useFetchDisconnectionAlerts,\n useDismissDisconnectionAlerts,\n} from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link className=\"font-semibold underline\" to={linkPath}>\n {label}\n </Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const { mutate: dismissAlerts } = useDismissDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isEmpty(knownAlerts)) return null;\n\n return (\n <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => dismissAlerts(knownAlerts.map(alert => alert.id))}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults=\"Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.\"\n i18nKey=\"neetoIntegrations.disconnectionRibbon.message\"\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n }}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["fetch","axios","get","DISCONNECTION_ALERTS_URL","destroyAll","ids","concat","params","disconnectionAlertsApi","useFetchDisconnectionAlerts","useQuery","queryKey","disconnectionAlertsQueryKey","queryFn","staleTime","DEFAULT_STALE_TIME","refetchOnWindowFocus","useDismissDisconnectionAlerts","_ref","arguments","length","undefined","onSuccess","useMutationWithInvalidation","keysToInvalidate","IntegrationLinks","alerts","integrationRouteMap","map","alert","index","_integrationRouteMap$","serviceName","label","path","linkPath","redirectPath","_jsxs","children","_jsx","Link","className","to","id","DisconnectedIntegrationsRibbon","_ref2","_ref2$integrationRout","useTranslation","_useFetchDisconnectio","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","_useDismissDisconnect","dismissAlerts","mutate","knownAlerts","filter","isEmpty","Tag","size","style","onClose","Trans","count","defaults","i18nKey","components","integrations"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,KAAK,GAAG,SAARA,KAAKA,GAAA;AAAA,EAAA,OAASC,KAAK,CAACC,GAAG,CAACC,wBAAwB,CAAC;AAAA,CAAA;AAEvD,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAGC,GAAG,EAAA;AAAA,EAAA,OACpBJ,KAAK,CAAA,QAAA,CAAO,CAAA,EAAA,CAAAK,MAAA,CAAIH,wBAAwB,EAAA,cAAA,CAAA,EAAgB;AAAEI,IAAAA,MAAM,EAAE;AAAEF,MAAAA,G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A,EAAA,CACjD,CAAC;AAED,EAAA,IAAI2B,OAAO,CAACF,WAAW,CAAC,EAAE,OAAO,IAAI;EAErC,oBACElB,GAAA,CAACqB,GAAG,EAAA;AACFnB,IAAAA,SAAS,EAAC,wDAAwD;AAClE,IAAA,aAAA,EAAY,kCAAkC;AAC9CoB,IAAAA,IAAI,EAAC,OAAO;AACZC,IAAAA,KAAK,EAAC,SAAS;IACfC,OAAO,EAAE,SAATA,OAAOA,GAAA;AAAA,MAAA,OAAQR,aAAa,CAACE,WAAW,CAAC7B,GAAG,CAAC,UAAAC,KAAK,EAAA;QAAA,OAAIA,KAAK,CAACc,EAAE;AAAA,MAAA,CAAA,CAAC,CAAC;IAAA,CAAC;AAAAL,IAAAA,QAAA,eAEjEC,GAAA,CAAA,MAAA,EAAA;AAAME,MAAAA,SAAS,EAAC,QAAQ;MAAAH,QAAA,eACtBC,GAAA,CAACyB,KAAK,EAAA;QACJC,KAAK,EAAER,WAAW,CAACrC,MAAO;AAC1B8C,QAAAA,QAAQ,EAAC,oGAAoG;AAC7GC,QAAAA,OAAO,EAAC,+CAA+C;AACvDC,QAAAA,UAAU,EAAE;UACVC,YAAY,eACV9B,GAAA,CAACd,gBAAgB,EAAA;AACTE,YAAAA,mBAAmB,EAAnBA,mBAAmB;AACzBD,YAAAA,MAAM,EAAE+B;WACT;AAEL;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;"}
@@ -5,14 +5,17 @@ var INTEGRATIONS_ENGINE_ZOOM_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/zoo
5
5
  var INTEGRATION_DETAILS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/status");
6
6
  var TELNYX_PHONE_NUMBERS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/telnyx/phone_numbers");
7
7
  var TELNYX_SMS_CONFIGURATION_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/telnyx/sms_configurations");
8
+ var DISCONNECTION_ALERTS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/disconnection_alerts");
8
9
 
9
10
  var QUERY_KEYS = {
10
11
  TWILIO_SMS_CONFIGURATION: "twilio-sms-configuration",
11
12
  TWILIO_PHONE_NUMBERS: "twilio-phone-numbers",
12
13
  TELNYX_SMS_CONFIGURATION: "telnyx-sms-configuration",
13
14
  DAILY_CO_DETAILS: "daily-co-details",
14
- ZOOM_DETAILS: "zoom-details"
15
+ ZOOM_DETAILS: "zoom-details",
16
+ DISCONNECTION_ALERTS: "disconnection-alerts"
15
17
  };
18
+ var disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];
16
19
 
17
- export { INTEGRATION_DETAILS_URL as I, QUERY_KEYS as Q, TELNYX_SMS_CONFIGURATION_URL as T, INTEGRATIONS_ENGINE_ZOOM_URL as a, INTEGRATIONS_ENGINE_DAILY_URL as b, TELNYX_PHONE_NUMBERS_URL as c, TWILIO_CONFIGURATION_BASE_URL as d };
18
- //# sourceMappingURL=query-DWavsm0z.js.map
20
+ export { DISCONNECTION_ALERTS_URL as D, INTEGRATIONS_ENGINE_DAILY_URL as I, QUERY_KEYS as Q, TWILIO_CONFIGURATION_BASE_URL as T, TELNYX_SMS_CONFIGURATION_URL as a, TELNYX_PHONE_NUMBERS_URL as b, INTEGRATION_DETAILS_URL as c, disconnectionAlertsQueryKey as d, INTEGRATIONS_ENGINE_ZOOM_URL as e };
21
+ //# sourceMappingURL=query-B3RhGrNb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-B3RhGrNb.js","sources":["../app/javascript/src/constants/urls.js","../app/javascript/src/constants/query.js"],"sourcesContent":["export const INTEGRATIONS_ENGINE_BASE_URL = \"/neeto_integrations\";\nexport const TWILIO_CONFIGURATION_BASE_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/twilio/sms_configurations`;\nexport const INTEGRATIONS_ENGINE_DAILY_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/daily`;\nexport const INTEGRATIONS_ENGINE_ZOOM_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/zoom`;\nexport const INTEGRATION_DETAILS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/status`;\nexport const TELNYX_PHONE_NUMBERS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/phone_numbers`;\nexport const TELNYX_SMS_CONFIGURATION_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/sms_configurations`;\nexport const DISCONNECTION_ALERTS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/disconnection_alerts`;\n","export const QUERY_KEYS = {\n TWILIO_SMS_CONFIGURATION: \"twilio-sms-configuration\",\n TWILIO_PHONE_NUMBERS: \"twilio-phone-numbers\",\n TELNYX_SMS_CONFIGURATION: \"telnyx-sms-configuration\",\n DAILY_CO_DETAILS: \"daily-co-details\",\n ZOOM_DETAILS: \"zoom-details\",\n DISCONNECTION_ALERTS: \"disconnection-alerts\",\n};\n\nexport const disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];\n"],"names":["INTEGRATIONS_ENGINE_BASE_URL","TWILIO_CONFIGURATION_BASE_URL","concat","INTEGRATIONS_ENGINE_DAILY_URL","INTEGRATIONS_ENGINE_ZOOM_URL","INTEGRATION_DETAILS_URL","TELNYX_PHONE_NUMBERS_URL","TELNYX_SMS_CONFIGURATION_URL","DISCONNECTION_ALERTS_URL","QUERY_KEYS","TWILIO_SMS_CONFIGURATION","TWILIO_PHONE_NUMBERS","TELNYX_SMS_CONFIGURATION","DAILY_CO_DETAILS","ZOOM_DETAILS","DISCONNECTION_ALERTS","disconnectionAlertsQueryKey"],"mappings":"AAAO,IAAMA,4BAA4B,GAAG,qBAAqB;IACpDC,6BAA6B,GAAA,EAAA,CAAAC,MAAA,CAAMF,4BAA4B,EAAA,4BAAA;IAC/DG,6BAA6B,GAAA,EAAA,CAAAD,MAAA,CAAMF,4BAA4B,EAAA,QAAA;IAC/DI,4BAA4B,GAAA,EAAA,CAAAF,MAAA,CAAMF,4BAA4B,EAAA,OAAA;IAC9DK,uBAAuB,GAAA,EAAA,CAAAH,MAAA,CAAMF,4BAA4B,EAAA,SAAA;IACzDM,wBAAwB,GAAA,EAAA,CAAAJ,MAAA,CAAMF,4BAA4B,EAAA,uBAAA;IAC1DO,4BAA4B,GAAA,EAAA,CAAAL,MAAA,CAAMF,4BAA4B,EAAA,4BAAA;IAC9DQ,wBAAwB,GAAA,EAAA,CAAAN,MAAA,CAAMF,4BAA4B,EAAA,uBAAA;;ACPhE,IAAMS,UAAU,GAAG;AACxBC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,gBAAgB,EAAE,kBAAkB;AACpCC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,oBAAoB,EAAE;AACxB;IAEaC,2BAA2B,GAAG,CAACP,UAAU,CAACM,oBAAoB;;;;"}
@@ -7,15 +7,19 @@ var INTEGRATIONS_ENGINE_ZOOM_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/zoo
7
7
  var INTEGRATION_DETAILS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/status");
8
8
  var TELNYX_PHONE_NUMBERS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/telnyx/phone_numbers");
9
9
  var TELNYX_SMS_CONFIGURATION_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/telnyx/sms_configurations");
10
+ var DISCONNECTION_ALERTS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/disconnection_alerts");
10
11
 
11
12
  var QUERY_KEYS = {
12
13
  TWILIO_SMS_CONFIGURATION: "twilio-sms-configuration",
13
14
  TWILIO_PHONE_NUMBERS: "twilio-phone-numbers",
14
15
  TELNYX_SMS_CONFIGURATION: "telnyx-sms-configuration",
15
16
  DAILY_CO_DETAILS: "daily-co-details",
16
- ZOOM_DETAILS: "zoom-details"
17
+ ZOOM_DETAILS: "zoom-details",
18
+ DISCONNECTION_ALERTS: "disconnection-alerts"
17
19
  };
20
+ var disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];
18
21
 
22
+ exports.DISCONNECTION_ALERTS_URL = DISCONNECTION_ALERTS_URL;
19
23
  exports.INTEGRATIONS_ENGINE_DAILY_URL = INTEGRATIONS_ENGINE_DAILY_URL;
20
24
  exports.INTEGRATIONS_ENGINE_ZOOM_URL = INTEGRATIONS_ENGINE_ZOOM_URL;
21
25
  exports.INTEGRATION_DETAILS_URL = INTEGRATION_DETAILS_URL;
@@ -23,4 +27,5 @@ exports.QUERY_KEYS = QUERY_KEYS;
23
27
  exports.TELNYX_PHONE_NUMBERS_URL = TELNYX_PHONE_NUMBERS_URL;
24
28
  exports.TELNYX_SMS_CONFIGURATION_URL = TELNYX_SMS_CONFIGURATION_URL;
25
29
  exports.TWILIO_CONFIGURATION_BASE_URL = TWILIO_CONFIGURATION_BASE_URL;
26
- //# sourceMappingURL=query-tu4TNsM9.js.map
30
+ exports.disconnectionAlertsQueryKey = disconnectionAlertsQueryKey;
31
+ //# sourceMappingURL=query-CySi2Ki7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-CySi2Ki7.js","sources":["../app/javascript/src/constants/urls.js","../app/javascript/src/constants/query.js"],"sourcesContent":["export const INTEGRATIONS_ENGINE_BASE_URL = \"/neeto_integrations\";\nexport const TWILIO_CONFIGURATION_BASE_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/twilio/sms_configurations`;\nexport const INTEGRATIONS_ENGINE_DAILY_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/daily`;\nexport const INTEGRATIONS_ENGINE_ZOOM_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/zoom`;\nexport const INTEGRATION_DETAILS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/status`;\nexport const TELNYX_PHONE_NUMBERS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/phone_numbers`;\nexport const TELNYX_SMS_CONFIGURATION_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/telnyx/sms_configurations`;\nexport const DISCONNECTION_ALERTS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/disconnection_alerts`;\n","export const QUERY_KEYS = {\n TWILIO_SMS_CONFIGURATION: \"twilio-sms-configuration\",\n TWILIO_PHONE_NUMBERS: \"twilio-phone-numbers\",\n TELNYX_SMS_CONFIGURATION: \"telnyx-sms-configuration\",\n DAILY_CO_DETAILS: \"daily-co-details\",\n ZOOM_DETAILS: \"zoom-details\",\n DISCONNECTION_ALERTS: \"disconnection-alerts\",\n};\n\nexport const disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];\n"],"names":["INTEGRATIONS_ENGINE_BASE_URL","TWILIO_CONFIGURATION_BASE_URL","concat","INTEGRATIONS_ENGINE_DAILY_URL","INTEGRATIONS_ENGINE_ZOOM_URL","INTEGRATION_DETAILS_URL","TELNYX_PHONE_NUMBERS_URL","TELNYX_SMS_CONFIGURATION_URL","DISCONNECTION_ALERTS_URL","QUERY_KEYS","TWILIO_SMS_CONFIGURATION","TWILIO_PHONE_NUMBERS","TELNYX_SMS_CONFIGURATION","DAILY_CO_DETAILS","ZOOM_DETAILS","DISCONNECTION_ALERTS","disconnectionAlertsQueryKey"],"mappings":";;AAAO,IAAMA,4BAA4B,GAAG,qBAAqB;IACpDC,6BAA6B,GAAA,EAAA,CAAAC,MAAA,CAAMF,4BAA4B,EAAA,4BAAA;IAC/DG,6BAA6B,GAAA,EAAA,CAAAD,MAAA,CAAMF,4BAA4B,EAAA,QAAA;IAC/DI,4BAA4B,GAAA,EAAA,CAAAF,MAAA,CAAMF,4BAA4B,EAAA,OAAA;IAC9DK,uBAAuB,GAAA,EAAA,CAAAH,MAAA,CAAMF,4BAA4B,EAAA,SAAA;IACzDM,wBAAwB,GAAA,EAAA,CAAAJ,MAAA,CAAMF,4BAA4B,EAAA,uBAAA;IAC1DO,4BAA4B,GAAA,EAAA,CAAAL,MAAA,CAAMF,4BAA4B,EAAA,4BAAA;IAC9DQ,wBAAwB,GAAA,EAAA,CAAAN,MAAA,CAAMF,4BAA4B,EAAA,uBAAA;;ACPhE,IAAMS,UAAU,GAAG;AACxBC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,gBAAgB,EAAE,kBAAkB;AACpCC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,oBAAoB,EAAE;AACxB;IAEaC,2BAA2B,GAAG,CAACP,UAAU,CAACM,oBAAoB;;;;;;;;;;;;"}