@flowselections/dashboard-planner-installatie-techniek 1.0.38 → 1.0.40
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/DashboardPlannerInstallatieTechniekPage.js +1 -1
- package/dist-lib/components/WerkbonnenFunnel.js +1 -1
- package/dist-lib/components/WerkurenGrafiek.js +1 -1
- package/dist-lib/integrations/supabase/client.js +1 -1
- package/dist-lib/integrations/supabase/client.server.js +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +106 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist-lib/components/DashboardInstallatieTechniekPage.d.ts +0 -2
- package/dist-lib/components/DashboardInstallatieTechniekPage.d.ts.map +0 -1
- package/dist-lib/components/DashboardInstallatieTechniekPage.js +0 -129
- package/dist-lib/components/InstallatieTechniekLogo.d.ts +0 -6
- package/dist-lib/components/InstallatieTechniekLogo.d.ts.map +0 -1
- package/dist-lib/components/InstallatieTechniekLogo.js +0 -4
- package/dist-lib/lib/dashboard-installatietechniek.functions.d.ts +0 -22018
- package/dist-lib/lib/dashboard-installatietechniek.functions.d.ts.map +0 -1
- package/dist-lib/lib/dashboard-installatietechniek.functions.js +0 -15
- package/dist-lib/lib/dashboard-installatietechniek.server.d.ts +0 -7
- package/dist-lib/lib/dashboard-installatietechniek.server.d.ts.map +0 -1
- package/dist-lib/lib/dashboard-installatietechniek.server.js +0 -130
- package/dist-lib/lib/dashboard-installatietechniek.types.d.ts +0 -54
- package/dist-lib/lib/dashboard-installatietechniek.types.d.ts.map +0 -1
- package/dist-lib/lib/dashboard-installatietechniek.types.js +0 -7
|
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
// Dashboard: één tegel per Installatie Techniek-module, met een telling uit
|
|
6
6
|
// de database. GEEN <Header /> — de shell levert die.
|
|
7
7
|
// ============================================================================
|
|
8
|
-
import { DASHBOARD_TIJDZONE } from "../lib/dashboard-constanten";
|
|
8
|
+
import { DASHBOARD_TIJDZONE } from "../lib/dashboard-constanten.js";
|
|
9
9
|
import { useEffect, useRef, useState } from "react";
|
|
10
10
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
11
11
|
import { useServerFn } from "@tanstack/react-start";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { DASHBOARD_TIJDZONE } from "../lib/dashboard-constanten";
|
|
2
|
+
import { DASHBOARD_TIJDZONE } from "../lib/dashboard-constanten.js";
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
4
|
import { useQuery, useQueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { useServerFn } from '@tanstack/react-start';
|
|
@@ -3,7 +3,7 @@ import { useEffect, useState } from 'react';
|
|
|
3
3
|
import { ChevronLeft, ChevronRight } from 'lucide-react';
|
|
4
4
|
import { Button } from '@flowselections/core';
|
|
5
5
|
export const MAX_WEKEN_TERUG = 6;
|
|
6
|
-
import { DASHBOARD_TIJDZONE } from '../lib/dashboard-constanten';
|
|
6
|
+
import { DASHBOARD_TIJDZONE } from '../lib/dashboard-constanten.js';
|
|
7
7
|
const TZ = DASHBOARD_TIJDZONE;
|
|
8
8
|
function nlDatum(nu) {
|
|
9
9
|
const parts = new Intl.DateTimeFormat('en-CA', { timeZone: TZ, year: 'numeric', month: '2-digit', day: '2-digit' }).formatToParts(nu);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Geen project-URL of sleutel in module-code: de client komt van @flowselections/core (env-gebaseerd, dezelfde sessie als de shell).
|
|
2
2
|
import { supabase as coreSupabase } from "@flowselections/core";
|
|
3
3
|
// Import the supabase client like this:
|
|
4
|
-
// import { supabase } from "
|
|
4
|
+
// import { supabase } from "./client.js";
|
|
5
5
|
export const supabase = coreSupabase;
|
|
@@ -20,7 +20,7 @@ function createSupabaseAdminClient() {
|
|
|
20
20
|
let _supabaseAdmin;
|
|
21
21
|
// Server-side Supabase client with service role - bypasses RLS
|
|
22
22
|
// SECURITY: Only use this for trusted server-side operations, never expose to client code
|
|
23
|
-
// Import like: import { supabaseAdmin } from "
|
|
23
|
+
// Import like: import { supabaseAdmin } from "./client.server.js";
|
|
24
24
|
export const supabaseAdmin = new Proxy({}, {
|
|
25
25
|
get(_, prop, receiver) {
|
|
26
26
|
if (!_supabaseAdmin)
|
|
@@ -11615,6 +11615,57 @@ export type Database = {
|
|
|
11615
11615
|
};
|
|
11616
11616
|
Relationships: [];
|
|
11617
11617
|
};
|
|
11618
|
+
logistics_auto_send: {
|
|
11619
|
+
Row: {
|
|
11620
|
+
attempts: number;
|
|
11621
|
+
cart_ids: string[];
|
|
11622
|
+
created_at: string;
|
|
11623
|
+
id: string;
|
|
11624
|
+
idempotency_key: string;
|
|
11625
|
+
last_http_status: number | null;
|
|
11626
|
+
locked_until: string | null;
|
|
11627
|
+
max_attempts: number;
|
|
11628
|
+
next_attempt_at: string;
|
|
11629
|
+
order_id: string;
|
|
11630
|
+
reason: string | null;
|
|
11631
|
+
sent_at: string | null;
|
|
11632
|
+
status: string;
|
|
11633
|
+
updated_at: string;
|
|
11634
|
+
};
|
|
11635
|
+
Insert: {
|
|
11636
|
+
attempts?: number;
|
|
11637
|
+
cart_ids?: string[];
|
|
11638
|
+
created_at?: string;
|
|
11639
|
+
id?: string;
|
|
11640
|
+
idempotency_key: string;
|
|
11641
|
+
last_http_status?: number | null;
|
|
11642
|
+
locked_until?: string | null;
|
|
11643
|
+
max_attempts?: number;
|
|
11644
|
+
next_attempt_at?: string;
|
|
11645
|
+
order_id: string;
|
|
11646
|
+
reason?: string | null;
|
|
11647
|
+
sent_at?: string | null;
|
|
11648
|
+
status?: string;
|
|
11649
|
+
updated_at?: string;
|
|
11650
|
+
};
|
|
11651
|
+
Update: {
|
|
11652
|
+
attempts?: number;
|
|
11653
|
+
cart_ids?: string[];
|
|
11654
|
+
created_at?: string;
|
|
11655
|
+
id?: string;
|
|
11656
|
+
idempotency_key?: string;
|
|
11657
|
+
last_http_status?: number | null;
|
|
11658
|
+
locked_until?: string | null;
|
|
11659
|
+
max_attempts?: number;
|
|
11660
|
+
next_attempt_at?: string;
|
|
11661
|
+
order_id?: string;
|
|
11662
|
+
reason?: string | null;
|
|
11663
|
+
sent_at?: string | null;
|
|
11664
|
+
status?: string;
|
|
11665
|
+
updated_at?: string;
|
|
11666
|
+
};
|
|
11667
|
+
Relationships: [];
|
|
11668
|
+
};
|
|
11618
11669
|
logistics_autolink_audit: {
|
|
11619
11670
|
Row: {
|
|
11620
11671
|
created_at: string;
|
|
@@ -30658,6 +30709,55 @@ export type Database = {
|
|
|
30658
30709
|
reason_code: string;
|
|
30659
30710
|
}[];
|
|
30660
30711
|
};
|
|
30712
|
+
logistics_auto_send_claim: {
|
|
30713
|
+
Args: {
|
|
30714
|
+
p_limit?: number;
|
|
30715
|
+
};
|
|
30716
|
+
Returns: {
|
|
30717
|
+
attempts: number;
|
|
30718
|
+
cart_ids: string[];
|
|
30719
|
+
created_at: string;
|
|
30720
|
+
id: string;
|
|
30721
|
+
idempotency_key: string;
|
|
30722
|
+
last_http_status: number | null;
|
|
30723
|
+
locked_until: string | null;
|
|
30724
|
+
max_attempts: number;
|
|
30725
|
+
next_attempt_at: string;
|
|
30726
|
+
order_id: string;
|
|
30727
|
+
reason: string | null;
|
|
30728
|
+
sent_at: string | null;
|
|
30729
|
+
status: string;
|
|
30730
|
+
updated_at: string;
|
|
30731
|
+
}[];
|
|
30732
|
+
SetofOptions: {
|
|
30733
|
+
from: "*";
|
|
30734
|
+
to: "logistics_auto_send";
|
|
30735
|
+
isOneToOne: false;
|
|
30736
|
+
isSetofReturn: true;
|
|
30737
|
+
};
|
|
30738
|
+
};
|
|
30739
|
+
logistics_auto_send_enqueue_for_order: {
|
|
30740
|
+
Args: {
|
|
30741
|
+
p_order_id: string;
|
|
30742
|
+
};
|
|
30743
|
+
Returns: boolean;
|
|
30744
|
+
};
|
|
30745
|
+
logistics_auto_send_finish: {
|
|
30746
|
+
Args: {
|
|
30747
|
+
p_config_missing?: boolean;
|
|
30748
|
+
p_http?: number;
|
|
30749
|
+
p_id: string;
|
|
30750
|
+
p_ok: boolean;
|
|
30751
|
+
p_reason: string;
|
|
30752
|
+
};
|
|
30753
|
+
Returns: Json;
|
|
30754
|
+
};
|
|
30755
|
+
logistics_auto_send_status: {
|
|
30756
|
+
Args: {
|
|
30757
|
+
p_order_id: string;
|
|
30758
|
+
};
|
|
30759
|
+
Returns: Json;
|
|
30760
|
+
};
|
|
30661
30761
|
logistics_backorder_allowed: {
|
|
30662
30762
|
Args: {
|
|
30663
30763
|
p_strategy_id?: string;
|
|
@@ -32635,6 +32735,12 @@ export type Database = {
|
|
|
32635
32735
|
};
|
|
32636
32736
|
Returns: string;
|
|
32637
32737
|
};
|
|
32738
|
+
logistics_reserved_order_excluded: {
|
|
32739
|
+
Args: {
|
|
32740
|
+
p_order_id: string;
|
|
32741
|
+
};
|
|
32742
|
+
Returns: boolean;
|
|
32743
|
+
};
|
|
32638
32744
|
logistics_reserved_stock_nightly: {
|
|
32639
32745
|
Args: never;
|
|
32640
32746
|
Returns: undefined;
|