@bigbinary/neeto-integrations-frontend 4.0.32 → 4.0.33
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/en.json +23 -2
- package/dist/.ready +1 -1
- package/dist/Daily.js +2 -2
- package/dist/DailyForm.js +2 -2
- package/dist/Manage.js +4 -1
- package/dist/Manage.js.map +1 -1
- package/dist/Telnyx.js +2 -2
- package/dist/Twilio.js +200 -68
- package/dist/Twilio.js.map +1 -1
- package/dist/Zoom.js +2 -2
- package/dist/cjs/Daily.js +2 -2
- package/dist/cjs/DailyForm.js +2 -2
- package/dist/cjs/Manage.js +4 -1
- package/dist/cjs/Manage.js.map +1 -1
- package/dist/cjs/Telnyx.js +2 -2
- package/dist/cjs/Twilio.js +199 -67
- package/dist/cjs/Twilio.js.map +1 -1
- package/dist/cjs/Zoom.js +2 -2
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/v2/Daily.js +2 -2
- package/dist/cjs/v2/DailyForm.js +2 -2
- package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js +2 -2
- package/dist/cjs/v2/Telnyx.js +2 -2
- package/dist/cjs/v2/Twilio.js +199 -67
- package/dist/cjs/v2/Twilio.js.map +1 -1
- package/dist/cjs/v2/Zoom.js +2 -2
- package/dist/cjs/v2/index.js +6 -6
- package/dist/index.js +6 -6
- package/dist/{query-CySi2Ki7.js → query-BF3HFRA7.js} +2 -2
- package/dist/query-BF3HFRA7.js.map +1 -0
- package/dist/{query-B3RhGrNb.js → query-gurbhBqu.js} +2 -2
- package/dist/query-gurbhBqu.js.map +1 -0
- package/dist/{useDailiesApi-BjcmweuZ.js → useDailiesApi-CEJPknLb.js} +2 -2
- package/dist/{useDailiesApi-BjcmweuZ.js.map → useDailiesApi-CEJPknLb.js.map} +1 -1
- package/dist/{useDailiesApi-C78LSYFo.js → useDailiesApi-aQmuxf-5.js} +2 -2
- package/dist/{useDailiesApi-C78LSYFo.js.map → useDailiesApi-aQmuxf-5.js.map} +1 -1
- package/dist/{useDisconnectionAlertsApi-BnfMKA7s.js → useDisconnectionAlertsApi-BOc2pEP_.js} +2 -2
- package/dist/{useDisconnectionAlertsApi-BnfMKA7s.js.map → useDisconnectionAlertsApi-BOc2pEP_.js.map} +1 -1
- package/dist/{useDisconnectionAlertsApi-C8Q2wbVl.js → useDisconnectionAlertsApi-CWMlpOJD.js} +2 -2
- package/dist/{useDisconnectionAlertsApi-C8Q2wbVl.js.map → useDisconnectionAlertsApi-CWMlpOJD.js.map} +1 -1
- package/dist/{useTelnyxApi-DnNSPd-d.js → useTelnyxApi-Cv5cIiuo.js} +2 -2
- package/dist/{useTelnyxApi-DnNSPd-d.js.map → useTelnyxApi-Cv5cIiuo.js.map} +1 -1
- package/dist/{useTelnyxApi-DDTzGMgk.js → useTelnyxApi-DS3IVijP.js} +2 -2
- package/dist/{useTelnyxApi-DDTzGMgk.js.map → useTelnyxApi-DS3IVijP.js.map} +1 -1
- package/dist/{useTwilioApi-D5HpIaB2.js → useTwilioApi-C57UuOda.js} +20 -12
- package/dist/useTwilioApi-C57UuOda.js.map +1 -0
- package/dist/{useTwilioApi-DPyyUWOs.js → useTwilioApi-CUL0-Xgf.js} +20 -12
- package/dist/useTwilioApi-CUL0-Xgf.js.map +1 -0
- package/dist/{useZoomApi-B127NAGl.js → useZoomApi-C8AUYMlp.js} +2 -2
- package/dist/{useZoomApi-B127NAGl.js.map → useZoomApi-C8AUYMlp.js.map} +1 -1
- package/dist/{useZoomApi-CazQYmYH.js → useZoomApi-CkhVE1e8.js} +2 -2
- package/dist/{useZoomApi-CazQYmYH.js.map → useZoomApi-CkhVE1e8.js.map} +1 -1
- package/dist/v2/Daily.js +2 -2
- package/dist/v2/DailyForm.js +2 -2
- package/dist/v2/DisconnectedIntegrationsRibbon.js +2 -2
- package/dist/v2/Telnyx.js +2 -2
- package/dist/v2/Twilio.js +200 -68
- package/dist/v2/Twilio.js.map +1 -1
- package/dist/v2/Zoom.js +2 -2
- package/dist/v2/index.js +6 -6
- package/package.json +14 -14
- package/dist/query-B3RhGrNb.js.map +0 -1
- package/dist/query-CySi2Ki7.js.map +0 -1
- package/dist/useTwilioApi-D5HpIaB2.js.map +0 -1
- package/dist/useTwilioApi-DPyyUWOs.js.map +0 -1
|
@@ -11,7 +11,7 @@ var DISCONNECTION_ALERTS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/disconn
|
|
|
11
11
|
|
|
12
12
|
var QUERY_KEYS = {
|
|
13
13
|
TWILIO_SMS_CONFIGURATION: "twilio-sms-configuration",
|
|
14
|
-
|
|
14
|
+
TWILIO_SENDER_OPTIONS: "twilio-sender-options",
|
|
15
15
|
TELNYX_SMS_CONFIGURATION: "telnyx-sms-configuration",
|
|
16
16
|
DAILY_CO_DETAILS: "daily-co-details",
|
|
17
17
|
ZOOM_DETAILS: "zoom-details",
|
|
@@ -28,4 +28,4 @@ exports.TELNYX_PHONE_NUMBERS_URL = TELNYX_PHONE_NUMBERS_URL;
|
|
|
28
28
|
exports.TELNYX_SMS_CONFIGURATION_URL = TELNYX_SMS_CONFIGURATION_URL;
|
|
29
29
|
exports.TWILIO_CONFIGURATION_BASE_URL = TWILIO_CONFIGURATION_BASE_URL;
|
|
30
30
|
exports.disconnectionAlertsQueryKey = disconnectionAlertsQueryKey;
|
|
31
|
-
//# sourceMappingURL=query-
|
|
31
|
+
//# sourceMappingURL=query-BF3HFRA7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-BF3HFRA7.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_SENDER_OPTIONS: \"twilio-sender-options\",\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_SENDER_OPTIONS","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,qBAAqB,EAAE,uBAAuB;AAC9CC,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;;;;;;;;;;;;"}
|
|
@@ -9,7 +9,7 @@ var DISCONNECTION_ALERTS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/disconn
|
|
|
9
9
|
|
|
10
10
|
var QUERY_KEYS = {
|
|
11
11
|
TWILIO_SMS_CONFIGURATION: "twilio-sms-configuration",
|
|
12
|
-
|
|
12
|
+
TWILIO_SENDER_OPTIONS: "twilio-sender-options",
|
|
13
13
|
TELNYX_SMS_CONFIGURATION: "telnyx-sms-configuration",
|
|
14
14
|
DAILY_CO_DETAILS: "daily-co-details",
|
|
15
15
|
ZOOM_DETAILS: "zoom-details",
|
|
@@ -18,4 +18,4 @@ var QUERY_KEYS = {
|
|
|
18
18
|
var disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];
|
|
19
19
|
|
|
20
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-
|
|
21
|
+
//# sourceMappingURL=query-gurbhBqu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-gurbhBqu.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_SENDER_OPTIONS: \"twilio-sender-options\",\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_SENDER_OPTIONS","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,qBAAqB,EAAE,uBAAuB;AAC9CC,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;;;;"}
|
|
@@ -5,7 +5,7 @@ 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');
|
|
7
7
|
var axios = require('axios');
|
|
8
|
-
var query = require('./query-
|
|
8
|
+
var query = require('./query-BF3HFRA7.js');
|
|
9
9
|
|
|
10
10
|
var create = function create(payload) {
|
|
11
11
|
return axios.post(query.INTEGRATIONS_ENGINE_DAILY_URL, {
|
|
@@ -50,4 +50,4 @@ var useDestroyDaily = function useDestroyDaily(_ref) {
|
|
|
50
50
|
exports.useCreateDaily = useCreateDaily;
|
|
51
51
|
exports.useDestroyDaily = useDestroyDaily;
|
|
52
52
|
exports.useFetchDaily = useFetchDaily;
|
|
53
|
-
//# sourceMappingURL=useDailiesApi-
|
|
53
|
+
//# sourceMappingURL=useDailiesApi-CEJPknLb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDailiesApi-
|
|
1
|
+
{"version":3,"file":"useDailiesApi-CEJPknLb.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":["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"],"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,UAAU,GAAG;AAAET,EAAAA,MAAM,EAANA,MAAM;AAAEM,EAAAA,IAAI,EAAJA,IAAI;AAAEE,EAAAA,OAAO,EAAPA;AAAQ,CAAC;;;;ACJrC,IAAME,cAAc,GAAG,SAAjBA,cAAcA,GAAA;AAAA,EAAA,IAAIC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OACzCG,sCAA2B,CAACN,UAAU,CAACT,MAAM,EAAAgB,aAAA,CAAA;AAC3CC,IAAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAACC,gBAAgB,CAAC;GAAC,EAC9CR,OAAO,CACX,CAAC;AAAA;AAEG,IAAMS,aAAa,GAAG,SAAhBA,aAAaA,GAAA;AAAA,EAAA,OACxBC,mBAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACJ,gBAAU,CAACC,gBAAgB,CAAC;IACvCI,OAAO,EAAEd,UAAU,CAACH,IAAI;AACxBkB,IAAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;IAESC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,SAAS,GAAAD,IAAA,CAATC,SAAS;AAAA,EAAA,OACzCb,sCAA2B,CAACN,UAAU,CAACD,OAAO,EAAE;AAC9CS,IAAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAACC,gBAAgB,CAAC,CAAC;AACjDS,IAAAA,SAAS,EAATA;AACF,GAAC,CAAC;AAAA;;;;;;"}
|
|
@@ -3,7 +3,7 @@ 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';
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { I as INTEGRATIONS_ENGINE_DAILY_URL, Q as QUERY_KEYS } from './query-
|
|
6
|
+
import { I as INTEGRATIONS_ENGINE_DAILY_URL, Q as QUERY_KEYS } from './query-gurbhBqu.js';
|
|
7
7
|
|
|
8
8
|
var create = function create(payload) {
|
|
9
9
|
return axios.post(INTEGRATIONS_ENGINE_DAILY_URL, {
|
|
@@ -46,4 +46,4 @@ var useDestroyDaily = function useDestroyDaily(_ref) {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export { useDestroyDaily as a, useCreateDaily as b, useFetchDaily as u };
|
|
49
|
-
//# sourceMappingURL=useDailiesApi-
|
|
49
|
+
//# sourceMappingURL=useDailiesApi-aQmuxf-5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDailiesApi-
|
|
1
|
+
{"version":3,"file":"useDailiesApi-aQmuxf-5.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":["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_DETA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GAAC,CAAC;AAAA;IAESC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,SAAS,GAAAD,IAAA,CAATC,SAAS;AAAA,EAAA,OACzCb,2BAA2B,CAACN,UAAU,CAACD,OAAO,EAAE;AAC9CS,IAAAA,gBAAgB,EAAE,CAAC,CAACC,UAAU,CAACC,gBAAgB,CAAC,CAAC;AACjDS,IAAAA,SAAS,EAATA;AACF,GAAC,CAAC;AAAA;;;;"}
|
package/dist/{useDisconnectionAlertsApi-BnfMKA7s.js → useDisconnectionAlertsApi-BOc2pEP_.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { useQuery } from '@tanstack/react-query';
|
|
|
2
2
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
3
3
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
4
|
import axios from 'axios';
|
|
5
|
-
import { D as DISCONNECTION_ALERTS_URL, d as disconnectionAlertsQueryKey } from './query-
|
|
5
|
+
import { D as DISCONNECTION_ALERTS_URL, d as disconnectionAlertsQueryKey } from './query-gurbhBqu.js';
|
|
6
6
|
|
|
7
7
|
var fetch = function fetch() {
|
|
8
8
|
return axios.get(DISCONNECTION_ALERTS_URL);
|
|
@@ -39,4 +39,4 @@ var useDismissDisconnectionAlerts = function useDismissDisconnectionAlerts() {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export { useDismissDisconnectionAlerts as a, useFetchDisconnectionAlerts as u };
|
|
42
|
-
//# sourceMappingURL=useDisconnectionAlertsApi-
|
|
42
|
+
//# sourceMappingURL=useDisconnectionAlertsApi-BOc2pEP_.js.map
|
package/dist/{useDisconnectionAlertsApi-BnfMKA7s.js.map → useDisconnectionAlertsApi-BOc2pEP_.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDisconnectionAlertsApi-
|
|
1
|
+
{"version":3,"file":"useDisconnectionAlertsApi-BOc2pEP_.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":["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"],"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;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binary/neeto-commons-frontend/constants');
|
|
5
5
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
6
6
|
var axios = require('axios');
|
|
7
|
-
var query = require('./query-
|
|
7
|
+
var query = require('./query-BF3HFRA7.js');
|
|
8
8
|
|
|
9
9
|
var fetch = function fetch() {
|
|
10
10
|
return axios.get(query.DISCONNECTION_ALERTS_URL);
|
|
@@ -42,4 +42,4 @@ var useDismissDisconnectionAlerts = function useDismissDisconnectionAlerts() {
|
|
|
42
42
|
|
|
43
43
|
exports.useDismissDisconnectionAlerts = useDismissDisconnectionAlerts;
|
|
44
44
|
exports.useFetchDisconnectionAlerts = useFetchDisconnectionAlerts;
|
|
45
|
-
//# sourceMappingURL=useDisconnectionAlertsApi-
|
|
45
|
+
//# sourceMappingURL=useDisconnectionAlertsApi-CWMlpOJD.js.map
|
package/dist/{useDisconnectionAlertsApi-C8Q2wbVl.js.map → useDisconnectionAlertsApi-CWMlpOJD.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDisconnectionAlertsApi-
|
|
1
|
+
{"version":3,"file":"useDisconnectionAlertsApi-CWMlpOJD.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":["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"],"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;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,iCAA2B,CAAC;IAC/CU,SAAS,EAAE,SAAXA,SAASA,GAAA;AAAA,MAAA,OAAQA,UAAS,KAAA,IAAA,IAATA,UAAS,KAAA,MAAA,GAAA,MAAA,GAATA,UAAS,EAAI;AAAA,IAAA;AAChC,GAAC,CAAC;AAAA;;;;;"}
|
|
@@ -2,7 +2,7 @@ import { useQuery, useMutation } from '@tanstack/react-query';
|
|
|
2
2
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
3
3
|
import { prop } from 'ramda';
|
|
4
4
|
import axios from 'axios';
|
|
5
|
-
import { a as TELNYX_SMS_CONFIGURATION_URL, b as TELNYX_PHONE_NUMBERS_URL, Q as QUERY_KEYS } from './query-
|
|
5
|
+
import { a as TELNYX_SMS_CONFIGURATION_URL, b as TELNYX_PHONE_NUMBERS_URL, Q as QUERY_KEYS } from './query-gurbhBqu.js';
|
|
6
6
|
|
|
7
7
|
var fetchTelnyxSmsConfiguration = function fetchTelnyxSmsConfiguration(integrable) {
|
|
8
8
|
return axios.get(TELNYX_SMS_CONFIGURATION_URL, {
|
|
@@ -55,4 +55,4 @@ var useCreateTelnyxSmsConfiguration = function useCreateTelnyxSmsConfiguration(_
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
export { useFetchTelnyxPhoneNumbers as a, useCreateTelnyxSmsConfiguration as b, useFetchTelnyxSmsConfiguration as u };
|
|
58
|
-
//# sourceMappingURL=useTelnyxApi-
|
|
58
|
+
//# sourceMappingURL=useTelnyxApi-Cv5cIiuo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTelnyxApi-
|
|
1
|
+
{"version":3,"file":"useTelnyxApi-Cv5cIiuo.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\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 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\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\nexport {\n useFetchTelnyxPhoneNumbers,\n useFetchTelnyxSmsConfiguration,\n useCreateTelnyxSmsConfiguration,\n};\n"],"names":["fetchTelnyxSmsConfiguration","integrable","axios","get","TELNYX_SMS_CONFIGURATION_URL","params","fetchTelnyxPhoneNumbers","_ref","apiKey","messagingProfileId","TELNYX_PHONE_NUMBERS_URL","telnyx","createTelnyxSmsConfiguration","payload","post","telnyxApi","useFetchTelnyxSmsConfiguration","useQuery","queryKey","QUERY_KEYS","TELNYX_SMS_CONFIGURATION","integrableType","integrableId","queryFn","select","prop","useFetchTelnyxPhoneNumbers","useMutation","mutationFn","useCreateTelnyxSmsConfiguration","_ref2","useMutationWithInvalidation","keysToInvalidate"],"mappings":";;;;;;AAOA,IAAMA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAGC,UAAU,EAAA;AAAA,EAAA,OAC5CC,KAAK,CAACC,GAAG,CAACC,4BAA4B,EAAE;AAAEC,IAAAA,MAAM,EAAEJ;AAAW,GAAC,CAAC;AAAA,CAAA;AAEjE,IAAMK,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,kBAAkB,GAAAF,IAAA,CAAlBE,kBAAkB;AAAA,EAAA,OAC3DP,KAAK,CAACC,GAAG,CAACO,wBAAwB,EAAE;AAClCL,IAAAA,MAAM,EAAE;AAAEM,MAAAA,MAAM,EAAE;AAAEH,QAAAA,MAAM,EAANA,MAAM;AAAEC,QAAAA,kBAAkB,EAAlBA;AAAmB;AAAE;AACnD,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAMG,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAAGC,OAAO,EAAA;AAAA,EAAA,OAC1C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MAAA,GAAA,MAAA,GAAVA,UAAU,CAAEoB,cAAc,EAC1BpB,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAA,MAAA,GAAA,MAAA,GAAVA,UAAU,CAAEqB,YAAY,CACzB;AAEL,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -4,7 +4,7 @@ var reactQuery = require('@tanstack/react-query');
|
|
|
4
4
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
5
5
|
var ramda = require('ramda');
|
|
6
6
|
var axios = require('axios');
|
|
7
|
-
var query = require('./query-
|
|
7
|
+
var query = require('./query-BF3HFRA7.js');
|
|
8
8
|
|
|
9
9
|
var fetchTelnyxSmsConfiguration = function fetchTelnyxSmsConfiguration(integrable) {
|
|
10
10
|
return axios.get(query.TELNYX_SMS_CONFIGURATION_URL, {
|
|
@@ -59,4 +59,4 @@ var useCreateTelnyxSmsConfiguration = function useCreateTelnyxSmsConfiguration(_
|
|
|
59
59
|
exports.useCreateTelnyxSmsConfiguration = useCreateTelnyxSmsConfiguration;
|
|
60
60
|
exports.useFetchTelnyxPhoneNumbers = useFetchTelnyxPhoneNumbers;
|
|
61
61
|
exports.useFetchTelnyxSmsConfiguration = useFetchTelnyxSmsConfiguration;
|
|
62
|
-
//# sourceMappingURL=useTelnyxApi-
|
|
62
|
+
//# sourceMappingURL=useTelnyxApi-DS3IVijP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTelnyxApi-
|
|
1
|
+
{"version":3,"file":"useTelnyxApi-DS3IVijP.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\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 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\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\nexport {\n useFetchTelnyxPhoneNumbers,\n useFetchTelnyxSmsConfiguration,\n useCreateTelnyxSmsConfiguration,\n};\n"],"names":["fetchTelnyxSmsConfiguration","integrable","axios","get","TELNYX_SMS_CONFIGURATION_URL","params","fetchTelnyxPhoneNumbers","_ref","apiKey","messagingProfileId","TELNYX_PHONE_NUMBERS_URL","telnyx","createTelnyxSmsConfiguration","payload","post","telnyxApi","useFetchTelnyxSmsConfiguration","useQuery","queryKey","QUERY_KEYS","TELNYX_SMS_CONFIGURATION","integrableType","integrableId","queryFn","select","prop","useFetchTelnyxPhoneNumbers","useMutation","mutationFn","useCreateTelnyxSmsConfiguration","_ref2","useMutationWithInvalidation","keysToInvalidate"],"mappings":";;;;;;;;AAOA,IAAMA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAGC,UAAU,EAAA;AAAA,EAAA,OAC5CC,KAAK,CAACC,GAAG,CAACC,kCAA4B,EAAE;AAAEC,IAAAA,MAAM,EAAEJ;AAAW,GAAC,CAAC;AAAA,CAAA;AAEjE,IAAMK,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,kBAAkB,GAAAF,IAAA,CAAlBE,kBAAkB;AAAA,EAAA,OAC3DP,KAAK,CAACC,GAAG,CAACO,8BAAwB,EAAE;AAClCL,IAAAA,MAAM,EAAE;AAAEM,MAAAA,MAAM,EAAE;AAAEH,QAAAA,MAAM,EAANA,MAAM;AAAEC,QAAAA,kBAAkB,EAAlBA;AAAmB;AAAE;AACnD,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAMG,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAAGC,OAAO,EAAA;AAAA,EAAA,OAC1CX,KAAK,CAACY,IAAI,CAACV,kCAA4B,EAAE;AAAEO,IAAAA,MAAM,EAAEE;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAME,SAAS,GAAG;AAChBT,EAAAA,uBAAuB,EAAvBA,uBAAuB;AACvBN,EAAAA,2BAA2B,EAA3BA,2BAA2B;AAC3BY,EAAAA,4BAA4B,EAA5BA;AACF,CAAC;;ACfD,IAAMI,8BAA8B,GAAG,SAAjCA,8BAA8BA,CAAAT,IAAA,EAAA;AAAA,EAAA,IAAMN,UAAU,GAAAM,IAAA,CAAVN,UAAU;AAAA,EAAA,OAClDgB,mBAAQ,CAAC;IACPC,QAAQ,EAAE,CACRC,gBAAU,CAACC,wBAAwB,EACnCnB,UAAU,aAAVA,UAAU,KAAA,MAAA,GAAA,MAAA,GAAVA,UAAU,CAAEoB,cAAc,EAC1BpB,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAA,MAAA,GAAA,MAAA,GAAVA,UAAU,CAAEqB,YAAY,CACzB;IACDC,OAAO,EAAE,SAATA,OAAOA,GAAA;AAAA,MAAA,OAAQR,SAAS,CAACf,2BAA2B,CAACC,UAAU,CAAC;AAAA,IAAA,CAAA;IAChEuB,MAAM,EAAEC,UAAI,CAAC,kBAAkB;AACjC,GAAC,CAAC;AAAA;AAEJ,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA0BA,GAAA;AAAA,EAAA,OAC9BC,sBAAW,CAAC;IAAEC,UAAU,EAAEb,SAAS,CAACT;AAAwB,GAAC,CAAC;AAAA;AAEhE,IAAMuB,+BAA+B,GAAG,SAAlCA,+BAA+BA,CAAAC,KAAA,EAAA;AAAA,EAAA,IAAM7B,UAAU,GAAA6B,KAAA,CAAV7B,UAAU;AAAA,EAAA,OACnD8B,sCAA2B,CAAChB,SAAS,CAACH,4BAA4B,EAAE;IAClEoB,gBAAgB,EAAE,CAChB,CACEb,gBAAU,CAACC,wBAAwB,EACnCnB,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAA,MAAA,GAAA,MAAA,GAAVA,UAAU,CAAEoB,cAAc,EAC1BpB,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAA,MAAA,GAAA,MAAA,GAAVA,UAAU,CAAEqB,YAAY,CACzB;AAEL,GAAC,CAAC;AAAA;;;;;;"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useQuery } from '@tanstack/react-query';
|
|
2
2
|
import { keysToSnakeCase } from '@bigbinary/neeto-cist';
|
|
3
3
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
|
-
import { prop } from 'ramda';
|
|
5
4
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
5
|
import axios from 'axios';
|
|
7
|
-
import { T as TWILIO_CONFIGURATION_BASE_URL, Q as QUERY_KEYS } from './query-
|
|
6
|
+
import { T as TWILIO_CONFIGURATION_BASE_URL, Q as QUERY_KEYS } from './query-gurbhBqu.js';
|
|
8
7
|
|
|
9
8
|
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; }
|
|
10
9
|
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; }
|
|
@@ -16,7 +15,7 @@ var fetchTwilioSmsConfiguration = function fetchTwilioSmsConfiguration(integrabl
|
|
|
16
15
|
var removeTwilioConfiguration = function removeTwilioConfiguration() {
|
|
17
16
|
return axios["delete"](TWILIO_CONFIGURATION_BASE_URL);
|
|
18
17
|
};
|
|
19
|
-
var
|
|
18
|
+
var getTwilioSenderOptions = function getTwilioSenderOptions(data) {
|
|
20
19
|
return axios.get("".concat(TWILIO_CONFIGURATION_BASE_URL, "/new"), {
|
|
21
20
|
params: data
|
|
22
21
|
});
|
|
@@ -27,7 +26,7 @@ var createTwilioConfiguration = function createTwilioConfiguration(payload, inte
|
|
|
27
26
|
var twilioApi = {
|
|
28
27
|
fetchTwilioSmsConfiguration: fetchTwilioSmsConfiguration,
|
|
29
28
|
removeTwilioConfiguration: removeTwilioConfiguration,
|
|
30
|
-
|
|
29
|
+
getTwilioSenderOptions: getTwilioSenderOptions,
|
|
31
30
|
createTwilioConfiguration: createTwilioConfiguration
|
|
32
31
|
};
|
|
33
32
|
|
|
@@ -39,29 +38,38 @@ var useFetchTwilioSmsConfiguration = function useFetchTwilioSmsConfiguration(_re
|
|
|
39
38
|
return twilioApi.fetchTwilioSmsConfiguration(integrable);
|
|
40
39
|
},
|
|
41
40
|
select: function select(response) {
|
|
42
|
-
var _smsConfiguration$twi, _smsConfiguration$twi2, _smsConfiguration$twi3;
|
|
41
|
+
var _smsConfiguration$twi, _smsConfiguration$twi2, _smsConfiguration$con, _smsConfiguration$twi3, _smsConfiguration$twi4, _smsConfiguration$twi5;
|
|
43
42
|
var smsConfiguration = response.smsConfiguration;
|
|
44
43
|
return {
|
|
45
44
|
twilioSid: (_smsConfiguration$twi = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioSid) !== null && _smsConfiguration$twi !== void 0 ? _smsConfiguration$twi : "",
|
|
46
45
|
twilioAuthToken: (_smsConfiguration$twi2 = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioAuthToken) !== null && _smsConfiguration$twi2 !== void 0 ? _smsConfiguration$twi2 : "",
|
|
47
|
-
|
|
46
|
+
connectionType: (_smsConfiguration$con = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.connectionType) !== null && _smsConfiguration$con !== void 0 ? _smsConfiguration$con : "",
|
|
47
|
+
twilioPhoneNumber: (_smsConfiguration$twi3 = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioPhoneNumber) !== null && _smsConfiguration$twi3 !== void 0 ? _smsConfiguration$twi3 : "",
|
|
48
|
+
twilioMessagingServiceSid: (_smsConfiguration$twi4 = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioMessagingServiceSid) !== null && _smsConfiguration$twi4 !== void 0 ? _smsConfiguration$twi4 : "",
|
|
49
|
+
twilioMessagingServiceFriendlyName: (_smsConfiguration$twi5 = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioMessagingServiceFriendlyName) !== null && _smsConfiguration$twi5 !== void 0 ? _smsConfiguration$twi5 : ""
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
});
|
|
51
53
|
};
|
|
52
|
-
var
|
|
54
|
+
var useFetchTwilioSenderOptions = function useFetchTwilioSenderOptions(_ref2) {
|
|
53
55
|
var _formRef$current, _formRef$current2;
|
|
54
56
|
var credentials = _ref2.credentials,
|
|
55
57
|
formRef = _ref2.formRef;
|
|
56
58
|
return useQuery({
|
|
57
|
-
queryKey: [QUERY_KEYS.
|
|
59
|
+
queryKey: [QUERY_KEYS.TWILIO_SENDER_OPTIONS, {
|
|
58
60
|
credentials: credentials
|
|
59
61
|
}],
|
|
60
62
|
queryFn: function queryFn() {
|
|
61
|
-
return twilioApi.
|
|
63
|
+
return twilioApi.getTwilioSenderOptions(keysToSnakeCase(credentials));
|
|
62
64
|
},
|
|
63
65
|
enabled: !!(credentials !== null && credentials !== void 0 && credentials.twilio_sid) || !!(credentials !== null && credentials !== void 0 && credentials.twilioSid) || !!(formRef !== null && formRef !== void 0 && (_formRef$current = formRef.current) !== null && _formRef$current !== void 0 && (_formRef$current = _formRef$current.values) !== null && _formRef$current !== void 0 && _formRef$current.twilioSid) || !!(formRef !== null && formRef !== void 0 && (_formRef$current2 = formRef.current) !== null && _formRef$current2 !== void 0 && (_formRef$current2 = _formRef$current2.values) !== null && _formRef$current2 !== void 0 && _formRef$current2.twilioAuthToken),
|
|
64
|
-
select:
|
|
66
|
+
select: function select(response) {
|
|
67
|
+
var _response$phoneNumber, _response$messagingSe;
|
|
68
|
+
return {
|
|
69
|
+
phoneNumbers: (_response$phoneNumber = response.phoneNumbers) !== null && _response$phoneNumber !== void 0 ? _response$phoneNumber : [],
|
|
70
|
+
messagingServices: (_response$messagingSe = response.messagingServices) !== null && _response$messagingSe !== void 0 ? _response$messagingSe : []
|
|
71
|
+
};
|
|
72
|
+
},
|
|
65
73
|
retry: false
|
|
66
74
|
});
|
|
67
75
|
};
|
|
@@ -74,5 +82,5 @@ var useCreateTwilioConfiguration = function useCreateTwilioConfiguration(_ref3)
|
|
|
74
82
|
});
|
|
75
83
|
};
|
|
76
84
|
|
|
77
|
-
export {
|
|
78
|
-
//# sourceMappingURL=useTwilioApi-
|
|
85
|
+
export { useFetchTwilioSenderOptions as a, useCreateTwilioConfiguration as b, useFetchTwilioSmsConfiguration as u };
|
|
86
|
+
//# sourceMappingURL=useTwilioApi-C57UuOda.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTwilioApi-C57UuOda.js","sources":["../app/javascript/src/apis/twilio.js","../app/javascript/src/hooks/reactQuery/useTwilioApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { TWILIO_CONFIGURATION_BASE_URL } from \"src/constants/urls\";\n\nconst fetchTwilioSmsConfiguration = integrable =>\n axios.get(TWILIO_CONFIGURATION_BASE_URL, { params: integrable });\n\nconst removeTwilioConfiguration = () =>\n axios.delete(TWILIO_CONFIGURATION_BASE_URL);\n\nconst getTwilioSenderOptions = data =>\n axios.get(`${TWILIO_CONFIGURATION_BASE_URL}/new`, { params: data });\n\nconst createTwilioConfiguration = (payload, integrable) =>\n axios.post(TWILIO_CONFIGURATION_BASE_URL, { ...payload, ...integrable });\n\nconst twilioApi = {\n fetchTwilioSmsConfiguration,\n removeTwilioConfiguration,\n getTwilioSenderOptions,\n createTwilioConfiguration,\n};\n\nexport default twilioApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { keysToSnakeCase } from \"neetocist\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport twilioApi from \"apis/twilio\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nconst useFetchTwilioSmsConfiguration = ({ integrable }) =>\n useQuery({\n queryKey: [\n QUERY_KEYS.TWILIO_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n queryFn: () => twilioApi.fetchTwilioSmsConfiguration(integrable),\n select: response => {\n const smsConfiguration = response.smsConfiguration;\n\n return {\n twilioSid: smsConfiguration?.twilioSid ?? \"\",\n twilioAuthToken: smsConfiguration?.twilioAuthToken ?? \"\",\n connectionType: smsConfiguration?.connectionType ?? \"\",\n twilioPhoneNumber: smsConfiguration?.twilioPhoneNumber ?? \"\",\n twilioMessagingServiceSid:\n smsConfiguration?.twilioMessagingServiceSid ?? \"\",\n twilioMessagingServiceFriendlyName:\n smsConfiguration?.twilioMessagingServiceFriendlyName ?? \"\",\n };\n },\n });\n\nconst useFetchTwilioSenderOptions = ({ credentials, formRef }) =>\n useQuery({\n queryKey: [QUERY_KEYS.TWILIO_SENDER_OPTIONS, { credentials }],\n queryFn: () =>\n twilioApi.getTwilioSenderOptions(keysToSnakeCase(credentials)),\n enabled:\n !!credentials?.twilio_sid ||\n !!credentials?.twilioSid ||\n !!formRef?.current?.values?.twilioSid ||\n !!formRef?.current?.values?.twilioAuthToken,\n select: response => ({\n phoneNumbers: response.phoneNumbers ?? [],\n messagingServices: response.messagingServices ?? [],\n }),\n retry: false,\n });\n\nconst useCreateTwilioConfiguration = ({ integrable }) =>\n useMutationWithInvalidation(\n payload => twilioApi.createTwilioConfiguration(payload, integrable),\n {\n keysToInvalidate: [\n [\n QUERY_KEYS.TWILIO_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n ],\n }\n );\n\nexport {\n useCreateTwilioConfiguration,\n useFetchTwilioSenderOptions,\n useFetchTwilioSmsConfiguration,\n};\n"],"names":["fetchTwilioSmsConfiguration","integrable","axios","get","TWILIO_CONFIGURATION_BASE_URL","params","removeTwilioConfiguration","getTwilioSenderOptions","data","concat","createTwilioConfiguration","payload","post","_objectSpread","twilioApi","useFetchTwilioSmsConfiguration","_ref","useQuery","queryKey","QUERY_KEYS","TWILIO_SMS_CONFIGURATION","integrableType","integrableId","queryFn","select","response","_smsConfiguration$twi","_smsConfiguration$twi2","_smsConfiguration$con","_smsConfiguration$twi3","_smsConfiguration$twi4","_smsConfiguration$twi5","smsConfiguration","twilioSid","twilioAuthToken","connectionType","twilioPhoneNumber","twilioMessagingServiceSid","twilioMessagingServiceFriendlyName","useFetchTwilioSenderOptions","_ref2","_formRef$current","_formRef$current2","credentials","formRef","TWILIO_SENDER_OPTIONS","keysToSnakeCase","enabled","twilio_sid","current","values","_response$phoneNumber","_response$messagingSe","phoneNumbers","messagingServices","retry","useCreateTwilioConfiguration","_ref3","useMutationWithInvalidation","keysToInvalidate"],"mappings":";;;;;;;;;AAIA,IAAMA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAGC,UAAU,EAAA;AAAA,EAAA,OAC5CC,KAAK,CAACC,GAAG,CAACC,6BAA6B,EAAE;AAAEC,IAAAA,MAAM,EAAEJ;AAAW,GAAC,CAAC;AAAA,CAAA;AAElE,IAAMK,yBAAyB,GAAG,SAA5BA,yBAAyBA,GAAA;AAAA,EAAA,OAC7BJ,KAAK,CAAA,QAAA,CAAO,CAACE,6BAA6B,CAAC;AAAA,CAAA;AAE7C,IAAMG,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAGC,IAAI,EAAA;AAAA,EAAA,OACjCN,KAAK,CAACC,GAAG,IAAAM,MAAA,CAAIL,6BAA6B,EAAA,MAAA,CAAA,EAAQ;AAAEC,IAAAA,MAAM,EAAEG;AAAK,GAAC,CAAC;AAAA,CAAA;AAErE,IAAME,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAIC,OAAO,EAAEV,UAAU,EAAA;AAAA,EAAA,OACpDC,KAAK,CAACU,IAAI,CAACR,6BAA6B,EAAAS,aAAA,CAAAA,aAAA,CAAA,EAAA,EAAOF,OAAO,CAAA,EAAKV,UAAU,CAAE,CAAC;AAAA,CAAA;AAE1E,IAAMa,SAAS,GAAG;AAChBd,EAAAA,2BAA2B,EAA3BA,2BAA2B;AAC3BM,EAAAA,yBAAyB,EAAzBA,yBAAyB;AACzBC,EAAAA,sBAAsB,EAAtBA,sBAAsB;AACtBG,EAAAA,yBAAyB,EAAzBA;AACF,CAAC;;ACdD,IAAMK,8BAA8B,GAAG,SAAjCA,8BAA8BA,CAAAC,IAAA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,UAAU,CAAC;EAAA,CAAA,EACnE;IACE0D,gBAAgB,EAAE,CAChB,CACExC,UAAU,CAACC,wBAAwB,EACnCnB,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAA,MAAA,GAAA,MAAA,GAAVA,UAAU,CAAEoB,cAAc,EAC1BpB,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAA,MAAA,GAAA,MAAA,GAAVA,UAAU,CAAEqB,YAAY,CACzB;AAEL,GACF,CAAC;AAAA;;;;"}
|
|
@@ -3,10 +3,9 @@
|
|
|
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 ramda = require('ramda');
|
|
7
6
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
8
7
|
var axios = require('axios');
|
|
9
|
-
var query = require('./query-
|
|
8
|
+
var query = require('./query-BF3HFRA7.js');
|
|
10
9
|
|
|
11
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; }
|
|
12
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; }
|
|
@@ -18,7 +17,7 @@ var fetchTwilioSmsConfiguration = function fetchTwilioSmsConfiguration(integrabl
|
|
|
18
17
|
var removeTwilioConfiguration = function removeTwilioConfiguration() {
|
|
19
18
|
return axios["delete"](query.TWILIO_CONFIGURATION_BASE_URL);
|
|
20
19
|
};
|
|
21
|
-
var
|
|
20
|
+
var getTwilioSenderOptions = function getTwilioSenderOptions(data) {
|
|
22
21
|
return axios.get("".concat(query.TWILIO_CONFIGURATION_BASE_URL, "/new"), {
|
|
23
22
|
params: data
|
|
24
23
|
});
|
|
@@ -29,7 +28,7 @@ var createTwilioConfiguration = function createTwilioConfiguration(payload, inte
|
|
|
29
28
|
var twilioApi = {
|
|
30
29
|
fetchTwilioSmsConfiguration: fetchTwilioSmsConfiguration,
|
|
31
30
|
removeTwilioConfiguration: removeTwilioConfiguration,
|
|
32
|
-
|
|
31
|
+
getTwilioSenderOptions: getTwilioSenderOptions,
|
|
33
32
|
createTwilioConfiguration: createTwilioConfiguration
|
|
34
33
|
};
|
|
35
34
|
|
|
@@ -41,29 +40,38 @@ var useFetchTwilioSmsConfiguration = function useFetchTwilioSmsConfiguration(_re
|
|
|
41
40
|
return twilioApi.fetchTwilioSmsConfiguration(integrable);
|
|
42
41
|
},
|
|
43
42
|
select: function select(response) {
|
|
44
|
-
var _smsConfiguration$twi, _smsConfiguration$twi2, _smsConfiguration$twi3;
|
|
43
|
+
var _smsConfiguration$twi, _smsConfiguration$twi2, _smsConfiguration$con, _smsConfiguration$twi3, _smsConfiguration$twi4, _smsConfiguration$twi5;
|
|
45
44
|
var smsConfiguration = response.smsConfiguration;
|
|
46
45
|
return {
|
|
47
46
|
twilioSid: (_smsConfiguration$twi = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioSid) !== null && _smsConfiguration$twi !== void 0 ? _smsConfiguration$twi : "",
|
|
48
47
|
twilioAuthToken: (_smsConfiguration$twi2 = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioAuthToken) !== null && _smsConfiguration$twi2 !== void 0 ? _smsConfiguration$twi2 : "",
|
|
49
|
-
|
|
48
|
+
connectionType: (_smsConfiguration$con = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.connectionType) !== null && _smsConfiguration$con !== void 0 ? _smsConfiguration$con : "",
|
|
49
|
+
twilioPhoneNumber: (_smsConfiguration$twi3 = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioPhoneNumber) !== null && _smsConfiguration$twi3 !== void 0 ? _smsConfiguration$twi3 : "",
|
|
50
|
+
twilioMessagingServiceSid: (_smsConfiguration$twi4 = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioMessagingServiceSid) !== null && _smsConfiguration$twi4 !== void 0 ? _smsConfiguration$twi4 : "",
|
|
51
|
+
twilioMessagingServiceFriendlyName: (_smsConfiguration$twi5 = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioMessagingServiceFriendlyName) !== null && _smsConfiguration$twi5 !== void 0 ? _smsConfiguration$twi5 : ""
|
|
50
52
|
};
|
|
51
53
|
}
|
|
52
54
|
});
|
|
53
55
|
};
|
|
54
|
-
var
|
|
56
|
+
var useFetchTwilioSenderOptions = function useFetchTwilioSenderOptions(_ref2) {
|
|
55
57
|
var _formRef$current, _formRef$current2;
|
|
56
58
|
var credentials = _ref2.credentials,
|
|
57
59
|
formRef = _ref2.formRef;
|
|
58
60
|
return reactQuery.useQuery({
|
|
59
|
-
queryKey: [query.QUERY_KEYS.
|
|
61
|
+
queryKey: [query.QUERY_KEYS.TWILIO_SENDER_OPTIONS, {
|
|
60
62
|
credentials: credentials
|
|
61
63
|
}],
|
|
62
64
|
queryFn: function queryFn() {
|
|
63
|
-
return twilioApi.
|
|
65
|
+
return twilioApi.getTwilioSenderOptions(neetoCist.keysToSnakeCase(credentials));
|
|
64
66
|
},
|
|
65
67
|
enabled: !!(credentials !== null && credentials !== void 0 && credentials.twilio_sid) || !!(credentials !== null && credentials !== void 0 && credentials.twilioSid) || !!(formRef !== null && formRef !== void 0 && (_formRef$current = formRef.current) !== null && _formRef$current !== void 0 && (_formRef$current = _formRef$current.values) !== null && _formRef$current !== void 0 && _formRef$current.twilioSid) || !!(formRef !== null && formRef !== void 0 && (_formRef$current2 = formRef.current) !== null && _formRef$current2 !== void 0 && (_formRef$current2 = _formRef$current2.values) !== null && _formRef$current2 !== void 0 && _formRef$current2.twilioAuthToken),
|
|
66
|
-
select:
|
|
68
|
+
select: function select(response) {
|
|
69
|
+
var _response$phoneNumber, _response$messagingSe;
|
|
70
|
+
return {
|
|
71
|
+
phoneNumbers: (_response$phoneNumber = response.phoneNumbers) !== null && _response$phoneNumber !== void 0 ? _response$phoneNumber : [],
|
|
72
|
+
messagingServices: (_response$messagingSe = response.messagingServices) !== null && _response$messagingSe !== void 0 ? _response$messagingSe : []
|
|
73
|
+
};
|
|
74
|
+
},
|
|
67
75
|
retry: false
|
|
68
76
|
});
|
|
69
77
|
};
|
|
@@ -77,6 +85,6 @@ var useCreateTwilioConfiguration = function useCreateTwilioConfiguration(_ref3)
|
|
|
77
85
|
};
|
|
78
86
|
|
|
79
87
|
exports.useCreateTwilioConfiguration = useCreateTwilioConfiguration;
|
|
80
|
-
exports.
|
|
88
|
+
exports.useFetchTwilioSenderOptions = useFetchTwilioSenderOptions;
|
|
81
89
|
exports.useFetchTwilioSmsConfiguration = useFetchTwilioSmsConfiguration;
|
|
82
|
-
//# sourceMappingURL=useTwilioApi-
|
|
90
|
+
//# sourceMappingURL=useTwilioApi-CUL0-Xgf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTwilioApi-CUL0-Xgf.js","sources":["../app/javascript/src/apis/twilio.js","../app/javascript/src/hooks/reactQuery/useTwilioApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { TWILIO_CONFIGURATION_BASE_URL } from \"src/constants/urls\";\n\nconst fetchTwilioSmsConfiguration = integrable =>\n axios.get(TWILIO_CONFIGURATION_BASE_URL, { params: integrable });\n\nconst removeTwilioConfiguration = () =>\n axios.delete(TWILIO_CONFIGURATION_BASE_URL);\n\nconst getTwilioSenderOptions = data =>\n axios.get(`${TWILIO_CONFIGURATION_BASE_URL}/new`, { params: data });\n\nconst createTwilioConfiguration = (payload, integrable) =>\n axios.post(TWILIO_CONFIGURATION_BASE_URL, { ...payload, ...integrable });\n\nconst twilioApi = {\n fetchTwilioSmsConfiguration,\n removeTwilioConfiguration,\n getTwilioSenderOptions,\n createTwilioConfiguration,\n};\n\nexport default twilioApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { keysToSnakeCase } from \"neetocist\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport twilioApi from \"apis/twilio\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nconst useFetchTwilioSmsConfiguration = ({ integrable }) =>\n useQuery({\n queryKey: [\n QUERY_KEYS.TWILIO_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n queryFn: () => twilioApi.fetchTwilioSmsConfiguration(integrable),\n select: response => {\n const smsConfiguration = response.smsConfiguration;\n\n return {\n twilioSid: smsConfiguration?.twilioSid ?? \"\",\n twilioAuthToken: smsConfiguration?.twilioAuthToken ?? \"\",\n connectionType: smsConfiguration?.connectionType ?? \"\",\n twilioPhoneNumber: smsConfiguration?.twilioPhoneNumber ?? \"\",\n twilioMessagingServiceSid:\n smsConfiguration?.twilioMessagingServiceSid ?? \"\",\n twilioMessagingServiceFriendlyName:\n smsConfiguration?.twilioMessagingServiceFriendlyName ?? \"\",\n };\n },\n });\n\nconst useFetchTwilioSenderOptions = ({ credentials, formRef }) =>\n useQuery({\n queryKey: [QUERY_KEYS.TWILIO_SENDER_OPTIONS, { credentials }],\n queryFn: () =>\n twilioApi.getTwilioSenderOptions(keysToSnakeCase(credentials)),\n enabled:\n !!credentials?.twilio_sid ||\n !!credentials?.twilioSid ||\n !!formRef?.current?.values?.twilioSid ||\n !!formRef?.current?.values?.twilioAuthToken,\n select: response => ({\n phoneNumbers: response.phoneNumbers ?? [],\n messagingServices: response.messagingServices ?? [],\n }),\n retry: false,\n });\n\nconst useCreateTwilioConfiguration = ({ integrable }) =>\n useMutationWithInvalidation(\n payload => twilioApi.createTwilioConfiguration(payload, integrable),\n {\n keysToInvalidate: [\n [\n QUERY_KEYS.TWILIO_SMS_CONFIGURATION,\n integrable?.integrableType,\n integrable?.integrableId,\n ],\n ],\n }\n );\n\nexport {\n useCreateTwilioConfiguration,\n useFetchTwilioSenderOptions,\n useFetchTwilioSmsConfiguration,\n};\n"],"names":["fetchTwilioSmsConfiguration","integrable","axios","get","TWILIO_CONFIGURATION_BASE_URL","params","removeTwilioConfiguration","getTwilioSenderOptions","data","concat","createTwilioConfiguration","payload","post","_objectSpread","twilioApi","useFetchTwilioSmsConfiguration","_ref","useQuery","queryKey","QUERY_KEYS","TWILIO_SMS_CONFIGURATION","integrableType","integrableId","queryFn","select","response","_smsConfiguration$twi","_smsConfiguration$twi2","_smsConfiguration$con","_smsConfiguration$twi3","_smsConfiguration$twi4","_smsConfiguration$twi5","smsConfiguration","twilioSid","twilioAuthToken","connectionType","twilioPhoneNumber","twilioMessagingServiceSid","twilioMessagingServiceFriendlyName","useFetchTwilioSenderOptions","_ref2","_formRef$current","_formRef$current2","credentials","formRef","TWILIO_SENDER_OPTIONS","keysToSnakeCase","enabled","twilio_sid","current","values","_response$phoneNumber","_response$messagingSe","phoneNumbers","messagingServices","retry","useCreateTwilioConfiguration","_ref3","useMutationWithInvalidation","keysToInvalidate"],"mappings":";;;;;;;;;;;AAIA,IAAMA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAGC,UAAU,EAAA;AAAA,EAAA,OAC5CC,KAAK,CAACC,GAAG,CAACC,mCAA6B,EAAE;AAAEC,IAAAA,MAAM,EAAEJ;AAAW,GAAC,CAAC;AAAA,CAAA;AAElE,IAAMK,yBAAyB,GAAG,SAA5BA,yBAAyBA,GAAA;AAAA,EAAA,OAC7BJ,KAAK,CAAA,QAAA,CAAO,CAACE,mCAA6B,CAAC;AAAA,CAAA;AAE7C,IAAMG,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAGC,IAAI,EAAA;AAAA,EAAA,OACjCN,KA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AAA;MAAA,IAAA0B,qBAAA,EAAAC,qBAAA;MAAA,OAAK;QACnBC,YAAY,EAAA,CAAAF,qBAAA,GAAE1B,QAAQ,CAAC4B,YAAY,MAAA,IAAA,IAAAF,qBAAA,KAAA,MAAA,GAAAA,qBAAA,GAAI,EAAE;QACzCG,iBAAiB,EAAA,CAAAF,qBAAA,GAAE3B,QAAQ,CAAC6B,iBAAiB,MAAA,IAAA,IAAAF,qBAAA,KAAA,MAAA,GAAAA,qBAAA,GAAI;OAClD;IAAA,CAAC;AACFG,IAAAA,KAAK,EAAE;AACT,GAAC,CAAC;AAAA;AAEJ,IAAMC,4BAA4B,GAAG,SAA/BA,4BAA4BA,CAAAC,KAAA,EAAA;AAAA,EAAA,IAAMxD,UAAU,GAAAwD,KAAA,CAAVxD,UAAU;EAAA,OAChDyD,sCAA2B,CACzB,UAAA/C,OAAO,EAAA;AAAA,IAAA,OAAIG,SAAS,CAACJ,yBAAyB,CAACC,OAAO,EAAEV,UAAU,CAAC;EAAA,CAAA,EACnE;IACE0D,gBAAgB,EAAE,CAChB,CACExC,gBAAU,CAACC,wBAAwB,EACnCnB,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAA,MAAA,GAAA,MAAA,GAAVA,UAAU,CAAEoB,cAAc,EAC1BpB,UAAU,KAAA,IAAA,IAAVA,UAAU,KAAA,MAAA,GAAA,MAAA,GAAVA,UAAU,CAAEqB,YAAY,CACzB;AAEL,GACF,CAAC;AAAA;;;;;;"}
|
|
@@ -4,7 +4,7 @@ var reactQuery = require('@tanstack/react-query');
|
|
|
4
4
|
var constants = require('@bigbinary/neeto-commons-frontend/constants');
|
|
5
5
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
6
6
|
var axios = require('axios');
|
|
7
|
-
var query = require('./query-
|
|
7
|
+
var query = require('./query-BF3HFRA7.js');
|
|
8
8
|
|
|
9
9
|
var show = function show() {
|
|
10
10
|
return axios.get(query.INTEGRATION_DETAILS_URL, {
|
|
@@ -41,4 +41,4 @@ var useDestroyZoom = function useDestroyZoom(_ref) {
|
|
|
41
41
|
|
|
42
42
|
exports.useDestroyZoom = useDestroyZoom;
|
|
43
43
|
exports.useShowZoom = useShowZoom;
|
|
44
|
-
//# sourceMappingURL=useZoomApi-
|
|
44
|
+
//# sourceMappingURL=useZoomApi-C8AUYMlp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useZoomApi-
|
|
1
|
+
{"version":3,"file":"useZoomApi-C8AUYMlp.js","sources":["../app/javascript/src/apis/zoom.js","../app/javascript/src/hooks/reactQuery/useZoomApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport {\n INTEGRATIONS_ENGINE_ZOOM_URL,\n INTEGRATION_DETAILS_URL,\n} from \"src/constants/urls\";\n\nconst show = () =>\n axios.get(INTEGRATION_DETAILS_URL, {\n params: { serviceName: \"Zoom\", integrableType: \"User\" },\n });\n\nconst destroy = () => axios.delete(`${INTEGRATIONS_ENGINE_ZOOM_URL}/oauth`);\n\nconst zoomApi = { show, destroy };\n\nexport default zoomApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport zoomApi from \"apis/zoom\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowZoom = () =>\n useQuery({\n queryKey: [QUERY_KEYS.ZOOM_DETAILS],\n queryFn: zoomApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\nexport const useDestroyZoom = ({ onSuccess }) =>\n useMutationWithInvalidation(zoomApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.ZOOM_DETAILS]],\n onSuccess: () => onSuccess?.(),\n });\n"],"names":["show","axios","get","INTEGRATION_DETAILS_URL","params","serviceName","integrableType","destroy","concat","INTEGRATIONS_ENGINE_ZOOM_URL","zoomApi","useShowZoom","useQuery","queryKey","QUERY_KEYS","ZOOM_DETAILS","queryFn","staleTime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{ useQuery } from '@tanstack/react-query';
|
|
|
2
2
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
3
3
|
import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
4
|
import axios from 'axios';
|
|
5
|
-
import { c as INTEGRATION_DETAILS_URL, e as INTEGRATIONS_ENGINE_ZOOM_URL, Q as QUERY_KEYS } from './query-
|
|
5
|
+
import { c as INTEGRATION_DETAILS_URL, e as INTEGRATIONS_ENGINE_ZOOM_URL, Q as QUERY_KEYS } from './query-gurbhBqu.js';
|
|
6
6
|
|
|
7
7
|
var show = function show() {
|
|
8
8
|
return axios.get(INTEGRATION_DETAILS_URL, {
|
|
@@ -38,4 +38,4 @@ var useDestroyZoom = function useDestroyZoom(_ref) {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export { useDestroyZoom as a, useShowZoom as u };
|
|
41
|
-
//# sourceMappingURL=useZoomApi-
|
|
41
|
+
//# sourceMappingURL=useZoomApi-CkhVE1e8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useZoomApi-
|
|
1
|
+
{"version":3,"file":"useZoomApi-CkhVE1e8.js","sources":["../app/javascript/src/apis/zoom.js","../app/javascript/src/hooks/reactQuery/useZoomApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport {\n INTEGRATIONS_ENGINE_ZOOM_URL,\n INTEGRATION_DETAILS_URL,\n} from \"src/constants/urls\";\n\nconst show = () =>\n axios.get(INTEGRATION_DETAILS_URL, {\n params: { serviceName: \"Zoom\", integrableType: \"User\" },\n });\n\nconst destroy = () => axios.delete(`${INTEGRATIONS_ENGINE_ZOOM_URL}/oauth`);\n\nconst zoomApi = { show, destroy };\n\nexport default zoomApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport zoomApi from \"apis/zoom\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowZoom = () =>\n useQuery({\n queryKey: [QUERY_KEYS.ZOOM_DETAILS],\n queryFn: zoomApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\nexport const useDestroyZoom = ({ onSuccess }) =>\n useMutationWithInvalidation(zoomApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.ZOOM_DETAILS]],\n onSuccess: () => onSuccess?.(),\n });\n"],"names":["show","axios","get","INTEGRATION_DETAILS_URL","params","serviceName","integrableType","destroy","concat","INTEGRATIONS_ENGINE_ZOOM_URL","zoomApi","useShowZoom","useQuery","queryKey","QUERY_KEYS","ZOOM_DETAILS","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyZoom","_ref","onSuccess","useMutationWithInvalidation","keysToInvalidate"],"mappings":";;;;;;AAOA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OACRC,KAAK,CAACC,GAAG,CAACC,uBAAuB,EAAE;AACjCC,IAAAA,MAAM,EAAE;AAAEC,MAAAA,WAAW,EAAE,MAAM;AAAEC,MAAAA,cAAc,EAAE;AAAO;AACxD,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAMC,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAAA,EAAA,CAAAO,MAAA,CAAIC,4BAA4B,WAAQ,CAAC;AAAA,CAAA;AAE3E,IAAMC,OAAO,GAAG;AAAEV,EAAAA,IAAI,EAAJA,IAAI;AAAEO,EAAAA,OAAO,EAAPA;AAAQ,CAAC;;ACP1B,IAAMI,WAAW,GAAG,SAAdA,WAAWA,GAAA;AAAA,EAAA,OACtBC,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACC,UAAU,CAACC,YAAY,CAAC;IACnCC,OAAO,EAAEN,OAAO,CAACV,IAAI;AACrBiB,IAAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;IACSC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,UAAS,GAAAD,IAAA,CAATC,SAAS;AAAA,EAAA,OACxCC,2BAA2B,CAACZ,OAAO,CAACH,OAAO,EAAE;AAC3CgB,IAAAA,gBAAgB,EAAE,CAAC,CAACT,UAAU,CAACC,YAAY,CAAC,CAAC;IAC7CM,SAAS,EAAE,SAAXA,SAASA,GAAA;AAAA,MAAA,OAAQA,UAAS,KAAA,IAAA,IAATA,UAAS,KAAA,MAAA,GAAA,MAAA,GAATA,UAAS,EAAI;AAAA,IAAA;AAChC,GAAC,CAAC;AAAA;;;;"}
|
package/dist/v2/Daily.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i18next from 'i18next';
|
|
2
2
|
import { isPresent, noop } from '@bigbinary/neeto-cist';
|
|
3
3
|
import { withTitle, useQueryParams } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
|
|
4
|
-
import { u as useFetchDaily, a as useDestroyDaily } from '../useDailiesApi-
|
|
4
|
+
import { u as useFetchDaily, a as useDestroyDaily } from '../useDailiesApi-aQmuxf-5.js';
|
|
5
5
|
import Form from './DailyForm.js';
|
|
6
6
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import { useState } from 'react';
|
|
@@ -17,7 +17,7 @@ import '@tanstack/react-query';
|
|
|
17
17
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
18
18
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
19
19
|
import 'axios';
|
|
20
|
-
import '../query-
|
|
20
|
+
import '../query-gurbhBqu.js';
|
|
21
21
|
import '@bigbinary/neeto-atoms/formik';
|
|
22
22
|
import '@bigbinary/neeto-molecules/v2/CardLayout';
|
|
23
23
|
import '@bigbinary/neeto-molecules/v2/Container';
|
package/dist/v2/DailyForm.js
CHANGED
|
@@ -9,7 +9,7 @@ import Container from '@bigbinary/neeto-molecules/v2/Container';
|
|
|
9
9
|
import Header from '@bigbinary/neeto-molecules/v2/Header';
|
|
10
10
|
import { useTranslation, Trans } from 'react-i18next';
|
|
11
11
|
import { useHistory } from 'react-router-dom';
|
|
12
|
-
import { b as useCreateDaily } from '../useDailiesApi-
|
|
12
|
+
import { b as useCreateDaily } from '../useDailiesApi-aQmuxf-5.js';
|
|
13
13
|
import * as yup from 'yup';
|
|
14
14
|
import WalkthroughModal from './WalkthroughModal.js';
|
|
15
15
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -18,7 +18,7 @@ import '@tanstack/react-query';
|
|
|
18
18
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
19
19
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
20
20
|
import 'axios';
|
|
21
|
-
import '../query-
|
|
21
|
+
import '../query-gurbhBqu.js';
|
|
22
22
|
import '@bigbinary/neeto-cist';
|
|
23
23
|
import '@bigbinary/neeto-commons-frontend/v2/react-utils/withT';
|
|
24
24
|
|