@bigbinary/neeto-integrations-frontend 4.2.8 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/javascript/src/translations/ar.json +6 -6
- package/app/javascript/src/translations/bg.json +5 -5
- package/app/javascript/src/translations/ca.json +8 -8
- package/app/javascript/src/translations/cs.json +5 -5
- package/app/javascript/src/translations/da.json +2 -2
- package/app/javascript/src/translations/de.json +2 -2
- package/app/javascript/src/translations/en.json +9 -9
- package/app/javascript/src/translations/es-MX.json +8 -8
- package/app/javascript/src/translations/es.json +3 -3
- package/app/javascript/src/translations/et.json +6 -6
- package/app/javascript/src/translations/fi.json +3 -3
- package/app/javascript/src/translations/fil.json +9 -9
- package/app/javascript/src/translations/fr.json +3 -3
- package/app/javascript/src/translations/he.json +4 -4
- package/app/javascript/src/translations/hi.json +5 -5
- package/app/javascript/src/translations/hr.json +5 -5
- package/app/javascript/src/translations/hu.json +2 -2
- package/app/javascript/src/translations/id.json +5 -5
- package/app/javascript/src/translations/it.json +5 -5
- package/app/javascript/src/translations/ja.json +9 -9
- package/app/javascript/src/translations/ko.json +5 -5
- package/app/javascript/src/translations/lv.json +3 -3
- package/app/javascript/src/translations/nl.json +2 -2
- package/app/javascript/src/translations/pl.json +2 -2
- package/app/javascript/src/translations/pt-BR.json +1 -1
- package/app/javascript/src/translations/pt.json +2 -2
- package/app/javascript/src/translations/ro.json +6 -6
- package/app/javascript/src/translations/ru.json +3 -3
- package/app/javascript/src/translations/sk.json +3 -3
- package/app/javascript/src/translations/sl.json +4 -4
- package/app/javascript/src/translations/sv.json +3 -3
- package/app/javascript/src/translations/th.json +4 -4
- package/app/javascript/src/translations/tr.json +9 -9
- package/app/javascript/src/translations/uk.json +4 -4
- package/app/javascript/src/translations/vi.json +9 -9
- package/app/javascript/src/translations/zh-CN.json +1 -1
- package/app/javascript/src/translations/zh-TW.json +2 -2
- package/dist/.ready +1 -1
- package/dist/Connect.js +1 -3
- package/dist/Connect.js.map +1 -1
- package/dist/Daily.js +2 -2
- package/dist/Daily.js.map +1 -1
- package/dist/DailyForm.js +2 -2
- package/dist/DailyForm.js.map +1 -1
- package/dist/Demo.js.map +1 -1
- package/dist/DisconnectAlert.js +1 -3
- package/dist/DisconnectAlert.js.map +1 -1
- package/dist/Finish.js +29 -6
- package/dist/Finish.js.map +1 -1
- package/dist/GoogleCalendar.js +1 -4
- package/dist/GoogleCalendar.js.map +1 -1
- package/dist/Manage.js +1 -3
- package/dist/Manage.js.map +1 -1
- package/dist/Modal.js.map +1 -1
- package/dist/Telnyx.js +8 -8
- package/dist/Telnyx.js.map +1 -1
- package/dist/Twilio.js +2 -4
- package/dist/Twilio.js.map +1 -1
- package/dist/WalkthroughModal.js.map +1 -1
- package/dist/ZapierForm.js +2 -6
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.js +1 -1
- package/dist/Zoom.js.map +1 -1
- package/dist/cjs/Connect.js +1 -3
- package/dist/cjs/Connect.js.map +1 -1
- package/dist/cjs/Daily.js +2 -2
- package/dist/cjs/Daily.js.map +1 -1
- package/dist/cjs/DailyForm.js +2 -2
- package/dist/cjs/DailyForm.js.map +1 -1
- package/dist/cjs/Demo.js.map +1 -1
- package/dist/cjs/DisconnectAlert.js +1 -3
- package/dist/cjs/DisconnectAlert.js.map +1 -1
- package/dist/cjs/Finish.js +48 -6
- package/dist/cjs/Finish.js.map +1 -1
- package/dist/cjs/GoogleCalendar.js +1 -4
- package/dist/cjs/GoogleCalendar.js.map +1 -1
- package/dist/cjs/Manage.js +1 -3
- package/dist/cjs/Manage.js.map +1 -1
- package/dist/cjs/Modal.js.map +1 -1
- package/dist/cjs/Telnyx.js +8 -8
- package/dist/cjs/Telnyx.js.map +1 -1
- package/dist/cjs/Twilio.js +2 -4
- package/dist/cjs/Twilio.js.map +1 -1
- package/dist/cjs/WalkthroughModal.js.map +1 -1
- package/dist/cjs/ZapierForm.js +2 -6
- package/dist/cjs/ZapierForm.js.map +1 -1
- package/dist/cjs/Zoom.js +1 -1
- package/dist/cjs/Zoom.js.map +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/v2/Connect.js +48 -46
- package/dist/cjs/v2/Connect.js.map +1 -1
- package/dist/cjs/v2/Daily.js +5 -3
- package/dist/cjs/v2/Daily.js.map +1 -1
- package/dist/cjs/v2/DailyForm.js +2 -2
- package/dist/cjs/v2/DailyForm.js.map +1 -1
- package/dist/cjs/v2/Demo.js.map +1 -1
- package/dist/cjs/v2/DisconnectAlert.js +1 -3
- package/dist/cjs/v2/DisconnectAlert.js.map +1 -1
- package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js +1 -3
- package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
- package/dist/cjs/v2/Finish.js +4 -6
- package/dist/cjs/v2/Finish.js.map +1 -1
- package/dist/cjs/v2/GoogleCalendar.js +1 -4
- package/dist/cjs/v2/GoogleCalendar.js.map +1 -1
- package/dist/cjs/v2/GoogleMapsForm.js +2 -2
- package/dist/cjs/v2/GoogleMapsForm.js.map +1 -1
- package/dist/cjs/v2/GoogleMapsIcon.js.map +1 -1
- package/dist/cjs/v2/GoogleMapsManage.js +5 -3
- package/dist/cjs/v2/GoogleMapsManage.js.map +1 -1
- package/dist/cjs/v2/Manage.js +70 -91
- package/dist/cjs/v2/Manage.js.map +1 -1
- package/dist/cjs/v2/Modal.js +1 -1
- package/dist/cjs/v2/Modal.js.map +1 -1
- package/dist/cjs/v2/SmsLogs.js +3 -9
- package/dist/cjs/v2/SmsLogs.js.map +1 -1
- package/dist/cjs/v2/Telnyx.js +26 -43
- package/dist/cjs/v2/Telnyx.js.map +1 -1
- package/dist/cjs/v2/Twilio.js +20 -39
- package/dist/cjs/v2/Twilio.js.map +1 -1
- package/dist/cjs/v2/WalkthroughModal.js.map +1 -1
- package/dist/cjs/v2/ZapierForm.js +4 -7
- package/dist/cjs/v2/ZapierForm.js.map +1 -1
- package/dist/cjs/v2/Zoom.js +4 -2
- package/dist/cjs/v2/Zoom.js.map +1 -1
- package/dist/cjs/v2/index.js +11 -8
- package/dist/cjs/v2/index.js.map +1 -1
- package/dist/index-MS1ts-9f.js.map +1 -1
- package/dist/index-dxk7jTL7.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/query-CyER0UTx.js.map +1 -1
- package/dist/query-DFg4la-L.js.map +1 -1
- package/dist/{useDailiesApi-CMyuK99l.js → useDailiesApi-BIZR1qiD.js} +2 -4
- package/dist/useDailiesApi-BIZR1qiD.js.map +1 -0
- package/dist/{useDailiesApi-BmI2LDF7.js → useDailiesApi-BS8aif9t.js} +2 -4
- package/dist/useDailiesApi-BS8aif9t.js.map +1 -0
- package/dist/useDisconnectionAlertsApi-BGaBOO_4.js.map +1 -1
- package/dist/useDisconnectionAlertsApi-BW25EN1l.js.map +1 -1
- package/dist/{useGoogleMapsApi-DypGXFnl.js → useGoogleMapsApi-DcJ5vTJZ.js} +2 -4
- package/dist/useGoogleMapsApi-DcJ5vTJZ.js.map +1 -0
- package/dist/{useGoogleMapsApi-BY5ZIbh1.js → useGoogleMapsApi-sMsxsnL9.js} +2 -4
- package/dist/useGoogleMapsApi-sMsxsnL9.js.map +1 -0
- package/dist/{useTelnyxApi-DH5XaYIo.js → useTelnyxApi-CqB3f44W.js} +2 -4
- package/dist/useTelnyxApi-CqB3f44W.js.map +1 -0
- package/dist/{useTelnyxApi-WH39oUwB.js → useTelnyxApi-fFpslv-E.js} +2 -4
- package/dist/useTelnyxApi-fFpslv-E.js.map +1 -0
- package/dist/{useTwilioApi-CYF8UIPN.js → useTwilioApi-BwkrNBtg.js} +2 -4
- package/dist/useTwilioApi-BwkrNBtg.js.map +1 -0
- package/dist/{useTwilioApi-nN6VRQYc.js → useTwilioApi-CEaEH5MG.js} +2 -4
- package/dist/useTwilioApi-CEaEH5MG.js.map +1 -0
- package/dist/useZoomApi-Be2unav5.js.map +1 -1
- package/dist/useZoomApi-i5CNstmT.js.map +1 -1
- package/dist/utils-fchHJTr3.js +44 -0
- package/dist/utils-fchHJTr3.js.map +1 -0
- package/dist/utils-jyxIYRHb.js +47 -0
- package/dist/utils-jyxIYRHb.js.map +1 -0
- package/dist/v2/Connect.js +48 -46
- package/dist/v2/Connect.js.map +1 -1
- package/dist/v2/Daily.js +5 -3
- package/dist/v2/Daily.js.map +1 -1
- package/dist/v2/DailyForm.js +2 -2
- package/dist/v2/DailyForm.js.map +1 -1
- package/dist/v2/Demo.js.map +1 -1
- package/dist/v2/DisconnectAlert.js +1 -3
- package/dist/v2/DisconnectAlert.js.map +1 -1
- package/dist/v2/DisconnectedIntegrationsRibbon.js +1 -3
- package/dist/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
- package/dist/v2/Finish.js +6 -8
- package/dist/v2/Finish.js.map +1 -1
- package/dist/v2/GoogleCalendar.js +1 -4
- package/dist/v2/GoogleCalendar.js.map +1 -1
- package/dist/v2/GoogleMapsForm.js +2 -2
- package/dist/v2/GoogleMapsForm.js.map +1 -1
- package/dist/v2/GoogleMapsIcon.js.map +1 -1
- package/dist/v2/GoogleMapsManage.js +5 -3
- package/dist/v2/GoogleMapsManage.js.map +1 -1
- package/dist/v2/Manage.js +72 -93
- package/dist/v2/Manage.js.map +1 -1
- package/dist/v2/Modal.js +1 -1
- package/dist/v2/Modal.js.map +1 -1
- package/dist/v2/SmsLogs.js +3 -9
- package/dist/v2/SmsLogs.js.map +1 -1
- package/dist/v2/Telnyx.js +27 -44
- package/dist/v2/Telnyx.js.map +1 -1
- package/dist/v2/Twilio.js +21 -40
- package/dist/v2/Twilio.js.map +1 -1
- package/dist/v2/WalkthroughModal.js.map +1 -1
- package/dist/v2/ZapierForm.js +4 -7
- package/dist/v2/ZapierForm.js.map +1 -1
- package/dist/v2/Zoom.js +4 -2
- package/dist/v2/Zoom.js.map +1 -1
- package/dist/v2/index.js +11 -8
- package/dist/v2/index.js.map +1 -1
- package/package.json +19 -18
- package/dist/success-C6rQdhhF.js +0 -30
- package/dist/success-C6rQdhhF.js.map +0 -1
- package/dist/success-CsNvTPBG.js +0 -51
- package/dist/success-CsNvTPBG.js.map +0 -1
- package/dist/useDailiesApi-BmI2LDF7.js.map +0 -1
- package/dist/useDailiesApi-CMyuK99l.js.map +0 -1
- package/dist/useGoogleMapsApi-BY5ZIbh1.js.map +0 -1
- package/dist/useGoogleMapsApi-DypGXFnl.js.map +0 -1
- package/dist/useTelnyxApi-DH5XaYIo.js.map +0 -1
- package/dist/useTelnyxApi-WH39oUwB.js.map +0 -1
- package/dist/useTwilioApi-CYF8UIPN.js.map +0 -1
- package/dist/useTwilioApi-nN6VRQYc.js.map +0 -1
package/dist/cjs/v2/Zoom.js
CHANGED
|
@@ -14,10 +14,12 @@ require('@bigbinary/neeto-commons-frontend/constants');
|
|
|
14
14
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
15
15
|
require('axios');
|
|
16
16
|
require('../../query-DFg4la-L.js');
|
|
17
|
-
require('@babel/runtime/helpers/
|
|
17
|
+
require('@babel/runtime/helpers/objectSpread2');
|
|
18
18
|
require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
19
|
-
require('
|
|
19
|
+
require('@bigbinary/neeto-molecules/v2/CardLayout');
|
|
20
|
+
require('../../utils-jyxIYRHb.js');
|
|
20
21
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
22
|
+
require('./DisconnectAlert.js');
|
|
21
23
|
require('@bigbinary/neeto-commons-frontend/v2/react-utils/withT');
|
|
22
24
|
|
|
23
25
|
var Zoom = function Zoom(_ref) {
|
package/dist/cjs/v2/Zoom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zoom.js","sources":["../../../app/javascript/src/v2/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Zoom = ({\n connectUrl = \"\",\n description = \"\",\n onDisconnect = noop,\n calloutProps = {},\n}) => {\n const { t } = useTranslation();\n\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata: { email = \"\" } = {} } = {}, isLoading } =\n useShowZoom();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyZoom({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(email);\n\n const handleDisconnect = () => destroyIntegration(\"zoom\");\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n calloutProps,\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Trans\n components={{ underline: <u className=\"font-medium\" /> }}\n i18nKey=\"neetoIntegrations.zoom.account\"\n values={{ email }}\n />\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.zoom.connected\")\n : t(\"neetoIntegrations.zoom.connect\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => handleDisconnect()}\n />\n );\n};\n\nexport default Zoom;\n"],"names":["
|
|
1
|
+
{"version":3,"file":"Zoom.js","sources":["../../../app/javascript/src/v2/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Zoom = ({\n connectUrl = \"\",\n description = \"\",\n onDisconnect = noop,\n calloutProps = {},\n}) => {\n const { t } = useTranslation();\n\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata: { email = \"\" } = {} } = {}, isLoading } =\n useShowZoom();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyZoom({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(email);\n\n const handleDisconnect = () => destroyIntegration(\"zoom\");\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n calloutProps,\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Trans\n components={{ underline: <u className=\"font-medium\" /> }}\n i18nKey=\"neetoIntegrations.zoom.account\"\n values={{ email }}\n />\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.zoom.connected\")\n : t(\"neetoIntegrations.zoom.connect\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => handleDisconnect()}\n />\n );\n};\n\nexport default Zoom;\n"],"names":["noop","useTranslation","useState","useShowZoom","useDestroyZoom","isPresent","_jsx","Spinner","ManageIntegrations","Trans"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAM,IAAI,GAAG,SAAP,IAAI,CAAA,IAAA,EAKJ;AAAA,EAAA,IAAA,eAAA,GAAA,IAAA,CAJJ,UAAU;AAAV,IAAA,UAAU,gCAAG,EAAE,GAAA,eAAA;AAAA,IAAA,gBAAA,GAAA,IAAA,CACf,WAAW;AAAX,IAAA,WAAW,iCAAG,E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
|
|
20
20
|
var v2_Finish = require('./Finish.js');
|
|
21
21
|
var v2_WalkthroughModal = require('./WalkthroughModal.js');
|
|
22
|
-
require('@babel/runtime/helpers/
|
|
22
|
+
require('@babel/runtime/helpers/objectSpread2');
|
|
23
23
|
require('@bigbinary/neeto-atoms');
|
|
24
24
|
require('@bigbinary/neeto-cist');
|
|
25
25
|
require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
26
|
-
require('
|
|
26
|
+
require('@bigbinary/neeto-molecules/v2/CardLayout');
|
|
27
|
+
require('../../utils-jyxIYRHb.js');
|
|
27
28
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
29
|
+
require('react/jsx-runtime');
|
|
28
30
|
require('@bigbinary/neeto-commons-frontend/v2/react-utils/withT');
|
|
29
31
|
require('@babel/runtime/helpers/slicedToArray');
|
|
30
32
|
require('react');
|
|
@@ -38,22 +40,24 @@ require('@bigbinary/neeto-commons-frontend/constants');
|
|
|
38
40
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
39
41
|
require('axios');
|
|
40
42
|
require('i18next');
|
|
41
|
-
require('../../useDailiesApi-
|
|
43
|
+
require('../../useDailiesApi-BS8aif9t.js');
|
|
42
44
|
require('@bigbinary/neeto-commons-frontend/v2/utils');
|
|
43
45
|
require('@bigbinary/neeto-icons/misc/Daily');
|
|
44
46
|
require('@bigbinary/neeto-molecules/v2/CopyToClipboardButton');
|
|
45
47
|
require('@bigbinary/neeto-atoms/formik');
|
|
46
|
-
require('@bigbinary/neeto-molecules/v2/CardLayout');
|
|
47
48
|
require('@bigbinary/neeto-molecules/v2/Container');
|
|
48
49
|
require('@bigbinary/neeto-molecules/v2/Header');
|
|
49
50
|
require('yup');
|
|
50
51
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
51
52
|
require('@bigbinary/neeto-icons/misc/GoogleCalendar');
|
|
52
53
|
require('@bigbinary/neeto-icons/misc/Google');
|
|
53
|
-
require('../../useGoogleMapsApi-
|
|
54
|
-
require('
|
|
54
|
+
require('../../useGoogleMapsApi-sMsxsnL9.js');
|
|
55
|
+
require('@bigbinary/neeto-atoms/primitives');
|
|
56
|
+
require('@bigbinary/neeto-molecules/v2/OptionCard');
|
|
57
|
+
require('../../useTelnyxApi-CqB3f44W.js');
|
|
58
|
+
require('@babel/runtime/helpers/regenerator');
|
|
55
59
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
56
|
-
require('../../useTwilioApi-
|
|
60
|
+
require('../../useTwilioApi-BwkrNBtg.js');
|
|
57
61
|
require('@bigbinary/neeto-icons/misc/Zoom');
|
|
58
62
|
require('../../useZoomApi-Be2unav5.js');
|
|
59
63
|
require('classnames');
|
|
@@ -63,7 +67,6 @@ require('@bigbinary/neeto-molecules/v2/TableWrapper');
|
|
|
63
67
|
require('@bigbinary/neeto-filters-frontend/v2/Bar');
|
|
64
68
|
require('@bigbinary/neeto-molecules/v2/SubHeader');
|
|
65
69
|
require('../../index-dxk7jTL7.js');
|
|
66
|
-
require('../../success-CsNvTPBG.js');
|
|
67
70
|
|
|
68
71
|
|
|
69
72
|
|
package/dist/cjs/v2/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-MS1ts-9f.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","
|
|
1
|
+
{"version":3,"file":"index-MS1ts-9f.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","require$$0","propTypesModule"],"mappings":";;;;;;;;;;;;AASA,IAAIA,sBAAoB,GAAG,8CAA8C;AAEzE,IAAA,sBAAc,GAAGA,sBAAoB;;;;;;;;ACFrC,IAAI,oBAAoB,GAAGC,sBAAqC;AAEhE,SAAS,aAAa,GAAG,CAAA;AACzB,SAAS,sBAAsB,GAAG,CAAA;AAClC,sBAAsB,CAAC,iBAAiB,GAAG,aAAa;AAExD,IAAA,wBAAc,GAAG,SAAjB,wBAAc,GAAc;AAC1B,EAAA,SAAS,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE;IAC5E,IAAI,MAAM,KAAK,oBAAoB,EAAE;AACzC;AACM,MAAA;AACN,IAAA;IACI,IAAI,GAAG,GAAG,IAAI,KAAK,CACjB,sFAAsF,GACtF,+CAA+C,GAC/C,gDACN,CAAK;IACD,GAAG,CAAC,IAAI,GAAG,qBAAqB;AAChC,IAAA,MAAM,GAAG;AACb,EAAA;EACE,IAAI,CAAC,UAAU,GAAG,IAAI;AACtB,EAAA,SAAS,OAAO,GAAG;AACjB,IAAA,OAAO,IAAI;AACf,EAAA;AACA;AACA;AACE,EAAA,IAAI,cAAc,GAAG;AACnB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AAEZ,IAAA,GAAG,EAAE,IAAI;AACT,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,UAAU,EAAE,OAAO;AACnB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,QAAQ,EAAE,OAAO;AACjB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,SAAS,EAAE,OAAO;AAClB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,OAAO;AAEd,IAAA,cAAc,EAAE,sBAAsB;AACtC,IAAA,iBAAiB,EAAE;GACpB;EAED,cAAc,CAAC,SAAS,GAAG,cAAc;AAEzC,EAAA,OAAO,cAAc;AACvB,CAAC;;;;;;;;AClDM;AACP;AACA;AACE,EAAAC,SAAA,CAAA,OAAc,GAAGD,wBAAqC,EAAE;AAC1D;;;;;;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-dxk7jTL7.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","
|
|
1
|
+
{"version":3,"file":"index-dxk7jTL7.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","require$$0","propTypesModule"],"mappings":";;;;;;;;;;;;;;AASA,IAAIA,sBAAoB,GAAG,8CAA8C;AAEzE,IAAA,sBAAc,GAAGA,sBAAoB;;;;;;;;ACFrC,IAAI,oBAAoB,GAAGC,sBAAqC;AAEhE,SAAS,aAAa,GAAG,CAAA;AACzB,SAAS,sBAAsB,GAAG,CAAA;AAClC,sBAAsB,CAAC,iBAAiB,GAAG,aAAa;AAExD,IAAA,wBAAc,GAAG,SAAjB,wBAAc,GAAc;AAC1B,EAAA,SAAS,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE;IAC5E,IAAI,MAAM,KAAK,oBAAoB,EAAE;AACzC;AACM,MAAA;AACN,IAAA;IACI,IAAI,GAAG,GAAG,IAAI,KAAK,CACjB,sFAAsF,GACtF,+CAA+C,GAC/C,gDACN,CAAK;IACD,GAAG,CAAC,IAAI,GAAG,qBAAqB;AAChC,IAAA,MAAM,GAAG;AACb,EAAA;EACE,IAAI,CAAC,UAAU,GAAG,IAAI;AACtB,EAAA,SAAS,OAAO,GAAG;AACjB,IAAA,OAAO,IAAI;AACf,EAAA;AACA;AACA;AACE,EAAA,IAAI,cAAc,GAAG;AACnB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AAEZ,IAAA,GAAG,EAAE,IAAI;AACT,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,UAAU,EAAE,OAAO;AACnB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,QAAQ,EAAE,OAAO;AACjB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,SAAS,EAAE,OAAO;AAClB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,OAAO;AAEd,IAAA,cAAc,EAAE,sBAAsB;AACtC,IAAA,iBAAiB,EAAE;GACpB;EAED,cAAc,CAAC,SAAS,GAAG,cAAc;AAEzC,EAAA,OAAO,cAAc;AACvB,CAAC;;;;;;;;AClDM;AACP;AACA;AACE,EAAAC,SAAA,CAAA,OAAc,GAAGD,wBAAqC,EAAE;AAC1D;;;;;;","x_google_ignoreList":[0,1,2]}
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export { default as Demo } from './Demo.js';
|
|
|
21
21
|
export { default as Finish } from './Finish.js';
|
|
22
22
|
export { default as WalkthroughModal } from './WalkthroughModal.js';
|
|
23
23
|
export { d as disconnectionAlertsQueryKey } from './query-CyER0UTx.js';
|
|
24
|
-
import '@babel/runtime/helpers/
|
|
24
|
+
import '@babel/runtime/helpers/objectSpread2';
|
|
25
25
|
import '@bigbinary/neeto-cist';
|
|
26
26
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
27
27
|
import '@bigbinary/neeto-icons/Check';
|
|
@@ -36,7 +36,7 @@ import '@bigbinary/neetoui/Alert';
|
|
|
36
36
|
import '@tanstack/react-query';
|
|
37
37
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
38
38
|
import 'axios';
|
|
39
|
-
import './useDailiesApi-
|
|
39
|
+
import './useDailiesApi-BIZR1qiD.js';
|
|
40
40
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
41
41
|
import '@bigbinary/neeto-icons/misc/Daily';
|
|
42
42
|
import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
@@ -52,15 +52,15 @@ import '@babel/runtime/helpers/toConsumableArray';
|
|
|
52
52
|
import '@bigbinary/neeto-icons/misc/GoogleCalendar';
|
|
53
53
|
import '@bigbinary/neeto-icons/misc/Google';
|
|
54
54
|
import '@bigbinary/neetoui/formik/Select';
|
|
55
|
-
import './useTelnyxApi-
|
|
55
|
+
import './useTelnyxApi-fFpslv-E.js';
|
|
56
|
+
import '@babel/runtime/helpers/regenerator';
|
|
56
57
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
57
|
-
import './useTwilioApi-
|
|
58
|
+
import './useTwilioApi-CEaEH5MG.js';
|
|
58
59
|
import '@bigbinary/neeto-icons/misc/Zoom';
|
|
59
60
|
import './useZoomApi-i5CNstmT.js';
|
|
60
61
|
import '@bigbinary/neetoui/Modal';
|
|
61
62
|
import 'classnames';
|
|
62
63
|
import './index-MS1ts-9f.js';
|
|
63
|
-
import './success-C6rQdhhF.js';
|
|
64
64
|
|
|
65
65
|
var getHasOnlyUPIIntegration = function getHasOnlyUPIIntegration(alerts) {
|
|
66
66
|
return alerts.length === 1 && alerts[0].serviceName === "eupi";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nimport {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} from \"./utils\";\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 const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\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={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: (\n <Link className=\"font-semibold underline\" to={connectPath} />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nimport {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} from \"./utils\";\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 const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\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={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: (\n <Link className=\"font-semibold underline\" to={connectPath} />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAM,wBAAwB,GAAG,SAA3B,wBAAwB,CAAG,MAAM,EAAA;AAAA,EAAA,OACrC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,KAAK,MAAM;AAAA,CAAA;AAElD,IAAM,oCAAoC,GAAG,SAAvC,oCAAoC,CAAG,MAAM,EAAA;EAAA,OACxD,wBA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QAAA,eAEjCA,GAAA,CAAA,MAAA,EAAA;AAAM,MAAA,SAAS,EAAC,QAAQ;AAAA,MAAA,QAAA,eACtBA,IAAC,KAAK,EAAA;QACJ,KAAK,EAAE,WAAW,CAAC,MAAO;AAC1B,QAAA,QAAQ,EAAE,oCAAoC,CAAC,WAAW,CAAE;AAC5D,QAAA,UAAU,EAAE;UACV,YAAY,eACVA,IAAC,gBAAgB,EAAA;AACT,YAAA,mBAAmB,EAAnB,mBAAmB;AACzB,YAAA,MAAM,EAAE;AAAY,WACrB,CACF;UACD,WAAW,eACTA,IAAC,IAAI,EAAA;AAAC,YAAA,SAAS,EAAC,yBAAyB;AAAC,YAAA,EAAE,EAAE;WAAc;SAE9D;AACF,QAAA,OAAO,EAAE,6BAA6B,CACpC,WAAW,EACX,mBACF;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-CyER0UTx.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_GOOGLE_MAPS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/google_maps`;\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`;\nexport const SMS_LOGS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/sms_logs`;\n","export const QUERY_KEYS = {\n TWILIO_SMS_CONFIGURATION: \"twilio-sms-configuration\",\n TWILIO_SENDER_OPTIONS: \"twilio-sender-options\",\n TELNYX_SMS_CONFIGURATION: \"telnyx-sms-configuration\",\n DAILY_CO_DETAILS: \"daily-co-details\",\n GOOGLE_MAPS_DETAILS: \"google-maps-details\",\n ZOOM_DETAILS: \"zoom-details\",\n DISCONNECTION_ALERTS: \"disconnection-alerts\",\n SMS_LOGS: \"sms-logs\",\n SMS_LOG: \"sms-log\",\n};\n\nexport const disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];\n\nexport const googleMapsQueryKey = [QUERY_KEYS.GOOGLE_MAPS_DETAILS];\n"],"names":[
|
|
1
|
+
{"version":3,"file":"query-CyER0UTx.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_GOOGLE_MAPS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/google_maps`;\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`;\nexport const SMS_LOGS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/sms_logs`;\n","export const QUERY_KEYS = {\n TWILIO_SMS_CONFIGURATION: \"twilio-sms-configuration\",\n TWILIO_SENDER_OPTIONS: \"twilio-sender-options\",\n TELNYX_SMS_CONFIGURATION: \"telnyx-sms-configuration\",\n DAILY_CO_DETAILS: \"daily-co-details\",\n GOOGLE_MAPS_DETAILS: \"google-maps-details\",\n ZOOM_DETAILS: \"zoom-details\",\n DISCONNECTION_ALERTS: \"disconnection-alerts\",\n SMS_LOGS: \"sms-logs\",\n SMS_LOG: \"sms-log\",\n};\n\nexport const disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];\n\nexport const googleMapsQueryKey = [QUERY_KEYS.GOOGLE_MAPS_DETAILS];\n"],"names":[],"mappings":"AAAO,IAAM,4BAA4B,GAAG,qBAAqB;AAC1D,IAAM,6BAA6B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,4BAAA;AACrE,IAAM,6BAA6B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,QAAA;AACrE,IAAM,mCAAmC,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,cAAA;AAC3E,IAAM,4BAA4B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,OAAA;AACpE,IAAM,uBAAuB,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,SAAA;AAC/D,IAAM,wBAAwB,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,uBAAA;AAChE,IAAM,4BAA4B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,4BAAA;AACpE,IAAM,wBAAwB,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,uBAAA;AAChE,IAAM,YAAY,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,WAAA;;ACTpD,IAAM,UAAU,GAAG;AACxB,EAAA,wBAAwB,EAAE,0BAA0B;AACpD,EAAA,qBAAqB,EAAE,uBAAuB;AAC9C,EAAA,wBAAwB,EAAE,0BAA0B;AACpD,EAAA,gBAAgB,EAAE,kBAAkB;AACpC,EAAA,mBAAmB,EAAE,qBAAqB;AAC1C,EAAA,YAAY,EAAE,cAAc;AAC5B,EAAA,oBAAoB,EAAE,sBAAsB;AAC5C,EAAA,QAAQ,EAAE,UAAU;AACpB,EAAA,OAAO,EAAE;AACX;IAEa,2BAA2B,GAAG,CAAC,UAAU,CAAC,oBAAoB;IAE9D,kBAAkB,GAAG,CAAC,UAAU,CAAC,mBAAmB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-DFg4la-L.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_GOOGLE_MAPS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/google_maps`;\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`;\nexport const SMS_LOGS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/sms_logs`;\n","export const QUERY_KEYS = {\n TWILIO_SMS_CONFIGURATION: \"twilio-sms-configuration\",\n TWILIO_SENDER_OPTIONS: \"twilio-sender-options\",\n TELNYX_SMS_CONFIGURATION: \"telnyx-sms-configuration\",\n DAILY_CO_DETAILS: \"daily-co-details\",\n GOOGLE_MAPS_DETAILS: \"google-maps-details\",\n ZOOM_DETAILS: \"zoom-details\",\n DISCONNECTION_ALERTS: \"disconnection-alerts\",\n SMS_LOGS: \"sms-logs\",\n SMS_LOG: \"sms-log\",\n};\n\nexport const disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];\n\nexport const googleMapsQueryKey = [QUERY_KEYS.GOOGLE_MAPS_DETAILS];\n"],"names":[
|
|
1
|
+
{"version":3,"file":"query-DFg4la-L.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_GOOGLE_MAPS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/google_maps`;\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`;\nexport const SMS_LOGS_URL = `${INTEGRATIONS_ENGINE_BASE_URL}/sms_logs`;\n","export const QUERY_KEYS = {\n TWILIO_SMS_CONFIGURATION: \"twilio-sms-configuration\",\n TWILIO_SENDER_OPTIONS: \"twilio-sender-options\",\n TELNYX_SMS_CONFIGURATION: \"telnyx-sms-configuration\",\n DAILY_CO_DETAILS: \"daily-co-details\",\n GOOGLE_MAPS_DETAILS: \"google-maps-details\",\n ZOOM_DETAILS: \"zoom-details\",\n DISCONNECTION_ALERTS: \"disconnection-alerts\",\n SMS_LOGS: \"sms-logs\",\n SMS_LOG: \"sms-log\",\n};\n\nexport const disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];\n\nexport const googleMapsQueryKey = [QUERY_KEYS.GOOGLE_MAPS_DETAILS];\n"],"names":[],"mappings":";;AAAO,IAAM,4BAA4B,GAAG,qBAAqB;AAC1D,IAAM,6BAA6B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,4BAAA;AACrE,IAAM,6BAA6B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,QAAA;AACrE,IAAM,mCAAmC,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,cAAA;AAC3E,IAAM,4BAA4B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,OAAA;AACpE,IAAM,uBAAuB,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,SAAA;AAC/D,IAAM,wBAAwB,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,uBAAA;AAChE,IAAM,4BAA4B,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,4BAAA;AACpE,IAAM,wBAAwB,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,uBAAA;AAChE,IAAM,YAAY,GAAA,EAAA,CAAA,MAAA,CAAM,4BAA4B,EAAA,WAAA;;ACTpD,IAAM,UAAU,GAAG;AACxB,EAAA,wBAAwB,EAAE,0BAA0B;AACpD,EAAA,qBAAqB,EAAE,uBAAuB;AAC9C,EAAA,wBAAwB,EAAE,0BAA0B;AACpD,EAAA,gBAAgB,EAAE,kBAAkB;AACpC,EAAA,mBAAmB,EAAE,qBAAqB;AAC1C,EAAA,YAAY,EAAE,cAAc;AAC5B,EAAA,oBAAoB,EAAE,sBAAsB;AAC5C,EAAA,QAAQ,EAAE,UAAU;AACpB,EAAA,OAAO,EAAE;AACX;IAEa,2BAA2B,GAAG,CAAC,UAAU,CAAC,oBAAoB;IAE9D,kBAAkB,GAAG,CAAC,UAAU,CAAC,mBAAmB;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
4
4
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
@@ -22,8 +22,6 @@ var dailiesApi = {
|
|
|
22
22
|
destroy: destroy
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
25
|
var useCreateDaily = function useCreateDaily() {
|
|
28
26
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
29
27
|
return useMutationWithInvalidation(dailiesApi.create, _objectSpread({
|
|
@@ -46,4 +44,4 @@ var useDestroyDaily = function useDestroyDaily(_ref) {
|
|
|
46
44
|
};
|
|
47
45
|
|
|
48
46
|
export { useDestroyDaily as a, useCreateDaily as b, useFetchDaily as u };
|
|
49
|
-
//# sourceMappingURL=useDailiesApi-
|
|
47
|
+
//# sourceMappingURL=useDailiesApi-BIZR1qiD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDailiesApi-BIZR1qiD.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js"],"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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AAC,UAAU,CAAC,OAAO,EAAE;AAC9C,IAAA,gBAAgB,EAAE,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACjD,IAAA,SAAS,EAAT;AACF,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
4
|
var reactQuery = require('@tanstack/react-query');
|
|
5
5
|
var constants = require('@bigbinary/neeto-commons-frontend/constants');
|
|
6
6
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
@@ -24,8 +24,6 @@ var dailiesApi = {
|
|
|
24
24
|
destroy: destroy
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29
27
|
var useCreateDaily = function useCreateDaily() {
|
|
30
28
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
31
29
|
return reactUtils.useMutationWithInvalidation(dailiesApi.create, _objectSpread({
|
|
@@ -50,4 +48,4 @@ var useDestroyDaily = function useDestroyDaily(_ref) {
|
|
|
50
48
|
exports.useCreateDaily = useCreateDaily;
|
|
51
49
|
exports.useDestroyDaily = useDestroyDaily;
|
|
52
50
|
exports.useFetchDaily = useFetchDaily;
|
|
53
|
-
//# sourceMappingURL=useDailiesApi-
|
|
51
|
+
//# sourceMappingURL=useDailiesApi-BS8aif9t.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDailiesApi-BS8aif9t.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js"],"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"],"names":["INTEGRATIONS_ENGINE_DAILY_URL","useMutationWithInvalidation","QUERY_KEYS","useQuery","DEFAULT_STALE_TIME"],"mappings":";;;;;;;;;AAIA,IAAM,MAAM,GAAG,SAAT,MAAM,CAAG,OAAO,EAAA;AAAA,EAAA,OACpB,KAAK,CAAC,IAAI,CAACA,mCAA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AT;AACF,GAAC,CAAC;AAAA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDisconnectionAlertsApi-BGaBOO_4.js","sources":["../app/javascript/src/apis/disconnection_alerts.js","../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js"],"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"],"names":["
|
|
1
|
+
{"version":3,"file":"useDisconnectionAlertsApi-BGaBOO_4.js","sources":["../app/javascript/src/apis/disconnection_alerts.js","../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js"],"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"],"names":["DISCONNECTION_ALERTS_URL","useQuery","disconnectionAlertsQueryKey","DEFAULT_STALE_TIME"],"mappings":";;;;;;;;AAIA,IAAM,KAAK,GAAG,SAAR,KAAK,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAACA,8BAAwB,CAAC;AAAA,CAAA;AAKvD,IAAM,sBAAsB,GAAG;AAAE,EAAA,KAAK,EAAL,KAAkB,CAAC;;ACF7C,IAAM,2BAA2B,GAAG,SAA9B,2BAA2B,GAAA;AAAA,EAAA,OACtCC,mBAAQ,CAAC;AACP,IAAA,QAAQ,EAAEC,iCAA2B;IACrC,OAAO,EAAE,sBAAsB,CAAC,KAAK;AACrC,IAAA,SAAS,EAAEC,4BAAkB;AAC7B,IAAA,oBAAoB,EAAE;AACxB,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDisconnectionAlertsApi-BW25EN1l.js","sources":["../app/javascript/src/apis/disconnection_alerts.js","../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js"],"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"],"names":[
|
|
1
|
+
{"version":3,"file":"useDisconnectionAlertsApi-BW25EN1l.js","sources":["../app/javascript/src/apis/disconnection_alerts.js","../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js"],"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"],"names":[],"mappings":";;;;;;AAIA,IAAM,KAAK,GAAG,SAAR,KAAK,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAAC,wBAAwB,CAAC;AAAA,CAAA;AAKvD,IAAM,sBAAsB,GAAG;AAAE,EAAA,KAAK,EAAL,KAAkB,CAAC;;ACF7C,IAAM,2BAA2B,GAAG,SAA9B,2BAA2B,GAAA;AAAA,EAAA,OACtC,QAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,sBAAsB,CAAC,KAAK;AACrC,IAAA,SAAS,EAAE,kBAAkB;AAC7B,IAAA,oBAAoB,EAAE;AACxB,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
4
4
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
@@ -22,8 +22,6 @@ var googleMapsApi = {
|
|
|
22
22
|
destroy: destroy
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
25
|
var useFetchGoogleMaps = function useFetchGoogleMaps() {
|
|
28
26
|
return useQuery({
|
|
29
27
|
queryKey: googleMapsQueryKey,
|
|
@@ -45,4 +43,4 @@ var useDestroyGoogleMaps = function useDestroyGoogleMaps() {
|
|
|
45
43
|
};
|
|
46
44
|
|
|
47
45
|
export { useDestroyGoogleMaps as a, useCreateGoogleMaps as b, useFetchGoogleMaps as u };
|
|
48
|
-
//# sourceMappingURL=useGoogleMapsApi-
|
|
46
|
+
//# sourceMappingURL=useGoogleMapsApi-DcJ5vTJZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGoogleMapsApi-DcJ5vTJZ.js","sources":["../app/javascript/src/apis/google_maps.js","../app/javascript/src/hooks/reactQuery/useGoogleMapsApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL, { googleMaps: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst googleMapsApi = { create, show, destroy };\n\nexport default googleMapsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport googleMapsApi from \"apis/google_maps\";\nimport { googleMapsQueryKey } from \"src/constants/query\";\n\nexport const useFetchGoogleMaps = () =>\n useQuery({\n queryKey: googleMapsQueryKey,\n queryFn: googleMapsApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useCreateGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.create, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n\nexport const useDestroyGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.destroy, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n"],"names":[],"mappings":";;;;;;;AAIA,IAAM,MAAM,GAAG,SAAT,MAAM,CAAG,OAAO,EAAA;AAAA,EAAA,OACpB,KAAK,CAAC,IAAI,CAAC,mCAAmC,EAAE;AAAE,IAAA,UAAU,EAAE;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAM,IAAI,GAAG,SAAP,IAAI,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAAC,mCAAmC,CAAC;AAAA,CAAA;AAEjE,IAAM,OAAO,GAAG,SAAV,OAAO,GAAA;AAAA,EAAA,OAAS,KAAK,CAAA,QAAA,CAAO,CAAC,mCAAmC,CAAC;AAAA,CAAA;AAEvE,IAAM,aAAa,GAAG;AAAE,EAAA,MAAM,EAAN,MAAM;AAAE,EAAA,IAAI,EAAJ,IAAI;AAAE,EAAA,OAAO,EAAP;AAAQ,CAAC;;ACJxC,IAAM,kBAAkB,GAAG,SAArB,kBAAkB,GAAA;AAAA,EAAA,OAC7B,QAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE,aAAa,CAAC,IAAI;AAC3B,IAAA,SAAS,EAAE;AACb,GAAC,CAAC;AAAA;AAEG,IAAM,mBAAmB,GAAG,SAAtB,mBAAmB,GAAA;EAAA,IAAI,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAC9C,2BAA2B,CAAC,aAAa,CAAC,MAAM,EAAA,aAAA,CAAA;IAC9C,gBAAgB,EAAE,CAAC,kBAAkB;GAAC,EACnC,OAAO,CACX,CAAC;AAAA;AAEG,IAAM,oBAAoB,GAAG,SAAvB,oBAAoB,GAAA;EAAA,IAAI,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAC/C,2BAA2B,CAAC,aAAa,CAAC,OAAO,EAAA,aAAA,CAAA;IAC/C,gBAAgB,EAAE,CAAC,kBAAkB;GAAC,EACnC,OAAO,CACX,CAAC;AAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
4
|
var reactQuery = require('@tanstack/react-query');
|
|
5
5
|
var constants = require('@bigbinary/neeto-commons-frontend/constants');
|
|
6
6
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
@@ -24,8 +24,6 @@ var googleMapsApi = {
|
|
|
24
24
|
destroy: destroy
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29
27
|
var useFetchGoogleMaps = function useFetchGoogleMaps() {
|
|
30
28
|
return reactQuery.useQuery({
|
|
31
29
|
queryKey: query.googleMapsQueryKey,
|
|
@@ -49,4 +47,4 @@ var useDestroyGoogleMaps = function useDestroyGoogleMaps() {
|
|
|
49
47
|
exports.useCreateGoogleMaps = useCreateGoogleMaps;
|
|
50
48
|
exports.useDestroyGoogleMaps = useDestroyGoogleMaps;
|
|
51
49
|
exports.useFetchGoogleMaps = useFetchGoogleMaps;
|
|
52
|
-
//# sourceMappingURL=useGoogleMapsApi-
|
|
50
|
+
//# sourceMappingURL=useGoogleMapsApi-sMsxsnL9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGoogleMapsApi-sMsxsnL9.js","sources":["../app/javascript/src/apis/google_maps.js","../app/javascript/src/hooks/reactQuery/useGoogleMapsApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL, { googleMaps: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst googleMapsApi = { create, show, destroy };\n\nexport default googleMapsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport googleMapsApi from \"apis/google_maps\";\nimport { googleMapsQueryKey } from \"src/constants/query\";\n\nexport const useFetchGoogleMaps = () =>\n useQuery({\n queryKey: googleMapsQueryKey,\n queryFn: googleMapsApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useCreateGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.create, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n\nexport const useDestroyGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.destroy, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n"],"names":["INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL","useQuery","googleMapsQueryKey","DEFAULT_STALE_TIME","useMutationWithInvalidation"],"mappings":";;;;;;;;;AAIA,IAAM,MAAM,GAAG,SAAT,MAAM,CAAG,OAAO,EAAA;AAAA,EAAA,OACpB,KAAK,CAAC,IAAI,CAACA,yCAAmC,EAAE;AAAE,IAAA,UAAU,EAAE;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAM,IAAI,GAAG,SAAP,IAAI,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAACA,yCAAmC,CAAC;AAAA,CAAA;AAEjE,IAAM,OAAO,GAAG,SAAV,OAAO,GAAA;AAAA,EAAA,OAAS,KAAK,CAAA,QAAA,CAAO,CAACA,yCAAmC,CAAC;AAAA,CAAA;AAEvE,IAAM,aAAa,GAAG;AAAE,EAAA,MAAM,EAAN,MAAM;AAAE,EAAA,IAAI,EAAJ,IAAI;AAAE,EAAA,OAAO,EAAP;AAAQ,CAAC;;ACJxC,IAAM,kBAAkB,GAAG,SAArB,kBAAkB,GAAA;AAAA,EAAA,OAC7BC,mBAAQ,CAAC;AACP,IAAA,QAAQ,EAAEC,wBAAkB;IAC5B,OAAO,EAAE,aAAa,CAAC,IAAI;AAC3B,IAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;AAEG,IAAM,mBAAmB,GAAG,SAAtB,mBAAmB,GAAA;EAAA,IAAI,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAC9CC,sCAA2B,CAAC,aAAa,CAAC,MAAM,EAAA,aAAA,CAAA;IAC9C,gBAAgB,EAAE,CAACF,wBAAkB;GAAC,EACnC,OAAO,CACX,CAAC;AAAA;AAEG,IAAM,oBAAoB,GAAG,SAAvB,oBAAoB,GAAA;EAAA,IAAI,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAC/CE,sCAA2B,CAAC,aAAa,CAAC,OAAO,EAAA,aAAA,CAAA;IAC/C,gBAAgB,EAAE,CAACF,wBAAkB;GAAC,EACnC,OAAO,CACX,CAAC;AAAA;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
4
4
|
var reactQuery = require('@tanstack/react-query');
|
|
5
5
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
6
6
|
var ramda = require('ramda');
|
|
@@ -52,8 +52,6 @@ var telnyxApi = {
|
|
|
52
52
|
createTelnyxSmsConfiguration: createTelnyxSmsConfiguration
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
56
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
57
55
|
var useFetchTelnyxSmsConfiguration = function useFetchTelnyxSmsConfiguration(_ref) {
|
|
58
56
|
var integrable = _ref.integrable;
|
|
59
57
|
return reactQuery.useQuery({
|
|
@@ -134,4 +132,4 @@ exports.useFetchTelnyxConfiguration = useFetchTelnyxConfiguration;
|
|
|
134
132
|
exports.useFetchTelnyxMessagingProfileSenders = useFetchTelnyxMessagingProfileSenders;
|
|
135
133
|
exports.useFetchTelnyxSenderOptions = useFetchTelnyxSenderOptions;
|
|
136
134
|
exports.useUpsertTelnyxConfiguration = useUpsertTelnyxConfiguration;
|
|
137
|
-
//# sourceMappingURL=useTelnyxApi-
|
|
135
|
+
//# sourceMappingURL=useTelnyxApi-CqB3f44W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTelnyxApi-CqB3f44W.js","sources":["../app/javascript/src/apis/telnyx.js","../app/javascript/src/hooks/reactQuery/useTelnyxApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport {\n TELNYX_PHONE_NUMBERS_URL,\n TELNYX_SMS_CONFIGURATION_URL,\n} from \"src/constants/urls\";\n\nconst fetchTelnyxSmsConfiguration = integrable =>\n axios.get(TELNYX_SMS_CONFIGURATION_URL, { params: integrable });\n\nconst fetchTelnyxPhoneNumbers = ({ apiKey, messagingProfileId }) =>\n axios.get(TELNYX_PHONE_NUMBERS_URL, {\n params: { telnyx: { apiKey, messagingProfileId } },\n });\n\nconst createTelnyxSmsConfiguration = payload =>\n axios.post(TELNYX_SMS_CONFIGURATION_URL, { telnyx: payload });\n\nexport const fetchSenderOptions = ({ apiKey }) =>\n axios.get(\"/neeto_integrations/telnyx/sender_options\", {\n params: { api_key: apiKey },\n });\n\nexport const fetchMessagingProfileSenders = ({ apiKey, messagingProfileId }) =>\n axios.get(\n `/neeto_integrations/telnyx/messaging_profiles/${messagingProfileId}/senders`,\n { params: { api_key: apiKey } }\n );\n\nconst telnyxApi = {\n fetchTelnyxPhoneNumbers,\n fetchTelnyxSmsConfiguration,\n createTelnyxSmsConfiguration,\n};\n\nexport default telnyxApi;\n","import { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { prop } from \"ramda\";\n\nimport telnyxApi, {\n fetchSenderOptions,\n fetchMessagingProfileSenders,\n} from \"apis/telnyx\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nconst useFetchTelnyxSmsConfiguration = ({ integrable }) =>\n useQuery({\n queryKey: [\n QUERY_KEYS.TELNYX_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n queryFn: () => telnyxApi.fetchTelnyxSmsConfiguration(integrable),\n select: prop(\"smsConfiguration\"),\n });\n\n// Alias used by the v2 Telnyx form\nconst useFetchTelnyxConfiguration = useFetchTelnyxSmsConfiguration;\n\nconst useFetchTelnyxPhoneNumbers = () =>\n useMutation({ mutationFn: telnyxApi.fetchTelnyxPhoneNumbers });\n\nconst useCreateTelnyxSmsConfiguration = ({ integrable }) =>\n useMutationWithInvalidation(telnyxApi.createTelnyxSmsConfiguration, {\n keysToInvalidate: [\n [\n QUERY_KEYS.TELNYX_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n ],\n });\n\n// Alias used by the v2 Telnyx form\nconst useUpsertTelnyxConfiguration = ({ integrable, onSuccess }) => {\n const mutation = useCreateTelnyxSmsConfiguration({ integrable });\n\n return {\n ...mutation,\n mutateAsync: payload =>\n new Promise((resolve, reject) => {\n mutation.mutate(payload, {\n onSuccess: () => {\n onSuccess?.();\n resolve();\n },\n onError: reject,\n });\n }),\n };\n};\n\nexport const useFetchTelnyxSenderOptions = ({ credentials }) => {\n const apiKey = credentials?.apiKey;\n const hasValidApiKey = typeof apiKey === \"string\" && apiKey.trim().length > 0;\n\n return useQuery({\n queryKey: [\"telnyxSenderOptions\", { apiKey }],\n queryFn: () => fetchSenderOptions({ apiKey }),\n enabled: hasValidApiKey,\n staleTime: 60_000,\n retry: false,\n });\n};\n\nexport const useFetchTelnyxMessagingProfileSenders = ({\n apiKey,\n messagingProfileId,\n enabled,\n}) =>\n useQuery({\n queryKey: [\"telnyxMessagingProfileSenders\", messagingProfileId],\n queryFn: () => fetchMessagingProfileSenders({ apiKey, messagingProfileId }),\n enabled: !!enabled && !!apiKey && !!messagingProfileId,\n staleTime: 60_000,\n });\n\nexport {\n useFetchTelnyxPhoneNumbers,\n useFetchTelnyxSmsConfiguration,\n useCreateTelnyxSmsConfiguration,\n useFetchTelnyxConfiguration,\n useUpsertTelnyxConfiguration,\n};\n"],"names":["TELNYX_SMS_CONFIGURATION_URL","TELNYX_PHONE_NUMBERS_URL","useQuery","QUERY_KEYS","prop","useMutationWithInvalidation","onSuccess"],"mappings":";;;;;;;;;AAOA,IAAM,2BAA2B,GAAG,SAA9B,2BAA2B,CAAG,UAAU,EAAA;AAAA,EAAA,OAC5C,KAAK,CAAC,GAAG,CAACA,kCAA4B,EAAE;AAAE,IAAA,MAAM,EAAE;AAAW,GAAC,CAAC;AAAA,CAAA;AAEjE,IAAM,uBAAuB,GAAG,SAA1B,uBAAuB,CAAA,IAAA,EAAA;EAAA,IAAM,MAAM,QAAN,MAAM;AAAE,IAAA,kBAAkB,QAAlB,kBAAkB;AAAA,EAAA,OAC3D,KAAK,CAAC,GAAG,CAACC,8BAAwB,EAAE;AAClC,IAAA,MAAM,EAAE;AAAE,MAAA,MAAM,EAAE;AAAE,QAAA,MAAM,EAAN,MAAM;AAAE,QAAA,kBAAkB,EAAlB;AAAmB;AAAE;AACnD,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAM,4BAA4B,GAAG,SAA/B,4BAA4B,CAAG,OAAO,EAAA;AAAA,EAAA,OAC1C,KAAK,CAAC,IAAI,CAACD,kCAA4B,EAAE;AAAE,IAAA,MAAM,EAAE;AAAQ,GAAC,CAAC;AAAA,CAAA;AAExD,IAAM,kBAAkB,GAAG,SAArB,kBAAkB,CAAA,KAAA,EAAA;EAAA,IAAM,MAAM,SAAN,MAAM;AAAA,EAA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AM,cAAc,GAAG,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC;AAE7E,EAAA,OAAOJ,mBAAQ,CAAC;IACd,QAAQ,EAAE,CAAC,qBAAqB,EAAE;AAAE,MAAA,MAAM,EAAN;AAAO,KAAC,CAAC;IAC7C,OAAO,EAAE,SAAT,OAAO,GAAA;AAAA,MAAA,OAAQ,kBAAkB,CAAC;AAAE,QAAA,MAAM,EAAN;AAAO,OAAC,CAAC;AAAA,IAAA,CAAA;AAC7C,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,SAAS,EAAE,KAAM;AACjB,IAAA,KAAK,EAAE;AACT,GAAC,CAAC;AACJ;AAEO,IAAM,qCAAqC,GAAG,SAAxC,qCAAqC,CAAA,KAAA,EAAA;EAAA,IAChD,MAAM,SAAN,MAAM;AACN,IAAA,kBAAkB,SAAlB,kBAAkB;AAClB,IAAA,OAAO,SAAP,OAAO;AAAA,EAAA,OAEPA,mBAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;IAC/D,OAAO,EAAE,SAAT,OAAO,GAAA;AAAA,MAAA,OAAQ,4BAA4B,CAAC;AAAE,QAAA,MAAM,EAAN,MAAM;AAAE,QAAA,kBAAkB,EAAlB;AAAmB,OAAC,CAAC;AAAA,IAAA,CAAA;IAC3E,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,kBAAkB;AACtD,IAAA,SAAS,EAAE;AACb,GAAC,CAAC;AAAA;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import { useQuery } from '@tanstack/react-query';
|
|
3
3
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
4
|
import { prop } from 'ramda';
|
|
@@ -50,8 +50,6 @@ var telnyxApi = {
|
|
|
50
50
|
createTelnyxSmsConfiguration: createTelnyxSmsConfiguration
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
54
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
55
53
|
var useFetchTelnyxSmsConfiguration = function useFetchTelnyxSmsConfiguration(_ref) {
|
|
56
54
|
var integrable = _ref.integrable;
|
|
57
55
|
return useQuery({
|
|
@@ -129,4 +127,4 @@ var useFetchTelnyxMessagingProfileSenders = function useFetchTelnyxMessagingProf
|
|
|
129
127
|
};
|
|
130
128
|
|
|
131
129
|
export { useFetchTelnyxConfiguration as a, useFetchTelnyxSenderOptions as b, useUpsertTelnyxConfiguration as c, useFetchTelnyxMessagingProfileSenders as u };
|
|
132
|
-
//# sourceMappingURL=useTelnyxApi-
|
|
130
|
+
//# sourceMappingURL=useTelnyxApi-fFpslv-E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTelnyxApi-fFpslv-E.js","sources":["../app/javascript/src/apis/telnyx.js","../app/javascript/src/hooks/reactQuery/useTelnyxApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport {\n TELNYX_PHONE_NUMBERS_URL,\n TELNYX_SMS_CONFIGURATION_URL,\n} from \"src/constants/urls\";\n\nconst fetchTelnyxSmsConfiguration = integrable =>\n axios.get(TELNYX_SMS_CONFIGURATION_URL, { params: integrable });\n\nconst fetchTelnyxPhoneNumbers = ({ apiKey, messagingProfileId }) =>\n axios.get(TELNYX_PHONE_NUMBERS_URL, {\n params: { telnyx: { apiKey, messagingProfileId } },\n });\n\nconst createTelnyxSmsConfiguration = payload =>\n axios.post(TELNYX_SMS_CONFIGURATION_URL, { telnyx: payload });\n\nexport const fetchSenderOptions = ({ apiKey }) =>\n axios.get(\"/neeto_integrations/telnyx/sender_options\", {\n params: { api_key: apiKey },\n });\n\nexport const fetchMessagingProfileSenders = ({ apiKey, messagingProfileId }) =>\n axios.get(\n `/neeto_integrations/telnyx/messaging_profiles/${messagingProfileId}/senders`,\n { params: { api_key: apiKey } }\n );\n\nconst telnyxApi = {\n fetchTelnyxPhoneNumbers,\n fetchTelnyxSmsConfiguration,\n createTelnyxSmsConfiguration,\n};\n\nexport default telnyxApi;\n","import { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\nimport { prop } from \"ramda\";\n\nimport telnyxApi, {\n fetchSenderOptions,\n fetchMessagingProfileSenders,\n} from \"apis/telnyx\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nconst useFetchTelnyxSmsConfiguration = ({ integrable }) =>\n useQuery({\n queryKey: [\n QUERY_KEYS.TELNYX_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n queryFn: () => telnyxApi.fetchTelnyxSmsConfiguration(integrable),\n select: prop(\"smsConfiguration\"),\n });\n\n// Alias used by the v2 Telnyx form\nconst useFetchTelnyxConfiguration = useFetchTelnyxSmsConfiguration;\n\nconst useFetchTelnyxPhoneNumbers = () =>\n useMutation({ mutationFn: telnyxApi.fetchTelnyxPhoneNumbers });\n\nconst useCreateTelnyxSmsConfiguration = ({ integrable }) =>\n useMutationWithInvalidation(telnyxApi.createTelnyxSmsConfiguration, {\n keysToInvalidate: [\n [\n QUERY_KEYS.TELNYX_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n ],\n });\n\n// Alias used by the v2 Telnyx form\nconst useUpsertTelnyxConfiguration = ({ integrable, onSuccess }) => {\n const mutation = useCreateTelnyxSmsConfiguration({ integrable });\n\n return {\n ...mutation,\n mutateAsync: payload =>\n new Promise((resolve, reject) => {\n mutation.mutate(payload, {\n onSuccess: () => {\n onSuccess?.();\n resolve();\n },\n onError: reject,\n });\n }),\n };\n};\n\nexport const useFetchTelnyxSenderOptions = ({ credentials }) => {\n const apiKey = credentials?.apiKey;\n const hasValidApiKey = typeof apiKey === \"string\" && apiKey.trim().length > 0;\n\n return useQuery({\n queryKey: [\"telnyxSenderOptions\", { apiKey }],\n queryFn: () => fetchSenderOptions({ apiKey }),\n enabled: hasValidApiKey,\n staleTime: 60_000,\n retry: false,\n });\n};\n\nexport const useFetchTelnyxMessagingProfileSenders = ({\n apiKey,\n messagingProfileId,\n enabled,\n}) =>\n useQuery({\n queryKey: [\"telnyxMessagingProfileSenders\", messagingProfileId],\n queryFn: () => fetchMessagingProfileSenders({ apiKey, messagingProfileId }),\n enabled: !!enabled && !!apiKey && !!messagingProfileId,\n staleTime: 60_000,\n });\n\nexport {\n useFetchTelnyxPhoneNumbers,\n useFetchTelnyxSmsConfiguration,\n useCreateTelnyxSmsConfiguration,\n useFetchTelnyxConfiguration,\n useUpsertTelnyxConfiguration,\n};\n"],"names":["onSuccess"],"mappings":";;;;;;;AAOA,IAAM,2BAA2B,GAAG,SAA9B,2BAA2B,CAAG,UAAU,EAAA;AAAA,EAAA,OAC5C,KAAK,CAAC,GAAG,CAAC,4BAA4B,EAAE;AAAE,IAAA,MAAM,EAAE;AAAW,GAAC,CAAC;AAAA,CAAA;AAEjE,IAAM,uBAAuB,GAAG,SAA1B,uBAAuB,CAAA,IAAA,EAAA;EAAA,IAAM,MAAM,QAAN,MAAM;AAAE,IAAA,kBAAkB,QAAlB,kBAAkB;AAAA,EAAA,OAC3D,KAAK,CAAC,GAAG,CAAC,wBAAwB,EA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AAlB;AAAmB,OAAC,CAAC;AAAA,IAAA,CAAA;IAC3E,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,kBAAkB;AACtD,IAAA,SAAS,EAAE;AACb,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
var reactQuery = require('@tanstack/react-query');
|
|
4
4
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
5
5
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
6
|
-
var
|
|
6
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
7
7
|
var axios = require('axios');
|
|
8
8
|
var query = require('./query-DFg4la-L.js');
|
|
9
9
|
|
|
10
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
10
|
var fetchTwilioSmsConfiguration = function fetchTwilioSmsConfiguration(integrable) {
|
|
13
11
|
return axios.get(query.TWILIO_CONFIGURATION_BASE_URL, {
|
|
14
12
|
params: integrable
|
|
@@ -116,4 +114,4 @@ exports.useCreateTwilioConfiguration = useCreateTwilioConfiguration;
|
|
|
116
114
|
exports.useFetchTwilioMessagingServiceSenders = useFetchTwilioMessagingServiceSenders;
|
|
117
115
|
exports.useFetchTwilioSenderOptions = useFetchTwilioSenderOptions;
|
|
118
116
|
exports.useFetchTwilioSmsConfiguration = useFetchTwilioSmsConfiguration;
|
|
119
|
-
//# sourceMappingURL=useTwilioApi-
|
|
117
|
+
//# sourceMappingURL=useTwilioApi-BwkrNBtg.js.map
|