@flowselections/mailbox-orders 1.0.26 → 1.0.28
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/MailboxProcessedPage.js +3 -3
- package/dist-lib/components/MailboxProposalsPage.js +5 -5
- package/dist-lib/index.d.ts +7 -7
- package/dist-lib/index.js +9 -9
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1 -1
- package/dist-lib/integrations/supabase/auth-middleware.js +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +3092 -7
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +1 -0
- package/dist-lib/lib/mailbox-ai-settings.functions.js +1 -1
- package/dist-lib/lib/mailbox-ai.server.d.ts +1 -1
- package/dist-lib/lib/mailbox-ai.server.js +3 -3
- package/dist-lib/lib/mailbox-ingest.server.d.ts +1 -1
- package/dist-lib/lib/mailbox-ingest.server.js +7 -7
- package/dist-lib/lib/mailbox-template.functions.d.ts +2 -2
- package/dist-lib/lib/mailbox.functions.d.ts +2 -1
- package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
- package/dist-lib/lib/mailbox.functions.js +2 -2
- package/dist-lib/server-routes.d.ts +9 -0
- package/dist-lib/server-routes.d.ts.map +1 -0
- package/dist-lib/server-routes.js +34 -0
- package/package.json +39 -7
|
@@ -5,9 +5,9 @@ import { useServerFn } from "@tanstack/react-start";
|
|
|
5
5
|
import { toast } from "sonner";
|
|
6
6
|
import { Badge, Button, Card, CardContent, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@flowselections/core";
|
|
7
7
|
import { listProposals, reopenProposal, getActiveOrdersMailbox } from "../lib/mailbox.functions.js";
|
|
8
|
-
import { MailboxAuthBanner } from "./MailboxAuthBanner";
|
|
9
|
-
import { TablePagination } from "./TablePagination";
|
|
10
|
-
import { MailboxFilterBar, usePersistedState, normalizeText, matchesPeriod } from "./MailboxFilterBar";
|
|
8
|
+
import { MailboxAuthBanner } from "./MailboxAuthBanner.js";
|
|
9
|
+
import { TablePagination } from "./TablePagination.js";
|
|
10
|
+
import { MailboxFilterBar, usePersistedState, normalizeText, matchesPeriod } from "./MailboxFilterBar.js";
|
|
11
11
|
export function MailboxProcessedPage() {
|
|
12
12
|
const fetchList = useServerFn(listProposals);
|
|
13
13
|
const reopen = useServerFn(reopenProposal);
|
|
@@ -8,11 +8,11 @@ import { computeEarliestDelivery, isValidDeliveryDate } from "../lib/delivery-da
|
|
|
8
8
|
import { listProposals, getProposalDetail, approveProposal, rejectProposal, listCustomersForPicker, createCustomerFromGroup, listProductsForPicker, listDeliveryLocationsForCustomer, listPickupLocations, listCarriersForPicker, getOrderPickDays, getActiveOrdersMailbox, syncMailboxNow, refreshProposalsForAgentChange, reparseProposalNow, listBeladingOptionsForProducts, listAllowedLoadCarriers, } from "../lib/mailbox.functions.js";
|
|
9
9
|
import { enabledLoadCarriers, normalizeAllowedLoadCarriers, EMPTY_LOAD_CARRIERS } from "../lib/load-carriers.js";
|
|
10
10
|
import { listTemplateFields, listPlantTypesForPicker, listSuppliersForPicker, } from "../lib/mailbox-template.functions.js";
|
|
11
|
-
import { SearchableSelect } from "./SearchableSelect";
|
|
12
|
-
import { MailboxAuthBanner } from "./MailboxAuthBanner";
|
|
13
|
-
import { EmailPreview } from "./EmailPreview";
|
|
14
|
-
import { TablePagination } from "./TablePagination";
|
|
15
|
-
import { MailboxFilterBar, usePersistedState, normalizeText, matchesPeriod } from "./MailboxFilterBar";
|
|
11
|
+
import { SearchableSelect } from "./SearchableSelect.js";
|
|
12
|
+
import { MailboxAuthBanner } from "./MailboxAuthBanner.js";
|
|
13
|
+
import { EmailPreview } from "./EmailPreview.js";
|
|
14
|
+
import { TablePagination } from "./TablePagination.js";
|
|
15
|
+
import { MailboxFilterBar, usePersistedState, normalizeText, matchesPeriod } from "./MailboxFilterBar.js";
|
|
16
16
|
import { supabase } from "../integrations/supabase/client.js";
|
|
17
17
|
const beladingKey = (b) => `${b.plants_per_crate}x${b.crates_per_layer}x${b.layers_per_cart}|${b.crate_code ?? ""}|${b.carrier_code ?? ""}`;
|
|
18
18
|
const beladingLabel = (b) => `${b.plants_per_crate} planten/fust · ${b.crates_per_layer} fusten/laag · ${b.layers_per_cart} lagen`;
|
package/dist-lib/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FlowModule } from "@flowselections/core";
|
|
2
|
-
export * from "./_core-safelist";
|
|
3
|
-
export { MailboxProposalsPage } from "./components/MailboxProposalsPage";
|
|
4
|
-
export { SearchableSelect } from "./components/SearchableSelect";
|
|
5
|
-
export { MailboxProcessedPage } from "./components/MailboxProcessedPage";
|
|
6
|
-
export { EmailPreview } from "./components/EmailPreview";
|
|
7
|
-
export { TablePagination } from "./components/TablePagination";
|
|
8
|
-
export { MailboxFilterBar } from "./components/MailboxFilterBar";
|
|
2
|
+
export * from "./_core-safelist.js";
|
|
3
|
+
export { MailboxProposalsPage } from "./components/MailboxProposalsPage.js";
|
|
4
|
+
export { SearchableSelect } from "./components/SearchableSelect.js";
|
|
5
|
+
export { MailboxProcessedPage } from "./components/MailboxProcessedPage.js";
|
|
6
|
+
export { EmailPreview } from "./components/EmailPreview.js";
|
|
7
|
+
export { TablePagination } from "./components/TablePagination.js";
|
|
8
|
+
export { MailboxFilterBar } from "./components/MailboxFilterBar.js";
|
|
9
9
|
export declare const mailboxOrdersModule: FlowModule;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist-lib/index.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
// src/index.ts — MODULE CONTRACT (Mailbox bestellingen)
|
|
3
3
|
// ============================================================================
|
|
4
4
|
import { Mail, ClipboardCheck, CheckCircle2 } from "lucide-react";
|
|
5
|
-
import { MailboxOrderTemplateCard } from "./components/settings/MailboxOrderTemplateCard";
|
|
6
|
-
import { MailboxAiPromptCard } from "./components/settings/MailboxAiPromptCard";
|
|
7
|
-
export * from "./_core-safelist";
|
|
8
|
-
export { MailboxProposalsPage } from "./components/MailboxProposalsPage";
|
|
9
|
-
export { SearchableSelect } from "./components/SearchableSelect";
|
|
10
|
-
export { MailboxProcessedPage } from "./components/MailboxProcessedPage";
|
|
11
|
-
export { EmailPreview } from "./components/EmailPreview";
|
|
12
|
-
export { TablePagination } from "./components/TablePagination";
|
|
13
|
-
export { MailboxFilterBar } from "./components/MailboxFilterBar";
|
|
5
|
+
import { MailboxOrderTemplateCard } from "./components/settings/MailboxOrderTemplateCard.js";
|
|
6
|
+
import { MailboxAiPromptCard } from "./components/settings/MailboxAiPromptCard.js";
|
|
7
|
+
export * from "./_core-safelist.js";
|
|
8
|
+
export { MailboxProposalsPage } from "./components/MailboxProposalsPage.js";
|
|
9
|
+
export { SearchableSelect } from "./components/SearchableSelect.js";
|
|
10
|
+
export { MailboxProcessedPage } from "./components/MailboxProcessedPage.js";
|
|
11
|
+
export { EmailPreview } from "./components/EmailPreview.js";
|
|
12
|
+
export { TablePagination } from "./components/TablePagination.js";
|
|
13
|
+
export { MailboxFilterBar } from "./components/MailboxFilterBar.js";
|
|
14
14
|
export const mailboxOrdersModule = {
|
|
15
15
|
id: "mailbox_orders",
|
|
16
16
|
name: "Mailbox bestellingen",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SupabaseClient } from '@supabase/supabase-js';
|
|
2
|
-
import type { Database } from './types';
|
|
2
|
+
import type { Database } from './types.js';
|
|
3
3
|
export interface AuthedSupabaseClient extends SupabaseClient<Database> {
|
|
4
4
|
}
|
|
5
5
|
export declare const requireSupabaseAuth: import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
@@ -42,7 +42,7 @@ export const requireSupabaseAuth = createMiddleware({ type: 'function' }).server
|
|
|
42
42
|
if (!data.user.id) {
|
|
43
43
|
throw new Response('Unauthorized: No user ID found in token', { status: 401 });
|
|
44
44
|
}
|
|
45
|
-
const { supabaseAdmin } = await import('./client.server');
|
|
45
|
+
const { supabaseAdmin } = await import('./client.server.js');
|
|
46
46
|
return next({
|
|
47
47
|
context: {
|
|
48
48
|
supabase: supabaseAdmin,
|