@bigbinary/neeto-integrations-frontend 4.2.5 → 4.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/app/javascript/src/translations/en.json +12 -0
  2. package/dist/.ready +1 -1
  3. package/dist/Daily.js +2 -2
  4. package/dist/DailyForm.js +2 -2
  5. package/dist/Telnyx.js +2 -2
  6. package/dist/Twilio.js +2 -2
  7. package/dist/Zoom.js +2 -2
  8. package/dist/cjs/Daily.js +2 -2
  9. package/dist/cjs/DailyForm.js +2 -2
  10. package/dist/cjs/Telnyx.js +2 -2
  11. package/dist/cjs/Twilio.js +2 -2
  12. package/dist/cjs/Zoom.js +2 -2
  13. package/dist/cjs/index.js +6 -6
  14. package/dist/cjs/v2/Daily.js +2 -2
  15. package/dist/cjs/v2/DailyForm.js +2 -2
  16. package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js +2 -2
  17. package/dist/cjs/v2/SmsLogs.js +1 -1
  18. package/dist/cjs/v2/Telnyx.js +2 -2
  19. package/dist/cjs/v2/Twilio.js +2 -2
  20. package/dist/cjs/v2/Zoom.js +2 -2
  21. package/dist/cjs/v2/index.js +280 -25
  22. package/dist/cjs/v2/index.js.map +1 -1
  23. package/dist/index.js +6 -6
  24. package/dist/{query-DJngL7gT.js → query-DFg4la-L.js} +6 -1
  25. package/dist/query-DFg4la-L.js.map +1 -0
  26. package/dist/{query-Dy_oZzH0.js → query-dZxWLxGc.js} +5 -2
  27. package/dist/query-dZxWLxGc.js.map +1 -0
  28. package/dist/{useDailiesApi-BqGt8Lap.js → useDailiesApi-BmI2LDF7.js} +2 -2
  29. package/dist/{useDailiesApi-BqGt8Lap.js.map → useDailiesApi-BmI2LDF7.js.map} +1 -1
  30. package/dist/{useDailiesApi-CiaD7Sm9.js → useDailiesApi-dbPtabvs.js} +2 -2
  31. package/dist/{useDailiesApi-CiaD7Sm9.js.map → useDailiesApi-dbPtabvs.js.map} +1 -1
  32. package/dist/{useDisconnectionAlertsApi-DEZp8XAE.js → useDisconnectionAlertsApi-BGaBOO_4.js} +2 -2
  33. package/dist/{useDisconnectionAlertsApi-DEZp8XAE.js.map → useDisconnectionAlertsApi-BGaBOO_4.js.map} +1 -1
  34. package/dist/{useDisconnectionAlertsApi-BtVaHyF9.js → useDisconnectionAlertsApi-CKKd-vBU.js} +2 -2
  35. package/dist/{useDisconnectionAlertsApi-BtVaHyF9.js.map → useDisconnectionAlertsApi-CKKd-vBU.js.map} +1 -1
  36. package/dist/{useTelnyxApi-DUL4eIKW.js → useTelnyxApi-Bdc2eE8x.js} +2 -2
  37. package/dist/{useTelnyxApi-DUL4eIKW.js.map → useTelnyxApi-Bdc2eE8x.js.map} +1 -1
  38. package/dist/{useTelnyxApi-BZHgKq_v.js → useTelnyxApi-DH5XaYIo.js} +2 -2
  39. package/dist/{useTelnyxApi-BZHgKq_v.js.map → useTelnyxApi-DH5XaYIo.js.map} +1 -1
  40. package/dist/{useTwilioApi-c-f8LcO6.js → useTwilioApi-CFdE3TY_.js} +2 -2
  41. package/dist/{useTwilioApi-c-f8LcO6.js.map → useTwilioApi-CFdE3TY_.js.map} +1 -1
  42. package/dist/{useTwilioApi-00tz9iTn.js → useTwilioApi-CYF8UIPN.js} +2 -2
  43. package/dist/{useTwilioApi-00tz9iTn.js.map → useTwilioApi-CYF8UIPN.js.map} +1 -1
  44. package/dist/{useZoomApi-DEqrcL4c.js → useZoomApi-Be2unav5.js} +2 -2
  45. package/dist/{useZoomApi-DEqrcL4c.js.map → useZoomApi-Be2unav5.js.map} +1 -1
  46. package/dist/{useZoomApi-fSvs1Qpv.js → useZoomApi-CcPofKkx.js} +2 -2
  47. package/dist/{useZoomApi-fSvs1Qpv.js.map → useZoomApi-CcPofKkx.js.map} +1 -1
  48. package/dist/v2/Daily.js +2 -2
  49. package/dist/v2/DailyForm.js +2 -2
  50. package/dist/v2/DisconnectedIntegrationsRibbon.js +2 -2
  51. package/dist/v2/SmsLogs.js +1 -1
  52. package/dist/v2/Telnyx.js +2 -2
  53. package/dist/v2/Twilio.js +2 -2
  54. package/dist/v2/Zoom.js +2 -2
  55. package/dist/v2/index.js +263 -26
  56. package/dist/v2/index.js.map +1 -1
  57. package/package.json +29 -29
  58. package/typeTemplates-v2/index.d.ts +16 -0
  59. package/types.d.ts +16 -0
  60. package/dist/query-DJngL7gT.js.map +0 -1
  61. package/dist/query-Dy_oZzH0.js.map +0 -1
@@ -1,12 +1,31 @@
1
1
  'use strict';
2
2
 
3
- var query = require('../../query-DJngL7gT.js');
3
+ var query = require('../../query-DFg4la-L.js');
4
4
  var v2_Manage = require('./Manage.js');
5
5
  var v2_DisconnectAlert = require('./DisconnectAlert.js');
6
6
  var v2_DisconnectedIntegrationsRibbon = require('./DisconnectedIntegrationsRibbon.js');
7
7
  var v2_Daily = require('./Daily.js');
8
8
  var v2_DailyForm = require('./DailyForm.js');
9
9
  var v2_GoogleCalendar = require('./GoogleCalendar.js');
10
+ var neetoAtoms = require('@bigbinary/neeto-atoms');
11
+ var formik = require('@bigbinary/neeto-atoms/formik');
12
+ var neetoCist = require('@bigbinary/neeto-cist');
13
+ var CardLayout = require('@bigbinary/neeto-molecules/v2/CardLayout');
14
+ var Container = require('@bigbinary/neeto-molecules/v2/Container');
15
+ var Header = require('@bigbinary/neeto-molecules/v2/Header');
16
+ var reactI18next = require('react-i18next');
17
+ var reactRouterDom = require('react-router-dom');
18
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
19
+ var reactQuery = require('@tanstack/react-query');
20
+ var constants = require('@bigbinary/neeto-commons-frontend/constants');
21
+ var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
22
+ var axios = require('axios');
23
+ var i18next = require('i18next');
24
+ var yup = require('yup');
25
+ var jsxRuntime = require('react/jsx-runtime');
26
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
27
+ var React = require('react');
28
+ var CopyToClipboardButton = require('@bigbinary/neeto-molecules/v2/CopyToClipboardButton');
10
29
  var v2_Telnyx = require('./Telnyx.js');
11
30
  var v2_Twilio = require('./Twilio.js');
12
31
  var v2_Zoom = require('./Zoom.js');
@@ -16,42 +35,23 @@ var v2_Connect = require('./Connect.js');
16
35
  var v2_Demo = require('./Demo.js');
17
36
  var v2_Finish = require('./Finish.js');
18
37
  var v2_WalkthroughModal = require('./WalkthroughModal.js');
19
- require('@babel/runtime/helpers/defineProperty');
20
- require('@bigbinary/neeto-atoms');
21
- require('@bigbinary/neeto-cist');
22
38
  require('@bigbinary/neeto-commons-frontend/v2/react-utils');
23
- require('react/jsx-runtime');
24
39
  require('@babel/runtime/helpers/objectWithoutProperties');
25
40
  require('@bigbinary/neeto-commons-frontend/v2/react-utils/withT');
26
- require('@babel/runtime/helpers/slicedToArray');
27
- require('react');
28
41
  require('@bigbinary/neeto-molecules/v2/StickyRibbon');
29
42
  require('ramda');
30
- require('react-i18next');
31
- require('react-router-dom');
32
- require('../../useDisconnectionAlertsApi-DEZp8XAE.js');
33
- require('@tanstack/react-query');
34
- require('@bigbinary/neeto-commons-frontend/constants');
35
- require('@bigbinary/neeto-commons-frontend/react-utils');
36
- require('axios');
37
- require('i18next');
38
- require('../../useDailiesApi-BqGt8Lap.js');
43
+ require('../../useDisconnectionAlertsApi-BGaBOO_4.js');
44
+ require('../../useDailiesApi-BmI2LDF7.js');
39
45
  require('@bigbinary/neeto-commons-frontend/v2/utils');
40
46
  require('@bigbinary/neeto-icons/misc/Daily');
41
- require('@bigbinary/neeto-molecules/v2/CopyToClipboardButton');
42
- require('@bigbinary/neeto-atoms/formik');
43
- require('@bigbinary/neeto-molecules/v2/CardLayout');
44
- require('@bigbinary/neeto-molecules/v2/Container');
45
- require('@bigbinary/neeto-molecules/v2/Header');
46
- require('yup');
47
47
  require('@babel/runtime/helpers/toConsumableArray');
48
48
  require('@bigbinary/neeto-icons/misc/GoogleCalendar');
49
49
  require('@bigbinary/neeto-icons/misc/Google');
50
- require('../../useTelnyxApi-BZHgKq_v.js');
50
+ require('../../useTelnyxApi-DH5XaYIo.js');
51
51
  require('@babel/runtime/helpers/asyncToGenerator');
52
- require('../../useTwilioApi-00tz9iTn.js');
52
+ require('../../useTwilioApi-CYF8UIPN.js');
53
53
  require('@bigbinary/neeto-icons/misc/Zoom');
54
- require('../../useZoomApi-DEqrcL4c.js');
54
+ require('../../useZoomApi-Be2unav5.js');
55
55
  require('classnames');
56
56
  require('lucide-react');
57
57
  require('@bigbinary/neeto-filters-frontend/v2/utils');
@@ -61,9 +61,261 @@ require('@bigbinary/neeto-molecules/v2/SubHeader');
61
61
  require('../../index-dxk7jTL7.js');
62
62
  require('../../success-CsNvTPBG.js');
63
63
 
64
+ function _interopNamespaceDefault(e) {
65
+ var n = Object.create(null);
66
+ if (e) {
67
+ Object.keys(e).forEach(function (k) {
68
+ if (k !== 'default') {
69
+ var d = Object.getOwnPropertyDescriptor(e, k);
70
+ Object.defineProperty(n, k, d.get ? d : {
71
+ enumerable: true,
72
+ get: function () { return e[k]; }
73
+ });
74
+ }
75
+ });
76
+ }
77
+ n.default = e;
78
+ return Object.freeze(n);
79
+ }
64
80
 
81
+ var yup__namespace = /*#__PURE__*/_interopNamespaceDefault(yup);
82
+
83
+ var create = function create(payload) {
84
+ return axios.post(query.INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL, {
85
+ googleMaps: payload
86
+ });
87
+ };
88
+ var show = function show() {
89
+ return axios.get(query.INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);
90
+ };
91
+ var destroy = function destroy() {
92
+ return axios["delete"](query.INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);
93
+ };
94
+ var googleMapsApi = {
95
+ create: create,
96
+ show: show,
97
+ destroy: destroy
98
+ };
99
+
100
+ 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; }
101
+ 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; }
102
+ var useFetchGoogleMaps = function useFetchGoogleMaps() {
103
+ return reactQuery.useQuery({
104
+ queryKey: query.googleMapsQueryKey,
105
+ queryFn: googleMapsApi.show,
106
+ staleTime: constants.DEFAULT_STALE_TIME
107
+ });
108
+ };
109
+ var useCreateGoogleMaps = function useCreateGoogleMaps() {
110
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
111
+ return reactUtils.useMutationWithInvalidation(googleMapsApi.create, _objectSpread({
112
+ keysToInvalidate: [query.googleMapsQueryKey]
113
+ }, options));
114
+ };
115
+ var useDestroyGoogleMaps = function useDestroyGoogleMaps() {
116
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
117
+ return reactUtils.useMutationWithInvalidation(googleMapsApi.destroy, _objectSpread({
118
+ keysToInvalidate: [query.googleMapsQueryKey]
119
+ }, options));
120
+ };
121
+
122
+ var GOOGLE_MAPS_FORM_INITIAL_VALUES = {
123
+ apiKey: ""
124
+ };
125
+ var GOOGLE_MAPS_VALIDATION_SCHEMA = yup__namespace.object().shape({
126
+ apiKey: yup__namespace.string().trim().required(i18next.t("neetoIntegrations.errors.required", {
127
+ entity: i18next.t("neetoIntegrations.googleMaps.apiKey")
128
+ }))
129
+ });
130
+
131
+ var Form = function Form(_ref) {
132
+ var _ref$helpDocUrl = _ref.helpDocUrl,
133
+ helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
134
+ _ref$breadcrumbs = _ref.breadcrumbs,
135
+ breadcrumbs = _ref$breadcrumbs === void 0 ? [] : _ref$breadcrumbs,
136
+ _ref$onConnect = _ref.onConnect,
137
+ onConnect = _ref$onConnect === void 0 ? neetoCist.noop : _ref$onConnect;
138
+ var _useTranslation = reactI18next.useTranslation(),
139
+ t = _useTranslation.t;
140
+ var history = reactRouterDom.useHistory();
141
+ var _useCreateGoogleMaps = useCreateGoogleMaps({
142
+ onSuccess: function onSuccess() {
143
+ return onConnect();
144
+ }
145
+ }),
146
+ createGoogleMaps = _useCreateGoogleMaps.mutate,
147
+ isConnecting = _useCreateGoogleMaps.isPending;
148
+ var handleSubmit = function handleSubmit(_ref2) {
149
+ var apiKey = _ref2.apiKey;
150
+ return createGoogleMaps({
151
+ apiKey: apiKey.trim()
152
+ });
153
+ };
154
+ return /*#__PURE__*/jsxRuntime.jsxs(Container, {
155
+ isHeaderFixed: true,
156
+ children: [/*#__PURE__*/jsxRuntime.jsx(Header, {
157
+ breadcrumbs: breadcrumbs,
158
+ title: t("neetoIntegrations.common.connect")
159
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
160
+ className: "w-full",
161
+ children: /*#__PURE__*/jsxRuntime.jsx(formik.Form, {
162
+ formikProps: {
163
+ initialValues: GOOGLE_MAPS_FORM_INITIAL_VALUES,
164
+ validationSchema: GOOGLE_MAPS_VALIDATION_SCHEMA,
165
+ onSubmit: handleSubmit
166
+ },
167
+ children: /*#__PURE__*/jsxRuntime.jsx(CardLayout, {
168
+ actionBlock: /*#__PURE__*/jsxRuntime.jsx(formik.ActionBlock, {
169
+ cancelButtonProps: {
170
+ onClick: function onClick() {
171
+ return history.goBack();
172
+ }
173
+ },
174
+ isSubmitting: isConnecting,
175
+ submitButtonProps: {
176
+ label: t("neetoIntegrations.common.connect")
177
+ }
178
+ }),
179
+ children: /*#__PURE__*/jsxRuntime.jsx(formik.Input, {
180
+ autoFocus: true,
181
+ required: true,
182
+ autoComplete: "off",
183
+ dataTestId: "google-maps-api-key",
184
+ label: t("neetoIntegrations.googleMaps.apiKey"),
185
+ name: "apiKey",
186
+ helpText: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
187
+ i18nKey: "neetoIntegrations.googleMaps.apiKeyHelpText",
188
+ components: {
189
+ helpLink: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
190
+ "data-testid": "google-maps-api-key-help-link",
191
+ href: helpDocUrl,
192
+ rel: "noreferrer",
193
+ target: "_blank",
194
+ variant: "link"
195
+ })
196
+ }
197
+ })
198
+ })
199
+ })
200
+ })
201
+ })]
202
+ });
203
+ };
204
+
205
+ var GoogleMapsIcon = function GoogleMapsIcon(_ref) {
206
+ var _ref$size = _ref.size,
207
+ size = _ref$size === void 0 ? 24 : _ref$size,
208
+ _ref$className = _ref.className,
209
+ className = _ref$className === void 0 ? "" : _ref$className;
210
+ return /*#__PURE__*/jsxRuntime.jsxs("svg", {
211
+ className: className,
212
+ "aria-hidden": "true",
213
+ height: size,
214
+ viewBox: "0 0 92.3 132.3",
215
+ width: size,
216
+ xmlns: "http://www.w3.org/2000/svg",
217
+ children: [/*#__PURE__*/jsxRuntime.jsx("path", {
218
+ d: "M60.2 2.2C55.8.8 51 0 46.1 0 32 0 19.3 6.4 10.8 16.5l21.8 18.3L60.2 2.2z",
219
+ fill: "#1a73e8"
220
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
221
+ d: "M10.8 16.5C4.1 24.5 0 34.9 0 46.1c0 8.7 1.7 15.7 4.6 22l28-33.3-21.8-18.3z",
222
+ fill: "#ea4335"
223
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
224
+ d: "M46.2 28.5c9.8 0 17.7 7.9 17.7 17.7 0 4.3-1.6 8.3-4.2 11.4 0 0 13.9-16.6 27.5-32.7-5.6-10.8-15.3-19-27-22.7L32.6 34.8c3.3-3.8 8.1-6.3 13.6-6.3",
225
+ fill: "#4285f4"
226
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
227
+ d: "M46.2 63.8c-9.8 0-17.7-7.9-17.7-17.7 0-4.3 1.5-8.3 4.1-11.3l-28 33.3c4.8 10.6 12.8 19.2 21 29.9l34.1-40.5c-3.3 3.9-8.1 6.3-13.5 6.3",
228
+ fill: "#fbbc04"
229
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
230
+ d: "M59.1 109.2c15.4-24.1 33.3-35 33.3-63 0-7.7-1.9-14.9-5.2-21.3L25.6 98c2.6 3.4 5.3 7.3 7.9 11.3 9.4 14.5 6.8 23.1 12.8 23.1s3.4-8.7 12.8-23.2",
231
+ fill: "#34a853"
232
+ })]
233
+ });
234
+ };
235
+
236
+ var Manage = function Manage(_ref) {
237
+ var _ref$connectPath = _ref.connectPath,
238
+ connectPath = _ref$connectPath === void 0 ? "" : _ref$connectPath,
239
+ _ref$helpDocUrl = _ref.helpDocUrl,
240
+ helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
241
+ _ref$onDisconnect = _ref.onDisconnect,
242
+ onDisconnect = _ref$onDisconnect === void 0 ? neetoCist.noop : _ref$onDisconnect;
243
+ var _useTranslation = reactI18next.useTranslation(),
244
+ t = _useTranslation.t;
245
+ var _useState = React.useState(false),
246
+ _useState2 = _slicedToArray(_useState, 2),
247
+ isDisconnectAlertOpen = _useState2[0],
248
+ setIsDisconnectAlertOpen = _useState2[1];
249
+ var _useFetchGoogleMaps = useFetchGoogleMaps(),
250
+ _useFetchGoogleMaps$d = _useFetchGoogleMaps.data,
251
+ _useFetchGoogleMaps$d2 = _useFetchGoogleMaps$d === void 0 ? {} : _useFetchGoogleMaps$d,
252
+ _useFetchGoogleMaps$d3 = _useFetchGoogleMaps$d2.apiKey,
253
+ apiKey = _useFetchGoogleMaps$d3 === void 0 ? null : _useFetchGoogleMaps$d3,
254
+ isLoading = _useFetchGoogleMaps.isLoading;
255
+ var _useDestroyGoogleMaps = useDestroyGoogleMaps({
256
+ onSuccess: function onSuccess() {
257
+ setIsDisconnectAlertOpen(false);
258
+ onDisconnect();
259
+ }
260
+ }),
261
+ destroyGoogleMaps = _useDestroyGoogleMaps.mutate,
262
+ isDisconnecting = _useDestroyGoogleMaps.isPending;
263
+ var isConnected = neetoCist.isPresent(apiKey);
264
+ if (isLoading) {
265
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
266
+ className: "flex h-full w-full items-center justify-center",
267
+ children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Spinner, {})
268
+ });
269
+ }
270
+ return /*#__PURE__*/jsxRuntime.jsx(v2_Manage, {
271
+ connectPath: connectPath,
272
+ helpDocUrl: helpDocUrl,
273
+ isConnected: isConnected,
274
+ isDisconnectAlertOpen: isDisconnectAlertOpen,
275
+ isDisconnecting: isDisconnecting,
276
+ setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
277
+ Icon: GoogleMapsIcon,
278
+ disconnectMessage: t("neetoIntegrations.googleMaps.disconnect.message"),
279
+ disconnectTitle: t("neetoIntegrations.googleMaps.disconnect.title"),
280
+ integration: "googleMaps",
281
+ integrationName: t("neetoIntegrations.googleMaps.title"),
282
+ description: isConnected ? /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
283
+ as: "span",
284
+ variant: "body1",
285
+ children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
286
+ i18nKey: "neetoIntegrations.googleMaps.connectedDescription",
287
+ values: {
288
+ apiKey: apiKey
289
+ },
290
+ components: {
291
+ wrapper: /*#__PURE__*/jsxRuntime.jsx("div", {
292
+ className: "mt-2 flex items-center justify-between gap-x-3 rounded-md border border-border px-3 py-2"
293
+ }),
294
+ span: /*#__PURE__*/jsxRuntime.jsx("span", {
295
+ className: "break-all text-sm"
296
+ }),
297
+ copy: /*#__PURE__*/jsxRuntime.jsx(CopyToClipboardButton, {
298
+ className: "shrink-0 self-start",
299
+ value: apiKey,
300
+ variant: "ghost"
301
+ })
302
+ }
303
+ })
304
+ }) : t("neetoIntegrations.googleMaps.description"),
305
+ title: isConnected ? t("neetoIntegrations.googleMaps.connected") : t("neetoIntegrations.common.connectIntegration", {
306
+ integration: t("neetoIntegrations.googleMaps.title")
307
+ }),
308
+ onClose: function onClose() {
309
+ return setIsDisconnectAlertOpen(false);
310
+ },
311
+ onDisconnect: function onDisconnect() {
312
+ return destroyGoogleMaps();
313
+ }
314
+ });
315
+ };
65
316
 
66
317
  exports.disconnectionAlertsQueryKey = query.disconnectionAlertsQueryKey;
318
+ exports.googleMapsQueryKey = query.googleMapsQueryKey;
67
319
  exports.Manage = v2_Manage;
68
320
  exports.DisconnectAlert = v2_DisconnectAlert;
69
321
  exports.DisconnectedIntegrationsRibbon = v2_DisconnectedIntegrationsRibbon;
@@ -79,4 +331,7 @@ exports.Connect = v2_Connect;
79
331
  exports.Demo = v2_Demo;
80
332
  exports.Finish = v2_Finish;
81
333
  exports.WalkthroughModal = v2_WalkthroughModal;
334
+ exports.GoogleMapsForm = Form;
335
+ exports.GoogleMapsIcon = GoogleMapsIcon;
336
+ exports.GoogleMapsManage = Manage;
82
337
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../app/javascript/src/apis/google_maps.js","../../../app/javascript/src/hooks/reactQuery/useGoogleMapsApi.js","../../../app/javascript/src/v2/components/Integrations/GoogleMaps/constants.js","../../../app/javascript/src/v2/components/Integrations/GoogleMaps/Form.jsx","../../../app/javascript/src/v2/components/Integrations/GoogleMaps/Icon.jsx","../../../app/javascript/src/v2/components/Integrations/GoogleMaps/Manage.jsx"],"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","import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const GOOGLE_MAPS_FORM_INITIAL_VALUES = { apiKey: \"\" };\n\nexport const GOOGLE_MAPS_VALIDATION_SCHEMA = yup.object().shape({\n apiKey: yup\n .string()\n .trim()\n .required(\n t(\"neetoIntegrations.errors.required\", {\n entity: t(\"neetoIntegrations.googleMaps.apiKey\"),\n })\n ),\n});\n","import { Button } from \"neetoatoms\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoatoms/formik\";\nimport { noop } from \"neetocist\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport Container from \"neetomolecules/v2/Container\";\nimport Header from \"neetomolecules/v2/Header\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { useCreateGoogleMaps } from \"hooks/reactQuery/useGoogleMapsApi\";\n\nimport {\n GOOGLE_MAPS_FORM_INITIAL_VALUES,\n GOOGLE_MAPS_VALIDATION_SCHEMA,\n} from \"./constants\";\n\nconst Form = ({ helpDocUrl = \"\", breadcrumbs = [], onConnect = noop }) => {\n const { t } = useTranslation();\n const history = useHistory();\n\n const { mutate: createGoogleMaps, isPending: isConnecting } =\n useCreateGoogleMaps({ onSuccess: () => onConnect() });\n\n const handleSubmit = ({ apiKey }) =>\n createGoogleMaps({ apiKey: apiKey.trim() });\n\n return (\n <Container isHeaderFixed>\n <Header\n {...{ breadcrumbs }}\n title={t(\"neetoIntegrations.common.connect\")}\n />\n <div className=\"w-full\">\n <FormikForm\n formikProps={{\n initialValues: GOOGLE_MAPS_FORM_INITIAL_VALUES,\n validationSchema: GOOGLE_MAPS_VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <CardLayout\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isConnecting}\n submitButtonProps={{\n label: t(\"neetoIntegrations.common.connect\"),\n }}\n />\n }\n >\n <Input\n autoFocus\n required\n autoComplete=\"off\"\n dataTestId=\"google-maps-api-key\"\n label={t(\"neetoIntegrations.googleMaps.apiKey\")}\n name=\"apiKey\"\n helpText={\n <Trans\n i18nKey=\"neetoIntegrations.googleMaps.apiKeyHelpText\"\n components={{\n helpLink: (\n <Button\n data-testid=\"google-maps-api-key-help-link\"\n href={helpDocUrl}\n rel=\"noreferrer\"\n target=\"_blank\"\n variant=\"link\"\n />\n ),\n }}\n />\n }\n />\n </CardLayout>\n </FormikForm>\n </div>\n </Container>\n );\n};\n\nexport default Form;\n","const GoogleMapsIcon = ({ size = 24, className = \"\" }) => (\n <svg\n {...{ className }}\n aria-hidden=\"true\"\n height={size}\n viewBox=\"0 0 92.3 132.3\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M60.2 2.2C55.8.8 51 0 46.1 0 32 0 19.3 6.4 10.8 16.5l21.8 18.3L60.2 2.2z\"\n fill=\"#1a73e8\"\n />\n <path\n d=\"M10.8 16.5C4.1 24.5 0 34.9 0 46.1c0 8.7 1.7 15.7 4.6 22l28-33.3-21.8-18.3z\"\n fill=\"#ea4335\"\n />\n <path\n d=\"M46.2 28.5c9.8 0 17.7 7.9 17.7 17.7 0 4.3-1.6 8.3-4.2 11.4 0 0 13.9-16.6 27.5-32.7-5.6-10.8-15.3-19-27-22.7L32.6 34.8c3.3-3.8 8.1-6.3 13.6-6.3\"\n fill=\"#4285f4\"\n />\n <path\n d=\"M46.2 63.8c-9.8 0-17.7-7.9-17.7-17.7 0-4.3 1.5-8.3 4.1-11.3l-28 33.3c4.8 10.6 12.8 19.2 21 29.9l34.1-40.5c-3.3 3.9-8.1 6.3-13.5 6.3\"\n fill=\"#fbbc04\"\n />\n <path\n d=\"M59.1 109.2c15.4-24.1 33.3-35 33.3-63 0-7.7-1.9-14.9-5.2-21.3L25.6 98c2.6 3.4 5.3 7.3 7.9 11.3 9.4 14.5 6.8 23.1 12.8 23.1s3.4-8.7 12.8-23.2\"\n fill=\"#34a853\"\n />\n </svg>\n);\n\nexport default GoogleMapsIcon;\n","import { useState } from \"react\";\n\nimport { Spinner, Typography } from \"neetoatoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport CopyToClipboardButton from \"neetomolecules/v2/CopyToClipboardButton\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport {\n useDestroyGoogleMaps,\n useFetchGoogleMaps,\n} from \"hooks/reactQuery/useGoogleMapsApi\";\n\nimport GoogleMapsIcon from \"./Icon\";\n\nimport ManageIntegration from \"../../commons/Manage\";\n\nconst Manage = ({ connectPath = \"\", helpDocUrl = \"\", onDisconnect = noop }) => {\n const { t } = useTranslation();\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { apiKey = null } = {}, isLoading } = useFetchGoogleMaps();\n const { mutate: destroyGoogleMaps, isPending: isDisconnecting } =\n useDestroyGoogleMaps({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect();\n },\n });\n\n const isConnected = isPresent(apiKey);\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegration\n {...{\n connectPath,\n helpDocUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={GoogleMapsIcon}\n disconnectMessage={t(\"neetoIntegrations.googleMaps.disconnect.message\")}\n disconnectTitle={t(\"neetoIntegrations.googleMaps.disconnect.title\")}\n integration=\"googleMaps\"\n integrationName={t(\"neetoIntegrations.googleMaps.title\")}\n description={\n isConnected ? (\n <Typography as=\"span\" variant=\"body1\">\n <Trans\n i18nKey=\"neetoIntegrations.googleMaps.connectedDescription\"\n values={{ apiKey }}\n components={{\n wrapper: (\n <div className=\"mt-2 flex items-center justify-between gap-x-3 rounded-md border border-border px-3 py-2\" />\n ),\n span: <span className=\"break-all text-sm\" />,\n copy: (\n <CopyToClipboardButton\n className=\"shrink-0 self-start\"\n value={apiKey}\n variant=\"ghost\"\n />\n ),\n }}\n />\n </Typography>\n ) : (\n t(\"neetoIntegrations.googleMaps.description\")\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.googleMaps.connected\")\n : t(\"neetoIntegrations.common.connectIntegration\", {\n integration: t(\"neetoIntegrations.googleMaps.title\"),\n })\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => destroyGoogleMaps()}\n />\n );\n};\n\nexport default Manage;\n"],"names":["create","payload","axios","post","INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL","googleMaps","show","get","destroy","googleMapsApi","useFetchGoogleMaps","useQuery","queryKey","googleMapsQueryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useCreateGoogleMaps","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","useDestroyGoogleMaps","GOOGLE_MAPS_FORM_INITIAL_VALUES","apiKey","GOOGLE_MAPS_VALIDATION_SCHEMA","yup","object","shape","string","trim","required","t","entity","Form","_ref","_ref$helpDocUrl","helpDocUrl","_ref$breadcrumbs","breadcrumbs","_ref$onConnect","onConnect","noop","_useTranslation","useTranslation","history","useHistory","_useCreateGoogleMaps","onSuccess","createGoogleMaps","mutate","isConnecting","isPending","handleSubmit","_ref2","_jsxs","Container","isHeaderFixed","children","_jsx","Header","title","className","FormikForm","formikProps","initialValues","validationSchema","onSubmit","CardLayout","actionBlock","ActionBlock","cancelButtonProps","onClick","goBack","isSubmitting","submitButtonProps","label","Input","autoFocus","autoComplete","dataTestId","name","helpText","Trans","i18nKey","components","helpLink","Button","href","rel","target","variant","GoogleMapsIcon","_ref$size","size","_ref$className","height","viewBox","width","xmlns","d","fill","Manage","_ref$connectPath","connectPath","_ref$onDisconnect","onDisconnect","_useState","useState","_useState2","_slicedToArray","isDisconnectAlertOpen","setIsDisconnectAlertOpen","_useFetchGoogleMaps","_useFetchGoogleMaps$d","data","_useFetchGoogleMaps$d2","_useFetchGoogleMaps$d3","isLoading","_useDestroyGoogleMaps","destroyGoogleMaps","isDisconnecting","isConnected","isPresent","Spinner","ManageIntegration","Icon","disconnectMessage","disconnectTitle","integration","integrationName","description","Typography","as","values","wrapper","span","copy","CopyToClipboardButton","value","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,yCAAmC,EAAE;AAAEC,IAAAA,UAAU,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,KAAK,CAACK,GAAG,CAACH,yCAAmC,CAAC;AAAA,CAAA;AAEjE,IAAMI,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAACE,yCAAmC,CAAC;AAAA,CAAA;AAEvE,IAAMK,aAAa,GAAG;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AA,CAAA,KAAA,EAAA;AAAKG,YAAAA,SAAS,EAAC;AAA0F,WAAE,CAC5G;AACD0E,UAAAA,IAAI,eAAE7E,cAAA,CAAA,MAAA,EAAA;AAAMG,YAAAA,SAAS,EAAC;AAAmB,WAAE,CAAC;UAC5C2E,IAAI,eACF9E,cAAA,CAAC+E,qBAAqB,EAAA;AACpB5E,YAAAA,SAAS,EAAC,qBAAqB;AAC/B6E,YAAAA,KAAK,EAAEnH,MAAO;AACdmE,YAAAA,OAAO,EAAC;WACT;AAEL;OACD;AAAC,KACQ,CAAC,GAEb3D,CAAC,CAAC,0CAA0C,CAE/C;IACD6B,KAAK,EACH6D,WAAW,GACP1F,CAAC,CAAC,wCAAwC,CAAC,GAC3CA,CAAC,CAAC,6CAA6C,EAAE;MAC/CiG,WAAW,EAAEjG,CAAC,CAAC,oCAAoC;AACrD,KAAC,CACN;IACD4G,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQ5B,wBAAwB,CAAC,KAAK,CAAC;IAAA,CAAC;IAC/CN,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQc,iBAAiB,EAAE;AAAA,IAAA;AAAC,GACzC,CAAC;AAEN;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import Tag from '@bigbinary/neetoui/Tag';
6
6
  import { isEmpty } from 'ramda';
7
7
  import { useTranslation, Trans } from 'react-i18next';
8
8
  import { Link } from 'react-router-dom';
9
- import { u as useFetchDisconnectionAlerts } from './useDisconnectionAlertsApi-BtVaHyF9.js';
9
+ import { u as useFetchDisconnectionAlerts } from './useDisconnectionAlertsApi-CKKd-vBU.js';
10
10
  import { t } from 'i18next';
11
11
  import { jsx, jsxs } from 'react/jsx-runtime';
12
12
  export { default as Daily } from './Daily.js';
@@ -20,7 +20,7 @@ export { default as Connect } from './Connect.js';
20
20
  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
- export { d as disconnectionAlertsQueryKey } from './query-Dy_oZzH0.js';
23
+ export { d as disconnectionAlertsQueryKey } from './query-dZxWLxGc.js';
24
24
  import '@babel/runtime/helpers/defineProperty';
25
25
  import '@bigbinary/neeto-cist';
26
26
  import '@bigbinary/neeto-commons-frontend/react-utils';
@@ -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-CiaD7Sm9.js';
39
+ import './useDailiesApi-dbPtabvs.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,11 +52,11 @@ 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-DUL4eIKW.js';
55
+ import './useTelnyxApi-Bdc2eE8x.js';
56
56
  import '@babel/runtime/helpers/asyncToGenerator';
57
- import './useTwilioApi-c-f8LcO6.js';
57
+ import './useTwilioApi-CFdE3TY_.js';
58
58
  import '@bigbinary/neeto-icons/misc/Zoom';
59
- import './useZoomApi-fSvs1Qpv.js';
59
+ import './useZoomApi-CcPofKkx.js';
60
60
  import '@bigbinary/neetoui/Modal';
61
61
  import 'classnames';
62
62
  import './index-MS1ts-9f.js';
@@ -3,6 +3,7 @@
3
3
  var INTEGRATIONS_ENGINE_BASE_URL = "/neeto_integrations";
4
4
  var TWILIO_CONFIGURATION_BASE_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/twilio/sms_configurations");
5
5
  var INTEGRATIONS_ENGINE_DAILY_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/daily");
6
+ var INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/google_maps");
6
7
  var INTEGRATIONS_ENGINE_ZOOM_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/zoom");
7
8
  var INTEGRATION_DETAILS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/status");
8
9
  var TELNYX_PHONE_NUMBERS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/telnyx/phone_numbers");
@@ -15,15 +16,18 @@ var QUERY_KEYS = {
15
16
  TWILIO_SENDER_OPTIONS: "twilio-sender-options",
16
17
  TELNYX_SMS_CONFIGURATION: "telnyx-sms-configuration",
17
18
  DAILY_CO_DETAILS: "daily-co-details",
19
+ GOOGLE_MAPS_DETAILS: "google-maps-details",
18
20
  ZOOM_DETAILS: "zoom-details",
19
21
  DISCONNECTION_ALERTS: "disconnection-alerts",
20
22
  SMS_LOGS: "sms-logs",
21
23
  SMS_LOG: "sms-log"
22
24
  };
23
25
  var disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];
26
+ var googleMapsQueryKey = [QUERY_KEYS.GOOGLE_MAPS_DETAILS];
24
27
 
25
28
  exports.DISCONNECTION_ALERTS_URL = DISCONNECTION_ALERTS_URL;
26
29
  exports.INTEGRATIONS_ENGINE_DAILY_URL = INTEGRATIONS_ENGINE_DAILY_URL;
30
+ exports.INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL = INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL;
27
31
  exports.INTEGRATIONS_ENGINE_ZOOM_URL = INTEGRATIONS_ENGINE_ZOOM_URL;
28
32
  exports.INTEGRATION_DETAILS_URL = INTEGRATION_DETAILS_URL;
29
33
  exports.QUERY_KEYS = QUERY_KEYS;
@@ -32,4 +36,5 @@ exports.TELNYX_PHONE_NUMBERS_URL = TELNYX_PHONE_NUMBERS_URL;
32
36
  exports.TELNYX_SMS_CONFIGURATION_URL = TELNYX_SMS_CONFIGURATION_URL;
33
37
  exports.TWILIO_CONFIGURATION_BASE_URL = TWILIO_CONFIGURATION_BASE_URL;
34
38
  exports.disconnectionAlertsQueryKey = disconnectionAlertsQueryKey;
35
- //# sourceMappingURL=query-DJngL7gT.js.map
39
+ exports.googleMapsQueryKey = googleMapsQueryKey;
40
+ //# sourceMappingURL=query-DFg4la-L.js.map
@@ -0,0 +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":["INTEGRATIONS_ENGINE_BASE_URL","TWILIO_CONFIGURATION_BASE_URL","concat","INTEGRATIONS_ENGINE_DAILY_URL","INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL","INTEGRATIONS_ENGINE_ZOOM_URL","INTEGRATION_DETAILS_URL","TELNYX_PHONE_NUMBERS_URL","TELNYX_SMS_CONFIGURATION_URL","DISCONNECTION_ALERTS_URL","SMS_LOGS_URL","QUERY_KEYS","TWILIO_SMS_CONFIGURATION","TWILIO_SENDER_OPTIONS","TELNYX_SMS_CONFIGURATION","DAILY_CO_DETAILS","GOOGLE_MAPS_DETAILS","ZOOM_DETAILS","DISCONNECTION_ALERTS","SMS_LOGS","SMS_LOG","disconnectionAlertsQueryKey","googleMapsQueryKey"],"mappings":";;AAAO,IAAMA,4BAA4B,GAAG,qBAAqB;IACpDC,6BAA6B,GAAA,EAAA,CAAAC,MAAA,CAAMF,4BAA4B,EAAA,4BAAA;IAC/DG,6BAA6B,GAAA,EAAA,CAAAD,MAAA,CAAMF,4BAA4B,EAAA,QAAA;IAC/DI,mCAAmC,GAAA,EAAA,CAAAF,MAAA,CAAMF,4BAA4B,EAAA,cAAA;IACrEK,4BAA4B,GAAA,EAAA,CAAAH,MAAA,CAAMF,4BAA4B,EAAA,OAAA;IAC9DM,uBAAuB,GAAA,EAAA,CAAAJ,MAAA,CAAMF,4BAA4B,EAAA,SAAA;IACzDO,wBAAwB,GAAA,EAAA,CAAAL,MAAA,CAAMF,4BAA4B,EAAA,uBAAA;IAC1DQ,4BAA4B,GAAA,EAAA,CAAAN,MAAA,CAAMF,4BAA4B,EAAA,4BAAA;IAC9DS,wBAAwB,GAAA,EAAA,CAAAP,MAAA,CAAMF,4BAA4B,EAAA,uBAAA;IAC1DU,YAAY,GAAA,EAAA,CAAAR,MAAA,CAAMF,4BAA4B,EAAA,WAAA;;ACTpD,IAAMW,UAAU,GAAG;AACxBC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,qBAAqB,EAAE,uBAAuB;AAC9CC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,gBAAgB,EAAE,kBAAkB;AACpCC,EAAAA,mBAAmB,EAAE,qBAAqB;AAC1CC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,OAAO,EAAE;AACX;IAEaC,2BAA2B,GAAG,CAACV,UAAU,CAACO,oBAAoB;IAE9DI,kBAAkB,GAAG,CAACX,UAAU,CAACK,mBAAmB;;;;;;;;;;;;;;;"}
@@ -1,6 +1,7 @@
1
1
  var INTEGRATIONS_ENGINE_BASE_URL = "/neeto_integrations";
2
2
  var TWILIO_CONFIGURATION_BASE_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/twilio/sms_configurations");
3
3
  var INTEGRATIONS_ENGINE_DAILY_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/daily");
4
+ var INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/google_maps");
4
5
  var INTEGRATIONS_ENGINE_ZOOM_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/zoom");
5
6
  var INTEGRATION_DETAILS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/status");
6
7
  var TELNYX_PHONE_NUMBERS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/telnyx/phone_numbers");
@@ -13,12 +14,14 @@ var QUERY_KEYS = {
13
14
  TWILIO_SENDER_OPTIONS: "twilio-sender-options",
14
15
  TELNYX_SMS_CONFIGURATION: "telnyx-sms-configuration",
15
16
  DAILY_CO_DETAILS: "daily-co-details",
17
+ GOOGLE_MAPS_DETAILS: "google-maps-details",
16
18
  ZOOM_DETAILS: "zoom-details",
17
19
  DISCONNECTION_ALERTS: "disconnection-alerts",
18
20
  SMS_LOGS: "sms-logs",
19
21
  SMS_LOG: "sms-log"
20
22
  };
21
23
  var disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];
24
+ var googleMapsQueryKey = [QUERY_KEYS.GOOGLE_MAPS_DETAILS];
22
25
 
23
- export { DISCONNECTION_ALERTS_URL as D, INTEGRATIONS_ENGINE_DAILY_URL as I, QUERY_KEYS as Q, SMS_LOGS_URL as S, TWILIO_CONFIGURATION_BASE_URL as T, TELNYX_SMS_CONFIGURATION_URL as a, TELNYX_PHONE_NUMBERS_URL as b, INTEGRATION_DETAILS_URL as c, disconnectionAlertsQueryKey as d, INTEGRATIONS_ENGINE_ZOOM_URL as e };
24
- //# sourceMappingURL=query-Dy_oZzH0.js.map
26
+ export { DISCONNECTION_ALERTS_URL as D, INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL as I, QUERY_KEYS as Q, SMS_LOGS_URL as S, TWILIO_CONFIGURATION_BASE_URL as T, TELNYX_SMS_CONFIGURATION_URL as a, TELNYX_PHONE_NUMBERS_URL as b, INTEGRATIONS_ENGINE_DAILY_URL as c, disconnectionAlertsQueryKey as d, INTEGRATION_DETAILS_URL as e, INTEGRATIONS_ENGINE_ZOOM_URL as f, googleMapsQueryKey as g };
27
+ //# sourceMappingURL=query-dZxWLxGc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-dZxWLxGc.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":["INTEGRATIONS_ENGINE_BASE_URL","TWILIO_CONFIGURATION_BASE_URL","concat","INTEGRATIONS_ENGINE_DAILY_URL","INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL","INTEGRATIONS_ENGINE_ZOOM_URL","INTEGRATION_DETAILS_URL","TELNYX_PHONE_NUMBERS_URL","TELNYX_SMS_CONFIGURATION_URL","DISCONNECTION_ALERTS_URL","SMS_LOGS_URL","QUERY_KEYS","TWILIO_SMS_CONFIGURATION","TWILIO_SENDER_OPTIONS","TELNYX_SMS_CONFIGURATION","DAILY_CO_DETAILS","GOOGLE_MAPS_DETAILS","ZOOM_DETAILS","DISCONNECTION_ALERTS","SMS_LOGS","SMS_LOG","disconnectionAlertsQueryKey","googleMapsQueryKey"],"mappings":"AAAO,IAAMA,4BAA4B,GAAG,qBAAqB;IACpDC,6BAA6B,GAAA,EAAA,CAAAC,MAAA,CAAMF,4BAA4B,EAAA,4BAAA;IAC/DG,6BAA6B,GAAA,EAAA,CAAAD,MAAA,CAAMF,4BAA4B,EAAA,QAAA;IAC/DI,mCAAmC,GAAA,EAAA,CAAAF,MAAA,CAAMF,4BAA4B,EAAA,cAAA;IACrEK,4BAA4B,GAAA,EAAA,CAAAH,MAAA,CAAMF,4BAA4B,EAAA,OAAA;IAC9DM,uBAAuB,GAAA,EAAA,CAAAJ,MAAA,CAAMF,4BAA4B,EAAA,SAAA;IACzDO,wBAAwB,GAAA,EAAA,CAAAL,MAAA,CAAMF,4BAA4B,EAAA,uBAAA;IAC1DQ,4BAA4B,GAAA,EAAA,CAAAN,MAAA,CAAMF,4BAA4B,EAAA,4BAAA;IAC9DS,wBAAwB,GAAA,EAAA,CAAAP,MAAA,CAAMF,4BAA4B,EAAA,uBAAA;IAC1DU,YAAY,GAAA,EAAA,CAAAR,MAAA,CAAMF,4BAA4B,EAAA,WAAA;;ACTpD,IAAMW,UAAU,GAAG;AACxBC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,qBAAqB,EAAE,uBAAuB;AAC9CC,EAAAA,wBAAwB,EAAE,0BAA0B;AACpDC,EAAAA,gBAAgB,EAAE,kBAAkB;AACpCC,EAAAA,mBAAmB,EAAE,qBAAqB;AAC1CC,EAAAA,YAAY,EAAE,cAAc;AAC5BC,EAAAA,oBAAoB,EAAE,sBAAsB;AAC5CC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,OAAO,EAAE;AACX;IAEaC,2BAA2B,GAAG,CAACV,UAAU,CAACO,oBAAoB;IAE9DI,kBAAkB,GAAG,CAACX,UAAU,CAACK,mBAAmB;;;;"}
@@ -5,7 +5,7 @@ var reactQuery = require('@tanstack/react-query');
5
5
  var constants = require('@bigbinary/neeto-commons-frontend/constants');
6
6
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
7
7
  var axios = require('axios');
8
- var query = require('./query-DJngL7gT.js');
8
+ var query = require('./query-DFg4la-L.js');
9
9
 
10
10
  var create = function create(payload) {
11
11
  return axios.post(query.INTEGRATIONS_ENGINE_DAILY_URL, {
@@ -50,4 +50,4 @@ var useDestroyDaily = function useDestroyDaily(_ref) {
50
50
  exports.useCreateDaily = useCreateDaily;
51
51
  exports.useDestroyDaily = useDestroyDaily;
52
52
  exports.useFetchDaily = useFetchDaily;
53
- //# sourceMappingURL=useDailiesApi-BqGt8Lap.js.map
53
+ //# sourceMappingURL=useDailiesApi-BmI2LDF7.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDailiesApi-BqGt8Lap.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_DAILY_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_DAILY_URL, { daily: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst dailiesApi = { create, show, destroy };\n\nexport default dailiesApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport dailiesApi from \"apis/dailies\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useCreateDaily = (options = {}) =>\n useMutationWithInvalidation(dailiesApi.create, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n ...options,\n });\n\nexport const useFetchDaily = () =>\n useQuery({\n queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],\n queryFn: dailiesApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useDestroyDaily = ({ onSuccess }) =>\n useMutationWithInvalidation(dailiesApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n onSuccess,\n });\n"],"names":["create","payload","axios","post","INTEGRATIONS_ENGINE_DAILY_URL","daily","show","get","destroy","dailiesApi","useCreateDaily","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","QUERY_KEYS","DAILY_CO_DETAILS","useFetchDaily","useQuery","queryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyDaily","_ref","onSuccess"],"mappings":";;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,mCAA6B,EAAE;AAAEC,IAAAA,KAAK,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,KAAK,CAACK,GAAG,CAACH,mCAA6B,CAAC;AAAA,CAAA;AAE3D,IAAMI,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAACE,mCAA6B,CAAC;AAAA,CAAA;AAEjE,IAAMK,UAAU,GAAG;AAAET,EAAAA,MAAM,EAANA,MAAM;AAAEM,EAAAA,IAAI,EAAJA,IAAI;AAAEE,EAAAA,OAAO,EAAPA;AAAQ,CAAC;;;;ACJrC,IAAME,cAAc,GAAG,SAAjBA,cAAcA,GAAA;AAAA,EAAA,IAAIC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OACzCG,sCAA2B,CAACN,UAAU,CAACT,MAAM,EAAAgB,aAAA,CAAA;AAC3CC,IAAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAACC,gBAAgB,CAAC;GAAC,EAC9CR,OAAO,CACX,CAAC;AAAA;AAEG,IAAMS,aAAa,GAAG,SAAhBA,aAAaA,GAAA;AAAA,EAAA,OACxBC,mBAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACJ,gBAAU,CAACC,gBAAgB,CAAC;IACvCI,OAAO,EAAEd,UAAU,CAACH,IAAI;AACxBkB,IAAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;IAESC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,SAAS,GAAAD,IAAA,CAATC,SAAS;AAAA,EAAA,OACzCb,sCAA2B,CAACN,UAAU,CAACD,OAAO,EAAE;AAC9CS,IAAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAACC,gBAAgB,CAAC,CAAC;AACjDS,IAAAA,SAAS,EAATA;AACF,GAAC,CAAC;AAAA;;;;;;"}
1
+ {"version":3,"file":"useDailiesApi-BmI2LDF7.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_DAILY_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_DAILY_URL, { daily: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst dailiesApi = { create, show, destroy };\n\nexport default dailiesApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport dailiesApi from \"apis/dailies\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useCreateDaily = (options = {}) =>\n useMutationWithInvalidation(dailiesApi.create, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n ...options,\n });\n\nexport const useFetchDaily = () =>\n useQuery({\n queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],\n queryFn: dailiesApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useDestroyDaily = ({ onSuccess }) =>\n useMutationWithInvalidation(dailiesApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n onSuccess,\n });\n"],"names":["create","payload","axios","post","INTEGRATIONS_ENGINE_DAILY_URL","daily","show","get","destroy","dailiesApi","useCreateDaily","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","QUERY_KEYS","DAILY_CO_DETAILS","useFetchDaily","useQuery","queryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyDaily","_ref","onSuccess"],"mappings":";;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,mCAA6B,EAAE;AAAEC,IAAAA,KAAK,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,KAAK,CAACK,GAAG,CAACH,mCAA6B,CAAC;AAAA,CAAA;AAE3D,IAAMI,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAACE,mCAA6B,CAAC;AAAA,CAAA;AAEjE,IAAMK,UAAU,GAAG;AAAET,EAAAA,MAAM,EAANA,MAAM;AAAEM,EAAAA,IAAI,EAAJA,IAAI;AAAEE,EAAAA,OAAO,EAAPA;AAAQ,CAAC;;;;ACJrC,IAAME,cAAc,GAAG,SAAjBA,cAAcA,GAAA;AAAA,EAAA,IAAIC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OACzCG,sCAA2B,CAACN,UAAU,CAACT,MAAM,EAAAgB,aAAA,CAAA;AAC3CC,IAAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAACC,gBAAgB,CAAC;GAAC,EAC9CR,OAAO,CACX,CAAC;AAAA;AAEG,IAAMS,aAAa,GAAG,SAAhBA,aAAaA,GAAA;AAAA,EAAA,OACxBC,mBAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACJ,gBAAU,CAACC,gBAAgB,CAAC;IACvCI,OAAO,EAAEd,UAAU,CAACH,IAAI;AACxBkB,IAAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;IAESC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,SAAS,GAAAD,IAAA,CAATC,SAAS;AAAA,EAAA,OACzCb,sCAA2B,CAACN,UAAU,CAACD,OAAO,EAAE;AAC9CS,IAAAA,gBAAgB,EAAE,CAAC,CAACC,gBAAU,CAACC,gBAAgB,CAAC,CAAC;AACjDS,IAAAA,SAAS,EAATA;AACF,GAAC,CAAC;AAAA;;;;;;"}
@@ -3,7 +3,7 @@ import { useQuery } from '@tanstack/react-query';
3
3
  import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
4
4
  import { useMutationWithInvalidation } from '@bigbinary/neeto-commons-frontend/react-utils';
5
5
  import axios from 'axios';
6
- import { I as INTEGRATIONS_ENGINE_DAILY_URL, Q as QUERY_KEYS } from './query-Dy_oZzH0.js';
6
+ import { c as INTEGRATIONS_ENGINE_DAILY_URL, Q as QUERY_KEYS } from './query-dZxWLxGc.js';
7
7
 
8
8
  var create = function create(payload) {
9
9
  return axios.post(INTEGRATIONS_ENGINE_DAILY_URL, {
@@ -46,4 +46,4 @@ var useDestroyDaily = function useDestroyDaily(_ref) {
46
46
  };
47
47
 
48
48
  export { useDestroyDaily as a, useCreateDaily as b, useFetchDaily as u };
49
- //# sourceMappingURL=useDailiesApi-CiaD7Sm9.js.map
49
+ //# sourceMappingURL=useDailiesApi-dbPtabvs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDailiesApi-CiaD7Sm9.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_DAILY_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_DAILY_URL, { daily: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst dailiesApi = { create, show, destroy };\n\nexport default dailiesApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport dailiesApi from \"apis/dailies\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useCreateDaily = (options = {}) =>\n useMutationWithInvalidation(dailiesApi.create, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n ...options,\n });\n\nexport const useFetchDaily = () =>\n useQuery({\n queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],\n queryFn: dailiesApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useDestroyDaily = ({ onSuccess }) =>\n useMutationWithInvalidation(dailiesApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n onSuccess,\n });\n"],"names":["create","payload","axios","post","INTEGRATIONS_ENGINE_DAILY_URL","daily","show","get","destroy","dailiesApi","useCreateDaily","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","QUERY_KEYS","DAILY_CO_DETAILS","useFetchDaily","useQuery","queryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyDaily","_ref","onSuccess"],"mappings":";;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,6BAA6B,EAAE;AAAEC,IAAAA,KAAK,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,KAAK,CAACK,GAAG,CAACH,6BAA6B,CAAC;AAAA,CAAA;AAE3D,IAAMI,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAACE,6BAA6B,CAAC;AAAA,CAAA;AAEjE,IAAMK,UAAU,GAAG;AAAET,EAAAA,MAAM,EAANA,MAAM;AAAEM,EAAAA,IAAI,EAAJA,IAAI;AAAEE,EAAAA,OAAO,EAAPA;AAAQ,CAAC;;;;ACJrC,IAAME,cAAc,GAAG,SAAjBA,cAAcA,GAAA;AAAA,EAAA,IAAIC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OACzCG,2BAA2B,CAACN,UAAU,CAACT,MAAM,EAAAgB,aAAA,CAAA;AAC3CC,IAAAA,gBAAgB,EAAE,CAAC,CAACC,UAAU,CAACC,gBAAgB,CAAC;GAAC,EAC9CR,OAAO,CACX,CAAC;AAAA;AAEG,IAAMS,aAAa,GAAG,SAAhBA,aAAaA,GAAA;AAAA,EAAA,OACxBC,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACJ,UAAU,CAACC,gBAAgB,CAAC;IACvCI,OAAO,EAAEd,UAAU,CAACH,IAAI;AACxBkB,IAAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;IAESC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,SAAS,GAAAD,IAAA,CAATC,SAAS;AAAA,EAAA,OACzCb,2BAA2B,CAACN,UAAU,CAACD,OAAO,EAAE;AAC9CS,IAAAA,gBAAgB,EAAE,CAAC,CAACC,UAAU,CAACC,gBAAgB,CAAC,CAAC;AACjDS,IAAAA,SAAS,EAATA;AACF,GAAC,CAAC;AAAA;;;;"}
1
+ {"version":3,"file":"useDailiesApi-dbPtabvs.js","sources":["../app/javascript/src/apis/dailies.js","../app/javascript/src/hooks/reactQuery/useDailiesApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_DAILY_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_DAILY_URL, { daily: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_DAILY_URL);\n\nconst dailiesApi = { create, show, destroy };\n\nexport default dailiesApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport dailiesApi from \"apis/dailies\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useCreateDaily = (options = {}) =>\n useMutationWithInvalidation(dailiesApi.create, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n ...options,\n });\n\nexport const useFetchDaily = () =>\n useQuery({\n queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],\n queryFn: dailiesApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useDestroyDaily = ({ onSuccess }) =>\n useMutationWithInvalidation(dailiesApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],\n onSuccess,\n });\n"],"names":["create","payload","axios","post","INTEGRATIONS_ENGINE_DAILY_URL","daily","show","get","destroy","dailiesApi","useCreateDaily","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","QUERY_KEYS","DAILY_CO_DETAILS","useFetchDaily","useQuery","queryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyDaily","_ref","onSuccess"],"mappings":";;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,6BAA6B,EAAE;AAAEC,IAAAA,KAAK,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE/D,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,KAAK,CAACK,GAAG,CAACH,6BAA6B,CAAC;AAAA,CAAA;AAE3D,IAAMI,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,KAAK,CAAA,QAAA,CAAO,CAACE,6BAA6B,CAAC;AAAA,CAAA;AAEjE,IAAMK,UAAU,GAAG;AAAET,EAAAA,MAAM,EAANA,MAAM;AAAEM,EAAAA,IAAI,EAAJA,IAAI;AAAEE,EAAAA,OAAO,EAAPA;AAAQ,CAAC;;;;ACJrC,IAAME,cAAc,GAAG,SAAjBA,cAAcA,GAAA;AAAA,EAAA,IAAIC,OAAO,GAAAC,SAAA,CAAAC,MAAA,GAAA,CAAA,IAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OACzCG,2BAA2B,CAACN,UAAU,CAACT,MAAM,EAAAgB,aAAA,CAAA;AAC3CC,IAAAA,gBAAgB,EAAE,CAAC,CAACC,UAAU,CAACC,gBAAgB,CAAC;GAAC,EAC9CR,OAAO,CACX,CAAC;AAAA;AAEG,IAAMS,aAAa,GAAG,SAAhBA,aAAaA,GAAA;AAAA,EAAA,OACxBC,QAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAE,CAACJ,UAAU,CAACC,gBAAgB,CAAC;IACvCI,OAAO,EAAEd,UAAU,CAACH,IAAI;AACxBkB,IAAAA,SAAS,EAAEC;AACb,GAAC,CAAC;AAAA;IAESC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,SAAS,GAAAD,IAAA,CAATC,SAAS;AAAA,EAAA,OACzCb,2BAA2B,CAACN,UAAU,CAACD,OAAO,EAAE;AAC9CS,IAAAA,gBAAgB,EAAE,CAAC,CAACC,UAAU,CAACC,gBAAgB,CAAC,CAAC;AACjDS,IAAAA,SAAS,EAATA;AACF,GAAC,CAAC;AAAA;;;;"}
@@ -4,7 +4,7 @@ var reactQuery = require('@tanstack/react-query');
4
4
  var constants = require('@bigbinary/neeto-commons-frontend/constants');
5
5
  require('@bigbinary/neeto-commons-frontend/react-utils');
6
6
  var axios = require('axios');
7
- var query = require('./query-DJngL7gT.js');
7
+ var query = require('./query-DFg4la-L.js');
8
8
 
9
9
  var fetch = function fetch() {
10
10
  return axios.get(query.DISCONNECTION_ALERTS_URL);
@@ -22,4 +22,4 @@ var useFetchDisconnectionAlerts = function useFetchDisconnectionAlerts() {
22
22
  };
23
23
 
24
24
  exports.useFetchDisconnectionAlerts = useFetchDisconnectionAlerts;
25
- //# sourceMappingURL=useDisconnectionAlertsApi-DEZp8XAE.js.map
25
+ //# sourceMappingURL=useDisconnectionAlertsApi-BGaBOO_4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDisconnectionAlertsApi-DEZp8XAE.js","sources":["../app/javascript/src/apis/disconnection_alerts.js","../app/javascript/src/hooks/reactQuery/useDisconnectionAlertsApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { DISCONNECTION_ALERTS_URL } from \"src/constants/urls\";\n\nconst fetch = () => axios.get(DISCONNECTION_ALERTS_URL);\n\nconst destroyAll = ids =>\n axios.delete(`${DISCONNECTION_ALERTS_URL}/destroy_all`, { params: { ids } });\n\nconst disconnectionAlertsApi = { fetch, destroyAll };\n\nexport default disconnectionAlertsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport disconnectionAlertsApi from \"apis/disconnection_alerts\";\nimport { disconnectionAlertsQueryKey } from \"src/constants/query\";\n\nexport const useFetchDisconnectionAlerts = () =>\n useQuery({\n queryKey: disconnectionAlertsQueryKey,\n queryFn: disconnectionAlertsApi.fetch,\n staleTime: DEFAULT_STALE_TIME,\n refetchOnWindowFocus: \"always\",\n });\n\nexport const useDismissDisconnectionAlerts = ({ onSuccess } = {}) =>\n useMutationWithInvalidation(disconnectionAlertsApi.destroyAll, {\n keysToInvalidate: [disconnectionAlertsQueryKey],\n onSuccess: () => onSuccess?.(),\n });\n"],"names":["fetch","axios","get","DISCONNECTION_ALERTS_URL","disconnectionAlertsApi","useFetchDisconnectionAlerts","useQuery","queryKey","disconnectionAlertsQueryKey","queryFn","staleTime","DEFAULT_STALE_TIME","refetchOnWindowFocus"],"mappings":";;;;;;;;AAIA,IAAMA,KAAK,GAAG,SAARA,KAAKA,GAAA;AAAA,EAAA,OAASC,KAAK,CAACC,GAAG,CAACC,8BAAwB,CAAC;AAAA,CAAA;AAKvD,IAAMC,sBAAsB,GAAG;AAAEJ,EAAAA,KAAK,EAALA,KAAkB,CAAC;;ACF7C,IAAMK,2BAA2B,GAAG,SAA9BA,2BAA2BA,GAAA;AAAA,EAAA,OACtCC,mBAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAEC,iCAA2B;IACrCC,OAAO,EAAEL,sBAAsB,CAACJ,KAAK;AACrCU,IAAAA,SAAS,EAAEC,4BAAkB;AAC7BC,IAAAA,oBAAoB,EAAE;AACxB,GAAC,CAAC;AAAA;;;;"}
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":["fetch","axios","get","DISCONNECTION_ALERTS_URL","disconnectionAlertsApi","useFetchDisconnectionAlerts","useQuery","queryKey","disconnectionAlertsQueryKey","queryFn","staleTime","DEFAULT_STALE_TIME","refetchOnWindowFocus"],"mappings":";;;;;;;;AAIA,IAAMA,KAAK,GAAG,SAARA,KAAKA,GAAA;AAAA,EAAA,OAASC,KAAK,CAACC,GAAG,CAACC,8BAAwB,CAAC;AAAA,CAAA;AAKvD,IAAMC,sBAAsB,GAAG;AAAEJ,EAAAA,KAAK,EAALA,KAAkB,CAAC;;ACF7C,IAAMK,2BAA2B,GAAG,SAA9BA,2BAA2BA,GAAA;AAAA,EAAA,OACtCC,mBAAQ,CAAC;AACPC,IAAAA,QAAQ,EAAEC,iCAA2B;IACrCC,OAAO,EAAEL,sBAAsB,CAACJ,KAAK;AACrCU,IAAAA,SAAS,EAAEC,4BAAkB;AAC7BC,IAAAA,oBAAoB,EAAE;AACxB,GAAC,CAAC;AAAA;;;;"}
@@ -2,7 +2,7 @@ import { useQuery } from '@tanstack/react-query';
2
2
  import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
3
3
  import '@bigbinary/neeto-commons-frontend/react-utils';
4
4
  import axios from 'axios';
5
- import { D as DISCONNECTION_ALERTS_URL, d as disconnectionAlertsQueryKey } from './query-Dy_oZzH0.js';
5
+ import { D as DISCONNECTION_ALERTS_URL, d as disconnectionAlertsQueryKey } from './query-dZxWLxGc.js';
6
6
 
7
7
  var fetch = function fetch() {
8
8
  return axios.get(DISCONNECTION_ALERTS_URL);
@@ -20,4 +20,4 @@ var useFetchDisconnectionAlerts = function useFetchDisconnectionAlerts() {
20
20
  };
21
21
 
22
22
  export { useFetchDisconnectionAlerts as u };
23
- //# sourceMappingURL=useDisconnectionAlertsApi-BtVaHyF9.js.map
23
+ //# sourceMappingURL=useDisconnectionAlertsApi-CKKd-vBU.js.map