@comet/brevo-admin 4.0.0-canary-20250731092722 → 9.0.0-canary-20260121085838
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/lib/blocks/NewsletterImageBlock.d.ts +2 -2
- package/lib/blocks/NewsletterImageBlock.d.ts.map +1 -1
- package/lib/blocks/NewsletterImageBlock.js +2 -5
- package/lib/blocks.generated.d.ts +204 -0
- package/lib/blocks.generated.d.ts.map +1 -0
- package/lib/blocks.generated.js +5 -0
- package/lib/brevoConfiguration/BrevoConfigForm.d.ts +4 -4
- package/lib/brevoConfiguration/BrevoConfigForm.d.ts.map +1 -1
- package/lib/brevoConfiguration/BrevoConfigForm.gql.generated.d.ts +2 -2
- package/lib/brevoConfiguration/BrevoConfigForm.gql.generated.d.ts.map +1 -1
- package/lib/brevoConfiguration/BrevoConfigForm.js +48 -54
- package/lib/brevoConfiguration/BrevoConfigPage.d.ts +0 -1
- package/lib/brevoConfiguration/BrevoConfigPage.d.ts.map +1 -1
- package/lib/brevoConfiguration/BrevoConfigPage.js +0 -4
- package/lib/brevoContacts/BrevoContactsGrid.d.ts +6 -6
- package/lib/brevoContacts/BrevoContactsGrid.d.ts.map +1 -1
- package/lib/brevoContacts/BrevoContactsGrid.generated.d.ts +5 -5
- package/lib/brevoContacts/BrevoContactsGrid.generated.d.ts.map +1 -1
- package/lib/brevoContacts/BrevoContactsGrid.js +39 -51
- package/lib/brevoContacts/BrevoContactsPage.d.ts +5 -5
- package/lib/brevoContacts/BrevoContactsPage.d.ts.map +1 -1
- package/lib/brevoContacts/BrevoContactsPage.js +0 -4
- package/lib/brevoContacts/form/BrevoContactForm.d.ts +6 -6
- package/lib/brevoContacts/form/BrevoContactForm.d.ts.map +1 -1
- package/lib/brevoContacts/form/BrevoContactForm.gql.d.ts +1 -1
- package/lib/brevoContacts/form/BrevoContactForm.gql.d.ts.map +1 -1
- package/lib/brevoContacts/form/BrevoContactForm.gql.generated.d.ts +3 -3
- package/lib/brevoContacts/form/BrevoContactForm.gql.generated.d.ts.map +1 -1
- package/lib/brevoContacts/form/BrevoContactForm.js +62 -67
- package/lib/brevoTestContacts/BrevoTestContactsGrid.d.ts +6 -6
- package/lib/brevoTestContacts/BrevoTestContactsGrid.d.ts.map +1 -1
- package/lib/brevoTestContacts/BrevoTestContactsGrid.generated.d.ts +4 -4
- package/lib/brevoTestContacts/BrevoTestContactsGrid.generated.d.ts.map +1 -1
- package/lib/brevoTestContacts/BrevoTestContactsGrid.js +31 -40
- package/lib/brevoTestContacts/BrevoTestContactsPage.d.ts +5 -5
- package/lib/brevoTestContacts/BrevoTestContactsPage.d.ts.map +1 -1
- package/lib/brevoTestContacts/BrevoTestContactsPage.js +0 -4
- package/lib/brevoTestContacts/form/BrevoTestContactForm.d.ts +6 -6
- package/lib/brevoTestContacts/form/BrevoTestContactForm.d.ts.map +1 -1
- package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.d.ts +1 -1
- package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.d.ts.map +1 -1
- package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.generated.d.ts +3 -3
- package/lib/brevoTestContacts/form/BrevoTestContactForm.gql.generated.d.ts.map +1 -1
- package/lib/brevoTestContacts/form/BrevoTestContactForm.js +50 -55
- package/lib/common/BrevoConfigProvider.d.ts +4 -4
- package/lib/common/BrevoConfigProvider.d.ts.map +1 -1
- package/lib/common/BrevoConfigProvider.js +3 -4
- package/lib/common/contactImport/useContactImportFromCsv.d.ts +10 -5
- package/lib/common/contactImport/useContactImportFromCsv.d.ts.map +1 -1
- package/lib/common/contactImport/useContactImportFromCsv.gql.generated.d.ts +3 -3
- package/lib/common/contactImport/useContactImportFromCsv.gql.generated.d.ts.map +1 -1
- package/lib/common/contactImport/useContactImportFromCsv.js +74 -76
- package/lib/configVerification/ConfigVerification.d.ts +4 -4
- package/lib/configVerification/ConfigVerification.d.ts.map +1 -1
- package/lib/configVerification/ConfigVerification.js +0 -4
- package/lib/emailCampaigns/EmailCampaignsGrid.d.ts +4 -5
- package/lib/emailCampaigns/EmailCampaignsGrid.d.ts.map +1 -1
- package/lib/emailCampaigns/EmailCampaignsGrid.generated.d.ts +4 -4
- package/lib/emailCampaigns/EmailCampaignsGrid.generated.d.ts.map +1 -1
- package/lib/emailCampaigns/EmailCampaignsGrid.js +35 -43
- package/lib/emailCampaigns/EmailCampaignsPage.d.ts +1 -2
- package/lib/emailCampaigns/EmailCampaignsPage.d.ts.map +1 -1
- package/lib/emailCampaigns/EmailCampaignsPage.js +0 -4
- package/lib/emailCampaigns/SendingStateColumn.d.ts +2 -3
- package/lib/emailCampaigns/SendingStateColumn.d.ts.map +1 -1
- package/lib/emailCampaigns/SendingStateColumn.js +5 -11
- package/lib/emailCampaigns/form/ConfigFields.d.ts +1 -2
- package/lib/emailCampaigns/form/ConfigFields.d.ts.map +1 -1
- package/lib/emailCampaigns/form/ConfigFields.js +0 -4
- package/lib/emailCampaigns/form/EmailCampaignForm.d.ts +3 -5
- package/lib/emailCampaigns/form/EmailCampaignForm.d.ts.map +1 -1
- package/lib/emailCampaigns/form/EmailCampaignForm.gql.generated.d.ts +4 -4
- package/lib/emailCampaigns/form/EmailCampaignForm.gql.generated.d.ts.map +1 -1
- package/lib/emailCampaigns/form/EmailCampaignForm.js +72 -86
- package/lib/emailCampaigns/form/SendEmailCampaignNowDialog.d.ts +1 -2
- package/lib/emailCampaigns/form/SendEmailCampaignNowDialog.d.ts.map +1 -1
- package/lib/emailCampaigns/form/SendEmailCampaignNowDialog.js +1 -3
- package/lib/emailCampaigns/form/SendManagerFields.d.ts +3 -4
- package/lib/emailCampaigns/form/SendManagerFields.d.ts.map +1 -1
- package/lib/emailCampaigns/form/SendManagerFields.gql.generated.d.ts +1 -1
- package/lib/emailCampaigns/form/SendManagerFields.gql.generated.d.ts.map +1 -1
- package/lib/emailCampaigns/form/SendManagerFields.js +27 -40
- package/lib/emailCampaigns/form/SendManagerWrapper.d.ts +4 -4
- package/lib/emailCampaigns/form/SendManagerWrapper.d.ts.map +1 -1
- package/lib/emailCampaigns/form/SendManagerWrapper.js +0 -4
- package/lib/emailCampaigns/form/TestEmailCampaignForm.d.ts +2 -3
- package/lib/emailCampaigns/form/TestEmailCampaignForm.d.ts.map +1 -1
- package/lib/emailCampaigns/form/TestEmailCampaignForm.generated.d.ts +3 -3
- package/lib/emailCampaigns/form/TestEmailCampaignForm.generated.d.ts.map +1 -1
- package/lib/emailCampaigns/form/TestEmailCampaignForm.gql.generated.d.ts +1 -1
- package/lib/emailCampaigns/form/TestEmailCampaignForm.gql.generated.d.ts.map +1 -1
- package/lib/emailCampaigns/form/TestEmailCampaignForm.js +19 -33
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.d.ts +2 -2
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.d.ts.map +1 -1
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.gql.generated.d.ts +1 -1
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.gql.generated.d.ts.map +1 -1
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.js +34 -31
- package/lib/emailCampaigns/statistics/PercentageCard.d.ts +3 -3
- package/lib/emailCampaigns/statistics/PercentageCard.d.ts.map +1 -1
- package/lib/emailCampaigns/statistics/PercentageCard.js +6 -15
- package/lib/emailCampaigns/view/EmailCampaignView.d.ts +2 -3
- package/lib/emailCampaigns/view/EmailCampaignView.d.ts.map +1 -1
- package/lib/emailCampaigns/view/EmailCampaignView.gql.generated.d.ts +1 -1
- package/lib/emailCampaigns/view/EmailCampaignView.gql.generated.d.ts.map +1 -1
- package/lib/emailCampaigns/view/EmailCampaignView.js +2 -5
- package/lib/graphql.generated.d.ts +280 -211
- package/lib/graphql.generated.d.ts.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -20
- package/lib/targetGroups/TargetGroupDialog.d.ts +4 -4
- package/lib/targetGroups/TargetGroupDialog.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupDialog.js +10 -12
- package/lib/targetGroups/TargetGroupForm.d.ts +6 -6
- package/lib/targetGroups/TargetGroupForm.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupForm.gql.d.ts +1 -1
- package/lib/targetGroups/TargetGroupForm.gql.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupForm.gql.generated.d.ts +4 -4
- package/lib/targetGroups/TargetGroupForm.gql.generated.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupForm.js +28 -33
- package/lib/targetGroups/TargetGroupsGrid.d.ts +5 -5
- package/lib/targetGroups/TargetGroupsGrid.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupsGrid.generated.d.ts +7 -7
- package/lib/targetGroups/TargetGroupsGrid.generated.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupsGrid.js +45 -55
- package/lib/targetGroups/TargetGroupsPage.d.ts +5 -5
- package/lib/targetGroups/TargetGroupsPage.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupsPage.js +0 -4
- package/lib/targetGroups/addContacts/AddContactsGridSelect.d.ts +4 -4
- package/lib/targetGroups/addContacts/AddContactsGridSelect.d.ts.map +1 -1
- package/lib/targetGroups/addContacts/AddContactsGridSelect.gql.generated.d.ts +9 -9
- package/lib/targetGroups/addContacts/AddContactsGridSelect.gql.generated.d.ts.map +1 -1
- package/lib/targetGroups/addContacts/AddContactsGridSelect.js +43 -52
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.d.ts +4 -4
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.d.ts.map +1 -1
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.gql.generated.d.ts +4 -4
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.gql.generated.d.ts.map +1 -1
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.js +9 -14
- package/package.json +71 -72
- package/lib/temp/CrudMoreActionsMenu.d.ts +0 -23
- package/lib/temp/CrudMoreActionsMenu.d.ts.map +0 -1
- package/lib/temp/CrudMoreActionsMenu.js +0 -208
|
@@ -21,7 +21,7 @@ export type GQLBrevoContactsListFragment = {
|
|
|
21
21
|
smsBlacklisted: boolean;
|
|
22
22
|
};
|
|
23
23
|
export type GQLDeleteBrevoContactMutationVariables = Types.Exact<{
|
|
24
|
-
id: Types.Scalars['Int'];
|
|
24
|
+
id: Types.Scalars['Int']['input'];
|
|
25
25
|
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
26
26
|
}>;
|
|
27
27
|
export type GQLDeleteBrevoContactMutation = {
|
|
@@ -29,7 +29,7 @@ export type GQLDeleteBrevoContactMutation = {
|
|
|
29
29
|
deleteBrevoContact: boolean;
|
|
30
30
|
};
|
|
31
31
|
export type GQLUpdateBrevoContactMutationVariables = Types.Exact<{
|
|
32
|
-
id: Types.Scalars['Int'];
|
|
32
|
+
id: Types.Scalars['Int']['input'];
|
|
33
33
|
input: Types.GQLBrevoContactUpdateInput;
|
|
34
34
|
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
35
35
|
}>;
|
|
@@ -41,9 +41,9 @@ export type GQLUpdateBrevoContactMutation = {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export type GQLBrevoContactsGridQueryVariables = Types.Exact<{
|
|
44
|
-
offset
|
|
45
|
-
limit
|
|
46
|
-
email?: Types.InputMaybe<Types.Scalars['String']>;
|
|
44
|
+
offset: Types.Scalars['Int']['input'];
|
|
45
|
+
limit: Types.Scalars['Int']['input'];
|
|
46
|
+
email?: Types.InputMaybe<Types.Scalars['String']['input']>;
|
|
47
47
|
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
48
48
|
}>;
|
|
49
49
|
export type GQLBrevoContactsGridQuery = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrevoContactsGrid.generated.d.ts","sourceRoot":"","sources":["../../src/brevoContacts/BrevoContactsGrid.generated.ts"],"names":[],"mappings":"AAAA,OAAO,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AA;SAAE,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
|
|
@@ -10,16 +10,13 @@ var _admin = require("@comet/admin");
|
|
|
10
10
|
var _adminIcons = require("@comet/admin-icons");
|
|
11
11
|
var _material = require("@mui/material");
|
|
12
12
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
13
|
-
var React = _interopRequireWildcard(require("react"));
|
|
14
13
|
var _reactIntl = require("react-intl");
|
|
15
14
|
var _useContactImportFromCsv = require("../common/contactImport/useContactImportFromCsv");
|
|
16
|
-
var _CrudMoreActionsMenu = require("../temp/CrudMoreActionsMenu");
|
|
17
15
|
var _BrevoContactsGrid = require("./BrevoContactsGrid.generated");
|
|
18
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
17
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
20
|
-
function
|
|
21
|
-
function
|
|
22
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
18
|
+
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 }; })(); }
|
|
19
|
+
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); }
|
|
23
20
|
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); }
|
|
24
21
|
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); }); }; }
|
|
25
22
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
@@ -54,33 +51,26 @@ function BrevoContactsGridToolbar(_ref) {
|
|
|
54
51
|
contactImportComponent = _useContactImportFrom2[1];
|
|
55
52
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
56
53
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.DataGridToolbar, {
|
|
57
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
55
|
+
id: "cometBrevoModule.brevoContact.title",
|
|
56
|
+
defaultMessage: "Contacts"
|
|
57
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGrid.GridToolbarQuickFilter, {
|
|
58
|
+
placeholder: intl.formatMessage({
|
|
59
|
+
id: "cometBrevoModule.brevoContact.searchEmail",
|
|
60
|
+
defaultMessage: "Search email address"
|
|
61
61
|
})
|
|
62
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.ToolbarFillSpace, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.CrudMoreActionsMenu, {
|
|
63
|
+
overallActions: [moreActionsMenuItem]
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.Button, {
|
|
65
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_adminIcons.Add, {}),
|
|
66
|
+
component: _admin.StackLink,
|
|
67
|
+
pageName: "add",
|
|
68
|
+
payload: "add",
|
|
69
|
+
variant: "primary",
|
|
70
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
71
|
+
id: "cometBrevoModule.brevoContact.newContact",
|
|
72
|
+
defaultMessage: "New contact"
|
|
68
73
|
})
|
|
69
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.ToolbarFillSpace, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.ToolbarActions, {
|
|
70
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CrudMoreActionsMenu.CrudMoreActionsMenu, {
|
|
71
|
-
overallItems: [moreActionsMenuItem]
|
|
72
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
|
|
73
|
-
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_adminIcons.Add, {}),
|
|
74
|
-
component: _admin.StackLink,
|
|
75
|
-
pageName: "add",
|
|
76
|
-
payload: "add",
|
|
77
|
-
variant: "contained",
|
|
78
|
-
color: "primary",
|
|
79
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
80
|
-
id: "cometBrevoModule.brevoContact.newContact",
|
|
81
|
-
defaultMessage: "New contact"
|
|
82
|
-
})
|
|
83
|
-
})]
|
|
84
74
|
})]
|
|
85
75
|
}), contactImportComponent]
|
|
86
76
|
});
|
|
@@ -91,7 +81,7 @@ function BrevoContactsGrid(_ref2) {
|
|
|
91
81
|
additionalAttributesFragment = _ref2.additionalAttributesFragment,
|
|
92
82
|
_ref2$additionalGridF = _ref2.additionalGridFields,
|
|
93
83
|
additionalGridFields = _ref2$additionalGridF === void 0 ? [] : _ref2$additionalGridF;
|
|
94
|
-
var brevoContactsQuery = (0, _client.gql)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n query BrevoContactsGrid($offset: Int
|
|
84
|
+
var brevoContactsQuery = (0, _client.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 : "");
|
|
95
85
|
var client = (0, _client.useApolloClient)();
|
|
96
86
|
var intl = (0, _reactIntl.useIntl)();
|
|
97
87
|
var dataGridProps = _objectSpread(_objectSpread({}, (0, _admin.useDataGridRemote)()), (0, _admin.usePersistentColumnState)("BrevoContactsGrid"));
|
|
@@ -159,11 +149,11 @@ function BrevoContactsGrid(_ref2) {
|
|
|
159
149
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.RowActionsMenu, {
|
|
160
150
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_admin.RowActionsMenu, {
|
|
161
151
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.RowActionsItem, {
|
|
162
|
-
onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
163
|
-
return
|
|
164
|
-
while (1) switch (_context.
|
|
152
|
+
onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
153
|
+
return _regenerator().w(function (_context) {
|
|
154
|
+
while (1) switch (_context.n) {
|
|
165
155
|
case 0:
|
|
166
|
-
_context.
|
|
156
|
+
_context.n = 1;
|
|
167
157
|
return client.mutate({
|
|
168
158
|
mutation: updateBrevoContactMutation,
|
|
169
159
|
variables: {
|
|
@@ -175,9 +165,8 @@ function BrevoContactsGrid(_ref2) {
|
|
|
175
165
|
},
|
|
176
166
|
refetchQueries: [brevoContactsQuery]
|
|
177
167
|
});
|
|
178
|
-
case
|
|
179
|
-
|
|
180
|
-
return _context.stop();
|
|
168
|
+
case 1:
|
|
169
|
+
return _context.a(2);
|
|
181
170
|
}
|
|
182
171
|
}, _callee);
|
|
183
172
|
})),
|
|
@@ -190,11 +179,11 @@ function BrevoContactsGrid(_ref2) {
|
|
|
190
179
|
defaultMessage: "Block"
|
|
191
180
|
})
|
|
192
181
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.RowActionsItem, {
|
|
193
|
-
onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
194
|
-
return
|
|
195
|
-
while (1) switch (_context2.
|
|
182
|
+
onClick: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
183
|
+
return _regenerator().w(function (_context2) {
|
|
184
|
+
while (1) switch (_context2.n) {
|
|
196
185
|
case 0:
|
|
197
|
-
_context2.
|
|
186
|
+
_context2.n = 1;
|
|
198
187
|
return client.mutate({
|
|
199
188
|
mutation: deleteBrevoContactMutation,
|
|
200
189
|
variables: {
|
|
@@ -203,9 +192,8 @@ function BrevoContactsGrid(_ref2) {
|
|
|
203
192
|
},
|
|
204
193
|
refetchQueries: [brevoContactsQuery]
|
|
205
194
|
});
|
|
206
|
-
case
|
|
207
|
-
|
|
208
|
-
return _context2.stop();
|
|
195
|
+
case 1:
|
|
196
|
+
return _context2.a(2);
|
|
209
197
|
}
|
|
210
198
|
}, _callee2);
|
|
211
199
|
})),
|
|
@@ -219,8 +207,8 @@ function BrevoContactsGrid(_ref2) {
|
|
|
219
207
|
}]);
|
|
220
208
|
var _useQuery = (0, _client.useQuery)(brevoContactsQuery, {
|
|
221
209
|
variables: {
|
|
222
|
-
offset: dataGridProps.page * dataGridProps.pageSize,
|
|
223
|
-
limit: dataGridProps.pageSize,
|
|
210
|
+
offset: dataGridProps.paginationModel.page * dataGridProps.paginationModel.pageSize,
|
|
211
|
+
limit: dataGridProps.paginationModel.pageSize,
|
|
224
212
|
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,
|
|
225
213
|
scope: scope
|
|
226
214
|
}
|
|
@@ -234,15 +222,15 @@ function BrevoContactsGrid(_ref2) {
|
|
|
234
222
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_admin.MainContent, {
|
|
235
223
|
fullHeight: true,
|
|
236
224
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGrid.DataGrid, _objectSpread(_objectSpread({}, dataGridProps), {}, {
|
|
237
|
-
|
|
225
|
+
disableRowSelectionOnClick: true,
|
|
238
226
|
rows: rows,
|
|
239
227
|
rowCount: rowCount,
|
|
240
228
|
columns: columns,
|
|
241
229
|
loading: loading,
|
|
242
|
-
|
|
243
|
-
|
|
230
|
+
slots: {
|
|
231
|
+
toolbar: BrevoContactsGridToolbar
|
|
244
232
|
},
|
|
245
|
-
|
|
233
|
+
slotProps: {
|
|
246
234
|
toolbar: {
|
|
247
235
|
intl: intl,
|
|
248
236
|
scope: scope
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { GridColDef } from "@comet/admin";
|
|
2
|
-
import { DocumentNode } from "graphql";
|
|
3
|
-
import
|
|
4
|
-
import { EditBrevoContactFormValues } from "./form/BrevoContactForm";
|
|
1
|
+
import { type GridColDef } from "@comet/admin";
|
|
2
|
+
import { type DocumentNode } from "graphql";
|
|
3
|
+
import { type ReactNode } from "react";
|
|
4
|
+
import { type EditBrevoContactFormValues } from "./form/BrevoContactForm";
|
|
5
5
|
interface CreateContactsPageOptions {
|
|
6
6
|
additionalAttributesFragment?: {
|
|
7
7
|
name: string;
|
|
8
8
|
fragment: DocumentNode;
|
|
9
9
|
};
|
|
10
10
|
additionalGridFields?: GridColDef[];
|
|
11
|
-
additionalFormFields?:
|
|
11
|
+
additionalFormFields?: ReactNode;
|
|
12
12
|
input2State?: (values?: EditBrevoContactFormValues) => EditBrevoContactFormValues;
|
|
13
13
|
}
|
|
14
14
|
declare function createBrevoContactsPage({ additionalAttributesFragment, additionalFormFields, additionalGridFields, input2State, }: CreateContactsPageOptions): () => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrevoContactsPage.d.ts","sourceRoot":"","sources":["../../src/brevoContacts/BrevoContactsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA+C,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"BrevoContactsPage.d.ts","sourceRoot":"","sources":["../../src/brevoContacts/BrevoContactsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAA+C,MAAM,cAAc,CAAC;AAE5F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,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"}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.createBrevoContactsPage = createBrevoContactsPage;
|
|
8
7
|
var _admin = require("@comet/admin");
|
|
9
8
|
var _cmsAdmin = require("@comet/cms-admin");
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
9
|
var _reactIntl = require("react-intl");
|
|
12
10
|
var _BrevoConfigProvider = require("../common/BrevoConfigProvider");
|
|
13
11
|
var _ConfigVerification = require("../configVerification/ConfigVerification");
|
|
14
12
|
var _BrevoContactsGrid = require("./BrevoContactsGrid");
|
|
15
13
|
var _BrevoContactForm = require("./form/BrevoContactForm");
|
|
16
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
19
15
|
function createBrevoContactsPage(_ref) {
|
|
20
16
|
var additionalAttributesFragment = _ref.additionalAttributesFragment,
|
|
21
17
|
additionalFormFields = _ref.additionalFormFields,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { DocumentNode } from "@apollo/client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { type DocumentNode } from "@apollo/client";
|
|
2
|
+
import { type ContentScope } from "@comet/cms-admin";
|
|
3
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
4
4
|
export type EditBrevoContactFormValues = {
|
|
5
5
|
[key: string]: unknown;
|
|
6
6
|
};
|
|
7
7
|
interface FormProps {
|
|
8
8
|
id?: number;
|
|
9
|
-
scope:
|
|
10
|
-
additionalFormFields?:
|
|
9
|
+
scope: ContentScope;
|
|
10
|
+
additionalFormFields?: ReactNode;
|
|
11
11
|
additionalAttributesFragment?: {
|
|
12
12
|
name: string;
|
|
13
13
|
fragment: DocumentNode;
|
|
14
14
|
};
|
|
15
15
|
input2State?: (values?: EditBrevoContactFormValues) => EditBrevoContactFormValues;
|
|
16
16
|
}
|
|
17
|
-
export declare function BrevoContactForm({ id, scope, input2State, additionalFormFields, additionalAttributesFragment }: FormProps):
|
|
17
|
+
export declare function BrevoContactForm({ id, scope, input2State, additionalFormFields, additionalAttributesFragment }: FormProps): ReactElement;
|
|
18
18
|
export {};
|
|
19
19
|
//# sourceMappingURL=BrevoContactForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrevoContactForm.d.ts","sourceRoot":"","sources":["../../../src/brevoContacts/form/BrevoContactForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAkC,MAAM,gBAAgB,CAAC;
|
|
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,kBAAkB,CAAC;AAIzH,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;AAOF,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DocumentNode } from "@apollo/client";
|
|
1
|
+
import { type DocumentNode } from "@apollo/client";
|
|
2
2
|
export declare const brevoContactFormQuery: (brevoContactFormFragment: DocumentNode) => DocumentNode;
|
|
3
3
|
export declare const brevoContactFormCheckForChangesQuery: DocumentNode;
|
|
4
4
|
export declare const createBrevoContactMutation: DocumentNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrevoContactForm.gql.d.ts","sourceRoot":"","sources":["../../../src/brevoContacts/form/BrevoContactForm.gql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAO,MAAM,gBAAgB,CAAC;
|
|
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"}
|
|
@@ -10,7 +10,7 @@ export declare const namedOperations: {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
export type GQLBrevoContactFormQueryVariables = Types.Exact<{
|
|
13
|
-
id: Types.Scalars['Int'];
|
|
13
|
+
id: Types.Scalars['Int']['input'];
|
|
14
14
|
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
15
15
|
}>;
|
|
16
16
|
export type GQLBrevoContactFormQuery = {
|
|
@@ -23,7 +23,7 @@ export type GQLBrevoContactFormQuery = {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
export type GQLBrevoContactFormCheckForChangesQueryVariables = Types.Exact<{
|
|
26
|
-
id: Types.Scalars['Int'];
|
|
26
|
+
id: Types.Scalars['Int']['input'];
|
|
27
27
|
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
28
28
|
}>;
|
|
29
29
|
export type GQLBrevoContactFormCheckForChangesQuery = {
|
|
@@ -42,7 +42,7 @@ export type GQLCreateBrevoContactMutation = {
|
|
|
42
42
|
createBrevoContact: Types.GQLSubscribeResponse;
|
|
43
43
|
};
|
|
44
44
|
export type GQLUpdateBrevoContactMutationVariables = Types.Exact<{
|
|
45
|
-
id: Types.Scalars['Int'];
|
|
45
|
+
id: Types.Scalars['Int']['input'];
|
|
46
46
|
input: Types.GQLBrevoContactUpdateInput;
|
|
47
47
|
scope: Types.GQLEmailCampaignContentScopeInput;
|
|
48
48
|
}>;
|
|
@@ -1 +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;
|
|
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,C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