@bigbinary/neeto-integrations-frontend 4.2.8 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/javascript/src/translations/en.json +9 -9
- 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
|
@@ -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,wBAAwB,CAAC,MAAM,CAAC,GAC5B,CAAC,CAAC,8DAA8D,EAAE;IAChE,KAAK,EAAE,MAAM,CAAC;AAChB,GAAC,CAAC,GACF,CAAC,CAAC,+CAA+C,EAAE;IACjD,KAAK,EAAE,MAAM,CAAC;AAChB,GAAC,CAAC;AAAA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,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,\n });\n"],"names":[],"mappings":";;;;;;;AAIA,IAAM,MAAM,GAAG,SAAT,MAAM,CAAG,OAAO,EAAA;AAAA,EAAA,OACpB,KAAK,CAAC,IAAI,CAAC,6BAA6B,EAAE;AAAE,IAAA,KAAK,EAAE;AAAQ,GAAC,CAAC;AAAA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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,mCAA6B,EAAE;AAAE,IAAA,KAAK,EAAE;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAM,IAAI,GAAG,SAAP,IAAI,GAAA;AAAA,EAAA,OAAS,KAAK,CAAC,GAAG,CAACA,mCAA6B,CAAC;AAAA,CAAA;AAE3D,IAAM,OAAO,GAAG,SAAV,OAAO,GAAA;AAAA,EAAA,OAAS,KAAK,CAAA,QAAA,CAAO,CAACA,mCAA6B,CAAC;AAAA,CAAA;AAEjE,IAAM,UAAU,GAAG;AAAE,EAAA,MAAM,EAAN,MAAM;AAAE,EAAA,IAAI,EAAJ,IAAI;AAAE,EAAA,OAAO,EAAP;AAAQ,CAAC;;ACJrC,IAAM,cAAc,GAAG,SAAjB,cAAc,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,OACzCC,sCAA2B,CAAC,UAAU,CAAC,MAAM,EAAA,aAAA,CAAA;AAC3C,IAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAAC,gBAAgB,CAAC;GAAC,EAC9C,OAAO,CACX,CAAC;AAAA;AAEG,IAAM,aAAa,GAAG,SAAhB,aAAa,GAAA;AAAA,EAAA,OACxBC,mBAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,CAACD,gBAAU,CAAC,gBAAgB,CAAC;IACvC,OAAO,EAAE,UAAU,CAAC,IAAI;AACxB,IAAA,SAAS,EAAEE;AACb,GAAC,CAAC;AAAA;AAEG,IAAM,eAAe,GAAG,SAAlB,eAAe,CAAA,IAAA,EAAA;EAAA,IAAM,SAAS,QAAT,SAAS;AAAA,EAAA,OACzCH,sCAA2B,CAAC,UAAU,CAAC,OAAO,EAAE;AAC9C,IAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAAC,gBAAgB,CAAC,CAAC;AACjD,IAAA,SAAS,EAAT;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_M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,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,EAAA,OACzC,KAAK,CAAC,GAAG,CAAC,2CAA2C,EAAE;AACrD,IAAA,MAAM,EAAE;AAAE,MAAA,OAAO,EAAE;AAAO;AAC5B,GAAC,CAAC;AAAA,CAAA;AAEG,IAAM,4BAA4B,GAAG,SAA/B,4BAA4B,CAAA,KAAA,EA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AAN;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,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,4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
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTwilioApi-BwkrNBtg.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 fetchMessagingServiceSenders = ({\n accountSid,\n authToken,\n messagingServiceId,\n}) =>\n axios.get(\n `/neeto_integrations/twilio/messaging_services/${messagingServiceId}/senders`,\n { params: { account_sid: accountSid, auth_token: authToken } }\n );\n\nconst twilioApi = {\n fetchTwilioSmsConfiguration,\n removeTwilioConfiguration,\n getTwilioSenderOptions,\n createTwilioConfiguration,\n fetchMessagingServiceSenders,\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 }) =>\n useQuery({\n queryKey: [QUERY_KEYS.TWILIO_SENDER_OPTIONS, { credentials }],\n queryFn: () =>\n twilioApi.getTwilioSenderOptions(keysToSnakeCase(credentials)),\n enabled:\n !!credentials?.twilio_sid || !!credentials?.twilioSid,\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\nconst useFetchTwilioMessagingServiceSenders = ({\n accountSid,\n authToken,\n messagingServiceId,\n enabled,\n}) =>\n useQuery({\n queryKey: [\"twilioMessagingServiceSenders\", messagingServiceId],\n queryFn: () =>\n twilioApi.fetchMessagingServiceSenders({\n accountSid,\n authToken,\n messagingServiceId,\n }),\n enabled: !!enabled && !!accountSid && !!authToken && !!messagingServiceId,\n staleTime: 60_000,\n });\n\nexport {\n useCreateTwilioConfiguration,\n useFetchTwilioMessagingServiceSenders,\n useFetchTwilioSenderOptions,\n useFetchTwilioSmsConfiguration,\n};\n"],"names":["TWILIO_CONFIGURATION_BASE_URL","useQuery","QUERY_KEYS","keysToSnakeCase","useMutationWithInvalidation"],"mappings":";;;;;;;;;AAIA,IAAM,2BAA2B,GAAG,SAA9B,2BAA2B,CAAG,UAAU,EAAA;AAAA,EAAA,OAC5C,KAAK,CAAC,GAAG,CAACA,mCAA6B,EAAE;AAAE,IAAA,MAAM,EAAE;AAAW,GAAC,CAAC;AAAA,CAAA;AAElE,IAAM,yB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utationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
|
-
import
|
|
4
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import { T as TWILIO_CONFIGURATION_BASE_URL, Q as QUERY_KEYS } from './query-CyER0UTx.js';
|
|
7
7
|
|
|
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; }
|
|
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; }
|
|
10
8
|
var fetchTwilioSmsConfiguration = function fetchTwilioSmsConfiguration(integrable) {
|
|
11
9
|
return axios.get(TWILIO_CONFIGURATION_BASE_URL, {
|
|
12
10
|
params: integrable
|
|
@@ -111,4 +109,4 @@ var useFetchTwilioMessagingServiceSenders = function useFetchTwilioMessagingServ
|
|
|
111
109
|
};
|
|
112
110
|
|
|
113
111
|
export { useFetchTwilioSmsConfiguration as a, useFetchTwilioSenderOptions as b, useCreateTwilioConfiguration as c, useFetchTwilioMessagingServiceSenders as u };
|
|
114
|
-
//# sourceMappingURL=useTwilioApi-
|
|
112
|
+
//# sourceMappingURL=useTwilioApi-CEaEH5MG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTwilioApi-CEaEH5MG.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 fetchMessagingServiceSenders = ({\n accountSid,\n authToken,\n messagingServiceId,\n}) =>\n axios.get(\n `/neeto_integrations/twilio/messaging_services/${messagingServiceId}/senders`,\n { params: { account_sid: accountSid, auth_token: authToken } }\n );\n\nconst twilioApi = {\n fetchTwilioSmsConfiguration,\n removeTwilioConfiguration,\n getTwilioSenderOptions,\n createTwilioConfiguration,\n fetchMessagingServiceSenders,\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 }) =>\n useQuery({\n queryKey: [QUERY_KEYS.TWILIO_SENDER_OPTIONS, { credentials }],\n queryFn: () =>\n twilioApi.getTwilioSenderOptions(keysToSnakeCase(credentials)),\n enabled:\n !!credentials?.twilio_sid || !!credentials?.twilioSid,\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\nconst useFetchTwilioMessagingServiceSenders = ({\n accountSid,\n authToken,\n messagingServiceId,\n enabled,\n}) =>\n useQuery({\n queryKey: [\"twilioMessagingServiceSenders\", messagingServiceId],\n queryFn: () =>\n twilioApi.fetchMessagingServiceSenders({\n accountSid,\n authToken,\n messagingServiceId,\n }),\n enabled: !!enabled && !!accountSid && !!authToken && !!messagingServiceId,\n staleTime: 60_000,\n });\n\nexport {\n useCreateTwilioConfiguration,\n useFetchTwilioMessagingServiceSenders,\n useFetchTwilioSenderOptions,\n useFetchTwilioSmsConfiguration,\n};\n"],"names":[],"mappings":";;;;;;;AAIA,IAAM,2BAA2B,GAAG,SAA9B,2BAA2B,CAAG,UAAU,EAAA;AAAA,EAAA,OAC5C,KAAK,CAAC,GAAG,CAAC,6BAA6B,EAAE;AAAE,IAAA,MAAM,EAAE;AAAW,GAAC,CAAC;AAAA,CAAA;AAElE,IAAM,yBAAyB,GAAG,SAA5B,yBAAyB,GAAA;AAAA,EAAA,OAC7B,KAAK,CAAA,QAAA,CAAO,CAAC,6BAA6B,CAAC;AAAA,CAAA;AAE7C,IAAM,sBAAsB,GAAG,SAAzB,sBAAsB,CAAG,IAAI,EAAA;AAAA,EAAA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A,CAAA,EACnE;IACE,gBAAgB,EAAE,CAChB,CACE,UAAU,CAAC,wBAAwB,EACnC,UAAU,KAAA,IAAA,IAAV,UAAU,KAAA,MAAA,GAAA,MAAA,GAAV,UAAU,CAAE,cAAc,EAC1B,UAAU,KAAA,IAAA,IAAV,UAAU,KAAA,MAAA,GAAA,MAAA,GAAV,UAAU,CAAE,YAAY,CACzB;AAEL,GACF,CAAC;AAAA;AAEH,IAAM,qCAAqC,GAAG,SAAxC,qCAAqC,CAAA,KAAA,EAAA;EAAA,IACzC,UAAU,SAAV,UAAU;AACV,IAAA,SAAS,SAAT,SAAS;AACT,IAAA,kBAAkB,SAAlB,kBAAkB;AAClB,IAAA,OAAO,SAAP,OAAO;AAAA,EAAA,OAEP,QAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;IAC/D,OAAO,EAAE,SAAT,OAAO,GAAA;MAAA,OACL,SAAS,CAAC,4BAA4B,CAAC;AACrC,QAAA,UAAU,EAAV,UAAU;AACV,QAAA,SAAS,EAAT,SAAS;AACT,QAAA,kBAAkB,EAAlB;AACF,OAAC,CAAC;AAAA,IAAA,CAAA;AACJ,IAAA,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,kBAAkB;AACzE,IAAA,SAAS,EAAE;AACb,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useZoomApi-Be2unav5.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":["
|
|
1
|
+
{"version":3,"file":"useZoomApi-Be2unav5.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":["INTEGRATION_DETAILS_URL","INTEGRATIONS_ENGINE_ZOOM_URL","useQuery","QUERY_KEYS","DEFAULT_STALE_TIME","onSuccess","useMutationWithInvalidation"],"mappings":";;;;;;;;AAOA,IAAM,IAAI,GAAG,SAAP,IAAI,GAAA;AAAA,EAAA,OACR,KAAK,CAAC,GAAG,CAACA,6BAAuB,EAAE;AACjC,IAAA,MAAM,EAAE;AAAE,MAAA,WAAW,EAAE,MAAM;AAAE,MAAA,cAAc,EAAE;AAAO;AACxD,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAM,OAAO,GAAG,SAAV,OAAO,GAAA;AAAA,EAAA,OAAS,KAAK,CAAA,QAAA,CAAO,CAAA,EAAA,CAAA,MAAA,CAAIC,kCAA4B,WAAQ,CAAC;AAAA,CAAA;AAE3E,IAAM,OAAO,GAAG;AAAE,EAAA,IAAI,EAAJ,IAAI;AAAE,EAAA,OAAO,EAAP;AAAQ,CAAC;;ACP1B,IAAM,WAAW,GAAG,SAAd,WAAW,GAAA;AAAA,EAAA,OACtBC,mBAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,CAACC,gBAAU,CAAC,YAAY,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC,IAAI;AACrB,IAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;AACG,IAAM,cAAc,GAAG,SAAjB,cAAc,CAAA,IAAA,EAAA;EAAA,IAAMC,UAAS,QAAT,SAAS;AAAA,EAAA,OACxCC,sCAA2B,CAAC,OAAO,CAAC,OAAO,EAAE;AAC3C,IAAA,gBAAgB,EAAE,CAAC,CAACH,gBAAU,CAAC,YAAY,CAAC,CAAC;IAC7C,SAAS,EAAE,SAAX,SAAS,GAAA;AAAA,MAAA,OAAQE,UAAS,KAAA,IAAA,IAATA,UAAS,KAAA,MAAA,GAAA,MAAA,GAATA,UAAS,EAAI;AAAA,IAAA;AAChC,GAAC,CAAC;AAAA;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useZoomApi-i5CNstmT.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":["
|
|
1
|
+
{"version":3,"file":"useZoomApi-i5CNstmT.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":["onSuccess"],"mappings":";;;;;;AAOA,IAAM,IAAI,GAAG,SAAP,IAAI,GAAA;AAAA,EAAA,OACR,KAAK,CAAC,GAAG,CAAC,uBAAuB,EAAE;AACjC,IAAA,MAAM,EAAE;AAAE,MAAA,WAAW,EAAE,MAAM;AAAE,MAAA,cAAc,EAAE;AAAO;AACxD,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAM,OAAO,GAAG,SAAV,OAAO,GAAA;AAAA,EAAA,OAAS,KAAK,CAAA,QAAA,CAAO,CAAA,EAAA,CAAA,MAAA,CAAI,4BAA4B,WAAQ,CAAC;AAAA,CAAA;AAE3E,IAAM,OAAO,GAAG;AAAE,EAAA,IAAI,EAAJ,IAAI;AAAE,EAAA,OAAO,EAAP;AAAQ,CAAC;;ACP1B,IAAM,WAAW,GAAG,SAAd,WAAW,GAAA;AAAA,EAAA,OACtB,QAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC,IAAI;AACrB,IAAA,SAAS,EAAE;AACb,GAAC,CAAC;AAAA;AACG,IAAM,cAAc,GAAG,SAAjB,cAAc,CAAA,IAAA,EAAA;EAAA,IAAMA,UAAS,QAAT,SAAS;AAAA,EAAA,OACxC,2BAA2B,CAAC,OAAO,CAAC,OAAO,EAAE;AAC3C,IAAA,gBAAgB,EAAE,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAC7C,SAAS,EAAE,SAAX,SAAS,GAAA;AAAA,MAAA,OAAQA,UAAS,KAAA,IAAA,IAATA,UAAS,KAAA,MAAA,GAAA,MAAA,GAATA,UAAS,EAAI;AAAA,IAAA;AAChC,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
// Dark mode only: a light chip filling the logo tile, applied when the logo
|
|
6
|
+
// is drawn with fixed brand colours (a hex fill) rather than currentColor.
|
|
7
|
+
var BRAND_LOGO_CHIP_CLASSES = "inline-flex shrink-0 items-center justify-center dark:has-[[fill^='#']]:size-14 dark:has-[[fill^='#']]:rounded-2xl dark:has-[[fill^='#']]:bg-primary-foreground";
|
|
8
|
+
|
|
9
|
+
// Neeto product logos are drawn edge to edge, brand logos (Slack, Drive…) with
|
|
10
|
+
// built-in padding, so at the same size a Neeto logo reads bigger. Draw them a
|
|
11
|
+
// step smaller (as molecules' integration cards do) so the glyphs match.
|
|
12
|
+
var BRAND_LOGO_SIZE = 32;
|
|
13
|
+
var NEETO_LOGO_SIZE = 27;
|
|
14
|
+
var NEETO_INTEGRATION = /^neeto/i;
|
|
15
|
+
|
|
16
|
+
var _excluded = ["icon", "size"];
|
|
17
|
+
var BrandLogo = function BrandLogo(_ref) {
|
|
18
|
+
var Icon = _ref.icon,
|
|
19
|
+
size = _ref.size,
|
|
20
|
+
iconProps = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
return /*#__PURE__*/jsx("span", {
|
|
22
|
+
className: BRAND_LOGO_CHIP_CLASSES,
|
|
23
|
+
"data-slot": "brand-logo",
|
|
24
|
+
children: /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, _objectSpread({
|
|
25
|
+
size: size
|
|
26
|
+
}, iconProps)), {}, {
|
|
27
|
+
style: size ? {
|
|
28
|
+
width: size,
|
|
29
|
+
height: size
|
|
30
|
+
} : undefined
|
|
31
|
+
}))
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var getBrandLogoSize = function getBrandLogoSize(_ref) {
|
|
36
|
+
var integration = _ref.integration,
|
|
37
|
+
integrationName = _ref.integrationName;
|
|
38
|
+
return [integration, integrationName].some(function (name) {
|
|
39
|
+
return NEETO_INTEGRATION.test(name !== null && name !== void 0 ? name : "");
|
|
40
|
+
}) ? NEETO_LOGO_SIZE : BRAND_LOGO_SIZE;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { BrandLogo as B, getBrandLogoSize as g };
|
|
44
|
+
//# sourceMappingURL=utils-fchHJTr3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-fchHJTr3.js","sources":["../app/javascript/src/v2/components/commons/constants.js","../app/javascript/src/v2/components/commons/BrandLogo.jsx","../app/javascript/src/v2/components/commons/utils.js"],"sourcesContent":["// Dark mode only: a light chip filling the logo tile, applied when the logo\n// is drawn with fixed brand colours (a hex fill) rather than currentColor.\nexport const BRAND_LOGO_CHIP_CLASSES =\n \"inline-flex shrink-0 items-center justify-center dark:has-[[fill^='#']]:size-14 dark:has-[[fill^='#']]:rounded-2xl dark:has-[[fill^='#']]:bg-primary-foreground\";\n\n// Neeto product logos are drawn edge to edge, brand logos (Slack, Drive…) with\n// built-in padding, so at the same size a Neeto logo reads bigger. Draw them a\n// step smaller (as molecules' integration cards do) so the glyphs match.\nexport const BRAND_LOGO_SIZE = 32;\nexport const NEETO_LOGO_SIZE = 27;\nexport const NEETO_INTEGRATION = /^neeto/i;\n","import { BRAND_LOGO_CHIP_CLASSES } from \"./constants\";\n\n// v2 revamp: brand logos keep their own colours, and some have dark parts\n// (PayPal's navy, UPI's grey) that vanish on a dark logo tile. In dark mode a\n// logo drawn with fixed brand colours sits on a light chip that fills the\n// tile, the usual treatment for brand logos on dark surfaces. Single-colour\n// icons (drawn in currentColor) keep the plain tile. Light mode is unchanged:\n// the wrapper only lays the logo out the way the tile already does.\n// The size is also set inline: the molecules card tile sizes every svg to 32px\n// with a class, which would undo the smaller size of Neeto logos.\nconst BrandLogo = ({ icon: Icon, size, ...iconProps }) => (\n <span className={BRAND_LOGO_CHIP_CLASSES} data-slot=\"brand-logo\">\n <Icon\n {...{ size, ...iconProps }}\n style={size ? { width: size, height: size } : undefined}\n />\n </span>\n);\n\nexport default BrandLogo;\n","import {\n BRAND_LOGO_SIZE,\n NEETO_INTEGRATION,\n NEETO_LOGO_SIZE,\n} from \"./constants\";\n\nexport const getBrandLogoSize = ({ integration, integrationName }) =>\n [integration, integrationName].some(name =>\n NEETO_INTEGRATION.test(name ?? \"\")\n )\n ? NEETO_LOGO_SIZE\n : BRAND_LOGO_SIZE;\n"],"names":["_jsx"],"mappings":";;;;AAAA;AACA;AACO,IAAM,uBAAuB,GAClC,iKAAiK;;AAEnK;AACA;AACA;AACO,IAAM,eAAe,GAAG,EAAE;AAC1B,IAAM,eAAe,GAAG,EAAE;AAC1B,IAAM,iBAAiB,GAAG,SAAS;;;ACA1C,IAAM,SAAS,GAAG,SAAZ,SAAS,CAAA,IAAA,EAAA;EAAA,IAAY,IAAI,QAAV,IAAI;AAAQ,IAAA,IAAI,QAAJ,IAAI;IAAK,SAAS,GAAA,wBAAA,CAAA,IAAA,EAAA,SAAA,CAAA;EAAA,oBACjDA,GAAA,CAAA,MAAA,EAAA;AAAM,IAAA,SAAS,EAAE,uBAAwB;AAAC,IAAA,WAAA,EAAU,YAAY;AAAA,IAAA,QAAA,eAC9DA,IAAC,IAAI,EAAA,aAAA,CAAA,aAAA,CAAA,EAAA,EAAA,aAAA,CAAA;AACG,MAAA,IAAI,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