@dextinity/brevo-admin 2.0.0-canary-20260729062014
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/LICENSE +24 -0
- package/lib/blocks/NewsletterImageBlock.d.ts +8 -0
- package/lib/blocks/NewsletterImageBlock.d.ts.map +1 -0
- package/lib/blocks/NewsletterImageBlock.js +20 -0
- package/lib/blocks.generated.d.ts +206 -0
- package/lib/blocks.generated.d.ts.map +1 -0
- package/lib/blocks.generated.js +1 -0
- package/lib/brevoConfiguration/BrevoConfigForm.d.ts +8 -0
- package/lib/brevoConfiguration/BrevoConfigForm.d.ts.map +1 -0
- package/lib/brevoConfiguration/BrevoConfigForm.generated.d.ts +12 -0
- package/lib/brevoConfiguration/BrevoConfigForm.generated.d.ts.map +1 -0
- package/lib/brevoConfiguration/BrevoConfigForm.generated.js +1 -0
- package/lib/brevoConfiguration/BrevoConfigForm.gql.d.ts +6 -0
- package/lib/brevoConfiguration/BrevoConfigForm.gql.d.ts.map +1 -0
- package/lib/brevoConfiguration/BrevoConfigForm.gql.generated.d.ts +102 -0
- package/lib/brevoConfiguration/BrevoConfigForm.gql.generated.d.ts.map +1 -0
- package/lib/brevoConfiguration/BrevoConfigForm.gql.generated.js +14 -0
- package/lib/brevoConfiguration/BrevoConfigForm.gql.js +9 -0
- package/lib/brevoConfiguration/BrevoConfigForm.js +351 -0
- package/lib/brevoConfiguration/BrevoConfigPage.d.ts +3 -0
- package/lib/brevoConfiguration/BrevoConfigPage.d.ts.map +1 -0
- package/lib/brevoConfiguration/BrevoConfigPage.js +17 -0
- package/lib/brevoContacts/BrevoContactsGrid.d.ts +13 -0
- package/lib/brevoContacts/BrevoContactsGrid.d.ts.map +1 -0
- package/lib/brevoContacts/BrevoContactsGrid.generated.d.ts +65 -0
- package/lib/brevoContacts/BrevoContactsGrid.generated.d.ts.map +1 -0
- package/lib/brevoContacts/BrevoContactsGrid.generated.js +12 -0
- package/lib/brevoContacts/BrevoContactsGrid.js +238 -0
- package/lib/brevoContacts/BrevoContactsPage.d.ts +16 -0
- package/lib/brevoContacts/BrevoContactsPage.d.ts.map +1 -0
- package/lib/brevoContacts/BrevoContactsPage.js +77 -0
- package/lib/brevoContacts/form/BrevoContactForm.d.ts +19 -0
- package/lib/brevoContacts/form/BrevoContactForm.d.ts.map +1 -0
- package/lib/brevoContacts/form/BrevoContactForm.generated.d.ts +10 -0
- package/lib/brevoContacts/form/BrevoContactForm.generated.d.ts.map +1 -0
- package/lib/brevoContacts/form/BrevoContactForm.generated.js +5 -0
- package/lib/brevoContacts/form/BrevoContactForm.gql.d.ts +6 -0
- package/lib/brevoContacts/form/BrevoContactForm.gql.d.ts.map +1 -0
- package/lib/brevoContacts/form/BrevoContactForm.gql.generated.d.ts +58 -0
- package/lib/brevoContacts/form/BrevoContactForm.gql.generated.d.ts.map +1 -0
- package/lib/brevoContacts/form/BrevoContactForm.gql.generated.js +10 -0
- package/lib/brevoContacts/form/BrevoContactForm.gql.js +11 -0
- package/lib/brevoContacts/form/BrevoContactForm.js +346 -0
- package/lib/brevoTestContacts/BrevoTestContactsGrid.d.ts +13 -0
- package/lib/brevoTestContacts/BrevoTestContactsGrid.d.ts.map +1 -0
- package/lib/brevoTestContacts/BrevoTestContactsGrid.generated.d.ts +52 -0
- package/lib/brevoTestContacts/BrevoTestContactsGrid.generated.d.ts.map +1 -0
- package/lib/brevoTestContacts/BrevoTestContactsGrid.generated.js +11 -0
- package/lib/brevoTestContacts/BrevoTestContactsGrid.js +205 -0
- package/lib/brevoTestContacts/BrevoTestContactsPage.d.ts +18 -0
- package/lib/brevoTestContacts/BrevoTestContactsPage.d.ts.map +1 -0
- package/lib/brevoTestContacts/BrevoTestContactsPage.js +78 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.d.ts +19 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.d.ts.map +1 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.generated.d.ts +13 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.generated.d.ts.map +1 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.generated.js +5 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.d.ts +6 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.d.ts.map +1 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.generated.d.ts +64 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.generated.d.ts.map +1 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.generated.js +10 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.js +11 -0
- package/lib/brevoTestContacts/form/BrevoTestContactForm.js +266 -0
- package/lib/common/BrevoConfigProvider.d.ts +21 -0
- package/lib/common/BrevoConfigProvider.d.ts.map +1 -0
- package/lib/common/BrevoConfigProvider.js +33 -0
- package/lib/common/contactImport/useContactImportFromCsv.d.ts +18 -0
- package/lib/common/contactImport/useContactImportFromCsv.d.ts.map +1 -0
- package/lib/common/contactImport/useContactImportFromCsv.gql.d.ts +2 -0
- package/lib/common/contactImport/useContactImportFromCsv.gql.d.ts.map +1 -0
- package/lib/common/contactImport/useContactImportFromCsv.gql.generated.d.ts +26 -0
- package/lib/common/contactImport/useContactImportFromCsv.gql.generated.d.ts.map +1 -0
- package/lib/common/contactImport/useContactImportFromCsv.gql.generated.js +5 -0
- package/lib/common/contactImport/useContactImportFromCsv.gql.js +4 -0
- package/lib/common/contactImport/useContactImportFromCsv.js +462 -0
- package/lib/configVerification/ConfigVerification.d.ts +8 -0
- package/lib/configVerification/ConfigVerification.d.ts.map +1 -0
- package/lib/configVerification/ConfigVerification.gql.d.ts +2 -0
- package/lib/configVerification/ConfigVerification.gql.d.ts.map +1 -0
- package/lib/configVerification/ConfigVerification.gql.generated.d.ts +17 -0
- package/lib/configVerification/ConfigVerification.gql.generated.d.ts.map +1 -0
- package/lib/configVerification/ConfigVerification.gql.generated.js +5 -0
- package/lib/configVerification/ConfigVerification.gql.js +4 -0
- package/lib/configVerification/ConfigVerification.js +41 -0
- package/lib/dataGrid/DataGrid.d.ts +3 -0
- package/lib/dataGrid/DataGrid.d.ts.map +1 -0
- package/lib/dataGrid/DataGrid.js +19 -0
- package/lib/emailCampaigns/EmailCampaignsGrid.d.ts +7 -0
- package/lib/emailCampaigns/EmailCampaignsGrid.d.ts.map +1 -0
- package/lib/emailCampaigns/EmailCampaignsGrid.generated.d.ts +81 -0
- package/lib/emailCampaigns/EmailCampaignsGrid.generated.d.ts.map +1 -0
- package/lib/emailCampaigns/EmailCampaignsGrid.generated.js +12 -0
- package/lib/emailCampaigns/EmailCampaignsGrid.js +281 -0
- package/lib/emailCampaigns/EmailCampaignsPage.d.ts +8 -0
- package/lib/emailCampaigns/EmailCampaignsPage.d.ts.map +1 -0
- package/lib/emailCampaigns/EmailCampaignsPage.js +85 -0
- package/lib/emailCampaigns/SendingStateColumn.d.ts +7 -0
- package/lib/emailCampaigns/SendingStateColumn.d.ts.map +1 -0
- package/lib/emailCampaigns/SendingStateColumn.js +104 -0
- package/lib/emailCampaigns/form/ConfigFields.d.ts +2 -0
- package/lib/emailCampaigns/form/ConfigFields.d.ts.map +1 -0
- package/lib/emailCampaigns/form/ConfigFields.js +26 -0
- package/lib/emailCampaigns/form/EmailCampaignForm.d.ts +9 -0
- package/lib/emailCampaigns/form/EmailCampaignForm.d.ts.map +1 -0
- package/lib/emailCampaigns/form/EmailCampaignForm.gql.d.ts +4 -0
- package/lib/emailCampaigns/form/EmailCampaignForm.gql.d.ts.map +1 -0
- package/lib/emailCampaigns/form/EmailCampaignForm.gql.generated.d.ts +93 -0
- package/lib/emailCampaigns/form/EmailCampaignForm.gql.generated.d.ts.map +1 -0
- package/lib/emailCampaigns/form/EmailCampaignForm.gql.generated.js +12 -0
- package/lib/emailCampaigns/form/EmailCampaignForm.gql.js +7 -0
- package/lib/emailCampaigns/form/EmailCampaignForm.js +418 -0
- package/lib/emailCampaigns/form/SendEmailCampaignNowDialog.d.ts +8 -0
- package/lib/emailCampaigns/form/SendEmailCampaignNowDialog.d.ts.map +1 -0
- package/lib/emailCampaigns/form/SendEmailCampaignNowDialog.js +35 -0
- package/lib/emailCampaigns/form/SendManagerFields.d.ts +10 -0
- package/lib/emailCampaigns/form/SendManagerFields.d.ts.map +1 -0
- package/lib/emailCampaigns/form/SendManagerFields.gql.d.ts +3 -0
- package/lib/emailCampaigns/form/SendManagerFields.gql.d.ts.map +1 -0
- package/lib/emailCampaigns/form/SendManagerFields.gql.generated.d.ts +39 -0
- package/lib/emailCampaigns/form/SendManagerFields.gql.generated.d.ts.map +1 -0
- package/lib/emailCampaigns/form/SendManagerFields.gql.generated.js +11 -0
- package/lib/emailCampaigns/form/SendManagerFields.gql.js +6 -0
- package/lib/emailCampaigns/form/SendManagerFields.js +171 -0
- package/lib/emailCampaigns/form/SendManagerWrapper.d.ts +8 -0
- package/lib/emailCampaigns/form/SendManagerWrapper.d.ts.map +1 -0
- package/lib/emailCampaigns/form/SendManagerWrapper.gql.d.ts +2 -0
- package/lib/emailCampaigns/form/SendManagerWrapper.gql.d.ts.map +1 -0
- package/lib/emailCampaigns/form/SendManagerWrapper.gql.generated.d.ts +14 -0
- package/lib/emailCampaigns/form/SendManagerWrapper.gql.generated.d.ts.map +1 -0
- package/lib/emailCampaigns/form/SendManagerWrapper.gql.generated.js +5 -0
- package/lib/emailCampaigns/form/SendManagerWrapper.gql.js +4 -0
- package/lib/emailCampaigns/form/SendManagerWrapper.js +39 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.d.ts +10 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.d.ts.map +1 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.generated.d.ts +33 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.generated.d.ts.map +1 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.generated.js +8 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.gql.d.ts +2 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.gql.d.ts.map +1 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.gql.generated.d.ts +15 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.gql.generated.d.ts.map +1 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.gql.generated.js +5 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.gql.js +4 -0
- package/lib/emailCampaigns/form/TestEmailCampaignForm.js +146 -0
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.d.ts +7 -0
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.d.ts.map +1 -0
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.gql.d.ts +2 -0
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.gql.d.ts.map +1 -0
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.gql.generated.d.ts +23 -0
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.gql.generated.d.ts.map +1 -0
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.gql.generated.js +5 -0
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.gql.js +4 -0
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.js +133 -0
- package/lib/emailCampaigns/statistics/PercentageCard.d.ts +10 -0
- package/lib/emailCampaigns/statistics/PercentageCard.d.ts.map +1 -0
- package/lib/emailCampaigns/statistics/PercentageCard.js +145 -0
- package/lib/emailCampaigns/view/EmailCampaignView.d.ts +8 -0
- package/lib/emailCampaigns/view/EmailCampaignView.d.ts.map +1 -0
- package/lib/emailCampaigns/view/EmailCampaignView.gql.d.ts +2 -0
- package/lib/emailCampaigns/view/EmailCampaignView.gql.d.ts.map +1 -0
- package/lib/emailCampaigns/view/EmailCampaignView.gql.generated.d.ts +18 -0
- package/lib/emailCampaigns/view/EmailCampaignView.gql.generated.d.ts.map +1 -0
- package/lib/emailCampaigns/view/EmailCampaignView.gql.generated.js +5 -0
- package/lib/emailCampaigns/view/EmailCampaignView.gql.js +4 -0
- package/lib/emailCampaigns/view/EmailCampaignView.js +81 -0
- package/lib/graphql.generated.d.ts +596 -0
- package/lib/graphql.generated.d.ts.map +1 -0
- package/lib/graphql.generated.js +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +7 -0
- package/lib/targetGroups/TargetGroupDialog.d.ts +8 -0
- package/lib/targetGroups/TargetGroupDialog.d.ts.map +1 -0
- package/lib/targetGroups/TargetGroupDialog.gql.d.ts +2 -0
- package/lib/targetGroups/TargetGroupDialog.gql.d.ts.map +1 -0
- package/lib/targetGroups/TargetGroupDialog.gql.generated.d.ts +18 -0
- package/lib/targetGroups/TargetGroupDialog.gql.generated.d.ts.map +1 -0
- package/lib/targetGroups/TargetGroupDialog.gql.generated.js +5 -0
- package/lib/targetGroups/TargetGroupDialog.gql.js +4 -0
- package/lib/targetGroups/TargetGroupDialog.js +72 -0
- package/lib/targetGroups/TargetGroupForm.d.ts +20 -0
- package/lib/targetGroups/TargetGroupForm.d.ts.map +1 -0
- package/lib/targetGroups/TargetGroupForm.gql.d.ts +4 -0
- package/lib/targetGroups/TargetGroupForm.gql.d.ts.map +1 -0
- package/lib/targetGroups/TargetGroupForm.gql.generated.d.ts +37 -0
- package/lib/targetGroups/TargetGroupForm.gql.generated.d.ts.map +1 -0
- package/lib/targetGroups/TargetGroupForm.gql.generated.js +8 -0
- package/lib/targetGroups/TargetGroupForm.gql.js +9 -0
- package/lib/targetGroups/TargetGroupForm.js +219 -0
- package/lib/targetGroups/TargetGroupsGrid.d.ts +18 -0
- package/lib/targetGroups/TargetGroupsGrid.d.ts.map +1 -0
- package/lib/targetGroups/TargetGroupsGrid.generated.d.ts +90 -0
- package/lib/targetGroups/TargetGroupsGrid.generated.d.ts.map +1 -0
- package/lib/targetGroups/TargetGroupsGrid.generated.js +14 -0
- package/lib/targetGroups/TargetGroupsGrid.js +280 -0
- package/lib/targetGroups/TargetGroupsPage.d.ts +26 -0
- package/lib/targetGroups/TargetGroupsPage.d.ts.map +1 -0
- package/lib/targetGroups/TargetGroupsPage.js +63 -0
- package/lib/targetGroups/addContacts/AddContactsGridSelect.d.ts +10 -0
- package/lib/targetGroups/addContacts/AddContactsGridSelect.d.ts.map +1 -0
- package/lib/targetGroups/addContacts/AddContactsGridSelect.gql.d.ts +5 -0
- package/lib/targetGroups/addContacts/AddContactsGridSelect.gql.d.ts.map +1 -0
- package/lib/targetGroups/addContacts/AddContactsGridSelect.gql.generated.d.ts +84 -0
- package/lib/targetGroups/addContacts/AddContactsGridSelect.gql.generated.d.ts.map +1 -0
- package/lib/targetGroups/addContacts/AddContactsGridSelect.gql.generated.js +13 -0
- package/lib/targetGroups/addContacts/AddContactsGridSelect.gql.js +8 -0
- package/lib/targetGroups/addContacts/AddContactsGridSelect.js +346 -0
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.d.ts +10 -0
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.d.ts.map +1 -0
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.gql.d.ts +2 -0
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.gql.d.ts.map +1 -0
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.gql.generated.d.ts +42 -0
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.gql.generated.d.ts.map +1 -0
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.gql.generated.js +8 -0
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.gql.js +5 -0
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.js +112 -0
- package/package.json +109 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
4
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
5
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
6
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
7
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
8
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
10
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).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; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
17
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
19
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
21
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
22
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
23
|
+
import { gql, useApolloClient, useQuery } from "@apollo/client";
|
|
24
|
+
import { Button, CrudMoreActionsMenu, DataGridToolbar, GridToolbarQuickFilter, MainContent, messages, RowActionsItem, RowActionsMenu, StackLink, ToolbarFillSpace, useBufferedRowCount, useDataGridRemote, usePersistentColumnState } from "@dextinity/admin";
|
|
25
|
+
import { Add, Block, Check, Delete, Edit } from "@dextinity/admin-icons";
|
|
26
|
+
import { IconButton } from "@mui/material";
|
|
27
|
+
import { FormattedMessage, useIntl } from "react-intl";
|
|
28
|
+
import { useContactImportFromCsv } from "../common/contactImport/useContactImportFromCsv";
|
|
29
|
+
import { DataGrid } from "../dataGrid/DataGrid";
|
|
30
|
+
import { namedOperations } from "./BrevoContactsGrid.generated";
|
|
31
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
32
|
+
var brevoContactsFragment = gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n fragment BrevoContactsList on BrevoContact {\n id\n createdAt\n modifiedAt\n email\n emailBlacklisted\n smsBlacklisted\n }\n"])));
|
|
33
|
+
var deleteBrevoContactMutation = gql(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n mutation DeleteBrevoContact($id: Int!, $scope: EmailCampaignContentScopeInput!) {\n deleteBrevoContact(id: $id, scope: $scope)\n }\n"])));
|
|
34
|
+
var updateBrevoContactMutation = gql(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n mutation UpdateBrevoContact($id: Int!, $input: BrevoContactUpdateInput!, $scope: EmailCampaignContentScopeInput!) {\n updateBrevoContact(id: $id, input: $input, scope: $scope) {\n id\n }\n }\n"])));
|
|
35
|
+
function BrevoContactsGridToolbar(_ref) {
|
|
36
|
+
var intl = _ref.intl,
|
|
37
|
+
scope = _ref.scope;
|
|
38
|
+
var _useContactImportFrom = useContactImportFromCsv({
|
|
39
|
+
scope: scope,
|
|
40
|
+
sendDoubleOptIn: true,
|
|
41
|
+
refetchQueries: [namedOperations.Query.BrevoContactsGrid]
|
|
42
|
+
}),
|
|
43
|
+
_useContactImportFrom2 = _slicedToArray(_useContactImportFrom, 2),
|
|
44
|
+
moreActionsMenuItem = _useContactImportFrom2[0],
|
|
45
|
+
contactImportComponent = _useContactImportFrom2[1];
|
|
46
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
47
|
+
children: [/*#__PURE__*/_jsxs(DataGridToolbar, {
|
|
48
|
+
children: [/*#__PURE__*/_jsx(FormattedMessage, {
|
|
49
|
+
id: "cometBrevoModule.brevoContact.title",
|
|
50
|
+
defaultMessage: "Contacts"
|
|
51
|
+
}), /*#__PURE__*/_jsx(GridToolbarQuickFilter, {
|
|
52
|
+
placeholder: intl.formatMessage({
|
|
53
|
+
id: "cometBrevoModule.brevoContact.searchEmail",
|
|
54
|
+
defaultMessage: "Search email address"
|
|
55
|
+
})
|
|
56
|
+
}), /*#__PURE__*/_jsx(ToolbarFillSpace, {}), /*#__PURE__*/_jsx(CrudMoreActionsMenu, {
|
|
57
|
+
overallActions: [moreActionsMenuItem]
|
|
58
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
59
|
+
startIcon: /*#__PURE__*/_jsx(Add, {}),
|
|
60
|
+
component: StackLink,
|
|
61
|
+
pageName: "add",
|
|
62
|
+
payload: "add",
|
|
63
|
+
variant: "primary",
|
|
64
|
+
children: /*#__PURE__*/_jsx(FormattedMessage, {
|
|
65
|
+
id: "cometBrevoModule.brevoContact.newContact",
|
|
66
|
+
defaultMessage: "New contact"
|
|
67
|
+
})
|
|
68
|
+
})]
|
|
69
|
+
}), contactImportComponent]
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
export function BrevoContactsGrid(_ref2) {
|
|
73
|
+
var _additionalAttributes, _dataGridProps$filter, _dataGridProps$filter2, _data$brevoContacts$n;
|
|
74
|
+
var scope = _ref2.scope,
|
|
75
|
+
additionalAttributesFragment = _ref2.additionalAttributesFragment,
|
|
76
|
+
_ref2$additionalGridF = _ref2.additionalGridFields,
|
|
77
|
+
additionalGridFields = _ref2$additionalGridF === void 0 ? [] : _ref2$additionalGridF;
|
|
78
|
+
var brevoContactsQuery = gql(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n query BrevoContactsGrid($offset: Int!, $limit: Int!, $email: String, $scope: EmailCampaignContentScopeInput!) {\n brevoContacts(offset: $offset, limit: $limit, email: $email, scope: $scope) {\n nodes {\n ...BrevoContactsList\n ", "\n }\n totalCount\n }\n }\n ", "\n ", "\n "])), additionalAttributesFragment ? "...".concat(additionalAttributesFragment === null || additionalAttributesFragment === void 0 ? void 0 : additionalAttributesFragment.name) : "", brevoContactsFragment, (_additionalAttributes = additionalAttributesFragment === null || additionalAttributesFragment === void 0 ? void 0 : additionalAttributesFragment.fragment) !== null && _additionalAttributes !== void 0 ? _additionalAttributes : "");
|
|
79
|
+
var client = useApolloClient();
|
|
80
|
+
var intl = useIntl();
|
|
81
|
+
var dataGridProps = _objectSpread(_objectSpread({}, useDataGridRemote()), usePersistentColumnState("BrevoContactsGrid"));
|
|
82
|
+
var columns = [{
|
|
83
|
+
field: "createdAt",
|
|
84
|
+
headerName: intl.formatMessage({
|
|
85
|
+
id: "cometBrevoModule.brevoContact.subscribedAt",
|
|
86
|
+
defaultMessage: "Subscribed At"
|
|
87
|
+
}),
|
|
88
|
+
filterable: false,
|
|
89
|
+
sortable: false,
|
|
90
|
+
width: 150,
|
|
91
|
+
renderCell: function renderCell(_ref3) {
|
|
92
|
+
var row = _ref3.row;
|
|
93
|
+
return intl.formatDate(new Date(row.createdAt));
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
field: "modifiedAt",
|
|
97
|
+
headerName: intl.formatMessage({
|
|
98
|
+
id: "cometBrevoModule.brevoContact.modifiedAt",
|
|
99
|
+
defaultMessage: "Modified At"
|
|
100
|
+
}),
|
|
101
|
+
filterable: false,
|
|
102
|
+
sortable: false,
|
|
103
|
+
width: 150,
|
|
104
|
+
renderCell: function renderCell(_ref4) {
|
|
105
|
+
var row = _ref4.row;
|
|
106
|
+
return intl.formatDate(new Date(row.modifiedAt));
|
|
107
|
+
}
|
|
108
|
+
}, {
|
|
109
|
+
field: "email",
|
|
110
|
+
headerName: intl.formatMessage({
|
|
111
|
+
id: "cometBrevoModule.brevoContact.email",
|
|
112
|
+
defaultMessage: "Email"
|
|
113
|
+
}),
|
|
114
|
+
filterable: false,
|
|
115
|
+
sortable: false,
|
|
116
|
+
width: 150,
|
|
117
|
+
flex: 1
|
|
118
|
+
}, {
|
|
119
|
+
field: "emailBlacklisted",
|
|
120
|
+
headerName: intl.formatMessage({
|
|
121
|
+
id: "cometBrevoModule.brevoContact.emailBlocked",
|
|
122
|
+
defaultMessage: "Email blocked"
|
|
123
|
+
}),
|
|
124
|
+
type: "boolean",
|
|
125
|
+
filterable: false,
|
|
126
|
+
sortable: false,
|
|
127
|
+
width: 150
|
|
128
|
+
}].concat(_toConsumableArray(additionalGridFields), [{
|
|
129
|
+
field: "actions",
|
|
130
|
+
headerName: "",
|
|
131
|
+
sortable: false,
|
|
132
|
+
filterable: false,
|
|
133
|
+
type: "actions",
|
|
134
|
+
renderCell: function renderCell(params) {
|
|
135
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
136
|
+
children: [/*#__PURE__*/_jsx(IconButton, {
|
|
137
|
+
component: StackLink,
|
|
138
|
+
pageName: "edit",
|
|
139
|
+
payload: params.row.id.toString(),
|
|
140
|
+
children: /*#__PURE__*/_jsx(Edit, {
|
|
141
|
+
color: "primary"
|
|
142
|
+
})
|
|
143
|
+
}), /*#__PURE__*/_jsx(RowActionsMenu, {
|
|
144
|
+
children: /*#__PURE__*/_jsxs(RowActionsMenu, {
|
|
145
|
+
children: [/*#__PURE__*/_jsx(RowActionsItem, {
|
|
146
|
+
onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
147
|
+
return _regenerator().w(function (_context) {
|
|
148
|
+
while (1) switch (_context.n) {
|
|
149
|
+
case 0:
|
|
150
|
+
_context.n = 1;
|
|
151
|
+
return client.mutate({
|
|
152
|
+
mutation: updateBrevoContactMutation,
|
|
153
|
+
variables: {
|
|
154
|
+
id: params.row.id,
|
|
155
|
+
input: {
|
|
156
|
+
blocked: !params.row.emailBlacklisted
|
|
157
|
+
},
|
|
158
|
+
scope: scope
|
|
159
|
+
},
|
|
160
|
+
refetchQueries: [brevoContactsQuery]
|
|
161
|
+
});
|
|
162
|
+
case 1:
|
|
163
|
+
return _context.a(2);
|
|
164
|
+
}
|
|
165
|
+
}, _callee);
|
|
166
|
+
})),
|
|
167
|
+
icon: params.row.emailBlacklisted ? /*#__PURE__*/_jsx(Check, {}) : /*#__PURE__*/_jsx(Block, {}),
|
|
168
|
+
children: params.row.emailBlacklisted ? /*#__PURE__*/_jsx(FormattedMessage, {
|
|
169
|
+
id: "cometBrevoModule.brevoContact.actions.unblock",
|
|
170
|
+
defaultMessage: "Unblock"
|
|
171
|
+
}) : /*#__PURE__*/_jsx(FormattedMessage, {
|
|
172
|
+
id: "cometBrevoModule.brevoContact.actions.block",
|
|
173
|
+
defaultMessage: "Block"
|
|
174
|
+
})
|
|
175
|
+
}), /*#__PURE__*/_jsx(RowActionsItem, {
|
|
176
|
+
onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
177
|
+
return _regenerator().w(function (_context2) {
|
|
178
|
+
while (1) switch (_context2.n) {
|
|
179
|
+
case 0:
|
|
180
|
+
_context2.n = 1;
|
|
181
|
+
return client.mutate({
|
|
182
|
+
mutation: deleteBrevoContactMutation,
|
|
183
|
+
variables: {
|
|
184
|
+
id: params.row.id,
|
|
185
|
+
scope: scope
|
|
186
|
+
},
|
|
187
|
+
refetchQueries: [brevoContactsQuery]
|
|
188
|
+
});
|
|
189
|
+
case 1:
|
|
190
|
+
return _context2.a(2);
|
|
191
|
+
}
|
|
192
|
+
}, _callee2);
|
|
193
|
+
})),
|
|
194
|
+
icon: /*#__PURE__*/_jsx(Delete, {}),
|
|
195
|
+
children: /*#__PURE__*/_jsx(FormattedMessage, _objectSpread({}, messages["delete"]))
|
|
196
|
+
})]
|
|
197
|
+
})
|
|
198
|
+
})]
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}]);
|
|
202
|
+
var _useQuery = useQuery(brevoContactsQuery, {
|
|
203
|
+
variables: {
|
|
204
|
+
offset: dataGridProps.paginationModel.page * dataGridProps.paginationModel.pageSize,
|
|
205
|
+
limit: dataGridProps.paginationModel.pageSize,
|
|
206
|
+
email: (_dataGridProps$filter = dataGridProps.filterModel) !== null && _dataGridProps$filter !== void 0 && _dataGridProps$filter.quickFilterValues ? (_dataGridProps$filter2 = dataGridProps.filterModel) === null || _dataGridProps$filter2 === void 0 ? void 0 : _dataGridProps$filter2.quickFilterValues[0] : undefined,
|
|
207
|
+
scope: scope
|
|
208
|
+
}
|
|
209
|
+
}),
|
|
210
|
+
data = _useQuery.data,
|
|
211
|
+
loading = _useQuery.loading,
|
|
212
|
+
error = _useQuery.error;
|
|
213
|
+
var rowCount = useBufferedRowCount(data === null || data === void 0 ? void 0 : data.brevoContacts.totalCount);
|
|
214
|
+
if (error) {
|
|
215
|
+
throw error;
|
|
216
|
+
}
|
|
217
|
+
var rows = (_data$brevoContacts$n = data === null || data === void 0 ? void 0 : data.brevoContacts.nodes) !== null && _data$brevoContacts$n !== void 0 ? _data$brevoContacts$n : [];
|
|
218
|
+
return /*#__PURE__*/_jsx(MainContent, {
|
|
219
|
+
fullHeight: true,
|
|
220
|
+
children: /*#__PURE__*/_jsx(DataGrid, _objectSpread(_objectSpread({}, dataGridProps), {}, {
|
|
221
|
+
disableRowSelectionOnClick: true,
|
|
222
|
+
rows: rows,
|
|
223
|
+
rowCount: rowCount,
|
|
224
|
+
columns: columns,
|
|
225
|
+
loading: loading,
|
|
226
|
+
slots: {
|
|
227
|
+
toolbar: BrevoContactsGridToolbar
|
|
228
|
+
},
|
|
229
|
+
slotProps: {
|
|
230
|
+
toolbar: {
|
|
231
|
+
intl: intl,
|
|
232
|
+
scope: scope
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
showToolbar: true
|
|
236
|
+
}))
|
|
237
|
+
});
|
|
238
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type GridColDef } from "@dextinity/admin";
|
|
2
|
+
import type { DocumentNode } from "graphql";
|
|
3
|
+
import type { JSX, ReactNode } from "react";
|
|
4
|
+
import { type EditBrevoContactFormValues } from "./form/BrevoContactForm";
|
|
5
|
+
interface CreateContactsPageOptions {
|
|
6
|
+
additionalAttributesFragment?: {
|
|
7
|
+
name: string;
|
|
8
|
+
fragment: DocumentNode;
|
|
9
|
+
};
|
|
10
|
+
additionalGridFields?: GridColDef[];
|
|
11
|
+
additionalFormFields?: ReactNode;
|
|
12
|
+
input2State?: (values?: EditBrevoContactFormValues) => EditBrevoContactFormValues;
|
|
13
|
+
}
|
|
14
|
+
declare function createBrevoContactsPage({ additionalAttributesFragment, additionalFormFields, additionalGridFields, input2State, }: CreateContactsPageOptions): () => JSX.Element;
|
|
15
|
+
export { createBrevoContactsPage };
|
|
16
|
+
//# sourceMappingURL=BrevoContactsPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrevoContactsPage.d.ts","sourceRoot":"","sources":["../../src/brevoContacts/BrevoContactsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAA+C,MAAM,kBAAkB,CAAC;AAEhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAM5C,OAAO,EAAoB,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAE5F,UAAU,yBAAyB;IAC/B,4BAA4B,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IACxE,oBAAoB,CAAC,EAAE,UAAU,EAAE,CAAC;IACpC,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,0BAA0B,KAAK,0BAA0B,CAAC;CACrF;AAED,iBAAS,uBAAuB,CAAC,EAC7B,4BAA4B,EAC5B,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,GACd,EAAE,yBAAyB,SACM,GAAG,CAAC,OAAO,CAyD5C;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Stack, StackPage, StackSwitch, StackToolbar } from "@dextinity/admin";
|
|
2
|
+
import { ContentScopeIndicator, useContentScope } from "@dextinity/cms-admin";
|
|
3
|
+
import { useIntl } from "react-intl";
|
|
4
|
+
import { useBrevoConfig } from "../common/BrevoConfigProvider";
|
|
5
|
+
import { ConfigVerification } from "../configVerification/ConfigVerification";
|
|
6
|
+
import { BrevoContactsGrid } from "./BrevoContactsGrid";
|
|
7
|
+
import { BrevoContactForm } from "./form/BrevoContactForm";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
function createBrevoContactsPage(_ref) {
|
|
10
|
+
var additionalAttributesFragment = _ref.additionalAttributesFragment,
|
|
11
|
+
additionalFormFields = _ref.additionalFormFields,
|
|
12
|
+
additionalGridFields = _ref.additionalGridFields,
|
|
13
|
+
input2State = _ref.input2State;
|
|
14
|
+
function BrevoContactsPage() {
|
|
15
|
+
var intl = useIntl();
|
|
16
|
+
var _useBrevoConfig = useBrevoConfig(),
|
|
17
|
+
scopeParts = _useBrevoConfig.scopeParts;
|
|
18
|
+
var _useContentScope = useContentScope(),
|
|
19
|
+
completeScope = _useContentScope.scope;
|
|
20
|
+
var scope = scopeParts.reduce(function (acc, scopePart) {
|
|
21
|
+
acc[scopePart] = completeScope[scopePart];
|
|
22
|
+
return acc;
|
|
23
|
+
}, {});
|
|
24
|
+
return /*#__PURE__*/_jsx(ConfigVerification, {
|
|
25
|
+
scope: scope,
|
|
26
|
+
children: /*#__PURE__*/_jsx(Stack, {
|
|
27
|
+
topLevelTitle: intl.formatMessage({
|
|
28
|
+
id: "cometBrevoModule.brevoContacts.brevoContacts",
|
|
29
|
+
defaultMessage: "Contacts"
|
|
30
|
+
}),
|
|
31
|
+
children: /*#__PURE__*/_jsxs(StackSwitch, {
|
|
32
|
+
children: [/*#__PURE__*/_jsxs(StackPage, {
|
|
33
|
+
name: "grid",
|
|
34
|
+
children: [/*#__PURE__*/_jsx(StackToolbar, {
|
|
35
|
+
scopeIndicator: /*#__PURE__*/_jsx(ContentScopeIndicator, {
|
|
36
|
+
scope: scope
|
|
37
|
+
})
|
|
38
|
+
}), /*#__PURE__*/_jsx(BrevoContactsGrid, {
|
|
39
|
+
scope: scope,
|
|
40
|
+
additionalAttributesFragment: additionalAttributesFragment,
|
|
41
|
+
additionalGridFields: additionalGridFields
|
|
42
|
+
})]
|
|
43
|
+
}), /*#__PURE__*/_jsx(StackPage, {
|
|
44
|
+
name: "edit",
|
|
45
|
+
title: intl.formatMessage({
|
|
46
|
+
id: "cometBrevoModule.brevoContacts.editBrevoContact",
|
|
47
|
+
defaultMessage: "Edit contact"
|
|
48
|
+
}),
|
|
49
|
+
children: function children(selectedId) {
|
|
50
|
+
return /*#__PURE__*/_jsx(BrevoContactForm, {
|
|
51
|
+
additionalFormFields: additionalFormFields,
|
|
52
|
+
additionalAttributesFragment: additionalAttributesFragment,
|
|
53
|
+
input2State: input2State,
|
|
54
|
+
id: Number(selectedId),
|
|
55
|
+
scope: scope
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}), /*#__PURE__*/_jsx(StackPage, {
|
|
59
|
+
name: "add",
|
|
60
|
+
title: intl.formatMessage({
|
|
61
|
+
id: "cometBrevoModule.brevoContacts.addBrevoContact",
|
|
62
|
+
defaultMessage: "Add contact"
|
|
63
|
+
}),
|
|
64
|
+
children: /*#__PURE__*/_jsx(BrevoContactForm, {
|
|
65
|
+
additionalFormFields: additionalFormFields,
|
|
66
|
+
additionalAttributesFragment: additionalAttributesFragment,
|
|
67
|
+
input2State: input2State,
|
|
68
|
+
scope: scope
|
|
69
|
+
})
|
|
70
|
+
})]
|
|
71
|
+
})
|
|
72
|
+
})
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return BrevoContactsPage;
|
|
76
|
+
}
|
|
77
|
+
export { createBrevoContactsPage };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type DocumentNode } from "@apollo/client";
|
|
2
|
+
import { type ContentScope } from "@dextinity/cms-admin";
|
|
3
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
4
|
+
export type EditBrevoContactFormValues = {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
};
|
|
7
|
+
interface FormProps {
|
|
8
|
+
id?: number;
|
|
9
|
+
scope: ContentScope;
|
|
10
|
+
additionalFormFields?: ReactNode;
|
|
11
|
+
additionalAttributesFragment?: {
|
|
12
|
+
name: string;
|
|
13
|
+
fragment: DocumentNode;
|
|
14
|
+
};
|
|
15
|
+
input2State?: (values?: EditBrevoContactFormValues) => EditBrevoContactFormValues;
|
|
16
|
+
}
|
|
17
|
+
export declare function BrevoContactForm({ id, scope, input2State, additionalFormFields, additionalAttributesFragment }: FormProps): ReactElement;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=BrevoContactForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrevoContactForm.d.ts","sourceRoot":"","sources":["../../../src/brevoContacts/form/BrevoContactForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAkC,MAAM,gBAAgB,CAAC;AAqBnF,OAAO,EAAE,KAAK,YAAY,EAAsE,MAAM,sBAAsB,CAAC;AAI7H,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAqBnE,MAAM,MAAM,0BAA0B,GAAG;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAC;AAQF,UAAU,SAAS;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,YAAY,CAAC;IACpB,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,4BAA4B,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IACxE,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,0BAA0B,KAAK,0BAA0B,CAAC;CACrF;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,EAAE,SAAS,GAAG,YAAY,CAyNxI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrevoContactForm.generated.d.ts","sourceRoot":"","sources":["../../../src/brevoContacts/form/BrevoContactForm.generated.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;CAI3B,CAAA;AACD,MAAM,MAAM,2BAA2B,GAAG;IAAE,UAAU,CAAC,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type DocumentNode } from "@apollo/client";
|
|
2
|
+
export declare const brevoContactFormQuery: (brevoContactFormFragment: DocumentNode) => DocumentNode;
|
|
3
|
+
export declare const brevoContactFormCheckForChangesQuery: DocumentNode;
|
|
4
|
+
export declare const createBrevoContactMutation: DocumentNode;
|
|
5
|
+
export declare const updateBrevoContactMutation: (brevoContactFormFragment: DocumentNode) => DocumentNode;
|
|
6
|
+
//# sourceMappingURL=BrevoContactForm.gql.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrevoContactForm.gql.d.ts","sourceRoot":"","sources":["../../../src/brevoContacts/form/BrevoContactForm.gql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,qBAAqB,GAAI,0BAA0B,YAAY,iBAS3E,CAAC;AAEF,eAAO,MAAM,oCAAoC,cAMhD,CAAC;AAEF,eAAO,MAAM,0BAA0B,cAItC,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,0BAA0B,YAAY,iBAShF,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as Types from '../../graphql.generated';
|
|
2
|
+
export declare const namedOperations: {
|
|
3
|
+
Query: {
|
|
4
|
+
BrevoContactForm: string;
|
|
5
|
+
BrevoContactFormCheckForChanges: string;
|
|
6
|
+
};
|
|
7
|
+
Mutation: {
|
|
8
|
+
CreateBrevoContact: string;
|
|
9
|
+
UpdateBrevoContact: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type GQLBrevoContactFormQueryVariables = Types.Exact<{
|
|
13
|
+
id: Types.Scalars['Int']['input'];
|
|
14
|
+
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
15
|
+
}>;
|
|
16
|
+
export type GQLBrevoContactFormQuery = {
|
|
17
|
+
__typename?: 'Query';
|
|
18
|
+
brevoContact: {
|
|
19
|
+
__typename?: 'BrevoContact';
|
|
20
|
+
id: number;
|
|
21
|
+
modifiedAt: string;
|
|
22
|
+
email: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type GQLBrevoContactFormCheckForChangesQueryVariables = Types.Exact<{
|
|
26
|
+
id: Types.Scalars['Int']['input'];
|
|
27
|
+
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
28
|
+
}>;
|
|
29
|
+
export type GQLBrevoContactFormCheckForChangesQuery = {
|
|
30
|
+
__typename?: 'Query';
|
|
31
|
+
brevoContact: {
|
|
32
|
+
__typename?: 'BrevoContact';
|
|
33
|
+
modifiedAt: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export type GQLCreateBrevoContactMutationVariables = Types.Exact<{
|
|
37
|
+
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
38
|
+
input: Types.GQLBrevoContactInput;
|
|
39
|
+
}>;
|
|
40
|
+
export type GQLCreateBrevoContactMutation = {
|
|
41
|
+
__typename?: 'Mutation';
|
|
42
|
+
createBrevoContact: Types.GQLSubscribeResponse;
|
|
43
|
+
};
|
|
44
|
+
export type GQLUpdateBrevoContactMutationVariables = Types.Exact<{
|
|
45
|
+
id: Types.Scalars['Int']['input'];
|
|
46
|
+
input: Types.GQLBrevoContactUpdateInput;
|
|
47
|
+
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
48
|
+
}>;
|
|
49
|
+
export type GQLUpdateBrevoContactMutation = {
|
|
50
|
+
__typename?: 'Mutation';
|
|
51
|
+
updateBrevoContact: {
|
|
52
|
+
__typename?: 'BrevoContact';
|
|
53
|
+
id: number;
|
|
54
|
+
modifiedAt: string;
|
|
55
|
+
email: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=BrevoContactForm.gql.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrevoContactForm.gql.generated.d.ts","sourceRoot":"","sources":["../../../src/brevoContacts/form/BrevoContactForm.gql.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,yBAAyB,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;;;;;CAS3B,CAAA;AACD,MAAM,MAAM,iCAAiC,GAAG,KAAK,CAAC,KAAK,CAAC;IAC1D,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC;CAChD,CAAC,CAAC;AAGH,MAAM,MAAM,wBAAwB,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE;QAAE,UAAU,CAAC,EAAE,cAAc,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE9J,MAAM,MAAM,gDAAgD,GAAG,KAAK,CAAC,KAAK,CAAC;IACzE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC;CAChD,CAAC,CAAC;AAGH,MAAM,MAAM,uCAAuC,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,EAAE;QAAE,UAAU,CAAC,EAAE,cAAc,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAElJ,MAAM,MAAM,sCAAsC,GAAG,KAAK,CAAC,KAAK,CAAC;IAC/D,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC;IAC/C,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC;CACnC,CAAC,CAAC;AAGH,MAAM,MAAM,6BAA6B,GAAG;IAAE,UAAU,CAAC,EAAE,UAAU,CAAC;IAAC,kBAAkB,EAAE,KAAK,CAAC,oBAAoB,CAAA;CAAE,CAAC;AAExH,MAAM,MAAM,sCAAsC,GAAG,KAAK,CAAC,KAAK,CAAC;IAC/D,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC,0BAA0B,CAAC;IACxC,KAAK,EAAE,KAAK,CAAC,iCAAiC,CAAC;CAChD,CAAC,CAAC;AAGH,MAAM,MAAM,6BAA6B,GAAG;IAAE,UAAU,CAAC,EAAE,UAAU,CAAC;IAAC,kBAAkB,EAAE;QAAE,UAAU,CAAC,EAAE,cAAc,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export var namedOperations = {
|
|
2
|
+
Query: {
|
|
3
|
+
BrevoContactForm: 'BrevoContactForm',
|
|
4
|
+
BrevoContactFormCheckForChanges: 'BrevoContactFormCheckForChanges'
|
|
5
|
+
},
|
|
6
|
+
Mutation: {
|
|
7
|
+
CreateBrevoContact: 'CreateBrevoContact',
|
|
8
|
+
UpdateBrevoContact: 'UpdateBrevoContact'
|
|
9
|
+
}
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
2
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
3
|
+
import { gql } from "@apollo/client";
|
|
4
|
+
export var brevoContactFormQuery = function brevoContactFormQuery(brevoContactFormFragment) {
|
|
5
|
+
return gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n query BrevoContactForm($id: Int!, $scope: EmailCampaignContentScopeInput!) {\n brevoContact(id: $id, scope: $scope) {\n id\n modifiedAt\n ...BrevoContactForm\n }\n }\n ", "\n"])), brevoContactFormFragment);
|
|
6
|
+
};
|
|
7
|
+
export var brevoContactFormCheckForChangesQuery = gql(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n query BrevoContactFormCheckForChanges($id: Int!, $scope: EmailCampaignContentScopeInput!) {\n brevoContact(id: $id, scope: $scope) {\n modifiedAt\n }\n }\n"])));
|
|
8
|
+
export var createBrevoContactMutation = gql(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n mutation CreateBrevoContact($scope: EmailCampaignContentScopeInput!, $input: BrevoContactInput!) {\n createBrevoContact(scope: $scope, input: $input)\n }\n"])));
|
|
9
|
+
export var updateBrevoContactMutation = function updateBrevoContactMutation(brevoContactFormFragment) {
|
|
10
|
+
return gql(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n mutation UpdateBrevoContact($id: Int!, $input: BrevoContactUpdateInput!, $scope: EmailCampaignContentScopeInput!) {\n updateBrevoContact(id: $id, input: $input, scope: $scope) {\n id\n modifiedAt\n ...BrevoContactForm\n }\n }\n ", "\n"])), brevoContactFormFragment);
|
|
11
|
+
};
|