@flowselections/actie-mail-kwekers-erp-mathot 1.0.6 → 1.0.8
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/dist-lib/components/AanbiedingsmailtjePage.d.ts.map +1 -1
- package/dist-lib/components/AanbiedingsmailtjePage.js +99 -21
- package/dist-lib/components/CampagneDetail.d.ts.map +1 -1
- package/dist-lib/components/CampagneDetail.js +10 -1
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +0 -2
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +8307 -1664
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +8307 -1664
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +8307 -1664
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +8533 -1697
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +20 -1
- package/dist-lib/lib/campaigns.functions.d.ts +41788 -8573
- package/dist-lib/lib/campaigns.functions.d.ts.map +1 -1
- package/dist-lib/lib/campaigns.functions.js +27 -26
- package/dist-lib/lib/stats.functions.d.ts +15933 -2647
- package/dist-lib/lib/stats.functions.d.ts.map +1 -1
- package/package.json +29 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AanbiedingsmailtjePage.d.ts","sourceRoot":"","sources":["../../src/components/AanbiedingsmailtjePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AanbiedingsmailtjePage.d.ts","sourceRoot":"","sources":["../../src/components/AanbiedingsmailtjePage.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,sBAAsB,gCA4jBrC"}
|
|
@@ -49,18 +49,98 @@ export function AanbiedingsmailtjePage() {
|
|
|
49
49
|
(async () => {
|
|
50
50
|
setLoading(true);
|
|
51
51
|
const sb = supabase;
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
// 1) Bepaal actieve Floriday-koppeling
|
|
53
|
+
const { data: activeConn } = await sb.rpc("get_active_floriday_connection_public");
|
|
54
|
+
const activeId = Array.isArray(activeConn) && activeConn.length > 0
|
|
55
|
+
? (activeConn[0]?.id ?? activeConn[0]?.connection_id ?? null)
|
|
56
|
+
: (activeConn?.id ?? activeConn?.connection_id ?? null);
|
|
57
|
+
// 2) Producten uit Floriday (gepubliceerd + concepten), klanten + instellingen
|
|
58
|
+
const cachePromise = activeId
|
|
59
|
+
? sb.from("floriday_trade_items_cache")
|
|
60
|
+
.select("floriday_id, data")
|
|
61
|
+
.eq("connection_id", activeId)
|
|
62
|
+
.eq("is_deleted", false)
|
|
63
|
+
.limit(1000)
|
|
64
|
+
: Promise.resolve({ data: [] });
|
|
65
|
+
const draftPromise = activeId
|
|
66
|
+
? sb.from("trade_item_drafts")
|
|
67
|
+
.select("id, data, updated_at")
|
|
68
|
+
.eq("connection_id", activeId)
|
|
69
|
+
.order("updated_at", { ascending: false })
|
|
70
|
+
.limit(1000)
|
|
71
|
+
: Promise.resolve({ data: [] });
|
|
72
|
+
const [{ data: cacheRows }, { data: draftRows }, { data: cs }, { data: extCs }, { data: settings }] = await Promise.all([
|
|
73
|
+
cachePromise,
|
|
74
|
+
draftPromise,
|
|
54
75
|
sb.from("customers").select("id, company_name, email, customer_class, country").not("email", "is", null).order("company_name").limit(1000),
|
|
55
|
-
sb.from("
|
|
76
|
+
sb.from("external_customers_grouped").select("group_key, display_name, email, country, is_active").not("email", "is", null).eq("is_active", true).limit(2000),
|
|
77
|
+
sb.from("offer_settings").select("default_subject, default_intro, default_sticker_cost, show_customer_classes").maybeSingle(),
|
|
56
78
|
]);
|
|
57
|
-
|
|
58
|
-
|
|
79
|
+
const pickName = (n) => {
|
|
80
|
+
if (!n)
|
|
81
|
+
return "";
|
|
82
|
+
if (typeof n === "string")
|
|
83
|
+
return n;
|
|
84
|
+
return n.nl || n.en || n.de || Object.values(n)[0] || "";
|
|
85
|
+
};
|
|
86
|
+
const pickImage = (d) => {
|
|
87
|
+
const photos = Array.isArray(d?.photos) ? d.photos : [];
|
|
88
|
+
const primary = photos.find((p) => p?.primary || p?.isPrimary) ?? photos[0];
|
|
89
|
+
if (primary?.url)
|
|
90
|
+
return primary.url;
|
|
91
|
+
if (Array.isArray(d?.images) && d.images[0])
|
|
92
|
+
return d.images[0].url ?? d.images[0].previewUrl ?? null;
|
|
93
|
+
if (Array.isArray(d?.imageUrls) && d.imageUrls[0])
|
|
94
|
+
return d.imageUrls[0];
|
|
95
|
+
return null;
|
|
96
|
+
};
|
|
97
|
+
const published = (cacheRows ?? []).map((r) => {
|
|
98
|
+
const d = r.data ?? {};
|
|
99
|
+
return {
|
|
100
|
+
id: r.floriday_id,
|
|
101
|
+
product: pickName(d.tradeItemName) || pickName(d.name) || pickName(d.vbnName) || (d.botanicalNames?.[0] ?? "(naamloos)"),
|
|
102
|
+
sale_price: null,
|
|
103
|
+
quantity: Number(d.physicalStock ?? d.stock?.physical ?? 0),
|
|
104
|
+
image_url: pickImage(d),
|
|
105
|
+
barcode: d.supplierArticleCode ?? d.articleCode ?? d.gtin ?? d.articleGtin ?? d.tradeItemReference ?? "",
|
|
106
|
+
is_draft: false,
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
const drafts = (draftRows ?? []).map((r) => {
|
|
110
|
+
const d = r.data ?? {};
|
|
111
|
+
const firstImage = Array.isArray(d.images) && d.images[0] ? d.images[0] : null;
|
|
112
|
+
return {
|
|
113
|
+
id: `local:${r.id}`,
|
|
114
|
+
product: d.name || d.vbnName || "(naamloos)",
|
|
115
|
+
sale_price: null,
|
|
116
|
+
quantity: 0,
|
|
117
|
+
image_url: firstImage?.url ?? firstImage?.previewUrl ?? null,
|
|
118
|
+
barcode: d.articleCode ?? d.gtin ?? "",
|
|
119
|
+
is_draft: true,
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
const merged = [
|
|
123
|
+
...drafts,
|
|
124
|
+
...published.sort((a, b) => a.product.localeCompare(b.product)),
|
|
125
|
+
];
|
|
126
|
+
setProducts(merged);
|
|
127
|
+
const localList = (cs ?? []).map((c) => ({
|
|
128
|
+
id: c.id, company_name: c.company_name, email: c.email, customer_class: c.customer_class, country: c.country, source: "local",
|
|
129
|
+
}));
|
|
130
|
+
const seenEmails = new Set(localList.map((c) => (c.email ?? "").toLowerCase()).filter(Boolean));
|
|
131
|
+
const extList = (extCs ?? [])
|
|
132
|
+
.filter((r) => r.email && !seenEmails.has(String(r.email).toLowerCase()))
|
|
133
|
+
.map((r) => ({
|
|
134
|
+
id: `ext:${r.group_key}`,
|
|
135
|
+
company_name: r.display_name ?? "(naamloos)",
|
|
136
|
+
email: r.email,
|
|
137
|
+
customer_class: null,
|
|
138
|
+
country: r.country ?? null,
|
|
139
|
+
source: "ext",
|
|
140
|
+
}));
|
|
141
|
+
const mergedCustomers = [...localList, ...extList].sort((a, b) => (a.company_name ?? "").localeCompare(b.company_name ?? ""));
|
|
142
|
+
setCustomers(mergedCustomers);
|
|
59
143
|
if (settings) {
|
|
60
|
-
if (settings.from_name)
|
|
61
|
-
setFromName(settings.from_name);
|
|
62
|
-
if (settings.from_email)
|
|
63
|
-
setFromEmail(settings.from_email);
|
|
64
144
|
if (settings.default_subject)
|
|
65
145
|
setSubject(settings.default_subject);
|
|
66
146
|
if (settings.default_intro)
|
|
@@ -71,20 +151,22 @@ export function AanbiedingsmailtjePage() {
|
|
|
71
151
|
if (typeof settings.show_customer_classes === "boolean")
|
|
72
152
|
setShowCustomerClasses(settings.show_customer_classes);
|
|
73
153
|
}
|
|
154
|
+
if (!activeId) {
|
|
155
|
+
toast.error("Geen actieve Floriday-koppeling — stel deze in via de Voorraad Module");
|
|
156
|
+
}
|
|
74
157
|
setLoading(false);
|
|
75
158
|
})();
|
|
76
159
|
}, []);
|
|
77
160
|
const addProduct = (p) => {
|
|
78
161
|
if (selProducts.find((sp) => sp.product_id === p.id))
|
|
79
162
|
return;
|
|
80
|
-
const price = Number(p.sale_price ?? 0);
|
|
81
163
|
setSelProducts((prev) => [...prev, {
|
|
82
164
|
product_id: p.id,
|
|
83
165
|
product_name: p.product,
|
|
84
166
|
description: "",
|
|
85
167
|
image_url: p.image_url,
|
|
86
|
-
normal_price:
|
|
87
|
-
discount_price:
|
|
168
|
+
normal_price: 0,
|
|
169
|
+
discount_price: 0,
|
|
88
170
|
available_stock: p.quantity ?? 0,
|
|
89
171
|
plants_per_crate: 10,
|
|
90
172
|
belading: "",
|
|
@@ -92,7 +174,7 @@ export function AanbiedingsmailtjePage() {
|
|
|
92
174
|
crate_price: 0,
|
|
93
175
|
sticker_cost: null,
|
|
94
176
|
sticker_available: true,
|
|
95
|
-
tiers: [{ min_crates: 1, price_per_crate:
|
|
177
|
+
tiers: [{ min_crates: 1, price_per_crate: 0 }],
|
|
96
178
|
}]);
|
|
97
179
|
setProductSearch("");
|
|
98
180
|
};
|
|
@@ -162,16 +244,12 @@ export function AanbiedingsmailtjePage() {
|
|
|
162
244
|
toast.error("Selecteer minimaal één klant");
|
|
163
245
|
return;
|
|
164
246
|
}
|
|
165
|
-
if (!fromEmail) {
|
|
166
|
-
toast.error("Vul een afzender e-mailadres in");
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
247
|
setBusy(true);
|
|
170
248
|
try {
|
|
171
249
|
const recipients = customers
|
|
172
250
|
.filter((c) => selCustomers.has(c.id) && c.email)
|
|
173
251
|
.map((c) => ({
|
|
174
|
-
customer_id: c.id,
|
|
252
|
+
customer_id: c.id.startsWith("ext:") ? null : c.id,
|
|
175
253
|
recipient_name: c.company_name,
|
|
176
254
|
recipient_email: c.email,
|
|
177
255
|
}));
|
|
@@ -197,10 +275,10 @@ export function AanbiedingsmailtjePage() {
|
|
|
197
275
|
setBusy(false);
|
|
198
276
|
}
|
|
199
277
|
};
|
|
200
|
-
const filteredProducts = products.filter((p) =>
|
|
278
|
+
const filteredProducts = products.filter((p) => p.product.toLowerCase().includes(productSearch.toLowerCase()));
|
|
201
279
|
if (loading)
|
|
202
280
|
return _jsxs("div", { className: "p-6 space-y-4", children: [_jsx(Skeleton, { className: "h-32 w-full" }), _jsx(Skeleton, { className: "h-64 w-full" })] });
|
|
203
|
-
return (_jsxs("main", { className: "p-6 pb-28 space-y-6", children: [_jsxs("div", { className: "flex items-start justify-between gap-4 flex-wrap", children: [_jsxs("div", { className: "space-y-1", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Tag, { className: "h-6 w-6 text-primary" }), _jsx("h1", { className: "text-2xl font-bold", children: "Acties & Promoties" })] }), _jsx("p", { className: "text-sm text-muted-foreground", children: "Maak promoties en verstuur naar klanten" })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs(Button, { variant: "outline", onClick: () => navigate({ to: "/aanbiedingsmailtje/overzicht" }), children: [_jsx(List, { className: "h-4 w-4 mr-2" }), "Overzicht"] }), _jsxs(Button, { variant: "outline", onClick: () => navigate({ to: "/aanbiedingsmailtje/rapportage" }), children: [_jsx(BarChart3, { className: "h-4 w-4 mr-2" }), "Rapportage"] })] })] }), _jsxs("div", { className: "grid gap-6 xl:grid-cols-2", children: [_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Package, { className: "h-5 w-5" }), _jsx(CardTitle, { children: "Producten Selecteren" })] }), _jsx(CardDescription, { children: "Kies producten en stel actieprijzen in" })] }), _jsxs(CardContent, { className: "space-y-3", children: [_jsxs("div", { className: "relative", children: [_jsx(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }), _jsx(Input, { className: "pl-9", placeholder: "Zoek product...", value: productSearch, onChange: (e) => setProductSearch(e.target.value) })] }), productSearch && (_jsx("div", { className: "max-h-40 overflow-y-auto border rounded-md", children: filteredProducts.slice(0, 20).map((p) => (_jsxs("button", { onClick: () => addProduct(p), className: "w-full text-left px-3 py-2 hover:bg-muted text-sm", children: [p.product, " ",
|
|
281
|
+
return (_jsxs("main", { className: "p-6 pb-28 space-y-6", children: [_jsxs("div", { className: "flex items-start justify-between gap-4 flex-wrap", children: [_jsxs("div", { className: "space-y-1", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Tag, { className: "h-6 w-6 text-primary" }), _jsx("h1", { className: "text-2xl font-bold", children: "Acties & Promoties" })] }), _jsx("p", { className: "text-sm text-muted-foreground", children: "Maak promoties en verstuur naar klanten" })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs(Button, { variant: "outline", onClick: () => navigate({ to: "/aanbiedingsmailtje/overzicht" }), children: [_jsx(List, { className: "h-4 w-4 mr-2" }), "Overzicht"] }), _jsxs(Button, { variant: "outline", onClick: () => navigate({ to: "/aanbiedingsmailtje/rapportage" }), children: [_jsx(BarChart3, { className: "h-4 w-4 mr-2" }), "Rapportage"] })] })] }), _jsxs("div", { className: "grid gap-6 xl:grid-cols-2", children: [_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Package, { className: "h-5 w-5" }), _jsx(CardTitle, { children: "Producten Selecteren" })] }), _jsx(CardDescription, { children: "Kies producten en stel actieprijzen in" })] }), _jsxs(CardContent, { className: "space-y-3", children: [_jsxs("div", { className: "relative", children: [_jsx(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }), _jsx(Input, { className: "pl-9", placeholder: "Zoek product...", value: productSearch, onChange: (e) => setProductSearch(e.target.value) })] }), productSearch && (_jsx("div", { className: "max-h-40 overflow-y-auto border rounded-md", children: filteredProducts.slice(0, 20).map((p) => (_jsxs("button", { onClick: () => addProduct(p), className: "w-full text-left px-3 py-2 hover:bg-muted text-sm", children: [p.product, " ", _jsx("span", { className: "text-muted-foreground", children: p.is_draft ? "· concept" : `· voorraad ${p.quantity ?? 0}` })] }, p.id))) })), _jsxs("div", { className: "text-sm font-medium", children: ["Geselecteerde producten (", selProducts.length, ")"] }), selProducts.length === 0 ? (_jsx("div", { className: "text-sm text-muted-foreground py-6", children: "Geen producten geselecteerd" })) : (_jsxs(_Fragment, { children: [_jsxs("div", { className: "space-y-2", children: [_jsxs("div", { className: "flex flex-wrap gap-2 items-center", children: [_jsx("span", { className: "text-xs text-muted-foreground", children: "Snelle korting:" }), [10, 15, 20, 25, 30].map((p) => (_jsxs(Button, { variant: "outline", size: "sm", onClick: () => applyDiscount(p), children: [_jsx(Percent, { className: "h-3 w-3 mr-1" }), p, "%"] }, p)))] }), _jsxs("div", { className: "flex flex-wrap gap-2 items-center rounded-md border bg-muted/30 p-2", children: [_jsx("span", { className: "text-xs text-muted-foreground", children: "Stickeropdruk \u2014 \u00E9\u00E9n prijs voor \u00E1lle producten: \u20AC" }), _jsx(Input, { type: "number", step: "0.01", placeholder: "0,00", className: "w-28 h-8", value: bulkPrice, onChange: (e) => setBulkPrice(e.target.value) }), _jsxs("div", { className: "flex items-center gap-2 ml-2", children: [_jsx(Switch, { id: "bulk-sticker-toggle", checked: bulkStickerOn, onCheckedChange: (checked) => {
|
|
204
282
|
setBulkStickerOn(checked);
|
|
205
283
|
if (!checked) {
|
|
206
284
|
setSelProducts((prev) => prev.map((p) => ({ ...p, sticker_cost: null })));
|
|
@@ -234,6 +312,6 @@ export function AanbiedingsmailtjePage() {
|
|
|
234
312
|
return (_jsxs(Button, { type: "button", variant: allSel ? "default" : "outline", size: "sm", onClick: () => toggleClass(g.letter), className: "gap-2", children: ["Klasse ", g.letter, _jsx(Badge, { variant: "secondary", className: "px-1.5 py-0 text-xs", children: g.customers.length })] }, g.letter));
|
|
235
313
|
}) })] })), _jsx(Separator, {}), _jsx("div", { className: "max-h-[500px] overflow-y-auto space-y-2 pr-1", children: filteredCustomers.slice(0, 500).map((c) => {
|
|
236
314
|
const checked = selCustomers.has(c.id);
|
|
237
|
-
return (_jsxs("button", { onClick: () => toggleCustomer(c.id), className: `w-full text-left p-3 rounded-md border hover:bg-muted text-sm flex items-center gap-3 ${checked ? "bg-primary/5 border-primary/40" : ""}`, children: [_jsx("input", { type: "checkbox", checked: checked, readOnly: true }), _jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
315
|
+
return (_jsxs("button", { onClick: () => toggleCustomer(c.id), className: `w-full text-left p-3 rounded-md border hover:bg-muted text-sm flex items-center gap-3 ${checked ? "bg-primary/5 border-primary/40" : ""}`, children: [_jsx("input", { type: "checkbox", checked: checked, readOnly: true }), _jsxs("div", { className: "flex-1 min-w-0", children: [_jsxs("div", { className: "font-medium truncate flex items-center gap-2", children: [_jsx("span", { className: "truncate", children: c.company_name }), c.source === "ext" && _jsx(Badge, { variant: "outline", className: "text-[10px] px-1.5 py-0", children: "Floriday" })] }), _jsx("div", { className: "text-xs text-muted-foreground truncate", children: c.email })] }), c.customer_class && _jsx(Badge, { variant: "secondary", children: c.customer_class })] }, c.id));
|
|
238
316
|
}) })] })] })] }), _jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Mail, { className: "h-5 w-5" }), _jsx(CardTitle, { children: "Email Inhoud" })] }), _jsx(CardDescription, { children: "Pas het onderwerp en de boodschap aan" })] }), _jsxs(CardContent, { className: "grid gap-4 md:grid-cols-2", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { children: "Onderwerp" }), _jsx(Input, { value: subject, onChange: (e) => setSubject(e.target.value) })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { children: "Bericht" }), _jsx(Textarea, { value: intro, onChange: (e) => setIntro(e.target.value), rows: 3 })] }), _jsxs("div", { className: "space-y-2 md:col-span-2 max-w-xs", children: [_jsx(Label, { children: "Kosten opdrukken eigen sticker (\u20AC per stuk)" }), _jsx(Input, { type: "number", step: "0.01", placeholder: "0,00", value: bulkPrice, onChange: (e) => setBulkPrice(e.target.value) })] }), _jsxs("div", { className: "space-y-2 md:col-span-2 hidden", children: [_jsx(Label, { children: "Naam (intern)" }), _jsx(Input, { value: name, onChange: (e) => setName(e.target.value) }), _jsx(Label, { children: "Afzendernaam" }), _jsx(Input, { value: fromName, onChange: (e) => setFromName(e.target.value) }), _jsx(Label, { children: "Afzender e-mail" }), _jsx(Input, { type: "email", value: fromEmail, onChange: (e) => setFromEmail(e.target.value) })] })] })] }), _jsx("div", { className: "fixed bottom-0 left-0 right-0 z-30 border-t bg-background/95 backdrop-blur px-6 py-3", children: _jsxs("div", { className: "flex items-center justify-between gap-4", children: [_jsxs("div", { children: [_jsx("div", { className: "font-semibold", children: "Samenvatting" }), _jsxs("div", { className: "text-sm text-muted-foreground", children: [selProducts.length, " product(en) \u2022 ", selCustomers.size, " klant(en)"] })] }), _jsxs("div", { className: "flex gap-2", children: [_jsx(Button, { variant: "outline", disabled: busy, onClick: () => handleSave(false), children: "Opslaan als concept" }), _jsxs(Button, { disabled: busy || selProducts.length === 0 || selCustomers.size === 0, onClick: () => handleSave(true), children: [_jsx(Send, { className: "h-4 w-4 mr-2" }), busy ? "Bezig..." : "Actie Versturen"] })] })] }) })] }));
|
|
239
317
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CampagneDetail.d.ts","sourceRoot":"","sources":["../../src/components/CampagneDetail.tsx"],"names":[],"mappings":"AASA,wBAAgB,cAAc,
|
|
1
|
+
{"version":3,"file":"CampagneDetail.d.ts","sourceRoot":"","sources":["../../src/components/CampagneDetail.tsx"],"names":[],"mappings":"AASA,wBAAgB,cAAc,gCA0H7B"}
|
|
@@ -34,7 +34,16 @@ export function CampagneDetail() {
|
|
|
34
34
|
setBusy(true);
|
|
35
35
|
try {
|
|
36
36
|
const r = await sendFn({ data: { campaignId } });
|
|
37
|
-
|
|
37
|
+
const firstError = r.errors?.[0]?.error;
|
|
38
|
+
if (r.sent > 0 && r.failed === 0) {
|
|
39
|
+
toast.success(`Verzonden naar ${r.sent} ontvangers`);
|
|
40
|
+
}
|
|
41
|
+
else if (r.sent > 0 && r.failed > 0) {
|
|
42
|
+
toast.warning(`Verzonden naar ${r.sent}, ${r.failed} mislukt${firstError ? `: ${firstError}` : ""}`);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
toast.error(`Verzending mislukt voor alle ${r.failed} ontvangers${firstError ? `: ${firstError}` : ""}`);
|
|
46
|
+
}
|
|
38
47
|
await reload();
|
|
39
48
|
}
|
|
40
49
|
catch (e) {
|
package/dist-lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AASnD,eAAO,MAAM,yBAAyB,EAAE,UAgBvC,CAAC"}
|
package/dist-lib/index.js
CHANGED
|
@@ -5,7 +5,6 @@ export { CampagneOverzicht } from "./components/CampagneOverzicht";
|
|
|
5
5
|
export { CampagneDetail } from "./components/CampagneDetail";
|
|
6
6
|
export { RapportagePage } from "./components/RapportagePage";
|
|
7
7
|
export { ActiePage } from "./components/ActiePage";
|
|
8
|
-
import { AfzenderSettingsCard } from "./components/settings/AfzenderSettingsCard";
|
|
9
8
|
import { HuisstijlSettingsCard } from "./components/settings/HuisstijlSettingsCard";
|
|
10
9
|
import { TrackingSettingsCard } from "./components/settings/TrackingSettingsCard";
|
|
11
10
|
import { UitsluitingenSettingsCard } from "./components/settings/UitsluitingenSettingsCard";
|
|
@@ -21,7 +20,6 @@ export const actiemailKwekersErpMathot = {
|
|
|
21
20
|
icon: Mail,
|
|
22
21
|
},
|
|
23
22
|
settingsCards: [
|
|
24
|
-
{ component: AfzenderSettingsCard, order: 10 },
|
|
25
23
|
{ component: HuisstijlSettingsCard, order: 20 },
|
|
26
24
|
{ component: TrackingSettingsCard, order: 30 },
|
|
27
25
|
{ component: StickerSettingsCard, order: 35 },
|